[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AT_TESTED: make it work with full paths from AC_PATH_PROG
From: |
Eric Blake |
Subject: |
Re: AT_TESTED: make it work with full paths from AC_PATH_PROG |
Date: |
Tue, 17 Nov 2009 06:01:39 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Allan Clark on 11/17/2009 3:30 AM:
> 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.
Nice idea. However, it adds the potential for false positives. A better
patch would be to check for an absolute name prior to starting the loop
over PATH. I'll work up a patch along those lines.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAksCnrMACgkQ84KuGfSFAYBxOQCeM2W0VCzYeyiJIuPNMMFq2WeB
SicAoKnLrn42K+YRwTJisOi/f7N5mvax
=3ZKt
-----END PGP SIGNATURE-----