1 dnl @synopsis AC_CXX_HAVE_STD_LIBS
3 dnl If the compiler supports ISO C++ standard library (i.e., can
4 dnl include the files iostream, map, iomanip and cmath}), define
8 dnl @author Todd Veldhuizen
9 dnl @author Luc Maisonobe <luc@spaceroots.org>
10 dnl @version 2004-02-04
11 dnl @license AllPermissive
13 AC_DEFUN([AC_CXX_HAVE_STD_LIBS],
14 [AC_CACHE_CHECK(whether the compiler supports ISO C++ standard library,
15 ac_cv_cxx_have_std_libs,
16 [AC_REQUIRE([AX_CXX_NAMESPACES])
19 AC_TRY_COMPILE([#include <iostream>
23 #ifdef HAVE_NAMESPACES
26 ac_cv_cxx_have_std_libs=yes, ac_cv_cxx_have_std_libs=no)
29 if test "$ac_cv_cxx_have_std_libs" = yes; then
30 AC_DEFINE(HAVE_STD_LIBS,,[define if the compiler supports ISO C++ standard library])