diff options
-rw-r--r-- | configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 693de9cb..6fe9dccc 100644 --- a/configure.in +++ b/configure.in @@ -28,6 +28,21 @@ if test "$clock" = "yes"; then AC_DEFINE([ENABLE_CLOCK], [1], [enables clock screen]) fi +dnl ===================================== +dnl = checking for -fno-exceptions flag = +dnl ===================================== +AC_MSG_CHECKING([whether compiler supports -fno-exceptions]) +old_CXXFLAGS="$CXXFLAGS" +CXXFLAGS="-fno-exceptions" +AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[ ]]), + AC_MSG_RESULT([yes]) + no_exceptions="-fno-exceptions" + , + AC_MSG_RESULT([no]) +) +CXXFLAGS="$old_CXXFLAGS $no_exceptions" + + dnl ==================================== dnl = checking for win32 related stuff = dnl ==================================== |