summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake31
1 files changed, 31 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 031be3c..0f733c0 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -23,3 +23,34 @@ tde_setup_largefiles( )
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( WITH_GCC_VISIBILITY )
+
+
+##### check for stream support
+
+check_cxx_source_compiles(
+ "
+ #include <sstream>
+ int main()
+ {
+ std::istringstream sstream;
+ return 0;
+ }
+ "
+ HAVE_SSTREAM
+)
+
+check_cxx_source_compiles(
+ "
+ #include <strstream>
+ int main()
+ {
+ std::istrstream strstream;
+ return 0;
+ }
+ "
+ HAVE_STRSTREAM
+)
+
+if( NOT HAVE_SSTREAM AND NOT HAVE_STRSTREAM )
+ message(FATAL_ERROR "\nsstream or strstream support is required, but not found on your system." )
+endif( )