]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Reject C++ compilers that don't support std::ostream.
authorBruno Haible <bruno@clisp.org>
Tue, 14 Jan 2003 13:40:21 +0000 (13:40 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:08:56 +0000 (12:08 +0200)
ChangeLog
configure.in

index a8859ae834f1420b94823200ec7deb318ef00305..4ae36c759f0c0fa4bd84ea1ee62bbf882c1f6797 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-01-14  Bruno Haible  <bruno@clisp.org>
+
+       * configure.in (gt_cv_prog_cxx_namespaces): Reject C++ compilers that
+       have namespaces but for which std::ostream is undefined, like cxx on
+       Tru64.
+       Reported by Martin Mokrejš <mmokrejs@natur.cuni.cz>.
+
 2003-01-12  Bruno Haible  <bruno@clisp.org>
 
        * configure.in: Invoke gl_FUNC_ALLOCA instead of AC_FUNC_ALLOCA.
index dba9b518f3864de1243ed75565f29a2758650ebc..2a174d24919fdb1e2957a6d3e8e41d0e11eb84d4 100644 (file)
@@ -211,8 +211,9 @@ if test "$CXX" != ":"; then
     AC_MSG_CHECKING([whether the C++ compiler supports namespaces])
     AC_LANG_PUSH(C++)
     cat <<EOF > conftest.$ac_ext
-#include <iostream.h>
+#include <iostream>
 namespace test { using namespace std; }
+std::ostream* ptr;
 int main () { return 0; }
 EOF
     if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then