diff options
Diffstat (limited to 'm4/compiler.m4')
-rw-r--r-- | m4/compiler.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/m4/compiler.m4 b/m4/compiler.m4 index 721af9ac6cf..603112d53f9 100644 --- a/m4/compiler.m4 +++ b/m4/compiler.m4 @@ -38,6 +38,14 @@ dnl AC_BEFORE([$0], [AC_PROG_LIBTOOL]) AC_REQUIRE([ACE_COMPILATION_OPTIONS]) if test "$GXX" = yes; then +dnl Temporarily change M4 quotes to prevent "regex []" from being eaten + if $CXX --version | $EGREP -v '^2\.[[0-7]]' > /dev/null; then + : # Do nothing + else + AC_DEFINE([ACE_HAS_GNUG_PRE_2_8]) + AC_DEFINE([ACE_HAS_GNUC_BROKEN_TEMPLATE_INLINE_FUNCTIONS]) + fi + case `$CXX --version` in 2.9* | 3*) if test "$ace_user_enable_exceptions" != yes; then |