diff options
author | Ben Elliston <bje@gnu.org> | 2019-01-01 08:23:51 +1100 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2019-01-01 08:23:51 +1100 |
commit | b49747de11a5b948f7ec42616d5366298405d03a (patch) | |
tree | 7fd38aa4d1cc55b3fbc9d5f3a6a16a8e541f7fb8 | |
parent | 6c7789fa9f57bcf6a7fd516b45748f972a27bade (diff) | |
download | dejagnu-b49747de11a5b948f7ec42616d5366298405d03a.zip dejagnu-b49747de11a5b948f7ec42616d5366298405d03a.tar.gz dejagnu-b49747de11a5b948f7ec42616d5366298405d03a.tar.bz2 |
* configure.ac: Add AC_PROG_AWK check.
* configure: Regenerate.
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | configure | 42 | ||||
-rw-r--r-- | configure.ac | 1 |
3 files changed, 48 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2019-01-01 Ben Elliston <bje@gnu.org> + + * configure.ac: Add AC_PROG_AWK check. + * configure: Regenerate. + 2018-12-29 Jacob Bachmeyer <jcb62281@gmail.com> * dejagnu: Avoid use of semicolon as sed(1) command separator. @@ -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' diff --git a/configure.ac b/configure.ac index c106c14..336b585 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,7 @@ AM_INIT_AUTOMAKE([1.14 subdir-objects]) AM_MAINTAINER_MODE AC_PROG_MAKE_SET +AC_PROG_AWK AC_PROG_CC AC_PROG_CXX AC_PROG_INSTALL |