changeset 16050:6f48f579b66d

ansi-c++-opt: Complete the 2011-06-05 change. * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but does not support namespaces, set the variable to "no", not to ":".
author Bruno Haible <bruno@clisp.org>
date Sun, 06 Nov 2011 22:33:25 +0100
parents 910a456a8fda
children ad562dcd34c2
files ChangeLog m4/ansi-c++.m4
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-11-06  Bruno Haible  <bruno@clisp.org>
+
+	ansi-c++-opt: Complete the 2011-06-05 change.
+	* m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
+	does not support namespaces, set the variable to "no", not to ":".
+
 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
 
 	* doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
--- a/m4/ansi-c++.m4
+++ b/m4/ansi-c++.m4
@@ -1,4 +1,4 @@
-# ansi-c++.m4 serial 8
+# ansi-c++.m4 serial 9
 dnl Copyright (C) 2002-2003, 2005, 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -84,7 +84,7 @@
     AC_LANG_POP([C++])
     AC_MSG_RESULT([$gl_cv_prog_ansicxx_works])
     if test $gl_cv_prog_ansicxx_works = no; then
-      CXX=:
+      CXX=no
     else
       dnl Test for namespaces.
       dnl We don't bother supporting pre-ANSI-C++ compilers.
@@ -105,7 +105,7 @@
       AC_LANG_POP([C++])
       AC_MSG_RESULT([$gl_cv_prog_ansicxx_namespaces])
       if test $gl_cv_prog_ansicxx_namespaces = no; then
-        CXX=:
+        CXX=no
       fi
     fi
   fi