summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-03-22 19:08:02 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-03-22 19:08:02 (GMT)
commit4432a558f91d7eb81a3eea9b0c6155b62b4ce342 (patch)
tree2d9d9d6afa09788e25dbf9b00accfef99e201576 /fortran
parent8f950835004165557a3425944c8691107f590756 (diff)
downloadhdf5-4432a558f91d7eb81a3eea9b0c6155b62b4ce342.zip
hdf5-4432a558f91d7eb81a3eea9b0c6155b62b4ce342.tar.gz
hdf5-4432a558f91d7eb81a3eea9b0c6155b62b4ce342.tar.bz2
[svn-r3693] Purpose:
Bug Fix Description: Create a Makefile in the testpar/ directory only if PARALLEL is enabled. Solution: Set a macro to the testpar/Makefile for the generation script.
Diffstat (limited to 'fortran')
-rwxr-xr-xfortran/configure40
-rw-r--r--fortran/configure.in23
2 files changed, 51 insertions, 12 deletions
diff --git a/fortran/configure b/fortran/configure
index 530f67f..2fd0a9c 100755
--- a/fortran/configure
+++ b/fortran/configure
@@ -2713,6 +2713,12 @@ rm -f conftest conftest.o conftest.c core core.* *.core dummy.o
mkdir ./config >/dev/null 2>&1
touch ./config/stamp1
+PARALLEL_MAKE=
+
+if test -n "$TESTPARALLEL"; then
+ PARALLEL_MAKE=$TESTPARALLEL/Makefile
+fi
+
saved_no_create=$no_create
no_create=yes
trap '' 1 2 15
@@ -2816,10 +2822,19 @@ done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
-trap 'rm -fr `echo "config/depend1 config/depend2 config/depend3 config/depend4 \
- config/dependN config/commence config/conclude Makefile \
- src/H5fortran_types.f90 src/Makefile test/Makefile \
- testpar/Makefile examples/Makefile src/H5config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "config/depend1
+ config/depend2
+ config/depend3
+ config/depend4
+ config/dependN
+ config/commence
+ config/conclude
+ Makefile
+ src/H5fortran_types.f90
+ src/Makefile
+ test/Makefile
+ $PARALLEL_MAKE
+ examples/Makefile src/H5config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
@@ -2938,10 +2953,19 @@ EOF
cat >> $CONFIG_STATUS <<EOF
-CONFIG_FILES=\${CONFIG_FILES-"config/depend1 config/depend2 config/depend3 config/depend4 \
- config/dependN config/commence config/conclude Makefile \
- src/H5fortran_types.f90 src/Makefile test/Makefile \
- testpar/Makefile examples/Makefile"}
+CONFIG_FILES=\${CONFIG_FILES-"config/depend1
+ config/depend2
+ config/depend3
+ config/depend4
+ config/dependN
+ config/commence
+ config/conclude
+ Makefile
+ src/H5fortran_types.f90
+ src/Makefile
+ test/Makefile
+ $PARALLEL_MAKE
+ examples/Makefile"}
EOF
cat >> $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 eaaa75a..35081e7 100644
--- a/fortran/configure.in
+++ b/fortran/configure.in
@@ -606,13 +606,28 @@ dnl First the stamp1 file for H5config.h.in
mkdir ./config >/dev/null 2>&1
touch ./config/stamp1
+PARALLEL_MAKE=
+
+if test -n "$TESTPARALLEL"; then
+ PARALLEL_MAKE=$TESTPARALLEL/Makefile
+fi
+
dnl Then the config.status file (but not makefiles)
saved_no_create=$no_create
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 \
- testpar/Makefile examples/Makefile)
+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
+ $PARALLEL_MAKE
+ examples/Makefile)
no_create=$saved_no_create
dnl Then the stamp2 file for H5config.h