toolkit/crashreporter/google-breakpad/src/third_party/glog/m4/namespaces.m4

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/crashreporter/google-breakpad/src/third_party/glog/m4/namespaces.m4	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +# Checks whether the compiler implements namespaces
     1.5 +AC_DEFUN([AC_CXX_NAMESPACES],
     1.6 + [AC_CACHE_CHECK(whether the compiler implements namespaces,
     1.7 +                 ac_cv_cxx_namespaces,
     1.8 +                 [AC_LANG_SAVE
     1.9 +                  AC_LANG_CPLUSPLUS
    1.10 +                  AC_TRY_COMPILE([namespace Outer {
    1.11 +                                    namespace Inner { int i = 0; }}],
    1.12 +                                 [using namespace Outer::Inner; return i;],
    1.13 +                                 ac_cv_cxx_namespaces=yes,
    1.14 +                                 ac_cv_cxx_namespaces=no)
    1.15 +                  AC_LANG_RESTORE])
    1.16 +  if test "$ac_cv_cxx_namespaces" = yes; then
    1.17 +    AC_DEFINE(HAVE_NAMESPACES, 1, [define if the compiler implements namespaces])
    1.18 +  fi])

mercurial