Problems Installing Rmpi
On Wed, 2009-05-13 at 15:19 -0400, Hao Yu wrote:
Rick, please use
###################################
AC_INIT(DESCRIPTION)
AC_PROG_CC
AC_ARG_WITH(mpi,
[ --with-mpi=/opt/lib32/usr/lib Location of MPI library.],
[ if test "${withval}" != no; then
MPI_ROOT=${withval}
MPI_INCLUDE="-I${MPI_ROOT}/include"
LDFLAGS="$LDFLAGS -L${withval}/lib"
CFLAGS="$CFLAGS -I${withval}/include"
fi ]
)
MPITYPE="OPENMPI"
MPI_DEPS="-DMPI2"
AC_CHECK_LIB(util, openpty, [ MPI_LIBS="$MPI_LIBS -lutil" ])
AC_CHECK_LIB(pthread, main, [ MPI_LIBS="$MPI_LIBS -lpthread" ])
PKG_LIBS="${MPI_LIBS} -fPIC"
PKG_CPPFLAGS="${MPI_INCLUDE} ${MPI_DEPS} -D${MPITYPE} -fPIC"
AC_SUBST(PKG_LIBS)
AC_SUBST(PKG_CPPFLAGS)
AC_SUBST(DEFS)
AC_OUTPUT(src/Makevars)
###################################
to replace the original configure.ac completely. It is completely bypass
checking mpi.h and mpi.so. In this way, OS will not append mpi.h to
${MPI_INCLUDE} (hopefully).
Hao
Thanks. Then I do an autoconf? Anything else I need to do construct the configure file before trying to install Rmpi? Rick B.