diff options
author | Rob Savoye <rob@welcomehome.org> | 2001-05-30 15:35:50 +0000 |
---|---|---|
committer | Rob Savoye <rob@welcomehome.org> | 2001-05-30 15:35:50 +0000 |
commit | 682f43d2645995ccfef6c84beaf7f1aea69d1875 (patch) | |
tree | dabde2872c7fb3f7c7b10321bbcf4dc9765b63f0 /acinclude.m4 | |
parent | 4330bafff46c45742dc65b79a7e06196f0d89336 (diff) |
* acinclude.m4(DJ_AC_STL): Also use
AC_LANG_CPLUSPLUS so we build this test case with G++.
* aclocal.m4, configure: Regenerated.
* dejagnu.h: Don't use testout(), have each method print the array
value directly, which is much simpler.
* acinclude.m4(DJ_AC_STL): s/for for/for/.
* dejagnu.h: Add conditional support for sstream.
(testout): Likewise. Make return type `const'.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 9f6cec4..e1dc275 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,6 +1,7 @@ AC_DEFUN(DJ_AC_STL, [ -AC_MSG_CHECKING(for for STL versions) +AC_MSG_CHECKING(for STL versions) AC_CACHE_VAL(ac_cv_stl,[ + AC_LANG_CPLUSPLUS AC_TRY_COMPILE([#include <iostream>], [ using namespace std; char bbuuff[5120]; @@ -11,6 +12,7 @@ AC_CACHE_VAL(ac_cv_stl,[ ), ]) +AC_LANG_C if test x"${ac_cv_stl}" != x"v2" ; then AC_MSG_RESULT(v3) AC_DEFINE(HAVE_STL3) |