[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AT_TESTED: make it work with full paths from AC_PATH_PROG
From: |
Allan Clark |
Subject: |
AT_TESTED: make it work with full paths from AC_PATH_PROG |
Date: |
Tue, 17 Nov 2009 10:30:17 +0000 |
Hi;
in Autoconf-2.64, AT_TESTED() only works with utilities that would be found
with AC_CHECK_PROGS(). Full pathnames don't work, so tools such as
AC_PATH_PROGS() that report a full pathname cannot be AT_TESTED().
The following patch should resolve this -- really all it does is preface a
"/" into the path tested, so that (ie AT_TESTED(@BZCAT@) where BZCAT is
/usr/bin/bzcat) the path "/" is tested, checking ///usr/bin/bzcat, before
testing /bin, checking /bin/usr/bin/bzcat.
diff -ur autoconf-2.64-orig/lib/autotest/general.m4
autoconf-2.64/lib/autotest/general.m4
--- autoconf-2.64-orig/lib/autotest/general.m4 2009-07-14 05:18:55.000000000
+0100
+++ autoconf-2.64/lib/autotest/general.m4 2009-11-17 10:05:19.000000000
+0000
@@ -987,7 +987,7 @@
for at_program in : $at_tested
do
test "$at_program" = : && continue
- _AS_PATH_WALK([$PATH], [test -f "$as_dir/$at_program" && break])
+ _AS_PATH_WALK([/$PATH_SEPARATOR$PATH], [test -f "$as_dir/$at_program" &&
break])
if test -f "$as_dir/$at_program"; then
{
AS_ECHO(["$at_srcdir/AT_LINE: $as_dir/$at_program --version"])
Allan
- AT_TESTED: make it work with full paths from AC_PATH_PROG,
Allan Clark <=