[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Computed version number in configure.ac
From: |
Guillaume Chazarain |
Subject: |
Re: Computed version number in configure.ac |
Date: |
Thu, 14 Mar 2002 21:25:24 +0100 |
>> Well, I couldn't make esyscmd([head -n 1 NEWS]) work in an AC_INIT arg.
>
> Works here. What's happening in your case?
------------------
> If I were you, I would not try to do that, but that's only my opinion,
> no flamewar needed.
>
> /tmp % cat configure.ac nostromo
> 18:42
> AC_INIT([Foo], esyscmd([cat version | tr -d '\n']), address@hidden)
> /tmp % autoconf nostromo
> 18:42
> /tmp % ./configure --version nostromo
> 18:42
> Foo configure Dead broken.
The trailing newline inserted by esyscmd was the problem.
For example,
# Generated by GNU Autoconf 2.53 for gliv <version number>.
expanded to
# Generated by GNU Autoconf 2.53 for gliv 1.5.1
.
Now everything works fine.
Thank you all, for your patience.
Guillaume