diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2010-05-08 14:47:07 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2010-05-08 14:47:07 -0400 |
commit | 0235128c15aabd21b37e7a359b4932709471f156 (patch) | |
tree | 4f32e3a638c4e3d6e7d9c232b3e0b4b939368f54 /configure | |
parent | ca63fca5b669d42d8c131a1f33446d9a9d7795f6 (diff) | |
parent | 19ae0deb1c8c9475eb81daf7876cec5a44b5d5e0 (diff) | |
download | emacs-0235128c15aabd21b37e7a359b4932709471f156.tar.gz |
Merge from emacs-23
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure index 64da8c4f8b4..2a9c466400c 100755 --- a/configure +++ b/configure @@ -26209,6 +26209,16 @@ fi CFLAGS="$REAL_CFLAGS" CPPFLAGS="$REAL_CPPFLAGS" +## Hack to detect a buggy GCC version. +if test "x$GCC" = xyes \ + && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ + && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ + && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then + { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5 +$as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;} + { (exit 1); exit 1; }; } +fi + #### Find out which version of Emacs this is. version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` |