Mercurial > emacs
comparison configure.in @ 108375:973b5bc5fcfe
Merge from emacs-23
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sat, 08 May 2010 14:47:07 -0400 |
parents | 17d73312ed65 22f58204116d |
children | 203aa49071bf |
comparison
equal
deleted
inserted
replaced
108374:f043f612f6da | 108375:973b5bc5fcfe |
---|---|
2920 dnl Fixme: Use AC_FUNC_MEMCMP since memcmp is used. (Needs libobj replacement.) | 2920 dnl Fixme: Use AC_FUNC_MEMCMP since memcmp is used. (Needs libobj replacement.) |
2921 | 2921 |
2922 # Set up the CFLAGS for real compilation, so we can substitute it. | 2922 # Set up the CFLAGS for real compilation, so we can substitute it. |
2923 CFLAGS="$REAL_CFLAGS" | 2923 CFLAGS="$REAL_CFLAGS" |
2924 CPPFLAGS="$REAL_CPPFLAGS" | 2924 CPPFLAGS="$REAL_CPPFLAGS" |
2925 | |
2926 ## Hack to detect a buggy GCC version. | |
2927 if test "x$GCC" = xyes \ | |
2928 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ | |
2929 && test x"`echo $CFLAGS | grep '\-O@<:@23@:>@'`" != x \ | |
2930 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then | |
2931 AC_MSG_ERROR([GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.]) | |
2932 fi | |
2925 | 2933 |
2926 #### Find out which version of Emacs this is. | 2934 #### Find out which version of Emacs this is. |
2927 [version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | 2935 [version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ |
2928 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`] | 2936 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`] |
2929 if test x"${version}" = x; then | 2937 if test x"${version}" = x; then |