summaryrefslogtreecommitdiff
path: root/m4/compiler.m4
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2000-04-17 23:38:44 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2000-04-17 23:38:44 +0000
commitc55f19e03b98ebfc3f9abf700ae32c65b79f73d1 (patch)
tree2ba5854e0d51664baf5033caa46258162f491005 /m4/compiler.m4
parent01da872edbc9ede480aa00bd26e5d4f1c858545b (diff)
downloadATCD-c55f19e03b98ebfc3f9abf700ae32c65b79f73d1.tar.gz
ChangeLogTag:Mon Apr 17 16:33:17 2000 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'm4/compiler.m4')
-rw-r--r--m4/compiler.m410
1 files changed, 9 insertions, 1 deletions
diff --git a/m4/compiler.m4 b/m4/compiler.m4
index c533b127428..a44b274daa1 100644
--- a/m4/compiler.m4
+++ b/m4/compiler.m4
@@ -39,13 +39,21 @@ AC_DEFUN(ACE_SET_COMPILER_FLAGS, dnl
if test -n "$GXX"; then
dnl Temporarily change M4 quotes to prevent "regex []" from being eaten
changequote(, )dnl
- if $GXX --version | egrep -v '^2\.[0-7]' > /dev/null; then
+ if $CXX --version | egrep -v '^2\.[0-7]' > /dev/null; then
changequote([, ])dnl
: # Do nothing
else
AC_DEFINE(ACE_HAS_GNUG_PRE_2_8)dnl
AC_DEFINE(ACE_HAS_GNUC_BROKEN_TEMPLATE_INLINE_FUNCTIONS)dnl
fi
+
+ case `$CXX --version` in
+ 2.9* | 3*)
+ if test "$ace_user_enable_exceptions" != yes; then
+ ACE_CXXFLAGS="$ACE_CXXFLAGS -fcheck-new"
+ fi
+ ;;
+ esac
fi
dnl Compiler Flag Key