This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Use modern AC_INIT in configure.in
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Wed, 9 Jul 2014 09:23:48 +0930
- Subject: Re: Use modern AC_INIT in configure.in
- Authentication-results: sourceware.org; auth=none
- References: <20140704032407 dot GN4471 at bubble dot grove dot modra dot org> <CAMe9rOrDmAr2rwO1sX=UefqtggpKXLYmmwV+f3j_PhR1UQiJzg at mail dot gmail dot com>
On Tue, Jul 08, 2014 at 08:38:30AM -0700, H.J. Lu wrote:
> The old one has
>
> changequote(,)dnl
> BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
> changequote([,])dnl
> AM_INIT_AUTOMAKE(ld, ${BFD_VERSION})
>
> When BFD_VERSION is changed, we only need to regenerate
> configure in bfd. Can we make it to work with the new scheme?
You can, by using m4_esyscmd to extract the version from
bfd/configure.ac to set versions in other configure dirs, but that way
is a bit messy. I wrote it like that at first, then saw that the
automake docs recommend using an m4 version file.
--
Alan Modra
Australia Development Lab, IBM