From: Paul Eggert Date: Fri, 18 Apr 2025 20:32:03 +0000 (-0700) Subject: config.status now checks for missing awk X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b73f28c5196de7f79d62f793cfc247d2d6910393;p=thirdparty%2Fautoconf.git config.status now checks for missing awk * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Diagnose missing awk and fail, rather than blundering on. --- diff --git a/NEWS b/NEWS index 0b57386c0..0899de5f5 100644 --- a/NEWS +++ b/NEWS @@ -43,6 +43,9 @@ GNU Autoconf NEWS - User visible changes. *** Autoconf no longer generates ${1+"$@"} in scripts, working around a bug in AIX 7.2 ksh93. +*** config.status now fails with a diagnostic if awk is missing, + rather than misbehaving. + * Noteworthy changes in release 2.72 (2023-12-22) [release] ** Backward incompatibilities diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4 index 4fd8f39b3..8bbf4b385 100644 --- a/lib/autoconf/status.m4 +++ b/lib/autoconf/status.m4 @@ -1470,7 +1470,13 @@ AC_PROVIDE_IFELSE([AC_PROG_MKDIR_P], AC_PROVIDE_IFELSE([AC_PROG_AWK], [AWK='$AWK' ])dnl -test -n "\$AWK" || AWK=awk +test -n "\$AWK" || { + awk '' >"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1