From 284b19a05fc6fdfff21e4c60d6396a3e75ca211a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 31 Oct 2000 15:19:03 -0500 Subject: [svn-r2782] Purpose: Feature Description: This will run the parallel test files for Fortran when --enable-parallel is specified Platforms tested: Modi4 --- fortran/Makefile.in | 2 +- fortran/configure | 22 +++++++++++++--------- fortran/configure.in | 9 ++++++++- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/fortran/Makefile.in b/fortran/Makefile.in index 3cc04e9..2a79406 100644 --- a/fortran/Makefile.in +++ b/fortran/Makefile.in @@ -15,7 +15,7 @@ srcdir=@srcdir@ @COMMENCE@ # Subdirectories in build-order (not including `examples') -SUBDIRS=src test +SUBDIRS=src test @TESTPARALLEL@ ############################################################################## ## T A R G E T S diff --git a/fortran/configure b/fortran/configure index 7b9f4f8..55991d4 100755 --- a/fortran/configure +++ b/fortran/configure @@ -2540,6 +2540,10 @@ fi ;; esac +if test -n "$PARALLEL"; then + TESTPARALLEL=testpar +fi + ADD_PARALLEL_FILES="" if test -n "$PARALLEL"; then cat >> confdefs.h <<\EOF @@ -2548,23 +2552,23 @@ EOF echo $ac_n "checking prefix for running on one processor""... $ac_c" 1>&6 -echo "configure:2552: checking prefix for running on one processor" >&5 +echo "configure:2556: checking prefix for running on one processor" >&5 echo "$ac_t""$RUNSERIAL" 1>&6 echo $ac_n "checking prefix for running in parallel""... $ac_c" 1>&6 -echo "configure:2555: checking prefix for running in parallel" >&5 +echo "configure:2559: checking prefix for running in parallel" >&5 echo "$ac_t""$RUNPARALLEL" 1>&6 echo $ac_n "checking whether a simple MPI-IO program can be linked""... $ac_c" 1>&6 -echo "configure:2559: checking whether a simple MPI-IO program can be linked" >&5 +echo "configure:2563: checking whether a simple MPI-IO program can be linked" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -2592,7 +2596,7 @@ fi echo $ac_n "checking make""... $ac_c" 1>&6 -echo "configure:2596: checking make" >&5 +echo "configure:2600: checking make" >&5 if test "`${MAKE-make} --version -f /dev/null 2>/dev/null |\ sed -n 1p|cut -c1-8`" = "GNU Make"; then @@ -2609,7 +2613,7 @@ fi if test -z "$DEPEND"; then echo $ac_n "checking how to include a makefile""... $ac_c" 1>&6 -echo "configure:2613: checking how to include a makefile" >&5 +echo "configure:2617: checking how to include a makefile" >&5 cat >makeinc <> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then diff --git a/fortran/configure.in b/fortran/configure.in index 8181693..c367674 100644 --- a/fortran/configure.in +++ b/fortran/configure.in @@ -429,6 +429,13 @@ case "X-$enable_parallel" in esac dnl ---------------------------------------------------------------------- +dnl Should the `testpar' directory participate in the build? +dnl +if test -n "$PARALLEL"; then + TESTPARALLEL=testpar +fi + +dnl ---------------------------------------------------------------------- dnl Print some other parallel information and do some sanity checks. dnl ADD_PARALLEL_FILES="" @@ -584,7 +591,7 @@ no_create=yes AC_OUTPUT(config/depend1 config/depend2 config/depend3 config/depend4 \ config/dependN config/commence config/conclude Makefile \ src/H5fortran_types.f90 src/Makefile test/Makefile \ - examples/Makefile) + testpar/Makefile examples/Makefile) no_create=$saved_no_create dnl Then the stamp2 file for H5config.h -- cgit v0.12