]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (AC_CHECK_TOOL): Even if VALUE-IF-NOT-FOUND is not
authorAkim Demaille <akim@epita.fr>
Fri, 9 Jun 2000 13:48:33 +0000 (13:48 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 9 Jun 2000 13:48:33 +0000 (13:48 +0000)
specified, we should still check whether PROG-TO-CHECK-FOR
actually works before returning it when the prefixed program is
not found. Also, fixed a bug where it failed to pass the PATH
argument in the second call to AC_CHECK_PROG.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index c2fa3b769bc000d72589af82ca9316bcb7cff920..ece03f7585cb84a898619129e8850d2ab76a0058 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-06-09  Steven G. Johnson  <stevenj@alum.mit.edu>
+
+       * acgeneral.m4 (AC_CHECK_TOOL): Even if VALUE-IF-NOT-FOUND is not
+       specified, we should still check whether PROG-TO-CHECK-FOR
+       actually works before returning it when the prefixed program is
+       not found. Also, fixed a bug where it failed to pass the PATH
+       argument in the second call to AC_CHECK_PROG.
+
 2000-06-09  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (AC_CHECK_TOOLS): Rewrite.
index 41b7b0f74d817e164d84d5a2a023810f37820040..167c67e3af7ce2519e9aeb5e0a223674fec6985d 100644 (file)
@@ -2614,16 +2614,14 @@ fi])
 # AC_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR, [VALUE-IF-NOT-FOUND], [PATH])
 # ------------------------------------------------------------------------
 AC_DEFUN([AC_CHECK_TOOL],
-[AC_CHECK_PROG($1, ${ac_tool_prefix}$2, ${ac_tool_prefix}$2,
-             ifelse([$3], , [$2], ), $4)
-ifval([$3], [
+[AC_CHECK_PROG($1, ${ac_tool_prefix}$2, ${ac_tool_prefix}$2, , $4)
 if test -z "$ac_cv_prog_$1"; then
   if test -n "$ac_tool_prefix"; then
-    AC_CHECK_PROG($1, $2, $2, $3)
+    AC_CHECK_PROG($1, $2, $2, $3, $4)
   else
     $1="$3"
   fi
-fi])
+fi
 ])
 
 
index 41b7b0f74d817e164d84d5a2a023810f37820040..167c67e3af7ce2519e9aeb5e0a223674fec6985d 100644 (file)
@@ -2614,16 +2614,14 @@ fi])
 # AC_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR, [VALUE-IF-NOT-FOUND], [PATH])
 # ------------------------------------------------------------------------
 AC_DEFUN([AC_CHECK_TOOL],
-[AC_CHECK_PROG($1, ${ac_tool_prefix}$2, ${ac_tool_prefix}$2,
-             ifelse([$3], , [$2], ), $4)
-ifval([$3], [
+[AC_CHECK_PROG($1, ${ac_tool_prefix}$2, ${ac_tool_prefix}$2, , $4)
 if test -z "$ac_cv_prog_$1"; then
   if test -n "$ac_tool_prefix"; then
-    AC_CHECK_PROG($1, $2, $2, $3)
+    AC_CHECK_PROG($1, $2, $2, $3, $4)
   else
     $1="$3"
   fi
-fi])
+fi
 ])