1
# We check two things: where is the memory include file, and in what
2
# namespace does shared_ptr reside.
3
# We include AC_COMPILE_IFELSE for all the combinations we've seen in the
6
# GCC 4.3: namespace: std:: #include <memory>
7
# GCC 4.2: namespace: tr1:: #include <tr1/memory>
8
# GCC 4.2: namespace: boost:: #include <boost/shared_ptr.hpp>
10
# We define one of HAVE_HAVE_TR1_SHARED_PTR or HAVE_BOOST_SHARED_PTR
11
# depending on location, and SHARED_PTR_NAMESPACE to be the namespace in
12
# which shared_ptr is defined.
1
dnl Copyright (C) 2009 Sun Microsystems
2
dnl This file is free software; Sun Microsystems
3
dnl gives unlimited permission to copy and/or distribute it,
4
dnl with or without modifications, as long as this notice is preserved.
6
dnl We check two things: where is the memory include file, and in what
7
dnl namespace does shared_ptr reside.
8
dnl We include AC_COMPILE_IFELSE for all the combinations we've seen in the
11
dnl GCC 4.3: namespace: std:: #include <memory>
12
dnl GCC 4.2: namespace: tr1:: #include <tr1/memory>
13
dnl GCC 4.2: namespace: boost:: #include <boost/shared_ptr.hpp>
15
dnl We define one of HAVE_HAVE_TR1_SHARED_PTR or HAVE_BOOST_SHARED_PTR
16
dnl depending on location, and SHARED_PTR_NAMESPACE to be the namespace in
17
dnl which shared_ptr is defined.
15
20
AC_DEFUN([PANDORA_SHARED_PTR],[
16
21
AC_REQUIRE([PANDORA_CHECK_CXX_STANDARD])