summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-03-04 20:22:42 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-03-04 20:22:42 (GMT)
commit96320e69c087ff011370a3f070500fa1f9a52a23 (patch)
tree55bb69ebdf807e94833ebb612035910797028f85 /configure
parent25421a64fd4413a4ff4bccb7c3137f0abdb8a36e (diff)
downloadhdf5-96320e69c087ff011370a3f070500fa1f9a52a23.zip
hdf5-96320e69c087ff011370a3f070500fa1f9a52a23.tar.gz
hdf5-96320e69c087ff011370a3f070500fa1f9a52a23.tar.bz2
[svn-r1117] Changes since 19990303
---------------------- ./configure.in ./configure [REGENERATED] The path for a command is calculated explicitly the hard way because `type -path' isn't portable. ./config/freebsd ./config/linux-gnu ./config/linux-gnulibc2 Changed the way files reference each other. ./config/gnu-flags [NEW] ./config/dec-flags [NEW] These files figure out what flags to pass to certain compilers so we can reuse code in more than one config/* file. They also have better warning messages when old compilers are used. ./config/linux-gnulibc1 ./config/dec-osf4.x These files use the new *-flags files. ./src/H5D.c ./src/H5Onull.c ./src/H5Tconv.c ./tools/h5ls.c Fixed a compiler warning. ./src/H5detect.c Added a better comment to the top of the generated file.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure36
1 files changed, 24 insertions, 12 deletions
diff --git a/configure b/configure
index a203070..d8d8c83 100755
--- a/configure
+++ b/configure
@@ -4530,15 +4530,27 @@ case "$CC_BASENAME" in
PARALLEL=yes
echo $ac_n "checking for mpirun""... $ac_c" 1>&6
echo "configure:4533: checking for mpirun" >&5
- CC_path=`type -path $CC`
- CC_path=`echo $CC_path |sed -e 's/\/mpicc$//'`
- if test -x $CC_path/mpirun; then
- echo "$ac_t""$CC_path/mpirun" 1>&6
+
+ # Find the path where mpicc is located.
+ cmd=`echo $CC |cut -f1 -d' '`
+ if (echo $cmd |grep / >/dev/null); then
+ path="`echo $cmd |sed 's/\(.*\)\/.*$/\1/'`"
+ else
+ for path in `echo $PATH |tr : ' '`; do
+ if test -x $path/$cmd; then
+ break;
+ fi
+ done
+ fi
+
+ # Is there an mpirun at that path?
+ if test -x $path/mpirun; then
+ echo "$ac_t""$path/mpirun" 1>&6
if test "X-" = "X-$RUNSERIAL"; then
- RUNSERIAL="$CC_path/mpirun -np 1"
+ RUNSERIAL="$path/mpirun -np 1"
fi
if test "X-" = "X-$RUNPARALLEL"; then
- RUNPARALLEL="$CC_path/mpirun -np \$\${NPROCS:=2}"
+ RUNPARALLEL="$path/mpirun -np \$\${NPROCS:=2}"
fi
else
echo "$ac_t""none" 1>&6
@@ -4564,7 +4576,7 @@ fi
echo $ac_n "checking for parallel support files""... $ac_c" 1>&6
-echo "configure:4568: checking for parallel support files" >&5
+echo "configure:4580: checking for parallel support files" >&5
case "X-$enable_parallel" in
X-|X-no|X-none)
# Either we are not compiling for parallel or the header and library
@@ -4588,7 +4600,7 @@ case "X-$enable_parallel" in
# is missing.
PARALLEL=yes
echo $ac_n "checking for MPI_Init in -lmpich""... $ac_c" 1>&6
-echo "configure:4592: checking for MPI_Init in -lmpich" >&5
+echo "configure:4604: checking for MPI_Init in -lmpich" >&5
ac_lib_var=`echo mpich'_'MPI_Init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -4596,7 +4608,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lmpich $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4600 "configure"
+#line 4612 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -4607,7 +4619,7 @@ int main() {
MPI_Init()
; return 0; }
EOF
-if { (eval echo configure:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -4656,10 +4668,10 @@ EOF
# Display what we found about running programs
echo $ac_n "checking how to run on one processor""... $ac_c" 1>&6
-echo "configure:4660: checking how to run on one processor" >&5
+echo "configure:4672: checking how to run on one processor" >&5
echo "$ac_t""$RUNSERIAL" 1>&6
echo $ac_n "checking how to run in parallel""... $ac_c" 1>&6
-echo "configure:4663: checking how to run in parallel" >&5
+echo "configure:4675: checking how to run in parallel" >&5
echo "$ac_t""$RUNPARALLEL" 1>&6
# There *must* be some way to run in parallel even if it's just the