Lines 3601-3618
Link Here
|
3601 |
AC_MSG_CHECKING(for C++ exceptions flag) |
3601 |
AC_MSG_CHECKING(for C++ exceptions flag) |
3602 |
|
3602 |
|
3603 |
dnl They changed -f[no-]handle-exceptions to -f[no-]exceptions in g++ 2.8 |
3603 |
dnl They changed -f[no-]handle-exceptions to -f[no-]exceptions in g++ 2.8 |
|
|
3604 |
dnl No desktop is built with g++ <2.8 nowadays |
3604 |
AC_CACHE_VAL(ac_cv_cxx_exceptions_flags, |
3605 |
AC_CACHE_VAL(ac_cv_cxx_exceptions_flags, |
3605 |
[echo "int main() { return 0; }" | cat > conftest.C |
3606 |
[ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-exceptions]) |
3606 |
|
|
|
3607 |
${CXX-g++} ${CXXFLAGS} -c -fno-handle-exceptions conftest.C > conftest.out 2>&1 |
3608 |
|
3609 |
if egrep "warning.*renamed" conftest.out >/dev/null; then |
3610 |
ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-exceptions |
3611 |
else |
3612 |
ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-handle-exceptions |
3613 |
fi |
3614 |
|
3615 |
rm -f conftest*]) |
3616 |
|
3607 |
|
3617 |
AC_MSG_RESULT($ac_cv_cxx_exceptions_flags) |
3608 |
AC_MSG_RESULT($ac_cv_cxx_exceptions_flags) |
3618 |
_MOZ_EXCEPTIONS_FLAGS_OFF=$ac_cv_cxx_exceptions_flags |
3609 |
_MOZ_EXCEPTIONS_FLAGS_OFF=$ac_cv_cxx_exceptions_flags |