From d5ff8350c68bfbe2555261f9387af16c99a83c5b Mon Sep 17 00:00:00 2001 From: Steve Huston Date: Tue, 28 Oct 2003 21:52:20 +0000 Subject: ChangeLogTag:Tue Oct 28 16:33:41 2003 Steve Huston --- m4/ace.m4 | 19 +++++++++++++++++++ m4/compiler.m4 | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) (limited to 'm4') diff --git a/m4/ace.m4 b/m4/ace.m4 index 94b1a944eb4..a81d40370dc 100644 --- a/m4/ace.m4 +++ b/m4/ace.m4 @@ -654,4 +654,23 @@ dnl fi esac ],) + AC_ARG_ENABLE([stdcpplib], + AC_HELP_STRING([--enable-stdcpplib],[enable standard C++ library [[yes]]]), + [ + case "${enableval}" in + yes) + ace_user_enable_stdcpplib=yes + ;; + no) + ace_user_enable_stdcpplib=no + ;; + *) + AC_MSG_ERROR([bad value ${enableval} for --enable-stdcpplib]) + ;; + esac + ], + [ + ace_user_enable_stdcpplib=yes + ]) + ]) diff --git a/m4/compiler.m4 b/m4/compiler.m4 index b12479baed4..ffcdff48e68 100644 --- a/m4/compiler.m4 +++ b/m4/compiler.m4 @@ -202,7 +202,12 @@ changequote([, ])dnl OCXXFLAGS="" ;; aCC) - CXXFLAGS="$CXXFLAGS" + CFLAGS = "$CFLAGS -Ae" + # -AA has been available since aC++ x.27 (2001?) - if using a + # compiler without this support, must --enable_stdcpplib=no. + if test "$ace_user_enable_stdcpplib" = yes; then + CXXFLAGS="$CXXFLAGS -AA" + fi # Warning 930 is spurious when new(std::nothrow) is # used. Reported to HP as support call 3201224717. (Steve # Huston, 23-Nov-2002) -- cgit v1.2.1