bug-libtool
[Top][All Lists]
Advanced

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

libtool: AC_CONFIG_AUX_DIR broken (GNU libtool 1.4.2a)


From: Roger Leigh
Subject: libtool: AC_CONFIG_AUX_DIR broken (GNU libtool 1.4.2a)
Date: Mon, 24 Dec 2001 19:15:14 +0000
User-agent: Mutt/1.2.5i

Package: libtool
Version: 1.4.2-3
Severity: important

Dear All.

When I run libtoolize with a configure.in file present, I get the
following:

$ libtoolize --force --copy
Putting files in AC_CONFIG_AUX_DIR, `scripts'.

and config.sub, config.guess and ltmain.sh are put into the `scripts'
directory.

However, if I remove configure.in, and replace it with configure.ac, I
get:

$ libtoolize --force --copy
$ 

and the files are not put into the aux dir (just into .).

$ grep CONFIG_AUX_DIR configure.*
configure.ac:AC_CONFIG_AUX_DIR(scripts)
configure.in:AC_CONFIG_AUX_DIR(scripts)

Is appears that AC_CONFIG_AUX_DIR is not respected if configure.ac is
used instead of configure.in.

This is not due to the file contents, just the name:
$ mv configure.ac configure.in
$ libtoolize --force --copy
Putting files in AC_CONFIG_AUX_DIR, `scripts'.

This completely breaks automake/autoconf (1.5 and 2.52), so I classified this
bug as `important'.

The following patch fixes this (unified diff):
--- /usr/bin/libtoolize Fri Nov 30 00:22:10 2001
+++ /tmp/libtoolize     Sun Dec 23 16:01:58 2001
@@ -154,7 +154,7 @@
 files='config.guess config.sub ltmain.sh'
 
 auxdir=.
-auxdirline=`egrep '^AC_CONFIG_AUX_DIR' configure.in 2>/dev/null`
+auxdirline=`egrep '^AC_CONFIG_AUX_DIR' $configure_ac 2>/dev/null`
 if test -n "$auxdirline"; then
   # Handle explicit AC_CONFIG_AUX_DIR settings.
   auxdir=`echo "$auxdirline" | sed 's/^AC_CONFIG_AUX_DIR(\([^)]*\)).*$/\1/'`


Regards,
Roger

-- System Information
Debian Release: 3.0
Kernel Version: Linux whinlatter 2.4.16 #4 Mon Nov 26 21:23:23 GMT 2001 i686 
unknown

Versions of the packages libtool depends on:
ii  autotools-dev  20011108.1     Update infrastructure for config.{guess,sub}
ii  cpp            2.95.4-8       The GNU C preprocessor.
ii  file           3.37-3         Determines file type using "magic" numbers
ii  gcc            2.95.4-8       The GNU C compiler.
ii  libc6-dev      2.2.4-5        GNU C Library: Development Libraries and Hea
ii  gcc-2.95       2.95.4-0.01100 The GNU C compiler.
        ^^^ (Provides virtual package c-compiler)
ii  libc6-dev      2.2.4-5        GNU C Library: Development Libraries and Hea
        ^^^ (Provides virtual package libc-dev)

-- 
Roger Leigh
                ** Registration Number: 151826, http://counter.li.org **
                Need Epson Stylus Utilities? http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848 available on public keyservers

Attachment: pgpFuRL4Nq6gi.pgp
Description: PGP signature


reply via email to

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