comparison configure @ 38811:ee23b9f37f80

*** empty log message ***
author Gerd Moellmann <gerd@gnu.org>
date Tue, 14 Aug 2001 12:33:03 +0000
parents d12b4a1326c1
children 246f0728f1d7
comparison
equal deleted inserted replaced
38810:82db5ca03287 38811:ee23b9f37f80
1109 NON_GNU_CPP="cc -Xo -E -P" 1109 NON_GNU_CPP="cc -Xo -E -P"
1110 ;; 1110 ;;
1111 ## SR2001/SR2201 running HI-UX/MPP 1111 ## SR2001/SR2201 running HI-UX/MPP
1112 hppa1.1-hitachi-hiuxmpp* ) 1112 hppa1.1-hitachi-hiuxmpp* )
1113 machine=sr2k opsys=hiuxmpp 1113 machine=sr2k opsys=hiuxmpp
1114 ;;
1115 hppa1.1-hitachi-hiuxwe2* )
1116 machine=sr2k opsys=hiuxwe2
1114 ;; 1117 ;;
1115 ## Honeywell XPS100 1118 ## Honeywell XPS100
1116 xps*-honeywell-sysv* ) 1119 xps*-honeywell-sysv* )
1117 machine=xps100 opsys=usg5-2 1120 machine=xps100 opsys=usg5-2
1118 ;; 1121 ;;
1729 "yes" ) CC="gcc" GCC=yes ;; 1732 "yes" ) CC="gcc" GCC=yes ;;
1730 "no" ) : ${CC=cc} ;; 1733 "no" ) : ${CC=cc} ;;
1731 * ) # Extract the first word of "gcc", so it can be a program name with args. 1734 * ) # Extract the first word of "gcc", so it can be a program name with args.
1732 set dummy gcc; ac_word=$2 1735 set dummy gcc; ac_word=$2
1733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1734 echo "configure:1735: checking for $ac_word" >&5 1737 echo "configure:1738: checking for $ac_word" >&5
1735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1738 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6 1739 echo $ac_n "(cached) $ac_c" 1>&6
1737 else 1740 else
1738 if test -n "$CC"; then 1741 if test -n "$CC"; then
1739 ac_cv_prog_CC="$CC" # Let the user override the test. 1742 ac_cv_prog_CC="$CC" # Let the user override the test.
1759 1762
1760 if test -z "$CC"; then 1763 if test -z "$CC"; then
1761 # Extract the first word of "cc", so it can be a program name with args. 1764 # Extract the first word of "cc", so it can be a program name with args.
1762 set dummy cc; ac_word=$2 1765 set dummy cc; ac_word=$2
1763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1764 echo "configure:1765: checking for $ac_word" >&5 1767 echo "configure:1768: checking for $ac_word" >&5
1765 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1768 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6 1769 echo $ac_n "(cached) $ac_c" 1>&6
1767 else 1770 else
1768 if test -n "$CC"; then 1771 if test -n "$CC"; then
1769 ac_cv_prog_CC="$CC" # Let the user override the test. 1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1810 case "`uname -s`" in 1813 case "`uname -s`" in
1811 *win32* | *WIN32*) 1814 *win32* | *WIN32*)
1812 # Extract the first word of "cl", so it can be a program name with args. 1815 # Extract the first word of "cl", so it can be a program name with args.
1813 set dummy cl; ac_word=$2 1816 set dummy cl; ac_word=$2
1814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_word" >&5 1818 echo "configure:1819: checking for $ac_word" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1819 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6 1820 echo $ac_n "(cached) $ac_c" 1>&6
1818 else 1821 else
1819 if test -n "$CC"; then 1822 if test -n "$CC"; then
1820 ac_cv_prog_CC="$CC" # Let the user override the test. 1823 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 fi 1845 fi
1843 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1846 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1844 fi 1847 fi
1845 1848
1846 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1849 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1847 echo "configure:1848: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1850 echo "configure:1851: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1848 1851
1849 ac_ext=c 1852 ac_ext=c
1850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1851 ac_cpp='$CPP $CPPFLAGS' 1854 ac_cpp='$CPP $CPPFLAGS'
1852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1854 cross_compiling=$ac_cv_prog_cc_cross 1857 cross_compiling=$ac_cv_prog_cc_cross
1855 1858
1856 cat > conftest.$ac_ext << EOF 1859 cat > conftest.$ac_ext << EOF
1857 1860
1858 #line 1859 "configure" 1861 #line 1862 "configure"
1859 #include "confdefs.h" 1862 #include "confdefs.h"
1860 1863
1861 main(){return(0);} 1864 main(){return(0);}
1862 EOF 1865 EOF
1863 if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1866 if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1864 ac_cv_prog_cc_works=yes 1867 ac_cv_prog_cc_works=yes
1865 # If we can't run a trivial program, we are probably using a cross compiler. 1868 # If we can't run a trivial program, we are probably using a cross compiler.
1866 if (./conftest; exit) 2>/dev/null; then 1869 if (./conftest; exit) 2>/dev/null; then
1867 ac_cv_prog_cc_cross=no 1870 ac_cv_prog_cc_cross=no
1868 else 1871 else
1884 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1887 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1885 if test $ac_cv_prog_cc_works = no; then 1888 if test $ac_cv_prog_cc_works = no; then
1886 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1889 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1887 fi 1890 fi
1888 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1891 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1889 echo "configure:1890: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1892 echo "configure:1893: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1890 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1893 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1891 cross_compiling=$ac_cv_prog_cc_cross 1894 cross_compiling=$ac_cv_prog_cc_cross
1892 1895
1893 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1896 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1894 echo "configure:1895: checking whether we are using GNU C" >&5 1897 echo "configure:1898: checking whether we are using GNU C" >&5
1895 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1898 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6 1899 echo $ac_n "(cached) $ac_c" 1>&6
1897 else 1900 else
1898 cat > conftest.c <<EOF 1901 cat > conftest.c <<EOF
1899 #ifdef __GNUC__ 1902 #ifdef __GNUC__
1900 yes; 1903 yes;
1901 #endif 1904 #endif
1902 EOF 1905 EOF
1903 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1906 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1904 ac_cv_prog_gcc=yes 1907 ac_cv_prog_gcc=yes
1905 else 1908 else
1906 ac_cv_prog_gcc=no 1909 ac_cv_prog_gcc=no
1907 fi 1910 fi
1908 fi 1911 fi
1917 1920
1918 ac_test_CFLAGS="${CFLAGS+set}" 1921 ac_test_CFLAGS="${CFLAGS+set}"
1919 ac_save_CFLAGS="$CFLAGS" 1922 ac_save_CFLAGS="$CFLAGS"
1920 CFLAGS= 1923 CFLAGS=
1921 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1924 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1922 echo "configure:1923: checking whether ${CC-cc} accepts -g" >&5 1925 echo "configure:1926: checking whether ${CC-cc} accepts -g" >&5
1923 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1926 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6 1927 echo $ac_n "(cached) $ac_c" 1>&6
1925 else 1928 else
1926 echo 'void f(){}' > conftest.c 1929 echo 'void f(){}' > conftest.c
1927 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1930 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1997 #### Some other nice autoconf tests. If you add a test here which 2000 #### Some other nice autoconf tests. If you add a test here which
1998 #### should make an entry in src/config.h, don't forget to add an 2001 #### should make an entry in src/config.h, don't forget to add an
1999 #### #undef clause to src/config.h.in for autoconf to modify. 2002 #### #undef clause to src/config.h.in for autoconf to modify.
2000 2003
2001 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 2004 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2002 echo "configure:2003: checking whether ln -s works" >&5 2005 echo "configure:2006: checking whether ln -s works" >&5
2003 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 2006 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6 2007 echo $ac_n "(cached) $ac_c" 1>&6
2005 else 2008 else
2006 rm -f conftestdata 2009 rm -f conftestdata
2007 if ln -s X conftestdata 2>/dev/null 2010 if ln -s X conftestdata 2>/dev/null
2018 else 2021 else
2019 echo "$ac_t""no" 1>&6 2022 echo "$ac_t""no" 1>&6
2020 fi 2023 fi
2021 2024
2022 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2025 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2023 echo "configure:2024: checking how to run the C preprocessor" >&5 2026 echo "configure:2027: checking how to run the C preprocessor" >&5
2024 # On Suns, sometimes $CPP names a directory. 2027 # On Suns, sometimes $CPP names a directory.
2025 if test -n "$CPP" && test -d "$CPP"; then 2028 if test -n "$CPP" && test -d "$CPP"; then
2026 CPP= 2029 CPP=
2027 fi 2030 fi
2028 if test -z "$CPP"; then 2031 if test -z "$CPP"; then
2033 # substituted into the Makefile and "${CC-cc}" will confuse make. 2036 # substituted into the Makefile and "${CC-cc}" will confuse make.
2034 CPP="${CC-cc} -E" 2037 CPP="${CC-cc} -E"
2035 # On the NeXT, cc -E runs the code through the compiler's parser, 2038 # On the NeXT, cc -E runs the code through the compiler's parser,
2036 # not just through cpp. 2039 # not just through cpp.
2037 cat > conftest.$ac_ext <<EOF 2040 cat > conftest.$ac_ext <<EOF
2038 #line 2039 "configure" 2041 #line 2042 "configure"
2039 #include "confdefs.h" 2042 #include "confdefs.h"
2040 #include <assert.h> 2043 #include <assert.h>
2041 Syntax Error 2044 Syntax Error
2042 EOF 2045 EOF
2043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2044 { (eval echo configure:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2047 { (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2046 if test -z "$ac_err"; then 2049 if test -z "$ac_err"; then
2047 : 2050 :
2048 else 2051 else
2049 echo "$ac_err" >&5 2052 echo "$ac_err" >&5
2050 echo "configure: failed program was:" >&5 2053 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5 2054 cat conftest.$ac_ext >&5
2052 rm -rf conftest* 2055 rm -rf conftest*
2053 CPP="${CC-cc} -E -traditional-cpp" 2056 CPP="${CC-cc} -E -traditional-cpp"
2054 cat > conftest.$ac_ext <<EOF 2057 cat > conftest.$ac_ext <<EOF
2055 #line 2056 "configure" 2058 #line 2059 "configure"
2056 #include "confdefs.h" 2059 #include "confdefs.h"
2057 #include <assert.h> 2060 #include <assert.h>
2058 Syntax Error 2061 Syntax Error
2059 EOF 2062 EOF
2060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2061 { (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2064 { (eval echo configure:2065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2063 if test -z "$ac_err"; then 2066 if test -z "$ac_err"; then
2064 : 2067 :
2065 else 2068 else
2066 echo "$ac_err" >&5 2069 echo "$ac_err" >&5
2067 echo "configure: failed program was:" >&5 2070 echo "configure: failed program was:" >&5
2068 cat conftest.$ac_ext >&5 2071 cat conftest.$ac_ext >&5
2069 rm -rf conftest* 2072 rm -rf conftest*
2070 CPP="${CC-cc} -nologo -E" 2073 CPP="${CC-cc} -nologo -E"
2071 cat > conftest.$ac_ext <<EOF 2074 cat > conftest.$ac_ext <<EOF
2072 #line 2073 "configure" 2075 #line 2076 "configure"
2073 #include "confdefs.h" 2076 #include "confdefs.h"
2074 #include <assert.h> 2077 #include <assert.h>
2075 Syntax Error 2078 Syntax Error
2076 EOF 2079 EOF
2077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2078 { (eval echo configure:2079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2081 { (eval echo configure:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2080 if test -z "$ac_err"; then 2083 if test -z "$ac_err"; then
2081 : 2084 :
2082 else 2085 else
2083 echo "$ac_err" >&5 2086 echo "$ac_err" >&5
2109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2112 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2113 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2114 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2112 # ./install, which can be erroneously created by make from ./install.sh. 2115 # ./install, which can be erroneously created by make from ./install.sh.
2113 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2116 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2114 echo "configure:2115: checking for a BSD compatible install" >&5 2117 echo "configure:2118: checking for a BSD compatible install" >&5
2115 if test -z "$INSTALL"; then 2118 if test -z "$INSTALL"; then
2116 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2119 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6 2120 echo $ac_n "(cached) $ac_c" 1>&6
2118 else 2121 else
2119 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 2122 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2166 for ac_prog in 'bison -y' byacc 2169 for ac_prog in 'bison -y' byacc
2167 do 2170 do
2168 # Extract the first word of "$ac_prog", so it can be a program name with args. 2171 # Extract the first word of "$ac_prog", so it can be a program name with args.
2169 set dummy $ac_prog; ac_word=$2 2172 set dummy $ac_prog; ac_word=$2
2170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2171 echo "configure:2172: checking for $ac_word" >&5 2174 echo "configure:2175: checking for $ac_word" >&5
2172 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 2175 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6 2176 echo $ac_n "(cached) $ac_c" 1>&6
2174 else 2177 else
2175 if test -n "$YACC"; then 2178 if test -n "$YACC"; then
2176 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2179 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2200 2203
2201 if test "x$RANLIB" = x; then 2204 if test "x$RANLIB" = x; then
2202 # Extract the first word of "ranlib", so it can be a program name with args. 2205 # Extract the first word of "ranlib", so it can be a program name with args.
2203 set dummy ranlib; ac_word=$2 2206 set dummy ranlib; ac_word=$2
2204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2205 echo "configure:2206: checking for $ac_word" >&5 2208 echo "configure:2209: checking for $ac_word" >&5
2206 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2209 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6 2210 echo $ac_n "(cached) $ac_c" 1>&6
2208 else 2211 else
2209 if test -n "$RANLIB"; then 2212 if test -n "$RANLIB"; then
2210 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2230 fi 2233 fi
2231 2234
2232 fi 2235 fi
2233 2236
2234 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2237 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2235 echo "configure:2236: checking for AIX" >&5 2238 echo "configure:2239: checking for AIX" >&5
2236 cat > conftest.$ac_ext <<EOF 2239 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure" 2240 #line 2241 "configure"
2238 #include "confdefs.h" 2241 #include "confdefs.h"
2239 #ifdef _AIX 2242 #ifdef _AIX
2240 yes 2243 yes
2241 #endif 2244 #endif
2242 2245
2259 #### Extract some information from the operating system and machine files. 2262 #### Extract some information from the operating system and machine files.
2260 2263
2261 echo "checking the machine- and system-dependent files to find out 2264 echo "checking the machine- and system-dependent files to find out
2262 - which libraries the lib-src programs will want, and 2265 - which libraries the lib-src programs will want, and
2263 - whether the GNU malloc routines are usable" 1>&6 2266 - whether the GNU malloc routines are usable" 1>&6
2264 echo "configure:2265: checking the machine- and system-dependent files to find out 2267 echo "configure:2268: checking the machine- and system-dependent files to find out
2265 - which libraries the lib-src programs will want, and 2268 - which libraries the lib-src programs will want, and
2266 - whether the GNU malloc routines are usable" >&5 2269 - whether the GNU malloc routines are usable" >&5
2267 2270
2268 ### First figure out CFLAGS (which we use for running the compiler here) 2271 ### First figure out CFLAGS (which we use for running the compiler here)
2269 ### and REAL_CFLAGS (which we use for real compilation). 2272 ### and REAL_CFLAGS (which we use for real compilation).
2409 fi 2412 fi
2410 2413
2411 if test "$enable_largefile" != no; then 2414 if test "$enable_largefile" != no; then
2412 2415
2413 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 2416 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
2414 echo "configure:2415: checking for special C compiler options needed for large files" >&5 2417 echo "configure:2418: checking for special C compiler options needed for large files" >&5
2415 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then 2418 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
2416 echo $ac_n "(cached) $ac_c" 1>&6 2419 echo $ac_n "(cached) $ac_c" 1>&6
2417 else 2420 else
2418 ac_cv_sys_largefile_CC=no 2421 ac_cv_sys_largefile_CC=no
2419 if test "$GCC" != yes; then 2422 if test "$GCC" != yes; then
2420 # IRIX 6.2 and later do not support large files by default, 2423 # IRIX 6.2 and later do not support large files by default,
2421 # so use the C compiler's -n32 option if that helps. 2424 # so use the C compiler's -n32 option if that helps.
2422 cat > conftest.$ac_ext <<EOF 2425 cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure" 2426 #line 2427 "configure"
2424 #include "confdefs.h" 2427 #include "confdefs.h"
2425 #include <sys/types.h> 2428 #include <sys/types.h>
2426 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2429 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2427 2430
2428 int main() { 2431 int main() {
2429 2432
2430 ; return 0; } 2433 ; return 0; }
2431 EOF 2434 EOF
2432 if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2435 if { (eval echo configure:2436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2433 : 2436 :
2434 else 2437 else
2435 echo "configure: failed program was:" >&5 2438 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5 2439 cat conftest.$ac_ext >&5
2437 rm -rf conftest* 2440 rm -rf conftest*
2438 ac_save_CC="$CC" 2441 ac_save_CC="$CC"
2439 CC="$CC -n32" 2442 CC="$CC -n32"
2440 cat > conftest.$ac_ext <<EOF 2443 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure" 2444 #line 2445 "configure"
2442 #include "confdefs.h" 2445 #include "confdefs.h"
2443 #include <sys/types.h> 2446 #include <sys/types.h>
2444 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2447 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2445 2448
2446 int main() { 2449 int main() {
2447 2450
2448 ; return 0; } 2451 ; return 0; }
2449 EOF 2452 EOF
2450 if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2453 if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2451 rm -rf conftest* 2454 rm -rf conftest*
2452 ac_cv_sys_largefile_CC=' -n32' 2455 ac_cv_sys_largefile_CC=' -n32'
2453 else 2456 else
2454 echo "configure: failed program was:" >&5 2457 echo "configure: failed program was:" >&5
2455 cat conftest.$ac_ext >&5 2458 cat conftest.$ac_ext >&5
2465 if test "$ac_cv_sys_largefile_CC" != no; then 2468 if test "$ac_cv_sys_largefile_CC" != no; then
2466 CC="$CC$ac_cv_sys_largefile_CC" 2469 CC="$CC$ac_cv_sys_largefile_CC"
2467 fi 2470 fi
2468 2471
2469 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 2472 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
2470 echo "configure:2471: checking for _FILE_OFFSET_BITS value needed for large files" >&5 2473 echo "configure:2474: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2471 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then 2474 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6 2475 echo $ac_n "(cached) $ac_c" 1>&6
2473 else 2476 else
2474 ac_cv_sys_file_offset_bits=no 2477 ac_cv_sys_file_offset_bits=no
2475 cat > conftest.$ac_ext <<EOF 2478 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure" 2479 #line 2480 "configure"
2477 #include "confdefs.h" 2480 #include "confdefs.h"
2478 #include <sys/types.h> 2481 #include <sys/types.h>
2479 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2482 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2480 2483
2481 int main() { 2484 int main() {
2482 2485
2483 ; return 0; } 2486 ; return 0; }
2484 EOF 2487 EOF
2485 if { (eval echo configure:2486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2488 if { (eval echo configure:2489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2486 : 2489 :
2487 else 2490 else
2488 echo "configure: failed program was:" >&5 2491 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5 2492 cat conftest.$ac_ext >&5
2490 rm -rf conftest* 2493 rm -rf conftest*
2491 cat > conftest.$ac_ext <<EOF 2494 cat > conftest.$ac_ext <<EOF
2492 #line 2493 "configure" 2495 #line 2496 "configure"
2493 #include "confdefs.h" 2496 #include "confdefs.h"
2494 #define _FILE_OFFSET_BITS 64 2497 #define _FILE_OFFSET_BITS 64
2495 #include <sys/types.h> 2498 #include <sys/types.h>
2496 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2499 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2497 2500
2498 2501
2499 int main() { 2502 int main() {
2500 2503
2501 ; return 0; } 2504 ; return 0; }
2502 EOF 2505 EOF
2503 if { (eval echo configure:2504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2506 if { (eval echo configure:2507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2504 rm -rf conftest* 2507 rm -rf conftest*
2505 ac_cv_sys_file_offset_bits=64 2508 ac_cv_sys_file_offset_bits=64
2506 else 2509 else
2507 echo "configure: failed program was:" >&5 2510 echo "configure: failed program was:" >&5
2508 cat conftest.$ac_ext >&5 2511 cat conftest.$ac_ext >&5
2518 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 2521 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2519 EOF 2522 EOF
2520 2523
2521 fi 2524 fi
2522 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 2525 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
2523 echo "configure:2524: checking for _LARGE_FILES value needed for large files" >&5 2526 echo "configure:2527: checking for _LARGE_FILES value needed for large files" >&5
2524 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then 2527 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6 2528 echo $ac_n "(cached) $ac_c" 1>&6
2526 else 2529 else
2527 ac_cv_sys_large_files=no 2530 ac_cv_sys_large_files=no
2528 cat > conftest.$ac_ext <<EOF 2531 cat > conftest.$ac_ext <<EOF
2529 #line 2530 "configure" 2532 #line 2533 "configure"
2530 #include "confdefs.h" 2533 #include "confdefs.h"
2531 2534
2532 int main() { 2535 int main() {
2533 2536
2534 ; return 0; } 2537 ; return 0; }
2535 EOF 2538 EOF
2536 if { (eval echo configure:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2539 if { (eval echo configure:2540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2537 : 2540 :
2538 else 2541 else
2539 echo "configure: failed program was:" >&5 2542 echo "configure: failed program was:" >&5
2540 cat conftest.$ac_ext >&5 2543 cat conftest.$ac_ext >&5
2541 rm -rf conftest* 2544 rm -rf conftest*
2542 cat > conftest.$ac_ext <<EOF 2545 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure" 2546 #line 2547 "configure"
2544 #include "confdefs.h" 2547 #include "confdefs.h"
2545 #define _LARGE_FILES 1 2548 #define _LARGE_FILES 1
2546 2549
2547 2550
2548 int main() { 2551 int main() {
2549 2552
2550 ; return 0; } 2553 ; return 0; }
2551 EOF 2554 EOF
2552 if { (eval echo configure:2553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2555 if { (eval echo configure:2556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2553 rm -rf conftest* 2556 rm -rf conftest*
2554 ac_cv_sys_large_files=1 2557 ac_cv_sys_large_files=1
2555 else 2558 else
2556 echo "configure: failed program was:" >&5 2559 echo "configure: failed program was:" >&5
2557 cat conftest.$ac_ext >&5 2560 cat conftest.$ac_ext >&5
2574 # Sound support for GNU/Linux and the free BSDs. 2577 # Sound support for GNU/Linux and the free BSDs.
2575 for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h 2578 for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h
2576 do 2579 do
2577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_hdr" >&5 2582 echo "configure:2583: checking for $ac_hdr" >&5
2580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6 2584 echo $ac_n "(cached) $ac_c" 1>&6
2582 else 2585 else
2583 cat > conftest.$ac_ext <<EOF 2586 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure" 2587 #line 2588 "configure"
2585 #include "confdefs.h" 2588 #include "confdefs.h"
2586 #include <$ac_hdr> 2589 #include <$ac_hdr>
2587 EOF 2590 EOF
2588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589 { (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2592 { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2591 if test -z "$ac_err"; then 2594 if test -z "$ac_err"; then
2592 rm -rf conftest* 2595 rm -rf conftest*
2593 eval "ac_cv_header_$ac_safe=yes" 2596 eval "ac_cv_header_$ac_safe=yes"
2594 else 2597 else
2612 fi 2615 fi
2613 done 2616 done
2614 2617
2615 # Emulation library used on NetBSD. 2618 # Emulation library used on NetBSD.
2616 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 2619 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2617 echo "configure:2618: checking for _oss_ioctl in -lossaudio" >&5 2620 echo "configure:2621: checking for _oss_ioctl in -lossaudio" >&5
2618 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` 2621 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6 2623 echo $ac_n "(cached) $ac_c" 1>&6
2621 else 2624 else
2622 ac_save_LIBS="$LIBS" 2625 ac_save_LIBS="$LIBS"
2623 LIBS="-lossaudio $LIBS" 2626 LIBS="-lossaudio $LIBS"
2624 cat > conftest.$ac_ext <<EOF 2627 cat > conftest.$ac_ext <<EOF
2625 #line 2626 "configure" 2628 #line 2629 "configure"
2626 #include "confdefs.h" 2629 #include "confdefs.h"
2627 /* Override any gcc2 internal prototype to avoid an error. */ 2630 /* Override any gcc2 internal prototype to avoid an error. */
2628 /* We use char because int might match the return type of a gcc2 2631 /* We use char because int might match the return type of a gcc2
2629 builtin and then its argument prototype would still apply. */ 2632 builtin and then its argument prototype would still apply. */
2630 char _oss_ioctl(); 2633 char _oss_ioctl();
2631 2634
2632 int main() { 2635 int main() {
2633 _oss_ioctl() 2636 _oss_ioctl()
2634 ; return 0; } 2637 ; return 0; }
2635 EOF 2638 EOF
2636 if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2639 if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2637 rm -rf conftest* 2640 rm -rf conftest*
2638 eval "ac_cv_lib_$ac_lib_var=yes" 2641 eval "ac_cv_lib_$ac_lib_var=yes"
2639 else 2642 else
2640 echo "configure: failed program was:" >&5 2643 echo "configure: failed program was:" >&5
2641 cat conftest.$ac_ext >&5 2644 cat conftest.$ac_ext >&5
2660 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 2663 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
2661 termcap.h stdio_ext.h fcntl.h term.h strings.h 2664 termcap.h stdio_ext.h fcntl.h term.h strings.h
2662 do 2665 do
2663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2665 echo "configure:2666: checking for $ac_hdr" >&5 2668 echo "configure:2669: checking for $ac_hdr" >&5
2666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6 2670 echo $ac_n "(cached) $ac_c" 1>&6
2668 else 2671 else
2669 cat > conftest.$ac_ext <<EOF 2672 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure" 2673 #line 2674 "configure"
2671 #include "confdefs.h" 2674 #include "confdefs.h"
2672 #include <$ac_hdr> 2675 #include <$ac_hdr>
2673 EOF 2676 EOF
2674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2675 { (eval echo configure:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2678 { (eval echo configure:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2677 if test -z "$ac_err"; then 2680 if test -z "$ac_err"; then
2678 rm -rf conftest* 2681 rm -rf conftest*
2679 eval "ac_cv_header_$ac_safe=yes" 2682 eval "ac_cv_header_$ac_safe=yes"
2680 else 2683 else
2697 echo "$ac_t""no" 1>&6 2700 echo "$ac_t""no" 1>&6
2698 fi 2701 fi
2699 done 2702 done
2700 2703
2701 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2704 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2702 echo "configure:2703: checking for ANSI C header files" >&5 2705 echo "configure:2706: checking for ANSI C header files" >&5
2703 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2706 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6 2707 echo $ac_n "(cached) $ac_c" 1>&6
2705 else 2708 else
2706 cat > conftest.$ac_ext <<EOF 2709 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure" 2710 #line 2711 "configure"
2708 #include "confdefs.h" 2711 #include "confdefs.h"
2709 #include <stdlib.h> 2712 #include <stdlib.h>
2710 #include <stdarg.h> 2713 #include <stdarg.h>
2711 #include <string.h> 2714 #include <string.h>
2712 #include <float.h> 2715 #include <float.h>
2713 EOF 2716 EOF
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2718 { (eval echo configure:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then 2720 if test -z "$ac_err"; then
2718 rm -rf conftest* 2721 rm -rf conftest*
2719 ac_cv_header_stdc=yes 2722 ac_cv_header_stdc=yes
2720 else 2723 else
2727 rm -f conftest* 2730 rm -f conftest*
2728 2731
2729 if test $ac_cv_header_stdc = yes; then 2732 if test $ac_cv_header_stdc = yes; then
2730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2733 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2731 cat > conftest.$ac_ext <<EOF 2734 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure" 2735 #line 2736 "configure"
2733 #include "confdefs.h" 2736 #include "confdefs.h"
2734 #include <string.h> 2737 #include <string.h>
2735 EOF 2738 EOF
2736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2737 egrep "memchr" >/dev/null 2>&1; then 2740 egrep "memchr" >/dev/null 2>&1; then
2745 fi 2748 fi
2746 2749
2747 if test $ac_cv_header_stdc = yes; then 2750 if test $ac_cv_header_stdc = yes; then
2748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2749 cat > conftest.$ac_ext <<EOF 2752 cat > conftest.$ac_ext <<EOF
2750 #line 2751 "configure" 2753 #line 2754 "configure"
2751 #include "confdefs.h" 2754 #include "confdefs.h"
2752 #include <stdlib.h> 2755 #include <stdlib.h>
2753 EOF 2756 EOF
2754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2755 egrep "free" >/dev/null 2>&1; then 2758 egrep "free" >/dev/null 2>&1; then
2766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2767 if test "$cross_compiling" = yes; then 2770 if test "$cross_compiling" = yes; then
2768 : 2771 :
2769 else 2772 else
2770 cat > conftest.$ac_ext <<EOF 2773 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure" 2774 #line 2775 "configure"
2772 #include "confdefs.h" 2775 #include "confdefs.h"
2773 #include <ctype.h> 2776 #include <ctype.h>
2774 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2777 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2775 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2778 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2779 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2777 int main () { int i; for (i = 0; i < 256; i++) 2780 int main () { int i; for (i = 0; i < 256; i++)
2778 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2781 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2779 exit (0); } 2782 exit (0); }
2780 2783
2781 EOF 2784 EOF
2782 if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2785 if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2783 then 2786 then
2784 : 2787 :
2785 else 2788 else
2786 echo "configure: failed program was:" >&5 2789 echo "configure: failed program was:" >&5
2787 cat conftest.$ac_ext >&5 2790 cat conftest.$ac_ext >&5
2801 EOF 2804 EOF
2802 2805
2803 fi 2806 fi
2804 2807
2805 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2808 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2806 echo "configure:2807: checking whether time.h and sys/time.h may both be included" >&5 2809 echo "configure:2810: checking whether time.h and sys/time.h may both be included" >&5
2807 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2810 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6 2811 echo $ac_n "(cached) $ac_c" 1>&6
2809 else 2812 else
2810 cat > conftest.$ac_ext <<EOF 2813 cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure" 2814 #line 2815 "configure"
2812 #include "confdefs.h" 2815 #include "confdefs.h"
2813 #include <sys/types.h> 2816 #include <sys/types.h>
2814 #include <sys/time.h> 2817 #include <sys/time.h>
2815 #include <time.h> 2818 #include <time.h>
2816 int main() { 2819 int main() {
2817 struct tm *tp; 2820 struct tm *tp;
2818 ; return 0; } 2821 ; return 0; }
2819 EOF 2822 EOF
2820 if { (eval echo configure:2821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2823 if { (eval echo configure:2824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2821 rm -rf conftest* 2824 rm -rf conftest*
2822 ac_cv_header_time=yes 2825 ac_cv_header_time=yes
2823 else 2826 else
2824 echo "configure: failed program was:" >&5 2827 echo "configure: failed program was:" >&5
2825 cat conftest.$ac_ext >&5 2828 cat conftest.$ac_ext >&5
2836 EOF 2839 EOF
2837 2840
2838 fi 2841 fi
2839 2842
2840 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2843 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2841 echo "configure:2842: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2844 echo "configure:2845: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2842 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2845 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2843 echo $ac_n "(cached) $ac_c" 1>&6 2846 echo $ac_n "(cached) $ac_c" 1>&6
2844 else 2847 else
2845 cat > conftest.$ac_ext <<EOF 2848 cat > conftest.$ac_ext <<EOF
2846 #line 2847 "configure" 2849 #line 2850 "configure"
2847 #include "confdefs.h" 2850 #include "confdefs.h"
2848 #include <sys/types.h> 2851 #include <sys/types.h>
2849 #include <signal.h> 2852 #include <signal.h>
2850 /* NetBSD declares sys_siglist in unistd.h. */ 2853 /* NetBSD declares sys_siglist in unistd.h. */
2851 #ifdef HAVE_UNISTD_H 2854 #ifdef HAVE_UNISTD_H
2853 #endif 2856 #endif
2854 int main() { 2857 int main() {
2855 char *msg = *(sys_siglist + 1); 2858 char *msg = *(sys_siglist + 1);
2856 ; return 0; } 2859 ; return 0; }
2857 EOF 2860 EOF
2858 if { (eval echo configure:2859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2861 if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2859 rm -rf conftest* 2862 rm -rf conftest*
2860 ac_cv_decl_sys_siglist=yes 2863 ac_cv_decl_sys_siglist=yes
2861 else 2864 else
2862 echo "configure: failed program was:" >&5 2865 echo "configure: failed program was:" >&5
2863 cat conftest.$ac_ext >&5 2866 cat conftest.$ac_ext >&5
2874 EOF 2877 EOF
2875 2878
2876 fi 2879 fi
2877 2880
2878 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2881 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2879 echo "configure:2880: checking for sys/wait.h that is POSIX.1 compatible" >&5 2882 echo "configure:2883: checking for sys/wait.h that is POSIX.1 compatible" >&5
2880 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 2883 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6 2884 echo $ac_n "(cached) $ac_c" 1>&6
2882 else 2885 else
2883 cat > conftest.$ac_ext <<EOF 2886 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure" 2887 #line 2888 "configure"
2885 #include "confdefs.h" 2888 #include "confdefs.h"
2886 #include <sys/types.h> 2889 #include <sys/types.h>
2887 #include <sys/wait.h> 2890 #include <sys/wait.h>
2888 #ifndef WEXITSTATUS 2891 #ifndef WEXITSTATUS
2889 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2892 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2895 int s; 2898 int s;
2896 wait (&s); 2899 wait (&s);
2897 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2900 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2898 ; return 0; } 2901 ; return 0; }
2899 EOF 2902 EOF
2900 if { (eval echo configure:2901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2903 if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2901 rm -rf conftest* 2904 rm -rf conftest*
2902 ac_cv_header_sys_wait_h=yes 2905 ac_cv_header_sys_wait_h=yes
2903 else 2906 else
2904 echo "configure: failed program was:" >&5 2907 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5 2908 cat conftest.$ac_ext >&5
2917 2920
2918 fi 2921 fi
2919 2922
2920 2923
2921 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2924 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2922 echo "configure:2923: checking for struct utimbuf" >&5 2925 echo "configure:2926: checking for struct utimbuf" >&5
2923 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 2926 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6 2927 echo $ac_n "(cached) $ac_c" 1>&6
2925 else 2928 else
2926 cat > conftest.$ac_ext <<EOF 2929 cat > conftest.$ac_ext <<EOF
2927 #line 2928 "configure" 2930 #line 2931 "configure"
2928 #include "confdefs.h" 2931 #include "confdefs.h"
2929 #ifdef TIME_WITH_SYS_TIME 2932 #ifdef TIME_WITH_SYS_TIME
2930 #include <sys/time.h> 2933 #include <sys/time.h>
2931 #include <time.h> 2934 #include <time.h>
2932 #else 2935 #else
2941 #endif 2944 #endif
2942 int main() { 2945 int main() {
2943 static struct utimbuf x; x.actime = x.modtime; 2946 static struct utimbuf x; x.actime = x.modtime;
2944 ; return 0; } 2947 ; return 0; }
2945 EOF 2948 EOF
2946 if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2949 if { (eval echo configure:2950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2947 rm -rf conftest* 2950 rm -rf conftest*
2948 emacs_cv_struct_utimbuf=yes 2951 emacs_cv_struct_utimbuf=yes
2949 else 2952 else
2950 echo "configure: failed program was:" >&5 2953 echo "configure: failed program was:" >&5
2951 cat conftest.$ac_ext >&5 2954 cat conftest.$ac_ext >&5
2962 EOF 2965 EOF
2963 2966
2964 fi 2967 fi
2965 2968
2966 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2969 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2967 echo "configure:2968: checking return type of signal handlers" >&5 2970 echo "configure:2971: checking return type of signal handlers" >&5
2968 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2971 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6 2972 echo $ac_n "(cached) $ac_c" 1>&6
2970 else 2973 else
2971 cat > conftest.$ac_ext <<EOF 2974 cat > conftest.$ac_ext <<EOF
2972 #line 2973 "configure" 2975 #line 2976 "configure"
2973 #include "confdefs.h" 2976 #include "confdefs.h"
2974 #include <sys/types.h> 2977 #include <sys/types.h>
2975 #include <signal.h> 2978 #include <signal.h>
2976 #ifdef signal 2979 #ifdef signal
2977 #undef signal 2980 #undef signal
2984 2987
2985 int main() { 2988 int main() {
2986 int i; 2989 int i;
2987 ; return 0; } 2990 ; return 0; }
2988 EOF 2991 EOF
2989 if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2992 if { (eval echo configure:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2990 rm -rf conftest* 2993 rm -rf conftest*
2991 ac_cv_type_signal=void 2994 ac_cv_type_signal=void
2992 else 2995 else
2993 echo "configure: failed program was:" >&5 2996 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5 2997 cat conftest.$ac_ext >&5
3004 EOF 3007 EOF
3005 3008
3006 3009
3007 3010
3008 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 3011 echo $ac_n "checking for speed_t""... $ac_c" 1>&6
3009 echo "configure:3010: checking for speed_t" >&5 3012 echo "configure:3013: checking for speed_t" >&5
3010 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then 3013 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6 3014 echo $ac_n "(cached) $ac_c" 1>&6
3012 else 3015 else
3013 cat > conftest.$ac_ext <<EOF 3016 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure" 3017 #line 3018 "configure"
3015 #include "confdefs.h" 3018 #include "confdefs.h"
3016 #include <termios.h> 3019 #include <termios.h>
3017 int main() { 3020 int main() {
3018 speed_t x = 1; 3021 speed_t x = 1;
3019 ; return 0; } 3022 ; return 0; }
3020 EOF 3023 EOF
3021 if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3024 if { (eval echo configure:3025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3022 rm -rf conftest* 3025 rm -rf conftest*
3023 emacs_cv_speed_t=yes 3026 emacs_cv_speed_t=yes
3024 else 3027 else
3025 echo "configure: failed program was:" >&5 3028 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5 3029 cat conftest.$ac_ext >&5
3035 EOF 3038 EOF
3036 3039
3037 fi 3040 fi
3038 3041
3039 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3042 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3040 echo "configure:3041: checking for struct timeval" >&5 3043 echo "configure:3044: checking for struct timeval" >&5
3041 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 3044 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6 3045 echo $ac_n "(cached) $ac_c" 1>&6
3043 else 3046 else
3044 cat > conftest.$ac_ext <<EOF 3047 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure" 3048 #line 3049 "configure"
3046 #include "confdefs.h" 3049 #include "confdefs.h"
3047 #ifdef TIME_WITH_SYS_TIME 3050 #ifdef TIME_WITH_SYS_TIME
3048 #include <sys/time.h> 3051 #include <sys/time.h>
3049 #include <time.h> 3052 #include <time.h>
3050 #else 3053 #else
3056 #endif 3059 #endif
3057 int main() { 3060 int main() {
3058 static struct timeval x; x.tv_sec = x.tv_usec; 3061 static struct timeval x; x.tv_sec = x.tv_usec;
3059 ; return 0; } 3062 ; return 0; }
3060 EOF 3063 EOF
3061 if { (eval echo configure:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3064 if { (eval echo configure:3065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3062 rm -rf conftest* 3065 rm -rf conftest*
3063 emacs_cv_struct_timeval=yes 3066 emacs_cv_struct_timeval=yes
3064 else 3067 else
3065 echo "configure: failed program was:" >&5 3068 echo "configure: failed program was:" >&5
3066 cat conftest.$ac_ext >&5 3069 cat conftest.$ac_ext >&5
3078 EOF 3081 EOF
3079 3082
3080 fi 3083 fi
3081 3084
3082 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 3085 echo $ac_n "checking for struct exception""... $ac_c" 1>&6
3083 echo "configure:3084: checking for struct exception" >&5 3086 echo "configure:3087: checking for struct exception" >&5
3084 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then 3087 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6 3088 echo $ac_n "(cached) $ac_c" 1>&6
3086 else 3089 else
3087 cat > conftest.$ac_ext <<EOF 3090 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure" 3091 #line 3092 "configure"
3089 #include "confdefs.h" 3092 #include "confdefs.h"
3090 #include <math.h> 3093 #include <math.h>
3091 int main() { 3094 int main() {
3092 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; 3095 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
3093 ; return 0; } 3096 ; return 0; }
3094 EOF 3097 EOF
3095 if { (eval echo configure:3096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3098 if { (eval echo configure:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3096 rm -rf conftest* 3099 rm -rf conftest*
3097 emacs_cv_struct_exception=yes 3100 emacs_cv_struct_exception=yes
3098 else 3101 else
3099 echo "configure: failed program was:" >&5 3102 echo "configure: failed program was:" >&5
3100 cat conftest.$ac_ext >&5 3103 cat conftest.$ac_ext >&5
3112 EOF 3115 EOF
3113 3116
3114 fi 3117 fi
3115 3118
3116 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3119 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3117 echo "configure:3118: checking whether struct tm is in sys/time.h or time.h" >&5 3120 echo "configure:3121: checking whether struct tm is in sys/time.h or time.h" >&5
3118 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 3121 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6 3122 echo $ac_n "(cached) $ac_c" 1>&6
3120 else 3123 else
3121 cat > conftest.$ac_ext <<EOF 3124 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure" 3125 #line 3126 "configure"
3123 #include "confdefs.h" 3126 #include "confdefs.h"
3124 #include <sys/types.h> 3127 #include <sys/types.h>
3125 #include <time.h> 3128 #include <time.h>
3126 int main() { 3129 int main() {
3127 struct tm *tp; tp->tm_sec; 3130 struct tm *tp; tp->tm_sec;
3128 ; return 0; } 3131 ; return 0; }
3129 EOF 3132 EOF
3130 if { (eval echo configure:3131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3133 if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3131 rm -rf conftest* 3134 rm -rf conftest*
3132 ac_cv_struct_tm=time.h 3135 ac_cv_struct_tm=time.h
3133 else 3136 else
3134 echo "configure: failed program was:" >&5 3137 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5 3138 cat conftest.$ac_ext >&5
3146 EOF 3149 EOF
3147 3150
3148 fi 3151 fi
3149 3152
3150 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3153 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3151 echo "configure:3152: checking for tm_zone in struct tm" >&5 3154 echo "configure:3155: checking for tm_zone in struct tm" >&5
3152 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 3155 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6 3156 echo $ac_n "(cached) $ac_c" 1>&6
3154 else 3157 else
3155 cat > conftest.$ac_ext <<EOF 3158 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure" 3159 #line 3160 "configure"
3157 #include "confdefs.h" 3160 #include "confdefs.h"
3158 #include <sys/types.h> 3161 #include <sys/types.h>
3159 #include <$ac_cv_struct_tm> 3162 #include <$ac_cv_struct_tm>
3160 int main() { 3163 int main() {
3161 struct tm tm; tm.tm_zone; 3164 struct tm tm; tm.tm_zone;
3162 ; return 0; } 3165 ; return 0; }
3163 EOF 3166 EOF
3164 if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3167 if { (eval echo configure:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3165 rm -rf conftest* 3168 rm -rf conftest*
3166 ac_cv_struct_tm_zone=yes 3169 ac_cv_struct_tm_zone=yes
3167 else 3170 else
3168 echo "configure: failed program was:" >&5 3171 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5 3172 cat conftest.$ac_ext >&5
3179 #define HAVE_TM_ZONE 1 3182 #define HAVE_TM_ZONE 1
3180 EOF 3183 EOF
3181 3184
3182 else 3185 else
3183 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3186 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3184 echo "configure:3185: checking for tzname" >&5 3187 echo "configure:3188: checking for tzname" >&5
3185 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 3188 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6 3189 echo $ac_n "(cached) $ac_c" 1>&6
3187 else 3190 else
3188 cat > conftest.$ac_ext <<EOF 3191 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure" 3192 #line 3193 "configure"
3190 #include "confdefs.h" 3193 #include "confdefs.h"
3191 #include <time.h> 3194 #include <time.h>
3192 #ifndef tzname /* For SGI. */ 3195 #ifndef tzname /* For SGI. */
3193 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3196 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3194 #endif 3197 #endif
3195 int main() { 3198 int main() {
3196 atoi(*tzname); 3199 atoi(*tzname);
3197 ; return 0; } 3200 ; return 0; }
3198 EOF 3201 EOF
3199 if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3202 if { (eval echo configure:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3200 rm -rf conftest* 3203 rm -rf conftest*
3201 ac_cv_var_tzname=yes 3204 ac_cv_var_tzname=yes
3202 else 3205 else
3203 echo "configure: failed program was:" >&5 3206 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5 3207 cat conftest.$ac_ext >&5
3216 3219
3217 fi 3220 fi
3218 fi 3221 fi
3219 3222
3220 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 3223 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3221 echo "configure:3222: checking for tm_gmtoff in struct tm" >&5 3224 echo "configure:3225: checking for tm_gmtoff in struct tm" >&5
3222 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 3225 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6 3226 echo $ac_n "(cached) $ac_c" 1>&6
3224 else 3227 else
3225 cat > conftest.$ac_ext <<EOF 3228 cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure" 3229 #line 3230 "configure"
3227 #include "confdefs.h" 3230 #include "confdefs.h"
3228 #include <time.h> 3231 #include <time.h>
3229 int main() { 3232 int main() {
3230 struct tm t; t.tm_gmtoff = 0 3233 struct tm t; t.tm_gmtoff = 0
3231 ; return 0; } 3234 ; return 0; }
3232 EOF 3235 EOF
3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3236 if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3234 rm -rf conftest* 3237 rm -rf conftest*
3235 emacs_cv_tm_gmtoff=yes 3238 emacs_cv_tm_gmtoff=yes
3236 else 3239 else
3237 echo "configure: failed program was:" >&5 3240 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5 3241 cat conftest.$ac_ext >&5
3250 3253
3251 fi 3254 fi
3252 3255
3253 3256
3254 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 3257 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3255 echo "configure:3256: checking for ${CC-cc} option to accept ANSI C" >&5 3258 echo "configure:3259: checking for ${CC-cc} option to accept ANSI C" >&5
3256 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then 3259 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6 3260 echo $ac_n "(cached) $ac_c" 1>&6
3258 else 3261 else
3259 ac_cv_prog_cc_stdc=no 3262 ac_cv_prog_cc_stdc=no
3260 ac_save_CC="$CC" 3263 ac_save_CC="$CC"
3267 # SVR4 -Xc -D__EXTENSIONS__ 3270 # SVR4 -Xc -D__EXTENSIONS__
3268 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3271 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3269 do 3272 do
3270 CC="$ac_save_CC $ac_arg" 3273 CC="$ac_save_CC $ac_arg"
3271 cat > conftest.$ac_ext <<EOF 3274 cat > conftest.$ac_ext <<EOF
3272 #line 3273 "configure" 3275 #line 3276 "configure"
3273 #include "confdefs.h" 3276 #include "confdefs.h"
3274 #include <stdarg.h> 3277 #include <stdarg.h>
3275 #include <stdio.h> 3278 #include <stdio.h>
3276 #include <sys/types.h> 3279 #include <sys/types.h>
3277 #include <sys/stat.h> 3280 #include <sys/stat.h>
3301 char **argv; 3304 char **argv;
3302 int main() { 3305 int main() {
3303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3306 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3304 ; return 0; } 3307 ; return 0; }
3305 EOF 3308 EOF
3306 if { (eval echo configure:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3309 if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3307 rm -rf conftest* 3310 rm -rf conftest*
3308 ac_cv_prog_cc_stdc="$ac_arg"; break 3311 ac_cv_prog_cc_stdc="$ac_arg"; break
3309 else 3312 else
3310 echo "configure: failed program was:" >&5 3313 echo "configure: failed program was:" >&5
3311 cat conftest.$ac_ext >&5 3314 cat conftest.$ac_ext >&5
3323 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 3326 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
3324 CC="$CC $ac_cv_prog_cc_stdc" ;; 3327 CC="$CC $ac_cv_prog_cc_stdc" ;;
3325 esac 3328 esac
3326 3329
3327 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 3330 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
3328 echo "configure:3329: checking for function prototypes" >&5 3331 echo "configure:3332: checking for function prototypes" >&5
3329 if test "$ac_cv_prog_cc_stdc" != no; then 3332 if test "$ac_cv_prog_cc_stdc" != no; then
3330 echo "$ac_t""yes" 1>&6 3333 echo "$ac_t""yes" 1>&6
3331 cat >> confdefs.h <<\EOF 3334 cat >> confdefs.h <<\EOF
3332 #define PROTOTYPES 1 3335 #define PROTOTYPES 1
3333 EOF 3336 EOF
3335 else 3338 else
3336 echo "$ac_t""no" 1>&6 3339 echo "$ac_t""no" 1>&6
3337 fi 3340 fi
3338 3341
3339 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 3342 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
3340 echo "configure:3341: checking for working volatile" >&5 3343 echo "configure:3344: checking for working volatile" >&5
3341 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then 3344 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6 3345 echo $ac_n "(cached) $ac_c" 1>&6
3343 else 3346 else
3344 cat > conftest.$ac_ext <<EOF 3347 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure" 3348 #line 3349 "configure"
3346 #include "confdefs.h" 3349 #include "confdefs.h"
3347 3350
3348 int main() { 3351 int main() {
3349 3352
3350 volatile int x; 3353 volatile int x;
3351 int * volatile y; 3354 int * volatile y;
3352 ; return 0; } 3355 ; return 0; }
3353 EOF 3356 EOF
3354 if { (eval echo configure:3355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3357 if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3355 rm -rf conftest* 3358 rm -rf conftest*
3356 ac_cv_c_volatile=yes 3359 ac_cv_c_volatile=yes
3357 else 3360 else
3358 echo "configure: failed program was:" >&5 3361 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5 3362 cat conftest.$ac_ext >&5
3370 EOF 3373 EOF
3371 3374
3372 fi 3375 fi
3373 3376
3374 echo $ac_n "checking for working const""... $ac_c" 1>&6 3377 echo $ac_n "checking for working const""... $ac_c" 1>&6
3375 echo "configure:3376: checking for working const" >&5 3378 echo "configure:3379: checking for working const" >&5
3376 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 3379 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6 3380 echo $ac_n "(cached) $ac_c" 1>&6
3378 else 3381 else
3379 cat > conftest.$ac_ext <<EOF 3382 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure" 3383 #line 3384 "configure"
3381 #include "confdefs.h" 3384 #include "confdefs.h"
3382 3385
3383 int main() { 3386 int main() {
3384 3387
3385 /* Ultrix mips cc rejects this. */ 3388 /* Ultrix mips cc rejects this. */
3424 const int foo = 10; 3427 const int foo = 10;
3425 } 3428 }
3426 3429
3427 ; return 0; } 3430 ; return 0; }
3428 EOF 3431 EOF
3429 if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3432 if { (eval echo configure:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3430 rm -rf conftest* 3433 rm -rf conftest*
3431 ac_cv_c_const=yes 3434 ac_cv_c_const=yes
3432 else 3435 else
3433 echo "configure: failed program was:" >&5 3436 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5 3437 cat conftest.$ac_ext >&5
3445 EOF 3448 EOF
3446 3449
3447 fi 3450 fi
3448 3451
3449 echo $ac_n "checking for void * support""... $ac_c" 1>&6 3452 echo $ac_n "checking for void * support""... $ac_c" 1>&6
3450 echo "configure:3451: checking for void * support" >&5 3453 echo "configure:3454: checking for void * support" >&5
3451 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then 3454 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6 3455 echo $ac_n "(cached) $ac_c" 1>&6
3453 else 3456 else
3454 cat > conftest.$ac_ext <<EOF 3457 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure" 3458 #line 3459 "configure"
3456 #include "confdefs.h" 3459 #include "confdefs.h"
3457 3460
3458 int main() { 3461 int main() {
3459 void * foo; 3462 void * foo;
3460 ; return 0; } 3463 ; return 0; }
3461 EOF 3464 EOF
3462 if { (eval echo configure:3463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3465 if { (eval echo configure:3466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3463 rm -rf conftest* 3466 rm -rf conftest*
3464 emacs_cv_void_star=yes 3467 emacs_cv_void_star=yes
3465 else 3468 else
3466 echo "configure: failed program was:" >&5 3469 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5 3470 cat conftest.$ac_ext >&5
3483 EOF 3486 EOF
3484 3487
3485 fi 3488 fi
3486 3489
3487 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3490 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3488 echo "configure:3489: checking whether ${MAKE-make} sets \${MAKE}" >&5 3491 echo "configure:3492: checking whether ${MAKE-make} sets \${MAKE}" >&5
3489 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3492 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3490 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 3493 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6 3494 echo $ac_n "(cached) $ac_c" 1>&6
3492 else 3495 else
3493 cat > conftestmake <<\EOF 3496 cat > conftestmake <<\EOF
3511 SET_MAKE="MAKE=${MAKE-make}" 3514 SET_MAKE="MAKE=${MAKE-make}"
3512 fi 3515 fi
3513 3516
3514 3517
3515 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3518 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3516 echo "configure:3517: checking for long file names" >&5 3519 echo "configure:3520: checking for long file names" >&5
3517 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 3520 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6 3521 echo $ac_n "(cached) $ac_c" 1>&6
3519 else 3522 else
3520 ac_cv_sys_long_file_names=yes 3523 ac_cv_sys_long_file_names=yes
3521 # Test for long file names in all the places we know might matter: 3524 # Test for long file names in all the places we know might matter:
3562 # If we find X, set shell vars x_includes and x_libraries to the 3565 # If we find X, set shell vars x_includes and x_libraries to the
3563 # paths, otherwise set no_x=yes. 3566 # paths, otherwise set no_x=yes.
3564 # Uses ac_ vars as temps to allow command line to override cache and checks. 3567 # Uses ac_ vars as temps to allow command line to override cache and checks.
3565 # --without-x overrides everything else, but does not touch the cache. 3568 # --without-x overrides everything else, but does not touch the cache.
3566 echo $ac_n "checking for X""... $ac_c" 1>&6 3569 echo $ac_n "checking for X""... $ac_c" 1>&6
3567 echo "configure:3568: checking for X" >&5 3570 echo "configure:3571: checking for X" >&5
3568 3571
3569 # Check whether --with-x or --without-x was given. 3572 # Check whether --with-x or --without-x was given.
3570 if test "${with_x+set}" = set; then 3573 if test "${with_x+set}" = set; then
3571 withval="$with_x" 3574 withval="$with_x"
3572 : 3575 :
3624 # Guess where to find include files, by looking for this one X11 .h file. 3627 # Guess where to find include files, by looking for this one X11 .h file.
3625 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 3628 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3626 3629
3627 # First, try using that file with no special directory specified. 3630 # First, try using that file with no special directory specified.
3628 cat > conftest.$ac_ext <<EOF 3631 cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure" 3632 #line 3633 "configure"
3630 #include "confdefs.h" 3633 #include "confdefs.h"
3631 #include <$x_direct_test_include> 3634 #include <$x_direct_test_include>
3632 EOF 3635 EOF
3633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3634 { (eval echo configure:3635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3637 { (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3636 if test -z "$ac_err"; then 3639 if test -z "$ac_err"; then
3637 rm -rf conftest* 3640 rm -rf conftest*
3638 # We can compile using X headers with no special include directory. 3641 # We can compile using X headers with no special include directory.
3639 ac_x_includes= 3642 ac_x_includes=
3698 # See if we find them without any special options. 3701 # See if we find them without any special options.
3699 # Don't add to $LIBS permanently. 3702 # Don't add to $LIBS permanently.
3700 ac_save_LIBS="$LIBS" 3703 ac_save_LIBS="$LIBS"
3701 LIBS="-l$x_direct_test_library $LIBS" 3704 LIBS="-l$x_direct_test_library $LIBS"
3702 cat > conftest.$ac_ext <<EOF 3705 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure" 3706 #line 3707 "configure"
3704 #include "confdefs.h" 3707 #include "confdefs.h"
3705 3708
3706 int main() { 3709 int main() {
3707 ${x_direct_test_function}() 3710 ${x_direct_test_function}()
3708 ; return 0; } 3711 ; return 0; }
3709 EOF 3712 EOF
3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3713 if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3711 rm -rf conftest* 3714 rm -rf conftest*
3712 LIBS="$ac_save_LIBS" 3715 LIBS="$ac_save_LIBS"
3713 # We can link X programs with no special library path. 3716 # We can link X programs with no special library path.
3714 ac_x_libraries= 3717 ac_x_libraries=
3715 else 3718 else
3886 # Do the opsystem or machine files prohibit the use of the GNU malloc? 3889 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3887 # Assume not, until told otherwise. 3890 # Assume not, until told otherwise.
3888 GNU_MALLOC=yes 3891 GNU_MALLOC=yes
3889 doug_lea_malloc=yes 3892 doug_lea_malloc=yes
3890 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3893 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3891 echo "configure:3892: checking for malloc_get_state" >&5 3894 echo "configure:3895: checking for malloc_get_state" >&5
3892 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 3895 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6 3896 echo $ac_n "(cached) $ac_c" 1>&6
3894 else 3897 else
3895 cat > conftest.$ac_ext <<EOF 3898 cat > conftest.$ac_ext <<EOF
3896 #line 3897 "configure" 3899 #line 3900 "configure"
3897 #include "confdefs.h" 3900 #include "confdefs.h"
3898 /* System header to define __stub macros and hopefully few prototypes, 3901 /* System header to define __stub macros and hopefully few prototypes,
3899 which can conflict with char malloc_get_state(); below. */ 3902 which can conflict with char malloc_get_state(); below. */
3900 #include <assert.h> 3903 #include <assert.h>
3901 /* Override any gcc2 internal prototype to avoid an error. */ 3904 /* Override any gcc2 internal prototype to avoid an error. */
3914 malloc_get_state(); 3917 malloc_get_state();
3915 #endif 3918 #endif
3916 3919
3917 ; return 0; } 3920 ; return 0; }
3918 EOF 3921 EOF
3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3922 if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3920 rm -rf conftest* 3923 rm -rf conftest*
3921 eval "ac_cv_func_malloc_get_state=yes" 3924 eval "ac_cv_func_malloc_get_state=yes"
3922 else 3925 else
3923 echo "configure: failed program was:" >&5 3926 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5 3927 cat conftest.$ac_ext >&5
3935 echo "$ac_t""no" 1>&6 3938 echo "$ac_t""no" 1>&6
3936 doug_lea_malloc=no 3939 doug_lea_malloc=no
3937 fi 3940 fi
3938 3941
3939 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3942 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3940 echo "configure:3941: checking for malloc_set_state" >&5 3943 echo "configure:3944: checking for malloc_set_state" >&5
3941 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 3944 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6 3945 echo $ac_n "(cached) $ac_c" 1>&6
3943 else 3946 else
3944 cat > conftest.$ac_ext <<EOF 3947 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure" 3948 #line 3949 "configure"
3946 #include "confdefs.h" 3949 #include "confdefs.h"
3947 /* System header to define __stub macros and hopefully few prototypes, 3950 /* System header to define __stub macros and hopefully few prototypes,
3948 which can conflict with char malloc_set_state(); below. */ 3951 which can conflict with char malloc_set_state(); below. */
3949 #include <assert.h> 3952 #include <assert.h>
3950 /* Override any gcc2 internal prototype to avoid an error. */ 3953 /* Override any gcc2 internal prototype to avoid an error. */
3963 malloc_set_state(); 3966 malloc_set_state();
3964 #endif 3967 #endif
3965 3968
3966 ; return 0; } 3969 ; return 0; }
3967 EOF 3970 EOF
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3969 rm -rf conftest* 3972 rm -rf conftest*
3970 eval "ac_cv_func_malloc_set_state=yes" 3973 eval "ac_cv_func_malloc_set_state=yes"
3971 else 3974 else
3972 echo "configure: failed program was:" >&5 3975 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5 3976 cat conftest.$ac_ext >&5
3984 echo "$ac_t""no" 1>&6 3987 echo "$ac_t""no" 1>&6
3985 doug_lea_malloc=no 3988 doug_lea_malloc=no
3986 fi 3989 fi
3987 3990
3988 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3991 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3989 echo "configure:3990: checking whether __after_morecore_hook exists" >&5 3992 echo "configure:3993: checking whether __after_morecore_hook exists" >&5
3990 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 3993 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6 3994 echo $ac_n "(cached) $ac_c" 1>&6
3992 else 3995 else
3993 cat > conftest.$ac_ext <<EOF 3996 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure" 3997 #line 3998 "configure"
3995 #include "confdefs.h" 3998 #include "confdefs.h"
3996 extern void (* __after_morecore_hook)(); 3999 extern void (* __after_morecore_hook)();
3997 int main() { 4000 int main() {
3998 __after_morecore_hook = 0 4001 __after_morecore_hook = 0
3999 ; return 0; } 4002 ; return 0; }
4000 EOF 4003 EOF
4001 if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4004 if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4002 rm -rf conftest* 4005 rm -rf conftest*
4003 emacs_cv_var___after_morecore_hook=yes 4006 emacs_cv_var___after_morecore_hook=yes
4004 else 4007 else
4005 echo "configure: failed program was:" >&5 4008 echo "configure: failed program was:" >&5
4006 cat conftest.$ac_ext >&5 4009 cat conftest.$ac_ext >&5
4037 4040
4038 for ac_hdr in stdlib.h unistd.h sys/stat.h 4041 for ac_hdr in stdlib.h unistd.h sys/stat.h
4039 do 4042 do
4040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4042 echo "configure:4043: checking for $ac_hdr" >&5 4045 echo "configure:4046: checking for $ac_hdr" >&5
4043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4046 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6 4047 echo $ac_n "(cached) $ac_c" 1>&6
4045 else 4048 else
4046 cat > conftest.$ac_ext <<EOF 4049 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure" 4050 #line 4051 "configure"
4048 #include "confdefs.h" 4051 #include "confdefs.h"
4049 #include <$ac_hdr> 4052 #include <$ac_hdr>
4050 EOF 4053 EOF
4051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4052 { (eval echo configure:4053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4055 { (eval echo configure:4056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4054 if test -z "$ac_err"; then 4057 if test -z "$ac_err"; then
4055 rm -rf conftest* 4058 rm -rf conftest*
4056 eval "ac_cv_header_$ac_safe=yes" 4059 eval "ac_cv_header_$ac_safe=yes"
4057 else 4060 else
4076 done 4079 done
4077 4080
4078 for ac_func in getpagesize 4081 for ac_func in getpagesize
4079 do 4082 do
4080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4081 echo "configure:4082: checking for $ac_func" >&5 4084 echo "configure:4085: checking for $ac_func" >&5
4082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6 4086 echo $ac_n "(cached) $ac_c" 1>&6
4084 else 4087 else
4085 cat > conftest.$ac_ext <<EOF 4088 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure" 4089 #line 4090 "configure"
4087 #include "confdefs.h" 4090 #include "confdefs.h"
4088 /* System header to define __stub macros and hopefully few prototypes, 4091 /* System header to define __stub macros and hopefully few prototypes,
4089 which can conflict with char $ac_func(); below. */ 4092 which can conflict with char $ac_func(); below. */
4090 #include <assert.h> 4093 #include <assert.h>
4091 /* Override any gcc2 internal prototype to avoid an error. */ 4094 /* Override any gcc2 internal prototype to avoid an error. */
4104 $ac_func(); 4107 $ac_func();
4105 #endif 4108 #endif
4106 4109
4107 ; return 0; } 4110 ; return 0; }
4108 EOF 4111 EOF
4109 if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4112 if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4110 rm -rf conftest* 4113 rm -rf conftest*
4111 eval "ac_cv_func_$ac_func=yes" 4114 eval "ac_cv_func_$ac_func=yes"
4112 else 4115 else
4113 echo "configure: failed program was:" >&5 4116 echo "configure: failed program was:" >&5
4114 cat conftest.$ac_ext >&5 4117 cat conftest.$ac_ext >&5
4129 echo "$ac_t""no" 1>&6 4132 echo "$ac_t""no" 1>&6
4130 fi 4133 fi
4131 done 4134 done
4132 4135
4133 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 4136 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4134 echo "configure:4135: checking for working mmap" >&5 4137 echo "configure:4138: checking for working mmap" >&5
4135 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 4138 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6 4139 echo $ac_n "(cached) $ac_c" 1>&6
4137 else 4140 else
4138 if test "$cross_compiling" = yes; then 4141 if test "$cross_compiling" = yes; then
4139 ac_cv_func_mmap_fixed_mapped=no 4142 ac_cv_func_mmap_fixed_mapped=no
4140 else 4143 else
4141 cat > conftest.$ac_ext <<EOF 4144 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure" 4145 #line 4146 "configure"
4143 #include "confdefs.h" 4146 #include "confdefs.h"
4144 /* Thanks to Mike Haertel and Jim Avera for this test. 4147 /* Thanks to Mike Haertel and Jim Avera for this test.
4145 Here is a matrix of mmap possibilities: 4148 Here is a matrix of mmap possibilities:
4146 mmap private not fixed 4149 mmap private not fixed
4147 mmap private fixed at somewhere currently unmapped 4150 mmap private fixed at somewhere currently unmapped
4271 close (fd); 4274 close (fd);
4272 unlink ("conftestmmap"); 4275 unlink ("conftestmmap");
4273 exit (0); 4276 exit (0);
4274 } 4277 }
4275 EOF 4278 EOF
4276 if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4277 then 4280 then
4278 ac_cv_func_mmap_fixed_mapped=yes 4281 ac_cv_func_mmap_fixed_mapped=yes
4279 else 4282 else
4280 echo "configure: failed program was:" >&5 4283 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5 4284 cat conftest.$ac_ext >&5
4300 fi 4303 fi
4301 4304
4302 LIBS="$libsrc_libs $LIBS" 4305 LIBS="$libsrc_libs $LIBS"
4303 4306
4304 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4307 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4305 echo "configure:4306: checking for dnet_ntoa in -ldnet" >&5 4308 echo "configure:4309: checking for dnet_ntoa in -ldnet" >&5
4306 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4309 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6 4311 echo $ac_n "(cached) $ac_c" 1>&6
4309 else 4312 else
4310 ac_save_LIBS="$LIBS" 4313 ac_save_LIBS="$LIBS"
4311 LIBS="-ldnet $LIBS" 4314 LIBS="-ldnet $LIBS"
4312 cat > conftest.$ac_ext <<EOF 4315 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure" 4316 #line 4317 "configure"
4314 #include "confdefs.h" 4317 #include "confdefs.h"
4315 /* Override any gcc2 internal prototype to avoid an error. */ 4318 /* Override any gcc2 internal prototype to avoid an error. */
4316 /* We use char because int might match the return type of a gcc2 4319 /* We use char because int might match the return type of a gcc2
4317 builtin and then its argument prototype would still apply. */ 4320 builtin and then its argument prototype would still apply. */
4318 char dnet_ntoa(); 4321 char dnet_ntoa();
4319 4322
4320 int main() { 4323 int main() {
4321 dnet_ntoa() 4324 dnet_ntoa()
4322 ; return 0; } 4325 ; return 0; }
4323 EOF 4326 EOF
4324 if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4327 if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4325 rm -rf conftest* 4328 rm -rf conftest*
4326 eval "ac_cv_lib_$ac_lib_var=yes" 4329 eval "ac_cv_lib_$ac_lib_var=yes"
4327 else 4330 else
4328 echo "configure: failed program was:" >&5 4331 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5 4332 cat conftest.$ac_ext >&5
4348 echo "$ac_t""no" 1>&6 4351 echo "$ac_t""no" 1>&6
4349 fi 4352 fi
4350 4353
4351 4354
4352 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 4355 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4353 echo "configure:4354: checking for main in -lXbsd" >&5 4356 echo "configure:4357: checking for main in -lXbsd" >&5
4354 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 4357 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4356 echo $ac_n "(cached) $ac_c" 1>&6 4359 echo $ac_n "(cached) $ac_c" 1>&6
4357 else 4360 else
4358 ac_save_LIBS="$LIBS" 4361 ac_save_LIBS="$LIBS"
4359 LIBS="-lXbsd $LIBS" 4362 LIBS="-lXbsd $LIBS"
4360 cat > conftest.$ac_ext <<EOF 4363 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure" 4364 #line 4365 "configure"
4362 #include "confdefs.h" 4365 #include "confdefs.h"
4363 4366
4364 int main() { 4367 int main() {
4365 main() 4368 main()
4366 ; return 0; } 4369 ; return 0; }
4367 EOF 4370 EOF
4368 if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4371 if { (eval echo configure:4372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4369 rm -rf conftest* 4372 rm -rf conftest*
4370 eval "ac_cv_lib_$ac_lib_var=yes" 4373 eval "ac_cv_lib_$ac_lib_var=yes"
4371 else 4374 else
4372 echo "configure: failed program was:" >&5 4375 echo "configure: failed program was:" >&5
4373 cat conftest.$ac_ext >&5 4376 cat conftest.$ac_ext >&5
4385 echo "$ac_t""no" 1>&6 4388 echo "$ac_t""no" 1>&6
4386 fi 4389 fi
4387 4390
4388 4391
4389 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4392 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4390 echo "configure:4391: checking for cma_open in -lpthreads" >&5 4393 echo "configure:4394: checking for cma_open in -lpthreads" >&5
4391 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4394 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6 4396 echo $ac_n "(cached) $ac_c" 1>&6
4394 else 4397 else
4395 ac_save_LIBS="$LIBS" 4398 ac_save_LIBS="$LIBS"
4396 LIBS="-lpthreads $LIBS" 4399 LIBS="-lpthreads $LIBS"
4397 cat > conftest.$ac_ext <<EOF 4400 cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure" 4401 #line 4402 "configure"
4399 #include "confdefs.h" 4402 #include "confdefs.h"
4400 /* Override any gcc2 internal prototype to avoid an error. */ 4403 /* Override any gcc2 internal prototype to avoid an error. */
4401 /* We use char because int might match the return type of a gcc2 4404 /* We use char because int might match the return type of a gcc2
4402 builtin and then its argument prototype would still apply. */ 4405 builtin and then its argument prototype would still apply. */
4403 char cma_open(); 4406 char cma_open();
4404 4407
4405 int main() { 4408 int main() {
4406 cma_open() 4409 cma_open()
4407 ; return 0; } 4410 ; return 0; }
4408 EOF 4411 EOF
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4410 rm -rf conftest* 4413 rm -rf conftest*
4411 eval "ac_cv_lib_$ac_lib_var=yes" 4414 eval "ac_cv_lib_$ac_lib_var=yes"
4412 else 4415 else
4413 echo "configure: failed program was:" >&5 4416 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5 4417 cat conftest.$ac_ext >&5
4433 echo "$ac_t""no" 1>&6 4436 echo "$ac_t""no" 1>&6
4434 fi 4437 fi
4435 4438
4436 4439
4437 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 4440 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
4438 echo "configure:4439: checking for XFree86 in /usr/X386" >&5 4441 echo "configure:4442: checking for XFree86 in /usr/X386" >&5
4439 if test -d /usr/X386/include; then 4442 if test -d /usr/X386/include; then
4440 HAVE_XFREE386=yes 4443 HAVE_XFREE386=yes
4441 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 4444 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
4442 else 4445 else
4443 HAVE_XFREE386=no 4446 HAVE_XFREE386=no
4465 export LD_RUN_PATH 4468 export LD_RUN_PATH
4466 fi 4469 fi
4467 4470
4468 if test "${opsys}" = "gnu-linux"; then 4471 if test "${opsys}" = "gnu-linux"; then
4469 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 4472 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
4470 echo "configure:4471: checking whether X on GNU/Linux needs -b to link" >&5 4473 echo "configure:4474: checking whether X on GNU/Linux needs -b to link" >&5
4471 cat > conftest.$ac_ext <<EOF 4474 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure" 4475 #line 4476 "configure"
4473 #include "confdefs.h" 4476 #include "confdefs.h"
4474 4477
4475 int main() { 4478 int main() {
4476 XOpenDisplay ("foo"); 4479 XOpenDisplay ("foo");
4477 ; return 0; } 4480 ; return 0; }
4478 EOF 4481 EOF
4479 if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4480 rm -rf conftest* 4483 rm -rf conftest*
4481 xlinux_first_failure=no 4484 xlinux_first_failure=no
4482 else 4485 else
4483 echo "configure: failed program was:" >&5 4486 echo "configure: failed program was:" >&5
4484 cat conftest.$ac_ext >&5 4487 cat conftest.$ac_ext >&5
4494 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 4497 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
4495 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 4498 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
4496 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 4499 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
4497 LIBS="$LIBS -b i486-linuxaout" 4500 LIBS="$LIBS -b i486-linuxaout"
4498 cat > conftest.$ac_ext <<EOF 4501 cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure" 4502 #line 4503 "configure"
4500 #include "confdefs.h" 4503 #include "confdefs.h"
4501 4504
4502 int main() { 4505 int main() {
4503 XOpenDisplay ("foo"); 4506 XOpenDisplay ("foo");
4504 ; return 0; } 4507 ; return 0; }
4505 EOF 4508 EOF
4506 if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4507 rm -rf conftest* 4510 rm -rf conftest*
4508 xlinux_second_failure=no 4511 xlinux_second_failure=no
4509 else 4512 else
4510 echo "configure: failed program was:" >&5 4513 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5 4514 cat conftest.$ac_ext >&5
4530 fi 4533 fi
4531 4534
4532 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 4535 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
4533 # header files included from there. 4536 # header files included from there.
4534 echo $ac_n "checking for Xkb""... $ac_c" 1>&6 4537 echo $ac_n "checking for Xkb""... $ac_c" 1>&6
4535 echo "configure:4536: checking for Xkb" >&5 4538 echo "configure:4539: checking for Xkb" >&5
4536 cat > conftest.$ac_ext <<EOF 4539 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure" 4540 #line 4541 "configure"
4538 #include "confdefs.h" 4541 #include "confdefs.h"
4539 #include <X11/Xlib.h> 4542 #include <X11/Xlib.h>
4540 #include <X11/XKBlib.h> 4543 #include <X11/XKBlib.h>
4541 int main() { 4544 int main() {
4542 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); 4545 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
4543 ; return 0; } 4546 ; return 0; }
4544 EOF 4547 EOF
4545 if { (eval echo configure:4546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4546 rm -rf conftest* 4549 rm -rf conftest*
4547 emacs_xkb=yes 4550 emacs_xkb=yes
4548 else 4551 else
4549 echo "configure: failed program was:" >&5 4552 echo "configure: failed program was:" >&5
4550 cat conftest.$ac_ext >&5 4553 cat conftest.$ac_ext >&5
4562 4565
4563 for ac_func in XrmSetDatabase XScreenResourceString \ 4566 for ac_func in XrmSetDatabase XScreenResourceString \
4564 XScreenNumberOfScreen XSetWMProtocols 4567 XScreenNumberOfScreen XSetWMProtocols
4565 do 4568 do
4566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4567 echo "configure:4568: checking for $ac_func" >&5 4570 echo "configure:4571: checking for $ac_func" >&5
4568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6 4572 echo $ac_n "(cached) $ac_c" 1>&6
4570 else 4573 else
4571 cat > conftest.$ac_ext <<EOF 4574 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure" 4575 #line 4576 "configure"
4573 #include "confdefs.h" 4576 #include "confdefs.h"
4574 /* System header to define __stub macros and hopefully few prototypes, 4577 /* System header to define __stub macros and hopefully few prototypes,
4575 which can conflict with char $ac_func(); below. */ 4578 which can conflict with char $ac_func(); below. */
4576 #include <assert.h> 4579 #include <assert.h>
4577 /* Override any gcc2 internal prototype to avoid an error. */ 4580 /* Override any gcc2 internal prototype to avoid an error. */
4590 $ac_func(); 4593 $ac_func();
4591 #endif 4594 #endif
4592 4595
4593 ; return 0; } 4596 ; return 0; }
4594 EOF 4597 EOF
4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4598 if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4596 rm -rf conftest* 4599 rm -rf conftest*
4597 eval "ac_cv_func_$ac_func=yes" 4600 eval "ac_cv_func_$ac_func=yes"
4598 else 4601 else
4599 echo "configure: failed program was:" >&5 4602 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5 4603 cat conftest.$ac_ext >&5
4618 4621
4619 fi 4622 fi
4620 4623
4621 if test "${window_system}" = "x11"; then 4624 if test "${window_system}" = "x11"; then
4622 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 4625 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4623 echo "configure:4624: checking X11 version 6" >&5 4626 echo "configure:4627: checking X11 version 6" >&5
4624 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 4627 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6 4628 echo $ac_n "(cached) $ac_c" 1>&6
4626 else 4629 else
4627 cat > conftest.$ac_ext <<EOF 4630 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure" 4631 #line 4632 "configure"
4629 #include "confdefs.h" 4632 #include "confdefs.h"
4630 #include <X11/Xlib.h> 4633 #include <X11/Xlib.h>
4631 int main() { 4634 int main() {
4632 #if XlibSpecificationRelease < 6 4635 #if XlibSpecificationRelease < 6
4633 fail; 4636 fail;
4634 #endif 4637 #endif
4635 4638
4636 ; return 0; } 4639 ; return 0; }
4637 EOF 4640 EOF
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4641 if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4639 rm -rf conftest* 4642 rm -rf conftest*
4640 emacs_cv_x11_version_6=yes 4643 emacs_cv_x11_version_6=yes
4641 else 4644 else
4642 echo "configure: failed program was:" >&5 4645 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5 4646 cat conftest.$ac_ext >&5
4658 fi 4661 fi
4659 fi 4662 fi
4660 4663
4661 if test "${window_system}" = "x11"; then 4664 if test "${window_system}" = "x11"; then
4662 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 4665 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4663 echo "configure:4664: checking X11 version 5" >&5 4666 echo "configure:4667: checking X11 version 5" >&5
4664 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 4667 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6 4668 echo $ac_n "(cached) $ac_c" 1>&6
4666 else 4669 else
4667 cat > conftest.$ac_ext <<EOF 4670 cat > conftest.$ac_ext <<EOF
4668 #line 4669 "configure" 4671 #line 4672 "configure"
4669 #include "confdefs.h" 4672 #include "confdefs.h"
4670 #include <X11/Xlib.h> 4673 #include <X11/Xlib.h>
4671 int main() { 4674 int main() {
4672 #if XlibSpecificationRelease < 5 4675 #if XlibSpecificationRelease < 5
4673 fail; 4676 fail;
4674 #endif 4677 #endif
4675 4678
4676 ; return 0; } 4679 ; return 0; }
4677 EOF 4680 EOF
4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4679 rm -rf conftest* 4682 rm -rf conftest*
4680 emacs_cv_x11_version_5=yes 4683 emacs_cv_x11_version_5=yes
4681 else 4684 else
4682 echo "configure: failed program was:" >&5 4685 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5 4686 cat conftest.$ac_ext >&5
4701 fi 4704 fi
4702 4705
4703 if test x"${USE_X_TOOLKIT}" = xmaybe; then 4706 if test x"${USE_X_TOOLKIT}" = xmaybe; then
4704 if test x"${HAVE_X11R5}" = xyes; then 4707 if test x"${HAVE_X11R5}" = xyes; then
4705 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 4708 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4706 echo "configure:4707: checking X11 version 5 with Xaw" >&5 4709 echo "configure:4710: checking X11 version 5 with Xaw" >&5
4707 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 4710 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6 4711 echo $ac_n "(cached) $ac_c" 1>&6
4709 else 4712 else
4710 cat > conftest.$ac_ext <<EOF 4713 cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure" 4714 #line 4715 "configure"
4712 #include "confdefs.h" 4715 #include "confdefs.h"
4713 4716
4714 #include <X11/Intrinsic.h> 4717 #include <X11/Intrinsic.h>
4715 #include <X11/Xaw/Simple.h> 4718 #include <X11/Xaw/Simple.h>
4716 int main() { 4719 int main() {
4717 4720
4718 ; return 0; } 4721 ; return 0; }
4719 EOF 4722 EOF
4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4723 if { (eval echo configure:4724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4721 rm -rf conftest* 4724 rm -rf conftest*
4722 emacs_cv_x11_version_5_with_xaw=yes 4725 emacs_cv_x11_version_5_with_xaw=yes
4723 else 4726 else
4724 echo "configure: failed program was:" >&5 4727 echo "configure: failed program was:" >&5
4725 cat conftest.$ac_ext >&5 4728 cat conftest.$ac_ext >&5
4743 4746
4744 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 4747 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
4745 4748
4746 if test "${USE_X_TOOLKIT}" != "none"; then 4749 if test "${USE_X_TOOLKIT}" != "none"; then
4747 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 4750 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4748 echo "configure:4749: checking X11 toolkit version" >&5 4751 echo "configure:4752: checking X11 toolkit version" >&5
4749 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 4752 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6 4753 echo $ac_n "(cached) $ac_c" 1>&6
4751 else 4754 else
4752 cat > conftest.$ac_ext <<EOF 4755 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure" 4756 #line 4757 "configure"
4754 #include "confdefs.h" 4757 #include "confdefs.h"
4755 #include <X11/Intrinsic.h> 4758 #include <X11/Intrinsic.h>
4756 int main() { 4759 int main() {
4757 #if XtSpecificationRelease < 6 4760 #if XtSpecificationRelease < 6
4758 fail; 4761 fail;
4759 #endif 4762 #endif
4760 4763
4761 ; return 0; } 4764 ; return 0; }
4762 EOF 4765 EOF
4763 if { (eval echo configure:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4766 if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4764 rm -rf conftest* 4767 rm -rf conftest*
4765 emacs_cv_x11_toolkit_version_6=yes 4768 emacs_cv_x11_toolkit_version_6=yes
4766 else 4769 else
4767 echo "configure: failed program was:" >&5 4770 echo "configure: failed program was:" >&5
4768 cat conftest.$ac_ext >&5 4771 cat conftest.$ac_ext >&5
4788 LIBS="-lXt -lSM -lICE $LIBS" 4791 LIBS="-lXt -lSM -lICE $LIBS"
4789 else 4792 else
4790 LIBS="-lXt $LIBS" 4793 LIBS="-lXt $LIBS"
4791 fi 4794 fi
4792 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 4795 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4793 echo "configure:4794: checking for XmuConvertStandardSelection in -lXmu" >&5 4796 echo "configure:4797: checking for XmuConvertStandardSelection in -lXmu" >&5
4794 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 4797 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6 4799 echo $ac_n "(cached) $ac_c" 1>&6
4797 else 4800 else
4798 ac_save_LIBS="$LIBS" 4801 ac_save_LIBS="$LIBS"
4799 LIBS="-lXmu $LIBS" 4802 LIBS="-lXmu $LIBS"
4800 cat > conftest.$ac_ext <<EOF 4803 cat > conftest.$ac_ext <<EOF
4801 #line 4802 "configure" 4804 #line 4805 "configure"
4802 #include "confdefs.h" 4805 #include "confdefs.h"
4803 /* Override any gcc2 internal prototype to avoid an error. */ 4806 /* Override any gcc2 internal prototype to avoid an error. */
4804 /* We use char because int might match the return type of a gcc2 4807 /* We use char because int might match the return type of a gcc2
4805 builtin and then its argument prototype would still apply. */ 4808 builtin and then its argument prototype would still apply. */
4806 char XmuConvertStandardSelection(); 4809 char XmuConvertStandardSelection();
4807 4810
4808 int main() { 4811 int main() {
4809 XmuConvertStandardSelection() 4812 XmuConvertStandardSelection()
4810 ; return 0; } 4813 ; return 0; }
4811 EOF 4814 EOF
4812 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4813 rm -rf conftest* 4816 rm -rf conftest*
4814 eval "ac_cv_lib_$ac_lib_var=yes" 4817 eval "ac_cv_lib_$ac_lib_var=yes"
4815 else 4818 else
4816 echo "configure: failed program was:" >&5 4819 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5 4820 cat conftest.$ac_ext >&5
4841 4844
4842 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 4845 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
4843 if test "${HAVE_X11}" = "yes"; then 4846 if test "${HAVE_X11}" = "yes"; then
4844 if test "${USE_X_TOOLKIT}" != "none"; then 4847 if test "${USE_X_TOOLKIT}" != "none"; then
4845 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 4848 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
4846 echo "configure:4847: checking for XShapeQueryExtension in -lXext" >&5 4849 echo "configure:4850: checking for XShapeQueryExtension in -lXext" >&5
4847 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` 4850 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
4848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6 4852 echo $ac_n "(cached) $ac_c" 1>&6
4850 else 4853 else
4851 ac_save_LIBS="$LIBS" 4854 ac_save_LIBS="$LIBS"
4852 LIBS="-lXext $LIBS" 4855 LIBS="-lXext $LIBS"
4853 cat > conftest.$ac_ext <<EOF 4856 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure" 4857 #line 4858 "configure"
4855 #include "confdefs.h" 4858 #include "confdefs.h"
4856 /* Override any gcc2 internal prototype to avoid an error. */ 4859 /* Override any gcc2 internal prototype to avoid an error. */
4857 /* We use char because int might match the return type of a gcc2 4860 /* We use char because int might match the return type of a gcc2
4858 builtin and then its argument prototype would still apply. */ 4861 builtin and then its argument prototype would still apply. */
4859 char XShapeQueryExtension(); 4862 char XShapeQueryExtension();
4860 4863
4861 int main() { 4864 int main() {
4862 XShapeQueryExtension() 4865 XShapeQueryExtension()
4863 ; return 0; } 4866 ; return 0; }
4864 EOF 4867 EOF
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4866 rm -rf conftest* 4869 rm -rf conftest*
4867 eval "ac_cv_lib_$ac_lib_var=yes" 4870 eval "ac_cv_lib_$ac_lib_var=yes"
4868 else 4871 else
4869 echo "configure: failed program was:" >&5 4872 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5 4873 cat conftest.$ac_ext >&5
4892 fi 4895 fi
4893 fi 4896 fi
4894 4897
4895 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 4898 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4896 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 4899 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4897 echo "configure:4898: checking for Motif version 2.1" >&5 4900 echo "configure:4901: checking for Motif version 2.1" >&5
4898 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 4901 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6 4902 echo $ac_n "(cached) $ac_c" 1>&6
4900 else 4903 else
4901 cat > conftest.$ac_ext <<EOF 4904 cat > conftest.$ac_ext <<EOF
4902 #line 4903 "configure" 4905 #line 4906 "configure"
4903 #include "confdefs.h" 4906 #include "confdefs.h"
4904 #include <Xm/Xm.h> 4907 #include <Xm/Xm.h>
4905 int main() { 4908 int main() {
4906 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 4909 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4907 int x = 5; 4910 int x = 5;
4908 #else 4911 #else
4909 Motif version prior to 2.1. 4912 Motif version prior to 2.1.
4910 #endif 4913 #endif
4911 ; return 0; } 4914 ; return 0; }
4912 EOF 4915 EOF
4913 if { (eval echo configure:4914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4916 if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4914 rm -rf conftest* 4917 rm -rf conftest*
4915 emacs_cv_motif_version_2_1=yes 4918 emacs_cv_motif_version_2_1=yes
4916 else 4919 else
4917 echo "configure: failed program was:" >&5 4920 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5 4921 cat conftest.$ac_ext >&5
4929 cat >> confdefs.h <<\EOF 4932 cat >> confdefs.h <<\EOF
4930 #define HAVE_MOTIF_2_1 1 4933 #define HAVE_MOTIF_2_1 1
4931 EOF 4934 EOF
4932 4935
4933 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 4936 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4934 echo "configure:4935: checking for XpCreateContext in -lXp" >&5 4937 echo "configure:4938: checking for XpCreateContext in -lXp" >&5
4935 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 4938 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6 4940 echo $ac_n "(cached) $ac_c" 1>&6
4938 else 4941 else
4939 ac_save_LIBS="$LIBS" 4942 ac_save_LIBS="$LIBS"
4940 LIBS="-lXp $LIBS" 4943 LIBS="-lXp $LIBS"
4941 cat > conftest.$ac_ext <<EOF 4944 cat > conftest.$ac_ext <<EOF
4942 #line 4943 "configure" 4945 #line 4946 "configure"
4943 #include "confdefs.h" 4946 #include "confdefs.h"
4944 /* Override any gcc2 internal prototype to avoid an error. */ 4947 /* Override any gcc2 internal prototype to avoid an error. */
4945 /* We use char because int might match the return type of a gcc2 4948 /* We use char because int might match the return type of a gcc2
4946 builtin and then its argument prototype would still apply. */ 4949 builtin and then its argument prototype would still apply. */
4947 char XpCreateContext(); 4950 char XpCreateContext();
4948 4951
4949 int main() { 4952 int main() {
4950 XpCreateContext() 4953 XpCreateContext()
4951 ; return 0; } 4954 ; return 0; }
4952 EOF 4955 EOF
4953 if { (eval echo configure:4954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4954 rm -rf conftest* 4957 rm -rf conftest*
4955 eval "ac_cv_lib_$ac_lib_var=yes" 4958 eval "ac_cv_lib_$ac_lib_var=yes"
4956 else 4959 else
4957 echo "configure: failed program was:" >&5 4960 echo "configure: failed program was:" >&5
4958 cat conftest.$ac_ext >&5 4961 cat conftest.$ac_ext >&5
4983 HAVE_XAW3D=no 4986 HAVE_XAW3D=no
4984 if test "${HAVE_X11}" = "yes"; then 4987 if test "${HAVE_X11}" = "yes"; then
4985 if test "${USE_X_TOOLKIT}" != "none"; then 4988 if test "${USE_X_TOOLKIT}" != "none"; then
4986 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 4989 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4987 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4990 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4988 echo "configure:4989: checking for X11/Xaw3d/Scrollbar.h" >&5 4991 echo "configure:4992: checking for X11/Xaw3d/Scrollbar.h" >&5
4989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4992 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4990 echo $ac_n "(cached) $ac_c" 1>&6 4993 echo $ac_n "(cached) $ac_c" 1>&6
4991 else 4994 else
4992 cat > conftest.$ac_ext <<EOF 4995 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure" 4996 #line 4997 "configure"
4994 #include "confdefs.h" 4997 #include "confdefs.h"
4995 #include <X11/Xaw3d/Scrollbar.h> 4998 #include <X11/Xaw3d/Scrollbar.h>
4996 EOF 4999 EOF
4997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4998 { (eval echo configure:4999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5001 { (eval echo configure:5002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5000 if test -z "$ac_err"; then 5003 if test -z "$ac_err"; then
5001 rm -rf conftest* 5004 rm -rf conftest*
5002 eval "ac_cv_header_$ac_safe=yes" 5005 eval "ac_cv_header_$ac_safe=yes"
5003 else 5006 else
5010 rm -f conftest* 5013 rm -f conftest*
5011 fi 5014 fi
5012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5013 echo "$ac_t""yes" 1>&6 5016 echo "$ac_t""yes" 1>&6
5014 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 5017 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
5015 echo "configure:5016: checking for XawScrollbarSetThumb in -lXaw3d" >&5 5018 echo "configure:5019: checking for XawScrollbarSetThumb in -lXaw3d" >&5
5016 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 5019 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
5017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5020 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5018 echo $ac_n "(cached) $ac_c" 1>&6 5021 echo $ac_n "(cached) $ac_c" 1>&6
5019 else 5022 else
5020 ac_save_LIBS="$LIBS" 5023 ac_save_LIBS="$LIBS"
5021 LIBS="-lXaw3d $LIBS" 5024 LIBS="-lXaw3d $LIBS"
5022 cat > conftest.$ac_ext <<EOF 5025 cat > conftest.$ac_ext <<EOF
5023 #line 5024 "configure" 5026 #line 5027 "configure"
5024 #include "confdefs.h" 5027 #include "confdefs.h"
5025 /* Override any gcc2 internal prototype to avoid an error. */ 5028 /* Override any gcc2 internal prototype to avoid an error. */
5026 /* We use char because int might match the return type of a gcc2 5029 /* We use char because int might match the return type of a gcc2
5027 builtin and then its argument prototype would still apply. */ 5030 builtin and then its argument prototype would still apply. */
5028 char XawScrollbarSetThumb(); 5031 char XawScrollbarSetThumb();
5029 5032
5030 int main() { 5033 int main() {
5031 XawScrollbarSetThumb() 5034 XawScrollbarSetThumb()
5032 ; return 0; } 5035 ; return 0; }
5033 EOF 5036 EOF
5034 if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5037 if { (eval echo configure:5038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5035 rm -rf conftest* 5038 rm -rf conftest*
5036 eval "ac_cv_lib_$ac_lib_var=yes" 5039 eval "ac_cv_lib_$ac_lib_var=yes"
5037 else 5040 else
5038 echo "configure: failed program was:" >&5 5041 echo "configure: failed program was:" >&5
5039 cat conftest.$ac_ext >&5 5042 cat conftest.$ac_ext >&5
5097 HAVE_XPM=no 5100 HAVE_XPM=no
5098 if test "${HAVE_X11}" = "yes"; then 5101 if test "${HAVE_X11}" = "yes"; then
5099 if test "${with_xpm}" != "no"; then 5102 if test "${with_xpm}" != "no"; then
5100 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 5103 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
5101 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 5104 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
5102 echo "configure:5103: checking for X11/xpm.h" >&5 5105 echo "configure:5106: checking for X11/xpm.h" >&5
5103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6 5107 echo $ac_n "(cached) $ac_c" 1>&6
5105 else 5108 else
5106 cat > conftest.$ac_ext <<EOF 5109 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure" 5110 #line 5111 "configure"
5108 #include "confdefs.h" 5111 #include "confdefs.h"
5109 #include <X11/xpm.h> 5112 #include <X11/xpm.h>
5110 EOF 5113 EOF
5111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5112 { (eval echo configure:5113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5115 { (eval echo configure:5116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5114 if test -z "$ac_err"; then 5117 if test -z "$ac_err"; then
5115 rm -rf conftest* 5118 rm -rf conftest*
5116 eval "ac_cv_header_$ac_safe=yes" 5119 eval "ac_cv_header_$ac_safe=yes"
5117 else 5120 else
5124 rm -f conftest* 5127 rm -f conftest*
5125 fi 5128 fi
5126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5127 echo "$ac_t""yes" 1>&6 5130 echo "$ac_t""yes" 1>&6
5128 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 5131 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
5129 echo "configure:5130: checking for XpmReadFileToPixmap in -lXpm" >&5 5132 echo "configure:5133: checking for XpmReadFileToPixmap in -lXpm" >&5
5130 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 5133 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
5131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6 5135 echo $ac_n "(cached) $ac_c" 1>&6
5133 else 5136 else
5134 ac_save_LIBS="$LIBS" 5137 ac_save_LIBS="$LIBS"
5135 LIBS="-lXpm -lX11 $LIBS" 5138 LIBS="-lXpm -lX11 $LIBS"
5136 cat > conftest.$ac_ext <<EOF 5139 cat > conftest.$ac_ext <<EOF
5137 #line 5138 "configure" 5140 #line 5141 "configure"
5138 #include "confdefs.h" 5141 #include "confdefs.h"
5139 /* Override any gcc2 internal prototype to avoid an error. */ 5142 /* Override any gcc2 internal prototype to avoid an error. */
5140 /* We use char because int might match the return type of a gcc2 5143 /* We use char because int might match the return type of a gcc2
5141 builtin and then its argument prototype would still apply. */ 5144 builtin and then its argument prototype would still apply. */
5142 char XpmReadFileToPixmap(); 5145 char XpmReadFileToPixmap();
5143 5146
5144 int main() { 5147 int main() {
5145 XpmReadFileToPixmap() 5148 XpmReadFileToPixmap()
5146 ; return 0; } 5149 ; return 0; }
5147 EOF 5150 EOF
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5151 if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5149 rm -rf conftest* 5152 rm -rf conftest*
5150 eval "ac_cv_lib_$ac_lib_var=yes" 5153 eval "ac_cv_lib_$ac_lib_var=yes"
5151 else 5154 else
5152 echo "configure: failed program was:" >&5 5155 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5 5156 cat conftest.$ac_ext >&5
5169 echo "$ac_t""no" 1>&6 5172 echo "$ac_t""no" 1>&6
5170 fi 5173 fi
5171 5174
5172 if test "${HAVE_XPM}" = "yes"; then 5175 if test "${HAVE_XPM}" = "yes"; then
5173 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 5176 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6
5174 echo "configure:5175: checking for XpmReturnAllocPixels preprocessor define" >&5 5177 echo "configure:5178: checking for XpmReturnAllocPixels preprocessor define" >&5
5175 cat > conftest.$ac_ext <<EOF 5178 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure" 5179 #line 5180 "configure"
5177 #include "confdefs.h" 5180 #include "confdefs.h"
5178 #include "X11/xpm.h" 5181 #include "X11/xpm.h"
5179 #ifndef XpmReturnAllocPixels 5182 #ifndef XpmReturnAllocPixels
5180 no_return_alloc_pixels 5183 no_return_alloc_pixels
5181 #endif 5184 #endif
5212 HAVE_JPEG=no 5215 HAVE_JPEG=no
5213 if test "${HAVE_X11}" = "yes"; then 5216 if test "${HAVE_X11}" = "yes"; then
5214 if test "${with_jpeg}" != "no"; then 5217 if test "${with_jpeg}" != "no"; then
5215 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` 5218 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
5216 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 5219 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
5217 echo "configure:5218: checking for jerror.h" >&5 5220 echo "configure:5221: checking for jerror.h" >&5
5218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6 5222 echo $ac_n "(cached) $ac_c" 1>&6
5220 else 5223 else
5221 cat > conftest.$ac_ext <<EOF 5224 cat > conftest.$ac_ext <<EOF
5222 #line 5223 "configure" 5225 #line 5226 "configure"
5223 #include "confdefs.h" 5226 #include "confdefs.h"
5224 #include <jerror.h> 5227 #include <jerror.h>
5225 EOF 5228 EOF
5226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5227 { (eval echo configure:5228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5230 { (eval echo configure:5231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5229 if test -z "$ac_err"; then 5232 if test -z "$ac_err"; then
5230 rm -rf conftest* 5233 rm -rf conftest*
5231 eval "ac_cv_header_$ac_safe=yes" 5234 eval "ac_cv_header_$ac_safe=yes"
5232 else 5235 else
5239 rm -f conftest* 5242 rm -f conftest*
5240 fi 5243 fi
5241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5242 echo "$ac_t""yes" 1>&6 5245 echo "$ac_t""yes" 1>&6
5243 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 5246 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5244 echo "configure:5245: checking for jpeg_destroy_compress in -ljpeg" >&5 5247 echo "configure:5248: checking for jpeg_destroy_compress in -ljpeg" >&5
5245 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 5248 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5247 echo $ac_n "(cached) $ac_c" 1>&6 5250 echo $ac_n "(cached) $ac_c" 1>&6
5248 else 5251 else
5249 ac_save_LIBS="$LIBS" 5252 ac_save_LIBS="$LIBS"
5250 LIBS="-ljpeg $LIBS" 5253 LIBS="-ljpeg $LIBS"
5251 cat > conftest.$ac_ext <<EOF 5254 cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure" 5255 #line 5256 "configure"
5253 #include "confdefs.h" 5256 #include "confdefs.h"
5254 /* Override any gcc2 internal prototype to avoid an error. */ 5257 /* Override any gcc2 internal prototype to avoid an error. */
5255 /* We use char because int might match the return type of a gcc2 5258 /* We use char because int might match the return type of a gcc2
5256 builtin and then its argument prototype would still apply. */ 5259 builtin and then its argument prototype would still apply. */
5257 char jpeg_destroy_compress(); 5260 char jpeg_destroy_compress();
5258 5261
5259 int main() { 5262 int main() {
5260 jpeg_destroy_compress() 5263 jpeg_destroy_compress()
5261 ; return 0; } 5264 ; return 0; }
5262 EOF 5265 EOF
5263 if { (eval echo configure:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5266 if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5264 rm -rf conftest* 5267 rm -rf conftest*
5265 eval "ac_cv_lib_$ac_lib_var=yes" 5268 eval "ac_cv_lib_$ac_lib_var=yes"
5266 else 5269 else
5267 echo "configure: failed program was:" >&5 5270 echo "configure: failed program was:" >&5
5268 cat conftest.$ac_ext >&5 5271 cat conftest.$ac_ext >&5
5298 HAVE_PNG=no 5301 HAVE_PNG=no
5299 if test "${HAVE_X11}" = "yes"; then 5302 if test "${HAVE_X11}" = "yes"; then
5300 if test "${with_png}" != "no"; then 5303 if test "${with_png}" != "no"; then
5301 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 5304 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5302 echo $ac_n "checking for png.h""... $ac_c" 1>&6 5305 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5303 echo "configure:5304: checking for png.h" >&5 5306 echo "configure:5307: checking for png.h" >&5
5304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6 5308 echo $ac_n "(cached) $ac_c" 1>&6
5306 else 5309 else
5307 cat > conftest.$ac_ext <<EOF 5310 cat > conftest.$ac_ext <<EOF
5308 #line 5309 "configure" 5311 #line 5312 "configure"
5309 #include "confdefs.h" 5312 #include "confdefs.h"
5310 #include <png.h> 5313 #include <png.h>
5311 EOF 5314 EOF
5312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5313 { (eval echo configure:5314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5316 { (eval echo configure:5317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5315 if test -z "$ac_err"; then 5318 if test -z "$ac_err"; then
5316 rm -rf conftest* 5319 rm -rf conftest*
5317 eval "ac_cv_header_$ac_safe=yes" 5320 eval "ac_cv_header_$ac_safe=yes"
5318 else 5321 else
5325 rm -f conftest* 5328 rm -f conftest*
5326 fi 5329 fi
5327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5328 echo "$ac_t""yes" 1>&6 5331 echo "$ac_t""yes" 1>&6
5329 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6 5332 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6
5330 echo "configure:5331: checking for png_get_channels in -lpng" >&5 5333 echo "configure:5334: checking for png_get_channels in -lpng" >&5
5331 ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'` 5334 ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`
5332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6 5336 echo $ac_n "(cached) $ac_c" 1>&6
5334 else 5337 else
5335 ac_save_LIBS="$LIBS" 5338 ac_save_LIBS="$LIBS"
5336 LIBS="-lpng -lz -lm $LIBS" 5339 LIBS="-lpng -lz -lm $LIBS"
5337 cat > conftest.$ac_ext <<EOF 5340 cat > conftest.$ac_ext <<EOF
5338 #line 5339 "configure" 5341 #line 5342 "configure"
5339 #include "confdefs.h" 5342 #include "confdefs.h"
5340 /* Override any gcc2 internal prototype to avoid an error. */ 5343 /* Override any gcc2 internal prototype to avoid an error. */
5341 /* We use char because int might match the return type of a gcc2 5344 /* We use char because int might match the return type of a gcc2
5342 builtin and then its argument prototype would still apply. */ 5345 builtin and then its argument prototype would still apply. */
5343 char png_get_channels(); 5346 char png_get_channels();
5344 5347
5345 int main() { 5348 int main() {
5346 png_get_channels() 5349 png_get_channels()
5347 ; return 0; } 5350 ; return 0; }
5348 EOF 5351 EOF
5349 if { (eval echo configure:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5352 if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5350 rm -rf conftest* 5353 rm -rf conftest*
5351 eval "ac_cv_lib_$ac_lib_var=yes" 5354 eval "ac_cv_lib_$ac_lib_var=yes"
5352 else 5355 else
5353 echo "configure: failed program was:" >&5 5356 echo "configure: failed program was:" >&5
5354 cat conftest.$ac_ext >&5 5357 cat conftest.$ac_ext >&5
5384 HAVE_TIFF=no 5387 HAVE_TIFF=no
5385 if test "${HAVE_X11}" = "yes"; then 5388 if test "${HAVE_X11}" = "yes"; then
5386 if test "${with_tiff}" != "no"; then 5389 if test "${with_tiff}" != "no"; then
5387 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 5390 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5388 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 5391 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5389 echo "configure:5390: checking for tiffio.h" >&5 5392 echo "configure:5393: checking for tiffio.h" >&5
5390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5393 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6 5394 echo $ac_n "(cached) $ac_c" 1>&6
5392 else 5395 else
5393 cat > conftest.$ac_ext <<EOF 5396 cat > conftest.$ac_ext <<EOF
5394 #line 5395 "configure" 5397 #line 5398 "configure"
5395 #include "confdefs.h" 5398 #include "confdefs.h"
5396 #include <tiffio.h> 5399 #include <tiffio.h>
5397 EOF 5400 EOF
5398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5399 { (eval echo configure:5400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5402 { (eval echo configure:5403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5401 if test -z "$ac_err"; then 5404 if test -z "$ac_err"; then
5402 rm -rf conftest* 5405 rm -rf conftest*
5403 eval "ac_cv_header_$ac_safe=yes" 5406 eval "ac_cv_header_$ac_safe=yes"
5404 else 5407 else
5414 echo "$ac_t""yes" 1>&6 5417 echo "$ac_t""yes" 1>&6
5415 tifflibs="-lz -lm" 5418 tifflibs="-lz -lm"
5416 # At least one tiff package requires the jpeg library. 5419 # At least one tiff package requires the jpeg library.
5417 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 5420 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
5418 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 5421 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5419 echo "configure:5420: checking for TIFFGetVersion in -ltiff" >&5 5422 echo "configure:5423: checking for TIFFGetVersion in -ltiff" >&5
5420 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 5423 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6 5425 echo $ac_n "(cached) $ac_c" 1>&6
5423 else 5426 else
5424 ac_save_LIBS="$LIBS" 5427 ac_save_LIBS="$LIBS"
5425 LIBS="-ltiff $tifflibs $LIBS" 5428 LIBS="-ltiff $tifflibs $LIBS"
5426 cat > conftest.$ac_ext <<EOF 5429 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure" 5430 #line 5431 "configure"
5428 #include "confdefs.h" 5431 #include "confdefs.h"
5429 /* Override any gcc2 internal prototype to avoid an error. */ 5432 /* Override any gcc2 internal prototype to avoid an error. */
5430 /* We use char because int might match the return type of a gcc2 5433 /* We use char because int might match the return type of a gcc2
5431 builtin and then its argument prototype would still apply. */ 5434 builtin and then its argument prototype would still apply. */
5432 char TIFFGetVersion(); 5435 char TIFFGetVersion();
5433 5436
5434 int main() { 5437 int main() {
5435 TIFFGetVersion() 5438 TIFFGetVersion()
5436 ; return 0; } 5439 ; return 0; }
5437 EOF 5440 EOF
5438 if { (eval echo configure:5439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5441 if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5439 rm -rf conftest* 5442 rm -rf conftest*
5440 eval "ac_cv_lib_$ac_lib_var=yes" 5443 eval "ac_cv_lib_$ac_lib_var=yes"
5441 else 5444 else
5442 echo "configure: failed program was:" >&5 5445 echo "configure: failed program was:" >&5
5443 cat conftest.$ac_ext >&5 5446 cat conftest.$ac_ext >&5
5473 HAVE_GIF=no 5476 HAVE_GIF=no
5474 if test "${HAVE_X11}" = "yes"; then 5477 if test "${HAVE_X11}" = "yes"; then
5475 if test "${with_gif}" != "no"; then 5478 if test "${with_gif}" != "no"; then
5476 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 5479 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5477 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 5480 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5478 echo "configure:5479: checking for gif_lib.h" >&5 5481 echo "configure:5482: checking for gif_lib.h" >&5
5479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6 5483 echo $ac_n "(cached) $ac_c" 1>&6
5481 else 5484 else
5482 cat > conftest.$ac_ext <<EOF 5485 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure" 5486 #line 5487 "configure"
5484 #include "confdefs.h" 5487 #include "confdefs.h"
5485 #include <gif_lib.h> 5488 #include <gif_lib.h>
5486 EOF 5489 EOF
5487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5488 { (eval echo configure:5489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5491 { (eval echo configure:5492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5490 if test -z "$ac_err"; then 5493 if test -z "$ac_err"; then
5491 rm -rf conftest* 5494 rm -rf conftest*
5492 eval "ac_cv_header_$ac_safe=yes" 5495 eval "ac_cv_header_$ac_safe=yes"
5493 else 5496 else
5500 rm -f conftest* 5503 rm -f conftest*
5501 fi 5504 fi
5502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5503 echo "$ac_t""yes" 1>&6 5506 echo "$ac_t""yes" 1>&6
5504 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 5507 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
5505 echo "configure:5506: checking for DGifOpen in -lungif" >&5 5508 echo "configure:5509: checking for DGifOpen in -lungif" >&5
5506 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` 5509 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
5507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5508 echo $ac_n "(cached) $ac_c" 1>&6 5511 echo $ac_n "(cached) $ac_c" 1>&6
5509 else 5512 else
5510 ac_save_LIBS="$LIBS" 5513 ac_save_LIBS="$LIBS"
5511 LIBS="-lungif $LIBS" 5514 LIBS="-lungif $LIBS"
5512 cat > conftest.$ac_ext <<EOF 5515 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure" 5516 #line 5517 "configure"
5514 #include "confdefs.h" 5517 #include "confdefs.h"
5515 /* Override any gcc2 internal prototype to avoid an error. */ 5518 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2 5519 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */ 5520 builtin and then its argument prototype would still apply. */
5518 char DGifOpen(); 5521 char DGifOpen();
5519 5522
5520 int main() { 5523 int main() {
5521 DGifOpen() 5524 DGifOpen()
5522 ; return 0; } 5525 ; return 0; }
5523 EOF 5526 EOF
5524 if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5527 if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5525 rm -rf conftest* 5528 rm -rf conftest*
5526 eval "ac_cv_lib_$ac_lib_var=yes" 5529 eval "ac_cv_lib_$ac_lib_var=yes"
5527 else 5530 else
5528 echo "configure: failed program was:" >&5 5531 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5 5532 cat conftest.$ac_ext >&5
5555 fi 5558 fi
5556 fi 5559 fi
5557 5560
5558 # If netdb.h doesn't declare h_errno, we must declare it by hand. 5561 # If netdb.h doesn't declare h_errno, we must declare it by hand.
5559 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 5562 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
5560 echo "configure:5561: checking whether netdb declares h_errno" >&5 5563 echo "configure:5564: checking whether netdb declares h_errno" >&5
5561 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 5564 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6 5565 echo $ac_n "(cached) $ac_c" 1>&6
5563 else 5566 else
5564 cat > conftest.$ac_ext <<EOF 5567 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure" 5568 #line 5569 "configure"
5566 #include "confdefs.h" 5569 #include "confdefs.h"
5567 #include <netdb.h> 5570 #include <netdb.h>
5568 int main() { 5571 int main() {
5569 return h_errno; 5572 return h_errno;
5570 ; return 0; } 5573 ; return 0; }
5571 EOF 5574 EOF
5572 if { (eval echo configure:5573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5575 if { (eval echo configure:5576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5573 rm -rf conftest* 5576 rm -rf conftest*
5574 emacs_cv_netdb_declares_h_errno=yes 5577 emacs_cv_netdb_declares_h_errno=yes
5575 else 5578 else
5576 echo "configure: failed program was:" >&5 5579 echo "configure: failed program was:" >&5
5577 cat conftest.$ac_ext >&5 5580 cat conftest.$ac_ext >&5
5590 fi 5593 fi
5591 5594
5592 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5595 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5593 # for constant arguments. Useless! 5596 # for constant arguments. Useless!
5594 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 5597 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5595 echo "configure:5596: checking for working alloca.h" >&5 5598 echo "configure:5599: checking for working alloca.h" >&5
5596 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 5599 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6 5600 echo $ac_n "(cached) $ac_c" 1>&6
5598 else 5601 else
5599 cat > conftest.$ac_ext <<EOF 5602 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure" 5603 #line 5604 "configure"
5601 #include "confdefs.h" 5604 #include "confdefs.h"
5602 #include <alloca.h> 5605 #include <alloca.h>
5603 int main() { 5606 int main() {
5604 char *p = alloca(2 * sizeof(int)); 5607 char *p = alloca(2 * sizeof(int));
5605 ; return 0; } 5608 ; return 0; }
5606 EOF 5609 EOF
5607 if { (eval echo configure:5608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5610 if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5608 rm -rf conftest* 5611 rm -rf conftest*
5609 ac_cv_header_alloca_h=yes 5612 ac_cv_header_alloca_h=yes
5610 else 5613 else
5611 echo "configure: failed program was:" >&5 5614 echo "configure: failed program was:" >&5
5612 cat conftest.$ac_ext >&5 5615 cat conftest.$ac_ext >&5
5623 EOF 5626 EOF
5624 5627
5625 fi 5628 fi
5626 5629
5627 echo $ac_n "checking for alloca""... $ac_c" 1>&6 5630 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5628 echo "configure:5629: checking for alloca" >&5 5631 echo "configure:5632: checking for alloca" >&5
5629 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 5632 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6 5633 echo $ac_n "(cached) $ac_c" 1>&6
5631 else 5634 else
5632 cat > conftest.$ac_ext <<EOF 5635 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure" 5636 #line 5637 "configure"
5634 #include "confdefs.h" 5637 #include "confdefs.h"
5635 5638
5636 #ifdef __GNUC__ 5639 #ifdef __GNUC__
5637 # define alloca __builtin_alloca 5640 # define alloca __builtin_alloca
5638 #else 5641 #else
5656 5659
5657 int main() { 5660 int main() {
5658 char *p = (char *) alloca(1); 5661 char *p = (char *) alloca(1);
5659 ; return 0; } 5662 ; return 0; }
5660 EOF 5663 EOF
5661 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5664 if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5662 rm -rf conftest* 5665 rm -rf conftest*
5663 ac_cv_func_alloca_works=yes 5666 ac_cv_func_alloca_works=yes
5664 else 5667 else
5665 echo "configure: failed program was:" >&5 5668 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5 5669 cat conftest.$ac_ext >&5
5688 #define C_ALLOCA 1 5691 #define C_ALLOCA 1
5689 EOF 5692 EOF
5690 5693
5691 5694
5692 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 5695 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5693 echo "configure:5694: checking whether alloca needs Cray hooks" >&5 5696 echo "configure:5697: checking whether alloca needs Cray hooks" >&5
5694 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 5697 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5695 echo $ac_n "(cached) $ac_c" 1>&6 5698 echo $ac_n "(cached) $ac_c" 1>&6
5696 else 5699 else
5697 cat > conftest.$ac_ext <<EOF 5700 cat > conftest.$ac_ext <<EOF
5698 #line 5699 "configure" 5701 #line 5702 "configure"
5699 #include "confdefs.h" 5702 #include "confdefs.h"
5700 #if defined(CRAY) && ! defined(CRAY2) 5703 #if defined(CRAY) && ! defined(CRAY2)
5701 webecray 5704 webecray
5702 #else 5705 #else
5703 wenotbecray 5706 wenotbecray
5718 5721
5719 echo "$ac_t""$ac_cv_os_cray" 1>&6 5722 echo "$ac_t""$ac_cv_os_cray" 1>&6
5720 if test $ac_cv_os_cray = yes; then 5723 if test $ac_cv_os_cray = yes; then
5721 for ac_func in _getb67 GETB67 getb67; do 5724 for ac_func in _getb67 GETB67 getb67; do
5722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5723 echo "configure:5724: checking for $ac_func" >&5 5726 echo "configure:5727: checking for $ac_func" >&5
5724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6 5728 echo $ac_n "(cached) $ac_c" 1>&6
5726 else 5729 else
5727 cat > conftest.$ac_ext <<EOF 5730 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure" 5731 #line 5732 "configure"
5729 #include "confdefs.h" 5732 #include "confdefs.h"
5730 /* System header to define __stub macros and hopefully few prototypes, 5733 /* System header to define __stub macros and hopefully few prototypes,
5731 which can conflict with char $ac_func(); below. */ 5734 which can conflict with char $ac_func(); below. */
5732 #include <assert.h> 5735 #include <assert.h>
5733 /* Override any gcc2 internal prototype to avoid an error. */ 5736 /* Override any gcc2 internal prototype to avoid an error. */
5746 $ac_func(); 5749 $ac_func();
5747 #endif 5750 #endif
5748 5751
5749 ; return 0; } 5752 ; return 0; }
5750 EOF 5753 EOF
5751 if { (eval echo configure:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5754 if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5752 rm -rf conftest* 5755 rm -rf conftest*
5753 eval "ac_cv_func_$ac_func=yes" 5756 eval "ac_cv_func_$ac_func=yes"
5754 else 5757 else
5755 echo "configure: failed program was:" >&5 5758 echo "configure: failed program was:" >&5
5756 cat conftest.$ac_ext >&5 5759 cat conftest.$ac_ext >&5
5773 5776
5774 done 5777 done
5775 fi 5778 fi
5776 5779
5777 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 5780 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5778 echo "configure:5779: checking stack direction for C alloca" >&5 5781 echo "configure:5782: checking stack direction for C alloca" >&5
5779 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 5782 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6 5783 echo $ac_n "(cached) $ac_c" 1>&6
5781 else 5784 else
5782 if test "$cross_compiling" = yes; then 5785 if test "$cross_compiling" = yes; then
5783 ac_cv_c_stack_direction=0 5786 ac_cv_c_stack_direction=0
5784 else 5787 else
5785 cat > conftest.$ac_ext <<EOF 5788 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure" 5789 #line 5790 "configure"
5787 #include "confdefs.h" 5790 #include "confdefs.h"
5788 find_stack_direction () 5791 find_stack_direction ()
5789 { 5792 {
5790 static char *addr = 0; 5793 static char *addr = 0;
5791 auto char dummy; 5794 auto char dummy;
5800 main () 5803 main ()
5801 { 5804 {
5802 exit (find_stack_direction() < 0); 5805 exit (find_stack_direction() < 0);
5803 } 5806 }
5804 EOF 5807 EOF
5805 if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5806 then 5809 then
5807 ac_cv_c_stack_direction=1 5810 ac_cv_c_stack_direction=1
5808 else 5811 else
5809 echo "configure: failed program was:" >&5 5812 echo "configure: failed program was:" >&5
5810 cat conftest.$ac_ext >&5 5813 cat conftest.$ac_ext >&5
5825 5828
5826 5829
5827 # fmod, logb, and frexp are found in -lm on most systems. 5830 # fmod, logb, and frexp are found in -lm on most systems.
5828 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 5831 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5829 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 5832 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5830 echo "configure:5831: checking for sqrt in -lm" >&5 5833 echo "configure:5834: checking for sqrt in -lm" >&5
5831 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 5834 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6 5836 echo $ac_n "(cached) $ac_c" 1>&6
5834 else 5837 else
5835 ac_save_LIBS="$LIBS" 5838 ac_save_LIBS="$LIBS"
5836 LIBS="-lm $LIBS" 5839 LIBS="-lm $LIBS"
5837 cat > conftest.$ac_ext <<EOF 5840 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure" 5841 #line 5842 "configure"
5839 #include "confdefs.h" 5842 #include "confdefs.h"
5840 /* Override any gcc2 internal prototype to avoid an error. */ 5843 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2 5844 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */ 5845 builtin and then its argument prototype would still apply. */
5843 char sqrt(); 5846 char sqrt();
5844 5847
5845 int main() { 5848 int main() {
5846 sqrt() 5849 sqrt()
5847 ; return 0; } 5850 ; return 0; }
5848 EOF 5851 EOF
5849 if { (eval echo configure:5850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5852 if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5850 rm -rf conftest* 5853 rm -rf conftest*
5851 eval "ac_cv_lib_$ac_lib_var=yes" 5854 eval "ac_cv_lib_$ac_lib_var=yes"
5852 else 5855 else
5853 echo "configure: failed program was:" >&5 5856 echo "configure: failed program was:" >&5
5854 cat conftest.$ac_ext >&5 5857 cat conftest.$ac_ext >&5
5874 fi 5877 fi
5875 5878
5876 5879
5877 # Check for mail-locking functions in a "mail" library 5880 # Check for mail-locking functions in a "mail" library
5878 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 5881 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5879 echo "configure:5880: checking for maillock in -lmail" >&5 5882 echo "configure:5883: checking for maillock in -lmail" >&5
5880 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 5883 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6 5885 echo $ac_n "(cached) $ac_c" 1>&6
5883 else 5886 else
5884 ac_save_LIBS="$LIBS" 5887 ac_save_LIBS="$LIBS"
5885 LIBS="-lmail $LIBS" 5888 LIBS="-lmail $LIBS"
5886 cat > conftest.$ac_ext <<EOF 5889 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure" 5890 #line 5891 "configure"
5888 #include "confdefs.h" 5891 #include "confdefs.h"
5889 /* Override any gcc2 internal prototype to avoid an error. */ 5892 /* Override any gcc2 internal prototype to avoid an error. */
5890 /* We use char because int might match the return type of a gcc2 5893 /* We use char because int might match the return type of a gcc2
5891 builtin and then its argument prototype would still apply. */ 5894 builtin and then its argument prototype would still apply. */
5892 char maillock(); 5895 char maillock();
5893 5896
5894 int main() { 5897 int main() {
5895 maillock() 5898 maillock()
5896 ; return 0; } 5899 ; return 0; }
5897 EOF 5900 EOF
5898 if { (eval echo configure:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5901 if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5899 rm -rf conftest* 5902 rm -rf conftest*
5900 eval "ac_cv_lib_$ac_lib_var=yes" 5903 eval "ac_cv_lib_$ac_lib_var=yes"
5901 else 5904 else
5902 echo "configure: failed program was:" >&5 5905 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5 5906 cat conftest.$ac_ext >&5
5921 else 5924 else
5922 echo "$ac_t""no" 1>&6 5925 echo "$ac_t""no" 1>&6
5923 fi 5926 fi
5924 5927
5925 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 5928 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5926 echo "configure:5927: checking for maillock in -llockfile" >&5 5929 echo "configure:5930: checking for maillock in -llockfile" >&5
5927 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 5930 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5929 echo $ac_n "(cached) $ac_c" 1>&6 5932 echo $ac_n "(cached) $ac_c" 1>&6
5930 else 5933 else
5931 ac_save_LIBS="$LIBS" 5934 ac_save_LIBS="$LIBS"
5932 LIBS="-llockfile $LIBS" 5935 LIBS="-llockfile $LIBS"
5933 cat > conftest.$ac_ext <<EOF 5936 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure" 5937 #line 5938 "configure"
5935 #include "confdefs.h" 5938 #include "confdefs.h"
5936 /* Override any gcc2 internal prototype to avoid an error. */ 5939 /* Override any gcc2 internal prototype to avoid an error. */
5937 /* We use char because int might match the return type of a gcc2 5940 /* We use char because int might match the return type of a gcc2
5938 builtin and then its argument prototype would still apply. */ 5941 builtin and then its argument prototype would still apply. */
5939 char maillock(); 5942 char maillock();
5940 5943
5941 int main() { 5944 int main() {
5942 maillock() 5945 maillock()
5943 ; return 0; } 5946 ; return 0; }
5944 EOF 5947 EOF
5945 if { (eval echo configure:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5946 rm -rf conftest* 5949 rm -rf conftest*
5947 eval "ac_cv_lib_$ac_lib_var=yes" 5950 eval "ac_cv_lib_$ac_lib_var=yes"
5948 else 5951 else
5949 echo "configure: failed program was:" >&5 5952 echo "configure: failed program was:" >&5
5950 cat conftest.$ac_ext >&5 5953 cat conftest.$ac_ext >&5
5974 # (no liblockfile.a installed), ensure that we don't need to. 5977 # (no liblockfile.a installed), ensure that we don't need to.
5975 if test "$ac_cv_lib_lockfile_maillock" = no; then 5978 if test "$ac_cv_lib_lockfile_maillock" = no; then
5976 # Extract the first word of "liblockfile.so", so it can be a program name with args. 5979 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5977 set dummy liblockfile.so; ac_word=$2 5980 set dummy liblockfile.so; ac_word=$2
5978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5979 echo "configure:5980: checking for $ac_word" >&5 5982 echo "configure:5983: checking for $ac_word" >&5
5980 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 5983 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5981 echo $ac_n "(cached) $ac_c" 1>&6 5984 echo $ac_n "(cached) $ac_c" 1>&6
5982 else 5985 else
5983 if test -n "$liblockfile"; then 5986 if test -n "$liblockfile"; then
5984 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 5987 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
6015 else : 6018 else :
6016 fi 6019 fi
6017 for ac_func in touchlock 6020 for ac_func in touchlock
6018 do 6021 do
6019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6020 echo "configure:6021: checking for $ac_func" >&5 6023 echo "configure:6024: checking for $ac_func" >&5
6021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6 6025 echo $ac_n "(cached) $ac_c" 1>&6
6023 else 6026 else
6024 cat > conftest.$ac_ext <<EOF 6027 cat > conftest.$ac_ext <<EOF
6025 #line 6026 "configure" 6028 #line 6029 "configure"
6026 #include "confdefs.h" 6029 #include "confdefs.h"
6027 /* System header to define __stub macros and hopefully few prototypes, 6030 /* System header to define __stub macros and hopefully few prototypes,
6028 which can conflict with char $ac_func(); below. */ 6031 which can conflict with char $ac_func(); below. */
6029 #include <assert.h> 6032 #include <assert.h>
6030 /* Override any gcc2 internal prototype to avoid an error. */ 6033 /* Override any gcc2 internal prototype to avoid an error. */
6043 $ac_func(); 6046 $ac_func();
6044 #endif 6047 #endif
6045 6048
6046 ; return 0; } 6049 ; return 0; }
6047 EOF 6050 EOF
6048 if { (eval echo configure:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6051 if { (eval echo configure:6052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6049 rm -rf conftest* 6052 rm -rf conftest*
6050 eval "ac_cv_func_$ac_func=yes" 6053 eval "ac_cv_func_$ac_func=yes"
6051 else 6054 else
6052 echo "configure: failed program was:" >&5 6055 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5 6056 cat conftest.$ac_ext >&5
6071 6074
6072 for ac_hdr in maillock.h 6075 for ac_hdr in maillock.h
6073 do 6076 do
6074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6076 echo "configure:6077: checking for $ac_hdr" >&5 6079 echo "configure:6080: checking for $ac_hdr" >&5
6077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6078 echo $ac_n "(cached) $ac_c" 1>&6 6081 echo $ac_n "(cached) $ac_c" 1>&6
6079 else 6082 else
6080 cat > conftest.$ac_ext <<EOF 6083 cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure" 6084 #line 6085 "configure"
6082 #include "confdefs.h" 6085 #include "confdefs.h"
6083 #include <$ac_hdr> 6086 #include <$ac_hdr>
6084 EOF 6087 EOF
6085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6086 { (eval echo configure:6087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6089 { (eval echo configure:6090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6088 if test -z "$ac_err"; then 6091 if test -z "$ac_err"; then
6089 rm -rf conftest* 6092 rm -rf conftest*
6090 eval "ac_cv_header_$ac_safe=yes" 6093 eval "ac_cv_header_$ac_safe=yes"
6091 else 6094 else
6117 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ 6120 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
6118 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ 6121 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
6119 gai_strerror mkstemp 6122 gai_strerror mkstemp
6120 do 6123 do
6121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6122 echo "configure:6123: checking for $ac_func" >&5 6125 echo "configure:6126: checking for $ac_func" >&5
6123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6124 echo $ac_n "(cached) $ac_c" 1>&6 6127 echo $ac_n "(cached) $ac_c" 1>&6
6125 else 6128 else
6126 cat > conftest.$ac_ext <<EOF 6129 cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure" 6130 #line 6131 "configure"
6128 #include "confdefs.h" 6131 #include "confdefs.h"
6129 /* System header to define __stub macros and hopefully few prototypes, 6132 /* System header to define __stub macros and hopefully few prototypes,
6130 which can conflict with char $ac_func(); below. */ 6133 which can conflict with char $ac_func(); below. */
6131 #include <assert.h> 6134 #include <assert.h>
6132 /* Override any gcc2 internal prototype to avoid an error. */ 6135 /* Override any gcc2 internal prototype to avoid an error. */
6145 $ac_func(); 6148 $ac_func();
6146 #endif 6149 #endif
6147 6150
6148 ; return 0; } 6151 ; return 0; }
6149 EOF 6152 EOF
6150 if { (eval echo configure:6151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6153 if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6151 rm -rf conftest* 6154 rm -rf conftest*
6152 eval "ac_cv_func_$ac_func=yes" 6155 eval "ac_cv_func_$ac_func=yes"
6153 else 6156 else
6154 echo "configure: failed program was:" >&5 6157 echo "configure: failed program was:" >&5
6155 cat conftest.$ac_ext >&5 6158 cat conftest.$ac_ext >&5
6174 6177
6175 for ac_hdr in sys/time.h unistd.h 6178 for ac_hdr in sys/time.h unistd.h
6176 do 6179 do
6177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6179 echo "configure:6180: checking for $ac_hdr" >&5 6182 echo "configure:6183: checking for $ac_hdr" >&5
6180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6183 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6181 echo $ac_n "(cached) $ac_c" 1>&6 6184 echo $ac_n "(cached) $ac_c" 1>&6
6182 else 6185 else
6183 cat > conftest.$ac_ext <<EOF 6186 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure" 6187 #line 6188 "configure"
6185 #include "confdefs.h" 6188 #include "confdefs.h"
6186 #include <$ac_hdr> 6189 #include <$ac_hdr>
6187 EOF 6190 EOF
6188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6189 { (eval echo configure:6190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6192 { (eval echo configure:6193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6191 if test -z "$ac_err"; then 6194 if test -z "$ac_err"; then
6192 rm -rf conftest* 6195 rm -rf conftest*
6193 eval "ac_cv_header_$ac_safe=yes" 6196 eval "ac_cv_header_$ac_safe=yes"
6194 else 6197 else
6213 done 6216 done
6214 6217
6215 for ac_func in alarm 6218 for ac_func in alarm
6216 do 6219 do
6217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6218 echo "configure:6219: checking for $ac_func" >&5 6221 echo "configure:6222: checking for $ac_func" >&5
6219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6220 echo $ac_n "(cached) $ac_c" 1>&6 6223 echo $ac_n "(cached) $ac_c" 1>&6
6221 else 6224 else
6222 cat > conftest.$ac_ext <<EOF 6225 cat > conftest.$ac_ext <<EOF
6223 #line 6224 "configure" 6226 #line 6227 "configure"
6224 #include "confdefs.h" 6227 #include "confdefs.h"
6225 /* System header to define __stub macros and hopefully few prototypes, 6228 /* System header to define __stub macros and hopefully few prototypes,
6226 which can conflict with char $ac_func(); below. */ 6229 which can conflict with char $ac_func(); below. */
6227 #include <assert.h> 6230 #include <assert.h>
6228 /* Override any gcc2 internal prototype to avoid an error. */ 6231 /* Override any gcc2 internal prototype to avoid an error. */
6241 $ac_func(); 6244 $ac_func();
6242 #endif 6245 #endif
6243 6246
6244 ; return 0; } 6247 ; return 0; }
6245 EOF 6248 EOF
6246 if { (eval echo configure:6247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6249 if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6247 rm -rf conftest* 6250 rm -rf conftest*
6248 eval "ac_cv_func_$ac_func=yes" 6251 eval "ac_cv_func_$ac_func=yes"
6249 else 6252 else
6250 echo "configure: failed program was:" >&5 6253 echo "configure: failed program was:" >&5
6251 cat conftest.$ac_ext >&5 6254 cat conftest.$ac_ext >&5
6266 echo "$ac_t""no" 1>&6 6269 echo "$ac_t""no" 1>&6
6267 fi 6270 fi
6268 done 6271 done
6269 6272
6270 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 6273 echo $ac_n "checking for working mktime""... $ac_c" 1>&6
6271 echo "configure:6272: checking for working mktime" >&5 6274 echo "configure:6275: checking for working mktime" >&5
6272 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then 6275 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6 6276 echo $ac_n "(cached) $ac_c" 1>&6
6274 else 6277 else
6275 if test "$cross_compiling" = yes; then 6278 if test "$cross_compiling" = yes; then
6276 ac_cv_func_working_mktime=no 6279 ac_cv_func_working_mktime=no
6277 else 6280 else
6278 cat > conftest.$ac_ext <<EOF 6281 cat > conftest.$ac_ext <<EOF
6279 #line 6280 "configure" 6282 #line 6283 "configure"
6280 #include "confdefs.h" 6283 #include "confdefs.h"
6281 /* Test program from Paul Eggert (eggert@twinsun.com) 6284 /* Test program from Paul Eggert (eggert@twinsun.com)
6282 and Tony Leneis (tony@plaza.ds.adp.com). */ 6285 and Tony Leneis (tony@plaza.ds.adp.com). */
6283 #if TIME_WITH_SYS_TIME 6286 #if TIME_WITH_SYS_TIME
6284 # include <sys/time.h> 6287 # include <sys/time.h>
6423 irix_6_4_bug (); 6426 irix_6_4_bug ();
6424 spring_forward_gap (); 6427 spring_forward_gap ();
6425 exit (0); 6428 exit (0);
6426 } 6429 }
6427 EOF 6430 EOF
6428 if { (eval echo configure:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6431 if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6429 then 6432 then
6430 ac_cv_func_working_mktime=yes 6433 ac_cv_func_working_mktime=yes
6431 else 6434 else
6432 echo "configure: failed program was:" >&5 6435 echo "configure: failed program was:" >&5
6433 cat conftest.$ac_ext >&5 6436 cat conftest.$ac_ext >&5
6455 6458
6456 # Some systems with -lutil have (and need) -lkvm as well, some do not. 6459 # Some systems with -lutil have (and need) -lkvm as well, some do not.
6457 # On Solaris, -lkvm requires nlist from -lelf, so check that first 6460 # On Solaris, -lkvm requires nlist from -lelf, so check that first
6458 # to get the right answer into the cache. 6461 # to get the right answer into the cache.
6459 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 6462 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
6460 echo "configure:6461: checking for elf_begin in -lelf" >&5 6463 echo "configure:6464: checking for elf_begin in -lelf" >&5
6461 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` 6464 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
6462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6463 echo $ac_n "(cached) $ac_c" 1>&6 6466 echo $ac_n "(cached) $ac_c" 1>&6
6464 else 6467 else
6465 ac_save_LIBS="$LIBS" 6468 ac_save_LIBS="$LIBS"
6466 LIBS="-lelf $LIBS" 6469 LIBS="-lelf $LIBS"
6467 cat > conftest.$ac_ext <<EOF 6470 cat > conftest.$ac_ext <<EOF
6468 #line 6469 "configure" 6471 #line 6472 "configure"
6469 #include "confdefs.h" 6472 #include "confdefs.h"
6470 /* Override any gcc2 internal prototype to avoid an error. */ 6473 /* Override any gcc2 internal prototype to avoid an error. */
6471 /* We use char because int might match the return type of a gcc2 6474 /* We use char because int might match the return type of a gcc2
6472 builtin and then its argument prototype would still apply. */ 6475 builtin and then its argument prototype would still apply. */
6473 char elf_begin(); 6476 char elf_begin();
6474 6477
6475 int main() { 6478 int main() {
6476 elf_begin() 6479 elf_begin()
6477 ; return 0; } 6480 ; return 0; }
6478 EOF 6481 EOF
6479 if { (eval echo configure:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6482 if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6480 rm -rf conftest* 6483 rm -rf conftest*
6481 eval "ac_cv_lib_$ac_lib_var=yes" 6484 eval "ac_cv_lib_$ac_lib_var=yes"
6482 else 6485 else
6483 echo "configure: failed program was:" >&5 6486 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5 6487 cat conftest.$ac_ext >&5
6495 else 6498 else
6496 echo "$ac_t""no" 1>&6 6499 echo "$ac_t""no" 1>&6
6497 fi 6500 fi
6498 6501
6499 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 6502 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
6500 echo "configure:6501: checking for kvm_open in -lkvm" >&5 6503 echo "configure:6504: checking for kvm_open in -lkvm" >&5
6501 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` 6504 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
6502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6503 echo $ac_n "(cached) $ac_c" 1>&6 6506 echo $ac_n "(cached) $ac_c" 1>&6
6504 else 6507 else
6505 ac_save_LIBS="$LIBS" 6508 ac_save_LIBS="$LIBS"
6506 LIBS="-lkvm $LIBS" 6509 LIBS="-lkvm $LIBS"
6507 cat > conftest.$ac_ext <<EOF 6510 cat > conftest.$ac_ext <<EOF
6508 #line 6509 "configure" 6511 #line 6512 "configure"
6509 #include "confdefs.h" 6512 #include "confdefs.h"
6510 /* Override any gcc2 internal prototype to avoid an error. */ 6513 /* Override any gcc2 internal prototype to avoid an error. */
6511 /* We use char because int might match the return type of a gcc2 6514 /* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */ 6515 builtin and then its argument prototype would still apply. */
6513 char kvm_open(); 6516 char kvm_open();
6514 6517
6515 int main() { 6518 int main() {
6516 kvm_open() 6519 kvm_open()
6517 ; return 0; } 6520 ; return 0; }
6518 EOF 6521 EOF
6519 if { (eval echo configure:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6522 if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6520 rm -rf conftest* 6523 rm -rf conftest*
6521 eval "ac_cv_lib_$ac_lib_var=yes" 6524 eval "ac_cv_lib_$ac_lib_var=yes"
6522 else 6525 else
6523 echo "configure: failed program was:" >&5 6526 echo "configure: failed program was:" >&5
6524 cat conftest.$ac_ext >&5 6527 cat conftest.$ac_ext >&5
6536 echo "$ac_t""no" 1>&6 6539 echo "$ac_t""no" 1>&6
6537 fi 6540 fi
6538 6541
6539 # Check for the 4.4BSD definition of getloadavg. 6542 # Check for the 4.4BSD definition of getloadavg.
6540 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 6543 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
6541 echo "configure:6542: checking for getloadavg in -lutil" >&5 6544 echo "configure:6545: checking for getloadavg in -lutil" >&5
6542 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` 6545 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
6543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6546 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6544 echo $ac_n "(cached) $ac_c" 1>&6 6547 echo $ac_n "(cached) $ac_c" 1>&6
6545 else 6548 else
6546 ac_save_LIBS="$LIBS" 6549 ac_save_LIBS="$LIBS"
6547 LIBS="-lutil $LIBS" 6550 LIBS="-lutil $LIBS"
6548 cat > conftest.$ac_ext <<EOF 6551 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure" 6552 #line 6553 "configure"
6550 #include "confdefs.h" 6553 #include "confdefs.h"
6551 /* Override any gcc2 internal prototype to avoid an error. */ 6554 /* Override any gcc2 internal prototype to avoid an error. */
6552 /* We use char because int might match the return type of a gcc2 6555 /* We use char because int might match the return type of a gcc2
6553 builtin and then its argument prototype would still apply. */ 6556 builtin and then its argument prototype would still apply. */
6554 char getloadavg(); 6557 char getloadavg();
6555 6558
6556 int main() { 6559 int main() {
6557 getloadavg() 6560 getloadavg()
6558 ; return 0; } 6561 ; return 0; }
6559 EOF 6562 EOF
6560 if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6563 if { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6561 rm -rf conftest* 6564 rm -rf conftest*
6562 eval "ac_cv_lib_$ac_lib_var=yes" 6565 eval "ac_cv_lib_$ac_lib_var=yes"
6563 else 6566 else
6564 echo "configure: failed program was:" >&5 6567 echo "configure: failed program was:" >&5
6565 cat conftest.$ac_ext >&5 6568 cat conftest.$ac_ext >&5
6581 if test $ac_have_func = no; then 6584 if test $ac_have_func = no; then
6582 # There is a commonly available library for RS/6000 AIX. 6585 # There is a commonly available library for RS/6000 AIX.
6583 # Since it is not a standard part of AIX, it might be installed locally. 6586 # Since it is not a standard part of AIX, it might be installed locally.
6584 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" 6587 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
6585 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 6588 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
6586 echo "configure:6587: checking for getloadavg in -lgetloadavg" >&5 6589 echo "configure:6590: checking for getloadavg in -lgetloadavg" >&5
6587 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` 6590 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
6588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6589 echo $ac_n "(cached) $ac_c" 1>&6 6592 echo $ac_n "(cached) $ac_c" 1>&6
6590 else 6593 else
6591 ac_save_LIBS="$LIBS" 6594 ac_save_LIBS="$LIBS"
6592 LIBS="-lgetloadavg $LIBS" 6595 LIBS="-lgetloadavg $LIBS"
6593 cat > conftest.$ac_ext <<EOF 6596 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure" 6597 #line 6598 "configure"
6595 #include "confdefs.h" 6598 #include "confdefs.h"
6596 /* Override any gcc2 internal prototype to avoid an error. */ 6599 /* Override any gcc2 internal prototype to avoid an error. */
6597 /* We use char because int might match the return type of a gcc2 6600 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */ 6601 builtin and then its argument prototype would still apply. */
6599 char getloadavg(); 6602 char getloadavg();
6600 6603
6601 int main() { 6604 int main() {
6602 getloadavg() 6605 getloadavg()
6603 ; return 0; } 6606 ; return 0; }
6604 EOF 6607 EOF
6605 if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6608 if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6606 rm -rf conftest* 6609 rm -rf conftest*
6607 eval "ac_cv_lib_$ac_lib_var=yes" 6610 eval "ac_cv_lib_$ac_lib_var=yes"
6608 else 6611 else
6609 echo "configure: failed program was:" >&5 6612 echo "configure: failed program was:" >&5
6610 cat conftest.$ac_ext >&5 6613 cat conftest.$ac_ext >&5
6627 6630
6628 # Make sure it is really in the library, if we think we found it. 6631 # Make sure it is really in the library, if we think we found it.
6629 for ac_func in getloadavg 6632 for ac_func in getloadavg
6630 do 6633 do
6631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6632 echo "configure:6633: checking for $ac_func" >&5 6635 echo "configure:6636: checking for $ac_func" >&5
6633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6 6637 echo $ac_n "(cached) $ac_c" 1>&6
6635 else 6638 else
6636 cat > conftest.$ac_ext <<EOF 6639 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure" 6640 #line 6641 "configure"
6638 #include "confdefs.h" 6641 #include "confdefs.h"
6639 /* System header to define __stub macros and hopefully few prototypes, 6642 /* System header to define __stub macros and hopefully few prototypes,
6640 which can conflict with char $ac_func(); below. */ 6643 which can conflict with char $ac_func(); below. */
6641 #include <assert.h> 6644 #include <assert.h>
6642 /* Override any gcc2 internal prototype to avoid an error. */ 6645 /* Override any gcc2 internal prototype to avoid an error. */
6655 $ac_func(); 6658 $ac_func();
6656 #endif 6659 #endif
6657 6660
6658 ; return 0; } 6661 ; return 0; }
6659 EOF 6662 EOF
6660 if { (eval echo configure:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6663 if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661 rm -rf conftest* 6664 rm -rf conftest*
6662 eval "ac_cv_func_$ac_func=yes" 6665 eval "ac_cv_func_$ac_func=yes"
6663 else 6666 else
6664 echo "configure: failed program was:" >&5 6667 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5 6668 cat conftest.$ac_ext >&5
6693 else 6696 else
6694 # Figure out what our getloadavg.c needs. 6697 # Figure out what our getloadavg.c needs.
6695 ac_have_func=no 6698 ac_have_func=no
6696 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` 6699 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
6697 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 6700 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
6698 echo "configure:6699: checking for sys/dg_sys_info.h" >&5 6701 echo "configure:6702: checking for sys/dg_sys_info.h" >&5
6699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6700 echo $ac_n "(cached) $ac_c" 1>&6 6703 echo $ac_n "(cached) $ac_c" 1>&6
6701 else 6704 else
6702 cat > conftest.$ac_ext <<EOF 6705 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure" 6706 #line 6707 "configure"
6704 #include "confdefs.h" 6707 #include "confdefs.h"
6705 #include <sys/dg_sys_info.h> 6708 #include <sys/dg_sys_info.h>
6706 EOF 6709 EOF
6707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6708 { (eval echo configure:6709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6711 { (eval echo configure:6712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6710 if test -z "$ac_err"; then 6713 if test -z "$ac_err"; then
6711 rm -rf conftest* 6714 rm -rf conftest*
6712 eval "ac_cv_header_$ac_safe=yes" 6715 eval "ac_cv_header_$ac_safe=yes"
6713 else 6716 else
6724 ac_have_func=yes; cat >> confdefs.h <<\EOF 6727 ac_have_func=yes; cat >> confdefs.h <<\EOF
6725 #define DGUX 1 6728 #define DGUX 1
6726 EOF 6729 EOF
6727 6730
6728 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 6731 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
6729 echo "configure:6730: checking for dg_sys_info in -ldgc" >&5 6732 echo "configure:6733: checking for dg_sys_info in -ldgc" >&5
6730 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` 6733 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
6731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6732 echo $ac_n "(cached) $ac_c" 1>&6 6735 echo $ac_n "(cached) $ac_c" 1>&6
6733 else 6736 else
6734 ac_save_LIBS="$LIBS" 6737 ac_save_LIBS="$LIBS"
6735 LIBS="-ldgc $LIBS" 6738 LIBS="-ldgc $LIBS"
6736 cat > conftest.$ac_ext <<EOF 6739 cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure" 6740 #line 6741 "configure"
6738 #include "confdefs.h" 6741 #include "confdefs.h"
6739 /* Override any gcc2 internal prototype to avoid an error. */ 6742 /* Override any gcc2 internal prototype to avoid an error. */
6740 /* We use char because int might match the return type of a gcc2 6743 /* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */ 6744 builtin and then its argument prototype would still apply. */
6742 char dg_sys_info(); 6745 char dg_sys_info();
6743 6746
6744 int main() { 6747 int main() {
6745 dg_sys_info() 6748 dg_sys_info()
6746 ; return 0; } 6749 ; return 0; }
6747 EOF 6750 EOF
6748 if { (eval echo configure:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6751 if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6749 rm -rf conftest* 6752 rm -rf conftest*
6750 eval "ac_cv_lib_$ac_lib_var=yes" 6753 eval "ac_cv_lib_$ac_lib_var=yes"
6751 else 6754 else
6752 echo "configure: failed program was:" >&5 6755 echo "configure: failed program was:" >&5
6753 cat conftest.$ac_ext >&5 6756 cat conftest.$ac_ext >&5
6788 fi 6791 fi
6789 6792
6790 if test $ac_have_func = no; then 6793 if test $ac_have_func = no; then
6791 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` 6794 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
6792 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 6795 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
6793 echo "configure:6794: checking for inq_stats/cpustats.h" >&5 6796 echo "configure:6797: checking for inq_stats/cpustats.h" >&5
6794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6797 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6795 echo $ac_n "(cached) $ac_c" 1>&6 6798 echo $ac_n "(cached) $ac_c" 1>&6
6796 else 6799 else
6797 cat > conftest.$ac_ext <<EOF 6800 cat > conftest.$ac_ext <<EOF
6798 #line 6799 "configure" 6801 #line 6802 "configure"
6799 #include "confdefs.h" 6802 #include "confdefs.h"
6800 #include <inq_stats/cpustats.h> 6803 #include <inq_stats/cpustats.h>
6801 EOF 6804 EOF
6802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6803 { (eval echo configure:6804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6806 { (eval echo configure:6807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6805 if test -z "$ac_err"; then 6808 if test -z "$ac_err"; then
6806 rm -rf conftest* 6809 rm -rf conftest*
6807 eval "ac_cv_header_$ac_safe=yes" 6810 eval "ac_cv_header_$ac_safe=yes"
6808 else 6811 else
6831 fi 6834 fi
6832 6835
6833 if test $ac_have_func = no; then 6836 if test $ac_have_func = no; then
6834 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` 6837 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
6835 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 6838 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
6836 echo "configure:6837: checking for sys/cpustats.h" >&5 6839 echo "configure:6840: checking for sys/cpustats.h" >&5
6837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6838 echo $ac_n "(cached) $ac_c" 1>&6 6841 echo $ac_n "(cached) $ac_c" 1>&6
6839 else 6842 else
6840 cat > conftest.$ac_ext <<EOF 6843 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure" 6844 #line 6845 "configure"
6842 #include "confdefs.h" 6845 #include "confdefs.h"
6843 #include <sys/cpustats.h> 6846 #include <sys/cpustats.h>
6844 EOF 6847 EOF
6845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6846 { (eval echo configure:6847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6849 { (eval echo configure:6850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6848 if test -z "$ac_err"; then 6851 if test -z "$ac_err"; then
6849 rm -rf conftest* 6852 rm -rf conftest*
6850 eval "ac_cv_header_$ac_safe=yes" 6853 eval "ac_cv_header_$ac_safe=yes"
6851 else 6854 else
6872 if test $ac_have_func = no; then 6875 if test $ac_have_func = no; then
6873 for ac_hdr in mach/mach.h 6876 for ac_hdr in mach/mach.h
6874 do 6877 do
6875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6877 echo "configure:6878: checking for $ac_hdr" >&5 6880 echo "configure:6881: checking for $ac_hdr" >&5
6878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6881 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6 6882 echo $ac_n "(cached) $ac_c" 1>&6
6880 else 6883 else
6881 cat > conftest.$ac_ext <<EOF 6884 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure" 6885 #line 6886 "configure"
6883 #include "confdefs.h" 6886 #include "confdefs.h"
6884 #include <$ac_hdr> 6887 #include <$ac_hdr>
6885 EOF 6888 EOF
6886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6887 { (eval echo configure:6888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6890 { (eval echo configure:6891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6889 if test -z "$ac_err"; then 6892 if test -z "$ac_err"; then
6890 rm -rf conftest* 6893 rm -rf conftest*
6891 eval "ac_cv_header_$ac_safe=yes" 6894 eval "ac_cv_header_$ac_safe=yes"
6892 else 6895 else
6912 6915
6913 fi 6916 fi
6914 6917
6915 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 6918 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
6916 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 6919 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
6917 echo "configure:6918: checking for nlist.h" >&5 6920 echo "configure:6921: checking for nlist.h" >&5
6918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6921 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6919 echo $ac_n "(cached) $ac_c" 1>&6 6922 echo $ac_n "(cached) $ac_c" 1>&6
6920 else 6923 else
6921 cat > conftest.$ac_ext <<EOF 6924 cat > conftest.$ac_ext <<EOF
6922 #line 6923 "configure" 6925 #line 6926 "configure"
6923 #include "confdefs.h" 6926 #include "confdefs.h"
6924 #include <nlist.h> 6927 #include <nlist.h>
6925 EOF 6928 EOF
6926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6927 { (eval echo configure:6928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6930 { (eval echo configure:6931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6929 if test -z "$ac_err"; then 6932 if test -z "$ac_err"; then
6930 rm -rf conftest* 6933 rm -rf conftest*
6931 eval "ac_cv_header_$ac_safe=yes" 6934 eval "ac_cv_header_$ac_safe=yes"
6932 else 6935 else
6943 cat >> confdefs.h <<\EOF 6946 cat >> confdefs.h <<\EOF
6944 #define NLIST_STRUCT 1 6947 #define NLIST_STRUCT 1
6945 EOF 6948 EOF
6946 6949
6947 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 6950 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
6948 echo "configure:6949: checking for n_un in struct nlist" >&5 6951 echo "configure:6952: checking for n_un in struct nlist" >&5
6949 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then 6952 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
6950 echo $ac_n "(cached) $ac_c" 1>&6 6953 echo $ac_n "(cached) $ac_c" 1>&6
6951 else 6954 else
6952 cat > conftest.$ac_ext <<EOF 6955 cat > conftest.$ac_ext <<EOF
6953 #line 6954 "configure" 6956 #line 6957 "configure"
6954 #include "confdefs.h" 6957 #include "confdefs.h"
6955 #include <nlist.h> 6958 #include <nlist.h>
6956 int main() { 6959 int main() {
6957 struct nlist n; n.n_un.n_name = 0; 6960 struct nlist n; n.n_un.n_name = 0;
6958 ; return 0; } 6961 ; return 0; }
6959 EOF 6962 EOF
6960 if { (eval echo configure:6961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6963 if { (eval echo configure:6964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6961 rm -rf conftest* 6964 rm -rf conftest*
6962 ac_cv_struct_nlist_n_un=yes 6965 ac_cv_struct_nlist_n_un=yes
6963 else 6966 else
6964 echo "configure: failed program was:" >&5 6967 echo "configure: failed program was:" >&5
6965 cat conftest.$ac_ext >&5 6968 cat conftest.$ac_ext >&5
6982 fi 6985 fi
6983 fi # Do not have getloadavg in system libraries. 6986 fi # Do not have getloadavg in system libraries.
6984 6987
6985 # Some definitions of getloadavg require that the program be installed setgid. 6988 # Some definitions of getloadavg require that the program be installed setgid.
6986 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 6989 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
6987 echo "configure:6988: checking whether getloadavg requires setgid" >&5 6990 echo "configure:6991: checking whether getloadavg requires setgid" >&5
6988 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then 6991 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
6989 echo $ac_n "(cached) $ac_c" 1>&6 6992 echo $ac_n "(cached) $ac_c" 1>&6
6990 else 6993 else
6991 cat > conftest.$ac_ext <<EOF 6994 cat > conftest.$ac_ext <<EOF
6992 #line 6993 "configure" 6995 #line 6996 "configure"
6993 #include "confdefs.h" 6996 #include "confdefs.h"
6994 #include "$srcdir/getloadavg.c" 6997 #include "$srcdir/getloadavg.c"
6995 #ifdef LDAV_PRIVILEGED 6998 #ifdef LDAV_PRIVILEGED
6996 Yowza Am I SETGID yet 6999 Yowza Am I SETGID yet
6997 #endif 7000 #endif
7018 NEED_SETGID=false 7021 NEED_SETGID=false
7019 fi 7022 fi
7020 7023
7021 if test $ac_cv_func_getloadavg_setgid = yes; then 7024 if test $ac_cv_func_getloadavg_setgid = yes; then
7022 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 7025 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
7023 echo "configure:7024: checking group of /dev/kmem" >&5 7026 echo "configure:7027: checking group of /dev/kmem" >&5
7024 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then 7027 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
7025 echo $ac_n "(cached) $ac_c" 1>&6 7028 echo $ac_n "(cached) $ac_c" 1>&6
7026 else 7029 else
7027 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 7030 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
7028 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 7031 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
7039 KMEM_GROUP=$ac_cv_group_kmem 7042 KMEM_GROUP=$ac_cv_group_kmem
7040 fi 7043 fi
7041 7044
7042 7045
7043 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 7046 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
7044 echo "configure:7045: checking for _LARGEFILE_SOURCE value needed for large files" >&5 7047 echo "configure:7048: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7045 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then 7048 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
7046 echo $ac_n "(cached) $ac_c" 1>&6 7049 echo $ac_n "(cached) $ac_c" 1>&6
7047 else 7050 else
7048 ac_cv_sys_largefile_source=no 7051 ac_cv_sys_largefile_source=no
7049 cat > conftest.$ac_ext <<EOF 7052 cat > conftest.$ac_ext <<EOF
7050 #line 7051 "configure" 7053 #line 7054 "configure"
7051 #include "confdefs.h" 7054 #include "confdefs.h"
7052 #include <stdio.h> 7055 #include <stdio.h>
7053 int main() { 7056 int main() {
7054 return !fseeko; 7057 return !fseeko;
7055 ; return 0; } 7058 ; return 0; }
7056 EOF 7059 EOF
7057 if { (eval echo configure:7058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7060 if { (eval echo configure:7061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7058 : 7061 :
7059 else 7062 else
7060 echo "configure: failed program was:" >&5 7063 echo "configure: failed program was:" >&5
7061 cat conftest.$ac_ext >&5 7064 cat conftest.$ac_ext >&5
7062 rm -rf conftest* 7065 rm -rf conftest*
7063 cat > conftest.$ac_ext <<EOF 7066 cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure" 7067 #line 7068 "configure"
7065 #include "confdefs.h" 7068 #include "confdefs.h"
7066 #define _LARGEFILE_SOURCE 1 7069 #define _LARGEFILE_SOURCE 1
7067 #include <stdio.h> 7070 #include <stdio.h>
7068 7071
7069 int main() { 7072 int main() {
7070 return !fseeko; 7073 return !fseeko;
7071 ; return 0; } 7074 ; return 0; }
7072 EOF 7075 EOF
7073 if { (eval echo configure:7074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7076 if { (eval echo configure:7077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7074 rm -rf conftest* 7077 rm -rf conftest*
7075 ac_cv_sys_largefile_source=1 7078 ac_cv_sys_largefile_source=1
7076 else 7079 else
7077 echo "configure: failed program was:" >&5 7080 echo "configure: failed program was:" >&5
7078 cat conftest.$ac_ext >&5 7081 cat conftest.$ac_ext >&5
7092 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 7095 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7093 # in glibc 2.1.3, but that breaks too many other things. 7096 # in glibc 2.1.3, but that breaks too many other things.
7094 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 7097 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7095 7098
7096 echo $ac_n "checking for fseeko""... $ac_c" 1>&6 7099 echo $ac_n "checking for fseeko""... $ac_c" 1>&6
7097 echo "configure:7098: checking for fseeko" >&5 7100 echo "configure:7101: checking for fseeko" >&5
7098 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then 7101 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then
7099 echo $ac_n "(cached) $ac_c" 1>&6 7102 echo $ac_n "(cached) $ac_c" 1>&6
7100 else 7103 else
7101 ac_cv_func_fseeko=no 7104 ac_cv_func_fseeko=no
7102 cat > conftest.$ac_ext <<EOF 7105 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure" 7106 #line 7107 "configure"
7104 #include "confdefs.h" 7107 #include "confdefs.h"
7105 #include <stdio.h> 7108 #include <stdio.h>
7106 int main() { 7109 int main() {
7107 return fseeko && fseeko (stdin, 0, 0); 7110 return fseeko && fseeko (stdin, 0, 0);
7108 ; return 0; } 7111 ; return 0; }
7109 EOF 7112 EOF
7110 if { (eval echo configure:7111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7113 if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7111 rm -rf conftest* 7114 rm -rf conftest*
7112 ac_cv_func_fseeko=yes 7115 ac_cv_func_fseeko=yes
7113 else 7116 else
7114 echo "configure: failed program was:" >&5 7117 echo "configure: failed program was:" >&5
7115 cat conftest.$ac_ext >&5 7118 cat conftest.$ac_ext >&5
7127 7130
7128 # UNIX98 PTYs. 7131 # UNIX98 PTYs.
7129 for ac_func in grantpt 7132 for ac_func in grantpt
7130 do 7133 do
7131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7132 echo "configure:7133: checking for $ac_func" >&5 7135 echo "configure:7136: checking for $ac_func" >&5
7133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7134 echo $ac_n "(cached) $ac_c" 1>&6 7137 echo $ac_n "(cached) $ac_c" 1>&6
7135 else 7138 else
7136 cat > conftest.$ac_ext <<EOF 7139 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure" 7140 #line 7141 "configure"
7138 #include "confdefs.h" 7141 #include "confdefs.h"
7139 /* System header to define __stub macros and hopefully few prototypes, 7142 /* System header to define __stub macros and hopefully few prototypes,
7140 which can conflict with char $ac_func(); below. */ 7143 which can conflict with char $ac_func(); below. */
7141 #include <assert.h> 7144 #include <assert.h>
7142 /* Override any gcc2 internal prototype to avoid an error. */ 7145 /* Override any gcc2 internal prototype to avoid an error. */
7155 $ac_func(); 7158 $ac_func();
7156 #endif 7159 #endif
7157 7160
7158 ; return 0; } 7161 ; return 0; }
7159 EOF 7162 EOF
7160 if { (eval echo configure:7161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7163 if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7161 rm -rf conftest* 7164 rm -rf conftest*
7162 eval "ac_cv_func_$ac_func=yes" 7165 eval "ac_cv_func_$ac_func=yes"
7163 else 7166 else
7164 echo "configure: failed program was:" >&5 7167 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5 7168 cat conftest.$ac_ext >&5
7184 7187
7185 # PTY-related GNU extensions. 7188 # PTY-related GNU extensions.
7186 for ac_func in getpt 7189 for ac_func in getpt
7187 do 7190 do
7188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7189 echo "configure:7190: checking for $ac_func" >&5 7192 echo "configure:7193: checking for $ac_func" >&5
7190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7191 echo $ac_n "(cached) $ac_c" 1>&6 7194 echo $ac_n "(cached) $ac_c" 1>&6
7192 else 7195 else
7193 cat > conftest.$ac_ext <<EOF 7196 cat > conftest.$ac_ext <<EOF
7194 #line 7195 "configure" 7197 #line 7198 "configure"
7195 #include "confdefs.h" 7198 #include "confdefs.h"
7196 /* System header to define __stub macros and hopefully few prototypes, 7199 /* System header to define __stub macros and hopefully few prototypes,
7197 which can conflict with char $ac_func(); below. */ 7200 which can conflict with char $ac_func(); below. */
7198 #include <assert.h> 7201 #include <assert.h>
7199 /* Override any gcc2 internal prototype to avoid an error. */ 7202 /* Override any gcc2 internal prototype to avoid an error. */
7212 $ac_func(); 7215 $ac_func();
7213 #endif 7216 #endif
7214 7217
7215 ; return 0; } 7218 ; return 0; }
7216 EOF 7219 EOF
7217 if { (eval echo configure:7218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7220 if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7218 rm -rf conftest* 7221 rm -rf conftest*
7219 eval "ac_cv_func_$ac_func=yes" 7222 eval "ac_cv_func_$ac_func=yes"
7220 else 7223 else
7221 echo "configure: failed program was:" >&5 7224 echo "configure: failed program was:" >&5
7222 cat conftest.$ac_ext >&5 7225 cat conftest.$ac_ext >&5
7242 # Check this now, so that we will NOT find the above functions in ncurses. 7245 # Check this now, so that we will NOT find the above functions in ncurses.
7243 # That is because we have not set up to link ncurses in lib-src. 7246 # That is because we have not set up to link ncurses in lib-src.
7244 # It's better to believe a function is not available 7247 # It's better to believe a function is not available
7245 # than to expect to find it in ncurses. 7248 # than to expect to find it in ncurses.
7246 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 7249 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
7247 echo "configure:7248: checking for tparm in -lncurses" >&5 7250 echo "configure:7251: checking for tparm in -lncurses" >&5
7248 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 7251 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
7249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7250 echo $ac_n "(cached) $ac_c" 1>&6 7253 echo $ac_n "(cached) $ac_c" 1>&6
7251 else 7254 else
7252 ac_save_LIBS="$LIBS" 7255 ac_save_LIBS="$LIBS"
7253 LIBS="-lncurses $LIBS" 7256 LIBS="-lncurses $LIBS"
7254 cat > conftest.$ac_ext <<EOF 7257 cat > conftest.$ac_ext <<EOF
7255 #line 7256 "configure" 7258 #line 7259 "configure"
7256 #include "confdefs.h" 7259 #include "confdefs.h"
7257 /* Override any gcc2 internal prototype to avoid an error. */ 7260 /* Override any gcc2 internal prototype to avoid an error. */
7258 /* We use char because int might match the return type of a gcc2 7261 /* We use char because int might match the return type of a gcc2
7259 builtin and then its argument prototype would still apply. */ 7262 builtin and then its argument prototype would still apply. */
7260 char tparm(); 7263 char tparm();
7261 7264
7262 int main() { 7265 int main() {
7263 tparm() 7266 tparm()
7264 ; return 0; } 7267 ; return 0; }
7265 EOF 7268 EOF
7266 if { (eval echo configure:7267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7269 if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7267 rm -rf conftest* 7270 rm -rf conftest*
7268 eval "ac_cv_lib_$ac_lib_var=yes" 7271 eval "ac_cv_lib_$ac_lib_var=yes"
7269 else 7272 else
7270 echo "configure: failed program was:" >&5 7273 echo "configure: failed program was:" >&5
7271 cat conftest.$ac_ext >&5 7274 cat conftest.$ac_ext >&5
7292 7295
7293 7296
7294 # These tell us which Kerberos-related libraries to use. 7297 # These tell us which Kerberos-related libraries to use.
7295 if test "${with_kerberos+set}" = set; then 7298 if test "${with_kerberos+set}" = set; then
7296 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 7299 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
7297 echo "configure:7298: checking for com_err in -lcom_err" >&5 7300 echo "configure:7301: checking for com_err in -lcom_err" >&5
7298 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 7301 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
7299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7300 echo $ac_n "(cached) $ac_c" 1>&6 7303 echo $ac_n "(cached) $ac_c" 1>&6
7301 else 7304 else
7302 ac_save_LIBS="$LIBS" 7305 ac_save_LIBS="$LIBS"
7303 LIBS="-lcom_err $LIBS" 7306 LIBS="-lcom_err $LIBS"
7304 cat > conftest.$ac_ext <<EOF 7307 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure" 7308 #line 7309 "configure"
7306 #include "confdefs.h" 7309 #include "confdefs.h"
7307 /* Override any gcc2 internal prototype to avoid an error. */ 7310 /* Override any gcc2 internal prototype to avoid an error. */
7308 /* We use char because int might match the return type of a gcc2 7311 /* We use char because int might match the return type of a gcc2
7309 builtin and then its argument prototype would still apply. */ 7312 builtin and then its argument prototype would still apply. */
7310 char com_err(); 7313 char com_err();
7311 7314
7312 int main() { 7315 int main() {
7313 com_err() 7316 com_err()
7314 ; return 0; } 7317 ; return 0; }
7315 EOF 7318 EOF
7316 if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7319 if { (eval echo configure:7320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7317 rm -rf conftest* 7320 rm -rf conftest*
7318 eval "ac_cv_lib_$ac_lib_var=yes" 7321 eval "ac_cv_lib_$ac_lib_var=yes"
7319 else 7322 else
7320 echo "configure: failed program was:" >&5 7323 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5 7324 cat conftest.$ac_ext >&5
7339 else 7342 else
7340 echo "$ac_t""no" 1>&6 7343 echo "$ac_t""no" 1>&6
7341 fi 7344 fi
7342 7345
7343 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 7346 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
7344 echo "configure:7345: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 7347 echo "configure:7348: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
7345 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7348 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7347 echo $ac_n "(cached) $ac_c" 1>&6 7350 echo $ac_n "(cached) $ac_c" 1>&6
7348 else 7351 else
7349 ac_save_LIBS="$LIBS" 7352 ac_save_LIBS="$LIBS"
7350 LIBS="-lk5crypto $LIBS" 7353 LIBS="-lk5crypto $LIBS"
7351 cat > conftest.$ac_ext <<EOF 7354 cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure" 7355 #line 7356 "configure"
7353 #include "confdefs.h" 7356 #include "confdefs.h"
7354 /* Override any gcc2 internal prototype to avoid an error. */ 7357 /* Override any gcc2 internal prototype to avoid an error. */
7355 /* We use char because int might match the return type of a gcc2 7358 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */ 7359 builtin and then its argument prototype would still apply. */
7357 char mit_des_cbc_encrypt(); 7360 char mit_des_cbc_encrypt();
7358 7361
7359 int main() { 7362 int main() {
7360 mit_des_cbc_encrypt() 7363 mit_des_cbc_encrypt()
7361 ; return 0; } 7364 ; return 0; }
7362 EOF 7365 EOF
7363 if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7366 if { (eval echo configure:7367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7364 rm -rf conftest* 7367 rm -rf conftest*
7365 eval "ac_cv_lib_$ac_lib_var=yes" 7368 eval "ac_cv_lib_$ac_lib_var=yes"
7366 else 7369 else
7367 echo "configure: failed program was:" >&5 7370 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5 7371 cat conftest.$ac_ext >&5
7386 else 7389 else
7387 echo "$ac_t""no" 1>&6 7390 echo "$ac_t""no" 1>&6
7388 fi 7391 fi
7389 7392
7390 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 7393 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
7391 echo "configure:7392: checking for mit_des_cbc_encrypt in -lcrypto" >&5 7394 echo "configure:7395: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7392 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7395 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7394 echo $ac_n "(cached) $ac_c" 1>&6 7397 echo $ac_n "(cached) $ac_c" 1>&6
7395 else 7398 else
7396 ac_save_LIBS="$LIBS" 7399 ac_save_LIBS="$LIBS"
7397 LIBS="-lcrypto $LIBS" 7400 LIBS="-lcrypto $LIBS"
7398 cat > conftest.$ac_ext <<EOF 7401 cat > conftest.$ac_ext <<EOF
7399 #line 7400 "configure" 7402 #line 7403 "configure"
7400 #include "confdefs.h" 7403 #include "confdefs.h"
7401 /* Override any gcc2 internal prototype to avoid an error. */ 7404 /* Override any gcc2 internal prototype to avoid an error. */
7402 /* We use char because int might match the return type of a gcc2 7405 /* We use char because int might match the return type of a gcc2
7403 builtin and then its argument prototype would still apply. */ 7406 builtin and then its argument prototype would still apply. */
7404 char mit_des_cbc_encrypt(); 7407 char mit_des_cbc_encrypt();
7405 7408
7406 int main() { 7409 int main() {
7407 mit_des_cbc_encrypt() 7410 mit_des_cbc_encrypt()
7408 ; return 0; } 7411 ; return 0; }
7409 EOF 7412 EOF
7410 if { (eval echo configure:7411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7413 if { (eval echo configure:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7411 rm -rf conftest* 7414 rm -rf conftest*
7412 eval "ac_cv_lib_$ac_lib_var=yes" 7415 eval "ac_cv_lib_$ac_lib_var=yes"
7413 else 7416 else
7414 echo "configure: failed program was:" >&5 7417 echo "configure: failed program was:" >&5
7415 cat conftest.$ac_ext >&5 7418 cat conftest.$ac_ext >&5
7433 else 7436 else
7434 echo "$ac_t""no" 1>&6 7437 echo "$ac_t""no" 1>&6
7435 fi 7438 fi
7436 7439
7437 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 7440 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
7438 echo "configure:7439: checking for krb5_init_context in -lkrb5" >&5 7441 echo "configure:7442: checking for krb5_init_context in -lkrb5" >&5
7439 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` 7442 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
7440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7441 echo $ac_n "(cached) $ac_c" 1>&6 7444 echo $ac_n "(cached) $ac_c" 1>&6
7442 else 7445 else
7443 ac_save_LIBS="$LIBS" 7446 ac_save_LIBS="$LIBS"
7444 LIBS="-lkrb5 $LIBS" 7447 LIBS="-lkrb5 $LIBS"
7445 cat > conftest.$ac_ext <<EOF 7448 cat > conftest.$ac_ext <<EOF
7446 #line 7447 "configure" 7449 #line 7450 "configure"
7447 #include "confdefs.h" 7450 #include "confdefs.h"
7448 /* Override any gcc2 internal prototype to avoid an error. */ 7451 /* Override any gcc2 internal prototype to avoid an error. */
7449 /* We use char because int might match the return type of a gcc2 7452 /* We use char because int might match the return type of a gcc2
7450 builtin and then its argument prototype would still apply. */ 7453 builtin and then its argument prototype would still apply. */
7451 char krb5_init_context(); 7454 char krb5_init_context();
7452 7455
7453 int main() { 7456 int main() {
7454 krb5_init_context() 7457 krb5_init_context()
7455 ; return 0; } 7458 ; return 0; }
7456 EOF 7459 EOF
7457 if { (eval echo configure:7458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7460 if { (eval echo configure:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7458 rm -rf conftest* 7461 rm -rf conftest*
7459 eval "ac_cv_lib_$ac_lib_var=yes" 7462 eval "ac_cv_lib_$ac_lib_var=yes"
7460 else 7463 else
7461 echo "configure: failed program was:" >&5 7464 echo "configure: failed program was:" >&5
7462 cat conftest.$ac_ext >&5 7465 cat conftest.$ac_ext >&5
7481 echo "$ac_t""no" 1>&6 7484 echo "$ac_t""no" 1>&6
7482 fi 7485 fi
7483 7486
7484 if test "${with_kerberos5+set}" != set; then 7487 if test "${with_kerberos5+set}" != set; then
7485 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 7488 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
7486 echo "configure:7487: checking for des_cbc_encrypt in -ldes425" >&5 7489 echo "configure:7490: checking for des_cbc_encrypt in -ldes425" >&5
7487 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7490 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7489 echo $ac_n "(cached) $ac_c" 1>&6 7492 echo $ac_n "(cached) $ac_c" 1>&6
7490 else 7493 else
7491 ac_save_LIBS="$LIBS" 7494 ac_save_LIBS="$LIBS"
7492 LIBS="-ldes425 $LIBS" 7495 LIBS="-ldes425 $LIBS"
7493 cat > conftest.$ac_ext <<EOF 7496 cat > conftest.$ac_ext <<EOF
7494 #line 7495 "configure" 7497 #line 7498 "configure"
7495 #include "confdefs.h" 7498 #include "confdefs.h"
7496 /* Override any gcc2 internal prototype to avoid an error. */ 7499 /* Override any gcc2 internal prototype to avoid an error. */
7497 /* We use char because int might match the return type of a gcc2 7500 /* We use char because int might match the return type of a gcc2
7498 builtin and then its argument prototype would still apply. */ 7501 builtin and then its argument prototype would still apply. */
7499 char des_cbc_encrypt(); 7502 char des_cbc_encrypt();
7500 7503
7501 int main() { 7504 int main() {
7502 des_cbc_encrypt() 7505 des_cbc_encrypt()
7503 ; return 0; } 7506 ; return 0; }
7504 EOF 7507 EOF
7505 if { (eval echo configure:7506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7508 if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7506 rm -rf conftest* 7509 rm -rf conftest*
7507 eval "ac_cv_lib_$ac_lib_var=yes" 7510 eval "ac_cv_lib_$ac_lib_var=yes"
7508 else 7511 else
7509 echo "configure: failed program was:" >&5 7512 echo "configure: failed program was:" >&5
7510 cat conftest.$ac_ext >&5 7513 cat conftest.$ac_ext >&5
7526 LIBS="-ldes425 $LIBS" 7529 LIBS="-ldes425 $LIBS"
7527 7530
7528 else 7531 else
7529 echo "$ac_t""no" 1>&6 7532 echo "$ac_t""no" 1>&6
7530 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 7533 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
7531 echo "configure:7532: checking for des_cbc_encrypt in -ldes" >&5 7534 echo "configure:7535: checking for des_cbc_encrypt in -ldes" >&5
7532 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7535 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7534 echo $ac_n "(cached) $ac_c" 1>&6 7537 echo $ac_n "(cached) $ac_c" 1>&6
7535 else 7538 else
7536 ac_save_LIBS="$LIBS" 7539 ac_save_LIBS="$LIBS"
7537 LIBS="-ldes $LIBS" 7540 LIBS="-ldes $LIBS"
7538 cat > conftest.$ac_ext <<EOF 7541 cat > conftest.$ac_ext <<EOF
7539 #line 7540 "configure" 7542 #line 7543 "configure"
7540 #include "confdefs.h" 7543 #include "confdefs.h"
7541 /* Override any gcc2 internal prototype to avoid an error. */ 7544 /* Override any gcc2 internal prototype to avoid an error. */
7542 /* We use char because int might match the return type of a gcc2 7545 /* We use char because int might match the return type of a gcc2
7543 builtin and then its argument prototype would still apply. */ 7546 builtin and then its argument prototype would still apply. */
7544 char des_cbc_encrypt(); 7547 char des_cbc_encrypt();
7545 7548
7546 int main() { 7549 int main() {
7547 des_cbc_encrypt() 7550 des_cbc_encrypt()
7548 ; return 0; } 7551 ; return 0; }
7549 EOF 7552 EOF
7550 if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7553 if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7551 rm -rf conftest* 7554 rm -rf conftest*
7552 eval "ac_cv_lib_$ac_lib_var=yes" 7555 eval "ac_cv_lib_$ac_lib_var=yes"
7553 else 7556 else
7554 echo "configure: failed program was:" >&5 7557 echo "configure: failed program was:" >&5
7555 cat conftest.$ac_ext >&5 7558 cat conftest.$ac_ext >&5
7575 fi 7578 fi
7576 7579
7577 fi 7580 fi
7578 7581
7579 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 7582 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
7580 echo "configure:7581: checking for krb_get_cred in -lkrb4" >&5 7583 echo "configure:7584: checking for krb_get_cred in -lkrb4" >&5
7581 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` 7584 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
7582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7583 echo $ac_n "(cached) $ac_c" 1>&6 7586 echo $ac_n "(cached) $ac_c" 1>&6
7584 else 7587 else
7585 ac_save_LIBS="$LIBS" 7588 ac_save_LIBS="$LIBS"
7586 LIBS="-lkrb4 $LIBS" 7589 LIBS="-lkrb4 $LIBS"
7587 cat > conftest.$ac_ext <<EOF 7590 cat > conftest.$ac_ext <<EOF
7588 #line 7589 "configure" 7591 #line 7592 "configure"
7589 #include "confdefs.h" 7592 #include "confdefs.h"
7590 /* Override any gcc2 internal prototype to avoid an error. */ 7593 /* Override any gcc2 internal prototype to avoid an error. */
7591 /* We use char because int might match the return type of a gcc2 7594 /* We use char because int might match the return type of a gcc2
7592 builtin and then its argument prototype would still apply. */ 7595 builtin and then its argument prototype would still apply. */
7593 char krb_get_cred(); 7596 char krb_get_cred();
7594 7597
7595 int main() { 7598 int main() {
7596 krb_get_cred() 7599 krb_get_cred()
7597 ; return 0; } 7600 ; return 0; }
7598 EOF 7601 EOF
7599 if { (eval echo configure:7600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7602 if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7600 rm -rf conftest* 7603 rm -rf conftest*
7601 eval "ac_cv_lib_$ac_lib_var=yes" 7604 eval "ac_cv_lib_$ac_lib_var=yes"
7602 else 7605 else
7603 echo "configure: failed program was:" >&5 7606 echo "configure: failed program was:" >&5
7604 cat conftest.$ac_ext >&5 7607 cat conftest.$ac_ext >&5
7620 LIBS="-lkrb4 $LIBS" 7623 LIBS="-lkrb4 $LIBS"
7621 7624
7622 else 7625 else
7623 echo "$ac_t""no" 1>&6 7626 echo "$ac_t""no" 1>&6
7624 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 7627 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
7625 echo "configure:7626: checking for krb_get_cred in -lkrb" >&5 7628 echo "configure:7629: checking for krb_get_cred in -lkrb" >&5
7626 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` 7629 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
7627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7628 echo $ac_n "(cached) $ac_c" 1>&6 7631 echo $ac_n "(cached) $ac_c" 1>&6
7629 else 7632 else
7630 ac_save_LIBS="$LIBS" 7633 ac_save_LIBS="$LIBS"
7631 LIBS="-lkrb $LIBS" 7634 LIBS="-lkrb $LIBS"
7632 cat > conftest.$ac_ext <<EOF 7635 cat > conftest.$ac_ext <<EOF
7633 #line 7634 "configure" 7636 #line 7637 "configure"
7634 #include "confdefs.h" 7637 #include "confdefs.h"
7635 /* Override any gcc2 internal prototype to avoid an error. */ 7638 /* Override any gcc2 internal prototype to avoid an error. */
7636 /* We use char because int might match the return type of a gcc2 7639 /* We use char because int might match the return type of a gcc2
7637 builtin and then its argument prototype would still apply. */ 7640 builtin and then its argument prototype would still apply. */
7638 char krb_get_cred(); 7641 char krb_get_cred();
7639 7642
7640 int main() { 7643 int main() {
7641 krb_get_cred() 7644 krb_get_cred()
7642 ; return 0; } 7645 ; return 0; }
7643 EOF 7646 EOF
7644 if { (eval echo configure:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7647 if { (eval echo configure:7648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7645 rm -rf conftest* 7648 rm -rf conftest*
7646 eval "ac_cv_lib_$ac_lib_var=yes" 7649 eval "ac_cv_lib_$ac_lib_var=yes"
7647 else 7650 else
7648 echo "configure: failed program was:" >&5 7651 echo "configure: failed program was:" >&5
7649 cat conftest.$ac_ext >&5 7652 cat conftest.$ac_ext >&5
7675 if test "${with_kerberos5+set}" = set; then 7678 if test "${with_kerberos5+set}" = set; then
7676 for ac_hdr in krb5.h 7679 for ac_hdr in krb5.h
7677 do 7680 do
7678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7680 echo "configure:7681: checking for $ac_hdr" >&5 7683 echo "configure:7684: checking for $ac_hdr" >&5
7681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7682 echo $ac_n "(cached) $ac_c" 1>&6 7685 echo $ac_n "(cached) $ac_c" 1>&6
7683 else 7686 else
7684 cat > conftest.$ac_ext <<EOF 7687 cat > conftest.$ac_ext <<EOF
7685 #line 7686 "configure" 7688 #line 7689 "configure"
7686 #include "confdefs.h" 7689 #include "confdefs.h"
7687 #include <$ac_hdr> 7690 #include <$ac_hdr>
7688 EOF 7691 EOF
7689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7690 { (eval echo configure:7691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7693 { (eval echo configure:7694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7692 if test -z "$ac_err"; then 7695 if test -z "$ac_err"; then
7693 rm -rf conftest* 7696 rm -rf conftest*
7694 eval "ac_cv_header_$ac_safe=yes" 7697 eval "ac_cv_header_$ac_safe=yes"
7695 else 7698 else
7716 else 7719 else
7717 for ac_hdr in des.h 7720 for ac_hdr in des.h
7718 do 7721 do
7719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7721 echo "configure:7722: checking for $ac_hdr" >&5 7724 echo "configure:7725: checking for $ac_hdr" >&5
7722 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7723 echo $ac_n "(cached) $ac_c" 1>&6 7726 echo $ac_n "(cached) $ac_c" 1>&6
7724 else 7727 else
7725 cat > conftest.$ac_ext <<EOF 7728 cat > conftest.$ac_ext <<EOF
7726 #line 7727 "configure" 7729 #line 7730 "configure"
7727 #include "confdefs.h" 7730 #include "confdefs.h"
7728 #include <$ac_hdr> 7731 #include <$ac_hdr>
7729 EOF 7732 EOF
7730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7731 { (eval echo configure:7732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7734 { (eval echo configure:7735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7733 if test -z "$ac_err"; then 7736 if test -z "$ac_err"; then
7734 rm -rf conftest* 7737 rm -rf conftest*
7735 eval "ac_cv_header_$ac_safe=yes" 7738 eval "ac_cv_header_$ac_safe=yes"
7736 else 7739 else
7753 echo "$ac_t""no" 1>&6 7756 echo "$ac_t""no" 1>&6
7754 for ac_hdr in kerberosIV/des.h 7757 for ac_hdr in kerberosIV/des.h
7755 do 7758 do
7756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7758 echo "configure:7759: checking for $ac_hdr" >&5 7761 echo "configure:7762: checking for $ac_hdr" >&5
7759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7760 echo $ac_n "(cached) $ac_c" 1>&6 7763 echo $ac_n "(cached) $ac_c" 1>&6
7761 else 7764 else
7762 cat > conftest.$ac_ext <<EOF 7765 cat > conftest.$ac_ext <<EOF
7763 #line 7764 "configure" 7766 #line 7767 "configure"
7764 #include "confdefs.h" 7767 #include "confdefs.h"
7765 #include <$ac_hdr> 7768 #include <$ac_hdr>
7766 EOF 7769 EOF
7767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7768 { (eval echo configure:7769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7771 { (eval echo configure:7772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7770 if test -z "$ac_err"; then 7773 if test -z "$ac_err"; then
7771 rm -rf conftest* 7774 rm -rf conftest*
7772 eval "ac_cv_header_$ac_safe=yes" 7775 eval "ac_cv_header_$ac_safe=yes"
7773 else 7776 else
7790 echo "$ac_t""no" 1>&6 7793 echo "$ac_t""no" 1>&6
7791 for ac_hdr in kerberos/des.h 7794 for ac_hdr in kerberos/des.h
7792 do 7795 do
7793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7795 echo "configure:7796: checking for $ac_hdr" >&5 7798 echo "configure:7799: checking for $ac_hdr" >&5
7796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7797 echo $ac_n "(cached) $ac_c" 1>&6 7800 echo $ac_n "(cached) $ac_c" 1>&6
7798 else 7801 else
7799 cat > conftest.$ac_ext <<EOF 7802 cat > conftest.$ac_ext <<EOF
7800 #line 7801 "configure" 7803 #line 7804 "configure"
7801 #include "confdefs.h" 7804 #include "confdefs.h"
7802 #include <$ac_hdr> 7805 #include <$ac_hdr>
7803 EOF 7806 EOF
7804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7805 { (eval echo configure:7806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7808 { (eval echo configure:7809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7807 if test -z "$ac_err"; then 7810 if test -z "$ac_err"; then
7808 rm -rf conftest* 7811 rm -rf conftest*
7809 eval "ac_cv_header_$ac_safe=yes" 7812 eval "ac_cv_header_$ac_safe=yes"
7810 else 7813 else
7836 7839
7837 for ac_hdr in krb.h 7840 for ac_hdr in krb.h
7838 do 7841 do
7839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7841 echo "configure:7842: checking for $ac_hdr" >&5 7844 echo "configure:7845: checking for $ac_hdr" >&5
7842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7843 echo $ac_n "(cached) $ac_c" 1>&6 7846 echo $ac_n "(cached) $ac_c" 1>&6
7844 else 7847 else
7845 cat > conftest.$ac_ext <<EOF 7848 cat > conftest.$ac_ext <<EOF
7846 #line 7847 "configure" 7849 #line 7850 "configure"
7847 #include "confdefs.h" 7850 #include "confdefs.h"
7848 #include <$ac_hdr> 7851 #include <$ac_hdr>
7849 EOF 7852 EOF
7850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7851 { (eval echo configure:7852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7854 { (eval echo configure:7855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7853 if test -z "$ac_err"; then 7856 if test -z "$ac_err"; then
7854 rm -rf conftest* 7857 rm -rf conftest*
7855 eval "ac_cv_header_$ac_safe=yes" 7858 eval "ac_cv_header_$ac_safe=yes"
7856 else 7859 else
7873 echo "$ac_t""no" 1>&6 7876 echo "$ac_t""no" 1>&6
7874 for ac_hdr in kerberosIV/krb.h 7877 for ac_hdr in kerberosIV/krb.h
7875 do 7878 do
7876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7880 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7878 echo "configure:7879: checking for $ac_hdr" >&5 7881 echo "configure:7882: checking for $ac_hdr" >&5
7879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6 7883 echo $ac_n "(cached) $ac_c" 1>&6
7881 else 7884 else
7882 cat > conftest.$ac_ext <<EOF 7885 cat > conftest.$ac_ext <<EOF
7883 #line 7884 "configure" 7886 #line 7887 "configure"
7884 #include "confdefs.h" 7887 #include "confdefs.h"
7885 #include <$ac_hdr> 7888 #include <$ac_hdr>
7886 EOF 7889 EOF
7887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7888 { (eval echo configure:7889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7891 { (eval echo configure:7892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7890 if test -z "$ac_err"; then 7893 if test -z "$ac_err"; then
7891 rm -rf conftest* 7894 rm -rf conftest*
7892 eval "ac_cv_header_$ac_safe=yes" 7895 eval "ac_cv_header_$ac_safe=yes"
7893 else 7896 else
7910 echo "$ac_t""no" 1>&6 7913 echo "$ac_t""no" 1>&6
7911 for ac_hdr in kerberos/krb.h 7914 for ac_hdr in kerberos/krb.h
7912 do 7915 do
7913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7915 echo "configure:7916: checking for $ac_hdr" >&5 7918 echo "configure:7919: checking for $ac_hdr" >&5
7916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7917 echo $ac_n "(cached) $ac_c" 1>&6 7920 echo $ac_n "(cached) $ac_c" 1>&6
7918 else 7921 else
7919 cat > conftest.$ac_ext <<EOF 7922 cat > conftest.$ac_ext <<EOF
7920 #line 7921 "configure" 7923 #line 7924 "configure"
7921 #include "confdefs.h" 7924 #include "confdefs.h"
7922 #include <$ac_hdr> 7925 #include <$ac_hdr>
7923 EOF 7926 EOF
7924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7925 { (eval echo configure:7926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7928 { (eval echo configure:7929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7927 if test -z "$ac_err"; then 7930 if test -z "$ac_err"; then
7928 rm -rf conftest* 7931 rm -rf conftest*
7929 eval "ac_cv_header_$ac_safe=yes" 7932 eval "ac_cv_header_$ac_safe=yes"
7930 else 7933 else
7957 fi 7960 fi
7958 for ac_hdr in com_err.h 7961 for ac_hdr in com_err.h
7959 do 7962 do
7960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7963 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7962 echo "configure:7963: checking for $ac_hdr" >&5 7965 echo "configure:7966: checking for $ac_hdr" >&5
7963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7964 echo $ac_n "(cached) $ac_c" 1>&6 7967 echo $ac_n "(cached) $ac_c" 1>&6
7965 else 7968 else
7966 cat > conftest.$ac_ext <<EOF 7969 cat > conftest.$ac_ext <<EOF
7967 #line 7968 "configure" 7970 #line 7971 "configure"
7968 #include "confdefs.h" 7971 #include "confdefs.h"
7969 #include <$ac_hdr> 7972 #include <$ac_hdr>
7970 EOF 7973 EOF
7971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7972 { (eval echo configure:7973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7975 { (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7974 if test -z "$ac_err"; then 7977 if test -z "$ac_err"; then
7975 rm -rf conftest* 7978 rm -rf conftest*
7976 eval "ac_cv_header_$ac_safe=yes" 7979 eval "ac_cv_header_$ac_safe=yes"
7977 else 7980 else
7998 fi 8001 fi
7999 8002
8000 # Solaris requires -lintl if you want strerror (which calls dgettext) 8003 # Solaris requires -lintl if you want strerror (which calls dgettext)
8001 # to return localized messages. 8004 # to return localized messages.
8002 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 8005 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
8003 echo "configure:8004: checking for dgettext in -lintl" >&5 8006 echo "configure:8007: checking for dgettext in -lintl" >&5
8004 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 8007 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
8005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 8008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6 8009 echo $ac_n "(cached) $ac_c" 1>&6
8007 else 8010 else
8008 ac_save_LIBS="$LIBS" 8011 ac_save_LIBS="$LIBS"
8009 LIBS="-lintl $LIBS" 8012 LIBS="-lintl $LIBS"
8010 cat > conftest.$ac_ext <<EOF 8013 cat > conftest.$ac_ext <<EOF
8011 #line 8012 "configure" 8014 #line 8015 "configure"
8012 #include "confdefs.h" 8015 #include "confdefs.h"
8013 /* Override any gcc2 internal prototype to avoid an error. */ 8016 /* Override any gcc2 internal prototype to avoid an error. */
8014 /* We use char because int might match the return type of a gcc2 8017 /* We use char because int might match the return type of a gcc2
8015 builtin and then its argument prototype would still apply. */ 8018 builtin and then its argument prototype would still apply. */
8016 char dgettext(); 8019 char dgettext();
8017 8020
8018 int main() { 8021 int main() {
8019 dgettext() 8022 dgettext()
8020 ; return 0; } 8023 ; return 0; }
8021 EOF 8024 EOF
8022 if { (eval echo configure:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8025 if { (eval echo configure:8026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8023 rm -rf conftest* 8026 rm -rf conftest*
8024 eval "ac_cv_lib_$ac_lib_var=yes" 8027 eval "ac_cv_lib_$ac_lib_var=yes"
8025 else 8028 else
8026 echo "configure: failed program was:" >&5 8029 echo "configure: failed program was:" >&5
8027 cat conftest.$ac_ext >&5 8030 cat conftest.$ac_ext >&5
8046 echo "$ac_t""no" 1>&6 8049 echo "$ac_t""no" 1>&6
8047 fi 8050 fi
8048 8051
8049 8052
8050 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8053 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8051 echo "configure:8052: checking whether localtime caches TZ" >&5 8054 echo "configure:8055: checking whether localtime caches TZ" >&5
8052 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 8055 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
8053 echo $ac_n "(cached) $ac_c" 1>&6 8056 echo $ac_n "(cached) $ac_c" 1>&6
8054 else 8057 else
8055 if test x$ac_cv_func_tzset = xyes; then 8058 if test x$ac_cv_func_tzset = xyes; then
8056 if test "$cross_compiling" = yes; then 8059 if test "$cross_compiling" = yes; then
8057 # If we have tzset, assume the worst when cross-compiling. 8060 # If we have tzset, assume the worst when cross-compiling.
8058 emacs_cv_localtime_cache=yes 8061 emacs_cv_localtime_cache=yes
8059 else 8062 else
8060 cat > conftest.$ac_ext <<EOF 8063 cat > conftest.$ac_ext <<EOF
8061 #line 8062 "configure" 8064 #line 8065 "configure"
8062 #include "confdefs.h" 8065 #include "confdefs.h"
8063 #include <time.h> 8066 #include <time.h>
8064 extern char **environ; 8067 extern char **environ;
8065 unset_TZ () 8068 unset_TZ ()
8066 { 8069 {
8088 if (localtime (&now)->tm_hour != hour_unset) 8091 if (localtime (&now)->tm_hour != hour_unset)
8089 exit (1); 8092 exit (1);
8090 exit (0); 8093 exit (0);
8091 } 8094 }
8092 EOF 8095 EOF
8093 if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8096 if { (eval echo configure:8097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8094 then 8097 then
8095 emacs_cv_localtime_cache=no 8098 emacs_cv_localtime_cache=no
8096 else 8099 else
8097 echo "configure: failed program was:" >&5 8100 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5 8101 cat conftest.$ac_ext >&5
8118 8121
8119 if test "x$HAVE_TIMEVAL" = xyes; then 8122 if test "x$HAVE_TIMEVAL" = xyes; then
8120 for ac_func in gettimeofday 8123 for ac_func in gettimeofday
8121 do 8124 do
8122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8123 echo "configure:8124: checking for $ac_func" >&5 8126 echo "configure:8127: checking for $ac_func" >&5
8124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6 8128 echo $ac_n "(cached) $ac_c" 1>&6
8126 else 8129 else
8127 cat > conftest.$ac_ext <<EOF 8130 cat > conftest.$ac_ext <<EOF
8128 #line 8129 "configure" 8131 #line 8132 "configure"
8129 #include "confdefs.h" 8132 #include "confdefs.h"
8130 /* System header to define __stub macros and hopefully few prototypes, 8133 /* System header to define __stub macros and hopefully few prototypes,
8131 which can conflict with char $ac_func(); below. */ 8134 which can conflict with char $ac_func(); below. */
8132 #include <assert.h> 8135 #include <assert.h>
8133 /* Override any gcc2 internal prototype to avoid an error. */ 8136 /* Override any gcc2 internal prototype to avoid an error. */
8146 $ac_func(); 8149 $ac_func();
8147 #endif 8150 #endif
8148 8151
8149 ; return 0; } 8152 ; return 0; }
8150 EOF 8153 EOF
8151 if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8154 if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8152 rm -rf conftest* 8155 rm -rf conftest*
8153 eval "ac_cv_func_$ac_func=yes" 8156 eval "ac_cv_func_$ac_func=yes"
8154 else 8157 else
8155 echo "configure: failed program was:" >&5 8158 echo "configure: failed program was:" >&5
8156 cat conftest.$ac_ext >&5 8159 cat conftest.$ac_ext >&5
8171 echo "$ac_t""no" 1>&6 8174 echo "$ac_t""no" 1>&6
8172 fi 8175 fi
8173 done 8176 done
8174 8177
8175 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 8178 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
8176 echo "configure:8177: checking whether gettimeofday can accept two arguments" >&5 8179 echo "configure:8180: checking whether gettimeofday can accept two arguments" >&5
8177 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 8180 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
8178 echo $ac_n "(cached) $ac_c" 1>&6 8181 echo $ac_n "(cached) $ac_c" 1>&6
8179 else 8182 else
8180 cat > conftest.$ac_ext <<EOF 8183 cat > conftest.$ac_ext <<EOF
8181 #line 8182 "configure" 8184 #line 8185 "configure"
8182 #include "confdefs.h" 8185 #include "confdefs.h"
8183 8186
8184 #ifdef TIME_WITH_SYS_TIME 8187 #ifdef TIME_WITH_SYS_TIME
8185 #include <sys/time.h> 8188 #include <sys/time.h>
8186 #include <time.h> 8189 #include <time.h>
8194 int main() { 8197 int main() {
8195 struct timeval time; 8198 struct timeval time;
8196 gettimeofday (&time, 0); 8199 gettimeofday (&time, 0);
8197 ; return 0; } 8200 ; return 0; }
8198 EOF 8201 EOF
8199 if { (eval echo configure:8200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8202 if { (eval echo configure:8203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8200 rm -rf conftest* 8203 rm -rf conftest*
8201 emacs_cv_gettimeofday_two_arguments=yes 8204 emacs_cv_gettimeofday_two_arguments=yes
8202 else 8205 else
8203 echo "configure: failed program was:" >&5 8206 echo "configure: failed program was:" >&5
8204 cat conftest.$ac_ext >&5 8207 cat conftest.$ac_ext >&5
8217 fi 8220 fi
8218 fi 8221 fi
8219 8222
8220 if test "$ac_cv_func_gettimeofday" = yes; then 8223 if test "$ac_cv_func_gettimeofday" = yes; then
8221 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 8224 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
8222 echo "configure:8223: checking for struct timezone" >&5 8225 echo "configure:8226: checking for struct timezone" >&5
8223 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then 8226 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
8224 echo $ac_n "(cached) $ac_c" 1>&6 8227 echo $ac_n "(cached) $ac_c" 1>&6
8225 else 8228 else
8226 cat > conftest.$ac_ext <<EOF 8229 cat > conftest.$ac_ext <<EOF
8227 #line 8228 "configure" 8230 #line 8231 "configure"
8228 #include "confdefs.h" 8231 #include "confdefs.h"
8229 #include <sys/time.h> 8232 #include <sys/time.h>
8230 int main() { 8233 int main() {
8231 struct timezone tz; 8234 struct timezone tz;
8232 ; return 0; } 8235 ; return 0; }
8233 EOF 8236 EOF
8234 if { (eval echo configure:8235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8237 if { (eval echo configure:8238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8235 rm -rf conftest* 8238 rm -rf conftest*
8236 if test "$cross_compiling" = yes; then 8239 if test "$cross_compiling" = yes; then
8237 emacs_cv_struct_timezone=yes 8240 emacs_cv_struct_timezone=yes
8238 else 8241 else
8239 cat > conftest.$ac_ext <<EOF 8242 cat > conftest.$ac_ext <<EOF
8240 #line 8241 "configure" 8243 #line 8244 "configure"
8241 #include "confdefs.h" 8244 #include "confdefs.h"
8242 8245
8243 #ifdef TIME_WITH_SYS_TIME 8246 #ifdef TIME_WITH_SYS_TIME
8244 #include <sys/time.h> 8247 #include <sys/time.h>
8245 #include <time.h> 8248 #include <time.h>
8254 struct timeval time; 8257 struct timeval time;
8255 struct timezone dummy; 8258 struct timezone dummy;
8256 exit (gettimeofday (&time, &dummy)); 8259 exit (gettimeofday (&time, &dummy));
8257 } 8260 }
8258 EOF 8261 EOF
8259 if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8262 if { (eval echo configure:8263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8260 then 8263 then
8261 emacs_cv_struct_timezone=yes 8264 emacs_cv_struct_timezone=yes
8262 else 8265 else
8263 echo "configure: failed program was:" >&5 8266 echo "configure: failed program was:" >&5
8264 cat conftest.$ac_ext >&5 8267 cat conftest.$ac_ext >&5
8280 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 8283 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
8281 fi 8284 fi
8282 8285
8283 ok_so_far=yes 8286 ok_so_far=yes
8284 echo $ac_n "checking for socket""... $ac_c" 1>&6 8287 echo $ac_n "checking for socket""... $ac_c" 1>&6
8285 echo "configure:8286: checking for socket" >&5 8288 echo "configure:8289: checking for socket" >&5
8286 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 8289 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8287 echo $ac_n "(cached) $ac_c" 1>&6 8290 echo $ac_n "(cached) $ac_c" 1>&6
8288 else 8291 else
8289 cat > conftest.$ac_ext <<EOF 8292 cat > conftest.$ac_ext <<EOF
8290 #line 8291 "configure" 8293 #line 8294 "configure"
8291 #include "confdefs.h" 8294 #include "confdefs.h"
8292 /* System header to define __stub macros and hopefully few prototypes, 8295 /* System header to define __stub macros and hopefully few prototypes,
8293 which can conflict with char socket(); below. */ 8296 which can conflict with char socket(); below. */
8294 #include <assert.h> 8297 #include <assert.h>
8295 /* Override any gcc2 internal prototype to avoid an error. */ 8298 /* Override any gcc2 internal prototype to avoid an error. */
8308 socket(); 8311 socket();
8309 #endif 8312 #endif
8310 8313
8311 ; return 0; } 8314 ; return 0; }
8312 EOF 8315 EOF
8313 if { (eval echo configure:8314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8316 if { (eval echo configure:8317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8314 rm -rf conftest* 8317 rm -rf conftest*
8315 eval "ac_cv_func_socket=yes" 8318 eval "ac_cv_func_socket=yes"
8316 else 8319 else
8317 echo "configure: failed program was:" >&5 8320 echo "configure: failed program was:" >&5
8318 cat conftest.$ac_ext >&5 8321 cat conftest.$ac_ext >&5
8331 fi 8334 fi
8332 8335
8333 if test $ok_so_far = yes; then 8336 if test $ok_so_far = yes; then
8334 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8337 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8335 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8338 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8336 echo "configure:8337: checking for netinet/in.h" >&5 8339 echo "configure:8340: checking for netinet/in.h" >&5
8337 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8340 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8338 echo $ac_n "(cached) $ac_c" 1>&6 8341 echo $ac_n "(cached) $ac_c" 1>&6
8339 else 8342 else
8340 cat > conftest.$ac_ext <<EOF 8343 cat > conftest.$ac_ext <<EOF
8341 #line 8342 "configure" 8344 #line 8345 "configure"
8342 #include "confdefs.h" 8345 #include "confdefs.h"
8343 #include <netinet/in.h> 8346 #include <netinet/in.h>
8344 EOF 8347 EOF
8345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8346 { (eval echo configure:8347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8349 { (eval echo configure:8350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8348 if test -z "$ac_err"; then 8351 if test -z "$ac_err"; then
8349 rm -rf conftest* 8352 rm -rf conftest*
8350 eval "ac_cv_header_$ac_safe=yes" 8353 eval "ac_cv_header_$ac_safe=yes"
8351 else 8354 else
8367 8370
8368 fi 8371 fi
8369 if test $ok_so_far = yes; then 8372 if test $ok_so_far = yes; then
8370 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8373 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8371 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8374 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8372 echo "configure:8373: checking for arpa/inet.h" >&5 8375 echo "configure:8376: checking for arpa/inet.h" >&5
8373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8374 echo $ac_n "(cached) $ac_c" 1>&6 8377 echo $ac_n "(cached) $ac_c" 1>&6
8375 else 8378 else
8376 cat > conftest.$ac_ext <<EOF 8379 cat > conftest.$ac_ext <<EOF
8377 #line 8378 "configure" 8380 #line 8381 "configure"
8378 #include "confdefs.h" 8381 #include "confdefs.h"
8379 #include <arpa/inet.h> 8382 #include <arpa/inet.h>
8380 EOF 8383 EOF
8381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8382 { (eval echo configure:8383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8385 { (eval echo configure:8386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8384 if test -z "$ac_err"; then 8387 if test -z "$ac_err"; then
8385 rm -rf conftest* 8388 rm -rf conftest*
8386 eval "ac_cv_header_$ac_safe=yes" 8389 eval "ac_cv_header_$ac_safe=yes"
8387 else 8390 else
8415 EOF 8418 EOF
8416 8419
8417 fi 8420 fi
8418 8421
8419 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 8422 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
8420 echo "configure:8421: checking whether system supports dynamic ptys" >&5 8423 echo "configure:8424: checking whether system supports dynamic ptys" >&5
8421 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 8424 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
8422 echo "$ac_t""yes" 1>&6 8425 echo "$ac_t""yes" 1>&6
8423 cat >> confdefs.h <<\EOF 8426 cat >> confdefs.h <<\EOF
8424 #define HAVE_DEV_PTMX 1 8427 #define HAVE_DEV_PTMX 1
8425 EOF 8428 EOF
8427 else 8430 else
8428 echo "$ac_t""no" 1>&6 8431 echo "$ac_t""no" 1>&6
8429 fi 8432 fi
8430 8433
8431 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 8434 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8432 echo "configure:8433: checking for pid_t" >&5 8435 echo "configure:8436: checking for pid_t" >&5
8433 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 8436 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8434 echo $ac_n "(cached) $ac_c" 1>&6 8437 echo $ac_n "(cached) $ac_c" 1>&6
8435 else 8438 else
8436 cat > conftest.$ac_ext <<EOF 8439 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure" 8440 #line 8441 "configure"
8438 #include "confdefs.h" 8441 #include "confdefs.h"
8439 #include <sys/types.h> 8442 #include <sys/types.h>
8440 #if STDC_HEADERS 8443 #if STDC_HEADERS
8441 #include <stdlib.h> 8444 #include <stdlib.h>
8442 #include <stddef.h> 8445 #include <stddef.h>
8461 8464
8462 fi 8465 fi
8463 8466
8464 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8467 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8465 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8468 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8466 echo "configure:8467: checking for vfork.h" >&5 8469 echo "configure:8470: checking for vfork.h" >&5
8467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8468 echo $ac_n "(cached) $ac_c" 1>&6 8471 echo $ac_n "(cached) $ac_c" 1>&6
8469 else 8472 else
8470 cat > conftest.$ac_ext <<EOF 8473 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure" 8474 #line 8475 "configure"
8472 #include "confdefs.h" 8475 #include "confdefs.h"
8473 #include <vfork.h> 8476 #include <vfork.h>
8474 EOF 8477 EOF
8475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8476 { (eval echo configure:8477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8479 { (eval echo configure:8480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8478 if test -z "$ac_err"; then 8481 if test -z "$ac_err"; then
8479 rm -rf conftest* 8482 rm -rf conftest*
8480 eval "ac_cv_header_$ac_safe=yes" 8483 eval "ac_cv_header_$ac_safe=yes"
8481 else 8484 else
8496 else 8499 else
8497 echo "$ac_t""no" 1>&6 8500 echo "$ac_t""no" 1>&6
8498 fi 8501 fi
8499 8502
8500 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8503 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8501 echo "configure:8502: checking for working vfork" >&5 8504 echo "configure:8505: checking for working vfork" >&5
8502 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 8505 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
8503 echo $ac_n "(cached) $ac_c" 1>&6 8506 echo $ac_n "(cached) $ac_c" 1>&6
8504 else 8507 else
8505 if test "$cross_compiling" = yes; then 8508 if test "$cross_compiling" = yes; then
8506 echo $ac_n "checking for vfork""... $ac_c" 1>&6 8509 echo $ac_n "checking for vfork""... $ac_c" 1>&6
8507 echo "configure:8508: checking for vfork" >&5 8510 echo "configure:8511: checking for vfork" >&5
8508 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 8511 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8509 echo $ac_n "(cached) $ac_c" 1>&6 8512 echo $ac_n "(cached) $ac_c" 1>&6
8510 else 8513 else
8511 cat > conftest.$ac_ext <<EOF 8514 cat > conftest.$ac_ext <<EOF
8512 #line 8513 "configure" 8515 #line 8516 "configure"
8513 #include "confdefs.h" 8516 #include "confdefs.h"
8514 /* System header to define __stub macros and hopefully few prototypes, 8517 /* System header to define __stub macros and hopefully few prototypes,
8515 which can conflict with char vfork(); below. */ 8518 which can conflict with char vfork(); below. */
8516 #include <assert.h> 8519 #include <assert.h>
8517 /* Override any gcc2 internal prototype to avoid an error. */ 8520 /* Override any gcc2 internal prototype to avoid an error. */
8530 vfork(); 8533 vfork();
8531 #endif 8534 #endif
8532 8535
8533 ; return 0; } 8536 ; return 0; }
8534 EOF 8537 EOF
8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8538 if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8536 rm -rf conftest* 8539 rm -rf conftest*
8537 eval "ac_cv_func_vfork=yes" 8540 eval "ac_cv_func_vfork=yes"
8538 else 8541 else
8539 echo "configure: failed program was:" >&5 8542 echo "configure: failed program was:" >&5
8540 cat conftest.$ac_ext >&5 8543 cat conftest.$ac_ext >&5
8552 fi 8555 fi
8553 8556
8554 ac_cv_func_vfork_works=$ac_cv_func_vfork 8557 ac_cv_func_vfork_works=$ac_cv_func_vfork
8555 else 8558 else
8556 cat > conftest.$ac_ext <<EOF 8559 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure" 8560 #line 8561 "configure"
8558 #include "confdefs.h" 8561 #include "confdefs.h"
8559 /* Thanks to Paul Eggert for this test. */ 8562 /* Thanks to Paul Eggert for this test. */
8560 #include <stdio.h> 8563 #include <stdio.h>
8561 #include <sys/types.h> 8564 #include <sys/types.h>
8562 #include <sys/stat.h> 8565 #include <sys/stat.h>
8647 || fstat(fileno(stdout), &st) != 0 8650 || fstat(fileno(stdout), &st) != 0
8648 ); 8651 );
8649 } 8652 }
8650 } 8653 }
8651 EOF 8654 EOF
8652 if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8655 if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8653 then 8656 then
8654 ac_cv_func_vfork_works=yes 8657 ac_cv_func_vfork_works=yes
8655 else 8658 else
8656 echo "configure: failed program was:" >&5 8659 echo "configure: failed program was:" >&5
8657 cat conftest.$ac_ext >&5 8660 cat conftest.$ac_ext >&5
8672 fi 8675 fi
8673 8676
8674 8677
8675 # Fixme: This should be replaced when we have autoconf 2.14. 8678 # Fixme: This should be replaced when we have autoconf 2.14.
8676 echo $ac_n "checking for size_t""... $ac_c" 1>&6 8679 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8677 echo "configure:8678: checking for size_t" >&5 8680 echo "configure:8681: checking for size_t" >&5
8678 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 8681 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8679 echo $ac_n "(cached) $ac_c" 1>&6 8682 echo $ac_n "(cached) $ac_c" 1>&6
8680 else 8683 else
8681 cat > conftest.$ac_ext <<EOF 8684 cat > conftest.$ac_ext <<EOF
8682 #line 8683 "configure" 8685 #line 8686 "configure"
8683 #include "confdefs.h" 8686 #include "confdefs.h"
8684 #include <sys/types.h> 8687 #include <sys/types.h>
8685 #if STDC_HEADERS 8688 #if STDC_HEADERS
8686 #include <stdlib.h> 8689 #include <stdlib.h>
8687 #include <stddef.h> 8690 #include <stddef.h>
8871 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile 8874 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
8872 ## from Makefile.c can correctly provide the arg `-traditional' to the 8875 ## from Makefile.c can correctly provide the arg `-traditional' to the
8873 ## C preprocessor. 8876 ## C preprocessor.
8874 8877
8875 cat > conftest.$ac_ext <<EOF 8878 cat > conftest.$ac_ext <<EOF
8876 #line 8877 "configure" 8879 #line 8880 "configure"
8877 #include "confdefs.h" 8880 #include "confdefs.h"
8878 yes..yes 8881 yes..yes
8879 EOF 8882 EOF
8880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8881 egrep "yes..yes" >/dev/null 2>&1; then 8884 egrep "yes..yes" >/dev/null 2>&1; then