summaryrefslogtreecommitdiffstats
path: root/c/src/aclocal
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-02-16 10:05:22 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-02-16 10:05:22 +0000
commita3f91c6e0816ba5e10df9fa91812b21dfffc2054 (patch)
treeb1656e41403393d503a5ea4bcf0663b0c5d64b32 /c/src/aclocal
parent2005-02-15 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-a3f91c6e0816ba5e10df9fa91812b21dfffc2054.tar.bz2
2005-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
* aclocal/ppc.m4; Dynamically switch between {old|new} exceptions depending upon presence of _OLD_EXCEPTIONS in CFLAGS.
Diffstat (limited to 'c/src/aclocal')
-rw-r--r--c/src/aclocal/ppc.m413
1 files changed, 11 insertions, 2 deletions
diff --git a/c/src/aclocal/ppc.m4 b/c/src/aclocal/ppc.m4
index 696c7f2365..7275685a44 100644
--- a/c/src/aclocal/ppc.m4
+++ b/c/src/aclocal/ppc.m4
@@ -7,6 +7,15 @@
AC_DEFUN([RTEMS_PPC_EXCEPTIONS],
[
-exceptions="$1-exceptions"
-AC_SUBST(exceptions)
+AC_MSG_CHECKING([for style of powerpc exceptions])
+AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [],
+ [#if defined(_OLD_EXCEPTIONS)
+ choke me
+ #endif])],
+ [EXCEPTIONS=new],
+ [EXCEPTIONS=old])
+AC_MSG_RESULT([$EXCEPTIONS])
+AC_SUBST([exceptions],[$EXCEPTIONS-exceptions])
])