39 lines
1.6 KiB
Plaintext
39 lines
1.6 KiB
Plaintext
$OpenBSD: patch-bin_autom4te_in,v 1.1 2011/05/12 00:10:33 sthen Exp $
|
|
--- bin/autom4te.in.orig Wed Jul 22 14:45:09 2009
|
|
+++ bin/autom4te.in Mon Mar 8 12:06:34 2010
|
|
@@ -89,16 +89,9 @@ my $freeze = 0;
|
|
|
|
# $M4.
|
|
my $m4 = $ENV{"M4"} || '@M4@';
|
|
-# Some non-GNU m4's don't reject the --help option, so give them /dev/null.
|
|
-fatal "need GNU m4 1.4 or later: $m4"
|
|
- if system "$m4 --help </dev/null 2>&1 | grep reload-state >/dev/null";
|
|
|
|
-# Set some high recursion limit as the default limit, 250, has already
|
|
-# been hit with AC_OUTPUT. Don't override the user's choice.
|
|
-$m4 .= ' --nesting-limit=1024'
|
|
- if " $m4 " !~ / (--nesting-limit(=[0-9]+)?|-L[0-9]*) /;
|
|
+$m4 .= " -g -D__gnu__";
|
|
|
|
-
|
|
# @M4_BUILTIN -- M4 builtins and a useful comment.
|
|
my @m4_builtin = `echo dumpdef | $m4 2>&1 >/dev/null`;
|
|
map { s/:.*//;s/\W// } @m4_builtin;
|
|
@@ -464,11 +457,11 @@ 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 @M4_GNU@"
|
|
- . join (' --include=', '', map { shell_quote ($_) } @include)
|
|
- . ' --debug=aflq'
|
|
- . (!exists $ENV{'AUTOM4TE_NO_FATAL'} ? ' --fatal-warning' : '')
|
|
- . " @M4_DEBUGFILE@=" . shell_quote ("$tcache" . $req->id . "t")
|
|
- . join (' --trace=', '', map { shell_quote ($_) } sort @macro)
|
|
+ . join (' -I', '', map { shell_quote ($_) } @include)
|
|
+ . ' -daflq'
|
|
+# . (!exists $ENV{'AUTOM4TE_NO_FATAL'} ? ' --fatal-warning' : '')
|
|
+ . " -o" . shell_quote ($tcache . $req->id . "t")
|
|
+ . join (' -t', '', map { shell_quote ($_) } sort @macro)
|
|
. " " . files_to_options (@ARGV)
|
|
. " > " . shell_quote ("$ocache" . $req->id . "t"));
|
|
|