bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_CONFIG_FILES assumes that build directories have sibling in the sourc


From: Alexandre Duret-Lutz
Subject: AC_CONFIG_FILES assumes that build directories have sibling in the source tree
Date: Sun, 26 Oct 2003 10:51:16 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

The following test case works fine with Autoconf 2.13.                          
                                                      
rm -Rf test
mkdir test
cd test
cat >configure.in <<EOF
AC_INIT
AC_OUTPUT(sub/foo:in/sub.in)
EOF
mkdir in
: >in/sub.in
autoconf
mkdir _build
cd _build
../configure

however with Autoconf 2.57g it will produce

configure: creating ./config.status
./config.status: line 1: cd: ../../sub: No such file or directory
config.status: creating sub/Makefile

AFAICT, this warning comes from the second `cd' in the
computation of ac_abs_srcdir:

   ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`

I think config.status is bogus to assume that sub/ exists in the
source tree, because AC_CONFIG_FILES(sub/foo:in/sub.in) only
mentions "sub/foo" as a built file.

I believe it would be fine for ./config.status to ignore this
`cd' error, since it make no sense for the user to use
@abs_srcdir@ in such a file.
-- 
Alexandre Duret-Lutz





reply via email to

[Prev in Thread] Current Thread [Next in Thread]