summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2001-11-06 07:20:20 +0000
committerHans-Peter Nilsson <hp@axis.com>2001-11-06 07:20:20 +0000
commite90ec5f1bbd4aa30c54f50092f41e1b049829d10 (patch)
tree2b37e1b2215df7ef1c7ac49ff50f50e672527b5a /Makefile.in
parentb409ecdc7506f00b00deb0416ef235652d29a826 (diff)
downloadgdb-e90ec5f1bbd4aa30c54f50092f41e1b049829d10.tar.gz
* Makefile.in (MAKEINFO): Use "missing" for makeinfo older than 4.0.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 0cfeb53dc09..2b713fa5787 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -141,9 +141,13 @@ M4 = `if [ -f $$r/m4/m4 ] ; \
then echo $$r/m4/m4 ; \
else echo ${DEFAULT_M4} ; fi`
+# For an installed makeinfo, we require it to be from texinfo 4 or
+# higher, else we use the "missing" dummy.
MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \
then echo $$r/texinfo/makeinfo/makeinfo ; \
- else echo makeinfo ; fi`
+ else if (makeinfo --version \
+ | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
+ then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
# This just becomes part of the MAKEINFO definition passed down to
# sub-makes. It lets flags be given on the command line while still