|
Revision 1, 0.8 KB
(checked in by cristy, 3 months ago)
|
|
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | AC_DEFUN([AC_CXX_HAVE_NAMESPACES], |
|---|
| 13 | [AC_CACHE_CHECK(whether the compiler implements namespaces, |
|---|
| 14 | ac_cv_cxx_have_namespaces, |
|---|
| 15 | [AC_LANG_SAVE |
|---|
| 16 | AC_LANG_CPLUSPLUS |
|---|
| 17 | AC_TRY_COMPILE([namespace Outer { namespace Inner { int i = 0; }}], |
|---|
| 18 | [using namespace Outer::Inner; return i;], |
|---|
| 19 | ac_cv_cxx_have_namespaces=yes, ac_cv_cxx_have_namespaces=no) |
|---|
| 20 | AC_LANG_RESTORE |
|---|
| 21 | ]) |
|---|
| 22 | if test "$ac_cv_cxx_have_namespaces" = yes; then |
|---|
| 23 | AC_DEFINE(HAVE_NAMESPACES,,[define if the compiler implements namespaces]) |
|---|
| 24 | fi |
|---|
| 25 | ]) |
|---|