summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cb7fed2..6fda04a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -198,6 +198,23 @@ case "$host_os" in
198esac 198esac
199AC_SUBST(WIN32_CFLAGS) 199AC_SUBST(WIN32_CFLAGS)
200 200
201EXPEDITE_CXXFLAGS=""
202AC_LANG_PUSH([C++])
203CXXFLAGS_save="${CXXFLAGS}"
204CXXFLAGS="${CXXFLAGS} -fno-rtti -fno-exceptions"
205AC_COMPILE_IFELSE(
206 [AC_LANG_PROGRAM([[]])],
207 [have_cxx_flags="yes"],
208 [have_cxx_flags="no"])
209AC_MSG_CHECKING([whether the compiler supports -fno-rtti -fno-exceptions])
210AC_MSG_RESULT([${have_cxx_flags}])
211CXXFLAGS="${CXXFLAGS_save}"
212if test "x${have_cxx_flags}" = "xyes" ; then
213 EXPEDITE_CXXFLAGS="-fno-rtti -fno-exceptions"
214fi
215AC_LANG_POP([C++])
216AC_SUBST(EXPEDITE_CXXFLAGS)
217
201 218
202### Checks for linker characteristics 219### Checks for linker characteristics
203 220