~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_shared_ptr.m4

Split out warnings - start using the pandora build system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
# which shared_ptr is defined.
13
13
#
14
14
 
15
 
AC_DEFUN([AC_CXX_SHARED_PTR],[
16
 
  AC_REQUIRE([AC_CXX_CHECK_STANDARD])
 
15
AC_DEFUN([PANDORA_SHARED_PTR],[
 
16
  AC_REQUIRE([PANDORA_CHECK_CXX_STANDARD])
17
17
  AC_LANG_PUSH(C++)
18
18
  AC_CHECK_HEADERS(memory tr1/memory boost/shared_ptr.hpp)
19
19
  AC_CACHE_CHECK([the location of shared_ptr header file],
41
41
            [
42
42
              ac_cv_shared_ptr_namespace="${namespace}"
43
43
              break
44
 
            ],[ac_cv_shared_ptr_namespace=no])
 
44
            ],[ac_cv_shared_ptr_namespace=missing])
45
45
       done
46
46
  ])
47
 
  if test "$ac_cv_shared_ptr_namespace" = no
48
 
  then
49
 
    AC_MSG_WARN([a usable shared_ptr implementation was not found. Let someone know what your platform is.])
50
 
    dnl AC_MSG_WARN([a usable shared_ptr implementation is required. If you are on Solaris, please install boost, either via pkg install boost, or pkg-get -i boost. If you are elsewhere, please file a bug])
51
 
  fi
52
47
  AC_DEFINE_UNQUOTED([SHARED_PTR_NAMESPACE],
53
48
                     ${ac_cv_shared_ptr_namespace},
54
49
                     [The namespace in which SHARED_PTR can be found])