configure: prefer g-variants
author"Yann E. MORIN" <yann.morin.1998@free.fr>
Mon May 05 19:36:35 2014 +0200 (2014-05-05)
changeset 3297021ddc052689
parent 3296 d3a628e69a46
child 3298 1c6c2a687f63
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" <yann.morin.1998@free.fr>
configure.ac
     1.1 --- a/configure.ac	Tue Mar 18 17:01:10 2014 +0100
     1.2 +++ b/configure.ac	Mon May 05 19:36:35 2014 +0200
     1.3 @@ -195,7 +195,7 @@
     1.4                         [Specify the full PATH to GNU awk]),
     1.5          [ac_cv_path__AWK=$withval])])
     1.6  AC_CACHE_CHECK([for GNU awk], [ac_cv_path__AWK],
     1.7 -    [AC_PATH_PROGS_FEATURE_CHECK([_AWK], [awk gawk],
     1.8 +    [AC_PATH_PROGS_FEATURE_CHECK([_AWK], [gawk awk],
     1.9          [[_AWK_ver=$($ac_path__AWK --version 2>&1 \
    1.10                       |$EGREP '^GNU Awk ')
    1.11            test -n "$_AWK_ver" && ac_cv_path__AWK=$ac_path__AWK ac_path__AWK_found=:]],
    1.12 @@ -211,7 +211,7 @@
    1.13                         [Specify the full PATH to GNU make >= 3.80]),
    1.14          [ac_cv_path_MAKE=$withval])])
    1.15  AC_CACHE_CHECK([for GNU make >= 3.80], [ac_cv_path_MAKE],
    1.16 -    [AC_PATH_PROGS_FEATURE_CHECK([MAKE], [make gmake],
    1.17 +    [AC_PATH_PROGS_FEATURE_CHECK([MAKE], [gmake make],
    1.18          [[MAKE_ver=$($ac_path_MAKE --version 2>&1 \
    1.19                       |$EGREP '^GNU Make (3.[89][[:digit:]]|[4-9])')
    1.20            test -n "$MAKE_ver" && ac_cv_path_MAKE=$ac_path_MAKE ac_path_MAKE_found=:]],