Changeset b9ca4ba in rtems
- Timestamp:
- 12/01/97 17:07:52 (26 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ba1a2af9
- Parents:
- f4cec63d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
rf4cec63d rb9ca4ba 37 37 ac_help="$ac_help 38 38 \ 39 --disable-tests disable tests"39 --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build" 40 40 ac_help="$ac_help 41 41 \ 42 --enable-hwapi enable hardware API library"42 --enable-tests enable tests" 43 43 ac_help="$ac_help 44 44 \ 45 --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build"45 --enable-hwapi enable hardware API library" 46 46 47 47 # Initialize some variables set by options. … … 1315 1315 esac 1316 1316 1317 # Override the set of BSPs to be built. 1318 # Check whether --enable-rtemsbsp or --disable-rtemsbsp was given. 1319 if test "${enable_rtemsbsp+set}" = set; then 1320 enableval="$enable_rtemsbsp" 1321 \ 1322 rtems_bsp=$enableval \ 1323 1324 fi 1325 1326 1317 1327 # Is this a supported CPU? 1318 1328 echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6 1319 echo "configure:13 20: checking if cpu $target_cpu is supported" >&51329 echo "configure:1330: checking if cpu $target_cpu is supported" >&5 1320 1330 if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then 1321 1331 echo "$ac_t""yes" 1>&6 … … 1328 1338 1329 1339 echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6 1330 echo "configure:13 31: checking for Makefile.in in c/src/exec/rtems" >&51340 echo "configure:1341: checking for Makefile.in in c/src/exec/rtems" >&5 1331 1341 if test -d $srcdir/c/src/exec/rtems; then 1332 1342 rtems_av_save_dir=`pwd`; … … 1342 1352 1343 1353 1354 echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6 1355 echo "configure:1356: checking for Makefile.in in c/src/exec/sapi" >&5 1356 if test -d $srcdir/c/src/exec/sapi; then 1357 rtems_av_save_dir=`pwd`; 1358 cd $srcdir; 1359 rtems_av_tmp=`find c/src/exec/sapi -name Makefile.in -follow -print | sed 's%\.in%%' | sort`; 1360 makefiles="$makefiles $rtems_av_tmp"; 1361 cd $rtems_av_save_dir; 1362 echo "$ac_t""done" 1>&6 1363 else 1364 echo "$ac_t""no" 1>&6 1365 fi 1366 1367 1368 1369 if test "$RTEMS_HAS_POSIX" = "yes"; then 1370 1344 1371 echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6 1345 echo "configure:13 46: checking for Makefile.in in c/src/exec/posix" >&51372 echo "configure:1373: checking for Makefile.in in c/src/exec/posix" >&5 1346 1373 if test -d $srcdir/c/src/exec/posix; then 1347 1374 rtems_av_save_dir=`pwd`; … … 1356 1383 1357 1384 1358 1359 echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6 1360 echo "configure:1361: checking for Makefile.in in c/src/exec/sapi" >&5 1361 if test -d $srcdir/c/src/exec/sapi; then 1362 rtems_av_save_dir=`pwd`; 1363 cd $srcdir; 1364 rtems_av_tmp=`find c/src/exec/sapi -name Makefile.in -follow -print | sed 's%\.in%%' | sort`; 1365 makefiles="$makefiles $rtems_av_tmp"; 1366 cd $rtems_av_save_dir; 1367 echo "$ac_t""done" 1>&6 1368 else 1369 echo "$ac_t""no" 1>&6 1370 fi 1371 1372 1373 1374 echo $ac_n "checking for Makefile.in in c/src/exec/wrapup""... $ac_c" 1>&6 1375 echo "configure:1376: checking for Makefile.in in c/src/exec/wrapup" >&5 1376 if test -d $srcdir/c/src/exec/wrapup; then 1377 rtems_av_save_dir=`pwd`; 1378 cd $srcdir; 1379 rtems_av_tmp=`find c/src/exec/wrapup -name Makefile.in -follow -print | sed 's%\.in%%' | sort`; 1380 makefiles="$makefiles $rtems_av_tmp"; 1381 cd $rtems_av_save_dir; 1382 echo "$ac_t""done" 1>&6 1383 else 1384 echo "$ac_t""no" 1>&6 1385 fi 1386 1387 1385 makefiles="$makefiles c/src/exec/posix/Makefile" 1386 fi 1388 1387 1389 1388 # find all the Makefiles for the BSPs … … 1393 1392 if test -z "$rtems_bsp"; then 1394 1393 echo $ac_n "checking for bsps""... $ac_c" 1>&6 1395 echo "configure:139 6: checking for bsps" >&51394 echo "configure:1395: checking for bsps" >&5 1396 1395 files=`ls $srcdir/c/src/lib/libbsp/$target_cpu` 1397 1396 for file in $files; do … … 1410 1409 # collect makefiles for each bsp 1411 1410 for i in $rtems_bsp; do 1412 1413 echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$i""... $ac_c" 1>&6 1414 echo "configure:1415: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$i" >&5 1415 if test -d $srcdir/c/src/lib/libbsp/$target_cpu/$i; then 1411 # make sure there is a make/custom file for the bsp 1412 if test ! -r "$srcdir/c/make/custom/${i}.cfg"; then 1413 { echo "configure: error: no make/custom/${i}.cfg file for BSP $i" 1>&2; exit 1; } 1414 fi 1415 1416 # account for "aliased" bsps which share source code 1417 case $i in 1418 mvme162lx) bspdir=mvme162 ;; # mvme162 board variant 1419 gen68360_040) bspdir=gen68360 ;; # 68360 in companion mode 1420 go32_p5) bspdir=go32 ;; # go32 on Pentium class CPU 1421 p4600) bspdir=p4000 ;; # p4000 board with IDT 4600 1422 p4650) bspdir=p4000 ;; # p4000 board with IDT 4650 1423 *) bspdir=$i;; 1424 esac 1425 1426 # Is there code where there should be for this BSP? 1427 if test -d "$srcdir/c/src/lib/libbsp/$target_cpu/$bspdir"; then 1428 RTEMS_BSP="$RTEMS_BSP $i" 1429 # make sure the Makefiles in a bsp directory are only done once 1430 echo $bspdirs | grep $bspdir >/dev/null 2>&1 1431 if test $? -ne 0 ; then 1432 bspdirs="$bspdirs $bspdir" 1433 1434 echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir""... $ac_c" 1>&6 1435 echo "configure:1436: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir" >&5 1436 if test -d $srcdir/c/src/lib/libbsp/$target_cpu/$bspdir; then 1416 1437 rtems_av_save_dir=`pwd`; 1417 1438 cd $srcdir; 1418 rtems_av_tmp=`find c/src/lib/libbsp/$target_cpu/$ i-name Makefile.in -follow -print | sed 's%\.in%%' | sort`;1439 rtems_av_tmp=`find c/src/lib/libbsp/$target_cpu/$bspdir -name Makefile.in -follow -print | sed 's%\.in%%' | sort`; 1419 1440 makefiles="$makefiles $rtems_av_tmp"; 1420 1441 cd $rtems_av_save_dir; … … 1425 1446 1426 1447 1448 fi 1449 else 1450 { echo "configure: error: unable to find libbsp directory ($bspdir) for $i" 1>&2; exit 1; } 1451 fi 1427 1452 done 1428 1453 fi … … 1431 1456 1432 1457 echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6 1433 echo "configure:14 34: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&51458 echo "configure:1459: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5 1434 1459 if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then 1435 1460 rtems_av_save_dir=`pwd`; … … 1448 1473 1449 1474 echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6 1450 echo "configure:14 51: checking for Makefile.in in c/src/lib/start/$target_cpu" >&51475 echo "configure:1476: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5 1451 1476 if test -d $srcdir/c/src/lib/start/$target_cpu; then 1452 1477 rtems_av_save_dir=`pwd`; … … 1480 1505 1481 1506 1482 RTEMS_BSP=$rtems_bsp1483 1507 RTEMS_HOST=$host_os 1484 1508 RTEMS_ROOT=`cd $srcdir/c; pwd` … … 1493 1517 # If the tests are enabled, then find all the test suite Makefiles 1494 1518 echo $ac_n "checking Are the test suites enabled? ""... $ac_c" 1>&6 1495 echo "configure:1496: checking Are the test suites enabled? " >&5 1519 echo "configure:1520: checking Are the test suites enabled? " >&5 1520 tests_enabled=yes 1496 1521 # Check whether --enable-tests or --disable-tests was given. 1497 1522 if test "${enable_tests+set}" = set; then 1498 1523 enableval="$enable_tests" 1499 1524 \ 1500 { echo "configure: error: no" 1>&2; exit 1; } 1501 else 1502 \ 1503 echo "$ac_t""yes" 1>&6 \ 1504 1525 case "${enableval}" in 1526 yes) echo "$ac_t""yes" 1>&6 ;; 1527 no) echo "$ac_t""no" 1>&6 ; tests_enabled=no ;; 1528 *) { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;; 1529 esac 1530 else 1531 echo "$ac_t""yes" 1>&6 1532 1533 fi 1534 1535 1536 if test "$tests_enabled" = "yes"; then 1537 1505 1538 echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6 1506 echo "configure:15 07: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&51539 echo "configure:1540: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5 1507 1540 if test -d $srcdir/c/src/tests/tools/$target_cpu; then 1508 1541 rtems_av_save_dir=`pwd`; … … 1516 1549 fi 1517 1550 1518 \ 1519 1551 1552 1520 1553 echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6 1521 echo "configure:15 22: checking for Makefile.in in c/src/tests/libtests" >&51554 echo "configure:1555: checking for Makefile.in in c/src/tests/libtests" >&5 1522 1555 if test -d $srcdir/c/src/tests/libtests; then 1523 1556 rtems_av_save_dir=`pwd`; … … 1531 1564 fi 1532 1565 1533 \ 1534 1566 1567 1535 1568 echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6 1536 echo "configure:15 37: checking for Makefile.in in c/src/tests/sptests" >&51569 echo "configure:1570: checking for Makefile.in in c/src/tests/sptests" >&5 1537 1570 if test -d $srcdir/c/src/tests/sptests; then 1538 1571 rtems_av_save_dir=`pwd`; … … 1546 1579 fi 1547 1580 1548 \ 1549 1581 1582 1550 1583 echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6 1551 echo "configure:15 52: checking for Makefile.in in c/src/tests/tmtests" >&51584 echo "configure:1585: checking for Makefile.in in c/src/tests/tmtests" >&5 1552 1585 if test -d $srcdir/c/src/tests/tmtests; then 1553 1586 rtems_av_save_dir=`pwd`; … … 1561 1594 fi 1562 1595 1563 \ 1564 1596 1597 1565 1598 echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6 1566 echo "configure:1 567: checking for Makefile.in in c/src/tests/mptests" >&51599 echo "configure:1600: checking for Makefile.in in c/src/tests/mptests" >&5 1567 1600 if test -d $srcdir/c/src/tests/mptests; then 1568 1601 rtems_av_save_dir=`pwd`; … … 1576 1609 fi 1577 1610 1578 \ 1611 1612 if test "$RTEMS_HAS_POSIX" = "yes"; then 1579 1613 1580 1614 echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6 1581 echo "configure:1 582: checking for Makefile.in in c/src/tests/psxtests" >&51615 echo "configure:1616: checking for Makefile.in in c/src/tests/psxtests" >&5 1582 1616 if test -d $srcdir/c/src/tests/psxtests; then 1583 1617 rtems_av_save_dir=`pwd`; … … 1591 1625 fi 1592 1626 1593 \ 1594 1595 fi 1596 1627 1628 fi 1629 fi 1597 1630 1598 1631 # If the HWAPI is enabled, the find the HWAPI Makefiles 1599 1632 echo $ac_n "checking Is the HWAPI enabled? ""... $ac_c" 1>&6 1600 echo "configure:16 01: checking Is the HWAPI enabled? " >&51633 echo "configure:1634: checking Is the HWAPI enabled? " >&5 1601 1634 # Check whether --enable-hwapi or --disable-hwapi was given. 1602 1635 if test "${enable_hwapi+set}" = set; then 1603 1636 enableval="$enable_hwapi" 1604 1637 \ 1605 echo "$ac_t""yes" 1>&6 \ 1606 1638 case "${enableval}" in 1639 yes) echo "$ac_t""yes" 1>&6 1640 1607 1641 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi""... $ac_c" 1>&6 1608 echo "configure:16 09: checking for Makefile.in in c/src/lib/libhwapi" >&51642 echo "configure:1643: checking for Makefile.in in c/src/lib/libhwapi" >&5 1609 1643 if test -d $srcdir/c/src/lib/libhwapi; then 1610 1644 rtems_av_save_dir=`pwd`; … … 1618 1652 fi 1619 1653 1620 1621 else 1622 \ 1623 { echo "configure: error: no" 1>&2; exit 1; } \ 1624 1625 fi 1626 1627 1628 # Check whether --enable-rtemsbsp or --disable-rtemsbsp was given. 1629 if test "${enable_rtemsbsp+set}" = set; then 1630 enableval="$enable_rtemsbsp" 1631 \ 1632 RTEMS_BSP=$enableval \ 1654 ;; 1655 no) echo "$ac_t""no" 1>&6 ;; 1656 *) { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;; 1657 esac 1658 else 1659 echo "$ac_t""no" 1>&6 1633 1660 1634 1661 fi … … 1652 1679 1653 1680 echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6 1654 echo "configure:16 55: checking for Makefile.in in c/build-tools" >&51681 echo "configure:1682: checking for Makefile.in in c/build-tools" >&5 1655 1682 if test -d $srcdir/c/build-tools; then 1656 1683 rtems_av_save_dir=`pwd`; … … 1667 1694 1668 1695 echo $ac_n "checking for Makefile.in in c/make""... $ac_c" 1>&6 1669 echo "configure:16 70: checking for Makefile.in in c/make" >&51696 echo "configure:1697: checking for Makefile.in in c/make" >&5 1670 1697 if test -d $srcdir/c/make; then 1671 1698 rtems_av_save_dir=`pwd`; … … 1682 1709 1683 1710 echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6 1684 echo "configure:1 685: checking for Makefile.in in c/src/lib/libmisc" >&51711 echo "configure:1712: checking for Makefile.in in c/src/lib/libmisc" >&5 1685 1712 if test -d $srcdir/c/src/lib/libmisc; then 1686 1713 rtems_av_save_dir=`pwd`; … … 1697 1724 1698 1725 echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6 1699 echo "configure:17 00: checking for Makefile.in in c/src/tests/samples" >&51726 echo "configure:1727: checking for Makefile.in in c/src/tests/samples" >&5 1700 1727 if test -d $srcdir/c/src/tests/samples; then 1701 1728 rtems_av_save_dir=`pwd`; … … 1835 1862 c/src/exec/score/tools/Makefile 1836 1863 c/src/exec/score/tools/generic/Makefile 1864 c/src/exec/wrapup/Makefile 1865 c/src/exec/wrapup/rtems/Makefile 1837 1866 c/src/lib/Makefile 1838 1867 c/src/lib/include/Makefile … … 1977 2006 c/src/exec/score/tools/Makefile 1978 2007 c/src/exec/score/tools/generic/Makefile 2008 c/src/exec/wrapup/Makefile 2009 c/src/exec/wrapup/rtems/Makefile 1979 2010 c/src/lib/Makefile 1980 2011 c/src/lib/include/Makefile -
configure.in
rf4cec63d rb9ca4ba 153 153 esac 154 154 155 # Override the set of BSPs to be built. 156 AC_ARG_ENABLE(rtemsbsp, \ 157 [ --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build], \ 158 rtems_bsp=$enableval \ 159 ) 160 155 161 # Is this a supported CPU? 156 162 AC_MSG_CHECKING([if cpu $target_cpu is supported]) … … 164 170 # find all the Executive Makefiles 165 171 RTEMS_CHECK_MAKEFILE(c/src/exec/rtems) 166 RTEMS_CHECK_MAKEFILE(c/src/exec/posix)167 172 RTEMS_CHECK_MAKEFILE(c/src/exec/sapi) 168 RTEMS_CHECK_MAKEFILE(c/src/exec/wrapup) 173 174 if test "$RTEMS_HAS_POSIX" = "yes"; then 175 RTEMS_CHECK_MAKEFILE(c/src/exec/posix) 176 makefiles="$makefiles c/src/exec/posix/Makefile" 177 fi 169 178 170 179 # find all the Makefiles for the BSPs … … 190 199 # collect makefiles for each bsp 191 200 for i in $rtems_bsp; do 192 RTEMS_CHECK_MAKEFILE(c/src/lib/libbsp/$target_cpu/$i) 201 # make sure there is a make/custom file for the bsp 202 if test ! -r "$srcdir/c/make/custom/${i}.cfg"; then 203 AC_MSG_ERROR([no make/custom/${i}.cfg file for BSP $i]) 204 fi 205 206 # account for "aliased" bsps which share source code 207 case $i in 208 mvme162lx) bspdir=mvme162 ;; # mvme162 board variant 209 gen68360_040) bspdir=gen68360 ;; # 68360 in companion mode 210 go32_p5) bspdir=go32 ;; # go32 on Pentium class CPU 211 p4600) bspdir=p4000 ;; # p4000 board with IDT 4600 212 p4650) bspdir=p4000 ;; # p4000 board with IDT 4650 213 *) bspdir=$i;; 214 esac 215 216 # Is there code where there should be for this BSP? 217 if test -d "$srcdir/c/src/lib/libbsp/$target_cpu/$bspdir"; then 218 RTEMS_BSP="$RTEMS_BSP $i" 219 # make sure the Makefiles in a bsp directory are only done once 220 echo $bspdirs | grep $bspdir >/dev/null 2>&1 221 if test $? -ne 0 ; then 222 bspdirs="$bspdirs $bspdir" 223 RTEMS_CHECK_MAKEFILE(c/src/lib/libbsp/$target_cpu/$bspdir) 224 fi 225 else 226 AC_MSG_ERROR([unable to find libbsp directory ($bspdir) for $i]) 227 fi 193 228 done 194 229 fi … … 223 258 dnl AC_PROG_CXX 224 259 225 RTEMS_BSP=$rtems_bsp260 dnl RTEMS_BSP=$rtems_bsp 226 261 RTEMS_HOST=$host_os 227 262 RTEMS_ROOT=`cd $srcdir/c; pwd` … … 236 271 # If the tests are enabled, then find all the test suite Makefiles 237 272 AC_MSG_CHECKING([Are the test suites enabled? ]) 273 tests_enabled=yes 238 274 AC_ARG_ENABLE(tests, \ 239 [ --disable-tests disable tests], \ 240 AC_MSG_ERROR(no), \ 241 AC_MSG_RESULT(yes) \ 242 RTEMS_CHECK_MAKEFILE(c/src/tests/tools/$target_cpu) \ 243 RTEMS_CHECK_MAKEFILE(c/src/tests/libtests) \ 244 RTEMS_CHECK_MAKEFILE(c/src/tests/sptests) \ 245 RTEMS_CHECK_MAKEFILE(c/src/tests/tmtests) \ 246 RTEMS_CHECK_MAKEFILE(c/src/tests/mptests) \ 247 RTEMS_CHECK_MAKEFILE(c/src/tests/psxtests) \ 275 [ --enable-tests enable tests], \ 276 [case "${enableval}" in 277 yes) AC_MSG_RESULT(yes) ;; 278 no) AC_MSG_RESULT(no) ; tests_enabled=no ;; 279 *) AC_MSG_ERROR(bad value ${enableval} for tests option) ;; 280 esac], 281 AC_MSG_RESULT(yes) 248 282 ) 283 284 if test "$tests_enabled" = "yes"; then 285 RTEMS_CHECK_MAKEFILE(c/src/tests/tools/$target_cpu) 286 RTEMS_CHECK_MAKEFILE(c/src/tests/libtests) 287 RTEMS_CHECK_MAKEFILE(c/src/tests/sptests) 288 RTEMS_CHECK_MAKEFILE(c/src/tests/tmtests) 289 RTEMS_CHECK_MAKEFILE(c/src/tests/mptests) 290 if test "$RTEMS_HAS_POSIX" = "yes"; then 291 RTEMS_CHECK_MAKEFILE(c/src/tests/psxtests) 292 fi 293 fi 249 294 250 295 # If the HWAPI is enabled, the find the HWAPI Makefiles 251 296 AC_MSG_CHECKING([Is the HWAPI enabled? ]) 252 297 AC_ARG_ENABLE(hwapi, \ 253 [ --enable-hwapi enable hardware API library], \ 254 AC_MSG_RESULT(yes) \ 255 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi), \ 256 AC_MSG_ERROR(no) \ 257 ) 258 259 AC_ARG_ENABLE(rtemsbsp, \ 260 [ --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build], \ 261 RTEMS_BSP=$enableval \ 298 [ --enable-hwapi enable hardware API library], \ 299 [case "${enableval}" in 300 yes) AC_MSG_RESULT(yes) 301 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi);; 302 no) AC_MSG_RESULT(no) ;; 303 *) AC_MSG_ERROR(bad value ${enableval} for hwapi option) ;; 304 esac], 305 AC_MSG_RESULT(no) 262 306 ) 263 307 … … 295 339 c/src/exec/score/tools/Makefile 296 340 c/src/exec/score/tools/generic/Makefile 341 c/src/exec/wrapup/Makefile 342 c/src/exec/wrapup/rtems/Makefile 297 343 c/src/lib/Makefile 298 344 c/src/lib/include/Makefile
Note: See TracChangeset
for help on using the changeset viewer.