autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gawk <-> mawk


From: Jens Petersen
Subject: gawk <-> mawk
Date: 19 Oct 2001 17:54:37 +0900
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

Hi,

Since gawk is generally considered to be a better awk
implementation and better maintained, here is a patch to
prefer gawk to mawk by default.

Cheers, Jens


2001-10-19  Jens Petersen  <address@hidden>

        * lib/autoconf/programs.m4 (AC_PROG_AWK): gawk before mawk since
        it is better.

        * doc/autoconf.texi (Particular Programs): Ditto.

        * configure (am_aux_dir): gawk before mawk.


Index: configure
===================================================================
RCS file: /cvsroot/autoconf/autoconf/configure,v
retrieving revision 1.177
diff -u -r1.177 configure
--- configure   2001/10/19 00:24:47     1.177
+++ configure   2001/10/19 07:03:21
@@ -1223,7 +1223,7 @@
 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" 
>&2;}
 fi
 
-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
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.550
diff -u -r1.550 autoconf.texi
--- doc/autoconf.texi   2001/10/10 12:58:44     1.550
+++ doc/autoconf.texi   2001/10/19 06:36:05
@@ -3016,10 +3016,10 @@
 @defmac AC_PROG_AWK
 @acindex 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 is found.
-It tries @code{mawk} first because that is reported to be the
-fastest implementation.
+It tries @code{gawk} first because that is reported to be the
+best implementation.
 @end defmac
 
 
Index: lib/autoconf/programs.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/programs.m4,v
retrieving revision 1.5
diff -u -r1.5 programs.m4
--- lib/autoconf/programs.m4    2001/09/22 15:20:45     1.5
+++ lib/autoconf/programs.m4    2001/10/19 06:36:05
@@ -256,9 +256,9 @@
 # Please, keep this section sorted.
 # (But of course when keeping related things together).
 
-# Check for mawk first since it's generally faster.
+# Check for gawk first since it's generally better.
 AC_DEFUN([AC_PROG_AWK],
-[AC_CHECK_PROGS(AWK, mawk gawk nawk awk, )])
+[AC_CHECK_PROGS(AWK, gawk mawk nawk awk, )])
 
 
 # AC_PROG_INSTALL



reply via email to

[Prev in Thread] Current Thread [Next in Thread]