autoconf
[Top][All Lists]
Advanced

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

AC_OUTPUT_COMMANDS


From: Ralf Corsepius
Subject: AC_OUTPUT_COMMANDS
Date: Sun, 21 Jan 2001 09:25:11 +0100

Hi,

srcdir and top_srcdir get corrupted with cvs-autoconf, when using
them in AC_OUTPUT_COMMANDS and AC_CONFIG_COMMANDS in packages with
subdirectories.

Example: The configure script in the tarball below contains this:
AC_OUTPUT_COMMANDS(
[echo "****"
 echo srcdir=$srcdir
 echo top_srcdir=$top_srcdir
 echo "****"
],
[srcdir=$srcdir
 top_srcdir=$top_srcdir
])

Having unpacked the tarball into a directory <dir>, and if
configuring in separate build-directory using a relative path to the
source tree (../../<dir>/configure), 

* with autoconf-2.13 this gets printed:
****
srcdir=../../<dir>
top_srcdir=
****
=> top_srcdir is empty (unsupported), srcdir points to the actual
top_srcdir.

* With cvs-autoconf this gets printed
****
srcdir=../../<dir>/foo
top_srcdir=../../<dir>
****
=> top_srcdir points to the actual top_srcdir, srcdir points to a
random location inside of the source tree.

* Now configuring inside of the source tree, with cvs-autoconf:
****
srcdir=.
top_srcdir=..
****
=> top_srcdir points to a location _outside_ of the source tree,
srcdir points to the actual top_srcdir.

Using AC_CONFIG_COMMANDS instead of AC_OUTPUT_COMMANDS results into
the same broken behavior.

-----
=> top_srcdir is not setup correctly, srcdir contains random
results, ie. the current behavior is broken.

=> having changed the behavior of srcdir in autoconf-2.[45]* breaks
all autoconf-2.13 configure scripts which assume srcdir to point to
the actual top_srcdir, i.e. this breaks multilib support (cf.
config-ml.in, used by the gnu toolchain and many other packages).

AFAIS, apparent cause is autoconf-2.[4]* placing INIT-COMMANDS
before the CONFIG_FILES section in config.status, and the
CONFIG_FILES section working on variables which had been constant
with autoconf-2.13.

Ralf
-- 
Ralf Corsepius 
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung
(FAW)
Helmholtzstr. 16, 89081 Ulm, Germany     Tel: +49/731/501-8690
mailto:address@hidden           FAX: +49/731/501-999  
http://www.faw.uni-ulm.de

Attachment: foo-0.tar.gz
Description: GNU Zip compressed data


reply via email to

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