comparison configure @ 1464:b02bdcffb55f

[xemacs-hg @ 2003-05-08 16:06:15 by stephent] default ESD off redux <87smrpjugr.fsf_-_@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Thu, 08 May 2003 16:06:18 +0000
parents c5da5c66fea7
children 1364f9716d7b
comparison
equal deleted inserted replaced
1463:f511a1963107 1464:b02bdcffb55f
254 with_x11='' 254 with_x11=''
255 with_msw='' 255 with_msw=''
256 rel_alloc='default' 256 rel_alloc='default'
257 with_system_malloc='default' 257 with_system_malloc='default'
258 with_dlmalloc='default' 258 with_dlmalloc='default'
259 with_native_sound=''
260 with_nas_sound=''
261 with_esd_sound='no'
259 native_sound_lib='' 262 native_sound_lib=''
260 with_gtk='no' 263 with_gtk='no'
261 with_gnome='no' 264 with_gnome='no'
262 use_assertions="yes" 265 use_assertions="yes"
263 with_toolbars="" 266 with_toolbars=""
863 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 866 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
864 fi 867 fi
865 fi 868 fi
866 869
867 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 870 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
868 echo "configure:869: checking whether ln -s works" >&5 871 echo "configure:872: checking whether ln -s works" >&5
869 872
870 rm -f conftestdata 873 rm -f conftestdata
871 if ln -s X conftestdata 2>/dev/null 874 if ln -s X conftestdata 2>/dev/null
872 then 875 then
873 rm -f conftestdata 876 rm -f conftestdata
1149 } 1152 }
1150 1153
1151 1154
1152 1155
1153 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 1156 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1154 echo "configure:1155: checking "host system type"" >&5 1157 echo "configure:1158: checking "host system type"" >&5
1155 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1158 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1156 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 1159 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1157 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1160 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1158 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1161 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1159 echo "$ac_t""$configuration" 1>&6 1162 echo "$ac_t""$configuration" 1>&6
1682 xe_save_CFLAGS="$CFLAGS" 1685 xe_save_CFLAGS="$CFLAGS"
1683 1686
1684 # Extract the first word of "gcc", so it can be a program name with args. 1687 # Extract the first word of "gcc", so it can be a program name with args.
1685 set dummy gcc; ac_word=$2 1688 set dummy gcc; ac_word=$2
1686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_word" >&5 1690 echo "configure:1691: checking for $ac_word" >&5
1688 1691
1689 if test -n "$CC"; then 1692 if test -n "$CC"; then
1690 ac_cv_prog_CC="$CC" # Let the user override the test. 1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1691 else 1694 else
1692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1709 1712
1710 if test -z "$CC"; then 1713 if test -z "$CC"; then
1711 # Extract the first word of "cc", so it can be a program name with args. 1714 # Extract the first word of "cc", so it can be a program name with args.
1712 set dummy cc; ac_word=$2 1715 set dummy cc; ac_word=$2
1713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1714 echo "configure:1715: checking for $ac_word" >&5 1717 echo "configure:1718: checking for $ac_word" >&5
1715 1718
1716 if test -n "$CC"; then 1719 if test -n "$CC"; then
1717 ac_cv_prog_CC="$CC" # Let the user override the test. 1720 ac_cv_prog_CC="$CC" # Let the user override the test.
1718 else 1721 else
1719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1757 case "`uname -s`" in 1760 case "`uname -s`" in
1758 *win32* | *WIN32*) 1761 *win32* | *WIN32*)
1759 # Extract the first word of "cl", so it can be a program name with args. 1762 # Extract the first word of "cl", so it can be a program name with args.
1760 set dummy cl; ac_word=$2 1763 set dummy cl; ac_word=$2
1761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1762 echo "configure:1763: checking for $ac_word" >&5 1765 echo "configure:1766: checking for $ac_word" >&5
1763 1766
1764 if test -n "$CC"; then 1767 if test -n "$CC"; then
1765 ac_cv_prog_CC="$CC" # Let the user override the test. 1768 ac_cv_prog_CC="$CC" # Let the user override the test.
1766 else 1769 else
1767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1786 fi 1789 fi
1787 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1790 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1788 fi 1791 fi
1789 1792
1790 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1793 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1791 echo "configure:1792: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1794 echo "configure:1795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1792 1795
1793 ac_ext=c 1796 ac_ext=c
1794 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1797 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1795 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1798 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1796 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' 1799 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'
1799 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1802 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1800 cross_compiling=no 1803 cross_compiling=no
1801 1804
1802 cat > conftest.$ac_ext << EOF 1805 cat > conftest.$ac_ext << EOF
1803 1806
1804 #line 1805 "configure" 1807 #line 1808 "configure"
1805 #include "confdefs.h" 1808 #include "confdefs.h"
1806 1809
1807 main(){return(0);} 1810 main(){return(0);}
1808 EOF 1811 EOF
1809 if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1812 if { (eval echo configure:1813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1810 ac_cv_prog_cc_works=yes 1813 ac_cv_prog_cc_works=yes
1811 # If we can't run a trivial program, we are probably using a cross compiler. 1814 # If we can't run a trivial program, we are probably using a cross compiler.
1812 if (./conftest; exit) 2>/dev/null; then 1815 if (./conftest; exit) 2>/dev/null; then
1813 ac_cv_prog_cc_cross=no 1816 ac_cv_prog_cc_cross=no
1814 else 1817 else
1832 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1835 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1833 if test $ac_cv_prog_cc_works = no; then 1836 if test $ac_cv_prog_cc_works = no; then
1834 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1837 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1835 fi 1838 fi
1836 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1837 echo "configure:1838: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1840 echo "configure:1841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1838 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1841 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1839 cross_compiling=$ac_cv_prog_cc_cross 1842 cross_compiling=$ac_cv_prog_cc_cross
1840 1843
1841 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1844 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1842 echo "configure:1843: checking whether we are using GNU C" >&5 1845 echo "configure:1846: checking whether we are using GNU C" >&5
1843 1846
1844 cat > conftest.c <<EOF 1847 cat > conftest.c <<EOF
1845 #ifdef __GNUC__ 1848 #ifdef __GNUC__
1846 yes; 1849 yes;
1847 #endif 1850 #endif
1848 EOF 1851 EOF
1849 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1852 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1850 ac_cv_prog_gcc=yes 1853 ac_cv_prog_gcc=yes
1851 else 1854 else
1852 ac_cv_prog_gcc=no 1855 ac_cv_prog_gcc=no
1853 fi 1856 fi
1854 1857
1862 1865
1863 ac_test_CFLAGS="${CFLAGS+set}" 1866 ac_test_CFLAGS="${CFLAGS+set}"
1864 ac_save_CFLAGS="$CFLAGS" 1867 ac_save_CFLAGS="$CFLAGS"
1865 CFLAGS= 1868 CFLAGS=
1866 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1869 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1867 echo "configure:1868: checking whether ${CC-cc} accepts -g" >&5 1870 echo "configure:1871: checking whether ${CC-cc} accepts -g" >&5
1868 1871
1869 echo 'void f(){}' > conftest.c 1872 echo 'void f(){}' > conftest.c
1870 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1873 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1871 ac_cv_prog_cc_g=yes 1874 ac_cv_prog_cc_g=yes
1872 else 1875 else
1895 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1898 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1896 CC=${NON_GNU_CC-cc} 1899 CC=${NON_GNU_CC-cc}
1897 # Extract the first word of "gcc", so it can be a program name with args. 1900 # Extract the first word of "gcc", so it can be a program name with args.
1898 set dummy gcc; ac_word=$2 1901 set dummy gcc; ac_word=$2
1899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1900 echo "configure:1901: checking for $ac_word" >&5 1903 echo "configure:1904: checking for $ac_word" >&5
1901 1904
1902 if test -n "$CC"; then 1905 if test -n "$CC"; then
1903 ac_cv_prog_CC="$CC" # Let the user override the test. 1906 ac_cv_prog_CC="$CC" # Let the user override the test.
1904 else 1907 else
1905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1922 1925
1923 if test -z "$CC"; then 1926 if test -z "$CC"; then
1924 # Extract the first word of "cc", so it can be a program name with args. 1927 # Extract the first word of "cc", so it can be a program name with args.
1925 set dummy cc; ac_word=$2 1928 set dummy cc; ac_word=$2
1926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1927 echo "configure:1928: checking for $ac_word" >&5 1930 echo "configure:1931: checking for $ac_word" >&5
1928 1931
1929 if test -n "$CC"; then 1932 if test -n "$CC"; then
1930 ac_cv_prog_CC="$CC" # Let the user override the test. 1933 ac_cv_prog_CC="$CC" # Let the user override the test.
1931 else 1934 else
1932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1970 case "`uname -s`" in 1973 case "`uname -s`" in
1971 *win32* | *WIN32*) 1974 *win32* | *WIN32*)
1972 # Extract the first word of "cl", so it can be a program name with args. 1975 # Extract the first word of "cl", so it can be a program name with args.
1973 set dummy cl; ac_word=$2 1976 set dummy cl; ac_word=$2
1974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1975 echo "configure:1976: checking for $ac_word" >&5 1978 echo "configure:1979: checking for $ac_word" >&5
1976 1979
1977 if test -n "$CC"; then 1980 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test. 1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1979 else 1982 else
1980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1999 fi 2002 fi
2000 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2003 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2001 fi 2004 fi
2002 2005
2003 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2006 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2007 echo "configure:2008: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2005 2008
2006 ac_ext=c 2009 ac_ext=c
2007 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2010 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2008 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2011 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2009 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' 2012 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'
2012 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2015 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2013 cross_compiling=no 2016 cross_compiling=no
2014 2017
2015 cat > conftest.$ac_ext << EOF 2018 cat > conftest.$ac_ext << EOF
2016 2019
2017 #line 2018 "configure" 2020 #line 2021 "configure"
2018 #include "confdefs.h" 2021 #include "confdefs.h"
2019 2022
2020 main(){return(0);} 2023 main(){return(0);}
2021 EOF 2024 EOF
2022 if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2025 if { (eval echo configure:2026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2023 ac_cv_prog_cc_works=yes 2026 ac_cv_prog_cc_works=yes
2024 # If we can't run a trivial program, we are probably using a cross compiler. 2027 # If we can't run a trivial program, we are probably using a cross compiler.
2025 if (./conftest; exit) 2>/dev/null; then 2028 if (./conftest; exit) 2>/dev/null; then
2026 ac_cv_prog_cc_cross=no 2029 ac_cv_prog_cc_cross=no
2027 else 2030 else
2045 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2048 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2046 if test $ac_cv_prog_cc_works = no; then 2049 if test $ac_cv_prog_cc_works = no; then
2047 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2050 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2048 fi 2051 fi
2049 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2052 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2050 echo "configure:2051: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2053 echo "configure:2054: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2051 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2054 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2052 cross_compiling=$ac_cv_prog_cc_cross 2055 cross_compiling=$ac_cv_prog_cc_cross
2053 2056
2054 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2057 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2055 echo "configure:2056: checking whether we are using GNU C" >&5 2058 echo "configure:2059: checking whether we are using GNU C" >&5
2056 2059
2057 cat > conftest.c <<EOF 2060 cat > conftest.c <<EOF
2058 #ifdef __GNUC__ 2061 #ifdef __GNUC__
2059 yes; 2062 yes;
2060 #endif 2063 #endif
2061 EOF 2064 EOF
2062 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2065 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2063 ac_cv_prog_gcc=yes 2066 ac_cv_prog_gcc=yes
2064 else 2067 else
2065 ac_cv_prog_gcc=no 2068 ac_cv_prog_gcc=no
2066 fi 2069 fi
2067 2070
2075 2078
2076 ac_test_CFLAGS="${CFLAGS+set}" 2079 ac_test_CFLAGS="${CFLAGS+set}"
2077 ac_save_CFLAGS="$CFLAGS" 2080 ac_save_CFLAGS="$CFLAGS"
2078 CFLAGS= 2081 CFLAGS=
2079 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2082 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2080 echo "configure:2081: checking whether ${CC-cc} accepts -g" >&5 2083 echo "configure:2084: checking whether ${CC-cc} accepts -g" >&5
2081 2084
2082 echo 'void f(){}' > conftest.c 2085 echo 'void f(){}' > conftest.c
2083 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2086 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2084 ac_cv_prog_cc_g=yes 2087 ac_cv_prog_cc_g=yes
2085 else 2088 else
2108 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 2111 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2109 CC=gcc 2112 CC=gcc
2110 # Extract the first word of "gcc", so it can be a program name with args. 2113 # Extract the first word of "gcc", so it can be a program name with args.
2111 set dummy gcc; ac_word=$2 2114 set dummy gcc; ac_word=$2
2112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2113 echo "configure:2114: checking for $ac_word" >&5 2116 echo "configure:2117: checking for $ac_word" >&5
2114 2117
2115 if test -n "$CC"; then 2118 if test -n "$CC"; then
2116 ac_cv_prog_CC="$CC" # Let the user override the test. 2119 ac_cv_prog_CC="$CC" # Let the user override the test.
2117 else 2120 else
2118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2135 2138
2136 if test -z "$CC"; then 2139 if test -z "$CC"; then
2137 # Extract the first word of "cc", so it can be a program name with args. 2140 # Extract the first word of "cc", so it can be a program name with args.
2138 set dummy cc; ac_word=$2 2141 set dummy cc; ac_word=$2
2139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2140 echo "configure:2141: checking for $ac_word" >&5 2143 echo "configure:2144: checking for $ac_word" >&5
2141 2144
2142 if test -n "$CC"; then 2145 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test. 2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2144 else 2147 else
2145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2183 case "`uname -s`" in 2186 case "`uname -s`" in
2184 *win32* | *WIN32*) 2187 *win32* | *WIN32*)
2185 # Extract the first word of "cl", so it can be a program name with args. 2188 # Extract the first word of "cl", so it can be a program name with args.
2186 set dummy cl; ac_word=$2 2189 set dummy cl; ac_word=$2
2187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2188 echo "configure:2189: checking for $ac_word" >&5 2191 echo "configure:2192: checking for $ac_word" >&5
2189 2192
2190 if test -n "$CC"; then 2193 if test -n "$CC"; then
2191 ac_cv_prog_CC="$CC" # Let the user override the test. 2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2192 else 2195 else
2193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2212 fi 2215 fi
2213 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2216 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2214 fi 2217 fi
2215 2218
2216 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2219 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2217 echo "configure:2218: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2220 echo "configure:2221: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2218 2221
2219 ac_ext=c 2222 ac_ext=c
2220 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2223 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2221 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2224 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2222 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' 2225 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'
2225 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2228 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2226 cross_compiling=no 2229 cross_compiling=no
2227 2230
2228 cat > conftest.$ac_ext << EOF 2231 cat > conftest.$ac_ext << EOF
2229 2232
2230 #line 2231 "configure" 2233 #line 2234 "configure"
2231 #include "confdefs.h" 2234 #include "confdefs.h"
2232 2235
2233 main(){return(0);} 2236 main(){return(0);}
2234 EOF 2237 EOF
2235 if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2238 if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2236 ac_cv_prog_cc_works=yes 2239 ac_cv_prog_cc_works=yes
2237 # If we can't run a trivial program, we are probably using a cross compiler. 2240 # If we can't run a trivial program, we are probably using a cross compiler.
2238 if (./conftest; exit) 2>/dev/null; then 2241 if (./conftest; exit) 2>/dev/null; then
2239 ac_cv_prog_cc_cross=no 2242 ac_cv_prog_cc_cross=no
2240 else 2243 else
2258 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2261 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2259 if test $ac_cv_prog_cc_works = no; then 2262 if test $ac_cv_prog_cc_works = no; then
2260 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2263 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2261 fi 2264 fi
2262 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2265 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2263 echo "configure:2264: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2266 echo "configure:2267: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2264 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2267 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2265 cross_compiling=$ac_cv_prog_cc_cross 2268 cross_compiling=$ac_cv_prog_cc_cross
2266 2269
2267 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2270 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2268 echo "configure:2269: checking whether we are using GNU C" >&5 2271 echo "configure:2272: checking whether we are using GNU C" >&5
2269 2272
2270 cat > conftest.c <<EOF 2273 cat > conftest.c <<EOF
2271 #ifdef __GNUC__ 2274 #ifdef __GNUC__
2272 yes; 2275 yes;
2273 #endif 2276 #endif
2274 EOF 2277 EOF
2275 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2278 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2276 ac_cv_prog_gcc=yes 2279 ac_cv_prog_gcc=yes
2277 else 2280 else
2278 ac_cv_prog_gcc=no 2281 ac_cv_prog_gcc=no
2279 fi 2282 fi
2280 2283
2288 2291
2289 ac_test_CFLAGS="${CFLAGS+set}" 2292 ac_test_CFLAGS="${CFLAGS+set}"
2290 ac_save_CFLAGS="$CFLAGS" 2293 ac_save_CFLAGS="$CFLAGS"
2291 CFLAGS= 2294 CFLAGS=
2292 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2295 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2293 echo "configure:2294: checking whether ${CC-cc} accepts -g" >&5 2296 echo "configure:2297: checking whether ${CC-cc} accepts -g" >&5
2294 2297
2295 echo 'void f(){}' > conftest.c 2298 echo 'void f(){}' > conftest.c
2296 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2299 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2297 ac_cv_prog_cc_g=yes 2300 ac_cv_prog_cc_g=yes
2298 else 2301 else
2321 fi 2324 fi
2322 CFLAGS="$xe_save_CFLAGS" 2325 CFLAGS="$xe_save_CFLAGS"
2323 2326
2324 if test "$GCC" = "yes"; then 2327 if test "$GCC" = "yes"; then
2325 cat > conftest.$ac_ext <<EOF 2328 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure" 2329 #line 2330 "configure"
2327 #include "confdefs.h" 2330 #include "confdefs.h"
2328 int main () { 2331 int main () {
2329 #if __GNUC__ >= 3 2332 #if __GNUC__ >= 3
2330 return 11; 2333 return 11;
2331 #else 2334 #else
2332 return 0; 2335 return 0;
2333 #endif 2336 #endif
2334 } 2337 }
2335 EOF 2338 EOF
2336 if { (eval echo configure:2337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2339 if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2337 then 2340 then
2338 : 2341 :
2339 else 2342 else
2340 conftest_rc="$?" 2343 conftest_rc="$?"
2341 echo "configure: failed program was:" >&5 2344 echo "configure: failed program was:" >&5
2352 test -n "$CPP" -a -d "$CPP" && CPP= 2355 test -n "$CPP" -a -d "$CPP" && CPP=
2353 2356
2354 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2357 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2355 2358
2356 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2359 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2357 echo "configure:2358: checking how to run the C preprocessor" >&5 2360 echo "configure:2361: checking how to run the C preprocessor" >&5
2358 # On Suns, sometimes $CPP names a directory. 2361 # On Suns, sometimes $CPP names a directory.
2359 if test -n "$CPP" && test -d "$CPP"; then 2362 if test -n "$CPP" && test -d "$CPP"; then
2360 CPP= 2363 CPP=
2361 fi 2364 fi
2362 if test -z "$CPP"; then 2365 if test -z "$CPP"; then
2365 # substituted into the Makefile and "${CC-cc}" will confuse make. 2368 # substituted into the Makefile and "${CC-cc}" will confuse make.
2366 CPP="${CC-cc} -E" 2369 CPP="${CC-cc} -E"
2367 # On the NeXT, cc -E runs the code through the compiler's parser, 2370 # On the NeXT, cc -E runs the code through the compiler's parser,
2368 # not just through cpp. 2371 # not just through cpp.
2369 cat > conftest.$ac_ext <<EOF 2372 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure" 2373 #line 2374 "configure"
2371 #include "confdefs.h" 2374 #include "confdefs.h"
2372 #include <assert.h> 2375 #include <assert.h>
2373 Syntax Error 2376 Syntax Error
2374 EOF 2377 EOF
2375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2376 { (eval echo configure:2377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2379 { (eval echo configure:2380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2378 if test -z "$ac_err"; then 2381 if test -z "$ac_err"; then
2379 : 2382 :
2380 else 2383 else
2381 echo "$ac_err" >&5 2384 echo "$ac_err" >&5
2382 echo "configure: failed program was:" >&5 2385 echo "configure: failed program was:" >&5
2383 cat conftest.$ac_ext >&5 2386 cat conftest.$ac_ext >&5
2384 rm -rf conftest* 2387 rm -rf conftest*
2385 CPP="${CC-cc} -E -traditional-cpp" 2388 CPP="${CC-cc} -E -traditional-cpp"
2386 cat > conftest.$ac_ext <<EOF 2389 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure" 2390 #line 2391 "configure"
2388 #include "confdefs.h" 2391 #include "confdefs.h"
2389 #include <assert.h> 2392 #include <assert.h>
2390 Syntax Error 2393 Syntax Error
2391 EOF 2394 EOF
2392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2393 { (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2396 { (eval echo configure:2397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2395 if test -z "$ac_err"; then 2398 if test -z "$ac_err"; then
2396 : 2399 :
2397 else 2400 else
2398 echo "$ac_err" >&5 2401 echo "$ac_err" >&5
2399 echo "configure: failed program was:" >&5 2402 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5 2403 cat conftest.$ac_ext >&5
2401 rm -rf conftest* 2404 rm -rf conftest*
2402 CPP="${CC-cc} -nologo -E" 2405 CPP="${CC-cc} -nologo -E"
2403 cat > conftest.$ac_ext <<EOF 2406 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure" 2407 #line 2408 "configure"
2405 #include "confdefs.h" 2408 #include "confdefs.h"
2406 #include <assert.h> 2409 #include <assert.h>
2407 Syntax Error 2410 Syntax Error
2408 EOF 2411 EOF
2409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2410 { (eval echo configure:2411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2413 { (eval echo configure:2414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2412 if test -z "$ac_err"; then 2415 if test -z "$ac_err"; then
2413 : 2416 :
2414 else 2417 else
2415 echo "$ac_err" >&5 2418 echo "$ac_err" >&5
2431 echo "$ac_t""$CPP" 1>&6 2434 echo "$ac_t""$CPP" 1>&6
2432 2435
2433 2436
2434 2437
2435 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2438 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2436 echo "configure:2437: checking for AIX" >&5 2439 echo "configure:2440: checking for AIX" >&5
2437 cat > conftest.$ac_ext <<EOF 2440 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure" 2441 #line 2442 "configure"
2439 #include "confdefs.h" 2442 #include "confdefs.h"
2440 #ifdef _AIX 2443 #ifdef _AIX
2441 yes 2444 yes
2442 #endif 2445 #endif
2443 2446
2460 rm -f conftest* 2463 rm -f conftest*
2461 2464
2462 2465
2463 2466
2464 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2467 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2465 echo "configure:2466: checking for GNU libc" >&5 2468 echo "configure:2469: checking for GNU libc" >&5
2466 cat > conftest.$ac_ext <<EOF 2469 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure" 2470 #line 2471 "configure"
2468 #include "confdefs.h" 2471 #include "confdefs.h"
2469 #include <features.h> 2472 #include <features.h>
2470 int main() { 2473 int main() {
2471 2474
2472 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2475 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2474 ******* ======= ******** &&&&&&&& 2477 ******* ======= ******** &&&&&&&&
2475 #endif 2478 #endif
2476 2479
2477 ; return 0; } 2480 ; return 0; }
2478 EOF 2481 EOF
2479 if { (eval echo configure:2480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2482 if { (eval echo configure:2483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2480 rm -rf conftest* 2483 rm -rf conftest*
2481 have_glibc=yes 2484 have_glibc=yes
2482 else 2485 else
2483 echo "configure: failed program was:" >&5 2486 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5 2487 cat conftest.$ac_ext >&5
2551 2554
2552 ;; 2555 ;;
2553 esac 2556 esac
2554 2557
2555 cat > conftest.$ac_ext <<EOF 2558 cat > conftest.$ac_ext <<EOF
2556 #line 2557 "configure" 2559 #line 2560 "configure"
2557 #include "confdefs.h" 2560 #include "confdefs.h"
2558 int main () { 2561 int main () {
2559 #if defined __SUNPRO_C 2562 #if defined __SUNPRO_C
2560 return 11; 2563 return 11;
2561 #elif defined __DECC 2564 #elif defined __DECC
2565 #else 2568 #else
2566 return 0; 2569 return 0;
2567 #endif 2570 #endif
2568 } 2571 }
2569 EOF 2572 EOF
2570 if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2573 if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2571 then 2574 then
2572 : 2575 :
2573 else 2576 else
2574 conftest_rc="$?" 2577 conftest_rc="$?"
2575 echo "configure: failed program was:" >&5 2578 echo "configure: failed program was:" >&5
2817 2820
2818 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi 2821 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2819 2822
2820 if test "$__USLC__" = yes; then 2823 if test "$__USLC__" = yes; then
2821 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6 2824 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2822 echo "configure:2823: checking for whether the -Kalloca compiler flag is needed" >&5 2825 echo "configure:2826: checking for whether the -Kalloca compiler flag is needed" >&5
2823 need_kalloca=no 2826 need_kalloca=no
2824 cat > conftest.$ac_ext <<EOF 2827 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure" 2828 #line 2829 "configure"
2826 #include "confdefs.h" 2829 #include "confdefs.h"
2827 2830
2828 int main() { 2831 int main() {
2829 void *x = alloca(4); 2832 void *x = alloca(4);
2830 ; return 0; } 2833 ; return 0; }
2831 EOF 2834 EOF
2832 if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2835 if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2833 rm -rf conftest* 2836 rm -rf conftest*
2834 : 2837 :
2835 else 2838 else
2836 echo "configure: failed program was:" >&5 2839 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5 2840 cat conftest.$ac_ext >&5
2838 rm -rf conftest* 2841 rm -rf conftest*
2839 2842
2840 xe_save_c_switch_system="$c_switch_system" 2843 xe_save_c_switch_system="$c_switch_system"
2841 c_switch_system="$c_switch_system -Kalloca" 2844 c_switch_system="$c_switch_system -Kalloca"
2842 cat > conftest.$ac_ext <<EOF 2845 cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure" 2846 #line 2847 "configure"
2844 #include "confdefs.h" 2847 #include "confdefs.h"
2845 2848
2846 int main() { 2849 int main() {
2847 void *x = alloca(4); 2850 void *x = alloca(4);
2848 ; return 0; } 2851 ; return 0; }
2849 EOF 2852 EOF
2850 if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2853 if { (eval echo configure:2854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2851 rm -rf conftest* 2854 rm -rf conftest*
2852 need_kalloca=yes 2855 need_kalloca=yes
2853 else 2856 else
2854 echo "configure: failed program was:" >&5 2857 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5 2858 cat conftest.$ac_ext >&5
2905 2908
2906 CFLAGS="$cflags_warning $CFLAGS" 2909 CFLAGS="$cflags_warning $CFLAGS"
2907 2910
2908 if test "$GCC" = "yes"; then 2911 if test "$GCC" = "yes"; then
2909 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6 2912 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2910 echo "configure:2911: checking for buggy gcc versions" >&5 2913 echo "configure:2914: checking for buggy gcc versions" >&5
2911 GCC_VERSION=`$CC --version` 2914 GCC_VERSION=`$CC --version`
2912 case `uname -s`:`uname -m`:$GCC_VERSION in 2915 case `uname -s`:`uname -m`:$GCC_VERSION in
2913 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) 2916 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2914 case "$CFLAGS" in 2917 case "$CFLAGS" in
2915 *-O2*|*-O3*) 2918 *-O2*|*-O3*)
2963 echo "$ac_t""no" 1>&6 2966 echo "$ac_t""no" 1>&6
2964 fi 2967 fi
2965 2968
2966 if test "$pdump" != "yes"; then 2969 if test "$pdump" != "yes"; then
2967 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6 2970 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
2968 echo "configure:2969: checking for \"-z nocombreloc\" linker flag" >&5 2971 echo "configure:2972: checking for \"-z nocombreloc\" linker flag" >&5
2969 case "`ld --help 2>&1`" in 2972 case "`ld --help 2>&1`" in
2970 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6 2973 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2971 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;; 2974 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2972 *) echo "$ac_t""no" 1>&6 ;; 2975 *) echo "$ac_t""no" 1>&6 ;;
2973 esac 2976 esac
3052 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then 3055 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
3053 echo " xemacs will be linked with \"dumper.o\"" 3056 echo " xemacs will be linked with \"dumper.o\""
3054 fi 3057 fi
3055 3058
3056 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 3059 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
3057 echo "configure:3058: checking for dynodump" >&5 3060 echo "configure:3061: checking for dynodump" >&5
3058 if test "$unexec" != "unexsol2.o"; then 3061 if test "$unexec" != "unexsol2.o"; then
3059 echo "$ac_t""no" 1>&6 3062 echo "$ac_t""no" 1>&6
3060 else 3063 else
3061 echo "$ac_t""yes" 1>&6 3064 echo "$ac_t""yes" 1>&6
3062 { test "$extra_verbose" = "yes" && cat << \EOF 3065 { test "$extra_verbose" = "yes" && cat << \EOF
3090 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 3093 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
3091 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 3094 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
3092 done 3095 done
3093 3096
3094 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 3097 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
3095 echo "configure:3096: checking for terminateAndUnload in -lC" >&5 3098 echo "configure:3099: checking for terminateAndUnload in -lC" >&5
3096 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 3099 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
3097 3100
3098 xe_check_libs=" -lC " 3101 xe_check_libs=" -lC "
3099 cat > conftest.$ac_ext <<EOF 3102 cat > conftest.$ac_ext <<EOF
3100 #line 3101 "configure" 3103 #line 3104 "configure"
3101 #include "confdefs.h" 3104 #include "confdefs.h"
3102 /* Override any gcc2 internal prototype to avoid an error. */ 3105 /* Override any gcc2 internal prototype to avoid an error. */
3103 /* We use char because int might match the return type of a gcc2 3106 /* We use char because int might match the return type of a gcc2
3104 builtin and then its argument prototype would still apply. */ 3107 builtin and then its argument prototype would still apply. */
3105 char terminateAndUnload(); 3108 char terminateAndUnload();
3106 3109
3107 int main() { 3110 int main() {
3108 terminateAndUnload() 3111 terminateAndUnload()
3109 ; return 0; } 3112 ; return 0; }
3110 EOF 3113 EOF
3111 if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3114 if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3112 rm -rf conftest* 3115 rm -rf conftest*
3113 eval "ac_cv_lib_$ac_lib_var=yes" 3116 eval "ac_cv_lib_$ac_lib_var=yes"
3114 else 3117 else
3115 echo "configure: failed program was:" >&5 3118 echo "configure: failed program was:" >&5
3116 cat conftest.$ac_ext >&5 3119 cat conftest.$ac_ext >&5
3214 esac 3217 esac
3215 fi 3218 fi
3216 3219
3217 if test "$add_runtime_path" = "yes"; then 3220 if test "$add_runtime_path" = "yes"; then
3218 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 3221 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3219 echo "configure:3220: checking "for runtime libraries flag"" >&5 3222 echo "configure:3223: checking "for runtime libraries flag"" >&5
3220 case "$opsys" in 3223 case "$opsys" in
3221 sol2 ) dash_r="-R" ;; 3224 sol2 ) dash_r="-R" ;;
3222 decosf* | linux* | irix*) dash_r="-rpath " ;; 3225 decosf* | linux* | irix*) dash_r="-rpath " ;;
3223 *) 3226 *)
3224 dash_r="" 3227 dash_r=""
3236 esac 3239 esac
3237 shift 3240 shift
3238 done 3241 done
3239 fi 3242 fi
3240 cat > conftest.$ac_ext <<EOF 3243 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure" 3244 #line 3245 "configure"
3242 #include "confdefs.h" 3245 #include "confdefs.h"
3243 3246
3244 int main() { 3247 int main() {
3245 3248
3246 ; return 0; } 3249 ; return 0; }
3247 EOF 3250 EOF
3248 if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3251 if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3249 rm -rf conftest* 3252 rm -rf conftest*
3250 dash_r="$try_dash_r" 3253 dash_r="$try_dash_r"
3251 else 3254 else
3252 echo "configure: failed program was:" >&5 3255 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5 3256 cat conftest.$ac_ext >&5
3344 else 3347 else
3345 doug_lea_malloc=no 3348 doug_lea_malloc=no
3346 fi 3349 fi
3347 after_morecore_hook_exists=yes 3350 after_morecore_hook_exists=yes
3348 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3351 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3349 echo "configure:3350: checking for malloc_set_state" >&5 3352 echo "configure:3353: checking for malloc_set_state" >&5
3350 3353
3351 cat > conftest.$ac_ext <<EOF 3354 cat > conftest.$ac_ext <<EOF
3352 #line 3353 "configure" 3355 #line 3356 "configure"
3353 #include "confdefs.h" 3356 #include "confdefs.h"
3354 /* System header to define __stub macros and hopefully few prototypes, 3357 /* System header to define __stub macros and hopefully few prototypes,
3355 which can conflict with char malloc_set_state(); below. */ 3358 which can conflict with char malloc_set_state(); below. */
3356 #include <assert.h> 3359 #include <assert.h>
3357 /* Override any gcc2 internal prototype to avoid an error. */ 3360 /* Override any gcc2 internal prototype to avoid an error. */
3370 malloc_set_state(); 3373 malloc_set_state();
3371 #endif 3374 #endif
3372 3375
3373 ; return 0; } 3376 ; return 0; }
3374 EOF 3377 EOF
3375 if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3378 if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3376 rm -rf conftest* 3379 rm -rf conftest*
3377 eval "ac_cv_func_malloc_set_state=yes" 3380 eval "ac_cv_func_malloc_set_state=yes"
3378 else 3381 else
3379 echo "configure: failed program was:" >&5 3382 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5 3383 cat conftest.$ac_ext >&5
3390 echo "$ac_t""no" 1>&6 3393 echo "$ac_t""no" 1>&6
3391 doug_lea_malloc=no 3394 doug_lea_malloc=no
3392 fi 3395 fi
3393 3396
3394 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3397 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3395 echo "configure:3396: checking whether __after_morecore_hook exists" >&5 3398 echo "configure:3399: checking whether __after_morecore_hook exists" >&5
3396 cat > conftest.$ac_ext <<EOF 3399 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure" 3400 #line 3401 "configure"
3398 #include "confdefs.h" 3401 #include "confdefs.h"
3399 extern void (* __after_morecore_hook)(); 3402 extern void (* __after_morecore_hook)();
3400 int main() { 3403 int main() {
3401 __after_morecore_hook = 0 3404 __after_morecore_hook = 0
3402 ; return 0; } 3405 ; return 0; }
3403 EOF 3406 EOF
3404 if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3405 rm -rf conftest* 3408 rm -rf conftest*
3406 echo "$ac_t""yes" 1>&6 3409 echo "$ac_t""yes" 1>&6
3407 else 3410 else
3408 echo "configure: failed program was:" >&5 3411 echo "configure: failed program was:" >&5
3409 cat conftest.$ac_ext >&5 3412 cat conftest.$ac_ext >&5
3455 3458
3456 3459
3457 # Extract the first word of "ranlib", so it can be a program name with args. 3460 # Extract the first word of "ranlib", so it can be a program name with args.
3458 set dummy ranlib; ac_word=$2 3461 set dummy ranlib; ac_word=$2
3459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3460 echo "configure:3461: checking for $ac_word" >&5 3463 echo "configure:3464: checking for $ac_word" >&5
3461 3464
3462 if test -n "$RANLIB"; then 3465 if test -n "$RANLIB"; then
3463 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3466 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3464 else 3467 else
3465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3510 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3511 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3512 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3513 # ./install, which can be erroneously created by make from ./install.sh. 3516 # ./install, which can be erroneously created by make from ./install.sh.
3514 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3517 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3515 echo "configure:3516: checking for a BSD compatible install" >&5 3518 echo "configure:3519: checking for a BSD compatible install" >&5
3516 if test -z "$INSTALL"; then 3519 if test -z "$INSTALL"; then
3517 3520
3518 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3521 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3519 for ac_dir in $PATH; do 3522 for ac_dir in $PATH; do
3520 # Account for people who put trailing slashes in PATH elements. 3523 # Account for people who put trailing slashes in PATH elements.
3564 for ac_prog in 'bison -y' byacc 3567 for ac_prog in 'bison -y' byacc
3565 do 3568 do
3566 # Extract the first word of "$ac_prog", so it can be a program name with args. 3569 # Extract the first word of "$ac_prog", so it can be a program name with args.
3567 set dummy $ac_prog; ac_word=$2 3570 set dummy $ac_prog; ac_word=$2
3568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3569 echo "configure:3570: checking for $ac_word" >&5 3572 echo "configure:3573: checking for $ac_word" >&5
3570 3573
3571 if test -n "$YACC"; then 3574 if test -n "$YACC"; then
3572 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3575 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3573 else 3576 else
3574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3596 3599
3597 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h wchar.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/times.h sys/un.h ulimit.h unistd.h 3600 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h wchar.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/times.h sys/un.h ulimit.h unistd.h
3598 do 3601 do
3599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3601 echo "configure:3602: checking for $ac_hdr" >&5 3604 echo "configure:3605: checking for $ac_hdr" >&5
3602 3605
3603 cat > conftest.$ac_ext <<EOF 3606 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure" 3607 #line 3608 "configure"
3605 #include "confdefs.h" 3608 #include "confdefs.h"
3606 #include <$ac_hdr> 3609 #include <$ac_hdr>
3607 EOF 3610 EOF
3608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3609 { (eval echo configure:3610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3612 { (eval echo configure:3613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3611 if test -z "$ac_err"; then 3614 if test -z "$ac_err"; then
3612 rm -rf conftest* 3615 rm -rf conftest*
3613 eval "ac_cv_header_$ac_safe=yes" 3616 eval "ac_cv_header_$ac_safe=yes"
3614 else 3617 else
3634 echo "$ac_t""no" 1>&6 3637 echo "$ac_t""no" 1>&6
3635 fi 3638 fi
3636 done 3639 done
3637 3640
3638 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3641 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3639 echo "configure:3640: checking for sys/wait.h that is POSIX.1 compatible" >&5 3642 echo "configure:3643: checking for sys/wait.h that is POSIX.1 compatible" >&5
3640 3643
3641 cat > conftest.$ac_ext <<EOF 3644 cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure" 3645 #line 3646 "configure"
3643 #include "confdefs.h" 3646 #include "confdefs.h"
3644 #include <sys/types.h> 3647 #include <sys/types.h>
3645 #include <sys/wait.h> 3648 #include <sys/wait.h>
3646 #ifndef WEXITSTATUS 3649 #ifndef WEXITSTATUS
3647 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3650 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3653 int s; 3656 int s;
3654 wait (&s); 3657 wait (&s);
3655 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3658 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3656 ; return 0; } 3659 ; return 0; }
3657 EOF 3660 EOF
3658 if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3661 if { (eval echo configure:3662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3659 rm -rf conftest* 3662 rm -rf conftest*
3660 ac_cv_header_sys_wait_h=yes 3663 ac_cv_header_sys_wait_h=yes
3661 else 3664 else
3662 echo "configure: failed program was:" >&5 3665 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5 3666 cat conftest.$ac_ext >&5
3677 } 3680 }
3678 3681
3679 fi 3682 fi
3680 3683
3681 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3684 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3682 echo "configure:3683: checking for ANSI C header files" >&5 3685 echo "configure:3686: checking for ANSI C header files" >&5
3683 3686
3684 cat > conftest.$ac_ext <<EOF 3687 cat > conftest.$ac_ext <<EOF
3685 #line 3686 "configure" 3688 #line 3689 "configure"
3686 #include "confdefs.h" 3689 #include "confdefs.h"
3687 #include <stdlib.h> 3690 #include <stdlib.h>
3688 #include <stdarg.h> 3691 #include <stdarg.h>
3689 #include <string.h> 3692 #include <string.h>
3690 #include <float.h> 3693 #include <float.h>
3691 EOF 3694 EOF
3692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3693 { (eval echo configure:3694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3696 { (eval echo configure:3697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3695 if test -z "$ac_err"; then 3698 if test -z "$ac_err"; then
3696 rm -rf conftest* 3699 rm -rf conftest*
3697 ac_cv_header_stdc=yes 3700 ac_cv_header_stdc=yes
3698 else 3701 else
3705 rm -f conftest* 3708 rm -f conftest*
3706 3709
3707 if test $ac_cv_header_stdc = yes; then 3710 if test $ac_cv_header_stdc = yes; then
3708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3709 cat > conftest.$ac_ext <<EOF 3712 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure" 3713 #line 3714 "configure"
3711 #include "confdefs.h" 3714 #include "confdefs.h"
3712 #include <string.h> 3715 #include <string.h>
3713 EOF 3716 EOF
3714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3715 egrep "memchr" >/dev/null 2>&1; then 3718 egrep "memchr" >/dev/null 2>&1; then
3723 fi 3726 fi
3724 3727
3725 if test $ac_cv_header_stdc = yes; then 3728 if test $ac_cv_header_stdc = yes; then
3726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3729 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3727 cat > conftest.$ac_ext <<EOF 3730 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure" 3731 #line 3732 "configure"
3729 #include "confdefs.h" 3732 #include "confdefs.h"
3730 #include <stdlib.h> 3733 #include <stdlib.h>
3731 EOF 3734 EOF
3732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3733 egrep "free" >/dev/null 2>&1; then 3736 egrep "free" >/dev/null 2>&1; then
3741 fi 3744 fi
3742 3745
3743 if test $ac_cv_header_stdc = yes; then 3746 if test $ac_cv_header_stdc = yes; then
3744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3747 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3745 cat > conftest.$ac_ext <<EOF 3748 cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure" 3749 #line 3750 "configure"
3747 #include "confdefs.h" 3750 #include "confdefs.h"
3748 #include <ctype.h> 3751 #include <ctype.h>
3749 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3752 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3750 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3753 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3751 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3752 int main () { int i; for (i = 0; i < 256; i++) 3755 int main () { int i; for (i = 0; i < 256; i++)
3753 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3756 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3754 exit (0); } 3757 exit (0); }
3755 3758
3756 EOF 3759 EOF
3757 if { (eval echo configure:3758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3760 if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3758 then 3761 then
3759 : 3762 :
3760 else 3763 else
3761 conftest_rc="$?" 3764 conftest_rc="$?"
3762 echo "configure: failed program was:" >&5 3765 echo "configure: failed program was:" >&5
3778 } 3781 }
3779 3782
3780 fi 3783 fi
3781 3784
3782 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3785 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3783 echo "configure:3784: checking whether time.h and sys/time.h may both be included" >&5 3786 echo "configure:3787: checking whether time.h and sys/time.h may both be included" >&5
3784 3787
3785 cat > conftest.$ac_ext <<EOF 3788 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure" 3789 #line 3790 "configure"
3787 #include "confdefs.h" 3790 #include "confdefs.h"
3788 #include <sys/types.h> 3791 #include <sys/types.h>
3789 #include <sys/time.h> 3792 #include <sys/time.h>
3790 #include <time.h> 3793 #include <time.h>
3791 int main() { 3794 int main() {
3792 struct tm *tp; 3795 struct tm *tp;
3793 ; return 0; } 3796 ; return 0; }
3794 EOF 3797 EOF
3795 if { (eval echo configure:3796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3798 if { (eval echo configure:3799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3796 rm -rf conftest* 3799 rm -rf conftest*
3797 ac_cv_header_time=yes 3800 ac_cv_header_time=yes
3798 else 3801 else
3799 echo "configure: failed program was:" >&5 3802 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5 3803 cat conftest.$ac_ext >&5
3814 } 3817 }
3815 3818
3816 fi 3819 fi
3817 3820
3818 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3821 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3819 echo "configure:3820: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3822 echo "configure:3823: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3820 3823
3821 cat > conftest.$ac_ext <<EOF 3824 cat > conftest.$ac_ext <<EOF
3822 #line 3823 "configure" 3825 #line 3826 "configure"
3823 #include "confdefs.h" 3826 #include "confdefs.h"
3824 #include <sys/types.h> 3827 #include <sys/types.h>
3825 #include <signal.h> 3828 #include <signal.h>
3826 /* NetBSD declares sys_siglist in unistd.h. */ 3829 /* NetBSD declares sys_siglist in unistd.h. */
3827 #ifdef HAVE_UNISTD_H 3830 #ifdef HAVE_UNISTD_H
3829 #endif 3832 #endif
3830 int main() { 3833 int main() {
3831 char *msg = *(sys_siglist + 1); 3834 char *msg = *(sys_siglist + 1);
3832 ; return 0; } 3835 ; return 0; }
3833 EOF 3836 EOF
3834 if { (eval echo configure:3835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3837 if { (eval echo configure:3838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3835 rm -rf conftest* 3838 rm -rf conftest*
3836 ac_cv_decl_sys_siglist=yes 3839 ac_cv_decl_sys_siglist=yes
3837 else 3840 else
3838 echo "configure: failed program was:" >&5 3841 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5 3842 cat conftest.$ac_ext >&5
3855 fi 3858 fi
3856 3859
3857 3860
3858 3861
3859 echo $ac_n "checking for utime""... $ac_c" 1>&6 3862 echo $ac_n "checking for utime""... $ac_c" 1>&6
3860 echo "configure:3861: checking for utime" >&5 3863 echo "configure:3864: checking for utime" >&5
3861 cat > conftest.$ac_ext <<EOF 3864 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure" 3865 #line 3866 "configure"
3863 #include "confdefs.h" 3866 #include "confdefs.h"
3864 #include <sys/types.h> 3867 #include <sys/types.h>
3865 #include <utime.h> 3868 #include <utime.h>
3866 int main() { 3869 int main() {
3867 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x); 3870 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3868 ; return 0; } 3871 ; return 0; }
3869 EOF 3872 EOF
3870 if { (eval echo configure:3871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3873 if { (eval echo configure:3874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3871 rm -rf conftest* 3874 rm -rf conftest*
3872 echo "$ac_t""yes" 1>&6 3875 echo "$ac_t""yes" 1>&6
3873 { test "$extra_verbose" = "yes" && cat << \EOF 3876 { test "$extra_verbose" = "yes" && cat << \EOF
3874 Defining HAVE_UTIME 3877 Defining HAVE_UTIME
3875 EOF 3878 EOF
3884 rm -rf conftest* 3887 rm -rf conftest*
3885 echo "$ac_t""no" 1>&6 3888 echo "$ac_t""no" 1>&6
3886 for ac_func in utimes 3889 for ac_func in utimes
3887 do 3890 do
3888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3889 echo "configure:3890: checking for $ac_func" >&5 3892 echo "configure:3893: checking for $ac_func" >&5
3890 3893
3891 cat > conftest.$ac_ext <<EOF 3894 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure" 3895 #line 3896 "configure"
3893 #include "confdefs.h" 3896 #include "confdefs.h"
3894 /* System header to define __stub macros and hopefully few prototypes, 3897 /* System header to define __stub macros and hopefully few prototypes,
3895 which can conflict with char $ac_func(); below. */ 3898 which can conflict with char $ac_func(); below. */
3896 #include <assert.h> 3899 #include <assert.h>
3897 /* Override any gcc2 internal prototype to avoid an error. */ 3900 /* Override any gcc2 internal prototype to avoid an error. */
3910 $ac_func(); 3913 $ac_func();
3911 #endif 3914 #endif
3912 3915
3913 ; return 0; } 3916 ; return 0; }
3914 EOF 3917 EOF
3915 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3916 rm -rf conftest* 3919 rm -rf conftest*
3917 eval "ac_cv_func_$ac_func=yes" 3920 eval "ac_cv_func_$ac_func=yes"
3918 else 3921 else
3919 echo "configure: failed program was:" >&5 3922 echo "configure: failed program was:" >&5
3920 cat conftest.$ac_ext >&5 3923 cat conftest.$ac_ext >&5
3942 fi 3945 fi
3943 rm -f conftest* 3946 rm -f conftest*
3944 3947
3945 3948
3946 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3949 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3947 echo "configure:3948: checking return type of signal handlers" >&5 3950 echo "configure:3951: checking return type of signal handlers" >&5
3948 3951
3949 cat > conftest.$ac_ext <<EOF 3952 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure" 3953 #line 3954 "configure"
3951 #include "confdefs.h" 3954 #include "confdefs.h"
3952 #include <sys/types.h> 3955 #include <sys/types.h>
3953 #include <signal.h> 3956 #include <signal.h>
3954 #ifdef signal 3957 #ifdef signal
3955 #undef signal 3958 #undef signal
3962 3965
3963 int main() { 3966 int main() {
3964 int i; 3967 int i;
3965 ; return 0; } 3968 ; return 0; }
3966 EOF 3969 EOF
3967 if { (eval echo configure:3968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3970 if { (eval echo configure:3971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 rm -rf conftest* 3971 rm -rf conftest*
3969 ac_cv_type_signal=void 3972 ac_cv_type_signal=void
3970 else 3973 else
3971 echo "configure: failed program was:" >&5 3974 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5 3975 cat conftest.$ac_ext >&5
3984 EOF 3987 EOF
3985 } 3988 }
3986 3989
3987 3990
3988 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3991 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3989 echo "configure:3990: checking for size_t" >&5 3992 echo "configure:3993: checking for size_t" >&5
3990 3993
3991 cat > conftest.$ac_ext <<EOF 3994 cat > conftest.$ac_ext <<EOF
3992 #line 3993 "configure" 3995 #line 3996 "configure"
3993 #include "confdefs.h" 3996 #include "confdefs.h"
3994 #include <sys/types.h> 3997 #include <sys/types.h>
3995 #if STDC_HEADERS 3998 #if STDC_HEADERS
3996 #include <stdlib.h> 3999 #include <stdlib.h>
3997 #include <stddef.h> 4000 #include <stddef.h>
4018 } 4021 }
4019 4022
4020 fi 4023 fi
4021 4024
4022 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 4025 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4023 echo "configure:4024: checking for pid_t" >&5 4026 echo "configure:4027: checking for pid_t" >&5
4024 4027
4025 cat > conftest.$ac_ext <<EOF 4028 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure" 4029 #line 4030 "configure"
4027 #include "confdefs.h" 4030 #include "confdefs.h"
4028 #include <sys/types.h> 4031 #include <sys/types.h>
4029 #if STDC_HEADERS 4032 #if STDC_HEADERS
4030 #include <stdlib.h> 4033 #include <stdlib.h>
4031 #include <stddef.h> 4034 #include <stddef.h>
4052 } 4055 }
4053 4056
4054 fi 4057 fi
4055 4058
4056 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 4059 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4057 echo "configure:4058: checking for uid_t in sys/types.h" >&5 4060 echo "configure:4061: checking for uid_t in sys/types.h" >&5
4058 4061
4059 cat > conftest.$ac_ext <<EOF 4062 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure" 4063 #line 4064 "configure"
4061 #include "confdefs.h" 4064 #include "confdefs.h"
4062 #include <sys/types.h> 4065 #include <sys/types.h>
4063 EOF 4066 EOF
4064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4065 egrep "uid_t" >/dev/null 2>&1; then 4068 egrep "uid_t" >/dev/null 2>&1; then
4091 } 4094 }
4092 4095
4093 fi 4096 fi
4094 4097
4095 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 4098 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4096 echo "configure:4097: checking for mode_t" >&5 4099 echo "configure:4100: checking for mode_t" >&5
4097 4100
4098 cat > conftest.$ac_ext <<EOF 4101 cat > conftest.$ac_ext <<EOF
4099 #line 4100 "configure" 4102 #line 4103 "configure"
4100 #include "confdefs.h" 4103 #include "confdefs.h"
4101 #include <sys/types.h> 4104 #include <sys/types.h>
4102 #if STDC_HEADERS 4105 #if STDC_HEADERS
4103 #include <stdlib.h> 4106 #include <stdlib.h>
4104 #include <stddef.h> 4107 #include <stddef.h>
4125 } 4128 }
4126 4129
4127 fi 4130 fi
4128 4131
4129 echo $ac_n "checking for off_t""... $ac_c" 1>&6 4132 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4130 echo "configure:4131: checking for off_t" >&5 4133 echo "configure:4134: checking for off_t" >&5
4131 4134
4132 cat > conftest.$ac_ext <<EOF 4135 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure" 4136 #line 4137 "configure"
4134 #include "confdefs.h" 4137 #include "confdefs.h"
4135 #include <sys/types.h> 4138 #include <sys/types.h>
4136 #if STDC_HEADERS 4139 #if STDC_HEADERS
4137 #include <stdlib.h> 4140 #include <stdlib.h>
4138 #include <stddef.h> 4141 #include <stddef.h>
4159 } 4162 }
4160 4163
4161 fi 4164 fi
4162 4165
4163 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 4166 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4164 echo "configure:4165: checking for ssize_t" >&5 4167 echo "configure:4168: checking for ssize_t" >&5
4165 4168
4166 cat > conftest.$ac_ext <<EOF 4169 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure" 4170 #line 4171 "configure"
4168 #include "confdefs.h" 4171 #include "confdefs.h"
4169 #include <sys/types.h> 4172 #include <sys/types.h>
4170 #if STDC_HEADERS 4173 #if STDC_HEADERS
4171 #include <stdlib.h> 4174 #include <stdlib.h>
4172 #include <stddef.h> 4175 #include <stddef.h>
4195 fi 4198 fi
4196 4199
4197 4200
4198 if test "$ac_cv_header_inttypes_h" != "yes"; then 4201 if test "$ac_cv_header_inttypes_h" != "yes"; then
4199 echo $ac_n "checking for intptr_t in sys/types.h""... $ac_c" 1>&6 4202 echo $ac_n "checking for intptr_t in sys/types.h""... $ac_c" 1>&6
4200 echo "configure:4201: checking for intptr_t in sys/types.h" >&5 4203 echo "configure:4204: checking for intptr_t in sys/types.h" >&5
4201 cat > conftest.$ac_ext <<EOF 4204 cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure" 4205 #line 4206 "configure"
4203 #include "confdefs.h" 4206 #include "confdefs.h"
4204 #include <sys/types.h> 4207 #include <sys/types.h>
4205 intptr_t x; 4208 intptr_t x;
4206 4209
4207 int main() { 4210 int main() {
4208 4211
4209 ; return 0; } 4212 ; return 0; }
4210 EOF 4213 EOF
4211 if { (eval echo configure:4212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4214 if { (eval echo configure:4215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4212 rm -rf conftest* 4215 rm -rf conftest*
4213 echo "$ac_t""yes" 1>&6 4216 echo "$ac_t""yes" 1>&6
4214 { test "$extra_verbose" = "yes" && cat << \EOF 4217 { test "$extra_verbose" = "yes" && cat << \EOF
4215 Defining HAVE_INTPTR_T_IN_SYS_TYPES_H = 1 4218 Defining HAVE_INTPTR_T_IN_SYS_TYPES_H = 1
4216 EOF 4219 EOF
4227 fi 4230 fi
4228 rm -f conftest* 4231 rm -f conftest*
4229 fi 4232 fi
4230 4233
4231 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 4234 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4232 echo "configure:4233: checking for socklen_t" >&5 4235 echo "configure:4236: checking for socklen_t" >&5
4233 cat > conftest.$ac_ext <<EOF 4236 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure" 4237 #line 4238 "configure"
4235 #include "confdefs.h" 4238 #include "confdefs.h"
4236 #include <sys/types.h> 4239 #include <sys/types.h>
4237 #include <sys/socket.h> 4240 #include <sys/socket.h>
4238 socklen_t x; 4241 socklen_t x;
4239 4242
4240 int main() { 4243 int main() {
4241 4244
4242 ; return 0; } 4245 ; return 0; }
4243 EOF 4246 EOF
4244 if { (eval echo configure:4245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4247 if { (eval echo configure:4248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4245 rm -rf conftest* 4248 rm -rf conftest*
4246 echo "$ac_t""yes" 1>&6 4249 echo "$ac_t""yes" 1>&6
4247 else 4250 else
4248 echo "configure: failed program was:" >&5 4251 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5 4252 cat conftest.$ac_ext >&5
4250 rm -rf conftest* 4253 rm -rf conftest*
4251 4254
4252 cat > conftest.$ac_ext <<EOF 4255 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure" 4256 #line 4257 "configure"
4254 #include "confdefs.h" 4257 #include "confdefs.h"
4255 #include <sys/types.h> 4258 #include <sys/types.h>
4256 #include <sys/socket.h> 4259 #include <sys/socket.h>
4257 int accept (int, struct sockaddr *, size_t *); 4260 int accept (int, struct sockaddr *, size_t *);
4258 4261
4259 int main() { 4262 int main() {
4260 4263
4261 ; return 0; } 4264 ; return 0; }
4262 EOF 4265 EOF
4263 if { (eval echo configure:4264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4266 if { (eval echo configure:4267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4264 rm -rf conftest* 4267 rm -rf conftest*
4265 4268
4266 echo "$ac_t""size_t" 1>&6 4269 echo "$ac_t""size_t" 1>&6
4267 { test "$extra_verbose" = "yes" && cat << \EOF 4270 { test "$extra_verbose" = "yes" && cat << \EOF
4268 Defining socklen_t = size_t 4271 Defining socklen_t = size_t
4290 rm -f conftest* 4293 rm -f conftest*
4291 fi 4294 fi
4292 rm -f conftest* 4295 rm -f conftest*
4293 4296
4294 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 4297 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4295 echo "configure:4296: checking for struct timeval" >&5 4298 echo "configure:4299: checking for struct timeval" >&5
4296 cat > conftest.$ac_ext <<EOF 4299 cat > conftest.$ac_ext <<EOF
4297 #line 4298 "configure" 4300 #line 4301 "configure"
4298 #include "confdefs.h" 4301 #include "confdefs.h"
4299 #ifdef TIME_WITH_SYS_TIME 4302 #ifdef TIME_WITH_SYS_TIME
4300 #include <sys/time.h> 4303 #include <sys/time.h>
4301 #include <time.h> 4304 #include <time.h>
4302 #else 4305 #else
4308 #endif 4311 #endif
4309 int main() { 4312 int main() {
4310 static struct timeval x; x.tv_sec = x.tv_usec; 4313 static struct timeval x; x.tv_sec = x.tv_usec;
4311 ; return 0; } 4314 ; return 0; }
4312 EOF 4315 EOF
4313 if { (eval echo configure:4314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4316 if { (eval echo configure:4317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4314 rm -rf conftest* 4317 rm -rf conftest*
4315 echo "$ac_t""yes" 1>&6 4318 echo "$ac_t""yes" 1>&6
4316 HAVE_TIMEVAL=yes 4319 HAVE_TIMEVAL=yes
4317 { test "$extra_verbose" = "yes" && cat << \EOF 4320 { test "$extra_verbose" = "yes" && cat << \EOF
4318 Defining HAVE_TIMEVAL 4321 Defining HAVE_TIMEVAL
4330 HAVE_TIMEVAL=no 4333 HAVE_TIMEVAL=no
4331 fi 4334 fi
4332 rm -f conftest* 4335 rm -f conftest*
4333 4336
4334 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4337 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4335 echo "configure:4336: checking whether struct tm is in sys/time.h or time.h" >&5 4338 echo "configure:4339: checking whether struct tm is in sys/time.h or time.h" >&5
4336 4339
4337 cat > conftest.$ac_ext <<EOF 4340 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure" 4341 #line 4342 "configure"
4339 #include "confdefs.h" 4342 #include "confdefs.h"
4340 #include <sys/types.h> 4343 #include <sys/types.h>
4341 #include <time.h> 4344 #include <time.h>
4342 int main() { 4345 int main() {
4343 struct tm *tp; tp->tm_sec; 4346 struct tm *tp; tp->tm_sec;
4344 ; return 0; } 4347 ; return 0; }
4345 EOF 4348 EOF
4346 if { (eval echo configure:4347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4349 if { (eval echo configure:4350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4347 rm -rf conftest* 4350 rm -rf conftest*
4348 ac_cv_struct_tm=time.h 4351 ac_cv_struct_tm=time.h
4349 else 4352 else
4350 echo "configure: failed program was:" >&5 4353 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5 4354 cat conftest.$ac_ext >&5
4365 } 4368 }
4366 4369
4367 fi 4370 fi
4368 4371
4369 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 4372 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4370 echo "configure:4371: checking for tm_zone in struct tm" >&5 4373 echo "configure:4374: checking for tm_zone in struct tm" >&5
4371 4374
4372 cat > conftest.$ac_ext <<EOF 4375 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure" 4376 #line 4377 "configure"
4374 #include "confdefs.h" 4377 #include "confdefs.h"
4375 #include <sys/types.h> 4378 #include <sys/types.h>
4376 #include <$ac_cv_struct_tm> 4379 #include <$ac_cv_struct_tm>
4377 int main() { 4380 int main() {
4378 struct tm tm; tm.tm_zone; 4381 struct tm tm; tm.tm_zone;
4379 ; return 0; } 4382 ; return 0; }
4380 EOF 4383 EOF
4381 if { (eval echo configure:4382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4384 if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4382 rm -rf conftest* 4385 rm -rf conftest*
4383 ac_cv_struct_tm_zone=yes 4386 ac_cv_struct_tm_zone=yes
4384 else 4387 else
4385 echo "configure: failed program was:" >&5 4388 echo "configure: failed program was:" >&5
4386 cat conftest.$ac_ext >&5 4389 cat conftest.$ac_ext >&5
4399 EOF 4402 EOF
4400 } 4403 }
4401 4404
4402 else 4405 else
4403 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4406 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4404 echo "configure:4405: checking for tzname" >&5 4407 echo "configure:4408: checking for tzname" >&5
4405 4408
4406 cat > conftest.$ac_ext <<EOF 4409 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure" 4410 #line 4411 "configure"
4408 #include "confdefs.h" 4411 #include "confdefs.h"
4409 #include <time.h> 4412 #include <time.h>
4410 #ifndef tzname /* For SGI. */ 4413 #ifndef tzname /* For SGI. */
4411 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4414 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4412 #endif 4415 #endif
4413 int main() { 4416 int main() {
4414 atoi(*tzname); 4417 atoi(*tzname);
4415 ; return 0; } 4418 ; return 0; }
4416 EOF 4419 EOF
4417 if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4418 rm -rf conftest* 4421 rm -rf conftest*
4419 ac_cv_var_tzname=yes 4422 ac_cv_var_tzname=yes
4420 else 4423 else
4421 echo "configure: failed program was:" >&5 4424 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5 4425 cat conftest.$ac_ext >&5
4438 fi 4441 fi
4439 fi 4442 fi
4440 4443
4441 4444
4442 echo $ac_n "checking for working const""... $ac_c" 1>&6 4445 echo $ac_n "checking for working const""... $ac_c" 1>&6
4443 echo "configure:4444: checking for working const" >&5 4446 echo "configure:4447: checking for working const" >&5
4444 4447
4445 cat > conftest.$ac_ext <<EOF 4448 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure" 4449 #line 4450 "configure"
4447 #include "confdefs.h" 4450 #include "confdefs.h"
4448 4451
4449 int main() { 4452 int main() {
4450 4453
4451 /* Ultrix mips cc rejects this. */ 4454 /* Ultrix mips cc rejects this. */
4490 const int foo = 10; 4493 const int foo = 10;
4491 } 4494 }
4492 4495
4493 ; return 0; } 4496 ; return 0; }
4494 EOF 4497 EOF
4495 if { (eval echo configure:4496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4498 if { (eval echo configure:4499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4496 rm -rf conftest* 4499 rm -rf conftest*
4497 ac_cv_c_const=yes 4500 ac_cv_c_const=yes
4498 else 4501 else
4499 echo "configure: failed program was:" >&5 4502 echo "configure: failed program was:" >&5
4500 cat conftest.$ac_ext >&5 4503 cat conftest.$ac_ext >&5
4515 4518
4516 fi 4519 fi
4517 4520
4518 4521
4519 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4522 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4520 echo "configure:4521: checking whether ${MAKE-make} sets \${MAKE}" >&5 4523 echo "configure:4524: checking whether ${MAKE-make} sets \${MAKE}" >&5
4521 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4524 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4522 4525
4523 cat > conftestmake <<\EOF 4526 cat > conftestmake <<\EOF
4524 all: 4527 all:
4525 @echo 'ac_maketemp="${MAKE}"' 4528 @echo 'ac_maketemp="${MAKE}"'
4540 SET_MAKE="MAKE=${MAKE-make}" 4543 SET_MAKE="MAKE=${MAKE-make}"
4541 fi 4544 fi
4542 4545
4543 4546
4544 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4547 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4545 echo "configure:4546: checking whether byte ordering is bigendian" >&5 4548 echo "configure:4549: checking whether byte ordering is bigendian" >&5
4546 4549
4547 ac_cv_c_bigendian=unknown 4550 ac_cv_c_bigendian=unknown
4548 # See if sys/param.h defines the BYTE_ORDER macro. 4551 # See if sys/param.h defines the BYTE_ORDER macro.
4549 cat > conftest.$ac_ext <<EOF 4552 cat > conftest.$ac_ext <<EOF
4550 #line 4551 "configure" 4553 #line 4554 "configure"
4551 #include "confdefs.h" 4554 #include "confdefs.h"
4552 #include <sys/types.h> 4555 #include <sys/types.h>
4553 #include <sys/param.h> 4556 #include <sys/param.h>
4554 int main() { 4557 int main() {
4555 4558
4556 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4559 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4557 bogus endian macros 4560 bogus endian macros
4558 #endif 4561 #endif
4559 ; return 0; } 4562 ; return 0; }
4560 EOF 4563 EOF
4561 if { (eval echo configure:4562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4564 if { (eval echo configure:4565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4562 rm -rf conftest* 4565 rm -rf conftest*
4563 # It does; now see whether it defined to BIG_ENDIAN or not. 4566 # It does; now see whether it defined to BIG_ENDIAN or not.
4564 cat > conftest.$ac_ext <<EOF 4567 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure" 4568 #line 4569 "configure"
4566 #include "confdefs.h" 4569 #include "confdefs.h"
4567 #include <sys/types.h> 4570 #include <sys/types.h>
4568 #include <sys/param.h> 4571 #include <sys/param.h>
4569 int main() { 4572 int main() {
4570 4573
4571 #if BYTE_ORDER != BIG_ENDIAN 4574 #if BYTE_ORDER != BIG_ENDIAN
4572 not big endian 4575 not big endian
4573 #endif 4576 #endif
4574 ; return 0; } 4577 ; return 0; }
4575 EOF 4578 EOF
4576 if { (eval echo configure:4577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4579 if { (eval echo configure:4580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4577 rm -rf conftest* 4580 rm -rf conftest*
4578 ac_cv_c_bigendian=yes 4581 ac_cv_c_bigendian=yes
4579 else 4582 else
4580 echo "configure: failed program was:" >&5 4583 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5 4584 cat conftest.$ac_ext >&5
4588 cat conftest.$ac_ext >&5 4591 cat conftest.$ac_ext >&5
4589 fi 4592 fi
4590 rm -f conftest* 4593 rm -f conftest*
4591 if test $ac_cv_c_bigendian = unknown; then 4594 if test $ac_cv_c_bigendian = unknown; then
4592 cat > conftest.$ac_ext <<EOF 4595 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure" 4596 #line 4597 "configure"
4594 #include "confdefs.h" 4597 #include "confdefs.h"
4595 main () { 4598 main () {
4596 /* Are we little or big endian? From Harbison&Steele. */ 4599 /* Are we little or big endian? From Harbison&Steele. */
4597 union 4600 union
4598 { 4601 {
4601 } u; 4604 } u;
4602 u.l = 1; 4605 u.l = 1;
4603 exit (u.c[sizeof (long) - 1] == 1); 4606 exit (u.c[sizeof (long) - 1] == 1);
4604 } 4607 }
4605 EOF 4608 EOF
4606 if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4609 if { (eval echo configure:4610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4607 then 4610 then
4608 ac_cv_c_bigendian=no 4611 ac_cv_c_bigendian=no
4609 else 4612 else
4610 conftest_rc="$?" 4613 conftest_rc="$?"
4611 echo "configure: failed program was:" >&5 4614 echo "configure: failed program was:" >&5
4628 4631
4629 fi 4632 fi
4630 4633
4631 4634
4632 echo $ac_n "checking size of short""... $ac_c" 1>&6 4635 echo $ac_n "checking size of short""... $ac_c" 1>&6
4633 echo "configure:4634: checking size of short" >&5 4636 echo "configure:4637: checking size of short" >&5
4634 4637
4635 cat > conftest.$ac_ext <<EOF 4638 cat > conftest.$ac_ext <<EOF
4636 #line 4637 "configure" 4639 #line 4640 "configure"
4637 #include "confdefs.h" 4640 #include "confdefs.h"
4638 #include <stdio.h> 4641 #include <stdio.h>
4642 #include <sys/types.h>
4639 main() 4643 main()
4640 { 4644 {
4641 FILE *f=fopen("conftestval", "w"); 4645 FILE *f=fopen("conftestval", "w");
4642 if (!f) exit(1); 4646 if (!f) exit(1);
4643 fprintf(f, "%d\n", sizeof(short)); 4647 fprintf(f, "%d\n", sizeof(short));
4644 exit(0); 4648 exit(0);
4645 } 4649 }
4646 EOF 4650 EOF
4647 if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4648 then 4652 then
4649 ac_cv_sizeof_short=`cat conftestval` 4653 ac_cv_sizeof_short=`cat conftestval`
4650 else 4654 else
4651 conftest_rc="$?" 4655 conftest_rc="$?"
4652 echo "configure: failed program was:" >&5 4656 echo "configure: failed program was:" >&5
4670 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4674 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4671 echo "*** PANIC *** Please examine config.log for compilation errors." 4675 echo "*** PANIC *** Please examine config.log for compilation errors."
4672 exit 1 4676 exit 1
4673 fi 4677 fi
4674 echo $ac_n "checking size of int""... $ac_c" 1>&6 4678 echo $ac_n "checking size of int""... $ac_c" 1>&6
4675 echo "configure:4676: checking size of int" >&5 4679 echo "configure:4680: checking size of int" >&5
4676 4680
4677 cat > conftest.$ac_ext <<EOF 4681 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure" 4682 #line 4683 "configure"
4679 #include "confdefs.h" 4683 #include "confdefs.h"
4680 #include <stdio.h> 4684 #include <stdio.h>
4685 #include <sys/types.h>
4681 main() 4686 main()
4682 { 4687 {
4683 FILE *f=fopen("conftestval", "w"); 4688 FILE *f=fopen("conftestval", "w");
4684 if (!f) exit(1); 4689 if (!f) exit(1);
4685 fprintf(f, "%d\n", sizeof(int)); 4690 fprintf(f, "%d\n", sizeof(int));
4686 exit(0); 4691 exit(0);
4687 } 4692 }
4688 EOF 4693 EOF
4689 if { (eval echo configure:4690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4694 if { (eval echo configure:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4690 then 4695 then
4691 ac_cv_sizeof_int=`cat conftestval` 4696 ac_cv_sizeof_int=`cat conftestval`
4692 else 4697 else
4693 conftest_rc="$?" 4698 conftest_rc="$?"
4694 echo "configure: failed program was:" >&5 4699 echo "configure: failed program was:" >&5
4706 EOF 4711 EOF
4707 } 4712 }
4708 4713
4709 4714
4710 echo $ac_n "checking size of long""... $ac_c" 1>&6 4715 echo $ac_n "checking size of long""... $ac_c" 1>&6
4711 echo "configure:4712: checking size of long" >&5 4716 echo "configure:4717: checking size of long" >&5
4712 4717
4713 cat > conftest.$ac_ext <<EOF 4718 cat > conftest.$ac_ext <<EOF
4714 #line 4715 "configure" 4719 #line 4720 "configure"
4715 #include "confdefs.h" 4720 #include "confdefs.h"
4716 #include <stdio.h> 4721 #include <stdio.h>
4722 #include <sys/types.h>
4717 main() 4723 main()
4718 { 4724 {
4719 FILE *f=fopen("conftestval", "w"); 4725 FILE *f=fopen("conftestval", "w");
4720 if (!f) exit(1); 4726 if (!f) exit(1);
4721 fprintf(f, "%d\n", sizeof(long)); 4727 fprintf(f, "%d\n", sizeof(long));
4722 exit(0); 4728 exit(0);
4723 } 4729 }
4724 EOF 4730 EOF
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4726 then 4732 then
4727 ac_cv_sizeof_long=`cat conftestval` 4733 ac_cv_sizeof_long=`cat conftestval`
4728 else 4734 else
4729 conftest_rc="$?" 4735 conftest_rc="$?"
4730 echo "configure: failed program was:" >&5 4736 echo "configure: failed program was:" >&5
4742 EOF 4748 EOF
4743 } 4749 }
4744 4750
4745 4751
4746 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4752 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4747 echo "configure:4748: checking size of long long" >&5 4753 echo "configure:4754: checking size of long long" >&5
4748 4754
4749 cat > conftest.$ac_ext <<EOF 4755 cat > conftest.$ac_ext <<EOF
4750 #line 4751 "configure" 4756 #line 4757 "configure"
4751 #include "confdefs.h" 4757 #include "confdefs.h"
4752 #include <stdio.h> 4758 #include <stdio.h>
4759 #include <sys/types.h>
4753 main() 4760 main()
4754 { 4761 {
4755 FILE *f=fopen("conftestval", "w"); 4762 FILE *f=fopen("conftestval", "w");
4756 if (!f) exit(1); 4763 if (!f) exit(1);
4757 fprintf(f, "%d\n", sizeof(long long)); 4764 fprintf(f, "%d\n", sizeof(long long));
4758 exit(0); 4765 exit(0);
4759 } 4766 }
4760 EOF 4767 EOF
4761 if { (eval echo configure:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4768 if { (eval echo configure:4769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4762 then 4769 then
4763 ac_cv_sizeof_long_long=`cat conftestval` 4770 ac_cv_sizeof_long_long=`cat conftestval`
4764 else 4771 else
4765 conftest_rc="$?" 4772 conftest_rc="$?"
4766 echo "configure: failed program was:" >&5 4773 echo "configure: failed program was:" >&5
4778 EOF 4785 EOF
4779 } 4786 }
4780 4787
4781 4788
4782 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4789 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4783 echo "configure:4784: checking size of void *" >&5 4790 echo "configure:4791: checking size of void *" >&5
4784 4791
4785 cat > conftest.$ac_ext <<EOF 4792 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure" 4793 #line 4794 "configure"
4787 #include "confdefs.h" 4794 #include "confdefs.h"
4788 #include <stdio.h> 4795 #include <stdio.h>
4796 #include <sys/types.h>
4789 main() 4797 main()
4790 { 4798 {
4791 FILE *f=fopen("conftestval", "w"); 4799 FILE *f=fopen("conftestval", "w");
4792 if (!f) exit(1); 4800 if (!f) exit(1);
4793 fprintf(f, "%d\n", sizeof(void *)); 4801 fprintf(f, "%d\n", sizeof(void *));
4794 exit(0); 4802 exit(0);
4795 } 4803 }
4796 EOF 4804 EOF
4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4798 then 4806 then
4799 ac_cv_sizeof_void_p=`cat conftestval` 4807 ac_cv_sizeof_void_p=`cat conftestval`
4800 else 4808 else
4801 conftest_rc="$?" 4809 conftest_rc="$?"
4802 echo "configure: failed program was:" >&5 4810 echo "configure: failed program was:" >&5
4815 } 4823 }
4816 4824
4817 4825
4818 4826
4819 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4827 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4820 echo "configure:4821: checking for long file names" >&5 4828 echo "configure:4829: checking for long file names" >&5
4821 4829
4822 ac_cv_sys_long_file_names=yes 4830 ac_cv_sys_long_file_names=yes
4823 # Test for long file names in all the places we know might matter: 4831 # Test for long file names in all the places we know might matter:
4824 # . the current directory, where building will happen 4832 # . the current directory, where building will happen
4825 # $prefix/lib where we will be installing things 4833 # $prefix/lib where we will be installing things
4861 4869
4862 fi 4870 fi
4863 4871
4864 4872
4865 echo $ac_n "checking for sin""... $ac_c" 1>&6 4873 echo $ac_n "checking for sin""... $ac_c" 1>&6
4866 echo "configure:4867: checking for sin" >&5 4874 echo "configure:4875: checking for sin" >&5
4867 4875
4868 cat > conftest.$ac_ext <<EOF 4876 cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure" 4877 #line 4878 "configure"
4870 #include "confdefs.h" 4878 #include "confdefs.h"
4871 /* System header to define __stub macros and hopefully few prototypes, 4879 /* System header to define __stub macros and hopefully few prototypes,
4872 which can conflict with char sin(); below. */ 4880 which can conflict with char sin(); below. */
4873 #include <assert.h> 4881 #include <assert.h>
4874 /* Override any gcc2 internal prototype to avoid an error. */ 4882 /* Override any gcc2 internal prototype to avoid an error. */
4887 sin(); 4895 sin();
4888 #endif 4896 #endif
4889 4897
4890 ; return 0; } 4898 ; return 0; }
4891 EOF 4899 EOF
4892 if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4900 if { (eval echo configure:4901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4893 rm -rf conftest* 4901 rm -rf conftest*
4894 eval "ac_cv_func_sin=yes" 4902 eval "ac_cv_func_sin=yes"
4895 else 4903 else
4896 echo "configure: failed program was:" >&5 4904 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5 4905 cat conftest.$ac_ext >&5
4905 : 4913 :
4906 else 4914 else
4907 echo "$ac_t""no" 1>&6 4915 echo "$ac_t""no" 1>&6
4908 4916
4909 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4917 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4910 echo "configure:4911: checking for sin in -lm" >&5 4918 echo "configure:4919: checking for sin in -lm" >&5
4911 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4919 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4912 4920
4913 xe_check_libs=" -lm " 4921 xe_check_libs=" -lm "
4914 cat > conftest.$ac_ext <<EOF 4922 cat > conftest.$ac_ext <<EOF
4915 #line 4916 "configure" 4923 #line 4924 "configure"
4916 #include "confdefs.h" 4924 #include "confdefs.h"
4917 /* Override any gcc2 internal prototype to avoid an error. */ 4925 /* Override any gcc2 internal prototype to avoid an error. */
4918 /* We use char because int might match the return type of a gcc2 4926 /* We use char because int might match the return type of a gcc2
4919 builtin and then its argument prototype would still apply. */ 4927 builtin and then its argument prototype would still apply. */
4920 char sin(); 4928 char sin();
4921 4929
4922 int main() { 4930 int main() {
4923 sin() 4931 sin()
4924 ; return 0; } 4932 ; return 0; }
4925 EOF 4933 EOF
4926 if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4927 rm -rf conftest* 4935 rm -rf conftest*
4928 eval "ac_cv_lib_$ac_lib_var=yes" 4936 eval "ac_cv_lib_$ac_lib_var=yes"
4929 else 4937 else
4930 echo "configure: failed program was:" >&5 4938 echo "configure: failed program was:" >&5
4931 cat conftest.$ac_ext >&5 4939 cat conftest.$ac_ext >&5
4956 4964
4957 fi 4965 fi
4958 4966
4959 4967
4960 cat > conftest.$ac_ext <<EOF 4968 cat > conftest.$ac_ext <<EOF
4961 #line 4962 "configure" 4969 #line 4970 "configure"
4962 #include "confdefs.h" 4970 #include "confdefs.h"
4963 #include <math.h> 4971 #include <math.h>
4964 int main() { 4972 int main() {
4965 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4973 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4966 ; return 0; } 4974 ; return 0; }
4967 EOF 4975 EOF
4968 if { (eval echo configure:4969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4969 rm -rf conftest* 4977 rm -rf conftest*
4970 { test "$extra_verbose" = "yes" && cat << \EOF 4978 { test "$extra_verbose" = "yes" && cat << \EOF
4971 Defining HAVE_INVERSE_HYPERBOLIC 4979 Defining HAVE_INVERSE_HYPERBOLIC
4972 EOF 4980 EOF
4973 cat >> confdefs.h <<\EOF 4981 cat >> confdefs.h <<\EOF
4982 rm -f conftest* 4990 rm -f conftest*
4983 4991
4984 for ac_func in mkstemp 4992 for ac_func in mkstemp
4985 do 4993 do
4986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4987 echo "configure:4988: checking for $ac_func" >&5 4995 echo "configure:4996: checking for $ac_func" >&5
4988 4996
4989 cat > conftest.$ac_ext <<EOF 4997 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure" 4998 #line 4999 "configure"
4991 #include "confdefs.h" 4999 #include "confdefs.h"
4992 /* System header to define __stub macros and hopefully few prototypes, 5000 /* System header to define __stub macros and hopefully few prototypes,
4993 which can conflict with char $ac_func(); below. */ 5001 which can conflict with char $ac_func(); below. */
4994 #include <assert.h> 5002 #include <assert.h>
4995 /* Override any gcc2 internal prototype to avoid an error. */ 5003 /* Override any gcc2 internal prototype to avoid an error. */
5008 $ac_func(); 5016 $ac_func();
5009 #endif 5017 #endif
5010 5018
5011 ; return 0; } 5019 ; return 0; }
5012 EOF 5020 EOF
5013 if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5021 if { (eval echo configure:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5014 rm -rf conftest* 5022 rm -rf conftest*
5015 eval "ac_cv_func_$ac_func=yes" 5023 eval "ac_cv_func_$ac_func=yes"
5016 else 5024 else
5017 echo "configure: failed program was:" >&5 5025 echo "configure: failed program was:" >&5
5018 cat conftest.$ac_ext >&5 5026 cat conftest.$ac_ext >&5
5037 fi 5045 fi
5038 done 5046 done
5039 5047
5040 5048
5041 echo "checking type of mail spool file locking" 1>&6 5049 echo "checking type of mail spool file locking" 1>&6
5042 echo "configure:5043: checking type of mail spool file locking" >&5 5050 echo "configure:5051: checking type of mail spool file locking" >&5
5043 for ac_func in lockf flock 5051 for ac_func in lockf flock
5044 do 5052 do
5045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5046 echo "configure:5047: checking for $ac_func" >&5 5054 echo "configure:5055: checking for $ac_func" >&5
5047 5055
5048 cat > conftest.$ac_ext <<EOF 5056 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure" 5057 #line 5058 "configure"
5050 #include "confdefs.h" 5058 #include "confdefs.h"
5051 /* System header to define __stub macros and hopefully few prototypes, 5059 /* System header to define __stub macros and hopefully few prototypes,
5052 which can conflict with char $ac_func(); below. */ 5060 which can conflict with char $ac_func(); below. */
5053 #include <assert.h> 5061 #include <assert.h>
5054 /* Override any gcc2 internal prototype to avoid an error. */ 5062 /* Override any gcc2 internal prototype to avoid an error. */
5067 $ac_func(); 5075 $ac_func();
5068 #endif 5076 #endif
5069 5077
5070 ; return 0; } 5078 ; return 0; }
5071 EOF 5079 EOF
5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5073 rm -rf conftest* 5081 rm -rf conftest*
5074 eval "ac_cv_func_$ac_func=yes" 5082 eval "ac_cv_func_$ac_func=yes"
5075 else 5083 else
5076 echo "configure: failed program was:" >&5 5084 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5 5085 cat conftest.$ac_ext >&5
5149 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 5157 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
5150 5158
5151 case "$opsys" in decosf*) 5159 case "$opsys" in decosf*)
5152 5160
5153 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 5161 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
5154 echo "configure:5155: checking for cma_open in -lpthreads" >&5 5162 echo "configure:5163: checking for cma_open in -lpthreads" >&5
5155 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 5163 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
5156 5164
5157 xe_check_libs=" -lpthreads " 5165 xe_check_libs=" -lpthreads "
5158 cat > conftest.$ac_ext <<EOF 5166 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure" 5167 #line 5168 "configure"
5160 #include "confdefs.h" 5168 #include "confdefs.h"
5161 /* Override any gcc2 internal prototype to avoid an error. */ 5169 /* Override any gcc2 internal prototype to avoid an error. */
5162 /* We use char because int might match the return type of a gcc2 5170 /* We use char because int might match the return type of a gcc2
5163 builtin and then its argument prototype would still apply. */ 5171 builtin and then its argument prototype would still apply. */
5164 char cma_open(); 5172 char cma_open();
5165 5173
5166 int main() { 5174 int main() {
5167 cma_open() 5175 cma_open()
5168 ; return 0; } 5176 ; return 0; }
5169 EOF 5177 EOF
5170 if { (eval echo configure:5171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5171 rm -rf conftest* 5179 rm -rf conftest*
5172 eval "ac_cv_lib_$ac_lib_var=yes" 5180 eval "ac_cv_lib_$ac_lib_var=yes"
5173 else 5181 else
5174 echo "configure: failed program was:" >&5 5182 echo "configure: failed program was:" >&5
5175 cat conftest.$ac_ext >&5 5183 cat conftest.$ac_ext >&5
5202 c_switch_site="$c_switch_site -threads" ;; 5210 c_switch_site="$c_switch_site -threads" ;;
5203 esac 5211 esac
5204 5212
5205 5213
5206 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 5214 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5207 echo "configure:5208: checking whether the -xildoff compiler flag is required" >&5 5215 echo "configure:5216: checking whether the -xildoff compiler flag is required" >&5
5208 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 5216 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5209 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 5217 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5210 then echo "$ac_t""no" 1>&6; 5218 then echo "$ac_t""no" 1>&6;
5211 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 5219 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
5212 fi 5220 fi
5214 fi 5222 fi
5215 5223
5216 if test "$opsys" = "sol2"; then 5224 if test "$opsys" = "sol2"; then
5217 if test "$os_release" -ge 56; then 5225 if test "$os_release" -ge 56; then
5218 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 5226 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5219 echo "configure:5220: checking for \"-z ignore\" linker flag" >&5 5227 echo "configure:5228: checking for \"-z ignore\" linker flag" >&5
5220 case "`ld -h 2>&1`" in 5228 case "`ld -h 2>&1`" in
5221 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 5229 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5222 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 5230 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5223 *) echo "$ac_t""no" 1>&6 ;; 5231 *) echo "$ac_t""no" 1>&6 ;;
5224 esac 5232 esac
5225 fi 5233 fi
5226 fi 5234 fi
5227 5235
5228 5236
5229 echo "checking "for specified window system"" 1>&6 5237 echo "checking "for specified window system"" 1>&6
5230 echo "configure:5231: checking "for specified window system"" >&5 5238 echo "configure:5239: checking "for specified window system"" >&5
5231 5239
5232 5240
5233 GNOME_CONFIG=no 5241 GNOME_CONFIG=no
5234 GTK_CONFIG=no 5242 GTK_CONFIG=no
5235 5243
5236 if test "$with_gnome" != "no"; then 5244 if test "$with_gnome" != "no"; then
5237 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6 5245 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5238 echo "configure:5239: checking for GNOME configuration script" >&5 5246 echo "configure:5247: checking for GNOME configuration script" >&5
5239 for possible in gnome-config 5247 for possible in gnome-config
5240 do 5248 do
5241 possible_version=`${possible} --version 2> /dev/null` 5249 possible_version=`${possible} --version 2> /dev/null`
5242 if test "x${possible_version}" != "x"; then 5250 if test "x${possible_version}" != "x"; then
5243 GNOME_CONFIG="${possible}" 5251 GNOME_CONFIG="${possible}"
5264 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi 5272 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5265 fi 5273 fi
5266 5274
5267 if test "$with_gtk" != "no";then 5275 if test "$with_gtk" != "no";then
5268 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6 5276 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5269 echo "configure:5270: checking for GTK configuration script" >&5 5277 echo "configure:5278: checking for GTK configuration script" >&5
5270 for possible in gtk12-config gtk14-config gtk-config 5278 for possible in gtk12-config gtk14-config gtk-config
5271 do 5279 do
5272 possible_version=`${possible} --version 2> /dev/null` 5280 possible_version=`${possible} --version 2> /dev/null`
5273 if test "x${possible_version}" != "x"; then 5281 if test "x${possible_version}" != "x"; then
5274 GTK_CONFIG="${possible}" 5282 GTK_CONFIG="${possible}"
5286 echo "$ac_t""${GTK_CONFIG}" 1>&6 5294 echo "$ac_t""${GTK_CONFIG}" 1>&6
5287 fi 5295 fi
5288 5296
5289 if test "${GTK_CONFIG}" != "no"; then 5297 if test "${GTK_CONFIG}" != "no"; then
5290 echo $ac_n "checking gtk version""... $ac_c" 1>&6 5298 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5291 echo "configure:5292: checking gtk version" >&5 5299 echo "configure:5300: checking gtk version" >&5
5292 GTK_VERSION=`${GTK_CONFIG} --version` 5300 GTK_VERSION=`${GTK_CONFIG} --version`
5293 echo "$ac_t""${GTK_VERSION}" 1>&6 5301 echo "$ac_t""${GTK_VERSION}" 1>&6
5294 5302
5295 echo $ac_n "checking gtk libs""... $ac_c" 1>&6 5303 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5296 echo "configure:5297: checking gtk libs" >&5 5304 echo "configure:5305: checking gtk libs" >&5
5297 GTK_LIBS=`${GTK_CONFIG} --libs` 5305 GTK_LIBS=`${GTK_CONFIG} --libs`
5298 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi 5306 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5299 echo "$ac_t""${GTK_LIBS}" 1>&6 5307 echo "$ac_t""${GTK_LIBS}" 1>&6
5300 5308
5301 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6 5309 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5302 echo "configure:5303: checking gtk cflags" >&5 5310 echo "configure:5311: checking gtk cflags" >&5
5303 GTK_CFLAGS=`${GTK_CONFIG} --cflags` 5311 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5304 if test "$GCC" = "yes"; then 5312 if test "$GCC" = "yes"; then
5305 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow" 5313 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5306 fi 5314 fi
5307 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi 5315 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5308 echo "$ac_t""${GTK_CFLAGS}" 1>&6 5316 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5309 5317
5310 5318
5311 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6 5319 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5312 echo "configure:5313: checking for main in -lgdk_imlib" >&5 5320 echo "configure:5321: checking for main in -lgdk_imlib" >&5
5313 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'` 5321 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5314 5322
5315 xe_check_libs=" -lgdk_imlib " 5323 xe_check_libs=" -lgdk_imlib "
5316 cat > conftest.$ac_ext <<EOF 5324 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure" 5325 #line 5326 "configure"
5318 #include "confdefs.h" 5326 #include "confdefs.h"
5319 5327
5320 int main() { 5328 int main() {
5321 main() 5329 main()
5322 ; return 0; } 5330 ; return 0; }
5323 EOF 5331 EOF
5324 if { (eval echo configure:5325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5332 if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5325 rm -rf conftest* 5333 rm -rf conftest*
5326 eval "ac_cv_lib_$ac_lib_var=yes" 5334 eval "ac_cv_lib_$ac_lib_var=yes"
5327 else 5335 else
5328 echo "configure: failed program was:" >&5 5336 echo "configure: failed program was:" >&5
5329 cat conftest.$ac_ext >&5 5337 cat conftest.$ac_ext >&5
5341 fi 5349 fi
5342 5350
5343 5351
5344 5352
5345 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6 5353 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5346 echo "configure:5347: checking for Imlib_init in -lImlib" >&5 5354 echo "configure:5355: checking for Imlib_init in -lImlib" >&5
5347 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'` 5355 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5348 5356
5349 xe_check_libs=" -lImlib " 5357 xe_check_libs=" -lImlib "
5350 cat > conftest.$ac_ext <<EOF 5358 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure" 5359 #line 5360 "configure"
5352 #include "confdefs.h" 5360 #include "confdefs.h"
5353 /* Override any gcc2 internal prototype to avoid an error. */ 5361 /* Override any gcc2 internal prototype to avoid an error. */
5354 /* We use char because int might match the return type of a gcc2 5362 /* We use char because int might match the return type of a gcc2
5355 builtin and then its argument prototype would still apply. */ 5363 builtin and then its argument prototype would still apply. */
5356 char Imlib_init(); 5364 char Imlib_init();
5357 5365
5358 int main() { 5366 int main() {
5359 Imlib_init() 5367 Imlib_init()
5360 ; return 0; } 5368 ; return 0; }
5361 EOF 5369 EOF
5362 if { (eval echo configure:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5370 if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5363 rm -rf conftest* 5371 rm -rf conftest*
5364 eval "ac_cv_lib_$ac_lib_var=yes" 5372 eval "ac_cv_lib_$ac_lib_var=yes"
5365 else 5373 else
5366 echo "configure: failed program was:" >&5 5374 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5 5375 cat conftest.$ac_ext >&5
5380 5388
5381 5389
5382 for ac_func in gdk_imlib_init 5390 for ac_func in gdk_imlib_init
5383 do 5391 do
5384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5385 echo "configure:5386: checking for $ac_func" >&5 5393 echo "configure:5394: checking for $ac_func" >&5
5386 5394
5387 cat > conftest.$ac_ext <<EOF 5395 cat > conftest.$ac_ext <<EOF
5388 #line 5389 "configure" 5396 #line 5397 "configure"
5389 #include "confdefs.h" 5397 #include "confdefs.h"
5390 /* System header to define __stub macros and hopefully few prototypes, 5398 /* System header to define __stub macros and hopefully few prototypes,
5391 which can conflict with char $ac_func(); below. */ 5399 which can conflict with char $ac_func(); below. */
5392 #include <assert.h> 5400 #include <assert.h>
5393 /* Override any gcc2 internal prototype to avoid an error. */ 5401 /* Override any gcc2 internal prototype to avoid an error. */
5406 $ac_func(); 5414 $ac_func();
5407 #endif 5415 #endif
5408 5416
5409 ; return 0; } 5417 ; return 0; }
5410 EOF 5418 EOF
5411 if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5419 if { (eval echo configure:5420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5412 rm -rf conftest* 5420 rm -rf conftest*
5413 eval "ac_cv_func_$ac_func=yes" 5421 eval "ac_cv_func_$ac_func=yes"
5414 else 5422 else
5415 echo "configure: failed program was:" >&5 5423 echo "configure: failed program was:" >&5
5416 cat conftest.$ac_ext >&5 5424 cat conftest.$ac_ext >&5
5472 LDFLAGS="${LDFLAGS} ${GTK_LIBS}" 5480 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5473 for ac_hdr in glade/glade.h glade.h 5481 for ac_hdr in glade/glade.h glade.h
5474 do 5482 do
5475 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5477 echo "configure:5478: checking for $ac_hdr" >&5 5485 echo "configure:5486: checking for $ac_hdr" >&5
5478 5486
5479 cat > conftest.$ac_ext <<EOF 5487 cat > conftest.$ac_ext <<EOF
5480 #line 5481 "configure" 5488 #line 5489 "configure"
5481 #include "confdefs.h" 5489 #include "confdefs.h"
5482 #include <$ac_hdr> 5490 #include <$ac_hdr>
5483 EOF 5491 EOF
5484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5485 { (eval echo configure:5486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5493 { (eval echo configure:5494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5487 if test -z "$ac_err"; then 5495 if test -z "$ac_err"; then
5488 rm -rf conftest* 5496 rm -rf conftest*
5489 eval "ac_cv_header_$ac_safe=yes" 5497 eval "ac_cv_header_$ac_safe=yes"
5490 else 5498 else
5511 fi 5519 fi
5512 done 5520 done
5513 5521
5514 5522
5515 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6 5523 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5516 echo "configure:5517: checking for main in -lxml" >&5 5524 echo "configure:5525: checking for main in -lxml" >&5
5517 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'` 5525 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5518 5526
5519 xe_check_libs=" -lxml " 5527 xe_check_libs=" -lxml "
5520 cat > conftest.$ac_ext <<EOF 5528 cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure" 5529 #line 5530 "configure"
5522 #include "confdefs.h" 5530 #include "confdefs.h"
5523 5531
5524 int main() { 5532 int main() {
5525 main() 5533 main()
5526 ; return 0; } 5534 ; return 0; }
5527 EOF 5535 EOF
5528 if { (eval echo configure:5529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5536 if { (eval echo configure:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5529 rm -rf conftest* 5537 rm -rf conftest*
5530 eval "ac_cv_lib_$ac_lib_var=yes" 5538 eval "ac_cv_lib_$ac_lib_var=yes"
5531 else 5539 else
5532 echo "configure: failed program was:" >&5 5540 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5 5541 cat conftest.$ac_ext >&5
5545 fi 5553 fi
5546 5554
5547 5555
5548 5556
5549 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6 5557 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5550 echo "configure:5551: checking for main in -lglade" >&5 5558 echo "configure:5559: checking for main in -lglade" >&5
5551 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'` 5559 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5552 5560
5553 xe_check_libs=" -lglade " 5561 xe_check_libs=" -lglade "
5554 cat > conftest.$ac_ext <<EOF 5562 cat > conftest.$ac_ext <<EOF
5555 #line 5556 "configure" 5563 #line 5564 "configure"
5556 #include "confdefs.h" 5564 #include "confdefs.h"
5557 5565
5558 int main() { 5566 int main() {
5559 main() 5567 main()
5560 ; return 0; } 5568 ; return 0; }
5561 EOF 5569 EOF
5562 if { (eval echo configure:5563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5570 if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5563 rm -rf conftest* 5571 rm -rf conftest*
5564 eval "ac_cv_lib_$ac_lib_var=yes" 5572 eval "ac_cv_lib_$ac_lib_var=yes"
5565 else 5573 else
5566 echo "configure: failed program was:" >&5 5574 echo "configure: failed program was:" >&5
5567 cat conftest.$ac_ext >&5 5575 cat conftest.$ac_ext >&5
5579 fi 5587 fi
5580 5588
5581 5589
5582 5590
5583 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6 5591 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5584 echo "configure:5585: checking for main in -lglade-gnome" >&5 5592 echo "configure:5593: checking for main in -lglade-gnome" >&5
5585 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'` 5593 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5586 5594
5587 xe_check_libs=" -lglade-gnome " 5595 xe_check_libs=" -lglade-gnome "
5588 cat > conftest.$ac_ext <<EOF 5596 cat > conftest.$ac_ext <<EOF
5589 #line 5590 "configure" 5597 #line 5598 "configure"
5590 #include "confdefs.h" 5598 #include "confdefs.h"
5591 5599
5592 int main() { 5600 int main() {
5593 main() 5601 main()
5594 ; return 0; } 5602 ; return 0; }
5595 EOF 5603 EOF
5596 if { (eval echo configure:5597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5604 if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5597 rm -rf conftest* 5605 rm -rf conftest*
5598 eval "ac_cv_lib_$ac_lib_var=yes" 5606 eval "ac_cv_lib_$ac_lib_var=yes"
5599 else 5607 else
5600 echo "configure: failed program was:" >&5 5608 echo "configure: failed program was:" >&5
5601 cat conftest.$ac_ext >&5 5609 cat conftest.$ac_ext >&5
5612 echo "$ac_t""no" 1>&6 5620 echo "$ac_t""no" 1>&6
5613 fi 5621 fi
5614 5622
5615 5623
5616 cat > conftest.$ac_ext <<EOF 5624 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure" 5625 #line 5626 "configure"
5618 #include "confdefs.h" 5626 #include "confdefs.h"
5619 #include <glade/glade-xml.h> 5627 #include <glade/glade-xml.h>
5620 EOF 5628 EOF
5621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5622 egrep "char \*txtdomain;" >/dev/null 2>&1; then 5630 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5671 # If we find X, set shell vars x_includes and x_libraries to the 5679 # If we find X, set shell vars x_includes and x_libraries to the
5672 # paths, otherwise set no_x=yes. 5680 # paths, otherwise set no_x=yes.
5673 # Uses ac_ vars as temps to allow command line to override cache and checks. 5681 # Uses ac_ vars as temps to allow command line to override cache and checks.
5674 # --without-x overrides everything else, but does not touch the cache. 5682 # --without-x overrides everything else, but does not touch the cache.
5675 echo $ac_n "checking for X""... $ac_c" 1>&6 5683 echo $ac_n "checking for X""... $ac_c" 1>&6
5676 echo "configure:5677: checking for X" >&5 5684 echo "configure:5685: checking for X" >&5
5677 5685
5678 # Check whether --with-x or --without-x was given. 5686 # Check whether --with-x or --without-x was given.
5679 if test "${with_x+set}" = set; then 5687 if test "${with_x+set}" = set; then
5680 withval="$with_x" 5688 withval="$with_x"
5681 : 5689 :
5731 # Guess where to find include files, by looking for this one X11 .h file. 5739 # Guess where to find include files, by looking for this one X11 .h file.
5732 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5740 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5733 5741
5734 # First, try using that file with no special directory specified. 5742 # First, try using that file with no special directory specified.
5735 cat > conftest.$ac_ext <<EOF 5743 cat > conftest.$ac_ext <<EOF
5736 #line 5737 "configure" 5744 #line 5745 "configure"
5737 #include "confdefs.h" 5745 #include "confdefs.h"
5738 #include <$x_direct_test_include> 5746 #include <$x_direct_test_include>
5739 EOF 5747 EOF
5740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5741 { (eval echo configure:5742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5749 { (eval echo configure:5750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5743 if test -z "$ac_err"; then 5751 if test -z "$ac_err"; then
5744 rm -rf conftest* 5752 rm -rf conftest*
5745 # We can compile using X headers with no special include directory. 5753 # We can compile using X headers with no special include directory.
5746 ac_x_includes= 5754 ac_x_includes=
5805 # See if we find them without any special options. 5813 # See if we find them without any special options.
5806 # Don't add to $LIBS permanently. 5814 # Don't add to $LIBS permanently.
5807 ac_save_LIBS="$LIBS" 5815 ac_save_LIBS="$LIBS"
5808 LIBS="-l$x_direct_test_library $LIBS" 5816 LIBS="-l$x_direct_test_library $LIBS"
5809 cat > conftest.$ac_ext <<EOF 5817 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure" 5818 #line 5819 "configure"
5811 #include "confdefs.h" 5819 #include "confdefs.h"
5812 5820
5813 int main() { 5821 int main() {
5814 ${x_direct_test_function}() 5822 ${x_direct_test_function}()
5815 ; return 0; } 5823 ; return 0; }
5816 EOF 5824 EOF
5817 if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5818 rm -rf conftest* 5826 rm -rf conftest*
5819 LIBS="$ac_save_LIBS" 5827 LIBS="$ac_save_LIBS"
5820 # We can link X programs with no special library path. 5828 # We can link X programs with no special library path.
5821 ac_x_libraries= 5829 ac_x_libraries=
5822 else 5830 else
5921 # For Solaris; some versions of Sun CC require a space after -R and 5929 # For Solaris; some versions of Sun CC require a space after -R and
5922 # others require no space. Words are not sufficient . . . . 5930 # others require no space. Words are not sufficient . . . .
5923 case "`(uname -sr) 2>/dev/null`" in 5931 case "`(uname -sr) 2>/dev/null`" in
5924 "SunOS 5"*) 5932 "SunOS 5"*)
5925 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5933 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5926 echo "configure:5927: checking whether -R must be followed by a space" >&5 5934 echo "configure:5935: checking whether -R must be followed by a space" >&5
5927 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5935 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5928 cat > conftest.$ac_ext <<EOF 5936 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure" 5937 #line 5938 "configure"
5930 #include "confdefs.h" 5938 #include "confdefs.h"
5931 5939
5932 int main() { 5940 int main() {
5933 5941
5934 ; return 0; } 5942 ; return 0; }
5935 EOF 5943 EOF
5936 if { (eval echo configure:5937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5944 if { (eval echo configure:5945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5937 rm -rf conftest* 5945 rm -rf conftest*
5938 ac_R_nospace=yes 5946 ac_R_nospace=yes
5939 else 5947 else
5940 echo "configure: failed program was:" >&5 5948 echo "configure: failed program was:" >&5
5941 cat conftest.$ac_ext >&5 5949 cat conftest.$ac_ext >&5
5947 echo "$ac_t""no" 1>&6 5955 echo "$ac_t""no" 1>&6
5948 X_LIBS="$X_LIBS -R$x_libraries" 5956 X_LIBS="$X_LIBS -R$x_libraries"
5949 else 5957 else
5950 LIBS="$ac_xsave_LIBS -R $x_libraries" 5958 LIBS="$ac_xsave_LIBS -R $x_libraries"
5951 cat > conftest.$ac_ext <<EOF 5959 cat > conftest.$ac_ext <<EOF
5952 #line 5953 "configure" 5960 #line 5961 "configure"
5953 #include "confdefs.h" 5961 #include "confdefs.h"
5954 5962
5955 int main() { 5963 int main() {
5956 5964
5957 ; return 0; } 5965 ; return 0; }
5958 EOF 5966 EOF
5959 if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5967 if { (eval echo configure:5968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5960 rm -rf conftest* 5968 rm -rf conftest*
5961 ac_R_space=yes 5969 ac_R_space=yes
5962 else 5970 else
5963 echo "configure: failed program was:" >&5 5971 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5 5972 cat conftest.$ac_ext >&5
5990 if test "$with_dnet" = "no" ; then 5998 if test "$with_dnet" = "no" ; then
5991 ac_cv_lib_dnet_dnet_ntoa=no 5999 ac_cv_lib_dnet_dnet_ntoa=no
5992 else 6000 else
5993 6001
5994 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 6002 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5995 echo "configure:5996: checking for dnet_ntoa in -ldnet" >&5 6003 echo "configure:6004: checking for dnet_ntoa in -ldnet" >&5
5996 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 6004 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5997 6005
5998 xe_check_libs=" -ldnet " 6006 xe_check_libs=" -ldnet "
5999 cat > conftest.$ac_ext <<EOF 6007 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure" 6008 #line 6009 "configure"
6001 #include "confdefs.h" 6009 #include "confdefs.h"
6002 /* Override any gcc2 internal prototype to avoid an error. */ 6010 /* Override any gcc2 internal prototype to avoid an error. */
6003 /* We use char because int might match the return type of a gcc2 6011 /* We use char because int might match the return type of a gcc2
6004 builtin and then its argument prototype would still apply. */ 6012 builtin and then its argument prototype would still apply. */
6005 char dnet_ntoa(); 6013 char dnet_ntoa();
6006 6014
6007 int main() { 6015 int main() {
6008 dnet_ntoa() 6016 dnet_ntoa()
6009 ; return 0; } 6017 ; return 0; }
6010 EOF 6018 EOF
6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6019 if { (eval echo configure:6020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6012 rm -rf conftest* 6020 rm -rf conftest*
6013 eval "ac_cv_lib_$ac_lib_var=yes" 6021 eval "ac_cv_lib_$ac_lib_var=yes"
6014 else 6022 else
6015 echo "configure: failed program was:" >&5 6023 echo "configure: failed program was:" >&5
6016 cat conftest.$ac_ext >&5 6024 cat conftest.$ac_ext >&5
6030 fi 6038 fi
6031 6039
6032 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6040 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6033 6041
6034 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 6042 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6035 echo "configure:6036: checking for dnet_ntoa in -ldnet_stub" >&5 6043 echo "configure:6044: checking for dnet_ntoa in -ldnet_stub" >&5
6036 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 6044 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6037 6045
6038 xe_check_libs=" -ldnet_stub " 6046 xe_check_libs=" -ldnet_stub "
6039 cat > conftest.$ac_ext <<EOF 6047 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure" 6048 #line 6049 "configure"
6041 #include "confdefs.h" 6049 #include "confdefs.h"
6042 /* Override any gcc2 internal prototype to avoid an error. */ 6050 /* Override any gcc2 internal prototype to avoid an error. */
6043 /* We use char because int might match the return type of a gcc2 6051 /* We use char because int might match the return type of a gcc2
6044 builtin and then its argument prototype would still apply. */ 6052 builtin and then its argument prototype would still apply. */
6045 char dnet_ntoa(); 6053 char dnet_ntoa();
6046 6054
6047 int main() { 6055 int main() {
6048 dnet_ntoa() 6056 dnet_ntoa()
6049 ; return 0; } 6057 ; return 0; }
6050 EOF 6058 EOF
6051 if { (eval echo configure:6052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6059 if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6052 rm -rf conftest* 6060 rm -rf conftest*
6053 eval "ac_cv_lib_$ac_lib_var=yes" 6061 eval "ac_cv_lib_$ac_lib_var=yes"
6054 else 6062 else
6055 echo "configure: failed program was:" >&5 6063 echo "configure: failed program was:" >&5
6056 cat conftest.$ac_ext >&5 6064 cat conftest.$ac_ext >&5
6075 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 6083 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6076 # needs -lnsl. 6084 # needs -lnsl.
6077 # The nsl library prevents programs from opening the X display 6085 # The nsl library prevents programs from opening the X display
6078 # on Irix 5.2, according to dickey@clark.net. 6086 # on Irix 5.2, according to dickey@clark.net.
6079 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 6087 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6080 echo "configure:6081: checking for gethostbyname" >&5 6088 echo "configure:6089: checking for gethostbyname" >&5
6081 6089
6082 cat > conftest.$ac_ext <<EOF 6090 cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure" 6091 #line 6092 "configure"
6084 #include "confdefs.h" 6092 #include "confdefs.h"
6085 /* System header to define __stub macros and hopefully few prototypes, 6093 /* System header to define __stub macros and hopefully few prototypes,
6086 which can conflict with char gethostbyname(); below. */ 6094 which can conflict with char gethostbyname(); below. */
6087 #include <assert.h> 6095 #include <assert.h>
6088 /* Override any gcc2 internal prototype to avoid an error. */ 6096 /* Override any gcc2 internal prototype to avoid an error. */
6101 gethostbyname(); 6109 gethostbyname();
6102 #endif 6110 #endif
6103 6111
6104 ; return 0; } 6112 ; return 0; }
6105 EOF 6113 EOF
6106 if { (eval echo configure:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6114 if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6107 rm -rf conftest* 6115 rm -rf conftest*
6108 eval "ac_cv_func_gethostbyname=yes" 6116 eval "ac_cv_func_gethostbyname=yes"
6109 else 6117 else
6110 echo "configure: failed program was:" >&5 6118 echo "configure: failed program was:" >&5
6111 cat conftest.$ac_ext >&5 6119 cat conftest.$ac_ext >&5
6122 fi 6130 fi
6123 6131
6124 if test $ac_cv_func_gethostbyname = no; then 6132 if test $ac_cv_func_gethostbyname = no; then
6125 6133
6126 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 6134 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6127 echo "configure:6128: checking for gethostbyname in -lnsl" >&5 6135 echo "configure:6136: checking for gethostbyname in -lnsl" >&5
6128 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 6136 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6129 6137
6130 xe_check_libs=" -lnsl " 6138 xe_check_libs=" -lnsl "
6131 cat > conftest.$ac_ext <<EOF 6139 cat > conftest.$ac_ext <<EOF
6132 #line 6133 "configure" 6140 #line 6141 "configure"
6133 #include "confdefs.h" 6141 #include "confdefs.h"
6134 /* Override any gcc2 internal prototype to avoid an error. */ 6142 /* Override any gcc2 internal prototype to avoid an error. */
6135 /* We use char because int might match the return type of a gcc2 6143 /* We use char because int might match the return type of a gcc2
6136 builtin and then its argument prototype would still apply. */ 6144 builtin and then its argument prototype would still apply. */
6137 char gethostbyname(); 6145 char gethostbyname();
6138 6146
6139 int main() { 6147 int main() {
6140 gethostbyname() 6148 gethostbyname()
6141 ; return 0; } 6149 ; return 0; }
6142 EOF 6150 EOF
6143 if { (eval echo configure:6144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6151 if { (eval echo configure:6152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6144 rm -rf conftest* 6152 rm -rf conftest*
6145 eval "ac_cv_lib_$ac_lib_var=yes" 6153 eval "ac_cv_lib_$ac_lib_var=yes"
6146 else 6154 else
6147 echo "configure: failed program was:" >&5 6155 echo "configure: failed program was:" >&5
6148 cat conftest.$ac_ext >&5 6156 cat conftest.$ac_ext >&5
6168 # on later versions), says simon@lia.di.epfl.ch: it contains 6176 # on later versions), says simon@lia.di.epfl.ch: it contains
6169 # gethostby* variants that don't use the nameserver (or something). 6177 # gethostby* variants that don't use the nameserver (or something).
6170 # -lsocket must be given before -lnsl if both are needed. 6178 # -lsocket must be given before -lnsl if both are needed.
6171 # We assume that if connect needs -lnsl, so does gethostbyname. 6179 # We assume that if connect needs -lnsl, so does gethostbyname.
6172 echo $ac_n "checking for connect""... $ac_c" 1>&6 6180 echo $ac_n "checking for connect""... $ac_c" 1>&6
6173 echo "configure:6174: checking for connect" >&5 6181 echo "configure:6182: checking for connect" >&5
6174 6182
6175 cat > conftest.$ac_ext <<EOF 6183 cat > conftest.$ac_ext <<EOF
6176 #line 6177 "configure" 6184 #line 6185 "configure"
6177 #include "confdefs.h" 6185 #include "confdefs.h"
6178 /* System header to define __stub macros and hopefully few prototypes, 6186 /* System header to define __stub macros and hopefully few prototypes,
6179 which can conflict with char connect(); below. */ 6187 which can conflict with char connect(); below. */
6180 #include <assert.h> 6188 #include <assert.h>
6181 /* Override any gcc2 internal prototype to avoid an error. */ 6189 /* Override any gcc2 internal prototype to avoid an error. */
6194 connect(); 6202 connect();
6195 #endif 6203 #endif
6196 6204
6197 ; return 0; } 6205 ; return 0; }
6198 EOF 6206 EOF
6199 if { (eval echo configure:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6207 if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6200 rm -rf conftest* 6208 rm -rf conftest*
6201 eval "ac_cv_func_connect=yes" 6209 eval "ac_cv_func_connect=yes"
6202 else 6210 else
6203 echo "configure: failed program was:" >&5 6211 echo "configure: failed program was:" >&5
6204 cat conftest.$ac_ext >&5 6212 cat conftest.$ac_ext >&5
6217 if test $ac_cv_func_connect = no; then 6225 if test $ac_cv_func_connect = no; then
6218 6226
6219 xe_msg_checking="for connect in -lsocket" 6227 xe_msg_checking="for connect in -lsocket"
6220 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6228 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6221 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6229 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6222 echo "configure:6223: checking "$xe_msg_checking"" >&5 6230 echo "configure:6231: checking "$xe_msg_checking"" >&5
6223 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 6231 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6224 6232
6225 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 6233 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6226 cat > conftest.$ac_ext <<EOF 6234 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure" 6235 #line 6236 "configure"
6228 #include "confdefs.h" 6236 #include "confdefs.h"
6229 /* Override any gcc2 internal prototype to avoid an error. */ 6237 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2 6238 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */ 6239 builtin and then its argument prototype would still apply. */
6232 char connect(); 6240 char connect();
6233 6241
6234 int main() { 6242 int main() {
6235 connect() 6243 connect()
6236 ; return 0; } 6244 ; return 0; }
6237 EOF 6245 EOF
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6246 if { (eval echo configure:6247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6239 rm -rf conftest* 6247 rm -rf conftest*
6240 eval "ac_cv_lib_$ac_lib_var=yes" 6248 eval "ac_cv_lib_$ac_lib_var=yes"
6241 else 6249 else
6242 echo "configure: failed program was:" >&5 6250 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5 6251 cat conftest.$ac_ext >&5
6257 6265
6258 fi 6266 fi
6259 6267
6260 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 6268 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6261 echo $ac_n "checking for remove""... $ac_c" 1>&6 6269 echo $ac_n "checking for remove""... $ac_c" 1>&6
6262 echo "configure:6263: checking for remove" >&5 6270 echo "configure:6271: checking for remove" >&5
6263 6271
6264 cat > conftest.$ac_ext <<EOF 6272 cat > conftest.$ac_ext <<EOF
6265 #line 6266 "configure" 6273 #line 6274 "configure"
6266 #include "confdefs.h" 6274 #include "confdefs.h"
6267 /* System header to define __stub macros and hopefully few prototypes, 6275 /* System header to define __stub macros and hopefully few prototypes,
6268 which can conflict with char remove(); below. */ 6276 which can conflict with char remove(); below. */
6269 #include <assert.h> 6277 #include <assert.h>
6270 /* Override any gcc2 internal prototype to avoid an error. */ 6278 /* Override any gcc2 internal prototype to avoid an error. */
6283 remove(); 6291 remove();
6284 #endif 6292 #endif
6285 6293
6286 ; return 0; } 6294 ; return 0; }
6287 EOF 6295 EOF
6288 if { (eval echo configure:6289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6296 if { (eval echo configure:6297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6289 rm -rf conftest* 6297 rm -rf conftest*
6290 eval "ac_cv_func_remove=yes" 6298 eval "ac_cv_func_remove=yes"
6291 else 6299 else
6292 echo "configure: failed program was:" >&5 6300 echo "configure: failed program was:" >&5
6293 cat conftest.$ac_ext >&5 6301 cat conftest.$ac_ext >&5
6304 fi 6312 fi
6305 6313
6306 if test $ac_cv_func_remove = no; then 6314 if test $ac_cv_func_remove = no; then
6307 6315
6308 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 6316 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6309 echo "configure:6310: checking for remove in -lposix" >&5 6317 echo "configure:6318: checking for remove in -lposix" >&5
6310 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 6318 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6311 6319
6312 xe_check_libs=" -lposix " 6320 xe_check_libs=" -lposix "
6313 cat > conftest.$ac_ext <<EOF 6321 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure" 6322 #line 6323 "configure"
6315 #include "confdefs.h" 6323 #include "confdefs.h"
6316 /* Override any gcc2 internal prototype to avoid an error. */ 6324 /* Override any gcc2 internal prototype to avoid an error. */
6317 /* We use char because int might match the return type of a gcc2 6325 /* We use char because int might match the return type of a gcc2
6318 builtin and then its argument prototype would still apply. */ 6326 builtin and then its argument prototype would still apply. */
6319 char remove(); 6327 char remove();
6320 6328
6321 int main() { 6329 int main() {
6322 remove() 6330 remove()
6323 ; return 0; } 6331 ; return 0; }
6324 EOF 6332 EOF
6325 if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6333 if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6326 rm -rf conftest* 6334 rm -rf conftest*
6327 eval "ac_cv_lib_$ac_lib_var=yes" 6335 eval "ac_cv_lib_$ac_lib_var=yes"
6328 else 6336 else
6329 echo "configure: failed program was:" >&5 6337 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5 6338 cat conftest.$ac_ext >&5
6344 6352
6345 fi 6353 fi
6346 6354
6347 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6355 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6348 echo $ac_n "checking for shmat""... $ac_c" 1>&6 6356 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6349 echo "configure:6350: checking for shmat" >&5 6357 echo "configure:6358: checking for shmat" >&5
6350 6358
6351 cat > conftest.$ac_ext <<EOF 6359 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure" 6360 #line 6361 "configure"
6353 #include "confdefs.h" 6361 #include "confdefs.h"
6354 /* System header to define __stub macros and hopefully few prototypes, 6362 /* System header to define __stub macros and hopefully few prototypes,
6355 which can conflict with char shmat(); below. */ 6363 which can conflict with char shmat(); below. */
6356 #include <assert.h> 6364 #include <assert.h>
6357 /* Override any gcc2 internal prototype to avoid an error. */ 6365 /* Override any gcc2 internal prototype to avoid an error. */
6370 shmat(); 6378 shmat();
6371 #endif 6379 #endif
6372 6380
6373 ; return 0; } 6381 ; return 0; }
6374 EOF 6382 EOF
6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6383 if { (eval echo configure:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6376 rm -rf conftest* 6384 rm -rf conftest*
6377 eval "ac_cv_func_shmat=yes" 6385 eval "ac_cv_func_shmat=yes"
6378 else 6386 else
6379 echo "configure: failed program was:" >&5 6387 echo "configure: failed program was:" >&5
6380 cat conftest.$ac_ext >&5 6388 cat conftest.$ac_ext >&5
6391 fi 6399 fi
6392 6400
6393 if test $ac_cv_func_shmat = no; then 6401 if test $ac_cv_func_shmat = no; then
6394 6402
6395 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 6403 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6396 echo "configure:6397: checking for shmat in -lipc" >&5 6404 echo "configure:6405: checking for shmat in -lipc" >&5
6397 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 6405 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6398 6406
6399 xe_check_libs=" -lipc " 6407 xe_check_libs=" -lipc "
6400 cat > conftest.$ac_ext <<EOF 6408 cat > conftest.$ac_ext <<EOF
6401 #line 6402 "configure" 6409 #line 6410 "configure"
6402 #include "confdefs.h" 6410 #include "confdefs.h"
6403 /* Override any gcc2 internal prototype to avoid an error. */ 6411 /* Override any gcc2 internal prototype to avoid an error. */
6404 /* We use char because int might match the return type of a gcc2 6412 /* We use char because int might match the return type of a gcc2
6405 builtin and then its argument prototype would still apply. */ 6413 builtin and then its argument prototype would still apply. */
6406 char shmat(); 6414 char shmat();
6407 6415
6408 int main() { 6416 int main() {
6409 shmat() 6417 shmat()
6410 ; return 0; } 6418 ; return 0; }
6411 EOF 6419 EOF
6412 if { (eval echo configure:6413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6420 if { (eval echo configure:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6413 rm -rf conftest* 6421 rm -rf conftest*
6414 eval "ac_cv_lib_$ac_lib_var=yes" 6422 eval "ac_cv_lib_$ac_lib_var=yes"
6415 else 6423 else
6416 echo "configure: failed program was:" >&5 6424 echo "configure: failed program was:" >&5
6417 cat conftest.$ac_ext >&5 6425 cat conftest.$ac_ext >&5
6443 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 6451 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6444 6452
6445 xe_msg_checking="for IceConnectionNumber in -lICE" 6453 xe_msg_checking="for IceConnectionNumber in -lICE"
6446 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6454 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6447 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6455 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6448 echo "configure:6449: checking "$xe_msg_checking"" >&5 6456 echo "configure:6457: checking "$xe_msg_checking"" >&5
6449 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 6457 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6450 6458
6451 xe_check_libs=" -lICE $X_EXTRA_LIBS" 6459 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6452 cat > conftest.$ac_ext <<EOF 6460 cat > conftest.$ac_ext <<EOF
6453 #line 6454 "configure" 6461 #line 6462 "configure"
6454 #include "confdefs.h" 6462 #include "confdefs.h"
6455 /* Override any gcc2 internal prototype to avoid an error. */ 6463 /* Override any gcc2 internal prototype to avoid an error. */
6456 /* We use char because int might match the return type of a gcc2 6464 /* We use char because int might match the return type of a gcc2
6457 builtin and then its argument prototype would still apply. */ 6465 builtin and then its argument prototype would still apply. */
6458 char IceConnectionNumber(); 6466 char IceConnectionNumber();
6459 6467
6460 int main() { 6468 int main() {
6461 IceConnectionNumber() 6469 IceConnectionNumber()
6462 ; return 0; } 6470 ; return 0; }
6463 EOF 6471 EOF
6464 if { (eval echo configure:6465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6472 if { (eval echo configure:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6465 rm -rf conftest* 6473 rm -rf conftest*
6466 eval "ac_cv_lib_$ac_lib_var=yes" 6474 eval "ac_cv_lib_$ac_lib_var=yes"
6467 else 6475 else
6468 echo "configure: failed program was:" >&5 6476 echo "configure: failed program was:" >&5
6469 cat conftest.$ac_ext >&5 6477 cat conftest.$ac_ext >&5
6505 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi 6513 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6506 6514
6507 6515
6508 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6516 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6509 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6517 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6510 echo "configure:6511: checking for Xm/Xm.h" >&5 6518 echo "configure:6519: checking for Xm/Xm.h" >&5
6511 6519
6512 cat > conftest.$ac_ext <<EOF 6520 cat > conftest.$ac_ext <<EOF
6513 #line 6514 "configure" 6521 #line 6522 "configure"
6514 #include "confdefs.h" 6522 #include "confdefs.h"
6515 #include <Xm/Xm.h> 6523 #include <Xm/Xm.h>
6516 EOF 6524 EOF
6517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6518 { (eval echo configure:6519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6526 { (eval echo configure:6527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6520 if test -z "$ac_err"; then 6528 if test -z "$ac_err"; then
6521 rm -rf conftest* 6529 rm -rf conftest*
6522 eval "ac_cv_header_$ac_safe=yes" 6530 eval "ac_cv_header_$ac_safe=yes"
6523 else 6531 else
6530 rm -f conftest* 6538 rm -f conftest*
6531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6532 echo "$ac_t""yes" 1>&6 6540 echo "$ac_t""yes" 1>&6
6533 6541
6534 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6542 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6535 echo "configure:6536: checking for XmStringFree in -lXm" >&5 6543 echo "configure:6544: checking for XmStringFree in -lXm" >&5
6536 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6544 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6537 6545
6538 xe_check_libs=" -lXm " 6546 xe_check_libs=" -lXm "
6539 cat > conftest.$ac_ext <<EOF 6547 cat > conftest.$ac_ext <<EOF
6540 #line 6541 "configure" 6548 #line 6549 "configure"
6541 #include "confdefs.h" 6549 #include "confdefs.h"
6542 /* Override any gcc2 internal prototype to avoid an error. */ 6550 /* Override any gcc2 internal prototype to avoid an error. */
6543 /* We use char because int might match the return type of a gcc2 6551 /* We use char because int might match the return type of a gcc2
6544 builtin and then its argument prototype would still apply. */ 6552 builtin and then its argument prototype would still apply. */
6545 char XmStringFree(); 6553 char XmStringFree();
6546 6554
6547 int main() { 6555 int main() {
6548 XmStringFree() 6556 XmStringFree()
6549 ; return 0; } 6557 ; return 0; }
6550 EOF 6558 EOF
6551 if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6559 if { (eval echo configure:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6552 rm -rf conftest* 6560 rm -rf conftest*
6553 eval "ac_cv_lib_$ac_lib_var=yes" 6561 eval "ac_cv_lib_$ac_lib_var=yes"
6554 else 6562 else
6555 echo "configure: failed program was:" >&5 6563 echo "configure: failed program was:" >&5
6556 cat conftest.$ac_ext >&5 6564 cat conftest.$ac_ext >&5
6698 EOF 6706 EOF
6699 } 6707 }
6700 6708
6701 6709
6702 echo "checking for X defines extracted by xmkmf" 1>&6 6710 echo "checking for X defines extracted by xmkmf" 1>&6
6703 echo "configure:6704: checking for X defines extracted by xmkmf" >&5 6711 echo "configure:6712: checking for X defines extracted by xmkmf" >&5
6704 rm -fr conftestdir 6712 rm -fr conftestdir
6705 if mkdir conftestdir; then 6713 if mkdir conftestdir; then
6706 cd conftestdir 6714 cd conftestdir
6707 cat > Imakefile <<'EOF' 6715 cat > Imakefile <<'EOF'
6708 xetest: 6716 xetest:
6747 done 6755 done
6748 fi 6756 fi
6749 6757
6750 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 6758 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6751 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 6759 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6752 echo "configure:6753: checking for X11/Intrinsic.h" >&5 6760 echo "configure:6761: checking for X11/Intrinsic.h" >&5
6753 6761
6754 cat > conftest.$ac_ext <<EOF 6762 cat > conftest.$ac_ext <<EOF
6755 #line 6756 "configure" 6763 #line 6764 "configure"
6756 #include "confdefs.h" 6764 #include "confdefs.h"
6757 #include <X11/Intrinsic.h> 6765 #include <X11/Intrinsic.h>
6758 EOF 6766 EOF
6759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6760 { (eval echo configure:6761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6768 { (eval echo configure:6769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6762 if test -z "$ac_err"; then 6770 if test -z "$ac_err"; then
6763 rm -rf conftest* 6771 rm -rf conftest*
6764 eval "ac_cv_header_$ac_safe=yes" 6772 eval "ac_cv_header_$ac_safe=yes"
6765 else 6773 else
6779 fi 6787 fi
6780 6788
6781 6789
6782 6790
6783 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 6791 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6784 echo "configure:6785: checking for XOpenDisplay in -lX11" >&5 6792 echo "configure:6793: checking for XOpenDisplay in -lX11" >&5
6785 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 6793 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6786 6794
6787 xe_check_libs=" -lX11 " 6795 xe_check_libs=" -lX11 "
6788 cat > conftest.$ac_ext <<EOF 6796 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure" 6797 #line 6798 "configure"
6790 #include "confdefs.h" 6798 #include "confdefs.h"
6791 /* Override any gcc2 internal prototype to avoid an error. */ 6799 /* Override any gcc2 internal prototype to avoid an error. */
6792 /* We use char because int might match the return type of a gcc2 6800 /* We use char because int might match the return type of a gcc2
6793 builtin and then its argument prototype would still apply. */ 6801 builtin and then its argument prototype would still apply. */
6794 char XOpenDisplay(); 6802 char XOpenDisplay();
6795 6803
6796 int main() { 6804 int main() {
6797 XOpenDisplay() 6805 XOpenDisplay()
6798 ; return 0; } 6806 ; return 0; }
6799 EOF 6807 EOF
6800 if { (eval echo configure:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6808 if { (eval echo configure:6809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6801 rm -rf conftest* 6809 rm -rf conftest*
6802 eval "ac_cv_lib_$ac_lib_var=yes" 6810 eval "ac_cv_lib_$ac_lib_var=yes"
6803 else 6811 else
6804 echo "configure: failed program was:" >&5 6812 echo "configure: failed program was:" >&5
6805 cat conftest.$ac_ext >&5 6813 cat conftest.$ac_ext >&5
6820 if test "$have_lib_x11" != "yes"; then 6828 if test "$have_lib_x11" != "yes"; then
6821 6829
6822 xe_msg_checking="for XGetFontProperty in -lX11" 6830 xe_msg_checking="for XGetFontProperty in -lX11"
6823 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 6831 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6824 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6832 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6825 echo "configure:6826: checking "$xe_msg_checking"" >&5 6833 echo "configure:6834: checking "$xe_msg_checking"" >&5
6826 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 6834 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6827 6835
6828 xe_check_libs=" -lX11 -b i486-linuxaout" 6836 xe_check_libs=" -lX11 -b i486-linuxaout"
6829 cat > conftest.$ac_ext <<EOF 6837 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure" 6838 #line 6839 "configure"
6831 #include "confdefs.h" 6839 #include "confdefs.h"
6832 /* Override any gcc2 internal prototype to avoid an error. */ 6840 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2 6841 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */ 6842 builtin and then its argument prototype would still apply. */
6835 char XGetFontProperty(); 6843 char XGetFontProperty();
6836 6844
6837 int main() { 6845 int main() {
6838 XGetFontProperty() 6846 XGetFontProperty()
6839 ; return 0; } 6847 ; return 0; }
6840 EOF 6848 EOF
6841 if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6849 if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6842 rm -rf conftest* 6850 rm -rf conftest*
6843 eval "ac_cv_lib_$ac_lib_var=yes" 6851 eval "ac_cv_lib_$ac_lib_var=yes"
6844 else 6852 else
6845 echo "configure: failed program was:" >&5 6853 echo "configure: failed program was:" >&5
6846 cat conftest.$ac_ext >&5 6854 cat conftest.$ac_ext >&5
6863 libs_x="-lX11" 6871 libs_x="-lX11"
6864 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 6872 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6865 6873
6866 6874
6867 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 6875 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6868 echo "configure:6869: checking for XShapeSelectInput in -lXext" >&5 6876 echo "configure:6877: checking for XShapeSelectInput in -lXext" >&5
6869 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 6877 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6870 6878
6871 xe_check_libs=" -lXext " 6879 xe_check_libs=" -lXext "
6872 cat > conftest.$ac_ext <<EOF 6880 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure" 6881 #line 6882 "configure"
6874 #include "confdefs.h" 6882 #include "confdefs.h"
6875 /* Override any gcc2 internal prototype to avoid an error. */ 6883 /* Override any gcc2 internal prototype to avoid an error. */
6876 /* We use char because int might match the return type of a gcc2 6884 /* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */ 6885 builtin and then its argument prototype would still apply. */
6878 char XShapeSelectInput(); 6886 char XShapeSelectInput();
6879 6887
6880 int main() { 6888 int main() {
6881 XShapeSelectInput() 6889 XShapeSelectInput()
6882 ; return 0; } 6890 ; return 0; }
6883 EOF 6891 EOF
6884 if { (eval echo configure:6885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6892 if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6885 rm -rf conftest* 6893 rm -rf conftest*
6886 eval "ac_cv_lib_$ac_lib_var=yes" 6894 eval "ac_cv_lib_$ac_lib_var=yes"
6887 else 6895 else
6888 echo "configure: failed program was:" >&5 6896 echo "configure: failed program was:" >&5
6889 cat conftest.$ac_ext >&5 6897 cat conftest.$ac_ext >&5
6902 6910
6903 6911
6904 6912
6905 6913
6906 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 6914 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6907 echo "configure:6908: checking for XtOpenDisplay in -lXt" >&5 6915 echo "configure:6916: checking for XtOpenDisplay in -lXt" >&5
6908 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 6916 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6909 6917
6910 xe_check_libs=" -lXt " 6918 xe_check_libs=" -lXt "
6911 cat > conftest.$ac_ext <<EOF 6919 cat > conftest.$ac_ext <<EOF
6912 #line 6913 "configure" 6920 #line 6921 "configure"
6913 #include "confdefs.h" 6921 #include "confdefs.h"
6914 /* Override any gcc2 internal prototype to avoid an error. */ 6922 /* Override any gcc2 internal prototype to avoid an error. */
6915 /* We use char because int might match the return type of a gcc2 6923 /* We use char because int might match the return type of a gcc2
6916 builtin and then its argument prototype would still apply. */ 6924 builtin and then its argument prototype would still apply. */
6917 char XtOpenDisplay(); 6925 char XtOpenDisplay();
6918 6926
6919 int main() { 6927 int main() {
6920 XtOpenDisplay() 6928 XtOpenDisplay()
6921 ; return 0; } 6929 ; return 0; }
6922 EOF 6930 EOF
6923 if { (eval echo configure:6924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6931 if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6924 rm -rf conftest* 6932 rm -rf conftest*
6925 eval "ac_cv_lib_$ac_lib_var=yes" 6933 eval "ac_cv_lib_$ac_lib_var=yes"
6926 else 6934 else
6927 echo "configure: failed program was:" >&5 6935 echo "configure: failed program was:" >&5
6928 cat conftest.$ac_ext >&5 6936 cat conftest.$ac_ext >&5
6941 fi 6949 fi
6942 6950
6943 6951
6944 6952
6945 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 6953 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6946 echo "configure:6947: checking the version of X11 being used" >&5 6954 echo "configure:6955: checking the version of X11 being used" >&5
6947 cat > conftest.$ac_ext <<EOF 6955 cat > conftest.$ac_ext <<EOF
6948 #line 6949 "configure" 6956 #line 6957 "configure"
6949 #include "confdefs.h" 6957 #include "confdefs.h"
6950 #include <X11/Intrinsic.h> 6958 #include <X11/Intrinsic.h>
6951 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 6959 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6952 EOF 6960 EOF
6953 if { (eval echo configure:6954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6961 if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6954 then 6962 then
6955 ./conftest foobar; x11_release=$? 6963 ./conftest foobar; x11_release=$?
6956 else 6964 else
6957 conftest_rc="$?" 6965 conftest_rc="$?"
6958 echo "configure: failed program was:" >&5 6966 echo "configure: failed program was:" >&5
6979 fi 6987 fi
6980 6988
6981 for ac_func in XConvertCase 6989 for ac_func in XConvertCase
6982 do 6990 do
6983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6984 echo "configure:6985: checking for $ac_func" >&5 6992 echo "configure:6993: checking for $ac_func" >&5
6985 6993
6986 cat > conftest.$ac_ext <<EOF 6994 cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure" 6995 #line 6996 "configure"
6988 #include "confdefs.h" 6996 #include "confdefs.h"
6989 /* System header to define __stub macros and hopefully few prototypes, 6997 /* System header to define __stub macros and hopefully few prototypes,
6990 which can conflict with char $ac_func(); below. */ 6998 which can conflict with char $ac_func(); below. */
6991 #include <assert.h> 6999 #include <assert.h>
6992 /* Override any gcc2 internal prototype to avoid an error. */ 7000 /* Override any gcc2 internal prototype to avoid an error. */
7005 $ac_func(); 7013 $ac_func();
7006 #endif 7014 #endif
7007 7015
7008 ; return 0; } 7016 ; return 0; }
7009 EOF 7017 EOF
7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7018 if { (eval echo configure:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7011 rm -rf conftest* 7019 rm -rf conftest*
7012 eval "ac_cv_func_$ac_func=yes" 7020 eval "ac_cv_func_$ac_func=yes"
7013 else 7021 else
7014 echo "configure: failed program was:" >&5 7022 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5 7023 cat conftest.$ac_ext >&5
7037 7045
7038 for ac_hdr in X11/Xlocale.h 7046 for ac_hdr in X11/Xlocale.h
7039 do 7047 do
7040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7048 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7049 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7042 echo "configure:7043: checking for $ac_hdr" >&5 7050 echo "configure:7051: checking for $ac_hdr" >&5
7043 7051
7044 cat > conftest.$ac_ext <<EOF 7052 cat > conftest.$ac_ext <<EOF
7045 #line 7046 "configure" 7053 #line 7054 "configure"
7046 #include "confdefs.h" 7054 #include "confdefs.h"
7047 #include <$ac_hdr> 7055 #include <$ac_hdr>
7048 EOF 7056 EOF
7049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7050 { (eval echo configure:7051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7058 { (eval echo configure:7059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7052 if test -z "$ac_err"; then 7060 if test -z "$ac_err"; then
7053 rm -rf conftest* 7061 rm -rf conftest*
7054 eval "ac_cv_header_$ac_safe=yes" 7062 eval "ac_cv_header_$ac_safe=yes"
7055 else 7063 else
7078 7086
7079 7087
7080 for ac_func in XRegisterIMInstantiateCallback 7088 for ac_func in XRegisterIMInstantiateCallback
7081 do 7089 do
7082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7083 echo "configure:7084: checking for $ac_func" >&5 7091 echo "configure:7092: checking for $ac_func" >&5
7084 7092
7085 cat > conftest.$ac_ext <<EOF 7093 cat > conftest.$ac_ext <<EOF
7086 #line 7087 "configure" 7094 #line 7095 "configure"
7087 #include "confdefs.h" 7095 #include "confdefs.h"
7088 /* System header to define __stub macros and hopefully few prototypes, 7096 /* System header to define __stub macros and hopefully few prototypes,
7089 which can conflict with char $ac_func(); below. */ 7097 which can conflict with char $ac_func(); below. */
7090 #include <assert.h> 7098 #include <assert.h>
7091 /* Override any gcc2 internal prototype to avoid an error. */ 7099 /* Override any gcc2 internal prototype to avoid an error. */
7104 $ac_func(); 7112 $ac_func();
7105 #endif 7113 #endif
7106 7114
7107 ; return 0; } 7115 ; return 0; }
7108 EOF 7116 EOF
7109 if { (eval echo configure:7110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7117 if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7110 rm -rf conftest* 7118 rm -rf conftest*
7111 eval "ac_cv_func_$ac_func=yes" 7119 eval "ac_cv_func_$ac_func=yes"
7112 else 7120 else
7113 echo "configure: failed program was:" >&5 7121 echo "configure: failed program was:" >&5
7114 cat conftest.$ac_ext >&5 7122 cat conftest.$ac_ext >&5
7132 echo "$ac_t""no" 1>&6 7140 echo "$ac_t""no" 1>&6
7133 fi 7141 fi
7134 done 7142 done
7135 7143
7136 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 7144 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
7137 echo "configure:7138: checking for standard XRegisterIMInstantiateCallback prototype" >&5 7145 echo "configure:7146: checking for standard XRegisterIMInstantiateCallback prototype" >&5
7138 cat > conftest.$ac_ext <<EOF 7146 cat > conftest.$ac_ext <<EOF
7139 #line 7140 "configure" 7147 #line 7148 "configure"
7140 #include "confdefs.h" 7148 #include "confdefs.h"
7141 7149
7142 #define NeedFunctionPrototypes 1 7150 #define NeedFunctionPrototypes 1
7143 #include <X11/Xlib.h> 7151 #include <X11/Xlib.h>
7144 extern Bool XRegisterIMInstantiateCallback( 7152 extern Bool XRegisterIMInstantiateCallback(
7146 7154
7147 int main() { 7155 int main() {
7148 7156
7149 ; return 0; } 7157 ; return 0; }
7150 EOF 7158 EOF
7151 if { (eval echo configure:7152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7159 if { (eval echo configure:7160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7152 rm -rf conftest* 7160 rm -rf conftest*
7153 echo "$ac_t""yes" 1>&6 7161 echo "$ac_t""yes" 1>&6
7154 else 7162 else
7155 echo "configure: failed program was:" >&5 7163 echo "configure: failed program was:" >&5
7156 cat conftest.$ac_ext >&5 7164 cat conftest.$ac_ext >&5
7167 fi 7175 fi
7168 rm -f conftest* 7176 rm -f conftest*
7169 7177
7170 test -z "$with_xmu" && { 7178 test -z "$with_xmu" && {
7171 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 7179 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
7172 echo "configure:7173: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 7180 echo "configure:7181: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
7173 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 7181 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
7174 7182
7175 xe_check_libs=" -lXmu " 7183 xe_check_libs=" -lXmu "
7176 cat > conftest.$ac_ext <<EOF 7184 cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure" 7185 #line 7186 "configure"
7178 #include "confdefs.h" 7186 #include "confdefs.h"
7179 /* Override any gcc2 internal prototype to avoid an error. */ 7187 /* Override any gcc2 internal prototype to avoid an error. */
7180 /* We use char because int might match the return type of a gcc2 7188 /* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */ 7189 builtin and then its argument prototype would still apply. */
7182 char XmuReadBitmapDataFromFile(); 7190 char XmuReadBitmapDataFromFile();
7183 7191
7184 int main() { 7192 int main() {
7185 XmuReadBitmapDataFromFile() 7193 XmuReadBitmapDataFromFile()
7186 ; return 0; } 7194 ; return 0; }
7187 EOF 7195 EOF
7188 if { (eval echo configure:7189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7196 if { (eval echo configure:7197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7189 rm -rf conftest* 7197 rm -rf conftest*
7190 eval "ac_cv_lib_$ac_lib_var=yes" 7198 eval "ac_cv_lib_$ac_lib_var=yes"
7191 else 7199 else
7192 echo "configure: failed program was:" >&5 7200 echo "configure: failed program was:" >&5
7193 cat conftest.$ac_ext >&5 7201 cat conftest.$ac_ext >&5
7222 7230
7223 fi 7231 fi
7224 7232
7225 7233
7226 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 7234 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7227 echo "configure:7228: checking for main in -lXbsd" >&5 7235 echo "configure:7236: checking for main in -lXbsd" >&5
7228 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 7236 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7229 7237
7230 xe_check_libs=" -lXbsd " 7238 xe_check_libs=" -lXbsd "
7231 cat > conftest.$ac_ext <<EOF 7239 cat > conftest.$ac_ext <<EOF
7232 #line 7233 "configure" 7240 #line 7241 "configure"
7233 #include "confdefs.h" 7241 #include "confdefs.h"
7234 7242
7235 int main() { 7243 int main() {
7236 main() 7244 main()
7237 ; return 0; } 7245 ; return 0; }
7238 EOF 7246 EOF
7239 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7240 rm -rf conftest* 7248 rm -rf conftest*
7241 eval "ac_cv_lib_$ac_lib_var=yes" 7249 eval "ac_cv_lib_$ac_lib_var=yes"
7242 else 7250 else
7243 echo "configure: failed program was:" >&5 7251 echo "configure: failed program was:" >&5
7244 cat conftest.$ac_ext >&5 7252 cat conftest.$ac_ext >&5
7271 fi 7279 fi
7272 7280
7273 fi 7281 fi
7274 if test "$with_msw" != "no"; then 7282 if test "$with_msw" != "no"; then
7275 echo "checking for MS-Windows" 1>&6 7283 echo "checking for MS-Windows" 1>&6
7276 echo "configure:7277: checking for MS-Windows" >&5 7284 echo "configure:7285: checking for MS-Windows" >&5
7277 7285
7278 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 7286 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7279 echo "configure:7280: checking for main in -lgdi32" >&5 7287 echo "configure:7288: checking for main in -lgdi32" >&5
7280 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 7288 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7281 7289
7282 xe_check_libs=" -lgdi32 " 7290 xe_check_libs=" -lgdi32 "
7283 cat > conftest.$ac_ext <<EOF 7291 cat > conftest.$ac_ext <<EOF
7284 #line 7285 "configure" 7292 #line 7293 "configure"
7285 #include "confdefs.h" 7293 #include "confdefs.h"
7286 7294
7287 int main() { 7295 int main() {
7288 main() 7296 main()
7289 ; return 0; } 7297 ; return 0; }
7290 EOF 7298 EOF
7291 if { (eval echo configure:7292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7299 if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7292 rm -rf conftest* 7300 rm -rf conftest*
7293 eval "ac_cv_lib_$ac_lib_var=yes" 7301 eval "ac_cv_lib_$ac_lib_var=yes"
7294 else 7302 else
7295 echo "configure: failed program was:" >&5 7303 echo "configure: failed program was:" >&5
7296 cat conftest.$ac_ext >&5 7304 cat conftest.$ac_ext >&5
7337 test "$with_toolbars" != "no" && with_toolbars=msw 7345 test "$with_toolbars" != "no" && with_toolbars=msw
7338 test "$with_dialogs" != "no" && with_dialogs=msw 7346 test "$with_dialogs" != "no" && with_dialogs=msw
7339 test "$with_widgets" != "no" && with_widgets=msw 7347 test "$with_widgets" != "no" && with_widgets=msw
7340 fi 7348 fi
7341 cat > conftest.$ac_ext <<EOF 7349 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure" 7350 #line 7351 "configure"
7343 #include "confdefs.h" 7351 #include "confdefs.h"
7344 #include <fcntl.h> 7352 #include <fcntl.h>
7345 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 7353 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7346 EOF 7354 EOF
7347 if { (eval echo configure:7348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7355 if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7348 then 7356 then
7349 { test "$extra_verbose" = "yes" && cat << \EOF 7357 { test "$extra_verbose" = "yes" && cat << \EOF
7350 Defining HAVE_MSG_SELECT 7358 Defining HAVE_MSG_SELECT
7351 EOF 7359 EOF
7352 cat >> confdefs.h <<\EOF 7360 cat >> confdefs.h <<\EOF
7403 fi 7411 fi
7404 7412
7405 if test "$with_x11" = "yes"; then 7413 if test "$with_x11" = "yes"; then
7406 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` 7414 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7407 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 7415 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7408 echo "configure:7409: checking for X11/extensions/shape.h" >&5 7416 echo "configure:7417: checking for X11/extensions/shape.h" >&5
7409 7417
7410 cat > conftest.$ac_ext <<EOF 7418 cat > conftest.$ac_ext <<EOF
7411 #line 7412 "configure" 7419 #line 7420 "configure"
7412 #include "confdefs.h" 7420 #include "confdefs.h"
7413 #include <X11/extensions/shape.h> 7421 #include <X11/extensions/shape.h>
7414 EOF 7422 EOF
7415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7416 { (eval echo configure:7417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7424 { (eval echo configure:7425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7418 if test -z "$ac_err"; then 7426 if test -z "$ac_err"; then
7419 rm -rf conftest* 7427 rm -rf conftest*
7420 eval "ac_cv_header_$ac_safe=yes" 7428 eval "ac_cv_header_$ac_safe=yes"
7421 else 7429 else
7461 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 7469 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7462 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 7470 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7463 esac 7471 esac
7464 7472
7465 echo "checking for WM_COMMAND option" 1>&6 7473 echo "checking for WM_COMMAND option" 1>&6
7466 echo "configure:7467: checking for WM_COMMAND option" >&5; 7474 echo "configure:7475: checking for WM_COMMAND option" >&5;
7467 if test "$with_wmcommand" != "no"; then 7475 if test "$with_wmcommand" != "no"; then
7468 { test "$extra_verbose" = "yes" && cat << \EOF 7476 { test "$extra_verbose" = "yes" && cat << \EOF
7469 Defining HAVE_WMCOMMAND 7477 Defining HAVE_WMCOMMAND
7470 EOF 7478 EOF
7471 cat >> confdefs.h <<\EOF 7479 cat >> confdefs.h <<\EOF
7476 fi 7484 fi
7477 7485
7478 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 7486 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7479 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 7487 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7480 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 7488 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7481 echo "configure:7482: checking for X11/Xauth.h" >&5 7489 echo "configure:7490: checking for X11/Xauth.h" >&5
7482 7490
7483 cat > conftest.$ac_ext <<EOF 7491 cat > conftest.$ac_ext <<EOF
7484 #line 7485 "configure" 7492 #line 7493 "configure"
7485 #include "confdefs.h" 7493 #include "confdefs.h"
7486 #include <X11/Xauth.h> 7494 #include <X11/Xauth.h>
7487 EOF 7495 EOF
7488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7489 { (eval echo configure:7490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7497 { (eval echo configure:7498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7491 if test -z "$ac_err"; then 7499 if test -z "$ac_err"; then
7492 rm -rf conftest* 7500 rm -rf conftest*
7493 eval "ac_cv_header_$ac_safe=yes" 7501 eval "ac_cv_header_$ac_safe=yes"
7494 else 7502 else
7507 with_xauth=no 7515 with_xauth=no
7508 fi 7516 fi
7509 } 7517 }
7510 test -z "$with_xauth" && { 7518 test -z "$with_xauth" && {
7511 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 7519 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7512 echo "configure:7513: checking for XauGetAuthByAddr in -lXau" >&5 7520 echo "configure:7521: checking for XauGetAuthByAddr in -lXau" >&5
7513 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 7521 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7514 7522
7515 xe_check_libs=" -lXau " 7523 xe_check_libs=" -lXau "
7516 cat > conftest.$ac_ext <<EOF 7524 cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure" 7525 #line 7526 "configure"
7518 #include "confdefs.h" 7526 #include "confdefs.h"
7519 /* Override any gcc2 internal prototype to avoid an error. */ 7527 /* Override any gcc2 internal prototype to avoid an error. */
7520 /* We use char because int might match the return type of a gcc2 7528 /* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */ 7529 builtin and then its argument prototype would still apply. */
7522 char XauGetAuthByAddr(); 7530 char XauGetAuthByAddr();
7523 7531
7524 int main() { 7532 int main() {
7525 XauGetAuthByAddr() 7533 XauGetAuthByAddr()
7526 ; return 0; } 7534 ; return 0; }
7527 EOF 7535 EOF
7528 if { (eval echo configure:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7536 if { (eval echo configure:7537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7529 rm -rf conftest* 7537 rm -rf conftest*
7530 eval "ac_cv_lib_$ac_lib_var=yes" 7538 eval "ac_cv_lib_$ac_lib_var=yes"
7531 else 7539 else
7532 echo "configure: failed program was:" >&5 7540 echo "configure: failed program was:" >&5
7533 cat conftest.$ac_ext >&5 7541 cat conftest.$ac_ext >&5
7573 7581
7574 if test "$with_tooltalk" != "no" ; then 7582 if test "$with_tooltalk" != "no" ; then
7575 for dir in "" "Tt/" "desktop/" ; do 7583 for dir in "" "Tt/" "desktop/" ; do
7576 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 7584 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7577 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 7585 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7578 echo "configure:7579: checking for ${dir}tt_c.h" >&5 7586 echo "configure:7587: checking for ${dir}tt_c.h" >&5
7579 7587
7580 cat > conftest.$ac_ext <<EOF 7588 cat > conftest.$ac_ext <<EOF
7581 #line 7582 "configure" 7589 #line 7590 "configure"
7582 #include "confdefs.h" 7590 #include "confdefs.h"
7583 #include <${dir}tt_c.h> 7591 #include <${dir}tt_c.h>
7584 EOF 7592 EOF
7585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7586 { (eval echo configure:7587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7594 { (eval echo configure:7595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7588 if test -z "$ac_err"; then 7596 if test -z "$ac_err"; then
7589 rm -rf conftest* 7597 rm -rf conftest*
7590 eval "ac_cv_header_$ac_safe=yes" 7598 eval "ac_cv_header_$ac_safe=yes"
7591 else 7599 else
7617 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 7625 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7618 7626
7619 xe_msg_checking="for tt_message_create in -ltt" 7627 xe_msg_checking="for tt_message_create in -ltt"
7620 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 7628 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7621 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7629 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7622 echo "configure:7623: checking "$xe_msg_checking"" >&5 7630 echo "configure:7631: checking "$xe_msg_checking"" >&5
7623 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 7631 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7624 7632
7625 xe_check_libs=" -ltt $extra_libs" 7633 xe_check_libs=" -ltt $extra_libs"
7626 cat > conftest.$ac_ext <<EOF 7634 cat > conftest.$ac_ext <<EOF
7627 #line 7628 "configure" 7635 #line 7636 "configure"
7628 #include "confdefs.h" 7636 #include "confdefs.h"
7629 /* Override any gcc2 internal prototype to avoid an error. */ 7637 /* Override any gcc2 internal prototype to avoid an error. */
7630 /* We use char because int might match the return type of a gcc2 7638 /* We use char because int might match the return type of a gcc2
7631 builtin and then its argument prototype would still apply. */ 7639 builtin and then its argument prototype would still apply. */
7632 char tt_message_create(); 7640 char tt_message_create();
7633 7641
7634 int main() { 7642 int main() {
7635 tt_message_create() 7643 tt_message_create()
7636 ; return 0; } 7644 ; return 0; }
7637 EOF 7645 EOF
7638 if { (eval echo configure:7639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7646 if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7639 rm -rf conftest* 7647 rm -rf conftest*
7640 eval "ac_cv_lib_$ac_lib_var=yes" 7648 eval "ac_cv_lib_$ac_lib_var=yes"
7641 else 7649 else
7642 echo "configure: failed program was:" >&5 7650 echo "configure: failed program was:" >&5
7643 cat conftest.$ac_ext >&5 7651 cat conftest.$ac_ext >&5
7687 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi 7695 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7688 fi 7696 fi
7689 7697
7690 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 7698 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7691 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 7699 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7692 echo "configure:7693: checking for Dt/Dt.h" >&5 7700 echo "configure:7701: checking for Dt/Dt.h" >&5
7693 7701
7694 cat > conftest.$ac_ext <<EOF 7702 cat > conftest.$ac_ext <<EOF
7695 #line 7696 "configure" 7703 #line 7704 "configure"
7696 #include "confdefs.h" 7704 #include "confdefs.h"
7697 #include <Dt/Dt.h> 7705 #include <Dt/Dt.h>
7698 EOF 7706 EOF
7699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7700 { (eval echo configure:7701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7708 { (eval echo configure:7709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7702 if test -z "$ac_err"; then 7710 if test -z "$ac_err"; then
7703 rm -rf conftest* 7711 rm -rf conftest*
7704 eval "ac_cv_header_$ac_safe=yes" 7712 eval "ac_cv_header_$ac_safe=yes"
7705 else 7713 else
7718 with_cde=no 7726 with_cde=no
7719 fi 7727 fi
7720 } 7728 }
7721 test -z "$with_cde" && { 7729 test -z "$with_cde" && {
7722 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 7730 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7723 echo "configure:7724: checking for DtDndDragStart in -lDtSvc" >&5 7731 echo "configure:7732: checking for DtDndDragStart in -lDtSvc" >&5
7724 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 7732 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7725 7733
7726 xe_check_libs=" -lDtSvc " 7734 xe_check_libs=" -lDtSvc "
7727 cat > conftest.$ac_ext <<EOF 7735 cat > conftest.$ac_ext <<EOF
7728 #line 7729 "configure" 7736 #line 7737 "configure"
7729 #include "confdefs.h" 7737 #include "confdefs.h"
7730 /* Override any gcc2 internal prototype to avoid an error. */ 7738 /* Override any gcc2 internal prototype to avoid an error. */
7731 /* We use char because int might match the return type of a gcc2 7739 /* We use char because int might match the return type of a gcc2
7732 builtin and then its argument prototype would still apply. */ 7740 builtin and then its argument prototype would still apply. */
7733 char DtDndDragStart(); 7741 char DtDndDragStart();
7734 7742
7735 int main() { 7743 int main() {
7736 DtDndDragStart() 7744 DtDndDragStart()
7737 ; return 0; } 7745 ; return 0; }
7738 EOF 7746 EOF
7739 if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7747 if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7740 rm -rf conftest* 7748 rm -rf conftest*
7741 eval "ac_cv_lib_$ac_lib_var=yes" 7749 eval "ac_cv_lib_$ac_lib_var=yes"
7742 else 7750 else
7743 echo "configure: failed program was:" >&5 7751 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5 7752 cat conftest.$ac_ext >&5
7815 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi 7823 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7816 fi 7824 fi
7817 7825
7818 if test "$with_dragndrop" != "no" ; then 7826 if test "$with_dragndrop" != "no" ; then
7819 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 7827 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7820 echo "configure:7821: checking if drag and drop API is needed" >&5 7828 echo "configure:7829: checking if drag and drop API is needed" >&5
7821 if test -n "$dragndrop_proto" ; then 7829 if test -n "$dragndrop_proto" ; then
7822 with_dragndrop=yes 7830 with_dragndrop=yes
7823 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 7831 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7824 { test "$extra_verbose" = "yes" && cat << \EOF 7832 { test "$extra_verbose" = "yes" && cat << \EOF
7825 Defining HAVE_DRAGNDROP 7833 Defining HAVE_DRAGNDROP
7838 7846
7839 7847
7840 7848
7841 if test "$window_system" != "none"; then 7849 if test "$window_system" != "none"; then
7842 echo "checking for graphics libraries" 1>&6 7850 echo "checking for graphics libraries" 1>&6
7843 echo "configure:7844: checking for graphics libraries" >&5 7851 echo "configure:7852: checking for graphics libraries" >&5
7844 7852
7845 libpath_xpm= 7853 libpath_xpm=
7846 incpath_xpm= 7854 incpath_xpm=
7847 case "$opsys" in 7855 case "$opsys" in
7848 cygwin*) 7856 cygwin*)
7864 xpm_problem="" 7872 xpm_problem=""
7865 if test -z "$with_xpm"; then 7873 if test -z "$with_xpm"; then
7866 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 7874 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
7867 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 7875 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
7868 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 7876 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7869 echo "configure:7870: checking for Xpm - no older than 3.4f" >&5 7877 echo "configure:7878: checking for Xpm - no older than 3.4f" >&5
7870 xe_check_libs=-lXpm 7878 xe_check_libs=-lXpm
7871 cat > conftest.$ac_ext <<EOF 7879 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure" 7880 #line 7881 "configure"
7873 #include "confdefs.h" 7881 #include "confdefs.h"
7874 #define XPM_NUMBERS 7882 #define XPM_NUMBERS
7875 #include <X11/xpm.h> 7883 #include <X11/xpm.h>
7876 int main(int c, char **v) { 7884 int main(int c, char **v) {
7877 return c == 1 ? 0 : 7885 return c == 1 ? 0 :
7878 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 7886 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7879 XpmIncludeVersion < 30406 ? 2 : 0 ;} 7887 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7880 EOF 7888 EOF
7881 if { (eval echo configure:7882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7889 if { (eval echo configure:7890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7882 then 7890 then
7883 ./conftest dummy_arg; xpm_status=$?; 7891 ./conftest dummy_arg; xpm_status=$?;
7884 if test "$xpm_status" = "0"; then 7892 if test "$xpm_status" = "0"; then
7885 with_xpm=yes; 7893 with_xpm=yes;
7886 else 7894 else
7920 7928
7921 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 7929 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
7922 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 7930 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7923 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 7931 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
7924 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 7932 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7925 echo "configure:7926: checking for \"FOR_MSW\" xpm" >&5 7933 echo "configure:7934: checking for \"FOR_MSW\" xpm" >&5
7926 xe_check_libs=-lXpm 7934 xe_check_libs=-lXpm
7927 cat > conftest.$ac_ext <<EOF 7935 cat > conftest.$ac_ext <<EOF
7928 #line 7929 "configure" 7936 #line 7937 "configure"
7929 #include "confdefs.h" 7937 #include "confdefs.h"
7930 7938
7931 int main() { 7939 int main() {
7932 XpmCreatePixmapFromData() 7940 XpmCreatePixmapFromData()
7933 ; return 0; } 7941 ; return 0; }
7934 EOF 7942 EOF
7935 if { (eval echo configure:7936: \"$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
7936 rm -rf conftest* 7944 rm -rf conftest*
7937 xpm_for_msw=no 7945 xpm_for_msw=no
7938 else 7946 else
7939 echo "configure: failed program was:" >&5 7947 echo "configure: failed program was:" >&5
7940 cat conftest.$ac_ext >&5 7948 cat conftest.$ac_ext >&5
7956 fi 7964 fi
7957 fi 7965 fi
7958 7966
7959 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7967 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7960 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7968 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7961 echo "configure:7962: checking for compface.h" >&5 7969 echo "configure:7970: checking for compface.h" >&5
7962 7970
7963 cat > conftest.$ac_ext <<EOF 7971 cat > conftest.$ac_ext <<EOF
7964 #line 7965 "configure" 7972 #line 7973 "configure"
7965 #include "confdefs.h" 7973 #include "confdefs.h"
7966 #include <compface.h> 7974 #include <compface.h>
7967 EOF 7975 EOF
7968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7969 { (eval echo configure:7970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7977 { (eval echo configure:7978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7971 if test -z "$ac_err"; then 7979 if test -z "$ac_err"; then
7972 rm -rf conftest* 7980 rm -rf conftest*
7973 eval "ac_cv_header_$ac_safe=yes" 7981 eval "ac_cv_header_$ac_safe=yes"
7974 else 7982 else
7987 with_xface=no 7995 with_xface=no
7988 fi 7996 fi
7989 } 7997 }
7990 test -z "$with_xface" && { 7998 test -z "$with_xface" && {
7991 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7999 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7992 echo "configure:7993: checking for UnGenFace in -lcompface" >&5 8000 echo "configure:8001: checking for UnGenFace in -lcompface" >&5
7993 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 8001 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7994 8002
7995 xe_check_libs=" -lcompface " 8003 xe_check_libs=" -lcompface "
7996 cat > conftest.$ac_ext <<EOF 8004 cat > conftest.$ac_ext <<EOF
7997 #line 7998 "configure" 8005 #line 8006 "configure"
7998 #include "confdefs.h" 8006 #include "confdefs.h"
7999 /* Override any gcc2 internal prototype to avoid an error. */ 8007 /* Override any gcc2 internal prototype to avoid an error. */
8000 /* We use char because int might match the return type of a gcc2 8008 /* We use char because int might match the return type of a gcc2
8001 builtin and then its argument prototype would still apply. */ 8009 builtin and then its argument prototype would still apply. */
8002 char UnGenFace(); 8010 char UnGenFace();
8003 8011
8004 int main() { 8012 int main() {
8005 UnGenFace() 8013 UnGenFace()
8006 ; return 0; } 8014 ; return 0; }
8007 EOF 8015 EOF
8008 if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8016 if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8009 rm -rf conftest* 8017 rm -rf conftest*
8010 eval "ac_cv_lib_$ac_lib_var=yes" 8018 eval "ac_cv_lib_$ac_lib_var=yes"
8011 else 8019 else
8012 echo "configure: failed program was:" >&5 8020 echo "configure: failed program was:" >&5
8013 cat conftest.$ac_ext >&5 8021 cat conftest.$ac_ext >&5
8052 fi 8060 fi
8053 8061
8054 if test "$with_png $with_tiff" != "no no"; then 8062 if test "$with_png $with_tiff" != "no no"; then
8055 8063
8056 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 8064 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8057 echo "configure:8058: checking for inflate in -lc" >&5 8065 echo "configure:8066: checking for inflate in -lc" >&5
8058 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 8066 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8059 8067
8060 xe_check_libs=" -lc " 8068 xe_check_libs=" -lc "
8061 cat > conftest.$ac_ext <<EOF 8069 cat > conftest.$ac_ext <<EOF
8062 #line 8063 "configure" 8070 #line 8071 "configure"
8063 #include "confdefs.h" 8071 #include "confdefs.h"
8064 /* Override any gcc2 internal prototype to avoid an error. */ 8072 /* Override any gcc2 internal prototype to avoid an error. */
8065 /* We use char because int might match the return type of a gcc2 8073 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */ 8074 builtin and then its argument prototype would still apply. */
8067 char inflate(); 8075 char inflate();
8068 8076
8069 int main() { 8077 int main() {
8070 inflate() 8078 inflate()
8071 ; return 0; } 8079 ; return 0; }
8072 EOF 8080 EOF
8073 if { (eval echo configure:8074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8081 if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8074 rm -rf conftest* 8082 rm -rf conftest*
8075 eval "ac_cv_lib_$ac_lib_var=yes" 8083 eval "ac_cv_lib_$ac_lib_var=yes"
8076 else 8084 else
8077 echo "configure: failed program was:" >&5 8085 echo "configure: failed program was:" >&5
8078 cat conftest.$ac_ext >&5 8086 cat conftest.$ac_ext >&5
8087 : 8095 :
8088 else 8096 else
8089 echo "$ac_t""no" 1>&6 8097 echo "$ac_t""no" 1>&6
8090 8098
8091 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 8099 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8092 echo "configure:8093: checking for inflate in -lz" >&5 8100 echo "configure:8101: checking for inflate in -lz" >&5
8093 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 8101 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8094 8102
8095 xe_check_libs=" -lz " 8103 xe_check_libs=" -lz "
8096 cat > conftest.$ac_ext <<EOF 8104 cat > conftest.$ac_ext <<EOF
8097 #line 8098 "configure" 8105 #line 8106 "configure"
8098 #include "confdefs.h" 8106 #include "confdefs.h"
8099 /* Override any gcc2 internal prototype to avoid an error. */ 8107 /* Override any gcc2 internal prototype to avoid an error. */
8100 /* We use char because int might match the return type of a gcc2 8108 /* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */ 8109 builtin and then its argument prototype would still apply. */
8102 char inflate(); 8110 char inflate();
8103 8111
8104 int main() { 8112 int main() {
8105 inflate() 8113 inflate()
8106 ; return 0; } 8114 ; return 0; }
8107 EOF 8115 EOF
8108 if { (eval echo configure:8109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8116 if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8109 rm -rf conftest* 8117 rm -rf conftest*
8110 eval "ac_cv_lib_$ac_lib_var=yes" 8118 eval "ac_cv_lib_$ac_lib_var=yes"
8111 else 8119 else
8112 echo "configure: failed program was:" >&5 8120 echo "configure: failed program was:" >&5
8113 cat conftest.$ac_ext >&5 8121 cat conftest.$ac_ext >&5
8122 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 8130 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8123 else 8131 else
8124 echo "$ac_t""no" 1>&6 8132 echo "$ac_t""no" 1>&6
8125 8133
8126 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 8134 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8127 echo "configure:8128: checking for inflate in -lgz" >&5 8135 echo "configure:8136: checking for inflate in -lgz" >&5
8128 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 8136 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8129 8137
8130 xe_check_libs=" -lgz " 8138 xe_check_libs=" -lgz "
8131 cat > conftest.$ac_ext <<EOF 8139 cat > conftest.$ac_ext <<EOF
8132 #line 8133 "configure" 8140 #line 8141 "configure"
8133 #include "confdefs.h" 8141 #include "confdefs.h"
8134 /* Override any gcc2 internal prototype to avoid an error. */ 8142 /* Override any gcc2 internal prototype to avoid an error. */
8135 /* We use char because int might match the return type of a gcc2 8143 /* We use char because int might match the return type of a gcc2
8136 builtin and then its argument prototype would still apply. */ 8144 builtin and then its argument prototype would still apply. */
8137 char inflate(); 8145 char inflate();
8138 8146
8139 int main() { 8147 int main() {
8140 inflate() 8148 inflate()
8141 ; return 0; } 8149 ; return 0; }
8142 EOF 8150 EOF
8143 if { (eval echo configure:8144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8151 if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8144 rm -rf conftest* 8152 rm -rf conftest*
8145 eval "ac_cv_lib_$ac_lib_var=yes" 8153 eval "ac_cv_lib_$ac_lib_var=yes"
8146 else 8154 else
8147 echo "configure: failed program was:" >&5 8155 echo "configure: failed program was:" >&5
8148 cat conftest.$ac_ext >&5 8156 cat conftest.$ac_ext >&5
8168 8176
8169 fi 8177 fi
8170 8178
8171 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 8179 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8172 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 8180 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8173 echo "configure:8174: checking for jpeglib.h" >&5 8181 echo "configure:8182: checking for jpeglib.h" >&5
8174 8182
8175 cat > conftest.$ac_ext <<EOF 8183 cat > conftest.$ac_ext <<EOF
8176 #line 8177 "configure" 8184 #line 8185 "configure"
8177 #include "confdefs.h" 8185 #include "confdefs.h"
8178 #include <jpeglib.h> 8186 #include <jpeglib.h>
8179 EOF 8187 EOF
8180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8181 { (eval echo configure:8182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8189 { (eval echo configure:8190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8183 if test -z "$ac_err"; then 8191 if test -z "$ac_err"; then
8184 rm -rf conftest* 8192 rm -rf conftest*
8185 eval "ac_cv_header_$ac_safe=yes" 8193 eval "ac_cv_header_$ac_safe=yes"
8186 else 8194 else
8199 with_jpeg=no 8207 with_jpeg=no
8200 fi 8208 fi
8201 } 8209 }
8202 test -z "$with_jpeg" && { 8210 test -z "$with_jpeg" && {
8203 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 8211 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8204 echo "configure:8205: checking for jpeg_destroy_decompress in -ljpeg" >&5 8212 echo "configure:8213: checking for jpeg_destroy_decompress in -ljpeg" >&5
8205 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 8213 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8206 8214
8207 xe_check_libs=" -ljpeg " 8215 xe_check_libs=" -ljpeg "
8208 cat > conftest.$ac_ext <<EOF 8216 cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure" 8217 #line 8218 "configure"
8210 #include "confdefs.h" 8218 #include "confdefs.h"
8211 /* Override any gcc2 internal prototype to avoid an error. */ 8219 /* Override any gcc2 internal prototype to avoid an error. */
8212 /* We use char because int might match the return type of a gcc2 8220 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */ 8221 builtin and then its argument prototype would still apply. */
8214 char jpeg_destroy_decompress(); 8222 char jpeg_destroy_decompress();
8215 8223
8216 int main() { 8224 int main() {
8217 jpeg_destroy_decompress() 8225 jpeg_destroy_decompress()
8218 ; return 0; } 8226 ; return 0; }
8219 EOF 8227 EOF
8220 if { (eval echo configure:8221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8228 if { (eval echo configure:8229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8221 rm -rf conftest* 8229 rm -rf conftest*
8222 eval "ac_cv_lib_$ac_lib_var=yes" 8230 eval "ac_cv_lib_$ac_lib_var=yes"
8223 else 8231 else
8224 echo "configure: failed program was:" >&5 8232 echo "configure: failed program was:" >&5
8225 cat conftest.$ac_ext >&5 8233 cat conftest.$ac_ext >&5
8251 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 8259 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8252 fi 8260 fi
8253 8261
8254 png_problem="" 8262 png_problem=""
8255 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 8263 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8256 echo "configure:8257: checking for pow" >&5 8264 echo "configure:8265: checking for pow" >&5
8257 8265
8258 cat > conftest.$ac_ext <<EOF 8266 cat > conftest.$ac_ext <<EOF
8259 #line 8260 "configure" 8267 #line 8268 "configure"
8260 #include "confdefs.h" 8268 #include "confdefs.h"
8261 /* System header to define __stub macros and hopefully few prototypes, 8269 /* System header to define __stub macros and hopefully few prototypes,
8262 which can conflict with char pow(); below. */ 8270 which can conflict with char pow(); below. */
8263 #include <assert.h> 8271 #include <assert.h>
8264 /* Override any gcc2 internal prototype to avoid an error. */ 8272 /* Override any gcc2 internal prototype to avoid an error. */
8277 pow(); 8285 pow();
8278 #endif 8286 #endif
8279 8287
8280 ; return 0; } 8288 ; return 0; }
8281 EOF 8289 EOF
8282 if { (eval echo configure:8283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8290 if { (eval echo configure:8291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8283 rm -rf conftest* 8291 rm -rf conftest*
8284 eval "ac_cv_func_pow=yes" 8292 eval "ac_cv_func_pow=yes"
8285 else 8293 else
8286 echo "configure: failed program was:" >&5 8294 echo "configure: failed program was:" >&5
8287 cat conftest.$ac_ext >&5 8295 cat conftest.$ac_ext >&5
8298 with_png=no 8306 with_png=no
8299 fi 8307 fi
8300 } 8308 }
8301 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 8309 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8302 echo $ac_n "checking for png.h""... $ac_c" 1>&6 8310 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8303 echo "configure:8304: checking for png.h" >&5 8311 echo "configure:8312: checking for png.h" >&5
8304 8312
8305 cat > conftest.$ac_ext <<EOF 8313 cat > conftest.$ac_ext <<EOF
8306 #line 8307 "configure" 8314 #line 8315 "configure"
8307 #include "confdefs.h" 8315 #include "confdefs.h"
8308 #include <png.h> 8316 #include <png.h>
8309 EOF 8317 EOF
8310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8311 { (eval echo configure:8312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8319 { (eval echo configure:8320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8313 if test -z "$ac_err"; then 8321 if test -z "$ac_err"; then
8314 rm -rf conftest* 8322 rm -rf conftest*
8315 eval "ac_cv_header_$ac_safe=yes" 8323 eval "ac_cv_header_$ac_safe=yes"
8316 else 8324 else
8329 with_png=no 8337 with_png=no
8330 fi 8338 fi
8331 } 8339 }
8332 test -z "$with_png" && { 8340 test -z "$with_png" && {
8333 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 8341 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8334 echo "configure:8335: checking for png_read_image in -lpng" >&5 8342 echo "configure:8343: checking for png_read_image in -lpng" >&5
8335 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 8343 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8336 8344
8337 xe_check_libs=" -lpng " 8345 xe_check_libs=" -lpng "
8338 cat > conftest.$ac_ext <<EOF 8346 cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure" 8347 #line 8348 "configure"
8340 #include "confdefs.h" 8348 #include "confdefs.h"
8341 /* Override any gcc2 internal prototype to avoid an error. */ 8349 /* Override any gcc2 internal prototype to avoid an error. */
8342 /* We use char because int might match the return type of a gcc2 8350 /* We use char because int might match the return type of a gcc2
8343 builtin and then its argument prototype would still apply. */ 8351 builtin and then its argument prototype would still apply. */
8344 char png_read_image(); 8352 char png_read_image();
8345 8353
8346 int main() { 8354 int main() {
8347 png_read_image() 8355 png_read_image()
8348 ; return 0; } 8356 ; return 0; }
8349 EOF 8357 EOF
8350 if { (eval echo configure:8351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8358 if { (eval echo configure:8359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8351 rm -rf conftest* 8359 rm -rf conftest*
8352 eval "ac_cv_lib_$ac_lib_var=yes" 8360 eval "ac_cv_lib_$ac_lib_var=yes"
8353 else 8361 else
8354 echo "configure: failed program was:" >&5 8362 echo "configure: failed program was:" >&5
8355 cat conftest.$ac_ext >&5 8363 cat conftest.$ac_ext >&5
8368 fi 8376 fi
8369 8377
8370 } 8378 }
8371 if test -z "$with_png"; then 8379 if test -z "$with_png"; then
8372 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 8380 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8373 echo "configure:8374: checking for workable png version information" >&5 8381 echo "configure:8382: checking for workable png version information" >&5
8374 xe_check_libs="-lpng -lz" 8382 xe_check_libs="-lpng -lz"
8375 cat > conftest.$ac_ext <<EOF 8383 cat > conftest.$ac_ext <<EOF
8376 #line 8377 "configure" 8384 #line 8385 "configure"
8377 #include "confdefs.h" 8385 #include "confdefs.h"
8378 #include <png.h> 8386 #include <png.h>
8379 int main(int c, char **v) { 8387 int main(int c, char **v) {
8380 if (c == 1) return 0; 8388 if (c == 1) return 0;
8381 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 8389 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8382 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 8390 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8383 EOF 8391 EOF
8384 if { (eval echo configure:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8392 if { (eval echo configure:8393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8385 then 8393 then
8386 ./conftest dummy_arg; png_status=$?; 8394 ./conftest dummy_arg; png_status=$?;
8387 if test "$png_status" = "0"; then 8395 if test "$png_status" = "0"; then
8388 with_png=yes; 8396 with_png=yes;
8389 else 8397 else
8422 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 8430 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8423 fi 8431 fi
8424 8432
8425 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 8433 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8426 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 8434 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8427 echo "configure:8428: checking for tiffio.h" >&5 8435 echo "configure:8436: checking for tiffio.h" >&5
8428 8436
8429 cat > conftest.$ac_ext <<EOF 8437 cat > conftest.$ac_ext <<EOF
8430 #line 8431 "configure" 8438 #line 8439 "configure"
8431 #include "confdefs.h" 8439 #include "confdefs.h"
8432 #include <tiffio.h> 8440 #include <tiffio.h>
8433 EOF 8441 EOF
8434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8435 { (eval echo configure:8436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8443 { (eval echo configure:8444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8437 if test -z "$ac_err"; then 8445 if test -z "$ac_err"; then
8438 rm -rf conftest* 8446 rm -rf conftest*
8439 eval "ac_cv_header_$ac_safe=yes" 8447 eval "ac_cv_header_$ac_safe=yes"
8440 else 8448 else
8453 with_tiff=no 8461 with_tiff=no
8454 fi 8462 fi
8455 } 8463 }
8456 test -z "$with_tiff" && { 8464 test -z "$with_tiff" && {
8457 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 8465 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8458 echo "configure:8459: checking for TIFFClientOpen in -ltiff" >&5 8466 echo "configure:8467: checking for TIFFClientOpen in -ltiff" >&5
8459 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 8467 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8460 8468
8461 xe_check_libs=" -ltiff " 8469 xe_check_libs=" -ltiff "
8462 cat > conftest.$ac_ext <<EOF 8470 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure" 8471 #line 8472 "configure"
8464 #include "confdefs.h" 8472 #include "confdefs.h"
8465 /* Override any gcc2 internal prototype to avoid an error. */ 8473 /* Override any gcc2 internal prototype to avoid an error. */
8466 /* We use char because int might match the return type of a gcc2 8474 /* We use char because int might match the return type of a gcc2
8467 builtin and then its argument prototype would still apply. */ 8475 builtin and then its argument prototype would still apply. */
8468 char TIFFClientOpen(); 8476 char TIFFClientOpen();
8469 8477
8470 int main() { 8478 int main() {
8471 TIFFClientOpen() 8479 TIFFClientOpen()
8472 ; return 0; } 8480 ; return 0; }
8473 EOF 8481 EOF
8474 if { (eval echo configure:8475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8482 if { (eval echo configure:8483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8475 rm -rf conftest* 8483 rm -rf conftest*
8476 eval "ac_cv_lib_$ac_lib_var=yes" 8484 eval "ac_cv_lib_$ac_lib_var=yes"
8477 else 8485 else
8478 echo "configure: failed program was:" >&5 8486 echo "configure: failed program was:" >&5
8479 cat conftest.$ac_ext >&5 8487 cat conftest.$ac_ext >&5
8508 8516
8509 8517
8510 if test "$with_gtk" = "yes"; then 8518 if test "$with_gtk" = "yes"; then
8511 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 8519 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8512 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 8520 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8513 echo "configure:8514: checking for compface.h" >&5 8521 echo "configure:8522: checking for compface.h" >&5
8514 8522
8515 cat > conftest.$ac_ext <<EOF 8523 cat > conftest.$ac_ext <<EOF
8516 #line 8517 "configure" 8524 #line 8525 "configure"
8517 #include "confdefs.h" 8525 #include "confdefs.h"
8518 #include <compface.h> 8526 #include <compface.h>
8519 EOF 8527 EOF
8520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8521 { (eval echo configure:8522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8529 { (eval echo configure:8530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8523 if test -z "$ac_err"; then 8531 if test -z "$ac_err"; then
8524 rm -rf conftest* 8532 rm -rf conftest*
8525 eval "ac_cv_header_$ac_safe=yes" 8533 eval "ac_cv_header_$ac_safe=yes"
8526 else 8534 else
8539 with_xface=no 8547 with_xface=no
8540 fi 8548 fi
8541 } 8549 }
8542 test -z "$with_xface" && { 8550 test -z "$with_xface" && {
8543 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 8551 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8544 echo "configure:8545: checking for UnGenFace in -lcompface" >&5 8552 echo "configure:8553: checking for UnGenFace in -lcompface" >&5
8545 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 8553 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8546 8554
8547 xe_check_libs=" -lcompface " 8555 xe_check_libs=" -lcompface "
8548 cat > conftest.$ac_ext <<EOF 8556 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure" 8557 #line 8558 "configure"
8550 #include "confdefs.h" 8558 #include "confdefs.h"
8551 /* Override any gcc2 internal prototype to avoid an error. */ 8559 /* Override any gcc2 internal prototype to avoid an error. */
8552 /* We use char because int might match the return type of a gcc2 8560 /* We use char because int might match the return type of a gcc2
8553 builtin and then its argument prototype would still apply. */ 8561 builtin and then its argument prototype would still apply. */
8554 char UnGenFace(); 8562 char UnGenFace();
8555 8563
8556 int main() { 8564 int main() {
8557 UnGenFace() 8565 UnGenFace()
8558 ; return 0; } 8566 ; return 0; }
8559 EOF 8567 EOF
8560 if { (eval echo configure:8561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8561 rm -rf conftest* 8569 rm -rf conftest*
8562 eval "ac_cv_lib_$ac_lib_var=yes" 8570 eval "ac_cv_lib_$ac_lib_var=yes"
8563 else 8571 else
8564 echo "configure: failed program was:" >&5 8572 echo "configure: failed program was:" >&5
8565 cat conftest.$ac_ext >&5 8573 cat conftest.$ac_ext >&5
8594 8602
8595 8603
8596 8604
8597 if test "$with_x11" = "yes"; then 8605 if test "$with_x11" = "yes"; then
8598 echo "checking for X11 graphics libraries" 1>&6 8606 echo "checking for X11 graphics libraries" 1>&6
8599 echo "configure:8600: checking for X11 graphics libraries" >&5 8607 echo "configure:8608: checking for X11 graphics libraries" >&5
8600 fi 8608 fi
8601 8609
8602 case "$with_widgets" in 8610 case "$with_widgets" in
8603 "yes" | "athena") detect_athena=yes ;; 8611 "yes" | "athena") detect_athena=yes ;;
8604 *) detect_athena=no ;; 8612 *) detect_athena=no ;;
8605 esac 8613 esac
8606 8614
8607 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then 8615 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
8608 echo "checking for the Athena widgets" 1>&6 8616 echo "checking for the Athena widgets" 1>&6
8609 echo "configure:8610: checking for the Athena widgets" >&5 8617 echo "configure:8618: checking for the Athena widgets" >&5
8610 8618
8611 case "$with_athena" in 8619 case "$with_athena" in
8612 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 8620 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8613 "3d") athena_variant=Xaw3d athena_3d=yes ;; 8621 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8614 "next") athena_variant=neXtaw athena_3d=yes ;; 8622 "next") athena_variant=neXtaw athena_3d=yes ;;
8618 esac 8626 esac
8619 8627
8620 if test "$athena_3d" = "no"; then 8628 if test "$athena_3d" = "no"; then
8621 8629
8622 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 8630 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8623 echo "configure:8624: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 8631 echo "configure:8632: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8624 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 8632 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8625 8633
8626 xe_check_libs=" -l$athena_variant " 8634 xe_check_libs=" -l$athena_variant "
8627 cat > conftest.$ac_ext <<EOF 8635 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure" 8636 #line 8637 "configure"
8629 #include "confdefs.h" 8637 #include "confdefs.h"
8630 /* Override any gcc2 internal prototype to avoid an error. */ 8638 /* Override any gcc2 internal prototype to avoid an error. */
8631 /* We use char because int might match the return type of a gcc2 8639 /* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */ 8640 builtin and then its argument prototype would still apply. */
8633 char XawScrollbarSetThumb(); 8641 char XawScrollbarSetThumb();
8634 8642
8635 int main() { 8643 int main() {
8636 XawScrollbarSetThumb() 8644 XawScrollbarSetThumb()
8637 ; return 0; } 8645 ; return 0; }
8638 EOF 8646 EOF
8639 if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8647 if { (eval echo configure:8648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8640 rm -rf conftest* 8648 rm -rf conftest*
8641 eval "ac_cv_lib_$ac_lib_var=yes" 8649 eval "ac_cv_lib_$ac_lib_var=yes"
8642 else 8650 else
8643 echo "configure: failed program was:" >&5 8651 echo "configure: failed program was:" >&5
8644 cat conftest.$ac_ext >&5 8652 cat conftest.$ac_ext >&5
8650 8658
8651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 8659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8652 echo "$ac_t""yes" 1>&6 8660 echo "$ac_t""yes" 1>&6
8653 8661
8654 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8662 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8655 echo "configure:8656: checking for threeDClassRec in -l$athena_variant" >&5 8663 echo "configure:8664: checking for threeDClassRec in -l$athena_variant" >&5
8656 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8664 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8657 8665
8658 xe_check_libs=" -l$athena_variant " 8666 xe_check_libs=" -l$athena_variant "
8659 cat > conftest.$ac_ext <<EOF 8667 cat > conftest.$ac_ext <<EOF
8660 #line 8661 "configure" 8668 #line 8669 "configure"
8661 #include "confdefs.h" 8669 #include "confdefs.h"
8662 /* Override any gcc2 internal prototype to avoid an error. */ 8670 /* Override any gcc2 internal prototype to avoid an error. */
8663 /* We use char because int might match the return type of a gcc2 8671 /* We use char because int might match the return type of a gcc2
8664 builtin and then its argument prototype would still apply. */ 8672 builtin and then its argument prototype would still apply. */
8665 char threeDClassRec(); 8673 char threeDClassRec();
8666 8674
8667 int main() { 8675 int main() {
8668 threeDClassRec() 8676 threeDClassRec()
8669 ; return 0; } 8677 ; return 0; }
8670 EOF 8678 EOF
8671 if { (eval echo configure:8672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8679 if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8672 rm -rf conftest* 8680 rm -rf conftest*
8673 eval "ac_cv_lib_$ac_lib_var=yes" 8681 eval "ac_cv_lib_$ac_lib_var=yes"
8674 else 8682 else
8675 echo "configure: failed program was:" >&5 8683 echo "configure: failed program was:" >&5
8676 cat conftest.$ac_ext >&5 8684 cat conftest.$ac_ext >&5
8697 8705
8698 8706
8699 else 8707 else
8700 8708
8701 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8709 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8702 echo "configure:8703: checking for threeDClassRec in -l$athena_variant" >&5 8710 echo "configure:8711: checking for threeDClassRec in -l$athena_variant" >&5
8703 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8711 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8704 8712
8705 xe_check_libs=" -l$athena_variant " 8713 xe_check_libs=" -l$athena_variant "
8706 cat > conftest.$ac_ext <<EOF 8714 cat > conftest.$ac_ext <<EOF
8707 #line 8708 "configure" 8715 #line 8716 "configure"
8708 #include "confdefs.h" 8716 #include "confdefs.h"
8709 /* Override any gcc2 internal prototype to avoid an error. */ 8717 /* Override any gcc2 internal prototype to avoid an error. */
8710 /* We use char because int might match the return type of a gcc2 8718 /* We use char because int might match the return type of a gcc2
8711 builtin and then its argument prototype would still apply. */ 8719 builtin and then its argument prototype would still apply. */
8712 char threeDClassRec(); 8720 char threeDClassRec();
8713 8721
8714 int main() { 8722 int main() {
8715 threeDClassRec() 8723 threeDClassRec()
8716 ; return 0; } 8724 ; return 0; }
8717 EOF 8725 EOF
8718 if { (eval echo configure:8719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8726 if { (eval echo configure:8727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8719 rm -rf conftest* 8727 rm -rf conftest*
8720 eval "ac_cv_lib_$ac_lib_var=yes" 8728 eval "ac_cv_lib_$ac_lib_var=yes"
8721 else 8729 else
8722 echo "configure: failed program was:" >&5 8730 echo "configure: failed program was:" >&5
8723 cat conftest.$ac_ext >&5 8731 cat conftest.$ac_ext >&5
8731 echo "$ac_t""yes" 1>&6 8739 echo "$ac_t""yes" 1>&6
8732 athena_lib=$athena_variant 8740 athena_lib=$athena_variant
8733 else 8741 else
8734 echo "$ac_t""no" 1>&6 8742 echo "$ac_t""no" 1>&6
8735 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 8743 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8736 echo "configure:8737: checking for threeDClassRec in -lXaw" >&5 8744 echo "configure:8745: checking for threeDClassRec in -lXaw" >&5
8737 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 8745 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8738 8746
8739 xe_check_libs=" -lXaw " 8747 xe_check_libs=" -lXaw "
8740 cat > conftest.$ac_ext <<EOF 8748 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure" 8749 #line 8750 "configure"
8742 #include "confdefs.h" 8750 #include "confdefs.h"
8743 /* Override any gcc2 internal prototype to avoid an error. */ 8751 /* Override any gcc2 internal prototype to avoid an error. */
8744 /* We use char because int might match the return type of a gcc2 8752 /* We use char because int might match the return type of a gcc2
8745 builtin and then its argument prototype would still apply. */ 8753 builtin and then its argument prototype would still apply. */
8746 char threeDClassRec(); 8754 char threeDClassRec();
8747 8755
8748 int main() { 8756 int main() {
8749 threeDClassRec() 8757 threeDClassRec()
8750 ; return 0; } 8758 ; return 0; }
8751 EOF 8759 EOF
8752 if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8760 if { (eval echo configure:8761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8753 rm -rf conftest* 8761 rm -rf conftest*
8754 eval "ac_cv_lib_$ac_lib_var=yes" 8762 eval "ac_cv_lib_$ac_lib_var=yes"
8755 else 8763 else
8756 echo "configure: failed program was:" >&5 8764 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5 8765 cat conftest.$ac_ext >&5
8778 fi 8786 fi
8779 8787
8780 if test "$athena_3d" = "no"; then 8788 if test "$athena_3d" = "no"; then
8781 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 8789 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8782 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 8790 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8783 echo "configure:8784: checking for X11/Xaw/ThreeD.h" >&5 8791 echo "configure:8792: checking for X11/Xaw/ThreeD.h" >&5
8784 8792
8785 cat > conftest.$ac_ext <<EOF 8793 cat > conftest.$ac_ext <<EOF
8786 #line 8787 "configure" 8794 #line 8795 "configure"
8787 #include "confdefs.h" 8795 #include "confdefs.h"
8788 #include <X11/Xaw/ThreeD.h> 8796 #include <X11/Xaw/ThreeD.h>
8789 EOF 8797 EOF
8790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8791 { (eval echo configure:8792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8799 { (eval echo configure:8800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8793 if test -z "$ac_err"; then 8801 if test -z "$ac_err"; then
8794 rm -rf conftest* 8802 rm -rf conftest*
8795 eval "ac_cv_header_$ac_safe=yes" 8803 eval "ac_cv_header_$ac_safe=yes"
8796 else 8804 else
8806 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2 8814 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
8807 else 8815 else
8808 echo "$ac_t""no" 1>&6 8816 echo "$ac_t""no" 1>&6
8809 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 8817 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8810 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 8818 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8811 echo "configure:8812: checking for X11/Xaw/XawInit.h" >&5 8819 echo "configure:8820: checking for X11/Xaw/XawInit.h" >&5
8812 8820
8813 cat > conftest.$ac_ext <<EOF 8821 cat > conftest.$ac_ext <<EOF
8814 #line 8815 "configure" 8822 #line 8823 "configure"
8815 #include "confdefs.h" 8823 #include "confdefs.h"
8816 #include <X11/Xaw/XawInit.h> 8824 #include <X11/Xaw/XawInit.h>
8817 EOF 8825 EOF
8818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8819 { (eval echo configure:8820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8827 { (eval echo configure:8828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8821 if test -z "$ac_err"; then 8829 if test -z "$ac_err"; then
8822 rm -rf conftest* 8830 rm -rf conftest*
8823 eval "ac_cv_header_$ac_safe=yes" 8831 eval "ac_cv_header_$ac_safe=yes"
8824 else 8832 else
8840 fi 8848 fi
8841 8849
8842 else 8850 else
8843 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 8851 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8844 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 8852 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8845 echo "configure:8846: checking for X11/$athena_variant/XawInit.h" >&5 8853 echo "configure:8854: checking for X11/$athena_variant/XawInit.h" >&5
8846 8854
8847 cat > conftest.$ac_ext <<EOF 8855 cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure" 8856 #line 8857 "configure"
8849 #include "confdefs.h" 8857 #include "confdefs.h"
8850 #include <X11/$athena_variant/XawInit.h> 8858 #include <X11/$athena_variant/XawInit.h>
8851 EOF 8859 EOF
8852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8853 { (eval echo configure:8854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8861 { (eval echo configure:8862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8855 if test -z "$ac_err"; then 8863 if test -z "$ac_err"; then
8856 rm -rf conftest* 8864 rm -rf conftest*
8857 eval "ac_cv_header_$ac_safe=yes" 8865 eval "ac_cv_header_$ac_safe=yes"
8858 else 8866 else
8865 rm -f conftest* 8873 rm -f conftest*
8866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8867 echo "$ac_t""yes" 1>&6 8875 echo "$ac_t""yes" 1>&6
8868 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 8876 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8869 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 8877 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8870 echo "configure:8871: checking for X11/$athena_variant/ThreeD.h" >&5 8878 echo "configure:8879: checking for X11/$athena_variant/ThreeD.h" >&5
8871 8879
8872 cat > conftest.$ac_ext <<EOF 8880 cat > conftest.$ac_ext <<EOF
8873 #line 8874 "configure" 8881 #line 8882 "configure"
8874 #include "confdefs.h" 8882 #include "confdefs.h"
8875 #include <X11/$athena_variant/ThreeD.h> 8883 #include <X11/$athena_variant/ThreeD.h>
8876 EOF 8884 EOF
8877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8878 { (eval echo configure:8879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8886 { (eval echo configure:8887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8880 if test -z "$ac_err"; then 8888 if test -z "$ac_err"; then
8881 rm -rf conftest* 8889 rm -rf conftest*
8882 eval "ac_cv_header_$ac_safe=yes" 8890 eval "ac_cv_header_$ac_safe=yes"
8883 else 8891 else
8901 8909
8902 8910
8903 if test -z "$athena_h_path"; then 8911 if test -z "$athena_h_path"; then
8904 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 8912 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8905 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 8913 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8906 echo "configure:8907: checking for $athena_variant/XawInit.h" >&5 8914 echo "configure:8915: checking for $athena_variant/XawInit.h" >&5
8907 8915
8908 cat > conftest.$ac_ext <<EOF 8916 cat > conftest.$ac_ext <<EOF
8909 #line 8910 "configure" 8917 #line 8918 "configure"
8910 #include "confdefs.h" 8918 #include "confdefs.h"
8911 #include <$athena_variant/XawInit.h> 8919 #include <$athena_variant/XawInit.h>
8912 EOF 8920 EOF
8913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8914 { (eval echo configure:8915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8922 { (eval echo configure:8923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8916 if test -z "$ac_err"; then 8924 if test -z "$ac_err"; then
8917 rm -rf conftest* 8925 rm -rf conftest*
8918 eval "ac_cv_header_$ac_safe=yes" 8926 eval "ac_cv_header_$ac_safe=yes"
8919 else 8927 else
8926 rm -f conftest* 8934 rm -f conftest*
8927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8928 echo "$ac_t""yes" 1>&6 8936 echo "$ac_t""yes" 1>&6
8929 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 8937 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8930 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 8938 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8931 echo "configure:8932: checking for $athena_variant/ThreeD.h" >&5 8939 echo "configure:8940: checking for $athena_variant/ThreeD.h" >&5
8932 8940
8933 cat > conftest.$ac_ext <<EOF 8941 cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure" 8942 #line 8943 "configure"
8935 #include "confdefs.h" 8943 #include "confdefs.h"
8936 #include <$athena_variant/ThreeD.h> 8944 #include <$athena_variant/ThreeD.h>
8937 EOF 8945 EOF
8938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8939 { (eval echo configure:8940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8947 { (eval echo configure:8948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8941 if test -z "$ac_err"; then 8949 if test -z "$ac_err"; then
8942 rm -rf conftest* 8950 rm -rf conftest*
8943 eval "ac_cv_header_$ac_safe=yes" 8951 eval "ac_cv_header_$ac_safe=yes"
8944 else 8952 else
8963 fi 8971 fi
8964 8972
8965 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 8973 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8966 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 8974 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8967 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 8975 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8968 echo "configure:8969: checking for X11/Xaw3d/XawInit.h" >&5 8976 echo "configure:8977: checking for X11/Xaw3d/XawInit.h" >&5
8969 8977
8970 cat > conftest.$ac_ext <<EOF 8978 cat > conftest.$ac_ext <<EOF
8971 #line 8972 "configure" 8979 #line 8980 "configure"
8972 #include "confdefs.h" 8980 #include "confdefs.h"
8973 #include <X11/Xaw3d/XawInit.h> 8981 #include <X11/Xaw3d/XawInit.h>
8974 EOF 8982 EOF
8975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8976 { (eval echo configure:8977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8984 { (eval echo configure:8985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8978 if test -z "$ac_err"; then 8986 if test -z "$ac_err"; then
8979 rm -rf conftest* 8987 rm -rf conftest*
8980 eval "ac_cv_header_$ac_safe=yes" 8988 eval "ac_cv_header_$ac_safe=yes"
8981 else 8989 else
8988 rm -f conftest* 8996 rm -f conftest*
8989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8990 echo "$ac_t""yes" 1>&6 8998 echo "$ac_t""yes" 1>&6
8991 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 8999 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8992 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 9000 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8993 echo "configure:8994: checking for X11/Xaw3d/ThreeD.h" >&5 9001 echo "configure:9002: checking for X11/Xaw3d/ThreeD.h" >&5
8994 9002
8995 cat > conftest.$ac_ext <<EOF 9003 cat > conftest.$ac_ext <<EOF
8996 #line 8997 "configure" 9004 #line 9005 "configure"
8997 #include "confdefs.h" 9005 #include "confdefs.h"
8998 #include <X11/Xaw3d/ThreeD.h> 9006 #include <X11/Xaw3d/ThreeD.h>
8999 EOF 9007 EOF
9000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9001 { (eval echo configure:9002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9009 { (eval echo configure:9010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9003 if test -z "$ac_err"; then 9011 if test -z "$ac_err"; then
9004 rm -rf conftest* 9012 rm -rf conftest*
9005 eval "ac_cv_header_$ac_safe=yes" 9013 eval "ac_cv_header_$ac_safe=yes"
9006 else 9014 else
9028 fi 9036 fi
9029 9037
9030 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 9038 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9031 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 9039 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9032 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 9040 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9033 echo "configure:9034: checking for Xaw3d/XawInit.h" >&5 9041 echo "configure:9042: checking for Xaw3d/XawInit.h" >&5
9034 9042
9035 cat > conftest.$ac_ext <<EOF 9043 cat > conftest.$ac_ext <<EOF
9036 #line 9037 "configure" 9044 #line 9045 "configure"
9037 #include "confdefs.h" 9045 #include "confdefs.h"
9038 #include <Xaw3d/XawInit.h> 9046 #include <Xaw3d/XawInit.h>
9039 EOF 9047 EOF
9040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9041 { (eval echo configure:9042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9049 { (eval echo configure:9050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9043 if test -z "$ac_err"; then 9051 if test -z "$ac_err"; then
9044 rm -rf conftest* 9052 rm -rf conftest*
9045 eval "ac_cv_header_$ac_safe=yes" 9053 eval "ac_cv_header_$ac_safe=yes"
9046 else 9054 else
9053 rm -f conftest* 9061 rm -f conftest*
9054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9055 echo "$ac_t""yes" 1>&6 9063 echo "$ac_t""yes" 1>&6
9056 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 9064 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9057 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 9065 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9058 echo "configure:9059: checking for Xaw3d/ThreeD.h" >&5 9066 echo "configure:9067: checking for Xaw3d/ThreeD.h" >&5
9059 9067
9060 cat > conftest.$ac_ext <<EOF 9068 cat > conftest.$ac_ext <<EOF
9061 #line 9062 "configure" 9069 #line 9070 "configure"
9062 #include "confdefs.h" 9070 #include "confdefs.h"
9063 #include <Xaw3d/ThreeD.h> 9071 #include <Xaw3d/ThreeD.h>
9064 EOF 9072 EOF
9065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9066 { (eval echo configure:9067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9074 { (eval echo configure:9075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9068 if test -z "$ac_err"; then 9076 if test -z "$ac_err"; then
9069 rm -rf conftest* 9077 rm -rf conftest*
9070 eval "ac_cv_header_$ac_safe=yes" 9078 eval "ac_cv_header_$ac_safe=yes"
9071 else 9079 else
9093 fi 9101 fi
9094 9102
9095 if test -z "$athena_h_path"; then 9103 if test -z "$athena_h_path"; then
9096 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 9104 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9097 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 9105 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9098 echo "configure:9099: checking for X11/Xaw/ThreeD.h" >&5 9106 echo "configure:9107: checking for X11/Xaw/ThreeD.h" >&5
9099 9107
9100 cat > conftest.$ac_ext <<EOF 9108 cat > conftest.$ac_ext <<EOF
9101 #line 9102 "configure" 9109 #line 9110 "configure"
9102 #include "confdefs.h" 9110 #include "confdefs.h"
9103 #include <X11/Xaw/ThreeD.h> 9111 #include <X11/Xaw/ThreeD.h>
9104 EOF 9112 EOF
9105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9106 { (eval echo configure:9107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9114 { (eval echo configure:9115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9108 if test -z "$ac_err"; then 9116 if test -z "$ac_err"; then
9109 rm -rf conftest* 9117 rm -rf conftest*
9110 eval "ac_cv_header_$ac_safe=yes" 9118 eval "ac_cv_header_$ac_safe=yes"
9111 else 9119 else
9140 have_xaw=no 9148 have_xaw=no
9141 fi 9149 fi
9142 if test "$with_x11" = "yes"; then 9150 if test "$with_x11" = "yes"; then
9143 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 9151 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9144 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 9152 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9145 echo "configure:9146: checking for Xm/Xm.h" >&5 9153 echo "configure:9154: checking for Xm/Xm.h" >&5
9146 9154
9147 cat > conftest.$ac_ext <<EOF 9155 cat > conftest.$ac_ext <<EOF
9148 #line 9149 "configure" 9156 #line 9157 "configure"
9149 #include "confdefs.h" 9157 #include "confdefs.h"
9150 #include <Xm/Xm.h> 9158 #include <Xm/Xm.h>
9151 EOF 9159 EOF
9152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9153 { (eval echo configure:9154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9161 { (eval echo configure:9162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9155 if test -z "$ac_err"; then 9163 if test -z "$ac_err"; then
9156 rm -rf conftest* 9164 rm -rf conftest*
9157 eval "ac_cv_header_$ac_safe=yes" 9165 eval "ac_cv_header_$ac_safe=yes"
9158 else 9166 else
9165 rm -f conftest* 9173 rm -f conftest*
9166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9167 echo "$ac_t""yes" 1>&6 9175 echo "$ac_t""yes" 1>&6
9168 9176
9169 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 9177 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9170 echo "configure:9171: checking for XmStringFree in -lXm" >&5 9178 echo "configure:9179: checking for XmStringFree in -lXm" >&5
9171 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 9179 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9172 9180
9173 xe_check_libs=" -lXm " 9181 xe_check_libs=" -lXm "
9174 cat > conftest.$ac_ext <<EOF 9182 cat > conftest.$ac_ext <<EOF
9175 #line 9176 "configure" 9183 #line 9184 "configure"
9176 #include "confdefs.h" 9184 #include "confdefs.h"
9177 /* Override any gcc2 internal prototype to avoid an error. */ 9185 /* Override any gcc2 internal prototype to avoid an error. */
9178 /* We use char because int might match the return type of a gcc2 9186 /* We use char because int might match the return type of a gcc2
9179 builtin and then its argument prototype would still apply. */ 9187 builtin and then its argument prototype would still apply. */
9180 char XmStringFree(); 9188 char XmStringFree();
9181 9189
9182 int main() { 9190 int main() {
9183 XmStringFree() 9191 XmStringFree()
9184 ; return 0; } 9192 ; return 0; }
9185 EOF 9193 EOF
9186 if { (eval echo configure:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9194 if { (eval echo configure:9195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9187 rm -rf conftest* 9195 rm -rf conftest*
9188 eval "ac_cv_lib_$ac_lib_var=yes" 9196 eval "ac_cv_lib_$ac_lib_var=yes"
9189 else 9197 else
9190 echo "configure: failed program was:" >&5 9198 echo "configure: failed program was:" >&5
9191 cat conftest.$ac_ext >&5 9199 cat conftest.$ac_ext >&5
9210 fi 9218 fi
9211 9219
9212 9220
9213 if test "$have_motif" = "yes"; then 9221 if test "$have_motif" = "yes"; then
9214 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 9222 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9215 echo "configure:9216: checking for Lesstif" >&5 9223 echo "configure:9224: checking for Lesstif" >&5
9216 cat > conftest.$ac_ext <<EOF 9224 cat > conftest.$ac_ext <<EOF
9217 #line 9218 "configure" 9225 #line 9226 "configure"
9218 #include "confdefs.h" 9226 #include "confdefs.h"
9219 #include <Xm/Xm.h> 9227 #include <Xm/Xm.h>
9220 #ifdef LESSTIF_VERSION 9228 #ifdef LESSTIF_VERSION
9221 yes 9229 yes
9222 #endif 9230 #endif
9585 9593
9586 fi 9594 fi
9587 9595
9588 if test "$with_mule" = "yes" ; then 9596 if test "$with_mule" = "yes" ; then
9589 echo "checking for Mule-related features" 1>&6 9597 echo "checking for Mule-related features" 1>&6
9590 echo "configure:9591: checking for Mule-related features" >&5 9598 echo "configure:9599: checking for Mule-related features" >&5
9591 { test "$extra_verbose" = "yes" && cat << \EOF 9599 { test "$extra_verbose" = "yes" && cat << \EOF
9592 Defining MULE 9600 Defining MULE
9593 EOF 9601 EOF
9594 cat >> confdefs.h <<\EOF 9602 cat >> confdefs.h <<\EOF
9595 #define MULE 1 9603 #define MULE 1
9599 9607
9600 for ac_hdr in libintl.h 9608 for ac_hdr in libintl.h
9601 do 9609 do
9602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 9610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 9611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9604 echo "configure:9605: checking for $ac_hdr" >&5 9612 echo "configure:9613: checking for $ac_hdr" >&5
9605 9613
9606 cat > conftest.$ac_ext <<EOF 9614 cat > conftest.$ac_ext <<EOF
9607 #line 9608 "configure" 9615 #line 9616 "configure"
9608 #include "confdefs.h" 9616 #include "confdefs.h"
9609 #include <$ac_hdr> 9617 #include <$ac_hdr>
9610 EOF 9618 EOF
9611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9612 { (eval echo configure:9613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9620 { (eval echo configure:9621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9614 if test -z "$ac_err"; then 9622 if test -z "$ac_err"; then
9615 rm -rf conftest* 9623 rm -rf conftest*
9616 eval "ac_cv_header_$ac_safe=yes" 9624 eval "ac_cv_header_$ac_safe=yes"
9617 else 9625 else
9638 fi 9646 fi
9639 done 9647 done
9640 9648
9641 9649
9642 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 9650 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9643 echo "configure:9644: checking for strerror in -lintl" >&5 9651 echo "configure:9652: checking for strerror in -lintl" >&5
9644 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 9652 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9645 9653
9646 xe_check_libs=" -lintl " 9654 xe_check_libs=" -lintl "
9647 cat > conftest.$ac_ext <<EOF 9655 cat > conftest.$ac_ext <<EOF
9648 #line 9649 "configure" 9656 #line 9657 "configure"
9649 #include "confdefs.h" 9657 #include "confdefs.h"
9650 /* Override any gcc2 internal prototype to avoid an error. */ 9658 /* Override any gcc2 internal prototype to avoid an error. */
9651 /* We use char because int might match the return type of a gcc2 9659 /* We use char because int might match the return type of a gcc2
9652 builtin and then its argument prototype would still apply. */ 9660 builtin and then its argument prototype would still apply. */
9653 char strerror(); 9661 char strerror();
9654 9662
9655 int main() { 9663 int main() {
9656 strerror() 9664 strerror()
9657 ; return 0; } 9665 ; return 0; }
9658 EOF 9666 EOF
9659 if { (eval echo configure:9660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9667 if { (eval echo configure:9668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9660 rm -rf conftest* 9668 rm -rf conftest*
9661 eval "ac_cv_lib_$ac_lib_var=yes" 9669 eval "ac_cv_lib_$ac_lib_var=yes"
9662 else 9670 else
9663 echo "configure: failed program was:" >&5 9671 echo "configure: failed program was:" >&5
9664 cat conftest.$ac_ext >&5 9672 cat conftest.$ac_ext >&5
9687 fi 9695 fi
9688 9696
9689 9697
9690 9698
9691 echo "checking for Mule input methods" 1>&6 9699 echo "checking for Mule input methods" 1>&6
9692 echo "configure:9693: checking for Mule input methods" >&5 9700 echo "configure:9701: checking for Mule input methods" >&5
9693 case "$with_xim" in "" | "yes" ) 9701 case "$with_xim" in "" | "yes" )
9694 echo "checking for XIM" 1>&6 9702 echo "checking for XIM" 1>&6
9695 echo "configure:9696: checking for XIM" >&5 9703 echo "configure:9704: checking for XIM" >&5
9696 9704
9697 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 9705 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9698 echo "configure:9699: checking for XOpenIM in -lX11" >&5 9706 echo "configure:9707: checking for XOpenIM in -lX11" >&5
9699 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 9707 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9700 9708
9701 xe_check_libs=" -lX11 " 9709 xe_check_libs=" -lX11 "
9702 cat > conftest.$ac_ext <<EOF 9710 cat > conftest.$ac_ext <<EOF
9703 #line 9704 "configure" 9711 #line 9712 "configure"
9704 #include "confdefs.h" 9712 #include "confdefs.h"
9705 /* Override any gcc2 internal prototype to avoid an error. */ 9713 /* Override any gcc2 internal prototype to avoid an error. */
9706 /* We use char because int might match the return type of a gcc2 9714 /* We use char because int might match the return type of a gcc2
9707 builtin and then its argument prototype would still apply. */ 9715 builtin and then its argument prototype would still apply. */
9708 char XOpenIM(); 9716 char XOpenIM();
9709 9717
9710 int main() { 9718 int main() {
9711 XOpenIM() 9719 XOpenIM()
9712 ; return 0; } 9720 ; return 0; }
9713 EOF 9721 EOF
9714 if { (eval echo configure:9715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9722 if { (eval echo configure:9723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9715 rm -rf conftest* 9723 rm -rf conftest*
9716 eval "ac_cv_lib_$ac_lib_var=yes" 9724 eval "ac_cv_lib_$ac_lib_var=yes"
9717 else 9725 else
9718 echo "configure: failed program was:" >&5 9726 echo "configure: failed program was:" >&5
9719 cat conftest.$ac_ext >&5 9727 cat conftest.$ac_ext >&5
9733 9741
9734 9742
9735 if test "$have_motif $have_lesstif" = "yes no"; then 9743 if test "$have_motif $have_lesstif" = "yes no"; then
9736 9744
9737 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 9745 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9738 echo "configure:9739: checking for XmImMbLookupString in -lXm" >&5 9746 echo "configure:9747: checking for XmImMbLookupString in -lXm" >&5
9739 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 9747 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9740 9748
9741 xe_check_libs=" -lXm " 9749 xe_check_libs=" -lXm "
9742 cat > conftest.$ac_ext <<EOF 9750 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure" 9751 #line 9752 "configure"
9744 #include "confdefs.h" 9752 #include "confdefs.h"
9745 /* Override any gcc2 internal prototype to avoid an error. */ 9753 /* Override any gcc2 internal prototype to avoid an error. */
9746 /* We use char because int might match the return type of a gcc2 9754 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */ 9755 builtin and then its argument prototype would still apply. */
9748 char XmImMbLookupString(); 9756 char XmImMbLookupString();
9749 9757
9750 int main() { 9758 int main() {
9751 XmImMbLookupString() 9759 XmImMbLookupString()
9752 ; return 0; } 9760 ; return 0; }
9753 EOF 9761 EOF
9754 if { (eval echo configure:9755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9762 if { (eval echo configure:9763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9755 rm -rf conftest* 9763 rm -rf conftest*
9756 eval "ac_cv_lib_$ac_lib_var=yes" 9764 eval "ac_cv_lib_$ac_lib_var=yes"
9757 else 9765 else
9758 echo "configure: failed program was:" >&5 9766 echo "configure: failed program was:" >&5
9759 cat conftest.$ac_ext >&5 9767 cat conftest.$ac_ext >&5
9814 fi 9822 fi
9815 fi 9823 fi
9816 9824
9817 if test "$with_xfs" = "yes" ; then 9825 if test "$with_xfs" = "yes" ; then
9818 echo "checking for XFontSet" 1>&6 9826 echo "checking for XFontSet" 1>&6
9819 echo "configure:9820: checking for XFontSet" >&5 9827 echo "configure:9828: checking for XFontSet" >&5
9820 9828
9821 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 9829 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9822 echo "configure:9823: checking for XmbDrawString in -lX11" >&5 9830 echo "configure:9831: checking for XmbDrawString in -lX11" >&5
9823 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 9831 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9824 9832
9825 xe_check_libs=" -lX11 " 9833 xe_check_libs=" -lX11 "
9826 cat > conftest.$ac_ext <<EOF 9834 cat > conftest.$ac_ext <<EOF
9827 #line 9828 "configure" 9835 #line 9836 "configure"
9828 #include "confdefs.h" 9836 #include "confdefs.h"
9829 /* Override any gcc2 internal prototype to avoid an error. */ 9837 /* Override any gcc2 internal prototype to avoid an error. */
9830 /* We use char because int might match the return type of a gcc2 9838 /* We use char because int might match the return type of a gcc2
9831 builtin and then its argument prototype would still apply. */ 9839 builtin and then its argument prototype would still apply. */
9832 char XmbDrawString(); 9840 char XmbDrawString();
9833 9841
9834 int main() { 9842 int main() {
9835 XmbDrawString() 9843 XmbDrawString()
9836 ; return 0; } 9844 ; return 0; }
9837 EOF 9845 EOF
9838 if { (eval echo configure:9839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9846 if { (eval echo configure:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9839 rm -rf conftest* 9847 rm -rf conftest*
9840 eval "ac_cv_lib_$ac_lib_var=yes" 9848 eval "ac_cv_lib_$ac_lib_var=yes"
9841 else 9849 else
9842 echo "configure: failed program was:" >&5 9850 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5 9851 cat conftest.$ac_ext >&5
9873 fi 9881 fi
9874 fi 9882 fi
9875 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 9883 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9876 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 9884 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9877 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 9885 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9878 echo "configure:9879: checking for wnn/jllib.h" >&5 9886 echo "configure:9887: checking for wnn/jllib.h" >&5
9879 9887
9880 cat > conftest.$ac_ext <<EOF 9888 cat > conftest.$ac_ext <<EOF
9881 #line 9882 "configure" 9889 #line 9890 "configure"
9882 #include "confdefs.h" 9890 #include "confdefs.h"
9883 #include <wnn/jllib.h> 9891 #include <wnn/jllib.h>
9884 EOF 9892 EOF
9885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9886 { (eval echo configure:9887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9894 { (eval echo configure:9895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9888 if test -z "$ac_err"; then 9896 if test -z "$ac_err"; then
9889 rm -rf conftest* 9897 rm -rf conftest*
9890 eval "ac_cv_header_$ac_safe=yes" 9898 eval "ac_cv_header_$ac_safe=yes"
9891 else 9899 else
9904 with_wnn=no 9912 with_wnn=no
9905 fi 9913 fi
9906 } 9914 }
9907 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` 9915 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
9908 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 9916 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
9909 echo "configure:9910: checking for wnn/commonhd.h" >&5 9917 echo "configure:9918: checking for wnn/commonhd.h" >&5
9910 9918
9911 cat > conftest.$ac_ext <<EOF 9919 cat > conftest.$ac_ext <<EOF
9912 #line 9913 "configure" 9920 #line 9921 "configure"
9913 #include "confdefs.h" 9921 #include "confdefs.h"
9914 #include <wnn/commonhd.h> 9922 #include <wnn/commonhd.h>
9915 EOF 9923 EOF
9916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9917 { (eval echo configure:9918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9925 { (eval echo configure:9926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9919 if test -z "$ac_err"; then 9927 if test -z "$ac_err"; then
9920 rm -rf conftest* 9928 rm -rf conftest*
9921 eval "ac_cv_header_$ac_safe=yes" 9929 eval "ac_cv_header_$ac_safe=yes"
9922 else 9930 else
9937 } 9945 }
9938 if test "$with_wnn" != "no"; then 9946 if test "$with_wnn" != "no"; then
9939 for ac_func in crypt 9947 for ac_func in crypt
9940 do 9948 do
9941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9942 echo "configure:9943: checking for $ac_func" >&5 9950 echo "configure:9951: checking for $ac_func" >&5
9943 9951
9944 cat > conftest.$ac_ext <<EOF 9952 cat > conftest.$ac_ext <<EOF
9945 #line 9946 "configure" 9953 #line 9954 "configure"
9946 #include "confdefs.h" 9954 #include "confdefs.h"
9947 /* System header to define __stub macros and hopefully few prototypes, 9955 /* System header to define __stub macros and hopefully few prototypes,
9948 which can conflict with char $ac_func(); below. */ 9956 which can conflict with char $ac_func(); below. */
9949 #include <assert.h> 9957 #include <assert.h>
9950 /* Override any gcc2 internal prototype to avoid an error. */ 9958 /* Override any gcc2 internal prototype to avoid an error. */
9963 $ac_func(); 9971 $ac_func();
9964 #endif 9972 #endif
9965 9973
9966 ; return 0; } 9974 ; return 0; }
9967 EOF 9975 EOF
9968 if { (eval echo configure:9969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9976 if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9969 rm -rf conftest* 9977 rm -rf conftest*
9970 eval "ac_cv_func_$ac_func=yes" 9978 eval "ac_cv_func_$ac_func=yes"
9971 else 9979 else
9972 echo "configure: failed program was:" >&5 9980 echo "configure: failed program was:" >&5
9973 cat conftest.$ac_ext >&5 9981 cat conftest.$ac_ext >&5
9992 fi 10000 fi
9993 done 10001 done
9994 10002
9995 test "$ac_cv_func_crypt" != "yes" && { 10003 test "$ac_cv_func_crypt" != "yes" && {
9996 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 10004 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9997 echo "configure:9998: checking for crypt in -lcrypt" >&5 10005 echo "configure:10006: checking for crypt in -lcrypt" >&5
9998 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 10006 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9999 10007
10000 xe_check_libs=" -lcrypt " 10008 xe_check_libs=" -lcrypt "
10001 cat > conftest.$ac_ext <<EOF 10009 cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure" 10010 #line 10011 "configure"
10003 #include "confdefs.h" 10011 #include "confdefs.h"
10004 /* Override any gcc2 internal prototype to avoid an error. */ 10012 /* Override any gcc2 internal prototype to avoid an error. */
10005 /* We use char because int might match the return type of a gcc2 10013 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */ 10014 builtin and then its argument prototype would still apply. */
10007 char crypt(); 10015 char crypt();
10008 10016
10009 int main() { 10017 int main() {
10010 crypt() 10018 crypt()
10011 ; return 0; } 10019 ; return 0; }
10012 EOF 10020 EOF
10013 if { (eval echo configure:10014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10021 if { (eval echo configure:10022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10014 rm -rf conftest* 10022 rm -rf conftest*
10015 eval "ac_cv_lib_$ac_lib_var=yes" 10023 eval "ac_cv_lib_$ac_lib_var=yes"
10016 else 10024 else
10017 echo "configure: failed program was:" >&5 10025 echo "configure: failed program was:" >&5
10018 cat conftest.$ac_ext >&5 10026 cat conftest.$ac_ext >&5
10043 } 10051 }
10044 fi 10052 fi
10045 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 10053 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10046 10054
10047 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 10055 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10048 echo "configure:10049: checking for jl_dic_list_e in -lwnn" >&5 10056 echo "configure:10057: checking for jl_dic_list_e in -lwnn" >&5
10049 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10057 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10050 10058
10051 xe_check_libs=" -lwnn " 10059 xe_check_libs=" -lwnn "
10052 cat > conftest.$ac_ext <<EOF 10060 cat > conftest.$ac_ext <<EOF
10053 #line 10054 "configure" 10061 #line 10062 "configure"
10054 #include "confdefs.h" 10062 #include "confdefs.h"
10055 /* Override any gcc2 internal prototype to avoid an error. */ 10063 /* Override any gcc2 internal prototype to avoid an error. */
10056 /* We use char because int might match the return type of a gcc2 10064 /* We use char because int might match the return type of a gcc2
10057 builtin and then its argument prototype would still apply. */ 10065 builtin and then its argument prototype would still apply. */
10058 char jl_dic_list_e(); 10066 char jl_dic_list_e();
10059 10067
10060 int main() { 10068 int main() {
10061 jl_dic_list_e() 10069 jl_dic_list_e()
10062 ; return 0; } 10070 ; return 0; }
10063 EOF 10071 EOF
10064 if { (eval echo configure:10065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10072 if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10065 rm -rf conftest* 10073 rm -rf conftest*
10066 eval "ac_cv_lib_$ac_lib_var=yes" 10074 eval "ac_cv_lib_$ac_lib_var=yes"
10067 else 10075 else
10068 echo "configure: failed program was:" >&5 10076 echo "configure: failed program was:" >&5
10069 cat conftest.$ac_ext >&5 10077 cat conftest.$ac_ext >&5
10077 echo "$ac_t""yes" 1>&6 10085 echo "$ac_t""yes" 1>&6
10078 libwnn=wnn 10086 libwnn=wnn
10079 else 10087 else
10080 echo "$ac_t""no" 1>&6 10088 echo "$ac_t""no" 1>&6
10081 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 10089 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10082 echo "configure:10083: checking for jl_dic_list_e in -lwnn4" >&5 10090 echo "configure:10091: checking for jl_dic_list_e in -lwnn4" >&5
10083 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10091 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10084 10092
10085 xe_check_libs=" -lwnn4 " 10093 xe_check_libs=" -lwnn4 "
10086 cat > conftest.$ac_ext <<EOF 10094 cat > conftest.$ac_ext <<EOF
10087 #line 10088 "configure" 10095 #line 10096 "configure"
10088 #include "confdefs.h" 10096 #include "confdefs.h"
10089 /* Override any gcc2 internal prototype to avoid an error. */ 10097 /* Override any gcc2 internal prototype to avoid an error. */
10090 /* 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
10091 builtin and then its argument prototype would still apply. */ 10099 builtin and then its argument prototype would still apply. */
10092 char jl_dic_list_e(); 10100 char jl_dic_list_e();
10093 10101
10094 int main() { 10102 int main() {
10095 jl_dic_list_e() 10103 jl_dic_list_e()
10096 ; return 0; } 10104 ; return 0; }
10097 EOF 10105 EOF
10098 if { (eval echo configure:10099: \"$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
10099 rm -rf conftest* 10107 rm -rf conftest*
10100 eval "ac_cv_lib_$ac_lib_var=yes" 10108 eval "ac_cv_lib_$ac_lib_var=yes"
10101 else 10109 else
10102 echo "configure: failed program was:" >&5 10110 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5 10111 cat conftest.$ac_ext >&5
10111 echo "$ac_t""yes" 1>&6 10119 echo "$ac_t""yes" 1>&6
10112 libwnn=wnn4 10120 libwnn=wnn4
10113 else 10121 else
10114 echo "$ac_t""no" 1>&6 10122 echo "$ac_t""no" 1>&6
10115 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 10123 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10116 echo "configure:10117: checking for jl_dic_list_e in -lwnn6" >&5 10124 echo "configure:10125: checking for jl_dic_list_e in -lwnn6" >&5
10117 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10125 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10118 10126
10119 xe_check_libs=" -lwnn6 " 10127 xe_check_libs=" -lwnn6 "
10120 cat > conftest.$ac_ext <<EOF 10128 cat > conftest.$ac_ext <<EOF
10121 #line 10122 "configure" 10129 #line 10130 "configure"
10122 #include "confdefs.h" 10130 #include "confdefs.h"
10123 /* Override any gcc2 internal prototype to avoid an error. */ 10131 /* Override any gcc2 internal prototype to avoid an error. */
10124 /* We use char because int might match the return type of a gcc2 10132 /* We use char because int might match the return type of a gcc2
10125 builtin and then its argument prototype would still apply. */ 10133 builtin and then its argument prototype would still apply. */
10126 char jl_dic_list_e(); 10134 char jl_dic_list_e();
10127 10135
10128 int main() { 10136 int main() {
10129 jl_dic_list_e() 10137 jl_dic_list_e()
10130 ; return 0; } 10138 ; return 0; }
10131 EOF 10139 EOF
10132 if { (eval echo configure:10133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10140 if { (eval echo configure:10141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10133 rm -rf conftest* 10141 rm -rf conftest*
10134 eval "ac_cv_lib_$ac_lib_var=yes" 10142 eval "ac_cv_lib_$ac_lib_var=yes"
10135 else 10143 else
10136 echo "configure: failed program was:" >&5 10144 echo "configure: failed program was:" >&5
10137 cat conftest.$ac_ext >&5 10145 cat conftest.$ac_ext >&5
10145 echo "$ac_t""yes" 1>&6 10153 echo "$ac_t""yes" 1>&6
10146 libwnn=wnn6 10154 libwnn=wnn6
10147 else 10155 else
10148 echo "$ac_t""no" 1>&6 10156 echo "$ac_t""no" 1>&6
10149 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 10157 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10150 echo "configure:10151: checking for dic_list_e in -lwnn6_fromsrc" >&5 10158 echo "configure:10159: checking for dic_list_e in -lwnn6_fromsrc" >&5
10151 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 10159 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10152 10160
10153 xe_check_libs=" -lwnn6_fromsrc " 10161 xe_check_libs=" -lwnn6_fromsrc "
10154 cat > conftest.$ac_ext <<EOF 10162 cat > conftest.$ac_ext <<EOF
10155 #line 10156 "configure" 10163 #line 10164 "configure"
10156 #include "confdefs.h" 10164 #include "confdefs.h"
10157 /* Override any gcc2 internal prototype to avoid an error. */ 10165 /* Override any gcc2 internal prototype to avoid an error. */
10158 /* We use char because int might match the return type of a gcc2 10166 /* We use char because int might match the return type of a gcc2
10159 builtin and then its argument prototype would still apply. */ 10167 builtin and then its argument prototype would still apply. */
10160 char dic_list_e(); 10168 char dic_list_e();
10161 10169
10162 int main() { 10170 int main() {
10163 dic_list_e() 10171 dic_list_e()
10164 ; return 0; } 10172 ; return 0; }
10165 EOF 10173 EOF
10166 if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10174 if { (eval echo configure:10175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10167 rm -rf conftest* 10175 rm -rf conftest*
10168 eval "ac_cv_lib_$ac_lib_var=yes" 10176 eval "ac_cv_lib_$ac_lib_var=yes"
10169 else 10177 else
10170 echo "configure: failed program was:" >&5 10178 echo "configure: failed program was:" >&5
10171 cat conftest.$ac_ext >&5 10179 cat conftest.$ac_ext >&5
10206 10214
10207 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi 10215 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10208 if test "$with_wnn6" != "no"; then 10216 if test "$with_wnn6" != "no"; then
10209 10217
10210 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 10218 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10211 echo "configure:10212: checking for jl_fi_dic_list in -l$libwnn" >&5 10219 echo "configure:10220: checking for jl_fi_dic_list in -l$libwnn" >&5
10212 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 10220 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10213 10221
10214 xe_check_libs=" -l$libwnn " 10222 xe_check_libs=" -l$libwnn "
10215 cat > conftest.$ac_ext <<EOF 10223 cat > conftest.$ac_ext <<EOF
10216 #line 10217 "configure" 10224 #line 10225 "configure"
10217 #include "confdefs.h" 10225 #include "confdefs.h"
10218 /* Override any gcc2 internal prototype to avoid an error. */ 10226 /* Override any gcc2 internal prototype to avoid an error. */
10219 /* We use char because int might match the return type of a gcc2 10227 /* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */ 10228 builtin and then its argument prototype would still apply. */
10221 char jl_fi_dic_list(); 10229 char jl_fi_dic_list();
10222 10230
10223 int main() { 10231 int main() {
10224 jl_fi_dic_list() 10232 jl_fi_dic_list()
10225 ; return 0; } 10233 ; return 0; }
10226 EOF 10234 EOF
10227 if { (eval echo configure:10228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10235 if { (eval echo configure:10236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10228 rm -rf conftest* 10236 rm -rf conftest*
10229 eval "ac_cv_lib_$ac_lib_var=yes" 10237 eval "ac_cv_lib_$ac_lib_var=yes"
10230 else 10238 else
10231 echo "configure: failed program was:" >&5 10239 echo "configure: failed program was:" >&5
10232 cat conftest.$ac_ext >&5 10240 cat conftest.$ac_ext >&5
10257 10265
10258 canna_includes_found=no 10266 canna_includes_found=no
10259 if test "$with_canna" != "no"; then 10267 if test "$with_canna" != "no"; then
10260 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 10268 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10261 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 10269 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10262 echo "configure:10263: checking for canna/jrkanji.h" >&5 10270 echo "configure:10271: checking for canna/jrkanji.h" >&5
10263 10271
10264 cat > conftest.$ac_ext <<EOF 10272 cat > conftest.$ac_ext <<EOF
10265 #line 10266 "configure" 10273 #line 10274 "configure"
10266 #include "confdefs.h" 10274 #include "confdefs.h"
10267 #include <canna/jrkanji.h> 10275 #include <canna/jrkanji.h>
10268 EOF 10276 EOF
10269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10270 { (eval echo configure:10271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10278 { (eval echo configure:10279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10272 if test -z "$ac_err"; then 10280 if test -z "$ac_err"; then
10273 rm -rf conftest* 10281 rm -rf conftest*
10274 eval "ac_cv_header_$ac_safe=yes" 10282 eval "ac_cv_header_$ac_safe=yes"
10275 else 10283 else
10292 -d "/usr/local/canna/include"; then 10300 -d "/usr/local/canna/include"; then
10293 save_c_switch_site="$c_switch_site" 10301 save_c_switch_site="$c_switch_site"
10294 c_switch_site="$c_switch_site -I/usr/local/canna/include" 10302 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10295 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 10303 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10296 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 10304 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10297 echo "configure:10298: checking for canna/jrkanji.h" >&5 10305 echo "configure:10306: checking for canna/jrkanji.h" >&5
10298 10306
10299 cat > conftest.$ac_ext <<EOF 10307 cat > conftest.$ac_ext <<EOF
10300 #line 10301 "configure" 10308 #line 10309 "configure"
10301 #include "confdefs.h" 10309 #include "confdefs.h"
10302 #include <canna/jrkanji.h> 10310 #include <canna/jrkanji.h>
10303 EOF 10311 EOF
10304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10305 { (eval echo configure:10306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10313 { (eval echo configure:10314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10307 if test -z "$ac_err"; then 10315 if test -z "$ac_err"; then
10308 rm -rf conftest* 10316 rm -rf conftest*
10309 eval "ac_cv_header_$ac_safe=yes" 10317 eval "ac_cv_header_$ac_safe=yes"
10310 else 10318 else
10328 fi 10336 fi
10329 fi 10337 fi
10330 10338
10331 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 10339 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10332 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 10340 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10333 echo "configure:10334: checking for canna/RK.h" >&5 10341 echo "configure:10342: checking for canna/RK.h" >&5
10334 10342
10335 cat > conftest.$ac_ext <<EOF 10343 cat > conftest.$ac_ext <<EOF
10336 #line 10337 "configure" 10344 #line 10345 "configure"
10337 #include "confdefs.h" 10345 #include "confdefs.h"
10338 #include <canna/RK.h> 10346 #include <canna/RK.h>
10339 EOF 10347 EOF
10340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10341 { (eval echo configure:10342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10349 { (eval echo configure:10350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10343 if test -z "$ac_err"; then 10351 if test -z "$ac_err"; then
10344 rm -rf conftest* 10352 rm -rf conftest*
10345 eval "ac_cv_header_$ac_safe=yes" 10353 eval "ac_cv_header_$ac_safe=yes"
10346 else 10354 else
10359 with_canna=no 10367 with_canna=no
10360 fi 10368 fi
10361 } 10369 }
10362 test -z "$with_canna" && { 10370 test -z "$with_canna" && {
10363 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 10371 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10364 echo "configure:10365: checking for RkBgnBun in -lRKC" >&5 10372 echo "configure:10373: checking for RkBgnBun in -lRKC" >&5
10365 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 10373 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10366 10374
10367 xe_check_libs=" -lRKC " 10375 xe_check_libs=" -lRKC "
10368 cat > conftest.$ac_ext <<EOF 10376 cat > conftest.$ac_ext <<EOF
10369 #line 10370 "configure" 10377 #line 10378 "configure"
10370 #include "confdefs.h" 10378 #include "confdefs.h"
10371 /* Override any gcc2 internal prototype to avoid an error. */ 10379 /* Override any gcc2 internal prototype to avoid an error. */
10372 /* We use char because int might match the return type of a gcc2 10380 /* We use char because int might match the return type of a gcc2
10373 builtin and then its argument prototype would still apply. */ 10381 builtin and then its argument prototype would still apply. */
10374 char RkBgnBun(); 10382 char RkBgnBun();
10375 10383
10376 int main() { 10384 int main() {
10377 RkBgnBun() 10385 RkBgnBun()
10378 ; return 0; } 10386 ; return 0; }
10379 EOF 10387 EOF
10380 if { (eval echo configure:10381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10388 if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10381 rm -rf conftest* 10389 rm -rf conftest*
10382 eval "ac_cv_lib_$ac_lib_var=yes" 10390 eval "ac_cv_lib_$ac_lib_var=yes"
10383 else 10391 else
10384 echo "configure: failed program was:" >&5 10392 echo "configure: failed program was:" >&5
10385 cat conftest.$ac_ext >&5 10393 cat conftest.$ac_ext >&5
10398 fi 10406 fi
10399 10407
10400 } 10408 }
10401 test -z "$with_canna" && { 10409 test -z "$with_canna" && {
10402 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 10410 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10403 echo "configure:10404: checking for jrKanjiControl in -lcanna" >&5 10411 echo "configure:10412: checking for jrKanjiControl in -lcanna" >&5
10404 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 10412 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10405 10413
10406 xe_check_libs=" -lcanna " 10414 xe_check_libs=" -lcanna "
10407 cat > conftest.$ac_ext <<EOF 10415 cat > conftest.$ac_ext <<EOF
10408 #line 10409 "configure" 10416 #line 10417 "configure"
10409 #include "confdefs.h" 10417 #include "confdefs.h"
10410 /* Override any gcc2 internal prototype to avoid an error. */ 10418 /* Override any gcc2 internal prototype to avoid an error. */
10411 /* We use char because int might match the return type of a gcc2 10419 /* We use char because int might match the return type of a gcc2
10412 builtin and then its argument prototype would still apply. */ 10420 builtin and then its argument prototype would still apply. */
10413 char jrKanjiControl(); 10421 char jrKanjiControl();
10414 10422
10415 int main() { 10423 int main() {
10416 jrKanjiControl() 10424 jrKanjiControl()
10417 ; return 0; } 10425 ; return 0; }
10418 EOF 10426 EOF
10419 if { (eval echo configure:10420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10427 if { (eval echo configure:10428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10420 rm -rf conftest* 10428 rm -rf conftest*
10421 eval "ac_cv_lib_$ac_lib_var=yes" 10429 eval "ac_cv_lib_$ac_lib_var=yes"
10422 else 10430 else
10423 echo "configure: failed program was:" >&5 10431 echo "configure: failed program was:" >&5
10424 cat conftest.$ac_ext >&5 10432 cat conftest.$ac_ext >&5
10460 10468
10461 if test "$need_motif" = "yes" ; then 10469 if test "$need_motif" = "yes" ; then
10462 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 10470 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10463 10471
10464 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 10472 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10465 echo "configure:10466: checking for layout_object_getvalue in -li18n" >&5 10473 echo "configure:10474: checking for layout_object_getvalue in -li18n" >&5
10466 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 10474 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10467 10475
10468 xe_check_libs=" -li18n " 10476 xe_check_libs=" -li18n "
10469 cat > conftest.$ac_ext <<EOF 10477 cat > conftest.$ac_ext <<EOF
10470 #line 10471 "configure" 10478 #line 10479 "configure"
10471 #include "confdefs.h" 10479 #include "confdefs.h"
10472 /* Override any gcc2 internal prototype to avoid an error. */ 10480 /* Override any gcc2 internal prototype to avoid an error. */
10473 /* We use char because int might match the return type of a gcc2 10481 /* We use char because int might match the return type of a gcc2
10474 builtin and then its argument prototype would still apply. */ 10482 builtin and then its argument prototype would still apply. */
10475 char layout_object_getvalue(); 10483 char layout_object_getvalue();
10476 10484
10477 int main() { 10485 int main() {
10478 layout_object_getvalue() 10486 layout_object_getvalue()
10479 ; return 0; } 10487 ; return 0; }
10480 EOF 10488 EOF
10481 if { (eval echo configure:10482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10489 if { (eval echo configure:10490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10482 rm -rf conftest* 10490 rm -rf conftest*
10483 eval "ac_cv_lib_$ac_lib_var=yes" 10491 eval "ac_cv_lib_$ac_lib_var=yes"
10484 else 10492 else
10485 echo "configure: failed program was:" >&5 10493 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5 10494 cat conftest.$ac_ext >&5
10563 10571
10564 10572
10565 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror strlwr strupr symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask wcslen wcscmp 10573 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror strlwr strupr symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask wcslen wcscmp
10566 do 10574 do
10567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10568 echo "configure:10569: checking for $ac_func" >&5 10576 echo "configure:10577: checking for $ac_func" >&5
10569 10577
10570 cat > conftest.$ac_ext <<EOF 10578 cat > conftest.$ac_ext <<EOF
10571 #line 10572 "configure" 10579 #line 10580 "configure"
10572 #include "confdefs.h" 10580 #include "confdefs.h"
10573 /* System header to define __stub macros and hopefully few prototypes, 10581 /* System header to define __stub macros and hopefully few prototypes,
10574 which can conflict with char $ac_func(); below. */ 10582 which can conflict with char $ac_func(); below. */
10575 #include <assert.h> 10583 #include <assert.h>
10576 /* Override any gcc2 internal prototype to avoid an error. */ 10584 /* Override any gcc2 internal prototype to avoid an error. */
10589 $ac_func(); 10597 $ac_func();
10590 #endif 10598 #endif
10591 10599
10592 ; return 0; } 10600 ; return 0; }
10593 EOF 10601 EOF
10594 if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10602 if { (eval echo configure:10603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10595 rm -rf conftest* 10603 rm -rf conftest*
10596 eval "ac_cv_func_$ac_func=yes" 10604 eval "ac_cv_func_$ac_func=yes"
10597 else 10605 else
10598 echo "configure: failed program was:" >&5 10606 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5 10607 cat conftest.$ac_ext >&5
10630 10638
10631 10639
10632 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 10640 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10633 do 10641 do
10634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10635 echo "configure:10636: checking for $ac_func" >&5 10643 echo "configure:10644: checking for $ac_func" >&5
10636 10644
10637 cat > conftest.$ac_ext <<EOF 10645 cat > conftest.$ac_ext <<EOF
10638 #line 10639 "configure" 10646 #line 10647 "configure"
10639 #include "confdefs.h" 10647 #include "confdefs.h"
10640 /* System header to define __stub macros and hopefully few prototypes, 10648 /* System header to define __stub macros and hopefully few prototypes,
10641 which can conflict with char $ac_func(); below. */ 10649 which can conflict with char $ac_func(); below. */
10642 #include <assert.h> 10650 #include <assert.h>
10643 /* Override any gcc2 internal prototype to avoid an error. */ 10651 /* Override any gcc2 internal prototype to avoid an error. */
10656 $ac_func(); 10664 $ac_func();
10657 #endif 10665 #endif
10658 10666
10659 ; return 0; } 10667 ; return 0; }
10660 EOF 10668 EOF
10661 if { (eval echo configure:10662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10669 if { (eval echo configure:10670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10662 rm -rf conftest* 10670 rm -rf conftest*
10663 eval "ac_cv_func_$ac_func=yes" 10671 eval "ac_cv_func_$ac_func=yes"
10664 else 10672 else
10665 echo "configure: failed program was:" >&5 10673 echo "configure: failed program was:" >&5
10666 cat conftest.$ac_ext >&5 10674 cat conftest.$ac_ext >&5
10685 fi 10693 fi
10686 done 10694 done
10687 10695
10688 10696
10689 echo $ac_n "checking for openpty""... $ac_c" 1>&6 10697 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10690 echo "configure:10691: checking for openpty" >&5 10698 echo "configure:10699: checking for openpty" >&5
10691 10699
10692 cat > conftest.$ac_ext <<EOF 10700 cat > conftest.$ac_ext <<EOF
10693 #line 10694 "configure" 10701 #line 10702 "configure"
10694 #include "confdefs.h" 10702 #include "confdefs.h"
10695 /* System header to define __stub macros and hopefully few prototypes, 10703 /* System header to define __stub macros and hopefully few prototypes,
10696 which can conflict with char openpty(); below. */ 10704 which can conflict with char openpty(); below. */
10697 #include <assert.h> 10705 #include <assert.h>
10698 /* Override any gcc2 internal prototype to avoid an error. */ 10706 /* Override any gcc2 internal prototype to avoid an error. */
10711 openpty(); 10719 openpty();
10712 #endif 10720 #endif
10713 10721
10714 ; return 0; } 10722 ; return 0; }
10715 EOF 10723 EOF
10716 if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10724 if { (eval echo configure:10725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10717 rm -rf conftest* 10725 rm -rf conftest*
10718 eval "ac_cv_func_openpty=yes" 10726 eval "ac_cv_func_openpty=yes"
10719 else 10727 else
10720 echo "configure: failed program was:" >&5 10728 echo "configure: failed program was:" >&5
10721 cat conftest.$ac_ext >&5 10729 cat conftest.$ac_ext >&5
10730 else 10738 else
10731 echo "$ac_t""no" 1>&6 10739 echo "$ac_t""no" 1>&6
10732 10740
10733 10741
10734 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 10742 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10735 echo "configure:10736: checking for openpty in -lutil" >&5 10743 echo "configure:10744: checking for openpty in -lutil" >&5
10736 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 10744 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10737 10745
10738 xe_check_libs=" -lutil " 10746 xe_check_libs=" -lutil "
10739 cat > conftest.$ac_ext <<EOF 10747 cat > conftest.$ac_ext <<EOF
10740 #line 10741 "configure" 10748 #line 10749 "configure"
10741 #include "confdefs.h" 10749 #include "confdefs.h"
10742 /* Override any gcc2 internal prototype to avoid an error. */ 10750 /* Override any gcc2 internal prototype to avoid an error. */
10743 /* We use char because int might match the return type of a gcc2 10751 /* We use char because int might match the return type of a gcc2
10744 builtin and then its argument prototype would still apply. */ 10752 builtin and then its argument prototype would still apply. */
10745 char openpty(); 10753 char openpty();
10746 10754
10747 int main() { 10755 int main() {
10748 openpty() 10756 openpty()
10749 ; return 0; } 10757 ; return 0; }
10750 EOF 10758 EOF
10751 if { (eval echo configure:10752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10759 if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10752 rm -rf conftest* 10760 rm -rf conftest*
10753 eval "ac_cv_lib_$ac_lib_var=yes" 10761 eval "ac_cv_lib_$ac_lib_var=yes"
10754 else 10762 else
10755 echo "configure: failed program was:" >&5 10763 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5 10764 cat conftest.$ac_ext >&5
10781 10789
10782 for ac_hdr in libutil.h util.h 10790 for ac_hdr in libutil.h util.h
10783 do 10791 do
10784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10786 echo "configure:10787: checking for $ac_hdr" >&5 10794 echo "configure:10795: checking for $ac_hdr" >&5
10787 10795
10788 cat > conftest.$ac_ext <<EOF 10796 cat > conftest.$ac_ext <<EOF
10789 #line 10790 "configure" 10797 #line 10798 "configure"
10790 #include "confdefs.h" 10798 #include "confdefs.h"
10791 #include <$ac_hdr> 10799 #include <$ac_hdr>
10792 EOF 10800 EOF
10793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10794 { (eval echo configure:10795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10802 { (eval echo configure:10803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10796 if test -z "$ac_err"; then 10804 if test -z "$ac_err"; then
10797 rm -rf conftest* 10805 rm -rf conftest*
10798 eval "ac_cv_header_$ac_safe=yes" 10806 eval "ac_cv_header_$ac_safe=yes"
10799 else 10807 else
10826 case "$opsys" in 10834 case "$opsys" in
10827 hpux*) for ac_hdr in sys/ptyio.h 10835 hpux*) for ac_hdr in sys/ptyio.h
10828 do 10836 do
10829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10831 echo "configure:10832: checking for $ac_hdr" >&5 10839 echo "configure:10840: checking for $ac_hdr" >&5
10832 10840
10833 cat > conftest.$ac_ext <<EOF 10841 cat > conftest.$ac_ext <<EOF
10834 #line 10835 "configure" 10842 #line 10843 "configure"
10835 #include "confdefs.h" 10843 #include "confdefs.h"
10836 #include <$ac_hdr> 10844 #include <$ac_hdr>
10837 EOF 10845 EOF
10838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10839 { (eval echo configure:10840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10847 { (eval echo configure:10848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10841 if test -z "$ac_err"; then 10849 if test -z "$ac_err"; then
10842 rm -rf conftest* 10850 rm -rf conftest*
10843 eval "ac_cv_header_$ac_safe=yes" 10851 eval "ac_cv_header_$ac_safe=yes"
10844 else 10852 else
10867 ;; 10875 ;;
10868 *) for ac_hdr in pty.h 10876 *) for ac_hdr in pty.h
10869 do 10877 do
10870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10872 echo "configure:10873: checking for $ac_hdr" >&5 10880 echo "configure:10881: checking for $ac_hdr" >&5
10873 10881
10874 cat > conftest.$ac_ext <<EOF 10882 cat > conftest.$ac_ext <<EOF
10875 #line 10876 "configure" 10883 #line 10884 "configure"
10876 #include "confdefs.h" 10884 #include "confdefs.h"
10877 #include <$ac_hdr> 10885 #include <$ac_hdr>
10878 EOF 10886 EOF
10879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10880 { (eval echo configure:10881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10888 { (eval echo configure:10889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10882 if test -z "$ac_err"; then 10890 if test -z "$ac_err"; then
10883 rm -rf conftest* 10891 rm -rf conftest*
10884 eval "ac_cv_header_$ac_safe=yes" 10892 eval "ac_cv_header_$ac_safe=yes"
10885 else 10893 else
10908 10916
10909 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h 10917 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
10910 do 10918 do
10911 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10912 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10913 echo "configure:10914: checking for $ac_hdr" >&5 10921 echo "configure:10922: checking for $ac_hdr" >&5
10914 10922
10915 cat > conftest.$ac_ext <<EOF 10923 cat > conftest.$ac_ext <<EOF
10916 #line 10917 "configure" 10924 #line 10925 "configure"
10917 #include "confdefs.h" 10925 #include "confdefs.h"
10918 #include <$ac_hdr> 10926 #include <$ac_hdr>
10919 EOF 10927 EOF
10920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10921 { (eval echo configure:10922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10929 { (eval echo configure:10930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10923 if test -z "$ac_err"; then 10931 if test -z "$ac_err"; then
10924 rm -rf conftest* 10932 rm -rf conftest*
10925 eval "ac_cv_header_$ac_safe=yes" 10933 eval "ac_cv_header_$ac_safe=yes"
10926 else 10934 else
10952 10960
10953 for ac_hdr in stropts.h 10961 for ac_hdr in stropts.h
10954 do 10962 do
10955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10963 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10957 echo "configure:10958: checking for $ac_hdr" >&5 10965 echo "configure:10966: checking for $ac_hdr" >&5
10958 10966
10959 cat > conftest.$ac_ext <<EOF 10967 cat > conftest.$ac_ext <<EOF
10960 #line 10961 "configure" 10968 #line 10969 "configure"
10961 #include "confdefs.h" 10969 #include "confdefs.h"
10962 #include <$ac_hdr> 10970 #include <$ac_hdr>
10963 EOF 10971 EOF
10964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10965 { (eval echo configure:10966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10973 { (eval echo configure:10974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10967 if test -z "$ac_err"; then 10975 if test -z "$ac_err"; then
10968 rm -rf conftest* 10976 rm -rf conftest*
10969 eval "ac_cv_header_$ac_safe=yes" 10977 eval "ac_cv_header_$ac_safe=yes"
10970 else 10978 else
10993 11001
10994 if test "$ac_cv_header_stropts_h" = "yes"; then 11002 if test "$ac_cv_header_stropts_h" = "yes"; then
10995 for ac_func in isastream 11003 for ac_func in isastream
10996 do 11004 do
10997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10998 echo "configure:10999: checking for $ac_func" >&5 11006 echo "configure:11007: checking for $ac_func" >&5
10999 11007
11000 cat > conftest.$ac_ext <<EOF 11008 cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure" 11009 #line 11010 "configure"
11002 #include "confdefs.h" 11010 #include "confdefs.h"
11003 /* System header to define __stub macros and hopefully few prototypes, 11011 /* System header to define __stub macros and hopefully few prototypes,
11004 which can conflict with char $ac_func(); below. */ 11012 which can conflict with char $ac_func(); below. */
11005 #include <assert.h> 11013 #include <assert.h>
11006 /* Override any gcc2 internal prototype to avoid an error. */ 11014 /* Override any gcc2 internal prototype to avoid an error. */
11019 $ac_func(); 11027 $ac_func();
11020 #endif 11028 #endif
11021 11029
11022 ; return 0; } 11030 ; return 0; }
11023 EOF 11031 EOF
11024 if { (eval echo configure:11025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11032 if { (eval echo configure:11033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11025 rm -rf conftest* 11033 rm -rf conftest*
11026 eval "ac_cv_func_$ac_func=yes" 11034 eval "ac_cv_func_$ac_func=yes"
11027 else 11035 else
11028 echo "configure: failed program was:" >&5 11036 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5 11037 cat conftest.$ac_ext >&5
11050 11058
11051 for ac_hdr in strtio.h 11059 for ac_hdr in strtio.h
11052 do 11060 do
11053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11055 echo "configure:11056: checking for $ac_hdr" >&5 11063 echo "configure:11064: checking for $ac_hdr" >&5
11056 11064
11057 cat > conftest.$ac_ext <<EOF 11065 cat > conftest.$ac_ext <<EOF
11058 #line 11059 "configure" 11066 #line 11067 "configure"
11059 #include "confdefs.h" 11067 #include "confdefs.h"
11060 #include <$ac_hdr> 11068 #include <$ac_hdr>
11061 EOF 11069 EOF
11062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11063 { (eval echo configure:11064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11071 { (eval echo configure:11072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11065 if test -z "$ac_err"; then 11073 if test -z "$ac_err"; then
11066 rm -rf conftest* 11074 rm -rf conftest*
11067 eval "ac_cv_header_$ac_safe=yes" 11075 eval "ac_cv_header_$ac_safe=yes"
11068 else 11076 else
11091 fi 11099 fi
11092 11100
11093 for ac_func in getloadavg 11101 for ac_func in getloadavg
11094 do 11102 do
11095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11096 echo "configure:11097: checking for $ac_func" >&5 11104 echo "configure:11105: checking for $ac_func" >&5
11097 11105
11098 cat > conftest.$ac_ext <<EOF 11106 cat > conftest.$ac_ext <<EOF
11099 #line 11100 "configure" 11107 #line 11108 "configure"
11100 #include "confdefs.h" 11108 #include "confdefs.h"
11101 /* System header to define __stub macros and hopefully few prototypes, 11109 /* System header to define __stub macros and hopefully few prototypes,
11102 which can conflict with char $ac_func(); below. */ 11110 which can conflict with char $ac_func(); below. */
11103 #include <assert.h> 11111 #include <assert.h>
11104 /* Override any gcc2 internal prototype to avoid an error. */ 11112 /* Override any gcc2 internal prototype to avoid an error. */
11117 $ac_func(); 11125 $ac_func();
11118 #endif 11126 #endif
11119 11127
11120 ; return 0; } 11128 ; return 0; }
11121 EOF 11129 EOF
11122 if { (eval echo configure:11123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11130 if { (eval echo configure:11131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11123 rm -rf conftest* 11131 rm -rf conftest*
11124 eval "ac_cv_func_$ac_func=yes" 11132 eval "ac_cv_func_$ac_func=yes"
11125 else 11133 else
11126 echo "configure: failed program was:" >&5 11134 echo "configure: failed program was:" >&5
11127 cat conftest.$ac_ext >&5 11135 cat conftest.$ac_ext >&5
11150 if test "$ac_cv_func_getloadavg" = "yes"; then 11158 if test "$ac_cv_func_getloadavg" = "yes"; then
11151 for ac_hdr in sys/loadavg.h 11159 for ac_hdr in sys/loadavg.h
11152 do 11160 do
11153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11155 echo "configure:11156: checking for $ac_hdr" >&5 11163 echo "configure:11164: checking for $ac_hdr" >&5
11156 11164
11157 cat > conftest.$ac_ext <<EOF 11165 cat > conftest.$ac_ext <<EOF
11158 #line 11159 "configure" 11166 #line 11167 "configure"
11159 #include "confdefs.h" 11167 #include "confdefs.h"
11160 #include <$ac_hdr> 11168 #include <$ac_hdr>
11161 EOF 11169 EOF
11162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11163 { (eval echo configure:11164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11171 { (eval echo configure:11172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11165 if test -z "$ac_err"; then 11173 if test -z "$ac_err"; then
11166 rm -rf conftest* 11174 rm -rf conftest*
11167 eval "ac_cv_header_$ac_safe=yes" 11175 eval "ac_cv_header_$ac_safe=yes"
11168 else 11176 else
11194 echo " xemacs will be linked with \"getloadavg.o\"" 11202 echo " xemacs will be linked with \"getloadavg.o\""
11195 fi 11203 fi
11196 11204
11197 11205
11198 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 11206 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11199 echo "configure:11200: checking for kstat_open in -lkstat" >&5 11207 echo "configure:11208: checking for kstat_open in -lkstat" >&5
11200 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 11208 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11201 11209
11202 xe_check_libs=" -lkstat " 11210 xe_check_libs=" -lkstat "
11203 cat > conftest.$ac_ext <<EOF 11211 cat > conftest.$ac_ext <<EOF
11204 #line 11205 "configure" 11212 #line 11213 "configure"
11205 #include "confdefs.h" 11213 #include "confdefs.h"
11206 /* Override any gcc2 internal prototype to avoid an error. */ 11214 /* Override any gcc2 internal prototype to avoid an error. */
11207 /* We use char because int might match the return type of a gcc2 11215 /* We use char because int might match the return type of a gcc2
11208 builtin and then its argument prototype would still apply. */ 11216 builtin and then its argument prototype would still apply. */
11209 char kstat_open(); 11217 char kstat_open();
11210 11218
11211 int main() { 11219 int main() {
11212 kstat_open() 11220 kstat_open()
11213 ; return 0; } 11221 ; return 0; }
11214 EOF 11222 EOF
11215 if { (eval echo configure:11216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11223 if { (eval echo configure:11224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11216 rm -rf conftest* 11224 rm -rf conftest*
11217 eval "ac_cv_lib_$ac_lib_var=yes" 11225 eval "ac_cv_lib_$ac_lib_var=yes"
11218 else 11226 else
11219 echo "configure: failed program was:" >&5 11227 echo "configure: failed program was:" >&5
11220 cat conftest.$ac_ext >&5 11228 cat conftest.$ac_ext >&5
11245 11253
11246 for ac_hdr in kstat.h 11254 for ac_hdr in kstat.h
11247 do 11255 do
11248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11250 echo "configure:11251: checking for $ac_hdr" >&5 11258 echo "configure:11259: checking for $ac_hdr" >&5
11251 11259
11252 cat > conftest.$ac_ext <<EOF 11260 cat > conftest.$ac_ext <<EOF
11253 #line 11254 "configure" 11261 #line 11262 "configure"
11254 #include "confdefs.h" 11262 #include "confdefs.h"
11255 #include <$ac_hdr> 11263 #include <$ac_hdr>
11256 EOF 11264 EOF
11257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11258 { (eval echo configure:11259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11266 { (eval echo configure:11267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11260 if test -z "$ac_err"; then 11268 if test -z "$ac_err"; then
11261 rm -rf conftest* 11269 rm -rf conftest*
11262 eval "ac_cv_header_$ac_safe=yes" 11270 eval "ac_cv_header_$ac_safe=yes"
11263 else 11271 else
11285 done 11293 done
11286 11294
11287 11295
11288 11296
11289 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 11297 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11290 echo "configure:11291: checking for kvm_read in -lkvm" >&5 11298 echo "configure:11299: checking for kvm_read in -lkvm" >&5
11291 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 11299 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11292 11300
11293 xe_check_libs=" -lkvm " 11301 xe_check_libs=" -lkvm "
11294 cat > conftest.$ac_ext <<EOF 11302 cat > conftest.$ac_ext <<EOF
11295 #line 11296 "configure" 11303 #line 11304 "configure"
11296 #include "confdefs.h" 11304 #include "confdefs.h"
11297 /* Override any gcc2 internal prototype to avoid an error. */ 11305 /* Override any gcc2 internal prototype to avoid an error. */
11298 /* We use char because int might match the return type of a gcc2 11306 /* We use char because int might match the return type of a gcc2
11299 builtin and then its argument prototype would still apply. */ 11307 builtin and then its argument prototype would still apply. */
11300 char kvm_read(); 11308 char kvm_read();
11301 11309
11302 int main() { 11310 int main() {
11303 kvm_read() 11311 kvm_read()
11304 ; return 0; } 11312 ; return 0; }
11305 EOF 11313 EOF
11306 if { (eval echo configure:11307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11314 if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11307 rm -rf conftest* 11315 rm -rf conftest*
11308 eval "ac_cv_lib_$ac_lib_var=yes" 11316 eval "ac_cv_lib_$ac_lib_var=yes"
11309 else 11317 else
11310 echo "configure: failed program was:" >&5 11318 echo "configure: failed program was:" >&5
11311 cat conftest.$ac_ext >&5 11319 cat conftest.$ac_ext >&5
11335 11343
11336 11344
11337 fi 11345 fi
11338 11346
11339 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 11347 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11340 echo "configure:11341: checking whether netdb declares h_errno" >&5 11348 echo "configure:11349: checking whether netdb declares h_errno" >&5
11341 cat > conftest.$ac_ext <<EOF 11349 cat > conftest.$ac_ext <<EOF
11342 #line 11343 "configure" 11350 #line 11351 "configure"
11343 #include "confdefs.h" 11351 #include "confdefs.h"
11344 #include <netdb.h> 11352 #include <netdb.h>
11345 int main() { 11353 int main() {
11346 return h_errno; 11354 return h_errno;
11347 ; return 0; } 11355 ; return 0; }
11348 EOF 11356 EOF
11349 if { (eval echo configure:11350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11357 if { (eval echo configure:11358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11350 rm -rf conftest* 11358 rm -rf conftest*
11351 echo "$ac_t""yes" 1>&6 11359 echo "$ac_t""yes" 1>&6
11352 { test "$extra_verbose" = "yes" && cat << \EOF 11360 { test "$extra_verbose" = "yes" && cat << \EOF
11353 Defining HAVE_H_ERRNO 11361 Defining HAVE_H_ERRNO
11354 EOF 11362 EOF
11364 echo "$ac_t""no" 1>&6 11372 echo "$ac_t""no" 1>&6
11365 fi 11373 fi
11366 rm -f conftest* 11374 rm -f conftest*
11367 11375
11368 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 11376 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11369 echo "configure:11370: checking for sigsetjmp" >&5 11377 echo "configure:11378: checking for sigsetjmp" >&5
11370 cat > conftest.$ac_ext <<EOF 11378 cat > conftest.$ac_ext <<EOF
11371 #line 11372 "configure" 11379 #line 11380 "configure"
11372 #include "confdefs.h" 11380 #include "confdefs.h"
11373 #include <setjmp.h> 11381 #include <setjmp.h>
11374 int main() { 11382 int main() {
11375 sigjmp_buf bar; sigsetjmp (bar, 0); 11383 sigjmp_buf bar; sigsetjmp (bar, 0);
11376 ; return 0; } 11384 ; return 0; }
11377 EOF 11385 EOF
11378 if { (eval echo configure:11379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11386 if { (eval echo configure:11387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11379 rm -rf conftest* 11387 rm -rf conftest*
11380 echo "$ac_t""yes" 1>&6 11388 echo "$ac_t""yes" 1>&6
11381 { test "$extra_verbose" = "yes" && cat << \EOF 11389 { test "$extra_verbose" = "yes" && cat << \EOF
11382 Defining HAVE_SIGSETJMP 11390 Defining HAVE_SIGSETJMP
11383 EOF 11391 EOF
11393 echo "$ac_t""no" 1>&6 11401 echo "$ac_t""no" 1>&6
11394 fi 11402 fi
11395 rm -f conftest* 11403 rm -f conftest*
11396 11404
11397 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 11405 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11398 echo "configure:11399: checking whether localtime caches TZ" >&5 11406 echo "configure:11407: checking whether localtime caches TZ" >&5
11399 11407
11400 if test "$ac_cv_func_tzset" = "yes"; then 11408 if test "$ac_cv_func_tzset" = "yes"; then
11401 cat > conftest.$ac_ext <<EOF 11409 cat > conftest.$ac_ext <<EOF
11402 #line 11403 "configure" 11410 #line 11411 "configure"
11403 #include "confdefs.h" 11411 #include "confdefs.h"
11404 #include <time.h> 11412 #include <time.h>
11405 #if STDC_HEADERS 11413 #if STDC_HEADERS
11406 # include <stdlib.h> 11414 # include <stdlib.h>
11407 #endif 11415 #endif
11432 if (localtime (&now)->tm_hour != hour_unset) 11440 if (localtime (&now)->tm_hour != hour_unset)
11433 exit (1); 11441 exit (1);
11434 exit (0); 11442 exit (0);
11435 } 11443 }
11436 EOF 11444 EOF
11437 if { (eval echo configure:11438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11445 if { (eval echo configure:11446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11438 then 11446 then
11439 emacs_cv_localtime_cache=no 11447 emacs_cv_localtime_cache=no
11440 else 11448 else
11441 conftest_rc="$?" 11449 conftest_rc="$?"
11442 echo "configure: failed program was:" >&5 11450 echo "configure: failed program was:" >&5
11462 11470
11463 fi 11471 fi
11464 11472
11465 if test "$HAVE_TIMEVAL" = "yes"; then 11473 if test "$HAVE_TIMEVAL" = "yes"; then
11466 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 11474 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11467 echo "configure:11468: checking whether gettimeofday accepts one or two arguments" >&5 11475 echo "configure:11476: checking whether gettimeofday accepts one or two arguments" >&5
11468 cat > conftest.$ac_ext <<EOF 11476 cat > conftest.$ac_ext <<EOF
11469 #line 11470 "configure" 11477 #line 11478 "configure"
11470 #include "confdefs.h" 11478 #include "confdefs.h"
11471 11479
11472 #ifdef TIME_WITH_SYS_TIME 11480 #ifdef TIME_WITH_SYS_TIME
11473 #include <sys/time.h> 11481 #include <sys/time.h>
11474 #include <time.h> 11482 #include <time.h>
11485 struct timeval time; 11493 struct timeval time;
11486 gettimeofday (&time, 0); 11494 gettimeofday (&time, 0);
11487 11495
11488 ; return 0; } 11496 ; return 0; }
11489 EOF 11497 EOF
11490 if { (eval echo configure:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11498 if { (eval echo configure:11499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11491 rm -rf conftest* 11499 rm -rf conftest*
11492 echo "$ac_t""two" 1>&6 11500 echo "$ac_t""two" 1>&6
11493 else 11501 else
11494 echo "configure: failed program was:" >&5 11502 echo "configure: failed program was:" >&5
11495 cat conftest.$ac_ext >&5 11503 cat conftest.$ac_ext >&5
11507 rm -f conftest* 11515 rm -f conftest*
11508 fi 11516 fi
11509 11517
11510 11518
11511 echo $ac_n "checking for inline""... $ac_c" 1>&6 11519 echo $ac_n "checking for inline""... $ac_c" 1>&6
11512 echo "configure:11513: checking for inline" >&5 11520 echo "configure:11521: checking for inline" >&5
11513 11521
11514 ac_cv_c_inline=no 11522 ac_cv_c_inline=no
11515 for ac_kw in inline __inline__ __inline; do 11523 for ac_kw in inline __inline__ __inline; do
11516 cat > conftest.$ac_ext <<EOF 11524 cat > conftest.$ac_ext <<EOF
11517 #line 11518 "configure" 11525 #line 11526 "configure"
11518 #include "confdefs.h" 11526 #include "confdefs.h"
11519 11527
11520 int main() { 11528 int main() {
11521 } $ac_kw foo() { 11529 } $ac_kw foo() {
11522 ; return 0; } 11530 ; return 0; }
11523 EOF 11531 EOF
11524 if { (eval echo configure:11525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11532 if { (eval echo configure:11533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11525 rm -rf conftest* 11533 rm -rf conftest*
11526 ac_cv_c_inline=$ac_kw; break 11534 ac_cv_c_inline=$ac_kw; break
11527 else 11535 else
11528 echo "configure: failed program was:" >&5 11536 echo "configure: failed program was:" >&5
11529 cat conftest.$ac_ext >&5 11537 cat conftest.$ac_ext >&5
11560 11568
11561 if test "$__DECC" != "yes"; then 11569 if test "$__DECC" != "yes"; then
11562 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 11570 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11563 # for constant arguments. Useless! 11571 # for constant arguments. Useless!
11564 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 11572 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11565 echo "configure:11566: checking for working alloca.h" >&5 11573 echo "configure:11574: checking for working alloca.h" >&5
11566 11574
11567 cat > conftest.$ac_ext <<EOF 11575 cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure" 11576 #line 11577 "configure"
11569 #include "confdefs.h" 11577 #include "confdefs.h"
11570 #include <alloca.h> 11578 #include <alloca.h>
11571 int main() { 11579 int main() {
11572 char *p = alloca(2 * sizeof(int)); 11580 char *p = alloca(2 * sizeof(int));
11573 ; return 0; } 11581 ; return 0; }
11574 EOF 11582 EOF
11575 if { (eval echo configure:11576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11583 if { (eval echo configure:11584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11576 rm -rf conftest* 11584 rm -rf conftest*
11577 ac_cv_header_alloca_h=yes 11585 ac_cv_header_alloca_h=yes
11578 else 11586 else
11579 echo "configure: failed program was:" >&5 11587 echo "configure: failed program was:" >&5
11580 cat conftest.$ac_ext >&5 11588 cat conftest.$ac_ext >&5
11594 } 11602 }
11595 11603
11596 fi 11604 fi
11597 11605
11598 echo $ac_n "checking for alloca""... $ac_c" 1>&6 11606 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11599 echo "configure:11600: checking for alloca" >&5 11607 echo "configure:11608: checking for alloca" >&5
11600 11608
11601 cat > conftest.$ac_ext <<EOF 11609 cat > conftest.$ac_ext <<EOF
11602 #line 11603 "configure" 11610 #line 11611 "configure"
11603 #include "confdefs.h" 11611 #include "confdefs.h"
11604 11612
11605 #ifdef __GNUC__ 11613 #ifdef __GNUC__
11606 # define alloca __builtin_alloca 11614 # define alloca __builtin_alloca
11607 #else 11615 #else
11625 11633
11626 int main() { 11634 int main() {
11627 char *p = (char *) alloca(1); 11635 char *p = (char *) alloca(1);
11628 ; return 0; } 11636 ; return 0; }
11629 EOF 11637 EOF
11630 if { (eval echo configure:11631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11631 rm -rf conftest* 11639 rm -rf conftest*
11632 ac_cv_func_alloca_works=yes 11640 ac_cv_func_alloca_works=yes
11633 else 11641 else
11634 echo "configure: failed program was:" >&5 11642 echo "configure: failed program was:" >&5
11635 cat conftest.$ac_ext >&5 11643 cat conftest.$ac_ext >&5
11664 EOF 11672 EOF
11665 } 11673 }
11666 11674
11667 11675
11668 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 11676 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11669 echo "configure:11670: checking whether alloca needs Cray hooks" >&5 11677 echo "configure:11678: checking whether alloca needs Cray hooks" >&5
11670 11678
11671 cat > conftest.$ac_ext <<EOF 11679 cat > conftest.$ac_ext <<EOF
11672 #line 11673 "configure" 11680 #line 11681 "configure"
11673 #include "confdefs.h" 11681 #include "confdefs.h"
11674 #if defined(CRAY) && ! defined(CRAY2) 11682 #if defined(CRAY) && ! defined(CRAY2)
11675 webecray 11683 webecray
11676 #else 11684 #else
11677 wenotbecray 11685 wenotbecray
11691 11699
11692 echo "$ac_t""$ac_cv_os_cray" 1>&6 11700 echo "$ac_t""$ac_cv_os_cray" 1>&6
11693 if test $ac_cv_os_cray = yes; then 11701 if test $ac_cv_os_cray = yes; then
11694 for ac_func in _getb67 GETB67 getb67; do 11702 for ac_func in _getb67 GETB67 getb67; do
11695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11696 echo "configure:11697: checking for $ac_func" >&5 11704 echo "configure:11705: checking for $ac_func" >&5
11697 11705
11698 cat > conftest.$ac_ext <<EOF 11706 cat > conftest.$ac_ext <<EOF
11699 #line 11700 "configure" 11707 #line 11708 "configure"
11700 #include "confdefs.h" 11708 #include "confdefs.h"
11701 /* System header to define __stub macros and hopefully few prototypes, 11709 /* System header to define __stub macros and hopefully few prototypes,
11702 which can conflict with char $ac_func(); below. */ 11710 which can conflict with char $ac_func(); below. */
11703 #include <assert.h> 11711 #include <assert.h>
11704 /* Override any gcc2 internal prototype to avoid an error. */ 11712 /* Override any gcc2 internal prototype to avoid an error. */
11717 $ac_func(); 11725 $ac_func();
11718 #endif 11726 #endif
11719 11727
11720 ; return 0; } 11728 ; return 0; }
11721 EOF 11729 EOF
11722 if { (eval echo configure:11723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11730 if { (eval echo configure:11731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11723 rm -rf conftest* 11731 rm -rf conftest*
11724 eval "ac_cv_func_$ac_func=yes" 11732 eval "ac_cv_func_$ac_func=yes"
11725 else 11733 else
11726 echo "configure: failed program was:" >&5 11734 echo "configure: failed program was:" >&5
11727 cat conftest.$ac_ext >&5 11735 cat conftest.$ac_ext >&5
11747 11755
11748 done 11756 done
11749 fi 11757 fi
11750 11758
11751 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 11759 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11752 echo "configure:11753: checking stack direction for C alloca" >&5 11760 echo "configure:11761: checking stack direction for C alloca" >&5
11753 11761
11754 cat > conftest.$ac_ext <<EOF 11762 cat > conftest.$ac_ext <<EOF
11755 #line 11756 "configure" 11763 #line 11764 "configure"
11756 #include "confdefs.h" 11764 #include "confdefs.h"
11757 find_stack_direction () 11765 find_stack_direction ()
11758 { 11766 {
11759 static char *addr = 0; 11767 static char *addr = 0;
11760 auto char dummy; 11768 auto char dummy;
11769 main () 11777 main ()
11770 { 11778 {
11771 exit (find_stack_direction() < 0); 11779 exit (find_stack_direction() < 0);
11772 } 11780 }
11773 EOF 11781 EOF
11774 if { (eval echo configure:11775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11782 if { (eval echo configure:11783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11775 then 11783 then
11776 ac_cv_c_stack_direction=1 11784 ac_cv_c_stack_direction=1
11777 else 11785 else
11778 conftest_rc="$?" 11786 conftest_rc="$?"
11779 echo "configure: failed program was:" >&5 11787 echo "configure: failed program was:" >&5
11798 echo " xemacs will be linked with \"$ALLOCA\"" 11806 echo " xemacs will be linked with \"$ALLOCA\""
11799 fi 11807 fi
11800 fi 11808 fi
11801 11809
11802 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6 11810 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6
11803 echo "configure:11804: checking for working alloca in function calls" >&5 11811 echo "configure:11812: checking for working alloca in function calls" >&5
11804 cat > conftest.$ac_ext <<EOF 11812 cat > conftest.$ac_ext <<EOF
11805 #line 11806 "configure" 11813 #line 11814 "configure"
11806 #include "confdefs.h" 11814 #include "confdefs.h"
11807 11815
11808 #if defined (__CYGWIN__) 11816 #if defined (__CYGWIN__)
11809 #include <alloca.h> 11817 #include <alloca.h>
11810 #elif defined (__GNUC__) 11818 #elif defined (__GNUC__)
11853 return 1; 11861 return 1;
11854 return 0; 11862 return 0;
11855 } 11863 }
11856 11864
11857 EOF 11865 EOF
11858 if { (eval echo configure:11859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11866 if { (eval echo configure:11867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11859 then 11867 then
11860 working_alloca_in_function_calls=yes 11868 working_alloca_in_function_calls=yes
11861 else 11869 else
11862 conftest_rc="$?" 11870 conftest_rc="$?"
11863 echo "configure: failed program was:" >&5 11871 echo "configure: failed program was:" >&5
11876 EOF 11884 EOF
11877 } 11885 }
11878 11886
11879 11887
11880 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 11888 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11881 echo "configure:11882: checking for working strcoll" >&5 11889 echo "configure:11890: checking for working strcoll" >&5
11882 11890
11883 cat > conftest.$ac_ext <<EOF 11891 cat > conftest.$ac_ext <<EOF
11884 #line 11885 "configure" 11892 #line 11893 "configure"
11885 #include "confdefs.h" 11893 #include "confdefs.h"
11886 #include <string.h> 11894 #include <string.h>
11887 main () 11895 main ()
11888 { 11896 {
11889 exit (strcoll ("abc", "def") >= 0 || 11897 exit (strcoll ("abc", "def") >= 0 ||
11890 strcoll ("ABC", "DEF") >= 0 || 11898 strcoll ("ABC", "DEF") >= 0 ||
11891 strcoll ("123", "456") >= 0); 11899 strcoll ("123", "456") >= 0);
11892 } 11900 }
11893 EOF 11901 EOF
11894 if { (eval echo configure:11895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11902 if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11895 then 11903 then
11896 ac_cv_func_strcoll_works=yes 11904 ac_cv_func_strcoll_works=yes
11897 else 11905 else
11898 conftest_rc="$?" 11906 conftest_rc="$?"
11899 echo "configure: failed program was:" >&5 11907 echo "configure: failed program was:" >&5
11917 11925
11918 11926
11919 for ac_func in getpgrp 11927 for ac_func in getpgrp
11920 do 11928 do
11921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11922 echo "configure:11923: checking for $ac_func" >&5 11930 echo "configure:11931: checking for $ac_func" >&5
11923 11931
11924 cat > conftest.$ac_ext <<EOF 11932 cat > conftest.$ac_ext <<EOF
11925 #line 11926 "configure" 11933 #line 11934 "configure"
11926 #include "confdefs.h" 11934 #include "confdefs.h"
11927 /* System header to define __stub macros and hopefully few prototypes, 11935 /* System header to define __stub macros and hopefully few prototypes,
11928 which can conflict with char $ac_func(); below. */ 11936 which can conflict with char $ac_func(); below. */
11929 #include <assert.h> 11937 #include <assert.h>
11930 /* Override any gcc2 internal prototype to avoid an error. */ 11938 /* Override any gcc2 internal prototype to avoid an error. */
11943 $ac_func(); 11951 $ac_func();
11944 #endif 11952 #endif
11945 11953
11946 ; return 0; } 11954 ; return 0; }
11947 EOF 11955 EOF
11948 if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11956 if { (eval echo configure:11957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11949 rm -rf conftest* 11957 rm -rf conftest*
11950 eval "ac_cv_func_$ac_func=yes" 11958 eval "ac_cv_func_$ac_func=yes"
11951 else 11959 else
11952 echo "configure: failed program was:" >&5 11960 echo "configure: failed program was:" >&5
11953 cat conftest.$ac_ext >&5 11961 cat conftest.$ac_ext >&5
11971 echo "$ac_t""no" 1>&6 11979 echo "$ac_t""no" 1>&6
11972 fi 11980 fi
11973 done 11981 done
11974 11982
11975 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 11983 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11976 echo "configure:11977: checking whether getpgrp takes no argument" >&5 11984 echo "configure:11985: checking whether getpgrp takes no argument" >&5
11977 11985
11978 cat > conftest.$ac_ext <<EOF 11986 cat > conftest.$ac_ext <<EOF
11979 #line 11980 "configure" 11987 #line 11988 "configure"
11980 #include "confdefs.h" 11988 #include "confdefs.h"
11981 11989
11982 /* 11990 /*
11983 * If this system has a BSD-style getpgrp(), 11991 * If this system has a BSD-style getpgrp(),
11984 * which takes a pid argument, exit unsuccessfully. 11992 * which takes a pid argument, exit unsuccessfully.
12029 exit(s>>8); 12037 exit(s>>8);
12030 } 12038 }
12031 } 12039 }
12032 12040
12033 EOF 12041 EOF
12034 if { (eval echo configure:12035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12042 if { (eval echo configure:12043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12035 then 12043 then
12036 ac_cv_func_getpgrp_void=yes 12044 ac_cv_func_getpgrp_void=yes
12037 else 12045 else
12038 conftest_rc="$?" 12046 conftest_rc="$?"
12039 echo "configure: failed program was:" >&5 12047 echo "configure: failed program was:" >&5
12056 12064
12057 fi 12065 fi
12058 12066
12059 12067
12060 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 12068 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12061 echo "configure:12062: checking for working mmap" >&5 12069 echo "configure:12070: checking for working mmap" >&5
12062 case "$opsys" in ultrix* ) have_mmap=no ;; *) 12070 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12063 cat > conftest.$ac_ext <<EOF 12071 cat > conftest.$ac_ext <<EOF
12064 #line 12065 "configure" 12072 #line 12073 "configure"
12065 #include "confdefs.h" 12073 #include "confdefs.h"
12066 #include <stdio.h> 12074 #include <stdio.h>
12067 #include <unistd.h> 12075 #include <unistd.h>
12068 #include <fcntl.h> 12076 #include <fcntl.h>
12069 #include <sys/mman.h> 12077 #include <sys/mman.h>
12092 return 0; 12100 return 0;
12093 perror ("conftest: mmap failed"); 12101 perror ("conftest: mmap failed");
12094 return 1; 12102 return 1;
12095 } 12103 }
12096 EOF 12104 EOF
12097 if { (eval echo configure:12098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12105 if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12098 then 12106 then
12099 have_mmap=yes 12107 have_mmap=yes
12100 else 12108 else
12101 conftest_rc="$?" 12109 conftest_rc="$?"
12102 echo "configure: failed program was:" >&5 12110 echo "configure: failed program was:" >&5
12121 esac 12129 esac
12122 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 12130 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12123 if test "$rel_alloc $have_mmap" = "default yes"; then 12131 if test "$rel_alloc $have_mmap" = "default yes"; then
12124 if test "$doug_lea_malloc" = "yes"; then 12132 if test "$doug_lea_malloc" = "yes"; then
12125 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 12133 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12126 echo "configure:12127: checking for M_MMAP_THRESHOLD" >&5 12134 echo "configure:12135: checking for M_MMAP_THRESHOLD" >&5
12127 cat > conftest.$ac_ext <<EOF 12135 cat > conftest.$ac_ext <<EOF
12128 #line 12129 "configure" 12136 #line 12137 "configure"
12129 #include "confdefs.h" 12137 #include "confdefs.h"
12130 #include <malloc.h> 12138 #include <malloc.h>
12131 int main() { 12139 int main() {
12132 12140
12133 #ifndef M_MMAP_THRESHOLD 12141 #ifndef M_MMAP_THRESHOLD
12135 !@+$%^&*_)(_ - unlikely to compile... 12143 !@+$%^&*_)(_ - unlikely to compile...
12136 #endif 12144 #endif
12137 12145
12138 ; return 0; } 12146 ; return 0; }
12139 EOF 12147 EOF
12140 if { (eval echo configure:12141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12148 if { (eval echo configure:12149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12141 rm -rf conftest* 12149 rm -rf conftest*
12142 rel_alloc=no; echo "$ac_t""yes" 1>&6; 12150 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12143 else 12151 else
12144 echo "configure: failed program was:" >&5 12152 echo "configure: failed program was:" >&5
12145 cat conftest.$ac_ext >&5 12153 cat conftest.$ac_ext >&5
12160 } 12168 }
12161 12169
12162 12170
12163 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 12171 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12164 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 12172 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12165 echo "configure:12166: checking for termios.h" >&5 12173 echo "configure:12174: checking for termios.h" >&5
12166 12174
12167 cat > conftest.$ac_ext <<EOF 12175 cat > conftest.$ac_ext <<EOF
12168 #line 12169 "configure" 12176 #line 12177 "configure"
12169 #include "confdefs.h" 12177 #include "confdefs.h"
12170 #include <termios.h> 12178 #include <termios.h>
12171 EOF 12179 EOF
12172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12173 { (eval echo configure:12174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12181 { (eval echo configure:12182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12175 if test -z "$ac_err"; then 12183 if test -z "$ac_err"; then
12176 rm -rf conftest* 12184 rm -rf conftest*
12177 eval "ac_cv_header_$ac_safe=yes" 12185 eval "ac_cv_header_$ac_safe=yes"
12178 else 12186 else
12211 12219
12212 else 12220 else
12213 echo "$ac_t""no" 1>&6 12221 echo "$ac_t""no" 1>&6
12214 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 12222 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12215 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 12223 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12216 echo "configure:12217: checking for termio.h" >&5 12224 echo "configure:12225: checking for termio.h" >&5
12217 12225
12218 cat > conftest.$ac_ext <<EOF 12226 cat > conftest.$ac_ext <<EOF
12219 #line 12220 "configure" 12227 #line 12228 "configure"
12220 #include "confdefs.h" 12228 #include "confdefs.h"
12221 #include <termio.h> 12229 #include <termio.h>
12222 EOF 12230 EOF
12223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12224 { (eval echo configure:12225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12232 { (eval echo configure:12233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12226 if test -z "$ac_err"; then 12234 if test -z "$ac_err"; then
12227 rm -rf conftest* 12235 rm -rf conftest*
12228 eval "ac_cv_header_$ac_safe=yes" 12236 eval "ac_cv_header_$ac_safe=yes"
12229 else 12237 else
12251 fi 12259 fi
12252 12260
12253 12261
12254 12262
12255 echo $ac_n "checking for socket""... $ac_c" 1>&6 12263 echo $ac_n "checking for socket""... $ac_c" 1>&6
12256 echo "configure:12257: checking for socket" >&5 12264 echo "configure:12265: checking for socket" >&5
12257 12265
12258 cat > conftest.$ac_ext <<EOF 12266 cat > conftest.$ac_ext <<EOF
12259 #line 12260 "configure" 12267 #line 12268 "configure"
12260 #include "confdefs.h" 12268 #include "confdefs.h"
12261 /* System header to define __stub macros and hopefully few prototypes, 12269 /* System header to define __stub macros and hopefully few prototypes,
12262 which can conflict with char socket(); below. */ 12270 which can conflict with char socket(); below. */
12263 #include <assert.h> 12271 #include <assert.h>
12264 /* Override any gcc2 internal prototype to avoid an error. */ 12272 /* Override any gcc2 internal prototype to avoid an error. */
12277 socket(); 12285 socket();
12278 #endif 12286 #endif
12279 12287
12280 ; return 0; } 12288 ; return 0; }
12281 EOF 12289 EOF
12282 if { (eval echo configure:12283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12290 if { (eval echo configure:12291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12283 rm -rf conftest* 12291 rm -rf conftest*
12284 eval "ac_cv_func_socket=yes" 12292 eval "ac_cv_func_socket=yes"
12285 else 12293 else
12286 echo "configure: failed program was:" >&5 12294 echo "configure: failed program was:" >&5
12287 cat conftest.$ac_ext >&5 12295 cat conftest.$ac_ext >&5
12292 12300
12293 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 12301 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12294 echo "$ac_t""yes" 1>&6 12302 echo "$ac_t""yes" 1>&6
12295 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 12303 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12296 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 12304 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12297 echo "configure:12298: checking for netinet/in.h" >&5 12305 echo "configure:12306: checking for netinet/in.h" >&5
12298 12306
12299 cat > conftest.$ac_ext <<EOF 12307 cat > conftest.$ac_ext <<EOF
12300 #line 12301 "configure" 12308 #line 12309 "configure"
12301 #include "confdefs.h" 12309 #include "confdefs.h"
12302 #include <netinet/in.h> 12310 #include <netinet/in.h>
12303 EOF 12311 EOF
12304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12305 { (eval echo configure:12306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12313 { (eval echo configure:12314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12307 if test -z "$ac_err"; then 12315 if test -z "$ac_err"; then
12308 rm -rf conftest* 12316 rm -rf conftest*
12309 eval "ac_cv_header_$ac_safe=yes" 12317 eval "ac_cv_header_$ac_safe=yes"
12310 else 12318 else
12317 rm -f conftest* 12325 rm -f conftest*
12318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12319 echo "$ac_t""yes" 1>&6 12327 echo "$ac_t""yes" 1>&6
12320 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 12328 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12321 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 12329 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12322 echo "configure:12323: checking for arpa/inet.h" >&5 12330 echo "configure:12331: checking for arpa/inet.h" >&5
12323 12331
12324 cat > conftest.$ac_ext <<EOF 12332 cat > conftest.$ac_ext <<EOF
12325 #line 12326 "configure" 12333 #line 12334 "configure"
12326 #include "confdefs.h" 12334 #include "confdefs.h"
12327 #include <arpa/inet.h> 12335 #include <arpa/inet.h>
12328 EOF 12336 EOF
12329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12330 { (eval echo configure:12331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12338 { (eval echo configure:12339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12332 if test -z "$ac_err"; then 12340 if test -z "$ac_err"; then
12333 rm -rf conftest* 12341 rm -rf conftest*
12334 eval "ac_cv_header_$ac_safe=yes" 12342 eval "ac_cv_header_$ac_safe=yes"
12335 else 12343 else
12350 #define HAVE_SOCKETS 1 12358 #define HAVE_SOCKETS 1
12351 EOF 12359 EOF
12352 } 12360 }
12353 12361
12354 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 12362 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12355 echo "configure:12356: checking "for sun_len member in struct sockaddr_un"" >&5 12363 echo "configure:12364: checking "for sun_len member in struct sockaddr_un"" >&5
12356 cat > conftest.$ac_ext <<EOF 12364 cat > conftest.$ac_ext <<EOF
12357 #line 12358 "configure" 12365 #line 12366 "configure"
12358 #include "confdefs.h" 12366 #include "confdefs.h"
12359 12367
12360 #include <sys/types.h> 12368 #include <sys/types.h>
12361 #include <sys/socket.h> 12369 #include <sys/socket.h>
12362 #include <sys/un.h> 12370 #include <sys/un.h>
12363 12371
12364 int main() { 12372 int main() {
12365 static struct sockaddr_un x; x.sun_len = 1; 12373 static struct sockaddr_un x; x.sun_len = 1;
12366 ; return 0; } 12374 ; return 0; }
12367 EOF 12375 EOF
12368 if { (eval echo configure:12369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12376 if { (eval echo configure:12377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12369 rm -rf conftest* 12377 rm -rf conftest*
12370 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 12378 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12371 Defining HAVE_SOCKADDR_SUN_LEN 12379 Defining HAVE_SOCKADDR_SUN_LEN
12372 EOF 12380 EOF
12373 cat >> confdefs.h <<\EOF 12381 cat >> confdefs.h <<\EOF
12381 rm -rf conftest* 12389 rm -rf conftest*
12382 echo "$ac_t""no" 1>&6 12390 echo "$ac_t""no" 1>&6
12383 fi 12391 fi
12384 rm -f conftest* 12392 rm -f conftest*
12385 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 12393 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12386 echo "configure:12387: checking "for ip_mreq struct in netinet/in.h"" >&5 12394 echo "configure:12395: checking "for ip_mreq struct in netinet/in.h"" >&5
12387 cat > conftest.$ac_ext <<EOF 12395 cat > conftest.$ac_ext <<EOF
12388 #line 12389 "configure" 12396 #line 12397 "configure"
12389 #include "confdefs.h" 12397 #include "confdefs.h"
12390 12398
12391 #include <sys/types.h> 12399 #include <sys/types.h>
12392 #include <netinet/in.h> 12400 #include <netinet/in.h>
12393 12401
12394 int main() { 12402 int main() {
12395 static struct ip_mreq x; 12403 static struct ip_mreq x;
12396 ; return 0; } 12404 ; return 0; }
12397 EOF 12405 EOF
12398 if { (eval echo configure:12399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12406 if { (eval echo configure:12407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12399 rm -rf conftest* 12407 rm -rf conftest*
12400 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 12408 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12401 Defining HAVE_MULTICAST 12409 Defining HAVE_MULTICAST
12402 EOF 12410 EOF
12403 cat >> confdefs.h <<\EOF 12411 cat >> confdefs.h <<\EOF
12424 echo "$ac_t""no" 1>&6 12432 echo "$ac_t""no" 1>&6
12425 fi 12433 fi
12426 12434
12427 12435
12428 echo $ac_n "checking for msgget""... $ac_c" 1>&6 12436 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12429 echo "configure:12430: checking for msgget" >&5 12437 echo "configure:12438: checking for msgget" >&5
12430 12438
12431 cat > conftest.$ac_ext <<EOF 12439 cat > conftest.$ac_ext <<EOF
12432 #line 12433 "configure" 12440 #line 12441 "configure"
12433 #include "confdefs.h" 12441 #include "confdefs.h"
12434 /* System header to define __stub macros and hopefully few prototypes, 12442 /* System header to define __stub macros and hopefully few prototypes,
12435 which can conflict with char msgget(); below. */ 12443 which can conflict with char msgget(); below. */
12436 #include <assert.h> 12444 #include <assert.h>
12437 /* Override any gcc2 internal prototype to avoid an error. */ 12445 /* Override any gcc2 internal prototype to avoid an error. */
12450 msgget(); 12458 msgget();
12451 #endif 12459 #endif
12452 12460
12453 ; return 0; } 12461 ; return 0; }
12454 EOF 12462 EOF
12455 if { (eval echo configure:12456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12463 if { (eval echo configure:12464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12456 rm -rf conftest* 12464 rm -rf conftest*
12457 eval "ac_cv_func_msgget=yes" 12465 eval "ac_cv_func_msgget=yes"
12458 else 12466 else
12459 echo "configure: failed program was:" >&5 12467 echo "configure: failed program was:" >&5
12460 cat conftest.$ac_ext >&5 12468 cat conftest.$ac_ext >&5
12465 12473
12466 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 12474 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12467 echo "$ac_t""yes" 1>&6 12475 echo "$ac_t""yes" 1>&6
12468 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 12476 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12469 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 12477 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12470 echo "configure:12471: checking for sys/ipc.h" >&5 12478 echo "configure:12479: checking for sys/ipc.h" >&5
12471 12479
12472 cat > conftest.$ac_ext <<EOF 12480 cat > conftest.$ac_ext <<EOF
12473 #line 12474 "configure" 12481 #line 12482 "configure"
12474 #include "confdefs.h" 12482 #include "confdefs.h"
12475 #include <sys/ipc.h> 12483 #include <sys/ipc.h>
12476 EOF 12484 EOF
12477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12478 { (eval echo configure:12479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12486 { (eval echo configure:12487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12480 if test -z "$ac_err"; then 12488 if test -z "$ac_err"; then
12481 rm -rf conftest* 12489 rm -rf conftest*
12482 eval "ac_cv_header_$ac_safe=yes" 12490 eval "ac_cv_header_$ac_safe=yes"
12483 else 12491 else
12490 rm -f conftest* 12498 rm -f conftest*
12491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12492 echo "$ac_t""yes" 1>&6 12500 echo "$ac_t""yes" 1>&6
12493 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 12501 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12494 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 12502 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12495 echo "configure:12496: checking for sys/msg.h" >&5 12503 echo "configure:12504: checking for sys/msg.h" >&5
12496 12504
12497 cat > conftest.$ac_ext <<EOF 12505 cat > conftest.$ac_ext <<EOF
12498 #line 12499 "configure" 12506 #line 12507 "configure"
12499 #include "confdefs.h" 12507 #include "confdefs.h"
12500 #include <sys/msg.h> 12508 #include <sys/msg.h>
12501 EOF 12509 EOF
12502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12503 { (eval echo configure:12504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12511 { (eval echo configure:12512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12505 if test -z "$ac_err"; then 12513 if test -z "$ac_err"; then
12506 rm -rf conftest* 12514 rm -rf conftest*
12507 eval "ac_cv_header_$ac_safe=yes" 12515 eval "ac_cv_header_$ac_safe=yes"
12508 else 12516 else
12536 fi 12544 fi
12537 12545
12538 12546
12539 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 12547 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12540 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 12548 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12541 echo "configure:12542: checking for dirent.h" >&5 12549 echo "configure:12550: checking for dirent.h" >&5
12542 12550
12543 cat > conftest.$ac_ext <<EOF 12551 cat > conftest.$ac_ext <<EOF
12544 #line 12545 "configure" 12552 #line 12553 "configure"
12545 #include "confdefs.h" 12553 #include "confdefs.h"
12546 #include <dirent.h> 12554 #include <dirent.h>
12547 EOF 12555 EOF
12548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12549 { (eval echo configure:12550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12557 { (eval echo configure:12558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12551 if test -z "$ac_err"; then 12559 if test -z "$ac_err"; then
12552 rm -rf conftest* 12560 rm -rf conftest*
12553 eval "ac_cv_header_$ac_safe=yes" 12561 eval "ac_cv_header_$ac_safe=yes"
12554 else 12562 else
12571 12579
12572 else 12580 else
12573 echo "$ac_t""no" 1>&6 12581 echo "$ac_t""no" 1>&6
12574 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 12582 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12575 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 12583 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12576 echo "configure:12577: checking for sys/dir.h" >&5 12584 echo "configure:12585: checking for sys/dir.h" >&5
12577 12585
12578 cat > conftest.$ac_ext <<EOF 12586 cat > conftest.$ac_ext <<EOF
12579 #line 12580 "configure" 12587 #line 12588 "configure"
12580 #include "confdefs.h" 12588 #include "confdefs.h"
12581 #include <sys/dir.h> 12589 #include <sys/dir.h>
12582 EOF 12590 EOF
12583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12584 { (eval echo configure:12585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12592 { (eval echo configure:12593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12586 if test -z "$ac_err"; then 12594 if test -z "$ac_err"; then
12587 rm -rf conftest* 12595 rm -rf conftest*
12588 eval "ac_cv_header_$ac_safe=yes" 12596 eval "ac_cv_header_$ac_safe=yes"
12589 else 12597 else
12612 fi 12620 fi
12613 12621
12614 12622
12615 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 12623 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12616 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 12624 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12617 echo "configure:12618: checking for nlist.h" >&5 12625 echo "configure:12626: checking for nlist.h" >&5
12618 12626
12619 cat > conftest.$ac_ext <<EOF 12627 cat > conftest.$ac_ext <<EOF
12620 #line 12621 "configure" 12628 #line 12629 "configure"
12621 #include "confdefs.h" 12629 #include "confdefs.h"
12622 #include <nlist.h> 12630 #include <nlist.h>
12623 EOF 12631 EOF
12624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12625 { (eval echo configure:12626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12633 { (eval echo configure:12634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12627 if test -z "$ac_err"; then 12635 if test -z "$ac_err"; then
12628 rm -rf conftest* 12636 rm -rf conftest*
12629 eval "ac_cv_header_$ac_safe=yes" 12637 eval "ac_cv_header_$ac_safe=yes"
12630 else 12638 else
12650 fi 12658 fi
12651 12659
12652 12660
12653 12661
12654 echo "checking "for sound support"" 1>&6 12662 echo "checking "for sound support"" 1>&6
12655 echo "configure:12656: checking "for sound support"" >&5 12663 echo "configure:12664: checking "for sound support"" >&5
12656 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 12664 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12657 12665
12658 if test "$with_native_sound" != "no"; then 12666 if test "$with_native_sound" != "no"; then
12659 if test -n "$native_sound_lib"; then 12667 if test -n "$native_sound_lib"; then
12660 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 12668 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12661 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 12669 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12662 echo "configure:12663: checking for multimedia/audio_device.h" >&5 12670 echo "configure:12671: checking for multimedia/audio_device.h" >&5
12663 12671
12664 cat > conftest.$ac_ext <<EOF 12672 cat > conftest.$ac_ext <<EOF
12665 #line 12666 "configure" 12673 #line 12674 "configure"
12666 #include "confdefs.h" 12674 #include "confdefs.h"
12667 #include <multimedia/audio_device.h> 12675 #include <multimedia/audio_device.h>
12668 EOF 12676 EOF
12669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12670 { (eval echo configure:12671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12678 { (eval echo configure:12679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12672 if test -z "$ac_err"; then 12680 if test -z "$ac_err"; then
12673 rm -rf conftest* 12681 rm -rf conftest*
12674 eval "ac_cv_header_$ac_safe=yes" 12682 eval "ac_cv_header_$ac_safe=yes"
12675 else 12683 else
12713 case "$canonical" in 12721 case "$canonical" in
12714 *-sgi-* ) 12722 *-sgi-* )
12715 if test -z "$native_sound_lib"; then 12723 if test -z "$native_sound_lib"; then
12716 12724
12717 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 12725 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12718 echo "configure:12719: checking for ALopenport in -laudio" >&5 12726 echo "configure:12727: checking for ALopenport in -laudio" >&5
12719 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 12727 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12720 12728
12721 xe_check_libs=" -laudio " 12729 xe_check_libs=" -laudio "
12722 cat > conftest.$ac_ext <<EOF 12730 cat > conftest.$ac_ext <<EOF
12723 #line 12724 "configure" 12731 #line 12732 "configure"
12724 #include "confdefs.h" 12732 #include "confdefs.h"
12725 /* Override any gcc2 internal prototype to avoid an error. */ 12733 /* Override any gcc2 internal prototype to avoid an error. */
12726 /* We use char because int might match the return type of a gcc2 12734 /* We use char because int might match the return type of a gcc2
12727 builtin and then its argument prototype would still apply. */ 12735 builtin and then its argument prototype would still apply. */
12728 char ALopenport(); 12736 char ALopenport();
12729 12737
12730 int main() { 12738 int main() {
12731 ALopenport() 12739 ALopenport()
12732 ; return 0; } 12740 ; return 0; }
12733 EOF 12741 EOF
12734 if { (eval echo configure:12735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12742 if { (eval echo configure:12743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12735 rm -rf conftest* 12743 rm -rf conftest*
12736 eval "ac_cv_lib_$ac_lib_var=yes" 12744 eval "ac_cv_lib_$ac_lib_var=yes"
12737 else 12745 else
12738 echo "configure: failed program was:" >&5 12746 echo "configure: failed program was:" >&5
12739 cat conftest.$ac_ext >&5 12747 cat conftest.$ac_ext >&5
12760 fi ;; 12768 fi ;;
12761 hppa*-hp-hpux* ) 12769 hppa*-hp-hpux* )
12762 if test -z "$native_sound_lib"; then 12770 if test -z "$native_sound_lib"; then
12763 12771
12764 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 12772 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12765 echo "configure:12766: checking for AOpenAudio in -lAlib" >&5 12773 echo "configure:12774: checking for AOpenAudio in -lAlib" >&5
12766 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 12774 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12767 12775
12768 xe_check_libs=" -lAlib " 12776 xe_check_libs=" -lAlib "
12769 cat > conftest.$ac_ext <<EOF 12777 cat > conftest.$ac_ext <<EOF
12770 #line 12771 "configure" 12778 #line 12779 "configure"
12771 #include "confdefs.h" 12779 #include "confdefs.h"
12772 /* Override any gcc2 internal prototype to avoid an error. */ 12780 /* Override any gcc2 internal prototype to avoid an error. */
12773 /* We use char because int might match the return type of a gcc2 12781 /* We use char because int might match the return type of a gcc2
12774 builtin and then its argument prototype would still apply. */ 12782 builtin and then its argument prototype would still apply. */
12775 char AOpenAudio(); 12783 char AOpenAudio();
12776 12784
12777 int main() { 12785 int main() {
12778 AOpenAudio() 12786 AOpenAudio()
12779 ; return 0; } 12787 ; return 0; }
12780 EOF 12788 EOF
12781 if { (eval echo configure:12782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12789 if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12782 rm -rf conftest* 12790 rm -rf conftest*
12783 eval "ac_cv_lib_$ac_lib_var=yes" 12791 eval "ac_cv_lib_$ac_lib_var=yes"
12784 else 12792 else
12785 echo "configure: failed program was:" >&5 12793 echo "configure: failed program was:" >&5
12786 cat conftest.$ac_ext >&5 12794 cat conftest.$ac_ext >&5
12824 12832
12825 if test -z "$sound_found"; then 12833 if test -z "$sound_found"; then
12826 for dir in "machine" "sys" "linux"; do 12834 for dir in "machine" "sys" "linux"; do
12827 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 12835 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12828 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 12836 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12829 echo "configure:12830: checking for ${dir}/soundcard.h" >&5 12837 echo "configure:12838: checking for ${dir}/soundcard.h" >&5
12830 12838
12831 cat > conftest.$ac_ext <<EOF 12839 cat > conftest.$ac_ext <<EOF
12832 #line 12833 "configure" 12840 #line 12841 "configure"
12833 #include "confdefs.h" 12841 #include "confdefs.h"
12834 #include <${dir}/soundcard.h> 12842 #include <${dir}/soundcard.h>
12835 EOF 12843 EOF
12836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12837 { (eval echo configure:12838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12845 { (eval echo configure:12846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12839 if test -z "$ac_err"; then 12847 if test -z "$ac_err"; then
12840 rm -rf conftest* 12848 rm -rf conftest*
12841 eval "ac_cv_header_$ac_safe=yes" 12849 eval "ac_cv_header_$ac_safe=yes"
12842 else 12850 else
12886 fi 12894 fi
12887 12895
12888 if test "$with_nas_sound" != "no"; then 12896 if test "$with_nas_sound" != "no"; then
12889 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 12897 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12890 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 12898 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12891 echo "configure:12892: checking for audio/audiolib.h" >&5 12899 echo "configure:12900: checking for audio/audiolib.h" >&5
12892 12900
12893 cat > conftest.$ac_ext <<EOF 12901 cat > conftest.$ac_ext <<EOF
12894 #line 12895 "configure" 12902 #line 12903 "configure"
12895 #include "confdefs.h" 12903 #include "confdefs.h"
12896 #include <audio/audiolib.h> 12904 #include <audio/audiolib.h>
12897 EOF 12905 EOF
12898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12899 { (eval echo configure:12900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12907 { (eval echo configure:12908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12901 if test -z "$ac_err"; then 12909 if test -z "$ac_err"; then
12902 rm -rf conftest* 12910 rm -rf conftest*
12903 eval "ac_cv_header_$ac_safe=yes" 12911 eval "ac_cv_header_$ac_safe=yes"
12904 else 12912 else
12912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12913 echo "$ac_t""yes" 1>&6 12921 echo "$ac_t""yes" 1>&6
12914 12922
12915 12923
12916 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 12924 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12917 echo "configure:12918: checking for AuOpenServer in -laudio" >&5 12925 echo "configure:12926: checking for AuOpenServer in -laudio" >&5
12918 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 12926 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12919 12927
12920 xe_check_libs=" -laudio " 12928 xe_check_libs=" -laudio "
12921 cat > conftest.$ac_ext <<EOF 12929 cat > conftest.$ac_ext <<EOF
12922 #line 12923 "configure" 12930 #line 12931 "configure"
12923 #include "confdefs.h" 12931 #include "confdefs.h"
12924 /* Override any gcc2 internal prototype to avoid an error. */ 12932 /* Override any gcc2 internal prototype to avoid an error. */
12925 /* We use char because int might match the return type of a gcc2 12933 /* We use char because int might match the return type of a gcc2
12926 builtin and then its argument prototype would still apply. */ 12934 builtin and then its argument prototype would still apply. */
12927 char AuOpenServer(); 12935 char AuOpenServer();
12928 12936
12929 int main() { 12937 int main() {
12930 AuOpenServer() 12938 AuOpenServer()
12931 ; return 0; } 12939 ; return 0; }
12932 EOF 12940 EOF
12933 if { (eval echo configure:12934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12941 if { (eval echo configure:12942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12934 rm -rf conftest* 12942 rm -rf conftest*
12935 eval "ac_cv_lib_$ac_lib_var=yes" 12943 eval "ac_cv_lib_$ac_lib_var=yes"
12936 else 12944 else
12937 echo "configure: failed program was:" >&5 12945 echo "configure: failed program was:" >&5
12938 cat conftest.$ac_ext >&5 12946 cat conftest.$ac_ext >&5
12967 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 12975 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12968 echo " xemacs will be linked with \"nas.o\"" 12976 echo " xemacs will be linked with \"nas.o\""
12969 fi 12977 fi
12970 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 12978 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12971 cat > conftest.$ac_ext <<EOF 12979 cat > conftest.$ac_ext <<EOF
12972 #line 12973 "configure" 12980 #line 12981 "configure"
12973 #include "confdefs.h" 12981 #include "confdefs.h"
12974 #include <audio/Xtutil.h> 12982 #include <audio/Xtutil.h>
12975 EOF 12983 EOF
12976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12977 egrep "AuXtErrorJump" >/dev/null 2>&1; then 12985 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12994 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; } 13002 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
12995 with_nas_sound=no 13003 with_nas_sound=no
12996 fi 13004 fi
12997 fi 13005 fi
12998 13006
12999 if test "$with_esd_sound" != "no" -a "x$with_esd_sound" != "x"; then 13007 if test "$with_esd_sound" != "no"; then
13000 # Extract the first word of "esd-config", so it can be a program name with args. 13008 # Extract the first word of "esd-config", so it can be a program name with args.
13001 set dummy esd-config; ac_word=$2 13009 set dummy esd-config; ac_word=$2
13002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 13010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13003 echo "configure:13004: checking for $ac_word" >&5 13011 echo "configure:13012: checking for $ac_word" >&5
13004 13012
13005 if test -n "$have_esd_config"; then 13013 if test -n "$have_esd_config"; then
13006 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 13014 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13007 else 13015 else
13008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 13016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13027 if test "$have_esd_config" = "yes"; then 13035 if test "$have_esd_config" = "yes"; then
13028 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 13036 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13029 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 13037 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
13030 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 13038 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13031 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 13039 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13032 echo "configure:13033: checking for esd_play_stream" >&5 13040 echo "configure:13041: checking for esd_play_stream" >&5
13033 13041
13034 cat > conftest.$ac_ext <<EOF 13042 cat > conftest.$ac_ext <<EOF
13035 #line 13036 "configure" 13043 #line 13044 "configure"
13036 #include "confdefs.h" 13044 #include "confdefs.h"
13037 /* System header to define __stub macros and hopefully few prototypes, 13045 /* System header to define __stub macros and hopefully few prototypes,
13038 which can conflict with char esd_play_stream(); below. */ 13046 which can conflict with char esd_play_stream(); below. */
13039 #include <assert.h> 13047 #include <assert.h>
13040 /* Override any gcc2 internal prototype to avoid an error. */ 13048 /* Override any gcc2 internal prototype to avoid an error. */
13053 esd_play_stream(); 13061 esd_play_stream();
13054 #endif 13062 #endif
13055 13063
13056 ; return 0; } 13064 ; return 0; }
13057 EOF 13065 EOF
13058 if { (eval echo configure:13059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13066 if { (eval echo configure:13067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13059 rm -rf conftest* 13067 rm -rf conftest*
13060 eval "ac_cv_func_esd_play_stream=yes" 13068 eval "ac_cv_func_esd_play_stream=yes"
13061 else 13069 else
13062 echo "configure: failed program was:" >&5 13070 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5 13071 cat conftest.$ac_ext >&5
13104 13112
13105 test -z "$with_tty" && with_tty=yes 13113 test -z "$with_tty" && with_tty=yes
13106 13114
13107 if test "$with_tty" = "yes" ; then 13115 if test "$with_tty" = "yes" ; then
13108 echo "checking for TTY-related features" 1>&6 13116 echo "checking for TTY-related features" 1>&6
13109 echo "configure:13110: checking for TTY-related features" >&5 13117 echo "configure:13118: checking for TTY-related features" >&5
13110 { test "$extra_verbose" = "yes" && cat << \EOF 13118 { test "$extra_verbose" = "yes" && cat << \EOF
13111 Defining HAVE_TTY 13119 Defining HAVE_TTY
13112 EOF 13120 EOF
13113 cat >> confdefs.h <<\EOF 13121 cat >> confdefs.h <<\EOF
13114 #define HAVE_TTY 1 13122 #define HAVE_TTY 1
13117 13125
13118 13126
13119 if test -z "$with_ncurses"; then 13127 if test -z "$with_ncurses"; then
13120 13128
13121 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 13129 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13122 echo "configure:13123: checking for tgetent in -lncurses" >&5 13130 echo "configure:13131: checking for tgetent in -lncurses" >&5
13123 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 13131 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13124 13132
13125 xe_check_libs=" -lncurses " 13133 xe_check_libs=" -lncurses "
13126 cat > conftest.$ac_ext <<EOF 13134 cat > conftest.$ac_ext <<EOF
13127 #line 13128 "configure" 13135 #line 13136 "configure"
13128 #include "confdefs.h" 13136 #include "confdefs.h"
13129 /* Override any gcc2 internal prototype to avoid an error. */ 13137 /* Override any gcc2 internal prototype to avoid an error. */
13130 /* We use char because int might match the return type of a gcc2 13138 /* We use char because int might match the return type of a gcc2
13131 builtin and then its argument prototype would still apply. */ 13139 builtin and then its argument prototype would still apply. */
13132 char tgetent(); 13140 char tgetent();
13133 13141
13134 int main() { 13142 int main() {
13135 tgetent() 13143 tgetent()
13136 ; return 0; } 13144 ; return 0; }
13137 EOF 13145 EOF
13138 if { (eval echo configure:13139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13146 if { (eval echo configure:13147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13139 rm -rf conftest* 13147 rm -rf conftest*
13140 eval "ac_cv_lib_$ac_lib_var=yes" 13148 eval "ac_cv_lib_$ac_lib_var=yes"
13141 else 13149 else
13142 echo "configure: failed program was:" >&5 13150 echo "configure: failed program was:" >&5
13143 cat conftest.$ac_ext >&5 13151 cat conftest.$ac_ext >&5
13166 EOF 13174 EOF
13167 } 13175 }
13168 13176
13169 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 13177 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13170 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 13178 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13171 echo "configure:13172: checking for ncurses/curses.h" >&5 13179 echo "configure:13180: checking for ncurses/curses.h" >&5
13172 13180
13173 cat > conftest.$ac_ext <<EOF 13181 cat > conftest.$ac_ext <<EOF
13174 #line 13175 "configure" 13182 #line 13183 "configure"
13175 #include "confdefs.h" 13183 #include "confdefs.h"
13176 #include <ncurses/curses.h> 13184 #include <ncurses/curses.h>
13177 EOF 13185 EOF
13178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13179 { (eval echo configure:13180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13187 { (eval echo configure:13188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13181 if test -z "$ac_err"; then 13189 if test -z "$ac_err"; then
13182 rm -rf conftest* 13190 rm -rf conftest*
13183 eval "ac_cv_header_$ac_safe=yes" 13191 eval "ac_cv_header_$ac_safe=yes"
13184 else 13192 else
13196 echo "$ac_t""no" 1>&6 13204 echo "$ac_t""no" 1>&6
13197 fi 13205 fi
13198 13206
13199 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 13207 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13200 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 13208 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13201 echo "configure:13202: checking for ncurses/term.h" >&5 13209 echo "configure:13210: checking for ncurses/term.h" >&5
13202 13210
13203 cat > conftest.$ac_ext <<EOF 13211 cat > conftest.$ac_ext <<EOF
13204 #line 13205 "configure" 13212 #line 13213 "configure"
13205 #include "confdefs.h" 13213 #include "confdefs.h"
13206 #include <ncurses/term.h> 13214 #include <ncurses/term.h>
13207 EOF 13215 EOF
13208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13209 { (eval echo configure:13210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13217 { (eval echo configure:13218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13211 if test -z "$ac_err"; then 13219 if test -z "$ac_err"; then
13212 rm -rf conftest* 13220 rm -rf conftest*
13213 eval "ac_cv_header_$ac_safe=yes" 13221 eval "ac_cv_header_$ac_safe=yes"
13214 else 13222 else
13234 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 13242 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13235 save_c_switch_site="$c_switch_site" 13243 save_c_switch_site="$c_switch_site"
13236 c_switch_site="$c_switch_site -I/usr/include/ncurses" 13244 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13237 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 13245 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13238 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 13246 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13239 echo "configure:13240: checking for ncurses/curses.h" >&5 13247 echo "configure:13248: checking for ncurses/curses.h" >&5
13240 13248
13241 cat > conftest.$ac_ext <<EOF 13249 cat > conftest.$ac_ext <<EOF
13242 #line 13243 "configure" 13250 #line 13251 "configure"
13243 #include "confdefs.h" 13251 #include "confdefs.h"
13244 #include <ncurses/curses.h> 13252 #include <ncurses/curses.h>
13245 EOF 13253 EOF
13246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13247 { (eval echo configure:13248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13255 { (eval echo configure:13256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13249 if test -z "$ac_err"; then 13257 if test -z "$ac_err"; then
13250 rm -rf conftest* 13258 rm -rf conftest*
13251 eval "ac_cv_header_$ac_safe=yes" 13259 eval "ac_cv_header_$ac_safe=yes"
13252 else 13260 else
13277 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 13285 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13278 else 13286 else
13279 for lib in curses termlib termcap; do 13287 for lib in curses termlib termcap; do
13280 13288
13281 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 13289 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13282 echo "configure:13283: checking for tgetent in -l$lib" >&5 13290 echo "configure:13291: checking for tgetent in -l$lib" >&5
13283 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 13291 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13284 13292
13285 xe_check_libs=" -l$lib " 13293 xe_check_libs=" -l$lib "
13286 cat > conftest.$ac_ext <<EOF 13294 cat > conftest.$ac_ext <<EOF
13287 #line 13288 "configure" 13295 #line 13296 "configure"
13288 #include "confdefs.h" 13296 #include "confdefs.h"
13289 /* Override any gcc2 internal prototype to avoid an error. */ 13297 /* Override any gcc2 internal prototype to avoid an error. */
13290 /* We use char because int might match the return type of a gcc2 13298 /* We use char because int might match the return type of a gcc2
13291 builtin and then its argument prototype would still apply. */ 13299 builtin and then its argument prototype would still apply. */
13292 char tgetent(); 13300 char tgetent();
13293 13301
13294 int main() { 13302 int main() {
13295 tgetent() 13303 tgetent()
13296 ; return 0; } 13304 ; return 0; }
13297 EOF 13305 EOF
13298 if { (eval echo configure:13299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13306 if { (eval echo configure:13307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13299 rm -rf conftest* 13307 rm -rf conftest*
13300 eval "ac_cv_lib_$ac_lib_var=yes" 13308 eval "ac_cv_lib_$ac_lib_var=yes"
13301 else 13309 else
13302 echo "configure: failed program was:" >&5 13310 echo "configure: failed program was:" >&5
13303 cat conftest.$ac_ext >&5 13311 cat conftest.$ac_ext >&5
13324 if test -n "$libs_termcap"; then 13332 if test -n "$libs_termcap"; then
13325 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 13333 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13326 else 13334 else
13327 13335
13328 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 13336 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13329 echo "configure:13330: checking for tgetent in -lcurses" >&5 13337 echo "configure:13338: checking for tgetent in -lcurses" >&5
13330 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 13338 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13331 13339
13332 xe_check_libs=" -lcurses " 13340 xe_check_libs=" -lcurses "
13333 cat > conftest.$ac_ext <<EOF 13341 cat > conftest.$ac_ext <<EOF
13334 #line 13335 "configure" 13342 #line 13343 "configure"
13335 #include "confdefs.h" 13343 #include "confdefs.h"
13336 /* Override any gcc2 internal prototype to avoid an error. */ 13344 /* Override any gcc2 internal prototype to avoid an error. */
13337 /* We use char because int might match the return type of a gcc2 13345 /* We use char because int might match the return type of a gcc2
13338 builtin and then its argument prototype would still apply. */ 13346 builtin and then its argument prototype would still apply. */
13339 char tgetent(); 13347 char tgetent();
13340 13348
13341 int main() { 13349 int main() {
13342 tgetent() 13350 tgetent()
13343 ; return 0; } 13351 ; return 0; }
13344 EOF 13352 EOF
13345 if { (eval echo configure:13346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13353 if { (eval echo configure:13354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13346 rm -rf conftest* 13354 rm -rf conftest*
13347 eval "ac_cv_lib_$ac_lib_var=yes" 13355 eval "ac_cv_lib_$ac_lib_var=yes"
13348 else 13356 else
13349 echo "configure: failed program was:" >&5 13357 echo "configure: failed program was:" >&5
13350 cat conftest.$ac_ext >&5 13358 cat conftest.$ac_ext >&5
13358 echo "$ac_t""yes" 1>&6 13366 echo "$ac_t""yes" 1>&6
13359 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 13367 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13360 else 13368 else
13361 echo "$ac_t""no" 1>&6 13369 echo "$ac_t""no" 1>&6
13362 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 13370 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13363 echo "configure:13364: checking for tgetent in -ltermcap" >&5 13371 echo "configure:13372: checking for tgetent in -ltermcap" >&5
13364 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 13372 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13365 13373
13366 xe_check_libs=" -ltermcap " 13374 xe_check_libs=" -ltermcap "
13367 cat > conftest.$ac_ext <<EOF 13375 cat > conftest.$ac_ext <<EOF
13368 #line 13369 "configure" 13376 #line 13377 "configure"
13369 #include "confdefs.h" 13377 #include "confdefs.h"
13370 /* Override any gcc2 internal prototype to avoid an error. */ 13378 /* Override any gcc2 internal prototype to avoid an error. */
13371 /* We use char because int might match the return type of a gcc2 13379 /* We use char because int might match the return type of a gcc2
13372 builtin and then its argument prototype would still apply. */ 13380 builtin and then its argument prototype would still apply. */
13373 char tgetent(); 13381 char tgetent();
13374 13382
13375 int main() { 13383 int main() {
13376 tgetent() 13384 tgetent()
13377 ; return 0; } 13385 ; return 0; }
13378 EOF 13386 EOF
13379 if { (eval echo configure:13380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13387 if { (eval echo configure:13388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13380 rm -rf conftest* 13388 rm -rf conftest*
13381 eval "ac_cv_lib_$ac_lib_var=yes" 13389 eval "ac_cv_lib_$ac_lib_var=yes"
13382 else 13390 else
13383 echo "configure: failed program was:" >&5 13391 echo "configure: failed program was:" >&5
13384 cat conftest.$ac_ext >&5 13392 cat conftest.$ac_ext >&5
13422 } 13430 }
13423 13431
13424 13432
13425 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 13433 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13426 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 13434 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13427 echo "configure:13428: checking for gpm.h" >&5 13435 echo "configure:13436: checking for gpm.h" >&5
13428 13436
13429 cat > conftest.$ac_ext <<EOF 13437 cat > conftest.$ac_ext <<EOF
13430 #line 13431 "configure" 13438 #line 13439 "configure"
13431 #include "confdefs.h" 13439 #include "confdefs.h"
13432 #include <gpm.h> 13440 #include <gpm.h>
13433 EOF 13441 EOF
13434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13435 { (eval echo configure:13436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13443 { (eval echo configure:13444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13437 if test -z "$ac_err"; then 13445 if test -z "$ac_err"; then
13438 rm -rf conftest* 13446 rm -rf conftest*
13439 eval "ac_cv_header_$ac_safe=yes" 13447 eval "ac_cv_header_$ac_safe=yes"
13440 else 13448 else
13453 with_gpm=no 13461 with_gpm=no
13454 fi 13462 fi
13455 } 13463 }
13456 test -z "$with_gpm" && { 13464 test -z "$with_gpm" && {
13457 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 13465 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13458 echo "configure:13459: checking for Gpm_Open in -lgpm" >&5 13466 echo "configure:13467: checking for Gpm_Open in -lgpm" >&5
13459 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 13467 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13460 13468
13461 xe_check_libs=" -lgpm " 13469 xe_check_libs=" -lgpm "
13462 cat > conftest.$ac_ext <<EOF 13470 cat > conftest.$ac_ext <<EOF
13463 #line 13464 "configure" 13471 #line 13472 "configure"
13464 #include "confdefs.h" 13472 #include "confdefs.h"
13465 /* Override any gcc2 internal prototype to avoid an error. */ 13473 /* Override any gcc2 internal prototype to avoid an error. */
13466 /* We use char because int might match the return type of a gcc2 13474 /* We use char because int might match the return type of a gcc2
13467 builtin and then its argument prototype would still apply. */ 13475 builtin and then its argument prototype would still apply. */
13468 char Gpm_Open(); 13476 char Gpm_Open();
13469 13477
13470 int main() { 13478 int main() {
13471 Gpm_Open() 13479 Gpm_Open()
13472 ; return 0; } 13480 ; return 0; }
13473 EOF 13481 EOF
13474 if { (eval echo configure:13475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13482 if { (eval echo configure:13483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13475 rm -rf conftest* 13483 rm -rf conftest*
13476 eval "ac_cv_lib_$ac_lib_var=yes" 13484 eval "ac_cv_lib_$ac_lib_var=yes"
13477 else 13485 else
13478 echo "configure: failed program was:" >&5 13486 echo "configure: failed program was:" >&5
13479 cat conftest.$ac_ext >&5 13487 cat conftest.$ac_ext >&5
13512 done 13520 done
13513 fi 13521 fi
13514 13522
13515 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 13523 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13516 != "no no no" && echo "checking for database support" 1>&6 13524 != "no no no" && echo "checking for database support" 1>&6
13517 echo "configure:13518: checking for database support" >&5 13525 echo "configure:13526: checking for database support" >&5
13518 13526
13519 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 13527 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13520 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 13528 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13521 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 13529 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13522 echo "configure:13523: checking for ndbm.h" >&5 13530 echo "configure:13531: checking for ndbm.h" >&5
13523 13531
13524 cat > conftest.$ac_ext <<EOF 13532 cat > conftest.$ac_ext <<EOF
13525 #line 13526 "configure" 13533 #line 13534 "configure"
13526 #include "confdefs.h" 13534 #include "confdefs.h"
13527 #include <ndbm.h> 13535 #include <ndbm.h>
13528 EOF 13536 EOF
13529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13530 { (eval echo configure:13531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13538 { (eval echo configure:13539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13532 if test -z "$ac_err"; then 13540 if test -z "$ac_err"; then
13533 rm -rf conftest* 13541 rm -rf conftest*
13534 eval "ac_cv_header_$ac_safe=yes" 13542 eval "ac_cv_header_$ac_safe=yes"
13535 else 13543 else
13555 fi 13563 fi
13556 13564
13557 if test "$with_database_gdbm" != "no"; then 13565 if test "$with_database_gdbm" != "no"; then
13558 13566
13559 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 13567 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13560 echo "configure:13561: checking for dbm_open in -lgdbm" >&5 13568 echo "configure:13569: checking for dbm_open in -lgdbm" >&5
13561 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 13569 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13562 13570
13563 xe_check_libs=" -lgdbm " 13571 xe_check_libs=" -lgdbm "
13564 cat > conftest.$ac_ext <<EOF 13572 cat > conftest.$ac_ext <<EOF
13565 #line 13566 "configure" 13573 #line 13574 "configure"
13566 #include "confdefs.h" 13574 #include "confdefs.h"
13567 /* Override any gcc2 internal prototype to avoid an error. */ 13575 /* Override any gcc2 internal prototype to avoid an error. */
13568 /* We use char because int might match the return type of a gcc2 13576 /* We use char because int might match the return type of a gcc2
13569 builtin and then its argument prototype would still apply. */ 13577 builtin and then its argument prototype would still apply. */
13570 char dbm_open(); 13578 char dbm_open();
13571 13579
13572 int main() { 13580 int main() {
13573 dbm_open() 13581 dbm_open()
13574 ; return 0; } 13582 ; return 0; }
13575 EOF 13583 EOF
13576 if { (eval echo configure:13577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13584 if { (eval echo configure:13585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13577 rm -rf conftest* 13585 rm -rf conftest*
13578 eval "ac_cv_lib_$ac_lib_var=yes" 13586 eval "ac_cv_lib_$ac_lib_var=yes"
13579 else 13587 else
13580 echo "configure: failed program was:" >&5 13588 echo "configure: failed program was:" >&5
13581 cat conftest.$ac_ext >&5 13589 cat conftest.$ac_ext >&5
13599 13607
13600 fi 13608 fi
13601 13609
13602 if test "$with_database_dbm" != "no"; then 13610 if test "$with_database_dbm" != "no"; then
13603 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 13611 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13604 echo "configure:13605: checking for dbm_open" >&5 13612 echo "configure:13613: checking for dbm_open" >&5
13605 13613
13606 cat > conftest.$ac_ext <<EOF 13614 cat > conftest.$ac_ext <<EOF
13607 #line 13608 "configure" 13615 #line 13616 "configure"
13608 #include "confdefs.h" 13616 #include "confdefs.h"
13609 /* System header to define __stub macros and hopefully few prototypes, 13617 /* System header to define __stub macros and hopefully few prototypes,
13610 which can conflict with char dbm_open(); below. */ 13618 which can conflict with char dbm_open(); below. */
13611 #include <assert.h> 13619 #include <assert.h>
13612 /* Override any gcc2 internal prototype to avoid an error. */ 13620 /* Override any gcc2 internal prototype to avoid an error. */
13625 dbm_open(); 13633 dbm_open();
13626 #endif 13634 #endif
13627 13635
13628 ; return 0; } 13636 ; return 0; }
13629 EOF 13637 EOF
13630 if { (eval echo configure:13631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13638 if { (eval echo configure:13639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13631 rm -rf conftest* 13639 rm -rf conftest*
13632 eval "ac_cv_func_dbm_open=yes" 13640 eval "ac_cv_func_dbm_open=yes"
13633 else 13641 else
13634 echo "configure: failed program was:" >&5 13642 echo "configure: failed program was:" >&5
13635 cat conftest.$ac_ext >&5 13643 cat conftest.$ac_ext >&5
13644 else 13652 else
13645 echo "$ac_t""no" 1>&6 13653 echo "$ac_t""no" 1>&6
13646 13654
13647 13655
13648 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 13656 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13649 echo "configure:13650: checking for dbm_open in -ldbm" >&5 13657 echo "configure:13658: checking for dbm_open in -ldbm" >&5
13650 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 13658 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13651 13659
13652 xe_check_libs=" -ldbm " 13660 xe_check_libs=" -ldbm "
13653 cat > conftest.$ac_ext <<EOF 13661 cat > conftest.$ac_ext <<EOF
13654 #line 13655 "configure" 13662 #line 13663 "configure"
13655 #include "confdefs.h" 13663 #include "confdefs.h"
13656 /* Override any gcc2 internal prototype to avoid an error. */ 13664 /* Override any gcc2 internal prototype to avoid an error. */
13657 /* We use char because int might match the return type of a gcc2 13665 /* We use char because int might match the return type of a gcc2
13658 builtin and then its argument prototype would still apply. */ 13666 builtin and then its argument prototype would still apply. */
13659 char dbm_open(); 13667 char dbm_open();
13660 13668
13661 int main() { 13669 int main() {
13662 dbm_open() 13670 dbm_open()
13663 ; return 0; } 13671 ; return 0; }
13664 EOF 13672 EOF
13665 if { (eval echo configure:13666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13673 if { (eval echo configure:13674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13666 rm -rf conftest* 13674 rm -rf conftest*
13667 eval "ac_cv_lib_$ac_lib_var=yes" 13675 eval "ac_cv_lib_$ac_lib_var=yes"
13668 else 13676 else
13669 echo "configure: failed program was:" >&5 13677 echo "configure: failed program was:" >&5
13670 cat conftest.$ac_ext >&5 13678 cat conftest.$ac_ext >&5
13701 } 13709 }
13702 13710
13703 13711
13704 if test "$with_database_berkdb" != "no"; then 13712 if test "$with_database_berkdb" != "no"; then
13705 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 13713 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13706 echo "configure:13707: checking for Berkeley db.h" >&5 13714 echo "configure:13715: checking for Berkeley db.h" >&5
13707 for header in "db/db.h" "db.h"; do 13715 for header in "db/db.h" "db.h"; do
13708 cat > conftest.$ac_ext <<EOF 13716 cat > conftest.$ac_ext <<EOF
13709 #line 13710 "configure" 13717 #line 13718 "configure"
13710 #include "confdefs.h" 13718 #include "confdefs.h"
13711 13719
13712 #include <stdlib.h> 13720 #include <stdlib.h>
13713 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 13721 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13714 #ifdef HAVE_INTTYPES_H 13722 #ifdef HAVE_INTTYPES_H
13726 13734
13727 int main() { 13735 int main() {
13728 13736
13729 ; return 0; } 13737 ; return 0; }
13730 EOF 13738 EOF
13731 if { (eval echo configure:13732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13739 if { (eval echo configure:13740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13732 rm -rf conftest* 13740 rm -rf conftest*
13733 db_h_file="$header"; break 13741 db_h_file="$header"; break
13734 else 13742 else
13735 echo "configure: failed program was:" >&5 13743 echo "configure: failed program was:" >&5
13736 cat conftest.$ac_ext >&5 13744 cat conftest.$ac_ext >&5
13742 else echo "$ac_t""$db_h_file" 1>&6 13750 else echo "$ac_t""$db_h_file" 1>&6
13743 fi 13751 fi
13744 13752
13745 if test "$with_database_berkdb" != "no"; then 13753 if test "$with_database_berkdb" != "no"; then
13746 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 13754 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13747 echo "configure:13748: checking for Berkeley DB version" >&5 13755 echo "configure:13756: checking for Berkeley DB version" >&5
13748 cat > conftest.$ac_ext <<EOF 13756 cat > conftest.$ac_ext <<EOF
13749 #line 13750 "configure" 13757 #line 13758 "configure"
13750 #include "confdefs.h" 13758 #include "confdefs.h"
13751 #include <$db_h_file> 13759 #include <$db_h_file>
13752 #if DB_VERSION_MAJOR > 1 13760 #if DB_VERSION_MAJOR > 1
13753 yes 13761 yes
13754 #endif 13762 #endif
13756 EOF 13764 EOF
13757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13758 egrep "yes" >/dev/null 2>&1; then 13766 egrep "yes" >/dev/null 2>&1; then
13759 rm -rf conftest* 13767 rm -rf conftest*
13760 cat > conftest.$ac_ext <<EOF 13768 cat > conftest.$ac_ext <<EOF
13761 #line 13762 "configure" 13769 #line 13770 "configure"
13762 #include "confdefs.h" 13770 #include "confdefs.h"
13763 #include <$db_h_file> 13771 #include <$db_h_file>
13764 #if DB_VERSION_MAJOR > 2 13772 #if DB_VERSION_MAJOR > 2
13765 yes 13773 yes
13766 #endif 13774 #endif
13768 EOF 13776 EOF
13769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13770 egrep "yes" >/dev/null 2>&1; then 13778 egrep "yes" >/dev/null 2>&1; then
13771 rm -rf conftest* 13779 rm -rf conftest*
13772 cat > conftest.$ac_ext <<EOF 13780 cat > conftest.$ac_ext <<EOF
13773 #line 13774 "configure" 13781 #line 13782 "configure"
13774 #include "confdefs.h" 13782 #include "confdefs.h"
13775 #include <$db_h_file> 13783 #include <$db_h_file>
13776 #if DB_VERSION_MAJOR > 3 13784 #if DB_VERSION_MAJOR > 3
13777 yes 13785 yes
13778 #endif 13786 #endif
13802 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1 13810 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1
13803 fi 13811 fi
13804 rm -f conftest* 13812 rm -f conftest*
13805 13813
13806 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 13814 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13807 echo "configure:13808: checking for $dbfunc" >&5 13815 echo "configure:13816: checking for $dbfunc" >&5
13808 13816
13809 cat > conftest.$ac_ext <<EOF 13817 cat > conftest.$ac_ext <<EOF
13810 #line 13811 "configure" 13818 #line 13819 "configure"
13811 #include "confdefs.h" 13819 #include "confdefs.h"
13812 /* System header to define __stub macros and hopefully few prototypes, 13820 /* System header to define __stub macros and hopefully few prototypes,
13813 which can conflict with char $dbfunc(); below. */ 13821 which can conflict with char $dbfunc(); below. */
13814 #include <assert.h> 13822 #include <assert.h>
13815 /* Override any gcc2 internal prototype to avoid an error. */ 13823 /* Override any gcc2 internal prototype to avoid an error. */
13828 $dbfunc(); 13836 $dbfunc();
13829 #endif 13837 #endif
13830 13838
13831 ; return 0; } 13839 ; return 0; }
13832 EOF 13840 EOF
13833 if { (eval echo configure:13834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13841 if { (eval echo configure:13842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13834 rm -rf conftest* 13842 rm -rf conftest*
13835 eval "ac_cv_func_$dbfunc=yes" 13843 eval "ac_cv_func_$dbfunc=yes"
13836 else 13844 else
13837 echo "configure: failed program was:" >&5 13845 echo "configure: failed program was:" >&5
13838 cat conftest.$ac_ext >&5 13846 cat conftest.$ac_ext >&5
13847 else 13855 else
13848 echo "$ac_t""no" 1>&6 13856 echo "$ac_t""no" 1>&6
13849 13857
13850 13858
13851 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 13859 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13852 echo "configure:13853: checking for $dbfunc in -ldb" >&5 13860 echo "configure:13861: checking for $dbfunc in -ldb" >&5
13853 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 13861 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13854 13862
13855 xe_check_libs=" -ldb " 13863 xe_check_libs=" -ldb "
13856 cat > conftest.$ac_ext <<EOF 13864 cat > conftest.$ac_ext <<EOF
13857 #line 13858 "configure" 13865 #line 13866 "configure"
13858 #include "confdefs.h" 13866 #include "confdefs.h"
13859 /* Override any gcc2 internal prototype to avoid an error. */ 13867 /* Override any gcc2 internal prototype to avoid an error. */
13860 /* We use char because int might match the return type of a gcc2 13868 /* We use char because int might match the return type of a gcc2
13861 builtin and then its argument prototype would still apply. */ 13869 builtin and then its argument prototype would still apply. */
13862 char $dbfunc(); 13870 char $dbfunc();
13863 13871
13864 int main() { 13872 int main() {
13865 $dbfunc() 13873 $dbfunc()
13866 ; return 0; } 13874 ; return 0; }
13867 EOF 13875 EOF
13868 if { (eval echo configure:13869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13876 if { (eval echo configure:13877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13869 rm -rf conftest* 13877 rm -rf conftest*
13870 eval "ac_cv_lib_$ac_lib_var=yes" 13878 eval "ac_cv_lib_$ac_lib_var=yes"
13871 else 13879 else
13872 echo "configure: failed program was:" >&5 13880 echo "configure: failed program was:" >&5
13873 cat conftest.$ac_ext >&5 13881 cat conftest.$ac_ext >&5
13897 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"` 13905 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
13898 rm -f $tempcname 13906 rm -f $tempcname
13899 echo "configure: warning: "db_create is really $dbfunc"" 1>&2 13907 echo "configure: warning: "db_create is really $dbfunc"" 1>&2
13900 13908
13901 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 13909 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13902 echo "configure:13903: checking for $dbfunc in -ldb" >&5 13910 echo "configure:13911: checking for $dbfunc in -ldb" >&5
13903 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 13911 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13904 13912
13905 xe_check_libs=" -ldb " 13913 xe_check_libs=" -ldb "
13906 cat > conftest.$ac_ext <<EOF 13914 cat > conftest.$ac_ext <<EOF
13907 #line 13908 "configure" 13915 #line 13916 "configure"
13908 #include "confdefs.h" 13916 #include "confdefs.h"
13909 /* Override any gcc2 internal prototype to avoid an error. */ 13917 /* Override any gcc2 internal prototype to avoid an error. */
13910 /* We use char because int might match the return type of a gcc2 13918 /* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */ 13919 builtin and then its argument prototype would still apply. */
13912 char $dbfunc(); 13920 char $dbfunc();
13913 13921
13914 int main() { 13922 int main() {
13915 $dbfunc() 13923 $dbfunc()
13916 ; return 0; } 13924 ; return 0; }
13917 EOF 13925 EOF
13918 if { (eval echo configure:13919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13926 if { (eval echo configure:13927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13919 rm -rf conftest* 13927 rm -rf conftest*
13920 eval "ac_cv_lib_$ac_lib_var=yes" 13928 eval "ac_cv_lib_$ac_lib_var=yes"
13921 else 13929 else
13922 echo "configure: failed program was:" >&5 13930 echo "configure: failed program was:" >&5
13923 cat conftest.$ac_ext >&5 13931 cat conftest.$ac_ext >&5
13972 fi 13980 fi
13973 13981
13974 if test "$with_socks" = "yes"; then 13982 if test "$with_socks" = "yes"; then
13975 13983
13976 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 13984 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13977 echo "configure:13978: checking for SOCKSinit in -lsocks" >&5 13985 echo "configure:13986: checking for SOCKSinit in -lsocks" >&5
13978 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 13986 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13979 13987
13980 xe_check_libs=" -lsocks " 13988 xe_check_libs=" -lsocks "
13981 cat > conftest.$ac_ext <<EOF 13989 cat > conftest.$ac_ext <<EOF
13982 #line 13983 "configure" 13990 #line 13991 "configure"
13983 #include "confdefs.h" 13991 #include "confdefs.h"
13984 /* Override any gcc2 internal prototype to avoid an error. */ 13992 /* Override any gcc2 internal prototype to avoid an error. */
13985 /* We use char because int might match the return type of a gcc2 13993 /* We use char because int might match the return type of a gcc2
13986 builtin and then its argument prototype would still apply. */ 13994 builtin and then its argument prototype would still apply. */
13987 char SOCKSinit(); 13995 char SOCKSinit();
13988 13996
13989 int main() { 13997 int main() {
13990 SOCKSinit() 13998 SOCKSinit()
13991 ; return 0; } 13999 ; return 0; }
13992 EOF 14000 EOF
13993 if { (eval echo configure:13994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14001 if { (eval echo configure:14002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13994 rm -rf conftest* 14002 rm -rf conftest*
13995 eval "ac_cv_lib_$ac_lib_var=yes" 14003 eval "ac_cv_lib_$ac_lib_var=yes"
13996 else 14004 else
13997 echo "configure: failed program was:" >&5 14005 echo "configure: failed program was:" >&5
13998 cat conftest.$ac_ext >&5 14006 cat conftest.$ac_ext >&5
14042 14050
14043 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 14051 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14044 fi 14052 fi
14045 14053
14046 cat > conftest.$ac_ext <<EOF 14054 cat > conftest.$ac_ext <<EOF
14047 #line 14048 "configure" 14055 #line 14056 "configure"
14048 #include "confdefs.h" 14056 #include "confdefs.h"
14049 int main(int c,char *v[]){return 0;} 14057 int main(int c,char *v[]){return 0;}
14050 EOF 14058 EOF
14051 if { (eval echo configure:14052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 14059 if { (eval echo configure:14060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14052 then 14060 then
14053 : 14061 :
14054 else 14062 else
14055 conftest_rc="$?" 14063 conftest_rc="$?"
14056 echo "configure: failed program was:" >&5 14064 echo "configure: failed program was:" >&5
14157 14165
14158 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi 14166 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
14159 14167
14160 if test "$with_modules" != "no"; then 14168 if test "$with_modules" != "no"; then
14161 echo "checking for module support" 1>&6 14169 echo "checking for module support" 1>&6
14162 echo "configure:14163: checking for module support" >&5 14170 echo "configure:14171: checking for module support" >&5
14163 14171
14164 if test "$with_msw" = "yes"; then 14172 if test "$with_msw" = "yes"; then
14165 have_dl=yes; 14173 have_dl=yes;
14166 else 14174 else
14167 case "$opsys" in 14175 case "$opsys" in
14174 } 14182 }
14175 ;; 14183 ;;
14176 * ) 14184 * )
14177 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 14185 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14178 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 14186 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14179 echo "configure:14180: checking for dlfcn.h" >&5 14187 echo "configure:14188: checking for dlfcn.h" >&5
14180 14188
14181 cat > conftest.$ac_ext <<EOF 14189 cat > conftest.$ac_ext <<EOF
14182 #line 14183 "configure" 14190 #line 14191 "configure"
14183 #include "confdefs.h" 14191 #include "confdefs.h"
14184 #include <dlfcn.h> 14192 #include <dlfcn.h>
14185 EOF 14193 EOF
14186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14187 { (eval echo configure:14188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14195 { (eval echo configure:14196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14189 if test -z "$ac_err"; then 14197 if test -z "$ac_err"; then
14190 rm -rf conftest* 14198 rm -rf conftest*
14191 eval "ac_cv_header_$ac_safe=yes" 14199 eval "ac_cv_header_$ac_safe=yes"
14192 else 14200 else
14199 rm -f conftest* 14207 rm -f conftest*
14200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14201 echo "$ac_t""yes" 1>&6 14209 echo "$ac_t""yes" 1>&6
14202 14210
14203 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 14211 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14204 echo "configure:14205: checking for dlopen in -lc" >&5 14212 echo "configure:14213: checking for dlopen in -lc" >&5
14205 cat > conftest.$ac_ext <<EOF 14213 cat > conftest.$ac_ext <<EOF
14206 #line 14207 "configure" 14214 #line 14215 "configure"
14207 #include "confdefs.h" 14215 #include "confdefs.h"
14208 #include <dlfcn.h> 14216 #include <dlfcn.h>
14209 int main() { 14217 int main() {
14210 dlopen ("", 0); 14218 dlopen ("", 0);
14211 ; return 0; } 14219 ; return 0; }
14212 EOF 14220 EOF
14213 if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14221 if { (eval echo configure:14222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14214 rm -rf conftest* 14222 rm -rf conftest*
14215 have_dl=yes 14223 have_dl=yes
14216 else 14224 else
14217 echo "configure: failed program was:" >&5 14225 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5 14226 cat conftest.$ac_ext >&5
14219 rm -rf conftest* 14227 rm -rf conftest*
14220 14228
14221 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 14229 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14222 echo "configure:14223: checking for dlopen in -ldl" >&5 14230 echo "configure:14231: checking for dlopen in -ldl" >&5
14223 ac_save_LIBS="$LIBS" 14231 ac_save_LIBS="$LIBS"
14224 LIBS="-ldl $LIBS" 14232 LIBS="-ldl $LIBS"
14225 cat > conftest.$ac_ext <<EOF 14233 cat > conftest.$ac_ext <<EOF
14226 #line 14227 "configure" 14234 #line 14235 "configure"
14227 #include "confdefs.h" 14235 #include "confdefs.h"
14228 #include <dlfcn.h> 14236 #include <dlfcn.h>
14229 int main() { 14237 int main() {
14230 dlopen ("", 0); 14238 dlopen ("", 0);
14231 ; return 0; } 14239 ; return 0; }
14232 EOF 14240 EOF
14233 if { (eval echo configure:14234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14241 if { (eval echo configure:14242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14234 rm -rf conftest* 14242 rm -rf conftest*
14235 have_dl=yes 14243 have_dl=yes
14236 else 14244 else
14237 echo "configure: failed program was:" >&5 14245 echo "configure: failed program was:" >&5
14238 cat conftest.$ac_ext >&5 14246 cat conftest.$ac_ext >&5
14257 } 14265 }
14258 14266
14259 else 14267 else
14260 14268
14261 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 14269 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14262 echo "configure:14263: checking for shl_load in -ldld" >&5 14270 echo "configure:14271: checking for shl_load in -ldld" >&5
14263 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 14271 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14264 14272
14265 xe_check_libs=" -ldld " 14273 xe_check_libs=" -ldld "
14266 cat > conftest.$ac_ext <<EOF 14274 cat > conftest.$ac_ext <<EOF
14267 #line 14268 "configure" 14275 #line 14276 "configure"
14268 #include "confdefs.h" 14276 #include "confdefs.h"
14269 /* Override any gcc2 internal prototype to avoid an error. */ 14277 /* Override any gcc2 internal prototype to avoid an error. */
14270 /* We use char because int might match the return type of a gcc2 14278 /* We use char because int might match the return type of a gcc2
14271 builtin and then its argument prototype would still apply. */ 14279 builtin and then its argument prototype would still apply. */
14272 char shl_load(); 14280 char shl_load();
14273 14281
14274 int main() { 14282 int main() {
14275 shl_load() 14283 shl_load()
14276 ; return 0; } 14284 ; return 0; }
14277 EOF 14285 EOF
14278 if { (eval echo configure:14279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14286 if { (eval echo configure:14287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14279 rm -rf conftest* 14287 rm -rf conftest*
14280 eval "ac_cv_lib_$ac_lib_var=yes" 14288 eval "ac_cv_lib_$ac_lib_var=yes"
14281 else 14289 else
14282 echo "configure: failed program was:" >&5 14290 echo "configure: failed program was:" >&5
14283 cat conftest.$ac_ext >&5 14291 cat conftest.$ac_ext >&5
14300 14308
14301 else 14309 else
14302 echo "$ac_t""no" 1>&6 14310 echo "$ac_t""no" 1>&6
14303 14311
14304 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 14312 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14305 echo "configure:14306: checking for dld_init in -ldld" >&5 14313 echo "configure:14314: checking for dld_init in -ldld" >&5
14306 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 14314 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14307 14315
14308 xe_check_libs=" -ldld " 14316 xe_check_libs=" -ldld "
14309 cat > conftest.$ac_ext <<EOF 14317 cat > conftest.$ac_ext <<EOF
14310 #line 14311 "configure" 14318 #line 14319 "configure"
14311 #include "confdefs.h" 14319 #include "confdefs.h"
14312 /* Override any gcc2 internal prototype to avoid an error. */ 14320 /* Override any gcc2 internal prototype to avoid an error. */
14313 /* We use char because int might match the return type of a gcc2 14321 /* We use char because int might match the return type of a gcc2
14314 builtin and then its argument prototype would still apply. */ 14322 builtin and then its argument prototype would still apply. */
14315 char dld_init(); 14323 char dld_init();
14316 14324
14317 int main() { 14325 int main() {
14318 dld_init() 14326 dld_init()
14319 ; return 0; } 14327 ; return 0; }
14320 EOF 14328 EOF
14321 if { (eval echo configure:14322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14329 if { (eval echo configure:14330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14322 rm -rf conftest* 14330 rm -rf conftest*
14323 eval "ac_cv_lib_$ac_lib_var=yes" 14331 eval "ac_cv_lib_$ac_lib_var=yes"
14324 else 14332 else
14325 echo "configure: failed program was:" >&5 14333 echo "configure: failed program was:" >&5
14326 cat conftest.$ac_ext >&5 14334 cat conftest.$ac_ext >&5
14361 ld_dynamic_link_flags= 14369 ld_dynamic_link_flags=
14362 xehost=$canonical 14370 xehost=$canonical
14363 xealias=$internal_configuration 14371 xealias=$internal_configuration
14364 14372
14365 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 14373 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14366 echo "configure:14367: checking how to build dynamic libraries for ${xehost}" >&5 14374 echo "configure:14375: checking how to build dynamic libraries for ${xehost}" >&5
14367 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 14375 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14368 case "$xehost" in 14376 case "$xehost" in
14369 *-*-linux-gnu*) ;; 14377 *-*-linux-gnu*) ;;
14370 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 14378 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14371 esac 14379 esac
14389 # Now see if the compiler is really GCC. 14397 # Now see if the compiler is really GCC.
14390 if test "$GCC" = "yes"; then 14398 if test "$GCC" = "yes"; then
14391 XEGCC=yes 14399 XEGCC=yes
14392 else 14400 else
14393 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 14401 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14394 echo "configure:14395: checking checking whether we are using GNU C" >&5 14402 echo "configure:14403: checking checking whether we are using GNU C" >&5
14395 cat > conftest.$ac_ext <<EOF 14403 cat > conftest.$ac_ext <<EOF
14396 #line 14397 "configure" 14404 #line 14405 "configure"
14397 #include "confdefs.h" 14405 #include "confdefs.h"
14398 14406
14399 #ifdef __GNUC__ 14407 #ifdef __GNUC__
14400 yes; 14408 yes;
14401 #endif 14409 #endif
14413 14421
14414 echo "$ac_t""${XEGCC}" 1>&6 14422 echo "$ac_t""${XEGCC}" 1>&6
14415 fi 14423 fi
14416 14424
14417 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 14425 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14418 echo "configure:14419: checking how to produce PIC code" >&5 14426 echo "configure:14427: checking how to produce PIC code" >&5
14419 wl= 14427 wl=
14420 14428
14421 can_build_shared=yes 14429 can_build_shared=yes
14422 cygwin_warn= 14430 cygwin_warn=
14423 if test "$XEGCC" = yes; then 14431 if test "$XEGCC" = yes; then
14522 if test -n "$dll_cflags"; then 14530 if test -n "$dll_cflags"; then
14523 echo "$ac_t""${dll_cflags}" 1>&6 14531 echo "$ac_t""${dll_cflags}" 1>&6
14524 14532
14525 # Check to make sure the dll_cflags actually works. 14533 # Check to make sure the dll_cflags actually works.
14526 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 14534 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14527 echo "configure:14528: checking if PIC flag ${dll_cflags} really works" >&5 14535 echo "configure:14536: checking if PIC flag ${dll_cflags} really works" >&5
14528 save_CFLAGS="$CFLAGS" 14536 save_CFLAGS="$CFLAGS"
14529 CFLAGS="$CFLAGS $dll_cflags -DPIC" 14537 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14530 cat > conftest.$ac_ext <<EOF 14538 cat > conftest.$ac_ext <<EOF
14531 #line 14532 "configure" 14539 #line 14540 "configure"
14532 #include "confdefs.h" 14540 #include "confdefs.h"
14533 14541
14534 int main() { 14542 int main() {
14535 int x=0; 14543 int x=0;
14536 ; return 0; } 14544 ; return 0; }
14537 EOF 14545 EOF
14538 if { (eval echo configure:14539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14546 if { (eval echo configure:14547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14539 rm -rf conftest* 14547 rm -rf conftest*
14540 14548
14541 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 14549 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14542 # reports no error. So, we need to grep stderr for (Bundled). 14550 # reports no error. So, we need to grep stderr for (Bundled).
14543 if grep '(Bundled)' config.log >/dev/null; then 14551 if grep '(Bundled)' config.log >/dev/null; then
14568 if test "$can_build_shared" = "yes"; then 14576 if test "$can_build_shared" = "yes"; then
14569 cc_produces_so=no 14577 cc_produces_so=no
14570 xldf= 14578 xldf=
14571 xcldf= 14579 xcldf=
14572 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 14580 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14573 echo "configure:14574: checking if C compiler can produce shared libraries" >&5 14581 echo "configure:14582: checking if C compiler can produce shared libraries" >&5
14574 if test "$XEGCC" = yes; then 14582 if test "$XEGCC" = yes; then
14575 case "$xehost_os" in 14583 case "$xehost_os" in
14576 *darwin*) 14584 *darwin*)
14577 xcldf='-bundle' 14585 xcldf='-bundle'
14578 xldf='-bundle -bundle_loader ../../src/xemacs' 14586 xldf='-bundle -bundle_loader ../../src/xemacs'
14627 LDFLAGS="$xcldf $LDFLAGS" 14635 LDFLAGS="$xcldf $LDFLAGS"
14628 LIBS= 14636 LIBS=
14629 xe_libs= 14637 xe_libs=
14630 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 14638 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14631 cat > conftest.$ac_ext <<EOF 14639 cat > conftest.$ac_ext <<EOF
14632 #line 14633 "configure" 14640 #line 14641 "configure"
14633 #include "confdefs.h" 14641 #include "confdefs.h"
14634 14642
14635 int main() { 14643 int main() {
14636 int x=0; 14644 int x=0;
14637 ; return 0; } 14645 ; return 0; }
14638 EOF 14646 EOF
14639 if { (eval echo configure:14640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14647 if { (eval echo configure:14648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14640 rm -rf conftest* 14648 rm -rf conftest*
14641 cc_produces_so=yes 14649 cc_produces_so=yes
14642 else 14650 else
14643 echo "configure: failed program was:" >&5 14651 echo "configure: failed program was:" >&5
14644 cat conftest.$ac_ext >&5 14652 cat conftest.$ac_ext >&5
14659 if test -z "$LTLD"; then 14667 if test -z "$LTLD"; then
14660 ac_prog=ld 14668 ac_prog=ld
14661 if test "$XEGCC" = yes; then 14669 if test "$XEGCC" = yes; then
14662 # Check if gcc -print-prog-name=ld gives a path. 14670 # Check if gcc -print-prog-name=ld gives a path.
14663 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 14671 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14664 echo "configure:14665: checking for ld used by GCC" >&5 14672 echo "configure:14673: checking for ld used by GCC" >&5
14665 ac_prog=`($CC -print-prog-name=ld) 2>&5` 14673 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14666 case "$ac_prog" in 14674 case "$ac_prog" in
14667 # Accept absolute paths. 14675 # Accept absolute paths.
14668 /*) 14676 /*)
14669 if test -z "$LTLD"; then 14677 if test -z "$LTLD"; then
14685 with_gnu_ld=unknown 14693 with_gnu_ld=unknown
14686 ;; 14694 ;;
14687 esac 14695 esac
14688 else 14696 else
14689 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 14697 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14690 echo "configure:14691: checking for GNU ld" >&5 14698 echo "configure:14699: checking for GNU ld" >&5
14691 fi 14699 fi
14692 14700
14693 if test -z "$LTLD"; then 14701 if test -z "$LTLD"; then
14694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 14702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14695 for ac_dir in $PATH; do 14703 for ac_dir in $PATH; do
14723 14731
14724 ld_dynamic_link_flags= 14732 ld_dynamic_link_flags=
14725 14733
14726 # Check to see if it really is or isn't GNU ld. 14734 # Check to see if it really is or isn't GNU ld.
14727 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 14735 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14728 echo "configure:14729: checking if the linker is GNU ld" >&5 14736 echo "configure:14737: checking if the linker is GNU ld" >&5
14729 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 14737 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14730 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 14738 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14731 xe_gnu_ld=yes 14739 xe_gnu_ld=yes
14732 else 14740 else
14733 xe_gnu_ld=no 14741 xe_gnu_ld=no
14751 ld_shlibs=yes 14759 ld_shlibs=yes
14752 else 14760 else
14753 # OK - only NOW do we futz about with ld. 14761 # OK - only NOW do we futz about with ld.
14754 # See if the linker supports building shared libraries. 14762 # See if the linker supports building shared libraries.
14755 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 14763 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14756 echo "configure:14757: checking whether the linker supports shared libraries" >&5 14764 echo "configure:14765: checking whether the linker supports shared libraries" >&5
14757 dll_ld=$CC 14765 dll_ld=$CC
14758 dll_ldflags=$LDFLAGS 14766 dll_ldflags=$LDFLAGS
14759 ld_shlibs=yes 14767 ld_shlibs=yes
14760 can_build_shared=yes 14768 can_build_shared=yes
14761 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 14769 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14962 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 14970 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14963 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 14971 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14964 for ac_func in dlerror _dlerror 14972 for ac_func in dlerror _dlerror
14965 do 14973 do
14966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14967 echo "configure:14968: checking for $ac_func" >&5 14975 echo "configure:14976: checking for $ac_func" >&5
14968 14976
14969 cat > conftest.$ac_ext <<EOF 14977 cat > conftest.$ac_ext <<EOF
14970 #line 14971 "configure" 14978 #line 14979 "configure"
14971 #include "confdefs.h" 14979 #include "confdefs.h"
14972 /* System header to define __stub macros and hopefully few prototypes, 14980 /* System header to define __stub macros and hopefully few prototypes,
14973 which can conflict with char $ac_func(); below. */ 14981 which can conflict with char $ac_func(); below. */
14974 #include <assert.h> 14982 #include <assert.h>
14975 /* Override any gcc2 internal prototype to avoid an error. */ 14983 /* Override any gcc2 internal prototype to avoid an error. */
14988 $ac_func(); 14996 $ac_func();
14989 #endif 14997 #endif
14990 14998
14991 ; return 0; } 14999 ; return 0; }
14992 EOF 15000 EOF
14993 if { (eval echo configure:14994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15001 if { (eval echo configure:15002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14994 rm -rf conftest* 15002 rm -rf conftest*
14995 eval "ac_cv_func_$ac_func=yes" 15003 eval "ac_cv_func_$ac_func=yes"
14996 else 15004 else
14997 echo "configure: failed program was:" >&5 15005 echo "configure: failed program was:" >&5
14998 cat conftest.$ac_ext >&5 15006 cat conftest.$ac_ext >&5
15048 15056
15049 15057
15050 15058
15051 15059
15052 echo "checking for LDAP" 1>&6 15060 echo "checking for LDAP" 1>&6
15053 echo "configure:15054: checking for LDAP" >&5 15061 echo "configure:15062: checking for LDAP" >&5
15054 ldap_libs= 15062 ldap_libs=
15055 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 15063 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
15056 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 15064 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
15057 echo "configure:15058: checking for ldap.h" >&5 15065 echo "configure:15066: checking for ldap.h" >&5
15058 15066
15059 cat > conftest.$ac_ext <<EOF 15067 cat > conftest.$ac_ext <<EOF
15060 #line 15061 "configure" 15068 #line 15069 "configure"
15061 #include "confdefs.h" 15069 #include "confdefs.h"
15062 #include <ldap.h> 15070 #include <ldap.h>
15063 EOF 15071 EOF
15064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15065 { (eval echo configure:15066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15073 { (eval echo configure:15074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15067 if test -z "$ac_err"; then 15075 if test -z "$ac_err"; then
15068 rm -rf conftest* 15076 rm -rf conftest*
15069 eval "ac_cv_header_$ac_safe=yes" 15077 eval "ac_cv_header_$ac_safe=yes"
15070 else 15078 else
15083 with_ldap=no 15091 with_ldap=no
15084 fi 15092 fi
15085 } 15093 }
15086 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 15094 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
15087 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 15095 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
15088 echo "configure:15089: checking for lber.h" >&5 15096 echo "configure:15097: checking for lber.h" >&5
15089 15097
15090 cat > conftest.$ac_ext <<EOF 15098 cat > conftest.$ac_ext <<EOF
15091 #line 15092 "configure" 15099 #line 15100 "configure"
15092 #include "confdefs.h" 15100 #include "confdefs.h"
15093 #include <lber.h> 15101 #include <lber.h>
15094 EOF 15102 EOF
15095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15096 { (eval echo configure:15097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15104 { (eval echo configure:15105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15098 if test -z "$ac_err"; then 15106 if test -z "$ac_err"; then
15099 rm -rf conftest* 15107 rm -rf conftest*
15100 eval "ac_cv_header_$ac_safe=yes" 15108 eval "ac_cv_header_$ac_safe=yes"
15101 else 15109 else
15115 fi 15123 fi
15116 } 15124 }
15117 if test "$with_ldap" != "no"; then 15125 if test "$with_ldap" != "no"; then
15118 15126
15119 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 15127 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
15120 echo "configure:15121: checking for ldap_search in -lldap" >&5 15128 echo "configure:15129: checking for ldap_search in -lldap" >&5
15121 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 15129 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
15122 15130
15123 xe_check_libs=" -lldap " 15131 xe_check_libs=" -lldap "
15124 cat > conftest.$ac_ext <<EOF 15132 cat > conftest.$ac_ext <<EOF
15125 #line 15126 "configure" 15133 #line 15134 "configure"
15126 #include "confdefs.h" 15134 #include "confdefs.h"
15127 /* Override any gcc2 internal prototype to avoid an error. */ 15135 /* Override any gcc2 internal prototype to avoid an error. */
15128 /* We use char because int might match the return type of a gcc2 15136 /* We use char because int might match the return type of a gcc2
15129 builtin and then its argument prototype would still apply. */ 15137 builtin and then its argument prototype would still apply. */
15130 char ldap_search(); 15138 char ldap_search();
15131 15139
15132 int main() { 15140 int main() {
15133 ldap_search() 15141 ldap_search()
15134 ; return 0; } 15142 ; return 0; }
15135 EOF 15143 EOF
15136 if { (eval echo configure:15137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15144 if { (eval echo configure:15145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15137 rm -rf conftest* 15145 rm -rf conftest*
15138 eval "ac_cv_lib_$ac_lib_var=yes" 15146 eval "ac_cv_lib_$ac_lib_var=yes"
15139 else 15147 else
15140 echo "configure: failed program was:" >&5 15148 echo "configure: failed program was:" >&5
15141 cat conftest.$ac_ext >&5 15149 cat conftest.$ac_ext >&5
15156 15164
15157 test "$with_ldap_nolber" = "no" && { 15165 test "$with_ldap_nolber" = "no" && {
15158 xe_msg_checking="for ldap_open in -lldap" 15166 xe_msg_checking="for ldap_open in -lldap"
15159 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 15167 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
15160 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 15168 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
15161 echo "configure:15162: checking "$xe_msg_checking"" >&5 15169 echo "configure:15170: checking "$xe_msg_checking"" >&5
15162 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 15170 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
15163 15171
15164 xe_check_libs=" -lldap -llber" 15172 xe_check_libs=" -lldap -llber"
15165 cat > conftest.$ac_ext <<EOF 15173 cat > conftest.$ac_ext <<EOF
15166 #line 15167 "configure" 15174 #line 15175 "configure"
15167 #include "confdefs.h" 15175 #include "confdefs.h"
15168 /* Override any gcc2 internal prototype to avoid an error. */ 15176 /* Override any gcc2 internal prototype to avoid an error. */
15169 /* We use char because int might match the return type of a gcc2 15177 /* We use char because int might match the return type of a gcc2
15170 builtin and then its argument prototype would still apply. */ 15178 builtin and then its argument prototype would still apply. */
15171 char ldap_open(); 15179 char ldap_open();
15172 15180
15173 int main() { 15181 int main() {
15174 ldap_open() 15182 ldap_open()
15175 ; return 0; } 15183 ; return 0; }
15176 EOF 15184 EOF
15177 if { (eval echo configure:15178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15185 if { (eval echo configure:15186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15178 rm -rf conftest* 15186 rm -rf conftest*
15179 eval "ac_cv_lib_$ac_lib_var=yes" 15187 eval "ac_cv_lib_$ac_lib_var=yes"
15180 else 15188 else
15181 echo "configure: failed program was:" >&5 15189 echo "configure: failed program was:" >&5
15182 cat conftest.$ac_ext >&5 15190 cat conftest.$ac_ext >&5
15197 } 15205 }
15198 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 15206 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
15199 xe_msg_checking="for ldap_open in -lldap" 15207 xe_msg_checking="for ldap_open in -lldap"
15200 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 15208 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
15201 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 15209 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
15202 echo "configure:15203: checking "$xe_msg_checking"" >&5 15210 echo "configure:15211: checking "$xe_msg_checking"" >&5
15203 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 15211 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
15204 15212
15205 xe_check_libs=" -lldap -llber -lkrb" 15213 xe_check_libs=" -lldap -llber -lkrb"
15206 cat > conftest.$ac_ext <<EOF 15214 cat > conftest.$ac_ext <<EOF
15207 #line 15208 "configure" 15215 #line 15216 "configure"
15208 #include "confdefs.h" 15216 #include "confdefs.h"
15209 /* Override any gcc2 internal prototype to avoid an error. */ 15217 /* Override any gcc2 internal prototype to avoid an error. */
15210 /* We use char because int might match the return type of a gcc2 15218 /* We use char because int might match the return type of a gcc2
15211 builtin and then its argument prototype would still apply. */ 15219 builtin and then its argument prototype would still apply. */
15212 char ldap_open(); 15220 char ldap_open();
15213 15221
15214 int main() { 15222 int main() {
15215 ldap_open() 15223 ldap_open()
15216 ; return 0; } 15224 ; return 0; }
15217 EOF 15225 EOF
15218 if { (eval echo configure:15219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15226 if { (eval echo configure:15227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15219 rm -rf conftest* 15227 rm -rf conftest*
15220 eval "ac_cv_lib_$ac_lib_var=yes" 15228 eval "ac_cv_lib_$ac_lib_var=yes"
15221 else 15229 else
15222 echo "configure: failed program was:" >&5 15230 echo "configure: failed program was:" >&5
15223 cat conftest.$ac_ext >&5 15231 cat conftest.$ac_ext >&5
15238 } 15246 }
15239 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 15247 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
15240 xe_msg_checking="for ldap_open in -lldap" 15248 xe_msg_checking="for ldap_open in -lldap"
15241 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 15249 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
15242 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 15250 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
15243 echo "configure:15244: checking "$xe_msg_checking"" >&5 15251 echo "configure:15252: checking "$xe_msg_checking"" >&5
15244 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 15252 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
15245 15253
15246 xe_check_libs=" -lldap -llber -lkrb -ldes" 15254 xe_check_libs=" -lldap -llber -lkrb -ldes"
15247 cat > conftest.$ac_ext <<EOF 15255 cat > conftest.$ac_ext <<EOF
15248 #line 15249 "configure" 15256 #line 15257 "configure"
15249 #include "confdefs.h" 15257 #include "confdefs.h"
15250 /* Override any gcc2 internal prototype to avoid an error. */ 15258 /* Override any gcc2 internal prototype to avoid an error. */
15251 /* We use char because int might match the return type of a gcc2 15259 /* We use char because int might match the return type of a gcc2
15252 builtin and then its argument prototype would still apply. */ 15260 builtin and then its argument prototype would still apply. */
15253 char ldap_open(); 15261 char ldap_open();
15254 15262
15255 int main() { 15263 int main() {
15256 ldap_open() 15264 ldap_open()
15257 ; return 0; } 15265 ; return 0; }
15258 EOF 15266 EOF
15259 if { (eval echo configure:15260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15267 if { (eval echo configure:15268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15260 rm -rf conftest* 15268 rm -rf conftest*
15261 eval "ac_cv_lib_$ac_lib_var=yes" 15269 eval "ac_cv_lib_$ac_lib_var=yes"
15262 else 15270 else
15263 echo "configure: failed program was:" >&5 15271 echo "configure: failed program was:" >&5
15264 cat conftest.$ac_ext >&5 15272 cat conftest.$ac_ext >&5
15303 fi 15311 fi
15304 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs" 15312 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
15305 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 15313 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
15306 do 15314 do
15307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15308 echo "configure:15309: checking for $ac_func" >&5 15316 echo "configure:15317: checking for $ac_func" >&5
15309 15317
15310 cat > conftest.$ac_ext <<EOF 15318 cat > conftest.$ac_ext <<EOF
15311 #line 15312 "configure" 15319 #line 15320 "configure"
15312 #include "confdefs.h" 15320 #include "confdefs.h"
15313 /* System header to define __stub macros and hopefully few prototypes, 15321 /* System header to define __stub macros and hopefully few prototypes,
15314 which can conflict with char $ac_func(); below. */ 15322 which can conflict with char $ac_func(); below. */
15315 #include <assert.h> 15323 #include <assert.h>
15316 /* Override any gcc2 internal prototype to avoid an error. */ 15324 /* Override any gcc2 internal prototype to avoid an error. */
15329 $ac_func(); 15337 $ac_func();
15330 #endif 15338 #endif
15331 15339
15332 ; return 0; } 15340 ; return 0; }
15333 EOF 15341 EOF
15334 if { (eval echo configure:15335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15342 if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15335 rm -rf conftest* 15343 rm -rf conftest*
15336 eval "ac_cv_func_$ac_func=yes" 15344 eval "ac_cv_func_$ac_func=yes"
15337 else 15345 else
15338 echo "configure: failed program was:" >&5 15346 echo "configure: failed program was:" >&5
15339 cat conftest.$ac_ext >&5 15347 cat conftest.$ac_ext >&5
15368 15376
15369 15377
15370 postgresql_libs= 15378 postgresql_libs=
15371 if test "$with_postgresql" != "no"; then 15379 if test "$with_postgresql" != "no"; then
15372 echo "checking for PostgreSQL" 1>&6 15380 echo "checking for PostgreSQL" 1>&6
15373 echo "configure:15374: checking for PostgreSQL" >&5 15381 echo "configure:15382: checking for PostgreSQL" >&5
15374 15382
15375 for header_dir in "" "pgsql/" "postgresql/"; do 15383 for header_dir in "" "pgsql/" "postgresql/"; do
15376 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` 15384 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
15377 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 15385 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
15378 echo "configure:15379: checking for ${header_dir}libpq-fe.h" >&5 15386 echo "configure:15387: checking for ${header_dir}libpq-fe.h" >&5
15379 15387
15380 cat > conftest.$ac_ext <<EOF 15388 cat > conftest.$ac_ext <<EOF
15381 #line 15382 "configure" 15389 #line 15390 "configure"
15382 #include "confdefs.h" 15390 #include "confdefs.h"
15383 #include <${header_dir}libpq-fe.h> 15391 #include <${header_dir}libpq-fe.h>
15384 EOF 15392 EOF
15385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15386 { (eval echo configure:15387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15394 { (eval echo configure:15395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15388 if test -z "$ac_err"; then 15396 if test -z "$ac_err"; then
15389 rm -rf conftest* 15397 rm -rf conftest*
15390 eval "ac_cv_header_$ac_safe=yes" 15398 eval "ac_cv_header_$ac_safe=yes"
15391 else 15399 else
15405 15413
15406 done 15414 done
15407 15415
15408 test -n "$libpq_fe_h_file" && { 15416 test -n "$libpq_fe_h_file" && {
15409 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 15417 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
15410 echo "configure:15411: checking for PQconnectdb in -lpq" >&5 15418 echo "configure:15419: checking for PQconnectdb in -lpq" >&5
15411 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` 15419 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
15412 15420
15413 xe_check_libs=" -lpq " 15421 xe_check_libs=" -lpq "
15414 cat > conftest.$ac_ext <<EOF 15422 cat > conftest.$ac_ext <<EOF
15415 #line 15416 "configure" 15423 #line 15424 "configure"
15416 #include "confdefs.h" 15424 #include "confdefs.h"
15417 /* Override any gcc2 internal prototype to avoid an error. */ 15425 /* Override any gcc2 internal prototype to avoid an error. */
15418 /* We use char because int might match the return type of a gcc2 15426 /* We use char because int might match the return type of a gcc2
15419 builtin and then its argument prototype would still apply. */ 15427 builtin and then its argument prototype would still apply. */
15420 char PQconnectdb(); 15428 char PQconnectdb();
15421 15429
15422 int main() { 15430 int main() {
15423 PQconnectdb() 15431 PQconnectdb()
15424 ; return 0; } 15432 ; return 0; }
15425 EOF 15433 EOF
15426 if { (eval echo configure:15427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15434 if { (eval echo configure:15435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15427 rm -rf conftest* 15435 rm -rf conftest*
15428 eval "ac_cv_lib_$ac_lib_var=yes" 15436 eval "ac_cv_lib_$ac_lib_var=yes"
15429 else 15437 else
15430 echo "configure: failed program was:" >&5 15438 echo "configure: failed program was:" >&5
15431 cat conftest.$ac_ext >&5 15439 cat conftest.$ac_ext >&5
15454 EOF 15462 EOF
15455 } 15463 }
15456 15464
15457 15465
15458 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 15466 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
15459 echo "configure:15460: checking for PQconnectStart in -lpq" >&5 15467 echo "configure:15468: checking for PQconnectStart in -lpq" >&5
15460 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` 15468 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
15461 15469
15462 xe_check_libs=" -lpq " 15470 xe_check_libs=" -lpq "
15463 cat > conftest.$ac_ext <<EOF 15471 cat > conftest.$ac_ext <<EOF
15464 #line 15465 "configure" 15472 #line 15473 "configure"
15465 #include "confdefs.h" 15473 #include "confdefs.h"
15466 /* Override any gcc2 internal prototype to avoid an error. */ 15474 /* Override any gcc2 internal prototype to avoid an error. */
15467 /* We use char because int might match the return type of a gcc2 15475 /* We use char because int might match the return type of a gcc2
15468 builtin and then its argument prototype would still apply. */ 15476 builtin and then its argument prototype would still apply. */
15469 char PQconnectStart(); 15477 char PQconnectStart();
15470 15478
15471 int main() { 15479 int main() {
15472 PQconnectStart() 15480 PQconnectStart()
15473 ; return 0; } 15481 ; return 0; }
15474 EOF 15482 EOF
15475 if { (eval echo configure:15476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15483 if { (eval echo configure:15484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15476 rm -rf conftest* 15484 rm -rf conftest*
15477 eval "ac_cv_lib_$ac_lib_var=yes" 15485 eval "ac_cv_lib_$ac_lib_var=yes"
15478 else 15486 else
15479 echo "configure: failed program was:" >&5 15487 echo "configure: failed program was:" >&5
15480 cat conftest.$ac_ext >&5 15488 cat conftest.$ac_ext >&5