X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=Makefile.in;h=ed3ab75548bbd43b5881045d61f16bb94d847a91;hb=b5de0fa7413a260aa570079b5d168ea8781dac4e;hp=8b442f04729f5b02f169e1ec85c2fc950904924b;hpb=31a8b63419de359734d3e3a309cfe71b92dc264f;p=deliverable%2Fbinutils-gdb.git diff --git a/Makefile.in b/Makefile.in index 8b442f0472..ed3ab75548 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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; \