1
dnl Available from the GNU Autoconf Macro Archive at:
2
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_sstream.html
4
AC_DEFUN([AC_CXX_HAVE_SSTREAM],
5
[AC_CACHE_CHECK(whether the compiler has stringstream,
6
ac_cv_cxx_have_sstream,
7
[AC_REQUIRE([AC_CXX_NAMESPACES])
10
AC_TRY_COMPILE([#include <sstream>
11
#ifdef HAVE_NAMESPACES
13
#endif],[stringstream message; message << "Hello"; return 0;],
14
ac_cv_cxx_have_sstream=yes, ac_cv_cxx_have_sstream=no)
17
if test "$ac_cv_cxx_have_sstream" = yes; then
18
AC_DEFINE(HAVE_SSTREAM,,[define if the compiler has stringstream])