summaryrefslogtreecommitdiff
path: root/config/override.m4
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2011-03-05 07:33:13 +0000
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2011-03-05 07:33:13 +0000
commit19d40f47fbfcfa70eb2658b5857b82725a3fb7aa (patch)
tree60156d37399375549c18d6bb9ada356bfe7f0931 /config/override.m4
parent76968cd942941b6020bffc90bb3f2318932c29a8 (diff)
downloadgdb-19d40f47fbfcfa70eb2658b5857b82725a3fb7aa.tar.gz
Guard against M4 versions with a buggy strstr.
config/: * override.m4: Error out if a buggy M4 was detected, to avoid spurious diffs in generated files.
Diffstat (limited to 'config/override.m4')
-rw-r--r--config/override.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/config/override.m4 b/config/override.m4
index fc2d5272d74..52bd1c3d1b8 100644
--- a/config/override.m4
+++ b/config/override.m4
@@ -48,6 +48,12 @@ _GCC_AUTOCONF_VERSION_CHECK
])
+dnl Ensure we do not use a buggy M4.
+m4_if(m4_index([..wi.d.], [.d.]), [-1],
+ [m4_fatal(m4_do([m4 with buggy strstr detected. Please install
+GNU M4 1.4.16 or newer and set the M4 environment variable]))])
+
+
dnl Fix 2.64 cross compile detection for AVR and RTEMS
dnl by not trying to compile fopen.
m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.64],