comparison configure @ 726:1f525cb38373

[xemacs-hg @ 2002-01-09 18:58:56 by janv] Autodetect Athena when explicitly asked for widgets
author janv
date Wed, 09 Jan 2002 18:58:57 +0000
parents 76d5a3dd827a
children 8ae895c67ce7
comparison
equal deleted inserted replaced
725:b35d39ece38f 726:1f525cb38373
739 l | lu | luc | luci | lucid ) val=lucid ;; 739 l | lu | luc | luci | lucid ) val=lucid ;;
740 mo | mot | moti | motif ) val=motif ;; 740 mo | mot | moti | motif ) val=motif ;;
741 a | at | ath | athe | athen | athena ) val=athena ;; 741 a | at | ath | athe | athen | athena ) val=athena ;;
742 n | no | non | none ) val=no ;; 742 n | no | non | none ) val=no ;;
743 y | ye | yes ) val=yes ;; 743 y | ye | yes ) val=yes ;;
744 "") val=yes ;;
744 g | gt | gtk ) val=gtk ;; 745 g | gt | gtk ) val=gtk ;;
745 ms | msw ) val=msw ;; 746 ms | msw ) val=msw ;;
746 * ) (echo "$progname: Usage error:" 747 * ) (echo "$progname: Usage error:"
747 echo " " "The \`--$optname' option must have one of these values: 748 echo " " "The \`--$optname' option must have one of these values:
748 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'." 749 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
845 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 846 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
846 fi 847 fi
847 fi 848 fi
848 849
849 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 850 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
850 echo "configure:851: checking whether ln -s works" >&5 851 echo "configure:852: checking whether ln -s works" >&5
851 852
852 rm -f conftestdata 853 rm -f conftestdata
853 if ln -s X conftestdata 2>/dev/null 854 if ln -s X conftestdata 2>/dev/null
854 then 855 then
855 rm -f conftestdata 856 rm -f conftestdata
1110 } 1111 }
1111 1112
1112 1113
1113 1114
1114 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 1115 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1115 echo "configure:1116: checking "host system type"" >&5 1116 echo "configure:1117: checking "host system type"" >&5
1116 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1117 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1117 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 1118 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1118 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1119 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1119 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1120 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1120 echo "$ac_t""$configuration" 1>&6 1121 echo "$ac_t""$configuration" 1>&6
1625 xe_save_CFLAGS="$CFLAGS" 1626 xe_save_CFLAGS="$CFLAGS"
1626 1627
1627 # Extract the first word of "gcc", so it can be a program name with args. 1628 # Extract the first word of "gcc", so it can be a program name with args.
1628 set dummy gcc; ac_word=$2 1629 set dummy gcc; ac_word=$2
1629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1630 echo "configure:1631: checking for $ac_word" >&5 1631 echo "configure:1632: checking for $ac_word" >&5
1631 1632
1632 if test -n "$CC"; then 1633 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test. 1634 ac_cv_prog_CC="$CC" # Let the user override the test.
1634 else 1635 else
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1652 1653
1653 if test -z "$CC"; then 1654 if test -z "$CC"; then
1654 # Extract the first word of "cc", so it can be a program name with args. 1655 # Extract the first word of "cc", so it can be a program name with args.
1655 set dummy cc; ac_word=$2 1656 set dummy cc; ac_word=$2
1656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1657 echo "configure:1658: checking for $ac_word" >&5 1658 echo "configure:1659: checking for $ac_word" >&5
1658 1659
1659 if test -n "$CC"; then 1660 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test. 1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else 1662 else
1662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1700 case "`uname -s`" in 1701 case "`uname -s`" in
1701 *win32* | *WIN32*) 1702 *win32* | *WIN32*)
1702 # Extract the first word of "cl", so it can be a program name with args. 1703 # Extract the first word of "cl", so it can be a program name with args.
1703 set dummy cl; ac_word=$2 1704 set dummy cl; ac_word=$2
1704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1705 echo "configure:1706: checking for $ac_word" >&5 1706 echo "configure:1707: checking for $ac_word" >&5
1706 1707
1707 if test -n "$CC"; then 1708 if test -n "$CC"; then
1708 ac_cv_prog_CC="$CC" # Let the user override the test. 1709 ac_cv_prog_CC="$CC" # Let the user override the test.
1709 else 1710 else
1710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1729 fi 1730 fi
1730 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1731 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1731 fi 1732 fi
1732 1733
1733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1734 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1734 echo "configure:1735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1735 echo "configure:1736: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1735 1736
1736 ac_ext=c 1737 ac_ext=c
1737 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1738 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1738 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1739 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1739 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1740 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1742 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1743 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1743 cross_compiling=no 1744 cross_compiling=no
1744 1745
1745 cat > conftest.$ac_ext << EOF 1746 cat > conftest.$ac_ext << EOF
1746 1747
1747 #line 1748 "configure" 1748 #line 1749 "configure"
1748 #include "confdefs.h" 1749 #include "confdefs.h"
1749 1750
1750 main(){return(0);} 1751 main(){return(0);}
1751 EOF 1752 EOF
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1753 if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1753 ac_cv_prog_cc_works=yes 1754 ac_cv_prog_cc_works=yes
1754 # If we can't run a trivial program, we are probably using a cross compiler. 1755 # If we can't run a trivial program, we are probably using a cross compiler.
1755 if (./conftest; exit) 2>/dev/null; then 1756 if (./conftest; exit) 2>/dev/null; then
1756 ac_cv_prog_cc_cross=no 1757 ac_cv_prog_cc_cross=no
1757 else 1758 else
1775 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1776 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1776 if test $ac_cv_prog_cc_works = no; then 1777 if test $ac_cv_prog_cc_works = no; then
1777 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1778 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1778 fi 1779 fi
1779 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1780 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1781 echo "configure:1782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1781 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1782 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1782 cross_compiling=$ac_cv_prog_cc_cross 1783 cross_compiling=$ac_cv_prog_cc_cross
1783 1784
1784 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1785 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1785 echo "configure:1786: checking whether we are using GNU C" >&5 1786 echo "configure:1787: checking whether we are using GNU C" >&5
1786 1787
1787 cat > conftest.c <<EOF 1788 cat > conftest.c <<EOF
1788 #ifdef __GNUC__ 1789 #ifdef __GNUC__
1789 yes; 1790 yes;
1790 #endif 1791 #endif
1791 EOF 1792 EOF
1792 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1793 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1793 ac_cv_prog_gcc=yes 1794 ac_cv_prog_gcc=yes
1794 else 1795 else
1795 ac_cv_prog_gcc=no 1796 ac_cv_prog_gcc=no
1796 fi 1797 fi
1797 1798
1805 1806
1806 ac_test_CFLAGS="${CFLAGS+set}" 1807 ac_test_CFLAGS="${CFLAGS+set}"
1807 ac_save_CFLAGS="$CFLAGS" 1808 ac_save_CFLAGS="$CFLAGS"
1808 CFLAGS= 1809 CFLAGS=
1809 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1810 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1810 echo "configure:1811: checking whether ${CC-cc} accepts -g" >&5 1811 echo "configure:1812: checking whether ${CC-cc} accepts -g" >&5
1811 1812
1812 echo 'void f(){}' > conftest.c 1813 echo 'void f(){}' > conftest.c
1813 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1814 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1814 ac_cv_prog_cc_g=yes 1815 ac_cv_prog_cc_g=yes
1815 else 1816 else
1838 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1839 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1839 CC=${NON_GNU_CC-cc} 1840 CC=${NON_GNU_CC-cc}
1840 # Extract the first word of "gcc", so it can be a program name with args. 1841 # Extract the first word of "gcc", so it can be a program name with args.
1841 set dummy gcc; ac_word=$2 1842 set dummy gcc; ac_word=$2
1842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1843 echo "configure:1844: checking for $ac_word" >&5 1844 echo "configure:1845: checking for $ac_word" >&5
1844 1845
1845 if test -n "$CC"; then 1846 if test -n "$CC"; then
1846 ac_cv_prog_CC="$CC" # Let the user override the test. 1847 ac_cv_prog_CC="$CC" # Let the user override the test.
1847 else 1848 else
1848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1865 1866
1866 if test -z "$CC"; then 1867 if test -z "$CC"; then
1867 # Extract the first word of "cc", so it can be a program name with args. 1868 # Extract the first word of "cc", so it can be a program name with args.
1868 set dummy cc; ac_word=$2 1869 set dummy cc; ac_word=$2
1869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1870 echo "configure:1871: checking for $ac_word" >&5 1871 echo "configure:1872: checking for $ac_word" >&5
1871 1872
1872 if test -n "$CC"; then 1873 if test -n "$CC"; then
1873 ac_cv_prog_CC="$CC" # Let the user override the test. 1874 ac_cv_prog_CC="$CC" # Let the user override the test.
1874 else 1875 else
1875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1913 case "`uname -s`" in 1914 case "`uname -s`" in
1914 *win32* | *WIN32*) 1915 *win32* | *WIN32*)
1915 # Extract the first word of "cl", so it can be a program name with args. 1916 # Extract the first word of "cl", so it can be a program name with args.
1916 set dummy cl; ac_word=$2 1917 set dummy cl; ac_word=$2
1917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1918 echo "configure:1919: checking for $ac_word" >&5 1919 echo "configure:1920: checking for $ac_word" >&5
1919 1920
1920 if test -n "$CC"; then 1921 if test -n "$CC"; then
1921 ac_cv_prog_CC="$CC" # Let the user override the test. 1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1922 else 1923 else
1923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1942 fi 1943 fi
1943 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1944 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1944 fi 1945 fi
1945 1946
1946 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1947 echo "configure:1948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1948 echo "configure:1949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1948 1949
1949 ac_ext=c 1950 ac_ext=c
1950 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1951 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1951 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1952 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1952 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1953 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1955 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1956 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1956 cross_compiling=no 1957 cross_compiling=no
1957 1958
1958 cat > conftest.$ac_ext << EOF 1959 cat > conftest.$ac_ext << EOF
1959 1960
1960 #line 1961 "configure" 1961 #line 1962 "configure"
1961 #include "confdefs.h" 1962 #include "confdefs.h"
1962 1963
1963 main(){return(0);} 1964 main(){return(0);}
1964 EOF 1965 EOF
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1966 if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1966 ac_cv_prog_cc_works=yes 1967 ac_cv_prog_cc_works=yes
1967 # If we can't run a trivial program, we are probably using a cross compiler. 1968 # If we can't run a trivial program, we are probably using a cross compiler.
1968 if (./conftest; exit) 2>/dev/null; then 1969 if (./conftest; exit) 2>/dev/null; then
1969 ac_cv_prog_cc_cross=no 1970 ac_cv_prog_cc_cross=no
1970 else 1971 else
1988 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1989 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1989 if test $ac_cv_prog_cc_works = no; then 1990 if test $ac_cv_prog_cc_works = no; then
1990 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1991 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1991 fi 1992 fi
1992 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1993 echo "configure:1994: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1994 echo "configure:1995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1994 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1995 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1995 cross_compiling=$ac_cv_prog_cc_cross 1996 cross_compiling=$ac_cv_prog_cc_cross
1996 1997
1997 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1998 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether we are using GNU C" >&5 1999 echo "configure:2000: checking whether we are using GNU C" >&5
1999 2000
2000 cat > conftest.c <<EOF 2001 cat > conftest.c <<EOF
2001 #ifdef __GNUC__ 2002 #ifdef __GNUC__
2002 yes; 2003 yes;
2003 #endif 2004 #endif
2004 EOF 2005 EOF
2005 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2006 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2006 ac_cv_prog_gcc=yes 2007 ac_cv_prog_gcc=yes
2007 else 2008 else
2008 ac_cv_prog_gcc=no 2009 ac_cv_prog_gcc=no
2009 fi 2010 fi
2010 2011
2018 2019
2019 ac_test_CFLAGS="${CFLAGS+set}" 2020 ac_test_CFLAGS="${CFLAGS+set}"
2020 ac_save_CFLAGS="$CFLAGS" 2021 ac_save_CFLAGS="$CFLAGS"
2021 CFLAGS= 2022 CFLAGS=
2022 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2023 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2023 echo "configure:2024: checking whether ${CC-cc} accepts -g" >&5 2024 echo "configure:2025: checking whether ${CC-cc} accepts -g" >&5
2024 2025
2025 echo 'void f(){}' > conftest.c 2026 echo 'void f(){}' > conftest.c
2026 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2027 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2027 ac_cv_prog_cc_g=yes 2028 ac_cv_prog_cc_g=yes
2028 else 2029 else
2051 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 2052 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2052 CC=gcc 2053 CC=gcc
2053 # Extract the first word of "gcc", so it can be a program name with args. 2054 # Extract the first word of "gcc", so it can be a program name with args.
2054 set dummy gcc; ac_word=$2 2055 set dummy gcc; ac_word=$2
2055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2056 echo "configure:2057: checking for $ac_word" >&5 2057 echo "configure:2058: checking for $ac_word" >&5
2057 2058
2058 if test -n "$CC"; then 2059 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test. 2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else 2061 else
2061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2078 2079
2079 if test -z "$CC"; then 2080 if test -z "$CC"; then
2080 # Extract the first word of "cc", so it can be a program name with args. 2081 # Extract the first word of "cc", so it can be a program name with args.
2081 set dummy cc; ac_word=$2 2082 set dummy cc; ac_word=$2
2082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_word" >&5 2084 echo "configure:2085: checking for $ac_word" >&5
2084 2085
2085 if test -n "$CC"; then 2086 if test -n "$CC"; then
2086 ac_cv_prog_CC="$CC" # Let the user override the test. 2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2087 else 2088 else
2088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2126 case "`uname -s`" in 2127 case "`uname -s`" in
2127 *win32* | *WIN32*) 2128 *win32* | *WIN32*)
2128 # Extract the first word of "cl", so it can be a program name with args. 2129 # Extract the first word of "cl", so it can be a program name with args.
2129 set dummy cl; ac_word=$2 2130 set dummy cl; ac_word=$2
2130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_word" >&5 2132 echo "configure:2133: checking for $ac_word" >&5
2132 2133
2133 if test -n "$CC"; then 2134 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test. 2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2135 else 2136 else
2136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2155 fi 2156 fi
2156 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2157 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2157 fi 2158 fi
2158 2159
2159 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2160 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2160 echo "configure:2161: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2161 echo "configure:2162: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2161 2162
2162 ac_ext=c 2163 ac_ext=c
2163 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2164 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2164 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2165 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2165 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2166 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2168 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2169 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2169 cross_compiling=no 2170 cross_compiling=no
2170 2171
2171 cat > conftest.$ac_ext << EOF 2172 cat > conftest.$ac_ext << EOF
2172 2173
2173 #line 2174 "configure" 2174 #line 2175 "configure"
2174 #include "confdefs.h" 2175 #include "confdefs.h"
2175 2176
2176 main(){return(0);} 2177 main(){return(0);}
2177 EOF 2178 EOF
2178 if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2179 if { (eval echo configure:2180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2179 ac_cv_prog_cc_works=yes 2180 ac_cv_prog_cc_works=yes
2180 # If we can't run a trivial program, we are probably using a cross compiler. 2181 # If we can't run a trivial program, we are probably using a cross compiler.
2181 if (./conftest; exit) 2>/dev/null; then 2182 if (./conftest; exit) 2>/dev/null; then
2182 ac_cv_prog_cc_cross=no 2183 ac_cv_prog_cc_cross=no
2183 else 2184 else
2201 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2202 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2202 if test $ac_cv_prog_cc_works = no; then 2203 if test $ac_cv_prog_cc_works = no; then
2203 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2204 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2204 fi 2205 fi
2205 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2206 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2206 echo "configure:2207: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2207 echo "configure:2208: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2207 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2208 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2208 cross_compiling=$ac_cv_prog_cc_cross 2209 cross_compiling=$ac_cv_prog_cc_cross
2209 2210
2210 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2211 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2211 echo "configure:2212: checking whether we are using GNU C" >&5 2212 echo "configure:2213: checking whether we are using GNU C" >&5
2212 2213
2213 cat > conftest.c <<EOF 2214 cat > conftest.c <<EOF
2214 #ifdef __GNUC__ 2215 #ifdef __GNUC__
2215 yes; 2216 yes;
2216 #endif 2217 #endif
2217 EOF 2218 EOF
2218 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2219 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2219 ac_cv_prog_gcc=yes 2220 ac_cv_prog_gcc=yes
2220 else 2221 else
2221 ac_cv_prog_gcc=no 2222 ac_cv_prog_gcc=no
2222 fi 2223 fi
2223 2224
2231 2232
2232 ac_test_CFLAGS="${CFLAGS+set}" 2233 ac_test_CFLAGS="${CFLAGS+set}"
2233 ac_save_CFLAGS="$CFLAGS" 2234 ac_save_CFLAGS="$CFLAGS"
2234 CFLAGS= 2235 CFLAGS=
2235 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2236 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2236 echo "configure:2237: checking whether ${CC-cc} accepts -g" >&5 2237 echo "configure:2238: checking whether ${CC-cc} accepts -g" >&5
2237 2238
2238 echo 'void f(){}' > conftest.c 2239 echo 'void f(){}' > conftest.c
2239 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2240 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2240 ac_cv_prog_cc_g=yes 2241 ac_cv_prog_cc_g=yes
2241 else 2242 else
2268 test -n "$CPP" -a -d "$CPP" && CPP= 2269 test -n "$CPP" -a -d "$CPP" && CPP=
2269 2270
2270 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2271 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2271 2272
2272 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2273 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2273 echo "configure:2274: checking how to run the C preprocessor" >&5 2274 echo "configure:2275: checking how to run the C preprocessor" >&5
2274 # On Suns, sometimes $CPP names a directory. 2275 # On Suns, sometimes $CPP names a directory.
2275 if test -n "$CPP" && test -d "$CPP"; then 2276 if test -n "$CPP" && test -d "$CPP"; then
2276 CPP= 2277 CPP=
2277 fi 2278 fi
2278 if test -z "$CPP"; then 2279 if test -z "$CPP"; then
2281 # substituted into the Makefile and "${CC-cc}" will confuse make. 2282 # substituted into the Makefile and "${CC-cc}" will confuse make.
2282 CPP="${CC-cc} -E" 2283 CPP="${CC-cc} -E"
2283 # On the NeXT, cc -E runs the code through the compiler's parser, 2284 # On the NeXT, cc -E runs the code through the compiler's parser,
2284 # not just through cpp. 2285 # not just through cpp.
2285 cat > conftest.$ac_ext <<EOF 2286 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure" 2287 #line 2288 "configure"
2287 #include "confdefs.h" 2288 #include "confdefs.h"
2288 #include <assert.h> 2289 #include <assert.h>
2289 Syntax Error 2290 Syntax Error
2290 EOF 2291 EOF
2291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2292 { (eval echo configure:2293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2293 { (eval echo configure:2294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2294 if test -z "$ac_err"; then 2295 if test -z "$ac_err"; then
2295 : 2296 :
2296 else 2297 else
2297 echo "$ac_err" >&5 2298 echo "$ac_err" >&5
2298 echo "configure: failed program was:" >&5 2299 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5 2300 cat conftest.$ac_ext >&5
2300 rm -rf conftest* 2301 rm -rf conftest*
2301 CPP="${CC-cc} -E -traditional-cpp" 2302 CPP="${CC-cc} -E -traditional-cpp"
2302 cat > conftest.$ac_ext <<EOF 2303 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure" 2304 #line 2305 "configure"
2304 #include "confdefs.h" 2305 #include "confdefs.h"
2305 #include <assert.h> 2306 #include <assert.h>
2306 Syntax Error 2307 Syntax Error
2307 EOF 2308 EOF
2308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2309 { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2310 { (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2311 if test -z "$ac_err"; then 2312 if test -z "$ac_err"; then
2312 : 2313 :
2313 else 2314 else
2314 echo "$ac_err" >&5 2315 echo "$ac_err" >&5
2315 echo "configure: failed program was:" >&5 2316 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5 2317 cat conftest.$ac_ext >&5
2317 rm -rf conftest* 2318 rm -rf conftest*
2318 CPP="${CC-cc} -nologo -E" 2319 CPP="${CC-cc} -nologo -E"
2319 cat > conftest.$ac_ext <<EOF 2320 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure" 2321 #line 2322 "configure"
2321 #include "confdefs.h" 2322 #include "confdefs.h"
2322 #include <assert.h> 2323 #include <assert.h>
2323 Syntax Error 2324 Syntax Error
2324 EOF 2325 EOF
2325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2327 { (eval echo configure:2328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then 2329 if test -z "$ac_err"; then
2329 : 2330 :
2330 else 2331 else
2331 echo "$ac_err" >&5 2332 echo "$ac_err" >&5
2347 echo "$ac_t""$CPP" 1>&6 2348 echo "$ac_t""$CPP" 1>&6
2348 2349
2349 2350
2350 2351
2351 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2352 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2352 echo "configure:2353: checking for AIX" >&5 2353 echo "configure:2354: checking for AIX" >&5
2353 cat > conftest.$ac_ext <<EOF 2354 cat > conftest.$ac_ext <<EOF
2354 #line 2355 "configure" 2355 #line 2356 "configure"
2355 #include "confdefs.h" 2356 #include "confdefs.h"
2356 #ifdef _AIX 2357 #ifdef _AIX
2357 yes 2358 yes
2358 #endif 2359 #endif
2359 2360
2376 rm -f conftest* 2377 rm -f conftest*
2377 2378
2378 2379
2379 2380
2380 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2381 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2381 echo "configure:2382: checking for GNU libc" >&5 2382 echo "configure:2383: checking for GNU libc" >&5
2382 cat > conftest.$ac_ext <<EOF 2383 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure" 2384 #line 2385 "configure"
2384 #include "confdefs.h" 2385 #include "confdefs.h"
2385 #include <features.h> 2386 #include <features.h>
2386 int main() { 2387 int main() {
2387 2388
2388 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2389 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2390 ******* ======= ******** &&&&&&&& 2391 ******* ======= ******** &&&&&&&&
2391 #endif 2392 #endif
2392 2393
2393 ; return 0; } 2394 ; return 0; }
2394 EOF 2395 EOF
2395 if { (eval echo configure:2396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2396 if { (eval echo configure:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2396 rm -rf conftest* 2397 rm -rf conftest*
2397 have_glibc=yes 2398 have_glibc=yes
2398 else 2399 else
2399 echo "configure: failed program was:" >&5 2400 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5 2401 cat conftest.$ac_ext >&5
2467 2468
2468 ;; 2469 ;;
2469 esac 2470 esac
2470 2471
2471 cat > conftest.$ac_ext <<EOF 2472 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure" 2473 #line 2474 "configure"
2473 #include "confdefs.h" 2474 #include "confdefs.h"
2474 int main () { 2475 int main () {
2475 #if defined __SUNPRO_C 2476 #if defined __SUNPRO_C
2476 return 11; 2477 return 11;
2477 #elif defined __DECC 2478 #elif defined __DECC
2481 #else 2482 #else
2482 return 0; 2483 return 0;
2483 #endif 2484 #endif
2484 } 2485 }
2485 EOF 2486 EOF
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2487 if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2487 then 2488 then
2488 : 2489 :
2489 else 2490 else
2490 conftest_rc="$?" 2491 conftest_rc="$?"
2491 echo "configure: failed program was:" >&5 2492 echo "configure: failed program was:" >&5
2733 2734
2734 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi 2735 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2735 2736
2736 if test "$__USLC__" = yes; then 2737 if test "$__USLC__" = yes; then
2737 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6 2738 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2738 echo "configure:2739: checking for whether the -Kalloca compiler flag is needed" >&5 2739 echo "configure:2740: checking for whether the -Kalloca compiler flag is needed" >&5
2739 need_kalloca=no 2740 need_kalloca=no
2740 cat > conftest.$ac_ext <<EOF 2741 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure" 2742 #line 2743 "configure"
2742 #include "confdefs.h" 2743 #include "confdefs.h"
2743 2744
2744 int main() { 2745 int main() {
2745 void *x = alloca(4); 2746 void *x = alloca(4);
2746 ; return 0; } 2747 ; return 0; }
2747 EOF 2748 EOF
2748 if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2749 rm -rf conftest* 2750 rm -rf conftest*
2750 : 2751 :
2751 else 2752 else
2752 echo "configure: failed program was:" >&5 2753 echo "configure: failed program was:" >&5
2753 cat conftest.$ac_ext >&5 2754 cat conftest.$ac_ext >&5
2754 rm -rf conftest* 2755 rm -rf conftest*
2755 2756
2756 xe_save_c_switch_system="$c_switch_system" 2757 xe_save_c_switch_system="$c_switch_system"
2757 c_switch_system="$c_switch_system -Kalloca" 2758 c_switch_system="$c_switch_system -Kalloca"
2758 cat > conftest.$ac_ext <<EOF 2759 cat > conftest.$ac_ext <<EOF
2759 #line 2760 "configure" 2760 #line 2761 "configure"
2760 #include "confdefs.h" 2761 #include "confdefs.h"
2761 2762
2762 int main() { 2763 int main() {
2763 void *x = alloca(4); 2764 void *x = alloca(4);
2764 ; return 0; } 2765 ; return 0; }
2765 EOF 2766 EOF
2766 if { (eval echo configure:2767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2767 if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2767 rm -rf conftest* 2768 rm -rf conftest*
2768 need_kalloca=yes 2769 need_kalloca=yes
2769 else 2770 else
2770 echo "configure: failed program was:" >&5 2771 echo "configure: failed program was:" >&5
2771 cat conftest.$ac_ext >&5 2772 cat conftest.$ac_ext >&5
2799 CFLAGS="-O" ; fi 2800 CFLAGS="-O" ; fi
2800 fi 2801 fi
2801 2802
2802 if test "$GCC" = "yes"; then 2803 if test "$GCC" = "yes"; then
2803 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6 2804 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2804 echo "configure:2805: checking for buggy gcc versions" >&5 2805 echo "configure:2806: checking for buggy gcc versions" >&5
2805 GCC_VERSION=`$CC --version` 2806 GCC_VERSION=`$CC --version`
2806 case `uname -s`:`uname -m`:$GCC_VERSION in 2807 case `uname -s`:`uname -m`:$GCC_VERSION in
2807 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) 2808 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2808 case "$CFLAGS" in 2809 case "$CFLAGS" in
2809 *-O2*|*-O3*) 2810 *-O2*|*-O3*)
2922 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then 2923 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2923 echo " xemacs will be linked with \"dumper.o\"" 2924 echo " xemacs will be linked with \"dumper.o\""
2924 fi 2925 fi
2925 2926
2926 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2927 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2927 echo "configure:2928: checking for dynodump" >&5 2928 echo "configure:2929: checking for dynodump" >&5
2928 if test "$unexec" != "unexsol2.o"; then 2929 if test "$unexec" != "unexsol2.o"; then
2929 echo "$ac_t""no" 1>&6 2930 echo "$ac_t""no" 1>&6
2930 else 2931 else
2931 echo "$ac_t""yes" 1>&6 2932 echo "$ac_t""yes" 1>&6
2932 { test "$extra_verbose" = "yes" && cat << \EOF 2933 { test "$extra_verbose" = "yes" && cat << \EOF
2960 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2961 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2961 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2962 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2962 done 2963 done
2963 2964
2964 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2965 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2965 echo "configure:2966: checking for terminateAndUnload in -lC" >&5 2966 echo "configure:2967: checking for terminateAndUnload in -lC" >&5
2966 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2967 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2967 2968
2968 xe_check_libs=" -lC " 2969 xe_check_libs=" -lC "
2969 cat > conftest.$ac_ext <<EOF 2970 cat > conftest.$ac_ext <<EOF
2970 #line 2971 "configure" 2971 #line 2972 "configure"
2971 #include "confdefs.h" 2972 #include "confdefs.h"
2972 /* Override any gcc2 internal prototype to avoid an error. */ 2973 /* Override any gcc2 internal prototype to avoid an error. */
2973 /* We use char because int might match the return type of a gcc2 2974 /* We use char because int might match the return type of a gcc2
2974 builtin and then its argument prototype would still apply. */ 2975 builtin and then its argument prototype would still apply. */
2975 char terminateAndUnload(); 2976 char terminateAndUnload();
2976 2977
2977 int main() { 2978 int main() {
2978 terminateAndUnload() 2979 terminateAndUnload()
2979 ; return 0; } 2980 ; return 0; }
2980 EOF 2981 EOF
2981 if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2982 if { (eval echo configure:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2982 rm -rf conftest* 2983 rm -rf conftest*
2983 eval "ac_cv_lib_$ac_lib_var=yes" 2984 eval "ac_cv_lib_$ac_lib_var=yes"
2984 else 2985 else
2985 echo "configure: failed program was:" >&5 2986 echo "configure: failed program was:" >&5
2986 cat conftest.$ac_ext >&5 2987 cat conftest.$ac_ext >&5
3084 esac 3085 esac
3085 fi 3086 fi
3086 3087
3087 if test "$add_runtime_path" = "yes"; then 3088 if test "$add_runtime_path" = "yes"; then
3088 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 3089 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3089 echo "configure:3090: checking "for runtime libraries flag"" >&5 3090 echo "configure:3091: checking "for runtime libraries flag"" >&5
3090 case "$opsys" in 3091 case "$opsys" in
3091 sol2 ) dash_r="-R" ;; 3092 sol2 ) dash_r="-R" ;;
3092 decosf* | linux* | irix*) dash_r="-rpath " ;; 3093 decosf* | linux* | irix*) dash_r="-rpath " ;;
3093 *) 3094 *)
3094 dash_r="" 3095 dash_r=""
3106 esac 3107 esac
3107 shift 3108 shift
3108 done 3109 done
3109 fi 3110 fi
3110 cat > conftest.$ac_ext <<EOF 3111 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure" 3112 #line 3113 "configure"
3112 #include "confdefs.h" 3113 #include "confdefs.h"
3113 3114
3114 int main() { 3115 int main() {
3115 3116
3116 ; return 0; } 3117 ; return 0; }
3117 EOF 3118 EOF
3118 if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3119 if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3119 rm -rf conftest* 3120 rm -rf conftest*
3120 dash_r="$try_dash_r" 3121 dash_r="$try_dash_r"
3121 else 3122 else
3122 echo "configure: failed program was:" >&5 3123 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5 3124 cat conftest.$ac_ext >&5
3214 else 3215 else
3215 doug_lea_malloc=no 3216 doug_lea_malloc=no
3216 fi 3217 fi
3217 after_morecore_hook_exists=yes 3218 after_morecore_hook_exists=yes
3218 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3219 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3219 echo "configure:3220: checking for malloc_set_state" >&5 3220 echo "configure:3221: checking for malloc_set_state" >&5
3220 3221
3221 cat > conftest.$ac_ext <<EOF 3222 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure" 3223 #line 3224 "configure"
3223 #include "confdefs.h" 3224 #include "confdefs.h"
3224 /* System header to define __stub macros and hopefully few prototypes, 3225 /* System header to define __stub macros and hopefully few prototypes,
3225 which can conflict with char malloc_set_state(); below. */ 3226 which can conflict with char malloc_set_state(); below. */
3226 #include <assert.h> 3227 #include <assert.h>
3227 /* Override any gcc2 internal prototype to avoid an error. */ 3228 /* Override any gcc2 internal prototype to avoid an error. */
3240 malloc_set_state(); 3241 malloc_set_state();
3241 #endif 3242 #endif
3242 3243
3243 ; return 0; } 3244 ; return 0; }
3244 EOF 3245 EOF
3245 if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3246 if { (eval echo configure:3247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3246 rm -rf conftest* 3247 rm -rf conftest*
3247 eval "ac_cv_func_malloc_set_state=yes" 3248 eval "ac_cv_func_malloc_set_state=yes"
3248 else 3249 else
3249 echo "configure: failed program was:" >&5 3250 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5 3251 cat conftest.$ac_ext >&5
3260 echo "$ac_t""no" 1>&6 3261 echo "$ac_t""no" 1>&6
3261 doug_lea_malloc=no 3262 doug_lea_malloc=no
3262 fi 3263 fi
3263 3264
3264 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3265 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3265 echo "configure:3266: checking whether __after_morecore_hook exists" >&5 3266 echo "configure:3267: checking whether __after_morecore_hook exists" >&5
3266 cat > conftest.$ac_ext <<EOF 3267 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure" 3268 #line 3269 "configure"
3268 #include "confdefs.h" 3269 #include "confdefs.h"
3269 extern void (* __after_morecore_hook)(); 3270 extern void (* __after_morecore_hook)();
3270 int main() { 3271 int main() {
3271 __after_morecore_hook = 0 3272 __after_morecore_hook = 0
3272 ; return 0; } 3273 ; return 0; }
3273 EOF 3274 EOF
3274 if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3275 if { (eval echo configure:3276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3275 rm -rf conftest* 3276 rm -rf conftest*
3276 echo "$ac_t""yes" 1>&6 3277 echo "$ac_t""yes" 1>&6
3277 else 3278 else
3278 echo "configure: failed program was:" >&5 3279 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5 3280 cat conftest.$ac_ext >&5
3325 3326
3326 3327
3327 # Extract the first word of "ranlib", so it can be a program name with args. 3328 # Extract the first word of "ranlib", so it can be a program name with args.
3328 set dummy ranlib; ac_word=$2 3329 set dummy ranlib; ac_word=$2
3329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3330 echo "configure:3331: checking for $ac_word" >&5 3331 echo "configure:3332: checking for $ac_word" >&5
3331 3332
3332 if test -n "$RANLIB"; then 3333 if test -n "$RANLIB"; then
3333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3334 else 3335 else
3335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3381 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3382 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3383 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3383 # ./install, which can be erroneously created by make from ./install.sh. 3384 # ./install, which can be erroneously created by make from ./install.sh.
3384 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3385 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3385 echo "configure:3386: checking for a BSD compatible install" >&5 3386 echo "configure:3387: checking for a BSD compatible install" >&5
3386 if test -z "$INSTALL"; then 3387 if test -z "$INSTALL"; then
3387 3388
3388 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3389 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3389 for ac_dir in $PATH; do 3390 for ac_dir in $PATH; do
3390 # Account for people who put trailing slashes in PATH elements. 3391 # Account for people who put trailing slashes in PATH elements.
3434 for ac_prog in 'bison -y' byacc 3435 for ac_prog in 'bison -y' byacc
3435 do 3436 do
3436 # Extract the first word of "$ac_prog", so it can be a program name with args. 3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
3437 set dummy $ac_prog; ac_word=$2 3438 set dummy $ac_prog; ac_word=$2
3438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3439 echo "configure:3440: checking for $ac_word" >&5 3440 echo "configure:3441: checking for $ac_word" >&5
3440 3441
3441 if test -n "$YACC"; then 3442 if test -n "$YACC"; then
3442 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3443 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3443 else 3444 else
3444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3466 3467
3467 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 3468 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
3468 do 3469 do
3469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3471 echo "configure:3472: checking for $ac_hdr" >&5 3472 echo "configure:3473: checking for $ac_hdr" >&5
3472 3473
3473 cat > conftest.$ac_ext <<EOF 3474 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure" 3475 #line 3476 "configure"
3475 #include "confdefs.h" 3476 #include "confdefs.h"
3476 #include <$ac_hdr> 3477 #include <$ac_hdr>
3477 EOF 3478 EOF
3478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3479 { (eval echo configure:3480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3480 { (eval echo configure:3481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3481 if test -z "$ac_err"; then 3482 if test -z "$ac_err"; then
3482 rm -rf conftest* 3483 rm -rf conftest*
3483 eval "ac_cv_header_$ac_safe=yes" 3484 eval "ac_cv_header_$ac_safe=yes"
3484 else 3485 else
3504 echo "$ac_t""no" 1>&6 3505 echo "$ac_t""no" 1>&6
3505 fi 3506 fi
3506 done 3507 done
3507 3508
3508 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3509 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3509 echo "configure:3510: checking for sys/wait.h that is POSIX.1 compatible" >&5 3510 echo "configure:3511: checking for sys/wait.h that is POSIX.1 compatible" >&5
3510 3511
3511 cat > conftest.$ac_ext <<EOF 3512 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure" 3513 #line 3514 "configure"
3513 #include "confdefs.h" 3514 #include "confdefs.h"
3514 #include <sys/types.h> 3515 #include <sys/types.h>
3515 #include <sys/wait.h> 3516 #include <sys/wait.h>
3516 #ifndef WEXITSTATUS 3517 #ifndef WEXITSTATUS
3517 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3518 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3523 int s; 3524 int s;
3524 wait (&s); 3525 wait (&s);
3525 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3526 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3526 ; return 0; } 3527 ; return 0; }
3527 EOF 3528 EOF
3528 if { (eval echo configure:3529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3529 if { (eval echo configure:3530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3529 rm -rf conftest* 3530 rm -rf conftest*
3530 ac_cv_header_sys_wait_h=yes 3531 ac_cv_header_sys_wait_h=yes
3531 else 3532 else
3532 echo "configure: failed program was:" >&5 3533 echo "configure: failed program was:" >&5
3533 cat conftest.$ac_ext >&5 3534 cat conftest.$ac_ext >&5
3547 } 3548 }
3548 3549
3549 fi 3550 fi
3550 3551
3551 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3552 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3552 echo "configure:3553: checking for ANSI C header files" >&5 3553 echo "configure:3554: checking for ANSI C header files" >&5
3553 3554
3554 cat > conftest.$ac_ext <<EOF 3555 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure" 3556 #line 3557 "configure"
3556 #include "confdefs.h" 3557 #include "confdefs.h"
3557 #include <stdlib.h> 3558 #include <stdlib.h>
3558 #include <stdarg.h> 3559 #include <stdarg.h>
3559 #include <string.h> 3560 #include <string.h>
3560 #include <float.h> 3561 #include <float.h>
3561 EOF 3562 EOF
3562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3563 { (eval echo configure:3564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3564 { (eval echo configure:3565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3565 if test -z "$ac_err"; then 3566 if test -z "$ac_err"; then
3566 rm -rf conftest* 3567 rm -rf conftest*
3567 ac_cv_header_stdc=yes 3568 ac_cv_header_stdc=yes
3568 else 3569 else
3575 rm -f conftest* 3576 rm -f conftest*
3576 3577
3577 if test $ac_cv_header_stdc = yes; then 3578 if test $ac_cv_header_stdc = yes; then
3578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3579 cat > conftest.$ac_ext <<EOF 3580 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure" 3581 #line 3582 "configure"
3581 #include "confdefs.h" 3582 #include "confdefs.h"
3582 #include <string.h> 3583 #include <string.h>
3583 EOF 3584 EOF
3584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3585 egrep "memchr" >/dev/null 2>&1; then 3586 egrep "memchr" >/dev/null 2>&1; then
3593 fi 3594 fi
3594 3595
3595 if test $ac_cv_header_stdc = yes; then 3596 if test $ac_cv_header_stdc = yes; then
3596 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3597 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3597 cat > conftest.$ac_ext <<EOF 3598 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure" 3599 #line 3600 "configure"
3599 #include "confdefs.h" 3600 #include "confdefs.h"
3600 #include <stdlib.h> 3601 #include <stdlib.h>
3601 EOF 3602 EOF
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 egrep "free" >/dev/null 2>&1; then 3604 egrep "free" >/dev/null 2>&1; then
3611 fi 3612 fi
3612 3613
3613 if test $ac_cv_header_stdc = yes; then 3614 if test $ac_cv_header_stdc = yes; then
3614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3615 cat > conftest.$ac_ext <<EOF 3616 cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure" 3617 #line 3618 "configure"
3617 #include "confdefs.h" 3618 #include "confdefs.h"
3618 #include <ctype.h> 3619 #include <ctype.h>
3619 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3620 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3620 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3621 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3621 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3622 int main () { int i; for (i = 0; i < 256; i++) 3623 int main () { int i; for (i = 0; i < 256; i++)
3623 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3624 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3624 exit (0); } 3625 exit (0); }
3625 3626
3626 EOF 3627 EOF
3627 if { (eval echo configure:3628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3628 if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3628 then 3629 then
3629 : 3630 :
3630 else 3631 else
3631 conftest_rc="$?" 3632 conftest_rc="$?"
3632 echo "configure: failed program was:" >&5 3633 echo "configure: failed program was:" >&5
3648 } 3649 }
3649 3650
3650 fi 3651 fi
3651 3652
3652 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3653 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3653 echo "configure:3654: checking whether time.h and sys/time.h may both be included" >&5 3654 echo "configure:3655: checking whether time.h and sys/time.h may both be included" >&5
3654 3655
3655 cat > conftest.$ac_ext <<EOF 3656 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure" 3657 #line 3658 "configure"
3657 #include "confdefs.h" 3658 #include "confdefs.h"
3658 #include <sys/types.h> 3659 #include <sys/types.h>
3659 #include <sys/time.h> 3660 #include <sys/time.h>
3660 #include <time.h> 3661 #include <time.h>
3661 int main() { 3662 int main() {
3662 struct tm *tp; 3663 struct tm *tp;
3663 ; return 0; } 3664 ; return 0; }
3664 EOF 3665 EOF
3665 if { (eval echo configure:3666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3666 if { (eval echo configure:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3666 rm -rf conftest* 3667 rm -rf conftest*
3667 ac_cv_header_time=yes 3668 ac_cv_header_time=yes
3668 else 3669 else
3669 echo "configure: failed program was:" >&5 3670 echo "configure: failed program was:" >&5
3670 cat conftest.$ac_ext >&5 3671 cat conftest.$ac_ext >&5
3684 } 3685 }
3685 3686
3686 fi 3687 fi
3687 3688
3688 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3689 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3689 echo "configure:3690: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3690 echo "configure:3691: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3690 3691
3691 cat > conftest.$ac_ext <<EOF 3692 cat > conftest.$ac_ext <<EOF
3692 #line 3693 "configure" 3693 #line 3694 "configure"
3693 #include "confdefs.h" 3694 #include "confdefs.h"
3694 #include <sys/types.h> 3695 #include <sys/types.h>
3695 #include <signal.h> 3696 #include <signal.h>
3696 /* NetBSD declares sys_siglist in unistd.h. */ 3697 /* NetBSD declares sys_siglist in unistd.h. */
3697 #ifdef HAVE_UNISTD_H 3698 #ifdef HAVE_UNISTD_H
3699 #endif 3700 #endif
3700 int main() { 3701 int main() {
3701 char *msg = *(sys_siglist + 1); 3702 char *msg = *(sys_siglist + 1);
3702 ; return 0; } 3703 ; return 0; }
3703 EOF 3704 EOF
3704 if { (eval echo configure:3705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3705 if { (eval echo configure:3706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3705 rm -rf conftest* 3706 rm -rf conftest*
3706 ac_cv_decl_sys_siglist=yes 3707 ac_cv_decl_sys_siglist=yes
3707 else 3708 else
3708 echo "configure: failed program was:" >&5 3709 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5 3710 cat conftest.$ac_ext >&5
3725 fi 3726 fi
3726 3727
3727 3728
3728 3729
3729 echo $ac_n "checking for utime""... $ac_c" 1>&6 3730 echo $ac_n "checking for utime""... $ac_c" 1>&6
3730 echo "configure:3731: checking for utime" >&5 3731 echo "configure:3732: checking for utime" >&5
3731 cat > conftest.$ac_ext <<EOF 3732 cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure" 3733 #line 3734 "configure"
3733 #include "confdefs.h" 3734 #include "confdefs.h"
3734 #include <sys/types.h> 3735 #include <sys/types.h>
3735 #include <utime.h> 3736 #include <utime.h>
3736 int main() { 3737 int main() {
3737 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x); 3738 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3738 ; return 0; } 3739 ; return 0; }
3739 EOF 3740 EOF
3740 if { (eval echo configure:3741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3741 if { (eval echo configure:3742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3741 rm -rf conftest* 3742 rm -rf conftest*
3742 echo "$ac_t""yes" 1>&6 3743 echo "$ac_t""yes" 1>&6
3743 { test "$extra_verbose" = "yes" && cat << \EOF 3744 { test "$extra_verbose" = "yes" && cat << \EOF
3744 Defining HAVE_UTIME 3745 Defining HAVE_UTIME
3745 EOF 3746 EOF
3754 rm -rf conftest* 3755 rm -rf conftest*
3755 echo "$ac_t""no" 1>&6 3756 echo "$ac_t""no" 1>&6
3756 for ac_func in utimes 3757 for ac_func in utimes
3757 do 3758 do
3758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_func" >&5 3760 echo "configure:3761: checking for $ac_func" >&5
3760 3761
3761 cat > conftest.$ac_ext <<EOF 3762 cat > conftest.$ac_ext <<EOF
3762 #line 3763 "configure" 3763 #line 3764 "configure"
3763 #include "confdefs.h" 3764 #include "confdefs.h"
3764 /* System header to define __stub macros and hopefully few prototypes, 3765 /* System header to define __stub macros and hopefully few prototypes,
3765 which can conflict with char $ac_func(); below. */ 3766 which can conflict with char $ac_func(); below. */
3766 #include <assert.h> 3767 #include <assert.h>
3767 /* Override any gcc2 internal prototype to avoid an error. */ 3768 /* Override any gcc2 internal prototype to avoid an error. */
3780 $ac_func(); 3781 $ac_func();
3781 #endif 3782 #endif
3782 3783
3783 ; return 0; } 3784 ; return 0; }
3784 EOF 3785 EOF
3785 if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3786 rm -rf conftest* 3787 rm -rf conftest*
3787 eval "ac_cv_func_$ac_func=yes" 3788 eval "ac_cv_func_$ac_func=yes"
3788 else 3789 else
3789 echo "configure: failed program was:" >&5 3790 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5 3791 cat conftest.$ac_ext >&5
3812 fi 3813 fi
3813 rm -f conftest* 3814 rm -f conftest*
3814 3815
3815 3816
3816 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3817 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3817 echo "configure:3818: checking return type of signal handlers" >&5 3818 echo "configure:3819: checking return type of signal handlers" >&5
3818 3819
3819 cat > conftest.$ac_ext <<EOF 3820 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure" 3821 #line 3822 "configure"
3821 #include "confdefs.h" 3822 #include "confdefs.h"
3822 #include <sys/types.h> 3823 #include <sys/types.h>
3823 #include <signal.h> 3824 #include <signal.h>
3824 #ifdef signal 3825 #ifdef signal
3825 #undef signal 3826 #undef signal
3832 3833
3833 int main() { 3834 int main() {
3834 int i; 3835 int i;
3835 ; return 0; } 3836 ; return 0; }
3836 EOF 3837 EOF
3837 if { (eval echo configure:3838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3838 if { (eval echo configure:3839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3838 rm -rf conftest* 3839 rm -rf conftest*
3839 ac_cv_type_signal=void 3840 ac_cv_type_signal=void
3840 else 3841 else
3841 echo "configure: failed program was:" >&5 3842 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5 3843 cat conftest.$ac_ext >&5
3854 EOF 3855 EOF
3855 } 3856 }
3856 3857
3857 3858
3858 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3859 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3859 echo "configure:3860: checking for size_t" >&5 3860 echo "configure:3861: checking for size_t" >&5
3860 3861
3861 cat > conftest.$ac_ext <<EOF 3862 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure" 3863 #line 3864 "configure"
3863 #include "confdefs.h" 3864 #include "confdefs.h"
3864 #include <sys/types.h> 3865 #include <sys/types.h>
3865 #if STDC_HEADERS 3866 #if STDC_HEADERS
3866 #include <stdlib.h> 3867 #include <stdlib.h>
3867 #include <stddef.h> 3868 #include <stddef.h>
3888 } 3889 }
3889 3890
3890 fi 3891 fi
3891 3892
3892 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3893 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3893 echo "configure:3894: checking for pid_t" >&5 3894 echo "configure:3895: checking for pid_t" >&5
3894 3895
3895 cat > conftest.$ac_ext <<EOF 3896 cat > conftest.$ac_ext <<EOF
3896 #line 3897 "configure" 3897 #line 3898 "configure"
3897 #include "confdefs.h" 3898 #include "confdefs.h"
3898 #include <sys/types.h> 3899 #include <sys/types.h>
3899 #if STDC_HEADERS 3900 #if STDC_HEADERS
3900 #include <stdlib.h> 3901 #include <stdlib.h>
3901 #include <stddef.h> 3902 #include <stddef.h>
3922 } 3923 }
3923 3924
3924 fi 3925 fi
3925 3926
3926 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3927 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3927 echo "configure:3928: checking for uid_t in sys/types.h" >&5 3928 echo "configure:3929: checking for uid_t in sys/types.h" >&5
3928 3929
3929 cat > conftest.$ac_ext <<EOF 3930 cat > conftest.$ac_ext <<EOF
3930 #line 3931 "configure" 3931 #line 3932 "configure"
3931 #include "confdefs.h" 3932 #include "confdefs.h"
3932 #include <sys/types.h> 3933 #include <sys/types.h>
3933 EOF 3934 EOF
3934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3935 egrep "uid_t" >/dev/null 2>&1; then 3936 egrep "uid_t" >/dev/null 2>&1; then
3961 } 3962 }
3962 3963
3963 fi 3964 fi
3964 3965
3965 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3966 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3966 echo "configure:3967: checking for mode_t" >&5 3967 echo "configure:3968: checking for mode_t" >&5
3967 3968
3968 cat > conftest.$ac_ext <<EOF 3969 cat > conftest.$ac_ext <<EOF
3969 #line 3970 "configure" 3970 #line 3971 "configure"
3970 #include "confdefs.h" 3971 #include "confdefs.h"
3971 #include <sys/types.h> 3972 #include <sys/types.h>
3972 #if STDC_HEADERS 3973 #if STDC_HEADERS
3973 #include <stdlib.h> 3974 #include <stdlib.h>
3974 #include <stddef.h> 3975 #include <stddef.h>
3995 } 3996 }
3996 3997
3997 fi 3998 fi
3998 3999
3999 echo $ac_n "checking for off_t""... $ac_c" 1>&6 4000 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4000 echo "configure:4001: checking for off_t" >&5 4001 echo "configure:4002: checking for off_t" >&5
4001 4002
4002 cat > conftest.$ac_ext <<EOF 4003 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure" 4004 #line 4005 "configure"
4004 #include "confdefs.h" 4005 #include "confdefs.h"
4005 #include <sys/types.h> 4006 #include <sys/types.h>
4006 #if STDC_HEADERS 4007 #if STDC_HEADERS
4007 #include <stdlib.h> 4008 #include <stdlib.h>
4008 #include <stddef.h> 4009 #include <stddef.h>
4029 } 4030 }
4030 4031
4031 fi 4032 fi
4032 4033
4033 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 4034 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4034 echo "configure:4035: checking for ssize_t" >&5 4035 echo "configure:4036: checking for ssize_t" >&5
4035 4036
4036 cat > conftest.$ac_ext <<EOF 4037 cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure" 4038 #line 4039 "configure"
4038 #include "confdefs.h" 4039 #include "confdefs.h"
4039 #include <sys/types.h> 4040 #include <sys/types.h>
4040 #if STDC_HEADERS 4041 #if STDC_HEADERS
4041 #include <stdlib.h> 4042 #include <stdlib.h>
4042 #include <stddef.h> 4043 #include <stddef.h>
4064 4065
4065 fi 4066 fi
4066 4067
4067 4068
4068 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 4069 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4069 echo "configure:4070: checking for socklen_t" >&5 4070 echo "configure:4071: checking for socklen_t" >&5
4070 cat > conftest.$ac_ext <<EOF 4071 cat > conftest.$ac_ext <<EOF
4071 #line 4072 "configure" 4072 #line 4073 "configure"
4072 #include "confdefs.h" 4073 #include "confdefs.h"
4073 #include <sys/socket.h> 4074 #include <sys/socket.h>
4074 socklen_t x; 4075 socklen_t x;
4075 4076
4076 int main() { 4077 int main() {
4077 4078
4078 ; return 0; } 4079 ; return 0; }
4079 EOF 4080 EOF
4080 if { (eval echo configure:4081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4081 if { (eval echo configure:4082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4081 rm -rf conftest* 4082 rm -rf conftest*
4082 echo "$ac_t""yes" 1>&6 4083 echo "$ac_t""yes" 1>&6
4083 else 4084 else
4084 echo "configure: failed program was:" >&5 4085 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5 4086 cat conftest.$ac_ext >&5
4086 rm -rf conftest* 4087 rm -rf conftest*
4087 4088
4088 cat > conftest.$ac_ext <<EOF 4089 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure" 4090 #line 4091 "configure"
4090 #include "confdefs.h" 4091 #include "confdefs.h"
4091 #include <sys/socket.h> 4092 #include <sys/socket.h>
4092 int accept (int, struct sockaddr *, size_t *); 4093 int accept (int, struct sockaddr *, size_t *);
4093 4094
4094 int main() { 4095 int main() {
4095 4096
4096 ; return 0; } 4097 ; return 0; }
4097 EOF 4098 EOF
4098 if { (eval echo configure:4099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4099 if { (eval echo configure:4100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4099 rm -rf conftest* 4100 rm -rf conftest*
4100 4101
4101 echo "$ac_t""size_t" 1>&6 4102 echo "$ac_t""size_t" 1>&6
4102 { test "$extra_verbose" = "yes" && cat << \EOF 4103 { test "$extra_verbose" = "yes" && cat << \EOF
4103 Defining socklen_t = size_t 4104 Defining socklen_t = size_t
4125 rm -f conftest* 4126 rm -f conftest*
4126 fi 4127 fi
4127 rm -f conftest* 4128 rm -f conftest*
4128 4129
4129 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 4130 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4130 echo "configure:4131: checking for struct timeval" >&5 4131 echo "configure:4132: checking for struct timeval" >&5
4131 cat > conftest.$ac_ext <<EOF 4132 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure" 4133 #line 4134 "configure"
4133 #include "confdefs.h" 4134 #include "confdefs.h"
4134 #ifdef TIME_WITH_SYS_TIME 4135 #ifdef TIME_WITH_SYS_TIME
4135 #include <sys/time.h> 4136 #include <sys/time.h>
4136 #include <time.h> 4137 #include <time.h>
4137 #else 4138 #else
4143 #endif 4144 #endif
4144 int main() { 4145 int main() {
4145 static struct timeval x; x.tv_sec = x.tv_usec; 4146 static struct timeval x; x.tv_sec = x.tv_usec;
4146 ; return 0; } 4147 ; return 0; }
4147 EOF 4148 EOF
4148 if { (eval echo configure:4149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4149 if { (eval echo configure:4150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4149 rm -rf conftest* 4150 rm -rf conftest*
4150 echo "$ac_t""yes" 1>&6 4151 echo "$ac_t""yes" 1>&6
4151 HAVE_TIMEVAL=yes 4152 HAVE_TIMEVAL=yes
4152 { test "$extra_verbose" = "yes" && cat << \EOF 4153 { test "$extra_verbose" = "yes" && cat << \EOF
4153 Defining HAVE_TIMEVAL 4154 Defining HAVE_TIMEVAL
4165 HAVE_TIMEVAL=no 4166 HAVE_TIMEVAL=no
4166 fi 4167 fi
4167 rm -f conftest* 4168 rm -f conftest*
4168 4169
4169 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4170 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4170 echo "configure:4171: checking whether struct tm is in sys/time.h or time.h" >&5 4171 echo "configure:4172: checking whether struct tm is in sys/time.h or time.h" >&5
4171 4172
4172 cat > conftest.$ac_ext <<EOF 4173 cat > conftest.$ac_ext <<EOF
4173 #line 4174 "configure" 4174 #line 4175 "configure"
4174 #include "confdefs.h" 4175 #include "confdefs.h"
4175 #include <sys/types.h> 4176 #include <sys/types.h>
4176 #include <time.h> 4177 #include <time.h>
4177 int main() { 4178 int main() {
4178 struct tm *tp; tp->tm_sec; 4179 struct tm *tp; tp->tm_sec;
4179 ; return 0; } 4180 ; return 0; }
4180 EOF 4181 EOF
4181 if { (eval echo configure:4182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4182 if { (eval echo configure:4183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4182 rm -rf conftest* 4183 rm -rf conftest*
4183 ac_cv_struct_tm=time.h 4184 ac_cv_struct_tm=time.h
4184 else 4185 else
4185 echo "configure: failed program was:" >&5 4186 echo "configure: failed program was:" >&5
4186 cat conftest.$ac_ext >&5 4187 cat conftest.$ac_ext >&5
4200 } 4201 }
4201 4202
4202 fi 4203 fi
4203 4204
4204 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 4205 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4205 echo "configure:4206: checking for tm_zone in struct tm" >&5 4206 echo "configure:4207: checking for tm_zone in struct tm" >&5
4206 4207
4207 cat > conftest.$ac_ext <<EOF 4208 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure" 4209 #line 4210 "configure"
4209 #include "confdefs.h" 4210 #include "confdefs.h"
4210 #include <sys/types.h> 4211 #include <sys/types.h>
4211 #include <$ac_cv_struct_tm> 4212 #include <$ac_cv_struct_tm>
4212 int main() { 4213 int main() {
4213 struct tm tm; tm.tm_zone; 4214 struct tm tm; tm.tm_zone;
4214 ; return 0; } 4215 ; return 0; }
4215 EOF 4216 EOF
4216 if { (eval echo configure:4217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4217 if { (eval echo configure:4218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4217 rm -rf conftest* 4218 rm -rf conftest*
4218 ac_cv_struct_tm_zone=yes 4219 ac_cv_struct_tm_zone=yes
4219 else 4220 else
4220 echo "configure: failed program was:" >&5 4221 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5 4222 cat conftest.$ac_ext >&5
4234 EOF 4235 EOF
4235 } 4236 }
4236 4237
4237 else 4238 else
4238 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4239 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4239 echo "configure:4240: checking for tzname" >&5 4240 echo "configure:4241: checking for tzname" >&5
4240 4241
4241 cat > conftest.$ac_ext <<EOF 4242 cat > conftest.$ac_ext <<EOF
4242 #line 4243 "configure" 4243 #line 4244 "configure"
4243 #include "confdefs.h" 4244 #include "confdefs.h"
4244 #include <time.h> 4245 #include <time.h>
4245 #ifndef tzname /* For SGI. */ 4246 #ifndef tzname /* For SGI. */
4246 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4247 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4247 #endif 4248 #endif
4248 int main() { 4249 int main() {
4249 atoi(*tzname); 4250 atoi(*tzname);
4250 ; return 0; } 4251 ; return 0; }
4251 EOF 4252 EOF
4252 if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4253 rm -rf conftest* 4254 rm -rf conftest*
4254 ac_cv_var_tzname=yes 4255 ac_cv_var_tzname=yes
4255 else 4256 else
4256 echo "configure: failed program was:" >&5 4257 echo "configure: failed program was:" >&5
4257 cat conftest.$ac_ext >&5 4258 cat conftest.$ac_ext >&5
4273 fi 4274 fi
4274 fi 4275 fi
4275 4276
4276 4277
4277 echo $ac_n "checking for working const""... $ac_c" 1>&6 4278 echo $ac_n "checking for working const""... $ac_c" 1>&6
4278 echo "configure:4279: checking for working const" >&5 4279 echo "configure:4280: checking for working const" >&5
4279 4280
4280 cat > conftest.$ac_ext <<EOF 4281 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure" 4282 #line 4283 "configure"
4282 #include "confdefs.h" 4283 #include "confdefs.h"
4283 4284
4284 int main() { 4285 int main() {
4285 4286
4286 /* Ultrix mips cc rejects this. */ 4287 /* Ultrix mips cc rejects this. */
4287 typedef int charset[2]; const charset x; 4288 typedef int charset[2]; const charset x = {0,0};
4288 /* SunOS 4.1.1 cc rejects this. */ 4289 /* SunOS 4.1.1 cc rejects this. */
4289 char const *const *ccp; 4290 char const *const *ccp;
4290 char **p; 4291 char **p;
4291 /* NEC SVR4.0.2 mips cc rejects this. */ 4292 /* NEC SVR4.0.2 mips cc rejects this. */
4292 struct point {int x, y;}; 4293 struct point {int x, y;};
4325 const int foo = 10; 4326 const int foo = 10;
4326 } 4327 }
4327 4328
4328 ; return 0; } 4329 ; return 0; }
4329 EOF 4330 EOF
4330 if { (eval echo configure:4331: \"$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
4331 rm -rf conftest* 4332 rm -rf conftest*
4332 ac_cv_c_const=yes 4333 ac_cv_c_const=yes
4333 else 4334 else
4334 echo "configure: failed program was:" >&5 4335 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5 4336 cat conftest.$ac_ext >&5
4350 4351
4351 fi 4352 fi
4352 4353
4353 4354
4354 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4355 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4355 echo "configure:4356: checking whether ${MAKE-make} sets \${MAKE}" >&5 4356 echo "configure:4357: checking whether ${MAKE-make} sets \${MAKE}" >&5
4356 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4357 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4357 4358
4358 cat > conftestmake <<\EOF 4359 cat > conftestmake <<\EOF
4359 all: 4360 all:
4360 @echo 'ac_maketemp="${MAKE}"' 4361 @echo 'ac_maketemp="${MAKE}"'
4375 SET_MAKE="MAKE=${MAKE-make}" 4376 SET_MAKE="MAKE=${MAKE-make}"
4376 fi 4377 fi
4377 4378
4378 4379
4379 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4380 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4380 echo "configure:4381: checking whether byte ordering is bigendian" >&5 4381 echo "configure:4382: checking whether byte ordering is bigendian" >&5
4381 4382
4382 ac_cv_c_bigendian=unknown 4383 ac_cv_c_bigendian=unknown
4383 # See if sys/param.h defines the BYTE_ORDER macro. 4384 # See if sys/param.h defines the BYTE_ORDER macro.
4384 cat > conftest.$ac_ext <<EOF 4385 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure" 4386 #line 4387 "configure"
4386 #include "confdefs.h" 4387 #include "confdefs.h"
4387 #include <sys/types.h> 4388 #include <sys/types.h>
4388 #include <sys/param.h> 4389 #include <sys/param.h>
4389 int main() { 4390 int main() {
4390 4391
4391 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4392 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4392 bogus endian macros 4393 bogus endian macros
4393 #endif 4394 #endif
4394 ; return 0; } 4395 ; return 0; }
4395 EOF 4396 EOF
4396 if { (eval echo configure:4397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4397 if { (eval echo configure:4398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4397 rm -rf conftest* 4398 rm -rf conftest*
4398 # It does; now see whether it defined to BIG_ENDIAN or not. 4399 # It does; now see whether it defined to BIG_ENDIAN or not.
4399 cat > conftest.$ac_ext <<EOF 4400 cat > conftest.$ac_ext <<EOF
4400 #line 4401 "configure" 4401 #line 4402 "configure"
4401 #include "confdefs.h" 4402 #include "confdefs.h"
4402 #include <sys/types.h> 4403 #include <sys/types.h>
4403 #include <sys/param.h> 4404 #include <sys/param.h>
4404 int main() { 4405 int main() {
4405 4406
4406 #if BYTE_ORDER != BIG_ENDIAN 4407 #if BYTE_ORDER != BIG_ENDIAN
4407 not big endian 4408 not big endian
4408 #endif 4409 #endif
4409 ; return 0; } 4410 ; return 0; }
4410 EOF 4411 EOF
4411 if { (eval echo configure:4412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4412 if { (eval echo configure:4413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4412 rm -rf conftest* 4413 rm -rf conftest*
4413 ac_cv_c_bigendian=yes 4414 ac_cv_c_bigendian=yes
4414 else 4415 else
4415 echo "configure: failed program was:" >&5 4416 echo "configure: failed program was:" >&5
4416 cat conftest.$ac_ext >&5 4417 cat conftest.$ac_ext >&5
4423 cat conftest.$ac_ext >&5 4424 cat conftest.$ac_ext >&5
4424 fi 4425 fi
4425 rm -f conftest* 4426 rm -f conftest*
4426 if test $ac_cv_c_bigendian = unknown; then 4427 if test $ac_cv_c_bigendian = unknown; then
4427 cat > conftest.$ac_ext <<EOF 4428 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure" 4429 #line 4430 "configure"
4429 #include "confdefs.h" 4430 #include "confdefs.h"
4430 main () { 4431 main () {
4431 /* Are we little or big endian? From Harbison&Steele. */ 4432 /* Are we little or big endian? From Harbison&Steele. */
4432 union 4433 union
4433 { 4434 {
4436 } u; 4437 } u;
4437 u.l = 1; 4438 u.l = 1;
4438 exit (u.c[sizeof (long) - 1] == 1); 4439 exit (u.c[sizeof (long) - 1] == 1);
4439 } 4440 }
4440 EOF 4441 EOF
4441 if { (eval echo configure:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4442 if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4442 then 4443 then
4443 ac_cv_c_bigendian=no 4444 ac_cv_c_bigendian=no
4444 else 4445 else
4445 conftest_rc="$?" 4446 conftest_rc="$?"
4446 echo "configure: failed program was:" >&5 4447 echo "configure: failed program was:" >&5
4463 4464
4464 fi 4465 fi
4465 4466
4466 4467
4467 echo $ac_n "checking size of short""... $ac_c" 1>&6 4468 echo $ac_n "checking size of short""... $ac_c" 1>&6
4468 echo "configure:4469: checking size of short" >&5 4469 echo "configure:4470: checking size of short" >&5
4469 4470
4470 cat > conftest.$ac_ext <<EOF 4471 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure" 4472 #line 4473 "configure"
4472 #include "confdefs.h" 4473 #include "confdefs.h"
4473 #include <stdio.h> 4474 #include <stdio.h>
4474 #include <sys/types.h>
4475 main() 4475 main()
4476 { 4476 {
4477 FILE *f=fopen("conftestval", "w"); 4477 FILE *f=fopen("conftestval", "w");
4478 if (!f) exit(1); 4478 if (!f) exit(1);
4479 fprintf(f, "%d\n", sizeof(short)); 4479 fprintf(f, "%d\n", sizeof(short));
4512 4512
4513 cat > conftest.$ac_ext <<EOF 4513 cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure" 4514 #line 4515 "configure"
4515 #include "confdefs.h" 4515 #include "confdefs.h"
4516 #include <stdio.h> 4516 #include <stdio.h>
4517 #include <sys/types.h>
4518 main() 4517 main()
4519 { 4518 {
4520 FILE *f=fopen("conftestval", "w"); 4519 FILE *f=fopen("conftestval", "w");
4521 if (!f) exit(1); 4520 if (!f) exit(1);
4522 fprintf(f, "%d\n", sizeof(int)); 4521 fprintf(f, "%d\n", sizeof(int));
4523 exit(0); 4522 exit(0);
4524 } 4523 }
4525 EOF 4524 EOF
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4525 if { (eval echo configure:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4527 then 4526 then
4528 ac_cv_sizeof_int=`cat conftestval` 4527 ac_cv_sizeof_int=`cat conftestval`
4529 else 4528 else
4530 conftest_rc="$?" 4529 conftest_rc="$?"
4531 echo "configure: failed program was:" >&5 4530 echo "configure: failed program was:" >&5
4543 EOF 4542 EOF
4544 } 4543 }
4545 4544
4546 4545
4547 echo $ac_n "checking size of long""... $ac_c" 1>&6 4546 echo $ac_n "checking size of long""... $ac_c" 1>&6
4548 echo "configure:4549: checking size of long" >&5 4547 echo "configure:4548: checking size of long" >&5
4549 4548
4550 cat > conftest.$ac_ext <<EOF 4549 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure" 4550 #line 4551 "configure"
4552 #include "confdefs.h" 4551 #include "confdefs.h"
4553 #include <stdio.h> 4552 #include <stdio.h>
4554 #include <sys/types.h>
4555 main() 4553 main()
4556 { 4554 {
4557 FILE *f=fopen("conftestval", "w"); 4555 FILE *f=fopen("conftestval", "w");
4558 if (!f) exit(1); 4556 if (!f) exit(1);
4559 fprintf(f, "%d\n", sizeof(long)); 4557 fprintf(f, "%d\n", sizeof(long));
4560 exit(0); 4558 exit(0);
4561 } 4559 }
4562 EOF 4560 EOF
4563 if { (eval echo configure:4564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4564 then 4562 then
4565 ac_cv_sizeof_long=`cat conftestval` 4563 ac_cv_sizeof_long=`cat conftestval`
4566 else 4564 else
4567 conftest_rc="$?" 4565 conftest_rc="$?"
4568 echo "configure: failed program was:" >&5 4566 echo "configure: failed program was:" >&5
4580 EOF 4578 EOF
4581 } 4579 }
4582 4580
4583 4581
4584 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4582 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4585 echo "configure:4586: checking size of long long" >&5 4583 echo "configure:4584: checking size of long long" >&5
4586 4584
4587 cat > conftest.$ac_ext <<EOF 4585 cat > conftest.$ac_ext <<EOF
4588 #line 4589 "configure" 4586 #line 4587 "configure"
4589 #include "confdefs.h" 4587 #include "confdefs.h"
4590 #include <stdio.h> 4588 #include <stdio.h>
4591 #include <sys/types.h>
4592 main() 4589 main()
4593 { 4590 {
4594 FILE *f=fopen("conftestval", "w"); 4591 FILE *f=fopen("conftestval", "w");
4595 if (!f) exit(1); 4592 if (!f) exit(1);
4596 fprintf(f, "%d\n", sizeof(long long)); 4593 fprintf(f, "%d\n", sizeof(long long));
4597 exit(0); 4594 exit(0);
4598 } 4595 }
4599 EOF 4596 EOF
4600 if { (eval echo configure:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4601 then 4598 then
4602 ac_cv_sizeof_long_long=`cat conftestval` 4599 ac_cv_sizeof_long_long=`cat conftestval`
4603 else 4600 else
4604 conftest_rc="$?" 4601 conftest_rc="$?"
4605 echo "configure: failed program was:" >&5 4602 echo "configure: failed program was:" >&5
4617 EOF 4614 EOF
4618 } 4615 }
4619 4616
4620 4617
4621 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4618 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4622 echo "configure:4623: checking size of void *" >&5 4619 echo "configure:4620: checking size of void *" >&5
4623 4620
4624 cat > conftest.$ac_ext <<EOF 4621 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure" 4622 #line 4623 "configure"
4626 #include "confdefs.h" 4623 #include "confdefs.h"
4627 #include <stdio.h> 4624 #include <stdio.h>
4628 #include <sys/types.h>
4629 main() 4625 main()
4630 { 4626 {
4631 FILE *f=fopen("conftestval", "w"); 4627 FILE *f=fopen("conftestval", "w");
4632 if (!f) exit(1); 4628 if (!f) exit(1);
4633 fprintf(f, "%d\n", sizeof(void *)); 4629 fprintf(f, "%d\n", sizeof(void *));
4634 exit(0); 4630 exit(0);
4635 } 4631 }
4636 EOF 4632 EOF
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4638 then 4634 then
4639 ac_cv_sizeof_void_p=`cat conftestval` 4635 ac_cv_sizeof_void_p=`cat conftestval`
4640 else 4636 else
4641 conftest_rc="$?" 4637 conftest_rc="$?"
4642 echo "configure: failed program was:" >&5 4638 echo "configure: failed program was:" >&5
4655 } 4651 }
4656 4652
4657 4653
4658 4654
4659 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4655 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4660 echo "configure:4661: checking for long file names" >&5 4656 echo "configure:4657: checking for long file names" >&5
4661 4657
4662 ac_cv_sys_long_file_names=yes 4658 ac_cv_sys_long_file_names=yes
4663 # Test for long file names in all the places we know might matter: 4659 # Test for long file names in all the places we know might matter:
4664 # . the current directory, where building will happen 4660 # . the current directory, where building will happen
4665 # $prefix/lib where we will be installing things 4661 # $prefix/lib where we will be installing things
4701 4697
4702 fi 4698 fi
4703 4699
4704 4700
4705 echo $ac_n "checking for sin""... $ac_c" 1>&6 4701 echo $ac_n "checking for sin""... $ac_c" 1>&6
4706 echo "configure:4707: checking for sin" >&5 4702 echo "configure:4703: checking for sin" >&5
4707 4703
4708 cat > conftest.$ac_ext <<EOF 4704 cat > conftest.$ac_ext <<EOF
4709 #line 4710 "configure" 4705 #line 4706 "configure"
4710 #include "confdefs.h" 4706 #include "confdefs.h"
4711 /* System header to define __stub macros and hopefully few prototypes, 4707 /* System header to define __stub macros and hopefully few prototypes,
4712 which can conflict with char sin(); below. */ 4708 which can conflict with char sin(); below. */
4713 #include <assert.h> 4709 #include <assert.h>
4714 /* Override any gcc2 internal prototype to avoid an error. */ 4710 /* Override any gcc2 internal prototype to avoid an error. */
4727 sin(); 4723 sin();
4728 #endif 4724 #endif
4729 4725
4730 ; return 0; } 4726 ; return 0; }
4731 EOF 4727 EOF
4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4728 if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4733 rm -rf conftest* 4729 rm -rf conftest*
4734 eval "ac_cv_func_sin=yes" 4730 eval "ac_cv_func_sin=yes"
4735 else 4731 else
4736 echo "configure: failed program was:" >&5 4732 echo "configure: failed program was:" >&5
4737 cat conftest.$ac_ext >&5 4733 cat conftest.$ac_ext >&5
4745 : 4741 :
4746 else 4742 else
4747 echo "$ac_t""no" 1>&6 4743 echo "$ac_t""no" 1>&6
4748 4744
4749 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4745 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4750 echo "configure:4751: checking for sin in -lm" >&5 4746 echo "configure:4747: checking for sin in -lm" >&5
4751 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4747 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4752 4748
4753 xe_check_libs=" -lm " 4749 xe_check_libs=" -lm "
4754 cat > conftest.$ac_ext <<EOF 4750 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure" 4751 #line 4752 "configure"
4756 #include "confdefs.h" 4752 #include "confdefs.h"
4757 /* Override any gcc2 internal prototype to avoid an error. */ 4753 /* Override any gcc2 internal prototype to avoid an error. */
4758 /* We use char because int might match the return type of a gcc2 4754 /* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */ 4755 builtin and then its argument prototype would still apply. */
4760 char sin(); 4756 char sin();
4761 4757
4762 int main() { 4758 int main() {
4763 sin() 4759 sin()
4764 ; return 0; } 4760 ; return 0; }
4765 EOF 4761 EOF
4766 if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4767 rm -rf conftest* 4763 rm -rf conftest*
4768 eval "ac_cv_lib_$ac_lib_var=yes" 4764 eval "ac_cv_lib_$ac_lib_var=yes"
4769 else 4765 else
4770 echo "configure: failed program was:" >&5 4766 echo "configure: failed program was:" >&5
4771 cat conftest.$ac_ext >&5 4767 cat conftest.$ac_ext >&5
4805 EOF 4801 EOF
4806 } 4802 }
4807 4803
4808 4804
4809 cat > conftest.$ac_ext <<EOF 4805 cat > conftest.$ac_ext <<EOF
4810 #line 4811 "configure" 4806 #line 4807 "configure"
4811 #include "confdefs.h" 4807 #include "confdefs.h"
4812 #include <math.h> 4808 #include <math.h>
4813 int main() { 4809 int main() {
4814 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4810 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4815 ; return 0; } 4811 ; return 0; }
4816 EOF 4812 EOF
4817 if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4813 if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4818 rm -rf conftest* 4814 rm -rf conftest*
4819 { test "$extra_verbose" = "yes" && cat << \EOF 4815 { test "$extra_verbose" = "yes" && cat << \EOF
4820 Defining HAVE_INVERSE_HYPERBOLIC 4816 Defining HAVE_INVERSE_HYPERBOLIC
4821 EOF 4817 EOF
4822 cat >> confdefs.h <<\EOF 4818 cat >> confdefs.h <<\EOF
4831 rm -f conftest* 4827 rm -f conftest*
4832 4828
4833 for ac_func in mkstemp 4829 for ac_func in mkstemp
4834 do 4830 do
4835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4836 echo "configure:4837: checking for $ac_func" >&5 4832 echo "configure:4833: checking for $ac_func" >&5
4837 4833
4838 cat > conftest.$ac_ext <<EOF 4834 cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure" 4835 #line 4836 "configure"
4840 #include "confdefs.h" 4836 #include "confdefs.h"
4841 /* System header to define __stub macros and hopefully few prototypes, 4837 /* System header to define __stub macros and hopefully few prototypes,
4842 which can conflict with char $ac_func(); below. */ 4838 which can conflict with char $ac_func(); below. */
4843 #include <assert.h> 4839 #include <assert.h>
4844 /* Override any gcc2 internal prototype to avoid an error. */ 4840 /* Override any gcc2 internal prototype to avoid an error. */
4857 $ac_func(); 4853 $ac_func();
4858 #endif 4854 #endif
4859 4855
4860 ; return 0; } 4856 ; return 0; }
4861 EOF 4857 EOF
4862 if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4858 if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4863 rm -rf conftest* 4859 rm -rf conftest*
4864 eval "ac_cv_func_$ac_func=yes" 4860 eval "ac_cv_func_$ac_func=yes"
4865 else 4861 else
4866 echo "configure: failed program was:" >&5 4862 echo "configure: failed program was:" >&5
4867 cat conftest.$ac_ext >&5 4863 cat conftest.$ac_ext >&5
4886 fi 4882 fi
4887 done 4883 done
4888 4884
4889 4885
4890 echo "checking type of mail spool file locking" 1>&6 4886 echo "checking type of mail spool file locking" 1>&6
4891 echo "configure:4892: checking type of mail spool file locking" >&5 4887 echo "configure:4888: checking type of mail spool file locking" >&5
4892 for ac_func in lockf flock 4888 for ac_func in lockf flock
4893 do 4889 do
4894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4895 echo "configure:4896: checking for $ac_func" >&5 4891 echo "configure:4892: checking for $ac_func" >&5
4896 4892
4897 cat > conftest.$ac_ext <<EOF 4893 cat > conftest.$ac_ext <<EOF
4898 #line 4899 "configure" 4894 #line 4895 "configure"
4899 #include "confdefs.h" 4895 #include "confdefs.h"
4900 /* System header to define __stub macros and hopefully few prototypes, 4896 /* System header to define __stub macros and hopefully few prototypes,
4901 which can conflict with char $ac_func(); below. */ 4897 which can conflict with char $ac_func(); below. */
4902 #include <assert.h> 4898 #include <assert.h>
4903 /* Override any gcc2 internal prototype to avoid an error. */ 4899 /* Override any gcc2 internal prototype to avoid an error. */
4916 $ac_func(); 4912 $ac_func();
4917 #endif 4913 #endif
4918 4914
4919 ; return 0; } 4915 ; return 0; }
4920 EOF 4916 EOF
4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4917 if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4922 rm -rf conftest* 4918 rm -rf conftest*
4923 eval "ac_cv_func_$ac_func=yes" 4919 eval "ac_cv_func_$ac_func=yes"
4924 else 4920 else
4925 echo "configure: failed program was:" >&5 4921 echo "configure: failed program was:" >&5
4926 cat conftest.$ac_ext >&5 4922 cat conftest.$ac_ext >&5
4998 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 4994 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4999 4995
5000 case "$opsys" in decosf*) 4996 case "$opsys" in decosf*)
5001 4997
5002 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4998 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
5003 echo "configure:5004: checking for cma_open in -lpthreads" >&5 4999 echo "configure:5000: checking for cma_open in -lpthreads" >&5
5004 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 5000 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
5005 5001
5006 xe_check_libs=" -lpthreads " 5002 xe_check_libs=" -lpthreads "
5007 cat > conftest.$ac_ext <<EOF 5003 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure" 5004 #line 5005 "configure"
5009 #include "confdefs.h" 5005 #include "confdefs.h"
5010 /* Override any gcc2 internal prototype to avoid an error. */ 5006 /* Override any gcc2 internal prototype to avoid an error. */
5011 /* We use char because int might match the return type of a gcc2 5007 /* We use char because int might match the return type of a gcc2
5012 builtin and then its argument prototype would still apply. */ 5008 builtin and then its argument prototype would still apply. */
5013 char cma_open(); 5009 char cma_open();
5014 5010
5015 int main() { 5011 int main() {
5016 cma_open() 5012 cma_open()
5017 ; return 0; } 5013 ; return 0; }
5018 EOF 5014 EOF
5019 if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5015 if { (eval echo configure:5016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5020 rm -rf conftest* 5016 rm -rf conftest*
5021 eval "ac_cv_lib_$ac_lib_var=yes" 5017 eval "ac_cv_lib_$ac_lib_var=yes"
5022 else 5018 else
5023 echo "configure: failed program was:" >&5 5019 echo "configure: failed program was:" >&5
5024 cat conftest.$ac_ext >&5 5020 cat conftest.$ac_ext >&5
5051 c_switch_site="$c_switch_site -threads" ;; 5047 c_switch_site="$c_switch_site -threads" ;;
5052 esac 5048 esac
5053 5049
5054 5050
5055 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 5051 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5056 echo "configure:5057: checking whether the -xildoff compiler flag is required" >&5 5052 echo "configure:5053: checking whether the -xildoff compiler flag is required" >&5
5057 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 5053 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5058 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 5054 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5059 then echo "$ac_t""no" 1>&6; 5055 then echo "$ac_t""no" 1>&6;
5060 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 5056 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
5061 fi 5057 fi
5063 fi 5059 fi
5064 5060
5065 if test "$opsys" = "sol2"; then 5061 if test "$opsys" = "sol2"; then
5066 if test "$os_release" -ge 56; then 5062 if test "$os_release" -ge 56; then
5067 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 5063 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5068 echo "configure:5069: checking for \"-z ignore\" linker flag" >&5 5064 echo "configure:5065: checking for \"-z ignore\" linker flag" >&5
5069 case "`ld -h 2>&1`" in 5065 case "`ld -h 2>&1`" in
5070 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 5066 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5071 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 5067 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5072 *) echo "$ac_t""no" 1>&6 ;; 5068 *) echo "$ac_t""no" 1>&6 ;;
5073 esac 5069 esac
5074 fi 5070 fi
5075 fi 5071 fi
5076 5072
5077 if test "$pdump" != "yes"; then 5073 if test "$pdump" != "yes"; then
5078 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6 5074 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
5079 echo "configure:5080: checking for \"-z nocombreloc\" linker flag" >&5 5075 echo "configure:5076: checking for \"-z nocombreloc\" linker flag" >&5
5080 case "`ld --help 2>&1`" in 5076 case "`ld --help 2>&1`" in
5081 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6 5077 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
5082 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;; 5078 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
5083 *) echo "$ac_t""no" 1>&6 ;; 5079 *) echo "$ac_t""no" 1>&6 ;;
5084 esac 5080 esac
5085 fi 5081 fi
5086 5082
5087 5083
5088 echo "checking "for specified window system"" 1>&6 5084 echo "checking "for specified window system"" 1>&6
5089 echo "configure:5090: checking "for specified window system"" >&5 5085 echo "configure:5086: checking "for specified window system"" >&5
5090 5086
5091 5087
5092 GNOME_CONFIG=no 5088 GNOME_CONFIG=no
5093 GTK_CONFIG=no 5089 GTK_CONFIG=no
5094 5090
5095 if test "$with_gnome" != "no"; then 5091 if test "$with_gnome" != "no"; then
5096 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6 5092 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5097 echo "configure:5098: checking for GNOME configuration script" >&5 5093 echo "configure:5094: checking for GNOME configuration script" >&5
5098 for possible in gnome-config 5094 for possible in gnome-config
5099 do 5095 do
5100 possible_version=`${possible} --version 2> /dev/null` 5096 possible_version=`${possible} --version 2> /dev/null`
5101 if test "x${possible_version}" != "x"; then 5097 if test "x${possible_version}" != "x"; then
5102 GNOME_CONFIG="${possible}" 5098 GNOME_CONFIG="${possible}"
5123 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi 5119 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5124 fi 5120 fi
5125 5121
5126 if test "$with_gtk" != "no";then 5122 if test "$with_gtk" != "no";then
5127 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6 5123 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5128 echo "configure:5129: checking for GTK configuration script" >&5 5124 echo "configure:5125: checking for GTK configuration script" >&5
5129 for possible in gtk12-config gtk14-config gtk-config 5125 for possible in gtk12-config gtk14-config gtk-config
5130 do 5126 do
5131 possible_version=`${possible} --version 2> /dev/null` 5127 possible_version=`${possible} --version 2> /dev/null`
5132 if test "x${possible_version}" != "x"; then 5128 if test "x${possible_version}" != "x"; then
5133 GTK_CONFIG="${possible}" 5129 GTK_CONFIG="${possible}"
5145 echo "$ac_t""${GTK_CONFIG}" 1>&6 5141 echo "$ac_t""${GTK_CONFIG}" 1>&6
5146 fi 5142 fi
5147 5143
5148 if test "${GTK_CONFIG}" != "no"; then 5144 if test "${GTK_CONFIG}" != "no"; then
5149 echo $ac_n "checking gtk version""... $ac_c" 1>&6 5145 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5150 echo "configure:5151: checking gtk version" >&5 5146 echo "configure:5147: checking gtk version" >&5
5151 GTK_VERSION=`${GTK_CONFIG} --version` 5147 GTK_VERSION=`${GTK_CONFIG} --version`
5152 echo "$ac_t""${GTK_VERSION}" 1>&6 5148 echo "$ac_t""${GTK_VERSION}" 1>&6
5153 5149
5154 echo $ac_n "checking gtk libs""... $ac_c" 1>&6 5150 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5155 echo "configure:5156: checking gtk libs" >&5 5151 echo "configure:5152: checking gtk libs" >&5
5156 GTK_LIBS=`${GTK_CONFIG} --libs` 5152 GTK_LIBS=`${GTK_CONFIG} --libs`
5157 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi 5153 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5158 echo "$ac_t""${GTK_LIBS}" 1>&6 5154 echo "$ac_t""${GTK_LIBS}" 1>&6
5159 5155
5160 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6 5156 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5161 echo "configure:5162: checking gtk cflags" >&5 5157 echo "configure:5158: checking gtk cflags" >&5
5162 GTK_CFLAGS=`${GTK_CONFIG} --cflags` 5158 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5163 if test "$GCC" = "yes"; then 5159 if test "$GCC" = "yes"; then
5164 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow" 5160 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5165 fi 5161 fi
5166 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi 5162 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5167 echo "$ac_t""${GTK_CFLAGS}" 1>&6 5163 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5168 5164
5169 5165
5170 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6 5166 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5171 echo "configure:5172: checking for main in -lgdk_imlib" >&5 5167 echo "configure:5168: checking for main in -lgdk_imlib" >&5
5172 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'` 5168 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5173 5169
5174 xe_check_libs=" -lgdk_imlib " 5170 xe_check_libs=" -lgdk_imlib "
5175 cat > conftest.$ac_ext <<EOF 5171 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure" 5172 #line 5173 "configure"
5177 #include "confdefs.h" 5173 #include "confdefs.h"
5178 5174
5179 int main() { 5175 int main() {
5180 main() 5176 main()
5181 ; return 0; } 5177 ; return 0; }
5182 EOF 5178 EOF
5183 if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5179 if { (eval echo configure:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5184 rm -rf conftest* 5180 rm -rf conftest*
5185 eval "ac_cv_lib_$ac_lib_var=yes" 5181 eval "ac_cv_lib_$ac_lib_var=yes"
5186 else 5182 else
5187 echo "configure: failed program was:" >&5 5183 echo "configure: failed program was:" >&5
5188 cat conftest.$ac_ext >&5 5184 cat conftest.$ac_ext >&5
5200 fi 5196 fi
5201 5197
5202 5198
5203 5199
5204 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6 5200 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5205 echo "configure:5206: checking for Imlib_init in -lImlib" >&5 5201 echo "configure:5202: checking for Imlib_init in -lImlib" >&5
5206 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'` 5202 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5207 5203
5208 xe_check_libs=" -lImlib " 5204 xe_check_libs=" -lImlib "
5209 cat > conftest.$ac_ext <<EOF 5205 cat > conftest.$ac_ext <<EOF
5210 #line 5211 "configure" 5206 #line 5207 "configure"
5211 #include "confdefs.h" 5207 #include "confdefs.h"
5212 /* Override any gcc2 internal prototype to avoid an error. */ 5208 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2 5209 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */ 5210 builtin and then its argument prototype would still apply. */
5215 char Imlib_init(); 5211 char Imlib_init();
5216 5212
5217 int main() { 5213 int main() {
5218 Imlib_init() 5214 Imlib_init()
5219 ; return 0; } 5215 ; return 0; }
5220 EOF 5216 EOF
5221 if { (eval echo configure:5222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5222 rm -rf conftest* 5218 rm -rf conftest*
5223 eval "ac_cv_lib_$ac_lib_var=yes" 5219 eval "ac_cv_lib_$ac_lib_var=yes"
5224 else 5220 else
5225 echo "configure: failed program was:" >&5 5221 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5 5222 cat conftest.$ac_ext >&5
5239 5235
5240 5236
5241 for ac_func in gdk_imlib_init 5237 for ac_func in gdk_imlib_init
5242 do 5238 do
5243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5244 echo "configure:5245: checking for $ac_func" >&5 5240 echo "configure:5241: checking for $ac_func" >&5
5245 5241
5246 cat > conftest.$ac_ext <<EOF 5242 cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure" 5243 #line 5244 "configure"
5248 #include "confdefs.h" 5244 #include "confdefs.h"
5249 /* System header to define __stub macros and hopefully few prototypes, 5245 /* System header to define __stub macros and hopefully few prototypes,
5250 which can conflict with char $ac_func(); below. */ 5246 which can conflict with char $ac_func(); below. */
5251 #include <assert.h> 5247 #include <assert.h>
5252 /* Override any gcc2 internal prototype to avoid an error. */ 5248 /* Override any gcc2 internal prototype to avoid an error. */
5265 $ac_func(); 5261 $ac_func();
5266 #endif 5262 #endif
5267 5263
5268 ; return 0; } 5264 ; return 0; }
5269 EOF 5265 EOF
5270 if { (eval echo configure:5271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5266 if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5271 rm -rf conftest* 5267 rm -rf conftest*
5272 eval "ac_cv_func_$ac_func=yes" 5268 eval "ac_cv_func_$ac_func=yes"
5273 else 5269 else
5274 echo "configure: failed program was:" >&5 5270 echo "configure: failed program was:" >&5
5275 cat conftest.$ac_ext >&5 5271 cat conftest.$ac_ext >&5
5344 LDFLAGS="${LDFLAGS} ${GTK_LIBS}" 5340 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5345 for ac_hdr in glade/glade.h glade.h 5341 for ac_hdr in glade/glade.h glade.h
5346 do 5342 do
5347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5349 echo "configure:5350: checking for $ac_hdr" >&5 5345 echo "configure:5346: checking for $ac_hdr" >&5
5350 5346
5351 cat > conftest.$ac_ext <<EOF 5347 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure" 5348 #line 5349 "configure"
5353 #include "confdefs.h" 5349 #include "confdefs.h"
5354 #include <$ac_hdr> 5350 #include <$ac_hdr>
5355 EOF 5351 EOF
5356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5357 { (eval echo configure:5358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5353 { (eval echo configure:5354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5359 if test -z "$ac_err"; then 5355 if test -z "$ac_err"; then
5360 rm -rf conftest* 5356 rm -rf conftest*
5361 eval "ac_cv_header_$ac_safe=yes" 5357 eval "ac_cv_header_$ac_safe=yes"
5362 else 5358 else
5383 fi 5379 fi
5384 done 5380 done
5385 5381
5386 5382
5387 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6 5383 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5388 echo "configure:5389: checking for main in -lxml" >&5 5384 echo "configure:5385: checking for main in -lxml" >&5
5389 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'` 5385 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5390 5386
5391 xe_check_libs=" -lxml " 5387 xe_check_libs=" -lxml "
5392 cat > conftest.$ac_ext <<EOF 5388 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure" 5389 #line 5390 "configure"
5394 #include "confdefs.h" 5390 #include "confdefs.h"
5395 5391
5396 int main() { 5392 int main() {
5397 main() 5393 main()
5398 ; return 0; } 5394 ; return 0; }
5399 EOF 5395 EOF
5400 if { (eval echo configure:5401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5401 rm -rf conftest* 5397 rm -rf conftest*
5402 eval "ac_cv_lib_$ac_lib_var=yes" 5398 eval "ac_cv_lib_$ac_lib_var=yes"
5403 else 5399 else
5404 echo "configure: failed program was:" >&5 5400 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5 5401 cat conftest.$ac_ext >&5
5417 fi 5413 fi
5418 5414
5419 5415
5420 5416
5421 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6 5417 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5422 echo "configure:5423: checking for main in -lglade" >&5 5418 echo "configure:5419: checking for main in -lglade" >&5
5423 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'` 5419 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5424 5420
5425 xe_check_libs=" -lglade " 5421 xe_check_libs=" -lglade "
5426 cat > conftest.$ac_ext <<EOF 5422 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure" 5423 #line 5424 "configure"
5428 #include "confdefs.h" 5424 #include "confdefs.h"
5429 5425
5430 int main() { 5426 int main() {
5431 main() 5427 main()
5432 ; return 0; } 5428 ; return 0; }
5433 EOF 5429 EOF
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5430 if { (eval echo configure:5431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 rm -rf conftest* 5431 rm -rf conftest*
5436 eval "ac_cv_lib_$ac_lib_var=yes" 5432 eval "ac_cv_lib_$ac_lib_var=yes"
5437 else 5433 else
5438 echo "configure: failed program was:" >&5 5434 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5 5435 cat conftest.$ac_ext >&5
5451 fi 5447 fi
5452 5448
5453 5449
5454 5450
5455 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6 5451 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5456 echo "configure:5457: checking for main in -lglade-gnome" >&5 5452 echo "configure:5453: checking for main in -lglade-gnome" >&5
5457 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'` 5453 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5458 5454
5459 xe_check_libs=" -lglade-gnome " 5455 xe_check_libs=" -lglade-gnome "
5460 cat > conftest.$ac_ext <<EOF 5456 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure" 5457 #line 5458 "configure"
5462 #include "confdefs.h" 5458 #include "confdefs.h"
5463 5459
5464 int main() { 5460 int main() {
5465 main() 5461 main()
5466 ; return 0; } 5462 ; return 0; }
5467 EOF 5463 EOF
5468 if { (eval echo configure:5469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5469 rm -rf conftest* 5465 rm -rf conftest*
5470 eval "ac_cv_lib_$ac_lib_var=yes" 5466 eval "ac_cv_lib_$ac_lib_var=yes"
5471 else 5467 else
5472 echo "configure: failed program was:" >&5 5468 echo "configure: failed program was:" >&5
5473 cat conftest.$ac_ext >&5 5469 cat conftest.$ac_ext >&5
5484 echo "$ac_t""no" 1>&6 5480 echo "$ac_t""no" 1>&6
5485 fi 5481 fi
5486 5482
5487 5483
5488 cat > conftest.$ac_ext <<EOF 5484 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure" 5485 #line 5486 "configure"
5490 #include "confdefs.h" 5486 #include "confdefs.h"
5491 #include <glade/glade-xml.h> 5487 #include <glade/glade-xml.h>
5492 EOF 5488 EOF
5493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5494 egrep "char \*txtdomain;" >/dev/null 2>&1; then 5490 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5543 # If we find X, set shell vars x_includes and x_libraries to the 5539 # If we find X, set shell vars x_includes and x_libraries to the
5544 # paths, otherwise set no_x=yes. 5540 # paths, otherwise set no_x=yes.
5545 # Uses ac_ vars as temps to allow command line to override cache and checks. 5541 # Uses ac_ vars as temps to allow command line to override cache and checks.
5546 # --without-x overrides everything else, but does not touch the cache. 5542 # --without-x overrides everything else, but does not touch the cache.
5547 echo $ac_n "checking for X""... $ac_c" 1>&6 5543 echo $ac_n "checking for X""... $ac_c" 1>&6
5548 echo "configure:5549: checking for X" >&5 5544 echo "configure:5545: checking for X" >&5
5549 5545
5550 # Check whether --with-x or --without-x was given. 5546 # Check whether --with-x or --without-x was given.
5551 if test "${with_x+set}" = set; then 5547 if test "${with_x+set}" = set; then
5552 withval="$with_x" 5548 withval="$with_x"
5553 : 5549 :
5603 # Guess where to find include files, by looking for this one X11 .h file. 5599 # Guess where to find include files, by looking for this one X11 .h file.
5604 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5600 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5605 5601
5606 # First, try using that file with no special directory specified. 5602 # First, try using that file with no special directory specified.
5607 cat > conftest.$ac_ext <<EOF 5603 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure" 5604 #line 5605 "configure"
5609 #include "confdefs.h" 5605 #include "confdefs.h"
5610 #include <$x_direct_test_include> 5606 #include <$x_direct_test_include>
5611 EOF 5607 EOF
5612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5613 { (eval echo configure:5614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5609 { (eval echo configure:5610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5615 if test -z "$ac_err"; then 5611 if test -z "$ac_err"; then
5616 rm -rf conftest* 5612 rm -rf conftest*
5617 # We can compile using X headers with no special include directory. 5613 # We can compile using X headers with no special include directory.
5618 ac_x_includes= 5614 ac_x_includes=
5677 # See if we find them without any special options. 5673 # See if we find them without any special options.
5678 # Don't add to $LIBS permanently. 5674 # Don't add to $LIBS permanently.
5679 ac_save_LIBS="$LIBS" 5675 ac_save_LIBS="$LIBS"
5680 LIBS="-l$x_direct_test_library $LIBS" 5676 LIBS="-l$x_direct_test_library $LIBS"
5681 cat > conftest.$ac_ext <<EOF 5677 cat > conftest.$ac_ext <<EOF
5682 #line 5683 "configure" 5678 #line 5679 "configure"
5683 #include "confdefs.h" 5679 #include "confdefs.h"
5684 5680
5685 int main() { 5681 int main() {
5686 ${x_direct_test_function}() 5682 ${x_direct_test_function}()
5687 ; return 0; } 5683 ; return 0; }
5688 EOF 5684 EOF
5689 if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5685 if { (eval echo configure:5686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5690 rm -rf conftest* 5686 rm -rf conftest*
5691 LIBS="$ac_save_LIBS" 5687 LIBS="$ac_save_LIBS"
5692 # We can link X programs with no special library path. 5688 # We can link X programs with no special library path.
5693 ac_x_libraries= 5689 ac_x_libraries=
5694 else 5690 else
5793 # For Solaris; some versions of Sun CC require a space after -R and 5789 # For Solaris; some versions of Sun CC require a space after -R and
5794 # others require no space. Words are not sufficient . . . . 5790 # others require no space. Words are not sufficient . . . .
5795 case "`(uname -sr) 2>/dev/null`" in 5791 case "`(uname -sr) 2>/dev/null`" in
5796 "SunOS 5"*) 5792 "SunOS 5"*)
5797 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5793 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5798 echo "configure:5799: checking whether -R must be followed by a space" >&5 5794 echo "configure:5795: checking whether -R must be followed by a space" >&5
5799 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5795 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5800 cat > conftest.$ac_ext <<EOF 5796 cat > conftest.$ac_ext <<EOF
5801 #line 5802 "configure" 5797 #line 5798 "configure"
5802 #include "confdefs.h" 5798 #include "confdefs.h"
5803 5799
5804 int main() { 5800 int main() {
5805 5801
5806 ; return 0; } 5802 ; return 0; }
5807 EOF 5803 EOF
5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5809 rm -rf conftest* 5805 rm -rf conftest*
5810 ac_R_nospace=yes 5806 ac_R_nospace=yes
5811 else 5807 else
5812 echo "configure: failed program was:" >&5 5808 echo "configure: failed program was:" >&5
5813 cat conftest.$ac_ext >&5 5809 cat conftest.$ac_ext >&5
5819 echo "$ac_t""no" 1>&6 5815 echo "$ac_t""no" 1>&6
5820 X_LIBS="$X_LIBS -R$x_libraries" 5816 X_LIBS="$X_LIBS -R$x_libraries"
5821 else 5817 else
5822 LIBS="$ac_xsave_LIBS -R $x_libraries" 5818 LIBS="$ac_xsave_LIBS -R $x_libraries"
5823 cat > conftest.$ac_ext <<EOF 5819 cat > conftest.$ac_ext <<EOF
5824 #line 5825 "configure" 5820 #line 5821 "configure"
5825 #include "confdefs.h" 5821 #include "confdefs.h"
5826 5822
5827 int main() { 5823 int main() {
5828 5824
5829 ; return 0; } 5825 ; return 0; }
5830 EOF 5826 EOF
5831 if { (eval echo configure:5832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5827 if { (eval echo configure:5828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5832 rm -rf conftest* 5828 rm -rf conftest*
5833 ac_R_space=yes 5829 ac_R_space=yes
5834 else 5830 else
5835 echo "configure: failed program was:" >&5 5831 echo "configure: failed program was:" >&5
5836 cat conftest.$ac_ext >&5 5832 cat conftest.$ac_ext >&5
5862 if test "$with_dnet" = "no" ; then 5858 if test "$with_dnet" = "no" ; then
5863 ac_cv_lib_dnet_dnet_ntoa=no 5859 ac_cv_lib_dnet_dnet_ntoa=no
5864 else 5860 else
5865 5861
5866 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5862 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5867 echo "configure:5868: checking for dnet_ntoa in -ldnet" >&5 5863 echo "configure:5864: checking for dnet_ntoa in -ldnet" >&5
5868 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5864 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5869 5865
5870 xe_check_libs=" -ldnet " 5866 xe_check_libs=" -ldnet "
5871 cat > conftest.$ac_ext <<EOF 5867 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure" 5868 #line 5869 "configure"
5873 #include "confdefs.h" 5869 #include "confdefs.h"
5874 /* Override any gcc2 internal prototype to avoid an error. */ 5870 /* Override any gcc2 internal prototype to avoid an error. */
5875 /* We use char because int might match the return type of a gcc2 5871 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */ 5872 builtin and then its argument prototype would still apply. */
5877 char dnet_ntoa(); 5873 char dnet_ntoa();
5878 5874
5879 int main() { 5875 int main() {
5880 dnet_ntoa() 5876 dnet_ntoa()
5881 ; return 0; } 5877 ; return 0; }
5882 EOF 5878 EOF
5883 if { (eval echo configure:5884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5884 rm -rf conftest* 5880 rm -rf conftest*
5885 eval "ac_cv_lib_$ac_lib_var=yes" 5881 eval "ac_cv_lib_$ac_lib_var=yes"
5886 else 5882 else
5887 echo "configure: failed program was:" >&5 5883 echo "configure: failed program was:" >&5
5888 cat conftest.$ac_ext >&5 5884 cat conftest.$ac_ext >&5
5902 fi 5898 fi
5903 5899
5904 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5900 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5905 5901
5906 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 5902 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5907 echo "configure:5908: checking for dnet_ntoa in -ldnet_stub" >&5 5903 echo "configure:5904: checking for dnet_ntoa in -ldnet_stub" >&5
5908 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5904 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5909 5905
5910 xe_check_libs=" -ldnet_stub " 5906 xe_check_libs=" -ldnet_stub "
5911 cat > conftest.$ac_ext <<EOF 5907 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure" 5908 #line 5909 "configure"
5913 #include "confdefs.h" 5909 #include "confdefs.h"
5914 /* Override any gcc2 internal prototype to avoid an error. */ 5910 /* Override any gcc2 internal prototype to avoid an error. */
5915 /* We use char because int might match the return type of a gcc2 5911 /* We use char because int might match the return type of a gcc2
5916 builtin and then its argument prototype would still apply. */ 5912 builtin and then its argument prototype would still apply. */
5917 char dnet_ntoa(); 5913 char dnet_ntoa();
5918 5914
5919 int main() { 5915 int main() {
5920 dnet_ntoa() 5916 dnet_ntoa()
5921 ; return 0; } 5917 ; return 0; }
5922 EOF 5918 EOF
5923 if { (eval echo configure:5924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5919 if { (eval echo configure:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5924 rm -rf conftest* 5920 rm -rf conftest*
5925 eval "ac_cv_lib_$ac_lib_var=yes" 5921 eval "ac_cv_lib_$ac_lib_var=yes"
5926 else 5922 else
5927 echo "configure: failed program was:" >&5 5923 echo "configure: failed program was:" >&5
5928 cat conftest.$ac_ext >&5 5924 cat conftest.$ac_ext >&5
5947 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5943 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5948 # needs -lnsl. 5944 # needs -lnsl.
5949 # The nsl library prevents programs from opening the X display 5945 # The nsl library prevents programs from opening the X display
5950 # on Irix 5.2, according to dickey@clark.net. 5946 # on Irix 5.2, according to dickey@clark.net.
5951 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5947 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5952 echo "configure:5953: checking for gethostbyname" >&5 5948 echo "configure:5949: checking for gethostbyname" >&5
5953 5949
5954 cat > conftest.$ac_ext <<EOF 5950 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure" 5951 #line 5952 "configure"
5956 #include "confdefs.h" 5952 #include "confdefs.h"
5957 /* System header to define __stub macros and hopefully few prototypes, 5953 /* System header to define __stub macros and hopefully few prototypes,
5958 which can conflict with char gethostbyname(); below. */ 5954 which can conflict with char gethostbyname(); below. */
5959 #include <assert.h> 5955 #include <assert.h>
5960 /* Override any gcc2 internal prototype to avoid an error. */ 5956 /* Override any gcc2 internal prototype to avoid an error. */
5973 gethostbyname(); 5969 gethostbyname();
5974 #endif 5970 #endif
5975 5971
5976 ; return 0; } 5972 ; return 0; }
5977 EOF 5973 EOF
5978 if { (eval echo configure:5979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5974 if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5979 rm -rf conftest* 5975 rm -rf conftest*
5980 eval "ac_cv_func_gethostbyname=yes" 5976 eval "ac_cv_func_gethostbyname=yes"
5981 else 5977 else
5982 echo "configure: failed program was:" >&5 5978 echo "configure: failed program was:" >&5
5983 cat conftest.$ac_ext >&5 5979 cat conftest.$ac_ext >&5
5994 fi 5990 fi
5995 5991
5996 if test $ac_cv_func_gethostbyname = no; then 5992 if test $ac_cv_func_gethostbyname = no; then
5997 5993
5998 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5994 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5999 echo "configure:6000: checking for gethostbyname in -lnsl" >&5 5995 echo "configure:5996: checking for gethostbyname in -lnsl" >&5
6000 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5996 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6001 5997
6002 xe_check_libs=" -lnsl " 5998 xe_check_libs=" -lnsl "
6003 cat > conftest.$ac_ext <<EOF 5999 cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure" 6000 #line 6001 "configure"
6005 #include "confdefs.h" 6001 #include "confdefs.h"
6006 /* Override any gcc2 internal prototype to avoid an error. */ 6002 /* Override any gcc2 internal prototype to avoid an error. */
6007 /* We use char because int might match the return type of a gcc2 6003 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */ 6004 builtin and then its argument prototype would still apply. */
6009 char gethostbyname(); 6005 char gethostbyname();
6010 6006
6011 int main() { 6007 int main() {
6012 gethostbyname() 6008 gethostbyname()
6013 ; return 0; } 6009 ; return 0; }
6014 EOF 6010 EOF
6015 if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6016 rm -rf conftest* 6012 rm -rf conftest*
6017 eval "ac_cv_lib_$ac_lib_var=yes" 6013 eval "ac_cv_lib_$ac_lib_var=yes"
6018 else 6014 else
6019 echo "configure: failed program was:" >&5 6015 echo "configure: failed program was:" >&5
6020 cat conftest.$ac_ext >&5 6016 cat conftest.$ac_ext >&5
6040 # on later versions), says simon@lia.di.epfl.ch: it contains 6036 # on later versions), says simon@lia.di.epfl.ch: it contains
6041 # gethostby* variants that don't use the nameserver (or something). 6037 # gethostby* variants that don't use the nameserver (or something).
6042 # -lsocket must be given before -lnsl if both are needed. 6038 # -lsocket must be given before -lnsl if both are needed.
6043 # We assume that if connect needs -lnsl, so does gethostbyname. 6039 # We assume that if connect needs -lnsl, so does gethostbyname.
6044 echo $ac_n "checking for connect""... $ac_c" 1>&6 6040 echo $ac_n "checking for connect""... $ac_c" 1>&6
6045 echo "configure:6046: checking for connect" >&5 6041 echo "configure:6042: checking for connect" >&5
6046 6042
6047 cat > conftest.$ac_ext <<EOF 6043 cat > conftest.$ac_ext <<EOF
6048 #line 6049 "configure" 6044 #line 6045 "configure"
6049 #include "confdefs.h" 6045 #include "confdefs.h"
6050 /* System header to define __stub macros and hopefully few prototypes, 6046 /* System header to define __stub macros and hopefully few prototypes,
6051 which can conflict with char connect(); below. */ 6047 which can conflict with char connect(); below. */
6052 #include <assert.h> 6048 #include <assert.h>
6053 /* Override any gcc2 internal prototype to avoid an error. */ 6049 /* Override any gcc2 internal prototype to avoid an error. */
6066 connect(); 6062 connect();
6067 #endif 6063 #endif
6068 6064
6069 ; return 0; } 6065 ; return 0; }
6070 EOF 6066 EOF
6071 if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6067 if { (eval echo configure:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6072 rm -rf conftest* 6068 rm -rf conftest*
6073 eval "ac_cv_func_connect=yes" 6069 eval "ac_cv_func_connect=yes"
6074 else 6070 else
6075 echo "configure: failed program was:" >&5 6071 echo "configure: failed program was:" >&5
6076 cat conftest.$ac_ext >&5 6072 cat conftest.$ac_ext >&5
6089 if test $ac_cv_func_connect = no; then 6085 if test $ac_cv_func_connect = no; then
6090 6086
6091 xe_msg_checking="for connect in -lsocket" 6087 xe_msg_checking="for connect in -lsocket"
6092 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6088 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6093 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6089 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6094 echo "configure:6095: checking "$xe_msg_checking"" >&5 6090 echo "configure:6091: checking "$xe_msg_checking"" >&5
6095 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 6091 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6096 6092
6097 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 6093 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6098 cat > conftest.$ac_ext <<EOF 6094 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure" 6095 #line 6096 "configure"
6100 #include "confdefs.h" 6096 #include "confdefs.h"
6101 /* Override any gcc2 internal prototype to avoid an error. */ 6097 /* Override any gcc2 internal prototype to avoid an error. */
6102 /* We use char because int might match the return type of a gcc2 6098 /* We use char because int might match the return type of a gcc2
6103 builtin and then its argument prototype would still apply. */ 6099 builtin and then its argument prototype would still apply. */
6104 char connect(); 6100 char connect();
6105 6101
6106 int main() { 6102 int main() {
6107 connect() 6103 connect()
6108 ; return 0; } 6104 ; return 0; }
6109 EOF 6105 EOF
6110 if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6106 if { (eval echo configure:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6111 rm -rf conftest* 6107 rm -rf conftest*
6112 eval "ac_cv_lib_$ac_lib_var=yes" 6108 eval "ac_cv_lib_$ac_lib_var=yes"
6113 else 6109 else
6114 echo "configure: failed program was:" >&5 6110 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5 6111 cat conftest.$ac_ext >&5
6129 6125
6130 fi 6126 fi
6131 6127
6132 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 6128 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6133 echo $ac_n "checking for remove""... $ac_c" 1>&6 6129 echo $ac_n "checking for remove""... $ac_c" 1>&6
6134 echo "configure:6135: checking for remove" >&5 6130 echo "configure:6131: checking for remove" >&5
6135 6131
6136 cat > conftest.$ac_ext <<EOF 6132 cat > conftest.$ac_ext <<EOF
6137 #line 6138 "configure" 6133 #line 6134 "configure"
6138 #include "confdefs.h" 6134 #include "confdefs.h"
6139 /* System header to define __stub macros and hopefully few prototypes, 6135 /* System header to define __stub macros and hopefully few prototypes,
6140 which can conflict with char remove(); below. */ 6136 which can conflict with char remove(); below. */
6141 #include <assert.h> 6137 #include <assert.h>
6142 /* Override any gcc2 internal prototype to avoid an error. */ 6138 /* Override any gcc2 internal prototype to avoid an error. */
6155 remove(); 6151 remove();
6156 #endif 6152 #endif
6157 6153
6158 ; return 0; } 6154 ; return 0; }
6159 EOF 6155 EOF
6160 if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6156 if { (eval echo configure:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6161 rm -rf conftest* 6157 rm -rf conftest*
6162 eval "ac_cv_func_remove=yes" 6158 eval "ac_cv_func_remove=yes"
6163 else 6159 else
6164 echo "configure: failed program was:" >&5 6160 echo "configure: failed program was:" >&5
6165 cat conftest.$ac_ext >&5 6161 cat conftest.$ac_ext >&5
6176 fi 6172 fi
6177 6173
6178 if test $ac_cv_func_remove = no; then 6174 if test $ac_cv_func_remove = no; then
6179 6175
6180 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 6176 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6181 echo "configure:6182: checking for remove in -lposix" >&5 6177 echo "configure:6178: checking for remove in -lposix" >&5
6182 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 6178 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6183 6179
6184 xe_check_libs=" -lposix " 6180 xe_check_libs=" -lposix "
6185 cat > conftest.$ac_ext <<EOF 6181 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure" 6182 #line 6183 "configure"
6187 #include "confdefs.h" 6183 #include "confdefs.h"
6188 /* Override any gcc2 internal prototype to avoid an error. */ 6184 /* Override any gcc2 internal prototype to avoid an error. */
6189 /* We use char because int might match the return type of a gcc2 6185 /* We use char because int might match the return type of a gcc2
6190 builtin and then its argument prototype would still apply. */ 6186 builtin and then its argument prototype would still apply. */
6191 char remove(); 6187 char remove();
6192 6188
6193 int main() { 6189 int main() {
6194 remove() 6190 remove()
6195 ; return 0; } 6191 ; return 0; }
6196 EOF 6192 EOF
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6198 rm -rf conftest* 6194 rm -rf conftest*
6199 eval "ac_cv_lib_$ac_lib_var=yes" 6195 eval "ac_cv_lib_$ac_lib_var=yes"
6200 else 6196 else
6201 echo "configure: failed program was:" >&5 6197 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5 6198 cat conftest.$ac_ext >&5
6216 6212
6217 fi 6213 fi
6218 6214
6219 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6215 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6220 echo $ac_n "checking for shmat""... $ac_c" 1>&6 6216 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6221 echo "configure:6222: checking for shmat" >&5 6217 echo "configure:6218: checking for shmat" >&5
6222 6218
6223 cat > conftest.$ac_ext <<EOF 6219 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure" 6220 #line 6221 "configure"
6225 #include "confdefs.h" 6221 #include "confdefs.h"
6226 /* System header to define __stub macros and hopefully few prototypes, 6222 /* System header to define __stub macros and hopefully few prototypes,
6227 which can conflict with char shmat(); below. */ 6223 which can conflict with char shmat(); below. */
6228 #include <assert.h> 6224 #include <assert.h>
6229 /* Override any gcc2 internal prototype to avoid an error. */ 6225 /* Override any gcc2 internal prototype to avoid an error. */
6242 shmat(); 6238 shmat();
6243 #endif 6239 #endif
6244 6240
6245 ; return 0; } 6241 ; return 0; }
6246 EOF 6242 EOF
6247 if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6243 if { (eval echo configure:6244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6248 rm -rf conftest* 6244 rm -rf conftest*
6249 eval "ac_cv_func_shmat=yes" 6245 eval "ac_cv_func_shmat=yes"
6250 else 6246 else
6251 echo "configure: failed program was:" >&5 6247 echo "configure: failed program was:" >&5
6252 cat conftest.$ac_ext >&5 6248 cat conftest.$ac_ext >&5
6263 fi 6259 fi
6264 6260
6265 if test $ac_cv_func_shmat = no; then 6261 if test $ac_cv_func_shmat = no; then
6266 6262
6267 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 6263 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6268 echo "configure:6269: checking for shmat in -lipc" >&5 6264 echo "configure:6265: checking for shmat in -lipc" >&5
6269 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 6265 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6270 6266
6271 xe_check_libs=" -lipc " 6267 xe_check_libs=" -lipc "
6272 cat > conftest.$ac_ext <<EOF 6268 cat > conftest.$ac_ext <<EOF
6273 #line 6274 "configure" 6269 #line 6270 "configure"
6274 #include "confdefs.h" 6270 #include "confdefs.h"
6275 /* Override any gcc2 internal prototype to avoid an error. */ 6271 /* Override any gcc2 internal prototype to avoid an error. */
6276 /* We use char because int might match the return type of a gcc2 6272 /* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */ 6273 builtin and then its argument prototype would still apply. */
6278 char shmat(); 6274 char shmat();
6279 6275
6280 int main() { 6276 int main() {
6281 shmat() 6277 shmat()
6282 ; return 0; } 6278 ; return 0; }
6283 EOF 6279 EOF
6284 if { (eval echo configure:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6280 if { (eval echo configure:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6285 rm -rf conftest* 6281 rm -rf conftest*
6286 eval "ac_cv_lib_$ac_lib_var=yes" 6282 eval "ac_cv_lib_$ac_lib_var=yes"
6287 else 6283 else
6288 echo "configure: failed program was:" >&5 6284 echo "configure: failed program was:" >&5
6289 cat conftest.$ac_ext >&5 6285 cat conftest.$ac_ext >&5
6315 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 6311 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6316 6312
6317 xe_msg_checking="for IceConnectionNumber in -lICE" 6313 xe_msg_checking="for IceConnectionNumber in -lICE"
6318 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6314 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6319 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6315 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6320 echo "configure:6321: checking "$xe_msg_checking"" >&5 6316 echo "configure:6317: checking "$xe_msg_checking"" >&5
6321 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 6317 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6322 6318
6323 xe_check_libs=" -lICE $X_EXTRA_LIBS" 6319 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6324 cat > conftest.$ac_ext <<EOF 6320 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure" 6321 #line 6322 "configure"
6326 #include "confdefs.h" 6322 #include "confdefs.h"
6327 /* Override any gcc2 internal prototype to avoid an error. */ 6323 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2 6324 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */ 6325 builtin and then its argument prototype would still apply. */
6330 char IceConnectionNumber(); 6326 char IceConnectionNumber();
6331 6327
6332 int main() { 6328 int main() {
6333 IceConnectionNumber() 6329 IceConnectionNumber()
6334 ; return 0; } 6330 ; return 0; }
6335 EOF 6331 EOF
6336 if { (eval echo configure:6337: \"$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
6337 rm -rf conftest* 6333 rm -rf conftest*
6338 eval "ac_cv_lib_$ac_lib_var=yes" 6334 eval "ac_cv_lib_$ac_lib_var=yes"
6339 else 6335 else
6340 echo "configure: failed program was:" >&5 6336 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5 6337 cat conftest.$ac_ext >&5
6498 EOF 6494 EOF
6499 } 6495 }
6500 6496
6501 6497
6502 echo "checking for X defines extracted by xmkmf" 1>&6 6498 echo "checking for X defines extracted by xmkmf" 1>&6
6503 echo "configure:6504: checking for X defines extracted by xmkmf" >&5 6499 echo "configure:6500: checking for X defines extracted by xmkmf" >&5
6504 rm -fr conftestdir 6500 rm -fr conftestdir
6505 if mkdir conftestdir; then 6501 if mkdir conftestdir; then
6506 cd conftestdir 6502 cd conftestdir
6507 cat > Imakefile <<'EOF' 6503 cat > Imakefile <<'EOF'
6508 xetest: 6504 xetest:
6547 done 6543 done
6548 fi 6544 fi
6549 6545
6550 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 6546 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6551 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 6547 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6552 echo "configure:6553: checking for X11/Intrinsic.h" >&5 6548 echo "configure:6549: checking for X11/Intrinsic.h" >&5
6553 6549
6554 cat > conftest.$ac_ext <<EOF 6550 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure" 6551 #line 6552 "configure"
6556 #include "confdefs.h" 6552 #include "confdefs.h"
6557 #include <X11/Intrinsic.h> 6553 #include <X11/Intrinsic.h>
6558 EOF 6554 EOF
6559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6560 { (eval echo configure:6561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6556 { (eval echo configure:6557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6562 if test -z "$ac_err"; then 6558 if test -z "$ac_err"; then
6563 rm -rf conftest* 6559 rm -rf conftest*
6564 eval "ac_cv_header_$ac_safe=yes" 6560 eval "ac_cv_header_$ac_safe=yes"
6565 else 6561 else
6579 fi 6575 fi
6580 6576
6581 6577
6582 6578
6583 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 6579 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6584 echo "configure:6585: checking for XOpenDisplay in -lX11" >&5 6580 echo "configure:6581: checking for XOpenDisplay in -lX11" >&5
6585 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 6581 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6586 6582
6587 xe_check_libs=" -lX11 " 6583 xe_check_libs=" -lX11 "
6588 cat > conftest.$ac_ext <<EOF 6584 cat > conftest.$ac_ext <<EOF
6589 #line 6590 "configure" 6585 #line 6586 "configure"
6590 #include "confdefs.h" 6586 #include "confdefs.h"
6591 /* Override any gcc2 internal prototype to avoid an error. */ 6587 /* Override any gcc2 internal prototype to avoid an error. */
6592 /* We use char because int might match the return type of a gcc2 6588 /* We use char because int might match the return type of a gcc2
6593 builtin and then its argument prototype would still apply. */ 6589 builtin and then its argument prototype would still apply. */
6594 char XOpenDisplay(); 6590 char XOpenDisplay();
6595 6591
6596 int main() { 6592 int main() {
6597 XOpenDisplay() 6593 XOpenDisplay()
6598 ; return 0; } 6594 ; return 0; }
6599 EOF 6595 EOF
6600 if { (eval echo configure:6601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6596 if { (eval echo configure:6597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6601 rm -rf conftest* 6597 rm -rf conftest*
6602 eval "ac_cv_lib_$ac_lib_var=yes" 6598 eval "ac_cv_lib_$ac_lib_var=yes"
6603 else 6599 else
6604 echo "configure: failed program was:" >&5 6600 echo "configure: failed program was:" >&5
6605 cat conftest.$ac_ext >&5 6601 cat conftest.$ac_ext >&5
6620 if test "$have_lib_x11" != "yes"; then 6616 if test "$have_lib_x11" != "yes"; then
6621 6617
6622 xe_msg_checking="for XGetFontProperty in -lX11" 6618 xe_msg_checking="for XGetFontProperty in -lX11"
6623 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 6619 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6624 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6620 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6625 echo "configure:6626: checking "$xe_msg_checking"" >&5 6621 echo "configure:6622: checking "$xe_msg_checking"" >&5
6626 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 6622 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6627 6623
6628 xe_check_libs=" -lX11 -b i486-linuxaout" 6624 xe_check_libs=" -lX11 -b i486-linuxaout"
6629 cat > conftest.$ac_ext <<EOF 6625 cat > conftest.$ac_ext <<EOF
6630 #line 6631 "configure" 6626 #line 6627 "configure"
6631 #include "confdefs.h" 6627 #include "confdefs.h"
6632 /* Override any gcc2 internal prototype to avoid an error. */ 6628 /* Override any gcc2 internal prototype to avoid an error. */
6633 /* We use char because int might match the return type of a gcc2 6629 /* We use char because int might match the return type of a gcc2
6634 builtin and then its argument prototype would still apply. */ 6630 builtin and then its argument prototype would still apply. */
6635 char XGetFontProperty(); 6631 char XGetFontProperty();
6636 6632
6637 int main() { 6633 int main() {
6638 XGetFontProperty() 6634 XGetFontProperty()
6639 ; return 0; } 6635 ; return 0; }
6640 EOF 6636 EOF
6641 if { (eval echo configure:6642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6637 if { (eval echo configure:6638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6642 rm -rf conftest* 6638 rm -rf conftest*
6643 eval "ac_cv_lib_$ac_lib_var=yes" 6639 eval "ac_cv_lib_$ac_lib_var=yes"
6644 else 6640 else
6645 echo "configure: failed program was:" >&5 6641 echo "configure: failed program was:" >&5
6646 cat conftest.$ac_ext >&5 6642 cat conftest.$ac_ext >&5
6663 libs_x="-lX11" 6659 libs_x="-lX11"
6664 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 6660 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6665 6661
6666 6662
6667 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 6663 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6668 echo "configure:6669: checking for XShapeSelectInput in -lXext" >&5 6664 echo "configure:6665: checking for XShapeSelectInput in -lXext" >&5
6669 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 6665 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6670 6666
6671 xe_check_libs=" -lXext " 6667 xe_check_libs=" -lXext "
6672 cat > conftest.$ac_ext <<EOF 6668 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure" 6669 #line 6670 "configure"
6674 #include "confdefs.h" 6670 #include "confdefs.h"
6675 /* Override any gcc2 internal prototype to avoid an error. */ 6671 /* Override any gcc2 internal prototype to avoid an error. */
6676 /* We use char because int might match the return type of a gcc2 6672 /* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */ 6673 builtin and then its argument prototype would still apply. */
6678 char XShapeSelectInput(); 6674 char XShapeSelectInput();
6679 6675
6680 int main() { 6676 int main() {
6681 XShapeSelectInput() 6677 XShapeSelectInput()
6682 ; return 0; } 6678 ; return 0; }
6683 EOF 6679 EOF
6684 if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6680 if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6685 rm -rf conftest* 6681 rm -rf conftest*
6686 eval "ac_cv_lib_$ac_lib_var=yes" 6682 eval "ac_cv_lib_$ac_lib_var=yes"
6687 else 6683 else
6688 echo "configure: failed program was:" >&5 6684 echo "configure: failed program was:" >&5
6689 cat conftest.$ac_ext >&5 6685 cat conftest.$ac_ext >&5
6702 6698
6703 6699
6704 6700
6705 6701
6706 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 6702 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6707 echo "configure:6708: checking for XtOpenDisplay in -lXt" >&5 6703 echo "configure:6704: checking for XtOpenDisplay in -lXt" >&5
6708 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 6704 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6709 6705
6710 xe_check_libs=" -lXt " 6706 xe_check_libs=" -lXt "
6711 cat > conftest.$ac_ext <<EOF 6707 cat > conftest.$ac_ext <<EOF
6712 #line 6713 "configure" 6708 #line 6709 "configure"
6713 #include "confdefs.h" 6709 #include "confdefs.h"
6714 /* Override any gcc2 internal prototype to avoid an error. */ 6710 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2 6711 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */ 6712 builtin and then its argument prototype would still apply. */
6717 char XtOpenDisplay(); 6713 char XtOpenDisplay();
6718 6714
6719 int main() { 6715 int main() {
6720 XtOpenDisplay() 6716 XtOpenDisplay()
6721 ; return 0; } 6717 ; return 0; }
6722 EOF 6718 EOF
6723 if { (eval echo configure:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6724 rm -rf conftest* 6720 rm -rf conftest*
6725 eval "ac_cv_lib_$ac_lib_var=yes" 6721 eval "ac_cv_lib_$ac_lib_var=yes"
6726 else 6722 else
6727 echo "configure: failed program was:" >&5 6723 echo "configure: failed program was:" >&5
6728 cat conftest.$ac_ext >&5 6724 cat conftest.$ac_ext >&5
6741 fi 6737 fi
6742 6738
6743 6739
6744 6740
6745 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 6741 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6746 echo "configure:6747: checking the version of X11 being used" >&5 6742 echo "configure:6743: checking the version of X11 being used" >&5
6747 cat > conftest.$ac_ext <<EOF 6743 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure" 6744 #line 6745 "configure"
6749 #include "confdefs.h" 6745 #include "confdefs.h"
6750 #include <X11/Intrinsic.h> 6746 #include <X11/Intrinsic.h>
6751 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 6747 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6752 EOF 6748 EOF
6753 if { (eval echo configure:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6749 if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6754 then 6750 then
6755 ./conftest foobar; x11_release=$? 6751 ./conftest foobar; x11_release=$?
6756 else 6752 else
6757 conftest_rc="$?" 6753 conftest_rc="$?"
6758 echo "configure: failed program was:" >&5 6754 echo "configure: failed program was:" >&5
6779 fi 6775 fi
6780 6776
6781 for ac_func in XConvertCase 6777 for ac_func in XConvertCase
6782 do 6778 do
6783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6784 echo "configure:6785: checking for $ac_func" >&5 6780 echo "configure:6781: checking for $ac_func" >&5
6785 6781
6786 cat > conftest.$ac_ext <<EOF 6782 cat > conftest.$ac_ext <<EOF
6787 #line 6788 "configure" 6783 #line 6784 "configure"
6788 #include "confdefs.h" 6784 #include "confdefs.h"
6789 /* System header to define __stub macros and hopefully few prototypes, 6785 /* System header to define __stub macros and hopefully few prototypes,
6790 which can conflict with char $ac_func(); below. */ 6786 which can conflict with char $ac_func(); below. */
6791 #include <assert.h> 6787 #include <assert.h>
6792 /* Override any gcc2 internal prototype to avoid an error. */ 6788 /* Override any gcc2 internal prototype to avoid an error. */
6805 $ac_func(); 6801 $ac_func();
6806 #endif 6802 #endif
6807 6803
6808 ; return 0; } 6804 ; return 0; }
6809 EOF 6805 EOF
6810 if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6811 rm -rf conftest* 6807 rm -rf conftest*
6812 eval "ac_cv_func_$ac_func=yes" 6808 eval "ac_cv_func_$ac_func=yes"
6813 else 6809 else
6814 echo "configure: failed program was:" >&5 6810 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5 6811 cat conftest.$ac_ext >&5
6837 6833
6838 for ac_hdr in X11/Xlocale.h 6834 for ac_hdr in X11/Xlocale.h
6839 do 6835 do
6840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6836 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6842 echo "configure:6843: checking for $ac_hdr" >&5 6838 echo "configure:6839: checking for $ac_hdr" >&5
6843 6839
6844 cat > conftest.$ac_ext <<EOF 6840 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure" 6841 #line 6842 "configure"
6846 #include "confdefs.h" 6842 #include "confdefs.h"
6847 #include <$ac_hdr> 6843 #include <$ac_hdr>
6848 EOF 6844 EOF
6849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6850 { (eval echo configure:6851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6846 { (eval echo configure:6847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6852 if test -z "$ac_err"; then 6848 if test -z "$ac_err"; then
6853 rm -rf conftest* 6849 rm -rf conftest*
6854 eval "ac_cv_header_$ac_safe=yes" 6850 eval "ac_cv_header_$ac_safe=yes"
6855 else 6851 else
6878 6874
6879 6875
6880 for ac_func in XRegisterIMInstantiateCallback 6876 for ac_func in XRegisterIMInstantiateCallback
6881 do 6877 do
6882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6883 echo "configure:6884: checking for $ac_func" >&5 6879 echo "configure:6880: checking for $ac_func" >&5
6884 6880
6885 cat > conftest.$ac_ext <<EOF 6881 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure" 6882 #line 6883 "configure"
6887 #include "confdefs.h" 6883 #include "confdefs.h"
6888 /* System header to define __stub macros and hopefully few prototypes, 6884 /* System header to define __stub macros and hopefully few prototypes,
6889 which can conflict with char $ac_func(); below. */ 6885 which can conflict with char $ac_func(); below. */
6890 #include <assert.h> 6886 #include <assert.h>
6891 /* Override any gcc2 internal prototype to avoid an error. */ 6887 /* Override any gcc2 internal prototype to avoid an error. */
6904 $ac_func(); 6900 $ac_func();
6905 #endif 6901 #endif
6906 6902
6907 ; return 0; } 6903 ; return 0; }
6908 EOF 6904 EOF
6909 if { (eval echo configure:6910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6905 if { (eval echo configure:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6910 rm -rf conftest* 6906 rm -rf conftest*
6911 eval "ac_cv_func_$ac_func=yes" 6907 eval "ac_cv_func_$ac_func=yes"
6912 else 6908 else
6913 echo "configure: failed program was:" >&5 6909 echo "configure: failed program was:" >&5
6914 cat conftest.$ac_ext >&5 6910 cat conftest.$ac_ext >&5
6932 echo "$ac_t""no" 1>&6 6928 echo "$ac_t""no" 1>&6
6933 fi 6929 fi
6934 done 6930 done
6935 6931
6936 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 6932 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6937 echo "configure:6938: checking for standard XRegisterIMInstantiateCallback prototype" >&5 6933 echo "configure:6934: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6938 cat > conftest.$ac_ext <<EOF 6934 cat > conftest.$ac_ext <<EOF
6939 #line 6940 "configure" 6935 #line 6936 "configure"
6940 #include "confdefs.h" 6936 #include "confdefs.h"
6941 6937
6942 #define NeedFunctionPrototypes 1 6938 #define NeedFunctionPrototypes 1
6943 #include <X11/Xlib.h> 6939 #include <X11/Xlib.h>
6944 extern Bool XRegisterIMInstantiateCallback( 6940 extern Bool XRegisterIMInstantiateCallback(
6946 6942
6947 int main() { 6943 int main() {
6948 6944
6949 ; return 0; } 6945 ; return 0; }
6950 EOF 6946 EOF
6951 if { (eval echo configure:6952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6947 if { (eval echo configure:6948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6952 rm -rf conftest* 6948 rm -rf conftest*
6953 echo "$ac_t""yes" 1>&6 6949 echo "$ac_t""yes" 1>&6
6954 else 6950 else
6955 echo "configure: failed program was:" >&5 6951 echo "configure: failed program was:" >&5
6956 cat conftest.$ac_ext >&5 6952 cat conftest.$ac_ext >&5
6967 fi 6963 fi
6968 rm -f conftest* 6964 rm -f conftest*
6969 6965
6970 test -z "$with_xmu" && { 6966 test -z "$with_xmu" && {
6971 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 6967 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6972 echo "configure:6973: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 6968 echo "configure:6969: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6973 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 6969 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6974 6970
6975 xe_check_libs=" -lXmu " 6971 xe_check_libs=" -lXmu "
6976 cat > conftest.$ac_ext <<EOF 6972 cat > conftest.$ac_ext <<EOF
6977 #line 6978 "configure" 6973 #line 6974 "configure"
6978 #include "confdefs.h" 6974 #include "confdefs.h"
6979 /* Override any gcc2 internal prototype to avoid an error. */ 6975 /* Override any gcc2 internal prototype to avoid an error. */
6980 /* We use char because int might match the return type of a gcc2 6976 /* We use char because int might match the return type of a gcc2
6981 builtin and then its argument prototype would still apply. */ 6977 builtin and then its argument prototype would still apply. */
6982 char XmuReadBitmapDataFromFile(); 6978 char XmuReadBitmapDataFromFile();
6983 6979
6984 int main() { 6980 int main() {
6985 XmuReadBitmapDataFromFile() 6981 XmuReadBitmapDataFromFile()
6986 ; return 0; } 6982 ; return 0; }
6987 EOF 6983 EOF
6988 if { (eval echo configure:6989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6984 if { (eval echo configure:6985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6989 rm -rf conftest* 6985 rm -rf conftest*
6990 eval "ac_cv_lib_$ac_lib_var=yes" 6986 eval "ac_cv_lib_$ac_lib_var=yes"
6991 else 6987 else
6992 echo "configure: failed program was:" >&5 6988 echo "configure: failed program was:" >&5
6993 cat conftest.$ac_ext >&5 6989 cat conftest.$ac_ext >&5
7022 7018
7023 fi 7019 fi
7024 7020
7025 7021
7026 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 7022 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7027 echo "configure:7028: checking for main in -lXbsd" >&5 7023 echo "configure:7024: checking for main in -lXbsd" >&5
7028 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 7024 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7029 7025
7030 xe_check_libs=" -lXbsd " 7026 xe_check_libs=" -lXbsd "
7031 cat > conftest.$ac_ext <<EOF 7027 cat > conftest.$ac_ext <<EOF
7032 #line 7033 "configure" 7028 #line 7029 "configure"
7033 #include "confdefs.h" 7029 #include "confdefs.h"
7034 7030
7035 int main() { 7031 int main() {
7036 main() 7032 main()
7037 ; return 0; } 7033 ; return 0; }
7038 EOF 7034 EOF
7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7035 if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7040 rm -rf conftest* 7036 rm -rf conftest*
7041 eval "ac_cv_lib_$ac_lib_var=yes" 7037 eval "ac_cv_lib_$ac_lib_var=yes"
7042 else 7038 else
7043 echo "configure: failed program was:" >&5 7039 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5 7040 cat conftest.$ac_ext >&5
7071 fi 7067 fi
7072 7068
7073 fi 7069 fi
7074 if test "$with_msw" != "no"; then 7070 if test "$with_msw" != "no"; then
7075 echo "checking for MS-Windows" 1>&6 7071 echo "checking for MS-Windows" 1>&6
7076 echo "configure:7077: checking for MS-Windows" >&5 7072 echo "configure:7073: checking for MS-Windows" >&5
7077 7073
7078 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 7074 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7079 echo "configure:7080: checking for main in -lgdi32" >&5 7075 echo "configure:7076: checking for main in -lgdi32" >&5
7080 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 7076 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7081 7077
7082 xe_check_libs=" -lgdi32 " 7078 xe_check_libs=" -lgdi32 "
7083 cat > conftest.$ac_ext <<EOF 7079 cat > conftest.$ac_ext <<EOF
7084 #line 7085 "configure" 7080 #line 7081 "configure"
7085 #include "confdefs.h" 7081 #include "confdefs.h"
7086 7082
7087 int main() { 7083 int main() {
7088 main() 7084 main()
7089 ; return 0; } 7085 ; return 0; }
7090 EOF 7086 EOF
7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7087 if { (eval echo configure:7088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7092 rm -rf conftest* 7088 rm -rf conftest*
7093 eval "ac_cv_lib_$ac_lib_var=yes" 7089 eval "ac_cv_lib_$ac_lib_var=yes"
7094 else 7090 else
7095 echo "configure: failed program was:" >&5 7091 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5 7092 cat conftest.$ac_ext >&5
7159 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 7155 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7160 echo " xemacs will be linked with \"dialog-msw.o\"" 7156 echo " xemacs will be linked with \"dialog-msw.o\""
7161 fi 7157 fi
7162 fi 7158 fi
7163 cat > conftest.$ac_ext <<EOF 7159 cat > conftest.$ac_ext <<EOF
7164 #line 7165 "configure" 7160 #line 7161 "configure"
7165 #include "confdefs.h" 7161 #include "confdefs.h"
7166 #include <fcntl.h> 7162 #include <fcntl.h>
7167 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 7163 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7168 EOF 7164 EOF
7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7165 if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7170 then 7166 then
7171 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF 7167 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7172 Defining HAVE_MSG_SELECT 7168 Defining HAVE_MSG_SELECT
7173 EOF 7169 EOF
7174 cat >> confdefs.h <<\EOF 7170 cat >> confdefs.h <<\EOF
7228 fi 7224 fi
7229 7225
7230 if test "$with_x11" = "yes"; then 7226 if test "$with_x11" = "yes"; then
7231 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` 7227 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7232 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 7228 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7233 echo "configure:7234: checking for X11/extensions/shape.h" >&5 7229 echo "configure:7230: checking for X11/extensions/shape.h" >&5
7234 7230
7235 cat > conftest.$ac_ext <<EOF 7231 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure" 7232 #line 7233 "configure"
7237 #include "confdefs.h" 7233 #include "confdefs.h"
7238 #include <X11/extensions/shape.h> 7234 #include <X11/extensions/shape.h>
7239 EOF 7235 EOF
7240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7241 { (eval echo configure:7242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7237 { (eval echo configure:7238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7243 if test -z "$ac_err"; then 7239 if test -z "$ac_err"; then
7244 rm -rf conftest* 7240 rm -rf conftest*
7245 eval "ac_cv_header_$ac_safe=yes" 7241 eval "ac_cv_header_$ac_safe=yes"
7246 else 7242 else
7288 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 7284 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7289 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 7285 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7290 esac 7286 esac
7291 7287
7292 echo "checking for WM_COMMAND option" 1>&6 7288 echo "checking for WM_COMMAND option" 1>&6
7293 echo "configure:7294: checking for WM_COMMAND option" >&5; 7289 echo "configure:7290: checking for WM_COMMAND option" >&5;
7294 if test "$with_wmcommand" != "no"; then 7290 if test "$with_wmcommand" != "no"; then
7295 { test "$extra_verbose" = "yes" && cat << \EOF 7291 { test "$extra_verbose" = "yes" && cat << \EOF
7296 Defining HAVE_WMCOMMAND 7292 Defining HAVE_WMCOMMAND
7297 EOF 7293 EOF
7298 cat >> confdefs.h <<\EOF 7294 cat >> confdefs.h <<\EOF
7303 fi 7299 fi
7304 7300
7305 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 7301 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7306 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 7302 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7307 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 7303 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7308 echo "configure:7309: checking for X11/Xauth.h" >&5 7304 echo "configure:7305: checking for X11/Xauth.h" >&5
7309 7305
7310 cat > conftest.$ac_ext <<EOF 7306 cat > conftest.$ac_ext <<EOF
7311 #line 7312 "configure" 7307 #line 7308 "configure"
7312 #include "confdefs.h" 7308 #include "confdefs.h"
7313 #include <X11/Xauth.h> 7309 #include <X11/Xauth.h>
7314 EOF 7310 EOF
7315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7316 { (eval echo configure:7317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7312 { (eval echo configure:7313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7318 if test -z "$ac_err"; then 7314 if test -z "$ac_err"; then
7319 rm -rf conftest* 7315 rm -rf conftest*
7320 eval "ac_cv_header_$ac_safe=yes" 7316 eval "ac_cv_header_$ac_safe=yes"
7321 else 7317 else
7334 with_xauth=no 7330 with_xauth=no
7335 fi 7331 fi
7336 } 7332 }
7337 test -z "$with_xauth" && { 7333 test -z "$with_xauth" && {
7338 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 7334 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7339 echo "configure:7340: checking for XauGetAuthByAddr in -lXau" >&5 7335 echo "configure:7336: checking for XauGetAuthByAddr in -lXau" >&5
7340 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 7336 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7341 7337
7342 xe_check_libs=" -lXau " 7338 xe_check_libs=" -lXau "
7343 cat > conftest.$ac_ext <<EOF 7339 cat > conftest.$ac_ext <<EOF
7344 #line 7345 "configure" 7340 #line 7341 "configure"
7345 #include "confdefs.h" 7341 #include "confdefs.h"
7346 /* Override any gcc2 internal prototype to avoid an error. */ 7342 /* Override any gcc2 internal prototype to avoid an error. */
7347 /* We use char because int might match the return type of a gcc2 7343 /* We use char because int might match the return type of a gcc2
7348 builtin and then its argument prototype would still apply. */ 7344 builtin and then its argument prototype would still apply. */
7349 char XauGetAuthByAddr(); 7345 char XauGetAuthByAddr();
7350 7346
7351 int main() { 7347 int main() {
7352 XauGetAuthByAddr() 7348 XauGetAuthByAddr()
7353 ; return 0; } 7349 ; return 0; }
7354 EOF 7350 EOF
7355 if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7351 if { (eval echo configure:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7356 rm -rf conftest* 7352 rm -rf conftest*
7357 eval "ac_cv_lib_$ac_lib_var=yes" 7353 eval "ac_cv_lib_$ac_lib_var=yes"
7358 else 7354 else
7359 echo "configure: failed program was:" >&5 7355 echo "configure: failed program was:" >&5
7360 cat conftest.$ac_ext >&5 7356 cat conftest.$ac_ext >&5
7395 7391
7396 if test "$with_tooltalk" != "no" ; then 7392 if test "$with_tooltalk" != "no" ; then
7397 for dir in "" "Tt/" "desktop/" ; do 7393 for dir in "" "Tt/" "desktop/" ; do
7398 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 7394 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7399 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 7395 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7400 echo "configure:7401: checking for ${dir}tt_c.h" >&5 7396 echo "configure:7397: checking for ${dir}tt_c.h" >&5
7401 7397
7402 cat > conftest.$ac_ext <<EOF 7398 cat > conftest.$ac_ext <<EOF
7403 #line 7404 "configure" 7399 #line 7400 "configure"
7404 #include "confdefs.h" 7400 #include "confdefs.h"
7405 #include <${dir}tt_c.h> 7401 #include <${dir}tt_c.h>
7406 EOF 7402 EOF
7407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7408 { (eval echo configure:7409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7404 { (eval echo configure:7405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7410 if test -z "$ac_err"; then 7406 if test -z "$ac_err"; then
7411 rm -rf conftest* 7407 rm -rf conftest*
7412 eval "ac_cv_header_$ac_safe=yes" 7408 eval "ac_cv_header_$ac_safe=yes"
7413 else 7409 else
7439 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 7435 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7440 7436
7441 xe_msg_checking="for tt_message_create in -ltt" 7437 xe_msg_checking="for tt_message_create in -ltt"
7442 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 7438 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7443 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7439 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7444 echo "configure:7445: checking "$xe_msg_checking"" >&5 7440 echo "configure:7441: checking "$xe_msg_checking"" >&5
7445 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 7441 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7446 7442
7447 xe_check_libs=" -ltt $extra_libs" 7443 xe_check_libs=" -ltt $extra_libs"
7448 cat > conftest.$ac_ext <<EOF 7444 cat > conftest.$ac_ext <<EOF
7449 #line 7450 "configure" 7445 #line 7446 "configure"
7450 #include "confdefs.h" 7446 #include "confdefs.h"
7451 /* Override any gcc2 internal prototype to avoid an error. */ 7447 /* Override any gcc2 internal prototype to avoid an error. */
7452 /* We use char because int might match the return type of a gcc2 7448 /* We use char because int might match the return type of a gcc2
7453 builtin and then its argument prototype would still apply. */ 7449 builtin and then its argument prototype would still apply. */
7454 char tt_message_create(); 7450 char tt_message_create();
7455 7451
7456 int main() { 7452 int main() {
7457 tt_message_create() 7453 tt_message_create()
7458 ; return 0; } 7454 ; return 0; }
7459 EOF 7455 EOF
7460 if { (eval echo configure:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7456 if { (eval echo configure:7457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7461 rm -rf conftest* 7457 rm -rf conftest*
7462 eval "ac_cv_lib_$ac_lib_var=yes" 7458 eval "ac_cv_lib_$ac_lib_var=yes"
7463 else 7459 else
7464 echo "configure: failed program was:" >&5 7460 echo "configure: failed program was:" >&5
7465 cat conftest.$ac_ext >&5 7461 cat conftest.$ac_ext >&5
7512 fi 7508 fi
7513 fi 7509 fi
7514 7510
7515 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 7511 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7516 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 7512 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7517 echo "configure:7518: checking for Dt/Dt.h" >&5 7513 echo "configure:7514: checking for Dt/Dt.h" >&5
7518 7514
7519 cat > conftest.$ac_ext <<EOF 7515 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure" 7516 #line 7517 "configure"
7521 #include "confdefs.h" 7517 #include "confdefs.h"
7522 #include <Dt/Dt.h> 7518 #include <Dt/Dt.h>
7523 EOF 7519 EOF
7524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7525 { (eval echo configure:7526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7521 { (eval echo configure:7522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7527 if test -z "$ac_err"; then 7523 if test -z "$ac_err"; then
7528 rm -rf conftest* 7524 rm -rf conftest*
7529 eval "ac_cv_header_$ac_safe=yes" 7525 eval "ac_cv_header_$ac_safe=yes"
7530 else 7526 else
7543 with_cde=no 7539 with_cde=no
7544 fi 7540 fi
7545 } 7541 }
7546 test -z "$with_cde" && { 7542 test -z "$with_cde" && {
7547 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 7543 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7548 echo "configure:7549: checking for DtDndDragStart in -lDtSvc" >&5 7544 echo "configure:7545: checking for DtDndDragStart in -lDtSvc" >&5
7549 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 7545 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7550 7546
7551 xe_check_libs=" -lDtSvc " 7547 xe_check_libs=" -lDtSvc "
7552 cat > conftest.$ac_ext <<EOF 7548 cat > conftest.$ac_ext <<EOF
7553 #line 7554 "configure" 7549 #line 7550 "configure"
7554 #include "confdefs.h" 7550 #include "confdefs.h"
7555 /* Override any gcc2 internal prototype to avoid an error. */ 7551 /* Override any gcc2 internal prototype to avoid an error. */
7556 /* We use char because int might match the return type of a gcc2 7552 /* We use char because int might match the return type of a gcc2
7557 builtin and then its argument prototype would still apply. */ 7553 builtin and then its argument prototype would still apply. */
7558 char DtDndDragStart(); 7554 char DtDndDragStart();
7559 7555
7560 int main() { 7556 int main() {
7561 DtDndDragStart() 7557 DtDndDragStart()
7562 ; return 0; } 7558 ; return 0; }
7563 EOF 7559 EOF
7564 if { (eval echo configure:7565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7560 if { (eval echo configure:7561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7565 rm -rf conftest* 7561 rm -rf conftest*
7566 eval "ac_cv_lib_$ac_lib_var=yes" 7562 eval "ac_cv_lib_$ac_lib_var=yes"
7567 else 7563 else
7568 echo "configure: failed program was:" >&5 7564 echo "configure: failed program was:" >&5
7569 cat conftest.$ac_ext >&5 7565 cat conftest.$ac_ext >&5
7640 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi 7636 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7641 fi 7637 fi
7642 7638
7643 if test "$with_dragndrop" != "no" ; then 7639 if test "$with_dragndrop" != "no" ; then
7644 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 7640 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7645 echo "configure:7646: checking if drag and drop API is needed" >&5 7641 echo "configure:7642: checking if drag and drop API is needed" >&5
7646 if test -n "$dragndrop_proto" ; then 7642 if test -n "$dragndrop_proto" ; then
7647 with_dragndrop=yes 7643 with_dragndrop=yes
7648 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 7644 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7649 { test "$extra_verbose" = "yes" && cat << \EOF 7645 { test "$extra_verbose" = "yes" && cat << \EOF
7650 Defining HAVE_DRAGNDROP 7646 Defining HAVE_DRAGNDROP
7660 echo "$ac_t""no" 1>&6 7656 echo "$ac_t""no" 1>&6
7661 fi 7657 fi
7662 fi 7658 fi
7663 7659
7664 echo "checking for LDAP" 1>&6 7660 echo "checking for LDAP" 1>&6
7665 echo "configure:7666: checking for LDAP" >&5 7661 echo "configure:7662: checking for LDAP" >&5
7666 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 7662 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7667 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 7663 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7668 echo "configure:7669: checking for ldap.h" >&5 7664 echo "configure:7665: checking for ldap.h" >&5
7669 7665
7670 cat > conftest.$ac_ext <<EOF 7666 cat > conftest.$ac_ext <<EOF
7671 #line 7672 "configure" 7667 #line 7668 "configure"
7672 #include "confdefs.h" 7668 #include "confdefs.h"
7673 #include <ldap.h> 7669 #include <ldap.h>
7674 EOF 7670 EOF
7675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7676 { (eval echo configure:7677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7672 { (eval echo configure:7673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7678 if test -z "$ac_err"; then 7674 if test -z "$ac_err"; then
7679 rm -rf conftest* 7675 rm -rf conftest*
7680 eval "ac_cv_header_$ac_safe=yes" 7676 eval "ac_cv_header_$ac_safe=yes"
7681 else 7677 else
7694 with_ldap=no 7690 with_ldap=no
7695 fi 7691 fi
7696 } 7692 }
7697 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 7693 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7698 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 7694 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7699 echo "configure:7700: checking for lber.h" >&5 7695 echo "configure:7696: checking for lber.h" >&5
7700 7696
7701 cat > conftest.$ac_ext <<EOF 7697 cat > conftest.$ac_ext <<EOF
7702 #line 7703 "configure" 7698 #line 7699 "configure"
7703 #include "confdefs.h" 7699 #include "confdefs.h"
7704 #include <lber.h> 7700 #include <lber.h>
7705 EOF 7701 EOF
7706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7707 { (eval echo configure:7708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7703 { (eval echo configure:7704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7709 if test -z "$ac_err"; then 7705 if test -z "$ac_err"; then
7710 rm -rf conftest* 7706 rm -rf conftest*
7711 eval "ac_cv_header_$ac_safe=yes" 7707 eval "ac_cv_header_$ac_safe=yes"
7712 else 7708 else
7726 fi 7722 fi
7727 } 7723 }
7728 if test "$with_ldap" != "no"; then 7724 if test "$with_ldap" != "no"; then
7729 7725
7730 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 7726 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7731 echo "configure:7732: checking for ldap_search in -lldap" >&5 7727 echo "configure:7728: checking for ldap_search in -lldap" >&5
7732 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 7728 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7733 7729
7734 xe_check_libs=" -lldap " 7730 xe_check_libs=" -lldap "
7735 cat > conftest.$ac_ext <<EOF 7731 cat > conftest.$ac_ext <<EOF
7736 #line 7737 "configure" 7732 #line 7733 "configure"
7737 #include "confdefs.h" 7733 #include "confdefs.h"
7738 /* Override any gcc2 internal prototype to avoid an error. */ 7734 /* Override any gcc2 internal prototype to avoid an error. */
7739 /* 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
7740 builtin and then its argument prototype would still apply. */ 7736 builtin and then its argument prototype would still apply. */
7741 char ldap_search(); 7737 char ldap_search();
7742 7738
7743 int main() { 7739 int main() {
7744 ldap_search() 7740 ldap_search()
7745 ; return 0; } 7741 ; return 0; }
7746 EOF 7742 EOF
7747 if { (eval echo configure:7748: \"$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
7748 rm -rf conftest* 7744 rm -rf conftest*
7749 eval "ac_cv_lib_$ac_lib_var=yes" 7745 eval "ac_cv_lib_$ac_lib_var=yes"
7750 else 7746 else
7751 echo "configure: failed program was:" >&5 7747 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5 7748 cat conftest.$ac_ext >&5
7767 7763
7768 test "$with_ldap_nolber" = "no" && { 7764 test "$with_ldap_nolber" = "no" && {
7769 xe_msg_checking="for ldap_open in -lldap" 7765 xe_msg_checking="for ldap_open in -lldap"
7770 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 7766 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7771 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7767 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7772 echo "configure:7773: checking "$xe_msg_checking"" >&5 7768 echo "configure:7769: checking "$xe_msg_checking"" >&5
7773 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7769 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7774 7770
7775 xe_check_libs=" -lldap -llber" 7771 xe_check_libs=" -lldap -llber"
7776 cat > conftest.$ac_ext <<EOF 7772 cat > conftest.$ac_ext <<EOF
7777 #line 7778 "configure" 7773 #line 7774 "configure"
7778 #include "confdefs.h" 7774 #include "confdefs.h"
7779 /* Override any gcc2 internal prototype to avoid an error. */ 7775 /* Override any gcc2 internal prototype to avoid an error. */
7780 /* We use char because int might match the return type of a gcc2 7776 /* We use char because int might match the return type of a gcc2
7781 builtin and then its argument prototype would still apply. */ 7777 builtin and then its argument prototype would still apply. */
7782 char ldap_open(); 7778 char ldap_open();
7783 7779
7784 int main() { 7780 int main() {
7785 ldap_open() 7781 ldap_open()
7786 ; return 0; } 7782 ; return 0; }
7787 EOF 7783 EOF
7788 if { (eval echo configure:7789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7784 if { (eval echo configure:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7789 rm -rf conftest* 7785 rm -rf conftest*
7790 eval "ac_cv_lib_$ac_lib_var=yes" 7786 eval "ac_cv_lib_$ac_lib_var=yes"
7791 else 7787 else
7792 echo "configure: failed program was:" >&5 7788 echo "configure: failed program was:" >&5
7793 cat conftest.$ac_ext >&5 7789 cat conftest.$ac_ext >&5
7808 } 7804 }
7809 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 7805 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7810 xe_msg_checking="for ldap_open in -lldap" 7806 xe_msg_checking="for ldap_open in -lldap"
7811 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 7807 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7812 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7808 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7813 echo "configure:7814: checking "$xe_msg_checking"" >&5 7809 echo "configure:7810: checking "$xe_msg_checking"" >&5
7814 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7810 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7815 7811
7816 xe_check_libs=" -lldap -llber -lkrb" 7812 xe_check_libs=" -lldap -llber -lkrb"
7817 cat > conftest.$ac_ext <<EOF 7813 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure" 7814 #line 7815 "configure"
7819 #include "confdefs.h" 7815 #include "confdefs.h"
7820 /* Override any gcc2 internal prototype to avoid an error. */ 7816 /* Override any gcc2 internal prototype to avoid an error. */
7821 /* We use char because int might match the return type of a gcc2 7817 /* We use char because int might match the return type of a gcc2
7822 builtin and then its argument prototype would still apply. */ 7818 builtin and then its argument prototype would still apply. */
7823 char ldap_open(); 7819 char ldap_open();
7824 7820
7825 int main() { 7821 int main() {
7826 ldap_open() 7822 ldap_open()
7827 ; return 0; } 7823 ; return 0; }
7828 EOF 7824 EOF
7829 if { (eval echo configure:7830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7825 if { (eval echo configure:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7830 rm -rf conftest* 7826 rm -rf conftest*
7831 eval "ac_cv_lib_$ac_lib_var=yes" 7827 eval "ac_cv_lib_$ac_lib_var=yes"
7832 else 7828 else
7833 echo "configure: failed program was:" >&5 7829 echo "configure: failed program was:" >&5
7834 cat conftest.$ac_ext >&5 7830 cat conftest.$ac_ext >&5
7849 } 7845 }
7850 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 7846 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7851 xe_msg_checking="for ldap_open in -lldap" 7847 xe_msg_checking="for ldap_open in -lldap"
7852 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 7848 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7853 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7849 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7854 echo "configure:7855: checking "$xe_msg_checking"" >&5 7850 echo "configure:7851: checking "$xe_msg_checking"" >&5
7855 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7851 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7856 7852
7857 xe_check_libs=" -lldap -llber -lkrb -ldes" 7853 xe_check_libs=" -lldap -llber -lkrb -ldes"
7858 cat > conftest.$ac_ext <<EOF 7854 cat > conftest.$ac_ext <<EOF
7859 #line 7860 "configure" 7855 #line 7856 "configure"
7860 #include "confdefs.h" 7856 #include "confdefs.h"
7861 /* Override any gcc2 internal prototype to avoid an error. */ 7857 /* Override any gcc2 internal prototype to avoid an error. */
7862 /* We use char because int might match the return type of a gcc2 7858 /* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */ 7859 builtin and then its argument prototype would still apply. */
7864 char ldap_open(); 7860 char ldap_open();
7865 7861
7866 int main() { 7862 int main() {
7867 ldap_open() 7863 ldap_open()
7868 ; return 0; } 7864 ; return 0; }
7869 EOF 7865 EOF
7870 if { (eval echo configure:7871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7866 if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7871 rm -rf conftest* 7867 rm -rf conftest*
7872 eval "ac_cv_lib_$ac_lib_var=yes" 7868 eval "ac_cv_lib_$ac_lib_var=yes"
7873 else 7869 else
7874 echo "configure: failed program was:" >&5 7870 echo "configure: failed program was:" >&5
7875 cat conftest.$ac_ext >&5 7871 cat conftest.$ac_ext >&5
7916 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 7912 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7917 fi 7913 fi
7918 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 7914 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7919 do 7915 do
7920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7921 echo "configure:7922: checking for $ac_func" >&5 7917 echo "configure:7918: checking for $ac_func" >&5
7922 7918
7923 cat > conftest.$ac_ext <<EOF 7919 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure" 7920 #line 7921 "configure"
7925 #include "confdefs.h" 7921 #include "confdefs.h"
7926 /* System header to define __stub macros and hopefully few prototypes, 7922 /* System header to define __stub macros and hopefully few prototypes,
7927 which can conflict with char $ac_func(); below. */ 7923 which can conflict with char $ac_func(); below. */
7928 #include <assert.h> 7924 #include <assert.h>
7929 /* Override any gcc2 internal prototype to avoid an error. */ 7925 /* Override any gcc2 internal prototype to avoid an error. */
7942 $ac_func(); 7938 $ac_func();
7943 #endif 7939 #endif
7944 7940
7945 ; return 0; } 7941 ; return 0; }
7946 EOF 7942 EOF
7947 if { (eval echo configure:7948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7943 if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7948 rm -rf conftest* 7944 rm -rf conftest*
7949 eval "ac_cv_func_$ac_func=yes" 7945 eval "ac_cv_func_$ac_func=yes"
7950 else 7946 else
7951 echo "configure: failed program was:" >&5 7947 echo "configure: failed program was:" >&5
7952 cat conftest.$ac_ext >&5 7948 cat conftest.$ac_ext >&5
7973 7969
7974 fi 7970 fi
7975 7971
7976 if test "$with_postgresql" != "no"; then 7972 if test "$with_postgresql" != "no"; then
7977 echo "checking for PostgreSQL" 1>&6 7973 echo "checking for PostgreSQL" 1>&6
7978 echo "configure:7979: checking for PostgreSQL" >&5 7974 echo "configure:7975: checking for PostgreSQL" >&5
7979 7975
7980 for header_dir in "" "pgsql/" "postgresql/"; do 7976 for header_dir in "" "pgsql/" "postgresql/"; do
7981 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` 7977 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7982 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 7978 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7983 echo "configure:7984: checking for ${header_dir}libpq-fe.h" >&5 7979 echo "configure:7980: checking for ${header_dir}libpq-fe.h" >&5
7984 7980
7985 cat > conftest.$ac_ext <<EOF 7981 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure" 7982 #line 7983 "configure"
7987 #include "confdefs.h" 7983 #include "confdefs.h"
7988 #include <${header_dir}libpq-fe.h> 7984 #include <${header_dir}libpq-fe.h>
7989 EOF 7985 EOF
7990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7991 { (eval echo configure:7992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7987 { (eval echo configure:7988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7993 if test -z "$ac_err"; then 7989 if test -z "$ac_err"; then
7994 rm -rf conftest* 7990 rm -rf conftest*
7995 eval "ac_cv_header_$ac_safe=yes" 7991 eval "ac_cv_header_$ac_safe=yes"
7996 else 7992 else
8010 8006
8011 done 8007 done
8012 8008
8013 test -n "$libpq_fe_h_file" && { 8009 test -n "$libpq_fe_h_file" && {
8014 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 8010 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
8015 echo "configure:8016: checking for PQconnectdb in -lpq" >&5 8011 echo "configure:8012: checking for PQconnectdb in -lpq" >&5
8016 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` 8012 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
8017 8013
8018 xe_check_libs=" -lpq " 8014 xe_check_libs=" -lpq "
8019 cat > conftest.$ac_ext <<EOF 8015 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure" 8016 #line 8017 "configure"
8021 #include "confdefs.h" 8017 #include "confdefs.h"
8022 /* Override any gcc2 internal prototype to avoid an error. */ 8018 /* Override any gcc2 internal prototype to avoid an error. */
8023 /* We use char because int might match the return type of a gcc2 8019 /* We use char because int might match the return type of a gcc2
8024 builtin and then its argument prototype would still apply. */ 8020 builtin and then its argument prototype would still apply. */
8025 char PQconnectdb(); 8021 char PQconnectdb();
8026 8022
8027 int main() { 8023 int main() {
8028 PQconnectdb() 8024 PQconnectdb()
8029 ; return 0; } 8025 ; return 0; }
8030 EOF 8026 EOF
8031 if { (eval echo configure:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8027 if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8032 rm -rf conftest* 8028 rm -rf conftest*
8033 eval "ac_cv_lib_$ac_lib_var=yes" 8029 eval "ac_cv_lib_$ac_lib_var=yes"
8034 else 8030 else
8035 echo "configure: failed program was:" >&5 8031 echo "configure: failed program was:" >&5
8036 cat conftest.$ac_ext >&5 8032 cat conftest.$ac_ext >&5
8059 EOF 8055 EOF
8060 } 8056 }
8061 8057
8062 8058
8063 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 8059 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8064 echo "configure:8065: checking for PQconnectStart in -lpq" >&5 8060 echo "configure:8061: checking for PQconnectStart in -lpq" >&5
8065 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` 8061 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8066 8062
8067 xe_check_libs=" -lpq " 8063 xe_check_libs=" -lpq "
8068 cat > conftest.$ac_ext <<EOF 8064 cat > conftest.$ac_ext <<EOF
8069 #line 8070 "configure" 8065 #line 8066 "configure"
8070 #include "confdefs.h" 8066 #include "confdefs.h"
8071 /* Override any gcc2 internal prototype to avoid an error. */ 8067 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2 8068 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */ 8069 builtin and then its argument prototype would still apply. */
8074 char PQconnectStart(); 8070 char PQconnectStart();
8075 8071
8076 int main() { 8072 int main() {
8077 PQconnectStart() 8073 PQconnectStart()
8078 ; return 0; } 8074 ; return 0; }
8079 EOF 8075 EOF
8080 if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8076 if { (eval echo configure:8077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8081 rm -rf conftest* 8077 rm -rf conftest*
8082 eval "ac_cv_lib_$ac_lib_var=yes" 8078 eval "ac_cv_lib_$ac_lib_var=yes"
8083 else 8079 else
8084 echo "configure: failed program was:" >&5 8080 echo "configure: failed program was:" >&5
8085 cat conftest.$ac_ext >&5 8081 cat conftest.$ac_ext >&5
8123 fi 8119 fi
8124 8120
8125 8121
8126 if test "$window_system" != "none"; then 8122 if test "$window_system" != "none"; then
8127 echo "checking for graphics libraries" 1>&6 8123 echo "checking for graphics libraries" 1>&6
8128 echo "configure:8129: checking for graphics libraries" >&5 8124 echo "configure:8125: checking for graphics libraries" >&5
8129 8125
8130 libpath_xpm= 8126 libpath_xpm=
8131 incpath_xpm= 8127 incpath_xpm=
8132 case "$opsys" in 8128 case "$opsys" in
8133 cygwin*) 8129 cygwin*)
8149 xpm_problem="" 8145 xpm_problem=""
8150 if test -z "$with_xpm"; then 8146 if test -z "$with_xpm"; then
8151 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 8147 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8152 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 8148 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8153 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 8149 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8154 echo "configure:8155: checking for Xpm - no older than 3.4f" >&5 8150 echo "configure:8151: checking for Xpm - no older than 3.4f" >&5
8155 xe_check_libs=-lXpm 8151 xe_check_libs=-lXpm
8156 cat > conftest.$ac_ext <<EOF 8152 cat > conftest.$ac_ext <<EOF
8157 #line 8158 "configure" 8153 #line 8154 "configure"
8158 #include "confdefs.h" 8154 #include "confdefs.h"
8159 #define XPM_NUMBERS 8155 #define XPM_NUMBERS
8160 #include <X11/xpm.h> 8156 #include <X11/xpm.h>
8161 int main(int c, char **v) { 8157 int main(int c, char **v) {
8162 return c == 1 ? 0 : 8158 return c == 1 ? 0 :
8163 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 8159 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8164 XpmIncludeVersion < 30406 ? 2 : 0 ;} 8160 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8165 EOF 8161 EOF
8166 if { (eval echo configure:8167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8162 if { (eval echo configure:8163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8167 then 8163 then
8168 ./conftest dummy_arg; xpm_status=$?; 8164 ./conftest dummy_arg; xpm_status=$?;
8169 if test "$xpm_status" = "0"; then 8165 if test "$xpm_status" = "0"; then
8170 with_xpm=yes; 8166 with_xpm=yes;
8171 else 8167 else
8205 8201
8206 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 8202 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
8207 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 8203 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8208 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 8204 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
8209 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 8205 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8210 echo "configure:8211: checking for \"FOR_MSW\" xpm" >&5 8206 echo "configure:8207: checking for \"FOR_MSW\" xpm" >&5
8211 xe_check_libs=-lXpm 8207 xe_check_libs=-lXpm
8212 cat > conftest.$ac_ext <<EOF 8208 cat > conftest.$ac_ext <<EOF
8213 #line 8214 "configure" 8209 #line 8210 "configure"
8214 #include "confdefs.h" 8210 #include "confdefs.h"
8215 8211
8216 int main() { 8212 int main() {
8217 XpmCreatePixmapFromData() 8213 XpmCreatePixmapFromData()
8218 ; return 0; } 8214 ; return 0; }
8219 EOF 8215 EOF
8220 if { (eval echo configure:8221: \"$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
8221 rm -rf conftest* 8217 rm -rf conftest*
8222 xpm_for_msw=no 8218 xpm_for_msw=no
8223 else 8219 else
8224 echo "configure: failed program was:" >&5 8220 echo "configure: failed program was:" >&5
8225 cat conftest.$ac_ext >&5 8221 cat conftest.$ac_ext >&5
8241 fi 8237 fi
8242 fi 8238 fi
8243 8239
8244 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 8240 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8245 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 8241 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8246 echo "configure:8247: checking for compface.h" >&5 8242 echo "configure:8243: checking for compface.h" >&5
8247 8243
8248 cat > conftest.$ac_ext <<EOF 8244 cat > conftest.$ac_ext <<EOF
8249 #line 8250 "configure" 8245 #line 8246 "configure"
8250 #include "confdefs.h" 8246 #include "confdefs.h"
8251 #include <compface.h> 8247 #include <compface.h>
8252 EOF 8248 EOF
8253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8254 { (eval echo configure:8255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8250 { (eval echo configure:8251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8256 if test -z "$ac_err"; then 8252 if test -z "$ac_err"; then
8257 rm -rf conftest* 8253 rm -rf conftest*
8258 eval "ac_cv_header_$ac_safe=yes" 8254 eval "ac_cv_header_$ac_safe=yes"
8259 else 8255 else
8272 with_xface=no 8268 with_xface=no
8273 fi 8269 fi
8274 } 8270 }
8275 test -z "$with_xface" && { 8271 test -z "$with_xface" && {
8276 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 8272 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8277 echo "configure:8278: checking for UnGenFace in -lcompface" >&5 8273 echo "configure:8274: checking for UnGenFace in -lcompface" >&5
8278 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 8274 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8279 8275
8280 xe_check_libs=" -lcompface " 8276 xe_check_libs=" -lcompface "
8281 cat > conftest.$ac_ext <<EOF 8277 cat > conftest.$ac_ext <<EOF
8282 #line 8283 "configure" 8278 #line 8279 "configure"
8283 #include "confdefs.h" 8279 #include "confdefs.h"
8284 /* Override any gcc2 internal prototype to avoid an error. */ 8280 /* Override any gcc2 internal prototype to avoid an error. */
8285 /* We use char because int might match the return type of a gcc2 8281 /* We use char because int might match the return type of a gcc2
8286 builtin and then its argument prototype would still apply. */ 8282 builtin and then its argument prototype would still apply. */
8287 char UnGenFace(); 8283 char UnGenFace();
8288 8284
8289 int main() { 8285 int main() {
8290 UnGenFace() 8286 UnGenFace()
8291 ; return 0; } 8287 ; return 0; }
8292 EOF 8288 EOF
8293 if { (eval echo configure:8294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8289 if { (eval echo configure:8290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8294 rm -rf conftest* 8290 rm -rf conftest*
8295 eval "ac_cv_lib_$ac_lib_var=yes" 8291 eval "ac_cv_lib_$ac_lib_var=yes"
8296 else 8292 else
8297 echo "configure: failed program was:" >&5 8293 echo "configure: failed program was:" >&5
8298 cat conftest.$ac_ext >&5 8294 cat conftest.$ac_ext >&5
8340 fi 8336 fi
8341 8337
8342 if test "$with_png $with_tiff" != "no no"; then 8338 if test "$with_png $with_tiff" != "no no"; then
8343 8339
8344 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 8340 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8345 echo "configure:8346: checking for inflate in -lc" >&5 8341 echo "configure:8342: checking for inflate in -lc" >&5
8346 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 8342 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8347 8343
8348 xe_check_libs=" -lc " 8344 xe_check_libs=" -lc "
8349 cat > conftest.$ac_ext <<EOF 8345 cat > conftest.$ac_ext <<EOF
8350 #line 8351 "configure" 8346 #line 8347 "configure"
8351 #include "confdefs.h" 8347 #include "confdefs.h"
8352 /* Override any gcc2 internal prototype to avoid an error. */ 8348 /* Override any gcc2 internal prototype to avoid an error. */
8353 /* We use char because int might match the return type of a gcc2 8349 /* We use char because int might match the return type of a gcc2
8354 builtin and then its argument prototype would still apply. */ 8350 builtin and then its argument prototype would still apply. */
8355 char inflate(); 8351 char inflate();
8356 8352
8357 int main() { 8353 int main() {
8358 inflate() 8354 inflate()
8359 ; return 0; } 8355 ; return 0; }
8360 EOF 8356 EOF
8361 if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8357 if { (eval echo configure:8358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8362 rm -rf conftest* 8358 rm -rf conftest*
8363 eval "ac_cv_lib_$ac_lib_var=yes" 8359 eval "ac_cv_lib_$ac_lib_var=yes"
8364 else 8360 else
8365 echo "configure: failed program was:" >&5 8361 echo "configure: failed program was:" >&5
8366 cat conftest.$ac_ext >&5 8362 cat conftest.$ac_ext >&5
8375 : 8371 :
8376 else 8372 else
8377 echo "$ac_t""no" 1>&6 8373 echo "$ac_t""no" 1>&6
8378 8374
8379 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 8375 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8380 echo "configure:8381: checking for inflate in -lz" >&5 8376 echo "configure:8377: checking for inflate in -lz" >&5
8381 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 8377 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8382 8378
8383 xe_check_libs=" -lz " 8379 xe_check_libs=" -lz "
8384 cat > conftest.$ac_ext <<EOF 8380 cat > conftest.$ac_ext <<EOF
8385 #line 8386 "configure" 8381 #line 8382 "configure"
8386 #include "confdefs.h" 8382 #include "confdefs.h"
8387 /* Override any gcc2 internal prototype to avoid an error. */ 8383 /* Override any gcc2 internal prototype to avoid an error. */
8388 /* We use char because int might match the return type of a gcc2 8384 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */ 8385 builtin and then its argument prototype would still apply. */
8390 char inflate(); 8386 char inflate();
8391 8387
8392 int main() { 8388 int main() {
8393 inflate() 8389 inflate()
8394 ; return 0; } 8390 ; return 0; }
8395 EOF 8391 EOF
8396 if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8392 if { (eval echo configure:8393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8397 rm -rf conftest* 8393 rm -rf conftest*
8398 eval "ac_cv_lib_$ac_lib_var=yes" 8394 eval "ac_cv_lib_$ac_lib_var=yes"
8399 else 8395 else
8400 echo "configure: failed program was:" >&5 8396 echo "configure: failed program was:" >&5
8401 cat conftest.$ac_ext >&5 8397 cat conftest.$ac_ext >&5
8410 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 8406 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8411 else 8407 else
8412 echo "$ac_t""no" 1>&6 8408 echo "$ac_t""no" 1>&6
8413 8409
8414 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 8410 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8415 echo "configure:8416: checking for inflate in -lgz" >&5 8411 echo "configure:8412: checking for inflate in -lgz" >&5
8416 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 8412 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8417 8413
8418 xe_check_libs=" -lgz " 8414 xe_check_libs=" -lgz "
8419 cat > conftest.$ac_ext <<EOF 8415 cat > conftest.$ac_ext <<EOF
8420 #line 8421 "configure" 8416 #line 8417 "configure"
8421 #include "confdefs.h" 8417 #include "confdefs.h"
8422 /* Override any gcc2 internal prototype to avoid an error. */ 8418 /* Override any gcc2 internal prototype to avoid an error. */
8423 /* We use char because int might match the return type of a gcc2 8419 /* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */ 8420 builtin and then its argument prototype would still apply. */
8425 char inflate(); 8421 char inflate();
8426 8422
8427 int main() { 8423 int main() {
8428 inflate() 8424 inflate()
8429 ; return 0; } 8425 ; return 0; }
8430 EOF 8426 EOF
8431 if { (eval echo configure:8432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8427 if { (eval echo configure:8428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8432 rm -rf conftest* 8428 rm -rf conftest*
8433 eval "ac_cv_lib_$ac_lib_var=yes" 8429 eval "ac_cv_lib_$ac_lib_var=yes"
8434 else 8430 else
8435 echo "configure: failed program was:" >&5 8431 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5 8432 cat conftest.$ac_ext >&5
8456 8452
8457 fi 8453 fi
8458 8454
8459 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 8455 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8460 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 8456 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8461 echo "configure:8462: checking for jpeglib.h" >&5 8457 echo "configure:8458: checking for jpeglib.h" >&5
8462 8458
8463 cat > conftest.$ac_ext <<EOF 8459 cat > conftest.$ac_ext <<EOF
8464 #line 8465 "configure" 8460 #line 8461 "configure"
8465 #include "confdefs.h" 8461 #include "confdefs.h"
8466 #include <jpeglib.h> 8462 #include <jpeglib.h>
8467 EOF 8463 EOF
8468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8469 { (eval echo configure:8470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8465 { (eval echo configure:8466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8471 if test -z "$ac_err"; then 8467 if test -z "$ac_err"; then
8472 rm -rf conftest* 8468 rm -rf conftest*
8473 eval "ac_cv_header_$ac_safe=yes" 8469 eval "ac_cv_header_$ac_safe=yes"
8474 else 8470 else
8487 with_jpeg=no 8483 with_jpeg=no
8488 fi 8484 fi
8489 } 8485 }
8490 test -z "$with_jpeg" && { 8486 test -z "$with_jpeg" && {
8491 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 8487 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8492 echo "configure:8493: checking for jpeg_destroy_decompress in -ljpeg" >&5 8488 echo "configure:8489: checking for jpeg_destroy_decompress in -ljpeg" >&5
8493 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 8489 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8494 8490
8495 xe_check_libs=" -ljpeg " 8491 xe_check_libs=" -ljpeg "
8496 cat > conftest.$ac_ext <<EOF 8492 cat > conftest.$ac_ext <<EOF
8497 #line 8498 "configure" 8493 #line 8494 "configure"
8498 #include "confdefs.h" 8494 #include "confdefs.h"
8499 /* Override any gcc2 internal prototype to avoid an error. */ 8495 /* Override any gcc2 internal prototype to avoid an error. */
8500 /* We use char because int might match the return type of a gcc2 8496 /* We use char because int might match the return type of a gcc2
8501 builtin and then its argument prototype would still apply. */ 8497 builtin and then its argument prototype would still apply. */
8502 char jpeg_destroy_decompress(); 8498 char jpeg_destroy_decompress();
8503 8499
8504 int main() { 8500 int main() {
8505 jpeg_destroy_decompress() 8501 jpeg_destroy_decompress()
8506 ; return 0; } 8502 ; return 0; }
8507 EOF 8503 EOF
8508 if { (eval echo configure:8509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8504 if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8509 rm -rf conftest* 8505 rm -rf conftest*
8510 eval "ac_cv_lib_$ac_lib_var=yes" 8506 eval "ac_cv_lib_$ac_lib_var=yes"
8511 else 8507 else
8512 echo "configure: failed program was:" >&5 8508 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5 8509 cat conftest.$ac_ext >&5
8539 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 8535 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8540 fi 8536 fi
8541 8537
8542 png_problem="" 8538 png_problem=""
8543 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 8539 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8544 echo "configure:8545: checking for pow" >&5 8540 echo "configure:8541: checking for pow" >&5
8545 8541
8546 cat > conftest.$ac_ext <<EOF 8542 cat > conftest.$ac_ext <<EOF
8547 #line 8548 "configure" 8543 #line 8544 "configure"
8548 #include "confdefs.h" 8544 #include "confdefs.h"
8549 /* System header to define __stub macros and hopefully few prototypes, 8545 /* System header to define __stub macros and hopefully few prototypes,
8550 which can conflict with char pow(); below. */ 8546 which can conflict with char pow(); below. */
8551 #include <assert.h> 8547 #include <assert.h>
8552 /* Override any gcc2 internal prototype to avoid an error. */ 8548 /* Override any gcc2 internal prototype to avoid an error. */
8565 pow(); 8561 pow();
8566 #endif 8562 #endif
8567 8563
8568 ; return 0; } 8564 ; return 0; }
8569 EOF 8565 EOF
8570 if { (eval echo configure:8571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8566 if { (eval echo configure:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8571 rm -rf conftest* 8567 rm -rf conftest*
8572 eval "ac_cv_func_pow=yes" 8568 eval "ac_cv_func_pow=yes"
8573 else 8569 else
8574 echo "configure: failed program was:" >&5 8570 echo "configure: failed program was:" >&5
8575 cat conftest.$ac_ext >&5 8571 cat conftest.$ac_ext >&5
8586 with_png=no 8582 with_png=no
8587 fi 8583 fi
8588 } 8584 }
8589 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 8585 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8590 echo $ac_n "checking for png.h""... $ac_c" 1>&6 8586 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8591 echo "configure:8592: checking for png.h" >&5 8587 echo "configure:8588: checking for png.h" >&5
8592 8588
8593 cat > conftest.$ac_ext <<EOF 8589 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure" 8590 #line 8591 "configure"
8595 #include "confdefs.h" 8591 #include "confdefs.h"
8596 #include <png.h> 8592 #include <png.h>
8597 EOF 8593 EOF
8598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8599 { (eval echo configure:8600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8595 { (eval echo configure:8596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8601 if test -z "$ac_err"; then 8597 if test -z "$ac_err"; then
8602 rm -rf conftest* 8598 rm -rf conftest*
8603 eval "ac_cv_header_$ac_safe=yes" 8599 eval "ac_cv_header_$ac_safe=yes"
8604 else 8600 else
8617 with_png=no 8613 with_png=no
8618 fi 8614 fi
8619 } 8615 }
8620 test -z "$with_png" && { 8616 test -z "$with_png" && {
8621 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 8617 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8622 echo "configure:8623: checking for png_read_image in -lpng" >&5 8618 echo "configure:8619: checking for png_read_image in -lpng" >&5
8623 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 8619 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8624 8620
8625 xe_check_libs=" -lpng " 8621 xe_check_libs=" -lpng "
8626 cat > conftest.$ac_ext <<EOF 8622 cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure" 8623 #line 8624 "configure"
8628 #include "confdefs.h" 8624 #include "confdefs.h"
8629 /* Override any gcc2 internal prototype to avoid an error. */ 8625 /* Override any gcc2 internal prototype to avoid an error. */
8630 /* We use char because int might match the return type of a gcc2 8626 /* We use char because int might match the return type of a gcc2
8631 builtin and then its argument prototype would still apply. */ 8627 builtin and then its argument prototype would still apply. */
8632 char png_read_image(); 8628 char png_read_image();
8633 8629
8634 int main() { 8630 int main() {
8635 png_read_image() 8631 png_read_image()
8636 ; return 0; } 8632 ; return 0; }
8637 EOF 8633 EOF
8638 if { (eval echo configure:8639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8634 if { (eval echo configure:8635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8639 rm -rf conftest* 8635 rm -rf conftest*
8640 eval "ac_cv_lib_$ac_lib_var=yes" 8636 eval "ac_cv_lib_$ac_lib_var=yes"
8641 else 8637 else
8642 echo "configure: failed program was:" >&5 8638 echo "configure: failed program was:" >&5
8643 cat conftest.$ac_ext >&5 8639 cat conftest.$ac_ext >&5
8656 fi 8652 fi
8657 8653
8658 } 8654 }
8659 if test -z "$with_png"; then 8655 if test -z "$with_png"; then
8660 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 8656 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8661 echo "configure:8662: checking for workable png version information" >&5 8657 echo "configure:8658: checking for workable png version information" >&5
8662 xe_check_libs="-lpng -lz" 8658 xe_check_libs="-lpng -lz"
8663 cat > conftest.$ac_ext <<EOF 8659 cat > conftest.$ac_ext <<EOF
8664 #line 8665 "configure" 8660 #line 8661 "configure"
8665 #include "confdefs.h" 8661 #include "confdefs.h"
8666 #include <png.h> 8662 #include <png.h>
8667 int main(int c, char **v) { 8663 int main(int c, char **v) {
8668 if (c == 1) return 0; 8664 if (c == 1) return 0;
8669 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 8665 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8670 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 8666 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8671 EOF 8667 EOF
8672 if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8668 if { (eval echo configure:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8673 then 8669 then
8674 ./conftest dummy_arg; png_status=$?; 8670 ./conftest dummy_arg; png_status=$?;
8675 if test "$png_status" = "0"; then 8671 if test "$png_status" = "0"; then
8676 with_png=yes; 8672 with_png=yes;
8677 else 8673 else
8710 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 8706 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8711 fi 8707 fi
8712 8708
8713 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 8709 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8714 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 8710 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8715 echo "configure:8716: checking for tiffio.h" >&5 8711 echo "configure:8712: checking for tiffio.h" >&5
8716 8712
8717 cat > conftest.$ac_ext <<EOF 8713 cat > conftest.$ac_ext <<EOF
8718 #line 8719 "configure" 8714 #line 8715 "configure"
8719 #include "confdefs.h" 8715 #include "confdefs.h"
8720 #include <tiffio.h> 8716 #include <tiffio.h>
8721 EOF 8717 EOF
8722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8723 { (eval echo configure:8724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8719 { (eval echo configure:8720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8725 if test -z "$ac_err"; then 8721 if test -z "$ac_err"; then
8726 rm -rf conftest* 8722 rm -rf conftest*
8727 eval "ac_cv_header_$ac_safe=yes" 8723 eval "ac_cv_header_$ac_safe=yes"
8728 else 8724 else
8741 with_tiff=no 8737 with_tiff=no
8742 fi 8738 fi
8743 } 8739 }
8744 test -z "$with_tiff" && { 8740 test -z "$with_tiff" && {
8745 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 8741 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8746 echo "configure:8747: checking for TIFFClientOpen in -ltiff" >&5 8742 echo "configure:8743: checking for TIFFClientOpen in -ltiff" >&5
8747 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 8743 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8748 8744
8749 xe_check_libs=" -ltiff " 8745 xe_check_libs=" -ltiff "
8750 cat > conftest.$ac_ext <<EOF 8746 cat > conftest.$ac_ext <<EOF
8751 #line 8752 "configure" 8747 #line 8748 "configure"
8752 #include "confdefs.h" 8748 #include "confdefs.h"
8753 /* Override any gcc2 internal prototype to avoid an error. */ 8749 /* Override any gcc2 internal prototype to avoid an error. */
8754 /* We use char because int might match the return type of a gcc2 8750 /* We use char because int might match the return type of a gcc2
8755 builtin and then its argument prototype would still apply. */ 8751 builtin and then its argument prototype would still apply. */
8756 char TIFFClientOpen(); 8752 char TIFFClientOpen();
8757 8753
8758 int main() { 8754 int main() {
8759 TIFFClientOpen() 8755 TIFFClientOpen()
8760 ; return 0; } 8756 ; return 0; }
8761 EOF 8757 EOF
8762 if { (eval echo configure:8763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8758 if { (eval echo configure:8759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8763 rm -rf conftest* 8759 rm -rf conftest*
8764 eval "ac_cv_lib_$ac_lib_var=yes" 8760 eval "ac_cv_lib_$ac_lib_var=yes"
8765 else 8761 else
8766 echo "configure: failed program was:" >&5 8762 echo "configure: failed program was:" >&5
8767 cat conftest.$ac_ext >&5 8763 cat conftest.$ac_ext >&5
8796 8792
8797 8793
8798 if test "$with_gtk" = "yes"; then 8794 if test "$with_gtk" = "yes"; then
8799 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 8795 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8800 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 8796 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8801 echo "configure:8802: checking for compface.h" >&5 8797 echo "configure:8798: checking for compface.h" >&5
8802 8798
8803 cat > conftest.$ac_ext <<EOF 8799 cat > conftest.$ac_ext <<EOF
8804 #line 8805 "configure" 8800 #line 8801 "configure"
8805 #include "confdefs.h" 8801 #include "confdefs.h"
8806 #include <compface.h> 8802 #include <compface.h>
8807 EOF 8803 EOF
8808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8809 { (eval echo configure:8810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8805 { (eval echo configure:8806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8811 if test -z "$ac_err"; then 8807 if test -z "$ac_err"; then
8812 rm -rf conftest* 8808 rm -rf conftest*
8813 eval "ac_cv_header_$ac_safe=yes" 8809 eval "ac_cv_header_$ac_safe=yes"
8814 else 8810 else
8827 with_xface=no 8823 with_xface=no
8828 fi 8824 fi
8829 } 8825 }
8830 test -z "$with_xface" && { 8826 test -z "$with_xface" && {
8831 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 8827 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8832 echo "configure:8833: checking for UnGenFace in -lcompface" >&5 8828 echo "configure:8829: checking for UnGenFace in -lcompface" >&5
8833 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 8829 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8834 8830
8835 xe_check_libs=" -lcompface " 8831 xe_check_libs=" -lcompface "
8836 cat > conftest.$ac_ext <<EOF 8832 cat > conftest.$ac_ext <<EOF
8837 #line 8838 "configure" 8833 #line 8834 "configure"
8838 #include "confdefs.h" 8834 #include "confdefs.h"
8839 /* Override any gcc2 internal prototype to avoid an error. */ 8835 /* Override any gcc2 internal prototype to avoid an error. */
8840 /* We use char because int might match the return type of a gcc2 8836 /* We use char because int might match the return type of a gcc2
8841 builtin and then its argument prototype would still apply. */ 8837 builtin and then its argument prototype would still apply. */
8842 char UnGenFace(); 8838 char UnGenFace();
8843 8839
8844 int main() { 8840 int main() {
8845 UnGenFace() 8841 UnGenFace()
8846 ; return 0; } 8842 ; return 0; }
8847 EOF 8843 EOF
8848 if { (eval echo configure:8849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8844 if { (eval echo configure:8845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8849 rm -rf conftest* 8845 rm -rf conftest*
8850 eval "ac_cv_lib_$ac_lib_var=yes" 8846 eval "ac_cv_lib_$ac_lib_var=yes"
8851 else 8847 else
8852 echo "configure: failed program was:" >&5 8848 echo "configure: failed program was:" >&5
8853 cat conftest.$ac_ext >&5 8849 cat conftest.$ac_ext >&5
8882 8878
8883 8879
8884 8880
8885 if test "$with_x11" = "yes"; then 8881 if test "$with_x11" = "yes"; then
8886 echo "checking for X11 graphics libraries" 1>&6 8882 echo "checking for X11 graphics libraries" 1>&6
8887 echo "configure:8888: checking for X11 graphics libraries" >&5 8883 echo "configure:8884: checking for X11 graphics libraries" >&5
8888 fi 8884 fi
8889 8885
8890 if test "$with_x11" = "yes" -a "$with_widgets" = "athena"; then 8886 case "$with_widgets" in
8887 "yes" | "athena") detect_athena=yes ;;
8888 *) detect_athena=no ;;
8889 esac
8890
8891 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
8891 echo "checking for the Athena widgets" 1>&6 8892 echo "checking for the Athena widgets" 1>&6
8892 echo "configure:8893: checking for the Athena widgets" >&5 8893 echo "configure:8894: checking for the Athena widgets" >&5
8893 8894
8894 case "$with_athena" in 8895 case "$with_athena" in
8895 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 8896 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8896 "3d") athena_variant=Xaw3d athena_3d=yes ;; 8897 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8897 "next") athena_variant=neXtaw athena_3d=yes ;; 8898 "next") athena_variant=neXtaw athena_3d=yes ;;
8901 esac 8902 esac
8902 8903
8903 if test "$athena_3d" = "no"; then 8904 if test "$athena_3d" = "no"; then
8904 8905
8905 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 8906 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8906 echo "configure:8907: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 8907 echo "configure:8908: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8907 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 8908 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8908 8909
8909 xe_check_libs=" -l$athena_variant " 8910 xe_check_libs=" -l$athena_variant "
8910 cat > conftest.$ac_ext <<EOF 8911 cat > conftest.$ac_ext <<EOF
8911 #line 8912 "configure" 8912 #line 8913 "configure"
8912 #include "confdefs.h" 8913 #include "confdefs.h"
8913 /* Override any gcc2 internal prototype to avoid an error. */ 8914 /* Override any gcc2 internal prototype to avoid an error. */
8914 /* We use char because int might match the return type of a gcc2 8915 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */ 8916 builtin and then its argument prototype would still apply. */
8916 char XawScrollbarSetThumb(); 8917 char XawScrollbarSetThumb();
8917 8918
8918 int main() { 8919 int main() {
8919 XawScrollbarSetThumb() 8920 XawScrollbarSetThumb()
8920 ; return 0; } 8921 ; return 0; }
8921 EOF 8922 EOF
8922 if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8923 if { (eval echo configure:8924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8923 rm -rf conftest* 8924 rm -rf conftest*
8924 eval "ac_cv_lib_$ac_lib_var=yes" 8925 eval "ac_cv_lib_$ac_lib_var=yes"
8925 else 8926 else
8926 echo "configure: failed program was:" >&5 8927 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5 8928 cat conftest.$ac_ext >&5
8933 8934
8934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 8935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8935 echo "$ac_t""yes" 1>&6 8936 echo "$ac_t""yes" 1>&6
8936 8937
8937 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8938 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8938 echo "configure:8939: checking for threeDClassRec in -l$athena_variant" >&5 8939 echo "configure:8940: checking for threeDClassRec in -l$athena_variant" >&5
8939 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8940 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8940 8941
8941 xe_check_libs=" -l$athena_variant " 8942 xe_check_libs=" -l$athena_variant "
8942 cat > conftest.$ac_ext <<EOF 8943 cat > conftest.$ac_ext <<EOF
8943 #line 8944 "configure" 8944 #line 8945 "configure"
8944 #include "confdefs.h" 8945 #include "confdefs.h"
8945 /* Override any gcc2 internal prototype to avoid an error. */ 8946 /* Override any gcc2 internal prototype to avoid an error. */
8946 /* We use char because int might match the return type of a gcc2 8947 /* We use char because int might match the return type of a gcc2
8947 builtin and then its argument prototype would still apply. */ 8948 builtin and then its argument prototype would still apply. */
8948 char threeDClassRec(); 8949 char threeDClassRec();
8949 8950
8950 int main() { 8951 int main() {
8951 threeDClassRec() 8952 threeDClassRec()
8952 ; return 0; } 8953 ; return 0; }
8953 EOF 8954 EOF
8954 if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8955 if { (eval echo configure:8956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8955 rm -rf conftest* 8956 rm -rf conftest*
8956 eval "ac_cv_lib_$ac_lib_var=yes" 8957 eval "ac_cv_lib_$ac_lib_var=yes"
8957 else 8958 else
8958 echo "configure: failed program was:" >&5 8959 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5 8960 cat conftest.$ac_ext >&5
8980 8981
8981 8982
8982 else 8983 else
8983 8984
8984 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8985 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8985 echo "configure:8986: checking for threeDClassRec in -l$athena_variant" >&5 8986 echo "configure:8987: checking for threeDClassRec in -l$athena_variant" >&5
8986 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8987 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8987 8988
8988 xe_check_libs=" -l$athena_variant " 8989 xe_check_libs=" -l$athena_variant "
8989 cat > conftest.$ac_ext <<EOF 8990 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure" 8991 #line 8992 "configure"
8991 #include "confdefs.h" 8992 #include "confdefs.h"
8992 /* Override any gcc2 internal prototype to avoid an error. */ 8993 /* Override any gcc2 internal prototype to avoid an error. */
8993 /* We use char because int might match the return type of a gcc2 8994 /* We use char because int might match the return type of a gcc2
8994 builtin and then its argument prototype would still apply. */ 8995 builtin and then its argument prototype would still apply. */
8995 char threeDClassRec(); 8996 char threeDClassRec();
8996 8997
8997 int main() { 8998 int main() {
8998 threeDClassRec() 8999 threeDClassRec()
8999 ; return 0; } 9000 ; return 0; }
9000 EOF 9001 EOF
9001 if { (eval echo configure:9002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9002 if { (eval echo configure:9003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9002 rm -rf conftest* 9003 rm -rf conftest*
9003 eval "ac_cv_lib_$ac_lib_var=yes" 9004 eval "ac_cv_lib_$ac_lib_var=yes"
9004 else 9005 else
9005 echo "configure: failed program was:" >&5 9006 echo "configure: failed program was:" >&5
9006 cat conftest.$ac_ext >&5 9007 cat conftest.$ac_ext >&5
9014 echo "$ac_t""yes" 1>&6 9015 echo "$ac_t""yes" 1>&6
9015 athena_lib=$athena_variant 9016 athena_lib=$athena_variant
9016 else 9017 else
9017 echo "$ac_t""no" 1>&6 9018 echo "$ac_t""no" 1>&6
9018 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 9019 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
9019 echo "configure:9020: checking for threeDClassRec in -lXaw" >&5 9020 echo "configure:9021: checking for threeDClassRec in -lXaw" >&5
9020 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 9021 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
9021 9022
9022 xe_check_libs=" -lXaw " 9023 xe_check_libs=" -lXaw "
9023 cat > conftest.$ac_ext <<EOF 9024 cat > conftest.$ac_ext <<EOF
9024 #line 9025 "configure" 9025 #line 9026 "configure"
9025 #include "confdefs.h" 9026 #include "confdefs.h"
9026 /* Override any gcc2 internal prototype to avoid an error. */ 9027 /* Override any gcc2 internal prototype to avoid an error. */
9027 /* We use char because int might match the return type of a gcc2 9028 /* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */ 9029 builtin and then its argument prototype would still apply. */
9029 char threeDClassRec(); 9030 char threeDClassRec();
9030 9031
9031 int main() { 9032 int main() {
9032 threeDClassRec() 9033 threeDClassRec()
9033 ; return 0; } 9034 ; return 0; }
9034 EOF 9035 EOF
9035 if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9036 if { (eval echo configure:9037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9036 rm -rf conftest* 9037 rm -rf conftest*
9037 eval "ac_cv_lib_$ac_lib_var=yes" 9038 eval "ac_cv_lib_$ac_lib_var=yes"
9038 else 9039 else
9039 echo "configure: failed program was:" >&5 9040 echo "configure: failed program was:" >&5
9040 cat conftest.$ac_ext >&5 9041 cat conftest.$ac_ext >&5
9061 fi 9062 fi
9062 9063
9063 if test "$athena_3d" = "no"; then 9064 if test "$athena_3d" = "no"; then
9064 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 9065 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9065 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 9066 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9066 echo "configure:9067: checking for X11/Xaw/ThreeD.h" >&5 9067 echo "configure:9068: checking for X11/Xaw/ThreeD.h" >&5
9067 9068
9068 cat > conftest.$ac_ext <<EOF 9069 cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure" 9070 #line 9071 "configure"
9070 #include "confdefs.h" 9071 #include "confdefs.h"
9071 #include <X11/Xaw/ThreeD.h> 9072 #include <X11/Xaw/ThreeD.h>
9072 EOF 9073 EOF
9073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9074 { (eval echo configure:9075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9075 { (eval echo configure:9076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9076 if test -z "$ac_err"; then 9077 if test -z "$ac_err"; then
9077 rm -rf conftest* 9078 rm -rf conftest*
9078 eval "ac_cv_header_$ac_safe=yes" 9079 eval "ac_cv_header_$ac_safe=yes"
9079 else 9080 else
9089 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2 9090 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
9090 else 9091 else
9091 echo "$ac_t""no" 1>&6 9092 echo "$ac_t""no" 1>&6
9092 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 9093 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9093 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 9094 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9094 echo "configure:9095: checking for X11/Xaw/XawInit.h" >&5 9095 echo "configure:9096: checking for X11/Xaw/XawInit.h" >&5
9095 9096
9096 cat > conftest.$ac_ext <<EOF 9097 cat > conftest.$ac_ext <<EOF
9097 #line 9098 "configure" 9098 #line 9099 "configure"
9098 #include "confdefs.h" 9099 #include "confdefs.h"
9099 #include <X11/Xaw/XawInit.h> 9100 #include <X11/Xaw/XawInit.h>
9100 EOF 9101 EOF
9101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9102 { (eval echo configure:9103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9103 { (eval echo configure:9104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9104 if test -z "$ac_err"; then 9105 if test -z "$ac_err"; then
9105 rm -rf conftest* 9106 rm -rf conftest*
9106 eval "ac_cv_header_$ac_safe=yes" 9107 eval "ac_cv_header_$ac_safe=yes"
9107 else 9108 else
9123 fi 9124 fi
9124 9125
9125 else 9126 else
9126 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 9127 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9127 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 9128 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9128 echo "configure:9129: checking for X11/$athena_variant/XawInit.h" >&5 9129 echo "configure:9130: checking for X11/$athena_variant/XawInit.h" >&5
9129 9130
9130 cat > conftest.$ac_ext <<EOF 9131 cat > conftest.$ac_ext <<EOF
9131 #line 9132 "configure" 9132 #line 9133 "configure"
9132 #include "confdefs.h" 9133 #include "confdefs.h"
9133 #include <X11/$athena_variant/XawInit.h> 9134 #include <X11/$athena_variant/XawInit.h>
9134 EOF 9135 EOF
9135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9136 { (eval echo configure:9137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9137 { (eval echo configure:9138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9138 if test -z "$ac_err"; then 9139 if test -z "$ac_err"; then
9139 rm -rf conftest* 9140 rm -rf conftest*
9140 eval "ac_cv_header_$ac_safe=yes" 9141 eval "ac_cv_header_$ac_safe=yes"
9141 else 9142 else
9148 rm -f conftest* 9149 rm -f conftest*
9149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9150 echo "$ac_t""yes" 1>&6 9151 echo "$ac_t""yes" 1>&6
9151 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 9152 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9152 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 9153 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9153 echo "configure:9154: checking for X11/$athena_variant/ThreeD.h" >&5 9154 echo "configure:9155: checking for X11/$athena_variant/ThreeD.h" >&5
9154 9155
9155 cat > conftest.$ac_ext <<EOF 9156 cat > conftest.$ac_ext <<EOF
9156 #line 9157 "configure" 9157 #line 9158 "configure"
9157 #include "confdefs.h" 9158 #include "confdefs.h"
9158 #include <X11/$athena_variant/ThreeD.h> 9159 #include <X11/$athena_variant/ThreeD.h>
9159 EOF 9160 EOF
9160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9161 { (eval echo configure:9162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9162 { (eval echo configure:9163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9163 if test -z "$ac_err"; then 9164 if test -z "$ac_err"; then
9164 rm -rf conftest* 9165 rm -rf conftest*
9165 eval "ac_cv_header_$ac_safe=yes" 9166 eval "ac_cv_header_$ac_safe=yes"
9166 else 9167 else
9184 9185
9185 9186
9186 if test -z "$athena_h_path"; then 9187 if test -z "$athena_h_path"; then
9187 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 9188 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9188 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 9189 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9189 echo "configure:9190: checking for $athena_variant/XawInit.h" >&5 9190 echo "configure:9191: checking for $athena_variant/XawInit.h" >&5
9190 9191
9191 cat > conftest.$ac_ext <<EOF 9192 cat > conftest.$ac_ext <<EOF
9192 #line 9193 "configure" 9193 #line 9194 "configure"
9193 #include "confdefs.h" 9194 #include "confdefs.h"
9194 #include <$athena_variant/XawInit.h> 9195 #include <$athena_variant/XawInit.h>
9195 EOF 9196 EOF
9196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9197 { (eval echo configure:9198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9198 { (eval echo configure:9199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9199 if test -z "$ac_err"; then 9200 if test -z "$ac_err"; then
9200 rm -rf conftest* 9201 rm -rf conftest*
9201 eval "ac_cv_header_$ac_safe=yes" 9202 eval "ac_cv_header_$ac_safe=yes"
9202 else 9203 else
9209 rm -f conftest* 9210 rm -f conftest*
9210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9211 echo "$ac_t""yes" 1>&6 9212 echo "$ac_t""yes" 1>&6
9212 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 9213 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9213 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 9214 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9214 echo "configure:9215: checking for $athena_variant/ThreeD.h" >&5 9215 echo "configure:9216: checking for $athena_variant/ThreeD.h" >&5
9215 9216
9216 cat > conftest.$ac_ext <<EOF 9217 cat > conftest.$ac_ext <<EOF
9217 #line 9218 "configure" 9218 #line 9219 "configure"
9218 #include "confdefs.h" 9219 #include "confdefs.h"
9219 #include <$athena_variant/ThreeD.h> 9220 #include <$athena_variant/ThreeD.h>
9220 EOF 9221 EOF
9221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9222 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; } 9223 { (eval echo configure:9224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9224 if test -z "$ac_err"; then 9225 if test -z "$ac_err"; then
9225 rm -rf conftest* 9226 rm -rf conftest*
9226 eval "ac_cv_header_$ac_safe=yes" 9227 eval "ac_cv_header_$ac_safe=yes"
9227 else 9228 else
9246 fi 9247 fi
9247 9248
9248 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 9249 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9249 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 9250 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9250 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 9251 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9251 echo "configure:9252: checking for X11/Xaw3d/XawInit.h" >&5 9252 echo "configure:9253: checking for X11/Xaw3d/XawInit.h" >&5
9252 9253
9253 cat > conftest.$ac_ext <<EOF 9254 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure" 9255 #line 9256 "configure"
9255 #include "confdefs.h" 9256 #include "confdefs.h"
9256 #include <X11/Xaw3d/XawInit.h> 9257 #include <X11/Xaw3d/XawInit.h>
9257 EOF 9258 EOF
9258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9259 { (eval echo configure:9260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9260 { (eval echo configure:9261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9261 if test -z "$ac_err"; then 9262 if test -z "$ac_err"; then
9262 rm -rf conftest* 9263 rm -rf conftest*
9263 eval "ac_cv_header_$ac_safe=yes" 9264 eval "ac_cv_header_$ac_safe=yes"
9264 else 9265 else
9271 rm -f conftest* 9272 rm -f conftest*
9272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9273 echo "$ac_t""yes" 1>&6 9274 echo "$ac_t""yes" 1>&6
9274 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 9275 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9275 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 9276 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9276 echo "configure:9277: checking for X11/Xaw3d/ThreeD.h" >&5 9277 echo "configure:9278: checking for X11/Xaw3d/ThreeD.h" >&5
9277 9278
9278 cat > conftest.$ac_ext <<EOF 9279 cat > conftest.$ac_ext <<EOF
9279 #line 9280 "configure" 9280 #line 9281 "configure"
9280 #include "confdefs.h" 9281 #include "confdefs.h"
9281 #include <X11/Xaw3d/ThreeD.h> 9282 #include <X11/Xaw3d/ThreeD.h>
9282 EOF 9283 EOF
9283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9284 { (eval echo configure:9285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9285 { (eval echo configure:9286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9286 if test -z "$ac_err"; then 9287 if test -z "$ac_err"; then
9287 rm -rf conftest* 9288 rm -rf conftest*
9288 eval "ac_cv_header_$ac_safe=yes" 9289 eval "ac_cv_header_$ac_safe=yes"
9289 else 9290 else
9311 fi 9312 fi
9312 9313
9313 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 9314 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9314 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 9315 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9315 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 9316 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9316 echo "configure:9317: checking for Xaw3d/XawInit.h" >&5 9317 echo "configure:9318: checking for Xaw3d/XawInit.h" >&5
9317 9318
9318 cat > conftest.$ac_ext <<EOF 9319 cat > conftest.$ac_ext <<EOF
9319 #line 9320 "configure" 9320 #line 9321 "configure"
9320 #include "confdefs.h" 9321 #include "confdefs.h"
9321 #include <Xaw3d/XawInit.h> 9322 #include <Xaw3d/XawInit.h>
9322 EOF 9323 EOF
9323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9324 { (eval echo configure:9325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9325 { (eval echo configure:9326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9326 if test -z "$ac_err"; then 9327 if test -z "$ac_err"; then
9327 rm -rf conftest* 9328 rm -rf conftest*
9328 eval "ac_cv_header_$ac_safe=yes" 9329 eval "ac_cv_header_$ac_safe=yes"
9329 else 9330 else
9336 rm -f conftest* 9337 rm -f conftest*
9337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9338 echo "$ac_t""yes" 1>&6 9339 echo "$ac_t""yes" 1>&6
9339 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 9340 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9340 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 9341 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9341 echo "configure:9342: checking for Xaw3d/ThreeD.h" >&5 9342 echo "configure:9343: checking for Xaw3d/ThreeD.h" >&5
9342 9343
9343 cat > conftest.$ac_ext <<EOF 9344 cat > conftest.$ac_ext <<EOF
9344 #line 9345 "configure" 9345 #line 9346 "configure"
9345 #include "confdefs.h" 9346 #include "confdefs.h"
9346 #include <Xaw3d/ThreeD.h> 9347 #include <Xaw3d/ThreeD.h>
9347 EOF 9348 EOF
9348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9349 { (eval echo configure:9350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9350 { (eval echo configure:9351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9351 if test -z "$ac_err"; then 9352 if test -z "$ac_err"; then
9352 rm -rf conftest* 9353 rm -rf conftest*
9353 eval "ac_cv_header_$ac_safe=yes" 9354 eval "ac_cv_header_$ac_safe=yes"
9354 else 9355 else
9376 fi 9377 fi
9377 9378
9378 if test -z "$athena_h_path"; then 9379 if test -z "$athena_h_path"; then
9379 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 9380 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9380 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 9381 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9381 echo "configure:9382: checking for X11/Xaw/ThreeD.h" >&5 9382 echo "configure:9383: checking for X11/Xaw/ThreeD.h" >&5
9382 9383
9383 cat > conftest.$ac_ext <<EOF 9384 cat > conftest.$ac_ext <<EOF
9384 #line 9385 "configure" 9385 #line 9386 "configure"
9385 #include "confdefs.h" 9386 #include "confdefs.h"
9386 #include <X11/Xaw/ThreeD.h> 9387 #include <X11/Xaw/ThreeD.h>
9387 EOF 9388 EOF
9388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9389 { (eval echo configure:9390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9390 { (eval echo configure:9391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9391 if test -z "$ac_err"; then 9392 if test -z "$ac_err"; then
9392 rm -rf conftest* 9393 rm -rf conftest*
9393 eval "ac_cv_header_$ac_safe=yes" 9394 eval "ac_cv_header_$ac_safe=yes"
9394 else 9395 else
9423 have_xaw=no 9424 have_xaw=no
9424 fi 9425 fi
9425 if test "$with_x11" = "yes"; then 9426 if test "$with_x11" = "yes"; then
9426 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 9427 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9427 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 9428 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9428 echo "configure:9429: checking for Xm/Xm.h" >&5 9429 echo "configure:9430: checking for Xm/Xm.h" >&5
9429 9430
9430 cat > conftest.$ac_ext <<EOF 9431 cat > conftest.$ac_ext <<EOF
9431 #line 9432 "configure" 9432 #line 9433 "configure"
9432 #include "confdefs.h" 9433 #include "confdefs.h"
9433 #include <Xm/Xm.h> 9434 #include <Xm/Xm.h>
9434 EOF 9435 EOF
9435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9436 { (eval echo configure:9437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9437 { (eval echo configure:9438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9438 if test -z "$ac_err"; then 9439 if test -z "$ac_err"; then
9439 rm -rf conftest* 9440 rm -rf conftest*
9440 eval "ac_cv_header_$ac_safe=yes" 9441 eval "ac_cv_header_$ac_safe=yes"
9441 else 9442 else
9448 rm -f conftest* 9449 rm -f conftest*
9449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9450 echo "$ac_t""yes" 1>&6 9451 echo "$ac_t""yes" 1>&6
9451 9452
9452 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 9453 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9453 echo "configure:9454: checking for XmStringFree in -lXm" >&5 9454 echo "configure:9455: checking for XmStringFree in -lXm" >&5
9454 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 9455 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9455 9456
9456 xe_check_libs=" -lXm " 9457 xe_check_libs=" -lXm "
9457 cat > conftest.$ac_ext <<EOF 9458 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure" 9459 #line 9460 "configure"
9459 #include "confdefs.h" 9460 #include "confdefs.h"
9460 /* Override any gcc2 internal prototype to avoid an error. */ 9461 /* Override any gcc2 internal prototype to avoid an error. */
9461 /* We use char because int might match the return type of a gcc2 9462 /* We use char because int might match the return type of a gcc2
9462 builtin and then its argument prototype would still apply. */ 9463 builtin and then its argument prototype would still apply. */
9463 char XmStringFree(); 9464 char XmStringFree();
9464 9465
9465 int main() { 9466 int main() {
9466 XmStringFree() 9467 XmStringFree()
9467 ; return 0; } 9468 ; return 0; }
9468 EOF 9469 EOF
9469 if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9470 if { (eval echo configure:9471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9470 rm -rf conftest* 9471 rm -rf conftest*
9471 eval "ac_cv_lib_$ac_lib_var=yes" 9472 eval "ac_cv_lib_$ac_lib_var=yes"
9472 else 9473 else
9473 echo "configure: failed program was:" >&5 9474 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5 9475 cat conftest.$ac_ext >&5
9493 fi 9494 fi
9494 9495
9495 9496
9496 if test "$have_motif" = "yes"; then 9497 if test "$have_motif" = "yes"; then
9497 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 9498 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9498 echo "configure:9499: checking for Lesstif" >&5 9499 echo "configure:9500: checking for Lesstif" >&5
9499 cat > conftest.$ac_ext <<EOF 9500 cat > conftest.$ac_ext <<EOF
9500 #line 9501 "configure" 9501 #line 9502 "configure"
9501 #include "confdefs.h" 9502 #include "confdefs.h"
9502 #include <Xm/Xm.h> 9503 #include <Xm/Xm.h>
9503 #ifdef LESSTIF_VERSION 9504 #ifdef LESSTIF_VERSION
9504 yes 9505 yes
9505 #endif 9506 #endif
9925 9926
9926 test -z "$with_file_coding" && with_file_coding=no 9927 test -z "$with_file_coding" && with_file_coding=no
9927 9928
9928 if test "$with_mule" = "yes" ; then 9929 if test "$with_mule" = "yes" ; then
9929 echo "checking for Mule-related features" 1>&6 9930 echo "checking for Mule-related features" 1>&6
9930 echo "configure:9931: checking for Mule-related features" >&5 9931 echo "configure:9932: checking for Mule-related features" >&5
9931 { test "$extra_verbose" = "yes" && cat << \EOF 9932 { test "$extra_verbose" = "yes" && cat << \EOF
9932 Defining MULE 9933 Defining MULE
9933 EOF 9934 EOF
9934 cat >> confdefs.h <<\EOF 9935 cat >> confdefs.h <<\EOF
9935 #define MULE 1 9936 #define MULE 1
9950 9951
9951 for ac_hdr in libintl.h 9952 for ac_hdr in libintl.h
9952 do 9953 do
9953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 9954 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 9955 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9955 echo "configure:9956: checking for $ac_hdr" >&5 9956 echo "configure:9957: checking for $ac_hdr" >&5
9956 9957
9957 cat > conftest.$ac_ext <<EOF 9958 cat > conftest.$ac_ext <<EOF
9958 #line 9959 "configure" 9959 #line 9960 "configure"
9959 #include "confdefs.h" 9960 #include "confdefs.h"
9960 #include <$ac_hdr> 9961 #include <$ac_hdr>
9961 EOF 9962 EOF
9962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9963 { (eval echo configure:9964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9964 { (eval echo configure:9965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9965 if test -z "$ac_err"; then 9966 if test -z "$ac_err"; then
9966 rm -rf conftest* 9967 rm -rf conftest*
9967 eval "ac_cv_header_$ac_safe=yes" 9968 eval "ac_cv_header_$ac_safe=yes"
9968 else 9969 else
9989 fi 9990 fi
9990 done 9991 done
9991 9992
9992 9993
9993 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 9994 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9994 echo "configure:9995: checking for strerror in -lintl" >&5 9995 echo "configure:9996: checking for strerror in -lintl" >&5
9995 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 9996 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9996 9997
9997 xe_check_libs=" -lintl " 9998 xe_check_libs=" -lintl "
9998 cat > conftest.$ac_ext <<EOF 9999 cat > conftest.$ac_ext <<EOF
9999 #line 10000 "configure" 10000 #line 10001 "configure"
10000 #include "confdefs.h" 10001 #include "confdefs.h"
10001 /* Override any gcc2 internal prototype to avoid an error. */ 10002 /* Override any gcc2 internal prototype to avoid an error. */
10002 /* We use char because int might match the return type of a gcc2 10003 /* We use char because int might match the return type of a gcc2
10003 builtin and then its argument prototype would still apply. */ 10004 builtin and then its argument prototype would still apply. */
10004 char strerror(); 10005 char strerror();
10005 10006
10006 int main() { 10007 int main() {
10007 strerror() 10008 strerror()
10008 ; return 0; } 10009 ; return 0; }
10009 EOF 10010 EOF
10010 if { (eval echo configure:10011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10011 if { (eval echo configure:10012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10011 rm -rf conftest* 10012 rm -rf conftest*
10012 eval "ac_cv_lib_$ac_lib_var=yes" 10013 eval "ac_cv_lib_$ac_lib_var=yes"
10013 else 10014 else
10014 echo "configure: failed program was:" >&5 10015 echo "configure: failed program was:" >&5
10015 cat conftest.$ac_ext >&5 10016 cat conftest.$ac_ext >&5
10038 fi 10039 fi
10039 10040
10040 10041
10041 10042
10042 echo "checking for Mule input methods" 1>&6 10043 echo "checking for Mule input methods" 1>&6
10043 echo "configure:10044: checking for Mule input methods" >&5 10044 echo "configure:10045: checking for Mule input methods" >&5
10044 case "$with_xim" in "" | "yes" ) 10045 case "$with_xim" in "" | "yes" )
10045 echo "checking for XIM" 1>&6 10046 echo "checking for XIM" 1>&6
10046 echo "configure:10047: checking for XIM" >&5 10047 echo "configure:10048: checking for XIM" >&5
10047 10048
10048 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 10049 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
10049 echo "configure:10050: checking for XOpenIM in -lX11" >&5 10050 echo "configure:10051: checking for XOpenIM in -lX11" >&5
10050 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 10051 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
10051 10052
10052 xe_check_libs=" -lX11 " 10053 xe_check_libs=" -lX11 "
10053 cat > conftest.$ac_ext <<EOF 10054 cat > conftest.$ac_ext <<EOF
10054 #line 10055 "configure" 10055 #line 10056 "configure"
10055 #include "confdefs.h" 10056 #include "confdefs.h"
10056 /* Override any gcc2 internal prototype to avoid an error. */ 10057 /* Override any gcc2 internal prototype to avoid an error. */
10057 /* We use char because int might match the return type of a gcc2 10058 /* We use char because int might match the return type of a gcc2
10058 builtin and then its argument prototype would still apply. */ 10059 builtin and then its argument prototype would still apply. */
10059 char XOpenIM(); 10060 char XOpenIM();
10060 10061
10061 int main() { 10062 int main() {
10062 XOpenIM() 10063 XOpenIM()
10063 ; return 0; } 10064 ; return 0; }
10064 EOF 10065 EOF
10065 if { (eval echo configure:10066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10066 if { (eval echo configure:10067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10066 rm -rf conftest* 10067 rm -rf conftest*
10067 eval "ac_cv_lib_$ac_lib_var=yes" 10068 eval "ac_cv_lib_$ac_lib_var=yes"
10068 else 10069 else
10069 echo "configure: failed program was:" >&5 10070 echo "configure: failed program was:" >&5
10070 cat conftest.$ac_ext >&5 10071 cat conftest.$ac_ext >&5
10084 10085
10085 10086
10086 if test "$have_motif $have_lesstif" = "yes no"; then 10087 if test "$have_motif $have_lesstif" = "yes no"; then
10087 10088
10088 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 10089 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10089 echo "configure:10090: checking for XmImMbLookupString in -lXm" >&5 10090 echo "configure:10091: checking for XmImMbLookupString in -lXm" >&5
10090 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 10091 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10091 10092
10092 xe_check_libs=" -lXm " 10093 xe_check_libs=" -lXm "
10093 cat > conftest.$ac_ext <<EOF 10094 cat > conftest.$ac_ext <<EOF
10094 #line 10095 "configure" 10095 #line 10096 "configure"
10095 #include "confdefs.h" 10096 #include "confdefs.h"
10096 /* Override any gcc2 internal prototype to avoid an error. */ 10097 /* Override any gcc2 internal prototype to avoid an error. */
10097 /* We use char because int might match the return type of a gcc2 10098 /* We use char because int might match the return type of a gcc2
10098 builtin and then its argument prototype would still apply. */ 10099 builtin and then its argument prototype would still apply. */
10099 char XmImMbLookupString(); 10100 char XmImMbLookupString();
10100 10101
10101 int main() { 10102 int main() {
10102 XmImMbLookupString() 10103 XmImMbLookupString()
10103 ; return 0; } 10104 ; return 0; }
10104 EOF 10105 EOF
10105 if { (eval echo configure:10106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10106 if { (eval echo configure:10107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10106 rm -rf conftest* 10107 rm -rf conftest*
10107 eval "ac_cv_lib_$ac_lib_var=yes" 10108 eval "ac_cv_lib_$ac_lib_var=yes"
10108 else 10109 else
10109 echo "configure: failed program was:" >&5 10110 echo "configure: failed program was:" >&5
10110 cat conftest.$ac_ext >&5 10111 cat conftest.$ac_ext >&5
10165 fi 10166 fi
10166 fi 10167 fi
10167 10168
10168 if test "$with_xfs" = "yes" ; then 10169 if test "$with_xfs" = "yes" ; then
10169 echo "checking for XFontSet" 1>&6 10170 echo "checking for XFontSet" 1>&6
10170 echo "configure:10171: checking for XFontSet" >&5 10171 echo "configure:10172: checking for XFontSet" >&5
10171 10172
10172 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 10173 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10173 echo "configure:10174: checking for XmbDrawString in -lX11" >&5 10174 echo "configure:10175: checking for XmbDrawString in -lX11" >&5
10174 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 10175 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10175 10176
10176 xe_check_libs=" -lX11 " 10177 xe_check_libs=" -lX11 "
10177 cat > conftest.$ac_ext <<EOF 10178 cat > conftest.$ac_ext <<EOF
10178 #line 10179 "configure" 10179 #line 10180 "configure"
10179 #include "confdefs.h" 10180 #include "confdefs.h"
10180 /* Override any gcc2 internal prototype to avoid an error. */ 10181 /* Override any gcc2 internal prototype to avoid an error. */
10181 /* We use char because int might match the return type of a gcc2 10182 /* We use char because int might match the return type of a gcc2
10182 builtin and then its argument prototype would still apply. */ 10183 builtin and then its argument prototype would still apply. */
10183 char XmbDrawString(); 10184 char XmbDrawString();
10184 10185
10185 int main() { 10186 int main() {
10186 XmbDrawString() 10187 XmbDrawString()
10187 ; return 0; } 10188 ; return 0; }
10188 EOF 10189 EOF
10189 if { (eval echo configure:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10190 if { (eval echo configure:10191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10190 rm -rf conftest* 10191 rm -rf conftest*
10191 eval "ac_cv_lib_$ac_lib_var=yes" 10192 eval "ac_cv_lib_$ac_lib_var=yes"
10192 else 10193 else
10193 echo "configure: failed program was:" >&5 10194 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5 10195 cat conftest.$ac_ext >&5
10224 fi 10225 fi
10225 fi 10226 fi
10226 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 10227 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10227 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 10228 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10228 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 10229 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10229 echo "configure:10230: checking for wnn/jllib.h" >&5 10230 echo "configure:10231: checking for wnn/jllib.h" >&5
10230 10231
10231 cat > conftest.$ac_ext <<EOF 10232 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure" 10233 #line 10234 "configure"
10233 #include "confdefs.h" 10234 #include "confdefs.h"
10234 #include <wnn/jllib.h> 10235 #include <wnn/jllib.h>
10235 EOF 10236 EOF
10236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10237 { (eval echo configure:10238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10238 { (eval echo configure:10239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10239 if test -z "$ac_err"; then 10240 if test -z "$ac_err"; then
10240 rm -rf conftest* 10241 rm -rf conftest*
10241 eval "ac_cv_header_$ac_safe=yes" 10242 eval "ac_cv_header_$ac_safe=yes"
10242 else 10243 else
10255 with_wnn=no 10256 with_wnn=no
10256 fi 10257 fi
10257 } 10258 }
10258 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` 10259 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10259 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 10260 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10260 echo "configure:10261: checking for wnn/commonhd.h" >&5 10261 echo "configure:10262: checking for wnn/commonhd.h" >&5
10261 10262
10262 cat > conftest.$ac_ext <<EOF 10263 cat > conftest.$ac_ext <<EOF
10263 #line 10264 "configure" 10264 #line 10265 "configure"
10264 #include "confdefs.h" 10265 #include "confdefs.h"
10265 #include <wnn/commonhd.h> 10266 #include <wnn/commonhd.h>
10266 EOF 10267 EOF
10267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10268 { (eval echo configure:10269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10269 { (eval echo configure:10270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10270 if test -z "$ac_err"; then 10271 if test -z "$ac_err"; then
10271 rm -rf conftest* 10272 rm -rf conftest*
10272 eval "ac_cv_header_$ac_safe=yes" 10273 eval "ac_cv_header_$ac_safe=yes"
10273 else 10274 else
10288 } 10289 }
10289 if test "$with_wnn" != "no"; then 10290 if test "$with_wnn" != "no"; then
10290 for ac_func in crypt 10291 for ac_func in crypt
10291 do 10292 do
10292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10293 echo "configure:10294: checking for $ac_func" >&5 10294 echo "configure:10295: checking for $ac_func" >&5
10294 10295
10295 cat > conftest.$ac_ext <<EOF 10296 cat > conftest.$ac_ext <<EOF
10296 #line 10297 "configure" 10297 #line 10298 "configure"
10297 #include "confdefs.h" 10298 #include "confdefs.h"
10298 /* System header to define __stub macros and hopefully few prototypes, 10299 /* System header to define __stub macros and hopefully few prototypes,
10299 which can conflict with char $ac_func(); below. */ 10300 which can conflict with char $ac_func(); below. */
10300 #include <assert.h> 10301 #include <assert.h>
10301 /* Override any gcc2 internal prototype to avoid an error. */ 10302 /* Override any gcc2 internal prototype to avoid an error. */
10314 $ac_func(); 10315 $ac_func();
10315 #endif 10316 #endif
10316 10317
10317 ; return 0; } 10318 ; return 0; }
10318 EOF 10319 EOF
10319 if { (eval echo configure:10320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10320 rm -rf conftest* 10321 rm -rf conftest*
10321 eval "ac_cv_func_$ac_func=yes" 10322 eval "ac_cv_func_$ac_func=yes"
10322 else 10323 else
10323 echo "configure: failed program was:" >&5 10324 echo "configure: failed program was:" >&5
10324 cat conftest.$ac_ext >&5 10325 cat conftest.$ac_ext >&5
10343 fi 10344 fi
10344 done 10345 done
10345 10346
10346 test "$ac_cv_func_crypt" != "yes" && { 10347 test "$ac_cv_func_crypt" != "yes" && {
10347 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 10348 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10348 echo "configure:10349: checking for crypt in -lcrypt" >&5 10349 echo "configure:10350: checking for crypt in -lcrypt" >&5
10349 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 10350 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10350 10351
10351 xe_check_libs=" -lcrypt " 10352 xe_check_libs=" -lcrypt "
10352 cat > conftest.$ac_ext <<EOF 10353 cat > conftest.$ac_ext <<EOF
10353 #line 10354 "configure" 10354 #line 10355 "configure"
10354 #include "confdefs.h" 10355 #include "confdefs.h"
10355 /* Override any gcc2 internal prototype to avoid an error. */ 10356 /* Override any gcc2 internal prototype to avoid an error. */
10356 /* We use char because int might match the return type of a gcc2 10357 /* We use char because int might match the return type of a gcc2
10357 builtin and then its argument prototype would still apply. */ 10358 builtin and then its argument prototype would still apply. */
10358 char crypt(); 10359 char crypt();
10359 10360
10360 int main() { 10361 int main() {
10361 crypt() 10362 crypt()
10362 ; return 0; } 10363 ; return 0; }
10363 EOF 10364 EOF
10364 if { (eval echo configure:10365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10365 if { (eval echo configure:10366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10365 rm -rf conftest* 10366 rm -rf conftest*
10366 eval "ac_cv_lib_$ac_lib_var=yes" 10367 eval "ac_cv_lib_$ac_lib_var=yes"
10367 else 10368 else
10368 echo "configure: failed program was:" >&5 10369 echo "configure: failed program was:" >&5
10369 cat conftest.$ac_ext >&5 10370 cat conftest.$ac_ext >&5
10394 } 10395 }
10395 fi 10396 fi
10396 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 10397 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10397 10398
10398 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 10399 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10399 echo "configure:10400: checking for jl_dic_list_e in -lwnn" >&5 10400 echo "configure:10401: checking for jl_dic_list_e in -lwnn" >&5
10400 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10401 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10401 10402
10402 xe_check_libs=" -lwnn " 10403 xe_check_libs=" -lwnn "
10403 cat > conftest.$ac_ext <<EOF 10404 cat > conftest.$ac_ext <<EOF
10404 #line 10405 "configure" 10405 #line 10406 "configure"
10405 #include "confdefs.h" 10406 #include "confdefs.h"
10406 /* Override any gcc2 internal prototype to avoid an error. */ 10407 /* Override any gcc2 internal prototype to avoid an error. */
10407 /* We use char because int might match the return type of a gcc2 10408 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */ 10409 builtin and then its argument prototype would still apply. */
10409 char jl_dic_list_e(); 10410 char jl_dic_list_e();
10410 10411
10411 int main() { 10412 int main() {
10412 jl_dic_list_e() 10413 jl_dic_list_e()
10413 ; return 0; } 10414 ; return 0; }
10414 EOF 10415 EOF
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10416 if { (eval echo configure:10417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10416 rm -rf conftest* 10417 rm -rf conftest*
10417 eval "ac_cv_lib_$ac_lib_var=yes" 10418 eval "ac_cv_lib_$ac_lib_var=yes"
10418 else 10419 else
10419 echo "configure: failed program was:" >&5 10420 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5 10421 cat conftest.$ac_ext >&5
10428 echo "$ac_t""yes" 1>&6 10429 echo "$ac_t""yes" 1>&6
10429 libwnn=wnn 10430 libwnn=wnn
10430 else 10431 else
10431 echo "$ac_t""no" 1>&6 10432 echo "$ac_t""no" 1>&6
10432 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 10433 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10433 echo "configure:10434: checking for jl_dic_list_e in -lwnn4" >&5 10434 echo "configure:10435: checking for jl_dic_list_e in -lwnn4" >&5
10434 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10435 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10435 10436
10436 xe_check_libs=" -lwnn4 " 10437 xe_check_libs=" -lwnn4 "
10437 cat > conftest.$ac_ext <<EOF 10438 cat > conftest.$ac_ext <<EOF
10438 #line 10439 "configure" 10439 #line 10440 "configure"
10439 #include "confdefs.h" 10440 #include "confdefs.h"
10440 /* Override any gcc2 internal prototype to avoid an error. */ 10441 /* Override any gcc2 internal prototype to avoid an error. */
10441 /* We use char because int might match the return type of a gcc2 10442 /* We use char because int might match the return type of a gcc2
10442 builtin and then its argument prototype would still apply. */ 10443 builtin and then its argument prototype would still apply. */
10443 char jl_dic_list_e(); 10444 char jl_dic_list_e();
10444 10445
10445 int main() { 10446 int main() {
10446 jl_dic_list_e() 10447 jl_dic_list_e()
10447 ; return 0; } 10448 ; return 0; }
10448 EOF 10449 EOF
10449 if { (eval echo configure:10450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10450 if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10450 rm -rf conftest* 10451 rm -rf conftest*
10451 eval "ac_cv_lib_$ac_lib_var=yes" 10452 eval "ac_cv_lib_$ac_lib_var=yes"
10452 else 10453 else
10453 echo "configure: failed program was:" >&5 10454 echo "configure: failed program was:" >&5
10454 cat conftest.$ac_ext >&5 10455 cat conftest.$ac_ext >&5
10462 echo "$ac_t""yes" 1>&6 10463 echo "$ac_t""yes" 1>&6
10463 libwnn=wnn4 10464 libwnn=wnn4
10464 else 10465 else
10465 echo "$ac_t""no" 1>&6 10466 echo "$ac_t""no" 1>&6
10466 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 10467 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10467 echo "configure:10468: checking for jl_dic_list_e in -lwnn6" >&5 10468 echo "configure:10469: checking for jl_dic_list_e in -lwnn6" >&5
10468 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10469 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10469 10470
10470 xe_check_libs=" -lwnn6 " 10471 xe_check_libs=" -lwnn6 "
10471 cat > conftest.$ac_ext <<EOF 10472 cat > conftest.$ac_ext <<EOF
10472 #line 10473 "configure" 10473 #line 10474 "configure"
10473 #include "confdefs.h" 10474 #include "confdefs.h"
10474 /* Override any gcc2 internal prototype to avoid an error. */ 10475 /* Override any gcc2 internal prototype to avoid an error. */
10475 /* We use char because int might match the return type of a gcc2 10476 /* We use char because int might match the return type of a gcc2
10476 builtin and then its argument prototype would still apply. */ 10477 builtin and then its argument prototype would still apply. */
10477 char jl_dic_list_e(); 10478 char jl_dic_list_e();
10478 10479
10479 int main() { 10480 int main() {
10480 jl_dic_list_e() 10481 jl_dic_list_e()
10481 ; return 0; } 10482 ; return 0; }
10482 EOF 10483 EOF
10483 if { (eval echo configure:10484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10484 if { (eval echo configure:10485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10484 rm -rf conftest* 10485 rm -rf conftest*
10485 eval "ac_cv_lib_$ac_lib_var=yes" 10486 eval "ac_cv_lib_$ac_lib_var=yes"
10486 else 10487 else
10487 echo "configure: failed program was:" >&5 10488 echo "configure: failed program was:" >&5
10488 cat conftest.$ac_ext >&5 10489 cat conftest.$ac_ext >&5
10496 echo "$ac_t""yes" 1>&6 10497 echo "$ac_t""yes" 1>&6
10497 libwnn=wnn6 10498 libwnn=wnn6
10498 else 10499 else
10499 echo "$ac_t""no" 1>&6 10500 echo "$ac_t""no" 1>&6
10500 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 10501 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10501 echo "configure:10502: checking for dic_list_e in -lwnn6_fromsrc" >&5 10502 echo "configure:10503: checking for dic_list_e in -lwnn6_fromsrc" >&5
10502 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 10503 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10503 10504
10504 xe_check_libs=" -lwnn6_fromsrc " 10505 xe_check_libs=" -lwnn6_fromsrc "
10505 cat > conftest.$ac_ext <<EOF 10506 cat > conftest.$ac_ext <<EOF
10506 #line 10507 "configure" 10507 #line 10508 "configure"
10507 #include "confdefs.h" 10508 #include "confdefs.h"
10508 /* Override any gcc2 internal prototype to avoid an error. */ 10509 /* Override any gcc2 internal prototype to avoid an error. */
10509 /* We use char because int might match the return type of a gcc2 10510 /* We use char because int might match the return type of a gcc2
10510 builtin and then its argument prototype would still apply. */ 10511 builtin and then its argument prototype would still apply. */
10511 char dic_list_e(); 10512 char dic_list_e();
10512 10513
10513 int main() { 10514 int main() {
10514 dic_list_e() 10515 dic_list_e()
10515 ; return 0; } 10516 ; return 0; }
10516 EOF 10517 EOF
10517 if { (eval echo configure:10518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10518 if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10518 rm -rf conftest* 10519 rm -rf conftest*
10519 eval "ac_cv_lib_$ac_lib_var=yes" 10520 eval "ac_cv_lib_$ac_lib_var=yes"
10520 else 10521 else
10521 echo "configure: failed program was:" >&5 10522 echo "configure: failed program was:" >&5
10522 cat conftest.$ac_ext >&5 10523 cat conftest.$ac_ext >&5
10560 echo " xemacs will be linked with \"mule-wnnfns.o\"" 10561 echo " xemacs will be linked with \"mule-wnnfns.o\""
10561 fi 10562 fi
10562 if test "$with_wnn6" != "no"; then 10563 if test "$with_wnn6" != "no"; then
10563 10564
10564 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 10565 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10565 echo "configure:10566: checking for jl_fi_dic_list in -l$libwnn" >&5 10566 echo "configure:10567: checking for jl_fi_dic_list in -l$libwnn" >&5
10566 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 10567 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10567 10568
10568 xe_check_libs=" -l$libwnn " 10569 xe_check_libs=" -l$libwnn "
10569 cat > conftest.$ac_ext <<EOF 10570 cat > conftest.$ac_ext <<EOF
10570 #line 10571 "configure" 10571 #line 10572 "configure"
10571 #include "confdefs.h" 10572 #include "confdefs.h"
10572 /* Override any gcc2 internal prototype to avoid an error. */ 10573 /* Override any gcc2 internal prototype to avoid an error. */
10573 /* We use char because int might match the return type of a gcc2 10574 /* We use char because int might match the return type of a gcc2
10574 builtin and then its argument prototype would still apply. */ 10575 builtin and then its argument prototype would still apply. */
10575 char jl_fi_dic_list(); 10576 char jl_fi_dic_list();
10576 10577
10577 int main() { 10578 int main() {
10578 jl_fi_dic_list() 10579 jl_fi_dic_list()
10579 ; return 0; } 10580 ; return 0; }
10580 EOF 10581 EOF
10581 if { (eval echo configure:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10582 if { (eval echo configure:10583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10582 rm -rf conftest* 10583 rm -rf conftest*
10583 eval "ac_cv_lib_$ac_lib_var=yes" 10584 eval "ac_cv_lib_$ac_lib_var=yes"
10584 else 10585 else
10585 echo "configure: failed program was:" >&5 10586 echo "configure: failed program was:" >&5
10586 cat conftest.$ac_ext >&5 10587 cat conftest.$ac_ext >&5
10611 10612
10612 canna_includes_found=no 10613 canna_includes_found=no
10613 if test "$with_canna" != "no"; then 10614 if test "$with_canna" != "no"; then
10614 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 10615 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10615 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 10616 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10616 echo "configure:10617: checking for canna/jrkanji.h" >&5 10617 echo "configure:10618: checking for canna/jrkanji.h" >&5
10617 10618
10618 cat > conftest.$ac_ext <<EOF 10619 cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure" 10620 #line 10621 "configure"
10620 #include "confdefs.h" 10621 #include "confdefs.h"
10621 #include <canna/jrkanji.h> 10622 #include <canna/jrkanji.h>
10622 EOF 10623 EOF
10623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10624 { (eval echo configure:10625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10625 { (eval echo configure:10626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10626 if test -z "$ac_err"; then 10627 if test -z "$ac_err"; then
10627 rm -rf conftest* 10628 rm -rf conftest*
10628 eval "ac_cv_header_$ac_safe=yes" 10629 eval "ac_cv_header_$ac_safe=yes"
10629 else 10630 else
10646 -d "/usr/local/canna/include"; then 10647 -d "/usr/local/canna/include"; then
10647 save_c_switch_site="$c_switch_site" 10648 save_c_switch_site="$c_switch_site"
10648 c_switch_site="$c_switch_site -I/usr/local/canna/include" 10649 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10649 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 10650 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10650 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 10651 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10651 echo "configure:10652: checking for canna/jrkanji.h" >&5 10652 echo "configure:10653: checking for canna/jrkanji.h" >&5
10652 10653
10653 cat > conftest.$ac_ext <<EOF 10654 cat > conftest.$ac_ext <<EOF
10654 #line 10655 "configure" 10655 #line 10656 "configure"
10655 #include "confdefs.h" 10656 #include "confdefs.h"
10656 #include <canna/jrkanji.h> 10657 #include <canna/jrkanji.h>
10657 EOF 10658 EOF
10658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10659 { (eval echo configure:10660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10660 { (eval echo configure:10661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10661 if test -z "$ac_err"; then 10662 if test -z "$ac_err"; then
10662 rm -rf conftest* 10663 rm -rf conftest*
10663 eval "ac_cv_header_$ac_safe=yes" 10664 eval "ac_cv_header_$ac_safe=yes"
10664 else 10665 else
10682 fi 10683 fi
10683 fi 10684 fi
10684 10685
10685 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 10686 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10686 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 10687 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10687 echo "configure:10688: checking for canna/RK.h" >&5 10688 echo "configure:10689: checking for canna/RK.h" >&5
10688 10689
10689 cat > conftest.$ac_ext <<EOF 10690 cat > conftest.$ac_ext <<EOF
10690 #line 10691 "configure" 10691 #line 10692 "configure"
10691 #include "confdefs.h" 10692 #include "confdefs.h"
10692 #include <canna/RK.h> 10693 #include <canna/RK.h>
10693 EOF 10694 EOF
10694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10695 { (eval echo configure:10696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10696 { (eval echo configure:10697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10697 if test -z "$ac_err"; then 10698 if test -z "$ac_err"; then
10698 rm -rf conftest* 10699 rm -rf conftest*
10699 eval "ac_cv_header_$ac_safe=yes" 10700 eval "ac_cv_header_$ac_safe=yes"
10700 else 10701 else
10713 with_canna=no 10714 with_canna=no
10714 fi 10715 fi
10715 } 10716 }
10716 test -z "$with_canna" && { 10717 test -z "$with_canna" && {
10717 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 10718 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10718 echo "configure:10719: checking for RkBgnBun in -lRKC" >&5 10719 echo "configure:10720: checking for RkBgnBun in -lRKC" >&5
10719 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 10720 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10720 10721
10721 xe_check_libs=" -lRKC " 10722 xe_check_libs=" -lRKC "
10722 cat > conftest.$ac_ext <<EOF 10723 cat > conftest.$ac_ext <<EOF
10723 #line 10724 "configure" 10724 #line 10725 "configure"
10724 #include "confdefs.h" 10725 #include "confdefs.h"
10725 /* Override any gcc2 internal prototype to avoid an error. */ 10726 /* Override any gcc2 internal prototype to avoid an error. */
10726 /* We use char because int might match the return type of a gcc2 10727 /* We use char because int might match the return type of a gcc2
10727 builtin and then its argument prototype would still apply. */ 10728 builtin and then its argument prototype would still apply. */
10728 char RkBgnBun(); 10729 char RkBgnBun();
10729 10730
10730 int main() { 10731 int main() {
10731 RkBgnBun() 10732 RkBgnBun()
10732 ; return 0; } 10733 ; return 0; }
10733 EOF 10734 EOF
10734 if { (eval echo configure:10735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10735 rm -rf conftest* 10736 rm -rf conftest*
10736 eval "ac_cv_lib_$ac_lib_var=yes" 10737 eval "ac_cv_lib_$ac_lib_var=yes"
10737 else 10738 else
10738 echo "configure: failed program was:" >&5 10739 echo "configure: failed program was:" >&5
10739 cat conftest.$ac_ext >&5 10740 cat conftest.$ac_ext >&5
10752 fi 10753 fi
10753 10754
10754 } 10755 }
10755 test -z "$with_canna" && { 10756 test -z "$with_canna" && {
10756 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 10757 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10757 echo "configure:10758: checking for jrKanjiControl in -lcanna" >&5 10758 echo "configure:10759: checking for jrKanjiControl in -lcanna" >&5
10758 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 10759 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10759 10760
10760 xe_check_libs=" -lcanna " 10761 xe_check_libs=" -lcanna "
10761 cat > conftest.$ac_ext <<EOF 10762 cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure" 10763 #line 10764 "configure"
10763 #include "confdefs.h" 10764 #include "confdefs.h"
10764 /* Override any gcc2 internal prototype to avoid an error. */ 10765 /* Override any gcc2 internal prototype to avoid an error. */
10765 /* We use char because int might match the return type of a gcc2 10766 /* We use char because int might match the return type of a gcc2
10766 builtin and then its argument prototype would still apply. */ 10767 builtin and then its argument prototype would still apply. */
10767 char jrKanjiControl(); 10768 char jrKanjiControl();
10768 10769
10769 int main() { 10770 int main() {
10770 jrKanjiControl() 10771 jrKanjiControl()
10771 ; return 0; } 10772 ; return 0; }
10772 EOF 10773 EOF
10773 if { (eval echo configure:10774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10774 if { (eval echo configure:10775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10774 rm -rf conftest* 10775 rm -rf conftest*
10775 eval "ac_cv_lib_$ac_lib_var=yes" 10776 eval "ac_cv_lib_$ac_lib_var=yes"
10776 else 10777 else
10777 echo "configure: failed program was:" >&5 10778 echo "configure: failed program was:" >&5
10778 cat conftest.$ac_ext >&5 10779 cat conftest.$ac_ext >&5
10817 10818
10818 if test "$need_motif" = "yes" ; then 10819 if test "$need_motif" = "yes" ; then
10819 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 10820 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10820 10821
10821 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 10822 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10822 echo "configure:10823: checking for layout_object_getvalue in -li18n" >&5 10823 echo "configure:10824: checking for layout_object_getvalue in -li18n" >&5
10823 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 10824 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10824 10825
10825 xe_check_libs=" -li18n " 10826 xe_check_libs=" -li18n "
10826 cat > conftest.$ac_ext <<EOF 10827 cat > conftest.$ac_ext <<EOF
10827 #line 10828 "configure" 10828 #line 10829 "configure"
10828 #include "confdefs.h" 10829 #include "confdefs.h"
10829 /* Override any gcc2 internal prototype to avoid an error. */ 10830 /* Override any gcc2 internal prototype to avoid an error. */
10830 /* We use char because int might match the return type of a gcc2 10831 /* We use char because int might match the return type of a gcc2
10831 builtin and then its argument prototype would still apply. */ 10832 builtin and then its argument prototype would still apply. */
10832 char layout_object_getvalue(); 10833 char layout_object_getvalue();
10833 10834
10834 int main() { 10835 int main() {
10835 layout_object_getvalue() 10836 layout_object_getvalue()
10836 ; return 0; } 10837 ; return 0; }
10837 EOF 10838 EOF
10838 if { (eval echo configure:10839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10839 if { (eval echo configure:10840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10839 rm -rf conftest* 10840 rm -rf conftest*
10840 eval "ac_cv_lib_$ac_lib_var=yes" 10841 eval "ac_cv_lib_$ac_lib_var=yes"
10841 else 10842 else
10842 echo "configure: failed program was:" >&5 10843 echo "configure: failed program was:" >&5
10843 cat conftest.$ac_ext >&5 10844 cat conftest.$ac_ext >&5
10919 fi 10920 fi
10920 10921
10921 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 waitpid vsnprintf fsync ftruncate umask 10922 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 waitpid vsnprintf fsync ftruncate umask
10922 do 10923 do
10923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10924 echo "configure:10925: checking for $ac_func" >&5 10925 echo "configure:10926: checking for $ac_func" >&5
10925 10926
10926 cat > conftest.$ac_ext <<EOF 10927 cat > conftest.$ac_ext <<EOF
10927 #line 10928 "configure" 10928 #line 10929 "configure"
10928 #include "confdefs.h" 10929 #include "confdefs.h"
10929 /* System header to define __stub macros and hopefully few prototypes, 10930 /* System header to define __stub macros and hopefully few prototypes,
10930 which can conflict with char $ac_func(); below. */ 10931 which can conflict with char $ac_func(); below. */
10931 #include <assert.h> 10932 #include <assert.h>
10932 /* Override any gcc2 internal prototype to avoid an error. */ 10933 /* Override any gcc2 internal prototype to avoid an error. */
10945 $ac_func(); 10946 $ac_func();
10946 #endif 10947 #endif
10947 10948
10948 ; return 0; } 10949 ; return 0; }
10949 EOF 10950 EOF
10950 if { (eval echo configure:10951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10951 if { (eval echo configure:10952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10951 rm -rf conftest* 10952 rm -rf conftest*
10952 eval "ac_cv_func_$ac_func=yes" 10953 eval "ac_cv_func_$ac_func=yes"
10953 else 10954 else
10954 echo "configure: failed program was:" >&5 10955 echo "configure: failed program was:" >&5
10955 cat conftest.$ac_ext >&5 10956 cat conftest.$ac_ext >&5
10977 10978
10978 10979
10979 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 10980 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10980 do 10981 do
10981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10982 echo "configure:10983: checking for $ac_func" >&5 10983 echo "configure:10984: checking for $ac_func" >&5
10983 10984
10984 cat > conftest.$ac_ext <<EOF 10985 cat > conftest.$ac_ext <<EOF
10985 #line 10986 "configure" 10986 #line 10987 "configure"
10986 #include "confdefs.h" 10987 #include "confdefs.h"
10987 /* System header to define __stub macros and hopefully few prototypes, 10988 /* System header to define __stub macros and hopefully few prototypes,
10988 which can conflict with char $ac_func(); below. */ 10989 which can conflict with char $ac_func(); below. */
10989 #include <assert.h> 10990 #include <assert.h>
10990 /* Override any gcc2 internal prototype to avoid an error. */ 10991 /* Override any gcc2 internal prototype to avoid an error. */
11003 $ac_func(); 11004 $ac_func();
11004 #endif 11005 #endif
11005 11006
11006 ; return 0; } 11007 ; return 0; }
11007 EOF 11008 EOF
11008 if { (eval echo configure:11009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11009 if { (eval echo configure:11010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11009 rm -rf conftest* 11010 rm -rf conftest*
11010 eval "ac_cv_func_$ac_func=yes" 11011 eval "ac_cv_func_$ac_func=yes"
11011 else 11012 else
11012 echo "configure: failed program was:" >&5 11013 echo "configure: failed program was:" >&5
11013 cat conftest.$ac_ext >&5 11014 cat conftest.$ac_ext >&5
11032 fi 11033 fi
11033 done 11034 done
11034 11035
11035 11036
11036 echo $ac_n "checking for openpty""... $ac_c" 1>&6 11037 echo $ac_n "checking for openpty""... $ac_c" 1>&6
11037 echo "configure:11038: checking for openpty" >&5 11038 echo "configure:11039: checking for openpty" >&5
11038 11039
11039 cat > conftest.$ac_ext <<EOF 11040 cat > conftest.$ac_ext <<EOF
11040 #line 11041 "configure" 11041 #line 11042 "configure"
11041 #include "confdefs.h" 11042 #include "confdefs.h"
11042 /* System header to define __stub macros and hopefully few prototypes, 11043 /* System header to define __stub macros and hopefully few prototypes,
11043 which can conflict with char openpty(); below. */ 11044 which can conflict with char openpty(); below. */
11044 #include <assert.h> 11045 #include <assert.h>
11045 /* Override any gcc2 internal prototype to avoid an error. */ 11046 /* Override any gcc2 internal prototype to avoid an error. */
11058 openpty(); 11059 openpty();
11059 #endif 11060 #endif
11060 11061
11061 ; return 0; } 11062 ; return 0; }
11062 EOF 11063 EOF
11063 if { (eval echo configure:11064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11064 if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11064 rm -rf conftest* 11065 rm -rf conftest*
11065 eval "ac_cv_func_openpty=yes" 11066 eval "ac_cv_func_openpty=yes"
11066 else 11067 else
11067 echo "configure: failed program was:" >&5 11068 echo "configure: failed program was:" >&5
11068 cat conftest.$ac_ext >&5 11069 cat conftest.$ac_ext >&5
11077 else 11078 else
11078 echo "$ac_t""no" 1>&6 11079 echo "$ac_t""no" 1>&6
11079 11080
11080 11081
11081 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 11082 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11082 echo "configure:11083: checking for openpty in -lutil" >&5 11083 echo "configure:11084: checking for openpty in -lutil" >&5
11083 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 11084 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11084 11085
11085 xe_check_libs=" -lutil " 11086 xe_check_libs=" -lutil "
11086 cat > conftest.$ac_ext <<EOF 11087 cat > conftest.$ac_ext <<EOF
11087 #line 11088 "configure" 11088 #line 11089 "configure"
11088 #include "confdefs.h" 11089 #include "confdefs.h"
11089 /* Override any gcc2 internal prototype to avoid an error. */ 11090 /* Override any gcc2 internal prototype to avoid an error. */
11090 /* We use char because int might match the return type of a gcc2 11091 /* We use char because int might match the return type of a gcc2
11091 builtin and then its argument prototype would still apply. */ 11092 builtin and then its argument prototype would still apply. */
11092 char openpty(); 11093 char openpty();
11093 11094
11094 int main() { 11095 int main() {
11095 openpty() 11096 openpty()
11096 ; return 0; } 11097 ; return 0; }
11097 EOF 11098 EOF
11098 if { (eval echo configure:11099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11099 if { (eval echo configure:11100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11099 rm -rf conftest* 11100 rm -rf conftest*
11100 eval "ac_cv_lib_$ac_lib_var=yes" 11101 eval "ac_cv_lib_$ac_lib_var=yes"
11101 else 11102 else
11102 echo "configure: failed program was:" >&5 11103 echo "configure: failed program was:" >&5
11103 cat conftest.$ac_ext >&5 11104 cat conftest.$ac_ext >&5
11128 11129
11129 for ac_hdr in libutil.h util.h 11130 for ac_hdr in libutil.h util.h
11130 do 11131 do
11131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11133 echo "configure:11134: checking for $ac_hdr" >&5 11134 echo "configure:11135: checking for $ac_hdr" >&5
11134 11135
11135 cat > conftest.$ac_ext <<EOF 11136 cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure" 11137 #line 11138 "configure"
11137 #include "confdefs.h" 11138 #include "confdefs.h"
11138 #include <$ac_hdr> 11139 #include <$ac_hdr>
11139 EOF 11140 EOF
11140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11141 { (eval echo configure:11142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11142 { (eval echo configure:11143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11143 if test -z "$ac_err"; then 11144 if test -z "$ac_err"; then
11144 rm -rf conftest* 11145 rm -rf conftest*
11145 eval "ac_cv_header_$ac_safe=yes" 11146 eval "ac_cv_header_$ac_safe=yes"
11146 else 11147 else
11173 case "$opsys" in 11174 case "$opsys" in
11174 hpux*) for ac_hdr in sys/ptyio.h 11175 hpux*) for ac_hdr in sys/ptyio.h
11175 do 11176 do
11176 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11178 echo "configure:11179: checking for $ac_hdr" >&5 11179 echo "configure:11180: checking for $ac_hdr" >&5
11179 11180
11180 cat > conftest.$ac_ext <<EOF 11181 cat > conftest.$ac_ext <<EOF
11181 #line 11182 "configure" 11182 #line 11183 "configure"
11182 #include "confdefs.h" 11183 #include "confdefs.h"
11183 #include <$ac_hdr> 11184 #include <$ac_hdr>
11184 EOF 11185 EOF
11185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11186 { (eval echo configure:11187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11187 { (eval echo configure:11188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11188 if test -z "$ac_err"; then 11189 if test -z "$ac_err"; then
11189 rm -rf conftest* 11190 rm -rf conftest*
11190 eval "ac_cv_header_$ac_safe=yes" 11191 eval "ac_cv_header_$ac_safe=yes"
11191 else 11192 else
11214 ;; 11215 ;;
11215 *) for ac_hdr in pty.h 11216 *) for ac_hdr in pty.h
11216 do 11217 do
11217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11219 echo "configure:11220: checking for $ac_hdr" >&5 11220 echo "configure:11221: checking for $ac_hdr" >&5
11220 11221
11221 cat > conftest.$ac_ext <<EOF 11222 cat > conftest.$ac_ext <<EOF
11222 #line 11223 "configure" 11223 #line 11224 "configure"
11223 #include "confdefs.h" 11224 #include "confdefs.h"
11224 #include <$ac_hdr> 11225 #include <$ac_hdr>
11225 EOF 11226 EOF
11226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11227 { (eval echo configure:11228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11228 { (eval echo configure:11229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11229 if test -z "$ac_err"; then 11230 if test -z "$ac_err"; then
11230 rm -rf conftest* 11231 rm -rf conftest*
11231 eval "ac_cv_header_$ac_safe=yes" 11232 eval "ac_cv_header_$ac_safe=yes"
11232 else 11233 else
11255 11256
11256 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h 11257 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
11257 do 11258 do
11258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11260 echo "configure:11261: checking for $ac_hdr" >&5 11261 echo "configure:11262: checking for $ac_hdr" >&5
11261 11262
11262 cat > conftest.$ac_ext <<EOF 11263 cat > conftest.$ac_ext <<EOF
11263 #line 11264 "configure" 11264 #line 11265 "configure"
11264 #include "confdefs.h" 11265 #include "confdefs.h"
11265 #include <$ac_hdr> 11266 #include <$ac_hdr>
11266 EOF 11267 EOF
11267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11268 { (eval echo configure:11269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11269 { (eval echo configure:11270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11270 if test -z "$ac_err"; then 11271 if test -z "$ac_err"; then
11271 rm -rf conftest* 11272 rm -rf conftest*
11272 eval "ac_cv_header_$ac_safe=yes" 11273 eval "ac_cv_header_$ac_safe=yes"
11273 else 11274 else
11299 11300
11300 for ac_hdr in stropts.h 11301 for ac_hdr in stropts.h
11301 do 11302 do
11302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11304 echo "configure:11305: checking for $ac_hdr" >&5 11305 echo "configure:11306: checking for $ac_hdr" >&5
11305 11306
11306 cat > conftest.$ac_ext <<EOF 11307 cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure" 11308 #line 11309 "configure"
11308 #include "confdefs.h" 11309 #include "confdefs.h"
11309 #include <$ac_hdr> 11310 #include <$ac_hdr>
11310 EOF 11311 EOF
11311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11312 { (eval echo configure:11313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11313 { (eval echo configure:11314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11314 if test -z "$ac_err"; then 11315 if test -z "$ac_err"; then
11315 rm -rf conftest* 11316 rm -rf conftest*
11316 eval "ac_cv_header_$ac_safe=yes" 11317 eval "ac_cv_header_$ac_safe=yes"
11317 else 11318 else
11340 11341
11341 if test "$ac_cv_header_stropts_h" = "yes"; then 11342 if test "$ac_cv_header_stropts_h" = "yes"; then
11342 for ac_func in isastream 11343 for ac_func in isastream
11343 do 11344 do
11344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11345 echo "configure:11346: checking for $ac_func" >&5 11346 echo "configure:11347: checking for $ac_func" >&5
11346 11347
11347 cat > conftest.$ac_ext <<EOF 11348 cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure" 11349 #line 11350 "configure"
11349 #include "confdefs.h" 11350 #include "confdefs.h"
11350 /* System header to define __stub macros and hopefully few prototypes, 11351 /* System header to define __stub macros and hopefully few prototypes,
11351 which can conflict with char $ac_func(); below. */ 11352 which can conflict with char $ac_func(); below. */
11352 #include <assert.h> 11353 #include <assert.h>
11353 /* Override any gcc2 internal prototype to avoid an error. */ 11354 /* Override any gcc2 internal prototype to avoid an error. */
11366 $ac_func(); 11367 $ac_func();
11367 #endif 11368 #endif
11368 11369
11369 ; return 0; } 11370 ; return 0; }
11370 EOF 11371 EOF
11371 if { (eval echo configure:11372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11372 if { (eval echo configure:11373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11372 rm -rf conftest* 11373 rm -rf conftest*
11373 eval "ac_cv_func_$ac_func=yes" 11374 eval "ac_cv_func_$ac_func=yes"
11374 else 11375 else
11375 echo "configure: failed program was:" >&5 11376 echo "configure: failed program was:" >&5
11376 cat conftest.$ac_ext >&5 11377 cat conftest.$ac_ext >&5
11397 11398
11398 for ac_hdr in strtio.h 11399 for ac_hdr in strtio.h
11399 do 11400 do
11400 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11401 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11402 echo "configure:11403: checking for $ac_hdr" >&5 11403 echo "configure:11404: checking for $ac_hdr" >&5
11403 11404
11404 cat > conftest.$ac_ext <<EOF 11405 cat > conftest.$ac_ext <<EOF
11405 #line 11406 "configure" 11406 #line 11407 "configure"
11406 #include "confdefs.h" 11407 #include "confdefs.h"
11407 #include <$ac_hdr> 11408 #include <$ac_hdr>
11408 EOF 11409 EOF
11409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11410 { (eval echo configure:11411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11411 { (eval echo configure:11412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11412 if test -z "$ac_err"; then 11413 if test -z "$ac_err"; then
11413 rm -rf conftest* 11414 rm -rf conftest*
11414 eval "ac_cv_header_$ac_safe=yes" 11415 eval "ac_cv_header_$ac_safe=yes"
11415 else 11416 else
11442 fi 11443 fi
11443 11444
11444 for ac_func in getloadavg 11445 for ac_func in getloadavg
11445 do 11446 do
11446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11447 echo "configure:11448: checking for $ac_func" >&5 11448 echo "configure:11449: checking for $ac_func" >&5
11448 11449
11449 cat > conftest.$ac_ext <<EOF 11450 cat > conftest.$ac_ext <<EOF
11450 #line 11451 "configure" 11451 #line 11452 "configure"
11451 #include "confdefs.h" 11452 #include "confdefs.h"
11452 /* System header to define __stub macros and hopefully few prototypes, 11453 /* System header to define __stub macros and hopefully few prototypes,
11453 which can conflict with char $ac_func(); below. */ 11454 which can conflict with char $ac_func(); below. */
11454 #include <assert.h> 11455 #include <assert.h>
11455 /* Override any gcc2 internal prototype to avoid an error. */ 11456 /* Override any gcc2 internal prototype to avoid an error. */
11468 $ac_func(); 11469 $ac_func();
11469 #endif 11470 #endif
11470 11471
11471 ; return 0; } 11472 ; return 0; }
11472 EOF 11473 EOF
11473 if { (eval echo configure:11474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11474 if { (eval echo configure:11475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11474 rm -rf conftest* 11475 rm -rf conftest*
11475 eval "ac_cv_func_$ac_func=yes" 11476 eval "ac_cv_func_$ac_func=yes"
11476 else 11477 else
11477 echo "configure: failed program was:" >&5 11478 echo "configure: failed program was:" >&5
11478 cat conftest.$ac_ext >&5 11479 cat conftest.$ac_ext >&5
11501 if test "$ac_cv_func_getloadavg" = "yes"; then 11502 if test "$ac_cv_func_getloadavg" = "yes"; then
11502 for ac_hdr in sys/loadavg.h 11503 for ac_hdr in sys/loadavg.h
11503 do 11504 do
11504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11506 echo "configure:11507: checking for $ac_hdr" >&5 11507 echo "configure:11508: checking for $ac_hdr" >&5
11507 11508
11508 cat > conftest.$ac_ext <<EOF 11509 cat > conftest.$ac_ext <<EOF
11509 #line 11510 "configure" 11510 #line 11511 "configure"
11510 #include "confdefs.h" 11511 #include "confdefs.h"
11511 #include <$ac_hdr> 11512 #include <$ac_hdr>
11512 EOF 11513 EOF
11513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11514 { (eval echo configure:11515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11515 { (eval echo configure:11516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11516 if test -z "$ac_err"; then 11517 if test -z "$ac_err"; then
11517 rm -rf conftest* 11518 rm -rf conftest*
11518 eval "ac_cv_header_$ac_safe=yes" 11519 eval "ac_cv_header_$ac_safe=yes"
11519 else 11520 else
11545 echo " xemacs will be linked with \"getloadavg.o\"" 11546 echo " xemacs will be linked with \"getloadavg.o\""
11546 fi 11547 fi
11547 11548
11548 11549
11549 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 11550 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11550 echo "configure:11551: checking for kstat_open in -lkstat" >&5 11551 echo "configure:11552: checking for kstat_open in -lkstat" >&5
11551 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 11552 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11552 11553
11553 xe_check_libs=" -lkstat " 11554 xe_check_libs=" -lkstat "
11554 cat > conftest.$ac_ext <<EOF 11555 cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure" 11556 #line 11557 "configure"
11556 #include "confdefs.h" 11557 #include "confdefs.h"
11557 /* Override any gcc2 internal prototype to avoid an error. */ 11558 /* Override any gcc2 internal prototype to avoid an error. */
11558 /* We use char because int might match the return type of a gcc2 11559 /* We use char because int might match the return type of a gcc2
11559 builtin and then its argument prototype would still apply. */ 11560 builtin and then its argument prototype would still apply. */
11560 char kstat_open(); 11561 char kstat_open();
11561 11562
11562 int main() { 11563 int main() {
11563 kstat_open() 11564 kstat_open()
11564 ; return 0; } 11565 ; return 0; }
11565 EOF 11566 EOF
11566 if { (eval echo configure:11567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11567 if { (eval echo configure:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11567 rm -rf conftest* 11568 rm -rf conftest*
11568 eval "ac_cv_lib_$ac_lib_var=yes" 11569 eval "ac_cv_lib_$ac_lib_var=yes"
11569 else 11570 else
11570 echo "configure: failed program was:" >&5 11571 echo "configure: failed program was:" >&5
11571 cat conftest.$ac_ext >&5 11572 cat conftest.$ac_ext >&5
11596 11597
11597 for ac_hdr in kstat.h 11598 for ac_hdr in kstat.h
11598 do 11599 do
11599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11601 echo "configure:11602: checking for $ac_hdr" >&5 11602 echo "configure:11603: checking for $ac_hdr" >&5
11602 11603
11603 cat > conftest.$ac_ext <<EOF 11604 cat > conftest.$ac_ext <<EOF
11604 #line 11605 "configure" 11605 #line 11606 "configure"
11605 #include "confdefs.h" 11606 #include "confdefs.h"
11606 #include <$ac_hdr> 11607 #include <$ac_hdr>
11607 EOF 11608 EOF
11608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11609 { (eval echo configure:11610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11610 { (eval echo configure:11611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11611 if test -z "$ac_err"; then 11612 if test -z "$ac_err"; then
11612 rm -rf conftest* 11613 rm -rf conftest*
11613 eval "ac_cv_header_$ac_safe=yes" 11614 eval "ac_cv_header_$ac_safe=yes"
11614 else 11615 else
11636 done 11637 done
11637 11638
11638 11639
11639 11640
11640 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 11641 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11641 echo "configure:11642: checking for kvm_read in -lkvm" >&5 11642 echo "configure:11643: checking for kvm_read in -lkvm" >&5
11642 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 11643 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11643 11644
11644 xe_check_libs=" -lkvm " 11645 xe_check_libs=" -lkvm "
11645 cat > conftest.$ac_ext <<EOF 11646 cat > conftest.$ac_ext <<EOF
11646 #line 11647 "configure" 11647 #line 11648 "configure"
11647 #include "confdefs.h" 11648 #include "confdefs.h"
11648 /* Override any gcc2 internal prototype to avoid an error. */ 11649 /* Override any gcc2 internal prototype to avoid an error. */
11649 /* We use char because int might match the return type of a gcc2 11650 /* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */ 11651 builtin and then its argument prototype would still apply. */
11651 char kvm_read(); 11652 char kvm_read();
11652 11653
11653 int main() { 11654 int main() {
11654 kvm_read() 11655 kvm_read()
11655 ; return 0; } 11656 ; return 0; }
11656 EOF 11657 EOF
11657 if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11658 if { (eval echo configure:11659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11658 rm -rf conftest* 11659 rm -rf conftest*
11659 eval "ac_cv_lib_$ac_lib_var=yes" 11660 eval "ac_cv_lib_$ac_lib_var=yes"
11660 else 11661 else
11661 echo "configure: failed program was:" >&5 11662 echo "configure: failed program was:" >&5
11662 cat conftest.$ac_ext >&5 11663 cat conftest.$ac_ext >&5
11686 11687
11687 11688
11688 fi 11689 fi
11689 11690
11690 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 11691 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11691 echo "configure:11692: checking whether netdb declares h_errno" >&5 11692 echo "configure:11693: checking whether netdb declares h_errno" >&5
11692 cat > conftest.$ac_ext <<EOF 11693 cat > conftest.$ac_ext <<EOF
11693 #line 11694 "configure" 11694 #line 11695 "configure"
11694 #include "confdefs.h" 11695 #include "confdefs.h"
11695 #include <netdb.h> 11696 #include <netdb.h>
11696 int main() { 11697 int main() {
11697 return h_errno; 11698 return h_errno;
11698 ; return 0; } 11699 ; return 0; }
11699 EOF 11700 EOF
11700 if { (eval echo configure:11701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11701 if { (eval echo configure:11702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11701 rm -rf conftest* 11702 rm -rf conftest*
11702 echo "$ac_t""yes" 1>&6 11703 echo "$ac_t""yes" 1>&6
11703 { test "$extra_verbose" = "yes" && cat << \EOF 11704 { test "$extra_verbose" = "yes" && cat << \EOF
11704 Defining HAVE_H_ERRNO 11705 Defining HAVE_H_ERRNO
11705 EOF 11706 EOF
11715 echo "$ac_t""no" 1>&6 11716 echo "$ac_t""no" 1>&6
11716 fi 11717 fi
11717 rm -f conftest* 11718 rm -f conftest*
11718 11719
11719 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 11720 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11720 echo "configure:11721: checking for sigsetjmp" >&5 11721 echo "configure:11722: checking for sigsetjmp" >&5
11721 cat > conftest.$ac_ext <<EOF 11722 cat > conftest.$ac_ext <<EOF
11722 #line 11723 "configure" 11723 #line 11724 "configure"
11723 #include "confdefs.h" 11724 #include "confdefs.h"
11724 #include <setjmp.h> 11725 #include <setjmp.h>
11725 int main() { 11726 int main() {
11726 sigjmp_buf bar; sigsetjmp (bar, 0); 11727 sigjmp_buf bar; sigsetjmp (bar, 0);
11727 ; return 0; } 11728 ; return 0; }
11728 EOF 11729 EOF
11729 if { (eval echo configure:11730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11730 if { (eval echo configure:11731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11730 rm -rf conftest* 11731 rm -rf conftest*
11731 echo "$ac_t""yes" 1>&6 11732 echo "$ac_t""yes" 1>&6
11732 { test "$extra_verbose" = "yes" && cat << \EOF 11733 { test "$extra_verbose" = "yes" && cat << \EOF
11733 Defining HAVE_SIGSETJMP 11734 Defining HAVE_SIGSETJMP
11734 EOF 11735 EOF
11744 echo "$ac_t""no" 1>&6 11745 echo "$ac_t""no" 1>&6
11745 fi 11746 fi
11746 rm -f conftest* 11747 rm -f conftest*
11747 11748
11748 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 11749 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11749 echo "configure:11750: checking whether localtime caches TZ" >&5 11750 echo "configure:11751: checking whether localtime caches TZ" >&5
11750 11751
11751 if test "$ac_cv_func_tzset" = "yes"; then 11752 if test "$ac_cv_func_tzset" = "yes"; then
11752 cat > conftest.$ac_ext <<EOF 11753 cat > conftest.$ac_ext <<EOF
11753 #line 11754 "configure" 11754 #line 11755 "configure"
11754 #include "confdefs.h" 11755 #include "confdefs.h"
11755 #include <time.h> 11756 #include <time.h>
11756 #if STDC_HEADERS 11757 #if STDC_HEADERS
11757 # include <stdlib.h> 11758 # include <stdlib.h>
11758 #endif 11759 #endif
11783 if (localtime (&now)->tm_hour != hour_unset) 11784 if (localtime (&now)->tm_hour != hour_unset)
11784 exit (1); 11785 exit (1);
11785 exit (0); 11786 exit (0);
11786 } 11787 }
11787 EOF 11788 EOF
11788 if { (eval echo configure:11789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11789 if { (eval echo configure:11790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11789 then 11790 then
11790 emacs_cv_localtime_cache=no 11791 emacs_cv_localtime_cache=no
11791 else 11792 else
11792 conftest_rc="$?" 11793 conftest_rc="$?"
11793 echo "configure: failed program was:" >&5 11794 echo "configure: failed program was:" >&5
11813 11814
11814 fi 11815 fi
11815 11816
11816 if test "$HAVE_TIMEVAL" = "yes"; then 11817 if test "$HAVE_TIMEVAL" = "yes"; then
11817 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 11818 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11818 echo "configure:11819: checking whether gettimeofday accepts one or two arguments" >&5 11819 echo "configure:11820: checking whether gettimeofday accepts one or two arguments" >&5
11819 cat > conftest.$ac_ext <<EOF 11820 cat > conftest.$ac_ext <<EOF
11820 #line 11821 "configure" 11821 #line 11822 "configure"
11821 #include "confdefs.h" 11822 #include "confdefs.h"
11822 11823
11823 #ifdef TIME_WITH_SYS_TIME 11824 #ifdef TIME_WITH_SYS_TIME
11824 #include <sys/time.h> 11825 #include <sys/time.h>
11825 #include <time.h> 11826 #include <time.h>
11836 struct timeval time; 11837 struct timeval time;
11837 gettimeofday (&time, 0); 11838 gettimeofday (&time, 0);
11838 11839
11839 ; return 0; } 11840 ; return 0; }
11840 EOF 11841 EOF
11841 if { (eval echo configure:11842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11842 if { (eval echo configure:11843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11842 rm -rf conftest* 11843 rm -rf conftest*
11843 echo "$ac_t""two" 1>&6 11844 echo "$ac_t""two" 1>&6
11844 else 11845 else
11845 echo "configure: failed program was:" >&5 11846 echo "configure: failed program was:" >&5
11846 cat conftest.$ac_ext >&5 11847 cat conftest.$ac_ext >&5
11858 rm -f conftest* 11859 rm -f conftest*
11859 fi 11860 fi
11860 11861
11861 11862
11862 echo $ac_n "checking for inline""... $ac_c" 1>&6 11863 echo $ac_n "checking for inline""... $ac_c" 1>&6
11863 echo "configure:11864: checking for inline" >&5 11864 echo "configure:11865: checking for inline" >&5
11864 11865
11865 ac_cv_c_inline=no 11866 ac_cv_c_inline=no
11866 for ac_kw in inline __inline__ __inline; do 11867 for ac_kw in inline __inline__ __inline; do
11867 cat > conftest.$ac_ext <<EOF 11868 cat > conftest.$ac_ext <<EOF
11868 #line 11869 "configure" 11869 #line 11870 "configure"
11869 #include "confdefs.h" 11870 #include "confdefs.h"
11870 11871
11871 int main() { 11872 int main() {
11872 } $ac_kw foo() { 11873 } int $ac_kw foo() {
11873 ; return 0; } 11874 ; return 0; }
11874 EOF 11875 EOF
11875 if { (eval echo configure:11876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11876 if { (eval echo configure:11877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11876 rm -rf conftest* 11877 rm -rf conftest*
11877 ac_cv_c_inline=$ac_kw; break 11878 ac_cv_c_inline=$ac_kw; break
11878 else 11879 else
11879 echo "configure: failed program was:" >&5 11880 echo "configure: failed program was:" >&5
11880 cat conftest.$ac_ext >&5 11881 cat conftest.$ac_ext >&5
11911 11912
11912 if test "$__DECC" != "yes"; then 11913 if test "$__DECC" != "yes"; then
11913 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 11914 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11914 # for constant arguments. Useless! 11915 # for constant arguments. Useless!
11915 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 11916 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11916 echo "configure:11917: checking for working alloca.h" >&5 11917 echo "configure:11918: checking for working alloca.h" >&5
11917 11918
11918 cat > conftest.$ac_ext <<EOF 11919 cat > conftest.$ac_ext <<EOF
11919 #line 11920 "configure" 11920 #line 11921 "configure"
11920 #include "confdefs.h" 11921 #include "confdefs.h"
11921 #include <alloca.h> 11922 #include <alloca.h>
11922 int main() { 11923 int main() {
11923 char *p = alloca(2 * sizeof(int)); 11924 void *p = alloca(2 * sizeof(int));
11924 ; return 0; } 11925 ; return 0; }
11925 EOF 11926 EOF
11926 if { (eval echo configure:11927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11927 if { (eval echo configure:11928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11927 rm -rf conftest* 11928 rm -rf conftest*
11928 ac_cv_header_alloca_h=yes 11929 ac_cv_header_alloca_h=yes
11929 else 11930 else
11930 echo "configure: failed program was:" >&5 11931 echo "configure: failed program was:" >&5
11931 cat conftest.$ac_ext >&5 11932 cat conftest.$ac_ext >&5
11945 } 11946 }
11946 11947
11947 fi 11948 fi
11948 11949
11949 echo $ac_n "checking for alloca""... $ac_c" 1>&6 11950 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11950 echo "configure:11951: checking for alloca" >&5 11951 echo "configure:11952: checking for alloca" >&5
11951 11952
11952 cat > conftest.$ac_ext <<EOF 11953 cat > conftest.$ac_ext <<EOF
11953 #line 11954 "configure" 11954 #line 11955 "configure"
11954 #include "confdefs.h" 11955 #include "confdefs.h"
11955 11956
11956 #ifdef __GNUC__ 11957 #ifdef __GNUC__
11957 # define alloca __builtin_alloca 11958 # define alloca __builtin_alloca
11958 #else 11959 #else
11976 11977
11977 int main() { 11978 int main() {
11978 char *p = (char *) alloca(1); 11979 char *p = (char *) alloca(1);
11979 ; return 0; } 11980 ; return 0; }
11980 EOF 11981 EOF
11981 if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11982 if { (eval echo configure:11983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11982 rm -rf conftest* 11983 rm -rf conftest*
11983 ac_cv_func_alloca_works=yes 11984 ac_cv_func_alloca_works=yes
11984 else 11985 else
11985 echo "configure: failed program was:" >&5 11986 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5 11987 cat conftest.$ac_ext >&5
12015 EOF 12016 EOF
12016 } 12017 }
12017 12018
12018 12019
12019 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 12020 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
12020 echo "configure:12021: checking whether alloca needs Cray hooks" >&5 12021 echo "configure:12022: checking whether alloca needs Cray hooks" >&5
12021 12022
12022 cat > conftest.$ac_ext <<EOF 12023 cat > conftest.$ac_ext <<EOF
12023 #line 12024 "configure" 12024 #line 12025 "configure"
12024 #include "confdefs.h" 12025 #include "confdefs.h"
12025 #if defined(CRAY) && ! defined(CRAY2) 12026 #if defined(CRAY) && ! defined(CRAY2)
12026 webecray 12027 webecray
12027 #else 12028 #else
12028 wenotbecray 12029 wenotbecray
12042 12043
12043 echo "$ac_t""$ac_cv_os_cray" 1>&6 12044 echo "$ac_t""$ac_cv_os_cray" 1>&6
12044 if test $ac_cv_os_cray = yes; then 12045 if test $ac_cv_os_cray = yes; then
12045 for ac_func in _getb67 GETB67 getb67; do 12046 for ac_func in _getb67 GETB67 getb67; do
12046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12047 echo "configure:12048: checking for $ac_func" >&5 12048 echo "configure:12049: checking for $ac_func" >&5
12048 12049
12049 cat > conftest.$ac_ext <<EOF 12050 cat > conftest.$ac_ext <<EOF
12050 #line 12051 "configure" 12051 #line 12052 "configure"
12051 #include "confdefs.h" 12052 #include "confdefs.h"
12052 /* System header to define __stub macros and hopefully few prototypes, 12053 /* System header to define __stub macros and hopefully few prototypes,
12053 which can conflict with char $ac_func(); below. */ 12054 which can conflict with char $ac_func(); below. */
12054 #include <assert.h> 12055 #include <assert.h>
12055 /* Override any gcc2 internal prototype to avoid an error. */ 12056 /* Override any gcc2 internal prototype to avoid an error. */
12068 $ac_func(); 12069 $ac_func();
12069 #endif 12070 #endif
12070 12071
12071 ; return 0; } 12072 ; return 0; }
12072 EOF 12073 EOF
12073 if { (eval echo configure:12074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12074 if { (eval echo configure:12075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12074 rm -rf conftest* 12075 rm -rf conftest*
12075 eval "ac_cv_func_$ac_func=yes" 12076 eval "ac_cv_func_$ac_func=yes"
12076 else 12077 else
12077 echo "configure: failed program was:" >&5 12078 echo "configure: failed program was:" >&5
12078 cat conftest.$ac_ext >&5 12079 cat conftest.$ac_ext >&5
12098 12099
12099 done 12100 done
12100 fi 12101 fi
12101 12102
12102 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 12103 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
12103 echo "configure:12104: checking stack direction for C alloca" >&5 12104 echo "configure:12105: checking stack direction for C alloca" >&5
12104 12105
12105 cat > conftest.$ac_ext <<EOF 12106 cat > conftest.$ac_ext <<EOF
12106 #line 12107 "configure" 12107 #line 12108 "configure"
12107 #include "confdefs.h" 12108 #include "confdefs.h"
12108 find_stack_direction () 12109 find_stack_direction ()
12109 { 12110 {
12110 static char *addr = 0; 12111 static char *addr = 0;
12111 auto char dummy; 12112 auto char dummy;
12120 main () 12121 main ()
12121 { 12122 {
12122 exit (find_stack_direction() < 0); 12123 exit (find_stack_direction() < 0);
12123 } 12124 }
12124 EOF 12125 EOF
12125 if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12126 if { (eval echo configure:12127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12126 then 12127 then
12127 ac_cv_c_stack_direction=1 12128 ac_cv_c_stack_direction=1
12128 else 12129 else
12129 conftest_rc="$?" 12130 conftest_rc="$?"
12130 echo "configure: failed program was:" >&5 12131 echo "configure: failed program was:" >&5
12150 fi 12151 fi
12151 fi 12152 fi
12152 12153
12153 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 12154 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
12154 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 12155 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
12155 echo "configure:12156: checking for vfork.h" >&5 12156 echo "configure:12157: checking for vfork.h" >&5
12156 12157
12157 cat > conftest.$ac_ext <<EOF 12158 cat > conftest.$ac_ext <<EOF
12158 #line 12159 "configure" 12159 #line 12160 "configure"
12159 #include "confdefs.h" 12160 #include "confdefs.h"
12160 #include <vfork.h> 12161 #include <vfork.h>
12161 EOF 12162 EOF
12162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12163 { (eval echo configure:12164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12164 { (eval echo configure:12165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12165 if test -z "$ac_err"; then 12166 if test -z "$ac_err"; then
12166 rm -rf conftest* 12167 rm -rf conftest*
12167 eval "ac_cv_header_$ac_safe=yes" 12168 eval "ac_cv_header_$ac_safe=yes"
12168 else 12169 else
12186 else 12187 else
12187 echo "$ac_t""no" 1>&6 12188 echo "$ac_t""no" 1>&6
12188 fi 12189 fi
12189 12190
12190 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 12191 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12191 echo "configure:12192: checking for working vfork" >&5 12192 echo "configure:12193: checking for working vfork" >&5
12192 12193
12193 cat > conftest.$ac_ext <<EOF 12194 cat > conftest.$ac_ext <<EOF
12194 #line 12195 "configure" 12195 #line 12196 "configure"
12195 #include "confdefs.h" 12196 #include "confdefs.h"
12196 /* Thanks to Paul Eggert for this test. */ 12197 /* Thanks to Paul Eggert for this test. */
12197 #include <stdio.h> 12198 #include <stdio.h>
12198 #include <sys/types.h> 12199 #include <sys/types.h>
12199 #include <sys/stat.h> 12200 #include <sys/stat.h>
12284 || fstat(fileno(stdout), &st) != 0 12285 || fstat(fileno(stdout), &st) != 0
12285 ); 12286 );
12286 } 12287 }
12287 } 12288 }
12288 EOF 12289 EOF
12289 if { (eval echo configure:12290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12290 if { (eval echo configure:12291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12290 then 12291 then
12291 ac_cv_func_vfork_works=yes 12292 ac_cv_func_vfork_works=yes
12292 else 12293 else
12293 conftest_rc="$?" 12294 conftest_rc="$?"
12294 echo "configure: failed program was:" >&5 12295 echo "configure: failed program was:" >&5
12310 12311
12311 fi 12312 fi
12312 12313
12313 12314
12314 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 12315 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12315 echo "configure:12316: checking for working strcoll" >&5 12316 echo "configure:12317: checking for working strcoll" >&5
12316 12317
12317 cat > conftest.$ac_ext <<EOF 12318 cat > conftest.$ac_ext <<EOF
12318 #line 12319 "configure" 12319 #line 12320 "configure"
12319 #include "confdefs.h" 12320 #include "confdefs.h"
12320 #include <string.h> 12321 #include <string.h>
12321 main () 12322 main ()
12322 { 12323 {
12323 exit (strcoll ("abc", "def") >= 0 || 12324 exit (strcoll ("abc", "def") >= 0 ||
12324 strcoll ("ABC", "DEF") >= 0 || 12325 strcoll ("ABC", "DEF") >= 0 ||
12325 strcoll ("123", "456") >= 0); 12326 strcoll ("123", "456") >= 0);
12326 } 12327 }
12327 EOF 12328 EOF
12328 if { (eval echo configure:12329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12329 if { (eval echo configure:12330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12329 then 12330 then
12330 ac_cv_func_strcoll_works=yes 12331 ac_cv_func_strcoll_works=yes
12331 else 12332 else
12332 conftest_rc="$?" 12333 conftest_rc="$?"
12333 echo "configure: failed program was:" >&5 12334 echo "configure: failed program was:" >&5
12351 12352
12352 12353
12353 for ac_func in getpgrp 12354 for ac_func in getpgrp
12354 do 12355 do
12355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12356 echo "configure:12357: checking for $ac_func" >&5 12357 echo "configure:12358: checking for $ac_func" >&5
12357 12358
12358 cat > conftest.$ac_ext <<EOF 12359 cat > conftest.$ac_ext <<EOF
12359 #line 12360 "configure" 12360 #line 12361 "configure"
12360 #include "confdefs.h" 12361 #include "confdefs.h"
12361 /* System header to define __stub macros and hopefully few prototypes, 12362 /* System header to define __stub macros and hopefully few prototypes,
12362 which can conflict with char $ac_func(); below. */ 12363 which can conflict with char $ac_func(); below. */
12363 #include <assert.h> 12364 #include <assert.h>
12364 /* Override any gcc2 internal prototype to avoid an error. */ 12365 /* Override any gcc2 internal prototype to avoid an error. */
12377 $ac_func(); 12378 $ac_func();
12378 #endif 12379 #endif
12379 12380
12380 ; return 0; } 12381 ; return 0; }
12381 EOF 12382 EOF
12382 if { (eval echo configure:12383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12383 if { (eval echo configure:12384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12383 rm -rf conftest* 12384 rm -rf conftest*
12384 eval "ac_cv_func_$ac_func=yes" 12385 eval "ac_cv_func_$ac_func=yes"
12385 else 12386 else
12386 echo "configure: failed program was:" >&5 12387 echo "configure: failed program was:" >&5
12387 cat conftest.$ac_ext >&5 12388 cat conftest.$ac_ext >&5
12405 echo "$ac_t""no" 1>&6 12406 echo "$ac_t""no" 1>&6
12406 fi 12407 fi
12407 done 12408 done
12408 12409
12409 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 12410 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12410 echo "configure:12411: checking whether getpgrp takes no argument" >&5 12411 echo "configure:12412: checking whether getpgrp takes no argument" >&5
12411 12412
12412 cat > conftest.$ac_ext <<EOF 12413 cat > conftest.$ac_ext <<EOF
12413 #line 12414 "configure" 12414 #line 12415 "configure"
12414 #include "confdefs.h" 12415 #include "confdefs.h"
12415 12416
12416 /* 12417 /*
12417 * If this system has a BSD-style getpgrp(), 12418 * If this system has a BSD-style getpgrp(),
12418 * which takes a pid argument, exit unsuccessfully. 12419 * which takes a pid argument, exit unsuccessfully.
12463 exit(s>>8); 12464 exit(s>>8);
12464 } 12465 }
12465 } 12466 }
12466 12467
12467 EOF 12468 EOF
12468 if { (eval echo configure:12469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12469 if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12469 then 12470 then
12470 ac_cv_func_getpgrp_void=yes 12471 ac_cv_func_getpgrp_void=yes
12471 else 12472 else
12472 conftest_rc="$?" 12473 conftest_rc="$?"
12473 echo "configure: failed program was:" >&5 12474 echo "configure: failed program was:" >&5
12490 12491
12491 fi 12492 fi
12492 12493
12493 12494
12494 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 12495 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12495 echo "configure:12496: checking for working mmap" >&5 12496 echo "configure:12497: checking for working mmap" >&5
12496 case "$opsys" in ultrix* ) have_mmap=no ;; *) 12497 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12497 cat > conftest.$ac_ext <<EOF 12498 cat > conftest.$ac_ext <<EOF
12498 #line 12499 "configure" 12499 #line 12500 "configure"
12499 #include "confdefs.h" 12500 #include "confdefs.h"
12500 #include <stdio.h> 12501 #include <stdio.h>
12501 #include <unistd.h> 12502 #include <unistd.h>
12502 #include <fcntl.h> 12503 #include <fcntl.h>
12503 #include <sys/mman.h> 12504 #include <sys/mman.h>
12526 return 0; 12527 return 0;
12527 perror ("conftest: mmap failed"); 12528 perror ("conftest: mmap failed");
12528 return 1; 12529 return 1;
12529 } 12530 }
12530 EOF 12531 EOF
12531 if { (eval echo configure:12532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12532 if { (eval echo configure:12533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12532 then 12533 then
12533 have_mmap=yes 12534 have_mmap=yes
12534 else 12535 else
12535 conftest_rc="$?" 12536 conftest_rc="$?"
12536 echo "configure: failed program was:" >&5 12537 echo "configure: failed program was:" >&5
12555 esac 12556 esac
12556 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 12557 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12557 if test "$rel_alloc $have_mmap" = "default yes"; then 12558 if test "$rel_alloc $have_mmap" = "default yes"; then
12558 if test "$doug_lea_malloc" = "yes"; then 12559 if test "$doug_lea_malloc" = "yes"; then
12559 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 12560 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12560 echo "configure:12561: checking for M_MMAP_THRESHOLD" >&5 12561 echo "configure:12562: checking for M_MMAP_THRESHOLD" >&5
12561 cat > conftest.$ac_ext <<EOF 12562 cat > conftest.$ac_ext <<EOF
12562 #line 12563 "configure" 12563 #line 12564 "configure"
12563 #include "confdefs.h" 12564 #include "confdefs.h"
12564 #include <malloc.h> 12565 #include <malloc.h>
12565 int main() { 12566 int main() {
12566 12567
12567 #ifndef M_MMAP_THRESHOLD 12568 #ifndef M_MMAP_THRESHOLD
12569 !@+$%^&*_)(_ - unlikely to compile... 12570 !@+$%^&*_)(_ - unlikely to compile...
12570 #endif 12571 #endif
12571 12572
12572 ; return 0; } 12573 ; return 0; }
12573 EOF 12574 EOF
12574 if { (eval echo configure:12575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12575 if { (eval echo configure:12576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12575 rm -rf conftest* 12576 rm -rf conftest*
12576 rel_alloc=no; echo "$ac_t""yes" 1>&6; 12577 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12577 else 12578 else
12578 echo "configure: failed program was:" >&5 12579 echo "configure: failed program was:" >&5
12579 cat conftest.$ac_ext >&5 12580 cat conftest.$ac_ext >&5
12594 } 12595 }
12595 12596
12596 12597
12597 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 12598 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12598 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 12599 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12599 echo "configure:12600: checking for termios.h" >&5 12600 echo "configure:12601: checking for termios.h" >&5
12600 12601
12601 cat > conftest.$ac_ext <<EOF 12602 cat > conftest.$ac_ext <<EOF
12602 #line 12603 "configure" 12603 #line 12604 "configure"
12603 #include "confdefs.h" 12604 #include "confdefs.h"
12604 #include <termios.h> 12605 #include <termios.h>
12605 EOF 12606 EOF
12606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12607 { (eval echo configure:12608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12608 { (eval echo configure:12609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12609 if test -z "$ac_err"; then 12610 if test -z "$ac_err"; then
12610 rm -rf conftest* 12611 rm -rf conftest*
12611 eval "ac_cv_header_$ac_safe=yes" 12612 eval "ac_cv_header_$ac_safe=yes"
12612 else 12613 else
12645 12646
12646 else 12647 else
12647 echo "$ac_t""no" 1>&6 12648 echo "$ac_t""no" 1>&6
12648 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 12649 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12649 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 12650 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12650 echo "configure:12651: checking for termio.h" >&5 12651 echo "configure:12652: checking for termio.h" >&5
12651 12652
12652 cat > conftest.$ac_ext <<EOF 12653 cat > conftest.$ac_ext <<EOF
12653 #line 12654 "configure" 12654 #line 12655 "configure"
12654 #include "confdefs.h" 12655 #include "confdefs.h"
12655 #include <termio.h> 12656 #include <termio.h>
12656 EOF 12657 EOF
12657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12658 { (eval echo configure:12659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12659 { (eval echo configure:12660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12660 if test -z "$ac_err"; then 12661 if test -z "$ac_err"; then
12661 rm -rf conftest* 12662 rm -rf conftest*
12662 eval "ac_cv_header_$ac_safe=yes" 12663 eval "ac_cv_header_$ac_safe=yes"
12663 else 12664 else
12685 fi 12686 fi
12686 12687
12687 12688
12688 12689
12689 echo $ac_n "checking for socket""... $ac_c" 1>&6 12690 echo $ac_n "checking for socket""... $ac_c" 1>&6
12690 echo "configure:12691: checking for socket" >&5 12691 echo "configure:12692: checking for socket" >&5
12691 12692
12692 cat > conftest.$ac_ext <<EOF 12693 cat > conftest.$ac_ext <<EOF
12693 #line 12694 "configure" 12694 #line 12695 "configure"
12694 #include "confdefs.h" 12695 #include "confdefs.h"
12695 /* System header to define __stub macros and hopefully few prototypes, 12696 /* System header to define __stub macros and hopefully few prototypes,
12696 which can conflict with char socket(); below. */ 12697 which can conflict with char socket(); below. */
12697 #include <assert.h> 12698 #include <assert.h>
12698 /* Override any gcc2 internal prototype to avoid an error. */ 12699 /* Override any gcc2 internal prototype to avoid an error. */
12711 socket(); 12712 socket();
12712 #endif 12713 #endif
12713 12714
12714 ; return 0; } 12715 ; return 0; }
12715 EOF 12716 EOF
12716 if { (eval echo configure:12717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12717 if { (eval echo configure:12718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12717 rm -rf conftest* 12718 rm -rf conftest*
12718 eval "ac_cv_func_socket=yes" 12719 eval "ac_cv_func_socket=yes"
12719 else 12720 else
12720 echo "configure: failed program was:" >&5 12721 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5 12722 cat conftest.$ac_ext >&5
12726 12727
12727 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 12728 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12728 echo "$ac_t""yes" 1>&6 12729 echo "$ac_t""yes" 1>&6
12729 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 12730 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12730 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 12731 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12731 echo "configure:12732: checking for netinet/in.h" >&5 12732 echo "configure:12733: checking for netinet/in.h" >&5
12732 12733
12733 cat > conftest.$ac_ext <<EOF 12734 cat > conftest.$ac_ext <<EOF
12734 #line 12735 "configure" 12735 #line 12736 "configure"
12735 #include "confdefs.h" 12736 #include "confdefs.h"
12736 #include <netinet/in.h> 12737 #include <netinet/in.h>
12737 EOF 12738 EOF
12738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12739 { (eval echo configure:12740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12740 { (eval echo configure:12741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12741 if test -z "$ac_err"; then 12742 if test -z "$ac_err"; then
12742 rm -rf conftest* 12743 rm -rf conftest*
12743 eval "ac_cv_header_$ac_safe=yes" 12744 eval "ac_cv_header_$ac_safe=yes"
12744 else 12745 else
12751 rm -f conftest* 12752 rm -f conftest*
12752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12753 echo "$ac_t""yes" 1>&6 12754 echo "$ac_t""yes" 1>&6
12754 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 12755 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12755 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 12756 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12756 echo "configure:12757: checking for arpa/inet.h" >&5 12757 echo "configure:12758: checking for arpa/inet.h" >&5
12757 12758
12758 cat > conftest.$ac_ext <<EOF 12759 cat > conftest.$ac_ext <<EOF
12759 #line 12760 "configure" 12760 #line 12761 "configure"
12760 #include "confdefs.h" 12761 #include "confdefs.h"
12761 #include <arpa/inet.h> 12762 #include <arpa/inet.h>
12762 EOF 12763 EOF
12763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12764 { (eval echo configure:12765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12765 { (eval echo configure:12766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12766 if test -z "$ac_err"; then 12767 if test -z "$ac_err"; then
12767 rm -rf conftest* 12768 rm -rf conftest*
12768 eval "ac_cv_header_$ac_safe=yes" 12769 eval "ac_cv_header_$ac_safe=yes"
12769 else 12770 else
12784 #define HAVE_SOCKETS 1 12785 #define HAVE_SOCKETS 1
12785 EOF 12786 EOF
12786 } 12787 }
12787 12788
12788 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 12789 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12789 echo "configure:12790: checking "for sun_len member in struct sockaddr_un"" >&5 12790 echo "configure:12791: checking "for sun_len member in struct sockaddr_un"" >&5
12790 cat > conftest.$ac_ext <<EOF 12791 cat > conftest.$ac_ext <<EOF
12791 #line 12792 "configure" 12792 #line 12793 "configure"
12792 #include "confdefs.h" 12793 #include "confdefs.h"
12793 12794
12794 #include <sys/types.h> 12795 #include <sys/types.h>
12795 #include <sys/socket.h> 12796 #include <sys/socket.h>
12796 #include <sys/un.h> 12797 #include <sys/un.h>
12797 12798
12798 int main() { 12799 int main() {
12799 static struct sockaddr_un x; x.sun_len = 1; 12800 static struct sockaddr_un x; x.sun_len = 1;
12800 ; return 0; } 12801 ; return 0; }
12801 EOF 12802 EOF
12802 if { (eval echo configure:12803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12803 if { (eval echo configure:12804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12803 rm -rf conftest* 12804 rm -rf conftest*
12804 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 12805 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12805 Defining HAVE_SOCKADDR_SUN_LEN 12806 Defining HAVE_SOCKADDR_SUN_LEN
12806 EOF 12807 EOF
12807 cat >> confdefs.h <<\EOF 12808 cat >> confdefs.h <<\EOF
12815 rm -rf conftest* 12816 rm -rf conftest*
12816 echo "$ac_t""no" 1>&6 12817 echo "$ac_t""no" 1>&6
12817 fi 12818 fi
12818 rm -f conftest* 12819 rm -f conftest*
12819 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 12820 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12820 echo "configure:12821: checking "for ip_mreq struct in netinet/in.h"" >&5 12821 echo "configure:12822: checking "for ip_mreq struct in netinet/in.h"" >&5
12821 cat > conftest.$ac_ext <<EOF 12822 cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure" 12823 #line 12824 "configure"
12823 #include "confdefs.h" 12824 #include "confdefs.h"
12824 12825
12825 #include <sys/types.h> 12826 #include <sys/types.h>
12826 #include <netinet/in.h> 12827 #include <netinet/in.h>
12827 12828
12828 int main() { 12829 int main() {
12829 static struct ip_mreq x; 12830 static struct ip_mreq x;
12830 ; return 0; } 12831 ; return 0; }
12831 EOF 12832 EOF
12832 if { (eval echo configure:12833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12833 if { (eval echo configure:12834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12833 rm -rf conftest* 12834 rm -rf conftest*
12834 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 12835 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12835 Defining HAVE_MULTICAST 12836 Defining HAVE_MULTICAST
12836 EOF 12837 EOF
12837 cat >> confdefs.h <<\EOF 12838 cat >> confdefs.h <<\EOF
12858 echo "$ac_t""no" 1>&6 12859 echo "$ac_t""no" 1>&6
12859 fi 12860 fi
12860 12861
12861 12862
12862 echo $ac_n "checking for msgget""... $ac_c" 1>&6 12863 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12863 echo "configure:12864: checking for msgget" >&5 12864 echo "configure:12865: checking for msgget" >&5
12864 12865
12865 cat > conftest.$ac_ext <<EOF 12866 cat > conftest.$ac_ext <<EOF
12866 #line 12867 "configure" 12867 #line 12868 "configure"
12867 #include "confdefs.h" 12868 #include "confdefs.h"
12868 /* System header to define __stub macros and hopefully few prototypes, 12869 /* System header to define __stub macros and hopefully few prototypes,
12869 which can conflict with char msgget(); below. */ 12870 which can conflict with char msgget(); below. */
12870 #include <assert.h> 12871 #include <assert.h>
12871 /* Override any gcc2 internal prototype to avoid an error. */ 12872 /* Override any gcc2 internal prototype to avoid an error. */
12884 msgget(); 12885 msgget();
12885 #endif 12886 #endif
12886 12887
12887 ; return 0; } 12888 ; return 0; }
12888 EOF 12889 EOF
12889 if { (eval echo configure:12890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12890 if { (eval echo configure:12891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12890 rm -rf conftest* 12891 rm -rf conftest*
12891 eval "ac_cv_func_msgget=yes" 12892 eval "ac_cv_func_msgget=yes"
12892 else 12893 else
12893 echo "configure: failed program was:" >&5 12894 echo "configure: failed program was:" >&5
12894 cat conftest.$ac_ext >&5 12895 cat conftest.$ac_ext >&5
12899 12900
12900 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 12901 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12901 echo "$ac_t""yes" 1>&6 12902 echo "$ac_t""yes" 1>&6
12902 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 12903 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12903 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 12904 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12904 echo "configure:12905: checking for sys/ipc.h" >&5 12905 echo "configure:12906: checking for sys/ipc.h" >&5
12905 12906
12906 cat > conftest.$ac_ext <<EOF 12907 cat > conftest.$ac_ext <<EOF
12907 #line 12908 "configure" 12908 #line 12909 "configure"
12908 #include "confdefs.h" 12909 #include "confdefs.h"
12909 #include <sys/ipc.h> 12910 #include <sys/ipc.h>
12910 EOF 12911 EOF
12911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12912 { (eval echo configure:12913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12913 { (eval echo configure:12914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12914 if test -z "$ac_err"; then 12915 if test -z "$ac_err"; then
12915 rm -rf conftest* 12916 rm -rf conftest*
12916 eval "ac_cv_header_$ac_safe=yes" 12917 eval "ac_cv_header_$ac_safe=yes"
12917 else 12918 else
12924 rm -f conftest* 12925 rm -f conftest*
12925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12926 echo "$ac_t""yes" 1>&6 12927 echo "$ac_t""yes" 1>&6
12927 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 12928 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12928 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 12929 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12929 echo "configure:12930: checking for sys/msg.h" >&5 12930 echo "configure:12931: checking for sys/msg.h" >&5
12930 12931
12931 cat > conftest.$ac_ext <<EOF 12932 cat > conftest.$ac_ext <<EOF
12932 #line 12933 "configure" 12933 #line 12934 "configure"
12933 #include "confdefs.h" 12934 #include "confdefs.h"
12934 #include <sys/msg.h> 12935 #include <sys/msg.h>
12935 EOF 12936 EOF
12936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12937 { (eval echo configure:12938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12938 { (eval echo configure:12939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12939 if test -z "$ac_err"; then 12940 if test -z "$ac_err"; then
12940 rm -rf conftest* 12941 rm -rf conftest*
12941 eval "ac_cv_header_$ac_safe=yes" 12942 eval "ac_cv_header_$ac_safe=yes"
12942 else 12943 else
12970 fi 12971 fi
12971 12972
12972 12973
12973 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 12974 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12974 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 12975 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12975 echo "configure:12976: checking for dirent.h" >&5 12976 echo "configure:12977: checking for dirent.h" >&5
12976 12977
12977 cat > conftest.$ac_ext <<EOF 12978 cat > conftest.$ac_ext <<EOF
12978 #line 12979 "configure" 12979 #line 12980 "configure"
12979 #include "confdefs.h" 12980 #include "confdefs.h"
12980 #include <dirent.h> 12981 #include <dirent.h>
12981 EOF 12982 EOF
12982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12983 { (eval echo configure:12984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12984 { (eval echo configure:12985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12985 if test -z "$ac_err"; then 12986 if test -z "$ac_err"; then
12986 rm -rf conftest* 12987 rm -rf conftest*
12987 eval "ac_cv_header_$ac_safe=yes" 12988 eval "ac_cv_header_$ac_safe=yes"
12988 else 12989 else
13005 13006
13006 else 13007 else
13007 echo "$ac_t""no" 1>&6 13008 echo "$ac_t""no" 1>&6
13008 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 13009 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
13009 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 13010 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
13010 echo "configure:13011: checking for sys/dir.h" >&5 13011 echo "configure:13012: checking for sys/dir.h" >&5
13011 13012
13012 cat > conftest.$ac_ext <<EOF 13013 cat > conftest.$ac_ext <<EOF
13013 #line 13014 "configure" 13014 #line 13015 "configure"
13014 #include "confdefs.h" 13015 #include "confdefs.h"
13015 #include <sys/dir.h> 13016 #include <sys/dir.h>
13016 EOF 13017 EOF
13017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13018 { (eval echo configure:13019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13019 { (eval echo configure:13020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13020 if test -z "$ac_err"; then 13021 if test -z "$ac_err"; then
13021 rm -rf conftest* 13022 rm -rf conftest*
13022 eval "ac_cv_header_$ac_safe=yes" 13023 eval "ac_cv_header_$ac_safe=yes"
13023 else 13024 else
13046 fi 13047 fi
13047 13048
13048 13049
13049 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 13050 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
13050 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 13051 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
13051 echo "configure:13052: checking for nlist.h" >&5 13052 echo "configure:13053: checking for nlist.h" >&5
13052 13053
13053 cat > conftest.$ac_ext <<EOF 13054 cat > conftest.$ac_ext <<EOF
13054 #line 13055 "configure" 13055 #line 13056 "configure"
13055 #include "confdefs.h" 13056 #include "confdefs.h"
13056 #include <nlist.h> 13057 #include <nlist.h>
13057 EOF 13058 EOF
13058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13059 { (eval echo configure:13060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13060 { (eval echo configure:13061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13061 if test -z "$ac_err"; then 13062 if test -z "$ac_err"; then
13062 rm -rf conftest* 13063 rm -rf conftest*
13063 eval "ac_cv_header_$ac_safe=yes" 13064 eval "ac_cv_header_$ac_safe=yes"
13064 else 13065 else
13084 fi 13085 fi
13085 13086
13086 13087
13087 13088
13088 echo "checking "for sound support"" 1>&6 13089 echo "checking "for sound support"" 1>&6
13089 echo "configure:13090: checking "for sound support"" >&5 13090 echo "configure:13091: checking "for sound support"" >&5
13090 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 13091 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
13091 13092
13092 if test "$with_native_sound" != "no"; then 13093 if test "$with_native_sound" != "no"; then
13093 if test -n "$native_sound_lib"; then 13094 if test -n "$native_sound_lib"; then
13094 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 13095 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
13095 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 13096 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
13096 echo "configure:13097: checking for multimedia/audio_device.h" >&5 13097 echo "configure:13098: checking for multimedia/audio_device.h" >&5
13097 13098
13098 cat > conftest.$ac_ext <<EOF 13099 cat > conftest.$ac_ext <<EOF
13099 #line 13100 "configure" 13100 #line 13101 "configure"
13100 #include "confdefs.h" 13101 #include "confdefs.h"
13101 #include <multimedia/audio_device.h> 13102 #include <multimedia/audio_device.h>
13102 EOF 13103 EOF
13103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13104 { (eval echo configure:13105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13105 { (eval echo configure:13106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13106 if test -z "$ac_err"; then 13107 if test -z "$ac_err"; then
13107 rm -rf conftest* 13108 rm -rf conftest*
13108 eval "ac_cv_header_$ac_safe=yes" 13109 eval "ac_cv_header_$ac_safe=yes"
13109 else 13110 else
13147 case "$canonical" in 13148 case "$canonical" in
13148 *-sgi-* ) 13149 *-sgi-* )
13149 if test -z "$native_sound_lib"; then 13150 if test -z "$native_sound_lib"; then
13150 13151
13151 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 13152 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13152 echo "configure:13153: checking for ALopenport in -laudio" >&5 13153 echo "configure:13154: checking for ALopenport in -laudio" >&5
13153 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 13154 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13154 13155
13155 xe_check_libs=" -laudio " 13156 xe_check_libs=" -laudio "
13156 cat > conftest.$ac_ext <<EOF 13157 cat > conftest.$ac_ext <<EOF
13157 #line 13158 "configure" 13158 #line 13159 "configure"
13158 #include "confdefs.h" 13159 #include "confdefs.h"
13159 /* Override any gcc2 internal prototype to avoid an error. */ 13160 /* Override any gcc2 internal prototype to avoid an error. */
13160 /* We use char because int might match the return type of a gcc2 13161 /* We use char because int might match the return type of a gcc2
13161 builtin and then its argument prototype would still apply. */ 13162 builtin and then its argument prototype would still apply. */
13162 char ALopenport(); 13163 char ALopenport();
13163 13164
13164 int main() { 13165 int main() {
13165 ALopenport() 13166 ALopenport()
13166 ; return 0; } 13167 ; return 0; }
13167 EOF 13168 EOF
13168 if { (eval echo configure:13169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13169 if { (eval echo configure:13170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13169 rm -rf conftest* 13170 rm -rf conftest*
13170 eval "ac_cv_lib_$ac_lib_var=yes" 13171 eval "ac_cv_lib_$ac_lib_var=yes"
13171 else 13172 else
13172 echo "configure: failed program was:" >&5 13173 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5 13174 cat conftest.$ac_ext >&5
13194 fi ;; 13195 fi ;;
13195 hppa*-hp-hpux* ) 13196 hppa*-hp-hpux* )
13196 if test -z "$native_sound_lib"; then 13197 if test -z "$native_sound_lib"; then
13197 13198
13198 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 13199 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13199 echo "configure:13200: checking for AOpenAudio in -lAlib" >&5 13200 echo "configure:13201: checking for AOpenAudio in -lAlib" >&5
13200 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 13201 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13201 13202
13202 xe_check_libs=" -lAlib " 13203 xe_check_libs=" -lAlib "
13203 cat > conftest.$ac_ext <<EOF 13204 cat > conftest.$ac_ext <<EOF
13204 #line 13205 "configure" 13205 #line 13206 "configure"
13205 #include "confdefs.h" 13206 #include "confdefs.h"
13206 /* Override any gcc2 internal prototype to avoid an error. */ 13207 /* Override any gcc2 internal prototype to avoid an error. */
13207 /* We use char because int might match the return type of a gcc2 13208 /* We use char because int might match the return type of a gcc2
13208 builtin and then its argument prototype would still apply. */ 13209 builtin and then its argument prototype would still apply. */
13209 char AOpenAudio(); 13210 char AOpenAudio();
13210 13211
13211 int main() { 13212 int main() {
13212 AOpenAudio() 13213 AOpenAudio()
13213 ; return 0; } 13214 ; return 0; }
13214 EOF 13215 EOF
13215 if { (eval echo configure:13216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13216 if { (eval echo configure:13217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13216 rm -rf conftest* 13217 rm -rf conftest*
13217 eval "ac_cv_lib_$ac_lib_var=yes" 13218 eval "ac_cv_lib_$ac_lib_var=yes"
13218 else 13219 else
13219 echo "configure: failed program was:" >&5 13220 echo "configure: failed program was:" >&5
13220 cat conftest.$ac_ext >&5 13221 cat conftest.$ac_ext >&5
13258 13259
13259 if test -z "$sound_found"; then 13260 if test -z "$sound_found"; then
13260 for dir in "machine" "sys" "linux"; do 13261 for dir in "machine" "sys" "linux"; do
13261 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 13262 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13262 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 13263 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13263 echo "configure:13264: checking for ${dir}/soundcard.h" >&5 13264 echo "configure:13265: checking for ${dir}/soundcard.h" >&5
13264 13265
13265 cat > conftest.$ac_ext <<EOF 13266 cat > conftest.$ac_ext <<EOF
13266 #line 13267 "configure" 13267 #line 13268 "configure"
13267 #include "confdefs.h" 13268 #include "confdefs.h"
13268 #include <${dir}/soundcard.h> 13269 #include <${dir}/soundcard.h>
13269 EOF 13270 EOF
13270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13271 { (eval echo configure:13272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13272 { (eval echo configure:13273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13273 if test -z "$ac_err"; then 13274 if test -z "$ac_err"; then
13274 rm -rf conftest* 13275 rm -rf conftest*
13275 eval "ac_cv_header_$ac_safe=yes" 13276 eval "ac_cv_header_$ac_safe=yes"
13276 else 13277 else
13320 fi 13321 fi
13321 13322
13322 if test "$with_nas_sound" != "no"; then 13323 if test "$with_nas_sound" != "no"; then
13323 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 13324 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13324 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 13325 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13325 echo "configure:13326: checking for audio/audiolib.h" >&5 13326 echo "configure:13327: checking for audio/audiolib.h" >&5
13326 13327
13327 cat > conftest.$ac_ext <<EOF 13328 cat > conftest.$ac_ext <<EOF
13328 #line 13329 "configure" 13329 #line 13330 "configure"
13329 #include "confdefs.h" 13330 #include "confdefs.h"
13330 #include <audio/audiolib.h> 13331 #include <audio/audiolib.h>
13331 EOF 13332 EOF
13332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13333 { (eval echo configure:13334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13334 { (eval echo configure:13335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13335 if test -z "$ac_err"; then 13336 if test -z "$ac_err"; then
13336 rm -rf conftest* 13337 rm -rf conftest*
13337 eval "ac_cv_header_$ac_safe=yes" 13338 eval "ac_cv_header_$ac_safe=yes"
13338 else 13339 else
13346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13347 echo "$ac_t""yes" 1>&6 13348 echo "$ac_t""yes" 1>&6
13348 13349
13349 13350
13350 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 13351 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13351 echo "configure:13352: checking for AuOpenServer in -laudio" >&5 13352 echo "configure:13353: checking for AuOpenServer in -laudio" >&5
13352 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 13353 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13353 13354
13354 xe_check_libs=" -laudio " 13355 xe_check_libs=" -laudio "
13355 cat > conftest.$ac_ext <<EOF 13356 cat > conftest.$ac_ext <<EOF
13356 #line 13357 "configure" 13357 #line 13358 "configure"
13357 #include "confdefs.h" 13358 #include "confdefs.h"
13358 /* Override any gcc2 internal prototype to avoid an error. */ 13359 /* Override any gcc2 internal prototype to avoid an error. */
13359 /* We use char because int might match the return type of a gcc2 13360 /* We use char because int might match the return type of a gcc2
13360 builtin and then its argument prototype would still apply. */ 13361 builtin and then its argument prototype would still apply. */
13361 char AuOpenServer(); 13362 char AuOpenServer();
13362 13363
13363 int main() { 13364 int main() {
13364 AuOpenServer() 13365 AuOpenServer()
13365 ; return 0; } 13366 ; return 0; }
13366 EOF 13367 EOF
13367 if { (eval echo configure:13368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13368 if { (eval echo configure:13369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13368 rm -rf conftest* 13369 rm -rf conftest*
13369 eval "ac_cv_lib_$ac_lib_var=yes" 13370 eval "ac_cv_lib_$ac_lib_var=yes"
13370 else 13371 else
13371 echo "configure: failed program was:" >&5 13372 echo "configure: failed program was:" >&5
13372 cat conftest.$ac_ext >&5 13373 cat conftest.$ac_ext >&5
13401 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 13402 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13402 echo " xemacs will be linked with \"nas.o\"" 13403 echo " xemacs will be linked with \"nas.o\""
13403 fi 13404 fi
13404 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 13405 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13405 cat > conftest.$ac_ext <<EOF 13406 cat > conftest.$ac_ext <<EOF
13406 #line 13407 "configure" 13407 #line 13408 "configure"
13407 #include "confdefs.h" 13408 #include "confdefs.h"
13408 #include <audio/Xtutil.h> 13409 #include <audio/Xtutil.h>
13409 EOF 13410 EOF
13410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13411 egrep "AuXtErrorJump" >/dev/null 2>&1; then 13412 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13432 13433
13433 if test "$with_esd_sound" != "no"; then 13434 if test "$with_esd_sound" != "no"; then
13434 # Extract the first word of "esd-config", so it can be a program name with args. 13435 # Extract the first word of "esd-config", so it can be a program name with args.
13435 set dummy esd-config; ac_word=$2 13436 set dummy esd-config; ac_word=$2
13436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 13437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13437 echo "configure:13438: checking for $ac_word" >&5 13438 echo "configure:13439: checking for $ac_word" >&5
13438 13439
13439 if test -n "$have_esd_config"; then 13440 if test -n "$have_esd_config"; then
13440 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 13441 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13441 else 13442 else
13442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 13443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13461 if test "$have_esd_config" = "yes"; then 13462 if test "$have_esd_config" = "yes"; then
13462 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 13463 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13463 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 13464 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
13464 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 13465 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13465 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 13466 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13466 echo "configure:13467: checking for esd_play_stream" >&5 13467 echo "configure:13468: checking for esd_play_stream" >&5
13467 13468
13468 cat > conftest.$ac_ext <<EOF 13469 cat > conftest.$ac_ext <<EOF
13469 #line 13470 "configure" 13470 #line 13471 "configure"
13470 #include "confdefs.h" 13471 #include "confdefs.h"
13471 /* System header to define __stub macros and hopefully few prototypes, 13472 /* System header to define __stub macros and hopefully few prototypes,
13472 which can conflict with char esd_play_stream(); below. */ 13473 which can conflict with char esd_play_stream(); below. */
13473 #include <assert.h> 13474 #include <assert.h>
13474 /* Override any gcc2 internal prototype to avoid an error. */ 13475 /* Override any gcc2 internal prototype to avoid an error. */
13487 esd_play_stream(); 13488 esd_play_stream();
13488 #endif 13489 #endif
13489 13490
13490 ; return 0; } 13491 ; return 0; }
13491 EOF 13492 EOF
13492 if { (eval echo configure:13493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13493 if { (eval echo configure:13494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13493 rm -rf conftest* 13494 rm -rf conftest*
13494 eval "ac_cv_func_esd_play_stream=yes" 13495 eval "ac_cv_func_esd_play_stream=yes"
13495 else 13496 else
13496 echo "configure: failed program was:" >&5 13497 echo "configure: failed program was:" >&5
13497 cat conftest.$ac_ext >&5 13498 cat conftest.$ac_ext >&5
13538 13539
13539 test -z "$with_tty" && with_tty=yes 13540 test -z "$with_tty" && with_tty=yes
13540 13541
13541 if test "$with_tty" = "yes" ; then 13542 if test "$with_tty" = "yes" ; then
13542 echo "checking for TTY-related features" 1>&6 13543 echo "checking for TTY-related features" 1>&6
13543 echo "configure:13544: checking for TTY-related features" >&5 13544 echo "configure:13545: checking for TTY-related features" >&5
13544 { test "$extra_verbose" = "yes" && cat << \EOF 13545 { test "$extra_verbose" = "yes" && cat << \EOF
13545 Defining HAVE_TTY 13546 Defining HAVE_TTY
13546 EOF 13547 EOF
13547 cat >> confdefs.h <<\EOF 13548 cat >> confdefs.h <<\EOF
13548 #define HAVE_TTY 1 13549 #define HAVE_TTY 1
13554 fi 13555 fi
13555 13556
13556 if test -z "$with_ncurses"; then 13557 if test -z "$with_ncurses"; then
13557 13558
13558 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 13559 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13559 echo "configure:13560: checking for tgetent in -lncurses" >&5 13560 echo "configure:13561: checking for tgetent in -lncurses" >&5
13560 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 13561 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13561 13562
13562 xe_check_libs=" -lncurses " 13563 xe_check_libs=" -lncurses "
13563 cat > conftest.$ac_ext <<EOF 13564 cat > conftest.$ac_ext <<EOF
13564 #line 13565 "configure" 13565 #line 13566 "configure"
13565 #include "confdefs.h" 13566 #include "confdefs.h"
13566 /* Override any gcc2 internal prototype to avoid an error. */ 13567 /* Override any gcc2 internal prototype to avoid an error. */
13567 /* We use char because int might match the return type of a gcc2 13568 /* We use char because int might match the return type of a gcc2
13568 builtin and then its argument prototype would still apply. */ 13569 builtin and then its argument prototype would still apply. */
13569 char tgetent(); 13570 char tgetent();
13570 13571
13571 int main() { 13572 int main() {
13572 tgetent() 13573 tgetent()
13573 ; return 0; } 13574 ; return 0; }
13574 EOF 13575 EOF
13575 if { (eval echo configure:13576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13576 if { (eval echo configure:13577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13576 rm -rf conftest* 13577 rm -rf conftest*
13577 eval "ac_cv_lib_$ac_lib_var=yes" 13578 eval "ac_cv_lib_$ac_lib_var=yes"
13578 else 13579 else
13579 echo "configure: failed program was:" >&5 13580 echo "configure: failed program was:" >&5
13580 cat conftest.$ac_ext >&5 13581 cat conftest.$ac_ext >&5
13603 EOF 13604 EOF
13604 } 13605 }
13605 13606
13606 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 13607 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13607 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 13608 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13608 echo "configure:13609: checking for ncurses/curses.h" >&5 13609 echo "configure:13610: checking for ncurses/curses.h" >&5
13609 13610
13610 cat > conftest.$ac_ext <<EOF 13611 cat > conftest.$ac_ext <<EOF
13611 #line 13612 "configure" 13612 #line 13613 "configure"
13612 #include "confdefs.h" 13613 #include "confdefs.h"
13613 #include <ncurses/curses.h> 13614 #include <ncurses/curses.h>
13614 EOF 13615 EOF
13615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13616 { (eval echo configure:13617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13617 { (eval echo configure:13618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13618 if test -z "$ac_err"; then 13619 if test -z "$ac_err"; then
13619 rm -rf conftest* 13620 rm -rf conftest*
13620 eval "ac_cv_header_$ac_safe=yes" 13621 eval "ac_cv_header_$ac_safe=yes"
13621 else 13622 else
13633 echo "$ac_t""no" 1>&6 13634 echo "$ac_t""no" 1>&6
13634 fi 13635 fi
13635 13636
13636 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 13637 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13637 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 13638 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13638 echo "configure:13639: checking for ncurses/term.h" >&5 13639 echo "configure:13640: checking for ncurses/term.h" >&5
13639 13640
13640 cat > conftest.$ac_ext <<EOF 13641 cat > conftest.$ac_ext <<EOF
13641 #line 13642 "configure" 13642 #line 13643 "configure"
13642 #include "confdefs.h" 13643 #include "confdefs.h"
13643 #include <ncurses/term.h> 13644 #include <ncurses/term.h>
13644 EOF 13645 EOF
13645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13646 { (eval echo configure:13647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13647 { (eval echo configure:13648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13648 if test -z "$ac_err"; then 13649 if test -z "$ac_err"; then
13649 rm -rf conftest* 13650 rm -rf conftest*
13650 eval "ac_cv_header_$ac_safe=yes" 13651 eval "ac_cv_header_$ac_safe=yes"
13651 else 13652 else
13671 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 13672 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13672 save_c_switch_site="$c_switch_site" 13673 save_c_switch_site="$c_switch_site"
13673 c_switch_site="$c_switch_site -I/usr/include/ncurses" 13674 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13674 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 13675 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13675 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 13676 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13676 echo "configure:13677: checking for ncurses/curses.h" >&5 13677 echo "configure:13678: checking for ncurses/curses.h" >&5
13677 13678
13678 cat > conftest.$ac_ext <<EOF 13679 cat > conftest.$ac_ext <<EOF
13679 #line 13680 "configure" 13680 #line 13681 "configure"
13680 #include "confdefs.h" 13681 #include "confdefs.h"
13681 #include <ncurses/curses.h> 13682 #include <ncurses/curses.h>
13682 EOF 13683 EOF
13683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13684 { (eval echo configure:13685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13685 { (eval echo configure:13686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13686 if test -z "$ac_err"; then 13687 if test -z "$ac_err"; then
13687 rm -rf conftest* 13688 rm -rf conftest*
13688 eval "ac_cv_header_$ac_safe=yes" 13689 eval "ac_cv_header_$ac_safe=yes"
13689 else 13690 else
13714 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 13715 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13715 else 13716 else
13716 for lib in curses termlib termcap; do 13717 for lib in curses termlib termcap; do
13717 13718
13718 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 13719 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13719 echo "configure:13720: checking for tgetent in -l$lib" >&5 13720 echo "configure:13721: checking for tgetent in -l$lib" >&5
13720 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 13721 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13721 13722
13722 xe_check_libs=" -l$lib " 13723 xe_check_libs=" -l$lib "
13723 cat > conftest.$ac_ext <<EOF 13724 cat > conftest.$ac_ext <<EOF
13724 #line 13725 "configure" 13725 #line 13726 "configure"
13725 #include "confdefs.h" 13726 #include "confdefs.h"
13726 /* Override any gcc2 internal prototype to avoid an error. */ 13727 /* Override any gcc2 internal prototype to avoid an error. */
13727 /* We use char because int might match the return type of a gcc2 13728 /* We use char because int might match the return type of a gcc2
13728 builtin and then its argument prototype would still apply. */ 13729 builtin and then its argument prototype would still apply. */
13729 char tgetent(); 13730 char tgetent();
13730 13731
13731 int main() { 13732 int main() {
13732 tgetent() 13733 tgetent()
13733 ; return 0; } 13734 ; return 0; }
13734 EOF 13735 EOF
13735 if { (eval echo configure:13736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13736 if { (eval echo configure:13737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13736 rm -rf conftest* 13737 rm -rf conftest*
13737 eval "ac_cv_lib_$ac_lib_var=yes" 13738 eval "ac_cv_lib_$ac_lib_var=yes"
13738 else 13739 else
13739 echo "configure: failed program was:" >&5 13740 echo "configure: failed program was:" >&5
13740 cat conftest.$ac_ext >&5 13741 cat conftest.$ac_ext >&5
13761 if test -n "$libs_termcap"; then 13762 if test -n "$libs_termcap"; then
13762 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 13763 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13763 else 13764 else
13764 13765
13765 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 13766 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13766 echo "configure:13767: checking for tgetent in -lcurses" >&5 13767 echo "configure:13768: checking for tgetent in -lcurses" >&5
13767 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 13768 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13768 13769
13769 xe_check_libs=" -lcurses " 13770 xe_check_libs=" -lcurses "
13770 cat > conftest.$ac_ext <<EOF 13771 cat > conftest.$ac_ext <<EOF
13771 #line 13772 "configure" 13772 #line 13773 "configure"
13772 #include "confdefs.h" 13773 #include "confdefs.h"
13773 /* Override any gcc2 internal prototype to avoid an error. */ 13774 /* Override any gcc2 internal prototype to avoid an error. */
13774 /* We use char because int might match the return type of a gcc2 13775 /* We use char because int might match the return type of a gcc2
13775 builtin and then its argument prototype would still apply. */ 13776 builtin and then its argument prototype would still apply. */
13776 char tgetent(); 13777 char tgetent();
13777 13778
13778 int main() { 13779 int main() {
13779 tgetent() 13780 tgetent()
13780 ; return 0; } 13781 ; return 0; }
13781 EOF 13782 EOF
13782 if { (eval echo configure:13783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13783 if { (eval echo configure:13784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13783 rm -rf conftest* 13784 rm -rf conftest*
13784 eval "ac_cv_lib_$ac_lib_var=yes" 13785 eval "ac_cv_lib_$ac_lib_var=yes"
13785 else 13786 else
13786 echo "configure: failed program was:" >&5 13787 echo "configure: failed program was:" >&5
13787 cat conftest.$ac_ext >&5 13788 cat conftest.$ac_ext >&5
13795 echo "$ac_t""yes" 1>&6 13796 echo "$ac_t""yes" 1>&6
13796 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 13797 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13797 else 13798 else
13798 echo "$ac_t""no" 1>&6 13799 echo "$ac_t""no" 1>&6
13799 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 13800 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13800 echo "configure:13801: checking for tgetent in -ltermcap" >&5 13801 echo "configure:13802: checking for tgetent in -ltermcap" >&5
13801 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 13802 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13802 13803
13803 xe_check_libs=" -ltermcap " 13804 xe_check_libs=" -ltermcap "
13804 cat > conftest.$ac_ext <<EOF 13805 cat > conftest.$ac_ext <<EOF
13805 #line 13806 "configure" 13806 #line 13807 "configure"
13806 #include "confdefs.h" 13807 #include "confdefs.h"
13807 /* Override any gcc2 internal prototype to avoid an error. */ 13808 /* Override any gcc2 internal prototype to avoid an error. */
13808 /* We use char because int might match the return type of a gcc2 13809 /* We use char because int might match the return type of a gcc2
13809 builtin and then its argument prototype would still apply. */ 13810 builtin and then its argument prototype would still apply. */
13810 char tgetent(); 13811 char tgetent();
13811 13812
13812 int main() { 13813 int main() {
13813 tgetent() 13814 tgetent()
13814 ; return 0; } 13815 ; return 0; }
13815 EOF 13816 EOF
13816 if { (eval echo configure:13817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13817 if { (eval echo configure:13818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13817 rm -rf conftest* 13818 rm -rf conftest*
13818 eval "ac_cv_lib_$ac_lib_var=yes" 13819 eval "ac_cv_lib_$ac_lib_var=yes"
13819 else 13820 else
13820 echo "configure: failed program was:" >&5 13821 echo "configure: failed program was:" >&5
13821 cat conftest.$ac_ext >&5 13822 cat conftest.$ac_ext >&5
13859 } 13860 }
13860 13861
13861 13862
13862 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 13863 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13863 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 13864 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13864 echo "configure:13865: checking for gpm.h" >&5 13865 echo "configure:13866: checking for gpm.h" >&5
13865 13866
13866 cat > conftest.$ac_ext <<EOF 13867 cat > conftest.$ac_ext <<EOF
13867 #line 13868 "configure" 13868 #line 13869 "configure"
13868 #include "confdefs.h" 13869 #include "confdefs.h"
13869 #include <gpm.h> 13870 #include <gpm.h>
13870 EOF 13871 EOF
13871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13872 { (eval echo configure:13873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13873 { (eval echo configure:13874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13874 if test -z "$ac_err"; then 13875 if test -z "$ac_err"; then
13875 rm -rf conftest* 13876 rm -rf conftest*
13876 eval "ac_cv_header_$ac_safe=yes" 13877 eval "ac_cv_header_$ac_safe=yes"
13877 else 13878 else
13890 with_gpm=no 13891 with_gpm=no
13891 fi 13892 fi
13892 } 13893 }
13893 test -z "$with_gpm" && { 13894 test -z "$with_gpm" && {
13894 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 13895 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13895 echo "configure:13896: checking for Gpm_Open in -lgpm" >&5 13896 echo "configure:13897: checking for Gpm_Open in -lgpm" >&5
13896 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 13897 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13897 13898
13898 xe_check_libs=" -lgpm " 13899 xe_check_libs=" -lgpm "
13899 cat > conftest.$ac_ext <<EOF 13900 cat > conftest.$ac_ext <<EOF
13900 #line 13901 "configure" 13901 #line 13902 "configure"
13901 #include "confdefs.h" 13902 #include "confdefs.h"
13902 /* Override any gcc2 internal prototype to avoid an error. */ 13903 /* Override any gcc2 internal prototype to avoid an error. */
13903 /* We use char because int might match the return type of a gcc2 13904 /* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */ 13905 builtin and then its argument prototype would still apply. */
13905 char Gpm_Open(); 13906 char Gpm_Open();
13906 13907
13907 int main() { 13908 int main() {
13908 Gpm_Open() 13909 Gpm_Open()
13909 ; return 0; } 13910 ; return 0; }
13910 EOF 13911 EOF
13911 if { (eval echo configure:13912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13912 if { (eval echo configure:13913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13912 rm -rf conftest* 13913 rm -rf conftest*
13913 eval "ac_cv_lib_$ac_lib_var=yes" 13914 eval "ac_cv_lib_$ac_lib_var=yes"
13914 else 13915 else
13915 echo "configure: failed program was:" >&5 13916 echo "configure: failed program was:" >&5
13916 cat conftest.$ac_ext >&5 13917 cat conftest.$ac_ext >&5
13956 fi 13957 fi
13957 13958
13958 13959
13959 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 13960 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13960 != "no no no" && echo "checking for database support" 1>&6 13961 != "no no no" && echo "checking for database support" 1>&6
13961 echo "configure:13962: checking for database support" >&5 13962 echo "configure:13963: checking for database support" >&5
13962 13963
13963 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 13964 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13964 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 13965 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13965 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 13966 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13966 echo "configure:13967: checking for ndbm.h" >&5 13967 echo "configure:13968: checking for ndbm.h" >&5
13967 13968
13968 cat > conftest.$ac_ext <<EOF 13969 cat > conftest.$ac_ext <<EOF
13969 #line 13970 "configure" 13970 #line 13971 "configure"
13970 #include "confdefs.h" 13971 #include "confdefs.h"
13971 #include <ndbm.h> 13972 #include <ndbm.h>
13972 EOF 13973 EOF
13973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13974 { (eval echo configure:13975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13975 { (eval echo configure:13976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13976 if test -z "$ac_err"; then 13977 if test -z "$ac_err"; then
13977 rm -rf conftest* 13978 rm -rf conftest*
13978 eval "ac_cv_header_$ac_safe=yes" 13979 eval "ac_cv_header_$ac_safe=yes"
13979 else 13980 else
13999 fi 14000 fi
14000 14001
14001 if test "$with_database_gdbm" != "no"; then 14002 if test "$with_database_gdbm" != "no"; then
14002 14003
14003 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 14004 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
14004 echo "configure:14005: checking for dbm_open in -lgdbm" >&5 14005 echo "configure:14006: checking for dbm_open in -lgdbm" >&5
14005 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 14006 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
14006 14007
14007 xe_check_libs=" -lgdbm " 14008 xe_check_libs=" -lgdbm "
14008 cat > conftest.$ac_ext <<EOF 14009 cat > conftest.$ac_ext <<EOF
14009 #line 14010 "configure" 14010 #line 14011 "configure"
14010 #include "confdefs.h" 14011 #include "confdefs.h"
14011 /* Override any gcc2 internal prototype to avoid an error. */ 14012 /* Override any gcc2 internal prototype to avoid an error. */
14012 /* We use char because int might match the return type of a gcc2 14013 /* We use char because int might match the return type of a gcc2
14013 builtin and then its argument prototype would still apply. */ 14014 builtin and then its argument prototype would still apply. */
14014 char dbm_open(); 14015 char dbm_open();
14015 14016
14016 int main() { 14017 int main() {
14017 dbm_open() 14018 dbm_open()
14018 ; return 0; } 14019 ; return 0; }
14019 EOF 14020 EOF
14020 if { (eval echo configure:14021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14021 if { (eval echo configure:14022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14021 rm -rf conftest* 14022 rm -rf conftest*
14022 eval "ac_cv_lib_$ac_lib_var=yes" 14023 eval "ac_cv_lib_$ac_lib_var=yes"
14023 else 14024 else
14024 echo "configure: failed program was:" >&5 14025 echo "configure: failed program was:" >&5
14025 cat conftest.$ac_ext >&5 14026 cat conftest.$ac_ext >&5
14043 14044
14044 fi 14045 fi
14045 14046
14046 if test "$with_database_dbm" != "no"; then 14047 if test "$with_database_dbm" != "no"; then
14047 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 14048 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14048 echo "configure:14049: checking for dbm_open" >&5 14049 echo "configure:14050: checking for dbm_open" >&5
14049 14050
14050 cat > conftest.$ac_ext <<EOF 14051 cat > conftest.$ac_ext <<EOF
14051 #line 14052 "configure" 14052 #line 14053 "configure"
14052 #include "confdefs.h" 14053 #include "confdefs.h"
14053 /* System header to define __stub macros and hopefully few prototypes, 14054 /* System header to define __stub macros and hopefully few prototypes,
14054 which can conflict with char dbm_open(); below. */ 14055 which can conflict with char dbm_open(); below. */
14055 #include <assert.h> 14056 #include <assert.h>
14056 /* Override any gcc2 internal prototype to avoid an error. */ 14057 /* Override any gcc2 internal prototype to avoid an error. */
14069 dbm_open(); 14070 dbm_open();
14070 #endif 14071 #endif
14071 14072
14072 ; return 0; } 14073 ; return 0; }
14073 EOF 14074 EOF
14074 if { (eval echo configure:14075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14075 if { (eval echo configure:14076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14075 rm -rf conftest* 14076 rm -rf conftest*
14076 eval "ac_cv_func_dbm_open=yes" 14077 eval "ac_cv_func_dbm_open=yes"
14077 else 14078 else
14078 echo "configure: failed program was:" >&5 14079 echo "configure: failed program was:" >&5
14079 cat conftest.$ac_ext >&5 14080 cat conftest.$ac_ext >&5
14088 else 14089 else
14089 echo "$ac_t""no" 1>&6 14090 echo "$ac_t""no" 1>&6
14090 14091
14091 14092
14092 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 14093 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14093 echo "configure:14094: checking for dbm_open in -ldbm" >&5 14094 echo "configure:14095: checking for dbm_open in -ldbm" >&5
14094 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 14095 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14095 14096
14096 xe_check_libs=" -ldbm " 14097 xe_check_libs=" -ldbm "
14097 cat > conftest.$ac_ext <<EOF 14098 cat > conftest.$ac_ext <<EOF
14098 #line 14099 "configure" 14099 #line 14100 "configure"
14099 #include "confdefs.h" 14100 #include "confdefs.h"
14100 /* Override any gcc2 internal prototype to avoid an error. */ 14101 /* Override any gcc2 internal prototype to avoid an error. */
14101 /* We use char because int might match the return type of a gcc2 14102 /* We use char because int might match the return type of a gcc2
14102 builtin and then its argument prototype would still apply. */ 14103 builtin and then its argument prototype would still apply. */
14103 char dbm_open(); 14104 char dbm_open();
14104 14105
14105 int main() { 14106 int main() {
14106 dbm_open() 14107 dbm_open()
14107 ; return 0; } 14108 ; return 0; }
14108 EOF 14109 EOF
14109 if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14110 if { (eval echo configure:14111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14110 rm -rf conftest* 14111 rm -rf conftest*
14111 eval "ac_cv_lib_$ac_lib_var=yes" 14112 eval "ac_cv_lib_$ac_lib_var=yes"
14112 else 14113 else
14113 echo "configure: failed program was:" >&5 14114 echo "configure: failed program was:" >&5
14114 cat conftest.$ac_ext >&5 14115 cat conftest.$ac_ext >&5
14145 } 14146 }
14146 14147
14147 14148
14148 if test "$with_database_berkdb" != "no"; then 14149 if test "$with_database_berkdb" != "no"; then
14149 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 14150 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14150 echo "configure:14151: checking for Berkeley db.h" >&5 14151 echo "configure:14152: checking for Berkeley db.h" >&5
14151 for header in "db/db.h" "db.h"; do 14152 for header in "db/db.h" "db.h"; do
14152 cat > conftest.$ac_ext <<EOF 14153 cat > conftest.$ac_ext <<EOF
14153 #line 14154 "configure" 14154 #line 14155 "configure"
14154 #include "confdefs.h" 14155 #include "confdefs.h"
14155 14156
14156 #include <stdlib.h> 14157 #include <stdlib.h>
14157 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 14158 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14158 #ifdef HAVE_INTTYPES_H 14159 #ifdef HAVE_INTTYPES_H
14170 14171
14171 int main() { 14172 int main() {
14172 14173
14173 ; return 0; } 14174 ; return 0; }
14174 EOF 14175 EOF
14175 if { (eval echo configure:14176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14176 if { (eval echo configure:14177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14176 rm -rf conftest* 14177 rm -rf conftest*
14177 db_h_file="$header"; break 14178 db_h_file="$header"; break
14178 else 14179 else
14179 echo "configure: failed program was:" >&5 14180 echo "configure: failed program was:" >&5
14180 cat conftest.$ac_ext >&5 14181 cat conftest.$ac_ext >&5
14186 else echo "$ac_t""$db_h_file" 1>&6 14187 else echo "$ac_t""$db_h_file" 1>&6
14187 fi 14188 fi
14188 14189
14189 if test "$with_database_berkdb" != "no"; then 14190 if test "$with_database_berkdb" != "no"; then
14190 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 14191 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14191 echo "configure:14192: checking for Berkeley DB version" >&5 14192 echo "configure:14193: checking for Berkeley DB version" >&5
14192 cat > conftest.$ac_ext <<EOF 14193 cat > conftest.$ac_ext <<EOF
14193 #line 14194 "configure" 14194 #line 14195 "configure"
14194 #include "confdefs.h" 14195 #include "confdefs.h"
14195 #include <$db_h_file> 14196 #include <$db_h_file>
14196 #if DB_VERSION_MAJOR > 1 14197 #if DB_VERSION_MAJOR > 1
14197 yes 14198 yes
14198 #endif 14199 #endif
14200 EOF 14201 EOF
14201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14202 egrep "yes" >/dev/null 2>&1; then 14203 egrep "yes" >/dev/null 2>&1; then
14203 rm -rf conftest* 14204 rm -rf conftest*
14204 cat > conftest.$ac_ext <<EOF 14205 cat > conftest.$ac_ext <<EOF
14205 #line 14206 "configure" 14206 #line 14207 "configure"
14206 #include "confdefs.h" 14207 #include "confdefs.h"
14207 #include <$db_h_file> 14208 #include <$db_h_file>
14208 #if DB_VERSION_MAJOR > 2 14209 #if DB_VERSION_MAJOR > 2
14209 yes 14210 yes
14210 #endif 14211 #endif
14227 echo "$ac_t""1" 1>&6; dbfunc=dbopen 14228 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14228 fi 14229 fi
14229 rm -f conftest* 14230 rm -f conftest*
14230 14231
14231 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 14232 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14232 echo "configure:14233: checking for $dbfunc" >&5 14233 echo "configure:14234: checking for $dbfunc" >&5
14233 14234
14234 cat > conftest.$ac_ext <<EOF 14235 cat > conftest.$ac_ext <<EOF
14235 #line 14236 "configure" 14236 #line 14237 "configure"
14236 #include "confdefs.h" 14237 #include "confdefs.h"
14237 /* System header to define __stub macros and hopefully few prototypes, 14238 /* System header to define __stub macros and hopefully few prototypes,
14238 which can conflict with char $dbfunc(); below. */ 14239 which can conflict with char $dbfunc(); below. */
14239 #include <assert.h> 14240 #include <assert.h>
14240 /* Override any gcc2 internal prototype to avoid an error. */ 14241 /* Override any gcc2 internal prototype to avoid an error. */
14253 $dbfunc(); 14254 $dbfunc();
14254 #endif 14255 #endif
14255 14256
14256 ; return 0; } 14257 ; return 0; }
14257 EOF 14258 EOF
14258 if { (eval echo configure:14259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14259 if { (eval echo configure:14260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14259 rm -rf conftest* 14260 rm -rf conftest*
14260 eval "ac_cv_func_$dbfunc=yes" 14261 eval "ac_cv_func_$dbfunc=yes"
14261 else 14262 else
14262 echo "configure: failed program was:" >&5 14263 echo "configure: failed program was:" >&5
14263 cat conftest.$ac_ext >&5 14264 cat conftest.$ac_ext >&5
14272 else 14273 else
14273 echo "$ac_t""no" 1>&6 14274 echo "$ac_t""no" 1>&6
14274 14275
14275 14276
14276 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 14277 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14277 echo "configure:14278: checking for $dbfunc in -ldb" >&5 14278 echo "configure:14279: checking for $dbfunc in -ldb" >&5
14278 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 14279 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14279 14280
14280 xe_check_libs=" -ldb " 14281 xe_check_libs=" -ldb "
14281 cat > conftest.$ac_ext <<EOF 14282 cat > conftest.$ac_ext <<EOF
14282 #line 14283 "configure" 14283 #line 14284 "configure"
14283 #include "confdefs.h" 14284 #include "confdefs.h"
14284 /* Override any gcc2 internal prototype to avoid an error. */ 14285 /* Override any gcc2 internal prototype to avoid an error. */
14285 /* We use char because int might match the return type of a gcc2 14286 /* We use char because int might match the return type of a gcc2
14286 builtin and then its argument prototype would still apply. */ 14287 builtin and then its argument prototype would still apply. */
14287 char $dbfunc(); 14288 char $dbfunc();
14288 14289
14289 int main() { 14290 int main() {
14290 $dbfunc() 14291 $dbfunc()
14291 ; return 0; } 14292 ; return 0; }
14292 EOF 14293 EOF
14293 if { (eval echo configure:14294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14294 if { (eval echo configure:14295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14294 rm -rf conftest* 14295 rm -rf conftest*
14295 eval "ac_cv_lib_$ac_lib_var=yes" 14296 eval "ac_cv_lib_$ac_lib_var=yes"
14296 else 14297 else
14297 echo "configure: failed program was:" >&5 14298 echo "configure: failed program was:" >&5
14298 cat conftest.$ac_ext >&5 14299 cat conftest.$ac_ext >&5
14352 fi 14353 fi
14353 14354
14354 if test "$with_socks" = "yes"; then 14355 if test "$with_socks" = "yes"; then
14355 14356
14356 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 14357 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14357 echo "configure:14358: checking for SOCKSinit in -lsocks" >&5 14358 echo "configure:14359: checking for SOCKSinit in -lsocks" >&5
14358 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 14359 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14359 14360
14360 xe_check_libs=" -lsocks " 14361 xe_check_libs=" -lsocks "
14361 cat > conftest.$ac_ext <<EOF 14362 cat > conftest.$ac_ext <<EOF
14362 #line 14363 "configure" 14363 #line 14364 "configure"
14363 #include "confdefs.h" 14364 #include "confdefs.h"
14364 /* Override any gcc2 internal prototype to avoid an error. */ 14365 /* Override any gcc2 internal prototype to avoid an error. */
14365 /* We use char because int might match the return type of a gcc2 14366 /* We use char because int might match the return type of a gcc2
14366 builtin and then its argument prototype would still apply. */ 14367 builtin and then its argument prototype would still apply. */
14367 char SOCKSinit(); 14368 char SOCKSinit();
14368 14369
14369 int main() { 14370 int main() {
14370 SOCKSinit() 14371 SOCKSinit()
14371 ; return 0; } 14372 ; return 0; }
14372 EOF 14373 EOF
14373 if { (eval echo configure:14374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14374 if { (eval echo configure:14375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14374 rm -rf conftest* 14375 rm -rf conftest*
14375 eval "ac_cv_lib_$ac_lib_var=yes" 14376 eval "ac_cv_lib_$ac_lib_var=yes"
14376 else 14377 else
14377 echo "configure: failed program was:" >&5 14378 echo "configure: failed program was:" >&5
14378 cat conftest.$ac_ext >&5 14379 cat conftest.$ac_ext >&5
14423 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 14424 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14424 fi 14425 fi
14425 14426
14426 if test "$with_modules" != "no"; then 14427 if test "$with_modules" != "no"; then
14427 echo "checking for module support" 1>&6 14428 echo "checking for module support" 1>&6
14428 echo "configure:14429: checking for module support" >&5 14429 echo "configure:14430: checking for module support" >&5
14429 14430
14430 if test "$with_msw" = "yes"; then 14431 if test "$with_msw" = "yes"; then
14431 have_dl=yes; 14432 have_dl=yes;
14432 else 14433 else
14433 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 14434 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14434 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 14435 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14435 echo "configure:14436: checking for dlfcn.h" >&5 14436 echo "configure:14437: checking for dlfcn.h" >&5
14436 14437
14437 cat > conftest.$ac_ext <<EOF 14438 cat > conftest.$ac_ext <<EOF
14438 #line 14439 "configure" 14439 #line 14440 "configure"
14439 #include "confdefs.h" 14440 #include "confdefs.h"
14440 #include <dlfcn.h> 14441 #include <dlfcn.h>
14441 EOF 14442 EOF
14442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14443 { (eval echo configure:14444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14444 { (eval echo configure:14445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14445 if test -z "$ac_err"; then 14446 if test -z "$ac_err"; then
14446 rm -rf conftest* 14447 rm -rf conftest*
14447 eval "ac_cv_header_$ac_safe=yes" 14448 eval "ac_cv_header_$ac_safe=yes"
14448 else 14449 else
14455 rm -f conftest* 14456 rm -f conftest*
14456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14457 echo "$ac_t""yes" 1>&6 14458 echo "$ac_t""yes" 1>&6
14458 14459
14459 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 14460 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14460 echo "configure:14461: checking for dlopen in -lc" >&5 14461 echo "configure:14462: checking for dlopen in -lc" >&5
14461 cat > conftest.$ac_ext <<EOF 14462 cat > conftest.$ac_ext <<EOF
14462 #line 14463 "configure" 14463 #line 14464 "configure"
14463 #include "confdefs.h" 14464 #include "confdefs.h"
14464 #include <dlfcn.h> 14465 #include <dlfcn.h>
14465 int main() { 14466 int main() {
14466 dlopen ("", 0); 14467 dlopen ("", 0);
14467 ; return 0; } 14468 ; return 0; }
14468 EOF 14469 EOF
14469 if { (eval echo configure:14470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14470 if { (eval echo configure:14471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14470 rm -rf conftest* 14471 rm -rf conftest*
14471 have_dl=yes 14472 have_dl=yes
14472 else 14473 else
14473 echo "configure: failed program was:" >&5 14474 echo "configure: failed program was:" >&5
14474 cat conftest.$ac_ext >&5 14475 cat conftest.$ac_ext >&5
14475 rm -rf conftest* 14476 rm -rf conftest*
14476 14477
14477 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 14478 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14478 echo "configure:14479: checking for dlopen in -ldl" >&5 14479 echo "configure:14480: checking for dlopen in -ldl" >&5
14479 ac_save_LIBS="$LIBS" 14480 ac_save_LIBS="$LIBS"
14480 LIBS="-ldl $LIBS" 14481 LIBS="-ldl $LIBS"
14481 cat > conftest.$ac_ext <<EOF 14482 cat > conftest.$ac_ext <<EOF
14482 #line 14483 "configure" 14483 #line 14484 "configure"
14483 #include "confdefs.h" 14484 #include "confdefs.h"
14484 #include <dlfcn.h> 14485 #include <dlfcn.h>
14485 int main() { 14486 int main() {
14486 dlopen ("", 0); 14487 dlopen ("", 0);
14487 ; return 0; } 14488 ; return 0; }
14488 EOF 14489 EOF
14489 if { (eval echo configure:14490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14490 if { (eval echo configure:14491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14490 rm -rf conftest* 14491 rm -rf conftest*
14491 have_dl=yes 14492 have_dl=yes
14492 else 14493 else
14493 echo "configure: failed program was:" >&5 14494 echo "configure: failed program was:" >&5
14494 cat conftest.$ac_ext >&5 14495 cat conftest.$ac_ext >&5
14513 } 14514 }
14514 14515
14515 else 14516 else
14516 14517
14517 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 14518 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14518 echo "configure:14519: checking for shl_load in -ldld" >&5 14519 echo "configure:14520: checking for shl_load in -ldld" >&5
14519 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 14520 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14520 14521
14521 xe_check_libs=" -ldld " 14522 xe_check_libs=" -ldld "
14522 cat > conftest.$ac_ext <<EOF 14523 cat > conftest.$ac_ext <<EOF
14523 #line 14524 "configure" 14524 #line 14525 "configure"
14524 #include "confdefs.h" 14525 #include "confdefs.h"
14525 /* Override any gcc2 internal prototype to avoid an error. */ 14526 /* Override any gcc2 internal prototype to avoid an error. */
14526 /* We use char because int might match the return type of a gcc2 14527 /* We use char because int might match the return type of a gcc2
14527 builtin and then its argument prototype would still apply. */ 14528 builtin and then its argument prototype would still apply. */
14528 char shl_load(); 14529 char shl_load();
14529 14530
14530 int main() { 14531 int main() {
14531 shl_load() 14532 shl_load()
14532 ; return 0; } 14533 ; return 0; }
14533 EOF 14534 EOF
14534 if { (eval echo configure:14535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14535 if { (eval echo configure:14536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14535 rm -rf conftest* 14536 rm -rf conftest*
14536 eval "ac_cv_lib_$ac_lib_var=yes" 14537 eval "ac_cv_lib_$ac_lib_var=yes"
14537 else 14538 else
14538 echo "configure: failed program was:" >&5 14539 echo "configure: failed program was:" >&5
14539 cat conftest.$ac_ext >&5 14540 cat conftest.$ac_ext >&5
14556 14557
14557 else 14558 else
14558 echo "$ac_t""no" 1>&6 14559 echo "$ac_t""no" 1>&6
14559 14560
14560 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 14561 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14561 echo "configure:14562: checking for dld_init in -ldld" >&5 14562 echo "configure:14563: checking for dld_init in -ldld" >&5
14562 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 14563 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14563 14564
14564 xe_check_libs=" -ldld " 14565 xe_check_libs=" -ldld "
14565 cat > conftest.$ac_ext <<EOF 14566 cat > conftest.$ac_ext <<EOF
14566 #line 14567 "configure" 14567 #line 14568 "configure"
14567 #include "confdefs.h" 14568 #include "confdefs.h"
14568 /* Override any gcc2 internal prototype to avoid an error. */ 14569 /* Override any gcc2 internal prototype to avoid an error. */
14569 /* We use char because int might match the return type of a gcc2 14570 /* We use char because int might match the return type of a gcc2
14570 builtin and then its argument prototype would still apply. */ 14571 builtin and then its argument prototype would still apply. */
14571 char dld_init(); 14572 char dld_init();
14572 14573
14573 int main() { 14574 int main() {
14574 dld_init() 14575 dld_init()
14575 ; return 0; } 14576 ; return 0; }
14576 EOF 14577 EOF
14577 if { (eval echo configure:14578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14578 if { (eval echo configure:14579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14578 rm -rf conftest* 14579 rm -rf conftest*
14579 eval "ac_cv_lib_$ac_lib_var=yes" 14580 eval "ac_cv_lib_$ac_lib_var=yes"
14580 else 14581 else
14581 echo "configure: failed program was:" >&5 14582 echo "configure: failed program was:" >&5
14582 cat conftest.$ac_ext >&5 14583 cat conftest.$ac_ext >&5
14617 ld_dynamic_link_flags= 14618 ld_dynamic_link_flags=
14618 xehost=$canonical 14619 xehost=$canonical
14619 xealias=$internal_configuration 14620 xealias=$internal_configuration
14620 14621
14621 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 14622 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14622 echo "configure:14623: checking how to build dynamic libraries for ${xehost}" >&5 14623 echo "configure:14624: checking how to build dynamic libraries for ${xehost}" >&5
14623 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 14624 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14624 case "$xehost" in 14625 case "$xehost" in
14625 *-*-linux-gnu*) ;; 14626 *-*-linux-gnu*) ;;
14626 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 14627 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14627 esac 14628 esac
14645 # Now see if the compiler is really GCC. 14646 # Now see if the compiler is really GCC.
14646 if test "$GCC" = "yes"; then 14647 if test "$GCC" = "yes"; then
14647 XEGCC=yes 14648 XEGCC=yes
14648 else 14649 else
14649 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 14650 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14650 echo "configure:14651: checking checking whether we are using GNU C" >&5 14651 echo "configure:14652: checking checking whether we are using GNU C" >&5
14651 cat > conftest.$ac_ext <<EOF 14652 cat > conftest.$ac_ext <<EOF
14652 #line 14653 "configure" 14653 #line 14654 "configure"
14653 #include "confdefs.h" 14654 #include "confdefs.h"
14654 14655
14655 #ifdef __GNUC__ 14656 #ifdef __GNUC__
14656 yes; 14657 yes;
14657 #endif 14658 #endif
14669 14670
14670 echo "$ac_t""${XEGCC}" 1>&6 14671 echo "$ac_t""${XEGCC}" 1>&6
14671 fi 14672 fi
14672 14673
14673 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 14674 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14674 echo "configure:14675: checking how to produce PIC code" >&5 14675 echo "configure:14676: checking how to produce PIC code" >&5
14675 wl= 14676 wl=
14676 14677
14677 can_build_shared=yes 14678 can_build_shared=yes
14678 if test "$XEGCC" = yes; then 14679 if test "$XEGCC" = yes; then
14679 wl='-Wl,' 14680 wl='-Wl,'
14770 if test -n "$dll_cflags"; then 14771 if test -n "$dll_cflags"; then
14771 echo "$ac_t""${dll_cflags}" 1>&6 14772 echo "$ac_t""${dll_cflags}" 1>&6
14772 14773
14773 # Check to make sure the dll_cflags actually works. 14774 # Check to make sure the dll_cflags actually works.
14774 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 14775 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14775 echo "configure:14776: checking if PIC flag ${dll_cflags} really works" >&5 14776 echo "configure:14777: checking if PIC flag ${dll_cflags} really works" >&5
14776 save_CFLAGS="$CFLAGS" 14777 save_CFLAGS="$CFLAGS"
14777 CFLAGS="$CFLAGS $dll_cflags -DPIC" 14778 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14778 cat > conftest.$ac_ext <<EOF 14779 cat > conftest.$ac_ext <<EOF
14779 #line 14780 "configure" 14780 #line 14781 "configure"
14780 #include "confdefs.h" 14781 #include "confdefs.h"
14781 14782
14782 int main() { 14783 int main() {
14783 int x=0; 14784 int x=0;
14784 ; return 0; } 14785 ; return 0; }
14785 EOF 14786 EOF
14786 if { (eval echo configure:14787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14787 if { (eval echo configure:14788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14787 rm -rf conftest* 14788 rm -rf conftest*
14788 14789
14789 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 14790 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14790 # reports no error. So, we need to grep stderr for (Bundled). 14791 # reports no error. So, we need to grep stderr for (Bundled).
14791 if grep '(Bundled)' config.log >/dev/null; then 14792 if grep '(Bundled)' config.log >/dev/null; then
14812 if test "$can_build_shared" = "yes"; then 14813 if test "$can_build_shared" = "yes"; then
14813 cc_produces_so=no 14814 cc_produces_so=no
14814 xldf= 14815 xldf=
14815 xcldf= 14816 xcldf=
14816 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 14817 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14817 echo "configure:14818: checking if C compiler can produce shared libraries" >&5 14818 echo "configure:14819: checking if C compiler can produce shared libraries" >&5
14818 if test "$XEGCC" = yes; then 14819 if test "$XEGCC" = yes; then
14819 xcldf="-shared" 14820 xcldf="-shared"
14820 xldf="-shared" 14821 xldf="-shared"
14821 else # Not using GCC 14822 else # Not using GCC
14822 case "$xehost_os" in 14823 case "$xehost_os" in
14863 LDFLAGS="$xcldf $LDFLAGS" 14864 LDFLAGS="$xcldf $LDFLAGS"
14864 LIBS= 14865 LIBS=
14865 xe_libs= 14866 xe_libs=
14866 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 14867 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14867 cat > conftest.$ac_ext <<EOF 14868 cat > conftest.$ac_ext <<EOF
14868 #line 14869 "configure" 14869 #line 14870 "configure"
14869 #include "confdefs.h" 14870 #include "confdefs.h"
14870 14871
14871 int main() { 14872 int main() {
14872 int x=0; 14873 int x=0;
14873 ; return 0; } 14874 ; return 0; }
14874 EOF 14875 EOF
14875 if { (eval echo configure:14876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14876 if { (eval echo configure:14877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14876 rm -rf conftest* 14877 rm -rf conftest*
14877 cc_produces_so=yes 14878 cc_produces_so=yes
14878 else 14879 else
14879 echo "configure: failed program was:" >&5 14880 echo "configure: failed program was:" >&5
14880 cat conftest.$ac_ext >&5 14881 cat conftest.$ac_ext >&5
14895 if test -z "$LTLD"; then 14896 if test -z "$LTLD"; then
14896 ac_prog=ld 14897 ac_prog=ld
14897 if test "$XEGCC" = yes; then 14898 if test "$XEGCC" = yes; then
14898 # Check if gcc -print-prog-name=ld gives a path. 14899 # Check if gcc -print-prog-name=ld gives a path.
14899 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 14900 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14900 echo "configure:14901: checking for ld used by GCC" >&5 14901 echo "configure:14902: checking for ld used by GCC" >&5
14901 ac_prog=`($CC -print-prog-name=ld) 2>&5` 14902 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14902 case "$ac_prog" in 14903 case "$ac_prog" in
14903 # Accept absolute paths. 14904 # Accept absolute paths.
14904 /*) 14905 /*)
14905 if test -z "$LTLD"; then 14906 if test -z "$LTLD"; then
14921 with_gnu_ld=unknown 14922 with_gnu_ld=unknown
14922 ;; 14923 ;;
14923 esac 14924 esac
14924 else 14925 else
14925 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 14926 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14926 echo "configure:14927: checking for GNU ld" >&5 14927 echo "configure:14928: checking for GNU ld" >&5
14927 fi 14928 fi
14928 14929
14929 if test -z "$LTLD"; then 14930 if test -z "$LTLD"; then
14930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 14931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14931 for ac_dir in $PATH; do 14932 for ac_dir in $PATH; do
14959 14960
14960 ld_dynamic_link_flags= 14961 ld_dynamic_link_flags=
14961 14962
14962 # Check to see if it really is or isn't GNU ld. 14963 # Check to see if it really is or isn't GNU ld.
14963 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 14964 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14964 echo "configure:14965: checking if the linker is GNU ld" >&5 14965 echo "configure:14966: checking if the linker is GNU ld" >&5
14965 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 14966 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14966 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 14967 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14967 xe_gnu_ld=yes 14968 xe_gnu_ld=yes
14968 else 14969 else
14969 xe_gnu_ld=no 14970 xe_gnu_ld=no
14987 ld_shlibs=yes 14988 ld_shlibs=yes
14988 else 14989 else
14989 # OK - only NOW do we futz about with ld. 14990 # OK - only NOW do we futz about with ld.
14990 # See if the linker supports building shared libraries. 14991 # See if the linker supports building shared libraries.
14991 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 14992 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14992 echo "configure:14993: checking whether the linker supports shared libraries" >&5 14993 echo "configure:14994: checking whether the linker supports shared libraries" >&5
14993 dll_ld=$CC 14994 dll_ld=$CC
14994 dll_ldflags=$LDFLAGS 14995 dll_ldflags=$LDFLAGS
14995 ld_shlibs=yes 14996 ld_shlibs=yes
14996 can_build_shared=yes 14997 can_build_shared=yes
14997 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 14998 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
15198 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 15199 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15199 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 15200 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15200 for ac_func in dlerror _dlerror 15201 for ac_func in dlerror _dlerror
15201 do 15202 do
15202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15203 echo "configure:15204: checking for $ac_func" >&5 15204 echo "configure:15205: checking for $ac_func" >&5
15204 15205
15205 cat > conftest.$ac_ext <<EOF 15206 cat > conftest.$ac_ext <<EOF
15206 #line 15207 "configure" 15207 #line 15208 "configure"
15207 #include "confdefs.h" 15208 #include "confdefs.h"
15208 /* System header to define __stub macros and hopefully few prototypes, 15209 /* System header to define __stub macros and hopefully few prototypes,
15209 which can conflict with char $ac_func(); below. */ 15210 which can conflict with char $ac_func(); below. */
15210 #include <assert.h> 15211 #include <assert.h>
15211 /* Override any gcc2 internal prototype to avoid an error. */ 15212 /* Override any gcc2 internal prototype to avoid an error. */
15224 $ac_func(); 15225 $ac_func();
15225 #endif 15226 #endif
15226 15227
15227 ; return 0; } 15228 ; return 0; }
15228 EOF 15229 EOF
15229 if { (eval echo configure:15230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15230 if { (eval echo configure:15231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15230 rm -rf conftest* 15231 rm -rf conftest*
15231 eval "ac_cv_func_$ac_func=yes" 15232 eval "ac_cv_func_$ac_func=yes"
15232 else 15233 else
15233 echo "configure: failed program was:" >&5 15234 echo "configure: failed program was:" >&5
15234 cat conftest.$ac_ext >&5 15235 cat conftest.$ac_ext >&5
15263 with_modules=no 15264 with_modules=no
15264 fi 15265 fi
15265 fi 15266 fi
15266 15267
15267 cat > conftest.$ac_ext <<EOF 15268 cat > conftest.$ac_ext <<EOF
15268 #line 15269 "configure" 15269 #line 15270 "configure"
15269 #include "confdefs.h" 15270 #include "confdefs.h"
15270 int main(int c,char *v[]){return 0;} 15271 int main(int c,char *v[]){return 0;}
15271 EOF 15272 EOF
15272 if { (eval echo configure:15273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 15273 if { (eval echo configure:15274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15273 then 15274 then
15274 : 15275 :
15275 else 15276 else
15276 conftest_rc="$?" 15277 conftest_rc="$?"
15277 echo "configure: failed program was:" >&5 15278 echo "configure: failed program was:" >&5