зеркало из https://github.com/mozilla/pjs.git
Add test for exceptions. Exceptions are illegal, but somebody (whose name
I dont want to say, but it rhymes with "fcc") is using them in a test program.
This commit is contained in:
Родитель
ef51b76f97
Коммит
90607bf011
11
configure.in
11
configure.in
|
@ -455,6 +455,17 @@ if test $ac_cv_cpp_explicit = yes ; then
|
|||
AC_DEFINE(HAVE_CPP_EXPLICIT)
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK(for C++ \"exceptions\",
|
||||
ac_cv_cpp_exceptions,
|
||||
[AC_TRY_COMPILE(class X { public: X() {} };
|
||||
static void F() { throw X(); },
|
||||
try { F(); } catch(X & e) { },
|
||||
ac_cv_cpp_exceptions=yes,
|
||||
ac_cv_cpp_exceptions=no)])
|
||||
if test $ac_cv_cpp_exceptions = yes ; then
|
||||
AC_DEFINE(HAVE_CPP_EXCEPTIONS)
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK(for C++ \"using\" keyword,
|
||||
ac_cv_cpp_using,
|
||||
[AC_TRY_COMPILE(class X { public: int go() {return 3;} };
|
||||
|
|
Загрузка…
Ссылка в новой задаче