You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2009/11/14 21:03:43 UTC

svn commit: r836254 - /httpd/mod_ftp/trunk/configure.apxs

Author: trawick
Date: Sat Nov 14 20:03:43 2009
New Revision: 836254

URL: http://svn.apache.org/viewvc?rev=836254&view=rev
Log:
bring over r836253 from mod_fcgid:

use httpd's (AC_PROG_AWK) choice of awk instead of choosing one here

/usr/xpg4/bin/awk isn't part of httpd's selection, but it isn't
needed with current awk language use

allow override with AWK envvar

hint by wrowe, research by rjung

PR: 48067

Modified:
    httpd/mod_ftp/trunk/configure.apxs

Modified: httpd/mod_ftp/trunk/configure.apxs
URL: http://svn.apache.org/viewvc/httpd/mod_ftp/trunk/configure.apxs?rev=836254&r1=836253&r2=836254&view=diff
==============================================================================
--- httpd/mod_ftp/trunk/configure.apxs (original)
+++ httpd/mod_ftp/trunk/configure.apxs Sat Nov 14 20:03:43 2009
@@ -43,17 +43,8 @@
 exp_ftpdocsdir=`$APXS -q exp_datadir`/ftpdocs
 FTPPORT=21
 
-echo "Selecting a suitable awk"
-# find the most suitable awk, allowing user to override with AWK
-for a in gawk mawk /usr/xpg4/bin/awk nawk; do
-    if test -z "$AWK"; then
-        if $a '{print}' <$0 >/dev/null 2>&1; then
-            AWK=$a
-        fi
-    fi
-done
 if test -z "$AWK"; then
-    AWK=awk
+    AWK=`$APXS -q AWK`
 fi
 
 for i in Makefile build/Makefile modules/ftp/Makefile modules/ftp/modules.mk; do