aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2019-01-01 08:23:51 +1100
committerBen Elliston <bje@gnu.org>2019-01-01 08:23:51 +1100
commitb49747de11a5b948f7ec42616d5366298405d03a (patch)
tree7fd38aa4d1cc55b3fbc9d5f3a6a16a8e541f7fb8 /configure
parent6c7789fa9f57bcf6a7fd516b45748f972a27bade (diff)
downloaddejagnu-b49747de11a5b948f7ec42616d5366298405d03a.zip
dejagnu-b49747de11a5b948f7ec42616d5366298405d03a.tar.gz
dejagnu-b49747de11a5b948f7ec42616d5366298405d03a.tar.bz2
* configure.ac: Add AC_PROG_AWK check.
* configure: Regenerate.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure42
1 files changed, 42 insertions, 0 deletions
diff --git a/configure b/configure
index 346ae3f..3ec34c6 100755
--- a/configure
+++ b/configure
@@ -2518,6 +2518,48 @@ $as_echo "no" >&6; }
fi
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_AWK+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AWK"; then
+ ac_cv_prog_AWK="$AWK" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_AWK="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AWK=$ac_cv_prog_AWK
+if test -n "$AWK"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
+$as_echo "$AWK" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$AWK" && break
+done
+
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'