mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r27509] Fixed check for perl: tested--h5committest
This commit is contained in:
parent
d3e931c772
commit
b79070ac8d
6
configure
vendored
6
configure
vendored
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user