Commit 758a2c96 by Daniel Franke Committed by Daniel Franke

re PR libgomp/30546 (build fail in libgomp when building from SVN because makeinfo is missing)

2007-01-31  Daniel Franke <franke.daniel@gmail.com>

        PR libgomp/30546
        * acx.m4 (ACX_PROG_CHECK_VER): Locate a program and check that its
        version is acceptable.

From-SVN: r121439
parent d36114b2
2007-01-31 Daniel Franke <franke.daniel@gmail.com>
PR libgomp/30546
* acx.m4 (ACX_PROG_CHECK_VER): Locate a program and check that its
version is acceptable.
2007-01-27 Paolo Bonzini <bonzini@gnu.org> 2007-01-27 Paolo Bonzini <bonzini@gnu.org>
* depstand.m4 (ZW_CREATE_DEPDIR): Use mkinstalldirs to make * depstand.m4 (ZW_CREATE_DEPDIR): Use mkinstalldirs to make
......
...@@ -491,3 +491,31 @@ else ...@@ -491,3 +491,31 @@ else
fi fi
fi fi
AC_SUBST($2)]) AC_SUBST($2)])
dnl Locate a program and check that its version is acceptable.
dnl ACX_PROG_CHECK_VER(var, name, version-switch,
dnl version-extract-regexp, version-glob)
AC_DEFUN([ACX_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],
[ac_prog_version=`eval [$]$1 $3 2>&1 |
sed -n 's/^.*patsubst([[$4]],/,\/).*$/\1/p'`
[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]
if test $gcc_cv_prog_$2_modern = no; then
$1="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing $2"
fi
])
else
gcc_cv_prog_$2_modern=no
fi
])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment