This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/library/lammpi/configure.in

78 lines
1.8 KiB
Plaintext
Raw Normal View History

2013-11-04 13:16:14 +00:00
AC_ARG_WITH(mpi,
[ --with-mpi[=DIR] use LAM/MPI library in DIR],
if test "$withval" = yes; then
dnl handle UBUNTU systems
yap_cv_mpi=yes
elif test "$withval" = no; then
yap_cv_mpi=no
else
yap_cv_mpi=$with_mpi
LDFLAGS="$LDFLAGS -L${yap_cv_mpi}/lib"
CPPFLAGS="$CPPFLAGS -I${yap_cv_mpi}/include"
fi,
[yap_cv_mpi=no])
AC_ARG_WITH(mpe,
[ --with-mpe[=DIR] use MPE library in DIR],
if test "$withval" = yes; then
yap_cv_mpe=yes
elif test "$withval" = no; then
yap_cv_mpe=no
else
yap_cv_mpe=$with_mpe
LDFLAGS="$LDFLAGS -L${yap_cv_mpe}/lib"
CPPFLAGS="$CPPFLAGS -I${yap_cv_mpe}/include"
fi,
[yap_cv_mpe=no])
if test "$CC" = icc
then
MPI_CC="$CC"
yap_cv_mpi=no
fi
dnl LAM/MPI interface
2014-02-10 23:31:33 +00:00
if test "$yap_cv_mpi" != "no" -a "$INSTALL_DLLS" != "no"; then
2013-11-04 13:16:14 +00:00
if test "$yap_cv_mpi" != "yes"; then
2014-12-14 16:44:52 +00:00
AC_PATH_PROG(MPI_CC,mpicc,"$CC",$PATH:/sbin:/usr/sbin:/usr/etc:/usr/local/sbin:/usr/lib64/openmpi/bin:/usr/lib/openmpi/bin)
2013-11-04 13:16:14 +00:00
else
2014-12-14 16:44:52 +00:00
AC_PATH_PROG(MPI_CC,mpicc,"$CC",$yap_cv_mpi/bin:$PATH:/sbin:/usr/sbin:/usr/etc:/usr/local/sbin:/usr/lib/openmpi/bin:/usr/lib/openmpi/bin)
2013-11-04 13:16:14 +00:00
fi
MPILDF=`"$MPI_CC" --showme:link`
MPICF=`"$MPI_CC" --showme:compile`
LIBS="$LIBS $MPILDF"
2014-02-10 23:31:33 +00:00
PKG_MPI="library/mpi"
2013-11-04 13:16:14 +00:00
OLD_CC=${CC}
CC=${MPI_CC}
AC_CHECK_HEADERS(mpi.h)
CC=${OLD_CC}
if test "$yap_cv_mpe" != "no"
then
OLD_CC=${CC}
CC=${MPI_CC}
AC_CHECK_LIB(mpe,MPE_Init_log,
2014-02-16 13:03:09 +00:00
[AC_DEFINE(HAVE_LIBMPE, 1, [MPI Debugging on])],
[AC_DEFINE(HAVE_LIBMPE, 0, [MPI Debugging off])])
2013-11-04 13:16:14 +00:00
if test "$ac_cv_lib_mpe_MPE_Init_log" = yes
then
MPI_1LIBS="-lmpe"
MPI_OBJS="$MPI_OBJS mpe.o"
fi
AC_CHECK_HEADERS(mpe.h)
CC=${OLD_CC}
fi
else
2014-02-10 23:31:33 +00:00
PKG_MPI=""
2013-11-04 13:16:14 +00:00
MPI_CC=${CC}
fi
2014-02-10 23:31:33 +00:00
AC_SUBST(PKG_MPI)
2013-11-04 13:16:14 +00:00
AC_SUBST(YAPMPILIB)
AC_SUBST(MPILDF)
AC_SUBST(MPICF)
2014-02-10 23:31:33 +00:00
mkdir -p library/lammpi