summaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-07-27 16:30:46 +0000
committerMike Frysinger <vapier@gentoo.org>2012-07-27 16:30:46 +0000
commitff557cac634a7675676cb84a573ceadd8b4dbbcb (patch)
tree6f530137dc6de13ce0a5878f15b5ae4bd65bcdd0 /gprof
parent23ecd77a697ab1a77d95fa894483adb79ecd3fc4 (diff)
downloadbinutils-redhat-ff557cac634a7675676cb84a573ceadd8b4dbbcb.tar.gz
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 'gprof')
-rw-r--r--gprof/ChangeLog6
-rwxr-xr-xgprof/configure2
-rw-r--r--gprof/configure.in2
3 files changed, 8 insertions, 2 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index 9525010539..99e2aaab3b 100644
--- a/gprof/ChangeLog
+++ b/gprof/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-06-02 Andreas Schwab <schwab@linux-m68k.org>
* Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
diff --git a/gprof/configure b/gprof/configure
index 6ffdbe30ce..9f3be18964 100755
--- a/gprof/configure
+++ b/gprof/configure
@@ -3147,7 +3147,7 @@ if test "$ac_res" != no; then :
fi
-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'
# Find a good install program. We prefer a C program (faster),
diff --git a/gprof/configure.in b/gprof/configure.in
index 631e3e4673..5481fd4ae8 100644
--- a/gprof/configure.in
+++ b/gprof/configure.in
@@ -7,7 +7,7 @@ AC_CANONICAL_TARGET([])
AC_ISC_POSIX
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(gprof, ${BFD_VERSION})