diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2009-07-12 13:50:24 +0200 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2009-07-13 13:33:24 +0200 |
commit | ca833ef9f8645adf28781a9439723cbac8be2e22 (patch) | |
tree | 8e5530adc36dd6f285b1a9e0a2f3993e018be03b /bin | |
parent | 48e64006cefb6a583fd332947493313d63676622 (diff) | |
download | autoconf-ca833ef9f8645adf28781a9439723cbac8be2e22.tar.gz |
use m4 -g when available
M4sugar requires GNU m4 extensions to be enabled. Override
POSIXLY_CORRECT using -g.
2009-07-12 Paolo Bonzini <bonzini@gnu.org>
* m4/m4.m4: Test for -g.
* bin/Makefile.am: Substitute @M4_GNU@ into generated files.
* bin/autom4te.in: Pass @M4_GNU@ to m4.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/Makefile.am | 1 | ||||
-rw-r--r-- | bin/autom4te.in | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/Makefile.am b/bin/Makefile.am index ba88ab01..da65b85f 100644 --- a/bin/Makefile.am +++ b/bin/Makefile.am @@ -46,6 +46,7 @@ edit = sed \ -e 's|@autom4te-name[@]|'`echo autom4te | sed '$(transform)'`'|g' \ -e 's|@M4[@]|$(M4)|g' \ -e 's|@M4_DEBUGFILE[@]|$(M4_DEBUGFILE)|g' \ + -e 's|@M4_GNU[@]|$(M4_GNU)|g' \ -e 's|@AWK[@]|$(AWK)|g' \ -e 's|@RELEASE_YEAR[@]|'$(RELEASE_YEAR)'|g' \ -e 's|@VERSION[@]|$(VERSION)|g' \ diff --git a/bin/autom4te.in b/bin/autom4te.in index cf425bb4..1baf507f 100644 --- a/bin/autom4te.in +++ b/bin/autom4te.in @@ -463,7 +463,7 @@ sub handle_m4 ($@) # # We don't output directly to the cache files, to avoid problems # when we are interrupted (that leaves corrupted files). - xsystem ("$m4" + xsystem ("$m4 @M4_GNU@" . join (' --include=', '', map { shell_quote ($_) } @include) . ' --debug=aflq' . (!exists $ENV{'AUTOM4TE_NO_FATAL'} ? ' --fatal-warning' : '') |