Re: fedora 42 doesn't have awk: how to deal with autoconf subst?
Bruno Haible via Bug reports for autoconf <[email protected]> Thu, 17 Apr 2025 14:18:44 +0200
| Newsgroups | gmane.comp.sysutils.autoconf.bugs,gmane.comp.lib.gnulib.bugs,gmane.comp.lib.gnulib.bugs |
|---|---|
| Organization | GNU |
| Message-ID | <1775200.uacIGzncQW@nimes> |
Simon Josefsson wrote:
> 0) Modify autoconf to continue to work in this situation without awk,
> replacing it with more POSIX shell or something else?
Many years ago, Autoconf produced configure scripts that used 'sed'
for the job of replacing the various @FOO@ occurrences in *.in files.
When they switched to 'awk', it was for speed reasons, IIRC.
Paul Eggert wrote:
> This repeats the
> list of programs mentioned in the GNU Coding Standards
> <https://www.gnu.org/prep/standards/html_node/Utilities-in-Makefiles.html>,
> except it adds [ (which Autoconf-generated scripts use) and omits
> install-info, ln, sleep, and tar (which I don't think they do).
'sleep' is used by the Automake macros: In any configure script generated
with Autoconf + Automake, you find:
sleep $am_try_res
sleep $am_try_res
sleep $am_try_res
sleep "$am_cv_filesystem_timestamp_resolution"
I don't think it's worth making a distinction here between Autoconf and
"Autoconf + Automake", since most packages that use Autoconf also use
Automake.
Bruno