[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: AC_PATH_PROG fails in 2.53?
From: |
Stephen F. Booth |
Subject: |
RE: AC_PATH_PROG fails in 2.53? |
Date: |
Tue, 12 Mar 2002 11:04:48 -0500 |
> | I'm having a very strange problem since I upgraded to 2.53 this
morning.
> I have some m4 code that previously worked under autoconf-2.52 but now
it
> fails under 2.53. I'm trying to check for the script cgicc-config in
the
> given path. configure is failing with the message
> | configure: error: cgicc-config not found in
>
/tmp/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/bin:/
us
>
r/X11R6/bin:/usr/mozilla:/usr/mysql/bin:/home/sbooth/bin:/usr/X11R6/bin:
/u
> sr/mozilla:/usr/mysql/bin:/home/sbooth/bin
> | make: *** [config.status] Error 1
> |
> | but
> |
> | % ls -l /tmp/bin/
> | total 4
> | -rwxr-xr-x 1 sbooth sbooth 2204 Mar 9 11:46
cgicc-config*
> |
> |
> | The m4 code I've written to check for the script looks like this:
> |
> | dnl
> | dnl CGICC_CHECK_CONFIG([PREFIX])
> | dnl
> | dnl Check for the configuration script 'cgicc-config' in PATH.
Define
> | dnl the macros cgicc_libdir and cgicc_includedir to the values
> | dnl obtained from 'cgicc-config'.
> | dnl
> | AC_DEFUN(CGICC_CHECK_CONFIG, [
> | AC_PATH_PROG(CGICC_CONFIG, cgicc-config, no, [$1/bin:$PATH])
> | if test "$CGICC_CONFIG" = no; then
> | AC_MSG_ERROR(cgicc-config not found in $1/bin:$PATH)
> | fi
> |
> | cgicc_libdir=`$CGICC_CONFIG --libdir`
> | cgicc_includedir=`$CGICC_CONFIG --includedir`
> |
> | AC_SUBST(cgicc_libdir)
> | AC_SUBST(cgicc_includedir)
> | ])
> |
>
> It looks correct. What does sh -x ./configure show about this chunk?
It appears that the first path separator is getting skipped over, and
since the file is in the first directory it isn't seen:
+ withval=/tmp
+ test -d /tmp
+ cgicc_prefix=/tmp
+ set dummy cgicc-config
+ ac_word=cgicc-config
+ echo 'configure:2311: checking for cgicc-config'
+ echo -n 'checking for cgicc-config... '
checking for cgicc-config... + test '' = set
+ as_save_IFS=
+ IFS=:
+ IFS=
+ test -z /tmp/bin:/usr/local/bin
+ test -f /tmp/bin:/usr/local/bin/cgicc-config
+ IFS=
+ test -z /usr/bin
+ test -f /usr/bin/cgicc-config
+ IFS=
+ test -z /bin
+ test -f /bin/cgicc-config
+ IFS=
+ test -z /usr/bin/X11
+ test -f /usr/bin/X11/cgicc-config
+ IFS=
+ test -z /usr/games
+ test -f /usr/games/cgicc-config
+ IFS=
+ test -z /usr/bin
+ test -f /usr/bin/cgicc-config
+ IFS=
+ test -z /usr/X11R6/bin
+ test -f /usr/X11R6/bin/cgicc-config
+ IFS=
+ test -z /usr/mozilla
+ test -f /usr/mozilla/cgicc-config
+ IFS=
+ test -z /usr/mysql/bin
+ test -f /usr/mysql/bin/cgicc-config
+ IFS=
+ test -z /home/sbooth/bin
+ test -f /home/sbooth/bin/cgicc-config
+ IFS=
+ test -z /usr/X11R6/bin
+ test -f /usr/X11R6/bin/cgicc-config
+ IFS=
+ test -z /usr/mozilla
+ test -f /usr/mozilla/cgicc-config
+ IFS=
+ test -z /usr/mysql/bin
+ test -f /usr/mysql/bin/cgicc-config
+ IFS=
+ test -z /home/sbooth/bin
+ test -f /home/sbooth/bin/cgicc-config
+ test -z ''
+ ac_cv_path_CGICC_CONFIG=no
+ CGICC_CONFIG=no
+ test -n no
+ echo 'configure:2342: result: no'
+ echo no
no
+ test no = no
+ echo 'configure:2350: error: cgicc-config not found in
/tmp/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/bin:/
usr/X11R6/bin:/usr/mozilla:/usr/mysql/bin:/home/sbooth/bin:/usr/X11R6/bi
n:/usr/mozilla:/usr/mysql/bin:/home/sbooth/bin'
+ echo 'configure: error: cgicc-config not found in
/tmp/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/bin:/
usr/X11R6/bin:/usr/mozilla:/usr/mysql/bin:/home/sbooth/bin:/usr/X11R6/bi
n:/usr/mozilla:/usr/mysql/bin:/home/sbooth/bin'
configure: error: cgicc-config not found in
/tmp/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/bin:/
usr/X11R6/bin:/usr/mozilla:/usr/mysql/bin:/home/sbooth/bin:/usr/X11R6/bi
n:/usr/mozilla:/usr/mysql/bin:/home/sbooth/bin
+ exit 1
+ exit 1
+ exit_status=1