diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-05-25 12:20:58 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-05-25 12:20:58 +0000 |
commit | d76102294150a903692e236f44b5e68df0faf3af (patch) | |
tree | 8fd8ce5858bc5a0da718e22baabdb0c548f8f06e /c/src/aclocal | |
parent | 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-d76102294150a903692e236f44b5e68df0faf3af.tar.bz2 |
2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* aclocal/check-rdbg.m4: Use compilation check on _OLD_EXCEPTIONS
to enable rdbg.
* configure.ac: Reflect changes above.
Diffstat (limited to 'c/src/aclocal')
-rw-r--r-- | c/src/aclocal/check-rdbg.m4 | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/c/src/aclocal/check-rdbg.m4 b/c/src/aclocal/check-rdbg.m4 index 9d76f03c77..3c718482c5 100644 --- a/c/src/aclocal/check-rdbg.m4 +++ b/c/src/aclocal/check-rdbg.m4 @@ -17,21 +17,14 @@ AC_CACHE_CHECK([whether BSP supports librdbg], rtems_cv_HAS_RDBG="yes" ; elif test "${RTEMS_CPU}" = "powerpc"; then - A=`grep -l RTEMS_PPC_EXCEPTION_PROCESSING_MODEL $srcdir/${RTEMS_TOPdir}/make/custom/* 2>/dev/null`; - C="" - for i in ${A} ; - do - B=`basename ${i} .cfg`; - C="${C} ${B}"; - done - rtems_cv_HAS_RDBG="no"; - for j in ${C} ; - do - if test "${$1}" = "${j}" ; - then - rtems_cv_HAS_RDBG="yes"; - fi - done + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [], + [#if defined(_OLD_EXCEPTIONS) + choke me + #endif])], + [rtems_cv_HAS_RDBG=yes], + [rtems_cv_HAS_RDBG=no]) else rtems_cv_HAS_RDBG="no"; fi |