autoconf
[Top][All Lists]
Advanced

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

autoreconf fails when LT_INIT and AC_SUBST are both present in configure


From: Ilker R Capoglu
Subject: autoreconf fails when LT_INIT and AC_SUBST are both present in configure.ac
Date: Tue, 10 Nov 2009 11:54:48 -0600
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Hi everyone,

I couldn't be sure whether this was a bug or my own doing (which is more probable), so I decided to post here.

When I have both LT_INIT and AC_SUBST macros inside my "configure.ac", autoreconf fails:
$ autoreconf -vif
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
Use of uninitialized value $msg in concatenation (.) or string at /usr/bin/autom4te line 1038.
unknown channel m4trarn_allow(^am__EXEEXT_FALSE$)
m4tra at /usr/share/autoconf/Autom4te/Channels.pm line 634
Autom4te::Channels::msg('m4trarn_allow(^am__EXEEXT_FALSE$)\x{a}m4tra', undef, 'warning: ') called at /usr/bin/autom4te line 1038
aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
---------------------------------------------------

I tried a lot of combinations, and found out that having both LT_INIT and AC_SUBST in configure.ac causes the problem. If I remove one of them, the errors disappear. However, if I run "libtoolize" before autoreconf, everything works perfectly:
$ libtoolize;autoreconf -vif
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --install --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:10: installing `./missing'
src/Makefile.am: installing `./depcomp'
autoreconf: Leaving directory `.'
---------------------------------------------------


I have the following versions: (As a side note, this problem happened after I upgraded to Ubuntu 9.10 from 9.04)
Autoconf: 2.64
Automake: 1.11
libtool: 2.2.6


Here is my configure.ac:
---------------------------------------------------
AC_INIT([openfdtd],[0.1],address@hidden)

AC_CONFIG_SRCDIR([src/constants.h])
AC_CONFIG_HEADERS([config.h])

AC_CONFIG_AUX_DIR([.])

AC_CONFIG_MACRO_DIR([m4])

AM_INIT_AUTOMAKE

LT_INIT

# location of config++ directory
config_default=/usr/local
AC_ARG_WITH([config],
 [AS_HELP_STRING([--with-config=PATH],
  [specify location of config++ directory])],
 [],
 [with_config=$config_default])
AC_SUBST([configdir],[$with_config])

AC_CONFIG_FILES(Makefile \
 src/Makefile \
 src/main/Makefile \
 src/pml/Makefile \
 src/pointsources/Makefile \
 src/waveforms/Makefile \
 src/recorder/Makefile \
 src/estimator/Makefile \
 src/network/Makefile \
 src/nffft/Makefile \
 src/nffft/td/Makefile \
 src/nffft/pd/Makefile \
 src/tfsf/Makefile \
 src/tfsf/glquad/Makefile \
 src/tfsf/evan/Makefile)

AC_OUTPUT
---------------------------------------------------

If I am not being entirely clear, please forgive. I can provide more detailed info if necessary.

Regards,

Ilker R Capoglu





reply via email to

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