comparison configure @ 359:8e84bee8ddd0 r21-1-9

Import from CVS: tag r21-1-9
author cvs
date Mon, 13 Aug 2007 10:57:55 +0200
parents 4711e16a8e49
children 7347b34c275b
comparison
equal deleted inserted replaced
358:fed6e0f6a03a 359:8e84bee8ddd0
254 use_assertions="yes" 254 use_assertions="yes"
255 with_toolbars="" 255 with_toolbars=""
256 with_tty="" 256 with_tty=""
257 use_union_type="no" 257 use_union_type="no"
258 with_dnet="" 258 with_dnet=""
259 with_dragndrop="no"
259 260
260 261
261 262
262 263
263 arguments="$@" 264 arguments="$@"
753 ;; 754 ;;
754 esac 755 esac
755 756
756 if test -z "$configuration"; then 757 if test -z "$configuration"; then
757 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 758 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
758 echo "configure:759: checking "host system type"" >&5 759 echo "configure:760: checking "host system type"" >&5
759 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \ 760 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \
760 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then 761 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
761 echo "$ac_t""$configuration" 1>&6 762 echo "$ac_t""$configuration" 1>&6
762 else 763 else
763 echo "$ac_t""unknown" 1>&6 764 echo "$ac_t""unknown" 1>&6
767 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 768 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
768 fi 769 fi
769 fi 770 fi
770 771
771 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 772 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
772 echo "configure:773: checking whether ln -s works" >&5 773 echo "configure:774: checking whether ln -s works" >&5
773 774
774 rm -f conftestdata 775 rm -f conftestdata
775 if ln -s X conftestdata 2>/dev/null 776 if ln -s X conftestdata 2>/dev/null
776 then 777 then
777 rm -f conftestdata 778 rm -f conftestdata
1004 } 1005 }
1005 1006
1006 1007
1007 1008
1008 echo "checking "the configuration name"" 1>&6 1009 echo "checking "the configuration name"" 1>&6
1009 echo "configure:1010: checking "the configuration name"" >&5 1010 echo "configure:1011: checking "the configuration name"" >&5
1010 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1011 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1011 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 1012 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
1012 exit $? 1013 exit $?
1013 fi 1014 fi
1014 1015
1021 case "$canonical" in 1022 case "$canonical" in
1022 sparc-*-* ) machine=sparc ;; 1023 sparc-*-* ) machine=sparc ;;
1023 alpha*-*-* ) machine=alpha ;; 1024 alpha*-*-* ) machine=alpha ;;
1024 vax-*-* ) machine=vax ;; 1025 vax-*-* ) machine=vax ;;
1025 mips-dec-* ) machine=pmax ;; 1026 mips-dec-* ) machine=pmax ;;
1027 mips-sgi-irix6* ) machine=iris6d ;;
1026 mips-sgi-* ) machine=iris4d ;; 1028 mips-sgi-* ) machine=iris4d ;;
1027 mips*-linux ) machine=mips ;; 1029 mips*-linux ) machine=mips ;;
1028 romp-ibm-* ) machine=ibmrt ;; 1030 romp-ibm-* ) machine=ibmrt ;;
1029 rs6000-ibm-aix* ) machine=ibmrs6000 ;; 1031 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1030 powerpc-ibm-aix* ) machine=ibmrs6000 ;; 1032 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1499 xe_save_CFLAGS="$CFLAGS" 1501 xe_save_CFLAGS="$CFLAGS"
1500 1502
1501 # Extract the first word of "gcc", so it can be a program name with args. 1503 # Extract the first word of "gcc", so it can be a program name with args.
1502 set dummy gcc; ac_word=$2 1504 set dummy gcc; ac_word=$2
1503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1504 echo "configure:1505: checking for $ac_word" >&5 1506 echo "configure:1507: checking for $ac_word" >&5
1505 1507
1506 if test -n "$CC"; then 1508 if test -n "$CC"; then
1507 ac_cv_prog_CC="$CC" # Let the user override the test. 1509 ac_cv_prog_CC="$CC" # Let the user override the test.
1508 else 1510 else
1509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1526 1528
1527 if test -z "$CC"; then 1529 if test -z "$CC"; then
1528 # Extract the first word of "cc", so it can be a program name with args. 1530 # Extract the first word of "cc", so it can be a program name with args.
1529 set dummy cc; ac_word=$2 1531 set dummy cc; ac_word=$2
1530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1531 echo "configure:1532: checking for $ac_word" >&5 1533 echo "configure:1534: checking for $ac_word" >&5
1532 1534
1533 if test -n "$CC"; then 1535 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test. 1536 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 else 1537 else
1536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1574 case "`uname -s`" in 1576 case "`uname -s`" in
1575 *win32* | *WIN32*) 1577 *win32* | *WIN32*)
1576 # Extract the first word of "cl", so it can be a program name with args. 1578 # Extract the first word of "cl", so it can be a program name with args.
1577 set dummy cl; ac_word=$2 1579 set dummy cl; ac_word=$2
1578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1579 echo "configure:1580: checking for $ac_word" >&5 1581 echo "configure:1582: checking for $ac_word" >&5
1580 1582
1581 if test -n "$CC"; then 1583 if test -n "$CC"; then
1582 ac_cv_prog_CC="$CC" # Let the user override the test. 1584 ac_cv_prog_CC="$CC" # Let the user override the test.
1583 else 1585 else
1584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1603 fi 1605 fi
1604 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1606 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1605 fi 1607 fi
1606 1608
1607 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1609 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1608 echo "configure:1609: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1610 echo "configure:1611: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1609 1611
1610 ac_ext=c 1612 ac_ext=c
1611 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1613 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1612 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1614 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1613 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1615 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1616 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1618 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1617 cross_compiling=no 1619 cross_compiling=no
1618 1620
1619 cat > conftest.$ac_ext << EOF 1621 cat > conftest.$ac_ext << EOF
1620 1622
1621 #line 1622 "configure" 1623 #line 1624 "configure"
1622 #include "confdefs.h" 1624 #include "confdefs.h"
1623 1625
1624 main(){return(0);} 1626 main(){return(0);}
1625 EOF 1627 EOF
1626 if { (eval echo configure:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1628 if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1627 ac_cv_prog_cc_works=yes 1629 ac_cv_prog_cc_works=yes
1628 # If we can't run a trivial program, we are probably using a cross compiler. 1630 # If we can't run a trivial program, we are probably using a cross compiler.
1629 if (./conftest; exit) 2>/dev/null; then 1631 if (./conftest; exit) 2>/dev/null; then
1630 ac_cv_prog_cc_cross=no 1632 ac_cv_prog_cc_cross=no
1631 else 1633 else
1649 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1651 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1650 if test $ac_cv_prog_cc_works = no; then 1652 if test $ac_cv_prog_cc_works = no; then
1651 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1653 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1652 fi 1654 fi
1653 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1655 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1654 echo "configure:1655: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1656 echo "configure:1657: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1655 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1657 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1656 cross_compiling=$ac_cv_prog_cc_cross 1658 cross_compiling=$ac_cv_prog_cc_cross
1657 1659
1658 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1660 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1659 echo "configure:1660: checking whether we are using GNU C" >&5 1661 echo "configure:1662: checking whether we are using GNU C" >&5
1660 1662
1661 cat > conftest.c <<EOF 1663 cat > conftest.c <<EOF
1662 #ifdef __GNUC__ 1664 #ifdef __GNUC__
1663 yes; 1665 yes;
1664 #endif 1666 #endif
1665 EOF 1667 EOF
1666 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1668 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1667 ac_cv_prog_gcc=yes 1669 ac_cv_prog_gcc=yes
1668 else 1670 else
1669 ac_cv_prog_gcc=no 1671 ac_cv_prog_gcc=no
1670 fi 1672 fi
1671 1673
1679 1681
1680 ac_test_CFLAGS="${CFLAGS+set}" 1682 ac_test_CFLAGS="${CFLAGS+set}"
1681 ac_save_CFLAGS="$CFLAGS" 1683 ac_save_CFLAGS="$CFLAGS"
1682 CFLAGS= 1684 CFLAGS=
1683 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1685 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1684 echo "configure:1685: checking whether ${CC-cc} accepts -g" >&5 1686 echo "configure:1687: checking whether ${CC-cc} accepts -g" >&5
1685 1687
1686 echo 'void f(){}' > conftest.c 1688 echo 'void f(){}' > conftest.c
1687 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1689 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1688 ac_cv_prog_cc_g=yes 1690 ac_cv_prog_cc_g=yes
1689 else 1691 else
1712 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1714 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1713 CC=${NON_GNU_CC-cc} 1715 CC=${NON_GNU_CC-cc}
1714 # Extract the first word of "gcc", so it can be a program name with args. 1716 # Extract the first word of "gcc", so it can be a program name with args.
1715 set dummy gcc; ac_word=$2 1717 set dummy gcc; ac_word=$2
1716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1717 echo "configure:1718: checking for $ac_word" >&5 1719 echo "configure:1720: checking for $ac_word" >&5
1718 1720
1719 if test -n "$CC"; then 1721 if test -n "$CC"; then
1720 ac_cv_prog_CC="$CC" # Let the user override the test. 1722 ac_cv_prog_CC="$CC" # Let the user override the test.
1721 else 1723 else
1722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1739 1741
1740 if test -z "$CC"; then 1742 if test -z "$CC"; then
1741 # Extract the first word of "cc", so it can be a program name with args. 1743 # Extract the first word of "cc", so it can be a program name with args.
1742 set dummy cc; ac_word=$2 1744 set dummy cc; ac_word=$2
1743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1744 echo "configure:1745: checking for $ac_word" >&5 1746 echo "configure:1747: checking for $ac_word" >&5
1745 1747
1746 if test -n "$CC"; then 1748 if test -n "$CC"; then
1747 ac_cv_prog_CC="$CC" # Let the user override the test. 1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1748 else 1750 else
1749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1787 case "`uname -s`" in 1789 case "`uname -s`" in
1788 *win32* | *WIN32*) 1790 *win32* | *WIN32*)
1789 # Extract the first word of "cl", so it can be a program name with args. 1791 # Extract the first word of "cl", so it can be a program name with args.
1790 set dummy cl; ac_word=$2 1792 set dummy cl; ac_word=$2
1791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1792 echo "configure:1793: checking for $ac_word" >&5 1794 echo "configure:1795: checking for $ac_word" >&5
1793 1795
1794 if test -n "$CC"; then 1796 if test -n "$CC"; then
1795 ac_cv_prog_CC="$CC" # Let the user override the test. 1797 ac_cv_prog_CC="$CC" # Let the user override the test.
1796 else 1798 else
1797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1816 fi 1818 fi
1817 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1819 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1818 fi 1820 fi
1819 1821
1820 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1821 echo "configure:1822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1823 echo "configure:1824: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1822 1824
1823 ac_ext=c 1825 ac_ext=c
1824 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1826 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1825 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1827 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1826 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1828 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1829 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1831 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1830 cross_compiling=no 1832 cross_compiling=no
1831 1833
1832 cat > conftest.$ac_ext << EOF 1834 cat > conftest.$ac_ext << EOF
1833 1835
1834 #line 1835 "configure" 1836 #line 1837 "configure"
1835 #include "confdefs.h" 1837 #include "confdefs.h"
1836 1838
1837 main(){return(0);} 1839 main(){return(0);}
1838 EOF 1840 EOF
1839 if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1841 if { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1840 ac_cv_prog_cc_works=yes 1842 ac_cv_prog_cc_works=yes
1841 # If we can't run a trivial program, we are probably using a cross compiler. 1843 # If we can't run a trivial program, we are probably using a cross compiler.
1842 if (./conftest; exit) 2>/dev/null; then 1844 if (./conftest; exit) 2>/dev/null; then
1843 ac_cv_prog_cc_cross=no 1845 ac_cv_prog_cc_cross=no
1844 else 1846 else
1862 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1864 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1863 if test $ac_cv_prog_cc_works = no; then 1865 if test $ac_cv_prog_cc_works = no; then
1864 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1866 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1865 fi 1867 fi
1866 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1868 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1867 echo "configure:1868: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1869 echo "configure:1870: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1868 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1870 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1869 cross_compiling=$ac_cv_prog_cc_cross 1871 cross_compiling=$ac_cv_prog_cc_cross
1870 1872
1871 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1873 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1872 echo "configure:1873: checking whether we are using GNU C" >&5 1874 echo "configure:1875: checking whether we are using GNU C" >&5
1873 1875
1874 cat > conftest.c <<EOF 1876 cat > conftest.c <<EOF
1875 #ifdef __GNUC__ 1877 #ifdef __GNUC__
1876 yes; 1878 yes;
1877 #endif 1879 #endif
1878 EOF 1880 EOF
1879 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1881 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1880 ac_cv_prog_gcc=yes 1882 ac_cv_prog_gcc=yes
1881 else 1883 else
1882 ac_cv_prog_gcc=no 1884 ac_cv_prog_gcc=no
1883 fi 1885 fi
1884 1886
1892 1894
1893 ac_test_CFLAGS="${CFLAGS+set}" 1895 ac_test_CFLAGS="${CFLAGS+set}"
1894 ac_save_CFLAGS="$CFLAGS" 1896 ac_save_CFLAGS="$CFLAGS"
1895 CFLAGS= 1897 CFLAGS=
1896 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1898 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1897 echo "configure:1898: checking whether ${CC-cc} accepts -g" >&5 1899 echo "configure:1900: checking whether ${CC-cc} accepts -g" >&5
1898 1900
1899 echo 'void f(){}' > conftest.c 1901 echo 'void f(){}' > conftest.c
1900 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1902 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1901 ac_cv_prog_cc_g=yes 1903 ac_cv_prog_cc_g=yes
1902 else 1904 else
1925 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1927 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1926 CC=gcc 1928 CC=gcc
1927 # Extract the first word of "gcc", so it can be a program name with args. 1929 # Extract the first word of "gcc", so it can be a program name with args.
1928 set dummy gcc; ac_word=$2 1930 set dummy gcc; ac_word=$2
1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_word" >&5 1932 echo "configure:1933: checking for $ac_word" >&5
1931 1933
1932 if test -n "$CC"; then 1934 if test -n "$CC"; then
1933 ac_cv_prog_CC="$CC" # Let the user override the test. 1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1934 else 1936 else
1935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1952 1954
1953 if test -z "$CC"; then 1955 if test -z "$CC"; then
1954 # Extract the first word of "cc", so it can be a program name with args. 1956 # Extract the first word of "cc", so it can be a program name with args.
1955 set dummy cc; ac_word=$2 1957 set dummy cc; ac_word=$2
1956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1957 echo "configure:1958: checking for $ac_word" >&5 1959 echo "configure:1960: checking for $ac_word" >&5
1958 1960
1959 if test -n "$CC"; then 1961 if test -n "$CC"; then
1960 ac_cv_prog_CC="$CC" # Let the user override the test. 1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1961 else 1963 else
1962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2000 case "`uname -s`" in 2002 case "`uname -s`" in
2001 *win32* | *WIN32*) 2003 *win32* | *WIN32*)
2002 # Extract the first word of "cl", so it can be a program name with args. 2004 # Extract the first word of "cl", so it can be a program name with args.
2003 set dummy cl; ac_word=$2 2005 set dummy cl; ac_word=$2
2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2005 echo "configure:2006: checking for $ac_word" >&5 2007 echo "configure:2008: checking for $ac_word" >&5
2006 2008
2007 if test -n "$CC"; then 2009 if test -n "$CC"; then
2008 ac_cv_prog_CC="$CC" # Let the user override the test. 2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2009 else 2011 else
2010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2029 fi 2031 fi
2030 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2032 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2031 fi 2033 fi
2032 2034
2033 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2035 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2034 echo "configure:2035: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2036 echo "configure:2037: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2035 2037
2036 ac_ext=c 2038 ac_ext=c
2037 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2039 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2038 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2040 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2039 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2041 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2042 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2044 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2043 cross_compiling=no 2045 cross_compiling=no
2044 2046
2045 cat > conftest.$ac_ext << EOF 2047 cat > conftest.$ac_ext << EOF
2046 2048
2047 #line 2048 "configure" 2049 #line 2050 "configure"
2048 #include "confdefs.h" 2050 #include "confdefs.h"
2049 2051
2050 main(){return(0);} 2052 main(){return(0);}
2051 EOF 2053 EOF
2052 if { (eval echo configure:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2054 if { (eval echo configure:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2053 ac_cv_prog_cc_works=yes 2055 ac_cv_prog_cc_works=yes
2054 # If we can't run a trivial program, we are probably using a cross compiler. 2056 # If we can't run a trivial program, we are probably using a cross compiler.
2055 if (./conftest; exit) 2>/dev/null; then 2057 if (./conftest; exit) 2>/dev/null; then
2056 ac_cv_prog_cc_cross=no 2058 ac_cv_prog_cc_cross=no
2057 else 2059 else
2075 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2077 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2076 if test $ac_cv_prog_cc_works = no; then 2078 if test $ac_cv_prog_cc_works = no; then
2077 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2079 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2078 fi 2080 fi
2079 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2081 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2080 echo "configure:2081: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2082 echo "configure:2083: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2081 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2083 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2082 cross_compiling=$ac_cv_prog_cc_cross 2084 cross_compiling=$ac_cv_prog_cc_cross
2083 2085
2084 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2086 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2085 echo "configure:2086: checking whether we are using GNU C" >&5 2087 echo "configure:2088: checking whether we are using GNU C" >&5
2086 2088
2087 cat > conftest.c <<EOF 2089 cat > conftest.c <<EOF
2088 #ifdef __GNUC__ 2090 #ifdef __GNUC__
2089 yes; 2091 yes;
2090 #endif 2092 #endif
2091 EOF 2093 EOF
2092 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2094 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2093 ac_cv_prog_gcc=yes 2095 ac_cv_prog_gcc=yes
2094 else 2096 else
2095 ac_cv_prog_gcc=no 2097 ac_cv_prog_gcc=no
2096 fi 2098 fi
2097 2099
2105 2107
2106 ac_test_CFLAGS="${CFLAGS+set}" 2108 ac_test_CFLAGS="${CFLAGS+set}"
2107 ac_save_CFLAGS="$CFLAGS" 2109 ac_save_CFLAGS="$CFLAGS"
2108 CFLAGS= 2110 CFLAGS=
2109 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2111 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2110 echo "configure:2111: checking whether ${CC-cc} accepts -g" >&5 2112 echo "configure:2113: checking whether ${CC-cc} accepts -g" >&5
2111 2113
2112 echo 'void f(){}' > conftest.c 2114 echo 'void f(){}' > conftest.c
2113 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2115 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2114 ac_cv_prog_cc_g=yes 2116 ac_cv_prog_cc_g=yes
2115 else 2117 else
2142 test -n "$CPP" -a -d "$CPP" && CPP= 2144 test -n "$CPP" -a -d "$CPP" && CPP=
2143 2145
2144 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2146 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2145 2147
2146 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2148 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2147 echo "configure:2148: checking how to run the C preprocessor" >&5 2149 echo "configure:2150: checking how to run the C preprocessor" >&5
2148 # On Suns, sometimes $CPP names a directory. 2150 # On Suns, sometimes $CPP names a directory.
2149 if test -n "$CPP" && test -d "$CPP"; then 2151 if test -n "$CPP" && test -d "$CPP"; then
2150 CPP= 2152 CPP=
2151 fi 2153 fi
2152 if test -z "$CPP"; then 2154 if test -z "$CPP"; then
2155 # substituted into the Makefile and "${CC-cc}" will confuse make. 2157 # substituted into the Makefile and "${CC-cc}" will confuse make.
2156 CPP="${CC-cc} -E" 2158 CPP="${CC-cc} -E"
2157 # On the NeXT, cc -E runs the code through the compiler's parser, 2159 # On the NeXT, cc -E runs the code through the compiler's parser,
2158 # not just through cpp. 2160 # not just through cpp.
2159 cat > conftest.$ac_ext <<EOF 2161 cat > conftest.$ac_ext <<EOF
2160 #line 2161 "configure" 2162 #line 2163 "configure"
2161 #include "confdefs.h" 2163 #include "confdefs.h"
2162 #include <assert.h> 2164 #include <assert.h>
2163 Syntax Error 2165 Syntax Error
2164 EOF 2166 EOF
2165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2166 { (eval echo configure:2167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2168 { (eval echo configure:2169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2168 if test -z "$ac_err"; then 2170 if test -z "$ac_err"; then
2169 : 2171 :
2170 else 2172 else
2171 echo "$ac_err" >&5 2173 echo "$ac_err" >&5
2172 echo "configure: failed program was:" >&5 2174 echo "configure: failed program was:" >&5
2173 cat conftest.$ac_ext >&5 2175 cat conftest.$ac_ext >&5
2174 rm -rf conftest* 2176 rm -rf conftest*
2175 CPP="${CC-cc} -E -traditional-cpp" 2177 CPP="${CC-cc} -E -traditional-cpp"
2176 cat > conftest.$ac_ext <<EOF 2178 cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure" 2179 #line 2180 "configure"
2178 #include "confdefs.h" 2180 #include "confdefs.h"
2179 #include <assert.h> 2181 #include <assert.h>
2180 Syntax Error 2182 Syntax Error
2181 EOF 2183 EOF
2182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2183 { (eval echo configure:2184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2185 { (eval echo configure:2186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2185 if test -z "$ac_err"; then 2187 if test -z "$ac_err"; then
2186 : 2188 :
2187 else 2189 else
2188 echo "$ac_err" >&5 2190 echo "$ac_err" >&5
2189 echo "configure: failed program was:" >&5 2191 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5 2192 cat conftest.$ac_ext >&5
2191 rm -rf conftest* 2193 rm -rf conftest*
2192 CPP="${CC-cc} -nologo -E" 2194 CPP="${CC-cc} -nologo -E"
2193 cat > conftest.$ac_ext <<EOF 2195 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure" 2196 #line 2197 "configure"
2195 #include "confdefs.h" 2197 #include "confdefs.h"
2196 #include <assert.h> 2198 #include <assert.h>
2197 Syntax Error 2199 Syntax Error
2198 EOF 2200 EOF
2199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2201 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; } 2202 { (eval echo configure:2203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2202 if test -z "$ac_err"; then 2204 if test -z "$ac_err"; then
2203 : 2205 :
2204 else 2206 else
2205 echo "$ac_err" >&5 2207 echo "$ac_err" >&5
2220 fi 2222 fi
2221 echo "$ac_t""$CPP" 1>&6 2223 echo "$ac_t""$CPP" 1>&6
2222 2224
2223 2225
2224 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2226 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2225 echo "configure:2226: checking for AIX" >&5 2227 echo "configure:2228: checking for AIX" >&5
2226 cat > conftest.$ac_ext <<EOF 2228 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure" 2229 #line 2230 "configure"
2228 #include "confdefs.h" 2230 #include "confdefs.h"
2229 #ifdef _AIX 2231 #ifdef _AIX
2230 yes 2232 yes
2231 #endif 2233 #endif
2232 2234
2249 rm -f conftest* 2251 rm -f conftest*
2250 2252
2251 2253
2252 2254
2253 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2255 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2254 echo "configure:2255: checking for GNU libc" >&5 2256 echo "configure:2257: checking for GNU libc" >&5
2255 cat > conftest.$ac_ext <<EOF 2257 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure" 2258 #line 2259 "configure"
2257 #include "confdefs.h" 2259 #include "confdefs.h"
2258 #include <features.h> 2260 #include <features.h>
2259 int main() { 2261 int main() {
2260 2262
2261 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2263 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2263 ******* ======= ******** &&&&&&&& 2265 ******* ======= ******** &&&&&&&&
2264 #endif 2266 #endif
2265 2267
2266 ; return 0; } 2268 ; return 0; }
2267 EOF 2269 EOF
2268 if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2270 if { (eval echo configure:2271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2269 rm -rf conftest* 2271 rm -rf conftest*
2270 have_glibc=yes 2272 have_glibc=yes
2271 else 2273 else
2272 echo "configure: failed program was:" >&5 2274 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5 2275 cat conftest.$ac_ext >&5
2285 } 2287 }
2286 2288
2287 2289
2288 2290
2289 cat > conftest.$ac_ext <<EOF 2291 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure" 2292 #line 2293 "configure"
2291 #include "confdefs.h" 2293 #include "confdefs.h"
2292 int main () { 2294 int main () {
2293 #if defined __SUNPRO_C 2295 #if defined __SUNPRO_C
2294 return 11; 2296 return 11;
2295 #elif defined __DECC 2297 #elif defined __DECC
2297 #else 2299 #else
2298 return 0; 2300 return 0;
2299 #endif 2301 #endif
2300 } 2302 }
2301 EOF 2303 EOF
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2304 if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2303 then 2305 then
2304 : 2306 :
2305 else 2307 else
2306 conftest_rc="$?" 2308 conftest_rc="$?"
2307 echo "configure: failed program was:" >&5 2309 echo "configure: failed program was:" >&5
2567 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2569 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2568 echo " xemacs will be linked with \"$unexec\"" 2570 echo " xemacs will be linked with \"$unexec\""
2569 fi 2571 fi
2570 2572
2571 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2573 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2572 echo "configure:2573: checking for dynodump" >&5 2574 echo "configure:2575: checking for dynodump" >&5
2573 if test "$unexec" != "unexsol2.o"; then 2575 if test "$unexec" != "unexsol2.o"; then
2574 echo "$ac_t""no" 1>&6 2576 echo "$ac_t""no" 1>&6
2575 else 2577 else
2576 echo "$ac_t""yes" 1>&6 2578 echo "$ac_t""yes" 1>&6
2577 { test "$extra_verbose" = "yes" && cat << \EOF 2579 { test "$extra_verbose" = "yes" && cat << \EOF
2605 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2607 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2606 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2608 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2607 done 2609 done
2608 2610
2609 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2611 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2610 echo "configure:2611: checking for terminateAndUnload in -lC" >&5 2612 echo "configure:2613: checking for terminateAndUnload in -lC" >&5
2611 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2613 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2612 2614
2613 xe_check_libs=" -lC " 2615 xe_check_libs=" -lC "
2614 cat > conftest.$ac_ext <<EOF 2616 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure" 2617 #line 2618 "configure"
2616 #include "confdefs.h" 2618 #include "confdefs.h"
2617 /* Override any gcc2 internal prototype to avoid an error. */ 2619 /* Override any gcc2 internal prototype to avoid an error. */
2618 /* We use char because int might match the return type of a gcc2 2620 /* We use char because int might match the return type of a gcc2
2619 builtin and then its argument prototype would still apply. */ 2621 builtin and then its argument prototype would still apply. */
2620 char terminateAndUnload(); 2622 char terminateAndUnload();
2621 2623
2622 int main() { 2624 int main() {
2623 terminateAndUnload() 2625 terminateAndUnload()
2624 ; return 0; } 2626 ; return 0; }
2625 EOF 2627 EOF
2626 if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2628 if { (eval echo configure:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2627 rm -rf conftest* 2629 rm -rf conftest*
2628 eval "ac_cv_lib_$ac_lib_var=yes" 2630 eval "ac_cv_lib_$ac_lib_var=yes"
2629 else 2631 else
2630 echo "configure: failed program was:" >&5 2632 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5 2633 cat conftest.$ac_ext >&5
2705 esac 2707 esac
2706 fi 2708 fi
2707 2709
2708 if test "$add_runtime_path" = "yes"; then 2710 if test "$add_runtime_path" = "yes"; then
2709 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2711 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2710 echo "configure:2711: checking "for runtime libraries flag"" >&5 2712 echo "configure:2713: checking "for runtime libraries flag"" >&5
2711 case "$opsys" in 2713 case "$opsys" in
2712 sol2 ) dash_r="-R" ;; 2714 sol2 ) dash_r="-R" ;;
2713 decosf* | linux* | irix*) dash_r="-rpath " ;; 2715 decosf* | linux* | irix*) dash_r="-rpath " ;;
2714 *) 2716 *)
2715 dash_r="" 2717 dash_r=""
2727 esac 2729 esac
2728 shift 2730 shift
2729 done 2731 done
2730 fi 2732 fi
2731 cat > conftest.$ac_ext <<EOF 2733 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure" 2734 #line 2735 "configure"
2733 #include "confdefs.h" 2735 #include "confdefs.h"
2734 2736
2735 int main() { 2737 int main() {
2736 2738
2737 ; return 0; } 2739 ; return 0; }
2738 EOF 2740 EOF
2739 if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2741 if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2740 rm -rf conftest* 2742 rm -rf conftest*
2741 dash_r="$try_dash_r" 2743 dash_r="$try_dash_r"
2742 else 2744 else
2743 echo "configure: failed program was:" >&5 2745 echo "configure: failed program was:" >&5
2744 cat conftest.$ac_ext >&5 2746 cat conftest.$ac_ext >&5
2835 else 2837 else
2836 doug_lea_malloc=no 2838 doug_lea_malloc=no
2837 fi 2839 fi
2838 after_morecore_hook_exists=yes 2840 after_morecore_hook_exists=yes
2839 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2841 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2840 echo "configure:2841: checking for malloc_get_state" >&5 2842 echo "configure:2843: checking for malloc_get_state" >&5
2841 2843
2842 cat > conftest.$ac_ext <<EOF 2844 cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure" 2845 #line 2846 "configure"
2844 #include "confdefs.h" 2846 #include "confdefs.h"
2845 /* System header to define __stub macros and hopefully few prototypes, 2847 /* System header to define __stub macros and hopefully few prototypes,
2846 which can conflict with char malloc_get_state(); below. */ 2848 which can conflict with char malloc_get_state(); below. */
2847 #include <assert.h> 2849 #include <assert.h>
2848 /* Override any gcc2 internal prototype to avoid an error. */ 2850 /* Override any gcc2 internal prototype to avoid an error. */
2861 malloc_get_state(); 2863 malloc_get_state();
2862 #endif 2864 #endif
2863 2865
2864 ; return 0; } 2866 ; return 0; }
2865 EOF 2867 EOF
2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2868 if { (eval echo configure:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2867 rm -rf conftest* 2869 rm -rf conftest*
2868 eval "ac_cv_func_malloc_get_state=yes" 2870 eval "ac_cv_func_malloc_get_state=yes"
2869 else 2871 else
2870 echo "configure: failed program was:" >&5 2872 echo "configure: failed program was:" >&5
2871 cat conftest.$ac_ext >&5 2873 cat conftest.$ac_ext >&5
2881 echo "$ac_t""no" 1>&6 2883 echo "$ac_t""no" 1>&6
2882 doug_lea_malloc=no 2884 doug_lea_malloc=no
2883 fi 2885 fi
2884 2886
2885 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2887 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2886 echo "configure:2887: checking for malloc_set_state" >&5 2888 echo "configure:2889: checking for malloc_set_state" >&5
2887 2889
2888 cat > conftest.$ac_ext <<EOF 2890 cat > conftest.$ac_ext <<EOF
2889 #line 2890 "configure" 2891 #line 2892 "configure"
2890 #include "confdefs.h" 2892 #include "confdefs.h"
2891 /* System header to define __stub macros and hopefully few prototypes, 2893 /* System header to define __stub macros and hopefully few prototypes,
2892 which can conflict with char malloc_set_state(); below. */ 2894 which can conflict with char malloc_set_state(); below. */
2893 #include <assert.h> 2895 #include <assert.h>
2894 /* Override any gcc2 internal prototype to avoid an error. */ 2896 /* Override any gcc2 internal prototype to avoid an error. */
2907 malloc_set_state(); 2909 malloc_set_state();
2908 #endif 2910 #endif
2909 2911
2910 ; return 0; } 2912 ; return 0; }
2911 EOF 2913 EOF
2912 if { (eval echo configure:2913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2914 if { (eval echo configure:2915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2913 rm -rf conftest* 2915 rm -rf conftest*
2914 eval "ac_cv_func_malloc_set_state=yes" 2916 eval "ac_cv_func_malloc_set_state=yes"
2915 else 2917 else
2916 echo "configure: failed program was:" >&5 2918 echo "configure: failed program was:" >&5
2917 cat conftest.$ac_ext >&5 2919 cat conftest.$ac_ext >&5
2927 echo "$ac_t""no" 1>&6 2929 echo "$ac_t""no" 1>&6
2928 doug_lea_malloc=no 2930 doug_lea_malloc=no
2929 fi 2931 fi
2930 2932
2931 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2933 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2932 echo "configure:2933: checking whether __after_morecore_hook exists" >&5 2934 echo "configure:2935: checking whether __after_morecore_hook exists" >&5
2933 cat > conftest.$ac_ext <<EOF 2935 cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure" 2936 #line 2937 "configure"
2935 #include "confdefs.h" 2937 #include "confdefs.h"
2936 extern void (* __after_morecore_hook)(); 2938 extern void (* __after_morecore_hook)();
2937 int main() { 2939 int main() {
2938 __after_morecore_hook = 0 2940 __after_morecore_hook = 0
2939 ; return 0; } 2941 ; return 0; }
2940 EOF 2942 EOF
2941 if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2943 if { (eval echo configure:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2942 rm -rf conftest* 2944 rm -rf conftest*
2943 echo "$ac_t""yes" 1>&6 2945 echo "$ac_t""yes" 1>&6
2944 else 2946 else
2945 echo "configure: failed program was:" >&5 2947 echo "configure: failed program was:" >&5
2946 cat conftest.$ac_ext >&5 2948 cat conftest.$ac_ext >&5
2995 2997
2996 2998
2997 # Extract the first word of "ranlib", so it can be a program name with args. 2999 # Extract the first word of "ranlib", so it can be a program name with args.
2998 set dummy ranlib; ac_word=$2 3000 set dummy ranlib; ac_word=$2
2999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3000 echo "configure:3001: checking for $ac_word" >&5 3002 echo "configure:3003: checking for $ac_word" >&5
3001 3003
3002 if test -n "$RANLIB"; then 3004 if test -n "$RANLIB"; then
3003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3004 else 3006 else
3005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3052 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3053 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3054 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3053 # ./install, which can be erroneously created by make from ./install.sh. 3055 # ./install, which can be erroneously created by make from ./install.sh.
3054 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3056 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3055 echo "configure:3056: checking for a BSD compatible install" >&5 3057 echo "configure:3058: checking for a BSD compatible install" >&5
3056 if test -z "$INSTALL"; then 3058 if test -z "$INSTALL"; then
3057 3059
3058 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3060 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3059 for ac_dir in $PATH; do 3061 for ac_dir in $PATH; do
3060 # Account for people who put trailing slashes in PATH elements. 3062 # Account for people who put trailing slashes in PATH elements.
3104 for ac_prog in 'bison -y' byacc 3106 for ac_prog in 'bison -y' byacc
3105 do 3107 do
3106 # Extract the first word of "$ac_prog", so it can be a program name with args. 3108 # Extract the first word of "$ac_prog", so it can be a program name with args.
3107 set dummy $ac_prog; ac_word=$2 3109 set dummy $ac_prog; ac_word=$2
3108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_word" >&5 3111 echo "configure:3112: checking for $ac_word" >&5
3110 3112
3111 if test -n "$YACC"; then 3113 if test -n "$YACC"; then
3112 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3114 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3113 else 3115 else
3114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3136 3138
3137 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 3139 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3138 do 3140 do
3139 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3141 echo "configure:3142: checking for $ac_hdr" >&5 3143 echo "configure:3144: checking for $ac_hdr" >&5
3142 3144
3143 cat > conftest.$ac_ext <<EOF 3145 cat > conftest.$ac_ext <<EOF
3144 #line 3145 "configure" 3146 #line 3147 "configure"
3145 #include "confdefs.h" 3147 #include "confdefs.h"
3146 #include <$ac_hdr> 3148 #include <$ac_hdr>
3147 EOF 3149 EOF
3148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3149 { (eval echo configure:3150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3151 { (eval echo configure:3152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3151 if test -z "$ac_err"; then 3153 if test -z "$ac_err"; then
3152 rm -rf conftest* 3154 rm -rf conftest*
3153 eval "ac_cv_header_$ac_safe=yes" 3155 eval "ac_cv_header_$ac_safe=yes"
3154 else 3156 else
3177 3179
3178 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h 3180 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3179 do 3181 do
3180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3182 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3183 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3182 echo "configure:3183: checking for $ac_hdr" >&5 3184 echo "configure:3185: checking for $ac_hdr" >&5
3183 3185
3184 cat > conftest.$ac_ext <<EOF 3186 cat > conftest.$ac_ext <<EOF
3185 #line 3186 "configure" 3187 #line 3188 "configure"
3186 #include "confdefs.h" 3188 #include "confdefs.h"
3187 #include <$ac_hdr> 3189 #include <$ac_hdr>
3188 EOF 3190 EOF
3189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3190 { (eval echo configure:3191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3192 { (eval echo configure:3193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3192 if test -z "$ac_err"; then 3194 if test -z "$ac_err"; then
3193 rm -rf conftest* 3195 rm -rf conftest*
3194 eval "ac_cv_header_$ac_safe=yes" 3196 eval "ac_cv_header_$ac_safe=yes"
3195 else 3197 else
3218 3220
3219 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 3221 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3220 do 3222 do
3221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3223 echo "configure:3224: checking for $ac_hdr" >&5 3225 echo "configure:3226: checking for $ac_hdr" >&5
3224 3226
3225 cat > conftest.$ac_ext <<EOF 3227 cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure" 3228 #line 3229 "configure"
3227 #include "confdefs.h" 3229 #include "confdefs.h"
3228 #include <$ac_hdr> 3230 #include <$ac_hdr>
3229 EOF 3231 EOF
3230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3231 { (eval echo configure:3232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3233 { (eval echo configure:3234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3233 if test -z "$ac_err"; then 3235 if test -z "$ac_err"; then
3234 rm -rf conftest* 3236 rm -rf conftest*
3235 eval "ac_cv_header_$ac_safe=yes" 3237 eval "ac_cv_header_$ac_safe=yes"
3236 else 3238 else
3256 echo "$ac_t""no" 1>&6 3258 echo "$ac_t""no" 1>&6
3257 fi 3259 fi
3258 done 3260 done
3259 3261
3260 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3262 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3261 echo "configure:3262: checking for sys/wait.h that is POSIX.1 compatible" >&5 3263 echo "configure:3264: checking for sys/wait.h that is POSIX.1 compatible" >&5
3262 3264
3263 cat > conftest.$ac_ext <<EOF 3265 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure" 3266 #line 3267 "configure"
3265 #include "confdefs.h" 3267 #include "confdefs.h"
3266 #include <sys/types.h> 3268 #include <sys/types.h>
3267 #include <sys/wait.h> 3269 #include <sys/wait.h>
3268 #ifndef WEXITSTATUS 3270 #ifndef WEXITSTATUS
3269 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3271 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3275 int s; 3277 int s;
3276 wait (&s); 3278 wait (&s);
3277 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3279 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3278 ; return 0; } 3280 ; return 0; }
3279 EOF 3281 EOF
3280 if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3282 if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3281 rm -rf conftest* 3283 rm -rf conftest*
3282 ac_cv_header_sys_wait_h=yes 3284 ac_cv_header_sys_wait_h=yes
3283 else 3285 else
3284 echo "configure: failed program was:" >&5 3286 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5 3287 cat conftest.$ac_ext >&5
3299 } 3301 }
3300 3302
3301 fi 3303 fi
3302 3304
3303 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3305 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3304 echo "configure:3305: checking for ANSI C header files" >&5 3306 echo "configure:3307: checking for ANSI C header files" >&5
3305 3307
3306 cat > conftest.$ac_ext <<EOF 3308 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure" 3309 #line 3310 "configure"
3308 #include "confdefs.h" 3310 #include "confdefs.h"
3309 #include <stdlib.h> 3311 #include <stdlib.h>
3310 #include <stdarg.h> 3312 #include <stdarg.h>
3311 #include <string.h> 3313 #include <string.h>
3312 #include <float.h> 3314 #include <float.h>
3313 EOF 3315 EOF
3314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3315 { (eval echo configure:3316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3317 { (eval echo configure:3318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3317 if test -z "$ac_err"; then 3319 if test -z "$ac_err"; then
3318 rm -rf conftest* 3320 rm -rf conftest*
3319 ac_cv_header_stdc=yes 3321 ac_cv_header_stdc=yes
3320 else 3322 else
3327 rm -f conftest* 3329 rm -f conftest*
3328 3330
3329 if test $ac_cv_header_stdc = yes; then 3331 if test $ac_cv_header_stdc = yes; then
3330 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3331 cat > conftest.$ac_ext <<EOF 3333 cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure" 3334 #line 3335 "configure"
3333 #include "confdefs.h" 3335 #include "confdefs.h"
3334 #include <string.h> 3336 #include <string.h>
3335 EOF 3337 EOF
3336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3337 egrep "memchr" >/dev/null 2>&1; then 3339 egrep "memchr" >/dev/null 2>&1; then
3345 fi 3347 fi
3346 3348
3347 if test $ac_cv_header_stdc = yes; then 3349 if test $ac_cv_header_stdc = yes; then
3348 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3350 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3349 cat > conftest.$ac_ext <<EOF 3351 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure" 3352 #line 3353 "configure"
3351 #include "confdefs.h" 3353 #include "confdefs.h"
3352 #include <stdlib.h> 3354 #include <stdlib.h>
3353 EOF 3355 EOF
3354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3355 egrep "free" >/dev/null 2>&1; then 3357 egrep "free" >/dev/null 2>&1; then
3363 fi 3365 fi
3364 3366
3365 if test $ac_cv_header_stdc = yes; then 3367 if test $ac_cv_header_stdc = yes; then
3366 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3368 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3367 cat > conftest.$ac_ext <<EOF 3369 cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure" 3370 #line 3371 "configure"
3369 #include "confdefs.h" 3371 #include "confdefs.h"
3370 #include <ctype.h> 3372 #include <ctype.h>
3371 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3373 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3372 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3374 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3374 int main () { int i; for (i = 0; i < 256; i++) 3376 int main () { int i; for (i = 0; i < 256; i++)
3375 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3377 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3376 exit (0); } 3378 exit (0); }
3377 3379
3378 EOF 3380 EOF
3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3381 if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3380 then 3382 then
3381 : 3383 :
3382 else 3384 else
3383 conftest_rc="$?" 3385 conftest_rc="$?"
3384 echo "configure: failed program was:" >&5 3386 echo "configure: failed program was:" >&5
3400 } 3402 }
3401 3403
3402 fi 3404 fi
3403 3405
3404 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3406 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3405 echo "configure:3406: checking whether time.h and sys/time.h may both be included" >&5 3407 echo "configure:3408: checking whether time.h and sys/time.h may both be included" >&5
3406 3408
3407 cat > conftest.$ac_ext <<EOF 3409 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure" 3410 #line 3411 "configure"
3409 #include "confdefs.h" 3411 #include "confdefs.h"
3410 #include <sys/types.h> 3412 #include <sys/types.h>
3411 #include <sys/time.h> 3413 #include <sys/time.h>
3412 #include <time.h> 3414 #include <time.h>
3413 int main() { 3415 int main() {
3414 struct tm *tp; 3416 struct tm *tp;
3415 ; return 0; } 3417 ; return 0; }
3416 EOF 3418 EOF
3417 if { (eval echo configure:3418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3419 if { (eval echo configure:3420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3418 rm -rf conftest* 3420 rm -rf conftest*
3419 ac_cv_header_time=yes 3421 ac_cv_header_time=yes
3420 else 3422 else
3421 echo "configure: failed program was:" >&5 3423 echo "configure: failed program was:" >&5
3422 cat conftest.$ac_ext >&5 3424 cat conftest.$ac_ext >&5
3436 } 3438 }
3437 3439
3438 fi 3440 fi
3439 3441
3440 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3442 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3441 echo "configure:3442: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3443 echo "configure:3444: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3442 3444
3443 cat > conftest.$ac_ext <<EOF 3445 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure" 3446 #line 3447 "configure"
3445 #include "confdefs.h" 3447 #include "confdefs.h"
3446 #include <sys/types.h> 3448 #include <sys/types.h>
3447 #include <signal.h> 3449 #include <signal.h>
3448 /* NetBSD declares sys_siglist in unistd.h. */ 3450 /* NetBSD declares sys_siglist in unistd.h. */
3449 #ifdef HAVE_UNISTD_H 3451 #ifdef HAVE_UNISTD_H
3451 #endif 3453 #endif
3452 int main() { 3454 int main() {
3453 char *msg = *(sys_siglist + 1); 3455 char *msg = *(sys_siglist + 1);
3454 ; return 0; } 3456 ; return 0; }
3455 EOF 3457 EOF
3456 if { (eval echo configure:3457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3458 if { (eval echo configure:3459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3457 rm -rf conftest* 3459 rm -rf conftest*
3458 ac_cv_decl_sys_siglist=yes 3460 ac_cv_decl_sys_siglist=yes
3459 else 3461 else
3460 echo "configure: failed program was:" >&5 3462 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5 3463 cat conftest.$ac_ext >&5
3476 3478
3477 fi 3479 fi
3478 3480
3479 3481
3480 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3482 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3481 echo "configure:3482: checking for struct utimbuf" >&5 3483 echo "configure:3484: checking for struct utimbuf" >&5
3482 cat > conftest.$ac_ext <<EOF 3484 cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure" 3485 #line 3486 "configure"
3484 #include "confdefs.h" 3486 #include "confdefs.h"
3485 #ifdef TIME_WITH_SYS_TIME 3487 #ifdef TIME_WITH_SYS_TIME
3486 #include <sys/time.h> 3488 #include <sys/time.h>
3487 #include <time.h> 3489 #include <time.h>
3488 #else 3490 #else
3497 #endif 3499 #endif
3498 int main() { 3500 int main() {
3499 static struct utimbuf x; x.actime = x.modtime; 3501 static struct utimbuf x; x.actime = x.modtime;
3500 ; return 0; } 3502 ; return 0; }
3501 EOF 3503 EOF
3502 if { (eval echo configure:3503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3503 rm -rf conftest* 3505 rm -rf conftest*
3504 echo "$ac_t""yes" 1>&6 3506 echo "$ac_t""yes" 1>&6
3505 { test "$extra_verbose" = "yes" && cat << \EOF 3507 { test "$extra_verbose" = "yes" && cat << \EOF
3506 Defining HAVE_STRUCT_UTIMBUF 3508 Defining HAVE_STRUCT_UTIMBUF
3507 EOF 3509 EOF
3517 echo "$ac_t""no" 1>&6 3519 echo "$ac_t""no" 1>&6
3518 fi 3520 fi
3519 rm -f conftest* 3521 rm -f conftest*
3520 3522
3521 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3523 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3522 echo "configure:3523: checking return type of signal handlers" >&5 3524 echo "configure:3525: checking return type of signal handlers" >&5
3523 3525
3524 cat > conftest.$ac_ext <<EOF 3526 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure" 3527 #line 3528 "configure"
3526 #include "confdefs.h" 3528 #include "confdefs.h"
3527 #include <sys/types.h> 3529 #include <sys/types.h>
3528 #include <signal.h> 3530 #include <signal.h>
3529 #ifdef signal 3531 #ifdef signal
3530 #undef signal 3532 #undef signal
3537 3539
3538 int main() { 3540 int main() {
3539 int i; 3541 int i;
3540 ; return 0; } 3542 ; return 0; }
3541 EOF 3543 EOF
3542 if { (eval echo configure:3543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3544 if { (eval echo configure:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3543 rm -rf conftest* 3545 rm -rf conftest*
3544 ac_cv_type_signal=void 3546 ac_cv_type_signal=void
3545 else 3547 else
3546 echo "configure: failed program was:" >&5 3548 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5 3549 cat conftest.$ac_ext >&5
3559 EOF 3561 EOF
3560 } 3562 }
3561 3563
3562 3564
3563 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3565 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3564 echo "configure:3565: checking for size_t" >&5 3566 echo "configure:3567: checking for size_t" >&5
3565 3567
3566 cat > conftest.$ac_ext <<EOF 3568 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure" 3569 #line 3570 "configure"
3568 #include "confdefs.h" 3570 #include "confdefs.h"
3569 #include <sys/types.h> 3571 #include <sys/types.h>
3570 #if STDC_HEADERS 3572 #if STDC_HEADERS
3571 #include <stdlib.h> 3573 #include <stdlib.h>
3572 #include <stddef.h> 3574 #include <stddef.h>
3593 } 3595 }
3594 3596
3595 fi 3597 fi
3596 3598
3597 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3599 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3598 echo "configure:3599: checking for pid_t" >&5 3600 echo "configure:3601: checking for pid_t" >&5
3599 3601
3600 cat > conftest.$ac_ext <<EOF 3602 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure" 3603 #line 3604 "configure"
3602 #include "confdefs.h" 3604 #include "confdefs.h"
3603 #include <sys/types.h> 3605 #include <sys/types.h>
3604 #if STDC_HEADERS 3606 #if STDC_HEADERS
3605 #include <stdlib.h> 3607 #include <stdlib.h>
3606 #include <stddef.h> 3608 #include <stddef.h>
3627 } 3629 }
3628 3630
3629 fi 3631 fi
3630 3632
3631 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3633 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3632 echo "configure:3633: checking for uid_t in sys/types.h" >&5 3634 echo "configure:3635: checking for uid_t in sys/types.h" >&5
3633 3635
3634 cat > conftest.$ac_ext <<EOF 3636 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure" 3637 #line 3638 "configure"
3636 #include "confdefs.h" 3638 #include "confdefs.h"
3637 #include <sys/types.h> 3639 #include <sys/types.h>
3638 EOF 3640 EOF
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 egrep "uid_t" >/dev/null 2>&1; then 3642 egrep "uid_t" >/dev/null 2>&1; then
3666 } 3668 }
3667 3669
3668 fi 3670 fi
3669 3671
3670 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3672 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3671 echo "configure:3672: checking for mode_t" >&5 3673 echo "configure:3674: checking for mode_t" >&5
3672 3674
3673 cat > conftest.$ac_ext <<EOF 3675 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure" 3676 #line 3677 "configure"
3675 #include "confdefs.h" 3677 #include "confdefs.h"
3676 #include <sys/types.h> 3678 #include <sys/types.h>
3677 #if STDC_HEADERS 3679 #if STDC_HEADERS
3678 #include <stdlib.h> 3680 #include <stdlib.h>
3679 #include <stddef.h> 3681 #include <stddef.h>
3700 } 3702 }
3701 3703
3702 fi 3704 fi
3703 3705
3704 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3706 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3705 echo "configure:3706: checking for off_t" >&5 3707 echo "configure:3708: checking for off_t" >&5
3706 3708
3707 cat > conftest.$ac_ext <<EOF 3709 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure" 3710 #line 3711 "configure"
3709 #include "confdefs.h" 3711 #include "confdefs.h"
3710 #include <sys/types.h> 3712 #include <sys/types.h>
3711 #if STDC_HEADERS 3713 #if STDC_HEADERS
3712 #include <stdlib.h> 3714 #include <stdlib.h>
3713 #include <stddef.h> 3715 #include <stddef.h>
3735 3737
3736 fi 3738 fi
3737 3739
3738 3740
3739 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3741 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3740 echo "configure:3741: checking for struct timeval" >&5 3742 echo "configure:3743: checking for struct timeval" >&5
3741 cat > conftest.$ac_ext <<EOF 3743 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure" 3744 #line 3745 "configure"
3743 #include "confdefs.h" 3745 #include "confdefs.h"
3744 #ifdef TIME_WITH_SYS_TIME 3746 #ifdef TIME_WITH_SYS_TIME
3745 #include <sys/time.h> 3747 #include <sys/time.h>
3746 #include <time.h> 3748 #include <time.h>
3747 #else 3749 #else
3753 #endif 3755 #endif
3754 int main() { 3756 int main() {
3755 static struct timeval x; x.tv_sec = x.tv_usec; 3757 static struct timeval x; x.tv_sec = x.tv_usec;
3756 ; return 0; } 3758 ; return 0; }
3757 EOF 3759 EOF
3758 if { (eval echo configure:3759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3760 if { (eval echo configure:3761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3759 rm -rf conftest* 3761 rm -rf conftest*
3760 echo "$ac_t""yes" 1>&6 3762 echo "$ac_t""yes" 1>&6
3761 HAVE_TIMEVAL=yes 3763 HAVE_TIMEVAL=yes
3762 { test "$extra_verbose" = "yes" && cat << \EOF 3764 { test "$extra_verbose" = "yes" && cat << \EOF
3763 Defining HAVE_TIMEVAL 3765 Defining HAVE_TIMEVAL
3775 HAVE_TIMEVAL=no 3777 HAVE_TIMEVAL=no
3776 fi 3778 fi
3777 rm -f conftest* 3779 rm -f conftest*
3778 3780
3779 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3781 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3780 echo "configure:3781: checking whether struct tm is in sys/time.h or time.h" >&5 3782 echo "configure:3783: checking whether struct tm is in sys/time.h or time.h" >&5
3781 3783
3782 cat > conftest.$ac_ext <<EOF 3784 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure" 3785 #line 3786 "configure"
3784 #include "confdefs.h" 3786 #include "confdefs.h"
3785 #include <sys/types.h> 3787 #include <sys/types.h>
3786 #include <time.h> 3788 #include <time.h>
3787 int main() { 3789 int main() {
3788 struct tm *tp; tp->tm_sec; 3790 struct tm *tp; tp->tm_sec;
3789 ; return 0; } 3791 ; return 0; }
3790 EOF 3792 EOF
3791 if { (eval echo configure:3792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3793 if { (eval echo configure:3794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3792 rm -rf conftest* 3794 rm -rf conftest*
3793 ac_cv_struct_tm=time.h 3795 ac_cv_struct_tm=time.h
3794 else 3796 else
3795 echo "configure: failed program was:" >&5 3797 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5 3798 cat conftest.$ac_ext >&5
3810 } 3812 }
3811 3813
3812 fi 3814 fi
3813 3815
3814 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3816 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3815 echo "configure:3816: checking for tm_zone in struct tm" >&5 3817 echo "configure:3818: checking for tm_zone in struct tm" >&5
3816 3818
3817 cat > conftest.$ac_ext <<EOF 3819 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure" 3820 #line 3821 "configure"
3819 #include "confdefs.h" 3821 #include "confdefs.h"
3820 #include <sys/types.h> 3822 #include <sys/types.h>
3821 #include <$ac_cv_struct_tm> 3823 #include <$ac_cv_struct_tm>
3822 int main() { 3824 int main() {
3823 struct tm tm; tm.tm_zone; 3825 struct tm tm; tm.tm_zone;
3824 ; return 0; } 3826 ; return 0; }
3825 EOF 3827 EOF
3826 if { (eval echo configure:3827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3828 if { (eval echo configure:3829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3827 rm -rf conftest* 3829 rm -rf conftest*
3828 ac_cv_struct_tm_zone=yes 3830 ac_cv_struct_tm_zone=yes
3829 else 3831 else
3830 echo "configure: failed program was:" >&5 3832 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5 3833 cat conftest.$ac_ext >&5
3844 EOF 3846 EOF
3845 } 3847 }
3846 3848
3847 else 3849 else
3848 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3850 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3849 echo "configure:3850: checking for tzname" >&5 3851 echo "configure:3852: checking for tzname" >&5
3850 3852
3851 cat > conftest.$ac_ext <<EOF 3853 cat > conftest.$ac_ext <<EOF
3852 #line 3853 "configure" 3854 #line 3855 "configure"
3853 #include "confdefs.h" 3855 #include "confdefs.h"
3854 #include <time.h> 3856 #include <time.h>
3855 #ifndef tzname /* For SGI. */ 3857 #ifndef tzname /* For SGI. */
3856 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3858 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3857 #endif 3859 #endif
3858 int main() { 3860 int main() {
3859 atoi(*tzname); 3861 atoi(*tzname);
3860 ; return 0; } 3862 ; return 0; }
3861 EOF 3863 EOF
3862 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3864 if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3863 rm -rf conftest* 3865 rm -rf conftest*
3864 ac_cv_var_tzname=yes 3866 ac_cv_var_tzname=yes
3865 else 3867 else
3866 echo "configure: failed program was:" >&5 3868 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5 3869 cat conftest.$ac_ext >&5
3883 fi 3885 fi
3884 fi 3886 fi
3885 3887
3886 3888
3887 echo $ac_n "checking for working const""... $ac_c" 1>&6 3889 echo $ac_n "checking for working const""... $ac_c" 1>&6
3888 echo "configure:3889: checking for working const" >&5 3890 echo "configure:3891: checking for working const" >&5
3889 3891
3890 cat > conftest.$ac_ext <<EOF 3892 cat > conftest.$ac_ext <<EOF
3891 #line 3892 "configure" 3893 #line 3894 "configure"
3892 #include "confdefs.h" 3894 #include "confdefs.h"
3893 3895
3894 int main() { 3896 int main() {
3895 3897
3896 /* Ultrix mips cc rejects this. */ 3898 /* Ultrix mips cc rejects this. */
3935 const int foo = 10; 3937 const int foo = 10;
3936 } 3938 }
3937 3939
3938 ; return 0; } 3940 ; return 0; }
3939 EOF 3941 EOF
3940 if { (eval echo configure:3941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3942 if { (eval echo configure:3943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3941 rm -rf conftest* 3943 rm -rf conftest*
3942 ac_cv_c_const=yes 3944 ac_cv_c_const=yes
3943 else 3945 else
3944 echo "configure: failed program was:" >&5 3946 echo "configure: failed program was:" >&5
3945 cat conftest.$ac_ext >&5 3947 cat conftest.$ac_ext >&5
3960 3962
3961 fi 3963 fi
3962 3964
3963 3965
3964 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3966 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3965 echo "configure:3966: checking whether ${MAKE-make} sets \${MAKE}" >&5 3967 echo "configure:3968: checking whether ${MAKE-make} sets \${MAKE}" >&5
3966 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3968 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3967 3969
3968 cat > conftestmake <<\EOF 3970 cat > conftestmake <<\EOF
3969 all: 3971 all:
3970 @echo 'ac_maketemp="${MAKE}"' 3972 @echo 'ac_maketemp="${MAKE}"'
3985 SET_MAKE="MAKE=${MAKE-make}" 3987 SET_MAKE="MAKE=${MAKE-make}"
3986 fi 3988 fi
3987 3989
3988 3990
3989 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3991 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3990 echo "configure:3991: checking whether byte ordering is bigendian" >&5 3992 echo "configure:3993: checking whether byte ordering is bigendian" >&5
3991 3993
3992 ac_cv_c_bigendian=unknown 3994 ac_cv_c_bigendian=unknown
3993 # See if sys/param.h defines the BYTE_ORDER macro. 3995 # See if sys/param.h defines the BYTE_ORDER macro.
3994 cat > conftest.$ac_ext <<EOF 3996 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure" 3997 #line 3998 "configure"
3996 #include "confdefs.h" 3998 #include "confdefs.h"
3997 #include <sys/types.h> 3999 #include <sys/types.h>
3998 #include <sys/param.h> 4000 #include <sys/param.h>
3999 int main() { 4001 int main() {
4000 4002
4001 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4003 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4002 bogus endian macros 4004 bogus endian macros
4003 #endif 4005 #endif
4004 ; return 0; } 4006 ; return 0; }
4005 EOF 4007 EOF
4006 if { (eval echo configure:4007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4008 if { (eval echo configure:4009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4007 rm -rf conftest* 4009 rm -rf conftest*
4008 # It does; now see whether it defined to BIG_ENDIAN or not. 4010 # It does; now see whether it defined to BIG_ENDIAN or not.
4009 cat > conftest.$ac_ext <<EOF 4011 cat > conftest.$ac_ext <<EOF
4010 #line 4011 "configure" 4012 #line 4013 "configure"
4011 #include "confdefs.h" 4013 #include "confdefs.h"
4012 #include <sys/types.h> 4014 #include <sys/types.h>
4013 #include <sys/param.h> 4015 #include <sys/param.h>
4014 int main() { 4016 int main() {
4015 4017
4016 #if BYTE_ORDER != BIG_ENDIAN 4018 #if BYTE_ORDER != BIG_ENDIAN
4017 not big endian 4019 not big endian
4018 #endif 4020 #endif
4019 ; return 0; } 4021 ; return 0; }
4020 EOF 4022 EOF
4021 if { (eval echo configure:4022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4023 if { (eval echo configure:4024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4022 rm -rf conftest* 4024 rm -rf conftest*
4023 ac_cv_c_bigendian=yes 4025 ac_cv_c_bigendian=yes
4024 else 4026 else
4025 echo "configure: failed program was:" >&5 4027 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5 4028 cat conftest.$ac_ext >&5
4033 cat conftest.$ac_ext >&5 4035 cat conftest.$ac_ext >&5
4034 fi 4036 fi
4035 rm -f conftest* 4037 rm -f conftest*
4036 if test $ac_cv_c_bigendian = unknown; then 4038 if test $ac_cv_c_bigendian = unknown; then
4037 cat > conftest.$ac_ext <<EOF 4039 cat > conftest.$ac_ext <<EOF
4038 #line 4039 "configure" 4040 #line 4041 "configure"
4039 #include "confdefs.h" 4041 #include "confdefs.h"
4040 main () { 4042 main () {
4041 /* Are we little or big endian? From Harbison&Steele. */ 4043 /* Are we little or big endian? From Harbison&Steele. */
4042 union 4044 union
4043 { 4045 {
4046 } u; 4048 } u;
4047 u.l = 1; 4049 u.l = 1;
4048 exit (u.c[sizeof (long) - 1] == 1); 4050 exit (u.c[sizeof (long) - 1] == 1);
4049 } 4051 }
4050 EOF 4052 EOF
4051 if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4053 if { (eval echo configure:4054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4052 then 4054 then
4053 ac_cv_c_bigendian=no 4055 ac_cv_c_bigendian=no
4054 else 4056 else
4055 conftest_rc="$?" 4057 conftest_rc="$?"
4056 echo "configure: failed program was:" >&5 4058 echo "configure: failed program was:" >&5
4073 4075
4074 fi 4076 fi
4075 4077
4076 4078
4077 echo $ac_n "checking size of short""... $ac_c" 1>&6 4079 echo $ac_n "checking size of short""... $ac_c" 1>&6
4078 echo "configure:4079: checking size of short" >&5 4080 echo "configure:4081: checking size of short" >&5
4079 4081
4080 cat > conftest.$ac_ext <<EOF 4082 cat > conftest.$ac_ext <<EOF
4081 #line 4082 "configure" 4083 #line 4084 "configure"
4082 #include "confdefs.h" 4084 #include "confdefs.h"
4083 #include <stdio.h> 4085 #include <stdio.h>
4084 main() 4086 main()
4085 { 4087 {
4086 FILE *f=fopen("conftestval", "w"); 4088 FILE *f=fopen("conftestval", "w");
4087 if (!f) exit(1); 4089 if (!f) exit(1);
4088 fprintf(f, "%d\n", sizeof(short)); 4090 fprintf(f, "%d\n", sizeof(short));
4089 exit(0); 4091 exit(0);
4090 } 4092 }
4091 EOF 4093 EOF
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4094 if { (eval echo configure:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4093 then 4095 then
4094 ac_cv_sizeof_short=`cat conftestval` 4096 ac_cv_sizeof_short=`cat conftestval`
4095 else 4097 else
4096 conftest_rc="$?" 4098 conftest_rc="$?"
4097 echo "configure: failed program was:" >&5 4099 echo "configure: failed program was:" >&5
4115 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4117 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4116 echo "*** PANIC *** Please examine config.log for compilation errors." 4118 echo "*** PANIC *** Please examine config.log for compilation errors."
4117 exit 1 4119 exit 1
4118 fi 4120 fi
4119 echo $ac_n "checking size of int""... $ac_c" 1>&6 4121 echo $ac_n "checking size of int""... $ac_c" 1>&6
4120 echo "configure:4121: checking size of int" >&5 4122 echo "configure:4123: checking size of int" >&5
4121 4123
4122 cat > conftest.$ac_ext <<EOF 4124 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure" 4125 #line 4126 "configure"
4124 #include "confdefs.h" 4126 #include "confdefs.h"
4125 #include <stdio.h> 4127 #include <stdio.h>
4126 main() 4128 main()
4127 { 4129 {
4128 FILE *f=fopen("conftestval", "w"); 4130 FILE *f=fopen("conftestval", "w");
4129 if (!f) exit(1); 4131 if (!f) exit(1);
4130 fprintf(f, "%d\n", sizeof(int)); 4132 fprintf(f, "%d\n", sizeof(int));
4131 exit(0); 4133 exit(0);
4132 } 4134 }
4133 EOF 4135 EOF
4134 if { (eval echo configure:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4136 if { (eval echo configure:4137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4135 then 4137 then
4136 ac_cv_sizeof_int=`cat conftestval` 4138 ac_cv_sizeof_int=`cat conftestval`
4137 else 4139 else
4138 conftest_rc="$?" 4140 conftest_rc="$?"
4139 echo "configure: failed program was:" >&5 4141 echo "configure: failed program was:" >&5
4151 EOF 4153 EOF
4152 } 4154 }
4153 4155
4154 4156
4155 echo $ac_n "checking size of long""... $ac_c" 1>&6 4157 echo $ac_n "checking size of long""... $ac_c" 1>&6
4156 echo "configure:4157: checking size of long" >&5 4158 echo "configure:4159: checking size of long" >&5
4157 4159
4158 cat > conftest.$ac_ext <<EOF 4160 cat > conftest.$ac_ext <<EOF
4159 #line 4160 "configure" 4161 #line 4162 "configure"
4160 #include "confdefs.h" 4162 #include "confdefs.h"
4161 #include <stdio.h> 4163 #include <stdio.h>
4162 main() 4164 main()
4163 { 4165 {
4164 FILE *f=fopen("conftestval", "w"); 4166 FILE *f=fopen("conftestval", "w");
4165 if (!f) exit(1); 4167 if (!f) exit(1);
4166 fprintf(f, "%d\n", sizeof(long)); 4168 fprintf(f, "%d\n", sizeof(long));
4167 exit(0); 4169 exit(0);
4168 } 4170 }
4169 EOF 4171 EOF
4170 if { (eval echo configure:4171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4172 if { (eval echo configure:4173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4171 then 4173 then
4172 ac_cv_sizeof_long=`cat conftestval` 4174 ac_cv_sizeof_long=`cat conftestval`
4173 else 4175 else
4174 conftest_rc="$?" 4176 conftest_rc="$?"
4175 echo "configure: failed program was:" >&5 4177 echo "configure: failed program was:" >&5
4187 EOF 4189 EOF
4188 } 4190 }
4189 4191
4190 4192
4191 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4193 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4192 echo "configure:4193: checking size of long long" >&5 4194 echo "configure:4195: checking size of long long" >&5
4193 4195
4194 cat > conftest.$ac_ext <<EOF 4196 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure" 4197 #line 4198 "configure"
4196 #include "confdefs.h" 4198 #include "confdefs.h"
4197 #include <stdio.h> 4199 #include <stdio.h>
4198 main() 4200 main()
4199 { 4201 {
4200 FILE *f=fopen("conftestval", "w"); 4202 FILE *f=fopen("conftestval", "w");
4201 if (!f) exit(1); 4203 if (!f) exit(1);
4202 fprintf(f, "%d\n", sizeof(long long)); 4204 fprintf(f, "%d\n", sizeof(long long));
4203 exit(0); 4205 exit(0);
4204 } 4206 }
4205 EOF 4207 EOF
4206 if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4208 if { (eval echo configure:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4207 then 4209 then
4208 ac_cv_sizeof_long_long=`cat conftestval` 4210 ac_cv_sizeof_long_long=`cat conftestval`
4209 else 4211 else
4210 conftest_rc="$?" 4212 conftest_rc="$?"
4211 echo "configure: failed program was:" >&5 4213 echo "configure: failed program was:" >&5
4223 EOF 4225 EOF
4224 } 4226 }
4225 4227
4226 4228
4227 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4229 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4228 echo "configure:4229: checking size of void *" >&5 4230 echo "configure:4231: checking size of void *" >&5
4229 4231
4230 cat > conftest.$ac_ext <<EOF 4232 cat > conftest.$ac_ext <<EOF
4231 #line 4232 "configure" 4233 #line 4234 "configure"
4232 #include "confdefs.h" 4234 #include "confdefs.h"
4233 #include <stdio.h> 4235 #include <stdio.h>
4234 main() 4236 main()
4235 { 4237 {
4236 FILE *f=fopen("conftestval", "w"); 4238 FILE *f=fopen("conftestval", "w");
4237 if (!f) exit(1); 4239 if (!f) exit(1);
4238 fprintf(f, "%d\n", sizeof(void *)); 4240 fprintf(f, "%d\n", sizeof(void *));
4239 exit(0); 4241 exit(0);
4240 } 4242 }
4241 EOF 4243 EOF
4242 if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4244 if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4243 then 4245 then
4244 ac_cv_sizeof_void_p=`cat conftestval` 4246 ac_cv_sizeof_void_p=`cat conftestval`
4245 else 4247 else
4246 conftest_rc="$?" 4248 conftest_rc="$?"
4247 echo "configure: failed program was:" >&5 4249 echo "configure: failed program was:" >&5
4260 } 4262 }
4261 4263
4262 4264
4263 4265
4264 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4266 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4265 echo "configure:4266: checking for long file names" >&5 4267 echo "configure:4268: checking for long file names" >&5
4266 4268
4267 ac_cv_sys_long_file_names=yes 4269 ac_cv_sys_long_file_names=yes
4268 # Test for long file names in all the places we know might matter: 4270 # Test for long file names in all the places we know might matter:
4269 # . the current directory, where building will happen 4271 # . the current directory, where building will happen
4270 # $prefix/lib where we will be installing things 4272 # $prefix/lib where we will be installing things
4307 fi 4309 fi
4308 4310
4309 4311
4310 4312
4311 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4313 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4312 echo "configure:4313: checking for sin in -lm" >&5 4314 echo "configure:4315: checking for sin in -lm" >&5
4313 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4315 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4314 4316
4315 xe_check_libs=" -lm " 4317 xe_check_libs=" -lm "
4316 cat > conftest.$ac_ext <<EOF 4318 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure" 4319 #line 4320 "configure"
4318 #include "confdefs.h" 4320 #include "confdefs.h"
4319 /* Override any gcc2 internal prototype to avoid an error. */ 4321 /* Override any gcc2 internal prototype to avoid an error. */
4320 /* We use char because int might match the return type of a gcc2 4322 /* We use char because int might match the return type of a gcc2
4321 builtin and then its argument prototype would still apply. */ 4323 builtin and then its argument prototype would still apply. */
4322 char sin(); 4324 char sin();
4323 4325
4324 int main() { 4326 int main() {
4325 sin() 4327 sin()
4326 ; return 0; } 4328 ; return 0; }
4327 EOF 4329 EOF
4328 if { (eval echo configure:4329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4329 rm -rf conftest* 4331 rm -rf conftest*
4330 eval "ac_cv_lib_$ac_lib_var=yes" 4332 eval "ac_cv_lib_$ac_lib_var=yes"
4331 else 4333 else
4332 echo "configure: failed program was:" >&5 4334 echo "configure: failed program was:" >&5
4333 cat conftest.$ac_ext >&5 4335 cat conftest.$ac_ext >&5
4365 EOF 4367 EOF
4366 } 4368 }
4367 4369
4368 4370
4369 cat > conftest.$ac_ext <<EOF 4371 cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure" 4372 #line 4373 "configure"
4371 #include "confdefs.h" 4373 #include "confdefs.h"
4372 #include <math.h> 4374 #include <math.h>
4373 int main() { 4375 int main() {
4374 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4376 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4375 ; return 0; } 4377 ; return 0; }
4376 EOF 4378 EOF
4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4379 if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4378 rm -rf conftest* 4380 rm -rf conftest*
4379 { test "$extra_verbose" = "yes" && cat << \EOF 4381 { test "$extra_verbose" = "yes" && cat << \EOF
4380 Defining HAVE_INVERSE_HYPERBOLIC 4382 Defining HAVE_INVERSE_HYPERBOLIC
4381 EOF 4383 EOF
4382 cat >> confdefs.h <<\EOF 4384 cat >> confdefs.h <<\EOF
4389 cat conftest.$ac_ext >&5 4391 cat conftest.$ac_ext >&5
4390 fi 4392 fi
4391 rm -f conftest* 4393 rm -f conftest*
4392 4394
4393 echo "checking type of mail spool file locking" 1>&6 4395 echo "checking type of mail spool file locking" 1>&6
4394 echo "configure:4395: checking type of mail spool file locking" >&5 4396 echo "configure:4397: checking type of mail spool file locking" >&5
4395 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 4397 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4396 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 4398 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4397 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 4399 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4398 Defining REAL_MAIL_USE_LOCKF 4400 Defining REAL_MAIL_USE_LOCKF
4399 EOF 4401 EOF
4413 else mail_locking="dot-locking" 4415 else mail_locking="dot-locking"
4414 fi 4416 fi
4415 4417
4416 4418
4417 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 4419 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
4418 echo "configure:4419: checking for kstat_open in -lkstat" >&5 4420 echo "configure:4421: checking for kstat_open in -lkstat" >&5
4419 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 4421 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
4420 4422
4421 xe_check_libs=" -lkstat " 4423 xe_check_libs=" -lkstat "
4422 cat > conftest.$ac_ext <<EOF 4424 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure" 4425 #line 4426 "configure"
4424 #include "confdefs.h" 4426 #include "confdefs.h"
4425 /* Override any gcc2 internal prototype to avoid an error. */ 4427 /* Override any gcc2 internal prototype to avoid an error. */
4426 /* We use char because int might match the return type of a gcc2 4428 /* We use char because int might match the return type of a gcc2
4427 builtin and then its argument prototype would still apply. */ 4429 builtin and then its argument prototype would still apply. */
4428 char kstat_open(); 4430 char kstat_open();
4429 4431
4430 int main() { 4432 int main() {
4431 kstat_open() 4433 kstat_open()
4432 ; return 0; } 4434 ; return 0; }
4433 EOF 4435 EOF
4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4436 if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4435 rm -rf conftest* 4437 rm -rf conftest*
4436 eval "ac_cv_lib_$ac_lib_var=yes" 4438 eval "ac_cv_lib_$ac_lib_var=yes"
4437 else 4439 else
4438 echo "configure: failed program was:" >&5 4440 echo "configure: failed program was:" >&5
4439 cat conftest.$ac_ext >&5 4441 cat conftest.$ac_ext >&5
4463 4465
4464 4466
4465 4467
4466 4468
4467 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 4469 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
4468 echo "configure:4469: checking for kvm_read in -lkvm" >&5 4470 echo "configure:4471: checking for kvm_read in -lkvm" >&5
4469 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 4471 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
4470 4472
4471 xe_check_libs=" -lkvm " 4473 xe_check_libs=" -lkvm "
4472 cat > conftest.$ac_ext <<EOF 4474 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure" 4475 #line 4476 "configure"
4474 #include "confdefs.h" 4476 #include "confdefs.h"
4475 /* Override any gcc2 internal prototype to avoid an error. */ 4477 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2 4478 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */ 4479 builtin and then its argument prototype would still apply. */
4478 char kvm_read(); 4480 char kvm_read();
4479 4481
4480 int main() { 4482 int main() {
4481 kvm_read() 4483 kvm_read()
4482 ; return 0; } 4484 ; return 0; }
4483 EOF 4485 EOF
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4486 if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4485 rm -rf conftest* 4487 rm -rf conftest*
4486 eval "ac_cv_lib_$ac_lib_var=yes" 4488 eval "ac_cv_lib_$ac_lib_var=yes"
4487 else 4489 else
4488 echo "configure: failed program was:" >&5 4490 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5 4491 cat conftest.$ac_ext >&5
4514 4516
4515 4517
4516 case "$opsys" in decosf*) 4518 case "$opsys" in decosf*)
4517 4519
4518 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4520 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4519 echo "configure:4520: checking for cma_open in -lpthreads" >&5 4521 echo "configure:4522: checking for cma_open in -lpthreads" >&5
4520 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4522 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4521 4523
4522 xe_check_libs=" -lpthreads " 4524 xe_check_libs=" -lpthreads "
4523 cat > conftest.$ac_ext <<EOF 4525 cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure" 4526 #line 4527 "configure"
4525 #include "confdefs.h" 4527 #include "confdefs.h"
4526 /* Override any gcc2 internal prototype to avoid an error. */ 4528 /* Override any gcc2 internal prototype to avoid an error. */
4527 /* We use char because int might match the return type of a gcc2 4529 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */ 4530 builtin and then its argument prototype would still apply. */
4529 char cma_open(); 4531 char cma_open();
4530 4532
4531 int main() { 4533 int main() {
4532 cma_open() 4534 cma_open()
4533 ; return 0; } 4535 ; return 0; }
4534 EOF 4536 EOF
4535 if { (eval echo configure:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4536 rm -rf conftest* 4538 rm -rf conftest*
4537 eval "ac_cv_lib_$ac_lib_var=yes" 4539 eval "ac_cv_lib_$ac_lib_var=yes"
4538 else 4540 else
4539 echo "configure: failed program was:" >&5 4541 echo "configure: failed program was:" >&5
4540 cat conftest.$ac_ext >&5 4542 cat conftest.$ac_ext >&5
4566 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4568 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4567 c_switch_site="$c_switch_site -threads" ;; 4569 c_switch_site="$c_switch_site -threads" ;;
4568 esac 4570 esac
4569 4571
4570 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4572 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4571 echo "configure:4572: checking whether the -xildoff compiler flag is required" >&5 4573 echo "configure:4574: checking whether the -xildoff compiler flag is required" >&5
4572 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4574 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4573 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4575 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4574 then echo "$ac_t""no" 1>&6; 4576 then echo "$ac_t""no" 1>&6;
4575 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 4577 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
4576 fi 4578 fi
4577 else echo "$ac_t""no" 1>&6 4579 else echo "$ac_t""no" 1>&6
4578 fi 4580 fi
4579 4581
4580 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4582 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4581 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4583 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4582 echo "configure:4583: checking for \"-z ignore\" linker flag" >&5 4584 echo "configure:4585: checking for \"-z ignore\" linker flag" >&5
4583 case "`ld -h 2>&1`" in 4585 case "`ld -h 2>&1`" in
4584 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4586 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4585 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4587 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4586 *) echo "$ac_t""no" 1>&6 ;; 4588 *) echo "$ac_t""no" 1>&6 ;;
4587 esac 4589 esac
4588 fi 4590 fi
4589 4591
4590 4592
4591 echo "checking "for specified window system"" 1>&6 4593 echo "checking "for specified window system"" 1>&6
4592 echo "configure:4593: checking "for specified window system"" >&5 4594 echo "configure:4595: checking "for specified window system"" >&5
4593 4595
4594 if test "$with_x11" != "no"; then 4596 if test "$with_x11" != "no"; then
4595 test "$x_includes $x_libraries" != "NONE NONE" && \ 4597 test "$x_includes $x_libraries" != "NONE NONE" && \
4596 window_system=x11 with_x11=yes 4598 window_system=x11 with_x11=yes
4597 4599
4620 # If we find X, set shell vars x_includes and x_libraries to the 4622 # If we find X, set shell vars x_includes and x_libraries to the
4621 # paths, otherwise set no_x=yes. 4623 # paths, otherwise set no_x=yes.
4622 # Uses ac_ vars as temps to allow command line to override cache and checks. 4624 # Uses ac_ vars as temps to allow command line to override cache and checks.
4623 # --without-x overrides everything else, but does not touch the cache. 4625 # --without-x overrides everything else, but does not touch the cache.
4624 echo $ac_n "checking for X""... $ac_c" 1>&6 4626 echo $ac_n "checking for X""... $ac_c" 1>&6
4625 echo "configure:4626: checking for X" >&5 4627 echo "configure:4628: checking for X" >&5
4626 4628
4627 # Check whether --with-x or --without-x was given. 4629 # Check whether --with-x or --without-x was given.
4628 if test "${with_x+set}" = set; then 4630 if test "${with_x+set}" = set; then
4629 withval="$with_x" 4631 withval="$with_x"
4630 : 4632 :
4680 # Guess where to find include files, by looking for this one X11 .h file. 4682 # Guess where to find include files, by looking for this one X11 .h file.
4681 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4683 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4682 4684
4683 # First, try using that file with no special directory specified. 4685 # First, try using that file with no special directory specified.
4684 cat > conftest.$ac_ext <<EOF 4686 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure" 4687 #line 4688 "configure"
4686 #include "confdefs.h" 4688 #include "confdefs.h"
4687 #include <$x_direct_test_include> 4689 #include <$x_direct_test_include>
4688 EOF 4690 EOF
4689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4690 { (eval echo configure:4691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4692 { (eval echo configure:4693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4692 if test -z "$ac_err"; then 4694 if test -z "$ac_err"; then
4693 rm -rf conftest* 4695 rm -rf conftest*
4694 # We can compile using X headers with no special include directory. 4696 # We can compile using X headers with no special include directory.
4695 ac_x_includes= 4697 ac_x_includes=
4754 # See if we find them without any special options. 4756 # See if we find them without any special options.
4755 # Don't add to $LIBS permanently. 4757 # Don't add to $LIBS permanently.
4756 ac_save_LIBS="$LIBS" 4758 ac_save_LIBS="$LIBS"
4757 LIBS="-l$x_direct_test_library $LIBS" 4759 LIBS="-l$x_direct_test_library $LIBS"
4758 cat > conftest.$ac_ext <<EOF 4760 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure" 4761 #line 4762 "configure"
4760 #include "confdefs.h" 4762 #include "confdefs.h"
4761 4763
4762 int main() { 4764 int main() {
4763 ${x_direct_test_function}() 4765 ${x_direct_test_function}()
4764 ; return 0; } 4766 ; return 0; }
4765 EOF 4767 EOF
4766 if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4768 if { (eval echo configure:4769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4767 rm -rf conftest* 4769 rm -rf conftest*
4768 LIBS="$ac_save_LIBS" 4770 LIBS="$ac_save_LIBS"
4769 # We can link X programs with no special library path. 4771 # We can link X programs with no special library path.
4770 ac_x_libraries= 4772 ac_x_libraries=
4771 else 4773 else
4870 # For Solaris; some versions of Sun CC require a space after -R and 4872 # For Solaris; some versions of Sun CC require a space after -R and
4871 # others require no space. Words are not sufficient . . . . 4873 # others require no space. Words are not sufficient . . . .
4872 case "`(uname -sr) 2>/dev/null`" in 4874 case "`(uname -sr) 2>/dev/null`" in
4873 "SunOS 5"*) 4875 "SunOS 5"*)
4874 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4876 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4875 echo "configure:4876: checking whether -R must be followed by a space" >&5 4877 echo "configure:4878: checking whether -R must be followed by a space" >&5
4876 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4878 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4877 cat > conftest.$ac_ext <<EOF 4879 cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure" 4880 #line 4881 "configure"
4879 #include "confdefs.h" 4881 #include "confdefs.h"
4880 4882
4881 int main() { 4883 int main() {
4882 4884
4883 ; return 0; } 4885 ; return 0; }
4884 EOF 4886 EOF
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4887 if { (eval echo configure:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4886 rm -rf conftest* 4888 rm -rf conftest*
4887 ac_R_nospace=yes 4889 ac_R_nospace=yes
4888 else 4890 else
4889 echo "configure: failed program was:" >&5 4891 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5 4892 cat conftest.$ac_ext >&5
4896 echo "$ac_t""no" 1>&6 4898 echo "$ac_t""no" 1>&6
4897 X_LIBS="$X_LIBS -R$x_libraries" 4899 X_LIBS="$X_LIBS -R$x_libraries"
4898 else 4900 else
4899 LIBS="$ac_xsave_LIBS -R $x_libraries" 4901 LIBS="$ac_xsave_LIBS -R $x_libraries"
4900 cat > conftest.$ac_ext <<EOF 4902 cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure" 4903 #line 4904 "configure"
4902 #include "confdefs.h" 4904 #include "confdefs.h"
4903 4905
4904 int main() { 4906 int main() {
4905 4907
4906 ; return 0; } 4908 ; return 0; }
4907 EOF 4909 EOF
4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4910 if { (eval echo configure:4911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4909 rm -rf conftest* 4911 rm -rf conftest*
4910 ac_R_space=yes 4912 ac_R_space=yes
4911 else 4913 else
4912 echo "configure: failed program was:" >&5 4914 echo "configure: failed program was:" >&5
4913 cat conftest.$ac_ext >&5 4915 cat conftest.$ac_ext >&5
4939 if test "$with_dnet" = "no" ; then 4941 if test "$with_dnet" = "no" ; then
4940 ac_cv_lib_dnet_dnet_ntoa=no 4942 ac_cv_lib_dnet_dnet_ntoa=no
4941 else 4943 else
4942 4944
4943 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4945 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4944 echo "configure:4945: checking for dnet_ntoa in -ldnet" >&5 4946 echo "configure:4947: checking for dnet_ntoa in -ldnet" >&5
4945 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4947 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4946 4948
4947 xe_check_libs=" -ldnet " 4949 xe_check_libs=" -ldnet "
4948 cat > conftest.$ac_ext <<EOF 4950 cat > conftest.$ac_ext <<EOF
4949 #line 4950 "configure" 4951 #line 4952 "configure"
4950 #include "confdefs.h" 4952 #include "confdefs.h"
4951 /* Override any gcc2 internal prototype to avoid an error. */ 4953 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2 4954 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */ 4955 builtin and then its argument prototype would still apply. */
4954 char dnet_ntoa(); 4956 char dnet_ntoa();
4955 4957
4956 int main() { 4958 int main() {
4957 dnet_ntoa() 4959 dnet_ntoa()
4958 ; return 0; } 4960 ; return 0; }
4959 EOF 4961 EOF
4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4962 if { (eval echo configure:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961 rm -rf conftest* 4963 rm -rf conftest*
4962 eval "ac_cv_lib_$ac_lib_var=yes" 4964 eval "ac_cv_lib_$ac_lib_var=yes"
4963 else 4965 else
4964 echo "configure: failed program was:" >&5 4966 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5 4967 cat conftest.$ac_ext >&5
4979 fi 4981 fi
4980 4982
4981 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4983 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4982 4984
4983 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4985 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4984 echo "configure:4985: checking for dnet_ntoa in -ldnet_stub" >&5 4986 echo "configure:4987: checking for dnet_ntoa in -ldnet_stub" >&5
4985 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4987 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4986 4988
4987 xe_check_libs=" -ldnet_stub " 4989 xe_check_libs=" -ldnet_stub "
4988 cat > conftest.$ac_ext <<EOF 4990 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure" 4991 #line 4992 "configure"
4990 #include "confdefs.h" 4992 #include "confdefs.h"
4991 /* Override any gcc2 internal prototype to avoid an error. */ 4993 /* Override any gcc2 internal prototype to avoid an error. */
4992 /* We use char because int might match the return type of a gcc2 4994 /* We use char because int might match the return type of a gcc2
4993 builtin and then its argument prototype would still apply. */ 4995 builtin and then its argument prototype would still apply. */
4994 char dnet_ntoa(); 4996 char dnet_ntoa();
4995 4997
4996 int main() { 4998 int main() {
4997 dnet_ntoa() 4999 dnet_ntoa()
4998 ; return 0; } 5000 ; return 0; }
4999 EOF 5001 EOF
5000 if { (eval echo configure:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5002 if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5001 rm -rf conftest* 5003 rm -rf conftest*
5002 eval "ac_cv_lib_$ac_lib_var=yes" 5004 eval "ac_cv_lib_$ac_lib_var=yes"
5003 else 5005 else
5004 echo "configure: failed program was:" >&5 5006 echo "configure: failed program was:" >&5
5005 cat conftest.$ac_ext >&5 5007 cat conftest.$ac_ext >&5
5024 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5026 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5025 # needs -lnsl. 5027 # needs -lnsl.
5026 # The nsl library prevents programs from opening the X display 5028 # The nsl library prevents programs from opening the X display
5027 # on Irix 5.2, according to dickey@clark.net. 5029 # on Irix 5.2, according to dickey@clark.net.
5028 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5030 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5029 echo "configure:5030: checking for gethostbyname" >&5 5031 echo "configure:5032: checking for gethostbyname" >&5
5030 5032
5031 cat > conftest.$ac_ext <<EOF 5033 cat > conftest.$ac_ext <<EOF
5032 #line 5033 "configure" 5034 #line 5035 "configure"
5033 #include "confdefs.h" 5035 #include "confdefs.h"
5034 /* System header to define __stub macros and hopefully few prototypes, 5036 /* System header to define __stub macros and hopefully few prototypes,
5035 which can conflict with char gethostbyname(); below. */ 5037 which can conflict with char gethostbyname(); below. */
5036 #include <assert.h> 5038 #include <assert.h>
5037 /* Override any gcc2 internal prototype to avoid an error. */ 5039 /* Override any gcc2 internal prototype to avoid an error. */
5050 gethostbyname(); 5052 gethostbyname();
5051 #endif 5053 #endif
5052 5054
5053 ; return 0; } 5055 ; return 0; }
5054 EOF 5056 EOF
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5057 if { (eval echo configure:5058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5056 rm -rf conftest* 5058 rm -rf conftest*
5057 eval "ac_cv_func_gethostbyname=yes" 5059 eval "ac_cv_func_gethostbyname=yes"
5058 else 5060 else
5059 echo "configure: failed program was:" >&5 5061 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5 5062 cat conftest.$ac_ext >&5
5071 fi 5073 fi
5072 5074
5073 if test $ac_cv_func_gethostbyname = no; then 5075 if test $ac_cv_func_gethostbyname = no; then
5074 5076
5075 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5077 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5076 echo "configure:5077: checking for gethostbyname in -lnsl" >&5 5078 echo "configure:5079: checking for gethostbyname in -lnsl" >&5
5077 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5079 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5078 5080
5079 xe_check_libs=" -lnsl " 5081 xe_check_libs=" -lnsl "
5080 cat > conftest.$ac_ext <<EOF 5082 cat > conftest.$ac_ext <<EOF
5081 #line 5082 "configure" 5083 #line 5084 "configure"
5082 #include "confdefs.h" 5084 #include "confdefs.h"
5083 /* Override any gcc2 internal prototype to avoid an error. */ 5085 /* Override any gcc2 internal prototype to avoid an error. */
5084 /* We use char because int might match the return type of a gcc2 5086 /* We use char because int might match the return type of a gcc2
5085 builtin and then its argument prototype would still apply. */ 5087 builtin and then its argument prototype would still apply. */
5086 char gethostbyname(); 5088 char gethostbyname();
5087 5089
5088 int main() { 5090 int main() {
5089 gethostbyname() 5091 gethostbyname()
5090 ; return 0; } 5092 ; return 0; }
5091 EOF 5093 EOF
5092 if { (eval echo configure:5093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5094 if { (eval echo configure:5095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5093 rm -rf conftest* 5095 rm -rf conftest*
5094 eval "ac_cv_lib_$ac_lib_var=yes" 5096 eval "ac_cv_lib_$ac_lib_var=yes"
5095 else 5097 else
5096 echo "configure: failed program was:" >&5 5098 echo "configure: failed program was:" >&5
5097 cat conftest.$ac_ext >&5 5099 cat conftest.$ac_ext >&5
5117 # on later versions), says simon@lia.di.epfl.ch: it contains 5119 # on later versions), says simon@lia.di.epfl.ch: it contains
5118 # gethostby* variants that don't use the nameserver (or something). 5120 # gethostby* variants that don't use the nameserver (or something).
5119 # -lsocket must be given before -lnsl if both are needed. 5121 # -lsocket must be given before -lnsl if both are needed.
5120 # We assume that if connect needs -lnsl, so does gethostbyname. 5122 # We assume that if connect needs -lnsl, so does gethostbyname.
5121 echo $ac_n "checking for connect""... $ac_c" 1>&6 5123 echo $ac_n "checking for connect""... $ac_c" 1>&6
5122 echo "configure:5123: checking for connect" >&5 5124 echo "configure:5125: checking for connect" >&5
5123 5125
5124 cat > conftest.$ac_ext <<EOF 5126 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure" 5127 #line 5128 "configure"
5126 #include "confdefs.h" 5128 #include "confdefs.h"
5127 /* System header to define __stub macros and hopefully few prototypes, 5129 /* System header to define __stub macros and hopefully few prototypes,
5128 which can conflict with char connect(); below. */ 5130 which can conflict with char connect(); below. */
5129 #include <assert.h> 5131 #include <assert.h>
5130 /* Override any gcc2 internal prototype to avoid an error. */ 5132 /* Override any gcc2 internal prototype to avoid an error. */
5143 connect(); 5145 connect();
5144 #endif 5146 #endif
5145 5147
5146 ; return 0; } 5148 ; return 0; }
5147 EOF 5149 EOF
5148 if { (eval echo configure:5149: \"$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
5149 rm -rf conftest* 5151 rm -rf conftest*
5150 eval "ac_cv_func_connect=yes" 5152 eval "ac_cv_func_connect=yes"
5151 else 5153 else
5152 echo "configure: failed program was:" >&5 5154 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5 5155 cat conftest.$ac_ext >&5
5166 if test $ac_cv_func_connect = no; then 5168 if test $ac_cv_func_connect = no; then
5167 5169
5168 xe_msg_checking="for connect in -lsocket" 5170 xe_msg_checking="for connect in -lsocket"
5169 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5171 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5170 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5172 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5171 echo "configure:5172: checking "$xe_msg_checking"" >&5 5173 echo "configure:5174: checking "$xe_msg_checking"" >&5
5172 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 5174 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5173 5175
5174 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5176 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5175 cat > conftest.$ac_ext <<EOF 5177 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure" 5178 #line 5179 "configure"
5177 #include "confdefs.h" 5179 #include "confdefs.h"
5178 /* Override any gcc2 internal prototype to avoid an error. */ 5180 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2 5181 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */ 5182 builtin and then its argument prototype would still apply. */
5181 char connect(); 5183 char connect();
5182 5184
5183 int main() { 5185 int main() {
5184 connect() 5186 connect()
5185 ; return 0; } 5187 ; return 0; }
5186 EOF 5188 EOF
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5188 rm -rf conftest* 5190 rm -rf conftest*
5189 eval "ac_cv_lib_$ac_lib_var=yes" 5191 eval "ac_cv_lib_$ac_lib_var=yes"
5190 else 5192 else
5191 echo "configure: failed program was:" >&5 5193 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5 5194 cat conftest.$ac_ext >&5
5206 5208
5207 fi 5209 fi
5208 5210
5209 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 5211 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5210 echo $ac_n "checking for remove""... $ac_c" 1>&6 5212 echo $ac_n "checking for remove""... $ac_c" 1>&6
5211 echo "configure:5212: checking for remove" >&5 5213 echo "configure:5214: checking for remove" >&5
5212 5214
5213 cat > conftest.$ac_ext <<EOF 5215 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure" 5216 #line 5217 "configure"
5215 #include "confdefs.h" 5217 #include "confdefs.h"
5216 /* System header to define __stub macros and hopefully few prototypes, 5218 /* System header to define __stub macros and hopefully few prototypes,
5217 which can conflict with char remove(); below. */ 5219 which can conflict with char remove(); below. */
5218 #include <assert.h> 5220 #include <assert.h>
5219 /* Override any gcc2 internal prototype to avoid an error. */ 5221 /* Override any gcc2 internal prototype to avoid an error. */
5232 remove(); 5234 remove();
5233 #endif 5235 #endif
5234 5236
5235 ; return 0; } 5237 ; return 0; }
5236 EOF 5238 EOF
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5239 if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5238 rm -rf conftest* 5240 rm -rf conftest*
5239 eval "ac_cv_func_remove=yes" 5241 eval "ac_cv_func_remove=yes"
5240 else 5242 else
5241 echo "configure: failed program was:" >&5 5243 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5 5244 cat conftest.$ac_ext >&5
5253 fi 5255 fi
5254 5256
5255 if test $ac_cv_func_remove = no; then 5257 if test $ac_cv_func_remove = no; then
5256 5258
5257 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5259 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5258 echo "configure:5259: checking for remove in -lposix" >&5 5260 echo "configure:5261: checking for remove in -lposix" >&5
5259 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5261 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5260 5262
5261 xe_check_libs=" -lposix " 5263 xe_check_libs=" -lposix "
5262 cat > conftest.$ac_ext <<EOF 5264 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure" 5265 #line 5266 "configure"
5264 #include "confdefs.h" 5266 #include "confdefs.h"
5265 /* Override any gcc2 internal prototype to avoid an error. */ 5267 /* Override any gcc2 internal prototype to avoid an error. */
5266 /* We use char because int might match the return type of a gcc2 5268 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */ 5269 builtin and then its argument prototype would still apply. */
5268 char remove(); 5270 char remove();
5269 5271
5270 int main() { 5272 int main() {
5271 remove() 5273 remove()
5272 ; return 0; } 5274 ; return 0; }
5273 EOF 5275 EOF
5274 if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5276 if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5275 rm -rf conftest* 5277 rm -rf conftest*
5276 eval "ac_cv_lib_$ac_lib_var=yes" 5278 eval "ac_cv_lib_$ac_lib_var=yes"
5277 else 5279 else
5278 echo "configure: failed program was:" >&5 5280 echo "configure: failed program was:" >&5
5279 cat conftest.$ac_ext >&5 5281 cat conftest.$ac_ext >&5
5293 5295
5294 fi 5296 fi
5295 5297
5296 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5298 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5297 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5299 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5298 echo "configure:5299: checking for shmat" >&5 5300 echo "configure:5301: checking for shmat" >&5
5299 5301
5300 cat > conftest.$ac_ext <<EOF 5302 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure" 5303 #line 5304 "configure"
5302 #include "confdefs.h" 5304 #include "confdefs.h"
5303 /* System header to define __stub macros and hopefully few prototypes, 5305 /* System header to define __stub macros and hopefully few prototypes,
5304 which can conflict with char shmat(); below. */ 5306 which can conflict with char shmat(); below. */
5305 #include <assert.h> 5307 #include <assert.h>
5306 /* Override any gcc2 internal prototype to avoid an error. */ 5308 /* Override any gcc2 internal prototype to avoid an error. */
5319 shmat(); 5321 shmat();
5320 #endif 5322 #endif
5321 5323
5322 ; return 0; } 5324 ; return 0; }
5323 EOF 5325 EOF
5324 if { (eval echo configure:5325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5326 if { (eval echo configure:5327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5325 rm -rf conftest* 5327 rm -rf conftest*
5326 eval "ac_cv_func_shmat=yes" 5328 eval "ac_cv_func_shmat=yes"
5327 else 5329 else
5328 echo "configure: failed program was:" >&5 5330 echo "configure: failed program was:" >&5
5329 cat conftest.$ac_ext >&5 5331 cat conftest.$ac_ext >&5
5340 fi 5342 fi
5341 5343
5342 if test $ac_cv_func_shmat = no; then 5344 if test $ac_cv_func_shmat = no; then
5343 5345
5344 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5346 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5345 echo "configure:5346: checking for shmat in -lipc" >&5 5347 echo "configure:5348: checking for shmat in -lipc" >&5
5346 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5348 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5347 5349
5348 xe_check_libs=" -lipc " 5350 xe_check_libs=" -lipc "
5349 cat > conftest.$ac_ext <<EOF 5351 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure" 5352 #line 5353 "configure"
5351 #include "confdefs.h" 5353 #include "confdefs.h"
5352 /* Override any gcc2 internal prototype to avoid an error. */ 5354 /* Override any gcc2 internal prototype to avoid an error. */
5353 /* We use char because int might match the return type of a gcc2 5355 /* We use char because int might match the return type of a gcc2
5354 builtin and then its argument prototype would still apply. */ 5356 builtin and then its argument prototype would still apply. */
5355 char shmat(); 5357 char shmat();
5356 5358
5357 int main() { 5359 int main() {
5358 shmat() 5360 shmat()
5359 ; return 0; } 5361 ; return 0; }
5360 EOF 5362 EOF
5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5363 if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 rm -rf conftest* 5364 rm -rf conftest*
5363 eval "ac_cv_lib_$ac_lib_var=yes" 5365 eval "ac_cv_lib_$ac_lib_var=yes"
5364 else 5366 else
5365 echo "configure: failed program was:" >&5 5367 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5 5368 cat conftest.$ac_ext >&5
5392 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5394 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5393 5395
5394 xe_msg_checking="for IceConnectionNumber in -lICE" 5396 xe_msg_checking="for IceConnectionNumber in -lICE"
5395 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5397 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5396 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5398 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5397 echo "configure:5398: checking "$xe_msg_checking"" >&5 5399 echo "configure:5400: checking "$xe_msg_checking"" >&5
5398 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5400 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5399 5401
5400 xe_check_libs=" -lICE $X_EXTRA_LIBS" 5402 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5401 cat > conftest.$ac_ext <<EOF 5403 cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure" 5404 #line 5405 "configure"
5403 #include "confdefs.h" 5405 #include "confdefs.h"
5404 /* Override any gcc2 internal prototype to avoid an error. */ 5406 /* Override any gcc2 internal prototype to avoid an error. */
5405 /* We use char because int might match the return type of a gcc2 5407 /* We use char because int might match the return type of a gcc2
5406 builtin and then its argument prototype would still apply. */ 5408 builtin and then its argument prototype would still apply. */
5407 char IceConnectionNumber(); 5409 char IceConnectionNumber();
5408 5410
5409 int main() { 5411 int main() {
5410 IceConnectionNumber() 5412 IceConnectionNumber()
5411 ; return 0; } 5413 ; return 0; }
5412 EOF 5414 EOF
5413 if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5415 if { (eval echo configure:5416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5414 rm -rf conftest* 5416 rm -rf conftest*
5415 eval "ac_cv_lib_$ac_lib_var=yes" 5417 eval "ac_cv_lib_$ac_lib_var=yes"
5416 else 5418 else
5417 echo "configure: failed program was:" >&5 5419 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5 5420 cat conftest.$ac_ext >&5
5577 EOF 5579 EOF
5578 } 5580 }
5579 5581
5580 5582
5581 echo "checking for X defines extracted by xmkmf" 1>&6 5583 echo "checking for X defines extracted by xmkmf" 1>&6
5582 echo "configure:5583: checking for X defines extracted by xmkmf" >&5 5584 echo "configure:5585: checking for X defines extracted by xmkmf" >&5
5583 rm -fr conftestdir 5585 rm -fr conftestdir
5584 if mkdir conftestdir; then 5586 if mkdir conftestdir; then
5585 cd conftestdir 5587 cd conftestdir
5586 cat > Imakefile <<'EOF' 5588 cat > Imakefile <<'EOF'
5587 xetest: 5589 xetest:
5609 done 5611 done
5610 fi 5612 fi
5611 5613
5612 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5614 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5613 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5615 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5614 echo "configure:5615: checking for X11/Intrinsic.h" >&5 5616 echo "configure:5617: checking for X11/Intrinsic.h" >&5
5615 5617
5616 cat > conftest.$ac_ext <<EOF 5618 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure" 5619 #line 5620 "configure"
5618 #include "confdefs.h" 5620 #include "confdefs.h"
5619 #include <X11/Intrinsic.h> 5621 #include <X11/Intrinsic.h>
5620 EOF 5622 EOF
5621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5622 { (eval echo configure:5623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5624 { (eval echo configure:5625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5624 if test -z "$ac_err"; then 5626 if test -z "$ac_err"; then
5625 rm -rf conftest* 5627 rm -rf conftest*
5626 eval "ac_cv_header_$ac_safe=yes" 5628 eval "ac_cv_header_$ac_safe=yes"
5627 else 5629 else
5641 fi 5643 fi
5642 5644
5643 5645
5644 5646
5645 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5647 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5646 echo "configure:5647: checking for XOpenDisplay in -lX11" >&5 5648 echo "configure:5649: checking for XOpenDisplay in -lX11" >&5
5647 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5649 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5648 5650
5649 xe_check_libs=" -lX11 " 5651 xe_check_libs=" -lX11 "
5650 cat > conftest.$ac_ext <<EOF 5652 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure" 5653 #line 5654 "configure"
5652 #include "confdefs.h" 5654 #include "confdefs.h"
5653 /* Override any gcc2 internal prototype to avoid an error. */ 5655 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2 5656 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */ 5657 builtin and then its argument prototype would still apply. */
5656 char XOpenDisplay(); 5658 char XOpenDisplay();
5657 5659
5658 int main() { 5660 int main() {
5659 XOpenDisplay() 5661 XOpenDisplay()
5660 ; return 0; } 5662 ; return 0; }
5661 EOF 5663 EOF
5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5664 if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5663 rm -rf conftest* 5665 rm -rf conftest*
5664 eval "ac_cv_lib_$ac_lib_var=yes" 5666 eval "ac_cv_lib_$ac_lib_var=yes"
5665 else 5667 else
5666 echo "configure: failed program was:" >&5 5668 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5 5669 cat conftest.$ac_ext >&5
5682 if test "$have_lib_x11" != "yes"; then 5684 if test "$have_lib_x11" != "yes"; then
5683 5685
5684 xe_msg_checking="for XGetFontProperty in -lX11" 5686 xe_msg_checking="for XGetFontProperty in -lX11"
5685 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5687 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5686 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5688 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5687 echo "configure:5688: checking "$xe_msg_checking"" >&5 5689 echo "configure:5690: checking "$xe_msg_checking"" >&5
5688 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5690 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5689 5691
5690 xe_check_libs=" -lX11 -b i486-linuxaout" 5692 xe_check_libs=" -lX11 -b i486-linuxaout"
5691 cat > conftest.$ac_ext <<EOF 5693 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure" 5694 #line 5695 "configure"
5693 #include "confdefs.h" 5695 #include "confdefs.h"
5694 /* Override any gcc2 internal prototype to avoid an error. */ 5696 /* Override any gcc2 internal prototype to avoid an error. */
5695 /* We use char because int might match the return type of a gcc2 5697 /* We use char because int might match the return type of a gcc2
5696 builtin and then its argument prototype would still apply. */ 5698 builtin and then its argument prototype would still apply. */
5697 char XGetFontProperty(); 5699 char XGetFontProperty();
5698 5700
5699 int main() { 5701 int main() {
5700 XGetFontProperty() 5702 XGetFontProperty()
5701 ; return 0; } 5703 ; return 0; }
5702 EOF 5704 EOF
5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5705 if { (eval echo configure:5706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5704 rm -rf conftest* 5706 rm -rf conftest*
5705 eval "ac_cv_lib_$ac_lib_var=yes" 5707 eval "ac_cv_lib_$ac_lib_var=yes"
5706 else 5708 else
5707 echo "configure: failed program was:" >&5 5709 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5 5710 cat conftest.$ac_ext >&5
5725 libs_x="-lX11" 5727 libs_x="-lX11"
5726 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5728 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5727 5729
5728 5730
5729 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5731 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5730 echo "configure:5731: checking for XShapeSelectInput in -lXext" >&5 5732 echo "configure:5733: checking for XShapeSelectInput in -lXext" >&5
5731 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5733 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5732 5734
5733 xe_check_libs=" -lXext " 5735 xe_check_libs=" -lXext "
5734 cat > conftest.$ac_ext <<EOF 5736 cat > conftest.$ac_ext <<EOF
5735 #line 5736 "configure" 5737 #line 5738 "configure"
5736 #include "confdefs.h" 5738 #include "confdefs.h"
5737 /* Override any gcc2 internal prototype to avoid an error. */ 5739 /* Override any gcc2 internal prototype to avoid an error. */
5738 /* We use char because int might match the return type of a gcc2 5740 /* We use char because int might match the return type of a gcc2
5739 builtin and then its argument prototype would still apply. */ 5741 builtin and then its argument prototype would still apply. */
5740 char XShapeSelectInput(); 5742 char XShapeSelectInput();
5741 5743
5742 int main() { 5744 int main() {
5743 XShapeSelectInput() 5745 XShapeSelectInput()
5744 ; return 0; } 5746 ; return 0; }
5745 EOF 5747 EOF
5746 if { (eval echo configure:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5748 if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5747 rm -rf conftest* 5749 rm -rf conftest*
5748 eval "ac_cv_lib_$ac_lib_var=yes" 5750 eval "ac_cv_lib_$ac_lib_var=yes"
5749 else 5751 else
5750 echo "configure: failed program was:" >&5 5752 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5 5753 cat conftest.$ac_ext >&5
5764 5766
5765 5767
5766 5768
5767 5769
5768 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5770 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5769 echo "configure:5770: checking for XtOpenDisplay in -lXt" >&5 5771 echo "configure:5772: checking for XtOpenDisplay in -lXt" >&5
5770 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5772 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5771 5773
5772 xe_check_libs=" -lXt " 5774 xe_check_libs=" -lXt "
5773 cat > conftest.$ac_ext <<EOF 5775 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure" 5776 #line 5777 "configure"
5775 #include "confdefs.h" 5777 #include "confdefs.h"
5776 /* Override any gcc2 internal prototype to avoid an error. */ 5778 /* Override any gcc2 internal prototype to avoid an error. */
5777 /* We use char because int might match the return type of a gcc2 5779 /* We use char because int might match the return type of a gcc2
5778 builtin and then its argument prototype would still apply. */ 5780 builtin and then its argument prototype would still apply. */
5779 char XtOpenDisplay(); 5781 char XtOpenDisplay();
5780 5782
5781 int main() { 5783 int main() {
5782 XtOpenDisplay() 5784 XtOpenDisplay()
5783 ; return 0; } 5785 ; return 0; }
5784 EOF 5786 EOF
5785 if { (eval echo configure:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5787 if { (eval echo configure:5788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5786 rm -rf conftest* 5788 rm -rf conftest*
5787 eval "ac_cv_lib_$ac_lib_var=yes" 5789 eval "ac_cv_lib_$ac_lib_var=yes"
5788 else 5790 else
5789 echo "configure: failed program was:" >&5 5791 echo "configure: failed program was:" >&5
5790 cat conftest.$ac_ext >&5 5792 cat conftest.$ac_ext >&5
5803 fi 5805 fi
5804 5806
5805 5807
5806 5808
5807 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5809 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5808 echo "configure:5809: checking the version of X11 being used" >&5 5810 echo "configure:5811: checking the version of X11 being used" >&5
5809 cat > conftest.$ac_ext <<EOF 5811 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure" 5812 #line 5813 "configure"
5811 #include "confdefs.h" 5813 #include "confdefs.h"
5812 #include <X11/Intrinsic.h> 5814 #include <X11/Intrinsic.h>
5813 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5815 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5814 EOF 5816 EOF
5815 if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5817 if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5816 then 5818 then
5817 ./conftest foobar; x11_release=$? 5819 ./conftest foobar; x11_release=$?
5818 else 5820 else
5819 conftest_rc="$?" 5821 conftest_rc="$?"
5820 echo "configure: failed program was:" >&5 5822 echo "configure: failed program was:" >&5
5835 5837
5836 for ac_hdr in X11/Xlocale.h 5838 for ac_hdr in X11/Xlocale.h
5837 do 5839 do
5838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5840 echo "configure:5841: checking for $ac_hdr" >&5 5842 echo "configure:5843: checking for $ac_hdr" >&5
5841 5843
5842 cat > conftest.$ac_ext <<EOF 5844 cat > conftest.$ac_ext <<EOF
5843 #line 5844 "configure" 5845 #line 5846 "configure"
5844 #include "confdefs.h" 5846 #include "confdefs.h"
5845 #include <$ac_hdr> 5847 #include <$ac_hdr>
5846 EOF 5848 EOF
5847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5848 { (eval echo configure:5849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5850 { (eval echo configure:5851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5850 if test -z "$ac_err"; then 5852 if test -z "$ac_err"; then
5851 rm -rf conftest* 5853 rm -rf conftest*
5852 eval "ac_cv_header_$ac_safe=yes" 5854 eval "ac_cv_header_$ac_safe=yes"
5853 else 5855 else
5874 fi 5876 fi
5875 done 5877 done
5876 5878
5877 5879
5878 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5880 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5879 echo "configure:5880: checking for XFree86" >&5 5881 echo "configure:5882: checking for XFree86" >&5
5880 if test -d "/usr/X386/include" -o \ 5882 if test -d "/usr/X386/include" -o \
5881 -f "/etc/XF86Config" -o \ 5883 -f "/etc/XF86Config" -o \
5882 -f "/etc/X11/XF86Config" -o \ 5884 -f "/etc/X11/XF86Config" -o \
5883 -f "/usr/X11R6/lib/X11/XF86Config"; then 5885 -f "/usr/X11R6/lib/X11/XF86Config"; then
5884 echo "$ac_t""yes" 1>&6 5886 echo "$ac_t""yes" 1>&6
5894 echo "$ac_t""no" 1>&6 5896 echo "$ac_t""no" 1>&6
5895 fi 5897 fi
5896 5898
5897 test -z "$with_xmu" && { 5899 test -z "$with_xmu" && {
5898 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5900 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5899 echo "configure:5900: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5901 echo "configure:5902: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5900 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5902 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5901 5903
5902 xe_check_libs=" -lXmu " 5904 xe_check_libs=" -lXmu "
5903 cat > conftest.$ac_ext <<EOF 5905 cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure" 5906 #line 5907 "configure"
5905 #include "confdefs.h" 5907 #include "confdefs.h"
5906 /* Override any gcc2 internal prototype to avoid an error. */ 5908 /* Override any gcc2 internal prototype to avoid an error. */
5907 /* We use char because int might match the return type of a gcc2 5909 /* We use char because int might match the return type of a gcc2
5908 builtin and then its argument prototype would still apply. */ 5910 builtin and then its argument prototype would still apply. */
5909 char XmuReadBitmapDataFromFile(); 5911 char XmuReadBitmapDataFromFile();
5910 5912
5911 int main() { 5913 int main() {
5912 XmuReadBitmapDataFromFile() 5914 XmuReadBitmapDataFromFile()
5913 ; return 0; } 5915 ; return 0; }
5914 EOF 5916 EOF
5915 if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5917 if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5916 rm -rf conftest* 5918 rm -rf conftest*
5917 eval "ac_cv_lib_$ac_lib_var=yes" 5919 eval "ac_cv_lib_$ac_lib_var=yes"
5918 else 5920 else
5919 echo "configure: failed program was:" >&5 5921 echo "configure: failed program was:" >&5
5920 cat conftest.$ac_ext >&5 5922 cat conftest.$ac_ext >&5
5949 5951
5950 fi 5952 fi
5951 5953
5952 5954
5953 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5955 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5954 echo "configure:5955: checking for main in -lXbsd" >&5 5956 echo "configure:5957: checking for main in -lXbsd" >&5
5955 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5957 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5956 5958
5957 xe_check_libs=" -lXbsd " 5959 xe_check_libs=" -lXbsd "
5958 cat > conftest.$ac_ext <<EOF 5960 cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure" 5961 #line 5962 "configure"
5960 #include "confdefs.h" 5962 #include "confdefs.h"
5961 5963
5962 int main() { 5964 int main() {
5963 main() 5965 main()
5964 ; return 0; } 5966 ; return 0; }
5965 EOF 5967 EOF
5966 if { (eval echo configure:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5968 if { (eval echo configure:5969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5967 rm -rf conftest* 5969 rm -rf conftest*
5968 eval "ac_cv_lib_$ac_lib_var=yes" 5970 eval "ac_cv_lib_$ac_lib_var=yes"
5969 else 5971 else
5970 echo "configure: failed program was:" >&5 5972 echo "configure: failed program was:" >&5
5971 cat conftest.$ac_ext >&5 5973 cat conftest.$ac_ext >&5
5998 fi 6000 fi
5999 6001
6000 fi 6002 fi
6001 if test "$with_msw" != "no"; then 6003 if test "$with_msw" != "no"; then
6002 echo "checking for MS-Windows" 1>&6 6004 echo "checking for MS-Windows" 1>&6
6003 echo "configure:6004: checking for MS-Windows" >&5 6005 echo "configure:6006: checking for MS-Windows" >&5
6004 6006
6005 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 6007 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6006 echo "configure:6007: checking for main in -lgdi32" >&5 6008 echo "configure:6009: checking for main in -lgdi32" >&5
6007 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 6009 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6008 6010
6009 xe_check_libs=" -lgdi32 " 6011 xe_check_libs=" -lgdi32 "
6010 cat > conftest.$ac_ext <<EOF 6012 cat > conftest.$ac_ext <<EOF
6011 #line 6012 "configure" 6013 #line 6014 "configure"
6012 #include "confdefs.h" 6014 #include "confdefs.h"
6013 6015
6014 int main() { 6016 int main() {
6015 main() 6017 main()
6016 ; return 0; } 6018 ; return 0; }
6017 EOF 6019 EOF
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6020 if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6019 rm -rf conftest* 6021 rm -rf conftest*
6020 eval "ac_cv_lib_$ac_lib_var=yes" 6022 eval "ac_cv_lib_$ac_lib_var=yes"
6021 else 6023 else
6022 echo "configure: failed program was:" >&5 6024 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5 6025 cat conftest.$ac_ext >&5
6079 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 6081 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6080 echo " xemacs will be linked with \"dialog-msw.o\"" 6082 echo " xemacs will be linked with \"dialog-msw.o\""
6081 fi 6083 fi
6082 fi 6084 fi
6083 cat > conftest.$ac_ext <<EOF 6085 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure" 6086 #line 6087 "configure"
6085 #include "confdefs.h" 6087 #include "confdefs.h"
6086 #include <fcntl.h> 6088 #include <fcntl.h>
6087 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 6089 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6088 EOF 6090 EOF
6089 if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6091 if { (eval echo configure:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6090 then 6092 then
6091 { test "$extra_verbose" = "yes" && cat << \EOF 6093 { test "$extra_verbose" = "yes" && cat << \EOF
6092 Defining HAVE_MSG_SELECT 6094 Defining HAVE_MSG_SELECT
6093 EOF 6095 EOF
6094 cat >> confdefs.h <<\EOF 6096 cat >> confdefs.h <<\EOF
6164 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 6166 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6165 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 6167 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6166 esac 6168 esac
6167 6169
6168 echo "checking for session-management option" 1>&6 6170 echo "checking for session-management option" 1>&6
6169 echo "configure:6170: checking for session-management option" >&5; 6171 echo "configure:6172: checking for session-management option" >&5;
6170 if test "$with_session" != "no"; then 6172 if test "$with_session" != "no"; then
6171 { test "$extra_verbose" = "yes" && cat << \EOF 6173 { test "$extra_verbose" = "yes" && cat << \EOF
6172 Defining HAVE_SESSION 6174 Defining HAVE_SESSION
6173 EOF 6175 EOF
6174 cat >> confdefs.h <<\EOF 6176 cat >> confdefs.h <<\EOF
6179 fi 6181 fi
6180 6182
6181 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 6183 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_%'` 6184 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 6185 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6184 echo "configure:6185: checking for X11/Xauth.h" >&5 6186 echo "configure:6187: checking for X11/Xauth.h" >&5
6185 6187
6186 cat > conftest.$ac_ext <<EOF 6188 cat > conftest.$ac_ext <<EOF
6187 #line 6188 "configure" 6189 #line 6190 "configure"
6188 #include "confdefs.h" 6190 #include "confdefs.h"
6189 #include <X11/Xauth.h> 6191 #include <X11/Xauth.h>
6190 EOF 6192 EOF
6191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6193 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; } 6194 { (eval echo configure:6195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6194 if test -z "$ac_err"; then 6196 if test -z "$ac_err"; then
6195 rm -rf conftest* 6197 rm -rf conftest*
6196 eval "ac_cv_header_$ac_safe=yes" 6198 eval "ac_cv_header_$ac_safe=yes"
6197 else 6199 else
6210 with_xauth=no 6212 with_xauth=no
6211 fi 6213 fi
6212 } 6214 }
6213 test -z "$with_xauth" && { 6215 test -z "$with_xauth" && {
6214 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 6216 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6215 echo "configure:6216: checking for XauGetAuthByAddr in -lXau" >&5 6217 echo "configure:6218: checking for XauGetAuthByAddr in -lXau" >&5
6216 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6218 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6217 6219
6218 xe_check_libs=" -lXau " 6220 xe_check_libs=" -lXau "
6219 cat > conftest.$ac_ext <<EOF 6221 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure" 6222 #line 6223 "configure"
6221 #include "confdefs.h" 6223 #include "confdefs.h"
6222 /* Override any gcc2 internal prototype to avoid an error. */ 6224 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2 6225 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */ 6226 builtin and then its argument prototype would still apply. */
6225 char XauGetAuthByAddr(); 6227 char XauGetAuthByAddr();
6226 6228
6227 int main() { 6229 int main() {
6228 XauGetAuthByAddr() 6230 XauGetAuthByAddr()
6229 ; return 0; } 6231 ; return 0; }
6230 EOF 6232 EOF
6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6233 if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6232 rm -rf conftest* 6234 rm -rf conftest*
6233 eval "ac_cv_lib_$ac_lib_var=yes" 6235 eval "ac_cv_lib_$ac_lib_var=yes"
6234 else 6236 else
6235 echo "configure: failed program was:" >&5 6237 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5 6238 cat conftest.$ac_ext >&5
6271 6273
6272 if test "$with_tooltalk" != "no" ; then 6274 if test "$with_tooltalk" != "no" ; then
6273 for dir in "" "Tt/" "desktop/" ; do 6275 for dir in "" "Tt/" "desktop/" ; do
6274 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6276 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6275 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6277 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6276 echo "configure:6277: checking for ${dir}tt_c.h" >&5 6278 echo "configure:6279: checking for ${dir}tt_c.h" >&5
6277 6279
6278 cat > conftest.$ac_ext <<EOF 6280 cat > conftest.$ac_ext <<EOF
6279 #line 6280 "configure" 6281 #line 6282 "configure"
6280 #include "confdefs.h" 6282 #include "confdefs.h"
6281 #include <${dir}tt_c.h> 6283 #include <${dir}tt_c.h>
6282 EOF 6284 EOF
6283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6285 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; } 6286 { (eval echo configure:6287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6286 if test -z "$ac_err"; then 6288 if test -z "$ac_err"; then
6287 rm -rf conftest* 6289 rm -rf conftest*
6288 eval "ac_cv_header_$ac_safe=yes" 6290 eval "ac_cv_header_$ac_safe=yes"
6289 else 6291 else
6315 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6317 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6316 6318
6317 xe_msg_checking="for tt_message_create in -ltt" 6319 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" 6320 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 6321 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6320 echo "configure:6321: checking "$xe_msg_checking"" >&5 6322 echo "configure:6323: checking "$xe_msg_checking"" >&5
6321 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6323 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6322 6324
6323 xe_check_libs=" -ltt $extra_libs" 6325 xe_check_libs=" -ltt $extra_libs"
6324 cat > conftest.$ac_ext <<EOF 6326 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure" 6327 #line 6328 "configure"
6326 #include "confdefs.h" 6328 #include "confdefs.h"
6327 /* Override any gcc2 internal prototype to avoid an error. */ 6329 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2 6330 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */ 6331 builtin and then its argument prototype would still apply. */
6330 char tt_message_create(); 6332 char tt_message_create();
6331 6333
6332 int main() { 6334 int main() {
6333 tt_message_create() 6335 tt_message_create()
6334 ; return 0; } 6336 ; return 0; }
6335 EOF 6337 EOF
6336 if { (eval echo configure:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6338 if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6337 rm -rf conftest* 6339 rm -rf conftest*
6338 eval "ac_cv_lib_$ac_lib_var=yes" 6340 eval "ac_cv_lib_$ac_lib_var=yes"
6339 else 6341 else
6340 echo "configure: failed program was:" >&5 6342 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5 6343 cat conftest.$ac_ext >&5
6388 fi 6390 fi
6389 fi 6391 fi
6390 6392
6391 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6393 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 6394 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6393 echo "configure:6394: checking for Dt/Dt.h" >&5 6395 echo "configure:6396: checking for Dt/Dt.h" >&5
6394 6396
6395 cat > conftest.$ac_ext <<EOF 6397 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure" 6398 #line 6399 "configure"
6397 #include "confdefs.h" 6399 #include "confdefs.h"
6398 #include <Dt/Dt.h> 6400 #include <Dt/Dt.h>
6399 EOF 6401 EOF
6400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6402 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; } 6403 { (eval echo configure:6404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6403 if test -z "$ac_err"; then 6405 if test -z "$ac_err"; then
6404 rm -rf conftest* 6406 rm -rf conftest*
6405 eval "ac_cv_header_$ac_safe=yes" 6407 eval "ac_cv_header_$ac_safe=yes"
6406 else 6408 else
6419 with_cde=no 6421 with_cde=no
6420 fi 6422 fi
6421 } 6423 }
6422 test -z "$with_cde" && { 6424 test -z "$with_cde" && {
6423 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6425 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6424 echo "configure:6425: checking for DtDndDragStart in -lDtSvc" >&5 6426 echo "configure:6427: checking for DtDndDragStart in -lDtSvc" >&5
6425 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6427 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6426 6428
6427 xe_check_libs=" -lDtSvc " 6429 xe_check_libs=" -lDtSvc "
6428 cat > conftest.$ac_ext <<EOF 6430 cat > conftest.$ac_ext <<EOF
6429 #line 6430 "configure" 6431 #line 6432 "configure"
6430 #include "confdefs.h" 6432 #include "confdefs.h"
6431 /* Override any gcc2 internal prototype to avoid an error. */ 6433 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2 6434 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */ 6435 builtin and then its argument prototype would still apply. */
6434 char DtDndDragStart(); 6436 char DtDndDragStart();
6435 6437
6436 int main() { 6438 int main() {
6437 DtDndDragStart() 6439 DtDndDragStart()
6438 ; return 0; } 6440 ; return 0; }
6439 EOF 6441 EOF
6440 if { (eval echo configure:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6442 if { (eval echo configure:6443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6441 rm -rf conftest* 6443 rm -rf conftest*
6442 eval "ac_cv_lib_$ac_lib_var=yes" 6444 eval "ac_cv_lib_$ac_lib_var=yes"
6443 else 6445 else
6444 echo "configure: failed program was:" >&5 6446 echo "configure: failed program was:" >&5
6445 cat conftest.$ac_ext >&5 6447 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 6506 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 6507 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6506 fi 6508 fi
6507 6509
6508 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6510 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 6511 echo "configure:6512: checking if drag and drop API is needed" >&5
6510 if test "$with_dragndrop" != "no" ; then 6512 if test "$with_dragndrop" != "no" ; then
6511 if test -n "$dragndrop_proto" ; then 6513 if test -n "$dragndrop_proto" ; then
6512 with_dragndrop=yes 6514 with_dragndrop=yes
6513 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6515 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6514 { test "$extra_verbose" = "yes" && cat << \EOF 6516 { test "$extra_verbose" = "yes" && cat << \EOF
6525 echo "$ac_t""no" 1>&6 6527 echo "$ac_t""no" 1>&6
6526 fi 6528 fi
6527 fi 6529 fi
6528 6530
6529 echo "checking for LDAP" 1>&6 6531 echo "checking for LDAP" 1>&6
6530 echo "configure:6531: checking for LDAP" >&5 6532 echo "configure:6533: checking for LDAP" >&5
6531 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6533 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6532 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6534 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6533 echo "configure:6534: checking for ldap.h" >&5 6535 echo "configure:6536: checking for ldap.h" >&5
6534 6536
6535 cat > conftest.$ac_ext <<EOF 6537 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure" 6538 #line 6539 "configure"
6537 #include "confdefs.h" 6539 #include "confdefs.h"
6538 #include <ldap.h> 6540 #include <ldap.h>
6539 EOF 6541 EOF
6540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6542 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; } 6543 { (eval echo configure:6544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6543 if test -z "$ac_err"; then 6545 if test -z "$ac_err"; then
6544 rm -rf conftest* 6546 rm -rf conftest*
6545 eval "ac_cv_header_$ac_safe=yes" 6547 eval "ac_cv_header_$ac_safe=yes"
6546 else 6548 else
6559 with_ldap=no 6561 with_ldap=no
6560 fi 6562 fi
6561 } 6563 }
6562 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6564 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6563 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6565 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6564 echo "configure:6565: checking for lber.h" >&5 6566 echo "configure:6567: checking for lber.h" >&5
6565 6567
6566 cat > conftest.$ac_ext <<EOF 6568 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure" 6569 #line 6570 "configure"
6568 #include "confdefs.h" 6570 #include "confdefs.h"
6569 #include <lber.h> 6571 #include <lber.h>
6570 EOF 6572 EOF
6571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6573 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; } 6574 { (eval echo configure:6575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6574 if test -z "$ac_err"; then 6576 if test -z "$ac_err"; then
6575 rm -rf conftest* 6577 rm -rf conftest*
6576 eval "ac_cv_header_$ac_safe=yes" 6578 eval "ac_cv_header_$ac_safe=yes"
6577 else 6579 else
6593 if test "$with_ldap" != "no"; then 6595 if test "$with_ldap" != "no"; then
6594 test -z "$with_umich_ldap" && { 6596 test -z "$with_umich_ldap" && {
6595 xe_msg_checking="for ldap_open in -lldap" 6597 xe_msg_checking="for ldap_open in -lldap"
6596 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6598 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6597 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6599 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6598 echo "configure:6599: checking "$xe_msg_checking"" >&5 6600 echo "configure:6601: checking "$xe_msg_checking"" >&5
6599 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6601 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6600 6602
6601 xe_check_libs=" -lldap -llber" 6603 xe_check_libs=" -lldap -llber"
6602 cat > conftest.$ac_ext <<EOF 6604 cat > conftest.$ac_ext <<EOF
6603 #line 6604 "configure" 6605 #line 6606 "configure"
6604 #include "confdefs.h" 6606 #include "confdefs.h"
6605 /* Override any gcc2 internal prototype to avoid an error. */ 6607 /* Override any gcc2 internal prototype to avoid an error. */
6606 /* We use char because int might match the return type of a gcc2 6608 /* We use char because int might match the return type of a gcc2
6607 builtin and then its argument prototype would still apply. */ 6609 builtin and then its argument prototype would still apply. */
6608 char ldap_open(); 6610 char ldap_open();
6609 6611
6610 int main() { 6612 int main() {
6611 ldap_open() 6613 ldap_open()
6612 ; return 0; } 6614 ; return 0; }
6613 EOF 6615 EOF
6614 if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6615 rm -rf conftest* 6617 rm -rf conftest*
6616 eval "ac_cv_lib_$ac_lib_var=yes" 6618 eval "ac_cv_lib_$ac_lib_var=yes"
6617 else 6619 else
6618 echo "configure: failed program was:" >&5 6620 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5 6621 cat conftest.$ac_ext >&5
6632 fi 6634 fi
6633 6635
6634 } 6636 }
6635 test "$with_umich_ldap" = "no" && { 6637 test "$with_umich_ldap" = "no" && {
6636 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6 6638 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6637 echo "configure:6638: checking for ldap_set_option in -lldap10" >&5 6639 echo "configure:6640: checking for ldap_set_option in -lldap10" >&5
6638 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'` 6640 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6639 6641
6640 xe_check_libs=" -lldap10 " 6642 xe_check_libs=" -lldap10 "
6641 cat > conftest.$ac_ext <<EOF 6643 cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure" 6644 #line 6645 "configure"
6643 #include "confdefs.h" 6645 #include "confdefs.h"
6644 /* Override any gcc2 internal prototype to avoid an error. */ 6646 /* Override any gcc2 internal prototype to avoid an error. */
6645 /* We use char because int might match the return type of a gcc2 6647 /* We use char because int might match the return type of a gcc2
6646 builtin and then its argument prototype would still apply. */ 6648 builtin and then its argument prototype would still apply. */
6647 char ldap_set_option(); 6649 char ldap_set_option();
6648 6650
6649 int main() { 6651 int main() {
6650 ldap_set_option() 6652 ldap_set_option()
6651 ; return 0; } 6653 ; return 0; }
6652 EOF 6654 EOF
6653 if { (eval echo configure:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6655 if { (eval echo configure:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6654 rm -rf conftest* 6656 rm -rf conftest*
6655 eval "ac_cv_lib_$ac_lib_var=yes" 6657 eval "ac_cv_lib_$ac_lib_var=yes"
6656 else 6658 else
6657 echo "configure: failed program was:" >&5 6659 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5 6660 cat conftest.$ac_ext >&5
6712 fi 6714 fi
6713 6715
6714 6716
6715 if test "$window_system" != "none"; then 6717 if test "$window_system" != "none"; then
6716 echo "checking for graphics libraries" 1>&6 6718 echo "checking for graphics libraries" 1>&6
6717 echo "configure:6718: checking for graphics libraries" >&5 6719 echo "configure:6720: checking for graphics libraries" >&5
6718 6720
6719 6721
6720 echo $ac_n "checking for __T_9__nothrow in -lCsup""... $ac_c" 1>&6 6722 echo $ac_n "checking for __T_9__nothrow in -lCsup""... $ac_c" 1>&6
6721 echo "configure:6722: checking for __T_9__nothrow in -lCsup" >&5 6723 echo "configure:6724: checking for __T_9__nothrow in -lCsup" >&5
6722 ac_lib_var=`echo Csup'_'__T_9__nothrow | sed 'y%./+-%__p_%'` 6724 ac_lib_var=`echo Csup'_'__T_9__nothrow | sed 'y%./+-%__p_%'`
6723 6725
6724 xe_check_libs=" -lCsup " 6726 xe_check_libs=" -lCsup "
6725 cat > conftest.$ac_ext <<EOF 6727 cat > conftest.$ac_ext <<EOF
6726 #line 6727 "configure" 6728 #line 6729 "configure"
6727 #include "confdefs.h" 6729 #include "confdefs.h"
6728 /* Override any gcc2 internal prototype to avoid an error. */ 6730 /* Override any gcc2 internal prototype to avoid an error. */
6729 /* We use char because int might match the return type of a gcc2 6731 /* We use char because int might match the return type of a gcc2
6730 builtin and then its argument prototype would still apply. */ 6732 builtin and then its argument prototype would still apply. */
6731 char __T_9__nothrow(); 6733 char __T_9__nothrow();
6732 6734
6733 int main() { 6735 int main() {
6734 __T_9__nothrow() 6736 __T_9__nothrow()
6735 ; return 0; } 6737 ; return 0; }
6736 EOF 6738 EOF
6737 if { (eval echo configure:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6739 if { (eval echo configure:6740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6738 rm -rf conftest* 6740 rm -rf conftest*
6739 eval "ac_cv_lib_$ac_lib_var=yes" 6741 eval "ac_cv_lib_$ac_lib_var=yes"
6740 else 6742 else
6741 echo "configure: failed program was:" >&5 6743 echo "configure: failed program was:" >&5
6742 cat conftest.$ac_ext >&5 6744 cat conftest.$ac_ext >&5
6756 6758
6757 6759
6758 xpm_problem="" 6760 xpm_problem=""
6759 if test -z "$with_xpm"; then 6761 if test -z "$with_xpm"; then
6760 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6762 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6761 echo "configure:6762: checking for Xpm - no older than 3.4f" >&5 6763 echo "configure:6764: checking for Xpm - no older than 3.4f" >&5
6762 xe_check_libs=-lXpm 6764 xe_check_libs=-lXpm
6763 cat > conftest.$ac_ext <<EOF 6765 cat > conftest.$ac_ext <<EOF
6764 #line 6765 "configure" 6766 #line 6767 "configure"
6765 #include "confdefs.h" 6767 #include "confdefs.h"
6766 #include <X11/xpm.h> 6768 #include <X11/xpm.h>
6767 int main(int c, char **v) { 6769 int main(int c, char **v) {
6768 return c == 1 ? 0 : 6770 return c == 1 ? 0 :
6769 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6771 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6770 XpmIncludeVersion < 30406 ? 2 : 0 ;} 6772 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6771 EOF 6773 EOF
6772 if { (eval echo configure:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6774 if { (eval echo configure:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6773 then 6775 then
6774 ./conftest dummy_arg; xpm_status=$?; 6776 ./conftest dummy_arg; xpm_status=$?;
6775 if test "$xpm_status" = "0"; then 6777 if test "$xpm_status" = "0"; then
6776 with_xpm=yes; 6778 with_xpm=yes;
6777 else 6779 else
6809 EOF 6811 EOF
6810 } 6812 }
6811 6813
6812 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6814 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6813 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 6815 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6814 echo "configure:6815: checking for \"FOR_MSW\" xpm" >&5 6816 echo "configure:6817: checking for \"FOR_MSW\" xpm" >&5
6815 xe_check_libs=-lXpm 6817 xe_check_libs=-lXpm
6816 cat > conftest.$ac_ext <<EOF 6818 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure" 6819 #line 6820 "configure"
6818 #include "confdefs.h" 6820 #include "confdefs.h"
6819 6821
6820 int main() { 6822 int main() {
6821 XpmCreatePixmapFromData() 6823 XpmCreatePixmapFromData()
6822 ; return 0; } 6824 ; return 0; }
6823 EOF 6825 EOF
6824 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6826 if { (eval echo configure:6827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6825 rm -rf conftest* 6827 rm -rf conftest*
6826 xpm_for_msw=no 6828 xpm_for_msw=no
6827 else 6829 else
6828 echo "configure: failed program was:" >&5 6830 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5 6831 cat conftest.$ac_ext >&5
6861 fi 6863 fi
6862 6864
6863 if test "$with_png $with_tiff" != "no no"; then 6865 if test "$with_png $with_tiff" != "no no"; then
6864 6866
6865 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 6867 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6866 echo "configure:6867: checking for inflate in -lc" >&5 6868 echo "configure:6869: checking for inflate in -lc" >&5
6867 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 6869 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6868 6870
6869 xe_check_libs=" -lc " 6871 xe_check_libs=" -lc "
6870 cat > conftest.$ac_ext <<EOF 6872 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure" 6873 #line 6874 "configure"
6872 #include "confdefs.h" 6874 #include "confdefs.h"
6873 /* Override any gcc2 internal prototype to avoid an error. */ 6875 /* Override any gcc2 internal prototype to avoid an error. */
6874 /* We use char because int might match the return type of a gcc2 6876 /* We use char because int might match the return type of a gcc2
6875 builtin and then its argument prototype would still apply. */ 6877 builtin and then its argument prototype would still apply. */
6876 char inflate(); 6878 char inflate();
6877 6879
6878 int main() { 6880 int main() {
6879 inflate() 6881 inflate()
6880 ; return 0; } 6882 ; return 0; }
6881 EOF 6883 EOF
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6884 if { (eval echo configure:6885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6883 rm -rf conftest* 6885 rm -rf conftest*
6884 eval "ac_cv_lib_$ac_lib_var=yes" 6886 eval "ac_cv_lib_$ac_lib_var=yes"
6885 else 6887 else
6886 echo "configure: failed program was:" >&5 6888 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5 6889 cat conftest.$ac_ext >&5
6896 : 6898 :
6897 else 6899 else
6898 echo "$ac_t""no" 1>&6 6900 echo "$ac_t""no" 1>&6
6899 6901
6900 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 6902 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6901 echo "configure:6902: checking for inflate in -lz" >&5 6903 echo "configure:6904: checking for inflate in -lz" >&5
6902 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 6904 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6903 6905
6904 xe_check_libs=" -lz " 6906 xe_check_libs=" -lz "
6905 cat > conftest.$ac_ext <<EOF 6907 cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure" 6908 #line 6909 "configure"
6907 #include "confdefs.h" 6909 #include "confdefs.h"
6908 /* Override any gcc2 internal prototype to avoid an error. */ 6910 /* Override any gcc2 internal prototype to avoid an error. */
6909 /* We use char because int might match the return type of a gcc2 6911 /* We use char because int might match the return type of a gcc2
6910 builtin and then its argument prototype would still apply. */ 6912 builtin and then its argument prototype would still apply. */
6911 char inflate(); 6913 char inflate();
6912 6914
6913 int main() { 6915 int main() {
6914 inflate() 6916 inflate()
6915 ; return 0; } 6917 ; return 0; }
6916 EOF 6918 EOF
6917 if { (eval echo configure:6918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6919 if { (eval echo configure:6920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6918 rm -rf conftest* 6920 rm -rf conftest*
6919 eval "ac_cv_lib_$ac_lib_var=yes" 6921 eval "ac_cv_lib_$ac_lib_var=yes"
6920 else 6922 else
6921 echo "configure: failed program was:" >&5 6923 echo "configure: failed program was:" >&5
6922 cat conftest.$ac_ext >&5 6924 cat conftest.$ac_ext >&5
6931 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 6933 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6932 else 6934 else
6933 echo "$ac_t""no" 1>&6 6935 echo "$ac_t""no" 1>&6
6934 6936
6935 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 6937 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6936 echo "configure:6937: checking for inflate in -lgz" >&5 6938 echo "configure:6939: checking for inflate in -lgz" >&5
6937 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 6939 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6938 6940
6939 xe_check_libs=" -lgz " 6941 xe_check_libs=" -lgz "
6940 cat > conftest.$ac_ext <<EOF 6942 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure" 6943 #line 6944 "configure"
6942 #include "confdefs.h" 6944 #include "confdefs.h"
6943 /* Override any gcc2 internal prototype to avoid an error. */ 6945 /* Override any gcc2 internal prototype to avoid an error. */
6944 /* We use char because int might match the return type of a gcc2 6946 /* We use char because int might match the return type of a gcc2
6945 builtin and then its argument prototype would still apply. */ 6947 builtin and then its argument prototype would still apply. */
6946 char inflate(); 6948 char inflate();
6947 6949
6948 int main() { 6950 int main() {
6949 inflate() 6951 inflate()
6950 ; return 0; } 6952 ; return 0; }
6951 EOF 6953 EOF
6952 if { (eval echo configure:6953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6954 if { (eval echo configure:6955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6953 rm -rf conftest* 6955 rm -rf conftest*
6954 eval "ac_cv_lib_$ac_lib_var=yes" 6956 eval "ac_cv_lib_$ac_lib_var=yes"
6955 else 6957 else
6956 echo "configure: failed program was:" >&5 6958 echo "configure: failed program was:" >&5
6957 cat conftest.$ac_ext >&5 6959 cat conftest.$ac_ext >&5
6977 6979
6978 fi 6980 fi
6979 6981
6980 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6982 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6981 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6983 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6982 echo "configure:6983: checking for jpeglib.h" >&5 6984 echo "configure:6985: checking for jpeglib.h" >&5
6983 6985
6984 cat > conftest.$ac_ext <<EOF 6986 cat > conftest.$ac_ext <<EOF
6985 #line 6986 "configure" 6987 #line 6988 "configure"
6986 #include "confdefs.h" 6988 #include "confdefs.h"
6987 #include <jpeglib.h> 6989 #include <jpeglib.h>
6988 EOF 6990 EOF
6989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6990 { (eval echo configure:6991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6992 { (eval echo configure:6993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6992 if test -z "$ac_err"; then 6994 if test -z "$ac_err"; then
6993 rm -rf conftest* 6995 rm -rf conftest*
6994 eval "ac_cv_header_$ac_safe=yes" 6996 eval "ac_cv_header_$ac_safe=yes"
6995 else 6997 else
7008 with_jpeg=no 7010 with_jpeg=no
7009 fi 7011 fi
7010 } 7012 }
7011 test -z "$with_jpeg" && { 7013 test -z "$with_jpeg" && {
7012 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 7014 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7013 echo "configure:7014: checking for jpeg_destroy_decompress in -ljpeg" >&5 7015 echo "configure:7016: checking for jpeg_destroy_decompress in -ljpeg" >&5
7014 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 7016 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7015 7017
7016 xe_check_libs=" -ljpeg " 7018 xe_check_libs=" -ljpeg "
7017 cat > conftest.$ac_ext <<EOF 7019 cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure" 7020 #line 7021 "configure"
7019 #include "confdefs.h" 7021 #include "confdefs.h"
7020 /* Override any gcc2 internal prototype to avoid an error. */ 7022 /* Override any gcc2 internal prototype to avoid an error. */
7021 /* We use char because int might match the return type of a gcc2 7023 /* We use char because int might match the return type of a gcc2
7022 builtin and then its argument prototype would still apply. */ 7024 builtin and then its argument prototype would still apply. */
7023 char jpeg_destroy_decompress(); 7025 char jpeg_destroy_decompress();
7024 7026
7025 int main() { 7027 int main() {
7026 jpeg_destroy_decompress() 7028 jpeg_destroy_decompress()
7027 ; return 0; } 7029 ; return 0; }
7028 EOF 7030 EOF
7029 if { (eval echo configure:7030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7031 if { (eval echo configure:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7030 rm -rf conftest* 7032 rm -rf conftest*
7031 eval "ac_cv_lib_$ac_lib_var=yes" 7033 eval "ac_cv_lib_$ac_lib_var=yes"
7032 else 7034 else
7033 echo "configure: failed program was:" >&5 7035 echo "configure: failed program was:" >&5
7034 cat conftest.$ac_ext >&5 7036 cat conftest.$ac_ext >&5
7060 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 7062 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7061 fi 7063 fi
7062 7064
7063 png_problem="" 7065 png_problem=""
7064 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 7066 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7065 echo "configure:7066: checking for pow" >&5 7067 echo "configure:7068: checking for pow" >&5
7066 7068
7067 cat > conftest.$ac_ext <<EOF 7069 cat > conftest.$ac_ext <<EOF
7068 #line 7069 "configure" 7070 #line 7071 "configure"
7069 #include "confdefs.h" 7071 #include "confdefs.h"
7070 /* System header to define __stub macros and hopefully few prototypes, 7072 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char pow(); below. */ 7073 which can conflict with char pow(); below. */
7072 #include <assert.h> 7074 #include <assert.h>
7073 /* Override any gcc2 internal prototype to avoid an error. */ 7075 /* Override any gcc2 internal prototype to avoid an error. */
7086 pow(); 7088 pow();
7087 #endif 7089 #endif
7088 7090
7089 ; return 0; } 7091 ; return 0; }
7090 EOF 7092 EOF
7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7093 if { (eval echo configure:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7092 rm -rf conftest* 7094 rm -rf conftest*
7093 eval "ac_cv_func_pow=yes" 7095 eval "ac_cv_func_pow=yes"
7094 else 7096 else
7095 echo "configure: failed program was:" >&5 7097 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5 7098 cat conftest.$ac_ext >&5
7107 with_png=no 7109 with_png=no
7108 fi 7110 fi
7109 } 7111 }
7110 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 7112 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7111 echo $ac_n "checking for png.h""... $ac_c" 1>&6 7113 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7112 echo "configure:7113: checking for png.h" >&5 7114 echo "configure:7115: checking for png.h" >&5
7113 7115
7114 cat > conftest.$ac_ext <<EOF 7116 cat > conftest.$ac_ext <<EOF
7115 #line 7116 "configure" 7117 #line 7118 "configure"
7116 #include "confdefs.h" 7118 #include "confdefs.h"
7117 #include <png.h> 7119 #include <png.h>
7118 EOF 7120 EOF
7119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7120 { (eval echo configure:7121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7122 { (eval echo configure:7123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7122 if test -z "$ac_err"; then 7124 if test -z "$ac_err"; then
7123 rm -rf conftest* 7125 rm -rf conftest*
7124 eval "ac_cv_header_$ac_safe=yes" 7126 eval "ac_cv_header_$ac_safe=yes"
7125 else 7127 else
7138 with_png=no 7140 with_png=no
7139 fi 7141 fi
7140 } 7142 }
7141 test -z "$with_png" && { 7143 test -z "$with_png" && {
7142 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 7144 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7143 echo "configure:7144: checking for png_read_image in -lpng" >&5 7145 echo "configure:7146: checking for png_read_image in -lpng" >&5
7144 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 7146 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7145 7147
7146 xe_check_libs=" -lpng " 7148 xe_check_libs=" -lpng "
7147 cat > conftest.$ac_ext <<EOF 7149 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure" 7150 #line 7151 "configure"
7149 #include "confdefs.h" 7151 #include "confdefs.h"
7150 /* Override any gcc2 internal prototype to avoid an error. */ 7152 /* Override any gcc2 internal prototype to avoid an error. */
7151 /* We use char because int might match the return type of a gcc2 7153 /* We use char because int might match the return type of a gcc2
7152 builtin and then its argument prototype would still apply. */ 7154 builtin and then its argument prototype would still apply. */
7153 char png_read_image(); 7155 char png_read_image();
7154 7156
7155 int main() { 7157 int main() {
7156 png_read_image() 7158 png_read_image()
7157 ; return 0; } 7159 ; return 0; }
7158 EOF 7160 EOF
7159 if { (eval echo configure:7160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7161 if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7160 rm -rf conftest* 7162 rm -rf conftest*
7161 eval "ac_cv_lib_$ac_lib_var=yes" 7163 eval "ac_cv_lib_$ac_lib_var=yes"
7162 else 7164 else
7163 echo "configure: failed program was:" >&5 7165 echo "configure: failed program was:" >&5
7164 cat conftest.$ac_ext >&5 7166 cat conftest.$ac_ext >&5
7177 fi 7179 fi
7178 7180
7179 } 7181 }
7180 if test -z "$with_png"; then 7182 if test -z "$with_png"; then
7181 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 7183 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7182 echo "configure:7183: checking for workable png version information" >&5 7184 echo "configure:7185: checking for workable png version information" >&5
7183 xe_check_libs="-lpng -lz" 7185 xe_check_libs="-lpng -lz"
7184 cat > conftest.$ac_ext <<EOF 7186 cat > conftest.$ac_ext <<EOF
7185 #line 7186 "configure" 7187 #line 7188 "configure"
7186 #include "confdefs.h" 7188 #include "confdefs.h"
7187 #include <png.h> 7189 #include <png.h>
7188 int main(int c, char **v) { 7190 int main(int c, char **v) {
7189 if (c == 1) return 0; 7191 if (c == 1) return 0;
7190 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 7192 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7191 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 7193 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7192 EOF 7194 EOF
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7195 if { (eval echo configure:7196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7194 then 7196 then
7195 ./conftest dummy_arg; png_status=$?; 7197 ./conftest dummy_arg; png_status=$?;
7196 if test "$png_status" = "0"; then 7198 if test "$png_status" = "0"; then
7197 with_png=yes; 7199 with_png=yes;
7198 else 7200 else
7231 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 7233 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7232 fi 7234 fi
7233 7235
7234 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 7236 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7235 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7237 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7236 echo "configure:7237: checking for tiffio.h" >&5 7238 echo "configure:7239: checking for tiffio.h" >&5
7237 7239
7238 cat > conftest.$ac_ext <<EOF 7240 cat > conftest.$ac_ext <<EOF
7239 #line 7240 "configure" 7241 #line 7242 "configure"
7240 #include "confdefs.h" 7242 #include "confdefs.h"
7241 #include <tiffio.h> 7243 #include <tiffio.h>
7242 EOF 7244 EOF
7243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7244 { (eval echo configure:7245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7246 { (eval echo configure:7247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7246 if test -z "$ac_err"; then 7248 if test -z "$ac_err"; then
7247 rm -rf conftest* 7249 rm -rf conftest*
7248 eval "ac_cv_header_$ac_safe=yes" 7250 eval "ac_cv_header_$ac_safe=yes"
7249 else 7251 else
7262 with_tiff=no 7264 with_tiff=no
7263 fi 7265 fi
7264 } 7266 }
7265 test -z "$with_tiff" && { 7267 test -z "$with_tiff" && {
7266 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7268 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7267 echo "configure:7268: checking for TIFFClientOpen in -ltiff" >&5 7269 echo "configure:7270: checking for TIFFClientOpen in -ltiff" >&5
7268 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7270 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7269 7271
7270 xe_check_libs=" -ltiff " 7272 xe_check_libs=" -ltiff "
7271 cat > conftest.$ac_ext <<EOF 7273 cat > conftest.$ac_ext <<EOF
7272 #line 7273 "configure" 7274 #line 7275 "configure"
7273 #include "confdefs.h" 7275 #include "confdefs.h"
7274 /* Override any gcc2 internal prototype to avoid an error. */ 7276 /* Override any gcc2 internal prototype to avoid an error. */
7275 /* We use char because int might match the return type of a gcc2 7277 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */ 7278 builtin and then its argument prototype would still apply. */
7277 char TIFFClientOpen(); 7279 char TIFFClientOpen();
7278 7280
7279 int main() { 7281 int main() {
7280 TIFFClientOpen() 7282 TIFFClientOpen()
7281 ; return 0; } 7283 ; return 0; }
7282 EOF 7284 EOF
7283 if { (eval echo configure:7284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7285 if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7284 rm -rf conftest* 7286 rm -rf conftest*
7285 eval "ac_cv_lib_$ac_lib_var=yes" 7287 eval "ac_cv_lib_$ac_lib_var=yes"
7286 else 7288 else
7287 echo "configure: failed program was:" >&5 7289 echo "configure: failed program was:" >&5
7288 cat conftest.$ac_ext >&5 7290 cat conftest.$ac_ext >&5
7317 7319
7318 7320
7319 if test "$with_x11" = "yes"; then 7321 if test "$with_x11" = "yes"; then
7320 7322
7321 echo "checking for X11 graphics libraries" 1>&6 7323 echo "checking for X11 graphics libraries" 1>&6
7322 echo "configure:7323: checking for X11 graphics libraries" >&5 7324 echo "configure:7325: checking for X11 graphics libraries" >&5
7323 7325
7324 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7326 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7325 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7327 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7326 echo "configure:7327: checking for compface.h" >&5 7328 echo "configure:7329: checking for compface.h" >&5
7327 7329
7328 cat > conftest.$ac_ext <<EOF 7330 cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure" 7331 #line 7332 "configure"
7330 #include "confdefs.h" 7332 #include "confdefs.h"
7331 #include <compface.h> 7333 #include <compface.h>
7332 EOF 7334 EOF
7333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7334 { (eval echo configure:7335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7336 { (eval echo configure:7337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7336 if test -z "$ac_err"; then 7338 if test -z "$ac_err"; then
7337 rm -rf conftest* 7339 rm -rf conftest*
7338 eval "ac_cv_header_$ac_safe=yes" 7340 eval "ac_cv_header_$ac_safe=yes"
7339 else 7341 else
7352 with_xface=no 7354 with_xface=no
7353 fi 7355 fi
7354 } 7356 }
7355 test -z "$with_xface" && { 7357 test -z "$with_xface" && {
7356 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7358 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7357 echo "configure:7358: checking for UnGenFace in -lcompface" >&5 7359 echo "configure:7360: checking for UnGenFace in -lcompface" >&5
7358 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7360 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7359 7361
7360 xe_check_libs=" -lcompface " 7362 xe_check_libs=" -lcompface "
7361 cat > conftest.$ac_ext <<EOF 7363 cat > conftest.$ac_ext <<EOF
7362 #line 7363 "configure" 7364 #line 7365 "configure"
7363 #include "confdefs.h" 7365 #include "confdefs.h"
7364 /* Override any gcc2 internal prototype to avoid an error. */ 7366 /* Override any gcc2 internal prototype to avoid an error. */
7365 /* We use char because int might match the return type of a gcc2 7367 /* We use char because int might match the return type of a gcc2
7366 builtin and then its argument prototype would still apply. */ 7368 builtin and then its argument prototype would still apply. */
7367 char UnGenFace(); 7369 char UnGenFace();
7368 7370
7369 int main() { 7371 int main() {
7370 UnGenFace() 7372 UnGenFace()
7371 ; return 0; } 7373 ; return 0; }
7372 EOF 7374 EOF
7373 if { (eval echo configure:7374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7375 if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7374 rm -rf conftest* 7376 rm -rf conftest*
7375 eval "ac_cv_lib_$ac_lib_var=yes" 7377 eval "ac_cv_lib_$ac_lib_var=yes"
7376 else 7378 else
7377 echo "configure: failed program was:" >&5 7379 echo "configure: failed program was:" >&5
7378 cat conftest.$ac_ext >&5 7380 cat conftest.$ac_ext >&5
7404 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 7406 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7405 fi 7407 fi
7406 7408
7407 7409
7408 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 7410 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7409 echo "configure:7410: checking for XawScrollbarSetThumb in -lXaw" >&5 7411 echo "configure:7412: checking for XawScrollbarSetThumb in -lXaw" >&5
7410 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7412 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7411 7413
7412 xe_check_libs=" -lXaw " 7414 xe_check_libs=" -lXaw "
7413 cat > conftest.$ac_ext <<EOF 7415 cat > conftest.$ac_ext <<EOF
7414 #line 7415 "configure" 7416 #line 7417 "configure"
7415 #include "confdefs.h" 7417 #include "confdefs.h"
7416 /* Override any gcc2 internal prototype to avoid an error. */ 7418 /* Override any gcc2 internal prototype to avoid an error. */
7417 /* We use char because int might match the return type of a gcc2 7419 /* We use char because int might match the return type of a gcc2
7418 builtin and then its argument prototype would still apply. */ 7420 builtin and then its argument prototype would still apply. */
7419 char XawScrollbarSetThumb(); 7421 char XawScrollbarSetThumb();
7420 7422
7421 int main() { 7423 int main() {
7422 XawScrollbarSetThumb() 7424 XawScrollbarSetThumb()
7423 ; return 0; } 7425 ; return 0; }
7424 EOF 7426 EOF
7425 if { (eval echo configure:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7427 if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7426 rm -rf conftest* 7428 rm -rf conftest*
7427 eval "ac_cv_lib_$ac_lib_var=yes" 7429 eval "ac_cv_lib_$ac_lib_var=yes"
7428 else 7430 else
7429 echo "configure: failed program was:" >&5 7431 echo "configure: failed program was:" >&5
7430 cat conftest.$ac_ext >&5 7432 cat conftest.$ac_ext >&5
7444 7446
7445 7447
7446 7448
7447 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 7449 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7448 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 7450 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7449 echo "configure:7450: checking for Xm/Xm.h" >&5 7451 echo "configure:7452: checking for Xm/Xm.h" >&5
7450 7452
7451 cat > conftest.$ac_ext <<EOF 7453 cat > conftest.$ac_ext <<EOF
7452 #line 7453 "configure" 7454 #line 7455 "configure"
7453 #include "confdefs.h" 7455 #include "confdefs.h"
7454 #include <Xm/Xm.h> 7456 #include <Xm/Xm.h>
7455 EOF 7457 EOF
7456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7457 { (eval echo configure:7458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7459 { (eval echo configure:7460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7459 if test -z "$ac_err"; then 7461 if test -z "$ac_err"; then
7460 rm -rf conftest* 7462 rm -rf conftest*
7461 eval "ac_cv_header_$ac_safe=yes" 7463 eval "ac_cv_header_$ac_safe=yes"
7462 else 7464 else
7469 rm -f conftest* 7471 rm -f conftest*
7470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7471 echo "$ac_t""yes" 1>&6 7473 echo "$ac_t""yes" 1>&6
7472 7474
7473 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 7475 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7474 echo "configure:7475: checking for XmStringFree in -lXm" >&5 7476 echo "configure:7477: checking for XmStringFree in -lXm" >&5
7475 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 7477 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7476 7478
7477 xe_check_libs=" -lXm " 7479 xe_check_libs=" -lXm "
7478 cat > conftest.$ac_ext <<EOF 7480 cat > conftest.$ac_ext <<EOF
7479 #line 7480 "configure" 7481 #line 7482 "configure"
7480 #include "confdefs.h" 7482 #include "confdefs.h"
7481 /* Override any gcc2 internal prototype to avoid an error. */ 7483 /* Override any gcc2 internal prototype to avoid an error. */
7482 /* We use char because int might match the return type of a gcc2 7484 /* We use char because int might match the return type of a gcc2
7483 builtin and then its argument prototype would still apply. */ 7485 builtin and then its argument prototype would still apply. */
7484 char XmStringFree(); 7486 char XmStringFree();
7485 7487
7486 int main() { 7488 int main() {
7487 XmStringFree() 7489 XmStringFree()
7488 ; return 0; } 7490 ; return 0; }
7489 EOF 7491 EOF
7490 if { (eval echo configure:7491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7492 if { (eval echo configure:7493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7491 rm -rf conftest* 7493 rm -rf conftest*
7492 eval "ac_cv_lib_$ac_lib_var=yes" 7494 eval "ac_cv_lib_$ac_lib_var=yes"
7493 else 7495 else
7494 echo "configure: failed program was:" >&5 7496 echo "configure: failed program was:" >&5
7495 cat conftest.$ac_ext >&5 7497 cat conftest.$ac_ext >&5
7514 fi 7516 fi
7515 7517
7516 7518
7517 if test "$have_motif" = "yes"; then 7519 if test "$have_motif" = "yes"; then
7518 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 7520 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7519 echo "configure:7520: checking for Lesstif" >&5 7521 echo "configure:7522: checking for Lesstif" >&5
7520 cat > conftest.$ac_ext <<EOF 7522 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure" 7523 #line 7524 "configure"
7522 #include "confdefs.h" 7524 #include "confdefs.h"
7523 #include <Xm/Xm.h> 7525 #include <Xm/Xm.h>
7524 #ifdef LESSTIF_VERSION 7526 #ifdef LESSTIF_VERSION
7525 yes 7527 yes
7526 #endif 7528 #endif
7800 fi 7802 fi
7801 fi 7803 fi
7802 7804
7803 if test "$with_mule" = "yes" ; then 7805 if test "$with_mule" = "yes" ; then
7804 echo "checking for Mule-related features" 1>&6 7806 echo "checking for Mule-related features" 1>&6
7805 echo "configure:7806: checking for Mule-related features" >&5 7807 echo "configure:7808: checking for Mule-related features" >&5
7806 { test "$extra_verbose" = "yes" && cat << \EOF 7808 { test "$extra_verbose" = "yes" && cat << \EOF
7807 Defining MULE 7809 Defining MULE
7808 EOF 7810 EOF
7809 cat >> confdefs.h <<\EOF 7811 cat >> confdefs.h <<\EOF
7810 #define MULE 1 7812 #define MULE 1
7825 7827
7826 for ac_hdr in libintl.h 7828 for ac_hdr in libintl.h
7827 do 7829 do
7828 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7830 echo "configure:7831: checking for $ac_hdr" >&5 7832 echo "configure:7833: checking for $ac_hdr" >&5
7831 7833
7832 cat > conftest.$ac_ext <<EOF 7834 cat > conftest.$ac_ext <<EOF
7833 #line 7834 "configure" 7835 #line 7836 "configure"
7834 #include "confdefs.h" 7836 #include "confdefs.h"
7835 #include <$ac_hdr> 7837 #include <$ac_hdr>
7836 EOF 7838 EOF
7837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7838 { (eval echo configure:7839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7840 { (eval echo configure:7841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7840 if test -z "$ac_err"; then 7842 if test -z "$ac_err"; then
7841 rm -rf conftest* 7843 rm -rf conftest*
7842 eval "ac_cv_header_$ac_safe=yes" 7844 eval "ac_cv_header_$ac_safe=yes"
7843 else 7845 else
7864 fi 7866 fi
7865 done 7867 done
7866 7868
7867 7869
7868 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 7870 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7869 echo "configure:7870: checking for strerror in -lintl" >&5 7871 echo "configure:7872: checking for strerror in -lintl" >&5
7870 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 7872 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7871 7873
7872 xe_check_libs=" -lintl " 7874 xe_check_libs=" -lintl "
7873 cat > conftest.$ac_ext <<EOF 7875 cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure" 7876 #line 7877 "configure"
7875 #include "confdefs.h" 7877 #include "confdefs.h"
7876 /* Override any gcc2 internal prototype to avoid an error. */ 7878 /* Override any gcc2 internal prototype to avoid an error. */
7877 /* We use char because int might match the return type of a gcc2 7879 /* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */ 7880 builtin and then its argument prototype would still apply. */
7879 char strerror(); 7881 char strerror();
7880 7882
7881 int main() { 7883 int main() {
7882 strerror() 7884 strerror()
7883 ; return 0; } 7885 ; return 0; }
7884 EOF 7886 EOF
7885 if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7887 if { (eval echo configure:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7886 rm -rf conftest* 7888 rm -rf conftest*
7887 eval "ac_cv_lib_$ac_lib_var=yes" 7889 eval "ac_cv_lib_$ac_lib_var=yes"
7888 else 7890 else
7889 echo "configure: failed program was:" >&5 7891 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5 7892 cat conftest.$ac_ext >&5
7913 fi 7915 fi
7914 7916
7915 7917
7916 7918
7917 echo "checking for Mule input methods" 1>&6 7919 echo "checking for Mule input methods" 1>&6
7918 echo "configure:7919: checking for Mule input methods" >&5 7920 echo "configure:7921: checking for Mule input methods" >&5
7919 case "$with_xim" in "" | "yes" ) 7921 case "$with_xim" in "" | "yes" )
7920 echo "checking for XIM" 1>&6 7922 echo "checking for XIM" 1>&6
7921 echo "configure:7922: checking for XIM" >&5 7923 echo "configure:7924: checking for XIM" >&5
7922 7924
7923 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 7925 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7924 echo "configure:7925: checking for XOpenIM in -lX11" >&5 7926 echo "configure:7927: checking for XOpenIM in -lX11" >&5
7925 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 7927 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7926 7928
7927 xe_check_libs=" -lX11 " 7929 xe_check_libs=" -lX11 "
7928 cat > conftest.$ac_ext <<EOF 7930 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure" 7931 #line 7932 "configure"
7930 #include "confdefs.h" 7932 #include "confdefs.h"
7931 /* Override any gcc2 internal prototype to avoid an error. */ 7933 /* Override any gcc2 internal prototype to avoid an error. */
7932 /* We use char because int might match the return type of a gcc2 7934 /* We use char because int might match the return type of a gcc2
7933 builtin and then its argument prototype would still apply. */ 7935 builtin and then its argument prototype would still apply. */
7934 char XOpenIM(); 7936 char XOpenIM();
7935 7937
7936 int main() { 7938 int main() {
7937 XOpenIM() 7939 XOpenIM()
7938 ; return 0; } 7940 ; return 0; }
7939 EOF 7941 EOF
7940 if { (eval echo configure:7941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7942 if { (eval echo configure:7943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7941 rm -rf conftest* 7943 rm -rf conftest*
7942 eval "ac_cv_lib_$ac_lib_var=yes" 7944 eval "ac_cv_lib_$ac_lib_var=yes"
7943 else 7945 else
7944 echo "configure: failed program was:" >&5 7946 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5 7947 cat conftest.$ac_ext >&5
7959 7961
7960 7962
7961 if test "$have_motif $have_lesstif" = "yes no"; then 7963 if test "$have_motif $have_lesstif" = "yes no"; then
7962 7964
7963 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 7965 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7964 echo "configure:7965: checking for XmImMbLookupString in -lXm" >&5 7966 echo "configure:7967: checking for XmImMbLookupString in -lXm" >&5
7965 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 7967 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7966 7968
7967 xe_check_libs=" -lXm " 7969 xe_check_libs=" -lXm "
7968 cat > conftest.$ac_ext <<EOF 7970 cat > conftest.$ac_ext <<EOF
7969 #line 7970 "configure" 7971 #line 7972 "configure"
7970 #include "confdefs.h" 7972 #include "confdefs.h"
7971 /* Override any gcc2 internal prototype to avoid an error. */ 7973 /* Override any gcc2 internal prototype to avoid an error. */
7972 /* We use char because int might match the return type of a gcc2 7974 /* We use char because int might match the return type of a gcc2
7973 builtin and then its argument prototype would still apply. */ 7975 builtin and then its argument prototype would still apply. */
7974 char XmImMbLookupString(); 7976 char XmImMbLookupString();
7975 7977
7976 int main() { 7978 int main() {
7977 XmImMbLookupString() 7979 XmImMbLookupString()
7978 ; return 0; } 7980 ; return 0; }
7979 EOF 7981 EOF
7980 if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7982 if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7981 rm -rf conftest* 7983 rm -rf conftest*
7982 eval "ac_cv_lib_$ac_lib_var=yes" 7984 eval "ac_cv_lib_$ac_lib_var=yes"
7983 else 7985 else
7984 echo "configure: failed program was:" >&5 7986 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5 7987 cat conftest.$ac_ext >&5
8040 fi 8042 fi
8041 fi 8043 fi
8042 8044
8043 if test "$with_xfs" = "yes" ; then 8045 if test "$with_xfs" = "yes" ; then
8044 echo "checking for XFontSet" 1>&6 8046 echo "checking for XFontSet" 1>&6
8045 echo "configure:8046: checking for XFontSet" >&5 8047 echo "configure:8048: checking for XFontSet" >&5
8046 8048
8047 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 8049 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8048 echo "configure:8049: checking for XmbDrawString in -lX11" >&5 8050 echo "configure:8051: checking for XmbDrawString in -lX11" >&5
8049 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 8051 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8050 8052
8051 xe_check_libs=" -lX11 " 8053 xe_check_libs=" -lX11 "
8052 cat > conftest.$ac_ext <<EOF 8054 cat > conftest.$ac_ext <<EOF
8053 #line 8054 "configure" 8055 #line 8056 "configure"
8054 #include "confdefs.h" 8056 #include "confdefs.h"
8055 /* Override any gcc2 internal prototype to avoid an error. */ 8057 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2 8058 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */ 8059 builtin and then its argument prototype would still apply. */
8058 char XmbDrawString(); 8060 char XmbDrawString();
8059 8061
8060 int main() { 8062 int main() {
8061 XmbDrawString() 8063 XmbDrawString()
8062 ; return 0; } 8064 ; return 0; }
8063 EOF 8065 EOF
8064 if { (eval echo configure:8065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8065 rm -rf conftest* 8067 rm -rf conftest*
8066 eval "ac_cv_lib_$ac_lib_var=yes" 8068 eval "ac_cv_lib_$ac_lib_var=yes"
8067 else 8069 else
8068 echo "configure: failed program was:" >&5 8070 echo "configure: failed program was:" >&5
8069 cat conftest.$ac_ext >&5 8071 cat conftest.$ac_ext >&5
8099 fi 8101 fi
8100 fi 8102 fi
8101 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 8103 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8102 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 8104 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8103 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 8105 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8104 echo "configure:8105: checking for wnn/jllib.h" >&5 8106 echo "configure:8107: checking for wnn/jllib.h" >&5
8105 8107
8106 cat > conftest.$ac_ext <<EOF 8108 cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure" 8109 #line 8110 "configure"
8108 #include "confdefs.h" 8110 #include "confdefs.h"
8109 #include <wnn/jllib.h> 8111 #include <wnn/jllib.h>
8110 EOF 8112 EOF
8111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8112 { (eval echo configure:8113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8114 { (eval echo configure:8115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8114 if test -z "$ac_err"; then 8116 if test -z "$ac_err"; then
8115 rm -rf conftest* 8117 rm -rf conftest*
8116 eval "ac_cv_header_$ac_safe=yes" 8118 eval "ac_cv_header_$ac_safe=yes"
8117 else 8119 else
8132 } 8134 }
8133 if test "$with_wnn" != "no"; then 8135 if test "$with_wnn" != "no"; then
8134 for ac_func in crypt 8136 for ac_func in crypt
8135 do 8137 do
8136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8137 echo "configure:8138: checking for $ac_func" >&5 8139 echo "configure:8140: checking for $ac_func" >&5
8138 8140
8139 cat > conftest.$ac_ext <<EOF 8141 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure" 8142 #line 8143 "configure"
8141 #include "confdefs.h" 8143 #include "confdefs.h"
8142 /* System header to define __stub macros and hopefully few prototypes, 8144 /* System header to define __stub macros and hopefully few prototypes,
8143 which can conflict with char $ac_func(); below. */ 8145 which can conflict with char $ac_func(); below. */
8144 #include <assert.h> 8146 #include <assert.h>
8145 /* Override any gcc2 internal prototype to avoid an error. */ 8147 /* Override any gcc2 internal prototype to avoid an error. */
8158 $ac_func(); 8160 $ac_func();
8159 #endif 8161 #endif
8160 8162
8161 ; return 0; } 8163 ; return 0; }
8162 EOF 8164 EOF
8163 if { (eval echo configure:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8164 rm -rf conftest* 8166 rm -rf conftest*
8165 eval "ac_cv_func_$ac_func=yes" 8167 eval "ac_cv_func_$ac_func=yes"
8166 else 8168 else
8167 echo "configure: failed program was:" >&5 8169 echo "configure: failed program was:" >&5
8168 cat conftest.$ac_ext >&5 8170 cat conftest.$ac_ext >&5
8187 fi 8189 fi
8188 done 8190 done
8189 8191
8190 test "$ac_cv_func_crypt" != "yes" && { 8192 test "$ac_cv_func_crypt" != "yes" && {
8191 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 8193 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8192 echo "configure:8193: checking for crypt in -lcrypt" >&5 8194 echo "configure:8195: checking for crypt in -lcrypt" >&5
8193 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 8195 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8194 8196
8195 xe_check_libs=" -lcrypt " 8197 xe_check_libs=" -lcrypt "
8196 cat > conftest.$ac_ext <<EOF 8198 cat > conftest.$ac_ext <<EOF
8197 #line 8198 "configure" 8199 #line 8200 "configure"
8198 #include "confdefs.h" 8200 #include "confdefs.h"
8199 /* Override any gcc2 internal prototype to avoid an error. */ 8201 /* Override any gcc2 internal prototype to avoid an error. */
8200 /* We use char because int might match the return type of a gcc2 8202 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */ 8203 builtin and then its argument prototype would still apply. */
8202 char crypt(); 8204 char crypt();
8203 8205
8204 int main() { 8206 int main() {
8205 crypt() 8207 crypt()
8206 ; return 0; } 8208 ; return 0; }
8207 EOF 8209 EOF
8208 if { (eval echo configure:8209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8210 if { (eval echo configure:8211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8209 rm -rf conftest* 8211 rm -rf conftest*
8210 eval "ac_cv_lib_$ac_lib_var=yes" 8212 eval "ac_cv_lib_$ac_lib_var=yes"
8211 else 8213 else
8212 echo "configure: failed program was:" >&5 8214 echo "configure: failed program was:" >&5
8213 cat conftest.$ac_ext >&5 8215 cat conftest.$ac_ext >&5
8238 } 8240 }
8239 fi 8241 fi
8240 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 8242 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8241 8243
8242 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 8244 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8243 echo "configure:8244: checking for jl_dic_list_e in -lwnn" >&5 8245 echo "configure:8246: checking for jl_dic_list_e in -lwnn" >&5
8244 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8246 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8245 8247
8246 xe_check_libs=" -lwnn " 8248 xe_check_libs=" -lwnn "
8247 cat > conftest.$ac_ext <<EOF 8249 cat > conftest.$ac_ext <<EOF
8248 #line 8249 "configure" 8250 #line 8251 "configure"
8249 #include "confdefs.h" 8251 #include "confdefs.h"
8250 /* Override any gcc2 internal prototype to avoid an error. */ 8252 /* Override any gcc2 internal prototype to avoid an error. */
8251 /* We use char because int might match the return type of a gcc2 8253 /* We use char because int might match the return type of a gcc2
8252 builtin and then its argument prototype would still apply. */ 8254 builtin and then its argument prototype would still apply. */
8253 char jl_dic_list_e(); 8255 char jl_dic_list_e();
8254 8256
8255 int main() { 8257 int main() {
8256 jl_dic_list_e() 8258 jl_dic_list_e()
8257 ; return 0; } 8259 ; return 0; }
8258 EOF 8260 EOF
8259 if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8261 if { (eval echo configure:8262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8260 rm -rf conftest* 8262 rm -rf conftest*
8261 eval "ac_cv_lib_$ac_lib_var=yes" 8263 eval "ac_cv_lib_$ac_lib_var=yes"
8262 else 8264 else
8263 echo "configure: failed program was:" >&5 8265 echo "configure: failed program was:" >&5
8264 cat conftest.$ac_ext >&5 8266 cat conftest.$ac_ext >&5
8272 echo "$ac_t""yes" 1>&6 8274 echo "$ac_t""yes" 1>&6
8273 libwnn=wnn 8275 libwnn=wnn
8274 else 8276 else
8275 echo "$ac_t""no" 1>&6 8277 echo "$ac_t""no" 1>&6
8276 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 8278 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8277 echo "configure:8278: checking for jl_dic_list_e in -lwnn4" >&5 8279 echo "configure:8280: checking for jl_dic_list_e in -lwnn4" >&5
8278 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8280 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8279 8281
8280 xe_check_libs=" -lwnn4 " 8282 xe_check_libs=" -lwnn4 "
8281 cat > conftest.$ac_ext <<EOF 8283 cat > conftest.$ac_ext <<EOF
8282 #line 8283 "configure" 8284 #line 8285 "configure"
8283 #include "confdefs.h" 8285 #include "confdefs.h"
8284 /* Override any gcc2 internal prototype to avoid an error. */ 8286 /* Override any gcc2 internal prototype to avoid an error. */
8285 /* We use char because int might match the return type of a gcc2 8287 /* We use char because int might match the return type of a gcc2
8286 builtin and then its argument prototype would still apply. */ 8288 builtin and then its argument prototype would still apply. */
8287 char jl_dic_list_e(); 8289 char jl_dic_list_e();
8288 8290
8289 int main() { 8291 int main() {
8290 jl_dic_list_e() 8292 jl_dic_list_e()
8291 ; return 0; } 8293 ; return 0; }
8292 EOF 8294 EOF
8293 if { (eval echo configure:8294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8294 rm -rf conftest* 8296 rm -rf conftest*
8295 eval "ac_cv_lib_$ac_lib_var=yes" 8297 eval "ac_cv_lib_$ac_lib_var=yes"
8296 else 8298 else
8297 echo "configure: failed program was:" >&5 8299 echo "configure: failed program was:" >&5
8298 cat conftest.$ac_ext >&5 8300 cat conftest.$ac_ext >&5
8306 echo "$ac_t""yes" 1>&6 8308 echo "$ac_t""yes" 1>&6
8307 libwnn=wnn4 8309 libwnn=wnn4
8308 else 8310 else
8309 echo "$ac_t""no" 1>&6 8311 echo "$ac_t""no" 1>&6
8310 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 8312 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8311 echo "configure:8312: checking for jl_dic_list_e in -lwnn6" >&5 8313 echo "configure:8314: checking for jl_dic_list_e in -lwnn6" >&5
8312 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8314 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8313 8315
8314 xe_check_libs=" -lwnn6 " 8316 xe_check_libs=" -lwnn6 "
8315 cat > conftest.$ac_ext <<EOF 8317 cat > conftest.$ac_ext <<EOF
8316 #line 8317 "configure" 8318 #line 8319 "configure"
8317 #include "confdefs.h" 8319 #include "confdefs.h"
8318 /* Override any gcc2 internal prototype to avoid an error. */ 8320 /* Override any gcc2 internal prototype to avoid an error. */
8319 /* We use char because int might match the return type of a gcc2 8321 /* We use char because int might match the return type of a gcc2
8320 builtin and then its argument prototype would still apply. */ 8322 builtin and then its argument prototype would still apply. */
8321 char jl_dic_list_e(); 8323 char jl_dic_list_e();
8322 8324
8323 int main() { 8325 int main() {
8324 jl_dic_list_e() 8326 jl_dic_list_e()
8325 ; return 0; } 8327 ; return 0; }
8326 EOF 8328 EOF
8327 if { (eval echo configure:8328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8329 if { (eval echo configure:8330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8328 rm -rf conftest* 8330 rm -rf conftest*
8329 eval "ac_cv_lib_$ac_lib_var=yes" 8331 eval "ac_cv_lib_$ac_lib_var=yes"
8330 else 8332 else
8331 echo "configure: failed program was:" >&5 8333 echo "configure: failed program was:" >&5
8332 cat conftest.$ac_ext >&5 8334 cat conftest.$ac_ext >&5
8340 echo "$ac_t""yes" 1>&6 8342 echo "$ac_t""yes" 1>&6
8341 libwnn=wnn6 8343 libwnn=wnn6
8342 else 8344 else
8343 echo "$ac_t""no" 1>&6 8345 echo "$ac_t""no" 1>&6
8344 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 8346 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8345 echo "configure:8346: checking for dic_list_e in -lwnn6_fromsrc" >&5 8347 echo "configure:8348: checking for dic_list_e in -lwnn6_fromsrc" >&5
8346 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 8348 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8347 8349
8348 xe_check_libs=" -lwnn6_fromsrc " 8350 xe_check_libs=" -lwnn6_fromsrc "
8349 cat > conftest.$ac_ext <<EOF 8351 cat > conftest.$ac_ext <<EOF
8350 #line 8351 "configure" 8352 #line 8353 "configure"
8351 #include "confdefs.h" 8353 #include "confdefs.h"
8352 /* Override any gcc2 internal prototype to avoid an error. */ 8354 /* Override any gcc2 internal prototype to avoid an error. */
8353 /* We use char because int might match the return type of a gcc2 8355 /* We use char because int might match the return type of a gcc2
8354 builtin and then its argument prototype would still apply. */ 8356 builtin and then its argument prototype would still apply. */
8355 char dic_list_e(); 8357 char dic_list_e();
8356 8358
8357 int main() { 8359 int main() {
8358 dic_list_e() 8360 dic_list_e()
8359 ; return 0; } 8361 ; return 0; }
8360 EOF 8362 EOF
8361 if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8363 if { (eval echo configure:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8362 rm -rf conftest* 8364 rm -rf conftest*
8363 eval "ac_cv_lib_$ac_lib_var=yes" 8365 eval "ac_cv_lib_$ac_lib_var=yes"
8364 else 8366 else
8365 echo "configure: failed program was:" >&5 8367 echo "configure: failed program was:" >&5
8366 cat conftest.$ac_ext >&5 8368 cat conftest.$ac_ext >&5
8404 echo " xemacs will be linked with \"mule-wnnfns.o\"" 8406 echo " xemacs will be linked with \"mule-wnnfns.o\""
8405 fi 8407 fi
8406 if test "$with_wnn6" != "no"; then 8408 if test "$with_wnn6" != "no"; then
8407 8409
8408 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 8410 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8409 echo "configure:8410: checking for jl_fi_dic_list in -l$libwnn" >&5 8411 echo "configure:8412: checking for jl_fi_dic_list in -l$libwnn" >&5
8410 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 8412 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8411 8413
8412 xe_check_libs=" -l$libwnn " 8414 xe_check_libs=" -l$libwnn "
8413 cat > conftest.$ac_ext <<EOF 8415 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure" 8416 #line 8417 "configure"
8415 #include "confdefs.h" 8417 #include "confdefs.h"
8416 /* Override any gcc2 internal prototype to avoid an error. */ 8418 /* Override any gcc2 internal prototype to avoid an error. */
8417 /* We use char because int might match the return type of a gcc2 8419 /* We use char because int might match the return type of a gcc2
8418 builtin and then its argument prototype would still apply. */ 8420 builtin and then its argument prototype would still apply. */
8419 char jl_fi_dic_list(); 8421 char jl_fi_dic_list();
8420 8422
8421 int main() { 8423 int main() {
8422 jl_fi_dic_list() 8424 jl_fi_dic_list()
8423 ; return 0; } 8425 ; return 0; }
8424 EOF 8426 EOF
8425 if { (eval echo configure:8426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8427 if { (eval echo configure:8428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8426 rm -rf conftest* 8428 rm -rf conftest*
8427 eval "ac_cv_lib_$ac_lib_var=yes" 8429 eval "ac_cv_lib_$ac_lib_var=yes"
8428 else 8430 else
8429 echo "configure: failed program was:" >&5 8431 echo "configure: failed program was:" >&5
8430 cat conftest.$ac_ext >&5 8432 cat conftest.$ac_ext >&5
8455 8457
8456 canna_includes_found=no 8458 canna_includes_found=no
8457 if test "$with_canna" != "no"; then 8459 if test "$with_canna" != "no"; then
8458 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8460 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8459 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8461 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8460 echo "configure:8461: checking for canna/jrkanji.h" >&5 8462 echo "configure:8463: checking for canna/jrkanji.h" >&5
8461 8463
8462 cat > conftest.$ac_ext <<EOF 8464 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure" 8465 #line 8466 "configure"
8464 #include "confdefs.h" 8466 #include "confdefs.h"
8465 #include <canna/jrkanji.h> 8467 #include <canna/jrkanji.h>
8466 EOF 8468 EOF
8467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8468 { (eval echo configure:8469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8470 { (eval echo configure:8471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8470 if test -z "$ac_err"; then 8472 if test -z "$ac_err"; then
8471 rm -rf conftest* 8473 rm -rf conftest*
8472 eval "ac_cv_header_$ac_safe=yes" 8474 eval "ac_cv_header_$ac_safe=yes"
8473 else 8475 else
8490 -d "/usr/local/canna/include"; then 8492 -d "/usr/local/canna/include"; then
8491 save_c_switch_site="$c_switch_site" 8493 save_c_switch_site="$c_switch_site"
8492 c_switch_site="$c_switch_site -I/usr/local/canna/include" 8494 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8493 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8495 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8494 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8496 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8495 echo "configure:8496: checking for canna/jrkanji.h" >&5 8497 echo "configure:8498: checking for canna/jrkanji.h" >&5
8496 8498
8497 cat > conftest.$ac_ext <<EOF 8499 cat > conftest.$ac_ext <<EOF
8498 #line 8499 "configure" 8500 #line 8501 "configure"
8499 #include "confdefs.h" 8501 #include "confdefs.h"
8500 #include <canna/jrkanji.h> 8502 #include <canna/jrkanji.h>
8501 EOF 8503 EOF
8502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8503 { (eval echo configure:8504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8505 { (eval echo configure:8506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8505 if test -z "$ac_err"; then 8507 if test -z "$ac_err"; then
8506 rm -rf conftest* 8508 rm -rf conftest*
8507 eval "ac_cv_header_$ac_safe=yes" 8509 eval "ac_cv_header_$ac_safe=yes"
8508 else 8510 else
8526 fi 8528 fi
8527 fi 8529 fi
8528 8530
8529 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 8531 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8530 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 8532 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8531 echo "configure:8532: checking for canna/RK.h" >&5 8533 echo "configure:8534: checking for canna/RK.h" >&5
8532 8534
8533 cat > conftest.$ac_ext <<EOF 8535 cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure" 8536 #line 8537 "configure"
8535 #include "confdefs.h" 8537 #include "confdefs.h"
8536 #include <canna/RK.h> 8538 #include <canna/RK.h>
8537 EOF 8539 EOF
8538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8539 { (eval echo configure:8540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8541 { (eval echo configure:8542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8541 if test -z "$ac_err"; then 8543 if test -z "$ac_err"; then
8542 rm -rf conftest* 8544 rm -rf conftest*
8543 eval "ac_cv_header_$ac_safe=yes" 8545 eval "ac_cv_header_$ac_safe=yes"
8544 else 8546 else
8557 with_canna=no 8559 with_canna=no
8558 fi 8560 fi
8559 } 8561 }
8560 test -z "$with_canna" && { 8562 test -z "$with_canna" && {
8561 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 8563 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8562 echo "configure:8563: checking for RkBgnBun in -lRKC" >&5 8564 echo "configure:8565: checking for RkBgnBun in -lRKC" >&5
8563 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 8565 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8564 8566
8565 xe_check_libs=" -lRKC " 8567 xe_check_libs=" -lRKC "
8566 cat > conftest.$ac_ext <<EOF 8568 cat > conftest.$ac_ext <<EOF
8567 #line 8568 "configure" 8569 #line 8570 "configure"
8568 #include "confdefs.h" 8570 #include "confdefs.h"
8569 /* Override any gcc2 internal prototype to avoid an error. */ 8571 /* Override any gcc2 internal prototype to avoid an error. */
8570 /* We use char because int might match the return type of a gcc2 8572 /* We use char because int might match the return type of a gcc2
8571 builtin and then its argument prototype would still apply. */ 8573 builtin and then its argument prototype would still apply. */
8572 char RkBgnBun(); 8574 char RkBgnBun();
8573 8575
8574 int main() { 8576 int main() {
8575 RkBgnBun() 8577 RkBgnBun()
8576 ; return 0; } 8578 ; return 0; }
8577 EOF 8579 EOF
8578 if { (eval echo configure:8579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8580 if { (eval echo configure:8581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8579 rm -rf conftest* 8581 rm -rf conftest*
8580 eval "ac_cv_lib_$ac_lib_var=yes" 8582 eval "ac_cv_lib_$ac_lib_var=yes"
8581 else 8583 else
8582 echo "configure: failed program was:" >&5 8584 echo "configure: failed program was:" >&5
8583 cat conftest.$ac_ext >&5 8585 cat conftest.$ac_ext >&5
8596 fi 8598 fi
8597 8599
8598 } 8600 }
8599 test -z "$with_canna" && { 8601 test -z "$with_canna" && {
8600 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 8602 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8601 echo "configure:8602: checking for jrKanjiControl in -lcanna" >&5 8603 echo "configure:8604: checking for jrKanjiControl in -lcanna" >&5
8602 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 8604 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8603 8605
8604 xe_check_libs=" -lcanna " 8606 xe_check_libs=" -lcanna "
8605 cat > conftest.$ac_ext <<EOF 8607 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure" 8608 #line 8609 "configure"
8607 #include "confdefs.h" 8609 #include "confdefs.h"
8608 /* Override any gcc2 internal prototype to avoid an error. */ 8610 /* Override any gcc2 internal prototype to avoid an error. */
8609 /* We use char because int might match the return type of a gcc2 8611 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */ 8612 builtin and then its argument prototype would still apply. */
8611 char jrKanjiControl(); 8613 char jrKanjiControl();
8612 8614
8613 int main() { 8615 int main() {
8614 jrKanjiControl() 8616 jrKanjiControl()
8615 ; return 0; } 8617 ; return 0; }
8616 EOF 8618 EOF
8617 if { (eval echo configure:8618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8619 if { (eval echo configure:8620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8618 rm -rf conftest* 8620 rm -rf conftest*
8619 eval "ac_cv_lib_$ac_lib_var=yes" 8621 eval "ac_cv_lib_$ac_lib_var=yes"
8620 else 8622 else
8621 echo "configure: failed program was:" >&5 8623 echo "configure: failed program was:" >&5
8622 cat conftest.$ac_ext >&5 8624 cat conftest.$ac_ext >&5
8661 8663
8662 if test "$need_motif" = "yes" ; then 8664 if test "$need_motif" = "yes" ; then
8663 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 8665 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8664 8666
8665 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 8667 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8666 echo "configure:8667: checking for layout_object_getvalue in -li18n" >&5 8668 echo "configure:8669: checking for layout_object_getvalue in -li18n" >&5
8667 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 8669 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8668 8670
8669 xe_check_libs=" -li18n " 8671 xe_check_libs=" -li18n "
8670 cat > conftest.$ac_ext <<EOF 8672 cat > conftest.$ac_ext <<EOF
8671 #line 8672 "configure" 8673 #line 8674 "configure"
8672 #include "confdefs.h" 8674 #include "confdefs.h"
8673 /* Override any gcc2 internal prototype to avoid an error. */ 8675 /* Override any gcc2 internal prototype to avoid an error. */
8674 /* We use char because int might match the return type of a gcc2 8676 /* We use char because int might match the return type of a gcc2
8675 builtin and then its argument prototype would still apply. */ 8677 builtin and then its argument prototype would still apply. */
8676 char layout_object_getvalue(); 8678 char layout_object_getvalue();
8677 8679
8678 int main() { 8680 int main() {
8679 layout_object_getvalue() 8681 layout_object_getvalue()
8680 ; return 0; } 8682 ; return 0; }
8681 EOF 8683 EOF
8682 if { (eval echo configure:8683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8684 if { (eval echo configure:8685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8683 rm -rf conftest* 8685 rm -rf conftest*
8684 eval "ac_cv_lib_$ac_lib_var=yes" 8686 eval "ac_cv_lib_$ac_lib_var=yes"
8685 else 8687 else
8686 echo "configure: failed program was:" >&5 8688 echo "configure: failed program was:" >&5
8687 cat conftest.$ac_ext >&5 8689 cat conftest.$ac_ext >&5
8763 fi 8765 fi
8764 8766
8765 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf 8767 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
8766 do 8768 do
8767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8768 echo "configure:8769: checking for $ac_func" >&5 8770 echo "configure:8771: checking for $ac_func" >&5
8769 8771
8770 cat > conftest.$ac_ext <<EOF 8772 cat > conftest.$ac_ext <<EOF
8771 #line 8772 "configure" 8773 #line 8774 "configure"
8772 #include "confdefs.h" 8774 #include "confdefs.h"
8773 /* System header to define __stub macros and hopefully few prototypes, 8775 /* System header to define __stub macros and hopefully few prototypes,
8774 which can conflict with char $ac_func(); below. */ 8776 which can conflict with char $ac_func(); below. */
8775 #include <assert.h> 8777 #include <assert.h>
8776 /* Override any gcc2 internal prototype to avoid an error. */ 8778 /* Override any gcc2 internal prototype to avoid an error. */
8789 $ac_func(); 8791 $ac_func();
8790 #endif 8792 #endif
8791 8793
8792 ; return 0; } 8794 ; return 0; }
8793 EOF 8795 EOF
8794 if { (eval echo configure:8795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8796 if { (eval echo configure:8797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8795 rm -rf conftest* 8797 rm -rf conftest*
8796 eval "ac_cv_func_$ac_func=yes" 8798 eval "ac_cv_func_$ac_func=yes"
8797 else 8799 else
8798 echo "configure: failed program was:" >&5 8800 echo "configure: failed program was:" >&5
8799 cat conftest.$ac_ext >&5 8801 cat conftest.$ac_ext >&5
8830 echo " xemacs will be linked with \"realpath.o\"" 8832 echo " xemacs will be linked with \"realpath.o\""
8831 fi ;; 8833 fi ;;
8832 * ) for ac_func in realpath 8834 * ) for ac_func in realpath
8833 do 8835 do
8834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8835 echo "configure:8836: checking for $ac_func" >&5 8837 echo "configure:8838: checking for $ac_func" >&5
8836 8838
8837 cat > conftest.$ac_ext <<EOF 8839 cat > conftest.$ac_ext <<EOF
8838 #line 8839 "configure" 8840 #line 8841 "configure"
8839 #include "confdefs.h" 8841 #include "confdefs.h"
8840 /* System header to define __stub macros and hopefully few prototypes, 8842 /* System header to define __stub macros and hopefully few prototypes,
8841 which can conflict with char $ac_func(); below. */ 8843 which can conflict with char $ac_func(); below. */
8842 #include <assert.h> 8844 #include <assert.h>
8843 /* Override any gcc2 internal prototype to avoid an error. */ 8845 /* Override any gcc2 internal prototype to avoid an error. */
8856 $ac_func(); 8858 $ac_func();
8857 #endif 8859 #endif
8858 8860
8859 ; return 0; } 8861 ; return 0; }
8860 EOF 8862 EOF
8861 if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8863 if { (eval echo configure:8864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8862 rm -rf conftest* 8864 rm -rf conftest*
8863 eval "ac_cv_func_$ac_func=yes" 8865 eval "ac_cv_func_$ac_func=yes"
8864 else 8866 else
8865 echo "configure: failed program was:" >&5 8867 echo "configure: failed program was:" >&5
8866 cat conftest.$ac_ext >&5 8868 cat conftest.$ac_ext >&5
8890 fi ;; 8892 fi ;;
8891 esac ;; 8893 esac ;;
8892 esac 8894 esac
8893 8895
8894 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 8896 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8895 echo "configure:8896: checking whether netdb declares h_errno" >&5 8897 echo "configure:8898: checking whether netdb declares h_errno" >&5
8896 cat > conftest.$ac_ext <<EOF 8898 cat > conftest.$ac_ext <<EOF
8897 #line 8898 "configure" 8899 #line 8900 "configure"
8898 #include "confdefs.h" 8900 #include "confdefs.h"
8899 #include <netdb.h> 8901 #include <netdb.h>
8900 int main() { 8902 int main() {
8901 return h_errno; 8903 return h_errno;
8902 ; return 0; } 8904 ; return 0; }
8903 EOF 8905 EOF
8904 if { (eval echo configure:8905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8906 if { (eval echo configure:8907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8905 rm -rf conftest* 8907 rm -rf conftest*
8906 echo "$ac_t""yes" 1>&6 8908 echo "$ac_t""yes" 1>&6
8907 { test "$extra_verbose" = "yes" && cat << \EOF 8909 { test "$extra_verbose" = "yes" && cat << \EOF
8908 Defining HAVE_H_ERRNO 8910 Defining HAVE_H_ERRNO
8909 EOF 8911 EOF
8919 echo "$ac_t""no" 1>&6 8921 echo "$ac_t""no" 1>&6
8920 fi 8922 fi
8921 rm -f conftest* 8923 rm -f conftest*
8922 8924
8923 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 8925 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8924 echo "configure:8925: checking for sigsetjmp" >&5 8926 echo "configure:8927: checking for sigsetjmp" >&5
8925 cat > conftest.$ac_ext <<EOF 8927 cat > conftest.$ac_ext <<EOF
8926 #line 8927 "configure" 8928 #line 8929 "configure"
8927 #include "confdefs.h" 8929 #include "confdefs.h"
8928 #include <setjmp.h> 8930 #include <setjmp.h>
8929 int main() { 8931 int main() {
8930 sigjmp_buf bar; sigsetjmp (bar, 0); 8932 sigjmp_buf bar; sigsetjmp (bar, 0);
8931 ; return 0; } 8933 ; return 0; }
8932 EOF 8934 EOF
8933 if { (eval echo configure:8934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8935 if { (eval echo configure:8936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8934 rm -rf conftest* 8936 rm -rf conftest*
8935 echo "$ac_t""yes" 1>&6 8937 echo "$ac_t""yes" 1>&6
8936 { test "$extra_verbose" = "yes" && cat << \EOF 8938 { test "$extra_verbose" = "yes" && cat << \EOF
8937 Defining HAVE_SIGSETJMP 8939 Defining HAVE_SIGSETJMP
8938 EOF 8940 EOF
8948 echo "$ac_t""no" 1>&6 8950 echo "$ac_t""no" 1>&6
8949 fi 8951 fi
8950 rm -f conftest* 8952 rm -f conftest*
8951 8953
8952 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8954 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8953 echo "configure:8954: checking whether localtime caches TZ" >&5 8955 echo "configure:8956: checking whether localtime caches TZ" >&5
8954 8956
8955 if test "$ac_cv_func_tzset" = "yes"; then 8957 if test "$ac_cv_func_tzset" = "yes"; then
8956 cat > conftest.$ac_ext <<EOF 8958 cat > conftest.$ac_ext <<EOF
8957 #line 8958 "configure" 8959 #line 8960 "configure"
8958 #include "confdefs.h" 8960 #include "confdefs.h"
8959 #include <time.h> 8961 #include <time.h>
8960 #if STDC_HEADERS 8962 #if STDC_HEADERS
8961 # include <stdlib.h> 8963 # include <stdlib.h>
8962 #endif 8964 #endif
8987 if (localtime (&now)->tm_hour != hour_unset) 8989 if (localtime (&now)->tm_hour != hour_unset)
8988 exit (1); 8990 exit (1);
8989 exit (0); 8991 exit (0);
8990 } 8992 }
8991 EOF 8993 EOF
8992 if { (eval echo configure:8993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8994 if { (eval echo configure:8995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8993 then 8995 then
8994 emacs_cv_localtime_cache=no 8996 emacs_cv_localtime_cache=no
8995 else 8997 else
8996 conftest_rc="$?" 8998 conftest_rc="$?"
8997 echo "configure: failed program was:" >&5 8999 echo "configure: failed program was:" >&5
9017 9019
9018 fi 9020 fi
9019 9021
9020 if test "$HAVE_TIMEVAL" = "yes"; then 9022 if test "$HAVE_TIMEVAL" = "yes"; then
9021 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 9023 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9022 echo "configure:9023: checking whether gettimeofday accepts one or two arguments" >&5 9024 echo "configure:9025: checking whether gettimeofday accepts one or two arguments" >&5
9023 cat > conftest.$ac_ext <<EOF 9025 cat > conftest.$ac_ext <<EOF
9024 #line 9025 "configure" 9026 #line 9027 "configure"
9025 #include "confdefs.h" 9027 #include "confdefs.h"
9026 9028
9027 #ifdef TIME_WITH_SYS_TIME 9029 #ifdef TIME_WITH_SYS_TIME
9028 #include <sys/time.h> 9030 #include <sys/time.h>
9029 #include <time.h> 9031 #include <time.h>
9041 struct timezone dummy; 9043 struct timezone dummy;
9042 gettimeofday (&time, &dummy); 9044 gettimeofday (&time, &dummy);
9043 9045
9044 ; return 0; } 9046 ; return 0; }
9045 EOF 9047 EOF
9046 if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9048 if { (eval echo configure:9049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9047 rm -rf conftest* 9049 rm -rf conftest*
9048 echo "$ac_t""two" 1>&6 9050 echo "$ac_t""two" 1>&6
9049 else 9051 else
9050 echo "configure: failed program was:" >&5 9052 echo "configure: failed program was:" >&5
9051 cat conftest.$ac_ext >&5 9053 cat conftest.$ac_ext >&5
9063 rm -f conftest* 9065 rm -f conftest*
9064 fi 9066 fi
9065 9067
9066 9068
9067 echo $ac_n "checking for inline""... $ac_c" 1>&6 9069 echo $ac_n "checking for inline""... $ac_c" 1>&6
9068 echo "configure:9069: checking for inline" >&5 9070 echo "configure:9071: checking for inline" >&5
9069 9071
9070 ac_cv_c_inline=no 9072 ac_cv_c_inline=no
9071 for ac_kw in inline __inline__ __inline; do 9073 for ac_kw in inline __inline__ __inline; do
9072 cat > conftest.$ac_ext <<EOF 9074 cat > conftest.$ac_ext <<EOF
9073 #line 9074 "configure" 9075 #line 9076 "configure"
9074 #include "confdefs.h" 9076 #include "confdefs.h"
9075 9077
9076 int main() { 9078 int main() {
9077 } $ac_kw foo() { 9079 } $ac_kw foo() {
9078 ; return 0; } 9080 ; return 0; }
9079 EOF 9081 EOF
9080 if { (eval echo configure:9081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9082 if { (eval echo configure:9083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9081 rm -rf conftest* 9083 rm -rf conftest*
9082 ac_cv_c_inline=$ac_kw; break 9084 ac_cv_c_inline=$ac_kw; break
9083 else 9085 else
9084 echo "configure: failed program was:" >&5 9086 echo "configure: failed program was:" >&5
9085 cat conftest.$ac_ext >&5 9087 cat conftest.$ac_ext >&5
9125 9127
9126 9128
9127 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 9129 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9128 # for constant arguments. Useless! 9130 # for constant arguments. Useless!
9129 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 9131 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9130 echo "configure:9131: checking for working alloca.h" >&5 9132 echo "configure:9133: checking for working alloca.h" >&5
9131 9133
9132 cat > conftest.$ac_ext <<EOF 9134 cat > conftest.$ac_ext <<EOF
9133 #line 9134 "configure" 9135 #line 9136 "configure"
9134 #include "confdefs.h" 9136 #include "confdefs.h"
9135 #include <alloca.h> 9137 #include <alloca.h>
9136 int main() { 9138 int main() {
9137 char *p = alloca(2 * sizeof(int)); 9139 char *p = alloca(2 * sizeof(int));
9138 ; return 0; } 9140 ; return 0; }
9139 EOF 9141 EOF
9140 if { (eval echo configure:9141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9142 if { (eval echo configure:9143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9141 rm -rf conftest* 9143 rm -rf conftest*
9142 ac_cv_header_alloca_h=yes 9144 ac_cv_header_alloca_h=yes
9143 else 9145 else
9144 echo "configure: failed program was:" >&5 9146 echo "configure: failed program was:" >&5
9145 cat conftest.$ac_ext >&5 9147 cat conftest.$ac_ext >&5
9159 } 9161 }
9160 9162
9161 fi 9163 fi
9162 9164
9163 echo $ac_n "checking for alloca""... $ac_c" 1>&6 9165 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9164 echo "configure:9165: checking for alloca" >&5 9166 echo "configure:9167: checking for alloca" >&5
9165 9167
9166 cat > conftest.$ac_ext <<EOF 9168 cat > conftest.$ac_ext <<EOF
9167 #line 9168 "configure" 9169 #line 9170 "configure"
9168 #include "confdefs.h" 9170 #include "confdefs.h"
9169 9171
9170 #ifdef __GNUC__ 9172 #ifdef __GNUC__
9171 # define alloca __builtin_alloca 9173 # define alloca __builtin_alloca
9172 #else 9174 #else
9190 9192
9191 int main() { 9193 int main() {
9192 char *p = (char *) alloca(1); 9194 char *p = (char *) alloca(1);
9193 ; return 0; } 9195 ; return 0; }
9194 EOF 9196 EOF
9195 if { (eval echo configure:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9197 if { (eval echo configure:9198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9196 rm -rf conftest* 9198 rm -rf conftest*
9197 ac_cv_func_alloca_works=yes 9199 ac_cv_func_alloca_works=yes
9198 else 9200 else
9199 echo "configure: failed program was:" >&5 9201 echo "configure: failed program was:" >&5
9200 cat conftest.$ac_ext >&5 9202 cat conftest.$ac_ext >&5
9229 EOF 9231 EOF
9230 } 9232 }
9231 9233
9232 9234
9233 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 9235 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9234 echo "configure:9235: checking whether alloca needs Cray hooks" >&5 9236 echo "configure:9237: checking whether alloca needs Cray hooks" >&5
9235 9237
9236 cat > conftest.$ac_ext <<EOF 9238 cat > conftest.$ac_ext <<EOF
9237 #line 9238 "configure" 9239 #line 9240 "configure"
9238 #include "confdefs.h" 9240 #include "confdefs.h"
9239 #if defined(CRAY) && ! defined(CRAY2) 9241 #if defined(CRAY) && ! defined(CRAY2)
9240 webecray 9242 webecray
9241 #else 9243 #else
9242 wenotbecray 9244 wenotbecray
9256 9258
9257 echo "$ac_t""$ac_cv_os_cray" 1>&6 9259 echo "$ac_t""$ac_cv_os_cray" 1>&6
9258 if test $ac_cv_os_cray = yes; then 9260 if test $ac_cv_os_cray = yes; then
9259 for ac_func in _getb67 GETB67 getb67; do 9261 for ac_func in _getb67 GETB67 getb67; do
9260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9261 echo "configure:9262: checking for $ac_func" >&5 9263 echo "configure:9264: checking for $ac_func" >&5
9262 9264
9263 cat > conftest.$ac_ext <<EOF 9265 cat > conftest.$ac_ext <<EOF
9264 #line 9265 "configure" 9266 #line 9267 "configure"
9265 #include "confdefs.h" 9267 #include "confdefs.h"
9266 /* System header to define __stub macros and hopefully few prototypes, 9268 /* System header to define __stub macros and hopefully few prototypes,
9267 which can conflict with char $ac_func(); below. */ 9269 which can conflict with char $ac_func(); below. */
9268 #include <assert.h> 9270 #include <assert.h>
9269 /* Override any gcc2 internal prototype to avoid an error. */ 9271 /* Override any gcc2 internal prototype to avoid an error. */
9282 $ac_func(); 9284 $ac_func();
9283 #endif 9285 #endif
9284 9286
9285 ; return 0; } 9287 ; return 0; }
9286 EOF 9288 EOF
9287 if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9289 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9288 rm -rf conftest* 9290 rm -rf conftest*
9289 eval "ac_cv_func_$ac_func=yes" 9291 eval "ac_cv_func_$ac_func=yes"
9290 else 9292 else
9291 echo "configure: failed program was:" >&5 9293 echo "configure: failed program was:" >&5
9292 cat conftest.$ac_ext >&5 9294 cat conftest.$ac_ext >&5
9312 9314
9313 done 9315 done
9314 fi 9316 fi
9315 9317
9316 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 9318 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9317 echo "configure:9318: checking stack direction for C alloca" >&5 9319 echo "configure:9320: checking stack direction for C alloca" >&5
9318 9320
9319 cat > conftest.$ac_ext <<EOF 9321 cat > conftest.$ac_ext <<EOF
9320 #line 9321 "configure" 9322 #line 9323 "configure"
9321 #include "confdefs.h" 9323 #include "confdefs.h"
9322 find_stack_direction () 9324 find_stack_direction ()
9323 { 9325 {
9324 static char *addr = 0; 9326 static char *addr = 0;
9325 auto char dummy; 9327 auto char dummy;
9334 main () 9336 main ()
9335 { 9337 {
9336 exit (find_stack_direction() < 0); 9338 exit (find_stack_direction() < 0);
9337 } 9339 }
9338 EOF 9340 EOF
9339 if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9341 if { (eval echo configure:9342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9340 then 9342 then
9341 ac_cv_c_stack_direction=1 9343 ac_cv_c_stack_direction=1
9342 else 9344 else
9343 conftest_rc="$?" 9345 conftest_rc="$?"
9344 echo "configure: failed program was:" >&5 9346 echo "configure: failed program was:" >&5
9363 echo " xemacs will be linked with \"$ALLOCA\"" 9365 echo " xemacs will be linked with \"$ALLOCA\""
9364 fi 9366 fi
9365 9367
9366 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 9368 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9367 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 9369 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9368 echo "configure:9369: checking for vfork.h" >&5 9370 echo "configure:9371: checking for vfork.h" >&5
9369 9371
9370 cat > conftest.$ac_ext <<EOF 9372 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure" 9373 #line 9374 "configure"
9372 #include "confdefs.h" 9374 #include "confdefs.h"
9373 #include <vfork.h> 9375 #include <vfork.h>
9374 EOF 9376 EOF
9375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9376 { (eval echo configure:9377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9378 { (eval echo configure:9379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9378 if test -z "$ac_err"; then 9380 if test -z "$ac_err"; then
9379 rm -rf conftest* 9381 rm -rf conftest*
9380 eval "ac_cv_header_$ac_safe=yes" 9382 eval "ac_cv_header_$ac_safe=yes"
9381 else 9383 else
9399 else 9401 else
9400 echo "$ac_t""no" 1>&6 9402 echo "$ac_t""no" 1>&6
9401 fi 9403 fi
9402 9404
9403 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 9405 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9404 echo "configure:9405: checking for working vfork" >&5 9406 echo "configure:9407: checking for working vfork" >&5
9405 9407
9406 cat > conftest.$ac_ext <<EOF 9408 cat > conftest.$ac_ext <<EOF
9407 #line 9408 "configure" 9409 #line 9410 "configure"
9408 #include "confdefs.h" 9410 #include "confdefs.h"
9409 /* Thanks to Paul Eggert for this test. */ 9411 /* Thanks to Paul Eggert for this test. */
9410 #include <stdio.h> 9412 #include <stdio.h>
9411 #include <sys/types.h> 9413 #include <sys/types.h>
9412 #include <sys/stat.h> 9414 #include <sys/stat.h>
9497 || fstat(fileno(stdout), &st) != 0 9499 || fstat(fileno(stdout), &st) != 0
9498 ); 9500 );
9499 } 9501 }
9500 } 9502 }
9501 EOF 9503 EOF
9502 if { (eval echo configure:9503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9504 if { (eval echo configure:9505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9503 then 9505 then
9504 ac_cv_func_vfork_works=yes 9506 ac_cv_func_vfork_works=yes
9505 else 9507 else
9506 conftest_rc="$?" 9508 conftest_rc="$?"
9507 echo "configure: failed program was:" >&5 9509 echo "configure: failed program was:" >&5
9523 9525
9524 fi 9526 fi
9525 9527
9526 9528
9527 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 9529 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9528 echo "configure:9529: checking for working strcoll" >&5 9530 echo "configure:9531: checking for working strcoll" >&5
9529 9531
9530 cat > conftest.$ac_ext <<EOF 9532 cat > conftest.$ac_ext <<EOF
9531 #line 9532 "configure" 9533 #line 9534 "configure"
9532 #include "confdefs.h" 9534 #include "confdefs.h"
9533 #include <string.h> 9535 #include <string.h>
9534 main () 9536 main ()
9535 { 9537 {
9536 exit (strcoll ("abc", "def") >= 0 || 9538 exit (strcoll ("abc", "def") >= 0 ||
9537 strcoll ("ABC", "DEF") >= 0 || 9539 strcoll ("ABC", "DEF") >= 0 ||
9538 strcoll ("123", "456") >= 0); 9540 strcoll ("123", "456") >= 0);
9539 } 9541 }
9540 EOF 9542 EOF
9541 if { (eval echo configure:9542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9543 if { (eval echo configure:9544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9542 then 9544 then
9543 ac_cv_func_strcoll_works=yes 9545 ac_cv_func_strcoll_works=yes
9544 else 9546 else
9545 conftest_rc="$?" 9547 conftest_rc="$?"
9546 echo "configure: failed program was:" >&5 9548 echo "configure: failed program was:" >&5
9564 9566
9565 9567
9566 for ac_func in getpgrp 9568 for ac_func in getpgrp
9567 do 9569 do
9568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9569 echo "configure:9570: checking for $ac_func" >&5 9571 echo "configure:9572: checking for $ac_func" >&5
9570 9572
9571 cat > conftest.$ac_ext <<EOF 9573 cat > conftest.$ac_ext <<EOF
9572 #line 9573 "configure" 9574 #line 9575 "configure"
9573 #include "confdefs.h" 9575 #include "confdefs.h"
9574 /* System header to define __stub macros and hopefully few prototypes, 9576 /* System header to define __stub macros and hopefully few prototypes,
9575 which can conflict with char $ac_func(); below. */ 9577 which can conflict with char $ac_func(); below. */
9576 #include <assert.h> 9578 #include <assert.h>
9577 /* Override any gcc2 internal prototype to avoid an error. */ 9579 /* Override any gcc2 internal prototype to avoid an error. */
9590 $ac_func(); 9592 $ac_func();
9591 #endif 9593 #endif
9592 9594
9593 ; return 0; } 9595 ; return 0; }
9594 EOF 9596 EOF
9595 if { (eval echo configure:9596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9597 if { (eval echo configure:9598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9596 rm -rf conftest* 9598 rm -rf conftest*
9597 eval "ac_cv_func_$ac_func=yes" 9599 eval "ac_cv_func_$ac_func=yes"
9598 else 9600 else
9599 echo "configure: failed program was:" >&5 9601 echo "configure: failed program was:" >&5
9600 cat conftest.$ac_ext >&5 9602 cat conftest.$ac_ext >&5
9618 echo "$ac_t""no" 1>&6 9620 echo "$ac_t""no" 1>&6
9619 fi 9621 fi
9620 done 9622 done
9621 9623
9622 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 9624 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9623 echo "configure:9624: checking whether getpgrp takes no argument" >&5 9625 echo "configure:9626: checking whether getpgrp takes no argument" >&5
9624 9626
9625 cat > conftest.$ac_ext <<EOF 9627 cat > conftest.$ac_ext <<EOF
9626 #line 9627 "configure" 9628 #line 9629 "configure"
9627 #include "confdefs.h" 9629 #include "confdefs.h"
9628 9630
9629 /* 9631 /*
9630 * If this system has a BSD-style getpgrp(), 9632 * If this system has a BSD-style getpgrp(),
9631 * which takes a pid argument, exit unsuccessfully. 9633 * which takes a pid argument, exit unsuccessfully.
9676 exit(s>>8); 9678 exit(s>>8);
9677 } 9679 }
9678 } 9680 }
9679 9681
9680 EOF 9682 EOF
9681 if { (eval echo configure:9682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9683 if { (eval echo configure:9684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9682 then 9684 then
9683 ac_cv_func_getpgrp_void=yes 9685 ac_cv_func_getpgrp_void=yes
9684 else 9686 else
9685 conftest_rc="$?" 9687 conftest_rc="$?"
9686 echo "configure: failed program was:" >&5 9688 echo "configure: failed program was:" >&5
9703 9705
9704 fi 9706 fi
9705 9707
9706 9708
9707 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9709 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9708 echo "configure:9709: checking for working mmap" >&5 9710 echo "configure:9711: checking for working mmap" >&5
9709 case "$opsys" in ultrix* ) have_mmap=no ;; *) 9711 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9710 cat > conftest.$ac_ext <<EOF 9712 cat > conftest.$ac_ext <<EOF
9711 #line 9712 "configure" 9713 #line 9714 "configure"
9712 #include "confdefs.h" 9714 #include "confdefs.h"
9713 #include <stdio.h> 9715 #include <stdio.h>
9714 #include <unistd.h> 9716 #include <unistd.h>
9715 #include <fcntl.h> 9717 #include <fcntl.h>
9716 #include <sys/mman.h> 9718 #include <sys/mman.h>
9739 return 0; 9741 return 0;
9740 perror ("conftest: mmap failed"); 9742 perror ("conftest: mmap failed");
9741 return 1; 9743 return 1;
9742 } 9744 }
9743 EOF 9745 EOF
9744 if { (eval echo configure:9745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9746 if { (eval echo configure:9747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9745 then 9747 then
9746 have_mmap=yes 9748 have_mmap=yes
9747 else 9749 else
9748 conftest_rc="$?" 9750 conftest_rc="$?"
9749 echo "configure: failed program was:" >&5 9751 echo "configure: failed program was:" >&5
9774 } 9776 }
9775 9777
9776 9778
9777 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 9779 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
9778 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 9780 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
9779 echo "configure:9780: checking for termios.h" >&5 9781 echo "configure:9782: checking for termios.h" >&5
9780 9782
9781 cat > conftest.$ac_ext <<EOF 9783 cat > conftest.$ac_ext <<EOF
9782 #line 9783 "configure" 9784 #line 9785 "configure"
9783 #include "confdefs.h" 9785 #include "confdefs.h"
9784 #include <termios.h> 9786 #include <termios.h>
9785 EOF 9787 EOF
9786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9787 { (eval echo configure:9788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9789 { (eval echo configure:9790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9789 if test -z "$ac_err"; then 9791 if test -z "$ac_err"; then
9790 rm -rf conftest* 9792 rm -rf conftest*
9791 eval "ac_cv_header_$ac_safe=yes" 9793 eval "ac_cv_header_$ac_safe=yes"
9792 else 9794 else
9825 9827
9826 else 9828 else
9827 echo "$ac_t""no" 1>&6 9829 echo "$ac_t""no" 1>&6
9828 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 9830 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
9829 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 9831 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
9830 echo "configure:9831: checking for termio.h" >&5 9832 echo "configure:9833: checking for termio.h" >&5
9831 9833
9832 cat > conftest.$ac_ext <<EOF 9834 cat > conftest.$ac_ext <<EOF
9833 #line 9834 "configure" 9835 #line 9836 "configure"
9834 #include "confdefs.h" 9836 #include "confdefs.h"
9835 #include <termio.h> 9837 #include <termio.h>
9836 EOF 9838 EOF
9837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9838 { (eval echo configure:9839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9840 { (eval echo configure:9841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9840 if test -z "$ac_err"; then 9842 if test -z "$ac_err"; then
9841 rm -rf conftest* 9843 rm -rf conftest*
9842 eval "ac_cv_header_$ac_safe=yes" 9844 eval "ac_cv_header_$ac_safe=yes"
9843 else 9845 else
9865 fi 9867 fi
9866 9868
9867 9869
9868 9870
9869 echo $ac_n "checking for socket""... $ac_c" 1>&6 9871 echo $ac_n "checking for socket""... $ac_c" 1>&6
9870 echo "configure:9871: checking for socket" >&5 9872 echo "configure:9873: checking for socket" >&5
9871 9873
9872 cat > conftest.$ac_ext <<EOF 9874 cat > conftest.$ac_ext <<EOF
9873 #line 9874 "configure" 9875 #line 9876 "configure"
9874 #include "confdefs.h" 9876 #include "confdefs.h"
9875 /* System header to define __stub macros and hopefully few prototypes, 9877 /* System header to define __stub macros and hopefully few prototypes,
9876 which can conflict with char socket(); below. */ 9878 which can conflict with char socket(); below. */
9877 #include <assert.h> 9879 #include <assert.h>
9878 /* Override any gcc2 internal prototype to avoid an error. */ 9880 /* Override any gcc2 internal prototype to avoid an error. */
9891 socket(); 9893 socket();
9892 #endif 9894 #endif
9893 9895
9894 ; return 0; } 9896 ; return 0; }
9895 EOF 9897 EOF
9896 if { (eval echo configure:9897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9898 if { (eval echo configure:9899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9897 rm -rf conftest* 9899 rm -rf conftest*
9898 eval "ac_cv_func_socket=yes" 9900 eval "ac_cv_func_socket=yes"
9899 else 9901 else
9900 echo "configure: failed program was:" >&5 9902 echo "configure: failed program was:" >&5
9901 cat conftest.$ac_ext >&5 9903 cat conftest.$ac_ext >&5
9906 9908
9907 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 9909 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9908 echo "$ac_t""yes" 1>&6 9910 echo "$ac_t""yes" 1>&6
9909 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 9911 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
9910 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 9912 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
9911 echo "configure:9912: checking for netinet/in.h" >&5 9913 echo "configure:9914: checking for netinet/in.h" >&5
9912 9914
9913 cat > conftest.$ac_ext <<EOF 9915 cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure" 9916 #line 9917 "configure"
9915 #include "confdefs.h" 9917 #include "confdefs.h"
9916 #include <netinet/in.h> 9918 #include <netinet/in.h>
9917 EOF 9919 EOF
9918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9919 { (eval echo configure:9920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9921 { (eval echo configure:9922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9921 if test -z "$ac_err"; then 9923 if test -z "$ac_err"; then
9922 rm -rf conftest* 9924 rm -rf conftest*
9923 eval "ac_cv_header_$ac_safe=yes" 9925 eval "ac_cv_header_$ac_safe=yes"
9924 else 9926 else
9931 rm -f conftest* 9933 rm -f conftest*
9932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9933 echo "$ac_t""yes" 1>&6 9935 echo "$ac_t""yes" 1>&6
9934 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 9936 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
9935 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 9937 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
9936 echo "configure:9937: checking for arpa/inet.h" >&5 9938 echo "configure:9939: checking for arpa/inet.h" >&5
9937 9939
9938 cat > conftest.$ac_ext <<EOF 9940 cat > conftest.$ac_ext <<EOF
9939 #line 9940 "configure" 9941 #line 9942 "configure"
9940 #include "confdefs.h" 9942 #include "confdefs.h"
9941 #include <arpa/inet.h> 9943 #include <arpa/inet.h>
9942 EOF 9944 EOF
9943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9944 { (eval echo configure:9945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9946 { (eval echo configure:9947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9946 if test -z "$ac_err"; then 9948 if test -z "$ac_err"; then
9947 rm -rf conftest* 9949 rm -rf conftest*
9948 eval "ac_cv_header_$ac_safe=yes" 9950 eval "ac_cv_header_$ac_safe=yes"
9949 else 9951 else
9964 #define HAVE_SOCKETS 1 9966 #define HAVE_SOCKETS 1
9965 EOF 9967 EOF
9966 } 9968 }
9967 9969
9968 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 9970 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
9969 echo "configure:9970: checking "for sun_len member in struct sockaddr_un"" >&5 9971 echo "configure:9972: checking "for sun_len member in struct sockaddr_un"" >&5
9970 cat > conftest.$ac_ext <<EOF 9972 cat > conftest.$ac_ext <<EOF
9971 #line 9972 "configure" 9973 #line 9974 "configure"
9972 #include "confdefs.h" 9974 #include "confdefs.h"
9973 9975
9974 #include <sys/types.h> 9976 #include <sys/types.h>
9975 #include <sys/socket.h> 9977 #include <sys/socket.h>
9976 #include <sys/un.h> 9978 #include <sys/un.h>
9977 9979
9978 int main() { 9980 int main() {
9979 static struct sockaddr_un x; x.sun_len = 1; 9981 static struct sockaddr_un x; x.sun_len = 1;
9980 ; return 0; } 9982 ; return 0; }
9981 EOF 9983 EOF
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9984 if { (eval echo configure:9985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9983 rm -rf conftest* 9985 rm -rf conftest*
9984 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9986 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9985 Defining HAVE_SOCKADDR_SUN_LEN 9987 Defining HAVE_SOCKADDR_SUN_LEN
9986 EOF 9988 EOF
9987 cat >> confdefs.h <<\EOF 9989 cat >> confdefs.h <<\EOF
9995 rm -rf conftest* 9997 rm -rf conftest*
9996 echo "$ac_t""no" 1>&6 9998 echo "$ac_t""no" 1>&6
9997 fi 9999 fi
9998 rm -f conftest* 10000 rm -f conftest*
9999 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 10001 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10000 echo "configure:10001: checking "for ip_mreq struct in netinet/in.h"" >&5 10002 echo "configure:10003: checking "for ip_mreq struct in netinet/in.h"" >&5
10001 cat > conftest.$ac_ext <<EOF 10003 cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure" 10004 #line 10005 "configure"
10003 #include "confdefs.h" 10005 #include "confdefs.h"
10004 10006
10005 #include <sys/types.h> 10007 #include <sys/types.h>
10006 #include <netinet/in.h> 10008 #include <netinet/in.h>
10007 10009
10008 int main() { 10010 int main() {
10009 static struct ip_mreq x; 10011 static struct ip_mreq x;
10010 ; return 0; } 10012 ; return 0; }
10011 EOF 10013 EOF
10012 if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10014 if { (eval echo configure:10015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10013 rm -rf conftest* 10015 rm -rf conftest*
10014 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10016 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10015 Defining HAVE_MULTICAST 10017 Defining HAVE_MULTICAST
10016 EOF 10018 EOF
10017 cat >> confdefs.h <<\EOF 10019 cat >> confdefs.h <<\EOF
10038 echo "$ac_t""no" 1>&6 10040 echo "$ac_t""no" 1>&6
10039 fi 10041 fi
10040 10042
10041 10043
10042 echo $ac_n "checking for msgget""... $ac_c" 1>&6 10044 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10043 echo "configure:10044: checking for msgget" >&5 10045 echo "configure:10046: checking for msgget" >&5
10044 10046
10045 cat > conftest.$ac_ext <<EOF 10047 cat > conftest.$ac_ext <<EOF
10046 #line 10047 "configure" 10048 #line 10049 "configure"
10047 #include "confdefs.h" 10049 #include "confdefs.h"
10048 /* System header to define __stub macros and hopefully few prototypes, 10050 /* System header to define __stub macros and hopefully few prototypes,
10049 which can conflict with char msgget(); below. */ 10051 which can conflict with char msgget(); below. */
10050 #include <assert.h> 10052 #include <assert.h>
10051 /* Override any gcc2 internal prototype to avoid an error. */ 10053 /* Override any gcc2 internal prototype to avoid an error. */
10064 msgget(); 10066 msgget();
10065 #endif 10067 #endif
10066 10068
10067 ; return 0; } 10069 ; return 0; }
10068 EOF 10070 EOF
10069 if { (eval echo configure:10070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10071 if { (eval echo configure:10072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10070 rm -rf conftest* 10072 rm -rf conftest*
10071 eval "ac_cv_func_msgget=yes" 10073 eval "ac_cv_func_msgget=yes"
10072 else 10074 else
10073 echo "configure: failed program was:" >&5 10075 echo "configure: failed program was:" >&5
10074 cat conftest.$ac_ext >&5 10076 cat conftest.$ac_ext >&5
10079 10081
10080 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 10082 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10081 echo "$ac_t""yes" 1>&6 10083 echo "$ac_t""yes" 1>&6
10082 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 10084 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10083 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 10085 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10084 echo "configure:10085: checking for sys/ipc.h" >&5 10086 echo "configure:10087: checking for sys/ipc.h" >&5
10085 10087
10086 cat > conftest.$ac_ext <<EOF 10088 cat > conftest.$ac_ext <<EOF
10087 #line 10088 "configure" 10089 #line 10090 "configure"
10088 #include "confdefs.h" 10090 #include "confdefs.h"
10089 #include <sys/ipc.h> 10091 #include <sys/ipc.h>
10090 EOF 10092 EOF
10091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10092 { (eval echo configure:10093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10094 { (eval echo configure:10095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10094 if test -z "$ac_err"; then 10096 if test -z "$ac_err"; then
10095 rm -rf conftest* 10097 rm -rf conftest*
10096 eval "ac_cv_header_$ac_safe=yes" 10098 eval "ac_cv_header_$ac_safe=yes"
10097 else 10099 else
10104 rm -f conftest* 10106 rm -f conftest*
10105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10106 echo "$ac_t""yes" 1>&6 10108 echo "$ac_t""yes" 1>&6
10107 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 10109 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10108 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 10110 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10109 echo "configure:10110: checking for sys/msg.h" >&5 10111 echo "configure:10112: checking for sys/msg.h" >&5
10110 10112
10111 cat > conftest.$ac_ext <<EOF 10113 cat > conftest.$ac_ext <<EOF
10112 #line 10113 "configure" 10114 #line 10115 "configure"
10113 #include "confdefs.h" 10115 #include "confdefs.h"
10114 #include <sys/msg.h> 10116 #include <sys/msg.h>
10115 EOF 10117 EOF
10116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10117 { (eval echo configure:10118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10119 { (eval echo configure:10120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10119 if test -z "$ac_err"; then 10121 if test -z "$ac_err"; then
10120 rm -rf conftest* 10122 rm -rf conftest*
10121 eval "ac_cv_header_$ac_safe=yes" 10123 eval "ac_cv_header_$ac_safe=yes"
10122 else 10124 else
10150 fi 10152 fi
10151 10153
10152 10154
10153 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 10155 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10154 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 10156 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10155 echo "configure:10156: checking for dirent.h" >&5 10157 echo "configure:10158: checking for dirent.h" >&5
10156 10158
10157 cat > conftest.$ac_ext <<EOF 10159 cat > conftest.$ac_ext <<EOF
10158 #line 10159 "configure" 10160 #line 10161 "configure"
10159 #include "confdefs.h" 10161 #include "confdefs.h"
10160 #include <dirent.h> 10162 #include <dirent.h>
10161 EOF 10163 EOF
10162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10163 { (eval echo configure:10164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10165 { (eval echo configure:10166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10165 if test -z "$ac_err"; then 10167 if test -z "$ac_err"; then
10166 rm -rf conftest* 10168 rm -rf conftest*
10167 eval "ac_cv_header_$ac_safe=yes" 10169 eval "ac_cv_header_$ac_safe=yes"
10168 else 10170 else
10185 10187
10186 else 10188 else
10187 echo "$ac_t""no" 1>&6 10189 echo "$ac_t""no" 1>&6
10188 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 10190 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10189 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 10191 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10190 echo "configure:10191: checking for sys/dir.h" >&5 10192 echo "configure:10193: checking for sys/dir.h" >&5
10191 10193
10192 cat > conftest.$ac_ext <<EOF 10194 cat > conftest.$ac_ext <<EOF
10193 #line 10194 "configure" 10195 #line 10196 "configure"
10194 #include "confdefs.h" 10196 #include "confdefs.h"
10195 #include <sys/dir.h> 10197 #include <sys/dir.h>
10196 EOF 10198 EOF
10197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10198 { (eval echo configure:10199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10200 { (eval echo configure:10201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10200 if test -z "$ac_err"; then 10202 if test -z "$ac_err"; then
10201 rm -rf conftest* 10203 rm -rf conftest*
10202 eval "ac_cv_header_$ac_safe=yes" 10204 eval "ac_cv_header_$ac_safe=yes"
10203 else 10205 else
10226 fi 10228 fi
10227 10229
10228 10230
10229 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 10231 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10230 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 10232 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10231 echo "configure:10232: checking for nlist.h" >&5 10233 echo "configure:10234: checking for nlist.h" >&5
10232 10234
10233 cat > conftest.$ac_ext <<EOF 10235 cat > conftest.$ac_ext <<EOF
10234 #line 10235 "configure" 10236 #line 10237 "configure"
10235 #include "confdefs.h" 10237 #include "confdefs.h"
10236 #include <nlist.h> 10238 #include <nlist.h>
10237 EOF 10239 EOF
10238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10239 { (eval echo configure:10240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10241 { (eval echo configure:10242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10241 if test -z "$ac_err"; then 10243 if test -z "$ac_err"; then
10242 rm -rf conftest* 10244 rm -rf conftest*
10243 eval "ac_cv_header_$ac_safe=yes" 10245 eval "ac_cv_header_$ac_safe=yes"
10244 else 10246 else
10264 fi 10266 fi
10265 10267
10266 10268
10267 10269
10268 echo "checking "for sound support"" 1>&6 10270 echo "checking "for sound support"" 1>&6
10269 echo "configure:10270: checking "for sound support"" >&5 10271 echo "configure:10272: checking "for sound support"" >&5
10270 case "$with_sound" in 10272 case "$with_sound" in
10271 native | both ) with_native_sound=yes;; 10273 native | both ) with_native_sound=yes;;
10272 nas | no ) with_native_sound=no;; 10274 nas | no ) with_native_sound=no;;
10273 esac 10275 esac
10274 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 10276 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10275 10277
10276 if test "$with_native_sound" != "no"; then 10278 if test "$with_native_sound" != "no"; then
10277 if test -n "$native_sound_lib"; then 10279 if test -n "$native_sound_lib"; then
10278 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 10280 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10279 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 10281 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10280 echo "configure:10281: checking for multimedia/audio_device.h" >&5 10282 echo "configure:10283: checking for multimedia/audio_device.h" >&5
10281 10283
10282 cat > conftest.$ac_ext <<EOF 10284 cat > conftest.$ac_ext <<EOF
10283 #line 10284 "configure" 10285 #line 10286 "configure"
10284 #include "confdefs.h" 10286 #include "confdefs.h"
10285 #include <multimedia/audio_device.h> 10287 #include <multimedia/audio_device.h>
10286 EOF 10288 EOF
10287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10288 { (eval echo configure:10289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10290 { (eval echo configure:10291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10290 if test -z "$ac_err"; then 10292 if test -z "$ac_err"; then
10291 rm -rf conftest* 10293 rm -rf conftest*
10292 eval "ac_cv_header_$ac_safe=yes" 10294 eval "ac_cv_header_$ac_safe=yes"
10293 else 10295 else
10331 case "$canonical" in 10333 case "$canonical" in
10332 *-sgi-* ) 10334 *-sgi-* )
10333 if test -z "$native_sound_lib"; then 10335 if test -z "$native_sound_lib"; then
10334 ac_safe=`echo "audio.h" | sed 'y%./+-%__p_%'` 10336 ac_safe=`echo "audio.h" | sed 'y%./+-%__p_%'`
10335 echo $ac_n "checking for audio.h""... $ac_c" 1>&6 10337 echo $ac_n "checking for audio.h""... $ac_c" 1>&6
10336 echo "configure:10337: checking for audio.h" >&5 10338 echo "configure:10339: checking for audio.h" >&5
10337 10339
10338 cat > conftest.$ac_ext <<EOF 10340 cat > conftest.$ac_ext <<EOF
10339 #line 10340 "configure" 10341 #line 10342 "configure"
10340 #include "confdefs.h" 10342 #include "confdefs.h"
10341 #include <audio.h> 10343 #include <audio.h>
10342 EOF 10344 EOF
10343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10344 { (eval echo configure:10345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10346 { (eval echo configure:10347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10346 if test -z "$ac_err"; then 10348 if test -z "$ac_err"; then
10347 rm -rf conftest* 10349 rm -rf conftest*
10348 eval "ac_cv_header_$ac_safe=yes" 10350 eval "ac_cv_header_$ac_safe=yes"
10349 else 10351 else
10357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10358 echo "$ac_t""yes" 1>&6 10360 echo "$ac_t""yes" 1>&6
10359 10361
10360 10362
10361 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 10363 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10362 echo "configure:10363: checking for ALopenport in -laudio" >&5 10364 echo "configure:10365: checking for ALopenport in -laudio" >&5
10363 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 10365 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10364 10366
10365 xe_check_libs=" -laudio " 10367 xe_check_libs=" -laudio "
10366 cat > conftest.$ac_ext <<EOF 10368 cat > conftest.$ac_ext <<EOF
10367 #line 10368 "configure" 10369 #line 10370 "configure"
10368 #include "confdefs.h" 10370 #include "confdefs.h"
10369 /* Override any gcc2 internal prototype to avoid an error. */ 10371 /* Override any gcc2 internal prototype to avoid an error. */
10370 /* We use char because int might match the return type of a gcc2 10372 /* We use char because int might match the return type of a gcc2
10371 builtin and then its argument prototype would still apply. */ 10373 builtin and then its argument prototype would still apply. */
10372 char ALopenport(); 10374 char ALopenport();
10373 10375
10374 int main() { 10376 int main() {
10375 ALopenport() 10377 ALopenport()
10376 ; return 0; } 10378 ; return 0; }
10377 EOF 10379 EOF
10378 if { (eval echo configure:10379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10380 if { (eval echo configure:10381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10379 rm -rf conftest* 10381 rm -rf conftest*
10380 eval "ac_cv_lib_$ac_lib_var=yes" 10382 eval "ac_cv_lib_$ac_lib_var=yes"
10381 else 10383 else
10382 echo "configure: failed program was:" >&5 10384 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5 10385 cat conftest.$ac_ext >&5
10409 fi ;; 10411 fi ;;
10410 hppa*-hp-hpux* ) 10412 hppa*-hp-hpux* )
10411 if test -z "$native_sound_lib"; then 10413 if test -z "$native_sound_lib"; then
10412 10414
10413 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 10415 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10414 echo "configure:10415: checking for AOpenAudio in -lAlib" >&5 10416 echo "configure:10417: checking for AOpenAudio in -lAlib" >&5
10415 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 10417 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10416 10418
10417 xe_check_libs=" -lAlib " 10419 xe_check_libs=" -lAlib "
10418 cat > conftest.$ac_ext <<EOF 10420 cat > conftest.$ac_ext <<EOF
10419 #line 10420 "configure" 10421 #line 10422 "configure"
10420 #include "confdefs.h" 10422 #include "confdefs.h"
10421 /* Override any gcc2 internal prototype to avoid an error. */ 10423 /* Override any gcc2 internal prototype to avoid an error. */
10422 /* We use char because int might match the return type of a gcc2 10424 /* We use char because int might match the return type of a gcc2
10423 builtin and then its argument prototype would still apply. */ 10425 builtin and then its argument prototype would still apply. */
10424 char AOpenAudio(); 10426 char AOpenAudio();
10425 10427
10426 int main() { 10428 int main() {
10427 AOpenAudio() 10429 AOpenAudio()
10428 ; return 0; } 10430 ; return 0; }
10429 EOF 10431 EOF
10430 if { (eval echo configure:10431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10432 if { (eval echo configure:10433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10431 rm -rf conftest* 10433 rm -rf conftest*
10432 eval "ac_cv_lib_$ac_lib_var=yes" 10434 eval "ac_cv_lib_$ac_lib_var=yes"
10433 else 10435 else
10434 echo "configure: failed program was:" >&5 10436 echo "configure: failed program was:" >&5
10435 cat conftest.$ac_ext >&5 10437 cat conftest.$ac_ext >&5
10463 10465
10464 if test -z "$sound_found"; then 10466 if test -z "$sound_found"; then
10465 for dir in "machine" "sys" "linux"; do 10467 for dir in "machine" "sys" "linux"; do
10466 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10468 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10467 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10469 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10468 echo "configure:10469: checking for ${dir}/soundcard.h" >&5 10470 echo "configure:10471: checking for ${dir}/soundcard.h" >&5
10469 10471
10470 cat > conftest.$ac_ext <<EOF 10472 cat > conftest.$ac_ext <<EOF
10471 #line 10472 "configure" 10473 #line 10474 "configure"
10472 #include "confdefs.h" 10474 #include "confdefs.h"
10473 #include <${dir}/soundcard.h> 10475 #include <${dir}/soundcard.h>
10474 EOF 10476 EOF
10475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10476 { (eval echo configure:10477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10478 { (eval echo configure:10479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10478 if test -z "$ac_err"; then 10480 if test -z "$ac_err"; then
10479 rm -rf conftest* 10481 rm -rf conftest*
10480 eval "ac_cv_header_$ac_safe=yes" 10482 eval "ac_cv_header_$ac_safe=yes"
10481 else 10483 else
10541 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10543 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10542 echo " xemacs will be linked with \"nas.o\"" 10544 echo " xemacs will be linked with \"nas.o\""
10543 fi 10545 fi
10544 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10546 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10545 cat > conftest.$ac_ext <<EOF 10547 cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure" 10548 #line 10549 "configure"
10547 #include "confdefs.h" 10549 #include "confdefs.h"
10548 #include <audio/Xtutil.h> 10550 #include <audio/Xtutil.h>
10549 EOF 10551 EOF
10550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10551 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10553 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10568 10570
10569 test -z "$with_tty" && with_tty=yes 10571 test -z "$with_tty" && with_tty=yes
10570 10572
10571 if test "$with_tty" = "yes" ; then 10573 if test "$with_tty" = "yes" ; then
10572 echo "checking for TTY-related features" 1>&6 10574 echo "checking for TTY-related features" 1>&6
10573 echo "configure:10574: checking for TTY-related features" >&5 10575 echo "configure:10576: checking for TTY-related features" >&5
10574 { test "$extra_verbose" = "yes" && cat << \EOF 10576 { test "$extra_verbose" = "yes" && cat << \EOF
10575 Defining HAVE_TTY 10577 Defining HAVE_TTY
10576 EOF 10578 EOF
10577 cat >> confdefs.h <<\EOF 10579 cat >> confdefs.h <<\EOF
10578 #define HAVE_TTY 1 10580 #define HAVE_TTY 1
10584 fi 10586 fi
10585 10587
10586 if test -z "$with_ncurses"; then 10588 if test -z "$with_ncurses"; then
10587 10589
10588 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 10590 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10589 echo "configure:10590: checking for tgetent in -lncurses" >&5 10591 echo "configure:10592: checking for tgetent in -lncurses" >&5
10590 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 10592 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10591 10593
10592 xe_check_libs=" -lncurses " 10594 xe_check_libs=" -lncurses "
10593 cat > conftest.$ac_ext <<EOF 10595 cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure" 10596 #line 10597 "configure"
10595 #include "confdefs.h" 10597 #include "confdefs.h"
10596 /* Override any gcc2 internal prototype to avoid an error. */ 10598 /* Override any gcc2 internal prototype to avoid an error. */
10597 /* We use char because int might match the return type of a gcc2 10599 /* We use char because int might match the return type of a gcc2
10598 builtin and then its argument prototype would still apply. */ 10600 builtin and then its argument prototype would still apply. */
10599 char tgetent(); 10601 char tgetent();
10600 10602
10601 int main() { 10603 int main() {
10602 tgetent() 10604 tgetent()
10603 ; return 0; } 10605 ; return 0; }
10604 EOF 10606 EOF
10605 if { (eval echo configure:10606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10607 if { (eval echo configure:10608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10606 rm -rf conftest* 10608 rm -rf conftest*
10607 eval "ac_cv_lib_$ac_lib_var=yes" 10609 eval "ac_cv_lib_$ac_lib_var=yes"
10608 else 10610 else
10609 echo "configure: failed program was:" >&5 10611 echo "configure: failed program was:" >&5
10610 cat conftest.$ac_ext >&5 10612 cat conftest.$ac_ext >&5
10633 EOF 10635 EOF
10634 } 10636 }
10635 10637
10636 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10638 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10637 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10639 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10638 echo "configure:10639: checking for ncurses/curses.h" >&5 10640 echo "configure:10641: checking for ncurses/curses.h" >&5
10639 10641
10640 cat > conftest.$ac_ext <<EOF 10642 cat > conftest.$ac_ext <<EOF
10641 #line 10642 "configure" 10643 #line 10644 "configure"
10642 #include "confdefs.h" 10644 #include "confdefs.h"
10643 #include <ncurses/curses.h> 10645 #include <ncurses/curses.h>
10644 EOF 10646 EOF
10645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10646 { (eval echo configure:10647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10648 { (eval echo configure:10649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10649 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10648 if test -z "$ac_err"; then 10650 if test -z "$ac_err"; then
10649 rm -rf conftest* 10651 rm -rf conftest*
10650 eval "ac_cv_header_$ac_safe=yes" 10652 eval "ac_cv_header_$ac_safe=yes"
10651 else 10653 else
10663 echo "$ac_t""no" 1>&6 10665 echo "$ac_t""no" 1>&6
10664 fi 10666 fi
10665 10667
10666 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 10668 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10667 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 10669 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10668 echo "configure:10669: checking for ncurses/term.h" >&5 10670 echo "configure:10671: checking for ncurses/term.h" >&5
10669 10671
10670 cat > conftest.$ac_ext <<EOF 10672 cat > conftest.$ac_ext <<EOF
10671 #line 10672 "configure" 10673 #line 10674 "configure"
10672 #include "confdefs.h" 10674 #include "confdefs.h"
10673 #include <ncurses/term.h> 10675 #include <ncurses/term.h>
10674 EOF 10676 EOF
10675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10676 { (eval echo configure:10677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10678 { (eval echo configure:10679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10678 if test -z "$ac_err"; then 10680 if test -z "$ac_err"; then
10679 rm -rf conftest* 10681 rm -rf conftest*
10680 eval "ac_cv_header_$ac_safe=yes" 10682 eval "ac_cv_header_$ac_safe=yes"
10681 else 10683 else
10701 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 10703 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10702 save_c_switch_site="$c_switch_site" 10704 save_c_switch_site="$c_switch_site"
10703 c_switch_site="$c_switch_site -I/usr/include/ncurses" 10705 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10704 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10706 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10705 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10707 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10706 echo "configure:10707: checking for ncurses/curses.h" >&5 10708 echo "configure:10709: checking for ncurses/curses.h" >&5
10707 10709
10708 cat > conftest.$ac_ext <<EOF 10710 cat > conftest.$ac_ext <<EOF
10709 #line 10710 "configure" 10711 #line 10712 "configure"
10710 #include "confdefs.h" 10712 #include "confdefs.h"
10711 #include <ncurses/curses.h> 10713 #include <ncurses/curses.h>
10712 EOF 10714 EOF
10713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10714 { (eval echo configure:10715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10716 { (eval echo configure:10717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10715 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10716 if test -z "$ac_err"; then 10718 if test -z "$ac_err"; then
10717 rm -rf conftest* 10719 rm -rf conftest*
10718 eval "ac_cv_header_$ac_safe=yes" 10720 eval "ac_cv_header_$ac_safe=yes"
10719 else 10721 else
10744 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10746 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10745 else 10747 else
10746 for lib in curses termlib termcap; do 10748 for lib in curses termlib termcap; do
10747 10749
10748 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 10750 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10749 echo "configure:10750: checking for tgetent in -l$lib" >&5 10751 echo "configure:10752: checking for tgetent in -l$lib" >&5
10750 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 10752 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10751 10753
10752 xe_check_libs=" -l$lib " 10754 xe_check_libs=" -l$lib "
10753 cat > conftest.$ac_ext <<EOF 10755 cat > conftest.$ac_ext <<EOF
10754 #line 10755 "configure" 10756 #line 10757 "configure"
10755 #include "confdefs.h" 10757 #include "confdefs.h"
10756 /* Override any gcc2 internal prototype to avoid an error. */ 10758 /* Override any gcc2 internal prototype to avoid an error. */
10757 /* We use char because int might match the return type of a gcc2 10759 /* We use char because int might match the return type of a gcc2
10758 builtin and then its argument prototype would still apply. */ 10760 builtin and then its argument prototype would still apply. */
10759 char tgetent(); 10761 char tgetent();
10760 10762
10761 int main() { 10763 int main() {
10762 tgetent() 10764 tgetent()
10763 ; return 0; } 10765 ; return 0; }
10764 EOF 10766 EOF
10765 if { (eval echo configure:10766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10767 if { (eval echo configure:10768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10766 rm -rf conftest* 10768 rm -rf conftest*
10767 eval "ac_cv_lib_$ac_lib_var=yes" 10769 eval "ac_cv_lib_$ac_lib_var=yes"
10768 else 10770 else
10769 echo "configure: failed program was:" >&5 10771 echo "configure: failed program was:" >&5
10770 cat conftest.$ac_ext >&5 10772 cat conftest.$ac_ext >&5
10791 if test -n "$libs_termcap"; then 10793 if test -n "$libs_termcap"; then
10792 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10794 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10793 else 10795 else
10794 10796
10795 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10797 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10796 echo "configure:10797: checking for tgetent in -lcurses" >&5 10798 echo "configure:10799: checking for tgetent in -lcurses" >&5
10797 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10799 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10798 10800
10799 xe_check_libs=" -lcurses " 10801 xe_check_libs=" -lcurses "
10800 cat > conftest.$ac_ext <<EOF 10802 cat > conftest.$ac_ext <<EOF
10801 #line 10802 "configure" 10803 #line 10804 "configure"
10802 #include "confdefs.h" 10804 #include "confdefs.h"
10803 /* Override any gcc2 internal prototype to avoid an error. */ 10805 /* Override any gcc2 internal prototype to avoid an error. */
10804 /* We use char because int might match the return type of a gcc2 10806 /* We use char because int might match the return type of a gcc2
10805 builtin and then its argument prototype would still apply. */ 10807 builtin and then its argument prototype would still apply. */
10806 char tgetent(); 10808 char tgetent();
10807 10809
10808 int main() { 10810 int main() {
10809 tgetent() 10811 tgetent()
10810 ; return 0; } 10812 ; return 0; }
10811 EOF 10813 EOF
10812 if { (eval echo configure:10813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10814 if { (eval echo configure:10815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10813 rm -rf conftest* 10815 rm -rf conftest*
10814 eval "ac_cv_lib_$ac_lib_var=yes" 10816 eval "ac_cv_lib_$ac_lib_var=yes"
10815 else 10817 else
10816 echo "configure: failed program was:" >&5 10818 echo "configure: failed program was:" >&5
10817 cat conftest.$ac_ext >&5 10819 cat conftest.$ac_ext >&5
10825 echo "$ac_t""yes" 1>&6 10827 echo "$ac_t""yes" 1>&6
10826 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 10828 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
10827 else 10829 else
10828 echo "$ac_t""no" 1>&6 10830 echo "$ac_t""no" 1>&6
10829 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 10831 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
10830 echo "configure:10831: checking for tgetent in -ltermcap" >&5 10832 echo "configure:10833: checking for tgetent in -ltermcap" >&5
10831 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 10833 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
10832 10834
10833 xe_check_libs=" -ltermcap " 10835 xe_check_libs=" -ltermcap "
10834 cat > conftest.$ac_ext <<EOF 10836 cat > conftest.$ac_ext <<EOF
10835 #line 10836 "configure" 10837 #line 10838 "configure"
10836 #include "confdefs.h" 10838 #include "confdefs.h"
10837 /* Override any gcc2 internal prototype to avoid an error. */ 10839 /* Override any gcc2 internal prototype to avoid an error. */
10838 /* We use char because int might match the return type of a gcc2 10840 /* We use char because int might match the return type of a gcc2
10839 builtin and then its argument prototype would still apply. */ 10841 builtin and then its argument prototype would still apply. */
10840 char tgetent(); 10842 char tgetent();
10841 10843
10842 int main() { 10844 int main() {
10843 tgetent() 10845 tgetent()
10844 ; return 0; } 10846 ; return 0; }
10845 EOF 10847 EOF
10846 if { (eval echo configure:10847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10848 if { (eval echo configure:10849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10847 rm -rf conftest* 10849 rm -rf conftest*
10848 eval "ac_cv_lib_$ac_lib_var=yes" 10850 eval "ac_cv_lib_$ac_lib_var=yes"
10849 else 10851 else
10850 echo "configure: failed program was:" >&5 10852 echo "configure: failed program was:" >&5
10851 cat conftest.$ac_ext >&5 10853 cat conftest.$ac_ext >&5
10889 } 10891 }
10890 10892
10891 10893
10892 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 10894 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
10893 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 10895 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
10894 echo "configure:10895: checking for gpm.h" >&5 10896 echo "configure:10897: checking for gpm.h" >&5
10895 10897
10896 cat > conftest.$ac_ext <<EOF 10898 cat > conftest.$ac_ext <<EOF
10897 #line 10898 "configure" 10899 #line 10900 "configure"
10898 #include "confdefs.h" 10900 #include "confdefs.h"
10899 #include <gpm.h> 10901 #include <gpm.h>
10900 EOF 10902 EOF
10901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10902 { (eval echo configure:10903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10904 { (eval echo configure:10905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10904 if test -z "$ac_err"; then 10906 if test -z "$ac_err"; then
10905 rm -rf conftest* 10907 rm -rf conftest*
10906 eval "ac_cv_header_$ac_safe=yes" 10908 eval "ac_cv_header_$ac_safe=yes"
10907 else 10909 else
10920 with_gpm=no 10922 with_gpm=no
10921 fi 10923 fi
10922 } 10924 }
10923 test -z "$with_gpm" && { 10925 test -z "$with_gpm" && {
10924 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 10926 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
10925 echo "configure:10926: checking for Gpm_Open in -lgpm" >&5 10927 echo "configure:10928: checking for Gpm_Open in -lgpm" >&5
10926 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 10928 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
10927 10929
10928 xe_check_libs=" -lgpm " 10930 xe_check_libs=" -lgpm "
10929 cat > conftest.$ac_ext <<EOF 10931 cat > conftest.$ac_ext <<EOF
10930 #line 10931 "configure" 10932 #line 10933 "configure"
10931 #include "confdefs.h" 10933 #include "confdefs.h"
10932 /* Override any gcc2 internal prototype to avoid an error. */ 10934 /* Override any gcc2 internal prototype to avoid an error. */
10933 /* We use char because int might match the return type of a gcc2 10935 /* We use char because int might match the return type of a gcc2
10934 builtin and then its argument prototype would still apply. */ 10936 builtin and then its argument prototype would still apply. */
10935 char Gpm_Open(); 10937 char Gpm_Open();
10936 10938
10937 int main() { 10939 int main() {
10938 Gpm_Open() 10940 Gpm_Open()
10939 ; return 0; } 10941 ; return 0; }
10940 EOF 10942 EOF
10941 if { (eval echo configure:10942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10943 if { (eval echo configure:10944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10942 rm -rf conftest* 10944 rm -rf conftest*
10943 eval "ac_cv_lib_$ac_lib_var=yes" 10945 eval "ac_cv_lib_$ac_lib_var=yes"
10944 else 10946 else
10945 echo "configure: failed program was:" >&5 10947 echo "configure: failed program was:" >&5
10946 cat conftest.$ac_ext >&5 10948 cat conftest.$ac_ext >&5
10985 echo " xemacs will be linked with \"event-unixoid.o\"" 10987 echo " xemacs will be linked with \"event-unixoid.o\""
10986 fi 10988 fi
10987 10989
10988 10990
10989 echo "checking for database support" 1>&6 10991 echo "checking for database support" 1>&6
10990 echo "configure:10991: checking for database support" >&5 10992 echo "configure:10993: checking for database support" >&5
10991 10993
10992 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then 10994 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
10993 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 10995 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
10994 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 10996 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
10995 echo "configure:10996: checking for ndbm.h" >&5 10997 echo "configure:10998: checking for ndbm.h" >&5
10996 10998
10997 cat > conftest.$ac_ext <<EOF 10999 cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure" 11000 #line 11001 "configure"
10999 #include "confdefs.h" 11001 #include "confdefs.h"
11000 #include <ndbm.h> 11002 #include <ndbm.h>
11001 EOF 11003 EOF
11002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11003 { (eval echo configure:11004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11005 { (eval echo configure:11006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11005 if test -z "$ac_err"; then 11007 if test -z "$ac_err"; then
11006 rm -rf conftest* 11008 rm -rf conftest*
11007 eval "ac_cv_header_$ac_safe=yes" 11009 eval "ac_cv_header_$ac_safe=yes"
11008 else 11010 else
11028 fi 11030 fi
11029 11031
11030 if test "$with_database_gnudbm" != "no"; then 11032 if test "$with_database_gnudbm" != "no"; then
11031 11033
11032 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 11034 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11033 echo "configure:11034: checking for dbm_open in -lgdbm" >&5 11035 echo "configure:11036: checking for dbm_open in -lgdbm" >&5
11034 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 11036 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11035 11037
11036 xe_check_libs=" -lgdbm " 11038 xe_check_libs=" -lgdbm "
11037 cat > conftest.$ac_ext <<EOF 11039 cat > conftest.$ac_ext <<EOF
11038 #line 11039 "configure" 11040 #line 11041 "configure"
11039 #include "confdefs.h" 11041 #include "confdefs.h"
11040 /* Override any gcc2 internal prototype to avoid an error. */ 11042 /* Override any gcc2 internal prototype to avoid an error. */
11041 /* We use char because int might match the return type of a gcc2 11043 /* We use char because int might match the return type of a gcc2
11042 builtin and then its argument prototype would still apply. */ 11044 builtin and then its argument prototype would still apply. */
11043 char dbm_open(); 11045 char dbm_open();
11044 11046
11045 int main() { 11047 int main() {
11046 dbm_open() 11048 dbm_open()
11047 ; return 0; } 11049 ; return 0; }
11048 EOF 11050 EOF
11049 if { (eval echo configure:11050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11051 if { (eval echo configure:11052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11050 rm -rf conftest* 11052 rm -rf conftest*
11051 eval "ac_cv_lib_$ac_lib_var=yes" 11053 eval "ac_cv_lib_$ac_lib_var=yes"
11052 else 11054 else
11053 echo "configure: failed program was:" >&5 11055 echo "configure: failed program was:" >&5
11054 cat conftest.$ac_ext >&5 11056 cat conftest.$ac_ext >&5
11072 11074
11073 fi 11075 fi
11074 11076
11075 if test "$with_database_dbm" != "no"; then 11077 if test "$with_database_dbm" != "no"; then
11076 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 11078 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11077 echo "configure:11078: checking for dbm_open" >&5 11079 echo "configure:11080: checking for dbm_open" >&5
11078 11080
11079 cat > conftest.$ac_ext <<EOF 11081 cat > conftest.$ac_ext <<EOF
11080 #line 11081 "configure" 11082 #line 11083 "configure"
11081 #include "confdefs.h" 11083 #include "confdefs.h"
11082 /* System header to define __stub macros and hopefully few prototypes, 11084 /* System header to define __stub macros and hopefully few prototypes,
11083 which can conflict with char dbm_open(); below. */ 11085 which can conflict with char dbm_open(); below. */
11084 #include <assert.h> 11086 #include <assert.h>
11085 /* Override any gcc2 internal prototype to avoid an error. */ 11087 /* Override any gcc2 internal prototype to avoid an error. */
11098 dbm_open(); 11100 dbm_open();
11099 #endif 11101 #endif
11100 11102
11101 ; return 0; } 11103 ; return 0; }
11102 EOF 11104 EOF
11103 if { (eval echo configure:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11105 if { (eval echo configure:11106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11104 rm -rf conftest* 11106 rm -rf conftest*
11105 eval "ac_cv_func_dbm_open=yes" 11107 eval "ac_cv_func_dbm_open=yes"
11106 else 11108 else
11107 echo "configure: failed program was:" >&5 11109 echo "configure: failed program was:" >&5
11108 cat conftest.$ac_ext >&5 11110 cat conftest.$ac_ext >&5
11117 else 11119 else
11118 echo "$ac_t""no" 1>&6 11120 echo "$ac_t""no" 1>&6
11119 11121
11120 11122
11121 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 11123 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11122 echo "configure:11123: checking for dbm_open in -ldbm" >&5 11124 echo "configure:11125: checking for dbm_open in -ldbm" >&5
11123 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 11125 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11124 11126
11125 xe_check_libs=" -ldbm " 11127 xe_check_libs=" -ldbm "
11126 cat > conftest.$ac_ext <<EOF 11128 cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure" 11129 #line 11130 "configure"
11128 #include "confdefs.h" 11130 #include "confdefs.h"
11129 /* Override any gcc2 internal prototype to avoid an error. */ 11131 /* Override any gcc2 internal prototype to avoid an error. */
11130 /* We use char because int might match the return type of a gcc2 11132 /* We use char because int might match the return type of a gcc2
11131 builtin and then its argument prototype would still apply. */ 11133 builtin and then its argument prototype would still apply. */
11132 char dbm_open(); 11134 char dbm_open();
11133 11135
11134 int main() { 11136 int main() {
11135 dbm_open() 11137 dbm_open()
11136 ; return 0; } 11138 ; return 0; }
11137 EOF 11139 EOF
11138 if { (eval echo configure:11139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11140 if { (eval echo configure:11141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11139 rm -rf conftest* 11141 rm -rf conftest*
11140 eval "ac_cv_lib_$ac_lib_var=yes" 11142 eval "ac_cv_lib_$ac_lib_var=yes"
11141 else 11143 else
11142 echo "configure: failed program was:" >&5 11144 echo "configure: failed program was:" >&5
11143 cat conftest.$ac_ext >&5 11145 cat conftest.$ac_ext >&5
11175 11177
11176 fi 11178 fi
11177 11179
11178 if test "$with_database_berkdb" != "no"; then 11180 if test "$with_database_berkdb" != "no"; then
11179 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 11181 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11180 echo "configure:11181: checking for Berkeley db.h" >&5 11182 echo "configure:11183: checking for Berkeley db.h" >&5
11181 for path in "db/db.h" "db.h"; do 11183 for path in "db/db.h" "db.h"; do
11182 cat > conftest.$ac_ext <<EOF 11184 cat > conftest.$ac_ext <<EOF
11183 #line 11184 "configure" 11185 #line 11186 "configure"
11184 #include "confdefs.h" 11186 #include "confdefs.h"
11187
11188 #include <stdlib.h>
11189 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
11185 #ifdef HAVE_INTTYPES_H 11190 #ifdef HAVE_INTTYPES_H
11186 #define __BIT_TYPES_DEFINED__ 11191 #define __BIT_TYPES_DEFINED__
11187 #include <inttypes.h> 11192 #include <inttypes.h>
11188 typedef uint8_t u_int8_t; 11193 typedef uint8_t u_int8_t;
11189 typedef uint16_t u_int16_t; 11194 typedef uint16_t u_int16_t;
11190 typedef uint32_t u_int32_t; 11195 typedef uint32_t u_int32_t;
11191 #ifdef WE_DONT_NEED_QUADS 11196 #ifdef WE_DONT_NEED_QUADS
11192 typedef uint64_t u_int64_t; 11197 typedef uint64_t u_int64_t;
11193 #endif 11198 #endif
11194 #endif 11199 #endif
11200 #endif
11195 #include <$path> 11201 #include <$path>
11196 11202
11197 int main() { 11203 int main() {
11198 11204
11199 ; return 0; } 11205 ; return 0; }
11200 EOF 11206 EOF
11201 if { (eval echo configure:11202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11207 if { (eval echo configure:11208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11202 rm -rf conftest* 11208 rm -rf conftest*
11203 db_h_path="$path"; break 11209 db_h_path="$path"; break
11204 else 11210 else
11205 echo "configure: failed program was:" >&5 11211 echo "configure: failed program was:" >&5
11206 cat conftest.$ac_ext >&5 11212 cat conftest.$ac_ext >&5
11212 else echo "$ac_t""$db_h_path" 1>&6 11218 else echo "$ac_t""$db_h_path" 1>&6
11213 fi 11219 fi
11214 11220
11215 if test "$with_database_berkdb" != "no"; then 11221 if test "$with_database_berkdb" != "no"; then
11216 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 11222 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11217 echo "configure:11218: checking for Berkeley DB version" >&5 11223 echo "configure:11224: checking for Berkeley DB version" >&5
11218 cat > conftest.$ac_ext <<EOF 11224 cat > conftest.$ac_ext <<EOF
11219 #line 11220 "configure" 11225 #line 11226 "configure"
11220 #include "confdefs.h" 11226 #include "confdefs.h"
11221 #include <$db_h_path> 11227 #include <$db_h_path>
11222 #if DB_VERSION_MAJOR > 1 11228 #if DB_VERSION_MAJOR > 1
11223 yes 11229 yes
11224 #endif 11230 #endif
11233 echo "$ac_t""1" 1>&6; dbfunc=dbopen 11239 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11234 fi 11240 fi
11235 rm -f conftest* 11241 rm -f conftest*
11236 11242
11237 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 11243 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11238 echo "configure:11239: checking for $dbfunc" >&5 11244 echo "configure:11245: checking for $dbfunc" >&5
11239 11245
11240 cat > conftest.$ac_ext <<EOF 11246 cat > conftest.$ac_ext <<EOF
11241 #line 11242 "configure" 11247 #line 11248 "configure"
11242 #include "confdefs.h" 11248 #include "confdefs.h"
11243 /* System header to define __stub macros and hopefully few prototypes, 11249 /* System header to define __stub macros and hopefully few prototypes,
11244 which can conflict with char $dbfunc(); below. */ 11250 which can conflict with char $dbfunc(); below. */
11245 #include <assert.h> 11251 #include <assert.h>
11246 /* Override any gcc2 internal prototype to avoid an error. */ 11252 /* Override any gcc2 internal prototype to avoid an error. */
11259 $dbfunc(); 11265 $dbfunc();
11260 #endif 11266 #endif
11261 11267
11262 ; return 0; } 11268 ; return 0; }
11263 EOF 11269 EOF
11264 if { (eval echo configure:11265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11270 if { (eval echo configure:11271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11265 rm -rf conftest* 11271 rm -rf conftest*
11266 eval "ac_cv_func_$dbfunc=yes" 11272 eval "ac_cv_func_$dbfunc=yes"
11267 else 11273 else
11268 echo "configure: failed program was:" >&5 11274 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5 11275 cat conftest.$ac_ext >&5
11278 else 11284 else
11279 echo "$ac_t""no" 1>&6 11285 echo "$ac_t""no" 1>&6
11280 11286
11281 11287
11282 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 11288 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11283 echo "configure:11284: checking for $dbfunc in -ldb" >&5 11289 echo "configure:11290: checking for $dbfunc in -ldb" >&5
11284 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 11290 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11285 11291
11286 xe_check_libs=" -ldb " 11292 xe_check_libs=" -ldb "
11287 cat > conftest.$ac_ext <<EOF 11293 cat > conftest.$ac_ext <<EOF
11288 #line 11289 "configure" 11294 #line 11295 "configure"
11289 #include "confdefs.h" 11295 #include "confdefs.h"
11290 /* Override any gcc2 internal prototype to avoid an error. */ 11296 /* Override any gcc2 internal prototype to avoid an error. */
11291 /* We use char because int might match the return type of a gcc2 11297 /* We use char because int might match the return type of a gcc2
11292 builtin and then its argument prototype would still apply. */ 11298 builtin and then its argument prototype would still apply. */
11293 char $dbfunc(); 11299 char $dbfunc();
11294 11300
11295 int main() { 11301 int main() {
11296 $dbfunc() 11302 $dbfunc()
11297 ; return 0; } 11303 ; return 0; }
11298 EOF 11304 EOF
11299 if { (eval echo configure:11300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11305 if { (eval echo configure:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11300 rm -rf conftest* 11306 rm -rf conftest*
11301 eval "ac_cv_lib_$ac_lib_var=yes" 11307 eval "ac_cv_lib_$ac_lib_var=yes"
11302 else 11308 else
11303 echo "configure: failed program was:" >&5 11309 echo "configure: failed program was:" >&5
11304 cat conftest.$ac_ext >&5 11310 cat conftest.$ac_ext >&5
11358 fi 11364 fi
11359 11365
11360 if test "$with_socks" = "yes"; then 11366 if test "$with_socks" = "yes"; then
11361 11367
11362 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 11368 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11363 echo "configure:11364: checking for SOCKSinit in -lsocks" >&5 11369 echo "configure:11370: checking for SOCKSinit in -lsocks" >&5
11364 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 11370 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11365 11371
11366 xe_check_libs=" -lsocks " 11372 xe_check_libs=" -lsocks "
11367 cat > conftest.$ac_ext <<EOF 11373 cat > conftest.$ac_ext <<EOF
11368 #line 11369 "configure" 11374 #line 11375 "configure"
11369 #include "confdefs.h" 11375 #include "confdefs.h"
11370 /* Override any gcc2 internal prototype to avoid an error. */ 11376 /* Override any gcc2 internal prototype to avoid an error. */
11371 /* We use char because int might match the return type of a gcc2 11377 /* We use char because int might match the return type of a gcc2
11372 builtin and then its argument prototype would still apply. */ 11378 builtin and then its argument prototype would still apply. */
11373 char SOCKSinit(); 11379 char SOCKSinit();
11374 11380
11375 int main() { 11381 int main() {
11376 SOCKSinit() 11382 SOCKSinit()
11377 ; return 0; } 11383 ; return 0; }
11378 EOF 11384 EOF
11379 if { (eval echo configure:11380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11385 if { (eval echo configure:11386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11380 rm -rf conftest* 11386 rm -rf conftest*
11381 eval "ac_cv_lib_$ac_lib_var=yes" 11387 eval "ac_cv_lib_$ac_lib_var=yes"
11382 else 11388 else
11383 echo "configure: failed program was:" >&5 11389 echo "configure: failed program was:" >&5
11384 cat conftest.$ac_ext >&5 11390 cat conftest.$ac_ext >&5
11433 11439
11434 for ac_hdr in dlfcn.h 11440 for ac_hdr in dlfcn.h
11435 do 11441 do
11436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11438 echo "configure:11439: checking for $ac_hdr" >&5 11444 echo "configure:11445: checking for $ac_hdr" >&5
11439 11445
11440 cat > conftest.$ac_ext <<EOF 11446 cat > conftest.$ac_ext <<EOF
11441 #line 11442 "configure" 11447 #line 11448 "configure"
11442 #include "confdefs.h" 11448 #include "confdefs.h"
11443 #include <$ac_hdr> 11449 #include <$ac_hdr>
11444 EOF 11450 EOF
11445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11446 { (eval echo configure:11447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11452 { (eval echo configure:11453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11448 if test -z "$ac_err"; then 11454 if test -z "$ac_err"; then
11449 rm -rf conftest* 11455 rm -rf conftest*
11450 eval "ac_cv_header_$ac_safe=yes" 11456 eval "ac_cv_header_$ac_safe=yes"
11451 else 11457 else
11472 fi 11478 fi
11473 done 11479 done
11474 11480
11475 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11481 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11476 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11482 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11477 echo "configure:11478: checking for dlopen in -ldl" >&5 11483 echo "configure:11484: checking for dlopen in -ldl" >&5
11478 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11484 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11479 11485
11480 xe_check_libs=" -ldl " 11486 xe_check_libs=" -ldl "
11481 cat > conftest.$ac_ext <<EOF 11487 cat > conftest.$ac_ext <<EOF
11482 #line 11483 "configure" 11488 #line 11489 "configure"
11483 #include "confdefs.h" 11489 #include "confdefs.h"
11484 /* Override any gcc2 internal prototype to avoid an error. */ 11490 /* Override any gcc2 internal prototype to avoid an error. */
11485 /* We use char because int might match the return type of a gcc2 11491 /* We use char because int might match the return type of a gcc2
11486 builtin and then its argument prototype would still apply. */ 11492 builtin and then its argument prototype would still apply. */
11487 char dlopen(); 11493 char dlopen();
11488 11494
11489 int main() { 11495 int main() {
11490 dlopen() 11496 dlopen()
11491 ; return 0; } 11497 ; return 0; }
11492 EOF 11498 EOF
11493 if { (eval echo configure:11494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11499 if { (eval echo configure:11500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11494 rm -rf conftest* 11500 rm -rf conftest*
11495 eval "ac_cv_lib_$ac_lib_var=yes" 11501 eval "ac_cv_lib_$ac_lib_var=yes"
11496 else 11502 else
11497 echo "configure: failed program was:" >&5 11503 echo "configure: failed program was:" >&5
11498 cat conftest.$ac_ext >&5 11504 cat conftest.$ac_ext >&5
11517 fi 11523 fi
11518 11524
11519 } 11525 }
11520 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11526 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11521 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 11527 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11522 echo "configure:11523: checking for _dlopen in -lc" >&5 11528 echo "configure:11529: checking for _dlopen in -lc" >&5
11523 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 11529 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11524 11530
11525 xe_check_libs=" -lc " 11531 xe_check_libs=" -lc "
11526 cat > conftest.$ac_ext <<EOF 11532 cat > conftest.$ac_ext <<EOF
11527 #line 11528 "configure" 11533 #line 11534 "configure"
11528 #include "confdefs.h" 11534 #include "confdefs.h"
11529 /* Override any gcc2 internal prototype to avoid an error. */ 11535 /* Override any gcc2 internal prototype to avoid an error. */
11530 /* We use char because int might match the return type of a gcc2 11536 /* We use char because int might match the return type of a gcc2
11531 builtin and then its argument prototype would still apply. */ 11537 builtin and then its argument prototype would still apply. */
11532 char _dlopen(); 11538 char _dlopen();
11533 11539
11534 int main() { 11540 int main() {
11535 _dlopen() 11541 _dlopen()
11536 ; return 0; } 11542 ; return 0; }
11537 EOF 11543 EOF
11538 if { (eval echo configure:11539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11544 if { (eval echo configure:11545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11539 rm -rf conftest* 11545 rm -rf conftest*
11540 eval "ac_cv_lib_$ac_lib_var=yes" 11546 eval "ac_cv_lib_$ac_lib_var=yes"
11541 else 11547 else
11542 echo "configure: failed program was:" >&5 11548 echo "configure: failed program was:" >&5
11543 cat conftest.$ac_ext >&5 11549 cat conftest.$ac_ext >&5
11562 fi 11568 fi
11563 11569
11564 } 11570 }
11565 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11571 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11566 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11572 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11567 echo "configure:11568: checking for dlopen in -lc" >&5 11573 echo "configure:11574: checking for dlopen in -lc" >&5
11568 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11574 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11569 11575
11570 xe_check_libs=" -lc " 11576 xe_check_libs=" -lc "
11571 cat > conftest.$ac_ext <<EOF 11577 cat > conftest.$ac_ext <<EOF
11572 #line 11573 "configure" 11578 #line 11579 "configure"
11573 #include "confdefs.h" 11579 #include "confdefs.h"
11574 /* Override any gcc2 internal prototype to avoid an error. */ 11580 /* Override any gcc2 internal prototype to avoid an error. */
11575 /* We use char because int might match the return type of a gcc2 11581 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */ 11582 builtin and then its argument prototype would still apply. */
11577 char dlopen(); 11583 char dlopen();
11578 11584
11579 int main() { 11585 int main() {
11580 dlopen() 11586 dlopen()
11581 ; return 0; } 11587 ; return 0; }
11582 EOF 11588 EOF
11583 if { (eval echo configure:11584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11589 if { (eval echo configure:11590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11584 rm -rf conftest* 11590 rm -rf conftest*
11585 eval "ac_cv_lib_$ac_lib_var=yes" 11591 eval "ac_cv_lib_$ac_lib_var=yes"
11586 else 11592 else
11587 echo "configure: failed program was:" >&5 11593 echo "configure: failed program was:" >&5
11588 cat conftest.$ac_ext >&5 11594 cat conftest.$ac_ext >&5
11607 fi 11613 fi
11608 11614
11609 } 11615 }
11610 test -z "$with_shlib" && { 11616 test -z "$with_shlib" && {
11611 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11617 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11612 echo "configure:11613: checking for shl_load in -ldld" >&5 11618 echo "configure:11619: checking for shl_load in -ldld" >&5
11613 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11619 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11614 11620
11615 xe_check_libs=" -ldld " 11621 xe_check_libs=" -ldld "
11616 cat > conftest.$ac_ext <<EOF 11622 cat > conftest.$ac_ext <<EOF
11617 #line 11618 "configure" 11623 #line 11624 "configure"
11618 #include "confdefs.h" 11624 #include "confdefs.h"
11619 /* Override any gcc2 internal prototype to avoid an error. */ 11625 /* Override any gcc2 internal prototype to avoid an error. */
11620 /* We use char because int might match the return type of a gcc2 11626 /* We use char because int might match the return type of a gcc2
11621 builtin and then its argument prototype would still apply. */ 11627 builtin and then its argument prototype would still apply. */
11622 char shl_load(); 11628 char shl_load();
11623 11629
11624 int main() { 11630 int main() {
11625 shl_load() 11631 shl_load()
11626 ; return 0; } 11632 ; return 0; }
11627 EOF 11633 EOF
11628 if { (eval echo configure:11629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11634 if { (eval echo configure:11635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11629 rm -rf conftest* 11635 rm -rf conftest*
11630 eval "ac_cv_lib_$ac_lib_var=yes" 11636 eval "ac_cv_lib_$ac_lib_var=yes"
11631 else 11637 else
11632 echo "configure: failed program was:" >&5 11638 echo "configure: failed program was:" >&5
11633 cat conftest.$ac_ext >&5 11639 cat conftest.$ac_ext >&5
11652 fi 11658 fi
11653 11659
11654 } 11660 }
11655 test -z "$with_shlib" && { 11661 test -z "$with_shlib" && {
11656 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 11662 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11657 echo "configure:11658: checking for dld_init in -ldld" >&5 11663 echo "configure:11664: checking for dld_init in -ldld" >&5
11658 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 11664 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11659 11665
11660 xe_check_libs=" -ldld " 11666 xe_check_libs=" -ldld "
11661 cat > conftest.$ac_ext <<EOF 11667 cat > conftest.$ac_ext <<EOF
11662 #line 11663 "configure" 11668 #line 11669 "configure"
11663 #include "confdefs.h" 11669 #include "confdefs.h"
11664 /* Override any gcc2 internal prototype to avoid an error. */ 11670 /* Override any gcc2 internal prototype to avoid an error. */
11665 /* We use char because int might match the return type of a gcc2 11671 /* We use char because int might match the return type of a gcc2
11666 builtin and then its argument prototype would still apply. */ 11672 builtin and then its argument prototype would still apply. */
11667 char dld_init(); 11673 char dld_init();
11668 11674
11669 int main() { 11675 int main() {
11670 dld_init() 11676 dld_init()
11671 ; return 0; } 11677 ; return 0; }
11672 EOF 11678 EOF
11673 if { (eval echo configure:11674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11679 if { (eval echo configure:11680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11674 rm -rf conftest* 11680 rm -rf conftest*
11675 eval "ac_cv_lib_$ac_lib_var=yes" 11681 eval "ac_cv_lib_$ac_lib_var=yes"
11676 else 11682 else
11677 echo "configure: failed program was:" >&5 11683 echo "configure: failed program was:" >&5
11678 cat conftest.$ac_ext >&5 11684 cat conftest.$ac_ext >&5
11718 dll_lflags="-shared" 11724 dll_lflags="-shared"
11719 dll_cflags="-r" 11725 dll_cflags="-r"
11720 dll_oflags="-o " 11726 dll_oflags="-o "
11721 11727
11722 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 11728 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
11723 echo "configure:11724: checking how to build a shared library" >&5 11729 echo "configure:11730: checking how to build a shared library" >&5
11724 case `uname -rs` in 11730 case `uname -rs` in
11725 UNIX_SV*|UNIX_System_V*) 11731 UNIX_SV*|UNIX_System_V*)
11726 dll_lflags="-G" 11732 dll_lflags="-G"
11727 dll_cflags=-Kpic 11733 dll_cflags=-Kpic
11728 dll_ld="ld" 11734 dll_ld="ld"
11809 11815
11810 11816
11811 for ac_func in dlerror 11817 for ac_func in dlerror
11812 do 11818 do
11813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11814 echo "configure:11815: checking for $ac_func" >&5 11820 echo "configure:11821: checking for $ac_func" >&5
11815 11821
11816 cat > conftest.$ac_ext <<EOF 11822 cat > conftest.$ac_ext <<EOF
11817 #line 11818 "configure" 11823 #line 11824 "configure"
11818 #include "confdefs.h" 11824 #include "confdefs.h"
11819 /* System header to define __stub macros and hopefully few prototypes, 11825 /* System header to define __stub macros and hopefully few prototypes,
11820 which can conflict with char $ac_func(); below. */ 11826 which can conflict with char $ac_func(); below. */
11821 #include <assert.h> 11827 #include <assert.h>
11822 /* Override any gcc2 internal prototype to avoid an error. */ 11828 /* Override any gcc2 internal prototype to avoid an error. */
11835 $ac_func(); 11841 $ac_func();
11836 #endif 11842 #endif
11837 11843
11838 ; return 0; } 11844 ; return 0; }
11839 EOF 11845 EOF
11840 if { (eval echo configure:11841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11846 if { (eval echo configure:11847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11841 rm -rf conftest* 11847 rm -rf conftest*
11842 eval "ac_cv_func_$ac_func=yes" 11848 eval "ac_cv_func_$ac_func=yes"
11843 else 11849 else
11844 echo "configure: failed program was:" >&5 11850 echo "configure: failed program was:" >&5
11845 cat conftest.$ac_ext >&5 11851 cat conftest.$ac_ext >&5
11871 *) ;; 11877 *) ;;
11872 esac 11878 esac
11873 fi 11879 fi
11874 11880
11875 cat > conftest.$ac_ext <<EOF 11881 cat > conftest.$ac_ext <<EOF
11876 #line 11877 "configure" 11882 #line 11883 "configure"
11877 #include "confdefs.h" 11883 #include "confdefs.h"
11878 int main(int c,char *v[]){return 0;} 11884 int main(int c,char *v[]){return 0;}
11879 EOF 11885 EOF
11880 if { (eval echo configure:11881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11886 if { (eval echo configure:11887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11881 then 11887 then
11882 : 11888 :
11883 else 11889 else
11884 conftest_rc="$?" 11890 conftest_rc="$?"
11885 echo "configure: failed program was:" >&5 11891 echo "configure: failed program was:" >&5