enhanced c++ compiler detection

This commit is contained in:
2014-05-28 16:51:32 +00:00
parent 134d91e5a1
commit e21afe6f6e
34 changed files with 125 additions and 4 deletions

54
qse/configure vendored
View File

@ -4759,6 +4759,55 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if c++ supports namespace std" >&5
$as_echo_n "checking if c++ supports namespace std... " >&6; }
if ${ax_cv_cxx_have_std_namespace+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <iostream>
std::istream& is = std::cin;
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
ax_cv_cxx_have_std_namespace=yes
else
ax_cv_cxx_have_std_namespace=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
if test "$ax_cv_cxx_have_std_namespace" = yes; then
$as_echo "#define HAVE_CXX_NAMESPACE_STD /**/" >>confdefs.h
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if ${ac_cv_path_GREP+:} false; then :
@ -8703,7 +8752,6 @@ done
func_stripname_cnf ()
{
case ${2} in
@ -20623,9 +20671,13 @@ if test "${enable_cxx+set}" = set; then :
enableval=$enable_cxx; enable_cxx_is=$enableval
else
enable_cxx_is=yes
fi
test "${HAVE_CXX}" = "yes" || enable_cxx_is="no"
test "${HAVE_CXX_NAMESPACE_STD}" = "yes" || enable_cxx_is="no"
if test "${enable_cxx_is}" = "yes" ; then
ENABLE_CXX_TRUE=
ENABLE_CXX_FALSE='#'