autoconf
[Top][All Lists]
Advanced

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

Re: AC_INIT


From: Patrick Welche
Subject: Re: AC_INIT
Date: Fri, 5 Dec 2003 12:39:39 +0000
User-agent: Mutt/1.5.4i

On Thu, Dec 04, 2003 at 08:25:20PM +0100, Peter Eisentraut wrote:
> Patrick Welche writes:
> 
> > I thought the following looked nice:
> >
> > NETATALK_VERSION=`cat $srcdir/VERSION`
> > AC_INIT(netatalk, ${NETATALK_VERSION},...
> >
> > but then
> >
> > configure.in:5: warning: AC_INIT: not a literal: ${NETATALK_VERSION}
> >
> > Is there a way round it?
> 
> AC_INIT(netatalk, esyscmd([cat VERSION]))

Looked good, but it seems the trailing newline of esyscmd's expansion is
messing things up..

| #define PACKAGE_VERSION "1.7cvs
| "

seems alright, but then:

PACKAGE_VERSION='1.7cvs
PAMDIR=''

woops..

Anyway, thanks for the tip (I might just do things backwards and
echo $PACKAGE_VERSION > VERSION),

Patrick




reply via email to

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