[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: aclocal 1.8 produces useless aclocal.m4
From: |
Sam Steingold |
Subject: |
Re: aclocal 1.8 produces useless aclocal.m4 |
Date: |
Sun, 01 Aug 2004 14:25:56 -0400 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt) |
> * Alexandre Duret-Lutz <address@hidden> [2004-08-01 19:29:18 +0200]:
>
>>>> "Sam" == Sam Steingold <address@hidden> writes:
>
> Sam> I have been using
> Sam> aclocal -I src/m4 --output=src/autoconf/aclocal.m4
> Sam> to produce a stand-alone aclocal.m4 file (with all necessary m4 files
> Sam> concatenated).
> Sam> it works fine with 1.4
>
> Sam> aclocal 1.8 produces aclocal.m4 with many "m4_include" statements which
> Sam> defeat the purpose (for me).
> Sam> Is it possible to tell aclocal 1.8 to concatenate all the necessary m4
> Sam> files instead?
>
> Yes. Use -I `pwd`/src/m4.
thanks.
> Sam> aclocal -I src/m4 --output=src/autoconf/aclocal.m4
> Sam> /usr/bin/aclocal: line 246: ((: 57 2 <= 13 : syntax error in expression
> (error token is "2 <= 13 ")
>
> I've never seen this and it's not clear to me what tool is speaking
> here. This does not look like an aclocal message, not a Perl
> diagnostic. The figures remind me of autoconf versions (2.13 vs
> 2.57), so this might be a failing version check? Could you produce a
> test case?
/usr/bin/aclocal:
# Set the PATH appropriately
if [ "x${VER_MIN}" != "x" ] ; then
if (( ${VER_MIN} <= 13 )) ; then
if [ ! -x ${AUTO_STABLE}/bin/aclocal ] ; then
VER_MIN is, apparently, "57 2"
this is because the input file has several AC_PREREQ forms.
> Sam> /usr/share/aclocal/gsl.m4:5: warning: underquoted definition of
> AM_PATH_GSL
> Sam> run info '(automake)Extending aclocal'
> Sam> or see
> http://sources.redhat.com/automake/automake.html#Extending%20aclocal
> Sam> /usr/share/aclocal/freetype2.m4:7: warning: underquoted definition of
> AC_CHECK_FT2
> Sam> /usr/share/aclocal/check.m4:5: warning: underquoted definition of
> AM_PATH_CHECK
>
> These warnings are self-documented, just follow the link.
the warnings are generated by system files outside of my control.
(maybe that's because cygwin comes with both 1.4 and 1.8?)
> Sam> configure.ac:322: warning: AC_COMPILE_IFELSE was called before AC_AIX
> Sam> autoconf/specific.m4:427: AC_AIX is expanded from...
> Sam> configure.ac:322: the top level
> Sam> configure.ac:322: warning: AC_RUN_IFELSE was called before AC_AIX
> Sam> configure.ac:344: warning: AC_COMPILE_IFELSE was called before AC_AIX
> Sam> configure.ac:344: the top level
> Sam> configure.ac:344: warning: AC_RUN_IFELSE was called before AC_AIX
> Sam> ...
>
> Look easy to fix in your configure.ac.
my configure.ac is a temporary file generated from many individual
configure.in files in sub-packages:
CONFIGURES = src/configure \
modules/wildcard/configure modules/regexp/configure \
modules/clx/new-clx/configure modules/postgresql/configure \
modules/dirkey/configure modules/syscalls/configure \
modules/oracle/configure modules/fastcgi/configure \
modules/berkeley-db/configure modules/pcre/configure \
modules/rawsock/configure \
ffcall/configure ffcall/avcall/configure ffcall/vacall/configure \
ffcall/trampoline/configure ffcall/callback/configure \
ffcall/callback/vacall_r/configure \
ffcall/callback/trampoline_r/configure \
utils/hln/configure \
libcharset/configure
src/autoconf/aclocal.m4 : $(wildcard src/m4/*.m4) $(addsuffix .in,$(CONFIGURES))
egrep '(AC_INIT|AC_PREREQ)' src/configure.in > configure.ac
cat $(addsuffix .in,$(CONFIGURES)) | egrep -v
'(AC_INIT|AC_CONFIG_HEADER|AC_OUTPUT|AC_CONFIG_FILE.*(Makefile|link\.sh)|_CANONICAL_|AC_PREREQ)'
>> configure.ac
echo AC_OUTPUT >> configure.ac
aclocal -I `pwd`/src/m4 --output=src/autoconf/aclocal.m4
$(RM) configure.ac
thanks for your help.
--
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
WHO ATE MY BREAKFAST PANTS?