blob: 648227ab87523adcbddd52c8101166cc59f341d3 [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 Thompson36174062013-06-21 16:03:44 -07009LT_INIT([enable-static disable-shared])
Jeff Thompson1b8f4c92013-06-19 16:18:46 -070010AX_CXX_COMPILE_STDCXX_11(, optional)
Jeff Thompsonff092f52013-06-19 13:38:12 -070011
12AC_MSG_CHECKING([for std::shared_ptr])
13AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
14 [[#include <memory>]]
15 [[std::shared_ptr<int> have_shared_ptr;]])
16], [
17 AC_MSG_RESULT([yes])
18 AC_DEFINE_UNQUOTED([HAVE_STD_SHARED_PTR], 1, [1 if have the `std::shared_ptr' class.])
19], [
20 AC_MSG_RESULT([no])
21 AC_DEFINE_UNQUOTED([HAVE_STD_SHARED_PTR], 0, [1 if have the `std::shared_ptr' class.])
22])
23AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
24 [[#include <boost/shared_ptr.hpp>]]
25 [[boost::shared_ptr<int> have_shared_ptr;]])
26], [
27 AC_MSG_RESULT([yes])
28 AC_DEFINE_UNQUOTED([HAVE_BOOST_SHARED_PTR], 1, [1 if have the `boost::shared_ptr' class.])
29], [
30 AC_MSG_RESULT([no])
31 AC_DEFINE_UNQUOTED([HAVE_BOOST_SHARED_PTR], 0, [1 if have the `boost::shared_ptr' class.])
32])
33
34AC_CONFIG_FILES([Makefile])
35AC_OUTPUT