diff options
author | rwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-05 07:32:50 +0000 |
---|---|---|
committer | rwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-05 07:32:50 +0000 |
commit | 8fa92398162bb69909b935f6694d8d4a8574917f (patch) | |
tree | 9ef3886585471b97dfacbf01721b48dade919716 /config/override.m4 | |
parent | 3c4b11117205e7b250e9a5ed8a20233783184260 (diff) | |
download | gcc-8fa92398162bb69909b935f6694d8d4a8574917f.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170697 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config/override.m4')
-rw-r--r-- | config/override.m4 | 6 |
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], |