blob: 27b01541c59817fdfab76f03341d6aa3d681933c [file] [log] [blame]
Jeff Thompsonff092f52013-06-19 13:38:12 -07001AC_INIT([ndn-cpp], [0.5], [],
2 [ndn-cpp], [https://github.com/named-data/ndn-cpp])
3AC_PREREQ([2.59])
4AM_INIT_AUTOMAKE([1.10 -Wall no-define foreign])
5
6AC_CONFIG_HEADERS([config.h])
7AC_PROG_CXX
8AC_LANG([C++])
Jeff Thompson1b8f4c92013-06-19 16:18:46 -07009AX_CXX_COMPILE_STDCXX_11(, optional)
Jeff Thompsonff092f52013-06-19 13:38:12 -070010
11AC_MSG_CHECKING([for std::shared_ptr])
12AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
13 [[#include <memory>]]
14 [[std::shared_ptr<int> have_shared_ptr;]])
15], [
16 AC_MSG_RESULT([yes])
17 AC_DEFINE_UNQUOTED([HAVE_STD_SHARED_PTR], 1, [1 if have the `std::shared_ptr' class.])
18], [
19 AC_MSG_RESULT([no])
20 AC_DEFINE_UNQUOTED([HAVE_STD_SHARED_PTR], 0, [1 if have the `std::shared_ptr' class.])
21])
22AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
23 [[#include <boost/shared_ptr.hpp>]]
24 [[boost::shared_ptr<int> have_shared_ptr;]])
25], [
26 AC_MSG_RESULT([yes])
27 AC_DEFINE_UNQUOTED([HAVE_BOOST_SHARED_PTR], 1, [1 if have the `boost::shared_ptr' class.])
28], [
29 AC_MSG_RESULT([no])
30 AC_DEFINE_UNQUOTED([HAVE_BOOST_SHARED_PTR], 0, [1 if have the `boost::shared_ptr' class.])
31])
32
33AC_CONFIG_FILES([Makefile])
34AC_OUTPUT