summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure6
-rw-r--r--configure.ac4
2 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index fe13186..0b34bba 100755
--- a/configure
+++ b/configure
@@ -3025,7 +3025,7 @@ do
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_PERL=""
+ ac_cv_prog_PERL="true"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
@@ -3033,7 +3033,7 @@ done
done
IFS=$as_save_IFS
- test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="$PATH"
+ test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
fi
fi
PERL=$ac_cv_prog_PERL
@@ -3046,7 +3046,7 @@ $as_echo "no" >&6; }
fi
-if test "x$PERL" = "xfalse"; then
+if test "x$PERL" != "xtrue"; then
as_fn_error $? "*** Perl is required for installing HDF5, but Perl could not be found!" "$LINENO" 5
fi
diff --git a/configure.ac b/configure.ac
index c37a1c4..b4be127 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,8 +33,8 @@ AC_INIT([HDF5], [1.9.227], [help@hdfgroup.org])
## Requirement #1: Check if Perl is installed.
##
AC_SUBST([PERL]) PERL=""
-AC_CHECK_PROG([PERL], [perl],, [$PATH])
-if test "x$PERL" = "xfalse"; then
+AC_CHECK_PROG([PERL], [perl], true, false, [$PATH])
+if test "x$PERL" != "xtrue"; then
AC_MSG_ERROR([*** Perl is required for installing HDF5, but Perl could not be found!])
fi