comparison configure @ 426:43177a4f3daf r21-2-21

Import from CVS: tag r21-2-21
author cvs
date Mon, 13 Aug 2007 11:27:01 +0200
parents 11054d720c21
children a5df635868b2
comparison
equal deleted inserted replaced
425:22157a68eca2 426:43177a4f3daf
422 ;; 422 ;;
423 423
424 "with_database" ) 424 "with_database" )
425 with_database_berkdb=no 425 with_database_berkdb=no
426 with_database_dbm=no 426 with_database_dbm=no
427 with_database_gnudbm=no 427 with_database_gdbm=no
428 for x in `echo "$val" | sed -e 's/,/ /g'` ; do 428 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
429 case "$x" in 429 case "$x" in
430 no ) ;; 430 no ) ;;
431 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; 431 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
432 d | db | dbm ) with_database_dbm=yes ;; 432 d | db | dbm ) with_database_dbm=yes ;;
433 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; 433 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
434 * ) (echo "$progname: Usage error:" 434 * ) (echo "$progname: Usage error:"
435 echo " " "The \`--$optname' option value 435 echo " " "The \`--$optname' option value
436 must be either \`no' or a comma-separated list 436 must be either \`no' or a comma-separated list
437 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'." 437 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
439 esac 439 esac
440 done 440 done
441 if test "$with_database_dbm" = "yes" -a \ 441 if test "$with_database_dbm" = "yes" -a \
442 "$with_database_gnudbm" = "yes"; then 442 "$with_database_gdbm" = "yes"; then
443 (echo "$progname: Usage error:" 443 (echo "$progname: Usage error:"
444 echo " " "Only one of \`dbm' and \`gnudbm' may be specified 444 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
445 with the \`--$optname' option." 445 with the \`--$optname' option."
446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
447 fi 447 fi
448 ;; 448 ;;
449 449
450 "with_sound" ) 450 "with_sound" )
451 case "$val" in 451 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
452 y | ye | yes ) val=native ;; 452 case "$x" in
453 n | no | non | none ) val=no;; 453 n | no | non | none ) new_sdefault=no ;;
454 na | nat | nati | nativ | native ) val=native ;; 454 a | al | all | both ) new_sdefault=yes ;;
455 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;; 455
456 b | bo | bot | both ) val=both;; 456 native ) with_native_sound=yes ;;
457 * ) (echo "$progname: Usage error:" 457 nonative ) with_native_sound=no ;;
458 echo " " "The \`--$optname' option must have one of these values: 458
459 \`native', \`nas', \`both', or \`none'." 459 nas ) with_nas_sound=yes ;;
460 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 460 nonas ) with_nas_sound=no ;;
461 esac 461
462 eval "$opt=\"$val\"" 462 esd ) with_esd=yes ;;
463 noesd ) with_esh=no ;;
464
465 * ) bogus_sound=yes ;;
466 esac
467 if test "$bogus_sound" -o \
468 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
469 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
470 (echo "$progname: Usage error:"
471 echo " " "Valid types for the \`--$optname' option are:
472 $types.
473 The default is native,esd."
474 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
475 elif test -n "$new_sdefault" ; then
476 with_native_sound=$new_sdefault
477 with_nas_sound=$new_sdefault
478 with_esd=$new_sdefault
479 new_sdefault= # reset this
480 fi
481 sound_notfirst=true
482 done
463 ;; 483 ;;
464 484
465 "with_xim" ) 485 "with_xim" )
466 case "$val" in 486 case "$val" in
467 y | ye | yes ) val=yes ;; 487 y | ye | yes ) val=yes ;;
794 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 814 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
795 fi 815 fi
796 fi 816 fi
797 817
798 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 818 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
799 echo "configure:800: checking whether ln -s works" >&5 819 echo "configure:820: checking whether ln -s works" >&5
800 820
801 rm -f conftestdata 821 rm -f conftestdata
802 if ln -s X conftestdata 2>/dev/null 822 if ln -s X conftestdata 2>/dev/null
803 then 823 then
804 rm -f conftestdata 824 rm -f conftestdata
1039 } 1059 }
1040 1060
1041 1061
1042 1062
1043 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 1063 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1044 echo "configure:1045: checking "host system type"" >&5 1064 echo "configure:1065: checking "host system type"" >&5
1045 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1065 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1046 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 1066 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1047 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1067 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1048 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1068 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1049 echo "$ac_t""$configuration" 1>&6 1069 echo "$ac_t""$configuration" 1>&6
1533 xe_save_CFLAGS="$CFLAGS" 1553 xe_save_CFLAGS="$CFLAGS"
1534 1554
1535 # Extract the first word of "gcc", so it can be a program name with args. 1555 # Extract the first word of "gcc", so it can be a program name with args.
1536 set dummy gcc; ac_word=$2 1556 set dummy gcc; ac_word=$2
1537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1538 echo "configure:1539: checking for $ac_word" >&5 1558 echo "configure:1559: checking for $ac_word" >&5
1539 1559
1540 if test -n "$CC"; then 1560 if test -n "$CC"; then
1541 ac_cv_prog_CC="$CC" # Let the user override the test. 1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1542 else 1562 else
1543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1560 1580
1561 if test -z "$CC"; then 1581 if test -z "$CC"; then
1562 # Extract the first word of "cc", so it can be a program name with args. 1582 # Extract the first word of "cc", so it can be a program name with args.
1563 set dummy cc; ac_word=$2 1583 set dummy cc; ac_word=$2
1564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1565 echo "configure:1566: checking for $ac_word" >&5 1585 echo "configure:1586: checking for $ac_word" >&5
1566 1586
1567 if test -n "$CC"; then 1587 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test. 1588 ac_cv_prog_CC="$CC" # Let the user override the test.
1569 else 1589 else
1570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1608 case "`uname -s`" in 1628 case "`uname -s`" in
1609 *win32* | *WIN32*) 1629 *win32* | *WIN32*)
1610 # Extract the first word of "cl", so it can be a program name with args. 1630 # Extract the first word of "cl", so it can be a program name with args.
1611 set dummy cl; ac_word=$2 1631 set dummy cl; ac_word=$2
1612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1613 echo "configure:1614: checking for $ac_word" >&5 1633 echo "configure:1634: checking for $ac_word" >&5
1614 1634
1615 if test -n "$CC"; then 1635 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test. 1636 ac_cv_prog_CC="$CC" # Let the user override the test.
1617 else 1637 else
1618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1637 fi 1657 fi
1638 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1658 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1639 fi 1659 fi
1640 1660
1641 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1661 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1642 echo "configure:1643: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1662 echo "configure:1663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1643 1663
1644 ac_ext=c 1664 ac_ext=c
1645 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1665 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1646 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1666 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1647 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1667 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1650 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1670 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1651 cross_compiling=no 1671 cross_compiling=no
1652 1672
1653 cat > conftest.$ac_ext << EOF 1673 cat > conftest.$ac_ext << EOF
1654 1674
1655 #line 1656 "configure" 1675 #line 1676 "configure"
1656 #include "confdefs.h" 1676 #include "confdefs.h"
1657 1677
1658 main(){return(0);} 1678 main(){return(0);}
1659 EOF 1679 EOF
1660 if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1680 if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1661 ac_cv_prog_cc_works=yes 1681 ac_cv_prog_cc_works=yes
1662 # If we can't run a trivial program, we are probably using a cross compiler. 1682 # If we can't run a trivial program, we are probably using a cross compiler.
1663 if (./conftest; exit) 2>/dev/null; then 1683 if (./conftest; exit) 2>/dev/null; then
1664 ac_cv_prog_cc_cross=no 1684 ac_cv_prog_cc_cross=no
1665 else 1685 else
1683 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1703 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1684 if test $ac_cv_prog_cc_works = no; then 1704 if test $ac_cv_prog_cc_works = no; then
1685 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1705 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1686 fi 1706 fi
1687 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1707 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1688 echo "configure:1689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1708 echo "configure:1709: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1689 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1709 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1690 cross_compiling=$ac_cv_prog_cc_cross 1710 cross_compiling=$ac_cv_prog_cc_cross
1691 1711
1692 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1712 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1693 echo "configure:1694: checking whether we are using GNU C" >&5 1713 echo "configure:1714: checking whether we are using GNU C" >&5
1694 1714
1695 cat > conftest.c <<EOF 1715 cat > conftest.c <<EOF
1696 #ifdef __GNUC__ 1716 #ifdef __GNUC__
1697 yes; 1717 yes;
1698 #endif 1718 #endif
1699 EOF 1719 EOF
1700 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1720 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1701 ac_cv_prog_gcc=yes 1721 ac_cv_prog_gcc=yes
1702 else 1722 else
1703 ac_cv_prog_gcc=no 1723 ac_cv_prog_gcc=no
1704 fi 1724 fi
1705 1725
1713 1733
1714 ac_test_CFLAGS="${CFLAGS+set}" 1734 ac_test_CFLAGS="${CFLAGS+set}"
1715 ac_save_CFLAGS="$CFLAGS" 1735 ac_save_CFLAGS="$CFLAGS"
1716 CFLAGS= 1736 CFLAGS=
1717 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1737 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1718 echo "configure:1719: checking whether ${CC-cc} accepts -g" >&5 1738 echo "configure:1739: checking whether ${CC-cc} accepts -g" >&5
1719 1739
1720 echo 'void f(){}' > conftest.c 1740 echo 'void f(){}' > conftest.c
1721 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1741 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1722 ac_cv_prog_cc_g=yes 1742 ac_cv_prog_cc_g=yes
1723 else 1743 else
1746 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1766 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1747 CC=${NON_GNU_CC-cc} 1767 CC=${NON_GNU_CC-cc}
1748 # Extract the first word of "gcc", so it can be a program name with args. 1768 # Extract the first word of "gcc", so it can be a program name with args.
1749 set dummy gcc; ac_word=$2 1769 set dummy gcc; ac_word=$2
1750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_word" >&5 1771 echo "configure:1772: checking for $ac_word" >&5
1752 1772
1753 if test -n "$CC"; then 1773 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test. 1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else 1775 else
1756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1773 1793
1774 if test -z "$CC"; then 1794 if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args. 1795 # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2 1796 set dummy cc; ac_word=$2
1777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1778 echo "configure:1779: checking for $ac_word" >&5 1798 echo "configure:1799: checking for $ac_word" >&5
1779 1799
1780 if test -n "$CC"; then 1800 if test -n "$CC"; then
1781 ac_cv_prog_CC="$CC" # Let the user override the test. 1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1782 else 1802 else
1783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1821 case "`uname -s`" in 1841 case "`uname -s`" in
1822 *win32* | *WIN32*) 1842 *win32* | *WIN32*)
1823 # Extract the first word of "cl", so it can be a program name with args. 1843 # Extract the first word of "cl", so it can be a program name with args.
1824 set dummy cl; ac_word=$2 1844 set dummy cl; ac_word=$2
1825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_word" >&5 1846 echo "configure:1847: checking for $ac_word" >&5
1827 1847
1828 if test -n "$CC"; then 1848 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test. 1849 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 else 1850 else
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1850 fi 1870 fi
1851 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1871 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1852 fi 1872 fi
1853 1873
1854 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1874 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1855 echo "configure:1856: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1875 echo "configure:1876: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1856 1876
1857 ac_ext=c 1877 ac_ext=c
1858 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1878 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1859 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1879 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1860 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1880 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1863 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1883 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1864 cross_compiling=no 1884 cross_compiling=no
1865 1885
1866 cat > conftest.$ac_ext << EOF 1886 cat > conftest.$ac_ext << EOF
1867 1887
1868 #line 1869 "configure" 1888 #line 1889 "configure"
1869 #include "confdefs.h" 1889 #include "confdefs.h"
1870 1890
1871 main(){return(0);} 1891 main(){return(0);}
1872 EOF 1892 EOF
1873 if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1893 if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1874 ac_cv_prog_cc_works=yes 1894 ac_cv_prog_cc_works=yes
1875 # If we can't run a trivial program, we are probably using a cross compiler. 1895 # If we can't run a trivial program, we are probably using a cross compiler.
1876 if (./conftest; exit) 2>/dev/null; then 1896 if (./conftest; exit) 2>/dev/null; then
1877 ac_cv_prog_cc_cross=no 1897 ac_cv_prog_cc_cross=no
1878 else 1898 else
1896 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1916 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1897 if test $ac_cv_prog_cc_works = no; then 1917 if test $ac_cv_prog_cc_works = no; then
1898 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1918 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1899 fi 1919 fi
1900 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1920 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1901 echo "configure:1902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1921 echo "configure:1922: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1902 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1922 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1903 cross_compiling=$ac_cv_prog_cc_cross 1923 cross_compiling=$ac_cv_prog_cc_cross
1904 1924
1905 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1925 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1906 echo "configure:1907: checking whether we are using GNU C" >&5 1926 echo "configure:1927: checking whether we are using GNU C" >&5
1907 1927
1908 cat > conftest.c <<EOF 1928 cat > conftest.c <<EOF
1909 #ifdef __GNUC__ 1929 #ifdef __GNUC__
1910 yes; 1930 yes;
1911 #endif 1931 #endif
1912 EOF 1932 EOF
1913 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 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
1914 ac_cv_prog_gcc=yes 1934 ac_cv_prog_gcc=yes
1915 else 1935 else
1916 ac_cv_prog_gcc=no 1936 ac_cv_prog_gcc=no
1917 fi 1937 fi
1918 1938
1926 1946
1927 ac_test_CFLAGS="${CFLAGS+set}" 1947 ac_test_CFLAGS="${CFLAGS+set}"
1928 ac_save_CFLAGS="$CFLAGS" 1948 ac_save_CFLAGS="$CFLAGS"
1929 CFLAGS= 1949 CFLAGS=
1930 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1950 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1931 echo "configure:1932: checking whether ${CC-cc} accepts -g" >&5 1951 echo "configure:1952: checking whether ${CC-cc} accepts -g" >&5
1932 1952
1933 echo 'void f(){}' > conftest.c 1953 echo 'void f(){}' > conftest.c
1934 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1954 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1935 ac_cv_prog_cc_g=yes 1955 ac_cv_prog_cc_g=yes
1936 else 1956 else
1959 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1979 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1960 CC=gcc 1980 CC=gcc
1961 # Extract the first word of "gcc", so it can be a program name with args. 1981 # Extract the first word of "gcc", so it can be a program name with args.
1962 set dummy gcc; ac_word=$2 1982 set dummy gcc; ac_word=$2
1963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1983 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1964 echo "configure:1965: checking for $ac_word" >&5 1984 echo "configure:1985: checking for $ac_word" >&5
1965 1985
1966 if test -n "$CC"; then 1986 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test. 1987 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 else 1988 else
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1986 2006
1987 if test -z "$CC"; then 2007 if test -z "$CC"; then
1988 # Extract the first word of "cc", so it can be a program name with args. 2008 # Extract the first word of "cc", so it can be a program name with args.
1989 set dummy cc; ac_word=$2 2009 set dummy cc; ac_word=$2
1990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1991 echo "configure:1992: checking for $ac_word" >&5 2011 echo "configure:2012: checking for $ac_word" >&5
1992 2012
1993 if test -n "$CC"; then 2013 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test. 2014 ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else 2015 else
1996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2034 case "`uname -s`" in 2054 case "`uname -s`" in
2035 *win32* | *WIN32*) 2055 *win32* | *WIN32*)
2036 # Extract the first word of "cl", so it can be a program name with args. 2056 # Extract the first word of "cl", so it can be a program name with args.
2037 set dummy cl; ac_word=$2 2057 set dummy cl; ac_word=$2
2038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2039 echo "configure:2040: checking for $ac_word" >&5 2059 echo "configure:2060: checking for $ac_word" >&5
2040 2060
2041 if test -n "$CC"; then 2061 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test. 2062 ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else 2063 else
2044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2063 fi 2083 fi
2064 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2084 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2065 fi 2085 fi
2066 2086
2067 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2087 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2068 echo "configure:2069: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2088 echo "configure:2089: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2069 2089
2070 ac_ext=c 2090 ac_ext=c
2071 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2091 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2072 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2092 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2073 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2093 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2076 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2096 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2077 cross_compiling=no 2097 cross_compiling=no
2078 2098
2079 cat > conftest.$ac_ext << EOF 2099 cat > conftest.$ac_ext << EOF
2080 2100
2081 #line 2082 "configure" 2101 #line 2102 "configure"
2082 #include "confdefs.h" 2102 #include "confdefs.h"
2083 2103
2084 main(){return(0);} 2104 main(){return(0);}
2085 EOF 2105 EOF
2086 if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2106 if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2087 ac_cv_prog_cc_works=yes 2107 ac_cv_prog_cc_works=yes
2088 # If we can't run a trivial program, we are probably using a cross compiler. 2108 # If we can't run a trivial program, we are probably using a cross compiler.
2089 if (./conftest; exit) 2>/dev/null; then 2109 if (./conftest; exit) 2>/dev/null; then
2090 ac_cv_prog_cc_cross=no 2110 ac_cv_prog_cc_cross=no
2091 else 2111 else
2109 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2129 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2110 if test $ac_cv_prog_cc_works = no; then 2130 if test $ac_cv_prog_cc_works = no; then
2111 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2131 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2112 fi 2132 fi
2113 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2133 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2114 echo "configure:2115: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2134 echo "configure:2135: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2115 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2135 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2116 cross_compiling=$ac_cv_prog_cc_cross 2136 cross_compiling=$ac_cv_prog_cc_cross
2117 2137
2118 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2138 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2119 echo "configure:2120: checking whether we are using GNU C" >&5 2139 echo "configure:2140: checking whether we are using GNU C" >&5
2120 2140
2121 cat > conftest.c <<EOF 2141 cat > conftest.c <<EOF
2122 #ifdef __GNUC__ 2142 #ifdef __GNUC__
2123 yes; 2143 yes;
2124 #endif 2144 #endif
2125 EOF 2145 EOF
2126 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2146 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2127 ac_cv_prog_gcc=yes 2147 ac_cv_prog_gcc=yes
2128 else 2148 else
2129 ac_cv_prog_gcc=no 2149 ac_cv_prog_gcc=no
2130 fi 2150 fi
2131 2151
2139 2159
2140 ac_test_CFLAGS="${CFLAGS+set}" 2160 ac_test_CFLAGS="${CFLAGS+set}"
2141 ac_save_CFLAGS="$CFLAGS" 2161 ac_save_CFLAGS="$CFLAGS"
2142 CFLAGS= 2162 CFLAGS=
2143 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2163 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2144 echo "configure:2145: checking whether ${CC-cc} accepts -g" >&5 2164 echo "configure:2165: checking whether ${CC-cc} accepts -g" >&5
2145 2165
2146 echo 'void f(){}' > conftest.c 2166 echo 'void f(){}' > conftest.c
2147 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2167 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2148 ac_cv_prog_cc_g=yes 2168 ac_cv_prog_cc_g=yes
2149 else 2169 else
2176 test -n "$CPP" -a -d "$CPP" && CPP= 2196 test -n "$CPP" -a -d "$CPP" && CPP=
2177 2197
2178 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2198 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2179 2199
2180 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2200 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2181 echo "configure:2182: checking how to run the C preprocessor" >&5 2201 echo "configure:2202: checking how to run the C preprocessor" >&5
2182 # On Suns, sometimes $CPP names a directory. 2202 # On Suns, sometimes $CPP names a directory.
2183 if test -n "$CPP" && test -d "$CPP"; then 2203 if test -n "$CPP" && test -d "$CPP"; then
2184 CPP= 2204 CPP=
2185 fi 2205 fi
2186 if test -z "$CPP"; then 2206 if test -z "$CPP"; then
2189 # substituted into the Makefile and "${CC-cc}" will confuse make. 2209 # substituted into the Makefile and "${CC-cc}" will confuse make.
2190 CPP="${CC-cc} -E" 2210 CPP="${CC-cc} -E"
2191 # On the NeXT, cc -E runs the code through the compiler's parser, 2211 # On the NeXT, cc -E runs the code through the compiler's parser,
2192 # not just through cpp. 2212 # not just through cpp.
2193 cat > conftest.$ac_ext <<EOF 2213 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure" 2214 #line 2215 "configure"
2195 #include "confdefs.h" 2215 #include "confdefs.h"
2196 #include <assert.h> 2216 #include <assert.h>
2197 Syntax Error 2217 Syntax Error
2198 EOF 2218 EOF
2199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2200 { (eval echo configure:2201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2220 { (eval echo configure:2221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2202 if test -z "$ac_err"; then 2222 if test -z "$ac_err"; then
2203 : 2223 :
2204 else 2224 else
2205 echo "$ac_err" >&5 2225 echo "$ac_err" >&5
2206 echo "configure: failed program was:" >&5 2226 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5 2227 cat conftest.$ac_ext >&5
2208 rm -rf conftest* 2228 rm -rf conftest*
2209 CPP="${CC-cc} -E -traditional-cpp" 2229 CPP="${CC-cc} -E -traditional-cpp"
2210 cat > conftest.$ac_ext <<EOF 2230 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure" 2231 #line 2232 "configure"
2212 #include "confdefs.h" 2232 #include "confdefs.h"
2213 #include <assert.h> 2233 #include <assert.h>
2214 Syntax Error 2234 Syntax Error
2215 EOF 2235 EOF
2216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2217 { (eval echo configure:2218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2237 { (eval echo configure:2238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2219 if test -z "$ac_err"; then 2239 if test -z "$ac_err"; then
2220 : 2240 :
2221 else 2241 else
2222 echo "$ac_err" >&5 2242 echo "$ac_err" >&5
2223 echo "configure: failed program was:" >&5 2243 echo "configure: failed program was:" >&5
2224 cat conftest.$ac_ext >&5 2244 cat conftest.$ac_ext >&5
2225 rm -rf conftest* 2245 rm -rf conftest*
2226 CPP="${CC-cc} -nologo -E" 2246 CPP="${CC-cc} -nologo -E"
2227 cat > conftest.$ac_ext <<EOF 2247 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure" 2248 #line 2249 "configure"
2229 #include "confdefs.h" 2249 #include "confdefs.h"
2230 #include <assert.h> 2250 #include <assert.h>
2231 Syntax Error 2251 Syntax Error
2232 EOF 2252 EOF
2233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2234 { (eval echo configure:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2254 { (eval echo configure:2255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2236 if test -z "$ac_err"; then 2256 if test -z "$ac_err"; then
2237 : 2257 :
2238 else 2258 else
2239 echo "$ac_err" >&5 2259 echo "$ac_err" >&5
2254 fi 2274 fi
2255 echo "$ac_t""$CPP" 1>&6 2275 echo "$ac_t""$CPP" 1>&6
2256 2276
2257 2277
2258 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2278 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2259 echo "configure:2260: checking for AIX" >&5 2279 echo "configure:2280: checking for AIX" >&5
2260 cat > conftest.$ac_ext <<EOF 2280 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure" 2281 #line 2282 "configure"
2262 #include "confdefs.h" 2282 #include "confdefs.h"
2263 #ifdef _AIX 2283 #ifdef _AIX
2264 yes 2284 yes
2265 #endif 2285 #endif
2266 2286
2283 rm -f conftest* 2303 rm -f conftest*
2284 2304
2285 2305
2286 2306
2287 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2307 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2288 echo "configure:2289: checking for GNU libc" >&5 2308 echo "configure:2309: checking for GNU libc" >&5
2289 cat > conftest.$ac_ext <<EOF 2309 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure" 2310 #line 2311 "configure"
2291 #include "confdefs.h" 2311 #include "confdefs.h"
2292 #include <features.h> 2312 #include <features.h>
2293 int main() { 2313 int main() {
2294 2314
2295 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2315 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2297 ******* ======= ******** &&&&&&&& 2317 ******* ======= ******** &&&&&&&&
2298 #endif 2318 #endif
2299 2319
2300 ; return 0; } 2320 ; return 0; }
2301 EOF 2321 EOF
2302 if { (eval echo configure:2303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2322 if { (eval echo configure:2323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2303 rm -rf conftest* 2323 rm -rf conftest*
2304 have_glibc=yes 2324 have_glibc=yes
2305 else 2325 else
2306 echo "configure: failed program was:" >&5 2326 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5 2327 cat conftest.$ac_ext >&5
2319 } 2339 }
2320 2340
2321 2341
2322 2342
2323 cat > conftest.$ac_ext <<EOF 2343 cat > conftest.$ac_ext <<EOF
2324 #line 2325 "configure" 2344 #line 2345 "configure"
2325 #include "confdefs.h" 2345 #include "confdefs.h"
2326 int main () { 2346 int main () {
2327 #if defined __SUNPRO_C 2347 #if defined __SUNPRO_C
2328 return 11; 2348 return 11;
2329 #elif defined __DECC 2349 #elif defined __DECC
2331 #else 2351 #else
2332 return 0; 2352 return 0;
2333 #endif 2353 #endif
2334 } 2354 }
2335 EOF 2355 EOF
2336 if { (eval echo configure:2337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2356 if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2337 then 2357 then
2338 : 2358 :
2339 else 2359 else
2340 conftest_rc="$?" 2360 conftest_rc="$?"
2341 echo "configure: failed program was:" >&5 2361 echo "configure: failed program was:" >&5
2605 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2625 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2606 echo " xemacs will be linked with \"$unexec\"" 2626 echo " xemacs will be linked with \"$unexec\""
2607 fi 2627 fi
2608 2628
2609 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2629 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2610 echo "configure:2611: checking for dynodump" >&5 2630 echo "configure:2631: checking for dynodump" >&5
2611 if test "$unexec" != "unexsol2.o"; then 2631 if test "$unexec" != "unexsol2.o"; then
2612 echo "$ac_t""no" 1>&6 2632 echo "$ac_t""no" 1>&6
2613 else 2633 else
2614 echo "$ac_t""yes" 1>&6 2634 echo "$ac_t""yes" 1>&6
2615 { test "$extra_verbose" = "yes" && cat << \EOF 2635 { test "$extra_verbose" = "yes" && cat << \EOF
2643 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2663 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2644 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2664 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2645 done 2665 done
2646 2666
2647 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2667 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2648 echo "configure:2649: checking for terminateAndUnload in -lC" >&5 2668 echo "configure:2669: checking for terminateAndUnload in -lC" >&5
2649 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2669 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2650 2670
2651 xe_check_libs=" -lC " 2671 xe_check_libs=" -lC "
2652 cat > conftest.$ac_ext <<EOF 2672 cat > conftest.$ac_ext <<EOF
2653 #line 2654 "configure" 2673 #line 2674 "configure"
2654 #include "confdefs.h" 2674 #include "confdefs.h"
2655 /* Override any gcc2 internal prototype to avoid an error. */ 2675 /* Override any gcc2 internal prototype to avoid an error. */
2656 /* We use char because int might match the return type of a gcc2 2676 /* We use char because int might match the return type of a gcc2
2657 builtin and then its argument prototype would still apply. */ 2677 builtin and then its argument prototype would still apply. */
2658 char terminateAndUnload(); 2678 char terminateAndUnload();
2659 2679
2660 int main() { 2680 int main() {
2661 terminateAndUnload() 2681 terminateAndUnload()
2662 ; return 0; } 2682 ; return 0; }
2663 EOF 2683 EOF
2664 if { (eval echo configure:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2684 if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2665 rm -rf conftest* 2685 rm -rf conftest*
2666 eval "ac_cv_lib_$ac_lib_var=yes" 2686 eval "ac_cv_lib_$ac_lib_var=yes"
2667 else 2687 else
2668 echo "configure: failed program was:" >&5 2688 echo "configure: failed program was:" >&5
2669 cat conftest.$ac_ext >&5 2689 cat conftest.$ac_ext >&5
2763 esac 2783 esac
2764 fi 2784 fi
2765 2785
2766 if test "$add_runtime_path" = "yes"; then 2786 if test "$add_runtime_path" = "yes"; then
2767 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2787 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2768 echo "configure:2769: checking "for runtime libraries flag"" >&5 2788 echo "configure:2789: checking "for runtime libraries flag"" >&5
2769 case "$opsys" in 2789 case "$opsys" in
2770 sol2 ) dash_r="-R" ;; 2790 sol2 ) dash_r="-R" ;;
2771 decosf* | linux* | irix*) dash_r="-rpath " ;; 2791 decosf* | linux* | irix*) dash_r="-rpath " ;;
2772 *) 2792 *)
2773 dash_r="" 2793 dash_r=""
2785 esac 2805 esac
2786 shift 2806 shift
2787 done 2807 done
2788 fi 2808 fi
2789 cat > conftest.$ac_ext <<EOF 2809 cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure" 2810 #line 2811 "configure"
2791 #include "confdefs.h" 2811 #include "confdefs.h"
2792 2812
2793 int main() { 2813 int main() {
2794 2814
2795 ; return 0; } 2815 ; return 0; }
2796 EOF 2816 EOF
2797 if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2817 if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2798 rm -rf conftest* 2818 rm -rf conftest*
2799 dash_r="$try_dash_r" 2819 dash_r="$try_dash_r"
2800 else 2820 else
2801 echo "configure: failed program was:" >&5 2821 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5 2822 cat conftest.$ac_ext >&5
2894 else 2914 else
2895 doug_lea_malloc=no 2915 doug_lea_malloc=no
2896 fi 2916 fi
2897 after_morecore_hook_exists=yes 2917 after_morecore_hook_exists=yes
2898 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2918 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2899 echo "configure:2900: checking for malloc_get_state" >&5 2919 echo "configure:2920: checking for malloc_get_state" >&5
2900 2920
2901 cat > conftest.$ac_ext <<EOF 2921 cat > conftest.$ac_ext <<EOF
2902 #line 2903 "configure" 2922 #line 2923 "configure"
2903 #include "confdefs.h" 2923 #include "confdefs.h"
2904 /* System header to define __stub macros and hopefully few prototypes, 2924 /* System header to define __stub macros and hopefully few prototypes,
2905 which can conflict with char malloc_get_state(); below. */ 2925 which can conflict with char malloc_get_state(); below. */
2906 #include <assert.h> 2926 #include <assert.h>
2907 /* Override any gcc2 internal prototype to avoid an error. */ 2927 /* Override any gcc2 internal prototype to avoid an error. */
2920 malloc_get_state(); 2940 malloc_get_state();
2921 #endif 2941 #endif
2922 2942
2923 ; return 0; } 2943 ; return 0; }
2924 EOF 2944 EOF
2925 if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2945 if { (eval echo configure:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2926 rm -rf conftest* 2946 rm -rf conftest*
2927 eval "ac_cv_func_malloc_get_state=yes" 2947 eval "ac_cv_func_malloc_get_state=yes"
2928 else 2948 else
2929 echo "configure: failed program was:" >&5 2949 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5 2950 cat conftest.$ac_ext >&5
2940 echo "$ac_t""no" 1>&6 2960 echo "$ac_t""no" 1>&6
2941 doug_lea_malloc=no 2961 doug_lea_malloc=no
2942 fi 2962 fi
2943 2963
2944 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2964 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2945 echo "configure:2946: checking for malloc_set_state" >&5 2965 echo "configure:2966: checking for malloc_set_state" >&5
2946 2966
2947 cat > conftest.$ac_ext <<EOF 2967 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure" 2968 #line 2969 "configure"
2949 #include "confdefs.h" 2969 #include "confdefs.h"
2950 /* System header to define __stub macros and hopefully few prototypes, 2970 /* System header to define __stub macros and hopefully few prototypes,
2951 which can conflict with char malloc_set_state(); below. */ 2971 which can conflict with char malloc_set_state(); below. */
2952 #include <assert.h> 2972 #include <assert.h>
2953 /* Override any gcc2 internal prototype to avoid an error. */ 2973 /* Override any gcc2 internal prototype to avoid an error. */
2966 malloc_set_state(); 2986 malloc_set_state();
2967 #endif 2987 #endif
2968 2988
2969 ; return 0; } 2989 ; return 0; }
2970 EOF 2990 EOF
2971 if { (eval echo configure:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2991 if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2972 rm -rf conftest* 2992 rm -rf conftest*
2973 eval "ac_cv_func_malloc_set_state=yes" 2993 eval "ac_cv_func_malloc_set_state=yes"
2974 else 2994 else
2975 echo "configure: failed program was:" >&5 2995 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5 2996 cat conftest.$ac_ext >&5
2986 echo "$ac_t""no" 1>&6 3006 echo "$ac_t""no" 1>&6
2987 doug_lea_malloc=no 3007 doug_lea_malloc=no
2988 fi 3008 fi
2989 3009
2990 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3010 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2991 echo "configure:2992: checking whether __after_morecore_hook exists" >&5 3011 echo "configure:3012: checking whether __after_morecore_hook exists" >&5
2992 cat > conftest.$ac_ext <<EOF 3012 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure" 3013 #line 3014 "configure"
2994 #include "confdefs.h" 3014 #include "confdefs.h"
2995 extern void (* __after_morecore_hook)(); 3015 extern void (* __after_morecore_hook)();
2996 int main() { 3016 int main() {
2997 __after_morecore_hook = 0 3017 __after_morecore_hook = 0
2998 ; return 0; } 3018 ; return 0; }
2999 EOF 3019 EOF
3000 if { (eval echo configure:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3020 if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3001 rm -rf conftest* 3021 rm -rf conftest*
3002 echo "$ac_t""yes" 1>&6 3022 echo "$ac_t""yes" 1>&6
3003 else 3023 else
3004 echo "configure: failed program was:" >&5 3024 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5 3025 cat conftest.$ac_ext >&5
3054 3074
3055 3075
3056 # Extract the first word of "ranlib", so it can be a program name with args. 3076 # Extract the first word of "ranlib", so it can be a program name with args.
3057 set dummy ranlib; ac_word=$2 3077 set dummy ranlib; ac_word=$2
3058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3059 echo "configure:3060: checking for $ac_word" >&5 3079 echo "configure:3080: checking for $ac_word" >&5
3060 3080
3061 if test -n "$RANLIB"; then 3081 if test -n "$RANLIB"; then
3062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3063 else 3083 else
3064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3129 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3112 # ./install, which can be erroneously created by make from ./install.sh. 3132 # ./install, which can be erroneously created by make from ./install.sh.
3113 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3133 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3114 echo "configure:3115: checking for a BSD compatible install" >&5 3134 echo "configure:3135: checking for a BSD compatible install" >&5
3115 if test -z "$INSTALL"; then 3135 if test -z "$INSTALL"; then
3116 3136
3117 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3137 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3118 for ac_dir in $PATH; do 3138 for ac_dir in $PATH; do
3119 # Account for people who put trailing slashes in PATH elements. 3139 # Account for people who put trailing slashes in PATH elements.
3163 for ac_prog in 'bison -y' byacc 3183 for ac_prog in 'bison -y' byacc
3164 do 3184 do
3165 # Extract the first word of "$ac_prog", so it can be a program name with args. 3185 # Extract the first word of "$ac_prog", so it can be a program name with args.
3166 set dummy $ac_prog; ac_word=$2 3186 set dummy $ac_prog; ac_word=$2
3167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3168 echo "configure:3169: checking for $ac_word" >&5 3188 echo "configure:3189: checking for $ac_word" >&5
3169 3189
3170 if test -n "$YACC"; then 3190 if test -n "$YACC"; then
3171 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3191 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3172 else 3192 else
3173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3195 3215
3196 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 3216 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3197 do 3217 do
3198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3200 echo "configure:3201: checking for $ac_hdr" >&5 3220 echo "configure:3221: checking for $ac_hdr" >&5
3201 3221
3202 cat > conftest.$ac_ext <<EOF 3222 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure" 3223 #line 3224 "configure"
3204 #include "confdefs.h" 3224 #include "confdefs.h"
3205 #include <$ac_hdr> 3225 #include <$ac_hdr>
3206 EOF 3226 EOF
3207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3208 { (eval echo configure:3209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3228 { (eval echo configure:3229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3210 if test -z "$ac_err"; then 3230 if test -z "$ac_err"; then
3211 rm -rf conftest* 3231 rm -rf conftest*
3212 eval "ac_cv_header_$ac_safe=yes" 3232 eval "ac_cv_header_$ac_safe=yes"
3213 else 3233 else
3236 3256
3237 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h 3257 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3238 do 3258 do
3239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_hdr" >&5 3261 echo "configure:3262: checking for $ac_hdr" >&5
3242 3262
3243 cat > conftest.$ac_ext <<EOF 3263 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure" 3264 #line 3265 "configure"
3245 #include "confdefs.h" 3265 #include "confdefs.h"
3246 #include <$ac_hdr> 3266 #include <$ac_hdr>
3247 EOF 3267 EOF
3248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3249 { (eval echo configure:3250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3269 { (eval echo configure:3270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3251 if test -z "$ac_err"; then 3271 if test -z "$ac_err"; then
3252 rm -rf conftest* 3272 rm -rf conftest*
3253 eval "ac_cv_header_$ac_safe=yes" 3273 eval "ac_cv_header_$ac_safe=yes"
3254 else 3274 else
3277 3297
3278 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 3298 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3279 do 3299 do
3280 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3281 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3282 echo "configure:3283: checking for $ac_hdr" >&5 3302 echo "configure:3303: checking for $ac_hdr" >&5
3283 3303
3284 cat > conftest.$ac_ext <<EOF 3304 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure" 3305 #line 3306 "configure"
3286 #include "confdefs.h" 3306 #include "confdefs.h"
3287 #include <$ac_hdr> 3307 #include <$ac_hdr>
3288 EOF 3308 EOF
3289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3290 { (eval echo configure:3291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3310 { (eval echo configure:3311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3292 if test -z "$ac_err"; then 3312 if test -z "$ac_err"; then
3293 rm -rf conftest* 3313 rm -rf conftest*
3294 eval "ac_cv_header_$ac_safe=yes" 3314 eval "ac_cv_header_$ac_safe=yes"
3295 else 3315 else
3315 echo "$ac_t""no" 1>&6 3335 echo "$ac_t""no" 1>&6
3316 fi 3336 fi
3317 done 3337 done
3318 3338
3319 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3339 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3320 echo "configure:3321: checking for sys/wait.h that is POSIX.1 compatible" >&5 3340 echo "configure:3341: checking for sys/wait.h that is POSIX.1 compatible" >&5
3321 3341
3322 cat > conftest.$ac_ext <<EOF 3342 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure" 3343 #line 3344 "configure"
3324 #include "confdefs.h" 3344 #include "confdefs.h"
3325 #include <sys/types.h> 3345 #include <sys/types.h>
3326 #include <sys/wait.h> 3346 #include <sys/wait.h>
3327 #ifndef WEXITSTATUS 3347 #ifndef WEXITSTATUS
3328 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3348 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3334 int s; 3354 int s;
3335 wait (&s); 3355 wait (&s);
3336 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3356 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3337 ; return 0; } 3357 ; return 0; }
3338 EOF 3358 EOF
3339 if { (eval echo configure:3340: \"$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
3340 rm -rf conftest* 3360 rm -rf conftest*
3341 ac_cv_header_sys_wait_h=yes 3361 ac_cv_header_sys_wait_h=yes
3342 else 3362 else
3343 echo "configure: failed program was:" >&5 3363 echo "configure: failed program was:" >&5
3344 cat conftest.$ac_ext >&5 3364 cat conftest.$ac_ext >&5
3358 } 3378 }
3359 3379
3360 fi 3380 fi
3361 3381
3362 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3382 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3363 echo "configure:3364: checking for ANSI C header files" >&5 3383 echo "configure:3384: checking for ANSI C header files" >&5
3364 3384
3365 cat > conftest.$ac_ext <<EOF 3385 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure" 3386 #line 3387 "configure"
3367 #include "confdefs.h" 3387 #include "confdefs.h"
3368 #include <stdlib.h> 3388 #include <stdlib.h>
3369 #include <stdarg.h> 3389 #include <stdarg.h>
3370 #include <string.h> 3390 #include <string.h>
3371 #include <float.h> 3391 #include <float.h>
3372 EOF 3392 EOF
3373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3374 { (eval echo configure:3375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3394 { (eval echo configure:3395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3376 if test -z "$ac_err"; then 3396 if test -z "$ac_err"; then
3377 rm -rf conftest* 3397 rm -rf conftest*
3378 ac_cv_header_stdc=yes 3398 ac_cv_header_stdc=yes
3379 else 3399 else
3386 rm -f conftest* 3406 rm -f conftest*
3387 3407
3388 if test $ac_cv_header_stdc = yes; then 3408 if test $ac_cv_header_stdc = yes; then
3389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3390 cat > conftest.$ac_ext <<EOF 3410 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure" 3411 #line 3412 "configure"
3392 #include "confdefs.h" 3412 #include "confdefs.h"
3393 #include <string.h> 3413 #include <string.h>
3394 EOF 3414 EOF
3395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3396 egrep "memchr" >/dev/null 2>&1; then 3416 egrep "memchr" >/dev/null 2>&1; then
3404 fi 3424 fi
3405 3425
3406 if test $ac_cv_header_stdc = yes; then 3426 if test $ac_cv_header_stdc = yes; then
3407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3408 cat > conftest.$ac_ext <<EOF 3428 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure" 3429 #line 3430 "configure"
3410 #include "confdefs.h" 3430 #include "confdefs.h"
3411 #include <stdlib.h> 3431 #include <stdlib.h>
3412 EOF 3432 EOF
3413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414 egrep "free" >/dev/null 2>&1; then 3434 egrep "free" >/dev/null 2>&1; then
3422 fi 3442 fi
3423 3443
3424 if test $ac_cv_header_stdc = yes; then 3444 if test $ac_cv_header_stdc = yes; then
3425 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3426 cat > conftest.$ac_ext <<EOF 3446 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure" 3447 #line 3448 "configure"
3428 #include "confdefs.h" 3448 #include "confdefs.h"
3429 #include <ctype.h> 3449 #include <ctype.h>
3430 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3450 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3431 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3451 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3432 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3433 int main () { int i; for (i = 0; i < 256; i++) 3453 int main () { int i; for (i = 0; i < 256; i++)
3434 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3454 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3435 exit (0); } 3455 exit (0); }
3436 3456
3437 EOF 3457 EOF
3438 if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3458 if { (eval echo configure:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3439 then 3459 then
3440 : 3460 :
3441 else 3461 else
3442 conftest_rc="$?" 3462 conftest_rc="$?"
3443 echo "configure: failed program was:" >&5 3463 echo "configure: failed program was:" >&5
3459 } 3479 }
3460 3480
3461 fi 3481 fi
3462 3482
3463 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3483 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3464 echo "configure:3465: checking whether time.h and sys/time.h may both be included" >&5 3484 echo "configure:3485: checking whether time.h and sys/time.h may both be included" >&5
3465 3485
3466 cat > conftest.$ac_ext <<EOF 3486 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure" 3487 #line 3488 "configure"
3468 #include "confdefs.h" 3488 #include "confdefs.h"
3469 #include <sys/types.h> 3489 #include <sys/types.h>
3470 #include <sys/time.h> 3490 #include <sys/time.h>
3471 #include <time.h> 3491 #include <time.h>
3472 int main() { 3492 int main() {
3473 struct tm *tp; 3493 struct tm *tp;
3474 ; return 0; } 3494 ; return 0; }
3475 EOF 3495 EOF
3476 if { (eval echo configure:3477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3496 if { (eval echo configure:3497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 rm -rf conftest* 3497 rm -rf conftest*
3478 ac_cv_header_time=yes 3498 ac_cv_header_time=yes
3479 else 3499 else
3480 echo "configure: failed program was:" >&5 3500 echo "configure: failed program was:" >&5
3481 cat conftest.$ac_ext >&5 3501 cat conftest.$ac_ext >&5
3495 } 3515 }
3496 3516
3497 fi 3517 fi
3498 3518
3499 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3519 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3500 echo "configure:3501: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3520 echo "configure:3521: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3501 3521
3502 cat > conftest.$ac_ext <<EOF 3522 cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure" 3523 #line 3524 "configure"
3504 #include "confdefs.h" 3524 #include "confdefs.h"
3505 #include <sys/types.h> 3525 #include <sys/types.h>
3506 #include <signal.h> 3526 #include <signal.h>
3507 /* NetBSD declares sys_siglist in unistd.h. */ 3527 /* NetBSD declares sys_siglist in unistd.h. */
3508 #ifdef HAVE_UNISTD_H 3528 #ifdef HAVE_UNISTD_H
3510 #endif 3530 #endif
3511 int main() { 3531 int main() {
3512 char *msg = *(sys_siglist + 1); 3532 char *msg = *(sys_siglist + 1);
3513 ; return 0; } 3533 ; return 0; }
3514 EOF 3534 EOF
3515 if { (eval echo configure:3516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3535 if { (eval echo configure:3536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3516 rm -rf conftest* 3536 rm -rf conftest*
3517 ac_cv_decl_sys_siglist=yes 3537 ac_cv_decl_sys_siglist=yes
3518 else 3538 else
3519 echo "configure: failed program was:" >&5 3539 echo "configure: failed program was:" >&5
3520 cat conftest.$ac_ext >&5 3540 cat conftest.$ac_ext >&5
3535 3555
3536 fi 3556 fi
3537 3557
3538 3558
3539 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3559 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3540 echo "configure:3541: checking for struct utimbuf" >&5 3560 echo "configure:3561: checking for struct utimbuf" >&5
3541 cat > conftest.$ac_ext <<EOF 3561 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure" 3562 #line 3563 "configure"
3543 #include "confdefs.h" 3563 #include "confdefs.h"
3544 #ifdef TIME_WITH_SYS_TIME 3564 #ifdef TIME_WITH_SYS_TIME
3545 #include <sys/time.h> 3565 #include <sys/time.h>
3546 #include <time.h> 3566 #include <time.h>
3547 #else 3567 #else
3556 #endif 3576 #endif
3557 int main() { 3577 int main() {
3558 static struct utimbuf x; x.actime = x.modtime; 3578 static struct utimbuf x; x.actime = x.modtime;
3559 ; return 0; } 3579 ; return 0; }
3560 EOF 3580 EOF
3561 if { (eval echo configure:3562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3581 if { (eval echo configure:3582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3562 rm -rf conftest* 3582 rm -rf conftest*
3563 echo "$ac_t""yes" 1>&6 3583 echo "$ac_t""yes" 1>&6
3564 { test "$extra_verbose" = "yes" && cat << \EOF 3584 { test "$extra_verbose" = "yes" && cat << \EOF
3565 Defining HAVE_STRUCT_UTIMBUF 3585 Defining HAVE_STRUCT_UTIMBUF
3566 EOF 3586 EOF
3576 echo "$ac_t""no" 1>&6 3596 echo "$ac_t""no" 1>&6
3577 fi 3597 fi
3578 rm -f conftest* 3598 rm -f conftest*
3579 3599
3580 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3600 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3581 echo "configure:3582: checking return type of signal handlers" >&5 3601 echo "configure:3602: checking return type of signal handlers" >&5
3582 3602
3583 cat > conftest.$ac_ext <<EOF 3603 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure" 3604 #line 3605 "configure"
3585 #include "confdefs.h" 3605 #include "confdefs.h"
3586 #include <sys/types.h> 3606 #include <sys/types.h>
3587 #include <signal.h> 3607 #include <signal.h>
3588 #ifdef signal 3608 #ifdef signal
3589 #undef signal 3609 #undef signal
3596 3616
3597 int main() { 3617 int main() {
3598 int i; 3618 int i;
3599 ; return 0; } 3619 ; return 0; }
3600 EOF 3620 EOF
3601 if { (eval echo configure:3602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3621 if { (eval echo configure:3622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3602 rm -rf conftest* 3622 rm -rf conftest*
3603 ac_cv_type_signal=void 3623 ac_cv_type_signal=void
3604 else 3624 else
3605 echo "configure: failed program was:" >&5 3625 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5 3626 cat conftest.$ac_ext >&5
3618 EOF 3638 EOF
3619 } 3639 }
3620 3640
3621 3641
3622 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3642 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3623 echo "configure:3624: checking for size_t" >&5 3643 echo "configure:3644: checking for size_t" >&5
3624 3644
3625 cat > conftest.$ac_ext <<EOF 3645 cat > conftest.$ac_ext <<EOF
3626 #line 3627 "configure" 3646 #line 3647 "configure"
3627 #include "confdefs.h" 3647 #include "confdefs.h"
3628 #include <sys/types.h> 3648 #include <sys/types.h>
3629 #if STDC_HEADERS 3649 #if STDC_HEADERS
3630 #include <stdlib.h> 3650 #include <stdlib.h>
3631 #include <stddef.h> 3651 #include <stddef.h>
3652 } 3672 }
3653 3673
3654 fi 3674 fi
3655 3675
3656 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3676 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3657 echo "configure:3658: checking for pid_t" >&5 3677 echo "configure:3678: checking for pid_t" >&5
3658 3678
3659 cat > conftest.$ac_ext <<EOF 3679 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure" 3680 #line 3681 "configure"
3661 #include "confdefs.h" 3681 #include "confdefs.h"
3662 #include <sys/types.h> 3682 #include <sys/types.h>
3663 #if STDC_HEADERS 3683 #if STDC_HEADERS
3664 #include <stdlib.h> 3684 #include <stdlib.h>
3665 #include <stddef.h> 3685 #include <stddef.h>
3686 } 3706 }
3687 3707
3688 fi 3708 fi
3689 3709
3690 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3710 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3691 echo "configure:3692: checking for uid_t in sys/types.h" >&5 3711 echo "configure:3712: checking for uid_t in sys/types.h" >&5
3692 3712
3693 cat > conftest.$ac_ext <<EOF 3713 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure" 3714 #line 3715 "configure"
3695 #include "confdefs.h" 3715 #include "confdefs.h"
3696 #include <sys/types.h> 3716 #include <sys/types.h>
3697 EOF 3717 EOF
3698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699 egrep "uid_t" >/dev/null 2>&1; then 3719 egrep "uid_t" >/dev/null 2>&1; then
3725 } 3745 }
3726 3746
3727 fi 3747 fi
3728 3748
3729 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3749 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3730 echo "configure:3731: checking for mode_t" >&5 3750 echo "configure:3751: checking for mode_t" >&5
3731 3751
3732 cat > conftest.$ac_ext <<EOF 3752 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure" 3753 #line 3754 "configure"
3734 #include "confdefs.h" 3754 #include "confdefs.h"
3735 #include <sys/types.h> 3755 #include <sys/types.h>
3736 #if STDC_HEADERS 3756 #if STDC_HEADERS
3737 #include <stdlib.h> 3757 #include <stdlib.h>
3738 #include <stddef.h> 3758 #include <stddef.h>
3759 } 3779 }
3760 3780
3761 fi 3781 fi
3762 3782
3763 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3783 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3764 echo "configure:3765: checking for off_t" >&5 3784 echo "configure:3785: checking for off_t" >&5
3765 3785
3766 cat > conftest.$ac_ext <<EOF 3786 cat > conftest.$ac_ext <<EOF
3767 #line 3768 "configure" 3787 #line 3788 "configure"
3768 #include "confdefs.h" 3788 #include "confdefs.h"
3769 #include <sys/types.h> 3789 #include <sys/types.h>
3770 #if STDC_HEADERS 3790 #if STDC_HEADERS
3771 #include <stdlib.h> 3791 #include <stdlib.h>
3772 #include <stddef.h> 3792 #include <stddef.h>
3792 EOF 3812 EOF
3793 } 3813 }
3794 3814
3795 fi 3815 fi
3796 3816
3817 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3818 echo "configure:3819: checking for ssize_t" >&5
3819
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 #include <sys/types.h>
3824 #if STDC_HEADERS
3825 #include <stdlib.h>
3826 #include <stddef.h>
3827 #endif
3828 EOF
3829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3831 rm -rf conftest*
3832 ac_cv_type_ssize_t=yes
3833 else
3834 rm -rf conftest*
3835 ac_cv_type_ssize_t=no
3836 fi
3837 rm -f conftest*
3838
3839 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3840 if test $ac_cv_type_ssize_t = no; then
3841 { test "$extra_verbose" = "yes" && cat << \EOF
3842 Defining ssize_t = int
3843 EOF
3844 cat >> confdefs.h <<\EOF
3845 #define ssize_t int
3846 EOF
3847 }
3848
3849 fi
3850
3797 3851
3798 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3852 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3799 echo "configure:3800: checking for struct timeval" >&5 3853 echo "configure:3854: checking for struct timeval" >&5
3800 cat > conftest.$ac_ext <<EOF 3854 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure" 3855 #line 3856 "configure"
3802 #include "confdefs.h" 3856 #include "confdefs.h"
3803 #ifdef TIME_WITH_SYS_TIME 3857 #ifdef TIME_WITH_SYS_TIME
3804 #include <sys/time.h> 3858 #include <sys/time.h>
3805 #include <time.h> 3859 #include <time.h>
3806 #else 3860 #else
3812 #endif 3866 #endif
3813 int main() { 3867 int main() {
3814 static struct timeval x; x.tv_sec = x.tv_usec; 3868 static struct timeval x; x.tv_sec = x.tv_usec;
3815 ; return 0; } 3869 ; return 0; }
3816 EOF 3870 EOF
3817 if { (eval echo configure:3818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3871 if { (eval echo configure:3872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3818 rm -rf conftest* 3872 rm -rf conftest*
3819 echo "$ac_t""yes" 1>&6 3873 echo "$ac_t""yes" 1>&6
3820 HAVE_TIMEVAL=yes 3874 HAVE_TIMEVAL=yes
3821 { test "$extra_verbose" = "yes" && cat << \EOF 3875 { test "$extra_verbose" = "yes" && cat << \EOF
3822 Defining HAVE_TIMEVAL 3876 Defining HAVE_TIMEVAL
3834 HAVE_TIMEVAL=no 3888 HAVE_TIMEVAL=no
3835 fi 3889 fi
3836 rm -f conftest* 3890 rm -f conftest*
3837 3891
3838 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3892 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3839 echo "configure:3840: checking whether struct tm is in sys/time.h or time.h" >&5 3893 echo "configure:3894: checking whether struct tm is in sys/time.h or time.h" >&5
3840 3894
3841 cat > conftest.$ac_ext <<EOF 3895 cat > conftest.$ac_ext <<EOF
3842 #line 3843 "configure" 3896 #line 3897 "configure"
3843 #include "confdefs.h" 3897 #include "confdefs.h"
3844 #include <sys/types.h> 3898 #include <sys/types.h>
3845 #include <time.h> 3899 #include <time.h>
3846 int main() { 3900 int main() {
3847 struct tm *tp; tp->tm_sec; 3901 struct tm *tp; tp->tm_sec;
3848 ; return 0; } 3902 ; return 0; }
3849 EOF 3903 EOF
3850 if { (eval echo configure:3851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3904 if { (eval echo configure:3905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3851 rm -rf conftest* 3905 rm -rf conftest*
3852 ac_cv_struct_tm=time.h 3906 ac_cv_struct_tm=time.h
3853 else 3907 else
3854 echo "configure: failed program was:" >&5 3908 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5 3909 cat conftest.$ac_ext >&5
3869 } 3923 }
3870 3924
3871 fi 3925 fi
3872 3926
3873 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3927 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3874 echo "configure:3875: checking for tm_zone in struct tm" >&5 3928 echo "configure:3929: checking for tm_zone in struct tm" >&5
3875 3929
3876 cat > conftest.$ac_ext <<EOF 3930 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure" 3931 #line 3932 "configure"
3878 #include "confdefs.h" 3932 #include "confdefs.h"
3879 #include <sys/types.h> 3933 #include <sys/types.h>
3880 #include <$ac_cv_struct_tm> 3934 #include <$ac_cv_struct_tm>
3881 int main() { 3935 int main() {
3882 struct tm tm; tm.tm_zone; 3936 struct tm tm; tm.tm_zone;
3883 ; return 0; } 3937 ; return 0; }
3884 EOF 3938 EOF
3885 if { (eval echo configure:3886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3939 if { (eval echo configure:3940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3886 rm -rf conftest* 3940 rm -rf conftest*
3887 ac_cv_struct_tm_zone=yes 3941 ac_cv_struct_tm_zone=yes
3888 else 3942 else
3889 echo "configure: failed program was:" >&5 3943 echo "configure: failed program was:" >&5
3890 cat conftest.$ac_ext >&5 3944 cat conftest.$ac_ext >&5
3903 EOF 3957 EOF
3904 } 3958 }
3905 3959
3906 else 3960 else
3907 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3961 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3908 echo "configure:3909: checking for tzname" >&5 3962 echo "configure:3963: checking for tzname" >&5
3909 3963
3910 cat > conftest.$ac_ext <<EOF 3964 cat > conftest.$ac_ext <<EOF
3911 #line 3912 "configure" 3965 #line 3966 "configure"
3912 #include "confdefs.h" 3966 #include "confdefs.h"
3913 #include <time.h> 3967 #include <time.h>
3914 #ifndef tzname /* For SGI. */ 3968 #ifndef tzname /* For SGI. */
3915 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3969 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3916 #endif 3970 #endif
3917 int main() { 3971 int main() {
3918 atoi(*tzname); 3972 atoi(*tzname);
3919 ; return 0; } 3973 ; return 0; }
3920 EOF 3974 EOF
3921 if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3975 if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3922 rm -rf conftest* 3976 rm -rf conftest*
3923 ac_cv_var_tzname=yes 3977 ac_cv_var_tzname=yes
3924 else 3978 else
3925 echo "configure: failed program was:" >&5 3979 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5 3980 cat conftest.$ac_ext >&5
3942 fi 3996 fi
3943 fi 3997 fi
3944 3998
3945 3999
3946 echo $ac_n "checking for working const""... $ac_c" 1>&6 4000 echo $ac_n "checking for working const""... $ac_c" 1>&6
3947 echo "configure:3948: checking for working const" >&5 4001 echo "configure:4002: checking for working const" >&5
3948 4002
3949 cat > conftest.$ac_ext <<EOF 4003 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure" 4004 #line 4005 "configure"
3951 #include "confdefs.h" 4005 #include "confdefs.h"
3952 4006
3953 int main() { 4007 int main() {
3954 4008
3955 /* Ultrix mips cc rejects this. */ 4009 /* Ultrix mips cc rejects this. */
3994 const int foo = 10; 4048 const int foo = 10;
3995 } 4049 }
3996 4050
3997 ; return 0; } 4051 ; return 0; }
3998 EOF 4052 EOF
3999 if { (eval echo configure:4000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4053 if { (eval echo configure:4054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4000 rm -rf conftest* 4054 rm -rf conftest*
4001 ac_cv_c_const=yes 4055 ac_cv_c_const=yes
4002 else 4056 else
4003 echo "configure: failed program was:" >&5 4057 echo "configure: failed program was:" >&5
4004 cat conftest.$ac_ext >&5 4058 cat conftest.$ac_ext >&5
4019 4073
4020 fi 4074 fi
4021 4075
4022 4076
4023 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4077 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4024 echo "configure:4025: checking whether ${MAKE-make} sets \${MAKE}" >&5 4078 echo "configure:4079: checking whether ${MAKE-make} sets \${MAKE}" >&5
4025 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4079 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4026 4080
4027 cat > conftestmake <<\EOF 4081 cat > conftestmake <<\EOF
4028 all: 4082 all:
4029 @echo 'ac_maketemp="${MAKE}"' 4083 @echo 'ac_maketemp="${MAKE}"'
4044 SET_MAKE="MAKE=${MAKE-make}" 4098 SET_MAKE="MAKE=${MAKE-make}"
4045 fi 4099 fi
4046 4100
4047 4101
4048 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4102 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4049 echo "configure:4050: checking whether byte ordering is bigendian" >&5 4103 echo "configure:4104: checking whether byte ordering is bigendian" >&5
4050 4104
4051 ac_cv_c_bigendian=unknown 4105 ac_cv_c_bigendian=unknown
4052 # See if sys/param.h defines the BYTE_ORDER macro. 4106 # See if sys/param.h defines the BYTE_ORDER macro.
4053 cat > conftest.$ac_ext <<EOF 4107 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure" 4108 #line 4109 "configure"
4055 #include "confdefs.h" 4109 #include "confdefs.h"
4056 #include <sys/types.h> 4110 #include <sys/types.h>
4057 #include <sys/param.h> 4111 #include <sys/param.h>
4058 int main() { 4112 int main() {
4059 4113
4060 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4114 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4061 bogus endian macros 4115 bogus endian macros
4062 #endif 4116 #endif
4063 ; return 0; } 4117 ; return 0; }
4064 EOF 4118 EOF
4065 if { (eval echo configure:4066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4119 if { (eval echo configure:4120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4066 rm -rf conftest* 4120 rm -rf conftest*
4067 # It does; now see whether it defined to BIG_ENDIAN or not. 4121 # It does; now see whether it defined to BIG_ENDIAN or not.
4068 cat > conftest.$ac_ext <<EOF 4122 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure" 4123 #line 4124 "configure"
4070 #include "confdefs.h" 4124 #include "confdefs.h"
4071 #include <sys/types.h> 4125 #include <sys/types.h>
4072 #include <sys/param.h> 4126 #include <sys/param.h>
4073 int main() { 4127 int main() {
4074 4128
4075 #if BYTE_ORDER != BIG_ENDIAN 4129 #if BYTE_ORDER != BIG_ENDIAN
4076 not big endian 4130 not big endian
4077 #endif 4131 #endif
4078 ; return 0; } 4132 ; return 0; }
4079 EOF 4133 EOF
4080 if { (eval echo configure:4081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4134 if { (eval echo configure:4135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4081 rm -rf conftest* 4135 rm -rf conftest*
4082 ac_cv_c_bigendian=yes 4136 ac_cv_c_bigendian=yes
4083 else 4137 else
4084 echo "configure: failed program was:" >&5 4138 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5 4139 cat conftest.$ac_ext >&5
4092 cat conftest.$ac_ext >&5 4146 cat conftest.$ac_ext >&5
4093 fi 4147 fi
4094 rm -f conftest* 4148 rm -f conftest*
4095 if test $ac_cv_c_bigendian = unknown; then 4149 if test $ac_cv_c_bigendian = unknown; then
4096 cat > conftest.$ac_ext <<EOF 4150 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure" 4151 #line 4152 "configure"
4098 #include "confdefs.h" 4152 #include "confdefs.h"
4099 main () { 4153 main () {
4100 /* Are we little or big endian? From Harbison&Steele. */ 4154 /* Are we little or big endian? From Harbison&Steele. */
4101 union 4155 union
4102 { 4156 {
4105 } u; 4159 } u;
4106 u.l = 1; 4160 u.l = 1;
4107 exit (u.c[sizeof (long) - 1] == 1); 4161 exit (u.c[sizeof (long) - 1] == 1);
4108 } 4162 }
4109 EOF 4163 EOF
4110 if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4164 if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4111 then 4165 then
4112 ac_cv_c_bigendian=no 4166 ac_cv_c_bigendian=no
4113 else 4167 else
4114 conftest_rc="$?" 4168 conftest_rc="$?"
4115 echo "configure: failed program was:" >&5 4169 echo "configure: failed program was:" >&5
4132 4186
4133 fi 4187 fi
4134 4188
4135 4189
4136 echo $ac_n "checking size of short""... $ac_c" 1>&6 4190 echo $ac_n "checking size of short""... $ac_c" 1>&6
4137 echo "configure:4138: checking size of short" >&5 4191 echo "configure:4192: checking size of short" >&5
4138 4192
4139 cat > conftest.$ac_ext <<EOF 4193 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure" 4194 #line 4195 "configure"
4141 #include "confdefs.h" 4195 #include "confdefs.h"
4142 #include <stdio.h> 4196 #include <stdio.h>
4143 main() 4197 main()
4144 { 4198 {
4145 FILE *f=fopen("conftestval", "w"); 4199 FILE *f=fopen("conftestval", "w");
4146 if (!f) exit(1); 4200 if (!f) exit(1);
4147 fprintf(f, "%d\n", sizeof(short)); 4201 fprintf(f, "%d\n", sizeof(short));
4148 exit(0); 4202 exit(0);
4149 } 4203 }
4150 EOF 4204 EOF
4151 if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4205 if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4152 then 4206 then
4153 ac_cv_sizeof_short=`cat conftestval` 4207 ac_cv_sizeof_short=`cat conftestval`
4154 else 4208 else
4155 conftest_rc="$?" 4209 conftest_rc="$?"
4156 echo "configure: failed program was:" >&5 4210 echo "configure: failed program was:" >&5
4174 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4228 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4175 echo "*** PANIC *** Please examine config.log for compilation errors." 4229 echo "*** PANIC *** Please examine config.log for compilation errors."
4176 exit 1 4230 exit 1
4177 fi 4231 fi
4178 echo $ac_n "checking size of int""... $ac_c" 1>&6 4232 echo $ac_n "checking size of int""... $ac_c" 1>&6
4179 echo "configure:4180: checking size of int" >&5 4233 echo "configure:4234: checking size of int" >&5
4180 4234
4181 cat > conftest.$ac_ext <<EOF 4235 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure" 4236 #line 4237 "configure"
4183 #include "confdefs.h" 4237 #include "confdefs.h"
4184 #include <stdio.h> 4238 #include <stdio.h>
4185 main() 4239 main()
4186 { 4240 {
4187 FILE *f=fopen("conftestval", "w"); 4241 FILE *f=fopen("conftestval", "w");
4188 if (!f) exit(1); 4242 if (!f) exit(1);
4189 fprintf(f, "%d\n", sizeof(int)); 4243 fprintf(f, "%d\n", sizeof(int));
4190 exit(0); 4244 exit(0);
4191 } 4245 }
4192 EOF 4246 EOF
4193 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4247 if { (eval echo configure:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4194 then 4248 then
4195 ac_cv_sizeof_int=`cat conftestval` 4249 ac_cv_sizeof_int=`cat conftestval`
4196 else 4250 else
4197 conftest_rc="$?" 4251 conftest_rc="$?"
4198 echo "configure: failed program was:" >&5 4252 echo "configure: failed program was:" >&5
4210 EOF 4264 EOF
4211 } 4265 }
4212 4266
4213 4267
4214 echo $ac_n "checking size of long""... $ac_c" 1>&6 4268 echo $ac_n "checking size of long""... $ac_c" 1>&6
4215 echo "configure:4216: checking size of long" >&5 4269 echo "configure:4270: checking size of long" >&5
4216 4270
4217 cat > conftest.$ac_ext <<EOF 4271 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure" 4272 #line 4273 "configure"
4219 #include "confdefs.h" 4273 #include "confdefs.h"
4220 #include <stdio.h> 4274 #include <stdio.h>
4221 main() 4275 main()
4222 { 4276 {
4223 FILE *f=fopen("conftestval", "w"); 4277 FILE *f=fopen("conftestval", "w");
4224 if (!f) exit(1); 4278 if (!f) exit(1);
4225 fprintf(f, "%d\n", sizeof(long)); 4279 fprintf(f, "%d\n", sizeof(long));
4226 exit(0); 4280 exit(0);
4227 } 4281 }
4228 EOF 4282 EOF
4229 if { (eval echo configure:4230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4283 if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4230 then 4284 then
4231 ac_cv_sizeof_long=`cat conftestval` 4285 ac_cv_sizeof_long=`cat conftestval`
4232 else 4286 else
4233 conftest_rc="$?" 4287 conftest_rc="$?"
4234 echo "configure: failed program was:" >&5 4288 echo "configure: failed program was:" >&5
4246 EOF 4300 EOF
4247 } 4301 }
4248 4302
4249 4303
4250 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4304 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4251 echo "configure:4252: checking size of long long" >&5 4305 echo "configure:4306: checking size of long long" >&5
4252 4306
4253 cat > conftest.$ac_ext <<EOF 4307 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure" 4308 #line 4309 "configure"
4255 #include "confdefs.h" 4309 #include "confdefs.h"
4256 #include <stdio.h> 4310 #include <stdio.h>
4257 main() 4311 main()
4258 { 4312 {
4259 FILE *f=fopen("conftestval", "w"); 4313 FILE *f=fopen("conftestval", "w");
4260 if (!f) exit(1); 4314 if (!f) exit(1);
4261 fprintf(f, "%d\n", sizeof(long long)); 4315 fprintf(f, "%d\n", sizeof(long long));
4262 exit(0); 4316 exit(0);
4263 } 4317 }
4264 EOF 4318 EOF
4265 if { (eval echo configure:4266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4266 then 4320 then
4267 ac_cv_sizeof_long_long=`cat conftestval` 4321 ac_cv_sizeof_long_long=`cat conftestval`
4268 else 4322 else
4269 conftest_rc="$?" 4323 conftest_rc="$?"
4270 echo "configure: failed program was:" >&5 4324 echo "configure: failed program was:" >&5
4282 EOF 4336 EOF
4283 } 4337 }
4284 4338
4285 4339
4286 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4340 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4287 echo "configure:4288: checking size of void *" >&5 4341 echo "configure:4342: checking size of void *" >&5
4288 4342
4289 cat > conftest.$ac_ext <<EOF 4343 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure" 4344 #line 4345 "configure"
4291 #include "confdefs.h" 4345 #include "confdefs.h"
4292 #include <stdio.h> 4346 #include <stdio.h>
4293 main() 4347 main()
4294 { 4348 {
4295 FILE *f=fopen("conftestval", "w"); 4349 FILE *f=fopen("conftestval", "w");
4296 if (!f) exit(1); 4350 if (!f) exit(1);
4297 fprintf(f, "%d\n", sizeof(void *)); 4351 fprintf(f, "%d\n", sizeof(void *));
4298 exit(0); 4352 exit(0);
4299 } 4353 }
4300 EOF 4354 EOF
4301 if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4302 then 4356 then
4303 ac_cv_sizeof_void_p=`cat conftestval` 4357 ac_cv_sizeof_void_p=`cat conftestval`
4304 else 4358 else
4305 conftest_rc="$?" 4359 conftest_rc="$?"
4306 echo "configure: failed program was:" >&5 4360 echo "configure: failed program was:" >&5
4319 } 4373 }
4320 4374
4321 4375
4322 4376
4323 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4377 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4324 echo "configure:4325: checking for long file names" >&5 4378 echo "configure:4379: checking for long file names" >&5
4325 4379
4326 ac_cv_sys_long_file_names=yes 4380 ac_cv_sys_long_file_names=yes
4327 # Test for long file names in all the places we know might matter: 4381 # Test for long file names in all the places we know might matter:
4328 # . the current directory, where building will happen 4382 # . the current directory, where building will happen
4329 # $prefix/lib where we will be installing things 4383 # $prefix/lib where we will be installing things
4365 4419
4366 fi 4420 fi
4367 4421
4368 4422
4369 echo $ac_n "checking for sin""... $ac_c" 1>&6 4423 echo $ac_n "checking for sin""... $ac_c" 1>&6
4370 echo "configure:4371: checking for sin" >&5 4424 echo "configure:4425: checking for sin" >&5
4371 4425
4372 cat > conftest.$ac_ext <<EOF 4426 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure" 4427 #line 4428 "configure"
4374 #include "confdefs.h" 4428 #include "confdefs.h"
4375 /* System header to define __stub macros and hopefully few prototypes, 4429 /* System header to define __stub macros and hopefully few prototypes,
4376 which can conflict with char sin(); below. */ 4430 which can conflict with char sin(); below. */
4377 #include <assert.h> 4431 #include <assert.h>
4378 /* Override any gcc2 internal prototype to avoid an error. */ 4432 /* Override any gcc2 internal prototype to avoid an error. */
4391 sin(); 4445 sin();
4392 #endif 4446 #endif
4393 4447
4394 ; return 0; } 4448 ; return 0; }
4395 EOF 4449 EOF
4396 if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4450 if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4397 rm -rf conftest* 4451 rm -rf conftest*
4398 eval "ac_cv_func_sin=yes" 4452 eval "ac_cv_func_sin=yes"
4399 else 4453 else
4400 echo "configure: failed program was:" >&5 4454 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5 4455 cat conftest.$ac_ext >&5
4409 : 4463 :
4410 else 4464 else
4411 echo "$ac_t""no" 1>&6 4465 echo "$ac_t""no" 1>&6
4412 4466
4413 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4467 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4414 echo "configure:4415: checking for sin in -lm" >&5 4468 echo "configure:4469: checking for sin in -lm" >&5
4415 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4469 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4416 4470
4417 xe_check_libs=" -lm " 4471 xe_check_libs=" -lm "
4418 cat > conftest.$ac_ext <<EOF 4472 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure" 4473 #line 4474 "configure"
4420 #include "confdefs.h" 4474 #include "confdefs.h"
4421 /* Override any gcc2 internal prototype to avoid an error. */ 4475 /* Override any gcc2 internal prototype to avoid an error. */
4422 /* We use char because int might match the return type of a gcc2 4476 /* We use char because int might match the return type of a gcc2
4423 builtin and then its argument prototype would still apply. */ 4477 builtin and then its argument prototype would still apply. */
4424 char sin(); 4478 char sin();
4425 4479
4426 int main() { 4480 int main() {
4427 sin() 4481 sin()
4428 ; return 0; } 4482 ; return 0; }
4429 EOF 4483 EOF
4430 if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4431 rm -rf conftest* 4485 rm -rf conftest*
4432 eval "ac_cv_lib_$ac_lib_var=yes" 4486 eval "ac_cv_lib_$ac_lib_var=yes"
4433 else 4487 else
4434 echo "configure: failed program was:" >&5 4488 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5 4489 cat conftest.$ac_ext >&5
4469 EOF 4523 EOF
4470 } 4524 }
4471 4525
4472 4526
4473 cat > conftest.$ac_ext <<EOF 4527 cat > conftest.$ac_ext <<EOF
4474 #line 4475 "configure" 4528 #line 4529 "configure"
4475 #include "confdefs.h" 4529 #include "confdefs.h"
4476 #include <math.h> 4530 #include <math.h>
4477 int main() { 4531 int main() {
4478 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4532 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4479 ; return 0; } 4533 ; return 0; }
4480 EOF 4534 EOF
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4535 if { (eval echo configure:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4482 rm -rf conftest* 4536 rm -rf conftest*
4483 { test "$extra_verbose" = "yes" && cat << \EOF 4537 { test "$extra_verbose" = "yes" && cat << \EOF
4484 Defining HAVE_INVERSE_HYPERBOLIC 4538 Defining HAVE_INVERSE_HYPERBOLIC
4485 EOF 4539 EOF
4486 cat >> confdefs.h <<\EOF 4540 cat >> confdefs.h <<\EOF
4493 cat conftest.$ac_ext >&5 4547 cat conftest.$ac_ext >&5
4494 fi 4548 fi
4495 rm -f conftest* 4549 rm -f conftest*
4496 4550
4497 echo "checking type of mail spool file locking" 1>&6 4551 echo "checking type of mail spool file locking" 1>&6
4498 echo "configure:4499: checking type of mail spool file locking" >&5 4552 echo "configure:4553: checking type of mail spool file locking" >&5
4499 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 4553 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4500 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 4554 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4501 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 4555 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4502 Defining REAL_MAIL_USE_LOCKF 4556 Defining REAL_MAIL_USE_LOCKF
4503 EOF 4557 EOF
4518 fi 4572 fi
4519 4573
4520 case "$opsys" in decosf*) 4574 case "$opsys" in decosf*)
4521 4575
4522 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4576 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4523 echo "configure:4524: checking for cma_open in -lpthreads" >&5 4577 echo "configure:4578: checking for cma_open in -lpthreads" >&5
4524 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4578 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4525 4579
4526 xe_check_libs=" -lpthreads " 4580 xe_check_libs=" -lpthreads "
4527 cat > conftest.$ac_ext <<EOF 4581 cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure" 4582 #line 4583 "configure"
4529 #include "confdefs.h" 4583 #include "confdefs.h"
4530 /* Override any gcc2 internal prototype to avoid an error. */ 4584 /* Override any gcc2 internal prototype to avoid an error. */
4531 /* We use char because int might match the return type of a gcc2 4585 /* We use char because int might match the return type of a gcc2
4532 builtin and then its argument prototype would still apply. */ 4586 builtin and then its argument prototype would still apply. */
4533 char cma_open(); 4587 char cma_open();
4534 4588
4535 int main() { 4589 int main() {
4536 cma_open() 4590 cma_open()
4537 ; return 0; } 4591 ; return 0; }
4538 EOF 4592 EOF
4539 if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4540 rm -rf conftest* 4594 rm -rf conftest*
4541 eval "ac_cv_lib_$ac_lib_var=yes" 4595 eval "ac_cv_lib_$ac_lib_var=yes"
4542 else 4596 else
4543 echo "configure: failed program was:" >&5 4597 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5 4598 cat conftest.$ac_ext >&5
4570 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4624 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4571 c_switch_site="$c_switch_site -threads" ;; 4625 c_switch_site="$c_switch_site -threads" ;;
4572 esac 4626 esac
4573 4627
4574 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4628 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4575 echo "configure:4576: checking whether the -xildoff compiler flag is required" >&5 4629 echo "configure:4630: checking whether the -xildoff compiler flag is required" >&5
4576 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4630 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4577 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4631 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4578 then echo "$ac_t""no" 1>&6; 4632 then echo "$ac_t""no" 1>&6;
4579 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 4633 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
4580 fi 4634 fi
4581 else echo "$ac_t""no" 1>&6 4635 else echo "$ac_t""no" 1>&6
4582 fi 4636 fi
4583 4637
4584 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4638 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4585 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4639 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4586 echo "configure:4587: checking for \"-z ignore\" linker flag" >&5 4640 echo "configure:4641: checking for \"-z ignore\" linker flag" >&5
4587 case "`ld -h 2>&1`" in 4641 case "`ld -h 2>&1`" in
4588 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4642 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4589 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4643 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4590 *) echo "$ac_t""no" 1>&6 ;; 4644 *) echo "$ac_t""no" 1>&6 ;;
4591 esac 4645 esac
4592 fi 4646 fi
4593 4647
4594 4648
4595 echo "checking "for specified window system"" 1>&6 4649 echo "checking "for specified window system"" 1>&6
4596 echo "configure:4597: checking "for specified window system"" >&5 4650 echo "configure:4651: checking "for specified window system"" >&5
4597 4651
4598 if test "$with_x11" != "no"; then 4652 if test "$with_x11" != "no"; then
4599 test "$x_includes $x_libraries" != "NONE NONE" && \ 4653 test "$x_includes $x_libraries" != "NONE NONE" && \
4600 window_system=x11 with_x11=yes 4654 window_system=x11 with_x11=yes
4601 4655
4624 # If we find X, set shell vars x_includes and x_libraries to the 4678 # If we find X, set shell vars x_includes and x_libraries to the
4625 # paths, otherwise set no_x=yes. 4679 # paths, otherwise set no_x=yes.
4626 # Uses ac_ vars as temps to allow command line to override cache and checks. 4680 # Uses ac_ vars as temps to allow command line to override cache and checks.
4627 # --without-x overrides everything else, but does not touch the cache. 4681 # --without-x overrides everything else, but does not touch the cache.
4628 echo $ac_n "checking for X""... $ac_c" 1>&6 4682 echo $ac_n "checking for X""... $ac_c" 1>&6
4629 echo "configure:4630: checking for X" >&5 4683 echo "configure:4684: checking for X" >&5
4630 4684
4631 # Check whether --with-x or --without-x was given. 4685 # Check whether --with-x or --without-x was given.
4632 if test "${with_x+set}" = set; then 4686 if test "${with_x+set}" = set; then
4633 withval="$with_x" 4687 withval="$with_x"
4634 : 4688 :
4684 # Guess where to find include files, by looking for this one X11 .h file. 4738 # Guess where to find include files, by looking for this one X11 .h file.
4685 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4739 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4686 4740
4687 # First, try using that file with no special directory specified. 4741 # First, try using that file with no special directory specified.
4688 cat > conftest.$ac_ext <<EOF 4742 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure" 4743 #line 4744 "configure"
4690 #include "confdefs.h" 4744 #include "confdefs.h"
4691 #include <$x_direct_test_include> 4745 #include <$x_direct_test_include>
4692 EOF 4746 EOF
4693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4694 { (eval echo configure:4695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4748 { (eval echo configure:4749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4696 if test -z "$ac_err"; then 4750 if test -z "$ac_err"; then
4697 rm -rf conftest* 4751 rm -rf conftest*
4698 # We can compile using X headers with no special include directory. 4752 # We can compile using X headers with no special include directory.
4699 ac_x_includes= 4753 ac_x_includes=
4758 # See if we find them without any special options. 4812 # See if we find them without any special options.
4759 # Don't add to $LIBS permanently. 4813 # Don't add to $LIBS permanently.
4760 ac_save_LIBS="$LIBS" 4814 ac_save_LIBS="$LIBS"
4761 LIBS="-l$x_direct_test_library $LIBS" 4815 LIBS="-l$x_direct_test_library $LIBS"
4762 cat > conftest.$ac_ext <<EOF 4816 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure" 4817 #line 4818 "configure"
4764 #include "confdefs.h" 4818 #include "confdefs.h"
4765 4819
4766 int main() { 4820 int main() {
4767 ${x_direct_test_function}() 4821 ${x_direct_test_function}()
4768 ; return 0; } 4822 ; return 0; }
4769 EOF 4823 EOF
4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4824 if { (eval echo configure:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4771 rm -rf conftest* 4825 rm -rf conftest*
4772 LIBS="$ac_save_LIBS" 4826 LIBS="$ac_save_LIBS"
4773 # We can link X programs with no special library path. 4827 # We can link X programs with no special library path.
4774 ac_x_libraries= 4828 ac_x_libraries=
4775 else 4829 else
4874 # For Solaris; some versions of Sun CC require a space after -R and 4928 # For Solaris; some versions of Sun CC require a space after -R and
4875 # others require no space. Words are not sufficient . . . . 4929 # others require no space. Words are not sufficient . . . .
4876 case "`(uname -sr) 2>/dev/null`" in 4930 case "`(uname -sr) 2>/dev/null`" in
4877 "SunOS 5"*) 4931 "SunOS 5"*)
4878 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4932 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4879 echo "configure:4880: checking whether -R must be followed by a space" >&5 4933 echo "configure:4934: checking whether -R must be followed by a space" >&5
4880 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4934 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4881 cat > conftest.$ac_ext <<EOF 4935 cat > conftest.$ac_ext <<EOF
4882 #line 4883 "configure" 4936 #line 4937 "configure"
4883 #include "confdefs.h" 4937 #include "confdefs.h"
4884 4938
4885 int main() { 4939 int main() {
4886 4940
4887 ; return 0; } 4941 ; return 0; }
4888 EOF 4942 EOF
4889 if { (eval echo configure:4890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4943 if { (eval echo configure:4944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4890 rm -rf conftest* 4944 rm -rf conftest*
4891 ac_R_nospace=yes 4945 ac_R_nospace=yes
4892 else 4946 else
4893 echo "configure: failed program was:" >&5 4947 echo "configure: failed program was:" >&5
4894 cat conftest.$ac_ext >&5 4948 cat conftest.$ac_ext >&5
4900 echo "$ac_t""no" 1>&6 4954 echo "$ac_t""no" 1>&6
4901 X_LIBS="$X_LIBS -R$x_libraries" 4955 X_LIBS="$X_LIBS -R$x_libraries"
4902 else 4956 else
4903 LIBS="$ac_xsave_LIBS -R $x_libraries" 4957 LIBS="$ac_xsave_LIBS -R $x_libraries"
4904 cat > conftest.$ac_ext <<EOF 4958 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure" 4959 #line 4960 "configure"
4906 #include "confdefs.h" 4960 #include "confdefs.h"
4907 4961
4908 int main() { 4962 int main() {
4909 4963
4910 ; return 0; } 4964 ; return 0; }
4911 EOF 4965 EOF
4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4966 if { (eval echo configure:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4913 rm -rf conftest* 4967 rm -rf conftest*
4914 ac_R_space=yes 4968 ac_R_space=yes
4915 else 4969 else
4916 echo "configure: failed program was:" >&5 4970 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5 4971 cat conftest.$ac_ext >&5
4943 if test "$with_dnet" = "no" ; then 4997 if test "$with_dnet" = "no" ; then
4944 ac_cv_lib_dnet_dnet_ntoa=no 4998 ac_cv_lib_dnet_dnet_ntoa=no
4945 else 4999 else
4946 5000
4947 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5001 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4948 echo "configure:4949: checking for dnet_ntoa in -ldnet" >&5 5002 echo "configure:5003: checking for dnet_ntoa in -ldnet" >&5
4949 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5003 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4950 5004
4951 xe_check_libs=" -ldnet " 5005 xe_check_libs=" -ldnet "
4952 cat > conftest.$ac_ext <<EOF 5006 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure" 5007 #line 5008 "configure"
4954 #include "confdefs.h" 5008 #include "confdefs.h"
4955 /* Override any gcc2 internal prototype to avoid an error. */ 5009 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2 5010 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */ 5011 builtin and then its argument prototype would still apply. */
4958 char dnet_ntoa(); 5012 char dnet_ntoa();
4959 5013
4960 int main() { 5014 int main() {
4961 dnet_ntoa() 5015 dnet_ntoa()
4962 ; return 0; } 5016 ; return 0; }
4963 EOF 5017 EOF
4964 if { (eval echo configure:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4965 rm -rf conftest* 5019 rm -rf conftest*
4966 eval "ac_cv_lib_$ac_lib_var=yes" 5020 eval "ac_cv_lib_$ac_lib_var=yes"
4967 else 5021 else
4968 echo "configure: failed program was:" >&5 5022 echo "configure: failed program was:" >&5
4969 cat conftest.$ac_ext >&5 5023 cat conftest.$ac_ext >&5
4983 fi 5037 fi
4984 5038
4985 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5039 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4986 5040
4987 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 5041 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4988 echo "configure:4989: checking for dnet_ntoa in -ldnet_stub" >&5 5042 echo "configure:5043: checking for dnet_ntoa in -ldnet_stub" >&5
4989 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5043 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4990 5044
4991 xe_check_libs=" -ldnet_stub " 5045 xe_check_libs=" -ldnet_stub "
4992 cat > conftest.$ac_ext <<EOF 5046 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure" 5047 #line 5048 "configure"
4994 #include "confdefs.h" 5048 #include "confdefs.h"
4995 /* Override any gcc2 internal prototype to avoid an error. */ 5049 /* Override any gcc2 internal prototype to avoid an error. */
4996 /* We use char because int might match the return type of a gcc2 5050 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */ 5051 builtin and then its argument prototype would still apply. */
4998 char dnet_ntoa(); 5052 char dnet_ntoa();
4999 5053
5000 int main() { 5054 int main() {
5001 dnet_ntoa() 5055 dnet_ntoa()
5002 ; return 0; } 5056 ; return 0; }
5003 EOF 5057 EOF
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5058 if { (eval echo configure:5059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5005 rm -rf conftest* 5059 rm -rf conftest*
5006 eval "ac_cv_lib_$ac_lib_var=yes" 5060 eval "ac_cv_lib_$ac_lib_var=yes"
5007 else 5061 else
5008 echo "configure: failed program was:" >&5 5062 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5 5063 cat conftest.$ac_ext >&5
5028 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5082 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5029 # needs -lnsl. 5083 # needs -lnsl.
5030 # The nsl library prevents programs from opening the X display 5084 # The nsl library prevents programs from opening the X display
5031 # on Irix 5.2, according to dickey@clark.net. 5085 # on Irix 5.2, according to dickey@clark.net.
5032 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5086 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5033 echo "configure:5034: checking for gethostbyname" >&5 5087 echo "configure:5088: checking for gethostbyname" >&5
5034 5088
5035 cat > conftest.$ac_ext <<EOF 5089 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure" 5090 #line 5091 "configure"
5037 #include "confdefs.h" 5091 #include "confdefs.h"
5038 /* System header to define __stub macros and hopefully few prototypes, 5092 /* System header to define __stub macros and hopefully few prototypes,
5039 which can conflict with char gethostbyname(); below. */ 5093 which can conflict with char gethostbyname(); below. */
5040 #include <assert.h> 5094 #include <assert.h>
5041 /* Override any gcc2 internal prototype to avoid an error. */ 5095 /* Override any gcc2 internal prototype to avoid an error. */
5054 gethostbyname(); 5108 gethostbyname();
5055 #endif 5109 #endif
5056 5110
5057 ; return 0; } 5111 ; return 0; }
5058 EOF 5112 EOF
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5113 if { (eval echo configure:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5060 rm -rf conftest* 5114 rm -rf conftest*
5061 eval "ac_cv_func_gethostbyname=yes" 5115 eval "ac_cv_func_gethostbyname=yes"
5062 else 5116 else
5063 echo "configure: failed program was:" >&5 5117 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5 5118 cat conftest.$ac_ext >&5
5075 fi 5129 fi
5076 5130
5077 if test $ac_cv_func_gethostbyname = no; then 5131 if test $ac_cv_func_gethostbyname = no; then
5078 5132
5079 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5133 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5080 echo "configure:5081: checking for gethostbyname in -lnsl" >&5 5134 echo "configure:5135: checking for gethostbyname in -lnsl" >&5
5081 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5135 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5082 5136
5083 xe_check_libs=" -lnsl " 5137 xe_check_libs=" -lnsl "
5084 cat > conftest.$ac_ext <<EOF 5138 cat > conftest.$ac_ext <<EOF
5085 #line 5086 "configure" 5139 #line 5140 "configure"
5086 #include "confdefs.h" 5140 #include "confdefs.h"
5087 /* Override any gcc2 internal prototype to avoid an error. */ 5141 /* Override any gcc2 internal prototype to avoid an error. */
5088 /* We use char because int might match the return type of a gcc2 5142 /* We use char because int might match the return type of a gcc2
5089 builtin and then its argument prototype would still apply. */ 5143 builtin and then its argument prototype would still apply. */
5090 char gethostbyname(); 5144 char gethostbyname();
5091 5145
5092 int main() { 5146 int main() {
5093 gethostbyname() 5147 gethostbyname()
5094 ; return 0; } 5148 ; return 0; }
5095 EOF 5149 EOF
5096 if { (eval echo configure:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5150 if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5097 rm -rf conftest* 5151 rm -rf conftest*
5098 eval "ac_cv_lib_$ac_lib_var=yes" 5152 eval "ac_cv_lib_$ac_lib_var=yes"
5099 else 5153 else
5100 echo "configure: failed program was:" >&5 5154 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5 5155 cat conftest.$ac_ext >&5
5121 # on later versions), says simon@lia.di.epfl.ch: it contains 5175 # on later versions), says simon@lia.di.epfl.ch: it contains
5122 # gethostby* variants that don't use the nameserver (or something). 5176 # gethostby* variants that don't use the nameserver (or something).
5123 # -lsocket must be given before -lnsl if both are needed. 5177 # -lsocket must be given before -lnsl if both are needed.
5124 # We assume that if connect needs -lnsl, so does gethostbyname. 5178 # We assume that if connect needs -lnsl, so does gethostbyname.
5125 echo $ac_n "checking for connect""... $ac_c" 1>&6 5179 echo $ac_n "checking for connect""... $ac_c" 1>&6
5126 echo "configure:5127: checking for connect" >&5 5180 echo "configure:5181: checking for connect" >&5
5127 5181
5128 cat > conftest.$ac_ext <<EOF 5182 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure" 5183 #line 5184 "configure"
5130 #include "confdefs.h" 5184 #include "confdefs.h"
5131 /* System header to define __stub macros and hopefully few prototypes, 5185 /* System header to define __stub macros and hopefully few prototypes,
5132 which can conflict with char connect(); below. */ 5186 which can conflict with char connect(); below. */
5133 #include <assert.h> 5187 #include <assert.h>
5134 /* Override any gcc2 internal prototype to avoid an error. */ 5188 /* Override any gcc2 internal prototype to avoid an error. */
5147 connect(); 5201 connect();
5148 #endif 5202 #endif
5149 5203
5150 ; return 0; } 5204 ; return 0; }
5151 EOF 5205 EOF
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5206 if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5153 rm -rf conftest* 5207 rm -rf conftest*
5154 eval "ac_cv_func_connect=yes" 5208 eval "ac_cv_func_connect=yes"
5155 else 5209 else
5156 echo "configure: failed program was:" >&5 5210 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5 5211 cat conftest.$ac_ext >&5
5170 if test $ac_cv_func_connect = no; then 5224 if test $ac_cv_func_connect = no; then
5171 5225
5172 xe_msg_checking="for connect in -lsocket" 5226 xe_msg_checking="for connect in -lsocket"
5173 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5227 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5174 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5228 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5175 echo "configure:5176: checking "$xe_msg_checking"" >&5 5229 echo "configure:5230: checking "$xe_msg_checking"" >&5
5176 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 5230 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5177 5231
5178 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5232 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5179 cat > conftest.$ac_ext <<EOF 5233 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure" 5234 #line 5235 "configure"
5181 #include "confdefs.h" 5235 #include "confdefs.h"
5182 /* Override any gcc2 internal prototype to avoid an error. */ 5236 /* Override any gcc2 internal prototype to avoid an error. */
5183 /* We use char because int might match the return type of a gcc2 5237 /* We use char because int might match the return type of a gcc2
5184 builtin and then its argument prototype would still apply. */ 5238 builtin and then its argument prototype would still apply. */
5185 char connect(); 5239 char connect();
5186 5240
5187 int main() { 5241 int main() {
5188 connect() 5242 connect()
5189 ; return 0; } 5243 ; return 0; }
5190 EOF 5244 EOF
5191 if { (eval echo configure:5192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5245 if { (eval echo configure:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5192 rm -rf conftest* 5246 rm -rf conftest*
5193 eval "ac_cv_lib_$ac_lib_var=yes" 5247 eval "ac_cv_lib_$ac_lib_var=yes"
5194 else 5248 else
5195 echo "configure: failed program was:" >&5 5249 echo "configure: failed program was:" >&5
5196 cat conftest.$ac_ext >&5 5250 cat conftest.$ac_ext >&5
5210 5264
5211 fi 5265 fi
5212 5266
5213 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 5267 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5214 echo $ac_n "checking for remove""... $ac_c" 1>&6 5268 echo $ac_n "checking for remove""... $ac_c" 1>&6
5215 echo "configure:5216: checking for remove" >&5 5269 echo "configure:5270: checking for remove" >&5
5216 5270
5217 cat > conftest.$ac_ext <<EOF 5271 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure" 5272 #line 5273 "configure"
5219 #include "confdefs.h" 5273 #include "confdefs.h"
5220 /* System header to define __stub macros and hopefully few prototypes, 5274 /* System header to define __stub macros and hopefully few prototypes,
5221 which can conflict with char remove(); below. */ 5275 which can conflict with char remove(); below. */
5222 #include <assert.h> 5276 #include <assert.h>
5223 /* Override any gcc2 internal prototype to avoid an error. */ 5277 /* Override any gcc2 internal prototype to avoid an error. */
5236 remove(); 5290 remove();
5237 #endif 5291 #endif
5238 5292
5239 ; return 0; } 5293 ; return 0; }
5240 EOF 5294 EOF
5241 if { (eval echo configure:5242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5295 if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5242 rm -rf conftest* 5296 rm -rf conftest*
5243 eval "ac_cv_func_remove=yes" 5297 eval "ac_cv_func_remove=yes"
5244 else 5298 else
5245 echo "configure: failed program was:" >&5 5299 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5 5300 cat conftest.$ac_ext >&5
5257 fi 5311 fi
5258 5312
5259 if test $ac_cv_func_remove = no; then 5313 if test $ac_cv_func_remove = no; then
5260 5314
5261 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5315 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5262 echo "configure:5263: checking for remove in -lposix" >&5 5316 echo "configure:5317: checking for remove in -lposix" >&5
5263 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5317 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5264 5318
5265 xe_check_libs=" -lposix " 5319 xe_check_libs=" -lposix "
5266 cat > conftest.$ac_ext <<EOF 5320 cat > conftest.$ac_ext <<EOF
5267 #line 5268 "configure" 5321 #line 5322 "configure"
5268 #include "confdefs.h" 5322 #include "confdefs.h"
5269 /* Override any gcc2 internal prototype to avoid an error. */ 5323 /* Override any gcc2 internal prototype to avoid an error. */
5270 /* We use char because int might match the return type of a gcc2 5324 /* We use char because int might match the return type of a gcc2
5271 builtin and then its argument prototype would still apply. */ 5325 builtin and then its argument prototype would still apply. */
5272 char remove(); 5326 char remove();
5273 5327
5274 int main() { 5328 int main() {
5275 remove() 5329 remove()
5276 ; return 0; } 5330 ; return 0; }
5277 EOF 5331 EOF
5278 if { (eval echo configure:5279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5332 if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5279 rm -rf conftest* 5333 rm -rf conftest*
5280 eval "ac_cv_lib_$ac_lib_var=yes" 5334 eval "ac_cv_lib_$ac_lib_var=yes"
5281 else 5335 else
5282 echo "configure: failed program was:" >&5 5336 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5 5337 cat conftest.$ac_ext >&5
5297 5351
5298 fi 5352 fi
5299 5353
5300 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5354 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5301 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5355 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5302 echo "configure:5303: checking for shmat" >&5 5356 echo "configure:5357: checking for shmat" >&5
5303 5357
5304 cat > conftest.$ac_ext <<EOF 5358 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure" 5359 #line 5360 "configure"
5306 #include "confdefs.h" 5360 #include "confdefs.h"
5307 /* System header to define __stub macros and hopefully few prototypes, 5361 /* System header to define __stub macros and hopefully few prototypes,
5308 which can conflict with char shmat(); below. */ 5362 which can conflict with char shmat(); below. */
5309 #include <assert.h> 5363 #include <assert.h>
5310 /* Override any gcc2 internal prototype to avoid an error. */ 5364 /* Override any gcc2 internal prototype to avoid an error. */
5323 shmat(); 5377 shmat();
5324 #endif 5378 #endif
5325 5379
5326 ; return 0; } 5380 ; return 0; }
5327 EOF 5381 EOF
5328 if { (eval echo configure:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5382 if { (eval echo configure:5383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5329 rm -rf conftest* 5383 rm -rf conftest*
5330 eval "ac_cv_func_shmat=yes" 5384 eval "ac_cv_func_shmat=yes"
5331 else 5385 else
5332 echo "configure: failed program was:" >&5 5386 echo "configure: failed program was:" >&5
5333 cat conftest.$ac_ext >&5 5387 cat conftest.$ac_ext >&5
5344 fi 5398 fi
5345 5399
5346 if test $ac_cv_func_shmat = no; then 5400 if test $ac_cv_func_shmat = no; then
5347 5401
5348 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5402 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5349 echo "configure:5350: checking for shmat in -lipc" >&5 5403 echo "configure:5404: checking for shmat in -lipc" >&5
5350 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5404 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5351 5405
5352 xe_check_libs=" -lipc " 5406 xe_check_libs=" -lipc "
5353 cat > conftest.$ac_ext <<EOF 5407 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure" 5408 #line 5409 "configure"
5355 #include "confdefs.h" 5409 #include "confdefs.h"
5356 /* Override any gcc2 internal prototype to avoid an error. */ 5410 /* Override any gcc2 internal prototype to avoid an error. */
5357 /* We use char because int might match the return type of a gcc2 5411 /* We use char because int might match the return type of a gcc2
5358 builtin and then its argument prototype would still apply. */ 5412 builtin and then its argument prototype would still apply. */
5359 char shmat(); 5413 char shmat();
5360 5414
5361 int main() { 5415 int main() {
5362 shmat() 5416 shmat()
5363 ; return 0; } 5417 ; return 0; }
5364 EOF 5418 EOF
5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5419 if { (eval echo configure:5420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5366 rm -rf conftest* 5420 rm -rf conftest*
5367 eval "ac_cv_lib_$ac_lib_var=yes" 5421 eval "ac_cv_lib_$ac_lib_var=yes"
5368 else 5422 else
5369 echo "configure: failed program was:" >&5 5423 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5 5424 cat conftest.$ac_ext >&5
5396 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5450 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5397 5451
5398 xe_msg_checking="for IceConnectionNumber in -lICE" 5452 xe_msg_checking="for IceConnectionNumber in -lICE"
5399 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5453 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5400 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5454 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5401 echo "configure:5402: checking "$xe_msg_checking"" >&5 5455 echo "configure:5456: checking "$xe_msg_checking"" >&5
5402 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5456 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5403 5457
5404 xe_check_libs=" -lICE $X_EXTRA_LIBS" 5458 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5405 cat > conftest.$ac_ext <<EOF 5459 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure" 5460 #line 5461 "configure"
5407 #include "confdefs.h" 5461 #include "confdefs.h"
5408 /* Override any gcc2 internal prototype to avoid an error. */ 5462 /* Override any gcc2 internal prototype to avoid an error. */
5409 /* We use char because int might match the return type of a gcc2 5463 /* We use char because int might match the return type of a gcc2
5410 builtin and then its argument prototype would still apply. */ 5464 builtin and then its argument prototype would still apply. */
5411 char IceConnectionNumber(); 5465 char IceConnectionNumber();
5412 5466
5413 int main() { 5467 int main() {
5414 IceConnectionNumber() 5468 IceConnectionNumber()
5415 ; return 0; } 5469 ; return 0; }
5416 EOF 5470 EOF
5417 if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5471 if { (eval echo configure:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5418 rm -rf conftest* 5472 rm -rf conftest*
5419 eval "ac_cv_lib_$ac_lib_var=yes" 5473 eval "ac_cv_lib_$ac_lib_var=yes"
5420 else 5474 else
5421 echo "configure: failed program was:" >&5 5475 echo "configure: failed program was:" >&5
5422 cat conftest.$ac_ext >&5 5476 cat conftest.$ac_ext >&5
5581 EOF 5635 EOF
5582 } 5636 }
5583 5637
5584 5638
5585 echo "checking for X defines extracted by xmkmf" 1>&6 5639 echo "checking for X defines extracted by xmkmf" 1>&6
5586 echo "configure:5587: checking for X defines extracted by xmkmf" >&5 5640 echo "configure:5641: checking for X defines extracted by xmkmf" >&5
5587 rm -fr conftestdir 5641 rm -fr conftestdir
5588 if mkdir conftestdir; then 5642 if mkdir conftestdir; then
5589 cd conftestdir 5643 cd conftestdir
5590 cat > Imakefile <<'EOF' 5644 cat > Imakefile <<'EOF'
5591 xetest: 5645 xetest:
5613 done 5667 done
5614 fi 5668 fi
5615 5669
5616 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5670 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5617 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5671 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5618 echo "configure:5619: checking for X11/Intrinsic.h" >&5 5672 echo "configure:5673: checking for X11/Intrinsic.h" >&5
5619 5673
5620 cat > conftest.$ac_ext <<EOF 5674 cat > conftest.$ac_ext <<EOF
5621 #line 5622 "configure" 5675 #line 5676 "configure"
5622 #include "confdefs.h" 5676 #include "confdefs.h"
5623 #include <X11/Intrinsic.h> 5677 #include <X11/Intrinsic.h>
5624 EOF 5678 EOF
5625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5626 { (eval echo configure:5627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5680 { (eval echo configure:5681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5628 if test -z "$ac_err"; then 5682 if test -z "$ac_err"; then
5629 rm -rf conftest* 5683 rm -rf conftest*
5630 eval "ac_cv_header_$ac_safe=yes" 5684 eval "ac_cv_header_$ac_safe=yes"
5631 else 5685 else
5645 fi 5699 fi
5646 5700
5647 5701
5648 5702
5649 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5703 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5650 echo "configure:5651: checking for XOpenDisplay in -lX11" >&5 5704 echo "configure:5705: checking for XOpenDisplay in -lX11" >&5
5651 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5705 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5652 5706
5653 xe_check_libs=" -lX11 " 5707 xe_check_libs=" -lX11 "
5654 cat > conftest.$ac_ext <<EOF 5708 cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure" 5709 #line 5710 "configure"
5656 #include "confdefs.h" 5710 #include "confdefs.h"
5657 /* Override any gcc2 internal prototype to avoid an error. */ 5711 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2 5712 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */ 5713 builtin and then its argument prototype would still apply. */
5660 char XOpenDisplay(); 5714 char XOpenDisplay();
5661 5715
5662 int main() { 5716 int main() {
5663 XOpenDisplay() 5717 XOpenDisplay()
5664 ; return 0; } 5718 ; return 0; }
5665 EOF 5719 EOF
5666 if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5720 if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5667 rm -rf conftest* 5721 rm -rf conftest*
5668 eval "ac_cv_lib_$ac_lib_var=yes" 5722 eval "ac_cv_lib_$ac_lib_var=yes"
5669 else 5723 else
5670 echo "configure: failed program was:" >&5 5724 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5 5725 cat conftest.$ac_ext >&5
5686 if test "$have_lib_x11" != "yes"; then 5740 if test "$have_lib_x11" != "yes"; then
5687 5741
5688 xe_msg_checking="for XGetFontProperty in -lX11" 5742 xe_msg_checking="for XGetFontProperty in -lX11"
5689 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5743 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5690 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5744 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5691 echo "configure:5692: checking "$xe_msg_checking"" >&5 5745 echo "configure:5746: checking "$xe_msg_checking"" >&5
5692 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5746 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5693 5747
5694 xe_check_libs=" -lX11 -b i486-linuxaout" 5748 xe_check_libs=" -lX11 -b i486-linuxaout"
5695 cat > conftest.$ac_ext <<EOF 5749 cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure" 5750 #line 5751 "configure"
5697 #include "confdefs.h" 5751 #include "confdefs.h"
5698 /* Override any gcc2 internal prototype to avoid an error. */ 5752 /* Override any gcc2 internal prototype to avoid an error. */
5699 /* We use char because int might match the return type of a gcc2 5753 /* We use char because int might match the return type of a gcc2
5700 builtin and then its argument prototype would still apply. */ 5754 builtin and then its argument prototype would still apply. */
5701 char XGetFontProperty(); 5755 char XGetFontProperty();
5702 5756
5703 int main() { 5757 int main() {
5704 XGetFontProperty() 5758 XGetFontProperty()
5705 ; return 0; } 5759 ; return 0; }
5706 EOF 5760 EOF
5707 if { (eval echo configure:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5708 rm -rf conftest* 5762 rm -rf conftest*
5709 eval "ac_cv_lib_$ac_lib_var=yes" 5763 eval "ac_cv_lib_$ac_lib_var=yes"
5710 else 5764 else
5711 echo "configure: failed program was:" >&5 5765 echo "configure: failed program was:" >&5
5712 cat conftest.$ac_ext >&5 5766 cat conftest.$ac_ext >&5
5729 libs_x="-lX11" 5783 libs_x="-lX11"
5730 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5784 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5731 5785
5732 5786
5733 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5787 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5734 echo "configure:5735: checking for XShapeSelectInput in -lXext" >&5 5788 echo "configure:5789: checking for XShapeSelectInput in -lXext" >&5
5735 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5789 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5736 5790
5737 xe_check_libs=" -lXext " 5791 xe_check_libs=" -lXext "
5738 cat > conftest.$ac_ext <<EOF 5792 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure" 5793 #line 5794 "configure"
5740 #include "confdefs.h" 5794 #include "confdefs.h"
5741 /* Override any gcc2 internal prototype to avoid an error. */ 5795 /* Override any gcc2 internal prototype to avoid an error. */
5742 /* We use char because int might match the return type of a gcc2 5796 /* We use char because int might match the return type of a gcc2
5743 builtin and then its argument prototype would still apply. */ 5797 builtin and then its argument prototype would still apply. */
5744 char XShapeSelectInput(); 5798 char XShapeSelectInput();
5745 5799
5746 int main() { 5800 int main() {
5747 XShapeSelectInput() 5801 XShapeSelectInput()
5748 ; return 0; } 5802 ; return 0; }
5749 EOF 5803 EOF
5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5751 rm -rf conftest* 5805 rm -rf conftest*
5752 eval "ac_cv_lib_$ac_lib_var=yes" 5806 eval "ac_cv_lib_$ac_lib_var=yes"
5753 else 5807 else
5754 echo "configure: failed program was:" >&5 5808 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5 5809 cat conftest.$ac_ext >&5
5768 5822
5769 5823
5770 5824
5771 5825
5772 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5826 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5773 echo "configure:5774: checking for XtOpenDisplay in -lXt" >&5 5827 echo "configure:5828: checking for XtOpenDisplay in -lXt" >&5
5774 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5828 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5775 5829
5776 xe_check_libs=" -lXt " 5830 xe_check_libs=" -lXt "
5777 cat > conftest.$ac_ext <<EOF 5831 cat > conftest.$ac_ext <<EOF
5778 #line 5779 "configure" 5832 #line 5833 "configure"
5779 #include "confdefs.h" 5833 #include "confdefs.h"
5780 /* Override any gcc2 internal prototype to avoid an error. */ 5834 /* Override any gcc2 internal prototype to avoid an error. */
5781 /* We use char because int might match the return type of a gcc2 5835 /* We use char because int might match the return type of a gcc2
5782 builtin and then its argument prototype would still apply. */ 5836 builtin and then its argument prototype would still apply. */
5783 char XtOpenDisplay(); 5837 char XtOpenDisplay();
5784 5838
5785 int main() { 5839 int main() {
5786 XtOpenDisplay() 5840 XtOpenDisplay()
5787 ; return 0; } 5841 ; return 0; }
5788 EOF 5842 EOF
5789 if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5843 if { (eval echo configure:5844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5790 rm -rf conftest* 5844 rm -rf conftest*
5791 eval "ac_cv_lib_$ac_lib_var=yes" 5845 eval "ac_cv_lib_$ac_lib_var=yes"
5792 else 5846 else
5793 echo "configure: failed program was:" >&5 5847 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5 5848 cat conftest.$ac_ext >&5
5807 fi 5861 fi
5808 5862
5809 5863
5810 5864
5811 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5865 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5812 echo "configure:5813: checking the version of X11 being used" >&5 5866 echo "configure:5867: checking the version of X11 being used" >&5
5813 cat > conftest.$ac_ext <<EOF 5867 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure" 5868 #line 5869 "configure"
5815 #include "confdefs.h" 5869 #include "confdefs.h"
5816 #include <X11/Intrinsic.h> 5870 #include <X11/Intrinsic.h>
5817 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5871 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5818 EOF 5872 EOF
5819 if { (eval echo configure:5820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5873 if { (eval echo configure:5874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5820 then 5874 then
5821 ./conftest foobar; x11_release=$? 5875 ./conftest foobar; x11_release=$?
5822 else 5876 else
5823 conftest_rc="$?" 5877 conftest_rc="$?"
5824 echo "configure: failed program was:" >&5 5878 echo "configure: failed program was:" >&5
5839 5893
5840 for ac_hdr in X11/Xlocale.h 5894 for ac_hdr in X11/Xlocale.h
5841 do 5895 do
5842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5844 echo "configure:5845: checking for $ac_hdr" >&5 5898 echo "configure:5899: checking for $ac_hdr" >&5
5845 5899
5846 cat > conftest.$ac_ext <<EOF 5900 cat > conftest.$ac_ext <<EOF
5847 #line 5848 "configure" 5901 #line 5902 "configure"
5848 #include "confdefs.h" 5902 #include "confdefs.h"
5849 #include <$ac_hdr> 5903 #include <$ac_hdr>
5850 EOF 5904 EOF
5851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5852 { (eval echo configure:5853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5906 { (eval echo configure:5907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5854 if test -z "$ac_err"; then 5908 if test -z "$ac_err"; then
5855 rm -rf conftest* 5909 rm -rf conftest*
5856 eval "ac_cv_header_$ac_safe=yes" 5910 eval "ac_cv_header_$ac_safe=yes"
5857 else 5911 else
5878 fi 5932 fi
5879 done 5933 done
5880 5934
5881 5935
5882 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5936 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5883 echo "configure:5884: checking for XFree86" >&5 5937 echo "configure:5938: checking for XFree86" >&5
5884 if test -d "/usr/X386/include" -o \ 5938 if test -d "/usr/X386/include" -o \
5885 -f "/etc/XF86Config" -o \ 5939 -f "/etc/XF86Config" -o \
5886 -f "/etc/X11/XF86Config" -o \ 5940 -f "/etc/X11/XF86Config" -o \
5887 -f "/usr/X11R6/lib/X11/XF86Config"; then 5941 -f "/usr/X11R6/lib/X11/XF86Config"; then
5888 echo "$ac_t""yes" 1>&6 5942 echo "$ac_t""yes" 1>&6
5898 echo "$ac_t""no" 1>&6 5952 echo "$ac_t""no" 1>&6
5899 fi 5953 fi
5900 5954
5901 test -z "$with_xmu" && { 5955 test -z "$with_xmu" && {
5902 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5956 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5903 echo "configure:5904: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5957 echo "configure:5958: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5904 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5958 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5905 5959
5906 xe_check_libs=" -lXmu " 5960 xe_check_libs=" -lXmu "
5907 cat > conftest.$ac_ext <<EOF 5961 cat > conftest.$ac_ext <<EOF
5908 #line 5909 "configure" 5962 #line 5963 "configure"
5909 #include "confdefs.h" 5963 #include "confdefs.h"
5910 /* Override any gcc2 internal prototype to avoid an error. */ 5964 /* Override any gcc2 internal prototype to avoid an error. */
5911 /* We use char because int might match the return type of a gcc2 5965 /* We use char because int might match the return type of a gcc2
5912 builtin and then its argument prototype would still apply. */ 5966 builtin and then its argument prototype would still apply. */
5913 char XmuReadBitmapDataFromFile(); 5967 char XmuReadBitmapDataFromFile();
5914 5968
5915 int main() { 5969 int main() {
5916 XmuReadBitmapDataFromFile() 5970 XmuReadBitmapDataFromFile()
5917 ; return 0; } 5971 ; return 0; }
5918 EOF 5972 EOF
5919 if { (eval echo configure:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5973 if { (eval echo configure:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5920 rm -rf conftest* 5974 rm -rf conftest*
5921 eval "ac_cv_lib_$ac_lib_var=yes" 5975 eval "ac_cv_lib_$ac_lib_var=yes"
5922 else 5976 else
5923 echo "configure: failed program was:" >&5 5977 echo "configure: failed program was:" >&5
5924 cat conftest.$ac_ext >&5 5978 cat conftest.$ac_ext >&5
5953 6007
5954 fi 6008 fi
5955 6009
5956 6010
5957 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 6011 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5958 echo "configure:5959: checking for main in -lXbsd" >&5 6012 echo "configure:6013: checking for main in -lXbsd" >&5
5959 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 6013 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5960 6014
5961 xe_check_libs=" -lXbsd " 6015 xe_check_libs=" -lXbsd "
5962 cat > conftest.$ac_ext <<EOF 6016 cat > conftest.$ac_ext <<EOF
5963 #line 5964 "configure" 6017 #line 6018 "configure"
5964 #include "confdefs.h" 6018 #include "confdefs.h"
5965 6019
5966 int main() { 6020 int main() {
5967 main() 6021 main()
5968 ; return 0; } 6022 ; return 0; }
5969 EOF 6023 EOF
5970 if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5971 rm -rf conftest* 6025 rm -rf conftest*
5972 eval "ac_cv_lib_$ac_lib_var=yes" 6026 eval "ac_cv_lib_$ac_lib_var=yes"
5973 else 6027 else
5974 echo "configure: failed program was:" >&5 6028 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5 6029 cat conftest.$ac_ext >&5
6002 fi 6056 fi
6003 6057
6004 fi 6058 fi
6005 if test "$with_msw" != "no"; then 6059 if test "$with_msw" != "no"; then
6006 echo "checking for MS-Windows" 1>&6 6060 echo "checking for MS-Windows" 1>&6
6007 echo "configure:6008: checking for MS-Windows" >&5 6061 echo "configure:6062: checking for MS-Windows" >&5
6008 6062
6009 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 6063 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6010 echo "configure:6011: checking for main in -lgdi32" >&5 6064 echo "configure:6065: checking for main in -lgdi32" >&5
6011 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 6065 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6012 6066
6013 xe_check_libs=" -lgdi32 " 6067 xe_check_libs=" -lgdi32 "
6014 cat > conftest.$ac_ext <<EOF 6068 cat > conftest.$ac_ext <<EOF
6015 #line 6016 "configure" 6069 #line 6070 "configure"
6016 #include "confdefs.h" 6070 #include "confdefs.h"
6017 6071
6018 int main() { 6072 int main() {
6019 main() 6073 main()
6020 ; return 0; } 6074 ; return 0; }
6021 EOF 6075 EOF
6022 if { (eval echo configure:6023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6076 if { (eval echo configure:6077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6023 rm -rf conftest* 6077 rm -rf conftest*
6024 eval "ac_cv_lib_$ac_lib_var=yes" 6078 eval "ac_cv_lib_$ac_lib_var=yes"
6025 else 6079 else
6026 echo "configure: failed program was:" >&5 6080 echo "configure: failed program was:" >&5
6027 cat conftest.$ac_ext >&5 6081 cat conftest.$ac_ext >&5
6083 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 6137 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6084 echo " xemacs will be linked with \"dialog-msw.o\"" 6138 echo " xemacs will be linked with \"dialog-msw.o\""
6085 fi 6139 fi
6086 fi 6140 fi
6087 cat > conftest.$ac_ext <<EOF 6141 cat > conftest.$ac_ext <<EOF
6088 #line 6089 "configure" 6142 #line 6143 "configure"
6089 #include "confdefs.h" 6143 #include "confdefs.h"
6090 #include <fcntl.h> 6144 #include <fcntl.h>
6091 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 6145 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6092 EOF 6146 EOF
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6147 if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6094 then 6148 then
6095 { test "$extra_verbose" = "yes" && cat << \EOF 6149 { test "$extra_verbose" = "yes" && cat << \EOF
6096 Defining HAVE_MSG_SELECT 6150 Defining HAVE_MSG_SELECT
6097 EOF 6151 EOF
6098 cat >> confdefs.h <<\EOF 6152 cat >> confdefs.h <<\EOF
6164 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 6218 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6165 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 6219 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6166 esac 6220 esac
6167 6221
6168 echo "checking for WM_COMMAND option" 1>&6 6222 echo "checking for WM_COMMAND option" 1>&6
6169 echo "configure:6170: checking for WM_COMMAND option" >&5; 6223 echo "configure:6224: checking for WM_COMMAND option" >&5;
6170 if test "$with_wmcommand" != "no"; then 6224 if test "$with_wmcommand" != "no"; then
6171 { test "$extra_verbose" = "yes" && cat << \EOF 6225 { test "$extra_verbose" = "yes" && cat << \EOF
6172 Defining HAVE_WMCOMMAND 6226 Defining HAVE_WMCOMMAND
6173 EOF 6227 EOF
6174 cat >> confdefs.h <<\EOF 6228 cat >> confdefs.h <<\EOF
6179 fi 6233 fi
6180 6234
6181 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 6235 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6182 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 6236 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6183 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 6237 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6184 echo "configure:6185: checking for X11/Xauth.h" >&5 6238 echo "configure:6239: checking for X11/Xauth.h" >&5
6185 6239
6186 cat > conftest.$ac_ext <<EOF 6240 cat > conftest.$ac_ext <<EOF
6187 #line 6188 "configure" 6241 #line 6242 "configure"
6188 #include "confdefs.h" 6242 #include "confdefs.h"
6189 #include <X11/Xauth.h> 6243 #include <X11/Xauth.h>
6190 EOF 6244 EOF
6191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6192 { (eval echo configure:6193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6246 { (eval echo configure:6247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6194 if test -z "$ac_err"; then 6248 if test -z "$ac_err"; then
6195 rm -rf conftest* 6249 rm -rf conftest*
6196 eval "ac_cv_header_$ac_safe=yes" 6250 eval "ac_cv_header_$ac_safe=yes"
6197 else 6251 else
6210 with_xauth=no 6264 with_xauth=no
6211 fi 6265 fi
6212 } 6266 }
6213 test -z "$with_xauth" && { 6267 test -z "$with_xauth" && {
6214 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 6268 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6215 echo "configure:6216: checking for XauGetAuthByAddr in -lXau" >&5 6269 echo "configure:6270: checking for XauGetAuthByAddr in -lXau" >&5
6216 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6270 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6217 6271
6218 xe_check_libs=" -lXau " 6272 xe_check_libs=" -lXau "
6219 cat > conftest.$ac_ext <<EOF 6273 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure" 6274 #line 6275 "configure"
6221 #include "confdefs.h" 6275 #include "confdefs.h"
6222 /* Override any gcc2 internal prototype to avoid an error. */ 6276 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2 6277 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */ 6278 builtin and then its argument prototype would still apply. */
6225 char XauGetAuthByAddr(); 6279 char XauGetAuthByAddr();
6226 6280
6227 int main() { 6281 int main() {
6228 XauGetAuthByAddr() 6282 XauGetAuthByAddr()
6229 ; return 0; } 6283 ; return 0; }
6230 EOF 6284 EOF
6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6285 if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6232 rm -rf conftest* 6286 rm -rf conftest*
6233 eval "ac_cv_lib_$ac_lib_var=yes" 6287 eval "ac_cv_lib_$ac_lib_var=yes"
6234 else 6288 else
6235 echo "configure: failed program was:" >&5 6289 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5 6290 cat conftest.$ac_ext >&5
6271 6325
6272 if test "$with_tooltalk" != "no" ; then 6326 if test "$with_tooltalk" != "no" ; then
6273 for dir in "" "Tt/" "desktop/" ; do 6327 for dir in "" "Tt/" "desktop/" ; do
6274 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6328 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6275 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6329 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6276 echo "configure:6277: checking for ${dir}tt_c.h" >&5 6330 echo "configure:6331: checking for ${dir}tt_c.h" >&5
6277 6331
6278 cat > conftest.$ac_ext <<EOF 6332 cat > conftest.$ac_ext <<EOF
6279 #line 6280 "configure" 6333 #line 6334 "configure"
6280 #include "confdefs.h" 6334 #include "confdefs.h"
6281 #include <${dir}tt_c.h> 6335 #include <${dir}tt_c.h>
6282 EOF 6336 EOF
6283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6284 { (eval echo configure:6285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6338 { (eval echo configure:6339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6286 if test -z "$ac_err"; then 6340 if test -z "$ac_err"; then
6287 rm -rf conftest* 6341 rm -rf conftest*
6288 eval "ac_cv_header_$ac_safe=yes" 6342 eval "ac_cv_header_$ac_safe=yes"
6289 else 6343 else
6315 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6369 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6316 6370
6317 xe_msg_checking="for tt_message_create in -ltt" 6371 xe_msg_checking="for tt_message_create in -ltt"
6318 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6372 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6319 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6373 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6320 echo "configure:6321: checking "$xe_msg_checking"" >&5 6374 echo "configure:6375: checking "$xe_msg_checking"" >&5
6321 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6375 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6322 6376
6323 xe_check_libs=" -ltt $extra_libs" 6377 xe_check_libs=" -ltt $extra_libs"
6324 cat > conftest.$ac_ext <<EOF 6378 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure" 6379 #line 6380 "configure"
6326 #include "confdefs.h" 6380 #include "confdefs.h"
6327 /* Override any gcc2 internal prototype to avoid an error. */ 6381 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2 6382 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */ 6383 builtin and then its argument prototype would still apply. */
6330 char tt_message_create(); 6384 char tt_message_create();
6331 6385
6332 int main() { 6386 int main() {
6333 tt_message_create() 6387 tt_message_create()
6334 ; return 0; } 6388 ; return 0; }
6335 EOF 6389 EOF
6336 if { (eval echo configure:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6390 if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6337 rm -rf conftest* 6391 rm -rf conftest*
6338 eval "ac_cv_lib_$ac_lib_var=yes" 6392 eval "ac_cv_lib_$ac_lib_var=yes"
6339 else 6393 else
6340 echo "configure: failed program was:" >&5 6394 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5 6395 cat conftest.$ac_ext >&5
6388 fi 6442 fi
6389 fi 6443 fi
6390 6444
6391 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6445 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6392 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6446 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6393 echo "configure:6394: checking for Dt/Dt.h" >&5 6447 echo "configure:6448: checking for Dt/Dt.h" >&5
6394 6448
6395 cat > conftest.$ac_ext <<EOF 6449 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure" 6450 #line 6451 "configure"
6397 #include "confdefs.h" 6451 #include "confdefs.h"
6398 #include <Dt/Dt.h> 6452 #include <Dt/Dt.h>
6399 EOF 6453 EOF
6400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6401 { (eval echo configure:6402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6455 { (eval echo configure:6456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6403 if test -z "$ac_err"; then 6457 if test -z "$ac_err"; then
6404 rm -rf conftest* 6458 rm -rf conftest*
6405 eval "ac_cv_header_$ac_safe=yes" 6459 eval "ac_cv_header_$ac_safe=yes"
6406 else 6460 else
6419 with_cde=no 6473 with_cde=no
6420 fi 6474 fi
6421 } 6475 }
6422 test -z "$with_cde" && { 6476 test -z "$with_cde" && {
6423 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6477 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6424 echo "configure:6425: checking for DtDndDragStart in -lDtSvc" >&5 6478 echo "configure:6479: checking for DtDndDragStart in -lDtSvc" >&5
6425 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6479 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6426 6480
6427 xe_check_libs=" -lDtSvc " 6481 xe_check_libs=" -lDtSvc "
6428 cat > conftest.$ac_ext <<EOF 6482 cat > conftest.$ac_ext <<EOF
6429 #line 6430 "configure" 6483 #line 6484 "configure"
6430 #include "confdefs.h" 6484 #include "confdefs.h"
6431 /* Override any gcc2 internal prototype to avoid an error. */ 6485 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2 6486 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */ 6487 builtin and then its argument prototype would still apply. */
6434 char DtDndDragStart(); 6488 char DtDndDragStart();
6435 6489
6436 int main() { 6490 int main() {
6437 DtDndDragStart() 6491 DtDndDragStart()
6438 ; return 0; } 6492 ; return 0; }
6439 EOF 6493 EOF
6440 if { (eval echo configure:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6494 if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6441 rm -rf conftest* 6495 rm -rf conftest*
6442 eval "ac_cv_lib_$ac_lib_var=yes" 6496 eval "ac_cv_lib_$ac_lib_var=yes"
6443 else 6497 else
6444 echo "configure: failed program was:" >&5 6498 echo "configure: failed program was:" >&5
6445 cat conftest.$ac_ext >&5 6499 cat conftest.$ac_ext >&5
6504 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6558 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6505 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6559 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6506 fi 6560 fi
6507 6561
6508 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6562 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6509 echo "configure:6510: checking if drag and drop API is needed" >&5 6563 echo "configure:6564: checking if drag and drop API is needed" >&5
6510 if test "$with_dragndrop" != "no" ; then 6564 if test "$with_dragndrop" != "no" ; then
6511 if test -n "$dragndrop_proto" ; then 6565 if test -n "$dragndrop_proto" ; then
6512 with_dragndrop=yes 6566 with_dragndrop=yes
6513 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6567 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6514 { test "$extra_verbose" = "yes" && cat << \EOF 6568 { test "$extra_verbose" = "yes" && cat << \EOF
6525 echo "$ac_t""no" 1>&6 6579 echo "$ac_t""no" 1>&6
6526 fi 6580 fi
6527 fi 6581 fi
6528 6582
6529 echo "checking for LDAP" 1>&6 6583 echo "checking for LDAP" 1>&6
6530 echo "configure:6531: checking for LDAP" >&5 6584 echo "configure:6585: checking for LDAP" >&5
6531 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6585 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6532 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6586 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6533 echo "configure:6534: checking for ldap.h" >&5 6587 echo "configure:6588: checking for ldap.h" >&5
6534 6588
6535 cat > conftest.$ac_ext <<EOF 6589 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure" 6590 #line 6591 "configure"
6537 #include "confdefs.h" 6591 #include "confdefs.h"
6538 #include <ldap.h> 6592 #include <ldap.h>
6539 EOF 6593 EOF
6540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6541 { (eval echo configure:6542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6595 { (eval echo configure:6596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6543 if test -z "$ac_err"; then 6597 if test -z "$ac_err"; then
6544 rm -rf conftest* 6598 rm -rf conftest*
6545 eval "ac_cv_header_$ac_safe=yes" 6599 eval "ac_cv_header_$ac_safe=yes"
6546 else 6600 else
6559 with_ldap=no 6613 with_ldap=no
6560 fi 6614 fi
6561 } 6615 }
6562 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6616 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6563 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6617 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6564 echo "configure:6565: checking for lber.h" >&5 6618 echo "configure:6619: checking for lber.h" >&5
6565 6619
6566 cat > conftest.$ac_ext <<EOF 6620 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure" 6621 #line 6622 "configure"
6568 #include "confdefs.h" 6622 #include "confdefs.h"
6569 #include <lber.h> 6623 #include <lber.h>
6570 EOF 6624 EOF
6571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6572 { (eval echo configure:6573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6626 { (eval echo configure:6627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6574 if test -z "$ac_err"; then 6628 if test -z "$ac_err"; then
6575 rm -rf conftest* 6629 rm -rf conftest*
6576 eval "ac_cv_header_$ac_safe=yes" 6630 eval "ac_cv_header_$ac_safe=yes"
6577 else 6631 else
6591 fi 6645 fi
6592 } 6646 }
6593 if test "$with_ldap" != "no"; then 6647 if test "$with_ldap" != "no"; then
6594 6648
6595 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 6649 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6596 echo "configure:6597: checking for ldap_search in -lldap" >&5 6650 echo "configure:6651: checking for ldap_search in -lldap" >&5
6597 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 6651 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6598 6652
6599 xe_check_libs=" -lldap " 6653 xe_check_libs=" -lldap "
6600 cat > conftest.$ac_ext <<EOF 6654 cat > conftest.$ac_ext <<EOF
6601 #line 6602 "configure" 6655 #line 6656 "configure"
6602 #include "confdefs.h" 6656 #include "confdefs.h"
6603 /* Override any gcc2 internal prototype to avoid an error. */ 6657 /* Override any gcc2 internal prototype to avoid an error. */
6604 /* We use char because int might match the return type of a gcc2 6658 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */ 6659 builtin and then its argument prototype would still apply. */
6606 char ldap_search(); 6660 char ldap_search();
6607 6661
6608 int main() { 6662 int main() {
6609 ldap_search() 6663 ldap_search()
6610 ; return 0; } 6664 ; return 0; }
6611 EOF 6665 EOF
6612 if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6613 rm -rf conftest* 6667 rm -rf conftest*
6614 eval "ac_cv_lib_$ac_lib_var=yes" 6668 eval "ac_cv_lib_$ac_lib_var=yes"
6615 else 6669 else
6616 echo "configure: failed program was:" >&5 6670 echo "configure: failed program was:" >&5
6617 cat conftest.$ac_ext >&5 6671 cat conftest.$ac_ext >&5
6632 6686
6633 test "$with_ldap_nolber" = "no" && { 6687 test "$with_ldap_nolber" = "no" && {
6634 xe_msg_checking="for ldap_open in -lldap" 6688 xe_msg_checking="for ldap_open in -lldap"
6635 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6689 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6636 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6690 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6637 echo "configure:6638: checking "$xe_msg_checking"" >&5 6691 echo "configure:6692: checking "$xe_msg_checking"" >&5
6638 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6692 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6639 6693
6640 xe_check_libs=" -lldap -llber" 6694 xe_check_libs=" -lldap -llber"
6641 cat > conftest.$ac_ext <<EOF 6695 cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure" 6696 #line 6697 "configure"
6643 #include "confdefs.h" 6697 #include "confdefs.h"
6644 /* Override any gcc2 internal prototype to avoid an error. */ 6698 /* Override any gcc2 internal prototype to avoid an error. */
6645 /* We use char because int might match the return type of a gcc2 6699 /* We use char because int might match the return type of a gcc2
6646 builtin and then its argument prototype would still apply. */ 6700 builtin and then its argument prototype would still apply. */
6647 char ldap_open(); 6701 char ldap_open();
6648 6702
6649 int main() { 6703 int main() {
6650 ldap_open() 6704 ldap_open()
6651 ; return 0; } 6705 ; return 0; }
6652 EOF 6706 EOF
6653 if { (eval echo configure:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6707 if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6654 rm -rf conftest* 6708 rm -rf conftest*
6655 eval "ac_cv_lib_$ac_lib_var=yes" 6709 eval "ac_cv_lib_$ac_lib_var=yes"
6656 else 6710 else
6657 echo "configure: failed program was:" >&5 6711 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5 6712 cat conftest.$ac_ext >&5
6673 } 6727 }
6674 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 6728 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6675 xe_msg_checking="for ldap_open in -lldap" 6729 xe_msg_checking="for ldap_open in -lldap"
6676 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 6730 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6677 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6731 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6678 echo "configure:6679: checking "$xe_msg_checking"" >&5 6732 echo "configure:6733: checking "$xe_msg_checking"" >&5
6679 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6733 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6680 6734
6681 xe_check_libs=" -lldap -llber -lkrb" 6735 xe_check_libs=" -lldap -llber -lkrb"
6682 cat > conftest.$ac_ext <<EOF 6736 cat > conftest.$ac_ext <<EOF
6683 #line 6684 "configure" 6737 #line 6738 "configure"
6684 #include "confdefs.h" 6738 #include "confdefs.h"
6685 /* Override any gcc2 internal prototype to avoid an error. */ 6739 /* Override any gcc2 internal prototype to avoid an error. */
6686 /* We use char because int might match the return type of a gcc2 6740 /* We use char because int might match the return type of a gcc2
6687 builtin and then its argument prototype would still apply. */ 6741 builtin and then its argument prototype would still apply. */
6688 char ldap_open(); 6742 char ldap_open();
6689 6743
6690 int main() { 6744 int main() {
6691 ldap_open() 6745 ldap_open()
6692 ; return 0; } 6746 ; return 0; }
6693 EOF 6747 EOF
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6748 if { (eval echo configure:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6695 rm -rf conftest* 6749 rm -rf conftest*
6696 eval "ac_cv_lib_$ac_lib_var=yes" 6750 eval "ac_cv_lib_$ac_lib_var=yes"
6697 else 6751 else
6698 echo "configure: failed program was:" >&5 6752 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5 6753 cat conftest.$ac_ext >&5
6714 } 6768 }
6715 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 6769 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6716 xe_msg_checking="for ldap_open in -lldap" 6770 xe_msg_checking="for ldap_open in -lldap"
6717 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 6771 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6718 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6772 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6719 echo "configure:6720: checking "$xe_msg_checking"" >&5 6773 echo "configure:6774: checking "$xe_msg_checking"" >&5
6720 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6774 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6721 6775
6722 xe_check_libs=" -lldap -llber -lkrb -ldes" 6776 xe_check_libs=" -lldap -llber -lkrb -ldes"
6723 cat > conftest.$ac_ext <<EOF 6777 cat > conftest.$ac_ext <<EOF
6724 #line 6725 "configure" 6778 #line 6779 "configure"
6725 #include "confdefs.h" 6779 #include "confdefs.h"
6726 /* Override any gcc2 internal prototype to avoid an error. */ 6780 /* Override any gcc2 internal prototype to avoid an error. */
6727 /* We use char because int might match the return type of a gcc2 6781 /* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */ 6782 builtin and then its argument prototype would still apply. */
6729 char ldap_open(); 6783 char ldap_open();
6730 6784
6731 int main() { 6785 int main() {
6732 ldap_open() 6786 ldap_open()
6733 ; return 0; } 6787 ; return 0; }
6734 EOF 6788 EOF
6735 if { (eval echo configure:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6789 if { (eval echo configure:6790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6736 rm -rf conftest* 6790 rm -rf conftest*
6737 eval "ac_cv_lib_$ac_lib_var=yes" 6791 eval "ac_cv_lib_$ac_lib_var=yes"
6738 else 6792 else
6739 echo "configure: failed program was:" >&5 6793 echo "configure: failed program was:" >&5
6740 cat conftest.$ac_ext >&5 6794 cat conftest.$ac_ext >&5
6781 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 6835 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6782 fi 6836 fi
6783 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 6837 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6784 do 6838 do
6785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6786 echo "configure:6787: checking for $ac_func" >&5 6840 echo "configure:6841: checking for $ac_func" >&5
6787 6841
6788 cat > conftest.$ac_ext <<EOF 6842 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure" 6843 #line 6844 "configure"
6790 #include "confdefs.h" 6844 #include "confdefs.h"
6791 /* System header to define __stub macros and hopefully few prototypes, 6845 /* System header to define __stub macros and hopefully few prototypes,
6792 which can conflict with char $ac_func(); below. */ 6846 which can conflict with char $ac_func(); below. */
6793 #include <assert.h> 6847 #include <assert.h>
6794 /* Override any gcc2 internal prototype to avoid an error. */ 6848 /* Override any gcc2 internal prototype to avoid an error. */
6807 $ac_func(); 6861 $ac_func();
6808 #endif 6862 #endif
6809 6863
6810 ; return 0; } 6864 ; return 0; }
6811 EOF 6865 EOF
6812 if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6866 if { (eval echo configure:6867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6813 rm -rf conftest* 6867 rm -rf conftest*
6814 eval "ac_cv_func_$ac_func=yes" 6868 eval "ac_cv_func_$ac_func=yes"
6815 else 6869 else
6816 echo "configure: failed program was:" >&5 6870 echo "configure: failed program was:" >&5
6817 cat conftest.$ac_ext >&5 6871 cat conftest.$ac_ext >&5
6839 fi 6893 fi
6840 6894
6841 6895
6842 if test "$window_system" != "none"; then 6896 if test "$window_system" != "none"; then
6843 echo "checking for graphics libraries" 1>&6 6897 echo "checking for graphics libraries" 1>&6
6844 echo "configure:6845: checking for graphics libraries" >&5 6898 echo "configure:6899: checking for graphics libraries" >&5
6845 6899
6846 xpm_problem="" 6900 xpm_problem=""
6847 if test -z "$with_xpm"; then 6901 if test -z "$with_xpm"; then
6848 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6902 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6849 echo "configure:6850: checking for Xpm - no older than 3.4f" >&5 6903 echo "configure:6904: checking for Xpm - no older than 3.4f" >&5
6850 xe_check_libs=-lXpm 6904 xe_check_libs=-lXpm
6851 cat > conftest.$ac_ext <<EOF 6905 cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure" 6906 #line 6907 "configure"
6853 #include "confdefs.h" 6907 #include "confdefs.h"
6854 #include <X11/xpm.h> 6908 #include <X11/xpm.h>
6855 int main(int c, char **v) { 6909 int main(int c, char **v) {
6856 return c == 1 ? 0 : 6910 return c == 1 ? 0 :
6857 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6911 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6858 XpmIncludeVersion < 30406 ? 2 : 0 ;} 6912 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6859 EOF 6913 EOF
6860 if { (eval echo configure:6861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6914 if { (eval echo configure:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6861 then 6915 then
6862 ./conftest dummy_arg; xpm_status=$?; 6916 ./conftest dummy_arg; xpm_status=$?;
6863 if test "$xpm_status" = "0"; then 6917 if test "$xpm_status" = "0"; then
6864 with_xpm=yes; 6918 with_xpm=yes;
6865 else 6919 else
6897 EOF 6951 EOF
6898 } 6952 }
6899 6953
6900 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6954 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6901 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 6955 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6902 echo "configure:6903: checking for \"FOR_MSW\" xpm" >&5 6956 echo "configure:6957: checking for \"FOR_MSW\" xpm" >&5
6903 xe_check_libs=-lXpm 6957 xe_check_libs=-lXpm
6904 cat > conftest.$ac_ext <<EOF 6958 cat > conftest.$ac_ext <<EOF
6905 #line 6906 "configure" 6959 #line 6960 "configure"
6906 #include "confdefs.h" 6960 #include "confdefs.h"
6907 6961
6908 int main() { 6962 int main() {
6909 XpmCreatePixmapFromData() 6963 XpmCreatePixmapFromData()
6910 ; return 0; } 6964 ; return 0; }
6911 EOF 6965 EOF
6912 if { (eval echo configure:6913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6966 if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6913 rm -rf conftest* 6967 rm -rf conftest*
6914 xpm_for_msw=no 6968 xpm_for_msw=no
6915 else 6969 else
6916 echo "configure: failed program was:" >&5 6970 echo "configure: failed program was:" >&5
6917 cat conftest.$ac_ext >&5 6971 cat conftest.$ac_ext >&5
6933 fi 6987 fi
6934 fi 6988 fi
6935 6989
6936 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 6990 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6937 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 6991 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6938 echo "configure:6939: checking for compface.h" >&5 6992 echo "configure:6993: checking for compface.h" >&5
6939 6993
6940 cat > conftest.$ac_ext <<EOF 6994 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure" 6995 #line 6996 "configure"
6942 #include "confdefs.h" 6996 #include "confdefs.h"
6943 #include <compface.h> 6997 #include <compface.h>
6944 EOF 6998 EOF
6945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6946 { (eval echo configure:6947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7000 { (eval echo configure:7001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6948 if test -z "$ac_err"; then 7002 if test -z "$ac_err"; then
6949 rm -rf conftest* 7003 rm -rf conftest*
6950 eval "ac_cv_header_$ac_safe=yes" 7004 eval "ac_cv_header_$ac_safe=yes"
6951 else 7005 else
6964 with_xface=no 7018 with_xface=no
6965 fi 7019 fi
6966 } 7020 }
6967 test -z "$with_xface" && { 7021 test -z "$with_xface" && {
6968 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7022 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6969 echo "configure:6970: checking for UnGenFace in -lcompface" >&5 7023 echo "configure:7024: checking for UnGenFace in -lcompface" >&5
6970 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7024 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6971 7025
6972 xe_check_libs=" -lcompface " 7026 xe_check_libs=" -lcompface "
6973 cat > conftest.$ac_ext <<EOF 7027 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure" 7028 #line 7029 "configure"
6975 #include "confdefs.h" 7029 #include "confdefs.h"
6976 /* Override any gcc2 internal prototype to avoid an error. */ 7030 /* Override any gcc2 internal prototype to avoid an error. */
6977 /* We use char because int might match the return type of a gcc2 7031 /* We use char because int might match the return type of a gcc2
6978 builtin and then its argument prototype would still apply. */ 7032 builtin and then its argument prototype would still apply. */
6979 char UnGenFace(); 7033 char UnGenFace();
6980 7034
6981 int main() { 7035 int main() {
6982 UnGenFace() 7036 UnGenFace()
6983 ; return 0; } 7037 ; return 0; }
6984 EOF 7038 EOF
6985 if { (eval echo configure:6986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6986 rm -rf conftest* 7040 rm -rf conftest*
6987 eval "ac_cv_lib_$ac_lib_var=yes" 7041 eval "ac_cv_lib_$ac_lib_var=yes"
6988 else 7042 else
6989 echo "configure: failed program was:" >&5 7043 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5 7044 cat conftest.$ac_ext >&5
7032 fi 7086 fi
7033 7087
7034 if test "$with_png $with_tiff" != "no no"; then 7088 if test "$with_png $with_tiff" != "no no"; then
7035 7089
7036 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 7090 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7037 echo "configure:7038: checking for inflate in -lc" >&5 7091 echo "configure:7092: checking for inflate in -lc" >&5
7038 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 7092 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7039 7093
7040 xe_check_libs=" -lc " 7094 xe_check_libs=" -lc "
7041 cat > conftest.$ac_ext <<EOF 7095 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure" 7096 #line 7097 "configure"
7043 #include "confdefs.h" 7097 #include "confdefs.h"
7044 /* Override any gcc2 internal prototype to avoid an error. */ 7098 /* Override any gcc2 internal prototype to avoid an error. */
7045 /* We use char because int might match the return type of a gcc2 7099 /* We use char because int might match the return type of a gcc2
7046 builtin and then its argument prototype would still apply. */ 7100 builtin and then its argument prototype would still apply. */
7047 char inflate(); 7101 char inflate();
7048 7102
7049 int main() { 7103 int main() {
7050 inflate() 7104 inflate()
7051 ; return 0; } 7105 ; return 0; }
7052 EOF 7106 EOF
7053 if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7107 if { (eval echo configure:7108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7054 rm -rf conftest* 7108 rm -rf conftest*
7055 eval "ac_cv_lib_$ac_lib_var=yes" 7109 eval "ac_cv_lib_$ac_lib_var=yes"
7056 else 7110 else
7057 echo "configure: failed program was:" >&5 7111 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5 7112 cat conftest.$ac_ext >&5
7067 : 7121 :
7068 else 7122 else
7069 echo "$ac_t""no" 1>&6 7123 echo "$ac_t""no" 1>&6
7070 7124
7071 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 7125 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7072 echo "configure:7073: checking for inflate in -lz" >&5 7126 echo "configure:7127: checking for inflate in -lz" >&5
7073 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 7127 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7074 7128
7075 xe_check_libs=" -lz " 7129 xe_check_libs=" -lz "
7076 cat > conftest.$ac_ext <<EOF 7130 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure" 7131 #line 7132 "configure"
7078 #include "confdefs.h" 7132 #include "confdefs.h"
7079 /* Override any gcc2 internal prototype to avoid an error. */ 7133 /* Override any gcc2 internal prototype to avoid an error. */
7080 /* We use char because int might match the return type of a gcc2 7134 /* We use char because int might match the return type of a gcc2
7081 builtin and then its argument prototype would still apply. */ 7135 builtin and then its argument prototype would still apply. */
7082 char inflate(); 7136 char inflate();
7083 7137
7084 int main() { 7138 int main() {
7085 inflate() 7139 inflate()
7086 ; return 0; } 7140 ; return 0; }
7087 EOF 7141 EOF
7088 if { (eval echo configure:7089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7142 if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7089 rm -rf conftest* 7143 rm -rf conftest*
7090 eval "ac_cv_lib_$ac_lib_var=yes" 7144 eval "ac_cv_lib_$ac_lib_var=yes"
7091 else 7145 else
7092 echo "configure: failed program was:" >&5 7146 echo "configure: failed program was:" >&5
7093 cat conftest.$ac_ext >&5 7147 cat conftest.$ac_ext >&5
7102 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 7156 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7103 else 7157 else
7104 echo "$ac_t""no" 1>&6 7158 echo "$ac_t""no" 1>&6
7105 7159
7106 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 7160 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7107 echo "configure:7108: checking for inflate in -lgz" >&5 7161 echo "configure:7162: checking for inflate in -lgz" >&5
7108 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 7162 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7109 7163
7110 xe_check_libs=" -lgz " 7164 xe_check_libs=" -lgz "
7111 cat > conftest.$ac_ext <<EOF 7165 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure" 7166 #line 7167 "configure"
7113 #include "confdefs.h" 7167 #include "confdefs.h"
7114 /* Override any gcc2 internal prototype to avoid an error. */ 7168 /* Override any gcc2 internal prototype to avoid an error. */
7115 /* We use char because int might match the return type of a gcc2 7169 /* We use char because int might match the return type of a gcc2
7116 builtin and then its argument prototype would still apply. */ 7170 builtin and then its argument prototype would still apply. */
7117 char inflate(); 7171 char inflate();
7118 7172
7119 int main() { 7173 int main() {
7120 inflate() 7174 inflate()
7121 ; return 0; } 7175 ; return 0; }
7122 EOF 7176 EOF
7123 if { (eval echo configure:7124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7177 if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7124 rm -rf conftest* 7178 rm -rf conftest*
7125 eval "ac_cv_lib_$ac_lib_var=yes" 7179 eval "ac_cv_lib_$ac_lib_var=yes"
7126 else 7180 else
7127 echo "configure: failed program was:" >&5 7181 echo "configure: failed program was:" >&5
7128 cat conftest.$ac_ext >&5 7182 cat conftest.$ac_ext >&5
7148 7202
7149 fi 7203 fi
7150 7204
7151 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 7205 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7152 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 7206 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7153 echo "configure:7154: checking for jpeglib.h" >&5 7207 echo "configure:7208: checking for jpeglib.h" >&5
7154 7208
7155 cat > conftest.$ac_ext <<EOF 7209 cat > conftest.$ac_ext <<EOF
7156 #line 7157 "configure" 7210 #line 7211 "configure"
7157 #include "confdefs.h" 7211 #include "confdefs.h"
7158 #include <jpeglib.h> 7212 #include <jpeglib.h>
7159 EOF 7213 EOF
7160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7161 { (eval echo configure:7162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7215 { (eval echo configure:7216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7163 if test -z "$ac_err"; then 7217 if test -z "$ac_err"; then
7164 rm -rf conftest* 7218 rm -rf conftest*
7165 eval "ac_cv_header_$ac_safe=yes" 7219 eval "ac_cv_header_$ac_safe=yes"
7166 else 7220 else
7179 with_jpeg=no 7233 with_jpeg=no
7180 fi 7234 fi
7181 } 7235 }
7182 test -z "$with_jpeg" && { 7236 test -z "$with_jpeg" && {
7183 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 7237 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7184 echo "configure:7185: checking for jpeg_destroy_decompress in -ljpeg" >&5 7238 echo "configure:7239: checking for jpeg_destroy_decompress in -ljpeg" >&5
7185 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 7239 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7186 7240
7187 xe_check_libs=" -ljpeg " 7241 xe_check_libs=" -ljpeg "
7188 cat > conftest.$ac_ext <<EOF 7242 cat > conftest.$ac_ext <<EOF
7189 #line 7190 "configure" 7243 #line 7244 "configure"
7190 #include "confdefs.h" 7244 #include "confdefs.h"
7191 /* Override any gcc2 internal prototype to avoid an error. */ 7245 /* Override any gcc2 internal prototype to avoid an error. */
7192 /* We use char because int might match the return type of a gcc2 7246 /* We use char because int might match the return type of a gcc2
7193 builtin and then its argument prototype would still apply. */ 7247 builtin and then its argument prototype would still apply. */
7194 char jpeg_destroy_decompress(); 7248 char jpeg_destroy_decompress();
7195 7249
7196 int main() { 7250 int main() {
7197 jpeg_destroy_decompress() 7251 jpeg_destroy_decompress()
7198 ; return 0; } 7252 ; return 0; }
7199 EOF 7253 EOF
7200 if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7254 if { (eval echo configure:7255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7201 rm -rf conftest* 7255 rm -rf conftest*
7202 eval "ac_cv_lib_$ac_lib_var=yes" 7256 eval "ac_cv_lib_$ac_lib_var=yes"
7203 else 7257 else
7204 echo "configure: failed program was:" >&5 7258 echo "configure: failed program was:" >&5
7205 cat conftest.$ac_ext >&5 7259 cat conftest.$ac_ext >&5
7231 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 7285 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7232 fi 7286 fi
7233 7287
7234 png_problem="" 7288 png_problem=""
7235 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 7289 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7236 echo "configure:7237: checking for pow" >&5 7290 echo "configure:7291: checking for pow" >&5
7237 7291
7238 cat > conftest.$ac_ext <<EOF 7292 cat > conftest.$ac_ext <<EOF
7239 #line 7240 "configure" 7293 #line 7294 "configure"
7240 #include "confdefs.h" 7294 #include "confdefs.h"
7241 /* System header to define __stub macros and hopefully few prototypes, 7295 /* System header to define __stub macros and hopefully few prototypes,
7242 which can conflict with char pow(); below. */ 7296 which can conflict with char pow(); below. */
7243 #include <assert.h> 7297 #include <assert.h>
7244 /* Override any gcc2 internal prototype to avoid an error. */ 7298 /* Override any gcc2 internal prototype to avoid an error. */
7257 pow(); 7311 pow();
7258 #endif 7312 #endif
7259 7313
7260 ; return 0; } 7314 ; return 0; }
7261 EOF 7315 EOF
7262 if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7316 if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7263 rm -rf conftest* 7317 rm -rf conftest*
7264 eval "ac_cv_func_pow=yes" 7318 eval "ac_cv_func_pow=yes"
7265 else 7319 else
7266 echo "configure: failed program was:" >&5 7320 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5 7321 cat conftest.$ac_ext >&5
7278 with_png=no 7332 with_png=no
7279 fi 7333 fi
7280 } 7334 }
7281 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 7335 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7282 echo $ac_n "checking for png.h""... $ac_c" 1>&6 7336 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7283 echo "configure:7284: checking for png.h" >&5 7337 echo "configure:7338: checking for png.h" >&5
7284 7338
7285 cat > conftest.$ac_ext <<EOF 7339 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure" 7340 #line 7341 "configure"
7287 #include "confdefs.h" 7341 #include "confdefs.h"
7288 #include <png.h> 7342 #include <png.h>
7289 EOF 7343 EOF
7290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7291 { (eval echo configure:7292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7345 { (eval echo configure:7346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7293 if test -z "$ac_err"; then 7347 if test -z "$ac_err"; then
7294 rm -rf conftest* 7348 rm -rf conftest*
7295 eval "ac_cv_header_$ac_safe=yes" 7349 eval "ac_cv_header_$ac_safe=yes"
7296 else 7350 else
7309 with_png=no 7363 with_png=no
7310 fi 7364 fi
7311 } 7365 }
7312 test -z "$with_png" && { 7366 test -z "$with_png" && {
7313 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 7367 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7314 echo "configure:7315: checking for png_read_image in -lpng" >&5 7368 echo "configure:7369: checking for png_read_image in -lpng" >&5
7315 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 7369 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7316 7370
7317 xe_check_libs=" -lpng " 7371 xe_check_libs=" -lpng "
7318 cat > conftest.$ac_ext <<EOF 7372 cat > conftest.$ac_ext <<EOF
7319 #line 7320 "configure" 7373 #line 7374 "configure"
7320 #include "confdefs.h" 7374 #include "confdefs.h"
7321 /* Override any gcc2 internal prototype to avoid an error. */ 7375 /* Override any gcc2 internal prototype to avoid an error. */
7322 /* We use char because int might match the return type of a gcc2 7376 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */ 7377 builtin and then its argument prototype would still apply. */
7324 char png_read_image(); 7378 char png_read_image();
7325 7379
7326 int main() { 7380 int main() {
7327 png_read_image() 7381 png_read_image()
7328 ; return 0; } 7382 ; return 0; }
7329 EOF 7383 EOF
7330 if { (eval echo configure:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7384 if { (eval echo configure:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7331 rm -rf conftest* 7385 rm -rf conftest*
7332 eval "ac_cv_lib_$ac_lib_var=yes" 7386 eval "ac_cv_lib_$ac_lib_var=yes"
7333 else 7387 else
7334 echo "configure: failed program was:" >&5 7388 echo "configure: failed program was:" >&5
7335 cat conftest.$ac_ext >&5 7389 cat conftest.$ac_ext >&5
7348 fi 7402 fi
7349 7403
7350 } 7404 }
7351 if test -z "$with_png"; then 7405 if test -z "$with_png"; then
7352 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 7406 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7353 echo "configure:7354: checking for workable png version information" >&5 7407 echo "configure:7408: checking for workable png version information" >&5
7354 xe_check_libs="-lpng -lz" 7408 xe_check_libs="-lpng -lz"
7355 cat > conftest.$ac_ext <<EOF 7409 cat > conftest.$ac_ext <<EOF
7356 #line 7357 "configure" 7410 #line 7411 "configure"
7357 #include "confdefs.h" 7411 #include "confdefs.h"
7358 #include <png.h> 7412 #include <png.h>
7359 int main(int c, char **v) { 7413 int main(int c, char **v) {
7360 if (c == 1) return 0; 7414 if (c == 1) return 0;
7361 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 7415 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7362 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 7416 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7363 EOF 7417 EOF
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7418 if { (eval echo configure:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7365 then 7419 then
7366 ./conftest dummy_arg; png_status=$?; 7420 ./conftest dummy_arg; png_status=$?;
7367 if test "$png_status" = "0"; then 7421 if test "$png_status" = "0"; then
7368 with_png=yes; 7422 with_png=yes;
7369 else 7423 else
7402 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 7456 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7403 fi 7457 fi
7404 7458
7405 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 7459 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7406 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7460 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7407 echo "configure:7408: checking for tiffio.h" >&5 7461 echo "configure:7462: checking for tiffio.h" >&5
7408 7462
7409 cat > conftest.$ac_ext <<EOF 7463 cat > conftest.$ac_ext <<EOF
7410 #line 7411 "configure" 7464 #line 7465 "configure"
7411 #include "confdefs.h" 7465 #include "confdefs.h"
7412 #include <tiffio.h> 7466 #include <tiffio.h>
7413 EOF 7467 EOF
7414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7415 { (eval echo configure:7416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7469 { (eval echo configure:7470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7417 if test -z "$ac_err"; then 7471 if test -z "$ac_err"; then
7418 rm -rf conftest* 7472 rm -rf conftest*
7419 eval "ac_cv_header_$ac_safe=yes" 7473 eval "ac_cv_header_$ac_safe=yes"
7420 else 7474 else
7433 with_tiff=no 7487 with_tiff=no
7434 fi 7488 fi
7435 } 7489 }
7436 test -z "$with_tiff" && { 7490 test -z "$with_tiff" && {
7437 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7491 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7438 echo "configure:7439: checking for TIFFClientOpen in -ltiff" >&5 7492 echo "configure:7493: checking for TIFFClientOpen in -ltiff" >&5
7439 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7493 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7440 7494
7441 xe_check_libs=" -ltiff " 7495 xe_check_libs=" -ltiff "
7442 cat > conftest.$ac_ext <<EOF 7496 cat > conftest.$ac_ext <<EOF
7443 #line 7444 "configure" 7497 #line 7498 "configure"
7444 #include "confdefs.h" 7498 #include "confdefs.h"
7445 /* Override any gcc2 internal prototype to avoid an error. */ 7499 /* Override any gcc2 internal prototype to avoid an error. */
7446 /* We use char because int might match the return type of a gcc2 7500 /* We use char because int might match the return type of a gcc2
7447 builtin and then its argument prototype would still apply. */ 7501 builtin and then its argument prototype would still apply. */
7448 char TIFFClientOpen(); 7502 char TIFFClientOpen();
7449 7503
7450 int main() { 7504 int main() {
7451 TIFFClientOpen() 7505 TIFFClientOpen()
7452 ; return 0; } 7506 ; return 0; }
7453 EOF 7507 EOF
7454 if { (eval echo configure:7455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7508 if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7455 rm -rf conftest* 7509 rm -rf conftest*
7456 eval "ac_cv_lib_$ac_lib_var=yes" 7510 eval "ac_cv_lib_$ac_lib_var=yes"
7457 else 7511 else
7458 echo "configure: failed program was:" >&5 7512 echo "configure: failed program was:" >&5
7459 cat conftest.$ac_ext >&5 7513 cat conftest.$ac_ext >&5
7488 7542
7489 7543
7490 if test "$with_x11" = "yes"; then 7544 if test "$with_x11" = "yes"; then
7491 7545
7492 echo "checking for X11 graphics libraries" 1>&6 7546 echo "checking for X11 graphics libraries" 1>&6
7493 echo "configure:7494: checking for X11 graphics libraries" >&5 7547 echo "configure:7548: checking for X11 graphics libraries" >&5
7494 7548
7495 7549
7496 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 7550 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7497 echo "configure:7498: checking for XawScrollbarSetThumb in -lXaw" >&5 7551 echo "configure:7552: checking for XawScrollbarSetThumb in -lXaw" >&5
7498 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7552 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7499 7553
7500 xe_check_libs=" -lXaw " 7554 xe_check_libs=" -lXaw "
7501 cat > conftest.$ac_ext <<EOF 7555 cat > conftest.$ac_ext <<EOF
7502 #line 7503 "configure" 7556 #line 7557 "configure"
7503 #include "confdefs.h" 7557 #include "confdefs.h"
7504 /* Override any gcc2 internal prototype to avoid an error. */ 7558 /* Override any gcc2 internal prototype to avoid an error. */
7505 /* We use char because int might match the return type of a gcc2 7559 /* We use char because int might match the return type of a gcc2
7506 builtin and then its argument prototype would still apply. */ 7560 builtin and then its argument prototype would still apply. */
7507 char XawScrollbarSetThumb(); 7561 char XawScrollbarSetThumb();
7508 7562
7509 int main() { 7563 int main() {
7510 XawScrollbarSetThumb() 7564 XawScrollbarSetThumb()
7511 ; return 0; } 7565 ; return 0; }
7512 EOF 7566 EOF
7513 if { (eval echo configure:7514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7567 if { (eval echo configure:7568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7514 rm -rf conftest* 7568 rm -rf conftest*
7515 eval "ac_cv_lib_$ac_lib_var=yes" 7569 eval "ac_cv_lib_$ac_lib_var=yes"
7516 else 7570 else
7517 echo "configure: failed program was:" >&5 7571 echo "configure: failed program was:" >&5
7518 cat conftest.$ac_ext >&5 7572 cat conftest.$ac_ext >&5
7532 7586
7533 7587
7534 7588
7535 7589
7536 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 7590 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
7537 echo "configure:7538: checking for XawScrollbarSetThumb in -lXaw3d" >&5 7591 echo "configure:7592: checking for XawScrollbarSetThumb in -lXaw3d" >&5
7538 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7592 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7539 7593
7540 xe_check_libs=" -lXaw3d " 7594 xe_check_libs=" -lXaw3d "
7541 cat > conftest.$ac_ext <<EOF 7595 cat > conftest.$ac_ext <<EOF
7542 #line 7543 "configure" 7596 #line 7597 "configure"
7543 #include "confdefs.h" 7597 #include "confdefs.h"
7544 /* Override any gcc2 internal prototype to avoid an error. */ 7598 /* Override any gcc2 internal prototype to avoid an error. */
7545 /* We use char because int might match the return type of a gcc2 7599 /* We use char because int might match the return type of a gcc2
7546 builtin and then its argument prototype would still apply. */ 7600 builtin and then its argument prototype would still apply. */
7547 char XawScrollbarSetThumb(); 7601 char XawScrollbarSetThumb();
7548 7602
7549 int main() { 7603 int main() {
7550 XawScrollbarSetThumb() 7604 XawScrollbarSetThumb()
7551 ; return 0; } 7605 ; return 0; }
7552 EOF 7606 EOF
7553 if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7607 if { (eval echo configure:7608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7554 rm -rf conftest* 7608 rm -rf conftest*
7555 eval "ac_cv_lib_$ac_lib_var=yes" 7609 eval "ac_cv_lib_$ac_lib_var=yes"
7556 else 7610 else
7557 echo "configure: failed program was:" >&5 7611 echo "configure: failed program was:" >&5
7558 cat conftest.$ac_ext >&5 7612 cat conftest.$ac_ext >&5
7572 7626
7573 7627
7574 7628
7575 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 7629 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7576 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 7630 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7577 echo "configure:7578: checking for Xm/Xm.h" >&5 7631 echo "configure:7632: checking for Xm/Xm.h" >&5
7578 7632
7579 cat > conftest.$ac_ext <<EOF 7633 cat > conftest.$ac_ext <<EOF
7580 #line 7581 "configure" 7634 #line 7635 "configure"
7581 #include "confdefs.h" 7635 #include "confdefs.h"
7582 #include <Xm/Xm.h> 7636 #include <Xm/Xm.h>
7583 EOF 7637 EOF
7584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7585 { (eval echo configure:7586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7639 { (eval echo configure:7640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7587 if test -z "$ac_err"; then 7641 if test -z "$ac_err"; then
7588 rm -rf conftest* 7642 rm -rf conftest*
7589 eval "ac_cv_header_$ac_safe=yes" 7643 eval "ac_cv_header_$ac_safe=yes"
7590 else 7644 else
7597 rm -f conftest* 7651 rm -f conftest*
7598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7599 echo "$ac_t""yes" 1>&6 7653 echo "$ac_t""yes" 1>&6
7600 7654
7601 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 7655 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7602 echo "configure:7603: checking for XmStringFree in -lXm" >&5 7656 echo "configure:7657: checking for XmStringFree in -lXm" >&5
7603 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 7657 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7604 7658
7605 xe_check_libs=" -lXm " 7659 xe_check_libs=" -lXm "
7606 cat > conftest.$ac_ext <<EOF 7660 cat > conftest.$ac_ext <<EOF
7607 #line 7608 "configure" 7661 #line 7662 "configure"
7608 #include "confdefs.h" 7662 #include "confdefs.h"
7609 /* Override any gcc2 internal prototype to avoid an error. */ 7663 /* Override any gcc2 internal prototype to avoid an error. */
7610 /* We use char because int might match the return type of a gcc2 7664 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */ 7665 builtin and then its argument prototype would still apply. */
7612 char XmStringFree(); 7666 char XmStringFree();
7613 7667
7614 int main() { 7668 int main() {
7615 XmStringFree() 7669 XmStringFree()
7616 ; return 0; } 7670 ; return 0; }
7617 EOF 7671 EOF
7618 if { (eval echo configure:7619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7672 if { (eval echo configure:7673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7619 rm -rf conftest* 7673 rm -rf conftest*
7620 eval "ac_cv_lib_$ac_lib_var=yes" 7674 eval "ac_cv_lib_$ac_lib_var=yes"
7621 else 7675 else
7622 echo "configure: failed program was:" >&5 7676 echo "configure: failed program was:" >&5
7623 cat conftest.$ac_ext >&5 7677 cat conftest.$ac_ext >&5
7642 fi 7696 fi
7643 7697
7644 7698
7645 if test "$have_motif" = "yes"; then 7699 if test "$have_motif" = "yes"; then
7646 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 7700 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7647 echo "configure:7648: checking for Lesstif" >&5 7701 echo "configure:7702: checking for Lesstif" >&5
7648 cat > conftest.$ac_ext <<EOF 7702 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure" 7703 #line 7704 "configure"
7650 #include "confdefs.h" 7704 #include "confdefs.h"
7651 #include <Xm/Xm.h> 7705 #include <Xm/Xm.h>
7652 #ifdef LESSTIF_VERSION 7706 #ifdef LESSTIF_VERSION
7653 yes 7707 yes
7654 #endif 7708 #endif
7949 fi 8003 fi
7950 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then 8004 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7951 echo " xemacs will be linked with \"gui-x.o\"" 8005 echo " xemacs will be linked with \"gui-x.o\""
7952 fi 8006 fi
7953 else 8007 else
7954 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then 8008 if test "$with_nas_sound" = "nas"; then
7955 echo "Attempt to Build NAS sound without X" 8009 echo "Attempt to Build NAS sound without X"
7956 echo "Please remove NAS configuration or build with X" 8010 echo "Please remove NAS configuration or build with X"
7957 exit 1 8011 exit 1
7958 fi 8012 fi
7959 fi 8013 fi
7977 fi 8031 fi
7978 fi 8032 fi
7979 8033
7980 if test "$with_mule" = "yes" ; then 8034 if test "$with_mule" = "yes" ; then
7981 echo "checking for Mule-related features" 1>&6 8035 echo "checking for Mule-related features" 1>&6
7982 echo "configure:7983: checking for Mule-related features" >&5 8036 echo "configure:8037: checking for Mule-related features" >&5
7983 { test "$extra_verbose" = "yes" && cat << \EOF 8037 { test "$extra_verbose" = "yes" && cat << \EOF
7984 Defining MULE 8038 Defining MULE
7985 EOF 8039 EOF
7986 cat >> confdefs.h <<\EOF 8040 cat >> confdefs.h <<\EOF
7987 #define MULE 1 8041 #define MULE 1
8002 8056
8003 for ac_hdr in libintl.h 8057 for ac_hdr in libintl.h
8004 do 8058 do
8005 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 8059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 8060 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8007 echo "configure:8008: checking for $ac_hdr" >&5 8061 echo "configure:8062: checking for $ac_hdr" >&5
8008 8062
8009 cat > conftest.$ac_ext <<EOF 8063 cat > conftest.$ac_ext <<EOF
8010 #line 8011 "configure" 8064 #line 8065 "configure"
8011 #include "confdefs.h" 8065 #include "confdefs.h"
8012 #include <$ac_hdr> 8066 #include <$ac_hdr>
8013 EOF 8067 EOF
8014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8015 { (eval echo configure:8016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8069 { (eval echo configure:8070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8017 if test -z "$ac_err"; then 8071 if test -z "$ac_err"; then
8018 rm -rf conftest* 8072 rm -rf conftest*
8019 eval "ac_cv_header_$ac_safe=yes" 8073 eval "ac_cv_header_$ac_safe=yes"
8020 else 8074 else
8041 fi 8095 fi
8042 done 8096 done
8043 8097
8044 8098
8045 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 8099 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8046 echo "configure:8047: checking for strerror in -lintl" >&5 8100 echo "configure:8101: checking for strerror in -lintl" >&5
8047 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 8101 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8048 8102
8049 xe_check_libs=" -lintl " 8103 xe_check_libs=" -lintl "
8050 cat > conftest.$ac_ext <<EOF 8104 cat > conftest.$ac_ext <<EOF
8051 #line 8052 "configure" 8105 #line 8106 "configure"
8052 #include "confdefs.h" 8106 #include "confdefs.h"
8053 /* Override any gcc2 internal prototype to avoid an error. */ 8107 /* Override any gcc2 internal prototype to avoid an error. */
8054 /* We use char because int might match the return type of a gcc2 8108 /* We use char because int might match the return type of a gcc2
8055 builtin and then its argument prototype would still apply. */ 8109 builtin and then its argument prototype would still apply. */
8056 char strerror(); 8110 char strerror();
8057 8111
8058 int main() { 8112 int main() {
8059 strerror() 8113 strerror()
8060 ; return 0; } 8114 ; return 0; }
8061 EOF 8115 EOF
8062 if { (eval echo configure:8063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8116 if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8063 rm -rf conftest* 8117 rm -rf conftest*
8064 eval "ac_cv_lib_$ac_lib_var=yes" 8118 eval "ac_cv_lib_$ac_lib_var=yes"
8065 else 8119 else
8066 echo "configure: failed program was:" >&5 8120 echo "configure: failed program was:" >&5
8067 cat conftest.$ac_ext >&5 8121 cat conftest.$ac_ext >&5
8090 fi 8144 fi
8091 8145
8092 8146
8093 8147
8094 echo "checking for Mule input methods" 1>&6 8148 echo "checking for Mule input methods" 1>&6
8095 echo "configure:8096: checking for Mule input methods" >&5 8149 echo "configure:8150: checking for Mule input methods" >&5
8096 case "$with_xim" in "" | "yes" ) 8150 case "$with_xim" in "" | "yes" )
8097 echo "checking for XIM" 1>&6 8151 echo "checking for XIM" 1>&6
8098 echo "configure:8099: checking for XIM" >&5 8152 echo "configure:8153: checking for XIM" >&5
8099 8153
8100 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 8154 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8101 echo "configure:8102: checking for XOpenIM in -lX11" >&5 8155 echo "configure:8156: checking for XOpenIM in -lX11" >&5
8102 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 8156 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8103 8157
8104 xe_check_libs=" -lX11 " 8158 xe_check_libs=" -lX11 "
8105 cat > conftest.$ac_ext <<EOF 8159 cat > conftest.$ac_ext <<EOF
8106 #line 8107 "configure" 8160 #line 8161 "configure"
8107 #include "confdefs.h" 8161 #include "confdefs.h"
8108 /* Override any gcc2 internal prototype to avoid an error. */ 8162 /* Override any gcc2 internal prototype to avoid an error. */
8109 /* We use char because int might match the return type of a gcc2 8163 /* We use char because int might match the return type of a gcc2
8110 builtin and then its argument prototype would still apply. */ 8164 builtin and then its argument prototype would still apply. */
8111 char XOpenIM(); 8165 char XOpenIM();
8112 8166
8113 int main() { 8167 int main() {
8114 XOpenIM() 8168 XOpenIM()
8115 ; return 0; } 8169 ; return 0; }
8116 EOF 8170 EOF
8117 if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8171 if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8118 rm -rf conftest* 8172 rm -rf conftest*
8119 eval "ac_cv_lib_$ac_lib_var=yes" 8173 eval "ac_cv_lib_$ac_lib_var=yes"
8120 else 8174 else
8121 echo "configure: failed program was:" >&5 8175 echo "configure: failed program was:" >&5
8122 cat conftest.$ac_ext >&5 8176 cat conftest.$ac_ext >&5
8136 8190
8137 8191
8138 if test "$have_motif $have_lesstif" = "yes no"; then 8192 if test "$have_motif $have_lesstif" = "yes no"; then
8139 8193
8140 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 8194 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8141 echo "configure:8142: checking for XmImMbLookupString in -lXm" >&5 8195 echo "configure:8196: checking for XmImMbLookupString in -lXm" >&5
8142 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 8196 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8143 8197
8144 xe_check_libs=" -lXm " 8198 xe_check_libs=" -lXm "
8145 cat > conftest.$ac_ext <<EOF 8199 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure" 8200 #line 8201 "configure"
8147 #include "confdefs.h" 8201 #include "confdefs.h"
8148 /* Override any gcc2 internal prototype to avoid an error. */ 8202 /* Override any gcc2 internal prototype to avoid an error. */
8149 /* We use char because int might match the return type of a gcc2 8203 /* We use char because int might match the return type of a gcc2
8150 builtin and then its argument prototype would still apply. */ 8204 builtin and then its argument prototype would still apply. */
8151 char XmImMbLookupString(); 8205 char XmImMbLookupString();
8152 8206
8153 int main() { 8207 int main() {
8154 XmImMbLookupString() 8208 XmImMbLookupString()
8155 ; return 0; } 8209 ; return 0; }
8156 EOF 8210 EOF
8157 if { (eval echo configure:8158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8211 if { (eval echo configure:8212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8158 rm -rf conftest* 8212 rm -rf conftest*
8159 eval "ac_cv_lib_$ac_lib_var=yes" 8213 eval "ac_cv_lib_$ac_lib_var=yes"
8160 else 8214 else
8161 echo "configure: failed program was:" >&5 8215 echo "configure: failed program was:" >&5
8162 cat conftest.$ac_ext >&5 8216 cat conftest.$ac_ext >&5
8217 fi 8271 fi
8218 fi 8272 fi
8219 8273
8220 if test "$with_xfs" = "yes" ; then 8274 if test "$with_xfs" = "yes" ; then
8221 echo "checking for XFontSet" 1>&6 8275 echo "checking for XFontSet" 1>&6
8222 echo "configure:8223: checking for XFontSet" >&5 8276 echo "configure:8277: checking for XFontSet" >&5
8223 8277
8224 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 8278 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8225 echo "configure:8226: checking for XmbDrawString in -lX11" >&5 8279 echo "configure:8280: checking for XmbDrawString in -lX11" >&5
8226 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 8280 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8227 8281
8228 xe_check_libs=" -lX11 " 8282 xe_check_libs=" -lX11 "
8229 cat > conftest.$ac_ext <<EOF 8283 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure" 8284 #line 8285 "configure"
8231 #include "confdefs.h" 8285 #include "confdefs.h"
8232 /* Override any gcc2 internal prototype to avoid an error. */ 8286 /* Override any gcc2 internal prototype to avoid an error. */
8233 /* We use char because int might match the return type of a gcc2 8287 /* We use char because int might match the return type of a gcc2
8234 builtin and then its argument prototype would still apply. */ 8288 builtin and then its argument prototype would still apply. */
8235 char XmbDrawString(); 8289 char XmbDrawString();
8236 8290
8237 int main() { 8291 int main() {
8238 XmbDrawString() 8292 XmbDrawString()
8239 ; return 0; } 8293 ; return 0; }
8240 EOF 8294 EOF
8241 if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242 rm -rf conftest* 8296 rm -rf conftest*
8243 eval "ac_cv_lib_$ac_lib_var=yes" 8297 eval "ac_cv_lib_$ac_lib_var=yes"
8244 else 8298 else
8245 echo "configure: failed program was:" >&5 8299 echo "configure: failed program was:" >&5
8246 cat conftest.$ac_ext >&5 8300 cat conftest.$ac_ext >&5
8276 fi 8330 fi
8277 fi 8331 fi
8278 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 8332 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8279 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 8333 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8280 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 8334 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8281 echo "configure:8282: checking for wnn/jllib.h" >&5 8335 echo "configure:8336: checking for wnn/jllib.h" >&5
8282 8336
8283 cat > conftest.$ac_ext <<EOF 8337 cat > conftest.$ac_ext <<EOF
8284 #line 8285 "configure" 8338 #line 8339 "configure"
8285 #include "confdefs.h" 8339 #include "confdefs.h"
8286 #include <wnn/jllib.h> 8340 #include <wnn/jllib.h>
8287 EOF 8341 EOF
8288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8289 { (eval echo configure:8290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8343 { (eval echo configure:8344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8291 if test -z "$ac_err"; then 8345 if test -z "$ac_err"; then
8292 rm -rf conftest* 8346 rm -rf conftest*
8293 eval "ac_cv_header_$ac_safe=yes" 8347 eval "ac_cv_header_$ac_safe=yes"
8294 else 8348 else
8309 } 8363 }
8310 if test "$with_wnn" != "no"; then 8364 if test "$with_wnn" != "no"; then
8311 for ac_func in crypt 8365 for ac_func in crypt
8312 do 8366 do
8313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8314 echo "configure:8315: checking for $ac_func" >&5 8368 echo "configure:8369: checking for $ac_func" >&5
8315 8369
8316 cat > conftest.$ac_ext <<EOF 8370 cat > conftest.$ac_ext <<EOF
8317 #line 8318 "configure" 8371 #line 8372 "configure"
8318 #include "confdefs.h" 8372 #include "confdefs.h"
8319 /* System header to define __stub macros and hopefully few prototypes, 8373 /* System header to define __stub macros and hopefully few prototypes,
8320 which can conflict with char $ac_func(); below. */ 8374 which can conflict with char $ac_func(); below. */
8321 #include <assert.h> 8375 #include <assert.h>
8322 /* Override any gcc2 internal prototype to avoid an error. */ 8376 /* Override any gcc2 internal prototype to avoid an error. */
8335 $ac_func(); 8389 $ac_func();
8336 #endif 8390 #endif
8337 8391
8338 ; return 0; } 8392 ; return 0; }
8339 EOF 8393 EOF
8340 if { (eval echo configure:8341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8394 if { (eval echo configure:8395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8341 rm -rf conftest* 8395 rm -rf conftest*
8342 eval "ac_cv_func_$ac_func=yes" 8396 eval "ac_cv_func_$ac_func=yes"
8343 else 8397 else
8344 echo "configure: failed program was:" >&5 8398 echo "configure: failed program was:" >&5
8345 cat conftest.$ac_ext >&5 8399 cat conftest.$ac_ext >&5
8364 fi 8418 fi
8365 done 8419 done
8366 8420
8367 test "$ac_cv_func_crypt" != "yes" && { 8421 test "$ac_cv_func_crypt" != "yes" && {
8368 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 8422 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8369 echo "configure:8370: checking for crypt in -lcrypt" >&5 8423 echo "configure:8424: checking for crypt in -lcrypt" >&5
8370 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 8424 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8371 8425
8372 xe_check_libs=" -lcrypt " 8426 xe_check_libs=" -lcrypt "
8373 cat > conftest.$ac_ext <<EOF 8427 cat > conftest.$ac_ext <<EOF
8374 #line 8375 "configure" 8428 #line 8429 "configure"
8375 #include "confdefs.h" 8429 #include "confdefs.h"
8376 /* Override any gcc2 internal prototype to avoid an error. */ 8430 /* Override any gcc2 internal prototype to avoid an error. */
8377 /* We use char because int might match the return type of a gcc2 8431 /* We use char because int might match the return type of a gcc2
8378 builtin and then its argument prototype would still apply. */ 8432 builtin and then its argument prototype would still apply. */
8379 char crypt(); 8433 char crypt();
8380 8434
8381 int main() { 8435 int main() {
8382 crypt() 8436 crypt()
8383 ; return 0; } 8437 ; return 0; }
8384 EOF 8438 EOF
8385 if { (eval echo configure:8386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8439 if { (eval echo configure:8440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8386 rm -rf conftest* 8440 rm -rf conftest*
8387 eval "ac_cv_lib_$ac_lib_var=yes" 8441 eval "ac_cv_lib_$ac_lib_var=yes"
8388 else 8442 else
8389 echo "configure: failed program was:" >&5 8443 echo "configure: failed program was:" >&5
8390 cat conftest.$ac_ext >&5 8444 cat conftest.$ac_ext >&5
8415 } 8469 }
8416 fi 8470 fi
8417 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 8471 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8418 8472
8419 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 8473 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8420 echo "configure:8421: checking for jl_dic_list_e in -lwnn" >&5 8474 echo "configure:8475: checking for jl_dic_list_e in -lwnn" >&5
8421 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8475 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8422 8476
8423 xe_check_libs=" -lwnn " 8477 xe_check_libs=" -lwnn "
8424 cat > conftest.$ac_ext <<EOF 8478 cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure" 8479 #line 8480 "configure"
8426 #include "confdefs.h" 8480 #include "confdefs.h"
8427 /* Override any gcc2 internal prototype to avoid an error. */ 8481 /* Override any gcc2 internal prototype to avoid an error. */
8428 /* We use char because int might match the return type of a gcc2 8482 /* We use char because int might match the return type of a gcc2
8429 builtin and then its argument prototype would still apply. */ 8483 builtin and then its argument prototype would still apply. */
8430 char jl_dic_list_e(); 8484 char jl_dic_list_e();
8431 8485
8432 int main() { 8486 int main() {
8433 jl_dic_list_e() 8487 jl_dic_list_e()
8434 ; return 0; } 8488 ; return 0; }
8435 EOF 8489 EOF
8436 if { (eval echo configure:8437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8490 if { (eval echo configure:8491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8437 rm -rf conftest* 8491 rm -rf conftest*
8438 eval "ac_cv_lib_$ac_lib_var=yes" 8492 eval "ac_cv_lib_$ac_lib_var=yes"
8439 else 8493 else
8440 echo "configure: failed program was:" >&5 8494 echo "configure: failed program was:" >&5
8441 cat conftest.$ac_ext >&5 8495 cat conftest.$ac_ext >&5
8449 echo "$ac_t""yes" 1>&6 8503 echo "$ac_t""yes" 1>&6
8450 libwnn=wnn 8504 libwnn=wnn
8451 else 8505 else
8452 echo "$ac_t""no" 1>&6 8506 echo "$ac_t""no" 1>&6
8453 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 8507 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8454 echo "configure:8455: checking for jl_dic_list_e in -lwnn4" >&5 8508 echo "configure:8509: checking for jl_dic_list_e in -lwnn4" >&5
8455 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8509 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8456 8510
8457 xe_check_libs=" -lwnn4 " 8511 xe_check_libs=" -lwnn4 "
8458 cat > conftest.$ac_ext <<EOF 8512 cat > conftest.$ac_ext <<EOF
8459 #line 8460 "configure" 8513 #line 8514 "configure"
8460 #include "confdefs.h" 8514 #include "confdefs.h"
8461 /* Override any gcc2 internal prototype to avoid an error. */ 8515 /* Override any gcc2 internal prototype to avoid an error. */
8462 /* We use char because int might match the return type of a gcc2 8516 /* We use char because int might match the return type of a gcc2
8463 builtin and then its argument prototype would still apply. */ 8517 builtin and then its argument prototype would still apply. */
8464 char jl_dic_list_e(); 8518 char jl_dic_list_e();
8465 8519
8466 int main() { 8520 int main() {
8467 jl_dic_list_e() 8521 jl_dic_list_e()
8468 ; return 0; } 8522 ; return 0; }
8469 EOF 8523 EOF
8470 if { (eval echo configure:8471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8524 if { (eval echo configure:8525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8471 rm -rf conftest* 8525 rm -rf conftest*
8472 eval "ac_cv_lib_$ac_lib_var=yes" 8526 eval "ac_cv_lib_$ac_lib_var=yes"
8473 else 8527 else
8474 echo "configure: failed program was:" >&5 8528 echo "configure: failed program was:" >&5
8475 cat conftest.$ac_ext >&5 8529 cat conftest.$ac_ext >&5
8483 echo "$ac_t""yes" 1>&6 8537 echo "$ac_t""yes" 1>&6
8484 libwnn=wnn4 8538 libwnn=wnn4
8485 else 8539 else
8486 echo "$ac_t""no" 1>&6 8540 echo "$ac_t""no" 1>&6
8487 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 8541 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8488 echo "configure:8489: checking for jl_dic_list_e in -lwnn6" >&5 8542 echo "configure:8543: checking for jl_dic_list_e in -lwnn6" >&5
8489 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8543 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8490 8544
8491 xe_check_libs=" -lwnn6 " 8545 xe_check_libs=" -lwnn6 "
8492 cat > conftest.$ac_ext <<EOF 8546 cat > conftest.$ac_ext <<EOF
8493 #line 8494 "configure" 8547 #line 8548 "configure"
8494 #include "confdefs.h" 8548 #include "confdefs.h"
8495 /* Override any gcc2 internal prototype to avoid an error. */ 8549 /* Override any gcc2 internal prototype to avoid an error. */
8496 /* We use char because int might match the return type of a gcc2 8550 /* We use char because int might match the return type of a gcc2
8497 builtin and then its argument prototype would still apply. */ 8551 builtin and then its argument prototype would still apply. */
8498 char jl_dic_list_e(); 8552 char jl_dic_list_e();
8499 8553
8500 int main() { 8554 int main() {
8501 jl_dic_list_e() 8555 jl_dic_list_e()
8502 ; return 0; } 8556 ; return 0; }
8503 EOF 8557 EOF
8504 if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8558 if { (eval echo configure:8559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8505 rm -rf conftest* 8559 rm -rf conftest*
8506 eval "ac_cv_lib_$ac_lib_var=yes" 8560 eval "ac_cv_lib_$ac_lib_var=yes"
8507 else 8561 else
8508 echo "configure: failed program was:" >&5 8562 echo "configure: failed program was:" >&5
8509 cat conftest.$ac_ext >&5 8563 cat conftest.$ac_ext >&5
8517 echo "$ac_t""yes" 1>&6 8571 echo "$ac_t""yes" 1>&6
8518 libwnn=wnn6 8572 libwnn=wnn6
8519 else 8573 else
8520 echo "$ac_t""no" 1>&6 8574 echo "$ac_t""no" 1>&6
8521 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 8575 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8522 echo "configure:8523: checking for dic_list_e in -lwnn6_fromsrc" >&5 8576 echo "configure:8577: checking for dic_list_e in -lwnn6_fromsrc" >&5
8523 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 8577 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8524 8578
8525 xe_check_libs=" -lwnn6_fromsrc " 8579 xe_check_libs=" -lwnn6_fromsrc "
8526 cat > conftest.$ac_ext <<EOF 8580 cat > conftest.$ac_ext <<EOF
8527 #line 8528 "configure" 8581 #line 8582 "configure"
8528 #include "confdefs.h" 8582 #include "confdefs.h"
8529 /* Override any gcc2 internal prototype to avoid an error. */ 8583 /* Override any gcc2 internal prototype to avoid an error. */
8530 /* We use char because int might match the return type of a gcc2 8584 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */ 8585 builtin and then its argument prototype would still apply. */
8532 char dic_list_e(); 8586 char dic_list_e();
8533 8587
8534 int main() { 8588 int main() {
8535 dic_list_e() 8589 dic_list_e()
8536 ; return 0; } 8590 ; return 0; }
8537 EOF 8591 EOF
8538 if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8592 if { (eval echo configure:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8539 rm -rf conftest* 8593 rm -rf conftest*
8540 eval "ac_cv_lib_$ac_lib_var=yes" 8594 eval "ac_cv_lib_$ac_lib_var=yes"
8541 else 8595 else
8542 echo "configure: failed program was:" >&5 8596 echo "configure: failed program was:" >&5
8543 cat conftest.$ac_ext >&5 8597 cat conftest.$ac_ext >&5
8581 echo " xemacs will be linked with \"mule-wnnfns.o\"" 8635 echo " xemacs will be linked with \"mule-wnnfns.o\""
8582 fi 8636 fi
8583 if test "$with_wnn6" != "no"; then 8637 if test "$with_wnn6" != "no"; then
8584 8638
8585 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 8639 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8586 echo "configure:8587: checking for jl_fi_dic_list in -l$libwnn" >&5 8640 echo "configure:8641: checking for jl_fi_dic_list in -l$libwnn" >&5
8587 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 8641 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8588 8642
8589 xe_check_libs=" -l$libwnn " 8643 xe_check_libs=" -l$libwnn "
8590 cat > conftest.$ac_ext <<EOF 8644 cat > conftest.$ac_ext <<EOF
8591 #line 8592 "configure" 8645 #line 8646 "configure"
8592 #include "confdefs.h" 8646 #include "confdefs.h"
8593 /* Override any gcc2 internal prototype to avoid an error. */ 8647 /* Override any gcc2 internal prototype to avoid an error. */
8594 /* We use char because int might match the return type of a gcc2 8648 /* We use char because int might match the return type of a gcc2
8595 builtin and then its argument prototype would still apply. */ 8649 builtin and then its argument prototype would still apply. */
8596 char jl_fi_dic_list(); 8650 char jl_fi_dic_list();
8597 8651
8598 int main() { 8652 int main() {
8599 jl_fi_dic_list() 8653 jl_fi_dic_list()
8600 ; return 0; } 8654 ; return 0; }
8601 EOF 8655 EOF
8602 if { (eval echo configure:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8656 if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8603 rm -rf conftest* 8657 rm -rf conftest*
8604 eval "ac_cv_lib_$ac_lib_var=yes" 8658 eval "ac_cv_lib_$ac_lib_var=yes"
8605 else 8659 else
8606 echo "configure: failed program was:" >&5 8660 echo "configure: failed program was:" >&5
8607 cat conftest.$ac_ext >&5 8661 cat conftest.$ac_ext >&5
8632 8686
8633 canna_includes_found=no 8687 canna_includes_found=no
8634 if test "$with_canna" != "no"; then 8688 if test "$with_canna" != "no"; then
8635 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8689 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8636 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8690 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8637 echo "configure:8638: checking for canna/jrkanji.h" >&5 8691 echo "configure:8692: checking for canna/jrkanji.h" >&5
8638 8692
8639 cat > conftest.$ac_ext <<EOF 8693 cat > conftest.$ac_ext <<EOF
8640 #line 8641 "configure" 8694 #line 8695 "configure"
8641 #include "confdefs.h" 8695 #include "confdefs.h"
8642 #include <canna/jrkanji.h> 8696 #include <canna/jrkanji.h>
8643 EOF 8697 EOF
8644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8645 { (eval echo configure:8646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8699 { (eval echo configure:8700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8647 if test -z "$ac_err"; then 8701 if test -z "$ac_err"; then
8648 rm -rf conftest* 8702 rm -rf conftest*
8649 eval "ac_cv_header_$ac_safe=yes" 8703 eval "ac_cv_header_$ac_safe=yes"
8650 else 8704 else
8667 -d "/usr/local/canna/include"; then 8721 -d "/usr/local/canna/include"; then
8668 save_c_switch_site="$c_switch_site" 8722 save_c_switch_site="$c_switch_site"
8669 c_switch_site="$c_switch_site -I/usr/local/canna/include" 8723 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8670 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8724 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8671 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8725 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8672 echo "configure:8673: checking for canna/jrkanji.h" >&5 8726 echo "configure:8727: checking for canna/jrkanji.h" >&5
8673 8727
8674 cat > conftest.$ac_ext <<EOF 8728 cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure" 8729 #line 8730 "configure"
8676 #include "confdefs.h" 8730 #include "confdefs.h"
8677 #include <canna/jrkanji.h> 8731 #include <canna/jrkanji.h>
8678 EOF 8732 EOF
8679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8680 { (eval echo configure:8681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8734 { (eval echo configure:8735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8682 if test -z "$ac_err"; then 8736 if test -z "$ac_err"; then
8683 rm -rf conftest* 8737 rm -rf conftest*
8684 eval "ac_cv_header_$ac_safe=yes" 8738 eval "ac_cv_header_$ac_safe=yes"
8685 else 8739 else
8703 fi 8757 fi
8704 fi 8758 fi
8705 8759
8706 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 8760 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8707 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 8761 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8708 echo "configure:8709: checking for canna/RK.h" >&5 8762 echo "configure:8763: checking for canna/RK.h" >&5
8709 8763
8710 cat > conftest.$ac_ext <<EOF 8764 cat > conftest.$ac_ext <<EOF
8711 #line 8712 "configure" 8765 #line 8766 "configure"
8712 #include "confdefs.h" 8766 #include "confdefs.h"
8713 #include <canna/RK.h> 8767 #include <canna/RK.h>
8714 EOF 8768 EOF
8715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8716 { (eval echo configure:8717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8770 { (eval echo configure:8771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8718 if test -z "$ac_err"; then 8772 if test -z "$ac_err"; then
8719 rm -rf conftest* 8773 rm -rf conftest*
8720 eval "ac_cv_header_$ac_safe=yes" 8774 eval "ac_cv_header_$ac_safe=yes"
8721 else 8775 else
8734 with_canna=no 8788 with_canna=no
8735 fi 8789 fi
8736 } 8790 }
8737 test -z "$with_canna" && { 8791 test -z "$with_canna" && {
8738 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 8792 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8739 echo "configure:8740: checking for RkBgnBun in -lRKC" >&5 8793 echo "configure:8794: checking for RkBgnBun in -lRKC" >&5
8740 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 8794 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8741 8795
8742 xe_check_libs=" -lRKC " 8796 xe_check_libs=" -lRKC "
8743 cat > conftest.$ac_ext <<EOF 8797 cat > conftest.$ac_ext <<EOF
8744 #line 8745 "configure" 8798 #line 8799 "configure"
8745 #include "confdefs.h" 8799 #include "confdefs.h"
8746 /* Override any gcc2 internal prototype to avoid an error. */ 8800 /* Override any gcc2 internal prototype to avoid an error. */
8747 /* We use char because int might match the return type of a gcc2 8801 /* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */ 8802 builtin and then its argument prototype would still apply. */
8749 char RkBgnBun(); 8803 char RkBgnBun();
8750 8804
8751 int main() { 8805 int main() {
8752 RkBgnBun() 8806 RkBgnBun()
8753 ; return 0; } 8807 ; return 0; }
8754 EOF 8808 EOF
8755 if { (eval echo configure:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8809 if { (eval echo configure:8810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8756 rm -rf conftest* 8810 rm -rf conftest*
8757 eval "ac_cv_lib_$ac_lib_var=yes" 8811 eval "ac_cv_lib_$ac_lib_var=yes"
8758 else 8812 else
8759 echo "configure: failed program was:" >&5 8813 echo "configure: failed program was:" >&5
8760 cat conftest.$ac_ext >&5 8814 cat conftest.$ac_ext >&5
8773 fi 8827 fi
8774 8828
8775 } 8829 }
8776 test -z "$with_canna" && { 8830 test -z "$with_canna" && {
8777 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 8831 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8778 echo "configure:8779: checking for jrKanjiControl in -lcanna" >&5 8832 echo "configure:8833: checking for jrKanjiControl in -lcanna" >&5
8779 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 8833 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8780 8834
8781 xe_check_libs=" -lcanna " 8835 xe_check_libs=" -lcanna "
8782 cat > conftest.$ac_ext <<EOF 8836 cat > conftest.$ac_ext <<EOF
8783 #line 8784 "configure" 8837 #line 8838 "configure"
8784 #include "confdefs.h" 8838 #include "confdefs.h"
8785 /* Override any gcc2 internal prototype to avoid an error. */ 8839 /* Override any gcc2 internal prototype to avoid an error. */
8786 /* We use char because int might match the return type of a gcc2 8840 /* We use char because int might match the return type of a gcc2
8787 builtin and then its argument prototype would still apply. */ 8841 builtin and then its argument prototype would still apply. */
8788 char jrKanjiControl(); 8842 char jrKanjiControl();
8789 8843
8790 int main() { 8844 int main() {
8791 jrKanjiControl() 8845 jrKanjiControl()
8792 ; return 0; } 8846 ; return 0; }
8793 EOF 8847 EOF
8794 if { (eval echo configure:8795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8848 if { (eval echo configure:8849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8795 rm -rf conftest* 8849 rm -rf conftest*
8796 eval "ac_cv_lib_$ac_lib_var=yes" 8850 eval "ac_cv_lib_$ac_lib_var=yes"
8797 else 8851 else
8798 echo "configure: failed program was:" >&5 8852 echo "configure: failed program was:" >&5
8799 cat conftest.$ac_ext >&5 8853 cat conftest.$ac_ext >&5
8838 8892
8839 if test "$need_motif" = "yes" ; then 8893 if test "$need_motif" = "yes" ; then
8840 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 8894 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8841 8895
8842 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 8896 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8843 echo "configure:8844: checking for layout_object_getvalue in -li18n" >&5 8897 echo "configure:8898: checking for layout_object_getvalue in -li18n" >&5
8844 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 8898 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8845 8899
8846 xe_check_libs=" -li18n " 8900 xe_check_libs=" -li18n "
8847 cat > conftest.$ac_ext <<EOF 8901 cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure" 8902 #line 8903 "configure"
8849 #include "confdefs.h" 8903 #include "confdefs.h"
8850 /* Override any gcc2 internal prototype to avoid an error. */ 8904 /* Override any gcc2 internal prototype to avoid an error. */
8851 /* We use char because int might match the return type of a gcc2 8905 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */ 8906 builtin and then its argument prototype would still apply. */
8853 char layout_object_getvalue(); 8907 char layout_object_getvalue();
8854 8908
8855 int main() { 8909 int main() {
8856 layout_object_getvalue() 8910 layout_object_getvalue()
8857 ; return 0; } 8911 ; return 0; }
8858 EOF 8912 EOF
8859 if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8913 if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8860 rm -rf conftest* 8914 rm -rf conftest*
8861 eval "ac_cv_lib_$ac_lib_var=yes" 8915 eval "ac_cv_lib_$ac_lib_var=yes"
8862 else 8916 else
8863 echo "configure: failed program was:" >&5 8917 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5 8918 cat conftest.$ac_ext >&5
8940 fi 8994 fi
8941 8995
8942 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf 8996 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
8943 do 8997 do
8944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8945 echo "configure:8946: checking for $ac_func" >&5 8999 echo "configure:9000: checking for $ac_func" >&5
8946 9000
8947 cat > conftest.$ac_ext <<EOF 9001 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure" 9002 #line 9003 "configure"
8949 #include "confdefs.h" 9003 #include "confdefs.h"
8950 /* System header to define __stub macros and hopefully few prototypes, 9004 /* System header to define __stub macros and hopefully few prototypes,
8951 which can conflict with char $ac_func(); below. */ 9005 which can conflict with char $ac_func(); below. */
8952 #include <assert.h> 9006 #include <assert.h>
8953 /* Override any gcc2 internal prototype to avoid an error. */ 9007 /* Override any gcc2 internal prototype to avoid an error. */
8966 $ac_func(); 9020 $ac_func();
8967 #endif 9021 #endif
8968 9022
8969 ; return 0; } 9023 ; return 0; }
8970 EOF 9024 EOF
8971 if { (eval echo configure:8972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9025 if { (eval echo configure:9026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8972 rm -rf conftest* 9026 rm -rf conftest*
8973 eval "ac_cv_func_$ac_func=yes" 9027 eval "ac_cv_func_$ac_func=yes"
8974 else 9028 else
8975 echo "configure: failed program was:" >&5 9029 echo "configure: failed program was:" >&5
8976 cat conftest.$ac_ext >&5 9030 cat conftest.$ac_ext >&5
9007 echo " xemacs will be linked with \"realpath.o\"" 9061 echo " xemacs will be linked with \"realpath.o\""
9008 fi ;; 9062 fi ;;
9009 * ) for ac_func in realpath 9063 * ) for ac_func in realpath
9010 do 9064 do
9011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9012 echo "configure:9013: checking for $ac_func" >&5 9066 echo "configure:9067: checking for $ac_func" >&5
9013 9067
9014 cat > conftest.$ac_ext <<EOF 9068 cat > conftest.$ac_ext <<EOF
9015 #line 9016 "configure" 9069 #line 9070 "configure"
9016 #include "confdefs.h" 9070 #include "confdefs.h"
9017 /* System header to define __stub macros and hopefully few prototypes, 9071 /* System header to define __stub macros and hopefully few prototypes,
9018 which can conflict with char $ac_func(); below. */ 9072 which can conflict with char $ac_func(); below. */
9019 #include <assert.h> 9073 #include <assert.h>
9020 /* Override any gcc2 internal prototype to avoid an error. */ 9074 /* Override any gcc2 internal prototype to avoid an error. */
9033 $ac_func(); 9087 $ac_func();
9034 #endif 9088 #endif
9035 9089
9036 ; return 0; } 9090 ; return 0; }
9037 EOF 9091 EOF
9038 if { (eval echo configure:9039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9092 if { (eval echo configure:9093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9039 rm -rf conftest* 9093 rm -rf conftest*
9040 eval "ac_cv_func_$ac_func=yes" 9094 eval "ac_cv_func_$ac_func=yes"
9041 else 9095 else
9042 echo "configure: failed program was:" >&5 9096 echo "configure: failed program was:" >&5
9043 cat conftest.$ac_ext >&5 9097 cat conftest.$ac_ext >&5
9069 esac 9123 esac
9070 9124
9071 for ac_func in getloadavg 9125 for ac_func in getloadavg
9072 do 9126 do
9073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9074 echo "configure:9075: checking for $ac_func" >&5 9128 echo "configure:9129: checking for $ac_func" >&5
9075 9129
9076 cat > conftest.$ac_ext <<EOF 9130 cat > conftest.$ac_ext <<EOF
9077 #line 9078 "configure" 9131 #line 9132 "configure"
9078 #include "confdefs.h" 9132 #include "confdefs.h"
9079 /* System header to define __stub macros and hopefully few prototypes, 9133 /* System header to define __stub macros and hopefully few prototypes,
9080 which can conflict with char $ac_func(); below. */ 9134 which can conflict with char $ac_func(); below. */
9081 #include <assert.h> 9135 #include <assert.h>
9082 /* Override any gcc2 internal prototype to avoid an error. */ 9136 /* Override any gcc2 internal prototype to avoid an error. */
9095 $ac_func(); 9149 $ac_func();
9096 #endif 9150 #endif
9097 9151
9098 ; return 0; } 9152 ; return 0; }
9099 EOF 9153 EOF
9100 if { (eval echo configure:9101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9154 if { (eval echo configure:9155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9101 rm -rf conftest* 9155 rm -rf conftest*
9102 eval "ac_cv_func_$ac_func=yes" 9156 eval "ac_cv_func_$ac_func=yes"
9103 else 9157 else
9104 echo "configure: failed program was:" >&5 9158 echo "configure: failed program was:" >&5
9105 cat conftest.$ac_ext >&5 9159 cat conftest.$ac_ext >&5
9131 echo " xemacs will be linked with \"getloadavg.o\"" 9185 echo " xemacs will be linked with \"getloadavg.o\""
9132 fi 9186 fi
9133 9187
9134 9188
9135 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 9189 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9136 echo "configure:9137: checking for kstat_open in -lkstat" >&5 9190 echo "configure:9191: checking for kstat_open in -lkstat" >&5
9137 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 9191 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9138 9192
9139 xe_check_libs=" -lkstat " 9193 xe_check_libs=" -lkstat "
9140 cat > conftest.$ac_ext <<EOF 9194 cat > conftest.$ac_ext <<EOF
9141 #line 9142 "configure" 9195 #line 9196 "configure"
9142 #include "confdefs.h" 9196 #include "confdefs.h"
9143 /* Override any gcc2 internal prototype to avoid an error. */ 9197 /* Override any gcc2 internal prototype to avoid an error. */
9144 /* We use char because int might match the return type of a gcc2 9198 /* We use char because int might match the return type of a gcc2
9145 builtin and then its argument prototype would still apply. */ 9199 builtin and then its argument prototype would still apply. */
9146 char kstat_open(); 9200 char kstat_open();
9147 9201
9148 int main() { 9202 int main() {
9149 kstat_open() 9203 kstat_open()
9150 ; return 0; } 9204 ; return 0; }
9151 EOF 9205 EOF
9152 if { (eval echo configure:9153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9206 if { (eval echo configure:9207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9153 rm -rf conftest* 9207 rm -rf conftest*
9154 eval "ac_cv_lib_$ac_lib_var=yes" 9208 eval "ac_cv_lib_$ac_lib_var=yes"
9155 else 9209 else
9156 echo "configure: failed program was:" >&5 9210 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5 9211 cat conftest.$ac_ext >&5
9181 9235
9182 9236
9183 9237
9184 9238
9185 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 9239 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9186 echo "configure:9187: checking for kvm_read in -lkvm" >&5 9240 echo "configure:9241: checking for kvm_read in -lkvm" >&5
9187 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 9241 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9188 9242
9189 xe_check_libs=" -lkvm " 9243 xe_check_libs=" -lkvm "
9190 cat > conftest.$ac_ext <<EOF 9244 cat > conftest.$ac_ext <<EOF
9191 #line 9192 "configure" 9245 #line 9246 "configure"
9192 #include "confdefs.h" 9246 #include "confdefs.h"
9193 /* Override any gcc2 internal prototype to avoid an error. */ 9247 /* Override any gcc2 internal prototype to avoid an error. */
9194 /* We use char because int might match the return type of a gcc2 9248 /* We use char because int might match the return type of a gcc2
9195 builtin and then its argument prototype would still apply. */ 9249 builtin and then its argument prototype would still apply. */
9196 char kvm_read(); 9250 char kvm_read();
9197 9251
9198 int main() { 9252 int main() {
9199 kvm_read() 9253 kvm_read()
9200 ; return 0; } 9254 ; return 0; }
9201 EOF 9255 EOF
9202 if { (eval echo configure:9203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9256 if { (eval echo configure:9257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9203 rm -rf conftest* 9257 rm -rf conftest*
9204 eval "ac_cv_lib_$ac_lib_var=yes" 9258 eval "ac_cv_lib_$ac_lib_var=yes"
9205 else 9259 else
9206 echo "configure: failed program was:" >&5 9260 echo "configure: failed program was:" >&5
9207 cat conftest.$ac_ext >&5 9261 cat conftest.$ac_ext >&5
9231 9285
9232 9286
9233 fi 9287 fi
9234 9288
9235 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 9289 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9236 echo "configure:9237: checking whether netdb declares h_errno" >&5 9290 echo "configure:9291: checking whether netdb declares h_errno" >&5
9237 cat > conftest.$ac_ext <<EOF 9291 cat > conftest.$ac_ext <<EOF
9238 #line 9239 "configure" 9292 #line 9293 "configure"
9239 #include "confdefs.h" 9293 #include "confdefs.h"
9240 #include <netdb.h> 9294 #include <netdb.h>
9241 int main() { 9295 int main() {
9242 return h_errno; 9296 return h_errno;
9243 ; return 0; } 9297 ; return 0; }
9244 EOF 9298 EOF
9245 if { (eval echo configure:9246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9299 if { (eval echo configure:9300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9246 rm -rf conftest* 9300 rm -rf conftest*
9247 echo "$ac_t""yes" 1>&6 9301 echo "$ac_t""yes" 1>&6
9248 { test "$extra_verbose" = "yes" && cat << \EOF 9302 { test "$extra_verbose" = "yes" && cat << \EOF
9249 Defining HAVE_H_ERRNO 9303 Defining HAVE_H_ERRNO
9250 EOF 9304 EOF
9260 echo "$ac_t""no" 1>&6 9314 echo "$ac_t""no" 1>&6
9261 fi 9315 fi
9262 rm -f conftest* 9316 rm -f conftest*
9263 9317
9264 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 9318 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9265 echo "configure:9266: checking for sigsetjmp" >&5 9319 echo "configure:9320: checking for sigsetjmp" >&5
9266 cat > conftest.$ac_ext <<EOF 9320 cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure" 9321 #line 9322 "configure"
9268 #include "confdefs.h" 9322 #include "confdefs.h"
9269 #include <setjmp.h> 9323 #include <setjmp.h>
9270 int main() { 9324 int main() {
9271 sigjmp_buf bar; sigsetjmp (bar, 0); 9325 sigjmp_buf bar; sigsetjmp (bar, 0);
9272 ; return 0; } 9326 ; return 0; }
9273 EOF 9327 EOF
9274 if { (eval echo configure:9275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9328 if { (eval echo configure:9329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9275 rm -rf conftest* 9329 rm -rf conftest*
9276 echo "$ac_t""yes" 1>&6 9330 echo "$ac_t""yes" 1>&6
9277 { test "$extra_verbose" = "yes" && cat << \EOF 9331 { test "$extra_verbose" = "yes" && cat << \EOF
9278 Defining HAVE_SIGSETJMP 9332 Defining HAVE_SIGSETJMP
9279 EOF 9333 EOF
9289 echo "$ac_t""no" 1>&6 9343 echo "$ac_t""no" 1>&6
9290 fi 9344 fi
9291 rm -f conftest* 9345 rm -f conftest*
9292 9346
9293 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 9347 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9294 echo "configure:9295: checking whether localtime caches TZ" >&5 9348 echo "configure:9349: checking whether localtime caches TZ" >&5
9295 9349
9296 if test "$ac_cv_func_tzset" = "yes"; then 9350 if test "$ac_cv_func_tzset" = "yes"; then
9297 cat > conftest.$ac_ext <<EOF 9351 cat > conftest.$ac_ext <<EOF
9298 #line 9299 "configure" 9352 #line 9353 "configure"
9299 #include "confdefs.h" 9353 #include "confdefs.h"
9300 #include <time.h> 9354 #include <time.h>
9301 #if STDC_HEADERS 9355 #if STDC_HEADERS
9302 # include <stdlib.h> 9356 # include <stdlib.h>
9303 #endif 9357 #endif
9328 if (localtime (&now)->tm_hour != hour_unset) 9382 if (localtime (&now)->tm_hour != hour_unset)
9329 exit (1); 9383 exit (1);
9330 exit (0); 9384 exit (0);
9331 } 9385 }
9332 EOF 9386 EOF
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9334 then 9388 then
9335 emacs_cv_localtime_cache=no 9389 emacs_cv_localtime_cache=no
9336 else 9390 else
9337 conftest_rc="$?" 9391 conftest_rc="$?"
9338 echo "configure: failed program was:" >&5 9392 echo "configure: failed program was:" >&5
9358 9412
9359 fi 9413 fi
9360 9414
9361 if test "$HAVE_TIMEVAL" = "yes"; then 9415 if test "$HAVE_TIMEVAL" = "yes"; then
9362 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 9416 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9363 echo "configure:9364: checking whether gettimeofday accepts one or two arguments" >&5 9417 echo "configure:9418: checking whether gettimeofday accepts one or two arguments" >&5
9364 cat > conftest.$ac_ext <<EOF 9418 cat > conftest.$ac_ext <<EOF
9365 #line 9366 "configure" 9419 #line 9420 "configure"
9366 #include "confdefs.h" 9420 #include "confdefs.h"
9367 9421
9368 #ifdef TIME_WITH_SYS_TIME 9422 #ifdef TIME_WITH_SYS_TIME
9369 #include <sys/time.h> 9423 #include <sys/time.h>
9370 #include <time.h> 9424 #include <time.h>
9382 struct timezone dummy; 9436 struct timezone dummy;
9383 gettimeofday (&time, &dummy); 9437 gettimeofday (&time, &dummy);
9384 9438
9385 ; return 0; } 9439 ; return 0; }
9386 EOF 9440 EOF
9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9441 if { (eval echo configure:9442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9388 rm -rf conftest* 9442 rm -rf conftest*
9389 echo "$ac_t""two" 1>&6 9443 echo "$ac_t""two" 1>&6
9390 else 9444 else
9391 echo "configure: failed program was:" >&5 9445 echo "configure: failed program was:" >&5
9392 cat conftest.$ac_ext >&5 9446 cat conftest.$ac_ext >&5
9404 rm -f conftest* 9458 rm -f conftest*
9405 fi 9459 fi
9406 9460
9407 9461
9408 echo $ac_n "checking for inline""... $ac_c" 1>&6 9462 echo $ac_n "checking for inline""... $ac_c" 1>&6
9409 echo "configure:9410: checking for inline" >&5 9463 echo "configure:9464: checking for inline" >&5
9410 9464
9411 ac_cv_c_inline=no 9465 ac_cv_c_inline=no
9412 for ac_kw in inline __inline__ __inline; do 9466 for ac_kw in inline __inline__ __inline; do
9413 cat > conftest.$ac_ext <<EOF 9467 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure" 9468 #line 9469 "configure"
9415 #include "confdefs.h" 9469 #include "confdefs.h"
9416 9470
9417 int main() { 9471 int main() {
9418 } $ac_kw foo() { 9472 } $ac_kw foo() {
9419 ; return 0; } 9473 ; return 0; }
9420 EOF 9474 EOF
9421 if { (eval echo configure:9422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9475 if { (eval echo configure:9476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9422 rm -rf conftest* 9476 rm -rf conftest*
9423 ac_cv_c_inline=$ac_kw; break 9477 ac_cv_c_inline=$ac_kw; break
9424 else 9478 else
9425 echo "configure: failed program was:" >&5 9479 echo "configure: failed program was:" >&5
9426 cat conftest.$ac_ext >&5 9480 cat conftest.$ac_ext >&5
9466 9520
9467 9521
9468 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 9522 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9469 # for constant arguments. Useless! 9523 # for constant arguments. Useless!
9470 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 9524 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9471 echo "configure:9472: checking for working alloca.h" >&5 9525 echo "configure:9526: checking for working alloca.h" >&5
9472 9526
9473 cat > conftest.$ac_ext <<EOF 9527 cat > conftest.$ac_ext <<EOF
9474 #line 9475 "configure" 9528 #line 9529 "configure"
9475 #include "confdefs.h" 9529 #include "confdefs.h"
9476 #include <alloca.h> 9530 #include <alloca.h>
9477 int main() { 9531 int main() {
9478 char *p = alloca(2 * sizeof(int)); 9532 char *p = alloca(2 * sizeof(int));
9479 ; return 0; } 9533 ; return 0; }
9480 EOF 9534 EOF
9481 if { (eval echo configure:9482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9535 if { (eval echo configure:9536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9482 rm -rf conftest* 9536 rm -rf conftest*
9483 ac_cv_header_alloca_h=yes 9537 ac_cv_header_alloca_h=yes
9484 else 9538 else
9485 echo "configure: failed program was:" >&5 9539 echo "configure: failed program was:" >&5
9486 cat conftest.$ac_ext >&5 9540 cat conftest.$ac_ext >&5
9500 } 9554 }
9501 9555
9502 fi 9556 fi
9503 9557
9504 echo $ac_n "checking for alloca""... $ac_c" 1>&6 9558 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9505 echo "configure:9506: checking for alloca" >&5 9559 echo "configure:9560: checking for alloca" >&5
9506 9560
9507 cat > conftest.$ac_ext <<EOF 9561 cat > conftest.$ac_ext <<EOF
9508 #line 9509 "configure" 9562 #line 9563 "configure"
9509 #include "confdefs.h" 9563 #include "confdefs.h"
9510 9564
9511 #ifdef __GNUC__ 9565 #ifdef __GNUC__
9512 # define alloca __builtin_alloca 9566 # define alloca __builtin_alloca
9513 #else 9567 #else
9531 9585
9532 int main() { 9586 int main() {
9533 char *p = (char *) alloca(1); 9587 char *p = (char *) alloca(1);
9534 ; return 0; } 9588 ; return 0; }
9535 EOF 9589 EOF
9536 if { (eval echo configure:9537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9590 if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9537 rm -rf conftest* 9591 rm -rf conftest*
9538 ac_cv_func_alloca_works=yes 9592 ac_cv_func_alloca_works=yes
9539 else 9593 else
9540 echo "configure: failed program was:" >&5 9594 echo "configure: failed program was:" >&5
9541 cat conftest.$ac_ext >&5 9595 cat conftest.$ac_ext >&5
9570 EOF 9624 EOF
9571 } 9625 }
9572 9626
9573 9627
9574 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 9628 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9575 echo "configure:9576: checking whether alloca needs Cray hooks" >&5 9629 echo "configure:9630: checking whether alloca needs Cray hooks" >&5
9576 9630
9577 cat > conftest.$ac_ext <<EOF 9631 cat > conftest.$ac_ext <<EOF
9578 #line 9579 "configure" 9632 #line 9633 "configure"
9579 #include "confdefs.h" 9633 #include "confdefs.h"
9580 #if defined(CRAY) && ! defined(CRAY2) 9634 #if defined(CRAY) && ! defined(CRAY2)
9581 webecray 9635 webecray
9582 #else 9636 #else
9583 wenotbecray 9637 wenotbecray
9597 9651
9598 echo "$ac_t""$ac_cv_os_cray" 1>&6 9652 echo "$ac_t""$ac_cv_os_cray" 1>&6
9599 if test $ac_cv_os_cray = yes; then 9653 if test $ac_cv_os_cray = yes; then
9600 for ac_func in _getb67 GETB67 getb67; do 9654 for ac_func in _getb67 GETB67 getb67; do
9601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9602 echo "configure:9603: checking for $ac_func" >&5 9656 echo "configure:9657: checking for $ac_func" >&5
9603 9657
9604 cat > conftest.$ac_ext <<EOF 9658 cat > conftest.$ac_ext <<EOF
9605 #line 9606 "configure" 9659 #line 9660 "configure"
9606 #include "confdefs.h" 9660 #include "confdefs.h"
9607 /* System header to define __stub macros and hopefully few prototypes, 9661 /* System header to define __stub macros and hopefully few prototypes,
9608 which can conflict with char $ac_func(); below. */ 9662 which can conflict with char $ac_func(); below. */
9609 #include <assert.h> 9663 #include <assert.h>
9610 /* Override any gcc2 internal prototype to avoid an error. */ 9664 /* Override any gcc2 internal prototype to avoid an error. */
9623 $ac_func(); 9677 $ac_func();
9624 #endif 9678 #endif
9625 9679
9626 ; return 0; } 9680 ; return 0; }
9627 EOF 9681 EOF
9628 if { (eval echo configure:9629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9682 if { (eval echo configure:9683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9629 rm -rf conftest* 9683 rm -rf conftest*
9630 eval "ac_cv_func_$ac_func=yes" 9684 eval "ac_cv_func_$ac_func=yes"
9631 else 9685 else
9632 echo "configure: failed program was:" >&5 9686 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5 9687 cat conftest.$ac_ext >&5
9653 9707
9654 done 9708 done
9655 fi 9709 fi
9656 9710
9657 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 9711 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9658 echo "configure:9659: checking stack direction for C alloca" >&5 9712 echo "configure:9713: checking stack direction for C alloca" >&5
9659 9713
9660 cat > conftest.$ac_ext <<EOF 9714 cat > conftest.$ac_ext <<EOF
9661 #line 9662 "configure" 9715 #line 9716 "configure"
9662 #include "confdefs.h" 9716 #include "confdefs.h"
9663 find_stack_direction () 9717 find_stack_direction ()
9664 { 9718 {
9665 static char *addr = 0; 9719 static char *addr = 0;
9666 auto char dummy; 9720 auto char dummy;
9675 main () 9729 main ()
9676 { 9730 {
9677 exit (find_stack_direction() < 0); 9731 exit (find_stack_direction() < 0);
9678 } 9732 }
9679 EOF 9733 EOF
9680 if { (eval echo configure:9681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9734 if { (eval echo configure:9735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9681 then 9735 then
9682 ac_cv_c_stack_direction=1 9736 ac_cv_c_stack_direction=1
9683 else 9737 else
9684 conftest_rc="$?" 9738 conftest_rc="$?"
9685 echo "configure: failed program was:" >&5 9739 echo "configure: failed program was:" >&5
9704 echo " xemacs will be linked with \"$ALLOCA\"" 9758 echo " xemacs will be linked with \"$ALLOCA\""
9705 fi 9759 fi
9706 9760
9707 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 9761 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9708 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 9762 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9709 echo "configure:9710: checking for vfork.h" >&5 9763 echo "configure:9764: checking for vfork.h" >&5
9710 9764
9711 cat > conftest.$ac_ext <<EOF 9765 cat > conftest.$ac_ext <<EOF
9712 #line 9713 "configure" 9766 #line 9767 "configure"
9713 #include "confdefs.h" 9767 #include "confdefs.h"
9714 #include <vfork.h> 9768 #include <vfork.h>
9715 EOF 9769 EOF
9716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9717 { (eval echo configure:9718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9771 { (eval echo configure:9772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9719 if test -z "$ac_err"; then 9773 if test -z "$ac_err"; then
9720 rm -rf conftest* 9774 rm -rf conftest*
9721 eval "ac_cv_header_$ac_safe=yes" 9775 eval "ac_cv_header_$ac_safe=yes"
9722 else 9776 else
9740 else 9794 else
9741 echo "$ac_t""no" 1>&6 9795 echo "$ac_t""no" 1>&6
9742 fi 9796 fi
9743 9797
9744 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 9798 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9745 echo "configure:9746: checking for working vfork" >&5 9799 echo "configure:9800: checking for working vfork" >&5
9746 9800
9747 cat > conftest.$ac_ext <<EOF 9801 cat > conftest.$ac_ext <<EOF
9748 #line 9749 "configure" 9802 #line 9803 "configure"
9749 #include "confdefs.h" 9803 #include "confdefs.h"
9750 /* Thanks to Paul Eggert for this test. */ 9804 /* Thanks to Paul Eggert for this test. */
9751 #include <stdio.h> 9805 #include <stdio.h>
9752 #include <sys/types.h> 9806 #include <sys/types.h>
9753 #include <sys/stat.h> 9807 #include <sys/stat.h>
9838 || fstat(fileno(stdout), &st) != 0 9892 || fstat(fileno(stdout), &st) != 0
9839 ); 9893 );
9840 } 9894 }
9841 } 9895 }
9842 EOF 9896 EOF
9843 if { (eval echo configure:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9897 if { (eval echo configure:9898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9844 then 9898 then
9845 ac_cv_func_vfork_works=yes 9899 ac_cv_func_vfork_works=yes
9846 else 9900 else
9847 conftest_rc="$?" 9901 conftest_rc="$?"
9848 echo "configure: failed program was:" >&5 9902 echo "configure: failed program was:" >&5
9864 9918
9865 fi 9919 fi
9866 9920
9867 9921
9868 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 9922 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9869 echo "configure:9870: checking for working strcoll" >&5 9923 echo "configure:9924: checking for working strcoll" >&5
9870 9924
9871 cat > conftest.$ac_ext <<EOF 9925 cat > conftest.$ac_ext <<EOF
9872 #line 9873 "configure" 9926 #line 9927 "configure"
9873 #include "confdefs.h" 9927 #include "confdefs.h"
9874 #include <string.h> 9928 #include <string.h>
9875 main () 9929 main ()
9876 { 9930 {
9877 exit (strcoll ("abc", "def") >= 0 || 9931 exit (strcoll ("abc", "def") >= 0 ||
9878 strcoll ("ABC", "DEF") >= 0 || 9932 strcoll ("ABC", "DEF") >= 0 ||
9879 strcoll ("123", "456") >= 0); 9933 strcoll ("123", "456") >= 0);
9880 } 9934 }
9881 EOF 9935 EOF
9882 if { (eval echo configure:9883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9936 if { (eval echo configure:9937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9883 then 9937 then
9884 ac_cv_func_strcoll_works=yes 9938 ac_cv_func_strcoll_works=yes
9885 else 9939 else
9886 conftest_rc="$?" 9940 conftest_rc="$?"
9887 echo "configure: failed program was:" >&5 9941 echo "configure: failed program was:" >&5
9905 9959
9906 9960
9907 for ac_func in getpgrp 9961 for ac_func in getpgrp
9908 do 9962 do
9909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9910 echo "configure:9911: checking for $ac_func" >&5 9964 echo "configure:9965: checking for $ac_func" >&5
9911 9965
9912 cat > conftest.$ac_ext <<EOF 9966 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure" 9967 #line 9968 "configure"
9914 #include "confdefs.h" 9968 #include "confdefs.h"
9915 /* System header to define __stub macros and hopefully few prototypes, 9969 /* System header to define __stub macros and hopefully few prototypes,
9916 which can conflict with char $ac_func(); below. */ 9970 which can conflict with char $ac_func(); below. */
9917 #include <assert.h> 9971 #include <assert.h>
9918 /* Override any gcc2 internal prototype to avoid an error. */ 9972 /* Override any gcc2 internal prototype to avoid an error. */
9931 $ac_func(); 9985 $ac_func();
9932 #endif 9986 #endif
9933 9987
9934 ; return 0; } 9988 ; return 0; }
9935 EOF 9989 EOF
9936 if { (eval echo configure:9937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9990 if { (eval echo configure:9991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9937 rm -rf conftest* 9991 rm -rf conftest*
9938 eval "ac_cv_func_$ac_func=yes" 9992 eval "ac_cv_func_$ac_func=yes"
9939 else 9993 else
9940 echo "configure: failed program was:" >&5 9994 echo "configure: failed program was:" >&5
9941 cat conftest.$ac_ext >&5 9995 cat conftest.$ac_ext >&5
9959 echo "$ac_t""no" 1>&6 10013 echo "$ac_t""no" 1>&6
9960 fi 10014 fi
9961 done 10015 done
9962 10016
9963 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 10017 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9964 echo "configure:9965: checking whether getpgrp takes no argument" >&5 10018 echo "configure:10019: checking whether getpgrp takes no argument" >&5
9965 10019
9966 cat > conftest.$ac_ext <<EOF 10020 cat > conftest.$ac_ext <<EOF
9967 #line 9968 "configure" 10021 #line 10022 "configure"
9968 #include "confdefs.h" 10022 #include "confdefs.h"
9969 10023
9970 /* 10024 /*
9971 * If this system has a BSD-style getpgrp(), 10025 * If this system has a BSD-style getpgrp(),
9972 * which takes a pid argument, exit unsuccessfully. 10026 * which takes a pid argument, exit unsuccessfully.
10017 exit(s>>8); 10071 exit(s>>8);
10018 } 10072 }
10019 } 10073 }
10020 10074
10021 EOF 10075 EOF
10022 if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10076 if { (eval echo configure:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10023 then 10077 then
10024 ac_cv_func_getpgrp_void=yes 10078 ac_cv_func_getpgrp_void=yes
10025 else 10079 else
10026 conftest_rc="$?" 10080 conftest_rc="$?"
10027 echo "configure: failed program was:" >&5 10081 echo "configure: failed program was:" >&5
10044 10098
10045 fi 10099 fi
10046 10100
10047 10101
10048 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 10102 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10049 echo "configure:10050: checking for working mmap" >&5 10103 echo "configure:10104: checking for working mmap" >&5
10050 case "$opsys" in ultrix* ) have_mmap=no ;; *) 10104 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10051 cat > conftest.$ac_ext <<EOF 10105 cat > conftest.$ac_ext <<EOF
10052 #line 10053 "configure" 10106 #line 10107 "configure"
10053 #include "confdefs.h" 10107 #include "confdefs.h"
10054 #include <stdio.h> 10108 #include <stdio.h>
10055 #include <unistd.h> 10109 #include <unistd.h>
10056 #include <fcntl.h> 10110 #include <fcntl.h>
10057 #include <sys/mman.h> 10111 #include <sys/mman.h>
10080 return 0; 10134 return 0;
10081 perror ("conftest: mmap failed"); 10135 perror ("conftest: mmap failed");
10082 return 1; 10136 return 1;
10083 } 10137 }
10084 EOF 10138 EOF
10085 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10139 if { (eval echo configure:10140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10086 then 10140 then
10087 have_mmap=yes 10141 have_mmap=yes
10088 else 10142 else
10089 conftest_rc="$?" 10143 conftest_rc="$?"
10090 echo "configure: failed program was:" >&5 10144 echo "configure: failed program was:" >&5
10115 } 10169 }
10116 10170
10117 10171
10118 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 10172 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10119 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 10173 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10120 echo "configure:10121: checking for termios.h" >&5 10174 echo "configure:10175: checking for termios.h" >&5
10121 10175
10122 cat > conftest.$ac_ext <<EOF 10176 cat > conftest.$ac_ext <<EOF
10123 #line 10124 "configure" 10177 #line 10178 "configure"
10124 #include "confdefs.h" 10178 #include "confdefs.h"
10125 #include <termios.h> 10179 #include <termios.h>
10126 EOF 10180 EOF
10127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10128 { (eval echo configure:10129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10182 { (eval echo configure:10183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10130 if test -z "$ac_err"; then 10184 if test -z "$ac_err"; then
10131 rm -rf conftest* 10185 rm -rf conftest*
10132 eval "ac_cv_header_$ac_safe=yes" 10186 eval "ac_cv_header_$ac_safe=yes"
10133 else 10187 else
10166 10220
10167 else 10221 else
10168 echo "$ac_t""no" 1>&6 10222 echo "$ac_t""no" 1>&6
10169 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 10223 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10170 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 10224 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10171 echo "configure:10172: checking for termio.h" >&5 10225 echo "configure:10226: checking for termio.h" >&5
10172 10226
10173 cat > conftest.$ac_ext <<EOF 10227 cat > conftest.$ac_ext <<EOF
10174 #line 10175 "configure" 10228 #line 10229 "configure"
10175 #include "confdefs.h" 10229 #include "confdefs.h"
10176 #include <termio.h> 10230 #include <termio.h>
10177 EOF 10231 EOF
10178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10179 { (eval echo configure:10180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10233 { (eval echo configure:10234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10181 if test -z "$ac_err"; then 10235 if test -z "$ac_err"; then
10182 rm -rf conftest* 10236 rm -rf conftest*
10183 eval "ac_cv_header_$ac_safe=yes" 10237 eval "ac_cv_header_$ac_safe=yes"
10184 else 10238 else
10206 fi 10260 fi
10207 10261
10208 10262
10209 10263
10210 echo $ac_n "checking for socket""... $ac_c" 1>&6 10264 echo $ac_n "checking for socket""... $ac_c" 1>&6
10211 echo "configure:10212: checking for socket" >&5 10265 echo "configure:10266: checking for socket" >&5
10212 10266
10213 cat > conftest.$ac_ext <<EOF 10267 cat > conftest.$ac_ext <<EOF
10214 #line 10215 "configure" 10268 #line 10269 "configure"
10215 #include "confdefs.h" 10269 #include "confdefs.h"
10216 /* System header to define __stub macros and hopefully few prototypes, 10270 /* System header to define __stub macros and hopefully few prototypes,
10217 which can conflict with char socket(); below. */ 10271 which can conflict with char socket(); below. */
10218 #include <assert.h> 10272 #include <assert.h>
10219 /* Override any gcc2 internal prototype to avoid an error. */ 10273 /* Override any gcc2 internal prototype to avoid an error. */
10232 socket(); 10286 socket();
10233 #endif 10287 #endif
10234 10288
10235 ; return 0; } 10289 ; return 0; }
10236 EOF 10290 EOF
10237 if { (eval echo configure:10238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10291 if { (eval echo configure:10292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10238 rm -rf conftest* 10292 rm -rf conftest*
10239 eval "ac_cv_func_socket=yes" 10293 eval "ac_cv_func_socket=yes"
10240 else 10294 else
10241 echo "configure: failed program was:" >&5 10295 echo "configure: failed program was:" >&5
10242 cat conftest.$ac_ext >&5 10296 cat conftest.$ac_ext >&5
10247 10301
10248 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 10302 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10249 echo "$ac_t""yes" 1>&6 10303 echo "$ac_t""yes" 1>&6
10250 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 10304 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10251 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 10305 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10252 echo "configure:10253: checking for netinet/in.h" >&5 10306 echo "configure:10307: checking for netinet/in.h" >&5
10253 10307
10254 cat > conftest.$ac_ext <<EOF 10308 cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure" 10309 #line 10310 "configure"
10256 #include "confdefs.h" 10310 #include "confdefs.h"
10257 #include <netinet/in.h> 10311 #include <netinet/in.h>
10258 EOF 10312 EOF
10259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10260 { (eval echo configure:10261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10314 { (eval echo configure:10315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10262 if test -z "$ac_err"; then 10316 if test -z "$ac_err"; then
10263 rm -rf conftest* 10317 rm -rf conftest*
10264 eval "ac_cv_header_$ac_safe=yes" 10318 eval "ac_cv_header_$ac_safe=yes"
10265 else 10319 else
10272 rm -f conftest* 10326 rm -f conftest*
10273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6 10328 echo "$ac_t""yes" 1>&6
10275 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 10329 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10276 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 10330 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10277 echo "configure:10278: checking for arpa/inet.h" >&5 10331 echo "configure:10332: checking for arpa/inet.h" >&5
10278 10332
10279 cat > conftest.$ac_ext <<EOF 10333 cat > conftest.$ac_ext <<EOF
10280 #line 10281 "configure" 10334 #line 10335 "configure"
10281 #include "confdefs.h" 10335 #include "confdefs.h"
10282 #include <arpa/inet.h> 10336 #include <arpa/inet.h>
10283 EOF 10337 EOF
10284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10285 { (eval echo configure:10286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10339 { (eval echo configure:10340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10287 if test -z "$ac_err"; then 10341 if test -z "$ac_err"; then
10288 rm -rf conftest* 10342 rm -rf conftest*
10289 eval "ac_cv_header_$ac_safe=yes" 10343 eval "ac_cv_header_$ac_safe=yes"
10290 else 10344 else
10305 #define HAVE_SOCKETS 1 10359 #define HAVE_SOCKETS 1
10306 EOF 10360 EOF
10307 } 10361 }
10308 10362
10309 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 10363 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10310 echo "configure:10311: checking "for sun_len member in struct sockaddr_un"" >&5 10364 echo "configure:10365: checking "for sun_len member in struct sockaddr_un"" >&5
10311 cat > conftest.$ac_ext <<EOF 10365 cat > conftest.$ac_ext <<EOF
10312 #line 10313 "configure" 10366 #line 10367 "configure"
10313 #include "confdefs.h" 10367 #include "confdefs.h"
10314 10368
10315 #include <sys/types.h> 10369 #include <sys/types.h>
10316 #include <sys/socket.h> 10370 #include <sys/socket.h>
10317 #include <sys/un.h> 10371 #include <sys/un.h>
10318 10372
10319 int main() { 10373 int main() {
10320 static struct sockaddr_un x; x.sun_len = 1; 10374 static struct sockaddr_un x; x.sun_len = 1;
10321 ; return 0; } 10375 ; return 0; }
10322 EOF 10376 EOF
10323 if { (eval echo configure:10324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10377 if { (eval echo configure:10378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10324 rm -rf conftest* 10378 rm -rf conftest*
10325 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10379 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10326 Defining HAVE_SOCKADDR_SUN_LEN 10380 Defining HAVE_SOCKADDR_SUN_LEN
10327 EOF 10381 EOF
10328 cat >> confdefs.h <<\EOF 10382 cat >> confdefs.h <<\EOF
10336 rm -rf conftest* 10390 rm -rf conftest*
10337 echo "$ac_t""no" 1>&6 10391 echo "$ac_t""no" 1>&6
10338 fi 10392 fi
10339 rm -f conftest* 10393 rm -f conftest*
10340 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 10394 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10341 echo "configure:10342: checking "for ip_mreq struct in netinet/in.h"" >&5 10395 echo "configure:10396: checking "for ip_mreq struct in netinet/in.h"" >&5
10342 cat > conftest.$ac_ext <<EOF 10396 cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure" 10397 #line 10398 "configure"
10344 #include "confdefs.h" 10398 #include "confdefs.h"
10345 10399
10346 #include <sys/types.h> 10400 #include <sys/types.h>
10347 #include <netinet/in.h> 10401 #include <netinet/in.h>
10348 10402
10349 int main() { 10403 int main() {
10350 static struct ip_mreq x; 10404 static struct ip_mreq x;
10351 ; return 0; } 10405 ; return 0; }
10352 EOF 10406 EOF
10353 if { (eval echo configure:10354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10407 if { (eval echo configure:10408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10354 rm -rf conftest* 10408 rm -rf conftest*
10355 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10409 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10356 Defining HAVE_MULTICAST 10410 Defining HAVE_MULTICAST
10357 EOF 10411 EOF
10358 cat >> confdefs.h <<\EOF 10412 cat >> confdefs.h <<\EOF
10379 echo "$ac_t""no" 1>&6 10433 echo "$ac_t""no" 1>&6
10380 fi 10434 fi
10381 10435
10382 10436
10383 echo $ac_n "checking for msgget""... $ac_c" 1>&6 10437 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10384 echo "configure:10385: checking for msgget" >&5 10438 echo "configure:10439: checking for msgget" >&5
10385 10439
10386 cat > conftest.$ac_ext <<EOF 10440 cat > conftest.$ac_ext <<EOF
10387 #line 10388 "configure" 10441 #line 10442 "configure"
10388 #include "confdefs.h" 10442 #include "confdefs.h"
10389 /* System header to define __stub macros and hopefully few prototypes, 10443 /* System header to define __stub macros and hopefully few prototypes,
10390 which can conflict with char msgget(); below. */ 10444 which can conflict with char msgget(); below. */
10391 #include <assert.h> 10445 #include <assert.h>
10392 /* Override any gcc2 internal prototype to avoid an error. */ 10446 /* Override any gcc2 internal prototype to avoid an error. */
10405 msgget(); 10459 msgget();
10406 #endif 10460 #endif
10407 10461
10408 ; return 0; } 10462 ; return 0; }
10409 EOF 10463 EOF
10410 if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10464 if { (eval echo configure:10465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10411 rm -rf conftest* 10465 rm -rf conftest*
10412 eval "ac_cv_func_msgget=yes" 10466 eval "ac_cv_func_msgget=yes"
10413 else 10467 else
10414 echo "configure: failed program was:" >&5 10468 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5 10469 cat conftest.$ac_ext >&5
10420 10474
10421 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 10475 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10422 echo "$ac_t""yes" 1>&6 10476 echo "$ac_t""yes" 1>&6
10423 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 10477 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10424 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 10478 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10425 echo "configure:10426: checking for sys/ipc.h" >&5 10479 echo "configure:10480: checking for sys/ipc.h" >&5
10426 10480
10427 cat > conftest.$ac_ext <<EOF 10481 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure" 10482 #line 10483 "configure"
10429 #include "confdefs.h" 10483 #include "confdefs.h"
10430 #include <sys/ipc.h> 10484 #include <sys/ipc.h>
10431 EOF 10485 EOF
10432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10433 { (eval echo configure:10434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10487 { (eval echo configure:10488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10435 if test -z "$ac_err"; then 10489 if test -z "$ac_err"; then
10436 rm -rf conftest* 10490 rm -rf conftest*
10437 eval "ac_cv_header_$ac_safe=yes" 10491 eval "ac_cv_header_$ac_safe=yes"
10438 else 10492 else
10445 rm -f conftest* 10499 rm -f conftest*
10446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10447 echo "$ac_t""yes" 1>&6 10501 echo "$ac_t""yes" 1>&6
10448 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 10502 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10449 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 10503 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10450 echo "configure:10451: checking for sys/msg.h" >&5 10504 echo "configure:10505: checking for sys/msg.h" >&5
10451 10505
10452 cat > conftest.$ac_ext <<EOF 10506 cat > conftest.$ac_ext <<EOF
10453 #line 10454 "configure" 10507 #line 10508 "configure"
10454 #include "confdefs.h" 10508 #include "confdefs.h"
10455 #include <sys/msg.h> 10509 #include <sys/msg.h>
10456 EOF 10510 EOF
10457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10458 { (eval echo configure:10459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10512 { (eval echo configure:10513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10460 if test -z "$ac_err"; then 10514 if test -z "$ac_err"; then
10461 rm -rf conftest* 10515 rm -rf conftest*
10462 eval "ac_cv_header_$ac_safe=yes" 10516 eval "ac_cv_header_$ac_safe=yes"
10463 else 10517 else
10491 fi 10545 fi
10492 10546
10493 10547
10494 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 10548 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10495 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 10549 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10496 echo "configure:10497: checking for dirent.h" >&5 10550 echo "configure:10551: checking for dirent.h" >&5
10497 10551
10498 cat > conftest.$ac_ext <<EOF 10552 cat > conftest.$ac_ext <<EOF
10499 #line 10500 "configure" 10553 #line 10554 "configure"
10500 #include "confdefs.h" 10554 #include "confdefs.h"
10501 #include <dirent.h> 10555 #include <dirent.h>
10502 EOF 10556 EOF
10503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10504 { (eval echo configure:10505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10558 { (eval echo configure:10559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10506 if test -z "$ac_err"; then 10560 if test -z "$ac_err"; then
10507 rm -rf conftest* 10561 rm -rf conftest*
10508 eval "ac_cv_header_$ac_safe=yes" 10562 eval "ac_cv_header_$ac_safe=yes"
10509 else 10563 else
10526 10580
10527 else 10581 else
10528 echo "$ac_t""no" 1>&6 10582 echo "$ac_t""no" 1>&6
10529 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 10583 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10530 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 10584 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10531 echo "configure:10532: checking for sys/dir.h" >&5 10585 echo "configure:10586: checking for sys/dir.h" >&5
10532 10586
10533 cat > conftest.$ac_ext <<EOF 10587 cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure" 10588 #line 10589 "configure"
10535 #include "confdefs.h" 10589 #include "confdefs.h"
10536 #include <sys/dir.h> 10590 #include <sys/dir.h>
10537 EOF 10591 EOF
10538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10539 { (eval echo configure:10540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10593 { (eval echo configure:10594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10541 if test -z "$ac_err"; then 10595 if test -z "$ac_err"; then
10542 rm -rf conftest* 10596 rm -rf conftest*
10543 eval "ac_cv_header_$ac_safe=yes" 10597 eval "ac_cv_header_$ac_safe=yes"
10544 else 10598 else
10567 fi 10621 fi
10568 10622
10569 10623
10570 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 10624 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10571 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 10625 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10572 echo "configure:10573: checking for nlist.h" >&5 10626 echo "configure:10627: checking for nlist.h" >&5
10573 10627
10574 cat > conftest.$ac_ext <<EOF 10628 cat > conftest.$ac_ext <<EOF
10575 #line 10576 "configure" 10629 #line 10630 "configure"
10576 #include "confdefs.h" 10630 #include "confdefs.h"
10577 #include <nlist.h> 10631 #include <nlist.h>
10578 EOF 10632 EOF
10579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10580 { (eval echo configure:10581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10634 { (eval echo configure:10635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10582 if test -z "$ac_err"; then 10636 if test -z "$ac_err"; then
10583 rm -rf conftest* 10637 rm -rf conftest*
10584 eval "ac_cv_header_$ac_safe=yes" 10638 eval "ac_cv_header_$ac_safe=yes"
10585 else 10639 else
10605 fi 10659 fi
10606 10660
10607 10661
10608 10662
10609 echo "checking "for sound support"" 1>&6 10663 echo "checking "for sound support"" 1>&6
10610 echo "configure:10611: checking "for sound support"" >&5 10664 echo "configure:10665: checking "for sound support"" >&5
10611 case "$with_sound" in
10612 native | both ) with_native_sound=yes;;
10613 nas | no ) with_native_sound=no;;
10614 esac
10615 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 10665 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10616 10666
10617 if test "$with_native_sound" != "no"; then 10667 if test "$with_native_sound" != "no"; then
10618 if test -n "$native_sound_lib"; then 10668 if test -n "$native_sound_lib"; then
10619 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 10669 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10620 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 10670 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10621 echo "configure:10622: checking for multimedia/audio_device.h" >&5 10671 echo "configure:10672: checking for multimedia/audio_device.h" >&5
10622 10672
10623 cat > conftest.$ac_ext <<EOF 10673 cat > conftest.$ac_ext <<EOF
10624 #line 10625 "configure" 10674 #line 10675 "configure"
10625 #include "confdefs.h" 10675 #include "confdefs.h"
10626 #include <multimedia/audio_device.h> 10676 #include <multimedia/audio_device.h>
10627 EOF 10677 EOF
10628 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"
10629 { (eval echo configure:10630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10679 { (eval echo configure:10680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10631 if test -z "$ac_err"; then 10681 if test -z "$ac_err"; then
10632 rm -rf conftest* 10682 rm -rf conftest*
10633 eval "ac_cv_header_$ac_safe=yes" 10683 eval "ac_cv_header_$ac_safe=yes"
10634 else 10684 else
10672 case "$canonical" in 10722 case "$canonical" in
10673 *-sgi-* ) 10723 *-sgi-* )
10674 if test -z "$native_sound_lib"; then 10724 if test -z "$native_sound_lib"; then
10675 10725
10676 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 10726 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10677 echo "configure:10678: checking for ALopenport in -laudio" >&5 10727 echo "configure:10728: checking for ALopenport in -laudio" >&5
10678 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 10728 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10679 10729
10680 xe_check_libs=" -laudio " 10730 xe_check_libs=" -laudio "
10681 cat > conftest.$ac_ext <<EOF 10731 cat > conftest.$ac_ext <<EOF
10682 #line 10683 "configure" 10732 #line 10733 "configure"
10683 #include "confdefs.h" 10733 #include "confdefs.h"
10684 /* Override any gcc2 internal prototype to avoid an error. */ 10734 /* Override any gcc2 internal prototype to avoid an error. */
10685 /* We use char because int might match the return type of a gcc2 10735 /* We use char because int might match the return type of a gcc2
10686 builtin and then its argument prototype would still apply. */ 10736 builtin and then its argument prototype would still apply. */
10687 char ALopenport(); 10737 char ALopenport();
10688 10738
10689 int main() { 10739 int main() {
10690 ALopenport() 10740 ALopenport()
10691 ; return 0; } 10741 ; return 0; }
10692 EOF 10742 EOF
10693 if { (eval echo configure:10694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10743 if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10694 rm -rf conftest* 10744 rm -rf conftest*
10695 eval "ac_cv_lib_$ac_lib_var=yes" 10745 eval "ac_cv_lib_$ac_lib_var=yes"
10696 else 10746 else
10697 echo "configure: failed program was:" >&5 10747 echo "configure: failed program was:" >&5
10698 cat conftest.$ac_ext >&5 10748 cat conftest.$ac_ext >&5
10719 fi ;; 10769 fi ;;
10720 hppa*-hp-hpux* ) 10770 hppa*-hp-hpux* )
10721 if test -z "$native_sound_lib"; then 10771 if test -z "$native_sound_lib"; then
10722 10772
10723 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 10773 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10724 echo "configure:10725: checking for AOpenAudio in -lAlib" >&5 10774 echo "configure:10775: checking for AOpenAudio in -lAlib" >&5
10725 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 10775 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10726 10776
10727 xe_check_libs=" -lAlib " 10777 xe_check_libs=" -lAlib "
10728 cat > conftest.$ac_ext <<EOF 10778 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure" 10779 #line 10780 "configure"
10730 #include "confdefs.h" 10780 #include "confdefs.h"
10731 /* Override any gcc2 internal prototype to avoid an error. */ 10781 /* Override any gcc2 internal prototype to avoid an error. */
10732 /* We use char because int might match the return type of a gcc2 10782 /* We use char because int might match the return type of a gcc2
10733 builtin and then its argument prototype would still apply. */ 10783 builtin and then its argument prototype would still apply. */
10734 char AOpenAudio(); 10784 char AOpenAudio();
10735 10785
10736 int main() { 10786 int main() {
10737 AOpenAudio() 10787 AOpenAudio()
10738 ; return 0; } 10788 ; return 0; }
10739 EOF 10789 EOF
10740 if { (eval echo configure:10741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10790 if { (eval echo configure:10791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10741 rm -rf conftest* 10791 rm -rf conftest*
10742 eval "ac_cv_lib_$ac_lib_var=yes" 10792 eval "ac_cv_lib_$ac_lib_var=yes"
10743 else 10793 else
10744 echo "configure: failed program was:" >&5 10794 echo "configure: failed program was:" >&5
10745 cat conftest.$ac_ext >&5 10795 cat conftest.$ac_ext >&5
10773 10823
10774 if test -z "$sound_found"; then 10824 if test -z "$sound_found"; then
10775 for dir in "machine" "sys" "linux"; do 10825 for dir in "machine" "sys" "linux"; do
10776 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10826 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10777 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10827 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10778 echo "configure:10779: checking for ${dir}/soundcard.h" >&5 10828 echo "configure:10829: checking for ${dir}/soundcard.h" >&5
10779 10829
10780 cat > conftest.$ac_ext <<EOF 10830 cat > conftest.$ac_ext <<EOF
10781 #line 10782 "configure" 10831 #line 10832 "configure"
10782 #include "confdefs.h" 10832 #include "confdefs.h"
10783 #include <${dir}/soundcard.h> 10833 #include <${dir}/soundcard.h>
10784 EOF 10834 EOF
10785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10786 { (eval echo configure:10787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10836 { (eval echo configure:10837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10788 if test -z "$ac_err"; then 10838 if test -z "$ac_err"; then
10789 rm -rf conftest* 10839 rm -rf conftest*
10790 eval "ac_cv_header_$ac_safe=yes" 10840 eval "ac_cv_header_$ac_safe=yes"
10791 else 10841 else
10797 fi 10847 fi
10798 rm -f conftest* 10848 rm -f conftest*
10799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10800 echo "$ac_t""yes" 1>&6 10850 echo "$ac_t""yes" 1>&6
10801 sound_found=yes 10851 sound_found=yes
10852 need_miscplay=yes
10802 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then 10853 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10803 echo " xemacs will be linked with \"linuxplay.o\"" 10854 echo " xemacs will be linked with \"linuxplay.o\""
10804 fi 10855 fi
10805 { test "$extra_verbose" = "yes" && cat << EOF 10856 { test "$extra_verbose" = "yes" && cat << EOF
10806 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h" 10857 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10819 fi 10870 fi
10820 10871
10821 test "$sound_found" = "yes" && with_native_sound=yes 10872 test "$sound_found" = "yes" && with_native_sound=yes
10822 fi 10873 fi
10823 10874
10824 if test -z "$with_sound"; then
10825 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10826 with_sound=native
10827 fi
10828 fi
10829
10830 if test "$with_native_sound" = "yes"; then 10875 if test "$with_native_sound" = "yes"; then
10831 { test "$extra_verbose" = "yes" && cat << \EOF 10876 { test "$extra_verbose" = "yes" && cat << \EOF
10832 Defining HAVE_NATIVE_SOUND 10877 Defining HAVE_NATIVE_SOUND
10833 EOF 10878 EOF
10834 cat >> confdefs.h <<\EOF 10879 cat >> confdefs.h <<\EOF
10837 } 10882 }
10838 10883
10839 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi 10884 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10840 fi 10885 fi
10841 10886
10842 case "$with_sound" in both | nas ) 10887 if test "$with_nas_sound" = "yes"; then
10843 { test "$extra_verbose" = "yes" && cat << \EOF 10888 { test "$extra_verbose" = "yes" && cat << \EOF
10844 Defining HAVE_NAS_SOUND 10889 Defining HAVE_NAS_SOUND
10845 EOF 10890 EOF
10846 cat >> confdefs.h <<\EOF 10891 cat >> confdefs.h <<\EOF
10847 #define HAVE_NAS_SOUND 1 10892 #define HAVE_NAS_SOUND 1
10851 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10896 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10852 echo " xemacs will be linked with \"nas.o\"" 10897 echo " xemacs will be linked with \"nas.o\""
10853 fi 10898 fi
10854 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10899 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10855 cat > conftest.$ac_ext <<EOF 10900 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure" 10901 #line 10902 "configure"
10857 #include "confdefs.h" 10902 #include "confdefs.h"
10858 #include <audio/Xtutil.h> 10903 #include <audio/Xtutil.h>
10859 EOF 10904 EOF
10860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10861 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10906 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10871 } 10916 }
10872 10917
10873 fi 10918 fi
10874 rm -f conftest* 10919 rm -f conftest*
10875 10920
10876 esac 10921 fi
10922
10923 # Extract the first word of "esd-config", so it can be a program name with args.
10924 set dummy esd-config; ac_word=$2
10925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10926 echo "configure:10927: checking for $ac_word" >&5
10927
10928 if test -n "$have_esd_config"; then
10929 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
10930 else
10931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10932 ac_dummy="$PATH"
10933 for ac_dir in $ac_dummy; do
10934 test -z "$ac_dir" && ac_dir=.
10935 if test -f $ac_dir/$ac_word; then
10936 ac_cv_prog_have_esd_config="yes"
10937 break
10938 fi
10939 done
10940 IFS="$ac_save_ifs"
10941 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
10942 fi
10943 have_esd_config="$ac_cv_prog_have_esd_config"
10944 if test -n "$have_esd_config"; then
10945 echo "$ac_t""$have_esd_config" 1>&6
10946 else
10947 echo "$ac_t""no" 1>&6
10948 fi
10949
10950 if test -z "$with_esd"; then
10951 with_esd=$have_esd_config
10952 fi
10953
10954 if test "$with_esd" = "yes"; then
10955 if test "$have_esd_config" = "no"; then
10956 echo "*** esd-config was not found in your PATH. Disabling esd support."
10957 with_esd=no
10958 else
10959 { test "$extra_verbose" = "yes" && cat << \EOF
10960 Defining HAVE_ESD_SOUND
10961 EOF
10962 cat >> confdefs.h <<\EOF
10963 #define HAVE_ESD_SOUND 1
10964 EOF
10965 }
10966
10967 need_miscplay=yes
10968 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
10969 echo " xemacs will be linked with \"esd.o\""
10970 fi
10971 libs_x="`esd-config --libs` $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$libs_x"; fi
10972 fi
10973 fi
10974
10975 if test "$need_miscplay" = "yes"; then
10976 extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
10977 echo " xemacs will be linked with \"miscplay.o\""
10978 fi
10979 fi
10877 10980
10878 10981
10879 test -z "$with_tty" && with_tty=yes 10982 test -z "$with_tty" && with_tty=yes
10880 10983
10881 if test "$with_tty" = "yes" ; then 10984 if test "$with_tty" = "yes" ; then
10882 echo "checking for TTY-related features" 1>&6 10985 echo "checking for TTY-related features" 1>&6
10883 echo "configure:10884: checking for TTY-related features" >&5 10986 echo "configure:10987: checking for TTY-related features" >&5
10884 { test "$extra_verbose" = "yes" && cat << \EOF 10987 { test "$extra_verbose" = "yes" && cat << \EOF
10885 Defining HAVE_TTY 10988 Defining HAVE_TTY
10886 EOF 10989 EOF
10887 cat >> confdefs.h <<\EOF 10990 cat >> confdefs.h <<\EOF
10888 #define HAVE_TTY 1 10991 #define HAVE_TTY 1
10894 fi 10997 fi
10895 10998
10896 if test -z "$with_ncurses"; then 10999 if test -z "$with_ncurses"; then
10897 11000
10898 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 11001 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10899 echo "configure:10900: checking for tgetent in -lncurses" >&5 11002 echo "configure:11003: checking for tgetent in -lncurses" >&5
10900 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 11003 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10901 11004
10902 xe_check_libs=" -lncurses " 11005 xe_check_libs=" -lncurses "
10903 cat > conftest.$ac_ext <<EOF 11006 cat > conftest.$ac_ext <<EOF
10904 #line 10905 "configure" 11007 #line 11008 "configure"
10905 #include "confdefs.h" 11008 #include "confdefs.h"
10906 /* Override any gcc2 internal prototype to avoid an error. */ 11009 /* Override any gcc2 internal prototype to avoid an error. */
10907 /* We use char because int might match the return type of a gcc2 11010 /* We use char because int might match the return type of a gcc2
10908 builtin and then its argument prototype would still apply. */ 11011 builtin and then its argument prototype would still apply. */
10909 char tgetent(); 11012 char tgetent();
10910 11013
10911 int main() { 11014 int main() {
10912 tgetent() 11015 tgetent()
10913 ; return 0; } 11016 ; return 0; }
10914 EOF 11017 EOF
10915 if { (eval echo configure:10916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11018 if { (eval echo configure:11019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10916 rm -rf conftest* 11019 rm -rf conftest*
10917 eval "ac_cv_lib_$ac_lib_var=yes" 11020 eval "ac_cv_lib_$ac_lib_var=yes"
10918 else 11021 else
10919 echo "configure: failed program was:" >&5 11022 echo "configure: failed program was:" >&5
10920 cat conftest.$ac_ext >&5 11023 cat conftest.$ac_ext >&5
10943 EOF 11046 EOF
10944 } 11047 }
10945 11048
10946 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 11049 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10947 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 11050 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10948 echo "configure:10949: checking for ncurses/curses.h" >&5 11051 echo "configure:11052: checking for ncurses/curses.h" >&5
10949 11052
10950 cat > conftest.$ac_ext <<EOF 11053 cat > conftest.$ac_ext <<EOF
10951 #line 10952 "configure" 11054 #line 11055 "configure"
10952 #include "confdefs.h" 11055 #include "confdefs.h"
10953 #include <ncurses/curses.h> 11056 #include <ncurses/curses.h>
10954 EOF 11057 EOF
10955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10956 { (eval echo configure:10957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11059 { (eval echo configure:11060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10958 if test -z "$ac_err"; then 11061 if test -z "$ac_err"; then
10959 rm -rf conftest* 11062 rm -rf conftest*
10960 eval "ac_cv_header_$ac_safe=yes" 11063 eval "ac_cv_header_$ac_safe=yes"
10961 else 11064 else
10973 echo "$ac_t""no" 1>&6 11076 echo "$ac_t""no" 1>&6
10974 fi 11077 fi
10975 11078
10976 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 11079 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10977 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 11080 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10978 echo "configure:10979: checking for ncurses/term.h" >&5 11081 echo "configure:11082: checking for ncurses/term.h" >&5
10979 11082
10980 cat > conftest.$ac_ext <<EOF 11083 cat > conftest.$ac_ext <<EOF
10981 #line 10982 "configure" 11084 #line 11085 "configure"
10982 #include "confdefs.h" 11085 #include "confdefs.h"
10983 #include <ncurses/term.h> 11086 #include <ncurses/term.h>
10984 EOF 11087 EOF
10985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10986 { (eval echo configure:10987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11089 { (eval echo configure:11090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10988 if test -z "$ac_err"; then 11091 if test -z "$ac_err"; then
10989 rm -rf conftest* 11092 rm -rf conftest*
10990 eval "ac_cv_header_$ac_safe=yes" 11093 eval "ac_cv_header_$ac_safe=yes"
10991 else 11094 else
11011 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 11114 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11012 save_c_switch_site="$c_switch_site" 11115 save_c_switch_site="$c_switch_site"
11013 c_switch_site="$c_switch_site -I/usr/include/ncurses" 11116 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11014 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 11117 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11015 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 11118 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11016 echo "configure:11017: checking for ncurses/curses.h" >&5 11119 echo "configure:11120: checking for ncurses/curses.h" >&5
11017 11120
11018 cat > conftest.$ac_ext <<EOF 11121 cat > conftest.$ac_ext <<EOF
11019 #line 11020 "configure" 11122 #line 11123 "configure"
11020 #include "confdefs.h" 11123 #include "confdefs.h"
11021 #include <ncurses/curses.h> 11124 #include <ncurses/curses.h>
11022 EOF 11125 EOF
11023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11024 { (eval echo configure:11025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11127 { (eval echo configure:11128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11026 if test -z "$ac_err"; then 11129 if test -z "$ac_err"; then
11027 rm -rf conftest* 11130 rm -rf conftest*
11028 eval "ac_cv_header_$ac_safe=yes" 11131 eval "ac_cv_header_$ac_safe=yes"
11029 else 11132 else
11054 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 11157 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11055 else 11158 else
11056 for lib in curses termlib termcap; do 11159 for lib in curses termlib termcap; do
11057 11160
11058 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 11161 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11059 echo "configure:11060: checking for tgetent in -l$lib" >&5 11162 echo "configure:11163: checking for tgetent in -l$lib" >&5
11060 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 11163 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11061 11164
11062 xe_check_libs=" -l$lib " 11165 xe_check_libs=" -l$lib "
11063 cat > conftest.$ac_ext <<EOF 11166 cat > conftest.$ac_ext <<EOF
11064 #line 11065 "configure" 11167 #line 11168 "configure"
11065 #include "confdefs.h" 11168 #include "confdefs.h"
11066 /* Override any gcc2 internal prototype to avoid an error. */ 11169 /* Override any gcc2 internal prototype to avoid an error. */
11067 /* We use char because int might match the return type of a gcc2 11170 /* We use char because int might match the return type of a gcc2
11068 builtin and then its argument prototype would still apply. */ 11171 builtin and then its argument prototype would still apply. */
11069 char tgetent(); 11172 char tgetent();
11070 11173
11071 int main() { 11174 int main() {
11072 tgetent() 11175 tgetent()
11073 ; return 0; } 11176 ; return 0; }
11074 EOF 11177 EOF
11075 if { (eval echo configure:11076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11178 if { (eval echo configure:11179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11076 rm -rf conftest* 11179 rm -rf conftest*
11077 eval "ac_cv_lib_$ac_lib_var=yes" 11180 eval "ac_cv_lib_$ac_lib_var=yes"
11078 else 11181 else
11079 echo "configure: failed program was:" >&5 11182 echo "configure: failed program was:" >&5
11080 cat conftest.$ac_ext >&5 11183 cat conftest.$ac_ext >&5
11101 if test -n "$libs_termcap"; then 11204 if test -n "$libs_termcap"; then
11102 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 11205 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11103 else 11206 else
11104 11207
11105 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 11208 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11106 echo "configure:11107: checking for tgetent in -lcurses" >&5 11209 echo "configure:11210: checking for tgetent in -lcurses" >&5
11107 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 11210 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11108 11211
11109 xe_check_libs=" -lcurses " 11212 xe_check_libs=" -lcurses "
11110 cat > conftest.$ac_ext <<EOF 11213 cat > conftest.$ac_ext <<EOF
11111 #line 11112 "configure" 11214 #line 11215 "configure"
11112 #include "confdefs.h" 11215 #include "confdefs.h"
11113 /* Override any gcc2 internal prototype to avoid an error. */ 11216 /* Override any gcc2 internal prototype to avoid an error. */
11114 /* We use char because int might match the return type of a gcc2 11217 /* We use char because int might match the return type of a gcc2
11115 builtin and then its argument prototype would still apply. */ 11218 builtin and then its argument prototype would still apply. */
11116 char tgetent(); 11219 char tgetent();
11117 11220
11118 int main() { 11221 int main() {
11119 tgetent() 11222 tgetent()
11120 ; return 0; } 11223 ; return 0; }
11121 EOF 11224 EOF
11122 if { (eval echo configure:11123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11225 if { (eval echo configure:11226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11123 rm -rf conftest* 11226 rm -rf conftest*
11124 eval "ac_cv_lib_$ac_lib_var=yes" 11227 eval "ac_cv_lib_$ac_lib_var=yes"
11125 else 11228 else
11126 echo "configure: failed program was:" >&5 11229 echo "configure: failed program was:" >&5
11127 cat conftest.$ac_ext >&5 11230 cat conftest.$ac_ext >&5
11135 echo "$ac_t""yes" 1>&6 11238 echo "$ac_t""yes" 1>&6
11136 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 11239 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11137 else 11240 else
11138 echo "$ac_t""no" 1>&6 11241 echo "$ac_t""no" 1>&6
11139 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 11242 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11140 echo "configure:11141: checking for tgetent in -ltermcap" >&5 11243 echo "configure:11244: checking for tgetent in -ltermcap" >&5
11141 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 11244 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11142 11245
11143 xe_check_libs=" -ltermcap " 11246 xe_check_libs=" -ltermcap "
11144 cat > conftest.$ac_ext <<EOF 11247 cat > conftest.$ac_ext <<EOF
11145 #line 11146 "configure" 11248 #line 11249 "configure"
11146 #include "confdefs.h" 11249 #include "confdefs.h"
11147 /* Override any gcc2 internal prototype to avoid an error. */ 11250 /* Override any gcc2 internal prototype to avoid an error. */
11148 /* We use char because int might match the return type of a gcc2 11251 /* We use char because int might match the return type of a gcc2
11149 builtin and then its argument prototype would still apply. */ 11252 builtin and then its argument prototype would still apply. */
11150 char tgetent(); 11253 char tgetent();
11151 11254
11152 int main() { 11255 int main() {
11153 tgetent() 11256 tgetent()
11154 ; return 0; } 11257 ; return 0; }
11155 EOF 11258 EOF
11156 if { (eval echo configure:11157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11259 if { (eval echo configure:11260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11157 rm -rf conftest* 11260 rm -rf conftest*
11158 eval "ac_cv_lib_$ac_lib_var=yes" 11261 eval "ac_cv_lib_$ac_lib_var=yes"
11159 else 11262 else
11160 echo "configure: failed program was:" >&5 11263 echo "configure: failed program was:" >&5
11161 cat conftest.$ac_ext >&5 11264 cat conftest.$ac_ext >&5
11199 } 11302 }
11200 11303
11201 11304
11202 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 11305 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11203 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 11306 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11204 echo "configure:11205: checking for gpm.h" >&5 11307 echo "configure:11308: checking for gpm.h" >&5
11205 11308
11206 cat > conftest.$ac_ext <<EOF 11309 cat > conftest.$ac_ext <<EOF
11207 #line 11208 "configure" 11310 #line 11311 "configure"
11208 #include "confdefs.h" 11311 #include "confdefs.h"
11209 #include <gpm.h> 11312 #include <gpm.h>
11210 EOF 11313 EOF
11211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11212 { (eval echo configure:11213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11315 { (eval echo configure:11316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11214 if test -z "$ac_err"; then 11317 if test -z "$ac_err"; then
11215 rm -rf conftest* 11318 rm -rf conftest*
11216 eval "ac_cv_header_$ac_safe=yes" 11319 eval "ac_cv_header_$ac_safe=yes"
11217 else 11320 else
11230 with_gpm=no 11333 with_gpm=no
11231 fi 11334 fi
11232 } 11335 }
11233 test -z "$with_gpm" && { 11336 test -z "$with_gpm" && {
11234 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 11337 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11235 echo "configure:11236: checking for Gpm_Open in -lgpm" >&5 11338 echo "configure:11339: checking for Gpm_Open in -lgpm" >&5
11236 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 11339 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11237 11340
11238 xe_check_libs=" -lgpm " 11341 xe_check_libs=" -lgpm "
11239 cat > conftest.$ac_ext <<EOF 11342 cat > conftest.$ac_ext <<EOF
11240 #line 11241 "configure" 11343 #line 11344 "configure"
11241 #include "confdefs.h" 11344 #include "confdefs.h"
11242 /* Override any gcc2 internal prototype to avoid an error. */ 11345 /* Override any gcc2 internal prototype to avoid an error. */
11243 /* We use char because int might match the return type of a gcc2 11346 /* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */ 11347 builtin and then its argument prototype would still apply. */
11245 char Gpm_Open(); 11348 char Gpm_Open();
11246 11349
11247 int main() { 11350 int main() {
11248 Gpm_Open() 11351 Gpm_Open()
11249 ; return 0; } 11352 ; return 0; }
11250 EOF 11353 EOF
11251 if { (eval echo configure:11252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11354 if { (eval echo configure:11355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11252 rm -rf conftest* 11355 rm -rf conftest*
11253 eval "ac_cv_lib_$ac_lib_var=yes" 11356 eval "ac_cv_lib_$ac_lib_var=yes"
11254 else 11357 else
11255 echo "configure: failed program was:" >&5 11358 echo "configure: failed program was:" >&5
11256 cat conftest.$ac_ext >&5 11359 cat conftest.$ac_ext >&5
11294 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then 11397 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11295 echo " xemacs will be linked with \"event-unixoid.o\"" 11398 echo " xemacs will be linked with \"event-unixoid.o\""
11296 fi 11399 fi
11297 11400
11298 11401
11299 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \ 11402 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
11300 != "no no no" && echo "checking for database support" 1>&6 11403 != "no no no" && echo "checking for database support" 1>&6
11301 echo "configure:11302: checking for database support" >&5 11404 echo "configure:11405: checking for database support" >&5
11302 11405
11303 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then 11406 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
11304 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 11407 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11305 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 11408 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11306 echo "configure:11307: checking for ndbm.h" >&5 11409 echo "configure:11410: checking for ndbm.h" >&5
11307 11410
11308 cat > conftest.$ac_ext <<EOF 11411 cat > conftest.$ac_ext <<EOF
11309 #line 11310 "configure" 11412 #line 11413 "configure"
11310 #include "confdefs.h" 11413 #include "confdefs.h"
11311 #include <ndbm.h> 11414 #include <ndbm.h>
11312 EOF 11415 EOF
11313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11314 { (eval echo configure:11315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11417 { (eval echo configure:11418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11316 if test -z "$ac_err"; then 11419 if test -z "$ac_err"; then
11317 rm -rf conftest* 11420 rm -rf conftest*
11318 eval "ac_cv_header_$ac_safe=yes" 11421 eval "ac_cv_header_$ac_safe=yes"
11319 else 11422 else
11328 echo "$ac_t""yes" 1>&6 11431 echo "$ac_t""yes" 1>&6
11329 : 11432 :
11330 else 11433 else
11331 echo "$ac_t""no" 1>&6 11434 echo "$ac_t""no" 1>&6
11332 11435
11333 test "$with_database_gnudbm" = "yes" -o \ 11436 test "$with_database_gdbm" = "yes" -o \
11334 "$with_database_dbm" = "yes" && \ 11437 "$with_database_dbm" = "yes" && \
11335 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; } 11438 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11336 with_database_gnudbm=no with_database_dbm=no 11439 with_database_gdbm=no with_database_dbm=no
11337 fi 11440 fi
11338 11441
11339 fi 11442 fi
11340 11443
11341 if test "$with_database_gnudbm" != "no"; then 11444 if test "$with_database_gdbm" != "no"; then
11342 11445
11343 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 11446 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11344 echo "configure:11345: checking for dbm_open in -lgdbm" >&5 11447 echo "configure:11448: checking for dbm_open in -lgdbm" >&5
11345 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 11448 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11346 11449
11347 xe_check_libs=" -lgdbm " 11450 xe_check_libs=" -lgdbm "
11348 cat > conftest.$ac_ext <<EOF 11451 cat > conftest.$ac_ext <<EOF
11349 #line 11350 "configure" 11452 #line 11453 "configure"
11350 #include "confdefs.h" 11453 #include "confdefs.h"
11351 /* Override any gcc2 internal prototype to avoid an error. */ 11454 /* Override any gcc2 internal prototype to avoid an error. */
11352 /* We use char because int might match the return type of a gcc2 11455 /* We use char because int might match the return type of a gcc2
11353 builtin and then its argument prototype would still apply. */ 11456 builtin and then its argument prototype would still apply. */
11354 char dbm_open(); 11457 char dbm_open();
11355 11458
11356 int main() { 11459 int main() {
11357 dbm_open() 11460 dbm_open()
11358 ; return 0; } 11461 ; return 0; }
11359 EOF 11462 EOF
11360 if { (eval echo configure:11361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11463 if { (eval echo configure:11464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11361 rm -rf conftest* 11464 rm -rf conftest*
11362 eval "ac_cv_lib_$ac_lib_var=yes" 11465 eval "ac_cv_lib_$ac_lib_var=yes"
11363 else 11466 else
11364 echo "configure: failed program was:" >&5 11467 echo "configure: failed program was:" >&5
11365 cat conftest.$ac_ext >&5 11468 cat conftest.$ac_ext >&5
11369 rm -f conftest* 11472 rm -f conftest*
11370 xe_check_libs="" 11473 xe_check_libs=""
11371 11474
11372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 11475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11373 echo "$ac_t""yes" 1>&6 11476 echo "$ac_t""yes" 1>&6
11374 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm 11477 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
11375 else 11478 else
11376 echo "$ac_t""no" 1>&6 11479 echo "$ac_t""no" 1>&6
11377 if test "$with_database_gnudbm" = "yes"; then 11480 if test "$with_database_gdbm" = "yes"; then
11378 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; } 11481 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11379 fi 11482 fi
11380 with_database_gnudbm=no 11483 with_database_gdbm=no
11381 fi 11484 fi
11382 11485
11383 11486
11384 fi 11487 fi
11385 11488
11386 if test "$with_database_dbm" != "no"; then 11489 if test "$with_database_dbm" != "no"; then
11387 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 11490 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11388 echo "configure:11389: checking for dbm_open" >&5 11491 echo "configure:11492: checking for dbm_open" >&5
11389 11492
11390 cat > conftest.$ac_ext <<EOF 11493 cat > conftest.$ac_ext <<EOF
11391 #line 11392 "configure" 11494 #line 11495 "configure"
11392 #include "confdefs.h" 11495 #include "confdefs.h"
11393 /* System header to define __stub macros and hopefully few prototypes, 11496 /* System header to define __stub macros and hopefully few prototypes,
11394 which can conflict with char dbm_open(); below. */ 11497 which can conflict with char dbm_open(); below. */
11395 #include <assert.h> 11498 #include <assert.h>
11396 /* Override any gcc2 internal prototype to avoid an error. */ 11499 /* Override any gcc2 internal prototype to avoid an error. */
11409 dbm_open(); 11512 dbm_open();
11410 #endif 11513 #endif
11411 11514
11412 ; return 0; } 11515 ; return 0; }
11413 EOF 11516 EOF
11414 if { (eval echo configure:11415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11517 if { (eval echo configure:11518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11415 rm -rf conftest* 11518 rm -rf conftest*
11416 eval "ac_cv_func_dbm_open=yes" 11519 eval "ac_cv_func_dbm_open=yes"
11417 else 11520 else
11418 echo "configure: failed program was:" >&5 11521 echo "configure: failed program was:" >&5
11419 cat conftest.$ac_ext >&5 11522 cat conftest.$ac_ext >&5
11428 else 11531 else
11429 echo "$ac_t""no" 1>&6 11532 echo "$ac_t""no" 1>&6
11430 11533
11431 11534
11432 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 11535 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11433 echo "configure:11434: checking for dbm_open in -ldbm" >&5 11536 echo "configure:11537: checking for dbm_open in -ldbm" >&5
11434 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 11537 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11435 11538
11436 xe_check_libs=" -ldbm " 11539 xe_check_libs=" -ldbm "
11437 cat > conftest.$ac_ext <<EOF 11540 cat > conftest.$ac_ext <<EOF
11438 #line 11439 "configure" 11541 #line 11542 "configure"
11439 #include "confdefs.h" 11542 #include "confdefs.h"
11440 /* Override any gcc2 internal prototype to avoid an error. */ 11543 /* Override any gcc2 internal prototype to avoid an error. */
11441 /* We use char because int might match the return type of a gcc2 11544 /* We use char because int might match the return type of a gcc2
11442 builtin and then its argument prototype would still apply. */ 11545 builtin and then its argument prototype would still apply. */
11443 char dbm_open(); 11546 char dbm_open();
11444 11547
11445 int main() { 11548 int main() {
11446 dbm_open() 11549 dbm_open()
11447 ; return 0; } 11550 ; return 0; }
11448 EOF 11551 EOF
11449 if { (eval echo configure:11450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11552 if { (eval echo configure:11553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11450 rm -rf conftest* 11553 rm -rf conftest*
11451 eval "ac_cv_lib_$ac_lib_var=yes" 11554 eval "ac_cv_lib_$ac_lib_var=yes"
11452 else 11555 else
11453 echo "configure: failed program was:" >&5 11556 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5 11557 cat conftest.$ac_ext >&5
11472 fi 11575 fi
11473 11576
11474 fi 11577 fi
11475 11578
11476 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi 11579 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11477 test "$with_database_gnudbm" = "yes" -o \ 11580 test "$with_database_gdbm" = "yes" -o \
11478 "$with_database_dbm" = "yes" && \ 11581 "$with_database_dbm" = "yes" && \
11479 { test "$extra_verbose" = "yes" && cat << \EOF 11582 { test "$extra_verbose" = "yes" && cat << \EOF
11480 Defining HAVE_DBM 11583 Defining HAVE_DBM
11481 EOF 11584 EOF
11482 cat >> confdefs.h <<\EOF 11585 cat >> confdefs.h <<\EOF
11483 #define HAVE_DBM 1 11586 #define HAVE_DBM 1
11485 } 11588 }
11486 11589
11487 11590
11488 if test "$with_database_berkdb" != "no"; then 11591 if test "$with_database_berkdb" != "no"; then
11489 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 11592 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11490 echo "configure:11491: checking for Berkeley db.h" >&5 11593 echo "configure:11594: checking for Berkeley db.h" >&5
11491 for path in "db/db.h" "db.h"; do 11594 for path in "db/db.h" "db.h"; do
11492 cat > conftest.$ac_ext <<EOF 11595 cat > conftest.$ac_ext <<EOF
11493 #line 11494 "configure" 11596 #line 11597 "configure"
11494 #include "confdefs.h" 11597 #include "confdefs.h"
11495 #ifdef HAVE_INTTYPES_H 11598 #ifdef HAVE_INTTYPES_H
11496 #define __BIT_TYPES_DEFINED__ 11599 #define __BIT_TYPES_DEFINED__
11497 #include <inttypes.h> 11600 #include <inttypes.h>
11498 typedef uint8_t u_int8_t; 11601 typedef uint8_t u_int8_t;
11506 11609
11507 int main() { 11610 int main() {
11508 11611
11509 ; return 0; } 11612 ; return 0; }
11510 EOF 11613 EOF
11511 if { (eval echo configure:11512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11614 if { (eval echo configure:11615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11512 rm -rf conftest* 11615 rm -rf conftest*
11513 db_h_path="$path"; break 11616 db_h_path="$path"; break
11514 else 11617 else
11515 echo "configure: failed program was:" >&5 11618 echo "configure: failed program was:" >&5
11516 cat conftest.$ac_ext >&5 11619 cat conftest.$ac_ext >&5
11522 else echo "$ac_t""$db_h_path" 1>&6 11625 else echo "$ac_t""$db_h_path" 1>&6
11523 fi 11626 fi
11524 11627
11525 if test "$with_database_berkdb" != "no"; then 11628 if test "$with_database_berkdb" != "no"; then
11526 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 11629 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11527 echo "configure:11528: checking for Berkeley DB version" >&5 11630 echo "configure:11631: checking for Berkeley DB version" >&5
11528 cat > conftest.$ac_ext <<EOF 11631 cat > conftest.$ac_ext <<EOF
11529 #line 11530 "configure" 11632 #line 11633 "configure"
11530 #include "confdefs.h" 11633 #include "confdefs.h"
11531 #include <$db_h_path> 11634 #include <$db_h_path>
11532 #if DB_VERSION_MAJOR > 1 11635 #if DB_VERSION_MAJOR > 1
11533 yes 11636 yes
11534 #endif 11637 #endif
11543 echo "$ac_t""1" 1>&6; dbfunc=dbopen 11646 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11544 fi 11647 fi
11545 rm -f conftest* 11648 rm -f conftest*
11546 11649
11547 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 11650 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11548 echo "configure:11549: checking for $dbfunc" >&5 11651 echo "configure:11652: checking for $dbfunc" >&5
11549 11652
11550 cat > conftest.$ac_ext <<EOF 11653 cat > conftest.$ac_ext <<EOF
11551 #line 11552 "configure" 11654 #line 11655 "configure"
11552 #include "confdefs.h" 11655 #include "confdefs.h"
11553 /* System header to define __stub macros and hopefully few prototypes, 11656 /* System header to define __stub macros and hopefully few prototypes,
11554 which can conflict with char $dbfunc(); below. */ 11657 which can conflict with char $dbfunc(); below. */
11555 #include <assert.h> 11658 #include <assert.h>
11556 /* Override any gcc2 internal prototype to avoid an error. */ 11659 /* Override any gcc2 internal prototype to avoid an error. */
11569 $dbfunc(); 11672 $dbfunc();
11570 #endif 11673 #endif
11571 11674
11572 ; return 0; } 11675 ; return 0; }
11573 EOF 11676 EOF
11574 if { (eval echo configure:11575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11677 if { (eval echo configure:11678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11575 rm -rf conftest* 11678 rm -rf conftest*
11576 eval "ac_cv_func_$dbfunc=yes" 11679 eval "ac_cv_func_$dbfunc=yes"
11577 else 11680 else
11578 echo "configure: failed program was:" >&5 11681 echo "configure: failed program was:" >&5
11579 cat conftest.$ac_ext >&5 11682 cat conftest.$ac_ext >&5
11588 else 11691 else
11589 echo "$ac_t""no" 1>&6 11692 echo "$ac_t""no" 1>&6
11590 11693
11591 11694
11592 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 11695 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11593 echo "configure:11594: checking for $dbfunc in -ldb" >&5 11696 echo "configure:11697: checking for $dbfunc in -ldb" >&5
11594 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 11697 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11595 11698
11596 xe_check_libs=" -ldb " 11699 xe_check_libs=" -ldb "
11597 cat > conftest.$ac_ext <<EOF 11700 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure" 11701 #line 11702 "configure"
11599 #include "confdefs.h" 11702 #include "confdefs.h"
11600 /* Override any gcc2 internal prototype to avoid an error. */ 11703 /* Override any gcc2 internal prototype to avoid an error. */
11601 /* We use char because int might match the return type of a gcc2 11704 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */ 11705 builtin and then its argument prototype would still apply. */
11603 char $dbfunc(); 11706 char $dbfunc();
11604 11707
11605 int main() { 11708 int main() {
11606 $dbfunc() 11709 $dbfunc()
11607 ; return 0; } 11710 ; return 0; }
11608 EOF 11711 EOF
11609 if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11712 if { (eval echo configure:11713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11610 rm -rf conftest* 11713 rm -rf conftest*
11611 eval "ac_cv_lib_$ac_lib_var=yes" 11714 eval "ac_cv_lib_$ac_lib_var=yes"
11612 else 11715 else
11613 echo "configure: failed program was:" >&5 11716 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5 11717 cat conftest.$ac_ext >&5
11650 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi 11753 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11651 else with_database_berkdb=no 11754 else with_database_berkdb=no
11652 fi 11755 fi
11653 fi 11756 fi
11654 11757
11655 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \ 11758 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
11656 != "no no no"; then 11759 != "no no no"; then
11657 { test "$extra_verbose" = "yes" && cat << \EOF 11760 { test "$extra_verbose" = "yes" && cat << \EOF
11658 Defining HAVE_DATABASE 11761 Defining HAVE_DATABASE
11659 EOF 11762 EOF
11660 cat >> confdefs.h <<\EOF 11763 cat >> confdefs.h <<\EOF
11668 fi 11771 fi
11669 11772
11670 if test "$with_socks" = "yes"; then 11773 if test "$with_socks" = "yes"; then
11671 11774
11672 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 11775 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11673 echo "configure:11674: checking for SOCKSinit in -lsocks" >&5 11776 echo "configure:11777: checking for SOCKSinit in -lsocks" >&5
11674 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 11777 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11675 11778
11676 xe_check_libs=" -lsocks " 11779 xe_check_libs=" -lsocks "
11677 cat > conftest.$ac_ext <<EOF 11780 cat > conftest.$ac_ext <<EOF
11678 #line 11679 "configure" 11781 #line 11782 "configure"
11679 #include "confdefs.h" 11782 #include "confdefs.h"
11680 /* Override any gcc2 internal prototype to avoid an error. */ 11783 /* Override any gcc2 internal prototype to avoid an error. */
11681 /* We use char because int might match the return type of a gcc2 11784 /* We use char because int might match the return type of a gcc2
11682 builtin and then its argument prototype would still apply. */ 11785 builtin and then its argument prototype would still apply. */
11683 char SOCKSinit(); 11786 char SOCKSinit();
11684 11787
11685 int main() { 11788 int main() {
11686 SOCKSinit() 11789 SOCKSinit()
11687 ; return 0; } 11790 ; return 0; }
11688 EOF 11791 EOF
11689 if { (eval echo configure:11690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11792 if { (eval echo configure:11793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11690 rm -rf conftest* 11793 rm -rf conftest*
11691 eval "ac_cv_lib_$ac_lib_var=yes" 11794 eval "ac_cv_lib_$ac_lib_var=yes"
11692 else 11795 else
11693 echo "configure: failed program was:" >&5 11796 echo "configure: failed program was:" >&5
11694 cat conftest.$ac_ext >&5 11797 cat conftest.$ac_ext >&5
11741 11844
11742 for ac_hdr in dlfcn.h 11845 for ac_hdr in dlfcn.h
11743 do 11846 do
11744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11746 echo "configure:11747: checking for $ac_hdr" >&5 11849 echo "configure:11850: checking for $ac_hdr" >&5
11747 11850
11748 cat > conftest.$ac_ext <<EOF 11851 cat > conftest.$ac_ext <<EOF
11749 #line 11750 "configure" 11852 #line 11853 "configure"
11750 #include "confdefs.h" 11853 #include "confdefs.h"
11751 #include <$ac_hdr> 11854 #include <$ac_hdr>
11752 EOF 11855 EOF
11753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11754 { (eval echo configure:11755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11857 { (eval echo configure:11858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11756 if test -z "$ac_err"; then 11859 if test -z "$ac_err"; then
11757 rm -rf conftest* 11860 rm -rf conftest*
11758 eval "ac_cv_header_$ac_safe=yes" 11861 eval "ac_cv_header_$ac_safe=yes"
11759 else 11862 else
11788 fi 11891 fi
11789 done 11892 done
11790 11893
11791 test -z "$with_modules" && test ! -z "$have_dlfcn" && { 11894 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11792 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11895 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11793 echo "configure:11794: checking for dlopen in -ldl" >&5 11896 echo "configure:11897: checking for dlopen in -ldl" >&5
11794 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11897 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11795 11898
11796 xe_check_libs=" -ldl " 11899 xe_check_libs=" -ldl "
11797 cat > conftest.$ac_ext <<EOF 11900 cat > conftest.$ac_ext <<EOF
11798 #line 11799 "configure" 11901 #line 11902 "configure"
11799 #include "confdefs.h" 11902 #include "confdefs.h"
11800 /* Override any gcc2 internal prototype to avoid an error. */ 11903 /* Override any gcc2 internal prototype to avoid an error. */
11801 /* We use char because int might match the return type of a gcc2 11904 /* We use char because int might match the return type of a gcc2
11802 builtin and then its argument prototype would still apply. */ 11905 builtin and then its argument prototype would still apply. */
11803 char dlopen(); 11906 char dlopen();
11804 11907
11805 int main() { 11908 int main() {
11806 dlopen() 11909 dlopen()
11807 ; return 0; } 11910 ; return 0; }
11808 EOF 11911 EOF
11809 if { (eval echo configure:11810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11912 if { (eval echo configure:11913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11810 rm -rf conftest* 11913 rm -rf conftest*
11811 eval "ac_cv_lib_$ac_lib_var=yes" 11914 eval "ac_cv_lib_$ac_lib_var=yes"
11812 else 11915 else
11813 echo "configure: failed program was:" >&5 11916 echo "configure: failed program was:" >&5
11814 cat conftest.$ac_ext >&5 11917 cat conftest.$ac_ext >&5
11833 fi 11936 fi
11834 11937
11835 } 11938 }
11836 test -z "$with_modules" && test ! -z "$have_dlfcn" && { 11939 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11837 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 11940 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11838 echo "configure:11839: checking for _dlopen in -lc" >&5 11941 echo "configure:11942: checking for _dlopen in -lc" >&5
11839 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 11942 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11840 11943
11841 xe_check_libs=" -lc " 11944 xe_check_libs=" -lc "
11842 cat > conftest.$ac_ext <<EOF 11945 cat > conftest.$ac_ext <<EOF
11843 #line 11844 "configure" 11946 #line 11947 "configure"
11844 #include "confdefs.h" 11947 #include "confdefs.h"
11845 /* Override any gcc2 internal prototype to avoid an error. */ 11948 /* Override any gcc2 internal prototype to avoid an error. */
11846 /* We use char because int might match the return type of a gcc2 11949 /* We use char because int might match the return type of a gcc2
11847 builtin and then its argument prototype would still apply. */ 11950 builtin and then its argument prototype would still apply. */
11848 char _dlopen(); 11951 char _dlopen();
11849 11952
11850 int main() { 11953 int main() {
11851 _dlopen() 11954 _dlopen()
11852 ; return 0; } 11955 ; return 0; }
11853 EOF 11956 EOF
11854 if { (eval echo configure:11855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11957 if { (eval echo configure:11958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11855 rm -rf conftest* 11958 rm -rf conftest*
11856 eval "ac_cv_lib_$ac_lib_var=yes" 11959 eval "ac_cv_lib_$ac_lib_var=yes"
11857 else 11960 else
11858 echo "configure: failed program was:" >&5 11961 echo "configure: failed program was:" >&5
11859 cat conftest.$ac_ext >&5 11962 cat conftest.$ac_ext >&5
11878 fi 11981 fi
11879 11982
11880 } 11983 }
11881 test -z "$with_modules" && test ! -z "$have_dlfcn" && { 11984 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11882 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11985 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11883 echo "configure:11884: checking for dlopen in -lc" >&5 11986 echo "configure:11987: checking for dlopen in -lc" >&5
11884 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11987 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11885 11988
11886 xe_check_libs=" -lc " 11989 xe_check_libs=" -lc "
11887 cat > conftest.$ac_ext <<EOF 11990 cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure" 11991 #line 11992 "configure"
11889 #include "confdefs.h" 11992 #include "confdefs.h"
11890 /* Override any gcc2 internal prototype to avoid an error. */ 11993 /* Override any gcc2 internal prototype to avoid an error. */
11891 /* We use char because int might match the return type of a gcc2 11994 /* We use char because int might match the return type of a gcc2
11892 builtin and then its argument prototype would still apply. */ 11995 builtin and then its argument prototype would still apply. */
11893 char dlopen(); 11996 char dlopen();
11894 11997
11895 int main() { 11998 int main() {
11896 dlopen() 11999 dlopen()
11897 ; return 0; } 12000 ; return 0; }
11898 EOF 12001 EOF
11899 if { (eval echo configure:11900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12002 if { (eval echo configure:12003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11900 rm -rf conftest* 12003 rm -rf conftest*
11901 eval "ac_cv_lib_$ac_lib_var=yes" 12004 eval "ac_cv_lib_$ac_lib_var=yes"
11902 else 12005 else
11903 echo "configure: failed program was:" >&5 12006 echo "configure: failed program was:" >&5
11904 cat conftest.$ac_ext >&5 12007 cat conftest.$ac_ext >&5
11923 fi 12026 fi
11924 12027
11925 } 12028 }
11926 test -z "$with_modules" && { 12029 test -z "$with_modules" && {
11927 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 12030 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11928 echo "configure:11929: checking for shl_load in -ldld" >&5 12031 echo "configure:12032: checking for shl_load in -ldld" >&5
11929 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 12032 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11930 12033
11931 xe_check_libs=" -ldld " 12034 xe_check_libs=" -ldld "
11932 cat > conftest.$ac_ext <<EOF 12035 cat > conftest.$ac_ext <<EOF
11933 #line 11934 "configure" 12036 #line 12037 "configure"
11934 #include "confdefs.h" 12037 #include "confdefs.h"
11935 /* Override any gcc2 internal prototype to avoid an error. */ 12038 /* Override any gcc2 internal prototype to avoid an error. */
11936 /* We use char because int might match the return type of a gcc2 12039 /* We use char because int might match the return type of a gcc2
11937 builtin and then its argument prototype would still apply. */ 12040 builtin and then its argument prototype would still apply. */
11938 char shl_load(); 12041 char shl_load();
11939 12042
11940 int main() { 12043 int main() {
11941 shl_load() 12044 shl_load()
11942 ; return 0; } 12045 ; return 0; }
11943 EOF 12046 EOF
11944 if { (eval echo configure:11945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12047 if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11945 rm -rf conftest* 12048 rm -rf conftest*
11946 eval "ac_cv_lib_$ac_lib_var=yes" 12049 eval "ac_cv_lib_$ac_lib_var=yes"
11947 else 12050 else
11948 echo "configure: failed program was:" >&5 12051 echo "configure: failed program was:" >&5
11949 cat conftest.$ac_ext >&5 12052 cat conftest.$ac_ext >&5
11968 fi 12071 fi
11969 12072
11970 } 12073 }
11971 test -z "$with_modules" && { 12074 test -z "$with_modules" && {
11972 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 12075 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11973 echo "configure:11974: checking for dld_init in -ldld" >&5 12076 echo "configure:12077: checking for dld_init in -ldld" >&5
11974 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 12077 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11975 12078
11976 xe_check_libs=" -ldld " 12079 xe_check_libs=" -ldld "
11977 cat > conftest.$ac_ext <<EOF 12080 cat > conftest.$ac_ext <<EOF
11978 #line 11979 "configure" 12081 #line 12082 "configure"
11979 #include "confdefs.h" 12082 #include "confdefs.h"
11980 /* Override any gcc2 internal prototype to avoid an error. */ 12083 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2 12084 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */ 12085 builtin and then its argument prototype would still apply. */
11983 char dld_init(); 12086 char dld_init();
11984 12087
11985 int main() { 12088 int main() {
11986 dld_init() 12089 dld_init()
11987 ; return 0; } 12090 ; return 0; }
11988 EOF 12091 EOF
11989 if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12092 if { (eval echo configure:12093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11990 rm -rf conftest* 12093 rm -rf conftest*
11991 eval "ac_cv_lib_$ac_lib_var=yes" 12094 eval "ac_cv_lib_$ac_lib_var=yes"
11992 else 12095 else
11993 echo "configure: failed program was:" >&5 12096 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5 12097 cat conftest.$ac_ext >&5
12023 ld_dynamic_link_flags= 12126 ld_dynamic_link_flags=
12024 xehost=$canonical 12127 xehost=$canonical
12025 xealias=$internal_configuration 12128 xealias=$internal_configuration
12026 12129
12027 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 12130 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12028 echo "configure:12029: checking how to build dynamic libraries for ${xehost}" >&5 12131 echo "configure:12132: checking how to build dynamic libraries for ${xehost}" >&5
12029 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 12132 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12030 case "$xehost" in 12133 case "$xehost" in
12031 *-*-linux-gnu*) ;; 12134 *-*-linux-gnu*) ;;
12032 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 12135 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12033 esac 12136 esac
12051 # Now see if the compiler is really GCC. 12154 # Now see if the compiler is really GCC.
12052 if test "$GCC" = "yes"; then 12155 if test "$GCC" = "yes"; then
12053 XEGCC=yes 12156 XEGCC=yes
12054 else 12157 else
12055 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 12158 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12056 echo "configure:12057: checking checking whether we are using GNU C" >&5 12159 echo "configure:12160: checking checking whether we are using GNU C" >&5
12057 cat > conftest.$ac_ext <<EOF 12160 cat > conftest.$ac_ext <<EOF
12058 #line 12059 "configure" 12161 #line 12162 "configure"
12059 #include "confdefs.h" 12162 #include "confdefs.h"
12060 12163
12061 #ifdef __GNUC__ 12164 #ifdef __GNUC__
12062 yes; 12165 yes;
12063 #endif 12166 #endif
12075 12178
12076 echo "$ac_t""${XEGCC}" 1>&6 12179 echo "$ac_t""${XEGCC}" 1>&6
12077 fi 12180 fi
12078 12181
12079 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 12182 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12080 echo "configure:12081: checking how to produce PIC code" >&5 12183 echo "configure:12184: checking how to produce PIC code" >&5
12081 wl= 12184 wl=
12082 12185
12083 can_build_shared=yes 12186 can_build_shared=yes
12084 if test "$XEGCC" = yes; then 12187 if test "$XEGCC" = yes; then
12085 wl='-Wl,' 12188 wl='-Wl,'
12168 if test -n "$dll_cflags"; then 12271 if test -n "$dll_cflags"; then
12169 echo "$ac_t""${dll_cflags}" 1>&6 12272 echo "$ac_t""${dll_cflags}" 1>&6
12170 12273
12171 # Check to make sure the dll_cflags actually works. 12274 # Check to make sure the dll_cflags actually works.
12172 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 12275 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12173 echo "configure:12174: checking if PIC flag ${dll_cflags} really works" >&5 12276 echo "configure:12277: checking if PIC flag ${dll_cflags} really works" >&5
12174 save_CFLAGS="$CFLAGS" 12277 save_CFLAGS="$CFLAGS"
12175 CFLAGS="$CFLAGS $dll_cflags -DPIC" 12278 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12176 cat > conftest.$ac_ext <<EOF 12279 cat > conftest.$ac_ext <<EOF
12177 #line 12178 "configure" 12280 #line 12281 "configure"
12178 #include "confdefs.h" 12281 #include "confdefs.h"
12179 12282
12180 int main() { 12283 int main() {
12181 int x=0; 12284 int x=0;
12182 ; return 0; } 12285 ; return 0; }
12183 EOF 12286 EOF
12184 if { (eval echo configure:12185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12287 if { (eval echo configure:12288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12185 rm -rf conftest* 12288 rm -rf conftest*
12186 12289
12187 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 12290 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12188 # reports no error. So, we need to grep stderr for (Bundled). 12291 # reports no error. So, we need to grep stderr for (Bundled).
12189 if grep '(Bundled)' config.log >/dev/null; then 12292 if grep '(Bundled)' config.log >/dev/null; then
12210 if test "$can_build_shared" = "yes"; then 12313 if test "$can_build_shared" = "yes"; then
12211 cc_produces_so=no 12314 cc_produces_so=no
12212 xldf= 12315 xldf=
12213 xcldf= 12316 xcldf=
12214 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 12317 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12215 echo "configure:12216: checking if C compiler can produce shared libraries" >&5 12318 echo "configure:12319: checking if C compiler can produce shared libraries" >&5
12216 if test "$XEGCC" = yes; then 12319 if test "$XEGCC" = yes; then
12217 xcldf="-shared" 12320 xcldf="-shared"
12218 xldf="-shared" 12321 xldf="-shared"
12219 else # Not using GCC 12322 else # Not using GCC
12220 case "$xehost_os" in 12323 case "$xehost_os" in
12261 LDFLAGS="$xcldf $LDFLAGS" 12364 LDFLAGS="$xcldf $LDFLAGS"
12262 LIBS= 12365 LIBS=
12263 xe_libs= 12366 xe_libs=
12264 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 12367 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12265 cat > conftest.$ac_ext <<EOF 12368 cat > conftest.$ac_ext <<EOF
12266 #line 12267 "configure" 12369 #line 12370 "configure"
12267 #include "confdefs.h" 12370 #include "confdefs.h"
12268 12371
12269 int main() { 12372 int main() {
12270 int x=0; 12373 int x=0;
12271 ; return 0; } 12374 ; return 0; }
12272 EOF 12375 EOF
12273 if { (eval echo configure:12274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12376 if { (eval echo configure:12377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12274 rm -rf conftest* 12377 rm -rf conftest*
12275 cc_produces_so=yes 12378 cc_produces_so=yes
12276 else 12379 else
12277 echo "configure: failed program was:" >&5 12380 echo "configure: failed program was:" >&5
12278 cat conftest.$ac_ext >&5 12381 cat conftest.$ac_ext >&5
12293 if test -z "$LTLD"; then 12396 if test -z "$LTLD"; then
12294 ac_prog=ld 12397 ac_prog=ld
12295 if test "$XEGCC" = yes; then 12398 if test "$XEGCC" = yes; then
12296 # Check if gcc -print-prog-name=ld gives a path. 12399 # Check if gcc -print-prog-name=ld gives a path.
12297 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 12400 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12298 echo "configure:12299: checking for ld used by GCC" >&5 12401 echo "configure:12402: checking for ld used by GCC" >&5
12299 ac_prog=`($CC -print-prog-name=ld) 2>&5` 12402 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12300 case "$ac_prog" in 12403 case "$ac_prog" in
12301 # Accept absolute paths. 12404 # Accept absolute paths.
12302 /*) 12405 /*)
12303 if test -z "$LTLD"; then 12406 if test -z "$LTLD"; then
12318 with_gnu_ld=unknown 12421 with_gnu_ld=unknown
12319 ;; 12422 ;;
12320 esac 12423 esac
12321 else 12424 else
12322 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 12425 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12323 echo "configure:12324: checking for GNU ld" >&5 12426 echo "configure:12427: checking for GNU ld" >&5
12324 fi 12427 fi
12325 12428
12326 if test -z "$LTLD"; then 12429 if test -z "$LTLD"; then
12327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 12430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12328 for ac_dir in $PATH; do 12431 for ac_dir in $PATH; do
12356 12459
12357 ld_dynamic_link_flags= 12460 ld_dynamic_link_flags=
12358 12461
12359 # Check to see if it really is or isn't GNU ld. 12462 # Check to see if it really is or isn't GNU ld.
12360 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 12463 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12361 echo "configure:12362: checking if the linker is GNU ld" >&5 12464 echo "configure:12465: checking if the linker is GNU ld" >&5
12362 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 12465 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12363 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 12466 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12364 xe_gnu_ld=yes 12467 xe_gnu_ld=yes
12365 else 12468 else
12366 xe_gnu_ld=no 12469 xe_gnu_ld=no
12383 can_build_shared=yes 12486 can_build_shared=yes
12384 else 12487 else
12385 # OK - only NOW do we futz about with ld. 12488 # OK - only NOW do we futz about with ld.
12386 # See if the linker supports building shared libraries. 12489 # See if the linker supports building shared libraries.
12387 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 12490 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12388 echo "configure:12389: checking whether the linker supports shared libraries" >&5 12491 echo "configure:12492: checking whether the linker supports shared libraries" >&5
12389 dll_ld=$CC 12492 dll_ld=$CC
12390 dll_ldflags=$LDFLAGS 12493 dll_ldflags=$LDFLAGS
12391 ld_shlibs=yes 12494 ld_shlibs=yes
12392 can_build_shared=yes 12495 can_build_shared=yes
12393 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 12496 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12549 osf3* | osf4*) 12652 osf3* | osf4*)
12550 ld_dynamic_link_flags= 12653 ld_dynamic_link_flags=
12551 ;; 12654 ;;
12552 12655
12553 solaris2* | solaris7*) 12656 solaris2* | solaris7*)
12554 ld_dynamic_link_flags="${wl}-Bdynamic" 12657 ld_dynamic_link_flags=
12555 ;; 12658 ;;
12556 12659
12557 sco3.2v5* | unixware* | sysv5* | sysv4*) 12660 sco3.2v5* | unixware* | sysv5* | sysv4*)
12558 ld_dynamic_link_flags="${wl}-Bexport" 12661 ld_dynamic_link_flags="${wl}-Bexport"
12559 ;; 12662 ;;
12599 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 12702 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12600 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi 12703 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12601 for ac_func in dlerror _dlerror 12704 for ac_func in dlerror _dlerror
12602 do 12705 do
12603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12604 echo "configure:12605: checking for $ac_func" >&5 12707 echo "configure:12708: checking for $ac_func" >&5
12605 12708
12606 cat > conftest.$ac_ext <<EOF 12709 cat > conftest.$ac_ext <<EOF
12607 #line 12608 "configure" 12710 #line 12711 "configure"
12608 #include "confdefs.h" 12711 #include "confdefs.h"
12609 /* System header to define __stub macros and hopefully few prototypes, 12712 /* System header to define __stub macros and hopefully few prototypes,
12610 which can conflict with char $ac_func(); below. */ 12713 which can conflict with char $ac_func(); below. */
12611 #include <assert.h> 12714 #include <assert.h>
12612 /* Override any gcc2 internal prototype to avoid an error. */ 12715 /* Override any gcc2 internal prototype to avoid an error. */
12625 $ac_func(); 12728 $ac_func();
12626 #endif 12729 #endif
12627 12730
12628 ; return 0; } 12731 ; return 0; }
12629 EOF 12732 EOF
12630 if { (eval echo configure:12631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12733 if { (eval echo configure:12734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12631 rm -rf conftest* 12734 rm -rf conftest*
12632 eval "ac_cv_func_$ac_func=yes" 12735 eval "ac_cv_func_$ac_func=yes"
12633 else 12736 else
12634 echo "configure: failed program was:" >&5 12737 echo "configure: failed program was:" >&5
12635 cat conftest.$ac_ext >&5 12738 cat conftest.$ac_ext >&5
12659 with_modules=no 12762 with_modules=no
12660 fi 12763 fi
12661 fi 12764 fi
12662 12765
12663 cat > conftest.$ac_ext <<EOF 12766 cat > conftest.$ac_ext <<EOF
12664 #line 12665 "configure" 12767 #line 12768 "configure"
12665 #include "confdefs.h" 12768 #include "confdefs.h"
12666 int main(int c,char *v[]){return 0;} 12769 int main(int c,char *v[]){return 0;}
12667 EOF 12770 EOF
12668 if { (eval echo configure:12669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12771 if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12669 then 12772 then
12670 : 12773 :
12671 else 12774 else
12672 conftest_rc="$?" 12775 conftest_rc="$?"
12673 echo "configure: failed program was:" >&5 12776 echo "configure: failed program was:" >&5
13329 fi 13432 fi
13330 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling." 13433 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13331 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling." 13434 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13332 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling." 13435 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13333 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." 13436 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13334 case "$with_sound" in 13437 test "$with_native_sound" = yes && echo " Compiling in native sound support."
13335 nas ) echo " Compiling in network sound (NAS) support." ;; 13438 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support."
13336 native ) echo " Compiling in native sound support." ;;
13337 both ) echo " Compiling in both network and native sound support." ;;
13338 esac
13339 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously." 13439 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13440 test "$with_esd" = yes && echo " Compiling in support for Enlightened Sound Daemon."
13340 13441
13341 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." 13442 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13342 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." 13443 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13343 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM." 13444 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
13344 13445
13345 test "$with_ldap" = yes && echo " Compiling in support for LDAP." 13446 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13346 13447
13347 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." 13448 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13348 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." 13449 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13551 s%@install_pp@%$install_pp%g 13652 s%@install_pp@%$install_pp%g
13552 s%@libs_xauth@%$libs_xauth%g 13653 s%@libs_xauth@%$libs_xauth%g
13553 s%@dnd_objs@%$dnd_objs%g 13654 s%@dnd_objs@%$dnd_objs%g
13554 s%@lwlib_objs@%$lwlib_objs%g 13655 s%@lwlib_objs@%$lwlib_objs%g
13555 s%@ALLOCA@%$ALLOCA%g 13656 s%@ALLOCA@%$ALLOCA%g
13657 s%@have_esd_config@%$have_esd_config%g
13556 s%@dll_ld@%$dll_ld%g 13658 s%@dll_ld@%$dll_ld%g
13557 s%@dll_cflags@%$dll_cflags%g 13659 s%@dll_cflags@%$dll_cflags%g
13558 s%@dll_ldflags@%$dll_ldflags%g 13660 s%@dll_ldflags@%$dll_ldflags%g
13559 s%@dll_post@%$dll_post%g 13661 s%@dll_post@%$dll_post%g
13560 s%@dll_ldo@%$dll_ldo%g 13662 s%@dll_ldo@%$dll_ldo%g