[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_CHECK_TOOL doesn't work with cached values
From: |
Jim Meyering |
Subject: |
AC_CHECK_TOOL doesn't work with cached values |
Date: |
29 Oct 2000 23:45:59 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 |
As you might have guessed, I've just upgraded the fetish utils to
use the latest versions of autoconf and automake. Here's another
problem and fix. I haven't checked this in, but am indeed using it.
* acgeneral.m4 (AC_CHECK_TOOL): Set $1 also when using the cache.
Without this change, AC_PROG_RANLIB wouldn't work (wouldn't define
RANLIB) when ac_cv_prog_RANLIB was defined in the cache.
Assuming someone approves it, you're welcome to check this in.
I may be off-line for a few days.
Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.597
diff -u -p -r1.597 acgeneral.m4
--- acgeneral.m4 2000/10/29 19:43:53 1.597
+++ acgeneral.m4 2000/10/29 22:34:16
@@ -3128,6 +3128,8 @@ if test -z "$ac_cv_prog_$1"; then
ac_ct_$1=$$1
AC_CHECK_PROG([ac_ct_$1], [$2], [$2], [$3], [$4])
$1=$ac_ct_$1
+else
+ $1="$ac_cv_prog_$1"
fi
])# AC_CHECK_TOOL
- AC_CHECK_TOOL doesn't work with cached values,
Jim Meyering <=