Jeff Thompson | ff092f5 | 2013-06-19 13:38:12 -0700 | [diff] [blame] | 1 | AC_INIT([ndn-cpp], [0.5], [], |
| 2 | [ndn-cpp], [https://github.com/named-data/ndn-cpp]) |
| 3 | AC_PREREQ([2.59]) |
| 4 | AM_INIT_AUTOMAKE([1.10 -Wall no-define foreign]) |
| 5 | |
| 6 | AC_CONFIG_HEADERS([config.h]) |
| 7 | AC_PROG_CXX |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame^] | 8 | AC_PROG_RANLIB |
| 9 | AM_PROG_AR |
Jeff Thompson | ff092f5 | 2013-06-19 13:38:12 -0700 | [diff] [blame] | 10 | AC_LANG([C++]) |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame^] | 11 | |
Jeff Thompson | 1b8f4c9 | 2013-06-19 16:18:46 -0700 | [diff] [blame] | 12 | AX_CXX_COMPILE_STDCXX_11(, optional) |
Jeff Thompson | ff092f5 | 2013-06-19 13:38:12 -0700 | [diff] [blame] | 13 | |
| 14 | AC_MSG_CHECKING([for std::shared_ptr]) |
| 15 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM( |
| 16 | [[#include <memory>]] |
| 17 | [[std::shared_ptr<int> have_shared_ptr;]]) |
| 18 | ], [ |
| 19 | AC_MSG_RESULT([yes]) |
| 20 | AC_DEFINE_UNQUOTED([HAVE_STD_SHARED_PTR], 1, [1 if have the `std::shared_ptr' class.]) |
| 21 | ], [ |
| 22 | AC_MSG_RESULT([no]) |
| 23 | AC_DEFINE_UNQUOTED([HAVE_STD_SHARED_PTR], 0, [1 if have the `std::shared_ptr' class.]) |
| 24 | ]) |
| 25 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM( |
| 26 | [[#include <boost/shared_ptr.hpp>]] |
| 27 | [[boost::shared_ptr<int> have_shared_ptr;]]) |
| 28 | ], [ |
| 29 | AC_MSG_RESULT([yes]) |
| 30 | AC_DEFINE_UNQUOTED([HAVE_BOOST_SHARED_PTR], 1, [1 if have the `boost::shared_ptr' class.]) |
| 31 | ], [ |
| 32 | AC_MSG_RESULT([no]) |
| 33 | AC_DEFINE_UNQUOTED([HAVE_BOOST_SHARED_PTR], 0, [1 if have the `boost::shared_ptr' class.]) |
| 34 | ]) |
| 35 | |
| 36 | AC_CONFIG_FILES([Makefile]) |
| 37 | AC_OUTPUT |