source: rtems/aclocal/check-rdbg.m4 @ 084556d

4.104.114.84.95
Last change on this file since 084556d was 084556d, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 20, 2001 at 5:27:55 PM

2001-04-20 Eric Valette <valette@…>

  • aclocal/check-rdbg.m4: Added check to determine which PowerPC

BSPs support the new exception processing model and
consequently, librdbg.

  • Property mode set to 100644
File size: 1014 bytes
Line 
1dnl $Id$
2dnl
3AC_DEFUN(RTEMS_CHECK_RDBG,
4[dnl
5AC_REQUIRE([RTEMS_TOP])dnl
6AC_REQUIRE([RTEMS_CHECK_CPU])dnl
7AC_REQUIRE([RTEMS_CHECK_NETWORKING])dnl
8AC_REQUIRE([RTEMS_ENABLE_RDBG])dnl
9AC_CACHE_CHECK([whether BSP supports librdbg],
10  rtems_cv_HAS_RDBG,
11  [
12    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/librdbg/src/${RTEMS_CPU}/${$1}";
13    then
14      rtems_cv_HAS_RDBG="yes" ;
15    elif test -d "$srcdir/${RTEMS_TOPdir}/c/src/librdbg/src/${RTEMS_CPU}/any";
16    then
17      rtems_cv_HAS_RDBG="yes" ;
18    elif test "${RTEMS_CPU}" = "powerpc";
19    then
20        A=`grep -l RTEMS_PPC_EXCEPTION_PROCESSING_MODEL $srcdir/${RTEMS_TOPdir}/make/custom/* 2>/dev/null`;
21        C=""
22        for i in ${A} ;
23        do
24           B=`basename ${i} .cfg`;
25           C="${C} ${B}";
26        done
27        target_found="no";
28        for j in ${C} ;
29        do
30                if test "${$1}" = "${j}" ;
31                then
32                        target_found="yes";
33                fi
34        done
35        if test "$target_found" = "yes" ;
36        then
37                rtems_cv_HAS_RDBG="yes" ;
38        fi
39    else
40      rtems_cv_HAS_RDBG="no";
41    fi
42  ])
43HAS_RDBG="$rtems_cv_HAS_RDBG"
44AC_SUBST(HAS_RDBG)
45])
Note: See TracBrowser for help on using the repository browser.