aboutsummaryrefslogtreecommitdiff
path: root/opcodes/configure
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/configure')
-rwxr-xr-xopcodes/configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/configure b/opcodes/configure
index 6301ad6..9f6dcf2 100755
--- a/opcodes/configure
+++ b/opcodes/configure
@@ -777,7 +777,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=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
+BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or