summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-08-20 08:45:20 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-08-20 08:45:20 +0000
commitf29149beabc84c3e56b51b0ac42b92fe122903a0 (patch)
treede6902e98e1e8377d833f63563c8319944d8f388 /configure.ac
parenta1b88ea91165f3ce8d8fb4a0ffbdf5ab66ee3add (diff)
check if the compiler accepts -fno-rtti -fno-exceptions
SVN revision: 41882
Diffstat (limited to '')
-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