comparison configure @ 452:3d3049ae1304 r21-2-41

Import from CVS: tag r21-2-41
author cvs
date Mon, 13 Aug 2007 11:40:21 +0200
parents 98528da0b7fc
children c33ae14dd6d0
comparison
equal deleted inserted replaced
451:8ad70c5cd5d7 452:3d3049ae1304
249 with_scrollbars='' 249 with_scrollbars=''
250 with_widgets='' 250 with_widgets=''
251 with_dialogs='' 251 with_dialogs=''
252 with_file_coding='' 252 with_file_coding=''
253 cpp='' cppflags='' libs='' ldflags='' 253 cpp='' cppflags='' libs='' ldflags=''
254 extra_includes=''
254 dynamic='' 255 dynamic=''
255 with_x11='' 256 with_x11=''
256 with_msw='' 257 with_msw=''
257 rel_alloc='default' 258 rel_alloc='default'
258 with_system_malloc='default' 259 with_system_malloc='default'
724 l | lu | luc | luci | lucid ) val=lucid ;; 725 l | lu | luc | luci | lucid ) val=lucid ;;
725 m | mo | mot | moti | motif ) val=motif ;; 726 m | mo | mot | moti | motif ) val=motif ;;
726 a | at | ath | athe | athen | athena ) val=athena ;; 727 a | at | ath | athe | athen | athena ) val=athena ;;
727 n | no | non | none ) val=no ;; 728 n | no | non | none ) val=no ;;
728 y | ye | yes ) val=yes ;; 729 y | ye | yes ) val=yes ;;
730 m | ms | msw ) val=msw ;;
729 * ) (echo "$progname: Usage error:" 731 * ) (echo "$progname: Usage error:"
730 echo " " "The \`--$optname' option must have one of these values: 732 echo " " "The \`--$optname' option must have one of these values:
731 \`lucid', \`motif', \`athena', \`yes', or \`no'." 733 \`lucid', \`motif', \`athena', \`yes', or \`no'."
732 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 734 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
733 esac 735 esac
828 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
829 fi 831 fi
830 fi 832 fi
831 833
832 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 834 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
833 echo "configure:834: checking whether ln -s works" >&5 835 echo "configure:836: checking whether ln -s works" >&5
834 836
835 rm -f conftestdata 837 rm -f conftestdata
836 if ln -s X conftestdata 2>/dev/null 838 if ln -s X conftestdata 2>/dev/null
837 then 839 then
838 rm -f conftestdata 840 rm -f conftestdata
1093 } 1095 }
1094 1096
1095 1097
1096 1098
1097 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 1099 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1098 echo "configure:1099: checking "host system type"" >&5 1100 echo "configure:1101: checking "host system type"" >&5
1099 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1101 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1100 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 1102 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1101 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1103 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1102 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1104 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1103 echo "$ac_t""$configuration" 1>&6 1105 echo "$ac_t""$configuration" 1>&6
1612 xe_save_CFLAGS="$CFLAGS" 1614 xe_save_CFLAGS="$CFLAGS"
1613 1615
1614 # Extract the first word of "gcc", so it can be a program name with args. 1616 # Extract the first word of "gcc", so it can be a program name with args.
1615 set dummy gcc; ac_word=$2 1617 set dummy gcc; ac_word=$2
1616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1617 echo "configure:1618: checking for $ac_word" >&5 1619 echo "configure:1620: checking for $ac_word" >&5
1618 1620
1619 if test -n "$CC"; then 1621 if test -n "$CC"; then
1620 ac_cv_prog_CC="$CC" # Let the user override the test. 1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1621 else 1623 else
1622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1639 1641
1640 if test -z "$CC"; then 1642 if test -z "$CC"; then
1641 # Extract the first word of "cc", so it can be a program name with args. 1643 # Extract the first word of "cc", so it can be a program name with args.
1642 set dummy cc; ac_word=$2 1644 set dummy cc; ac_word=$2
1643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1644 echo "configure:1645: checking for $ac_word" >&5 1646 echo "configure:1647: checking for $ac_word" >&5
1645 1647
1646 if test -n "$CC"; then 1648 if test -n "$CC"; then
1647 ac_cv_prog_CC="$CC" # Let the user override the test. 1649 ac_cv_prog_CC="$CC" # Let the user override the test.
1648 else 1650 else
1649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1687 case "`uname -s`" in 1689 case "`uname -s`" in
1688 *win32* | *WIN32*) 1690 *win32* | *WIN32*)
1689 # Extract the first word of "cl", so it can be a program name with args. 1691 # Extract the first word of "cl", so it can be a program name with args.
1690 set dummy cl; ac_word=$2 1692 set dummy cl; ac_word=$2
1691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1692 echo "configure:1693: checking for $ac_word" >&5 1694 echo "configure:1695: checking for $ac_word" >&5
1693 1695
1694 if test -n "$CC"; then 1696 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test. 1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 else 1698 else
1697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1716 fi 1718 fi
1717 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1719 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1718 fi 1720 fi
1719 1721
1720 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1721 echo "configure:1722: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1723 echo "configure:1724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1722 1724
1723 ac_ext=c 1725 ac_ext=c
1724 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1726 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1725 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1727 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1726 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1728 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1729 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1731 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1730 cross_compiling=no 1732 cross_compiling=no
1731 1733
1732 cat > conftest.$ac_ext << EOF 1734 cat > conftest.$ac_ext << EOF
1733 1735
1734 #line 1735 "configure" 1736 #line 1737 "configure"
1735 #include "confdefs.h" 1737 #include "confdefs.h"
1736 1738
1737 main(){return(0);} 1739 main(){return(0);}
1738 EOF 1740 EOF
1739 if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1741 if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1740 ac_cv_prog_cc_works=yes 1742 ac_cv_prog_cc_works=yes
1741 # If we can't run a trivial program, we are probably using a cross compiler. 1743 # If we can't run a trivial program, we are probably using a cross compiler.
1742 if (./conftest; exit) 2>/dev/null; then 1744 if (./conftest; exit) 2>/dev/null; then
1743 ac_cv_prog_cc_cross=no 1745 ac_cv_prog_cc_cross=no
1744 else 1746 else
1762 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1763 if test $ac_cv_prog_cc_works = no; then 1765 if test $ac_cv_prog_cc_works = no; then
1764 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1765 fi 1767 fi
1766 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1767 echo "configure:1768: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1769 echo "configure:1770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1768 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1769 cross_compiling=$ac_cv_prog_cc_cross 1771 cross_compiling=$ac_cv_prog_cc_cross
1770 1772
1771 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1772 echo "configure:1773: checking whether we are using GNU C" >&5 1774 echo "configure:1775: checking whether we are using GNU C" >&5
1773 1775
1774 cat > conftest.c <<EOF 1776 cat > conftest.c <<EOF
1775 #ifdef __GNUC__ 1777 #ifdef __GNUC__
1776 yes; 1778 yes;
1777 #endif 1779 #endif
1778 EOF 1780 EOF
1779 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1781 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1780 ac_cv_prog_gcc=yes 1782 ac_cv_prog_gcc=yes
1781 else 1783 else
1782 ac_cv_prog_gcc=no 1784 ac_cv_prog_gcc=no
1783 fi 1785 fi
1784 1786
1792 1794
1793 ac_test_CFLAGS="${CFLAGS+set}" 1795 ac_test_CFLAGS="${CFLAGS+set}"
1794 ac_save_CFLAGS="$CFLAGS" 1796 ac_save_CFLAGS="$CFLAGS"
1795 CFLAGS= 1797 CFLAGS=
1796 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1798 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1797 echo "configure:1798: checking whether ${CC-cc} accepts -g" >&5 1799 echo "configure:1800: checking whether ${CC-cc} accepts -g" >&5
1798 1800
1799 echo 'void f(){}' > conftest.c 1801 echo 'void f(){}' > conftest.c
1800 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1802 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1801 ac_cv_prog_cc_g=yes 1803 ac_cv_prog_cc_g=yes
1802 else 1804 else
1825 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1827 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1826 CC=${NON_GNU_CC-cc} 1828 CC=${NON_GNU_CC-cc}
1827 # Extract the first word of "gcc", so it can be a program name with args. 1829 # Extract the first word of "gcc", so it can be a program name with args.
1828 set dummy gcc; ac_word=$2 1830 set dummy gcc; ac_word=$2
1829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1830 echo "configure:1831: checking for $ac_word" >&5 1832 echo "configure:1833: checking for $ac_word" >&5
1831 1833
1832 if test -n "$CC"; then 1834 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test. 1835 ac_cv_prog_CC="$CC" # Let the user override the test.
1834 else 1836 else
1835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1852 1854
1853 if test -z "$CC"; then 1855 if test -z "$CC"; then
1854 # Extract the first word of "cc", so it can be a program name with args. 1856 # Extract the first word of "cc", so it can be a program name with args.
1855 set dummy cc; ac_word=$2 1857 set dummy cc; ac_word=$2
1856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_word" >&5 1859 echo "configure:1860: checking for $ac_word" >&5
1858 1860
1859 if test -n "$CC"; then 1861 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test. 1862 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else 1863 else
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1900 case "`uname -s`" in 1902 case "`uname -s`" in
1901 *win32* | *WIN32*) 1903 *win32* | *WIN32*)
1902 # Extract the first word of "cl", so it can be a program name with args. 1904 # Extract the first word of "cl", so it can be a program name with args.
1903 set dummy cl; ac_word=$2 1905 set dummy cl; ac_word=$2
1904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $ac_word" >&5 1907 echo "configure:1908: checking for $ac_word" >&5
1906 1908
1907 if test -n "$CC"; then 1909 if test -n "$CC"; then
1908 ac_cv_prog_CC="$CC" # Let the user override the test. 1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1909 else 1911 else
1910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1929 fi 1931 fi
1930 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1932 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1931 fi 1933 fi
1932 1934
1933 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1934 echo "configure:1935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1936 echo "configure:1937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1935 1937
1936 ac_ext=c 1938 ac_ext=c
1937 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1939 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1938 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1940 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1939 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1941 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1942 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1944 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1943 cross_compiling=no 1945 cross_compiling=no
1944 1946
1945 cat > conftest.$ac_ext << EOF 1947 cat > conftest.$ac_ext << EOF
1946 1948
1947 #line 1948 "configure" 1949 #line 1950 "configure"
1948 #include "confdefs.h" 1950 #include "confdefs.h"
1949 1951
1950 main(){return(0);} 1952 main(){return(0);}
1951 EOF 1953 EOF
1952 if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1954 if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1953 ac_cv_prog_cc_works=yes 1955 ac_cv_prog_cc_works=yes
1954 # If we can't run a trivial program, we are probably using a cross compiler. 1956 # If we can't run a trivial program, we are probably using a cross compiler.
1955 if (./conftest; exit) 2>/dev/null; then 1957 if (./conftest; exit) 2>/dev/null; then
1956 ac_cv_prog_cc_cross=no 1958 ac_cv_prog_cc_cross=no
1957 else 1959 else
1975 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1977 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1976 if test $ac_cv_prog_cc_works = no; then 1978 if test $ac_cv_prog_cc_works = no; then
1977 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1979 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1978 fi 1980 fi
1979 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1981 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1980 echo "configure:1981: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1982 echo "configure:1983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1981 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1983 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1982 cross_compiling=$ac_cv_prog_cc_cross 1984 cross_compiling=$ac_cv_prog_cc_cross
1983 1985
1984 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1986 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1985 echo "configure:1986: checking whether we are using GNU C" >&5 1987 echo "configure:1988: checking whether we are using GNU C" >&5
1986 1988
1987 cat > conftest.c <<EOF 1989 cat > conftest.c <<EOF
1988 #ifdef __GNUC__ 1990 #ifdef __GNUC__
1989 yes; 1991 yes;
1990 #endif 1992 #endif
1991 EOF 1993 EOF
1992 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1994 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1993 ac_cv_prog_gcc=yes 1995 ac_cv_prog_gcc=yes
1994 else 1996 else
1995 ac_cv_prog_gcc=no 1997 ac_cv_prog_gcc=no
1996 fi 1998 fi
1997 1999
2005 2007
2006 ac_test_CFLAGS="${CFLAGS+set}" 2008 ac_test_CFLAGS="${CFLAGS+set}"
2007 ac_save_CFLAGS="$CFLAGS" 2009 ac_save_CFLAGS="$CFLAGS"
2008 CFLAGS= 2010 CFLAGS=
2009 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2011 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether ${CC-cc} accepts -g" >&5 2012 echo "configure:2013: checking whether ${CC-cc} accepts -g" >&5
2011 2013
2012 echo 'void f(){}' > conftest.c 2014 echo 'void f(){}' > conftest.c
2013 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2015 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2014 ac_cv_prog_cc_g=yes 2016 ac_cv_prog_cc_g=yes
2015 else 2017 else
2038 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 2040 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2039 CC=gcc 2041 CC=gcc
2040 # Extract the first word of "gcc", so it can be a program name with args. 2042 # Extract the first word of "gcc", so it can be a program name with args.
2041 set dummy gcc; ac_word=$2 2043 set dummy gcc; ac_word=$2
2042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2043 echo "configure:2044: checking for $ac_word" >&5 2045 echo "configure:2046: checking for $ac_word" >&5
2044 2046
2045 if test -n "$CC"; then 2047 if test -n "$CC"; then
2046 ac_cv_prog_CC="$CC" # Let the user override the test. 2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2047 else 2049 else
2048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2065 2067
2066 if test -z "$CC"; then 2068 if test -z "$CC"; then
2067 # Extract the first word of "cc", so it can be a program name with args. 2069 # Extract the first word of "cc", so it can be a program name with args.
2068 set dummy cc; ac_word=$2 2070 set dummy cc; ac_word=$2
2069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2070 echo "configure:2071: checking for $ac_word" >&5 2072 echo "configure:2073: checking for $ac_word" >&5
2071 2073
2072 if test -n "$CC"; then 2074 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test. 2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2074 else 2076 else
2075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2113 case "`uname -s`" in 2115 case "`uname -s`" in
2114 *win32* | *WIN32*) 2116 *win32* | *WIN32*)
2115 # Extract the first word of "cl", so it can be a program name with args. 2117 # Extract the first word of "cl", so it can be a program name with args.
2116 set dummy cl; ac_word=$2 2118 set dummy cl; ac_word=$2
2117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2118 echo "configure:2119: checking for $ac_word" >&5 2120 echo "configure:2121: checking for $ac_word" >&5
2119 2121
2120 if test -n "$CC"; then 2122 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test. 2123 ac_cv_prog_CC="$CC" # Let the user override the test.
2122 else 2124 else
2123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2142 fi 2144 fi
2143 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2145 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2144 fi 2146 fi
2145 2147
2146 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2148 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2147 echo "configure:2148: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2149 echo "configure:2150: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2148 2150
2149 ac_ext=c 2151 ac_ext=c
2150 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2152 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2151 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2153 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2152 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2154 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2155 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2157 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2156 cross_compiling=no 2158 cross_compiling=no
2157 2159
2158 cat > conftest.$ac_ext << EOF 2160 cat > conftest.$ac_ext << EOF
2159 2161
2160 #line 2161 "configure" 2162 #line 2163 "configure"
2161 #include "confdefs.h" 2163 #include "confdefs.h"
2162 2164
2163 main(){return(0);} 2165 main(){return(0);}
2164 EOF 2166 EOF
2165 if { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2166 ac_cv_prog_cc_works=yes 2168 ac_cv_prog_cc_works=yes
2167 # If we can't run a trivial program, we are probably using a cross compiler. 2169 # If we can't run a trivial program, we are probably using a cross compiler.
2168 if (./conftest; exit) 2>/dev/null; then 2170 if (./conftest; exit) 2>/dev/null; then
2169 ac_cv_prog_cc_cross=no 2171 ac_cv_prog_cc_cross=no
2170 else 2172 else
2188 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2190 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2189 if test $ac_cv_prog_cc_works = no; then 2191 if test $ac_cv_prog_cc_works = no; then
2190 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2192 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2191 fi 2193 fi
2192 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2194 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2193 echo "configure:2194: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2195 echo "configure:2196: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2194 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2196 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2195 cross_compiling=$ac_cv_prog_cc_cross 2197 cross_compiling=$ac_cv_prog_cc_cross
2196 2198
2197 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2199 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2198 echo "configure:2199: checking whether we are using GNU C" >&5 2200 echo "configure:2201: checking whether we are using GNU C" >&5
2199 2201
2200 cat > conftest.c <<EOF 2202 cat > conftest.c <<EOF
2201 #ifdef __GNUC__ 2203 #ifdef __GNUC__
2202 yes; 2204 yes;
2203 #endif 2205 #endif
2204 EOF 2206 EOF
2205 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2207 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2206 ac_cv_prog_gcc=yes 2208 ac_cv_prog_gcc=yes
2207 else 2209 else
2208 ac_cv_prog_gcc=no 2210 ac_cv_prog_gcc=no
2209 fi 2211 fi
2210 2212
2218 2220
2219 ac_test_CFLAGS="${CFLAGS+set}" 2221 ac_test_CFLAGS="${CFLAGS+set}"
2220 ac_save_CFLAGS="$CFLAGS" 2222 ac_save_CFLAGS="$CFLAGS"
2221 CFLAGS= 2223 CFLAGS=
2222 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2224 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2223 echo "configure:2224: checking whether ${CC-cc} accepts -g" >&5 2225 echo "configure:2226: checking whether ${CC-cc} accepts -g" >&5
2224 2226
2225 echo 'void f(){}' > conftest.c 2227 echo 'void f(){}' > conftest.c
2226 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2228 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2227 ac_cv_prog_cc_g=yes 2229 ac_cv_prog_cc_g=yes
2228 else 2230 else
2255 test -n "$CPP" -a -d "$CPP" && CPP= 2257 test -n "$CPP" -a -d "$CPP" && CPP=
2256 2258
2257 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2259 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2258 2260
2259 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2261 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2260 echo "configure:2261: checking how to run the C preprocessor" >&5 2262 echo "configure:2263: checking how to run the C preprocessor" >&5
2261 # On Suns, sometimes $CPP names a directory. 2263 # On Suns, sometimes $CPP names a directory.
2262 if test -n "$CPP" && test -d "$CPP"; then 2264 if test -n "$CPP" && test -d "$CPP"; then
2263 CPP= 2265 CPP=
2264 fi 2266 fi
2265 if test -z "$CPP"; then 2267 if test -z "$CPP"; then
2268 # substituted into the Makefile and "${CC-cc}" will confuse make. 2270 # substituted into the Makefile and "${CC-cc}" will confuse make.
2269 CPP="${CC-cc} -E" 2271 CPP="${CC-cc} -E"
2270 # On the NeXT, cc -E runs the code through the compiler's parser, 2272 # On the NeXT, cc -E runs the code through the compiler's parser,
2271 # not just through cpp. 2273 # not just through cpp.
2272 cat > conftest.$ac_ext <<EOF 2274 cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure" 2275 #line 2276 "configure"
2274 #include "confdefs.h" 2276 #include "confdefs.h"
2275 #include <assert.h> 2277 #include <assert.h>
2276 Syntax Error 2278 Syntax Error
2277 EOF 2279 EOF
2278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2279 { (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2281 { (eval echo configure:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2281 if test -z "$ac_err"; then 2283 if test -z "$ac_err"; then
2282 : 2284 :
2283 else 2285 else
2284 echo "$ac_err" >&5 2286 echo "$ac_err" >&5
2285 echo "configure: failed program was:" >&5 2287 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5 2288 cat conftest.$ac_ext >&5
2287 rm -rf conftest* 2289 rm -rf conftest*
2288 CPP="${CC-cc} -E -traditional-cpp" 2290 CPP="${CC-cc} -E -traditional-cpp"
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 #include <assert.h> 2294 #include <assert.h>
2293 Syntax Error 2295 Syntax Error
2294 EOF 2296 EOF
2295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2296 { (eval echo configure:2297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2298 { (eval echo configure:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2298 if test -z "$ac_err"; then 2300 if test -z "$ac_err"; then
2299 : 2301 :
2300 else 2302 else
2301 echo "$ac_err" >&5 2303 echo "$ac_err" >&5
2302 echo "configure: failed program was:" >&5 2304 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5 2305 cat conftest.$ac_ext >&5
2304 rm -rf conftest* 2306 rm -rf conftest*
2305 CPP="${CC-cc} -nologo -E" 2307 CPP="${CC-cc} -nologo -E"
2306 cat > conftest.$ac_ext <<EOF 2308 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure" 2309 #line 2310 "configure"
2308 #include "confdefs.h" 2310 #include "confdefs.h"
2309 #include <assert.h> 2311 #include <assert.h>
2310 Syntax Error 2312 Syntax Error
2311 EOF 2313 EOF
2312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2313 { (eval echo configure:2314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2315 { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2315 if test -z "$ac_err"; then 2317 if test -z "$ac_err"; then
2316 : 2318 :
2317 else 2319 else
2318 echo "$ac_err" >&5 2320 echo "$ac_err" >&5
2334 echo "$ac_t""$CPP" 1>&6 2336 echo "$ac_t""$CPP" 1>&6
2335 2337
2336 2338
2337 2339
2338 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2340 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2339 echo "configure:2340: checking for AIX" >&5 2341 echo "configure:2342: checking for AIX" >&5
2340 cat > conftest.$ac_ext <<EOF 2342 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure" 2343 #line 2344 "configure"
2342 #include "confdefs.h" 2344 #include "confdefs.h"
2343 #ifdef _AIX 2345 #ifdef _AIX
2344 yes 2346 yes
2345 #endif 2347 #endif
2346 2348
2363 rm -f conftest* 2365 rm -f conftest*
2364 2366
2365 2367
2366 2368
2367 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2369 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2368 echo "configure:2369: checking for GNU libc" >&5 2370 echo "configure:2371: checking for GNU libc" >&5
2369 cat > conftest.$ac_ext <<EOF 2371 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure" 2372 #line 2373 "configure"
2371 #include "confdefs.h" 2373 #include "confdefs.h"
2372 #include <features.h> 2374 #include <features.h>
2373 int main() { 2375 int main() {
2374 2376
2375 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2377 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2377 ******* ======= ******** &&&&&&&& 2379 ******* ======= ******** &&&&&&&&
2378 #endif 2380 #endif
2379 2381
2380 ; return 0; } 2382 ; return 0; }
2381 EOF 2383 EOF
2382 if { (eval echo configure:2383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2384 if { (eval echo configure:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2383 rm -rf conftest* 2385 rm -rf conftest*
2384 have_glibc=yes 2386 have_glibc=yes
2385 else 2387 else
2386 echo "configure: failed program was:" >&5 2388 echo "configure: failed program was:" >&5
2387 cat conftest.$ac_ext >&5 2389 cat conftest.$ac_ext >&5
2454 2456
2455 ;; 2457 ;;
2456 esac 2458 esac
2457 2459
2458 cat > conftest.$ac_ext <<EOF 2460 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure" 2461 #line 2462 "configure"
2460 #include "confdefs.h" 2462 #include "confdefs.h"
2461 int main () { 2463 int main () {
2462 #if defined __SUNPRO_C 2464 #if defined __SUNPRO_C
2463 return 11; 2465 return 11;
2464 #elif defined __DECC 2466 #elif defined __DECC
2468 #else 2470 #else
2469 return 0; 2471 return 0;
2470 #endif 2472 #endif
2471 } 2473 }
2472 EOF 2474 EOF
2473 if { (eval echo configure:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2475 if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2474 then 2476 then
2475 : 2477 :
2476 else 2478 else
2477 conftest_rc="$?" 2479 conftest_rc="$?"
2478 echo "configure: failed program was:" >&5 2480 echo "configure: failed program was:" >&5
2684 fi 2686 fi
2685 2687
2686 test "$extra_verbose" = "yes" && \ 2688 test "$extra_verbose" = "yes" && \
2687 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo "" 2689 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
2688 2690
2689 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ; 2691 case "$opsys" in mingw* | cygwin*)
2690 mingw_include=`eval "dirname $mingw_include"` ; 2692 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2691 mingw_include="-I$mingw_include/../include/mingw32" ; 2693 cygwin_include=`eval "dirname $cygwin_include"` ;
2692 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;; 2694 cygwin_include="-I$cygwin_include/../include" ;
2695 extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ;
2696 case "$opsys" in mingw*)
2697 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2698 esac
2699 ;;
2693 esac 2700 esac
2694 2701
2695 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" 2702 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2696 2703
2697 2704
2698 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi 2705 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2699 2706
2700 if test "$__USLC__" = yes; then 2707 if test "$__USLC__" = yes; then
2701 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6 2708 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2702 echo "configure:2703: checking for whether the -Kalloca compiler flag is needed" >&5 2709 echo "configure:2710: checking for whether the -Kalloca compiler flag is needed" >&5
2703 need_kalloca=no 2710 need_kalloca=no
2704 cat > conftest.$ac_ext <<EOF 2711 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure" 2712 #line 2713 "configure"
2706 #include "confdefs.h" 2713 #include "confdefs.h"
2707 2714
2708 int main() { 2715 int main() {
2709 void *x = alloca(4); 2716 void *x = alloca(4);
2710 ; return 0; } 2717 ; return 0; }
2711 EOF 2718 EOF
2712 if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2719 if { (eval echo configure:2720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2713 rm -rf conftest* 2720 rm -rf conftest*
2714 : 2721 :
2715 else 2722 else
2716 echo "configure: failed program was:" >&5 2723 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5 2724 cat conftest.$ac_ext >&5
2718 rm -rf conftest* 2725 rm -rf conftest*
2719 2726
2720 xe_save_c_switch_system="$c_switch_system" 2727 xe_save_c_switch_system="$c_switch_system"
2721 c_switch_system="$c_switch_system -Kalloca" 2728 c_switch_system="$c_switch_system -Kalloca"
2722 cat > conftest.$ac_ext <<EOF 2729 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure" 2730 #line 2731 "configure"
2724 #include "confdefs.h" 2731 #include "confdefs.h"
2725 2732
2726 int main() { 2733 int main() {
2727 void *x = alloca(4); 2734 void *x = alloca(4);
2728 ; return 0; } 2735 ; return 0; }
2729 EOF 2736 EOF
2730 if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2737 if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2731 rm -rf conftest* 2738 rm -rf conftest*
2732 need_kalloca=yes 2739 need_kalloca=yes
2733 else 2740 else
2734 echo "configure: failed program was:" >&5 2741 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5 2742 cat conftest.$ac_ext >&5
2758 CFLAGS="-O" ; fi 2765 CFLAGS="-O" ; fi
2759 fi 2766 fi
2760 2767
2761 if test "$GCC" = "yes"; then 2768 if test "$GCC" = "yes"; then
2762 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6 2769 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2763 echo "configure:2764: checking for buggy gcc versions" >&5 2770 echo "configure:2771: checking for buggy gcc versions" >&5
2764 GCC_VERSION=`$CC --version` 2771 GCC_VERSION=`$CC --version`
2765 case `uname -s`:`uname -m`:$GCC_VERSION in 2772 case `uname -s`:`uname -m`:$GCC_VERSION in
2766 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) 2773 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2767 case "$CFLAGS" in 2774 case "$CFLAGS" in
2768 *-O2*|*-O3*) 2775 *-O2*|*-O3*)
2881 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then 2888 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2882 echo " xemacs will be linked with \"dumper.o\"" 2889 echo " xemacs will be linked with \"dumper.o\""
2883 fi 2890 fi
2884 2891
2885 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2892 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2886 echo "configure:2887: checking for dynodump" >&5 2893 echo "configure:2894: checking for dynodump" >&5
2887 if test "$unexec" != "unexsol2.o"; then 2894 if test "$unexec" != "unexsol2.o"; then
2888 echo "$ac_t""no" 1>&6 2895 echo "$ac_t""no" 1>&6
2889 else 2896 else
2890 echo "$ac_t""yes" 1>&6 2897 echo "$ac_t""yes" 1>&6
2891 { test "$extra_verbose" = "yes" && cat << \EOF 2898 { test "$extra_verbose" = "yes" && cat << \EOF
2919 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2926 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2920 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2927 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2921 done 2928 done
2922 2929
2923 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2930 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2924 echo "configure:2925: checking for terminateAndUnload in -lC" >&5 2931 echo "configure:2932: checking for terminateAndUnload in -lC" >&5
2925 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2932 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2926 2933
2927 xe_check_libs=" -lC " 2934 xe_check_libs=" -lC "
2928 cat > conftest.$ac_ext <<EOF 2935 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure" 2936 #line 2937 "configure"
2930 #include "confdefs.h" 2937 #include "confdefs.h"
2931 /* Override any gcc2 internal prototype to avoid an error. */ 2938 /* Override any gcc2 internal prototype to avoid an error. */
2932 /* We use char because int might match the return type of a gcc2 2939 /* We use char because int might match the return type of a gcc2
2933 builtin and then its argument prototype would still apply. */ 2940 builtin and then its argument prototype would still apply. */
2934 char terminateAndUnload(); 2941 char terminateAndUnload();
2935 2942
2936 int main() { 2943 int main() {
2937 terminateAndUnload() 2944 terminateAndUnload()
2938 ; return 0; } 2945 ; return 0; }
2939 EOF 2946 EOF
2940 if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2941 rm -rf conftest* 2948 rm -rf conftest*
2942 eval "ac_cv_lib_$ac_lib_var=yes" 2949 eval "ac_cv_lib_$ac_lib_var=yes"
2943 else 2950 else
2944 echo "configure: failed program was:" >&5 2951 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5 2952 cat conftest.$ac_ext >&5
3043 esac 3050 esac
3044 fi 3051 fi
3045 3052
3046 if test "$add_runtime_path" = "yes"; then 3053 if test "$add_runtime_path" = "yes"; then
3047 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 3054 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3048 echo "configure:3049: checking "for runtime libraries flag"" >&5 3055 echo "configure:3056: checking "for runtime libraries flag"" >&5
3049 case "$opsys" in 3056 case "$opsys" in
3050 sol2 ) dash_r="-R" ;; 3057 sol2 ) dash_r="-R" ;;
3051 decosf* | linux* | irix*) dash_r="-rpath " ;; 3058 decosf* | linux* | irix*) dash_r="-rpath " ;;
3052 *) 3059 *)
3053 dash_r="" 3060 dash_r=""
3065 esac 3072 esac
3066 shift 3073 shift
3067 done 3074 done
3068 fi 3075 fi
3069 cat > conftest.$ac_ext <<EOF 3076 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure" 3077 #line 3078 "configure"
3071 #include "confdefs.h" 3078 #include "confdefs.h"
3072 3079
3073 int main() { 3080 int main() {
3074 3081
3075 ; return 0; } 3082 ; return 0; }
3076 EOF 3083 EOF
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3078 rm -rf conftest* 3085 rm -rf conftest*
3079 dash_r="$try_dash_r" 3086 dash_r="$try_dash_r"
3080 else 3087 else
3081 echo "configure: failed program was:" >&5 3088 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5 3089 cat conftest.$ac_ext >&5
3174 else 3181 else
3175 doug_lea_malloc=no 3182 doug_lea_malloc=no
3176 fi 3183 fi
3177 after_morecore_hook_exists=yes 3184 after_morecore_hook_exists=yes
3178 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3185 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3179 echo "configure:3180: checking for malloc_set_state" >&5 3186 echo "configure:3187: checking for malloc_set_state" >&5
3180 3187
3181 cat > conftest.$ac_ext <<EOF 3188 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure" 3189 #line 3190 "configure"
3183 #include "confdefs.h" 3190 #include "confdefs.h"
3184 /* System header to define __stub macros and hopefully few prototypes, 3191 /* System header to define __stub macros and hopefully few prototypes,
3185 which can conflict with char malloc_set_state(); below. */ 3192 which can conflict with char malloc_set_state(); below. */
3186 #include <assert.h> 3193 #include <assert.h>
3187 /* Override any gcc2 internal prototype to avoid an error. */ 3194 /* Override any gcc2 internal prototype to avoid an error. */
3200 malloc_set_state(); 3207 malloc_set_state();
3201 #endif 3208 #endif
3202 3209
3203 ; return 0; } 3210 ; return 0; }
3204 EOF 3211 EOF
3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3212 if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3206 rm -rf conftest* 3213 rm -rf conftest*
3207 eval "ac_cv_func_malloc_set_state=yes" 3214 eval "ac_cv_func_malloc_set_state=yes"
3208 else 3215 else
3209 echo "configure: failed program was:" >&5 3216 echo "configure: failed program was:" >&5
3210 cat conftest.$ac_ext >&5 3217 cat conftest.$ac_ext >&5
3220 echo "$ac_t""no" 1>&6 3227 echo "$ac_t""no" 1>&6
3221 doug_lea_malloc=no 3228 doug_lea_malloc=no
3222 fi 3229 fi
3223 3230
3224 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3231 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3225 echo "configure:3226: checking whether __after_morecore_hook exists" >&5 3232 echo "configure:3233: checking whether __after_morecore_hook exists" >&5
3226 cat > conftest.$ac_ext <<EOF 3233 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure" 3234 #line 3235 "configure"
3228 #include "confdefs.h" 3235 #include "confdefs.h"
3229 extern void (* __after_morecore_hook)(); 3236 extern void (* __after_morecore_hook)();
3230 int main() { 3237 int main() {
3231 __after_morecore_hook = 0 3238 __after_morecore_hook = 0
3232 ; return 0; } 3239 ; return 0; }
3233 EOF 3240 EOF
3234 if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3241 if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3235 rm -rf conftest* 3242 rm -rf conftest*
3236 echo "$ac_t""yes" 1>&6 3243 echo "$ac_t""yes" 1>&6
3237 else 3244 else
3238 echo "configure: failed program was:" >&5 3245 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5 3246 cat conftest.$ac_ext >&5
3285 3292
3286 3293
3287 # Extract the first word of "ranlib", so it can be a program name with args. 3294 # Extract the first word of "ranlib", so it can be a program name with args.
3288 set dummy ranlib; ac_word=$2 3295 set dummy ranlib; ac_word=$2
3289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3290 echo "configure:3291: checking for $ac_word" >&5 3297 echo "configure:3298: checking for $ac_word" >&5
3291 3298
3292 if test -n "$RANLIB"; then 3299 if test -n "$RANLIB"; then
3293 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3294 else 3301 else
3295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3340 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3341 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3342 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3343 # ./install, which can be erroneously created by make from ./install.sh. 3350 # ./install, which can be erroneously created by make from ./install.sh.
3344 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3351 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3345 echo "configure:3346: checking for a BSD compatible install" >&5 3352 echo "configure:3353: checking for a BSD compatible install" >&5
3346 if test -z "$INSTALL"; then 3353 if test -z "$INSTALL"; then
3347 3354
3348 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3355 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3349 for ac_dir in $PATH; do 3356 for ac_dir in $PATH; do
3350 # Account for people who put trailing slashes in PATH elements. 3357 # Account for people who put trailing slashes in PATH elements.
3394 for ac_prog in 'bison -y' byacc 3401 for ac_prog in 'bison -y' byacc
3395 do 3402 do
3396 # Extract the first word of "$ac_prog", so it can be a program name with args. 3403 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2 3404 set dummy $ac_prog; ac_word=$2
3398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3399 echo "configure:3400: checking for $ac_word" >&5 3406 echo "configure:3407: checking for $ac_word" >&5
3400 3407
3401 if test -n "$YACC"; then 3408 if test -n "$YACC"; then
3402 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3409 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3403 else 3410 else
3404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3426 3433
3427 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h utime.h 3434 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h utime.h
3428 do 3435 do
3429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3431 echo "configure:3432: checking for $ac_hdr" >&5 3438 echo "configure:3439: checking for $ac_hdr" >&5
3432 3439
3433 cat > conftest.$ac_ext <<EOF 3440 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure" 3441 #line 3442 "configure"
3435 #include "confdefs.h" 3442 #include "confdefs.h"
3436 #include <$ac_hdr> 3443 #include <$ac_hdr>
3437 EOF 3444 EOF
3438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3439 { (eval echo configure:3440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3446 { (eval echo configure:3447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3441 if test -z "$ac_err"; then 3448 if test -z "$ac_err"; then
3442 rm -rf conftest* 3449 rm -rf conftest*
3443 eval "ac_cv_header_$ac_safe=yes" 3450 eval "ac_cv_header_$ac_safe=yes"
3444 else 3451 else
3464 echo "$ac_t""no" 1>&6 3471 echo "$ac_t""no" 1>&6
3465 fi 3472 fi
3466 done 3473 done
3467 3474
3468 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3475 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3469 echo "configure:3470: checking for sys/wait.h that is POSIX.1 compatible" >&5 3476 echo "configure:3477: checking for sys/wait.h that is POSIX.1 compatible" >&5
3470 3477
3471 cat > conftest.$ac_ext <<EOF 3478 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure" 3479 #line 3480 "configure"
3473 #include "confdefs.h" 3480 #include "confdefs.h"
3474 #include <sys/types.h> 3481 #include <sys/types.h>
3475 #include <sys/wait.h> 3482 #include <sys/wait.h>
3476 #ifndef WEXITSTATUS 3483 #ifndef WEXITSTATUS
3477 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3484 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3483 int s; 3490 int s;
3484 wait (&s); 3491 wait (&s);
3485 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3492 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3486 ; return 0; } 3493 ; return 0; }
3487 EOF 3494 EOF
3488 if { (eval echo configure:3489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3495 if { (eval echo configure:3496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3489 rm -rf conftest* 3496 rm -rf conftest*
3490 ac_cv_header_sys_wait_h=yes 3497 ac_cv_header_sys_wait_h=yes
3491 else 3498 else
3492 echo "configure: failed program was:" >&5 3499 echo "configure: failed program was:" >&5
3493 cat conftest.$ac_ext >&5 3500 cat conftest.$ac_ext >&5
3507 } 3514 }
3508 3515
3509 fi 3516 fi
3510 3517
3511 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3518 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3512 echo "configure:3513: checking for ANSI C header files" >&5 3519 echo "configure:3520: checking for ANSI C header files" >&5
3513 3520
3514 cat > conftest.$ac_ext <<EOF 3521 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure" 3522 #line 3523 "configure"
3516 #include "confdefs.h" 3523 #include "confdefs.h"
3517 #include <stdlib.h> 3524 #include <stdlib.h>
3518 #include <stdarg.h> 3525 #include <stdarg.h>
3519 #include <string.h> 3526 #include <string.h>
3520 #include <float.h> 3527 #include <float.h>
3521 EOF 3528 EOF
3522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3523 { (eval echo configure:3524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3530 { (eval echo configure:3531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3525 if test -z "$ac_err"; then 3532 if test -z "$ac_err"; then
3526 rm -rf conftest* 3533 rm -rf conftest*
3527 ac_cv_header_stdc=yes 3534 ac_cv_header_stdc=yes
3528 else 3535 else
3535 rm -f conftest* 3542 rm -f conftest*
3536 3543
3537 if test $ac_cv_header_stdc = yes; then 3544 if test $ac_cv_header_stdc = yes; then
3538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3539 cat > conftest.$ac_ext <<EOF 3546 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure" 3547 #line 3548 "configure"
3541 #include "confdefs.h" 3548 #include "confdefs.h"
3542 #include <string.h> 3549 #include <string.h>
3543 EOF 3550 EOF
3544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3545 egrep "memchr" >/dev/null 2>&1; then 3552 egrep "memchr" >/dev/null 2>&1; then
3553 fi 3560 fi
3554 3561
3555 if test $ac_cv_header_stdc = yes; then 3562 if test $ac_cv_header_stdc = yes; then
3556 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3557 cat > conftest.$ac_ext <<EOF 3564 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure" 3565 #line 3566 "configure"
3559 #include "confdefs.h" 3566 #include "confdefs.h"
3560 #include <stdlib.h> 3567 #include <stdlib.h>
3561 EOF 3568 EOF
3562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3563 egrep "free" >/dev/null 2>&1; then 3570 egrep "free" >/dev/null 2>&1; then
3571 fi 3578 fi
3572 3579
3573 if test $ac_cv_header_stdc = yes; then 3580 if test $ac_cv_header_stdc = yes; then
3574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3575 cat > conftest.$ac_ext <<EOF 3582 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure" 3583 #line 3584 "configure"
3577 #include "confdefs.h" 3584 #include "confdefs.h"
3578 #include <ctype.h> 3585 #include <ctype.h>
3579 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3586 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3580 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3587 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3582 int main () { int i; for (i = 0; i < 256; i++) 3589 int main () { int i; for (i = 0; i < 256; i++)
3583 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3590 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3584 exit (0); } 3591 exit (0); }
3585 3592
3586 EOF 3593 EOF
3587 if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3588 then 3595 then
3589 : 3596 :
3590 else 3597 else
3591 conftest_rc="$?" 3598 conftest_rc="$?"
3592 echo "configure: failed program was:" >&5 3599 echo "configure: failed program was:" >&5
3608 } 3615 }
3609 3616
3610 fi 3617 fi
3611 3618
3612 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3619 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3613 echo "configure:3614: checking whether time.h and sys/time.h may both be included" >&5 3620 echo "configure:3621: checking whether time.h and sys/time.h may both be included" >&5
3614 3621
3615 cat > conftest.$ac_ext <<EOF 3622 cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure" 3623 #line 3624 "configure"
3617 #include "confdefs.h" 3624 #include "confdefs.h"
3618 #include <sys/types.h> 3625 #include <sys/types.h>
3619 #include <sys/time.h> 3626 #include <sys/time.h>
3620 #include <time.h> 3627 #include <time.h>
3621 int main() { 3628 int main() {
3622 struct tm *tp; 3629 struct tm *tp;
3623 ; return 0; } 3630 ; return 0; }
3624 EOF 3631 EOF
3625 if { (eval echo configure:3626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3632 if { (eval echo configure:3633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3626 rm -rf conftest* 3633 rm -rf conftest*
3627 ac_cv_header_time=yes 3634 ac_cv_header_time=yes
3628 else 3635 else
3629 echo "configure: failed program was:" >&5 3636 echo "configure: failed program was:" >&5
3630 cat conftest.$ac_ext >&5 3637 cat conftest.$ac_ext >&5
3644 } 3651 }
3645 3652
3646 fi 3653 fi
3647 3654
3648 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3655 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3649 echo "configure:3650: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3656 echo "configure:3657: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3650 3657
3651 cat > conftest.$ac_ext <<EOF 3658 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure" 3659 #line 3660 "configure"
3653 #include "confdefs.h" 3660 #include "confdefs.h"
3654 #include <sys/types.h> 3661 #include <sys/types.h>
3655 #include <signal.h> 3662 #include <signal.h>
3656 /* NetBSD declares sys_siglist in unistd.h. */ 3663 /* NetBSD declares sys_siglist in unistd.h. */
3657 #ifdef HAVE_UNISTD_H 3664 #ifdef HAVE_UNISTD_H
3659 #endif 3666 #endif
3660 int main() { 3667 int main() {
3661 char *msg = *(sys_siglist + 1); 3668 char *msg = *(sys_siglist + 1);
3662 ; return 0; } 3669 ; return 0; }
3663 EOF 3670 EOF
3664 if { (eval echo configure:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3671 if { (eval echo configure:3672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3665 rm -rf conftest* 3672 rm -rf conftest*
3666 ac_cv_decl_sys_siglist=yes 3673 ac_cv_decl_sys_siglist=yes
3667 else 3674 else
3668 echo "configure: failed program was:" >&5 3675 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5 3676 cat conftest.$ac_ext >&5
3684 3691
3685 fi 3692 fi
3686 3693
3687 3694
3688 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3695 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3689 echo "configure:3690: checking for struct utimbuf" >&5 3696 echo "configure:3697: checking for struct utimbuf" >&5
3690 cat > conftest.$ac_ext <<EOF 3697 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure" 3698 #line 3699 "configure"
3692 #include "confdefs.h" 3699 #include "confdefs.h"
3693 #ifdef TIME_WITH_SYS_TIME 3700 #ifdef TIME_WITH_SYS_TIME
3694 #include <sys/time.h> 3701 #include <sys/time.h>
3695 #include <time.h> 3702 #include <time.h>
3696 #else 3703 #else
3705 #endif 3712 #endif
3706 int main() { 3713 int main() {
3707 static struct utimbuf x; x.actime = x.modtime; 3714 static struct utimbuf x; x.actime = x.modtime;
3708 ; return 0; } 3715 ; return 0; }
3709 EOF 3716 EOF
3710 if { (eval echo configure:3711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3717 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3711 rm -rf conftest* 3718 rm -rf conftest*
3712 echo "$ac_t""yes" 1>&6 3719 echo "$ac_t""yes" 1>&6
3713 { test "$extra_verbose" = "yes" && cat << \EOF 3720 { test "$extra_verbose" = "yes" && cat << \EOF
3714 Defining HAVE_STRUCT_UTIMBUF 3721 Defining HAVE_STRUCT_UTIMBUF
3715 EOF 3722 EOF
3725 echo "$ac_t""no" 1>&6 3732 echo "$ac_t""no" 1>&6
3726 fi 3733 fi
3727 rm -f conftest* 3734 rm -f conftest*
3728 3735
3729 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3736 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3730 echo "configure:3731: checking return type of signal handlers" >&5 3737 echo "configure:3738: checking return type of signal handlers" >&5
3731 3738
3732 cat > conftest.$ac_ext <<EOF 3739 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure" 3740 #line 3741 "configure"
3734 #include "confdefs.h" 3741 #include "confdefs.h"
3735 #include <sys/types.h> 3742 #include <sys/types.h>
3736 #include <signal.h> 3743 #include <signal.h>
3737 #ifdef signal 3744 #ifdef signal
3738 #undef signal 3745 #undef signal
3745 3752
3746 int main() { 3753 int main() {
3747 int i; 3754 int i;
3748 ; return 0; } 3755 ; return 0; }
3749 EOF 3756 EOF
3750 if { (eval echo configure:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3757 if { (eval echo configure:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3751 rm -rf conftest* 3758 rm -rf conftest*
3752 ac_cv_type_signal=void 3759 ac_cv_type_signal=void
3753 else 3760 else
3754 echo "configure: failed program was:" >&5 3761 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5 3762 cat conftest.$ac_ext >&5
3767 EOF 3774 EOF
3768 } 3775 }
3769 3776
3770 3777
3771 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3778 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3772 echo "configure:3773: checking for size_t" >&5 3779 echo "configure:3780: checking for size_t" >&5
3773 3780
3774 cat > conftest.$ac_ext <<EOF 3781 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure" 3782 #line 3783 "configure"
3776 #include "confdefs.h" 3783 #include "confdefs.h"
3777 #include <sys/types.h> 3784 #include <sys/types.h>
3778 #if STDC_HEADERS 3785 #if STDC_HEADERS
3779 #include <stdlib.h> 3786 #include <stdlib.h>
3780 #include <stddef.h> 3787 #include <stddef.h>
3801 } 3808 }
3802 3809
3803 fi 3810 fi
3804 3811
3805 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3812 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3806 echo "configure:3807: checking for pid_t" >&5 3813 echo "configure:3814: checking for pid_t" >&5
3807 3814
3808 cat > conftest.$ac_ext <<EOF 3815 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure" 3816 #line 3817 "configure"
3810 #include "confdefs.h" 3817 #include "confdefs.h"
3811 #include <sys/types.h> 3818 #include <sys/types.h>
3812 #if STDC_HEADERS 3819 #if STDC_HEADERS
3813 #include <stdlib.h> 3820 #include <stdlib.h>
3814 #include <stddef.h> 3821 #include <stddef.h>
3835 } 3842 }
3836 3843
3837 fi 3844 fi
3838 3845
3839 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3846 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3840 echo "configure:3841: checking for uid_t in sys/types.h" >&5 3847 echo "configure:3848: checking for uid_t in sys/types.h" >&5
3841 3848
3842 cat > conftest.$ac_ext <<EOF 3849 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure" 3850 #line 3851 "configure"
3844 #include "confdefs.h" 3851 #include "confdefs.h"
3845 #include <sys/types.h> 3852 #include <sys/types.h>
3846 EOF 3853 EOF
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848 egrep "uid_t" >/dev/null 2>&1; then 3855 egrep "uid_t" >/dev/null 2>&1; then
3874 } 3881 }
3875 3882
3876 fi 3883 fi
3877 3884
3878 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3885 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3879 echo "configure:3880: checking for mode_t" >&5 3886 echo "configure:3887: checking for mode_t" >&5
3880 3887
3881 cat > conftest.$ac_ext <<EOF 3888 cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure" 3889 #line 3890 "configure"
3883 #include "confdefs.h" 3890 #include "confdefs.h"
3884 #include <sys/types.h> 3891 #include <sys/types.h>
3885 #if STDC_HEADERS 3892 #if STDC_HEADERS
3886 #include <stdlib.h> 3893 #include <stdlib.h>
3887 #include <stddef.h> 3894 #include <stddef.h>
3908 } 3915 }
3909 3916
3910 fi 3917 fi
3911 3918
3912 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3919 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3913 echo "configure:3914: checking for off_t" >&5 3920 echo "configure:3921: checking for off_t" >&5
3914 3921
3915 cat > conftest.$ac_ext <<EOF 3922 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure" 3923 #line 3924 "configure"
3917 #include "confdefs.h" 3924 #include "confdefs.h"
3918 #include <sys/types.h> 3925 #include <sys/types.h>
3919 #if STDC_HEADERS 3926 #if STDC_HEADERS
3920 #include <stdlib.h> 3927 #include <stdlib.h>
3921 #include <stddef.h> 3928 #include <stddef.h>
3942 } 3949 }
3943 3950
3944 fi 3951 fi
3945 3952
3946 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 3953 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3947 echo "configure:3948: checking for ssize_t" >&5 3954 echo "configure:3955: checking for ssize_t" >&5
3948 3955
3949 cat > conftest.$ac_ext <<EOF 3956 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure" 3957 #line 3958 "configure"
3951 #include "confdefs.h" 3958 #include "confdefs.h"
3952 #include <sys/types.h> 3959 #include <sys/types.h>
3953 #if STDC_HEADERS 3960 #if STDC_HEADERS
3954 #include <stdlib.h> 3961 #include <stdlib.h>
3955 #include <stddef.h> 3962 #include <stddef.h>
3977 3984
3978 fi 3985 fi
3979 3986
3980 3987
3981 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 3988 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3982 echo "configure:3983: checking for socklen_t" >&5 3989 echo "configure:3990: checking for socklen_t" >&5
3983 cat > conftest.$ac_ext <<EOF 3990 cat > conftest.$ac_ext <<EOF
3984 #line 3985 "configure" 3991 #line 3992 "configure"
3985 #include "confdefs.h" 3992 #include "confdefs.h"
3986 #include <sys/socket.h> 3993 #include <sys/socket.h>
3987 socklen_t x; 3994 socklen_t x;
3988 3995
3989 int main() { 3996 int main() {
3990 3997
3991 ; return 0; } 3998 ; return 0; }
3992 EOF 3999 EOF
3993 if { (eval echo configure:3994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4000 if { (eval echo configure:4001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3994 rm -rf conftest* 4001 rm -rf conftest*
3995 echo "$ac_t""yes" 1>&6 4002 echo "$ac_t""yes" 1>&6
3996 else 4003 else
3997 echo "configure: failed program was:" >&5 4004 echo "configure: failed program was:" >&5
3998 cat conftest.$ac_ext >&5 4005 cat conftest.$ac_ext >&5
3999 rm -rf conftest* 4006 rm -rf conftest*
4000 4007
4001 cat > conftest.$ac_ext <<EOF 4008 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure" 4009 #line 4010 "configure"
4003 #include "confdefs.h" 4010 #include "confdefs.h"
4004 #include <sys/socket.h> 4011 #include <sys/socket.h>
4005 int accept (int, struct sockaddr *, size_t *); 4012 int accept (int, struct sockaddr *, size_t *);
4006 4013
4007 int main() { 4014 int main() {
4008 4015
4009 ; return 0; } 4016 ; return 0; }
4010 EOF 4017 EOF
4011 if { (eval echo configure:4012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4018 if { (eval echo configure:4019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4012 rm -rf conftest* 4019 rm -rf conftest*
4013 4020
4014 echo "$ac_t""size_t" 1>&6 4021 echo "$ac_t""size_t" 1>&6
4015 { test "$extra_verbose" = "yes" && cat << \EOF 4022 { test "$extra_verbose" = "yes" && cat << \EOF
4016 Defining socklen_t = size_t 4023 Defining socklen_t = size_t
4038 rm -f conftest* 4045 rm -f conftest*
4039 fi 4046 fi
4040 rm -f conftest* 4047 rm -f conftest*
4041 4048
4042 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 4049 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4043 echo "configure:4044: checking for struct timeval" >&5 4050 echo "configure:4051: checking for struct timeval" >&5
4044 cat > conftest.$ac_ext <<EOF 4051 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure" 4052 #line 4053 "configure"
4046 #include "confdefs.h" 4053 #include "confdefs.h"
4047 #ifdef TIME_WITH_SYS_TIME 4054 #ifdef TIME_WITH_SYS_TIME
4048 #include <sys/time.h> 4055 #include <sys/time.h>
4049 #include <time.h> 4056 #include <time.h>
4050 #else 4057 #else
4056 #endif 4063 #endif
4057 int main() { 4064 int main() {
4058 static struct timeval x; x.tv_sec = x.tv_usec; 4065 static struct timeval x; x.tv_sec = x.tv_usec;
4059 ; return 0; } 4066 ; return 0; }
4060 EOF 4067 EOF
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4068 if { (eval echo configure:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4062 rm -rf conftest* 4069 rm -rf conftest*
4063 echo "$ac_t""yes" 1>&6 4070 echo "$ac_t""yes" 1>&6
4064 HAVE_TIMEVAL=yes 4071 HAVE_TIMEVAL=yes
4065 { test "$extra_verbose" = "yes" && cat << \EOF 4072 { test "$extra_verbose" = "yes" && cat << \EOF
4066 Defining HAVE_TIMEVAL 4073 Defining HAVE_TIMEVAL
4078 HAVE_TIMEVAL=no 4085 HAVE_TIMEVAL=no
4079 fi 4086 fi
4080 rm -f conftest* 4087 rm -f conftest*
4081 4088
4082 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4089 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4083 echo "configure:4084: checking whether struct tm is in sys/time.h or time.h" >&5 4090 echo "configure:4091: checking whether struct tm is in sys/time.h or time.h" >&5
4084 4091
4085 cat > conftest.$ac_ext <<EOF 4092 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure" 4093 #line 4094 "configure"
4087 #include "confdefs.h" 4094 #include "confdefs.h"
4088 #include <sys/types.h> 4095 #include <sys/types.h>
4089 #include <time.h> 4096 #include <time.h>
4090 int main() { 4097 int main() {
4091 struct tm *tp; tp->tm_sec; 4098 struct tm *tp; tp->tm_sec;
4092 ; return 0; } 4099 ; return 0; }
4093 EOF 4100 EOF
4094 if { (eval echo configure:4095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4101 if { (eval echo configure:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4095 rm -rf conftest* 4102 rm -rf conftest*
4096 ac_cv_struct_tm=time.h 4103 ac_cv_struct_tm=time.h
4097 else 4104 else
4098 echo "configure: failed program was:" >&5 4105 echo "configure: failed program was:" >&5
4099 cat conftest.$ac_ext >&5 4106 cat conftest.$ac_ext >&5
4113 } 4120 }
4114 4121
4115 fi 4122 fi
4116 4123
4117 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 4124 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4118 echo "configure:4119: checking for tm_zone in struct tm" >&5 4125 echo "configure:4126: checking for tm_zone in struct tm" >&5
4119 4126
4120 cat > conftest.$ac_ext <<EOF 4127 cat > conftest.$ac_ext <<EOF
4121 #line 4122 "configure" 4128 #line 4129 "configure"
4122 #include "confdefs.h" 4129 #include "confdefs.h"
4123 #include <sys/types.h> 4130 #include <sys/types.h>
4124 #include <$ac_cv_struct_tm> 4131 #include <$ac_cv_struct_tm>
4125 int main() { 4132 int main() {
4126 struct tm tm; tm.tm_zone; 4133 struct tm tm; tm.tm_zone;
4127 ; return 0; } 4134 ; return 0; }
4128 EOF 4135 EOF
4129 if { (eval echo configure:4130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4136 if { (eval echo configure:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4130 rm -rf conftest* 4137 rm -rf conftest*
4131 ac_cv_struct_tm_zone=yes 4138 ac_cv_struct_tm_zone=yes
4132 else 4139 else
4133 echo "configure: failed program was:" >&5 4140 echo "configure: failed program was:" >&5
4134 cat conftest.$ac_ext >&5 4141 cat conftest.$ac_ext >&5
4147 EOF 4154 EOF
4148 } 4155 }
4149 4156
4150 else 4157 else
4151 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4158 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4152 echo "configure:4153: checking for tzname" >&5 4159 echo "configure:4160: checking for tzname" >&5
4153 4160
4154 cat > conftest.$ac_ext <<EOF 4161 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure" 4162 #line 4163 "configure"
4156 #include "confdefs.h" 4163 #include "confdefs.h"
4157 #include <time.h> 4164 #include <time.h>
4158 #ifndef tzname /* For SGI. */ 4165 #ifndef tzname /* For SGI. */
4159 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4166 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4160 #endif 4167 #endif
4161 int main() { 4168 int main() {
4162 atoi(*tzname); 4169 atoi(*tzname);
4163 ; return 0; } 4170 ; return 0; }
4164 EOF 4171 EOF
4165 if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4172 if { (eval echo configure:4173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4166 rm -rf conftest* 4173 rm -rf conftest*
4167 ac_cv_var_tzname=yes 4174 ac_cv_var_tzname=yes
4168 else 4175 else
4169 echo "configure: failed program was:" >&5 4176 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5 4177 cat conftest.$ac_ext >&5
4186 fi 4193 fi
4187 fi 4194 fi
4188 4195
4189 4196
4190 echo $ac_n "checking for working const""... $ac_c" 1>&6 4197 echo $ac_n "checking for working const""... $ac_c" 1>&6
4191 echo "configure:4192: checking for working const" >&5 4198 echo "configure:4199: checking for working const" >&5
4192 4199
4193 cat > conftest.$ac_ext <<EOF 4200 cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure" 4201 #line 4202 "configure"
4195 #include "confdefs.h" 4202 #include "confdefs.h"
4196 4203
4197 int main() { 4204 int main() {
4198 4205
4199 /* Ultrix mips cc rejects this. */ 4206 /* Ultrix mips cc rejects this. */
4238 const int foo = 10; 4245 const int foo = 10;
4239 } 4246 }
4240 4247
4241 ; return 0; } 4248 ; return 0; }
4242 EOF 4249 EOF
4243 if { (eval echo configure:4244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4250 if { (eval echo configure:4251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4244 rm -rf conftest* 4251 rm -rf conftest*
4245 ac_cv_c_const=yes 4252 ac_cv_c_const=yes
4246 else 4253 else
4247 echo "configure: failed program was:" >&5 4254 echo "configure: failed program was:" >&5
4248 cat conftest.$ac_ext >&5 4255 cat conftest.$ac_ext >&5
4263 4270
4264 fi 4271 fi
4265 4272
4266 4273
4267 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4274 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4268 echo "configure:4269: checking whether ${MAKE-make} sets \${MAKE}" >&5 4275 echo "configure:4276: checking whether ${MAKE-make} sets \${MAKE}" >&5
4269 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4276 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4270 4277
4271 cat > conftestmake <<\EOF 4278 cat > conftestmake <<\EOF
4272 all: 4279 all:
4273 @echo 'ac_maketemp="${MAKE}"' 4280 @echo 'ac_maketemp="${MAKE}"'
4288 SET_MAKE="MAKE=${MAKE-make}" 4295 SET_MAKE="MAKE=${MAKE-make}"
4289 fi 4296 fi
4290 4297
4291 4298
4292 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4299 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4293 echo "configure:4294: checking whether byte ordering is bigendian" >&5 4300 echo "configure:4301: checking whether byte ordering is bigendian" >&5
4294 4301
4295 ac_cv_c_bigendian=unknown 4302 ac_cv_c_bigendian=unknown
4296 # See if sys/param.h defines the BYTE_ORDER macro. 4303 # See if sys/param.h defines the BYTE_ORDER macro.
4297 cat > conftest.$ac_ext <<EOF 4304 cat > conftest.$ac_ext <<EOF
4298 #line 4299 "configure" 4305 #line 4306 "configure"
4299 #include "confdefs.h" 4306 #include "confdefs.h"
4300 #include <sys/types.h> 4307 #include <sys/types.h>
4301 #include <sys/param.h> 4308 #include <sys/param.h>
4302 int main() { 4309 int main() {
4303 4310
4304 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4311 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4305 bogus endian macros 4312 bogus endian macros
4306 #endif 4313 #endif
4307 ; return 0; } 4314 ; return 0; }
4308 EOF 4315 EOF
4309 if { (eval echo configure:4310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4316 if { (eval echo configure:4317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4310 rm -rf conftest* 4317 rm -rf conftest*
4311 # It does; now see whether it defined to BIG_ENDIAN or not. 4318 # It does; now see whether it defined to BIG_ENDIAN or not.
4312 cat > conftest.$ac_ext <<EOF 4319 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure" 4320 #line 4321 "configure"
4314 #include "confdefs.h" 4321 #include "confdefs.h"
4315 #include <sys/types.h> 4322 #include <sys/types.h>
4316 #include <sys/param.h> 4323 #include <sys/param.h>
4317 int main() { 4324 int main() {
4318 4325
4319 #if BYTE_ORDER != BIG_ENDIAN 4326 #if BYTE_ORDER != BIG_ENDIAN
4320 not big endian 4327 not big endian
4321 #endif 4328 #endif
4322 ; return 0; } 4329 ; return 0; }
4323 EOF 4330 EOF
4324 if { (eval echo configure:4325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4331 if { (eval echo configure:4332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4325 rm -rf conftest* 4332 rm -rf conftest*
4326 ac_cv_c_bigendian=yes 4333 ac_cv_c_bigendian=yes
4327 else 4334 else
4328 echo "configure: failed program was:" >&5 4335 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5 4336 cat conftest.$ac_ext >&5
4336 cat conftest.$ac_ext >&5 4343 cat conftest.$ac_ext >&5
4337 fi 4344 fi
4338 rm -f conftest* 4345 rm -f conftest*
4339 if test $ac_cv_c_bigendian = unknown; then 4346 if test $ac_cv_c_bigendian = unknown; then
4340 cat > conftest.$ac_ext <<EOF 4347 cat > conftest.$ac_ext <<EOF
4341 #line 4342 "configure" 4348 #line 4349 "configure"
4342 #include "confdefs.h" 4349 #include "confdefs.h"
4343 main () { 4350 main () {
4344 /* Are we little or big endian? From Harbison&Steele. */ 4351 /* Are we little or big endian? From Harbison&Steele. */
4345 union 4352 union
4346 { 4353 {
4349 } u; 4356 } u;
4350 u.l = 1; 4357 u.l = 1;
4351 exit (u.c[sizeof (long) - 1] == 1); 4358 exit (u.c[sizeof (long) - 1] == 1);
4352 } 4359 }
4353 EOF 4360 EOF
4354 if { (eval echo configure:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4361 if { (eval echo configure:4362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4355 then 4362 then
4356 ac_cv_c_bigendian=no 4363 ac_cv_c_bigendian=no
4357 else 4364 else
4358 conftest_rc="$?" 4365 conftest_rc="$?"
4359 echo "configure: failed program was:" >&5 4366 echo "configure: failed program was:" >&5
4376 4383
4377 fi 4384 fi
4378 4385
4379 4386
4380 echo $ac_n "checking size of short""... $ac_c" 1>&6 4387 echo $ac_n "checking size of short""... $ac_c" 1>&6
4381 echo "configure:4382: checking size of short" >&5 4388 echo "configure:4389: checking size of short" >&5
4382 4389
4383 cat > conftest.$ac_ext <<EOF 4390 cat > conftest.$ac_ext <<EOF
4384 #line 4385 "configure" 4391 #line 4392 "configure"
4385 #include "confdefs.h" 4392 #include "confdefs.h"
4386 #include <stdio.h> 4393 #include <stdio.h>
4387 main() 4394 main()
4388 { 4395 {
4389 FILE *f=fopen("conftestval", "w"); 4396 FILE *f=fopen("conftestval", "w");
4390 if (!f) exit(1); 4397 if (!f) exit(1);
4391 fprintf(f, "%d\n", sizeof(short)); 4398 fprintf(f, "%d\n", sizeof(short));
4392 exit(0); 4399 exit(0);
4393 } 4400 }
4394 EOF 4401 EOF
4395 if { (eval echo configure:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4402 if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4396 then 4403 then
4397 ac_cv_sizeof_short=`cat conftestval` 4404 ac_cv_sizeof_short=`cat conftestval`
4398 else 4405 else
4399 conftest_rc="$?" 4406 conftest_rc="$?"
4400 echo "configure: failed program was:" >&5 4407 echo "configure: failed program was:" >&5
4418 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4425 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4419 echo "*** PANIC *** Please examine config.log for compilation errors." 4426 echo "*** PANIC *** Please examine config.log for compilation errors."
4420 exit 1 4427 exit 1
4421 fi 4428 fi
4422 echo $ac_n "checking size of int""... $ac_c" 1>&6 4429 echo $ac_n "checking size of int""... $ac_c" 1>&6
4423 echo "configure:4424: checking size of int" >&5 4430 echo "configure:4431: checking size of int" >&5
4424 4431
4425 cat > conftest.$ac_ext <<EOF 4432 cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure" 4433 #line 4434 "configure"
4427 #include "confdefs.h" 4434 #include "confdefs.h"
4428 #include <stdio.h> 4435 #include <stdio.h>
4429 main() 4436 main()
4430 { 4437 {
4431 FILE *f=fopen("conftestval", "w"); 4438 FILE *f=fopen("conftestval", "w");
4432 if (!f) exit(1); 4439 if (!f) exit(1);
4433 fprintf(f, "%d\n", sizeof(int)); 4440 fprintf(f, "%d\n", sizeof(int));
4434 exit(0); 4441 exit(0);
4435 } 4442 }
4436 EOF 4443 EOF
4437 if { (eval echo configure:4438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4444 if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4438 then 4445 then
4439 ac_cv_sizeof_int=`cat conftestval` 4446 ac_cv_sizeof_int=`cat conftestval`
4440 else 4447 else
4441 conftest_rc="$?" 4448 conftest_rc="$?"
4442 echo "configure: failed program was:" >&5 4449 echo "configure: failed program was:" >&5
4454 EOF 4461 EOF
4455 } 4462 }
4456 4463
4457 4464
4458 echo $ac_n "checking size of long""... $ac_c" 1>&6 4465 echo $ac_n "checking size of long""... $ac_c" 1>&6
4459 echo "configure:4460: checking size of long" >&5 4466 echo "configure:4467: checking size of long" >&5
4460 4467
4461 cat > conftest.$ac_ext <<EOF 4468 cat > conftest.$ac_ext <<EOF
4462 #line 4463 "configure" 4469 #line 4470 "configure"
4463 #include "confdefs.h" 4470 #include "confdefs.h"
4464 #include <stdio.h> 4471 #include <stdio.h>
4465 main() 4472 main()
4466 { 4473 {
4467 FILE *f=fopen("conftestval", "w"); 4474 FILE *f=fopen("conftestval", "w");
4468 if (!f) exit(1); 4475 if (!f) exit(1);
4469 fprintf(f, "%d\n", sizeof(long)); 4476 fprintf(f, "%d\n", sizeof(long));
4470 exit(0); 4477 exit(0);
4471 } 4478 }
4472 EOF 4479 EOF
4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4480 if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4474 then 4481 then
4475 ac_cv_sizeof_long=`cat conftestval` 4482 ac_cv_sizeof_long=`cat conftestval`
4476 else 4483 else
4477 conftest_rc="$?" 4484 conftest_rc="$?"
4478 echo "configure: failed program was:" >&5 4485 echo "configure: failed program was:" >&5
4490 EOF 4497 EOF
4491 } 4498 }
4492 4499
4493 4500
4494 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4501 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4495 echo "configure:4496: checking size of long long" >&5 4502 echo "configure:4503: checking size of long long" >&5
4496 4503
4497 cat > conftest.$ac_ext <<EOF 4504 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure" 4505 #line 4506 "configure"
4499 #include "confdefs.h" 4506 #include "confdefs.h"
4500 #include <stdio.h> 4507 #include <stdio.h>
4501 main() 4508 main()
4502 { 4509 {
4503 FILE *f=fopen("conftestval", "w"); 4510 FILE *f=fopen("conftestval", "w");
4504 if (!f) exit(1); 4511 if (!f) exit(1);
4505 fprintf(f, "%d\n", sizeof(long long)); 4512 fprintf(f, "%d\n", sizeof(long long));
4506 exit(0); 4513 exit(0);
4507 } 4514 }
4508 EOF 4515 EOF
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4510 then 4517 then
4511 ac_cv_sizeof_long_long=`cat conftestval` 4518 ac_cv_sizeof_long_long=`cat conftestval`
4512 else 4519 else
4513 conftest_rc="$?" 4520 conftest_rc="$?"
4514 echo "configure: failed program was:" >&5 4521 echo "configure: failed program was:" >&5
4526 EOF 4533 EOF
4527 } 4534 }
4528 4535
4529 4536
4530 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4537 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4531 echo "configure:4532: checking size of void *" >&5 4538 echo "configure:4539: checking size of void *" >&5
4532 4539
4533 cat > conftest.$ac_ext <<EOF 4540 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure" 4541 #line 4542 "configure"
4535 #include "confdefs.h" 4542 #include "confdefs.h"
4536 #include <stdio.h> 4543 #include <stdio.h>
4537 main() 4544 main()
4538 { 4545 {
4539 FILE *f=fopen("conftestval", "w"); 4546 FILE *f=fopen("conftestval", "w");
4540 if (!f) exit(1); 4547 if (!f) exit(1);
4541 fprintf(f, "%d\n", sizeof(void *)); 4548 fprintf(f, "%d\n", sizeof(void *));
4542 exit(0); 4549 exit(0);
4543 } 4550 }
4544 EOF 4551 EOF
4545 if { (eval echo configure:4546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4546 then 4553 then
4547 ac_cv_sizeof_void_p=`cat conftestval` 4554 ac_cv_sizeof_void_p=`cat conftestval`
4548 else 4555 else
4549 conftest_rc="$?" 4556 conftest_rc="$?"
4550 echo "configure: failed program was:" >&5 4557 echo "configure: failed program was:" >&5
4563 } 4570 }
4564 4571
4565 4572
4566 4573
4567 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4574 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4568 echo "configure:4569: checking for long file names" >&5 4575 echo "configure:4576: checking for long file names" >&5
4569 4576
4570 ac_cv_sys_long_file_names=yes 4577 ac_cv_sys_long_file_names=yes
4571 # Test for long file names in all the places we know might matter: 4578 # Test for long file names in all the places we know might matter:
4572 # . the current directory, where building will happen 4579 # . the current directory, where building will happen
4573 # $prefix/lib where we will be installing things 4580 # $prefix/lib where we will be installing things
4609 4616
4610 fi 4617 fi
4611 4618
4612 4619
4613 echo $ac_n "checking for sin""... $ac_c" 1>&6 4620 echo $ac_n "checking for sin""... $ac_c" 1>&6
4614 echo "configure:4615: checking for sin" >&5 4621 echo "configure:4622: checking for sin" >&5
4615 4622
4616 cat > conftest.$ac_ext <<EOF 4623 cat > conftest.$ac_ext <<EOF
4617 #line 4618 "configure" 4624 #line 4625 "configure"
4618 #include "confdefs.h" 4625 #include "confdefs.h"
4619 /* System header to define __stub macros and hopefully few prototypes, 4626 /* System header to define __stub macros and hopefully few prototypes,
4620 which can conflict with char sin(); below. */ 4627 which can conflict with char sin(); below. */
4621 #include <assert.h> 4628 #include <assert.h>
4622 /* Override any gcc2 internal prototype to avoid an error. */ 4629 /* Override any gcc2 internal prototype to avoid an error. */
4635 sin(); 4642 sin();
4636 #endif 4643 #endif
4637 4644
4638 ; return 0; } 4645 ; return 0; }
4639 EOF 4646 EOF
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4647 if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4641 rm -rf conftest* 4648 rm -rf conftest*
4642 eval "ac_cv_func_sin=yes" 4649 eval "ac_cv_func_sin=yes"
4643 else 4650 else
4644 echo "configure: failed program was:" >&5 4651 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5 4652 cat conftest.$ac_ext >&5
4653 : 4660 :
4654 else 4661 else
4655 echo "$ac_t""no" 1>&6 4662 echo "$ac_t""no" 1>&6
4656 4663
4657 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4664 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4658 echo "configure:4659: checking for sin in -lm" >&5 4665 echo "configure:4666: checking for sin in -lm" >&5
4659 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4666 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4660 4667
4661 xe_check_libs=" -lm " 4668 xe_check_libs=" -lm "
4662 cat > conftest.$ac_ext <<EOF 4669 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure" 4670 #line 4671 "configure"
4664 #include "confdefs.h" 4671 #include "confdefs.h"
4665 /* Override any gcc2 internal prototype to avoid an error. */ 4672 /* Override any gcc2 internal prototype to avoid an error. */
4666 /* We use char because int might match the return type of a gcc2 4673 /* We use char because int might match the return type of a gcc2
4667 builtin and then its argument prototype would still apply. */ 4674 builtin and then its argument prototype would still apply. */
4668 char sin(); 4675 char sin();
4669 4676
4670 int main() { 4677 int main() {
4671 sin() 4678 sin()
4672 ; return 0; } 4679 ; return 0; }
4673 EOF 4680 EOF
4674 if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 rm -rf conftest* 4682 rm -rf conftest*
4676 eval "ac_cv_lib_$ac_lib_var=yes" 4683 eval "ac_cv_lib_$ac_lib_var=yes"
4677 else 4684 else
4678 echo "configure: failed program was:" >&5 4685 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5 4686 cat conftest.$ac_ext >&5
4713 EOF 4720 EOF
4714 } 4721 }
4715 4722
4716 4723
4717 cat > conftest.$ac_ext <<EOF 4724 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure" 4725 #line 4726 "configure"
4719 #include "confdefs.h" 4726 #include "confdefs.h"
4720 #include <math.h> 4727 #include <math.h>
4721 int main() { 4728 int main() {
4722 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4729 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4723 ; return 0; } 4730 ; return 0; }
4724 EOF 4731 EOF
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4726 rm -rf conftest* 4733 rm -rf conftest*
4727 { test "$extra_verbose" = "yes" && cat << \EOF 4734 { test "$extra_verbose" = "yes" && cat << \EOF
4728 Defining HAVE_INVERSE_HYPERBOLIC 4735 Defining HAVE_INVERSE_HYPERBOLIC
4729 EOF 4736 EOF
4730 cat >> confdefs.h <<\EOF 4737 cat >> confdefs.h <<\EOF
4737 cat conftest.$ac_ext >&5 4744 cat conftest.$ac_ext >&5
4738 fi 4745 fi
4739 rm -f conftest* 4746 rm -f conftest*
4740 4747
4741 echo "checking type of mail spool file locking" 1>&6 4748 echo "checking type of mail spool file locking" 1>&6
4742 echo "configure:4743: checking type of mail spool file locking" >&5 4749 echo "configure:4750: checking type of mail spool file locking" >&5
4743 for ac_func in lockf flock 4750 for ac_func in lockf flock
4744 do 4751 do
4745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4746 echo "configure:4747: checking for $ac_func" >&5 4753 echo "configure:4754: checking for $ac_func" >&5
4747 4754
4748 cat > conftest.$ac_ext <<EOF 4755 cat > conftest.$ac_ext <<EOF
4749 #line 4750 "configure" 4756 #line 4757 "configure"
4750 #include "confdefs.h" 4757 #include "confdefs.h"
4751 /* System header to define __stub macros and hopefully few prototypes, 4758 /* System header to define __stub macros and hopefully few prototypes,
4752 which can conflict with char $ac_func(); below. */ 4759 which can conflict with char $ac_func(); below. */
4753 #include <assert.h> 4760 #include <assert.h>
4754 /* Override any gcc2 internal prototype to avoid an error. */ 4761 /* Override any gcc2 internal prototype to avoid an error. */
4767 $ac_func(); 4774 $ac_func();
4768 #endif 4775 #endif
4769 4776
4770 ; return 0; } 4777 ; return 0; }
4771 EOF 4778 EOF
4772 if { (eval echo configure:4773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4773 rm -rf conftest* 4780 rm -rf conftest*
4774 eval "ac_cv_func_$ac_func=yes" 4781 eval "ac_cv_func_$ac_func=yes"
4775 else 4782 else
4776 echo "configure: failed program was:" >&5 4783 echo "configure: failed program was:" >&5
4777 cat conftest.$ac_ext >&5 4784 cat conftest.$ac_ext >&5
4849 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 4856 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4850 4857
4851 case "$opsys" in decosf*) 4858 case "$opsys" in decosf*)
4852 4859
4853 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4860 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4854 echo "configure:4855: checking for cma_open in -lpthreads" >&5 4861 echo "configure:4862: checking for cma_open in -lpthreads" >&5
4855 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4862 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4856 4863
4857 xe_check_libs=" -lpthreads " 4864 xe_check_libs=" -lpthreads "
4858 cat > conftest.$ac_ext <<EOF 4865 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure" 4866 #line 4867 "configure"
4860 #include "confdefs.h" 4867 #include "confdefs.h"
4861 /* Override any gcc2 internal prototype to avoid an error. */ 4868 /* Override any gcc2 internal prototype to avoid an error. */
4862 /* We use char because int might match the return type of a gcc2 4869 /* We use char because int might match the return type of a gcc2
4863 builtin and then its argument prototype would still apply. */ 4870 builtin and then its argument prototype would still apply. */
4864 char cma_open(); 4871 char cma_open();
4865 4872
4866 int main() { 4873 int main() {
4867 cma_open() 4874 cma_open()
4868 ; return 0; } 4875 ; return 0; }
4869 EOF 4876 EOF
4870 if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4877 if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871 rm -rf conftest* 4878 rm -rf conftest*
4872 eval "ac_cv_lib_$ac_lib_var=yes" 4879 eval "ac_cv_lib_$ac_lib_var=yes"
4873 else 4880 else
4874 echo "configure: failed program was:" >&5 4881 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5 4882 cat conftest.$ac_ext >&5
4901 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4908 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4902 c_switch_site="$c_switch_site -threads" ;; 4909 c_switch_site="$c_switch_site -threads" ;;
4903 esac 4910 esac
4904 4911
4905 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4912 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4906 echo "configure:4907: checking whether the -xildoff compiler flag is required" >&5 4913 echo "configure:4914: checking whether the -xildoff compiler flag is required" >&5
4907 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4914 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4908 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4915 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4909 then echo "$ac_t""no" 1>&6; 4916 then echo "$ac_t""no" 1>&6;
4910 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 4917 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
4911 fi 4918 fi
4913 fi 4920 fi
4914 4921
4915 if test "$opsys" = "sol2"; then 4922 if test "$opsys" = "sol2"; then
4916 if test "$os_release" -ge 56; then 4923 if test "$os_release" -ge 56; then
4917 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4924 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4918 echo "configure:4919: checking for \"-z ignore\" linker flag" >&5 4925 echo "configure:4926: checking for \"-z ignore\" linker flag" >&5
4919 case "`ld -h 2>&1`" in 4926 case "`ld -h 2>&1`" in
4920 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4927 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4921 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4928 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4922 *) echo "$ac_t""no" 1>&6 ;; 4929 *) echo "$ac_t""no" 1>&6 ;;
4923 esac 4930 esac
4924 fi 4931 fi
4925 fi 4932 fi
4926 4933
4927 4934
4928 echo "checking "for specified window system"" 1>&6 4935 echo "checking "for specified window system"" 1>&6
4929 echo "configure:4930: checking "for specified window system"" >&5 4936 echo "configure:4937: checking "for specified window system"" >&5
4930 4937
4931 if test "$with_x11" != "no"; then 4938 if test "$with_x11" != "no"; then
4932 test "$x_includes $x_libraries" != "NONE NONE" && \ 4939 test "$x_includes $x_libraries" != "NONE NONE" && \
4933 window_system=x11 with_x11=yes 4940 window_system=x11 with_x11=yes
4934 4941
4957 # If we find X, set shell vars x_includes and x_libraries to the 4964 # If we find X, set shell vars x_includes and x_libraries to the
4958 # paths, otherwise set no_x=yes. 4965 # paths, otherwise set no_x=yes.
4959 # Uses ac_ vars as temps to allow command line to override cache and checks. 4966 # Uses ac_ vars as temps to allow command line to override cache and checks.
4960 # --without-x overrides everything else, but does not touch the cache. 4967 # --without-x overrides everything else, but does not touch the cache.
4961 echo $ac_n "checking for X""... $ac_c" 1>&6 4968 echo $ac_n "checking for X""... $ac_c" 1>&6
4962 echo "configure:4963: checking for X" >&5 4969 echo "configure:4970: checking for X" >&5
4963 4970
4964 # Check whether --with-x or --without-x was given. 4971 # Check whether --with-x or --without-x was given.
4965 if test "${with_x+set}" = set; then 4972 if test "${with_x+set}" = set; then
4966 withval="$with_x" 4973 withval="$with_x"
4967 : 4974 :
5017 # Guess where to find include files, by looking for this one X11 .h file. 5024 # Guess where to find include files, by looking for this one X11 .h file.
5018 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5025 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5019 5026
5020 # First, try using that file with no special directory specified. 5027 # First, try using that file with no special directory specified.
5021 cat > conftest.$ac_ext <<EOF 5028 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure" 5029 #line 5030 "configure"
5023 #include "confdefs.h" 5030 #include "confdefs.h"
5024 #include <$x_direct_test_include> 5031 #include <$x_direct_test_include>
5025 EOF 5032 EOF
5026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5027 { (eval echo configure:5028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5034 { (eval echo configure:5035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5029 if test -z "$ac_err"; then 5036 if test -z "$ac_err"; then
5030 rm -rf conftest* 5037 rm -rf conftest*
5031 # We can compile using X headers with no special include directory. 5038 # We can compile using X headers with no special include directory.
5032 ac_x_includes= 5039 ac_x_includes=
5091 # See if we find them without any special options. 5098 # See if we find them without any special options.
5092 # Don't add to $LIBS permanently. 5099 # Don't add to $LIBS permanently.
5093 ac_save_LIBS="$LIBS" 5100 ac_save_LIBS="$LIBS"
5094 LIBS="-l$x_direct_test_library $LIBS" 5101 LIBS="-l$x_direct_test_library $LIBS"
5095 cat > conftest.$ac_ext <<EOF 5102 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure" 5103 #line 5104 "configure"
5097 #include "confdefs.h" 5104 #include "confdefs.h"
5098 5105
5099 int main() { 5106 int main() {
5100 ${x_direct_test_function}() 5107 ${x_direct_test_function}()
5101 ; return 0; } 5108 ; return 0; }
5102 EOF 5109 EOF
5103 if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5104 rm -rf conftest* 5111 rm -rf conftest*
5105 LIBS="$ac_save_LIBS" 5112 LIBS="$ac_save_LIBS"
5106 # We can link X programs with no special library path. 5113 # We can link X programs with no special library path.
5107 ac_x_libraries= 5114 ac_x_libraries=
5108 else 5115 else
5207 # For Solaris; some versions of Sun CC require a space after -R and 5214 # For Solaris; some versions of Sun CC require a space after -R and
5208 # others require no space. Words are not sufficient . . . . 5215 # others require no space. Words are not sufficient . . . .
5209 case "`(uname -sr) 2>/dev/null`" in 5216 case "`(uname -sr) 2>/dev/null`" in
5210 "SunOS 5"*) 5217 "SunOS 5"*)
5211 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5218 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5212 echo "configure:5213: checking whether -R must be followed by a space" >&5 5219 echo "configure:5220: checking whether -R must be followed by a space" >&5
5213 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5220 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5214 cat > conftest.$ac_ext <<EOF 5221 cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure" 5222 #line 5223 "configure"
5216 #include "confdefs.h" 5223 #include "confdefs.h"
5217 5224
5218 int main() { 5225 int main() {
5219 5226
5220 ; return 0; } 5227 ; return 0; }
5221 EOF 5228 EOF
5222 if { (eval echo configure:5223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5223 rm -rf conftest* 5230 rm -rf conftest*
5224 ac_R_nospace=yes 5231 ac_R_nospace=yes
5225 else 5232 else
5226 echo "configure: failed program was:" >&5 5233 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5 5234 cat conftest.$ac_ext >&5
5233 echo "$ac_t""no" 1>&6 5240 echo "$ac_t""no" 1>&6
5234 X_LIBS="$X_LIBS -R$x_libraries" 5241 X_LIBS="$X_LIBS -R$x_libraries"
5235 else 5242 else
5236 LIBS="$ac_xsave_LIBS -R $x_libraries" 5243 LIBS="$ac_xsave_LIBS -R $x_libraries"
5237 cat > conftest.$ac_ext <<EOF 5244 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure" 5245 #line 5246 "configure"
5239 #include "confdefs.h" 5246 #include "confdefs.h"
5240 5247
5241 int main() { 5248 int main() {
5242 5249
5243 ; return 0; } 5250 ; return 0; }
5244 EOF 5251 EOF
5245 if { (eval echo configure:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5252 if { (eval echo configure:5253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5246 rm -rf conftest* 5253 rm -rf conftest*
5247 ac_R_space=yes 5254 ac_R_space=yes
5248 else 5255 else
5249 echo "configure: failed program was:" >&5 5256 echo "configure: failed program was:" >&5
5250 cat conftest.$ac_ext >&5 5257 cat conftest.$ac_ext >&5
5276 if test "$with_dnet" = "no" ; then 5283 if test "$with_dnet" = "no" ; then
5277 ac_cv_lib_dnet_dnet_ntoa=no 5284 ac_cv_lib_dnet_dnet_ntoa=no
5278 else 5285 else
5279 5286
5280 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5287 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5281 echo "configure:5282: checking for dnet_ntoa in -ldnet" >&5 5288 echo "configure:5289: checking for dnet_ntoa in -ldnet" >&5
5282 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5289 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5283 5290
5284 xe_check_libs=" -ldnet " 5291 xe_check_libs=" -ldnet "
5285 cat > conftest.$ac_ext <<EOF 5292 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure" 5293 #line 5294 "configure"
5287 #include "confdefs.h" 5294 #include "confdefs.h"
5288 /* Override any gcc2 internal prototype to avoid an error. */ 5295 /* Override any gcc2 internal prototype to avoid an error. */
5289 /* We use char because int might match the return type of a gcc2 5296 /* We use char because int might match the return type of a gcc2
5290 builtin and then its argument prototype would still apply. */ 5297 builtin and then its argument prototype would still apply. */
5291 char dnet_ntoa(); 5298 char dnet_ntoa();
5292 5299
5293 int main() { 5300 int main() {
5294 dnet_ntoa() 5301 dnet_ntoa()
5295 ; return 0; } 5302 ; return 0; }
5296 EOF 5303 EOF
5297 if { (eval echo configure:5298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5298 rm -rf conftest* 5305 rm -rf conftest*
5299 eval "ac_cv_lib_$ac_lib_var=yes" 5306 eval "ac_cv_lib_$ac_lib_var=yes"
5300 else 5307 else
5301 echo "configure: failed program was:" >&5 5308 echo "configure: failed program was:" >&5
5302 cat conftest.$ac_ext >&5 5309 cat conftest.$ac_ext >&5
5316 fi 5323 fi
5317 5324
5318 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5325 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5319 5326
5320 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 5327 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5321 echo "configure:5322: checking for dnet_ntoa in -ldnet_stub" >&5 5328 echo "configure:5329: checking for dnet_ntoa in -ldnet_stub" >&5
5322 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5329 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5323 5330
5324 xe_check_libs=" -ldnet_stub " 5331 xe_check_libs=" -ldnet_stub "
5325 cat > conftest.$ac_ext <<EOF 5332 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure" 5333 #line 5334 "configure"
5327 #include "confdefs.h" 5334 #include "confdefs.h"
5328 /* Override any gcc2 internal prototype to avoid an error. */ 5335 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2 5336 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */ 5337 builtin and then its argument prototype would still apply. */
5331 char dnet_ntoa(); 5338 char dnet_ntoa();
5332 5339
5333 int main() { 5340 int main() {
5334 dnet_ntoa() 5341 dnet_ntoa()
5335 ; return 0; } 5342 ; return 0; }
5336 EOF 5343 EOF
5337 if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5344 if { (eval echo configure:5345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5338 rm -rf conftest* 5345 rm -rf conftest*
5339 eval "ac_cv_lib_$ac_lib_var=yes" 5346 eval "ac_cv_lib_$ac_lib_var=yes"
5340 else 5347 else
5341 echo "configure: failed program was:" >&5 5348 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5 5349 cat conftest.$ac_ext >&5
5361 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5368 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5362 # needs -lnsl. 5369 # needs -lnsl.
5363 # The nsl library prevents programs from opening the X display 5370 # The nsl library prevents programs from opening the X display
5364 # on Irix 5.2, according to dickey@clark.net. 5371 # on Irix 5.2, according to dickey@clark.net.
5365 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5372 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5366 echo "configure:5367: checking for gethostbyname" >&5 5373 echo "configure:5374: checking for gethostbyname" >&5
5367 5374
5368 cat > conftest.$ac_ext <<EOF 5375 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure" 5376 #line 5377 "configure"
5370 #include "confdefs.h" 5377 #include "confdefs.h"
5371 /* System header to define __stub macros and hopefully few prototypes, 5378 /* System header to define __stub macros and hopefully few prototypes,
5372 which can conflict with char gethostbyname(); below. */ 5379 which can conflict with char gethostbyname(); below. */
5373 #include <assert.h> 5380 #include <assert.h>
5374 /* Override any gcc2 internal prototype to avoid an error. */ 5381 /* Override any gcc2 internal prototype to avoid an error. */
5387 gethostbyname(); 5394 gethostbyname();
5388 #endif 5395 #endif
5389 5396
5390 ; return 0; } 5397 ; return 0; }
5391 EOF 5398 EOF
5392 if { (eval echo configure:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5393 rm -rf conftest* 5400 rm -rf conftest*
5394 eval "ac_cv_func_gethostbyname=yes" 5401 eval "ac_cv_func_gethostbyname=yes"
5395 else 5402 else
5396 echo "configure: failed program was:" >&5 5403 echo "configure: failed program was:" >&5
5397 cat conftest.$ac_ext >&5 5404 cat conftest.$ac_ext >&5
5408 fi 5415 fi
5409 5416
5410 if test $ac_cv_func_gethostbyname = no; then 5417 if test $ac_cv_func_gethostbyname = no; then
5411 5418
5412 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5419 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5413 echo "configure:5414: checking for gethostbyname in -lnsl" >&5 5420 echo "configure:5421: checking for gethostbyname in -lnsl" >&5
5414 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5421 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5415 5422
5416 xe_check_libs=" -lnsl " 5423 xe_check_libs=" -lnsl "
5417 cat > conftest.$ac_ext <<EOF 5424 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure" 5425 #line 5426 "configure"
5419 #include "confdefs.h" 5426 #include "confdefs.h"
5420 /* Override any gcc2 internal prototype to avoid an error. */ 5427 /* Override any gcc2 internal prototype to avoid an error. */
5421 /* We use char because int might match the return type of a gcc2 5428 /* We use char because int might match the return type of a gcc2
5422 builtin and then its argument prototype would still apply. */ 5429 builtin and then its argument prototype would still apply. */
5423 char gethostbyname(); 5430 char gethostbyname();
5424 5431
5425 int main() { 5432 int main() {
5426 gethostbyname() 5433 gethostbyname()
5427 ; return 0; } 5434 ; return 0; }
5428 EOF 5435 EOF
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5436 if { (eval echo configure:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430 rm -rf conftest* 5437 rm -rf conftest*
5431 eval "ac_cv_lib_$ac_lib_var=yes" 5438 eval "ac_cv_lib_$ac_lib_var=yes"
5432 else 5439 else
5433 echo "configure: failed program was:" >&5 5440 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5 5441 cat conftest.$ac_ext >&5
5454 # on later versions), says simon@lia.di.epfl.ch: it contains 5461 # on later versions), says simon@lia.di.epfl.ch: it contains
5455 # gethostby* variants that don't use the nameserver (or something). 5462 # gethostby* variants that don't use the nameserver (or something).
5456 # -lsocket must be given before -lnsl if both are needed. 5463 # -lsocket must be given before -lnsl if both are needed.
5457 # We assume that if connect needs -lnsl, so does gethostbyname. 5464 # We assume that if connect needs -lnsl, so does gethostbyname.
5458 echo $ac_n "checking for connect""... $ac_c" 1>&6 5465 echo $ac_n "checking for connect""... $ac_c" 1>&6
5459 echo "configure:5460: checking for connect" >&5 5466 echo "configure:5467: checking for connect" >&5
5460 5467
5461 cat > conftest.$ac_ext <<EOF 5468 cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure" 5469 #line 5470 "configure"
5463 #include "confdefs.h" 5470 #include "confdefs.h"
5464 /* System header to define __stub macros and hopefully few prototypes, 5471 /* System header to define __stub macros and hopefully few prototypes,
5465 which can conflict with char connect(); below. */ 5472 which can conflict with char connect(); below. */
5466 #include <assert.h> 5473 #include <assert.h>
5467 /* Override any gcc2 internal prototype to avoid an error. */ 5474 /* Override any gcc2 internal prototype to avoid an error. */
5480 connect(); 5487 connect();
5481 #endif 5488 #endif
5482 5489
5483 ; return 0; } 5490 ; return 0; }
5484 EOF 5491 EOF
5485 if { (eval echo configure:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5492 if { (eval echo configure:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5486 rm -rf conftest* 5493 rm -rf conftest*
5487 eval "ac_cv_func_connect=yes" 5494 eval "ac_cv_func_connect=yes"
5488 else 5495 else
5489 echo "configure: failed program was:" >&5 5496 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5 5497 cat conftest.$ac_ext >&5
5503 if test $ac_cv_func_connect = no; then 5510 if test $ac_cv_func_connect = no; then
5504 5511
5505 xe_msg_checking="for connect in -lsocket" 5512 xe_msg_checking="for connect in -lsocket"
5506 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5513 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5507 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5514 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5508 echo "configure:5509: checking "$xe_msg_checking"" >&5 5515 echo "configure:5516: checking "$xe_msg_checking"" >&5
5509 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 5516 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5510 5517
5511 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5518 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5512 cat > conftest.$ac_ext <<EOF 5519 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure" 5520 #line 5521 "configure"
5514 #include "confdefs.h" 5521 #include "confdefs.h"
5515 /* Override any gcc2 internal prototype to avoid an error. */ 5522 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2 5523 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */ 5524 builtin and then its argument prototype would still apply. */
5518 char connect(); 5525 char connect();
5519 5526
5520 int main() { 5527 int main() {
5521 connect() 5528 connect()
5522 ; return 0; } 5529 ; return 0; }
5523 EOF 5530 EOF
5524 if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5525 rm -rf conftest* 5532 rm -rf conftest*
5526 eval "ac_cv_lib_$ac_lib_var=yes" 5533 eval "ac_cv_lib_$ac_lib_var=yes"
5527 else 5534 else
5528 echo "configure: failed program was:" >&5 5535 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5 5536 cat conftest.$ac_ext >&5
5543 5550
5544 fi 5551 fi
5545 5552
5546 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 5553 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5547 echo $ac_n "checking for remove""... $ac_c" 1>&6 5554 echo $ac_n "checking for remove""... $ac_c" 1>&6
5548 echo "configure:5549: checking for remove" >&5 5555 echo "configure:5556: checking for remove" >&5
5549 5556
5550 cat > conftest.$ac_ext <<EOF 5557 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure" 5558 #line 5559 "configure"
5552 #include "confdefs.h" 5559 #include "confdefs.h"
5553 /* System header to define __stub macros and hopefully few prototypes, 5560 /* System header to define __stub macros and hopefully few prototypes,
5554 which can conflict with char remove(); below. */ 5561 which can conflict with char remove(); below. */
5555 #include <assert.h> 5562 #include <assert.h>
5556 /* Override any gcc2 internal prototype to avoid an error. */ 5563 /* Override any gcc2 internal prototype to avoid an error. */
5569 remove(); 5576 remove();
5570 #endif 5577 #endif
5571 5578
5572 ; return 0; } 5579 ; return 0; }
5573 EOF 5580 EOF
5574 if { (eval echo configure:5575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5575 rm -rf conftest* 5582 rm -rf conftest*
5576 eval "ac_cv_func_remove=yes" 5583 eval "ac_cv_func_remove=yes"
5577 else 5584 else
5578 echo "configure: failed program was:" >&5 5585 echo "configure: failed program was:" >&5
5579 cat conftest.$ac_ext >&5 5586 cat conftest.$ac_ext >&5
5590 fi 5597 fi
5591 5598
5592 if test $ac_cv_func_remove = no; then 5599 if test $ac_cv_func_remove = no; then
5593 5600
5594 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5601 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5595 echo "configure:5596: checking for remove in -lposix" >&5 5602 echo "configure:5603: checking for remove in -lposix" >&5
5596 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5603 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5597 5604
5598 xe_check_libs=" -lposix " 5605 xe_check_libs=" -lposix "
5599 cat > conftest.$ac_ext <<EOF 5606 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure" 5607 #line 5608 "configure"
5601 #include "confdefs.h" 5608 #include "confdefs.h"
5602 /* Override any gcc2 internal prototype to avoid an error. */ 5609 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2 5610 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */ 5611 builtin and then its argument prototype would still apply. */
5605 char remove(); 5612 char remove();
5606 5613
5607 int main() { 5614 int main() {
5608 remove() 5615 remove()
5609 ; return 0; } 5616 ; return 0; }
5610 EOF 5617 EOF
5611 if { (eval echo configure:5612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5618 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5612 rm -rf conftest* 5619 rm -rf conftest*
5613 eval "ac_cv_lib_$ac_lib_var=yes" 5620 eval "ac_cv_lib_$ac_lib_var=yes"
5614 else 5621 else
5615 echo "configure: failed program was:" >&5 5622 echo "configure: failed program was:" >&5
5616 cat conftest.$ac_ext >&5 5623 cat conftest.$ac_ext >&5
5630 5637
5631 fi 5638 fi
5632 5639
5633 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5640 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5634 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5641 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5635 echo "configure:5636: checking for shmat" >&5 5642 echo "configure:5643: checking for shmat" >&5
5636 5643
5637 cat > conftest.$ac_ext <<EOF 5644 cat > conftest.$ac_ext <<EOF
5638 #line 5639 "configure" 5645 #line 5646 "configure"
5639 #include "confdefs.h" 5646 #include "confdefs.h"
5640 /* System header to define __stub macros and hopefully few prototypes, 5647 /* System header to define __stub macros and hopefully few prototypes,
5641 which can conflict with char shmat(); below. */ 5648 which can conflict with char shmat(); below. */
5642 #include <assert.h> 5649 #include <assert.h>
5643 /* Override any gcc2 internal prototype to avoid an error. */ 5650 /* Override any gcc2 internal prototype to avoid an error. */
5656 shmat(); 5663 shmat();
5657 #endif 5664 #endif
5658 5665
5659 ; return 0; } 5666 ; return 0; }
5660 EOF 5667 EOF
5661 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5668 if { (eval echo configure:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5662 rm -rf conftest* 5669 rm -rf conftest*
5663 eval "ac_cv_func_shmat=yes" 5670 eval "ac_cv_func_shmat=yes"
5664 else 5671 else
5665 echo "configure: failed program was:" >&5 5672 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5 5673 cat conftest.$ac_ext >&5
5677 fi 5684 fi
5678 5685
5679 if test $ac_cv_func_shmat = no; then 5686 if test $ac_cv_func_shmat = no; then
5680 5687
5681 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5688 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5682 echo "configure:5683: checking for shmat in -lipc" >&5 5689 echo "configure:5690: checking for shmat in -lipc" >&5
5683 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5690 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5684 5691
5685 xe_check_libs=" -lipc " 5692 xe_check_libs=" -lipc "
5686 cat > conftest.$ac_ext <<EOF 5693 cat > conftest.$ac_ext <<EOF
5687 #line 5688 "configure" 5694 #line 5695 "configure"
5688 #include "confdefs.h" 5695 #include "confdefs.h"
5689 /* Override any gcc2 internal prototype to avoid an error. */ 5696 /* Override any gcc2 internal prototype to avoid an error. */
5690 /* 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
5691 builtin and then its argument prototype would still apply. */ 5698 builtin and then its argument prototype would still apply. */
5692 char shmat(); 5699 char shmat();
5693 5700
5694 int main() { 5701 int main() {
5695 shmat() 5702 shmat()
5696 ; return 0; } 5703 ; return 0; }
5697 EOF 5704 EOF
5698 if { (eval echo configure:5699: \"$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
5699 rm -rf conftest* 5706 rm -rf conftest*
5700 eval "ac_cv_lib_$ac_lib_var=yes" 5707 eval "ac_cv_lib_$ac_lib_var=yes"
5701 else 5708 else
5702 echo "configure: failed program was:" >&5 5709 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5 5710 cat conftest.$ac_ext >&5
5729 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5736 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5730 5737
5731 xe_msg_checking="for IceConnectionNumber in -lICE" 5738 xe_msg_checking="for IceConnectionNumber in -lICE"
5732 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5739 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5733 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5740 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5734 echo "configure:5735: checking "$xe_msg_checking"" >&5 5741 echo "configure:5742: checking "$xe_msg_checking"" >&5
5735 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5742 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5736 5743
5737 xe_check_libs=" -lICE $X_EXTRA_LIBS" 5744 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5738 cat > conftest.$ac_ext <<EOF 5745 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure" 5746 #line 5747 "configure"
5740 #include "confdefs.h" 5747 #include "confdefs.h"
5741 /* Override any gcc2 internal prototype to avoid an error. */ 5748 /* Override any gcc2 internal prototype to avoid an error. */
5742 /* We use char because int might match the return type of a gcc2 5749 /* We use char because int might match the return type of a gcc2
5743 builtin and then its argument prototype would still apply. */ 5750 builtin and then its argument prototype would still apply. */
5744 char IceConnectionNumber(); 5751 char IceConnectionNumber();
5745 5752
5746 int main() { 5753 int main() {
5747 IceConnectionNumber() 5754 IceConnectionNumber()
5748 ; return 0; } 5755 ; return 0; }
5749 EOF 5756 EOF
5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5757 if { (eval echo configure:5758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5751 rm -rf conftest* 5758 rm -rf conftest*
5752 eval "ac_cv_lib_$ac_lib_var=yes" 5759 eval "ac_cv_lib_$ac_lib_var=yes"
5753 else 5760 else
5754 echo "configure: failed program was:" >&5 5761 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5 5762 cat conftest.$ac_ext >&5
5916 EOF 5923 EOF
5917 } 5924 }
5918 5925
5919 5926
5920 echo "checking for X defines extracted by xmkmf" 1>&6 5927 echo "checking for X defines extracted by xmkmf" 1>&6
5921 echo "configure:5922: checking for X defines extracted by xmkmf" >&5 5928 echo "configure:5929: checking for X defines extracted by xmkmf" >&5
5922 rm -fr conftestdir 5929 rm -fr conftestdir
5923 if mkdir conftestdir; then 5930 if mkdir conftestdir; then
5924 cd conftestdir 5931 cd conftestdir
5925 cat > Imakefile <<'EOF' 5932 cat > Imakefile <<'EOF'
5926 xetest: 5933 xetest:
5963 done 5970 done
5964 fi 5971 fi
5965 5972
5966 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5973 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5967 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5974 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5968 echo "configure:5969: checking for X11/Intrinsic.h" >&5 5975 echo "configure:5976: checking for X11/Intrinsic.h" >&5
5969 5976
5970 cat > conftest.$ac_ext <<EOF 5977 cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure" 5978 #line 5979 "configure"
5972 #include "confdefs.h" 5979 #include "confdefs.h"
5973 #include <X11/Intrinsic.h> 5980 #include <X11/Intrinsic.h>
5974 EOF 5981 EOF
5975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5976 { (eval echo configure:5977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5983 { (eval echo configure:5984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5978 if test -z "$ac_err"; then 5985 if test -z "$ac_err"; then
5979 rm -rf conftest* 5986 rm -rf conftest*
5980 eval "ac_cv_header_$ac_safe=yes" 5987 eval "ac_cv_header_$ac_safe=yes"
5981 else 5988 else
5995 fi 6002 fi
5996 6003
5997 6004
5998 6005
5999 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 6006 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6000 echo "configure:6001: checking for XOpenDisplay in -lX11" >&5 6007 echo "configure:6008: checking for XOpenDisplay in -lX11" >&5
6001 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 6008 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6002 6009
6003 xe_check_libs=" -lX11 " 6010 xe_check_libs=" -lX11 "
6004 cat > conftest.$ac_ext <<EOF 6011 cat > conftest.$ac_ext <<EOF
6005 #line 6006 "configure" 6012 #line 6013 "configure"
6006 #include "confdefs.h" 6013 #include "confdefs.h"
6007 /* Override any gcc2 internal prototype to avoid an error. */ 6014 /* Override any gcc2 internal prototype to avoid an error. */
6008 /* We use char because int might match the return type of a gcc2 6015 /* We use char because int might match the return type of a gcc2
6009 builtin and then its argument prototype would still apply. */ 6016 builtin and then its argument prototype would still apply. */
6010 char XOpenDisplay(); 6017 char XOpenDisplay();
6011 6018
6012 int main() { 6019 int main() {
6013 XOpenDisplay() 6020 XOpenDisplay()
6014 ; return 0; } 6021 ; return 0; }
6015 EOF 6022 EOF
6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6023 if { (eval echo configure:6024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6017 rm -rf conftest* 6024 rm -rf conftest*
6018 eval "ac_cv_lib_$ac_lib_var=yes" 6025 eval "ac_cv_lib_$ac_lib_var=yes"
6019 else 6026 else
6020 echo "configure: failed program was:" >&5 6027 echo "configure: failed program was:" >&5
6021 cat conftest.$ac_ext >&5 6028 cat conftest.$ac_ext >&5
6036 if test "$have_lib_x11" != "yes"; then 6043 if test "$have_lib_x11" != "yes"; then
6037 6044
6038 xe_msg_checking="for XGetFontProperty in -lX11" 6045 xe_msg_checking="for XGetFontProperty in -lX11"
6039 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 6046 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6040 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6047 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6041 echo "configure:6042: checking "$xe_msg_checking"" >&5 6048 echo "configure:6049: checking "$xe_msg_checking"" >&5
6042 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 6049 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6043 6050
6044 xe_check_libs=" -lX11 -b i486-linuxaout" 6051 xe_check_libs=" -lX11 -b i486-linuxaout"
6045 cat > conftest.$ac_ext <<EOF 6052 cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure" 6053 #line 6054 "configure"
6047 #include "confdefs.h" 6054 #include "confdefs.h"
6048 /* Override any gcc2 internal prototype to avoid an error. */ 6055 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2 6056 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */ 6057 builtin and then its argument prototype would still apply. */
6051 char XGetFontProperty(); 6058 char XGetFontProperty();
6052 6059
6053 int main() { 6060 int main() {
6054 XGetFontProperty() 6061 XGetFontProperty()
6055 ; return 0; } 6062 ; return 0; }
6056 EOF 6063 EOF
6057 if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6064 if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6058 rm -rf conftest* 6065 rm -rf conftest*
6059 eval "ac_cv_lib_$ac_lib_var=yes" 6066 eval "ac_cv_lib_$ac_lib_var=yes"
6060 else 6067 else
6061 echo "configure: failed program was:" >&5 6068 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5 6069 cat conftest.$ac_ext >&5
6079 libs_x="-lX11" 6086 libs_x="-lX11"
6080 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 6087 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6081 6088
6082 6089
6083 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 6090 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6084 echo "configure:6085: checking for XShapeSelectInput in -lXext" >&5 6091 echo "configure:6092: checking for XShapeSelectInput in -lXext" >&5
6085 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 6092 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6086 6093
6087 xe_check_libs=" -lXext " 6094 xe_check_libs=" -lXext "
6088 cat > conftest.$ac_ext <<EOF 6095 cat > conftest.$ac_ext <<EOF
6089 #line 6090 "configure" 6096 #line 6097 "configure"
6090 #include "confdefs.h" 6097 #include "confdefs.h"
6091 /* Override any gcc2 internal prototype to avoid an error. */ 6098 /* Override any gcc2 internal prototype to avoid an error. */
6092 /* We use char because int might match the return type of a gcc2 6099 /* We use char because int might match the return type of a gcc2
6093 builtin and then its argument prototype would still apply. */ 6100 builtin and then its argument prototype would still apply. */
6094 char XShapeSelectInput(); 6101 char XShapeSelectInput();
6095 6102
6096 int main() { 6103 int main() {
6097 XShapeSelectInput() 6104 XShapeSelectInput()
6098 ; return 0; } 6105 ; return 0; }
6099 EOF 6106 EOF
6100 if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6107 if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6101 rm -rf conftest* 6108 rm -rf conftest*
6102 eval "ac_cv_lib_$ac_lib_var=yes" 6109 eval "ac_cv_lib_$ac_lib_var=yes"
6103 else 6110 else
6104 echo "configure: failed program was:" >&5 6111 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5 6112 cat conftest.$ac_ext >&5
6118 6125
6119 6126
6120 6127
6121 6128
6122 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 6129 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6123 echo "configure:6124: checking for XtOpenDisplay in -lXt" >&5 6130 echo "configure:6131: checking for XtOpenDisplay in -lXt" >&5
6124 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 6131 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6125 6132
6126 xe_check_libs=" -lXt " 6133 xe_check_libs=" -lXt "
6127 cat > conftest.$ac_ext <<EOF 6134 cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure" 6135 #line 6136 "configure"
6129 #include "confdefs.h" 6136 #include "confdefs.h"
6130 /* Override any gcc2 internal prototype to avoid an error. */ 6137 /* Override any gcc2 internal prototype to avoid an error. */
6131 /* We use char because int might match the return type of a gcc2 6138 /* We use char because int might match the return type of a gcc2
6132 builtin and then its argument prototype would still apply. */ 6139 builtin and then its argument prototype would still apply. */
6133 char XtOpenDisplay(); 6140 char XtOpenDisplay();
6134 6141
6135 int main() { 6142 int main() {
6136 XtOpenDisplay() 6143 XtOpenDisplay()
6137 ; return 0; } 6144 ; return 0; }
6138 EOF 6145 EOF
6139 if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6140 rm -rf conftest* 6147 rm -rf conftest*
6141 eval "ac_cv_lib_$ac_lib_var=yes" 6148 eval "ac_cv_lib_$ac_lib_var=yes"
6142 else 6149 else
6143 echo "configure: failed program was:" >&5 6150 echo "configure: failed program was:" >&5
6144 cat conftest.$ac_ext >&5 6151 cat conftest.$ac_ext >&5
6157 fi 6164 fi
6158 6165
6159 6166
6160 6167
6161 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 6168 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6162 echo "configure:6163: checking the version of X11 being used" >&5 6169 echo "configure:6170: checking the version of X11 being used" >&5
6163 cat > conftest.$ac_ext <<EOF 6170 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure" 6171 #line 6172 "configure"
6165 #include "confdefs.h" 6172 #include "confdefs.h"
6166 #include <X11/Intrinsic.h> 6173 #include <X11/Intrinsic.h>
6167 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 6174 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6168 EOF 6175 EOF
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6176 if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6170 then 6177 then
6171 ./conftest foobar; x11_release=$? 6178 ./conftest foobar; x11_release=$?
6172 else 6179 else
6173 conftest_rc="$?" 6180 conftest_rc="$?"
6174 echo "configure: failed program was:" >&5 6181 echo "configure: failed program was:" >&5
6195 fi 6202 fi
6196 6203
6197 for ac_func in XConvertCase 6204 for ac_func in XConvertCase
6198 do 6205 do
6199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6200 echo "configure:6201: checking for $ac_func" >&5 6207 echo "configure:6208: checking for $ac_func" >&5
6201 6208
6202 cat > conftest.$ac_ext <<EOF 6209 cat > conftest.$ac_ext <<EOF
6203 #line 6204 "configure" 6210 #line 6211 "configure"
6204 #include "confdefs.h" 6211 #include "confdefs.h"
6205 /* System header to define __stub macros and hopefully few prototypes, 6212 /* System header to define __stub macros and hopefully few prototypes,
6206 which can conflict with char $ac_func(); below. */ 6213 which can conflict with char $ac_func(); below. */
6207 #include <assert.h> 6214 #include <assert.h>
6208 /* Override any gcc2 internal prototype to avoid an error. */ 6215 /* Override any gcc2 internal prototype to avoid an error. */
6221 $ac_func(); 6228 $ac_func();
6222 #endif 6229 #endif
6223 6230
6224 ; return 0; } 6231 ; return 0; }
6225 EOF 6232 EOF
6226 if { (eval echo configure:6227: \"$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
6227 rm -rf conftest* 6234 rm -rf conftest*
6228 eval "ac_cv_func_$ac_func=yes" 6235 eval "ac_cv_func_$ac_func=yes"
6229 else 6236 else
6230 echo "configure: failed program was:" >&5 6237 echo "configure: failed program was:" >&5
6231 cat conftest.$ac_ext >&5 6238 cat conftest.$ac_ext >&5
6253 6260
6254 for ac_hdr in X11/Xlocale.h 6261 for ac_hdr in X11/Xlocale.h
6255 do 6262 do
6256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6258 echo "configure:6259: checking for $ac_hdr" >&5 6265 echo "configure:6266: checking for $ac_hdr" >&5
6259 6266
6260 cat > conftest.$ac_ext <<EOF 6267 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure" 6268 #line 6269 "configure"
6262 #include "confdefs.h" 6269 #include "confdefs.h"
6263 #include <$ac_hdr> 6270 #include <$ac_hdr>
6264 EOF 6271 EOF
6265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6266 { (eval echo configure:6267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6273 { (eval echo configure:6274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6268 if test -z "$ac_err"; then 6275 if test -z "$ac_err"; then
6269 rm -rf conftest* 6276 rm -rf conftest*
6270 eval "ac_cv_header_$ac_safe=yes" 6277 eval "ac_cv_header_$ac_safe=yes"
6271 else 6278 else
6294 6301
6295 6302
6296 for ac_func in XRegisterIMInstantiateCallback 6303 for ac_func in XRegisterIMInstantiateCallback
6297 do 6304 do
6298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6299 echo "configure:6300: checking for $ac_func" >&5 6306 echo "configure:6307: checking for $ac_func" >&5
6300 6307
6301 cat > conftest.$ac_ext <<EOF 6308 cat > conftest.$ac_ext <<EOF
6302 #line 6303 "configure" 6309 #line 6310 "configure"
6303 #include "confdefs.h" 6310 #include "confdefs.h"
6304 /* System header to define __stub macros and hopefully few prototypes, 6311 /* System header to define __stub macros and hopefully few prototypes,
6305 which can conflict with char $ac_func(); below. */ 6312 which can conflict with char $ac_func(); below. */
6306 #include <assert.h> 6313 #include <assert.h>
6307 /* Override any gcc2 internal prototype to avoid an error. */ 6314 /* Override any gcc2 internal prototype to avoid an error. */
6320 $ac_func(); 6327 $ac_func();
6321 #endif 6328 #endif
6322 6329
6323 ; return 0; } 6330 ; return 0; }
6324 EOF 6331 EOF
6325 if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6326 rm -rf conftest* 6333 rm -rf conftest*
6327 eval "ac_cv_func_$ac_func=yes" 6334 eval "ac_cv_func_$ac_func=yes"
6328 else 6335 else
6329 echo "configure: failed program was:" >&5 6336 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5 6337 cat conftest.$ac_ext >&5
6348 echo "$ac_t""no" 1>&6 6355 echo "$ac_t""no" 1>&6
6349 fi 6356 fi
6350 done 6357 done
6351 6358
6352 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 6359 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6353 echo "configure:6354: checking for standard XRegisterIMInstantiateCallback prototype" >&5 6360 echo "configure:6361: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6354 cat > conftest.$ac_ext <<EOF 6361 cat > conftest.$ac_ext <<EOF
6355 #line 6356 "configure" 6362 #line 6363 "configure"
6356 #include "confdefs.h" 6363 #include "confdefs.h"
6357 6364
6358 #define NeedFunctionPrototypes 1 6365 #define NeedFunctionPrototypes 1
6359 #include <X11/Xlib.h> 6366 #include <X11/Xlib.h>
6360 extern Bool XRegisterIMInstantiateCallback( 6367 extern Bool XRegisterIMInstantiateCallback(
6362 6369
6363 int main() { 6370 int main() {
6364 6371
6365 ; return 0; } 6372 ; return 0; }
6366 EOF 6373 EOF
6367 if { (eval echo configure:6368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6374 if { (eval echo configure:6375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6368 rm -rf conftest* 6375 rm -rf conftest*
6369 echo "$ac_t""yes" 1>&6 6376 echo "$ac_t""yes" 1>&6
6370 else 6377 else
6371 echo "configure: failed program was:" >&5 6378 echo "configure: failed program was:" >&5
6372 cat conftest.$ac_ext >&5 6379 cat conftest.$ac_ext >&5
6383 fi 6390 fi
6384 rm -f conftest* 6391 rm -f conftest*
6385 6392
6386 test -z "$with_xmu" && { 6393 test -z "$with_xmu" && {
6387 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 6394 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6388 echo "configure:6389: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 6395 echo "configure:6396: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6389 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 6396 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6390 6397
6391 xe_check_libs=" -lXmu " 6398 xe_check_libs=" -lXmu "
6392 cat > conftest.$ac_ext <<EOF 6399 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure" 6400 #line 6401 "configure"
6394 #include "confdefs.h" 6401 #include "confdefs.h"
6395 /* Override any gcc2 internal prototype to avoid an error. */ 6402 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2 6403 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */ 6404 builtin and then its argument prototype would still apply. */
6398 char XmuReadBitmapDataFromFile(); 6405 char XmuReadBitmapDataFromFile();
6399 6406
6400 int main() { 6407 int main() {
6401 XmuReadBitmapDataFromFile() 6408 XmuReadBitmapDataFromFile()
6402 ; return 0; } 6409 ; return 0; }
6403 EOF 6410 EOF
6404 if { (eval echo configure:6405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6405 rm -rf conftest* 6412 rm -rf conftest*
6406 eval "ac_cv_lib_$ac_lib_var=yes" 6413 eval "ac_cv_lib_$ac_lib_var=yes"
6407 else 6414 else
6408 echo "configure: failed program was:" >&5 6415 echo "configure: failed program was:" >&5
6409 cat conftest.$ac_ext >&5 6416 cat conftest.$ac_ext >&5
6438 6445
6439 fi 6446 fi
6440 6447
6441 6448
6442 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 6449 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6443 echo "configure:6444: checking for main in -lXbsd" >&5 6450 echo "configure:6451: checking for main in -lXbsd" >&5
6444 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 6451 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6445 6452
6446 xe_check_libs=" -lXbsd " 6453 xe_check_libs=" -lXbsd "
6447 cat > conftest.$ac_ext <<EOF 6454 cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure" 6455 #line 6456 "configure"
6449 #include "confdefs.h" 6456 #include "confdefs.h"
6450 6457
6451 int main() { 6458 int main() {
6452 main() 6459 main()
6453 ; return 0; } 6460 ; return 0; }
6454 EOF 6461 EOF
6455 if { (eval echo configure:6456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6462 if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6456 rm -rf conftest* 6463 rm -rf conftest*
6457 eval "ac_cv_lib_$ac_lib_var=yes" 6464 eval "ac_cv_lib_$ac_lib_var=yes"
6458 else 6465 else
6459 echo "configure: failed program was:" >&5 6466 echo "configure: failed program was:" >&5
6460 cat conftest.$ac_ext >&5 6467 cat conftest.$ac_ext >&5
6487 fi 6494 fi
6488 6495
6489 fi 6496 fi
6490 if test "$with_msw" != "no"; then 6497 if test "$with_msw" != "no"; then
6491 echo "checking for MS-Windows" 1>&6 6498 echo "checking for MS-Windows" 1>&6
6492 echo "configure:6493: checking for MS-Windows" >&5 6499 echo "configure:6500: checking for MS-Windows" >&5
6493 6500
6494 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 6501 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6495 echo "configure:6496: checking for main in -lgdi32" >&5 6502 echo "configure:6503: checking for main in -lgdi32" >&5
6496 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 6503 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6497 6504
6498 xe_check_libs=" -lgdi32 " 6505 xe_check_libs=" -lgdi32 "
6499 cat > conftest.$ac_ext <<EOF 6506 cat > conftest.$ac_ext <<EOF
6500 #line 6501 "configure" 6507 #line 6508 "configure"
6501 #include "confdefs.h" 6508 #include "confdefs.h"
6502 6509
6503 int main() { 6510 int main() {
6504 main() 6511 main()
6505 ; return 0; } 6512 ; return 0; }
6506 EOF 6513 EOF
6507 if { (eval echo configure:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6514 if { (eval echo configure:6515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6508 rm -rf conftest* 6515 rm -rf conftest*
6509 eval "ac_cv_lib_$ac_lib_var=yes" 6516 eval "ac_cv_lib_$ac_lib_var=yes"
6510 else 6517 else
6511 echo "configure: failed program was:" >&5 6518 echo "configure: failed program was:" >&5
6512 cat conftest.$ac_ext >&5 6519 cat conftest.$ac_ext >&5
6573 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 6580 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6574 echo " xemacs will be linked with \"dialog-msw.o\"" 6581 echo " xemacs will be linked with \"dialog-msw.o\""
6575 fi 6582 fi
6576 fi 6583 fi
6577 cat > conftest.$ac_ext <<EOF 6584 cat > conftest.$ac_ext <<EOF
6578 #line 6579 "configure" 6585 #line 6586 "configure"
6579 #include "confdefs.h" 6586 #include "confdefs.h"
6580 #include <fcntl.h> 6587 #include <fcntl.h>
6581 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 6588 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6582 EOF 6589 EOF
6583 if { (eval echo configure:6584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6590 if { (eval echo configure:6591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6584 then 6591 then
6585 { test "$extra_verbose" = "yes" && cat << \EOF 6592 { test "$extra_verbose" = "yes" && cat << \EOF
6586 Defining HAVE_MSG_SELECT 6593 Defining HAVE_MSG_SELECT
6587 EOF 6594 EOF
6588 cat >> confdefs.h <<\EOF 6595 cat >> confdefs.h <<\EOF
6642 fi 6649 fi
6643 6650
6644 if test "$with_x11" = "yes"; then 6651 if test "$with_x11" = "yes"; then
6645 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` 6652 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
6646 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 6653 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
6647 echo "configure:6648: checking for X11/extensions/shape.h" >&5 6654 echo "configure:6655: checking for X11/extensions/shape.h" >&5
6648 6655
6649 cat > conftest.$ac_ext <<EOF 6656 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure" 6657 #line 6658 "configure"
6651 #include "confdefs.h" 6658 #include "confdefs.h"
6652 #include <X11/extensions/shape.h> 6659 #include <X11/extensions/shape.h>
6653 EOF 6660 EOF
6654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6655 { (eval echo configure:6656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6662 { (eval echo configure:6663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6657 if test -z "$ac_err"; then 6664 if test -z "$ac_err"; then
6658 rm -rf conftest* 6665 rm -rf conftest*
6659 eval "ac_cv_header_$ac_safe=yes" 6666 eval "ac_cv_header_$ac_safe=yes"
6660 else 6667 else
6697 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 6704 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6698 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 6705 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6699 esac 6706 esac
6700 6707
6701 echo "checking for WM_COMMAND option" 1>&6 6708 echo "checking for WM_COMMAND option" 1>&6
6702 echo "configure:6703: checking for WM_COMMAND option" >&5; 6709 echo "configure:6710: checking for WM_COMMAND option" >&5;
6703 if test "$with_wmcommand" != "no"; then 6710 if test "$with_wmcommand" != "no"; then
6704 { test "$extra_verbose" = "yes" && cat << \EOF 6711 { test "$extra_verbose" = "yes" && cat << \EOF
6705 Defining HAVE_WMCOMMAND 6712 Defining HAVE_WMCOMMAND
6706 EOF 6713 EOF
6707 cat >> confdefs.h <<\EOF 6714 cat >> confdefs.h <<\EOF
6712 fi 6719 fi
6713 6720
6714 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 6721 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6715 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 6722 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6716 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 6723 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6717 echo "configure:6718: checking for X11/Xauth.h" >&5 6724 echo "configure:6725: checking for X11/Xauth.h" >&5
6718 6725
6719 cat > conftest.$ac_ext <<EOF 6726 cat > conftest.$ac_ext <<EOF
6720 #line 6721 "configure" 6727 #line 6728 "configure"
6721 #include "confdefs.h" 6728 #include "confdefs.h"
6722 #include <X11/Xauth.h> 6729 #include <X11/Xauth.h>
6723 EOF 6730 EOF
6724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6725 { (eval echo configure:6726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6732 { (eval echo configure:6733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6727 if test -z "$ac_err"; then 6734 if test -z "$ac_err"; then
6728 rm -rf conftest* 6735 rm -rf conftest*
6729 eval "ac_cv_header_$ac_safe=yes" 6736 eval "ac_cv_header_$ac_safe=yes"
6730 else 6737 else
6743 with_xauth=no 6750 with_xauth=no
6744 fi 6751 fi
6745 } 6752 }
6746 test -z "$with_xauth" && { 6753 test -z "$with_xauth" && {
6747 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 6754 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6748 echo "configure:6749: checking for XauGetAuthByAddr in -lXau" >&5 6755 echo "configure:6756: checking for XauGetAuthByAddr in -lXau" >&5
6749 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6756 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6750 6757
6751 xe_check_libs=" -lXau " 6758 xe_check_libs=" -lXau "
6752 cat > conftest.$ac_ext <<EOF 6759 cat > conftest.$ac_ext <<EOF
6753 #line 6754 "configure" 6760 #line 6761 "configure"
6754 #include "confdefs.h" 6761 #include "confdefs.h"
6755 /* Override any gcc2 internal prototype to avoid an error. */ 6762 /* Override any gcc2 internal prototype to avoid an error. */
6756 /* We use char because int might match the return type of a gcc2 6763 /* We use char because int might match the return type of a gcc2
6757 builtin and then its argument prototype would still apply. */ 6764 builtin and then its argument prototype would still apply. */
6758 char XauGetAuthByAddr(); 6765 char XauGetAuthByAddr();
6759 6766
6760 int main() { 6767 int main() {
6761 XauGetAuthByAddr() 6768 XauGetAuthByAddr()
6762 ; return 0; } 6769 ; return 0; }
6763 EOF 6770 EOF
6764 if { (eval echo configure:6765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6771 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6765 rm -rf conftest* 6772 rm -rf conftest*
6766 eval "ac_cv_lib_$ac_lib_var=yes" 6773 eval "ac_cv_lib_$ac_lib_var=yes"
6767 else 6774 else
6768 echo "configure: failed program was:" >&5 6775 echo "configure: failed program was:" >&5
6769 cat conftest.$ac_ext >&5 6776 cat conftest.$ac_ext >&5
6804 6811
6805 if test "$with_tooltalk" != "no" ; then 6812 if test "$with_tooltalk" != "no" ; then
6806 for dir in "" "Tt/" "desktop/" ; do 6813 for dir in "" "Tt/" "desktop/" ; do
6807 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6814 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6808 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6815 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6809 echo "configure:6810: checking for ${dir}tt_c.h" >&5 6816 echo "configure:6817: checking for ${dir}tt_c.h" >&5
6810 6817
6811 cat > conftest.$ac_ext <<EOF 6818 cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure" 6819 #line 6820 "configure"
6813 #include "confdefs.h" 6820 #include "confdefs.h"
6814 #include <${dir}tt_c.h> 6821 #include <${dir}tt_c.h>
6815 EOF 6822 EOF
6816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6817 { (eval echo configure:6818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6824 { (eval echo configure:6825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6819 if test -z "$ac_err"; then 6826 if test -z "$ac_err"; then
6820 rm -rf conftest* 6827 rm -rf conftest*
6821 eval "ac_cv_header_$ac_safe=yes" 6828 eval "ac_cv_header_$ac_safe=yes"
6822 else 6829 else
6848 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6855 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6849 6856
6850 xe_msg_checking="for tt_message_create in -ltt" 6857 xe_msg_checking="for tt_message_create in -ltt"
6851 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6858 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6852 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6859 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6853 echo "configure:6854: checking "$xe_msg_checking"" >&5 6860 echo "configure:6861: checking "$xe_msg_checking"" >&5
6854 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6861 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6855 6862
6856 xe_check_libs=" -ltt $extra_libs" 6863 xe_check_libs=" -ltt $extra_libs"
6857 cat > conftest.$ac_ext <<EOF 6864 cat > conftest.$ac_ext <<EOF
6858 #line 6859 "configure" 6865 #line 6866 "configure"
6859 #include "confdefs.h" 6866 #include "confdefs.h"
6860 /* Override any gcc2 internal prototype to avoid an error. */ 6867 /* Override any gcc2 internal prototype to avoid an error. */
6861 /* We use char because int might match the return type of a gcc2 6868 /* We use char because int might match the return type of a gcc2
6862 builtin and then its argument prototype would still apply. */ 6869 builtin and then its argument prototype would still apply. */
6863 char tt_message_create(); 6870 char tt_message_create();
6864 6871
6865 int main() { 6872 int main() {
6866 tt_message_create() 6873 tt_message_create()
6867 ; return 0; } 6874 ; return 0; }
6868 EOF 6875 EOF
6869 if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6876 if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6870 rm -rf conftest* 6877 rm -rf conftest*
6871 eval "ac_cv_lib_$ac_lib_var=yes" 6878 eval "ac_cv_lib_$ac_lib_var=yes"
6872 else 6879 else
6873 echo "configure: failed program was:" >&5 6880 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5 6881 cat conftest.$ac_ext >&5
6921 fi 6928 fi
6922 fi 6929 fi
6923 6930
6924 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6931 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6925 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6932 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6926 echo "configure:6927: checking for Dt/Dt.h" >&5 6933 echo "configure:6934: checking for Dt/Dt.h" >&5
6927 6934
6928 cat > conftest.$ac_ext <<EOF 6935 cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure" 6936 #line 6937 "configure"
6930 #include "confdefs.h" 6937 #include "confdefs.h"
6931 #include <Dt/Dt.h> 6938 #include <Dt/Dt.h>
6932 EOF 6939 EOF
6933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6934 { (eval echo configure:6935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6941 { (eval echo configure:6942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6936 if test -z "$ac_err"; then 6943 if test -z "$ac_err"; then
6937 rm -rf conftest* 6944 rm -rf conftest*
6938 eval "ac_cv_header_$ac_safe=yes" 6945 eval "ac_cv_header_$ac_safe=yes"
6939 else 6946 else
6952 with_cde=no 6959 with_cde=no
6953 fi 6960 fi
6954 } 6961 }
6955 test -z "$with_cde" && { 6962 test -z "$with_cde" && {
6956 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6963 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6957 echo "configure:6958: checking for DtDndDragStart in -lDtSvc" >&5 6964 echo "configure:6965: checking for DtDndDragStart in -lDtSvc" >&5
6958 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6965 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6959 6966
6960 xe_check_libs=" -lDtSvc " 6967 xe_check_libs=" -lDtSvc "
6961 cat > conftest.$ac_ext <<EOF 6968 cat > conftest.$ac_ext <<EOF
6962 #line 6963 "configure" 6969 #line 6970 "configure"
6963 #include "confdefs.h" 6970 #include "confdefs.h"
6964 /* Override any gcc2 internal prototype to avoid an error. */ 6971 /* Override any gcc2 internal prototype to avoid an error. */
6965 /* We use char because int might match the return type of a gcc2 6972 /* We use char because int might match the return type of a gcc2
6966 builtin and then its argument prototype would still apply. */ 6973 builtin and then its argument prototype would still apply. */
6967 char DtDndDragStart(); 6974 char DtDndDragStart();
6968 6975
6969 int main() { 6976 int main() {
6970 DtDndDragStart() 6977 DtDndDragStart()
6971 ; return 0; } 6978 ; return 0; }
6972 EOF 6979 EOF
6973 if { (eval echo configure:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6974 rm -rf conftest* 6981 rm -rf conftest*
6975 eval "ac_cv_lib_$ac_lib_var=yes" 6982 eval "ac_cv_lib_$ac_lib_var=yes"
6976 else 6983 else
6977 echo "configure: failed program was:" >&5 6984 echo "configure: failed program was:" >&5
6978 cat conftest.$ac_ext >&5 6985 cat conftest.$ac_ext >&5
7038 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 7045 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7039 fi 7046 fi
7040 7047
7041 if test "$with_dragndrop" != "no" ; then 7048 if test "$with_dragndrop" != "no" ; then
7042 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 7049 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7043 echo "configure:7044: checking if drag and drop API is needed" >&5 7050 echo "configure:7051: checking if drag and drop API is needed" >&5
7044 if test -n "$dragndrop_proto" ; then 7051 if test -n "$dragndrop_proto" ; then
7045 with_dragndrop=yes 7052 with_dragndrop=yes
7046 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 7053 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7047 { test "$extra_verbose" = "yes" && cat << \EOF 7054 { test "$extra_verbose" = "yes" && cat << \EOF
7048 Defining HAVE_DRAGNDROP 7055 Defining HAVE_DRAGNDROP
7058 echo "$ac_t""no" 1>&6 7065 echo "$ac_t""no" 1>&6
7059 fi 7066 fi
7060 fi 7067 fi
7061 7068
7062 echo "checking for LDAP" 1>&6 7069 echo "checking for LDAP" 1>&6
7063 echo "configure:7064: checking for LDAP" >&5 7070 echo "configure:7071: checking for LDAP" >&5
7064 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 7071 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7065 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 7072 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7066 echo "configure:7067: checking for ldap.h" >&5 7073 echo "configure:7074: checking for ldap.h" >&5
7067 7074
7068 cat > conftest.$ac_ext <<EOF 7075 cat > conftest.$ac_ext <<EOF
7069 #line 7070 "configure" 7076 #line 7077 "configure"
7070 #include "confdefs.h" 7077 #include "confdefs.h"
7071 #include <ldap.h> 7078 #include <ldap.h>
7072 EOF 7079 EOF
7073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7074 { (eval echo configure:7075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7081 { (eval echo configure:7082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7076 if test -z "$ac_err"; then 7083 if test -z "$ac_err"; then
7077 rm -rf conftest* 7084 rm -rf conftest*
7078 eval "ac_cv_header_$ac_safe=yes" 7085 eval "ac_cv_header_$ac_safe=yes"
7079 else 7086 else
7092 with_ldap=no 7099 with_ldap=no
7093 fi 7100 fi
7094 } 7101 }
7095 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 7102 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7096 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 7103 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7097 echo "configure:7098: checking for lber.h" >&5 7104 echo "configure:7105: checking for lber.h" >&5
7098 7105
7099 cat > conftest.$ac_ext <<EOF 7106 cat > conftest.$ac_ext <<EOF
7100 #line 7101 "configure" 7107 #line 7108 "configure"
7101 #include "confdefs.h" 7108 #include "confdefs.h"
7102 #include <lber.h> 7109 #include <lber.h>
7103 EOF 7110 EOF
7104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7105 { (eval echo configure:7106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7112 { (eval echo configure:7113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7107 if test -z "$ac_err"; then 7114 if test -z "$ac_err"; then
7108 rm -rf conftest* 7115 rm -rf conftest*
7109 eval "ac_cv_header_$ac_safe=yes" 7116 eval "ac_cv_header_$ac_safe=yes"
7110 else 7117 else
7124 fi 7131 fi
7125 } 7132 }
7126 if test "$with_ldap" != "no"; then 7133 if test "$with_ldap" != "no"; then
7127 7134
7128 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 7135 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7129 echo "configure:7130: checking for ldap_search in -lldap" >&5 7136 echo "configure:7137: checking for ldap_search in -lldap" >&5
7130 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 7137 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7131 7138
7132 xe_check_libs=" -lldap " 7139 xe_check_libs=" -lldap "
7133 cat > conftest.$ac_ext <<EOF 7140 cat > conftest.$ac_ext <<EOF
7134 #line 7135 "configure" 7141 #line 7142 "configure"
7135 #include "confdefs.h" 7142 #include "confdefs.h"
7136 /* Override any gcc2 internal prototype to avoid an error. */ 7143 /* Override any gcc2 internal prototype to avoid an error. */
7137 /* We use char because int might match the return type of a gcc2 7144 /* We use char because int might match the return type of a gcc2
7138 builtin and then its argument prototype would still apply. */ 7145 builtin and then its argument prototype would still apply. */
7139 char ldap_search(); 7146 char ldap_search();
7140 7147
7141 int main() { 7148 int main() {
7142 ldap_search() 7149 ldap_search()
7143 ; return 0; } 7150 ; return 0; }
7144 EOF 7151 EOF
7145 if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7146 rm -rf conftest* 7153 rm -rf conftest*
7147 eval "ac_cv_lib_$ac_lib_var=yes" 7154 eval "ac_cv_lib_$ac_lib_var=yes"
7148 else 7155 else
7149 echo "configure: failed program was:" >&5 7156 echo "configure: failed program was:" >&5
7150 cat conftest.$ac_ext >&5 7157 cat conftest.$ac_ext >&5
7165 7172
7166 test "$with_ldap_nolber" = "no" && { 7173 test "$with_ldap_nolber" = "no" && {
7167 xe_msg_checking="for ldap_open in -lldap" 7174 xe_msg_checking="for ldap_open in -lldap"
7168 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 7175 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7169 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7176 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7170 echo "configure:7171: checking "$xe_msg_checking"" >&5 7177 echo "configure:7178: checking "$xe_msg_checking"" >&5
7171 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7178 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7172 7179
7173 xe_check_libs=" -lldap -llber" 7180 xe_check_libs=" -lldap -llber"
7174 cat > conftest.$ac_ext <<EOF 7181 cat > conftest.$ac_ext <<EOF
7175 #line 7176 "configure" 7182 #line 7183 "configure"
7176 #include "confdefs.h" 7183 #include "confdefs.h"
7177 /* Override any gcc2 internal prototype to avoid an error. */ 7184 /* Override any gcc2 internal prototype to avoid an error. */
7178 /* We use char because int might match the return type of a gcc2 7185 /* We use char because int might match the return type of a gcc2
7179 builtin and then its argument prototype would still apply. */ 7186 builtin and then its argument prototype would still apply. */
7180 char ldap_open(); 7187 char ldap_open();
7181 7188
7182 int main() { 7189 int main() {
7183 ldap_open() 7190 ldap_open()
7184 ; return 0; } 7191 ; return 0; }
7185 EOF 7192 EOF
7186 if { (eval echo configure:7187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7187 rm -rf conftest* 7194 rm -rf conftest*
7188 eval "ac_cv_lib_$ac_lib_var=yes" 7195 eval "ac_cv_lib_$ac_lib_var=yes"
7189 else 7196 else
7190 echo "configure: failed program was:" >&5 7197 echo "configure: failed program was:" >&5
7191 cat conftest.$ac_ext >&5 7198 cat conftest.$ac_ext >&5
7206 } 7213 }
7207 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 7214 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7208 xe_msg_checking="for ldap_open in -lldap" 7215 xe_msg_checking="for ldap_open in -lldap"
7209 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 7216 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7210 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7217 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7211 echo "configure:7212: checking "$xe_msg_checking"" >&5 7218 echo "configure:7219: checking "$xe_msg_checking"" >&5
7212 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7219 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7213 7220
7214 xe_check_libs=" -lldap -llber -lkrb" 7221 xe_check_libs=" -lldap -llber -lkrb"
7215 cat > conftest.$ac_ext <<EOF 7222 cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure" 7223 #line 7224 "configure"
7217 #include "confdefs.h" 7224 #include "confdefs.h"
7218 /* Override any gcc2 internal prototype to avoid an error. */ 7225 /* Override any gcc2 internal prototype to avoid an error. */
7219 /* We use char because int might match the return type of a gcc2 7226 /* We use char because int might match the return type of a gcc2
7220 builtin and then its argument prototype would still apply. */ 7227 builtin and then its argument prototype would still apply. */
7221 char ldap_open(); 7228 char ldap_open();
7222 7229
7223 int main() { 7230 int main() {
7224 ldap_open() 7231 ldap_open()
7225 ; return 0; } 7232 ; return 0; }
7226 EOF 7233 EOF
7227 if { (eval echo configure:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7234 if { (eval echo configure:7235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7228 rm -rf conftest* 7235 rm -rf conftest*
7229 eval "ac_cv_lib_$ac_lib_var=yes" 7236 eval "ac_cv_lib_$ac_lib_var=yes"
7230 else 7237 else
7231 echo "configure: failed program was:" >&5 7238 echo "configure: failed program was:" >&5
7232 cat conftest.$ac_ext >&5 7239 cat conftest.$ac_ext >&5
7247 } 7254 }
7248 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 7255 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7249 xe_msg_checking="for ldap_open in -lldap" 7256 xe_msg_checking="for ldap_open in -lldap"
7250 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 7257 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7251 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7258 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7252 echo "configure:7253: checking "$xe_msg_checking"" >&5 7259 echo "configure:7260: checking "$xe_msg_checking"" >&5
7253 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7260 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7254 7261
7255 xe_check_libs=" -lldap -llber -lkrb -ldes" 7262 xe_check_libs=" -lldap -llber -lkrb -ldes"
7256 cat > conftest.$ac_ext <<EOF 7263 cat > conftest.$ac_ext <<EOF
7257 #line 7258 "configure" 7264 #line 7265 "configure"
7258 #include "confdefs.h" 7265 #include "confdefs.h"
7259 /* Override any gcc2 internal prototype to avoid an error. */ 7266 /* Override any gcc2 internal prototype to avoid an error. */
7260 /* We use char because int might match the return type of a gcc2 7267 /* We use char because int might match the return type of a gcc2
7261 builtin and then its argument prototype would still apply. */ 7268 builtin and then its argument prototype would still apply. */
7262 char ldap_open(); 7269 char ldap_open();
7263 7270
7264 int main() { 7271 int main() {
7265 ldap_open() 7272 ldap_open()
7266 ; return 0; } 7273 ; return 0; }
7267 EOF 7274 EOF
7268 if { (eval echo configure:7269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7275 if { (eval echo configure:7276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7269 rm -rf conftest* 7276 rm -rf conftest*
7270 eval "ac_cv_lib_$ac_lib_var=yes" 7277 eval "ac_cv_lib_$ac_lib_var=yes"
7271 else 7278 else
7272 echo "configure: failed program was:" >&5 7279 echo "configure: failed program was:" >&5
7273 cat conftest.$ac_ext >&5 7280 cat conftest.$ac_ext >&5
7314 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 7321 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7315 fi 7322 fi
7316 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 7323 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7317 do 7324 do
7318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7319 echo "configure:7320: checking for $ac_func" >&5 7326 echo "configure:7327: checking for $ac_func" >&5
7320 7327
7321 cat > conftest.$ac_ext <<EOF 7328 cat > conftest.$ac_ext <<EOF
7322 #line 7323 "configure" 7329 #line 7330 "configure"
7323 #include "confdefs.h" 7330 #include "confdefs.h"
7324 /* System header to define __stub macros and hopefully few prototypes, 7331 /* System header to define __stub macros and hopefully few prototypes,
7325 which can conflict with char $ac_func(); below. */ 7332 which can conflict with char $ac_func(); below. */
7326 #include <assert.h> 7333 #include <assert.h>
7327 /* Override any gcc2 internal prototype to avoid an error. */ 7334 /* Override any gcc2 internal prototype to avoid an error. */
7340 $ac_func(); 7347 $ac_func();
7341 #endif 7348 #endif
7342 7349
7343 ; return 0; } 7350 ; return 0; }
7344 EOF 7351 EOF
7345 if { (eval echo configure:7346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7352 if { (eval echo configure:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7346 rm -rf conftest* 7353 rm -rf conftest*
7347 eval "ac_cv_func_$ac_func=yes" 7354 eval "ac_cv_func_$ac_func=yes"
7348 else 7355 else
7349 echo "configure: failed program was:" >&5 7356 echo "configure: failed program was:" >&5
7350 cat conftest.$ac_ext >&5 7357 cat conftest.$ac_ext >&5
7371 7378
7372 fi 7379 fi
7373 7380
7374 if test "$with_postgresql" != "no"; then 7381 if test "$with_postgresql" != "no"; then
7375 echo "checking for PostgreSQL" 1>&6 7382 echo "checking for PostgreSQL" 1>&6
7376 echo "configure:7377: checking for PostgreSQL" >&5 7383 echo "configure:7384: checking for PostgreSQL" >&5
7377 7384
7378 for header_dir in "" "pgsql/" "postgresql/"; do 7385 for header_dir in "" "pgsql/" "postgresql/"; do
7379 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` 7386 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7380 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 7387 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7381 echo "configure:7382: checking for ${header_dir}libpq-fe.h" >&5 7388 echo "configure:7389: checking for ${header_dir}libpq-fe.h" >&5
7382 7389
7383 cat > conftest.$ac_ext <<EOF 7390 cat > conftest.$ac_ext <<EOF
7384 #line 7385 "configure" 7391 #line 7392 "configure"
7385 #include "confdefs.h" 7392 #include "confdefs.h"
7386 #include <${header_dir}libpq-fe.h> 7393 #include <${header_dir}libpq-fe.h>
7387 EOF 7394 EOF
7388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7389 { (eval echo configure:7390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7396 { (eval echo configure:7397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7391 if test -z "$ac_err"; then 7398 if test -z "$ac_err"; then
7392 rm -rf conftest* 7399 rm -rf conftest*
7393 eval "ac_cv_header_$ac_safe=yes" 7400 eval "ac_cv_header_$ac_safe=yes"
7394 else 7401 else
7408 7415
7409 done 7416 done
7410 7417
7411 test -n "$libpq_fe_h_file" && { 7418 test -n "$libpq_fe_h_file" && {
7412 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 7419 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7413 echo "configure:7414: checking for PQconnectdb in -lpq" >&5 7420 echo "configure:7421: checking for PQconnectdb in -lpq" >&5
7414 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` 7421 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7415 7422
7416 xe_check_libs=" -lpq " 7423 xe_check_libs=" -lpq "
7417 cat > conftest.$ac_ext <<EOF 7424 cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure" 7425 #line 7426 "configure"
7419 #include "confdefs.h" 7426 #include "confdefs.h"
7420 /* Override any gcc2 internal prototype to avoid an error. */ 7427 /* Override any gcc2 internal prototype to avoid an error. */
7421 /* We use char because int might match the return type of a gcc2 7428 /* We use char because int might match the return type of a gcc2
7422 builtin and then its argument prototype would still apply. */ 7429 builtin and then its argument prototype would still apply. */
7423 char PQconnectdb(); 7430 char PQconnectdb();
7424 7431
7425 int main() { 7432 int main() {
7426 PQconnectdb() 7433 PQconnectdb()
7427 ; return 0; } 7434 ; return 0; }
7428 EOF 7435 EOF
7429 if { (eval echo configure:7430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7430 rm -rf conftest* 7437 rm -rf conftest*
7431 eval "ac_cv_lib_$ac_lib_var=yes" 7438 eval "ac_cv_lib_$ac_lib_var=yes"
7432 else 7439 else
7433 echo "configure: failed program was:" >&5 7440 echo "configure: failed program was:" >&5
7434 cat conftest.$ac_ext >&5 7441 cat conftest.$ac_ext >&5
7457 EOF 7464 EOF
7458 } 7465 }
7459 7466
7460 7467
7461 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 7468 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7462 echo "configure:7463: checking for PQconnectStart in -lpq" >&5 7469 echo "configure:7470: checking for PQconnectStart in -lpq" >&5
7463 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` 7470 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7464 7471
7465 xe_check_libs=" -lpq " 7472 xe_check_libs=" -lpq "
7466 cat > conftest.$ac_ext <<EOF 7473 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure" 7474 #line 7475 "configure"
7468 #include "confdefs.h" 7475 #include "confdefs.h"
7469 /* Override any gcc2 internal prototype to avoid an error. */ 7476 /* Override any gcc2 internal prototype to avoid an error. */
7470 /* We use char because int might match the return type of a gcc2 7477 /* We use char because int might match the return type of a gcc2
7471 builtin and then its argument prototype would still apply. */ 7478 builtin and then its argument prototype would still apply. */
7472 char PQconnectStart(); 7479 char PQconnectStart();
7473 7480
7474 int main() { 7481 int main() {
7475 PQconnectStart() 7482 PQconnectStart()
7476 ; return 0; } 7483 ; return 0; }
7477 EOF 7484 EOF
7478 if { (eval echo configure:7479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7485 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7479 rm -rf conftest* 7486 rm -rf conftest*
7480 eval "ac_cv_lib_$ac_lib_var=yes" 7487 eval "ac_cv_lib_$ac_lib_var=yes"
7481 else 7488 else
7482 echo "configure: failed program was:" >&5 7489 echo "configure: failed program was:" >&5
7483 cat conftest.$ac_ext >&5 7490 cat conftest.$ac_ext >&5
7521 fi 7528 fi
7522 7529
7523 7530
7524 if test "$window_system" != "none"; then 7531 if test "$window_system" != "none"; then
7525 echo "checking for graphics libraries" 1>&6 7532 echo "checking for graphics libraries" 1>&6
7526 echo "configure:7527: checking for graphics libraries" >&5 7533 echo "configure:7534: checking for graphics libraries" >&5
7527 7534
7528 xpm_problem="" 7535 xpm_problem=""
7529 if test -z "$with_xpm"; then 7536 if test -z "$with_xpm"; then
7530 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 7537 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7531 echo "configure:7532: checking for Xpm - no older than 3.4f" >&5 7538 echo "configure:7539: checking for Xpm - no older than 3.4f" >&5
7532 xe_check_libs=-lXpm 7539 xe_check_libs=-lXpm
7533 cat > conftest.$ac_ext <<EOF 7540 cat > conftest.$ac_ext <<EOF
7534 #line 7535 "configure" 7541 #line 7542 "configure"
7535 #include "confdefs.h" 7542 #include "confdefs.h"
7536 #define XPM_NUMBERS 7543 #define XPM_NUMBERS
7537 #include <X11/xpm.h> 7544 #include <X11/xpm.h>
7538 int main(int c, char **v) { 7545 int main(int c, char **v) {
7539 return c == 1 ? 0 : 7546 return c == 1 ? 0 :
7540 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 7547 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7541 XpmIncludeVersion < 30406 ? 2 : 0 ;} 7548 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7542 EOF 7549 EOF
7543 if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7550 if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7544 then 7551 then
7545 ./conftest dummy_arg; xpm_status=$?; 7552 ./conftest dummy_arg; xpm_status=$?;
7546 if test "$xpm_status" = "0"; then 7553 if test "$xpm_status" = "0"; then
7547 with_xpm=yes; 7554 with_xpm=yes;
7548 else 7555 else
7580 EOF 7587 EOF
7581 } 7588 }
7582 7589
7583 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 7590 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7584 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 7591 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7585 echo "configure:7586: checking for \"FOR_MSW\" xpm" >&5 7592 echo "configure:7593: checking for \"FOR_MSW\" xpm" >&5
7586 xe_check_libs=-lXpm 7593 xe_check_libs=-lXpm
7587 cat > conftest.$ac_ext <<EOF 7594 cat > conftest.$ac_ext <<EOF
7588 #line 7589 "configure" 7595 #line 7596 "configure"
7589 #include "confdefs.h" 7596 #include "confdefs.h"
7590 7597
7591 int main() { 7598 int main() {
7592 XpmCreatePixmapFromData() 7599 XpmCreatePixmapFromData()
7593 ; return 0; } 7600 ; return 0; }
7594 EOF 7601 EOF
7595 if { (eval echo configure:7596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7602 if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7596 rm -rf conftest* 7603 rm -rf conftest*
7597 xpm_for_msw=no 7604 xpm_for_msw=no
7598 else 7605 else
7599 echo "configure: failed program was:" >&5 7606 echo "configure: failed program was:" >&5
7600 cat conftest.$ac_ext >&5 7607 cat conftest.$ac_ext >&5
7616 fi 7623 fi
7617 fi 7624 fi
7618 7625
7619 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7626 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7620 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7627 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7621 echo "configure:7622: checking for compface.h" >&5 7628 echo "configure:7629: checking for compface.h" >&5
7622 7629
7623 cat > conftest.$ac_ext <<EOF 7630 cat > conftest.$ac_ext <<EOF
7624 #line 7625 "configure" 7631 #line 7632 "configure"
7625 #include "confdefs.h" 7632 #include "confdefs.h"
7626 #include <compface.h> 7633 #include <compface.h>
7627 EOF 7634 EOF
7628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7629 { (eval echo configure:7630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7636 { (eval echo configure:7637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7631 if test -z "$ac_err"; then 7638 if test -z "$ac_err"; then
7632 rm -rf conftest* 7639 rm -rf conftest*
7633 eval "ac_cv_header_$ac_safe=yes" 7640 eval "ac_cv_header_$ac_safe=yes"
7634 else 7641 else
7647 with_xface=no 7654 with_xface=no
7648 fi 7655 fi
7649 } 7656 }
7650 test -z "$with_xface" && { 7657 test -z "$with_xface" && {
7651 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7658 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7652 echo "configure:7653: checking for UnGenFace in -lcompface" >&5 7659 echo "configure:7660: checking for UnGenFace in -lcompface" >&5
7653 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7660 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7654 7661
7655 xe_check_libs=" -lcompface " 7662 xe_check_libs=" -lcompface "
7656 cat > conftest.$ac_ext <<EOF 7663 cat > conftest.$ac_ext <<EOF
7657 #line 7658 "configure" 7664 #line 7665 "configure"
7658 #include "confdefs.h" 7665 #include "confdefs.h"
7659 /* Override any gcc2 internal prototype to avoid an error. */ 7666 /* Override any gcc2 internal prototype to avoid an error. */
7660 /* We use char because int might match the return type of a gcc2 7667 /* We use char because int might match the return type of a gcc2
7661 builtin and then its argument prototype would still apply. */ 7668 builtin and then its argument prototype would still apply. */
7662 char UnGenFace(); 7669 char UnGenFace();
7663 7670
7664 int main() { 7671 int main() {
7665 UnGenFace() 7672 UnGenFace()
7666 ; return 0; } 7673 ; return 0; }
7667 EOF 7674 EOF
7668 if { (eval echo configure:7669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7675 if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7669 rm -rf conftest* 7676 rm -rf conftest*
7670 eval "ac_cv_lib_$ac_lib_var=yes" 7677 eval "ac_cv_lib_$ac_lib_var=yes"
7671 else 7678 else
7672 echo "configure: failed program was:" >&5 7679 echo "configure: failed program was:" >&5
7673 cat conftest.$ac_ext >&5 7680 cat conftest.$ac_ext >&5
7715 fi 7722 fi
7716 7723
7717 if test "$with_png $with_tiff" != "no no"; then 7724 if test "$with_png $with_tiff" != "no no"; then
7718 7725
7719 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 7726 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7720 echo "configure:7721: checking for inflate in -lc" >&5 7727 echo "configure:7728: checking for inflate in -lc" >&5
7721 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 7728 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7722 7729
7723 xe_check_libs=" -lc " 7730 xe_check_libs=" -lc "
7724 cat > conftest.$ac_ext <<EOF 7731 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure" 7732 #line 7733 "configure"
7726 #include "confdefs.h" 7733 #include "confdefs.h"
7727 /* Override any gcc2 internal prototype to avoid an error. */ 7734 /* Override any gcc2 internal prototype to avoid an error. */
7728 /* We use char because int might match the return type of a gcc2 7735 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */ 7736 builtin and then its argument prototype would still apply. */
7730 char inflate(); 7737 char inflate();
7731 7738
7732 int main() { 7739 int main() {
7733 inflate() 7740 inflate()
7734 ; return 0; } 7741 ; return 0; }
7735 EOF 7742 EOF
7736 if { (eval echo configure:7737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7743 if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7737 rm -rf conftest* 7744 rm -rf conftest*
7738 eval "ac_cv_lib_$ac_lib_var=yes" 7745 eval "ac_cv_lib_$ac_lib_var=yes"
7739 else 7746 else
7740 echo "configure: failed program was:" >&5 7747 echo "configure: failed program was:" >&5
7741 cat conftest.$ac_ext >&5 7748 cat conftest.$ac_ext >&5
7750 : 7757 :
7751 else 7758 else
7752 echo "$ac_t""no" 1>&6 7759 echo "$ac_t""no" 1>&6
7753 7760
7754 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 7761 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7755 echo "configure:7756: checking for inflate in -lz" >&5 7762 echo "configure:7763: checking for inflate in -lz" >&5
7756 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 7763 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7757 7764
7758 xe_check_libs=" -lz " 7765 xe_check_libs=" -lz "
7759 cat > conftest.$ac_ext <<EOF 7766 cat > conftest.$ac_ext <<EOF
7760 #line 7761 "configure" 7767 #line 7768 "configure"
7761 #include "confdefs.h" 7768 #include "confdefs.h"
7762 /* Override any gcc2 internal prototype to avoid an error. */ 7769 /* Override any gcc2 internal prototype to avoid an error. */
7763 /* We use char because int might match the return type of a gcc2 7770 /* We use char because int might match the return type of a gcc2
7764 builtin and then its argument prototype would still apply. */ 7771 builtin and then its argument prototype would still apply. */
7765 char inflate(); 7772 char inflate();
7766 7773
7767 int main() { 7774 int main() {
7768 inflate() 7775 inflate()
7769 ; return 0; } 7776 ; return 0; }
7770 EOF 7777 EOF
7771 if { (eval echo configure:7772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7778 if { (eval echo configure:7779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7772 rm -rf conftest* 7779 rm -rf conftest*
7773 eval "ac_cv_lib_$ac_lib_var=yes" 7780 eval "ac_cv_lib_$ac_lib_var=yes"
7774 else 7781 else
7775 echo "configure: failed program was:" >&5 7782 echo "configure: failed program was:" >&5
7776 cat conftest.$ac_ext >&5 7783 cat conftest.$ac_ext >&5
7785 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 7792 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7786 else 7793 else
7787 echo "$ac_t""no" 1>&6 7794 echo "$ac_t""no" 1>&6
7788 7795
7789 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 7796 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7790 echo "configure:7791: checking for inflate in -lgz" >&5 7797 echo "configure:7798: checking for inflate in -lgz" >&5
7791 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 7798 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7792 7799
7793 xe_check_libs=" -lgz " 7800 xe_check_libs=" -lgz "
7794 cat > conftest.$ac_ext <<EOF 7801 cat > conftest.$ac_ext <<EOF
7795 #line 7796 "configure" 7802 #line 7803 "configure"
7796 #include "confdefs.h" 7803 #include "confdefs.h"
7797 /* Override any gcc2 internal prototype to avoid an error. */ 7804 /* Override any gcc2 internal prototype to avoid an error. */
7798 /* We use char because int might match the return type of a gcc2 7805 /* We use char because int might match the return type of a gcc2
7799 builtin and then its argument prototype would still apply. */ 7806 builtin and then its argument prototype would still apply. */
7800 char inflate(); 7807 char inflate();
7801 7808
7802 int main() { 7809 int main() {
7803 inflate() 7810 inflate()
7804 ; return 0; } 7811 ; return 0; }
7805 EOF 7812 EOF
7806 if { (eval echo configure:7807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7813 if { (eval echo configure:7814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7807 rm -rf conftest* 7814 rm -rf conftest*
7808 eval "ac_cv_lib_$ac_lib_var=yes" 7815 eval "ac_cv_lib_$ac_lib_var=yes"
7809 else 7816 else
7810 echo "configure: failed program was:" >&5 7817 echo "configure: failed program was:" >&5
7811 cat conftest.$ac_ext >&5 7818 cat conftest.$ac_ext >&5
7831 7838
7832 fi 7839 fi
7833 7840
7834 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 7841 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7835 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 7842 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7836 echo "configure:7837: checking for jpeglib.h" >&5 7843 echo "configure:7844: checking for jpeglib.h" >&5
7837 7844
7838 cat > conftest.$ac_ext <<EOF 7845 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure" 7846 #line 7847 "configure"
7840 #include "confdefs.h" 7847 #include "confdefs.h"
7841 #include <jpeglib.h> 7848 #include <jpeglib.h>
7842 EOF 7849 EOF
7843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7844 { (eval echo configure:7845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7851 { (eval echo configure:7852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7846 if test -z "$ac_err"; then 7853 if test -z "$ac_err"; then
7847 rm -rf conftest* 7854 rm -rf conftest*
7848 eval "ac_cv_header_$ac_safe=yes" 7855 eval "ac_cv_header_$ac_safe=yes"
7849 else 7856 else
7862 with_jpeg=no 7869 with_jpeg=no
7863 fi 7870 fi
7864 } 7871 }
7865 test -z "$with_jpeg" && { 7872 test -z "$with_jpeg" && {
7866 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 7873 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7867 echo "configure:7868: checking for jpeg_destroy_decompress in -ljpeg" >&5 7874 echo "configure:7875: checking for jpeg_destroy_decompress in -ljpeg" >&5
7868 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 7875 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7869 7876
7870 xe_check_libs=" -ljpeg " 7877 xe_check_libs=" -ljpeg "
7871 cat > conftest.$ac_ext <<EOF 7878 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure" 7879 #line 7880 "configure"
7873 #include "confdefs.h" 7880 #include "confdefs.h"
7874 /* Override any gcc2 internal prototype to avoid an error. */ 7881 /* Override any gcc2 internal prototype to avoid an error. */
7875 /* We use char because int might match the return type of a gcc2 7882 /* We use char because int might match the return type of a gcc2
7876 builtin and then its argument prototype would still apply. */ 7883 builtin and then its argument prototype would still apply. */
7877 char jpeg_destroy_decompress(); 7884 char jpeg_destroy_decompress();
7878 7885
7879 int main() { 7886 int main() {
7880 jpeg_destroy_decompress() 7887 jpeg_destroy_decompress()
7881 ; return 0; } 7888 ; return 0; }
7882 EOF 7889 EOF
7883 if { (eval echo configure:7884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7890 if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7884 rm -rf conftest* 7891 rm -rf conftest*
7885 eval "ac_cv_lib_$ac_lib_var=yes" 7892 eval "ac_cv_lib_$ac_lib_var=yes"
7886 else 7893 else
7887 echo "configure: failed program was:" >&5 7894 echo "configure: failed program was:" >&5
7888 cat conftest.$ac_ext >&5 7895 cat conftest.$ac_ext >&5
7914 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 7921 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7915 fi 7922 fi
7916 7923
7917 png_problem="" 7924 png_problem=""
7918 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 7925 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7919 echo "configure:7920: checking for pow" >&5 7926 echo "configure:7927: checking for pow" >&5
7920 7927
7921 cat > conftest.$ac_ext <<EOF 7928 cat > conftest.$ac_ext <<EOF
7922 #line 7923 "configure" 7929 #line 7930 "configure"
7923 #include "confdefs.h" 7930 #include "confdefs.h"
7924 /* System header to define __stub macros and hopefully few prototypes, 7931 /* System header to define __stub macros and hopefully few prototypes,
7925 which can conflict with char pow(); below. */ 7932 which can conflict with char pow(); below. */
7926 #include <assert.h> 7933 #include <assert.h>
7927 /* Override any gcc2 internal prototype to avoid an error. */ 7934 /* Override any gcc2 internal prototype to avoid an error. */
7940 pow(); 7947 pow();
7941 #endif 7948 #endif
7942 7949
7943 ; return 0; } 7950 ; return 0; }
7944 EOF 7951 EOF
7945 if { (eval echo configure:7946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7952 if { (eval echo configure:7953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7946 rm -rf conftest* 7953 rm -rf conftest*
7947 eval "ac_cv_func_pow=yes" 7954 eval "ac_cv_func_pow=yes"
7948 else 7955 else
7949 echo "configure: failed program was:" >&5 7956 echo "configure: failed program was:" >&5
7950 cat conftest.$ac_ext >&5 7957 cat conftest.$ac_ext >&5
7961 with_png=no 7968 with_png=no
7962 fi 7969 fi
7963 } 7970 }
7964 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 7971 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7965 echo $ac_n "checking for png.h""... $ac_c" 1>&6 7972 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7966 echo "configure:7967: checking for png.h" >&5 7973 echo "configure:7974: checking for png.h" >&5
7967 7974
7968 cat > conftest.$ac_ext <<EOF 7975 cat > conftest.$ac_ext <<EOF
7969 #line 7970 "configure" 7976 #line 7977 "configure"
7970 #include "confdefs.h" 7977 #include "confdefs.h"
7971 #include <png.h> 7978 #include <png.h>
7972 EOF 7979 EOF
7973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7974 { (eval echo configure:7975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7981 { (eval echo configure:7982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7976 if test -z "$ac_err"; then 7983 if test -z "$ac_err"; then
7977 rm -rf conftest* 7984 rm -rf conftest*
7978 eval "ac_cv_header_$ac_safe=yes" 7985 eval "ac_cv_header_$ac_safe=yes"
7979 else 7986 else
7992 with_png=no 7999 with_png=no
7993 fi 8000 fi
7994 } 8001 }
7995 test -z "$with_png" && { 8002 test -z "$with_png" && {
7996 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 8003 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7997 echo "configure:7998: checking for png_read_image in -lpng" >&5 8004 echo "configure:8005: checking for png_read_image in -lpng" >&5
7998 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 8005 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7999 8006
8000 xe_check_libs=" -lpng " 8007 xe_check_libs=" -lpng "
8001 cat > conftest.$ac_ext <<EOF 8008 cat > conftest.$ac_ext <<EOF
8002 #line 8003 "configure" 8009 #line 8010 "configure"
8003 #include "confdefs.h" 8010 #include "confdefs.h"
8004 /* Override any gcc2 internal prototype to avoid an error. */ 8011 /* Override any gcc2 internal prototype to avoid an error. */
8005 /* We use char because int might match the return type of a gcc2 8012 /* We use char because int might match the return type of a gcc2
8006 builtin and then its argument prototype would still apply. */ 8013 builtin and then its argument prototype would still apply. */
8007 char png_read_image(); 8014 char png_read_image();
8008 8015
8009 int main() { 8016 int main() {
8010 png_read_image() 8017 png_read_image()
8011 ; return 0; } 8018 ; return 0; }
8012 EOF 8019 EOF
8013 if { (eval echo configure:8014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8014 rm -rf conftest* 8021 rm -rf conftest*
8015 eval "ac_cv_lib_$ac_lib_var=yes" 8022 eval "ac_cv_lib_$ac_lib_var=yes"
8016 else 8023 else
8017 echo "configure: failed program was:" >&5 8024 echo "configure: failed program was:" >&5
8018 cat conftest.$ac_ext >&5 8025 cat conftest.$ac_ext >&5
8031 fi 8038 fi
8032 8039
8033 } 8040 }
8034 if test -z "$with_png"; then 8041 if test -z "$with_png"; then
8035 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 8042 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8036 echo "configure:8037: checking for workable png version information" >&5 8043 echo "configure:8044: checking for workable png version information" >&5
8037 xe_check_libs="-lpng -lz" 8044 xe_check_libs="-lpng -lz"
8038 cat > conftest.$ac_ext <<EOF 8045 cat > conftest.$ac_ext <<EOF
8039 #line 8040 "configure" 8046 #line 8047 "configure"
8040 #include "confdefs.h" 8047 #include "confdefs.h"
8041 #include <png.h> 8048 #include <png.h>
8042 int main(int c, char **v) { 8049 int main(int c, char **v) {
8043 if (c == 1) return 0; 8050 if (c == 1) return 0;
8044 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 8051 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8045 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 8052 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8046 EOF 8053 EOF
8047 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8054 if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8048 then 8055 then
8049 ./conftest dummy_arg; png_status=$?; 8056 ./conftest dummy_arg; png_status=$?;
8050 if test "$png_status" = "0"; then 8057 if test "$png_status" = "0"; then
8051 with_png=yes; 8058 with_png=yes;
8052 else 8059 else
8085 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 8092 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8086 fi 8093 fi
8087 8094
8088 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 8095 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8089 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 8096 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8090 echo "configure:8091: checking for tiffio.h" >&5 8097 echo "configure:8098: checking for tiffio.h" >&5
8091 8098
8092 cat > conftest.$ac_ext <<EOF 8099 cat > conftest.$ac_ext <<EOF
8093 #line 8094 "configure" 8100 #line 8101 "configure"
8094 #include "confdefs.h" 8101 #include "confdefs.h"
8095 #include <tiffio.h> 8102 #include <tiffio.h>
8096 EOF 8103 EOF
8097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8098 { (eval echo configure:8099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8105 { (eval echo configure:8106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8100 if test -z "$ac_err"; then 8107 if test -z "$ac_err"; then
8101 rm -rf conftest* 8108 rm -rf conftest*
8102 eval "ac_cv_header_$ac_safe=yes" 8109 eval "ac_cv_header_$ac_safe=yes"
8103 else 8110 else
8116 with_tiff=no 8123 with_tiff=no
8117 fi 8124 fi
8118 } 8125 }
8119 test -z "$with_tiff" && { 8126 test -z "$with_tiff" && {
8120 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 8127 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8121 echo "configure:8122: checking for TIFFClientOpen in -ltiff" >&5 8128 echo "configure:8129: checking for TIFFClientOpen in -ltiff" >&5
8122 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 8129 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8123 8130
8124 xe_check_libs=" -ltiff " 8131 xe_check_libs=" -ltiff "
8125 cat > conftest.$ac_ext <<EOF 8132 cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure" 8133 #line 8134 "configure"
8127 #include "confdefs.h" 8134 #include "confdefs.h"
8128 /* Override any gcc2 internal prototype to avoid an error. */ 8135 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2 8136 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */ 8137 builtin and then its argument prototype would still apply. */
8131 char TIFFClientOpen(); 8138 char TIFFClientOpen();
8132 8139
8133 int main() { 8140 int main() {
8134 TIFFClientOpen() 8141 TIFFClientOpen()
8135 ; return 0; } 8142 ; return 0; }
8136 EOF 8143 EOF
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8144 if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8138 rm -rf conftest* 8145 rm -rf conftest*
8139 eval "ac_cv_lib_$ac_lib_var=yes" 8146 eval "ac_cv_lib_$ac_lib_var=yes"
8140 else 8147 else
8141 echo "configure: failed program was:" >&5 8148 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5 8149 cat conftest.$ac_ext >&5
8171 8178
8172 8179
8173 if test "$with_x11" = "yes"; then 8180 if test "$with_x11" = "yes"; then
8174 8181
8175 echo "checking for X11 graphics libraries" 1>&6 8182 echo "checking for X11 graphics libraries" 1>&6
8176 echo "configure:8177: checking for X11 graphics libraries" >&5 8183 echo "configure:8184: checking for X11 graphics libraries" >&5
8177 8184
8178 echo "checking for the Athena widgets" 1>&6 8185 echo "checking for the Athena widgets" 1>&6
8179 echo "configure:8180: checking for the Athena widgets" >&5 8186 echo "configure:8187: checking for the Athena widgets" >&5
8180 8187
8181 case "$with_athena" in 8188 case "$with_athena" in
8182 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 8189 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8183 "3d") athena_variant=Xaw3d athena_3d=yes ;; 8190 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8184 "next") athena_variant=neXtaw athena_3d=yes ;; 8191 "next") athena_variant=neXtaw athena_3d=yes ;;
8188 esac 8195 esac
8189 8196
8190 if test "$athena_3d" = "no"; then 8197 if test "$athena_3d" = "no"; then
8191 8198
8192 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 8199 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8193 echo "configure:8194: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 8200 echo "configure:8201: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8194 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 8201 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8195 8202
8196 xe_check_libs=" -l$athena_variant " 8203 xe_check_libs=" -l$athena_variant "
8197 cat > conftest.$ac_ext <<EOF 8204 cat > conftest.$ac_ext <<EOF
8198 #line 8199 "configure" 8205 #line 8206 "configure"
8199 #include "confdefs.h" 8206 #include "confdefs.h"
8200 /* Override any gcc2 internal prototype to avoid an error. */ 8207 /* Override any gcc2 internal prototype to avoid an error. */
8201 /* We use char because int might match the return type of a gcc2 8208 /* We use char because int might match the return type of a gcc2
8202 builtin and then its argument prototype would still apply. */ 8209 builtin and then its argument prototype would still apply. */
8203 char XawScrollbarSetThumb(); 8210 char XawScrollbarSetThumb();
8204 8211
8205 int main() { 8212 int main() {
8206 XawScrollbarSetThumb() 8213 XawScrollbarSetThumb()
8207 ; return 0; } 8214 ; return 0; }
8208 EOF 8215 EOF
8209 if { (eval echo configure:8210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8216 if { (eval echo configure:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8210 rm -rf conftest* 8217 rm -rf conftest*
8211 eval "ac_cv_lib_$ac_lib_var=yes" 8218 eval "ac_cv_lib_$ac_lib_var=yes"
8212 else 8219 else
8213 echo "configure: failed program was:" >&5 8220 echo "configure: failed program was:" >&5
8214 cat conftest.$ac_ext >&5 8221 cat conftest.$ac_ext >&5
8220 8227
8221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 8228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8222 echo "$ac_t""yes" 1>&6 8229 echo "$ac_t""yes" 1>&6
8223 8230
8224 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8231 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8225 echo "configure:8226: checking for threeDClassRec in -l$athena_variant" >&5 8232 echo "configure:8233: checking for threeDClassRec in -l$athena_variant" >&5
8226 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8233 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8227 8234
8228 xe_check_libs=" -l$athena_variant " 8235 xe_check_libs=" -l$athena_variant "
8229 cat > conftest.$ac_ext <<EOF 8236 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure" 8237 #line 8238 "configure"
8231 #include "confdefs.h" 8238 #include "confdefs.h"
8232 /* Override any gcc2 internal prototype to avoid an error. */ 8239 /* Override any gcc2 internal prototype to avoid an error. */
8233 /* We use char because int might match the return type of a gcc2 8240 /* We use char because int might match the return type of a gcc2
8234 builtin and then its argument prototype would still apply. */ 8241 builtin and then its argument prototype would still apply. */
8235 char threeDClassRec(); 8242 char threeDClassRec();
8236 8243
8237 int main() { 8244 int main() {
8238 threeDClassRec() 8245 threeDClassRec()
8239 ; return 0; } 8246 ; return 0; }
8240 EOF 8247 EOF
8241 if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8248 if { (eval echo configure:8249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242 rm -rf conftest* 8249 rm -rf conftest*
8243 eval "ac_cv_lib_$ac_lib_var=yes" 8250 eval "ac_cv_lib_$ac_lib_var=yes"
8244 else 8251 else
8245 echo "configure: failed program was:" >&5 8252 echo "configure: failed program was:" >&5
8246 cat conftest.$ac_ext >&5 8253 cat conftest.$ac_ext >&5
8267 8274
8268 8275
8269 else 8276 else
8270 8277
8271 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8278 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8272 echo "configure:8273: checking for threeDClassRec in -l$athena_variant" >&5 8279 echo "configure:8280: checking for threeDClassRec in -l$athena_variant" >&5
8273 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8280 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8274 8281
8275 xe_check_libs=" -l$athena_variant " 8282 xe_check_libs=" -l$athena_variant "
8276 cat > conftest.$ac_ext <<EOF 8283 cat > conftest.$ac_ext <<EOF
8277 #line 8278 "configure" 8284 #line 8285 "configure"
8278 #include "confdefs.h" 8285 #include "confdefs.h"
8279 /* Override any gcc2 internal prototype to avoid an error. */ 8286 /* Override any gcc2 internal prototype to avoid an error. */
8280 /* 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
8281 builtin and then its argument prototype would still apply. */ 8288 builtin and then its argument prototype would still apply. */
8282 char threeDClassRec(); 8289 char threeDClassRec();
8283 8290
8284 int main() { 8291 int main() {
8285 threeDClassRec() 8292 threeDClassRec()
8286 ; return 0; } 8293 ; return 0; }
8287 EOF 8294 EOF
8288 if { (eval echo configure:8289: \"$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
8289 rm -rf conftest* 8296 rm -rf conftest*
8290 eval "ac_cv_lib_$ac_lib_var=yes" 8297 eval "ac_cv_lib_$ac_lib_var=yes"
8291 else 8298 else
8292 echo "configure: failed program was:" >&5 8299 echo "configure: failed program was:" >&5
8293 cat conftest.$ac_ext >&5 8300 cat conftest.$ac_ext >&5
8301 echo "$ac_t""yes" 1>&6 8308 echo "$ac_t""yes" 1>&6
8302 athena_lib=$athena_variant 8309 athena_lib=$athena_variant
8303 else 8310 else
8304 echo "$ac_t""no" 1>&6 8311 echo "$ac_t""no" 1>&6
8305 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 8312 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8306 echo "configure:8307: checking for threeDClassRec in -lXaw" >&5 8313 echo "configure:8314: checking for threeDClassRec in -lXaw" >&5
8307 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 8314 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8308 8315
8309 xe_check_libs=" -lXaw " 8316 xe_check_libs=" -lXaw "
8310 cat > conftest.$ac_ext <<EOF 8317 cat > conftest.$ac_ext <<EOF
8311 #line 8312 "configure" 8318 #line 8319 "configure"
8312 #include "confdefs.h" 8319 #include "confdefs.h"
8313 /* Override any gcc2 internal prototype to avoid an error. */ 8320 /* Override any gcc2 internal prototype to avoid an error. */
8314 /* 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
8315 builtin and then its argument prototype would still apply. */ 8322 builtin and then its argument prototype would still apply. */
8316 char threeDClassRec(); 8323 char threeDClassRec();
8317 8324
8318 int main() { 8325 int main() {
8319 threeDClassRec() 8326 threeDClassRec()
8320 ; return 0; } 8327 ; return 0; }
8321 EOF 8328 EOF
8322 if { (eval echo configure:8323: \"$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
8323 rm -rf conftest* 8330 rm -rf conftest*
8324 eval "ac_cv_lib_$ac_lib_var=yes" 8331 eval "ac_cv_lib_$ac_lib_var=yes"
8325 else 8332 else
8326 echo "configure: failed program was:" >&5 8333 echo "configure: failed program was:" >&5
8327 cat conftest.$ac_ext >&5 8334 cat conftest.$ac_ext >&5
8348 fi 8355 fi
8349 8356
8350 if test "$athena_3d" = "no"; then 8357 if test "$athena_3d" = "no"; then
8351 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 8358 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8352 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 8359 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8353 echo "configure:8354: checking for X11/Xaw/ThreeD.h" >&5 8360 echo "configure:8361: checking for X11/Xaw/ThreeD.h" >&5
8354 8361
8355 cat > conftest.$ac_ext <<EOF 8362 cat > conftest.$ac_ext <<EOF
8356 #line 8357 "configure" 8363 #line 8364 "configure"
8357 #include "confdefs.h" 8364 #include "confdefs.h"
8358 #include <X11/Xaw/ThreeD.h> 8365 #include <X11/Xaw/ThreeD.h>
8359 EOF 8366 EOF
8360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8361 { (eval echo configure:8362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8368 { (eval echo configure:8369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8363 if test -z "$ac_err"; then 8370 if test -z "$ac_err"; then
8364 rm -rf conftest* 8371 rm -rf conftest*
8365 eval "ac_cv_header_$ac_safe=yes" 8372 eval "ac_cv_header_$ac_safe=yes"
8366 else 8373 else
8376 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2 8383 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8377 else 8384 else
8378 echo "$ac_t""no" 1>&6 8385 echo "$ac_t""no" 1>&6
8379 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 8386 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8380 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 8387 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8381 echo "configure:8382: checking for X11/Xaw/XawInit.h" >&5 8388 echo "configure:8389: checking for X11/Xaw/XawInit.h" >&5
8382 8389
8383 cat > conftest.$ac_ext <<EOF 8390 cat > conftest.$ac_ext <<EOF
8384 #line 8385 "configure" 8391 #line 8392 "configure"
8385 #include "confdefs.h" 8392 #include "confdefs.h"
8386 #include <X11/Xaw/XawInit.h> 8393 #include <X11/Xaw/XawInit.h>
8387 EOF 8394 EOF
8388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8389 { (eval echo configure:8390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8396 { (eval echo configure:8397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8391 if test -z "$ac_err"; then 8398 if test -z "$ac_err"; then
8392 rm -rf conftest* 8399 rm -rf conftest*
8393 eval "ac_cv_header_$ac_safe=yes" 8400 eval "ac_cv_header_$ac_safe=yes"
8394 else 8401 else
8410 fi 8417 fi
8411 8418
8412 else 8419 else
8413 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 8420 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8414 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 8421 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8415 echo "configure:8416: checking for X11/$athena_variant/XawInit.h" >&5 8422 echo "configure:8423: checking for X11/$athena_variant/XawInit.h" >&5
8416 8423
8417 cat > conftest.$ac_ext <<EOF 8424 cat > conftest.$ac_ext <<EOF
8418 #line 8419 "configure" 8425 #line 8426 "configure"
8419 #include "confdefs.h" 8426 #include "confdefs.h"
8420 #include <X11/$athena_variant/XawInit.h> 8427 #include <X11/$athena_variant/XawInit.h>
8421 EOF 8428 EOF
8422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8423 { (eval echo configure:8424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8430 { (eval echo configure:8431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8425 if test -z "$ac_err"; then 8432 if test -z "$ac_err"; then
8426 rm -rf conftest* 8433 rm -rf conftest*
8427 eval "ac_cv_header_$ac_safe=yes" 8434 eval "ac_cv_header_$ac_safe=yes"
8428 else 8435 else
8435 rm -f conftest* 8442 rm -f conftest*
8436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8437 echo "$ac_t""yes" 1>&6 8444 echo "$ac_t""yes" 1>&6
8438 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 8445 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8439 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 8446 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8440 echo "configure:8441: checking for X11/$athena_variant/ThreeD.h" >&5 8447 echo "configure:8448: checking for X11/$athena_variant/ThreeD.h" >&5
8441 8448
8442 cat > conftest.$ac_ext <<EOF 8449 cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure" 8450 #line 8451 "configure"
8444 #include "confdefs.h" 8451 #include "confdefs.h"
8445 #include <X11/$athena_variant/ThreeD.h> 8452 #include <X11/$athena_variant/ThreeD.h>
8446 EOF 8453 EOF
8447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8448 { (eval echo configure:8449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8455 { (eval echo configure:8456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8450 if test -z "$ac_err"; then 8457 if test -z "$ac_err"; then
8451 rm -rf conftest* 8458 rm -rf conftest*
8452 eval "ac_cv_header_$ac_safe=yes" 8459 eval "ac_cv_header_$ac_safe=yes"
8453 else 8460 else
8471 8478
8472 8479
8473 if test -z "$athena_h_path"; then 8480 if test -z "$athena_h_path"; then
8474 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 8481 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8475 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 8482 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8476 echo "configure:8477: checking for $athena_variant/XawInit.h" >&5 8483 echo "configure:8484: checking for $athena_variant/XawInit.h" >&5
8477 8484
8478 cat > conftest.$ac_ext <<EOF 8485 cat > conftest.$ac_ext <<EOF
8479 #line 8480 "configure" 8486 #line 8487 "configure"
8480 #include "confdefs.h" 8487 #include "confdefs.h"
8481 #include <$athena_variant/XawInit.h> 8488 #include <$athena_variant/XawInit.h>
8482 EOF 8489 EOF
8483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8484 { (eval echo configure:8485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8491 { (eval echo configure:8492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8486 if test -z "$ac_err"; then 8493 if test -z "$ac_err"; then
8487 rm -rf conftest* 8494 rm -rf conftest*
8488 eval "ac_cv_header_$ac_safe=yes" 8495 eval "ac_cv_header_$ac_safe=yes"
8489 else 8496 else
8496 rm -f conftest* 8503 rm -f conftest*
8497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8498 echo "$ac_t""yes" 1>&6 8505 echo "$ac_t""yes" 1>&6
8499 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 8506 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8500 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 8507 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8501 echo "configure:8502: checking for $athena_variant/ThreeD.h" >&5 8508 echo "configure:8509: checking for $athena_variant/ThreeD.h" >&5
8502 8509
8503 cat > conftest.$ac_ext <<EOF 8510 cat > conftest.$ac_ext <<EOF
8504 #line 8505 "configure" 8511 #line 8512 "configure"
8505 #include "confdefs.h" 8512 #include "confdefs.h"
8506 #include <$athena_variant/ThreeD.h> 8513 #include <$athena_variant/ThreeD.h>
8507 EOF 8514 EOF
8508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8509 { (eval echo configure:8510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8516 { (eval echo configure:8517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8511 if test -z "$ac_err"; then 8518 if test -z "$ac_err"; then
8512 rm -rf conftest* 8519 rm -rf conftest*
8513 eval "ac_cv_header_$ac_safe=yes" 8520 eval "ac_cv_header_$ac_safe=yes"
8514 else 8521 else
8533 fi 8540 fi
8534 8541
8535 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 8542 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8536 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 8543 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8537 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 8544 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8538 echo "configure:8539: checking for X11/Xaw3d/XawInit.h" >&5 8545 echo "configure:8546: checking for X11/Xaw3d/XawInit.h" >&5
8539 8546
8540 cat > conftest.$ac_ext <<EOF 8547 cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure" 8548 #line 8549 "configure"
8542 #include "confdefs.h" 8549 #include "confdefs.h"
8543 #include <X11/Xaw3d/XawInit.h> 8550 #include <X11/Xaw3d/XawInit.h>
8544 EOF 8551 EOF
8545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8546 { (eval echo configure:8547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8553 { (eval echo configure:8554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8548 if test -z "$ac_err"; then 8555 if test -z "$ac_err"; then
8549 rm -rf conftest* 8556 rm -rf conftest*
8550 eval "ac_cv_header_$ac_safe=yes" 8557 eval "ac_cv_header_$ac_safe=yes"
8551 else 8558 else
8558 rm -f conftest* 8565 rm -f conftest*
8559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8560 echo "$ac_t""yes" 1>&6 8567 echo "$ac_t""yes" 1>&6
8561 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 8568 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8562 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 8569 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8563 echo "configure:8564: checking for X11/Xaw3d/ThreeD.h" >&5 8570 echo "configure:8571: checking for X11/Xaw3d/ThreeD.h" >&5
8564 8571
8565 cat > conftest.$ac_ext <<EOF 8572 cat > conftest.$ac_ext <<EOF
8566 #line 8567 "configure" 8573 #line 8574 "configure"
8567 #include "confdefs.h" 8574 #include "confdefs.h"
8568 #include <X11/Xaw3d/ThreeD.h> 8575 #include <X11/Xaw3d/ThreeD.h>
8569 EOF 8576 EOF
8570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8571 { (eval echo configure:8572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8578 { (eval echo configure:8579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8573 if test -z "$ac_err"; then 8580 if test -z "$ac_err"; then
8574 rm -rf conftest* 8581 rm -rf conftest*
8575 eval "ac_cv_header_$ac_safe=yes" 8582 eval "ac_cv_header_$ac_safe=yes"
8576 else 8583 else
8598 fi 8605 fi
8599 8606
8600 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 8607 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8601 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 8608 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8602 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 8609 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8603 echo "configure:8604: checking for Xaw3d/XawInit.h" >&5 8610 echo "configure:8611: checking for Xaw3d/XawInit.h" >&5
8604 8611
8605 cat > conftest.$ac_ext <<EOF 8612 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure" 8613 #line 8614 "configure"
8607 #include "confdefs.h" 8614 #include "confdefs.h"
8608 #include <Xaw3d/XawInit.h> 8615 #include <Xaw3d/XawInit.h>
8609 EOF 8616 EOF
8610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8611 { (eval echo configure:8612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8618 { (eval echo configure:8619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8613 if test -z "$ac_err"; then 8620 if test -z "$ac_err"; then
8614 rm -rf conftest* 8621 rm -rf conftest*
8615 eval "ac_cv_header_$ac_safe=yes" 8622 eval "ac_cv_header_$ac_safe=yes"
8616 else 8623 else
8623 rm -f conftest* 8630 rm -f conftest*
8624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8625 echo "$ac_t""yes" 1>&6 8632 echo "$ac_t""yes" 1>&6
8626 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 8633 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8627 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 8634 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8628 echo "configure:8629: checking for Xaw3d/ThreeD.h" >&5 8635 echo "configure:8636: checking for Xaw3d/ThreeD.h" >&5
8629 8636
8630 cat > conftest.$ac_ext <<EOF 8637 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure" 8638 #line 8639 "configure"
8632 #include "confdefs.h" 8639 #include "confdefs.h"
8633 #include <Xaw3d/ThreeD.h> 8640 #include <Xaw3d/ThreeD.h>
8634 EOF 8641 EOF
8635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8636 { (eval echo configure:8637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8643 { (eval echo configure:8644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8638 if test -z "$ac_err"; then 8645 if test -z "$ac_err"; then
8639 rm -rf conftest* 8646 rm -rf conftest*
8640 eval "ac_cv_header_$ac_safe=yes" 8647 eval "ac_cv_header_$ac_safe=yes"
8641 else 8648 else
8663 fi 8670 fi
8664 8671
8665 if test -z "$athena_h_path"; then 8672 if test -z "$athena_h_path"; then
8666 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 8673 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8667 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 8674 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8668 echo "configure:8669: checking for X11/Xaw/ThreeD.h" >&5 8675 echo "configure:8676: checking for X11/Xaw/ThreeD.h" >&5
8669 8676
8670 cat > conftest.$ac_ext <<EOF 8677 cat > conftest.$ac_ext <<EOF
8671 #line 8672 "configure" 8678 #line 8679 "configure"
8672 #include "confdefs.h" 8679 #include "confdefs.h"
8673 #include <X11/Xaw/ThreeD.h> 8680 #include <X11/Xaw/ThreeD.h>
8674 EOF 8681 EOF
8675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8676 { (eval echo configure:8677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8683 { (eval echo configure:8684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8678 if test -z "$ac_err"; then 8685 if test -z "$ac_err"; then
8679 rm -rf conftest* 8686 rm -rf conftest*
8680 eval "ac_cv_header_$ac_safe=yes" 8687 eval "ac_cv_header_$ac_safe=yes"
8681 else 8688 else
8706 have_xaw=no 8713 have_xaw=no
8707 fi 8714 fi
8708 8715
8709 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 8716 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8710 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 8717 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8711 echo "configure:8712: checking for Xm/Xm.h" >&5 8718 echo "configure:8719: checking for Xm/Xm.h" >&5
8712 8719
8713 cat > conftest.$ac_ext <<EOF 8720 cat > conftest.$ac_ext <<EOF
8714 #line 8715 "configure" 8721 #line 8722 "configure"
8715 #include "confdefs.h" 8722 #include "confdefs.h"
8716 #include <Xm/Xm.h> 8723 #include <Xm/Xm.h>
8717 EOF 8724 EOF
8718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8719 { (eval echo configure:8720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8726 { (eval echo configure:8727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8721 if test -z "$ac_err"; then 8728 if test -z "$ac_err"; then
8722 rm -rf conftest* 8729 rm -rf conftest*
8723 eval "ac_cv_header_$ac_safe=yes" 8730 eval "ac_cv_header_$ac_safe=yes"
8724 else 8731 else
8731 rm -f conftest* 8738 rm -f conftest*
8732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8733 echo "$ac_t""yes" 1>&6 8740 echo "$ac_t""yes" 1>&6
8734 8741
8735 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 8742 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8736 echo "configure:8737: checking for XmStringFree in -lXm" >&5 8743 echo "configure:8744: checking for XmStringFree in -lXm" >&5
8737 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 8744 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8738 8745
8739 xe_check_libs=" -lXm " 8746 xe_check_libs=" -lXm "
8740 cat > conftest.$ac_ext <<EOF 8747 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure" 8748 #line 8749 "configure"
8742 #include "confdefs.h" 8749 #include "confdefs.h"
8743 /* Override any gcc2 internal prototype to avoid an error. */ 8750 /* Override any gcc2 internal prototype to avoid an error. */
8744 /* We use char because int might match the return type of a gcc2 8751 /* We use char because int might match the return type of a gcc2
8745 builtin and then its argument prototype would still apply. */ 8752 builtin and then its argument prototype would still apply. */
8746 char XmStringFree(); 8753 char XmStringFree();
8747 8754
8748 int main() { 8755 int main() {
8749 XmStringFree() 8756 XmStringFree()
8750 ; return 0; } 8757 ; return 0; }
8751 EOF 8758 EOF
8752 if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8759 if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8753 rm -rf conftest* 8760 rm -rf conftest*
8754 eval "ac_cv_lib_$ac_lib_var=yes" 8761 eval "ac_cv_lib_$ac_lib_var=yes"
8755 else 8762 else
8756 echo "configure: failed program was:" >&5 8763 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5 8764 cat conftest.$ac_ext >&5
8776 fi 8783 fi
8777 8784
8778 8785
8779 if test "$have_motif" = "yes"; then 8786 if test "$have_motif" = "yes"; then
8780 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 8787 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8781 echo "configure:8782: checking for Lesstif" >&5 8788 echo "configure:8789: checking for Lesstif" >&5
8782 cat > conftest.$ac_ext <<EOF 8789 cat > conftest.$ac_ext <<EOF
8783 #line 8784 "configure" 8790 #line 8791 "configure"
8784 #include "confdefs.h" 8791 #include "confdefs.h"
8785 #include <Xm/Xm.h> 8792 #include <Xm/Xm.h>
8786 #ifdef LESSTIF_VERSION 8793 #ifdef LESSTIF_VERSION
8787 yes 8794 yes
8788 #endif 8795 #endif
9184 fi 9191 fi
9185 fi 9192 fi
9186 9193
9187 if test "$with_mule" = "yes" ; then 9194 if test "$with_mule" = "yes" ; then
9188 echo "checking for Mule-related features" 1>&6 9195 echo "checking for Mule-related features" 1>&6
9189 echo "configure:9190: checking for Mule-related features" >&5 9196 echo "configure:9197: checking for Mule-related features" >&5
9190 { test "$extra_verbose" = "yes" && cat << \EOF 9197 { test "$extra_verbose" = "yes" && cat << \EOF
9191 Defining MULE 9198 Defining MULE
9192 EOF 9199 EOF
9193 cat >> confdefs.h <<\EOF 9200 cat >> confdefs.h <<\EOF
9194 #define MULE 1 9201 #define MULE 1
9209 9216
9210 for ac_hdr in libintl.h 9217 for ac_hdr in libintl.h
9211 do 9218 do
9212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 9219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 9220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9214 echo "configure:9215: checking for $ac_hdr" >&5 9221 echo "configure:9222: checking for $ac_hdr" >&5
9215 9222
9216 cat > conftest.$ac_ext <<EOF 9223 cat > conftest.$ac_ext <<EOF
9217 #line 9218 "configure" 9224 #line 9225 "configure"
9218 #include "confdefs.h" 9225 #include "confdefs.h"
9219 #include <$ac_hdr> 9226 #include <$ac_hdr>
9220 EOF 9227 EOF
9221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9222 { (eval echo configure:9223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9229 { (eval echo configure:9230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9224 if test -z "$ac_err"; then 9231 if test -z "$ac_err"; then
9225 rm -rf conftest* 9232 rm -rf conftest*
9226 eval "ac_cv_header_$ac_safe=yes" 9233 eval "ac_cv_header_$ac_safe=yes"
9227 else 9234 else
9248 fi 9255 fi
9249 done 9256 done
9250 9257
9251 9258
9252 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 9259 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9253 echo "configure:9254: checking for strerror in -lintl" >&5 9260 echo "configure:9261: checking for strerror in -lintl" >&5
9254 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 9261 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9255 9262
9256 xe_check_libs=" -lintl " 9263 xe_check_libs=" -lintl "
9257 cat > conftest.$ac_ext <<EOF 9264 cat > conftest.$ac_ext <<EOF
9258 #line 9259 "configure" 9265 #line 9266 "configure"
9259 #include "confdefs.h" 9266 #include "confdefs.h"
9260 /* Override any gcc2 internal prototype to avoid an error. */ 9267 /* Override any gcc2 internal prototype to avoid an error. */
9261 /* We use char because int might match the return type of a gcc2 9268 /* We use char because int might match the return type of a gcc2
9262 builtin and then its argument prototype would still apply. */ 9269 builtin and then its argument prototype would still apply. */
9263 char strerror(); 9270 char strerror();
9264 9271
9265 int main() { 9272 int main() {
9266 strerror() 9273 strerror()
9267 ; return 0; } 9274 ; return 0; }
9268 EOF 9275 EOF
9269 if { (eval echo configure:9270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9276 if { (eval echo configure:9277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9270 rm -rf conftest* 9277 rm -rf conftest*
9271 eval "ac_cv_lib_$ac_lib_var=yes" 9278 eval "ac_cv_lib_$ac_lib_var=yes"
9272 else 9279 else
9273 echo "configure: failed program was:" >&5 9280 echo "configure: failed program was:" >&5
9274 cat conftest.$ac_ext >&5 9281 cat conftest.$ac_ext >&5
9297 fi 9304 fi
9298 9305
9299 9306
9300 9307
9301 echo "checking for Mule input methods" 1>&6 9308 echo "checking for Mule input methods" 1>&6
9302 echo "configure:9303: checking for Mule input methods" >&5 9309 echo "configure:9310: checking for Mule input methods" >&5
9303 case "$with_xim" in "" | "yes" ) 9310 case "$with_xim" in "" | "yes" )
9304 echo "checking for XIM" 1>&6 9311 echo "checking for XIM" 1>&6
9305 echo "configure:9306: checking for XIM" >&5 9312 echo "configure:9313: checking for XIM" >&5
9306 9313
9307 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 9314 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9308 echo "configure:9309: checking for XOpenIM in -lX11" >&5 9315 echo "configure:9316: checking for XOpenIM in -lX11" >&5
9309 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 9316 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9310 9317
9311 xe_check_libs=" -lX11 " 9318 xe_check_libs=" -lX11 "
9312 cat > conftest.$ac_ext <<EOF 9319 cat > conftest.$ac_ext <<EOF
9313 #line 9314 "configure" 9320 #line 9321 "configure"
9314 #include "confdefs.h" 9321 #include "confdefs.h"
9315 /* Override any gcc2 internal prototype to avoid an error. */ 9322 /* Override any gcc2 internal prototype to avoid an error. */
9316 /* We use char because int might match the return type of a gcc2 9323 /* We use char because int might match the return type of a gcc2
9317 builtin and then its argument prototype would still apply. */ 9324 builtin and then its argument prototype would still apply. */
9318 char XOpenIM(); 9325 char XOpenIM();
9319 9326
9320 int main() { 9327 int main() {
9321 XOpenIM() 9328 XOpenIM()
9322 ; return 0; } 9329 ; return 0; }
9323 EOF 9330 EOF
9324 if { (eval echo configure:9325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9325 rm -rf conftest* 9332 rm -rf conftest*
9326 eval "ac_cv_lib_$ac_lib_var=yes" 9333 eval "ac_cv_lib_$ac_lib_var=yes"
9327 else 9334 else
9328 echo "configure: failed program was:" >&5 9335 echo "configure: failed program was:" >&5
9329 cat conftest.$ac_ext >&5 9336 cat conftest.$ac_ext >&5
9343 9350
9344 9351
9345 if test "$have_motif $have_lesstif" = "yes no"; then 9352 if test "$have_motif $have_lesstif" = "yes no"; then
9346 9353
9347 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 9354 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9348 echo "configure:9349: checking for XmImMbLookupString in -lXm" >&5 9355 echo "configure:9356: checking for XmImMbLookupString in -lXm" >&5
9349 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 9356 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9350 9357
9351 xe_check_libs=" -lXm " 9358 xe_check_libs=" -lXm "
9352 cat > conftest.$ac_ext <<EOF 9359 cat > conftest.$ac_ext <<EOF
9353 #line 9354 "configure" 9360 #line 9361 "configure"
9354 #include "confdefs.h" 9361 #include "confdefs.h"
9355 /* Override any gcc2 internal prototype to avoid an error. */ 9362 /* Override any gcc2 internal prototype to avoid an error. */
9356 /* We use char because int might match the return type of a gcc2 9363 /* We use char because int might match the return type of a gcc2
9357 builtin and then its argument prototype would still apply. */ 9364 builtin and then its argument prototype would still apply. */
9358 char XmImMbLookupString(); 9365 char XmImMbLookupString();
9359 9366
9360 int main() { 9367 int main() {
9361 XmImMbLookupString() 9368 XmImMbLookupString()
9362 ; return 0; } 9369 ; return 0; }
9363 EOF 9370 EOF
9364 if { (eval echo configure:9365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9371 if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9365 rm -rf conftest* 9372 rm -rf conftest*
9366 eval "ac_cv_lib_$ac_lib_var=yes" 9373 eval "ac_cv_lib_$ac_lib_var=yes"
9367 else 9374 else
9368 echo "configure: failed program was:" >&5 9375 echo "configure: failed program was:" >&5
9369 cat conftest.$ac_ext >&5 9376 cat conftest.$ac_ext >&5
9424 fi 9431 fi
9425 fi 9432 fi
9426 9433
9427 if test "$with_xfs" = "yes" ; then 9434 if test "$with_xfs" = "yes" ; then
9428 echo "checking for XFontSet" 1>&6 9435 echo "checking for XFontSet" 1>&6
9429 echo "configure:9430: checking for XFontSet" >&5 9436 echo "configure:9437: checking for XFontSet" >&5
9430 9437
9431 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 9438 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9432 echo "configure:9433: checking for XmbDrawString in -lX11" >&5 9439 echo "configure:9440: checking for XmbDrawString in -lX11" >&5
9433 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 9440 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9434 9441
9435 xe_check_libs=" -lX11 " 9442 xe_check_libs=" -lX11 "
9436 cat > conftest.$ac_ext <<EOF 9443 cat > conftest.$ac_ext <<EOF
9437 #line 9438 "configure" 9444 #line 9445 "configure"
9438 #include "confdefs.h" 9445 #include "confdefs.h"
9439 /* Override any gcc2 internal prototype to avoid an error. */ 9446 /* Override any gcc2 internal prototype to avoid an error. */
9440 /* We use char because int might match the return type of a gcc2 9447 /* We use char because int might match the return type of a gcc2
9441 builtin and then its argument prototype would still apply. */ 9448 builtin and then its argument prototype would still apply. */
9442 char XmbDrawString(); 9449 char XmbDrawString();
9443 9450
9444 int main() { 9451 int main() {
9445 XmbDrawString() 9452 XmbDrawString()
9446 ; return 0; } 9453 ; return 0; }
9447 EOF 9454 EOF
9448 if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9455 if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9449 rm -rf conftest* 9456 rm -rf conftest*
9450 eval "ac_cv_lib_$ac_lib_var=yes" 9457 eval "ac_cv_lib_$ac_lib_var=yes"
9451 else 9458 else
9452 echo "configure: failed program was:" >&5 9459 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5 9460 cat conftest.$ac_ext >&5
9483 fi 9490 fi
9484 fi 9491 fi
9485 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 9492 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9486 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 9493 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9487 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 9494 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9488 echo "configure:9489: checking for wnn/jllib.h" >&5 9495 echo "configure:9496: checking for wnn/jllib.h" >&5
9489 9496
9490 cat > conftest.$ac_ext <<EOF 9497 cat > conftest.$ac_ext <<EOF
9491 #line 9492 "configure" 9498 #line 9499 "configure"
9492 #include "confdefs.h" 9499 #include "confdefs.h"
9493 #include <wnn/jllib.h> 9500 #include <wnn/jllib.h>
9494 EOF 9501 EOF
9495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9496 { (eval echo configure:9497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9503 { (eval echo configure:9504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9498 if test -z "$ac_err"; then 9505 if test -z "$ac_err"; then
9499 rm -rf conftest* 9506 rm -rf conftest*
9500 eval "ac_cv_header_$ac_safe=yes" 9507 eval "ac_cv_header_$ac_safe=yes"
9501 else 9508 else
9516 } 9523 }
9517 if test "$with_wnn" != "no"; then 9524 if test "$with_wnn" != "no"; then
9518 for ac_func in crypt 9525 for ac_func in crypt
9519 do 9526 do
9520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9521 echo "configure:9522: checking for $ac_func" >&5 9528 echo "configure:9529: checking for $ac_func" >&5
9522 9529
9523 cat > conftest.$ac_ext <<EOF 9530 cat > conftest.$ac_ext <<EOF
9524 #line 9525 "configure" 9531 #line 9532 "configure"
9525 #include "confdefs.h" 9532 #include "confdefs.h"
9526 /* System header to define __stub macros and hopefully few prototypes, 9533 /* System header to define __stub macros and hopefully few prototypes,
9527 which can conflict with char $ac_func(); below. */ 9534 which can conflict with char $ac_func(); below. */
9528 #include <assert.h> 9535 #include <assert.h>
9529 /* Override any gcc2 internal prototype to avoid an error. */ 9536 /* Override any gcc2 internal prototype to avoid an error. */
9542 $ac_func(); 9549 $ac_func();
9543 #endif 9550 #endif
9544 9551
9545 ; return 0; } 9552 ; return 0; }
9546 EOF 9553 EOF
9547 if { (eval echo configure:9548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9554 if { (eval echo configure:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9548 rm -rf conftest* 9555 rm -rf conftest*
9549 eval "ac_cv_func_$ac_func=yes" 9556 eval "ac_cv_func_$ac_func=yes"
9550 else 9557 else
9551 echo "configure: failed program was:" >&5 9558 echo "configure: failed program was:" >&5
9552 cat conftest.$ac_ext >&5 9559 cat conftest.$ac_ext >&5
9571 fi 9578 fi
9572 done 9579 done
9573 9580
9574 test "$ac_cv_func_crypt" != "yes" && { 9581 test "$ac_cv_func_crypt" != "yes" && {
9575 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 9582 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9576 echo "configure:9577: checking for crypt in -lcrypt" >&5 9583 echo "configure:9584: checking for crypt in -lcrypt" >&5
9577 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 9584 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9578 9585
9579 xe_check_libs=" -lcrypt " 9586 xe_check_libs=" -lcrypt "
9580 cat > conftest.$ac_ext <<EOF 9587 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure" 9588 #line 9589 "configure"
9582 #include "confdefs.h" 9589 #include "confdefs.h"
9583 /* Override any gcc2 internal prototype to avoid an error. */ 9590 /* Override any gcc2 internal prototype to avoid an error. */
9584 /* We use char because int might match the return type of a gcc2 9591 /* We use char because int might match the return type of a gcc2
9585 builtin and then its argument prototype would still apply. */ 9592 builtin and then its argument prototype would still apply. */
9586 char crypt(); 9593 char crypt();
9587 9594
9588 int main() { 9595 int main() {
9589 crypt() 9596 crypt()
9590 ; return 0; } 9597 ; return 0; }
9591 EOF 9598 EOF
9592 if { (eval echo configure:9593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9599 if { (eval echo configure:9600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9593 rm -rf conftest* 9600 rm -rf conftest*
9594 eval "ac_cv_lib_$ac_lib_var=yes" 9601 eval "ac_cv_lib_$ac_lib_var=yes"
9595 else 9602 else
9596 echo "configure: failed program was:" >&5 9603 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5 9604 cat conftest.$ac_ext >&5
9622 } 9629 }
9623 fi 9630 fi
9624 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 9631 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9625 9632
9626 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 9633 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9627 echo "configure:9628: checking for jl_dic_list_e in -lwnn" >&5 9634 echo "configure:9635: checking for jl_dic_list_e in -lwnn" >&5
9628 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9635 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9629 9636
9630 xe_check_libs=" -lwnn " 9637 xe_check_libs=" -lwnn "
9631 cat > conftest.$ac_ext <<EOF 9638 cat > conftest.$ac_ext <<EOF
9632 #line 9633 "configure" 9639 #line 9640 "configure"
9633 #include "confdefs.h" 9640 #include "confdefs.h"
9634 /* Override any gcc2 internal prototype to avoid an error. */ 9641 /* Override any gcc2 internal prototype to avoid an error. */
9635 /* We use char because int might match the return type of a gcc2 9642 /* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */ 9643 builtin and then its argument prototype would still apply. */
9637 char jl_dic_list_e(); 9644 char jl_dic_list_e();
9638 9645
9639 int main() { 9646 int main() {
9640 jl_dic_list_e() 9647 jl_dic_list_e()
9641 ; return 0; } 9648 ; return 0; }
9642 EOF 9649 EOF
9643 if { (eval echo configure:9644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9650 if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9644 rm -rf conftest* 9651 rm -rf conftest*
9645 eval "ac_cv_lib_$ac_lib_var=yes" 9652 eval "ac_cv_lib_$ac_lib_var=yes"
9646 else 9653 else
9647 echo "configure: failed program was:" >&5 9654 echo "configure: failed program was:" >&5
9648 cat conftest.$ac_ext >&5 9655 cat conftest.$ac_ext >&5
9656 echo "$ac_t""yes" 1>&6 9663 echo "$ac_t""yes" 1>&6
9657 libwnn=wnn 9664 libwnn=wnn
9658 else 9665 else
9659 echo "$ac_t""no" 1>&6 9666 echo "$ac_t""no" 1>&6
9660 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 9667 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9661 echo "configure:9662: checking for jl_dic_list_e in -lwnn4" >&5 9668 echo "configure:9669: checking for jl_dic_list_e in -lwnn4" >&5
9662 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9669 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9663 9670
9664 xe_check_libs=" -lwnn4 " 9671 xe_check_libs=" -lwnn4 "
9665 cat > conftest.$ac_ext <<EOF 9672 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure" 9673 #line 9674 "configure"
9667 #include "confdefs.h" 9674 #include "confdefs.h"
9668 /* Override any gcc2 internal prototype to avoid an error. */ 9675 /* Override any gcc2 internal prototype to avoid an error. */
9669 /* We use char because int might match the return type of a gcc2 9676 /* We use char because int might match the return type of a gcc2
9670 builtin and then its argument prototype would still apply. */ 9677 builtin and then its argument prototype would still apply. */
9671 char jl_dic_list_e(); 9678 char jl_dic_list_e();
9672 9679
9673 int main() { 9680 int main() {
9674 jl_dic_list_e() 9681 jl_dic_list_e()
9675 ; return 0; } 9682 ; return 0; }
9676 EOF 9683 EOF
9677 if { (eval echo configure:9678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9684 if { (eval echo configure:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9678 rm -rf conftest* 9685 rm -rf conftest*
9679 eval "ac_cv_lib_$ac_lib_var=yes" 9686 eval "ac_cv_lib_$ac_lib_var=yes"
9680 else 9687 else
9681 echo "configure: failed program was:" >&5 9688 echo "configure: failed program was:" >&5
9682 cat conftest.$ac_ext >&5 9689 cat conftest.$ac_ext >&5
9690 echo "$ac_t""yes" 1>&6 9697 echo "$ac_t""yes" 1>&6
9691 libwnn=wnn4 9698 libwnn=wnn4
9692 else 9699 else
9693 echo "$ac_t""no" 1>&6 9700 echo "$ac_t""no" 1>&6
9694 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 9701 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9695 echo "configure:9696: checking for jl_dic_list_e in -lwnn6" >&5 9702 echo "configure:9703: checking for jl_dic_list_e in -lwnn6" >&5
9696 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9703 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9697 9704
9698 xe_check_libs=" -lwnn6 " 9705 xe_check_libs=" -lwnn6 "
9699 cat > conftest.$ac_ext <<EOF 9706 cat > conftest.$ac_ext <<EOF
9700 #line 9701 "configure" 9707 #line 9708 "configure"
9701 #include "confdefs.h" 9708 #include "confdefs.h"
9702 /* Override any gcc2 internal prototype to avoid an error. */ 9709 /* Override any gcc2 internal prototype to avoid an error. */
9703 /* We use char because int might match the return type of a gcc2 9710 /* We use char because int might match the return type of a gcc2
9704 builtin and then its argument prototype would still apply. */ 9711 builtin and then its argument prototype would still apply. */
9705 char jl_dic_list_e(); 9712 char jl_dic_list_e();
9706 9713
9707 int main() { 9714 int main() {
9708 jl_dic_list_e() 9715 jl_dic_list_e()
9709 ; return 0; } 9716 ; return 0; }
9710 EOF 9717 EOF
9711 if { (eval echo configure:9712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9718 if { (eval echo configure:9719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9712 rm -rf conftest* 9719 rm -rf conftest*
9713 eval "ac_cv_lib_$ac_lib_var=yes" 9720 eval "ac_cv_lib_$ac_lib_var=yes"
9714 else 9721 else
9715 echo "configure: failed program was:" >&5 9722 echo "configure: failed program was:" >&5
9716 cat conftest.$ac_ext >&5 9723 cat conftest.$ac_ext >&5
9724 echo "$ac_t""yes" 1>&6 9731 echo "$ac_t""yes" 1>&6
9725 libwnn=wnn6 9732 libwnn=wnn6
9726 else 9733 else
9727 echo "$ac_t""no" 1>&6 9734 echo "$ac_t""no" 1>&6
9728 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 9735 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9729 echo "configure:9730: checking for dic_list_e in -lwnn6_fromsrc" >&5 9736 echo "configure:9737: checking for dic_list_e in -lwnn6_fromsrc" >&5
9730 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 9737 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9731 9738
9732 xe_check_libs=" -lwnn6_fromsrc " 9739 xe_check_libs=" -lwnn6_fromsrc "
9733 cat > conftest.$ac_ext <<EOF 9740 cat > conftest.$ac_ext <<EOF
9734 #line 9735 "configure" 9741 #line 9742 "configure"
9735 #include "confdefs.h" 9742 #include "confdefs.h"
9736 /* Override any gcc2 internal prototype to avoid an error. */ 9743 /* Override any gcc2 internal prototype to avoid an error. */
9737 /* We use char because int might match the return type of a gcc2 9744 /* We use char because int might match the return type of a gcc2
9738 builtin and then its argument prototype would still apply. */ 9745 builtin and then its argument prototype would still apply. */
9739 char dic_list_e(); 9746 char dic_list_e();
9740 9747
9741 int main() { 9748 int main() {
9742 dic_list_e() 9749 dic_list_e()
9743 ; return 0; } 9750 ; return 0; }
9744 EOF 9751 EOF
9745 if { (eval echo configure:9746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9752 if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9746 rm -rf conftest* 9753 rm -rf conftest*
9747 eval "ac_cv_lib_$ac_lib_var=yes" 9754 eval "ac_cv_lib_$ac_lib_var=yes"
9748 else 9755 else
9749 echo "configure: failed program was:" >&5 9756 echo "configure: failed program was:" >&5
9750 cat conftest.$ac_ext >&5 9757 cat conftest.$ac_ext >&5
9788 echo " xemacs will be linked with \"mule-wnnfns.o\"" 9795 echo " xemacs will be linked with \"mule-wnnfns.o\""
9789 fi 9796 fi
9790 if test "$with_wnn6" != "no"; then 9797 if test "$with_wnn6" != "no"; then
9791 9798
9792 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 9799 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9793 echo "configure:9794: checking for jl_fi_dic_list in -l$libwnn" >&5 9800 echo "configure:9801: checking for jl_fi_dic_list in -l$libwnn" >&5
9794 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 9801 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9795 9802
9796 xe_check_libs=" -l$libwnn " 9803 xe_check_libs=" -l$libwnn "
9797 cat > conftest.$ac_ext <<EOF 9804 cat > conftest.$ac_ext <<EOF
9798 #line 9799 "configure" 9805 #line 9806 "configure"
9799 #include "confdefs.h" 9806 #include "confdefs.h"
9800 /* Override any gcc2 internal prototype to avoid an error. */ 9807 /* Override any gcc2 internal prototype to avoid an error. */
9801 /* We use char because int might match the return type of a gcc2 9808 /* We use char because int might match the return type of a gcc2
9802 builtin and then its argument prototype would still apply. */ 9809 builtin and then its argument prototype would still apply. */
9803 char jl_fi_dic_list(); 9810 char jl_fi_dic_list();
9804 9811
9805 int main() { 9812 int main() {
9806 jl_fi_dic_list() 9813 jl_fi_dic_list()
9807 ; return 0; } 9814 ; return 0; }
9808 EOF 9815 EOF
9809 if { (eval echo configure:9810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9816 if { (eval echo configure:9817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9810 rm -rf conftest* 9817 rm -rf conftest*
9811 eval "ac_cv_lib_$ac_lib_var=yes" 9818 eval "ac_cv_lib_$ac_lib_var=yes"
9812 else 9819 else
9813 echo "configure: failed program was:" >&5 9820 echo "configure: failed program was:" >&5
9814 cat conftest.$ac_ext >&5 9821 cat conftest.$ac_ext >&5
9839 9846
9840 canna_includes_found=no 9847 canna_includes_found=no
9841 if test "$with_canna" != "no"; then 9848 if test "$with_canna" != "no"; then
9842 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 9849 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9843 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 9850 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9844 echo "configure:9845: checking for canna/jrkanji.h" >&5 9851 echo "configure:9852: checking for canna/jrkanji.h" >&5
9845 9852
9846 cat > conftest.$ac_ext <<EOF 9853 cat > conftest.$ac_ext <<EOF
9847 #line 9848 "configure" 9854 #line 9855 "configure"
9848 #include "confdefs.h" 9855 #include "confdefs.h"
9849 #include <canna/jrkanji.h> 9856 #include <canna/jrkanji.h>
9850 EOF 9857 EOF
9851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9852 { (eval echo configure:9853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9859 { (eval echo configure:9860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9854 if test -z "$ac_err"; then 9861 if test -z "$ac_err"; then
9855 rm -rf conftest* 9862 rm -rf conftest*
9856 eval "ac_cv_header_$ac_safe=yes" 9863 eval "ac_cv_header_$ac_safe=yes"
9857 else 9864 else
9874 -d "/usr/local/canna/include"; then 9881 -d "/usr/local/canna/include"; then
9875 save_c_switch_site="$c_switch_site" 9882 save_c_switch_site="$c_switch_site"
9876 c_switch_site="$c_switch_site -I/usr/local/canna/include" 9883 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9877 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 9884 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9878 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 9885 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9879 echo "configure:9880: checking for canna/jrkanji.h" >&5 9886 echo "configure:9887: checking for canna/jrkanji.h" >&5
9880 9887
9881 cat > conftest.$ac_ext <<EOF 9888 cat > conftest.$ac_ext <<EOF
9882 #line 9883 "configure" 9889 #line 9890 "configure"
9883 #include "confdefs.h" 9890 #include "confdefs.h"
9884 #include <canna/jrkanji.h> 9891 #include <canna/jrkanji.h>
9885 EOF 9892 EOF
9886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9887 { (eval echo configure:9888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9894 { (eval echo configure:9895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9889 if test -z "$ac_err"; then 9896 if test -z "$ac_err"; then
9890 rm -rf conftest* 9897 rm -rf conftest*
9891 eval "ac_cv_header_$ac_safe=yes" 9898 eval "ac_cv_header_$ac_safe=yes"
9892 else 9899 else
9910 fi 9917 fi
9911 fi 9918 fi
9912 9919
9913 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 9920 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9914 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 9921 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9915 echo "configure:9916: checking for canna/RK.h" >&5 9922 echo "configure:9923: checking for canna/RK.h" >&5
9916 9923
9917 cat > conftest.$ac_ext <<EOF 9924 cat > conftest.$ac_ext <<EOF
9918 #line 9919 "configure" 9925 #line 9926 "configure"
9919 #include "confdefs.h" 9926 #include "confdefs.h"
9920 #include <canna/RK.h> 9927 #include <canna/RK.h>
9921 EOF 9928 EOF
9922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9923 { (eval echo configure:9924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9930 { (eval echo configure:9931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9925 if test -z "$ac_err"; then 9932 if test -z "$ac_err"; then
9926 rm -rf conftest* 9933 rm -rf conftest*
9927 eval "ac_cv_header_$ac_safe=yes" 9934 eval "ac_cv_header_$ac_safe=yes"
9928 else 9935 else
9941 with_canna=no 9948 with_canna=no
9942 fi 9949 fi
9943 } 9950 }
9944 test -z "$with_canna" && { 9951 test -z "$with_canna" && {
9945 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 9952 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9946 echo "configure:9947: checking for RkBgnBun in -lRKC" >&5 9953 echo "configure:9954: checking for RkBgnBun in -lRKC" >&5
9947 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 9954 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9948 9955
9949 xe_check_libs=" -lRKC " 9956 xe_check_libs=" -lRKC "
9950 cat > conftest.$ac_ext <<EOF 9957 cat > conftest.$ac_ext <<EOF
9951 #line 9952 "configure" 9958 #line 9959 "configure"
9952 #include "confdefs.h" 9959 #include "confdefs.h"
9953 /* Override any gcc2 internal prototype to avoid an error. */ 9960 /* Override any gcc2 internal prototype to avoid an error. */
9954 /* We use char because int might match the return type of a gcc2 9961 /* We use char because int might match the return type of a gcc2
9955 builtin and then its argument prototype would still apply. */ 9962 builtin and then its argument prototype would still apply. */
9956 char RkBgnBun(); 9963 char RkBgnBun();
9957 9964
9958 int main() { 9965 int main() {
9959 RkBgnBun() 9966 RkBgnBun()
9960 ; return 0; } 9967 ; return 0; }
9961 EOF 9968 EOF
9962 if { (eval echo configure:9963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9969 if { (eval echo configure:9970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9963 rm -rf conftest* 9970 rm -rf conftest*
9964 eval "ac_cv_lib_$ac_lib_var=yes" 9971 eval "ac_cv_lib_$ac_lib_var=yes"
9965 else 9972 else
9966 echo "configure: failed program was:" >&5 9973 echo "configure: failed program was:" >&5
9967 cat conftest.$ac_ext >&5 9974 cat conftest.$ac_ext >&5
9980 fi 9987 fi
9981 9988
9982 } 9989 }
9983 test -z "$with_canna" && { 9990 test -z "$with_canna" && {
9984 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 9991 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9985 echo "configure:9986: checking for jrKanjiControl in -lcanna" >&5 9992 echo "configure:9993: checking for jrKanjiControl in -lcanna" >&5
9986 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 9993 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9987 9994
9988 xe_check_libs=" -lcanna " 9995 xe_check_libs=" -lcanna "
9989 cat > conftest.$ac_ext <<EOF 9996 cat > conftest.$ac_ext <<EOF
9990 #line 9991 "configure" 9997 #line 9998 "configure"
9991 #include "confdefs.h" 9998 #include "confdefs.h"
9992 /* Override any gcc2 internal prototype to avoid an error. */ 9999 /* Override any gcc2 internal prototype to avoid an error. */
9993 /* We use char because int might match the return type of a gcc2 10000 /* We use char because int might match the return type of a gcc2
9994 builtin and then its argument prototype would still apply. */ 10001 builtin and then its argument prototype would still apply. */
9995 char jrKanjiControl(); 10002 char jrKanjiControl();
9996 10003
9997 int main() { 10004 int main() {
9998 jrKanjiControl() 10005 jrKanjiControl()
9999 ; return 0; } 10006 ; return 0; }
10000 EOF 10007 EOF
10001 if { (eval echo configure:10002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10008 if { (eval echo configure:10009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10002 rm -rf conftest* 10009 rm -rf conftest*
10003 eval "ac_cv_lib_$ac_lib_var=yes" 10010 eval "ac_cv_lib_$ac_lib_var=yes"
10004 else 10011 else
10005 echo "configure: failed program was:" >&5 10012 echo "configure: failed program was:" >&5
10006 cat conftest.$ac_ext >&5 10013 cat conftest.$ac_ext >&5
10045 10052
10046 if test "$need_motif" = "yes" ; then 10053 if test "$need_motif" = "yes" ; then
10047 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 10054 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10048 10055
10049 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 10056 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10050 echo "configure:10051: checking for layout_object_getvalue in -li18n" >&5 10057 echo "configure:10058: checking for layout_object_getvalue in -li18n" >&5
10051 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 10058 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10052 10059
10053 xe_check_libs=" -li18n " 10060 xe_check_libs=" -li18n "
10054 cat > conftest.$ac_ext <<EOF 10061 cat > conftest.$ac_ext <<EOF
10055 #line 10056 "configure" 10062 #line 10063 "configure"
10056 #include "confdefs.h" 10063 #include "confdefs.h"
10057 /* Override any gcc2 internal prototype to avoid an error. */ 10064 /* Override any gcc2 internal prototype to avoid an error. */
10058 /* We use char because int might match the return type of a gcc2 10065 /* We use char because int might match the return type of a gcc2
10059 builtin and then its argument prototype would still apply. */ 10066 builtin and then its argument prototype would still apply. */
10060 char layout_object_getvalue(); 10067 char layout_object_getvalue();
10061 10068
10062 int main() { 10069 int main() {
10063 layout_object_getvalue() 10070 layout_object_getvalue()
10064 ; return 0; } 10071 ; return 0; }
10065 EOF 10072 EOF
10066 if { (eval echo configure:10067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10073 if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10067 rm -rf conftest* 10074 rm -rf conftest*
10068 eval "ac_cv_lib_$ac_lib_var=yes" 10075 eval "ac_cv_lib_$ac_lib_var=yes"
10069 else 10076 else
10070 echo "configure: failed program was:" >&5 10077 echo "configure: failed program was:" >&5
10071 cat conftest.$ac_ext >&5 10078 cat conftest.$ac_ext >&5
10147 fi 10154 fi
10148 10155
10149 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo 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 stpcpy strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask 10156 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo 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 stpcpy strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask
10150 do 10157 do
10151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10152 echo "configure:10153: checking for $ac_func" >&5 10159 echo "configure:10160: checking for $ac_func" >&5
10153 10160
10154 cat > conftest.$ac_ext <<EOF 10161 cat > conftest.$ac_ext <<EOF
10155 #line 10156 "configure" 10162 #line 10163 "configure"
10156 #include "confdefs.h" 10163 #include "confdefs.h"
10157 /* System header to define __stub macros and hopefully few prototypes, 10164 /* System header to define __stub macros and hopefully few prototypes,
10158 which can conflict with char $ac_func(); below. */ 10165 which can conflict with char $ac_func(); below. */
10159 #include <assert.h> 10166 #include <assert.h>
10160 /* Override any gcc2 internal prototype to avoid an error. */ 10167 /* Override any gcc2 internal prototype to avoid an error. */
10173 $ac_func(); 10180 $ac_func();
10174 #endif 10181 #endif
10175 10182
10176 ; return 0; } 10183 ; return 0; }
10177 EOF 10184 EOF
10178 if { (eval echo configure:10179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10185 if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10179 rm -rf conftest* 10186 rm -rf conftest*
10180 eval "ac_cv_func_$ac_func=yes" 10187 eval "ac_cv_func_$ac_func=yes"
10181 else 10188 else
10182 echo "configure: failed program was:" >&5 10189 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5 10190 cat conftest.$ac_ext >&5
10204 10211
10205 10212
10206 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 10213 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10207 do 10214 do
10208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10209 echo "configure:10210: checking for $ac_func" >&5 10216 echo "configure:10217: checking for $ac_func" >&5
10210 10217
10211 cat > conftest.$ac_ext <<EOF 10218 cat > conftest.$ac_ext <<EOF
10212 #line 10213 "configure" 10219 #line 10220 "configure"
10213 #include "confdefs.h" 10220 #include "confdefs.h"
10214 /* System header to define __stub macros and hopefully few prototypes, 10221 /* System header to define __stub macros and hopefully few prototypes,
10215 which can conflict with char $ac_func(); below. */ 10222 which can conflict with char $ac_func(); below. */
10216 #include <assert.h> 10223 #include <assert.h>
10217 /* Override any gcc2 internal prototype to avoid an error. */ 10224 /* Override any gcc2 internal prototype to avoid an error. */
10230 $ac_func(); 10237 $ac_func();
10231 #endif 10238 #endif
10232 10239
10233 ; return 0; } 10240 ; return 0; }
10234 EOF 10241 EOF
10235 if { (eval echo configure:10236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10242 if { (eval echo configure:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10236 rm -rf conftest* 10243 rm -rf conftest*
10237 eval "ac_cv_func_$ac_func=yes" 10244 eval "ac_cv_func_$ac_func=yes"
10238 else 10245 else
10239 echo "configure: failed program was:" >&5 10246 echo "configure: failed program was:" >&5
10240 cat conftest.$ac_ext >&5 10247 cat conftest.$ac_ext >&5
10259 fi 10266 fi
10260 done 10267 done
10261 10268
10262 10269
10263 echo $ac_n "checking for openpty""... $ac_c" 1>&6 10270 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10264 echo "configure:10265: checking for openpty" >&5 10271 echo "configure:10272: checking for openpty" >&5
10265 10272
10266 cat > conftest.$ac_ext <<EOF 10273 cat > conftest.$ac_ext <<EOF
10267 #line 10268 "configure" 10274 #line 10275 "configure"
10268 #include "confdefs.h" 10275 #include "confdefs.h"
10269 /* System header to define __stub macros and hopefully few prototypes, 10276 /* System header to define __stub macros and hopefully few prototypes,
10270 which can conflict with char openpty(); below. */ 10277 which can conflict with char openpty(); below. */
10271 #include <assert.h> 10278 #include <assert.h>
10272 /* Override any gcc2 internal prototype to avoid an error. */ 10279 /* Override any gcc2 internal prototype to avoid an error. */
10285 openpty(); 10292 openpty();
10286 #endif 10293 #endif
10287 10294
10288 ; return 0; } 10295 ; return 0; }
10289 EOF 10296 EOF
10290 if { (eval echo configure:10291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10297 if { (eval echo configure:10298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10291 rm -rf conftest* 10298 rm -rf conftest*
10292 eval "ac_cv_func_openpty=yes" 10299 eval "ac_cv_func_openpty=yes"
10293 else 10300 else
10294 echo "configure: failed program was:" >&5 10301 echo "configure: failed program was:" >&5
10295 cat conftest.$ac_ext >&5 10302 cat conftest.$ac_ext >&5
10304 else 10311 else
10305 echo "$ac_t""no" 1>&6 10312 echo "$ac_t""no" 1>&6
10306 10313
10307 10314
10308 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 10315 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10309 echo "configure:10310: checking for openpty in -lutil" >&5 10316 echo "configure:10317: checking for openpty in -lutil" >&5
10310 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 10317 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10311 10318
10312 xe_check_libs=" -lutil " 10319 xe_check_libs=" -lutil "
10313 cat > conftest.$ac_ext <<EOF 10320 cat > conftest.$ac_ext <<EOF
10314 #line 10315 "configure" 10321 #line 10322 "configure"
10315 #include "confdefs.h" 10322 #include "confdefs.h"
10316 /* Override any gcc2 internal prototype to avoid an error. */ 10323 /* Override any gcc2 internal prototype to avoid an error. */
10317 /* We use char because int might match the return type of a gcc2 10324 /* We use char because int might match the return type of a gcc2
10318 builtin and then its argument prototype would still apply. */ 10325 builtin and then its argument prototype would still apply. */
10319 char openpty(); 10326 char openpty();
10320 10327
10321 int main() { 10328 int main() {
10322 openpty() 10329 openpty()
10323 ; return 0; } 10330 ; return 0; }
10324 EOF 10331 EOF
10325 if { (eval echo configure:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10332 if { (eval echo configure:10333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10326 rm -rf conftest* 10333 rm -rf conftest*
10327 eval "ac_cv_lib_$ac_lib_var=yes" 10334 eval "ac_cv_lib_$ac_lib_var=yes"
10328 else 10335 else
10329 echo "configure: failed program was:" >&5 10336 echo "configure: failed program was:" >&5
10330 cat conftest.$ac_ext >&5 10337 cat conftest.$ac_ext >&5
10355 10362
10356 for ac_hdr in pty.h libutil.h 10363 for ac_hdr in pty.h libutil.h
10357 do 10364 do
10358 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10359 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10360 echo "configure:10361: checking for $ac_hdr" >&5 10367 echo "configure:10368: checking for $ac_hdr" >&5
10361 10368
10362 cat > conftest.$ac_ext <<EOF 10369 cat > conftest.$ac_ext <<EOF
10363 #line 10364 "configure" 10370 #line 10371 "configure"
10364 #include "confdefs.h" 10371 #include "confdefs.h"
10365 #include <$ac_hdr> 10372 #include <$ac_hdr>
10366 EOF 10373 EOF
10367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10368 { (eval echo configure:10369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10375 { (eval echo configure:10376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10370 if test -z "$ac_err"; then 10377 if test -z "$ac_err"; then
10371 rm -rf conftest* 10378 rm -rf conftest*
10372 eval "ac_cv_header_$ac_safe=yes" 10379 eval "ac_cv_header_$ac_safe=yes"
10373 else 10380 else
10399 10406
10400 for ac_hdr in stropts.h 10407 for ac_hdr in stropts.h
10401 do 10408 do
10402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10409 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10410 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10404 echo "configure:10405: checking for $ac_hdr" >&5 10411 echo "configure:10412: checking for $ac_hdr" >&5
10405 10412
10406 cat > conftest.$ac_ext <<EOF 10413 cat > conftest.$ac_ext <<EOF
10407 #line 10408 "configure" 10414 #line 10415 "configure"
10408 #include "confdefs.h" 10415 #include "confdefs.h"
10409 #include <$ac_hdr> 10416 #include <$ac_hdr>
10410 EOF 10417 EOF
10411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10412 { (eval echo configure:10413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10419 { (eval echo configure:10420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10414 if test -z "$ac_err"; then 10421 if test -z "$ac_err"; then
10415 rm -rf conftest* 10422 rm -rf conftest*
10416 eval "ac_cv_header_$ac_safe=yes" 10423 eval "ac_cv_header_$ac_safe=yes"
10417 else 10424 else
10440 10447
10441 if test "$ac_cv_header_stropts_h" = "yes"; then 10448 if test "$ac_cv_header_stropts_h" = "yes"; then
10442 for ac_func in isastream 10449 for ac_func in isastream
10443 do 10450 do
10444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10445 echo "configure:10446: checking for $ac_func" >&5 10452 echo "configure:10453: checking for $ac_func" >&5
10446 10453
10447 cat > conftest.$ac_ext <<EOF 10454 cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure" 10455 #line 10456 "configure"
10449 #include "confdefs.h" 10456 #include "confdefs.h"
10450 /* System header to define __stub macros and hopefully few prototypes, 10457 /* System header to define __stub macros and hopefully few prototypes,
10451 which can conflict with char $ac_func(); below. */ 10458 which can conflict with char $ac_func(); below. */
10452 #include <assert.h> 10459 #include <assert.h>
10453 /* Override any gcc2 internal prototype to avoid an error. */ 10460 /* Override any gcc2 internal prototype to avoid an error. */
10466 $ac_func(); 10473 $ac_func();
10467 #endif 10474 #endif
10468 10475
10469 ; return 0; } 10476 ; return 0; }
10470 EOF 10477 EOF
10471 if { (eval echo configure:10472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10478 if { (eval echo configure:10479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10472 rm -rf conftest* 10479 rm -rf conftest*
10473 eval "ac_cv_func_$ac_func=yes" 10480 eval "ac_cv_func_$ac_func=yes"
10474 else 10481 else
10475 echo "configure: failed program was:" >&5 10482 echo "configure: failed program was:" >&5
10476 cat conftest.$ac_ext >&5 10483 cat conftest.$ac_ext >&5
10497 10504
10498 for ac_hdr in strtio.h 10505 for ac_hdr in strtio.h
10499 do 10506 do
10500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10502 echo "configure:10503: checking for $ac_hdr" >&5 10509 echo "configure:10510: checking for $ac_hdr" >&5
10503 10510
10504 cat > conftest.$ac_ext <<EOF 10511 cat > conftest.$ac_ext <<EOF
10505 #line 10506 "configure" 10512 #line 10513 "configure"
10506 #include "confdefs.h" 10513 #include "confdefs.h"
10507 #include <$ac_hdr> 10514 #include <$ac_hdr>
10508 EOF 10515 EOF
10509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10510 { (eval echo configure:10511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10517 { (eval echo configure:10518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10512 if test -z "$ac_err"; then 10519 if test -z "$ac_err"; then
10513 rm -rf conftest* 10520 rm -rf conftest*
10514 eval "ac_cv_header_$ac_safe=yes" 10521 eval "ac_cv_header_$ac_safe=yes"
10515 else 10522 else
10542 fi 10549 fi
10543 10550
10544 for ac_func in getloadavg 10551 for ac_func in getloadavg
10545 do 10552 do
10546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10547 echo "configure:10548: checking for $ac_func" >&5 10554 echo "configure:10555: checking for $ac_func" >&5
10548 10555
10549 cat > conftest.$ac_ext <<EOF 10556 cat > conftest.$ac_ext <<EOF
10550 #line 10551 "configure" 10557 #line 10558 "configure"
10551 #include "confdefs.h" 10558 #include "confdefs.h"
10552 /* System header to define __stub macros and hopefully few prototypes, 10559 /* System header to define __stub macros and hopefully few prototypes,
10553 which can conflict with char $ac_func(); below. */ 10560 which can conflict with char $ac_func(); below. */
10554 #include <assert.h> 10561 #include <assert.h>
10555 /* Override any gcc2 internal prototype to avoid an error. */ 10562 /* Override any gcc2 internal prototype to avoid an error. */
10568 $ac_func(); 10575 $ac_func();
10569 #endif 10576 #endif
10570 10577
10571 ; return 0; } 10578 ; return 0; }
10572 EOF 10579 EOF
10573 if { (eval echo configure:10574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10580 if { (eval echo configure:10581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10574 rm -rf conftest* 10581 rm -rf conftest*
10575 eval "ac_cv_func_$ac_func=yes" 10582 eval "ac_cv_func_$ac_func=yes"
10576 else 10583 else
10577 echo "configure: failed program was:" >&5 10584 echo "configure: failed program was:" >&5
10578 cat conftest.$ac_ext >&5 10585 cat conftest.$ac_ext >&5
10601 if test "$ac_cv_func_getloadavg" = "yes"; then 10608 if test "$ac_cv_func_getloadavg" = "yes"; then
10602 for ac_hdr in sys/loadavg.h 10609 for ac_hdr in sys/loadavg.h
10603 do 10610 do
10604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10606 echo "configure:10607: checking for $ac_hdr" >&5 10613 echo "configure:10614: checking for $ac_hdr" >&5
10607 10614
10608 cat > conftest.$ac_ext <<EOF 10615 cat > conftest.$ac_ext <<EOF
10609 #line 10610 "configure" 10616 #line 10617 "configure"
10610 #include "confdefs.h" 10617 #include "confdefs.h"
10611 #include <$ac_hdr> 10618 #include <$ac_hdr>
10612 EOF 10619 EOF
10613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10614 { (eval echo configure:10615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10621 { (eval echo configure:10622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10616 if test -z "$ac_err"; then 10623 if test -z "$ac_err"; then
10617 rm -rf conftest* 10624 rm -rf conftest*
10618 eval "ac_cv_header_$ac_safe=yes" 10625 eval "ac_cv_header_$ac_safe=yes"
10619 else 10626 else
10645 echo " xemacs will be linked with \"getloadavg.o\"" 10652 echo " xemacs will be linked with \"getloadavg.o\""
10646 fi 10653 fi
10647 10654
10648 10655
10649 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 10656 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10650 echo "configure:10651: checking for kstat_open in -lkstat" >&5 10657 echo "configure:10658: checking for kstat_open in -lkstat" >&5
10651 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 10658 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10652 10659
10653 xe_check_libs=" -lkstat " 10660 xe_check_libs=" -lkstat "
10654 cat > conftest.$ac_ext <<EOF 10661 cat > conftest.$ac_ext <<EOF
10655 #line 10656 "configure" 10662 #line 10663 "configure"
10656 #include "confdefs.h" 10663 #include "confdefs.h"
10657 /* Override any gcc2 internal prototype to avoid an error. */ 10664 /* Override any gcc2 internal prototype to avoid an error. */
10658 /* We use char because int might match the return type of a gcc2 10665 /* We use char because int might match the return type of a gcc2
10659 builtin and then its argument prototype would still apply. */ 10666 builtin and then its argument prototype would still apply. */
10660 char kstat_open(); 10667 char kstat_open();
10661 10668
10662 int main() { 10669 int main() {
10663 kstat_open() 10670 kstat_open()
10664 ; return 0; } 10671 ; return 0; }
10665 EOF 10672 EOF
10666 if { (eval echo configure:10667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10673 if { (eval echo configure:10674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10667 rm -rf conftest* 10674 rm -rf conftest*
10668 eval "ac_cv_lib_$ac_lib_var=yes" 10675 eval "ac_cv_lib_$ac_lib_var=yes"
10669 else 10676 else
10670 echo "configure: failed program was:" >&5 10677 echo "configure: failed program was:" >&5
10671 cat conftest.$ac_ext >&5 10678 cat conftest.$ac_ext >&5
10696 10703
10697 for ac_hdr in kstat.h 10704 for ac_hdr in kstat.h
10698 do 10705 do
10699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10701 echo "configure:10702: checking for $ac_hdr" >&5 10708 echo "configure:10709: checking for $ac_hdr" >&5
10702 10709
10703 cat > conftest.$ac_ext <<EOF 10710 cat > conftest.$ac_ext <<EOF
10704 #line 10705 "configure" 10711 #line 10712 "configure"
10705 #include "confdefs.h" 10712 #include "confdefs.h"
10706 #include <$ac_hdr> 10713 #include <$ac_hdr>
10707 EOF 10714 EOF
10708 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"
10709 { (eval echo configure:10710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10716 { (eval echo configure:10717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10711 if test -z "$ac_err"; then 10718 if test -z "$ac_err"; then
10712 rm -rf conftest* 10719 rm -rf conftest*
10713 eval "ac_cv_header_$ac_safe=yes" 10720 eval "ac_cv_header_$ac_safe=yes"
10714 else 10721 else
10736 done 10743 done
10737 10744
10738 10745
10739 10746
10740 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 10747 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10741 echo "configure:10742: checking for kvm_read in -lkvm" >&5 10748 echo "configure:10749: checking for kvm_read in -lkvm" >&5
10742 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 10749 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10743 10750
10744 xe_check_libs=" -lkvm " 10751 xe_check_libs=" -lkvm "
10745 cat > conftest.$ac_ext <<EOF 10752 cat > conftest.$ac_ext <<EOF
10746 #line 10747 "configure" 10753 #line 10754 "configure"
10747 #include "confdefs.h" 10754 #include "confdefs.h"
10748 /* Override any gcc2 internal prototype to avoid an error. */ 10755 /* Override any gcc2 internal prototype to avoid an error. */
10749 /* We use char because int might match the return type of a gcc2 10756 /* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */ 10757 builtin and then its argument prototype would still apply. */
10751 char kvm_read(); 10758 char kvm_read();
10752 10759
10753 int main() { 10760 int main() {
10754 kvm_read() 10761 kvm_read()
10755 ; return 0; } 10762 ; return 0; }
10756 EOF 10763 EOF
10757 if { (eval echo configure:10758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10764 if { (eval echo configure:10765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10758 rm -rf conftest* 10765 rm -rf conftest*
10759 eval "ac_cv_lib_$ac_lib_var=yes" 10766 eval "ac_cv_lib_$ac_lib_var=yes"
10760 else 10767 else
10761 echo "configure: failed program was:" >&5 10768 echo "configure: failed program was:" >&5
10762 cat conftest.$ac_ext >&5 10769 cat conftest.$ac_ext >&5
10786 10793
10787 10794
10788 fi 10795 fi
10789 10796
10790 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 10797 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10791 echo "configure:10792: checking whether netdb declares h_errno" >&5 10798 echo "configure:10799: checking whether netdb declares h_errno" >&5
10792 cat > conftest.$ac_ext <<EOF 10799 cat > conftest.$ac_ext <<EOF
10793 #line 10794 "configure" 10800 #line 10801 "configure"
10794 #include "confdefs.h" 10801 #include "confdefs.h"
10795 #include <netdb.h> 10802 #include <netdb.h>
10796 int main() { 10803 int main() {
10797 return h_errno; 10804 return h_errno;
10798 ; return 0; } 10805 ; return 0; }
10799 EOF 10806 EOF
10800 if { (eval echo configure:10801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10807 if { (eval echo configure:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10801 rm -rf conftest* 10808 rm -rf conftest*
10802 echo "$ac_t""yes" 1>&6 10809 echo "$ac_t""yes" 1>&6
10803 { test "$extra_verbose" = "yes" && cat << \EOF 10810 { test "$extra_verbose" = "yes" && cat << \EOF
10804 Defining HAVE_H_ERRNO 10811 Defining HAVE_H_ERRNO
10805 EOF 10812 EOF
10815 echo "$ac_t""no" 1>&6 10822 echo "$ac_t""no" 1>&6
10816 fi 10823 fi
10817 rm -f conftest* 10824 rm -f conftest*
10818 10825
10819 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 10826 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10820 echo "configure:10821: checking for sigsetjmp" >&5 10827 echo "configure:10828: checking for sigsetjmp" >&5
10821 cat > conftest.$ac_ext <<EOF 10828 cat > conftest.$ac_ext <<EOF
10822 #line 10823 "configure" 10829 #line 10830 "configure"
10823 #include "confdefs.h" 10830 #include "confdefs.h"
10824 #include <setjmp.h> 10831 #include <setjmp.h>
10825 int main() { 10832 int main() {
10826 sigjmp_buf bar; sigsetjmp (bar, 0); 10833 sigjmp_buf bar; sigsetjmp (bar, 0);
10827 ; return 0; } 10834 ; return 0; }
10828 EOF 10835 EOF
10829 if { (eval echo configure:10830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10836 if { (eval echo configure:10837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10830 rm -rf conftest* 10837 rm -rf conftest*
10831 echo "$ac_t""yes" 1>&6 10838 echo "$ac_t""yes" 1>&6
10832 { test "$extra_verbose" = "yes" && cat << \EOF 10839 { test "$extra_verbose" = "yes" && cat << \EOF
10833 Defining HAVE_SIGSETJMP 10840 Defining HAVE_SIGSETJMP
10834 EOF 10841 EOF
10844 echo "$ac_t""no" 1>&6 10851 echo "$ac_t""no" 1>&6
10845 fi 10852 fi
10846 rm -f conftest* 10853 rm -f conftest*
10847 10854
10848 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 10855 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10849 echo "configure:10850: checking whether localtime caches TZ" >&5 10856 echo "configure:10857: checking whether localtime caches TZ" >&5
10850 10857
10851 if test "$ac_cv_func_tzset" = "yes"; then 10858 if test "$ac_cv_func_tzset" = "yes"; then
10852 cat > conftest.$ac_ext <<EOF 10859 cat > conftest.$ac_ext <<EOF
10853 #line 10854 "configure" 10860 #line 10861 "configure"
10854 #include "confdefs.h" 10861 #include "confdefs.h"
10855 #include <time.h> 10862 #include <time.h>
10856 #if STDC_HEADERS 10863 #if STDC_HEADERS
10857 # include <stdlib.h> 10864 # include <stdlib.h>
10858 #endif 10865 #endif
10883 if (localtime (&now)->tm_hour != hour_unset) 10890 if (localtime (&now)->tm_hour != hour_unset)
10884 exit (1); 10891 exit (1);
10885 exit (0); 10892 exit (0);
10886 } 10893 }
10887 EOF 10894 EOF
10888 if { (eval echo configure:10889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10895 if { (eval echo configure:10896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10889 then 10896 then
10890 emacs_cv_localtime_cache=no 10897 emacs_cv_localtime_cache=no
10891 else 10898 else
10892 conftest_rc="$?" 10899 conftest_rc="$?"
10893 echo "configure: failed program was:" >&5 10900 echo "configure: failed program was:" >&5
10913 10920
10914 fi 10921 fi
10915 10922
10916 if test "$HAVE_TIMEVAL" = "yes"; then 10923 if test "$HAVE_TIMEVAL" = "yes"; then
10917 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 10924 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10918 echo "configure:10919: checking whether gettimeofday accepts one or two arguments" >&5 10925 echo "configure:10926: checking whether gettimeofday accepts one or two arguments" >&5
10919 cat > conftest.$ac_ext <<EOF 10926 cat > conftest.$ac_ext <<EOF
10920 #line 10921 "configure" 10927 #line 10928 "configure"
10921 #include "confdefs.h" 10928 #include "confdefs.h"
10922 10929
10923 #ifdef TIME_WITH_SYS_TIME 10930 #ifdef TIME_WITH_SYS_TIME
10924 #include <sys/time.h> 10931 #include <sys/time.h>
10925 #include <time.h> 10932 #include <time.h>
10936 struct timeval time; 10943 struct timeval time;
10937 gettimeofday (&time, 0); 10944 gettimeofday (&time, 0);
10938 10945
10939 ; return 0; } 10946 ; return 0; }
10940 EOF 10947 EOF
10941 if { (eval echo configure:10942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10948 if { (eval echo configure:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10942 rm -rf conftest* 10949 rm -rf conftest*
10943 echo "$ac_t""two" 1>&6 10950 echo "$ac_t""two" 1>&6
10944 else 10951 else
10945 echo "configure: failed program was:" >&5 10952 echo "configure: failed program was:" >&5
10946 cat conftest.$ac_ext >&5 10953 cat conftest.$ac_ext >&5
10958 rm -f conftest* 10965 rm -f conftest*
10959 fi 10966 fi
10960 10967
10961 10968
10962 echo $ac_n "checking for inline""... $ac_c" 1>&6 10969 echo $ac_n "checking for inline""... $ac_c" 1>&6
10963 echo "configure:10964: checking for inline" >&5 10970 echo "configure:10971: checking for inline" >&5
10964 10971
10965 ac_cv_c_inline=no 10972 ac_cv_c_inline=no
10966 for ac_kw in inline __inline__ __inline; do 10973 for ac_kw in inline __inline__ __inline; do
10967 cat > conftest.$ac_ext <<EOF 10974 cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure" 10975 #line 10976 "configure"
10969 #include "confdefs.h" 10976 #include "confdefs.h"
10970 10977
10971 int main() { 10978 int main() {
10972 } $ac_kw foo() { 10979 } $ac_kw foo() {
10973 ; return 0; } 10980 ; return 0; }
10974 EOF 10981 EOF
10975 if { (eval echo configure:10976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10982 if { (eval echo configure:10983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10976 rm -rf conftest* 10983 rm -rf conftest*
10977 ac_cv_c_inline=$ac_kw; break 10984 ac_cv_c_inline=$ac_kw; break
10978 else 10985 else
10979 echo "configure: failed program was:" >&5 10986 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5 10987 cat conftest.$ac_ext >&5
11011 11018
11012 if test "$__DECC" != "yes"; then 11019 if test "$__DECC" != "yes"; then
11013 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 11020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11014 # for constant arguments. Useless! 11021 # for constant arguments. Useless!
11015 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 11022 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11016 echo "configure:11017: checking for working alloca.h" >&5 11023 echo "configure:11024: checking for working alloca.h" >&5
11017 11024
11018 cat > conftest.$ac_ext <<EOF 11025 cat > conftest.$ac_ext <<EOF
11019 #line 11020 "configure" 11026 #line 11027 "configure"
11020 #include "confdefs.h" 11027 #include "confdefs.h"
11021 #include <alloca.h> 11028 #include <alloca.h>
11022 int main() { 11029 int main() {
11023 char *p = alloca(2 * sizeof(int)); 11030 char *p = alloca(2 * sizeof(int));
11024 ; return 0; } 11031 ; return 0; }
11025 EOF 11032 EOF
11026 if { (eval echo configure:11027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11033 if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11027 rm -rf conftest* 11034 rm -rf conftest*
11028 ac_cv_header_alloca_h=yes 11035 ac_cv_header_alloca_h=yes
11029 else 11036 else
11030 echo "configure: failed program was:" >&5 11037 echo "configure: failed program was:" >&5
11031 cat conftest.$ac_ext >&5 11038 cat conftest.$ac_ext >&5
11045 } 11052 }
11046 11053
11047 fi 11054 fi
11048 11055
11049 echo $ac_n "checking for alloca""... $ac_c" 1>&6 11056 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11050 echo "configure:11051: checking for alloca" >&5 11057 echo "configure:11058: checking for alloca" >&5
11051 11058
11052 cat > conftest.$ac_ext <<EOF 11059 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure" 11060 #line 11061 "configure"
11054 #include "confdefs.h" 11061 #include "confdefs.h"
11055 11062
11056 #ifdef __GNUC__ 11063 #ifdef __GNUC__
11057 # define alloca __builtin_alloca 11064 # define alloca __builtin_alloca
11058 #else 11065 #else
11076 11083
11077 int main() { 11084 int main() {
11078 char *p = (char *) alloca(1); 11085 char *p = (char *) alloca(1);
11079 ; return 0; } 11086 ; return 0; }
11080 EOF 11087 EOF
11081 if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11088 if { (eval echo configure:11089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11082 rm -rf conftest* 11089 rm -rf conftest*
11083 ac_cv_func_alloca_works=yes 11090 ac_cv_func_alloca_works=yes
11084 else 11091 else
11085 echo "configure: failed program was:" >&5 11092 echo "configure: failed program was:" >&5
11086 cat conftest.$ac_ext >&5 11093 cat conftest.$ac_ext >&5
11115 EOF 11122 EOF
11116 } 11123 }
11117 11124
11118 11125
11119 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 11126 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11120 echo "configure:11121: checking whether alloca needs Cray hooks" >&5 11127 echo "configure:11128: checking whether alloca needs Cray hooks" >&5
11121 11128
11122 cat > conftest.$ac_ext <<EOF 11129 cat > conftest.$ac_ext <<EOF
11123 #line 11124 "configure" 11130 #line 11131 "configure"
11124 #include "confdefs.h" 11131 #include "confdefs.h"
11125 #if defined(CRAY) && ! defined(CRAY2) 11132 #if defined(CRAY) && ! defined(CRAY2)
11126 webecray 11133 webecray
11127 #else 11134 #else
11128 wenotbecray 11135 wenotbecray
11142 11149
11143 echo "$ac_t""$ac_cv_os_cray" 1>&6 11150 echo "$ac_t""$ac_cv_os_cray" 1>&6
11144 if test $ac_cv_os_cray = yes; then 11151 if test $ac_cv_os_cray = yes; then
11145 for ac_func in _getb67 GETB67 getb67; do 11152 for ac_func in _getb67 GETB67 getb67; do
11146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11147 echo "configure:11148: checking for $ac_func" >&5 11154 echo "configure:11155: checking for $ac_func" >&5
11148 11155
11149 cat > conftest.$ac_ext <<EOF 11156 cat > conftest.$ac_ext <<EOF
11150 #line 11151 "configure" 11157 #line 11158 "configure"
11151 #include "confdefs.h" 11158 #include "confdefs.h"
11152 /* System header to define __stub macros and hopefully few prototypes, 11159 /* System header to define __stub macros and hopefully few prototypes,
11153 which can conflict with char $ac_func(); below. */ 11160 which can conflict with char $ac_func(); below. */
11154 #include <assert.h> 11161 #include <assert.h>
11155 /* Override any gcc2 internal prototype to avoid an error. */ 11162 /* Override any gcc2 internal prototype to avoid an error. */
11168 $ac_func(); 11175 $ac_func();
11169 #endif 11176 #endif
11170 11177
11171 ; return 0; } 11178 ; return 0; }
11172 EOF 11179 EOF
11173 if { (eval echo configure:11174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11180 if { (eval echo configure:11181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11174 rm -rf conftest* 11181 rm -rf conftest*
11175 eval "ac_cv_func_$ac_func=yes" 11182 eval "ac_cv_func_$ac_func=yes"
11176 else 11183 else
11177 echo "configure: failed program was:" >&5 11184 echo "configure: failed program was:" >&5
11178 cat conftest.$ac_ext >&5 11185 cat conftest.$ac_ext >&5
11198 11205
11199 done 11206 done
11200 fi 11207 fi
11201 11208
11202 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 11209 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11203 echo "configure:11204: checking stack direction for C alloca" >&5 11210 echo "configure:11211: checking stack direction for C alloca" >&5
11204 11211
11205 cat > conftest.$ac_ext <<EOF 11212 cat > conftest.$ac_ext <<EOF
11206 #line 11207 "configure" 11213 #line 11214 "configure"
11207 #include "confdefs.h" 11214 #include "confdefs.h"
11208 find_stack_direction () 11215 find_stack_direction ()
11209 { 11216 {
11210 static char *addr = 0; 11217 static char *addr = 0;
11211 auto char dummy; 11218 auto char dummy;
11220 main () 11227 main ()
11221 { 11228 {
11222 exit (find_stack_direction() < 0); 11229 exit (find_stack_direction() < 0);
11223 } 11230 }
11224 EOF 11231 EOF
11225 if { (eval echo configure:11226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11232 if { (eval echo configure:11233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11226 then 11233 then
11227 ac_cv_c_stack_direction=1 11234 ac_cv_c_stack_direction=1
11228 else 11235 else
11229 conftest_rc="$?" 11236 conftest_rc="$?"
11230 echo "configure: failed program was:" >&5 11237 echo "configure: failed program was:" >&5
11250 fi 11257 fi
11251 fi 11258 fi
11252 11259
11253 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 11260 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11254 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 11261 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11255 echo "configure:11256: checking for vfork.h" >&5 11262 echo "configure:11263: checking for vfork.h" >&5
11256 11263
11257 cat > conftest.$ac_ext <<EOF 11264 cat > conftest.$ac_ext <<EOF
11258 #line 11259 "configure" 11265 #line 11266 "configure"
11259 #include "confdefs.h" 11266 #include "confdefs.h"
11260 #include <vfork.h> 11267 #include <vfork.h>
11261 EOF 11268 EOF
11262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11263 { (eval echo configure:11264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11270 { (eval echo configure:11271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11265 if test -z "$ac_err"; then 11272 if test -z "$ac_err"; then
11266 rm -rf conftest* 11273 rm -rf conftest*
11267 eval "ac_cv_header_$ac_safe=yes" 11274 eval "ac_cv_header_$ac_safe=yes"
11268 else 11275 else
11286 else 11293 else
11287 echo "$ac_t""no" 1>&6 11294 echo "$ac_t""no" 1>&6
11288 fi 11295 fi
11289 11296
11290 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 11297 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11291 echo "configure:11292: checking for working vfork" >&5 11298 echo "configure:11299: checking for working vfork" >&5
11292 11299
11293 cat > conftest.$ac_ext <<EOF 11300 cat > conftest.$ac_ext <<EOF
11294 #line 11295 "configure" 11301 #line 11302 "configure"
11295 #include "confdefs.h" 11302 #include "confdefs.h"
11296 /* Thanks to Paul Eggert for this test. */ 11303 /* Thanks to Paul Eggert for this test. */
11297 #include <stdio.h> 11304 #include <stdio.h>
11298 #include <sys/types.h> 11305 #include <sys/types.h>
11299 #include <sys/stat.h> 11306 #include <sys/stat.h>
11384 || fstat(fileno(stdout), &st) != 0 11391 || fstat(fileno(stdout), &st) != 0
11385 ); 11392 );
11386 } 11393 }
11387 } 11394 }
11388 EOF 11395 EOF
11389 if { (eval echo configure:11390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11396 if { (eval echo configure:11397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11390 then 11397 then
11391 ac_cv_func_vfork_works=yes 11398 ac_cv_func_vfork_works=yes
11392 else 11399 else
11393 conftest_rc="$?" 11400 conftest_rc="$?"
11394 echo "configure: failed program was:" >&5 11401 echo "configure: failed program was:" >&5
11410 11417
11411 fi 11418 fi
11412 11419
11413 11420
11414 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 11421 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11415 echo "configure:11416: checking for working strcoll" >&5 11422 echo "configure:11423: checking for working strcoll" >&5
11416 11423
11417 cat > conftest.$ac_ext <<EOF 11424 cat > conftest.$ac_ext <<EOF
11418 #line 11419 "configure" 11425 #line 11426 "configure"
11419 #include "confdefs.h" 11426 #include "confdefs.h"
11420 #include <string.h> 11427 #include <string.h>
11421 main () 11428 main ()
11422 { 11429 {
11423 exit (strcoll ("abc", "def") >= 0 || 11430 exit (strcoll ("abc", "def") >= 0 ||
11424 strcoll ("ABC", "DEF") >= 0 || 11431 strcoll ("ABC", "DEF") >= 0 ||
11425 strcoll ("123", "456") >= 0); 11432 strcoll ("123", "456") >= 0);
11426 } 11433 }
11427 EOF 11434 EOF
11428 if { (eval echo configure:11429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11435 if { (eval echo configure:11436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11429 then 11436 then
11430 ac_cv_func_strcoll_works=yes 11437 ac_cv_func_strcoll_works=yes
11431 else 11438 else
11432 conftest_rc="$?" 11439 conftest_rc="$?"
11433 echo "configure: failed program was:" >&5 11440 echo "configure: failed program was:" >&5
11451 11458
11452 11459
11453 for ac_func in getpgrp 11460 for ac_func in getpgrp
11454 do 11461 do
11455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11456 echo "configure:11457: checking for $ac_func" >&5 11463 echo "configure:11464: checking for $ac_func" >&5
11457 11464
11458 cat > conftest.$ac_ext <<EOF 11465 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure" 11466 #line 11467 "configure"
11460 #include "confdefs.h" 11467 #include "confdefs.h"
11461 /* System header to define __stub macros and hopefully few prototypes, 11468 /* System header to define __stub macros and hopefully few prototypes,
11462 which can conflict with char $ac_func(); below. */ 11469 which can conflict with char $ac_func(); below. */
11463 #include <assert.h> 11470 #include <assert.h>
11464 /* Override any gcc2 internal prototype to avoid an error. */ 11471 /* Override any gcc2 internal prototype to avoid an error. */
11477 $ac_func(); 11484 $ac_func();
11478 #endif 11485 #endif
11479 11486
11480 ; return 0; } 11487 ; return 0; }
11481 EOF 11488 EOF
11482 if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11489 if { (eval echo configure:11490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11483 rm -rf conftest* 11490 rm -rf conftest*
11484 eval "ac_cv_func_$ac_func=yes" 11491 eval "ac_cv_func_$ac_func=yes"
11485 else 11492 else
11486 echo "configure: failed program was:" >&5 11493 echo "configure: failed program was:" >&5
11487 cat conftest.$ac_ext >&5 11494 cat conftest.$ac_ext >&5
11505 echo "$ac_t""no" 1>&6 11512 echo "$ac_t""no" 1>&6
11506 fi 11513 fi
11507 done 11514 done
11508 11515
11509 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 11516 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11510 echo "configure:11511: checking whether getpgrp takes no argument" >&5 11517 echo "configure:11518: checking whether getpgrp takes no argument" >&5
11511 11518
11512 cat > conftest.$ac_ext <<EOF 11519 cat > conftest.$ac_ext <<EOF
11513 #line 11514 "configure" 11520 #line 11521 "configure"
11514 #include "confdefs.h" 11521 #include "confdefs.h"
11515 11522
11516 /* 11523 /*
11517 * If this system has a BSD-style getpgrp(), 11524 * If this system has a BSD-style getpgrp(),
11518 * which takes a pid argument, exit unsuccessfully. 11525 * which takes a pid argument, exit unsuccessfully.
11563 exit(s>>8); 11570 exit(s>>8);
11564 } 11571 }
11565 } 11572 }
11566 11573
11567 EOF 11574 EOF
11568 if { (eval echo configure:11569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11575 if { (eval echo configure:11576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11569 then 11576 then
11570 ac_cv_func_getpgrp_void=yes 11577 ac_cv_func_getpgrp_void=yes
11571 else 11578 else
11572 conftest_rc="$?" 11579 conftest_rc="$?"
11573 echo "configure: failed program was:" >&5 11580 echo "configure: failed program was:" >&5
11590 11597
11591 fi 11598 fi
11592 11599
11593 11600
11594 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 11601 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11595 echo "configure:11596: checking for working mmap" >&5 11602 echo "configure:11603: checking for working mmap" >&5
11596 case "$opsys" in ultrix* ) have_mmap=no ;; *) 11603 case "$opsys" in ultrix* ) have_mmap=no ;; *)
11597 cat > conftest.$ac_ext <<EOF 11604 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure" 11605 #line 11606 "configure"
11599 #include "confdefs.h" 11606 #include "confdefs.h"
11600 #include <stdio.h> 11607 #include <stdio.h>
11601 #include <unistd.h> 11608 #include <unistd.h>
11602 #include <fcntl.h> 11609 #include <fcntl.h>
11603 #include <sys/mman.h> 11610 #include <sys/mman.h>
11626 return 0; 11633 return 0;
11627 perror ("conftest: mmap failed"); 11634 perror ("conftest: mmap failed");
11628 return 1; 11635 return 1;
11629 } 11636 }
11630 EOF 11637 EOF
11631 if { (eval echo configure:11632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11632 then 11639 then
11633 have_mmap=yes 11640 have_mmap=yes
11634 else 11641 else
11635 conftest_rc="$?" 11642 conftest_rc="$?"
11636 echo "configure: failed program was:" >&5 11643 echo "configure: failed program was:" >&5
11652 11659
11653 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 11660 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11654 if test "$rel_alloc $have_mmap" = "default yes"; then 11661 if test "$rel_alloc $have_mmap" = "default yes"; then
11655 if test "$doug_lea_malloc" = "yes"; then 11662 if test "$doug_lea_malloc" = "yes"; then
11656 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 11663 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11657 echo "configure:11658: checking for M_MMAP_THRESHOLD" >&5 11664 echo "configure:11665: checking for M_MMAP_THRESHOLD" >&5
11658 cat > conftest.$ac_ext <<EOF 11665 cat > conftest.$ac_ext <<EOF
11659 #line 11660 "configure" 11666 #line 11667 "configure"
11660 #include "confdefs.h" 11667 #include "confdefs.h"
11661 #include <malloc.h> 11668 #include <malloc.h>
11662 int main() { 11669 int main() {
11663 11670
11664 #ifndef M_MMAP_THRESHOLD 11671 #ifndef M_MMAP_THRESHOLD
11666 !@+$%^&*_)(_ - unlikely to compile... 11673 !@+$%^&*_)(_ - unlikely to compile...
11667 #endif 11674 #endif
11668 11675
11669 ; return 0; } 11676 ; return 0; }
11670 EOF 11677 EOF
11671 if { (eval echo configure:11672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11678 if { (eval echo configure:11679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11672 rm -rf conftest* 11679 rm -rf conftest*
11673 rel_alloc=no; echo "$ac_t""yes" 1>&6; 11680 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11674 else 11681 else
11675 echo "configure: failed program was:" >&5 11682 echo "configure: failed program was:" >&5
11676 cat conftest.$ac_ext >&5 11683 cat conftest.$ac_ext >&5
11691 } 11698 }
11692 11699
11693 11700
11694 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 11701 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11695 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 11702 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11696 echo "configure:11697: checking for termios.h" >&5 11703 echo "configure:11704: checking for termios.h" >&5
11697 11704
11698 cat > conftest.$ac_ext <<EOF 11705 cat > conftest.$ac_ext <<EOF
11699 #line 11700 "configure" 11706 #line 11707 "configure"
11700 #include "confdefs.h" 11707 #include "confdefs.h"
11701 #include <termios.h> 11708 #include <termios.h>
11702 EOF 11709 EOF
11703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11704 { (eval echo configure:11705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11711 { (eval echo configure:11712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11706 if test -z "$ac_err"; then 11713 if test -z "$ac_err"; then
11707 rm -rf conftest* 11714 rm -rf conftest*
11708 eval "ac_cv_header_$ac_safe=yes" 11715 eval "ac_cv_header_$ac_safe=yes"
11709 else 11716 else
11742 11749
11743 else 11750 else
11744 echo "$ac_t""no" 1>&6 11751 echo "$ac_t""no" 1>&6
11745 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 11752 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11746 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 11753 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11747 echo "configure:11748: checking for termio.h" >&5 11754 echo "configure:11755: checking for termio.h" >&5
11748 11755
11749 cat > conftest.$ac_ext <<EOF 11756 cat > conftest.$ac_ext <<EOF
11750 #line 11751 "configure" 11757 #line 11758 "configure"
11751 #include "confdefs.h" 11758 #include "confdefs.h"
11752 #include <termio.h> 11759 #include <termio.h>
11753 EOF 11760 EOF
11754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11755 { (eval echo configure:11756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11762 { (eval echo configure:11763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11757 if test -z "$ac_err"; then 11764 if test -z "$ac_err"; then
11758 rm -rf conftest* 11765 rm -rf conftest*
11759 eval "ac_cv_header_$ac_safe=yes" 11766 eval "ac_cv_header_$ac_safe=yes"
11760 else 11767 else
11782 fi 11789 fi
11783 11790
11784 11791
11785 11792
11786 echo $ac_n "checking for socket""... $ac_c" 1>&6 11793 echo $ac_n "checking for socket""... $ac_c" 1>&6
11787 echo "configure:11788: checking for socket" >&5 11794 echo "configure:11795: checking for socket" >&5
11788 11795
11789 cat > conftest.$ac_ext <<EOF 11796 cat > conftest.$ac_ext <<EOF
11790 #line 11791 "configure" 11797 #line 11798 "configure"
11791 #include "confdefs.h" 11798 #include "confdefs.h"
11792 /* System header to define __stub macros and hopefully few prototypes, 11799 /* System header to define __stub macros and hopefully few prototypes,
11793 which can conflict with char socket(); below. */ 11800 which can conflict with char socket(); below. */
11794 #include <assert.h> 11801 #include <assert.h>
11795 /* Override any gcc2 internal prototype to avoid an error. */ 11802 /* Override any gcc2 internal prototype to avoid an error. */
11808 socket(); 11815 socket();
11809 #endif 11816 #endif
11810 11817
11811 ; return 0; } 11818 ; return 0; }
11812 EOF 11819 EOF
11813 if { (eval echo configure:11814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11820 if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11814 rm -rf conftest* 11821 rm -rf conftest*
11815 eval "ac_cv_func_socket=yes" 11822 eval "ac_cv_func_socket=yes"
11816 else 11823 else
11817 echo "configure: failed program was:" >&5 11824 echo "configure: failed program was:" >&5
11818 cat conftest.$ac_ext >&5 11825 cat conftest.$ac_ext >&5
11823 11830
11824 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 11831 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11825 echo "$ac_t""yes" 1>&6 11832 echo "$ac_t""yes" 1>&6
11826 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 11833 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11827 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 11834 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11828 echo "configure:11829: checking for netinet/in.h" >&5 11835 echo "configure:11836: checking for netinet/in.h" >&5
11829 11836
11830 cat > conftest.$ac_ext <<EOF 11837 cat > conftest.$ac_ext <<EOF
11831 #line 11832 "configure" 11838 #line 11839 "configure"
11832 #include "confdefs.h" 11839 #include "confdefs.h"
11833 #include <netinet/in.h> 11840 #include <netinet/in.h>
11834 EOF 11841 EOF
11835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11836 { (eval echo configure:11837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11843 { (eval echo configure:11844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11838 if test -z "$ac_err"; then 11845 if test -z "$ac_err"; then
11839 rm -rf conftest* 11846 rm -rf conftest*
11840 eval "ac_cv_header_$ac_safe=yes" 11847 eval "ac_cv_header_$ac_safe=yes"
11841 else 11848 else
11848 rm -f conftest* 11855 rm -f conftest*
11849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11850 echo "$ac_t""yes" 1>&6 11857 echo "$ac_t""yes" 1>&6
11851 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 11858 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11852 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 11859 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11853 echo "configure:11854: checking for arpa/inet.h" >&5 11860 echo "configure:11861: checking for arpa/inet.h" >&5
11854 11861
11855 cat > conftest.$ac_ext <<EOF 11862 cat > conftest.$ac_ext <<EOF
11856 #line 11857 "configure" 11863 #line 11864 "configure"
11857 #include "confdefs.h" 11864 #include "confdefs.h"
11858 #include <arpa/inet.h> 11865 #include <arpa/inet.h>
11859 EOF 11866 EOF
11860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11861 { (eval echo configure:11862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11868 { (eval echo configure:11869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11863 if test -z "$ac_err"; then 11870 if test -z "$ac_err"; then
11864 rm -rf conftest* 11871 rm -rf conftest*
11865 eval "ac_cv_header_$ac_safe=yes" 11872 eval "ac_cv_header_$ac_safe=yes"
11866 else 11873 else
11881 #define HAVE_SOCKETS 1 11888 #define HAVE_SOCKETS 1
11882 EOF 11889 EOF
11883 } 11890 }
11884 11891
11885 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 11892 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11886 echo "configure:11887: checking "for sun_len member in struct sockaddr_un"" >&5 11893 echo "configure:11894: checking "for sun_len member in struct sockaddr_un"" >&5
11887 cat > conftest.$ac_ext <<EOF 11894 cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure" 11895 #line 11896 "configure"
11889 #include "confdefs.h" 11896 #include "confdefs.h"
11890 11897
11891 #include <sys/types.h> 11898 #include <sys/types.h>
11892 #include <sys/socket.h> 11899 #include <sys/socket.h>
11893 #include <sys/un.h> 11900 #include <sys/un.h>
11894 11901
11895 int main() { 11902 int main() {
11896 static struct sockaddr_un x; x.sun_len = 1; 11903 static struct sockaddr_un x; x.sun_len = 1;
11897 ; return 0; } 11904 ; return 0; }
11898 EOF 11905 EOF
11899 if { (eval echo configure:11900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11906 if { (eval echo configure:11907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11900 rm -rf conftest* 11907 rm -rf conftest*
11901 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 11908 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11902 Defining HAVE_SOCKADDR_SUN_LEN 11909 Defining HAVE_SOCKADDR_SUN_LEN
11903 EOF 11910 EOF
11904 cat >> confdefs.h <<\EOF 11911 cat >> confdefs.h <<\EOF
11912 rm -rf conftest* 11919 rm -rf conftest*
11913 echo "$ac_t""no" 1>&6 11920 echo "$ac_t""no" 1>&6
11914 fi 11921 fi
11915 rm -f conftest* 11922 rm -f conftest*
11916 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 11923 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11917 echo "configure:11918: checking "for ip_mreq struct in netinet/in.h"" >&5 11924 echo "configure:11925: checking "for ip_mreq struct in netinet/in.h"" >&5
11918 cat > conftest.$ac_ext <<EOF 11925 cat > conftest.$ac_ext <<EOF
11919 #line 11920 "configure" 11926 #line 11927 "configure"
11920 #include "confdefs.h" 11927 #include "confdefs.h"
11921 11928
11922 #include <sys/types.h> 11929 #include <sys/types.h>
11923 #include <netinet/in.h> 11930 #include <netinet/in.h>
11924 11931
11925 int main() { 11932 int main() {
11926 static struct ip_mreq x; 11933 static struct ip_mreq x;
11927 ; return 0; } 11934 ; return 0; }
11928 EOF 11935 EOF
11929 if { (eval echo configure:11930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11936 if { (eval echo configure:11937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11930 rm -rf conftest* 11937 rm -rf conftest*
11931 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 11938 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11932 Defining HAVE_MULTICAST 11939 Defining HAVE_MULTICAST
11933 EOF 11940 EOF
11934 cat >> confdefs.h <<\EOF 11941 cat >> confdefs.h <<\EOF
11955 echo "$ac_t""no" 1>&6 11962 echo "$ac_t""no" 1>&6
11956 fi 11963 fi
11957 11964
11958 11965
11959 echo $ac_n "checking for msgget""... $ac_c" 1>&6 11966 echo $ac_n "checking for msgget""... $ac_c" 1>&6
11960 echo "configure:11961: checking for msgget" >&5 11967 echo "configure:11968: checking for msgget" >&5
11961 11968
11962 cat > conftest.$ac_ext <<EOF 11969 cat > conftest.$ac_ext <<EOF
11963 #line 11964 "configure" 11970 #line 11971 "configure"
11964 #include "confdefs.h" 11971 #include "confdefs.h"
11965 /* System header to define __stub macros and hopefully few prototypes, 11972 /* System header to define __stub macros and hopefully few prototypes,
11966 which can conflict with char msgget(); below. */ 11973 which can conflict with char msgget(); below. */
11967 #include <assert.h> 11974 #include <assert.h>
11968 /* Override any gcc2 internal prototype to avoid an error. */ 11975 /* Override any gcc2 internal prototype to avoid an error. */
11981 msgget(); 11988 msgget();
11982 #endif 11989 #endif
11983 11990
11984 ; return 0; } 11991 ; return 0; }
11985 EOF 11992 EOF
11986 if { (eval echo configure:11987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11993 if { (eval echo configure:11994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11987 rm -rf conftest* 11994 rm -rf conftest*
11988 eval "ac_cv_func_msgget=yes" 11995 eval "ac_cv_func_msgget=yes"
11989 else 11996 else
11990 echo "configure: failed program was:" >&5 11997 echo "configure: failed program was:" >&5
11991 cat conftest.$ac_ext >&5 11998 cat conftest.$ac_ext >&5
11996 12003
11997 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 12004 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
11998 echo "$ac_t""yes" 1>&6 12005 echo "$ac_t""yes" 1>&6
11999 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 12006 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12000 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 12007 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12001 echo "configure:12002: checking for sys/ipc.h" >&5 12008 echo "configure:12009: checking for sys/ipc.h" >&5
12002 12009
12003 cat > conftest.$ac_ext <<EOF 12010 cat > conftest.$ac_ext <<EOF
12004 #line 12005 "configure" 12011 #line 12012 "configure"
12005 #include "confdefs.h" 12012 #include "confdefs.h"
12006 #include <sys/ipc.h> 12013 #include <sys/ipc.h>
12007 EOF 12014 EOF
12008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12009 { (eval echo configure:12010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12016 { (eval echo configure:12017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12011 if test -z "$ac_err"; then 12018 if test -z "$ac_err"; then
12012 rm -rf conftest* 12019 rm -rf conftest*
12013 eval "ac_cv_header_$ac_safe=yes" 12020 eval "ac_cv_header_$ac_safe=yes"
12014 else 12021 else
12021 rm -f conftest* 12028 rm -f conftest*
12022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12023 echo "$ac_t""yes" 1>&6 12030 echo "$ac_t""yes" 1>&6
12024 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 12031 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12025 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 12032 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12026 echo "configure:12027: checking for sys/msg.h" >&5 12033 echo "configure:12034: checking for sys/msg.h" >&5
12027 12034
12028 cat > conftest.$ac_ext <<EOF 12035 cat > conftest.$ac_ext <<EOF
12029 #line 12030 "configure" 12036 #line 12037 "configure"
12030 #include "confdefs.h" 12037 #include "confdefs.h"
12031 #include <sys/msg.h> 12038 #include <sys/msg.h>
12032 EOF 12039 EOF
12033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12034 { (eval echo configure:12035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12041 { (eval echo configure:12042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12036 if test -z "$ac_err"; then 12043 if test -z "$ac_err"; then
12037 rm -rf conftest* 12044 rm -rf conftest*
12038 eval "ac_cv_header_$ac_safe=yes" 12045 eval "ac_cv_header_$ac_safe=yes"
12039 else 12046 else
12067 fi 12074 fi
12068 12075
12069 12076
12070 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 12077 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12071 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 12078 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12072 echo "configure:12073: checking for dirent.h" >&5 12079 echo "configure:12080: checking for dirent.h" >&5
12073 12080
12074 cat > conftest.$ac_ext <<EOF 12081 cat > conftest.$ac_ext <<EOF
12075 #line 12076 "configure" 12082 #line 12083 "configure"
12076 #include "confdefs.h" 12083 #include "confdefs.h"
12077 #include <dirent.h> 12084 #include <dirent.h>
12078 EOF 12085 EOF
12079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12080 { (eval echo configure:12081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12087 { (eval echo configure:12088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12082 if test -z "$ac_err"; then 12089 if test -z "$ac_err"; then
12083 rm -rf conftest* 12090 rm -rf conftest*
12084 eval "ac_cv_header_$ac_safe=yes" 12091 eval "ac_cv_header_$ac_safe=yes"
12085 else 12092 else
12102 12109
12103 else 12110 else
12104 echo "$ac_t""no" 1>&6 12111 echo "$ac_t""no" 1>&6
12105 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 12112 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12106 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 12113 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12107 echo "configure:12108: checking for sys/dir.h" >&5 12114 echo "configure:12115: checking for sys/dir.h" >&5
12108 12115
12109 cat > conftest.$ac_ext <<EOF 12116 cat > conftest.$ac_ext <<EOF
12110 #line 12111 "configure" 12117 #line 12118 "configure"
12111 #include "confdefs.h" 12118 #include "confdefs.h"
12112 #include <sys/dir.h> 12119 #include <sys/dir.h>
12113 EOF 12120 EOF
12114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12115 { (eval echo configure:12116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12122 { (eval echo configure:12123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12117 if test -z "$ac_err"; then 12124 if test -z "$ac_err"; then
12118 rm -rf conftest* 12125 rm -rf conftest*
12119 eval "ac_cv_header_$ac_safe=yes" 12126 eval "ac_cv_header_$ac_safe=yes"
12120 else 12127 else
12143 fi 12150 fi
12144 12151
12145 12152
12146 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 12153 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12147 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 12154 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12148 echo "configure:12149: checking for nlist.h" >&5 12155 echo "configure:12156: checking for nlist.h" >&5
12149 12156
12150 cat > conftest.$ac_ext <<EOF 12157 cat > conftest.$ac_ext <<EOF
12151 #line 12152 "configure" 12158 #line 12159 "configure"
12152 #include "confdefs.h" 12159 #include "confdefs.h"
12153 #include <nlist.h> 12160 #include <nlist.h>
12154 EOF 12161 EOF
12155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12156 { (eval echo configure:12157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12163 { (eval echo configure:12164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12158 if test -z "$ac_err"; then 12165 if test -z "$ac_err"; then
12159 rm -rf conftest* 12166 rm -rf conftest*
12160 eval "ac_cv_header_$ac_safe=yes" 12167 eval "ac_cv_header_$ac_safe=yes"
12161 else 12168 else
12181 fi 12188 fi
12182 12189
12183 12190
12184 12191
12185 echo "checking "for sound support"" 1>&6 12192 echo "checking "for sound support"" 1>&6
12186 echo "configure:12187: checking "for sound support"" >&5 12193 echo "configure:12194: checking "for sound support"" >&5
12187 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 12194 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12188 12195
12189 if test "$with_native_sound" != "no"; then 12196 if test "$with_native_sound" != "no"; then
12190 if test -n "$native_sound_lib"; then 12197 if test -n "$native_sound_lib"; then
12191 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 12198 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12192 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 12199 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12193 echo "configure:12194: checking for multimedia/audio_device.h" >&5 12200 echo "configure:12201: checking for multimedia/audio_device.h" >&5
12194 12201
12195 cat > conftest.$ac_ext <<EOF 12202 cat > conftest.$ac_ext <<EOF
12196 #line 12197 "configure" 12203 #line 12204 "configure"
12197 #include "confdefs.h" 12204 #include "confdefs.h"
12198 #include <multimedia/audio_device.h> 12205 #include <multimedia/audio_device.h>
12199 EOF 12206 EOF
12200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12201 { (eval echo configure:12202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12208 { (eval echo configure:12209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12203 if test -z "$ac_err"; then 12210 if test -z "$ac_err"; then
12204 rm -rf conftest* 12211 rm -rf conftest*
12205 eval "ac_cv_header_$ac_safe=yes" 12212 eval "ac_cv_header_$ac_safe=yes"
12206 else 12213 else
12244 case "$canonical" in 12251 case "$canonical" in
12245 *-sgi-* ) 12252 *-sgi-* )
12246 if test -z "$native_sound_lib"; then 12253 if test -z "$native_sound_lib"; then
12247 12254
12248 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 12255 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12249 echo "configure:12250: checking for ALopenport in -laudio" >&5 12256 echo "configure:12257: checking for ALopenport in -laudio" >&5
12250 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 12257 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12251 12258
12252 xe_check_libs=" -laudio " 12259 xe_check_libs=" -laudio "
12253 cat > conftest.$ac_ext <<EOF 12260 cat > conftest.$ac_ext <<EOF
12254 #line 12255 "configure" 12261 #line 12262 "configure"
12255 #include "confdefs.h" 12262 #include "confdefs.h"
12256 /* Override any gcc2 internal prototype to avoid an error. */ 12263 /* Override any gcc2 internal prototype to avoid an error. */
12257 /* We use char because int might match the return type of a gcc2 12264 /* We use char because int might match the return type of a gcc2
12258 builtin and then its argument prototype would still apply. */ 12265 builtin and then its argument prototype would still apply. */
12259 char ALopenport(); 12266 char ALopenport();
12260 12267
12261 int main() { 12268 int main() {
12262 ALopenport() 12269 ALopenport()
12263 ; return 0; } 12270 ; return 0; }
12264 EOF 12271 EOF
12265 if { (eval echo configure:12266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12272 if { (eval echo configure:12273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12266 rm -rf conftest* 12273 rm -rf conftest*
12267 eval "ac_cv_lib_$ac_lib_var=yes" 12274 eval "ac_cv_lib_$ac_lib_var=yes"
12268 else 12275 else
12269 echo "configure: failed program was:" >&5 12276 echo "configure: failed program was:" >&5
12270 cat conftest.$ac_ext >&5 12277 cat conftest.$ac_ext >&5
12291 fi ;; 12298 fi ;;
12292 hppa*-hp-hpux* ) 12299 hppa*-hp-hpux* )
12293 if test -z "$native_sound_lib"; then 12300 if test -z "$native_sound_lib"; then
12294 12301
12295 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 12302 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12296 echo "configure:12297: checking for AOpenAudio in -lAlib" >&5 12303 echo "configure:12304: checking for AOpenAudio in -lAlib" >&5
12297 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 12304 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12298 12305
12299 xe_check_libs=" -lAlib " 12306 xe_check_libs=" -lAlib "
12300 cat > conftest.$ac_ext <<EOF 12307 cat > conftest.$ac_ext <<EOF
12301 #line 12302 "configure" 12308 #line 12309 "configure"
12302 #include "confdefs.h" 12309 #include "confdefs.h"
12303 /* Override any gcc2 internal prototype to avoid an error. */ 12310 /* Override any gcc2 internal prototype to avoid an error. */
12304 /* We use char because int might match the return type of a gcc2 12311 /* We use char because int might match the return type of a gcc2
12305 builtin and then its argument prototype would still apply. */ 12312 builtin and then its argument prototype would still apply. */
12306 char AOpenAudio(); 12313 char AOpenAudio();
12307 12314
12308 int main() { 12315 int main() {
12309 AOpenAudio() 12316 AOpenAudio()
12310 ; return 0; } 12317 ; return 0; }
12311 EOF 12318 EOF
12312 if { (eval echo configure:12313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12319 if { (eval echo configure:12320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12313 rm -rf conftest* 12320 rm -rf conftest*
12314 eval "ac_cv_lib_$ac_lib_var=yes" 12321 eval "ac_cv_lib_$ac_lib_var=yes"
12315 else 12322 else
12316 echo "configure: failed program was:" >&5 12323 echo "configure: failed program was:" >&5
12317 cat conftest.$ac_ext >&5 12324 cat conftest.$ac_ext >&5
12345 12352
12346 if test -z "$sound_found"; then 12353 if test -z "$sound_found"; then
12347 for dir in "machine" "sys" "linux"; do 12354 for dir in "machine" "sys" "linux"; do
12348 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 12355 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12349 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 12356 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12350 echo "configure:12351: checking for ${dir}/soundcard.h" >&5 12357 echo "configure:12358: checking for ${dir}/soundcard.h" >&5
12351 12358
12352 cat > conftest.$ac_ext <<EOF 12359 cat > conftest.$ac_ext <<EOF
12353 #line 12354 "configure" 12360 #line 12361 "configure"
12354 #include "confdefs.h" 12361 #include "confdefs.h"
12355 #include <${dir}/soundcard.h> 12362 #include <${dir}/soundcard.h>
12356 EOF 12363 EOF
12357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12358 { (eval echo configure:12359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12365 { (eval echo configure:12366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12360 if test -z "$ac_err"; then 12367 if test -z "$ac_err"; then
12361 rm -rf conftest* 12368 rm -rf conftest*
12362 eval "ac_cv_header_$ac_safe=yes" 12369 eval "ac_cv_header_$ac_safe=yes"
12363 else 12370 else
12414 fi 12421 fi
12415 12422
12416 if test "$with_nas_sound" != "no"; then 12423 if test "$with_nas_sound" != "no"; then
12417 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 12424 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12418 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 12425 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12419 echo "configure:12420: checking for audio/audiolib.h" >&5 12426 echo "configure:12427: checking for audio/audiolib.h" >&5
12420 12427
12421 cat > conftest.$ac_ext <<EOF 12428 cat > conftest.$ac_ext <<EOF
12422 #line 12423 "configure" 12429 #line 12430 "configure"
12423 #include "confdefs.h" 12430 #include "confdefs.h"
12424 #include <audio/audiolib.h> 12431 #include <audio/audiolib.h>
12425 EOF 12432 EOF
12426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12427 { (eval echo configure:12428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12434 { (eval echo configure:12435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12429 if test -z "$ac_err"; then 12436 if test -z "$ac_err"; then
12430 rm -rf conftest* 12437 rm -rf conftest*
12431 eval "ac_cv_header_$ac_safe=yes" 12438 eval "ac_cv_header_$ac_safe=yes"
12432 else 12439 else
12440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12441 echo "$ac_t""yes" 1>&6 12448 echo "$ac_t""yes" 1>&6
12442 12449
12443 12450
12444 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 12451 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12445 echo "configure:12446: checking for AuOpenServer in -laudio" >&5 12452 echo "configure:12453: checking for AuOpenServer in -laudio" >&5
12446 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 12453 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12447 12454
12448 xe_check_libs=" -laudio " 12455 xe_check_libs=" -laudio "
12449 cat > conftest.$ac_ext <<EOF 12456 cat > conftest.$ac_ext <<EOF
12450 #line 12451 "configure" 12457 #line 12458 "configure"
12451 #include "confdefs.h" 12458 #include "confdefs.h"
12452 /* Override any gcc2 internal prototype to avoid an error. */ 12459 /* Override any gcc2 internal prototype to avoid an error. */
12453 /* We use char because int might match the return type of a gcc2 12460 /* We use char because int might match the return type of a gcc2
12454 builtin and then its argument prototype would still apply. */ 12461 builtin and then its argument prototype would still apply. */
12455 char AuOpenServer(); 12462 char AuOpenServer();
12456 12463
12457 int main() { 12464 int main() {
12458 AuOpenServer() 12465 AuOpenServer()
12459 ; return 0; } 12466 ; return 0; }
12460 EOF 12467 EOF
12461 if { (eval echo configure:12462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12468 if { (eval echo configure:12469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12462 rm -rf conftest* 12469 rm -rf conftest*
12463 eval "ac_cv_lib_$ac_lib_var=yes" 12470 eval "ac_cv_lib_$ac_lib_var=yes"
12464 else 12471 else
12465 echo "configure: failed program was:" >&5 12472 echo "configure: failed program was:" >&5
12466 cat conftest.$ac_ext >&5 12473 cat conftest.$ac_ext >&5
12495 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 12502 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12496 echo " xemacs will be linked with \"nas.o\"" 12503 echo " xemacs will be linked with \"nas.o\""
12497 fi 12504 fi
12498 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 12505 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12499 cat > conftest.$ac_ext <<EOF 12506 cat > conftest.$ac_ext <<EOF
12500 #line 12501 "configure" 12507 #line 12508 "configure"
12501 #include "confdefs.h" 12508 #include "confdefs.h"
12502 #include <audio/Xtutil.h> 12509 #include <audio/Xtutil.h>
12503 EOF 12510 EOF
12504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12505 egrep "AuXtErrorJump" >/dev/null 2>&1; then 12512 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12526 12533
12527 if test "$with_esd_sound" != "no"; then 12534 if test "$with_esd_sound" != "no"; then
12528 # Extract the first word of "esd-config", so it can be a program name with args. 12535 # Extract the first word of "esd-config", so it can be a program name with args.
12529 set dummy esd-config; ac_word=$2 12536 set dummy esd-config; ac_word=$2
12530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 12537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12531 echo "configure:12532: checking for $ac_word" >&5 12538 echo "configure:12539: checking for $ac_word" >&5
12532 12539
12533 if test -n "$have_esd_config"; then 12540 if test -n "$have_esd_config"; then
12534 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 12541 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
12535 else 12542 else
12536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 12543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12555 if test "$have_esd_config" = "yes"; then 12562 if test "$have_esd_config" = "yes"; then
12556 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 12563 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
12557 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi 12564 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
12558 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 12565 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
12559 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 12566 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
12560 echo "configure:12561: checking for esd_play_stream" >&5 12567 echo "configure:12568: checking for esd_play_stream" >&5
12561 12568
12562 cat > conftest.$ac_ext <<EOF 12569 cat > conftest.$ac_ext <<EOF
12563 #line 12564 "configure" 12570 #line 12571 "configure"
12564 #include "confdefs.h" 12571 #include "confdefs.h"
12565 /* System header to define __stub macros and hopefully few prototypes, 12572 /* System header to define __stub macros and hopefully few prototypes,
12566 which can conflict with char esd_play_stream(); below. */ 12573 which can conflict with char esd_play_stream(); below. */
12567 #include <assert.h> 12574 #include <assert.h>
12568 /* Override any gcc2 internal prototype to avoid an error. */ 12575 /* Override any gcc2 internal prototype to avoid an error. */
12581 esd_play_stream(); 12588 esd_play_stream();
12582 #endif 12589 #endif
12583 12590
12584 ; return 0; } 12591 ; return 0; }
12585 EOF 12592 EOF
12586 if { (eval echo configure:12587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12593 if { (eval echo configure:12594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12587 rm -rf conftest* 12594 rm -rf conftest*
12588 eval "ac_cv_func_esd_play_stream=yes" 12595 eval "ac_cv_func_esd_play_stream=yes"
12589 else 12596 else
12590 echo "configure: failed program was:" >&5 12597 echo "configure: failed program was:" >&5
12591 cat conftest.$ac_ext >&5 12598 cat conftest.$ac_ext >&5
12632 12639
12633 test -z "$with_tty" && with_tty=yes 12640 test -z "$with_tty" && with_tty=yes
12634 12641
12635 if test "$with_tty" = "yes" ; then 12642 if test "$with_tty" = "yes" ; then
12636 echo "checking for TTY-related features" 1>&6 12643 echo "checking for TTY-related features" 1>&6
12637 echo "configure:12638: checking for TTY-related features" >&5 12644 echo "configure:12645: checking for TTY-related features" >&5
12638 { test "$extra_verbose" = "yes" && cat << \EOF 12645 { test "$extra_verbose" = "yes" && cat << \EOF
12639 Defining HAVE_TTY 12646 Defining HAVE_TTY
12640 EOF 12647 EOF
12641 cat >> confdefs.h <<\EOF 12648 cat >> confdefs.h <<\EOF
12642 #define HAVE_TTY 1 12649 #define HAVE_TTY 1
12648 fi 12655 fi
12649 12656
12650 if test -z "$with_ncurses"; then 12657 if test -z "$with_ncurses"; then
12651 12658
12652 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 12659 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12653 echo "configure:12654: checking for tgetent in -lncurses" >&5 12660 echo "configure:12661: checking for tgetent in -lncurses" >&5
12654 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 12661 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12655 12662
12656 xe_check_libs=" -lncurses " 12663 xe_check_libs=" -lncurses "
12657 cat > conftest.$ac_ext <<EOF 12664 cat > conftest.$ac_ext <<EOF
12658 #line 12659 "configure" 12665 #line 12666 "configure"
12659 #include "confdefs.h" 12666 #include "confdefs.h"
12660 /* Override any gcc2 internal prototype to avoid an error. */ 12667 /* Override any gcc2 internal prototype to avoid an error. */
12661 /* We use char because int might match the return type of a gcc2 12668 /* We use char because int might match the return type of a gcc2
12662 builtin and then its argument prototype would still apply. */ 12669 builtin and then its argument prototype would still apply. */
12663 char tgetent(); 12670 char tgetent();
12664 12671
12665 int main() { 12672 int main() {
12666 tgetent() 12673 tgetent()
12667 ; return 0; } 12674 ; return 0; }
12668 EOF 12675 EOF
12669 if { (eval echo configure:12670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12676 if { (eval echo configure:12677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12670 rm -rf conftest* 12677 rm -rf conftest*
12671 eval "ac_cv_lib_$ac_lib_var=yes" 12678 eval "ac_cv_lib_$ac_lib_var=yes"
12672 else 12679 else
12673 echo "configure: failed program was:" >&5 12680 echo "configure: failed program was:" >&5
12674 cat conftest.$ac_ext >&5 12681 cat conftest.$ac_ext >&5
12697 EOF 12704 EOF
12698 } 12705 }
12699 12706
12700 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 12707 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12701 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 12708 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12702 echo "configure:12703: checking for ncurses/curses.h" >&5 12709 echo "configure:12710: checking for ncurses/curses.h" >&5
12703 12710
12704 cat > conftest.$ac_ext <<EOF 12711 cat > conftest.$ac_ext <<EOF
12705 #line 12706 "configure" 12712 #line 12713 "configure"
12706 #include "confdefs.h" 12713 #include "confdefs.h"
12707 #include <ncurses/curses.h> 12714 #include <ncurses/curses.h>
12708 EOF 12715 EOF
12709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12710 { (eval echo configure:12711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12717 { (eval echo configure:12718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12712 if test -z "$ac_err"; then 12719 if test -z "$ac_err"; then
12713 rm -rf conftest* 12720 rm -rf conftest*
12714 eval "ac_cv_header_$ac_safe=yes" 12721 eval "ac_cv_header_$ac_safe=yes"
12715 else 12722 else
12727 echo "$ac_t""no" 1>&6 12734 echo "$ac_t""no" 1>&6
12728 fi 12735 fi
12729 12736
12730 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 12737 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12731 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 12738 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12732 echo "configure:12733: checking for ncurses/term.h" >&5 12739 echo "configure:12740: checking for ncurses/term.h" >&5
12733 12740
12734 cat > conftest.$ac_ext <<EOF 12741 cat > conftest.$ac_ext <<EOF
12735 #line 12736 "configure" 12742 #line 12743 "configure"
12736 #include "confdefs.h" 12743 #include "confdefs.h"
12737 #include <ncurses/term.h> 12744 #include <ncurses/term.h>
12738 EOF 12745 EOF
12739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12740 { (eval echo configure:12741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12747 { (eval echo configure:12748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12742 if test -z "$ac_err"; then 12749 if test -z "$ac_err"; then
12743 rm -rf conftest* 12750 rm -rf conftest*
12744 eval "ac_cv_header_$ac_safe=yes" 12751 eval "ac_cv_header_$ac_safe=yes"
12745 else 12752 else
12765 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 12772 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12766 save_c_switch_site="$c_switch_site" 12773 save_c_switch_site="$c_switch_site"
12767 c_switch_site="$c_switch_site -I/usr/include/ncurses" 12774 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12768 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 12775 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12769 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 12776 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12770 echo "configure:12771: checking for ncurses/curses.h" >&5 12777 echo "configure:12778: checking for ncurses/curses.h" >&5
12771 12778
12772 cat > conftest.$ac_ext <<EOF 12779 cat > conftest.$ac_ext <<EOF
12773 #line 12774 "configure" 12780 #line 12781 "configure"
12774 #include "confdefs.h" 12781 #include "confdefs.h"
12775 #include <ncurses/curses.h> 12782 #include <ncurses/curses.h>
12776 EOF 12783 EOF
12777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12778 { (eval echo configure:12779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12785 { (eval echo configure:12786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12780 if test -z "$ac_err"; then 12787 if test -z "$ac_err"; then
12781 rm -rf conftest* 12788 rm -rf conftest*
12782 eval "ac_cv_header_$ac_safe=yes" 12789 eval "ac_cv_header_$ac_safe=yes"
12783 else 12790 else
12808 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 12815 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12809 else 12816 else
12810 for lib in curses termlib termcap; do 12817 for lib in curses termlib termcap; do
12811 12818
12812 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 12819 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12813 echo "configure:12814: checking for tgetent in -l$lib" >&5 12820 echo "configure:12821: checking for tgetent in -l$lib" >&5
12814 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 12821 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12815 12822
12816 xe_check_libs=" -l$lib " 12823 xe_check_libs=" -l$lib "
12817 cat > conftest.$ac_ext <<EOF 12824 cat > conftest.$ac_ext <<EOF
12818 #line 12819 "configure" 12825 #line 12826 "configure"
12819 #include "confdefs.h" 12826 #include "confdefs.h"
12820 /* Override any gcc2 internal prototype to avoid an error. */ 12827 /* Override any gcc2 internal prototype to avoid an error. */
12821 /* We use char because int might match the return type of a gcc2 12828 /* We use char because int might match the return type of a gcc2
12822 builtin and then its argument prototype would still apply. */ 12829 builtin and then its argument prototype would still apply. */
12823 char tgetent(); 12830 char tgetent();
12824 12831
12825 int main() { 12832 int main() {
12826 tgetent() 12833 tgetent()
12827 ; return 0; } 12834 ; return 0; }
12828 EOF 12835 EOF
12829 if { (eval echo configure:12830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12836 if { (eval echo configure:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12830 rm -rf conftest* 12837 rm -rf conftest*
12831 eval "ac_cv_lib_$ac_lib_var=yes" 12838 eval "ac_cv_lib_$ac_lib_var=yes"
12832 else 12839 else
12833 echo "configure: failed program was:" >&5 12840 echo "configure: failed program was:" >&5
12834 cat conftest.$ac_ext >&5 12841 cat conftest.$ac_ext >&5
12855 if test -n "$libs_termcap"; then 12862 if test -n "$libs_termcap"; then
12856 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 12863 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12857 else 12864 else
12858 12865
12859 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 12866 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12860 echo "configure:12861: checking for tgetent in -lcurses" >&5 12867 echo "configure:12868: checking for tgetent in -lcurses" >&5
12861 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 12868 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12862 12869
12863 xe_check_libs=" -lcurses " 12870 xe_check_libs=" -lcurses "
12864 cat > conftest.$ac_ext <<EOF 12871 cat > conftest.$ac_ext <<EOF
12865 #line 12866 "configure" 12872 #line 12873 "configure"
12866 #include "confdefs.h" 12873 #include "confdefs.h"
12867 /* Override any gcc2 internal prototype to avoid an error. */ 12874 /* Override any gcc2 internal prototype to avoid an error. */
12868 /* We use char because int might match the return type of a gcc2 12875 /* We use char because int might match the return type of a gcc2
12869 builtin and then its argument prototype would still apply. */ 12876 builtin and then its argument prototype would still apply. */
12870 char tgetent(); 12877 char tgetent();
12871 12878
12872 int main() { 12879 int main() {
12873 tgetent() 12880 tgetent()
12874 ; return 0; } 12881 ; return 0; }
12875 EOF 12882 EOF
12876 if { (eval echo configure:12877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12883 if { (eval echo configure:12884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12877 rm -rf conftest* 12884 rm -rf conftest*
12878 eval "ac_cv_lib_$ac_lib_var=yes" 12885 eval "ac_cv_lib_$ac_lib_var=yes"
12879 else 12886 else
12880 echo "configure: failed program was:" >&5 12887 echo "configure: failed program was:" >&5
12881 cat conftest.$ac_ext >&5 12888 cat conftest.$ac_ext >&5
12889 echo "$ac_t""yes" 1>&6 12896 echo "$ac_t""yes" 1>&6
12890 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 12897 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12891 else 12898 else
12892 echo "$ac_t""no" 1>&6 12899 echo "$ac_t""no" 1>&6
12893 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 12900 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12894 echo "configure:12895: checking for tgetent in -ltermcap" >&5 12901 echo "configure:12902: checking for tgetent in -ltermcap" >&5
12895 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 12902 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12896 12903
12897 xe_check_libs=" -ltermcap " 12904 xe_check_libs=" -ltermcap "
12898 cat > conftest.$ac_ext <<EOF 12905 cat > conftest.$ac_ext <<EOF
12899 #line 12900 "configure" 12906 #line 12907 "configure"
12900 #include "confdefs.h" 12907 #include "confdefs.h"
12901 /* Override any gcc2 internal prototype to avoid an error. */ 12908 /* Override any gcc2 internal prototype to avoid an error. */
12902 /* We use char because int might match the return type of a gcc2 12909 /* We use char because int might match the return type of a gcc2
12903 builtin and then its argument prototype would still apply. */ 12910 builtin and then its argument prototype would still apply. */
12904 char tgetent(); 12911 char tgetent();
12905 12912
12906 int main() { 12913 int main() {
12907 tgetent() 12914 tgetent()
12908 ; return 0; } 12915 ; return 0; }
12909 EOF 12916 EOF
12910 if { (eval echo configure:12911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12917 if { (eval echo configure:12918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12911 rm -rf conftest* 12918 rm -rf conftest*
12912 eval "ac_cv_lib_$ac_lib_var=yes" 12919 eval "ac_cv_lib_$ac_lib_var=yes"
12913 else 12920 else
12914 echo "configure: failed program was:" >&5 12921 echo "configure: failed program was:" >&5
12915 cat conftest.$ac_ext >&5 12922 cat conftest.$ac_ext >&5
12953 } 12960 }
12954 12961
12955 12962
12956 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 12963 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
12957 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 12964 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
12958 echo "configure:12959: checking for gpm.h" >&5 12965 echo "configure:12966: checking for gpm.h" >&5
12959 12966
12960 cat > conftest.$ac_ext <<EOF 12967 cat > conftest.$ac_ext <<EOF
12961 #line 12962 "configure" 12968 #line 12969 "configure"
12962 #include "confdefs.h" 12969 #include "confdefs.h"
12963 #include <gpm.h> 12970 #include <gpm.h>
12964 EOF 12971 EOF
12965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12966 { (eval echo configure:12967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12973 { (eval echo configure:12974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12968 if test -z "$ac_err"; then 12975 if test -z "$ac_err"; then
12969 rm -rf conftest* 12976 rm -rf conftest*
12970 eval "ac_cv_header_$ac_safe=yes" 12977 eval "ac_cv_header_$ac_safe=yes"
12971 else 12978 else
12984 with_gpm=no 12991 with_gpm=no
12985 fi 12992 fi
12986 } 12993 }
12987 test -z "$with_gpm" && { 12994 test -z "$with_gpm" && {
12988 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 12995 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
12989 echo "configure:12990: checking for Gpm_Open in -lgpm" >&5 12996 echo "configure:12997: checking for Gpm_Open in -lgpm" >&5
12990 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 12997 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
12991 12998
12992 xe_check_libs=" -lgpm " 12999 xe_check_libs=" -lgpm "
12993 cat > conftest.$ac_ext <<EOF 13000 cat > conftest.$ac_ext <<EOF
12994 #line 12995 "configure" 13001 #line 13002 "configure"
12995 #include "confdefs.h" 13002 #include "confdefs.h"
12996 /* Override any gcc2 internal prototype to avoid an error. */ 13003 /* Override any gcc2 internal prototype to avoid an error. */
12997 /* We use char because int might match the return type of a gcc2 13004 /* We use char because int might match the return type of a gcc2
12998 builtin and then its argument prototype would still apply. */ 13005 builtin and then its argument prototype would still apply. */
12999 char Gpm_Open(); 13006 char Gpm_Open();
13000 13007
13001 int main() { 13008 int main() {
13002 Gpm_Open() 13009 Gpm_Open()
13003 ; return 0; } 13010 ; return 0; }
13004 EOF 13011 EOF
13005 if { (eval echo configure:13006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13012 if { (eval echo configure:13013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13006 rm -rf conftest* 13013 rm -rf conftest*
13007 eval "ac_cv_lib_$ac_lib_var=yes" 13014 eval "ac_cv_lib_$ac_lib_var=yes"
13008 else 13015 else
13009 echo "configure: failed program was:" >&5 13016 echo "configure: failed program was:" >&5
13010 cat conftest.$ac_ext >&5 13017 cat conftest.$ac_ext >&5
13050 fi 13057 fi
13051 13058
13052 13059
13053 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 13060 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13054 != "no no no" && echo "checking for database support" 1>&6 13061 != "no no no" && echo "checking for database support" 1>&6
13055 echo "configure:13056: checking for database support" >&5 13062 echo "configure:13063: checking for database support" >&5
13056 13063
13057 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 13064 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13058 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 13065 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13059 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 13066 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13060 echo "configure:13061: checking for ndbm.h" >&5 13067 echo "configure:13068: checking for ndbm.h" >&5
13061 13068
13062 cat > conftest.$ac_ext <<EOF 13069 cat > conftest.$ac_ext <<EOF
13063 #line 13064 "configure" 13070 #line 13071 "configure"
13064 #include "confdefs.h" 13071 #include "confdefs.h"
13065 #include <ndbm.h> 13072 #include <ndbm.h>
13066 EOF 13073 EOF
13067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13068 { (eval echo configure:13069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13075 { (eval echo configure:13076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13070 if test -z "$ac_err"; then 13077 if test -z "$ac_err"; then
13071 rm -rf conftest* 13078 rm -rf conftest*
13072 eval "ac_cv_header_$ac_safe=yes" 13079 eval "ac_cv_header_$ac_safe=yes"
13073 else 13080 else
13093 fi 13100 fi
13094 13101
13095 if test "$with_database_gdbm" != "no"; then 13102 if test "$with_database_gdbm" != "no"; then
13096 13103
13097 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 13104 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13098 echo "configure:13099: checking for dbm_open in -lgdbm" >&5 13105 echo "configure:13106: checking for dbm_open in -lgdbm" >&5
13099 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 13106 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13100 13107
13101 xe_check_libs=" -lgdbm " 13108 xe_check_libs=" -lgdbm "
13102 cat > conftest.$ac_ext <<EOF 13109 cat > conftest.$ac_ext <<EOF
13103 #line 13104 "configure" 13110 #line 13111 "configure"
13104 #include "confdefs.h" 13111 #include "confdefs.h"
13105 /* Override any gcc2 internal prototype to avoid an error. */ 13112 /* Override any gcc2 internal prototype to avoid an error. */
13106 /* We use char because int might match the return type of a gcc2 13113 /* We use char because int might match the return type of a gcc2
13107 builtin and then its argument prototype would still apply. */ 13114 builtin and then its argument prototype would still apply. */
13108 char dbm_open(); 13115 char dbm_open();
13109 13116
13110 int main() { 13117 int main() {
13111 dbm_open() 13118 dbm_open()
13112 ; return 0; } 13119 ; return 0; }
13113 EOF 13120 EOF
13114 if { (eval echo configure:13115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13121 if { (eval echo configure:13122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13115 rm -rf conftest* 13122 rm -rf conftest*
13116 eval "ac_cv_lib_$ac_lib_var=yes" 13123 eval "ac_cv_lib_$ac_lib_var=yes"
13117 else 13124 else
13118 echo "configure: failed program was:" >&5 13125 echo "configure: failed program was:" >&5
13119 cat conftest.$ac_ext >&5 13126 cat conftest.$ac_ext >&5
13137 13144
13138 fi 13145 fi
13139 13146
13140 if test "$with_database_dbm" != "no"; then 13147 if test "$with_database_dbm" != "no"; then
13141 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 13148 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13142 echo "configure:13143: checking for dbm_open" >&5 13149 echo "configure:13150: checking for dbm_open" >&5
13143 13150
13144 cat > conftest.$ac_ext <<EOF 13151 cat > conftest.$ac_ext <<EOF
13145 #line 13146 "configure" 13152 #line 13153 "configure"
13146 #include "confdefs.h" 13153 #include "confdefs.h"
13147 /* System header to define __stub macros and hopefully few prototypes, 13154 /* System header to define __stub macros and hopefully few prototypes,
13148 which can conflict with char dbm_open(); below. */ 13155 which can conflict with char dbm_open(); below. */
13149 #include <assert.h> 13156 #include <assert.h>
13150 /* Override any gcc2 internal prototype to avoid an error. */ 13157 /* Override any gcc2 internal prototype to avoid an error. */
13163 dbm_open(); 13170 dbm_open();
13164 #endif 13171 #endif
13165 13172
13166 ; return 0; } 13173 ; return 0; }
13167 EOF 13174 EOF
13168 if { (eval echo configure:13169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13169 rm -rf conftest* 13176 rm -rf conftest*
13170 eval "ac_cv_func_dbm_open=yes" 13177 eval "ac_cv_func_dbm_open=yes"
13171 else 13178 else
13172 echo "configure: failed program was:" >&5 13179 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5 13180 cat conftest.$ac_ext >&5
13182 else 13189 else
13183 echo "$ac_t""no" 1>&6 13190 echo "$ac_t""no" 1>&6
13184 13191
13185 13192
13186 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 13193 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13187 echo "configure:13188: checking for dbm_open in -ldbm" >&5 13194 echo "configure:13195: checking for dbm_open in -ldbm" >&5
13188 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 13195 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13189 13196
13190 xe_check_libs=" -ldbm " 13197 xe_check_libs=" -ldbm "
13191 cat > conftest.$ac_ext <<EOF 13198 cat > conftest.$ac_ext <<EOF
13192 #line 13193 "configure" 13199 #line 13200 "configure"
13193 #include "confdefs.h" 13200 #include "confdefs.h"
13194 /* Override any gcc2 internal prototype to avoid an error. */ 13201 /* Override any gcc2 internal prototype to avoid an error. */
13195 /* We use char because int might match the return type of a gcc2 13202 /* We use char because int might match the return type of a gcc2
13196 builtin and then its argument prototype would still apply. */ 13203 builtin and then its argument prototype would still apply. */
13197 char dbm_open(); 13204 char dbm_open();
13198 13205
13199 int main() { 13206 int main() {
13200 dbm_open() 13207 dbm_open()
13201 ; return 0; } 13208 ; return 0; }
13202 EOF 13209 EOF
13203 if { (eval echo configure:13204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13210 if { (eval echo configure:13211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13204 rm -rf conftest* 13211 rm -rf conftest*
13205 eval "ac_cv_lib_$ac_lib_var=yes" 13212 eval "ac_cv_lib_$ac_lib_var=yes"
13206 else 13213 else
13207 echo "configure: failed program was:" >&5 13214 echo "configure: failed program was:" >&5
13208 cat conftest.$ac_ext >&5 13215 cat conftest.$ac_ext >&5
13239 } 13246 }
13240 13247
13241 13248
13242 if test "$with_database_berkdb" != "no"; then 13249 if test "$with_database_berkdb" != "no"; then
13243 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 13250 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13244 echo "configure:13245: checking for Berkeley db.h" >&5 13251 echo "configure:13252: checking for Berkeley db.h" >&5
13245 for header in "db/db.h" "db.h"; do 13252 for header in "db/db.h" "db.h"; do
13246 cat > conftest.$ac_ext <<EOF 13253 cat > conftest.$ac_ext <<EOF
13247 #line 13248 "configure" 13254 #line 13255 "configure"
13248 #include "confdefs.h" 13255 #include "confdefs.h"
13249 13256
13250 #include <stdlib.h> 13257 #include <stdlib.h>
13251 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 13258 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13252 #ifdef HAVE_INTTYPES_H 13259 #ifdef HAVE_INTTYPES_H
13264 13271
13265 int main() { 13272 int main() {
13266 13273
13267 ; return 0; } 13274 ; return 0; }
13268 EOF 13275 EOF
13269 if { (eval echo configure:13270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13276 if { (eval echo configure:13277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13270 rm -rf conftest* 13277 rm -rf conftest*
13271 db_h_file="$header"; break 13278 db_h_file="$header"; break
13272 else 13279 else
13273 echo "configure: failed program was:" >&5 13280 echo "configure: failed program was:" >&5
13274 cat conftest.$ac_ext >&5 13281 cat conftest.$ac_ext >&5
13280 else echo "$ac_t""$db_h_file" 1>&6 13287 else echo "$ac_t""$db_h_file" 1>&6
13281 fi 13288 fi
13282 13289
13283 if test "$with_database_berkdb" != "no"; then 13290 if test "$with_database_berkdb" != "no"; then
13284 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 13291 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13285 echo "configure:13286: checking for Berkeley DB version" >&5 13292 echo "configure:13293: checking for Berkeley DB version" >&5
13286 cat > conftest.$ac_ext <<EOF 13293 cat > conftest.$ac_ext <<EOF
13287 #line 13288 "configure" 13294 #line 13295 "configure"
13288 #include "confdefs.h" 13295 #include "confdefs.h"
13289 #include <$db_h_file> 13296 #include <$db_h_file>
13290 #if DB_VERSION_MAJOR > 1 13297 #if DB_VERSION_MAJOR > 1
13291 yes 13298 yes
13292 #endif 13299 #endif
13294 EOF 13301 EOF
13295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13296 egrep "yes" >/dev/null 2>&1; then 13303 egrep "yes" >/dev/null 2>&1; then
13297 rm -rf conftest* 13304 rm -rf conftest*
13298 cat > conftest.$ac_ext <<EOF 13305 cat > conftest.$ac_ext <<EOF
13299 #line 13300 "configure" 13306 #line 13307 "configure"
13300 #include "confdefs.h" 13307 #include "confdefs.h"
13301 #include <$db_h_file> 13308 #include <$db_h_file>
13302 #if DB_VERSION_MAJOR > 2 13309 #if DB_VERSION_MAJOR > 2
13303 yes 13310 yes
13304 #endif 13311 #endif
13321 echo "$ac_t""1" 1>&6; dbfunc=dbopen 13328 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13322 fi 13329 fi
13323 rm -f conftest* 13330 rm -f conftest*
13324 13331
13325 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 13332 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13326 echo "configure:13327: checking for $dbfunc" >&5 13333 echo "configure:13334: checking for $dbfunc" >&5
13327 13334
13328 cat > conftest.$ac_ext <<EOF 13335 cat > conftest.$ac_ext <<EOF
13329 #line 13330 "configure" 13336 #line 13337 "configure"
13330 #include "confdefs.h" 13337 #include "confdefs.h"
13331 /* System header to define __stub macros and hopefully few prototypes, 13338 /* System header to define __stub macros and hopefully few prototypes,
13332 which can conflict with char $dbfunc(); below. */ 13339 which can conflict with char $dbfunc(); below. */
13333 #include <assert.h> 13340 #include <assert.h>
13334 /* Override any gcc2 internal prototype to avoid an error. */ 13341 /* Override any gcc2 internal prototype to avoid an error. */
13347 $dbfunc(); 13354 $dbfunc();
13348 #endif 13355 #endif
13349 13356
13350 ; return 0; } 13357 ; return 0; }
13351 EOF 13358 EOF
13352 if { (eval echo configure:13353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13359 if { (eval echo configure:13360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13353 rm -rf conftest* 13360 rm -rf conftest*
13354 eval "ac_cv_func_$dbfunc=yes" 13361 eval "ac_cv_func_$dbfunc=yes"
13355 else 13362 else
13356 echo "configure: failed program was:" >&5 13363 echo "configure: failed program was:" >&5
13357 cat conftest.$ac_ext >&5 13364 cat conftest.$ac_ext >&5
13366 else 13373 else
13367 echo "$ac_t""no" 1>&6 13374 echo "$ac_t""no" 1>&6
13368 13375
13369 13376
13370 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 13377 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13371 echo "configure:13372: checking for $dbfunc in -ldb" >&5 13378 echo "configure:13379: checking for $dbfunc in -ldb" >&5
13372 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 13379 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13373 13380
13374 xe_check_libs=" -ldb " 13381 xe_check_libs=" -ldb "
13375 cat > conftest.$ac_ext <<EOF 13382 cat > conftest.$ac_ext <<EOF
13376 #line 13377 "configure" 13383 #line 13384 "configure"
13377 #include "confdefs.h" 13384 #include "confdefs.h"
13378 /* Override any gcc2 internal prototype to avoid an error. */ 13385 /* Override any gcc2 internal prototype to avoid an error. */
13379 /* We use char because int might match the return type of a gcc2 13386 /* We use char because int might match the return type of a gcc2
13380 builtin and then its argument prototype would still apply. */ 13387 builtin and then its argument prototype would still apply. */
13381 char $dbfunc(); 13388 char $dbfunc();
13382 13389
13383 int main() { 13390 int main() {
13384 $dbfunc() 13391 $dbfunc()
13385 ; return 0; } 13392 ; return 0; }
13386 EOF 13393 EOF
13387 if { (eval echo configure:13388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13394 if { (eval echo configure:13395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13388 rm -rf conftest* 13395 rm -rf conftest*
13389 eval "ac_cv_lib_$ac_lib_var=yes" 13396 eval "ac_cv_lib_$ac_lib_var=yes"
13390 else 13397 else
13391 echo "configure: failed program was:" >&5 13398 echo "configure: failed program was:" >&5
13392 cat conftest.$ac_ext >&5 13399 cat conftest.$ac_ext >&5
13446 fi 13453 fi
13447 13454
13448 if test "$with_socks" = "yes"; then 13455 if test "$with_socks" = "yes"; then
13449 13456
13450 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 13457 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13451 echo "configure:13452: checking for SOCKSinit in -lsocks" >&5 13458 echo "configure:13459: checking for SOCKSinit in -lsocks" >&5
13452 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 13459 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13453 13460
13454 xe_check_libs=" -lsocks " 13461 xe_check_libs=" -lsocks "
13455 cat > conftest.$ac_ext <<EOF 13462 cat > conftest.$ac_ext <<EOF
13456 #line 13457 "configure" 13463 #line 13464 "configure"
13457 #include "confdefs.h" 13464 #include "confdefs.h"
13458 /* Override any gcc2 internal prototype to avoid an error. */ 13465 /* Override any gcc2 internal prototype to avoid an error. */
13459 /* We use char because int might match the return type of a gcc2 13466 /* We use char because int might match the return type of a gcc2
13460 builtin and then its argument prototype would still apply. */ 13467 builtin and then its argument prototype would still apply. */
13461 char SOCKSinit(); 13468 char SOCKSinit();
13462 13469
13463 int main() { 13470 int main() {
13464 SOCKSinit() 13471 SOCKSinit()
13465 ; return 0; } 13472 ; return 0; }
13466 EOF 13473 EOF
13467 if { (eval echo configure:13468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13474 if { (eval echo configure:13475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13468 rm -rf conftest* 13475 rm -rf conftest*
13469 eval "ac_cv_lib_$ac_lib_var=yes" 13476 eval "ac_cv_lib_$ac_lib_var=yes"
13470 else 13477 else
13471 echo "configure: failed program was:" >&5 13478 echo "configure: failed program was:" >&5
13472 cat conftest.$ac_ext >&5 13479 cat conftest.$ac_ext >&5
13517 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 13524 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
13518 fi 13525 fi
13519 13526
13520 if test "$with_modules" != "no"; then 13527 if test "$with_modules" != "no"; then
13521 echo "checking for module support" 1>&6 13528 echo "checking for module support" 1>&6
13522 echo "configure:13523: checking for module support" >&5 13529 echo "configure:13530: checking for module support" >&5
13523 13530
13524 if test "$with_msw" = "yes"; then 13531 if test "$with_msw" = "yes"; then
13525 have_dl=yes; 13532 have_dl=yes;
13526 else 13533 else
13527 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 13534 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
13528 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 13535 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
13529 echo "configure:13530: checking for dlfcn.h" >&5 13536 echo "configure:13537: checking for dlfcn.h" >&5
13530 13537
13531 cat > conftest.$ac_ext <<EOF 13538 cat > conftest.$ac_ext <<EOF
13532 #line 13533 "configure" 13539 #line 13540 "configure"
13533 #include "confdefs.h" 13540 #include "confdefs.h"
13534 #include <dlfcn.h> 13541 #include <dlfcn.h>
13535 EOF 13542 EOF
13536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13537 { (eval echo configure:13538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13544 { (eval echo configure:13545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13539 if test -z "$ac_err"; then 13546 if test -z "$ac_err"; then
13540 rm -rf conftest* 13547 rm -rf conftest*
13541 eval "ac_cv_header_$ac_safe=yes" 13548 eval "ac_cv_header_$ac_safe=yes"
13542 else 13549 else
13548 fi 13555 fi
13549 rm -f conftest* 13556 rm -f conftest*
13550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13551 echo "$ac_t""yes" 1>&6 13558 echo "$ac_t""yes" 1>&6
13552 13559
13553 13560 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13554 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 13561 echo "configure:13562: checking for dlopen in -lc" >&5
13555 echo "configure:13556: checking for dlopen in -ldl" >&5 13562 cat > conftest.$ac_ext <<EOF
13556 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 13563 #line 13564 "configure"
13557 13564 #include "confdefs.h"
13558 xe_check_libs=" -ldl " 13565 #include <dlfcn.h>
13559 cat > conftest.$ac_ext <<EOF
13560 #line 13561 "configure"
13561 #include "confdefs.h"
13562 /* Override any gcc2 internal prototype to avoid an error. */
13563 /* We use char because int might match the return type of a gcc2
13564 builtin and then its argument prototype would still apply. */
13565 char dlopen();
13566
13567 int main() { 13566 int main() {
13568 dlopen() 13567 dlopen ("", 0);
13569 ; return 0; } 13568 ; return 0; }
13570 EOF 13569 EOF
13571 if { (eval echo configure:13572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13570 if { (eval echo configure:13571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13572 rm -rf conftest* 13571 rm -rf conftest*
13573 eval "ac_cv_lib_$ac_lib_var=yes" 13572 have_dl=yes
13574 else 13573 else
13575 echo "configure: failed program was:" >&5 13574 echo "configure: failed program was:" >&5
13576 cat conftest.$ac_ext >&5 13575 cat conftest.$ac_ext >&5
13577 rm -rf conftest* 13576 rm -rf conftest*
13578 eval "ac_cv_lib_$ac_lib_var=no" 13577
13579 fi 13578 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
13580 rm -f conftest* 13579 echo "configure:13580: checking for dlopen in -ldl" >&5
13581 xe_check_libs="" 13580 ac_save_LIBS="$LIBS"
13582 13581 LIBS="-ldl $LIBS"
13583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 13582 cat > conftest.$ac_ext <<EOF
13584 echo "$ac_t""yes" 1>&6 13583 #line 13584 "configure"
13585 have_dl=yes libdl=dl 13584 #include "confdefs.h"
13586 else 13585 #include <dlfcn.h>
13587 echo "$ac_t""no" 1>&6
13588
13589 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13590 echo "configure:13591: checking for dlopen in -lc" >&5
13591 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
13592
13593 xe_check_libs=" -lc "
13594 cat > conftest.$ac_ext <<EOF
13595 #line 13596 "configure"
13596 #include "confdefs.h"
13597 /* Override any gcc2 internal prototype to avoid an error. */
13598 /* We use char because int might match the return type of a gcc2
13599 builtin and then its argument prototype would still apply. */
13600 char dlopen();
13601
13602 int main() { 13586 int main() {
13603 dlopen() 13587 dlopen ("", 0);
13604 ; return 0; } 13588 ; return 0; }
13605 EOF 13589 EOF
13606 if { (eval echo configure:13607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13590 if { (eval echo configure:13591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13607 rm -rf conftest* 13591 rm -rf conftest*
13608 eval "ac_cv_lib_$ac_lib_var=yes" 13592 have_dl=yes
13609 else 13593 else
13610 echo "configure: failed program was:" >&5 13594 echo "configure: failed program was:" >&5
13611 cat conftest.$ac_ext >&5 13595 cat conftest.$ac_ext >&5
13612 rm -rf conftest* 13596 rm -rf conftest*
13613 eval "ac_cv_lib_$ac_lib_var=no" 13597 LIBS="$ac_save_LIBS"
13614 fi 13598 fi
13615 rm -f conftest* 13599 rm -f conftest*
13616 xe_check_libs="" 13600 ac_save_LIBS=
13617 13601 fi
13618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 13602 rm -f conftest*
13619 echo "$ac_t""yes" 1>&6
13620 have_dl=yes
13621 else
13622 echo "$ac_t""no" 1>&6
13623 fi
13624
13625
13626 fi
13627
13628
13629 else 13603 else
13630 echo "$ac_t""no" 1>&6 13604 echo "$ac_t""no" 1>&6
13631 fi 13605 fi
13632 13606
13633 if test -n "$have_dl"; then 13607 if test -n "$have_dl"; then
13640 } 13614 }
13641 13615
13642 else 13616 else
13643 13617
13644 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 13618 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
13645 echo "configure:13646: checking for shl_load in -ldld" >&5 13619 echo "configure:13620: checking for shl_load in -ldld" >&5
13646 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 13620 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13647 13621
13648 xe_check_libs=" -ldld " 13622 xe_check_libs=" -ldld "
13649 cat > conftest.$ac_ext <<EOF 13623 cat > conftest.$ac_ext <<EOF
13650 #line 13651 "configure" 13624 #line 13625 "configure"
13651 #include "confdefs.h" 13625 #include "confdefs.h"
13652 /* Override any gcc2 internal prototype to avoid an error. */ 13626 /* Override any gcc2 internal prototype to avoid an error. */
13653 /* We use char because int might match the return type of a gcc2 13627 /* We use char because int might match the return type of a gcc2
13654 builtin and then its argument prototype would still apply. */ 13628 builtin and then its argument prototype would still apply. */
13655 char shl_load(); 13629 char shl_load();
13656 13630
13657 int main() { 13631 int main() {
13658 shl_load() 13632 shl_load()
13659 ; return 0; } 13633 ; return 0; }
13660 EOF 13634 EOF
13661 if { (eval echo configure:13662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13635 if { (eval echo configure:13636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13662 rm -rf conftest* 13636 rm -rf conftest*
13663 eval "ac_cv_lib_$ac_lib_var=yes" 13637 eval "ac_cv_lib_$ac_lib_var=yes"
13664 else 13638 else
13665 echo "configure: failed program was:" >&5 13639 echo "configure: failed program was:" >&5
13666 cat conftest.$ac_ext >&5 13640 cat conftest.$ac_ext >&5
13683 13657
13684 else 13658 else
13685 echo "$ac_t""no" 1>&6 13659 echo "$ac_t""no" 1>&6
13686 13660
13687 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 13661 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13688 echo "configure:13689: checking for dld_init in -ldld" >&5 13662 echo "configure:13663: checking for dld_init in -ldld" >&5
13689 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 13663 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13690 13664
13691 xe_check_libs=" -ldld " 13665 xe_check_libs=" -ldld "
13692 cat > conftest.$ac_ext <<EOF 13666 cat > conftest.$ac_ext <<EOF
13693 #line 13694 "configure" 13667 #line 13668 "configure"
13694 #include "confdefs.h" 13668 #include "confdefs.h"
13695 /* Override any gcc2 internal prototype to avoid an error. */ 13669 /* Override any gcc2 internal prototype to avoid an error. */
13696 /* We use char because int might match the return type of a gcc2 13670 /* We use char because int might match the return type of a gcc2
13697 builtin and then its argument prototype would still apply. */ 13671 builtin and then its argument prototype would still apply. */
13698 char dld_init(); 13672 char dld_init();
13699 13673
13700 int main() { 13674 int main() {
13701 dld_init() 13675 dld_init()
13702 ; return 0; } 13676 ; return 0; }
13703 EOF 13677 EOF
13704 if { (eval echo configure:13705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13678 if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13705 rm -rf conftest* 13679 rm -rf conftest*
13706 eval "ac_cv_lib_$ac_lib_var=yes" 13680 eval "ac_cv_lib_$ac_lib_var=yes"
13707 else 13681 else
13708 echo "configure: failed program was:" >&5 13682 echo "configure: failed program was:" >&5
13709 cat conftest.$ac_ext >&5 13683 cat conftest.$ac_ext >&5
13744 ld_dynamic_link_flags= 13718 ld_dynamic_link_flags=
13745 xehost=$canonical 13719 xehost=$canonical
13746 xealias=$internal_configuration 13720 xealias=$internal_configuration
13747 13721
13748 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 13722 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13749 echo "configure:13750: checking how to build dynamic libraries for ${xehost}" >&5 13723 echo "configure:13724: checking how to build dynamic libraries for ${xehost}" >&5
13750 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 13724 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13751 case "$xehost" in 13725 case "$xehost" in
13752 *-*-linux-gnu*) ;; 13726 *-*-linux-gnu*) ;;
13753 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 13727 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13754 esac 13728 esac
13772 # Now see if the compiler is really GCC. 13746 # Now see if the compiler is really GCC.
13773 if test "$GCC" = "yes"; then 13747 if test "$GCC" = "yes"; then
13774 XEGCC=yes 13748 XEGCC=yes
13775 else 13749 else
13776 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 13750 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13777 echo "configure:13778: checking checking whether we are using GNU C" >&5 13751 echo "configure:13752: checking checking whether we are using GNU C" >&5
13778 cat > conftest.$ac_ext <<EOF 13752 cat > conftest.$ac_ext <<EOF
13779 #line 13780 "configure" 13753 #line 13754 "configure"
13780 #include "confdefs.h" 13754 #include "confdefs.h"
13781 13755
13782 #ifdef __GNUC__ 13756 #ifdef __GNUC__
13783 yes; 13757 yes;
13784 #endif 13758 #endif
13796 13770
13797 echo "$ac_t""${XEGCC}" 1>&6 13771 echo "$ac_t""${XEGCC}" 1>&6
13798 fi 13772 fi
13799 13773
13800 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 13774 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13801 echo "configure:13802: checking how to produce PIC code" >&5 13775 echo "configure:13776: checking how to produce PIC code" >&5
13802 wl= 13776 wl=
13803 13777
13804 can_build_shared=yes 13778 can_build_shared=yes
13805 if test "$XEGCC" = yes; then 13779 if test "$XEGCC" = yes; then
13806 wl='-Wl,' 13780 wl='-Wl,'
13892 if test -n "$dll_cflags"; then 13866 if test -n "$dll_cflags"; then
13893 echo "$ac_t""${dll_cflags}" 1>&6 13867 echo "$ac_t""${dll_cflags}" 1>&6
13894 13868
13895 # Check to make sure the dll_cflags actually works. 13869 # Check to make sure the dll_cflags actually works.
13896 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 13870 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13897 echo "configure:13898: checking if PIC flag ${dll_cflags} really works" >&5 13871 echo "configure:13872: checking if PIC flag ${dll_cflags} really works" >&5
13898 save_CFLAGS="$CFLAGS" 13872 save_CFLAGS="$CFLAGS"
13899 CFLAGS="$CFLAGS $dll_cflags -DPIC" 13873 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13900 cat > conftest.$ac_ext <<EOF 13874 cat > conftest.$ac_ext <<EOF
13901 #line 13902 "configure" 13875 #line 13876 "configure"
13902 #include "confdefs.h" 13876 #include "confdefs.h"
13903 13877
13904 int main() { 13878 int main() {
13905 int x=0; 13879 int x=0;
13906 ; return 0; } 13880 ; return 0; }
13907 EOF 13881 EOF
13908 if { (eval echo configure:13909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13882 if { (eval echo configure:13883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13909 rm -rf conftest* 13883 rm -rf conftest*
13910 13884
13911 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 13885 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13912 # reports no error. So, we need to grep stderr for (Bundled). 13886 # reports no error. So, we need to grep stderr for (Bundled).
13913 if grep '(Bundled)' config.log >/dev/null; then 13887 if grep '(Bundled)' config.log >/dev/null; then
13934 if test "$can_build_shared" = "yes"; then 13908 if test "$can_build_shared" = "yes"; then
13935 cc_produces_so=no 13909 cc_produces_so=no
13936 xldf= 13910 xldf=
13937 xcldf= 13911 xcldf=
13938 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 13912 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13939 echo "configure:13940: checking if C compiler can produce shared libraries" >&5 13913 echo "configure:13914: checking if C compiler can produce shared libraries" >&5
13940 if test "$XEGCC" = yes; then 13914 if test "$XEGCC" = yes; then
13941 xcldf="-shared" 13915 xcldf="-shared"
13942 xldf="-shared" 13916 xldf="-shared"
13943 else # Not using GCC 13917 else # Not using GCC
13944 case "$xehost_os" in 13918 case "$xehost_os" in
13985 LDFLAGS="$xcldf $LDFLAGS" 13959 LDFLAGS="$xcldf $LDFLAGS"
13986 LIBS= 13960 LIBS=
13987 xe_libs= 13961 xe_libs=
13988 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 13962 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13989 cat > conftest.$ac_ext <<EOF 13963 cat > conftest.$ac_ext <<EOF
13990 #line 13991 "configure" 13964 #line 13965 "configure"
13991 #include "confdefs.h" 13965 #include "confdefs.h"
13992 13966
13993 int main() { 13967 int main() {
13994 int x=0; 13968 int x=0;
13995 ; return 0; } 13969 ; return 0; }
13996 EOF 13970 EOF
13997 if { (eval echo configure:13998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13971 if { (eval echo configure:13972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13998 rm -rf conftest* 13972 rm -rf conftest*
13999 cc_produces_so=yes 13973 cc_produces_so=yes
14000 else 13974 else
14001 echo "configure: failed program was:" >&5 13975 echo "configure: failed program was:" >&5
14002 cat conftest.$ac_ext >&5 13976 cat conftest.$ac_ext >&5
14017 if test -z "$LTLD"; then 13991 if test -z "$LTLD"; then
14018 ac_prog=ld 13992 ac_prog=ld
14019 if test "$XEGCC" = yes; then 13993 if test "$XEGCC" = yes; then
14020 # Check if gcc -print-prog-name=ld gives a path. 13994 # Check if gcc -print-prog-name=ld gives a path.
14021 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 13995 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14022 echo "configure:14023: checking for ld used by GCC" >&5 13996 echo "configure:13997: checking for ld used by GCC" >&5
14023 ac_prog=`($CC -print-prog-name=ld) 2>&5` 13997 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14024 case "$ac_prog" in 13998 case "$ac_prog" in
14025 # Accept absolute paths. 13999 # Accept absolute paths.
14026 /*) 14000 /*)
14027 if test -z "$LTLD"; then 14001 if test -z "$LTLD"; then
14042 with_gnu_ld=unknown 14016 with_gnu_ld=unknown
14043 ;; 14017 ;;
14044 esac 14018 esac
14045 else 14019 else
14046 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 14020 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14047 echo "configure:14048: checking for GNU ld" >&5 14021 echo "configure:14022: checking for GNU ld" >&5
14048 fi 14022 fi
14049 14023
14050 if test -z "$LTLD"; then 14024 if test -z "$LTLD"; then
14051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 14025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14052 for ac_dir in $PATH; do 14026 for ac_dir in $PATH; do
14080 14054
14081 ld_dynamic_link_flags= 14055 ld_dynamic_link_flags=
14082 14056
14083 # Check to see if it really is or isn't GNU ld. 14057 # Check to see if it really is or isn't GNU ld.
14084 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 14058 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14085 echo "configure:14086: checking if the linker is GNU ld" >&5 14059 echo "configure:14060: checking if the linker is GNU ld" >&5
14086 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 14060 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14087 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 14061 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14088 xe_gnu_ld=yes 14062 xe_gnu_ld=yes
14089 else 14063 else
14090 xe_gnu_ld=no 14064 xe_gnu_ld=no
14108 ld_shlibs=yes 14082 ld_shlibs=yes
14109 else 14083 else
14110 # OK - only NOW do we futz about with ld. 14084 # OK - only NOW do we futz about with ld.
14111 # See if the linker supports building shared libraries. 14085 # See if the linker supports building shared libraries.
14112 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 14086 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14113 echo "configure:14114: checking whether the linker supports shared libraries" >&5 14087 echo "configure:14088: checking whether the linker supports shared libraries" >&5
14114 dll_ld=$CC 14088 dll_ld=$CC
14115 dll_ldflags=$LDFLAGS 14089 dll_ldflags=$LDFLAGS
14116 ld_shlibs=yes 14090 ld_shlibs=yes
14117 can_build_shared=yes 14091 can_build_shared=yes
14118 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 14092 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14323 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 14297 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14324 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 14298 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14325 for ac_func in dlerror _dlerror 14299 for ac_func in dlerror _dlerror
14326 do 14300 do
14327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14328 echo "configure:14329: checking for $ac_func" >&5 14302 echo "configure:14303: checking for $ac_func" >&5
14329 14303
14330 cat > conftest.$ac_ext <<EOF 14304 cat > conftest.$ac_ext <<EOF
14331 #line 14332 "configure" 14305 #line 14306 "configure"
14332 #include "confdefs.h" 14306 #include "confdefs.h"
14333 /* System header to define __stub macros and hopefully few prototypes, 14307 /* System header to define __stub macros and hopefully few prototypes,
14334 which can conflict with char $ac_func(); below. */ 14308 which can conflict with char $ac_func(); below. */
14335 #include <assert.h> 14309 #include <assert.h>
14336 /* Override any gcc2 internal prototype to avoid an error. */ 14310 /* Override any gcc2 internal prototype to avoid an error. */
14349 $ac_func(); 14323 $ac_func();
14350 #endif 14324 #endif
14351 14325
14352 ; return 0; } 14326 ; return 0; }
14353 EOF 14327 EOF
14354 if { (eval echo configure:14355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14328 if { (eval echo configure:14329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14355 rm -rf conftest* 14329 rm -rf conftest*
14356 eval "ac_cv_func_$ac_func=yes" 14330 eval "ac_cv_func_$ac_func=yes"
14357 else 14331 else
14358 echo "configure: failed program was:" >&5 14332 echo "configure: failed program was:" >&5
14359 cat conftest.$ac_ext >&5 14333 cat conftest.$ac_ext >&5
14388 with_modules=no 14362 with_modules=no
14389 fi 14363 fi
14390 fi 14364 fi
14391 14365
14392 cat > conftest.$ac_ext <<EOF 14366 cat > conftest.$ac_ext <<EOF
14393 #line 14394 "configure" 14367 #line 14368 "configure"
14394 #include "confdefs.h" 14368 #include "confdefs.h"
14395 int main(int c,char *v[]){return 0;} 14369 int main(int c,char *v[]){return 0;}
14396 EOF 14370 EOF
14397 if { (eval echo configure:14398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 14371 if { (eval echo configure:14372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14398 then 14372 then
14399 : 14373 :
14400 else 14374 else
14401 conftest_rc="$?" 14375 conftest_rc="$?"
14402 echo "configure: failed program was:" >&5 14376 echo "configure: failed program was:" >&5
14559 for dir in $MAKE_SUBDIR; do echo "import $dir"; done 14533 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
14560 ) > .sbinit 14534 ) > .sbinit
14561 fi 14535 fi
14562 14536
14563 rm -f core 14537 rm -f core
14538
14564 14539
14565 14540
14566 14541
14567 14542
14568 14543
15320 s%@inststaticdir@%$inststaticdir%g 15295 s%@inststaticdir@%$inststaticdir%g
15321 s%@instvardir@%$instvardir%g 15296 s%@instvardir@%$instvardir%g
15322 s%@srcdir@%$srcdir%g 15297 s%@srcdir@%$srcdir%g
15323 s%@pkgdir@%$pkgdir%g 15298 s%@pkgdir@%$pkgdir%g
15324 s%@statedir@%$statedir%g 15299 s%@statedir@%$statedir%g
15300 s%@extra_includes@%$extra_includes%g
15325 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g 15301 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
15326 s%@PREFIX@%$PREFIX%g 15302 s%@PREFIX@%$PREFIX%g
15327 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g 15303 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
15328 s%@EXEC_PREFIX@%$EXEC_PREFIX%g 15304 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
15329 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g 15305 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g