mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
Use autoconf magic to switch AC_ tests to use C++ instead of C.
This commit is contained in:
parent
a33cbfa6ce
commit
85bcdf7d37
@ -741,10 +741,8 @@ if test "$GNU_CXX"; then
|
||||
fi
|
||||
|
||||
dnl Put your C++ language/feature checks below
|
||||
dnl Is there a way to make AC_TRY_COMPILE use CXX instead of CC?
|
||||
_SAVE_CC=$CC
|
||||
CC=$CXX
|
||||
ac_ext=C
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUS_PLUS
|
||||
AC_MSG_CHECKING(for ios::binary)
|
||||
AC_CACHE_VAL(ac_cv_ios_binary,
|
||||
[AC_TRY_COMPILE([#include <iostream.h>]
|
||||
@ -866,8 +864,7 @@ if test "$ac_cv_cpp_unused_required" = yes ; then
|
||||
AC_DEFINE(NEED_CPP_UNUSED_IMPLEMENTATIONS)
|
||||
fi
|
||||
|
||||
CC=$_SAVE_CC
|
||||
ac_ext=c
|
||||
AC_LANG_RESTORE
|
||||
|
||||
dnl End of C++ language/feature checks
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user