summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2014-05-05 17:36:35 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2014-05-05 17:36:35 (GMT)
commit341a0400ba652e15a7e8a61548c87a52f4a7fdb0 (patch)
tree5d2c9d805979ee16c40c24f05512d252e2657dbe
parentf364368350841e9b119be39c569d829773bb711d (diff)
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>
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 705980f..37bcba4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -195,7 +195,7 @@ AC_CACHE_VAL([ac_cv_path__AWK],
[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 @@ AC_CACHE_VAL([ac_cv_path_MAKE],
[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=:]],