Changeset 4075af6f in rtems for c/src/librtems++


Ignore:
Timestamp:
Oct 5, 1999, 1:49:54 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
133dcd92
Parents:
d83c39dc
Message:

Regenerated.

Location:
c/src/librtems++
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/librtems++/aclocal.m4

    rd83c39dc r4075af6f  
    2020AC_DEFUN(RTEMS_TOP,
    2121[dnl
     22AC_BEFORE([$0], [AC_CONFIG_AUX_DIR])dnl
     23AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
     24
    2225AC_ARG_WITH(target-subdir,
    2326[  --with-target-subdir=DIR],
     
    4346fi
    4447AC_MSG_RESULT($RTEMS_VERSION)
    45 ])dnl
    46 
    47 dnl
    48 dnl $Id$
    49 dnl
    50 
    51 dnl canonicalize target cpu
    52 dnl NOTE: Most rtems targets do not fullfil autoconf's
    53 dnl target naming conventions "processor-vendor-os"
    54 dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
    55 dnl and we have to fix it for rtems ourselves
    56 
    57 AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    58 [
    59 AC_CANONICAL_SYSTEM
    60 AC_MSG_CHECKING(rtems target cpu)
    61 changequote(,)dnl
    62 case "${target}" in
    63   # hpux unix port should go here
    64   i[3456]86-go32-rtems*)
    65         RTEMS_CPU=i386
    66         ;;
    67   i[3456]86-pc-linux*)          # unix "simulator" port
    68         RTEMS_CPU=unix
    69         ;;
    70   i[3456]86-*freebsd2*)         # unix "simulator" port
    71         RTEMS_CPU=unix
    72         ;;
    73   no_cpu-*rtems*)
    74         RTEMS_CPU=no_cpu
    75         ;;
    76   sparc-sun-solaris*)           # unix "simulator" port
    77         RTEMS_CPU=unix
    78         ;;
    79   *)
    80         RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    81         ;;
    82 esac
    83 changequote([,])dnl
    84 AC_SUBST(RTEMS_CPU)
    85 AC_MSG_RESULT($RTEMS_CPU)
    86 ])
    87 
    88 dnl
    89 dnl $Id$
    90 dnl
    91 
    92 AC_DEFUN(RTEMS_PROJECT_ROOT,
    93 [dnl
    94 AC_REQUIRE([RTEMS_TOP])
    95 if test "$TARGET_SUBDIR" = "." ; then
    96 PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
    97 else
    98 PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
    99 fi
    100 AC_SUBST(PROJECT_ROOT)
    101 
    102 RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
    103 AC_SUBST(RTEMS_ROOT)
    104 
    105 INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
    106 AC_SUBST(INSTALL_CHANGE)
    107 
    108 PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
    109 AC_SUBST(PACKHEX)
    110 ])
    111 
    112 
    113 dnl $Id$
    114 
    115 AC_DEFUN(RTEMS_CANONICAL_HOST,
    116 [dnl
    117 AC_REQUIRE([AC_CANONICAL_HOST])
    118 RTEMS_HOST=$host_os
    119 changequote(,)dnl
    120 case "${target}" in
    121   # hpux unix port should go here
    122   i[3456]86-pc-linux*)         # unix "simulator" port
    123         RTEMS_HOST=Linux
    124         ;;
    125   i[3456]86-*freebsd2*) # unix "simulator" port
    126         RTEMS_HOST=FreeBSD
    127         ;;
    128   sparc-sun-solaris*)             # unix "simulator" port
    129         RTEMS_HOST=Solaris
    130         ;;
    131   *)
    132         ;;
    133 esac
    134 changequote([,])dnl
    135 AC_SUBST(RTEMS_HOST)
    13648])dnl
    13749
     
    230142AC_SUBST($1)])
    231143
     144dnl
     145dnl $Id$
     146dnl
     147
     148dnl canonicalize target cpu
     149dnl NOTE: Most rtems targets do not fullfil autoconf's
     150dnl target naming conventions "processor-vendor-os"
     151dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
     152dnl and we have to fix it for rtems ourselves
     153
     154AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
     155[
     156AC_CANONICAL_SYSTEM
     157AC_MSG_CHECKING(rtems target cpu)
     158changequote(,)dnl
     159case "${target}" in
     160  # hpux unix port should go here
     161  i[3456]86-go32-rtems*)
     162        RTEMS_CPU=i386
     163        ;;
     164  i[3456]86-pc-linux*)          # unix "simulator" port
     165        RTEMS_CPU=unix
     166        ;;
     167  i[3456]86-*freebsd2*)         # unix "simulator" port
     168        RTEMS_CPU=unix
     169        ;;
     170  no_cpu-*rtems*)
     171        RTEMS_CPU=no_cpu
     172        ;;
     173  sparc-sun-solaris*)           # unix "simulator" port
     174        RTEMS_CPU=unix
     175        ;;
     176  *)
     177        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     178        ;;
     179esac
     180changequote([,])dnl
     181AC_SUBST(RTEMS_CPU)
     182AC_MSG_RESULT($RTEMS_CPU)
     183])
     184
     185dnl $Id$
     186
     187AC_DEFUN(RTEMS_CANONICAL_HOST,
     188[dnl
     189AC_REQUIRE([AC_CANONICAL_HOST])
     190RTEMS_HOST=$host_os
     191changequote(,)dnl
     192case "${target}" in
     193  # hpux unix port should go here
     194  i[3456]86-pc-linux*)         # unix "simulator" port
     195        RTEMS_HOST=Linux
     196        ;;
     197  i[3456]86-*freebsd2*) # unix "simulator" port
     198        RTEMS_HOST=FreeBSD
     199        ;;
     200  sparc-sun-solaris*)             # unix "simulator" port
     201        RTEMS_HOST=Solaris
     202        ;;
     203  *)
     204        ;;
     205esac
     206changequote([,])dnl
     207AC_SUBST(RTEMS_HOST)
     208])dnl
     209
    232210# Add --enable-maintainer-mode option to configure.
    233211# From Jim Meyering
     
    295273AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
    296274[
     275AC_BEFORE([$0], [RTEMS_ENV_RTEMSBSP])dnl
    297276AC_ARG_ENABLE(rtemsbsp,
    298277[  --enable-rtemsbsp=bsp1 bsp2 ..      BSPs to include in build],
     
    307286AC_DEFUN(RTEMS_ENV_RTEMSBSP,
    308287[dnl
     288AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
     289AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
     290AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
     291AC_BEFORE([$0], [RTEMS_CHECK_MULTIPROCESSING])dnl
     292AC_BEFORE([$0], [RTEMS_CHECK_POSIX_API])dnl
     293
    309294AC_MSG_CHECKING([for RTEMS_BSP])
    310295AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
     
    320305])
    321306
    322 dnl $Id$
    323 
    324 dnl check if RTEMS support a cpu
    325 AC_DEFUN(RTEMS_CHECK_CPU,
     307dnl
     308dnl $Id$
     309dnl
     310
     311AC_DEFUN(RTEMS_PROJECT_ROOT,
    326312[dnl
    327313AC_REQUIRE([RTEMS_TOP])
    328 AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
    329 # Is this a supported CPU?
    330 AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
    331 if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
    332   AC_MSG_RESULT(yes)
    333 else
    334   AC_MSG_ERROR(no)
    335 fi
    336 ])dnl
     314if test "$TARGET_SUBDIR" = "." ; then
     315PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
     316else
     317PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
     318fi
     319AC_SUBST(PROJECT_ROOT)
     320
     321RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
     322AC_SUBST(RTEMS_ROOT)
     323
     324INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
     325AC_SUBST(INSTALL_CHANGE)
     326
     327PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
     328AC_SUBST(PACKHEX)
     329])
    337330
    338331
     
    378371AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP,
    379372[dnl
     373AC_REQUIRE([RTEMS_TOP])
     374
    380375AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
    381376if test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"; then
     
    385380fi
    386381])dnl
     382
     383dnl $Id$
     384
     385dnl check if RTEMS support a cpu
     386AC_DEFUN(RTEMS_CHECK_CPU,
     387[dnl
     388AC_REQUIRE([RTEMS_TOP])
     389AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
     390AC_BEFORE([$0], [RTEMS_CHECK_POSIX_API])dnl
     391
     392# Is this a supported CPU?
     393AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
     394if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
     395  AC_MSG_RESULT(yes)
     396else
     397  AC_MSG_ERROR(no)
     398fi
     399])dnl
     400
     401
     402dnl $Id$
     403dnl
     404AC_DEFUN(RTEMS_CHECK_POSIX_API,
     405[dnl
     406AC_REQUIRE([RTEMS_CHECK_CPU])dnl
     407AC_REQUIRE([RTEMS_ENABLE_POSIX])dnl
     408
     409AC_CACHE_CHECK([whether BSP supports libposix],
     410  rtems_cv_HAS_POSIX_API,
     411  [dnl
     412    case "$RTEMS_CPU" in
     413    unix*)
     414      rtems_cv_HAS_POSIX_API="no"
     415      ;;
     416    *)
     417      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
     418        rtems_cv_HAS_POSIX_API="yes";
     419      else
     420        rtems_cv_HAS_POSIX_API="disabled";
     421      fi
     422      ;;
     423    esac])
     424if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
     425  HAS_POSIX_API="yes";
     426else
     427  HAS_POSIX_API="no";
     428fi
     429AC_SUBST(HAS_POSIX_API)dnl
     430])
     431
     432dnl $Id$
     433
     434AC_DEFUN(RTEMS_ENABLE_POSIX,
     435[
     436AC_BEFORE([$0], [RTEMS_CHECK_POSIX_API])dnl
     437
     438AC_ARG_ENABLE(posix,
     439[  --enable-posix                       enable posix interface],
     440[case "${enableval}" in
     441  yes) RTEMS_HAS_POSIX_API=yes ;;
     442  no) RTEMS_HAS_POSIX_API=no ;;
     443  *)  AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;;
     444esac],[RTEMS_HAS_POSIX_API=yes])
     445AC_SUBST(RTEMS_HAS_POSIX_API)
     446
     447changequote(,)dnl
     448case "${target}" in
     449  # hpux unix port should go here
     450  i[3456]86-go32-rtems*)
     451        RTEMS_HAS_POSIX_API=no
     452        ;;
     453  i[3456]86-pc-linux*)         # unix "simulator" port
     454        RTEMS_HAS_POSIX_API=no
     455        ;;
     456  i[3456]86-*freebsd2*) # unix "simulator" port
     457        RTEMS_HAS_POSIX_API=no
     458        ;;
     459  no_cpu-*rtems*)
     460        RTEMS_HAS_POSIX_API=no
     461        ;;
     462  sparc-sun-solaris*)             # unix "simulator" port
     463        RTEMS_HAS_POSIX_API=no
     464        ;;
     465  *)
     466        ;;
     467esac
     468changequote([,])dnl
     469AC_SUBST(RTEMS_HAS_POSIX_API)
     470])
     471
     472dnl
     473dnl $Id$
     474dnl
     475
     476AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING,
     477[dnl
     478AC_REQUIRE([RTEMS_TOP])dnl
     479AC_REQUIRE([RTEMS_CHECK_CPU])dnl
     480AC_REQUIRE([RTEMS_ENABLE_MULTIPROCESSING])dnl
     481
     482AC_CACHE_CHECK([whether BSP supports multiprocessing],
     483  rtems_cv_HAS_MP,
     484  [dnl
     485    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${$1}/shmsupp"; then
     486      if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then
     487        rtems_cv_HAS_MP="yes" ;
     488      else
     489        rtems_cv_HAS_MP="disabled";
     490      fi
     491    else
     492      rtems_cv_HAS_MP="no";
     493    fi])
     494if test "$rtems_cv_HAS_MP" = "yes"; then
     495HAS_MP="yes"
     496else
     497HAS_MP="no"
     498fi
     499AC_SUBST(HAS_MP)
     500])
     501
     502dnl $Id$
     503
     504AC_DEFUN(RTEMS_ENABLE_MULTIPROCESSING,
     505[
     506AC_ARG_ENABLE(multiprocessing,
     507[  --enable-multiprocessing             enable multiprocessing interface],
     508[case "${enableval}" in
     509  yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
     510  no) RTEMS_HAS_MULTIPROCESSING=no ;;
     511  *)  AC_MSG_ERROR(bad value ${enableval} for enable-multiprocessing option) ;;
     512esac],[RTEMS_HAS_MULTIPROCESSING=no])
     513AC_SUBST(RTEMS_HAS_MULTIPROCESSING)dnl
     514])
    387515
    388516dnl $Id$
     
    420548AC_BEFORE([$0], [AC_PROG_CPP])dnl
    421549AC_BEFORE([$0], [AC_PROG_CC])dnl
     550AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
    422551AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
    423552
     
    497626esac
    498627AC_SUBST(GCCSED)
    499 ])
    500 
    501 dnl
    502 dnl  $Id$
    503 dnl
    504 dnl Set program_prefix
    505 dnl
    506 dnl 98/05/20 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
    507 dnl                             Extracted from configure
    508 
    509 AC_DEFUN(RTEMS_TOOL_PREFIX,
    510 [AC_REQUIRE([AC_CANONICAL_TARGET])dnl
    511 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
    512 
    513 changequote(,)dnl
    514 if [ "${program_prefix}" = "NONE" ] ; then
    515   if [ "${target}" = "${host}" ] ; then
    516     program_prefix=
    517   else
    518     program_prefix=${target}-
    519   fi
    520 fi
    521 changequote([,])dnl
    522 ])
    523 
    524 dnl
    525 dnl $Id$
    526 dnl
    527 dnl Check whether the target compiler accepts -specs
    528 dnl
    529 dnl 98/02/11 Ralf Corsepius     corsepiu@faw.uni-ulm.de
    530 dnl
    531 
    532 AC_DEFUN(RTEMS_GCC_SPECS,
    533 [AC_REQUIRE([RTEMS_PROG_CC])
    534 AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts -specs,rtems_cv_gcc_specs,
    535 [
    536 rtems_cv_gcc_specs=no
    537 if test "$rtems_cv_prog_gcc" = "yes"; then
    538   touch confspec
    539   echo 'void f(){}' >conftest.c
    540   if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
    541     rtems_cv_gcc_specs=yes
    542   fi
    543 fi
    544 rm -f confspec conftest*
    545 ])])
    546 
    547 dnl
    548 dnl $Id$
    549 dnl
    550 dnl Check whether the target compiler accepts -pipe
    551 dnl
    552 dnl 98/02/11 Ralf Corsepius     corsepiu@faw.uni-ulm.de
    553 dnl
    554 
    555 AC_DEFUN(RTEMS_GCC_PIPE,
    556 [AC_REQUIRE([RTEMS_PROG_CC])
    557 AC_REQUIRE([AC_CANONICAL_HOST])
    558 AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe,
    559 [
    560 rtems_cv_gcc_pipe=no
    561 if test "$rtems_cv_prog_gcc" = "yes"; then
    562 case "$host_os" in
    563   cygwin*)
    564     ;;
    565   *)
    566     echo 'void f(){}' >conftest.c
    567     if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
    568       rtems_cv_gcc_pipe=yes
    569     fi
    570     rm -f conftest*
    571     ;;
    572 esac
    573 fi
    574 ])
    575 ])
    576 
    577 dnl
    578 dnl $Id$
    579 dnl
    580 dnl Check for target g++
    581 dnl
    582 dnl 98/05/20 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
    583 dnl                             Completely reworked
    584 
    585 AC_DEFUN(RTEMS_PROG_CXX,
    586 [
    587 AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
    588 AC_BEFORE([$0], [AC_PROG_CXX])dnl
    589 AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
    590 
    591 dnl Only accept g++ and c++
    592 dnl NOTE: This might be too restrictive for native compilation
    593 AC_PATH_PROGS(CXX_FOR_TARGET, "$program_prefix"g++ "$program_prefix"c++)
    594 test -z "$CXX_FOR_TARGET" \
    595   && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
    596 
    597 dnl backup
    598 rtems_save_CXX=$CXX
    599 rtems_save_CXXFLAGS=$CXXFLAGS
    600 
    601 dnl temporarily set CXX
    602 CXX=$CXX_FOR_TARGET
    603 
    604 AC_PROG_CXX_WORKS
    605 AC_PROG_CXX_GNU
    606 
    607 if test $ac_cv_prog_gxx = yes; then
    608   GXX=yes
    609 dnl Check whether -g works, even if CXXFLAGS is set, in case the package
    610 dnl plays around with CXXFLAGS (such as to build both debugging and
    611 dnl normal versions of a library), tasteless as that idea is.
    612   ac_test_CXXFLAGS="${CXXFLAGS+set}"
    613   ac_save_CXXFLAGS="$CXXFLAGS"
    614   CXXFLAGS=
    615   AC_PROG_CXX_G
    616   if test "$ac_test_CXXFLAGS" = set; then
    617     CXXFLAGS="$ac_save_CXXFLAGS"
    618   elif test $ac_cv_prog_cxx_g = yes; then
    619     CXXFLAGS="-g -O2"
    620   else
    621     CXXFLAGS="-O2"
    622   fi
    623 else
    624   GXX=
    625   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
    626 fi
    627 
    628 rtems_cv_prog_gxx=$ac_cv_prog_gxx
    629 rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
    630 rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
    631 rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
    632 
    633 CXX=$rtems_save_CXX
    634 CXXFLAGS=$rtems_save_CXXFLAGS
    635 
    636 dnl restore initial values
    637 unset ac_cv_prog_gxx
    638 unset ac_cv_prog_cc_g
    639 unset ac_cv_prog_cxx_works
    640 unset ac_cv_prog_cxx_cross
    641 ])
    642 
    643 AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET,
    644 [
    645   RTEMS_PROG_CXX
    646   if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
    647     AC_MSG_ERROR([***]
    648      [Inconsistency in compiler configuration:]
    649      [Target C compiler and Target C++ compiler]
    650      [must both either be cross compilers or native compilers]
    651      [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
    652   fi
    653628])
    654629
     
    777752
    778753
     754dnl
     755dnl  $Id$
     756dnl
     757dnl Set program_prefix
     758dnl
     759dnl 98/05/20 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
     760dnl                             Extracted from configure
     761
     762AC_DEFUN(RTEMS_TOOL_PREFIX,
     763[AC_REQUIRE([AC_CANONICAL_TARGET])dnl
     764AC_REQUIRE([AC_CANONICAL_BUILD])dnl
     765
     766changequote(,)dnl
     767if [ "${program_prefix}" = "NONE" ] ; then
     768  if [ "${target}" = "${host}" ] ; then
     769    program_prefix=
     770  else
     771    program_prefix=${target}-
     772  fi
     773fi
     774changequote([,])dnl
     775])
     776
     777dnl
     778dnl $Id$
     779dnl
     780dnl Check whether the target compiler accepts -specs
     781dnl
     782
     783AC_DEFUN(RTEMS_GCC_SPECS,
     784[AC_REQUIRE([RTEMS_PROG_CC])
     785AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts -specs,rtems_cv_gcc_specs,
     786[
     787rtems_cv_gcc_specs=no
     788if test "$rtems_cv_prog_gcc" = "yes"; then
     789  touch confspec
     790  echo 'void f(){}' >conftest.c
     791  if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
     792    rtems_cv_gcc_specs=yes
     793  fi
     794fi
     795rm -f confspec conftest*
     796])])
     797
     798dnl
     799dnl $Id$
     800dnl
     801dnl Check whether the target compiler accepts -pipe
     802dnl
     803dnl 98/02/11 Ralf Corsepius     corsepiu@faw.uni-ulm.de
     804dnl
     805
     806AC_DEFUN(RTEMS_GCC_PIPE,
     807[AC_REQUIRE([RTEMS_PROG_CC])
     808AC_REQUIRE([AC_CANONICAL_HOST])
     809AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe,
     810[
     811rtems_cv_gcc_pipe=no
     812if test "$rtems_cv_prog_gcc" = "yes"; then
     813case "$host_os" in
     814  cygwin*)
     815    ;;
     816  *)
     817    echo 'void f(){}' >conftest.c
     818    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
     819      rtems_cv_gcc_pipe=yes
     820    fi
     821    rm -f conftest*
     822    ;;
     823esac
     824fi
     825])
     826])
     827
     828dnl
     829dnl $Id$
     830dnl
     831dnl Check for target g++
     832dnl
     833dnl 98/05/20 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
     834dnl                             Completely reworked
     835
     836AC_DEFUN(RTEMS_PROG_CXX,
     837[
     838AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
     839AC_BEFORE([$0], [AC_PROG_CXX])dnl
     840AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
     841AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
     842
     843dnl Only accept g++ and c++
     844dnl NOTE: This might be too restrictive for native compilation
     845AC_PATH_PROGS(CXX_FOR_TARGET, "$program_prefix"g++ "$program_prefix"c++)
     846test -z "$CXX_FOR_TARGET" \
     847  && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
     848
     849dnl backup
     850rtems_save_CXX=$CXX
     851rtems_save_CXXFLAGS=$CXXFLAGS
     852
     853dnl temporarily set CXX
     854CXX=$CXX_FOR_TARGET
     855
     856AC_PROG_CXX_WORKS
     857AC_PROG_CXX_GNU
     858
     859if test $ac_cv_prog_gxx = yes; then
     860  GXX=yes
     861dnl Check whether -g works, even if CXXFLAGS is set, in case the package
     862dnl plays around with CXXFLAGS (such as to build both debugging and
     863dnl normal versions of a library), tasteless as that idea is.
     864  ac_test_CXXFLAGS="${CXXFLAGS+set}"
     865  ac_save_CXXFLAGS="$CXXFLAGS"
     866  CXXFLAGS=
     867  AC_PROG_CXX_G
     868  if test "$ac_test_CXXFLAGS" = set; then
     869    CXXFLAGS="$ac_save_CXXFLAGS"
     870  elif test $ac_cv_prog_cxx_g = yes; then
     871    CXXFLAGS="-g -O2"
     872  else
     873    CXXFLAGS="-O2"
     874  fi
     875else
     876  GXX=
     877  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
     878fi
     879
     880rtems_cv_prog_gxx=$ac_cv_prog_gxx
     881rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
     882rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
     883rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
     884
     885CXX=$rtems_save_CXX
     886CXXFLAGS=$rtems_save_CXXFLAGS
     887
     888dnl restore initial values
     889unset ac_cv_prog_gxx
     890unset ac_cv_prog_cc_g
     891unset ac_cv_prog_cxx_works
     892unset ac_cv_prog_cxx_cross
     893])
     894
     895AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET,
     896[
     897  RTEMS_PROG_CXX
     898  if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
     899    AC_MSG_ERROR([***]
     900     [Inconsistency in compiler configuration:]
     901     [Target C compiler and Target C++ compiler]
     902     [must both either be cross compilers or native compilers]
     903     [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
     904  fi
     905])
     906
  • c/src/librtems++/configure

    rd83c39dc r4075af6f  
    532532
    533533
     534
    534535# Check whether --with-target-subdir or --without-target-subdir was given.
    535536if test "${with_target_subdir+set}" = set; then
     
    545546
    546547echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
    547 echo "configure:548: checking for RTEMS Version" >&5
     548echo "configure:549: checking for RTEMS Version" >&5
    548549if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
    549550RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
     
    606607
    607608echo $ac_n "checking host system type""... $ac_c" 1>&6
    608 echo "configure:609: checking host system type" >&5
     609echo "configure:610: checking host system type" >&5
    609610
    610611host_alias=$host
     
    627628
    628629echo $ac_n "checking target system type""... $ac_c" 1>&6
    629 echo "configure:630: checking target system type" >&5
     630echo "configure:631: checking target system type" >&5
    630631
    631632target_alias=$target
     
    645646
    646647echo $ac_n "checking build system type""... $ac_c" 1>&6
    647 echo "configure:648: checking build system type" >&5
     648echo "configure:649: checking build system type" >&5
    648649
    649650build_alias=$build
     
    668669
    669670echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    670 echo "configure:671: checking rtems target cpu" >&5
     671echo "configure:672: checking rtems target cpu" >&5
    671672case "${target}" in
    672673  # hpux unix port should go here
     
    694695
    695696
    696 if test "$TARGET_SUBDIR" = "." ; then
    697 PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
    698 else
    699 PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
    700 fi
    701 
    702 
    703 RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
    704 
    705 
    706 INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
    707 
    708 
    709 PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
    710 
    711 
    712 
    713697RTEMS_HOST=$host_os
    714698case "${target}" in
     
    741725# ./install, which can be erroneously created by make from ./install.sh.
    742726echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    743 echo "configure:744: checking for a BSD compatible install" >&5
     727echo "configure:728: checking for a BSD compatible install" >&5
    744728if test -z "$INSTALL"; then
    745729if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    794778
    795779echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    796 echo "configure:797: checking whether build environment is sane" >&5
     780echo "configure:781: checking whether build environment is sane" >&5
    797781# Just in case
    798782sleep 1
     
    851835
    852836echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    853 echo "configure:854: checking whether ${MAKE-make} sets \${MAKE}" >&5
     837echo "configure:838: checking whether ${MAKE-make} sets \${MAKE}" >&5
    854838set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    855839if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    891875missing_dir=`cd $ac_aux_dir && pwd`
    892876echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    893 echo "configure:894: checking for working aclocal" >&5
     877echo "configure:878: checking for working aclocal" >&5
    894878# Run test in a subshell; some versions of sh will print an error if
    895879# an executable is not found, even if stderr is redirected.
     
    904888
    905889echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    906 echo "configure:907: checking for working autoconf" >&5
     890echo "configure:891: checking for working autoconf" >&5
    907891# Run test in a subshell; some versions of sh will print an error if
    908892# an executable is not found, even if stderr is redirected.
     
    917901
    918902echo $ac_n "checking for working automake""... $ac_c" 1>&6
    919 echo "configure:920: checking for working automake" >&5
     903echo "configure:904: checking for working automake" >&5
    920904# Run test in a subshell; some versions of sh will print an error if
    921905# an executable is not found, even if stderr is redirected.
     
    930914
    931915echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    932 echo "configure:933: checking for working autoheader" >&5
     916echo "configure:917: checking for working autoheader" >&5
    933917# Run test in a subshell; some versions of sh will print an error if
    934918# an executable is not found, even if stderr is redirected.
     
    943927
    944928echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    945 echo "configure:946: checking for working makeinfo" >&5
     929echo "configure:930: checking for working makeinfo" >&5
    946930# Run test in a subshell; some versions of sh will print an error if
    947931# an executable is not found, even if stderr is redirected.
     
    957941
    958942echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
    959 echo "configure:960: checking whether to enable maintainer-specific portions of Makefiles" >&5
     943echo "configure:944: checking whether to enable maintainer-specific portions of Makefiles" >&5
    960944    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
    961945if test "${enable_maintainer_mode+set}" = set; then
     
    1004988
    1005989
     990
    1006991echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6
    1007 echo "configure:1008: checking for RTEMS_BSP" >&5
     992echo "configure:993: checking for RTEMS_BSP" >&5
    1008993if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then
    1009994  echo $ac_n "(cached) $ac_c" 1>&6
     
    10211006
    10221007
     1008
    10231009# Is this a supported CPU?
    10241010echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
    1025 echo "configure:1026: checking if cpu $RTEMS_CPU is supported" >&5
     1011echo "configure:1012: checking if cpu $RTEMS_CPU is supported" >&5
    10261012if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
    10271013  echo "$ac_t""yes" 1>&6
     
    10301016fi
    10311017
     1018
     1019
    10321020echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
    1033 echo "configure:1034: checking for make/custom/$RTEMS_BSP.cfg" >&5
     1021echo "configure:1022: checking for make/custom/$RTEMS_BSP.cfg" >&5
    10341022if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
    10351023  echo "$ac_t""yes" 1>&6
     
    10561044set dummy $ac_prog; ac_word=$2
    10571045echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1058 echo "configure:1059: checking for $ac_word" >&5
     1046echo "configure:1047: checking for $ac_word" >&5
    10591047if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
    10601048  echo $ac_n "(cached) $ac_c" 1>&6
     
    11001088
    11011089echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1102 echo "configure:1103: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1090echo "configure:1091: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    11031091
    11041092ac_ext=c
     
    11111099cat > conftest.$ac_ext << EOF
    11121100
    1113 #line 1114 "configure"
     1101#line 1102 "configure"
    11141102#include "confdefs.h"
    11151103
    11161104main(){return(0);}
    11171105EOF
    1118 if { (eval echo configure:1119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1106if { (eval echo configure:1107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    11191107  ac_cv_prog_cc_works=yes
    11201108  # If we can't run a trivial program, we are probably using a cross compiler.
     
    11421130fi
    11431131echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1144 echo "configure:1145: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1132echo "configure:1133: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    11451133echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    11461134cross_compiling=$ac_cv_prog_cc_cross
    11471135
    11481136echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1149 echo "configure:1150: checking whether we are using GNU C" >&5
     1137echo "configure:1138: checking whether we are using GNU C" >&5
    11501138if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    11511139  echo $ac_n "(cached) $ac_c" 1>&6
     
    11561144#endif
    11571145EOF
    1158 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1146if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    11591147  ac_cv_prog_gcc=yes
    11601148else
     
    11711159  CFLAGS=
    11721160  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1173 echo "configure:1174: checking whether ${CC-cc} accepts -g" >&5
     1161echo "configure:1162: checking whether ${CC-cc} accepts -g" >&5
    11741162if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11751163  echo $ac_n "(cached) $ac_c" 1>&6
     
    12131201
    12141202echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
    1215 echo "configure:1216: checking whether $CC_FOR_TARGET accepts -specs" >&5
     1203echo "configure:1204: checking whether $CC_FOR_TARGET accepts -specs" >&5
    12161204if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
    12171205  echo $ac_n "(cached) $ac_c" 1>&6
     
    12341222
    12351223echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
    1236 echo "configure:1237: checking whether $CC_FOR_TARGET accepts --pipe" >&5
     1224echo "configure:1225: checking whether $CC_FOR_TARGET accepts --pipe" >&5
    12371225if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
    12381226  echo $ac_n "(cached) $ac_c" 1>&6
     
    12801268set dummy $ac_prog; ac_word=$2
    12811269echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1282 echo "configure:1283: checking for $ac_word" >&5
     1270echo "configure:1271: checking for $ac_word" >&5
    12831271if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
    12841272  echo $ac_n "(cached) $ac_c" 1>&6
     
    13241312
    13251313echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1326 echo "configure:1327: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1314echo "configure:1315: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    13271315
    13281316ac_ext=C
     
    13351323cat > conftest.$ac_ext << EOF
    13361324
    1337 #line 1338 "configure"
     1325#line 1326 "configure"
    13381326#include "confdefs.h"
    13391327
    13401328int main(){return(0);}
    13411329EOF
    1342 if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1330if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    13431331  ac_cv_prog_cxx_works=yes
    13441332  # If we can't run a trivial program, we are probably using a cross compiler.
     
    13661354fi
    13671355echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1368 echo "configure:1369: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1356echo "configure:1357: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    13691357echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    13701358cross_compiling=$ac_cv_prog_cxx_cross
    13711359
    13721360echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1373 echo "configure:1374: checking whether we are using GNU C++" >&5
     1361echo "configure:1362: checking whether we are using GNU C++" >&5
    13741362if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    13751363  echo $ac_n "(cached) $ac_c" 1>&6
     
    13801368#endif
    13811369EOF
    1382 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1370if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    13831371  ac_cv_prog_gxx=yes
    13841372else
     
    13951383  CXXFLAGS=
    13961384  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1397 echo "configure:1398: checking whether ${CXX-g++} accepts -g" >&5
     1385echo "configure:1386: checking whether ${CXX-g++} accepts -g" >&5
    13981386if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    13991387  echo $ac_n "(cached) $ac_c" 1>&6
     
    14441432
    14451433echo $ac_n "checking whether to build rtems++""... $ac_c" 1>&6
    1446 echo "configure:1447: checking whether to build rtems++" >&5
     1434echo "configure:1435: checking whether to build rtems++" >&5
    14471435if eval "test \"`echo '$''{'rtems_cv_HAS_CPLUSPLUS'+set}'`\" = set"; then
    14481436  echo $ac_n "(cached) $ac_c" 1>&6
     
    14711459set dummy $ac_prog; ac_word=$2
    14721460echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1473 echo "configure:1474: checking for $ac_word" >&5
     1461echo "configure:1462: checking for $ac_word" >&5
    14741462if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
    14751463  echo $ac_n "(cached) $ac_c" 1>&6
     
    15151503
    15161504echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1517 echo "configure:1518: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1505echo "configure:1506: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    15181506
    15191507ac_ext=C
     
    15261514cat > conftest.$ac_ext << EOF
    15271515
    1528 #line 1529 "configure"
     1516#line 1517 "configure"
    15291517#include "confdefs.h"
    15301518
    15311519int main(){return(0);}
    15321520EOF
    1533 if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1521if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15341522  ac_cv_prog_cxx_works=yes
    15351523  # If we can't run a trivial program, we are probably using a cross compiler.
     
    15571545fi
    15581546echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1559 echo "configure:1560: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1547echo "configure:1548: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    15601548echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    15611549cross_compiling=$ac_cv_prog_cxx_cross
    15621550
    15631551echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1564 echo "configure:1565: checking whether we are using GNU C++" >&5
     1552echo "configure:1553: checking whether we are using GNU C++" >&5
    15651553if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    15661554  echo $ac_n "(cached) $ac_c" 1>&6
     
    15711559#endif
    15721560EOF
    1573 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1561if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    15741562  ac_cv_prog_gxx=yes
    15751563else
     
    15861574  CXXFLAGS=
    15871575  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1588 echo "configure:1589: checking whether ${CXX-g++} accepts -g" >&5
     1576echo "configure:1577: checking whether ${CXX-g++} accepts -g" >&5
    15891577if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    15901578  echo $ac_n "(cached) $ac_c" 1>&6
     
    16381626 
    16391627echo $ac_n "checking target's ar""... $ac_c" 1>&6
    1640 echo "configure:1641: checking target's ar" >&5
     1628echo "configure:1629: checking target's ar" >&5
    16411629if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    16421630  echo $ac_n "(cached) $ac_c" 1>&6
     
    16711659    # intends
    16721660    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1673 echo "configure:1674: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
     1661echo "configure:1662: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
    16741662    case "$AR_FOR_TARGET" in
    16751663    /*) # valid
     
    16881676set dummy "$program_prefix"ar; ac_word=$2
    16891677echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1690 echo "configure:1691: checking for $ac_word" >&5
     1678echo "configure:1679: checking for $ac_word" >&5
    16911679if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    16921680  echo $ac_n "(cached) $ac_c" 1>&6
     
    17251713 
    17261714echo $ac_n "checking target's as""... $ac_c" 1>&6
    1727 echo "configure:1728: checking target's as" >&5
     1715echo "configure:1716: checking target's as" >&5
    17281716if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    17291717  echo $ac_n "(cached) $ac_c" 1>&6
     
    17581746    # intends
    17591747    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1760 echo "configure:1761: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
     1748echo "configure:1749: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
    17611749    case "$AS_FOR_TARGET" in
    17621750    /*) # valid
     
    17751763set dummy "$program_prefix"as; ac_word=$2
    17761764echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1777 echo "configure:1778: checking for $ac_word" >&5
     1765echo "configure:1766: checking for $ac_word" >&5
    17781766if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    17791767  echo $ac_n "(cached) $ac_c" 1>&6
     
    18121800 
    18131801echo $ac_n "checking target's ld""... $ac_c" 1>&6
    1814 echo "configure:1815: checking target's ld" >&5
     1802echo "configure:1803: checking target's ld" >&5
    18151803if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    18161804  echo $ac_n "(cached) $ac_c" 1>&6
     
    18451833    # intends
    18461834    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1847 echo "configure:1848: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
     1835echo "configure:1836: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
    18481836    case "$LD_FOR_TARGET" in
    18491837    /*) # valid
     
    18621850set dummy "$program_prefix"ld; ac_word=$2
    18631851echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1864 echo "configure:1865: checking for $ac_word" >&5
     1852echo "configure:1853: checking for $ac_word" >&5
    18651853if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    18661854  echo $ac_n "(cached) $ac_c" 1>&6
     
    18991887 
    19001888echo $ac_n "checking target's nm""... $ac_c" 1>&6
    1901 echo "configure:1902: checking target's nm" >&5
     1889echo "configure:1890: checking target's nm" >&5
    19021890if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    19031891  echo $ac_n "(cached) $ac_c" 1>&6
     
    19321920    # intends
    19331921    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1934 echo "configure:1935: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
     1922echo "configure:1923: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
    19351923    case "$NM_FOR_TARGET" in
    19361924    /*) # valid
     
    19491937set dummy "$program_prefix"nm; ac_word=$2
    19501938echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1951 echo "configure:1952: checking for $ac_word" >&5
     1939echo "configure:1940: checking for $ac_word" >&5
    19521940if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    19531941  echo $ac_n "(cached) $ac_c" 1>&6
     
    19871975 
    19881976echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
    1989 echo "configure:1990: checking target's ranlib" >&5
     1977echo "configure:1978: checking target's ranlib" >&5
    19901978if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    19911979  echo $ac_n "(cached) $ac_c" 1>&6
     
    20202008    # intends
    20212009    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2022 echo "configure:2023: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
     2010echo "configure:2011: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
    20232011    case "$RANLIB_FOR_TARGET" in
    20242012    /*) # valid
     
    20372025set dummy "$program_prefix"ranlib; ac_word=$2
    20382026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2039 echo "configure:2040: checking for $ac_word" >&5
     2027echo "configure:2028: checking for $ac_word" >&5
    20402028if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    20412029  echo $ac_n "(cached) $ac_c" 1>&6
     
    20762064   
    20772065echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
    2078 echo "configure:2079: checking whether $AR_FOR_TARGET -s works" >&5
     2066echo "configure:2067: checking whether $AR_FOR_TARGET -s works" >&5
    20792067if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
    20802068  echo $ac_n "(cached) $ac_c" 1>&6
     
    20852073{ return b; }
    20862074EOF
    2087 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    2088   && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     2075if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     2076  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    20892077  && test -s conftest.a ; \
    20902078then
     
    21112099 
    21122100echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
    2113 echo "configure:2114: checking target's objcopy" >&5
     2101echo "configure:2102: checking target's objcopy" >&5
    21142102if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    21152103  echo $ac_n "(cached) $ac_c" 1>&6
     
    21442132    # intends
    21452133    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2146 echo "configure:2147: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
     2134echo "configure:2135: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
    21472135    case "$OBJCOPY_FOR_TARGET" in
    21482136    /*) # valid
     
    21612149set dummy "$program_prefix"objcopy; ac_word=$2
    21622150echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2163 echo "configure:2164: checking for $ac_word" >&5
     2151echo "configure:2152: checking for $ac_word" >&5
    21642152if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    21652153  echo $ac_n "(cached) $ac_c" 1>&6
     
    21982186 
    21992187echo $ac_n "checking target's size""... $ac_c" 1>&6
    2200 echo "configure:2201: checking target's size" >&5
     2188echo "configure:2189: checking target's size" >&5
    22012189if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    22022190  echo $ac_n "(cached) $ac_c" 1>&6
     
    22312219    # intends
    22322220    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2233 echo "configure:2234: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
     2221echo "configure:2222: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
    22342222    case "$SIZE_FOR_TARGET" in
    22352223    /*) # valid
     
    22482236set dummy "$program_prefix"size; ac_word=$2
    22492237echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2250 echo "configure:2251: checking for $ac_word" >&5
     2238echo "configure:2239: checking for $ac_word" >&5
    22512239if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    22522240  echo $ac_n "(cached) $ac_c" 1>&6
     
    22852273 
    22862274echo $ac_n "checking target's strip""... $ac_c" 1>&6
    2287 echo "configure:2288: checking target's strip" >&5
     2275echo "configure:2276: checking target's strip" >&5
    22882276if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    22892277  echo $ac_n "(cached) $ac_c" 1>&6
     
    23182306    # intends
    23192307    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2320 echo "configure:2321: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
     2308echo "configure:2309: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
    23212309    case "$STRIP_FOR_TARGET" in
    23222310    /*) # valid
     
    23352323set dummy "$program_prefix"strip; ac_word=$2
    23362324echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2337 echo "configure:2338: checking for $ac_word" >&5
     2325echo "configure:2326: checking for $ac_word" >&5
    23382326if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    23392327  echo $ac_n "(cached) $ac_c" 1>&6
     
    23832371
    23842372PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
     2373
     2374
     2375
     2376if test "$TARGET_SUBDIR" = "." ; then
     2377PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
     2378else
     2379PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
     2380fi
     2381
     2382
     2383RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
     2384
     2385
     2386INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
     2387
     2388
     2389PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
     2390
    23852391
    23862392
     
    25512557s%@build_os@%$build_os%g
    25522558s%@RTEMS_CPU@%$RTEMS_CPU%g
    2553 s%@PROJECT_ROOT@%$PROJECT_ROOT%g
    2554 s%@RTEMS_ROOT@%$RTEMS_ROOT%g
    2555 s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g
    2556 s%@PACKHEX@%$PACKHEX%g
    25572559s%@RTEMS_HOST@%$RTEMS_HOST%g
    25582560s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
     
    25872589s%@HAS_CXX_FALSE@%$HAS_CXX_FALSE%g
    25882590s%@PROJECT_INCLUDE@%$PROJECT_INCLUDE%g
     2591s%@PROJECT_ROOT@%$PROJECT_ROOT%g
     2592s%@RTEMS_ROOT@%$RTEMS_ROOT%g
     2593s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g
     2594s%@PACKHEX@%$PACKHEX%g
    25892595
    25902596CEOF
Note: See TracChangeset for help on using the changeset viewer.