The following changes avoid polluting global namespace with the
[deliverable/binutils-gdb.git] / Makefile.in
index 8b442f04729f5b02f169e1ec85c2fc950904924b..ed3ab75548bbd43b5881045d61f16bb94d847a91 100644 (file)
@@ -1757,7 +1757,9 @@ SUPPORT_FILES = list-of-support-files-for-tool-in-question
 
 # NOTE: No double quotes in the below.  It is used within shell script
 # as VER="$(VER)"
-VER = `        if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
+VER = `        if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
+         sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
+       elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
          sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
        elif test -f $(TOOL)/version.in; then \
          head -1 $(TOOL)/version.in; \
This page took 0.023419 seconds and 4 git commands to generate.