summaryrefslogtreecommitdiff
path: root/m4/compiler.m4
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2000-02-14 16:45:41 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2000-02-14 16:45:41 +0000
commitc246bd62e9607f2e6924fb0518bc7495fcb08615 (patch)
tree20e7a8caa755a6ec99b0d6031931877712db3e08 /m4/compiler.m4
parent2cc1bb96108d2247da7b60de39b3cc5ade222115 (diff)
downloadATCD-c246bd62e9607f2e6924fb0518bc7495fcb08615.tar.gz
ChangeLogTag:Mon Feb 14 08:43:31 2000 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'm4/compiler.m4')
-rw-r--r--m4/compiler.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/compiler.m4 b/m4/compiler.m4
index b4db61fc364..c533b127428 100644
--- a/m4/compiler.m4
+++ b/m4/compiler.m4
@@ -34,6 +34,8 @@ AC_DEFUN(ACE_SET_COMPILER_FLAGS, dnl
AC_REQUIRE([AC_PROG_CXXCPP])
AC_REQUIRE([AC_LANG_CPLUSPLUS])
+ AC_REQUIRE([ACE_COMPILATION_OPTIONS])
+
if test -n "$GXX"; then
dnl Temporarily change M4 quotes to prevent "regex []" from being eaten
changequote(, )dnl
@@ -294,4 +296,16 @@ changequote([, ])dnl
OCXXFLAGS="-O"
;;
esac
+
+ dnl Additional flags
+ if test -n "$GXX"; then
+ ACE_CXXFLAGS="$ACE_CXXFLAGS -W -Wall -Wpointer-arith"
+ if test "$ace_user_enable_repo" = no; then
+ ACE_CXXFLAGS="$ACE_CXXFLAGS -fno-implicit-templates"
+ fi
+ fi
+
+ if test -n "$GCC"; then
+ ACE_CFLAGS="$ACE_CFLAGS -W -Wall -Wpointer-arith"
+ fi
])