On HP-UX 10 ranlib --version' creates ./--version'.

Reported by Bob Proulx and Jim Meyering.
* acgeneral.m4 (AC_CHECK_PROG, AC_PATH_PROG): Do not invoke the
program with --version.
This commit is contained in:
Akim Demaille 2001-04-24 08:19:17 +00:00
parent dce93d470e
commit c33ae6e582
3 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2001-04-24 Akim Demaille <akim@epita.fr>
On HP-UX 10 `ranlib --version' creates `./--version'.
Reported by Bob Proulx and Jim Meyering.
* acgeneral.m4 (AC_CHECK_PROG, AC_PATH_PROG): Do not invoke the
program with --version.
2001-04-22 Jim Meyering <meyering@lucent.com>
* acfunctions.m4 (AC_FUNC_MEMCMP): Remove `int main () {' and the

View File

@ -2408,7 +2408,6 @@ m4_ifvaln([$6],
fi])dnl
ac_cv_prog_$1="$3"
echo "$as_me:__oline__: found $ac_dir/$ac_word" >&AS_MESSAGE_LOG_FD
AC_TRY_COMMAND([$ac_dir/$ac_word --version </dev/null >&2])
break])
m4_ifvaln([$6],
[if test $ac_prog_rejected = yes; then
@ -2474,7 +2473,6 @@ AC_CACHE_VAL([ac_cv_path_$1],
[if AS_EXECUTABLE_P("$ac_dir/$ac_word"); then
ac_cv_path_$1="$ac_dir/$ac_word"
echo "$as_me:__oline__: found $ac_dir/$ac_word" >&AS_MESSAGE_LOG_FD
AC_TRY_COMMAND([$ac_dir/$ac_word --version </dev/null >&2])
break
fi])
dnl If no 3rd arg is given, leave the cache variable unset,

View File

@ -2408,7 +2408,6 @@ m4_ifvaln([$6],
fi])dnl
ac_cv_prog_$1="$3"
echo "$as_me:__oline__: found $ac_dir/$ac_word" >&AS_MESSAGE_LOG_FD
AC_TRY_COMMAND([$ac_dir/$ac_word --version </dev/null >&2])
break])
m4_ifvaln([$6],
[if test $ac_prog_rejected = yes; then
@ -2474,7 +2473,6 @@ AC_CACHE_VAL([ac_cv_path_$1],
[if AS_EXECUTABLE_P("$ac_dir/$ac_word"); then
ac_cv_path_$1="$ac_dir/$ac_word"
echo "$as_me:__oline__: found $ac_dir/$ac_word" >&AS_MESSAGE_LOG_FD
AC_TRY_COMMAND([$ac_dir/$ac_word --version </dev/null >&2])
break
fi])
dnl If no 3rd arg is given, leave the cache variable unset,