~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to lib/cppunit-1.10.0/config/ac_cxx_namespaces.m4

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2006-11-11 10:32:06 UTC
  • Revision ID: james.westby@ubuntu.com-20061111103206-f3p0r9g0vq44rp3r
Tags: upstream-3.0.PRE5
ImportĀ upstreamĀ versionĀ 3.0.PRE5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl @synopsis AC_CXX_NAMESPACES
 
2
dnl
 
3
dnl If the compiler can prevent names clashes using namespaces, define
 
4
dnl HAVE_NAMESPACES.
 
5
dnl
 
6
dnl @version $Id: ac_cxx_namespaces.m4,v 1.1 2004/08/24 00:21:09 robertc Exp $
 
7
dnl @author Luc Maisonobe
 
8
dnl
 
9
AC_DEFUN([AC_CXX_NAMESPACES],
 
10
[AC_CACHE_CHECK(whether the compiler implements namespaces,
 
11
ac_cv_cxx_namespaces,
 
12
[AC_LANG_SAVE
 
13
 AC_LANG_CPLUSPLUS
 
14
 AC_TRY_COMPILE([namespace Outer { namespace Inner { int i = 0; }}],
 
15
                [using namespace Outer::Inner; return i;],
 
16
 ac_cv_cxx_namespaces=yes, ac_cv_cxx_namespaces=no)
 
17
 AC_LANG_RESTORE
 
18
])
 
19
if test "$ac_cv_cxx_namespaces" = yes; then
 
20
  AC_DEFINE(HAVE_NAMESPACES,1,[define to 1 if the compiler implements namespaces])
 
21
fi
 
22
])