diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-07-27 16:30:57 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-07-27 16:30:57 +0000 |
commit | c4dd807e7bd468289a05d8af2d6cde45d727893b (patch) | |
tree | 997cd50308dde6d61fabc28e9c5ae4e5523b66d7 /opcodes | |
parent | a8a64aa848820a3143319ad3bce00d1a2f815cc5 (diff) | |
download | gdb-c4dd807e7bd468289a05d8af2d6cde45d727893b.zip gdb-c4dd807e7bd468289a05d8af2d6cde45d727893b.tar.gz gdb-c4dd807e7bd468289a05d8af2d6cde45d727893b.tar.bz2 |
bfd: update to AC_INIT
Move the package name/version from AM_INIT_AUTOMAKE to AC_INIT per recent
autotools guidelines. We use recent versions of both, so it shouldn't be
a problem.
This sets PACKAGE_xxx variables correctly, and makes the output of:
./configure --version
actually useful:
bfd configure 2.22.52
Changing the other dirs to use AC_INIT would require a bit of m4 trickery
that I don't feel like getting into, and they all use BFD_VERSION anyways,
so there isn't much point.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 6 | ||||
-rwxr-xr-x | opcodes/configure | 2 | ||||
-rw-r--r-- | opcodes/configure.in | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 25cedff..7baaf30 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2012-07-27 Mike Frysinger <vapier@gentoo.org> + + * configure.in (BFD_VERSION): Run bfd/configure --version and + parse the output of that. + * configure: Regenerate. + 2012-07-25 James Lemke <jwlemke@codesourcery.com> * ppc-opc.c (powerpc_opcodes): Add/remove PPCVLE for some 32-bit insns. diff --git a/opcodes/configure b/opcodes/configure index dbfca48..7e94615 100755 --- a/opcodes/configure +++ b/opcodes/configure @@ -3215,7 +3215,7 @@ fi # We currently only use the version number for the name of any shared # library. For user convenience, we always use the same version # number that BFD is using. -BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` +BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'` am__api_version='1.11' diff --git a/opcodes/configure.in b/opcodes/configure.in index dadfe4a..8927960 100644 --- a/opcodes/configure.in +++ b/opcodes/configure.in @@ -12,7 +12,7 @@ AC_ISC_POSIX # library. For user convenience, we always use the same version # number that BFD is using. changequote(,)dnl -BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` +BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'` changequote([,])dnl AM_INIT_AUTOMAKE(opcodes, ${BFD_VERSION}) |