--- configure.in.orig 2009-03-27 18:26:51.000000000 +0100 +++ configure.in 2009-03-27 18:28:57.000000000 +0100 @@ -3601,18 +3601,9 @@ AC_MSG_CHECKING(for C++ exceptions flag) dnl They changed -f[no-]handle-exceptions to -f[no-]exceptions in g++ 2.8 + dnl No desktop is built with g++ <2.8 nowadays AC_CACHE_VAL(ac_cv_cxx_exceptions_flags, - [echo "int main() { return 0; }" | cat > conftest.C - - ${CXX-g++} ${CXXFLAGS} -c -fno-handle-exceptions conftest.C > conftest.out 2>&1 - - if egrep "warning.*renamed" conftest.out >/dev/null; then - ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-exceptions - else - ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-handle-exceptions - fi - - rm -f conftest*]) + [ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-exceptions]) AC_MSG_RESULT($ac_cv_cxx_exceptions_flags) _MOZ_EXCEPTIONS_FLAGS_OFF=$ac_cv_cxx_exceptions_flags --- configure.orig 2009-03-27 18:26:53.000000000 +0100 +++ configure 2009-03-27 18:29:22.000000000 +0100 @@ -11210,17 +11210,7 @@ if eval "test \"`echo '$''{'ac_cv_cxx_exceptions_flags'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - echo "int main() { return 0; }" | cat > conftest.C - - ${CXX-g++} ${CXXFLAGS} -c -fno-handle-exceptions conftest.C > conftest.out 2>&1 - - if egrep "warning.*renamed" conftest.out >/dev/null; then - ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-exceptions - else - ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-handle-exceptions - fi - - rm -f conftest* + ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-exceptions fi