]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.ac (MAKEINFO): Clean up some configuration bitrot.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Sep 2014 02:02:46 +0000 (19:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Sep 2014 02:02:46 +0000 (19:02 -0700)
MAKEINFO is already set before we get here, so no need to call AC_PATH_PROG.
Bypass $am_missing_run.  Simplify version-number checking.

ChangeLog
configure.ac

index 8a7920f57cdf23b6c859ce27b271cc06ab0ea00d..bbf651057f8bc34e5358fd356588565ac4c78324 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * configure.ac (MAKEINFO): Clean up some configuration bitrot.
+       MAKEINFO is already set before we get here, so no need to call AC_PATH_PROG.
+       Bypass $am_missing_run.  Simplify version-number checking.
+
 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
 
        Merge from gnulib, incorporating:
index 912fac178e4d67056c0afe82dc17e3236ba8a7e0..cccd73ee420ea3cbcf3a761727860971e6d74826 100644 (file)
@@ -1087,15 +1087,16 @@ if test $opsys = gnu-linux; then
 fi
 
 ## Need makeinfo >= 4.7 (?) to build the manuals.
-AC_PATH_PROG(MAKEINFO, makeinfo, no)
-dnl By this stage, configure has already checked for egrep and set EGREP,
-dnl or exited with an error if no egrep was found.
 if test "$MAKEINFO" != "no"; then
-  case `
-    $MAKEINFO --version 2> /dev/null |
-    $EGREP 'texinfo[[^0-9]]*([[1-4]][[0-9]]+|[[5-9]]|4\.[[7-9]]|4\.[[1-6]][[0-9]]+)'
-  ` in
-    '') MAKEINFO=no;;
+  if test "$MAKEINFO" = "${am_missing_run}makeinfo"; then
+    MAKEINFO=makeinfo
+  fi
+  case `($MAKEINFO --version) 2>/dev/null` in
+    'makeinfo (GNU texinfo) '4.[[7-9]]* | \
+    'makeinfo (GNU texinfo) '4.[[1-9][0-9]]* | \
+    'makeinfo (GNU texinfo) '[[5-9]]* | \
+    'makeinfo (GNU texinfo) '[[1-9][0-9]]* ) ;;
+    *) MAKEINFO=no;;
   esac
 fi