8 # Test for Filesystem library from the Boost C++ libraries. The macro
9 # requires a preceding call to AX_BOOST_BASE.
13 # AC_SUBST(BOOST_FILESYSTEM_LIB)
17 # HAVE_BOOST_FILESYSTEM
21 # Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
22 # Copyright (c) 2008 Michael Tindal
23 # Copyright (c) 2008 Free Software Foundation, Inc.
25 # Copying and distribution of this file, with or without modification, are
26 # permitted in any medium without royalty provided the copyright notice
27 # and this notice are preserved.
29 AC_DEFUN([AX_BOOST_FILESYSTEM],
31 AC_REQUIRE([AX_BOOST_BASE])
33 dnl depends on boost_system
34 AC_REQUIRE([AX_BOOST_SYSTEM])
35 axbf_LDFLAGS_SAVED=$LDFLAGS
36 LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LIB"
38 _AX_BOOST_CHECK([boost_filesystem],
39 [@%:@include <boost/filesystem/path.hpp>],
40 [using namespace boost::filesystem;
41 path my_path( "foo/bar/data.txt" );
44 LDFLAGS=$axbf_LDFLAGS_SAVED