1358 |
ac_exeext=$EXEEXT |
ac_exeext=$EXEEXT |
1359 |
|
|
1360 |
|
|
1361 |
|
for ac_prog in 'bison -y' byacc |
1362 |
|
do |
1363 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1364 |
|
set dummy $ac_prog; ac_word=$2 |
1365 |
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1366 |
|
echo "configure:1367: checking for $ac_word" >&5 |
1367 |
|
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1368 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1369 |
|
else |
1370 |
|
if test -n "$YACC"; then |
1371 |
|
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
1372 |
|
else |
1373 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1374 |
|
ac_dummy="$PATH" |
1375 |
|
for ac_dir in $ac_dummy; do |
1376 |
|
test -z "$ac_dir" && ac_dir=. |
1377 |
|
if test -f $ac_dir/$ac_word; then |
1378 |
|
ac_cv_prog_YACC="$ac_prog" |
1379 |
|
break |
1380 |
|
fi |
1381 |
|
done |
1382 |
|
IFS="$ac_save_ifs" |
1383 |
|
fi |
1384 |
|
fi |
1385 |
|
YACC="$ac_cv_prog_YACC" |
1386 |
|
if test -n "$YACC"; then |
1387 |
|
echo "$ac_t""$YACC" 1>&6 |
1388 |
|
else |
1389 |
|
echo "$ac_t""no" 1>&6 |
1390 |
|
fi |
1391 |
|
|
1392 |
|
test -n "$YACC" && break |
1393 |
|
done |
1394 |
|
test -n "$YACC" || YACC="yacc" |
1395 |
|
|
1396 |
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1397 |
|
echo "configure:1398: checking how to run the C preprocessor" >&5 |
1398 |
|
# On Suns, sometimes $CPP names a directory. |
1399 |
|
if test -n "$CPP" && test -d "$CPP"; then |
1400 |
|
CPP= |
1401 |
|
fi |
1402 |
|
if test -z "$CPP"; then |
1403 |
|
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
1404 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1405 |
|
else |
1406 |
|
# This must be in double quotes, not single quotes, because CPP may get |
1407 |
|
# substituted into the Makefile and "${CC-cc}" will confuse make. |
1408 |
|
CPP="${CC-cc} -E" |
1409 |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
1410 |
|
# not just through cpp. |
1411 |
|
cat > conftest.$ac_ext <<EOF |
1412 |
|
#line 1413 "configure" |
1413 |
|
#include "confdefs.h" |
1414 |
|
#include <assert.h> |
1415 |
|
Syntax Error |
1416 |
|
EOF |
1417 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1418 |
|
{ (eval echo configure:1419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1419 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1420 |
|
if test -z "$ac_err"; then |
1421 |
|
: |
1422 |
|
else |
1423 |
|
echo "$ac_err" >&5 |
1424 |
|
echo "configure: failed program was:" >&5 |
1425 |
|
cat conftest.$ac_ext >&5 |
1426 |
|
rm -rf conftest* |
1427 |
|
CPP="${CC-cc} -E -traditional-cpp" |
1428 |
|
cat > conftest.$ac_ext <<EOF |
1429 |
|
#line 1430 "configure" |
1430 |
|
#include "confdefs.h" |
1431 |
|
#include <assert.h> |
1432 |
|
Syntax Error |
1433 |
|
EOF |
1434 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1435 |
|
{ (eval echo configure:1436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1436 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1437 |
|
if test -z "$ac_err"; then |
1438 |
|
: |
1439 |
|
else |
1440 |
|
echo "$ac_err" >&5 |
1441 |
|
echo "configure: failed program was:" >&5 |
1442 |
|
cat conftest.$ac_ext >&5 |
1443 |
|
rm -rf conftest* |
1444 |
|
CPP="${CC-cc} -nologo -E" |
1445 |
|
cat > conftest.$ac_ext <<EOF |
1446 |
|
#line 1447 "configure" |
1447 |
|
#include "confdefs.h" |
1448 |
|
#include <assert.h> |
1449 |
|
Syntax Error |
1450 |
|
EOF |
1451 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1452 |
|
{ (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1453 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1454 |
|
if test -z "$ac_err"; then |
1455 |
|
: |
1456 |
|
else |
1457 |
|
echo "$ac_err" >&5 |
1458 |
|
echo "configure: failed program was:" >&5 |
1459 |
|
cat conftest.$ac_ext >&5 |
1460 |
|
rm -rf conftest* |
1461 |
|
CPP=/lib/cpp |
1462 |
|
fi |
1463 |
|
rm -f conftest* |
1464 |
|
fi |
1465 |
|
rm -f conftest* |
1466 |
|
fi |
1467 |
|
rm -f conftest* |
1468 |
|
ac_cv_prog_CPP="$CPP" |
1469 |
|
fi |
1470 |
|
CPP="$ac_cv_prog_CPP" |
1471 |
|
else |
1472 |
|
ac_cv_prog_CPP="$CPP" |
1473 |
|
fi |
1474 |
|
echo "$ac_t""$CPP" 1>&6 |
1475 |
|
|
1476 |
|
missing_dir=`cd $ac_aux_dir && pwd` |
1477 |
|
for ac_prog in flex lex |
1478 |
|
do |
1479 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1480 |
|
set dummy $ac_prog; ac_word=$2 |
1481 |
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1482 |
|
echo "configure:1483: checking for $ac_word" >&5 |
1483 |
|
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1484 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1485 |
|
else |
1486 |
|
if test -n "$LEX"; then |
1487 |
|
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
1488 |
|
else |
1489 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1490 |
|
ac_dummy="$PATH" |
1491 |
|
for ac_dir in $ac_dummy; do |
1492 |
|
test -z "$ac_dir" && ac_dir=. |
1493 |
|
if test -f $ac_dir/$ac_word; then |
1494 |
|
ac_cv_prog_LEX="$ac_prog" |
1495 |
|
break |
1496 |
|
fi |
1497 |
|
done |
1498 |
|
IFS="$ac_save_ifs" |
1499 |
|
fi |
1500 |
|
fi |
1501 |
|
LEX="$ac_cv_prog_LEX" |
1502 |
|
if test -n "$LEX"; then |
1503 |
|
echo "$ac_t""$LEX" 1>&6 |
1504 |
|
else |
1505 |
|
echo "$ac_t""no" 1>&6 |
1506 |
|
fi |
1507 |
|
|
1508 |
|
test -n "$LEX" && break |
1509 |
|
done |
1510 |
|
test -n "$LEX" || LEX=""$missing_dir/missing flex"" |
1511 |
|
|
1512 |
|
# Extract the first word of "flex", so it can be a program name with args. |
1513 |
|
set dummy flex; ac_word=$2 |
1514 |
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1515 |
|
echo "configure:1516: checking for $ac_word" >&5 |
1516 |
|
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1517 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1518 |
|
else |
1519 |
|
if test -n "$LEX"; then |
1520 |
|
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
1521 |
|
else |
1522 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1523 |
|
ac_dummy="$PATH" |
1524 |
|
for ac_dir in $ac_dummy; do |
1525 |
|
test -z "$ac_dir" && ac_dir=. |
1526 |
|
if test -f $ac_dir/$ac_word; then |
1527 |
|
ac_cv_prog_LEX="flex" |
1528 |
|
break |
1529 |
|
fi |
1530 |
|
done |
1531 |
|
IFS="$ac_save_ifs" |
1532 |
|
test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" |
1533 |
|
fi |
1534 |
|
fi |
1535 |
|
LEX="$ac_cv_prog_LEX" |
1536 |
|
if test -n "$LEX"; then |
1537 |
|
echo "$ac_t""$LEX" 1>&6 |
1538 |
|
else |
1539 |
|
echo "$ac_t""no" 1>&6 |
1540 |
|
fi |
1541 |
|
|
1542 |
|
if test -z "$LEXLIB" |
1543 |
|
then |
1544 |
|
case "$LEX" in |
1545 |
|
flex*) ac_lib=fl ;; |
1546 |
|
*) ac_lib=l ;; |
1547 |
|
esac |
1548 |
|
echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 |
1549 |
|
echo "configure:1550: checking for yywrap in -l$ac_lib" >&5 |
1550 |
|
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1551 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1552 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1553 |
|
else |
1554 |
|
ac_save_LIBS="$LIBS" |
1555 |
|
LIBS="-l$ac_lib $LIBS" |
1556 |
|
cat > conftest.$ac_ext <<EOF |
1557 |
|
#line 1558 "configure" |
1558 |
|
#include "confdefs.h" |
1559 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1560 |
|
/* We use char because int might match the return type of a gcc2 |
1561 |
|
builtin and then its argument prototype would still apply. */ |
1562 |
|
char yywrap(); |
1563 |
|
|
1564 |
|
int main() { |
1565 |
|
yywrap() |
1566 |
|
; return 0; } |
1567 |
|
EOF |
1568 |
|
if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1569 |
|
rm -rf conftest* |
1570 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1571 |
|
else |
1572 |
|
echo "configure: failed program was:" >&5 |
1573 |
|
cat conftest.$ac_ext >&5 |
1574 |
|
rm -rf conftest* |
1575 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
1576 |
|
fi |
1577 |
|
rm -f conftest* |
1578 |
|
LIBS="$ac_save_LIBS" |
1579 |
|
|
1580 |
|
fi |
1581 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1582 |
|
echo "$ac_t""yes" 1>&6 |
1583 |
|
LEXLIB="-l$ac_lib" |
1584 |
|
else |
1585 |
|
echo "$ac_t""no" 1>&6 |
1586 |
|
fi |
1587 |
|
|
1588 |
|
fi |
1589 |
|
|
1590 |
|
echo $ac_n "checking lex output file root""... $ac_c" 1>&6 |
1591 |
|
echo "configure:1592: checking lex output file root" >&5 |
1592 |
|
if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then |
1593 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1594 |
|
else |
1595 |
|
# The minimal lex program is just a single line: %%. But some broken lexes |
1596 |
|
# (Solaris, I think it was) want two %% lines, so accommodate them. |
1597 |
|
echo '%% |
1598 |
|
%%' | $LEX |
1599 |
|
if test -f lex.yy.c; then |
1600 |
|
ac_cv_prog_lex_root=lex.yy |
1601 |
|
elif test -f lexyy.c; then |
1602 |
|
ac_cv_prog_lex_root=lexyy |
1603 |
|
else |
1604 |
|
{ echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } |
1605 |
|
fi |
1606 |
|
fi |
1607 |
|
|
1608 |
|
echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 |
1609 |
|
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
1610 |
|
|
1611 |
|
echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 |
1612 |
|
echo "configure:1613: checking whether yytext is a pointer" >&5 |
1613 |
|
if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then |
1614 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1615 |
|
else |
1616 |
|
# POSIX says lex can declare yytext either as a pointer or an array; the |
1617 |
|
# default is implementation-dependent. Figure out which it is, since |
1618 |
|
# not all implementations provide the %pointer and %array declarations. |
1619 |
|
ac_cv_prog_lex_yytext_pointer=no |
1620 |
|
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
1621 |
|
ac_save_LIBS="$LIBS" |
1622 |
|
LIBS="$LIBS $LEXLIB" |
1623 |
|
cat > conftest.$ac_ext <<EOF |
1624 |
|
#line 1625 "configure" |
1625 |
|
#include "confdefs.h" |
1626 |
|
`cat $LEX_OUTPUT_ROOT.c` |
1627 |
|
int main() { |
1628 |
|
|
1629 |
|
; return 0; } |
1630 |
|
EOF |
1631 |
|
if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1632 |
|
rm -rf conftest* |
1633 |
|
ac_cv_prog_lex_yytext_pointer=yes |
1634 |
|
else |
1635 |
|
echo "configure: failed program was:" >&5 |
1636 |
|
cat conftest.$ac_ext >&5 |
1637 |
|
fi |
1638 |
|
rm -f conftest* |
1639 |
|
LIBS="$ac_save_LIBS" |
1640 |
|
rm -f "${LEX_OUTPUT_ROOT}.c" |
1641 |
|
|
1642 |
|
fi |
1643 |
|
|
1644 |
|
echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 |
1645 |
|
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
1646 |
|
cat >> confdefs.h <<\EOF |
1647 |
|
#define YYTEXT_POINTER 1 |
1648 |
|
EOF |
1649 |
|
|
1650 |
|
fi |
1651 |
|
|
1652 |
|
|
1653 |
|
|
1654 |
dirlist=".. ../../ ../../.. ../../../.. ../../../../.. ../../../../../.. ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." |
dirlist=".. ../../ ../../.. ../../../.. ../../../../.. ../../../../../.. ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." |
1655 |
echo $ac_n "checking for docbook tools""... $ac_c" 1>&6 |
echo $ac_n "checking for docbook tools""... $ac_c" 1>&6 |
1656 |
echo "configure:1365: checking for docbook tools" >&5 |
echo "configure:1657: checking for docbook tools" >&5 |
1657 |
# Check whether --with-oskith or --without-oskith was given. |
# Check whether --with-oskith or --without-oskith was given. |
1658 |
if test "${with_oskith+set}" = set; then |
if test "${with_oskith+set}" = set; then |
1659 |
withval="$with_oskith" |
withval="$with_oskith" |
1699 |
/../../../../../.." |
/../../../../../.." |
1700 |
no_itcl=true |
no_itcl=true |
1701 |
echo $ac_n "checking for the tclsh program""... $ac_c" 1>&6 |
echo $ac_n "checking for the tclsh program""... $ac_c" 1>&6 |
1702 |
echo "configure:1411: checking for the tclsh program" >&5 |
echo "configure:1703: checking for the tclsh program" >&5 |
1703 |
# Check whether --with-tclinclude or --without-tclinclude was given. |
# Check whether --with-tclinclude or --without-tclinclude was given. |
1704 |
if test "${with_tclinclude+set}" = set; then |
if test "${with_tclinclude+set}" = set; then |
1705 |
withval="$with_tclinclude" |
withval="$with_tclinclude" |
1744 |
# Extract the first word of "tclsh", so it can be a program name with args. |
# Extract the first word of "tclsh", so it can be a program name with args. |
1745 |
set dummy tclsh; ac_word=$2 |
set dummy tclsh; ac_word=$2 |
1746 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1747 |
echo "configure:1456: checking for $ac_word" >&5 |
echo "configure:1748: checking for $ac_word" >&5 |
1748 |
if eval "test \"`echo '$''{'ac_cv_path_tclsh'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_path_tclsh'+set}'`\" = set"; then |
1749 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1750 |
else |
else |
1783 |
|
|
1784 |
|
|
1785 |
|
|
1786 |
|
|
1787 |
|
echo $ac_n "checking for for STL versions""... $ac_c" 1>&6 |
1788 |
|
echo "configure:1789: checking for for STL versions" >&5 |
1789 |
|
if eval "test \"`echo '$''{'ac_cv_stl'+set}'`\" = set"; then |
1790 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1791 |
|
else |
1792 |
|
|
1793 |
|
cat > conftest.$ac_ext <<EOF |
1794 |
|
#line 1795 "configure" |
1795 |
|
#include "confdefs.h" |
1796 |
|
#include <iostream> |
1797 |
|
int main() { |
1798 |
|
|
1799 |
|
using namespace std; |
1800 |
|
char bbuuff[5120]; |
1801 |
|
cout.rdbuf()->pubsetbuf(bbuuff, 5120); |
1802 |
|
; return 0; } |
1803 |
|
EOF |
1804 |
|
if { (eval echo configure:1805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1805 |
|
rm -rf conftest* |
1806 |
|
ac_cv_stl=v3 |
1807 |
|
|
1808 |
|
else |
1809 |
|
echo "configure: failed program was:" >&5 |
1810 |
|
cat conftest.$ac_ext >&5 |
1811 |
|
rm -rf conftest* |
1812 |
|
ac_cv_stl=v2 |
1813 |
|
|
1814 |
|
fi |
1815 |
|
rm -f conftest*, |
1816 |
|
|
1817 |
|
fi |
1818 |
|
|
1819 |
|
|
1820 |
|
if test x"${ac_cv_stl}" != x"v2" ; then |
1821 |
|
echo "$ac_t""v3" 1>&6 |
1822 |
|
cat >> confdefs.h <<\EOF |
1823 |
|
#define HAVE_STL3 1 |
1824 |
|
EOF |
1825 |
|
|
1826 |
|
else |
1827 |
|
echo "$ac_t""v2" 1>&6 |
1828 |
|
fi |
1829 |
|
|
1830 |
|
|
1831 |
BOARDS='$(boards)' |
BOARDS='$(boards)' |
1832 |
|
|
1833 |
CONFIG='$(config)' |
CONFIG='$(config)' |
1950 |
ac_given_INSTALL="$INSTALL" |
ac_given_INSTALL="$INSTALL" |
1951 |
|
|
1952 |
trap 'rm -fr `echo "Makefile doc/Makefile testsuite/Makefile example/Makefile |
trap 'rm -fr `echo "Makefile doc/Makefile testsuite/Makefile example/Makefile |
1953 |
testsuite/libdejagnu/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
testsuite/libdejagnu/Makefile unitparse/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
1954 |
EOF |
EOF |
1955 |
cat >> $CONFIG_STATUS <<EOF |
cat >> $CONFIG_STATUS <<EOF |
1956 |
|
|
1999 |
s%@CC@%$CC%g |
s%@CC@%$CC%g |
2000 |
s%@CXX@%$CXX%g |
s%@CXX@%$CXX%g |
2001 |
s%@EXEEXT@%$EXEEXT%g |
s%@EXEEXT@%$EXEEXT%g |
2002 |
|
s%@YACC@%$YACC%g |
2003 |
|
s%@LEX@%$LEX%g |
2004 |
|
s%@LEXLIB@%$LEXLIB%g |
2005 |
|
s%@CPP@%$CPP%g |
2006 |
|
s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g |
2007 |
s%@DOCBOOK@%$DOCBOOK%g |
s%@DOCBOOK@%$DOCBOOK%g |
2008 |
s%@tclsh@%$tclsh%g |
s%@tclsh@%$tclsh%g |
2009 |
s%@TCLSH@%$TCLSH%g |
s%@TCLSH@%$TCLSH%g |
2052 |
cat >> $CONFIG_STATUS <<EOF |
cat >> $CONFIG_STATUS <<EOF |
2053 |
|
|
2054 |
CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile testsuite/Makefile example/Makefile |
CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile testsuite/Makefile example/Makefile |
2055 |
testsuite/libdejagnu/Makefile"} |
testsuite/libdejagnu/Makefile unitparse/Makefile"} |
2056 |
EOF |
EOF |
2057 |
cat >> $CONFIG_STATUS <<\EOF |
cat >> $CONFIG_STATUS <<\EOF |
2058 |
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |