From: Bruno Haible Date: Tue, 14 Jan 2003 13:40:21 +0000 (+0000) Subject: Reject C++ compilers that don't support std::ostream. X-Git-Tag: v0.12~1167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7440c9a30e62285fcd4a65824bdf743f6914d2ec;p=thirdparty%2Fgettext.git Reject C++ compilers that don't support std::ostream. --- diff --git a/ChangeLog b/ChangeLog index a8859ae83..4ae36c759 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-01-14 Bruno Haible + + * 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š . + 2003-01-12 Bruno Haible * configure.in: Invoke gl_FUNC_ALLOCA instead of AC_FUNC_ALLOCA. diff --git a/configure.in b/configure.in index dba9b518f..2a174d249 100644 --- a/configure.in +++ b/configure.in @@ -211,8 +211,9 @@ if test "$CXX" != ":"; then AC_MSG_CHECKING([whether the C++ compiler supports namespaces]) AC_LANG_PUSH(C++) cat < conftest.$ac_ext -#include +#include 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