diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/configure.ac | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/configure.ac b/tools/configure.ac index 69874101..92a30431 100644 --- a/tools/configure.ac +++ b/tools/configure.ac @@ -309,10 +309,16 @@ AC_CACHE_CHECK( AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include <boost/iostreams/device/file_descriptor.hpp> - #include <boost/iostreams/stream.hpp>]], + #include <boost/iostreams/stream.hpp> + #include <boost/version.hpp>]], [[namespace io = boost::iostreams; typedef io::stream<io::file_descriptor_sink> ofdstream; - ofdstream outstream(1);]])], +#if BOOST_VERSION >= 104400 + ofdstream outstream(1, io::never_close_handle); +#else // BOOST_VERSION >= 104400 + ofdstream outstream(1); +#endif // BOOST_VERSION >= 104400 + ]])], [boost_iostreams_cpplib_avail_cv_=true], [boost_iostreams_cpplib_avail_cv_=false]) AC_LANG_POP |