summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2002-04-22 04:12:42 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2002-04-22 04:12:42 (GMT)
commit2c29bc24ffa74517adb67e822d9aac40534817d2 (patch)
treee1172e4330eeaee7c9624db71d9dec1e63f565e7 /configure
parent81912c99e79d8b655688e9cb3b307cc55da419cc (diff)
downloadhdf5-2c29bc24ffa74517adb67e822d9aac40534817d2.zip
hdf5-2c29bc24ffa74517adb67e822d9aac40534817d2.tar.gz
hdf5-2c29bc24ffa74517adb67e822d9aac40534817d2.tar.bz2
[svn-r5215] Purpose:
Bug fix Description: Zlib-compression was reported according to if a Z-library (e.g., libz.a) has been found. It actually needs the presence of a valid zlib.h header file and the compress2() routine. Solution: Changed the IF_YES_NO to be more general by accepting multiple arguments and changed the Zlib-compression depends on zlib.h header and the compress2() routine. Platforms tested: Eirene.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 12 insertions, 4 deletions
diff --git a/configure b/configure
index ca2bfb3..6bfa31b 100755
--- a/configure
+++ b/configure
@@ -30930,11 +30930,19 @@ PRINT() {
}
IF_YES_NO() {
- if test "$1" = "yes"; then
- PRINT "Yes"
- else
+ if test $# -lt 1; then
PRINT "No"
+ return
+ else
+ while test $# -gt 0; do
+ if test "$1" != "yes"; then
+ PRINT "No"
+ return
+ fi
+ shift
+ done
fi
+ PRINT "Yes"
}
IF_ENABLED_DISABLED() {
@@ -31025,4 +31033,4 @@ PRINT_N " Threadsafety"
IF_ENABLED_DISABLED "$THREADSAFE"
PRINT_N " Zlib-compression"
-IF_YES_NO "$HAVE_ZLIB"
+IF_YES_NO "$ac_cv_header_zlib_h" "$ac_cv_func_compress2"