1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
"http://www.w3.org/TR/html4/strict.dtd">
6
<title>Autoconf Macro: ac_cxx_have_sstream</title>
7
<link rel="stylesheet" type="text/css" href="ac-archive.css">
11
<table summary="web navigation" style="width:100%;">
14
<td style="width:50%;" align="center">[<a href="index.html">Macro Index
17
<td style="width:50%;" align="center">[<a href=
18
"../m4source/ac_cxx_have_sstream.m4">Download M4 Source</a>]</td>
24
<h1>ac_cxx_have_sstream</h1>
29
<p style="text-align:left; white-space:nowrap;">
30
<code>AC_CXX_HAVE_SSTREAM</code></p>
36
<p>If the C++ library has a working stringstream, define HAVE_SSTREAM.</p>
42
<p>1.1 (last modified: 2001-03-16)</p>
51
<h2>M4 Source Code</h2>
54
<pre class="m4source">
55
AC_DEFUN([AC_CXX_HAVE_SSTREAM],
56
[AC_CACHE_CHECK(whether the compiler has stringstream,
57
ac_cv_cxx_have_sstream,
58
[AC_REQUIRE([AC_CXX_NAMESPACES])
61
AC_TRY_COMPILE([#include <sstream>
62
#ifdef HAVE_NAMESPACES
64
#endif],[stringstream message; message << "Hello"; return 0;],
65
ac_cv_cxx_have_sstream=yes, ac_cv_cxx_have_sstream=no)
68
if test "$ac_cv_cxx_have_sstream" = yes; then
69
AC_DEFINE(HAVE_SSTREAM,,[define if the compiler has stringstream])
78
<a href="COPYING.html">GNU General Public License</a> with this special
79
<a href="COPYING-Exception.html">exception</a>.