monotone

monotone Mtn Source Tree

Root/m4/fexception.m4

1dnl @synopsis AC_CC_FEXCEPTIONS
2dnl
3dnl tests if compiler bails out on -fexception. doesn't catch situation
4dnl where it just emits a warning.
5dnl
6dnl taken from expat's configure.in
7dnl
8dnl @author Patrick Mauritz <oxygene@studentenbude.ath.cx>
9dnl @version 2005-08-17
10dnl @license MIT/X
11
12AC_DEFUN([AC_CC_FEXCEPTIONS],[
13AC_LANG_ASSERT([C])
14AC_CACHE_CHECK(whether the compiler knows -fexception,
15ac_cv_cc_fexceptions,
16[OLDCFLAGS="$CFLAGS"
17 CFLAGS="$OLDCFLAGS -fexceptions"
18 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [(void)1])],
19 [ac_cv_cc_fexceptions=yes],
20 [ac_cv_cc_fexceptions=no])
21 CFLAGS="$OLDCFLAGS"
22])
23if test "$ac_cv_cc_fexceptions" = yes; then
24 CFLAGS="$CFLAGS -fexceptions"
25fi
26])

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status