Changeset 15aa5ffb in rtems


Ignore:
Timestamp:
Jun 14, 1999, 6:54:24 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
0ac8e382
Parents:
3b38683
Message:

Patch ("FIX: no_cpu/no_bsp") from Ralf Corsepius <corsepiu@…>:

This patch should fix the nastiest configuration bugs for no_cpu/no_bsp.

With this patch applied, configure --target=no_cpu-rtems now correctly
acknowledges its configuration, but later fails building when trying to
build libcsupport (I leave this problem for you :-).

Fixes/Changes?:

  • aclocal/canonicalize-target-name.m4: use RTEMS_CPU instead of target_cpu, switch to a native compiler setup if target = no_cpu*rtems, ie. implicitly use host=target (native) and RTEMS_CPU=no_cpu for --target=no_cpu*rtems.
  • add no_bsp/bsp_specs (Support -qrtems, -qrtems_debug; please check before adding :-)
  • Use RTEMS_CANONICALIZE_TARGET_CPU instead of AC_CANONICAL_SYSTEM in toplevel/configure.in
  • All references to $target_cpu in aclocal/*.m4, Makefile.ins and *.cfg files changed to RTEMS_CPU
  • bug fixes to exec/score/cpu/no_cpu/wrap (This part of the patch may result into patch rejections, because your recently posted patch may also have addressed this problem).

After applying this patch, please do:

cvs add c/src/lib/libbsp/no_cpu/no_bsp/bsp_specs
./autogen

Files:
1 added
37 edited

Legend:

Unmodified
Added
Removed
  • aclocal.m4

    r3b38683 r15aa5ffb  
    5252])dnl
    5353
     54dnl
     55dnl $Id$
     56dnl
     57
     58dnl canonicalize target cpu
     59dnl NOTE: Most rtems targets do not fullfil autoconf's
     60dnl target naming conventions "processor-vendor-os"
     61dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
     62dnl and we have to fix it for rtems ourselves
     63
     64AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
     65[
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
     72AC_MSG_CHECKING(rtems target cpu)
     73changequote(,)dnl
     74case "${rtems_target}" in
     75  # hpux unix port should go here
     76  i[3456]86-go32-rtems*)
     77        RTEMS_CPU=i386
     78        ;;
     79  i[3456]86-pc-linux*)          # unix "simulator" port
     80        RTEMS_CPU=unix
     81        ;;
     82  i[3456]86-*freebsd2*)         # unix "simulator" port
     83        RTEMS_CPU=unix
     84        ;;
     85  no_cpu-*rtems*)
     86        RTEMS_CPU=no_cpu
     87        ;;
     88  sparc-sun-solaris*)           # unix "simulator" port
     89        RTEMS_CPU=unix
     90        ;;
     91  *)
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     93        ;;
     94esac
     95changequote([,])dnl
     96AC_MSG_RESULT($RTEMS_CPU)
     97])
     98
    5499dnl $Id$
    55100
     
    234279])
    235280
    236 dnl
    237 dnl $Id$
    238 dnl
    239 
    240 dnl canonicalize target cpu
    241 dnl NOTE: Most rtems targets do not fullfil autoconf's
    242 dnl target naming conventions "processor-vendor-os"
    243 dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
    244 dnl and we have to fix it for rtems ourselves
    245 
    246 AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    247 [
    248 AC_REQUIRE([AC_CANONICAL_SYSTEM])
    249 AC_MSG_CHECKING(rtems target cpu)
    250 changequote(,)dnl
    251 case "${target}" in
    252   # hpux unix port should go here
    253   i[3456]86-go32-rtems*)
    254         target_cpu=i386
    255         ;;
    256   i[3456]86-pc-linux*)          # unix "simulator" port
    257         target_cpu=unix
    258         ;;
    259   i[3456]86-*freebsd2*)         # unix "simulator" port
    260         target_cpu=unix
    261         ;;
    262   no_cpu-*rtems*)
    263         target_cpu=no_cpu
    264         ;;
    265   ppc*-*rtems*)
    266         target_cpu=powerpc
    267         ;;
    268   sparc-sun-solaris*)           # unix "simulator" port
    269         target_cpu=unix
    270         ;;
    271   *)
    272         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    273         ;;
    274 esac
    275 changequote([,])dnl
    276 AC_MSG_RESULT($target_cpu)
    277 ])
    278 
    279281dnl $Id$
    280282
     
    285287AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
    286288# Is this a supported CPU?
    287 AC_MSG_CHECKING([if cpu $target_cpu is supported])
    288 if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then
     289AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
     290if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
    289291  AC_MSG_RESULT(yes)
    290292else
  • aclocal/canonical-target-name.m4

    r3b38683 r15aa5ffb  
    1111AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    1212[
    13 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     13rtems_target=$target;
     14case "$target" in
     15no_cpu*) target=$host;;
     16*) ;;
     17esac
     18AC_CANONICAL_SYSTEM
    1419AC_MSG_CHECKING(rtems target cpu)
    1520changequote(,)dnl
    16 case "${target}" in
     21case "${rtems_target}" in
    1722  # hpux unix port should go here
    1823  i[3456]86-go32-rtems*)
    19         target_cpu=i386
     24        RTEMS_CPU=i386
    2025        ;;
    2126  i[3456]86-pc-linux*)          # unix "simulator" port
    22         target_cpu=unix
     27        RTEMS_CPU=unix
    2328        ;;
    2429  i[3456]86-*freebsd2*)         # unix "simulator" port
    25         target_cpu=unix
     30        RTEMS_CPU=unix
    2631        ;;
    2732  no_cpu-*rtems*)
    28         target_cpu=no_cpu
    29         ;;
    30   ppc*-*rtems*)
    31         target_cpu=powerpc
     33        RTEMS_CPU=no_cpu
    3234        ;;
    3335  sparc-sun-solaris*)           # unix "simulator" port
    34         target_cpu=unix
     36        RTEMS_CPU=unix
    3537        ;;
    3638  *)
    37         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     39        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    3840        ;;
    3941esac
    4042changequote([,])dnl
    41 AC_MSG_RESULT($target_cpu)
     43AC_MSG_RESULT($RTEMS_CPU)
    4244])
  • aclocal/check-cpu.m4

    r3b38683 r15aa5ffb  
    77AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
    88# Is this a supported CPU?
    9 AC_MSG_CHECKING([if cpu $target_cpu is supported])
    10 if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then
     9AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
     10if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
    1111  AC_MSG_RESULT(yes)
    1212else
  • c/src/exec/score/cpu/no_cpu/wrap/Makefile.in

    r3b38683 r15aa5ffb  
    3030C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
    3131
    32 H_PIECES = asm.h cpu_asm.h
     32H_PIECES = asm.h
    3333H_FILES=$(H_PIECES:%=$(srcdir)/../%)
    3434
     
    6666CLOBBER_ADDITIONS +=
    6767
    68 all:    ${ARCH} $(SRCS) preinstall $(OBJS) $(ARCH)/rtems.o $(RELS)
    69         $(INSTALL_VARIANT) -m 644 $(ARCH)/rtems.o ${PROJECT_RELEASE}/lib
     68all:    ${ARCH} $(SRCS) $(OBJS) $(ARCH)/rtems.o $(RELS)
     69
     70$(ARCH)/rtems.o: rtems.c
    7071
    7172../$(ARCH)/rtems-cpu.rel: $(OBJS)
  • c/src/exec/score/tools/generic/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • c/src/exec/score/tools/generic/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
     
    929930set dummy $ac_prog; ac_word=$2
    930931echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    931 echo "configure:932: checking for $ac_word" >&5
     932echo "configure:933: checking for $ac_word" >&5
    932933if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    933934  echo $ac_n "(cached) $ac_c" 1>&6
  • c/src/exec/score/tools/hppa1.1/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • c/src/exec/score/tools/hppa1.1/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
     
    926927set dummy gcc; ac_word=$2
    927928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    928 echo "configure:929: checking for $ac_word" >&5
     929echo "configure:930: checking for $ac_word" >&5
    929930if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    930931  echo $ac_n "(cached) $ac_c" 1>&6
     
    956957set dummy cc; ac_word=$2
    957958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    958 echo "configure:959: checking for $ac_word" >&5
     959echo "configure:960: checking for $ac_word" >&5
    959960if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    960961  echo $ac_n "(cached) $ac_c" 1>&6
     
    10071008set dummy cl; ac_word=$2
    10081009echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1009 echo "configure:1010: checking for $ac_word" >&5
     1010echo "configure:1011: checking for $ac_word" >&5
    10101011if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10111012  echo $ac_n "(cached) $ac_c" 1>&6
     
    10391040
    10401041echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1041 echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1042echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    10421043
    10431044ac_ext=c
     
    10501051cat > conftest.$ac_ext << EOF
    10511052
    1052 #line 1053 "configure"
     1053#line 1054 "configure"
    10531054#include "confdefs.h"
    10541055
    10551056main(){return(0);}
    10561057EOF
    1057 if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1058if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    10581059  ac_cv_prog_cc_works=yes
    10591060  # If we can't run a trivial program, we are probably using a cross compiler.
     
    10811082fi
    10821083echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1083 echo "configure:1084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1084echo "configure:1085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10841085echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10851086cross_compiling=$ac_cv_prog_cc_cross
    10861087
    10871088echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1088 echo "configure:1089: checking whether we are using GNU C" >&5
     1089echo "configure:1090: checking whether we are using GNU C" >&5
    10891090if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10901091  echo $ac_n "(cached) $ac_c" 1>&6
     
    10951096#endif
    10961097EOF
    1097 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1098if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10981099  ac_cv_prog_gcc=yes
    10991100else
     
    11141115CFLAGS=
    11151116echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1116 echo "configure:1117: checking whether ${CC-cc} accepts -g" >&5
     1117echo "configure:1118: checking whether ${CC-cc} accepts -g" >&5
    11171118if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11181119  echo $ac_n "(cached) $ac_c" 1>&6
  • c/src/exec/score/tools/sh/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • c/src/exec/score/tools/sh/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
     
    926927set dummy gcc; ac_word=$2
    927928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    928 echo "configure:929: checking for $ac_word" >&5
     929echo "configure:930: checking for $ac_word" >&5
    929930if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    930931  echo $ac_n "(cached) $ac_c" 1>&6
     
    956957set dummy cc; ac_word=$2
    957958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    958 echo "configure:959: checking for $ac_word" >&5
     959echo "configure:960: checking for $ac_word" >&5
    959960if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    960961  echo $ac_n "(cached) $ac_c" 1>&6
     
    10071008set dummy cl; ac_word=$2
    10081009echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1009 echo "configure:1010: checking for $ac_word" >&5
     1010echo "configure:1011: checking for $ac_word" >&5
    10101011if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10111012  echo $ac_n "(cached) $ac_c" 1>&6
     
    10391040
    10401041echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1041 echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1042echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    10421043
    10431044ac_ext=c
     
    10501051cat > conftest.$ac_ext << EOF
    10511052
    1052 #line 1053 "configure"
     1053#line 1054 "configure"
    10531054#include "confdefs.h"
    10541055
    10551056main(){return(0);}
    10561057EOF
    1057 if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1058if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    10581059  ac_cv_prog_cc_works=yes
    10591060  # If we can't run a trivial program, we are probably using a cross compiler.
     
    10811082fi
    10821083echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1083 echo "configure:1084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1084echo "configure:1085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10841085echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10851086cross_compiling=$ac_cv_prog_cc_cross
    10861087
    10871088echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1088 echo "configure:1089: checking whether we are using GNU C" >&5
     1089echo "configure:1090: checking whether we are using GNU C" >&5
    10891090if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10901091  echo $ac_n "(cached) $ac_c" 1>&6
     
    10951096#endif
    10961097EOF
    1097 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1098if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10981099  ac_cv_prog_gcc=yes
    10991100else
     
    11141115CFLAGS=
    11151116echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1116 echo "configure:1117: checking whether ${CC-cc} accepts -g" >&5
     1117echo "configure:1118: checking whether ${CC-cc} accepts -g" >&5
    11171118if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11181119  echo $ac_n "(cached) $ac_c" 1>&6
     
    11461147
    11471148echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
    1148 echo "configure:1149: checking for fabs in -lm" >&5
     1149echo "configure:1150: checking for fabs in -lm" >&5
    11491150ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'`
    11501151if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    11541155LIBS="-lm  $LIBS"
    11551156cat > conftest.$ac_ext <<EOF
    1156 #line 1157 "configure"
     1157#line 1158 "configure"
    11571158#include "confdefs.h"
    11581159/* Override any gcc2 internal prototype to avoid an error.  */
     
    11651166; return 0; }
    11661167EOF
    1167 if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1168if { (eval echo configure:1169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    11681169  rm -rf conftest*
    11691170  eval "ac_cv_lib_$ac_lib_var=yes"
  • c/src/exec/score/tools/unix/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • c/src/exec/score/tools/unix/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
     
    926927set dummy gcc; ac_word=$2
    927928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    928 echo "configure:929: checking for $ac_word" >&5
     929echo "configure:930: checking for $ac_word" >&5
    929930if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    930931  echo $ac_n "(cached) $ac_c" 1>&6
     
    956957set dummy cc; ac_word=$2
    957958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    958 echo "configure:959: checking for $ac_word" >&5
     959echo "configure:960: checking for $ac_word" >&5
    959960if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    960961  echo $ac_n "(cached) $ac_c" 1>&6
     
    10071008set dummy cl; ac_word=$2
    10081009echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1009 echo "configure:1010: checking for $ac_word" >&5
     1010echo "configure:1011: checking for $ac_word" >&5
    10101011if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10111012  echo $ac_n "(cached) $ac_c" 1>&6
     
    10391040
    10401041echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1041 echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1042echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    10421043
    10431044ac_ext=c
     
    10501051cat > conftest.$ac_ext << EOF
    10511052
    1052 #line 1053 "configure"
     1053#line 1054 "configure"
    10531054#include "confdefs.h"
    10541055
    10551056main(){return(0);}
    10561057EOF
    1057 if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1058if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    10581059  ac_cv_prog_cc_works=yes
    10591060  # If we can't run a trivial program, we are probably using a cross compiler.
     
    10811082fi
    10821083echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1083 echo "configure:1084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1084echo "configure:1085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10841085echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10851086cross_compiling=$ac_cv_prog_cc_cross
    10861087
    10871088echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1088 echo "configure:1089: checking whether we are using GNU C" >&5
     1089echo "configure:1090: checking whether we are using GNU C" >&5
    10891090if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10901091  echo $ac_n "(cached) $ac_c" 1>&6
     
    10951096#endif
    10961097EOF
    1097 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1098if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10981099  ac_cv_prog_gcc=yes
    10991100else
     
    11141115CFLAGS=
    11151116echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1116 echo "configure:1117: checking whether ${CC-cc} accepts -g" >&5
     1117echo "configure:1118: checking whether ${CC-cc} accepts -g" >&5
    11171118if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11181119  echo $ac_n "(cached) $ac_c" 1>&6
  • c/src/lib/libbsp/hppa1.1/simhppa/tools/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • c/src/lib/libbsp/hppa1.1/simhppa/tools/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
     
    926927set dummy gcc; ac_word=$2
    927928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    928 echo "configure:929: checking for $ac_word" >&5
     929echo "configure:930: checking for $ac_word" >&5
    929930if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    930931  echo $ac_n "(cached) $ac_c" 1>&6
     
    956957set dummy cc; ac_word=$2
    957958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    958 echo "configure:959: checking for $ac_word" >&5
     959echo "configure:960: checking for $ac_word" >&5
    959960if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    960961  echo $ac_n "(cached) $ac_c" 1>&6
     
    10071008set dummy cl; ac_word=$2
    10081009echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1009 echo "configure:1010: checking for $ac_word" >&5
     1010echo "configure:1011: checking for $ac_word" >&5
    10101011if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10111012  echo $ac_n "(cached) $ac_c" 1>&6
     
    10391040
    10401041echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1041 echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1042echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    10421043
    10431044ac_ext=c
     
    10501051cat > conftest.$ac_ext << EOF
    10511052
    1052 #line 1053 "configure"
     1053#line 1054 "configure"
    10531054#include "confdefs.h"
    10541055
    10551056main(){return(0);}
    10561057EOF
    1057 if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1058if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    10581059  ac_cv_prog_cc_works=yes
    10591060  # If we can't run a trivial program, we are probably using a cross compiler.
     
    10811082fi
    10821083echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1083 echo "configure:1084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1084echo "configure:1085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10841085echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10851086cross_compiling=$ac_cv_prog_cc_cross
    10861087
    10871088echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1088 echo "configure:1089: checking whether we are using GNU C" >&5
     1089echo "configure:1090: checking whether we are using GNU C" >&5
    10891090if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10901091  echo $ac_n "(cached) $ac_c" 1>&6
     
    10951096#endif
    10961097EOF
    1097 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1098if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10981099  ac_cv_prog_gcc=yes
    10991100else
     
    11141115CFLAGS=
    11151116echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1116 echo "configure:1117: checking whether ${CC-cc} accepts -g" >&5
     1117echo "configure:1118: checking whether ${CC-cc} accepts -g" >&5
    11171118if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11181119  echo $ac_n "(cached) $ac_c" 1>&6
     
    11491150do
    11501151echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1151 echo "configure:1152: checking for $ac_func" >&5
     1152echo "configure:1153: checking for $ac_func" >&5
    11521153if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    11531154  echo $ac_n "(cached) $ac_c" 1>&6
    11541155else
    11551156  cat > conftest.$ac_ext <<EOF
    1156 #line 1157 "configure"
     1157#line 1158 "configure"
    11571158#include "confdefs.h"
    11581159/* System header to define __stub macros and hopefully few prototypes,
     
    11771178; return 0; }
    11781179EOF
    1179 if { (eval echo configure:1180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1180if { (eval echo configure:1181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    11801181  rm -rf conftest*
    11811182  eval "ac_cv_func_$ac_func=yes"
  • c/src/lib/libbsp/i386/pc386/tools/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • c/src/lib/libbsp/i386/pc386/tools/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
     
    926927set dummy gcc; ac_word=$2
    927928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    928 echo "configure:929: checking for $ac_word" >&5
     929echo "configure:930: checking for $ac_word" >&5
    929930if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    930931  echo $ac_n "(cached) $ac_c" 1>&6
     
    956957set dummy cc; ac_word=$2
    957958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    958 echo "configure:959: checking for $ac_word" >&5
     959echo "configure:960: checking for $ac_word" >&5
    959960if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    960961  echo $ac_n "(cached) $ac_c" 1>&6
     
    10071008set dummy cl; ac_word=$2
    10081009echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1009 echo "configure:1010: checking for $ac_word" >&5
     1010echo "configure:1011: checking for $ac_word" >&5
    10101011if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10111012  echo $ac_n "(cached) $ac_c" 1>&6
     
    10391040
    10401041echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1041 echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1042echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    10421043
    10431044ac_ext=c
     
    10501051cat > conftest.$ac_ext << EOF
    10511052
    1052 #line 1053 "configure"
     1053#line 1054 "configure"
    10531054#include "confdefs.h"
    10541055
    10551056main(){return(0);}
    10561057EOF
    1057 if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1058if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    10581059  ac_cv_prog_cc_works=yes
    10591060  # If we can't run a trivial program, we are probably using a cross compiler.
     
    10811082fi
    10821083echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1083 echo "configure:1084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1084echo "configure:1085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10841085echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10851086cross_compiling=$ac_cv_prog_cc_cross
    10861087
    10871088echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1088 echo "configure:1089: checking whether we are using GNU C" >&5
     1089echo "configure:1090: checking whether we are using GNU C" >&5
    10891090if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10901091  echo $ac_n "(cached) $ac_c" 1>&6
     
    10951096#endif
    10961097EOF
    1097 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1098if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10981099  ac_cv_prog_gcc=yes
    10991100else
     
    11141115CFLAGS=
    11151116echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1116 echo "configure:1117: checking whether ${CC-cc} accepts -g" >&5
     1117echo "configure:1118: checking whether ${CC-cc} accepts -g" >&5
    11171118if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11181119  echo $ac_n "(cached) $ac_c" 1>&6
     
    11491150do
    11501151echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1151 echo "configure:1152: checking for $ac_func" >&5
     1152echo "configure:1153: checking for $ac_func" >&5
    11521153if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    11531154  echo $ac_n "(cached) $ac_c" 1>&6
    11541155else
    11551156  cat > conftest.$ac_ext <<EOF
    1156 #line 1157 "configure"
     1157#line 1158 "configure"
    11571158#include "confdefs.h"
    11581159/* System header to define __stub macros and hopefully few prototypes,
     
    11771178; return 0; }
    11781179EOF
    1179 if { (eval echo configure:1180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1180if { (eval echo configure:1181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    11801181  rm -rf conftest*
    11811182  eval "ac_cv_func_$ac_func=yes"
  • c/src/lib/libbsp/m68k/mvme162/tools/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • c/src/lib/libbsp/m68k/mvme162/tools/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
     
    926927set dummy gcc; ac_word=$2
    927928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    928 echo "configure:929: checking for $ac_word" >&5
     929echo "configure:930: checking for $ac_word" >&5
    929930if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    930931  echo $ac_n "(cached) $ac_c" 1>&6
     
    956957set dummy cc; ac_word=$2
    957958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    958 echo "configure:959: checking for $ac_word" >&5
     959echo "configure:960: checking for $ac_word" >&5
    959960if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    960961  echo $ac_n "(cached) $ac_c" 1>&6
     
    10071008set dummy cl; ac_word=$2
    10081009echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1009 echo "configure:1010: checking for $ac_word" >&5
     1010echo "configure:1011: checking for $ac_word" >&5
    10101011if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10111012  echo $ac_n "(cached) $ac_c" 1>&6
     
    10391040
    10401041echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1041 echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1042echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    10421043
    10431044ac_ext=c
     
    10501051cat > conftest.$ac_ext << EOF
    10511052
    1052 #line 1053 "configure"
     1053#line 1054 "configure"
    10531054#include "confdefs.h"
    10541055
    10551056main(){return(0);}
    10561057EOF
    1057 if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1058if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    10581059  ac_cv_prog_cc_works=yes
    10591060  # If we can't run a trivial program, we are probably using a cross compiler.
     
    10811082fi
    10821083echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1083 echo "configure:1084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1084echo "configure:1085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10841085echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10851086cross_compiling=$ac_cv_prog_cc_cross
    10861087
    10871088echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1088 echo "configure:1089: checking whether we are using GNU C" >&5
     1089echo "configure:1090: checking whether we are using GNU C" >&5
    10891090if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10901091  echo $ac_n "(cached) $ac_c" 1>&6
     
    10951096#endif
    10961097EOF
    1097 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1098if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10981099  ac_cv_prog_gcc=yes
    10991100else
     
    11141115CFLAGS=
    11151116echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1116 echo "configure:1117: checking whether ${CC-cc} accepts -g" >&5
     1117echo "configure:1118: checking whether ${CC-cc} accepts -g" >&5
    11171118if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11181119  echo $ac_n "(cached) $ac_c" 1>&6
     
    11471148
    11481149echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1149 echo "configure:1150: checking how to run the C preprocessor" >&5
     1150echo "configure:1151: checking how to run the C preprocessor" >&5
    11501151# On Suns, sometimes $CPP names a directory.
    11511152if test -n "$CPP" && test -d "$CPP"; then
     
    11621163  # not just through cpp.
    11631164  cat > conftest.$ac_ext <<EOF
    1164 #line 1165 "configure"
     1165#line 1166 "configure"
    11651166#include "confdefs.h"
    11661167#include <assert.h>
     
    11681169EOF
    11691170ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1170 { (eval echo configure:1171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1171{ (eval echo configure:1172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    11711172ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    11721173if test -z "$ac_err"; then
     
    11791180  CPP="${CC-cc} -E -traditional-cpp"
    11801181  cat > conftest.$ac_ext <<EOF
    1181 #line 1182 "configure"
     1182#line 1183 "configure"
    11821183#include "confdefs.h"
    11831184#include <assert.h>
     
    11851186EOF
    11861187ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1187 { (eval echo configure:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1188{ (eval echo configure:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    11881189ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    11891190if test -z "$ac_err"; then
     
    11961197  CPP="${CC-cc} -nologo -E"
    11971198  cat > conftest.$ac_ext <<EOF
    1198 #line 1199 "configure"
     1199#line 1200 "configure"
    11991200#include "confdefs.h"
    12001201#include <assert.h>
     
    12021203EOF
    12031204ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1204 { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1205{ (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12051206ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12061207if test -z "$ac_err"; then
     
    12271228
    12281229echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1229 echo "configure:1230: checking for ANSI C header files" >&5
     1230echo "configure:1231: checking for ANSI C header files" >&5
    12301231if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    12311232  echo $ac_n "(cached) $ac_c" 1>&6
    12321233else
    12331234  cat > conftest.$ac_ext <<EOF
    1234 #line 1235 "configure"
     1235#line 1236 "configure"
    12351236#include "confdefs.h"
    12361237#include <stdlib.h>
     
    12401241EOF
    12411242ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1242 { (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1243{ (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12431244ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12441245if test -z "$ac_err"; then
     
    12571258  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    12581259cat > conftest.$ac_ext <<EOF
    1259 #line 1260 "configure"
     1260#line 1261 "configure"
    12601261#include "confdefs.h"
    12611262#include <string.h>
     
    12751276  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    12761277cat > conftest.$ac_ext <<EOF
    1277 #line 1278 "configure"
     1278#line 1279 "configure"
    12781279#include "confdefs.h"
    12791280#include <stdlib.h>
     
    12961297else
    12971298  cat > conftest.$ac_ext <<EOF
    1298 #line 1299 "configure"
     1299#line 1300 "configure"
    12991300#include "confdefs.h"
    13001301#include <ctype.h>
     
    13071308
    13081309EOF
    1309 if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1310if { (eval echo configure:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    13101311then
    13111312  :
     
    13341335ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    13351336echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1336 echo "configure:1337: checking for $ac_hdr" >&5
     1337echo "configure:1338: checking for $ac_hdr" >&5
    13371338if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    13381339  echo $ac_n "(cached) $ac_c" 1>&6
    13391340else
    13401341  cat > conftest.$ac_ext <<EOF
    1341 #line 1342 "configure"
     1342#line 1343 "configure"
    13421343#include "confdefs.h"
    13431344#include <$ac_hdr>
    13441345EOF
    13451346ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1346 { (eval echo configure:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1347{ (eval echo configure:1348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13471348ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13481349if test -z "$ac_err"; then
     
    13741375ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    13751376echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1376 echo "configure:1377: checking for $ac_hdr" >&5
     1377echo "configure:1378: checking for $ac_hdr" >&5
    13771378if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    13781379  echo $ac_n "(cached) $ac_c" 1>&6
    13791380else
    13801381  cat > conftest.$ac_ext <<EOF
    1381 #line 1382 "configure"
     1382#line 1383 "configure"
    13821383#include "confdefs.h"
    13831384#include <$ac_hdr>
    13841385EOF
    13851386ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1386 { (eval echo configure:1387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1387{ (eval echo configure:1388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13871388ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13881389if test -z "$ac_err"; then
     
    14131414do
    14141415echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1415 echo "configure:1416: checking for $ac_func" >&5
     1416echo "configure:1417: checking for $ac_func" >&5
    14161417if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    14171418  echo $ac_n "(cached) $ac_c" 1>&6
    14181419else
    14191420  cat > conftest.$ac_ext <<EOF
    1420 #line 1421 "configure"
     1421#line 1422 "configure"
    14211422#include "confdefs.h"
    14221423/* System header to define __stub macros and hopefully few prototypes,
     
    14411442; return 0; }
    14421443EOF
    1443 if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1444if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14441445  rm -rf conftest*
    14451446  eval "ac_cv_func_$ac_func=yes"
     
    14661467
    14671468echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    1468 echo "configure:1469: checking for working mmap" >&5
     1469echo "configure:1470: checking for working mmap" >&5
    14691470if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    14701471  echo $ac_n "(cached) $ac_c" 1>&6
     
    14741475else
    14751476  cat > conftest.$ac_ext <<EOF
    1476 #line 1477 "configure"
     1477#line 1478 "configure"
    14771478#include "confdefs.h"
    14781479
     
    16141615
    16151616EOF
    1616 if { (eval echo configure:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1617if { (eval echo configure:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16171618then
    16181619  ac_cv_func_mmap_fixed_mapped=yes
  • c/src/lib/libbsp/powerpc/psim/tools/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • c/src/lib/libbsp/powerpc/psim/tools/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
  • c/src/lib/libbsp/sparc/erc32/tools/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • c/src/lib/libbsp/sparc/erc32/tools/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
     
    929930set dummy $ac_prog; ac_word=$2
    930931echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    931 echo "configure:932: checking for $ac_word" >&5
     932echo "configure:933: checking for $ac_word" >&5
    932933if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    933934  echo $ac_n "(cached) $ac_c" 1>&6
  • c/src/lib/libbsp/unix/posix/tools/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • c/src/lib/libbsp/unix/posix/tools/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
     
    929930set dummy $ac_prog; ac_word=$2
    930931echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    931 echo "configure:932: checking for $ac_word" >&5
     932echo "configure:933: checking for $ac_word" >&5
    932933if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    933934  echo $ac_n "(cached) $ac_c" 1>&6
     
    974975set dummy perl; ac_word=$2
    975976echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    976 echo "configure:977: checking for $ac_word" >&5
     977echo "configure:978: checking for $ac_word" >&5
    977978if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
    978979  echo $ac_n "(cached) $ac_c" 1>&6
  • c/src/tests/tools/generic/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • c/src/tests/tools/generic/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
     
    929930set dummy $ac_prog; ac_word=$2
    930931echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    931 echo "configure:932: checking for $ac_word" >&5
     932echo "configure:933: checking for $ac_word" >&5
    932933if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    933934  echo $ac_n "(cached) $ac_c" 1>&6
  • configure

    r3b38683 r15aa5ffb  
    618618fi
    619619
     620
     621# Check whether --with-cross-host or --without-cross-host was given.
     622if test "${with_cross_host+set}" = set; then
     623  withval="$with_cross_host"
     624  \
     625host=$withval
     626fi
     627
     628
    620629ac_aux_dir=
    621630for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     
    638647
    639648
     649rtems_target=$target;
     650case "$target" in
     651no_cpu*) target=$host;;
     652*) ;;
     653esac
     654
    640655# Do some error checking and defaulting for the host and target type.
    641656# The inputs are:
     
    665680
    666681echo $ac_n "checking host system type""... $ac_c" 1>&6
    667 echo "configure:668: checking host system type" >&5
     682echo "configure:683: checking host system type" >&5
    668683
    669684host_alias=$host
     
    686701
    687702echo $ac_n "checking target system type""... $ac_c" 1>&6
    688 echo "configure:689: checking target system type" >&5
     703echo "configure:704: checking target system type" >&5
    689704
    690705target_alias=$target
     
    704719
    705720echo $ac_n "checking build system type""... $ac_c" 1>&6
    706 echo "configure:707: checking build system type" >&5
     721echo "configure:722: checking build system type" >&5
    707722
    708723build_alias=$build
     
    726741  program_prefix=${target_alias}-
    727742
    728 
    729 # Check whether --with-cross-host or --without-cross-host was given.
    730 if test "${with_cross_host+set}" = set; then
    731   withval="$with_cross_host"
    732   \
    733 host=$withval
    734 fi
    735 
     743echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
     744echo "configure:745: checking rtems target cpu" >&5
     745case "${rtems_target}" in
     746  # hpux unix port should go here
     747  i[3456]86-go32-rtems*)
     748        RTEMS_CPU=i386
     749        ;;
     750  i[3456]86-pc-linux*)          # unix "simulator" port
     751        RTEMS_CPU=unix
     752        ;;
     753  i[3456]86-*freebsd2*)         # unix "simulator" port
     754        RTEMS_CPU=unix
     755        ;;
     756  no_cpu-*rtems*)
     757        RTEMS_CPU=no_cpu
     758        ;;
     759  sparc-sun-solaris*)           # unix "simulator" port
     760        RTEMS_CPU=unix
     761        ;;
     762  *)
     763        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     764        ;;
     765esac
     766echo "$ac_t""$RTEMS_CPU" 1>&6
    736767
    737768
     
    896927set dummy cat; ac_word=$2
    897928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    898 echo "configure:899: checking for $ac_word" >&5
     929echo "configure:930: checking for $ac_word" >&5
    899930if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then
    900931  echo $ac_n "(cached) $ac_c" 1>&6
     
    931962set dummy rm; ac_word=$2
    932963echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    933 echo "configure:934: checking for $ac_word" >&5
     964echo "configure:965: checking for $ac_word" >&5
    934965if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
    935966  echo $ac_n "(cached) $ac_c" 1>&6
     
    966997set dummy cp; ac_word=$2
    967998echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    968 echo "configure:969: checking for $ac_word" >&5
     999echo "configure:1000: checking for $ac_word" >&5
    9691000if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
    9701001  echo $ac_n "(cached) $ac_c" 1>&6
     
    10011032set dummy mv; ac_word=$2
    10021033echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1003 echo "configure:1004: checking for $ac_word" >&5
     1034echo "configure:1035: checking for $ac_word" >&5
    10041035if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
    10051036  echo $ac_n "(cached) $ac_c" 1>&6
     
    10361067set dummy ln; ac_word=$2
    10371068echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1038 echo "configure:1039: checking for $ac_word" >&5
     1069echo "configure:1070: checking for $ac_word" >&5
    10391070if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
    10401071  echo $ac_n "(cached) $ac_c" 1>&6
     
    10691100
    10701101echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1071 echo "configure:1072: checking whether ln -s works" >&5
     1102echo "configure:1103: checking whether ln -s works" >&5
    10721103if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    10731104  echo $ac_n "(cached) $ac_c" 1>&6
     
    10921123set dummy chmod; ac_word=$2
    10931124echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1094 echo "configure:1095: checking for $ac_word" >&5
     1125echo "configure:1126: checking for $ac_word" >&5
    10951126if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
    10961127  echo $ac_n "(cached) $ac_c" 1>&6
     
    11271158set dummy sort; ac_word=$2
    11281159echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1129 echo "configure:1130: checking for $ac_word" >&5
     1160echo "configure:1161: checking for $ac_word" >&5
    11301161if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then
    11311162  echo $ac_n "(cached) $ac_c" 1>&6
     
    11711202# ./install, which can be erroneously created by make from ./install.sh.
    11721203echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1173 echo "configure:1174: checking for a BSD compatible install" >&5
     1204echo "configure:1205: checking for a BSD compatible install" >&5
    11741205if test -z "$INSTALL"; then
    11751206if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    12271258set dummy perl; ac_word=$2
    12281259echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1229 echo "configure:1230: checking for $ac_word" >&5
     1260echo "configure:1261: checking for $ac_word" >&5
    12301261if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
    12311262  echo $ac_n "(cached) $ac_c" 1>&6
     
    12691300set dummy touch; ac_word=$2
    12701301echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1271 echo "configure:1272: checking for $ac_word" >&5
     1302echo "configure:1303: checking for $ac_word" >&5
    12721303if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
    12731304  echo $ac_n "(cached) $ac_c" 1>&6
     
    13041335set dummy cmp; ac_word=$2
    13051336echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1306 echo "configure:1307: checking for $ac_word" >&5
     1337echo "configure:1338: checking for $ac_word" >&5
    13071338if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
    13081339  echo $ac_n "(cached) $ac_c" 1>&6
     
    13401371set dummy sed; ac_word=$2
    13411372echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1342 echo "configure:1343: checking for $ac_word" >&5
     1373echo "configure:1374: checking for $ac_word" >&5
    13431374if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
    13441375  echo $ac_n "(cached) $ac_c" 1>&6
     
    13771408set dummy $ac_prog; ac_word=$2
    13781409echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1379 echo "configure:1380: checking for $ac_word" >&5
     1410echo "configure:1411: checking for $ac_word" >&5
    13801411if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
    13811412  echo $ac_n "(cached) $ac_c" 1>&6
     
    14191450set dummy $ac_prog; ac_word=$2
    14201451echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1421 echo "configure:1422: checking for $ac_word" >&5
     1452echo "configure:1453: checking for $ac_word" >&5
    14221453if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    14231454  echo $ac_n "(cached) $ac_c" 1>&6
     
    14641495
    14651496
    1466 
    1467 
    1468 echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    1469 echo "configure:1470: checking rtems target cpu" >&5
    1470 case "${target}" in
    1471   # hpux unix port should go here
    1472   i[3456]86-go32-rtems*)
    1473         target_cpu=i386
    1474         ;;
    1475   i[3456]86-pc-linux*)          # unix "simulator" port
    1476         target_cpu=unix
    1477         ;;
    1478   i[3456]86-*freebsd2*)         # unix "simulator" port
    1479         target_cpu=unix
    1480         ;;
    1481   no_cpu-*rtems*)
    1482         target_cpu=no_cpu
    1483         ;;
    1484   ppc*-*rtems*)
    1485         target_cpu=powerpc
    1486         ;;
    1487   sparc-sun-solaris*)           # unix "simulator" port
    1488         target_cpu=unix
    1489         ;;
    1490   *)
    1491         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    1492         ;;
    1493 esac
    1494 echo "$ac_t""$target_cpu" 1>&6
    1495 
     1497# RTEMS_CANONICAL_TARGET_CPU
    14961498
    14971499
    14981500# Is this a supported CPU?
    1499 echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
    1500 echo "configure:1501: checking if cpu $target_cpu is supported" >&5
    1501 if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then
     1501echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
     1502echo "configure:1503: checking if cpu $RTEMS_CPU is supported" >&5
     1503if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
    15021504  echo "$ac_t""yes" 1>&6
    15031505else
     
    15601562set dummy $ac_prog; ac_word=$2
    15611563echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1562 echo "configure:1563: checking for $ac_word" >&5
     1564echo "configure:1565: checking for $ac_word" >&5
    15631565if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
    15641566  echo $ac_n "(cached) $ac_c" 1>&6
     
    16041606
    16051607echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1606 echo "configure:1607: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1608echo "configure:1609: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    16071609
    16081610ac_ext=c
     
    16151617cat > conftest.$ac_ext << EOF
    16161618
    1617 #line 1618 "configure"
     1619#line 1620 "configure"
    16181620#include "confdefs.h"
    16191621
    16201622main(){return(0);}
    16211623EOF
    1622 if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1624if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16231625  ac_cv_prog_cc_works=yes
    16241626  # If we can't run a trivial program, we are probably using a cross compiler.
     
    16461648fi
    16471649echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1648 echo "configure:1649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1650echo "configure:1651: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    16491651echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    16501652cross_compiling=$ac_cv_prog_cc_cross
    16511653
    16521654echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1653 echo "configure:1654: checking whether we are using GNU C" >&5
     1655echo "configure:1656: checking whether we are using GNU C" >&5
    16541656if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    16551657  echo $ac_n "(cached) $ac_c" 1>&6
     
    16601662#endif
    16611663EOF
    1662 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1664if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    16631665  ac_cv_prog_gcc=yes
    16641666else
     
    16751677  CFLAGS=
    16761678  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1677 echo "configure:1678: checking whether ${CC-cc} accepts -g" >&5
     1679echo "configure:1680: checking whether ${CC-cc} accepts -g" >&5
    16781680if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    16791681  echo $ac_n "(cached) $ac_c" 1>&6
     
    17171719
    17181720echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
    1719 echo "configure:1720: checking whether $CC_FOR_TARGET accepts -specs" >&5
     1721echo "configure:1722: checking whether $CC_FOR_TARGET accepts -specs" >&5
    17201722if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
    17211723  echo $ac_n "(cached) $ac_c" 1>&6
     
    17381740
    17391741echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
    1740 echo "configure:1741: checking whether $CC_FOR_TARGET accepts --pipe" >&5
     1742echo "configure:1743: checking whether $CC_FOR_TARGET accepts --pipe" >&5
    17411743if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
    17421744  echo $ac_n "(cached) $ac_c" 1>&6
     
    17791781set dummy $ac_prog; ac_word=$2
    17801782echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1781 echo "configure:1782: checking for $ac_word" >&5
     1783echo "configure:1784: checking for $ac_word" >&5
    17821784if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
    17831785  echo $ac_n "(cached) $ac_c" 1>&6
     
    18231825
    18241826echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1825 echo "configure:1826: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1827echo "configure:1828: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    18261828
    18271829ac_ext=C
     
    18341836cat > conftest.$ac_ext << EOF
    18351837
    1836 #line 1837 "configure"
     1838#line 1839 "configure"
    18371839#include "confdefs.h"
    18381840
    18391841int main(){return(0);}
    18401842EOF
    1841 if { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1843if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18421844  ac_cv_prog_cxx_works=yes
    18431845  # If we can't run a trivial program, we are probably using a cross compiler.
     
    18651867fi
    18661868echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1867 echo "configure:1868: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1869echo "configure:1870: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    18681870echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    18691871cross_compiling=$ac_cv_prog_cxx_cross
    18701872
    18711873echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1872 echo "configure:1873: checking whether we are using GNU C++" >&5
     1874echo "configure:1875: checking whether we are using GNU C++" >&5
    18731875if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    18741876  echo $ac_n "(cached) $ac_c" 1>&6
     
    18791881#endif
    18801882EOF
    1881 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1883if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    18821884  ac_cv_prog_gxx=yes
    18831885else
     
    18941896  CXXFLAGS=
    18951897  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1896 echo "configure:1897: checking whether ${CXX-g++} accepts -g" >&5
     1898echo "configure:1899: checking whether ${CXX-g++} accepts -g" >&5
    18971899if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    18981900  echo $ac_n "(cached) $ac_c" 1>&6
     
    19481950 
    19491951echo $ac_n "checking target's ar""... $ac_c" 1>&6
    1950 echo "configure:1951: checking target's ar" >&5
     1952echo "configure:1953: checking target's ar" >&5
    19511953if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    19521954  echo $ac_n "(cached) $ac_c" 1>&6
     
    19811983    # intends
    19821984    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1983 echo "configure:1984: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
     1985echo "configure:1986: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
    19841986    case "$AR_FOR_TARGET" in
    19851987    /*) # valid
     
    19982000set dummy "$program_prefix"ar; ac_word=$2
    19992001echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2000 echo "configure:2001: checking for $ac_word" >&5
     2002echo "configure:2003: checking for $ac_word" >&5
    20012003if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    20022004  echo $ac_n "(cached) $ac_c" 1>&6
     
    20352037 
    20362038echo $ac_n "checking target's as""... $ac_c" 1>&6
    2037 echo "configure:2038: checking target's as" >&5
     2039echo "configure:2040: checking target's as" >&5
    20382040if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    20392041  echo $ac_n "(cached) $ac_c" 1>&6
     
    20682070    # intends
    20692071    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2070 echo "configure:2071: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
     2072echo "configure:2073: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
    20712073    case "$AS_FOR_TARGET" in
    20722074    /*) # valid
     
    20852087set dummy "$program_prefix"as; ac_word=$2
    20862088echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2087 echo "configure:2088: checking for $ac_word" >&5
     2089echo "configure:2090: checking for $ac_word" >&5
    20882090if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    20892091  echo $ac_n "(cached) $ac_c" 1>&6
     
    21222124 
    21232125echo $ac_n "checking target's ld""... $ac_c" 1>&6
    2124 echo "configure:2125: checking target's ld" >&5
     2126echo "configure:2127: checking target's ld" >&5
    21252127if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    21262128  echo $ac_n "(cached) $ac_c" 1>&6
     
    21552157    # intends
    21562158    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2157 echo "configure:2158: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
     2159echo "configure:2160: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
    21582160    case "$LD_FOR_TARGET" in
    21592161    /*) # valid
     
    21722174set dummy "$program_prefix"ld; ac_word=$2
    21732175echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2174 echo "configure:2175: checking for $ac_word" >&5
     2176echo "configure:2177: checking for $ac_word" >&5
    21752177if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    21762178  echo $ac_n "(cached) $ac_c" 1>&6
     
    22092211 
    22102212echo $ac_n "checking target's nm""... $ac_c" 1>&6
    2211 echo "configure:2212: checking target's nm" >&5
     2213echo "configure:2214: checking target's nm" >&5
    22122214if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    22132215  echo $ac_n "(cached) $ac_c" 1>&6
     
    22422244    # intends
    22432245    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2244 echo "configure:2245: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
     2246echo "configure:2247: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
    22452247    case "$NM_FOR_TARGET" in
    22462248    /*) # valid
     
    22592261set dummy "$program_prefix"nm; ac_word=$2
    22602262echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2261 echo "configure:2262: checking for $ac_word" >&5
     2263echo "configure:2264: checking for $ac_word" >&5
    22622264if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    22632265  echo $ac_n "(cached) $ac_c" 1>&6
     
    22972299 
    22982300echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
    2299 echo "configure:2300: checking target's ranlib" >&5
     2301echo "configure:2302: checking target's ranlib" >&5
    23002302if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    23012303  echo $ac_n "(cached) $ac_c" 1>&6
     
    23302332    # intends
    23312333    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2332 echo "configure:2333: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
     2334echo "configure:2335: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
    23332335    case "$RANLIB_FOR_TARGET" in
    23342336    /*) # valid
     
    23472349set dummy "$program_prefix"ranlib; ac_word=$2
    23482350echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2349 echo "configure:2350: checking for $ac_word" >&5
     2351echo "configure:2352: checking for $ac_word" >&5
    23502352if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    23512353  echo $ac_n "(cached) $ac_c" 1>&6
     
    23862388   
    23872389echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
    2388 echo "configure:2389: checking whether $AR_FOR_TARGET -s works" >&5
     2390echo "configure:2391: checking whether $AR_FOR_TARGET -s works" >&5
    23892391if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
    23902392  echo $ac_n "(cached) $ac_c" 1>&6
     
    23952397{ return b; }
    23962398EOF
    2397 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    2398   && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     2399if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     2400  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    23992401  && test -s conftest.a ; \
    24002402then
     
    24212423 
    24222424echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
    2423 echo "configure:2424: checking target's objcopy" >&5
     2425echo "configure:2426: checking target's objcopy" >&5
    24242426if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    24252427  echo $ac_n "(cached) $ac_c" 1>&6
     
    24542456    # intends
    24552457    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2456 echo "configure:2457: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
     2458echo "configure:2459: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
    24572459    case "$OBJCOPY_FOR_TARGET" in
    24582460    /*) # valid
     
    24712473set dummy "$program_prefix"objcopy; ac_word=$2
    24722474echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2473 echo "configure:2474: checking for $ac_word" >&5
     2475echo "configure:2476: checking for $ac_word" >&5
    24742476if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    24752477  echo $ac_n "(cached) $ac_c" 1>&6
     
    25082510 
    25092511echo $ac_n "checking target's size""... $ac_c" 1>&6
    2510 echo "configure:2511: checking target's size" >&5
     2512echo "configure:2513: checking target's size" >&5
    25112513if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    25122514  echo $ac_n "(cached) $ac_c" 1>&6
     
    25412543    # intends
    25422544    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2543 echo "configure:2544: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
     2545echo "configure:2546: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
    25442546    case "$SIZE_FOR_TARGET" in
    25452547    /*) # valid
     
    25582560set dummy "$program_prefix"size; ac_word=$2
    25592561echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2560 echo "configure:2561: checking for $ac_word" >&5
     2562echo "configure:2563: checking for $ac_word" >&5
    25612563if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    25622564  echo $ac_n "(cached) $ac_c" 1>&6
     
    25952597 
    25962598echo $ac_n "checking target's strip""... $ac_c" 1>&6
    2597 echo "configure:2598: checking target's strip" >&5
     2599echo "configure:2600: checking target's strip" >&5
    25982600if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    25992601  echo $ac_n "(cached) $ac_c" 1>&6
     
    26282630    # intends
    26292631    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2630 echo "configure:2631: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
     2632echo "configure:2633: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
    26312633    case "$STRIP_FOR_TARGET" in
    26322634    /*) # valid
     
    26452647set dummy "$program_prefix"strip; ac_word=$2
    26462648echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2647 echo "configure:2648: checking for $ac_word" >&5
     2649echo "configure:2650: checking for $ac_word" >&5
    26482650if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    26492651  echo $ac_n "(cached) $ac_c" 1>&6
     
    26842686 if test "${target_cpu}" = "i386"; then
    26852687    echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6
    2686 echo "configure:2687: checking for 16 bit mode assembler support" >&5
     2688echo "configure:2689: checking for 16 bit mode assembler support" >&5
    26872689if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then
    26882690  echo $ac_n "(cached) $ac_c" 1>&6
     
    26942696         lgdt 0
    26952697EOF
    2696       if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
     2698      if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
    26972699        rtems_cv_prog_gas_code16=yes
    26982700      else
     
    27102712set dummy gcc; ac_word=$2
    27112713echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2712 echo "configure:2713: checking for $ac_word" >&5
     2714echo "configure:2715: checking for $ac_word" >&5
    27132715if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    27142716  echo $ac_n "(cached) $ac_c" 1>&6
     
    27402742set dummy cc; ac_word=$2
    27412743echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2742 echo "configure:2743: checking for $ac_word" >&5
     2744echo "configure:2745: checking for $ac_word" >&5
    27432745if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    27442746  echo $ac_n "(cached) $ac_c" 1>&6
     
    27912793set dummy cl; ac_word=$2
    27922794echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2793 echo "configure:2794: checking for $ac_word" >&5
     2795echo "configure:2796: checking for $ac_word" >&5
    27942796if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    27952797  echo $ac_n "(cached) $ac_c" 1>&6
     
    28232825
    28242826echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2825 echo "configure:2826: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2827echo "configure:2828: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    28262828
    28272829ac_ext=c
     
    28342836cat > conftest.$ac_ext << EOF
    28352837
    2836 #line 2837 "configure"
     2838#line 2839 "configure"
    28372839#include "confdefs.h"
    28382840
    28392841main(){return(0);}
    28402842EOF
    2841 if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2843if { (eval echo configure:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    28422844  ac_cv_prog_cc_works=yes
    28432845  # If we can't run a trivial program, we are probably using a cross compiler.
     
    28652867fi
    28662868echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2867 echo "configure:2868: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2869echo "configure:2870: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    28682870echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    28692871cross_compiling=$ac_cv_prog_cc_cross
    28702872
    28712873echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    2872 echo "configure:2873: checking whether we are using GNU C" >&5
     2874echo "configure:2875: checking whether we are using GNU C" >&5
    28732875if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    28742876  echo $ac_n "(cached) $ac_c" 1>&6
     
    28792881#endif
    28802882EOF
    2881 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     2883if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    28822884  ac_cv_prog_gcc=yes
    28832885else
     
    28982900CFLAGS=
    28992901echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    2900 echo "configure:2901: checking whether ${CC-cc} accepts -g" >&5
     2902echo "configure:2903: checking whether ${CC-cc} accepts -g" >&5
    29012903if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    29022904  echo $ac_n "(cached) $ac_c" 1>&6
     
    29302932
    29312933echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
    2932 echo "configure:2933: checking for Cygwin environment" >&5
     2934echo "configure:2935: checking for Cygwin environment" >&5
    29332935if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
    29342936  echo $ac_n "(cached) $ac_c" 1>&6
    29352937else
    29362938  cat > conftest.$ac_ext <<EOF
    2937 #line 2938 "configure"
     2939#line 2940 "configure"
    29382940#include "confdefs.h"
    29392941
     
    29462948; return 0; }
    29472949EOF
    2948 if { (eval echo configure:2949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2950if { (eval echo configure:2951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    29492951  rm -rf conftest*
    29502952  ac_cv_cygwin=yes
     
    29632965test "$ac_cv_cygwin" = yes && CYGWIN=yes
    29642966echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
    2965 echo "configure:2966: checking for mingw32 environment" >&5
     2967echo "configure:2968: checking for mingw32 environment" >&5
    29662968if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
    29672969  echo $ac_n "(cached) $ac_c" 1>&6
    29682970else
    29692971  cat > conftest.$ac_ext <<EOF
    2970 #line 2971 "configure"
     2972#line 2973 "configure"
    29712973#include "confdefs.h"
    29722974
     
    29752977; return 0; }
    29762978EOF
    2977 if { (eval echo configure:2978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2979if { (eval echo configure:2980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    29782980  rm -rf conftest*
    29792981  ac_cv_mingw32=yes
     
    29942996
    29952997echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
    2996 echo "configure:2997: checking for executable suffix" >&5
     2998echo "configure:2999: checking for executable suffix" >&5
    29972999if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
    29983000  echo $ac_n "(cached) $ac_c" 1>&6
     
    30043006  echo 'int main () { return 0; }' > conftest.$ac_ext
    30053007  ac_cv_exeext=
    3006   if { (eval echo configure:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3008  if { (eval echo configure:3009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    30073009    for file in conftest.*; do
    30083010      case $file in
     
    30393041test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"}
    30403042
    3041 if test "$target_cpu" = "unix" ; then
     3043if test "$RTEMS_CPU" = "unix" ; then
    30423044   
    30433045
    30443046echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6
    3045 echo "configure:3046: checking whether $RTEMS_HOST supports System V semaphores" >&5
     3047echo "configure:3048: checking whether $RTEMS_HOST supports System V semaphores" >&5
    30463048if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then
    30473049  echo $ac_n "(cached) $ac_c" 1>&6
     
    30523054else
    30533055  cat > conftest.$ac_ext <<EOF
    3054 #line 3055 "configure"
     3056#line 3057 "configure"
    30553057#include "confdefs.h"
    30563058
     
    30783080
    30793081EOF
    3080 if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3082if { (eval echo configure:3083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    30813083then
    30823084  rtems_cv_sysv_sem="yes"
     
    31013103
    31023104echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6
    3103 echo "configure:3104: checking whether $RTEMS_HOST supports System V shared memory" >&5
     3105echo "configure:3106: checking whether $RTEMS_HOST supports System V shared memory" >&5
    31043106if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then
    31053107  echo $ac_n "(cached) $ac_c" 1>&6
     
    31103112else
    31113113  cat > conftest.$ac_ext <<EOF
    3112 #line 3113 "configure"
     3114#line 3115 "configure"
    31133115#include "confdefs.h"
    31143116
     
    31263128
    31273129EOF
    3128 if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3130if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    31293131then
    31303132  rtems_cv_sysv_shm="yes"
     
    31493151
    31503152echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6
    3151 echo "configure:3152: checking whether $RTEMS_HOST supports System V messages" >&5
     3153echo "configure:3154: checking whether $RTEMS_HOST supports System V messages" >&5
    31523154if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then
    31533155  echo $ac_n "(cached) $ac_c" 1>&6
     
    31583160else
    31593161  cat > conftest.$ac_ext <<EOF
    3160 #line 3161 "configure"
     3162#line 3163 "configure"
    31613163#include "confdefs.h"
    31623164
     
    31743176
    31753177EOF
    3176 if { (eval echo configure:3177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3178if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    31773179then
    31783180  rtems_cv_sysv_msg="yes"
     
    31993201t="c/src/exec/score/tools"
    32003202scoretools_cfgdirs="$t/generic"
    3201 if test -d $srcdir/$t/$target_cpu; then
    3202   scoretools_cfgdirs="$scoretools_cfgdirs $t/$target_cpu"
     3203if test -d $srcdir/$t/$RTEMS_CPU; then
     3204  scoretools_cfgdirs="$scoretools_cfgdirs $t/$RTEMS_CPU"
    32033205fi
    32043206
     
    32063208
    32073209echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6
    3208 echo "configure:3209: checking for Makefile.in in c/src/exec/rtems" >&5
     3210echo "configure:3211: checking for Makefile.in in c/src/exec/rtems" >&5
    32093211if test -d $srcdir/c/src/exec/rtems; then
    32103212  rtems_av_save_dir=`pwd`;
     
    32213223
    32223224echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6
    3223 echo "configure:3224: checking for Makefile.in in c/src/exec/sapi" >&5
     3225echo "configure:3226: checking for Makefile.in in c/src/exec/sapi" >&5
    32243226if test -d $srcdir/c/src/exec/sapi; then
    32253227  rtems_av_save_dir=`pwd`;
     
    32353237
    32363238
    3237 echo $ac_n "checking for Makefile.in in c/src/exec/score/cpu/$target_cpu""... $ac_c" 1>&6
    3238 echo "configure:3239: checking for Makefile.in in c/src/exec/score/cpu/$target_cpu" >&5
    3239 if test -d $srcdir/c/src/exec/score/cpu/$target_cpu; then
     3239echo $ac_n "checking for Makefile.in in c/src/exec/score/cpu/$RTEMS_CPU""... $ac_c" 1>&6
     3240echo "configure:3241: checking for Makefile.in in c/src/exec/score/cpu/$RTEMS_CPU" >&5
     3241if test -d $srcdir/c/src/exec/score/cpu/$RTEMS_CPU; then
    32403242  rtems_av_save_dir=`pwd`;
    32413243  cd $srcdir;
    3242   rtems_av_tmp=`find c/src/exec/score/cpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
     3244  rtems_av_tmp=`find c/src/exec/score/cpu/$RTEMS_CPU -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
    32433245  makefiles="$makefiles $rtems_av_tmp";
    32443246  cd $rtems_av_save_dir;
     
    32533255 
    32543256echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6
    3255 echo "configure:3256: checking for Makefile.in in c/src/exec/posix" >&5
     3257echo "configure:3258: checking for Makefile.in in c/src/exec/posix" >&5
    32563258if test -d $srcdir/c/src/exec/posix; then
    32573259  rtems_av_save_dir=`pwd`;
     
    32703272
    32713273# find all the Makefiles for the BSPs
    3272 if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then
    3273   makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile"
     3274if test -d "$srcdir/c/src/lib/libbsp/$RTEMS_CPU"; then
     3275  makefiles="$makefiles c/src/lib/libbsp/$RTEMS_CPU/Makefile"
    32743276
    32753277  if test -z "$rtems_bsp"; then
    32763278    echo $ac_n "checking for bsps""... $ac_c" 1>&6
    3277 echo "configure:3278: checking for bsps" >&5
    3278     files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
     3279echo "configure:3280: checking for bsps" >&5
     3280    files=`ls $srcdir/c/src/lib/libbsp/$RTEMS_CPU`
    32793281    for file in $files; do
    32803282      case $file in
     
    33163318
    33173319    # Is there code where there should be for this BSP?
    3318     # The bare bsp is a special case as it is not under the target_cpu path
     3320    # The bare bsp is a special case as it is not under the RTEMS_CPU path
    33193321    case $i in
    33203322      bare)
     
    33283330        ;;
    33293331      *)
    3330         bspcpudir=$target_cpu/
     3332        bspcpudir=$RTEMS_CPU/
    33313333        ;;
    33323334    esac
     
    33403342       
    33413343echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir""... $ac_c" 1>&6
    3342 echo "configure:3343: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&5
     3344echo "configure:3345: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&5
    33433345if test -d $srcdir/c/src/lib/libbsp/$bspcpudir$bspdir; then
    33443346  rtems_av_save_dir=`pwd`;
     
    33553357       
    33563358echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared""... $ac_c" 1>&6
    3357 echo "configure:3358: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&5
     3359echo "configure:3360: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&5
    33583360if test -d $srcdir/c/src/lib/libbsp/${bspcpudir}shared; then
    33593361  rtems_av_save_dir=`pwd`;
     
    33843386# find all the CPU dependent library Makefiles
    33853387
    3386 echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
    3387 echo "configure:3388: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
    3388 if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
     3388echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$RTEMS_CPU""... $ac_c" 1>&6
     3389echo "configure:3390: checking for Makefile.in in c/src/lib/libcpu/$RTEMS_CPU" >&5
     3390if test -d $srcdir/c/src/lib/libcpu/$RTEMS_CPU; then
    33893391  rtems_av_save_dir=`pwd`;
    33903392  cd $srcdir;
    3391   rtems_av_tmp=`find c/src/lib/libcpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
     3393  rtems_av_tmp=`find c/src/lib/libcpu/$RTEMS_CPU -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
    33923394  makefiles="$makefiles $rtems_av_tmp";
    33933395  cd $rtems_av_save_dir;
     
    34013403if test "$skip_startfiles" != "yes"; then
    34023404 
    3403 echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
    3404 echo "configure:3405: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
    3405 if test -d $srcdir/c/src/lib/start/$target_cpu; then
     3405echo $ac_n "checking for Makefile.in in c/src/lib/start/$RTEMS_CPU""... $ac_c" 1>&6
     3406echo "configure:3407: checking for Makefile.in in c/src/lib/start/$RTEMS_CPU" >&5
     3407if test -d $srcdir/c/src/lib/start/$RTEMS_CPU; then
    34063408  rtems_av_save_dir=`pwd`;
    34073409  cd $srcdir;
    3408   rtems_av_tmp=`find c/src/lib/start/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
     3410  rtems_av_tmp=`find c/src/lib/start/$RTEMS_CPU -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
    34093411  makefiles="$makefiles $rtems_av_tmp";
    34103412  cd $rtems_av_save_dir;
     
    34313433# If the TCP/IP stack is enabled, then find all TCP/IP Makefiles
    34323434echo $ac_n "checking if networking is enabled? ""... $ac_c" 1>&6
    3433 echo "configure:3434: checking if networking is enabled? " >&5
     3435echo "configure:3436: checking if networking is enabled? " >&5
    34343436echo "$ac_t""$RTEMS_HAS_NETWORKING" 1>&6
    34353437if test "$RTEMS_HAS_NETWORKING" = "yes"; then
    34363438 
    34373439echo $ac_n "checking for Makefile.in in c/src/lib/libnetworking""... $ac_c" 1>&6
    3438 echo "configure:3439: checking for Makefile.in in c/src/lib/libnetworking" >&5
     3440echo "configure:3441: checking for Makefile.in in c/src/lib/libnetworking" >&5
    34393441if test -d $srcdir/c/src/lib/libnetworking; then
    34403442  rtems_av_save_dir=`pwd`;
     
    34513453 
    34523454echo $ac_n "checking for Makefile.in in c/src/lib/librpc""... $ac_c" 1>&6
    3453 echo "configure:3454: checking for Makefile.in in c/src/lib/librpc" >&5
     3455echo "configure:3456: checking for Makefile.in in c/src/lib/librpc" >&5
    34543456if test -d $srcdir/c/src/lib/librpc; then
    34553457  rtems_av_save_dir=`pwd`;
     
    34663468  if test "$RTEMS_HAS_RDBG" = "yes"; then
    34673469    echo $ac_n "checking whether cpu supports rdbg? ""... $ac_c" 1>&6
    3468 echo "configure:3469: checking whether cpu supports rdbg? " >&5
    3469     test ! -d "$srcdir/c/src/lib/librdbg/$target_cpu" && RTEMS_HAS_RDBG="no" ;
     3470echo "configure:3471: checking whether cpu supports rdbg? " >&5
     3471    test ! -d "$srcdir/c/src/lib/librdbg/$RTEMS_CPU" && RTEMS_HAS_RDBG="no" ;
    34703472    echo "$ac_t""$RTEMS_HAS_RDBG" 1>&6
    34713473    if test "$RTEMS_HAS_RDBG" = "yes"; then
     
    34733475set dummy rpcgen; ac_word=$2
    34743476echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    3475 echo "configure:3476: checking for $ac_word" >&5
     3477echo "configure:3478: checking for $ac_word" >&5
    34763478if eval "test \"`echo '$''{'ac_cv_path_RPCGEN'+set}'`\" = set"; then
    34773479  echo $ac_n "(cached) $ac_c" 1>&6
     
    35133515set dummy $ac_prog; ac_word=$2
    35143516echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    3515 echo "configure:3516: checking for $ac_word" >&5
     3517echo "configure:3518: checking for $ac_word" >&5
    35163518if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    35173519  echo $ac_n "(cached) $ac_c" 1>&6
     
    35473549     
    35483550echo $ac_n "checking for Makefile.in in c/src/lib/librdbg""... $ac_c" 1>&6
    3549 echo "configure:3550: checking for Makefile.in in c/src/lib/librdbg" >&5
     3551echo "configure:3552: checking for Makefile.in in c/src/lib/librdbg" >&5
    35503552if test -d $srcdir/c/src/lib/librdbg; then
    35513553  rtems_av_save_dir=`pwd`;
     
    35743576# If the tests are enabled, then find all the test suite Makefiles
    35753577echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6
    3576 echo "configure:3577: checking if the test suites are enabled? " >&5
     3578echo "configure:3579: checking if the test suites are enabled? " >&5
    35773579# Check whether --enable-tests or --disable-tests was given.
    35783580if test "${enable_tests+set}" = set; then
     
    35953597   
    35963598echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
    3597 echo "configure:3598: checking for Makefile.in in c/src/tests/libtests" >&5
     3599echo "configure:3600: checking for Makefile.in in c/src/tests/libtests" >&5
    35983600if test -d $srcdir/c/src/tests/libtests; then
    35993601  rtems_av_save_dir=`pwd`;
     
    36103612   
    36113613echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
    3612 echo "configure:3613: checking for Makefile.in in c/src/tests/sptests" >&5
     3614echo "configure:3615: checking for Makefile.in in c/src/tests/sptests" >&5
    36133615if test -d $srcdir/c/src/tests/sptests; then
    36143616  rtems_av_save_dir=`pwd`;
     
    36253627   
    36263628echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
    3627 echo "configure:3628: checking for Makefile.in in c/src/tests/tmtests" >&5
     3629echo "configure:3630: checking for Makefile.in in c/src/tests/tmtests" >&5
    36283630if test -d $srcdir/c/src/tests/tmtests; then
    36293631  rtems_av_save_dir=`pwd`;
     
    36413643       
    36423644echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
    3643 echo "configure:3644: checking for Makefile.in in c/src/tests/mptests" >&5
     3645echo "configure:3646: checking for Makefile.in in c/src/tests/mptests" >&5
    36443646if test -d $srcdir/c/src/tests/mptests; then
    36453647  rtems_av_save_dir=`pwd`;
     
    36583660     
    36593661echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
    3660 echo "configure:3661: checking for Makefile.in in c/src/tests/psxtests" >&5
     3662echo "configure:3663: checking for Makefile.in in c/src/tests/psxtests" >&5
    36613663if test -d $srcdir/c/src/tests/psxtests; then
    36623664  rtems_av_save_dir=`pwd`;
     
    36723674
    36733675   fi
    3674    if test -d "$srcdir/c/src/tests/tools/$target_cpu"; then
    3675      testtools_cfgdirs="$testtools_cfgdirs c/src/tests/tools/$target_cpu"
     3676   if test -d "$srcdir/c/src/tests/tools/$RTEMS_CPU"; then
     3677     testtools_cfgdirs="$testtools_cfgdirs c/src/tests/tools/$RTEMS_CPU"
    36763678   fi
    36773679fi
     
    36933695if test "$RTEMS_HAS_HWAPI" = "yes"; then
    36943696  echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6
    3695 echo "configure:3696: checking whether libwapi is present" >&5
     3697echo "configure:3698: checking whether libwapi is present" >&5
    36963698  if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
    36973699    echo "$ac_t""yes" 1>&6
     
    36993701   
    37003702echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6
    3701 echo "configure:3702: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
     3703echo "configure:3704: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
    37023704if test -d $srcdir/c/src/lib/libhwapi/analog; then
    37033705  rtems_av_save_dir=`pwd`;
     
    37143716   
    37153717echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6
    3716 echo "configure:3717: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
     3718echo "configure:3719: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
    37173719if test -d $srcdir/c/src/lib/libhwapi/discrete; then
    37183720  rtems_av_save_dir=`pwd`;
     
    37293731   
    37303732echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6
    3731 echo "configure:3732: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
     3733echo "configure:3734: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
    37323734if test -d $srcdir/c/src/lib/libhwapi/drivers; then
    37333735  rtems_av_save_dir=`pwd`;
     
    37443746   
    37453747echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6
    3746 echo "configure:3747: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
     3748echo "configure:3749: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
    37473749if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then
    37483750  rtems_av_save_dir=`pwd`;
     
    37593761   
    37603762echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6
    3761 echo "configure:3762: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
     3763echo "configure:3764: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
    37623764if test -d $srcdir/c/src/lib/libhwapi/serial; then
    37633765  rtems_av_save_dir=`pwd`;
     
    37743776   
    37753777echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6
    3776 echo "configure:3777: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
     3778echo "configure:3779: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
    37773779if test -d $srcdir/c/src/lib/libhwapi/support; then
    37783780  rtems_av_save_dir=`pwd`;
     
    37893791   
    37903792echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6
    3791 echo "configure:3792: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
     3793echo "configure:3794: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
    37923794if test -d $srcdir/c/src/lib/libhwapi/wrapup; then
    37933795  rtems_av_save_dir=`pwd`;
     
    38223824
    38233825echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6
    3824 echo "configure:3825: checking for Makefile.in in make" >&5
     3826echo "configure:3827: checking for Makefile.in in make" >&5
    38253827if test -d $srcdir/make; then
    38263828  rtems_av_save_dir=`pwd`;
     
    38373839
    38383840echo $ac_n "checking for Makefile.in in c/src/lib/libchip""... $ac_c" 1>&6
    3839 echo "configure:3840: checking for Makefile.in in c/src/lib/libchip" >&5
     3841echo "configure:3842: checking for Makefile.in in c/src/lib/libchip" >&5
    38403842if test -d $srcdir/c/src/lib/libchip; then
    38413843  rtems_av_save_dir=`pwd`;
     
    38523854
    38533855echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
    3854 echo "configure:3855: checking for Makefile.in in c/src/lib/libmisc" >&5
     3856echo "configure:3857: checking for Makefile.in in c/src/lib/libmisc" >&5
    38553857if test -d $srcdir/c/src/lib/libmisc; then
    38563858  rtems_av_save_dir=`pwd`;
     
    38673869
    38683870echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
    3869 echo "configure:3870: checking for Makefile.in in c/src/tests/samples" >&5
     3871echo "configure:3872: checking for Makefile.in in c/src/tests/samples" >&5
    38703872if test -d $srcdir/c/src/tests/samples; then
    38713873  rtems_av_save_dir=`pwd`;
     
    43944396
    43954397echo
    4396 echo target architecture: $target_cpu.
     4398echo target architecture: $RTEMS_CPU.
    43974399echo available BSPs: $rtems_bsp.
    43984400echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST.
  • configure.in

    r3b38683 r15aa5ffb  
    1010dnl Checks for programs.
    1111AC_PROG_MAKE_SET
    12 AC_CANONICAL_SYSTEM
    1312
    1413AC_ARG_WITH(cross-host,[  --with-cross-host=HOST      host (cygnus)], \
    1514host=$withval)
    1615
     16RTEMS_CANONICAL_TARGET_CPU
    1717RTEMS_ENABLE_MULTIPROCESSING
    1818RTEMS_ENABLE_POSIX
     
    6666dnl a BSP library would be used to link an application.
    6767
    68 RTEMS_CANONICAL_TARGET_CPU
     68# RTEMS_CANONICAL_TARGET_CPU
    6969RTEMS_CHECK_CPU
    7070RTEMS_CANONICAL_HOST
     
    151151
    152152dnl check for SysV IPC used by simulators
    153 if test "$target_cpu" = "unix" ; then
     153if test "$RTEMS_CPU" = "unix" ; then
    154154  RTEMS_SYSV_SEM
    155155  if test "$rtems_cv_sysv_sem" != "yes" ; then
     
    169169t="c/src/exec/score/tools"
    170170scoretools_cfgdirs="$t/generic"
    171 if test -d $srcdir/$t/$target_cpu; then
    172   scoretools_cfgdirs="$scoretools_cfgdirs $t/$target_cpu"
     171if test -d $srcdir/$t/$RTEMS_CPU; then
     172  scoretools_cfgdirs="$scoretools_cfgdirs $t/$RTEMS_CPU"
    173173fi
    174174
     
    176176RTEMS_CHECK_MAKEFILE(c/src/exec/rtems)
    177177RTEMS_CHECK_MAKEFILE(c/src/exec/sapi)
    178 RTEMS_CHECK_MAKEFILE(c/src/exec/score/cpu/$target_cpu)
     178RTEMS_CHECK_MAKEFILE(c/src/exec/score/cpu/$RTEMS_CPU)
    179179
    180180if test "$RTEMS_HAS_POSIX_API" = "yes"; then
     
    184184
    185185# find all the Makefiles for the BSPs
    186 if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then
    187   makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile"
     186if test -d "$srcdir/c/src/lib/libbsp/$RTEMS_CPU"; then
     187  makefiles="$makefiles c/src/lib/libbsp/$RTEMS_CPU/Makefile"
    188188
    189189  if test -z "$rtems_bsp"; then
    190190    AC_MSG_CHECKING([for bsps])
    191     files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
     191    files=`ls $srcdir/c/src/lib/libbsp/$RTEMS_CPU`
    192192    for file in $files; do
    193193      case $file in
     
    229229
    230230    # Is there code where there should be for this BSP?
    231     # The bare bsp is a special case as it is not under the target_cpu path
     231    # The bare bsp is a special case as it is not under the RTEMS_CPU path
    232232    case $i in
    233233      bare)
     
    241241        ;;
    242242      *)
    243         bspcpudir=$target_cpu/
     243        bspcpudir=$RTEMS_CPU/
    244244        ;;
    245245    esac
     
    268268
    269269# find all the CPU dependent library Makefiles
    270 RTEMS_CHECK_MAKEFILE(c/src/lib/libcpu/$target_cpu)
     270RTEMS_CHECK_MAKEFILE(c/src/lib/libcpu/$RTEMS_CPU)
    271271
    272272dnl Workaround for go32
    273273if test "$skip_startfiles" != "yes"; then
    274   RTEMS_CHECK_MAKEFILE(c/src/lib/start/$target_cpu)
     274  RTEMS_CHECK_MAKEFILE(c/src/lib/start/$RTEMS_CPU)
    275275fi
    276276
     
    296296  if test "$RTEMS_HAS_RDBG" = "yes"; then
    297297    AC_MSG_CHECKING([whether cpu supports rdbg? ])
    298     test ! -d "$srcdir/c/src/lib/librdbg/$target_cpu" && RTEMS_HAS_RDBG="no" ;
     298    test ! -d "$srcdir/c/src/lib/librdbg/$RTEMS_CPU" && RTEMS_HAS_RDBG="no" ;
    299299    AC_MSG_RESULT($RTEMS_HAS_RDBG)
    300300    if test "$RTEMS_HAS_RDBG" = "yes"; then
     
    333333     RTEMS_CHECK_MAKEFILE(c/src/tests/psxtests)
    334334   fi
    335    if test -d "$srcdir/c/src/tests/tools/$target_cpu"; then
    336      testtools_cfgdirs="$testtools_cfgdirs c/src/tests/tools/$target_cpu"
     335   if test -d "$srcdir/c/src/tests/tools/$RTEMS_CPU"; then
     336     testtools_cfgdirs="$testtools_cfgdirs c/src/tests/tools/$RTEMS_CPU"
    337337   fi
    338338fi
     
    424424
    425425echo
    426 echo target architecture: $target_cpu.
     426echo target architecture: $RTEMS_CPU.
    427427echo available BSPs: $rtems_bsp.
    428428echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST.
  • make/target.cfg.in

    r3b38683 r15aa5ffb  
    4747RTEMS_USE_GCC272 = @RTEMS_USE_GCC272@
    4848RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
    49 RTEMS_CPU = @target_cpu@
     49RTEMS_CPU = @RTEMS_CPU@
    5050
    5151# the following are only used for the bare bsp
  • tools/cpu/generic/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • tools/cpu/generic/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
     
    929930set dummy $ac_prog; ac_word=$2
    930931echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    931 echo "configure:932: checking for $ac_word" >&5
     932echo "configure:933: checking for $ac_word" >&5
    932933if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    933934  echo $ac_n "(cached) $ac_c" 1>&6
  • tools/cpu/hppa1.1/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • tools/cpu/hppa1.1/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    911 echo "configure:912: checking for working makeinfo" >&5
     912echo "configure:913: checking for working makeinfo" >&5
    912913# Run test in a subshell; some versions of sh will print an error if
    913914# an executable is not found, even if stderr is redirected.
     
    926927set dummy gcc; ac_word=$2
    927928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    928 echo "configure:929: checking for $ac_word" >&5
     929echo "configure:930: checking for $ac_word" >&5
    929930if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    930931  echo $ac_n "(cached) $ac_c" 1>&6
     
    956957set dummy cc; ac_word=$2
    957958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    958 echo "configure:959: checking for $ac_word" >&5
     959echo "configure:960: checking for $ac_word" >&5
    959960if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    960961  echo $ac_n "(cached) $ac_c" 1>&6
     
    10071008set dummy cl; ac_word=$2
    10081009echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1009 echo "configure:1010: checking for $ac_word" >&5
     1010echo "configure:1011: checking for $ac_word" >&5
    10101011if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10111012  echo $ac_n "(cached) $ac_c" 1>&6
     
    10391040
    10401041echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1041 echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1042echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    10421043
    10431044ac_ext=c
     
    10501051cat > conftest.$ac_ext << EOF
    10511052
    1052 #line 1053 "configure"
     1053#line 1054 "configure"
    10531054#include "confdefs.h"
    10541055
    10551056main(){return(0);}
    10561057EOF
    1057 if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1058if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    10581059  ac_cv_prog_cc_works=yes
    10591060  # If we can't run a trivial program, we are probably using a cross compiler.
     
    10811082fi
    10821083echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1083 echo "configure:1084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1084echo "configure:1085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10841085echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10851086cross_compiling=$ac_cv_prog_cc_cross
    10861087
    10871088echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1088 echo "configure:1089: checking whether we are using GNU C" >&5
     1089echo "configure:1090: checking whether we are using GNU C" >&5
    10891090if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10901091  echo $ac_n "(cached) $ac_c" 1>&6
     
    10951096#endif
    10961097EOF
    1097 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1098if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10981099  ac_cv_prog_gcc=yes
    10991100else
     
    11141115CFLAGS=
    11151116echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1116 echo "configure:1117: checking whether ${CC-cc} accepts -g" >&5
     1117echo "configure:1118: checking whether ${CC-cc} accepts -g" >&5
    11171118if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11181119  echo $ac_n "(cached) $ac_c" 1>&6
  • tools/cpu/sh/aclocal.m4

    r3b38683 r15aa5ffb  
    6464AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    6565[
    66 AC_REQUIRE([AC_CANONICAL_SYSTEM])
     66rtems_target=$target;
     67case "$target" in
     68no_cpu*) target=$host;;
     69*) ;;
     70esac
     71AC_CANONICAL_SYSTEM
    6772AC_MSG_CHECKING(rtems target cpu)
    6873changequote(,)dnl
    69 case "${target}" in
     74case "${rtems_target}" in
    7075  # hpux unix port should go here
    7176  i[3456]86-go32-rtems*)
    72         target_cpu=i386
     77        RTEMS_CPU=i386
    7378        ;;
    7479  i[3456]86-pc-linux*)          # unix "simulator" port
    75         target_cpu=unix
     80        RTEMS_CPU=unix
    7681        ;;
    7782  i[3456]86-*freebsd2*)         # unix "simulator" port
    78         target_cpu=unix
     83        RTEMS_CPU=unix
    7984        ;;
    8085  no_cpu-*rtems*)
    81         target_cpu=no_cpu
    82         ;;
    83   ppc*-*rtems*)
    84         target_cpu=powerpc
     86        RTEMS_CPU=no_cpu
    8587        ;;
    8688  sparc-sun-solaris*)           # unix "simulator" port
    87         target_cpu=unix
     89        RTEMS_CPU=unix
    8890        ;;
    8991  *)
    90         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     92        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    9193        ;;
    9294esac
    9395changequote([,])dnl
    94 AC_MSG_RESULT($target_cpu)
     96AC_MSG_RESULT($RTEMS_CPU)
    9597])
    9698
  • tools/cpu/sh/configure

    r3b38683 r15aa5ffb  
    577577
    578578
     579rtems_target=$target;
     580case "$target" in
     581no_cpu*) target=$host;;
     582*) ;;
     583esac
     584
    579585# Do some error checking and defaulting for the host and target type.
    580586# The inputs are:
     
    604610
    605611echo $ac_n "checking host system type""... $ac_c" 1>&6
    606 echo "configure:607: checking host system type" >&5
     612echo "configure:613: checking host system type" >&5
    607613
    608614host_alias=$host
     
    625631
    626632echo $ac_n "checking target system type""... $ac_c" 1>&6
    627 echo "configure:628: checking target system type" >&5
     633echo "configure:634: checking target system type" >&5
    628634
    629635target_alias=$target
     
    643649
    644650echo $ac_n "checking build system type""... $ac_c" 1>&6
    645 echo "configure:646: checking build system type" >&5
     651echo "configure:652: checking build system type" >&5
    646652
    647653build_alias=$build
     
    665671  program_prefix=${target_alias}-
    666672
    667 
    668 
    669673echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
    671 case "${target}" in
     674echo "configure:675: checking rtems target cpu" >&5
     675case "${rtems_target}" in
    672676  # hpux unix port should go here
    673677  i[3456]86-go32-rtems*)
    674         target_cpu=i386
     678        RTEMS_CPU=i386
    675679        ;;
    676680  i[3456]86-pc-linux*)          # unix "simulator" port
    677         target_cpu=unix
     681        RTEMS_CPU=unix
    678682        ;;
    679683  i[3456]86-*freebsd2*)         # unix "simulator" port
    680         target_cpu=unix
     684        RTEMS_CPU=unix
    681685        ;;
    682686  no_cpu-*rtems*)
    683         target_cpu=no_cpu
    684         ;;
    685   ppc*-*rtems*)
    686         target_cpu=powerpc
     687        RTEMS_CPU=no_cpu
    687688        ;;
    688689  sparc-sun-solaris*)           # unix "simulator" port
    689         target_cpu=unix
     690        RTEMS_CPU=unix
    690691        ;;
    691692  *)
    692         target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     693        RTEMS_CPU=`echo $rtems_target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    693694        ;;
    694695esac
    695 echo "$ac_t""$target_cpu" 1>&6
     696echo "$ac_t""$RTEMS_CPU" 1>&6
    696697
    697698
     
    708709# ./install, which can be erroneously created by make from ./install.sh.
    709710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    710 echo "configure:711: checking for a BSD compatible install" >&5
     711echo "configure:712: checking for a BSD compatible install" >&5
    711712if test -z "$INSTALL"; then
    712713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    761762
    762763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    763 echo "configure:764: checking whether build environment is sane" >&5
     764echo "configure:765: checking whether build environment is sane" >&5
    764765# Just in case
    765766sleep 1
     
    818819
    819820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
    821822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    822823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    857858missing_dir=`cd $ac_aux_dir && pwd`
    858859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    859 echo "configure:860: checking for working aclocal" >&5
     860echo "configure:861: checking for working aclocal" >&5
    860861# Run test in a subshell; some versions of sh will print an error if
    861862# an executable is not found, even if stderr is redirected.
     
    870871
    871872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    872 echo "configure:873: checking for working autoconf" >&5
     873echo "configure:874: checking for working autoconf" >&5
    873874# Run test in a subshell; some versions of sh will print an error if
    874875# an executable is not found, even if stderr is redirected.
     
    883884
    884885echo $ac_n "checking for working automake""... $ac_c" 1>&6
    885 echo "configure:886: checking for working automake" >&5
     886echo "configure:887: checking for working automake" >&5
    886887# Run test in a subshell; some versions of sh will print an error if
    887888# an executable is not found, even if stderr is redirected.
     
    896897
    897898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    898 echo "configure:899: checking for working autoheader" >&5
     899echo "configure:900: checking for working autoheader" >&5
    899900# Run test in a subshell; some versions of sh will print an error if
    900901# an executable is not found, even if stderr is redirected.
     
    909910
    910911echo