Mercurial > hg > xemacs-beta
comparison configure @ 327:03446687b7cc r21-0-61
Import from CVS: tag r21-0-61
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:48:16 +0200 |
parents | 19dcec799385 |
children | 4f79e16b1112 |
comparison
equal
deleted
inserted
replaced
326:e2671bc7f66a | 327:03446687b7cc |
---|---|
1375 esac | 1375 esac |
1376 ;; | 1376 ;; |
1377 | 1377 |
1378 m68k-*-linux* ) machine=m68k opsys=linux ;; | 1378 m68k-*-linux* ) machine=m68k opsys=linux ;; |
1379 | 1379 |
1380 arm-*-linux* ) machine=arm opsys=linux ;; | |
1381 | |
1380 esac | 1382 esac |
1381 | 1383 |
1382 if test -z "$machine" -o -z "$opsys"; then | 1384 if test -z "$machine" -o -z "$opsys"; then |
1383 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems." | 1385 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems." |
1384 echo "$progname: Check \`etc/MACHINES' for recognized configuration names." | 1386 echo "$progname: Check \`etc/MACHINES' for recognized configuration names." |
1473 xe_save_CFLAGS="$CFLAGS" | 1475 xe_save_CFLAGS="$CFLAGS" |
1474 | 1476 |
1475 # Extract the first word of "gcc", so it can be a program name with args. | 1477 # Extract the first word of "gcc", so it can be a program name with args. |
1476 set dummy gcc; ac_word=$2 | 1478 set dummy gcc; ac_word=$2 |
1477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1478 echo "configure:1479: checking for $ac_word" >&5 | 1480 echo "configure:1481: checking for $ac_word" >&5 |
1479 | 1481 |
1480 if test -n "$CC"; then | 1482 if test -n "$CC"; then |
1481 ac_cv_prog_CC="$CC" # Let the user override the test. | 1483 ac_cv_prog_CC="$CC" # Let the user override the test. |
1482 else | 1484 else |
1483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1499 | 1501 |
1500 if test -z "$CC"; then | 1502 if test -z "$CC"; then |
1501 # Extract the first word of "cc", so it can be a program name with args. | 1503 # Extract the first word of "cc", so it can be a program name with args. |
1502 set dummy cc; ac_word=$2 | 1504 set dummy cc; ac_word=$2 |
1503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1504 echo "configure:1505: checking for $ac_word" >&5 | 1506 echo "configure:1507: checking for $ac_word" >&5 |
1505 | 1507 |
1506 if test -n "$CC"; then | 1508 if test -n "$CC"; then |
1507 ac_cv_prog_CC="$CC" # Let the user override the test. | 1509 ac_cv_prog_CC="$CC" # Let the user override the test. |
1508 else | 1510 else |
1509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1544 | 1546 |
1545 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 1547 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1546 fi | 1548 fi |
1547 | 1549 |
1548 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 1550 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1549 echo "configure:1550: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 1551 echo "configure:1552: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1550 | 1552 |
1551 ac_ext=c | 1553 ac_ext=c |
1552 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' | 1554 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' |
1553 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' | 1555 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' |
1554 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' | 1556 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' |
1556 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' | 1558 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' |
1557 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | 1559 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' |
1558 cross_compiling=no | 1560 cross_compiling=no |
1559 | 1561 |
1560 cat > conftest.$ac_ext <<EOF | 1562 cat > conftest.$ac_ext <<EOF |
1561 #line 1562 "configure" | 1563 #line 1564 "configure" |
1562 #include "confdefs.h" | 1564 #include "confdefs.h" |
1563 main(){return(0);} | 1565 main(){return(0);} |
1564 EOF | 1566 EOF |
1565 if { (eval echo configure:1566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1567 if { (eval echo configure:1568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1566 ac_cv_prog_cc_works=yes | 1568 ac_cv_prog_cc_works=yes |
1567 # If we can't run a trivial program, we are probably using a cross compiler. | 1569 # If we can't run a trivial program, we are probably using a cross compiler. |
1568 if (./conftest; exit) 2>/dev/null; then | 1570 if (./conftest; exit) 2>/dev/null; then |
1569 ac_cv_prog_cc_cross=no | 1571 ac_cv_prog_cc_cross=no |
1570 else | 1572 else |
1580 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 1582 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1581 if test $ac_cv_prog_cc_works = no; then | 1583 if test $ac_cv_prog_cc_works = no; then |
1582 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 1584 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1583 fi | 1585 fi |
1584 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 1586 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1585 echo "configure:1586: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 1587 echo "configure:1588: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1586 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 1588 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1587 cross_compiling=$ac_cv_prog_cc_cross | 1589 cross_compiling=$ac_cv_prog_cc_cross |
1588 | 1590 |
1589 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 1591 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1590 echo "configure:1591: checking whether we are using GNU C" >&5 | 1592 echo "configure:1593: checking whether we are using GNU C" >&5 |
1591 | 1593 |
1592 cat > conftest.c <<EOF | 1594 cat > conftest.c <<EOF |
1593 #ifdef __GNUC__ | 1595 #ifdef __GNUC__ |
1594 yes; | 1596 yes; |
1595 #endif | 1597 #endif |
1596 EOF | 1598 EOF |
1597 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 1599 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1598 ac_cv_prog_gcc=yes | 1600 ac_cv_prog_gcc=yes |
1599 else | 1601 else |
1600 ac_cv_prog_gcc=no | 1602 ac_cv_prog_gcc=no |
1601 fi | 1603 fi |
1602 | 1604 |
1606 GCC=yes | 1608 GCC=yes |
1607 ac_test_CFLAGS="${CFLAGS+set}" | 1609 ac_test_CFLAGS="${CFLAGS+set}" |
1608 ac_save_CFLAGS="$CFLAGS" | 1610 ac_save_CFLAGS="$CFLAGS" |
1609 CFLAGS= | 1611 CFLAGS= |
1610 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 1612 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1611 echo "configure:1612: checking whether ${CC-cc} accepts -g" >&5 | 1613 echo "configure:1614: checking whether ${CC-cc} accepts -g" >&5 |
1612 | 1614 |
1613 echo 'void f(){}' > conftest.c | 1615 echo 'void f(){}' > conftest.c |
1614 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 1616 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1615 ac_cv_prog_cc_g=yes | 1617 ac_cv_prog_cc_g=yes |
1616 else | 1618 else |
1635 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then | 1637 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then |
1636 CC=${NON_GNU_CC-cc} | 1638 CC=${NON_GNU_CC-cc} |
1637 # Extract the first word of "gcc", so it can be a program name with args. | 1639 # Extract the first word of "gcc", so it can be a program name with args. |
1638 set dummy gcc; ac_word=$2 | 1640 set dummy gcc; ac_word=$2 |
1639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1640 echo "configure:1641: checking for $ac_word" >&5 | 1642 echo "configure:1643: checking for $ac_word" >&5 |
1641 | 1643 |
1642 if test -n "$CC"; then | 1644 if test -n "$CC"; then |
1643 ac_cv_prog_CC="$CC" # Let the user override the test. | 1645 ac_cv_prog_CC="$CC" # Let the user override the test. |
1644 else | 1646 else |
1645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1661 | 1663 |
1662 if test -z "$CC"; then | 1664 if test -z "$CC"; then |
1663 # Extract the first word of "cc", so it can be a program name with args. | 1665 # Extract the first word of "cc", so it can be a program name with args. |
1664 set dummy cc; ac_word=$2 | 1666 set dummy cc; ac_word=$2 |
1665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1666 echo "configure:1667: checking for $ac_word" >&5 | 1668 echo "configure:1669: checking for $ac_word" >&5 |
1667 | 1669 |
1668 if test -n "$CC"; then | 1670 if test -n "$CC"; then |
1669 ac_cv_prog_CC="$CC" # Let the user override the test. | 1671 ac_cv_prog_CC="$CC" # Let the user override the test. |
1670 else | 1672 else |
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1706 | 1708 |
1707 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 1709 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1708 fi | 1710 fi |
1709 | 1711 |
1710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 1712 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1711 echo "configure:1712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 1713 echo "configure:1714: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1712 | 1714 |
1713 ac_ext=c | 1715 ac_ext=c |
1714 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' | 1716 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' |
1715 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' | 1717 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' |
1716 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' | 1718 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' |
1718 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' | 1720 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' |
1719 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | 1721 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' |
1720 cross_compiling=no | 1722 cross_compiling=no |
1721 | 1723 |
1722 cat > conftest.$ac_ext <<EOF | 1724 cat > conftest.$ac_ext <<EOF |
1723 #line 1724 "configure" | 1725 #line 1726 "configure" |
1724 #include "confdefs.h" | 1726 #include "confdefs.h" |
1725 main(){return(0);} | 1727 main(){return(0);} |
1726 EOF | 1728 EOF |
1727 if { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1729 if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1728 ac_cv_prog_cc_works=yes | 1730 ac_cv_prog_cc_works=yes |
1729 # If we can't run a trivial program, we are probably using a cross compiler. | 1731 # If we can't run a trivial program, we are probably using a cross compiler. |
1730 if (./conftest; exit) 2>/dev/null; then | 1732 if (./conftest; exit) 2>/dev/null; then |
1731 ac_cv_prog_cc_cross=no | 1733 ac_cv_prog_cc_cross=no |
1732 else | 1734 else |
1742 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 1744 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1743 if test $ac_cv_prog_cc_works = no; then | 1745 if test $ac_cv_prog_cc_works = no; then |
1744 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 1746 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1745 fi | 1747 fi |
1746 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 1748 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1747 echo "configure:1748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 1749 echo "configure:1750: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1748 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 1750 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1749 cross_compiling=$ac_cv_prog_cc_cross | 1751 cross_compiling=$ac_cv_prog_cc_cross |
1750 | 1752 |
1751 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 1753 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1752 echo "configure:1753: checking whether we are using GNU C" >&5 | 1754 echo "configure:1755: checking whether we are using GNU C" >&5 |
1753 | 1755 |
1754 cat > conftest.c <<EOF | 1756 cat > conftest.c <<EOF |
1755 #ifdef __GNUC__ | 1757 #ifdef __GNUC__ |
1756 yes; | 1758 yes; |
1757 #endif | 1759 #endif |
1758 EOF | 1760 EOF |
1759 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 1761 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1760 ac_cv_prog_gcc=yes | 1762 ac_cv_prog_gcc=yes |
1761 else | 1763 else |
1762 ac_cv_prog_gcc=no | 1764 ac_cv_prog_gcc=no |
1763 fi | 1765 fi |
1764 | 1766 |
1768 GCC=yes | 1770 GCC=yes |
1769 ac_test_CFLAGS="${CFLAGS+set}" | 1771 ac_test_CFLAGS="${CFLAGS+set}" |
1770 ac_save_CFLAGS="$CFLAGS" | 1772 ac_save_CFLAGS="$CFLAGS" |
1771 CFLAGS= | 1773 CFLAGS= |
1772 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 1774 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1773 echo "configure:1774: checking whether ${CC-cc} accepts -g" >&5 | 1775 echo "configure:1776: checking whether ${CC-cc} accepts -g" >&5 |
1774 | 1776 |
1775 echo 'void f(){}' > conftest.c | 1777 echo 'void f(){}' > conftest.c |
1776 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 1778 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1777 ac_cv_prog_cc_g=yes | 1779 ac_cv_prog_cc_g=yes |
1778 else | 1780 else |
1797 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then | 1799 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then |
1798 CC=gcc | 1800 CC=gcc |
1799 # Extract the first word of "gcc", so it can be a program name with args. | 1801 # Extract the first word of "gcc", so it can be a program name with args. |
1800 set dummy gcc; ac_word=$2 | 1802 set dummy gcc; ac_word=$2 |
1801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1802 echo "configure:1803: checking for $ac_word" >&5 | 1804 echo "configure:1805: checking for $ac_word" >&5 |
1803 | 1805 |
1804 if test -n "$CC"; then | 1806 if test -n "$CC"; then |
1805 ac_cv_prog_CC="$CC" # Let the user override the test. | 1807 ac_cv_prog_CC="$CC" # Let the user override the test. |
1806 else | 1808 else |
1807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1823 | 1825 |
1824 if test -z "$CC"; then | 1826 if test -z "$CC"; then |
1825 # Extract the first word of "cc", so it can be a program name with args. | 1827 # Extract the first word of "cc", so it can be a program name with args. |
1826 set dummy cc; ac_word=$2 | 1828 set dummy cc; ac_word=$2 |
1827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1828 echo "configure:1829: checking for $ac_word" >&5 | 1830 echo "configure:1831: checking for $ac_word" >&5 |
1829 | 1831 |
1830 if test -n "$CC"; then | 1832 if test -n "$CC"; then |
1831 ac_cv_prog_CC="$CC" # Let the user override the test. | 1833 ac_cv_prog_CC="$CC" # Let the user override the test. |
1832 else | 1834 else |
1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1868 | 1870 |
1869 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 1871 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1870 fi | 1872 fi |
1871 | 1873 |
1872 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 1874 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1873 echo "configure:1874: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 1875 echo "configure:1876: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1874 | 1876 |
1875 ac_ext=c | 1877 ac_ext=c |
1876 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' | 1878 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' |
1877 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' | 1879 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' |
1878 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' | 1880 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' |
1880 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' | 1882 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' |
1881 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | 1883 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' |
1882 cross_compiling=no | 1884 cross_compiling=no |
1883 | 1885 |
1884 cat > conftest.$ac_ext <<EOF | 1886 cat > conftest.$ac_ext <<EOF |
1885 #line 1886 "configure" | 1887 #line 1888 "configure" |
1886 #include "confdefs.h" | 1888 #include "confdefs.h" |
1887 main(){return(0);} | 1889 main(){return(0);} |
1888 EOF | 1890 EOF |
1889 if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1891 if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1890 ac_cv_prog_cc_works=yes | 1892 ac_cv_prog_cc_works=yes |
1891 # If we can't run a trivial program, we are probably using a cross compiler. | 1893 # If we can't run a trivial program, we are probably using a cross compiler. |
1892 if (./conftest; exit) 2>/dev/null; then | 1894 if (./conftest; exit) 2>/dev/null; then |
1893 ac_cv_prog_cc_cross=no | 1895 ac_cv_prog_cc_cross=no |
1894 else | 1896 else |
1904 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 1906 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1905 if test $ac_cv_prog_cc_works = no; then | 1907 if test $ac_cv_prog_cc_works = no; then |
1906 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 1908 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1907 fi | 1909 fi |
1908 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 1910 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1909 echo "configure:1910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 1911 echo "configure:1912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1910 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 1912 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1911 cross_compiling=$ac_cv_prog_cc_cross | 1913 cross_compiling=$ac_cv_prog_cc_cross |
1912 | 1914 |
1913 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 1915 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1914 echo "configure:1915: checking whether we are using GNU C" >&5 | 1916 echo "configure:1917: checking whether we are using GNU C" >&5 |
1915 | 1917 |
1916 cat > conftest.c <<EOF | 1918 cat > conftest.c <<EOF |
1917 #ifdef __GNUC__ | 1919 #ifdef __GNUC__ |
1918 yes; | 1920 yes; |
1919 #endif | 1921 #endif |
1920 EOF | 1922 EOF |
1921 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 1923 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1922 ac_cv_prog_gcc=yes | 1924 ac_cv_prog_gcc=yes |
1923 else | 1925 else |
1924 ac_cv_prog_gcc=no | 1926 ac_cv_prog_gcc=no |
1925 fi | 1927 fi |
1926 | 1928 |
1930 GCC=yes | 1932 GCC=yes |
1931 ac_test_CFLAGS="${CFLAGS+set}" | 1933 ac_test_CFLAGS="${CFLAGS+set}" |
1932 ac_save_CFLAGS="$CFLAGS" | 1934 ac_save_CFLAGS="$CFLAGS" |
1933 CFLAGS= | 1935 CFLAGS= |
1934 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 1936 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1935 echo "configure:1936: checking whether ${CC-cc} accepts -g" >&5 | 1937 echo "configure:1938: checking whether ${CC-cc} accepts -g" >&5 |
1936 | 1938 |
1937 echo 'void f(){}' > conftest.c | 1939 echo 'void f(){}' > conftest.c |
1938 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 1940 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1939 ac_cv_prog_cc_g=yes | 1941 ac_cv_prog_cc_g=yes |
1940 else | 1942 else |
1963 test -n "$CPP" -a -d "$CPP" && CPP= | 1965 test -n "$CPP" -a -d "$CPP" && CPP= |
1964 | 1966 |
1965 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" | 1967 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" |
1966 | 1968 |
1967 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 1969 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1968 echo "configure:1969: checking how to run the C preprocessor" >&5 | 1970 echo "configure:1971: checking how to run the C preprocessor" >&5 |
1969 # On Suns, sometimes $CPP names a directory. | 1971 # On Suns, sometimes $CPP names a directory. |
1970 if test -n "$CPP" && test -d "$CPP"; then | 1972 if test -n "$CPP" && test -d "$CPP"; then |
1971 CPP= | 1973 CPP= |
1972 fi | 1974 fi |
1973 if test -z "$CPP"; then | 1975 if test -z "$CPP"; then |
1976 # substituted into the Makefile and "${CC-cc}" will confuse make. | 1978 # substituted into the Makefile and "${CC-cc}" will confuse make. |
1977 CPP="${CC-cc} -E" | 1979 CPP="${CC-cc} -E" |
1978 # On the NeXT, cc -E runs the code through the compiler's parser, | 1980 # On the NeXT, cc -E runs the code through the compiler's parser, |
1979 # not just through cpp. | 1981 # not just through cpp. |
1980 cat > conftest.$ac_ext <<EOF | 1982 cat > conftest.$ac_ext <<EOF |
1981 #line 1982 "configure" | 1983 #line 1984 "configure" |
1982 #include "confdefs.h" | 1984 #include "confdefs.h" |
1983 #include <assert.h> | 1985 #include <assert.h> |
1984 Syntax Error | 1986 Syntax Error |
1985 EOF | 1987 EOF |
1986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1987 { (eval echo configure:1988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1989 { (eval echo configure:1990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1988 ac_err=`grep -v '^ *+' conftest.out` | 1990 ac_err=`grep -v '^ *+' conftest.out` |
1989 if test -z "$ac_err"; then | 1991 if test -z "$ac_err"; then |
1990 : | 1992 : |
1991 else | 1993 else |
1992 echo "$ac_err" >&5 | 1994 echo "$ac_err" >&5 |
1993 echo "configure: failed program was:" >&5 | 1995 echo "configure: failed program was:" >&5 |
1994 cat conftest.$ac_ext >&5 | 1996 cat conftest.$ac_ext >&5 |
1995 rm -rf conftest* | 1997 rm -rf conftest* |
1996 CPP="${CC-cc} -E -traditional-cpp" | 1998 CPP="${CC-cc} -E -traditional-cpp" |
1997 cat > conftest.$ac_ext <<EOF | 1999 cat > conftest.$ac_ext <<EOF |
1998 #line 1999 "configure" | 2000 #line 2001 "configure" |
1999 #include "confdefs.h" | 2001 #include "confdefs.h" |
2000 #include <assert.h> | 2002 #include <assert.h> |
2001 Syntax Error | 2003 Syntax Error |
2002 EOF | 2004 EOF |
2003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2004 { (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2006 { (eval echo configure:2007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2005 ac_err=`grep -v '^ *+' conftest.out` | 2007 ac_err=`grep -v '^ *+' conftest.out` |
2006 if test -z "$ac_err"; then | 2008 if test -z "$ac_err"; then |
2007 : | 2009 : |
2008 else | 2010 else |
2009 echo "$ac_err" >&5 | 2011 echo "$ac_err" >&5 |
2022 fi | 2024 fi |
2023 echo "$ac_t""$CPP" 1>&6 | 2025 echo "$ac_t""$CPP" 1>&6 |
2024 | 2026 |
2025 | 2027 |
2026 echo $ac_n "checking for AIX""... $ac_c" 1>&6 | 2028 echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
2027 echo "configure:2028: checking for AIX" >&5 | 2029 echo "configure:2030: checking for AIX" >&5 |
2028 cat > conftest.$ac_ext <<EOF | 2030 cat > conftest.$ac_ext <<EOF |
2029 #line 2030 "configure" | 2031 #line 2032 "configure" |
2030 #include "confdefs.h" | 2032 #include "confdefs.h" |
2031 #ifdef _AIX | 2033 #ifdef _AIX |
2032 yes | 2034 yes |
2033 #endif | 2035 #endif |
2034 | 2036 |
2051 rm -f conftest* | 2053 rm -f conftest* |
2052 | 2054 |
2053 | 2055 |
2054 | 2056 |
2055 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 | 2057 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 |
2056 echo "configure:2057: checking for GNU libc" >&5 | 2058 echo "configure:2059: checking for GNU libc" >&5 |
2057 cat > conftest.$ac_ext <<EOF | 2059 cat > conftest.$ac_ext <<EOF |
2058 #line 2059 "configure" | 2060 #line 2061 "configure" |
2059 #include "confdefs.h" | 2061 #include "confdefs.h" |
2060 #include <features.h> | 2062 #include <features.h> |
2061 int main() { | 2063 int main() { |
2062 | 2064 |
2063 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) | 2065 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) |
2065 ******* ======= ******** &&&&&&&& | 2067 ******* ======= ******** &&&&&&&& |
2066 #endif | 2068 #endif |
2067 | 2069 |
2068 ; return 0; } | 2070 ; return 0; } |
2069 EOF | 2071 EOF |
2070 if { (eval echo configure:2071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2072 if { (eval echo configure:2073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2071 rm -rf conftest* | 2073 rm -rf conftest* |
2072 have_glibc=yes | 2074 have_glibc=yes |
2073 else | 2075 else |
2074 echo "configure: failed program was:" >&5 | 2076 echo "configure: failed program was:" >&5 |
2075 cat conftest.$ac_ext >&5 | 2077 cat conftest.$ac_ext >&5 |
2087 } | 2089 } |
2088 | 2090 |
2089 | 2091 |
2090 | 2092 |
2091 cat > conftest.$ac_ext <<EOF | 2093 cat > conftest.$ac_ext <<EOF |
2092 #line 2093 "configure" | 2094 #line 2095 "configure" |
2093 #include "confdefs.h" | 2095 #include "confdefs.h" |
2094 int main () { | 2096 int main () { |
2095 #if defined __SUNPRO_C | 2097 #if defined __SUNPRO_C |
2096 return 11; | 2098 return 11; |
2097 #elif defined __DECC | 2099 #elif defined __DECC |
2099 #else | 2101 #else |
2100 return 0; | 2102 return 0; |
2101 #endif | 2103 #endif |
2102 } | 2104 } |
2103 EOF | 2105 EOF |
2104 if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 2106 if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
2105 then | 2107 then |
2106 : | 2108 : |
2107 else | 2109 else |
2108 conftest_rc="$?" | 2110 conftest_rc="$?" |
2109 echo "configure: failed program was:" >&5 | 2111 echo "configure: failed program was:" >&5 |
2369 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then | 2371 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then |
2370 echo " xemacs will be linked with \"$unexec\"" | 2372 echo " xemacs will be linked with \"$unexec\"" |
2371 fi | 2373 fi |
2372 | 2374 |
2373 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 | 2375 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 |
2374 echo "configure:2375: checking for dynodump" >&5 | 2376 echo "configure:2377: checking for dynodump" >&5 |
2375 if test "$unexec" != "unexsol2.o"; then | 2377 if test "$unexec" != "unexsol2.o"; then |
2376 echo "$ac_t""no" 1>&6 | 2378 echo "$ac_t""no" 1>&6 |
2377 else | 2379 else |
2378 echo "$ac_t""yes" 1>&6 | 2380 echo "$ac_t""yes" 1>&6 |
2379 { test "$extra_verbose" = "yes" && cat << \EOF | 2381 { test "$extra_verbose" = "yes" && cat << \EOF |
2407 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do | 2409 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do |
2408 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi | 2410 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi |
2409 done | 2411 done |
2410 | 2412 |
2411 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 | 2413 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 |
2412 echo "configure:2413: checking for terminateAndUnload in -lC" >&5 | 2414 echo "configure:2415: checking for terminateAndUnload in -lC" >&5 |
2413 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` | 2415 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` |
2414 | 2416 |
2415 xe_check_libs=" -lC " | 2417 xe_check_libs=" -lC " |
2416 cat > conftest.$ac_ext <<EOF | 2418 cat > conftest.$ac_ext <<EOF |
2417 #line 2418 "configure" | 2419 #line 2420 "configure" |
2418 #include "confdefs.h" | 2420 #include "confdefs.h" |
2419 /* Override any gcc2 internal prototype to avoid an error. */ | 2421 /* Override any gcc2 internal prototype to avoid an error. */ |
2420 /* We use char because int might match the return type of a gcc2 | 2422 /* We use char because int might match the return type of a gcc2 |
2421 builtin and then its argument prototype would still apply. */ | 2423 builtin and then its argument prototype would still apply. */ |
2422 char terminateAndUnload(); | 2424 char terminateAndUnload(); |
2423 | 2425 |
2424 int main() { | 2426 int main() { |
2425 terminateAndUnload() | 2427 terminateAndUnload() |
2426 ; return 0; } | 2428 ; return 0; } |
2427 EOF | 2429 EOF |
2428 if { (eval echo configure:2429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
2429 rm -rf conftest* | 2431 rm -rf conftest* |
2430 eval "ac_cv_lib_$ac_lib_var=yes" | 2432 eval "ac_cv_lib_$ac_lib_var=yes" |
2431 else | 2433 else |
2432 echo "configure: failed program was:" >&5 | 2434 echo "configure: failed program was:" >&5 |
2433 cat conftest.$ac_ext >&5 | 2435 cat conftest.$ac_ext >&5 |
2507 esac | 2509 esac |
2508 fi | 2510 fi |
2509 | 2511 |
2510 if test "$add_runtime_path" = "yes"; then | 2512 if test "$add_runtime_path" = "yes"; then |
2511 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 | 2513 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 |
2512 echo "configure:2513: checking "for runtime libraries flag"" >&5 | 2514 echo "configure:2515: checking "for runtime libraries flag"" >&5 |
2513 case "$opsys" in | 2515 case "$opsys" in |
2514 sol2 ) dash_r="-R" ;; | 2516 sol2 ) dash_r="-R" ;; |
2515 decosf* | linux* ) dash_r="-rpath " ;; | 2517 decosf* | linux* ) dash_r="-rpath " ;; |
2516 *) | 2518 *) |
2517 dash_r="" | 2519 dash_r="" |
2529 esac | 2531 esac |
2530 shift | 2532 shift |
2531 done | 2533 done |
2532 fi | 2534 fi |
2533 cat > conftest.$ac_ext <<EOF | 2535 cat > conftest.$ac_ext <<EOF |
2534 #line 2535 "configure" | 2536 #line 2537 "configure" |
2535 #include "confdefs.h" | 2537 #include "confdefs.h" |
2536 | 2538 |
2537 int main() { | 2539 int main() { |
2538 | 2540 |
2539 ; return 0; } | 2541 ; return 0; } |
2540 EOF | 2542 EOF |
2541 if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 2543 if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
2542 rm -rf conftest* | 2544 rm -rf conftest* |
2543 dash_r="$try_dash_r" | 2545 dash_r="$try_dash_r" |
2544 else | 2546 else |
2545 echo "configure: failed program was:" >&5 | 2547 echo "configure: failed program was:" >&5 |
2546 cat conftest.$ac_ext >&5 | 2548 cat conftest.$ac_ext >&5 |
2637 else | 2639 else |
2638 doug_lea_malloc=no | 2640 doug_lea_malloc=no |
2639 fi | 2641 fi |
2640 after_morecore_hook_exists=yes | 2642 after_morecore_hook_exists=yes |
2641 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | 2643 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 |
2642 echo "configure:2643: checking for malloc_get_state" >&5 | 2644 echo "configure:2645: checking for malloc_get_state" >&5 |
2643 | 2645 |
2644 cat > conftest.$ac_ext <<EOF | 2646 cat > conftest.$ac_ext <<EOF |
2645 #line 2646 "configure" | 2647 #line 2648 "configure" |
2646 #include "confdefs.h" | 2648 #include "confdefs.h" |
2647 /* System header to define __stub macros and hopefully few prototypes, | 2649 /* System header to define __stub macros and hopefully few prototypes, |
2648 which can conflict with char malloc_get_state(); below. */ | 2650 which can conflict with char malloc_get_state(); below. */ |
2649 #include <assert.h> | 2651 #include <assert.h> |
2650 /* Override any gcc2 internal prototype to avoid an error. */ | 2652 /* Override any gcc2 internal prototype to avoid an error. */ |
2663 malloc_get_state(); | 2665 malloc_get_state(); |
2664 #endif | 2666 #endif |
2665 | 2667 |
2666 ; return 0; } | 2668 ; return 0; } |
2667 EOF | 2669 EOF |
2668 if { (eval echo configure:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 2670 if { (eval echo configure:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
2669 rm -rf conftest* | 2671 rm -rf conftest* |
2670 eval "ac_cv_func_malloc_get_state=yes" | 2672 eval "ac_cv_func_malloc_get_state=yes" |
2671 else | 2673 else |
2672 echo "configure: failed program was:" >&5 | 2674 echo "configure: failed program was:" >&5 |
2673 cat conftest.$ac_ext >&5 | 2675 cat conftest.$ac_ext >&5 |
2683 echo "$ac_t""no" 1>&6 | 2685 echo "$ac_t""no" 1>&6 |
2684 doug_lea_malloc=no | 2686 doug_lea_malloc=no |
2685 fi | 2687 fi |
2686 | 2688 |
2687 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | 2689 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 |
2688 echo "configure:2689: checking for malloc_set_state" >&5 | 2690 echo "configure:2691: checking for malloc_set_state" >&5 |
2689 | 2691 |
2690 cat > conftest.$ac_ext <<EOF | 2692 cat > conftest.$ac_ext <<EOF |
2691 #line 2692 "configure" | 2693 #line 2694 "configure" |
2692 #include "confdefs.h" | 2694 #include "confdefs.h" |
2693 /* System header to define __stub macros and hopefully few prototypes, | 2695 /* System header to define __stub macros and hopefully few prototypes, |
2694 which can conflict with char malloc_set_state(); below. */ | 2696 which can conflict with char malloc_set_state(); below. */ |
2695 #include <assert.h> | 2697 #include <assert.h> |
2696 /* Override any gcc2 internal prototype to avoid an error. */ | 2698 /* Override any gcc2 internal prototype to avoid an error. */ |
2709 malloc_set_state(); | 2711 malloc_set_state(); |
2710 #endif | 2712 #endif |
2711 | 2713 |
2712 ; return 0; } | 2714 ; return 0; } |
2713 EOF | 2715 EOF |
2714 if { (eval echo configure:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 2716 if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
2715 rm -rf conftest* | 2717 rm -rf conftest* |
2716 eval "ac_cv_func_malloc_set_state=yes" | 2718 eval "ac_cv_func_malloc_set_state=yes" |
2717 else | 2719 else |
2718 echo "configure: failed program was:" >&5 | 2720 echo "configure: failed program was:" >&5 |
2719 cat conftest.$ac_ext >&5 | 2721 cat conftest.$ac_ext >&5 |
2729 echo "$ac_t""no" 1>&6 | 2731 echo "$ac_t""no" 1>&6 |
2730 doug_lea_malloc=no | 2732 doug_lea_malloc=no |
2731 fi | 2733 fi |
2732 | 2734 |
2733 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | 2735 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 |
2734 echo "configure:2735: checking whether __after_morecore_hook exists" >&5 | 2736 echo "configure:2737: checking whether __after_morecore_hook exists" >&5 |
2735 cat > conftest.$ac_ext <<EOF | 2737 cat > conftest.$ac_ext <<EOF |
2736 #line 2737 "configure" | 2738 #line 2739 "configure" |
2737 #include "confdefs.h" | 2739 #include "confdefs.h" |
2738 extern void (* __after_morecore_hook)(); | 2740 extern void (* __after_morecore_hook)(); |
2739 int main() { | 2741 int main() { |
2740 __after_morecore_hook = 0 | 2742 __after_morecore_hook = 0 |
2741 ; return 0; } | 2743 ; return 0; } |
2742 EOF | 2744 EOF |
2743 if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 2745 if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
2744 rm -rf conftest* | 2746 rm -rf conftest* |
2745 echo "$ac_t""yes" 1>&6 | 2747 echo "$ac_t""yes" 1>&6 |
2746 else | 2748 else |
2747 echo "configure: failed program was:" >&5 | 2749 echo "configure: failed program was:" >&5 |
2748 cat conftest.$ac_ext >&5 | 2750 cat conftest.$ac_ext >&5 |
2797 | 2799 |
2798 | 2800 |
2799 # Extract the first word of "ranlib", so it can be a program name with args. | 2801 # Extract the first word of "ranlib", so it can be a program name with args. |
2800 set dummy ranlib; ac_word=$2 | 2802 set dummy ranlib; ac_word=$2 |
2801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2802 echo "configure:2803: checking for $ac_word" >&5 | 2804 echo "configure:2805: checking for $ac_word" >&5 |
2803 | 2805 |
2804 if test -n "$RANLIB"; then | 2806 if test -n "$RANLIB"; then |
2805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 2807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
2806 else | 2808 else |
2807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 2809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
2850 # AIX /bin/install | 2852 # AIX /bin/install |
2851 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 2853 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2852 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 2854 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2853 # ./install, which can be erroneously created by make from ./install.sh. | 2855 # ./install, which can be erroneously created by make from ./install.sh. |
2854 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 2856 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
2855 echo "configure:2856: checking for a BSD compatible install" >&5 | 2857 echo "configure:2858: checking for a BSD compatible install" >&5 |
2856 if test -z "$INSTALL"; then | 2858 if test -z "$INSTALL"; then |
2857 | 2859 |
2858 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | 2860 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
2859 for ac_dir in $PATH; do | 2861 for ac_dir in $PATH; do |
2860 # Account for people who put trailing slashes in PATH elements. | 2862 # Account for people who put trailing slashes in PATH elements. |
2901 for ac_prog in 'bison -y' byacc | 2903 for ac_prog in 'bison -y' byacc |
2902 do | 2904 do |
2903 # Extract the first word of "$ac_prog", so it can be a program name with args. | 2905 # Extract the first word of "$ac_prog", so it can be a program name with args. |
2904 set dummy $ac_prog; ac_word=$2 | 2906 set dummy $ac_prog; ac_word=$2 |
2905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2906 echo "configure:2907: checking for $ac_word" >&5 | 2908 echo "configure:2909: checking for $ac_word" >&5 |
2907 | 2909 |
2908 if test -n "$YACC"; then | 2910 if test -n "$YACC"; then |
2909 ac_cv_prog_YACC="$YACC" # Let the user override the test. | 2911 ac_cv_prog_YACC="$YACC" # Let the user override the test. |
2910 else | 2912 else |
2911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 2913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
2932 | 2934 |
2933 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h | 2935 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h |
2934 do | 2936 do |
2935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2937 echo "configure:2938: checking for $ac_hdr" >&5 | 2939 echo "configure:2940: checking for $ac_hdr" >&5 |
2938 | 2940 |
2939 cat > conftest.$ac_ext <<EOF | 2941 cat > conftest.$ac_ext <<EOF |
2940 #line 2941 "configure" | 2942 #line 2943 "configure" |
2941 #include "confdefs.h" | 2943 #include "confdefs.h" |
2942 #include <$ac_hdr> | 2944 #include <$ac_hdr> |
2943 EOF | 2945 EOF |
2944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2945 { (eval echo configure:2946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2947 { (eval echo configure:2948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2946 ac_err=`grep -v '^ *+' conftest.out` | 2948 ac_err=`grep -v '^ *+' conftest.out` |
2947 if test -z "$ac_err"; then | 2949 if test -z "$ac_err"; then |
2948 rm -rf conftest* | 2950 rm -rf conftest* |
2949 eval "ac_cv_header_$ac_safe=yes" | 2951 eval "ac_cv_header_$ac_safe=yes" |
2950 else | 2952 else |
2973 | 2975 |
2974 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h | 2976 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h |
2975 do | 2977 do |
2976 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2978 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2977 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2978 echo "configure:2979: checking for $ac_hdr" >&5 | 2980 echo "configure:2981: checking for $ac_hdr" >&5 |
2979 | 2981 |
2980 cat > conftest.$ac_ext <<EOF | 2982 cat > conftest.$ac_ext <<EOF |
2981 #line 2982 "configure" | 2983 #line 2984 "configure" |
2982 #include "confdefs.h" | 2984 #include "confdefs.h" |
2983 #include <$ac_hdr> | 2985 #include <$ac_hdr> |
2984 EOF | 2986 EOF |
2985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2986 { (eval echo configure:2987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2988 { (eval echo configure:2989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2987 ac_err=`grep -v '^ *+' conftest.out` | 2989 ac_err=`grep -v '^ *+' conftest.out` |
2988 if test -z "$ac_err"; then | 2990 if test -z "$ac_err"; then |
2989 rm -rf conftest* | 2991 rm -rf conftest* |
2990 eval "ac_cv_header_$ac_safe=yes" | 2992 eval "ac_cv_header_$ac_safe=yes" |
2991 else | 2993 else |
3014 | 3016 |
3015 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h | 3017 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h |
3016 do | 3018 do |
3017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 3019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 3020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3019 echo "configure:3020: checking for $ac_hdr" >&5 | 3021 echo "configure:3022: checking for $ac_hdr" >&5 |
3020 | 3022 |
3021 cat > conftest.$ac_ext <<EOF | 3023 cat > conftest.$ac_ext <<EOF |
3022 #line 3023 "configure" | 3024 #line 3025 "configure" |
3023 #include "confdefs.h" | 3025 #include "confdefs.h" |
3024 #include <$ac_hdr> | 3026 #include <$ac_hdr> |
3025 EOF | 3027 EOF |
3026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3027 { (eval echo configure:3028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3029 { (eval echo configure:3030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3028 ac_err=`grep -v '^ *+' conftest.out` | 3030 ac_err=`grep -v '^ *+' conftest.out` |
3029 if test -z "$ac_err"; then | 3031 if test -z "$ac_err"; then |
3030 rm -rf conftest* | 3032 rm -rf conftest* |
3031 eval "ac_cv_header_$ac_safe=yes" | 3033 eval "ac_cv_header_$ac_safe=yes" |
3032 else | 3034 else |
3052 echo "$ac_t""no" 1>&6 | 3054 echo "$ac_t""no" 1>&6 |
3053 fi | 3055 fi |
3054 done | 3056 done |
3055 | 3057 |
3056 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | 3058 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
3057 echo "configure:3058: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 3059 echo "configure:3060: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
3058 | 3060 |
3059 cat > conftest.$ac_ext <<EOF | 3061 cat > conftest.$ac_ext <<EOF |
3060 #line 3061 "configure" | 3062 #line 3063 "configure" |
3061 #include "confdefs.h" | 3063 #include "confdefs.h" |
3062 #include <sys/types.h> | 3064 #include <sys/types.h> |
3063 #include <sys/wait.h> | 3065 #include <sys/wait.h> |
3064 #ifndef WEXITSTATUS | 3066 #ifndef WEXITSTATUS |
3065 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 3067 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
3071 int s; | 3073 int s; |
3072 wait (&s); | 3074 wait (&s); |
3073 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 3075 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
3074 ; return 0; } | 3076 ; return 0; } |
3075 EOF | 3077 EOF |
3076 if { (eval echo configure:3077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3078 if { (eval echo configure:3079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3077 rm -rf conftest* | 3079 rm -rf conftest* |
3078 ac_cv_header_sys_wait_h=yes | 3080 ac_cv_header_sys_wait_h=yes |
3079 else | 3081 else |
3080 echo "configure: failed program was:" >&5 | 3082 echo "configure: failed program was:" >&5 |
3081 cat conftest.$ac_ext >&5 | 3083 cat conftest.$ac_ext >&5 |
3095 } | 3097 } |
3096 | 3098 |
3097 fi | 3099 fi |
3098 | 3100 |
3099 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 3101 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
3100 echo "configure:3101: checking for ANSI C header files" >&5 | 3102 echo "configure:3103: checking for ANSI C header files" >&5 |
3101 | 3103 |
3102 cat > conftest.$ac_ext <<EOF | 3104 cat > conftest.$ac_ext <<EOF |
3103 #line 3104 "configure" | 3105 #line 3106 "configure" |
3104 #include "confdefs.h" | 3106 #include "confdefs.h" |
3105 #include <stdlib.h> | 3107 #include <stdlib.h> |
3106 #include <stdarg.h> | 3108 #include <stdarg.h> |
3107 #include <string.h> | 3109 #include <string.h> |
3108 #include <float.h> | 3110 #include <float.h> |
3109 EOF | 3111 EOF |
3110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3111 { (eval echo configure:3112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3113 { (eval echo configure:3114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3112 ac_err=`grep -v '^ *+' conftest.out` | 3114 ac_err=`grep -v '^ *+' conftest.out` |
3113 if test -z "$ac_err"; then | 3115 if test -z "$ac_err"; then |
3114 rm -rf conftest* | 3116 rm -rf conftest* |
3115 ac_cv_header_stdc=yes | 3117 ac_cv_header_stdc=yes |
3116 else | 3118 else |
3123 rm -f conftest* | 3125 rm -f conftest* |
3124 | 3126 |
3125 if test $ac_cv_header_stdc = yes; then | 3127 if test $ac_cv_header_stdc = yes; then |
3126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 3128 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
3127 cat > conftest.$ac_ext <<EOF | 3129 cat > conftest.$ac_ext <<EOF |
3128 #line 3129 "configure" | 3130 #line 3131 "configure" |
3129 #include "confdefs.h" | 3131 #include "confdefs.h" |
3130 #include <string.h> | 3132 #include <string.h> |
3131 EOF | 3133 EOF |
3132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 3134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3133 egrep "memchr" >/dev/null 2>&1; then | 3135 egrep "memchr" >/dev/null 2>&1; then |
3141 fi | 3143 fi |
3142 | 3144 |
3143 if test $ac_cv_header_stdc = yes; then | 3145 if test $ac_cv_header_stdc = yes; then |
3144 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 3146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
3145 cat > conftest.$ac_ext <<EOF | 3147 cat > conftest.$ac_ext <<EOF |
3146 #line 3147 "configure" | 3148 #line 3149 "configure" |
3147 #include "confdefs.h" | 3149 #include "confdefs.h" |
3148 #include <stdlib.h> | 3150 #include <stdlib.h> |
3149 EOF | 3151 EOF |
3150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3151 egrep "free" >/dev/null 2>&1; then | 3153 egrep "free" >/dev/null 2>&1; then |
3159 fi | 3161 fi |
3160 | 3162 |
3161 if test $ac_cv_header_stdc = yes; then | 3163 if test $ac_cv_header_stdc = yes; then |
3162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 3164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
3163 cat > conftest.$ac_ext <<EOF | 3165 cat > conftest.$ac_ext <<EOF |
3164 #line 3165 "configure" | 3166 #line 3167 "configure" |
3165 #include "confdefs.h" | 3167 #include "confdefs.h" |
3166 #include <ctype.h> | 3168 #include <ctype.h> |
3167 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 3169 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
3168 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 3170 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
3169 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 3171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3170 int main () { int i; for (i = 0; i < 256; i++) | 3172 int main () { int i; for (i = 0; i < 256; i++) |
3171 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 3173 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
3172 exit (0); } | 3174 exit (0); } |
3173 | 3175 |
3174 EOF | 3176 EOF |
3175 if { (eval echo configure:3176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 3177 if { (eval echo configure:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
3176 then | 3178 then |
3177 : | 3179 : |
3178 else | 3180 else |
3179 conftest_rc="$?" | 3181 conftest_rc="$?" |
3180 echo "configure: failed program was:" >&5 | 3182 echo "configure: failed program was:" >&5 |
3196 } | 3198 } |
3197 | 3199 |
3198 fi | 3200 fi |
3199 | 3201 |
3200 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 3202 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
3201 echo "configure:3202: checking whether time.h and sys/time.h may both be included" >&5 | 3203 echo "configure:3204: checking whether time.h and sys/time.h may both be included" >&5 |
3202 | 3204 |
3203 cat > conftest.$ac_ext <<EOF | 3205 cat > conftest.$ac_ext <<EOF |
3204 #line 3205 "configure" | 3206 #line 3207 "configure" |
3205 #include "confdefs.h" | 3207 #include "confdefs.h" |
3206 #include <sys/types.h> | 3208 #include <sys/types.h> |
3207 #include <sys/time.h> | 3209 #include <sys/time.h> |
3208 #include <time.h> | 3210 #include <time.h> |
3209 int main() { | 3211 int main() { |
3210 struct tm *tp; | 3212 struct tm *tp; |
3211 ; return 0; } | 3213 ; return 0; } |
3212 EOF | 3214 EOF |
3213 if { (eval echo configure:3214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3215 if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3214 rm -rf conftest* | 3216 rm -rf conftest* |
3215 ac_cv_header_time=yes | 3217 ac_cv_header_time=yes |
3216 else | 3218 else |
3217 echo "configure: failed program was:" >&5 | 3219 echo "configure: failed program was:" >&5 |
3218 cat conftest.$ac_ext >&5 | 3220 cat conftest.$ac_ext >&5 |
3232 } | 3234 } |
3233 | 3235 |
3234 fi | 3236 fi |
3235 | 3237 |
3236 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | 3238 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 |
3237 echo "configure:3238: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | 3239 echo "configure:3240: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
3238 | 3240 |
3239 cat > conftest.$ac_ext <<EOF | 3241 cat > conftest.$ac_ext <<EOF |
3240 #line 3241 "configure" | 3242 #line 3243 "configure" |
3241 #include "confdefs.h" | 3243 #include "confdefs.h" |
3242 #include <sys/types.h> | 3244 #include <sys/types.h> |
3243 #include <signal.h> | 3245 #include <signal.h> |
3244 /* NetBSD declares sys_siglist in unistd.h. */ | 3246 /* NetBSD declares sys_siglist in unistd.h. */ |
3245 #ifdef HAVE_UNISTD_H | 3247 #ifdef HAVE_UNISTD_H |
3247 #endif | 3249 #endif |
3248 int main() { | 3250 int main() { |
3249 char *msg = *(sys_siglist + 1); | 3251 char *msg = *(sys_siglist + 1); |
3250 ; return 0; } | 3252 ; return 0; } |
3251 EOF | 3253 EOF |
3252 if { (eval echo configure:3253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3254 if { (eval echo configure:3255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3253 rm -rf conftest* | 3255 rm -rf conftest* |
3254 ac_cv_decl_sys_siglist=yes | 3256 ac_cv_decl_sys_siglist=yes |
3255 else | 3257 else |
3256 echo "configure: failed program was:" >&5 | 3258 echo "configure: failed program was:" >&5 |
3257 cat conftest.$ac_ext >&5 | 3259 cat conftest.$ac_ext >&5 |
3272 | 3274 |
3273 fi | 3275 fi |
3274 | 3276 |
3275 | 3277 |
3276 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | 3278 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 |
3277 echo "configure:3278: checking for struct utimbuf" >&5 | 3279 echo "configure:3280: checking for struct utimbuf" >&5 |
3278 cat > conftest.$ac_ext <<EOF | 3280 cat > conftest.$ac_ext <<EOF |
3279 #line 3280 "configure" | 3281 #line 3282 "configure" |
3280 #include "confdefs.h" | 3282 #include "confdefs.h" |
3281 #ifdef TIME_WITH_SYS_TIME | 3283 #ifdef TIME_WITH_SYS_TIME |
3282 #include <sys/time.h> | 3284 #include <sys/time.h> |
3283 #include <time.h> | 3285 #include <time.h> |
3284 #else | 3286 #else |
3293 #endif | 3295 #endif |
3294 int main() { | 3296 int main() { |
3295 static struct utimbuf x; x.actime = x.modtime; | 3297 static struct utimbuf x; x.actime = x.modtime; |
3296 ; return 0; } | 3298 ; return 0; } |
3297 EOF | 3299 EOF |
3298 if { (eval echo configure:3299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3300 if { (eval echo configure:3301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3299 rm -rf conftest* | 3301 rm -rf conftest* |
3300 echo "$ac_t""yes" 1>&6 | 3302 echo "$ac_t""yes" 1>&6 |
3301 { test "$extra_verbose" = "yes" && cat << \EOF | 3303 { test "$extra_verbose" = "yes" && cat << \EOF |
3302 Defining HAVE_STRUCT_UTIMBUF | 3304 Defining HAVE_STRUCT_UTIMBUF |
3303 EOF | 3305 EOF |
3313 echo "$ac_t""no" 1>&6 | 3315 echo "$ac_t""no" 1>&6 |
3314 fi | 3316 fi |
3315 rm -f conftest* | 3317 rm -f conftest* |
3316 | 3318 |
3317 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 3319 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
3318 echo "configure:3319: checking return type of signal handlers" >&5 | 3320 echo "configure:3321: checking return type of signal handlers" >&5 |
3319 | 3321 |
3320 cat > conftest.$ac_ext <<EOF | 3322 cat > conftest.$ac_ext <<EOF |
3321 #line 3322 "configure" | 3323 #line 3324 "configure" |
3322 #include "confdefs.h" | 3324 #include "confdefs.h" |
3323 #include <sys/types.h> | 3325 #include <sys/types.h> |
3324 #include <signal.h> | 3326 #include <signal.h> |
3325 #ifdef signal | 3327 #ifdef signal |
3326 #undef signal | 3328 #undef signal |
3333 | 3335 |
3334 int main() { | 3336 int main() { |
3335 int i; | 3337 int i; |
3336 ; return 0; } | 3338 ; return 0; } |
3337 EOF | 3339 EOF |
3338 if { (eval echo configure:3339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3340 if { (eval echo configure:3341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3339 rm -rf conftest* | 3341 rm -rf conftest* |
3340 ac_cv_type_signal=void | 3342 ac_cv_type_signal=void |
3341 else | 3343 else |
3342 echo "configure: failed program was:" >&5 | 3344 echo "configure: failed program was:" >&5 |
3343 cat conftest.$ac_ext >&5 | 3345 cat conftest.$ac_ext >&5 |
3355 EOF | 3357 EOF |
3356 } | 3358 } |
3357 | 3359 |
3358 | 3360 |
3359 echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 3361 echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
3360 echo "configure:3361: checking for size_t" >&5 | 3362 echo "configure:3363: checking for size_t" >&5 |
3361 | 3363 |
3362 cat > conftest.$ac_ext <<EOF | 3364 cat > conftest.$ac_ext <<EOF |
3363 #line 3364 "configure" | 3365 #line 3366 "configure" |
3364 #include "confdefs.h" | 3366 #include "confdefs.h" |
3365 #include <sys/types.h> | 3367 #include <sys/types.h> |
3366 #if STDC_HEADERS | 3368 #if STDC_HEADERS |
3367 #include <stdlib.h> | 3369 #include <stdlib.h> |
3368 #include <stddef.h> | 3370 #include <stddef.h> |
3389 } | 3391 } |
3390 | 3392 |
3391 fi | 3393 fi |
3392 | 3394 |
3393 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 3395 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
3394 echo "configure:3395: checking for pid_t" >&5 | 3396 echo "configure:3397: checking for pid_t" >&5 |
3395 | 3397 |
3396 cat > conftest.$ac_ext <<EOF | 3398 cat > conftest.$ac_ext <<EOF |
3397 #line 3398 "configure" | 3399 #line 3400 "configure" |
3398 #include "confdefs.h" | 3400 #include "confdefs.h" |
3399 #include <sys/types.h> | 3401 #include <sys/types.h> |
3400 #if STDC_HEADERS | 3402 #if STDC_HEADERS |
3401 #include <stdlib.h> | 3403 #include <stdlib.h> |
3402 #include <stddef.h> | 3404 #include <stddef.h> |
3423 } | 3425 } |
3424 | 3426 |
3425 fi | 3427 fi |
3426 | 3428 |
3427 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | 3429 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
3428 echo "configure:3429: checking for uid_t in sys/types.h" >&5 | 3430 echo "configure:3431: checking for uid_t in sys/types.h" >&5 |
3429 | 3431 |
3430 cat > conftest.$ac_ext <<EOF | 3432 cat > conftest.$ac_ext <<EOF |
3431 #line 3432 "configure" | 3433 #line 3434 "configure" |
3432 #include "confdefs.h" | 3434 #include "confdefs.h" |
3433 #include <sys/types.h> | 3435 #include <sys/types.h> |
3434 EOF | 3436 EOF |
3435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 3437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3436 egrep "uid_t" >/dev/null 2>&1; then | 3438 egrep "uid_t" >/dev/null 2>&1; then |
3462 } | 3464 } |
3463 | 3465 |
3464 fi | 3466 fi |
3465 | 3467 |
3466 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | 3468 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
3467 echo "configure:3468: checking for mode_t" >&5 | 3469 echo "configure:3470: checking for mode_t" >&5 |
3468 | 3470 |
3469 cat > conftest.$ac_ext <<EOF | 3471 cat > conftest.$ac_ext <<EOF |
3470 #line 3471 "configure" | 3472 #line 3473 "configure" |
3471 #include "confdefs.h" | 3473 #include "confdefs.h" |
3472 #include <sys/types.h> | 3474 #include <sys/types.h> |
3473 #if STDC_HEADERS | 3475 #if STDC_HEADERS |
3474 #include <stdlib.h> | 3476 #include <stdlib.h> |
3475 #include <stddef.h> | 3477 #include <stddef.h> |
3496 } | 3498 } |
3497 | 3499 |
3498 fi | 3500 fi |
3499 | 3501 |
3500 echo $ac_n "checking for off_t""... $ac_c" 1>&6 | 3502 echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
3501 echo "configure:3502: checking for off_t" >&5 | 3503 echo "configure:3504: checking for off_t" >&5 |
3502 | 3504 |
3503 cat > conftest.$ac_ext <<EOF | 3505 cat > conftest.$ac_ext <<EOF |
3504 #line 3505 "configure" | 3506 #line 3507 "configure" |
3505 #include "confdefs.h" | 3507 #include "confdefs.h" |
3506 #include <sys/types.h> | 3508 #include <sys/types.h> |
3507 #if STDC_HEADERS | 3509 #if STDC_HEADERS |
3508 #include <stdlib.h> | 3510 #include <stdlib.h> |
3509 #include <stddef.h> | 3511 #include <stddef.h> |
3531 | 3533 |
3532 fi | 3534 fi |
3533 | 3535 |
3534 | 3536 |
3535 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 | 3537 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 |
3536 echo "configure:3537: checking for struct timeval" >&5 | 3538 echo "configure:3539: checking for struct timeval" >&5 |
3537 cat > conftest.$ac_ext <<EOF | 3539 cat > conftest.$ac_ext <<EOF |
3538 #line 3539 "configure" | 3540 #line 3541 "configure" |
3539 #include "confdefs.h" | 3541 #include "confdefs.h" |
3540 #ifdef TIME_WITH_SYS_TIME | 3542 #ifdef TIME_WITH_SYS_TIME |
3541 #include <sys/time.h> | 3543 #include <sys/time.h> |
3542 #include <time.h> | 3544 #include <time.h> |
3543 #else | 3545 #else |
3549 #endif | 3551 #endif |
3550 int main() { | 3552 int main() { |
3551 static struct timeval x; x.tv_sec = x.tv_usec; | 3553 static struct timeval x; x.tv_sec = x.tv_usec; |
3552 ; return 0; } | 3554 ; return 0; } |
3553 EOF | 3555 EOF |
3554 if { (eval echo configure:3555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3556 if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3555 rm -rf conftest* | 3557 rm -rf conftest* |
3556 echo "$ac_t""yes" 1>&6 | 3558 echo "$ac_t""yes" 1>&6 |
3557 HAVE_TIMEVAL=yes | 3559 HAVE_TIMEVAL=yes |
3558 { test "$extra_verbose" = "yes" && cat << \EOF | 3560 { test "$extra_verbose" = "yes" && cat << \EOF |
3559 Defining HAVE_TIMEVAL | 3561 Defining HAVE_TIMEVAL |
3571 HAVE_TIMEVAL=no | 3573 HAVE_TIMEVAL=no |
3572 fi | 3574 fi |
3573 rm -f conftest* | 3575 rm -f conftest* |
3574 | 3576 |
3575 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 3577 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
3576 echo "configure:3577: checking whether struct tm is in sys/time.h or time.h" >&5 | 3578 echo "configure:3579: checking whether struct tm is in sys/time.h or time.h" >&5 |
3577 | 3579 |
3578 cat > conftest.$ac_ext <<EOF | 3580 cat > conftest.$ac_ext <<EOF |
3579 #line 3580 "configure" | 3581 #line 3582 "configure" |
3580 #include "confdefs.h" | 3582 #include "confdefs.h" |
3581 #include <sys/types.h> | 3583 #include <sys/types.h> |
3582 #include <time.h> | 3584 #include <time.h> |
3583 int main() { | 3585 int main() { |
3584 struct tm *tp; tp->tm_sec; | 3586 struct tm *tp; tp->tm_sec; |
3585 ; return 0; } | 3587 ; return 0; } |
3586 EOF | 3588 EOF |
3587 if { (eval echo configure:3588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3589 if { (eval echo configure:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3588 rm -rf conftest* | 3590 rm -rf conftest* |
3589 ac_cv_struct_tm=time.h | 3591 ac_cv_struct_tm=time.h |
3590 else | 3592 else |
3591 echo "configure: failed program was:" >&5 | 3593 echo "configure: failed program was:" >&5 |
3592 cat conftest.$ac_ext >&5 | 3594 cat conftest.$ac_ext >&5 |
3606 } | 3608 } |
3607 | 3609 |
3608 fi | 3610 fi |
3609 | 3611 |
3610 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | 3612 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
3611 echo "configure:3612: checking for tm_zone in struct tm" >&5 | 3613 echo "configure:3614: checking for tm_zone in struct tm" >&5 |
3612 | 3614 |
3613 cat > conftest.$ac_ext <<EOF | 3615 cat > conftest.$ac_ext <<EOF |
3614 #line 3615 "configure" | 3616 #line 3617 "configure" |
3615 #include "confdefs.h" | 3617 #include "confdefs.h" |
3616 #include <sys/types.h> | 3618 #include <sys/types.h> |
3617 #include <$ac_cv_struct_tm> | 3619 #include <$ac_cv_struct_tm> |
3618 int main() { | 3620 int main() { |
3619 struct tm tm; tm.tm_zone; | 3621 struct tm tm; tm.tm_zone; |
3620 ; return 0; } | 3622 ; return 0; } |
3621 EOF | 3623 EOF |
3622 if { (eval echo configure:3623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3624 if { (eval echo configure:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3623 rm -rf conftest* | 3625 rm -rf conftest* |
3624 ac_cv_struct_tm_zone=yes | 3626 ac_cv_struct_tm_zone=yes |
3625 else | 3627 else |
3626 echo "configure: failed program was:" >&5 | 3628 echo "configure: failed program was:" >&5 |
3627 cat conftest.$ac_ext >&5 | 3629 cat conftest.$ac_ext >&5 |
3640 EOF | 3642 EOF |
3641 } | 3643 } |
3642 | 3644 |
3643 else | 3645 else |
3644 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | 3646 echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
3645 echo "configure:3646: checking for tzname" >&5 | 3647 echo "configure:3648: checking for tzname" >&5 |
3646 | 3648 |
3647 cat > conftest.$ac_ext <<EOF | 3649 cat > conftest.$ac_ext <<EOF |
3648 #line 3649 "configure" | 3650 #line 3651 "configure" |
3649 #include "confdefs.h" | 3651 #include "confdefs.h" |
3650 #include <time.h> | 3652 #include <time.h> |
3651 #ifndef tzname /* For SGI. */ | 3653 #ifndef tzname /* For SGI. */ |
3652 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | 3654 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
3653 #endif | 3655 #endif |
3654 int main() { | 3656 int main() { |
3655 atoi(*tzname); | 3657 atoi(*tzname); |
3656 ; return 0; } | 3658 ; return 0; } |
3657 EOF | 3659 EOF |
3658 if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 3660 if { (eval echo configure:3661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
3659 rm -rf conftest* | 3661 rm -rf conftest* |
3660 ac_cv_var_tzname=yes | 3662 ac_cv_var_tzname=yes |
3661 else | 3663 else |
3662 echo "configure: failed program was:" >&5 | 3664 echo "configure: failed program was:" >&5 |
3663 cat conftest.$ac_ext >&5 | 3665 cat conftest.$ac_ext >&5 |
3679 fi | 3681 fi |
3680 fi | 3682 fi |
3681 | 3683 |
3682 | 3684 |
3683 echo $ac_n "checking for working const""... $ac_c" 1>&6 | 3685 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
3684 echo "configure:3685: checking for working const" >&5 | 3686 echo "configure:3687: checking for working const" >&5 |
3685 | 3687 |
3686 cat > conftest.$ac_ext <<EOF | 3688 cat > conftest.$ac_ext <<EOF |
3687 #line 3688 "configure" | 3689 #line 3690 "configure" |
3688 #include "confdefs.h" | 3690 #include "confdefs.h" |
3689 | 3691 |
3690 int main() { | 3692 int main() { |
3691 | 3693 |
3692 /* Ultrix mips cc rejects this. */ | 3694 /* Ultrix mips cc rejects this. */ |
3731 const int foo = 10; | 3733 const int foo = 10; |
3732 } | 3734 } |
3733 | 3735 |
3734 ; return 0; } | 3736 ; return 0; } |
3735 EOF | 3737 EOF |
3736 if { (eval echo configure:3737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3738 if { (eval echo configure:3739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3737 rm -rf conftest* | 3739 rm -rf conftest* |
3738 ac_cv_c_const=yes | 3740 ac_cv_c_const=yes |
3739 else | 3741 else |
3740 echo "configure: failed program was:" >&5 | 3742 echo "configure: failed program was:" >&5 |
3741 cat conftest.$ac_ext >&5 | 3743 cat conftest.$ac_ext >&5 |
3756 | 3758 |
3757 fi | 3759 fi |
3758 | 3760 |
3759 | 3761 |
3760 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 3762 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
3761 echo "configure:3762: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 3763 echo "configure:3764: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
3762 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 3764 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
3763 | 3765 |
3764 cat > conftestmake <<\EOF | 3766 cat > conftestmake <<\EOF |
3765 all: | 3767 all: |
3766 @echo 'ac_maketemp="${MAKE}"' | 3768 @echo 'ac_maketemp="${MAKE}"' |
3781 SET_MAKE="MAKE=${MAKE-make}" | 3783 SET_MAKE="MAKE=${MAKE-make}" |
3782 fi | 3784 fi |
3783 | 3785 |
3784 | 3786 |
3785 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | 3787 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
3786 echo "configure:3787: checking whether byte ordering is bigendian" >&5 | 3788 echo "configure:3789: checking whether byte ordering is bigendian" >&5 |
3787 | 3789 |
3788 ac_cv_c_bigendian=unknown | 3790 ac_cv_c_bigendian=unknown |
3789 # See if sys/param.h defines the BYTE_ORDER macro. | 3791 # See if sys/param.h defines the BYTE_ORDER macro. |
3790 cat > conftest.$ac_ext <<EOF | 3792 cat > conftest.$ac_ext <<EOF |
3791 #line 3792 "configure" | 3793 #line 3794 "configure" |
3792 #include "confdefs.h" | 3794 #include "confdefs.h" |
3793 #include <sys/types.h> | 3795 #include <sys/types.h> |
3794 #include <sys/param.h> | 3796 #include <sys/param.h> |
3795 int main() { | 3797 int main() { |
3796 | 3798 |
3797 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 3799 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
3798 bogus endian macros | 3800 bogus endian macros |
3799 #endif | 3801 #endif |
3800 ; return 0; } | 3802 ; return 0; } |
3801 EOF | 3803 EOF |
3802 if { (eval echo configure:3803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3804 if { (eval echo configure:3805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3803 rm -rf conftest* | 3805 rm -rf conftest* |
3804 # It does; now see whether it defined to BIG_ENDIAN or not. | 3806 # It does; now see whether it defined to BIG_ENDIAN or not. |
3805 cat > conftest.$ac_ext <<EOF | 3807 cat > conftest.$ac_ext <<EOF |
3806 #line 3807 "configure" | 3808 #line 3809 "configure" |
3807 #include "confdefs.h" | 3809 #include "confdefs.h" |
3808 #include <sys/types.h> | 3810 #include <sys/types.h> |
3809 #include <sys/param.h> | 3811 #include <sys/param.h> |
3810 int main() { | 3812 int main() { |
3811 | 3813 |
3812 #if BYTE_ORDER != BIG_ENDIAN | 3814 #if BYTE_ORDER != BIG_ENDIAN |
3813 not big endian | 3815 not big endian |
3814 #endif | 3816 #endif |
3815 ; return 0; } | 3817 ; return 0; } |
3816 EOF | 3818 EOF |
3817 if { (eval echo configure:3818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3819 if { (eval echo configure:3820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3818 rm -rf conftest* | 3820 rm -rf conftest* |
3819 ac_cv_c_bigendian=yes | 3821 ac_cv_c_bigendian=yes |
3820 else | 3822 else |
3821 echo "configure: failed program was:" >&5 | 3823 echo "configure: failed program was:" >&5 |
3822 cat conftest.$ac_ext >&5 | 3824 cat conftest.$ac_ext >&5 |
3829 cat conftest.$ac_ext >&5 | 3831 cat conftest.$ac_ext >&5 |
3830 fi | 3832 fi |
3831 rm -f conftest* | 3833 rm -f conftest* |
3832 if test $ac_cv_c_bigendian = unknown; then | 3834 if test $ac_cv_c_bigendian = unknown; then |
3833 cat > conftest.$ac_ext <<EOF | 3835 cat > conftest.$ac_ext <<EOF |
3834 #line 3835 "configure" | 3836 #line 3837 "configure" |
3835 #include "confdefs.h" | 3837 #include "confdefs.h" |
3836 main () { | 3838 main () { |
3837 /* Are we little or big endian? From Harbison&Steele. */ | 3839 /* Are we little or big endian? From Harbison&Steele. */ |
3838 union | 3840 union |
3839 { | 3841 { |
3842 } u; | 3844 } u; |
3843 u.l = 1; | 3845 u.l = 1; |
3844 exit (u.c[sizeof (long) - 1] == 1); | 3846 exit (u.c[sizeof (long) - 1] == 1); |
3845 } | 3847 } |
3846 EOF | 3848 EOF |
3847 if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 3849 if { (eval echo configure:3850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
3848 then | 3850 then |
3849 ac_cv_c_bigendian=no | 3851 ac_cv_c_bigendian=no |
3850 else | 3852 else |
3851 conftest_rc="$?" | 3853 conftest_rc="$?" |
3852 echo "configure: failed program was:" >&5 | 3854 echo "configure: failed program was:" >&5 |
3869 | 3871 |
3870 fi | 3872 fi |
3871 | 3873 |
3872 | 3874 |
3873 echo $ac_n "checking size of short""... $ac_c" 1>&6 | 3875 echo $ac_n "checking size of short""... $ac_c" 1>&6 |
3874 echo "configure:3875: checking size of short" >&5 | 3876 echo "configure:3877: checking size of short" >&5 |
3875 | 3877 |
3876 cat > conftest.$ac_ext <<EOF | 3878 cat > conftest.$ac_ext <<EOF |
3877 #line 3878 "configure" | 3879 #line 3880 "configure" |
3878 #include "confdefs.h" | 3880 #include "confdefs.h" |
3879 #include <stdio.h> | 3881 #include <stdio.h> |
3880 main() | 3882 main() |
3881 { | 3883 { |
3882 FILE *f=fopen("conftestval", "w"); | 3884 FILE *f=fopen("conftestval", "w"); |
3883 if (!f) exit(1); | 3885 if (!f) exit(1); |
3884 fprintf(f, "%d\n", sizeof(short)); | 3886 fprintf(f, "%d\n", sizeof(short)); |
3885 exit(0); | 3887 exit(0); |
3886 } | 3888 } |
3887 EOF | 3889 EOF |
3888 if { (eval echo configure:3889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 3890 if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
3889 then | 3891 then |
3890 ac_cv_sizeof_short=`cat conftestval` | 3892 ac_cv_sizeof_short=`cat conftestval` |
3891 else | 3893 else |
3892 conftest_rc="$?" | 3894 conftest_rc="$?" |
3893 echo "configure: failed program was:" >&5 | 3895 echo "configure: failed program was:" >&5 |
3911 echo "*** PANIC *** Configure tests are not working - compiler is broken." | 3913 echo "*** PANIC *** Configure tests are not working - compiler is broken." |
3912 echo "*** PANIC *** Please examine config.log for compilation errors." | 3914 echo "*** PANIC *** Please examine config.log for compilation errors." |
3913 exit 1 | 3915 exit 1 |
3914 fi | 3916 fi |
3915 echo $ac_n "checking size of int""... $ac_c" 1>&6 | 3917 echo $ac_n "checking size of int""... $ac_c" 1>&6 |
3916 echo "configure:3917: checking size of int" >&5 | 3918 echo "configure:3919: checking size of int" >&5 |
3917 | 3919 |
3918 cat > conftest.$ac_ext <<EOF | 3920 cat > conftest.$ac_ext <<EOF |
3919 #line 3920 "configure" | 3921 #line 3922 "configure" |
3920 #include "confdefs.h" | 3922 #include "confdefs.h" |
3921 #include <stdio.h> | 3923 #include <stdio.h> |
3922 main() | 3924 main() |
3923 { | 3925 { |
3924 FILE *f=fopen("conftestval", "w"); | 3926 FILE *f=fopen("conftestval", "w"); |
3925 if (!f) exit(1); | 3927 if (!f) exit(1); |
3926 fprintf(f, "%d\n", sizeof(int)); | 3928 fprintf(f, "%d\n", sizeof(int)); |
3927 exit(0); | 3929 exit(0); |
3928 } | 3930 } |
3929 EOF | 3931 EOF |
3930 if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 3932 if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
3931 then | 3933 then |
3932 ac_cv_sizeof_int=`cat conftestval` | 3934 ac_cv_sizeof_int=`cat conftestval` |
3933 else | 3935 else |
3934 conftest_rc="$?" | 3936 conftest_rc="$?" |
3935 echo "configure: failed program was:" >&5 | 3937 echo "configure: failed program was:" >&5 |
3947 EOF | 3949 EOF |
3948 } | 3950 } |
3949 | 3951 |
3950 | 3952 |
3951 echo $ac_n "checking size of long""... $ac_c" 1>&6 | 3953 echo $ac_n "checking size of long""... $ac_c" 1>&6 |
3952 echo "configure:3953: checking size of long" >&5 | 3954 echo "configure:3955: checking size of long" >&5 |
3953 | 3955 |
3954 cat > conftest.$ac_ext <<EOF | 3956 cat > conftest.$ac_ext <<EOF |
3955 #line 3956 "configure" | 3957 #line 3958 "configure" |
3956 #include "confdefs.h" | 3958 #include "confdefs.h" |
3957 #include <stdio.h> | 3959 #include <stdio.h> |
3958 main() | 3960 main() |
3959 { | 3961 { |
3960 FILE *f=fopen("conftestval", "w"); | 3962 FILE *f=fopen("conftestval", "w"); |
3961 if (!f) exit(1); | 3963 if (!f) exit(1); |
3962 fprintf(f, "%d\n", sizeof(long)); | 3964 fprintf(f, "%d\n", sizeof(long)); |
3963 exit(0); | 3965 exit(0); |
3964 } | 3966 } |
3965 EOF | 3967 EOF |
3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
3967 then | 3969 then |
3968 ac_cv_sizeof_long=`cat conftestval` | 3970 ac_cv_sizeof_long=`cat conftestval` |
3969 else | 3971 else |
3970 conftest_rc="$?" | 3972 conftest_rc="$?" |
3971 echo "configure: failed program was:" >&5 | 3973 echo "configure: failed program was:" >&5 |
3983 EOF | 3985 EOF |
3984 } | 3986 } |
3985 | 3987 |
3986 | 3988 |
3987 echo $ac_n "checking size of long long""... $ac_c" 1>&6 | 3989 echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
3988 echo "configure:3989: checking size of long long" >&5 | 3990 echo "configure:3991: checking size of long long" >&5 |
3989 | 3991 |
3990 cat > conftest.$ac_ext <<EOF | 3992 cat > conftest.$ac_ext <<EOF |
3991 #line 3992 "configure" | 3993 #line 3994 "configure" |
3992 #include "confdefs.h" | 3994 #include "confdefs.h" |
3993 #include <stdio.h> | 3995 #include <stdio.h> |
3994 main() | 3996 main() |
3995 { | 3997 { |
3996 FILE *f=fopen("conftestval", "w"); | 3998 FILE *f=fopen("conftestval", "w"); |
3997 if (!f) exit(1); | 3999 if (!f) exit(1); |
3998 fprintf(f, "%d\n", sizeof(long long)); | 4000 fprintf(f, "%d\n", sizeof(long long)); |
3999 exit(0); | 4001 exit(0); |
4000 } | 4002 } |
4001 EOF | 4003 EOF |
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 4004 if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
4003 then | 4005 then |
4004 ac_cv_sizeof_long_long=`cat conftestval` | 4006 ac_cv_sizeof_long_long=`cat conftestval` |
4005 else | 4007 else |
4006 conftest_rc="$?" | 4008 conftest_rc="$?" |
4007 echo "configure: failed program was:" >&5 | 4009 echo "configure: failed program was:" >&5 |
4019 EOF | 4021 EOF |
4020 } | 4022 } |
4021 | 4023 |
4022 | 4024 |
4023 echo $ac_n "checking size of void *""... $ac_c" 1>&6 | 4025 echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
4024 echo "configure:4025: checking size of void *" >&5 | 4026 echo "configure:4027: checking size of void *" >&5 |
4025 | 4027 |
4026 cat > conftest.$ac_ext <<EOF | 4028 cat > conftest.$ac_ext <<EOF |
4027 #line 4028 "configure" | 4029 #line 4030 "configure" |
4028 #include "confdefs.h" | 4030 #include "confdefs.h" |
4029 #include <stdio.h> | 4031 #include <stdio.h> |
4030 main() | 4032 main() |
4031 { | 4033 { |
4032 FILE *f=fopen("conftestval", "w"); | 4034 FILE *f=fopen("conftestval", "w"); |
4033 if (!f) exit(1); | 4035 if (!f) exit(1); |
4034 fprintf(f, "%d\n", sizeof(void *)); | 4036 fprintf(f, "%d\n", sizeof(void *)); |
4035 exit(0); | 4037 exit(0); |
4036 } | 4038 } |
4037 EOF | 4039 EOF |
4038 if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 4040 if { (eval echo configure:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
4039 then | 4041 then |
4040 ac_cv_sizeof_void_p=`cat conftestval` | 4042 ac_cv_sizeof_void_p=`cat conftestval` |
4041 else | 4043 else |
4042 conftest_rc="$?" | 4044 conftest_rc="$?" |
4043 echo "configure: failed program was:" >&5 | 4045 echo "configure: failed program was:" >&5 |
4056 } | 4058 } |
4057 | 4059 |
4058 | 4060 |
4059 | 4061 |
4060 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | 4062 echo $ac_n "checking for long file names""... $ac_c" 1>&6 |
4061 echo "configure:4062: checking for long file names" >&5 | 4063 echo "configure:4064: checking for long file names" >&5 |
4062 | 4064 |
4063 ac_cv_sys_long_file_names=yes | 4065 ac_cv_sys_long_file_names=yes |
4064 # Test for long file names in all the places we know might matter: | 4066 # Test for long file names in all the places we know might matter: |
4065 # . the current directory, where building will happen | 4067 # . the current directory, where building will happen |
4066 # $prefix/lib where we will be installing things | 4068 # $prefix/lib where we will be installing things |
4103 fi | 4105 fi |
4104 | 4106 |
4105 | 4107 |
4106 | 4108 |
4107 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 | 4109 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 |
4108 echo "configure:4109: checking for sin in -lm" >&5 | 4110 echo "configure:4111: checking for sin in -lm" >&5 |
4109 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` | 4111 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` |
4110 | 4112 |
4111 xe_check_libs=" -lm " | 4113 xe_check_libs=" -lm " |
4112 cat > conftest.$ac_ext <<EOF | 4114 cat > conftest.$ac_ext <<EOF |
4113 #line 4114 "configure" | 4115 #line 4116 "configure" |
4114 #include "confdefs.h" | 4116 #include "confdefs.h" |
4115 /* Override any gcc2 internal prototype to avoid an error. */ | 4117 /* Override any gcc2 internal prototype to avoid an error. */ |
4116 /* We use char because int might match the return type of a gcc2 | 4118 /* We use char because int might match the return type of a gcc2 |
4117 builtin and then its argument prototype would still apply. */ | 4119 builtin and then its argument prototype would still apply. */ |
4118 char sin(); | 4120 char sin(); |
4119 | 4121 |
4120 int main() { | 4122 int main() { |
4121 sin() | 4123 sin() |
4122 ; return 0; } | 4124 ; return 0; } |
4123 EOF | 4125 EOF |
4124 if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4126 if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4125 rm -rf conftest* | 4127 rm -rf conftest* |
4126 eval "ac_cv_lib_$ac_lib_var=yes" | 4128 eval "ac_cv_lib_$ac_lib_var=yes" |
4127 else | 4129 else |
4128 echo "configure: failed program was:" >&5 | 4130 echo "configure: failed program was:" >&5 |
4129 cat conftest.$ac_ext >&5 | 4131 cat conftest.$ac_ext >&5 |
4161 EOF | 4163 EOF |
4162 } | 4164 } |
4163 | 4165 |
4164 | 4166 |
4165 cat > conftest.$ac_ext <<EOF | 4167 cat > conftest.$ac_ext <<EOF |
4166 #line 4167 "configure" | 4168 #line 4169 "configure" |
4167 #include "confdefs.h" | 4169 #include "confdefs.h" |
4168 #include <math.h> | 4170 #include <math.h> |
4169 int main() { | 4171 int main() { |
4170 return atanh(1.0) + asinh(1.0) + acosh(1.0); | 4172 return atanh(1.0) + asinh(1.0) + acosh(1.0); |
4171 ; return 0; } | 4173 ; return 0; } |
4172 EOF | 4174 EOF |
4173 if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4175 if { (eval echo configure:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4174 rm -rf conftest* | 4176 rm -rf conftest* |
4175 { test "$extra_verbose" = "yes" && cat << \EOF | 4177 { test "$extra_verbose" = "yes" && cat << \EOF |
4176 Defining HAVE_INVERSE_HYPERBOLIC | 4178 Defining HAVE_INVERSE_HYPERBOLIC |
4177 EOF | 4179 EOF |
4178 cat >> confdefs.h <<\EOF | 4180 cat >> confdefs.h <<\EOF |
4185 cat conftest.$ac_ext >&5 | 4187 cat conftest.$ac_ext >&5 |
4186 fi | 4188 fi |
4187 rm -f conftest* | 4189 rm -f conftest* |
4188 | 4190 |
4189 echo "checking type of mail spool file locking" 1>&6 | 4191 echo "checking type of mail spool file locking" 1>&6 |
4190 echo "configure:4191: checking type of mail spool file locking" >&5 | 4192 echo "configure:4193: checking type of mail spool file locking" >&5 |
4191 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock | 4193 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock |
4192 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf | 4194 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf |
4193 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF | 4195 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF |
4194 Defining REAL_MAIL_USE_LOCKF | 4196 Defining REAL_MAIL_USE_LOCKF |
4195 EOF | 4197 EOF |
4209 else mail_locking="dot-locking" | 4211 else mail_locking="dot-locking" |
4210 fi | 4212 fi |
4211 | 4213 |
4212 | 4214 |
4213 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 | 4215 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 |
4214 echo "configure:4215: checking for kstat_open in -lkstat" >&5 | 4216 echo "configure:4217: checking for kstat_open in -lkstat" >&5 |
4215 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` | 4217 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` |
4216 | 4218 |
4217 xe_check_libs=" -lkstat " | 4219 xe_check_libs=" -lkstat " |
4218 cat > conftest.$ac_ext <<EOF | 4220 cat > conftest.$ac_ext <<EOF |
4219 #line 4220 "configure" | 4221 #line 4222 "configure" |
4220 #include "confdefs.h" | 4222 #include "confdefs.h" |
4221 /* Override any gcc2 internal prototype to avoid an error. */ | 4223 /* Override any gcc2 internal prototype to avoid an error. */ |
4222 /* We use char because int might match the return type of a gcc2 | 4224 /* We use char because int might match the return type of a gcc2 |
4223 builtin and then its argument prototype would still apply. */ | 4225 builtin and then its argument prototype would still apply. */ |
4224 char kstat_open(); | 4226 char kstat_open(); |
4225 | 4227 |
4226 int main() { | 4228 int main() { |
4227 kstat_open() | 4229 kstat_open() |
4228 ; return 0; } | 4230 ; return 0; } |
4229 EOF | 4231 EOF |
4230 if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4232 if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4231 rm -rf conftest* | 4233 rm -rf conftest* |
4232 eval "ac_cv_lib_$ac_lib_var=yes" | 4234 eval "ac_cv_lib_$ac_lib_var=yes" |
4233 else | 4235 else |
4234 echo "configure: failed program was:" >&5 | 4236 echo "configure: failed program was:" >&5 |
4235 cat conftest.$ac_ext >&5 | 4237 cat conftest.$ac_ext >&5 |
4259 | 4261 |
4260 | 4262 |
4261 | 4263 |
4262 | 4264 |
4263 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 | 4265 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 |
4264 echo "configure:4265: checking for kvm_read in -lkvm" >&5 | 4266 echo "configure:4267: checking for kvm_read in -lkvm" >&5 |
4265 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` | 4267 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` |
4266 | 4268 |
4267 xe_check_libs=" -lkvm " | 4269 xe_check_libs=" -lkvm " |
4268 cat > conftest.$ac_ext <<EOF | 4270 cat > conftest.$ac_ext <<EOF |
4269 #line 4270 "configure" | 4271 #line 4272 "configure" |
4270 #include "confdefs.h" | 4272 #include "confdefs.h" |
4271 /* Override any gcc2 internal prototype to avoid an error. */ | 4273 /* Override any gcc2 internal prototype to avoid an error. */ |
4272 /* We use char because int might match the return type of a gcc2 | 4274 /* We use char because int might match the return type of a gcc2 |
4273 builtin and then its argument prototype would still apply. */ | 4275 builtin and then its argument prototype would still apply. */ |
4274 char kvm_read(); | 4276 char kvm_read(); |
4275 | 4277 |
4276 int main() { | 4278 int main() { |
4277 kvm_read() | 4279 kvm_read() |
4278 ; return 0; } | 4280 ; return 0; } |
4279 EOF | 4281 EOF |
4280 if { (eval echo configure:4281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4282 if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4281 rm -rf conftest* | 4283 rm -rf conftest* |
4282 eval "ac_cv_lib_$ac_lib_var=yes" | 4284 eval "ac_cv_lib_$ac_lib_var=yes" |
4283 else | 4285 else |
4284 echo "configure: failed program was:" >&5 | 4286 echo "configure: failed program was:" >&5 |
4285 cat conftest.$ac_ext >&5 | 4287 cat conftest.$ac_ext >&5 |
4310 | 4312 |
4311 | 4313 |
4312 case "$opsys" in decosf*) | 4314 case "$opsys" in decosf*) |
4313 | 4315 |
4314 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | 4316 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 |
4315 echo "configure:4316: checking for cma_open in -lpthreads" >&5 | 4317 echo "configure:4318: checking for cma_open in -lpthreads" >&5 |
4316 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` | 4318 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
4317 | 4319 |
4318 xe_check_libs=" -lpthreads " | 4320 xe_check_libs=" -lpthreads " |
4319 cat > conftest.$ac_ext <<EOF | 4321 cat > conftest.$ac_ext <<EOF |
4320 #line 4321 "configure" | 4322 #line 4323 "configure" |
4321 #include "confdefs.h" | 4323 #include "confdefs.h" |
4322 /* Override any gcc2 internal prototype to avoid an error. */ | 4324 /* Override any gcc2 internal prototype to avoid an error. */ |
4323 /* We use char because int might match the return type of a gcc2 | 4325 /* We use char because int might match the return type of a gcc2 |
4324 builtin and then its argument prototype would still apply. */ | 4326 builtin and then its argument prototype would still apply. */ |
4325 char cma_open(); | 4327 char cma_open(); |
4326 | 4328 |
4327 int main() { | 4329 int main() { |
4328 cma_open() | 4330 cma_open() |
4329 ; return 0; } | 4331 ; return 0; } |
4330 EOF | 4332 EOF |
4331 if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4333 if { (eval echo configure:4334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4332 rm -rf conftest* | 4334 rm -rf conftest* |
4333 eval "ac_cv_lib_$ac_lib_var=yes" | 4335 eval "ac_cv_lib_$ac_lib_var=yes" |
4334 else | 4336 else |
4335 echo "configure: failed program was:" >&5 | 4337 echo "configure: failed program was:" >&5 |
4336 cat conftest.$ac_ext >&5 | 4338 cat conftest.$ac_ext >&5 |
4362 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ | 4364 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ |
4363 c_switch_site="$c_switch_site -threads" ;; | 4365 c_switch_site="$c_switch_site -threads" ;; |
4364 esac | 4366 esac |
4365 | 4367 |
4366 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 | 4368 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 |
4367 echo "configure:4368: checking whether the -xildoff compiler flag is required" >&5 | 4369 echo "configure:4370: checking whether the -xildoff compiler flag is required" >&5 |
4368 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then | 4370 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then |
4369 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; | 4371 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; |
4370 then echo "$ac_t""no" 1>&6; | 4372 then echo "$ac_t""no" 1>&6; |
4371 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi | 4373 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi |
4372 fi | 4374 fi |
4373 else echo "$ac_t""no" 1>&6 | 4375 else echo "$ac_t""no" 1>&6 |
4374 fi | 4376 fi |
4375 | 4377 |
4376 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then | 4378 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then |
4377 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 | 4379 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 |
4378 echo "configure:4379: checking for \"-z ignore\" linker flag" >&5 | 4380 echo "configure:4381: checking for \"-z ignore\" linker flag" >&5 |
4379 case "`ld -h 2>&1`" in | 4381 case "`ld -h 2>&1`" in |
4380 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 | 4382 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 |
4381 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; | 4383 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; |
4382 *) echo "$ac_t""no" 1>&6 ;; | 4384 *) echo "$ac_t""no" 1>&6 ;; |
4383 esac | 4385 esac |
4384 fi | 4386 fi |
4385 | 4387 |
4386 | 4388 |
4387 echo "checking "for specified window system"" 1>&6 | 4389 echo "checking "for specified window system"" 1>&6 |
4388 echo "configure:4389: checking "for specified window system"" >&5 | 4390 echo "configure:4391: checking "for specified window system"" >&5 |
4389 | 4391 |
4390 if test "$with_x11" != "no"; then | 4392 if test "$with_x11" != "no"; then |
4391 test "$x_includes $x_libraries" != "NONE NONE" && \ | 4393 test "$x_includes $x_libraries" != "NONE NONE" && \ |
4392 window_system=x11 with_x11=yes | 4394 window_system=x11 with_x11=yes |
4393 | 4395 |
4416 # If we find X, set shell vars x_includes and x_libraries to the | 4418 # If we find X, set shell vars x_includes and x_libraries to the |
4417 # paths, otherwise set no_x=yes. | 4419 # paths, otherwise set no_x=yes. |
4418 # Uses ac_ vars as temps to allow command line to override cache and checks. | 4420 # Uses ac_ vars as temps to allow command line to override cache and checks. |
4419 # --without-x overrides everything else, but does not touch the cache. | 4421 # --without-x overrides everything else, but does not touch the cache. |
4420 echo $ac_n "checking for X""... $ac_c" 1>&6 | 4422 echo $ac_n "checking for X""... $ac_c" 1>&6 |
4421 echo "configure:4422: checking for X" >&5 | 4423 echo "configure:4424: checking for X" >&5 |
4422 | 4424 |
4423 # Check whether --with-x or --without-x was given. | 4425 # Check whether --with-x or --without-x was given. |
4424 if test "${with_x+set}" = set; then | 4426 if test "${with_x+set}" = set; then |
4425 withval="$with_x" | 4427 withval="$with_x" |
4426 : | 4428 : |
4476 # Guess where to find include files, by looking for this one X11 .h file. | 4478 # Guess where to find include files, by looking for this one X11 .h file. |
4477 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | 4479 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
4478 | 4480 |
4479 # First, try using that file with no special directory specified. | 4481 # First, try using that file with no special directory specified. |
4480 cat > conftest.$ac_ext <<EOF | 4482 cat > conftest.$ac_ext <<EOF |
4481 #line 4482 "configure" | 4483 #line 4484 "configure" |
4482 #include "confdefs.h" | 4484 #include "confdefs.h" |
4483 #include <$x_direct_test_include> | 4485 #include <$x_direct_test_include> |
4484 EOF | 4486 EOF |
4485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4486 { (eval echo configure:4487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4488 { (eval echo configure:4489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4487 ac_err=`grep -v '^ *+' conftest.out` | 4489 ac_err=`grep -v '^ *+' conftest.out` |
4488 if test -z "$ac_err"; then | 4490 if test -z "$ac_err"; then |
4489 rm -rf conftest* | 4491 rm -rf conftest* |
4490 # We can compile using X headers with no special include directory. | 4492 # We can compile using X headers with no special include directory. |
4491 ac_x_includes= | 4493 ac_x_includes= |
4550 # See if we find them without any special options. | 4552 # See if we find them without any special options. |
4551 # Don't add to $LIBS permanently. | 4553 # Don't add to $LIBS permanently. |
4552 ac_save_LIBS="$LIBS" | 4554 ac_save_LIBS="$LIBS" |
4553 LIBS="-l$x_direct_test_library $LIBS" | 4555 LIBS="-l$x_direct_test_library $LIBS" |
4554 cat > conftest.$ac_ext <<EOF | 4556 cat > conftest.$ac_ext <<EOF |
4555 #line 4556 "configure" | 4557 #line 4558 "configure" |
4556 #include "confdefs.h" | 4558 #include "confdefs.h" |
4557 | 4559 |
4558 int main() { | 4560 int main() { |
4559 ${x_direct_test_function}() | 4561 ${x_direct_test_function}() |
4560 ; return 0; } | 4562 ; return 0; } |
4561 EOF | 4563 EOF |
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4564 if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4563 rm -rf conftest* | 4565 rm -rf conftest* |
4564 LIBS="$ac_save_LIBS" | 4566 LIBS="$ac_save_LIBS" |
4565 # We can link X programs with no special library path. | 4567 # We can link X programs with no special library path. |
4566 ac_x_libraries= | 4568 ac_x_libraries= |
4567 else | 4569 else |
4666 # For Solaris; some versions of Sun CC require a space after -R and | 4668 # For Solaris; some versions of Sun CC require a space after -R and |
4667 # others require no space. Words are not sufficient . . . . | 4669 # others require no space. Words are not sufficient . . . . |
4668 case "`(uname -sr) 2>/dev/null`" in | 4670 case "`(uname -sr) 2>/dev/null`" in |
4669 "SunOS 5"*) | 4671 "SunOS 5"*) |
4670 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | 4672 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
4671 echo "configure:4672: checking whether -R must be followed by a space" >&5 | 4673 echo "configure:4674: checking whether -R must be followed by a space" >&5 |
4672 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | 4674 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
4673 cat > conftest.$ac_ext <<EOF | 4675 cat > conftest.$ac_ext <<EOF |
4674 #line 4675 "configure" | 4676 #line 4677 "configure" |
4675 #include "confdefs.h" | 4677 #include "confdefs.h" |
4676 | 4678 |
4677 int main() { | 4679 int main() { |
4678 | 4680 |
4679 ; return 0; } | 4681 ; return 0; } |
4680 EOF | 4682 EOF |
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4683 if { (eval echo configure:4684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4682 rm -rf conftest* | 4684 rm -rf conftest* |
4683 ac_R_nospace=yes | 4685 ac_R_nospace=yes |
4684 else | 4686 else |
4685 echo "configure: failed program was:" >&5 | 4687 echo "configure: failed program was:" >&5 |
4686 cat conftest.$ac_ext >&5 | 4688 cat conftest.$ac_ext >&5 |
4692 echo "$ac_t""no" 1>&6 | 4694 echo "$ac_t""no" 1>&6 |
4693 X_LIBS="$X_LIBS -R$x_libraries" | 4695 X_LIBS="$X_LIBS -R$x_libraries" |
4694 else | 4696 else |
4695 LIBS="$ac_xsave_LIBS -R $x_libraries" | 4697 LIBS="$ac_xsave_LIBS -R $x_libraries" |
4696 cat > conftest.$ac_ext <<EOF | 4698 cat > conftest.$ac_ext <<EOF |
4697 #line 4698 "configure" | 4699 #line 4700 "configure" |
4698 #include "confdefs.h" | 4700 #include "confdefs.h" |
4699 | 4701 |
4700 int main() { | 4702 int main() { |
4701 | 4703 |
4702 ; return 0; } | 4704 ; return 0; } |
4703 EOF | 4705 EOF |
4704 if { (eval echo configure:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4706 if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4705 rm -rf conftest* | 4707 rm -rf conftest* |
4706 ac_R_space=yes | 4708 ac_R_space=yes |
4707 else | 4709 else |
4708 echo "configure: failed program was:" >&5 | 4710 echo "configure: failed program was:" >&5 |
4709 cat conftest.$ac_ext >&5 | 4711 cat conftest.$ac_ext >&5 |
4735 if test "$with_dnet" = "no" ; then | 4737 if test "$with_dnet" = "no" ; then |
4736 ac_cv_lib_dnet_dnet_ntoa=no | 4738 ac_cv_lib_dnet_dnet_ntoa=no |
4737 else | 4739 else |
4738 | 4740 |
4739 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | 4741 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
4740 echo "configure:4741: checking for dnet_ntoa in -ldnet" >&5 | 4742 echo "configure:4743: checking for dnet_ntoa in -ldnet" >&5 |
4741 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 4743 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
4742 | 4744 |
4743 xe_check_libs=" -ldnet " | 4745 xe_check_libs=" -ldnet " |
4744 cat > conftest.$ac_ext <<EOF | 4746 cat > conftest.$ac_ext <<EOF |
4745 #line 4746 "configure" | 4747 #line 4748 "configure" |
4746 #include "confdefs.h" | 4748 #include "confdefs.h" |
4747 /* Override any gcc2 internal prototype to avoid an error. */ | 4749 /* Override any gcc2 internal prototype to avoid an error. */ |
4748 /* We use char because int might match the return type of a gcc2 | 4750 /* We use char because int might match the return type of a gcc2 |
4749 builtin and then its argument prototype would still apply. */ | 4751 builtin and then its argument prototype would still apply. */ |
4750 char dnet_ntoa(); | 4752 char dnet_ntoa(); |
4751 | 4753 |
4752 int main() { | 4754 int main() { |
4753 dnet_ntoa() | 4755 dnet_ntoa() |
4754 ; return 0; } | 4756 ; return 0; } |
4755 EOF | 4757 EOF |
4756 if { (eval echo configure:4757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4758 if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4757 rm -rf conftest* | 4759 rm -rf conftest* |
4758 eval "ac_cv_lib_$ac_lib_var=yes" | 4760 eval "ac_cv_lib_$ac_lib_var=yes" |
4759 else | 4761 else |
4760 echo "configure: failed program was:" >&5 | 4762 echo "configure: failed program was:" >&5 |
4761 cat conftest.$ac_ext >&5 | 4763 cat conftest.$ac_ext >&5 |
4775 fi | 4777 fi |
4776 | 4778 |
4777 if test $ac_cv_lib_dnet_dnet_ntoa = no; then | 4779 if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
4778 | 4780 |
4779 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | 4781 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
4780 echo "configure:4781: checking for dnet_ntoa in -ldnet_stub" >&5 | 4782 echo "configure:4783: checking for dnet_ntoa in -ldnet_stub" >&5 |
4781 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 4783 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
4782 | 4784 |
4783 xe_check_libs=" -ldnet_stub " | 4785 xe_check_libs=" -ldnet_stub " |
4784 cat > conftest.$ac_ext <<EOF | 4786 cat > conftest.$ac_ext <<EOF |
4785 #line 4786 "configure" | 4787 #line 4788 "configure" |
4786 #include "confdefs.h" | 4788 #include "confdefs.h" |
4787 /* Override any gcc2 internal prototype to avoid an error. */ | 4789 /* Override any gcc2 internal prototype to avoid an error. */ |
4788 /* We use char because int might match the return type of a gcc2 | 4790 /* We use char because int might match the return type of a gcc2 |
4789 builtin and then its argument prototype would still apply. */ | 4791 builtin and then its argument prototype would still apply. */ |
4790 char dnet_ntoa(); | 4792 char dnet_ntoa(); |
4791 | 4793 |
4792 int main() { | 4794 int main() { |
4793 dnet_ntoa() | 4795 dnet_ntoa() |
4794 ; return 0; } | 4796 ; return 0; } |
4795 EOF | 4797 EOF |
4796 if { (eval echo configure:4797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4798 if { (eval echo configure:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4797 rm -rf conftest* | 4799 rm -rf conftest* |
4798 eval "ac_cv_lib_$ac_lib_var=yes" | 4800 eval "ac_cv_lib_$ac_lib_var=yes" |
4799 else | 4801 else |
4800 echo "configure: failed program was:" >&5 | 4802 echo "configure: failed program was:" >&5 |
4801 cat conftest.$ac_ext >&5 | 4803 cat conftest.$ac_ext >&5 |
4820 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | 4822 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
4821 # needs -lnsl. | 4823 # needs -lnsl. |
4822 # The nsl library prevents programs from opening the X display | 4824 # The nsl library prevents programs from opening the X display |
4823 # on Irix 5.2, according to dickey@clark.net. | 4825 # on Irix 5.2, according to dickey@clark.net. |
4824 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | 4826 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
4825 echo "configure:4826: checking for gethostbyname" >&5 | 4827 echo "configure:4828: checking for gethostbyname" >&5 |
4826 | 4828 |
4827 cat > conftest.$ac_ext <<EOF | 4829 cat > conftest.$ac_ext <<EOF |
4828 #line 4829 "configure" | 4830 #line 4831 "configure" |
4829 #include "confdefs.h" | 4831 #include "confdefs.h" |
4830 /* System header to define __stub macros and hopefully few prototypes, | 4832 /* System header to define __stub macros and hopefully few prototypes, |
4831 which can conflict with char gethostbyname(); below. */ | 4833 which can conflict with char gethostbyname(); below. */ |
4832 #include <assert.h> | 4834 #include <assert.h> |
4833 /* Override any gcc2 internal prototype to avoid an error. */ | 4835 /* Override any gcc2 internal prototype to avoid an error. */ |
4846 gethostbyname(); | 4848 gethostbyname(); |
4847 #endif | 4849 #endif |
4848 | 4850 |
4849 ; return 0; } | 4851 ; return 0; } |
4850 EOF | 4852 EOF |
4851 if { (eval echo configure:4852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4853 if { (eval echo configure:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4852 rm -rf conftest* | 4854 rm -rf conftest* |
4853 eval "ac_cv_func_gethostbyname=yes" | 4855 eval "ac_cv_func_gethostbyname=yes" |
4854 else | 4856 else |
4855 echo "configure: failed program was:" >&5 | 4857 echo "configure: failed program was:" >&5 |
4856 cat conftest.$ac_ext >&5 | 4858 cat conftest.$ac_ext >&5 |
4867 fi | 4869 fi |
4868 | 4870 |
4869 if test $ac_cv_func_gethostbyname = no; then | 4871 if test $ac_cv_func_gethostbyname = no; then |
4870 | 4872 |
4871 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | 4873 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
4872 echo "configure:4873: checking for gethostbyname in -lnsl" >&5 | 4874 echo "configure:4875: checking for gethostbyname in -lnsl" >&5 |
4873 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | 4875 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
4874 | 4876 |
4875 xe_check_libs=" -lnsl " | 4877 xe_check_libs=" -lnsl " |
4876 cat > conftest.$ac_ext <<EOF | 4878 cat > conftest.$ac_ext <<EOF |
4877 #line 4878 "configure" | 4879 #line 4880 "configure" |
4878 #include "confdefs.h" | 4880 #include "confdefs.h" |
4879 /* Override any gcc2 internal prototype to avoid an error. */ | 4881 /* Override any gcc2 internal prototype to avoid an error. */ |
4880 /* We use char because int might match the return type of a gcc2 | 4882 /* We use char because int might match the return type of a gcc2 |
4881 builtin and then its argument prototype would still apply. */ | 4883 builtin and then its argument prototype would still apply. */ |
4882 char gethostbyname(); | 4884 char gethostbyname(); |
4883 | 4885 |
4884 int main() { | 4886 int main() { |
4885 gethostbyname() | 4887 gethostbyname() |
4886 ; return 0; } | 4888 ; return 0; } |
4887 EOF | 4889 EOF |
4888 if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4890 if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4889 rm -rf conftest* | 4891 rm -rf conftest* |
4890 eval "ac_cv_lib_$ac_lib_var=yes" | 4892 eval "ac_cv_lib_$ac_lib_var=yes" |
4891 else | 4893 else |
4892 echo "configure: failed program was:" >&5 | 4894 echo "configure: failed program was:" >&5 |
4893 cat conftest.$ac_ext >&5 | 4895 cat conftest.$ac_ext >&5 |
4913 # on later versions), says simon@lia.di.epfl.ch: it contains | 4915 # on later versions), says simon@lia.di.epfl.ch: it contains |
4914 # gethostby* variants that don't use the nameserver (or something). | 4916 # gethostby* variants that don't use the nameserver (or something). |
4915 # -lsocket must be given before -lnsl if both are needed. | 4917 # -lsocket must be given before -lnsl if both are needed. |
4916 # We assume that if connect needs -lnsl, so does gethostbyname. | 4918 # We assume that if connect needs -lnsl, so does gethostbyname. |
4917 echo $ac_n "checking for connect""... $ac_c" 1>&6 | 4919 echo $ac_n "checking for connect""... $ac_c" 1>&6 |
4918 echo "configure:4919: checking for connect" >&5 | 4920 echo "configure:4921: checking for connect" >&5 |
4919 | 4921 |
4920 cat > conftest.$ac_ext <<EOF | 4922 cat > conftest.$ac_ext <<EOF |
4921 #line 4922 "configure" | 4923 #line 4924 "configure" |
4922 #include "confdefs.h" | 4924 #include "confdefs.h" |
4923 /* System header to define __stub macros and hopefully few prototypes, | 4925 /* System header to define __stub macros and hopefully few prototypes, |
4924 which can conflict with char connect(); below. */ | 4926 which can conflict with char connect(); below. */ |
4925 #include <assert.h> | 4927 #include <assert.h> |
4926 /* Override any gcc2 internal prototype to avoid an error. */ | 4928 /* Override any gcc2 internal prototype to avoid an error. */ |
4939 connect(); | 4941 connect(); |
4940 #endif | 4942 #endif |
4941 | 4943 |
4942 ; return 0; } | 4944 ; return 0; } |
4943 EOF | 4945 EOF |
4944 if { (eval echo configure:4945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4946 if { (eval echo configure:4947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4945 rm -rf conftest* | 4947 rm -rf conftest* |
4946 eval "ac_cv_func_connect=yes" | 4948 eval "ac_cv_func_connect=yes" |
4947 else | 4949 else |
4948 echo "configure: failed program was:" >&5 | 4950 echo "configure: failed program was:" >&5 |
4949 cat conftest.$ac_ext >&5 | 4951 cat conftest.$ac_ext >&5 |
4962 if test $ac_cv_func_connect = no; then | 4964 if test $ac_cv_func_connect = no; then |
4963 | 4965 |
4964 xe_msg_checking="for connect in -lsocket" | 4966 xe_msg_checking="for connect in -lsocket" |
4965 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" | 4967 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" |
4966 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | 4968 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 |
4967 echo "configure:4968: checking "$xe_msg_checking"" >&5 | 4969 echo "configure:4970: checking "$xe_msg_checking"" >&5 |
4968 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | 4970 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
4969 | 4971 |
4970 xe_check_libs=" -lsocket $X_EXTRA_LIBS" | 4972 xe_check_libs=" -lsocket $X_EXTRA_LIBS" |
4971 cat > conftest.$ac_ext <<EOF | 4973 cat > conftest.$ac_ext <<EOF |
4972 #line 4973 "configure" | 4974 #line 4975 "configure" |
4973 #include "confdefs.h" | 4975 #include "confdefs.h" |
4974 /* Override any gcc2 internal prototype to avoid an error. */ | 4976 /* Override any gcc2 internal prototype to avoid an error. */ |
4975 /* We use char because int might match the return type of a gcc2 | 4977 /* We use char because int might match the return type of a gcc2 |
4976 builtin and then its argument prototype would still apply. */ | 4978 builtin and then its argument prototype would still apply. */ |
4977 char connect(); | 4979 char connect(); |
4978 | 4980 |
4979 int main() { | 4981 int main() { |
4980 connect() | 4982 connect() |
4981 ; return 0; } | 4983 ; return 0; } |
4982 EOF | 4984 EOF |
4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4985 if { (eval echo configure:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4984 rm -rf conftest* | 4986 rm -rf conftest* |
4985 eval "ac_cv_lib_$ac_lib_var=yes" | 4987 eval "ac_cv_lib_$ac_lib_var=yes" |
4986 else | 4988 else |
4987 echo "configure: failed program was:" >&5 | 4989 echo "configure: failed program was:" >&5 |
4988 cat conftest.$ac_ext >&5 | 4990 cat conftest.$ac_ext >&5 |
5002 | 5004 |
5003 fi | 5005 fi |
5004 | 5006 |
5005 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | 5007 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
5006 echo $ac_n "checking for remove""... $ac_c" 1>&6 | 5008 echo $ac_n "checking for remove""... $ac_c" 1>&6 |
5007 echo "configure:5008: checking for remove" >&5 | 5009 echo "configure:5010: checking for remove" >&5 |
5008 | 5010 |
5009 cat > conftest.$ac_ext <<EOF | 5011 cat > conftest.$ac_ext <<EOF |
5010 #line 5011 "configure" | 5012 #line 5013 "configure" |
5011 #include "confdefs.h" | 5013 #include "confdefs.h" |
5012 /* System header to define __stub macros and hopefully few prototypes, | 5014 /* System header to define __stub macros and hopefully few prototypes, |
5013 which can conflict with char remove(); below. */ | 5015 which can conflict with char remove(); below. */ |
5014 #include <assert.h> | 5016 #include <assert.h> |
5015 /* Override any gcc2 internal prototype to avoid an error. */ | 5017 /* Override any gcc2 internal prototype to avoid an error. */ |
5028 remove(); | 5030 remove(); |
5029 #endif | 5031 #endif |
5030 | 5032 |
5031 ; return 0; } | 5033 ; return 0; } |
5032 EOF | 5034 EOF |
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5035 if { (eval echo configure:5036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
5034 rm -rf conftest* | 5036 rm -rf conftest* |
5035 eval "ac_cv_func_remove=yes" | 5037 eval "ac_cv_func_remove=yes" |
5036 else | 5038 else |
5037 echo "configure: failed program was:" >&5 | 5039 echo "configure: failed program was:" >&5 |
5038 cat conftest.$ac_ext >&5 | 5040 cat conftest.$ac_ext >&5 |
5049 fi | 5051 fi |
5050 | 5052 |
5051 if test $ac_cv_func_remove = no; then | 5053 if test $ac_cv_func_remove = no; then |
5052 | 5054 |
5053 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | 5055 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
5054 echo "configure:5055: checking for remove in -lposix" >&5 | 5056 echo "configure:5057: checking for remove in -lposix" >&5 |
5055 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | 5057 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
5056 | 5058 |
5057 xe_check_libs=" -lposix " | 5059 xe_check_libs=" -lposix " |
5058 cat > conftest.$ac_ext <<EOF | 5060 cat > conftest.$ac_ext <<EOF |
5059 #line 5060 "configure" | 5061 #line 5062 "configure" |
5060 #include "confdefs.h" | 5062 #include "confdefs.h" |
5061 /* Override any gcc2 internal prototype to avoid an error. */ | 5063 /* Override any gcc2 internal prototype to avoid an error. */ |
5062 /* We use char because int might match the return type of a gcc2 | 5064 /* We use char because int might match the return type of a gcc2 |
5063 builtin and then its argument prototype would still apply. */ | 5065 builtin and then its argument prototype would still apply. */ |
5064 char remove(); | 5066 char remove(); |
5065 | 5067 |
5066 int main() { | 5068 int main() { |
5067 remove() | 5069 remove() |
5068 ; return 0; } | 5070 ; return 0; } |
5069 EOF | 5071 EOF |
5070 if { (eval echo configure:5071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
5071 rm -rf conftest* | 5073 rm -rf conftest* |
5072 eval "ac_cv_lib_$ac_lib_var=yes" | 5074 eval "ac_cv_lib_$ac_lib_var=yes" |
5073 else | 5075 else |
5074 echo "configure: failed program was:" >&5 | 5076 echo "configure: failed program was:" >&5 |
5075 cat conftest.$ac_ext >&5 | 5077 cat conftest.$ac_ext >&5 |
5089 | 5091 |
5090 fi | 5092 fi |
5091 | 5093 |
5092 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | 5094 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
5093 echo $ac_n "checking for shmat""... $ac_c" 1>&6 | 5095 echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
5094 echo "configure:5095: checking for shmat" >&5 | 5096 echo "configure:5097: checking for shmat" >&5 |
5095 | 5097 |
5096 cat > conftest.$ac_ext <<EOF | 5098 cat > conftest.$ac_ext <<EOF |
5097 #line 5098 "configure" | 5099 #line 5100 "configure" |
5098 #include "confdefs.h" | 5100 #include "confdefs.h" |
5099 /* System header to define __stub macros and hopefully few prototypes, | 5101 /* System header to define __stub macros and hopefully few prototypes, |
5100 which can conflict with char shmat(); below. */ | 5102 which can conflict with char shmat(); below. */ |
5101 #include <assert.h> | 5103 #include <assert.h> |
5102 /* Override any gcc2 internal prototype to avoid an error. */ | 5104 /* Override any gcc2 internal prototype to avoid an error. */ |
5115 shmat(); | 5117 shmat(); |
5116 #endif | 5118 #endif |
5117 | 5119 |
5118 ; return 0; } | 5120 ; return 0; } |
5119 EOF | 5121 EOF |
5120 if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5122 if { (eval echo configure:5123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
5121 rm -rf conftest* | 5123 rm -rf conftest* |
5122 eval "ac_cv_func_shmat=yes" | 5124 eval "ac_cv_func_shmat=yes" |
5123 else | 5125 else |
5124 echo "configure: failed program was:" >&5 | 5126 echo "configure: failed program was:" >&5 |
5125 cat conftest.$ac_ext >&5 | 5127 cat conftest.$ac_ext >&5 |
5136 fi | 5138 fi |
5137 | 5139 |
5138 if test $ac_cv_func_shmat = no; then | 5140 if test $ac_cv_func_shmat = no; then |
5139 | 5141 |
5140 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | 5142 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
5141 echo "configure:5142: checking for shmat in -lipc" >&5 | 5143 echo "configure:5144: checking for shmat in -lipc" >&5 |
5142 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | 5144 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
5143 | 5145 |
5144 xe_check_libs=" -lipc " | 5146 xe_check_libs=" -lipc " |
5145 cat > conftest.$ac_ext <<EOF | 5147 cat > conftest.$ac_ext <<EOF |
5146 #line 5147 "configure" | 5148 #line 5149 "configure" |
5147 #include "confdefs.h" | 5149 #include "confdefs.h" |
5148 /* Override any gcc2 internal prototype to avoid an error. */ | 5150 /* Override any gcc2 internal prototype to avoid an error. */ |
5149 /* We use char because int might match the return type of a gcc2 | 5151 /* We use char because int might match the return type of a gcc2 |
5150 builtin and then its argument prototype would still apply. */ | 5152 builtin and then its argument prototype would still apply. */ |
5151 char shmat(); | 5153 char shmat(); |
5152 | 5154 |
5153 int main() { | 5155 int main() { |
5154 shmat() | 5156 shmat() |
5155 ; return 0; } | 5157 ; return 0; } |
5156 EOF | 5158 EOF |
5157 if { (eval echo configure:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5159 if { (eval echo configure:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
5158 rm -rf conftest* | 5160 rm -rf conftest* |
5159 eval "ac_cv_lib_$ac_lib_var=yes" | 5161 eval "ac_cv_lib_$ac_lib_var=yes" |
5160 else | 5162 else |
5161 echo "configure: failed program was:" >&5 | 5163 echo "configure: failed program was:" >&5 |
5162 cat conftest.$ac_ext >&5 | 5164 cat conftest.$ac_ext >&5 |
5186 # These have to be linked with before -lX11, unlike the other | 5188 # These have to be linked with before -lX11, unlike the other |
5187 # libraries we check for below, so use a different variable. | 5189 # libraries we check for below, so use a different variable. |
5188 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | 5190 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
5189 | 5191 |
5190 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | 5192 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
5191 echo "configure:5192: checking for IceConnectionNumber in -lICE" >&5 | 5193 echo "configure:5194: checking for IceConnectionNumber in -lICE" >&5 |
5192 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | 5194 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
5193 | 5195 |
5194 xe_check_libs=" -lICE " | 5196 xe_check_libs=" -lICE " |
5195 cat > conftest.$ac_ext <<EOF | 5197 cat > conftest.$ac_ext <<EOF |
5196 #line 5197 "configure" | 5198 #line 5199 "configure" |
5197 #include "confdefs.h" | 5199 #include "confdefs.h" |
5198 /* Override any gcc2 internal prototype to avoid an error. */ | 5200 /* Override any gcc2 internal prototype to avoid an error. */ |
5199 /* We use char because int might match the return type of a gcc2 | 5201 /* We use char because int might match the return type of a gcc2 |
5200 builtin and then its argument prototype would still apply. */ | 5202 builtin and then its argument prototype would still apply. */ |
5201 char IceConnectionNumber(); | 5203 char IceConnectionNumber(); |
5202 | 5204 |
5203 int main() { | 5205 int main() { |
5204 IceConnectionNumber() | 5206 IceConnectionNumber() |
5205 ; return 0; } | 5207 ; return 0; } |
5206 EOF | 5208 EOF |
5207 if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5209 if { (eval echo configure:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
5208 rm -rf conftest* | 5210 rm -rf conftest* |
5209 eval "ac_cv_lib_$ac_lib_var=yes" | 5211 eval "ac_cv_lib_$ac_lib_var=yes" |
5210 else | 5212 else |
5211 echo "configure: failed program was:" >&5 | 5213 echo "configure: failed program was:" >&5 |
5212 cat conftest.$ac_ext >&5 | 5214 cat conftest.$ac_ext >&5 |
5371 EOF | 5373 EOF |
5372 } | 5374 } |
5373 | 5375 |
5374 | 5376 |
5375 echo "checking for X defines extracted by xmkmf" 1>&6 | 5377 echo "checking for X defines extracted by xmkmf" 1>&6 |
5376 echo "configure:5377: checking for X defines extracted by xmkmf" >&5 | 5378 echo "configure:5379: checking for X defines extracted by xmkmf" >&5 |
5377 rm -fr conftestdir | 5379 rm -fr conftestdir |
5378 if mkdir conftestdir; then | 5380 if mkdir conftestdir; then |
5379 cd conftestdir | 5381 cd conftestdir |
5380 cat > Imakefile <<'EOF' | 5382 cat > Imakefile <<'EOF' |
5381 xetest: | 5383 xetest: |
5403 done | 5405 done |
5404 fi | 5406 fi |
5405 | 5407 |
5406 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` | 5408 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` |
5407 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 | 5409 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 |
5408 echo "configure:5409: checking for X11/Intrinsic.h" >&5 | 5410 echo "configure:5411: checking for X11/Intrinsic.h" >&5 |
5409 | 5411 |
5410 cat > conftest.$ac_ext <<EOF | 5412 cat > conftest.$ac_ext <<EOF |
5411 #line 5412 "configure" | 5413 #line 5414 "configure" |
5412 #include "confdefs.h" | 5414 #include "confdefs.h" |
5413 #include <X11/Intrinsic.h> | 5415 #include <X11/Intrinsic.h> |
5414 EOF | 5416 EOF |
5415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5416 { (eval echo configure:5417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5418 { (eval echo configure:5419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5417 ac_err=`grep -v '^ *+' conftest.out` | 5419 ac_err=`grep -v '^ *+' conftest.out` |
5418 if test -z "$ac_err"; then | 5420 if test -z "$ac_err"; then |
5419 rm -rf conftest* | 5421 rm -rf conftest* |
5420 eval "ac_cv_header_$ac_safe=yes" | 5422 eval "ac_cv_header_$ac_safe=yes" |
5421 else | 5423 else |
5435 fi | 5437 fi |
5436 | 5438 |
5437 | 5439 |
5438 | 5440 |
5439 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 | 5441 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 |
5440 echo "configure:5441: checking for XOpenDisplay in -lX11" >&5 | 5442 echo "configure:5443: checking for XOpenDisplay in -lX11" >&5 |
5441 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` | 5443 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` |
5442 | 5444 |
5443 xe_check_libs=" -lX11 " | 5445 xe_check_libs=" -lX11 " |
5444 cat > conftest.$ac_ext <<EOF | 5446 cat > conftest.$ac_ext <<EOF |
5445 #line 5446 "configure" | 5447 #line 5448 "configure" |
5446 #include "confdefs.h" | 5448 #include "confdefs.h" |
5447 /* Override any gcc2 internal prototype to avoid an error. */ | 5449 /* Override any gcc2 internal prototype to avoid an error. */ |
5448 /* We use char because int might match the return type of a gcc2 | 5450 /* We use char because int might match the return type of a gcc2 |
5449 builtin and then its argument prototype would still apply. */ | 5451 builtin and then its argument prototype would still apply. */ |
5450 char XOpenDisplay(); | 5452 char XOpenDisplay(); |
5451 | 5453 |
5452 int main() { | 5454 int main() { |
5453 XOpenDisplay() | 5455 XOpenDisplay() |
5454 ; return 0; } | 5456 ; return 0; } |
5455 EOF | 5457 EOF |
5456 if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5458 if { (eval echo configure:5459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
5457 rm -rf conftest* | 5459 rm -rf conftest* |
5458 eval "ac_cv_lib_$ac_lib_var=yes" | 5460 eval "ac_cv_lib_$ac_lib_var=yes" |
5459 else | 5461 else |
5460 echo "configure: failed program was:" >&5 | 5462 echo "configure: failed program was:" >&5 |
5461 cat conftest.$ac_ext >&5 | 5463 cat conftest.$ac_ext >&5 |
5476 if test "$have_lib_x11" != "yes"; then | 5478 if test "$have_lib_x11" != "yes"; then |
5477 | 5479 |
5478 xe_msg_checking="for XGetFontProperty in -lX11" | 5480 xe_msg_checking="for XGetFontProperty in -lX11" |
5479 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" | 5481 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" |
5480 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | 5482 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 |
5481 echo "configure:5482: checking "$xe_msg_checking"" >&5 | 5483 echo "configure:5484: checking "$xe_msg_checking"" >&5 |
5482 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` | 5484 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` |
5483 | 5485 |
5484 xe_check_libs=" -lX11 -b i486-linuxaout" | 5486 xe_check_libs=" -lX11 -b i486-linuxaout" |
5485 cat > conftest.$ac_ext <<EOF | 5487 cat > conftest.$ac_ext <<EOF |
5486 #line 5487 "configure" | 5488 #line 5489 "configure" |
5487 #include "confdefs.h" | 5489 #include "confdefs.h" |
5488 /* Override any gcc2 internal prototype to avoid an error. */ | 5490 /* Override any gcc2 internal prototype to avoid an error. */ |
5489 /* We use char because int might match the return type of a gcc2 | 5491 /* We use char because int might match the return type of a gcc2 |
5490 builtin and then its argument prototype would still apply. */ | 5492 builtin and then its argument prototype would still apply. */ |
5491 char XGetFontProperty(); | 5493 char XGetFontProperty(); |
5492 | 5494 |
5493 int main() { | 5495 int main() { |
5494 XGetFontProperty() | 5496 XGetFontProperty() |
5495 ; return 0; } | 5497 ; return 0; } |
5496 EOF | 5498 EOF |
5497 if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5499 if { (eval echo configure:5500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
5498 rm -rf conftest* | 5500 rm -rf conftest* |
5499 eval "ac_cv_lib_$ac_lib_var=yes" | 5501 eval "ac_cv_lib_$ac_lib_var=yes" |
5500 else | 5502 else |
5501 echo "configure: failed program was:" >&5 | 5503 echo "configure: failed program was:" >&5 |
5502 cat conftest.$ac_ext >&5 | 5504 cat conftest.$ac_ext >&5 |
5519 libs_x="-lX11" | 5521 libs_x="-lX11" |
5520 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" | 5522 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" |
5521 | 5523 |
5522 | 5524 |
5523 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 | 5525 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 |
5524 echo "configure:5525: checking for XShapeSelectInput in -lXext" >&5 | 5526 echo "configure:5527: checking for XShapeSelectInput in -lXext" >&5 |
5525 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` | 5527 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` |
5526 | 5528 |
5527 xe_check_libs=" -lXext " | 5529 xe_check_libs=" -lXext " |
5528 cat > conftest.$ac_ext <<EOF | 5530 cat > conftest.$ac_ext <<EOF |
5529 #line 5530 "configure" | 5531 #line 5532 "configure" |
5530 #include "confdefs.h" | 5532 #include "confdefs.h" |
5531 /* Override any gcc2 internal prototype to avoid an error. */ | 5533 /* Override any gcc2 internal prototype to avoid an error. */ |
5532 /* We use char because int might match the return type of a gcc2 | 5534 /* We use char because int might match the return type of a gcc2 |
5533 builtin and then its argument prototype would still apply. */ | 5535 builtin and then its argument prototype would still apply. */ |
5534 char XShapeSelectInput(); | 5536 char XShapeSelectInput(); |
5535 | 5537 |
5536 int main() { | 5538 int main() { |
5537 XShapeSelectInput() | 5539 XShapeSelectInput() |
5538 ; return 0; } | 5540 ; return 0; } |
5539 EOF | 5541 EOF |
5540 if { (eval echo configure:5541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5542 if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
5541 rm -rf conftest* | 5543 rm -rf conftest* |
5542 eval "ac_cv_lib_$ac_lib_var=yes" | 5544 eval "ac_cv_lib_$ac_lib_var=yes" |
5543 else | 5545 else |
5544 echo "configure: failed program was:" >&5 | 5546 echo "configure: failed program was:" >&5 |
5545 cat conftest.$ac_ext >&5 | 5547 cat conftest.$ac_ext >&5 |
5558 | 5560 |
5559 | 5561 |
5560 | 5562 |
5561 | 5563 |
5562 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 | 5564 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 |
5563 echo "configure:5564: checking for XtOpenDisplay in -lXt" >&5 | 5565 echo "configure:5566: checking for XtOpenDisplay in -lXt" >&5 |
5564 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` | 5566 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` |
5565 | 5567 |
5566 xe_check_libs=" -lXt " | 5568 xe_check_libs=" -lXt " |
5567 cat > conftest.$ac_ext <<EOF | 5569 cat > conftest.$ac_ext <<EOF |
5568 #line 5569 "configure" | 5570 #line 5571 "configure" |
5569 #include "confdefs.h" | 5571 #include "confdefs.h" |
5570 /* Override any gcc2 internal prototype to avoid an error. */ | 5572 /* Override any gcc2 internal prototype to avoid an error. */ |
5571 /* We use char because int might match the return type of a gcc2 | 5573 /* We use char because int might match the return type of a gcc2 |
5572 builtin and then its argument prototype would still apply. */ | 5574 builtin and then its argument prototype would still apply. */ |
5573 char XtOpenDisplay(); | 5575 char XtOpenDisplay(); |
5574 | 5576 |
5575 int main() { | 5577 int main() { |
5576 XtOpenDisplay() | 5578 XtOpenDisplay() |
5577 ; return 0; } | 5579 ; return 0; } |
5578 EOF | 5580 EOF |
5579 if { (eval echo configure:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
5580 rm -rf conftest* | 5582 rm -rf conftest* |
5581 eval "ac_cv_lib_$ac_lib_var=yes" | 5583 eval "ac_cv_lib_$ac_lib_var=yes" |
5582 else | 5584 else |
5583 echo "configure: failed program was:" >&5 | 5585 echo "configure: failed program was:" >&5 |
5584 cat conftest.$ac_ext >&5 | 5586 cat conftest.$ac_ext >&5 |
5597 fi | 5599 fi |
5598 | 5600 |
5599 | 5601 |
5600 | 5602 |
5601 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 | 5603 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 |
5602 echo "configure:5603: checking the version of X11 being used" >&5 | 5604 echo "configure:5605: checking the version of X11 being used" >&5 |
5603 cat > conftest.$ac_ext <<EOF | 5605 cat > conftest.$ac_ext <<EOF |
5604 #line 5605 "configure" | 5606 #line 5607 "configure" |
5605 #include "confdefs.h" | 5607 #include "confdefs.h" |
5606 #include <X11/Intrinsic.h> | 5608 #include <X11/Intrinsic.h> |
5607 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } | 5609 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } |
5608 EOF | 5610 EOF |
5609 if { (eval echo configure:5610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 5611 if { (eval echo configure:5612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
5610 then | 5612 then |
5611 ./conftest foobar; x11_release=$? | 5613 ./conftest foobar; x11_release=$? |
5612 else | 5614 else |
5613 conftest_rc="$?" | 5615 conftest_rc="$?" |
5614 echo "configure: failed program was:" >&5 | 5616 echo "configure: failed program was:" >&5 |
5629 | 5631 |
5630 for ac_hdr in X11/Xlocale.h | 5632 for ac_hdr in X11/Xlocale.h |
5631 do | 5633 do |
5632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5634 echo "configure:5635: checking for $ac_hdr" >&5 | 5636 echo "configure:5637: checking for $ac_hdr" >&5 |
5635 | 5637 |
5636 cat > conftest.$ac_ext <<EOF | 5638 cat > conftest.$ac_ext <<EOF |
5637 #line 5638 "configure" | 5639 #line 5640 "configure" |
5638 #include "confdefs.h" | 5640 #include "confdefs.h" |
5639 #include <$ac_hdr> | 5641 #include <$ac_hdr> |
5640 EOF | 5642 EOF |
5641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5642 { (eval echo configure:5643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5644 { (eval echo configure:5645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5643 ac_err=`grep -v '^ *+' conftest.out` | 5645 ac_err=`grep -v '^ *+' conftest.out` |
5644 if test -z "$ac_err"; then | 5646 if test -z "$ac_err"; then |
5645 rm -rf conftest* | 5647 rm -rf conftest* |
5646 eval "ac_cv_header_$ac_safe=yes" | 5648 eval "ac_cv_header_$ac_safe=yes" |
5647 else | 5649 else |
5668 fi | 5670 fi |
5669 done | 5671 done |
5670 | 5672 |
5671 | 5673 |
5672 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 | 5674 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 |
5673 echo "configure:5674: checking for XFree86" >&5 | 5675 echo "configure:5676: checking for XFree86" >&5 |
5674 if test -d "/usr/X386/include" -o \ | 5676 if test -d "/usr/X386/include" -o \ |
5675 -f "/etc/XF86Config" -o \ | 5677 -f "/etc/XF86Config" -o \ |
5676 -f "/etc/X11/XF86Config" -o \ | 5678 -f "/etc/X11/XF86Config" -o \ |
5677 -f "/usr/X11R6/lib/X11/XF86Config"; then | 5679 -f "/usr/X11R6/lib/X11/XF86Config"; then |
5678 echo "$ac_t""yes" 1>&6 | 5680 echo "$ac_t""yes" 1>&6 |
5688 echo "$ac_t""no" 1>&6 | 5690 echo "$ac_t""no" 1>&6 |
5689 fi | 5691 fi |
5690 | 5692 |
5691 test -z "$with_xmu" && { | 5693 test -z "$with_xmu" && { |
5692 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 | 5694 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 |
5693 echo "configure:5694: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 | 5695 echo "configure:5696: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 |
5694 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` | 5696 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` |
5695 | 5697 |
5696 xe_check_libs=" -lXmu " | 5698 xe_check_libs=" -lXmu " |
5697 cat > conftest.$ac_ext <<EOF | 5699 cat > conftest.$ac_ext <<EOF |
5698 #line 5699 "configure" | 5700 #line 5701 "configure" |
5699 #include "confdefs.h" | 5701 #include "confdefs.h" |
5700 /* Override any gcc2 internal prototype to avoid an error. */ | 5702 /* Override any gcc2 internal prototype to avoid an error. */ |
5701 /* We use char because int might match the return type of a gcc2 | 5703 /* We use char because int might match the return type of a gcc2 |
5702 builtin and then its argument prototype would still apply. */ | 5704 builtin and then its argument prototype would still apply. */ |
5703 char XmuReadBitmapDataFromFile(); | 5705 char XmuReadBitmapDataFromFile(); |
5704 | 5706 |
5705 int main() { | 5707 int main() { |
5706 XmuReadBitmapDataFromFile() | 5708 XmuReadBitmapDataFromFile() |
5707 ; return 0; } | 5709 ; return 0; } |
5708 EOF | 5710 EOF |
5709 if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5711 if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
5710 rm -rf conftest* | 5712 rm -rf conftest* |
5711 eval "ac_cv_lib_$ac_lib_var=yes" | 5713 eval "ac_cv_lib_$ac_lib_var=yes" |
5712 else | 5714 else |
5713 echo "configure: failed program was:" >&5 | 5715 echo "configure: failed program was:" >&5 |
5714 cat conftest.$ac_ext >&5 | 5716 cat conftest.$ac_ext >&5 |
5743 | 5745 |
5744 fi | 5746 fi |
5745 | 5747 |
5746 | 5748 |
5747 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | 5749 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 |
5748 echo "configure:5749: checking for main in -lXbsd" >&5 | 5750 echo "configure:5751: checking for main in -lXbsd" >&5 |
5749 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` | 5751 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
5750 | 5752 |
5751 xe_check_libs=" -lXbsd " | 5753 xe_check_libs=" -lXbsd " |
5752 cat > conftest.$ac_ext <<EOF | 5754 cat > conftest.$ac_ext <<EOF |
5753 #line 5754 "configure" | 5755 #line 5756 "configure" |
5754 #include "confdefs.h" | 5756 #include "confdefs.h" |
5755 | 5757 |
5756 int main() { | 5758 int main() { |
5757 main() | 5759 main() |
5758 ; return 0; } | 5760 ; return 0; } |
5759 EOF | 5761 EOF |
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5762 if { (eval echo configure:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
5761 rm -rf conftest* | 5763 rm -rf conftest* |
5762 eval "ac_cv_lib_$ac_lib_var=yes" | 5764 eval "ac_cv_lib_$ac_lib_var=yes" |
5763 else | 5765 else |
5764 echo "configure: failed program was:" >&5 | 5766 echo "configure: failed program was:" >&5 |
5765 cat conftest.$ac_ext >&5 | 5767 cat conftest.$ac_ext >&5 |
5792 fi | 5794 fi |
5793 | 5795 |
5794 fi | 5796 fi |
5795 if test "$with_msw" != "no"; then | 5797 if test "$with_msw" != "no"; then |
5796 echo "checking for MS-Windows" 1>&6 | 5798 echo "checking for MS-Windows" 1>&6 |
5797 echo "configure:5798: checking for MS-Windows" >&5 | 5799 echo "configure:5800: checking for MS-Windows" >&5 |
5798 | 5800 |
5799 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 | 5801 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 |
5800 echo "configure:5801: checking for main in -lgdi32" >&5 | 5802 echo "configure:5803: checking for main in -lgdi32" >&5 |
5801 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` | 5803 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` |
5802 | 5804 |
5803 xe_check_libs=" -lgdi32 " | 5805 xe_check_libs=" -lgdi32 " |
5804 cat > conftest.$ac_ext <<EOF | 5806 cat > conftest.$ac_ext <<EOF |
5805 #line 5806 "configure" | 5807 #line 5808 "configure" |
5806 #include "confdefs.h" | 5808 #include "confdefs.h" |
5807 | 5809 |
5808 int main() { | 5810 int main() { |
5809 main() | 5811 main() |
5810 ; return 0; } | 5812 ; return 0; } |
5811 EOF | 5813 EOF |
5812 if { (eval echo configure:5813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
5813 rm -rf conftest* | 5815 rm -rf conftest* |
5814 eval "ac_cv_lib_$ac_lib_var=yes" | 5816 eval "ac_cv_lib_$ac_lib_var=yes" |
5815 else | 5817 else |
5816 echo "configure: failed program was:" >&5 | 5818 echo "configure: failed program was:" >&5 |
5817 cat conftest.$ac_ext >&5 | 5819 cat conftest.$ac_ext >&5 |
5872 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then | 5874 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then |
5873 echo " xemacs will be linked with \"dialog-msw.o\"" | 5875 echo " xemacs will be linked with \"dialog-msw.o\"" |
5874 fi | 5876 fi |
5875 fi | 5877 fi |
5876 cat > conftest.$ac_ext <<EOF | 5878 cat > conftest.$ac_ext <<EOF |
5877 #line 5878 "configure" | 5879 #line 5880 "configure" |
5878 #include "confdefs.h" | 5880 #include "confdefs.h" |
5879 #include <fcntl.h> | 5881 #include <fcntl.h> |
5880 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } | 5882 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } |
5881 EOF | 5883 EOF |
5882 if { (eval echo configure:5883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 5884 if { (eval echo configure:5885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
5883 then | 5885 then |
5884 { test "$extra_verbose" = "yes" && cat << \EOF | 5886 { test "$extra_verbose" = "yes" && cat << \EOF |
5885 Defining HAVE_MSG_SELECT | 5887 Defining HAVE_MSG_SELECT |
5886 EOF | 5888 EOF |
5887 cat >> confdefs.h <<\EOF | 5889 cat >> confdefs.h <<\EOF |
5956 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" | 5958 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" |
5957 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" | 5959 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" |
5958 esac | 5960 esac |
5959 | 5961 |
5960 echo "checking for session-management option" 1>&6 | 5962 echo "checking for session-management option" 1>&6 |
5961 echo "configure:5962: checking for session-management option" >&5; | 5963 echo "configure:5964: checking for session-management option" >&5; |
5962 if test "$with_session" != "no"; then | 5964 if test "$with_session" != "no"; then |
5963 { test "$extra_verbose" = "yes" && cat << \EOF | 5965 { test "$extra_verbose" = "yes" && cat << \EOF |
5964 Defining HAVE_SESSION | 5966 Defining HAVE_SESSION |
5965 EOF | 5967 EOF |
5966 cat >> confdefs.h <<\EOF | 5968 cat >> confdefs.h <<\EOF |
5971 fi | 5973 fi |
5972 | 5974 |
5973 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no | 5975 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no |
5974 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` | 5976 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` |
5975 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 | 5977 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 |
5976 echo "configure:5977: checking for X11/Xauth.h" >&5 | 5978 echo "configure:5979: checking for X11/Xauth.h" >&5 |
5977 | 5979 |
5978 cat > conftest.$ac_ext <<EOF | 5980 cat > conftest.$ac_ext <<EOF |
5979 #line 5980 "configure" | 5981 #line 5982 "configure" |
5980 #include "confdefs.h" | 5982 #include "confdefs.h" |
5981 #include <X11/Xauth.h> | 5983 #include <X11/Xauth.h> |
5982 EOF | 5984 EOF |
5983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5984 { (eval echo configure:5985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5986 { (eval echo configure:5987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5985 ac_err=`grep -v '^ *+' conftest.out` | 5987 ac_err=`grep -v '^ *+' conftest.out` |
5986 if test -z "$ac_err"; then | 5988 if test -z "$ac_err"; then |
5987 rm -rf conftest* | 5989 rm -rf conftest* |
5988 eval "ac_cv_header_$ac_safe=yes" | 5990 eval "ac_cv_header_$ac_safe=yes" |
5989 else | 5991 else |
6002 with_xauth=no | 6004 with_xauth=no |
6003 fi | 6005 fi |
6004 } | 6006 } |
6005 test -z "$with_xauth" && { | 6007 test -z "$with_xauth" && { |
6006 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 | 6008 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 |
6007 echo "configure:6008: checking for XauGetAuthByAddr in -lXau" >&5 | 6009 echo "configure:6010: checking for XauGetAuthByAddr in -lXau" >&5 |
6008 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` | 6010 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` |
6009 | 6011 |
6010 xe_check_libs=" -lXau " | 6012 xe_check_libs=" -lXau " |
6011 cat > conftest.$ac_ext <<EOF | 6013 cat > conftest.$ac_ext <<EOF |
6012 #line 6013 "configure" | 6014 #line 6015 "configure" |
6013 #include "confdefs.h" | 6015 #include "confdefs.h" |
6014 /* Override any gcc2 internal prototype to avoid an error. */ | 6016 /* Override any gcc2 internal prototype to avoid an error. */ |
6015 /* We use char because int might match the return type of a gcc2 | 6017 /* We use char because int might match the return type of a gcc2 |
6016 builtin and then its argument prototype would still apply. */ | 6018 builtin and then its argument prototype would still apply. */ |
6017 char XauGetAuthByAddr(); | 6019 char XauGetAuthByAddr(); |
6018 | 6020 |
6019 int main() { | 6021 int main() { |
6020 XauGetAuthByAddr() | 6022 XauGetAuthByAddr() |
6021 ; return 0; } | 6023 ; return 0; } |
6022 EOF | 6024 EOF |
6023 if { (eval echo configure:6024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6025 if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6024 rm -rf conftest* | 6026 rm -rf conftest* |
6025 eval "ac_cv_lib_$ac_lib_var=yes" | 6027 eval "ac_cv_lib_$ac_lib_var=yes" |
6026 else | 6028 else |
6027 echo "configure: failed program was:" >&5 | 6029 echo "configure: failed program was:" >&5 |
6028 cat conftest.$ac_ext >&5 | 6030 cat conftest.$ac_ext >&5 |
6063 | 6065 |
6064 if test "$with_tooltalk" != "no" ; then | 6066 if test "$with_tooltalk" != "no" ; then |
6065 for dir in "" "Tt/" "desktop/" ; do | 6067 for dir in "" "Tt/" "desktop/" ; do |
6066 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` | 6068 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` |
6067 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 | 6069 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 |
6068 echo "configure:6069: checking for ${dir}tt_c.h" >&5 | 6070 echo "configure:6071: checking for ${dir}tt_c.h" >&5 |
6069 | 6071 |
6070 cat > conftest.$ac_ext <<EOF | 6072 cat > conftest.$ac_ext <<EOF |
6071 #line 6072 "configure" | 6073 #line 6074 "configure" |
6072 #include "confdefs.h" | 6074 #include "confdefs.h" |
6073 #include <${dir}tt_c.h> | 6075 #include <${dir}tt_c.h> |
6074 EOF | 6076 EOF |
6075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6076 { (eval echo configure:6077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6078 { (eval echo configure:6079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6077 ac_err=`grep -v '^ *+' conftest.out` | 6079 ac_err=`grep -v '^ *+' conftest.out` |
6078 if test -z "$ac_err"; then | 6080 if test -z "$ac_err"; then |
6079 rm -rf conftest* | 6081 rm -rf conftest* |
6080 eval "ac_cv_header_$ac_safe=yes" | 6082 eval "ac_cv_header_$ac_safe=yes" |
6081 else | 6083 else |
6107 for extra_libs in "" "-lI18N -lce" "-lcxx"; do | 6109 for extra_libs in "" "-lI18N -lce" "-lcxx"; do |
6108 | 6110 |
6109 xe_msg_checking="for tt_message_create in -ltt" | 6111 xe_msg_checking="for tt_message_create in -ltt" |
6110 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" | 6112 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" |
6111 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | 6113 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 |
6112 echo "configure:6113: checking "$xe_msg_checking"" >&5 | 6114 echo "configure:6115: checking "$xe_msg_checking"" >&5 |
6113 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` | 6115 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` |
6114 | 6116 |
6115 xe_check_libs=" -ltt $extra_libs" | 6117 xe_check_libs=" -ltt $extra_libs" |
6116 cat > conftest.$ac_ext <<EOF | 6118 cat > conftest.$ac_ext <<EOF |
6117 #line 6118 "configure" | 6119 #line 6120 "configure" |
6118 #include "confdefs.h" | 6120 #include "confdefs.h" |
6119 /* Override any gcc2 internal prototype to avoid an error. */ | 6121 /* Override any gcc2 internal prototype to avoid an error. */ |
6120 /* We use char because int might match the return type of a gcc2 | 6122 /* We use char because int might match the return type of a gcc2 |
6121 builtin and then its argument prototype would still apply. */ | 6123 builtin and then its argument prototype would still apply. */ |
6122 char tt_message_create(); | 6124 char tt_message_create(); |
6123 | 6125 |
6124 int main() { | 6126 int main() { |
6125 tt_message_create() | 6127 tt_message_create() |
6126 ; return 0; } | 6128 ; return 0; } |
6127 EOF | 6129 EOF |
6128 if { (eval echo configure:6129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6130 if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6129 rm -rf conftest* | 6131 rm -rf conftest* |
6130 eval "ac_cv_lib_$ac_lib_var=yes" | 6132 eval "ac_cv_lib_$ac_lib_var=yes" |
6131 else | 6133 else |
6132 echo "configure: failed program was:" >&5 | 6134 echo "configure: failed program was:" >&5 |
6133 cat conftest.$ac_ext >&5 | 6135 cat conftest.$ac_ext >&5 |
6180 fi | 6182 fi |
6181 fi | 6183 fi |
6182 | 6184 |
6183 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` | 6185 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` |
6184 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 | 6186 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 |
6185 echo "configure:6186: checking for Dt/Dt.h" >&5 | 6187 echo "configure:6188: checking for Dt/Dt.h" >&5 |
6186 | 6188 |
6187 cat > conftest.$ac_ext <<EOF | 6189 cat > conftest.$ac_ext <<EOF |
6188 #line 6189 "configure" | 6190 #line 6191 "configure" |
6189 #include "confdefs.h" | 6191 #include "confdefs.h" |
6190 #include <Dt/Dt.h> | 6192 #include <Dt/Dt.h> |
6191 EOF | 6193 EOF |
6192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6193 { (eval echo configure:6194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6195 { (eval echo configure:6196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6194 ac_err=`grep -v '^ *+' conftest.out` | 6196 ac_err=`grep -v '^ *+' conftest.out` |
6195 if test -z "$ac_err"; then | 6197 if test -z "$ac_err"; then |
6196 rm -rf conftest* | 6198 rm -rf conftest* |
6197 eval "ac_cv_header_$ac_safe=yes" | 6199 eval "ac_cv_header_$ac_safe=yes" |
6198 else | 6200 else |
6211 with_cde=no | 6213 with_cde=no |
6212 fi | 6214 fi |
6213 } | 6215 } |
6214 test -z "$with_cde" && { | 6216 test -z "$with_cde" && { |
6215 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 | 6217 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 |
6216 echo "configure:6217: checking for DtDndDragStart in -lDtSvc" >&5 | 6218 echo "configure:6219: checking for DtDndDragStart in -lDtSvc" >&5 |
6217 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` | 6219 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` |
6218 | 6220 |
6219 xe_check_libs=" -lDtSvc " | 6221 xe_check_libs=" -lDtSvc " |
6220 cat > conftest.$ac_ext <<EOF | 6222 cat > conftest.$ac_ext <<EOF |
6221 #line 6222 "configure" | 6223 #line 6224 "configure" |
6222 #include "confdefs.h" | 6224 #include "confdefs.h" |
6223 /* Override any gcc2 internal prototype to avoid an error. */ | 6225 /* Override any gcc2 internal prototype to avoid an error. */ |
6224 /* We use char because int might match the return type of a gcc2 | 6226 /* We use char because int might match the return type of a gcc2 |
6225 builtin and then its argument prototype would still apply. */ | 6227 builtin and then its argument prototype would still apply. */ |
6226 char DtDndDragStart(); | 6228 char DtDndDragStart(); |
6227 | 6229 |
6228 int main() { | 6230 int main() { |
6229 DtDndDragStart() | 6231 DtDndDragStart() |
6230 ; return 0; } | 6232 ; return 0; } |
6231 EOF | 6233 EOF |
6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6234 if { (eval echo configure:6235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6233 rm -rf conftest* | 6235 rm -rf conftest* |
6234 eval "ac_cv_lib_$ac_lib_var=yes" | 6236 eval "ac_cv_lib_$ac_lib_var=yes" |
6235 else | 6237 else |
6236 echo "configure: failed program was:" >&5 | 6238 echo "configure: failed program was:" >&5 |
6237 cat conftest.$ac_ext >&5 | 6239 cat conftest.$ac_ext >&5 |
6296 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi | 6298 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi |
6297 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi | 6299 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi |
6298 fi | 6300 fi |
6299 | 6301 |
6300 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 | 6302 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 |
6301 echo "configure:6302: checking if drag and drop API is needed" >&5 | 6303 echo "configure:6304: checking if drag and drop API is needed" >&5 |
6302 if test "$with_dragndrop" != "no" ; then | 6304 if test "$with_dragndrop" != "no" ; then |
6303 if test -n "$dragndrop_proto" ; then | 6305 if test -n "$dragndrop_proto" ; then |
6304 with_dragndrop=yes | 6306 with_dragndrop=yes |
6305 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 | 6307 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 |
6306 { test "$extra_verbose" = "yes" && cat << \EOF | 6308 { test "$extra_verbose" = "yes" && cat << \EOF |
6317 echo "$ac_t""no" 1>&6 | 6319 echo "$ac_t""no" 1>&6 |
6318 fi | 6320 fi |
6319 fi | 6321 fi |
6320 | 6322 |
6321 echo "checking for LDAP" 1>&6 | 6323 echo "checking for LDAP" 1>&6 |
6322 echo "configure:6323: checking for LDAP" >&5 | 6324 echo "configure:6325: checking for LDAP" >&5 |
6323 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` | 6325 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` |
6324 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 | 6326 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 |
6325 echo "configure:6326: checking for ldap.h" >&5 | 6327 echo "configure:6328: checking for ldap.h" >&5 |
6326 | 6328 |
6327 cat > conftest.$ac_ext <<EOF | 6329 cat > conftest.$ac_ext <<EOF |
6328 #line 6329 "configure" | 6330 #line 6331 "configure" |
6329 #include "confdefs.h" | 6331 #include "confdefs.h" |
6330 #include <ldap.h> | 6332 #include <ldap.h> |
6331 EOF | 6333 EOF |
6332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6333 { (eval echo configure:6334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6335 { (eval echo configure:6336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6334 ac_err=`grep -v '^ *+' conftest.out` | 6336 ac_err=`grep -v '^ *+' conftest.out` |
6335 if test -z "$ac_err"; then | 6337 if test -z "$ac_err"; then |
6336 rm -rf conftest* | 6338 rm -rf conftest* |
6337 eval "ac_cv_header_$ac_safe=yes" | 6339 eval "ac_cv_header_$ac_safe=yes" |
6338 else | 6340 else |
6351 with_ldap=no | 6353 with_ldap=no |
6352 fi | 6354 fi |
6353 } | 6355 } |
6354 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` | 6356 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` |
6355 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 | 6357 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 |
6356 echo "configure:6357: checking for lber.h" >&5 | 6358 echo "configure:6359: checking for lber.h" >&5 |
6357 | 6359 |
6358 cat > conftest.$ac_ext <<EOF | 6360 cat > conftest.$ac_ext <<EOF |
6359 #line 6360 "configure" | 6361 #line 6362 "configure" |
6360 #include "confdefs.h" | 6362 #include "confdefs.h" |
6361 #include <lber.h> | 6363 #include <lber.h> |
6362 EOF | 6364 EOF |
6363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6364 { (eval echo configure:6365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6366 { (eval echo configure:6367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6365 ac_err=`grep -v '^ *+' conftest.out` | 6367 ac_err=`grep -v '^ *+' conftest.out` |
6366 if test -z "$ac_err"; then | 6368 if test -z "$ac_err"; then |
6367 rm -rf conftest* | 6369 rm -rf conftest* |
6368 eval "ac_cv_header_$ac_safe=yes" | 6370 eval "ac_cv_header_$ac_safe=yes" |
6369 else | 6371 else |
6385 if test "$with_ldap" != "no"; then | 6387 if test "$with_ldap" != "no"; then |
6386 test -z "$with_umich_ldap" && { | 6388 test -z "$with_umich_ldap" && { |
6387 xe_msg_checking="for ldap_open in -lldap" | 6389 xe_msg_checking="for ldap_open in -lldap" |
6388 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" | 6390 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" |
6389 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | 6391 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 |
6390 echo "configure:6391: checking "$xe_msg_checking"" >&5 | 6392 echo "configure:6393: checking "$xe_msg_checking"" >&5 |
6391 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` | 6393 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` |
6392 | 6394 |
6393 xe_check_libs=" -lldap -llber" | 6395 xe_check_libs=" -lldap -llber" |
6394 cat > conftest.$ac_ext <<EOF | 6396 cat > conftest.$ac_ext <<EOF |
6395 #line 6396 "configure" | 6397 #line 6398 "configure" |
6396 #include "confdefs.h" | 6398 #include "confdefs.h" |
6397 /* Override any gcc2 internal prototype to avoid an error. */ | 6399 /* Override any gcc2 internal prototype to avoid an error. */ |
6398 /* We use char because int might match the return type of a gcc2 | 6400 /* We use char because int might match the return type of a gcc2 |
6399 builtin and then its argument prototype would still apply. */ | 6401 builtin and then its argument prototype would still apply. */ |
6400 char ldap_open(); | 6402 char ldap_open(); |
6401 | 6403 |
6402 int main() { | 6404 int main() { |
6403 ldap_open() | 6405 ldap_open() |
6404 ; return 0; } | 6406 ; return 0; } |
6405 EOF | 6407 EOF |
6406 if { (eval echo configure:6407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6408 if { (eval echo configure:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6407 rm -rf conftest* | 6409 rm -rf conftest* |
6408 eval "ac_cv_lib_$ac_lib_var=yes" | 6410 eval "ac_cv_lib_$ac_lib_var=yes" |
6409 else | 6411 else |
6410 echo "configure: failed program was:" >&5 | 6412 echo "configure: failed program was:" >&5 |
6411 cat conftest.$ac_ext >&5 | 6413 cat conftest.$ac_ext >&5 |
6424 fi | 6426 fi |
6425 | 6427 |
6426 } | 6428 } |
6427 test "$with_umich_ldap" = "no" && { | 6429 test "$with_umich_ldap" = "no" && { |
6428 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6 | 6430 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6 |
6429 echo "configure:6430: checking for ldap_set_option in -lldap10" >&5 | 6431 echo "configure:6432: checking for ldap_set_option in -lldap10" >&5 |
6430 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'` | 6432 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'` |
6431 | 6433 |
6432 xe_check_libs=" -lldap10 " | 6434 xe_check_libs=" -lldap10 " |
6433 cat > conftest.$ac_ext <<EOF | 6435 cat > conftest.$ac_ext <<EOF |
6434 #line 6435 "configure" | 6436 #line 6437 "configure" |
6435 #include "confdefs.h" | 6437 #include "confdefs.h" |
6436 /* Override any gcc2 internal prototype to avoid an error. */ | 6438 /* Override any gcc2 internal prototype to avoid an error. */ |
6437 /* We use char because int might match the return type of a gcc2 | 6439 /* We use char because int might match the return type of a gcc2 |
6438 builtin and then its argument prototype would still apply. */ | 6440 builtin and then its argument prototype would still apply. */ |
6439 char ldap_set_option(); | 6441 char ldap_set_option(); |
6440 | 6442 |
6441 int main() { | 6443 int main() { |
6442 ldap_set_option() | 6444 ldap_set_option() |
6443 ; return 0; } | 6445 ; return 0; } |
6444 EOF | 6446 EOF |
6445 if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6447 if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6446 rm -rf conftest* | 6448 rm -rf conftest* |
6447 eval "ac_cv_lib_$ac_lib_var=yes" | 6449 eval "ac_cv_lib_$ac_lib_var=yes" |
6448 else | 6450 else |
6449 echo "configure: failed program was:" >&5 | 6451 echo "configure: failed program was:" >&5 |
6450 cat conftest.$ac_ext >&5 | 6452 cat conftest.$ac_ext >&5 |
6504 fi | 6506 fi |
6505 | 6507 |
6506 | 6508 |
6507 if test "$window_system" != "none"; then | 6509 if test "$window_system" != "none"; then |
6508 echo "checking for graphics libraries" 1>&6 | 6510 echo "checking for graphics libraries" 1>&6 |
6509 echo "configure:6510: checking for graphics libraries" >&5 | 6511 echo "configure:6512: checking for graphics libraries" >&5 |
6510 | 6512 |
6511 xpm_problem="" | 6513 xpm_problem="" |
6512 if test -z "$with_xpm"; then | 6514 if test -z "$with_xpm"; then |
6513 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 | 6515 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 |
6514 echo "configure:6515: checking for Xpm - no older than 3.4f" >&5 | 6516 echo "configure:6517: checking for Xpm - no older than 3.4f" >&5 |
6515 xe_check_libs=-lXpm | 6517 xe_check_libs=-lXpm |
6516 cat > conftest.$ac_ext <<EOF | 6518 cat > conftest.$ac_ext <<EOF |
6517 #line 6518 "configure" | 6519 #line 6520 "configure" |
6518 #include "confdefs.h" | 6520 #include "confdefs.h" |
6519 #include <X11/xpm.h> | 6521 #include <X11/xpm.h> |
6520 int main(int c, char **v) { | 6522 int main(int c, char **v) { |
6521 return c == 1 ? 0 : | 6523 return c == 1 ? 0 : |
6522 XpmIncludeVersion != XpmLibraryVersion() ? 1 : | 6524 XpmIncludeVersion != XpmLibraryVersion() ? 1 : |
6523 XpmIncludeVersion < 30406 ? 2 : 0 ;} | 6525 XpmIncludeVersion < 30406 ? 2 : 0 ;} |
6524 EOF | 6526 EOF |
6525 if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 6527 if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
6526 then | 6528 then |
6527 ./conftest dummy_arg; xpm_status=$?; | 6529 ./conftest dummy_arg; xpm_status=$?; |
6528 if test "$xpm_status" = "0"; then | 6530 if test "$xpm_status" = "0"; then |
6529 with_xpm=yes; | 6531 with_xpm=yes; |
6530 else | 6532 else |
6562 EOF | 6564 EOF |
6563 } | 6565 } |
6564 | 6566 |
6565 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi | 6567 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi |
6566 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 | 6568 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 |
6567 echo "configure:6568: checking for \"FOR_MSW\" xpm" >&5 | 6569 echo "configure:6570: checking for \"FOR_MSW\" xpm" >&5 |
6568 xe_check_libs=-lXpm | 6570 xe_check_libs=-lXpm |
6569 cat > conftest.$ac_ext <<EOF | 6571 cat > conftest.$ac_ext <<EOF |
6570 #line 6571 "configure" | 6572 #line 6573 "configure" |
6571 #include "confdefs.h" | 6573 #include "confdefs.h" |
6572 | 6574 |
6573 int main() { | 6575 int main() { |
6574 XpmCreatePixmapFromData() | 6576 XpmCreatePixmapFromData() |
6575 ; return 0; } | 6577 ; return 0; } |
6576 EOF | 6578 EOF |
6577 if { (eval echo configure:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6579 if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6578 rm -rf conftest* | 6580 rm -rf conftest* |
6579 xpm_for_msw=no | 6581 xpm_for_msw=no |
6580 else | 6582 else |
6581 echo "configure: failed program was:" >&5 | 6583 echo "configure: failed program was:" >&5 |
6582 cat conftest.$ac_ext >&5 | 6584 cat conftest.$ac_ext >&5 |
6614 fi | 6616 fi |
6615 | 6617 |
6616 if test "$with_png $with_tiff" != "no no"; then | 6618 if test "$with_png $with_tiff" != "no no"; then |
6617 | 6619 |
6618 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 | 6620 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 |
6619 echo "configure:6620: checking for inflate in -lc" >&5 | 6621 echo "configure:6622: checking for inflate in -lc" >&5 |
6620 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` | 6622 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` |
6621 | 6623 |
6622 xe_check_libs=" -lc " | 6624 xe_check_libs=" -lc " |
6623 cat > conftest.$ac_ext <<EOF | 6625 cat > conftest.$ac_ext <<EOF |
6624 #line 6625 "configure" | 6626 #line 6627 "configure" |
6625 #include "confdefs.h" | 6627 #include "confdefs.h" |
6626 /* Override any gcc2 internal prototype to avoid an error. */ | 6628 /* Override any gcc2 internal prototype to avoid an error. */ |
6627 /* We use char because int might match the return type of a gcc2 | 6629 /* We use char because int might match the return type of a gcc2 |
6628 builtin and then its argument prototype would still apply. */ | 6630 builtin and then its argument prototype would still apply. */ |
6629 char inflate(); | 6631 char inflate(); |
6630 | 6632 |
6631 int main() { | 6633 int main() { |
6632 inflate() | 6634 inflate() |
6633 ; return 0; } | 6635 ; return 0; } |
6634 EOF | 6636 EOF |
6635 if { (eval echo configure:6636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6637 if { (eval echo configure:6638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6636 rm -rf conftest* | 6638 rm -rf conftest* |
6637 eval "ac_cv_lib_$ac_lib_var=yes" | 6639 eval "ac_cv_lib_$ac_lib_var=yes" |
6638 else | 6640 else |
6639 echo "configure: failed program was:" >&5 | 6641 echo "configure: failed program was:" >&5 |
6640 cat conftest.$ac_ext >&5 | 6642 cat conftest.$ac_ext >&5 |
6649 : | 6651 : |
6650 else | 6652 else |
6651 echo "$ac_t""no" 1>&6 | 6653 echo "$ac_t""no" 1>&6 |
6652 | 6654 |
6653 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 | 6655 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 |
6654 echo "configure:6655: checking for inflate in -lz" >&5 | 6656 echo "configure:6657: checking for inflate in -lz" >&5 |
6655 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` | 6657 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` |
6656 | 6658 |
6657 xe_check_libs=" -lz " | 6659 xe_check_libs=" -lz " |
6658 cat > conftest.$ac_ext <<EOF | 6660 cat > conftest.$ac_ext <<EOF |
6659 #line 6660 "configure" | 6661 #line 6662 "configure" |
6660 #include "confdefs.h" | 6662 #include "confdefs.h" |
6661 /* Override any gcc2 internal prototype to avoid an error. */ | 6663 /* Override any gcc2 internal prototype to avoid an error. */ |
6662 /* We use char because int might match the return type of a gcc2 | 6664 /* We use char because int might match the return type of a gcc2 |
6663 builtin and then its argument prototype would still apply. */ | 6665 builtin and then its argument prototype would still apply. */ |
6664 char inflate(); | 6666 char inflate(); |
6665 | 6667 |
6666 int main() { | 6668 int main() { |
6667 inflate() | 6669 inflate() |
6668 ; return 0; } | 6670 ; return 0; } |
6669 EOF | 6671 EOF |
6670 if { (eval echo configure:6671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6672 if { (eval echo configure:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6671 rm -rf conftest* | 6673 rm -rf conftest* |
6672 eval "ac_cv_lib_$ac_lib_var=yes" | 6674 eval "ac_cv_lib_$ac_lib_var=yes" |
6673 else | 6675 else |
6674 echo "configure: failed program was:" >&5 | 6676 echo "configure: failed program was:" >&5 |
6675 cat conftest.$ac_ext >&5 | 6677 cat conftest.$ac_ext >&5 |
6684 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi | 6686 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi |
6685 else | 6687 else |
6686 echo "$ac_t""no" 1>&6 | 6688 echo "$ac_t""no" 1>&6 |
6687 | 6689 |
6688 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 | 6690 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 |
6689 echo "configure:6690: checking for inflate in -lgz" >&5 | 6691 echo "configure:6692: checking for inflate in -lgz" >&5 |
6690 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` | 6692 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` |
6691 | 6693 |
6692 xe_check_libs=" -lgz " | 6694 xe_check_libs=" -lgz " |
6693 cat > conftest.$ac_ext <<EOF | 6695 cat > conftest.$ac_ext <<EOF |
6694 #line 6695 "configure" | 6696 #line 6697 "configure" |
6695 #include "confdefs.h" | 6697 #include "confdefs.h" |
6696 /* Override any gcc2 internal prototype to avoid an error. */ | 6698 /* Override any gcc2 internal prototype to avoid an error. */ |
6697 /* We use char because int might match the return type of a gcc2 | 6699 /* We use char because int might match the return type of a gcc2 |
6698 builtin and then its argument prototype would still apply. */ | 6700 builtin and then its argument prototype would still apply. */ |
6699 char inflate(); | 6701 char inflate(); |
6700 | 6702 |
6701 int main() { | 6703 int main() { |
6702 inflate() | 6704 inflate() |
6703 ; return 0; } | 6705 ; return 0; } |
6704 EOF | 6706 EOF |
6705 if { (eval echo configure:6706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6707 if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6706 rm -rf conftest* | 6708 rm -rf conftest* |
6707 eval "ac_cv_lib_$ac_lib_var=yes" | 6709 eval "ac_cv_lib_$ac_lib_var=yes" |
6708 else | 6710 else |
6709 echo "configure: failed program was:" >&5 | 6711 echo "configure: failed program was:" >&5 |
6710 cat conftest.$ac_ext >&5 | 6712 cat conftest.$ac_ext >&5 |
6730 | 6732 |
6731 fi | 6733 fi |
6732 | 6734 |
6733 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` | 6735 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` |
6734 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | 6736 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
6735 echo "configure:6736: checking for jpeglib.h" >&5 | 6737 echo "configure:6738: checking for jpeglib.h" >&5 |
6736 | 6738 |
6737 cat > conftest.$ac_ext <<EOF | 6739 cat > conftest.$ac_ext <<EOF |
6738 #line 6739 "configure" | 6740 #line 6741 "configure" |
6739 #include "confdefs.h" | 6741 #include "confdefs.h" |
6740 #include <jpeglib.h> | 6742 #include <jpeglib.h> |
6741 EOF | 6743 EOF |
6742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6743 { (eval echo configure:6744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6745 { (eval echo configure:6746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6744 ac_err=`grep -v '^ *+' conftest.out` | 6746 ac_err=`grep -v '^ *+' conftest.out` |
6745 if test -z "$ac_err"; then | 6747 if test -z "$ac_err"; then |
6746 rm -rf conftest* | 6748 rm -rf conftest* |
6747 eval "ac_cv_header_$ac_safe=yes" | 6749 eval "ac_cv_header_$ac_safe=yes" |
6748 else | 6750 else |
6761 with_jpeg=no | 6763 with_jpeg=no |
6762 fi | 6764 fi |
6763 } | 6765 } |
6764 test -z "$with_jpeg" && { | 6766 test -z "$with_jpeg" && { |
6765 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 | 6767 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 |
6766 echo "configure:6767: checking for jpeg_destroy_decompress in -ljpeg" >&5 | 6768 echo "configure:6769: checking for jpeg_destroy_decompress in -ljpeg" >&5 |
6767 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` | 6769 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` |
6768 | 6770 |
6769 xe_check_libs=" -ljpeg " | 6771 xe_check_libs=" -ljpeg " |
6770 cat > conftest.$ac_ext <<EOF | 6772 cat > conftest.$ac_ext <<EOF |
6771 #line 6772 "configure" | 6773 #line 6774 "configure" |
6772 #include "confdefs.h" | 6774 #include "confdefs.h" |
6773 /* Override any gcc2 internal prototype to avoid an error. */ | 6775 /* Override any gcc2 internal prototype to avoid an error. */ |
6774 /* We use char because int might match the return type of a gcc2 | 6776 /* We use char because int might match the return type of a gcc2 |
6775 builtin and then its argument prototype would still apply. */ | 6777 builtin and then its argument prototype would still apply. */ |
6776 char jpeg_destroy_decompress(); | 6778 char jpeg_destroy_decompress(); |
6777 | 6779 |
6778 int main() { | 6780 int main() { |
6779 jpeg_destroy_decompress() | 6781 jpeg_destroy_decompress() |
6780 ; return 0; } | 6782 ; return 0; } |
6781 EOF | 6783 EOF |
6782 if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6784 if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6783 rm -rf conftest* | 6785 rm -rf conftest* |
6784 eval "ac_cv_lib_$ac_lib_var=yes" | 6786 eval "ac_cv_lib_$ac_lib_var=yes" |
6785 else | 6787 else |
6786 echo "configure: failed program was:" >&5 | 6788 echo "configure: failed program was:" >&5 |
6787 cat conftest.$ac_ext >&5 | 6789 cat conftest.$ac_ext >&5 |
6813 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi | 6815 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi |
6814 fi | 6816 fi |
6815 | 6817 |
6816 png_problem="" | 6818 png_problem="" |
6817 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 | 6819 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 |
6818 echo "configure:6819: checking for pow" >&5 | 6820 echo "configure:6821: checking for pow" >&5 |
6819 | 6821 |
6820 cat > conftest.$ac_ext <<EOF | 6822 cat > conftest.$ac_ext <<EOF |
6821 #line 6822 "configure" | 6823 #line 6824 "configure" |
6822 #include "confdefs.h" | 6824 #include "confdefs.h" |
6823 /* System header to define __stub macros and hopefully few prototypes, | 6825 /* System header to define __stub macros and hopefully few prototypes, |
6824 which can conflict with char pow(); below. */ | 6826 which can conflict with char pow(); below. */ |
6825 #include <assert.h> | 6827 #include <assert.h> |
6826 /* Override any gcc2 internal prototype to avoid an error. */ | 6828 /* Override any gcc2 internal prototype to avoid an error. */ |
6839 pow(); | 6841 pow(); |
6840 #endif | 6842 #endif |
6841 | 6843 |
6842 ; return 0; } | 6844 ; return 0; } |
6843 EOF | 6845 EOF |
6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6846 if { (eval echo configure:6847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6845 rm -rf conftest* | 6847 rm -rf conftest* |
6846 eval "ac_cv_func_pow=yes" | 6848 eval "ac_cv_func_pow=yes" |
6847 else | 6849 else |
6848 echo "configure: failed program was:" >&5 | 6850 echo "configure: failed program was:" >&5 |
6849 cat conftest.$ac_ext >&5 | 6851 cat conftest.$ac_ext >&5 |
6860 with_png=no | 6862 with_png=no |
6861 fi | 6863 fi |
6862 } | 6864 } |
6863 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | 6865 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
6864 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | 6866 echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
6865 echo "configure:6866: checking for png.h" >&5 | 6867 echo "configure:6868: checking for png.h" >&5 |
6866 | 6868 |
6867 cat > conftest.$ac_ext <<EOF | 6869 cat > conftest.$ac_ext <<EOF |
6868 #line 6869 "configure" | 6870 #line 6871 "configure" |
6869 #include "confdefs.h" | 6871 #include "confdefs.h" |
6870 #include <png.h> | 6872 #include <png.h> |
6871 EOF | 6873 EOF |
6872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6873 { (eval echo configure:6874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6875 { (eval echo configure:6876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6874 ac_err=`grep -v '^ *+' conftest.out` | 6876 ac_err=`grep -v '^ *+' conftest.out` |
6875 if test -z "$ac_err"; then | 6877 if test -z "$ac_err"; then |
6876 rm -rf conftest* | 6878 rm -rf conftest* |
6877 eval "ac_cv_header_$ac_safe=yes" | 6879 eval "ac_cv_header_$ac_safe=yes" |
6878 else | 6880 else |
6891 with_png=no | 6893 with_png=no |
6892 fi | 6894 fi |
6893 } | 6895 } |
6894 test -z "$with_png" && { | 6896 test -z "$with_png" && { |
6895 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 | 6897 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 |
6896 echo "configure:6897: checking for png_read_image in -lpng" >&5 | 6898 echo "configure:6899: checking for png_read_image in -lpng" >&5 |
6897 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` | 6899 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` |
6898 | 6900 |
6899 xe_check_libs=" -lpng " | 6901 xe_check_libs=" -lpng " |
6900 cat > conftest.$ac_ext <<EOF | 6902 cat > conftest.$ac_ext <<EOF |
6901 #line 6902 "configure" | 6903 #line 6904 "configure" |
6902 #include "confdefs.h" | 6904 #include "confdefs.h" |
6903 /* Override any gcc2 internal prototype to avoid an error. */ | 6905 /* Override any gcc2 internal prototype to avoid an error. */ |
6904 /* We use char because int might match the return type of a gcc2 | 6906 /* We use char because int might match the return type of a gcc2 |
6905 builtin and then its argument prototype would still apply. */ | 6907 builtin and then its argument prototype would still apply. */ |
6906 char png_read_image(); | 6908 char png_read_image(); |
6907 | 6909 |
6908 int main() { | 6910 int main() { |
6909 png_read_image() | 6911 png_read_image() |
6910 ; return 0; } | 6912 ; return 0; } |
6911 EOF | 6913 EOF |
6912 if { (eval echo configure:6913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6914 if { (eval echo configure:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6913 rm -rf conftest* | 6915 rm -rf conftest* |
6914 eval "ac_cv_lib_$ac_lib_var=yes" | 6916 eval "ac_cv_lib_$ac_lib_var=yes" |
6915 else | 6917 else |
6916 echo "configure: failed program was:" >&5 | 6918 echo "configure: failed program was:" >&5 |
6917 cat conftest.$ac_ext >&5 | 6919 cat conftest.$ac_ext >&5 |
6930 fi | 6932 fi |
6931 | 6933 |
6932 } | 6934 } |
6933 if test -z "$with_png"; then | 6935 if test -z "$with_png"; then |
6934 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 | 6936 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 |
6935 echo "configure:6936: checking for workable png version information" >&5 | 6937 echo "configure:6938: checking for workable png version information" >&5 |
6936 xe_check_libs="-lpng -lz" | 6938 xe_check_libs="-lpng -lz" |
6937 cat > conftest.$ac_ext <<EOF | 6939 cat > conftest.$ac_ext <<EOF |
6938 #line 6939 "configure" | 6940 #line 6941 "configure" |
6939 #include "confdefs.h" | 6941 #include "confdefs.h" |
6940 #include <png.h> | 6942 #include <png.h> |
6941 int main(int c, char **v) { | 6943 int main(int c, char **v) { |
6942 if (c == 1) return 0; | 6944 if (c == 1) return 0; |
6943 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; | 6945 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; |
6944 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} | 6946 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} |
6945 EOF | 6947 EOF |
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 6948 if { (eval echo configure:6949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
6947 then | 6949 then |
6948 ./conftest dummy_arg; png_status=$?; | 6950 ./conftest dummy_arg; png_status=$?; |
6949 if test "$png_status" = "0"; then | 6951 if test "$png_status" = "0"; then |
6950 with_png=yes; | 6952 with_png=yes; |
6951 else | 6953 else |
6984 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi | 6986 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi |
6985 fi | 6987 fi |
6986 | 6988 |
6987 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | 6989 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
6988 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | 6990 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 |
6989 echo "configure:6990: checking for tiffio.h" >&5 | 6991 echo "configure:6992: checking for tiffio.h" >&5 |
6990 | 6992 |
6991 cat > conftest.$ac_ext <<EOF | 6993 cat > conftest.$ac_ext <<EOF |
6992 #line 6993 "configure" | 6994 #line 6995 "configure" |
6993 #include "confdefs.h" | 6995 #include "confdefs.h" |
6994 #include <tiffio.h> | 6996 #include <tiffio.h> |
6995 EOF | 6997 EOF |
6996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6997 { (eval echo configure:6998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6999 { (eval echo configure:7000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6998 ac_err=`grep -v '^ *+' conftest.out` | 7000 ac_err=`grep -v '^ *+' conftest.out` |
6999 if test -z "$ac_err"; then | 7001 if test -z "$ac_err"; then |
7000 rm -rf conftest* | 7002 rm -rf conftest* |
7001 eval "ac_cv_header_$ac_safe=yes" | 7003 eval "ac_cv_header_$ac_safe=yes" |
7002 else | 7004 else |
7015 with_tiff=no | 7017 with_tiff=no |
7016 fi | 7018 fi |
7017 } | 7019 } |
7018 test -z "$with_tiff" && { | 7020 test -z "$with_tiff" && { |
7019 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 | 7021 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 |
7020 echo "configure:7021: checking for TIFFClientOpen in -ltiff" >&5 | 7022 echo "configure:7023: checking for TIFFClientOpen in -ltiff" >&5 |
7021 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` | 7023 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` |
7022 | 7024 |
7023 xe_check_libs=" -ltiff " | 7025 xe_check_libs=" -ltiff " |
7024 cat > conftest.$ac_ext <<EOF | 7026 cat > conftest.$ac_ext <<EOF |
7025 #line 7026 "configure" | 7027 #line 7028 "configure" |
7026 #include "confdefs.h" | 7028 #include "confdefs.h" |
7027 /* Override any gcc2 internal prototype to avoid an error. */ | 7029 /* Override any gcc2 internal prototype to avoid an error. */ |
7028 /* We use char because int might match the return type of a gcc2 | 7030 /* We use char because int might match the return type of a gcc2 |
7029 builtin and then its argument prototype would still apply. */ | 7031 builtin and then its argument prototype would still apply. */ |
7030 char TIFFClientOpen(); | 7032 char TIFFClientOpen(); |
7031 | 7033 |
7032 int main() { | 7034 int main() { |
7033 TIFFClientOpen() | 7035 TIFFClientOpen() |
7034 ; return 0; } | 7036 ; return 0; } |
7035 EOF | 7037 EOF |
7036 if { (eval echo configure:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7038 if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7037 rm -rf conftest* | 7039 rm -rf conftest* |
7038 eval "ac_cv_lib_$ac_lib_var=yes" | 7040 eval "ac_cv_lib_$ac_lib_var=yes" |
7039 else | 7041 else |
7040 echo "configure: failed program was:" >&5 | 7042 echo "configure: failed program was:" >&5 |
7041 cat conftest.$ac_ext >&5 | 7043 cat conftest.$ac_ext >&5 |
7070 | 7072 |
7071 | 7073 |
7072 if test "$with_x11" = "yes"; then | 7074 if test "$with_x11" = "yes"; then |
7073 | 7075 |
7074 echo "checking for X11 graphics libraries" 1>&6 | 7076 echo "checking for X11 graphics libraries" 1>&6 |
7075 echo "configure:7076: checking for X11 graphics libraries" >&5 | 7077 echo "configure:7078: checking for X11 graphics libraries" >&5 |
7076 | 7078 |
7077 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` | 7079 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` |
7078 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 | 7080 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 |
7079 echo "configure:7080: checking for compface.h" >&5 | 7081 echo "configure:7082: checking for compface.h" >&5 |
7080 | 7082 |
7081 cat > conftest.$ac_ext <<EOF | 7083 cat > conftest.$ac_ext <<EOF |
7082 #line 7083 "configure" | 7084 #line 7085 "configure" |
7083 #include "confdefs.h" | 7085 #include "confdefs.h" |
7084 #include <compface.h> | 7086 #include <compface.h> |
7085 EOF | 7087 EOF |
7086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7087 { (eval echo configure:7088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7089 { (eval echo configure:7090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7088 ac_err=`grep -v '^ *+' conftest.out` | 7090 ac_err=`grep -v '^ *+' conftest.out` |
7089 if test -z "$ac_err"; then | 7091 if test -z "$ac_err"; then |
7090 rm -rf conftest* | 7092 rm -rf conftest* |
7091 eval "ac_cv_header_$ac_safe=yes" | 7093 eval "ac_cv_header_$ac_safe=yes" |
7092 else | 7094 else |
7105 with_xface=no | 7107 with_xface=no |
7106 fi | 7108 fi |
7107 } | 7109 } |
7108 test -z "$with_xface" && { | 7110 test -z "$with_xface" && { |
7109 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 | 7111 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 |
7110 echo "configure:7111: checking for UnGenFace in -lcompface" >&5 | 7112 echo "configure:7113: checking for UnGenFace in -lcompface" >&5 |
7111 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` | 7113 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` |
7112 | 7114 |
7113 xe_check_libs=" -lcompface " | 7115 xe_check_libs=" -lcompface " |
7114 cat > conftest.$ac_ext <<EOF | 7116 cat > conftest.$ac_ext <<EOF |
7115 #line 7116 "configure" | 7117 #line 7118 "configure" |
7116 #include "confdefs.h" | 7118 #include "confdefs.h" |
7117 /* Override any gcc2 internal prototype to avoid an error. */ | 7119 /* Override any gcc2 internal prototype to avoid an error. */ |
7118 /* We use char because int might match the return type of a gcc2 | 7120 /* We use char because int might match the return type of a gcc2 |
7119 builtin and then its argument prototype would still apply. */ | 7121 builtin and then its argument prototype would still apply. */ |
7120 char UnGenFace(); | 7122 char UnGenFace(); |
7121 | 7123 |
7122 int main() { | 7124 int main() { |
7123 UnGenFace() | 7125 UnGenFace() |
7124 ; return 0; } | 7126 ; return 0; } |
7125 EOF | 7127 EOF |
7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7128 if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7127 rm -rf conftest* | 7129 rm -rf conftest* |
7128 eval "ac_cv_lib_$ac_lib_var=yes" | 7130 eval "ac_cv_lib_$ac_lib_var=yes" |
7129 else | 7131 else |
7130 echo "configure: failed program was:" >&5 | 7132 echo "configure: failed program was:" >&5 |
7131 cat conftest.$ac_ext >&5 | 7133 cat conftest.$ac_ext >&5 |
7157 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi | 7159 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi |
7158 fi | 7160 fi |
7159 | 7161 |
7160 | 7162 |
7161 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 | 7163 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 |
7162 echo "configure:7163: checking for XawScrollbarSetThumb in -lXaw" >&5 | 7164 echo "configure:7165: checking for XawScrollbarSetThumb in -lXaw" >&5 |
7163 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | 7165 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
7164 | 7166 |
7165 xe_check_libs=" -lXaw " | 7167 xe_check_libs=" -lXaw " |
7166 cat > conftest.$ac_ext <<EOF | 7168 cat > conftest.$ac_ext <<EOF |
7167 #line 7168 "configure" | 7169 #line 7170 "configure" |
7168 #include "confdefs.h" | 7170 #include "confdefs.h" |
7169 /* Override any gcc2 internal prototype to avoid an error. */ | 7171 /* Override any gcc2 internal prototype to avoid an error. */ |
7170 /* We use char because int might match the return type of a gcc2 | 7172 /* We use char because int might match the return type of a gcc2 |
7171 builtin and then its argument prototype would still apply. */ | 7173 builtin and then its argument prototype would still apply. */ |
7172 char XawScrollbarSetThumb(); | 7174 char XawScrollbarSetThumb(); |
7173 | 7175 |
7174 int main() { | 7176 int main() { |
7175 XawScrollbarSetThumb() | 7177 XawScrollbarSetThumb() |
7176 ; return 0; } | 7178 ; return 0; } |
7177 EOF | 7179 EOF |
7178 if { (eval echo configure:7179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7180 if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7179 rm -rf conftest* | 7181 rm -rf conftest* |
7180 eval "ac_cv_lib_$ac_lib_var=yes" | 7182 eval "ac_cv_lib_$ac_lib_var=yes" |
7181 else | 7183 else |
7182 echo "configure: failed program was:" >&5 | 7184 echo "configure: failed program was:" >&5 |
7183 cat conftest.$ac_ext >&5 | 7185 cat conftest.$ac_ext >&5 |
7197 | 7199 |
7198 | 7200 |
7199 | 7201 |
7200 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` | 7202 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` |
7201 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 | 7203 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 |
7202 echo "configure:7203: checking for Xm/Xm.h" >&5 | 7204 echo "configure:7205: checking for Xm/Xm.h" >&5 |
7203 | 7205 |
7204 cat > conftest.$ac_ext <<EOF | 7206 cat > conftest.$ac_ext <<EOF |
7205 #line 7206 "configure" | 7207 #line 7208 "configure" |
7206 #include "confdefs.h" | 7208 #include "confdefs.h" |
7207 #include <Xm/Xm.h> | 7209 #include <Xm/Xm.h> |
7208 EOF | 7210 EOF |
7209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7210 { (eval echo configure:7211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7212 { (eval echo configure:7213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7211 ac_err=`grep -v '^ *+' conftest.out` | 7213 ac_err=`grep -v '^ *+' conftest.out` |
7212 if test -z "$ac_err"; then | 7214 if test -z "$ac_err"; then |
7213 rm -rf conftest* | 7215 rm -rf conftest* |
7214 eval "ac_cv_header_$ac_safe=yes" | 7216 eval "ac_cv_header_$ac_safe=yes" |
7215 else | 7217 else |
7222 rm -f conftest* | 7224 rm -f conftest* |
7223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 7225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7224 echo "$ac_t""yes" 1>&6 | 7226 echo "$ac_t""yes" 1>&6 |
7225 | 7227 |
7226 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 | 7228 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 |
7227 echo "configure:7228: checking for XmStringFree in -lXm" >&5 | 7229 echo "configure:7230: checking for XmStringFree in -lXm" >&5 |
7228 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` | 7230 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` |
7229 | 7231 |
7230 xe_check_libs=" -lXm " | 7232 xe_check_libs=" -lXm " |
7231 cat > conftest.$ac_ext <<EOF | 7233 cat > conftest.$ac_ext <<EOF |
7232 #line 7233 "configure" | 7234 #line 7235 "configure" |
7233 #include "confdefs.h" | 7235 #include "confdefs.h" |
7234 /* Override any gcc2 internal prototype to avoid an error. */ | 7236 /* Override any gcc2 internal prototype to avoid an error. */ |
7235 /* We use char because int might match the return type of a gcc2 | 7237 /* We use char because int might match the return type of a gcc2 |
7236 builtin and then its argument prototype would still apply. */ | 7238 builtin and then its argument prototype would still apply. */ |
7237 char XmStringFree(); | 7239 char XmStringFree(); |
7238 | 7240 |
7239 int main() { | 7241 int main() { |
7240 XmStringFree() | 7242 XmStringFree() |
7241 ; return 0; } | 7243 ; return 0; } |
7242 EOF | 7244 EOF |
7243 if { (eval echo configure:7244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7245 if { (eval echo configure:7246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7244 rm -rf conftest* | 7246 rm -rf conftest* |
7245 eval "ac_cv_lib_$ac_lib_var=yes" | 7247 eval "ac_cv_lib_$ac_lib_var=yes" |
7246 else | 7248 else |
7247 echo "configure: failed program was:" >&5 | 7249 echo "configure: failed program was:" >&5 |
7248 cat conftest.$ac_ext >&5 | 7250 cat conftest.$ac_ext >&5 |
7267 fi | 7269 fi |
7268 | 7270 |
7269 | 7271 |
7270 if test "$have_motif" = "yes"; then | 7272 if test "$have_motif" = "yes"; then |
7271 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 | 7273 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 |
7272 echo "configure:7273: checking for Lesstif" >&5 | 7274 echo "configure:7275: checking for Lesstif" >&5 |
7273 cat > conftest.$ac_ext <<EOF | 7275 cat > conftest.$ac_ext <<EOF |
7274 #line 7275 "configure" | 7276 #line 7277 "configure" |
7275 #include "confdefs.h" | 7277 #include "confdefs.h" |
7276 #include <Xm/Xm.h> | 7278 #include <Xm/Xm.h> |
7277 #ifdef LESSTIF_VERSION | 7279 #ifdef LESSTIF_VERSION |
7278 yes | 7280 yes |
7279 #endif | 7281 #endif |
7553 fi | 7555 fi |
7554 fi | 7556 fi |
7555 | 7557 |
7556 if test "$with_mule" = "yes" ; then | 7558 if test "$with_mule" = "yes" ; then |
7557 echo "checking for Mule-related features" 1>&6 | 7559 echo "checking for Mule-related features" 1>&6 |
7558 echo "configure:7559: checking for Mule-related features" >&5 | 7560 echo "configure:7561: checking for Mule-related features" >&5 |
7559 { test "$extra_verbose" = "yes" && cat << \EOF | 7561 { test "$extra_verbose" = "yes" && cat << \EOF |
7560 Defining MULE | 7562 Defining MULE |
7561 EOF | 7563 EOF |
7562 cat >> confdefs.h <<\EOF | 7564 cat >> confdefs.h <<\EOF |
7563 #define MULE 1 | 7565 #define MULE 1 |
7578 | 7580 |
7579 for ac_hdr in libintl.h | 7581 for ac_hdr in libintl.h |
7580 do | 7582 do |
7581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7583 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7583 echo "configure:7584: checking for $ac_hdr" >&5 | 7585 echo "configure:7586: checking for $ac_hdr" >&5 |
7584 | 7586 |
7585 cat > conftest.$ac_ext <<EOF | 7587 cat > conftest.$ac_ext <<EOF |
7586 #line 7587 "configure" | 7588 #line 7589 "configure" |
7587 #include "confdefs.h" | 7589 #include "confdefs.h" |
7588 #include <$ac_hdr> | 7590 #include <$ac_hdr> |
7589 EOF | 7591 EOF |
7590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7591 { (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7593 { (eval echo configure:7594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7592 ac_err=`grep -v '^ *+' conftest.out` | 7594 ac_err=`grep -v '^ *+' conftest.out` |
7593 if test -z "$ac_err"; then | 7595 if test -z "$ac_err"; then |
7594 rm -rf conftest* | 7596 rm -rf conftest* |
7595 eval "ac_cv_header_$ac_safe=yes" | 7597 eval "ac_cv_header_$ac_safe=yes" |
7596 else | 7598 else |
7617 fi | 7619 fi |
7618 done | 7620 done |
7619 | 7621 |
7620 | 7622 |
7621 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 | 7623 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 |
7622 echo "configure:7623: checking for strerror in -lintl" >&5 | 7624 echo "configure:7625: checking for strerror in -lintl" >&5 |
7623 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` | 7625 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` |
7624 | 7626 |
7625 xe_check_libs=" -lintl " | 7627 xe_check_libs=" -lintl " |
7626 cat > conftest.$ac_ext <<EOF | 7628 cat > conftest.$ac_ext <<EOF |
7627 #line 7628 "configure" | 7629 #line 7630 "configure" |
7628 #include "confdefs.h" | 7630 #include "confdefs.h" |
7629 /* Override any gcc2 internal prototype to avoid an error. */ | 7631 /* Override any gcc2 internal prototype to avoid an error. */ |
7630 /* We use char because int might match the return type of a gcc2 | 7632 /* We use char because int might match the return type of a gcc2 |
7631 builtin and then its argument prototype would still apply. */ | 7633 builtin and then its argument prototype would still apply. */ |
7632 char strerror(); | 7634 char strerror(); |
7633 | 7635 |
7634 int main() { | 7636 int main() { |
7635 strerror() | 7637 strerror() |
7636 ; return 0; } | 7638 ; return 0; } |
7637 EOF | 7639 EOF |
7638 if { (eval echo configure:7639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7640 if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7639 rm -rf conftest* | 7641 rm -rf conftest* |
7640 eval "ac_cv_lib_$ac_lib_var=yes" | 7642 eval "ac_cv_lib_$ac_lib_var=yes" |
7641 else | 7643 else |
7642 echo "configure: failed program was:" >&5 | 7644 echo "configure: failed program was:" >&5 |
7643 cat conftest.$ac_ext >&5 | 7645 cat conftest.$ac_ext >&5 |
7666 fi | 7668 fi |
7667 | 7669 |
7668 | 7670 |
7669 | 7671 |
7670 echo "checking for Mule input methods" 1>&6 | 7672 echo "checking for Mule input methods" 1>&6 |
7671 echo "configure:7672: checking for Mule input methods" >&5 | 7673 echo "configure:7674: checking for Mule input methods" >&5 |
7672 case "$with_xim" in "" | "yes" ) | 7674 case "$with_xim" in "" | "yes" ) |
7673 echo "checking for XIM" 1>&6 | 7675 echo "checking for XIM" 1>&6 |
7674 echo "configure:7675: checking for XIM" >&5 | 7676 echo "configure:7677: checking for XIM" >&5 |
7675 if test "$have_lesstif" = "yes"; then with_xim=xlib | 7677 if test "$have_lesstif" = "yes"; then with_xim=xlib |
7676 else | 7678 else |
7677 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 | 7679 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 |
7678 echo "configure:7679: checking for XmImMbLookupString in -lXm" >&5 | 7680 echo "configure:7681: checking for XmImMbLookupString in -lXm" >&5 |
7679 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` | 7681 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` |
7680 | 7682 |
7681 xe_check_libs=" -lXm " | 7683 xe_check_libs=" -lXm " |
7682 cat > conftest.$ac_ext <<EOF | 7684 cat > conftest.$ac_ext <<EOF |
7683 #line 7684 "configure" | 7685 #line 7686 "configure" |
7684 #include "confdefs.h" | 7686 #include "confdefs.h" |
7685 /* Override any gcc2 internal prototype to avoid an error. */ | 7687 /* Override any gcc2 internal prototype to avoid an error. */ |
7686 /* We use char because int might match the return type of a gcc2 | 7688 /* We use char because int might match the return type of a gcc2 |
7687 builtin and then its argument prototype would still apply. */ | 7689 builtin and then its argument prototype would still apply. */ |
7688 char XmImMbLookupString(); | 7690 char XmImMbLookupString(); |
7689 | 7691 |
7690 int main() { | 7692 int main() { |
7691 XmImMbLookupString() | 7693 XmImMbLookupString() |
7692 ; return 0; } | 7694 ; return 0; } |
7693 EOF | 7695 EOF |
7694 if { (eval echo configure:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7696 if { (eval echo configure:7697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7695 rm -rf conftest* | 7697 rm -rf conftest* |
7696 eval "ac_cv_lib_$ac_lib_var=yes" | 7698 eval "ac_cv_lib_$ac_lib_var=yes" |
7697 else | 7699 else |
7698 echo "configure: failed program was:" >&5 | 7700 echo "configure: failed program was:" >&5 |
7699 cat conftest.$ac_ext >&5 | 7701 cat conftest.$ac_ext >&5 |
7755 fi | 7757 fi |
7756 fi | 7758 fi |
7757 | 7759 |
7758 if test "$with_xfs" = "yes" ; then | 7760 if test "$with_xfs" = "yes" ; then |
7759 echo "checking for XFontSet" 1>&6 | 7761 echo "checking for XFontSet" 1>&6 |
7760 echo "configure:7761: checking for XFontSet" >&5 | 7762 echo "configure:7763: checking for XFontSet" >&5 |
7761 | 7763 |
7762 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 | 7764 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 |
7763 echo "configure:7764: checking for XmbDrawString in -lX11" >&5 | 7765 echo "configure:7766: checking for XmbDrawString in -lX11" >&5 |
7764 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` | 7766 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` |
7765 | 7767 |
7766 xe_check_libs=" -lX11 " | 7768 xe_check_libs=" -lX11 " |
7767 cat > conftest.$ac_ext <<EOF | 7769 cat > conftest.$ac_ext <<EOF |
7768 #line 7769 "configure" | 7770 #line 7771 "configure" |
7769 #include "confdefs.h" | 7771 #include "confdefs.h" |
7770 /* Override any gcc2 internal prototype to avoid an error. */ | 7772 /* Override any gcc2 internal prototype to avoid an error. */ |
7771 /* We use char because int might match the return type of a gcc2 | 7773 /* We use char because int might match the return type of a gcc2 |
7772 builtin and then its argument prototype would still apply. */ | 7774 builtin and then its argument prototype would still apply. */ |
7773 char XmbDrawString(); | 7775 char XmbDrawString(); |
7774 | 7776 |
7775 int main() { | 7777 int main() { |
7776 XmbDrawString() | 7778 XmbDrawString() |
7777 ; return 0; } | 7779 ; return 0; } |
7778 EOF | 7780 EOF |
7779 if { (eval echo configure:7780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7781 if { (eval echo configure:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7780 rm -rf conftest* | 7782 rm -rf conftest* |
7781 eval "ac_cv_lib_$ac_lib_var=yes" | 7783 eval "ac_cv_lib_$ac_lib_var=yes" |
7782 else | 7784 else |
7783 echo "configure: failed program was:" >&5 | 7785 echo "configure: failed program was:" >&5 |
7784 cat conftest.$ac_ext >&5 | 7786 cat conftest.$ac_ext >&5 |
7814 fi | 7816 fi |
7815 fi | 7817 fi |
7816 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support | 7818 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support |
7817 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` | 7819 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` |
7818 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 | 7820 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 |
7819 echo "configure:7820: checking for wnn/jllib.h" >&5 | 7821 echo "configure:7822: checking for wnn/jllib.h" >&5 |
7820 | 7822 |
7821 cat > conftest.$ac_ext <<EOF | 7823 cat > conftest.$ac_ext <<EOF |
7822 #line 7823 "configure" | 7824 #line 7825 "configure" |
7823 #include "confdefs.h" | 7825 #include "confdefs.h" |
7824 #include <wnn/jllib.h> | 7826 #include <wnn/jllib.h> |
7825 EOF | 7827 EOF |
7826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7827 { (eval echo configure:7828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7829 { (eval echo configure:7830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7828 ac_err=`grep -v '^ *+' conftest.out` | 7830 ac_err=`grep -v '^ *+' conftest.out` |
7829 if test -z "$ac_err"; then | 7831 if test -z "$ac_err"; then |
7830 rm -rf conftest* | 7832 rm -rf conftest* |
7831 eval "ac_cv_header_$ac_safe=yes" | 7833 eval "ac_cv_header_$ac_safe=yes" |
7832 else | 7834 else |
7847 } | 7849 } |
7848 if test "$with_wnn" != "no"; then | 7850 if test "$with_wnn" != "no"; then |
7849 for ac_func in crypt | 7851 for ac_func in crypt |
7850 do | 7852 do |
7851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
7852 echo "configure:7853: checking for $ac_func" >&5 | 7854 echo "configure:7855: checking for $ac_func" >&5 |
7853 | 7855 |
7854 cat > conftest.$ac_ext <<EOF | 7856 cat > conftest.$ac_ext <<EOF |
7855 #line 7856 "configure" | 7857 #line 7858 "configure" |
7856 #include "confdefs.h" | 7858 #include "confdefs.h" |
7857 /* System header to define __stub macros and hopefully few prototypes, | 7859 /* System header to define __stub macros and hopefully few prototypes, |
7858 which can conflict with char $ac_func(); below. */ | 7860 which can conflict with char $ac_func(); below. */ |
7859 #include <assert.h> | 7861 #include <assert.h> |
7860 /* Override any gcc2 internal prototype to avoid an error. */ | 7862 /* Override any gcc2 internal prototype to avoid an error. */ |
7873 $ac_func(); | 7875 $ac_func(); |
7874 #endif | 7876 #endif |
7875 | 7877 |
7876 ; return 0; } | 7878 ; return 0; } |
7877 EOF | 7879 EOF |
7878 if { (eval echo configure:7879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7880 if { (eval echo configure:7881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7879 rm -rf conftest* | 7881 rm -rf conftest* |
7880 eval "ac_cv_func_$ac_func=yes" | 7882 eval "ac_cv_func_$ac_func=yes" |
7881 else | 7883 else |
7882 echo "configure: failed program was:" >&5 | 7884 echo "configure: failed program was:" >&5 |
7883 cat conftest.$ac_ext >&5 | 7885 cat conftest.$ac_ext >&5 |
7902 fi | 7904 fi |
7903 done | 7905 done |
7904 | 7906 |
7905 test "$ac_cv_func_crypt" != "yes" && { | 7907 test "$ac_cv_func_crypt" != "yes" && { |
7906 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 | 7908 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 |
7907 echo "configure:7908: checking for crypt in -lcrypt" >&5 | 7909 echo "configure:7910: checking for crypt in -lcrypt" >&5 |
7908 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` | 7910 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` |
7909 | 7911 |
7910 xe_check_libs=" -lcrypt " | 7912 xe_check_libs=" -lcrypt " |
7911 cat > conftest.$ac_ext <<EOF | 7913 cat > conftest.$ac_ext <<EOF |
7912 #line 7913 "configure" | 7914 #line 7915 "configure" |
7913 #include "confdefs.h" | 7915 #include "confdefs.h" |
7914 /* Override any gcc2 internal prototype to avoid an error. */ | 7916 /* Override any gcc2 internal prototype to avoid an error. */ |
7915 /* We use char because int might match the return type of a gcc2 | 7917 /* We use char because int might match the return type of a gcc2 |
7916 builtin and then its argument prototype would still apply. */ | 7918 builtin and then its argument prototype would still apply. */ |
7917 char crypt(); | 7919 char crypt(); |
7918 | 7920 |
7919 int main() { | 7921 int main() { |
7920 crypt() | 7922 crypt() |
7921 ; return 0; } | 7923 ; return 0; } |
7922 EOF | 7924 EOF |
7923 if { (eval echo configure:7924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7925 if { (eval echo configure:7926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7924 rm -rf conftest* | 7926 rm -rf conftest* |
7925 eval "ac_cv_lib_$ac_lib_var=yes" | 7927 eval "ac_cv_lib_$ac_lib_var=yes" |
7926 else | 7928 else |
7927 echo "configure: failed program was:" >&5 | 7929 echo "configure: failed program was:" >&5 |
7928 cat conftest.$ac_ext >&5 | 7930 cat conftest.$ac_ext >&5 |
7953 } | 7955 } |
7954 fi | 7956 fi |
7955 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then | 7957 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then |
7956 | 7958 |
7957 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 | 7959 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 |
7958 echo "configure:7959: checking for jl_dic_list_e in -lwnn" >&5 | 7960 echo "configure:7961: checking for jl_dic_list_e in -lwnn" >&5 |
7959 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` | 7961 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` |
7960 | 7962 |
7961 xe_check_libs=" -lwnn " | 7963 xe_check_libs=" -lwnn " |
7962 cat > conftest.$ac_ext <<EOF | 7964 cat > conftest.$ac_ext <<EOF |
7963 #line 7964 "configure" | 7965 #line 7966 "configure" |
7964 #include "confdefs.h" | 7966 #include "confdefs.h" |
7965 /* Override any gcc2 internal prototype to avoid an error. */ | 7967 /* Override any gcc2 internal prototype to avoid an error. */ |
7966 /* We use char because int might match the return type of a gcc2 | 7968 /* We use char because int might match the return type of a gcc2 |
7967 builtin and then its argument prototype would still apply. */ | 7969 builtin and then its argument prototype would still apply. */ |
7968 char jl_dic_list_e(); | 7970 char jl_dic_list_e(); |
7969 | 7971 |
7970 int main() { | 7972 int main() { |
7971 jl_dic_list_e() | 7973 jl_dic_list_e() |
7972 ; return 0; } | 7974 ; return 0; } |
7973 EOF | 7975 EOF |
7974 if { (eval echo configure:7975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7976 if { (eval echo configure:7977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7975 rm -rf conftest* | 7977 rm -rf conftest* |
7976 eval "ac_cv_lib_$ac_lib_var=yes" | 7978 eval "ac_cv_lib_$ac_lib_var=yes" |
7977 else | 7979 else |
7978 echo "configure: failed program was:" >&5 | 7980 echo "configure: failed program was:" >&5 |
7979 cat conftest.$ac_ext >&5 | 7981 cat conftest.$ac_ext >&5 |
7987 echo "$ac_t""yes" 1>&6 | 7989 echo "$ac_t""yes" 1>&6 |
7988 libwnn=wnn | 7990 libwnn=wnn |
7989 else | 7991 else |
7990 echo "$ac_t""no" 1>&6 | 7992 echo "$ac_t""no" 1>&6 |
7991 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 | 7993 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 |
7992 echo "configure:7993: checking for jl_dic_list_e in -lwnn4" >&5 | 7994 echo "configure:7995: checking for jl_dic_list_e in -lwnn4" >&5 |
7993 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` | 7995 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` |
7994 | 7996 |
7995 xe_check_libs=" -lwnn4 " | 7997 xe_check_libs=" -lwnn4 " |
7996 cat > conftest.$ac_ext <<EOF | 7998 cat > conftest.$ac_ext <<EOF |
7997 #line 7998 "configure" | 7999 #line 8000 "configure" |
7998 #include "confdefs.h" | 8000 #include "confdefs.h" |
7999 /* Override any gcc2 internal prototype to avoid an error. */ | 8001 /* Override any gcc2 internal prototype to avoid an error. */ |
8000 /* We use char because int might match the return type of a gcc2 | 8002 /* We use char because int might match the return type of a gcc2 |
8001 builtin and then its argument prototype would still apply. */ | 8003 builtin and then its argument prototype would still apply. */ |
8002 char jl_dic_list_e(); | 8004 char jl_dic_list_e(); |
8003 | 8005 |
8004 int main() { | 8006 int main() { |
8005 jl_dic_list_e() | 8007 jl_dic_list_e() |
8006 ; return 0; } | 8008 ; return 0; } |
8007 EOF | 8009 EOF |
8008 if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8010 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8009 rm -rf conftest* | 8011 rm -rf conftest* |
8010 eval "ac_cv_lib_$ac_lib_var=yes" | 8012 eval "ac_cv_lib_$ac_lib_var=yes" |
8011 else | 8013 else |
8012 echo "configure: failed program was:" >&5 | 8014 echo "configure: failed program was:" >&5 |
8013 cat conftest.$ac_ext >&5 | 8015 cat conftest.$ac_ext >&5 |
8021 echo "$ac_t""yes" 1>&6 | 8023 echo "$ac_t""yes" 1>&6 |
8022 libwnn=wnn4 | 8024 libwnn=wnn4 |
8023 else | 8025 else |
8024 echo "$ac_t""no" 1>&6 | 8026 echo "$ac_t""no" 1>&6 |
8025 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 | 8027 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 |
8026 echo "configure:8027: checking for jl_dic_list_e in -lwnn6" >&5 | 8028 echo "configure:8029: checking for jl_dic_list_e in -lwnn6" >&5 |
8027 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` | 8029 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` |
8028 | 8030 |
8029 xe_check_libs=" -lwnn6 " | 8031 xe_check_libs=" -lwnn6 " |
8030 cat > conftest.$ac_ext <<EOF | 8032 cat > conftest.$ac_ext <<EOF |
8031 #line 8032 "configure" | 8033 #line 8034 "configure" |
8032 #include "confdefs.h" | 8034 #include "confdefs.h" |
8033 /* Override any gcc2 internal prototype to avoid an error. */ | 8035 /* Override any gcc2 internal prototype to avoid an error. */ |
8034 /* We use char because int might match the return type of a gcc2 | 8036 /* We use char because int might match the return type of a gcc2 |
8035 builtin and then its argument prototype would still apply. */ | 8037 builtin and then its argument prototype would still apply. */ |
8036 char jl_dic_list_e(); | 8038 char jl_dic_list_e(); |
8037 | 8039 |
8038 int main() { | 8040 int main() { |
8039 jl_dic_list_e() | 8041 jl_dic_list_e() |
8040 ; return 0; } | 8042 ; return 0; } |
8041 EOF | 8043 EOF |
8042 if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8044 if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8043 rm -rf conftest* | 8045 rm -rf conftest* |
8044 eval "ac_cv_lib_$ac_lib_var=yes" | 8046 eval "ac_cv_lib_$ac_lib_var=yes" |
8045 else | 8047 else |
8046 echo "configure: failed program was:" >&5 | 8048 echo "configure: failed program was:" >&5 |
8047 cat conftest.$ac_ext >&5 | 8049 cat conftest.$ac_ext >&5 |
8055 echo "$ac_t""yes" 1>&6 | 8057 echo "$ac_t""yes" 1>&6 |
8056 libwnn=wnn6 | 8058 libwnn=wnn6 |
8057 else | 8059 else |
8058 echo "$ac_t""no" 1>&6 | 8060 echo "$ac_t""no" 1>&6 |
8059 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 | 8061 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 |
8060 echo "configure:8061: checking for dic_list_e in -lwnn6_fromsrc" >&5 | 8062 echo "configure:8063: checking for dic_list_e in -lwnn6_fromsrc" >&5 |
8061 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` | 8063 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` |
8062 | 8064 |
8063 xe_check_libs=" -lwnn6_fromsrc " | 8065 xe_check_libs=" -lwnn6_fromsrc " |
8064 cat > conftest.$ac_ext <<EOF | 8066 cat > conftest.$ac_ext <<EOF |
8065 #line 8066 "configure" | 8067 #line 8068 "configure" |
8066 #include "confdefs.h" | 8068 #include "confdefs.h" |
8067 /* Override any gcc2 internal prototype to avoid an error. */ | 8069 /* Override any gcc2 internal prototype to avoid an error. */ |
8068 /* We use char because int might match the return type of a gcc2 | 8070 /* We use char because int might match the return type of a gcc2 |
8069 builtin and then its argument prototype would still apply. */ | 8071 builtin and then its argument prototype would still apply. */ |
8070 char dic_list_e(); | 8072 char dic_list_e(); |
8071 | 8073 |
8072 int main() { | 8074 int main() { |
8073 dic_list_e() | 8075 dic_list_e() |
8074 ; return 0; } | 8076 ; return 0; } |
8075 EOF | 8077 EOF |
8076 if { (eval echo configure:8077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8078 if { (eval echo configure:8079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8077 rm -rf conftest* | 8079 rm -rf conftest* |
8078 eval "ac_cv_lib_$ac_lib_var=yes" | 8080 eval "ac_cv_lib_$ac_lib_var=yes" |
8079 else | 8081 else |
8080 echo "configure: failed program was:" >&5 | 8082 echo "configure: failed program was:" >&5 |
8081 cat conftest.$ac_ext >&5 | 8083 cat conftest.$ac_ext >&5 |
8119 echo " xemacs will be linked with \"mule-wnnfns.o\"" | 8121 echo " xemacs will be linked with \"mule-wnnfns.o\"" |
8120 fi | 8122 fi |
8121 if test "$with_wnn6" != "no"; then | 8123 if test "$with_wnn6" != "no"; then |
8122 | 8124 |
8123 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 | 8125 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 |
8124 echo "configure:8125: checking for jl_fi_dic_list in -l$libwnn" >&5 | 8126 echo "configure:8127: checking for jl_fi_dic_list in -l$libwnn" >&5 |
8125 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` | 8127 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` |
8126 | 8128 |
8127 xe_check_libs=" -l$libwnn " | 8129 xe_check_libs=" -l$libwnn " |
8128 cat > conftest.$ac_ext <<EOF | 8130 cat > conftest.$ac_ext <<EOF |
8129 #line 8130 "configure" | 8131 #line 8132 "configure" |
8130 #include "confdefs.h" | 8132 #include "confdefs.h" |
8131 /* Override any gcc2 internal prototype to avoid an error. */ | 8133 /* Override any gcc2 internal prototype to avoid an error. */ |
8132 /* We use char because int might match the return type of a gcc2 | 8134 /* We use char because int might match the return type of a gcc2 |
8133 builtin and then its argument prototype would still apply. */ | 8135 builtin and then its argument prototype would still apply. */ |
8134 char jl_fi_dic_list(); | 8136 char jl_fi_dic_list(); |
8135 | 8137 |
8136 int main() { | 8138 int main() { |
8137 jl_fi_dic_list() | 8139 jl_fi_dic_list() |
8138 ; return 0; } | 8140 ; return 0; } |
8139 EOF | 8141 EOF |
8140 if { (eval echo configure:8141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8142 if { (eval echo configure:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8141 rm -rf conftest* | 8143 rm -rf conftest* |
8142 eval "ac_cv_lib_$ac_lib_var=yes" | 8144 eval "ac_cv_lib_$ac_lib_var=yes" |
8143 else | 8145 else |
8144 echo "configure: failed program was:" >&5 | 8146 echo "configure: failed program was:" >&5 |
8145 cat conftest.$ac_ext >&5 | 8147 cat conftest.$ac_ext >&5 |
8170 | 8172 |
8171 canna_includes_found=no | 8173 canna_includes_found=no |
8172 if test "$with_canna" != "no"; then | 8174 if test "$with_canna" != "no"; then |
8173 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` | 8175 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` |
8174 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 | 8176 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 |
8175 echo "configure:8176: checking for canna/jrkanji.h" >&5 | 8177 echo "configure:8178: checking for canna/jrkanji.h" >&5 |
8176 | 8178 |
8177 cat > conftest.$ac_ext <<EOF | 8179 cat > conftest.$ac_ext <<EOF |
8178 #line 8179 "configure" | 8180 #line 8181 "configure" |
8179 #include "confdefs.h" | 8181 #include "confdefs.h" |
8180 #include <canna/jrkanji.h> | 8182 #include <canna/jrkanji.h> |
8181 EOF | 8183 EOF |
8182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8183 { (eval echo configure:8184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8185 { (eval echo configure:8186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8184 ac_err=`grep -v '^ *+' conftest.out` | 8186 ac_err=`grep -v '^ *+' conftest.out` |
8185 if test -z "$ac_err"; then | 8187 if test -z "$ac_err"; then |
8186 rm -rf conftest* | 8188 rm -rf conftest* |
8187 eval "ac_cv_header_$ac_safe=yes" | 8189 eval "ac_cv_header_$ac_safe=yes" |
8188 else | 8190 else |
8205 -d "/usr/local/canna/include"; then | 8207 -d "/usr/local/canna/include"; then |
8206 save_c_switch_site="$c_switch_site" | 8208 save_c_switch_site="$c_switch_site" |
8207 c_switch_site="$c_switch_site -I/usr/local/canna/include" | 8209 c_switch_site="$c_switch_site -I/usr/local/canna/include" |
8208 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` | 8210 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` |
8209 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 | 8211 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 |
8210 echo "configure:8211: checking for canna/jrkanji.h" >&5 | 8212 echo "configure:8213: checking for canna/jrkanji.h" >&5 |
8211 | 8213 |
8212 cat > conftest.$ac_ext <<EOF | 8214 cat > conftest.$ac_ext <<EOF |
8213 #line 8214 "configure" | 8215 #line 8216 "configure" |
8214 #include "confdefs.h" | 8216 #include "confdefs.h" |
8215 #include <canna/jrkanji.h> | 8217 #include <canna/jrkanji.h> |
8216 EOF | 8218 EOF |
8217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8218 { (eval echo configure:8219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8220 { (eval echo configure:8221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8219 ac_err=`grep -v '^ *+' conftest.out` | 8221 ac_err=`grep -v '^ *+' conftest.out` |
8220 if test -z "$ac_err"; then | 8222 if test -z "$ac_err"; then |
8221 rm -rf conftest* | 8223 rm -rf conftest* |
8222 eval "ac_cv_header_$ac_safe=yes" | 8224 eval "ac_cv_header_$ac_safe=yes" |
8223 else | 8225 else |
8241 fi | 8243 fi |
8242 fi | 8244 fi |
8243 | 8245 |
8244 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` | 8246 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` |
8245 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 | 8247 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 |
8246 echo "configure:8247: checking for canna/RK.h" >&5 | 8248 echo "configure:8249: checking for canna/RK.h" >&5 |
8247 | 8249 |
8248 cat > conftest.$ac_ext <<EOF | 8250 cat > conftest.$ac_ext <<EOF |
8249 #line 8250 "configure" | 8251 #line 8252 "configure" |
8250 #include "confdefs.h" | 8252 #include "confdefs.h" |
8251 #include <canna/RK.h> | 8253 #include <canna/RK.h> |
8252 EOF | 8254 EOF |
8253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8254 { (eval echo configure:8255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8256 { (eval echo configure:8257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8255 ac_err=`grep -v '^ *+' conftest.out` | 8257 ac_err=`grep -v '^ *+' conftest.out` |
8256 if test -z "$ac_err"; then | 8258 if test -z "$ac_err"; then |
8257 rm -rf conftest* | 8259 rm -rf conftest* |
8258 eval "ac_cv_header_$ac_safe=yes" | 8260 eval "ac_cv_header_$ac_safe=yes" |
8259 else | 8261 else |
8272 with_canna=no | 8274 with_canna=no |
8273 fi | 8275 fi |
8274 } | 8276 } |
8275 test -z "$with_canna" && { | 8277 test -z "$with_canna" && { |
8276 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 | 8278 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 |
8277 echo "configure:8278: checking for RkBgnBun in -lRKC" >&5 | 8279 echo "configure:8280: checking for RkBgnBun in -lRKC" >&5 |
8278 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` | 8280 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` |
8279 | 8281 |
8280 xe_check_libs=" -lRKC " | 8282 xe_check_libs=" -lRKC " |
8281 cat > conftest.$ac_ext <<EOF | 8283 cat > conftest.$ac_ext <<EOF |
8282 #line 8283 "configure" | 8284 #line 8285 "configure" |
8283 #include "confdefs.h" | 8285 #include "confdefs.h" |
8284 /* Override any gcc2 internal prototype to avoid an error. */ | 8286 /* Override any gcc2 internal prototype to avoid an error. */ |
8285 /* We use char because int might match the return type of a gcc2 | 8287 /* We use char because int might match the return type of a gcc2 |
8286 builtin and then its argument prototype would still apply. */ | 8288 builtin and then its argument prototype would still apply. */ |
8287 char RkBgnBun(); | 8289 char RkBgnBun(); |
8288 | 8290 |
8289 int main() { | 8291 int main() { |
8290 RkBgnBun() | 8292 RkBgnBun() |
8291 ; return 0; } | 8293 ; return 0; } |
8292 EOF | 8294 EOF |
8293 if { (eval echo configure:8294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8294 rm -rf conftest* | 8296 rm -rf conftest* |
8295 eval "ac_cv_lib_$ac_lib_var=yes" | 8297 eval "ac_cv_lib_$ac_lib_var=yes" |
8296 else | 8298 else |
8297 echo "configure: failed program was:" >&5 | 8299 echo "configure: failed program was:" >&5 |
8298 cat conftest.$ac_ext >&5 | 8300 cat conftest.$ac_ext >&5 |
8311 fi | 8313 fi |
8312 | 8314 |
8313 } | 8315 } |
8314 test -z "$with_canna" && { | 8316 test -z "$with_canna" && { |
8315 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 | 8317 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 |
8316 echo "configure:8317: checking for jrKanjiControl in -lcanna" >&5 | 8318 echo "configure:8319: checking for jrKanjiControl in -lcanna" >&5 |
8317 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` | 8319 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` |
8318 | 8320 |
8319 xe_check_libs=" -lcanna " | 8321 xe_check_libs=" -lcanna " |
8320 cat > conftest.$ac_ext <<EOF | 8322 cat > conftest.$ac_ext <<EOF |
8321 #line 8322 "configure" | 8323 #line 8324 "configure" |
8322 #include "confdefs.h" | 8324 #include "confdefs.h" |
8323 /* Override any gcc2 internal prototype to avoid an error. */ | 8325 /* Override any gcc2 internal prototype to avoid an error. */ |
8324 /* We use char because int might match the return type of a gcc2 | 8326 /* We use char because int might match the return type of a gcc2 |
8325 builtin and then its argument prototype would still apply. */ | 8327 builtin and then its argument prototype would still apply. */ |
8326 char jrKanjiControl(); | 8328 char jrKanjiControl(); |
8327 | 8329 |
8328 int main() { | 8330 int main() { |
8329 jrKanjiControl() | 8331 jrKanjiControl() |
8330 ; return 0; } | 8332 ; return 0; } |
8331 EOF | 8333 EOF |
8332 if { (eval echo configure:8333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8334 if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8333 rm -rf conftest* | 8335 rm -rf conftest* |
8334 eval "ac_cv_lib_$ac_lib_var=yes" | 8336 eval "ac_cv_lib_$ac_lib_var=yes" |
8335 else | 8337 else |
8336 echo "configure: failed program was:" >&5 | 8338 echo "configure: failed program was:" >&5 |
8337 cat conftest.$ac_ext >&5 | 8339 cat conftest.$ac_ext >&5 |
8376 | 8378 |
8377 if test "$need_motif" = "yes" ; then | 8379 if test "$need_motif" = "yes" ; then |
8378 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi | 8380 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi |
8379 | 8381 |
8380 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 | 8382 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 |
8381 echo "configure:8382: checking for layout_object_getvalue in -li18n" >&5 | 8383 echo "configure:8384: checking for layout_object_getvalue in -li18n" >&5 |
8382 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` | 8384 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` |
8383 | 8385 |
8384 xe_check_libs=" -li18n " | 8386 xe_check_libs=" -li18n " |
8385 cat > conftest.$ac_ext <<EOF | 8387 cat > conftest.$ac_ext <<EOF |
8386 #line 8387 "configure" | 8388 #line 8389 "configure" |
8387 #include "confdefs.h" | 8389 #include "confdefs.h" |
8388 /* Override any gcc2 internal prototype to avoid an error. */ | 8390 /* Override any gcc2 internal prototype to avoid an error. */ |
8389 /* We use char because int might match the return type of a gcc2 | 8391 /* We use char because int might match the return type of a gcc2 |
8390 builtin and then its argument prototype would still apply. */ | 8392 builtin and then its argument prototype would still apply. */ |
8391 char layout_object_getvalue(); | 8393 char layout_object_getvalue(); |
8392 | 8394 |
8393 int main() { | 8395 int main() { |
8394 layout_object_getvalue() | 8396 layout_object_getvalue() |
8395 ; return 0; } | 8397 ; return 0; } |
8396 EOF | 8398 EOF |
8397 if { (eval echo configure:8398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8399 if { (eval echo configure:8400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8398 rm -rf conftest* | 8400 rm -rf conftest* |
8399 eval "ac_cv_lib_$ac_lib_var=yes" | 8401 eval "ac_cv_lib_$ac_lib_var=yes" |
8400 else | 8402 else |
8401 echo "configure: failed program was:" >&5 | 8403 echo "configure: failed program was:" >&5 |
8402 cat conftest.$ac_ext >&5 | 8404 cat conftest.$ac_ext >&5 |
8478 fi | 8480 fi |
8479 | 8481 |
8480 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf | 8482 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf |
8481 do | 8483 do |
8482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 8484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8483 echo "configure:8484: checking for $ac_func" >&5 | 8485 echo "configure:8486: checking for $ac_func" >&5 |
8484 | 8486 |
8485 cat > conftest.$ac_ext <<EOF | 8487 cat > conftest.$ac_ext <<EOF |
8486 #line 8487 "configure" | 8488 #line 8489 "configure" |
8487 #include "confdefs.h" | 8489 #include "confdefs.h" |
8488 /* System header to define __stub macros and hopefully few prototypes, | 8490 /* System header to define __stub macros and hopefully few prototypes, |
8489 which can conflict with char $ac_func(); below. */ | 8491 which can conflict with char $ac_func(); below. */ |
8490 #include <assert.h> | 8492 #include <assert.h> |
8491 /* Override any gcc2 internal prototype to avoid an error. */ | 8493 /* Override any gcc2 internal prototype to avoid an error. */ |
8504 $ac_func(); | 8506 $ac_func(); |
8505 #endif | 8507 #endif |
8506 | 8508 |
8507 ; return 0; } | 8509 ; return 0; } |
8508 EOF | 8510 EOF |
8509 if { (eval echo configure:8510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8511 if { (eval echo configure:8512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8510 rm -rf conftest* | 8512 rm -rf conftest* |
8511 eval "ac_cv_func_$ac_func=yes" | 8513 eval "ac_cv_func_$ac_func=yes" |
8512 else | 8514 else |
8513 echo "configure: failed program was:" >&5 | 8515 echo "configure: failed program was:" >&5 |
8514 cat conftest.$ac_ext >&5 | 8516 cat conftest.$ac_ext >&5 |
8545 echo " xemacs will be linked with \"realpath.o\"" | 8547 echo " xemacs will be linked with \"realpath.o\"" |
8546 fi ;; | 8548 fi ;; |
8547 * ) for ac_func in realpath | 8549 * ) for ac_func in realpath |
8548 do | 8550 do |
8549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 8551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8550 echo "configure:8551: checking for $ac_func" >&5 | 8552 echo "configure:8553: checking for $ac_func" >&5 |
8551 | 8553 |
8552 cat > conftest.$ac_ext <<EOF | 8554 cat > conftest.$ac_ext <<EOF |
8553 #line 8554 "configure" | 8555 #line 8556 "configure" |
8554 #include "confdefs.h" | 8556 #include "confdefs.h" |
8555 /* System header to define __stub macros and hopefully few prototypes, | 8557 /* System header to define __stub macros and hopefully few prototypes, |
8556 which can conflict with char $ac_func(); below. */ | 8558 which can conflict with char $ac_func(); below. */ |
8557 #include <assert.h> | 8559 #include <assert.h> |
8558 /* Override any gcc2 internal prototype to avoid an error. */ | 8560 /* Override any gcc2 internal prototype to avoid an error. */ |
8571 $ac_func(); | 8573 $ac_func(); |
8572 #endif | 8574 #endif |
8573 | 8575 |
8574 ; return 0; } | 8576 ; return 0; } |
8575 EOF | 8577 EOF |
8576 if { (eval echo configure:8577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8578 if { (eval echo configure:8579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8577 rm -rf conftest* | 8579 rm -rf conftest* |
8578 eval "ac_cv_func_$ac_func=yes" | 8580 eval "ac_cv_func_$ac_func=yes" |
8579 else | 8581 else |
8580 echo "configure: failed program was:" >&5 | 8582 echo "configure: failed program was:" >&5 |
8581 cat conftest.$ac_ext >&5 | 8583 cat conftest.$ac_ext >&5 |
8605 fi ;; | 8607 fi ;; |
8606 esac ;; | 8608 esac ;; |
8607 esac | 8609 esac |
8608 | 8610 |
8609 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 8611 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
8610 echo "configure:8611: checking whether netdb declares h_errno" >&5 | 8612 echo "configure:8613: checking whether netdb declares h_errno" >&5 |
8611 cat > conftest.$ac_ext <<EOF | 8613 cat > conftest.$ac_ext <<EOF |
8612 #line 8613 "configure" | 8614 #line 8615 "configure" |
8613 #include "confdefs.h" | 8615 #include "confdefs.h" |
8614 #include <netdb.h> | 8616 #include <netdb.h> |
8615 int main() { | 8617 int main() { |
8616 return h_errno; | 8618 return h_errno; |
8617 ; return 0; } | 8619 ; return 0; } |
8618 EOF | 8620 EOF |
8619 if { (eval echo configure:8620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8621 if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8620 rm -rf conftest* | 8622 rm -rf conftest* |
8621 echo "$ac_t""yes" 1>&6 | 8623 echo "$ac_t""yes" 1>&6 |
8622 { test "$extra_verbose" = "yes" && cat << \EOF | 8624 { test "$extra_verbose" = "yes" && cat << \EOF |
8623 Defining HAVE_H_ERRNO | 8625 Defining HAVE_H_ERRNO |
8624 EOF | 8626 EOF |
8634 echo "$ac_t""no" 1>&6 | 8636 echo "$ac_t""no" 1>&6 |
8635 fi | 8637 fi |
8636 rm -f conftest* | 8638 rm -f conftest* |
8637 | 8639 |
8638 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 | 8640 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 |
8639 echo "configure:8640: checking for sigsetjmp" >&5 | 8641 echo "configure:8642: checking for sigsetjmp" >&5 |
8640 cat > conftest.$ac_ext <<EOF | 8642 cat > conftest.$ac_ext <<EOF |
8641 #line 8642 "configure" | 8643 #line 8644 "configure" |
8642 #include "confdefs.h" | 8644 #include "confdefs.h" |
8643 #include <setjmp.h> | 8645 #include <setjmp.h> |
8644 int main() { | 8646 int main() { |
8645 sigjmp_buf bar; sigsetjmp (bar, 0); | 8647 sigjmp_buf bar; sigsetjmp (bar, 0); |
8646 ; return 0; } | 8648 ; return 0; } |
8647 EOF | 8649 EOF |
8648 if { (eval echo configure:8649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8650 if { (eval echo configure:8651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8649 rm -rf conftest* | 8651 rm -rf conftest* |
8650 echo "$ac_t""yes" 1>&6 | 8652 echo "$ac_t""yes" 1>&6 |
8651 { test "$extra_verbose" = "yes" && cat << \EOF | 8653 { test "$extra_verbose" = "yes" && cat << \EOF |
8652 Defining HAVE_SIGSETJMP | 8654 Defining HAVE_SIGSETJMP |
8653 EOF | 8655 EOF |
8663 echo "$ac_t""no" 1>&6 | 8665 echo "$ac_t""no" 1>&6 |
8664 fi | 8666 fi |
8665 rm -f conftest* | 8667 rm -f conftest* |
8666 | 8668 |
8667 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 8669 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
8668 echo "configure:8669: checking whether localtime caches TZ" >&5 | 8670 echo "configure:8671: checking whether localtime caches TZ" >&5 |
8669 | 8671 |
8670 if test "$ac_cv_func_tzset" = "yes"; then | 8672 if test "$ac_cv_func_tzset" = "yes"; then |
8671 cat > conftest.$ac_ext <<EOF | 8673 cat > conftest.$ac_ext <<EOF |
8672 #line 8673 "configure" | 8674 #line 8675 "configure" |
8673 #include "confdefs.h" | 8675 #include "confdefs.h" |
8674 #include <time.h> | 8676 #include <time.h> |
8675 #if STDC_HEADERS | 8677 #if STDC_HEADERS |
8676 # include <stdlib.h> | 8678 # include <stdlib.h> |
8677 #endif | 8679 #endif |
8702 if (localtime (&now)->tm_hour != hour_unset) | 8704 if (localtime (&now)->tm_hour != hour_unset) |
8703 exit (1); | 8705 exit (1); |
8704 exit (0); | 8706 exit (0); |
8705 } | 8707 } |
8706 EOF | 8708 EOF |
8707 if { (eval echo configure:8708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 8709 if { (eval echo configure:8710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
8708 then | 8710 then |
8709 emacs_cv_localtime_cache=no | 8711 emacs_cv_localtime_cache=no |
8710 else | 8712 else |
8711 conftest_rc="$?" | 8713 conftest_rc="$?" |
8712 echo "configure: failed program was:" >&5 | 8714 echo "configure: failed program was:" >&5 |
8732 | 8734 |
8733 fi | 8735 fi |
8734 | 8736 |
8735 if test "$HAVE_TIMEVAL" = "yes"; then | 8737 if test "$HAVE_TIMEVAL" = "yes"; then |
8736 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 | 8738 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 |
8737 echo "configure:8738: checking whether gettimeofday accepts one or two arguments" >&5 | 8739 echo "configure:8740: checking whether gettimeofday accepts one or two arguments" >&5 |
8738 cat > conftest.$ac_ext <<EOF | 8740 cat > conftest.$ac_ext <<EOF |
8739 #line 8740 "configure" | 8741 #line 8742 "configure" |
8740 #include "confdefs.h" | 8742 #include "confdefs.h" |
8741 | 8743 |
8742 #ifdef TIME_WITH_SYS_TIME | 8744 #ifdef TIME_WITH_SYS_TIME |
8743 #include <sys/time.h> | 8745 #include <sys/time.h> |
8744 #include <time.h> | 8746 #include <time.h> |
8756 struct timezone dummy; | 8758 struct timezone dummy; |
8757 gettimeofday (&time, &dummy); | 8759 gettimeofday (&time, &dummy); |
8758 | 8760 |
8759 ; return 0; } | 8761 ; return 0; } |
8760 EOF | 8762 EOF |
8761 if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8763 if { (eval echo configure:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8762 rm -rf conftest* | 8764 rm -rf conftest* |
8763 echo "$ac_t""two" 1>&6 | 8765 echo "$ac_t""two" 1>&6 |
8764 else | 8766 else |
8765 echo "configure: failed program was:" >&5 | 8767 echo "configure: failed program was:" >&5 |
8766 cat conftest.$ac_ext >&5 | 8768 cat conftest.$ac_ext >&5 |
8778 rm -f conftest* | 8780 rm -f conftest* |
8779 fi | 8781 fi |
8780 | 8782 |
8781 | 8783 |
8782 echo $ac_n "checking for inline""... $ac_c" 1>&6 | 8784 echo $ac_n "checking for inline""... $ac_c" 1>&6 |
8783 echo "configure:8784: checking for inline" >&5 | 8785 echo "configure:8786: checking for inline" >&5 |
8784 | 8786 |
8785 ac_cv_c_inline=no | 8787 ac_cv_c_inline=no |
8786 for ac_kw in inline __inline__ __inline; do | 8788 for ac_kw in inline __inline__ __inline; do |
8787 cat > conftest.$ac_ext <<EOF | 8789 cat > conftest.$ac_ext <<EOF |
8788 #line 8789 "configure" | 8790 #line 8791 "configure" |
8789 #include "confdefs.h" | 8791 #include "confdefs.h" |
8790 | 8792 |
8791 int main() { | 8793 int main() { |
8792 } $ac_kw foo() { | 8794 } $ac_kw foo() { |
8793 ; return 0; } | 8795 ; return 0; } |
8794 EOF | 8796 EOF |
8795 if { (eval echo configure:8796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8797 if { (eval echo configure:8798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8796 rm -rf conftest* | 8798 rm -rf conftest* |
8797 ac_cv_c_inline=$ac_kw; break | 8799 ac_cv_c_inline=$ac_kw; break |
8798 else | 8800 else |
8799 echo "configure: failed program was:" >&5 | 8801 echo "configure: failed program was:" >&5 |
8800 cat conftest.$ac_ext >&5 | 8802 cat conftest.$ac_ext >&5 |
8840 | 8842 |
8841 | 8843 |
8842 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 8844 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
8843 # for constant arguments. Useless! | 8845 # for constant arguments. Useless! |
8844 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 8846 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
8845 echo "configure:8846: checking for working alloca.h" >&5 | 8847 echo "configure:8848: checking for working alloca.h" >&5 |
8846 | 8848 |
8847 cat > conftest.$ac_ext <<EOF | 8849 cat > conftest.$ac_ext <<EOF |
8848 #line 8849 "configure" | 8850 #line 8851 "configure" |
8849 #include "confdefs.h" | 8851 #include "confdefs.h" |
8850 #include <alloca.h> | 8852 #include <alloca.h> |
8851 int main() { | 8853 int main() { |
8852 char *p = alloca(2 * sizeof(int)); | 8854 char *p = alloca(2 * sizeof(int)); |
8853 ; return 0; } | 8855 ; return 0; } |
8854 EOF | 8856 EOF |
8855 if { (eval echo configure:8856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8857 if { (eval echo configure:8858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8856 rm -rf conftest* | 8858 rm -rf conftest* |
8857 ac_cv_header_alloca_h=yes | 8859 ac_cv_header_alloca_h=yes |
8858 else | 8860 else |
8859 echo "configure: failed program was:" >&5 | 8861 echo "configure: failed program was:" >&5 |
8860 cat conftest.$ac_ext >&5 | 8862 cat conftest.$ac_ext >&5 |
8874 } | 8876 } |
8875 | 8877 |
8876 fi | 8878 fi |
8877 | 8879 |
8878 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 8880 echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
8879 echo "configure:8880: checking for alloca" >&5 | 8881 echo "configure:8882: checking for alloca" >&5 |
8880 | 8882 |
8881 cat > conftest.$ac_ext <<EOF | 8883 cat > conftest.$ac_ext <<EOF |
8882 #line 8883 "configure" | 8884 #line 8885 "configure" |
8883 #include "confdefs.h" | 8885 #include "confdefs.h" |
8884 | 8886 |
8885 #ifdef __GNUC__ | 8887 #ifdef __GNUC__ |
8886 # define alloca __builtin_alloca | 8888 # define alloca __builtin_alloca |
8887 #else | 8889 #else |
8900 | 8902 |
8901 int main() { | 8903 int main() { |
8902 char *p = (char *) alloca(1); | 8904 char *p = (char *) alloca(1); |
8903 ; return 0; } | 8905 ; return 0; } |
8904 EOF | 8906 EOF |
8905 if { (eval echo configure:8906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8907 if { (eval echo configure:8908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8906 rm -rf conftest* | 8908 rm -rf conftest* |
8907 ac_cv_func_alloca_works=yes | 8909 ac_cv_func_alloca_works=yes |
8908 else | 8910 else |
8909 echo "configure: failed program was:" >&5 | 8911 echo "configure: failed program was:" >&5 |
8910 cat conftest.$ac_ext >&5 | 8912 cat conftest.$ac_ext >&5 |
8939 EOF | 8941 EOF |
8940 } | 8942 } |
8941 | 8943 |
8942 | 8944 |
8943 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 8945 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
8944 echo "configure:8945: checking whether alloca needs Cray hooks" >&5 | 8946 echo "configure:8947: checking whether alloca needs Cray hooks" >&5 |
8945 | 8947 |
8946 cat > conftest.$ac_ext <<EOF | 8948 cat > conftest.$ac_ext <<EOF |
8947 #line 8948 "configure" | 8949 #line 8950 "configure" |
8948 #include "confdefs.h" | 8950 #include "confdefs.h" |
8949 #if defined(CRAY) && ! defined(CRAY2) | 8951 #if defined(CRAY) && ! defined(CRAY2) |
8950 webecray | 8952 webecray |
8951 #else | 8953 #else |
8952 wenotbecray | 8954 wenotbecray |
8966 | 8968 |
8967 echo "$ac_t""$ac_cv_os_cray" 1>&6 | 8969 echo "$ac_t""$ac_cv_os_cray" 1>&6 |
8968 if test $ac_cv_os_cray = yes; then | 8970 if test $ac_cv_os_cray = yes; then |
8969 for ac_func in _getb67 GETB67 getb67; do | 8971 for ac_func in _getb67 GETB67 getb67; do |
8970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 8972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8971 echo "configure:8972: checking for $ac_func" >&5 | 8973 echo "configure:8974: checking for $ac_func" >&5 |
8972 | 8974 |
8973 cat > conftest.$ac_ext <<EOF | 8975 cat > conftest.$ac_ext <<EOF |
8974 #line 8975 "configure" | 8976 #line 8977 "configure" |
8975 #include "confdefs.h" | 8977 #include "confdefs.h" |
8976 /* System header to define __stub macros and hopefully few prototypes, | 8978 /* System header to define __stub macros and hopefully few prototypes, |
8977 which can conflict with char $ac_func(); below. */ | 8979 which can conflict with char $ac_func(); below. */ |
8978 #include <assert.h> | 8980 #include <assert.h> |
8979 /* Override any gcc2 internal prototype to avoid an error. */ | 8981 /* Override any gcc2 internal prototype to avoid an error. */ |
8992 $ac_func(); | 8994 $ac_func(); |
8993 #endif | 8995 #endif |
8994 | 8996 |
8995 ; return 0; } | 8997 ; return 0; } |
8996 EOF | 8998 EOF |
8997 if { (eval echo configure:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8999 if { (eval echo configure:9000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
8998 rm -rf conftest* | 9000 rm -rf conftest* |
8999 eval "ac_cv_func_$ac_func=yes" | 9001 eval "ac_cv_func_$ac_func=yes" |
9000 else | 9002 else |
9001 echo "configure: failed program was:" >&5 | 9003 echo "configure: failed program was:" >&5 |
9002 cat conftest.$ac_ext >&5 | 9004 cat conftest.$ac_ext >&5 |
9022 | 9024 |
9023 done | 9025 done |
9024 fi | 9026 fi |
9025 | 9027 |
9026 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 9028 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
9027 echo "configure:9028: checking stack direction for C alloca" >&5 | 9029 echo "configure:9030: checking stack direction for C alloca" >&5 |
9028 | 9030 |
9029 cat > conftest.$ac_ext <<EOF | 9031 cat > conftest.$ac_ext <<EOF |
9030 #line 9031 "configure" | 9032 #line 9033 "configure" |
9031 #include "confdefs.h" | 9033 #include "confdefs.h" |
9032 find_stack_direction () | 9034 find_stack_direction () |
9033 { | 9035 { |
9034 static char *addr = 0; | 9036 static char *addr = 0; |
9035 auto char dummy; | 9037 auto char dummy; |
9044 main () | 9046 main () |
9045 { | 9047 { |
9046 exit (find_stack_direction() < 0); | 9048 exit (find_stack_direction() < 0); |
9047 } | 9049 } |
9048 EOF | 9050 EOF |
9049 if { (eval echo configure:9050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 9051 if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
9050 then | 9052 then |
9051 ac_cv_c_stack_direction=1 | 9053 ac_cv_c_stack_direction=1 |
9052 else | 9054 else |
9053 conftest_rc="$?" | 9055 conftest_rc="$?" |
9054 echo "configure: failed program was:" >&5 | 9056 echo "configure: failed program was:" >&5 |
9073 echo " xemacs will be linked with \"$ALLOCA\"" | 9075 echo " xemacs will be linked with \"$ALLOCA\"" |
9074 fi | 9076 fi |
9075 | 9077 |
9076 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 9078 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
9077 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 9079 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
9078 echo "configure:9079: checking for vfork.h" >&5 | 9080 echo "configure:9081: checking for vfork.h" >&5 |
9079 | 9081 |
9080 cat > conftest.$ac_ext <<EOF | 9082 cat > conftest.$ac_ext <<EOF |
9081 #line 9082 "configure" | 9083 #line 9084 "configure" |
9082 #include "confdefs.h" | 9084 #include "confdefs.h" |
9083 #include <vfork.h> | 9085 #include <vfork.h> |
9084 EOF | 9086 EOF |
9085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
9086 { (eval echo configure:9087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9088 { (eval echo configure:9089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9087 ac_err=`grep -v '^ *+' conftest.out` | 9089 ac_err=`grep -v '^ *+' conftest.out` |
9088 if test -z "$ac_err"; then | 9090 if test -z "$ac_err"; then |
9089 rm -rf conftest* | 9091 rm -rf conftest* |
9090 eval "ac_cv_header_$ac_safe=yes" | 9092 eval "ac_cv_header_$ac_safe=yes" |
9091 else | 9093 else |
9109 else | 9111 else |
9110 echo "$ac_t""no" 1>&6 | 9112 echo "$ac_t""no" 1>&6 |
9111 fi | 9113 fi |
9112 | 9114 |
9113 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 9115 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
9114 echo "configure:9115: checking for working vfork" >&5 | 9116 echo "configure:9117: checking for working vfork" >&5 |
9115 | 9117 |
9116 cat > conftest.$ac_ext <<EOF | 9118 cat > conftest.$ac_ext <<EOF |
9117 #line 9118 "configure" | 9119 #line 9120 "configure" |
9118 #include "confdefs.h" | 9120 #include "confdefs.h" |
9119 /* Thanks to Paul Eggert for this test. */ | 9121 /* Thanks to Paul Eggert for this test. */ |
9120 #include <stdio.h> | 9122 #include <stdio.h> |
9121 #include <sys/types.h> | 9123 #include <sys/types.h> |
9122 #include <sys/stat.h> | 9124 #include <sys/stat.h> |
9207 || fstat(fileno(stdout), &st) != 0 | 9209 || fstat(fileno(stdout), &st) != 0 |
9208 ); | 9210 ); |
9209 } | 9211 } |
9210 } | 9212 } |
9211 EOF | 9213 EOF |
9212 if { (eval echo configure:9213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 9214 if { (eval echo configure:9215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
9213 then | 9215 then |
9214 ac_cv_func_vfork_works=yes | 9216 ac_cv_func_vfork_works=yes |
9215 else | 9217 else |
9216 conftest_rc="$?" | 9218 conftest_rc="$?" |
9217 echo "configure: failed program was:" >&5 | 9219 echo "configure: failed program was:" >&5 |
9233 | 9235 |
9234 fi | 9236 fi |
9235 | 9237 |
9236 | 9238 |
9237 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 | 9239 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 |
9238 echo "configure:9239: checking for working strcoll" >&5 | 9240 echo "configure:9241: checking for working strcoll" >&5 |
9239 | 9241 |
9240 cat > conftest.$ac_ext <<EOF | 9242 cat > conftest.$ac_ext <<EOF |
9241 #line 9242 "configure" | 9243 #line 9244 "configure" |
9242 #include "confdefs.h" | 9244 #include "confdefs.h" |
9243 #include <string.h> | 9245 #include <string.h> |
9244 main () | 9246 main () |
9245 { | 9247 { |
9246 exit (strcoll ("abc", "def") >= 0 || | 9248 exit (strcoll ("abc", "def") >= 0 || |
9247 strcoll ("ABC", "DEF") >= 0 || | 9249 strcoll ("ABC", "DEF") >= 0 || |
9248 strcoll ("123", "456") >= 0); | 9250 strcoll ("123", "456") >= 0); |
9249 } | 9251 } |
9250 EOF | 9252 EOF |
9251 if { (eval echo configure:9252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 9253 if { (eval echo configure:9254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
9252 then | 9254 then |
9253 ac_cv_func_strcoll_works=yes | 9255 ac_cv_func_strcoll_works=yes |
9254 else | 9256 else |
9255 conftest_rc="$?" | 9257 conftest_rc="$?" |
9256 echo "configure: failed program was:" >&5 | 9258 echo "configure: failed program was:" >&5 |
9274 | 9276 |
9275 | 9277 |
9276 for ac_func in getpgrp | 9278 for ac_func in getpgrp |
9277 do | 9279 do |
9278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 9280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9279 echo "configure:9280: checking for $ac_func" >&5 | 9281 echo "configure:9282: checking for $ac_func" >&5 |
9280 | 9282 |
9281 cat > conftest.$ac_ext <<EOF | 9283 cat > conftest.$ac_ext <<EOF |
9282 #line 9283 "configure" | 9284 #line 9285 "configure" |
9283 #include "confdefs.h" | 9285 #include "confdefs.h" |
9284 /* System header to define __stub macros and hopefully few prototypes, | 9286 /* System header to define __stub macros and hopefully few prototypes, |
9285 which can conflict with char $ac_func(); below. */ | 9287 which can conflict with char $ac_func(); below. */ |
9286 #include <assert.h> | 9288 #include <assert.h> |
9287 /* Override any gcc2 internal prototype to avoid an error. */ | 9289 /* Override any gcc2 internal prototype to avoid an error. */ |
9300 $ac_func(); | 9302 $ac_func(); |
9301 #endif | 9303 #endif |
9302 | 9304 |
9303 ; return 0; } | 9305 ; return 0; } |
9304 EOF | 9306 EOF |
9305 if { (eval echo configure:9306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 9307 if { (eval echo configure:9308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
9306 rm -rf conftest* | 9308 rm -rf conftest* |
9307 eval "ac_cv_func_$ac_func=yes" | 9309 eval "ac_cv_func_$ac_func=yes" |
9308 else | 9310 else |
9309 echo "configure: failed program was:" >&5 | 9311 echo "configure: failed program was:" >&5 |
9310 cat conftest.$ac_ext >&5 | 9312 cat conftest.$ac_ext >&5 |
9328 echo "$ac_t""no" 1>&6 | 9330 echo "$ac_t""no" 1>&6 |
9329 fi | 9331 fi |
9330 done | 9332 done |
9331 | 9333 |
9332 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 | 9334 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 |
9333 echo "configure:9334: checking whether getpgrp takes no argument" >&5 | 9335 echo "configure:9336: checking whether getpgrp takes no argument" >&5 |
9334 | 9336 |
9335 cat > conftest.$ac_ext <<EOF | 9337 cat > conftest.$ac_ext <<EOF |
9336 #line 9337 "configure" | 9338 #line 9339 "configure" |
9337 #include "confdefs.h" | 9339 #include "confdefs.h" |
9338 | 9340 |
9339 /* | 9341 /* |
9340 * If this system has a BSD-style getpgrp(), | 9342 * If this system has a BSD-style getpgrp(), |
9341 * which takes a pid argument, exit unsuccessfully. | 9343 * which takes a pid argument, exit unsuccessfully. |
9386 exit(s>>8); | 9388 exit(s>>8); |
9387 } | 9389 } |
9388 } | 9390 } |
9389 | 9391 |
9390 EOF | 9392 EOF |
9391 if { (eval echo configure:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 9393 if { (eval echo configure:9394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
9392 then | 9394 then |
9393 ac_cv_func_getpgrp_void=yes | 9395 ac_cv_func_getpgrp_void=yes |
9394 else | 9396 else |
9395 conftest_rc="$?" | 9397 conftest_rc="$?" |
9396 echo "configure: failed program was:" >&5 | 9398 echo "configure: failed program was:" >&5 |
9413 | 9415 |
9414 fi | 9416 fi |
9415 | 9417 |
9416 | 9418 |
9417 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | 9419 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
9418 echo "configure:9419: checking for working mmap" >&5 | 9420 echo "configure:9421: checking for working mmap" >&5 |
9419 case "$opsys" in ultrix* ) have_mmap=no ;; *) | 9421 case "$opsys" in ultrix* ) have_mmap=no ;; *) |
9420 cat > conftest.$ac_ext <<EOF | 9422 cat > conftest.$ac_ext <<EOF |
9421 #line 9422 "configure" | 9423 #line 9424 "configure" |
9422 #include "confdefs.h" | 9424 #include "confdefs.h" |
9423 #include <stdio.h> | 9425 #include <stdio.h> |
9424 #include <unistd.h> | 9426 #include <unistd.h> |
9425 #include <fcntl.h> | 9427 #include <fcntl.h> |
9426 #include <sys/mman.h> | 9428 #include <sys/mman.h> |
9449 return 0; | 9451 return 0; |
9450 perror ("conftest: mmap failed"); | 9452 perror ("conftest: mmap failed"); |
9451 return 1; | 9453 return 1; |
9452 } | 9454 } |
9453 EOF | 9455 EOF |
9454 if { (eval echo configure:9455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 9456 if { (eval echo configure:9457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
9455 then | 9457 then |
9456 have_mmap=yes | 9458 have_mmap=yes |
9457 else | 9459 else |
9458 conftest_rc="$?" | 9460 conftest_rc="$?" |
9459 echo "configure: failed program was:" >&5 | 9461 echo "configure: failed program was:" >&5 |
9474 | 9476 |
9475 for ac_hdr in unistd.h | 9477 for ac_hdr in unistd.h |
9476 do | 9478 do |
9477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 9479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 9480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
9479 echo "configure:9480: checking for $ac_hdr" >&5 | 9481 echo "configure:9482: checking for $ac_hdr" >&5 |
9480 | 9482 |
9481 cat > conftest.$ac_ext <<EOF | 9483 cat > conftest.$ac_ext <<EOF |
9482 #line 9483 "configure" | 9484 #line 9485 "configure" |
9483 #include "confdefs.h" | 9485 #include "confdefs.h" |
9484 #include <$ac_hdr> | 9486 #include <$ac_hdr> |
9485 EOF | 9487 EOF |
9486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
9487 { (eval echo configure:9488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9489 { (eval echo configure:9490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9488 ac_err=`grep -v '^ *+' conftest.out` | 9490 ac_err=`grep -v '^ *+' conftest.out` |
9489 if test -z "$ac_err"; then | 9491 if test -z "$ac_err"; then |
9490 rm -rf conftest* | 9492 rm -rf conftest* |
9491 eval "ac_cv_header_$ac_safe=yes" | 9493 eval "ac_cv_header_$ac_safe=yes" |
9492 else | 9494 else |
9514 done | 9516 done |
9515 | 9517 |
9516 for ac_func in getpagesize | 9518 for ac_func in getpagesize |
9517 do | 9519 do |
9518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 9520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9519 echo "configure:9520: checking for $ac_func" >&5 | 9521 echo "configure:9522: checking for $ac_func" >&5 |
9520 | 9522 |
9521 cat > conftest.$ac_ext <<EOF | 9523 cat > conftest.$ac_ext <<EOF |
9522 #line 9523 "configure" | 9524 #line 9525 "configure" |
9523 #include "confdefs.h" | 9525 #include "confdefs.h" |
9524 /* System header to define __stub macros and hopefully few prototypes, | 9526 /* System header to define __stub macros and hopefully few prototypes, |
9525 which can conflict with char $ac_func(); below. */ | 9527 which can conflict with char $ac_func(); below. */ |
9526 #include <assert.h> | 9528 #include <assert.h> |
9527 /* Override any gcc2 internal prototype to avoid an error. */ | 9529 /* Override any gcc2 internal prototype to avoid an error. */ |
9540 $ac_func(); | 9542 $ac_func(); |
9541 #endif | 9543 #endif |
9542 | 9544 |
9543 ; return 0; } | 9545 ; return 0; } |
9544 EOF | 9546 EOF |
9545 if { (eval echo configure:9546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 9547 if { (eval echo configure:9548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
9546 rm -rf conftest* | 9548 rm -rf conftest* |
9547 eval "ac_cv_func_$ac_func=yes" | 9549 eval "ac_cv_func_$ac_func=yes" |
9548 else | 9550 else |
9549 echo "configure: failed program was:" >&5 | 9551 echo "configure: failed program was:" >&5 |
9550 cat conftest.$ac_ext >&5 | 9552 cat conftest.$ac_ext >&5 |
9568 echo "$ac_t""no" 1>&6 | 9570 echo "$ac_t""no" 1>&6 |
9569 fi | 9571 fi |
9570 done | 9572 done |
9571 | 9573 |
9572 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | 9574 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
9573 echo "configure:9574: checking for working mmap" >&5 | 9575 echo "configure:9576: checking for working mmap" >&5 |
9574 | 9576 |
9575 cat > conftest.$ac_ext <<EOF | 9577 cat > conftest.$ac_ext <<EOF |
9576 #line 9577 "configure" | 9578 #line 9579 "configure" |
9577 #include "confdefs.h" | 9579 #include "confdefs.h" |
9578 | 9580 |
9579 /* Thanks to Mike Haertel and Jim Avera for this test. | 9581 /* Thanks to Mike Haertel and Jim Avera for this test. |
9580 Here is a matrix of mmap possibilities: | 9582 Here is a matrix of mmap possibilities: |
9581 mmap private not fixed | 9583 mmap private not fixed |
9711 unlink("conftestmmap"); | 9713 unlink("conftestmmap"); |
9712 exit(0); | 9714 exit(0); |
9713 } | 9715 } |
9714 | 9716 |
9715 EOF | 9717 EOF |
9716 if { (eval echo configure:9717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 9718 if { (eval echo configure:9719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
9717 then | 9719 then |
9718 ac_cv_func_mmap_fixed_mapped=yes | 9720 ac_cv_func_mmap_fixed_mapped=yes |
9719 else | 9721 else |
9720 conftest_rc="$?" | 9722 conftest_rc="$?" |
9721 echo "configure: failed program was:" >&5 | 9723 echo "configure: failed program was:" >&5 |
9749 } | 9751 } |
9750 | 9752 |
9751 | 9753 |
9752 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` | 9754 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` |
9753 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 | 9755 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 |
9754 echo "configure:9755: checking for termios.h" >&5 | 9756 echo "configure:9757: checking for termios.h" >&5 |
9755 | 9757 |
9756 cat > conftest.$ac_ext <<EOF | 9758 cat > conftest.$ac_ext <<EOF |
9757 #line 9758 "configure" | 9759 #line 9760 "configure" |
9758 #include "confdefs.h" | 9760 #include "confdefs.h" |
9759 #include <termios.h> | 9761 #include <termios.h> |
9760 EOF | 9762 EOF |
9761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
9762 { (eval echo configure:9763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9764 { (eval echo configure:9765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9763 ac_err=`grep -v '^ *+' conftest.out` | 9765 ac_err=`grep -v '^ *+' conftest.out` |
9764 if test -z "$ac_err"; then | 9766 if test -z "$ac_err"; then |
9765 rm -rf conftest* | 9767 rm -rf conftest* |
9766 eval "ac_cv_header_$ac_safe=yes" | 9768 eval "ac_cv_header_$ac_safe=yes" |
9767 else | 9769 else |
9800 | 9802 |
9801 else | 9803 else |
9802 echo "$ac_t""no" 1>&6 | 9804 echo "$ac_t""no" 1>&6 |
9803 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` | 9805 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` |
9804 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 | 9806 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 |
9805 echo "configure:9806: checking for termio.h" >&5 | 9807 echo "configure:9808: checking for termio.h" >&5 |
9806 | 9808 |
9807 cat > conftest.$ac_ext <<EOF | 9809 cat > conftest.$ac_ext <<EOF |
9808 #line 9809 "configure" | 9810 #line 9811 "configure" |
9809 #include "confdefs.h" | 9811 #include "confdefs.h" |
9810 #include <termio.h> | 9812 #include <termio.h> |
9811 EOF | 9813 EOF |
9812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
9813 { (eval echo configure:9814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9815 { (eval echo configure:9816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9814 ac_err=`grep -v '^ *+' conftest.out` | 9816 ac_err=`grep -v '^ *+' conftest.out` |
9815 if test -z "$ac_err"; then | 9817 if test -z "$ac_err"; then |
9816 rm -rf conftest* | 9818 rm -rf conftest* |
9817 eval "ac_cv_header_$ac_safe=yes" | 9819 eval "ac_cv_header_$ac_safe=yes" |
9818 else | 9820 else |
9840 fi | 9842 fi |
9841 | 9843 |
9842 | 9844 |
9843 | 9845 |
9844 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 9846 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
9845 echo "configure:9846: checking for socket" >&5 | 9847 echo "configure:9848: checking for socket" >&5 |
9846 | 9848 |
9847 cat > conftest.$ac_ext <<EOF | 9849 cat > conftest.$ac_ext <<EOF |
9848 #line 9849 "configure" | 9850 #line 9851 "configure" |
9849 #include "confdefs.h" | 9851 #include "confdefs.h" |
9850 /* System header to define __stub macros and hopefully few prototypes, | 9852 /* System header to define __stub macros and hopefully few prototypes, |
9851 which can conflict with char socket(); below. */ | 9853 which can conflict with char socket(); below. */ |
9852 #include <assert.h> | 9854 #include <assert.h> |
9853 /* Override any gcc2 internal prototype to avoid an error. */ | 9855 /* Override any gcc2 internal prototype to avoid an error. */ |
9866 socket(); | 9868 socket(); |
9867 #endif | 9869 #endif |
9868 | 9870 |
9869 ; return 0; } | 9871 ; return 0; } |
9870 EOF | 9872 EOF |
9871 if { (eval echo configure:9872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 9873 if { (eval echo configure:9874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
9872 rm -rf conftest* | 9874 rm -rf conftest* |
9873 eval "ac_cv_func_socket=yes" | 9875 eval "ac_cv_func_socket=yes" |
9874 else | 9876 else |
9875 echo "configure: failed program was:" >&5 | 9877 echo "configure: failed program was:" >&5 |
9876 cat conftest.$ac_ext >&5 | 9878 cat conftest.$ac_ext >&5 |
9881 | 9883 |
9882 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | 9884 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then |
9883 echo "$ac_t""yes" 1>&6 | 9885 echo "$ac_t""yes" 1>&6 |
9884 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 9886 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
9885 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 9887 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
9886 echo "configure:9887: checking for netinet/in.h" >&5 | 9888 echo "configure:9889: checking for netinet/in.h" >&5 |
9887 | 9889 |
9888 cat > conftest.$ac_ext <<EOF | 9890 cat > conftest.$ac_ext <<EOF |
9889 #line 9890 "configure" | 9891 #line 9892 "configure" |
9890 #include "confdefs.h" | 9892 #include "confdefs.h" |
9891 #include <netinet/in.h> | 9893 #include <netinet/in.h> |
9892 EOF | 9894 EOF |
9893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
9894 { (eval echo configure:9895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9896 { (eval echo configure:9897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9895 ac_err=`grep -v '^ *+' conftest.out` | 9897 ac_err=`grep -v '^ *+' conftest.out` |
9896 if test -z "$ac_err"; then | 9898 if test -z "$ac_err"; then |
9897 rm -rf conftest* | 9899 rm -rf conftest* |
9898 eval "ac_cv_header_$ac_safe=yes" | 9900 eval "ac_cv_header_$ac_safe=yes" |
9899 else | 9901 else |
9906 rm -f conftest* | 9908 rm -f conftest* |
9907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 9909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9908 echo "$ac_t""yes" 1>&6 | 9910 echo "$ac_t""yes" 1>&6 |
9909 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 9911 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
9910 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 9912 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
9911 echo "configure:9912: checking for arpa/inet.h" >&5 | 9913 echo "configure:9914: checking for arpa/inet.h" >&5 |
9912 | 9914 |
9913 cat > conftest.$ac_ext <<EOF | 9915 cat > conftest.$ac_ext <<EOF |
9914 #line 9915 "configure" | 9916 #line 9917 "configure" |
9915 #include "confdefs.h" | 9917 #include "confdefs.h" |
9916 #include <arpa/inet.h> | 9918 #include <arpa/inet.h> |
9917 EOF | 9919 EOF |
9918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 9920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
9919 { (eval echo configure:9920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 9921 { (eval echo configure:9922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9920 ac_err=`grep -v '^ *+' conftest.out` | 9922 ac_err=`grep -v '^ *+' conftest.out` |
9921 if test -z "$ac_err"; then | 9923 if test -z "$ac_err"; then |
9922 rm -rf conftest* | 9924 rm -rf conftest* |
9923 eval "ac_cv_header_$ac_safe=yes" | 9925 eval "ac_cv_header_$ac_safe=yes" |
9924 else | 9926 else |
9939 #define HAVE_SOCKETS 1 | 9941 #define HAVE_SOCKETS 1 |
9940 EOF | 9942 EOF |
9941 } | 9943 } |
9942 | 9944 |
9943 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 | 9945 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 |
9944 echo "configure:9945: checking "for sun_len member in struct sockaddr_un"" >&5 | 9946 echo "configure:9947: checking "for sun_len member in struct sockaddr_un"" >&5 |
9945 cat > conftest.$ac_ext <<EOF | 9947 cat > conftest.$ac_ext <<EOF |
9946 #line 9947 "configure" | 9948 #line 9949 "configure" |
9947 #include "confdefs.h" | 9949 #include "confdefs.h" |
9948 | 9950 |
9949 #include <sys/types.h> | 9951 #include <sys/types.h> |
9950 #include <sys/socket.h> | 9952 #include <sys/socket.h> |
9951 #include <sys/un.h> | 9953 #include <sys/un.h> |
9952 | 9954 |
9953 int main() { | 9955 int main() { |
9954 static struct sockaddr_un x; x.sun_len = 1; | 9956 static struct sockaddr_un x; x.sun_len = 1; |
9955 ; return 0; } | 9957 ; return 0; } |
9956 EOF | 9958 EOF |
9957 if { (eval echo configure:9958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 9959 if { (eval echo configure:9960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
9958 rm -rf conftest* | 9960 rm -rf conftest* |
9959 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF | 9961 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF |
9960 Defining HAVE_SOCKADDR_SUN_LEN | 9962 Defining HAVE_SOCKADDR_SUN_LEN |
9961 EOF | 9963 EOF |
9962 cat >> confdefs.h <<\EOF | 9964 cat >> confdefs.h <<\EOF |
9970 rm -rf conftest* | 9972 rm -rf conftest* |
9971 echo "$ac_t""no" 1>&6 | 9973 echo "$ac_t""no" 1>&6 |
9972 fi | 9974 fi |
9973 rm -f conftest* | 9975 rm -f conftest* |
9974 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 | 9976 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 |
9975 echo "configure:9976: checking "for ip_mreq struct in netinet/in.h"" >&5 | 9977 echo "configure:9978: checking "for ip_mreq struct in netinet/in.h"" >&5 |
9976 cat > conftest.$ac_ext <<EOF | 9978 cat > conftest.$ac_ext <<EOF |
9977 #line 9978 "configure" | 9979 #line 9980 "configure" |
9978 #include "confdefs.h" | 9980 #include "confdefs.h" |
9979 | 9981 |
9980 #include <sys/types.h> | 9982 #include <sys/types.h> |
9981 #include <netinet/in.h> | 9983 #include <netinet/in.h> |
9982 | 9984 |
9983 int main() { | 9985 int main() { |
9984 static struct ip_mreq x; | 9986 static struct ip_mreq x; |
9985 ; return 0; } | 9987 ; return 0; } |
9986 EOF | 9988 EOF |
9987 if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 9989 if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
9988 rm -rf conftest* | 9990 rm -rf conftest* |
9989 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF | 9991 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF |
9990 Defining HAVE_MULTICAST | 9992 Defining HAVE_MULTICAST |
9991 EOF | 9993 EOF |
9992 cat >> confdefs.h <<\EOF | 9994 cat >> confdefs.h <<\EOF |
10013 echo "$ac_t""no" 1>&6 | 10015 echo "$ac_t""no" 1>&6 |
10014 fi | 10016 fi |
10015 | 10017 |
10016 | 10018 |
10017 echo $ac_n "checking for msgget""... $ac_c" 1>&6 | 10019 echo $ac_n "checking for msgget""... $ac_c" 1>&6 |
10018 echo "configure:10019: checking for msgget" >&5 | 10020 echo "configure:10021: checking for msgget" >&5 |
10019 | 10021 |
10020 cat > conftest.$ac_ext <<EOF | 10022 cat > conftest.$ac_ext <<EOF |
10021 #line 10022 "configure" | 10023 #line 10024 "configure" |
10022 #include "confdefs.h" | 10024 #include "confdefs.h" |
10023 /* System header to define __stub macros and hopefully few prototypes, | 10025 /* System header to define __stub macros and hopefully few prototypes, |
10024 which can conflict with char msgget(); below. */ | 10026 which can conflict with char msgget(); below. */ |
10025 #include <assert.h> | 10027 #include <assert.h> |
10026 /* Override any gcc2 internal prototype to avoid an error. */ | 10028 /* Override any gcc2 internal prototype to avoid an error. */ |
10039 msgget(); | 10041 msgget(); |
10040 #endif | 10042 #endif |
10041 | 10043 |
10042 ; return 0; } | 10044 ; return 0; } |
10043 EOF | 10045 EOF |
10044 if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 10046 if { (eval echo configure:10047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
10045 rm -rf conftest* | 10047 rm -rf conftest* |
10046 eval "ac_cv_func_msgget=yes" | 10048 eval "ac_cv_func_msgget=yes" |
10047 else | 10049 else |
10048 echo "configure: failed program was:" >&5 | 10050 echo "configure: failed program was:" >&5 |
10049 cat conftest.$ac_ext >&5 | 10051 cat conftest.$ac_ext >&5 |
10054 | 10056 |
10055 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then | 10057 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then |
10056 echo "$ac_t""yes" 1>&6 | 10058 echo "$ac_t""yes" 1>&6 |
10057 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` | 10059 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` |
10058 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 | 10060 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 |
10059 echo "configure:10060: checking for sys/ipc.h" >&5 | 10061 echo "configure:10062: checking for sys/ipc.h" >&5 |
10060 | 10062 |
10061 cat > conftest.$ac_ext <<EOF | 10063 cat > conftest.$ac_ext <<EOF |
10062 #line 10063 "configure" | 10064 #line 10065 "configure" |
10063 #include "confdefs.h" | 10065 #include "confdefs.h" |
10064 #include <sys/ipc.h> | 10066 #include <sys/ipc.h> |
10065 EOF | 10067 EOF |
10066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
10067 { (eval echo configure:10068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10069 { (eval echo configure:10070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10068 ac_err=`grep -v '^ *+' conftest.out` | 10070 ac_err=`grep -v '^ *+' conftest.out` |
10069 if test -z "$ac_err"; then | 10071 if test -z "$ac_err"; then |
10070 rm -rf conftest* | 10072 rm -rf conftest* |
10071 eval "ac_cv_header_$ac_safe=yes" | 10073 eval "ac_cv_header_$ac_safe=yes" |
10072 else | 10074 else |
10079 rm -f conftest* | 10081 rm -f conftest* |
10080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 10082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10081 echo "$ac_t""yes" 1>&6 | 10083 echo "$ac_t""yes" 1>&6 |
10082 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` | 10084 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` |
10083 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 | 10085 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 |
10084 echo "configure:10085: checking for sys/msg.h" >&5 | 10086 echo "configure:10087: checking for sys/msg.h" >&5 |
10085 | 10087 |
10086 cat > conftest.$ac_ext <<EOF | 10088 cat > conftest.$ac_ext <<EOF |
10087 #line 10088 "configure" | 10089 #line 10090 "configure" |
10088 #include "confdefs.h" | 10090 #include "confdefs.h" |
10089 #include <sys/msg.h> | 10091 #include <sys/msg.h> |
10090 EOF | 10092 EOF |
10091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
10092 { (eval echo configure:10093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10094 { (eval echo configure:10095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10093 ac_err=`grep -v '^ *+' conftest.out` | 10095 ac_err=`grep -v '^ *+' conftest.out` |
10094 if test -z "$ac_err"; then | 10096 if test -z "$ac_err"; then |
10095 rm -rf conftest* | 10097 rm -rf conftest* |
10096 eval "ac_cv_header_$ac_safe=yes" | 10098 eval "ac_cv_header_$ac_safe=yes" |
10097 else | 10099 else |
10125 fi | 10127 fi |
10126 | 10128 |
10127 | 10129 |
10128 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` | 10130 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` |
10129 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 | 10131 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 |
10130 echo "configure:10131: checking for dirent.h" >&5 | 10132 echo "configure:10133: checking for dirent.h" >&5 |
10131 | 10133 |
10132 cat > conftest.$ac_ext <<EOF | 10134 cat > conftest.$ac_ext <<EOF |
10133 #line 10134 "configure" | 10135 #line 10136 "configure" |
10134 #include "confdefs.h" | 10136 #include "confdefs.h" |
10135 #include <dirent.h> | 10137 #include <dirent.h> |
10136 EOF | 10138 EOF |
10137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
10138 { (eval echo configure:10139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10140 { (eval echo configure:10141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10139 ac_err=`grep -v '^ *+' conftest.out` | 10141 ac_err=`grep -v '^ *+' conftest.out` |
10140 if test -z "$ac_err"; then | 10142 if test -z "$ac_err"; then |
10141 rm -rf conftest* | 10143 rm -rf conftest* |
10142 eval "ac_cv_header_$ac_safe=yes" | 10144 eval "ac_cv_header_$ac_safe=yes" |
10143 else | 10145 else |
10160 | 10162 |
10161 else | 10163 else |
10162 echo "$ac_t""no" 1>&6 | 10164 echo "$ac_t""no" 1>&6 |
10163 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` | 10165 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` |
10164 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 | 10166 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 |
10165 echo "configure:10166: checking for sys/dir.h" >&5 | 10167 echo "configure:10168: checking for sys/dir.h" >&5 |
10166 | 10168 |
10167 cat > conftest.$ac_ext <<EOF | 10169 cat > conftest.$ac_ext <<EOF |
10168 #line 10169 "configure" | 10170 #line 10171 "configure" |
10169 #include "confdefs.h" | 10171 #include "confdefs.h" |
10170 #include <sys/dir.h> | 10172 #include <sys/dir.h> |
10171 EOF | 10173 EOF |
10172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
10173 { (eval echo configure:10174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10175 { (eval echo configure:10176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10174 ac_err=`grep -v '^ *+' conftest.out` | 10176 ac_err=`grep -v '^ *+' conftest.out` |
10175 if test -z "$ac_err"; then | 10177 if test -z "$ac_err"; then |
10176 rm -rf conftest* | 10178 rm -rf conftest* |
10177 eval "ac_cv_header_$ac_safe=yes" | 10179 eval "ac_cv_header_$ac_safe=yes" |
10178 else | 10180 else |
10201 fi | 10203 fi |
10202 | 10204 |
10203 | 10205 |
10204 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | 10206 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` |
10205 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | 10207 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 |
10206 echo "configure:10207: checking for nlist.h" >&5 | 10208 echo "configure:10209: checking for nlist.h" >&5 |
10207 | 10209 |
10208 cat > conftest.$ac_ext <<EOF | 10210 cat > conftest.$ac_ext <<EOF |
10209 #line 10210 "configure" | 10211 #line 10212 "configure" |
10210 #include "confdefs.h" | 10212 #include "confdefs.h" |
10211 #include <nlist.h> | 10213 #include <nlist.h> |
10212 EOF | 10214 EOF |
10213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
10214 { (eval echo configure:10215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10216 { (eval echo configure:10217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10215 ac_err=`grep -v '^ *+' conftest.out` | 10217 ac_err=`grep -v '^ *+' conftest.out` |
10216 if test -z "$ac_err"; then | 10218 if test -z "$ac_err"; then |
10217 rm -rf conftest* | 10219 rm -rf conftest* |
10218 eval "ac_cv_header_$ac_safe=yes" | 10220 eval "ac_cv_header_$ac_safe=yes" |
10219 else | 10221 else |
10239 fi | 10241 fi |
10240 | 10242 |
10241 | 10243 |
10242 | 10244 |
10243 echo "checking "for sound support"" 1>&6 | 10245 echo "checking "for sound support"" 1>&6 |
10244 echo "configure:10245: checking "for sound support"" >&5 | 10246 echo "configure:10247: checking "for sound support"" >&5 |
10245 case "$with_sound" in | 10247 case "$with_sound" in |
10246 native | both ) with_native_sound=yes;; | 10248 native | both ) with_native_sound=yes;; |
10247 nas | no ) with_native_sound=no;; | 10249 nas | no ) with_native_sound=no;; |
10248 esac | 10250 esac |
10249 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes | 10251 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes |
10250 | 10252 |
10251 if test "$with_native_sound" != "no"; then | 10253 if test "$with_native_sound" != "no"; then |
10252 if test -n "$native_sound_lib"; then | 10254 if test -n "$native_sound_lib"; then |
10253 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` | 10255 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` |
10254 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 | 10256 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 |
10255 echo "configure:10256: checking for multimedia/audio_device.h" >&5 | 10257 echo "configure:10258: checking for multimedia/audio_device.h" >&5 |
10256 | 10258 |
10257 cat > conftest.$ac_ext <<EOF | 10259 cat > conftest.$ac_ext <<EOF |
10258 #line 10259 "configure" | 10260 #line 10261 "configure" |
10259 #include "confdefs.h" | 10261 #include "confdefs.h" |
10260 #include <multimedia/audio_device.h> | 10262 #include <multimedia/audio_device.h> |
10261 EOF | 10263 EOF |
10262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
10263 { (eval echo configure:10264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10265 { (eval echo configure:10266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10264 ac_err=`grep -v '^ *+' conftest.out` | 10266 ac_err=`grep -v '^ *+' conftest.out` |
10265 if test -z "$ac_err"; then | 10267 if test -z "$ac_err"; then |
10266 rm -rf conftest* | 10268 rm -rf conftest* |
10267 eval "ac_cv_header_$ac_safe=yes" | 10269 eval "ac_cv_header_$ac_safe=yes" |
10268 else | 10270 else |
10306 case "$canonical" in | 10308 case "$canonical" in |
10307 *-sgi-* ) | 10309 *-sgi-* ) |
10308 if test -z "$native_sound_lib"; then | 10310 if test -z "$native_sound_lib"; then |
10309 | 10311 |
10310 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 | 10312 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 |
10311 echo "configure:10312: checking for ALopenport in -laudio" >&5 | 10313 echo "configure:10314: checking for ALopenport in -laudio" >&5 |
10312 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` | 10314 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` |
10313 | 10315 |
10314 xe_check_libs=" -laudio " | 10316 xe_check_libs=" -laudio " |
10315 cat > conftest.$ac_ext <<EOF | 10317 cat > conftest.$ac_ext <<EOF |
10316 #line 10317 "configure" | 10318 #line 10319 "configure" |
10317 #include "confdefs.h" | 10319 #include "confdefs.h" |
10318 /* Override any gcc2 internal prototype to avoid an error. */ | 10320 /* Override any gcc2 internal prototype to avoid an error. */ |
10319 /* We use char because int might match the return type of a gcc2 | 10321 /* We use char because int might match the return type of a gcc2 |
10320 builtin and then its argument prototype would still apply. */ | 10322 builtin and then its argument prototype would still apply. */ |
10321 char ALopenport(); | 10323 char ALopenport(); |
10322 | 10324 |
10323 int main() { | 10325 int main() { |
10324 ALopenport() | 10326 ALopenport() |
10325 ; return 0; } | 10327 ; return 0; } |
10326 EOF | 10328 EOF |
10327 if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 10329 if { (eval echo configure:10330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
10328 rm -rf conftest* | 10330 rm -rf conftest* |
10329 eval "ac_cv_lib_$ac_lib_var=yes" | 10331 eval "ac_cv_lib_$ac_lib_var=yes" |
10330 else | 10332 else |
10331 echo "configure: failed program was:" >&5 | 10333 echo "configure: failed program was:" >&5 |
10332 cat conftest.$ac_ext >&5 | 10334 cat conftest.$ac_ext >&5 |
10353 fi ;; | 10355 fi ;; |
10354 hppa*-hp-hpux* ) | 10356 hppa*-hp-hpux* ) |
10355 if test -z "$native_sound_lib"; then | 10357 if test -z "$native_sound_lib"; then |
10356 | 10358 |
10357 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 | 10359 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 |
10358 echo "configure:10359: checking for AOpenAudio in -lAlib" >&5 | 10360 echo "configure:10361: checking for AOpenAudio in -lAlib" >&5 |
10359 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` | 10361 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` |
10360 | 10362 |
10361 xe_check_libs=" -lAlib " | 10363 xe_check_libs=" -lAlib " |
10362 cat > conftest.$ac_ext <<EOF | 10364 cat > conftest.$ac_ext <<EOF |
10363 #line 10364 "configure" | 10365 #line 10366 "configure" |
10364 #include "confdefs.h" | 10366 #include "confdefs.h" |
10365 /* Override any gcc2 internal prototype to avoid an error. */ | 10367 /* Override any gcc2 internal prototype to avoid an error. */ |
10366 /* We use char because int might match the return type of a gcc2 | 10368 /* We use char because int might match the return type of a gcc2 |
10367 builtin and then its argument prototype would still apply. */ | 10369 builtin and then its argument prototype would still apply. */ |
10368 char AOpenAudio(); | 10370 char AOpenAudio(); |
10369 | 10371 |
10370 int main() { | 10372 int main() { |
10371 AOpenAudio() | 10373 AOpenAudio() |
10372 ; return 0; } | 10374 ; return 0; } |
10373 EOF | 10375 EOF |
10374 if { (eval echo configure:10375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 10376 if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
10375 rm -rf conftest* | 10377 rm -rf conftest* |
10376 eval "ac_cv_lib_$ac_lib_var=yes" | 10378 eval "ac_cv_lib_$ac_lib_var=yes" |
10377 else | 10379 else |
10378 echo "configure: failed program was:" >&5 | 10380 echo "configure: failed program was:" >&5 |
10379 cat conftest.$ac_ext >&5 | 10381 cat conftest.$ac_ext >&5 |
10407 | 10409 |
10408 if test -z "$sound_found"; then | 10410 if test -z "$sound_found"; then |
10409 for dir in "machine" "sys" "linux"; do | 10411 for dir in "machine" "sys" "linux"; do |
10410 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` | 10412 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` |
10411 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 | 10413 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 |
10412 echo "configure:10413: checking for ${dir}/soundcard.h" >&5 | 10414 echo "configure:10415: checking for ${dir}/soundcard.h" >&5 |
10413 | 10415 |
10414 cat > conftest.$ac_ext <<EOF | 10416 cat > conftest.$ac_ext <<EOF |
10415 #line 10416 "configure" | 10417 #line 10418 "configure" |
10416 #include "confdefs.h" | 10418 #include "confdefs.h" |
10417 #include <${dir}/soundcard.h> | 10419 #include <${dir}/soundcard.h> |
10418 EOF | 10420 EOF |
10419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
10420 { (eval echo configure:10421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10422 { (eval echo configure:10423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10421 ac_err=`grep -v '^ *+' conftest.out` | 10423 ac_err=`grep -v '^ *+' conftest.out` |
10422 if test -z "$ac_err"; then | 10424 if test -z "$ac_err"; then |
10423 rm -rf conftest* | 10425 rm -rf conftest* |
10424 eval "ac_cv_header_$ac_safe=yes" | 10426 eval "ac_cv_header_$ac_safe=yes" |
10425 else | 10427 else |
10485 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then | 10487 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then |
10486 echo " xemacs will be linked with \"nas.o\"" | 10488 echo " xemacs will be linked with \"nas.o\"" |
10487 fi | 10489 fi |
10488 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi | 10490 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi |
10489 cat > conftest.$ac_ext <<EOF | 10491 cat > conftest.$ac_ext <<EOF |
10490 #line 10491 "configure" | 10492 #line 10493 "configure" |
10491 #include "confdefs.h" | 10493 #include "confdefs.h" |
10492 #include <audio/Xtutil.h> | 10494 #include <audio/Xtutil.h> |
10493 EOF | 10495 EOF |
10494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 10496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
10495 egrep "AuXtErrorJump" >/dev/null 2>&1; then | 10497 egrep "AuXtErrorJump" >/dev/null 2>&1; then |
10512 | 10514 |
10513 test -z "$with_tty" && with_tty=yes | 10515 test -z "$with_tty" && with_tty=yes |
10514 | 10516 |
10515 if test "$with_tty" = "yes" ; then | 10517 if test "$with_tty" = "yes" ; then |
10516 echo "checking for TTY-related features" 1>&6 | 10518 echo "checking for TTY-related features" 1>&6 |
10517 echo "configure:10518: checking for TTY-related features" >&5 | 10519 echo "configure:10520: checking for TTY-related features" >&5 |
10518 { test "$extra_verbose" = "yes" && cat << \EOF | 10520 { test "$extra_verbose" = "yes" && cat << \EOF |
10519 Defining HAVE_TTY | 10521 Defining HAVE_TTY |
10520 EOF | 10522 EOF |
10521 cat >> confdefs.h <<\EOF | 10523 cat >> confdefs.h <<\EOF |
10522 #define HAVE_TTY 1 | 10524 #define HAVE_TTY 1 |
10528 fi | 10530 fi |
10529 | 10531 |
10530 if test -z "$with_ncurses"; then | 10532 if test -z "$with_ncurses"; then |
10531 | 10533 |
10532 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 | 10534 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 |
10533 echo "configure:10534: checking for tgetent in -lncurses" >&5 | 10535 echo "configure:10536: checking for tgetent in -lncurses" >&5 |
10534 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` | 10536 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` |
10535 | 10537 |
10536 xe_check_libs=" -lncurses " | 10538 xe_check_libs=" -lncurses " |
10537 cat > conftest.$ac_ext <<EOF | 10539 cat > conftest.$ac_ext <<EOF |
10538 #line 10539 "configure" | 10540 #line 10541 "configure" |
10539 #include "confdefs.h" | 10541 #include "confdefs.h" |
10540 /* Override any gcc2 internal prototype to avoid an error. */ | 10542 /* Override any gcc2 internal prototype to avoid an error. */ |
10541 /* We use char because int might match the return type of a gcc2 | 10543 /* We use char because int might match the return type of a gcc2 |
10542 builtin and then its argument prototype would still apply. */ | 10544 builtin and then its argument prototype would still apply. */ |
10543 char tgetent(); | 10545 char tgetent(); |
10544 | 10546 |
10545 int main() { | 10547 int main() { |
10546 tgetent() | 10548 tgetent() |
10547 ; return 0; } | 10549 ; return 0; } |
10548 EOF | 10550 EOF |
10549 if { (eval echo configure:10550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 10551 if { (eval echo configure:10552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
10550 rm -rf conftest* | 10552 rm -rf conftest* |
10551 eval "ac_cv_lib_$ac_lib_var=yes" | 10553 eval "ac_cv_lib_$ac_lib_var=yes" |
10552 else | 10554 else |
10553 echo "configure: failed program was:" >&5 | 10555 echo "configure: failed program was:" >&5 |
10554 cat conftest.$ac_ext >&5 | 10556 cat conftest.$ac_ext >&5 |
10577 EOF | 10579 EOF |
10578 } | 10580 } |
10579 | 10581 |
10580 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | 10582 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` |
10581 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | 10583 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 |
10582 echo "configure:10583: checking for ncurses/curses.h" >&5 | 10584 echo "configure:10585: checking for ncurses/curses.h" >&5 |
10583 | 10585 |
10584 cat > conftest.$ac_ext <<EOF | 10586 cat > conftest.$ac_ext <<EOF |
10585 #line 10586 "configure" | 10587 #line 10588 "configure" |
10586 #include "confdefs.h" | 10588 #include "confdefs.h" |
10587 #include <ncurses/curses.h> | 10589 #include <ncurses/curses.h> |
10588 EOF | 10590 EOF |
10589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
10590 { (eval echo configure:10591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10592 { (eval echo configure:10593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10591 ac_err=`grep -v '^ *+' conftest.out` | 10593 ac_err=`grep -v '^ *+' conftest.out` |
10592 if test -z "$ac_err"; then | 10594 if test -z "$ac_err"; then |
10593 rm -rf conftest* | 10595 rm -rf conftest* |
10594 eval "ac_cv_header_$ac_safe=yes" | 10596 eval "ac_cv_header_$ac_safe=yes" |
10595 else | 10597 else |
10607 echo "$ac_t""no" 1>&6 | 10609 echo "$ac_t""no" 1>&6 |
10608 fi | 10610 fi |
10609 | 10611 |
10610 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` | 10612 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` |
10611 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 | 10613 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 |
10612 echo "configure:10613: checking for ncurses/term.h" >&5 | 10614 echo "configure:10615: checking for ncurses/term.h" >&5 |
10613 | 10615 |
10614 cat > conftest.$ac_ext <<EOF | 10616 cat > conftest.$ac_ext <<EOF |
10615 #line 10616 "configure" | 10617 #line 10618 "configure" |
10616 #include "confdefs.h" | 10618 #include "confdefs.h" |
10617 #include <ncurses/term.h> | 10619 #include <ncurses/term.h> |
10618 EOF | 10620 EOF |
10619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
10620 { (eval echo configure:10621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10622 { (eval echo configure:10623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10621 ac_err=`grep -v '^ *+' conftest.out` | 10623 ac_err=`grep -v '^ *+' conftest.out` |
10622 if test -z "$ac_err"; then | 10624 if test -z "$ac_err"; then |
10623 rm -rf conftest* | 10625 rm -rf conftest* |
10624 eval "ac_cv_header_$ac_safe=yes" | 10626 eval "ac_cv_header_$ac_safe=yes" |
10625 else | 10627 else |
10645 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then | 10647 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then |
10646 save_c_switch_site="$c_switch_site" | 10648 save_c_switch_site="$c_switch_site" |
10647 c_switch_site="$c_switch_site -I/usr/include/ncurses" | 10649 c_switch_site="$c_switch_site -I/usr/include/ncurses" |
10648 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | 10650 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` |
10649 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | 10651 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 |
10650 echo "configure:10651: checking for ncurses/curses.h" >&5 | 10652 echo "configure:10653: checking for ncurses/curses.h" >&5 |
10651 | 10653 |
10652 cat > conftest.$ac_ext <<EOF | 10654 cat > conftest.$ac_ext <<EOF |
10653 #line 10654 "configure" | 10655 #line 10656 "configure" |
10654 #include "confdefs.h" | 10656 #include "confdefs.h" |
10655 #include <ncurses/curses.h> | 10657 #include <ncurses/curses.h> |
10656 EOF | 10658 EOF |
10657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
10658 { (eval echo configure:10659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10660 { (eval echo configure:10661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10659 ac_err=`grep -v '^ *+' conftest.out` | 10661 ac_err=`grep -v '^ *+' conftest.out` |
10660 if test -z "$ac_err"; then | 10662 if test -z "$ac_err"; then |
10661 rm -rf conftest* | 10663 rm -rf conftest* |
10662 eval "ac_cv_header_$ac_safe=yes" | 10664 eval "ac_cv_header_$ac_safe=yes" |
10663 else | 10665 else |
10688 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi | 10690 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi |
10689 else | 10691 else |
10690 for lib in curses termlib termcap; do | 10692 for lib in curses termlib termcap; do |
10691 | 10693 |
10692 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 | 10694 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 |
10693 echo "configure:10694: checking for tgetent in -l$lib" >&5 | 10695 echo "configure:10696: checking for tgetent in -l$lib" >&5 |
10694 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` | 10696 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` |
10695 | 10697 |
10696 xe_check_libs=" -l$lib " | 10698 xe_check_libs=" -l$lib " |
10697 cat > conftest.$ac_ext <<EOF | 10699 cat > conftest.$ac_ext <<EOF |
10698 #line 10699 "configure" | 10700 #line 10701 "configure" |
10699 #include "confdefs.h" | 10701 #include "confdefs.h" |
10700 /* Override any gcc2 internal prototype to avoid an error. */ | 10702 /* Override any gcc2 internal prototype to avoid an error. */ |
10701 /* We use char because int might match the return type of a gcc2 | 10703 /* We use char because int might match the return type of a gcc2 |
10702 builtin and then its argument prototype would still apply. */ | 10704 builtin and then its argument prototype would still apply. */ |
10703 char tgetent(); | 10705 char tgetent(); |
10704 | 10706 |
10705 int main() { | 10707 int main() { |
10706 tgetent() | 10708 tgetent() |
10707 ; return 0; } | 10709 ; return 0; } |
10708 EOF | 10710 EOF |
10709 if { (eval echo configure:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 10711 if { (eval echo configure:10712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
10710 rm -rf conftest* | 10712 rm -rf conftest* |
10711 eval "ac_cv_lib_$ac_lib_var=yes" | 10713 eval "ac_cv_lib_$ac_lib_var=yes" |
10712 else | 10714 else |
10713 echo "configure: failed program was:" >&5 | 10715 echo "configure: failed program was:" >&5 |
10714 cat conftest.$ac_ext >&5 | 10716 cat conftest.$ac_ext >&5 |
10735 if test -n "$libs_termcap"; then | 10737 if test -n "$libs_termcap"; then |
10736 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi | 10738 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi |
10737 else | 10739 else |
10738 | 10740 |
10739 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 | 10741 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 |
10740 echo "configure:10741: checking for tgetent in -lcurses" >&5 | 10742 echo "configure:10743: checking for tgetent in -lcurses" >&5 |
10741 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` | 10743 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` |
10742 | 10744 |
10743 xe_check_libs=" -lcurses " | 10745 xe_check_libs=" -lcurses " |
10744 cat > conftest.$ac_ext <<EOF | 10746 cat > conftest.$ac_ext <<EOF |
10745 #line 10746 "configure" | 10747 #line 10748 "configure" |
10746 #include "confdefs.h" | 10748 #include "confdefs.h" |
10747 /* Override any gcc2 internal prototype to avoid an error. */ | 10749 /* Override any gcc2 internal prototype to avoid an error. */ |
10748 /* We use char because int might match the return type of a gcc2 | 10750 /* We use char because int might match the return type of a gcc2 |
10749 builtin and then its argument prototype would still apply. */ | 10751 builtin and then its argument prototype would still apply. */ |
10750 char tgetent(); | 10752 char tgetent(); |
10751 | 10753 |
10752 int main() { | 10754 int main() { |
10753 tgetent() | 10755 tgetent() |
10754 ; return 0; } | 10756 ; return 0; } |
10755 EOF | 10757 EOF |
10756 if { (eval echo configure:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 10758 if { (eval echo configure:10759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
10757 rm -rf conftest* | 10759 rm -rf conftest* |
10758 eval "ac_cv_lib_$ac_lib_var=yes" | 10760 eval "ac_cv_lib_$ac_lib_var=yes" |
10759 else | 10761 else |
10760 echo "configure: failed program was:" >&5 | 10762 echo "configure: failed program was:" >&5 |
10761 cat conftest.$ac_ext >&5 | 10763 cat conftest.$ac_ext >&5 |
10769 echo "$ac_t""yes" 1>&6 | 10771 echo "$ac_t""yes" 1>&6 |
10770 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi | 10772 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi |
10771 else | 10773 else |
10772 echo "$ac_t""no" 1>&6 | 10774 echo "$ac_t""no" 1>&6 |
10773 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 | 10775 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 |
10774 echo "configure:10775: checking for tgetent in -ltermcap" >&5 | 10776 echo "configure:10777: checking for tgetent in -ltermcap" >&5 |
10775 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` | 10777 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
10776 | 10778 |
10777 xe_check_libs=" -ltermcap " | 10779 xe_check_libs=" -ltermcap " |
10778 cat > conftest.$ac_ext <<EOF | 10780 cat > conftest.$ac_ext <<EOF |
10779 #line 10780 "configure" | 10781 #line 10782 "configure" |
10780 #include "confdefs.h" | 10782 #include "confdefs.h" |
10781 /* Override any gcc2 internal prototype to avoid an error. */ | 10783 /* Override any gcc2 internal prototype to avoid an error. */ |
10782 /* We use char because int might match the return type of a gcc2 | 10784 /* We use char because int might match the return type of a gcc2 |
10783 builtin and then its argument prototype would still apply. */ | 10785 builtin and then its argument prototype would still apply. */ |
10784 char tgetent(); | 10786 char tgetent(); |
10785 | 10787 |
10786 int main() { | 10788 int main() { |
10787 tgetent() | 10789 tgetent() |
10788 ; return 0; } | 10790 ; return 0; } |
10789 EOF | 10791 EOF |
10790 if { (eval echo configure:10791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 10792 if { (eval echo configure:10793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
10791 rm -rf conftest* | 10793 rm -rf conftest* |
10792 eval "ac_cv_lib_$ac_lib_var=yes" | 10794 eval "ac_cv_lib_$ac_lib_var=yes" |
10793 else | 10795 else |
10794 echo "configure: failed program was:" >&5 | 10796 echo "configure: failed program was:" >&5 |
10795 cat conftest.$ac_ext >&5 | 10797 cat conftest.$ac_ext >&5 |
10833 } | 10835 } |
10834 | 10836 |
10835 | 10837 |
10836 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` | 10838 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` |
10837 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 | 10839 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 |
10838 echo "configure:10839: checking for gpm.h" >&5 | 10840 echo "configure:10841: checking for gpm.h" >&5 |
10839 | 10841 |
10840 cat > conftest.$ac_ext <<EOF | 10842 cat > conftest.$ac_ext <<EOF |
10841 #line 10842 "configure" | 10843 #line 10844 "configure" |
10842 #include "confdefs.h" | 10844 #include "confdefs.h" |
10843 #include <gpm.h> | 10845 #include <gpm.h> |
10844 EOF | 10846 EOF |
10845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
10846 { (eval echo configure:10847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10848 { (eval echo configure:10849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10847 ac_err=`grep -v '^ *+' conftest.out` | 10849 ac_err=`grep -v '^ *+' conftest.out` |
10848 if test -z "$ac_err"; then | 10850 if test -z "$ac_err"; then |
10849 rm -rf conftest* | 10851 rm -rf conftest* |
10850 eval "ac_cv_header_$ac_safe=yes" | 10852 eval "ac_cv_header_$ac_safe=yes" |
10851 else | 10853 else |
10864 with_gpm=no | 10866 with_gpm=no |
10865 fi | 10867 fi |
10866 } | 10868 } |
10867 test -z "$with_gpm" && { | 10869 test -z "$with_gpm" && { |
10868 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 | 10870 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 |
10869 echo "configure:10870: checking for Gpm_Open in -lgpm" >&5 | 10871 echo "configure:10872: checking for Gpm_Open in -lgpm" >&5 |
10870 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` | 10872 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` |
10871 | 10873 |
10872 xe_check_libs=" -lgpm " | 10874 xe_check_libs=" -lgpm " |
10873 cat > conftest.$ac_ext <<EOF | 10875 cat > conftest.$ac_ext <<EOF |
10874 #line 10875 "configure" | 10876 #line 10877 "configure" |
10875 #include "confdefs.h" | 10877 #include "confdefs.h" |
10876 /* Override any gcc2 internal prototype to avoid an error. */ | 10878 /* Override any gcc2 internal prototype to avoid an error. */ |
10877 /* We use char because int might match the return type of a gcc2 | 10879 /* We use char because int might match the return type of a gcc2 |
10878 builtin and then its argument prototype would still apply. */ | 10880 builtin and then its argument prototype would still apply. */ |
10879 char Gpm_Open(); | 10881 char Gpm_Open(); |
10880 | 10882 |
10881 int main() { | 10883 int main() { |
10882 Gpm_Open() | 10884 Gpm_Open() |
10883 ; return 0; } | 10885 ; return 0; } |
10884 EOF | 10886 EOF |
10885 if { (eval echo configure:10886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 10887 if { (eval echo configure:10888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
10886 rm -rf conftest* | 10888 rm -rf conftest* |
10887 eval "ac_cv_lib_$ac_lib_var=yes" | 10889 eval "ac_cv_lib_$ac_lib_var=yes" |
10888 else | 10890 else |
10889 echo "configure: failed program was:" >&5 | 10891 echo "configure: failed program was:" >&5 |
10890 cat conftest.$ac_ext >&5 | 10892 cat conftest.$ac_ext >&5 |
10929 echo " xemacs will be linked with \"event-unixoid.o\"" | 10931 echo " xemacs will be linked with \"event-unixoid.o\"" |
10930 fi | 10932 fi |
10931 | 10933 |
10932 | 10934 |
10933 echo "checking for database support" 1>&6 | 10935 echo "checking for database support" 1>&6 |
10934 echo "configure:10935: checking for database support" >&5 | 10936 echo "configure:10937: checking for database support" >&5 |
10935 | 10937 |
10936 if test "$with_database_gnudbm" != "no"; then | 10938 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then |
10937 for ac_hdr in ndbm.h | 10939 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` |
10938 do | 10940 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 |
10939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 10941 echo "configure:10942: checking for ndbm.h" >&5 |
10940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10941 echo "configure:10942: checking for $ac_hdr" >&5 | |
10942 | 10942 |
10943 cat > conftest.$ac_ext <<EOF | 10943 cat > conftest.$ac_ext <<EOF |
10944 #line 10945 "configure" | 10944 #line 10945 "configure" |
10945 #include "confdefs.h" | 10945 #include "confdefs.h" |
10946 #include <$ac_hdr> | 10946 #include <ndbm.h> |
10947 EOF | 10947 EOF |
10948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 10948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
10949 { (eval echo configure:10950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 10949 { (eval echo configure:10950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10950 ac_err=`grep -v '^ *+' conftest.out` | 10950 ac_err=`grep -v '^ *+' conftest.out` |
10951 if test -z "$ac_err"; then | 10951 if test -z "$ac_err"; then |
10959 eval "ac_cv_header_$ac_safe=no" | 10959 eval "ac_cv_header_$ac_safe=no" |
10960 fi | 10960 fi |
10961 rm -f conftest* | 10961 rm -f conftest* |
10962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 10962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10963 echo "$ac_t""yes" 1>&6 | 10963 echo "$ac_t""yes" 1>&6 |
10964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 10964 : |
10965 { test "$extra_verbose" = "yes" && cat << EOF | 10965 else |
10966 Defining $ac_tr_hdr | 10966 echo "$ac_t""no" 1>&6 |
10967 EOF | 10967 |
10968 cat >> confdefs.h <<EOF | 10968 test "$with_database_gnudbm" = "yes" -o \ |
10969 #define $ac_tr_hdr 1 | 10969 "$with_database_dbm" = "yes" && \ |
10970 EOF | 10970 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; } |
10971 } | 10971 with_database_gnudbm=no with_database_dbm=no |
10972 have_ndbm_h=yes | 10972 fi |
10973 else | 10973 |
10974 echo "$ac_t""no" 1>&6 | 10974 fi |
10975 fi | 10975 |
10976 done | 10976 if test "$with_database_gnudbm" != "no"; then |
10977 | 10977 |
10978 if test "$have_ndbm_h" = "yes"; then | |
10979 | |
10980 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 | 10978 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 |
10981 echo "configure:10982: checking for dbm_open in -lgdbm" >&5 | 10979 echo "configure:10980: checking for dbm_open in -lgdbm" >&5 |
10982 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` | 10980 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` |
10983 | 10981 |
10984 xe_check_libs=" -lgdbm " | 10982 xe_check_libs=" -lgdbm " |
10985 cat > conftest.$ac_ext <<EOF | 10983 cat > conftest.$ac_ext <<EOF |
10986 #line 10987 "configure" | 10984 #line 10985 "configure" |
10987 #include "confdefs.h" | 10985 #include "confdefs.h" |
10988 /* Override any gcc2 internal prototype to avoid an error. */ | 10986 /* Override any gcc2 internal prototype to avoid an error. */ |
10989 /* We use char because int might match the return type of a gcc2 | 10987 /* We use char because int might match the return type of a gcc2 |
10990 builtin and then its argument prototype would still apply. */ | 10988 builtin and then its argument prototype would still apply. */ |
10991 char dbm_open(); | 10989 char dbm_open(); |
10992 | 10990 |
10993 int main() { | 10991 int main() { |
10994 dbm_open() | 10992 dbm_open() |
10995 ; return 0; } | 10993 ; return 0; } |
10996 EOF | 10994 EOF |
10997 if { (eval echo configure:10998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 10995 if { (eval echo configure:10996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
10998 rm -rf conftest* | 10996 rm -rf conftest* |
10999 eval "ac_cv_lib_$ac_lib_var=yes" | 10997 eval "ac_cv_lib_$ac_lib_var=yes" |
11000 else | 10998 else |
11001 echo "configure: failed program was:" >&5 | 10999 echo "configure: failed program was:" >&5 |
11002 cat conftest.$ac_ext >&5 | 11000 cat conftest.$ac_ext >&5 |
11006 rm -f conftest* | 11004 rm -f conftest* |
11007 xe_check_libs="" | 11005 xe_check_libs="" |
11008 | 11006 |
11009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | 11007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
11010 echo "$ac_t""yes" 1>&6 | 11008 echo "$ac_t""yes" 1>&6 |
11011 with_database_gnudbm=yes have_libgdbm=yes | 11009 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm |
11012 else | 11010 else |
11013 echo "$ac_t""no" 1>&6 | 11011 echo "$ac_t""no" 1>&6 |
11014 fi | 11012 if test "$with_database_gnudbm" = "yes"; then |
11015 | 11013 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; } |
11016 | 11014 fi |
11017 fi | 11015 with_database_gnudbm=no |
11018 if test "$with_database_gnudbm" != "yes"; then | 11016 fi |
11019 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 | 11017 |
11020 echo "configure:11021: checking for dbm_open" >&5 | 11018 |
11021 | 11019 fi |
11022 cat > conftest.$ac_ext <<EOF | 11020 |
11023 #line 11024 "configure" | 11021 if test "$with_database_dbm" != "no"; then |
11022 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 | |
11023 echo "configure:11024: checking for dbm_open" >&5 | |
11024 | |
11025 cat > conftest.$ac_ext <<EOF | |
11026 #line 11027 "configure" | |
11024 #include "confdefs.h" | 11027 #include "confdefs.h" |
11025 /* System header to define __stub macros and hopefully few prototypes, | 11028 /* System header to define __stub macros and hopefully few prototypes, |
11026 which can conflict with char dbm_open(); below. */ | 11029 which can conflict with char dbm_open(); below. */ |
11027 #include <assert.h> | 11030 #include <assert.h> |
11028 /* Override any gcc2 internal prototype to avoid an error. */ | 11031 /* Override any gcc2 internal prototype to avoid an error. */ |
11041 dbm_open(); | 11044 dbm_open(); |
11042 #endif | 11045 #endif |
11043 | 11046 |
11044 ; return 0; } | 11047 ; return 0; } |
11045 EOF | 11048 EOF |
11046 if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11049 if { (eval echo configure:11050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11047 rm -rf conftest* | 11050 rm -rf conftest* |
11048 eval "ac_cv_func_dbm_open=yes" | 11051 eval "ac_cv_func_dbm_open=yes" |
11049 else | 11052 else |
11050 echo "configure: failed program was:" >&5 | 11053 echo "configure: failed program was:" >&5 |
11051 cat conftest.$ac_ext >&5 | 11054 cat conftest.$ac_ext >&5 |
11054 fi | 11057 fi |
11055 rm -f conftest* | 11058 rm -f conftest* |
11056 | 11059 |
11057 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then | 11060 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then |
11058 echo "$ac_t""yes" 1>&6 | 11061 echo "$ac_t""yes" 1>&6 |
11059 with_database_gnudbm=yes | 11062 with_database_dbm=yes libdbm= |
11060 else | 11063 else |
11061 echo "$ac_t""no" 1>&6 | 11064 echo "$ac_t""no" 1>&6 |
11062 fi | 11065 |
11063 | 11066 |
11064 fi | 11067 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 |
11065 if test "$with_database_gnudbm" = "yes"; then | 11068 echo "configure:11069: checking for dbm_open in -ldbm" >&5 |
11066 { test "$extra_verbose" = "yes" && cat << \EOF | 11069 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` |
11067 Defining HAVE_DBM | 11070 |
11068 EOF | 11071 xe_check_libs=" -ldbm " |
11069 cat >> confdefs.h <<\EOF | 11072 cat > conftest.$ac_ext <<EOF |
11070 #define HAVE_DBM 1 | 11073 #line 11074 "configure" |
11071 EOF | 11074 #include "confdefs.h" |
11072 } | |
11073 | |
11074 test "$have_libgdbm" = "yes" && LIBS="-lgdbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdbm\" to \$LIBS"; fi | |
11075 with_database_dbm=no | |
11076 else with_database_gnudbm=no | |
11077 fi | |
11078 fi | |
11079 | |
11080 if test "$with_database_dbm" != "no"; then | |
11081 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 | |
11082 echo "configure:11083: checking for dbm_open" >&5 | |
11083 | |
11084 cat > conftest.$ac_ext <<EOF | |
11085 #line 11086 "configure" | |
11086 #include "confdefs.h" | |
11087 /* System header to define __stub macros and hopefully few prototypes, | |
11088 which can conflict with char dbm_open(); below. */ | |
11089 #include <assert.h> | |
11090 /* Override any gcc2 internal prototype to avoid an error. */ | 11075 /* Override any gcc2 internal prototype to avoid an error. */ |
11091 /* We use char because int might match the return type of a gcc2 | 11076 /* We use char because int might match the return type of a gcc2 |
11092 builtin and then its argument prototype would still apply. */ | 11077 builtin and then its argument prototype would still apply. */ |
11093 char dbm_open(); | 11078 char dbm_open(); |
11094 | 11079 |
11095 int main() { | 11080 int main() { |
11096 | |
11097 /* The GNU C library defines this for functions which it implements | |
11098 to always fail with ENOSYS. Some functions are actually named | |
11099 something starting with __ and the normal name is an alias. */ | |
11100 #if defined (__stub_dbm_open) || defined (__stub___dbm_open) | |
11101 choke me | |
11102 #else | |
11103 dbm_open(); | |
11104 #endif | |
11105 | |
11106 ; return 0; } | |
11107 EOF | |
11108 if { (eval echo configure:11109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
11109 rm -rf conftest* | |
11110 eval "ac_cv_func_dbm_open=yes" | |
11111 else | |
11112 echo "configure: failed program was:" >&5 | |
11113 cat conftest.$ac_ext >&5 | |
11114 rm -rf conftest* | |
11115 eval "ac_cv_func_dbm_open=no" | |
11116 fi | |
11117 rm -f conftest* | |
11118 | |
11119 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then | |
11120 echo "$ac_t""yes" 1>&6 | |
11121 with_database_dbm=yes need_libdbm=no | |
11122 else | |
11123 echo "$ac_t""no" 1>&6 | |
11124 fi | |
11125 | |
11126 if test "$need_libdbm" != "no"; then | |
11127 | |
11128 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 | |
11129 echo "configure:11130: checking for dbm_open in -ldbm" >&5 | |
11130 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` | |
11131 | |
11132 xe_check_libs=" -ldbm " | |
11133 cat > conftest.$ac_ext <<EOF | |
11134 #line 11135 "configure" | |
11135 #include "confdefs.h" | |
11136 /* Override any gcc2 internal prototype to avoid an error. */ | |
11137 /* We use char because int might match the return type of a gcc2 | |
11138 builtin and then its argument prototype would still apply. */ | |
11139 char dbm_open(); | |
11140 | |
11141 int main() { | |
11142 dbm_open() | 11081 dbm_open() |
11143 ; return 0; } | 11082 ; return 0; } |
11144 EOF | 11083 EOF |
11145 if { (eval echo configure:11146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11084 if { (eval echo configure:11085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11146 rm -rf conftest* | 11085 rm -rf conftest* |
11147 eval "ac_cv_lib_$ac_lib_var=yes" | 11086 eval "ac_cv_lib_$ac_lib_var=yes" |
11148 else | 11087 else |
11149 echo "configure: failed program was:" >&5 | 11088 echo "configure: failed program was:" >&5 |
11150 cat conftest.$ac_ext >&5 | 11089 cat conftest.$ac_ext >&5 |
11154 rm -f conftest* | 11093 rm -f conftest* |
11155 xe_check_libs="" | 11094 xe_check_libs="" |
11156 | 11095 |
11157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | 11096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
11158 echo "$ac_t""yes" 1>&6 | 11097 echo "$ac_t""yes" 1>&6 |
11159 with_database_dbm=yes need_libdbm=yes | 11098 with_database_dbm=yes libdbm=-ldbm |
11160 else | 11099 else |
11161 echo "$ac_t""no" 1>&6 | 11100 echo "$ac_t""no" 1>&6 |
11162 fi | 11101 test "$with_database_dbm" = "yes" && \ |
11163 | 11102 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; } |
11164 | 11103 with_database_dbm=no |
11165 fi | 11104 fi |
11166 if test "$with_database_dbm" = "yes"; then | 11105 |
11167 { test "$extra_verbose" = "yes" && cat << \EOF | 11106 |
11107 fi | |
11108 | |
11109 fi | |
11110 | |
11111 if test -n "$libdbm"; then LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi; fi | |
11112 if test "$with_database_gnudbm" = "yes" -o \ | |
11113 "$with_database_dbm" = "yes"; then | |
11114 { test "$extra_verbose" = "yes" && cat << \EOF | |
11168 Defining HAVE_DBM | 11115 Defining HAVE_DBM |
11169 EOF | 11116 EOF |
11170 cat >> confdefs.h <<\EOF | 11117 cat >> confdefs.h <<\EOF |
11171 #define HAVE_DBM 1 | 11118 #define HAVE_DBM 1 |
11172 EOF | 11119 EOF |
11173 } | 11120 } |
11174 | 11121 |
11175 test "$need_libdbm" = "yes" && LIBS="-ldbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldbm\" to \$LIBS"; fi | |
11176 else with_database_dbm=no | |
11177 fi | |
11178 fi | 11122 fi |
11179 | 11123 |
11180 if test "$with_database_berkdb" != "no"; then | 11124 if test "$with_database_berkdb" != "no"; then |
11181 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 | 11125 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 |
11182 echo "configure:11183: checking for Berkeley db.h" >&5 | 11126 echo "configure:11127: checking for Berkeley db.h" >&5 |
11183 for path in "db/db.h" "db.h"; do | 11127 for path in "db/db.h" "db.h"; do |
11184 cat > conftest.$ac_ext <<EOF | 11128 cat > conftest.$ac_ext <<EOF |
11185 #line 11186 "configure" | 11129 #line 11130 "configure" |
11186 #include "confdefs.h" | 11130 #include "confdefs.h" |
11187 #ifdef HAVE_INTTYPES_H | 11131 #ifdef HAVE_INTTYPES_H |
11188 #define __BIT_TYPES_DEFINED__ | 11132 #define __BIT_TYPES_DEFINED__ |
11189 #include <inttypes.h> | 11133 #include <inttypes.h> |
11190 typedef uint8_t u_int8_t; | 11134 typedef uint8_t u_int8_t; |
11198 | 11142 |
11199 int main() { | 11143 int main() { |
11200 | 11144 |
11201 ; return 0; } | 11145 ; return 0; } |
11202 EOF | 11146 EOF |
11203 if { (eval echo configure:11204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 11147 if { (eval echo configure:11148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
11204 rm -rf conftest* | 11148 rm -rf conftest* |
11205 db_h_path="$path"; break | 11149 db_h_path="$path"; break |
11206 else | 11150 else |
11207 echo "configure: failed program was:" >&5 | 11151 echo "configure: failed program was:" >&5 |
11208 cat conftest.$ac_ext >&5 | 11152 cat conftest.$ac_ext >&5 |
11214 else echo "$ac_t""$db_h_path" 1>&6 | 11158 else echo "$ac_t""$db_h_path" 1>&6 |
11215 fi | 11159 fi |
11216 | 11160 |
11217 if test "$with_database_berkdb" != "no"; then | 11161 if test "$with_database_berkdb" != "no"; then |
11218 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 | 11162 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 |
11219 echo "configure:11220: checking for Berkeley DB version" >&5 | 11163 echo "configure:11164: checking for Berkeley DB version" >&5 |
11220 cat > conftest.$ac_ext <<EOF | 11164 cat > conftest.$ac_ext <<EOF |
11221 #line 11222 "configure" | 11165 #line 11166 "configure" |
11222 #include "confdefs.h" | 11166 #include "confdefs.h" |
11223 #include <$db_h_path> | 11167 #include <$db_h_path> |
11224 #if DB_VERSION_MAJOR > 1 | 11168 #if DB_VERSION_MAJOR > 1 |
11225 yes | 11169 yes |
11226 #endif | 11170 #endif |
11235 echo "$ac_t""1" 1>&6; dbfunc=dbopen | 11179 echo "$ac_t""1" 1>&6; dbfunc=dbopen |
11236 fi | 11180 fi |
11237 rm -f conftest* | 11181 rm -f conftest* |
11238 | 11182 |
11239 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 | 11183 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 |
11240 echo "configure:11241: checking for $dbfunc" >&5 | 11184 echo "configure:11185: checking for $dbfunc" >&5 |
11241 | 11185 |
11242 cat > conftest.$ac_ext <<EOF | 11186 cat > conftest.$ac_ext <<EOF |
11243 #line 11244 "configure" | 11187 #line 11188 "configure" |
11244 #include "confdefs.h" | 11188 #include "confdefs.h" |
11245 /* System header to define __stub macros and hopefully few prototypes, | 11189 /* System header to define __stub macros and hopefully few prototypes, |
11246 which can conflict with char $dbfunc(); below. */ | 11190 which can conflict with char $dbfunc(); below. */ |
11247 #include <assert.h> | 11191 #include <assert.h> |
11248 /* Override any gcc2 internal prototype to avoid an error. */ | 11192 /* Override any gcc2 internal prototype to avoid an error. */ |
11261 $dbfunc(); | 11205 $dbfunc(); |
11262 #endif | 11206 #endif |
11263 | 11207 |
11264 ; return 0; } | 11208 ; return 0; } |
11265 EOF | 11209 EOF |
11266 if { (eval echo configure:11267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11210 if { (eval echo configure:11211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11267 rm -rf conftest* | 11211 rm -rf conftest* |
11268 eval "ac_cv_func_$dbfunc=yes" | 11212 eval "ac_cv_func_$dbfunc=yes" |
11269 else | 11213 else |
11270 echo "configure: failed program was:" >&5 | 11214 echo "configure: failed program was:" >&5 |
11271 cat conftest.$ac_ext >&5 | 11215 cat conftest.$ac_ext >&5 |
11280 else | 11224 else |
11281 echo "$ac_t""no" 1>&6 | 11225 echo "$ac_t""no" 1>&6 |
11282 | 11226 |
11283 | 11227 |
11284 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 | 11228 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 |
11285 echo "configure:11286: checking for $dbfunc in -ldb" >&5 | 11229 echo "configure:11230: checking for $dbfunc in -ldb" >&5 |
11286 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` | 11230 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` |
11287 | 11231 |
11288 xe_check_libs=" -ldb " | 11232 xe_check_libs=" -ldb " |
11289 cat > conftest.$ac_ext <<EOF | 11233 cat > conftest.$ac_ext <<EOF |
11290 #line 11291 "configure" | 11234 #line 11235 "configure" |
11291 #include "confdefs.h" | 11235 #include "confdefs.h" |
11292 /* Override any gcc2 internal prototype to avoid an error. */ | 11236 /* Override any gcc2 internal prototype to avoid an error. */ |
11293 /* We use char because int might match the return type of a gcc2 | 11237 /* We use char because int might match the return type of a gcc2 |
11294 builtin and then its argument prototype would still apply. */ | 11238 builtin and then its argument prototype would still apply. */ |
11295 char $dbfunc(); | 11239 char $dbfunc(); |
11296 | 11240 |
11297 int main() { | 11241 int main() { |
11298 $dbfunc() | 11242 $dbfunc() |
11299 ; return 0; } | 11243 ; return 0; } |
11300 EOF | 11244 EOF |
11301 if { (eval echo configure:11302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11245 if { (eval echo configure:11246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11302 rm -rf conftest* | 11246 rm -rf conftest* |
11303 eval "ac_cv_lib_$ac_lib_var=yes" | 11247 eval "ac_cv_lib_$ac_lib_var=yes" |
11304 else | 11248 else |
11305 echo "configure: failed program was:" >&5 | 11249 echo "configure: failed program was:" >&5 |
11306 cat conftest.$ac_ext >&5 | 11250 cat conftest.$ac_ext >&5 |
11360 fi | 11304 fi |
11361 | 11305 |
11362 if test "$with_socks" = "yes"; then | 11306 if test "$with_socks" = "yes"; then |
11363 | 11307 |
11364 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 | 11308 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 |
11365 echo "configure:11366: checking for SOCKSinit in -lsocks" >&5 | 11309 echo "configure:11310: checking for SOCKSinit in -lsocks" >&5 |
11366 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` | 11310 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` |
11367 | 11311 |
11368 xe_check_libs=" -lsocks " | 11312 xe_check_libs=" -lsocks " |
11369 cat > conftest.$ac_ext <<EOF | 11313 cat > conftest.$ac_ext <<EOF |
11370 #line 11371 "configure" | 11314 #line 11315 "configure" |
11371 #include "confdefs.h" | 11315 #include "confdefs.h" |
11372 /* Override any gcc2 internal prototype to avoid an error. */ | 11316 /* Override any gcc2 internal prototype to avoid an error. */ |
11373 /* We use char because int might match the return type of a gcc2 | 11317 /* We use char because int might match the return type of a gcc2 |
11374 builtin and then its argument prototype would still apply. */ | 11318 builtin and then its argument prototype would still apply. */ |
11375 char SOCKSinit(); | 11319 char SOCKSinit(); |
11376 | 11320 |
11377 int main() { | 11321 int main() { |
11378 SOCKSinit() | 11322 SOCKSinit() |
11379 ; return 0; } | 11323 ; return 0; } |
11380 EOF | 11324 EOF |
11381 if { (eval echo configure:11382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11325 if { (eval echo configure:11326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11382 rm -rf conftest* | 11326 rm -rf conftest* |
11383 eval "ac_cv_lib_$ac_lib_var=yes" | 11327 eval "ac_cv_lib_$ac_lib_var=yes" |
11384 else | 11328 else |
11385 echo "configure: failed program was:" >&5 | 11329 echo "configure: failed program was:" >&5 |
11386 cat conftest.$ac_ext >&5 | 11330 cat conftest.$ac_ext >&5 |
11435 | 11379 |
11436 for ac_hdr in dlfcn.h | 11380 for ac_hdr in dlfcn.h |
11437 do | 11381 do |
11438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 11382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 11383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
11440 echo "configure:11441: checking for $ac_hdr" >&5 | 11384 echo "configure:11385: checking for $ac_hdr" >&5 |
11441 | 11385 |
11442 cat > conftest.$ac_ext <<EOF | 11386 cat > conftest.$ac_ext <<EOF |
11443 #line 11444 "configure" | 11387 #line 11388 "configure" |
11444 #include "confdefs.h" | 11388 #include "confdefs.h" |
11445 #include <$ac_hdr> | 11389 #include <$ac_hdr> |
11446 EOF | 11390 EOF |
11447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
11448 { (eval echo configure:11449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11392 { (eval echo configure:11393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11449 ac_err=`grep -v '^ *+' conftest.out` | 11393 ac_err=`grep -v '^ *+' conftest.out` |
11450 if test -z "$ac_err"; then | 11394 if test -z "$ac_err"; then |
11451 rm -rf conftest* | 11395 rm -rf conftest* |
11452 eval "ac_cv_header_$ac_safe=yes" | 11396 eval "ac_cv_header_$ac_safe=yes" |
11453 else | 11397 else |
11474 fi | 11418 fi |
11475 done | 11419 done |
11476 | 11420 |
11477 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { | 11421 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { |
11478 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | 11422 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
11479 echo "configure:11480: checking for dlopen in -ldl" >&5 | 11423 echo "configure:11424: checking for dlopen in -ldl" >&5 |
11480 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | 11424 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
11481 | 11425 |
11482 xe_check_libs=" -ldl " | 11426 xe_check_libs=" -ldl " |
11483 cat > conftest.$ac_ext <<EOF | 11427 cat > conftest.$ac_ext <<EOF |
11484 #line 11485 "configure" | 11428 #line 11429 "configure" |
11485 #include "confdefs.h" | 11429 #include "confdefs.h" |
11486 /* Override any gcc2 internal prototype to avoid an error. */ | 11430 /* Override any gcc2 internal prototype to avoid an error. */ |
11487 /* We use char because int might match the return type of a gcc2 | 11431 /* We use char because int might match the return type of a gcc2 |
11488 builtin and then its argument prototype would still apply. */ | 11432 builtin and then its argument prototype would still apply. */ |
11489 char dlopen(); | 11433 char dlopen(); |
11490 | 11434 |
11491 int main() { | 11435 int main() { |
11492 dlopen() | 11436 dlopen() |
11493 ; return 0; } | 11437 ; return 0; } |
11494 EOF | 11438 EOF |
11495 if { (eval echo configure:11496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11439 if { (eval echo configure:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11496 rm -rf conftest* | 11440 rm -rf conftest* |
11497 eval "ac_cv_lib_$ac_lib_var=yes" | 11441 eval "ac_cv_lib_$ac_lib_var=yes" |
11498 else | 11442 else |
11499 echo "configure: failed program was:" >&5 | 11443 echo "configure: failed program was:" >&5 |
11500 cat conftest.$ac_ext >&5 | 11444 cat conftest.$ac_ext >&5 |
11519 fi | 11463 fi |
11520 | 11464 |
11521 } | 11465 } |
11522 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { | 11466 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { |
11523 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 | 11467 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 |
11524 echo "configure:11525: checking for _dlopen in -lc" >&5 | 11468 echo "configure:11469: checking for _dlopen in -lc" >&5 |
11525 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` | 11469 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` |
11526 | 11470 |
11527 xe_check_libs=" -lc " | 11471 xe_check_libs=" -lc " |
11528 cat > conftest.$ac_ext <<EOF | 11472 cat > conftest.$ac_ext <<EOF |
11529 #line 11530 "configure" | 11473 #line 11474 "configure" |
11530 #include "confdefs.h" | 11474 #include "confdefs.h" |
11531 /* Override any gcc2 internal prototype to avoid an error. */ | 11475 /* Override any gcc2 internal prototype to avoid an error. */ |
11532 /* We use char because int might match the return type of a gcc2 | 11476 /* We use char because int might match the return type of a gcc2 |
11533 builtin and then its argument prototype would still apply. */ | 11477 builtin and then its argument prototype would still apply. */ |
11534 char _dlopen(); | 11478 char _dlopen(); |
11535 | 11479 |
11536 int main() { | 11480 int main() { |
11537 _dlopen() | 11481 _dlopen() |
11538 ; return 0; } | 11482 ; return 0; } |
11539 EOF | 11483 EOF |
11540 if { (eval echo configure:11541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11484 if { (eval echo configure:11485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11541 rm -rf conftest* | 11485 rm -rf conftest* |
11542 eval "ac_cv_lib_$ac_lib_var=yes" | 11486 eval "ac_cv_lib_$ac_lib_var=yes" |
11543 else | 11487 else |
11544 echo "configure: failed program was:" >&5 | 11488 echo "configure: failed program was:" >&5 |
11545 cat conftest.$ac_ext >&5 | 11489 cat conftest.$ac_ext >&5 |
11564 fi | 11508 fi |
11565 | 11509 |
11566 } | 11510 } |
11567 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { | 11511 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { |
11568 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 | 11512 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 |
11569 echo "configure:11570: checking for dlopen in -lc" >&5 | 11513 echo "configure:11514: checking for dlopen in -lc" >&5 |
11570 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` | 11514 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` |
11571 | 11515 |
11572 xe_check_libs=" -lc " | 11516 xe_check_libs=" -lc " |
11573 cat > conftest.$ac_ext <<EOF | 11517 cat > conftest.$ac_ext <<EOF |
11574 #line 11575 "configure" | 11518 #line 11519 "configure" |
11575 #include "confdefs.h" | 11519 #include "confdefs.h" |
11576 /* Override any gcc2 internal prototype to avoid an error. */ | 11520 /* Override any gcc2 internal prototype to avoid an error. */ |
11577 /* We use char because int might match the return type of a gcc2 | 11521 /* We use char because int might match the return type of a gcc2 |
11578 builtin and then its argument prototype would still apply. */ | 11522 builtin and then its argument prototype would still apply. */ |
11579 char dlopen(); | 11523 char dlopen(); |
11580 | 11524 |
11581 int main() { | 11525 int main() { |
11582 dlopen() | 11526 dlopen() |
11583 ; return 0; } | 11527 ; return 0; } |
11584 EOF | 11528 EOF |
11585 if { (eval echo configure:11586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11529 if { (eval echo configure:11530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11586 rm -rf conftest* | 11530 rm -rf conftest* |
11587 eval "ac_cv_lib_$ac_lib_var=yes" | 11531 eval "ac_cv_lib_$ac_lib_var=yes" |
11588 else | 11532 else |
11589 echo "configure: failed program was:" >&5 | 11533 echo "configure: failed program was:" >&5 |
11590 cat conftest.$ac_ext >&5 | 11534 cat conftest.$ac_ext >&5 |
11609 fi | 11553 fi |
11610 | 11554 |
11611 } | 11555 } |
11612 test -z "$with_shlib" && { | 11556 test -z "$with_shlib" && { |
11613 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 | 11557 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
11614 echo "configure:11615: checking for shl_load in -ldld" >&5 | 11558 echo "configure:11559: checking for shl_load in -ldld" >&5 |
11615 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` | 11559 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
11616 | 11560 |
11617 xe_check_libs=" -ldld " | 11561 xe_check_libs=" -ldld " |
11618 cat > conftest.$ac_ext <<EOF | 11562 cat > conftest.$ac_ext <<EOF |
11619 #line 11620 "configure" | 11563 #line 11564 "configure" |
11620 #include "confdefs.h" | 11564 #include "confdefs.h" |
11621 /* Override any gcc2 internal prototype to avoid an error. */ | 11565 /* Override any gcc2 internal prototype to avoid an error. */ |
11622 /* We use char because int might match the return type of a gcc2 | 11566 /* We use char because int might match the return type of a gcc2 |
11623 builtin and then its argument prototype would still apply. */ | 11567 builtin and then its argument prototype would still apply. */ |
11624 char shl_load(); | 11568 char shl_load(); |
11625 | 11569 |
11626 int main() { | 11570 int main() { |
11627 shl_load() | 11571 shl_load() |
11628 ; return 0; } | 11572 ; return 0; } |
11629 EOF | 11573 EOF |
11630 if { (eval echo configure:11631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11574 if { (eval echo configure:11575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11631 rm -rf conftest* | 11575 rm -rf conftest* |
11632 eval "ac_cv_lib_$ac_lib_var=yes" | 11576 eval "ac_cv_lib_$ac_lib_var=yes" |
11633 else | 11577 else |
11634 echo "configure: failed program was:" >&5 | 11578 echo "configure: failed program was:" >&5 |
11635 cat conftest.$ac_ext >&5 | 11579 cat conftest.$ac_ext >&5 |
11654 fi | 11598 fi |
11655 | 11599 |
11656 } | 11600 } |
11657 test -z "$with_shlib" && { | 11601 test -z "$with_shlib" && { |
11658 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 | 11602 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 |
11659 echo "configure:11660: checking for dld_init in -ldld" >&5 | 11603 echo "configure:11604: checking for dld_init in -ldld" >&5 |
11660 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` | 11604 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` |
11661 | 11605 |
11662 xe_check_libs=" -ldld " | 11606 xe_check_libs=" -ldld " |
11663 cat > conftest.$ac_ext <<EOF | 11607 cat > conftest.$ac_ext <<EOF |
11664 #line 11665 "configure" | 11608 #line 11609 "configure" |
11665 #include "confdefs.h" | 11609 #include "confdefs.h" |
11666 /* Override any gcc2 internal prototype to avoid an error. */ | 11610 /* Override any gcc2 internal prototype to avoid an error. */ |
11667 /* We use char because int might match the return type of a gcc2 | 11611 /* We use char because int might match the return type of a gcc2 |
11668 builtin and then its argument prototype would still apply. */ | 11612 builtin and then its argument prototype would still apply. */ |
11669 char dld_init(); | 11613 char dld_init(); |
11670 | 11614 |
11671 int main() { | 11615 int main() { |
11672 dld_init() | 11616 dld_init() |
11673 ; return 0; } | 11617 ; return 0; } |
11674 EOF | 11618 EOF |
11675 if { (eval echo configure:11676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11619 if { (eval echo configure:11620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11676 rm -rf conftest* | 11620 rm -rf conftest* |
11677 eval "ac_cv_lib_$ac_lib_var=yes" | 11621 eval "ac_cv_lib_$ac_lib_var=yes" |
11678 else | 11622 else |
11679 echo "configure: failed program was:" >&5 | 11623 echo "configure: failed program was:" >&5 |
11680 cat conftest.$ac_ext >&5 | 11624 cat conftest.$ac_ext >&5 |
11720 dll_lflags="-shared" | 11664 dll_lflags="-shared" |
11721 dll_cflags="-r" | 11665 dll_cflags="-r" |
11722 dll_oflags="-o " | 11666 dll_oflags="-o " |
11723 | 11667 |
11724 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 | 11668 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 |
11725 echo "configure:11726: checking how to build a shared library" >&5 | 11669 echo "configure:11670: checking how to build a shared library" >&5 |
11726 case `uname -rs` in | 11670 case `uname -rs` in |
11727 UNIX_SV*|UNIX_System_V*) | 11671 UNIX_SV*|UNIX_System_V*) |
11728 dll_lflags="-G" | 11672 dll_lflags="-G" |
11729 dll_cflags=-Kpic | 11673 dll_cflags=-Kpic |
11730 dll_ld="ld" | 11674 dll_ld="ld" |
11811 | 11755 |
11812 | 11756 |
11813 for ac_func in dlerror | 11757 for ac_func in dlerror |
11814 do | 11758 do |
11815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 11759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11816 echo "configure:11817: checking for $ac_func" >&5 | 11760 echo "configure:11761: checking for $ac_func" >&5 |
11817 | 11761 |
11818 cat > conftest.$ac_ext <<EOF | 11762 cat > conftest.$ac_ext <<EOF |
11819 #line 11820 "configure" | 11763 #line 11764 "configure" |
11820 #include "confdefs.h" | 11764 #include "confdefs.h" |
11821 /* System header to define __stub macros and hopefully few prototypes, | 11765 /* System header to define __stub macros and hopefully few prototypes, |
11822 which can conflict with char $ac_func(); below. */ | 11766 which can conflict with char $ac_func(); below. */ |
11823 #include <assert.h> | 11767 #include <assert.h> |
11824 /* Override any gcc2 internal prototype to avoid an error. */ | 11768 /* Override any gcc2 internal prototype to avoid an error. */ |
11837 $ac_func(); | 11781 $ac_func(); |
11838 #endif | 11782 #endif |
11839 | 11783 |
11840 ; return 0; } | 11784 ; return 0; } |
11841 EOF | 11785 EOF |
11842 if { (eval echo configure:11843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11786 if { (eval echo configure:11787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11843 rm -rf conftest* | 11787 rm -rf conftest* |
11844 eval "ac_cv_func_$ac_func=yes" | 11788 eval "ac_cv_func_$ac_func=yes" |
11845 else | 11789 else |
11846 echo "configure: failed program was:" >&5 | 11790 echo "configure: failed program was:" >&5 |
11847 cat conftest.$ac_ext >&5 | 11791 cat conftest.$ac_ext >&5 |
11873 *) ;; | 11817 *) ;; |
11874 esac | 11818 esac |
11875 fi | 11819 fi |
11876 | 11820 |
11877 cat > conftest.$ac_ext <<EOF | 11821 cat > conftest.$ac_ext <<EOF |
11878 #line 11879 "configure" | 11822 #line 11823 "configure" |
11879 #include "confdefs.h" | 11823 #include "confdefs.h" |
11880 int main(int c,char *v[]){return 0;} | 11824 int main(int c,char *v[]){return 0;} |
11881 EOF | 11825 EOF |
11882 if { (eval echo configure:11883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 11826 if { (eval echo configure:11827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
11883 then | 11827 then |
11884 : | 11828 : |
11885 else | 11829 else |
11886 conftest_rc="$?" | 11830 conftest_rc="$?" |
11887 echo "configure: failed program was:" >&5 | 11831 echo "configure: failed program was:" >&5 |