Changeset 3a8915e in rtems


Ignore:
Timestamp:
08/06/99 17:55:25 (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2fe7208
Parents:
22544db9
Message:

Patch rtems-rc-19990709-6-diff from Ralf Corsepius <corsepiu@…>
applied. This modified many Makefiles and custom files and makes many more
settings (network, multiprocessing, etc) gnerated by autoconf.

Files:
1 deleted
251 edited

Legend:

Unmodified
Added
Removed
  • aclocal/check-multiprocessing.m4

    r22544db9 r3a8915e  
     1dnl
    12dnl $Id$
     3dnl
    24
    35AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING,
     
    1618    else
    1719      rtems_cv_HAS_MP="no";
    18     fi
    19   ])
     20    fi])
    2021if test "$rtems_cv_HAS_MP" = "yes"; then
    2122HAS_MP="yes"
  • aclocal/check-rdbg.m4

    r22544db9 r3a8915e  
     1dnl $Id$
     2dnl
    13AC_DEFUN(RTEMS_CHECK_RDBG,
    24[dnl
  • c/Makefile.am

    r22544db9 r3a8915e  
    33#
    44
     5AUTOMAKE_OPTIONS = foreign 1.4
     6ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
    57## NOTE: This Makefile.am is rather fragile to the value of RTEMS_BSP
    68## Esp. make clean and make distclean have unwanted side-effects
    79## if RTEMS_BSP is not properly set up.
    8 
    9 AUTOMAKE_OPTIONS = foreign 1.4
    10 ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
    1110
    1211RTEMS_BSP = $(RTEMS_BSP_LIST)
     
    1615. \
    1716$(RTEMS_BSP)
    18 
    1917
    2018## Use @RTEMS_BSP_LIST@ here, using $(RTEMS_BSP_LIST) would trigger
  • c/src/exec/aclocal.m4

    r22544db9 r3a8915e  
    516516fi
    517517])
    518 ])
    519 
    520 dnl
    521 dnl $Id$
    522 dnl
    523 dnl Check for target g++
    524 dnl
    525 dnl 98/05/20 Ralf Corsepius     (corsepiu@faw.uni-ulm.de)
    526 dnl                             Completely reworked
    527 
    528 AC_DEFUN(RTEMS_PROG_CXX,
    529 [
    530 AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
    531 AC_BEFORE([$0], [AC_PROG_CXX])dnl
    532 AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
    533 
    534 dnl Only accept g++ and c++
    535 dnl NOTE: This might be too restrictive for native compilation
    536 AC_PATH_PROGS(CXX_FOR_TARGET, "$program_prefix"g++ "$program_prefix"c++)
    537 test -z "$CXX_FOR_TARGET" \
    538   && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
    539 
    540 dnl backup
    541 rtems_save_CXX=$CXX
    542 rtems_save_CXXFLAGS=$CXXFLAGS
    543 
    544 dnl temporarily set CXX
    545 CXX=$CXX_FOR_TARGET
    546 
    547 AC_PROG_CXX_WORKS
    548 AC_PROG_CXX_GNU
    549 
    550 if test $ac_cv_prog_gxx = yes; then
    551   GXX=yes
    552 dnl Check whether -g works, even if CXXFLAGS is set, in case the package
    553 dnl plays around with CXXFLAGS (such as to build both debugging and
    554 dnl normal versions of a library), tasteless as that idea is.
    555   ac_test_CXXFLAGS="${CXXFLAGS+set}"
    556   ac_save_CXXFLAGS="$CXXFLAGS"
    557   CXXFLAGS=
    558   AC_PROG_CXX_G
    559   if test "$ac_test_CXXFLAGS" = set; then
    560     CXXFLAGS="$ac_save_CXXFLAGS"
    561   elif test $ac_cv_prog_cxx_g = yes; then
    562     CXXFLAGS="-g -O2"
    563   else
    564     CXXFLAGS="-O2"
    565   fi
    566 else
    567   GXX=
    568   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
    569 fi
    570 
    571 rtems_cv_prog_gxx=$ac_cv_prog_gxx
    572 rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
    573 rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
    574 rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
    575 
    576 CXX=$rtems_save_CXX
    577 CXXFLAGS=$rtems_save_CXXFLAGS
    578 
    579 dnl restore initial values
    580 unset ac_cv_prog_gxx
    581 unset ac_cv_prog_cc_g
    582 unset ac_cv_prog_cxx_works
    583 unset ac_cv_prog_cxx_cross
    584 ])
    585 
    586 AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET,
    587 [
    588   RTEMS_PROG_CXX
    589   if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
    590     AC_MSG_ERROR([***]
    591      [Inconsistency in compiler configuration:]
    592      [Target C compiler and Target C++ compiler]
    593      [must both either be cross compilers or native compilers]
    594      [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
    595   fi
    596518])
    597519
     
    944866])dnl
    945867
    946 dnl $Id$
     868dnl
     869dnl $Id$
     870dnl
    947871
    948872AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING,
     
    961885    else
    962886      rtems_cv_HAS_MP="no";
    963     fi
    964   ])
     887    fi])
    965888if test "$rtems_cv_HAS_MP" = "yes"; then
    966889HAS_MP="yes"
     
    969892fi
    970893AC_SUBST(HAS_MP)
     894])
     895
     896dnl $Id$
     897dnl
     898AC_DEFUN(RTEMS_CHECK_POSIX_API,
     899[dnl
     900AC_REQUIRE([RTEMS_CHECK_CPU])dnl
     901AC_CACHE_CHECK([whether BSP supports libposix],
     902  rtems_cv_HAS_POSIX_API,
     903  [dnl
     904    case "$RTEMS_CPU" in
     905    unix*)
     906      rtems_cv_HAS_POSIX_API="no"
     907      ;;
     908    *)
     909      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
     910        rtems_cv_HAS_POSIX_API="yes";
     911      else
     912        rtems_cv_HAS_POSIX_API="disabled";
     913      fi
     914      ;;
     915    esac])
     916if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
     917  HAS_POSIX_API="yes";
     918else
     919  HAS_POSIX_API="no";
     920fi
     921AC_SUBST(HAS_POSIX_API)dnl
    971922])
    972923
  • c/src/exec/configure

    r22544db9 r3a8915e  
    13021302
    13031303
    1304 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
    1305  
    1306  
    1307 
    1308 for ac_prog in "$program_prefix"g++ "$program_prefix"c++
    1309 do
    1310 # Extract the first word of "$ac_prog", so it can be a program name with args.
    1311 set dummy $ac_prog; ac_word=$2
    1312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1313 echo "configure:1314: checking for $ac_word" >&5
    1314 if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
    1315   echo $ac_n "(cached) $ac_c" 1>&6
    1316 else
    1317   case "$CXX_FOR_TARGET" in
    1318   /*)
    1319   ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.
    1320   ;;
    1321   ?:/*)                 
    1322   ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path.
    1323   ;;
    1324   *)
    1325   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1326   ac_dummy="$PATH"
    1327   for ac_dir in $ac_dummy; do
    1328     test -z "$ac_dir" && ac_dir=.
    1329     if test -f $ac_dir/$ac_word; then
    1330       ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"
    1331       break
    1332     fi
    1333   done
    1334   IFS="$ac_save_ifs"
    1335   ;;
    1336 esac
    1337 fi
    1338 CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"
    1339 if test -n "$CXX_FOR_TARGET"; then
    1340   echo "$ac_t""$CXX_FOR_TARGET" 1>&6
    1341 else
    1342   echo "$ac_t""no" 1>&6
    1343 fi
    1344 
    1345 test -n "$CXX_FOR_TARGET" && break
    1346 done
    1347 
    1348 test -z "$CXX_FOR_TARGET" \
    1349   && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
    1350 
    1351 rtems_save_CXX=$CXX
    1352 rtems_save_CXXFLAGS=$CXXFLAGS
    1353 
    1354 CXX=$CXX_FOR_TARGET
    1355 
    1356 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1357 echo "configure:1358: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    1358 
    1359 ac_ext=C
    1360 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    1361 ac_cpp='$CXXCPP $CPPFLAGS'
    1362 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1363 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1364 cross_compiling=$ac_cv_prog_cxx_cross
    1365 
    1366 cat > conftest.$ac_ext << EOF
    1367 
    1368 #line 1369 "configure"
    1369 #include "confdefs.h"
    1370 
    1371 int main(){return(0);}
    1372 EOF
    1373 if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1374   ac_cv_prog_cxx_works=yes
    1375   # If we can't run a trivial program, we are probably using a cross compiler.
    1376   if (./conftest; exit) 2>/dev/null; then
    1377     ac_cv_prog_cxx_cross=no
    1378   else
    1379     ac_cv_prog_cxx_cross=yes
    1380   fi
    1381 else
    1382   echo "configure: failed program was:" >&5
    1383   cat conftest.$ac_ext >&5
    1384   ac_cv_prog_cxx_works=no
    1385 fi
    1386 rm -fr conftest*
    1387 ac_ext=c
    1388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    1389 ac_cpp='$CPP $CPPFLAGS'
    1390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1391 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1392 cross_compiling=$ac_cv_prog_cc_cross
    1393 
    1394 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
    1395 if test $ac_cv_prog_cxx_works = no; then
    1396   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
    1397 fi
    1398 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1399 echo "configure:1400: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    1400 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    1401 cross_compiling=$ac_cv_prog_cxx_cross
    1402 
    1403 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1404 echo "configure:1405: checking whether we are using GNU C++" >&5
    1405 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    1406   echo $ac_n "(cached) $ac_c" 1>&6
    1407 else
    1408   cat > conftest.C <<EOF
    1409 #ifdef __GNUC__
    1410   yes;
    1411 #endif
    1412 EOF
    1413 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    1414   ac_cv_prog_gxx=yes
    1415 else
    1416   ac_cv_prog_gxx=no
    1417 fi
    1418 fi
    1419 
    1420 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    1421 
    1422 if test $ac_cv_prog_gxx = yes; then
    1423   GXX=yes
    1424   ac_test_CXXFLAGS="${CXXFLAGS+set}"
    1425   ac_save_CXXFLAGS="$CXXFLAGS"
    1426   CXXFLAGS=
    1427   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1428 echo "configure:1429: checking whether ${CXX-g++} accepts -g" >&5
    1429 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    1430   echo $ac_n "(cached) $ac_c" 1>&6
    1431 else
    1432   echo 'void f(){}' > conftest.cc
    1433 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
    1434   ac_cv_prog_cxx_g=yes
    1435 else
    1436   ac_cv_prog_cxx_g=no
    1437 fi
    1438 rm -f conftest*
    1439 
    1440 fi
    1441 
    1442 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
    1443   if test "$ac_test_CXXFLAGS" = set; then
    1444     CXXFLAGS="$ac_save_CXXFLAGS"
    1445   elif test $ac_cv_prog_cxx_g = yes; then
    1446     CXXFLAGS="-g -O2"
    1447   else
    1448     CXXFLAGS="-O2"
    1449   fi
    1450 else
    1451   GXX=
    1452   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
    1453 fi
    1454 
    1455 rtems_cv_prog_gxx=$ac_cv_prog_gxx
    1456 rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
    1457 rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
    1458 rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
    1459 
    1460 CXX=$rtems_save_CXX
    1461 CXXFLAGS=$rtems_save_CXXFLAGS
    1462 
    1463 unset ac_cv_prog_gxx
    1464 unset ac_cv_prog_cc_g
    1465 unset ac_cv_prog_cxx_works
    1466 unset ac_cv_prog_cxx_cross
    1467 
    1468   if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
    1469     { echo "configure: error: ***
    1470      Inconsistency in compiler configuration:
    1471      Target C compiler and Target C++ compiler
    1472      must both either be cross compilers or native compilers
    1473      Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; }
    1474   fi
    1475 
    1476 fi
    1477 
    14781304
    14791305 
    14801306echo $ac_n "checking target's ar""... $ac_c" 1>&6
    1481 echo "configure:1482: checking target's ar" >&5
     1307echo "configure:1308: checking target's ar" >&5
    14821308if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    14831309  echo $ac_n "(cached) $ac_c" 1>&6
     
    15121338    # intends
    15131339    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1514 echo "configure:1515: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
     1340echo "configure:1341: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
    15151341    case "$AR_FOR_TARGET" in
    15161342    /*) # valid
     
    15291355set dummy "$program_prefix"ar; ac_word=$2
    15301356echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1531 echo "configure:1532: checking for $ac_word" >&5
     1357echo "configure:1358: checking for $ac_word" >&5
    15321358if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    15331359  echo $ac_n "(cached) $ac_c" 1>&6
     
    15661392 
    15671393echo $ac_n "checking target's as""... $ac_c" 1>&6
    1568 echo "configure:1569: checking target's as" >&5
     1394echo "configure:1395: checking target's as" >&5
    15691395if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    15701396  echo $ac_n "(cached) $ac_c" 1>&6
     
    15991425    # intends
    16001426    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1601 echo "configure:1602: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
     1427echo "configure:1428: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
    16021428    case "$AS_FOR_TARGET" in
    16031429    /*) # valid
     
    16161442set dummy "$program_prefix"as; ac_word=$2
    16171443echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1618 echo "configure:1619: checking for $ac_word" >&5
     1444echo "configure:1445: checking for $ac_word" >&5
    16191445if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    16201446  echo $ac_n "(cached) $ac_c" 1>&6
     
    16531479 
    16541480echo $ac_n "checking target's ld""... $ac_c" 1>&6
    1655 echo "configure:1656: checking target's ld" >&5
     1481echo "configure:1482: checking target's ld" >&5
    16561482if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    16571483  echo $ac_n "(cached) $ac_c" 1>&6
     
    16861512    # intends
    16871513    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1688 echo "configure:1689: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
     1514echo "configure:1515: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
    16891515    case "$LD_FOR_TARGET" in
    16901516    /*) # valid
     
    17031529set dummy "$program_prefix"ld; ac_word=$2
    17041530echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1705 echo "configure:1706: checking for $ac_word" >&5
     1531echo "configure:1532: checking for $ac_word" >&5
    17061532if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    17071533  echo $ac_n "(cached) $ac_c" 1>&6
     
    17401566 
    17411567echo $ac_n "checking target's nm""... $ac_c" 1>&6
    1742 echo "configure:1743: checking target's nm" >&5
     1568echo "configure:1569: checking target's nm" >&5
    17431569if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    17441570  echo $ac_n "(cached) $ac_c" 1>&6
     
    17731599    # intends
    17741600    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1775 echo "configure:1776: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
     1601echo "configure:1602: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
    17761602    case "$NM_FOR_TARGET" in
    17771603    /*) # valid
     
    17901616set dummy "$program_prefix"nm; ac_word=$2
    17911617echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1792 echo "configure:1793: checking for $ac_word" >&5
     1618echo "configure:1619: checking for $ac_word" >&5
    17931619if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    17941620  echo $ac_n "(cached) $ac_c" 1>&6
     
    18281654 
    18291655echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
    1830 echo "configure:1831: checking target's ranlib" >&5
     1656echo "configure:1657: checking target's ranlib" >&5
    18311657if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    18321658  echo $ac_n "(cached) $ac_c" 1>&6
     
    18611687    # intends
    18621688    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1863 echo "configure:1864: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
     1689echo "configure:1690: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
    18641690    case "$RANLIB_FOR_TARGET" in
    18651691    /*) # valid
     
    18781704set dummy "$program_prefix"ranlib; ac_word=$2
    18791705echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1880 echo "configure:1881: checking for $ac_word" >&5
     1706echo "configure:1707: checking for $ac_word" >&5
    18811707if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    18821708  echo $ac_n "(cached) $ac_c" 1>&6
     
    19171743   
    19181744echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
    1919 echo "configure:1920: checking whether $AR_FOR_TARGET -s works" >&5
     1745echo "configure:1746: checking whether $AR_FOR_TARGET -s works" >&5
    19201746if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
    19211747  echo $ac_n "(cached) $ac_c" 1>&6
     
    19261752{ return b; }
    19271753EOF
    1928 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    1929   && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     1754if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     1755  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    19301756  && test -s conftest.a ; \
    19311757then
     
    19521778 
    19531779echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
    1954 echo "configure:1955: checking target's objcopy" >&5
     1780echo "configure:1781: checking target's objcopy" >&5
    19551781if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    19561782  echo $ac_n "(cached) $ac_c" 1>&6
     
    19851811    # intends
    19861812    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1987 echo "configure:1988: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
     1813echo "configure:1814: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
    19881814    case "$OBJCOPY_FOR_TARGET" in
    19891815    /*) # valid
     
    20021828set dummy "$program_prefix"objcopy; ac_word=$2
    20031829echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2004 echo "configure:2005: checking for $ac_word" >&5
     1830echo "configure:1831: checking for $ac_word" >&5
    20051831if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    20061832  echo $ac_n "(cached) $ac_c" 1>&6
     
    20391865 
    20401866echo $ac_n "checking target's size""... $ac_c" 1>&6
    2041 echo "configure:2042: checking target's size" >&5
     1867echo "configure:1868: checking target's size" >&5
    20421868if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    20431869  echo $ac_n "(cached) $ac_c" 1>&6
     
    20721898    # intends
    20731899    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2074 echo "configure:2075: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
     1900echo "configure:1901: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
    20751901    case "$SIZE_FOR_TARGET" in
    20761902    /*) # valid
     
    20891915set dummy "$program_prefix"size; ac_word=$2
    20901916echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2091 echo "configure:2092: checking for $ac_word" >&5
     1917echo "configure:1918: checking for $ac_word" >&5
    20921918if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    20931919  echo $ac_n "(cached) $ac_c" 1>&6
     
    21261952 
    21271953echo $ac_n "checking target's strip""... $ac_c" 1>&6
    2128 echo "configure:2129: checking target's strip" >&5
     1954echo "configure:1955: checking target's strip" >&5
    21291955if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    21301956  echo $ac_n "(cached) $ac_c" 1>&6
     
    21591985    # intends
    21601986    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2161 echo "configure:2162: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
     1987echo "configure:1988: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
    21621988    case "$STRIP_FOR_TARGET" in
    21631989    /*) # valid
     
    21762002set dummy "$program_prefix"strip; ac_word=$2
    21772003echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2178 echo "configure:2179: checking for $ac_word" >&5
     2004echo "configure:2005: checking for $ac_word" >&5
    21792005if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    21802006  echo $ac_n "(cached) $ac_c" 1>&6
     
    22152041 if test "${target_cpu}" = "i386"; then
    22162042    echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6
    2217 echo "configure:2218: checking for 16 bit mode assembler support" >&5
     2043echo "configure:2044: checking for 16 bit mode assembler support" >&5
    22182044if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then
    22192045  echo $ac_n "(cached) $ac_c" 1>&6
     
    22252051         lgdt 0
    22262052EOF
    2227       if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
     2053      if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
    22282054        rtems_cv_prog_gas_code16=yes
    22292055      else
     
    22412067set dummy gcc; ac_word=$2
    22422068echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2243 echo "configure:2244: checking for $ac_word" >&5
     2069echo "configure:2070: checking for $ac_word" >&5
    22442070if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    22452071  echo $ac_n "(cached) $ac_c" 1>&6
     
    22712097set dummy cc; ac_word=$2
    22722098echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2273 echo "configure:2274: checking for $ac_word" >&5
     2099echo "configure:2100: checking for $ac_word" >&5
    22742100if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    22752101  echo $ac_n "(cached) $ac_c" 1>&6
     
    23222148set dummy cl; ac_word=$2
    23232149echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2324 echo "configure:2325: checking for $ac_word" >&5
     2150echo "configure:2151: checking for $ac_word" >&5
    23252151if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    23262152  echo $ac_n "(cached) $ac_c" 1>&6
     
    23542180
    23552181echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2356 echo "configure:2357: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2182echo "configure:2183: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    23572183
    23582184ac_ext=c
     
    23652191cat > conftest.$ac_ext << EOF
    23662192
    2367 #line 2368 "configure"
     2193#line 2194 "configure"
    23682194#include "confdefs.h"
    23692195
    23702196main(){return(0);}
    23712197EOF
    2372 if { (eval echo configure:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2198if { (eval echo configure:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23732199  ac_cv_prog_cc_works=yes
    23742200  # If we can't run a trivial program, we are probably using a cross compiler.
     
    23962222fi
    23972223echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2398 echo "configure:2399: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2224echo "configure:2225: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    23992225echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    24002226cross_compiling=$ac_cv_prog_cc_cross
    24012227
    24022228echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    2403 echo "configure:2404: checking whether we are using GNU C" >&5
     2229echo "configure:2230: checking whether we are using GNU C" >&5
    24042230if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    24052231  echo $ac_n "(cached) $ac_c" 1>&6
     
    24102236#endif
    24112237EOF
    2412 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     2238if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    24132239  ac_cv_prog_gcc=yes
    24142240else
     
    24292255CFLAGS=
    24302256echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    2431 echo "configure:2432: checking whether ${CC-cc} accepts -g" >&5
     2257echo "configure:2258: checking whether ${CC-cc} accepts -g" >&5
    24322258if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    24332259  echo $ac_n "(cached) $ac_c" 1>&6
     
    24652291
    24662292echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6
    2467 echo "configure:2468: checking whether $RTEMS_HOST supports System V semaphores" >&5
     2293echo "configure:2294: checking whether $RTEMS_HOST supports System V semaphores" >&5
    24682294if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then
    24692295  echo $ac_n "(cached) $ac_c" 1>&6
     
    24742300else
    24752301  cat > conftest.$ac_ext <<EOF
    2476 #line 2477 "configure"
     2302#line 2303 "configure"
    24772303#include "confdefs.h"
    24782304
     
    25002326
    25012327EOF
    2502 if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2328if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    25032329then
    25042330  rtems_cv_sysv_sem="yes"
     
    25232349
    25242350echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6
    2525 echo "configure:2526: checking whether $RTEMS_HOST supports System V shared memory" >&5
     2351echo "configure:2352: checking whether $RTEMS_HOST supports System V shared memory" >&5
    25262352if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then
    25272353  echo $ac_n "(cached) $ac_c" 1>&6
     
    25322358else
    25332359  cat > conftest.$ac_ext <<EOF
    2534 #line 2535 "configure"
     2360#line 2361 "configure"
    25352361#include "confdefs.h"
    25362362
     
    25482374
    25492375EOF
    2550 if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2376if { (eval echo configure:2377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    25512377then
    25522378  rtems_cv_sysv_shm="yes"
     
    25712397
    25722398echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6
    2573 echo "configure:2574: checking whether $RTEMS_HOST supports System V messages" >&5
     2399echo "configure:2400: checking whether $RTEMS_HOST supports System V messages" >&5
    25742400if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then
    25752401  echo $ac_n "(cached) $ac_c" 1>&6
     
    25802406else
    25812407  cat > conftest.$ac_ext <<EOF
    2582 #line 2583 "configure"
     2408#line 2409 "configure"
    25832409#include "confdefs.h"
    25842410
     
    25962422
    25972423EOF
    2598 if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2424if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    25992425then
    26002426  rtems_cv_sysv_msg="yes"
     
    26202446
    26212447echo $ac_n "checking for newlib""... $ac_c" 1>&6
    2622 echo "configure:2623: checking for newlib" >&5
     2448echo "configure:2449: checking for newlib" >&5
    26232449if eval "test \"`echo '$''{'rtems_cv_use_newlib'+set}'`\" = set"; then
    26242450  echo $ac_n "(cached) $ac_c" 1>&6
     
    26292455
    26302456    cat > conftest.$ac_ext <<EOF
    2631 #line 2632 "configure"
     2457#line 2458 "configure"
    26322458#include "confdefs.h"
    26332459extern int not_required_by_rtems() ;
     
    26362462; return 0; }
    26372463EOF
    2638 if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2464if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    26392465  rm -rf conftest*
    26402466  rtems_cv_use_newlib="yes"
     
    26472473    if test -z "$rtems_cv_use_newlib"; then
    26482474      cat > conftest.$ac_ext <<EOF
    2649 #line 2650 "configure"
     2475#line 2476 "configure"
    26502476#include "confdefs.h"
    26512477extern int rtems_provides_crt0 ;
     
    26542480; return 0; }
    26552481EOF
    2656 if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2482if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    26572483  rm -rf conftest*
    26582484  rtems_cv_use_newlib="yes"
     
    26752501# Check if there is custom/*.cfg for this BSP
    26762502echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
    2677 echo "configure:2678: checking for make/custom/$RTEMS_BSP.cfg" >&5
     2503echo "configure:2504: checking for make/custom/$RTEMS_BSP.cfg" >&5
    26782504if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
    26792505  echo "$ac_t""yes" 1>&6
     
    26822508fi
    26832509
    2684 
    26852510echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6
    2686 echo "configure:2687: checking whether BSP supports multiprocessing" >&5
     2511echo "configure:2512: checking whether BSP supports multiprocessing" >&5
    26872512if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then
    26882513  echo $ac_n "(cached) $ac_c" 1>&6
     
    26972522      rtems_cv_HAS_MP="no";
    26982523    fi
    2699  
    27002524fi
    27012525
     
    27082532
    27092533
     2534echo $ac_n "checking whether BSP supports libposix""... $ac_c" 1>&6
     2535echo "configure:2536: checking whether BSP supports libposix" >&5
     2536if eval "test \"`echo '$''{'rtems_cv_HAS_POSIX_API'+set}'`\" = set"; then
     2537  echo $ac_n "(cached) $ac_c" 1>&6
     2538else
     2539      case "$RTEMS_CPU" in
     2540    unix*)
     2541      rtems_cv_HAS_POSIX_API="no"
     2542      ;;
     2543    *)
     2544      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
     2545        rtems_cv_HAS_POSIX_API="yes";
     2546      else
     2547        rtems_cv_HAS_POSIX_API="disabled";
     2548      fi
     2549      ;;
     2550    esac
     2551fi
     2552
     2553echo "$ac_t""$rtems_cv_HAS_POSIX_API" 1>&6
     2554if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
     2555  HAS_POSIX_API="yes";
     2556else
     2557  HAS_POSIX_API="no";
     2558fi
     2559
    27102560
    27112561# find all the Executive Makefiles
    27122562
    27132563echo $ac_n "checking for Makefile.in in score/cpu/$RTEMS_CPU""... $ac_c" 1>&6
    2714 echo "configure:2715: checking for Makefile.in in score/cpu/$RTEMS_CPU" >&5
     2564echo "configure:2565: checking for Makefile.in in score/cpu/$RTEMS_CPU" >&5
    27152565if test -d $srcdir/score/cpu/$RTEMS_CPU; then
    27162566  rtems_av_save_dir=`pwd`;
     
    27292579if test "$RTEMS_USE_MACROS" = "yes"; then
    27302580  inline_dir="macros"
    2731   if test "$RTEMS_HAS_POSIX_API" = "yes"; then
     2581  if test "$HAS_POSIX_API" = "yes"; then
    27322582    # The problem is that there is currently no code in posix/macros :)
    27332583    { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; }
     
    27372587fi
    27382588
    2739 if test "$RTEMS_HAS_POSIX_API" = "yes"; then
     2589if test "$HAS_POSIX_API" = "yes"; then
    27402590  makefiles="$makefiles posix/Makefile"
    27412591  makefiles="$makefiles posix/src/Makefile"
     
    27522602  makefiles="$makefiles posix/${inline_dir}/rtems/posix/Makefile"
    27532603fi
    2754 
    27552604
    27562605
     
    29822831s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
    29832832s%@GCCSED@%$GCCSED%g
    2984 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
    29852833s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
    29862834s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
     
    29952843s%@RTEMS_USE_NEWLIB@%$RTEMS_USE_NEWLIB%g
    29962844s%@HAS_MP@%$HAS_MP%g
     2845s%@HAS_POSIX_API@%$HAS_POSIX_API%g
    29972846s%@RTEMS_VERSION@%$RTEMS_VERSION%g
    29982847s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g
    2999 s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g
    30002848s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g
    30012849s%@program_prefix@%$program_prefix%g
     
    31492997test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
    31502998
    3151 
  • c/src/exec/configure.in

    r22544db9 r3a8915e  
    3434RTEMS_PROG_CC_FOR_TARGET
    3535
    36 dnl check for g++
    37 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
    38   RTEMS_PROG_CXX_FOR_TARGET
    39 fi
    40 
    4136RTEMS_CANONICALIZE_TOOLS
    4237
     
    5045# Check if there is custom/*.cfg for this BSP
    5146RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    52 
    5347RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
     48RTEMS_CHECK_POSIX_API(RTEMS_BSP)
    5449
    5550# find all the Executive Makefiles
     
    5954if test "$RTEMS_USE_MACROS" = "yes"; then
    6055  inline_dir="macros"
    61   if test "$RTEMS_HAS_POSIX_API" = "yes"; then
     56  if test "$HAS_POSIX_API" = "yes"; then
    6257    # The problem is that there is currently no code in posix/macros :)
    6358    AC_MSG_ERROR(Macros are not implemented for the POSIX API)
     
    6762fi
    6863
    69 if test "$RTEMS_HAS_POSIX_API" = "yes"; then
     64if test "$HAS_POSIX_API" = "yes"; then
    7065  makefiles="$makefiles posix/Makefile"
    7166  makefiles="$makefiles posix/src/Makefile"
     
    8681
    8782AC_SUBST(rtems_cv_prog_cc_cross)
    88 AC_SUBST(RTEMS_HAS_CPLUSPLUS)
    8983AC_SUBST(RTEMS_USE_GCC272)
    9084AC_SUBST(program_prefix)
     
    130124$makefiles
    131125)
    132 
  • c/src/lib/aclocal.m4

    r22544db9 r3a8915e  
    135135dnl $Id$
    136136
    137 AC_DEFUN(RTEMS_ENABLE_POSIX,
    138 [
    139 AC_ARG_ENABLE(posix,
    140 [  --enable-posix                       enable posix interface],
    141 [case "${enableval}" in
    142   yes) RTEMS_HAS_POSIX_API=yes ;;
    143   no) RTEMS_HAS_POSIX_API=no ;;
    144   *)  AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;;
    145 esac],[RTEMS_HAS_POSIX_API=yes])
    146 AC_SUBST(RTEMS_HAS_POSIX_API)
    147 
    148 changequote(,)dnl
    149 case "${target}" in
    150   # hpux unix port should go here
    151   i[3456]86-go32-rtems*)
    152         RTEMS_HAS_POSIX_API=no
    153         ;;
    154   i[3456]86-pc-linux*)         # unix "simulator" port
    155         RTEMS_HAS_POSIX_API=no
    156         ;;
    157   i[3456]86-*freebsd2*) # unix "simulator" port
    158         RTEMS_HAS_POSIX_API=no
    159         ;;
    160   no_cpu-*rtems*)
    161         RTEMS_HAS_POSIX_API=no
    162         ;;
    163   sparc-sun-solaris*)             # unix "simulator" port
    164         RTEMS_HAS_POSIX_API=no
    165         ;;
    166   *)
    167         ;;
    168 esac
    169 changequote([,])dnl
    170 AC_SUBST(RTEMS_HAS_POSIX_API)
    171 ])
    172 
    173 dnl $Id$
    174 
    175137AC_DEFUN(RTEMS_ENABLE_NETWORKING,
    176138[
     
    197159esac],[RTEMS_HAS_RDBG=no])
    198160AC_SUBST(RTEMS_HAS_RDBG)dnl
    199 ])
    200 
    201 dnl $Id$
    202 
    203 AC_DEFUN(RTEMS_ENABLE_INLINES,
    204 [AC_ARG_ENABLE(rtems-inlines,
    205 [  --enable-rtems-inlines               enable RTEMS inline functions]
    206 [                                       (default:enabled, disable to use macros)],
    207 [case "${enableval}" in
    208   yes) RTEMS_USE_MACROS=no ;;
    209   no) RTEMS_USE_MACROS=yes ;;
    210   *)  AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;;
    211 esac],[RTEMS_USE_MACROS=no])
    212 AC_SUBST(RTEMS_USE_MACROS)dnl
    213161])
    214162
     
    949897])dnl
    950898
    951 dnl $Id$
     899dnl
     900dnl $Id$
     901dnl
    952902
    953903AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING,
     
    966916    else
    967917      rtems_cv_HAS_MP="no";
    968     fi
    969   ])
     918    fi])
    970919if test "$rtems_cv_HAS_MP" = "yes"; then
    971920HAS_MP="yes"
     
    974923fi
    975924AC_SUBST(HAS_MP)
     925])
     926
     927dnl $Id$
     928dnl
     929AC_DEFUN(RTEMS_CHECK_CXX,
     930[dnl
     931AC_REQUIRE([RTEMS_CHECK_CPU])dnl
     932AC_REQUIRE([RTEMS_PROG_CXX_FOR_TARGET])dnl
     933AC_CACHE_VAL(rtems_cv_HAS_CPLUSPLUS,
     934  [dnl
     935    if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
     936      if test -n "$CXX_FOR_TARGET"; then
     937        rtems_cv_HAS_CPLUSPLUS="yes";
     938      else
     939        rtems_cv_HAS_CPLUSPLUS="no";
     940      fi
     941    else
     942      rtems_cv_HAS_CPLUSPLUS="no";
     943    fi
     944  ])dnl
     945HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS";
     946AC_SUBST(HAS_CPLUSPLUS)dnl
     947])
     948
     949dnl $Id$
     950dnl
     951AC_DEFUN(RTEMS_CHECK_NETWORKING,
     952[dnl
     953AC_REQUIRE([RTEMS_CHECK_CPU])dnl
     954AC_CACHE_VAL(rtems_cv_HAS_NETWORKING,
     955  [dnl
     956    if test "$RTEMS_HAS_NETWORKING" = "yes"; then
     957      rtems_cv_HAS_NETWORKING="yes";
     958    else
     959      rtems_cv_HAS_NETWORKING="no";
     960    fi
     961  ])dnl
     962HAS_NETWORKING="$rtems_cv_HAS_NETWORKING";
     963AC_SUBST(HAS_NETWORKING)dnl
    976964])
    977965
     
    10331021
    10341022
     1023dnl $Id$
     1024dnl
    10351025AC_DEFUN(RTEMS_CHECK_RDBG,
    10361026[dnl
  • c/src/lib/configure

    r22544db9 r3a8915e  
    2020  --enable-multiprocessing             enable multiprocessing interface"
    2121ac_help="$ac_help
    22   --enable-posix                       enable posix interface"
    23 ac_help="$ac_help
    2422  --enable-networking                  enable TCP/IP stack"
    2523ac_help="$ac_help
    2624  --enable-rdbg                        enable remote debugger"
    27 ac_help="$ac_help
    28   --enable-rtems-inlines               enable RTEMS inline functions
    29                                        (default:enabled, disable to use macros)"
    3025ac_help="$ac_help
    3126  --enable-cxx                         enable C++ support,
     
    570565
    571566echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
    572 echo "configure:573: checking for RTEMS Version" >&5
     567echo "configure:568: checking for RTEMS Version" >&5
    573568if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
    574569RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
     
    603598
    604599echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    605 echo "configure:606: checking whether ${MAKE-make} sets \${MAKE}" >&5
     600echo "configure:601: checking whether ${MAKE-make} sets \${MAKE}" >&5
    606601set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    607602if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    658653
    659654echo $ac_n "checking host system type""... $ac_c" 1>&6
    660 echo "configure:661: checking host system type" >&5
     655echo "configure:656: checking host system type" >&5
    661656
    662657host_alias=$host
     
    679674
    680675echo $ac_n "checking target system type""... $ac_c" 1>&6
    681 echo "configure:682: checking target system type" >&5
     676echo "configure:677: checking target system type" >&5
    682677
    683678target_alias=$target
     
    697692
    698693echo $ac_n "checking build system type""... $ac_c" 1>&6
    699 echo "configure:700: checking build system type" >&5
     694echo "configure:695: checking build system type" >&5
    700695
    701696build_alias=$build
     
    720715
    721716echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    722 echo "configure:723: checking rtems target cpu" >&5
     717echo "configure:718: checking rtems target cpu" >&5
    723718case "${target}" in
    724719  # hpux unix port should go here
     
    747742
    748743echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
    749 echo "configure:750: checking whether to enable maintainer-specific portions of Makefiles" >&5
     744echo "configure:745: checking whether to enable maintainer-specific portions of Makefiles" >&5
    750745    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
    751746if test "${enable_maintainer_mode+set}" = set; then
     
    785780
    786781
    787 # Check whether --enable-posix or --disable-posix was given.
    788 if test "${enable_posix+set}" = set; then
    789   enableval="$enable_posix"
    790   case "${enableval}" in
    791   yes) RTEMS_HAS_POSIX_API=yes ;;
    792   no) RTEMS_HAS_POSIX_API=no ;;
    793   *)  { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;;
    794 esac
    795 else
    796   RTEMS_HAS_POSIX_API=yes
    797 fi
    798  
    799 
    800 
    801 case "${target}" in
    802   # hpux unix port should go here
    803   i[3456]86-go32-rtems*)
    804         RTEMS_HAS_POSIX_API=no
    805         ;;
    806   i[3456]86-pc-linux*)         # unix "simulator" port
    807         RTEMS_HAS_POSIX_API=no
    808         ;;
    809   i[3456]86-*freebsd2*) # unix "simulator" port
    810         RTEMS_HAS_POSIX_API=no
    811         ;;
    812   no_cpu-*rtems*)
    813         RTEMS_HAS_POSIX_API=no
    814         ;;
    815   sparc-sun-solaris*)             # unix "simulator" port
    816         RTEMS_HAS_POSIX_API=no
    817         ;;
    818   *)
    819         ;;
    820 esac
    821 
    822 
    823 
    824782# Check whether --enable-networking or --disable-networking was given.
    825783if test "${enable_networking+set}" = set; then
     
    849807
    850808
    851 # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.
    852 if test "${enable_rtems_inlines+set}" = set; then
    853   enableval="$enable_rtems_inlines"
    854   case "${enableval}" in
    855   yes) RTEMS_USE_MACROS=no ;;
    856   no) RTEMS_USE_MACROS=yes ;;
    857   *)  { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;;
    858 esac
    859 else
    860   RTEMS_USE_MACROS=no
    861 fi
    862 
    863 
    864809
    865810# Check whether --enable-cxx or --disable-cxx was given.
     
    939884
    940885echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6
    941 echo "configure:942: checking for RTEMS_BSP" >&5
     886echo "configure:887: checking for RTEMS_BSP" >&5
    942887if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then
    943888  echo $ac_n "(cached) $ac_c" 1>&6
     
    966911# ./install, which can be erroneously created by make from ./install.sh.
    967912echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    968 echo "configure:969: checking for a BSD compatible install" >&5
     913echo "configure:914: checking for a BSD compatible install" >&5
    969914if test -z "$INSTALL"; then
    970915if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    1023968# Is this a supported CPU?
    1024969echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
    1025 echo "configure:1026: checking if cpu $RTEMS_CPU is supported" >&5
     970echo "configure:971: checking if cpu $RTEMS_CPU is supported" >&5
    1026971if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
    1027972  echo "$ac_t""yes" 1>&6
     
    10841029set dummy $ac_prog; ac_word=$2
    10851030echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1086 echo "configure:1087: checking for $ac_word" >&5
     1031echo "configure:1032: checking for $ac_word" >&5
    10871032if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
    10881033  echo $ac_n "(cached) $ac_c" 1>&6
     
    11281073
    11291074echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1130 echo "configure:1131: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1075echo "configure:1076: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    11311076
    11321077ac_ext=c
     
    11391084cat > conftest.$ac_ext << EOF
    11401085
    1141 #line 1142 "configure"
     1086#line 1087 "configure"
    11421087#include "confdefs.h"
    11431088
    11441089main(){return(0);}
    11451090EOF
    1146 if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1091if { (eval echo configure:1092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    11471092  ac_cv_prog_cc_works=yes
    11481093  # If we can't run a trivial program, we are probably using a cross compiler.
     
    11701115fi
    11711116echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1172 echo "configure:1173: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1117echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    11731118echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    11741119cross_compiling=$ac_cv_prog_cc_cross
    11751120
    11761121echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1177 echo "configure:1178: checking whether we are using GNU C" >&5
     1122echo "configure:1123: checking whether we are using GNU C" >&5
    11781123if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    11791124  echo $ac_n "(cached) $ac_c" 1>&6
     
    11841129#endif
    11851130EOF
    1186 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1131if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    11871132  ac_cv_prog_gcc=yes
    11881133else
     
    11991144  CFLAGS=
    12001145  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1201 echo "configure:1202: checking whether ${CC-cc} accepts -g" >&5
     1146echo "configure:1147: checking whether ${CC-cc} accepts -g" >&5
    12021147if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    12031148  echo $ac_n "(cached) $ac_c" 1>&6
     
    12411186
    12421187echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
    1243 echo "configure:1244: checking whether $CC_FOR_TARGET accepts -specs" >&5
     1188echo "configure:1189: checking whether $CC_FOR_TARGET accepts -specs" >&5
    12441189if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
    12451190  echo $ac_n "(cached) $ac_c" 1>&6
     
    12621207
    12631208echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
    1264 echo "configure:1265: checking whether $CC_FOR_TARGET accepts --pipe" >&5
     1209echo "configure:1210: checking whether $CC_FOR_TARGET accepts --pipe" >&5
    12651210if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
    12661211  echo $ac_n "(cached) $ac_c" 1>&6
     
    13101255set dummy $ac_prog; ac_word=$2
    13111256echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1312 echo "configure:1313: checking for $ac_word" >&5
     1257echo "configure:1258: checking for $ac_word" >&5
    13131258if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
    13141259  echo $ac_n "(cached) $ac_c" 1>&6
     
    13541299
    13551300echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1356 echo "configure:1357: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1301echo "configure:1302: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    13571302
    13581303ac_ext=C
     
    13651310cat > conftest.$ac_ext << EOF
    13661311
    1367 #line 1368 "configure"
     1312#line 1313 "configure"
    13681313#include "confdefs.h"
    13691314
    13701315int main(){return(0);}
    13711316EOF
    1372 if { (eval echo configure:1373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1317if { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    13731318  ac_cv_prog_cxx_works=yes
    13741319  # If we can't run a trivial program, we are probably using a cross compiler.
     
    13961341fi
    13971342echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1398 echo "configure:1399: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1343echo "configure:1344: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    13991344echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    14001345cross_compiling=$ac_cv_prog_cxx_cross
    14011346
    14021347echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1403 echo "configure:1404: checking whether we are using GNU C++" >&5
     1348echo "configure:1349: checking whether we are using GNU C++" >&5
    14041349if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    14051350  echo $ac_n "(cached) $ac_c" 1>&6
     
    14101355#endif
    14111356EOF
    1412 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1357if { 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; then
    14131358  ac_cv_prog_gxx=yes
    14141359else
     
    14251370  CXXFLAGS=
    14261371  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1427 echo "configure:1428: checking whether ${CXX-g++} accepts -g" >&5
     1372echo "configure:1373: checking whether ${CXX-g++} accepts -g" >&5
    14281373if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    14291374  echo $ac_n "(cached) $ac_c" 1>&6
     
    14781423 
    14791424echo $ac_n "checking target's ar""... $ac_c" 1>&6
    1480 echo "configure:1481: checking target's ar" >&5
     1425echo "configure:1426: checking target's ar" >&5
    14811426if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    14821427  echo $ac_n "(cached) $ac_c" 1>&6
     
    15111456    # intends
    15121457    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1513 echo "configure:1514: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
     1458echo "configure:1459: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
    15141459    case "$AR_FOR_TARGET" in
    15151460    /*) # valid
     
    15281473set dummy "$program_prefix"ar; ac_word=$2
    15291474echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1530 echo "configure:1531: checking for $ac_word" >&5
     1475echo "configure:1476: checking for $ac_word" >&5
    15311476if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    15321477  echo $ac_n "(cached) $ac_c" 1>&6
     
    15651510 
    15661511echo $ac_n "checking target's as""... $ac_c" 1>&6
    1567 echo "configure:1568: checking target's as" >&5
     1512echo "configure:1513: checking target's as" >&5
    15681513if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    15691514  echo $ac_n "(cached) $ac_c" 1>&6
     
    15981543    # intends
    15991544    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1600 echo "configure:1601: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
     1545echo "configure:1546: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
    16011546    case "$AS_FOR_TARGET" in
    16021547    /*) # valid
     
    16151560set dummy "$program_prefix"as; ac_word=$2
    16161561echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1617 echo "configure:1618: checking for $ac_word" >&5
     1562echo "configure:1563: checking for $ac_word" >&5
    16181563if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    16191564  echo $ac_n "(cached) $ac_c" 1>&6
     
    16521597 
    16531598echo $ac_n "checking target's ld""... $ac_c" 1>&6
    1654 echo "configure:1655: checking target's ld" >&5
     1599echo "configure:1600: checking target's ld" >&5
    16551600if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    16561601  echo $ac_n "(cached) $ac_c" 1>&6
     
    16851630    # intends
    16861631    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1687 echo "configure:1688: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
     1632echo "configure:1633: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
    16881633    case "$LD_FOR_TARGET" in
    16891634    /*) # valid
     
    17021647set dummy "$program_prefix"ld; ac_word=$2
    17031648echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1704 echo "configure:1705: checking for $ac_word" >&5
     1649echo "configure:1650: checking for $ac_word" >&5
    17051650if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    17061651  echo $ac_n "(cached) $ac_c" 1>&6
     
    17391684 
    17401685echo $ac_n "checking target's nm""... $ac_c" 1>&6
    1741 echo "configure:1742: checking target's nm" >&5
     1686echo "configure:1687: checking target's nm" >&5
    17421687if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    17431688  echo $ac_n "(cached) $ac_c" 1>&6
     
    17721717    # intends
    17731718    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1774 echo "configure:1775: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
     1719echo "configure:1720: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
    17751720    case "$NM_FOR_TARGET" in
    17761721    /*) # valid
     
    17891734set dummy "$program_prefix"nm; ac_word=$2
    17901735echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1791 echo "configure:1792: checking for $ac_word" >&5
     1736echo "configure:1737: checking for $ac_word" >&5
    17921737if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    17931738  echo $ac_n "(cached) $ac_c" 1>&6
     
    18271772 
    18281773echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
    1829 echo "configure:1830: checking target's ranlib" >&5
     1774echo "configure:1775: checking target's ranlib" >&5
    18301775if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    18311776  echo $ac_n "(cached) $ac_c" 1>&6
     
    18601805    # intends
    18611806    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1862 echo "configure:1863: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
     1807echo "configure:1808: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
    18631808    case "$RANLIB_FOR_TARGET" in
    18641809    /*) # valid
     
    18771822set dummy "$program_prefix"ranlib; ac_word=$2
    18781823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1879 echo "configure:1880: checking for $ac_word" >&5
     1824echo "configure:1825: checking for $ac_word" >&5
    18801825if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    18811826  echo $ac_n "(cached) $ac_c" 1>&6
     
    19161861   
    19171862echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
    1918 echo "configure:1919: checking whether $AR_FOR_TARGET -s works" >&5
     1863echo "configure:1864: checking whether $AR_FOR_TARGET -s works" >&5
    19191864if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
    19201865  echo $ac_n "(cached) $ac_c" 1>&6
     
    19251870{ return b; }
    19261871EOF
    1927 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    1928   && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     1872if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     1873  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    19291874  && test -s conftest.a ; \
    19301875then
     
    19511896 
    19521897echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
    1953 echo "configure:1954: checking target's objcopy" >&5
     1898echo "configure:1899: checking target's objcopy" >&5
    19541899if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    19551900  echo $ac_n "(cached) $ac_c" 1>&6
     
    19841929    # intends
    19851930    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1986 echo "configure:1987: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
     1931echo "configure:1932: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
    19871932    case "$OBJCOPY_FOR_TARGET" in
    19881933    /*) # valid
     
    20011946set dummy "$program_prefix"objcopy; ac_word=$2
    20021947echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2003 echo "configure:2004: checking for $ac_word" >&5
     1948echo "configure:1949: checking for $ac_word" >&5
    20041949if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    20051950  echo $ac_n "(cached) $ac_c" 1>&6
     
    20381983 
    20391984echo $ac_n "checking target's size""... $ac_c" 1>&6
    2040 echo "configure:2041: checking target's size" >&5
     1985echo "configure:1986: checking target's size" >&5
    20411986if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    20421987  echo $ac_n "(cached) $ac_c" 1>&6
     
    20712016    # intends
    20722017    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2073 echo "configure:2074: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
     2018echo "configure:2019: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
    20742019    case "$SIZE_FOR_TARGET" in
    20752020    /*) # valid
     
    20882033set dummy "$program_prefix"size; ac_word=$2
    20892034echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2090 echo "configure:2091: checking for $ac_word" >&5
     2035echo "configure:2036: checking for $ac_word" >&5
    20912036if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    20922037  echo $ac_n "(cached) $ac_c" 1>&6
     
    21252070 
    21262071echo $ac_n "checking target's strip""... $ac_c" 1>&6
    2127 echo "configure:2128: checking target's strip" >&5
     2072echo "configure:2073: checking target's strip" >&5
    21282073if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    21292074  echo $ac_n "(cached) $ac_c" 1>&6
     
    21582103    # intends
    21592104    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2160 echo "configure:2161: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
     2105echo "configure:2106: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
    21612106    case "$STRIP_FOR_TARGET" in
    21622107    /*) # valid
     
    21752120set dummy "$program_prefix"strip; ac_word=$2
    21762121echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2177 echo "configure:2178: checking for $ac_word" >&5
     2122echo "configure:2123: checking for $ac_word" >&5
    21782123if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    21792124  echo $ac_n "(cached) $ac_c" 1>&6
     
    22142159 if test "${target_cpu}" = "i386"; then
    22152160    echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6
    2216 echo "configure:2217: checking for 16 bit mode assembler support" >&5
     2161echo "configure:2162: checking for 16 bit mode assembler support" >&5
    22172162if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then
    22182163  echo $ac_n "(cached) $ac_c" 1>&6
     
    22242169         lgdt 0
    22252170EOF
    2226       if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
     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; }; }; then
    22272172        rtems_cv_prog_gas_code16=yes
    22282173      else
     
    22492194set dummy gcc; ac_word=$2
    22502195echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2251 echo "configure:2252: checking for $ac_word" >&5
     2196echo "configure:2197: checking for $ac_word" >&5
    22522197if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    22532198  echo $ac_n "(cached) $ac_c" 1>&6
     
    22792224set dummy cc; ac_word=$2
    22802225echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2281 echo "configure:2282: checking for $ac_word" >&5
     2226echo "configure:2227: checking for $ac_word" >&5
    22822227if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    22832228  echo $ac_n "(cached) $ac_c" 1>&6
     
    23302275set dummy cl; ac_word=$2
    23312276echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2332 echo "configure:2333: checking for $ac_word" >&5
     2277echo "configure:2278: checking for $ac_word" >&5
    23332278if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    23342279  echo $ac_n "(cached) $ac_c" 1>&6
     
    23622307
    23632308echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2364 echo "configure:2365: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2309echo "configure:2310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    23652310
    23662311ac_ext=c
     
    23732318cat > conftest.$ac_ext << EOF
    23742319
    2375 #line 2376 "configure"
     2320#line 2321 "configure"
    23762321#include "confdefs.h"
    23772322
    23782323main(){return(0);}
    23792324EOF
    2380 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2325if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23812326  ac_cv_prog_cc_works=yes
    23822327  # If we can't run a trivial program, we are probably using a cross compiler.
     
    24042349fi
    24052350echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2406 echo "configure:2407: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2351echo "configure:2352: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    24072352echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    24082353cross_compiling=$ac_cv_prog_cc_cross
    24092354
    24102355echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    2411 echo "configure:2412: checking whether we are using GNU C" >&5
     2356echo "configure:2357: checking whether we are using GNU C" >&5
    24122357if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    24132358  echo $ac_n "(cached) $ac_c" 1>&6
     
    24182363#endif
    24192364EOF
    2420 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     2365if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    24212366  ac_cv_prog_gcc=yes
    24222367else
     
    24372382CFLAGS=
    24382383echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    2439 echo "configure:2440: checking whether ${CC-cc} accepts -g" >&5
     2384echo "configure:2385: checking whether ${CC-cc} accepts -g" >&5
    24402385if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    24412386  echo $ac_n "(cached) $ac_c" 1>&6
     
    24732418
    24742419echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6
    2475 echo "configure:2476: checking whether $RTEMS_HOST supports System V semaphores" >&5
     2420echo "configure:2421: checking whether $RTEMS_HOST supports System V semaphores" >&5
    24762421if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then
    24772422  echo $ac_n "(cached) $ac_c" 1>&6
     
    24822427else
    24832428  cat > conftest.$ac_ext <<EOF
    2484 #line 2485 "configure"
     2429#line 2430 "configure"
    24852430#include "confdefs.h"
    24862431
     
    25082453
    25092454EOF
    2510 if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2455if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    25112456then
    25122457  rtems_cv_sysv_sem="yes"
     
    25312476
    25322477echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6
    2533 echo "configure:2534: checking whether $RTEMS_HOST supports System V shared memory" >&5
     2478echo "configure:2479: checking whether $RTEMS_HOST supports System V shared memory" >&5
    25342479if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then
    25352480  echo $ac_n "(cached) $ac_c" 1>&6
     
    25402485else
    25412486  cat > conftest.$ac_ext <<EOF
    2542 #line 2543 "configure"
     2487#line 2488 "configure"
    25432488#include "confdefs.h"
    25442489
     
    25562501
    25572502EOF
    2558 if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2503if { (eval echo configure:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    25592504then
    25602505  rtems_cv_sysv_shm="yes"
     
    25792524
    25802525echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6
    2581 echo "configure:2582: checking whether $RTEMS_HOST supports System V messages" >&5
     2526echo "configure:2527: checking whether $RTEMS_HOST supports System V messages" >&5
    25822527if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then
    25832528  echo $ac_n "(cached) $ac_c" 1>&6
     
    25882533else
    25892534  cat > conftest.$ac_ext <<EOF
    2590 #line 2591 "configure"
     2535#line 2536 "configure"
    25912536#include "confdefs.h"
    25922537
     
    26042549
    26052550EOF
    2606 if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2551if { (eval echo configure:2552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    26072552then
    26082553  rtems_cv_sysv_msg="yes"
     
    26352580
    26362581echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
    2637 echo "configure:2638: checking for make/custom/$RTEMS_BSP.cfg" >&5
     2582echo "configure:2583: checking for make/custom/$RTEMS_BSP.cfg" >&5
    26382583if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
    26392584  echo "$ac_t""yes" 1>&6
     
    26432588
    26442589echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6
    2645 echo "configure:2646: checking whether BSP supports multiprocessing" >&5
     2590echo "configure:2591: checking whether BSP supports multiprocessing" >&5
    26462591if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then
    26472592  echo $ac_n "(cached) $ac_c" 1>&6
     
    26562601      rtems_cv_HAS_MP="no";
    26572602    fi
    2658  
    26592603fi
    26602604
     
    26662610fi
    26672611
     2612
     2613if eval "test \"`echo '$''{'rtems_cv_HAS_CPLUSPLUS'+set}'`\" = set"; then
     2614  echo $ac_n "(cached) $ac_c" 1>&6
     2615else
     2616      if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
     2617      if test -n "$CXX_FOR_TARGET"; then
     2618        rtems_cv_HAS_CPLUSPLUS="yes";
     2619      else
     2620        rtems_cv_HAS_CPLUSPLUS="no";
     2621      fi
     2622    else
     2623      rtems_cv_HAS_CPLUSPLUS="no";
     2624    fi
     2625 
     2626fi
     2627HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS";
     2628
     2629if eval "test \"`echo '$''{'rtems_cv_HAS_NETWORKING'+set}'`\" = set"; then
     2630  echo $ac_n "(cached) $ac_c" 1>&6
     2631else
     2632      if test "$RTEMS_HAS_NETWORKING" = "yes"; then
     2633      rtems_cv_HAS_NETWORKING="yes";
     2634    else
     2635      rtems_cv_HAS_NETWORKING="no";
     2636    fi
     2637 
     2638fi
     2639HAS_NETWORKING="$rtems_cv_HAS_NETWORKING";
    26682640
    26692641
     
    27072679 
    27082680echo $ac_n "checking for Makefile.in in libbsp/${bspcpudir}$bspdir""... $ac_c" 1>&6
    2709 echo "configure:2710: checking for Makefile.in in libbsp/${bspcpudir}$bspdir" >&5
     2681echo "configure:2682: checking for Makefile.in in libbsp/${bspcpudir}$bspdir" >&5
    27102682if test -d $srcdir/libbsp/${bspcpudir}$bspdir; then
    27112683  rtems_av_save_dir=`pwd`;
     
    27222694 
    27232695echo $ac_n "checking for Makefile.in in libbsp/${bspcpudir}shared""... $ac_c" 1>&6
    2724 echo "configure:2725: checking for Makefile.in in libbsp/${bspcpudir}shared" >&5
     2696echo "configure:2697: checking for Makefile.in in libbsp/${bspcpudir}shared" >&5
    27252697if test -d $srcdir/libbsp/${bspcpudir}shared; then
    27262698  rtems_av_save_dir=`pwd`;
     
    27462718fi
    27472719
     2720if test "$HAS_MP" = "yes"; then
     2721  makefiles="$makefiles libbsp/shmdr/Makefile"
     2722fi
     2723
    27482724
    27492725
     
    27582734
    27592735echo $ac_n "checking for Makefile.in in libcpu/$RTEMS_CPU""... $ac_c" 1>&6
    2760 echo "configure:2761: checking for Makefile.in in libcpu/$RTEMS_CPU" >&5
     2736echo "configure:2737: checking for Makefile.in in libcpu/$RTEMS_CPU" >&5
    27612737if test -d $srcdir/libcpu/$RTEMS_CPU; then
    27622738  rtems_av_save_dir=`pwd`;
     
    27782754   
    27792755echo $ac_n "checking for Makefile.in in start/$RTEMS_CPU""... $ac_c" 1>&6
    2780 echo "configure:2781: checking for Makefile.in in start/$RTEMS_CPU" >&5
     2756echo "configure:2757: checking for Makefile.in in start/$RTEMS_CPU" >&5
    27812757if test -d $srcdir/start/$RTEMS_CPU; then
    27822758  rtems_av_save_dir=`pwd`;
     
    27942770esac
    27952771
    2796 # If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
    2797 if test "$RTEMS_USE_MACROS" = "yes"; then
    2798   inline_dir=macros
    2799   if test "$RTEMS_HAS_POSIX_API" = "yes"; then
    2800     # The problem is that there is currently no code in posix/macros :)
    2801     { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; }
    2802   fi
    2803 else
    2804   inline_dir=inline
    2805 fi
    2806 
    28072772# If the TCP/IP stack is enabled, then find all TCP/IP Makefiles
    28082773echo $ac_n "checking if networking is enabled? ""... $ac_c" 1>&6
    2809 echo "configure:2810: checking if networking is enabled? " >&5
     2774echo "configure:2775: checking if networking is enabled? " >&5
    28102775echo "$ac_t""$RTEMS_HAS_NETWORKING" 1>&6
    28112776if test "$RTEMS_HAS_NETWORKING" = "yes"; then
    28122777 
    28132778echo $ac_n "checking for Makefile.in in libnetworking""... $ac_c" 1>&6
    2814 echo "configure:2815: checking for Makefile.in in libnetworking" >&5
     2779echo "configure:2780: checking for Makefile.in in libnetworking" >&5
    28152780if test -d $srcdir/libnetworking; then
    28162781  rtems_av_save_dir=`pwd`;
     
    28272792 
    28282793echo $ac_n "checking for Makefile.in in librpc""... $ac_c" 1>&6
    2829 echo "configure:2830: checking for Makefile.in in librpc" >&5
     2794echo "configure:2795: checking for Makefile.in in librpc" >&5
    28302795if test -d $srcdir/librpc; then
    28312796  rtems_av_save_dir=`pwd`;
     
    28432808  if test "$RTEMS_HAS_RDBG" = "yes"; then
    28442809    echo $ac_n "checking whether BSP supports librdbg""... $ac_c" 1>&6
    2845 echo "configure:2846: checking whether BSP supports librdbg" >&5
     2810echo "configure:2811: checking whether BSP supports librdbg" >&5
    28462811if eval "test \"`echo '$''{'rtems_cv_HAS_RDBG'+set}'`\" = set"; then
    28472812  echo $ac_n "(cached) $ac_c" 1>&6
     
    28652830set dummy rpcgen; ac_word=$2
    28662831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2867 echo "configure:2868: checking for $ac_word" >&5
     2832echo "configure:2833: checking for $ac_word" >&5
    28682833if eval "test \"`echo '$''{'ac_cv_prog_RPCGEN'+set}'`\" = set"; then
    28692834  echo $ac_n "(cached) $ac_c" 1>&6
     
    28962861set dummy $ac_prog; ac_word=$2
    28972862echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2898 echo "configure:2899: checking for $ac_word" >&5
     2863echo "configure:2864: checking for $ac_word" >&5
    28992864if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    29002865  echo $ac_n "(cached) $ac_c" 1>&6
     
    29352900     
    29362901echo $ac_n "checking for Makefile.in in librdbg""... $ac_c" 1>&6
    2937 echo "configure:2938: checking for Makefile.in in librdbg" >&5
     2902echo "configure:2903: checking for Makefile.in in librdbg" >&5
    29382903if test -d $srcdir/librdbg; then
    29392904  rtems_av_save_dir=`pwd`;
     
    29562921 
    29572922echo $ac_n "checking for Makefile.in in librtems++""... $ac_c" 1>&6
    2958 echo "configure:2959: checking for Makefile.in in librtems++" >&5
     2923echo "configure:2924: checking for Makefile.in in librtems++" >&5
    29592924if test -d $srcdir/librtems++; then
    29602925  rtems_av_save_dir=`pwd`;
     
    29872952if test "$RTEMS_HAS_HWAPI" = "yes"; then
    29882953  echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6
    2989 echo "configure:2990: checking whether libwapi is present" >&5
     2954echo "configure:2955: checking whether libwapi is present" >&5
    29902955  if test -f ${srcdir}/libhwapi/Makefile.in ; then
    29912956    echo "$ac_t""yes" 1>&6
     
    29932958   
    29942959echo $ac_n "checking for Makefile.in in libhwapi/analog""... $ac_c" 1>&6
    2995 echo "configure:2996: checking for Makefile.in in libhwapi/analog" >&5
     2960echo "configure:2961: checking for Makefile.in in libhwapi/analog" >&5
    29962961if test -d $srcdir/libhwapi/analog; then
    29972962  rtems_av_save_dir=`pwd`;
     
    30082973   
    30092974echo $ac_n "checking for Makefile.in in libhwapi/discrete""... $ac_c" 1>&6
    3010 echo "configure:3011: checking for Makefile.in in libhwapi/discrete" >&5
     2975echo "configure:2976: checking for Makefile.in in libhwapi/discrete" >&5
    30112976if test -d $srcdir/libhwapi/discrete; then
    30122977  rtems_av_save_dir=`pwd`;
     
    30232988   
    30242989echo $ac_n "checking for Makefile.in in libhwapi/drivers""... $ac_c" 1>&6
    3025 echo "configure:3026: checking for Makefile.in in libhwapi/drivers" >&5
     2990echo "configure:2991: checking for Makefile.in in libhwapi/drivers" >&5
    30262991if test -d $srcdir/libhwapi/drivers; then
    30272992  rtems_av_save_dir=`pwd`;
     
    30383003   
    30393004echo $ac_n "checking for Makefile.in in libhwapi/non_volatile_memory""... $ac_c" 1>&6
    3040 echo "configure:3041: checking for Makefile.in in libhwapi/non_volatile_memory" >&5
     3005echo "configure:3006: checking for Makefile.in in libhwapi/non_volatile_memory" >&5
    30413006if test -d $srcdir/libhwapi/non_volatile_memory; then
    30423007  rtems_av_save_dir=`pwd`;
     
    30533018   
    30543019echo $ac_n "checking for Makefile.in in libhwapi/serial""... $ac_c" 1>&6
    3055 echo "configure:3056: checking for Makefile.in in libhwapi/serial" >&5
     3020echo "configure:3021: checking for Makefile.in in libhwapi/serial" >&5
    30563021if test -d $srcdir/libhwapi/serial; then
    30573022  rtems_av_save_dir=`pwd`;
     
    30683033   
    30693034echo $ac_n "checking for Makefile.in in libhwapi/support""... $ac_c" 1>&6
    3070 echo "configure:3071: checking for Makefile.in in libhwapi/support" >&5
     3035echo "configure:3036: checking for Makefile.in in libhwapi/support" >&5
    30713036if test -d $srcdir/libhwapi/support; then
    30723037  rtems_av_save_dir=`pwd`;
     
    30833048   
    30843049echo $ac_n "checking for Makefile.in in libhwapi/wrapup""... $ac_c" 1>&6
    3085 echo "configure:3086: checking for Makefile.in in libhwapi/wrapup" >&5
     3050echo "configure:3051: checking for Makefile.in in libhwapi/wrapup" >&5
    30863051if test -d $srcdir/libhwapi/wrapup; then
    30873052  rtems_av_save_dir=`pwd`;
     
    31113076
    31123077echo $ac_n "checking for Makefile.in in libchip""... $ac_c" 1>&6
    3113 echo "configure:3114: checking for Makefile.in in libchip" >&5
     3078echo "configure:3079: checking for Makefile.in in libchip" >&5
    31143079if test -d $srcdir/libchip; then
    31153080  rtems_av_save_dir=`pwd`;
     
    31263091
    31273092echo $ac_n "checking for Makefile.in in libmisc""... $ac_c" 1>&6
    3128 echo "configure:3129: checking for Makefile.in in libmisc" >&5
     3093echo "configure:3094: checking for Makefile.in in libmisc" >&5
    31293094if test -d $srcdir/libmisc; then
    31303095  rtems_av_save_dir=`pwd`;
     
    32633228include/Makefile
    32643229libbsp/Makefile
    3265 libbsp/shmdr/Makefile
    32663230libc/Makefile
    32673231libcpu/Makefile
     
    33223286s%@MAINT@%$MAINT%g
    33233287s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g
    3324 s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
    33253288s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g
    33263289s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g
    3327 s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g
    33283290s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
    33293291s%@RTEMS_HAS_HWAPI@%$RTEMS_HAS_HWAPI%g
     
    33533315s%@CC@%$CC%g
    33543316s%@HAS_MP@%$HAS_MP%g
     3317s%@HAS_CPLUSPLUS@%$HAS_CPLUSPLUS%g
     3318s%@HAS_NETWORKING@%$HAS_NETWORKING%g
    33553319s%@RTEMS_LIBBSP_CPU_SUBDIR@%$RTEMS_LIBBSP_CPU_SUBDIR%g
    33563320s%@UNIX_TRUE@%$UNIX_TRUE%g
     
    34103374include/Makefile
    34113375libbsp/Makefile
    3412 libbsp/shmdr/Makefile
    34133376libc/Makefile
    34143377libcpu/Makefile
  • c/src/lib/configure.in

    r22544db9 r3a8915e  
    1414
    1515RTEMS_ENABLE_MULTIPROCESSING
    16 RTEMS_ENABLE_POSIX
    1716RTEMS_ENABLE_NETWORKING
    1817RTEMS_ENABLE_RDBG
    19 RTEMS_ENABLE_INLINES
    2018RTEMS_ENABLE_CXX
    2119RTEMS_ENABLE_GCC28
     
    5856RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    5957RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
     58RTEMS_CHECK_CXX(RTEMS_BSP)
     59RTEMS_CHECK_NETWORKING(RTEMS_BSP)
    6060
    6161RTEMS_BSP_ALIAS(${RTEMS_BSP},bspdir)
     
    9999fi
    100100
     101if test "$HAS_MP" = "yes"; then
     102  makefiles="$makefiles libbsp/shmdr/Makefile"
     103fi
     104
    101105AM_CONDITIONAL(UNIX,test "$RTEMS_CPU" = "unix")
    102106# find all the CPU dependent library Makefiles
     
    113117    ;;
    114118esac
    115 
    116 # If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
    117 if test "$RTEMS_USE_MACROS" = "yes"; then
    118   inline_dir=macros
    119   if test "$RTEMS_HAS_POSIX_API" = "yes"; then
    120     # The problem is that there is currently no code in posix/macros :)
    121     AC_MSG_ERROR(Macros are not implemented for the POSIX API)
    122   fi
    123 else
    124   inline_dir=inline
    125 fi
    126119
    127120# If the TCP/IP stack is enabled, then find all TCP/IP Makefiles
     
    196189include/Makefile
    197190libbsp/Makefile
    198 libbsp/shmdr/Makefile
    199191libc/Makefile
    200192libcpu/Makefile
  • c/src/lib/include/Makefile.in

    r22544db9 r3a8915e  
    1818mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
    1919
    20 INSTALLDIRS = $(PROJECT_INCLUDE)/sys $(PROJECT_INCLUDE)/motorola \
    21     $(PROJECT_INCLUDE)/zilog $(LIBRPCdir) $(LIBRDBGdir) \
    22     $(LIBRTEMSCPLUSPLUSdir) $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/rtems++ \
    23     $(PROJECT_INCLUDE)/rpc $(PROJECT_INCLUDE)/rdbg
     20INSTALLDIRS = $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/sys \
     21    $(PROJECT_INCLUDE)/motorola $(PROJECT_INCLUDE)/zilog $(LIBRPCdir) \
     22    $(LIBRDBGdir) $(LIBRTEMSCPLUSPLUSdir)
    2423
    2524$(INSTALLDIRS):
     
    8180        @$(INSTALL_CHANGE) -m 644 $(ZILOG_H_FILES) $(PROJECT_INCLUDE)/zilog
    8281        @if test "$(HAS_CPLUSPLUS)" = "yes"; then \
    83         $(INSTALL_CHANGE) -m 644 $(RTEMSCPLUSPLUS_H_FILES) $(PROJECT_INCLUDE)/rtems++; \
     82        $(INSTALL_CHANGE) -m 644 $(RTEMSCPLUSPLUS_H_FILES) $(LIBRTEMSCPLUSPLUSdir); \
    8483        fi
    8584        @if test "$(HAS_NETWORKING)" = "yes"; then \
    86         $(INSTALL_CHANGE) -m 644 $(RPC_H_FILES) $(PROJECT_INCLUDE)/rpc; \
     85        $(INSTALL_CHANGE) -m 644 $(RPC_H_FILES) $(LIBRPCdir); \
    8786        fi
    8887        @if test "$(HAS_RDBG)" = "yes"; then \
    89         $(INSTALL_CHANGE) -m 644 $(RDBG_H_FILES) $(PROJECT_INCLUDE)/rdbg; \
     88        $(INSTALL_CHANGE) -m 644 $(RDBG_H_FILES) $(LIBRDBGdir); \
    9089        fi
    9190
  • c/src/lib/libbsp/bare/include/Makefile.in

    r22544db9 r3a8915e  
    1414VPATH = @srcdir@
    1515
    16 H_FILES = $(srcdir)/bsp.h
     16H_FILES = $(srcdir)/bsp.h $(srcdir)/coverhd.h
    1717
    1818#
  • c/src/lib/libbsp/i386/force386/startup/Makefile.in

    r22544db9 r3a8915e  
    6868        $(make-rel)
    6969all: ${ARCH} $(SRCS) $(PGM)
    70         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     70        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    7171
    7272# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/i386/i386ex/startup/Makefile.in

    r22544db9 r3a8915e  
    7373        $(make-rel)
    7474all: ${ARCH} $(SRCS) $(PGM)
    75         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     75        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    7676
    7777# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/i386/pc386/bsp_specs

    r22544db9 r3a8915e  
    2020%{!qrtems: %(old_startfile)} %{qrtems: \
    2121%{!qrtems_debug: start.o%s crti.o%s crtbegin.o%s} \
    22 %{qrtems_debug: start_g.o%s}}
     22%{qrtems_debug: start_g.o%s crti.o%s crtbegin.o%s}}
    2323
    2424*link:
  • c/src/lib/libbsp/i386/pc386/startup/Makefile.in

    r22544db9 r3a8915e  
    7171        $(make-rel)
    7272all: ${ARCH} $(SRCS) $(PGM)
    73         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     73        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    7474
    7575# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/i386/ts_386ex/startup/Makefile.in

    r22544db9 r3a8915e  
    7373        $(make-rel)
    7474all: ${ARCH} $(SRCS) $(PGM)
    75         @$(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     75        @$(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    7676
    7777# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/i960/cvme961/startup/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(PGM)
    66         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     66        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6767
    6868# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/m68k/dmv152/startup/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(PGM)
    66         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     66        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6767
    6868Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/libbsp/m68k/efi332/startup/Makefile.in

    r22544db9 r3a8915e  
    6969
    7070all: ${ARCH} $(SRCS) $(PGM)
    71         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    72         $(INSTALL_CHANGE) $(srcdir)/linkcmds_ROM $(PROJECT_RELEASE)/lib
    73         $(INSTALL_CHANGE) ${ARCH}/except_vect_332_ROM.o $(PROJECT_RELEASE)/lib
     71        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     72        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds_ROM $(PROJECT_RELEASE)/lib
     73        $(INSTALL_CHANGE) -m 644 ${ARCH}/except_vect_332_ROM.o $(PROJECT_RELEASE)/lib
    7474
    7575# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/m68k/efi68k/startup/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(PGM)
    66         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     66        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6767
    6868# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/m68k/gen68302/startup/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(PGM)
    66         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     66        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6767
    6868# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/m68k/gen68340/startup/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(PGM)
    66         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     66        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6767
    6868# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/m68k/gen68360/startup/Makefile.in

    r22544db9 r3a8915e  
    6565
    6666all: ${ARCH} $(SRCS) $(PGM)
    67         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(srcdir)/linkcmds.prom $(PROJECT_RELEASE)/lib
     67        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(srcdir)/linkcmds.prom $(PROJECT_RELEASE)/lib
    6868
    6969# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/m68k/idp/startup/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(PGM)
    66         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     66        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6767
    6868# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/m68k/mvme136/startup/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(PGM)
    66         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     66        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6767
    6868# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/m68k/mvme147/startup/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(PGM)
    66         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     66        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6767
    6868# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/m68k/mvme147s/startup/Makefile.in

    r22544db9 r3a8915e  
    6565
    6666all: ${ARCH} $(SRCS) $(PGM)
    67         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     67        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6868
    6969# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/m68k/mvme162/startup/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(PGM)
    66         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     66        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6767
    6868# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/m68k/mvme167/startup/Makefile.in

    r22544db9 r3a8915e  
    6666
    6767all: ${ARCH} $(SRCS) $(PGM)
    68         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    69         $(INSTALL_CHANGE) $(srcdir)/elflinkcmds $(PROJECT_RELEASE)/lib
     68        $(INSTALL_CHANGE) -m644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     69        $(INSTALL_CHANGE) -m644 $(srcdir)/elflinkcmds $(PROJECT_RELEASE)/lib
    7070
    7171Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/libbsp/m68k/ods68302/startup/Makefile.in

    r22544db9 r3a8915e  
    6969
    7070all: ${ARCH} $(SRCS) $(PGM)
    71         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(srcdir)/rom $(srcdir)/debugger $(PROJECT_RELEASE)/lib
     71        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(srcdir)/rom $(srcdir)/debugger $(PROJECT_RELEASE)/lib
    7272
    7373# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/mips64orion/p4000/startup/Makefile.in

    r22544db9 r3a8915e  
    6969
    7070all: ${ARCH} $(SRCS) $(PGM)
    71         $(INSTALL_CHANGE) $(srcdir)/ghlinkcmds $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     71        $(INSTALL_CHANGE) -m 644 $(srcdir)/ghlinkcmds $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    7272
    7373# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/no_cpu/no_bsp/startup/Makefile.in

    r22544db9 r3a8915e  
    7272# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    7373install: all
    74         $(INSTALL_CHANGE) linkcmds $(PROJECT_RELEASE)/lib
     74        $(INSTALL_CHANGE) -m 644 linkcmds $(PROJECT_RELEASE)/lib
    7575
    7676Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/libbsp/powerpc/dmv177/startup/Makefile.in

    r22544db9 r3a8915e  
    6969
    7070all: ${ARCH} $(SRCS) $(PGM)
    71         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     71        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    7272
    7373Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/libbsp/powerpc/eth_comm/startup/Makefile.in

    r22544db9 r3a8915e  
    6969
    7070all: ${ARCH} $(SRCS) $(PGM)
    71         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     71        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    7272
    7373# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/powerpc/helas403/startup/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(PGM)
    66         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     66        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6767
    6868# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/powerpc/mcp750/startup/Makefile.in

    r22544db9 r3a8915e  
    6565all: ${ARCH} $(SRCS) $(OBJS)
    6666        $(INSTALL_VARIANT) -m 755 ${PGM} $(PROJECT_RELEASE)/lib
    67         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     67        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6868
    6969$(PROJECT_RELEASE)/lib/libbsp.a:
  • c/src/lib/libbsp/powerpc/motorola_powerpc/startup/Makefile.in

    r22544db9 r3a8915e  
    6565all: ${ARCH} $(SRCS) $(OBJS)
    6666        $(INSTALL_VARIANT) -m 755 ${PGM} $(PROJECT_RELEASE)/lib
    67         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     67        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6868
    6969$(PROJECT_RELEASE)/lib/libbsp.a:
  • c/src/lib/libbsp/powerpc/papyrus/startup/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(PGM)
    66         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     66        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    6767
    6868# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/powerpc/ppcn_60x/startup/Makefile.in

    r22544db9 r3a8915e  
    7373
    7474all: ${ARCH} $(SRCS) $(PGM)
    75         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     75        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    7676
    7777Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/libbsp/powerpc/psim/startup/Makefile.in

    r22544db9 r3a8915e  
    6969
    7070all: ${ARCH} $(SRCS) $(PGM)
    71         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    72         $(INSTALL_CHANGE) $(srcdir)/device-tree $(PROJECT_RELEASE)/lib
     71        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     72        $(INSTALL_CHANGE) -m 644 $(srcdir)/device-tree $(PROJECT_RELEASE)/lib
    7373
    7474Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/libbsp/sh/gensh1/start/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(OBJS) $(PGM)
    66         $(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib
     66        @$(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib
    6767
    6868Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/libbsp/sh/gensh1/startup/Makefile.in

    r22544db9 r3a8915e  
    6969
    7070all: ${ARCH} $(SRCS) $(PGM)
    71         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     71        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    7272
    7373# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
  • c/src/lib/libbsp/sparc/erc32/startup/Makefile.in

    r22544db9 r3a8915e  
    7171
    7272all: ${ARCH} $(SRCS) $(PGM)
    73         $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
     73        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
    7474
    7575Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/libmisc/wrapup/Makefile.in

    r22544db9 r3a8915e  
    4545
    4646all: ${ARCH} $(SRCS) $(LIB)
    47         $(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib
     47        @$(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib
    4848
    4949Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/start/sh/Makefile.in

    r22544db9 r3a8915e  
    6464
    6565all: ${ARCH} $(SRCS) $(OBJS) $(PGM)
    66         $(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib
     66        @$(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib
    6767
    6868Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/libmisc/wrapup/Makefile.in

    r22544db9 r3a8915e  
    4545
    4646all: ${ARCH} $(SRCS) $(LIB)
    47         $(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib
     47        @$(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib
    4848
    4949Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/make/Makefile.am

    r22544db9 r3a8915e  
    3535        sed -e 's%\$$(RTEMS_BSP)%\@RTEMS_BSP\@%g' < $< >$@
    3636
    37 $(srcdir)/Makefile.inc.in: $(top_srcdir)/@RTEMS_TOPdir@/make/Templates/Makefile.inc.in
    38         echo "RTEMS_BSP = @""RTEMS_BSP@" > $@
    39         echo "" >> $@
    40         cat $< >> $@
    41 
    4237$(srcdir)/host.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/host.cfg.in
    4338        cp $< $@
  • c/src/make/Makefile.in

    r22544db9 r3a8915e  
    8888CXX_FOR_TARGET = @CXX_FOR_TARGET@
    8989GCCSED = @GCCSED@
     90HAS_CPLUSPLUS = @HAS_CPLUSPLUS@
    9091HAS_MP = @HAS_MP@
     92HAS_NETWORKING = @HAS_NETWORKING@
     93HAS_POSIX_API = @HAS_POSIX_API@
    9194HAS_RDBG = @HAS_RDBG@
    9295INSTALL_CHANGE = @INSTALL_CHANGE@
     
    482485@MAINTAINER_MODE_TRUE@  sed -e 's%\$$(RTEMS_BSP)%\@RTEMS_BSP\@%g' < $< >$@
    483486
    484 @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.inc.in: $(top_srcdir)/@RTEMS_TOPdir@/make/Templates/Makefile.inc.in
    485 @MAINTAINER_MODE_TRUE@  echo "RTEMS_BSP = @""RTEMS_BSP@" > $@
    486 @MAINTAINER_MODE_TRUE@  echo "" >> $@
    487 @MAINTAINER_MODE_TRUE@  cat $< >> $@
    488 
    489487@MAINTAINER_MODE_TRUE@$(srcdir)/host.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/host.cfg.in
    490488@MAINTAINER_MODE_TRUE@  cp $< $@
  • c/src/make/Makefile.inc.in

    r22544db9 r3a8915e  
    1 RTEMS_BSP = @RTEMS_BSP@
    2 
    31#
    4 #
    5 # Target specific settings. To be included in application Makefiles.
     2# BSP specific settings. To be included in application Makefiles
    63#
    74
    85prefix = @prefix@
    96
    10 CC_FOR_TARGET = @program_prefix@gcc
    11 AS_FOR_TARGET = @program_prefix@as
    12 AR_FOR_TARGET = @program_prefix@ar
    13 NM_FOR_TARGET = @program_prefix@nm
    14 LD_FOR_TARGET = @program_prefix@ld
    15 SIZE_FOR_TARGET = @program_prefix@size
    16 OBJCOPY_FOR_TARGET = @program_prefix@objcopy
     7CC_FOR_TARGET = @CC_FOR_TARGET@
     8AS_FOR_TARGET = @AS_FOR_TARGET@
     9AR_FOR_TARGET = @AR_FOR_TARGET@
     10NM_FOR_TARGET = @NM_FOR_TARGET@
     11LD_FOR_TARGET = @LD_FOR_TARGET@
     12SIZE_FOR_TARGET = @SIZE_FOR_TARGET@
     13OBJCOPY_FOR_TARGET = @OBJCOPY_FOR_TARGET@
    1714
    1815CC= $(CC_FOR_TARGET)
  • c/src/make/Templates/Makefile.in

    r22544db9 r3a8915e  
    8787CXX_FOR_TARGET = @CXX_FOR_TARGET@
    8888GCCSED = @GCCSED@
     89HAS_CPLUSPLUS = @HAS_CPLUSPLUS@
    8990HAS_MP = @HAS_MP@
     91HAS_NETWORKING = @HAS_NETWORKING@
     92HAS_POSIX_API = @HAS_POSIX_API@
    9093HAS_RDBG = @HAS_RDBG@
    9194INSTALL_CHANGE = @INSTALL_CHANGE@
  • c/src/make/aclocal.m4

    r22544db9 r3a8915e  
    938938])dnl
    939939
    940 dnl $Id$
     940dnl
     941dnl $Id$
     942dnl
    941943
    942944AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING,
     
    955957    else
    956958      rtems_cv_HAS_MP="no";
    957     fi
    958   ])
     959    fi])
    959960if test "$rtems_cv_HAS_MP" = "yes"; then
    960961HAS_MP="yes"
     
    965966])
    966967
     968dnl $Id$
     969dnl
    967970AC_DEFUN(RTEMS_CHECK_RDBG,
    968971[dnl
     
    982985])
    983986
     987dnl $Id$
     988dnl
     989AC_DEFUN(RTEMS_CHECK_POSIX_API,
     990[dnl
     991AC_REQUIRE([RTEMS_CHECK_CPU])dnl
     992AC_CACHE_CHECK([whether BSP supports libposix],
     993  rtems_cv_HAS_POSIX_API,
     994  [dnl
     995    case "$RTEMS_CPU" in
     996    unix*)
     997      rtems_cv_HAS_POSIX_API="no"
     998      ;;
     999    *)
     1000      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
     1001        rtems_cv_HAS_POSIX_API="yes";
     1002      else
     1003        rtems_cv_HAS_POSIX_API="disabled";
     1004      fi
     1005      ;;
     1006    esac])
     1007if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
     1008  HAS_POSIX_API="yes";
     1009else
     1010  HAS_POSIX_API="no";
     1011fi
     1012AC_SUBST(HAS_POSIX_API)dnl
     1013])
     1014
     1015dnl $Id$
     1016dnl
     1017AC_DEFUN(RTEMS_CHECK_CXX,
     1018[dnl
     1019AC_REQUIRE([RTEMS_CHECK_CPU])dnl
     1020AC_REQUIRE([RTEMS_PROG_CXX_FOR_TARGET])dnl
     1021AC_CACHE_VAL(rtems_cv_HAS_CPLUSPLUS,
     1022  [dnl
     1023    if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
     1024      if test -n "$CXX_FOR_TARGET"; then
     1025        rtems_cv_HAS_CPLUSPLUS="yes";
     1026      else
     1027        rtems_cv_HAS_CPLUSPLUS="no";
     1028      fi
     1029    else
     1030      rtems_cv_HAS_CPLUSPLUS="no";
     1031    fi
     1032  ])dnl
     1033HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS";
     1034AC_SUBST(HAS_CPLUSPLUS)dnl
     1035])
     1036
     1037dnl $Id$
     1038dnl
     1039AC_DEFUN(RTEMS_CHECK_NETWORKING,
     1040[dnl
     1041AC_REQUIRE([RTEMS_CHECK_CPU])dnl
     1042AC_CACHE_VAL(rtems_cv_HAS_NETWORKING,
     1043  [dnl
     1044    if test "$RTEMS_HAS_NETWORKING" = "yes"; then
     1045      rtems_cv_HAS_NETWORKING="yes";
     1046    else
     1047      rtems_cv_HAS_NETWORKING="no";
     1048    fi
     1049  ])dnl
     1050HAS_NETWORKING="$rtems_cv_HAS_NETWORKING";
     1051AC_SUBST(HAS_NETWORKING)dnl
     1052])
     1053
  • c/src/make/bsp.cfg.in

    r22544db9 r3a8915e  
     1## BSP configuration flags for BSP "@RTEMS_BSP@"
     2
    13##
    24## Does this BSP support multiprocessing ?
     
    810##
    911HAS_RDBG = @HAS_RDBG@
     12
     13##
     14## Does this BSP support RTEMS's posix API ?
     15##
     16HAS_POSIX_API = @HAS_POSIX_API@
     17
     18##
     19## Does this BSP support RTEMS's CXX API ?
     20##
     21HAS_CPLUSPLUS = @HAS_CPLUSPLUS@
     22
     23##
     24## Does this BSP support RTEMS's networking ?
     25##
     26HAS_NETWORKING = @HAS_NETWORKING@
  • c/src/make/compilers/Makefile.in

    r22544db9 r3a8915e  
    8787CXX_FOR_TARGET = @CXX_FOR_TARGET@
    8888GCCSED = @GCCSED@
     89HAS_CPLUSPLUS = @HAS_CPLUSPLUS@
    8990HAS_MP = @HAS_MP@
     91HAS_NETWORKING = @HAS_NETWORKING@
     92HAS_POSIX_API = @HAS_POSIX_API@
    9093HAS_RDBG = @HAS_RDBG@
    9194INSTALL_CHANGE = @INSTALL_CHANGE@
  • c/src/make/compilers/gcc-target-default.cfg

    r22544db9 r3a8915e  
    8888# This requires that at least the GNU C++ compiler and libg++ be installed.
    8989ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
    90 HAS_CPLUSPLUS=yes
    9190CPLUS_LD_LIBS += $(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
    92 else
    93 HAS_CPLUSPLUS=no
    9491endif
    9592
     
    288285    $(CONSTRUCTOR) \
    289286    $(OBJS) \
    290     $(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel) \
    291     $(PROJECT_RELEASE)/lib/libtest$(LIBSUFFIX_VA)
     287    $(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel)
    292288
    293289LINK_FILES =\
     
    296292    $(OBJS) \
    297293    $(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel) \
    298     $(PROJECT_RELEASE)/lib/libtest$(LIBSUFFIX_VA) \
    299294    $(PROJECT_RELEASE)/lib/librtemsall$(LIBSUFFIX_VA)
    300295
  • c/src/make/configure

    r22544db9 r3a8915e  
    29442944      rtems_cv_HAS_MP="no";
    29452945    fi
    2946  
    29472946fi
    29482947
     
    29562955
    29572956echo $ac_n "checking whether BSP supports librdbg""... $ac_c" 1>&6
    2958 echo "configure:2959: checking whether BSP supports librdbg" >&5
     2957echo "configure:2958: checking whether BSP supports librdbg" >&5
    29592958if eval "test \"`echo '$''{'rtems_cv_HAS_RDBG'+set}'`\" = set"; then
    29602959  echo $ac_n "(cached) $ac_c" 1>&6
     
    29722971HAS_RDBG="$rtems_cv_HAS_RDBG"
    29732972
     2973
     2974echo $ac_n "checking whether BSP supports libposix""... $ac_c" 1>&6
     2975echo "configure:2976: checking whether BSP supports libposix" >&5
     2976if eval "test \"`echo '$''{'rtems_cv_HAS_POSIX_API'+set}'`\" = set"; then
     2977  echo $ac_n "(cached) $ac_c" 1>&6
     2978else
     2979      case "$RTEMS_CPU" in
     2980    unix*)
     2981      rtems_cv_HAS_POSIX_API="no"
     2982      ;;
     2983    *)
     2984      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
     2985        rtems_cv_HAS_POSIX_API="yes";
     2986      else
     2987        rtems_cv_HAS_POSIX_API="disabled";
     2988      fi
     2989      ;;
     2990    esac
     2991fi
     2992
     2993echo "$ac_t""$rtems_cv_HAS_POSIX_API" 1>&6
     2994if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
     2995  HAS_POSIX_API="yes";
     2996else
     2997  HAS_POSIX_API="no";
     2998fi
     2999
     3000if eval "test \"`echo '$''{'rtems_cv_HAS_CPLUSPLUS'+set}'`\" = set"; then
     3001  echo $ac_n "(cached) $ac_c" 1>&6
     3002else
     3003      if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
     3004      if test -n "$CXX_FOR_TARGET"; then
     3005        rtems_cv_HAS_CPLUSPLUS="yes";
     3006      else
     3007        rtems_cv_HAS_CPLUSPLUS="no";
     3008      fi
     3009    else
     3010      rtems_cv_HAS_CPLUSPLUS="no";
     3011    fi
     3012 
     3013fi
     3014HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS";
     3015
     3016if eval "test \"`echo '$''{'rtems_cv_HAS_NETWORKING'+set}'`\" = set"; then
     3017  echo $ac_n "(cached) $ac_c" 1>&6
     3018else
     3019      if test "$RTEMS_HAS_NETWORKING" = "yes"; then
     3020      rtems_cv_HAS_NETWORKING="yes";
     3021    else
     3022      rtems_cv_HAS_NETWORKING="no";
     3023    fi
     3024 
     3025fi
     3026HAS_NETWORKING="$rtems_cv_HAS_NETWORKING";
    29743027
    29753028
     
    32443297s%@HAS_MP@%$HAS_MP%g
    32453298s%@HAS_RDBG@%$HAS_RDBG%g
     3299s%@HAS_POSIX_API@%$HAS_POSIX_API%g
     3300s%@HAS_CPLUSPLUS@%$HAS_CPLUSPLUS%g
     3301s%@HAS_NETWORKING@%$HAS_NETWORKING%g
    32463302s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g
    32473303s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g
  • c/src/make/configure.in

    r22544db9 r3a8915e  
    7474RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
    7575RTEMS_CHECK_RDBG(RTEMS_BSP)
     76RTEMS_CHECK_POSIX_API(RTEMS_BSP)
     77RTEMS_CHECK_CXX(RTEMS_BSP)
     78RTEMS_CHECK_NETWORKING(RTEMS_BSP)
    7679
    7780AC_SUBST(rtems_cv_prog_cc_cross)
  • c/src/make/custom/Makefile.in

    r22544db9 r3a8915e  
    8787CXX_FOR_TARGET = @CXX_FOR_TARGET@
    8888GCCSED = @GCCSED@
     89HAS_CPLUSPLUS = @HAS_CPLUSPLUS@
    8990HAS_MP = @HAS_MP@
     91HAS_NETWORKING = @HAS_NETWORKING@
     92HAS_POSIX_API = @HAS_POSIX_API@
    9093HAS_RDBG = @HAS_RDBG@
    9194INSTALL_CHANGE = @INSTALL_CHANGE@
  • c/src/make/custom/default.cfg.in

    r22544db9 r3a8915e  
    4141RTEMS_BSP_SPECS = $(PROJECT_ROOT)/@RTEMS_BSP@/lib/bsp_specs
    4242
    43 ## LIBC support
    44 ## Specify the one you want here and fill in the blanks.
    45 ## Currently CYGNUS newlib is supported.
    46 ## NOTE: RTEMS libcsupport.a includes RTEMS versions of stuff like
    47 ##       malloc, gettimeofday, etc.
    48 
    49 # Define this to yes if C++ is included in the development environment.
    50 # This requires that at least the GNU C++ compiler and libg++ be installed.
    51 ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
    52 HAS_CPLUSPLUS=yes
    53 else
    54 HAS_CPLUSPLUS=no
    55 endif
    56 
    57 # Define this to yes if this target wants the TCP/IP stack
    58 ifeq ($(RTEMS_HAS_NETWORKING),yes)
    59 HAS_NETWORKING=yes
    60 else
    61 HAS_NETWORKING=no
    62 endif
    63 
    64 # Define this to yes if this target wants the posix api
    65 ifeq ($(RTEMS_HAS_POSIX_API),yes)
    66 HAS_POSIX_API=yes
    67 else
    68 HAS_POSIX_API=no
    69 endif
    70 
    7143# Base name of start file
    7244START_BASE=start
  • c/src/make/host.cfg.in

    r22544db9 r3a8915e  
    4949
    5050#
    51 # RCS support
    52 #
    53 RCS_CLEAN=$(PROJECT_BIN)/rcs-clean
    54 
    55 #
    5651#  Rule to install a shell script with the proper shell to run it.
    5752#
  • c/src/tests/Makefile.in

    r22544db9 r3a8915e  
     1# Makefile.in generated automatically by automake 1.4 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4# This Makefile.in is free software; the Free Software Foundation
     5# gives unlimited permission to copy and/or distribute it,
     6# with or without modifications, as long as this notice is preserved.
     7
     8# This program is distributed in the hope that it will be useful,
     9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11# PARTICULAR PURPOSE.
     12
    113#
    2 #  $Id$
     14# $Id$
    315#
    416
    5 @SET_MAKE@
     17
     18
     19
     20SHELL = @SHELL@
     21
    622srcdir = @srcdir@
    723top_srcdir = @top_srcdir@
     24VPATH = @srcdir@
     25prefix = @prefix@
     26exec_prefix = @exec_prefix@
     27
     28bindir = @bindir@
     29sbindir = @sbindir@
     30libexecdir = @libexecdir@
     31datadir = @datadir@
     32sysconfdir = @sysconfdir@
     33sharedstatedir = @sharedstatedir@
     34localstatedir = @localstatedir@
     35libdir = @libdir@
     36infodir = @infodir@
     37mandir = @mandir@
     38includedir = @includedir@
     39oldincludedir = /usr/include
     40
     41DESTDIR =
     42
     43pkgdatadir = $(datadir)/@PACKAGE@
     44pkglibdir = $(libdir)/@PACKAGE@
     45pkgincludedir = $(includedir)/@PACKAGE@
     46
    847top_builddir = .
    948
     49ACLOCAL = @ACLOCAL@
     50AUTOCONF = @AUTOCONF@
     51AUTOMAKE = @AUTOMAKE@
     52AUTOHEADER = @AUTOHEADER@
     53
     54INSTALL = @INSTALL@
     55INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
     56INSTALL_DATA = @INSTALL_DATA@
     57INSTALL_SCRIPT = @INSTALL_SCRIPT@
     58transform = @program_transform_name@
     59
     60NORMAL_INSTALL = :
     61PRE_INSTALL = :
     62POST_INSTALL = :
     63NORMAL_UNINSTALL = :
     64PRE_UNINSTALL = :
     65POST_UNINSTALL = :
     66build_alias = @build_alias@
     67build_triplet = @build@
     68host_alias = @host_alias@
     69host_triplet = @host@
     70target_alias = @target_alias@
     71target_triplet = @target@
     72BARE_CPU_CFLAGS = @BARE_CPU_CFLAGS@
     73BARE_CPU_MODEL = @BARE_CPU_MODEL@
     74CC = @CC@
     75CC_FOR_TARGET = @CC_FOR_TARGET@
     76CPP = @CPP@
     77CXX = @CXX@
     78CXXCPP = @CXXCPP@
     79CXX_FOR_TARGET = @CXX_FOR_TARGET@
     80GCCSED = @GCCSED@
     81HAS_MP = @HAS_MP@
     82HAS_POSIX_API = @HAS_POSIX_API@
     83INSTALL_CHANGE = @INSTALL_CHANGE@
     84MAINT = @MAINT@
     85MAKEINFO = @MAKEINFO@
     86PACKAGE = @PACKAGE@
     87PACKHEX = @PACKHEX@
     88PROJECT_ROOT = @PROJECT_ROOT@
     89RTEMS_BSP = @RTEMS_BSP@
     90RTEMS_CPU = @RTEMS_CPU@
     91RTEMS_HAS_MULTIPROCESSING = @RTEMS_HAS_MULTIPROCESSING@
     92RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
     93RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
     94RTEMS_HOST = @RTEMS_HOST@
     95RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
    1096RTEMS_ROOT = @RTEMS_ROOT@
    11 PROJECT_ROOT = @PROJECT_ROOT@
    12 
    13 VPATH = @srcdir@
    14 
    15 include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    16 include $(RTEMS_ROOT)/make/directory.cfg
    17 
    18 INSTALL_CHANGE = @INSTALL_CHANGE@
    19 mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
    20 
    21 INSTALLDIRS = $(PROJECT_RELEASE)/tests/screens/sptests \
    22     $(PROJECT_RELEASE)/tests/screens/mptests \
    23     $(PROJECT_RELEASE)/tests/screens/psxtests \
    24     $(PROJECT_RELEASE)/tests/screens/mptests/node1 \
    25     $(PROJECT_RELEASE)/tests/screens/mptests/node2 \
    26     $(PROJECT_RELEASE)/samples
    27 
    28 $(INSTALLDIRS):
    29         @$(mkinstalldirs) $(INSTALLDIRS)
    30 
    31 all: README
    32 
    33 # mptests are the multiprocessing test suite
    34 # We only build them if HAS_MP was defined
    35 MP_TESTS_yes_V = mptests
    36 MP_TESTS = $(MP_TESTS_$(HAS_MP)_V)
    37 
    38 # psxtests are the POSIX API test suite
    39 # We only build them if HAS_POSIX_API was defined
    40 POSIX_TESTS_yes_V = psxtests
    41 POSIX_TESTS = $(POSIX_TESTS_$(HAS_POSIX_API)_V)
    42 
    43 # wildcard on this lets ALL test suites be optional
    44 SUB_DIRS = $(wildcard tools support samples libtests sptests $(MP_TESTS) \
    45     $(POSIX_TESTS) tmtests)
    46 
    47 preinstall: $(INSTALLDIRS)
    48 
    49 CLOBBER_ADDITIONS += config.log config.cache
    50 
    51 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     97RTEMS_TOPdir = @RTEMS_TOPdir@
     98RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
     99VERSION = @VERSION@
     100
     101AUTOMAKE_OPTIONS = foreign 1.4
     102ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
     103
     104SUBDIRS = support @subdirs@
     105ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     106mkinstalldirs = $(SHELL) $(top_srcdir)/../../../mkinstalldirs
     107CONFIG_CLEAN_FILES =
     108DIST_COMMON =  README Makefile.am Makefile.in aclocal.m4 configure \
     109configure.in
     110
     111
     112DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
     113
     114TAR = tar
     115GZIP_ENV = --best
     116all: all-redirect
     117.SUFFIXES:
     118$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../automake/subdirs.am $(top_srcdir)/../../../automake/local.am
     119        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
     120
     121Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
    52122        cd $(top_builddir) \
    53          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     123          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     124
     125$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
     126        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
     127
     128config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
     129        $(SHELL) ./config.status --recheck
     130$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
     131        cd $(srcdir) && $(AUTOCONF)
     132
     133# This directory's subdirectories are mostly independent; you can cd
     134# into them and run `make' without going through this Makefile.
     135# To change the values of `make' variables: instead of editing Makefiles,
     136# (1) if the variable is set in `config.status', edit `config.status'
     137#     (which will cause the Makefiles to be regenerated when you run `make');
     138# (2) otherwise, pass the desired values on the `make' command line.
     139
     140@SET_MAKE@
     141
     142all-recursive install-data-recursive install-exec-recursive \
     143installdirs-recursive install-recursive uninstall-recursive  \
     144check-recursive installcheck-recursive info-recursive dvi-recursive:
     145        @set fnord $(MAKEFLAGS); amf=$$2; \
     146        dot_seen=no; \
     147        target=`echo $@ | sed s/-recursive//`; \
     148        list='$(SUBDIRS)'; for subdir in $$list; do \
     149          echo "Making $$target in $$subdir"; \
     150          if test "$$subdir" = "."; then \
     151            dot_seen=yes; \
     152            local_target="$$target-am"; \
     153          else \
     154            local_target="$$target"; \
     155          fi; \
     156          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
     157           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
     158        done; \
     159        if test "$$dot_seen" = "no"; then \
     160          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
     161        fi; test -z "$$fail"
     162
     163mostlyclean-recursive clean-recursive distclean-recursive \
     164maintainer-clean-recursive:
     165        @set fnord $(MAKEFLAGS); amf=$$2; \
     166        dot_seen=no; \
     167        rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
     168          rev="$$subdir $$rev"; \
     169          test "$$subdir" = "." && dot_seen=yes; \
     170        done; \
     171        test "$$dot_seen" = "no" && rev=". $$rev"; \
     172        target=`echo $@ | sed s/-recursive//`; \
     173        for subdir in $$rev; do \
     174          echo "Making $$target in $$subdir"; \
     175          if test "$$subdir" = "."; then \
     176            local_target="$$target-am"; \
     177          else \
     178            local_target="$$target"; \
     179          fi; \
     180          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
     181           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
     182        done && test -z "$$fail"
     183tags-recursive:
     184        list='$(SUBDIRS)'; for subdir in $$list; do \
     185          test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
     186        done
     187
     188tags: TAGS
     189
     190ID: $(HEADERS) $(SOURCES) $(LISP)
     191        list='$(SOURCES) $(HEADERS)'; \
     192        unique=`for i in $$list; do echo $$i; done | \
     193          awk '    { files[$$0] = 1; } \
     194               END { for (i in files) print i; }'`; \
     195        here=`pwd` && cd $(srcdir) \
     196          && mkid -f$$here/ID $$unique $(LISP)
     197
     198TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
     199        tags=; \
     200        here=`pwd`; \
     201        list='$(SUBDIRS)'; for subdir in $$list; do \
     202   if test "$$subdir" = .; then :; else \
     203            test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
     204   fi; \
     205        done; \
     206        list='$(SOURCES) $(HEADERS)'; \
     207        unique=`for i in $$list; do echo $$i; done | \
     208          awk '    { files[$$0] = 1; } \
     209               END { for (i in files) print i; }'`; \
     210        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
     211          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
     212
     213mostlyclean-tags:
     214
     215clean-tags:
     216
     217distclean-tags:
     218        -rm -f TAGS ID
     219
     220maintainer-clean-tags:
     221
     222distdir = $(PACKAGE)-$(VERSION)
     223top_distdir = $(distdir)
     224
     225# This target untars the dist file and tries a VPATH configuration.  Then
     226# it guarantees that the distribution is self-contained by making another
     227# tarfile.
     228distcheck: dist
     229        -rm -rf $(distdir)
     230        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
     231        mkdir $(distdir)/=build
     232        mkdir $(distdir)/=inst
     233        dc_install_base=`cd $(distdir)/=inst && pwd`; \
     234        cd $(distdir)/=build \
     235          && ../configure --srcdir=.. --prefix=$$dc_install_base \
     236          && $(MAKE) $(AM_MAKEFLAGS) \
     237          && $(MAKE) $(AM_MAKEFLAGS) dvi \
     238          && $(MAKE) $(AM_MAKEFLAGS) check \
     239          && $(MAKE) $(AM_MAKEFLAGS) install \
     240          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
     241          && $(MAKE) $(AM_MAKEFLAGS) dist
     242        -rm -rf $(distdir)
     243        @banner="$(distdir).tar.gz is ready for distribution"; \
     244        dashes=`echo "$$banner" | sed s/./=/g`; \
     245        echo "$$dashes"; \
     246        echo "$$banner"; \
     247        echo "$$dashes"
     248dist: distdir
     249        -chmod -R a+r $(distdir)
     250        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     251        -rm -rf $(distdir)
     252dist-all: distdir
     253        -chmod -R a+r $(distdir)
     254        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     255        -rm -rf $(distdir)
     256distdir: $(DISTFILES)
     257        -rm -rf $(distdir)
     258        mkdir $(distdir)
     259        -chmod 777 $(distdir)
     260        here=`cd $(top_builddir) && pwd`; \
     261        top_distdir=`cd $(distdir) && pwd`; \
     262        distdir=`cd $(distdir) && pwd`; \
     263        cd $(top_srcdir) \
     264          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
     265        @for file in $(DISTFILES); do \
     266          d=$(srcdir); \
     267          if test -d $$d/$$file; then \
     268            cp -pr $$/$$file $(distdir)/$$file; \
     269          else \
     270            test -f $(distdir)/$$file \
     271            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     272            || cp -p $$d/$$file $(distdir)/$$file || :; \
     273          fi; \
     274        done
     275        for subdir in $(SUBDIRS); do \
     276          if test "$$subdir" = .; then :; else \
     277            test -d $(distdir)/$$subdir \
     278            || mkdir $(distdir)/$$subdir \
     279            || exit 1; \
     280            chmod 777 $(distdir)/$$subdir; \
     281            (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
     282              || exit 1; \
     283          fi; \
     284        done
     285info-am:
     286info: info-recursive
     287dvi-am:
     288dvi: dvi-recursive
     289check-am: all-am
     290check: check-recursive
     291installcheck-am:
     292installcheck: installcheck-recursive
     293install-exec-am:
     294install-exec: install-exec-recursive
     295
     296install-data-am:
     297install-data: install-data-recursive
     298
     299install-am: all-am
     300        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     301install: install-recursive
     302uninstall-am:
     303uninstall: uninstall-recursive
     304all-am: Makefile
     305all-redirect: all-recursive
     306install-strip:
     307        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
     308installdirs: installdirs-recursive
     309installdirs-am:
     310
     311
     312mostlyclean-generic:
     313
     314clean-generic:
     315
     316distclean-generic:
     317        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     318        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
     319
     320maintainer-clean-generic:
     321mostlyclean-am:  mostlyclean-tags mostlyclean-generic
     322
     323mostlyclean: mostlyclean-recursive
     324
     325clean-am:  clean-tags clean-generic mostlyclean-am
     326
     327clean: clean-recursive
     328
     329distclean-am:  distclean-tags distclean-generic clean-am
     330
     331distclean: distclean-recursive
     332        -rm -f config.status
     333
     334maintainer-clean-am:  maintainer-clean-tags maintainer-clean-generic \
     335                distclean-am
     336        @echo "This command is intended for maintainers to use;"
     337        @echo "it deletes files that may require special tools to rebuild."
     338
     339maintainer-clean: maintainer-clean-recursive
     340        -rm -f config.status
     341
     342.PHONY: install-data-recursive uninstall-data-recursive \
     343install-exec-recursive uninstall-exec-recursive installdirs-recursive \
     344uninstalldirs-recursive all-recursive check-recursive \
     345installcheck-recursive info-recursive dvi-recursive \
     346mostlyclean-recursive distclean-recursive clean-recursive \
     347maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
     348distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
     349dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
     350install-exec install-data-am install-data install-am install \
     351uninstall-am uninstall all-redirect all-am all installdirs-am \
     352installdirs mostlyclean-generic distclean-generic clean-generic \
     353maintainer-clean-generic clean mostlyclean distclean maintainer-clean
     354
     355
     356depend-recursive \
     357preinstall-recursive \
     358debug-recursive \
     359profile-recursive:
     360        @set fnord $(MAKEFLAGS); amf=$$2; \
     361        dot_seen=no; \
     362        target=`echo $@ | sed s/-recursive//`; \
     363        list='$(SUBDIRS)'; for subdir in $$list; do \
     364          echo "Making $$target in $$subdir"; \
     365          if test "$$subdir" = "."; then \
     366            dot_seen=yes; \
     367            local_target="$$target-am"; \
     368          else \
     369            local_target="$$target"; \
     370          fi; \
     371          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
     372           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
     373        done; \
     374        if test "$$dot_seen" = "no"; then \
     375          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
     376        fi; test -z "$$fail"
     377
     378debug: debug-recursive
     379.PHONY: debug-recursive
     380
     381profile: profile-recursive
     382.PHONY: profile-recursive
     383
     384preinstall: preinstall-recursive
     385.PHONY: preinstall-recursive
     386
     387depend: depend-recursive
     388.PHONY: depend-recursive
     389
     390debug-am:
     391debug: debug-am
     392.PHONY: debug debug-am
     393
     394profile-am:
     395profile: profile-am
     396.PHONY: profile profile-am
     397
     398preinstall-am:
     399preinstall: preinstall-am
     400.PHONY: preinstall preinstall-am
     401
     402depend-am:
     403depend: depend-am
     404.PHONY: depend depend-am
     405
     406# Tell versions [3.59,3.63) of GNU make to not export all variables.
     407# Otherwise a system limit (for SysV at least) may be exceeded.
     408.NOEXPORT:
  • c/src/tests/aclocal.m4

    r22544db9 r3a8915e  
    8585AC_MSG_RESULT($RTEMS_CPU)
    8686])
     87
     88# Do all the work for Automake.  This macro actually does too much --
     89# some checks are only needed if your package does certain things.
     90# But this isn't really a big deal.
     91
     92# serial 1
     93
     94dnl Usage:
     95dnl AM_INIT_AUTOMAKE(package,version, [no-define])
     96
     97AC_DEFUN(AM_INIT_AUTOMAKE,
     98[AC_REQUIRE([AC_PROG_INSTALL])
     99PACKAGE=[$1]
     100AC_SUBST(PACKAGE)
     101VERSION=[$2]
     102AC_SUBST(VERSION)
     103dnl test to see if srcdir already configured
     104if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
     105  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
     106fi
     107ifelse([$3],,
     108AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
     109AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
     110AC_REQUIRE([AM_SANITY_CHECK])
     111AC_REQUIRE([AC_ARG_PROGRAM])
     112dnl FIXME This is truly gross.
     113missing_dir=`cd $ac_aux_dir && pwd`
     114AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
     115AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
     116AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
     117AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
     118AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
     119AC_REQUIRE([AC_PROG_MAKE_SET])])
     120
     121#
     122# Check to make sure that the build environment is sane.
     123#
     124
     125AC_DEFUN(AM_SANITY_CHECK,
     126[AC_MSG_CHECKING([whether build environment is sane])
     127# Just in case
     128sleep 1
     129echo timestamp > conftestfile
     130# Do `set' in a subshell so we don't clobber the current shell's
     131# arguments.  Must try -L first in case configure is actually a
     132# symlink; some systems play weird games with the mod time of symlinks
     133# (eg FreeBSD returns the mod time of the symlink's containing
     134# directory).
     135if (
     136   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
     137   if test "[$]*" = "X"; then
     138      # -L didn't work.
     139      set X `ls -t $srcdir/configure conftestfile`
     140   fi
     141   if test "[$]*" != "X $srcdir/configure conftestfile" \
     142      && test "[$]*" != "X conftestfile $srcdir/configure"; then
     143
     144      # If neither matched, then we have a broken ls.  This can happen
     145      # if, for instance, CONFIG_SHELL is bash and it inherits a
     146      # broken ls alias from the environment.  This has actually
     147      # happened.  Such a system could not be considered "sane".
     148      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
     149alias in your environment])
     150   fi
     151
     152   test "[$]2" = conftestfile
     153   )
     154then
     155   # Ok.
     156   :
     157else
     158   AC_MSG_ERROR([newly created file is older than distributed files!
     159Check your system clock])
     160fi
     161rm -f conftest*
     162AC_MSG_RESULT(yes)])
     163
     164dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
     165dnl The program must properly implement --version.
     166AC_DEFUN(AM_MISSING_PROG,
     167[AC_MSG_CHECKING(for working $2)
     168# Run test in a subshell; some versions of sh will print an error if
     169# an executable is not found, even if stderr is redirected.
     170# Redirect stdin to placate older versions of autoconf.  Sigh.
     171if ($2 --version) < /dev/null > /dev/null 2>&1; then
     172   $1=$2
     173   AC_MSG_RESULT(found)
     174else
     175   $1="$3/missing $2"
     176   AC_MSG_RESULT(missing)
     177fi
     178AC_SUBST($1)])
    87179
    88180# Add --enable-maintainer-mode option to configure.
     
    183275esac],[RTEMS_HAS_NETWORKING=yes])
    184276AC_SUBST(RTEMS_HAS_NETWORKING)dnl
    185 ])
    186 
    187 dnl $Id$
    188 
    189 AC_DEFUN(RTEMS_ENABLE_RDBG,
    190 [
    191 AC_ARG_ENABLE(rdbg,
    192 [  --enable-rdbg                        enable remote debugger],
    193 [case "${enableval}" in
    194   yes) RTEMS_HAS_RDBG=yes ;;
    195   no) RTEMS_HAS_RDBG=no ;;
    196   *)  AC_MSG_ERROR(bad value ${enableval} for enable-rdbg option) ;;
    197 esac],[RTEMS_HAS_RDBG=no])
    198 AC_SUBST(RTEMS_HAS_RDBG)dnl
    199277])
    200278
     
    756834])
    757835
    758 
    759 dnl
    760 dnl  $Id$
    761 dnl
    762 
    763 dnl check for i386 gas supporting 16 bit mode
    764 dnl     - binutils 2.9.1.0.7 and higher
    765 
    766 AC_DEFUN(RTEMS_I386_GAS_CODE16,
    767 [ if test "${target_cpu}" = "i386"; then
    768     AC_CACHE_CHECK([for 16 bit mode assembler support],
    769       rtems_cv_prog_gas_code16,
    770       [cat > conftest.s << EOF
    771          .code16
    772          data32
    773          addr32
    774          lgdt 0
    775 EOF
    776       if AC_TRY_COMMAND($AS_FOR_TARGET -o conftest.o conftest.s); then
    777         rtems_cv_prog_gas_code16=yes
    778       else
    779         rtems_cv_prog_gas_code16=no
    780       fi])
    781     RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"
    782   fi
    783   AC_SUBST(RTEMS_GAS_CODE16)
    784 ])
    785 
    786 
    787 dnl
    788 dnl $Id$
    789 dnl
    790 dnl Check for System V IPC calls used by Unix simulators
    791 dnl
    792 dnl 98/07/17 Dario Alcocer     alcocer@netcom.com
    793 dnl          Ralf Corsepius    corsepiu@faw.uni-ulm.de
    794 dnl
    795 dnl Note: $host_os should probably *not* ever be used here to
    796 dnl determine if host supports System V IPC calls, since some
    797 dnl (e.g. FreeBSD 2.x) are configured by default to include only
    798 dnl a subset of the System V IPC calls.  Therefore, to make sure
    799 dnl all of the required calls are found, test for each call explicitly.
    800 dnl
    801 dnl All of the calls use IPC_PRIVATE, so tests will not unintentionally
    802 dnl modify any existing key sets.  See the man pages for semget, shmget,
    803 dnl msgget, semctl, shmctl and msgctl for details.
    804 
    805 AC_DEFUN(RTEMS_SYSV_SEM,
    806 [AC_REQUIRE([AC_PROG_CC])
    807 AC_REQUIRE([RTEMS_CANONICAL_HOST])
    808 AC_CACHE_CHECK(whether $RTEMS_HOST supports System V semaphores,
    809 rtems_cv_sysv_sem,
    810 [
    811 AC_TRY_RUN([
    812 #include <sys/types.h>
    813 #include <sys/ipc.h>
    814 #include <sys/sem.h>
    815 int main () {
    816 #if !defined(sun)
    817   union semun arg ;
    818 #else
    819   union semun {
    820     int val;
    821     struct semid_ds *buf;
    822     ushort *array;
    823   } arg;
    824 #endif
    825   int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
    826   if (id == -1)
    827     exit(1);
    828   arg.val = 0; /* avoid implicit type cast to union */
    829   if (semctl(id, 0, IPC_RMID, arg) == -1)
    830     exit(1);
    831   exit(0);
    832 }
    833 ],
    834 rtems_cv_sysv_sem="yes", rtems_cv_sysv_sem="no", :)
    835 ])
    836 ])
    837 
    838 AC_DEFUN(RTEMS_SYSV_SHM,
    839 [AC_REQUIRE([AC_PROG_CC])
    840 AC_REQUIRE([RTEMS_CANONICAL_HOST])
    841 AC_CACHE_CHECK(whether $RTEMS_HOST supports System V shared memory,
    842 rtems_cv_sysv_shm,
    843 [
    844 AC_TRY_RUN([
    845 #include <sys/types.h>
    846 #include <sys/ipc.h>
    847 #include <sys/shm.h>
    848 int main () {
    849   int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
    850   if (id == -1)
    851     exit(1);
    852   if (shmctl(id, IPC_RMID, 0) == -1)
    853     exit(1);
    854   exit(0);
    855 }
    856 ],
    857 rtems_cv_sysv_shm="yes", rtems_cv_sysv_shm="no", :)
    858 ])
    859 ])
    860 
    861 AC_DEFUN(RTEMS_SYSV_MSG,
    862 [AC_REQUIRE([AC_PROG_CC])
    863 AC_REQUIRE([RTEMS_CANONICAL_HOST])
    864 AC_CACHE_CHECK(whether $RTEMS_HOST supports System V messages,
    865 rtems_cv_sysv_msg,
    866 [
    867 AC_TRY_RUN([
    868 #include <sys/types.h>
    869 #include <sys/ipc.h>
    870 #include <sys/msg.h>
    871 int main () {
    872   int id=msgget(IPC_PRIVATE,IPC_CREAT|0400);
    873   if (id == -1)
    874     exit(1);
    875   if (msgctl(id, IPC_RMID, 0) == -1)
    876     exit(1);
    877   exit(0);
    878 }
    879 ],
    880 rtems_cv_sysv_msg="yes", rtems_cv_sysv_msg="no", :)
    881 ])
    882 ])
    883 
    884 AC_DEFUN(RTEMS_CHECK_SYSV_UNIX,
    885 [AC_REQUIRE([RTEMS_CANONICAL_HOST])
    886 if test "$RTEMS_CPU" = "unix" ; then
    887   RTEMS_SYSV_SEM
    888   if test "$rtems_cv_sysv_sem" != "yes" ; then
    889     AC_MSG_ERROR([System V semaphores don't work, required by simulator])
    890   fi
    891   RTEMS_SYSV_SHM
    892   if test "$rtems_cv_sysv_shm" != "yes" ; then
    893     AC_MSG_ERROR([System V shared memory doesn't work, required by simulator])
    894   fi
    895   RTEMS_SYSV_MSG
    896   if test "$rtems_cv_sysv_msg" != "yes" ; then
    897     AC_MSG_ERROR([System V messages don't work, required by simulator])
    898   fi
    899 fi
    900 ])
    901836
    902837dnl $Id$
     
    949884])dnl
    950885
    951 dnl $Id$
     886dnl
     887dnl $Id$
     888dnl
    952889
    953890AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING,
     
    966903    else
    967904      rtems_cv_HAS_MP="no";
    968     fi
    969   ])
     905    fi])
    970906if test "$rtems_cv_HAS_MP" = "yes"; then
    971907HAS_MP="yes"
     
    976912])
    977913
    978 dnl
    979 dnl $Id$
    980 dnl
    981 
    982 dnl RTEMS_CHECK_MAKEFILE(path)
    983 dnl Search for Makefile.in's within the directory starting
    984 dnl at path and append an entry for Makefile to global variable
    985 dnl "makefiles" (from configure.in) for each Makefile.in found
    986 dnl
    987 AC_DEFUN(RTEMS_CHECK_MAKEFILE,
    988 [RTEMS_CHECK_FILES_IN($1,Makefile,makefiles)
    989 ])
    990 
    991 dnl
    992 dnl $Id$
    993 dnl
    994 
    995 dnl RTEMS_CHECK_FILES_IN(path,file,var)
    996 dnl path .. path relative to srcdir, where to start searching for files
    997 dnl file .. name of the files to search for
    998 dnl var  .. shell variable to append files found
    999 
    1000 AC_DEFUN(RTEMS_CHECK_FILES_IN,
    1001 [
    1002 AC_MSG_CHECKING(for $2.in in $1)
    1003 if test -d $srcdir/$1; then
    1004   rtems_av_save_dir=`pwd`;
    1005   cd $srcdir;
    1006   rtems_av_tmp=`find $1 -name "$2.in" -print | sed "s/$2\.in/%/" | sort | sed "s/%/$2/"`
    1007   $3="$$3 $rtems_av_tmp";
    1008   cd $rtems_av_save_dir;
    1009   AC_MSG_RESULT(done)
    1010 else
    1011   AC_MSG_RESULT(no)
    1012 fi
    1013 ])
    1014 
    1015 
     914dnl $Id$
     915dnl
     916AC_DEFUN(RTEMS_CHECK_POSIX_API,
     917[dnl
     918AC_REQUIRE([RTEMS_CHECK_CPU])dnl
     919AC_CACHE_CHECK([whether BSP supports libposix],
     920  rtems_cv_HAS_POSIX_API,
     921  [dnl
     922    case "$RTEMS_CPU" in
     923    unix*)
     924      rtems_cv_HAS_POSIX_API="no"
     925      ;;
     926    *)
     927      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
     928        rtems_cv_HAS_POSIX_API="yes";
     929      else
     930        rtems_cv_HAS_POSIX_API="disabled";
     931      fi
     932      ;;
     933    esac])
     934if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
     935  HAS_POSIX_API="yes";
     936else
     937  HAS_POSIX_API="no";
     938fi
     939AC_SUBST(HAS_POSIX_API)dnl
     940])
     941
  • c/src/tests/configure

    r22544db9 r3a8915e  
    2323ac_help="$ac_help
    2424  --enable-networking                  enable TCP/IP stack"
    25 ac_help="$ac_help
    26   --enable-rdbg                        enable remote debugger"
    2725ac_help="$ac_help
    2826  --enable-rtems-inlines               enable RTEMS inline functions
     
    483481# A filename unique to this package, relative to the directory that
    484482# configure is in, which we can look for to find out if srcdir is correct.
    485 ac_unique_file=libtests
     483ac_unique_file=samples
    486484
    487485# Find the source files, if location was not specified.
     
    566564
    567565echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
    568 echo "configure:569: checking for RTEMS Version" >&5
     566echo "configure:567: checking for RTEMS Version" >&5
    569567if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
    570568RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
     
    597595ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
    598596
    599 
    600 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    601 echo "configure:602: checking whether ${MAKE-make} sets \${MAKE}" >&5
    602 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    603 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    604   echo $ac_n "(cached) $ac_c" 1>&6
    605 else
    606   cat > conftestmake <<\EOF
    607 all:
    608         @echo 'ac_maketemp="${MAKE}"'
    609 EOF
    610 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    611 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
    612 if test -n "$ac_maketemp"; then
    613   eval ac_cv_prog_make_${ac_make}_set=yes
    614 else
    615   eval ac_cv_prog_make_${ac_make}_set=no
    616 fi
    617 rm -f conftestmake
    618 fi
    619 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    620   echo "$ac_t""yes" 1>&6
    621   SET_MAKE=
    622 else
    623   echo "$ac_t""no" 1>&6
    624   SET_MAKE="MAKE=${MAKE-make}"
    625 fi
    626597
    627598
     
    654625
    655626echo $ac_n "checking host system type""... $ac_c" 1>&6
    656 echo "configure:657: checking host system type" >&5
     627echo "configure:628: checking host system type" >&5
    657628
    658629host_alias=$host
     
    675646
    676647echo $ac_n "checking target system type""... $ac_c" 1>&6
    677 echo "configure:678: checking target system type" >&5
     648echo "configure:649: checking target system type" >&5
    678649
    679650target_alias=$target
     
    693664
    694665echo $ac_n "checking build system type""... $ac_c" 1>&6
    695 echo "configure:696: checking build system type" >&5
     666echo "configure:667: checking build system type" >&5
    696667
    697668build_alias=$build
     
    716687
    717688echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    718 echo "configure:719: checking rtems target cpu" >&5
     689echo "configure:690: checking rtems target cpu" >&5
    719690case "${target}" in
    720691  # hpux unix port should go here
     
    742713
    743714
    744 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
    745 echo "configure:746: checking whether to enable maintainer-specific portions of Makefiles" >&5
    746     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
    747 if test "${enable_maintainer_mode+set}" = set; then
    748   enableval="$enable_maintainer_mode"
    749   USE_MAINTAINER_MODE=$enableval
    750 else
    751   USE_MAINTAINER_MODE=no
    752 fi
    753 
    754   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
    755  
    756 
    757 if test $USE_MAINTAINER_MODE = yes; then
    758   MAINTAINER_MODE_TRUE=
    759   MAINTAINER_MODE_FALSE='#'
    760 else
    761   MAINTAINER_MODE_TRUE='#'
    762   MAINTAINER_MODE_FALSE=
    763 fi
    764   MAINT=$MAINTAINER_MODE_TRUE
    765  
    766 
    767 
    768 
    769 # Check whether --enable-multiprocessing or --disable-multiprocessing was given.
    770 if test "${enable_multiprocessing+set}" = set; then
    771   enableval="$enable_multiprocessing"
    772   case "${enableval}" in
    773   yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
    774   no) RTEMS_HAS_MULTIPROCESSING=no ;;
    775   *)  { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;;
    776 esac
    777 else
    778   RTEMS_HAS_MULTIPROCESSING=no
    779 fi
    780 
    781 
    782 
    783 # Check whether --enable-posix or --disable-posix was given.
    784 if test "${enable_posix+set}" = set; then
    785   enableval="$enable_posix"
    786   case "${enableval}" in
    787   yes) RTEMS_HAS_POSIX_API=yes ;;
    788   no) RTEMS_HAS_POSIX_API=no ;;
    789   *)  { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;;
    790 esac
    791 else
    792   RTEMS_HAS_POSIX_API=yes
    793 fi
    794  
    795 
    796 
    797 case "${target}" in
    798   # hpux unix port should go here
    799   i[3456]86-go32-rtems*)
    800         RTEMS_HAS_POSIX_API=no
    801         ;;
    802   i[3456]86-pc-linux*)         # unix "simulator" port
    803         RTEMS_HAS_POSIX_API=no
    804         ;;
    805   i[3456]86-*freebsd2*) # unix "simulator" port
    806         RTEMS_HAS_POSIX_API=no
    807         ;;
    808   no_cpu-*rtems*)
    809         RTEMS_HAS_POSIX_API=no
    810         ;;
    811   sparc-sun-solaris*)             # unix "simulator" port
    812         RTEMS_HAS_POSIX_API=no
    813         ;;
    814   *)
    815         ;;
    816 esac
    817 
    818 
    819 
    820 # Check whether --enable-networking or --disable-networking was given.
    821 if test "${enable_networking+set}" = set; then
    822   enableval="$enable_networking"
    823   case "${enableval}" in
    824   yes) RTEMS_HAS_NETWORKING=yes ;;
    825   no) RTEMS_HAS_NETWORKING=no ;;
    826   *)  { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;;
    827 esac
    828 else
    829   RTEMS_HAS_NETWORKING=yes
    830 fi
    831 
    832 
    833 
    834 # Check whether --enable-rdbg or --disable-rdbg was given.
    835 if test "${enable_rdbg+set}" = set; then
    836   enableval="$enable_rdbg"
    837   case "${enableval}" in
    838   yes) RTEMS_HAS_RDBG=yes ;;
    839   no) RTEMS_HAS_RDBG=no ;;
    840   *)  { echo "configure: error: bad value ${enableval} for enable-rdbg option" 1>&2; exit 1; } ;;
    841 esac
    842 else
    843   RTEMS_HAS_RDBG=no
    844 fi
    845 
    846 
    847 # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.
    848 if test "${enable_rtems_inlines+set}" = set; then
    849   enableval="$enable_rtems_inlines"
    850   case "${enableval}" in
    851   yes) RTEMS_USE_MACROS=no ;;
    852   no) RTEMS_USE_MACROS=yes ;;
    853   *)  { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;;
    854 esac
    855 else
    856   RTEMS_USE_MACROS=no
    857 fi
    858 
    859 
    860 
    861 # Check whether --enable-cxx or --disable-cxx was given.
    862 if test "${enable_cxx+set}" = set; then
    863   enableval="$enable_cxx"
    864   case "${enableval}" in
    865   yes) RTEMS_HAS_CPLUSPLUS=yes ;;
    866   no) RTEMS_HAS_CPLUSPLUS=no   ;;
    867   *)  { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;;
    868 esac
    869 else
    870   RTEMS_HAS_CPLUSPLUS=no
    871 fi
    872 
    873 
    874 
    875 # Check whether --enable-gcc28 or --disable-gcc28 was given.
    876 if test "${enable_gcc28+set}" = set; then
    877   enableval="$enable_gcc28"
    878   case "${enableval}" in
    879   yes) RTEMS_USE_GCC272=no ;;
    880   no) RTEMS_USE_GCC272=yes ;;
    881   *)  { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;;
    882 esac
    883 else
    884   RTEMS_USE_GCC272=no
    885 fi
    886 
    887 
    888 
    889 # Check whether --enable-libcdir or --disable-libcdir was given.
    890 if test "${enable_libcdir+set}" = set; then
    891   enableval="$enable_libcdir"
    892    RTEMS_LIBC_DIR="${enableval}" ; \
    893 test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
    894 fi
    895 
    896 
    897 
    898 # Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
    899 if test "${enable_bare_cpu_cflags+set}" = set; then
    900   enableval="$enable_bare_cpu_cflags"
    901   case "${enableval}" in
    902   no) BARE_CPU_CFLAGS="" ;;
    903   *)    BARE_CPU_CFLAGS="${enableval}" ;;
    904 esac
    905 else
    906   BARE_CPU_CFLAGS=""
    907 fi
    908 
    909 
    910 # Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
    911 if test "${enable_bare_cpu_model+set}" = set; then
    912   enableval="$enable_bare_cpu_model"
    913   case "${enableval}" in
    914   no)   BARE_CPU_MODEL="" ;;
    915   *)    BARE_CPU_MODEL="${enableval}" ;;
    916 esac
    917 else
    918   BARE_CPU_MODEL=""
    919 fi
    920 
    921 
    922 
    923 # If the tests are enabled, then find all the test suite Makefiles
    924 echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6
    925 echo "configure:926: checking if the test suites are enabled? " >&5
    926 # Check whether --enable-tests or --disable-tests was given.
    927 if test "${enable_tests+set}" = set; then
    928   enableval="$enable_tests"
    929   case "${enableval}" in
    930     yes) tests_enabled=yes ;;
    931     no)  tests_enabled=no ;;
    932     *)   { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;;
    933   esac
    934 else
    935   tests_enabled=no
    936 fi
    937 
    938 echo "$ac_t""$tests_enabled" 1>&6
    939 
    940 
    941 echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6
    942 echo "configure:943: checking for RTEMS_BSP" >&5
    943 if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then
    944   echo $ac_n "(cached) $ac_c" 1>&6
    945 else
    946     test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
    947 
    948 fi
    949 if test -z "$rtems_cv_RTEMS_BSP"; then
    950   { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; }
    951 fi
    952 RTEMS_BSP="$rtems_cv_RTEMS_BSP"
    953 echo "$ac_t""${RTEMS_BSP}" 1>&6
    954 
    955 
    956 
    957 
    958715# Find a good install program.  We prefer a C program (faster),
    959716# so one script is as good as another.  But avoid the broken or
     
    968725# ./install, which can be erroneously created by make from ./install.sh.
    969726echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    970 echo "configure:971: checking for a BSD compatible install" >&5
     727echo "configure:728: checking for a BSD compatible install" >&5
    971728if test -z "$INSTALL"; then
    972729if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    1020777test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    1021778
     779echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
     780echo "configure:781: checking whether build environment is sane" >&5
     781# Just in case
     782sleep 1
     783echo timestamp > conftestfile
     784# Do `set' in a subshell so we don't clobber the current shell's
     785# arguments.  Must try -L first in case configure is actually a
     786# symlink; some systems play weird games with the mod time of symlinks
     787# (eg FreeBSD returns the mod time of the symlink's containing
     788# directory).
     789if (
     790   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
     791   if test "$*" = "X"; then
     792      # -L didn't work.
     793      set X `ls -t $srcdir/configure conftestfile`
     794   fi
     795   if test "$*" != "X $srcdir/configure conftestfile" \
     796      && test "$*" != "X conftestfile $srcdir/configure"; then
     797
     798      # If neither matched, then we have a broken ls.  This can happen
     799      # if, for instance, CONFIG_SHELL is bash and it inherits a
     800      # broken ls alias from the environment.  This has actually
     801      # happened.  Such a system could not be considered "sane".
     802      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
     803alias in your environment" 1>&2; exit 1; }
     804   fi
     805
     806   test "$2" = conftestfile
     807   )
     808then
     809   # Ok.
     810   :
     811else
     812   { echo "configure: error: newly created file is older than distributed files!
     813Check your system clock" 1>&2; exit 1; }
     814fi
     815rm -f conftest*
     816echo "$ac_t""yes" 1>&6
     817if test "$program_transform_name" = s,x,x,; then
     818  program_transform_name=
     819else
     820  # Double any \ or $.  echo might interpret backslashes.
     821  cat <<\EOF_SED > conftestsed
     822s,\\,\\\\,g; s,\$,$$,g
     823EOF_SED
     824  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
     825  rm -f conftestsed
     826fi
     827test "$program_prefix" != NONE &&
     828  program_transform_name="s,^,${program_prefix},; $program_transform_name"
     829# Use a double $ so make ignores it.
     830test "$program_suffix" != NONE &&
     831  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
     832
     833# sed with no file args requires a program.
     834test "$program_transform_name" = "" && program_transform_name="s,x,x,"
     835
     836echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
     837echo "configure:838: checking whether ${MAKE-make} sets \${MAKE}" >&5
     838set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
     839if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     840  echo $ac_n "(cached) $ac_c" 1>&6
     841else
     842  cat > conftestmake <<\EOF
     843all:
     844        @echo 'ac_maketemp="${MAKE}"'
     845EOF
     846# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     847eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     848if test -n "$ac_maketemp"; then
     849  eval ac_cv_prog_make_${ac_make}_set=yes
     850else
     851  eval ac_cv_prog_make_${ac_make}_set=no
     852fi
     853rm -f conftestmake
     854fi
     855if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     856  echo "$ac_t""yes" 1>&6
     857  SET_MAKE=
     858else
     859  echo "$ac_t""no" 1>&6
     860  SET_MAKE="MAKE=${MAKE-make}"
     861fi
     862
     863
     864PACKAGE=rtems-c-src-tests
     865
     866VERSION=$RTEMS_VERSION
     867
     868if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
     869  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
     870fi
     871
     872
     873
     874missing_dir=`cd $ac_aux_dir && pwd`
     875echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
     876echo "configure:877: checking for working aclocal" >&5
     877# Run test in a subshell; some versions of sh will print an error if
     878# an executable is not found, even if stderr is redirected.
     879# Redirect stdin to placate older versions of autoconf.  Sigh.
     880if (aclocal --version) < /dev/null > /dev/null 2>&1; then
     881   ACLOCAL=aclocal
     882   echo "$ac_t""found" 1>&6
     883else
     884   ACLOCAL="$missing_dir/missing aclocal"
     885   echo "$ac_t""missing" 1>&6
     886fi
     887
     888echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
     889echo "configure:890: checking for working autoconf" >&5
     890# Run test in a subshell; some versions of sh will print an error if
     891# an executable is not found, even if stderr is redirected.
     892# Redirect stdin to placate older versions of autoconf.  Sigh.
     893if (autoconf --version) < /dev/null > /dev/null 2>&1; then
     894   AUTOCONF=autoconf
     895   echo "$ac_t""found" 1>&6
     896else
     897   AUTOCONF="$missing_dir/missing autoconf"
     898   echo "$ac_t""missing" 1>&6
     899fi
     900
     901echo $ac_n "checking for working automake""... $ac_c" 1>&6
     902echo "configure:903: checking for working automake" >&5
     903# Run test in a subshell; some versions of sh will print an error if
     904# an executable is not found, even if stderr is redirected.
     905# Redirect stdin to placate older versions of autoconf.  Sigh.
     906if (automake --version) < /dev/null > /dev/null 2>&1; then
     907   AUTOMAKE=automake
     908   echo "$ac_t""found" 1>&6
     909else
     910   AUTOMAKE="$missing_dir/missing automake"
     911   echo "$ac_t""missing" 1>&6
     912fi
     913
     914echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
     915echo "configure:916: checking for working autoheader" >&5
     916# Run test in a subshell; some versions of sh will print an error if
     917# an executable is not found, even if stderr is redirected.
     918# Redirect stdin to placate older versions of autoconf.  Sigh.
     919if (autoheader --version) < /dev/null > /dev/null 2>&1; then
     920   AUTOHEADER=autoheader
     921   echo "$ac_t""found" 1>&6
     922else
     923   AUTOHEADER="$missing_dir/missing autoheader"
     924   echo "$ac_t""missing" 1>&6
     925fi
     926
     927echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
     928echo "configure:929: checking for working makeinfo" >&5
     929# Run test in a subshell; some versions of sh will print an error if
     930# an executable is not found, even if stderr is redirected.
     931# Redirect stdin to placate older versions of autoconf.  Sigh.
     932if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
     933   MAKEINFO=makeinfo
     934   echo "$ac_t""found" 1>&6
     935else
     936   MAKEINFO="$missing_dir/missing makeinfo"
     937   echo "$ac_t""missing" 1>&6
     938fi
     939
     940
     941echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
     942echo "configure:943: checking whether to enable maintainer-specific portions of Makefiles" >&5
     943    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
     944if test "${enable_maintainer_mode+set}" = set; then
     945  enableval="$enable_maintainer_mode"
     946  USE_MAINTAINER_MODE=$enableval
     947else
     948  USE_MAINTAINER_MODE=no
     949fi
     950
     951  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
     952 
     953
     954if test $USE_MAINTAINER_MODE = yes; then
     955  MAINTAINER_MODE_TRUE=
     956  MAINTAINER_MODE_FALSE='#'
     957else
     958  MAINTAINER_MODE_TRUE='#'
     959  MAINTAINER_MODE_FALSE=
     960fi
     961  MAINT=$MAINTAINER_MODE_TRUE
     962 
     963
     964
     965
     966# Check whether --enable-multiprocessing or --disable-multiprocessing was given.
     967if test "${enable_multiprocessing+set}" = set; then
     968  enableval="$enable_multiprocessing"
     969  case "${enableval}" in
     970  yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
     971  no) RTEMS_HAS_MULTIPROCESSING=no ;;
     972  *)  { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;;
     973esac
     974else
     975  RTEMS_HAS_MULTIPROCESSING=no
     976fi
     977
     978
     979
     980# Check whether --enable-posix or --disable-posix was given.
     981if test "${enable_posix+set}" = set; then
     982  enableval="$enable_posix"
     983  case "${enableval}" in
     984  yes) RTEMS_HAS_POSIX_API=yes ;;
     985  no) RTEMS_HAS_POSIX_API=no ;;
     986  *)  { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;;
     987esac
     988else
     989  RTEMS_HAS_POSIX_API=yes
     990fi
     991 
     992
     993
     994case "${target}" in
     995  # hpux unix port should go here
     996  i[3456]86-go32-rtems*)
     997        RTEMS_HAS_POSIX_API=no
     998        ;;
     999  i[3456]86-pc-linux*)         # unix "simulator" port
     1000        RTEMS_HAS_POSIX_API=no
     1001        ;;
     1002  i[3456]86-*freebsd2*) # unix "simulator" port
     1003        RTEMS_HAS_POSIX_API=no
     1004        ;;
     1005  no_cpu-*rtems*)
     1006        RTEMS_HAS_POSIX_API=no
     1007        ;;
     1008  sparc-sun-solaris*)             # unix "simulator" port
     1009        RTEMS_HAS_POSIX_API=no
     1010        ;;
     1011  *)
     1012        ;;
     1013esac
     1014
     1015
     1016
     1017# Check whether --enable-networking or --disable-networking was given.
     1018if test "${enable_networking+set}" = set; then
     1019  enableval="$enable_networking"
     1020  case "${enableval}" in
     1021  yes) RTEMS_HAS_NETWORKING=yes ;;
     1022  no) RTEMS_HAS_NETWORKING=no ;;
     1023  *)  { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;;
     1024esac
     1025else
     1026  RTEMS_HAS_NETWORKING=yes
     1027fi
     1028
     1029
     1030# Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.
     1031if test "${enable_rtems_inlines+set}" = set; then
     1032  enableval="$enable_rtems_inlines"
     1033  case "${enableval}" in
     1034  yes) RTEMS_USE_MACROS=no ;;
     1035  no) RTEMS_USE_MACROS=yes ;;
     1036  *)  { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;;
     1037esac
     1038else
     1039  RTEMS_USE_MACROS=no
     1040fi
     1041
     1042
     1043
     1044# Check whether --enable-cxx or --disable-cxx was given.
     1045if test "${enable_cxx+set}" = set; then
     1046  enableval="$enable_cxx"
     1047  case "${enableval}" in
     1048  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
     1049  no) RTEMS_HAS_CPLUSPLUS=no   ;;
     1050  *)  { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;;
     1051esac
     1052else
     1053  RTEMS_HAS_CPLUSPLUS=no
     1054fi
     1055
     1056
     1057
     1058# Check whether --enable-gcc28 or --disable-gcc28 was given.
     1059if test "${enable_gcc28+set}" = set; then
     1060  enableval="$enable_gcc28"
     1061  case "${enableval}" in
     1062  yes) RTEMS_USE_GCC272=no ;;
     1063  no) RTEMS_USE_GCC272=yes ;;
     1064  *)  { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;;
     1065esac
     1066else
     1067  RTEMS_USE_GCC272=no
     1068fi
     1069
     1070
     1071
     1072# Check whether --enable-libcdir or --disable-libcdir was given.
     1073if test "${enable_libcdir+set}" = set; then
     1074  enableval="$enable_libcdir"
     1075   RTEMS_LIBC_DIR="${enableval}" ; \
     1076test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
     1077fi
     1078
     1079
     1080
     1081# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
     1082if test "${enable_bare_cpu_cflags+set}" = set; then
     1083  enableval="$enable_bare_cpu_cflags"
     1084  case "${enableval}" in
     1085  no) BARE_CPU_CFLAGS="" ;;
     1086  *)    BARE_CPU_CFLAGS="${enableval}" ;;
     1087esac
     1088else
     1089  BARE_CPU_CFLAGS=""
     1090fi
     1091
     1092
     1093# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
     1094if test "${enable_bare_cpu_model+set}" = set; then
     1095  enableval="$enable_bare_cpu_model"
     1096  case "${enableval}" in
     1097  no)   BARE_CPU_MODEL="" ;;
     1098  *)    BARE_CPU_MODEL="${enableval}" ;;
     1099esac
     1100else
     1101  BARE_CPU_MODEL=""
     1102fi
     1103
     1104
     1105
     1106# If the tests are enabled, then find all the test suite Makefiles
     1107echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6
     1108echo "configure:1109: checking if the test suites are enabled? " >&5
     1109# Check whether --enable-tests or --disable-tests was given.
     1110if test "${enable_tests+set}" = set; then
     1111  enableval="$enable_tests"
     1112  case "${enableval}" in
     1113    yes) tests_enabled=yes ;;
     1114    no)  tests_enabled=no ;;
     1115    *)   { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;;
     1116  esac
     1117else
     1118  tests_enabled=no
     1119fi
     1120
     1121echo "$ac_t""$tests_enabled" 1>&6
     1122
     1123
     1124echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6
     1125echo "configure:1126: checking for RTEMS_BSP" >&5
     1126if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then
     1127  echo $ac_n "(cached) $ac_c" 1>&6
     1128else
     1129    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
     1130
     1131fi
     1132if test -z "$rtems_cv_RTEMS_BSP"; then
     1133  { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; }
     1134fi
     1135RTEMS_BSP="$rtems_cv_RTEMS_BSP"
     1136echo "$ac_t""${RTEMS_BSP}" 1>&6
    10221137
    10231138
     
    10261141# Is this a supported CPU?
    10271142echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
    1028 echo "configure:1029: checking if cpu $RTEMS_CPU is supported" >&5
     1143echo "configure:1144: checking if cpu $RTEMS_CPU is supported" >&5
    10291144if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
    10301145  echo "$ac_t""yes" 1>&6
     
    10871202set dummy $ac_prog; ac_word=$2
    10881203echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1089 echo "configure:1090: checking for $ac_word" >&5
     1204echo "configure:1205: checking for $ac_word" >&5
    10901205if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
    10911206  echo $ac_n "(cached) $ac_c" 1>&6
     
    11311246
    11321247echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1133 echo "configure:1134: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1248echo "configure:1249: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    11341249
    11351250ac_ext=c
     
    11421257cat > conftest.$ac_ext << EOF
    11431258
    1144 #line 1145 "configure"
     1259#line 1260 "configure"
    11451260#include "confdefs.h"
    11461261
    11471262main(){return(0);}
    11481263EOF
    1149 if { (eval echo configure:1150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1264if { (eval echo configure:1265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    11501265  ac_cv_prog_cc_works=yes
    11511266  # If we can't run a trivial program, we are probably using a cross compiler.
     
    11731288fi
    11741289echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1175 echo "configure:1176: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1290echo "configure:1291: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    11761291echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    11771292cross_compiling=$ac_cv_prog_cc_cross
    11781293
    11791294echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1180 echo "configure:1181: checking whether we are using GNU C" >&5
     1295echo "configure:1296: checking whether we are using GNU C" >&5
    11811296if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    11821297  echo $ac_n "(cached) $ac_c" 1>&6
     
    11871302#endif
    11881303EOF
    1189 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1304if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    11901305  ac_cv_prog_gcc=yes
    11911306else
     
    12021317  CFLAGS=
    12031318  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1204 echo "configure:1205: checking whether ${CC-cc} accepts -g" >&5
     1319echo "configure:1320: checking whether ${CC-cc} accepts -g" >&5
    12051320if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    12061321  echo $ac_n "(cached) $ac_c" 1>&6
     
    12441359
    12451360echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
    1246 echo "configure:1247: checking whether $CC_FOR_TARGET accepts -specs" >&5
     1361echo "configure:1362: checking whether $CC_FOR_TARGET accepts -specs" >&5
    12471362if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
    12481363  echo $ac_n "(cached) $ac_c" 1>&6
     
    12651380
    12661381echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
    1267 echo "configure:1268: checking whether $CC_FOR_TARGET accepts --pipe" >&5
     1382echo "configure:1383: checking whether $CC_FOR_TARGET accepts --pipe" >&5
    12681383if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
    12691384  echo $ac_n "(cached) $ac_c" 1>&6
     
    13131428set dummy $ac_prog; ac_word=$2
    13141429echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1315 echo "configure:1316: checking for $ac_word" >&5
     1430echo "configure:1431: checking for $ac_word" >&5
    13161431if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
    13171432  echo $ac_n "(cached) $ac_c" 1>&6
     
    13571472
    13581473echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1359 echo "configure:1360: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1474echo "configure:1475: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    13601475
    13611476ac_ext=C
     
    13681483cat > conftest.$ac_ext << EOF
    13691484
    1370 #line 1371 "configure"
     1485#line 1486 "configure"
    13711486#include "confdefs.h"
    13721487
    13731488int main(){return(0);}
    13741489EOF
    1375 if { (eval echo configure:1376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1490if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    13761491  ac_cv_prog_cxx_works=yes
    13771492  # If we can't run a trivial program, we are probably using a cross compiler.
     
    13991514fi
    14001515echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1401 echo "configure:1402: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1516echo "configure:1517: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    14021517echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    14031518cross_compiling=$ac_cv_prog_cxx_cross
    14041519
    14051520echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1406 echo "configure:1407: checking whether we are using GNU C++" >&5
     1521echo "configure:1522: checking whether we are using GNU C++" >&5
    14071522if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    14081523  echo $ac_n "(cached) $ac_c" 1>&6
     
    14131528#endif
    14141529EOF
    1415 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1530if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    14161531  ac_cv_prog_gxx=yes
    14171532else
     
    14281543  CXXFLAGS=
    14291544  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1430 echo "configure:1431: checking whether ${CXX-g++} accepts -g" >&5
     1545echo "configure:1546: checking whether ${CXX-g++} accepts -g" >&5
    14311546if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    14321547  echo $ac_n "(cached) $ac_c" 1>&6
     
    14811596 
    14821597echo $ac_n "checking target's ar""... $ac_c" 1>&6
    1483 echo "configure:1484: checking target's ar" >&5
     1598echo "configure:1599: checking target's ar" >&5
    14841599if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    14851600  echo $ac_n "(cached) $ac_c" 1>&6
     
    15141629    # intends
    15151630    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1516 echo "configure:1517: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
     1631echo "configure:1632: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
    15171632    case "$AR_FOR_TARGET" in
    15181633    /*) # valid
     
    15311646set dummy "$program_prefix"ar; ac_word=$2
    15321647echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1533 echo "configure:1534: checking for $ac_word" >&5
     1648echo "configure:1649: checking for $ac_word" >&5
    15341649if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    15351650  echo $ac_n "(cached) $ac_c" 1>&6
     
    15681683 
    15691684echo $ac_n "checking target's as""... $ac_c" 1>&6
    1570 echo "configure:1571: checking target's as" >&5
     1685echo "configure:1686: checking target's as" >&5
    15711686if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    15721687  echo $ac_n "(cached) $ac_c" 1>&6
     
    16011716    # intends
    16021717    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1603 echo "configure:1604: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
     1718echo "configure:1719: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
    16041719    case "$AS_FOR_TARGET" in
    16051720    /*) # valid
     
    16181733set dummy "$program_prefix"as; ac_word=$2
    16191734echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1620 echo "configure:1621: checking for $ac_word" >&5
     1735echo "configure:1736: checking for $ac_word" >&5
    16211736if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    16221737  echo $ac_n "(cached) $ac_c" 1>&6
     
    16551770 
    16561771echo $ac_n "checking target's ld""... $ac_c" 1>&6
    1657 echo "configure:1658: checking target's ld" >&5
     1772echo "configure:1773: checking target's ld" >&5
    16581773if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    16591774  echo $ac_n "(cached) $ac_c" 1>&6
     
    16881803    # intends
    16891804    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1690 echo "configure:1691: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
     1805echo "configure:1806: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
    16911806    case "$LD_FOR_TARGET" in
    16921807    /*) # valid
     
    17051820set dummy "$program_prefix"ld; ac_word=$2
    17061821echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1707 echo "configure:1708: checking for $ac_word" >&5
     1822echo "configure:1823: checking for $ac_word" >&5
    17081823if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    17091824  echo $ac_n "(cached) $ac_c" 1>&6
     
    17421857 
    17431858echo $ac_n "checking target's nm""... $ac_c" 1>&6
    1744 echo "configure:1745: checking target's nm" >&5
     1859echo "configure:1860: checking target's nm" >&5
    17451860if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    17461861  echo $ac_n "(cached) $ac_c" 1>&6
     
    17751890    # intends
    17761891    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1777 echo "configure:1778: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
     1892echo "configure:1893: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
    17781893    case "$NM_FOR_TARGET" in
    17791894    /*) # valid
     
    17921907set dummy "$program_prefix"nm; ac_word=$2
    17931908echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1794 echo "configure:1795: checking for $ac_word" >&5
     1909echo "configure:1910: checking for $ac_word" >&5
    17951910if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    17961911  echo $ac_n "(cached) $ac_c" 1>&6
     
    18301945 
    18311946echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
    1832 echo "configure:1833: checking target's ranlib" >&5
     1947echo "configure:1948: checking target's ranlib" >&5
    18331948if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    18341949  echo $ac_n "(cached) $ac_c" 1>&6
     
    18631978    # intends
    18641979    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1865 echo "configure:1866: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
     1980echo "configure:1981: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
    18661981    case "$RANLIB_FOR_TARGET" in
    18671982    /*) # valid
     
    18801995set dummy "$program_prefix"ranlib; ac_word=$2
    18811996echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1882 echo "configure:1883: checking for $ac_word" >&5
     1997echo "configure:1998: checking for $ac_word" >&5
    18831998if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    18841999  echo $ac_n "(cached) $ac_c" 1>&6
     
    19192034   
    19202035echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
    1921 echo "configure:1922: checking whether $AR_FOR_TARGET -s works" >&5
     2036echo "configure:2037: checking whether $AR_FOR_TARGET -s works" >&5
    19222037if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
    19232038  echo $ac_n "(cached) $ac_c" 1>&6
     
    19282043{ return b; }
    19292044EOF
    1930 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    1931   && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     2045if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     2046  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    19322047  && test -s conftest.a ; \
    19332048then
     
    19542069 
    19552070echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
    1956 echo "configure:1957: checking target's objcopy" >&5
     2071echo "configure:2072: checking target's objcopy" >&5
    19572072if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    19582073  echo $ac_n "(cached) $ac_c" 1>&6
     
    19872102    # intends
    19882103    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    1989 echo "configure:1990: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
     2104echo "configure:2105: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
    19902105    case "$OBJCOPY_FOR_TARGET" in
    19912106    /*) # valid
     
    20042119set dummy "$program_prefix"objcopy; ac_word=$2
    20052120echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2006 echo "configure:2007: checking for $ac_word" >&5
     2121echo "configure:2122: checking for $ac_word" >&5
    20072122if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    20082123  echo $ac_n "(cached) $ac_c" 1>&6
     
    20412156 
    20422157echo $ac_n "checking target's size""... $ac_c" 1>&6
    2043 echo "configure:2044: checking target's size" >&5
     2158echo "configure:2159: checking target's size" >&5
    20442159if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    20452160  echo $ac_n "(cached) $ac_c" 1>&6
     
    20742189    # intends
    20752190    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2076 echo "configure:2077: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
     2191echo "configure:2192: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
    20772192    case "$SIZE_FOR_TARGET" in
    20782193    /*) # valid
     
    20912206set dummy "$program_prefix"size; ac_word=$2
    20922207echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2093 echo "configure:2094: checking for $ac_word" >&5
     2208echo "configure:2209: checking for $ac_word" >&5
    20942209if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    20952210  echo $ac_n "(cached) $ac_c" 1>&6
     
    21282243 
    21292244echo $ac_n "checking target's strip""... $ac_c" 1>&6
    2130 echo "configure:2131: checking target's strip" >&5
     2245echo "configure:2246: checking target's strip" >&5
    21312246if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    21322247  echo $ac_n "(cached) $ac_c" 1>&6
     
    21612276    # intends
    21622277    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2163 echo "configure:2164: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
     2278echo "configure:2279: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
    21642279    case "$STRIP_FOR_TARGET" in
    21652280    /*) # valid
     
    21782293set dummy "$program_prefix"strip; ac_word=$2
    21792294echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2180 echo "configure:2181: checking for $ac_word" >&5
     2295echo "configure:2296: checking for $ac_word" >&5
    21812296if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    21822297  echo $ac_n "(cached) $ac_c" 1>&6
     
    22152330
    22162331
    2217  if test "${target_cpu}" = "i386"; then
    2218     echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6
    2219 echo "configure:2220: checking for 16 bit mode assembler support" >&5
    2220 if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then
    2221   echo $ac_n "(cached) $ac_c" 1>&6
    2222 else
    2223   cat > conftest.s << EOF
    2224          .code16
    2225          data32
    2226          addr32
    2227          lgdt 0
    2228 EOF
    2229       if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
    2230         rtems_cv_prog_gas_code16=yes
    2231       else
    2232         rtems_cv_prog_gas_code16=no
    2233       fi
    2234 fi
    2235 
    2236 echo "$ac_t""$rtems_cv_prog_gas_code16" 1>&6
    2237     RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"
    2238   fi
    2239  
    2240 
    2241 
    2242 # Extract the first word of "gcc", so it can be a program name with args.
    2243 set dummy gcc; ac_word=$2
    2244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2245 echo "configure:2246: checking for $ac_word" >&5
    2246 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    2247   echo $ac_n "(cached) $ac_c" 1>&6
    2248 else
    2249   if test -n "$CC"; then
    2250   ac_cv_prog_CC="$CC" # Let the user override the test.
    2251 else
    2252   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    2253   ac_dummy="$PATH"
    2254   for ac_dir in $ac_dummy; do
    2255     test -z "$ac_dir" && ac_dir=.
    2256     if test -f $ac_dir/$ac_word; then
    2257       ac_cv_prog_CC="gcc"
    2258       break
    2259     fi
    2260   done
    2261   IFS="$ac_save_ifs"
    2262 fi
    2263 fi
    2264 CC="$ac_cv_prog_CC"
    2265 if test -n "$CC"; then
    2266   echo "$ac_t""$CC" 1>&6
    2267 else
    2268   echo "$ac_t""no" 1>&6
    2269 fi
    2270 
    2271 if test -z "$CC"; then
    2272   # Extract the first word of "cc", so it can be a program name with args.
    2273 set dummy cc; ac_word=$2
    2274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2275 echo "configure:2276: checking for $ac_word" >&5
    2276 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    2277   echo $ac_n "(cached) $ac_c" 1>&6
    2278 else
    2279   if test -n "$CC"; then
    2280   ac_cv_prog_CC="$CC" # Let the user override the test.
    2281 else
    2282   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    2283   ac_prog_rejected=no
    2284   ac_dummy="$PATH"
    2285   for ac_dir in $ac_dummy; do
    2286     test -z "$ac_dir" && ac_dir=.
    2287     if test -f $ac_dir/$ac_word; then
    2288       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    2289         ac_prog_rejected=yes
    2290         continue
    2291       fi
    2292       ac_cv_prog_CC="cc"
    2293       break
    2294     fi
    2295   done
    2296   IFS="$ac_save_ifs"
    2297 if test $ac_prog_rejected = yes; then
    2298   # We found a bogon in the path, so make sure we never use it.
    2299   set dummy $ac_cv_prog_CC
    2300   shift
    2301   if test $# -gt 0; then
    2302     # We chose a different compiler from the bogus one.
    2303     # However, it has the same basename, so the bogon will be chosen
    2304     # first if we set CC to just the basename; use the full file name.
    2305     shift
    2306     set dummy "$ac_dir/$ac_word" "$@"
    2307     shift
    2308     ac_cv_prog_CC="$@"
    2309   fi
    2310 fi
    2311 fi
    2312 fi
    2313 CC="$ac_cv_prog_CC"
    2314 if test -n "$CC"; then
    2315   echo "$ac_t""$CC" 1>&6
    2316 else
    2317   echo "$ac_t""no" 1>&6
    2318 fi
    2319 
    2320   if test -z "$CC"; then
    2321     case "`uname -s`" in
    2322     *win32* | *WIN32*)
    2323       # Extract the first word of "cl", so it can be a program name with args.
    2324 set dummy cl; ac_word=$2
    2325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2326 echo "configure:2327: checking for $ac_word" >&5
    2327 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    2328   echo $ac_n "(cached) $ac_c" 1>&6
    2329 else
    2330   if test -n "$CC"; then
    2331   ac_cv_prog_CC="$CC" # Let the user override the test.
    2332 else
    2333   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    2334   ac_dummy="$PATH"
    2335   for ac_dir in $ac_dummy; do
    2336     test -z "$ac_dir" && ac_dir=.
    2337     if test -f $ac_dir/$ac_word; then
    2338       ac_cv_prog_CC="cl"
    2339       break
    2340     fi
    2341   done
    2342   IFS="$ac_save_ifs"
    2343 fi
    2344 fi
    2345 CC="$ac_cv_prog_CC"
    2346 if test -n "$CC"; then
    2347   echo "$ac_t""$CC" 1>&6
    2348 else
    2349   echo "$ac_t""no" 1>&6
    2350 fi
    2351  ;;
    2352     esac
    2353   fi
    2354   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    2355 fi
    2356 
    2357 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2358 echo "configure:2359: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    2359 
    2360 ac_ext=c
    2361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    2362 ac_cpp='$CPP $CPPFLAGS'
    2363 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    2364 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    2365 cross_compiling=$ac_cv_prog_cc_cross
    2366 
    2367 cat > conftest.$ac_ext << EOF
    2368 
    2369 #line 2370 "configure"
    2370 #include "confdefs.h"
    2371 
    2372 main(){return(0);}
    2373 EOF
    2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2375   ac_cv_prog_cc_works=yes
    2376   # If we can't run a trivial program, we are probably using a cross compiler.
    2377   if (./conftest; exit) 2>/dev/null; then
    2378     ac_cv_prog_cc_cross=no
    2379   else
    2380     ac_cv_prog_cc_cross=yes
    2381   fi
    2382 else
    2383   echo "configure: failed program was:" >&5
    2384   cat conftest.$ac_ext >&5
    2385   ac_cv_prog_cc_works=no
    2386 fi
    2387 rm -fr conftest*
    2388 ac_ext=c
    2389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    2390 ac_cpp='$CPP $CPPFLAGS'
    2391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    2392 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    2393 cross_compiling=$ac_cv_prog_cc_cross
    2394 
    2395 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    2396 if test $ac_cv_prog_cc_works = no; then
    2397   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    2398 fi
    2399 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2400 echo "configure:2401: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    2401 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    2402 cross_compiling=$ac_cv_prog_cc_cross
    2403 
    2404 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    2405 echo "configure:2406: checking whether we are using GNU C" >&5
    2406 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    2407   echo $ac_n "(cached) $ac_c" 1>&6
    2408 else
    2409   cat > conftest.c <<EOF
    2410 #ifdef __GNUC__
    2411   yes;
    2412 #endif
    2413 EOF
    2414 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    2415   ac_cv_prog_gcc=yes
    2416 else
    2417   ac_cv_prog_gcc=no
    2418 fi
    2419 fi
    2420 
    2421 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    2422 
    2423 if test $ac_cv_prog_gcc = yes; then
    2424   GCC=yes
    2425 else
    2426   GCC=
    2427 fi
    2428 
    2429 ac_test_CFLAGS="${CFLAGS+set}"
    2430 ac_save_CFLAGS="$CFLAGS"
    2431 CFLAGS=
    2432 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    2433 echo "configure:2434: checking whether ${CC-cc} accepts -g" >&5
    2434 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    2435   echo $ac_n "(cached) $ac_c" 1>&6
    2436 else
    2437   echo 'void f(){}' > conftest.c
    2438 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
    2439   ac_cv_prog_cc_g=yes
    2440 else
    2441   ac_cv_prog_cc_g=no
    2442 fi
    2443 rm -f conftest*
    2444 
    2445 fi
    2446 
    2447 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    2448 if test "$ac_test_CFLAGS" = set; then
    2449   CFLAGS="$ac_save_CFLAGS"
    2450 elif test $ac_cv_prog_cc_g = yes; then
    2451   if test "$GCC" = yes; then
    2452     CFLAGS="-g -O2"
    2453   else
    2454     CFLAGS="-g"
    2455   fi
    2456 else
    2457   if test "$GCC" = yes; then
    2458     CFLAGS="-O2"
    2459   else
    2460     CFLAGS=
    2461   fi
    2462 fi
    2463 
    2464 
    2465 if test "$RTEMS_CPU" = "unix" ; then
    2466    
    2467 
    2468 echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6
    2469 echo "configure:2470: checking whether $RTEMS_HOST supports System V semaphores" >&5
    2470 if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then
    2471   echo $ac_n "(cached) $ac_c" 1>&6
    2472 else
    2473  
    2474 if test "$cross_compiling" = yes; then
    2475   :
    2476 else
    2477   cat > conftest.$ac_ext <<EOF
    2478 #line 2479 "configure"
    2479 #include "confdefs.h"
    2480 
    2481 #include <sys/types.h>
    2482 #include <sys/ipc.h>
    2483 #include <sys/sem.h>
    2484 int main () {
    2485 #if !defined(sun)
    2486   union semun arg ;
    2487 #else
    2488   union semun {
    2489     int val;
    2490     struct semid_ds *buf;
    2491     ushort *array;
    2492   } arg;
    2493 #endif
    2494   int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
    2495   if (id == -1)
    2496     exit(1);
    2497   arg.val = 0; /* avoid implicit type cast to union */
    2498   if (semctl(id, 0, IPC_RMID, arg) == -1)
    2499     exit(1);
    2500   exit(0);
    2501 }
    2502 
    2503 EOF
    2504 if { (eval echo configure:2505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2505 then
    2506   rtems_cv_sysv_sem="yes"
    2507 else
    2508   echo "configure: failed program was:" >&5
    2509   cat conftest.$ac_ext >&5
    2510   rm -fr conftest*
    2511   rtems_cv_sysv_sem="no"
    2512 fi
    2513 rm -fr conftest*
    2514 fi
    2515 
    2516 
    2517 fi
    2518 
    2519 echo "$ac_t""$rtems_cv_sysv_sem" 1>&6
    2520 
    2521   if test "$rtems_cv_sysv_sem" != "yes" ; then
    2522     { echo "configure: error: System V semaphores don't work, required by simulator" 1>&2; exit 1; }
    2523   fi
    2524    
    2525 
    2526 echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6
    2527 echo "configure:2528: checking whether $RTEMS_HOST supports System V shared memory" >&5
    2528 if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then
    2529   echo $ac_n "(cached) $ac_c" 1>&6
    2530 else
    2531  
    2532 if test "$cross_compiling" = yes; then
    2533   :
    2534 else
    2535   cat > conftest.$ac_ext <<EOF
    2536 #line 2537 "configure"
    2537 #include "confdefs.h"
    2538 
    2539 #include <sys/types.h>
    2540 #include <sys/ipc.h>
    2541 #include <sys/shm.h>
    2542 int main () {
    2543   int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
    2544   if (id == -1)
    2545     exit(1);
    2546   if (shmctl(id, IPC_RMID, 0) == -1)
    2547     exit(1);
    2548   exit(0);
    2549 }
    2550 
    2551 EOF
    2552 if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2553 then
    2554   rtems_cv_sysv_shm="yes"
    2555 else
    2556   echo "configure: failed program was:" >&5
    2557   cat conftest.$ac_ext >&5
    2558   rm -fr conftest*
    2559   rtems_cv_sysv_shm="no"
    2560 fi
    2561 rm -fr conftest*
    2562 fi
    2563 
    2564 
    2565 fi
    2566 
    2567 echo "$ac_t""$rtems_cv_sysv_shm" 1>&6
    2568 
    2569   if test "$rtems_cv_sysv_shm" != "yes" ; then
    2570     { echo "configure: error: System V shared memory doesn't work, required by simulator" 1>&2; exit 1; }
    2571   fi
    2572    
    2573 
    2574 echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6
    2575 echo "configure:2576: checking whether $RTEMS_HOST supports System V messages" >&5
    2576 if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then
    2577   echo $ac_n "(cached) $ac_c" 1>&6
    2578 else
    2579  
    2580 if test "$cross_compiling" = yes; then
    2581   :
    2582 else
    2583   cat > conftest.$ac_ext <<EOF
    2584 #line 2585 "configure"
    2585 #include "confdefs.h"
    2586 
    2587 #include <sys/types.h>
    2588 #include <sys/ipc.h>
    2589 #include <sys/msg.h>
    2590 int main () {
    2591   int id=msgget(IPC_PRIVATE,IPC_CREAT|0400);
    2592   if (id == -1)
    2593     exit(1);
    2594   if (msgctl(id, IPC_RMID, 0) == -1)
    2595     exit(1);
    2596   exit(0);
    2597 }
    2598 
    2599 EOF
    2600 if { (eval echo configure:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2601 then
    2602   rtems_cv_sysv_msg="yes"
    2603 else
    2604   echo "configure: failed program was:" >&5
    2605   cat conftest.$ac_ext >&5
    2606   rm -fr conftest*
    2607   rtems_cv_sysv_msg="no"
    2608 fi
    2609 rm -fr conftest*
    2610 fi
    2611 
    2612 
    2613 fi
    2614 
    2615 echo "$ac_t""$rtems_cv_sysv_msg" 1>&6
    2616 
    2617   if test "$rtems_cv_sysv_msg" != "yes" ; then
    2618     { echo "configure: error: System V messages don't work, required by simulator" 1>&2; exit 1; }
    2619   fi
    2620 fi
    2621 
    2622 
    26232332echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
    2624 echo "configure:2625: checking for make/custom/$RTEMS_BSP.cfg" >&5
     2333echo "configure:2334: checking for make/custom/$RTEMS_BSP.cfg" >&5
    26252334if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
    26262335  echo "$ac_t""yes" 1>&6
     
    26302339
    26312340echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6
    2632 echo "configure:2633: checking whether BSP supports multiprocessing" >&5
     2341echo "configure:2342: checking whether BSP supports multiprocessing" >&5
    26332342if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then
    26342343  echo $ac_n "(cached) $ac_c" 1>&6
     
    26432352      rtems_cv_HAS_MP="no";
    26442353    fi
    2645  
    26462354fi
    26472355
     
    26542362
    26552363
    2656 
    2657 # always build the test tools
    2658 testtools_cfgdirs="tools/generic"
    2659 
    2660 if test "$HAS_MP" = "yes"; then
    2661     makefiles="$makefiles samples/base_mp/Makefile"
    2662     makefiles="$makefiles samples/base_mp/node1/Makefile"
    2663     makefiles="$makefiles samples/base_mp/node2/Makefile"
    2664     makefiles="$makefiles samples/base_sp/Makefile"
    2665 fi
     2364echo $ac_n "checking whether BSP supports libposix""... $ac_c" 1>&6
     2365echo "configure:2366: checking whether BSP supports libposix" >&5
     2366if eval "test \"`echo '$''{'rtems_cv_HAS_POSIX_API'+set}'`\" = set"; then
     2367  echo $ac_n "(cached) $ac_c" 1>&6
     2368else
     2369      case "$RTEMS_CPU" in
     2370    unix*)
     2371      rtems_cv_HAS_POSIX_API="no"
     2372      ;;
     2373    *)
     2374      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
     2375        rtems_cv_HAS_POSIX_API="yes";
     2376      else
     2377        rtems_cv_HAS_POSIX_API="disabled";
     2378      fi
     2379      ;;
     2380    esac
     2381fi
     2382
     2383echo "$ac_t""$rtems_cv_HAS_POSIX_API" 1>&6
     2384if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
     2385  HAS_POSIX_API="yes";
     2386else
     2387  HAS_POSIX_API="no";
     2388fi
     2389
    26662390
    26672391if test "$tests_enabled" = "yes"; then
    2668  
    2669 echo $ac_n "checking for Makefile.in in libtests""... $ac_c" 1>&6
    2670 echo "configure:2671: checking for Makefile.in in libtests" >&5
    2671 if test -d $srcdir/libtests; then
    2672   rtems_av_save_dir=`pwd`;
    2673   cd $srcdir;
    2674   rtems_av_tmp=`find libtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
    2675   makefiles="$makefiles $rtems_av_tmp";
    2676   cd $rtems_av_save_dir;
    2677   echo "$ac_t""done" 1>&6
    2678 else
    2679   echo "$ac_t""no" 1>&6
    2680 fi
    2681 
    2682 
    2683  
    2684 echo $ac_n "checking for Makefile.in in sptests""... $ac_c" 1>&6
    2685 echo "configure:2686: checking for Makefile.in in sptests" >&5
    2686 if test -d $srcdir/sptests; then
    2687   rtems_av_save_dir=`pwd`;
    2688   cd $srcdir;
    2689   rtems_av_tmp=`find sptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
    2690   makefiles="$makefiles $rtems_av_tmp";
    2691   cd $rtems_av_save_dir;
    2692   echo "$ac_t""done" 1>&6
    2693 else
    2694   echo "$ac_t""no" 1>&6
    2695 fi
    2696 
    2697 
    2698