summaryrefslogtreecommitdiff
path: root/gcc/aclocal.m4
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-02 19:09:24 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-02 19:09:24 +0000
commit049ccec11c335a08a6f28a508197f788c2569b39 (patch)
tree5c39ae7eac7a60fee25e223f348c96c2bd7e0209 /gcc/aclocal.m4
parent43b264ca18937ecf1736ebca08b13bff3eff2cbc (diff)
downloadgcc-049ccec11c335a08a6f28a508197f788c2569b39.tar.gz
* aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
* configure.in: Look for makeinfo in the unified tree, then for a system makeinfo which is sufficiently new. * Makefile.in: If configure says makeinfo is too old, don't build or install Info documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33614 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r--gcc/aclocal.m425
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4
index 6e8e7556f18..ddfc65131f6 100644
--- a/gcc/aclocal.m4
+++ b/gcc/aclocal.m4
@@ -798,3 +798,28 @@ if test $ac_cv_func_mmap_file = yes; then
[Define if read-only mmap of a plain file works.])
fi
])
+
+dnl Locate a program and check that its version is acceptable.
+dnl AC_PROG_CHECK_VER(var, name, version-switch,
+dnl version-extract-regexp, version-glob)
+AC_DEFUN(gcc_AC_CHECK_PROG_VER,
+[AC_CHECK_PROG([$1], [$2], [$2])
+if test -n "[$]$1"; then
+ # Found it, now check the version.
+ AC_CACHE_CHECK(for modern $2, gcc_cv_prog_$2_modern,
+[changequote(<<,>>)dnl
+ ac_prog_version=`<<$>>$1 $3 2>&1 |
+ sed -n 's/^.*patsubst(<<$4>>,/,\/).*$/\1/p'`
+ echo "configure:__oline__: version of $2 is $ac_prog_version" >&AC_FD_CC
+ case $ac_prog_version in
+ '') gcc_cv_prog_$2_modern=no;;
+ <<$5>>)
+ gcc_cv_prog_$2_modern=yes;;
+ *) gcc_cv_prog_$2_modern=no;;
+ esac
+changequote([,])dnl
+])
+else
+ gcc_cv_prog_$2_modern=no
+fi
+])