Changeset 4721cf1 in rtems


Ignore:
Timestamp:
Dec 3, 1998, 11:54:14 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e203c04b
Parents:
cd155be
Message:

Patch from Emmanuel Raguet <raguet@…> to add remote debug server
and RPC support to RTEMS. Thanks. :) Email follows:

Hello,

For Xmas, here is the Remote Debugger on RTEMS !

Here are 2 patches for the Remote Debugger on RTEMS for pc386 from Linux
host :

  • one for RTEMS it self,
  • one for GDB-4.17.

1/ RTEMS patch
--------------

This patch adds 2 libraries :

  • a simplified SUN RPC library
  • the Remote Debugger library

The configuration command is the following :
../rtems4/configure --target=i386-rtemself --enable-rtemsbsp=pc386
--enable-rdbg

The SUN RPC library is built only if networking is set.
The RDBG library is built if networking and enable-rdbg are set.

The function used to initialize the debugger is :

rtems_rdbg_initialize ();

A special function has been created to force a task to be
in a "debug" state : enterRdbg().
The use of this function is not mandatory.

2/ GDB-4.17 patch
-----------------

This patch create a new RTEMS target for GDB-4.17.

The configuration command is the following :
./configure --enable-shared --target=i386RTEMS

To connect to a target, use :

target rtems [your_site_address]

Then, attach the target using : attach 1

And... Debug ;)

You can obtain the original GDB-4.17 on
ftp://ftp.debian.org/debian/dists/stable/main/source/devel/gdb_4.17.orig.tar.gz

This has been tested from a Debian 2.0.1 linux host.

Files:
91 added
11 edited

Legend:

Unmodified
Added
Removed
  • c/Makefile.in

    rcd155be r4721cf1  
    3434LIBNETWORKING = $(LIBNETWORKING_$(HAS_NETWORKING)_V)
    3535
     36# We only make the rpc install point if networking is enabled.
     37LIBRPC_yes_V = lib/include/rpc
     38LIBRPC = $(LIBRPC_$(HAS_NETWORKING)_V)
     39
     40# We only make the rdbg install point if networking and rdbg is enabled.
     41LIBRDBG_yes_yes_V = lib/include/rdbg
     42LIBRDBG = $(LIBRDBG_$(HAS_NETWORKING)_$(HAS_RDBG)_V)
     43
    3644# We only make the rtems++ install point if it is enabled.
    3745LIBRTEMSCPLUSPLUS_yes_V = lib/include/rtems++
     
    4654    lib/include/libchip \
    4755    $(LIBNETWORKING) \
     56    $(LIBRPC) \
     57    $(LIBRDBG) \
    4858    $(LIBRTEMSCPLUSPLUS) \
    4959    bin samples \
  • c/src/exec/score/cpu/i386/cpu.h

    rcd155be r4721cf1  
    152152
    153153typedef enum {
    154   I386_EXCEPTION_DIVIDE_BY_ZERO =       0,
    155   I386_EXCEPTION_DEBUG                  =       1,
    156   I386_EXCEPTION_NMI                    =       2,
    157   I386_EXCEPTION_BREAKPOINT             =       3,
    158   I386_EXCEPTION_OVERFLOW               =       4,
    159   I386_EXCEPTION_BOUND                  =       5,
    160   I386_EXCEPTION_ILLEGAL_INSTR          =       6,
    161   I386_EXCEPTION_MATH_COPROC_UNAVAIL    =       7,
    162   I386_EXCEPTION_DOUBLE_FAULT           =       8,
    163   I386_EXCEPTION_I386_COPROC_SEG_ERR    =       9,
    164   I386_EXCEPTION_INVALID_TSS            =       10,
    165   I386_EXCEPTION_SEGMENT_NOT_PRESENT    =       11,
    166   I386_EXCEPTION_STACK_SEGMENT_FAULT    =       12,
    167   I386_EXCEPTION_GENERAL_PROT_ERR       =       13,
    168   I386_EXCEPTION_PAGE_FAULT             =       14,
    169   I386_EXCEPTION_INTEL_RES15            =       15,
    170   I386_EXCEPTION_FLOAT_ERROR            =       16,
    171   I386_EXCEPTION_ALIGN_CHECK            =       17,
    172   I386_EXCEPTION_MACHINE_CHECK          =       18
     154  I386_EXCEPTION_DIVIDE_BY_ZERO      = 0,
     155  I386_EXCEPTION_DEBUG               = 1,
     156  I386_EXCEPTION_NMI                 = 2,
     157  I386_EXCEPTION_BREAKPOINT          = 3,
     158  I386_EXCEPTION_OVERFLOW            = 4,
     159  I386_EXCEPTION_BOUND               = 5,
     160  I386_EXCEPTION_ILLEGAL_INSTR       = 6,
     161  I386_EXCEPTION_MATH_COPROC_UNAVAIL = 7,
     162  I386_EXCEPTION_DOUBLE_FAULT        = 8,
     163  I386_EXCEPTION_I386_COPROC_SEG_ERR = 9,
     164  I386_EXCEPTION_INVALID_TSS         = 10,
     165  I386_EXCEPTION_SEGMENT_NOT_PRESENT = 11,
     166  I386_EXCEPTION_STACK_SEGMENT_FAULT = 12,
     167  I386_EXCEPTION_GENERAL_PROT_ERR    = 13,
     168  I386_EXCEPTION_PAGE_FAULT          = 14,
     169  I386_EXCEPTION_INTEL_RES15         = 15,
     170  I386_EXCEPTION_FLOAT_ERROR         = 16,
     171  I386_EXCEPTION_ALIGN_CHECK         = 17,
     172  I386_EXCEPTION_MACHINE_CHECK       = 18,
     173  I386_EXCEPTION_ENTER_RDBG          = 50     /* to enter manually RDBG */
     174
    173175} Intel_symbolic_exception_name;
    174176 
  • c/src/exec/score/cpu/i386/cpu_asm.s

    rcd155be r4721cf1  
    110110        ret
    111111
     112        PUBLIC (_Exception_Handler)
    112113SYM (_Exception_Handler):
    113114        pusha                              # Push general purpose registers
  • c/src/lib/Makefile.in

    rcd155be r4721cf1  
    1818NETWORKING_INCLUDE = $(NETWORKING_INCLUDE_$(HAS_NETWORKING)_V)
    1919
     20# We only build the rpc library if HAS_NETWORKING was defined
     21LIBRPC_yes_V = librpc
     22LIBRPC = $(LIBRPC_$(HAS_NETWORKING)_V)
     23
     24# We only build the rdbg library if HAS_NETWORKING and HAS_RDBG was defined
     25LIBRDBG_yes_yes_V = librdbg
     26LIBRDBG = $(LIBRDBG_$(HAS_NETWORKING)_$(HAS_RDBG)_V)
     27
    2028# We only build the rtems++ library if HAS_CPLUSPLUS was defined
    2129LIBRTEMSCPLUSPLUS_yes_V = librtems++
     
    2634
    2735
    28 ifneq ($(RTEMS_CPU),unix)
     36         $(LIBNETWORKING) $(LIBRPC) $(LIBRDBG) \
     37         $(LIBHWAPI) $(LIBRTEMSCPLUSPLUS) wrapup
    2938LIBCHIP=libchip
    3039endif
  • c/src/lib/include/Makefile.in

    rcd155be r4721cf1  
    2626RTEMSCPLUSPLUS_H_FILES=$(RTEMSCPLUSPLUS_H_PIECES:%=$(srcdir)/rtems++/%.h)
    2727
     28RPC_H_PIECES=  auth clnt rpc rpc_msg svc svc_auth types xdr
     29RPC_H_FILES=$(RPC_H_PIECES:%=$(srcdir)/rpc/%.h)
     30
     31RDBG_H_PIECES=  servrpc rdbg $(RTEMS_CPU)/rdbg_f $(RTEMS_CPU)/reg
     32RDBG_H_FILES=$(RDBG_H_PIECES:%=$(srcdir)/rdbg/%.h)
     33
    2834SRCS=$(H_FILES) $(SYS_H_FILES) \
    29      $(MOTOROLA_H_FILES) $(RTEMSCPLUSPLUS_H_FILES)
     35     $(MOTOROLA_H_FILES) $(RTEMSCPLUSPLUS_H_FILES) \
     36     $(RPC_H_FILES) $(RDBG_H_FILES)
    3037
    3138include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
     
    4350        $(INSTALL) -m 444 $(RTEMSCPLUSPLUS_H_FILES) $(PROJECT_INCLUDE)/rtems++
    4451endif
     52ifeq ($(HAS_NETWORKING),yes)
     53        $(INSTALL) -m 444 $(RPC_H_FILES) $(PROJECT_INCLUDE)/rpc
     54ifeq ($(HAS_RDBG),yes)
     55        $(INSTALL) -m 444 $(RDBG_H_FILES) $(PROJECT_INCLUDE)/rdbg
     56endif
     57endif
  • c/src/lib/wrapup/Makefile.in

    rcd155be r4721cf1  
    2020     $(wildcard $(PROJECT_RELEASE)/lib/libposix$(LIB_VARIANT).a) \
    2121     $(wildcard $(PROJECT_RELEASE)/lib/libnetworking$(LIB_VARIANT).a) \
     22     $(wildcard $(PROJECT_RELEASE)/lib/librpc$(LIB_VARIANT).a) \
     23     $(wildcard $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a) \
    2224     $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
    2325     $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
  • c/src/wrapup/Makefile.in

    rcd155be r4721cf1  
    2020     $(wildcard $(PROJECT_RELEASE)/lib/libposix$(LIB_VARIANT).a) \
    2121     $(wildcard $(PROJECT_RELEASE)/lib/libnetworking$(LIB_VARIANT).a) \
     22     $(wildcard $(PROJECT_RELEASE)/lib/librpc$(LIB_VARIANT).a) \
     23     $(wildcard $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a) \
    2224     $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
    2325     $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
  • configure

    rcd155be r4721cf1  
    6060\
    6161  --enable-networking                enable TCP/IP stack"
     62ac_help="$ac_help
     63\
     64  --enable-rdbg                enable remote debugger"
    6265ac_help="$ac_help
    6366\
     
    596599
    597600echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    598 echo "configure:599: checking whether ${MAKE-make} sets \${MAKE}" >&5
     601echo "configure:602: checking whether ${MAKE-make} sets \${MAKE}" >&5
    599602set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    600603if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    669672
    670673echo $ac_n "checking host system type""... $ac_c" 1>&6
    671 echo "configure:672: checking host system type" >&5
     674echo "configure:675: checking host system type" >&5
    672675
    673676host_alias=$host
     
    690693
    691694echo $ac_n "checking target system type""... $ac_c" 1>&6
    692 echo "configure:693: checking target system type" >&5
     695echo "configure:696: checking target system type" >&5
    693696
    694697target_alias=$target
     
    708711
    709712echo $ac_n "checking build system type""... $ac_c" 1>&6
    710 echo "configure:711: checking build system type" >&5
     713echo "configure:714: checking build system type" >&5
    711714
    712715build_alias=$build
     
    794797
    795798
     799# Check whether --enable-rdbg or --disable-rdbg was given.
     800if test "${enable_rdbg+set}" = set; then
     801  enableval="$enable_rdbg"
     802  \
     803case "${enableval}" in
     804  yes) RTEMS_HAS_RDBG=yes ;;
     805  no) RTEMS_HAS_RDBG=no ;;
     806  *)  { echo "configure: error: bad value ${enableval} for enable-rdbg option" 1>&2; exit 1; } ;;
     807esac
     808else
     809  RTEMS_HAS_RDBG=yes
     810fi
     811
     812
    796813# Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.
    797814if test "${enable_rtems_inlines+set}" = set; then
     
    875892set dummy cat; ac_word=$2
    876893echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    877 echo "configure:878: checking for $ac_word" >&5
     894echo "configure:895: checking for $ac_word" >&5
    878895if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then
    879896  echo $ac_n "(cached) $ac_c" 1>&6
     
    906923set dummy rm; ac_word=$2
    907924echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    908 echo "configure:909: checking for $ac_word" >&5
     925echo "configure:926: checking for $ac_word" >&5
    909926if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
    910927  echo $ac_n "(cached) $ac_c" 1>&6
     
    937954set dummy cp; ac_word=$2
    938955echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    939 echo "configure:940: checking for $ac_word" >&5
     956echo "configure:957: checking for $ac_word" >&5
    940957if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
    941958  echo $ac_n "(cached) $ac_c" 1>&6
     
    968985set dummy mv; ac_word=$2
    969986echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    970 echo "configure:971: checking for $ac_word" >&5
     987echo "configure:988: checking for $ac_word" >&5
    971988if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
    972989  echo $ac_n "(cached) $ac_c" 1>&6
     
    9991016set dummy ln; ac_word=$2
    10001017echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1001 echo "configure:1002: checking for $ac_word" >&5
     1018echo "configure:1019: checking for $ac_word" >&5
    10021019if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
    10031020  echo $ac_n "(cached) $ac_c" 1>&6
     
    10281045
    10291046echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1030 echo "configure:1031: checking whether ln -s works" >&5
     1047echo "configure:1048: checking whether ln -s works" >&5
    10311048if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    10321049  echo $ac_n "(cached) $ac_c" 1>&6
     
    10511068set dummy chmod; ac_word=$2
    10521069echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1053 echo "configure:1054: checking for $ac_word" >&5
     1070echo "configure:1071: checking for $ac_word" >&5
    10541071if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
    10551072  echo $ac_n "(cached) $ac_c" 1>&6
     
    10821099set dummy sort; ac_word=$2
    10831100echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1084 echo "configure:1085: checking for $ac_word" >&5
     1101echo "configure:1102: checking for $ac_word" >&5
    10851102if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then
    10861103  echo $ac_n "(cached) $ac_c" 1>&6
     
    11211138# ./install, which can be erroneously created by make from ./install.sh.
    11221139echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1123 echo "configure:1124: checking for a BSD compatible install" >&5
     1140echo "configure:1141: checking for a BSD compatible install" >&5
    11241141if test -z "$INSTALL"; then
    11251142if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    11731190set dummy perl; ac_word=$2
    11741191echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1175 echo "configure:1176: checking for $ac_word" >&5
     1192echo "configure:1193: checking for $ac_word" >&5
    11761193if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
    11771194  echo $ac_n "(cached) $ac_c" 1>&6
     
    12101227set dummy mkdir; ac_word=$2
    12111228echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1212 echo "configure:1213: checking for $ac_word" >&5
     1229echo "configure:1230: checking for $ac_word" >&5
    12131230if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
    12141231  echo $ac_n "(cached) $ac_c" 1>&6
     
    12421259
    12431260echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6
    1244 echo "configure:1245: checking for working $MKDIR -m 0755" >&5
     1261echo "configure:1262: checking for working $MKDIR -m 0755" >&5
    12451262if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then
    12461263  echo $ac_n "(cached) $ac_c" 1>&6
     
    12591276
    12601277echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6
    1261 echo "configure:1262: checking for working $MKDIR -p" >&5
     1278echo "configure:1279: checking for working $MKDIR -p" >&5
    12621279if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then
    12631280  echo $ac_n "(cached) $ac_c" 1>&6
     
    12791296set dummy touch; ac_word=$2
    12801297echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1281 echo "configure:1282: checking for $ac_word" >&5
     1298echo "configure:1299: checking for $ac_word" >&5
    12821299if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
    12831300  echo $ac_n "(cached) $ac_c" 1>&6
     
    13101327set dummy cmp; ac_word=$2
    13111328echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1312 echo "configure:1313: checking for $ac_word" >&5
     1329echo "configure:1330: checking for $ac_word" >&5
    13131330if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
    13141331  echo $ac_n "(cached) $ac_c" 1>&6
     
    13421359set dummy sed; ac_word=$2
    13431360echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1344 echo "configure:1345: checking for $ac_word" >&5
     1361echo "configure:1362: checking for $ac_word" >&5
    13451362if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
    13461363  echo $ac_n "(cached) $ac_c" 1>&6
     
    13751392set dummy $ac_prog; ac_word=$2
    13761393echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1377 echo "configure:1378: checking for $ac_word" >&5
     1394echo "configure:1395: checking for $ac_word" >&5
    13781395if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
    13791396  echo $ac_n "(cached) $ac_c" 1>&6
     
    14121429set dummy $ac_prog; ac_word=$2
    14131430echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1414 echo "configure:1415: checking for $ac_word" >&5
     1431echo "configure:1432: checking for $ac_word" >&5
    14151432if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    14161433  echo $ac_n "(cached) $ac_c" 1>&6
     
    14901507  *)
    14911508        echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    1492 echo "configure:1493: checking rtems target cpu" >&5
     1509echo "configure:1510: checking rtems target cpu" >&5
    14931510target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    14941511echo "$ac_t""$target_cpu" 1>&6
     
    15091526# Is this a supported CPU?
    15101527echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
    1511 echo "configure:1512: checking if cpu $target_cpu is supported" >&5
     1528echo "configure:1529: checking if cpu $target_cpu is supported" >&5
    15121529if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
    15131530  echo "$ac_t""yes" 1>&6
     
    15341551set dummy $ac_prog; ac_word=$2
    15351552echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1536 echo "configure:1537: checking for $ac_word" >&5
     1553echo "configure:1554: checking for $ac_word" >&5
    15371554if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
    15381555  echo $ac_n "(cached) $ac_c" 1>&6
     
    15741591
    15751592echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1576 echo "configure:1577: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1593echo "configure:1594: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    15771594
    15781595ac_ext=c
     
    15841601
    15851602cat > conftest.$ac_ext <<EOF
    1586 #line 1587 "configure"
     1603#line 1604 "configure"
    15871604#include "confdefs.h"
    15881605main(){return(0);}
    15891606EOF
    1590 if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1607if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    15911608  ac_cv_prog_cc_works=yes
    15921609  # If we can't run a trivial program, we are probably using a cross compiler.
     
    16081625fi
    16091626echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1610 echo "configure:1611: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1627echo "configure:1628: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    16111628echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    16121629cross_compiling=$ac_cv_prog_cc_cross
    16131630
    16141631echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1615 echo "configure:1616: checking whether we are using GNU C" >&5
     1632echo "configure:1633: checking whether we are using GNU C" >&5
    16161633if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    16171634  echo $ac_n "(cached) $ac_c" 1>&6
     
    16221639#endif
    16231640EOF
    1624 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1641if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    16251642  ac_cv_prog_gcc=yes
    16261643else
     
    16371654  CFLAGS=
    16381655  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1639 echo "configure:1640: checking whether ${CC-cc} accepts -g" >&5
     1656echo "configure:1657: checking whether ${CC-cc} accepts -g" >&5
    16401657if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    16411658  echo $ac_n "(cached) $ac_c" 1>&6
     
    16791696
    16801697echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
    1681 echo "configure:1682: checking whether $CC_FOR_TARGET accepts -specs" >&5
     1698echo "configure:1699: checking whether $CC_FOR_TARGET accepts -specs" >&5
    16821699if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
    16831700  echo $ac_n "(cached) $ac_c" 1>&6
     
    17001717
    17011718echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
    1702 echo "configure:1703: checking whether $CC_FOR_TARGET accepts --pipe" >&5
     1719echo "configure:1720: checking whether $CC_FOR_TARGET accepts --pipe" >&5
    17031720if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
    17041721  echo $ac_n "(cached) $ac_c" 1>&6
     
    17411758set dummy $ac_prog; ac_word=$2
    17421759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1743 echo "configure:1744: checking for $ac_word" >&5
     1760echo "configure:1761: checking for $ac_word" >&5
    17441761if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
    17451762  echo $ac_n "(cached) $ac_c" 1>&6
     
    17811798
    17821799echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1783 echo "configure:1784: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1800echo "configure:1801: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    17841801
    17851802ac_ext=C
     
    17911808
    17921809cat > conftest.$ac_ext <<EOF
    1793 #line 1794 "configure"
     1810#line 1811 "configure"
    17941811#include "confdefs.h"
    17951812main(){return(0);}
    17961813EOF
    1797 if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1814if { (eval echo configure:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    17981815  ac_cv_prog_cxx_works=yes
    17991816  # If we can't run a trivial program, we are probably using a cross compiler.
     
    18211838fi
    18221839echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1823 echo "configure:1824: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1840echo "configure:1841: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    18241841echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    18251842cross_compiling=$ac_cv_prog_cxx_cross
    18261843
    18271844echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1828 echo "configure:1829: checking whether we are using GNU C++" >&5
     1845echo "configure:1846: checking whether we are using GNU C++" >&5
    18291846if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    18301847  echo $ac_n "(cached) $ac_c" 1>&6
     
    18351852#endif
    18361853EOF
    1837 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1854if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    18381855  ac_cv_prog_gxx=yes
    18391856else
     
    18501867  CXXFLAGS=
    18511868  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1852 echo "configure:1853: checking whether ${CXX-g++} accepts -g" >&5
     1869echo "configure:1870: checking whether ${CXX-g++} accepts -g" >&5
    18531870if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    18541871  echo $ac_n "(cached) $ac_c" 1>&6
     
    19041921 
    19051922echo $ac_n "checking target's ar""... $ac_c" 1>&6
    1906 echo "configure:1907: checking target's ar" >&5
     1923echo "configure:1924: checking target's ar" >&5
    19071924if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    19081925  echo $ac_n "(cached) $ac_c" 1>&6
     
    19371954    # intends
    19381955    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1939 echo "configure:1940: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
     1956echo "configure:1957: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
    19401957    case "$AR_FOR_TARGET" in
    19411958    /*) # valid
     
    19541971set dummy "$program_prefix"ar; ac_word=$2
    19551972echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1956 echo "configure:1957: checking for $ac_word" >&5
     1973echo "configure:1974: checking for $ac_word" >&5
    19571974if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    19581975  echo $ac_n "(cached) $ac_c" 1>&6
     
    19872004 
    19882005echo $ac_n "checking target's as""... $ac_c" 1>&6
    1989 echo "configure:1990: checking target's as" >&5
     2006echo "configure:2007: checking target's as" >&5
    19902007if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    19912008  echo $ac_n "(cached) $ac_c" 1>&6
     
    20202037    # intends
    20212038    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2022 echo "configure:2023: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
     2039echo "configure:2040: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
    20232040    case "$AS_FOR_TARGET" in
    20242041    /*) # valid
     
    20372054set dummy "$program_prefix"as; ac_word=$2
    20382055echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2039 echo "configure:2040: checking for $ac_word" >&5
     2056echo "configure:2057: checking for $ac_word" >&5
    20402057if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    20412058  echo $ac_n "(cached) $ac_c" 1>&6
     
    20702087 
    20712088echo $ac_n "checking target's ld""... $ac_c" 1>&6
    2072 echo "configure:2073: checking target's ld" >&5
     2089echo "configure:2090: checking target's ld" >&5
    20732090if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    20742091  echo $ac_n "(cached) $ac_c" 1>&6
     
    21032120    # intends
    21042121    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2105 echo "configure:2106: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
     2122echo "configure:2123: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
    21062123    case "$LD_FOR_TARGET" in
    21072124    /*) # valid
     
    21202137set dummy "$program_prefix"ld; ac_word=$2
    21212138echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2122 echo "configure:2123: checking for $ac_word" >&5
     2139echo "configure:2140: checking for $ac_word" >&5
    21232140if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    21242141  echo $ac_n "(cached) $ac_c" 1>&6
     
    21532170 
    21542171echo $ac_n "checking target's nm""... $ac_c" 1>&6
    2155 echo "configure:2156: checking target's nm" >&5
     2172echo "configure:2173: checking target's nm" >&5
    21562173if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    21572174  echo $ac_n "(cached) $ac_c" 1>&6
     
    21862203    # intends
    21872204    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2188 echo "configure:2189: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
     2205echo "configure:2206: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
    21892206    case "$NM_FOR_TARGET" in
    21902207    /*) # valid
     
    22032220set dummy "$program_prefix"nm; ac_word=$2
    22042221echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2205 echo "configure:2206: checking for $ac_word" >&5
     2222echo "configure:2223: checking for $ac_word" >&5
    22062223if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    22072224  echo $ac_n "(cached) $ac_c" 1>&6
     
    22372254 
    22382255echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
    2239 echo "configure:2240: checking target's ranlib" >&5
     2256echo "configure:2257: checking target's ranlib" >&5
    22402257if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    22412258  echo $ac_n "(cached) $ac_c" 1>&6
     
    22702287    # intends
    22712288    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2272 echo "configure:2273: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
     2289echo "configure:2290: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
    22732290    case "$RANLIB_FOR_TARGET" in
    22742291    /*) # valid
     
    22872304set dummy "$program_prefix"ranlib; ac_word=$2
    22882305echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2289 echo "configure:2290: checking for $ac_word" >&5
     2306echo "configure:2307: checking for $ac_word" >&5
    22902307if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    22912308  echo $ac_n "(cached) $ac_c" 1>&6
     
    23222339   
    23232340echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
    2324 echo "configure:2325: checking whether $AR_FOR_TARGET -s works" >&5
     2341echo "configure:2342: checking whether $AR_FOR_TARGET -s works" >&5
    23252342if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
    23262343  echo $ac_n "(cached) $ac_c" 1>&6
     
    23312348{ return b; }
    23322349EOF
    2333 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    2334   && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     2350if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     2351  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    23352352  && test -s conftest.a ; \
    23362353then
     
    23572374 
    23582375echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
    2359 echo "configure:2360: checking target's objcopy" >&5
     2376echo "configure:2377: checking target's objcopy" >&5
    23602377if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    23612378  echo $ac_n "(cached) $ac_c" 1>&6
     
    23902407    # intends
    23912408    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2392 echo "configure:2393: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
     2409echo "configure:2410: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
    23932410    case "$OBJCOPY_FOR_TARGET" in
    23942411    /*) # valid
     
    24072424set dummy "$program_prefix"objcopy; ac_word=$2
    24082425echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2409 echo "configure:2410: checking for $ac_word" >&5
     2426echo "configure:2427: checking for $ac_word" >&5
    24102427if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    24112428  echo $ac_n "(cached) $ac_c" 1>&6
     
    24402457 
    24412458echo $ac_n "checking target's size""... $ac_c" 1>&6
    2442 echo "configure:2443: checking target's size" >&5
     2459echo "configure:2460: checking target's size" >&5
    24432460if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    24442461  echo $ac_n "(cached) $ac_c" 1>&6
     
    24732490    # intends
    24742491    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2475 echo "configure:2476: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
     2492echo "configure:2493: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
    24762493    case "$SIZE_FOR_TARGET" in
    24772494    /*) # valid
     
    24902507set dummy "$program_prefix"size; ac_word=$2
    24912508echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2492 echo "configure:2493: checking for $ac_word" >&5
     2509echo "configure:2510: checking for $ac_word" >&5
    24932510if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    24942511  echo $ac_n "(cached) $ac_c" 1>&6
     
    25232540 
    25242541echo $ac_n "checking target's strip""... $ac_c" 1>&6
    2525 echo "configure:2526: checking target's strip" >&5
     2542echo "configure:2543: checking target's strip" >&5
    25262543if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    25272544  echo $ac_n "(cached) $ac_c" 1>&6
     
    25562573    # intends
    25572574    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2558 echo "configure:2559: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
     2575echo "configure:2576: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
    25592576    case "$STRIP_FOR_TARGET" in
    25602577    /*) # valid
     
    25732590set dummy "$program_prefix"strip; ac_word=$2
    25742591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2575 echo "configure:2576: checking for $ac_word" >&5
     2592echo "configure:2593: checking for $ac_word" >&5
    25762593if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    25772594  echo $ac_n "(cached) $ac_c" 1>&6
     
    26082625if test "${target_cpu}" = "i386"; then
    26092626    echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6
    2610 echo "configure:2611: checking for 16 bit mode assembler support" >&5
     2627echo "configure:2628: checking for 16 bit mode assembler support" >&5
    26112628if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then
    26122629  echo $ac_n "(cached) $ac_c" 1>&6
     
    26182635         lgdt 0
    26192636EOF
    2620       if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
     2637      if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
    26212638        rtems_cv_prog_gas_code16=yes
    26222639      else
     
    26332650set dummy gcc; ac_word=$2
    26342651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2635 echo "configure:2636: checking for $ac_word" >&5
     2652echo "configure:2653: checking for $ac_word" >&5
    26362653if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    26372654  echo $ac_n "(cached) $ac_c" 1>&6
     
    26622679set dummy cc; ac_word=$2
    26632680echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2664 echo "configure:2665: checking for $ac_word" >&5
     2681echo "configure:2682: checking for $ac_word" >&5
    26652682if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    26662683  echo $ac_n "(cached) $ac_c" 1>&6
     
    27102727
    27112728echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2712 echo "configure:2713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2729echo "configure:2730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    27132730
    27142731ac_ext=c
     
    27202737
    27212738cat > conftest.$ac_ext <<EOF
    2722 #line 2723 "configure"
     2739#line 2740 "configure"
    27232740#include "confdefs.h"
    27242741main(){return(0);}
    27252742EOF
    2726 if { (eval echo configure:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2743if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    27272744  ac_cv_prog_cc_works=yes
    27282745  # If we can't run a trivial program, we are probably using a cross compiler.
     
    27442761fi
    27452762echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2746 echo "configure:2747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2763echo "configure:2764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    27472764echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    27482765cross_compiling=$ac_cv_prog_cc_cross
    27492766
    27502767echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    2751 echo "configure:2752: checking whether we are using GNU C" >&5
     2768echo "configure:2769: checking whether we are using GNU C" >&5
    27522769if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    27532770  echo $ac_n "(cached) $ac_c" 1>&6
     
    27582775#endif
    27592776EOF
    2760 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     2777if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    27612778  ac_cv_prog_gcc=yes
    27622779else
     
    27732790  CFLAGS=
    27742791  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    2775 echo "configure:2776: checking whether ${CC-cc} accepts -g" >&5
     2792echo "configure:2793: checking whether ${CC-cc} accepts -g" >&5
    27762793if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    27772794  echo $ac_n "(cached) $ac_c" 1>&6
     
    28022819
    28032820echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
    2804 echo "configure:2805: checking for Cygwin32 environment" >&5
     2821echo "configure:2822: checking for Cygwin32 environment" >&5
    28052822if eval "test \"`echo '$''{'rtems_cv_cygwin32'+set}'`\" = set"; then
    28062823  echo $ac_n "(cached) $ac_c" 1>&6
    28072824else
    28082825  cat > conftest.$ac_ext <<EOF
    2809 #line 2810 "configure"
     2826#line 2827 "configure"
    28102827#include "confdefs.h"
    28112828
     
    28142831; return 0; }
    28152832EOF
    2816 if { (eval echo configure:2817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2833if { (eval echo configure:2834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    28172834  rm -rf conftest*
    28182835  rtems_cv_cygwin32=yes
     
    28322849
    28332850echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
    2834 echo "configure:2835: checking for executable suffix" >&5
     2851echo "configure:2852: checking for executable suffix" >&5
    28352852if eval "test \"`echo '$''{'rtems_cv_exeext'+set}'`\" = set"; then
    28362853  echo $ac_n "(cached) $ac_c" 1>&6
     
    28732890do
    28742891echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2875 echo "configure:2876: checking for $ac_func" >&5
     2892echo "configure:2893: checking for $ac_func" >&5
    28762893if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    28772894  echo $ac_n "(cached) $ac_c" 1>&6
    28782895else
    28792896  cat > conftest.$ac_ext <<EOF
    2880 #line 2881 "configure"
     2897#line 2898 "configure"
    28812898#include "confdefs.h"
    28822899/* System header to define __stub macros and hopefully few prototypes,
     
    29012918; return 0; }
    29022919EOF
    2903 if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2920if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    29042921  rm -rf conftest*
    29052922  eval "ac_cv_func_$ac_func=yes"
     
    29302947
    29312948echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6
    2932 echo "configure:2933: checking whether $RTEMS_HOST supports System V semaphores" >&5
     2949echo "configure:2950: checking whether $RTEMS_HOST supports System V semaphores" >&5
    29332950if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then
    29342951  echo $ac_n "(cached) $ac_c" 1>&6
     
    29392956else
    29402957  cat > conftest.$ac_ext <<EOF
    2941 #line 2942 "configure"
     2958#line 2959 "configure"
    29422959#include "confdefs.h"
    29432960
     
    29652982
    29662983EOF
    2967 if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2984if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    29682985then
    29692986  rtems_cv_sysv_sem="yes"
     
    29883005
    29893006echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6
    2990 echo "configure:2991: checking whether $RTEMS_HOST supports System V shared memory" >&5
     3007echo "configure:3008: checking whether $RTEMS_HOST supports System V shared memory" >&5
    29913008if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then
    29923009  echo $ac_n "(cached) $ac_c" 1>&6
     
    29973014else
    29983015  cat > conftest.$ac_ext <<EOF
    2999 #line 3000 "configure"
     3016#line 3017 "configure"
    30003017#include "confdefs.h"
    30013018
     
    30133030
    30143031EOF
    3015 if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3032if { (eval echo configure:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    30163033then
    30173034  rtems_cv_sysv_shm="yes"
     
    30363053
    30373054echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6
    3038 echo "configure:3039: checking whether $RTEMS_HOST supports System V messages" >&5
     3055echo "configure:3056: checking whether $RTEMS_HOST supports System V messages" >&5
    30393056if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then
    30403057  echo $ac_n "(cached) $ac_c" 1>&6
     
    30453062else
    30463063  cat > conftest.$ac_ext <<EOF
    3047 #line 3048 "configure"
     3064#line 3065 "configure"
    30483065#include "confdefs.h"
    30493066
     
    30613078
    30623079EOF
    3063 if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3080if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    30643081then
    30653082  rtems_cv_sysv_msg="yes"
     
    30863103
    30873104echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6
    3088 echo "configure:3089: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
     3105echo "configure:3106: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
    30893106if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then
    30903107  rtems_av_save_dir=`pwd`;
     
    31013118
    31023119echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6
    3103 echo "configure:3104: checking for Makefile.in in c/src/exec/rtems" >&5
     3120echo "configure:3121: checking for Makefile.in in c/src/exec/rtems" >&5
    31043121if test -d $srcdir/c/src/exec/rtems; then
    31053122  rtems_av_save_dir=`pwd`;
     
    31163133
    31173134echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6
    3118 echo "configure:3119: checking for Makefile.in in c/src/exec/sapi" >&5
     3135echo "configure:3136: checking for Makefile.in in c/src/exec/sapi" >&5
    31193136if test -d $srcdir/c/src/exec/sapi; then
    31203137  rtems_av_save_dir=`pwd`;
     
    31333150 
    31343151echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6
    3135 echo "configure:3136: checking for Makefile.in in c/src/exec/posix" >&5
     3152echo "configure:3153: checking for Makefile.in in c/src/exec/posix" >&5
    31363153if test -d $srcdir/c/src/exec/posix; then
    31373154  rtems_av_save_dir=`pwd`;
     
    31553172  if test -z "$rtems_bsp"; then
    31563173    echo $ac_n "checking for bsps""... $ac_c" 1>&6
    3157 echo "configure:3158: checking for bsps" >&5
     3174echo "configure:3175: checking for bsps" >&5
    31583175    files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
    31593176    for file in $files; do
     
    32203237       
    32213238echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir""... $ac_c" 1>&6
    3222 echo "configure:3223: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&5
     3239echo "configure:3240: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&5
    32233240if test -d $srcdir/c/src/lib/libbsp/$bspcpudir$bspdir; then
    32243241  rtems_av_save_dir=`pwd`;
     
    32353252       
    32363253echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared""... $ac_c" 1>&6
    3237 echo "configure:3238: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&5
     3254echo "configure:3255: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&5
    32383255if test -d $srcdir/c/src/lib/libbsp/${bspcpudir}shared; then
    32393256  rtems_av_save_dir=`pwd`;
     
    32583275
    32593276echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
    3260 echo "configure:3261: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
     3277echo "configure:3278: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
    32613278if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
    32623279  rtems_av_save_dir=`pwd`;
     
    32753292 
    32763293echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
    3277 echo "configure:3278: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
     3294echo "configure:3295: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
    32783295if test -d $srcdir/c/src/lib/start/$target_cpu; then
    32793296  rtems_av_save_dir=`pwd`;
     
    33073324# If the TCP/IP stack is enabled, then find all TCP/IP Makefiles
    33083325echo $ac_n "checking if networking is enabled? ""... $ac_c" 1>&6
    3309 echo "configure:3310: checking if networking is enabled? " >&5
     3326echo "configure:3327: checking if networking is enabled? " >&5
    33103327echo "$ac_t""$RTEMS_HAS_NETWORKING" 1>&6
    33113328if test "$RTEMS_HAS_NETWORKING" = "yes"; then
    33123329 
    33133330echo $ac_n "checking for Makefile.in in c/src/lib/libnetworking""... $ac_c" 1>&6
    3314 echo "configure:3315: checking for Makefile.in in c/src/lib/libnetworking" >&5
     3331echo "configure:3332: checking for Makefile.in in c/src/lib/libnetworking" >&5
    33153332if test -d $srcdir/c/src/lib/libnetworking; then
    33163333  rtems_av_save_dir=`pwd`;
     
    33253342
    33263343
     3344 
     3345echo $ac_n "checking for Makefile.in in c/src/lib/librpc""... $ac_c" 1>&6
     3346echo "configure:3347: checking for Makefile.in in c/src/lib/librpc" >&5
     3347if test -d $srcdir/c/src/lib/librpc; then
     3348  rtems_av_save_dir=`pwd`;
     3349  cd $srcdir;
     3350  rtems_av_tmp=`find c/src/lib/librpc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
     3351  makefiles="$makefiles $rtems_av_tmp";
     3352  cd $rtems_av_save_dir;
     3353  echo "$ac_t""done" 1>&6
     3354else
     3355  echo "$ac_t""no" 1>&6
     3356fi
     3357
     3358
     3359  if test "$RTEMS_HAS_RDBG" = "yes"; then
     3360   
     3361echo $ac_n "checking for Makefile.in in c/src/lib/librdbg""... $ac_c" 1>&6
     3362echo "configure:3363: checking for Makefile.in in c/src/lib/librdbg" >&5
     3363if test -d $srcdir/c/src/lib/librdbg; then
     3364  rtems_av_save_dir=`pwd`;
     3365  cd $srcdir;
     3366  rtems_av_tmp=`find c/src/lib/librdbg -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
     3367  makefiles="$makefiles $rtems_av_tmp";
     3368  cd $rtems_av_save_dir;
     3369  echo "$ac_t""done" 1>&6
     3370else
     3371  echo "$ac_t""no" 1>&6
     3372fi
     3373
     3374
     3375  fi
    33273376fi
    33283377
     
    33343383# If the tests are enabled, then find all the test suite Makefiles
    33353384echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6
    3336 echo "configure:3337: checking if the test suites are enabled? " >&5
     3385echo "configure:3386: checking if the test suites are enabled? " >&5
    33373386tests_enabled=yes
    33383387# Check whether --enable-tests or --disable-tests was given.
     
    33533402
    33543403echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6
    3355 echo "configure:3356: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
     3404echo "configure:3405: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
    33563405if test -d $srcdir/c/src/tests/tools/$target_cpu; then
    33573406  rtems_av_save_dir=`pwd`;
     
    33703419   
    33713420echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
    3372 echo "configure:3373: checking for Makefile.in in c/src/tests/libtests" >&5
     3421echo "configure:3422: checking for Makefile.in in c/src/tests/libtests" >&5
    33733422if test -d $srcdir/c/src/tests/libtests; then
    33743423  rtems_av_save_dir=`pwd`;
     
    33853434   
    33863435echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
    3387 echo "configure:3388: checking for Makefile.in in c/src/tests/sptests" >&5
     3436echo "configure:3437: checking for Makefile.in in c/src/tests/sptests" >&5
    33883437if test -d $srcdir/c/src/tests/sptests; then
    33893438  rtems_av_save_dir=`pwd`;
     
    34003449   
    34013450echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
    3402 echo "configure:3403: checking for Makefile.in in c/src/tests/tmtests" >&5
     3451echo "configure:3452: checking for Makefile.in in c/src/tests/tmtests" >&5
    34033452if test -d $srcdir/c/src/tests/tmtests; then
    34043453  rtems_av_save_dir=`pwd`;
     
    34163465       
    34173466echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
    3418 echo "configure:3419: checking for Makefile.in in c/src/tests/mptests" >&5
     3467echo "configure:3468: checking for Makefile.in in c/src/tests/mptests" >&5
    34193468if test -d $srcdir/c/src/tests/mptests; then
    34203469  rtems_av_save_dir=`pwd`;
     
    34333482     
    34343483echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
    3435 echo "configure:3436: checking for Makefile.in in c/src/tests/psxtests" >&5
     3484echo "configure:3485: checking for Makefile.in in c/src/tests/psxtests" >&5
    34363485if test -d $srcdir/c/src/tests/psxtests; then
    34373486  rtems_av_save_dir=`pwd`;
     
    34513500# If the HWAPI is enabled, the find the HWAPI Makefiles
    34523501echo $ac_n "checking if the HWAPI is enabled? ""... $ac_c" 1>&6
    3453 echo "configure:3454: checking if the HWAPI is enabled? " >&5
     3502echo "configure:3503: checking if the HWAPI is enabled? " >&5
    34543503# Check whether --enable-hwapi or --disable-hwapi was given.
    34553504if test "${enable_hwapi+set}" = set; then
     
    34623511           
    34633512echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6
    3464 echo "configure:3465: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
     3513echo "configure:3514: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
    34653514if test -d $srcdir/c/src/lib/libhwapi/analog; then
    34663515  rtems_av_save_dir=`pwd`;
     
    34773526           
    34783527echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6
    3479 echo "configure:3480: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
     3528echo "configure:3529: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
    34803529if test -d $srcdir/c/src/lib/libhwapi/discrete; then
    34813530  rtems_av_save_dir=`pwd`;
     
    34923541           
    34933542echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6
    3494 echo "configure:3495: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
     3543echo "configure:3544: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
    34953544if test -d $srcdir/c/src/lib/libhwapi/drivers; then
    34963545  rtems_av_save_dir=`pwd`;
     
    35073556           
    35083557echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6
    3509 echo "configure:3510: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
     3558echo "configure:3559: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
    35103559if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then
    35113560  rtems_av_save_dir=`pwd`;
     
    35223571           
    35233572echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6
    3524 echo "configure:3525: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
     3573echo "configure:3574: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
    35253574if test -d $srcdir/c/src/lib/libhwapi/serial; then
    35263575  rtems_av_save_dir=`pwd`;
     
    35373586           
    35383587echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6
    3539 echo "configure:3540: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
     3588echo "configure:3589: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
    35403589if test -d $srcdir/c/src/lib/libhwapi/support; then
    35413590  rtems_av_save_dir=`pwd`;
     
    35523601           
    35533602echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6
    3554 echo "configure:3555: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
     3603echo "configure:3604: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
    35553604if test -d $srcdir/c/src/lib/libhwapi/wrapup; then
    35563605  rtems_av_save_dir=`pwd`;
     
    35993648
    36003649
     3650
    36013651# pick up all the Makefiles in required parts of the tree
    36023652
    36033653echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6
    3604 echo "configure:3605: checking for Makefile.in in c/build-tools" >&5
     3654echo "configure:3655: checking for Makefile.in in c/build-tools" >&5
    36053655if test -d $srcdir/c/build-tools; then
    36063656  rtems_av_save_dir=`pwd`;
     
    36173667
    36183668echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6
    3619 echo "configure:3620: checking for Makefile.in in make" >&5
     3669echo "configure:3670: checking for Makefile.in in make" >&5
    36203670if test -d $srcdir/make; then
    36213671  rtems_av_save_dir=`pwd`;
     
    36323682
    36333683echo $ac_n "checking for Makefile.in in c/src/lib/libchip""... $ac_c" 1>&6
    3634 echo "configure:3635: checking for Makefile.in in c/src/lib/libchip" >&5
     3684echo "configure:3685: checking for Makefile.in in c/src/lib/libchip" >&5
    36353685if test -d $srcdir/c/src/lib/libchip; then
    36363686  rtems_av_save_dir=`pwd`;
     
    36473697
    36483698echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
    3649 echo "configure:3650: checking for Makefile.in in c/src/lib/libmisc" >&5
     3699echo "configure:3700: checking for Makefile.in in c/src/lib/libmisc" >&5
    36503700if test -d $srcdir/c/src/lib/libmisc; then
    36513701  rtems_av_save_dir=`pwd`;
     
    36623712
    36633713echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
    3664 echo "configure:3665: checking for Makefile.in in c/src/tests/samples" >&5
     3714echo "configure:3715: checking for Makefile.in in c/src/tests/samples" >&5
    36653715if test -d $srcdir/c/src/tests/samples; then
    36663716  rtems_av_save_dir=`pwd`;
     
    38973947s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
    38983948s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g
     3949s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g
    38993950s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g
    39003951s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g
  • configure.in

    rcd155be r4721cf1  
    4343  *)  AC_MSG_ERROR(bad value ${enableval} for enable-networking option) ;;
    4444esac],[RTEMS_HAS_NETWORKING=yes])
     45
     46AC_ARG_ENABLE(rdbg, \
     47[  --enable-rdbg                enable remote debugger], \
     48[case "${enableval}" in
     49  yes) RTEMS_HAS_RDBG=yes ;;
     50  no) RTEMS_HAS_RDBG=no ;;
     51  *)  AC_MSG_ERROR(bad value ${enableval} for enable-rdbg option) ;;
     52esac],[RTEMS_HAS_RDBG=yes])
    4553
    4654AC_ARG_ENABLE(rtems-inlines, \
     
    409417if test "$RTEMS_HAS_NETWORKING" = "yes"; then
    410418  RTEMS_CHECK_MAKEFILE(c/src/lib/libnetworking)
     419  RTEMS_CHECK_MAKEFILE(c/src/lib/librpc)
     420  if test "$RTEMS_HAS_RDBG" = "yes"; then
     421    RTEMS_CHECK_MAKEFILE(c/src/lib/librdbg)
     422  fi
    411423fi
    412424
     
    476488AC_SUBST(RTEMS_HAS_POSIX_API)
    477489AC_SUBST(RTEMS_HAS_NETWORKING)
     490AC_SUBST(RTEMS_HAS_RDBG)
    478491AC_SUBST(RTEMS_USE_MACROS)
    479492AC_SUBST(RTEMS_HAS_CPLUSPLUS)
  • make/custom/default.cfg

    rcd155be r4721cf1  
    7272endif
    7373
     74# Define this to yes if this target wants the remote debugger
     75ifeq ($(RTEMS_HAS_RDBG),yes)
     76HAS_RDBG=yes
     77else
     78HAS_RDBG=no
     79endif
     80
    7481# Define this to yes if this target wants the posix api
    7582ifeq ($(RTEMS_HAS_POSIX_API),yes)
  • make/target.cfg.in

    rcd155be r4721cf1  
    4444RTEMS_HAS_POSIX_1H_API = @RTEMS_HAS_POSIX_1H_API@
    4545RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
     46RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@
    4647RTEMS_HAS_CPLUSPLUS = @RTEMS_HAS_CPLUSPLUS@
    4748RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
Note: See TracChangeset for help on using the changeset viewer.