From 218124c359c5d06307228a92b89193b2c12b9d06 Mon Sep 17 00:00:00 2001 From: Valient Gough Date: Sun, 17 Nov 2013 06:32:27 +0000 Subject: [PATCH] add check for std::shared_ptr git-svn-id: http://encfs.googlecode.com/svn/branches/1.x@131 db9cf616-1c43-0410-9cb8-a902689de0d6 --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configure.ac b/configure.ac index 5e28b86..247fcc5 100644 --- a/configure.ac +++ b/configure.ac @@ -50,6 +50,20 @@ AX_BOOST_SYSTEM AX_BOOST_SERIALIZATION AX_BOOST_FILESYSTEM +AC_MSG_CHECKING([for std::shared_ptr]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM( + [[#include ]] + [[std::shared_ptr have_shared_ptr;]]) +], [ + AC_MSG_RESULT([yes]) + AC_DEFINE_UNQUOTED([HAVE_STD_SHARED_PTR], 1, + [Define to 1 if you have the 'std::shared_ptr' class.]) +], [ + AC_MSG_RESULT([no]) + AC_DEFINE_UNQUOTED([HAVE_STD_SHARED_PTR], 0, + [Define to 1 if you have the 'std::shared_ptr' class.]) +]) + dnl Need to include any user specified flags in the tests below, as they might dnl specify required include directories.. FUSE_FLAGS="-D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26"