autoconf
[Top][All Lists]
Advanced

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

Re: autoheader problem


From: Akim Demaille
Subject: Re: autoheader problem
Date: 27 Mar 2001 18:58:37 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

>>>>> "Lars" == Lars J Aas <address@hidden> writes:

Lars> The autoheader utility seems to deal fine with
Lars> AC_CONFIG_HEADERS([config.h include/Inventor/SbBasic.h
Lars> include/Inventor/system/inttypes.h])

Lars> but not with

Lars> AC_CONFIG_HEADERS([ config.h include/Inventor/SbBasic.h
Lars> include/Inventor/system/inttypes.h ])

Lars> Probably trivial to fix - apply m4_strip to $1 somewhere - but
Lars> I'm not familiar with autoheader internals - yet.

Thanks Lars.  I'm applying this.  Does it look correct to everybody?
Anything to fear about my dropping the quotes?  Alexandre?  The
problem was that:

AC_INIT
AC_CONFIG_HEADERS(foo.h
bar.h)

/tmp % less /tmp/ah25656/traces.sh                               nostromo 18:52
: ${config_h="foo.h
bar.h"}

there is a new line in config_h, which was not cut by sed.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * autoheader.sh (config_h): Be robust to new lines when extracting
        the first argument of AC_CONFIG_HEADERS.
        Reported by Lars J. Aas.

Index: autoheader.sh
===================================================================
RCS file: /cvs/autoconf/autoheader.sh,v
retrieving revision 1.94
diff -u -u -r1.94 autoheader.sh
--- autoheader.sh 2001/02/06 13:47:53 1.94
+++ autoheader.sh 2001/03/27 16:45:04
@@ -285,7 +285,7 @@
 
 
 # We template only the first CONFIG_HEADER.
-config_h=`echo "$config_h" | sed -e 's/ .*//'`
+config_h=`set X $config_h; echo $2`
 # Support "outfile[:infile]", defaulting infile="outfile.in".
 case "$config_h" in
 "") echo "$me: error: AC_CONFIG_HEADERS not found in $infile" >&2



reply via email to

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