summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2005-09-01 20:31:46 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2005-09-01 20:31:46 (GMT)
commitc7808fa57eb9923b15d06e170dda140e72139ab8 (patch)
treeb28fc1ffc690d88bd061ae1c0d34fc9f529ea459 /configure
parenta5f1aa713fa4a34752fd6ad0e6d9b7d9c31a8d18 (diff)
downloadhdf5-c7808fa57eb9923b15d06e170dda140e72139ab8.zip
hdf5-c7808fa57eb9923b15d06e170dda140e72139ab8.tar.gz
hdf5-c7808fa57eb9923b15d06e170dda140e72139ab8.tar.bz2
[svn-r11334] Purpose:
Feature: checking configure flags (bug #90) Description: Some configure flags don't work together. Configure now exits with a sensible error message if one of these combinations is specified. Solution: The following flags will throw errors: --enable-cxx and --enable-parallel --enable-cxx and --enable-threadsafe --enable-threadsafe and --enable-parallel --enable-fphdf5 and --enable-fortran Platforms tested: mir, modi4, heping Misc. update:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26
1 files changed, 26 insertions, 0 deletions
diff --git a/configure b/configure
index d0374b5..f22654e 100755
--- a/configure
+++ b/configure
@@ -44818,6 +44818,12 @@ if test "${enable_threadsafe+set}" = set; then
THREADSAFE=$enableval
fi;
+if test "X${HDF_CXX}" != "X" && test "X${THREADSAFE}" != "X"; then
+ { { echo "$as_me:$LINENO: error: --enable-cxx and --enable-threadsafe flags are incompatible" >&5
+echo "$as_me: error: --enable-cxx and --enable-threadsafe flags are incompatible" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
case "X-$THREADSAFE" in
X-|X-no)
echo "$as_me:$LINENO: result: no" >&5
@@ -48106,6 +48112,18 @@ if test "${enable_parallel+set}" = set; then
fi;
+if test "X${HDF_CXX}" != "X" && test "X${enable-parallel}" != "X"; then
+ { { echo "$as_me:$LINENO: error: --enable-cxx and --enable-parallel flags are incompatible" >&5
+echo "$as_me: error: --enable-cxx and --enable-parallel flags are incompatible" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+if test "X${THREADSAFE}" != "X" && test "X${enable-parallel}" != "X"; then
+ { { echo "$as_me:$LINENO: error: --enable-threadsafe and --enable-parallel flags are incompatible" >&5
+echo "$as_me: error: --enable-threadsafe and --enable-parallel flags are incompatible" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
echo "$as_me:$LINENO: checking for parallel support files" >&5
echo $ECHO_N "checking for parallel support files... $ECHO_C" >&6
case "X-$enable_parallel" in
@@ -49867,8 +49885,16 @@ if test "${enable_fphdf5+set}" = set; then
else
FPHDF5="no"
fi;
+
if test "X$FPHDF5" = "Xyes"; then
+ if test "X$${FPHDF5}" != "X" && test "X${HDF_FORTRAN}" != "X"; then
+ { { echo "$as_me:$LINENO: error: --enable-fphdf5 and --enable-fortran flags are incompatible" >&5
+echo "$as_me: error: --enable-fphdf5 and --enable-fortran flags are incompatible" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+
+
cat >>confdefs.h <<\_ACEOF
#define HAVE_FPHDF5 1
_ACEOF