Use modern AC_INIT in configure.in
Alan Modra
amodra@gmail.com
Tue Jul 8 23:54:00 GMT 2014
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
More information about the Binutils
mailing list