From aa845cf5e040864ad62d96e31ae04bfcc2594431 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sun, 18 Nov 2012 07:40:22 -0800 Subject: [PATCH] autoconf-2.13-mawk --- acspecific.m4 | 4 ++-- autoconf.texi | 6 +++--- configure | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/acspecific.m4 b/acspecific.m4 index 5c6f1c9..8609f07 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -479,9 +479,9 @@ AC_SUBST([SET_MAKE])dnl AC_DEFUN(AC_PROG_RANLIB, [AC_CHECK_PROG(RANLIB, ranlib, ranlib, :)]) -dnl Check for mawk first since it's generally faster. +dnl Don't check for mawk first even if it's generally faster. AC_DEFUN(AC_PROG_AWK, -[AC_CHECK_PROGS(AWK, mawk gawk nawk awk, )]) +[AC_CHECK_PROGS(AWK, gawk mawk nawk awk, )]) AC_DEFUN(AC_PROG_YACC, [AC_CHECK_PROGS(YACC, 'bison -y' byacc, yacc)]) diff --git a/autoconf.texi b/autoconf.texi index 22a2ccd..fd854b6 100644 --- a/autoconf.texi +++ b/autoconf.texi @@ -1535,10 +1535,10 @@ according to whether @code{lex} or @code{flex} is being used. @defmac AC_PROG_AWK @maindex PROG_AWK @ovindex AWK -Check for @code{mawk}, @code{gawk}, @code{nawk}, and @code{awk}, in that +Check for @code{gawk}, @code{mawk}, @code{nawk}, and @code{awk}, in that order, and set output variable @code{AWK} to the first one that it -finds. It tries @code{mawk} first because that is reported to be the -fastest implementation. +finds. It tries @code{gawk} first because that is reported to be the +best implementation. @end defmac @defmac AC_PROG_CC diff --git a/configure b/configure index 7c2ad02..58c723d 100755 --- a/configure +++ b/configure @@ -583,7 +583,7 @@ test -n "$M4" && break done test -n "$M4" || M4="m4" -for ac_prog in mawk gawk nawk awk +for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -- 2.7.4