summaryrefslogtreecommitdiff
path: root/opcodes/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/configure.in')
-rw-r--r--opcodes/configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/configure.in b/opcodes/configure.in
index dadfe4ae5a..89279608ac 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})