Use autoconf magic to switch AC_ tests to use C++ instead of C.

This commit is contained in:
slamm%netscape.com 1999-04-10 00:27:24 +00:00
parent a33cbfa6ce
commit 85bcdf7d37

View File

@ -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