# HG changeset patch # User "Yann E. MORIN" # Date 1399311395 -7200 # Node ID 021ddc052689acb1f3b1be614b5d19b64e272ab1 # Parent d3a628e69a465af2667c6f64de86ba4de11b2cff configure: prefer g-variants For awk and make, we currently check the standard names as found on a classic GNU-userland system, and then fallback to looking for the g-named variants as found on a *BSD system. But it happens that the usual name might also be available on a *BSD system, so we should first check the g-variant. Signed-off-by: "Yann E. MORIN" diff -r d3a628e69a46 -r 021ddc052689 configure.ac --- a/configure.ac Tue Mar 18 17:01:10 2014 +0100 +++ b/configure.ac Mon May 05 19:36:35 2014 +0200 @@ -195,7 +195,7 @@ [Specify the full PATH to GNU awk]), [ac_cv_path__AWK=$withval])]) AC_CACHE_CHECK([for GNU awk], [ac_cv_path__AWK], - [AC_PATH_PROGS_FEATURE_CHECK([_AWK], [awk gawk], + [AC_PATH_PROGS_FEATURE_CHECK([_AWK], [gawk awk], [[_AWK_ver=$($ac_path__AWK --version 2>&1 \ |$EGREP '^GNU Awk ') test -n "$_AWK_ver" && ac_cv_path__AWK=$ac_path__AWK ac_path__AWK_found=:]], @@ -211,7 +211,7 @@ [Specify the full PATH to GNU make >= 3.80]), [ac_cv_path_MAKE=$withval])]) AC_CACHE_CHECK([for GNU make >= 3.80], [ac_cv_path_MAKE], - [AC_PATH_PROGS_FEATURE_CHECK([MAKE], [make gmake], + [AC_PATH_PROGS_FEATURE_CHECK([MAKE], [gmake make], [[MAKE_ver=$($ac_path_MAKE --version 2>&1 \ |$EGREP '^GNU Make (3.[89][[:digit:]]|[4-9])') test -n "$MAKE_ver" && ac_cv_path_MAKE=$ac_path_MAKE ac_path_MAKE_found=:]],