Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
snoweye committed Aug 5, 2018
1 parent d1b6cea commit fb13191
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 10 deletions.
35 changes: 30 additions & 5 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ MPI_LIBPATH
MPI_INCLUDE_PATH
MPITYPE
MPI_ROOT
TMP_FOUND
TMP_LIBNAME
TMP_LIB
TMP_INC
Expand Down Expand Up @@ -673,6 +674,7 @@ infodir
docdir
oldincludedir
includedir
runstatedir
localstatedir
sharedstatedir
sysconfdir
Expand Down Expand Up @@ -750,6 +752,7 @@ datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE}'
Expand Down Expand Up @@ -1002,6 +1005,15 @@ do
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;

-runstatedir | --runstatedir | --runstatedi | --runstated \
| --runstate | --runstat | --runsta | --runst | --runs \
| --run | --ru | --r)
ac_prev=runstatedir ;;
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
| --run=* | --ru=* | --r=*)
runstatedir=$ac_optarg ;;

-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Expand Down Expand Up @@ -1139,7 +1151,7 @@ fi
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
libdir localedir mandir
libdir localedir mandir runstatedir
do
eval ac_val=\$$ac_var
# Remove trailing slashes.
Expand Down Expand Up @@ -1292,6 +1304,7 @@ Fine tuning of the installation directories:
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
Expand Down Expand Up @@ -2404,6 +2417,7 @@ if test -z "${MPI_INCLUDE_PATH}" ; then
IFS="${TMP_IFS}"
if test "${TMP_INC}" != "F" -a "${TMP_LIB}" != "F" ; then
TMP_FOUND="mpicc --showme"
echo "Found mpi.h and libmpi.so ... via mpicc --showme"
echo ">> TMP_INC = ${TMP_INC}"
echo ">> TMP_LIB = ${TMP_LIB}"
Expand Down Expand Up @@ -2463,15 +2477,16 @@ $as_echo "yes" >&6; }
IFS="${TMP_IFS}"
if test "${TMP_INC}" != "F" -a "${TMP_LIB}" != "F" ; then
echo "Found mpi.h and libmpi.so ... via pkg-config ... ompi"
TMP_FOUND="pkg-config ompi"
echo "Found mpi.h and libmpi.so ... via pkg-config ompi"
echo ">> TMP_INC = ${TMP_INC}"
echo ">> TMP_LIB = ${TMP_LIB}"
MPITYPE="OPENMPI"
MPI_INCLUDE_PATH="${TMP_INC}"
MPI_LIBPATH="${TMP_LIB}"
MPI_LIBNAME="${TMP_LIBNAME}"
else
echo "Found no mpi.h or libmpi.so ... via pkg-config ... ompi"
echo "Found no mpi.h or libmpi.so ... via pkg-config ompi"
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Expand Down Expand Up @@ -2539,6 +2554,7 @@ if test -z "${MPI_INCLUDE_PATH}" ; then
IFS="${TMP_IFS}"
if test "${TMP_INC}" != "F" -a "${TMP_LIB}" != "F" ; then
TMP_FOUND="mpicc --showme & sed"
echo "Found mpi.h and libmpich.so ... via mpicc --show & sed"
echo ">> TMP_INC = ${TMP_INC}"
echo ">> TMP_LIB = ${TMP_LIB}"
Expand Down Expand Up @@ -2598,15 +2614,16 @@ $as_echo "yes" >&6; }
IFS="${TMP_IFS}"
if test "${TMP_INC}" != "F" -a "${TMP_LIB}" != "F" ; then
echo "Found mpi.h and libmpich.so ... via pkg-config ... mpich"
TMP_FOUND="pkg-config mpich"
echo "Found mpi.h and libmpich.so ... via pkg-config mpich"
echo ">> TMP_INC = ${TMP_INC}"
echo ">> TMP_LIB = ${TMP_LIB}"
MPITYPE="${MPITYPE}"
MPI_INCLUDE_PATH="${TMP_INC}"
MPI_LIBPATH="${TMP_LIB}"
MPI_LIBNAME="${TMP_LIBNAME}"
else
echo "Found no mpi.h or libmpich.so ... via pkg-config ... mpich"
echo "Found no mpi.h or libmpich.so ... via pkg-config mpich"
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Expand All @@ -2620,6 +2637,12 @@ $as_echo "no" >&6; }
fi
if test -z "${TMP_FOUND}"; then
TMP_FOUND="Nothing found from mpicc --show & sed nor pkg-config ..."
fi
echo ">> TMP_FOUND = ${TMP_FOUND}"
if test -z "${MPI_INCLUDE_PATH}" ; then
# Check whether --with-mpi was given.
Expand Down Expand Up @@ -4488,6 +4511,7 @@ echo " "
echo ">> TMP_INC = ${TMP_INC}"
echo ">> TMP_LIB = ${TMP_LIB}"
echo ">> TMP_LIBNAME = ${TMP_LIBNAME}"
echo ">> TMP_FOUND = ${TMP_FOUND}"
echo ">> MPI_ROOT = ${MPI_ROOT}"
echo ">> MPITYPE = ${MPITYPE}"
echo ">> MPI_INCLUDE_PATH = ${MPI_INCLUDE_PATH}"
Expand Down Expand Up @@ -4523,6 +4547,7 @@ echo " "
ac_config_files="$ac_config_files src/Makevars"
Expand Down
22 changes: 17 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ if test -z "${MPI_INCLUDE_PATH}" ; then
IFS="${TMP_IFS}"

if test "${TMP_INC}" != "F" -a "${TMP_LIB}" != "F" ; then
TMP_FOUND="mpicc --showme"
echo "Found mpi.h and libmpi.so ... via mpicc --showme"
echo ">> TMP_INC = ${TMP_INC}"
echo ">> TMP_LIB = ${TMP_LIB}"
Expand Down Expand Up @@ -213,15 +214,16 @@ if test -z "${MPI_INCLUDE_PATH}" ; then
IFS="${TMP_IFS}"

if test "${TMP_INC}" != "F" -a "${TMP_LIB}" != "F" ; then
echo "Found mpi.h and libmpi.so ... via pkg-config ... ompi"
TMP_FOUND="pkg-config ompi"
echo "Found mpi.h and libmpi.so ... via pkg-config ompi"
echo ">> TMP_INC = ${TMP_INC}"
echo ">> TMP_LIB = ${TMP_LIB}"
MPITYPE="OPENMPI"
MPI_INCLUDE_PATH="${TMP_INC}"
MPI_LIBPATH="${TMP_LIB}"
MPI_LIBNAME="${TMP_LIBNAME}"
else
echo "Found no mpi.h or libmpi.so ... via pkg-config ... ompi"
echo "Found no mpi.h or libmpi.so ... via pkg-config ompi"
fi
else
AC_MSG_RESULT([no])
Expand Down Expand Up @@ -294,6 +296,7 @@ if test -z "${MPI_INCLUDE_PATH}" ; then
IFS="${TMP_IFS}"

if test "${TMP_INC}" != "F" -a "${TMP_LIB}" != "F" ; then
TMP_FOUND="mpicc --showme & sed"
echo "Found mpi.h and libmpich.so ... via mpicc --show & sed"
echo ">> TMP_INC = ${TMP_INC}"
echo ">> TMP_LIB = ${TMP_LIB}"
Expand Down Expand Up @@ -353,15 +356,16 @@ if test -z "${MPI_INCLUDE_PATH}" ; then
IFS="${TMP_IFS}"

if test "${TMP_INC}" != "F" -a "${TMP_LIB}" != "F" ; then
echo "Found mpi.h and libmpich.so ... via pkg-config ... mpich"
TMP_FOUND="pkg-config mpich"
echo "Found mpi.h and libmpich.so ... via pkg-config mpich"
echo ">> TMP_INC = ${TMP_INC}"
echo ">> TMP_LIB = ${TMP_LIB}"
MPITYPE="${MPITYPE}"
MPI_INCLUDE_PATH="${TMP_INC}"
MPI_LIBPATH="${TMP_LIB}"
MPI_LIBNAME="${TMP_LIBNAME}"
else
echo "Found no mpi.h or libmpich.so ... via pkg-config ... mpich"
echo "Found no mpi.h or libmpich.so ... via pkg-config mpich"
fi
else
AC_MSG_RESULT([no])
Expand All @@ -374,7 +378,13 @@ if test -z "${MPI_INCLUDE_PATH}" ; then
fi


dnl For nothing found from above
dnl Nothing found from above
if test -z "${TMP_FOUND}"; then
TMP_FOUND="Nothing found from mpicc --show & sed nor pkg-config ..."
fi
echo ">> TMP_FOUND = ${TMP_FOUND}"


dnl 'Paths not specified'
if test -z "${MPI_INCLUDE_PATH}" ; then
dnl Another way is to specify MPI_ROOT, perhaps via --with-mpi
Expand Down Expand Up @@ -822,6 +832,7 @@ echo " "
echo ">> TMP_INC = ${TMP_INC}"
echo ">> TMP_LIB = ${TMP_LIB}"
echo ">> TMP_LIBNAME = ${TMP_LIBNAME}"
echo ">> TMP_FOUND = ${TMP_FOUND}"
echo ">> MPI_ROOT = ${MPI_ROOT}"
echo ">> MPITYPE = ${MPITYPE}"
echo ">> MPI_INCLUDE_PATH = ${MPI_INCLUDE_PATH}"
Expand All @@ -846,6 +857,7 @@ AC_SUBST(ORTERUN)
AC_SUBST(TMP_INC)
AC_SUBST(TMP_LIB)
AC_SUBST(TMP_LIBNAME)
AC_SUBST(TMP_FOUND)
AC_SUBST(MPI_ROOT)
AC_SUBST(MPITYPE)
AC_SUBST(MPI_INCLUDE_PATH)
Expand Down
1 change: 1 addition & 0 deletions src/Makevars.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Makeconf:
echo "TMP_INC = @TMP_INC@" >> $(USER_CONF)
echo "TMP_LIB = @TMP_LIB@" >> $(USER_CONF)
echo "TMP_LIBNAME = @TMP_LIBNAME@" >> $(USER_CONF)
echo "TMP_FOUND = @TMP_FOUND@" >> $(USER_CONF)
echo "MPI_ROOT = @MPI_ROOT@" >> $(USER_CONF)
echo "MPITYPE = @MPITYPE@" >> $(USER_CONF)
echo "MPI_INCLUDE_PATH = @MPI_INCLUDE_PATH@" >> $(USER_CONF)
Expand Down

0 comments on commit fb13191

Please sign in to comment.