[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
an AC_PATH_PROG curiousity
From: |
Steve M. Robbins |
Subject: |
an AC_PATH_PROG curiousity |
Date: |
Wed, 3 Apr 2002 22:46:57 -0500 |
User-agent: |
Mutt/1.3.28i |
Hi,
It appears that AC_PATH_PROG has changed behaviour between 2.13 and 2.5x.
If the following configure.in file is processed with autoconf 2.13,
all three calls correctly find "ls"
AC_INIT
AC_PATH_PROG(LS1,ls,no)
echo "LS=$LS1"
AC_PATH_PROG(LS2,ls,no,$PATH)
echo "LS=$LS2"
AC_PATH_PROG(LS3,ls,no,"$PATH")
echo "LS=$LS3"
AC_OUTPUT
However, if processed with autoconf 2.53 or 2.53a (CVS as of yesterday)
the last call (with quoted "$PATH") fails.
address@hidden/usr/local/experimental/bin/autoconf
address@hidden/configure
checking for ls... /bin/ls
LS=/bin/ls
checking for ls... /bin/ls
LS=/bin/ls
checking for ls... no
LS=no
I was a bit surprised by this. Bug or feature?
-S
--
by Rocket to the Moon,
by Airplane to the Rocket,
by Taxi to the Airport,
by Frontdoor to the Taxi,
by throwing back the blanket and laying down the legs ...
- They Might Be Giants
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- an AC_PATH_PROG curiousity,
Steve M. Robbins <=