Changeset a719382 in rtems
- Timestamp:
- 08/30/99 18:38:26 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- d9c2e9f5
- Parents:
- 6cc786f
- Location:
- c/src
- Files:
-
- 17 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/Makefile.am
r6cc786f ra719382 6 6 ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal 7 7 8 SUBDIRS= make exec lib tests8 SUBDIRS= make exec lib librtems++ tests 9 9 10 10 rtems_bspdir=$(prefix)/@RTEMS_BSP@ -
c/src/Makefile.in
r6cc786f ra719382 86 86 ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal 87 87 88 SUBDIRS = make exec lib tests88 SUBDIRS = make exec lib librtems++ tests 89 89 90 90 rtems_bspdir = $(prefix)/@RTEMS_BSP@ -
c/src/configure
r6cc786f ra719382 1017 1017 subdirs="make exec lib" 1018 1018 1019 subdirs="make exec lib tests" 1019 subdirs="make exec lib librtems++" 1020 1021 subdirs="make exec lib librtems++ tests" 1020 1022 1021 1023 … … 1342 1344 done 1343 1345 1344 for ac_config_dir in make exec lib tests; do1346 for ac_config_dir in make exec lib librtems++ tests; do 1345 1347 1346 1348 # Do not complain, so a configure script can configure whichever -
c/src/configure.in
r6cc786f ra719382 24 24 AC_CONFIG_SUBDIRS(exec) 25 25 AC_CONFIG_SUBDIRS(lib) 26 AC_CONFIG_SUBDIRS(librtems++) 26 27 AC_CONFIG_SUBDIRS(tests) 27 28 -
c/src/lib/Makefile.in
r6cc786f ra719382 35 35 LIBRDBG = $(LIBRDBG_$(HAS_NETWORKING)_$(HAS_RDBG)_V) 36 36 37 # We only build the rtems++ library if HAS_CPLUSPLUS was defined38 LIBRTEMSCPLUSPLUS_yes_V = librtems++39 LIBRTEMSCPLUSPLUS = $(LIBRTEMSCPLUSPLUS_$(HAS_CPLUSPLUS)_V)40 41 37 # General Hardware API library 42 38 LIBHWAPI = $(wildcard libhwapi) -
c/src/lib/aclocal.m4
r6cc786f ra719382 501 501 fi 502 502 ]) 503 ])504 505 dnl506 dnl $Id$507 dnl508 dnl Check for target g++509 dnl510 dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de)511 dnl Completely reworked512 513 AC_DEFUN(RTEMS_PROG_CXX,514 [515 AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl516 AC_BEFORE([$0], [AC_PROG_CXX])dnl517 AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl518 519 dnl Only accept g++ and c++520 dnl NOTE: This might be too restrictive for native compilation521 AC_PATH_PROGS(CXX_FOR_TARGET, "$program_prefix"g++ "$program_prefix"c++)522 test -z "$CXX_FOR_TARGET" \523 && AC_MSG_ERROR([no acceptable c++ found in \$PATH])524 525 dnl backup526 rtems_save_CXX=$CXX527 rtems_save_CXXFLAGS=$CXXFLAGS528 529 dnl temporarily set CXX530 CXX=$CXX_FOR_TARGET531 532 AC_PROG_CXX_WORKS533 AC_PROG_CXX_GNU534 535 if test $ac_cv_prog_gxx = yes; then536 GXX=yes537 dnl Check whether -g works, even if CXXFLAGS is set, in case the package538 dnl plays around with CXXFLAGS (such as to build both debugging and539 dnl normal versions of a library), tasteless as that idea is.540 ac_test_CXXFLAGS="${CXXFLAGS+set}"541 ac_save_CXXFLAGS="$CXXFLAGS"542 CXXFLAGS=543 AC_PROG_CXX_G544 if test "$ac_test_CXXFLAGS" = set; then545 CXXFLAGS="$ac_save_CXXFLAGS"546 elif test $ac_cv_prog_cxx_g = yes; then547 CXXFLAGS="-g -O2"548 else549 CXXFLAGS="-O2"550 fi551 else552 GXX=553 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"554 fi555 556 rtems_cv_prog_gxx=$ac_cv_prog_gxx557 rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g558 rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works559 rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross560 561 CXX=$rtems_save_CXX562 CXXFLAGS=$rtems_save_CXXFLAGS563 564 dnl restore initial values565 unset ac_cv_prog_gxx566 unset ac_cv_prog_cc_g567 unset ac_cv_prog_cxx_works568 unset ac_cv_prog_cxx_cross569 ])570 571 AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET,572 [573 RTEMS_PROG_CXX574 if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then575 AC_MSG_ERROR([***]576 [Inconsistency in compiler configuration:]577 [Target C compiler and Target C++ compiler]578 [must both either be cross compilers or native compilers]579 [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )580 fi581 503 ]) 582 504 … … 812 734 dnl $Id$ 813 735 dnl 814 AC_DEFUN(RTEMS_CHECK_CXX,815 [dnl816 AC_REQUIRE([RTEMS_CHECK_CPU])dnl817 AC_REQUIRE([RTEMS_PROG_CXX_FOR_TARGET])dnl818 AC_CACHE_CHECK([whether to build rtems++],819 rtems_cv_HAS_CPLUSPLUS,820 [ if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then821 if test -n "$CXX_FOR_TARGET"; then822 rtems_cv_HAS_CPLUSPLUS="yes"823 else824 rtems_cv_HAS_CPLUSPLUS="no"825 fi826 else827 rtems_cv_HAS_CPLUSPLUS="no"828 fi])829 HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS";830 AC_SUBST(HAS_CPLUSPLUS)dnl831 ])832 833 dnl $Id$834 dnl835 736 AC_DEFUN(RTEMS_CHECK_NETWORKING, 836 737 [dnl -
c/src/lib/configure
r6cc786f ra719382 1246 1246 1247 1247 1248 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then1249 1250 1251 1252 for ac_prog in "$program_prefix"g++ "$program_prefix"c++1253 do1254 # Extract the first word of "$ac_prog", so it can be a program name with args.1255 set dummy $ac_prog; ac_word=$21256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61257 echo "configure:1258: checking for $ac_word" >&51258 if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then1259 echo $ac_n "(cached) $ac_c" 1>&61260 else1261 case "$CXX_FOR_TARGET" in1262 /*)1263 ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.1264 ;;1265 ?:/*)1266 ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path.1267 ;;1268 *)1269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"1270 ac_dummy="$PATH"1271 for ac_dir in $ac_dummy; do1272 test -z "$ac_dir" && ac_dir=.1273 if test -f $ac_dir/$ac_word; then1274 ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"1275 break1276 fi1277 done1278 IFS="$ac_save_ifs"1279 ;;1280 esac1281 fi1282 CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"1283 if test -n "$CXX_FOR_TARGET"; then1284 echo "$ac_t""$CXX_FOR_TARGET" 1>&61285 else1286 echo "$ac_t""no" 1>&61287 fi1288 1289 test -n "$CXX_FOR_TARGET" && break1290 done1291 1292 test -z "$CXX_FOR_TARGET" \1293 && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }1294 1295 rtems_save_CXX=$CXX1296 rtems_save_CXXFLAGS=$CXXFLAGS1297 1298 CXX=$CXX_FOR_TARGET1299 1300 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&61301 echo "configure:1302: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&51302 1303 ac_ext=C1304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.1305 ac_cpp='$CXXCPP $CPPFLAGS'1306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'1307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1308 cross_compiling=$ac_cv_prog_cxx_cross1309 1310 cat > conftest.$ac_ext << EOF1311 1312 #line 1313 "configure"1313 #include "confdefs.h"1314 1315 int main(){return(0);}1316 EOF1317 if { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1318 ac_cv_prog_cxx_works=yes1319 # If we can't run a trivial program, we are probably using a cross compiler.1320 if (./conftest; exit) 2>/dev/null; then1321 ac_cv_prog_cxx_cross=no1322 else1323 ac_cv_prog_cxx_cross=yes1324 fi1325 else1326 echo "configure: failed program was:" >&51327 cat conftest.$ac_ext >&51328 ac_cv_prog_cxx_works=no1329 fi1330 rm -fr conftest*1331 ac_ext=c1332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.1333 ac_cpp='$CPP $CPPFLAGS'1334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'1335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1336 cross_compiling=$ac_cv_prog_cc_cross1337 1338 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&61339 if test $ac_cv_prog_cxx_works = no; then1340 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }1341 fi1342 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&61343 echo "configure:1344: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51344 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&61345 cross_compiling=$ac_cv_prog_cxx_cross1346 1347 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&61348 echo "configure:1349: checking whether we are using GNU C++" >&51349 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then1350 echo $ac_n "(cached) $ac_c" 1>&61351 else1352 cat > conftest.C <<EOF1353 #ifdef __GNUC__1354 yes;1355 #endif1356 EOF1357 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1358 ac_cv_prog_gxx=yes1359 else1360 ac_cv_prog_gxx=no1361 fi1362 fi1363 1364 echo "$ac_t""$ac_cv_prog_gxx" 1>&61365 1366 if test $ac_cv_prog_gxx = yes; then1367 GXX=yes1368 ac_test_CXXFLAGS="${CXXFLAGS+set}"1369 ac_save_CXXFLAGS="$CXXFLAGS"1370 CXXFLAGS=1371 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&61372 echo "configure:1373: checking whether ${CXX-g++} accepts -g" >&51373 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then1374 echo $ac_n "(cached) $ac_c" 1>&61375 else1376 echo 'void f(){}' > conftest.cc1377 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then1378 ac_cv_prog_cxx_g=yes1379 else1380 ac_cv_prog_cxx_g=no1381 fi1382 rm -f conftest*1383 1384 fi1385 1386 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&61387 if test "$ac_test_CXXFLAGS" = set; then1388 CXXFLAGS="$ac_save_CXXFLAGS"1389 elif test $ac_cv_prog_cxx_g = yes; then1390 CXXFLAGS="-g -O2"1391 else1392 CXXFLAGS="-O2"1393 fi1394 else1395 GXX=1396 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"1397 fi1398 1399 rtems_cv_prog_gxx=$ac_cv_prog_gxx1400 rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g1401 rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works1402 rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross1403 1404 CXX=$rtems_save_CXX1405 CXXFLAGS=$rtems_save_CXXFLAGS1406 1407 unset ac_cv_prog_gxx1408 unset ac_cv_prog_cc_g1409 unset ac_cv_prog_cxx_works1410 unset ac_cv_prog_cxx_cross1411 1412 if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then1413 { echo "configure: error: ***1414 Inconsistency in compiler configuration:1415 Target C compiler and Target C++ compiler1416 must both either be cross compilers or native compilers1417 Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; }1418 fi1419 1420 fi1421 1422 1248 1423 1249 1424 1250 echo $ac_n "checking target's ar""... $ac_c" 1>&6 1425 echo "configure:1 426: checking target's ar" >&51251 echo "configure:1252: checking target's ar" >&5 1426 1252 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then 1427 1253 echo $ac_n "(cached) $ac_c" 1>&6 … … 1456 1282 # intends 1457 1283 echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1458 echo "configure:1 459: checking whether environment variable AR_FOR_TARGET is an absolute path" >&51284 echo "configure:1285: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 1459 1285 case "$AR_FOR_TARGET" in 1460 1286 /*) # valid … … 1473 1299 set dummy "$program_prefix"ar; ac_word=$2 1474 1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1475 echo "configure:1 476: checking for $ac_word" >&51301 echo "configure:1302: checking for $ac_word" >&5 1476 1302 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then 1477 1303 echo $ac_n "(cached) $ac_c" 1>&6 … … 1510 1336 1511 1337 echo $ac_n "checking target's as""... $ac_c" 1>&6 1512 echo "configure:1 513: checking target's as" >&51338 echo "configure:1339: checking target's as" >&5 1513 1339 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then 1514 1340 echo $ac_n "(cached) $ac_c" 1>&6 … … 1543 1369 # intends 1544 1370 echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1545 echo "configure:1 546: checking whether environment variable AS_FOR_TARGET is an absolute path" >&51371 echo "configure:1372: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 1546 1372 case "$AS_FOR_TARGET" in 1547 1373 /*) # valid … … 1560 1386 set dummy "$program_prefix"as; ac_word=$2 1561 1387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1562 echo "configure:1 563: checking for $ac_word" >&51388 echo "configure:1389: checking for $ac_word" >&5 1563 1389 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then 1564 1390 echo $ac_n "(cached) $ac_c" 1>&6 … … 1597 1423 1598 1424 echo $ac_n "checking target's ld""... $ac_c" 1>&6 1599 echo "configure:1 600: checking target's ld" >&51425 echo "configure:1426: checking target's ld" >&5 1600 1426 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then 1601 1427 echo $ac_n "(cached) $ac_c" 1>&6 … … 1630 1456 # intends 1631 1457 echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1632 echo "configure:1 633: checking whether environment variable LD_FOR_TARGET is an absolute path" >&51458 echo "configure:1459: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 1633 1459 case "$LD_FOR_TARGET" in 1634 1460 /*) # valid … … 1647 1473 set dummy "$program_prefix"ld; ac_word=$2 1648 1474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1649 echo "configure:1 650: checking for $ac_word" >&51475 echo "configure:1476: checking for $ac_word" >&5 1650 1476 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then 1651 1477 echo $ac_n "(cached) $ac_c" 1>&6 … … 1684 1510 1685 1511 echo $ac_n "checking target's nm""... $ac_c" 1>&6 1686 echo "configure:1 687: checking target's nm" >&51512 echo "configure:1513: checking target's nm" >&5 1687 1513 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then 1688 1514 echo $ac_n "(cached) $ac_c" 1>&6 … … 1717 1543 # intends 1718 1544 echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1719 echo "configure:1 720: checking whether environment variable NM_FOR_TARGET is an absolute path" >&51545 echo "configure:1546: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 1720 1546 case "$NM_FOR_TARGET" in 1721 1547 /*) # valid … … 1734 1560 set dummy "$program_prefix"nm; ac_word=$2 1735 1561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1736 echo "configure:1 737: checking for $ac_word" >&51562 echo "configure:1563: checking for $ac_word" >&5 1737 1563 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then 1738 1564 echo $ac_n "(cached) $ac_c" 1>&6 … … 1772 1598 1773 1599 echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 1774 echo "configure:1 775: checking target's ranlib" >&51600 echo "configure:1601: checking target's ranlib" >&5 1775 1601 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then 1776 1602 echo $ac_n "(cached) $ac_c" 1>&6 … … 1805 1631 # intends 1806 1632 echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1807 echo "configure:1 808: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&51633 echo "configure:1634: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 1808 1634 case "$RANLIB_FOR_TARGET" in 1809 1635 /*) # valid … … 1822 1648 set dummy "$program_prefix"ranlib; ac_word=$2 1823 1649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1824 echo "configure:1 825: checking for $ac_word" >&51650 echo "configure:1651: checking for $ac_word" >&5 1825 1651 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then 1826 1652 echo $ac_n "(cached) $ac_c" 1>&6 … … 1861 1687 1862 1688 echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 1863 echo "configure:1 864: checking whether $AR_FOR_TARGET -s works" >&51689 echo "configure:1690: checking whether $AR_FOR_TARGET -s works" >&5 1864 1690 if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then 1865 1691 echo $ac_n "(cached) $ac_c" 1>&6 … … 1870 1696 { return b; } 1871 1697 EOF 1872 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1 873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \1873 && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1 874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \1698 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ 1699 && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ 1874 1700 && test -s conftest.a ; \ 1875 1701 then … … 1896 1722 1897 1723 echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 1898 echo "configure:1 899: checking target's objcopy" >&51724 echo "configure:1725: checking target's objcopy" >&5 1899 1725 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then 1900 1726 echo $ac_n "(cached) $ac_c" 1>&6 … … 1929 1755 # intends 1930 1756 echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1931 echo "configure:1 932: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&51757 echo "configure:1758: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 1932 1758 case "$OBJCOPY_FOR_TARGET" in 1933 1759 /*) # valid … … 1946 1772 set dummy "$program_prefix"objcopy; ac_word=$2 1947 1773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1948 echo "configure:1 949: checking for $ac_word" >&51774 echo "configure:1775: checking for $ac_word" >&5 1949 1775 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then 1950 1776 echo $ac_n "(cached) $ac_c" 1>&6 … … 1983 1809 1984 1810 echo $ac_n "checking target's size""... $ac_c" 1>&6 1985 echo "configure:1 986: checking target's size" >&51811 echo "configure:1812: checking target's size" >&5 1986 1812 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then 1987 1813 echo $ac_n "(cached) $ac_c" 1>&6 … … 2016 1842 # intends 2017 1843 echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2018 echo "configure: 2019: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&51844 echo "configure:1845: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 2019 1845 case "$SIZE_FOR_TARGET" in 2020 1846 /*) # valid … … 2033 1859 set dummy "$program_prefix"size; ac_word=$2 2034 1860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2035 echo "configure: 2036: checking for $ac_word" >&51861 echo "configure:1862: checking for $ac_word" >&5 2036 1862 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then 2037 1863 echo $ac_n "(cached) $ac_c" 1>&6 … … 2070 1896 2071 1897 echo $ac_n "checking target's strip""... $ac_c" 1>&6 2072 echo "configure: 2073: checking target's strip" >&51898 echo "configure:1899: checking target's strip" >&5 2073 1899 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then 2074 1900 echo $ac_n "(cached) $ac_c" 1>&6 … … 2103 1929 # intends 2104 1930 echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2105 echo "configure: 2106: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&51931 echo "configure:1932: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 2106 1932 case "$STRIP_FOR_TARGET" in 2107 1933 /*) # valid … … 2120 1946 set dummy "$program_prefix"strip; ac_word=$2 2121 1947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2122 echo "configure: 2123: checking for $ac_word" >&51948 echo "configure:1949: checking for $ac_word" >&5 2123 1949 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then 2124 1950 echo $ac_n "(cached) $ac_c" 1>&6 … … 2159 1985 if test "${target_cpu}" = "i386"; then 2160 1986 echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6 2161 echo "configure: 2162: checking for 16 bit mode assembler support" >&51987 echo "configure:1988: checking for 16 bit mode assembler support" >&5 2162 1988 if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then 2163 1989 echo $ac_n "(cached) $ac_c" 1>&6 … … 2169 1995 lgdt 0 2170 1996 EOF 2171 if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure: 2172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then1997 if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then 2172 1998 rtems_cv_prog_gas_code16=yes 2173 1999 else … … 2199 2025 2200 2026 echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6 2201 echo "configure:2 202: checking for make/custom/$RTEMS_BSP.cfg" >&52027 echo "configure:2028: checking for make/custom/$RTEMS_BSP.cfg" >&5 2202 2028 if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then 2203 2029 echo "$ac_t""yes" 1>&6 … … 2207 2033 2208 2034 echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6 2209 echo "configure:2 210: checking whether BSP supports multiprocessing" >&52035 echo "configure:2036: checking whether BSP supports multiprocessing" >&5 2210 2036 if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then 2211 2037 echo $ac_n "(cached) $ac_c" 1>&6 … … 2230 2056 2231 2057 2232 echo $ac_n "checking whether to build rtems++""... $ac_c" 1>&62233 echo "configure:2234: checking whether to build rtems++" >&52234 if eval "test \"`echo '$''{'rtems_cv_HAS_CPLUSPLUS'+set}'`\" = set"; then2235 echo $ac_n "(cached) $ac_c" 1>&62236 else2237 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then2238 if test -n "$CXX_FOR_TARGET"; then2239 rtems_cv_HAS_CPLUSPLUS="yes"2240 else2241 rtems_cv_HAS_CPLUSPLUS="no"2242 fi2243 else2244 rtems_cv_HAS_CPLUSPLUS="no"2245 fi2246 fi2247 2248 echo "$ac_t""$rtems_cv_HAS_CPLUSPLUS" 1>&62249 HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS";2250 2251 2058 echo $ac_n "checking whether BSP supports networking""... $ac_c" 1>&6 2252 echo "configure:2 253: checking whether BSP supports networking" >&52059 echo "configure:2060: checking whether BSP supports networking" >&5 2253 2060 if eval "test \"`echo '$''{'rtems_cv_HAS_NETWORKING'+set}'`\" = set"; then 2254 2061 echo $ac_n "(cached) $ac_c" 1>&6 … … 2315 2122 2316 2123 echo $ac_n "checking for Makefile.in in libbsp/${bspcpudir}$bspdir""... $ac_c" 1>&6 2317 echo "configure:2 318: checking for Makefile.in in libbsp/${bspcpudir}$bspdir" >&52124 echo "configure:2125: checking for Makefile.in in libbsp/${bspcpudir}$bspdir" >&5 2318 2125 if test -d $srcdir/libbsp/${bspcpudir}$bspdir; then 2319 2126 rtems_av_save_dir=`pwd`; … … 2330 2137 2331 2138 echo $ac_n "checking for Makefile.in in libbsp/${bspcpudir}shared""... $ac_c" 1>&6 2332 echo "configure:2 333: checking for Makefile.in in libbsp/${bspcpudir}shared" >&52139 echo "configure:2140: checking for Makefile.in in libbsp/${bspcpudir}shared" >&5 2333 2140 if test -d $srcdir/libbsp/${bspcpudir}shared; then 2334 2141 rtems_av_save_dir=`pwd`; … … 2374 2181 2375 2182 echo $ac_n "checking for Makefile.in in libcpu/$RTEMS_CPU""... $ac_c" 1>&6 2376 echo "configure:2 377: checking for Makefile.in in libcpu/$RTEMS_CPU" >&52183 echo "configure:2184: checking for Makefile.in in libcpu/$RTEMS_CPU" >&5 2377 2184 if test -d $srcdir/libcpu/$RTEMS_CPU; then 2378 2185 rtems_av_save_dir=`pwd`; … … 2394 2201 2395 2202 echo $ac_n "checking for Makefile.in in start/$RTEMS_CPU""... $ac_c" 1>&6 2396 echo "configure:2 397: checking for Makefile.in in start/$RTEMS_CPU" >&52203 echo "configure:2204: checking for Makefile.in in start/$RTEMS_CPU" >&5 2397 2204 if test -d $srcdir/start/$RTEMS_CPU; then 2398 2205 rtems_av_save_dir=`pwd`; … … 2414 2221 2415 2222 echo $ac_n "checking for Makefile.in in libnetworking""... $ac_c" 1>&6 2416 echo "configure:2 417: checking for Makefile.in in libnetworking" >&52223 echo "configure:2224: checking for Makefile.in in libnetworking" >&5 2417 2224 if test -d $srcdir/libnetworking; then 2418 2225 rtems_av_save_dir=`pwd`; … … 2429 2236 2430 2237 echo $ac_n "checking for Makefile.in in librpc""... $ac_c" 1>&6 2431 echo "configure:2 432: checking for Makefile.in in librpc" >&52238 echo "configure:2239: checking for Makefile.in in librpc" >&5 2432 2239 if test -d $srcdir/librpc; then 2433 2240 rtems_av_save_dir=`pwd`; … … 2445 2252 if test "$RTEMS_HAS_RDBG" = "yes"; then 2446 2253 echo $ac_n "checking whether BSP supports librdbg""... $ac_c" 1>&6 2447 echo "configure:2 448: checking whether BSP supports librdbg" >&52254 echo "configure:2255: checking whether BSP supports librdbg" >&5 2448 2255 if eval "test \"`echo '$''{'rtems_cv_HAS_RDBG'+set}'`\" = set"; then 2449 2256 echo $ac_n "(cached) $ac_c" 1>&6 … … 2467 2274 set dummy rpcgen; ac_word=$2 2468 2275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2469 echo "configure:2 470: checking for $ac_word" >&52276 echo "configure:2277: checking for $ac_word" >&5 2470 2277 if eval "test \"`echo '$''{'ac_cv_prog_RPCGEN'+set}'`\" = set"; then 2471 2278 echo $ac_n "(cached) $ac_c" 1>&6 … … 2498 2305 set dummy $ac_prog; ac_word=$2 2499 2306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2500 echo "configure:2 501: checking for $ac_word" >&52307 echo "configure:2308: checking for $ac_word" >&5 2501 2308 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 2502 2309 echo $ac_n "(cached) $ac_c" 1>&6 … … 2537 2344 2538 2345 echo $ac_n "checking for Makefile.in in librdbg""... $ac_c" 1>&6 2539 echo "configure:2 540: checking for Makefile.in in librdbg" >&52346 echo "configure:2347: checking for Makefile.in in librdbg" >&5 2540 2347 if test -d $srcdir/librdbg; then 2541 2348 rtems_av_save_dir=`pwd`; … … 2552 2359 fi 2553 2360 fi 2554 fi2555 2556 # If the C++ support is enabled, then include the Makefiles2557 if test "$HAS_CPLUSPLUS" = "yes"; then2558 2559 echo $ac_n "checking for Makefile.in in librtems++""... $ac_c" 1>&62560 echo "configure:2561: checking for Makefile.in in librtems++" >&52561 if test -d $srcdir/librtems++; then2562 rtems_av_save_dir=`pwd`;2563 cd $srcdir;2564 rtems_av_tmp=`find librtems++ -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`2565 makefiles="$makefiles $rtems_av_tmp";2566 cd $rtems_av_save_dir;2567 echo "$ac_t""done" 1>&62568 else2569 echo "$ac_t""no" 1>&62570 fi2571 2572 2573 2361 fi 2574 2362 … … 2589 2377 if test "$RTEMS_HAS_HWAPI" = "yes"; then 2590 2378 echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6 2591 echo "configure:2 592: checking whether libwapi is present" >&52379 echo "configure:2380: checking whether libwapi is present" >&5 2592 2380 if test -f ${srcdir}/libhwapi/Makefile.in ; then 2593 2381 echo "$ac_t""yes" 1>&6 … … 2595 2383 2596 2384 echo $ac_n "checking for Makefile.in in libhwapi/analog""... $ac_c" 1>&6 2597 echo "configure:2 598: checking for Makefile.in in libhwapi/analog" >&52385 echo "configure:2386: checking for Makefile.in in libhwapi/analog" >&5 2598 2386 if test -d $srcdir/libhwapi/analog; then 2599 2387 rtems_av_save_dir=`pwd`; … … 2610 2398 2611 2399 echo $ac_n "checking for Makefile.in in libhwapi/discrete""... $ac_c" 1>&6 2612 echo "configure:2 613: checking for Makefile.in in libhwapi/discrete" >&52400 echo "configure:2401: checking for Makefile.in in libhwapi/discrete" >&5 2613 2401 if test -d $srcdir/libhwapi/discrete; then 2614 2402 rtems_av_save_dir=`pwd`; … … 2625 2413 2626 2414 echo $ac_n "checking for Makefile.in in libhwapi/drivers""... $ac_c" 1>&6 2627 echo "configure:2 628: checking for Makefile.in in libhwapi/drivers" >&52415 echo "configure:2416: checking for Makefile.in in libhwapi/drivers" >&5 2628 2416 if test -d $srcdir/libhwapi/drivers; then 2629 2417 rtems_av_save_dir=`pwd`; … … 2640 2428 2641 2429 echo $ac_n "checking for Makefile.in in libhwapi/non_volatile_memory""... $ac_c" 1>&6 2642 echo "configure:2 643: checking for Makefile.in in libhwapi/non_volatile_memory" >&52430 echo "configure:2431: checking for Makefile.in in libhwapi/non_volatile_memory" >&5 2643 2431 if test -d $srcdir/libhwapi/non_volatile_memory; then 2644 2432 rtems_av_save_dir=`pwd`; … … 2655 2443 2656 2444 echo $ac_n "checking for Makefile.in in libhwapi/serial""... $ac_c" 1>&6 2657 echo "configure:2 658: checking for Makefile.in in libhwapi/serial" >&52445 echo "configure:2446: checking for Makefile.in in libhwapi/serial" >&5 2658 2446 if test -d $srcdir/libhwapi/serial; then 2659 2447 rtems_av_save_dir=`pwd`; … … 2670 2458 2671 2459 echo $ac_n "checking for Makefile.in in libhwapi/support""... $ac_c" 1>&6 2672 echo "configure:2 673: checking for Makefile.in in libhwapi/support" >&52460 echo "configure:2461: checking for Makefile.in in libhwapi/support" >&5 2673 2461 if test -d $srcdir/libhwapi/support; then 2674 2462 rtems_av_save_dir=`pwd`; … … 2685 2473 2686 2474 echo $ac_n "checking for Makefile.in in libhwapi/wrapup""... $ac_c" 1>&6 2687 echo "configure:2 688: checking for Makefile.in in libhwapi/wrapup" >&52475 echo "configure:2476: checking for Makefile.in in libhwapi/wrapup" >&5 2688 2476 if test -d $srcdir/libhwapi/wrapup; then 2689 2477 rtems_av_save_dir=`pwd`; … … 2715 2503 2716 2504 echo $ac_n "checking for Makefile.in in libchip""... $ac_c" 1>&6 2717 echo "configure:2 718: checking for Makefile.in in libchip" >&52505 echo "configure:2506: checking for Makefile.in in libchip" >&5 2718 2506 if test -d $srcdir/libchip; then 2719 2507 rtems_av_save_dir=`pwd`; … … 2732 2520 2733 2521 echo $ac_n "checking for Makefile.in in libmisc""... $ac_c" 1>&6 2734 echo "configure:2 735: checking for Makefile.in in libmisc" >&52522 echo "configure:2523: checking for Makefile.in in libmisc" >&5 2735 2523 if test -d $srcdir/libmisc; then 2736 2524 rtems_av_save_dir=`pwd`; … … 2942 2730 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g 2943 2731 s%@GCCSED@%$GCCSED%g 2944 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g2945 2732 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g 2946 2733 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g … … 2955 2742 s%@RTEMS_GAS_CODE16_FALSE@%$RTEMS_GAS_CODE16_FALSE%g 2956 2743 s%@HAS_MP@%$HAS_MP%g 2957 s%@HAS_CPLUSPLUS@%$HAS_CPLUSPLUS%g2958 2744 s%@HAS_NETWORKING@%$HAS_NETWORKING%g 2959 2745 s%@RTEMS_LIBBSP_CPU_SUBDIR@%$RTEMS_LIBBSP_CPU_SUBDIR%g -
c/src/lib/configure.in
r6cc786f ra719382 34 34 RTEMS_PROG_CC_FOR_TARGET 35 35 36 dnl check for g++37 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then38 RTEMS_PROG_CXX_FOR_TARGET39 fi40 41 36 RTEMS_CANONICALIZE_TOOLS 42 37 … … 54 49 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) 55 50 RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) 56 RTEMS_CHECK_CXX(RTEMS_BSP)57 51 RTEMS_CHECK_NETWORKING(RTEMS_BSP) 58 52 … … 144 138 fi 145 139 146 # If the C++ support is enabled, then include the Makefiles147 if test "$HAS_CPLUSPLUS" = "yes"; then148 RTEMS_CHECK_MAKEFILE(librtems++)149 fi150 151 140 # If the HWAPI is enabled, the find the HWAPI Makefiles 152 141 RTEMS_ENABLE_HWAPI -
c/src/lib/include/Makefile.in
r6cc786f ra719382 42 42 ZILOG_H_FILES = $(ZILOG_H_PIECES:%=$(srcdir)/zilog/%.h) 43 43 44 RTEMSCPLUSPLUS_H_PIECES_yes_V = rtemsEvent rtemsInterrupt rtemsMessageQueue \45 rtemsSemaphore rtemsStatusCode rtemsTask rtemsTaskMode rtemsTimer46 RTEMSCPLUSPLUS_H_PIECES = $(RTEMSCPLUSPLUS_H_PIECES_$(HAS_CPLUSPLUS)_V)47 RTEMSCPLUSPLUS_H_FILES = $(RTEMSCPLUSPLUS_H_PIECES:%=$(srcdir)/rtems++/%.h)48 49 44 RPC_H_PIECES = auth clnt rpc rpc_msg svc svc_auth types xdr 50 45 RPC_H_FILES = $(RPC_H_PIECES:%=$(srcdir)/rpc/%.h) … … 69 64 LIBRDBGdir = $(LIBRDBG_$(HAS_NETWORKING)_$(HAS_RDBG)_V) 70 65 71 # We only make the rtems++ install point if it is enabled.72 LIBRTEMSCPLUSPLUS_yes_V = $(PROJECT_INCLUDE)/rtems++73 LIBRTEMSCPLUSPLUSdir = $(LIBRTEMSCPLUSPLUS_$(HAS_CPLUSPLUS)_V)74 75 66 all: preinstall 76 67 … … 80 71 @$(INSTALL_CHANGE) -m 644 $(MOTOROLA_H_FILES) $(PROJECT_INCLUDE)/motorola 81 72 @$(INSTALL_CHANGE) -m 644 $(ZILOG_H_FILES) $(PROJECT_INCLUDE)/zilog 82 @if test "$(HAS_CPLUSPLUS)" = "yes"; then \83 $(INSTALL_CHANGE) -m 644 $(RTEMSCPLUSPLUS_H_FILES) $(LIBRTEMSCPLUSPLUSdir); \84 fi85 73 @if test "$(HAS_NETWORKING)" = "yes"; then \ 86 74 $(INSTALL_CHANGE) -m 644 $(RPC_H_FILES) $(LIBRPCdir); \ -
c/src/librtems++/src/Makefile.in
r6cc786f ra719382 7 7 top_srcdir = @top_srcdir@ 8 8 top_builddir = .. 9 subdir = librtems++9 subdir = src 10 10 11 11 RTEMS_ROOT = @RTEMS_ROOT@
Note: See TracChangeset
for help on using the changeset viewer.