Changeset fe2401b2 in rtems


Ignore:
Timestamp:
May 21, 1998, 4:38:17 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
0d48220
Parents:
27dccae
Message:

Regenerated.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aclocal.m4

    r27dccae rfe2401b2  
    5757])
    5858
     59dnl Set program_prefix
     60dnl
     61dnl 98/05/20 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
     62dnl                             Extracted from configure
     63
     64AC_DEFUN(RTEMS_TOOL_PREFIX,
     65[AC_REQUIRE([AC_CANONICAL_TARGET])dnl
     66AC_REQUIRE([AC_CANONICAL_BUILD])dnl
     67
     68if [[ "${program_prefix}" = "NONE" ]] ; then
     69  if [[ "${target}" = "${host}" ]] ; then
     70    program_prefix=
     71  else
     72    program_prefix=${target}-
     73  fi
     74fi
     75])
     76
    5977dnl
    6078dnl $Id$
     
    6280dnl Check for target gcc
    6381dnl
    64 dnl Adaptation of autoconf-2.12's AC_PROG_CC to rtems
    65 dnl
    66 dnl 98/02/10 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
    67 dnl
     82dnl 98/05/20 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
     83dnl                             Completely reworked
    6884
    6985AC_DEFUN(RTEMS_PROG_CC,
     
    7187AC_BEFORE([$0], [AC_PROG_CPP])dnl
    7288AC_BEFORE([$0], [AC_PROG_CC])dnl
    73 AC_CHECK_PROG(CC, gcc, gcc)
    74 if test -z "$CC"; then
    75   AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
    76   test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
    77 fi
    78 
    79 RTEMS_PROG_CC_WORKS
     89AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
     90
     91dnl Only accept gcc and cc
     92dnl NOTE: This might be too restrictive for native compilation
     93AC_PATH_PROGS(CC_FOR_TARGET, "$program_prefix"gcc "$program_prefix"cc )
     94test -z "$CC_FOR_TARGET" \
     95  && AC_MSG_ERROR([no acceptable cc found in \$PATH])
     96
     97dnl backup
     98rtems_save_CC=$CC
     99rtems_save_CFLAGS=$CFLAGS
     100
     101dnl temporarily set CC
     102CC=$CC_FOR_TARGET
     103
     104AC_PROG_CC_WORKS
    80105AC_PROG_CC_GNU
    81106
     
    101126fi
    102127
    103 CC_FOR_TARGET=$CC
    104128rtems_cv_prog_gcc=$ac_cv_prog_gcc
    105129rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
     130rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
     131rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
    106132
    107133dnl restore initial values
    108 unset CC
     134CC=$rtems_save_CC
     135CFLAGS=$rtems_save_CFLAGS
     136
    109137unset ac_cv_prog_gcc
    110138unset ac_cv_prog_cc_g
    111 unset ac_cv_prog_CC
    112 ])
    113 
    114 
    115 dnl Almost identical to AC_PROG_CC_WORKS
    116 dnl added malloc to program fragment, because rtems has its own malloc
    117 dnl which is not available while bootstrapping rtems
    118 
    119 AC_DEFUN(RTEMS_PROG_CC_WORKS,
    120 [AC_MSG_CHECKING([whether the target C compiler ($CC $CFLAGS $LDFLAGS) works])
    121 AC_LANG_SAVE
    122 AC_LANG_C
    123 AC_TRY_COMPILER(
    124 [main(){return(0);}],
    125 rtems_cv_prog_cc_works, rtems_cv_prog_cc_cross)
    126 AC_LANG_RESTORE
    127 AC_MSG_RESULT($rtems_cv_prog_cc_works)
    128 if test $rtems_cv_prog_cc_works = no; then
    129   AC_MSG_ERROR([installation or configuration problem: target C compiler cannot create executables.])
    130 fi
    131 AC_MSG_CHECKING([whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler])
    132 AC_MSG_RESULT($rtems_cv_prog_cc_cross)
     139unset ac_cv_prog_cc_works
     140unset ac_cv_prog_cc_cross
    133141])
    134142
     
    189197dnl Check for target g++
    190198dnl
    191 dnl Adaptation of autoconf-2.12's AC_PROG_CXX to rtems
    192 dnl
    193 dnl 98/02/10 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
    194 dnl
    195  
     199dnl 98/05/20 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
     200dnl                             Completely reworked
     201
    196202AC_DEFUN(RTEMS_PROG_CXX,
    197203[
    198204AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
    199205AC_BEFORE([$0], [AC_PROG_CXX])dnl
    200 AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++, gcc)
    201 
    202 RTEMS_PROG_CXX_WORKS
     206AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
     207
     208dnl Only accept g++ and c++
     209dnl NOTE: This might be too restrictive for native compilation
     210AC_PATH_PROGS(CXX_FOR_TARGET, "$program_prefix"g++ "$program_prefix"c++)
     211test -z "$CXX_FOR_TARGET" \
     212  && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
     213
     214dnl backup
     215rtems_save_CXX=$CXX
     216rtems_save_CXXFLAGS=$CXXFLAGS
     217
     218dnl temporarily set CXX
     219CXX=$CXX_FOR_TARGET
     220
     221AC_PROG_CXX_WORKS
    203222AC_PROG_CXX_GNU
    204223
     
    223242  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
    224243fi
    225 CXX_FOR_TARGET=$CXX
     244
     245rtems_cv_prog_gxx=$ac_cv_prog_gxx
     246rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
     247rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
     248rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
     249
     250CXX=$rtems_save_CXX
     251CXXFLAGS=$rtems_save_CXXFLAGS
    226252
    227253dnl restore initial values
    228 unset CXX
    229254unset ac_cv_prog_gxx
    230 ])
    231 
    232 
    233 dnl Almost identical to AC_PROG_CXX_WORKS
    234 dnl Additional handling of malloc
    235 dnl NOTE: using newlib with a native compiler is cross-compiling, indeed.
    236 AC_DEFUN(RTEMS_PROG_CXX_WORKS,
    237 [AC_MSG_CHECKING([whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works])
    238 AC_LANG_SAVE
    239 AC_LANG_CPLUSPLUS
    240 
    241 dnl this fails if rtems uses newlib, because rtems has its own malloc which
    242 dnl is not available at bootstrap
    243 AC_TRY_COMPILER(
    244   [main(){return(0);}],
    245   rtems_cv_prog_cxx_works, rtems_cv_prog_cxx_cross)
    246 AC_LANG_RESTORE
    247 AC_MSG_RESULT($rtems_cv_prog_cxx_works)
    248 if test $rtems_cv_prog_cxx_works = no; then
    249   AC_MSG_ERROR([installation or configuration problem: target C++ compiler cannot create executables.])
    250 fi
    251 AC_MSG_CHECKING([whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler])
    252 AC_MSG_RESULT($rtems_cv_prog_cxx_cross)
     255unset ac_cv_prog_cc_g
     256unset ac_cv_prog_cxx_works
     257unset ac_cv_prog_cxx_cross
    253258])
    254259
     
    276281dnl FIXME: What shall be done if they don't exist?
    277282
    278 dnl NOTE: CC_FOR_TARGET should always be valid at this point,
    279 dnl       cf. RTEMS_PROG_CC 
    280 AC_PATH_PROG(CC_FOR_TARGET,"$program_prefix"gcc,no)
    281 
    282283dnl FIXME: This may fail if the compiler has not been recognized as gcc
    283284dnl       and uses tools with different names
  • configure

    r27dccae rfe2401b2  
    13401340fi
    13411341
    1342 CC="$program_prefix"gcc
     1342
     1343
     1344
     1345for ac_prog in "$program_prefix"gcc "$program_prefix"cc
     1346do
     1347# Extract the first word of "$ac_prog", so it can be a program name with args.
     1348set dummy $ac_prog; ac_word=$2
     1349echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1350echo "configure:1351: checking for $ac_word" >&5
     1351if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
     1352  echo $ac_n "(cached) $ac_c" 1>&6
     1353else
     1354  case "$CC_FOR_TARGET" in
     1355  /*)
     1356  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.
     1357  ;;
     1358  *)
     1359  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1360  for ac_dir in $PATH; do
     1361    test -z "$ac_dir" && ac_dir=.
     1362    if test -f $ac_dir/$ac_word; then
     1363      ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"
     1364      break
     1365    fi
     1366  done
     1367  IFS="$ac_save_ifs"
     1368  ;;
     1369esac
     1370fi
     1371CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"
     1372if test -n "$CC_FOR_TARGET"; then
     1373  echo "$ac_t""$CC_FOR_TARGET" 1>&6
     1374else
     1375  echo "$ac_t""no" 1>&6
     1376fi
     1377
     1378test -n "$CC_FOR_TARGET" && break
     1379done
     1380
     1381test -z "$CC_FOR_TARGET" \
     1382  && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
     1383
     1384rtems_save_CC=$CC
     1385rtems_save_CFLAGS=$CFLAGS
     1386
     1387CC=$CC_FOR_TARGET
     1388
     1389echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     1390echo "configure:1391: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1391
     1392ac_ext=c
     1393# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     1394ac_cpp='$CPP $CPPFLAGS'
     1395ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1396ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1397cross_compiling=$ac_cv_prog_cc_cross
     1398
     1399cat > conftest.$ac_ext <<EOF
     1400#line 1401 "configure"
     1401#include "confdefs.h"
     1402main(){return(0);}
     1403EOF
     1404if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1405  ac_cv_prog_cc_works=yes
     1406  # If we can't run a trivial program, we are probably using a cross compiler.
     1407  if (./conftest; exit) 2>/dev/null; then
     1408    ac_cv_prog_cc_cross=no
     1409  else
     1410    ac_cv_prog_cc_cross=yes
     1411  fi
     1412else
     1413  echo "configure: failed program was:" >&5
     1414  cat conftest.$ac_ext >&5
     1415  ac_cv_prog_cc_works=no
     1416fi
     1417rm -fr conftest*
     1418
     1419echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     1420if test $ac_cv_prog_cc_works = no; then
     1421  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
     1422fi
     1423echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     1424echo "configure:1425: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1425echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
     1426cross_compiling=$ac_cv_prog_cc_cross
     1427
     1428echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
     1429echo "configure:1430: checking whether we are using GNU C" >&5
     1430if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
     1431  echo $ac_n "(cached) $ac_c" 1>&6
     1432else
     1433  cat > conftest.c <<EOF
     1434#ifdef __GNUC__
     1435  yes;
     1436#endif
     1437EOF
     1438if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1439  ac_cv_prog_gcc=yes
     1440else
     1441  ac_cv_prog_gcc=no
     1442fi
     1443fi
     1444
     1445echo "$ac_t""$ac_cv_prog_gcc" 1>&6
     1446
     1447if test $ac_cv_prog_gcc = yes; then
     1448  GCC=yes
     1449  ac_test_CFLAGS="${CFLAGS+set}"
     1450  ac_save_CFLAGS="$CFLAGS"
     1451  CFLAGS=
     1452  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     1453echo "configure:1454: checking whether ${CC-cc} accepts -g" >&5
     1454if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
     1455  echo $ac_n "(cached) $ac_c" 1>&6
     1456else
     1457  echo 'void f(){}' > conftest.c
     1458if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1459  ac_cv_prog_cc_g=yes
     1460else
     1461  ac_cv_prog_cc_g=no
     1462fi
     1463rm -f conftest*
     1464
     1465fi
     1466
     1467echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     1468  if test "$ac_test_CFLAGS" = set; then
     1469    CFLAGS="$ac_save_CFLAGS"
     1470  elif test $ac_cv_prog_cc_g = yes; then
     1471    CFLAGS="-g -O2"
     1472  else
     1473    CFLAGS="-O2"
     1474  fi
     1475else
     1476  GCC=
     1477  test "${CFLAGS+set}" = set || CFLAGS="-g"
     1478fi
     1479
     1480rtems_cv_prog_gcc=$ac_cv_prog_gcc
     1481rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
     1482rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
     1483rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
     1484
     1485CC=$rtems_save_CC
     1486CFLAGS=$rtems_save_CFLAGS
     1487
     1488unset ac_cv_prog_gcc
     1489unset ac_cv_prog_cc_g
     1490unset ac_cv_prog_cc_works
     1491unset ac_cv_prog_cc_cross
     1492
     1493
     1494echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
     1495echo "configure:1496: checking whether $CC_FOR_TARGET accepts -specs" >&5
     1496if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
     1497  echo $ac_n "(cached) $ac_c" 1>&6
     1498else
     1499  touch confspec
     1500echo 'void f(){}' >conftest.c
     1501if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
     1502  rtems_cv_gcc_specs=yes
     1503else
     1504  rtems_cv_gcc_specs=no
     1505fi
     1506rm -f confspec conftest*
     1507
     1508fi
     1509
     1510echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
     1511 
     1512
     1513echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
     1514echo "configure:1515: checking whether $CC_FOR_TARGET accepts --pipe" >&5
     1515if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
     1516  echo $ac_n "(cached) $ac_c" 1>&6
     1517else
     1518 
     1519case "$host_os" in
     1520  cygwin32*)
     1521    rtems_cv_gcc_pipe=no
     1522    ;;
     1523  *)
     1524    echo 'void f(){}' >conftest.c
     1525    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
     1526      rtems_cv_gcc_pipe=yes
     1527    else
     1528      rtems_cv_gcc_pipe=no
     1529    fi
     1530    rm -f conftest*
     1531    ;;
     1532esac
     1533
     1534fi
     1535
     1536echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6
     1537
     1538
     1539if test "$RTEMS_USE_GCC272" != "yes" ; then
     1540  if test "$rtems_cv_gcc_specs" = "no"; then
     1541    echo "configure: warning: *** disabling --enable-gcc28" 1>&2
     1542     RTEMS_USE_GCC272=yes
     1543  fi
     1544fi
     1545test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
     1546
     1547if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
     1548 
     1549
     1550for ac_prog in "$program_prefix"g++ "$program_prefix"c++
     1551do
     1552# Extract the first word of "$ac_prog", so it can be a program name with args.
     1553set dummy $ac_prog; ac_word=$2
     1554echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1555echo "configure:1556: checking for $ac_word" >&5
     1556if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
     1557  echo $ac_n "(cached) $ac_c" 1>&6
     1558else
     1559  case "$CXX_FOR_TARGET" in
     1560  /*)
     1561  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.
     1562  ;;
     1563  *)
     1564  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1565  for ac_dir in $PATH; do
     1566    test -z "$ac_dir" && ac_dir=.
     1567    if test -f $ac_dir/$ac_word; then
     1568      ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"
     1569      break
     1570    fi
     1571  done
     1572  IFS="$ac_save_ifs"
     1573  ;;
     1574esac
     1575fi
     1576CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"
     1577if test -n "$CXX_FOR_TARGET"; then
     1578  echo "$ac_t""$CXX_FOR_TARGET" 1>&6
     1579else
     1580  echo "$ac_t""no" 1>&6
     1581fi
     1582
     1583test -n "$CXX_FOR_TARGET" && break
     1584done
     1585
     1586test -z "$CXX_FOR_TARGET" \
     1587  && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
     1588
     1589rtems_save_CXX=$CXX
     1590rtems_save_CXXFLAGS=$CXXFLAGS
     1591
     1592CXX=$CXX_FOR_TARGET
     1593
     1594echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     1595echo "configure:1596: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1596
     1597ac_ext=C
     1598# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     1599ac_cpp='$CXXCPP $CPPFLAGS'
     1600ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1601ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1602cross_compiling=$ac_cv_prog_cxx_cross
     1603
     1604cat > conftest.$ac_ext <<EOF
     1605#line 1606 "configure"
     1606#include "confdefs.h"
     1607main(){return(0);}
     1608EOF
     1609if { (eval echo configure:1610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1610  ac_cv_prog_cxx_works=yes
     1611  # If we can't run a trivial program, we are probably using a cross compiler.
     1612  if (./conftest; exit) 2>/dev/null; then
     1613    ac_cv_prog_cxx_cross=no
     1614  else
     1615    ac_cv_prog_cxx_cross=yes
     1616  fi
     1617else
     1618  echo "configure: failed program was:" >&5
     1619  cat conftest.$ac_ext >&5
     1620  ac_cv_prog_cxx_works=no
     1621fi
     1622rm -fr conftest*
     1623ac_ext=c
     1624# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     1625ac_cpp='$CPP $CPPFLAGS'
     1626ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1627ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1628cross_compiling=$ac_cv_prog_cc_cross
     1629
     1630echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
     1631if test $ac_cv_prog_cxx_works = no; then
     1632  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
     1633fi
     1634echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     1635echo "configure:1636: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1636echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
     1637cross_compiling=$ac_cv_prog_cxx_cross
     1638
     1639echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
     1640echo "configure:1641: checking whether we are using GNU C++" >&5
     1641if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
     1642  echo $ac_n "(cached) $ac_c" 1>&6
     1643else
     1644  cat > conftest.C <<EOF
     1645#ifdef __GNUC__
     1646  yes;
     1647#endif
     1648EOF
     1649if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1650  ac_cv_prog_gxx=yes
     1651else
     1652  ac_cv_prog_gxx=no
     1653fi
     1654fi
     1655
     1656echo "$ac_t""$ac_cv_prog_gxx" 1>&6
     1657
     1658if test $ac_cv_prog_gxx = yes; then
     1659  GXX=yes
     1660  ac_test_CXXFLAGS="${CXXFLAGS+set}"
     1661  ac_save_CXXFLAGS="$CXXFLAGS"
     1662  CXXFLAGS=
     1663  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
     1664echo "configure:1665: checking whether ${CXX-g++} accepts -g" >&5
     1665if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
     1666  echo $ac_n "(cached) $ac_c" 1>&6
     1667else
     1668  echo 'void f(){}' > conftest.cc
     1669if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     1670  ac_cv_prog_cxx_g=yes
     1671else
     1672  ac_cv_prog_cxx_g=no
     1673fi
     1674rm -f conftest*
     1675
     1676fi
     1677
     1678echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
     1679  if test "$ac_test_CXXFLAGS" = set; then
     1680    CXXFLAGS="$ac_save_CXXFLAGS"
     1681  elif test $ac_cv_prog_cxx_g = yes; then
     1682    CXXFLAGS="-g -O2"
     1683  else
     1684    CXXFLAGS="-O2"
     1685  fi
     1686else
     1687  GXX=
     1688  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
     1689fi
     1690
     1691rtems_cv_prog_gxx=$ac_cv_prog_gxx
     1692rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
     1693rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
     1694rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
     1695
     1696CXX=$rtems_save_CXX
     1697CXXFLAGS=$rtems_save_CXXFLAGS
     1698
     1699unset ac_cv_prog_gxx
     1700unset ac_cv_prog_cc_g
     1701unset ac_cv_prog_cxx_works
     1702unset ac_cv_prog_cxx_cross
     1703
     1704  if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
     1705    { echo "configure: error: ***
     1706     Inconsistency in compiler configuration:
     1707     Target C compiler and Target C++ compiler
     1708     must both ether be cross compilers or native compilers
     1709     Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; }
     1710  fi
     1711else
     1712  CXX_FOR_TARGET="no"
     1713fi
     1714
     1715if test "$rtems_cv_prog_gcc" = "yes" ; then
     1716        AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`
     1717  AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`
     1718  LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`
     1719  NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`
     1720  RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`
     1721fi
     1722
     1723
     1724# Extract the first word of ""$program_prefix"ar", so it can be a program name with args.
     1725set dummy "$program_prefix"ar; ac_word=$2
     1726echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1727echo "configure:1728: checking for $ac_word" >&5
     1728if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
     1729  echo $ac_n "(cached) $ac_c" 1>&6
     1730else
     1731  case "$AR_FOR_TARGET" in
     1732  /*)
     1733  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
     1734  ;;
     1735  *)
     1736  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1737  for ac_dir in $PATH; do
     1738    test -z "$ac_dir" && ac_dir=.
     1739    if test -f $ac_dir/$ac_word; then
     1740      ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
     1741      break
     1742    fi
     1743  done
     1744  IFS="$ac_save_ifs"
     1745  test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"
     1746  ;;
     1747esac
     1748fi
     1749AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
     1750if test -n "$AR_FOR_TARGET"; then
     1751  echo "$ac_t""$AR_FOR_TARGET" 1>&6
     1752else
     1753  echo "$ac_t""no" 1>&6
     1754fi
     1755
     1756# Extract the first word of ""$program_prefix"as", so it can be a program name with args.
     1757set dummy "$program_prefix"as; ac_word=$2
     1758echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1759echo "configure:1760: checking for $ac_word" >&5
     1760if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
     1761  echo $ac_n "(cached) $ac_c" 1>&6
     1762else
     1763  case "$AS_FOR_TARGET" in
     1764  /*)
     1765  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
     1766  ;;
     1767  *)
     1768  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1769  for ac_dir in $PATH; do
     1770    test -z "$ac_dir" && ac_dir=.
     1771    if test -f $ac_dir/$ac_word; then
     1772      ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
     1773      break
     1774    fi
     1775  done
     1776  IFS="$ac_save_ifs"
     1777  test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"
     1778  ;;
     1779esac
     1780fi
     1781AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
     1782if test -n "$AS_FOR_TARGET"; then
     1783  echo "$ac_t""$AS_FOR_TARGET" 1>&6
     1784else
     1785  echo "$ac_t""no" 1>&6
     1786fi
     1787
     1788# Extract the first word of ""$program_prefix"nm", so it can be a program name with args.
     1789set dummy "$program_prefix"nm; ac_word=$2
     1790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1791echo "configure:1792: checking for $ac_word" >&5
     1792if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
     1793  echo $ac_n "(cached) $ac_c" 1>&6
     1794else
     1795  case "$NM_FOR_TARGET" in
     1796  /*)
     1797  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
     1798  ;;
     1799  *)
     1800  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1801  for ac_dir in $PATH; do
     1802    test -z "$ac_dir" && ac_dir=.
     1803    if test -f $ac_dir/$ac_word; then
     1804      ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
     1805      break
     1806    fi
     1807  done
     1808  IFS="$ac_save_ifs"
     1809  test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"
     1810  ;;
     1811esac
     1812fi
     1813NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
     1814if test -n "$NM_FOR_TARGET"; then
     1815  echo "$ac_t""$NM_FOR_TARGET" 1>&6
     1816else
     1817  echo "$ac_t""no" 1>&6
     1818fi
     1819
     1820# Extract the first word of ""$program_prefix"ld", so it can be a program name with args.
     1821set dummy "$program_prefix"ld; ac_word=$2
     1822echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1823echo "configure:1824: checking for $ac_word" >&5
     1824if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
     1825  echo $ac_n "(cached) $ac_c" 1>&6
     1826else
     1827  case "$LD_FOR_TARGET" in
     1828  /*)
     1829  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
     1830  ;;
     1831  *)
     1832  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1833  for ac_dir in $PATH; do
     1834    test -z "$ac_dir" && ac_dir=.
     1835    if test -f $ac_dir/$ac_word; then
     1836      ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
     1837      break
     1838    fi
     1839  done
     1840  IFS="$ac_save_ifs"
     1841  test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"
     1842  ;;
     1843esac
     1844fi
     1845LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
     1846if test -n "$LD_FOR_TARGET"; then
     1847  echo "$ac_t""$LD_FOR_TARGET" 1>&6
     1848else
     1849  echo "$ac_t""no" 1>&6
     1850fi
     1851
     1852
     1853# Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.
     1854set dummy "$program_prefix"ranlib; ac_word=$2
     1855echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1856echo "configure:1857: checking for $ac_word" >&5
     1857if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
     1858  echo $ac_n "(cached) $ac_c" 1>&6
     1859else
     1860  case "$RANLIB_FOR_TARGET" in
     1861  /*)
     1862  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
     1863  ;;
     1864  *)
     1865  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1866  for ac_dir in $PATH; do
     1867    test -z "$ac_dir" && ac_dir=.
     1868    if test -f $ac_dir/$ac_word; then
     1869      ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
     1870      break
     1871    fi
     1872  done
     1873  IFS="$ac_save_ifs"
     1874  test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"
     1875  ;;
     1876esac
     1877fi
     1878RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
     1879if test -n "$RANLIB_FOR_TARGET"; then
     1880  echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
     1881else
     1882  echo "$ac_t""no" 1>&6
     1883fi
     1884
     1885
     1886# Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.
     1887set dummy "$program_prefix"objcopy; ac_word=$2
     1888echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1889echo "configure:1890: checking for $ac_word" >&5
     1890if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
     1891  echo $ac_n "(cached) $ac_c" 1>&6
     1892else
     1893  case "$OBJCOPY_FOR_TARGET" in
     1894  /*)
     1895  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
     1896  ;;
     1897  *)
     1898  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1899  for ac_dir in $PATH; do
     1900    test -z "$ac_dir" && ac_dir=.
     1901    if test -f $ac_dir/$ac_word; then
     1902      ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"
     1903      break
     1904    fi
     1905  done
     1906  IFS="$ac_save_ifs"
     1907  test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"
     1908  ;;
     1909esac
     1910fi
     1911OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"
     1912if test -n "$OBJCOPY_FOR_TARGET"; then
     1913  echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6
     1914else
     1915  echo "$ac_t""no" 1>&6
     1916fi
     1917
     1918# Extract the first word of ""$program_prefix"size", so it can be a program name with args.
     1919set dummy "$program_prefix"size; ac_word=$2
     1920echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1921echo "configure:1922: checking for $ac_word" >&5
     1922if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
     1923  echo $ac_n "(cached) $ac_c" 1>&6
     1924else
     1925  case "$SIZE_FOR_TARGET" in
     1926  /*)
     1927  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.
     1928  ;;
     1929  *)
     1930  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1931  for ac_dir in $PATH; do
     1932    test -z "$ac_dir" && ac_dir=.
     1933    if test -f $ac_dir/$ac_word; then
     1934      ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"
     1935      break
     1936    fi
     1937  done
     1938  IFS="$ac_save_ifs"
     1939  test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"
     1940  ;;
     1941esac
     1942fi
     1943SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"
     1944if test -n "$SIZE_FOR_TARGET"; then
     1945  echo "$ac_t""$SIZE_FOR_TARGET" 1>&6
     1946else
     1947  echo "$ac_t""no" 1>&6
     1948fi
     1949
     1950
    13431951
    13441952# Extract the first word of "gcc", so it can be a program name with args.
    13451953set dummy gcc; ac_word=$2
    13461954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1347 echo "configure:1348: checking for $ac_word" >&5
     1955echo "configure:1956: checking for $ac_word" >&5
    13481956if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    13491957  echo $ac_n "(cached) $ac_c" 1>&6
     
    13741982set dummy cc; ac_word=$2
    13751983echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1376 echo "configure:1377: checking for $ac_word" >&5
     1984echo "configure:1985: checking for $ac_word" >&5
    13771985if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    13781986  echo $ac_n "(cached) $ac_c" 1>&6
     
    14212029fi
    14222030
    1423 echo $ac_n "checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1424 echo "configure:1425: checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2031echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     2032echo "configure:2033: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    14252033
    14262034ac_ext=c
     
    14322040
    14332041cat > conftest.$ac_ext <<EOF
    1434 #line 1435 "configure"
     2042#line 2043 "configure"
    14352043#include "confdefs.h"
    14362044main(){return(0);}
    14372045EOF
    1438 if { (eval echo configure:1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1439   rtems_cv_prog_cc_works=yes
     2046if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2047  ac_cv_prog_cc_works=yes
    14402048  # If we can't run a trivial program, we are probably using a cross compiler.
    14412049  if (./conftest; exit) 2>/dev/null; then
    1442     rtems_cv_prog_cc_cross=no
     2050    ac_cv_prog_cc_cross=no
    14432051  else
    1444     rtems_cv_prog_cc_cross=yes
     2052    ac_cv_prog_cc_cross=yes
    14452053  fi
    14462054else
    14472055  echo "configure: failed program was:" >&5
    14482056  cat conftest.$ac_ext >&5
    1449   rtems_cv_prog_cc_works=no
     2057  ac_cv_prog_cc_works=no
    14502058fi
    14512059rm -fr conftest*
    14522060
    1453 echo "$ac_t""$rtems_cv_prog_cc_works" 1>&6
    1454 if test $rtems_cv_prog_cc_works = no; then
    1455   { echo "configure: error: installation or configuration problem: target C compiler cannot create executables." 1>&2; exit 1; }
    1456 fi
    1457 echo $ac_n "checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1458 echo "configure:1459: checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    1459 echo "$ac_t""$rtems_cv_prog_cc_cross" 1>&6
     2061echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     2062if test $ac_cv_prog_cc_works = no; then
     2063  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
     2064fi
     2065echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     2066echo "configure:2067: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2067echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
     2068cross_compiling=$ac_cv_prog_cc_cross
    14602069
    14612070echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1462 echo "configure:1463: checking whether we are using GNU C" >&5
     2071echo "configure:2072: checking whether we are using GNU C" >&5
    14632072if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    14642073  echo $ac_n "(cached) $ac_c" 1>&6
     
    14692078#endif
    14702079EOF
    1471 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     2080if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    14722081  ac_cv_prog_gcc=yes
    14732082else
     
    14842093  CFLAGS=
    14852094  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1486 echo "configure:1487: checking whether ${CC-cc} accepts -g" >&5
     2095echo "configure:2096: checking whether ${CC-cc} accepts -g" >&5
    14872096if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    14882097  echo $ac_n "(cached) $ac_c" 1>&6
     
    15112120fi
    15122121
    1513 CC_FOR_TARGET=$CC
    1514 rtems_cv_prog_gcc=$ac_cv_prog_gcc
    1515 rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
    1516 
    1517 unset CC
    1518 unset ac_cv_prog_gcc
    1519 unset ac_cv_prog_cc_g
    1520 unset ac_cv_prog_CC
    1521 
    1522 
    1523 echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
    1524 echo "configure:1525: checking whether $CC_FOR_TARGET accepts -specs" >&5
    1525 if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
    1526   echo $ac_n "(cached) $ac_c" 1>&6
    1527 else
    1528   touch confspec
    1529 echo 'void f(){}' >conftest.c
    1530 if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
    1531   rtems_cv_gcc_specs=yes
    1532 else
    1533   rtems_cv_gcc_specs=no
    1534 fi
    1535 rm -f confspec conftest*
    1536 
    1537 fi
    1538 
    1539 echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
    1540  
    1541 
    1542 echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
    1543 echo "configure:1544: checking whether $CC_FOR_TARGET accepts --pipe" >&5
    1544 if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
    1545   echo $ac_n "(cached) $ac_c" 1>&6
    1546 else
    1547  
    1548 case "$host_os" in
    1549   cygwin32*)
    1550     rtems_cv_gcc_pipe=no
    1551     ;;
    1552   *)
    1553     echo 'void f(){}' >conftest.c
    1554     if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
    1555       rtems_cv_gcc_pipe=yes
    1556     else
    1557       rtems_cv_gcc_pipe=no
    1558     fi
    1559     rm -f conftest*
    1560     ;;
    1561 esac
    1562 
    1563 fi
    1564 
    1565 echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6
    1566 
    1567 
    1568 if test "$RTEMS_USE_GCC272" != "yes" ; then
    1569   if test "$rtems_cv_gcc_specs" = "no"; then
    1570     echo "configure: warning: *** disabling --enable-gcc28" 1>&2
    1571      RTEMS_USE_GCC272=yes
    1572   fi
    1573 fi
    1574 
    1575 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
    1576   CXX="$program_prefix"g++
    1577  
    1578 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
    1579 do
    1580 # Extract the first word of "$ac_prog", so it can be a program name with args.
    1581 set dummy $ac_prog; ac_word=$2
    1582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1583 echo "configure:1584: checking for $ac_word" >&5
    1584 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    1585   echo $ac_n "(cached) $ac_c" 1>&6
    1586 else
    1587   if test -n "$CXX"; then
    1588   ac_cv_prog_CXX="$CXX" # Let the user override the test.
    1589 else
    1590   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1591   for ac_dir in $PATH; do
    1592     test -z "$ac_dir" && ac_dir=.
    1593     if test -f $ac_dir/$ac_word; then
    1594       ac_cv_prog_CXX="$ac_prog"
    1595       break
    1596     fi
    1597   done
    1598   IFS="$ac_save_ifs"
    1599 fi
    1600 fi
    1601 CXX="$ac_cv_prog_CXX"
    1602 if test -n "$CXX"; then
    1603   echo "$ac_t""$CXX" 1>&6
    1604 else
    1605   echo "$ac_t""no" 1>&6
    1606 fi
    1607 
    1608 test -n "$CXX" && break
    1609 done
    1610 test -n "$CXX" || CXX="gcc"
    1611 
    1612 
    1613 echo $ac_n "checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1614 echo "configure:1615: checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    1615 
    1616 ac_ext=C
    1617 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    1618 ac_cpp='$CXXCPP $CPPFLAGS'
    1619 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1620 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1621 cross_compiling=$ac_cv_prog_cxx_cross
    1622 
    1623 
    1624 cat > conftest.$ac_ext <<EOF
    1625 #line 1626 "configure"
    1626 #include "confdefs.h"
    1627 main(){return(0);}
    1628 EOF
    1629 if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1630   rtems_cv_prog_cxx_works=yes
    1631   # If we can't run a trivial program, we are probably using a cross compiler.
    1632   if (./conftest; exit) 2>/dev/null; then
    1633     rtems_cv_prog_cxx_cross=no
    1634   else
    1635     rtems_cv_prog_cxx_cross=yes
    1636   fi
    1637 else
    1638   echo "configure: failed program was:" >&5
    1639   cat conftest.$ac_ext >&5
    1640   rtems_cv_prog_cxx_works=no
    1641 fi
    1642 rm -fr conftest*
    1643 ac_ext=c
    1644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    1645 ac_cpp='$CPP $CPPFLAGS'
    1646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1647 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1648 cross_compiling=$ac_cv_prog_cc_cross
    1649 
    1650 echo "$ac_t""$rtems_cv_prog_cxx_works" 1>&6
    1651 if test $rtems_cv_prog_cxx_works = no; then
    1652   { echo "configure: error: installation or configuration problem: target C++ compiler cannot create executables." 1>&2; exit 1; }
    1653 fi
    1654 echo $ac_n "checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1655 echo "configure:1656: checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    1656 echo "$ac_t""$rtems_cv_prog_cxx_cross" 1>&6
    1657 
    1658 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1659 echo "configure:1660: checking whether we are using GNU C++" >&5
    1660 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    1661   echo $ac_n "(cached) $ac_c" 1>&6
    1662 else
    1663   cat > conftest.C <<EOF
    1664 #ifdef __GNUC__
    1665   yes;
    1666 #endif
    1667 EOF
    1668 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    1669   ac_cv_prog_gxx=yes
    1670 else
    1671   ac_cv_prog_gxx=no
    1672 fi
    1673 fi
    1674 
    1675 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    1676 
    1677 if test $ac_cv_prog_gxx = yes; then
    1678   GXX=yes
    1679   ac_test_CXXFLAGS="${CXXFLAGS+set}"
    1680   ac_save_CXXFLAGS="$CXXFLAGS"
    1681   CXXFLAGS=
    1682   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1683 echo "configure:1684: checking whether ${CXX-g++} accepts -g" >&5
    1684 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    1685   echo $ac_n "(cached) $ac_c" 1>&6
    1686 else
    1687   echo 'void f(){}' > conftest.cc
    1688 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
    1689   ac_cv_prog_cxx_g=yes
    1690 else
    1691   ac_cv_prog_cxx_g=no
    1692 fi
    1693 rm -f conftest*
    1694 
    1695 fi
    1696 
    1697 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
    1698   if test "$ac_test_CXXFLAGS" = set; then
    1699     CXXFLAGS="$ac_save_CXXFLAGS"
    1700   elif test $ac_cv_prog_cxx_g = yes; then
    1701     CXXFLAGS="-g -O2"
    1702   else
    1703     CXXFLAGS="-O2"
    1704   fi
    1705 else
    1706   GXX=
    1707   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
    1708 fi
    1709 CXX_FOR_TARGET=$CXX
    1710 
    1711 unset CXX
    1712 unset ac_cv_prog_gxx
    1713 
    1714   if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
    1715     { echo "configure: error: ***
    1716      Inconsistency in compiler configuration:
    1717      Target C compiler and Target C++ compiler
    1718      must both ether be cross compilers or native compilers
    1719      Hint: LD_LIBRARY_PATH ? " 1>&2; exit 1; }
    1720   fi
    1721   # Extract the first word of ""$program_prefix"g++", so it can be a program name with args.
    1722 set dummy "$program_prefix"g++; ac_word=$2
    1723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1724 echo "configure:1725: checking for $ac_word" >&5
    1725 if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
    1726   echo $ac_n "(cached) $ac_c" 1>&6
    1727 else
    1728   case "$CXX_FOR_TARGET" in
    1729   /*)
    1730   ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.
    1731   ;;
    1732   *)
    1733   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1734   for ac_dir in $PATH; do
    1735     test -z "$ac_dir" && ac_dir=.
    1736     if test -f $ac_dir/$ac_word; then
    1737       ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"
    1738       break
    1739     fi
    1740   done
    1741   IFS="$ac_save_ifs"
    1742   test -z "$ac_cv_path_CXX_FOR_TARGET" && ac_cv_path_CXX_FOR_TARGET="no"
    1743   ;;
    1744 esac
    1745 fi
    1746 CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"
    1747 if test -n "$CXX_FOR_TARGET"; then
    1748   echo "$ac_t""$CXX_FOR_TARGET" 1>&6
    1749 else
    1750   echo "$ac_t""no" 1>&6
    1751 fi
    1752 
    1753 else
    1754   CXX_FOR_TARGET="no"
    1755 fi
    1756 
    1757 if test "$rtems_cv_prog_gcc" = "yes" ; then
    1758         AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`
    1759   AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`
    1760   LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`
    1761   NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`
    1762   RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`
    1763 fi
    1764 
    1765 
    1766 # Extract the first word of ""$program_prefix"gcc", so it can be a program name with args.
    1767 set dummy "$program_prefix"gcc; ac_word=$2
    1768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1769 echo "configure:1770: checking for $ac_word" >&5
    1770 if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
    1771   echo $ac_n "(cached) $ac_c" 1>&6
    1772 else
    1773   case "$CC_FOR_TARGET" in
    1774   /*)
    1775   ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.
    1776   ;;
    1777   *)
    1778   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1779   for ac_dir in $PATH; do
    1780     test -z "$ac_dir" && ac_dir=.
    1781     if test -f $ac_dir/$ac_word; then
    1782       ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"
    1783       break
    1784     fi
    1785   done
    1786   IFS="$ac_save_ifs"
    1787   test -z "$ac_cv_path_CC_FOR_TARGET" && ac_cv_path_CC_FOR_TARGET="no"
    1788   ;;
    1789 esac
    1790 fi
    1791 CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"
    1792 if test -n "$CC_FOR_TARGET"; then
    1793   echo "$ac_t""$CC_FOR_TARGET" 1>&6
    1794 else
    1795   echo "$ac_t""no" 1>&6
    1796 fi
    1797 
    1798 
    1799 # Extract the first word of ""$program_prefix"ar", so it can be a program name with args.
    1800 set dummy "$program_prefix"ar; ac_word=$2
    1801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1802 echo "configure:1803: checking for $ac_word" >&5
    1803 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    1804   echo $ac_n "(cached) $ac_c" 1>&6
    1805 else
    1806   case "$AR_FOR_TARGET" in
    1807   /*)
    1808   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
    1809   ;;
    1810   *)
    1811   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1812   for ac_dir in $PATH; do
    1813     test -z "$ac_dir" && ac_dir=.
    1814     if test -f $ac_dir/$ac_word; then
    1815       ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
    1816       break
    1817     fi
    1818   done
    1819   IFS="$ac_save_ifs"
    1820   test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"
    1821   ;;
    1822 esac
    1823 fi
    1824 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
    1825 if test -n "$AR_FOR_TARGET"; then
    1826   echo "$ac_t""$AR_FOR_TARGET" 1>&6
    1827 else
    1828   echo "$ac_t""no" 1>&6
    1829 fi
    1830 
    1831 # Extract the first word of ""$program_prefix"as", so it can be a program name with args.
    1832 set dummy "$program_prefix"as; ac_word=$2
    1833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1834 echo "configure:1835: checking for $ac_word" >&5
    1835 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    1836   echo $ac_n "(cached) $ac_c" 1>&6
    1837 else
    1838   case "$AS_FOR_TARGET" in
    1839   /*)
    1840   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
    1841   ;;
    1842   *)
    1843   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1844   for ac_dir in $PATH; do
    1845     test -z "$ac_dir" && ac_dir=.
    1846     if test -f $ac_dir/$ac_word; then
    1847       ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
    1848       break
    1849     fi
    1850   done
    1851   IFS="$ac_save_ifs"
    1852   test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"
    1853   ;;
    1854 esac
    1855 fi
    1856 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
    1857 if test -n "$AS_FOR_TARGET"; then
    1858   echo "$ac_t""$AS_FOR_TARGET" 1>&6
    1859 else
    1860   echo "$ac_t""no" 1>&6
    1861 fi
    1862 
    1863 # Extract the first word of ""$program_prefix"nm", so it can be a program name with args.
    1864 set dummy "$program_prefix"nm; ac_word=$2
    1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1866 echo "configure:1867: checking for $ac_word" >&5
    1867 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    1868   echo $ac_n "(cached) $ac_c" 1>&6
    1869 else
    1870   case "$NM_FOR_TARGET" in
    1871   /*)
    1872   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
    1873   ;;
    1874   *)
    1875   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1876   for ac_dir in $PATH; do
    1877     test -z "$ac_dir" && ac_dir=.
    1878     if test -f $ac_dir/$ac_word; then
    1879       ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
    1880       break
    1881     fi
    1882   done
    1883   IFS="$ac_save_ifs"
    1884   test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"
    1885   ;;
    1886 esac
    1887 fi
    1888 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
    1889 if test -n "$NM_FOR_TARGET"; then
    1890   echo "$ac_t""$NM_FOR_TARGET" 1>&6
    1891 else
    1892   echo "$ac_t""no" 1>&6
    1893 fi
    1894 
    1895 # Extract the first word of ""$program_prefix"ld", so it can be a program name with args.
    1896 set dummy "$program_prefix"ld; ac_word=$2
    1897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1898 echo "configure:1899: checking for $ac_word" >&5
    1899 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    1900   echo $ac_n "(cached) $ac_c" 1>&6
    1901 else
    1902   case "$LD_FOR_TARGET" in
    1903   /*)
    1904   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
    1905   ;;
    1906   *)
    1907   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1908   for ac_dir in $PATH; do
    1909     test -z "$ac_dir" && ac_dir=.
    1910     if test -f $ac_dir/$ac_word; then
    1911       ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
    1912       break
    1913     fi
    1914   done
    1915   IFS="$ac_save_ifs"
    1916   test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"
    1917   ;;
    1918 esac
    1919 fi
    1920 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
    1921 if test -n "$LD_FOR_TARGET"; then
    1922   echo "$ac_t""$LD_FOR_TARGET" 1>&6
    1923 else
    1924   echo "$ac_t""no" 1>&6
    1925 fi
    1926 
    1927 
    1928 # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.
    1929 set dummy "$program_prefix"ranlib; ac_word=$2
    1930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1931 echo "configure:1932: checking for $ac_word" >&5
    1932 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    1933   echo $ac_n "(cached) $ac_c" 1>&6
    1934 else
    1935   case "$RANLIB_FOR_TARGET" in
    1936   /*)
    1937   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
    1938   ;;
    1939   *)
    1940   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1941   for ac_dir in $PATH; do
    1942     test -z "$ac_dir" && ac_dir=.
    1943     if test -f $ac_dir/$ac_word; then
    1944       ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
    1945       break
    1946     fi
    1947   done
    1948   IFS="$ac_save_ifs"
    1949   test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"
    1950   ;;
    1951 esac
    1952 fi
    1953 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
    1954 if test -n "$RANLIB_FOR_TARGET"; then
    1955   echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
    1956 else
    1957   echo "$ac_t""no" 1>&6
    1958 fi
    1959 
    1960 
    1961 # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.
    1962 set dummy "$program_prefix"objcopy; ac_word=$2
    1963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1964 echo "configure:1965: checking for $ac_word" >&5
    1965 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    1966   echo $ac_n "(cached) $ac_c" 1>&6
    1967 else
    1968   case "$OBJCOPY_FOR_TARGET" in
    1969   /*)
    1970   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
    1971   ;;
    1972   *)
    1973   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1974   for ac_dir in $PATH; do
    1975     test -z "$ac_dir" && ac_dir=.
    1976     if test -f $ac_dir/$ac_word; then
    1977       ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"
    1978       break
    1979     fi
    1980   done
    1981   IFS="$ac_save_ifs"
    1982   test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"
    1983   ;;
    1984 esac
    1985 fi
    1986 OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"
    1987 if test -n "$OBJCOPY_FOR_TARGET"; then
    1988   echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6
    1989 else
    1990   echo "$ac_t""no" 1>&6
    1991 fi
    1992 
    1993 # Extract the first word of ""$program_prefix"size", so it can be a program name with args.
    1994 set dummy "$program_prefix"size; ac_word=$2
    1995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1996 echo "configure:1997: checking for $ac_word" >&5
    1997 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    1998   echo $ac_n "(cached) $ac_c" 1>&6
    1999 else
    2000   case "$SIZE_FOR_TARGET" in
    2001   /*)
    2002   ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.
    2003   ;;
    2004   *)
    2005   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    2006   for ac_dir in $PATH; do
    2007     test -z "$ac_dir" && ac_dir=.
    2008     if test -f $ac_dir/$ac_word; then
    2009       ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"
    2010       break
    2011     fi
    2012   done
    2013   IFS="$ac_save_ifs"
    2014   test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"
    2015   ;;
    2016 esac
    2017 fi
    2018 SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"
    2019 if test -n "$SIZE_FOR_TARGET"; then
    2020   echo "$ac_t""$SIZE_FOR_TARGET" 1>&6
    2021 else
    2022   echo "$ac_t""no" 1>&6
    2023 fi
    2024 
    2025 
    2026 test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
    2027 
    2028 # Extract the first word of "gcc", so it can be a program name with args.
    2029 set dummy gcc; ac_word=$2
    2030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2031 echo "configure:2032: checking for $ac_word" >&5
    2032 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    2033   echo $ac_n "(cached) $ac_c" 1>&6
    2034 else
    2035   if test -n "$CC"; then
    2036   ac_cv_prog_CC="$CC" # Let the user override the test.
    2037 else
    2038   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    2039   for ac_dir in $PATH; do
    2040     test -z "$ac_dir" && ac_dir=.
    2041     if test -f $ac_dir/$ac_word; then
    2042       ac_cv_prog_CC="gcc"
    2043       break
    2044     fi
    2045   done
    2046   IFS="$ac_save_ifs"
    2047 fi
    2048 fi
    2049 CC="$ac_cv_prog_CC"
    2050 if test -n "$CC"; then
    2051   echo "$ac_t""$CC" 1>&6
    2052 else
    2053   echo "$ac_t""no" 1>&6
    2054 fi
    2055 
    2056 if test -z "$CC"; then
    2057   # Extract the first word of "cc", so it can be a program name with args.
    2058 set dummy cc; ac_word=$2
    2059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2060 echo "configure:2061: checking for $ac_word" >&5
    2061 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    2062   echo $ac_n "(cached) $ac_c" 1>&6
    2063 else
    2064   if test -n "$CC"; then
    2065   ac_cv_prog_CC="$CC" # Let the user override the test.
    2066 else
    2067   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    2068   ac_prog_rejected=no
    2069   for ac_dir in $PATH; do
    2070     test -z "$ac_dir" && ac_dir=.
    2071     if test -f $ac_dir/$ac_word; then
    2072       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    2073         ac_prog_rejected=yes
    2074         continue
    2075       fi
    2076       ac_cv_prog_CC="cc"
    2077       break
    2078     fi
    2079   done
    2080   IFS="$ac_save_ifs"
    2081 if test $ac_prog_rejected = yes; then
    2082   # We found a bogon in the path, so make sure we never use it.
    2083   set dummy $ac_cv_prog_CC
    2084   shift
    2085   if test $# -gt 0; then
    2086     # We chose a different compiler from the bogus one.
    2087     # However, it has the same basename, so the bogon will be chosen
    2088     # first if we set CC to just the basename; use the full file name.
    2089     shift
    2090     set dummy "$ac_dir/$ac_word" "$@"
    2091     shift
    2092     ac_cv_prog_CC="$@"
    2093   fi
    2094 fi
    2095 fi
    2096 fi
    2097 CC="$ac_cv_prog_CC"
    2098 if test -n "$CC"; then
    2099   echo "$ac_t""$CC" 1>&6
    2100 else
    2101   echo "$ac_t""no" 1>&6
    2102 fi
    2103 
    2104   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    2105 fi
    2106 
    2107 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2108 echo "configure:2109: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    2109 
    2110 ac_ext=c
    2111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    2112 ac_cpp='$CPP $CPPFLAGS'
    2113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    2114 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    2115 cross_compiling=$ac_cv_prog_cc_cross
    2116 
    2117 cat > conftest.$ac_ext <<EOF
    2118 #line 2119 "configure"
    2119 #include "confdefs.h"
    2120 main(){return(0);}
    2121 EOF
    2122 if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2123   ac_cv_prog_cc_works=yes
    2124   # If we can't run a trivial program, we are probably using a cross compiler.
    2125   if (./conftest; exit) 2>/dev/null; then
    2126     ac_cv_prog_cc_cross=no
    2127   else
    2128     ac_cv_prog_cc_cross=yes
    2129   fi
    2130 else
    2131   echo "configure: failed program was:" >&5
    2132   cat conftest.$ac_ext >&5
    2133   ac_cv_prog_cc_works=no
    2134 fi
    2135 rm -fr conftest*
    2136 
    2137 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    2138 if test $ac_cv_prog_cc_works = no; then
    2139   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    2140 fi
    2141 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2142 echo "configure:2143: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    2143 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    2144 cross_compiling=$ac_cv_prog_cc_cross
    2145 
    2146 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    2147 echo "configure:2148: checking whether we are using GNU C" >&5
    2148 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    2149   echo $ac_n "(cached) $ac_c" 1>&6
    2150 else
    2151   cat > conftest.c <<EOF
    2152 #ifdef __GNUC__
    2153   yes;
    2154 #endif
    2155 EOF
    2156 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    2157   ac_cv_prog_gcc=yes
    2158 else
    2159   ac_cv_prog_gcc=no
    2160 fi
    2161 fi
    2162 
    2163 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    2164 
    2165 if test $ac_cv_prog_gcc = yes; then
    2166   GCC=yes
    2167   ac_test_CFLAGS="${CFLAGS+set}"
    2168   ac_save_CFLAGS="$CFLAGS"
    2169   CFLAGS=
    2170   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    2171 echo "configure:2172: checking whether ${CC-cc} accepts -g" >&5
    2172 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    2173   echo $ac_n "(cached) $ac_c" 1>&6
    2174 else
    2175   echo 'void f(){}' > conftest.c
    2176 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
    2177   ac_cv_prog_cc_g=yes
    2178 else
    2179   ac_cv_prog_cc_g=no
    2180 fi
    2181 rm -f conftest*
    2182 
    2183 fi
    2184 
    2185 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    2186   if test "$ac_test_CFLAGS" = set; then
    2187     CFLAGS="$ac_save_CFLAGS"
    2188   elif test $ac_cv_prog_cc_g = yes; then
    2189     CFLAGS="-g -O2"
    2190   else
    2191     CFLAGS="-O2"
    2192   fi
    2193 else
    2194   GCC=
    2195   test "${CFLAGS+set}" = set || CFLAGS="-g"
    2196 fi
    2197 
    21982122
    21992123for ac_func in strerror
    22002124do
    22012125echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2202 echo "configure:2203: checking for $ac_func" >&5
     2126echo "configure:2127: checking for $ac_func" >&5
    22032127if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    22042128  echo $ac_n "(cached) $ac_c" 1>&6
    22052129else
    22062130  cat > conftest.$ac_ext <<EOF
    2207 #line 2208 "configure"
     2131#line 2132 "configure"
    22082132#include "confdefs.h"
    22092133/* System header to define __stub macros and hopefully few prototypes,
     
    22282152; return 0; }
    22292153EOF
    2230 if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2154if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    22312155  rm -rf conftest*
    22322156  eval "ac_cv_func_$ac_func=yes"
     
    22562180
    22572181echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6
    2258 echo "configure:2259: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
     2182echo "configure:2183: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
    22592183if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then
    22602184  rtems_av_save_dir=`pwd`;
     
    22712195
    22722196echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6
    2273 echo "configure:2274: checking for Makefile.in in c/src/exec/rtems" >&5
     2197echo "configure:2198: checking for Makefile.in in c/src/exec/rtems" >&5
    22742198if test -d $srcdir/c/src/exec/rtems; then
    22752199  rtems_av_save_dir=`pwd`;
     
    22862210
    22872211echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6
    2288 echo "configure:2289: checking for Makefile.in in c/src/exec/sapi" >&5
     2212echo "configure:2213: checking for Makefile.in in c/src/exec/sapi" >&5
    22892213if test -d $srcdir/c/src/exec/sapi; then
    22902214  rtems_av_save_dir=`pwd`;
     
    23032227 
    23042228echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6
    2305 echo "configure:2306: checking for Makefile.in in c/src/exec/posix" >&5
     2229echo "configure:2230: checking for Makefile.in in c/src/exec/posix" >&5
    23062230if test -d $srcdir/c/src/exec/posix; then
    23072231  rtems_av_save_dir=`pwd`;
     
    23252249  if test -z "$rtems_bsp"; then
    23262250    echo $ac_n "checking for bsps""... $ac_c" 1>&6
    2327 echo "configure:2328: checking for bsps" >&5
     2251echo "configure:2252: checking for bsps" >&5
    23282252    files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
    23292253    for file in $files; do
     
    23722296       
    23732297echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir""... $ac_c" 1>&6
    2374 echo "configure:2375: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir" >&5
     2298echo "configure:2299: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir" >&5
    23752299if test -d $srcdir/c/src/lib/libbsp/$target_cpu/$bspdir; then
    23762300  rtems_av_save_dir=`pwd`;
     
    23952319
    23962320echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
    2397 echo "configure:2398: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
     2321echo "configure:2322: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
    23982322if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
    23992323  rtems_av_save_dir=`pwd`;
     
    24122336 
    24132337echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
    2414 echo "configure:2415: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
     2338echo "configure:2339: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
    24152339if test -d $srcdir/c/src/lib/start/$target_cpu; then
    24162340  rtems_av_save_dir=`pwd`;
     
    24542378# If the tests are enabled, then find all the test suite Makefiles
    24552379echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6
    2456 echo "configure:2457: checking if the test suites are enabled? " >&5
     2380echo "configure:2381: checking if the test suites are enabled? " >&5
    24572381tests_enabled=yes
    24582382# Check whether --enable-tests or --disable-tests was given.
     
    24732397
    24742398echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6
    2475 echo "configure:2476: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
     2399echo "configure:2400: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
    24762400if test -d $srcdir/c/src/tests/tools/$target_cpu; then
    24772401  rtems_av_save_dir=`pwd`;
     
    24902414   
    24912415echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
    2492 echo "configure:2493: checking for Makefile.in in c/src/tests/libtests" >&5
     2416echo "configure:2417: checking for Makefile.in in c/src/tests/libtests" >&5
    24932417if test -d $srcdir/c/src/tests/libtests; then
    24942418  rtems_av_save_dir=`pwd`;
     
    25052429   
    25062430echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
    2507 echo "configure:2508: checking for Makefile.in in c/src/tests/sptests" >&5
     2431echo "configure:2432: checking for Makefile.in in c/src/tests/sptests" >&5
    25082432if test -d $srcdir/c/src/tests/sptests; then
    25092433  rtems_av_save_dir=`pwd`;
     
    25202444   
    25212445echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
    2522 echo "configure:2523: checking for Makefile.in in c/src/tests/tmtests" >&5
     2446echo "configure:2447: checking for Makefile.in in c/src/tests/tmtests" >&5
    25232447if test -d $srcdir/c/src/tests/tmtests; then
    25242448  rtems_av_save_dir=`pwd`;
     
    25352459   
    25362460echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
    2537 echo "configure:2538: checking for Makefile.in in c/src/tests/mptests" >&5
     2461echo "configure:2462: checking for Makefile.in in c/src/tests/mptests" >&5
    25382462if test -d $srcdir/c/src/tests/mptests; then
    25392463  rtems_av_save_dir=`pwd`;
     
    25512475     
    25522476echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
    2553 echo "configure:2554: checking for Makefile.in in c/src/tests/psxtests" >&5
     2477echo "configure:2478: checking for Makefile.in in c/src/tests/psxtests" >&5
    25542478if test -d $srcdir/c/src/tests/psxtests; then
    25552479  rtems_av_save_dir=`pwd`;
     
    25692493# If the HWAPI is enabled, the find the HWAPI Makefiles
    25702494echo $ac_n "checking if the HWAPI is enabled? ""... $ac_c" 1>&6
    2571 echo "configure:2572: checking if the HWAPI is enabled? " >&5
     2495echo "configure:2496: checking if the HWAPI is enabled? " >&5
    25722496# Check whether --enable-hwapi or --disable-hwapi was given.
    25732497if test "${enable_hwapi+set}" = set; then
     
    25802504           
    25812505echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6
    2582 echo "configure:2583: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
     2506echo "configure:2507: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
    25832507if test -d $srcdir/c/src/lib/libhwapi/analog; then
    25842508  rtems_av_save_dir=`pwd`;
     
    25952519           
    25962520echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6
    2597 echo "configure:2598: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
     2521echo "configure:2522: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
    25982522if test -d $srcdir/c/src/lib/libhwapi/discrete; then
    25992523  rtems_av_save_dir=`pwd`;
     
    26102534           
    26112535echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6
    2612 echo "configure:2613: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
     2536echo "configure:2537: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
    26132537if test -d $srcdir/c/src/lib/libhwapi/drivers; then
    26142538  rtems_av_save_dir=`pwd`;
     
    26252549           
    26262550echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6
    2627 echo "configure:2628: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
     2551echo "configure:2552: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
    26282552if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then
    26292553  rtems_av_save_dir=`pwd`;
     
    26402564           
    26412565echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6
    2642 echo "configure:2643: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
     2566echo "configure:2567: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
    26432567if test -d $srcdir/c/src/lib/libhwapi/serial; then
    26442568  rtems_av_save_dir=`pwd`;
     
    26552579           
    26562580echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6
    2657 echo "configure:2658: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
     2581echo "configure:2582: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
    26582582if test -d $srcdir/c/src/lib/libhwapi/support; then
    26592583  rtems_av_save_dir=`pwd`;
     
    26702594           
    26712595echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6
    2672 echo "configure:2673: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
     2596echo "configure:2597: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
    26732597if test -d $srcdir/c/src/lib/libhwapi/wrapup; then
    26742598  rtems_av_save_dir=`pwd`;
     
    27132637
    27142638echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6
    2715 echo "configure:2716: checking for Makefile.in in c/build-tools" >&5
     2639echo "configure:2640: checking for Makefile.in in c/build-tools" >&5
    27162640if test -d $srcdir/c/build-tools; then
    27172641  rtems_av_save_dir=`pwd`;
     
    27282652
    27292653echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6
    2730 echo "configure:2731: checking for Makefile.in in make" >&5
     2654echo "configure:2655: checking for Makefile.in in make" >&5
    27312655if test -d $srcdir/make; then
    27322656  rtems_av_save_dir=`pwd`;
     
    27432667
    27442668echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
    2745 echo "configure:2746: checking for Makefile.in in c/src/lib/libmisc" >&5
     2669echo "configure:2670: checking for Makefile.in in c/src/lib/libmisc" >&5
    27462670if test -d $srcdir/c/src/lib/libmisc; then
    27472671  rtems_av_save_dir=`pwd`;
     
    27582682
    27592683echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
    2760 echo "configure:2761: checking for Makefile.in in c/src/tests/samples" >&5
     2684echo "configure:2685: checking for Makefile.in in c/src/tests/samples" >&5
    27612685if test -d $srcdir/c/src/tests/samples; then
    27622686  rtems_av_save_dir=`pwd`;
     
    29692893s%@M4@%$M4%g
    29702894s%@KSH@%$KSH%g
    2971 s%@CC@%$CC%g
    2972 s%@CXX@%$CXX%g
     2895s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
    29732896s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
    2974 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
    29752897s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
    29762898s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
     
    29802902s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g
    29812903s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g
     2904s%@CC@%$CC%g
    29822905s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g
    29832906s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g
Note: See TracChangeset for help on using the changeset viewer.