comparison configure @ 349:8429d81ab209 r21-1-4

Import from CVS: tag r21-1-4
author cvs
date Mon, 13 Aug 2007 10:54:28 +0200
parents 8bec6624d99b
children 3b3709405255
comparison
equal deleted inserted replaced
348:0843b9714b95 349:8429d81ab209
231 pkgdir='${datadir}/${PROGNAME}-${version}/lisp' 231 pkgdir='${datadir}/${PROGNAME}-${version}/lisp'
232 package_path='' 232 package_path=''
233 etcdir='${datadir}/${PROGNAME}-${version}/etc' 233 etcdir='${datadir}/${PROGNAME}-${version}/etc'
234 lockdir='${statedir}/${PROGNAME}/lock' 234 lockdir='${statedir}/${PROGNAME}/lock'
235 archlibdir='${libdir}/${PROGNAME}-${version}/${configuration}' 235 archlibdir='${libdir}/${PROGNAME}-${version}/${configuration}'
236 docdir='${archlibdir}'
236 with_site_lisp='no' 237 with_site_lisp='no'
237 with_menubars='' 238 with_menubars=''
238 with_scrollbars='' 239 with_scrollbars=''
239 with_dialogs='' 240 with_dialogs=''
240 with_file_coding='' 241 with_file_coding=''
613 cat >> confdefs.h <<\EOF 614 cat >> confdefs.h <<\EOF
614 #define LOCKDIR_USER_DEFINED 1 615 #define LOCKDIR_USER_DEFINED 1
615 EOF 616 EOF
616 } 617 }
617 ;; 618 ;;
619 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
620 Defining DOCDIR_USER_DEFINED
621 EOF
622 cat >> confdefs.h <<\EOF
623 #define DOCDIR_USER_DEFINED 1
624 EOF
625 }
626 ;;
618 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF 627 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
619 Defining ARCHLIBDIR_USER_DEFINED 628 Defining ARCHLIBDIR_USER_DEFINED
620 EOF 629 EOF
621 cat >> confdefs.h <<\EOF 630 cat >> confdefs.h <<\EOF
622 #define ARCHLIBDIR_USER_DEFINED 1 631 #define ARCHLIBDIR_USER_DEFINED 1
741 ;; 750 ;;
742 esac 751 esac
743 752
744 if test -z "$configuration"; then 753 if test -z "$configuration"; then
745 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 754 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
746 echo "configure:747: checking "host system type"" >&5 755 echo "configure:756: checking "host system type"" >&5
747 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \ 756 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \
748 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then 757 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
749 echo "$ac_t""$configuration" 1>&6 758 echo "$ac_t""$configuration" 1>&6
750 else 759 else
751 echo "$ac_t""unknown" 1>&6 760 echo "$ac_t""unknown" 1>&6
755 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 764 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
756 fi 765 fi
757 fi 766 fi
758 767
759 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 768 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
760 echo "configure:761: checking whether ln -s works" >&5 769 echo "configure:770: checking whether ln -s works" >&5
761 770
762 rm -f conftestdata 771 rm -f conftestdata
763 if ln -s X conftestdata 2>/dev/null 772 if ln -s X conftestdata 2>/dev/null
764 then 773 then
765 rm -f conftestdata 774 rm -f conftestdata
851 #define EMACS_BETA_VERSION $emacs_beta_version 860 #define EMACS_BETA_VERSION $emacs_beta_version
852 EOF 861 EOF
853 } 862 }
854 863
855 else 864 else
856 version="${version}-p${emacs_beta_version}" 865 version="${version}.${emacs_beta_version}"
857 { test "$extra_verbose" = "yes" && cat << EOF 866 { test "$extra_verbose" = "yes" && cat << EOF
858 Defining EMACS_PATCH_LEVEL = $emacs_beta_version 867 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
859 EOF 868 EOF
860 cat >> confdefs.h <<EOF 869 cat >> confdefs.h <<EOF
861 #define EMACS_PATCH_LEVEL $emacs_beta_version 870 #define EMACS_PATCH_LEVEL $emacs_beta_version
992 } 1001 }
993 1002
994 1003
995 1004
996 echo "checking "the configuration name"" 1>&6 1005 echo "checking "the configuration name"" 1>&6
997 echo "configure:998: checking "the configuration name"" >&5 1006 echo "configure:1007: checking "the configuration name"" >&5
998 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1007 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
999 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 1008 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
1000 exit $? 1009 exit $?
1001 fi 1010 fi
1002 1011
1485 xe_save_CFLAGS="$CFLAGS" 1494 xe_save_CFLAGS="$CFLAGS"
1486 1495
1487 # Extract the first word of "gcc", so it can be a program name with args. 1496 # Extract the first word of "gcc", so it can be a program name with args.
1488 set dummy gcc; ac_word=$2 1497 set dummy gcc; ac_word=$2
1489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1490 echo "configure:1491: checking for $ac_word" >&5 1499 echo "configure:1500: checking for $ac_word" >&5
1491 1500
1492 if test -n "$CC"; then 1501 if test -n "$CC"; then
1493 ac_cv_prog_CC="$CC" # Let the user override the test. 1502 ac_cv_prog_CC="$CC" # Let the user override the test.
1494 else 1503 else
1495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1511 1520
1512 if test -z "$CC"; then 1521 if test -z "$CC"; then
1513 # Extract the first word of "cc", so it can be a program name with args. 1522 # Extract the first word of "cc", so it can be a program name with args.
1514 set dummy cc; ac_word=$2 1523 set dummy cc; ac_word=$2
1515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1516 echo "configure:1517: checking for $ac_word" >&5 1525 echo "configure:1526: checking for $ac_word" >&5
1517 1526
1518 if test -n "$CC"; then 1527 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test. 1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 else 1529 else
1521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1556 1565
1557 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1566 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1558 fi 1567 fi
1559 1568
1560 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1569 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1561 echo "configure:1562: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1570 echo "configure:1571: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1562 1571
1563 ac_ext=c 1572 ac_ext=c
1564 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1573 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1565 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1574 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1566 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1575 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1568 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1577 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1569 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1578 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1570 cross_compiling=no 1579 cross_compiling=no
1571 1580
1572 cat > conftest.$ac_ext <<EOF 1581 cat > conftest.$ac_ext <<EOF
1573 #line 1574 "configure" 1582 #line 1583 "configure"
1574 #include "confdefs.h" 1583 #include "confdefs.h"
1575 main(){return(0);} 1584 main(){return(0);}
1576 EOF 1585 EOF
1577 if { (eval echo configure:1578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1586 if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1578 ac_cv_prog_cc_works=yes 1587 ac_cv_prog_cc_works=yes
1579 # If we can't run a trivial program, we are probably using a cross compiler. 1588 # If we can't run a trivial program, we are probably using a cross compiler.
1580 if (./conftest; exit) 2>/dev/null; then 1589 if (./conftest; exit) 2>/dev/null; then
1581 ac_cv_prog_cc_cross=no 1590 ac_cv_prog_cc_cross=no
1582 else 1591 else
1592 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1601 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1593 if test $ac_cv_prog_cc_works = no; then 1602 if test $ac_cv_prog_cc_works = no; then
1594 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1603 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1595 fi 1604 fi
1596 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1605 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1597 echo "configure:1598: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1606 echo "configure:1607: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1598 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1607 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1599 cross_compiling=$ac_cv_prog_cc_cross 1608 cross_compiling=$ac_cv_prog_cc_cross
1600 1609
1601 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1610 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1602 echo "configure:1603: checking whether we are using GNU C" >&5 1611 echo "configure:1612: checking whether we are using GNU C" >&5
1603 1612
1604 cat > conftest.c <<EOF 1613 cat > conftest.c <<EOF
1605 #ifdef __GNUC__ 1614 #ifdef __GNUC__
1606 yes; 1615 yes;
1607 #endif 1616 #endif
1608 EOF 1617 EOF
1609 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1618 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1610 ac_cv_prog_gcc=yes 1619 ac_cv_prog_gcc=yes
1611 else 1620 else
1612 ac_cv_prog_gcc=no 1621 ac_cv_prog_gcc=no
1613 fi 1622 fi
1614 1623
1618 GCC=yes 1627 GCC=yes
1619 ac_test_CFLAGS="${CFLAGS+set}" 1628 ac_test_CFLAGS="${CFLAGS+set}"
1620 ac_save_CFLAGS="$CFLAGS" 1629 ac_save_CFLAGS="$CFLAGS"
1621 CFLAGS= 1630 CFLAGS=
1622 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1631 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1623 echo "configure:1624: checking whether ${CC-cc} accepts -g" >&5 1632 echo "configure:1633: checking whether ${CC-cc} accepts -g" >&5
1624 1633
1625 echo 'void f(){}' > conftest.c 1634 echo 'void f(){}' > conftest.c
1626 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1635 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1627 ac_cv_prog_cc_g=yes 1636 ac_cv_prog_cc_g=yes
1628 else 1637 else
1647 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1656 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1648 CC=${NON_GNU_CC-cc} 1657 CC=${NON_GNU_CC-cc}
1649 # Extract the first word of "gcc", so it can be a program name with args. 1658 # Extract the first word of "gcc", so it can be a program name with args.
1650 set dummy gcc; ac_word=$2 1659 set dummy gcc; ac_word=$2
1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1652 echo "configure:1653: checking for $ac_word" >&5 1661 echo "configure:1662: checking for $ac_word" >&5
1653 1662
1654 if test -n "$CC"; then 1663 if test -n "$CC"; then
1655 ac_cv_prog_CC="$CC" # Let the user override the test. 1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1656 else 1665 else
1657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1673 1682
1674 if test -z "$CC"; then 1683 if test -z "$CC"; then
1675 # Extract the first word of "cc", so it can be a program name with args. 1684 # Extract the first word of "cc", so it can be a program name with args.
1676 set dummy cc; ac_word=$2 1685 set dummy cc; ac_word=$2
1677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1678 echo "configure:1679: checking for $ac_word" >&5 1687 echo "configure:1688: checking for $ac_word" >&5
1679 1688
1680 if test -n "$CC"; then 1689 if test -n "$CC"; then
1681 ac_cv_prog_CC="$CC" # Let the user override the test. 1690 ac_cv_prog_CC="$CC" # Let the user override the test.
1682 else 1691 else
1683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1718 1727
1719 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1728 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1720 fi 1729 fi
1721 1730
1722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1732 echo "configure:1733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1724 1733
1725 ac_ext=c 1734 ac_ext=c
1726 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1735 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1727 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1736 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1728 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1737 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1730 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1739 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1731 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1740 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1732 cross_compiling=no 1741 cross_compiling=no
1733 1742
1734 cat > conftest.$ac_ext <<EOF 1743 cat > conftest.$ac_ext <<EOF
1735 #line 1736 "configure" 1744 #line 1745 "configure"
1736 #include "confdefs.h" 1745 #include "confdefs.h"
1737 main(){return(0);} 1746 main(){return(0);}
1738 EOF 1747 EOF
1739 if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1740 ac_cv_prog_cc_works=yes 1749 ac_cv_prog_cc_works=yes
1741 # If we can't run a trivial program, we are probably using a cross compiler. 1750 # If we can't run a trivial program, we are probably using a cross compiler.
1742 if (./conftest; exit) 2>/dev/null; then 1751 if (./conftest; exit) 2>/dev/null; then
1743 ac_cv_prog_cc_cross=no 1752 ac_cv_prog_cc_cross=no
1744 else 1753 else
1754 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1763 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1755 if test $ac_cv_prog_cc_works = no; then 1764 if test $ac_cv_prog_cc_works = no; then
1756 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1765 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1757 fi 1766 fi
1758 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1767 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1759 echo "configure:1760: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1768 echo "configure:1769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1760 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1769 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1761 cross_compiling=$ac_cv_prog_cc_cross 1770 cross_compiling=$ac_cv_prog_cc_cross
1762 1771
1763 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1772 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1764 echo "configure:1765: checking whether we are using GNU C" >&5 1773 echo "configure:1774: checking whether we are using GNU C" >&5
1765 1774
1766 cat > conftest.c <<EOF 1775 cat > conftest.c <<EOF
1767 #ifdef __GNUC__ 1776 #ifdef __GNUC__
1768 yes; 1777 yes;
1769 #endif 1778 #endif
1770 EOF 1779 EOF
1771 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1780 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1772 ac_cv_prog_gcc=yes 1781 ac_cv_prog_gcc=yes
1773 else 1782 else
1774 ac_cv_prog_gcc=no 1783 ac_cv_prog_gcc=no
1775 fi 1784 fi
1776 1785
1780 GCC=yes 1789 GCC=yes
1781 ac_test_CFLAGS="${CFLAGS+set}" 1790 ac_test_CFLAGS="${CFLAGS+set}"
1782 ac_save_CFLAGS="$CFLAGS" 1791 ac_save_CFLAGS="$CFLAGS"
1783 CFLAGS= 1792 CFLAGS=
1784 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1793 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1785 echo "configure:1786: checking whether ${CC-cc} accepts -g" >&5 1794 echo "configure:1795: checking whether ${CC-cc} accepts -g" >&5
1786 1795
1787 echo 'void f(){}' > conftest.c 1796 echo 'void f(){}' > conftest.c
1788 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1797 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1789 ac_cv_prog_cc_g=yes 1798 ac_cv_prog_cc_g=yes
1790 else 1799 else
1809 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1818 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1810 CC=gcc 1819 CC=gcc
1811 # Extract the first word of "gcc", so it can be a program name with args. 1820 # Extract the first word of "gcc", so it can be a program name with args.
1812 set dummy gcc; ac_word=$2 1821 set dummy gcc; ac_word=$2
1813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1814 echo "configure:1815: checking for $ac_word" >&5 1823 echo "configure:1824: checking for $ac_word" >&5
1815 1824
1816 if test -n "$CC"; then 1825 if test -n "$CC"; then
1817 ac_cv_prog_CC="$CC" # Let the user override the test. 1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1818 else 1827 else
1819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1835 1844
1836 if test -z "$CC"; then 1845 if test -z "$CC"; then
1837 # Extract the first word of "cc", so it can be a program name with args. 1846 # Extract the first word of "cc", so it can be a program name with args.
1838 set dummy cc; ac_word=$2 1847 set dummy cc; ac_word=$2
1839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1840 echo "configure:1841: checking for $ac_word" >&5 1849 echo "configure:1850: checking for $ac_word" >&5
1841 1850
1842 if test -n "$CC"; then 1851 if test -n "$CC"; then
1843 ac_cv_prog_CC="$CC" # Let the user override the test. 1852 ac_cv_prog_CC="$CC" # Let the user override the test.
1844 else 1853 else
1845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1880 1889
1881 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1890 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1882 fi 1891 fi
1883 1892
1884 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1893 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1885 echo "configure:1886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1894 echo "configure:1895: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1886 1895
1887 ac_ext=c 1896 ac_ext=c
1888 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1897 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1889 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1898 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1890 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1899 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1892 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1901 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1893 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1902 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1894 cross_compiling=no 1903 cross_compiling=no
1895 1904
1896 cat > conftest.$ac_ext <<EOF 1905 cat > conftest.$ac_ext <<EOF
1897 #line 1898 "configure" 1906 #line 1907 "configure"
1898 #include "confdefs.h" 1907 #include "confdefs.h"
1899 main(){return(0);} 1908 main(){return(0);}
1900 EOF 1909 EOF
1901 if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1910 if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1902 ac_cv_prog_cc_works=yes 1911 ac_cv_prog_cc_works=yes
1903 # If we can't run a trivial program, we are probably using a cross compiler. 1912 # If we can't run a trivial program, we are probably using a cross compiler.
1904 if (./conftest; exit) 2>/dev/null; then 1913 if (./conftest; exit) 2>/dev/null; then
1905 ac_cv_prog_cc_cross=no 1914 ac_cv_prog_cc_cross=no
1906 else 1915 else
1916 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1925 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1917 if test $ac_cv_prog_cc_works = no; then 1926 if test $ac_cv_prog_cc_works = no; then
1918 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1927 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1919 fi 1928 fi
1920 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1929 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1921 echo "configure:1922: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1930 echo "configure:1931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1922 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1931 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1923 cross_compiling=$ac_cv_prog_cc_cross 1932 cross_compiling=$ac_cv_prog_cc_cross
1924 1933
1925 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1934 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1926 echo "configure:1927: checking whether we are using GNU C" >&5 1935 echo "configure:1936: checking whether we are using GNU C" >&5
1927 1936
1928 cat > conftest.c <<EOF 1937 cat > conftest.c <<EOF
1929 #ifdef __GNUC__ 1938 #ifdef __GNUC__
1930 yes; 1939 yes;
1931 #endif 1940 #endif
1932 EOF 1941 EOF
1933 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1942 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1934 ac_cv_prog_gcc=yes 1943 ac_cv_prog_gcc=yes
1935 else 1944 else
1936 ac_cv_prog_gcc=no 1945 ac_cv_prog_gcc=no
1937 fi 1946 fi
1938 1947
1942 GCC=yes 1951 GCC=yes
1943 ac_test_CFLAGS="${CFLAGS+set}" 1952 ac_test_CFLAGS="${CFLAGS+set}"
1944 ac_save_CFLAGS="$CFLAGS" 1953 ac_save_CFLAGS="$CFLAGS"
1945 CFLAGS= 1954 CFLAGS=
1946 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1955 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1947 echo "configure:1948: checking whether ${CC-cc} accepts -g" >&5 1956 echo "configure:1957: checking whether ${CC-cc} accepts -g" >&5
1948 1957
1949 echo 'void f(){}' > conftest.c 1958 echo 'void f(){}' > conftest.c
1950 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1959 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1951 ac_cv_prog_cc_g=yes 1960 ac_cv_prog_cc_g=yes
1952 else 1961 else
1975 test -n "$CPP" -a -d "$CPP" && CPP= 1984 test -n "$CPP" -a -d "$CPP" && CPP=
1976 1985
1977 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1986 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1978 1987
1979 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1988 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1980 echo "configure:1981: checking how to run the C preprocessor" >&5 1989 echo "configure:1990: checking how to run the C preprocessor" >&5
1981 # On Suns, sometimes $CPP names a directory. 1990 # On Suns, sometimes $CPP names a directory.
1982 if test -n "$CPP" && test -d "$CPP"; then 1991 if test -n "$CPP" && test -d "$CPP"; then
1983 CPP= 1992 CPP=
1984 fi 1993 fi
1985 if test -z "$CPP"; then 1994 if test -z "$CPP"; then
1988 # substituted into the Makefile and "${CC-cc}" will confuse make. 1997 # substituted into the Makefile and "${CC-cc}" will confuse make.
1989 CPP="${CC-cc} -E" 1998 CPP="${CC-cc} -E"
1990 # On the NeXT, cc -E runs the code through the compiler's parser, 1999 # On the NeXT, cc -E runs the code through the compiler's parser,
1991 # not just through cpp. 2000 # not just through cpp.
1992 cat > conftest.$ac_ext <<EOF 2001 cat > conftest.$ac_ext <<EOF
1993 #line 1994 "configure" 2002 #line 2003 "configure"
1994 #include "confdefs.h" 2003 #include "confdefs.h"
1995 #include <assert.h> 2004 #include <assert.h>
1996 Syntax Error 2005 Syntax Error
1997 EOF 2006 EOF
1998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999 { (eval echo configure:2000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2008 { (eval echo configure:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2000 ac_err=`grep -v '^ *+' conftest.out` 2009 ac_err=`grep -v '^ *+' conftest.out`
2001 if test -z "$ac_err"; then 2010 if test -z "$ac_err"; then
2002 : 2011 :
2003 else 2012 else
2004 echo "$ac_err" >&5 2013 echo "$ac_err" >&5
2005 echo "configure: failed program was:" >&5 2014 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5 2015 cat conftest.$ac_ext >&5
2007 rm -rf conftest* 2016 rm -rf conftest*
2008 CPP="${CC-cc} -E -traditional-cpp" 2017 CPP="${CC-cc} -E -traditional-cpp"
2009 cat > conftest.$ac_ext <<EOF 2018 cat > conftest.$ac_ext <<EOF
2010 #line 2011 "configure" 2019 #line 2020 "configure"
2011 #include "confdefs.h" 2020 #include "confdefs.h"
2012 #include <assert.h> 2021 #include <assert.h>
2013 Syntax Error 2022 Syntax Error
2014 EOF 2023 EOF
2015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2016 { (eval echo configure:2017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2025 { (eval echo configure:2026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2017 ac_err=`grep -v '^ *+' conftest.out` 2026 ac_err=`grep -v '^ *+' conftest.out`
2018 if test -z "$ac_err"; then 2027 if test -z "$ac_err"; then
2019 : 2028 :
2020 else 2029 else
2021 echo "$ac_err" >&5 2030 echo "$ac_err" >&5
2034 fi 2043 fi
2035 echo "$ac_t""$CPP" 1>&6 2044 echo "$ac_t""$CPP" 1>&6
2036 2045
2037 2046
2038 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2047 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2039 echo "configure:2040: checking for AIX" >&5 2048 echo "configure:2049: checking for AIX" >&5
2040 cat > conftest.$ac_ext <<EOF 2049 cat > conftest.$ac_ext <<EOF
2041 #line 2042 "configure" 2050 #line 2051 "configure"
2042 #include "confdefs.h" 2051 #include "confdefs.h"
2043 #ifdef _AIX 2052 #ifdef _AIX
2044 yes 2053 yes
2045 #endif 2054 #endif
2046 2055
2063 rm -f conftest* 2072 rm -f conftest*
2064 2073
2065 2074
2066 2075
2067 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2076 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2068 echo "configure:2069: checking for GNU libc" >&5 2077 echo "configure:2078: checking for GNU libc" >&5
2069 cat > conftest.$ac_ext <<EOF 2078 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure" 2079 #line 2080 "configure"
2071 #include "confdefs.h" 2080 #include "confdefs.h"
2072 #include <features.h> 2081 #include <features.h>
2073 int main() { 2082 int main() {
2074 2083
2075 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2084 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2077 ******* ======= ******** &&&&&&&& 2086 ******* ======= ******** &&&&&&&&
2078 #endif 2087 #endif
2079 2088
2080 ; return 0; } 2089 ; return 0; }
2081 EOF 2090 EOF
2082 if { (eval echo configure:2083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2091 if { (eval echo configure:2092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2083 rm -rf conftest* 2092 rm -rf conftest*
2084 have_glibc=yes 2093 have_glibc=yes
2085 else 2094 else
2086 echo "configure: failed program was:" >&5 2095 echo "configure: failed program was:" >&5
2087 cat conftest.$ac_ext >&5 2096 cat conftest.$ac_ext >&5
2099 } 2108 }
2100 2109
2101 2110
2102 2111
2103 cat > conftest.$ac_ext <<EOF 2112 cat > conftest.$ac_ext <<EOF
2104 #line 2105 "configure" 2113 #line 2114 "configure"
2105 #include "confdefs.h" 2114 #include "confdefs.h"
2106 int main () { 2115 int main () {
2107 #if defined __SUNPRO_C 2116 #if defined __SUNPRO_C
2108 return 11; 2117 return 11;
2109 #elif defined __DECC 2118 #elif defined __DECC
2111 #else 2120 #else
2112 return 0; 2121 return 0;
2113 #endif 2122 #endif
2114 } 2123 }
2115 EOF 2124 EOF
2116 if { (eval echo configure:2117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2125 if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2117 then 2126 then
2118 : 2127 :
2119 else 2128 else
2120 conftest_rc="$?" 2129 conftest_rc="$?"
2121 echo "configure: failed program was:" >&5 2130 echo "configure: failed program was:" >&5
2381 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2390 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2382 echo " xemacs will be linked with \"$unexec\"" 2391 echo " xemacs will be linked with \"$unexec\""
2383 fi 2392 fi
2384 2393
2385 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2394 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2386 echo "configure:2387: checking for dynodump" >&5 2395 echo "configure:2396: checking for dynodump" >&5
2387 if test "$unexec" != "unexsol2.o"; then 2396 if test "$unexec" != "unexsol2.o"; then
2388 echo "$ac_t""no" 1>&6 2397 echo "$ac_t""no" 1>&6
2389 else 2398 else
2390 echo "$ac_t""yes" 1>&6 2399 echo "$ac_t""yes" 1>&6
2391 { test "$extra_verbose" = "yes" && cat << \EOF 2400 { test "$extra_verbose" = "yes" && cat << \EOF
2419 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2428 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2420 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2429 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2421 done 2430 done
2422 2431
2423 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2432 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2424 echo "configure:2425: checking for terminateAndUnload in -lC" >&5 2433 echo "configure:2434: checking for terminateAndUnload in -lC" >&5
2425 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2434 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2426 2435
2427 xe_check_libs=" -lC " 2436 xe_check_libs=" -lC "
2428 cat > conftest.$ac_ext <<EOF 2437 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure" 2438 #line 2439 "configure"
2430 #include "confdefs.h" 2439 #include "confdefs.h"
2431 /* Override any gcc2 internal prototype to avoid an error. */ 2440 /* Override any gcc2 internal prototype to avoid an error. */
2432 /* We use char because int might match the return type of a gcc2 2441 /* We use char because int might match the return type of a gcc2
2433 builtin and then its argument prototype would still apply. */ 2442 builtin and then its argument prototype would still apply. */
2434 char terminateAndUnload(); 2443 char terminateAndUnload();
2435 2444
2436 int main() { 2445 int main() {
2437 terminateAndUnload() 2446 terminateAndUnload()
2438 ; return 0; } 2447 ; return 0; }
2439 EOF 2448 EOF
2440 if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2449 if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2441 rm -rf conftest* 2450 rm -rf conftest*
2442 eval "ac_cv_lib_$ac_lib_var=yes" 2451 eval "ac_cv_lib_$ac_lib_var=yes"
2443 else 2452 else
2444 echo "configure: failed program was:" >&5 2453 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5 2454 cat conftest.$ac_ext >&5
2519 esac 2528 esac
2520 fi 2529 fi
2521 2530
2522 if test "$add_runtime_path" = "yes"; then 2531 if test "$add_runtime_path" = "yes"; then
2523 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2532 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2524 echo "configure:2525: checking "for runtime libraries flag"" >&5 2533 echo "configure:2534: checking "for runtime libraries flag"" >&5
2525 case "$opsys" in 2534 case "$opsys" in
2526 sol2 ) dash_r="-R" ;; 2535 sol2 ) dash_r="-R" ;;
2527 decosf* | linux* | irix*) dash_r="-rpath " ;; 2536 decosf* | linux* | irix*) dash_r="-rpath " ;;
2528 *) 2537 *)
2529 dash_r="" 2538 dash_r=""
2541 esac 2550 esac
2542 shift 2551 shift
2543 done 2552 done
2544 fi 2553 fi
2545 cat > conftest.$ac_ext <<EOF 2554 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure" 2555 #line 2556 "configure"
2547 #include "confdefs.h" 2556 #include "confdefs.h"
2548 2557
2549 int main() { 2558 int main() {
2550 2559
2551 ; return 0; } 2560 ; return 0; }
2552 EOF 2561 EOF
2553 if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2562 if { (eval echo configure:2563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2554 rm -rf conftest* 2563 rm -rf conftest*
2555 dash_r="$try_dash_r" 2564 dash_r="$try_dash_r"
2556 else 2565 else
2557 echo "configure: failed program was:" >&5 2566 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5 2567 cat conftest.$ac_ext >&5
2649 else 2658 else
2650 doug_lea_malloc=no 2659 doug_lea_malloc=no
2651 fi 2660 fi
2652 after_morecore_hook_exists=yes 2661 after_morecore_hook_exists=yes
2653 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2662 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2654 echo "configure:2655: checking for malloc_get_state" >&5 2663 echo "configure:2664: checking for malloc_get_state" >&5
2655 2664
2656 cat > conftest.$ac_ext <<EOF 2665 cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure" 2666 #line 2667 "configure"
2658 #include "confdefs.h" 2667 #include "confdefs.h"
2659 /* System header to define __stub macros and hopefully few prototypes, 2668 /* System header to define __stub macros and hopefully few prototypes,
2660 which can conflict with char malloc_get_state(); below. */ 2669 which can conflict with char malloc_get_state(); below. */
2661 #include <assert.h> 2670 #include <assert.h>
2662 /* Override any gcc2 internal prototype to avoid an error. */ 2671 /* Override any gcc2 internal prototype to avoid an error. */
2675 malloc_get_state(); 2684 malloc_get_state();
2676 #endif 2685 #endif
2677 2686
2678 ; return 0; } 2687 ; return 0; }
2679 EOF 2688 EOF
2680 if { (eval echo configure:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2689 if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2681 rm -rf conftest* 2690 rm -rf conftest*
2682 eval "ac_cv_func_malloc_get_state=yes" 2691 eval "ac_cv_func_malloc_get_state=yes"
2683 else 2692 else
2684 echo "configure: failed program was:" >&5 2693 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5 2694 cat conftest.$ac_ext >&5
2695 echo "$ac_t""no" 1>&6 2704 echo "$ac_t""no" 1>&6
2696 doug_lea_malloc=no 2705 doug_lea_malloc=no
2697 fi 2706 fi
2698 2707
2699 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2708 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2700 echo "configure:2701: checking for malloc_set_state" >&5 2709 echo "configure:2710: checking for malloc_set_state" >&5
2701 2710
2702 cat > conftest.$ac_ext <<EOF 2711 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure" 2712 #line 2713 "configure"
2704 #include "confdefs.h" 2713 #include "confdefs.h"
2705 /* System header to define __stub macros and hopefully few prototypes, 2714 /* System header to define __stub macros and hopefully few prototypes,
2706 which can conflict with char malloc_set_state(); below. */ 2715 which can conflict with char malloc_set_state(); below. */
2707 #include <assert.h> 2716 #include <assert.h>
2708 /* Override any gcc2 internal prototype to avoid an error. */ 2717 /* Override any gcc2 internal prototype to avoid an error. */
2721 malloc_set_state(); 2730 malloc_set_state();
2722 #endif 2731 #endif
2723 2732
2724 ; return 0; } 2733 ; return 0; }
2725 EOF 2734 EOF
2726 if { (eval echo configure:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2735 if { (eval echo configure:2736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2727 rm -rf conftest* 2736 rm -rf conftest*
2728 eval "ac_cv_func_malloc_set_state=yes" 2737 eval "ac_cv_func_malloc_set_state=yes"
2729 else 2738 else
2730 echo "configure: failed program was:" >&5 2739 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5 2740 cat conftest.$ac_ext >&5
2741 echo "$ac_t""no" 1>&6 2750 echo "$ac_t""no" 1>&6
2742 doug_lea_malloc=no 2751 doug_lea_malloc=no
2743 fi 2752 fi
2744 2753
2745 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2754 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2746 echo "configure:2747: checking whether __after_morecore_hook exists" >&5 2755 echo "configure:2756: checking whether __after_morecore_hook exists" >&5
2747 cat > conftest.$ac_ext <<EOF 2756 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure" 2757 #line 2758 "configure"
2749 #include "confdefs.h" 2758 #include "confdefs.h"
2750 extern void (* __after_morecore_hook)(); 2759 extern void (* __after_morecore_hook)();
2751 int main() { 2760 int main() {
2752 __after_morecore_hook = 0 2761 __after_morecore_hook = 0
2753 ; return 0; } 2762 ; return 0; }
2754 EOF 2763 EOF
2755 if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2764 if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2756 rm -rf conftest* 2765 rm -rf conftest*
2757 echo "$ac_t""yes" 1>&6 2766 echo "$ac_t""yes" 1>&6
2758 else 2767 else
2759 echo "configure: failed program was:" >&5 2768 echo "configure: failed program was:" >&5
2760 cat conftest.$ac_ext >&5 2769 cat conftest.$ac_ext >&5
2809 2818
2810 2819
2811 # Extract the first word of "ranlib", so it can be a program name with args. 2820 # Extract the first word of "ranlib", so it can be a program name with args.
2812 set dummy ranlib; ac_word=$2 2821 set dummy ranlib; ac_word=$2
2813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2814 echo "configure:2815: checking for $ac_word" >&5 2823 echo "configure:2824: checking for $ac_word" >&5
2815 2824
2816 if test -n "$RANLIB"; then 2825 if test -n "$RANLIB"; then
2817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2818 else 2827 else
2819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2862 # AIX /bin/install 2871 # AIX /bin/install
2863 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2872 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2864 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2873 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2865 # ./install, which can be erroneously created by make from ./install.sh. 2874 # ./install, which can be erroneously created by make from ./install.sh.
2866 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2875 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2867 echo "configure:2868: checking for a BSD compatible install" >&5 2876 echo "configure:2877: checking for a BSD compatible install" >&5
2868 if test -z "$INSTALL"; then 2877 if test -z "$INSTALL"; then
2869 2878
2870 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2879 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2871 for ac_dir in $PATH; do 2880 for ac_dir in $PATH; do
2872 # Account for people who put trailing slashes in PATH elements. 2881 # Account for people who put trailing slashes in PATH elements.
2913 for ac_prog in 'bison -y' byacc 2922 for ac_prog in 'bison -y' byacc
2914 do 2923 do
2915 # Extract the first word of "$ac_prog", so it can be a program name with args. 2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2916 set dummy $ac_prog; ac_word=$2 2925 set dummy $ac_prog; ac_word=$2
2917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2918 echo "configure:2919: checking for $ac_word" >&5 2927 echo "configure:2928: checking for $ac_word" >&5
2919 2928
2920 if test -n "$YACC"; then 2929 if test -n "$YACC"; then
2921 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2930 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2922 else 2931 else
2923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2944 2953
2945 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2954 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2946 do 2955 do
2947 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2949 echo "configure:2950: checking for $ac_hdr" >&5 2958 echo "configure:2959: checking for $ac_hdr" >&5
2950 2959
2951 cat > conftest.$ac_ext <<EOF 2960 cat > conftest.$ac_ext <<EOF
2952 #line 2953 "configure" 2961 #line 2962 "configure"
2953 #include "confdefs.h" 2962 #include "confdefs.h"
2954 #include <$ac_hdr> 2963 #include <$ac_hdr>
2955 EOF 2964 EOF
2956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2957 { (eval echo configure:2958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2966 { (eval echo configure:2967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2958 ac_err=`grep -v '^ *+' conftest.out` 2967 ac_err=`grep -v '^ *+' conftest.out`
2959 if test -z "$ac_err"; then 2968 if test -z "$ac_err"; then
2960 rm -rf conftest* 2969 rm -rf conftest*
2961 eval "ac_cv_header_$ac_safe=yes" 2970 eval "ac_cv_header_$ac_safe=yes"
2962 else 2971 else
2985 2994
2986 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h 2995 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
2987 do 2996 do
2988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2997 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2998 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2990 echo "configure:2991: checking for $ac_hdr" >&5 2999 echo "configure:3000: checking for $ac_hdr" >&5
2991 3000
2992 cat > conftest.$ac_ext <<EOF 3001 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure" 3002 #line 3003 "configure"
2994 #include "confdefs.h" 3003 #include "confdefs.h"
2995 #include <$ac_hdr> 3004 #include <$ac_hdr>
2996 EOF 3005 EOF
2997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2998 { (eval echo configure:2999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3007 { (eval echo configure:3008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2999 ac_err=`grep -v '^ *+' conftest.out` 3008 ac_err=`grep -v '^ *+' conftest.out`
3000 if test -z "$ac_err"; then 3009 if test -z "$ac_err"; then
3001 rm -rf conftest* 3010 rm -rf conftest*
3002 eval "ac_cv_header_$ac_safe=yes" 3011 eval "ac_cv_header_$ac_safe=yes"
3003 else 3012 else
3026 3035
3027 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 3036 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3028 do 3037 do
3029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3031 echo "configure:3032: checking for $ac_hdr" >&5 3040 echo "configure:3041: checking for $ac_hdr" >&5
3032 3041
3033 cat > conftest.$ac_ext <<EOF 3042 cat > conftest.$ac_ext <<EOF
3034 #line 3035 "configure" 3043 #line 3044 "configure"
3035 #include "confdefs.h" 3044 #include "confdefs.h"
3036 #include <$ac_hdr> 3045 #include <$ac_hdr>
3037 EOF 3046 EOF
3038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3039 { (eval echo configure:3040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3048 { (eval echo configure:3049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3040 ac_err=`grep -v '^ *+' conftest.out` 3049 ac_err=`grep -v '^ *+' conftest.out`
3041 if test -z "$ac_err"; then 3050 if test -z "$ac_err"; then
3042 rm -rf conftest* 3051 rm -rf conftest*
3043 eval "ac_cv_header_$ac_safe=yes" 3052 eval "ac_cv_header_$ac_safe=yes"
3044 else 3053 else
3064 echo "$ac_t""no" 1>&6 3073 echo "$ac_t""no" 1>&6
3065 fi 3074 fi
3066 done 3075 done
3067 3076
3068 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3077 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3069 echo "configure:3070: checking for sys/wait.h that is POSIX.1 compatible" >&5 3078 echo "configure:3079: checking for sys/wait.h that is POSIX.1 compatible" >&5
3070 3079
3071 cat > conftest.$ac_ext <<EOF 3080 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure" 3081 #line 3082 "configure"
3073 #include "confdefs.h" 3082 #include "confdefs.h"
3074 #include <sys/types.h> 3083 #include <sys/types.h>
3075 #include <sys/wait.h> 3084 #include <sys/wait.h>
3076 #ifndef WEXITSTATUS 3085 #ifndef WEXITSTATUS
3077 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3086 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3083 int s; 3092 int s;
3084 wait (&s); 3093 wait (&s);
3085 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3094 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3086 ; return 0; } 3095 ; return 0; }
3087 EOF 3096 EOF
3088 if { (eval echo configure:3089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3097 if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3089 rm -rf conftest* 3098 rm -rf conftest*
3090 ac_cv_header_sys_wait_h=yes 3099 ac_cv_header_sys_wait_h=yes
3091 else 3100 else
3092 echo "configure: failed program was:" >&5 3101 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5 3102 cat conftest.$ac_ext >&5
3107 } 3116 }
3108 3117
3109 fi 3118 fi
3110 3119
3111 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3120 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3112 echo "configure:3113: checking for ANSI C header files" >&5 3121 echo "configure:3122: checking for ANSI C header files" >&5
3113 3122
3114 cat > conftest.$ac_ext <<EOF 3123 cat > conftest.$ac_ext <<EOF
3115 #line 3116 "configure" 3124 #line 3125 "configure"
3116 #include "confdefs.h" 3125 #include "confdefs.h"
3117 #include <stdlib.h> 3126 #include <stdlib.h>
3118 #include <stdarg.h> 3127 #include <stdarg.h>
3119 #include <string.h> 3128 #include <string.h>
3120 #include <float.h> 3129 #include <float.h>
3121 EOF 3130 EOF
3122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3123 { (eval echo configure:3124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3132 { (eval echo configure:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3124 ac_err=`grep -v '^ *+' conftest.out` 3133 ac_err=`grep -v '^ *+' conftest.out`
3125 if test -z "$ac_err"; then 3134 if test -z "$ac_err"; then
3126 rm -rf conftest* 3135 rm -rf conftest*
3127 ac_cv_header_stdc=yes 3136 ac_cv_header_stdc=yes
3128 else 3137 else
3135 rm -f conftest* 3144 rm -f conftest*
3136 3145
3137 if test $ac_cv_header_stdc = yes; then 3146 if test $ac_cv_header_stdc = yes; then
3138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3139 cat > conftest.$ac_ext <<EOF 3148 cat > conftest.$ac_ext <<EOF
3140 #line 3141 "configure" 3149 #line 3150 "configure"
3141 #include "confdefs.h" 3150 #include "confdefs.h"
3142 #include <string.h> 3151 #include <string.h>
3143 EOF 3152 EOF
3144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3145 egrep "memchr" >/dev/null 2>&1; then 3154 egrep "memchr" >/dev/null 2>&1; then
3153 fi 3162 fi
3154 3163
3155 if test $ac_cv_header_stdc = yes; then 3164 if test $ac_cv_header_stdc = yes; then
3156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3157 cat > conftest.$ac_ext <<EOF 3166 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure" 3167 #line 3168 "configure"
3159 #include "confdefs.h" 3168 #include "confdefs.h"
3160 #include <stdlib.h> 3169 #include <stdlib.h>
3161 EOF 3170 EOF
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163 egrep "free" >/dev/null 2>&1; then 3172 egrep "free" >/dev/null 2>&1; then
3171 fi 3180 fi
3172 3181
3173 if test $ac_cv_header_stdc = yes; then 3182 if test $ac_cv_header_stdc = yes; then
3174 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3175 cat > conftest.$ac_ext <<EOF 3184 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure" 3185 #line 3186 "configure"
3177 #include "confdefs.h" 3186 #include "confdefs.h"
3178 #include <ctype.h> 3187 #include <ctype.h>
3179 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3188 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3180 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3189 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3182 int main () { int i; for (i = 0; i < 256; i++) 3191 int main () { int i; for (i = 0; i < 256; i++)
3183 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3192 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3184 exit (0); } 3193 exit (0); }
3185 3194
3186 EOF 3195 EOF
3187 if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3196 if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3188 then 3197 then
3189 : 3198 :
3190 else 3199 else
3191 conftest_rc="$?" 3200 conftest_rc="$?"
3192 echo "configure: failed program was:" >&5 3201 echo "configure: failed program was:" >&5
3208 } 3217 }
3209 3218
3210 fi 3219 fi
3211 3220
3212 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3221 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3213 echo "configure:3214: checking whether time.h and sys/time.h may both be included" >&5 3222 echo "configure:3223: checking whether time.h and sys/time.h may both be included" >&5
3214 3223
3215 cat > conftest.$ac_ext <<EOF 3224 cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure" 3225 #line 3226 "configure"
3217 #include "confdefs.h" 3226 #include "confdefs.h"
3218 #include <sys/types.h> 3227 #include <sys/types.h>
3219 #include <sys/time.h> 3228 #include <sys/time.h>
3220 #include <time.h> 3229 #include <time.h>
3221 int main() { 3230 int main() {
3222 struct tm *tp; 3231 struct tm *tp;
3223 ; return 0; } 3232 ; return 0; }
3224 EOF 3233 EOF
3225 if { (eval echo configure:3226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3234 if { (eval echo configure:3235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3226 rm -rf conftest* 3235 rm -rf conftest*
3227 ac_cv_header_time=yes 3236 ac_cv_header_time=yes
3228 else 3237 else
3229 echo "configure: failed program was:" >&5 3238 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5 3239 cat conftest.$ac_ext >&5
3244 } 3253 }
3245 3254
3246 fi 3255 fi
3247 3256
3248 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3257 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3249 echo "configure:3250: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3258 echo "configure:3259: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3250 3259
3251 cat > conftest.$ac_ext <<EOF 3260 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure" 3261 #line 3262 "configure"
3253 #include "confdefs.h" 3262 #include "confdefs.h"
3254 #include <sys/types.h> 3263 #include <sys/types.h>
3255 #include <signal.h> 3264 #include <signal.h>
3256 /* NetBSD declares sys_siglist in unistd.h. */ 3265 /* NetBSD declares sys_siglist in unistd.h. */
3257 #ifdef HAVE_UNISTD_H 3266 #ifdef HAVE_UNISTD_H
3259 #endif 3268 #endif
3260 int main() { 3269 int main() {
3261 char *msg = *(sys_siglist + 1); 3270 char *msg = *(sys_siglist + 1);
3262 ; return 0; } 3271 ; return 0; }
3263 EOF 3272 EOF
3264 if { (eval echo configure:3265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3273 if { (eval echo configure:3274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3265 rm -rf conftest* 3274 rm -rf conftest*
3266 ac_cv_decl_sys_siglist=yes 3275 ac_cv_decl_sys_siglist=yes
3267 else 3276 else
3268 echo "configure: failed program was:" >&5 3277 echo "configure: failed program was:" >&5
3269 cat conftest.$ac_ext >&5 3278 cat conftest.$ac_ext >&5
3284 3293
3285 fi 3294 fi
3286 3295
3287 3296
3288 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3297 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3289 echo "configure:3290: checking for struct utimbuf" >&5 3298 echo "configure:3299: checking for struct utimbuf" >&5
3290 cat > conftest.$ac_ext <<EOF 3299 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure" 3300 #line 3301 "configure"
3292 #include "confdefs.h" 3301 #include "confdefs.h"
3293 #ifdef TIME_WITH_SYS_TIME 3302 #ifdef TIME_WITH_SYS_TIME
3294 #include <sys/time.h> 3303 #include <sys/time.h>
3295 #include <time.h> 3304 #include <time.h>
3296 #else 3305 #else
3305 #endif 3314 #endif
3306 int main() { 3315 int main() {
3307 static struct utimbuf x; x.actime = x.modtime; 3316 static struct utimbuf x; x.actime = x.modtime;
3308 ; return 0; } 3317 ; return 0; }
3309 EOF 3318 EOF
3310 if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3319 if { (eval echo configure:3320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3311 rm -rf conftest* 3320 rm -rf conftest*
3312 echo "$ac_t""yes" 1>&6 3321 echo "$ac_t""yes" 1>&6
3313 { test "$extra_verbose" = "yes" && cat << \EOF 3322 { test "$extra_verbose" = "yes" && cat << \EOF
3314 Defining HAVE_STRUCT_UTIMBUF 3323 Defining HAVE_STRUCT_UTIMBUF
3315 EOF 3324 EOF
3325 echo "$ac_t""no" 1>&6 3334 echo "$ac_t""no" 1>&6
3326 fi 3335 fi
3327 rm -f conftest* 3336 rm -f conftest*
3328 3337
3329 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3338 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3330 echo "configure:3331: checking return type of signal handlers" >&5 3339 echo "configure:3340: checking return type of signal handlers" >&5
3331 3340
3332 cat > conftest.$ac_ext <<EOF 3341 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure" 3342 #line 3343 "configure"
3334 #include "confdefs.h" 3343 #include "confdefs.h"
3335 #include <sys/types.h> 3344 #include <sys/types.h>
3336 #include <signal.h> 3345 #include <signal.h>
3337 #ifdef signal 3346 #ifdef signal
3338 #undef signal 3347 #undef signal
3345 3354
3346 int main() { 3355 int main() {
3347 int i; 3356 int i;
3348 ; return 0; } 3357 ; return 0; }
3349 EOF 3358 EOF
3350 if { (eval echo configure:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3359 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3351 rm -rf conftest* 3360 rm -rf conftest*
3352 ac_cv_type_signal=void 3361 ac_cv_type_signal=void
3353 else 3362 else
3354 echo "configure: failed program was:" >&5 3363 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5 3364 cat conftest.$ac_ext >&5
3367 EOF 3376 EOF
3368 } 3377 }
3369 3378
3370 3379
3371 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3380 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3372 echo "configure:3373: checking for size_t" >&5 3381 echo "configure:3382: checking for size_t" >&5
3373 3382
3374 cat > conftest.$ac_ext <<EOF 3383 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure" 3384 #line 3385 "configure"
3376 #include "confdefs.h" 3385 #include "confdefs.h"
3377 #include <sys/types.h> 3386 #include <sys/types.h>
3378 #if STDC_HEADERS 3387 #if STDC_HEADERS
3379 #include <stdlib.h> 3388 #include <stdlib.h>
3380 #include <stddef.h> 3389 #include <stddef.h>
3401 } 3410 }
3402 3411
3403 fi 3412 fi
3404 3413
3405 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3414 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3406 echo "configure:3407: checking for pid_t" >&5 3415 echo "configure:3416: checking for pid_t" >&5
3407 3416
3408 cat > conftest.$ac_ext <<EOF 3417 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure" 3418 #line 3419 "configure"
3410 #include "confdefs.h" 3419 #include "confdefs.h"
3411 #include <sys/types.h> 3420 #include <sys/types.h>
3412 #if STDC_HEADERS 3421 #if STDC_HEADERS
3413 #include <stdlib.h> 3422 #include <stdlib.h>
3414 #include <stddef.h> 3423 #include <stddef.h>
3435 } 3444 }
3436 3445
3437 fi 3446 fi
3438 3447
3439 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3448 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3440 echo "configure:3441: checking for uid_t in sys/types.h" >&5 3449 echo "configure:3450: checking for uid_t in sys/types.h" >&5
3441 3450
3442 cat > conftest.$ac_ext <<EOF 3451 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure" 3452 #line 3453 "configure"
3444 #include "confdefs.h" 3453 #include "confdefs.h"
3445 #include <sys/types.h> 3454 #include <sys/types.h>
3446 EOF 3455 EOF
3447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3448 egrep "uid_t" >/dev/null 2>&1; then 3457 egrep "uid_t" >/dev/null 2>&1; then
3474 } 3483 }
3475 3484
3476 fi 3485 fi
3477 3486
3478 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3487 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3479 echo "configure:3480: checking for mode_t" >&5 3488 echo "configure:3489: checking for mode_t" >&5
3480 3489
3481 cat > conftest.$ac_ext <<EOF 3490 cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure" 3491 #line 3492 "configure"
3483 #include "confdefs.h" 3492 #include "confdefs.h"
3484 #include <sys/types.h> 3493 #include <sys/types.h>
3485 #if STDC_HEADERS 3494 #if STDC_HEADERS
3486 #include <stdlib.h> 3495 #include <stdlib.h>
3487 #include <stddef.h> 3496 #include <stddef.h>
3508 } 3517 }
3509 3518
3510 fi 3519 fi
3511 3520
3512 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3521 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3513 echo "configure:3514: checking for off_t" >&5 3522 echo "configure:3523: checking for off_t" >&5
3514 3523
3515 cat > conftest.$ac_ext <<EOF 3524 cat > conftest.$ac_ext <<EOF
3516 #line 3517 "configure" 3525 #line 3526 "configure"
3517 #include "confdefs.h" 3526 #include "confdefs.h"
3518 #include <sys/types.h> 3527 #include <sys/types.h>
3519 #if STDC_HEADERS 3528 #if STDC_HEADERS
3520 #include <stdlib.h> 3529 #include <stdlib.h>
3521 #include <stddef.h> 3530 #include <stddef.h>
3543 3552
3544 fi 3553 fi
3545 3554
3546 3555
3547 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3556 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3548 echo "configure:3549: checking for struct timeval" >&5 3557 echo "configure:3558: checking for struct timeval" >&5
3549 cat > conftest.$ac_ext <<EOF 3558 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure" 3559 #line 3560 "configure"
3551 #include "confdefs.h" 3560 #include "confdefs.h"
3552 #ifdef TIME_WITH_SYS_TIME 3561 #ifdef TIME_WITH_SYS_TIME
3553 #include <sys/time.h> 3562 #include <sys/time.h>
3554 #include <time.h> 3563 #include <time.h>
3555 #else 3564 #else
3561 #endif 3570 #endif
3562 int main() { 3571 int main() {
3563 static struct timeval x; x.tv_sec = x.tv_usec; 3572 static struct timeval x; x.tv_sec = x.tv_usec;
3564 ; return 0; } 3573 ; return 0; }
3565 EOF 3574 EOF
3566 if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3575 if { (eval echo configure:3576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3567 rm -rf conftest* 3576 rm -rf conftest*
3568 echo "$ac_t""yes" 1>&6 3577 echo "$ac_t""yes" 1>&6
3569 HAVE_TIMEVAL=yes 3578 HAVE_TIMEVAL=yes
3570 { test "$extra_verbose" = "yes" && cat << \EOF 3579 { test "$extra_verbose" = "yes" && cat << \EOF
3571 Defining HAVE_TIMEVAL 3580 Defining HAVE_TIMEVAL
3583 HAVE_TIMEVAL=no 3592 HAVE_TIMEVAL=no
3584 fi 3593 fi
3585 rm -f conftest* 3594 rm -f conftest*
3586 3595
3587 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3596 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3588 echo "configure:3589: checking whether struct tm is in sys/time.h or time.h" >&5 3597 echo "configure:3598: checking whether struct tm is in sys/time.h or time.h" >&5
3589 3598
3590 cat > conftest.$ac_ext <<EOF 3599 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure" 3600 #line 3601 "configure"
3592 #include "confdefs.h" 3601 #include "confdefs.h"
3593 #include <sys/types.h> 3602 #include <sys/types.h>
3594 #include <time.h> 3603 #include <time.h>
3595 int main() { 3604 int main() {
3596 struct tm *tp; tp->tm_sec; 3605 struct tm *tp; tp->tm_sec;
3597 ; return 0; } 3606 ; return 0; }
3598 EOF 3607 EOF
3599 if { (eval echo configure:3600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3608 if { (eval echo configure:3609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3600 rm -rf conftest* 3609 rm -rf conftest*
3601 ac_cv_struct_tm=time.h 3610 ac_cv_struct_tm=time.h
3602 else 3611 else
3603 echo "configure: failed program was:" >&5 3612 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5 3613 cat conftest.$ac_ext >&5
3618 } 3627 }
3619 3628
3620 fi 3629 fi
3621 3630
3622 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3631 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3623 echo "configure:3624: checking for tm_zone in struct tm" >&5 3632 echo "configure:3633: checking for tm_zone in struct tm" >&5
3624 3633
3625 cat > conftest.$ac_ext <<EOF 3634 cat > conftest.$ac_ext <<EOF
3626 #line 3627 "configure" 3635 #line 3636 "configure"
3627 #include "confdefs.h" 3636 #include "confdefs.h"
3628 #include <sys/types.h> 3637 #include <sys/types.h>
3629 #include <$ac_cv_struct_tm> 3638 #include <$ac_cv_struct_tm>
3630 int main() { 3639 int main() {
3631 struct tm tm; tm.tm_zone; 3640 struct tm tm; tm.tm_zone;
3632 ; return 0; } 3641 ; return 0; }
3633 EOF 3642 EOF
3634 if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3643 if { (eval echo configure:3644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3635 rm -rf conftest* 3644 rm -rf conftest*
3636 ac_cv_struct_tm_zone=yes 3645 ac_cv_struct_tm_zone=yes
3637 else 3646 else
3638 echo "configure: failed program was:" >&5 3647 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5 3648 cat conftest.$ac_ext >&5
3652 EOF 3661 EOF
3653 } 3662 }
3654 3663
3655 else 3664 else
3656 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3665 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3657 echo "configure:3658: checking for tzname" >&5 3666 echo "configure:3667: checking for tzname" >&5
3658 3667
3659 cat > conftest.$ac_ext <<EOF 3668 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure" 3669 #line 3670 "configure"
3661 #include "confdefs.h" 3670 #include "confdefs.h"
3662 #include <time.h> 3671 #include <time.h>
3663 #ifndef tzname /* For SGI. */ 3672 #ifndef tzname /* For SGI. */
3664 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3673 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3665 #endif 3674 #endif
3666 int main() { 3675 int main() {
3667 atoi(*tzname); 3676 atoi(*tzname);
3668 ; return 0; } 3677 ; return 0; }
3669 EOF 3678 EOF
3670 if { (eval echo configure:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3671 rm -rf conftest* 3680 rm -rf conftest*
3672 ac_cv_var_tzname=yes 3681 ac_cv_var_tzname=yes
3673 else 3682 else
3674 echo "configure: failed program was:" >&5 3683 echo "configure: failed program was:" >&5
3675 cat conftest.$ac_ext >&5 3684 cat conftest.$ac_ext >&5
3691 fi 3700 fi
3692 fi 3701 fi
3693 3702
3694 3703
3695 echo $ac_n "checking for working const""... $ac_c" 1>&6 3704 echo $ac_n "checking for working const""... $ac_c" 1>&6
3696 echo "configure:3697: checking for working const" >&5 3705 echo "configure:3706: checking for working const" >&5
3697 3706
3698 cat > conftest.$ac_ext <<EOF 3707 cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure" 3708 #line 3709 "configure"
3700 #include "confdefs.h" 3709 #include "confdefs.h"
3701 3710
3702 int main() { 3711 int main() {
3703 3712
3704 /* Ultrix mips cc rejects this. */ 3713 /* Ultrix mips cc rejects this. */
3743 const int foo = 10; 3752 const int foo = 10;
3744 } 3753 }
3745 3754
3746 ; return 0; } 3755 ; return 0; }
3747 EOF 3756 EOF
3748 if { (eval echo configure:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3757 if { (eval echo configure:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3749 rm -rf conftest* 3758 rm -rf conftest*
3750 ac_cv_c_const=yes 3759 ac_cv_c_const=yes
3751 else 3760 else
3752 echo "configure: failed program was:" >&5 3761 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5 3762 cat conftest.$ac_ext >&5
3768 3777
3769 fi 3778 fi
3770 3779
3771 3780
3772 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3781 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3773 echo "configure:3774: checking whether ${MAKE-make} sets \${MAKE}" >&5 3782 echo "configure:3783: checking whether ${MAKE-make} sets \${MAKE}" >&5
3774 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3783 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3775 3784
3776 cat > conftestmake <<\EOF 3785 cat > conftestmake <<\EOF
3777 all: 3786 all:
3778 @echo 'ac_maketemp="${MAKE}"' 3787 @echo 'ac_maketemp="${MAKE}"'
3793 SET_MAKE="MAKE=${MAKE-make}" 3802 SET_MAKE="MAKE=${MAKE-make}"
3794 fi 3803 fi
3795 3804
3796 3805
3797 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3806 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3798 echo "configure:3799: checking whether byte ordering is bigendian" >&5 3807 echo "configure:3808: checking whether byte ordering is bigendian" >&5
3799 3808
3800 ac_cv_c_bigendian=unknown 3809 ac_cv_c_bigendian=unknown
3801 # See if sys/param.h defines the BYTE_ORDER macro. 3810 # See if sys/param.h defines the BYTE_ORDER macro.
3802 cat > conftest.$ac_ext <<EOF 3811 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure" 3812 #line 3813 "configure"
3804 #include "confdefs.h" 3813 #include "confdefs.h"
3805 #include <sys/types.h> 3814 #include <sys/types.h>
3806 #include <sys/param.h> 3815 #include <sys/param.h>
3807 int main() { 3816 int main() {
3808 3817
3809 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3818 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3810 bogus endian macros 3819 bogus endian macros
3811 #endif 3820 #endif
3812 ; return 0; } 3821 ; return 0; }
3813 EOF 3822 EOF
3814 if { (eval echo configure:3815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3823 if { (eval echo configure:3824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3815 rm -rf conftest* 3824 rm -rf conftest*
3816 # It does; now see whether it defined to BIG_ENDIAN or not. 3825 # It does; now see whether it defined to BIG_ENDIAN or not.
3817 cat > conftest.$ac_ext <<EOF 3826 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure" 3827 #line 3828 "configure"
3819 #include "confdefs.h" 3828 #include "confdefs.h"
3820 #include <sys/types.h> 3829 #include <sys/types.h>
3821 #include <sys/param.h> 3830 #include <sys/param.h>
3822 int main() { 3831 int main() {
3823 3832
3824 #if BYTE_ORDER != BIG_ENDIAN 3833 #if BYTE_ORDER != BIG_ENDIAN
3825 not big endian 3834 not big endian
3826 #endif 3835 #endif
3827 ; return 0; } 3836 ; return 0; }
3828 EOF 3837 EOF
3829 if { (eval echo configure:3830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3838 if { (eval echo configure:3839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3830 rm -rf conftest* 3839 rm -rf conftest*
3831 ac_cv_c_bigendian=yes 3840 ac_cv_c_bigendian=yes
3832 else 3841 else
3833 echo "configure: failed program was:" >&5 3842 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5 3843 cat conftest.$ac_ext >&5
3841 cat conftest.$ac_ext >&5 3850 cat conftest.$ac_ext >&5
3842 fi 3851 fi
3843 rm -f conftest* 3852 rm -f conftest*
3844 if test $ac_cv_c_bigendian = unknown; then 3853 if test $ac_cv_c_bigendian = unknown; then
3845 cat > conftest.$ac_ext <<EOF 3854 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure" 3855 #line 3856 "configure"
3847 #include "confdefs.h" 3856 #include "confdefs.h"
3848 main () { 3857 main () {
3849 /* Are we little or big endian? From Harbison&Steele. */ 3858 /* Are we little or big endian? From Harbison&Steele. */
3850 union 3859 union
3851 { 3860 {
3854 } u; 3863 } u;
3855 u.l = 1; 3864 u.l = 1;
3856 exit (u.c[sizeof (long) - 1] == 1); 3865 exit (u.c[sizeof (long) - 1] == 1);
3857 } 3866 }
3858 EOF 3867 EOF
3859 if { (eval echo configure:3860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3868 if { (eval echo configure:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3860 then 3869 then
3861 ac_cv_c_bigendian=no 3870 ac_cv_c_bigendian=no
3862 else 3871 else
3863 conftest_rc="$?" 3872 conftest_rc="$?"
3864 echo "configure: failed program was:" >&5 3873 echo "configure: failed program was:" >&5
3881 3890
3882 fi 3891 fi
3883 3892
3884 3893
3885 echo $ac_n "checking size of short""... $ac_c" 1>&6 3894 echo $ac_n "checking size of short""... $ac_c" 1>&6
3886 echo "configure:3887: checking size of short" >&5 3895 echo "configure:3896: checking size of short" >&5
3887 3896
3888 cat > conftest.$ac_ext <<EOF 3897 cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure" 3898 #line 3899 "configure"
3890 #include "confdefs.h" 3899 #include "confdefs.h"
3891 #include <stdio.h> 3900 #include <stdio.h>
3892 main() 3901 main()
3893 { 3902 {
3894 FILE *f=fopen("conftestval", "w"); 3903 FILE *f=fopen("conftestval", "w");
3895 if (!f) exit(1); 3904 if (!f) exit(1);
3896 fprintf(f, "%d\n", sizeof(short)); 3905 fprintf(f, "%d\n", sizeof(short));
3897 exit(0); 3906 exit(0);
3898 } 3907 }
3899 EOF 3908 EOF
3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3901 then 3910 then
3902 ac_cv_sizeof_short=`cat conftestval` 3911 ac_cv_sizeof_short=`cat conftestval`
3903 else 3912 else
3904 conftest_rc="$?" 3913 conftest_rc="$?"
3905 echo "configure: failed program was:" >&5 3914 echo "configure: failed program was:" >&5
3923 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3932 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3924 echo "*** PANIC *** Please examine config.log for compilation errors." 3933 echo "*** PANIC *** Please examine config.log for compilation errors."
3925 exit 1 3934 exit 1
3926 fi 3935 fi
3927 echo $ac_n "checking size of int""... $ac_c" 1>&6 3936 echo $ac_n "checking size of int""... $ac_c" 1>&6
3928 echo "configure:3929: checking size of int" >&5 3937 echo "configure:3938: checking size of int" >&5
3929 3938
3930 cat > conftest.$ac_ext <<EOF 3939 cat > conftest.$ac_ext <<EOF
3931 #line 3932 "configure" 3940 #line 3941 "configure"
3932 #include "confdefs.h" 3941 #include "confdefs.h"
3933 #include <stdio.h> 3942 #include <stdio.h>
3934 main() 3943 main()
3935 { 3944 {
3936 FILE *f=fopen("conftestval", "w"); 3945 FILE *f=fopen("conftestval", "w");
3937 if (!f) exit(1); 3946 if (!f) exit(1);
3938 fprintf(f, "%d\n", sizeof(int)); 3947 fprintf(f, "%d\n", sizeof(int));
3939 exit(0); 3948 exit(0);
3940 } 3949 }
3941 EOF 3950 EOF
3942 if { (eval echo configure:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3951 if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3943 then 3952 then
3944 ac_cv_sizeof_int=`cat conftestval` 3953 ac_cv_sizeof_int=`cat conftestval`
3945 else 3954 else
3946 conftest_rc="$?" 3955 conftest_rc="$?"
3947 echo "configure: failed program was:" >&5 3956 echo "configure: failed program was:" >&5
3959 EOF 3968 EOF
3960 } 3969 }
3961 3970
3962 3971
3963 echo $ac_n "checking size of long""... $ac_c" 1>&6 3972 echo $ac_n "checking size of long""... $ac_c" 1>&6
3964 echo "configure:3965: checking size of long" >&5 3973 echo "configure:3974: checking size of long" >&5
3965 3974
3966 cat > conftest.$ac_ext <<EOF 3975 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure" 3976 #line 3977 "configure"
3968 #include "confdefs.h" 3977 #include "confdefs.h"
3969 #include <stdio.h> 3978 #include <stdio.h>
3970 main() 3979 main()
3971 { 3980 {
3972 FILE *f=fopen("conftestval", "w"); 3981 FILE *f=fopen("conftestval", "w");
3973 if (!f) exit(1); 3982 if (!f) exit(1);
3974 fprintf(f, "%d\n", sizeof(long)); 3983 fprintf(f, "%d\n", sizeof(long));
3975 exit(0); 3984 exit(0);
3976 } 3985 }
3977 EOF 3986 EOF
3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3987 if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3979 then 3988 then
3980 ac_cv_sizeof_long=`cat conftestval` 3989 ac_cv_sizeof_long=`cat conftestval`
3981 else 3990 else
3982 conftest_rc="$?" 3991 conftest_rc="$?"
3983 echo "configure: failed program was:" >&5 3992 echo "configure: failed program was:" >&5
3995 EOF 4004 EOF
3996 } 4005 }
3997 4006
3998 4007
3999 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4008 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4000 echo "configure:4001: checking size of long long" >&5 4009 echo "configure:4010: checking size of long long" >&5
4001 4010
4002 cat > conftest.$ac_ext <<EOF 4011 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure" 4012 #line 4013 "configure"
4004 #include "confdefs.h" 4013 #include "confdefs.h"
4005 #include <stdio.h> 4014 #include <stdio.h>
4006 main() 4015 main()
4007 { 4016 {
4008 FILE *f=fopen("conftestval", "w"); 4017 FILE *f=fopen("conftestval", "w");
4009 if (!f) exit(1); 4018 if (!f) exit(1);
4010 fprintf(f, "%d\n", sizeof(long long)); 4019 fprintf(f, "%d\n", sizeof(long long));
4011 exit(0); 4020 exit(0);
4012 } 4021 }
4013 EOF 4022 EOF
4014 if { (eval echo configure:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4015 then 4024 then
4016 ac_cv_sizeof_long_long=`cat conftestval` 4025 ac_cv_sizeof_long_long=`cat conftestval`
4017 else 4026 else
4018 conftest_rc="$?" 4027 conftest_rc="$?"
4019 echo "configure: failed program was:" >&5 4028 echo "configure: failed program was:" >&5
4031 EOF 4040 EOF
4032 } 4041 }
4033 4042
4034 4043
4035 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4044 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4036 echo "configure:4037: checking size of void *" >&5 4045 echo "configure:4046: checking size of void *" >&5
4037 4046
4038 cat > conftest.$ac_ext <<EOF 4047 cat > conftest.$ac_ext <<EOF
4039 #line 4040 "configure" 4048 #line 4049 "configure"
4040 #include "confdefs.h" 4049 #include "confdefs.h"
4041 #include <stdio.h> 4050 #include <stdio.h>
4042 main() 4051 main()
4043 { 4052 {
4044 FILE *f=fopen("conftestval", "w"); 4053 FILE *f=fopen("conftestval", "w");
4045 if (!f) exit(1); 4054 if (!f) exit(1);
4046 fprintf(f, "%d\n", sizeof(void *)); 4055 fprintf(f, "%d\n", sizeof(void *));
4047 exit(0); 4056 exit(0);
4048 } 4057 }
4049 EOF 4058 EOF
4050 if { (eval echo configure:4051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4051 then 4060 then
4052 ac_cv_sizeof_void_p=`cat conftestval` 4061 ac_cv_sizeof_void_p=`cat conftestval`
4053 else 4062 else
4054 conftest_rc="$?" 4063 conftest_rc="$?"
4055 echo "configure: failed program was:" >&5 4064 echo "configure: failed program was:" >&5
4068 } 4077 }
4069 4078
4070 4079
4071 4080
4072 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4081 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4073 echo "configure:4074: checking for long file names" >&5 4082 echo "configure:4083: checking for long file names" >&5
4074 4083
4075 ac_cv_sys_long_file_names=yes 4084 ac_cv_sys_long_file_names=yes
4076 # Test for long file names in all the places we know might matter: 4085 # Test for long file names in all the places we know might matter:
4077 # . the current directory, where building will happen 4086 # . the current directory, where building will happen
4078 # $prefix/lib where we will be installing things 4087 # $prefix/lib where we will be installing things
4115 fi 4124 fi
4116 4125
4117 4126
4118 4127
4119 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4128 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4120 echo "configure:4121: checking for sin in -lm" >&5 4129 echo "configure:4130: checking for sin in -lm" >&5
4121 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4130 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4122 4131
4123 xe_check_libs=" -lm " 4132 xe_check_libs=" -lm "
4124 cat > conftest.$ac_ext <<EOF 4133 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure" 4134 #line 4135 "configure"
4126 #include "confdefs.h" 4135 #include "confdefs.h"
4127 /* Override any gcc2 internal prototype to avoid an error. */ 4136 /* Override any gcc2 internal prototype to avoid an error. */
4128 /* We use char because int might match the return type of a gcc2 4137 /* We use char because int might match the return type of a gcc2
4129 builtin and then its argument prototype would still apply. */ 4138 builtin and then its argument prototype would still apply. */
4130 char sin(); 4139 char sin();
4131 4140
4132 int main() { 4141 int main() {
4133 sin() 4142 sin()
4134 ; return 0; } 4143 ; return 0; }
4135 EOF 4144 EOF
4136 if { (eval echo configure:4137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4145 if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4137 rm -rf conftest* 4146 rm -rf conftest*
4138 eval "ac_cv_lib_$ac_lib_var=yes" 4147 eval "ac_cv_lib_$ac_lib_var=yes"
4139 else 4148 else
4140 echo "configure: failed program was:" >&5 4149 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5 4150 cat conftest.$ac_ext >&5
4173 EOF 4182 EOF
4174 } 4183 }
4175 4184
4176 4185
4177 cat > conftest.$ac_ext <<EOF 4186 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure" 4187 #line 4188 "configure"
4179 #include "confdefs.h" 4188 #include "confdefs.h"
4180 #include <math.h> 4189 #include <math.h>
4181 int main() { 4190 int main() {
4182 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4191 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4183 ; return 0; } 4192 ; return 0; }
4184 EOF 4193 EOF
4185 if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4194 if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4186 rm -rf conftest* 4195 rm -rf conftest*
4187 { test "$extra_verbose" = "yes" && cat << \EOF 4196 { test "$extra_verbose" = "yes" && cat << \EOF
4188 Defining HAVE_INVERSE_HYPERBOLIC 4197 Defining HAVE_INVERSE_HYPERBOLIC
4189 EOF 4198 EOF
4190 cat >> confdefs.h <<\EOF 4199 cat >> confdefs.h <<\EOF
4197 cat conftest.$ac_ext >&5 4206 cat conftest.$ac_ext >&5
4198 fi 4207 fi
4199 rm -f conftest* 4208 rm -f conftest*
4200 4209
4201 echo "checking type of mail spool file locking" 1>&6 4210 echo "checking type of mail spool file locking" 1>&6
4202 echo "configure:4203: checking type of mail spool file locking" >&5 4211 echo "configure:4212: checking type of mail spool file locking" >&5
4203 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 4212 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4204 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 4213 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4205 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 4214 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4206 Defining REAL_MAIL_USE_LOCKF 4215 Defining REAL_MAIL_USE_LOCKF
4207 EOF 4216 EOF
4221 else mail_locking="dot-locking" 4230 else mail_locking="dot-locking"
4222 fi 4231 fi
4223 4232
4224 4233
4225 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 4234 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
4226 echo "configure:4227: checking for kstat_open in -lkstat" >&5 4235 echo "configure:4236: checking for kstat_open in -lkstat" >&5
4227 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 4236 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
4228 4237
4229 xe_check_libs=" -lkstat " 4238 xe_check_libs=" -lkstat "
4230 cat > conftest.$ac_ext <<EOF 4239 cat > conftest.$ac_ext <<EOF
4231 #line 4232 "configure" 4240 #line 4241 "configure"
4232 #include "confdefs.h" 4241 #include "confdefs.h"
4233 /* Override any gcc2 internal prototype to avoid an error. */ 4242 /* Override any gcc2 internal prototype to avoid an error. */
4234 /* We use char because int might match the return type of a gcc2 4243 /* We use char because int might match the return type of a gcc2
4235 builtin and then its argument prototype would still apply. */ 4244 builtin and then its argument prototype would still apply. */
4236 char kstat_open(); 4245 char kstat_open();
4237 4246
4238 int main() { 4247 int main() {
4239 kstat_open() 4248 kstat_open()
4240 ; return 0; } 4249 ; return 0; }
4241 EOF 4250 EOF
4242 if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4251 if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4243 rm -rf conftest* 4252 rm -rf conftest*
4244 eval "ac_cv_lib_$ac_lib_var=yes" 4253 eval "ac_cv_lib_$ac_lib_var=yes"
4245 else 4254 else
4246 echo "configure: failed program was:" >&5 4255 echo "configure: failed program was:" >&5
4247 cat conftest.$ac_ext >&5 4256 cat conftest.$ac_ext >&5
4271 4280
4272 4281
4273 4282
4274 4283
4275 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 4284 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
4276 echo "configure:4277: checking for kvm_read in -lkvm" >&5 4285 echo "configure:4286: checking for kvm_read in -lkvm" >&5
4277 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 4286 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
4278 4287
4279 xe_check_libs=" -lkvm " 4288 xe_check_libs=" -lkvm "
4280 cat > conftest.$ac_ext <<EOF 4289 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure" 4290 #line 4291 "configure"
4282 #include "confdefs.h" 4291 #include "confdefs.h"
4283 /* Override any gcc2 internal prototype to avoid an error. */ 4292 /* Override any gcc2 internal prototype to avoid an error. */
4284 /* We use char because int might match the return type of a gcc2 4293 /* We use char because int might match the return type of a gcc2
4285 builtin and then its argument prototype would still apply. */ 4294 builtin and then its argument prototype would still apply. */
4286 char kvm_read(); 4295 char kvm_read();
4287 4296
4288 int main() { 4297 int main() {
4289 kvm_read() 4298 kvm_read()
4290 ; return 0; } 4299 ; return 0; }
4291 EOF 4300 EOF
4292 if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4301 if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4293 rm -rf conftest* 4302 rm -rf conftest*
4294 eval "ac_cv_lib_$ac_lib_var=yes" 4303 eval "ac_cv_lib_$ac_lib_var=yes"
4295 else 4304 else
4296 echo "configure: failed program was:" >&5 4305 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5 4306 cat conftest.$ac_ext >&5
4322 4331
4323 4332
4324 case "$opsys" in decosf*) 4333 case "$opsys" in decosf*)
4325 4334
4326 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4335 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4327 echo "configure:4328: checking for cma_open in -lpthreads" >&5 4336 echo "configure:4337: checking for cma_open in -lpthreads" >&5
4328 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4337 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4329 4338
4330 xe_check_libs=" -lpthreads " 4339 xe_check_libs=" -lpthreads "
4331 cat > conftest.$ac_ext <<EOF 4340 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure" 4341 #line 4342 "configure"
4333 #include "confdefs.h" 4342 #include "confdefs.h"
4334 /* Override any gcc2 internal prototype to avoid an error. */ 4343 /* Override any gcc2 internal prototype to avoid an error. */
4335 /* We use char because int might match the return type of a gcc2 4344 /* We use char because int might match the return type of a gcc2
4336 builtin and then its argument prototype would still apply. */ 4345 builtin and then its argument prototype would still apply. */
4337 char cma_open(); 4346 char cma_open();
4338 4347
4339 int main() { 4348 int main() {
4340 cma_open() 4349 cma_open()
4341 ; return 0; } 4350 ; return 0; }
4342 EOF 4351 EOF
4343 if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4352 if { (eval echo configure:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4344 rm -rf conftest* 4353 rm -rf conftest*
4345 eval "ac_cv_lib_$ac_lib_var=yes" 4354 eval "ac_cv_lib_$ac_lib_var=yes"
4346 else 4355 else
4347 echo "configure: failed program was:" >&5 4356 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5 4357 cat conftest.$ac_ext >&5
4374 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4383 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4375 c_switch_site="$c_switch_site -threads" ;; 4384 c_switch_site="$c_switch_site -threads" ;;
4376 esac 4385 esac
4377 4386
4378 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4387 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4379 echo "configure:4380: checking whether the -xildoff compiler flag is required" >&5 4388 echo "configure:4389: checking whether the -xildoff compiler flag is required" >&5
4380 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4389 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4381 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4390 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4382 then echo "$ac_t""no" 1>&6; 4391 then echo "$ac_t""no" 1>&6;
4383 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 4392 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
4384 fi 4393 fi
4385 else echo "$ac_t""no" 1>&6 4394 else echo "$ac_t""no" 1>&6
4386 fi 4395 fi
4387 4396
4388 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4397 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4389 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4398 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4390 echo "configure:4391: checking for \"-z ignore\" linker flag" >&5 4399 echo "configure:4400: checking for \"-z ignore\" linker flag" >&5
4391 case "`ld -h 2>&1`" in 4400 case "`ld -h 2>&1`" in
4392 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4401 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4393 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4402 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4394 *) echo "$ac_t""no" 1>&6 ;; 4403 *) echo "$ac_t""no" 1>&6 ;;
4395 esac 4404 esac
4396 fi 4405 fi
4397 4406
4398 4407
4399 echo "checking "for specified window system"" 1>&6 4408 echo "checking "for specified window system"" 1>&6
4400 echo "configure:4401: checking "for specified window system"" >&5 4409 echo "configure:4410: checking "for specified window system"" >&5
4401 4410
4402 if test "$with_x11" != "no"; then 4411 if test "$with_x11" != "no"; then
4403 test "$x_includes $x_libraries" != "NONE NONE" && \ 4412 test "$x_includes $x_libraries" != "NONE NONE" && \
4404 window_system=x11 with_x11=yes 4413 window_system=x11 with_x11=yes
4405 4414
4428 # If we find X, set shell vars x_includes and x_libraries to the 4437 # If we find X, set shell vars x_includes and x_libraries to the
4429 # paths, otherwise set no_x=yes. 4438 # paths, otherwise set no_x=yes.
4430 # Uses ac_ vars as temps to allow command line to override cache and checks. 4439 # Uses ac_ vars as temps to allow command line to override cache and checks.
4431 # --without-x overrides everything else, but does not touch the cache. 4440 # --without-x overrides everything else, but does not touch the cache.
4432 echo $ac_n "checking for X""... $ac_c" 1>&6 4441 echo $ac_n "checking for X""... $ac_c" 1>&6
4433 echo "configure:4434: checking for X" >&5 4442 echo "configure:4443: checking for X" >&5
4434 4443
4435 # Check whether --with-x or --without-x was given. 4444 # Check whether --with-x or --without-x was given.
4436 if test "${with_x+set}" = set; then 4445 if test "${with_x+set}" = set; then
4437 withval="$with_x" 4446 withval="$with_x"
4438 : 4447 :
4488 # Guess where to find include files, by looking for this one X11 .h file. 4497 # Guess where to find include files, by looking for this one X11 .h file.
4489 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4498 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4490 4499
4491 # First, try using that file with no special directory specified. 4500 # First, try using that file with no special directory specified.
4492 cat > conftest.$ac_ext <<EOF 4501 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure" 4502 #line 4503 "configure"
4494 #include "confdefs.h" 4503 #include "confdefs.h"
4495 #include <$x_direct_test_include> 4504 #include <$x_direct_test_include>
4496 EOF 4505 EOF
4497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4498 { (eval echo configure:4499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4507 { (eval echo configure:4508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4499 ac_err=`grep -v '^ *+' conftest.out` 4508 ac_err=`grep -v '^ *+' conftest.out`
4500 if test -z "$ac_err"; then 4509 if test -z "$ac_err"; then
4501 rm -rf conftest* 4510 rm -rf conftest*
4502 # We can compile using X headers with no special include directory. 4511 # We can compile using X headers with no special include directory.
4503 ac_x_includes= 4512 ac_x_includes=
4562 # See if we find them without any special options. 4571 # See if we find them without any special options.
4563 # Don't add to $LIBS permanently. 4572 # Don't add to $LIBS permanently.
4564 ac_save_LIBS="$LIBS" 4573 ac_save_LIBS="$LIBS"
4565 LIBS="-l$x_direct_test_library $LIBS" 4574 LIBS="-l$x_direct_test_library $LIBS"
4566 cat > conftest.$ac_ext <<EOF 4575 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure" 4576 #line 4577 "configure"
4568 #include "confdefs.h" 4577 #include "confdefs.h"
4569 4578
4570 int main() { 4579 int main() {
4571 ${x_direct_test_function}() 4580 ${x_direct_test_function}()
4572 ; return 0; } 4581 ; return 0; }
4573 EOF 4582 EOF
4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4583 if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4575 rm -rf conftest* 4584 rm -rf conftest*
4576 LIBS="$ac_save_LIBS" 4585 LIBS="$ac_save_LIBS"
4577 # We can link X programs with no special library path. 4586 # We can link X programs with no special library path.
4578 ac_x_libraries= 4587 ac_x_libraries=
4579 else 4588 else
4678 # For Solaris; some versions of Sun CC require a space after -R and 4687 # For Solaris; some versions of Sun CC require a space after -R and
4679 # others require no space. Words are not sufficient . . . . 4688 # others require no space. Words are not sufficient . . . .
4680 case "`(uname -sr) 2>/dev/null`" in 4689 case "`(uname -sr) 2>/dev/null`" in
4681 "SunOS 5"*) 4690 "SunOS 5"*)
4682 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4691 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4683 echo "configure:4684: checking whether -R must be followed by a space" >&5 4692 echo "configure:4693: checking whether -R must be followed by a space" >&5
4684 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4693 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4685 cat > conftest.$ac_ext <<EOF 4694 cat > conftest.$ac_ext <<EOF
4686 #line 4687 "configure" 4695 #line 4696 "configure"
4687 #include "confdefs.h" 4696 #include "confdefs.h"
4688 4697
4689 int main() { 4698 int main() {
4690 4699
4691 ; return 0; } 4700 ; return 0; }
4692 EOF 4701 EOF
4693 if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4702 if { (eval echo configure:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4694 rm -rf conftest* 4703 rm -rf conftest*
4695 ac_R_nospace=yes 4704 ac_R_nospace=yes
4696 else 4705 else
4697 echo "configure: failed program was:" >&5 4706 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5 4707 cat conftest.$ac_ext >&5
4704 echo "$ac_t""no" 1>&6 4713 echo "$ac_t""no" 1>&6
4705 X_LIBS="$X_LIBS -R$x_libraries" 4714 X_LIBS="$X_LIBS -R$x_libraries"
4706 else 4715 else
4707 LIBS="$ac_xsave_LIBS -R $x_libraries" 4716 LIBS="$ac_xsave_LIBS -R $x_libraries"
4708 cat > conftest.$ac_ext <<EOF 4717 cat > conftest.$ac_ext <<EOF
4709 #line 4710 "configure" 4718 #line 4719 "configure"
4710 #include "confdefs.h" 4719 #include "confdefs.h"
4711 4720
4712 int main() { 4721 int main() {
4713 4722
4714 ; return 0; } 4723 ; return 0; }
4715 EOF 4724 EOF
4716 if { (eval echo configure:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4717 rm -rf conftest* 4726 rm -rf conftest*
4718 ac_R_space=yes 4727 ac_R_space=yes
4719 else 4728 else
4720 echo "configure: failed program was:" >&5 4729 echo "configure: failed program was:" >&5
4721 cat conftest.$ac_ext >&5 4730 cat conftest.$ac_ext >&5
4747 if test "$with_dnet" = "no" ; then 4756 if test "$with_dnet" = "no" ; then
4748 ac_cv_lib_dnet_dnet_ntoa=no 4757 ac_cv_lib_dnet_dnet_ntoa=no
4749 else 4758 else
4750 4759
4751 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4760 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4752 echo "configure:4753: checking for dnet_ntoa in -ldnet" >&5 4761 echo "configure:4762: checking for dnet_ntoa in -ldnet" >&5
4753 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4762 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4754 4763
4755 xe_check_libs=" -ldnet " 4764 xe_check_libs=" -ldnet "
4756 cat > conftest.$ac_ext <<EOF 4765 cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure" 4766 #line 4767 "configure"
4758 #include "confdefs.h" 4767 #include "confdefs.h"
4759 /* Override any gcc2 internal prototype to avoid an error. */ 4768 /* Override any gcc2 internal prototype to avoid an error. */
4760 /* We use char because int might match the return type of a gcc2 4769 /* We use char because int might match the return type of a gcc2
4761 builtin and then its argument prototype would still apply. */ 4770 builtin and then its argument prototype would still apply. */
4762 char dnet_ntoa(); 4771 char dnet_ntoa();
4763 4772
4764 int main() { 4773 int main() {
4765 dnet_ntoa() 4774 dnet_ntoa()
4766 ; return 0; } 4775 ; return 0; }
4767 EOF 4776 EOF
4768 if { (eval echo configure:4769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4777 if { (eval echo configure:4778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4769 rm -rf conftest* 4778 rm -rf conftest*
4770 eval "ac_cv_lib_$ac_lib_var=yes" 4779 eval "ac_cv_lib_$ac_lib_var=yes"
4771 else 4780 else
4772 echo "configure: failed program was:" >&5 4781 echo "configure: failed program was:" >&5
4773 cat conftest.$ac_ext >&5 4782 cat conftest.$ac_ext >&5
4787 fi 4796 fi
4788 4797
4789 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4798 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4790 4799
4791 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4800 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4792 echo "configure:4793: checking for dnet_ntoa in -ldnet_stub" >&5 4801 echo "configure:4802: checking for dnet_ntoa in -ldnet_stub" >&5
4793 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4802 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4794 4803
4795 xe_check_libs=" -ldnet_stub " 4804 xe_check_libs=" -ldnet_stub "
4796 cat > conftest.$ac_ext <<EOF 4805 cat > conftest.$ac_ext <<EOF
4797 #line 4798 "configure" 4806 #line 4807 "configure"
4798 #include "confdefs.h" 4807 #include "confdefs.h"
4799 /* Override any gcc2 internal prototype to avoid an error. */ 4808 /* Override any gcc2 internal prototype to avoid an error. */
4800 /* We use char because int might match the return type of a gcc2 4809 /* We use char because int might match the return type of a gcc2
4801 builtin and then its argument prototype would still apply. */ 4810 builtin and then its argument prototype would still apply. */
4802 char dnet_ntoa(); 4811 char dnet_ntoa();
4803 4812
4804 int main() { 4813 int main() {
4805 dnet_ntoa() 4814 dnet_ntoa()
4806 ; return 0; } 4815 ; return 0; }
4807 EOF 4816 EOF
4808 if { (eval echo configure:4809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4817 if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4809 rm -rf conftest* 4818 rm -rf conftest*
4810 eval "ac_cv_lib_$ac_lib_var=yes" 4819 eval "ac_cv_lib_$ac_lib_var=yes"
4811 else 4820 else
4812 echo "configure: failed program was:" >&5 4821 echo "configure: failed program was:" >&5
4813 cat conftest.$ac_ext >&5 4822 cat conftest.$ac_ext >&5
4832 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4841 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4833 # needs -lnsl. 4842 # needs -lnsl.
4834 # The nsl library prevents programs from opening the X display 4843 # The nsl library prevents programs from opening the X display
4835 # on Irix 5.2, according to dickey@clark.net. 4844 # on Irix 5.2, according to dickey@clark.net.
4836 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4845 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4837 echo "configure:4838: checking for gethostbyname" >&5 4846 echo "configure:4847: checking for gethostbyname" >&5
4838 4847
4839 cat > conftest.$ac_ext <<EOF 4848 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure" 4849 #line 4850 "configure"
4841 #include "confdefs.h" 4850 #include "confdefs.h"
4842 /* System header to define __stub macros and hopefully few prototypes, 4851 /* System header to define __stub macros and hopefully few prototypes,
4843 which can conflict with char gethostbyname(); below. */ 4852 which can conflict with char gethostbyname(); below. */
4844 #include <assert.h> 4853 #include <assert.h>
4845 /* Override any gcc2 internal prototype to avoid an error. */ 4854 /* Override any gcc2 internal prototype to avoid an error. */
4858 gethostbyname(); 4867 gethostbyname();
4859 #endif 4868 #endif
4860 4869
4861 ; return 0; } 4870 ; return 0; }
4862 EOF 4871 EOF
4863 if { (eval echo configure:4864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4872 if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4864 rm -rf conftest* 4873 rm -rf conftest*
4865 eval "ac_cv_func_gethostbyname=yes" 4874 eval "ac_cv_func_gethostbyname=yes"
4866 else 4875 else
4867 echo "configure: failed program was:" >&5 4876 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5 4877 cat conftest.$ac_ext >&5
4879 fi 4888 fi
4880 4889
4881 if test $ac_cv_func_gethostbyname = no; then 4890 if test $ac_cv_func_gethostbyname = no; then
4882 4891
4883 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4892 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4884 echo "configure:4885: checking for gethostbyname in -lnsl" >&5 4893 echo "configure:4894: checking for gethostbyname in -lnsl" >&5
4885 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4894 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4886 4895
4887 xe_check_libs=" -lnsl " 4896 xe_check_libs=" -lnsl "
4888 cat > conftest.$ac_ext <<EOF 4897 cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure" 4898 #line 4899 "configure"
4890 #include "confdefs.h" 4899 #include "confdefs.h"
4891 /* Override any gcc2 internal prototype to avoid an error. */ 4900 /* Override any gcc2 internal prototype to avoid an error. */
4892 /* We use char because int might match the return type of a gcc2 4901 /* We use char because int might match the return type of a gcc2
4893 builtin and then its argument prototype would still apply. */ 4902 builtin and then its argument prototype would still apply. */
4894 char gethostbyname(); 4903 char gethostbyname();
4895 4904
4896 int main() { 4905 int main() {
4897 gethostbyname() 4906 gethostbyname()
4898 ; return 0; } 4907 ; return 0; }
4899 EOF 4908 EOF
4900 if { (eval echo configure:4901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4909 if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4901 rm -rf conftest* 4910 rm -rf conftest*
4902 eval "ac_cv_lib_$ac_lib_var=yes" 4911 eval "ac_cv_lib_$ac_lib_var=yes"
4903 else 4912 else
4904 echo "configure: failed program was:" >&5 4913 echo "configure: failed program was:" >&5
4905 cat conftest.$ac_ext >&5 4914 cat conftest.$ac_ext >&5
4925 # on later versions), says simon@lia.di.epfl.ch: it contains 4934 # on later versions), says simon@lia.di.epfl.ch: it contains
4926 # gethostby* variants that don't use the nameserver (or something). 4935 # gethostby* variants that don't use the nameserver (or something).
4927 # -lsocket must be given before -lnsl if both are needed. 4936 # -lsocket must be given before -lnsl if both are needed.
4928 # We assume that if connect needs -lnsl, so does gethostbyname. 4937 # We assume that if connect needs -lnsl, so does gethostbyname.
4929 echo $ac_n "checking for connect""... $ac_c" 1>&6 4938 echo $ac_n "checking for connect""... $ac_c" 1>&6
4930 echo "configure:4931: checking for connect" >&5 4939 echo "configure:4940: checking for connect" >&5
4931 4940
4932 cat > conftest.$ac_ext <<EOF 4941 cat > conftest.$ac_ext <<EOF
4933 #line 4934 "configure" 4942 #line 4943 "configure"
4934 #include "confdefs.h" 4943 #include "confdefs.h"
4935 /* System header to define __stub macros and hopefully few prototypes, 4944 /* System header to define __stub macros and hopefully few prototypes,
4936 which can conflict with char connect(); below. */ 4945 which can conflict with char connect(); below. */
4937 #include <assert.h> 4946 #include <assert.h>
4938 /* Override any gcc2 internal prototype to avoid an error. */ 4947 /* Override any gcc2 internal prototype to avoid an error. */
4951 connect(); 4960 connect();
4952 #endif 4961 #endif
4953 4962
4954 ; return 0; } 4963 ; return 0; }
4955 EOF 4964 EOF
4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4965 if { (eval echo configure:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4957 rm -rf conftest* 4966 rm -rf conftest*
4958 eval "ac_cv_func_connect=yes" 4967 eval "ac_cv_func_connect=yes"
4959 else 4968 else
4960 echo "configure: failed program was:" >&5 4969 echo "configure: failed program was:" >&5
4961 cat conftest.$ac_ext >&5 4970 cat conftest.$ac_ext >&5
4974 if test $ac_cv_func_connect = no; then 4983 if test $ac_cv_func_connect = no; then
4975 4984
4976 xe_msg_checking="for connect in -lsocket" 4985 xe_msg_checking="for connect in -lsocket"
4977 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4986 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4978 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4987 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4979 echo "configure:4980: checking "$xe_msg_checking"" >&5 4988 echo "configure:4989: checking "$xe_msg_checking"" >&5
4980 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4989 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4981 4990
4982 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4991 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4983 cat > conftest.$ac_ext <<EOF 4992 cat > conftest.$ac_ext <<EOF
4984 #line 4985 "configure" 4993 #line 4994 "configure"
4985 #include "confdefs.h" 4994 #include "confdefs.h"
4986 /* Override any gcc2 internal prototype to avoid an error. */ 4995 /* Override any gcc2 internal prototype to avoid an error. */
4987 /* We use char because int might match the return type of a gcc2 4996 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */ 4997 builtin and then its argument prototype would still apply. */
4989 char connect(); 4998 char connect();
4990 4999
4991 int main() { 5000 int main() {
4992 connect() 5001 connect()
4993 ; return 0; } 5002 ; return 0; }
4994 EOF 5003 EOF
4995 if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4996 rm -rf conftest* 5005 rm -rf conftest*
4997 eval "ac_cv_lib_$ac_lib_var=yes" 5006 eval "ac_cv_lib_$ac_lib_var=yes"
4998 else 5007 else
4999 echo "configure: failed program was:" >&5 5008 echo "configure: failed program was:" >&5
5000 cat conftest.$ac_ext >&5 5009 cat conftest.$ac_ext >&5
5014 5023
5015 fi 5024 fi
5016 5025
5017 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 5026 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5018 echo $ac_n "checking for remove""... $ac_c" 1>&6 5027 echo $ac_n "checking for remove""... $ac_c" 1>&6
5019 echo "configure:5020: checking for remove" >&5 5028 echo "configure:5029: checking for remove" >&5
5020 5029
5021 cat > conftest.$ac_ext <<EOF 5030 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure" 5031 #line 5032 "configure"
5023 #include "confdefs.h" 5032 #include "confdefs.h"
5024 /* System header to define __stub macros and hopefully few prototypes, 5033 /* System header to define __stub macros and hopefully few prototypes,
5025 which can conflict with char remove(); below. */ 5034 which can conflict with char remove(); below. */
5026 #include <assert.h> 5035 #include <assert.h>
5027 /* Override any gcc2 internal prototype to avoid an error. */ 5036 /* Override any gcc2 internal prototype to avoid an error. */
5040 remove(); 5049 remove();
5041 #endif 5050 #endif
5042 5051
5043 ; return 0; } 5052 ; return 0; }
5044 EOF 5053 EOF
5045 if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5046 rm -rf conftest* 5055 rm -rf conftest*
5047 eval "ac_cv_func_remove=yes" 5056 eval "ac_cv_func_remove=yes"
5048 else 5057 else
5049 echo "configure: failed program was:" >&5 5058 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5 5059 cat conftest.$ac_ext >&5
5061 fi 5070 fi
5062 5071
5063 if test $ac_cv_func_remove = no; then 5072 if test $ac_cv_func_remove = no; then
5064 5073
5065 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5074 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5066 echo "configure:5067: checking for remove in -lposix" >&5 5075 echo "configure:5076: checking for remove in -lposix" >&5
5067 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5076 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5068 5077
5069 xe_check_libs=" -lposix " 5078 xe_check_libs=" -lposix "
5070 cat > conftest.$ac_ext <<EOF 5079 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure" 5080 #line 5081 "configure"
5072 #include "confdefs.h" 5081 #include "confdefs.h"
5073 /* Override any gcc2 internal prototype to avoid an error. */ 5082 /* Override any gcc2 internal prototype to avoid an error. */
5074 /* We use char because int might match the return type of a gcc2 5083 /* We use char because int might match the return type of a gcc2
5075 builtin and then its argument prototype would still apply. */ 5084 builtin and then its argument prototype would still apply. */
5076 char remove(); 5085 char remove();
5077 5086
5078 int main() { 5087 int main() {
5079 remove() 5088 remove()
5080 ; return 0; } 5089 ; return 0; }
5081 EOF 5090 EOF
5082 if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5091 if { (eval echo configure:5092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5083 rm -rf conftest* 5092 rm -rf conftest*
5084 eval "ac_cv_lib_$ac_lib_var=yes" 5093 eval "ac_cv_lib_$ac_lib_var=yes"
5085 else 5094 else
5086 echo "configure: failed program was:" >&5 5095 echo "configure: failed program was:" >&5
5087 cat conftest.$ac_ext >&5 5096 cat conftest.$ac_ext >&5
5101 5110
5102 fi 5111 fi
5103 5112
5104 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5113 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5105 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5114 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5106 echo "configure:5107: checking for shmat" >&5 5115 echo "configure:5116: checking for shmat" >&5
5107 5116
5108 cat > conftest.$ac_ext <<EOF 5117 cat > conftest.$ac_ext <<EOF
5109 #line 5110 "configure" 5118 #line 5119 "configure"
5110 #include "confdefs.h" 5119 #include "confdefs.h"
5111 /* System header to define __stub macros and hopefully few prototypes, 5120 /* System header to define __stub macros and hopefully few prototypes,
5112 which can conflict with char shmat(); below. */ 5121 which can conflict with char shmat(); below. */
5113 #include <assert.h> 5122 #include <assert.h>
5114 /* Override any gcc2 internal prototype to avoid an error. */ 5123 /* Override any gcc2 internal prototype to avoid an error. */
5127 shmat(); 5136 shmat();
5128 #endif 5137 #endif
5129 5138
5130 ; return 0; } 5139 ; return 0; }
5131 EOF 5140 EOF
5132 if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5141 if { (eval echo configure:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5133 rm -rf conftest* 5142 rm -rf conftest*
5134 eval "ac_cv_func_shmat=yes" 5143 eval "ac_cv_func_shmat=yes"
5135 else 5144 else
5136 echo "configure: failed program was:" >&5 5145 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5 5146 cat conftest.$ac_ext >&5
5148 fi 5157 fi
5149 5158
5150 if test $ac_cv_func_shmat = no; then 5159 if test $ac_cv_func_shmat = no; then
5151 5160
5152 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5161 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5153 echo "configure:5154: checking for shmat in -lipc" >&5 5162 echo "configure:5163: checking for shmat in -lipc" >&5
5154 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5163 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5155 5164
5156 xe_check_libs=" -lipc " 5165 xe_check_libs=" -lipc "
5157 cat > conftest.$ac_ext <<EOF 5166 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure" 5167 #line 5168 "configure"
5159 #include "confdefs.h" 5168 #include "confdefs.h"
5160 /* Override any gcc2 internal prototype to avoid an error. */ 5169 /* Override any gcc2 internal prototype to avoid an error. */
5161 /* We use char because int might match the return type of a gcc2 5170 /* We use char because int might match the return type of a gcc2
5162 builtin and then its argument prototype would still apply. */ 5171 builtin and then its argument prototype would still apply. */
5163 char shmat(); 5172 char shmat();
5164 5173
5165 int main() { 5174 int main() {
5166 shmat() 5175 shmat()
5167 ; return 0; } 5176 ; return 0; }
5168 EOF 5177 EOF
5169 if { (eval echo configure:5170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5170 rm -rf conftest* 5179 rm -rf conftest*
5171 eval "ac_cv_lib_$ac_lib_var=yes" 5180 eval "ac_cv_lib_$ac_lib_var=yes"
5172 else 5181 else
5173 echo "configure: failed program was:" >&5 5182 echo "configure: failed program was:" >&5
5174 cat conftest.$ac_ext >&5 5183 cat conftest.$ac_ext >&5
5198 # These have to be linked with before -lX11, unlike the other 5207 # These have to be linked with before -lX11, unlike the other
5199 # libraries we check for below, so use a different variable. 5208 # libraries we check for below, so use a different variable.
5200 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5209 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5201 5210
5202 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 5211 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5203 echo "configure:5204: checking for IceConnectionNumber in -lICE" >&5 5212 echo "configure:5213: checking for IceConnectionNumber in -lICE" >&5
5204 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5213 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5205 5214
5206 xe_check_libs=" -lICE " 5215 xe_check_libs=" -lICE "
5207 cat > conftest.$ac_ext <<EOF 5216 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure" 5217 #line 5218 "configure"
5209 #include "confdefs.h" 5218 #include "confdefs.h"
5210 /* Override any gcc2 internal prototype to avoid an error. */ 5219 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2 5220 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */ 5221 builtin and then its argument prototype would still apply. */
5213 char IceConnectionNumber(); 5222 char IceConnectionNumber();
5214 5223
5215 int main() { 5224 int main() {
5216 IceConnectionNumber() 5225 IceConnectionNumber()
5217 ; return 0; } 5226 ; return 0; }
5218 EOF 5227 EOF
5219 if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5228 if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5220 rm -rf conftest* 5229 rm -rf conftest*
5221 eval "ac_cv_lib_$ac_lib_var=yes" 5230 eval "ac_cv_lib_$ac_lib_var=yes"
5222 else 5231 else
5223 echo "configure: failed program was:" >&5 5232 echo "configure: failed program was:" >&5
5224 cat conftest.$ac_ext >&5 5233 cat conftest.$ac_ext >&5
5383 EOF 5392 EOF
5384 } 5393 }
5385 5394
5386 5395
5387 echo "checking for X defines extracted by xmkmf" 1>&6 5396 echo "checking for X defines extracted by xmkmf" 1>&6
5388 echo "configure:5389: checking for X defines extracted by xmkmf" >&5 5397 echo "configure:5398: checking for X defines extracted by xmkmf" >&5
5389 rm -fr conftestdir 5398 rm -fr conftestdir
5390 if mkdir conftestdir; then 5399 if mkdir conftestdir; then
5391 cd conftestdir 5400 cd conftestdir
5392 cat > Imakefile <<'EOF' 5401 cat > Imakefile <<'EOF'
5393 xetest: 5402 xetest:
5415 done 5424 done
5416 fi 5425 fi
5417 5426
5418 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5427 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5419 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5428 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5420 echo "configure:5421: checking for X11/Intrinsic.h" >&5 5429 echo "configure:5430: checking for X11/Intrinsic.h" >&5
5421 5430
5422 cat > conftest.$ac_ext <<EOF 5431 cat > conftest.$ac_ext <<EOF
5423 #line 5424 "configure" 5432 #line 5433 "configure"
5424 #include "confdefs.h" 5433 #include "confdefs.h"
5425 #include <X11/Intrinsic.h> 5434 #include <X11/Intrinsic.h>
5426 EOF 5435 EOF
5427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5428 { (eval echo configure:5429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5437 { (eval echo configure:5438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5429 ac_err=`grep -v '^ *+' conftest.out` 5438 ac_err=`grep -v '^ *+' conftest.out`
5430 if test -z "$ac_err"; then 5439 if test -z "$ac_err"; then
5431 rm -rf conftest* 5440 rm -rf conftest*
5432 eval "ac_cv_header_$ac_safe=yes" 5441 eval "ac_cv_header_$ac_safe=yes"
5433 else 5442 else
5447 fi 5456 fi
5448 5457
5449 5458
5450 5459
5451 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5460 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5452 echo "configure:5453: checking for XOpenDisplay in -lX11" >&5 5461 echo "configure:5462: checking for XOpenDisplay in -lX11" >&5
5453 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5462 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5454 5463
5455 xe_check_libs=" -lX11 " 5464 xe_check_libs=" -lX11 "
5456 cat > conftest.$ac_ext <<EOF 5465 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure" 5466 #line 5467 "configure"
5458 #include "confdefs.h" 5467 #include "confdefs.h"
5459 /* Override any gcc2 internal prototype to avoid an error. */ 5468 /* Override any gcc2 internal prototype to avoid an error. */
5460 /* We use char because int might match the return type of a gcc2 5469 /* We use char because int might match the return type of a gcc2
5461 builtin and then its argument prototype would still apply. */ 5470 builtin and then its argument prototype would still apply. */
5462 char XOpenDisplay(); 5471 char XOpenDisplay();
5463 5472
5464 int main() { 5473 int main() {
5465 XOpenDisplay() 5474 XOpenDisplay()
5466 ; return 0; } 5475 ; return 0; }
5467 EOF 5476 EOF
5468 if { (eval echo configure:5469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5477 if { (eval echo configure:5478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5469 rm -rf conftest* 5478 rm -rf conftest*
5470 eval "ac_cv_lib_$ac_lib_var=yes" 5479 eval "ac_cv_lib_$ac_lib_var=yes"
5471 else 5480 else
5472 echo "configure: failed program was:" >&5 5481 echo "configure: failed program was:" >&5
5473 cat conftest.$ac_ext >&5 5482 cat conftest.$ac_ext >&5
5488 if test "$have_lib_x11" != "yes"; then 5497 if test "$have_lib_x11" != "yes"; then
5489 5498
5490 xe_msg_checking="for XGetFontProperty in -lX11" 5499 xe_msg_checking="for XGetFontProperty in -lX11"
5491 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5500 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5492 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5501 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5493 echo "configure:5494: checking "$xe_msg_checking"" >&5 5502 echo "configure:5503: checking "$xe_msg_checking"" >&5
5494 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5503 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5495 5504
5496 xe_check_libs=" -lX11 -b i486-linuxaout" 5505 xe_check_libs=" -lX11 -b i486-linuxaout"
5497 cat > conftest.$ac_ext <<EOF 5506 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure" 5507 #line 5508 "configure"
5499 #include "confdefs.h" 5508 #include "confdefs.h"
5500 /* Override any gcc2 internal prototype to avoid an error. */ 5509 /* Override any gcc2 internal prototype to avoid an error. */
5501 /* We use char because int might match the return type of a gcc2 5510 /* We use char because int might match the return type of a gcc2
5502 builtin and then its argument prototype would still apply. */ 5511 builtin and then its argument prototype would still apply. */
5503 char XGetFontProperty(); 5512 char XGetFontProperty();
5504 5513
5505 int main() { 5514 int main() {
5506 XGetFontProperty() 5515 XGetFontProperty()
5507 ; return 0; } 5516 ; return 0; }
5508 EOF 5517 EOF
5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5518 if { (eval echo configure:5519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5510 rm -rf conftest* 5519 rm -rf conftest*
5511 eval "ac_cv_lib_$ac_lib_var=yes" 5520 eval "ac_cv_lib_$ac_lib_var=yes"
5512 else 5521 else
5513 echo "configure: failed program was:" >&5 5522 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5 5523 cat conftest.$ac_ext >&5
5531 libs_x="-lX11" 5540 libs_x="-lX11"
5532 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5541 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5533 5542
5534 5543
5535 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5544 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5536 echo "configure:5537: checking for XShapeSelectInput in -lXext" >&5 5545 echo "configure:5546: checking for XShapeSelectInput in -lXext" >&5
5537 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5546 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5538 5547
5539 xe_check_libs=" -lXext " 5548 xe_check_libs=" -lXext "
5540 cat > conftest.$ac_ext <<EOF 5549 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure" 5550 #line 5551 "configure"
5542 #include "confdefs.h" 5551 #include "confdefs.h"
5543 /* Override any gcc2 internal prototype to avoid an error. */ 5552 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2 5553 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */ 5554 builtin and then its argument prototype would still apply. */
5546 char XShapeSelectInput(); 5555 char XShapeSelectInput();
5547 5556
5548 int main() { 5557 int main() {
5549 XShapeSelectInput() 5558 XShapeSelectInput()
5550 ; return 0; } 5559 ; return 0; }
5551 EOF 5560 EOF
5552 if { (eval echo configure:5553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5553 rm -rf conftest* 5562 rm -rf conftest*
5554 eval "ac_cv_lib_$ac_lib_var=yes" 5563 eval "ac_cv_lib_$ac_lib_var=yes"
5555 else 5564 else
5556 echo "configure: failed program was:" >&5 5565 echo "configure: failed program was:" >&5
5557 cat conftest.$ac_ext >&5 5566 cat conftest.$ac_ext >&5
5570 5579
5571 5580
5572 5581
5573 5582
5574 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5583 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5575 echo "configure:5576: checking for XtOpenDisplay in -lXt" >&5 5584 echo "configure:5585: checking for XtOpenDisplay in -lXt" >&5
5576 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5585 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5577 5586
5578 xe_check_libs=" -lXt " 5587 xe_check_libs=" -lXt "
5579 cat > conftest.$ac_ext <<EOF 5588 cat > conftest.$ac_ext <<EOF
5580 #line 5581 "configure" 5589 #line 5590 "configure"
5581 #include "confdefs.h" 5590 #include "confdefs.h"
5582 /* Override any gcc2 internal prototype to avoid an error. */ 5591 /* Override any gcc2 internal prototype to avoid an error. */
5583 /* We use char because int might match the return type of a gcc2 5592 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */ 5593 builtin and then its argument prototype would still apply. */
5585 char XtOpenDisplay(); 5594 char XtOpenDisplay();
5586 5595
5587 int main() { 5596 int main() {
5588 XtOpenDisplay() 5597 XtOpenDisplay()
5589 ; return 0; } 5598 ; return 0; }
5590 EOF 5599 EOF
5591 if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5600 if { (eval echo configure:5601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5592 rm -rf conftest* 5601 rm -rf conftest*
5593 eval "ac_cv_lib_$ac_lib_var=yes" 5602 eval "ac_cv_lib_$ac_lib_var=yes"
5594 else 5603 else
5595 echo "configure: failed program was:" >&5 5604 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5 5605 cat conftest.$ac_ext >&5
5609 fi 5618 fi
5610 5619
5611 5620
5612 5621
5613 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5622 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5614 echo "configure:5615: checking the version of X11 being used" >&5 5623 echo "configure:5624: checking the version of X11 being used" >&5
5615 cat > conftest.$ac_ext <<EOF 5624 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure" 5625 #line 5626 "configure"
5617 #include "confdefs.h" 5626 #include "confdefs.h"
5618 #include <X11/Intrinsic.h> 5627 #include <X11/Intrinsic.h>
5619 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5628 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5620 EOF 5629 EOF
5621 if { (eval echo configure:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5630 if { (eval echo configure:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5622 then 5631 then
5623 ./conftest foobar; x11_release=$? 5632 ./conftest foobar; x11_release=$?
5624 else 5633 else
5625 conftest_rc="$?" 5634 conftest_rc="$?"
5626 echo "configure: failed program was:" >&5 5635 echo "configure: failed program was:" >&5
5641 5650
5642 for ac_hdr in X11/Xlocale.h 5651 for ac_hdr in X11/Xlocale.h
5643 do 5652 do
5644 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5645 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5646 echo "configure:5647: checking for $ac_hdr" >&5 5655 echo "configure:5656: checking for $ac_hdr" >&5
5647 5656
5648 cat > conftest.$ac_ext <<EOF 5657 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure" 5658 #line 5659 "configure"
5650 #include "confdefs.h" 5659 #include "confdefs.h"
5651 #include <$ac_hdr> 5660 #include <$ac_hdr>
5652 EOF 5661 EOF
5653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5654 { (eval echo configure:5655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5663 { (eval echo configure:5664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5655 ac_err=`grep -v '^ *+' conftest.out` 5664 ac_err=`grep -v '^ *+' conftest.out`
5656 if test -z "$ac_err"; then 5665 if test -z "$ac_err"; then
5657 rm -rf conftest* 5666 rm -rf conftest*
5658 eval "ac_cv_header_$ac_safe=yes" 5667 eval "ac_cv_header_$ac_safe=yes"
5659 else 5668 else
5680 fi 5689 fi
5681 done 5690 done
5682 5691
5683 5692
5684 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5693 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5685 echo "configure:5686: checking for XFree86" >&5 5694 echo "configure:5695: checking for XFree86" >&5
5686 if test -d "/usr/X386/include" -o \ 5695 if test -d "/usr/X386/include" -o \
5687 -f "/etc/XF86Config" -o \ 5696 -f "/etc/XF86Config" -o \
5688 -f "/etc/X11/XF86Config" -o \ 5697 -f "/etc/X11/XF86Config" -o \
5689 -f "/usr/X11R6/lib/X11/XF86Config"; then 5698 -f "/usr/X11R6/lib/X11/XF86Config"; then
5690 echo "$ac_t""yes" 1>&6 5699 echo "$ac_t""yes" 1>&6
5700 echo "$ac_t""no" 1>&6 5709 echo "$ac_t""no" 1>&6
5701 fi 5710 fi
5702 5711
5703 test -z "$with_xmu" && { 5712 test -z "$with_xmu" && {
5704 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5713 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5705 echo "configure:5706: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5714 echo "configure:5715: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5706 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5715 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5707 5716
5708 xe_check_libs=" -lXmu " 5717 xe_check_libs=" -lXmu "
5709 cat > conftest.$ac_ext <<EOF 5718 cat > conftest.$ac_ext <<EOF
5710 #line 5711 "configure" 5719 #line 5720 "configure"
5711 #include "confdefs.h" 5720 #include "confdefs.h"
5712 /* Override any gcc2 internal prototype to avoid an error. */ 5721 /* Override any gcc2 internal prototype to avoid an error. */
5713 /* We use char because int might match the return type of a gcc2 5722 /* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */ 5723 builtin and then its argument prototype would still apply. */
5715 char XmuReadBitmapDataFromFile(); 5724 char XmuReadBitmapDataFromFile();
5716 5725
5717 int main() { 5726 int main() {
5718 XmuReadBitmapDataFromFile() 5727 XmuReadBitmapDataFromFile()
5719 ; return 0; } 5728 ; return 0; }
5720 EOF 5729 EOF
5721 if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5730 if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5722 rm -rf conftest* 5731 rm -rf conftest*
5723 eval "ac_cv_lib_$ac_lib_var=yes" 5732 eval "ac_cv_lib_$ac_lib_var=yes"
5724 else 5733 else
5725 echo "configure: failed program was:" >&5 5734 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5 5735 cat conftest.$ac_ext >&5
5755 5764
5756 fi 5765 fi
5757 5766
5758 5767
5759 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5768 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5760 echo "configure:5761: checking for main in -lXbsd" >&5 5769 echo "configure:5770: checking for main in -lXbsd" >&5
5761 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5770 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5762 5771
5763 xe_check_libs=" -lXbsd " 5772 xe_check_libs=" -lXbsd "
5764 cat > conftest.$ac_ext <<EOF 5773 cat > conftest.$ac_ext <<EOF
5765 #line 5766 "configure" 5774 #line 5775 "configure"
5766 #include "confdefs.h" 5775 #include "confdefs.h"
5767 5776
5768 int main() { 5777 int main() {
5769 main() 5778 main()
5770 ; return 0; } 5779 ; return 0; }
5771 EOF 5780 EOF
5772 if { (eval echo configure:5773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5773 rm -rf conftest* 5782 rm -rf conftest*
5774 eval "ac_cv_lib_$ac_lib_var=yes" 5783 eval "ac_cv_lib_$ac_lib_var=yes"
5775 else 5784 else
5776 echo "configure: failed program was:" >&5 5785 echo "configure: failed program was:" >&5
5777 cat conftest.$ac_ext >&5 5786 cat conftest.$ac_ext >&5
5804 fi 5813 fi
5805 5814
5806 fi 5815 fi
5807 if test "$with_msw" != "no"; then 5816 if test "$with_msw" != "no"; then
5808 echo "checking for MS-Windows" 1>&6 5817 echo "checking for MS-Windows" 1>&6
5809 echo "configure:5810: checking for MS-Windows" >&5 5818 echo "configure:5819: checking for MS-Windows" >&5
5810 5819
5811 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 5820 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5812 echo "configure:5813: checking for main in -lgdi32" >&5 5821 echo "configure:5822: checking for main in -lgdi32" >&5
5813 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 5822 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5814 5823
5815 xe_check_libs=" -lgdi32 " 5824 xe_check_libs=" -lgdi32 "
5816 cat > conftest.$ac_ext <<EOF 5825 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure" 5826 #line 5827 "configure"
5818 #include "confdefs.h" 5827 #include "confdefs.h"
5819 5828
5820 int main() { 5829 int main() {
5821 main() 5830 main()
5822 ; return 0; } 5831 ; return 0; }
5823 EOF 5832 EOF
5824 if { (eval echo configure:5825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5833 if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5825 rm -rf conftest* 5834 rm -rf conftest*
5826 eval "ac_cv_lib_$ac_lib_var=yes" 5835 eval "ac_cv_lib_$ac_lib_var=yes"
5827 else 5836 else
5828 echo "configure: failed program was:" >&5 5837 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5 5838 cat conftest.$ac_ext >&5
5884 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 5893 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
5885 echo " xemacs will be linked with \"dialog-msw.o\"" 5894 echo " xemacs will be linked with \"dialog-msw.o\""
5886 fi 5895 fi
5887 fi 5896 fi
5888 cat > conftest.$ac_ext <<EOF 5897 cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure" 5898 #line 5899 "configure"
5890 #include "confdefs.h" 5899 #include "confdefs.h"
5891 #include <fcntl.h> 5900 #include <fcntl.h>
5892 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 5901 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
5893 EOF 5902 EOF
5894 if { (eval echo configure:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5903 if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5895 then 5904 then
5896 { test "$extra_verbose" = "yes" && cat << \EOF 5905 { test "$extra_verbose" = "yes" && cat << \EOF
5897 Defining HAVE_MSG_SELECT 5906 Defining HAVE_MSG_SELECT
5898 EOF 5907 EOF
5899 cat >> confdefs.h <<\EOF 5908 cat >> confdefs.h <<\EOF
5968 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5977 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5969 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5978 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5970 esac 5979 esac
5971 5980
5972 echo "checking for session-management option" 1>&6 5981 echo "checking for session-management option" 1>&6
5973 echo "configure:5974: checking for session-management option" >&5; 5982 echo "configure:5983: checking for session-management option" >&5;
5974 if test "$with_session" != "no"; then 5983 if test "$with_session" != "no"; then
5975 { test "$extra_verbose" = "yes" && cat << \EOF 5984 { test "$extra_verbose" = "yes" && cat << \EOF
5976 Defining HAVE_SESSION 5985 Defining HAVE_SESSION
5977 EOF 5986 EOF
5978 cat >> confdefs.h <<\EOF 5987 cat >> confdefs.h <<\EOF
5983 fi 5992 fi
5984 5993
5985 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5994 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5986 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5995 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5987 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5996 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5988 echo "configure:5989: checking for X11/Xauth.h" >&5 5997 echo "configure:5998: checking for X11/Xauth.h" >&5
5989 5998
5990 cat > conftest.$ac_ext <<EOF 5999 cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure" 6000 #line 6001 "configure"
5992 #include "confdefs.h" 6001 #include "confdefs.h"
5993 #include <X11/Xauth.h> 6002 #include <X11/Xauth.h>
5994 EOF 6003 EOF
5995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5996 { (eval echo configure:5997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6005 { (eval echo configure:6006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5997 ac_err=`grep -v '^ *+' conftest.out` 6006 ac_err=`grep -v '^ *+' conftest.out`
5998 if test -z "$ac_err"; then 6007 if test -z "$ac_err"; then
5999 rm -rf conftest* 6008 rm -rf conftest*
6000 eval "ac_cv_header_$ac_safe=yes" 6009 eval "ac_cv_header_$ac_safe=yes"
6001 else 6010 else
6014 with_xauth=no 6023 with_xauth=no
6015 fi 6024 fi
6016 } 6025 }
6017 test -z "$with_xauth" && { 6026 test -z "$with_xauth" && {
6018 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 6027 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6019 echo "configure:6020: checking for XauGetAuthByAddr in -lXau" >&5 6028 echo "configure:6029: checking for XauGetAuthByAddr in -lXau" >&5
6020 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6029 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6021 6030
6022 xe_check_libs=" -lXau " 6031 xe_check_libs=" -lXau "
6023 cat > conftest.$ac_ext <<EOF 6032 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure" 6033 #line 6034 "configure"
6025 #include "confdefs.h" 6034 #include "confdefs.h"
6026 /* Override any gcc2 internal prototype to avoid an error. */ 6035 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2 6036 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */ 6037 builtin and then its argument prototype would still apply. */
6029 char XauGetAuthByAddr(); 6038 char XauGetAuthByAddr();
6030 6039
6031 int main() { 6040 int main() {
6032 XauGetAuthByAddr() 6041 XauGetAuthByAddr()
6033 ; return 0; } 6042 ; return 0; }
6034 EOF 6043 EOF
6035 if { (eval echo configure:6036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6036 rm -rf conftest* 6045 rm -rf conftest*
6037 eval "ac_cv_lib_$ac_lib_var=yes" 6046 eval "ac_cv_lib_$ac_lib_var=yes"
6038 else 6047 else
6039 echo "configure: failed program was:" >&5 6048 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5 6049 cat conftest.$ac_ext >&5
6075 6084
6076 if test "$with_tooltalk" != "no" ; then 6085 if test "$with_tooltalk" != "no" ; then
6077 for dir in "" "Tt/" "desktop/" ; do 6086 for dir in "" "Tt/" "desktop/" ; do
6078 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6087 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6079 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6088 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6080 echo "configure:6081: checking for ${dir}tt_c.h" >&5 6089 echo "configure:6090: checking for ${dir}tt_c.h" >&5
6081 6090
6082 cat > conftest.$ac_ext <<EOF 6091 cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure" 6092 #line 6093 "configure"
6084 #include "confdefs.h" 6093 #include "confdefs.h"
6085 #include <${dir}tt_c.h> 6094 #include <${dir}tt_c.h>
6086 EOF 6095 EOF
6087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6088 { (eval echo configure:6089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6097 { (eval echo configure:6098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6089 ac_err=`grep -v '^ *+' conftest.out` 6098 ac_err=`grep -v '^ *+' conftest.out`
6090 if test -z "$ac_err"; then 6099 if test -z "$ac_err"; then
6091 rm -rf conftest* 6100 rm -rf conftest*
6092 eval "ac_cv_header_$ac_safe=yes" 6101 eval "ac_cv_header_$ac_safe=yes"
6093 else 6102 else
6119 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6128 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6120 6129
6121 xe_msg_checking="for tt_message_create in -ltt" 6130 xe_msg_checking="for tt_message_create in -ltt"
6122 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6131 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6123 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6132 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6124 echo "configure:6125: checking "$xe_msg_checking"" >&5 6133 echo "configure:6134: checking "$xe_msg_checking"" >&5
6125 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6134 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6126 6135
6127 xe_check_libs=" -ltt $extra_libs" 6136 xe_check_libs=" -ltt $extra_libs"
6128 cat > conftest.$ac_ext <<EOF 6137 cat > conftest.$ac_ext <<EOF
6129 #line 6130 "configure" 6138 #line 6139 "configure"
6130 #include "confdefs.h" 6139 #include "confdefs.h"
6131 /* Override any gcc2 internal prototype to avoid an error. */ 6140 /* Override any gcc2 internal prototype to avoid an error. */
6132 /* We use char because int might match the return type of a gcc2 6141 /* We use char because int might match the return type of a gcc2
6133 builtin and then its argument prototype would still apply. */ 6142 builtin and then its argument prototype would still apply. */
6134 char tt_message_create(); 6143 char tt_message_create();
6135 6144
6136 int main() { 6145 int main() {
6137 tt_message_create() 6146 tt_message_create()
6138 ; return 0; } 6147 ; return 0; }
6139 EOF 6148 EOF
6140 if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6141 rm -rf conftest* 6150 rm -rf conftest*
6142 eval "ac_cv_lib_$ac_lib_var=yes" 6151 eval "ac_cv_lib_$ac_lib_var=yes"
6143 else 6152 else
6144 echo "configure: failed program was:" >&5 6153 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5 6154 cat conftest.$ac_ext >&5
6192 fi 6201 fi
6193 fi 6202 fi
6194 6203
6195 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6204 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6196 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6205 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6197 echo "configure:6198: checking for Dt/Dt.h" >&5 6206 echo "configure:6207: checking for Dt/Dt.h" >&5
6198 6207
6199 cat > conftest.$ac_ext <<EOF 6208 cat > conftest.$ac_ext <<EOF
6200 #line 6201 "configure" 6209 #line 6210 "configure"
6201 #include "confdefs.h" 6210 #include "confdefs.h"
6202 #include <Dt/Dt.h> 6211 #include <Dt/Dt.h>
6203 EOF 6212 EOF
6204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6205 { (eval echo configure:6206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6214 { (eval echo configure:6215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6206 ac_err=`grep -v '^ *+' conftest.out` 6215 ac_err=`grep -v '^ *+' conftest.out`
6207 if test -z "$ac_err"; then 6216 if test -z "$ac_err"; then
6208 rm -rf conftest* 6217 rm -rf conftest*
6209 eval "ac_cv_header_$ac_safe=yes" 6218 eval "ac_cv_header_$ac_safe=yes"
6210 else 6219 else
6223 with_cde=no 6232 with_cde=no
6224 fi 6233 fi
6225 } 6234 }
6226 test -z "$with_cde" && { 6235 test -z "$with_cde" && {
6227 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6236 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6228 echo "configure:6229: checking for DtDndDragStart in -lDtSvc" >&5 6237 echo "configure:6238: checking for DtDndDragStart in -lDtSvc" >&5
6229 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6238 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6230 6239
6231 xe_check_libs=" -lDtSvc " 6240 xe_check_libs=" -lDtSvc "
6232 cat > conftest.$ac_ext <<EOF 6241 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure" 6242 #line 6243 "configure"
6234 #include "confdefs.h" 6243 #include "confdefs.h"
6235 /* Override any gcc2 internal prototype to avoid an error. */ 6244 /* Override any gcc2 internal prototype to avoid an error. */
6236 /* We use char because int might match the return type of a gcc2 6245 /* We use char because int might match the return type of a gcc2
6237 builtin and then its argument prototype would still apply. */ 6246 builtin and then its argument prototype would still apply. */
6238 char DtDndDragStart(); 6247 char DtDndDragStart();
6239 6248
6240 int main() { 6249 int main() {
6241 DtDndDragStart() 6250 DtDndDragStart()
6242 ; return 0; } 6251 ; return 0; }
6243 EOF 6252 EOF
6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6253 if { (eval echo configure:6254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6245 rm -rf conftest* 6254 rm -rf conftest*
6246 eval "ac_cv_lib_$ac_lib_var=yes" 6255 eval "ac_cv_lib_$ac_lib_var=yes"
6247 else 6256 else
6248 echo "configure: failed program was:" >&5 6257 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5 6258 cat conftest.$ac_ext >&5
6308 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6317 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6309 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6318 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6310 fi 6319 fi
6311 6320
6312 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6321 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6313 echo "configure:6314: checking if drag and drop API is needed" >&5 6322 echo "configure:6323: checking if drag and drop API is needed" >&5
6314 if test "$with_dragndrop" != "no" ; then 6323 if test "$with_dragndrop" != "no" ; then
6315 if test -n "$dragndrop_proto" ; then 6324 if test -n "$dragndrop_proto" ; then
6316 with_dragndrop=yes 6325 with_dragndrop=yes
6317 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6326 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6318 { test "$extra_verbose" = "yes" && cat << \EOF 6327 { test "$extra_verbose" = "yes" && cat << \EOF
6329 echo "$ac_t""no" 1>&6 6338 echo "$ac_t""no" 1>&6
6330 fi 6339 fi
6331 fi 6340 fi
6332 6341
6333 echo "checking for LDAP" 1>&6 6342 echo "checking for LDAP" 1>&6
6334 echo "configure:6335: checking for LDAP" >&5 6343 echo "configure:6344: checking for LDAP" >&5
6335 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6344 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6336 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6345 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6337 echo "configure:6338: checking for ldap.h" >&5 6346 echo "configure:6347: checking for ldap.h" >&5
6338 6347
6339 cat > conftest.$ac_ext <<EOF 6348 cat > conftest.$ac_ext <<EOF
6340 #line 6341 "configure" 6349 #line 6350 "configure"
6341 #include "confdefs.h" 6350 #include "confdefs.h"
6342 #include <ldap.h> 6351 #include <ldap.h>
6343 EOF 6352 EOF
6344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6345 { (eval echo configure:6346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6354 { (eval echo configure:6355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6346 ac_err=`grep -v '^ *+' conftest.out` 6355 ac_err=`grep -v '^ *+' conftest.out`
6347 if test -z "$ac_err"; then 6356 if test -z "$ac_err"; then
6348 rm -rf conftest* 6357 rm -rf conftest*
6349 eval "ac_cv_header_$ac_safe=yes" 6358 eval "ac_cv_header_$ac_safe=yes"
6350 else 6359 else
6363 with_ldap=no 6372 with_ldap=no
6364 fi 6373 fi
6365 } 6374 }
6366 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6375 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6367 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6376 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6368 echo "configure:6369: checking for lber.h" >&5 6377 echo "configure:6378: checking for lber.h" >&5
6369 6378
6370 cat > conftest.$ac_ext <<EOF 6379 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure" 6380 #line 6381 "configure"
6372 #include "confdefs.h" 6381 #include "confdefs.h"
6373 #include <lber.h> 6382 #include <lber.h>
6374 EOF 6383 EOF
6375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6376 { (eval echo configure:6377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6385 { (eval echo configure:6386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6377 ac_err=`grep -v '^ *+' conftest.out` 6386 ac_err=`grep -v '^ *+' conftest.out`
6378 if test -z "$ac_err"; then 6387 if test -z "$ac_err"; then
6379 rm -rf conftest* 6388 rm -rf conftest*
6380 eval "ac_cv_header_$ac_safe=yes" 6389 eval "ac_cv_header_$ac_safe=yes"
6381 else 6390 else
6397 if test "$with_ldap" != "no"; then 6406 if test "$with_ldap" != "no"; then
6398 test -z "$with_umich_ldap" && { 6407 test -z "$with_umich_ldap" && {
6399 xe_msg_checking="for ldap_open in -lldap" 6408 xe_msg_checking="for ldap_open in -lldap"
6400 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6409 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6401 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6410 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6402 echo "configure:6403: checking "$xe_msg_checking"" >&5 6411 echo "configure:6412: checking "$xe_msg_checking"" >&5
6403 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6412 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6404 6413
6405 xe_check_libs=" -lldap -llber" 6414 xe_check_libs=" -lldap -llber"
6406 cat > conftest.$ac_ext <<EOF 6415 cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure" 6416 #line 6417 "configure"
6408 #include "confdefs.h" 6417 #include "confdefs.h"
6409 /* Override any gcc2 internal prototype to avoid an error. */ 6418 /* Override any gcc2 internal prototype to avoid an error. */
6410 /* We use char because int might match the return type of a gcc2 6419 /* We use char because int might match the return type of a gcc2
6411 builtin and then its argument prototype would still apply. */ 6420 builtin and then its argument prototype would still apply. */
6412 char ldap_open(); 6421 char ldap_open();
6413 6422
6414 int main() { 6423 int main() {
6415 ldap_open() 6424 ldap_open()
6416 ; return 0; } 6425 ; return 0; }
6417 EOF 6426 EOF
6418 if { (eval echo configure:6419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6427 if { (eval echo configure:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6419 rm -rf conftest* 6428 rm -rf conftest*
6420 eval "ac_cv_lib_$ac_lib_var=yes" 6429 eval "ac_cv_lib_$ac_lib_var=yes"
6421 else 6430 else
6422 echo "configure: failed program was:" >&5 6431 echo "configure: failed program was:" >&5
6423 cat conftest.$ac_ext >&5 6432 cat conftest.$ac_ext >&5
6436 fi 6445 fi
6437 6446
6438 } 6447 }
6439 test "$with_umich_ldap" = "no" && { 6448 test "$with_umich_ldap" = "no" && {
6440 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6 6449 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6441 echo "configure:6442: checking for ldap_set_option in -lldap10" >&5 6450 echo "configure:6451: checking for ldap_set_option in -lldap10" >&5
6442 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'` 6451 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6443 6452
6444 xe_check_libs=" -lldap10 " 6453 xe_check_libs=" -lldap10 "
6445 cat > conftest.$ac_ext <<EOF 6454 cat > conftest.$ac_ext <<EOF
6446 #line 6447 "configure" 6455 #line 6456 "configure"
6447 #include "confdefs.h" 6456 #include "confdefs.h"
6448 /* Override any gcc2 internal prototype to avoid an error. */ 6457 /* Override any gcc2 internal prototype to avoid an error. */
6449 /* We use char because int might match the return type of a gcc2 6458 /* We use char because int might match the return type of a gcc2
6450 builtin and then its argument prototype would still apply. */ 6459 builtin and then its argument prototype would still apply. */
6451 char ldap_set_option(); 6460 char ldap_set_option();
6452 6461
6453 int main() { 6462 int main() {
6454 ldap_set_option() 6463 ldap_set_option()
6455 ; return 0; } 6464 ; return 0; }
6456 EOF 6465 EOF
6457 if { (eval echo configure:6458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6466 if { (eval echo configure:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6458 rm -rf conftest* 6467 rm -rf conftest*
6459 eval "ac_cv_lib_$ac_lib_var=yes" 6468 eval "ac_cv_lib_$ac_lib_var=yes"
6460 else 6469 else
6461 echo "configure: failed program was:" >&5 6470 echo "configure: failed program was:" >&5
6462 cat conftest.$ac_ext >&5 6471 cat conftest.$ac_ext >&5
6516 fi 6525 fi
6517 6526
6518 6527
6519 if test "$window_system" != "none"; then 6528 if test "$window_system" != "none"; then
6520 echo "checking for graphics libraries" 1>&6 6529 echo "checking for graphics libraries" 1>&6
6521 echo "configure:6522: checking for graphics libraries" >&5 6530 echo "configure:6531: checking for graphics libraries" >&5
6522 6531
6523 xpm_problem="" 6532 xpm_problem=""
6524 if test -z "$with_xpm"; then 6533 if test -z "$with_xpm"; then
6525 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6534 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6526 echo "configure:6527: checking for Xpm - no older than 3.4f" >&5 6535 echo "configure:6536: checking for Xpm - no older than 3.4f" >&5
6527 xe_check_libs=-lXpm 6536 xe_check_libs=-lXpm
6528 cat > conftest.$ac_ext <<EOF 6537 cat > conftest.$ac_ext <<EOF
6529 #line 6530 "configure" 6538 #line 6539 "configure"
6530 #include "confdefs.h" 6539 #include "confdefs.h"
6531 #include <X11/xpm.h> 6540 #include <X11/xpm.h>
6532 int main(int c, char **v) { 6541 int main(int c, char **v) {
6533 return c == 1 ? 0 : 6542 return c == 1 ? 0 :
6534 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6543 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6535 XpmIncludeVersion < 30406 ? 2 : 0 ;} 6544 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6536 EOF 6545 EOF
6537 if { (eval echo configure:6538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6546 if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6538 then 6547 then
6539 ./conftest dummy_arg; xpm_status=$?; 6548 ./conftest dummy_arg; xpm_status=$?;
6540 if test "$xpm_status" = "0"; then 6549 if test "$xpm_status" = "0"; then
6541 with_xpm=yes; 6550 with_xpm=yes;
6542 else 6551 else
6574 EOF 6583 EOF
6575 } 6584 }
6576 6585
6577 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6586 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6578 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 6587 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6579 echo "configure:6580: checking for \"FOR_MSW\" xpm" >&5 6588 echo "configure:6589: checking for \"FOR_MSW\" xpm" >&5
6580 xe_check_libs=-lXpm 6589 xe_check_libs=-lXpm
6581 cat > conftest.$ac_ext <<EOF 6590 cat > conftest.$ac_ext <<EOF
6582 #line 6583 "configure" 6591 #line 6592 "configure"
6583 #include "confdefs.h" 6592 #include "confdefs.h"
6584 6593
6585 int main() { 6594 int main() {
6586 XpmCreatePixmapFromData() 6595 XpmCreatePixmapFromData()
6587 ; return 0; } 6596 ; return 0; }
6588 EOF 6597 EOF
6589 if { (eval echo configure:6590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6598 if { (eval echo configure:6599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6590 rm -rf conftest* 6599 rm -rf conftest*
6591 xpm_for_msw=no 6600 xpm_for_msw=no
6592 else 6601 else
6593 echo "configure: failed program was:" >&5 6602 echo "configure: failed program was:" >&5
6594 cat conftest.$ac_ext >&5 6603 cat conftest.$ac_ext >&5
6626 fi 6635 fi
6627 6636
6628 if test "$with_png $with_tiff" != "no no"; then 6637 if test "$with_png $with_tiff" != "no no"; then
6629 6638
6630 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 6639 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6631 echo "configure:6632: checking for inflate in -lc" >&5 6640 echo "configure:6641: checking for inflate in -lc" >&5
6632 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 6641 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6633 6642
6634 xe_check_libs=" -lc " 6643 xe_check_libs=" -lc "
6635 cat > conftest.$ac_ext <<EOF 6644 cat > conftest.$ac_ext <<EOF
6636 #line 6637 "configure" 6645 #line 6646 "configure"
6637 #include "confdefs.h" 6646 #include "confdefs.h"
6638 /* Override any gcc2 internal prototype to avoid an error. */ 6647 /* Override any gcc2 internal prototype to avoid an error. */
6639 /* We use char because int might match the return type of a gcc2 6648 /* We use char because int might match the return type of a gcc2
6640 builtin and then its argument prototype would still apply. */ 6649 builtin and then its argument prototype would still apply. */
6641 char inflate(); 6650 char inflate();
6642 6651
6643 int main() { 6652 int main() {
6644 inflate() 6653 inflate()
6645 ; return 0; } 6654 ; return 0; }
6646 EOF 6655 EOF
6647 if { (eval echo configure:6648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6648 rm -rf conftest* 6657 rm -rf conftest*
6649 eval "ac_cv_lib_$ac_lib_var=yes" 6658 eval "ac_cv_lib_$ac_lib_var=yes"
6650 else 6659 else
6651 echo "configure: failed program was:" >&5 6660 echo "configure: failed program was:" >&5
6652 cat conftest.$ac_ext >&5 6661 cat conftest.$ac_ext >&5
6661 : 6670 :
6662 else 6671 else
6663 echo "$ac_t""no" 1>&6 6672 echo "$ac_t""no" 1>&6
6664 6673
6665 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 6674 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6666 echo "configure:6667: checking for inflate in -lz" >&5 6675 echo "configure:6676: checking for inflate in -lz" >&5
6667 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 6676 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6668 6677
6669 xe_check_libs=" -lz " 6678 xe_check_libs=" -lz "
6670 cat > conftest.$ac_ext <<EOF 6679 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure" 6680 #line 6681 "configure"
6672 #include "confdefs.h" 6681 #include "confdefs.h"
6673 /* Override any gcc2 internal prototype to avoid an error. */ 6682 /* Override any gcc2 internal prototype to avoid an error. */
6674 /* We use char because int might match the return type of a gcc2 6683 /* We use char because int might match the return type of a gcc2
6675 builtin and then its argument prototype would still apply. */ 6684 builtin and then its argument prototype would still apply. */
6676 char inflate(); 6685 char inflate();
6677 6686
6678 int main() { 6687 int main() {
6679 inflate() 6688 inflate()
6680 ; return 0; } 6689 ; return 0; }
6681 EOF 6690 EOF
6682 if { (eval echo configure:6683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6691 if { (eval echo configure:6692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6683 rm -rf conftest* 6692 rm -rf conftest*
6684 eval "ac_cv_lib_$ac_lib_var=yes" 6693 eval "ac_cv_lib_$ac_lib_var=yes"
6685 else 6694 else
6686 echo "configure: failed program was:" >&5 6695 echo "configure: failed program was:" >&5
6687 cat conftest.$ac_ext >&5 6696 cat conftest.$ac_ext >&5
6696 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 6705 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6697 else 6706 else
6698 echo "$ac_t""no" 1>&6 6707 echo "$ac_t""no" 1>&6
6699 6708
6700 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 6709 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6701 echo "configure:6702: checking for inflate in -lgz" >&5 6710 echo "configure:6711: checking for inflate in -lgz" >&5
6702 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 6711 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6703 6712
6704 xe_check_libs=" -lgz " 6713 xe_check_libs=" -lgz "
6705 cat > conftest.$ac_ext <<EOF 6714 cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure" 6715 #line 6716 "configure"
6707 #include "confdefs.h" 6716 #include "confdefs.h"
6708 /* Override any gcc2 internal prototype to avoid an error. */ 6717 /* Override any gcc2 internal prototype to avoid an error. */
6709 /* We use char because int might match the return type of a gcc2 6718 /* We use char because int might match the return type of a gcc2
6710 builtin and then its argument prototype would still apply. */ 6719 builtin and then its argument prototype would still apply. */
6711 char inflate(); 6720 char inflate();
6712 6721
6713 int main() { 6722 int main() {
6714 inflate() 6723 inflate()
6715 ; return 0; } 6724 ; return 0; }
6716 EOF 6725 EOF
6717 if { (eval echo configure:6718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6726 if { (eval echo configure:6727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6718 rm -rf conftest* 6727 rm -rf conftest*
6719 eval "ac_cv_lib_$ac_lib_var=yes" 6728 eval "ac_cv_lib_$ac_lib_var=yes"
6720 else 6729 else
6721 echo "configure: failed program was:" >&5 6730 echo "configure: failed program was:" >&5
6722 cat conftest.$ac_ext >&5 6731 cat conftest.$ac_ext >&5
6742 6751
6743 fi 6752 fi
6744 6753
6745 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6754 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6746 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6755 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6747 echo "configure:6748: checking for jpeglib.h" >&5 6756 echo "configure:6757: checking for jpeglib.h" >&5
6748 6757
6749 cat > conftest.$ac_ext <<EOF 6758 cat > conftest.$ac_ext <<EOF
6750 #line 6751 "configure" 6759 #line 6760 "configure"
6751 #include "confdefs.h" 6760 #include "confdefs.h"
6752 #include <jpeglib.h> 6761 #include <jpeglib.h>
6753 EOF 6762 EOF
6754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6755 { (eval echo configure:6756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6764 { (eval echo configure:6765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6756 ac_err=`grep -v '^ *+' conftest.out` 6765 ac_err=`grep -v '^ *+' conftest.out`
6757 if test -z "$ac_err"; then 6766 if test -z "$ac_err"; then
6758 rm -rf conftest* 6767 rm -rf conftest*
6759 eval "ac_cv_header_$ac_safe=yes" 6768 eval "ac_cv_header_$ac_safe=yes"
6760 else 6769 else
6773 with_jpeg=no 6782 with_jpeg=no
6774 fi 6783 fi
6775 } 6784 }
6776 test -z "$with_jpeg" && { 6785 test -z "$with_jpeg" && {
6777 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6786 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6778 echo "configure:6779: checking for jpeg_destroy_decompress in -ljpeg" >&5 6787 echo "configure:6788: checking for jpeg_destroy_decompress in -ljpeg" >&5
6779 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6788 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6780 6789
6781 xe_check_libs=" -ljpeg " 6790 xe_check_libs=" -ljpeg "
6782 cat > conftest.$ac_ext <<EOF 6791 cat > conftest.$ac_ext <<EOF
6783 #line 6784 "configure" 6792 #line 6793 "configure"
6784 #include "confdefs.h" 6793 #include "confdefs.h"
6785 /* Override any gcc2 internal prototype to avoid an error. */ 6794 /* Override any gcc2 internal prototype to avoid an error. */
6786 /* We use char because int might match the return type of a gcc2 6795 /* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */ 6796 builtin and then its argument prototype would still apply. */
6788 char jpeg_destroy_decompress(); 6797 char jpeg_destroy_decompress();
6789 6798
6790 int main() { 6799 int main() {
6791 jpeg_destroy_decompress() 6800 jpeg_destroy_decompress()
6792 ; return 0; } 6801 ; return 0; }
6793 EOF 6802 EOF
6794 if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6803 if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6795 rm -rf conftest* 6804 rm -rf conftest*
6796 eval "ac_cv_lib_$ac_lib_var=yes" 6805 eval "ac_cv_lib_$ac_lib_var=yes"
6797 else 6806 else
6798 echo "configure: failed program was:" >&5 6807 echo "configure: failed program was:" >&5
6799 cat conftest.$ac_ext >&5 6808 cat conftest.$ac_ext >&5
6825 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6834 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6826 fi 6835 fi
6827 6836
6828 png_problem="" 6837 png_problem=""
6829 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6838 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6830 echo "configure:6831: checking for pow" >&5 6839 echo "configure:6840: checking for pow" >&5
6831 6840
6832 cat > conftest.$ac_ext <<EOF 6841 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure" 6842 #line 6843 "configure"
6834 #include "confdefs.h" 6843 #include "confdefs.h"
6835 /* System header to define __stub macros and hopefully few prototypes, 6844 /* System header to define __stub macros and hopefully few prototypes,
6836 which can conflict with char pow(); below. */ 6845 which can conflict with char pow(); below. */
6837 #include <assert.h> 6846 #include <assert.h>
6838 /* Override any gcc2 internal prototype to avoid an error. */ 6847 /* Override any gcc2 internal prototype to avoid an error. */
6851 pow(); 6860 pow();
6852 #endif 6861 #endif
6853 6862
6854 ; return 0; } 6863 ; return 0; }
6855 EOF 6864 EOF
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6865 if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6857 rm -rf conftest* 6866 rm -rf conftest*
6858 eval "ac_cv_func_pow=yes" 6867 eval "ac_cv_func_pow=yes"
6859 else 6868 else
6860 echo "configure: failed program was:" >&5 6869 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5 6870 cat conftest.$ac_ext >&5
6872 with_png=no 6881 with_png=no
6873 fi 6882 fi
6874 } 6883 }
6875 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6884 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6876 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6885 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6877 echo "configure:6878: checking for png.h" >&5 6886 echo "configure:6887: checking for png.h" >&5
6878 6887
6879 cat > conftest.$ac_ext <<EOF 6888 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure" 6889 #line 6890 "configure"
6881 #include "confdefs.h" 6890 #include "confdefs.h"
6882 #include <png.h> 6891 #include <png.h>
6883 EOF 6892 EOF
6884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6885 { (eval echo configure:6886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6894 { (eval echo configure:6895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6886 ac_err=`grep -v '^ *+' conftest.out` 6895 ac_err=`grep -v '^ *+' conftest.out`
6887 if test -z "$ac_err"; then 6896 if test -z "$ac_err"; then
6888 rm -rf conftest* 6897 rm -rf conftest*
6889 eval "ac_cv_header_$ac_safe=yes" 6898 eval "ac_cv_header_$ac_safe=yes"
6890 else 6899 else
6903 with_png=no 6912 with_png=no
6904 fi 6913 fi
6905 } 6914 }
6906 test -z "$with_png" && { 6915 test -z "$with_png" && {
6907 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 6916 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
6908 echo "configure:6909: checking for png_read_image in -lpng" >&5 6917 echo "configure:6918: checking for png_read_image in -lpng" >&5
6909 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6918 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6910 6919
6911 xe_check_libs=" -lpng " 6920 xe_check_libs=" -lpng "
6912 cat > conftest.$ac_ext <<EOF 6921 cat > conftest.$ac_ext <<EOF
6913 #line 6914 "configure" 6922 #line 6923 "configure"
6914 #include "confdefs.h" 6923 #include "confdefs.h"
6915 /* Override any gcc2 internal prototype to avoid an error. */ 6924 /* Override any gcc2 internal prototype to avoid an error. */
6916 /* We use char because int might match the return type of a gcc2 6925 /* We use char because int might match the return type of a gcc2
6917 builtin and then its argument prototype would still apply. */ 6926 builtin and then its argument prototype would still apply. */
6918 char png_read_image(); 6927 char png_read_image();
6919 6928
6920 int main() { 6929 int main() {
6921 png_read_image() 6930 png_read_image()
6922 ; return 0; } 6931 ; return 0; }
6923 EOF 6932 EOF
6924 if { (eval echo configure:6925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6933 if { (eval echo configure:6934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6925 rm -rf conftest* 6934 rm -rf conftest*
6926 eval "ac_cv_lib_$ac_lib_var=yes" 6935 eval "ac_cv_lib_$ac_lib_var=yes"
6927 else 6936 else
6928 echo "configure: failed program was:" >&5 6937 echo "configure: failed program was:" >&5
6929 cat conftest.$ac_ext >&5 6938 cat conftest.$ac_ext >&5
6942 fi 6951 fi
6943 6952
6944 } 6953 }
6945 if test -z "$with_png"; then 6954 if test -z "$with_png"; then
6946 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 6955 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
6947 echo "configure:6948: checking for workable png version information" >&5 6956 echo "configure:6957: checking for workable png version information" >&5
6948 xe_check_libs="-lpng -lz" 6957 xe_check_libs="-lpng -lz"
6949 cat > conftest.$ac_ext <<EOF 6958 cat > conftest.$ac_ext <<EOF
6950 #line 6951 "configure" 6959 #line 6960 "configure"
6951 #include "confdefs.h" 6960 #include "confdefs.h"
6952 #include <png.h> 6961 #include <png.h>
6953 int main(int c, char **v) { 6962 int main(int c, char **v) {
6954 if (c == 1) return 0; 6963 if (c == 1) return 0;
6955 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 6964 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
6956 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 6965 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
6957 EOF 6966 EOF
6958 if { (eval echo configure:6959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6967 if { (eval echo configure:6968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6959 then 6968 then
6960 ./conftest dummy_arg; png_status=$?; 6969 ./conftest dummy_arg; png_status=$?;
6961 if test "$png_status" = "0"; then 6970 if test "$png_status" = "0"; then
6962 with_png=yes; 6971 with_png=yes;
6963 else 6972 else
6996 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 7005 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
6997 fi 7006 fi
6998 7007
6999 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 7008 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7000 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7009 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7001 echo "configure:7002: checking for tiffio.h" >&5 7010 echo "configure:7011: checking for tiffio.h" >&5
7002 7011
7003 cat > conftest.$ac_ext <<EOF 7012 cat > conftest.$ac_ext <<EOF
7004 #line 7005 "configure" 7013 #line 7014 "configure"
7005 #include "confdefs.h" 7014 #include "confdefs.h"
7006 #include <tiffio.h> 7015 #include <tiffio.h>
7007 EOF 7016 EOF
7008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7009 { (eval echo configure:7010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7018 { (eval echo configure:7019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7010 ac_err=`grep -v '^ *+' conftest.out` 7019 ac_err=`grep -v '^ *+' conftest.out`
7011 if test -z "$ac_err"; then 7020 if test -z "$ac_err"; then
7012 rm -rf conftest* 7021 rm -rf conftest*
7013 eval "ac_cv_header_$ac_safe=yes" 7022 eval "ac_cv_header_$ac_safe=yes"
7014 else 7023 else
7027 with_tiff=no 7036 with_tiff=no
7028 fi 7037 fi
7029 } 7038 }
7030 test -z "$with_tiff" && { 7039 test -z "$with_tiff" && {
7031 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7040 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7032 echo "configure:7033: checking for TIFFClientOpen in -ltiff" >&5 7041 echo "configure:7042: checking for TIFFClientOpen in -ltiff" >&5
7033 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7042 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7034 7043
7035 xe_check_libs=" -ltiff " 7044 xe_check_libs=" -ltiff "
7036 cat > conftest.$ac_ext <<EOF 7045 cat > conftest.$ac_ext <<EOF
7037 #line 7038 "configure" 7046 #line 7047 "configure"
7038 #include "confdefs.h" 7047 #include "confdefs.h"
7039 /* Override any gcc2 internal prototype to avoid an error. */ 7048 /* Override any gcc2 internal prototype to avoid an error. */
7040 /* We use char because int might match the return type of a gcc2 7049 /* We use char because int might match the return type of a gcc2
7041 builtin and then its argument prototype would still apply. */ 7050 builtin and then its argument prototype would still apply. */
7042 char TIFFClientOpen(); 7051 char TIFFClientOpen();
7043 7052
7044 int main() { 7053 int main() {
7045 TIFFClientOpen() 7054 TIFFClientOpen()
7046 ; return 0; } 7055 ; return 0; }
7047 EOF 7056 EOF
7048 if { (eval echo configure:7049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7057 if { (eval echo configure:7058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7049 rm -rf conftest* 7058 rm -rf conftest*
7050 eval "ac_cv_lib_$ac_lib_var=yes" 7059 eval "ac_cv_lib_$ac_lib_var=yes"
7051 else 7060 else
7052 echo "configure: failed program was:" >&5 7061 echo "configure: failed program was:" >&5
7053 cat conftest.$ac_ext >&5 7062 cat conftest.$ac_ext >&5
7082 7091
7083 7092
7084 if test "$with_x11" = "yes"; then 7093 if test "$with_x11" = "yes"; then
7085 7094
7086 echo "checking for X11 graphics libraries" 1>&6 7095 echo "checking for X11 graphics libraries" 1>&6
7087 echo "configure:7088: checking for X11 graphics libraries" >&5 7096 echo "configure:7097: checking for X11 graphics libraries" >&5
7088 7097
7089 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7098 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7090 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7099 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7091 echo "configure:7092: checking for compface.h" >&5 7100 echo "configure:7101: checking for compface.h" >&5
7092 7101
7093 cat > conftest.$ac_ext <<EOF 7102 cat > conftest.$ac_ext <<EOF
7094 #line 7095 "configure" 7103 #line 7104 "configure"
7095 #include "confdefs.h" 7104 #include "confdefs.h"
7096 #include <compface.h> 7105 #include <compface.h>
7097 EOF 7106 EOF
7098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7099 { (eval echo configure:7100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7108 { (eval echo configure:7109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7100 ac_err=`grep -v '^ *+' conftest.out` 7109 ac_err=`grep -v '^ *+' conftest.out`
7101 if test -z "$ac_err"; then 7110 if test -z "$ac_err"; then
7102 rm -rf conftest* 7111 rm -rf conftest*
7103 eval "ac_cv_header_$ac_safe=yes" 7112 eval "ac_cv_header_$ac_safe=yes"
7104 else 7113 else
7117 with_xface=no 7126 with_xface=no
7118 fi 7127 fi
7119 } 7128 }
7120 test -z "$with_xface" && { 7129 test -z "$with_xface" && {
7121 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7130 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7122 echo "configure:7123: checking for UnGenFace in -lcompface" >&5 7131 echo "configure:7132: checking for UnGenFace in -lcompface" >&5
7123 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7132 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7124 7133
7125 xe_check_libs=" -lcompface " 7134 xe_check_libs=" -lcompface "
7126 cat > conftest.$ac_ext <<EOF 7135 cat > conftest.$ac_ext <<EOF
7127 #line 7128 "configure" 7136 #line 7137 "configure"
7128 #include "confdefs.h" 7137 #include "confdefs.h"
7129 /* Override any gcc2 internal prototype to avoid an error. */ 7138 /* Override any gcc2 internal prototype to avoid an error. */
7130 /* We use char because int might match the return type of a gcc2 7139 /* We use char because int might match the return type of a gcc2
7131 builtin and then its argument prototype would still apply. */ 7140 builtin and then its argument prototype would still apply. */
7132 char UnGenFace(); 7141 char UnGenFace();
7133 7142
7134 int main() { 7143 int main() {
7135 UnGenFace() 7144 UnGenFace()
7136 ; return 0; } 7145 ; return 0; }
7137 EOF 7146 EOF
7138 if { (eval echo configure:7139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7147 if { (eval echo configure:7148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7139 rm -rf conftest* 7148 rm -rf conftest*
7140 eval "ac_cv_lib_$ac_lib_var=yes" 7149 eval "ac_cv_lib_$ac_lib_var=yes"
7141 else 7150 else
7142 echo "configure: failed program was:" >&5 7151 echo "configure: failed program was:" >&5
7143 cat conftest.$ac_ext >&5 7152 cat conftest.$ac_ext >&5
7169 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 7178 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7170 fi 7179 fi
7171 7180
7172 7181
7173 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 7182 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7174 echo "configure:7175: checking for XawScrollbarSetThumb in -lXaw" >&5 7183 echo "configure:7184: checking for XawScrollbarSetThumb in -lXaw" >&5
7175 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7184 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7176 7185
7177 xe_check_libs=" -lXaw " 7186 xe_check_libs=" -lXaw "
7178 cat > conftest.$ac_ext <<EOF 7187 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure" 7188 #line 7189 "configure"
7180 #include "confdefs.h" 7189 #include "confdefs.h"
7181 /* Override any gcc2 internal prototype to avoid an error. */ 7190 /* Override any gcc2 internal prototype to avoid an error. */
7182 /* We use char because int might match the return type of a gcc2 7191 /* We use char because int might match the return type of a gcc2
7183 builtin and then its argument prototype would still apply. */ 7192 builtin and then its argument prototype would still apply. */
7184 char XawScrollbarSetThumb(); 7193 char XawScrollbarSetThumb();
7185 7194
7186 int main() { 7195 int main() {
7187 XawScrollbarSetThumb() 7196 XawScrollbarSetThumb()
7188 ; return 0; } 7197 ; return 0; }
7189 EOF 7198 EOF
7190 if { (eval echo configure:7191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7199 if { (eval echo configure:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7191 rm -rf conftest* 7200 rm -rf conftest*
7192 eval "ac_cv_lib_$ac_lib_var=yes" 7201 eval "ac_cv_lib_$ac_lib_var=yes"
7193 else 7202 else
7194 echo "configure: failed program was:" >&5 7203 echo "configure: failed program was:" >&5
7195 cat conftest.$ac_ext >&5 7204 cat conftest.$ac_ext >&5
7209 7218
7210 7219
7211 7220
7212 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 7221 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7213 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 7222 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7214 echo "configure:7215: checking for Xm/Xm.h" >&5 7223 echo "configure:7224: checking for Xm/Xm.h" >&5
7215 7224
7216 cat > conftest.$ac_ext <<EOF 7225 cat > conftest.$ac_ext <<EOF
7217 #line 7218 "configure" 7226 #line 7227 "configure"
7218 #include "confdefs.h" 7227 #include "confdefs.h"
7219 #include <Xm/Xm.h> 7228 #include <Xm/Xm.h>
7220 EOF 7229 EOF
7221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7222 { (eval echo configure:7223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7231 { (eval echo configure:7232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7223 ac_err=`grep -v '^ *+' conftest.out` 7232 ac_err=`grep -v '^ *+' conftest.out`
7224 if test -z "$ac_err"; then 7233 if test -z "$ac_err"; then
7225 rm -rf conftest* 7234 rm -rf conftest*
7226 eval "ac_cv_header_$ac_safe=yes" 7235 eval "ac_cv_header_$ac_safe=yes"
7227 else 7236 else
7234 rm -f conftest* 7243 rm -f conftest*
7235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7236 echo "$ac_t""yes" 1>&6 7245 echo "$ac_t""yes" 1>&6
7237 7246
7238 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 7247 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7239 echo "configure:7240: checking for XmStringFree in -lXm" >&5 7248 echo "configure:7249: checking for XmStringFree in -lXm" >&5
7240 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 7249 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7241 7250
7242 xe_check_libs=" -lXm " 7251 xe_check_libs=" -lXm "
7243 cat > conftest.$ac_ext <<EOF 7252 cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure" 7253 #line 7254 "configure"
7245 #include "confdefs.h" 7254 #include "confdefs.h"
7246 /* Override any gcc2 internal prototype to avoid an error. */ 7255 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2 7256 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */ 7257 builtin and then its argument prototype would still apply. */
7249 char XmStringFree(); 7258 char XmStringFree();
7250 7259
7251 int main() { 7260 int main() {
7252 XmStringFree() 7261 XmStringFree()
7253 ; return 0; } 7262 ; return 0; }
7254 EOF 7263 EOF
7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7264 if { (eval echo configure:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7256 rm -rf conftest* 7265 rm -rf conftest*
7257 eval "ac_cv_lib_$ac_lib_var=yes" 7266 eval "ac_cv_lib_$ac_lib_var=yes"
7258 else 7267 else
7259 echo "configure: failed program was:" >&5 7268 echo "configure: failed program was:" >&5
7260 cat conftest.$ac_ext >&5 7269 cat conftest.$ac_ext >&5
7279 fi 7288 fi
7280 7289
7281 7290
7282 if test "$have_motif" = "yes"; then 7291 if test "$have_motif" = "yes"; then
7283 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 7292 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7284 echo "configure:7285: checking for Lesstif" >&5 7293 echo "configure:7294: checking for Lesstif" >&5
7285 cat > conftest.$ac_ext <<EOF 7294 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure" 7295 #line 7296 "configure"
7287 #include "confdefs.h" 7296 #include "confdefs.h"
7288 #include <Xm/Xm.h> 7297 #include <Xm/Xm.h>
7289 #ifdef LESSTIF_VERSION 7298 #ifdef LESSTIF_VERSION
7290 yes 7299 yes
7291 #endif 7300 #endif
7565 fi 7574 fi
7566 fi 7575 fi
7567 7576
7568 if test "$with_mule" = "yes" ; then 7577 if test "$with_mule" = "yes" ; then
7569 echo "checking for Mule-related features" 1>&6 7578 echo "checking for Mule-related features" 1>&6
7570 echo "configure:7571: checking for Mule-related features" >&5 7579 echo "configure:7580: checking for Mule-related features" >&5
7571 { test "$extra_verbose" = "yes" && cat << \EOF 7580 { test "$extra_verbose" = "yes" && cat << \EOF
7572 Defining MULE 7581 Defining MULE
7573 EOF 7582 EOF
7574 cat >> confdefs.h <<\EOF 7583 cat >> confdefs.h <<\EOF
7575 #define MULE 1 7584 #define MULE 1
7590 7599
7591 for ac_hdr in libintl.h 7600 for ac_hdr in libintl.h
7592 do 7601 do
7593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7595 echo "configure:7596: checking for $ac_hdr" >&5 7604 echo "configure:7605: checking for $ac_hdr" >&5
7596 7605
7597 cat > conftest.$ac_ext <<EOF 7606 cat > conftest.$ac_ext <<EOF
7598 #line 7599 "configure" 7607 #line 7608 "configure"
7599 #include "confdefs.h" 7608 #include "confdefs.h"
7600 #include <$ac_hdr> 7609 #include <$ac_hdr>
7601 EOF 7610 EOF
7602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7603 { (eval echo configure:7604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7612 { (eval echo configure:7613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7604 ac_err=`grep -v '^ *+' conftest.out` 7613 ac_err=`grep -v '^ *+' conftest.out`
7605 if test -z "$ac_err"; then 7614 if test -z "$ac_err"; then
7606 rm -rf conftest* 7615 rm -rf conftest*
7607 eval "ac_cv_header_$ac_safe=yes" 7616 eval "ac_cv_header_$ac_safe=yes"
7608 else 7617 else
7629 fi 7638 fi
7630 done 7639 done
7631 7640
7632 7641
7633 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 7642 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7634 echo "configure:7635: checking for strerror in -lintl" >&5 7643 echo "configure:7644: checking for strerror in -lintl" >&5
7635 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 7644 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7636 7645
7637 xe_check_libs=" -lintl " 7646 xe_check_libs=" -lintl "
7638 cat > conftest.$ac_ext <<EOF 7647 cat > conftest.$ac_ext <<EOF
7639 #line 7640 "configure" 7648 #line 7649 "configure"
7640 #include "confdefs.h" 7649 #include "confdefs.h"
7641 /* Override any gcc2 internal prototype to avoid an error. */ 7650 /* Override any gcc2 internal prototype to avoid an error. */
7642 /* We use char because int might match the return type of a gcc2 7651 /* We use char because int might match the return type of a gcc2
7643 builtin and then its argument prototype would still apply. */ 7652 builtin and then its argument prototype would still apply. */
7644 char strerror(); 7653 char strerror();
7645 7654
7646 int main() { 7655 int main() {
7647 strerror() 7656 strerror()
7648 ; return 0; } 7657 ; return 0; }
7649 EOF 7658 EOF
7650 if { (eval echo configure:7651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7659 if { (eval echo configure:7660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7651 rm -rf conftest* 7660 rm -rf conftest*
7652 eval "ac_cv_lib_$ac_lib_var=yes" 7661 eval "ac_cv_lib_$ac_lib_var=yes"
7653 else 7662 else
7654 echo "configure: failed program was:" >&5 7663 echo "configure: failed program was:" >&5
7655 cat conftest.$ac_ext >&5 7664 cat conftest.$ac_ext >&5
7678 fi 7687 fi
7679 7688
7680 7689
7681 7690
7682 echo "checking for Mule input methods" 1>&6 7691 echo "checking for Mule input methods" 1>&6
7683 echo "configure:7684: checking for Mule input methods" >&5 7692 echo "configure:7693: checking for Mule input methods" >&5
7684 case "$with_xim" in "" | "yes" ) 7693 case "$with_xim" in "" | "yes" )
7685 echo "checking for XIM" 1>&6 7694 echo "checking for XIM" 1>&6
7686 echo "configure:7687: checking for XIM" >&5 7695 echo "configure:7696: checking for XIM" >&5
7687 7696
7688 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 7697 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7689 echo "configure:7690: checking for XOpenIM in -lX11" >&5 7698 echo "configure:7699: checking for XOpenIM in -lX11" >&5
7690 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 7699 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7691 7700
7692 xe_check_libs=" -lX11 " 7701 xe_check_libs=" -lX11 "
7693 cat > conftest.$ac_ext <<EOF 7702 cat > conftest.$ac_ext <<EOF
7694 #line 7695 "configure" 7703 #line 7704 "configure"
7695 #include "confdefs.h" 7704 #include "confdefs.h"
7696 /* Override any gcc2 internal prototype to avoid an error. */ 7705 /* Override any gcc2 internal prototype to avoid an error. */
7697 /* We use char because int might match the return type of a gcc2 7706 /* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */ 7707 builtin and then its argument prototype would still apply. */
7699 char XOpenIM(); 7708 char XOpenIM();
7700 7709
7701 int main() { 7710 int main() {
7702 XOpenIM() 7711 XOpenIM()
7703 ; return 0; } 7712 ; return 0; }
7704 EOF 7713 EOF
7705 if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7714 if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7706 rm -rf conftest* 7715 rm -rf conftest*
7707 eval "ac_cv_lib_$ac_lib_var=yes" 7716 eval "ac_cv_lib_$ac_lib_var=yes"
7708 else 7717 else
7709 echo "configure: failed program was:" >&5 7718 echo "configure: failed program was:" >&5
7710 cat conftest.$ac_ext >&5 7719 cat conftest.$ac_ext >&5
7724 7733
7725 7734
7726 if test "$have_motif $have_lesstif" = "yes no"; then 7735 if test "$have_motif $have_lesstif" = "yes no"; then
7727 7736
7728 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 7737 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7729 echo "configure:7730: checking for XmImMbLookupString in -lXm" >&5 7738 echo "configure:7739: checking for XmImMbLookupString in -lXm" >&5
7730 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 7739 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7731 7740
7732 xe_check_libs=" -lXm " 7741 xe_check_libs=" -lXm "
7733 cat > conftest.$ac_ext <<EOF 7742 cat > conftest.$ac_ext <<EOF
7734 #line 7735 "configure" 7743 #line 7744 "configure"
7735 #include "confdefs.h" 7744 #include "confdefs.h"
7736 /* Override any gcc2 internal prototype to avoid an error. */ 7745 /* Override any gcc2 internal prototype to avoid an error. */
7737 /* We use char because int might match the return type of a gcc2 7746 /* We use char because int might match the return type of a gcc2
7738 builtin and then its argument prototype would still apply. */ 7747 builtin and then its argument prototype would still apply. */
7739 char XmImMbLookupString(); 7748 char XmImMbLookupString();
7740 7749
7741 int main() { 7750 int main() {
7742 XmImMbLookupString() 7751 XmImMbLookupString()
7743 ; return 0; } 7752 ; return 0; }
7744 EOF 7753 EOF
7745 if { (eval echo configure:7746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7754 if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7746 rm -rf conftest* 7755 rm -rf conftest*
7747 eval "ac_cv_lib_$ac_lib_var=yes" 7756 eval "ac_cv_lib_$ac_lib_var=yes"
7748 else 7757 else
7749 echo "configure: failed program was:" >&5 7758 echo "configure: failed program was:" >&5
7750 cat conftest.$ac_ext >&5 7759 cat conftest.$ac_ext >&5
7805 fi 7814 fi
7806 fi 7815 fi
7807 7816
7808 if test "$with_xfs" = "yes" ; then 7817 if test "$with_xfs" = "yes" ; then
7809 echo "checking for XFontSet" 1>&6 7818 echo "checking for XFontSet" 1>&6
7810 echo "configure:7811: checking for XFontSet" >&5 7819 echo "configure:7820: checking for XFontSet" >&5
7811 7820
7812 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 7821 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7813 echo "configure:7814: checking for XmbDrawString in -lX11" >&5 7822 echo "configure:7823: checking for XmbDrawString in -lX11" >&5
7814 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 7823 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7815 7824
7816 xe_check_libs=" -lX11 " 7825 xe_check_libs=" -lX11 "
7817 cat > conftest.$ac_ext <<EOF 7826 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure" 7827 #line 7828 "configure"
7819 #include "confdefs.h" 7828 #include "confdefs.h"
7820 /* Override any gcc2 internal prototype to avoid an error. */ 7829 /* Override any gcc2 internal prototype to avoid an error. */
7821 /* We use char because int might match the return type of a gcc2 7830 /* We use char because int might match the return type of a gcc2
7822 builtin and then its argument prototype would still apply. */ 7831 builtin and then its argument prototype would still apply. */
7823 char XmbDrawString(); 7832 char XmbDrawString();
7824 7833
7825 int main() { 7834 int main() {
7826 XmbDrawString() 7835 XmbDrawString()
7827 ; return 0; } 7836 ; return 0; }
7828 EOF 7837 EOF
7829 if { (eval echo configure:7830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7838 if { (eval echo configure:7839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7830 rm -rf conftest* 7839 rm -rf conftest*
7831 eval "ac_cv_lib_$ac_lib_var=yes" 7840 eval "ac_cv_lib_$ac_lib_var=yes"
7832 else 7841 else
7833 echo "configure: failed program was:" >&5 7842 echo "configure: failed program was:" >&5
7834 cat conftest.$ac_ext >&5 7843 cat conftest.$ac_ext >&5
7864 fi 7873 fi
7865 fi 7874 fi
7866 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 7875 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
7867 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 7876 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7868 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 7877 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7869 echo "configure:7870: checking for wnn/jllib.h" >&5 7878 echo "configure:7879: checking for wnn/jllib.h" >&5
7870 7879
7871 cat > conftest.$ac_ext <<EOF 7880 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure" 7881 #line 7882 "configure"
7873 #include "confdefs.h" 7882 #include "confdefs.h"
7874 #include <wnn/jllib.h> 7883 #include <wnn/jllib.h>
7875 EOF 7884 EOF
7876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7877 { (eval echo configure:7878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7886 { (eval echo configure:7887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7878 ac_err=`grep -v '^ *+' conftest.out` 7887 ac_err=`grep -v '^ *+' conftest.out`
7879 if test -z "$ac_err"; then 7888 if test -z "$ac_err"; then
7880 rm -rf conftest* 7889 rm -rf conftest*
7881 eval "ac_cv_header_$ac_safe=yes" 7890 eval "ac_cv_header_$ac_safe=yes"
7882 else 7891 else
7897 } 7906 }
7898 if test "$with_wnn" != "no"; then 7907 if test "$with_wnn" != "no"; then
7899 for ac_func in crypt 7908 for ac_func in crypt
7900 do 7909 do
7901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7902 echo "configure:7903: checking for $ac_func" >&5 7911 echo "configure:7912: checking for $ac_func" >&5
7903 7912
7904 cat > conftest.$ac_ext <<EOF 7913 cat > conftest.$ac_ext <<EOF
7905 #line 7906 "configure" 7914 #line 7915 "configure"
7906 #include "confdefs.h" 7915 #include "confdefs.h"
7907 /* System header to define __stub macros and hopefully few prototypes, 7916 /* System header to define __stub macros and hopefully few prototypes,
7908 which can conflict with char $ac_func(); below. */ 7917 which can conflict with char $ac_func(); below. */
7909 #include <assert.h> 7918 #include <assert.h>
7910 /* Override any gcc2 internal prototype to avoid an error. */ 7919 /* Override any gcc2 internal prototype to avoid an error. */
7923 $ac_func(); 7932 $ac_func();
7924 #endif 7933 #endif
7925 7934
7926 ; return 0; } 7935 ; return 0; }
7927 EOF 7936 EOF
7928 if { (eval echo configure:7929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7937 if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7929 rm -rf conftest* 7938 rm -rf conftest*
7930 eval "ac_cv_func_$ac_func=yes" 7939 eval "ac_cv_func_$ac_func=yes"
7931 else 7940 else
7932 echo "configure: failed program was:" >&5 7941 echo "configure: failed program was:" >&5
7933 cat conftest.$ac_ext >&5 7942 cat conftest.$ac_ext >&5
7952 fi 7961 fi
7953 done 7962 done
7954 7963
7955 test "$ac_cv_func_crypt" != "yes" && { 7964 test "$ac_cv_func_crypt" != "yes" && {
7956 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7965 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7957 echo "configure:7958: checking for crypt in -lcrypt" >&5 7966 echo "configure:7967: checking for crypt in -lcrypt" >&5
7958 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7967 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7959 7968
7960 xe_check_libs=" -lcrypt " 7969 xe_check_libs=" -lcrypt "
7961 cat > conftest.$ac_ext <<EOF 7970 cat > conftest.$ac_ext <<EOF
7962 #line 7963 "configure" 7971 #line 7972 "configure"
7963 #include "confdefs.h" 7972 #include "confdefs.h"
7964 /* Override any gcc2 internal prototype to avoid an error. */ 7973 /* Override any gcc2 internal prototype to avoid an error. */
7965 /* We use char because int might match the return type of a gcc2 7974 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */ 7975 builtin and then its argument prototype would still apply. */
7967 char crypt(); 7976 char crypt();
7968 7977
7969 int main() { 7978 int main() {
7970 crypt() 7979 crypt()
7971 ; return 0; } 7980 ; return 0; }
7972 EOF 7981 EOF
7973 if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7982 if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7974 rm -rf conftest* 7983 rm -rf conftest*
7975 eval "ac_cv_lib_$ac_lib_var=yes" 7984 eval "ac_cv_lib_$ac_lib_var=yes"
7976 else 7985 else
7977 echo "configure: failed program was:" >&5 7986 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5 7987 cat conftest.$ac_ext >&5
8003 } 8012 }
8004 fi 8013 fi
8005 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 8014 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8006 8015
8007 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 8016 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8008 echo "configure:8009: checking for jl_dic_list_e in -lwnn" >&5 8017 echo "configure:8018: checking for jl_dic_list_e in -lwnn" >&5
8009 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8018 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8010 8019
8011 xe_check_libs=" -lwnn " 8020 xe_check_libs=" -lwnn "
8012 cat > conftest.$ac_ext <<EOF 8021 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure" 8022 #line 8023 "configure"
8014 #include "confdefs.h" 8023 #include "confdefs.h"
8015 /* Override any gcc2 internal prototype to avoid an error. */ 8024 /* Override any gcc2 internal prototype to avoid an error. */
8016 /* We use char because int might match the return type of a gcc2 8025 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */ 8026 builtin and then its argument prototype would still apply. */
8018 char jl_dic_list_e(); 8027 char jl_dic_list_e();
8019 8028
8020 int main() { 8029 int main() {
8021 jl_dic_list_e() 8030 jl_dic_list_e()
8022 ; return 0; } 8031 ; return 0; }
8023 EOF 8032 EOF
8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8033 if { (eval echo configure:8034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8025 rm -rf conftest* 8034 rm -rf conftest*
8026 eval "ac_cv_lib_$ac_lib_var=yes" 8035 eval "ac_cv_lib_$ac_lib_var=yes"
8027 else 8036 else
8028 echo "configure: failed program was:" >&5 8037 echo "configure: failed program was:" >&5
8029 cat conftest.$ac_ext >&5 8038 cat conftest.$ac_ext >&5
8037 echo "$ac_t""yes" 1>&6 8046 echo "$ac_t""yes" 1>&6
8038 libwnn=wnn 8047 libwnn=wnn
8039 else 8048 else
8040 echo "$ac_t""no" 1>&6 8049 echo "$ac_t""no" 1>&6
8041 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 8050 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8042 echo "configure:8043: checking for jl_dic_list_e in -lwnn4" >&5 8051 echo "configure:8052: checking for jl_dic_list_e in -lwnn4" >&5
8043 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8052 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8044 8053
8045 xe_check_libs=" -lwnn4 " 8054 xe_check_libs=" -lwnn4 "
8046 cat > conftest.$ac_ext <<EOF 8055 cat > conftest.$ac_ext <<EOF
8047 #line 8048 "configure" 8056 #line 8057 "configure"
8048 #include "confdefs.h" 8057 #include "confdefs.h"
8049 /* Override any gcc2 internal prototype to avoid an error. */ 8058 /* Override any gcc2 internal prototype to avoid an error. */
8050 /* We use char because int might match the return type of a gcc2 8059 /* We use char because int might match the return type of a gcc2
8051 builtin and then its argument prototype would still apply. */ 8060 builtin and then its argument prototype would still apply. */
8052 char jl_dic_list_e(); 8061 char jl_dic_list_e();
8053 8062
8054 int main() { 8063 int main() {
8055 jl_dic_list_e() 8064 jl_dic_list_e()
8056 ; return 0; } 8065 ; return 0; }
8057 EOF 8066 EOF
8058 if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8067 if { (eval echo configure:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8059 rm -rf conftest* 8068 rm -rf conftest*
8060 eval "ac_cv_lib_$ac_lib_var=yes" 8069 eval "ac_cv_lib_$ac_lib_var=yes"
8061 else 8070 else
8062 echo "configure: failed program was:" >&5 8071 echo "configure: failed program was:" >&5
8063 cat conftest.$ac_ext >&5 8072 cat conftest.$ac_ext >&5
8071 echo "$ac_t""yes" 1>&6 8080 echo "$ac_t""yes" 1>&6
8072 libwnn=wnn4 8081 libwnn=wnn4
8073 else 8082 else
8074 echo "$ac_t""no" 1>&6 8083 echo "$ac_t""no" 1>&6
8075 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 8084 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8076 echo "configure:8077: checking for jl_dic_list_e in -lwnn6" >&5 8085 echo "configure:8086: checking for jl_dic_list_e in -lwnn6" >&5
8077 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8086 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8078 8087
8079 xe_check_libs=" -lwnn6 " 8088 xe_check_libs=" -lwnn6 "
8080 cat > conftest.$ac_ext <<EOF 8089 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure" 8090 #line 8091 "configure"
8082 #include "confdefs.h" 8091 #include "confdefs.h"
8083 /* Override any gcc2 internal prototype to avoid an error. */ 8092 /* Override any gcc2 internal prototype to avoid an error. */
8084 /* We use char because int might match the return type of a gcc2 8093 /* We use char because int might match the return type of a gcc2
8085 builtin and then its argument prototype would still apply. */ 8094 builtin and then its argument prototype would still apply. */
8086 char jl_dic_list_e(); 8095 char jl_dic_list_e();
8087 8096
8088 int main() { 8097 int main() {
8089 jl_dic_list_e() 8098 jl_dic_list_e()
8090 ; return 0; } 8099 ; return 0; }
8091 EOF 8100 EOF
8092 if { (eval echo configure:8093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8101 if { (eval echo configure:8102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8093 rm -rf conftest* 8102 rm -rf conftest*
8094 eval "ac_cv_lib_$ac_lib_var=yes" 8103 eval "ac_cv_lib_$ac_lib_var=yes"
8095 else 8104 else
8096 echo "configure: failed program was:" >&5 8105 echo "configure: failed program was:" >&5
8097 cat conftest.$ac_ext >&5 8106 cat conftest.$ac_ext >&5
8105 echo "$ac_t""yes" 1>&6 8114 echo "$ac_t""yes" 1>&6
8106 libwnn=wnn6 8115 libwnn=wnn6
8107 else 8116 else
8108 echo "$ac_t""no" 1>&6 8117 echo "$ac_t""no" 1>&6
8109 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 8118 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8110 echo "configure:8111: checking for dic_list_e in -lwnn6_fromsrc" >&5 8119 echo "configure:8120: checking for dic_list_e in -lwnn6_fromsrc" >&5
8111 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 8120 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8112 8121
8113 xe_check_libs=" -lwnn6_fromsrc " 8122 xe_check_libs=" -lwnn6_fromsrc "
8114 cat > conftest.$ac_ext <<EOF 8123 cat > conftest.$ac_ext <<EOF
8115 #line 8116 "configure" 8124 #line 8125 "configure"
8116 #include "confdefs.h" 8125 #include "confdefs.h"
8117 /* Override any gcc2 internal prototype to avoid an error. */ 8126 /* Override any gcc2 internal prototype to avoid an error. */
8118 /* We use char because int might match the return type of a gcc2 8127 /* We use char because int might match the return type of a gcc2
8119 builtin and then its argument prototype would still apply. */ 8128 builtin and then its argument prototype would still apply. */
8120 char dic_list_e(); 8129 char dic_list_e();
8121 8130
8122 int main() { 8131 int main() {
8123 dic_list_e() 8132 dic_list_e()
8124 ; return 0; } 8133 ; return 0; }
8125 EOF 8134 EOF
8126 if { (eval echo configure:8127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8135 if { (eval echo configure:8136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8127 rm -rf conftest* 8136 rm -rf conftest*
8128 eval "ac_cv_lib_$ac_lib_var=yes" 8137 eval "ac_cv_lib_$ac_lib_var=yes"
8129 else 8138 else
8130 echo "configure: failed program was:" >&5 8139 echo "configure: failed program was:" >&5
8131 cat conftest.$ac_ext >&5 8140 cat conftest.$ac_ext >&5
8169 echo " xemacs will be linked with \"mule-wnnfns.o\"" 8178 echo " xemacs will be linked with \"mule-wnnfns.o\""
8170 fi 8179 fi
8171 if test "$with_wnn6" != "no"; then 8180 if test "$with_wnn6" != "no"; then
8172 8181
8173 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 8182 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8174 echo "configure:8175: checking for jl_fi_dic_list in -l$libwnn" >&5 8183 echo "configure:8184: checking for jl_fi_dic_list in -l$libwnn" >&5
8175 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 8184 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8176 8185
8177 xe_check_libs=" -l$libwnn " 8186 xe_check_libs=" -l$libwnn "
8178 cat > conftest.$ac_ext <<EOF 8187 cat > conftest.$ac_ext <<EOF
8179 #line 8180 "configure" 8188 #line 8189 "configure"
8180 #include "confdefs.h" 8189 #include "confdefs.h"
8181 /* Override any gcc2 internal prototype to avoid an error. */ 8190 /* Override any gcc2 internal prototype to avoid an error. */
8182 /* We use char because int might match the return type of a gcc2 8191 /* We use char because int might match the return type of a gcc2
8183 builtin and then its argument prototype would still apply. */ 8192 builtin and then its argument prototype would still apply. */
8184 char jl_fi_dic_list(); 8193 char jl_fi_dic_list();
8185 8194
8186 int main() { 8195 int main() {
8187 jl_fi_dic_list() 8196 jl_fi_dic_list()
8188 ; return 0; } 8197 ; return 0; }
8189 EOF 8198 EOF
8190 if { (eval echo configure:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8199 if { (eval echo configure:8200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8191 rm -rf conftest* 8200 rm -rf conftest*
8192 eval "ac_cv_lib_$ac_lib_var=yes" 8201 eval "ac_cv_lib_$ac_lib_var=yes"
8193 else 8202 else
8194 echo "configure: failed program was:" >&5 8203 echo "configure: failed program was:" >&5
8195 cat conftest.$ac_ext >&5 8204 cat conftest.$ac_ext >&5
8220 8229
8221 canna_includes_found=no 8230 canna_includes_found=no
8222 if test "$with_canna" != "no"; then 8231 if test "$with_canna" != "no"; then
8223 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8232 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8224 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8233 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8225 echo "configure:8226: checking for canna/jrkanji.h" >&5 8234 echo "configure:8235: checking for canna/jrkanji.h" >&5
8226 8235
8227 cat > conftest.$ac_ext <<EOF 8236 cat > conftest.$ac_ext <<EOF
8228 #line 8229 "configure" 8237 #line 8238 "configure"
8229 #include "confdefs.h" 8238 #include "confdefs.h"
8230 #include <canna/jrkanji.h> 8239 #include <canna/jrkanji.h>
8231 EOF 8240 EOF
8232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8233 { (eval echo configure:8234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8242 { (eval echo configure:8243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8234 ac_err=`grep -v '^ *+' conftest.out` 8243 ac_err=`grep -v '^ *+' conftest.out`
8235 if test -z "$ac_err"; then 8244 if test -z "$ac_err"; then
8236 rm -rf conftest* 8245 rm -rf conftest*
8237 eval "ac_cv_header_$ac_safe=yes" 8246 eval "ac_cv_header_$ac_safe=yes"
8238 else 8247 else
8255 -d "/usr/local/canna/include"; then 8264 -d "/usr/local/canna/include"; then
8256 save_c_switch_site="$c_switch_site" 8265 save_c_switch_site="$c_switch_site"
8257 c_switch_site="$c_switch_site -I/usr/local/canna/include" 8266 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8258 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8267 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8259 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8268 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8260 echo "configure:8261: checking for canna/jrkanji.h" >&5 8269 echo "configure:8270: checking for canna/jrkanji.h" >&5
8261 8270
8262 cat > conftest.$ac_ext <<EOF 8271 cat > conftest.$ac_ext <<EOF
8263 #line 8264 "configure" 8272 #line 8273 "configure"
8264 #include "confdefs.h" 8273 #include "confdefs.h"
8265 #include <canna/jrkanji.h> 8274 #include <canna/jrkanji.h>
8266 EOF 8275 EOF
8267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8268 { (eval echo configure:8269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8277 { (eval echo configure:8278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8269 ac_err=`grep -v '^ *+' conftest.out` 8278 ac_err=`grep -v '^ *+' conftest.out`
8270 if test -z "$ac_err"; then 8279 if test -z "$ac_err"; then
8271 rm -rf conftest* 8280 rm -rf conftest*
8272 eval "ac_cv_header_$ac_safe=yes" 8281 eval "ac_cv_header_$ac_safe=yes"
8273 else 8282 else
8291 fi 8300 fi
8292 fi 8301 fi
8293 8302
8294 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 8303 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8295 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 8304 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8296 echo "configure:8297: checking for canna/RK.h" >&5 8305 echo "configure:8306: checking for canna/RK.h" >&5
8297 8306
8298 cat > conftest.$ac_ext <<EOF 8307 cat > conftest.$ac_ext <<EOF
8299 #line 8300 "configure" 8308 #line 8309 "configure"
8300 #include "confdefs.h" 8309 #include "confdefs.h"
8301 #include <canna/RK.h> 8310 #include <canna/RK.h>
8302 EOF 8311 EOF
8303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8304 { (eval echo configure:8305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8313 { (eval echo configure:8314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8305 ac_err=`grep -v '^ *+' conftest.out` 8314 ac_err=`grep -v '^ *+' conftest.out`
8306 if test -z "$ac_err"; then 8315 if test -z "$ac_err"; then
8307 rm -rf conftest* 8316 rm -rf conftest*
8308 eval "ac_cv_header_$ac_safe=yes" 8317 eval "ac_cv_header_$ac_safe=yes"
8309 else 8318 else
8322 with_canna=no 8331 with_canna=no
8323 fi 8332 fi
8324 } 8333 }
8325 test -z "$with_canna" && { 8334 test -z "$with_canna" && {
8326 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 8335 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8327 echo "configure:8328: checking for RkBgnBun in -lRKC" >&5 8336 echo "configure:8337: checking for RkBgnBun in -lRKC" >&5
8328 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 8337 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8329 8338
8330 xe_check_libs=" -lRKC " 8339 xe_check_libs=" -lRKC "
8331 cat > conftest.$ac_ext <<EOF 8340 cat > conftest.$ac_ext <<EOF
8332 #line 8333 "configure" 8341 #line 8342 "configure"
8333 #include "confdefs.h" 8342 #include "confdefs.h"
8334 /* Override any gcc2 internal prototype to avoid an error. */ 8343 /* Override any gcc2 internal prototype to avoid an error. */
8335 /* We use char because int might match the return type of a gcc2 8344 /* We use char because int might match the return type of a gcc2
8336 builtin and then its argument prototype would still apply. */ 8345 builtin and then its argument prototype would still apply. */
8337 char RkBgnBun(); 8346 char RkBgnBun();
8338 8347
8339 int main() { 8348 int main() {
8340 RkBgnBun() 8349 RkBgnBun()
8341 ; return 0; } 8350 ; return 0; }
8342 EOF 8351 EOF
8343 if { (eval echo configure:8344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8352 if { (eval echo configure:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8344 rm -rf conftest* 8353 rm -rf conftest*
8345 eval "ac_cv_lib_$ac_lib_var=yes" 8354 eval "ac_cv_lib_$ac_lib_var=yes"
8346 else 8355 else
8347 echo "configure: failed program was:" >&5 8356 echo "configure: failed program was:" >&5
8348 cat conftest.$ac_ext >&5 8357 cat conftest.$ac_ext >&5
8361 fi 8370 fi
8362 8371
8363 } 8372 }
8364 test -z "$with_canna" && { 8373 test -z "$with_canna" && {
8365 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 8374 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8366 echo "configure:8367: checking for jrKanjiControl in -lcanna" >&5 8375 echo "configure:8376: checking for jrKanjiControl in -lcanna" >&5
8367 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 8376 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8368 8377
8369 xe_check_libs=" -lcanna " 8378 xe_check_libs=" -lcanna "
8370 cat > conftest.$ac_ext <<EOF 8379 cat > conftest.$ac_ext <<EOF
8371 #line 8372 "configure" 8380 #line 8381 "configure"
8372 #include "confdefs.h" 8381 #include "confdefs.h"
8373 /* Override any gcc2 internal prototype to avoid an error. */ 8382 /* Override any gcc2 internal prototype to avoid an error. */
8374 /* We use char because int might match the return type of a gcc2 8383 /* We use char because int might match the return type of a gcc2
8375 builtin and then its argument prototype would still apply. */ 8384 builtin and then its argument prototype would still apply. */
8376 char jrKanjiControl(); 8385 char jrKanjiControl();
8377 8386
8378 int main() { 8387 int main() {
8379 jrKanjiControl() 8388 jrKanjiControl()
8380 ; return 0; } 8389 ; return 0; }
8381 EOF 8390 EOF
8382 if { (eval echo configure:8383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8391 if { (eval echo configure:8392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8383 rm -rf conftest* 8392 rm -rf conftest*
8384 eval "ac_cv_lib_$ac_lib_var=yes" 8393 eval "ac_cv_lib_$ac_lib_var=yes"
8385 else 8394 else
8386 echo "configure: failed program was:" >&5 8395 echo "configure: failed program was:" >&5
8387 cat conftest.$ac_ext >&5 8396 cat conftest.$ac_ext >&5
8426 8435
8427 if test "$need_motif" = "yes" ; then 8436 if test "$need_motif" = "yes" ; then
8428 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 8437 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8429 8438
8430 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 8439 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8431 echo "configure:8432: checking for layout_object_getvalue in -li18n" >&5 8440 echo "configure:8441: checking for layout_object_getvalue in -li18n" >&5
8432 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 8441 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8433 8442
8434 xe_check_libs=" -li18n " 8443 xe_check_libs=" -li18n "
8435 cat > conftest.$ac_ext <<EOF 8444 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure" 8445 #line 8446 "configure"
8437 #include "confdefs.h" 8446 #include "confdefs.h"
8438 /* Override any gcc2 internal prototype to avoid an error. */ 8447 /* Override any gcc2 internal prototype to avoid an error. */
8439 /* We use char because int might match the return type of a gcc2 8448 /* We use char because int might match the return type of a gcc2
8440 builtin and then its argument prototype would still apply. */ 8449 builtin and then its argument prototype would still apply. */
8441 char layout_object_getvalue(); 8450 char layout_object_getvalue();
8442 8451
8443 int main() { 8452 int main() {
8444 layout_object_getvalue() 8453 layout_object_getvalue()
8445 ; return 0; } 8454 ; return 0; }
8446 EOF 8455 EOF
8447 if { (eval echo configure:8448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8456 if { (eval echo configure:8457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8448 rm -rf conftest* 8457 rm -rf conftest*
8449 eval "ac_cv_lib_$ac_lib_var=yes" 8458 eval "ac_cv_lib_$ac_lib_var=yes"
8450 else 8459 else
8451 echo "configure: failed program was:" >&5 8460 echo "configure: failed program was:" >&5
8452 cat conftest.$ac_ext >&5 8461 cat conftest.$ac_ext >&5
8528 fi 8537 fi
8529 8538
8530 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 8539 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
8531 do 8540 do
8532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8533 echo "configure:8534: checking for $ac_func" >&5 8542 echo "configure:8543: checking for $ac_func" >&5
8534 8543
8535 cat > conftest.$ac_ext <<EOF 8544 cat > conftest.$ac_ext <<EOF
8536 #line 8537 "configure" 8545 #line 8546 "configure"
8537 #include "confdefs.h" 8546 #include "confdefs.h"
8538 /* System header to define __stub macros and hopefully few prototypes, 8547 /* System header to define __stub macros and hopefully few prototypes,
8539 which can conflict with char $ac_func(); below. */ 8548 which can conflict with char $ac_func(); below. */
8540 #include <assert.h> 8549 #include <assert.h>
8541 /* Override any gcc2 internal prototype to avoid an error. */ 8550 /* Override any gcc2 internal prototype to avoid an error. */
8554 $ac_func(); 8563 $ac_func();
8555 #endif 8564 #endif
8556 8565
8557 ; return 0; } 8566 ; return 0; }
8558 EOF 8567 EOF
8559 if { (eval echo configure:8560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8560 rm -rf conftest* 8569 rm -rf conftest*
8561 eval "ac_cv_func_$ac_func=yes" 8570 eval "ac_cv_func_$ac_func=yes"
8562 else 8571 else
8563 echo "configure: failed program was:" >&5 8572 echo "configure: failed program was:" >&5
8564 cat conftest.$ac_ext >&5 8573 cat conftest.$ac_ext >&5
8595 echo " xemacs will be linked with \"realpath.o\"" 8604 echo " xemacs will be linked with \"realpath.o\""
8596 fi ;; 8605 fi ;;
8597 * ) for ac_func in realpath 8606 * ) for ac_func in realpath
8598 do 8607 do
8599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8600 echo "configure:8601: checking for $ac_func" >&5 8609 echo "configure:8610: checking for $ac_func" >&5
8601 8610
8602 cat > conftest.$ac_ext <<EOF 8611 cat > conftest.$ac_ext <<EOF
8603 #line 8604 "configure" 8612 #line 8613 "configure"
8604 #include "confdefs.h" 8613 #include "confdefs.h"
8605 /* System header to define __stub macros and hopefully few prototypes, 8614 /* System header to define __stub macros and hopefully few prototypes,
8606 which can conflict with char $ac_func(); below. */ 8615 which can conflict with char $ac_func(); below. */
8607 #include <assert.h> 8616 #include <assert.h>
8608 /* Override any gcc2 internal prototype to avoid an error. */ 8617 /* Override any gcc2 internal prototype to avoid an error. */
8621 $ac_func(); 8630 $ac_func();
8622 #endif 8631 #endif
8623 8632
8624 ; return 0; } 8633 ; return 0; }
8625 EOF 8634 EOF
8626 if { (eval echo configure:8627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8635 if { (eval echo configure:8636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8627 rm -rf conftest* 8636 rm -rf conftest*
8628 eval "ac_cv_func_$ac_func=yes" 8637 eval "ac_cv_func_$ac_func=yes"
8629 else 8638 else
8630 echo "configure: failed program was:" >&5 8639 echo "configure: failed program was:" >&5
8631 cat conftest.$ac_ext >&5 8640 cat conftest.$ac_ext >&5
8655 fi ;; 8664 fi ;;
8656 esac ;; 8665 esac ;;
8657 esac 8666 esac
8658 8667
8659 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 8668 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8660 echo "configure:8661: checking whether netdb declares h_errno" >&5 8669 echo "configure:8670: checking whether netdb declares h_errno" >&5
8661 cat > conftest.$ac_ext <<EOF 8670 cat > conftest.$ac_ext <<EOF
8662 #line 8663 "configure" 8671 #line 8672 "configure"
8663 #include "confdefs.h" 8672 #include "confdefs.h"
8664 #include <netdb.h> 8673 #include <netdb.h>
8665 int main() { 8674 int main() {
8666 return h_errno; 8675 return h_errno;
8667 ; return 0; } 8676 ; return 0; }
8668 EOF 8677 EOF
8669 if { (eval echo configure:8670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8678 if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8670 rm -rf conftest* 8679 rm -rf conftest*
8671 echo "$ac_t""yes" 1>&6 8680 echo "$ac_t""yes" 1>&6
8672 { test "$extra_verbose" = "yes" && cat << \EOF 8681 { test "$extra_verbose" = "yes" && cat << \EOF
8673 Defining HAVE_H_ERRNO 8682 Defining HAVE_H_ERRNO
8674 EOF 8683 EOF
8684 echo "$ac_t""no" 1>&6 8693 echo "$ac_t""no" 1>&6
8685 fi 8694 fi
8686 rm -f conftest* 8695 rm -f conftest*
8687 8696
8688 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 8697 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8689 echo "configure:8690: checking for sigsetjmp" >&5 8698 echo "configure:8699: checking for sigsetjmp" >&5
8690 cat > conftest.$ac_ext <<EOF 8699 cat > conftest.$ac_ext <<EOF
8691 #line 8692 "configure" 8700 #line 8701 "configure"
8692 #include "confdefs.h" 8701 #include "confdefs.h"
8693 #include <setjmp.h> 8702 #include <setjmp.h>
8694 int main() { 8703 int main() {
8695 sigjmp_buf bar; sigsetjmp (bar, 0); 8704 sigjmp_buf bar; sigsetjmp (bar, 0);
8696 ; return 0; } 8705 ; return 0; }
8697 EOF 8706 EOF
8698 if { (eval echo configure:8699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8707 if { (eval echo configure:8708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8699 rm -rf conftest* 8708 rm -rf conftest*
8700 echo "$ac_t""yes" 1>&6 8709 echo "$ac_t""yes" 1>&6
8701 { test "$extra_verbose" = "yes" && cat << \EOF 8710 { test "$extra_verbose" = "yes" && cat << \EOF
8702 Defining HAVE_SIGSETJMP 8711 Defining HAVE_SIGSETJMP
8703 EOF 8712 EOF
8713 echo "$ac_t""no" 1>&6 8722 echo "$ac_t""no" 1>&6
8714 fi 8723 fi
8715 rm -f conftest* 8724 rm -f conftest*
8716 8725
8717 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8726 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8718 echo "configure:8719: checking whether localtime caches TZ" >&5 8727 echo "configure:8728: checking whether localtime caches TZ" >&5
8719 8728
8720 if test "$ac_cv_func_tzset" = "yes"; then 8729 if test "$ac_cv_func_tzset" = "yes"; then
8721 cat > conftest.$ac_ext <<EOF 8730 cat > conftest.$ac_ext <<EOF
8722 #line 8723 "configure" 8731 #line 8732 "configure"
8723 #include "confdefs.h" 8732 #include "confdefs.h"
8724 #include <time.h> 8733 #include <time.h>
8725 #if STDC_HEADERS 8734 #if STDC_HEADERS
8726 # include <stdlib.h> 8735 # include <stdlib.h>
8727 #endif 8736 #endif
8752 if (localtime (&now)->tm_hour != hour_unset) 8761 if (localtime (&now)->tm_hour != hour_unset)
8753 exit (1); 8762 exit (1);
8754 exit (0); 8763 exit (0);
8755 } 8764 }
8756 EOF 8765 EOF
8757 if { (eval echo configure:8758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8766 if { (eval echo configure:8767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8758 then 8767 then
8759 emacs_cv_localtime_cache=no 8768 emacs_cv_localtime_cache=no
8760 else 8769 else
8761 conftest_rc="$?" 8770 conftest_rc="$?"
8762 echo "configure: failed program was:" >&5 8771 echo "configure: failed program was:" >&5
8782 8791
8783 fi 8792 fi
8784 8793
8785 if test "$HAVE_TIMEVAL" = "yes"; then 8794 if test "$HAVE_TIMEVAL" = "yes"; then
8786 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 8795 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
8787 echo "configure:8788: checking whether gettimeofday accepts one or two arguments" >&5 8796 echo "configure:8797: checking whether gettimeofday accepts one or two arguments" >&5
8788 cat > conftest.$ac_ext <<EOF 8797 cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure" 8798 #line 8799 "configure"
8790 #include "confdefs.h" 8799 #include "confdefs.h"
8791 8800
8792 #ifdef TIME_WITH_SYS_TIME 8801 #ifdef TIME_WITH_SYS_TIME
8793 #include <sys/time.h> 8802 #include <sys/time.h>
8794 #include <time.h> 8803 #include <time.h>
8806 struct timezone dummy; 8815 struct timezone dummy;
8807 gettimeofday (&time, &dummy); 8816 gettimeofday (&time, &dummy);
8808 8817
8809 ; return 0; } 8818 ; return 0; }
8810 EOF 8819 EOF
8811 if { (eval echo configure:8812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8820 if { (eval echo configure:8821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8812 rm -rf conftest* 8821 rm -rf conftest*
8813 echo "$ac_t""two" 1>&6 8822 echo "$ac_t""two" 1>&6
8814 else 8823 else
8815 echo "configure: failed program was:" >&5 8824 echo "configure: failed program was:" >&5
8816 cat conftest.$ac_ext >&5 8825 cat conftest.$ac_ext >&5
8828 rm -f conftest* 8837 rm -f conftest*
8829 fi 8838 fi
8830 8839
8831 8840
8832 echo $ac_n "checking for inline""... $ac_c" 1>&6 8841 echo $ac_n "checking for inline""... $ac_c" 1>&6
8833 echo "configure:8834: checking for inline" >&5 8842 echo "configure:8843: checking for inline" >&5
8834 8843
8835 ac_cv_c_inline=no 8844 ac_cv_c_inline=no
8836 for ac_kw in inline __inline__ __inline; do 8845 for ac_kw in inline __inline__ __inline; do
8837 cat > conftest.$ac_ext <<EOF 8846 cat > conftest.$ac_ext <<EOF
8838 #line 8839 "configure" 8847 #line 8848 "configure"
8839 #include "confdefs.h" 8848 #include "confdefs.h"
8840 8849
8841 int main() { 8850 int main() {
8842 } $ac_kw foo() { 8851 } $ac_kw foo() {
8843 ; return 0; } 8852 ; return 0; }
8844 EOF 8853 EOF
8845 if { (eval echo configure:8846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8854 if { (eval echo configure:8855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8846 rm -rf conftest* 8855 rm -rf conftest*
8847 ac_cv_c_inline=$ac_kw; break 8856 ac_cv_c_inline=$ac_kw; break
8848 else 8857 else
8849 echo "configure: failed program was:" >&5 8858 echo "configure: failed program was:" >&5
8850 cat conftest.$ac_ext >&5 8859 cat conftest.$ac_ext >&5
8890 8899
8891 8900
8892 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8901 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8893 # for constant arguments. Useless! 8902 # for constant arguments. Useless!
8894 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 8903 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8895 echo "configure:8896: checking for working alloca.h" >&5 8904 echo "configure:8905: checking for working alloca.h" >&5
8896 8905
8897 cat > conftest.$ac_ext <<EOF 8906 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure" 8907 #line 8908 "configure"
8899 #include "confdefs.h" 8908 #include "confdefs.h"
8900 #include <alloca.h> 8909 #include <alloca.h>
8901 int main() { 8910 int main() {
8902 char *p = alloca(2 * sizeof(int)); 8911 char *p = alloca(2 * sizeof(int));
8903 ; return 0; } 8912 ; return 0; }
8904 EOF 8913 EOF
8905 if { (eval echo configure:8906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8914 if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8906 rm -rf conftest* 8915 rm -rf conftest*
8907 ac_cv_header_alloca_h=yes 8916 ac_cv_header_alloca_h=yes
8908 else 8917 else
8909 echo "configure: failed program was:" >&5 8918 echo "configure: failed program was:" >&5
8910 cat conftest.$ac_ext >&5 8919 cat conftest.$ac_ext >&5
8924 } 8933 }
8925 8934
8926 fi 8935 fi
8927 8936
8928 echo $ac_n "checking for alloca""... $ac_c" 1>&6 8937 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8929 echo "configure:8930: checking for alloca" >&5 8938 echo "configure:8939: checking for alloca" >&5
8930 8939
8931 cat > conftest.$ac_ext <<EOF 8940 cat > conftest.$ac_ext <<EOF
8932 #line 8933 "configure" 8941 #line 8942 "configure"
8933 #include "confdefs.h" 8942 #include "confdefs.h"
8934 8943
8935 #ifdef __GNUC__ 8944 #ifdef __GNUC__
8936 # define alloca __builtin_alloca 8945 # define alloca __builtin_alloca
8937 #else 8946 #else
8950 8959
8951 int main() { 8960 int main() {
8952 char *p = (char *) alloca(1); 8961 char *p = (char *) alloca(1);
8953 ; return 0; } 8962 ; return 0; }
8954 EOF 8963 EOF
8955 if { (eval echo configure:8956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8964 if { (eval echo configure:8965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8956 rm -rf conftest* 8965 rm -rf conftest*
8957 ac_cv_func_alloca_works=yes 8966 ac_cv_func_alloca_works=yes
8958 else 8967 else
8959 echo "configure: failed program was:" >&5 8968 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5 8969 cat conftest.$ac_ext >&5
8989 EOF 8998 EOF
8990 } 8999 }
8991 9000
8992 9001
8993 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 9002 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8994 echo "configure:8995: checking whether alloca needs Cray hooks" >&5 9003 echo "configure:9004: checking whether alloca needs Cray hooks" >&5
8995 9004
8996 cat > conftest.$ac_ext <<EOF 9005 cat > conftest.$ac_ext <<EOF
8997 #line 8998 "configure" 9006 #line 9007 "configure"
8998 #include "confdefs.h" 9007 #include "confdefs.h"
8999 #if defined(CRAY) && ! defined(CRAY2) 9008 #if defined(CRAY) && ! defined(CRAY2)
9000 webecray 9009 webecray
9001 #else 9010 #else
9002 wenotbecray 9011 wenotbecray
9016 9025
9017 echo "$ac_t""$ac_cv_os_cray" 1>&6 9026 echo "$ac_t""$ac_cv_os_cray" 1>&6
9018 if test $ac_cv_os_cray = yes; then 9027 if test $ac_cv_os_cray = yes; then
9019 for ac_func in _getb67 GETB67 getb67; do 9028 for ac_func in _getb67 GETB67 getb67; do
9020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9021 echo "configure:9022: checking for $ac_func" >&5 9030 echo "configure:9031: checking for $ac_func" >&5
9022 9031
9023 cat > conftest.$ac_ext <<EOF 9032 cat > conftest.$ac_ext <<EOF
9024 #line 9025 "configure" 9033 #line 9034 "configure"
9025 #include "confdefs.h" 9034 #include "confdefs.h"
9026 /* System header to define __stub macros and hopefully few prototypes, 9035 /* System header to define __stub macros and hopefully few prototypes,
9027 which can conflict with char $ac_func(); below. */ 9036 which can conflict with char $ac_func(); below. */
9028 #include <assert.h> 9037 #include <assert.h>
9029 /* Override any gcc2 internal prototype to avoid an error. */ 9038 /* Override any gcc2 internal prototype to avoid an error. */
9042 $ac_func(); 9051 $ac_func();
9043 #endif 9052 #endif
9044 9053
9045 ; return 0; } 9054 ; return 0; }
9046 EOF 9055 EOF
9047 if { (eval echo configure:9048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9056 if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9048 rm -rf conftest* 9057 rm -rf conftest*
9049 eval "ac_cv_func_$ac_func=yes" 9058 eval "ac_cv_func_$ac_func=yes"
9050 else 9059 else
9051 echo "configure: failed program was:" >&5 9060 echo "configure: failed program was:" >&5
9052 cat conftest.$ac_ext >&5 9061 cat conftest.$ac_ext >&5
9072 9081
9073 done 9082 done
9074 fi 9083 fi
9075 9084
9076 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 9085 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9077 echo "configure:9078: checking stack direction for C alloca" >&5 9086 echo "configure:9087: checking stack direction for C alloca" >&5
9078 9087
9079 cat > conftest.$ac_ext <<EOF 9088 cat > conftest.$ac_ext <<EOF
9080 #line 9081 "configure" 9089 #line 9090 "configure"
9081 #include "confdefs.h" 9090 #include "confdefs.h"
9082 find_stack_direction () 9091 find_stack_direction ()
9083 { 9092 {
9084 static char *addr = 0; 9093 static char *addr = 0;
9085 auto char dummy; 9094 auto char dummy;
9094 main () 9103 main ()
9095 { 9104 {
9096 exit (find_stack_direction() < 0); 9105 exit (find_stack_direction() < 0);
9097 } 9106 }
9098 EOF 9107 EOF
9099 if { (eval echo configure:9100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9108 if { (eval echo configure:9109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9100 then 9109 then
9101 ac_cv_c_stack_direction=1 9110 ac_cv_c_stack_direction=1
9102 else 9111 else
9103 conftest_rc="$?" 9112 conftest_rc="$?"
9104 echo "configure: failed program was:" >&5 9113 echo "configure: failed program was:" >&5
9123 echo " xemacs will be linked with \"$ALLOCA\"" 9132 echo " xemacs will be linked with \"$ALLOCA\""
9124 fi 9133 fi
9125 9134
9126 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 9135 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9127 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 9136 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9128 echo "configure:9129: checking for vfork.h" >&5 9137 echo "configure:9138: checking for vfork.h" >&5
9129 9138
9130 cat > conftest.$ac_ext <<EOF 9139 cat > conftest.$ac_ext <<EOF
9131 #line 9132 "configure" 9140 #line 9141 "configure"
9132 #include "confdefs.h" 9141 #include "confdefs.h"
9133 #include <vfork.h> 9142 #include <vfork.h>
9134 EOF 9143 EOF
9135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9136 { (eval echo configure:9137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9145 { (eval echo configure:9146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9137 ac_err=`grep -v '^ *+' conftest.out` 9146 ac_err=`grep -v '^ *+' conftest.out`
9138 if test -z "$ac_err"; then 9147 if test -z "$ac_err"; then
9139 rm -rf conftest* 9148 rm -rf conftest*
9140 eval "ac_cv_header_$ac_safe=yes" 9149 eval "ac_cv_header_$ac_safe=yes"
9141 else 9150 else
9159 else 9168 else
9160 echo "$ac_t""no" 1>&6 9169 echo "$ac_t""no" 1>&6
9161 fi 9170 fi
9162 9171
9163 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 9172 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9164 echo "configure:9165: checking for working vfork" >&5 9173 echo "configure:9174: checking for working vfork" >&5
9165 9174
9166 cat > conftest.$ac_ext <<EOF 9175 cat > conftest.$ac_ext <<EOF
9167 #line 9168 "configure" 9176 #line 9177 "configure"
9168 #include "confdefs.h" 9177 #include "confdefs.h"
9169 /* Thanks to Paul Eggert for this test. */ 9178 /* Thanks to Paul Eggert for this test. */
9170 #include <stdio.h> 9179 #include <stdio.h>
9171 #include <sys/types.h> 9180 #include <sys/types.h>
9172 #include <sys/stat.h> 9181 #include <sys/stat.h>
9257 || fstat(fileno(stdout), &st) != 0 9266 || fstat(fileno(stdout), &st) != 0
9258 ); 9267 );
9259 } 9268 }
9260 } 9269 }
9261 EOF 9270 EOF
9262 if { (eval echo configure:9263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9271 if { (eval echo configure:9272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9263 then 9272 then
9264 ac_cv_func_vfork_works=yes 9273 ac_cv_func_vfork_works=yes
9265 else 9274 else
9266 conftest_rc="$?" 9275 conftest_rc="$?"
9267 echo "configure: failed program was:" >&5 9276 echo "configure: failed program was:" >&5
9283 9292
9284 fi 9293 fi
9285 9294
9286 9295
9287 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 9296 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9288 echo "configure:9289: checking for working strcoll" >&5 9297 echo "configure:9298: checking for working strcoll" >&5
9289 9298
9290 cat > conftest.$ac_ext <<EOF 9299 cat > conftest.$ac_ext <<EOF
9291 #line 9292 "configure" 9300 #line 9301 "configure"
9292 #include "confdefs.h" 9301 #include "confdefs.h"
9293 #include <string.h> 9302 #include <string.h>
9294 main () 9303 main ()
9295 { 9304 {
9296 exit (strcoll ("abc", "def") >= 0 || 9305 exit (strcoll ("abc", "def") >= 0 ||
9297 strcoll ("ABC", "DEF") >= 0 || 9306 strcoll ("ABC", "DEF") >= 0 ||
9298 strcoll ("123", "456") >= 0); 9307 strcoll ("123", "456") >= 0);
9299 } 9308 }
9300 EOF 9309 EOF
9301 if { (eval echo configure:9302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9310 if { (eval echo configure:9311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9302 then 9311 then
9303 ac_cv_func_strcoll_works=yes 9312 ac_cv_func_strcoll_works=yes
9304 else 9313 else
9305 conftest_rc="$?" 9314 conftest_rc="$?"
9306 echo "configure: failed program was:" >&5 9315 echo "configure: failed program was:" >&5
9324 9333
9325 9334
9326 for ac_func in getpgrp 9335 for ac_func in getpgrp
9327 do 9336 do
9328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9329 echo "configure:9330: checking for $ac_func" >&5 9338 echo "configure:9339: checking for $ac_func" >&5
9330 9339
9331 cat > conftest.$ac_ext <<EOF 9340 cat > conftest.$ac_ext <<EOF
9332 #line 9333 "configure" 9341 #line 9342 "configure"
9333 #include "confdefs.h" 9342 #include "confdefs.h"
9334 /* System header to define __stub macros and hopefully few prototypes, 9343 /* System header to define __stub macros and hopefully few prototypes,
9335 which can conflict with char $ac_func(); below. */ 9344 which can conflict with char $ac_func(); below. */
9336 #include <assert.h> 9345 #include <assert.h>
9337 /* Override any gcc2 internal prototype to avoid an error. */ 9346 /* Override any gcc2 internal prototype to avoid an error. */
9350 $ac_func(); 9359 $ac_func();
9351 #endif 9360 #endif
9352 9361
9353 ; return 0; } 9362 ; return 0; }
9354 EOF 9363 EOF
9355 if { (eval echo configure:9356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9364 if { (eval echo configure:9365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9356 rm -rf conftest* 9365 rm -rf conftest*
9357 eval "ac_cv_func_$ac_func=yes" 9366 eval "ac_cv_func_$ac_func=yes"
9358 else 9367 else
9359 echo "configure: failed program was:" >&5 9368 echo "configure: failed program was:" >&5
9360 cat conftest.$ac_ext >&5 9369 cat conftest.$ac_ext >&5
9378 echo "$ac_t""no" 1>&6 9387 echo "$ac_t""no" 1>&6
9379 fi 9388 fi
9380 done 9389 done
9381 9390
9382 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 9391 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9383 echo "configure:9384: checking whether getpgrp takes no argument" >&5 9392 echo "configure:9393: checking whether getpgrp takes no argument" >&5
9384 9393
9385 cat > conftest.$ac_ext <<EOF 9394 cat > conftest.$ac_ext <<EOF
9386 #line 9387 "configure" 9395 #line 9396 "configure"
9387 #include "confdefs.h" 9396 #include "confdefs.h"
9388 9397
9389 /* 9398 /*
9390 * If this system has a BSD-style getpgrp(), 9399 * If this system has a BSD-style getpgrp(),
9391 * which takes a pid argument, exit unsuccessfully. 9400 * which takes a pid argument, exit unsuccessfully.
9436 exit(s>>8); 9445 exit(s>>8);
9437 } 9446 }
9438 } 9447 }
9439 9448
9440 EOF 9449 EOF
9441 if { (eval echo configure:9442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9450 if { (eval echo configure:9451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9442 then 9451 then
9443 ac_cv_func_getpgrp_void=yes 9452 ac_cv_func_getpgrp_void=yes
9444 else 9453 else
9445 conftest_rc="$?" 9454 conftest_rc="$?"
9446 echo "configure: failed program was:" >&5 9455 echo "configure: failed program was:" >&5
9463 9472
9464 fi 9473 fi
9465 9474
9466 9475
9467 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9476 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9468 echo "configure:9469: checking for working mmap" >&5 9477 echo "configure:9478: checking for working mmap" >&5
9469 case "$opsys" in ultrix* ) have_mmap=no ;; *) 9478 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9470 cat > conftest.$ac_ext <<EOF 9479 cat > conftest.$ac_ext <<EOF
9471 #line 9472 "configure" 9480 #line 9481 "configure"
9472 #include "confdefs.h" 9481 #include "confdefs.h"
9473 #include <stdio.h> 9482 #include <stdio.h>
9474 #include <unistd.h> 9483 #include <unistd.h>
9475 #include <fcntl.h> 9484 #include <fcntl.h>
9476 #include <sys/mman.h> 9485 #include <sys/mman.h>
9499 return 0; 9508 return 0;
9500 perror ("conftest: mmap failed"); 9509 perror ("conftest: mmap failed");
9501 return 1; 9510 return 1;
9502 } 9511 }
9503 EOF 9512 EOF
9504 if { (eval echo configure:9505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9513 if { (eval echo configure:9514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9505 then 9514 then
9506 have_mmap=yes 9515 have_mmap=yes
9507 else 9516 else
9508 conftest_rc="$?" 9517 conftest_rc="$?"
9509 echo "configure: failed program was:" >&5 9518 echo "configure: failed program was:" >&5
9524 9533
9525 for ac_hdr in unistd.h 9534 for ac_hdr in unistd.h
9526 do 9535 do
9527 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 9536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 9537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9529 echo "configure:9530: checking for $ac_hdr" >&5 9538 echo "configure:9539: checking for $ac_hdr" >&5
9530 9539
9531 cat > conftest.$ac_ext <<EOF 9540 cat > conftest.$ac_ext <<EOF
9532 #line 9533 "configure" 9541 #line 9542 "configure"
9533 #include "confdefs.h" 9542 #include "confdefs.h"
9534 #include <$ac_hdr> 9543 #include <$ac_hdr>
9535 EOF 9544 EOF
9536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9537 { (eval echo configure:9538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9546 { (eval echo configure:9547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9538 ac_err=`grep -v '^ *+' conftest.out` 9547 ac_err=`grep -v '^ *+' conftest.out`
9539 if test -z "$ac_err"; then 9548 if test -z "$ac_err"; then
9540 rm -rf conftest* 9549 rm -rf conftest*
9541 eval "ac_cv_header_$ac_safe=yes" 9550 eval "ac_cv_header_$ac_safe=yes"
9542 else 9551 else
9564 done 9573 done
9565 9574
9566 for ac_func in getpagesize 9575 for ac_func in getpagesize
9567 do 9576 do
9568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9569 echo "configure:9570: checking for $ac_func" >&5 9578 echo "configure:9579: checking for $ac_func" >&5
9570 9579
9571 cat > conftest.$ac_ext <<EOF 9580 cat > conftest.$ac_ext <<EOF
9572 #line 9573 "configure" 9581 #line 9582 "configure"
9573 #include "confdefs.h" 9582 #include "confdefs.h"
9574 /* System header to define __stub macros and hopefully few prototypes, 9583 /* System header to define __stub macros and hopefully few prototypes,
9575 which can conflict with char $ac_func(); below. */ 9584 which can conflict with char $ac_func(); below. */
9576 #include <assert.h> 9585 #include <assert.h>
9577 /* Override any gcc2 internal prototype to avoid an error. */ 9586 /* Override any gcc2 internal prototype to avoid an error. */
9590 $ac_func(); 9599 $ac_func();
9591 #endif 9600 #endif
9592 9601
9593 ; return 0; } 9602 ; return 0; }
9594 EOF 9603 EOF
9595 if { (eval echo configure:9596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9604 if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9596 rm -rf conftest* 9605 rm -rf conftest*
9597 eval "ac_cv_func_$ac_func=yes" 9606 eval "ac_cv_func_$ac_func=yes"
9598 else 9607 else
9599 echo "configure: failed program was:" >&5 9608 echo "configure: failed program was:" >&5
9600 cat conftest.$ac_ext >&5 9609 cat conftest.$ac_ext >&5
9618 echo "$ac_t""no" 1>&6 9627 echo "$ac_t""no" 1>&6
9619 fi 9628 fi
9620 done 9629 done
9621 9630
9622 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9631 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9623 echo "configure:9624: checking for working mmap" >&5 9632 echo "configure:9633: checking for working mmap" >&5
9624 9633
9625 cat > conftest.$ac_ext <<EOF 9634 cat > conftest.$ac_ext <<EOF
9626 #line 9627 "configure" 9635 #line 9636 "configure"
9627 #include "confdefs.h" 9636 #include "confdefs.h"
9628 9637
9629 /* Thanks to Mike Haertel and Jim Avera for this test. 9638 /* Thanks to Mike Haertel and Jim Avera for this test.
9630 Here is a matrix of mmap possibilities: 9639 Here is a matrix of mmap possibilities:
9631 mmap private not fixed 9640 mmap private not fixed
9761 unlink("conftestmmap"); 9770 unlink("conftestmmap");
9762 exit(0); 9771 exit(0);
9763 } 9772 }
9764 9773
9765 EOF 9774 EOF
9766 if { (eval echo configure:9767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9775 if { (eval echo configure:9776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9767 then 9776 then
9768 ac_cv_func_mmap_fixed_mapped=yes 9777 ac_cv_func_mmap_fixed_mapped=yes
9769 else 9778 else
9770 conftest_rc="$?" 9779 conftest_rc="$?"
9771 echo "configure: failed program was:" >&5 9780 echo "configure: failed program was:" >&5
9799 } 9808 }
9800 9809
9801 9810
9802 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 9811 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
9803 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 9812 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
9804 echo "configure:9805: checking for termios.h" >&5 9813 echo "configure:9814: checking for termios.h" >&5
9805 9814
9806 cat > conftest.$ac_ext <<EOF 9815 cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure" 9816 #line 9817 "configure"
9808 #include "confdefs.h" 9817 #include "confdefs.h"
9809 #include <termios.h> 9818 #include <termios.h>
9810 EOF 9819 EOF
9811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9812 { (eval echo configure:9813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9821 { (eval echo configure:9822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9813 ac_err=`grep -v '^ *+' conftest.out` 9822 ac_err=`grep -v '^ *+' conftest.out`
9814 if test -z "$ac_err"; then 9823 if test -z "$ac_err"; then
9815 rm -rf conftest* 9824 rm -rf conftest*
9816 eval "ac_cv_header_$ac_safe=yes" 9825 eval "ac_cv_header_$ac_safe=yes"
9817 else 9826 else
9850 9859
9851 else 9860 else
9852 echo "$ac_t""no" 1>&6 9861 echo "$ac_t""no" 1>&6
9853 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 9862 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
9854 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 9863 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
9855 echo "configure:9856: checking for termio.h" >&5 9864 echo "configure:9865: checking for termio.h" >&5
9856 9865
9857 cat > conftest.$ac_ext <<EOF 9866 cat > conftest.$ac_ext <<EOF
9858 #line 9859 "configure" 9867 #line 9868 "configure"
9859 #include "confdefs.h" 9868 #include "confdefs.h"
9860 #include <termio.h> 9869 #include <termio.h>
9861 EOF 9870 EOF
9862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9863 { (eval echo configure:9864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9872 { (eval echo configure:9873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9864 ac_err=`grep -v '^ *+' conftest.out` 9873 ac_err=`grep -v '^ *+' conftest.out`
9865 if test -z "$ac_err"; then 9874 if test -z "$ac_err"; then
9866 rm -rf conftest* 9875 rm -rf conftest*
9867 eval "ac_cv_header_$ac_safe=yes" 9876 eval "ac_cv_header_$ac_safe=yes"
9868 else 9877 else
9890 fi 9899 fi
9891 9900
9892 9901
9893 9902
9894 echo $ac_n "checking for socket""... $ac_c" 1>&6 9903 echo $ac_n "checking for socket""... $ac_c" 1>&6
9895 echo "configure:9896: checking for socket" >&5 9904 echo "configure:9905: checking for socket" >&5
9896 9905
9897 cat > conftest.$ac_ext <<EOF 9906 cat > conftest.$ac_ext <<EOF
9898 #line 9899 "configure" 9907 #line 9908 "configure"
9899 #include "confdefs.h" 9908 #include "confdefs.h"
9900 /* System header to define __stub macros and hopefully few prototypes, 9909 /* System header to define __stub macros and hopefully few prototypes,
9901 which can conflict with char socket(); below. */ 9910 which can conflict with char socket(); below. */
9902 #include <assert.h> 9911 #include <assert.h>
9903 /* Override any gcc2 internal prototype to avoid an error. */ 9912 /* Override any gcc2 internal prototype to avoid an error. */
9916 socket(); 9925 socket();
9917 #endif 9926 #endif
9918 9927
9919 ; return 0; } 9928 ; return 0; }
9920 EOF 9929 EOF
9921 if { (eval echo configure:9922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9930 if { (eval echo configure:9931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9922 rm -rf conftest* 9931 rm -rf conftest*
9923 eval "ac_cv_func_socket=yes" 9932 eval "ac_cv_func_socket=yes"
9924 else 9933 else
9925 echo "configure: failed program was:" >&5 9934 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5 9935 cat conftest.$ac_ext >&5
9931 9940
9932 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 9941 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9933 echo "$ac_t""yes" 1>&6 9942 echo "$ac_t""yes" 1>&6
9934 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 9943 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
9935 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 9944 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
9936 echo "configure:9937: checking for netinet/in.h" >&5 9945 echo "configure:9946: checking for netinet/in.h" >&5
9937 9946
9938 cat > conftest.$ac_ext <<EOF 9947 cat > conftest.$ac_ext <<EOF
9939 #line 9940 "configure" 9948 #line 9949 "configure"
9940 #include "confdefs.h" 9949 #include "confdefs.h"
9941 #include <netinet/in.h> 9950 #include <netinet/in.h>
9942 EOF 9951 EOF
9943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9944 { (eval echo configure:9945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9953 { (eval echo configure:9954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9945 ac_err=`grep -v '^ *+' conftest.out` 9954 ac_err=`grep -v '^ *+' conftest.out`
9946 if test -z "$ac_err"; then 9955 if test -z "$ac_err"; then
9947 rm -rf conftest* 9956 rm -rf conftest*
9948 eval "ac_cv_header_$ac_safe=yes" 9957 eval "ac_cv_header_$ac_safe=yes"
9949 else 9958 else
9956 rm -f conftest* 9965 rm -f conftest*
9957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9958 echo "$ac_t""yes" 1>&6 9967 echo "$ac_t""yes" 1>&6
9959 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 9968 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
9960 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 9969 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
9961 echo "configure:9962: checking for arpa/inet.h" >&5 9970 echo "configure:9971: checking for arpa/inet.h" >&5
9962 9971
9963 cat > conftest.$ac_ext <<EOF 9972 cat > conftest.$ac_ext <<EOF
9964 #line 9965 "configure" 9973 #line 9974 "configure"
9965 #include "confdefs.h" 9974 #include "confdefs.h"
9966 #include <arpa/inet.h> 9975 #include <arpa/inet.h>
9967 EOF 9976 EOF
9968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9969 { (eval echo configure:9970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9978 { (eval echo configure:9979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9970 ac_err=`grep -v '^ *+' conftest.out` 9979 ac_err=`grep -v '^ *+' conftest.out`
9971 if test -z "$ac_err"; then 9980 if test -z "$ac_err"; then
9972 rm -rf conftest* 9981 rm -rf conftest*
9973 eval "ac_cv_header_$ac_safe=yes" 9982 eval "ac_cv_header_$ac_safe=yes"
9974 else 9983 else
9989 #define HAVE_SOCKETS 1 9998 #define HAVE_SOCKETS 1
9990 EOF 9999 EOF
9991 } 10000 }
9992 10001
9993 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 10002 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
9994 echo "configure:9995: checking "for sun_len member in struct sockaddr_un"" >&5 10003 echo "configure:10004: checking "for sun_len member in struct sockaddr_un"" >&5
9995 cat > conftest.$ac_ext <<EOF 10004 cat > conftest.$ac_ext <<EOF
9996 #line 9997 "configure" 10005 #line 10006 "configure"
9997 #include "confdefs.h" 10006 #include "confdefs.h"
9998 10007
9999 #include <sys/types.h> 10008 #include <sys/types.h>
10000 #include <sys/socket.h> 10009 #include <sys/socket.h>
10001 #include <sys/un.h> 10010 #include <sys/un.h>
10002 10011
10003 int main() { 10012 int main() {
10004 static struct sockaddr_un x; x.sun_len = 1; 10013 static struct sockaddr_un x; x.sun_len = 1;
10005 ; return 0; } 10014 ; return 0; }
10006 EOF 10015 EOF
10007 if { (eval echo configure:10008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10016 if { (eval echo configure:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10008 rm -rf conftest* 10017 rm -rf conftest*
10009 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10018 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10010 Defining HAVE_SOCKADDR_SUN_LEN 10019 Defining HAVE_SOCKADDR_SUN_LEN
10011 EOF 10020 EOF
10012 cat >> confdefs.h <<\EOF 10021 cat >> confdefs.h <<\EOF
10020 rm -rf conftest* 10029 rm -rf conftest*
10021 echo "$ac_t""no" 1>&6 10030 echo "$ac_t""no" 1>&6
10022 fi 10031 fi
10023 rm -f conftest* 10032 rm -f conftest*
10024 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 10033 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10025 echo "configure:10026: checking "for ip_mreq struct in netinet/in.h"" >&5 10034 echo "configure:10035: checking "for ip_mreq struct in netinet/in.h"" >&5
10026 cat > conftest.$ac_ext <<EOF 10035 cat > conftest.$ac_ext <<EOF
10027 #line 10028 "configure" 10036 #line 10037 "configure"
10028 #include "confdefs.h" 10037 #include "confdefs.h"
10029 10038
10030 #include <sys/types.h> 10039 #include <sys/types.h>
10031 #include <netinet/in.h> 10040 #include <netinet/in.h>
10032 10041
10033 int main() { 10042 int main() {
10034 static struct ip_mreq x; 10043 static struct ip_mreq x;
10035 ; return 0; } 10044 ; return 0; }
10036 EOF 10045 EOF
10037 if { (eval echo configure:10038: \"$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
10038 rm -rf conftest* 10047 rm -rf conftest*
10039 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10048 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10040 Defining HAVE_MULTICAST 10049 Defining HAVE_MULTICAST
10041 EOF 10050 EOF
10042 cat >> confdefs.h <<\EOF 10051 cat >> confdefs.h <<\EOF
10063 echo "$ac_t""no" 1>&6 10072 echo "$ac_t""no" 1>&6
10064 fi 10073 fi
10065 10074
10066 10075
10067 echo $ac_n "checking for msgget""... $ac_c" 1>&6 10076 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10068 echo "configure:10069: checking for msgget" >&5 10077 echo "configure:10078: checking for msgget" >&5
10069 10078
10070 cat > conftest.$ac_ext <<EOF 10079 cat > conftest.$ac_ext <<EOF
10071 #line 10072 "configure" 10080 #line 10081 "configure"
10072 #include "confdefs.h" 10081 #include "confdefs.h"
10073 /* System header to define __stub macros and hopefully few prototypes, 10082 /* System header to define __stub macros and hopefully few prototypes,
10074 which can conflict with char msgget(); below. */ 10083 which can conflict with char msgget(); below. */
10075 #include <assert.h> 10084 #include <assert.h>
10076 /* Override any gcc2 internal prototype to avoid an error. */ 10085 /* Override any gcc2 internal prototype to avoid an error. */
10089 msgget(); 10098 msgget();
10090 #endif 10099 #endif
10091 10100
10092 ; return 0; } 10101 ; return 0; }
10093 EOF 10102 EOF
10094 if { (eval echo configure:10095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10103 if { (eval echo configure:10104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10095 rm -rf conftest* 10104 rm -rf conftest*
10096 eval "ac_cv_func_msgget=yes" 10105 eval "ac_cv_func_msgget=yes"
10097 else 10106 else
10098 echo "configure: failed program was:" >&5 10107 echo "configure: failed program was:" >&5
10099 cat conftest.$ac_ext >&5 10108 cat conftest.$ac_ext >&5
10104 10113
10105 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 10114 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10106 echo "$ac_t""yes" 1>&6 10115 echo "$ac_t""yes" 1>&6
10107 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 10116 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10108 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 10117 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10109 echo "configure:10110: checking for sys/ipc.h" >&5 10118 echo "configure:10119: checking for sys/ipc.h" >&5
10110 10119
10111 cat > conftest.$ac_ext <<EOF 10120 cat > conftest.$ac_ext <<EOF
10112 #line 10113 "configure" 10121 #line 10122 "configure"
10113 #include "confdefs.h" 10122 #include "confdefs.h"
10114 #include <sys/ipc.h> 10123 #include <sys/ipc.h>
10115 EOF 10124 EOF
10116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10117 { (eval echo configure:10118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10126 { (eval echo configure:10127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10118 ac_err=`grep -v '^ *+' conftest.out` 10127 ac_err=`grep -v '^ *+' conftest.out`
10119 if test -z "$ac_err"; then 10128 if test -z "$ac_err"; then
10120 rm -rf conftest* 10129 rm -rf conftest*
10121 eval "ac_cv_header_$ac_safe=yes" 10130 eval "ac_cv_header_$ac_safe=yes"
10122 else 10131 else
10129 rm -f conftest* 10138 rm -f conftest*
10130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10131 echo "$ac_t""yes" 1>&6 10140 echo "$ac_t""yes" 1>&6
10132 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 10141 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10133 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 10142 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10134 echo "configure:10135: checking for sys/msg.h" >&5 10143 echo "configure:10144: checking for sys/msg.h" >&5
10135 10144
10136 cat > conftest.$ac_ext <<EOF 10145 cat > conftest.$ac_ext <<EOF
10137 #line 10138 "configure" 10146 #line 10147 "configure"
10138 #include "confdefs.h" 10147 #include "confdefs.h"
10139 #include <sys/msg.h> 10148 #include <sys/msg.h>
10140 EOF 10149 EOF
10141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10142 { (eval echo configure:10143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10151 { (eval echo configure:10152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10143 ac_err=`grep -v '^ *+' conftest.out` 10152 ac_err=`grep -v '^ *+' conftest.out`
10144 if test -z "$ac_err"; then 10153 if test -z "$ac_err"; then
10145 rm -rf conftest* 10154 rm -rf conftest*
10146 eval "ac_cv_header_$ac_safe=yes" 10155 eval "ac_cv_header_$ac_safe=yes"
10147 else 10156 else
10175 fi 10184 fi
10176 10185
10177 10186
10178 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 10187 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10179 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 10188 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10180 echo "configure:10181: checking for dirent.h" >&5 10189 echo "configure:10190: checking for dirent.h" >&5
10181 10190
10182 cat > conftest.$ac_ext <<EOF 10191 cat > conftest.$ac_ext <<EOF
10183 #line 10184 "configure" 10192 #line 10193 "configure"
10184 #include "confdefs.h" 10193 #include "confdefs.h"
10185 #include <dirent.h> 10194 #include <dirent.h>
10186 EOF 10195 EOF
10187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10188 { (eval echo configure:10189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10197 { (eval echo configure:10198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10189 ac_err=`grep -v '^ *+' conftest.out` 10198 ac_err=`grep -v '^ *+' conftest.out`
10190 if test -z "$ac_err"; then 10199 if test -z "$ac_err"; then
10191 rm -rf conftest* 10200 rm -rf conftest*
10192 eval "ac_cv_header_$ac_safe=yes" 10201 eval "ac_cv_header_$ac_safe=yes"
10193 else 10202 else
10210 10219
10211 else 10220 else
10212 echo "$ac_t""no" 1>&6 10221 echo "$ac_t""no" 1>&6
10213 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 10222 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10214 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 10223 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10215 echo "configure:10216: checking for sys/dir.h" >&5 10224 echo "configure:10225: checking for sys/dir.h" >&5
10216 10225
10217 cat > conftest.$ac_ext <<EOF 10226 cat > conftest.$ac_ext <<EOF
10218 #line 10219 "configure" 10227 #line 10228 "configure"
10219 #include "confdefs.h" 10228 #include "confdefs.h"
10220 #include <sys/dir.h> 10229 #include <sys/dir.h>
10221 EOF 10230 EOF
10222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10223 { (eval echo configure:10224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10232 { (eval echo configure:10233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10224 ac_err=`grep -v '^ *+' conftest.out` 10233 ac_err=`grep -v '^ *+' conftest.out`
10225 if test -z "$ac_err"; then 10234 if test -z "$ac_err"; then
10226 rm -rf conftest* 10235 rm -rf conftest*
10227 eval "ac_cv_header_$ac_safe=yes" 10236 eval "ac_cv_header_$ac_safe=yes"
10228 else 10237 else
10251 fi 10260 fi
10252 10261
10253 10262
10254 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 10263 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10255 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 10264 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10256 echo "configure:10257: checking for nlist.h" >&5 10265 echo "configure:10266: checking for nlist.h" >&5
10257 10266
10258 cat > conftest.$ac_ext <<EOF 10267 cat > conftest.$ac_ext <<EOF
10259 #line 10260 "configure" 10268 #line 10269 "configure"
10260 #include "confdefs.h" 10269 #include "confdefs.h"
10261 #include <nlist.h> 10270 #include <nlist.h>
10262 EOF 10271 EOF
10263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10264 { (eval echo configure:10265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10273 { (eval echo configure:10274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10265 ac_err=`grep -v '^ *+' conftest.out` 10274 ac_err=`grep -v '^ *+' conftest.out`
10266 if test -z "$ac_err"; then 10275 if test -z "$ac_err"; then
10267 rm -rf conftest* 10276 rm -rf conftest*
10268 eval "ac_cv_header_$ac_safe=yes" 10277 eval "ac_cv_header_$ac_safe=yes"
10269 else 10278 else
10289 fi 10298 fi
10290 10299
10291 10300
10292 10301
10293 echo "checking "for sound support"" 1>&6 10302 echo "checking "for sound support"" 1>&6
10294 echo "configure:10295: checking "for sound support"" >&5 10303 echo "configure:10304: checking "for sound support"" >&5
10295 case "$with_sound" in 10304 case "$with_sound" in
10296 native | both ) with_native_sound=yes;; 10305 native | both ) with_native_sound=yes;;
10297 nas | no ) with_native_sound=no;; 10306 nas | no ) with_native_sound=no;;
10298 esac 10307 esac
10299 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 10308 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10300 10309
10301 if test "$with_native_sound" != "no"; then 10310 if test "$with_native_sound" != "no"; then
10302 if test -n "$native_sound_lib"; then 10311 if test -n "$native_sound_lib"; then
10303 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 10312 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10304 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 10313 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10305 echo "configure:10306: checking for multimedia/audio_device.h" >&5 10314 echo "configure:10315: checking for multimedia/audio_device.h" >&5
10306 10315
10307 cat > conftest.$ac_ext <<EOF 10316 cat > conftest.$ac_ext <<EOF
10308 #line 10309 "configure" 10317 #line 10318 "configure"
10309 #include "confdefs.h" 10318 #include "confdefs.h"
10310 #include <multimedia/audio_device.h> 10319 #include <multimedia/audio_device.h>
10311 EOF 10320 EOF
10312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10313 { (eval echo configure:10314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10322 { (eval echo configure:10323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10314 ac_err=`grep -v '^ *+' conftest.out` 10323 ac_err=`grep -v '^ *+' conftest.out`
10315 if test -z "$ac_err"; then 10324 if test -z "$ac_err"; then
10316 rm -rf conftest* 10325 rm -rf conftest*
10317 eval "ac_cv_header_$ac_safe=yes" 10326 eval "ac_cv_header_$ac_safe=yes"
10318 else 10327 else
10356 case "$canonical" in 10365 case "$canonical" in
10357 *-sgi-* ) 10366 *-sgi-* )
10358 if test -z "$native_sound_lib"; then 10367 if test -z "$native_sound_lib"; then
10359 10368
10360 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 10369 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10361 echo "configure:10362: checking for ALopenport in -laudio" >&5 10370 echo "configure:10371: checking for ALopenport in -laudio" >&5
10362 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 10371 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10363 10372
10364 xe_check_libs=" -laudio " 10373 xe_check_libs=" -laudio "
10365 cat > conftest.$ac_ext <<EOF 10374 cat > conftest.$ac_ext <<EOF
10366 #line 10367 "configure" 10375 #line 10376 "configure"
10367 #include "confdefs.h" 10376 #include "confdefs.h"
10368 /* Override any gcc2 internal prototype to avoid an error. */ 10377 /* Override any gcc2 internal prototype to avoid an error. */
10369 /* We use char because int might match the return type of a gcc2 10378 /* We use char because int might match the return type of a gcc2
10370 builtin and then its argument prototype would still apply. */ 10379 builtin and then its argument prototype would still apply. */
10371 char ALopenport(); 10380 char ALopenport();
10372 10381
10373 int main() { 10382 int main() {
10374 ALopenport() 10383 ALopenport()
10375 ; return 0; } 10384 ; return 0; }
10376 EOF 10385 EOF
10377 if { (eval echo configure:10378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10386 if { (eval echo configure:10387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10378 rm -rf conftest* 10387 rm -rf conftest*
10379 eval "ac_cv_lib_$ac_lib_var=yes" 10388 eval "ac_cv_lib_$ac_lib_var=yes"
10380 else 10389 else
10381 echo "configure: failed program was:" >&5 10390 echo "configure: failed program was:" >&5
10382 cat conftest.$ac_ext >&5 10391 cat conftest.$ac_ext >&5
10403 fi ;; 10412 fi ;;
10404 hppa*-hp-hpux* ) 10413 hppa*-hp-hpux* )
10405 if test -z "$native_sound_lib"; then 10414 if test -z "$native_sound_lib"; then
10406 10415
10407 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 10416 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10408 echo "configure:10409: checking for AOpenAudio in -lAlib" >&5 10417 echo "configure:10418: checking for AOpenAudio in -lAlib" >&5
10409 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 10418 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10410 10419
10411 xe_check_libs=" -lAlib " 10420 xe_check_libs=" -lAlib "
10412 cat > conftest.$ac_ext <<EOF 10421 cat > conftest.$ac_ext <<EOF
10413 #line 10414 "configure" 10422 #line 10423 "configure"
10414 #include "confdefs.h" 10423 #include "confdefs.h"
10415 /* Override any gcc2 internal prototype to avoid an error. */ 10424 /* Override any gcc2 internal prototype to avoid an error. */
10416 /* We use char because int might match the return type of a gcc2 10425 /* We use char because int might match the return type of a gcc2
10417 builtin and then its argument prototype would still apply. */ 10426 builtin and then its argument prototype would still apply. */
10418 char AOpenAudio(); 10427 char AOpenAudio();
10419 10428
10420 int main() { 10429 int main() {
10421 AOpenAudio() 10430 AOpenAudio()
10422 ; return 0; } 10431 ; return 0; }
10423 EOF 10432 EOF
10424 if { (eval echo configure:10425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10433 if { (eval echo configure:10434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10425 rm -rf conftest* 10434 rm -rf conftest*
10426 eval "ac_cv_lib_$ac_lib_var=yes" 10435 eval "ac_cv_lib_$ac_lib_var=yes"
10427 else 10436 else
10428 echo "configure: failed program was:" >&5 10437 echo "configure: failed program was:" >&5
10429 cat conftest.$ac_ext >&5 10438 cat conftest.$ac_ext >&5
10457 10466
10458 if test -z "$sound_found"; then 10467 if test -z "$sound_found"; then
10459 for dir in "machine" "sys" "linux"; do 10468 for dir in "machine" "sys" "linux"; do
10460 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10469 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10461 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10470 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10462 echo "configure:10463: checking for ${dir}/soundcard.h" >&5 10471 echo "configure:10472: checking for ${dir}/soundcard.h" >&5
10463 10472
10464 cat > conftest.$ac_ext <<EOF 10473 cat > conftest.$ac_ext <<EOF
10465 #line 10466 "configure" 10474 #line 10475 "configure"
10466 #include "confdefs.h" 10475 #include "confdefs.h"
10467 #include <${dir}/soundcard.h> 10476 #include <${dir}/soundcard.h>
10468 EOF 10477 EOF
10469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10470 { (eval echo configure:10471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10479 { (eval echo configure:10480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10471 ac_err=`grep -v '^ *+' conftest.out` 10480 ac_err=`grep -v '^ *+' conftest.out`
10472 if test -z "$ac_err"; then 10481 if test -z "$ac_err"; then
10473 rm -rf conftest* 10482 rm -rf conftest*
10474 eval "ac_cv_header_$ac_safe=yes" 10483 eval "ac_cv_header_$ac_safe=yes"
10475 else 10484 else
10535 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10544 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10536 echo " xemacs will be linked with \"nas.o\"" 10545 echo " xemacs will be linked with \"nas.o\""
10537 fi 10546 fi
10538 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10547 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10539 cat > conftest.$ac_ext <<EOF 10548 cat > conftest.$ac_ext <<EOF
10540 #line 10541 "configure" 10549 #line 10550 "configure"
10541 #include "confdefs.h" 10550 #include "confdefs.h"
10542 #include <audio/Xtutil.h> 10551 #include <audio/Xtutil.h>
10543 EOF 10552 EOF
10544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10545 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10554 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10562 10571
10563 test -z "$with_tty" && with_tty=yes 10572 test -z "$with_tty" && with_tty=yes
10564 10573
10565 if test "$with_tty" = "yes" ; then 10574 if test "$with_tty" = "yes" ; then
10566 echo "checking for TTY-related features" 1>&6 10575 echo "checking for TTY-related features" 1>&6
10567 echo "configure:10568: checking for TTY-related features" >&5 10576 echo "configure:10577: checking for TTY-related features" >&5
10568 { test "$extra_verbose" = "yes" && cat << \EOF 10577 { test "$extra_verbose" = "yes" && cat << \EOF
10569 Defining HAVE_TTY 10578 Defining HAVE_TTY
10570 EOF 10579 EOF
10571 cat >> confdefs.h <<\EOF 10580 cat >> confdefs.h <<\EOF
10572 #define HAVE_TTY 1 10581 #define HAVE_TTY 1
10578 fi 10587 fi
10579 10588
10580 if test -z "$with_ncurses"; then 10589 if test -z "$with_ncurses"; then
10581 10590
10582 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 10591 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10583 echo "configure:10584: checking for tgetent in -lncurses" >&5 10592 echo "configure:10593: checking for tgetent in -lncurses" >&5
10584 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 10593 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10585 10594
10586 xe_check_libs=" -lncurses " 10595 xe_check_libs=" -lncurses "
10587 cat > conftest.$ac_ext <<EOF 10596 cat > conftest.$ac_ext <<EOF
10588 #line 10589 "configure" 10597 #line 10598 "configure"
10589 #include "confdefs.h" 10598 #include "confdefs.h"
10590 /* Override any gcc2 internal prototype to avoid an error. */ 10599 /* Override any gcc2 internal prototype to avoid an error. */
10591 /* We use char because int might match the return type of a gcc2 10600 /* We use char because int might match the return type of a gcc2
10592 builtin and then its argument prototype would still apply. */ 10601 builtin and then its argument prototype would still apply. */
10593 char tgetent(); 10602 char tgetent();
10594 10603
10595 int main() { 10604 int main() {
10596 tgetent() 10605 tgetent()
10597 ; return 0; } 10606 ; return 0; }
10598 EOF 10607 EOF
10599 if { (eval echo configure:10600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10608 if { (eval echo configure:10609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10600 rm -rf conftest* 10609 rm -rf conftest*
10601 eval "ac_cv_lib_$ac_lib_var=yes" 10610 eval "ac_cv_lib_$ac_lib_var=yes"
10602 else 10611 else
10603 echo "configure: failed program was:" >&5 10612 echo "configure: failed program was:" >&5
10604 cat conftest.$ac_ext >&5 10613 cat conftest.$ac_ext >&5
10627 EOF 10636 EOF
10628 } 10637 }
10629 10638
10630 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10639 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10631 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10640 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10632 echo "configure:10633: checking for ncurses/curses.h" >&5 10641 echo "configure:10642: checking for ncurses/curses.h" >&5
10633 10642
10634 cat > conftest.$ac_ext <<EOF 10643 cat > conftest.$ac_ext <<EOF
10635 #line 10636 "configure" 10644 #line 10645 "configure"
10636 #include "confdefs.h" 10645 #include "confdefs.h"
10637 #include <ncurses/curses.h> 10646 #include <ncurses/curses.h>
10638 EOF 10647 EOF
10639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10640 { (eval echo configure:10641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10649 { (eval echo configure:10650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10641 ac_err=`grep -v '^ *+' conftest.out` 10650 ac_err=`grep -v '^ *+' conftest.out`
10642 if test -z "$ac_err"; then 10651 if test -z "$ac_err"; then
10643 rm -rf conftest* 10652 rm -rf conftest*
10644 eval "ac_cv_header_$ac_safe=yes" 10653 eval "ac_cv_header_$ac_safe=yes"
10645 else 10654 else
10657 echo "$ac_t""no" 1>&6 10666 echo "$ac_t""no" 1>&6
10658 fi 10667 fi
10659 10668
10660 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 10669 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10661 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 10670 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10662 echo "configure:10663: checking for ncurses/term.h" >&5 10671 echo "configure:10672: checking for ncurses/term.h" >&5
10663 10672
10664 cat > conftest.$ac_ext <<EOF 10673 cat > conftest.$ac_ext <<EOF
10665 #line 10666 "configure" 10674 #line 10675 "configure"
10666 #include "confdefs.h" 10675 #include "confdefs.h"
10667 #include <ncurses/term.h> 10676 #include <ncurses/term.h>
10668 EOF 10677 EOF
10669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10670 { (eval echo configure:10671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10679 { (eval echo configure:10680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10671 ac_err=`grep -v '^ *+' conftest.out` 10680 ac_err=`grep -v '^ *+' conftest.out`
10672 if test -z "$ac_err"; then 10681 if test -z "$ac_err"; then
10673 rm -rf conftest* 10682 rm -rf conftest*
10674 eval "ac_cv_header_$ac_safe=yes" 10683 eval "ac_cv_header_$ac_safe=yes"
10675 else 10684 else
10695 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 10704 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10696 save_c_switch_site="$c_switch_site" 10705 save_c_switch_site="$c_switch_site"
10697 c_switch_site="$c_switch_site -I/usr/include/ncurses" 10706 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10698 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10707 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10699 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10708 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10700 echo "configure:10701: checking for ncurses/curses.h" >&5 10709 echo "configure:10710: checking for ncurses/curses.h" >&5
10701 10710
10702 cat > conftest.$ac_ext <<EOF 10711 cat > conftest.$ac_ext <<EOF
10703 #line 10704 "configure" 10712 #line 10713 "configure"
10704 #include "confdefs.h" 10713 #include "confdefs.h"
10705 #include <ncurses/curses.h> 10714 #include <ncurses/curses.h>
10706 EOF 10715 EOF
10707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10708 { (eval echo configure:10709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10717 { (eval echo configure:10718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10709 ac_err=`grep -v '^ *+' conftest.out` 10718 ac_err=`grep -v '^ *+' conftest.out`
10710 if test -z "$ac_err"; then 10719 if test -z "$ac_err"; then
10711 rm -rf conftest* 10720 rm -rf conftest*
10712 eval "ac_cv_header_$ac_safe=yes" 10721 eval "ac_cv_header_$ac_safe=yes"
10713 else 10722 else
10738 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10747 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10739 else 10748 else
10740 for lib in curses termlib termcap; do 10749 for lib in curses termlib termcap; do
10741 10750
10742 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 10751 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10743 echo "configure:10744: checking for tgetent in -l$lib" >&5 10752 echo "configure:10753: checking for tgetent in -l$lib" >&5
10744 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 10753 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10745 10754
10746 xe_check_libs=" -l$lib " 10755 xe_check_libs=" -l$lib "
10747 cat > conftest.$ac_ext <<EOF 10756 cat > conftest.$ac_ext <<EOF
10748 #line 10749 "configure" 10757 #line 10758 "configure"
10749 #include "confdefs.h" 10758 #include "confdefs.h"
10750 /* Override any gcc2 internal prototype to avoid an error. */ 10759 /* Override any gcc2 internal prototype to avoid an error. */
10751 /* We use char because int might match the return type of a gcc2 10760 /* We use char because int might match the return type of a gcc2
10752 builtin and then its argument prototype would still apply. */ 10761 builtin and then its argument prototype would still apply. */
10753 char tgetent(); 10762 char tgetent();
10754 10763
10755 int main() { 10764 int main() {
10756 tgetent() 10765 tgetent()
10757 ; return 0; } 10766 ; return 0; }
10758 EOF 10767 EOF
10759 if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10768 if { (eval echo configure:10769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10760 rm -rf conftest* 10769 rm -rf conftest*
10761 eval "ac_cv_lib_$ac_lib_var=yes" 10770 eval "ac_cv_lib_$ac_lib_var=yes"
10762 else 10771 else
10763 echo "configure: failed program was:" >&5 10772 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5 10773 cat conftest.$ac_ext >&5
10785 if test -n "$libs_termcap"; then 10794 if test -n "$libs_termcap"; then
10786 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10795 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10787 else 10796 else
10788 10797
10789 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10798 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10790 echo "configure:10791: checking for tgetent in -lcurses" >&5 10799 echo "configure:10800: checking for tgetent in -lcurses" >&5
10791 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10800 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10792 10801
10793 xe_check_libs=" -lcurses " 10802 xe_check_libs=" -lcurses "
10794 cat > conftest.$ac_ext <<EOF 10803 cat > conftest.$ac_ext <<EOF
10795 #line 10796 "configure" 10804 #line 10805 "configure"
10796 #include "confdefs.h" 10805 #include "confdefs.h"
10797 /* Override any gcc2 internal prototype to avoid an error. */ 10806 /* Override any gcc2 internal prototype to avoid an error. */
10798 /* We use char because int might match the return type of a gcc2 10807 /* We use char because int might match the return type of a gcc2
10799 builtin and then its argument prototype would still apply. */ 10808 builtin and then its argument prototype would still apply. */
10800 char tgetent(); 10809 char tgetent();
10801 10810
10802 int main() { 10811 int main() {
10803 tgetent() 10812 tgetent()
10804 ; return 0; } 10813 ; return 0; }
10805 EOF 10814 EOF
10806 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10815 if { (eval echo configure:10816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10807 rm -rf conftest* 10816 rm -rf conftest*
10808 eval "ac_cv_lib_$ac_lib_var=yes" 10817 eval "ac_cv_lib_$ac_lib_var=yes"
10809 else 10818 else
10810 echo "configure: failed program was:" >&5 10819 echo "configure: failed program was:" >&5
10811 cat conftest.$ac_ext >&5 10820 cat conftest.$ac_ext >&5
10819 echo "$ac_t""yes" 1>&6 10828 echo "$ac_t""yes" 1>&6
10820 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 10829 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
10821 else 10830 else
10822 echo "$ac_t""no" 1>&6 10831 echo "$ac_t""no" 1>&6
10823 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 10832 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
10824 echo "configure:10825: checking for tgetent in -ltermcap" >&5 10833 echo "configure:10834: checking for tgetent in -ltermcap" >&5
10825 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 10834 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
10826 10835
10827 xe_check_libs=" -ltermcap " 10836 xe_check_libs=" -ltermcap "
10828 cat > conftest.$ac_ext <<EOF 10837 cat > conftest.$ac_ext <<EOF
10829 #line 10830 "configure" 10838 #line 10839 "configure"
10830 #include "confdefs.h" 10839 #include "confdefs.h"
10831 /* Override any gcc2 internal prototype to avoid an error. */ 10840 /* Override any gcc2 internal prototype to avoid an error. */
10832 /* We use char because int might match the return type of a gcc2 10841 /* We use char because int might match the return type of a gcc2
10833 builtin and then its argument prototype would still apply. */ 10842 builtin and then its argument prototype would still apply. */
10834 char tgetent(); 10843 char tgetent();
10835 10844
10836 int main() { 10845 int main() {
10837 tgetent() 10846 tgetent()
10838 ; return 0; } 10847 ; return 0; }
10839 EOF 10848 EOF
10840 if { (eval echo configure:10841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10849 if { (eval echo configure:10850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10841 rm -rf conftest* 10850 rm -rf conftest*
10842 eval "ac_cv_lib_$ac_lib_var=yes" 10851 eval "ac_cv_lib_$ac_lib_var=yes"
10843 else 10852 else
10844 echo "configure: failed program was:" >&5 10853 echo "configure: failed program was:" >&5
10845 cat conftest.$ac_ext >&5 10854 cat conftest.$ac_ext >&5
10883 } 10892 }
10884 10893
10885 10894
10886 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 10895 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
10887 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 10896 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
10888 echo "configure:10889: checking for gpm.h" >&5 10897 echo "configure:10898: checking for gpm.h" >&5
10889 10898
10890 cat > conftest.$ac_ext <<EOF 10899 cat > conftest.$ac_ext <<EOF
10891 #line 10892 "configure" 10900 #line 10901 "configure"
10892 #include "confdefs.h" 10901 #include "confdefs.h"
10893 #include <gpm.h> 10902 #include <gpm.h>
10894 EOF 10903 EOF
10895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10896 { (eval echo configure:10897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10905 { (eval echo configure:10906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10897 ac_err=`grep -v '^ *+' conftest.out` 10906 ac_err=`grep -v '^ *+' conftest.out`
10898 if test -z "$ac_err"; then 10907 if test -z "$ac_err"; then
10899 rm -rf conftest* 10908 rm -rf conftest*
10900 eval "ac_cv_header_$ac_safe=yes" 10909 eval "ac_cv_header_$ac_safe=yes"
10901 else 10910 else
10914 with_gpm=no 10923 with_gpm=no
10915 fi 10924 fi
10916 } 10925 }
10917 test -z "$with_gpm" && { 10926 test -z "$with_gpm" && {
10918 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 10927 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
10919 echo "configure:10920: checking for Gpm_Open in -lgpm" >&5 10928 echo "configure:10929: checking for Gpm_Open in -lgpm" >&5
10920 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 10929 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
10921 10930
10922 xe_check_libs=" -lgpm " 10931 xe_check_libs=" -lgpm "
10923 cat > conftest.$ac_ext <<EOF 10932 cat > conftest.$ac_ext <<EOF
10924 #line 10925 "configure" 10933 #line 10934 "configure"
10925 #include "confdefs.h" 10934 #include "confdefs.h"
10926 /* Override any gcc2 internal prototype to avoid an error. */ 10935 /* Override any gcc2 internal prototype to avoid an error. */
10927 /* We use char because int might match the return type of a gcc2 10936 /* We use char because int might match the return type of a gcc2
10928 builtin and then its argument prototype would still apply. */ 10937 builtin and then its argument prototype would still apply. */
10929 char Gpm_Open(); 10938 char Gpm_Open();
10930 10939
10931 int main() { 10940 int main() {
10932 Gpm_Open() 10941 Gpm_Open()
10933 ; return 0; } 10942 ; return 0; }
10934 EOF 10943 EOF
10935 if { (eval echo configure:10936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10944 if { (eval echo configure:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10936 rm -rf conftest* 10945 rm -rf conftest*
10937 eval "ac_cv_lib_$ac_lib_var=yes" 10946 eval "ac_cv_lib_$ac_lib_var=yes"
10938 else 10947 else
10939 echo "configure: failed program was:" >&5 10948 echo "configure: failed program was:" >&5
10940 cat conftest.$ac_ext >&5 10949 cat conftest.$ac_ext >&5
10979 echo " xemacs will be linked with \"event-unixoid.o\"" 10988 echo " xemacs will be linked with \"event-unixoid.o\""
10980 fi 10989 fi
10981 10990
10982 10991
10983 echo "checking for database support" 1>&6 10992 echo "checking for database support" 1>&6
10984 echo "configure:10985: checking for database support" >&5 10993 echo "configure:10994: checking for database support" >&5
10985 10994
10986 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then 10995 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
10987 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 10996 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
10988 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 10997 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
10989 echo "configure:10990: checking for ndbm.h" >&5 10998 echo "configure:10999: checking for ndbm.h" >&5
10990 10999
10991 cat > conftest.$ac_ext <<EOF 11000 cat > conftest.$ac_ext <<EOF
10992 #line 10993 "configure" 11001 #line 11002 "configure"
10993 #include "confdefs.h" 11002 #include "confdefs.h"
10994 #include <ndbm.h> 11003 #include <ndbm.h>
10995 EOF 11004 EOF
10996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10997 { (eval echo configure:10998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11006 { (eval echo configure:11007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10998 ac_err=`grep -v '^ *+' conftest.out` 11007 ac_err=`grep -v '^ *+' conftest.out`
10999 if test -z "$ac_err"; then 11008 if test -z "$ac_err"; then
11000 rm -rf conftest* 11009 rm -rf conftest*
11001 eval "ac_cv_header_$ac_safe=yes" 11010 eval "ac_cv_header_$ac_safe=yes"
11002 else 11011 else
11022 fi 11031 fi
11023 11032
11024 if test "$with_database_gnudbm" != "no"; then 11033 if test "$with_database_gnudbm" != "no"; then
11025 11034
11026 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 11035 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11027 echo "configure:11028: checking for dbm_open in -lgdbm" >&5 11036 echo "configure:11037: checking for dbm_open in -lgdbm" >&5
11028 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 11037 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11029 11038
11030 xe_check_libs=" -lgdbm " 11039 xe_check_libs=" -lgdbm "
11031 cat > conftest.$ac_ext <<EOF 11040 cat > conftest.$ac_ext <<EOF
11032 #line 11033 "configure" 11041 #line 11042 "configure"
11033 #include "confdefs.h" 11042 #include "confdefs.h"
11034 /* Override any gcc2 internal prototype to avoid an error. */ 11043 /* Override any gcc2 internal prototype to avoid an error. */
11035 /* We use char because int might match the return type of a gcc2 11044 /* We use char because int might match the return type of a gcc2
11036 builtin and then its argument prototype would still apply. */ 11045 builtin and then its argument prototype would still apply. */
11037 char dbm_open(); 11046 char dbm_open();
11038 11047
11039 int main() { 11048 int main() {
11040 dbm_open() 11049 dbm_open()
11041 ; return 0; } 11050 ; return 0; }
11042 EOF 11051 EOF
11043 if { (eval echo configure:11044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11052 if { (eval echo configure:11053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11044 rm -rf conftest* 11053 rm -rf conftest*
11045 eval "ac_cv_lib_$ac_lib_var=yes" 11054 eval "ac_cv_lib_$ac_lib_var=yes"
11046 else 11055 else
11047 echo "configure: failed program was:" >&5 11056 echo "configure: failed program was:" >&5
11048 cat conftest.$ac_ext >&5 11057 cat conftest.$ac_ext >&5
11066 11075
11067 fi 11076 fi
11068 11077
11069 if test "$with_database_dbm" != "no"; then 11078 if test "$with_database_dbm" != "no"; then
11070 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 11079 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11071 echo "configure:11072: checking for dbm_open" >&5 11080 echo "configure:11081: checking for dbm_open" >&5
11072 11081
11073 cat > conftest.$ac_ext <<EOF 11082 cat > conftest.$ac_ext <<EOF
11074 #line 11075 "configure" 11083 #line 11084 "configure"
11075 #include "confdefs.h" 11084 #include "confdefs.h"
11076 /* System header to define __stub macros and hopefully few prototypes, 11085 /* System header to define __stub macros and hopefully few prototypes,
11077 which can conflict with char dbm_open(); below. */ 11086 which can conflict with char dbm_open(); below. */
11078 #include <assert.h> 11087 #include <assert.h>
11079 /* Override any gcc2 internal prototype to avoid an error. */ 11088 /* Override any gcc2 internal prototype to avoid an error. */
11092 dbm_open(); 11101 dbm_open();
11093 #endif 11102 #endif
11094 11103
11095 ; return 0; } 11104 ; return 0; }
11096 EOF 11105 EOF
11097 if { (eval echo configure:11098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11106 if { (eval echo configure:11107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11098 rm -rf conftest* 11107 rm -rf conftest*
11099 eval "ac_cv_func_dbm_open=yes" 11108 eval "ac_cv_func_dbm_open=yes"
11100 else 11109 else
11101 echo "configure: failed program was:" >&5 11110 echo "configure: failed program was:" >&5
11102 cat conftest.$ac_ext >&5 11111 cat conftest.$ac_ext >&5
11111 else 11120 else
11112 echo "$ac_t""no" 1>&6 11121 echo "$ac_t""no" 1>&6
11113 11122
11114 11123
11115 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 11124 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11116 echo "configure:11117: checking for dbm_open in -ldbm" >&5 11125 echo "configure:11126: checking for dbm_open in -ldbm" >&5
11117 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 11126 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11118 11127
11119 xe_check_libs=" -ldbm " 11128 xe_check_libs=" -ldbm "
11120 cat > conftest.$ac_ext <<EOF 11129 cat > conftest.$ac_ext <<EOF
11121 #line 11122 "configure" 11130 #line 11131 "configure"
11122 #include "confdefs.h" 11131 #include "confdefs.h"
11123 /* Override any gcc2 internal prototype to avoid an error. */ 11132 /* Override any gcc2 internal prototype to avoid an error. */
11124 /* We use char because int might match the return type of a gcc2 11133 /* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */ 11134 builtin and then its argument prototype would still apply. */
11126 char dbm_open(); 11135 char dbm_open();
11127 11136
11128 int main() { 11137 int main() {
11129 dbm_open() 11138 dbm_open()
11130 ; return 0; } 11139 ; return 0; }
11131 EOF 11140 EOF
11132 if { (eval echo configure:11133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11133 rm -rf conftest* 11142 rm -rf conftest*
11134 eval "ac_cv_lib_$ac_lib_var=yes" 11143 eval "ac_cv_lib_$ac_lib_var=yes"
11135 else 11144 else
11136 echo "configure: failed program was:" >&5 11145 echo "configure: failed program was:" >&5
11137 cat conftest.$ac_ext >&5 11146 cat conftest.$ac_ext >&5
11169 11178
11170 fi 11179 fi
11171 11180
11172 if test "$with_database_berkdb" != "no"; then 11181 if test "$with_database_berkdb" != "no"; then
11173 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 11182 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11174 echo "configure:11175: checking for Berkeley db.h" >&5 11183 echo "configure:11184: checking for Berkeley db.h" >&5
11175 for path in "db/db.h" "db.h"; do 11184 for path in "db/db.h" "db.h"; do
11176 cat > conftest.$ac_ext <<EOF 11185 cat > conftest.$ac_ext <<EOF
11177 #line 11178 "configure" 11186 #line 11187 "configure"
11178 #include "confdefs.h" 11187 #include "confdefs.h"
11179 #ifdef HAVE_INTTYPES_H 11188 #ifdef HAVE_INTTYPES_H
11180 #define __BIT_TYPES_DEFINED__ 11189 #define __BIT_TYPES_DEFINED__
11181 #include <inttypes.h> 11190 #include <inttypes.h>
11182 typedef uint8_t u_int8_t; 11191 typedef uint8_t u_int8_t;
11190 11199
11191 int main() { 11200 int main() {
11192 11201
11193 ; return 0; } 11202 ; return 0; }
11194 EOF 11203 EOF
11195 if { (eval echo configure:11196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11204 if { (eval echo configure:11205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11196 rm -rf conftest* 11205 rm -rf conftest*
11197 db_h_path="$path"; break 11206 db_h_path="$path"; break
11198 else 11207 else
11199 echo "configure: failed program was:" >&5 11208 echo "configure: failed program was:" >&5
11200 cat conftest.$ac_ext >&5 11209 cat conftest.$ac_ext >&5
11206 else echo "$ac_t""$db_h_path" 1>&6 11215 else echo "$ac_t""$db_h_path" 1>&6
11207 fi 11216 fi
11208 11217
11209 if test "$with_database_berkdb" != "no"; then 11218 if test "$with_database_berkdb" != "no"; then
11210 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 11219 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11211 echo "configure:11212: checking for Berkeley DB version" >&5 11220 echo "configure:11221: checking for Berkeley DB version" >&5
11212 cat > conftest.$ac_ext <<EOF 11221 cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure" 11222 #line 11223 "configure"
11214 #include "confdefs.h" 11223 #include "confdefs.h"
11215 #include <$db_h_path> 11224 #include <$db_h_path>
11216 #if DB_VERSION_MAJOR > 1 11225 #if DB_VERSION_MAJOR > 1
11217 yes 11226 yes
11218 #endif 11227 #endif
11227 echo "$ac_t""1" 1>&6; dbfunc=dbopen 11236 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11228 fi 11237 fi
11229 rm -f conftest* 11238 rm -f conftest*
11230 11239
11231 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 11240 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11232 echo "configure:11233: checking for $dbfunc" >&5 11241 echo "configure:11242: checking for $dbfunc" >&5
11233 11242
11234 cat > conftest.$ac_ext <<EOF 11243 cat > conftest.$ac_ext <<EOF
11235 #line 11236 "configure" 11244 #line 11245 "configure"
11236 #include "confdefs.h" 11245 #include "confdefs.h"
11237 /* System header to define __stub macros and hopefully few prototypes, 11246 /* System header to define __stub macros and hopefully few prototypes,
11238 which can conflict with char $dbfunc(); below. */ 11247 which can conflict with char $dbfunc(); below. */
11239 #include <assert.h> 11248 #include <assert.h>
11240 /* Override any gcc2 internal prototype to avoid an error. */ 11249 /* Override any gcc2 internal prototype to avoid an error. */
11253 $dbfunc(); 11262 $dbfunc();
11254 #endif 11263 #endif
11255 11264
11256 ; return 0; } 11265 ; return 0; }
11257 EOF 11266 EOF
11258 if { (eval echo configure:11259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11267 if { (eval echo configure:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11259 rm -rf conftest* 11268 rm -rf conftest*
11260 eval "ac_cv_func_$dbfunc=yes" 11269 eval "ac_cv_func_$dbfunc=yes"
11261 else 11270 else
11262 echo "configure: failed program was:" >&5 11271 echo "configure: failed program was:" >&5
11263 cat conftest.$ac_ext >&5 11272 cat conftest.$ac_ext >&5
11272 else 11281 else
11273 echo "$ac_t""no" 1>&6 11282 echo "$ac_t""no" 1>&6
11274 11283
11275 11284
11276 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 11285 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11277 echo "configure:11278: checking for $dbfunc in -ldb" >&5 11286 echo "configure:11287: checking for $dbfunc in -ldb" >&5
11278 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 11287 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11279 11288
11280 xe_check_libs=" -ldb " 11289 xe_check_libs=" -ldb "
11281 cat > conftest.$ac_ext <<EOF 11290 cat > conftest.$ac_ext <<EOF
11282 #line 11283 "configure" 11291 #line 11292 "configure"
11283 #include "confdefs.h" 11292 #include "confdefs.h"
11284 /* Override any gcc2 internal prototype to avoid an error. */ 11293 /* Override any gcc2 internal prototype to avoid an error. */
11285 /* We use char because int might match the return type of a gcc2 11294 /* We use char because int might match the return type of a gcc2
11286 builtin and then its argument prototype would still apply. */ 11295 builtin and then its argument prototype would still apply. */
11287 char $dbfunc(); 11296 char $dbfunc();
11288 11297
11289 int main() { 11298 int main() {
11290 $dbfunc() 11299 $dbfunc()
11291 ; return 0; } 11300 ; return 0; }
11292 EOF 11301 EOF
11293 if { (eval echo configure:11294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11302 if { (eval echo configure:11303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11294 rm -rf conftest* 11303 rm -rf conftest*
11295 eval "ac_cv_lib_$ac_lib_var=yes" 11304 eval "ac_cv_lib_$ac_lib_var=yes"
11296 else 11305 else
11297 echo "configure: failed program was:" >&5 11306 echo "configure: failed program was:" >&5
11298 cat conftest.$ac_ext >&5 11307 cat conftest.$ac_ext >&5
11352 fi 11361 fi
11353 11362
11354 if test "$with_socks" = "yes"; then 11363 if test "$with_socks" = "yes"; then
11355 11364
11356 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 11365 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11357 echo "configure:11358: checking for SOCKSinit in -lsocks" >&5 11366 echo "configure:11367: checking for SOCKSinit in -lsocks" >&5
11358 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 11367 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11359 11368
11360 xe_check_libs=" -lsocks " 11369 xe_check_libs=" -lsocks "
11361 cat > conftest.$ac_ext <<EOF 11370 cat > conftest.$ac_ext <<EOF
11362 #line 11363 "configure" 11371 #line 11372 "configure"
11363 #include "confdefs.h" 11372 #include "confdefs.h"
11364 /* Override any gcc2 internal prototype to avoid an error. */ 11373 /* Override any gcc2 internal prototype to avoid an error. */
11365 /* We use char because int might match the return type of a gcc2 11374 /* We use char because int might match the return type of a gcc2
11366 builtin and then its argument prototype would still apply. */ 11375 builtin and then its argument prototype would still apply. */
11367 char SOCKSinit(); 11376 char SOCKSinit();
11368 11377
11369 int main() { 11378 int main() {
11370 SOCKSinit() 11379 SOCKSinit()
11371 ; return 0; } 11380 ; return 0; }
11372 EOF 11381 EOF
11373 if { (eval echo configure:11374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11382 if { (eval echo configure:11383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11374 rm -rf conftest* 11383 rm -rf conftest*
11375 eval "ac_cv_lib_$ac_lib_var=yes" 11384 eval "ac_cv_lib_$ac_lib_var=yes"
11376 else 11385 else
11377 echo "configure: failed program was:" >&5 11386 echo "configure: failed program was:" >&5
11378 cat conftest.$ac_ext >&5 11387 cat conftest.$ac_ext >&5
11427 11436
11428 for ac_hdr in dlfcn.h 11437 for ac_hdr in dlfcn.h
11429 do 11438 do
11430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11432 echo "configure:11433: checking for $ac_hdr" >&5 11441 echo "configure:11442: checking for $ac_hdr" >&5
11433 11442
11434 cat > conftest.$ac_ext <<EOF 11443 cat > conftest.$ac_ext <<EOF
11435 #line 11436 "configure" 11444 #line 11445 "configure"
11436 #include "confdefs.h" 11445 #include "confdefs.h"
11437 #include <$ac_hdr> 11446 #include <$ac_hdr>
11438 EOF 11447 EOF
11439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11440 { (eval echo configure:11441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11449 { (eval echo configure:11450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11441 ac_err=`grep -v '^ *+' conftest.out` 11450 ac_err=`grep -v '^ *+' conftest.out`
11442 if test -z "$ac_err"; then 11451 if test -z "$ac_err"; then
11443 rm -rf conftest* 11452 rm -rf conftest*
11444 eval "ac_cv_header_$ac_safe=yes" 11453 eval "ac_cv_header_$ac_safe=yes"
11445 else 11454 else
11466 fi 11475 fi
11467 done 11476 done
11468 11477
11469 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11478 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11470 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11479 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11471 echo "configure:11472: checking for dlopen in -ldl" >&5 11480 echo "configure:11481: checking for dlopen in -ldl" >&5
11472 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11481 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11473 11482
11474 xe_check_libs=" -ldl " 11483 xe_check_libs=" -ldl "
11475 cat > conftest.$ac_ext <<EOF 11484 cat > conftest.$ac_ext <<EOF
11476 #line 11477 "configure" 11485 #line 11486 "configure"
11477 #include "confdefs.h" 11486 #include "confdefs.h"
11478 /* Override any gcc2 internal prototype to avoid an error. */ 11487 /* Override any gcc2 internal prototype to avoid an error. */
11479 /* We use char because int might match the return type of a gcc2 11488 /* We use char because int might match the return type of a gcc2
11480 builtin and then its argument prototype would still apply. */ 11489 builtin and then its argument prototype would still apply. */
11481 char dlopen(); 11490 char dlopen();
11482 11491
11483 int main() { 11492 int main() {
11484 dlopen() 11493 dlopen()
11485 ; return 0; } 11494 ; return 0; }
11486 EOF 11495 EOF
11487 if { (eval echo configure:11488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11496 if { (eval echo configure:11497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11488 rm -rf conftest* 11497 rm -rf conftest*
11489 eval "ac_cv_lib_$ac_lib_var=yes" 11498 eval "ac_cv_lib_$ac_lib_var=yes"
11490 else 11499 else
11491 echo "configure: failed program was:" >&5 11500 echo "configure: failed program was:" >&5
11492 cat conftest.$ac_ext >&5 11501 cat conftest.$ac_ext >&5
11511 fi 11520 fi
11512 11521
11513 } 11522 }
11514 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11523 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11515 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 11524 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11516 echo "configure:11517: checking for _dlopen in -lc" >&5 11525 echo "configure:11526: checking for _dlopen in -lc" >&5
11517 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 11526 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11518 11527
11519 xe_check_libs=" -lc " 11528 xe_check_libs=" -lc "
11520 cat > conftest.$ac_ext <<EOF 11529 cat > conftest.$ac_ext <<EOF
11521 #line 11522 "configure" 11530 #line 11531 "configure"
11522 #include "confdefs.h" 11531 #include "confdefs.h"
11523 /* Override any gcc2 internal prototype to avoid an error. */ 11532 /* Override any gcc2 internal prototype to avoid an error. */
11524 /* We use char because int might match the return type of a gcc2 11533 /* We use char because int might match the return type of a gcc2
11525 builtin and then its argument prototype would still apply. */ 11534 builtin and then its argument prototype would still apply. */
11526 char _dlopen(); 11535 char _dlopen();
11527 11536
11528 int main() { 11537 int main() {
11529 _dlopen() 11538 _dlopen()
11530 ; return 0; } 11539 ; return 0; }
11531 EOF 11540 EOF
11532 if { (eval echo configure:11533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11541 if { (eval echo configure:11542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11533 rm -rf conftest* 11542 rm -rf conftest*
11534 eval "ac_cv_lib_$ac_lib_var=yes" 11543 eval "ac_cv_lib_$ac_lib_var=yes"
11535 else 11544 else
11536 echo "configure: failed program was:" >&5 11545 echo "configure: failed program was:" >&5
11537 cat conftest.$ac_ext >&5 11546 cat conftest.$ac_ext >&5
11556 fi 11565 fi
11557 11566
11558 } 11567 }
11559 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11568 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11560 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11569 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11561 echo "configure:11562: checking for dlopen in -lc" >&5 11570 echo "configure:11571: checking for dlopen in -lc" >&5
11562 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11571 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11563 11572
11564 xe_check_libs=" -lc " 11573 xe_check_libs=" -lc "
11565 cat > conftest.$ac_ext <<EOF 11574 cat > conftest.$ac_ext <<EOF
11566 #line 11567 "configure" 11575 #line 11576 "configure"
11567 #include "confdefs.h" 11576 #include "confdefs.h"
11568 /* Override any gcc2 internal prototype to avoid an error. */ 11577 /* Override any gcc2 internal prototype to avoid an error. */
11569 /* We use char because int might match the return type of a gcc2 11578 /* We use char because int might match the return type of a gcc2
11570 builtin and then its argument prototype would still apply. */ 11579 builtin and then its argument prototype would still apply. */
11571 char dlopen(); 11580 char dlopen();
11572 11581
11573 int main() { 11582 int main() {
11574 dlopen() 11583 dlopen()
11575 ; return 0; } 11584 ; return 0; }
11576 EOF 11585 EOF
11577 if { (eval echo configure:11578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11586 if { (eval echo configure:11587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11578 rm -rf conftest* 11587 rm -rf conftest*
11579 eval "ac_cv_lib_$ac_lib_var=yes" 11588 eval "ac_cv_lib_$ac_lib_var=yes"
11580 else 11589 else
11581 echo "configure: failed program was:" >&5 11590 echo "configure: failed program was:" >&5
11582 cat conftest.$ac_ext >&5 11591 cat conftest.$ac_ext >&5
11601 fi 11610 fi
11602 11611
11603 } 11612 }
11604 test -z "$with_shlib" && { 11613 test -z "$with_shlib" && {
11605 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11614 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11606 echo "configure:11607: checking for shl_load in -ldld" >&5 11615 echo "configure:11616: checking for shl_load in -ldld" >&5
11607 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11616 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11608 11617
11609 xe_check_libs=" -ldld " 11618 xe_check_libs=" -ldld "
11610 cat > conftest.$ac_ext <<EOF 11619 cat > conftest.$ac_ext <<EOF
11611 #line 11612 "configure" 11620 #line 11621 "configure"
11612 #include "confdefs.h" 11621 #include "confdefs.h"
11613 /* Override any gcc2 internal prototype to avoid an error. */ 11622 /* Override any gcc2 internal prototype to avoid an error. */
11614 /* We use char because int might match the return type of a gcc2 11623 /* We use char because int might match the return type of a gcc2
11615 builtin and then its argument prototype would still apply. */ 11624 builtin and then its argument prototype would still apply. */
11616 char shl_load(); 11625 char shl_load();
11617 11626
11618 int main() { 11627 int main() {
11619 shl_load() 11628 shl_load()
11620 ; return 0; } 11629 ; return 0; }
11621 EOF 11630 EOF
11622 if { (eval echo configure:11623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11631 if { (eval echo configure:11632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11623 rm -rf conftest* 11632 rm -rf conftest*
11624 eval "ac_cv_lib_$ac_lib_var=yes" 11633 eval "ac_cv_lib_$ac_lib_var=yes"
11625 else 11634 else
11626 echo "configure: failed program was:" >&5 11635 echo "configure: failed program was:" >&5
11627 cat conftest.$ac_ext >&5 11636 cat conftest.$ac_ext >&5
11646 fi 11655 fi
11647 11656
11648 } 11657 }
11649 test -z "$with_shlib" && { 11658 test -z "$with_shlib" && {
11650 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 11659 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11651 echo "configure:11652: checking for dld_init in -ldld" >&5 11660 echo "configure:11661: checking for dld_init in -ldld" >&5
11652 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 11661 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11653 11662
11654 xe_check_libs=" -ldld " 11663 xe_check_libs=" -ldld "
11655 cat > conftest.$ac_ext <<EOF 11664 cat > conftest.$ac_ext <<EOF
11656 #line 11657 "configure" 11665 #line 11666 "configure"
11657 #include "confdefs.h" 11666 #include "confdefs.h"
11658 /* Override any gcc2 internal prototype to avoid an error. */ 11667 /* Override any gcc2 internal prototype to avoid an error. */
11659 /* We use char because int might match the return type of a gcc2 11668 /* We use char because int might match the return type of a gcc2
11660 builtin and then its argument prototype would still apply. */ 11669 builtin and then its argument prototype would still apply. */
11661 char dld_init(); 11670 char dld_init();
11662 11671
11663 int main() { 11672 int main() {
11664 dld_init() 11673 dld_init()
11665 ; return 0; } 11674 ; return 0; }
11666 EOF 11675 EOF
11667 if { (eval echo configure:11668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11676 if { (eval echo configure:11677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11668 rm -rf conftest* 11677 rm -rf conftest*
11669 eval "ac_cv_lib_$ac_lib_var=yes" 11678 eval "ac_cv_lib_$ac_lib_var=yes"
11670 else 11679 else
11671 echo "configure: failed program was:" >&5 11680 echo "configure: failed program was:" >&5
11672 cat conftest.$ac_ext >&5 11681 cat conftest.$ac_ext >&5
11712 dll_lflags="-shared" 11721 dll_lflags="-shared"
11713 dll_cflags="-r" 11722 dll_cflags="-r"
11714 dll_oflags="-o " 11723 dll_oflags="-o "
11715 11724
11716 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 11725 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
11717 echo "configure:11718: checking how to build a shared library" >&5 11726 echo "configure:11727: checking how to build a shared library" >&5
11718 case `uname -rs` in 11727 case `uname -rs` in
11719 UNIX_SV*|UNIX_System_V*) 11728 UNIX_SV*|UNIX_System_V*)
11720 dll_lflags="-G" 11729 dll_lflags="-G"
11721 dll_cflags=-Kpic 11730 dll_cflags=-Kpic
11722 dll_ld="ld" 11731 dll_ld="ld"
11803 11812
11804 11813
11805 for ac_func in dlerror 11814 for ac_func in dlerror
11806 do 11815 do
11807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11808 echo "configure:11809: checking for $ac_func" >&5 11817 echo "configure:11818: checking for $ac_func" >&5
11809 11818
11810 cat > conftest.$ac_ext <<EOF 11819 cat > conftest.$ac_ext <<EOF
11811 #line 11812 "configure" 11820 #line 11821 "configure"
11812 #include "confdefs.h" 11821 #include "confdefs.h"
11813 /* System header to define __stub macros and hopefully few prototypes, 11822 /* System header to define __stub macros and hopefully few prototypes,
11814 which can conflict with char $ac_func(); below. */ 11823 which can conflict with char $ac_func(); below. */
11815 #include <assert.h> 11824 #include <assert.h>
11816 /* Override any gcc2 internal prototype to avoid an error. */ 11825 /* Override any gcc2 internal prototype to avoid an error. */
11829 $ac_func(); 11838 $ac_func();
11830 #endif 11839 #endif
11831 11840
11832 ; return 0; } 11841 ; return 0; }
11833 EOF 11842 EOF
11834 if { (eval echo configure:11835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11843 if { (eval echo configure:11844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11835 rm -rf conftest* 11844 rm -rf conftest*
11836 eval "ac_cv_func_$ac_func=yes" 11845 eval "ac_cv_func_$ac_func=yes"
11837 else 11846 else
11838 echo "configure: failed program was:" >&5 11847 echo "configure: failed program was:" >&5
11839 cat conftest.$ac_ext >&5 11848 cat conftest.$ac_ext >&5
11865 *) ;; 11874 *) ;;
11866 esac 11875 esac
11867 fi 11876 fi
11868 11877
11869 cat > conftest.$ac_ext <<EOF 11878 cat > conftest.$ac_ext <<EOF
11870 #line 11871 "configure" 11879 #line 11880 "configure"
11871 #include "confdefs.h" 11880 #include "confdefs.h"
11872 int main(int c,char *v[]){return 0;} 11881 int main(int c,char *v[]){return 0;}
11873 EOF 11882 EOF
11874 if { (eval echo configure:11875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11883 if { (eval echo configure:11884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11875 then 11884 then
11876 : 11885 :
11877 else 11886 else
11878 conftest_rc="$?" 11887 conftest_rc="$?"
11879 echo "configure: failed program was:" >&5 11888 echo "configure: failed program was:" >&5
12123 done 12132 done
12124 12133
12125 12134
12126 12135
12127 12136
12137 DOCDIR=$docdir
12138 while true; do
12139 case "$DOCDIR" in
12140 *\$* ) eval "DOCDIR=$DOCDIR" ;;
12141 *) break ;;
12142 esac
12143 done
12144
12145
12146
12147
12128 ARCHLIBDIR=$archlibdir 12148 ARCHLIBDIR=$archlibdir
12129 while true; do 12149 while true; do
12130 case "$ARCHLIBDIR" in 12150 case "$ARCHLIBDIR" in
12131 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;; 12151 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12132 *) break ;; 12152 *) break ;;
12388 echo "$0 $quoted_arguments" 12408 echo "$0 $quoted_arguments"
12389 ) > Installation 12409 ) > Installation
12390 12410
12391 if test ! -z ${emacs_beta_version} ; then 12411 if test ! -z ${emacs_beta_version} ; then
12392 if test -z "${emacs_is_beta}" ; then 12412 if test -z "${emacs_is_beta}" ; then
12393 xemacs_betaname="-p${emacs_beta_version}" 12413 xemacs_betaname=".${emacs_beta_version}"
12394 else 12414 else
12395 xemacs_betaname="-b${emacs_beta_version}" 12415 xemacs_betaname="-b${emacs_beta_version}"
12396 fi 12416 fi
12397 else 12417 else
12398 xemacs_betaname="" 12418 xemacs_betaname=""
12712 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g 12732 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
12713 s%@ETCDIR@%$ETCDIR%g 12733 s%@ETCDIR@%$ETCDIR%g
12714 s%@lockdir@%$lockdir%g 12734 s%@lockdir@%$lockdir%g
12715 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g 12735 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
12716 s%@LOCKDIR@%$LOCKDIR%g 12736 s%@LOCKDIR@%$LOCKDIR%g
12737 s%@docdir@%$docdir%g
12738 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
12739 s%@DOCDIR@%$DOCDIR%g
12717 s%@archlibdir@%$archlibdir%g 12740 s%@archlibdir@%$archlibdir%g
12718 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g 12741 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
12719 s%@ARCHLIBDIR@%$ARCHLIBDIR%g 12742 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
12720 s%@docdir@%$docdir%g
12721 s%@bitmapdir@%$bitmapdir%g 12743 s%@bitmapdir@%$bitmapdir%g
12722 s%@extra_objs@%$extra_objs%g 12744 s%@extra_objs@%$extra_objs%g
12723 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g 12745 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
12724 s%@machfile@%$machfile%g 12746 s%@machfile@%$machfile%g
12725 s%@opsysfile@%$opsysfile%g 12747 s%@opsysfile@%$opsysfile%g