1
# We check what namespace stl code like vector expects to be executed in
3
AC_DEFUN([AC_CXX_STL_NAMESPACE],
5
what namespace STL code is in,
6
ac_cv_cxx_stl_namespace,
7
[AC_REQUIRE([AC_CXX_NAMESPACES])
10
AC_TRY_COMPILE([#include <vector>],
11
[vector<int> t; return 0;],
12
ac_cv_cxx_stl_namespace=none)
13
AC_TRY_COMPILE([#include <vector>],
14
[std::vector<int> t; return 0;],
15
ac_cv_cxx_stl_namespace=std)
17
if test "$ac_cv_cxx_stl_namespace" = none; then
18
AC_DEFINE(STL_NAMESPACE,,
19
[the namespace where STL code like vector<> is defined])
21
if test "$ac_cv_cxx_stl_namespace" = std; then
22
AC_DEFINE(STL_NAMESPACE,std,
23
[the namespace where STL code like vector<> is defined])