Changeset 0b76723 in rtems


Ignore:
Timestamp:
May 18, 1998, 4:36:09 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
38093c0
Parents:
158f2110
Message:

Support bsp_specs style building for linux and solaris. Improved C++
support.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure

    r158f2110 r0b76723  
    12911291        # override these settings
    12921292        RTEMS_HAS_POSIX_API=no
    1293         RTEMS_USE_GCC272=yes
    1294         RTEMS_LIBC_DIR=/usr
    12951293        ;;
    12961294  no_cpu-*rtems*)
     
    13031301        # override these settings
    13041302        RTEMS_HAS_POSIX_API=no
    1305         RTEMS_USE_GCC272=yes
    1306         RTEMS_LIBC_DIR=/usr
    13071303        ;;
    13081304  *)
    13091305        echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    1310 echo "configure:1311: checking rtems target cpu" >&5
     1306echo "configure:1307: checking rtems target cpu" >&5
    13111307target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    13121308echo "$ac_t""$target_cpu" 1>&6
     
    13271323# Is this a supported CPU?
    13281324echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
    1329 echo "configure:1330: checking if cpu $target_cpu is supported" >&5
     1325echo "configure:1326: checking if cpu $target_cpu is supported" >&5
    13301326if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
    13311327  echo "$ac_t""yes" 1>&6
     
    13491345set dummy gcc; ac_word=$2
    13501346echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1351 echo "configure:1352: checking for $ac_word" >&5
     1347echo "configure:1348: checking for $ac_word" >&5
    13521348if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    13531349  echo $ac_n "(cached) $ac_c" 1>&6
     
    13781374set dummy cc; ac_word=$2
    13791375echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1380 echo "configure:1381: checking for $ac_word" >&5
     1376echo "configure:1377: checking for $ac_word" >&5
    13811377if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    13821378  echo $ac_n "(cached) $ac_c" 1>&6
     
    14261422
    14271423echo $ac_n "checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1428 echo "configure:1429: checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1424echo "configure:1425: checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    14291425
    14301426ac_ext=c
     
    14361432
    14371433cat > conftest.$ac_ext <<EOF
    1438 #line 1439 "configure"
     1434#line 1435 "configure"
    14391435#include "confdefs.h"
    14401436main(){return(0);}
    14411437EOF
    1442 if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1438if { (eval echo configure:1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    14431439  rtems_cv_prog_cc_works=yes
    14441440  # If we can't run a trivial program, we are probably using a cross compiler.
     
    14601456fi
    14611457echo $ac_n "checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1462 echo "configure:1463: checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1458echo "configure:1459: checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    14631459echo "$ac_t""$rtems_cv_prog_cc_cross" 1>&6
    14641460
    14651461echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1466 echo "configure:1467: checking whether we are using GNU C" >&5
     1462echo "configure:1463: checking whether we are using GNU C" >&5
    14671463if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    14681464  echo $ac_n "(cached) $ac_c" 1>&6
     
    14731469#endif
    14741470EOF
    1475 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1471if { 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
    14761472  ac_cv_prog_gcc=yes
    14771473else
     
    14881484  CFLAGS=
    14891485  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1490 echo "configure:1491: checking whether ${CC-cc} accepts -g" >&5
     1486echo "configure:1487: checking whether ${CC-cc} accepts -g" >&5
    14911487if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    14921488  echo $ac_n "(cached) $ac_c" 1>&6
     
    15251521
    15261522
    1527 if test "$RTEMS_USE_GCC272" != "yes" ; then
    1528  
    15291523echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
    1530 echo "configure:1531: checking whether $CC_FOR_TARGET accepts -specs" >&5
     1524echo "configure:1525: checking whether $CC_FOR_TARGET accepts -specs" >&5
    15311525if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
    15321526  echo $ac_n "(cached) $ac_c" 1>&6
     
    15441538
    15451539echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
    1546   if test "$rtems_cv_gcc_specs" = "no"; then
    1547     echo "configure: warning: *** disabling --enable-gcc28" 1>&2
    1548      RTEMS_USE_GCC272=yes
    1549   fi
    1550 fi
    1551 
    15521540 
    15531541
    15541542echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
    1555 echo "configure:1556: checking whether $CC_FOR_TARGET accepts --pipe" >&5
     1543echo "configure:1544: checking whether $CC_FOR_TARGET accepts --pipe" >&5
    15561544if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
    15571545  echo $ac_n "(cached) $ac_c" 1>&6
     
    15781566
    15791567
     1568if 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
     1573fi
     1574
    15801575if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
    15811576  CXX="$program_prefix"g++
     
    15861581set dummy $ac_prog; ac_word=$2
    15871582echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1588 echo "configure:1589: checking for $ac_word" >&5
     1583echo "configure:1584: checking for $ac_word" >&5
    15891584if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    15901585  echo $ac_n "(cached) $ac_c" 1>&6
     
    16171612
    16181613echo $ac_n "checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1619 echo "configure:1620: checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1614echo "configure:1615: checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    16201615
    16211616ac_ext=C
     
    16281623
    16291624cat > conftest.$ac_ext <<EOF
    1630 #line 1631 "configure"
     1625#line 1626 "configure"
    16311626#include "confdefs.h"
    16321627main(){return(0);}
    16331628EOF
    1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1629if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    16351630  rtems_cv_prog_cxx_works=yes
    16361631  # If we can't run a trivial program, we are probably using a cross compiler.
     
    16461641fi
    16471642rm -fr conftest*
    1648 if test "$rtems_cv_prog_cxx_works" = "no"; then
    1649     cat > conftest.$ac_ext <<EOF
    1650 #line 1651 "configure"
    1651 #include "confdefs.h"
    1652  main(){return(0);}
    1653 EOF
    1654 if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1655   rtems_cv_prog_cxx_works=yes
    1656   # If we can't run a trivial program, we are probably using a cross compiler.
    1657   if (./conftest; exit) 2>/dev/null; then
    1658     rtems_cv_prog_cxx_cross=no
    1659   else
    1660     rtems_cv_prog_cxx_cross=yes
    1661   fi
    1662 else
    1663   echo "configure: failed program was:" >&5
    1664   cat conftest.$ac_ext >&5
    1665   rtems_cv_prog_cxx_works=no
    1666 fi
    1667 rm -fr conftest*
    1668 fi
    16691643ac_ext=c
    16701644# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     
    16791653fi
    16801654echo $ac_n "checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1681 echo "configure:1682: checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1655echo "configure:1656: checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    16821656echo "$ac_t""$rtems_cv_prog_cxx_cross" 1>&6
    16831657
    16841658echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1685 echo "configure:1686: checking whether we are using GNU C++" >&5
     1659echo "configure:1660: checking whether we are using GNU C++" >&5
    16861660if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    16871661  echo $ac_n "(cached) $ac_c" 1>&6
     
    16921666#endif
    16931667EOF
    1694 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1668if { 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
    16951669  ac_cv_prog_gxx=yes
    16961670else
     
    17071681  CXXFLAGS=
    17081682  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1709 echo "configure:1710: checking whether ${CXX-g++} accepts -g" >&5
     1683echo "configure:1684: checking whether ${CXX-g++} accepts -g" >&5
    17101684if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    17111685  echo $ac_n "(cached) $ac_c" 1>&6
     
    17381712unset ac_cv_prog_gxx
    17391713
     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
    17401721  # Extract the first word of ""$program_prefix"g++", so it can be a program name with args.
    17411722set dummy "$program_prefix"g++; ac_word=$2
    17421723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1743 echo "configure:1744: checking for $ac_word" >&5
     1724echo "configure:1725: checking for $ac_word" >&5
    17441725if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
    17451726  echo $ac_n "(cached) $ac_c" 1>&6
     
    17861767set dummy "$program_prefix"gcc; ac_word=$2
    17871768echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1788 echo "configure:1789: checking for $ac_word" >&5
     1769echo "configure:1770: checking for $ac_word" >&5
    17891770if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
    17901771  echo $ac_n "(cached) $ac_c" 1>&6
     
    18191800set dummy "$program_prefix"ar; ac_word=$2
    18201801echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1821 echo "configure:1822: checking for $ac_word" >&5
     1802echo "configure:1803: checking for $ac_word" >&5
    18221803if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    18231804  echo $ac_n "(cached) $ac_c" 1>&6
     
    18511832set dummy "$program_prefix"as; ac_word=$2
    18521833echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1853 echo "configure:1854: checking for $ac_word" >&5
     1834echo "configure:1835: checking for $ac_word" >&5
    18541835if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    18551836  echo $ac_n "(cached) $ac_c" 1>&6
     
    18831864set dummy "$program_prefix"nm; ac_word=$2
    18841865echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1885 echo "configure:1886: checking for $ac_word" >&5
     1866echo "configure:1867: checking for $ac_word" >&5
    18861867if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    18871868  echo $ac_n "(cached) $ac_c" 1>&6
     
    19151896set dummy "$program_prefix"ld; ac_word=$2
    19161897echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1917 echo "configure:1918: checking for $ac_word" >&5
     1898echo "configure:1899: checking for $ac_word" >&5
    19181899if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    19191900  echo $ac_n "(cached) $ac_c" 1>&6
     
    19481929set dummy "$program_prefix"ranlib; ac_word=$2
    19491930echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1950 echo "configure:1951: checking for $ac_word" >&5
     1931echo "configure:1932: checking for $ac_word" >&5
    19511932if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    19521933  echo $ac_n "(cached) $ac_c" 1>&6
     
    19811962set dummy "$program_prefix"objcopy; ac_word=$2
    19821963echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1983 echo "configure:1984: checking for $ac_word" >&5
     1964echo "configure:1965: checking for $ac_word" >&5
    19841965if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    19851966  echo $ac_n "(cached) $ac_c" 1>&6
     
    20131994set dummy "$program_prefix"size; ac_word=$2
    20141995echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2015 echo "configure:2016: checking for $ac_word" >&5
     1996echo "configure:1997: checking for $ac_word" >&5
    20161997if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    20171998  echo $ac_n "(cached) $ac_c" 1>&6
     
    20482029set dummy gcc; ac_word=$2
    20492030echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2050 echo "configure:2051: checking for $ac_word" >&5
     2031echo "configure:2032: checking for $ac_word" >&5
    20512032if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    20522033  echo $ac_n "(cached) $ac_c" 1>&6
     
    20772058set dummy cc; ac_word=$2
    20782059echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2079 echo "configure:2080: checking for $ac_word" >&5
     2060echo "configure:2061: checking for $ac_word" >&5
    20802061if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    20812062  echo $ac_n "(cached) $ac_c" 1>&6
     
    21252106
    21262107echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2127 echo "configure:2128: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2108echo "configure:2109: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    21282109
    21292110ac_ext=c
     
    21352116
    21362117cat > conftest.$ac_ext <<EOF
    2137 #line 2138 "configure"
     2118#line 2119 "configure"
    21382119#include "confdefs.h"
    21392120main(){return(0);}
    21402121EOF
    2141 if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2122if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    21422123  ac_cv_prog_cc_works=yes
    21432124  # If we can't run a trivial program, we are probably using a cross compiler.
     
    21592140fi
    21602141echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2161 echo "configure:2162: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2142echo "configure:2143: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    21622143echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    21632144cross_compiling=$ac_cv_prog_cc_cross
    21642145
    21652146echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    2166 echo "configure:2167: checking whether we are using GNU C" >&5
     2147echo "configure:2148: checking whether we are using GNU C" >&5
    21672148if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    21682149  echo $ac_n "(cached) $ac_c" 1>&6
     
    21732154#endif
    21742155EOF
    2175 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     2156if { 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
    21762157  ac_cv_prog_gcc=yes
    21772158else
     
    21882169  CFLAGS=
    21892170  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    2190 echo "configure:2191: checking whether ${CC-cc} accepts -g" >&5
     2171echo "configure:2172: checking whether ${CC-cc} accepts -g" >&5
    21912172if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    21922173  echo $ac_n "(cached) $ac_c" 1>&6
     
    22192200do
    22202201echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2221 echo "configure:2222: checking for $ac_func" >&5
     2202echo "configure:2203: checking for $ac_func" >&5
    22222203if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    22232204  echo $ac_n "(cached) $ac_c" 1>&6
    22242205else
    22252206  cat > conftest.$ac_ext <<EOF
    2226 #line 2227 "configure"
     2207#line 2208 "configure"
    22272208#include "confdefs.h"
    22282209/* System header to define __stub macros and hopefully few prototypes,
     
    22472228; return 0; }
    22482229EOF
    2249 if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2230if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    22502231  rm -rf conftest*
    22512232  eval "ac_cv_func_$ac_func=yes"
     
    22752256
    22762257echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6
    2277 echo "configure:2278: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
     2258echo "configure:2259: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
    22782259if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then
    22792260  rtems_av_save_dir=`pwd`;
     
    22902271
    22912272echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6
    2292 echo "configure:2293: checking for Makefile.in in c/src/exec/rtems" >&5
     2273echo "configure:2274: checking for Makefile.in in c/src/exec/rtems" >&5
    22932274if test -d $srcdir/c/src/exec/rtems; then
    22942275  rtems_av_save_dir=`pwd`;
     
    23052286
    23062287echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6
    2307 echo "configure:2308: checking for Makefile.in in c/src/exec/sapi" >&5
     2288echo "configure:2289: checking for Makefile.in in c/src/exec/sapi" >&5
    23082289if test -d $srcdir/c/src/exec/sapi; then
    23092290  rtems_av_save_dir=`pwd`;
     
    23222303 
    23232304echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6
    2324 echo "configure:2325: checking for Makefile.in in c/src/exec/posix" >&5
     2305echo "configure:2306: checking for Makefile.in in c/src/exec/posix" >&5
    23252306if test -d $srcdir/c/src/exec/posix; then
    23262307  rtems_av_save_dir=`pwd`;
     
    23442325  if test -z "$rtems_bsp"; then
    23452326    echo $ac_n "checking for bsps""... $ac_c" 1>&6
    2346 echo "configure:2347: checking for bsps" >&5
     2327echo "configure:2328: checking for bsps" >&5
    23472328    files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
    23482329    for file in $files; do
     
    23912372       
    23922373echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir""... $ac_c" 1>&6
    2393 echo "configure:2394: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir" >&5
     2374echo "configure:2375: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir" >&5
    23942375if test -d $srcdir/c/src/lib/libbsp/$target_cpu/$bspdir; then
    23952376  rtems_av_save_dir=`pwd`;
     
    24142395
    24152396echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
    2416 echo "configure:2417: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
     2397echo "configure:2398: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
    24172398if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
    24182399  rtems_av_save_dir=`pwd`;
     
    24312412 
    24322413echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
    2433 echo "configure:2434: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
     2414echo "configure:2415: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
    24342415if test -d $srcdir/c/src/lib/start/$target_cpu; then
    24352416  rtems_av_save_dir=`pwd`;
     
    24732454# If the tests are enabled, then find all the test suite Makefiles
    24742455echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6
    2475 echo "configure:2476: checking if the test suites are enabled? " >&5
     2456echo "configure:2457: checking if the test suites are enabled? " >&5
    24762457tests_enabled=yes
    24772458# Check whether --enable-tests or --disable-tests was given.
     
    24922473
    24932474echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6
    2494 echo "configure:2495: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
     2475echo "configure:2476: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
    24952476if test -d $srcdir/c/src/tests/tools/$target_cpu; then
    24962477  rtems_av_save_dir=`pwd`;
     
    25092490   
    25102491echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
    2511 echo "configure:2512: checking for Makefile.in in c/src/tests/libtests" >&5
     2492echo "configure:2493: checking for Makefile.in in c/src/tests/libtests" >&5
    25122493if test -d $srcdir/c/src/tests/libtests; then
    25132494  rtems_av_save_dir=`pwd`;
     
    25242505   
    25252506echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
    2526 echo "configure:2527: checking for Makefile.in in c/src/tests/sptests" >&5
     2507echo "configure:2508: checking for Makefile.in in c/src/tests/sptests" >&5
    25272508if test -d $srcdir/c/src/tests/sptests; then
    25282509  rtems_av_save_dir=`pwd`;
     
    25392520   
    25402521echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
    2541 echo "configure:2542: checking for Makefile.in in c/src/tests/tmtests" >&5
     2522echo "configure:2523: checking for Makefile.in in c/src/tests/tmtests" >&5
    25422523if test -d $srcdir/c/src/tests/tmtests; then
    25432524  rtems_av_save_dir=`pwd`;
     
    25542535   
    25552536echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
    2556 echo "configure:2557: checking for Makefile.in in c/src/tests/mptests" >&5
     2537echo "configure:2538: checking for Makefile.in in c/src/tests/mptests" >&5
    25572538if test -d $srcdir/c/src/tests/mptests; then
    25582539  rtems_av_save_dir=`pwd`;
     
    25702551     
    25712552echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
    2572 echo "configure:2573: checking for Makefile.in in c/src/tests/psxtests" >&5
     2553echo "configure:2554: checking for Makefile.in in c/src/tests/psxtests" >&5
    25732554if test -d $srcdir/c/src/tests/psxtests; then
    25742555  rtems_av_save_dir=`pwd`;
     
    25882569# If the HWAPI is enabled, the find the HWAPI Makefiles
    25892570echo $ac_n "checking if the HWAPI is enabled? ""... $ac_c" 1>&6
    2590 echo "configure:2591: checking if the HWAPI is enabled? " >&5
     2571echo "configure:2572: checking if the HWAPI is enabled? " >&5
    25912572# Check whether --enable-hwapi or --disable-hwapi was given.
    25922573if test "${enable_hwapi+set}" = set; then
     
    25992580           
    26002581echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6
    2601 echo "configure:2602: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
     2582echo "configure:2583: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
    26022583if test -d $srcdir/c/src/lib/libhwapi/analog; then
    26032584  rtems_av_save_dir=`pwd`;
     
    26142595           
    26152596echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6
    2616 echo "configure:2617: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
     2597echo "configure:2598: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
    26172598if test -d $srcdir/c/src/lib/libhwapi/discrete; then
    26182599  rtems_av_save_dir=`pwd`;
     
    26292610           
    26302611echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6
    2631 echo "configure:2632: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
     2612echo "configure:2613: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
    26322613if test -d $srcdir/c/src/lib/libhwapi/drivers; then
    26332614  rtems_av_save_dir=`pwd`;
     
    26442625           
    26452626echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6
    2646 echo "configure:2647: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
     2627echo "configure:2628: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
    26472628if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then
    26482629  rtems_av_save_dir=`pwd`;
     
    26592640           
    26602641echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6
    2661 echo "configure:2662: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
     2642echo "configure:2643: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
    26622643if test -d $srcdir/c/src/lib/libhwapi/serial; then
    26632644  rtems_av_save_dir=`pwd`;
     
    26742655           
    26752656echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6
    2676 echo "configure:2677: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
     2657echo "configure:2658: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
    26772658if test -d $srcdir/c/src/lib/libhwapi/support; then
    26782659  rtems_av_save_dir=`pwd`;
     
    26892670           
    26902671echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6
    2691 echo "configure:2692: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
     2672echo "configure:2673: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
    26922673if test -d $srcdir/c/src/lib/libhwapi/wrapup; then
    26932674  rtems_av_save_dir=`pwd`;
     
    27282709
    27292710
     2711
    27302712# pick up all the Makefiles in required parts of the tree
    27312713
    27322714echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6
    2733 echo "configure:2734: checking for Makefile.in in c/build-tools" >&5
     2715echo "configure:2716: checking for Makefile.in in c/build-tools" >&5
    27342716if test -d $srcdir/c/build-tools; then
    27352717  rtems_av_save_dir=`pwd`;
     
    27462728
    27472729echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6
    2748 echo "configure:2749: checking for Makefile.in in make" >&5
     2730echo "configure:2731: checking for Makefile.in in make" >&5
    27492731if test -d $srcdir/make; then
    27502732  rtems_av_save_dir=`pwd`;
     
    27612743
    27622744echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
    2763 echo "configure:2764: checking for Makefile.in in c/src/lib/libmisc" >&5
     2745echo "configure:2746: checking for Makefile.in in c/src/lib/libmisc" >&5
    27642746if test -d $srcdir/c/src/lib/libmisc; then
    27652747  rtems_av_save_dir=`pwd`;
     
    27762758
    27772759echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
    2778 echo "configure:2779: checking for Makefile.in in c/src/tests/samples" >&5
     2760echo "configure:2761: checking for Makefile.in in c/src/tests/samples" >&5
    27792761if test -d $srcdir/c/src/tests/samples; then
    27802762  rtems_av_save_dir=`pwd`;
     
    29982980s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g
    29992981s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g
     2982s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g
    30002983s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g
    30012984s%@RTEMS_HOST@%$RTEMS_HOST%g
  • configure.in

    r158f2110 r0b76723  
    135135        # override these settings
    136136        RTEMS_HAS_POSIX_API=no
    137         RTEMS_USE_GCC272=yes
    138         RTEMS_LIBC_DIR=/usr
    139137        ;;
    140138  no_cpu-*rtems*)
     
    147145        # override these settings
    148146        RTEMS_HAS_POSIX_API=no
    149         RTEMS_USE_GCC272=yes
    150         RTEMS_LIBC_DIR=/usr
    151147        ;;
    152148  *)
     
    183179CC="$program_prefix"gcc
    184180RTEMS_PROG_CC
     181dnl check if the compiler supports --specs
     182RTEMS_GCC_SPECS
     183dnl check if the target compiler may use --pipe
     184RTEMS_GCC_PIPE
    185185
    186186dnl check if the compiler supports --specs if gcc28 is requested
    187187if test "$RTEMS_USE_GCC272" != "yes" ; then
    188   RTEMS_GCC_SPECS
    189188  if test "$rtems_cv_gcc_specs" = "no"; then
    190189    AC_MSG_WARN([*** disabling --enable-gcc28])
     
    193192fi
    194193
    195 dnl check if the target compiler may use --pipe
    196 RTEMS_GCC_PIPE
    197 
    198194dnl check for g++
    199195if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
    200196  CXX="$program_prefix"g++
    201197  RTEMS_PROG_CXX
     198  if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
     199    AC_MSG_ERROR([***]
     200     [Inconsistency in compiler configuration:]
     201     [Target C compiler and Target C++ compiler]
     202     [must both ether be cross compilers or native compilers]
     203     [Hint: LD_LIBRARY_PATH ?] )
     204  fi
    202205  AC_PATH_PROG(CXX_FOR_TARGET,"$program_prefix"g++,no)
    203206else
     
    367370)
    368371
     372AC_SUBST(rtems_cv_prog_cc_cross)
    369373AC_SUBST(RTEMS_BSP_LIST)
    370374AC_SUBST(RTEMS_HOST)
Note: See TracChangeset for help on using the changeset viewer.