Use modern AC_INIT in configure.in
H.J. Lu
hjl.tools@gmail.com
Tue Jul 8 15:38:00 GMT 2014
On Thu, Jul 3, 2014 at 8:24 PM, Alan Modra <amodra@gmail.com> wrote:
> This removes usage of the obsolete AC_INIT and AM_INIT_AUTOMAKE in all
> binutils configure.in files. The BFD version is now in bfd/version.m4
> rather than bfd/configure.in, which allows automake to automatically
> track this dependency.
>
> Tristan, I made what I think are the necessary changes to
> gas/configure.com but can't test it, so please check that I didn't
> break anything there.
>
> bfd/
> * version.m4: New file.
> * configure.in: Include version.m4.
> (AC_INIT): Update.
> * Makefile.am (RELEASE): Delete.
> (bfdver.h): Depend on development.sh, use instead of RELEASE.
> * Makefile.in: Regenerate.
> * doc/Makefile.in: Regenerate.
> opcodes/
> * configure.in: Include bfd/version.m4.
> (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
> (BFD_VERSION): Delete.
> * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
> * configure: Regenerate.
> * Makefile.in: Regenerate.
> binutils/
> * configure.in: Include bfd/version.m4.
> (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
> (BFD_VERSION): Delete.
> * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
> * configure: Regenerate.
> * Makefile.in: Regenerate.
> * doc/Makefile.in: Regenerate.
> gas/
> * configure.in: Include bfd/version.m4.
> (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
> (BFD_VERSION): Delete.
> * configure.com: Get bfd version from bfd/version.m4.
> * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
> * configure: Regenerate.
> * Makefile.in: Regenerate.
> * doc/Makefile.in: Regenerate.
> gprof/
> * configure.in: Include bfd/version.m4.
> (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
> (BFD_VERSION): Delete.
> * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
> * configure: Regenerate.
> * Makefile.in: Regenerate.
> ld/
> * configure.in: Include bfd/version.m4.
> (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
> (BFD_VERSION): Delete.
> * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
> * configure: Regenerate.
> * Makefile.in: Regenerate.
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?
H.J.
More information about the Binutils
mailing list