comparison configure @ 28674:33b9dd030d3b

*** empty log message ***
author Gerd Moellmann <gerd@gnu.org>
date Thu, 20 Apr 2000 21:52:10 +0000
parents 780bb4727911
children 6d96f2643b05
comparison
equal deleted inserted replaced
28673:55c84ae4d634 28674:33b9dd030d3b
806 machine=hp9000s300 ;; 806 machine=hp9000s300 ;;
807 powerpc-apple-netbsd*) machine=macppc ;; 807 powerpc-apple-netbsd*) machine=macppc ;;
808 mips-*-netbsd*) machine=pmax ;; 808 mips-*-netbsd*) machine=pmax ;;
809 mipsel-*-netbsd*) machine=pmax ;; 809 mipsel-*-netbsd*) machine=pmax ;;
810 ns32k-*-netbsd*) machine=ns32000 ;; 810 ns32k-*-netbsd*) machine=ns32000 ;;
811 powerpc-*-netbsd*) machine=macppc ;;
811 sparc-*-netbsd*) machine=sparc ;; 812 sparc-*-netbsd*) machine=sparc ;;
812 vax-*-netbsd*) machine=vax ;; 813 vax-*-netbsd*) machine=vax ;;
813 arm-*-netbsd*) machine=arm ;; 814 arm-*-netbsd*) machine=arm ;;
814 esac 815 esac
815 ;; 816 ;;
1702 "yes" ) CC="gcc" GCC=yes ;; 1703 "yes" ) CC="gcc" GCC=yes ;;
1703 "no" ) : ${CC=cc} ;; 1704 "no" ) : ${CC=cc} ;;
1704 * ) # Extract the first word of "gcc", so it can be a program name with args. 1705 * ) # Extract the first word of "gcc", so it can be a program name with args.
1705 set dummy gcc; ac_word=$2 1706 set dummy gcc; ac_word=$2
1706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1707 echo "configure:1708: checking for $ac_word" >&5 1708 echo "configure:1709: checking for $ac_word" >&5
1708 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1709 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6 1710 echo $ac_n "(cached) $ac_c" 1>&6
1710 else 1711 else
1711 if test -n "$CC"; then 1712 if test -n "$CC"; then
1712 ac_cv_prog_CC="$CC" # Let the user override the test. 1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1732 1733
1733 if test -z "$CC"; then 1734 if test -z "$CC"; then
1734 # Extract the first word of "cc", so it can be a program name with args. 1735 # Extract the first word of "cc", so it can be a program name with args.
1735 set dummy cc; ac_word=$2 1736 set dummy cc; ac_word=$2
1736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_word" >&5 1738 echo "configure:1739: checking for $ac_word" >&5
1738 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6 1740 echo $ac_n "(cached) $ac_c" 1>&6
1740 else 1741 else
1741 if test -n "$CC"; then 1742 if test -n "$CC"; then
1742 ac_cv_prog_CC="$CC" # Let the user override the test. 1743 ac_cv_prog_CC="$CC" # Let the user override the test.
1783 case "`uname -s`" in 1784 case "`uname -s`" in
1784 *win32* | *WIN32*) 1785 *win32* | *WIN32*)
1785 # Extract the first word of "cl", so it can be a program name with args. 1786 # Extract the first word of "cl", so it can be a program name with args.
1786 set dummy cl; ac_word=$2 1787 set dummy cl; ac_word=$2
1787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1788 echo "configure:1789: checking for $ac_word" >&5 1789 echo "configure:1790: checking for $ac_word" >&5
1789 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1790 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6 1791 echo $ac_n "(cached) $ac_c" 1>&6
1791 else 1792 else
1792 if test -n "$CC"; then 1793 if test -n "$CC"; then
1793 ac_cv_prog_CC="$CC" # Let the user override the test. 1794 ac_cv_prog_CC="$CC" # Let the user override the test.
1815 fi 1816 fi
1816 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1817 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1817 fi 1818 fi
1818 1819
1819 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1820 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1820 echo "configure:1821: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1821 echo "configure:1822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1821 1822
1822 ac_ext=c 1823 ac_ext=c
1823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1824 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1824 ac_cpp='$CPP $CPPFLAGS' 1825 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1827 cross_compiling=$ac_cv_prog_cc_cross 1828 cross_compiling=$ac_cv_prog_cc_cross
1828 1829
1829 cat > conftest.$ac_ext << EOF 1830 cat > conftest.$ac_ext << EOF
1830 1831
1831 #line 1832 "configure" 1832 #line 1833 "configure"
1832 #include "confdefs.h" 1833 #include "confdefs.h"
1833 1834
1834 main(){return(0);} 1835 main(){return(0);}
1835 EOF 1836 EOF
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1837 if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1837 ac_cv_prog_cc_works=yes 1838 ac_cv_prog_cc_works=yes
1838 # If we can't run a trivial program, we are probably using a cross compiler. 1839 # If we can't run a trivial program, we are probably using a cross compiler.
1839 if (./conftest; exit) 2>/dev/null; then 1840 if (./conftest; exit) 2>/dev/null; then
1840 ac_cv_prog_cc_cross=no 1841 ac_cv_prog_cc_cross=no
1841 else 1842 else
1857 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1858 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1858 if test $ac_cv_prog_cc_works = no; then 1859 if test $ac_cv_prog_cc_works = no; then
1859 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1860 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1860 fi 1861 fi
1861 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1862 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1862 echo "configure:1863: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1863 echo "configure:1864: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1863 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1864 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1864 cross_compiling=$ac_cv_prog_cc_cross 1865 cross_compiling=$ac_cv_prog_cc_cross
1865 1866
1866 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1867 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1867 echo "configure:1868: checking whether we are using GNU C" >&5 1868 echo "configure:1869: checking whether we are using GNU C" >&5
1868 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1869 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6 1870 echo $ac_n "(cached) $ac_c" 1>&6
1870 else 1871 else
1871 cat > conftest.c <<EOF 1872 cat > conftest.c <<EOF
1872 #ifdef __GNUC__ 1873 #ifdef __GNUC__
1873 yes; 1874 yes;
1874 #endif 1875 #endif
1875 EOF 1876 EOF
1876 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1877 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1877 ac_cv_prog_gcc=yes 1878 ac_cv_prog_gcc=yes
1878 else 1879 else
1879 ac_cv_prog_gcc=no 1880 ac_cv_prog_gcc=no
1880 fi 1881 fi
1881 fi 1882 fi
1890 1891
1891 ac_test_CFLAGS="${CFLAGS+set}" 1892 ac_test_CFLAGS="${CFLAGS+set}"
1892 ac_save_CFLAGS="$CFLAGS" 1893 ac_save_CFLAGS="$CFLAGS"
1893 CFLAGS= 1894 CFLAGS=
1894 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1895 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1895 echo "configure:1896: checking whether ${CC-cc} accepts -g" >&5 1896 echo "configure:1897: checking whether ${CC-cc} accepts -g" >&5
1896 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1897 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6 1898 echo $ac_n "(cached) $ac_c" 1>&6
1898 else 1899 else
1899 echo 'void f(){}' > conftest.c 1900 echo 'void f(){}' > conftest.c
1900 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1901 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1970 #### Some other nice autoconf tests. If you add a test here which 1971 #### Some other nice autoconf tests. If you add a test here which
1971 #### should make an entry in src/config.h, don't forget to add an 1972 #### should make an entry in src/config.h, don't forget to add an
1972 #### #undef clause to src/config.h.in for autoconf to modify. 1973 #### #undef clause to src/config.h.in for autoconf to modify.
1973 1974
1974 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1975 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1975 echo "configure:1976: checking whether ln -s works" >&5 1976 echo "configure:1977: checking whether ln -s works" >&5
1976 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1977 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6 1978 echo $ac_n "(cached) $ac_c" 1>&6
1978 else 1979 else
1979 rm -f conftestdata 1980 rm -f conftestdata
1980 if ln -s X conftestdata 2>/dev/null 1981 if ln -s X conftestdata 2>/dev/null
1991 else 1992 else
1992 echo "$ac_t""no" 1>&6 1993 echo "$ac_t""no" 1>&6
1993 fi 1994 fi
1994 1995
1995 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1996 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1996 echo "configure:1997: checking how to run the C preprocessor" >&5 1997 echo "configure:1998: checking how to run the C preprocessor" >&5
1997 # On Suns, sometimes $CPP names a directory. 1998 # On Suns, sometimes $CPP names a directory.
1998 if test -n "$CPP" && test -d "$CPP"; then 1999 if test -n "$CPP" && test -d "$CPP"; then
1999 CPP= 2000 CPP=
2000 fi 2001 fi
2001 if test -z "$CPP"; then 2002 if test -z "$CPP"; then
2006 # substituted into the Makefile and "${CC-cc}" will confuse make. 2007 # substituted into the Makefile and "${CC-cc}" will confuse make.
2007 CPP="${CC-cc} -E" 2008 CPP="${CC-cc} -E"
2008 # On the NeXT, cc -E runs the code through the compiler's parser, 2009 # On the NeXT, cc -E runs the code through the compiler's parser,
2009 # not just through cpp. 2010 # not just through cpp.
2010 cat > conftest.$ac_ext <<EOF 2011 cat > conftest.$ac_ext <<EOF
2011 #line 2012 "configure" 2012 #line 2013 "configure"
2012 #include "confdefs.h" 2013 #include "confdefs.h"
2013 #include <assert.h> 2014 #include <assert.h>
2014 Syntax Error 2015 Syntax Error
2015 EOF 2016 EOF
2016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2017 { (eval echo configure:2018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2018 { (eval echo configure:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2019 if test -z "$ac_err"; then 2020 if test -z "$ac_err"; then
2020 : 2021 :
2021 else 2022 else
2022 echo "$ac_err" >&5 2023 echo "$ac_err" >&5
2023 echo "configure: failed program was:" >&5 2024 echo "configure: failed program was:" >&5
2024 cat conftest.$ac_ext >&5 2025 cat conftest.$ac_ext >&5
2025 rm -rf conftest* 2026 rm -rf conftest*
2026 CPP="${CC-cc} -E -traditional-cpp" 2027 CPP="${CC-cc} -E -traditional-cpp"
2027 cat > conftest.$ac_ext <<EOF 2028 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure" 2029 #line 2030 "configure"
2029 #include "confdefs.h" 2030 #include "confdefs.h"
2030 #include <assert.h> 2031 #include <assert.h>
2031 Syntax Error 2032 Syntax Error
2032 EOF 2033 EOF
2033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2034 { (eval echo configure:2035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2035 { (eval echo configure:2036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2036 if test -z "$ac_err"; then 2037 if test -z "$ac_err"; then
2037 : 2038 :
2038 else 2039 else
2039 echo "$ac_err" >&5 2040 echo "$ac_err" >&5
2040 echo "configure: failed program was:" >&5 2041 echo "configure: failed program was:" >&5
2041 cat conftest.$ac_ext >&5 2042 cat conftest.$ac_ext >&5
2042 rm -rf conftest* 2043 rm -rf conftest*
2043 CPP="${CC-cc} -nologo -E" 2044 CPP="${CC-cc} -nologo -E"
2044 cat > conftest.$ac_ext <<EOF 2045 cat > conftest.$ac_ext <<EOF
2045 #line 2046 "configure" 2046 #line 2047 "configure"
2046 #include "confdefs.h" 2047 #include "confdefs.h"
2047 #include <assert.h> 2048 #include <assert.h>
2048 Syntax Error 2049 Syntax Error
2049 EOF 2050 EOF
2050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2051 { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2052 { (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2053 if test -z "$ac_err"; then 2054 if test -z "$ac_err"; then
2054 : 2055 :
2055 else 2056 else
2056 echo "$ac_err" >&5 2057 echo "$ac_err" >&5
2082 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2083 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2083 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2084 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2084 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2085 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2085 # ./install, which can be erroneously created by make from ./install.sh. 2086 # ./install, which can be erroneously created by make from ./install.sh.
2086 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2087 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2087 echo "configure:2088: checking for a BSD compatible install" >&5 2088 echo "configure:2089: checking for a BSD compatible install" >&5
2088 if test -z "$INSTALL"; then 2089 if test -z "$INSTALL"; then
2089 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2090 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6 2091 echo $ac_n "(cached) $ac_c" 1>&6
2091 else 2092 else
2092 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 2093 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2139 for ac_prog in 'bison -y' byacc 2140 for ac_prog in 'bison -y' byacc
2140 do 2141 do
2141 # Extract the first word of "$ac_prog", so it can be a program name with args. 2142 # Extract the first word of "$ac_prog", so it can be a program name with args.
2142 set dummy $ac_prog; ac_word=$2 2143 set dummy $ac_prog; ac_word=$2
2143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2144 echo "configure:2145: checking for $ac_word" >&5 2145 echo "configure:2146: checking for $ac_word" >&5
2145 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 2146 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6 2147 echo $ac_n "(cached) $ac_c" 1>&6
2147 else 2148 else
2148 if test -n "$YACC"; then 2149 if test -n "$YACC"; then
2149 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2150 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2173 2174
2174 if test "x$RANLIB" = x; then 2175 if test "x$RANLIB" = x; then
2175 # Extract the first word of "ranlib", so it can be a program name with args. 2176 # Extract the first word of "ranlib", so it can be a program name with args.
2176 set dummy ranlib; ac_word=$2 2177 set dummy ranlib; ac_word=$2
2177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2178 echo "configure:2179: checking for $ac_word" >&5 2179 echo "configure:2180: checking for $ac_word" >&5
2179 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2180 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6 2181 echo $ac_n "(cached) $ac_c" 1>&6
2181 else 2182 else
2182 if test -n "$RANLIB"; then 2183 if test -n "$RANLIB"; then
2183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2184 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2203 fi 2204 fi
2204 2205
2205 fi 2206 fi
2206 2207
2207 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2208 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2208 echo "configure:2209: checking for AIX" >&5 2209 echo "configure:2210: checking for AIX" >&5
2209 cat > conftest.$ac_ext <<EOF 2210 cat > conftest.$ac_ext <<EOF
2210 #line 2211 "configure" 2211 #line 2212 "configure"
2211 #include "confdefs.h" 2212 #include "confdefs.h"
2212 #ifdef _AIX 2213 #ifdef _AIX
2213 yes 2214 yes
2214 #endif 2215 #endif
2215 2216
2232 # Sound support for GNU/Linux and the free BSDs. 2233 # Sound support for GNU/Linux and the free BSDs.
2233 for ac_hdr in machine/soundcard.h sys/soundcard.h 2234 for ac_hdr in machine/soundcard.h sys/soundcard.h
2234 do 2235 do
2235 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2236 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2237 echo "configure:2238: checking for $ac_hdr" >&5 2238 echo "configure:2239: checking for $ac_hdr" >&5
2238 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2239 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6 2240 echo $ac_n "(cached) $ac_c" 1>&6
2240 else 2241 else
2241 cat > conftest.$ac_ext <<EOF 2242 cat > conftest.$ac_ext <<EOF
2242 #line 2243 "configure" 2243 #line 2244 "configure"
2243 #include "confdefs.h" 2244 #include "confdefs.h"
2244 #include <$ac_hdr> 2245 #include <$ac_hdr>
2245 EOF 2246 EOF
2246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2247 { (eval echo configure:2248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2248 { (eval echo configure:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2249 if test -z "$ac_err"; then 2250 if test -z "$ac_err"; then
2250 rm -rf conftest* 2251 rm -rf conftest*
2251 eval "ac_cv_header_$ac_safe=yes" 2252 eval "ac_cv_header_$ac_safe=yes"
2252 else 2253 else
2275 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 2276 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
2276 termcap.h stdio_ext.h 2277 termcap.h stdio_ext.h
2277 do 2278 do
2278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2280 echo "configure:2281: checking for $ac_hdr" >&5 2281 echo "configure:2282: checking for $ac_hdr" >&5
2281 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6 2283 echo $ac_n "(cached) $ac_c" 1>&6
2283 else 2284 else
2284 cat > conftest.$ac_ext <<EOF 2285 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure" 2286 #line 2287 "configure"
2286 #include "confdefs.h" 2287 #include "confdefs.h"
2287 #include <$ac_hdr> 2288 #include <$ac_hdr>
2288 EOF 2289 EOF
2289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2290 { (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2291 { (eval echo configure:2292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2292 if test -z "$ac_err"; then 2293 if test -z "$ac_err"; then
2293 rm -rf conftest* 2294 rm -rf conftest*
2294 eval "ac_cv_header_$ac_safe=yes" 2295 eval "ac_cv_header_$ac_safe=yes"
2295 else 2296 else
2312 echo "$ac_t""no" 1>&6 2313 echo "$ac_t""no" 1>&6
2313 fi 2314 fi
2314 done 2315 done
2315 2316
2316 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2317 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2317 echo "configure:2318: checking for ANSI C header files" >&5 2318 echo "configure:2319: checking for ANSI C header files" >&5
2318 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2319 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6 2320 echo $ac_n "(cached) $ac_c" 1>&6
2320 else 2321 else
2321 cat > conftest.$ac_ext <<EOF 2322 cat > conftest.$ac_ext <<EOF
2322 #line 2323 "configure" 2323 #line 2324 "configure"
2323 #include "confdefs.h" 2324 #include "confdefs.h"
2324 #include <stdlib.h> 2325 #include <stdlib.h>
2325 #include <stdarg.h> 2326 #include <stdarg.h>
2326 #include <string.h> 2327 #include <string.h>
2327 #include <float.h> 2328 #include <float.h>
2328 EOF 2329 EOF
2329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2330 { (eval echo configure:2331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2331 { (eval echo configure:2332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2332 if test -z "$ac_err"; then 2333 if test -z "$ac_err"; then
2333 rm -rf conftest* 2334 rm -rf conftest*
2334 ac_cv_header_stdc=yes 2335 ac_cv_header_stdc=yes
2335 else 2336 else
2342 rm -f conftest* 2343 rm -f conftest*
2343 2344
2344 if test $ac_cv_header_stdc = yes; then 2345 if test $ac_cv_header_stdc = yes; then
2345 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2346 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2346 cat > conftest.$ac_ext <<EOF 2347 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure" 2348 #line 2349 "configure"
2348 #include "confdefs.h" 2349 #include "confdefs.h"
2349 #include <string.h> 2350 #include <string.h>
2350 EOF 2351 EOF
2351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2352 egrep "memchr" >/dev/null 2>&1; then 2353 egrep "memchr" >/dev/null 2>&1; then
2360 fi 2361 fi
2361 2362
2362 if test $ac_cv_header_stdc = yes; then 2363 if test $ac_cv_header_stdc = yes; then
2363 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2364 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2364 cat > conftest.$ac_ext <<EOF 2365 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure" 2366 #line 2367 "configure"
2366 #include "confdefs.h" 2367 #include "confdefs.h"
2367 #include <stdlib.h> 2368 #include <stdlib.h>
2368 EOF 2369 EOF
2369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2370 egrep "free" >/dev/null 2>&1; then 2371 egrep "free" >/dev/null 2>&1; then
2381 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2382 if test "$cross_compiling" = yes; then 2383 if test "$cross_compiling" = yes; then
2383 : 2384 :
2384 else 2385 else
2385 cat > conftest.$ac_ext <<EOF 2386 cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure" 2387 #line 2388 "configure"
2387 #include "confdefs.h" 2388 #include "confdefs.h"
2388 #include <ctype.h> 2389 #include <ctype.h>
2389 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2390 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2390 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2391 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2391 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2392 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2392 int main () { int i; for (i = 0; i < 256; i++) 2393 int main () { int i; for (i = 0; i < 256; i++)
2393 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2394 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2394 exit (0); } 2395 exit (0); }
2395 2396
2396 EOF 2397 EOF
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2398 if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2398 then 2399 then
2399 : 2400 :
2400 else 2401 else
2401 echo "configure: failed program was:" >&5 2402 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5 2403 cat conftest.$ac_ext >&5
2416 EOF 2417 EOF
2417 2418
2418 fi 2419 fi
2419 2420
2420 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2421 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2421 echo "configure:2422: checking whether time.h and sys/time.h may both be included" >&5 2422 echo "configure:2423: checking whether time.h and sys/time.h may both be included" >&5
2422 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2423 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6 2424 echo $ac_n "(cached) $ac_c" 1>&6
2424 else 2425 else
2425 cat > conftest.$ac_ext <<EOF 2426 cat > conftest.$ac_ext <<EOF
2426 #line 2427 "configure" 2427 #line 2428 "configure"
2427 #include "confdefs.h" 2428 #include "confdefs.h"
2428 #include <sys/types.h> 2429 #include <sys/types.h>
2429 #include <sys/time.h> 2430 #include <sys/time.h>
2430 #include <time.h> 2431 #include <time.h>
2431 int main() { 2432 int main() {
2432 struct tm *tp; 2433 struct tm *tp;
2433 ; return 0; } 2434 ; return 0; }
2434 EOF 2435 EOF
2435 if { (eval echo configure:2436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2436 if { (eval echo configure:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2436 rm -rf conftest* 2437 rm -rf conftest*
2437 ac_cv_header_time=yes 2438 ac_cv_header_time=yes
2438 else 2439 else
2439 echo "configure: failed program was:" >&5 2440 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5 2441 cat conftest.$ac_ext >&5
2451 EOF 2452 EOF
2452 2453
2453 fi 2454 fi
2454 2455
2455 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2456 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2456 echo "configure:2457: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2457 echo "configure:2458: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2457 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2458 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6 2459 echo $ac_n "(cached) $ac_c" 1>&6
2459 else 2460 else
2460 cat > conftest.$ac_ext <<EOF 2461 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure" 2462 #line 2463 "configure"
2462 #include "confdefs.h" 2463 #include "confdefs.h"
2463 #include <sys/types.h> 2464 #include <sys/types.h>
2464 #include <signal.h> 2465 #include <signal.h>
2465 /* NetBSD declares sys_siglist in unistd.h. */ 2466 /* NetBSD declares sys_siglist in unistd.h. */
2466 #ifdef HAVE_UNISTD_H 2467 #ifdef HAVE_UNISTD_H
2468 #endif 2469 #endif
2469 int main() { 2470 int main() {
2470 char *msg = *(sys_siglist + 1); 2471 char *msg = *(sys_siglist + 1);
2471 ; return 0; } 2472 ; return 0; }
2472 EOF 2473 EOF
2473 if { (eval echo configure:2474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2474 if { (eval echo configure:2475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2474 rm -rf conftest* 2475 rm -rf conftest*
2475 ac_cv_decl_sys_siglist=yes 2476 ac_cv_decl_sys_siglist=yes
2476 else 2477 else
2477 echo "configure: failed program was:" >&5 2478 echo "configure: failed program was:" >&5
2478 cat conftest.$ac_ext >&5 2479 cat conftest.$ac_ext >&5
2490 2491
2491 fi 2492 fi
2492 2493
2493 2494
2494 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2495 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2495 echo "configure:2496: checking for struct utimbuf" >&5 2496 echo "configure:2497: checking for struct utimbuf" >&5
2496 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 2497 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6 2498 echo $ac_n "(cached) $ac_c" 1>&6
2498 else 2499 else
2499 cat > conftest.$ac_ext <<EOF 2500 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure" 2501 #line 2502 "configure"
2501 #include "confdefs.h" 2502 #include "confdefs.h"
2502 #ifdef TIME_WITH_SYS_TIME 2503 #ifdef TIME_WITH_SYS_TIME
2503 #include <sys/time.h> 2504 #include <sys/time.h>
2504 #include <time.h> 2505 #include <time.h>
2505 #else 2506 #else
2514 #endif 2515 #endif
2515 int main() { 2516 int main() {
2516 static struct utimbuf x; x.actime = x.modtime; 2517 static struct utimbuf x; x.actime = x.modtime;
2517 ; return 0; } 2518 ; return 0; }
2518 EOF 2519 EOF
2519 if { (eval echo configure:2520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2520 if { (eval echo configure:2521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2520 rm -rf conftest* 2521 rm -rf conftest*
2521 emacs_cv_struct_utimbuf=yes 2522 emacs_cv_struct_utimbuf=yes
2522 else 2523 else
2523 echo "configure: failed program was:" >&5 2524 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5 2525 cat conftest.$ac_ext >&5
2535 EOF 2536 EOF
2536 2537
2537 fi 2538 fi
2538 2539
2539 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2540 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2540 echo "configure:2541: checking return type of signal handlers" >&5 2541 echo "configure:2542: checking return type of signal handlers" >&5
2541 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2542 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6 2543 echo $ac_n "(cached) $ac_c" 1>&6
2543 else 2544 else
2544 cat > conftest.$ac_ext <<EOF 2545 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure" 2546 #line 2547 "configure"
2546 #include "confdefs.h" 2547 #include "confdefs.h"
2547 #include <sys/types.h> 2548 #include <sys/types.h>
2548 #include <signal.h> 2549 #include <signal.h>
2549 #ifdef signal 2550 #ifdef signal
2550 #undef signal 2551 #undef signal
2557 2558
2558 int main() { 2559 int main() {
2559 int i; 2560 int i;
2560 ; return 0; } 2561 ; return 0; }
2561 EOF 2562 EOF
2562 if { (eval echo configure:2563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2563 if { (eval echo configure:2564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2563 rm -rf conftest* 2564 rm -rf conftest*
2564 ac_cv_type_signal=void 2565 ac_cv_type_signal=void
2565 else 2566 else
2566 echo "configure: failed program was:" >&5 2567 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5 2568 cat conftest.$ac_ext >&5
2577 EOF 2578 EOF
2578 2579
2579 2580
2580 2581
2581 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 2582 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2582 echo "configure:2583: checking for struct timeval" >&5 2583 echo "configure:2584: checking for struct timeval" >&5
2583 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 2584 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6 2585 echo $ac_n "(cached) $ac_c" 1>&6
2585 else 2586 else
2586 cat > conftest.$ac_ext <<EOF 2587 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure" 2588 #line 2589 "configure"
2588 #include "confdefs.h" 2589 #include "confdefs.h"
2589 #ifdef TIME_WITH_SYS_TIME 2590 #ifdef TIME_WITH_SYS_TIME
2590 #include <sys/time.h> 2591 #include <sys/time.h>
2591 #include <time.h> 2592 #include <time.h>
2592 #else 2593 #else
2598 #endif 2599 #endif
2599 int main() { 2600 int main() {
2600 static struct timeval x; x.tv_sec = x.tv_usec; 2601 static struct timeval x; x.tv_sec = x.tv_usec;
2601 ; return 0; } 2602 ; return 0; }
2602 EOF 2603 EOF
2603 if { (eval echo configure:2604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2604 if { (eval echo configure:2605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2604 rm -rf conftest* 2605 rm -rf conftest*
2605 emacs_cv_struct_timeval=yes 2606 emacs_cv_struct_timeval=yes
2606 else 2607 else
2607 echo "configure: failed program was:" >&5 2608 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5 2609 cat conftest.$ac_ext >&5
2620 EOF 2621 EOF
2621 2622
2622 fi 2623 fi
2623 2624
2624 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2625 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2625 echo "configure:2626: checking whether struct tm is in sys/time.h or time.h" >&5 2626 echo "configure:2627: checking whether struct tm is in sys/time.h or time.h" >&5
2626 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2627 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6 2628 echo $ac_n "(cached) $ac_c" 1>&6
2628 else 2629 else
2629 cat > conftest.$ac_ext <<EOF 2630 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure" 2631 #line 2632 "configure"
2631 #include "confdefs.h" 2632 #include "confdefs.h"
2632 #include <sys/types.h> 2633 #include <sys/types.h>
2633 #include <time.h> 2634 #include <time.h>
2634 int main() { 2635 int main() {
2635 struct tm *tp; tp->tm_sec; 2636 struct tm *tp; tp->tm_sec;
2636 ; return 0; } 2637 ; return 0; }
2637 EOF 2638 EOF
2638 if { (eval echo configure:2639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2639 if { (eval echo configure:2640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2639 rm -rf conftest* 2640 rm -rf conftest*
2640 ac_cv_struct_tm=time.h 2641 ac_cv_struct_tm=time.h
2641 else 2642 else
2642 echo "configure: failed program was:" >&5 2643 echo "configure: failed program was:" >&5
2643 cat conftest.$ac_ext >&5 2644 cat conftest.$ac_ext >&5
2654 EOF 2655 EOF
2655 2656
2656 fi 2657 fi
2657 2658
2658 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2659 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2659 echo "configure:2660: checking for tm_zone in struct tm" >&5 2660 echo "configure:2661: checking for tm_zone in struct tm" >&5
2660 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 2661 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6 2662 echo $ac_n "(cached) $ac_c" 1>&6
2662 else 2663 else
2663 cat > conftest.$ac_ext <<EOF 2664 cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure" 2665 #line 2666 "configure"
2665 #include "confdefs.h" 2666 #include "confdefs.h"
2666 #include <sys/types.h> 2667 #include <sys/types.h>
2667 #include <$ac_cv_struct_tm> 2668 #include <$ac_cv_struct_tm>
2668 int main() { 2669 int main() {
2669 struct tm tm; tm.tm_zone; 2670 struct tm tm; tm.tm_zone;
2670 ; return 0; } 2671 ; return 0; }
2671 EOF 2672 EOF
2672 if { (eval echo configure:2673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2673 if { (eval echo configure:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2673 rm -rf conftest* 2674 rm -rf conftest*
2674 ac_cv_struct_tm_zone=yes 2675 ac_cv_struct_tm_zone=yes
2675 else 2676 else
2676 echo "configure: failed program was:" >&5 2677 echo "configure: failed program was:" >&5
2677 cat conftest.$ac_ext >&5 2678 cat conftest.$ac_ext >&5
2687 #define HAVE_TM_ZONE 1 2688 #define HAVE_TM_ZONE 1
2688 EOF 2689 EOF
2689 2690
2690 else 2691 else
2691 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2692 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2692 echo "configure:2693: checking for tzname" >&5 2693 echo "configure:2694: checking for tzname" >&5
2693 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 2694 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6 2695 echo $ac_n "(cached) $ac_c" 1>&6
2695 else 2696 else
2696 cat > conftest.$ac_ext <<EOF 2697 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure" 2698 #line 2699 "configure"
2698 #include "confdefs.h" 2699 #include "confdefs.h"
2699 #include <time.h> 2700 #include <time.h>
2700 #ifndef tzname /* For SGI. */ 2701 #ifndef tzname /* For SGI. */
2701 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 2702 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2702 #endif 2703 #endif
2703 int main() { 2704 int main() {
2704 atoi(*tzname); 2705 atoi(*tzname);
2705 ; return 0; } 2706 ; return 0; }
2706 EOF 2707 EOF
2707 if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2708 if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2708 rm -rf conftest* 2709 rm -rf conftest*
2709 ac_cv_var_tzname=yes 2710 ac_cv_var_tzname=yes
2710 else 2711 else
2711 echo "configure: failed program was:" >&5 2712 echo "configure: failed program was:" >&5
2712 cat conftest.$ac_ext >&5 2713 cat conftest.$ac_ext >&5
2724 2725
2725 fi 2726 fi
2726 fi 2727 fi
2727 2728
2728 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 2729 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2729 echo "configure:2730: checking for tm_gmtoff in struct tm" >&5 2730 echo "configure:2731: checking for tm_gmtoff in struct tm" >&5
2730 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 2731 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6 2732 echo $ac_n "(cached) $ac_c" 1>&6
2732 else 2733 else
2733 cat > conftest.$ac_ext <<EOF 2734 cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure" 2735 #line 2736 "configure"
2735 #include "confdefs.h" 2736 #include "confdefs.h"
2736 #include <time.h> 2737 #include <time.h>
2737 int main() { 2738 int main() {
2738 struct tm t; t.tm_gmtoff = 0 2739 struct tm t; t.tm_gmtoff = 0
2739 ; return 0; } 2740 ; return 0; }
2740 EOF 2741 EOF
2741 if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2742 rm -rf conftest* 2743 rm -rf conftest*
2743 emacs_cv_tm_gmtoff=yes 2744 emacs_cv_tm_gmtoff=yes
2744 else 2745 else
2745 echo "configure: failed program was:" >&5 2746 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5 2747 cat conftest.$ac_ext >&5
2758 2759
2759 fi 2760 fi
2760 2761
2761 2762
2762 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 2763 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2763 echo "configure:2764: checking for ${CC-cc} option to accept ANSI C" >&5 2764 echo "configure:2765: checking for ${CC-cc} option to accept ANSI C" >&5
2764 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then 2765 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6 2766 echo $ac_n "(cached) $ac_c" 1>&6
2766 else 2767 else
2767 ac_cv_prog_cc_stdc=no 2768 ac_cv_prog_cc_stdc=no
2768 ac_save_CC="$CC" 2769 ac_save_CC="$CC"
2775 # SVR4 -Xc -D__EXTENSIONS__ 2776 # SVR4 -Xc -D__EXTENSIONS__
2776 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2777 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777 do 2778 do
2778 CC="$ac_save_CC $ac_arg" 2779 CC="$ac_save_CC $ac_arg"
2779 cat > conftest.$ac_ext <<EOF 2780 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure" 2781 #line 2782 "configure"
2781 #include "confdefs.h" 2782 #include "confdefs.h"
2782 #include <stdarg.h> 2783 #include <stdarg.h>
2783 #include <stdio.h> 2784 #include <stdio.h>
2784 #include <sys/types.h> 2785 #include <sys/types.h>
2785 #include <sys/stat.h> 2786 #include <sys/stat.h>
2809 char **argv; 2810 char **argv;
2810 int main() { 2811 int main() {
2811 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2812 ; return 0; } 2813 ; return 0; }
2813 EOF 2814 EOF
2814 if { (eval echo configure:2815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2815 if { (eval echo configure:2816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2815 rm -rf conftest* 2816 rm -rf conftest*
2816 ac_cv_prog_cc_stdc="$ac_arg"; break 2817 ac_cv_prog_cc_stdc="$ac_arg"; break
2817 else 2818 else
2818 echo "configure: failed program was:" >&5 2819 echo "configure: failed program was:" >&5
2819 cat conftest.$ac_ext >&5 2820 cat conftest.$ac_ext >&5
2831 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 2832 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
2832 CC="$CC $ac_cv_prog_cc_stdc" ;; 2833 CC="$CC $ac_cv_prog_cc_stdc" ;;
2833 esac 2834 esac
2834 2835
2835 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 2836 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
2836 echo "configure:2837: checking for function prototypes" >&5 2837 echo "configure:2838: checking for function prototypes" >&5
2837 if test "$ac_cv_prog_cc_stdc" != no; then 2838 if test "$ac_cv_prog_cc_stdc" != no; then
2838 echo "$ac_t""yes" 1>&6 2839 echo "$ac_t""yes" 1>&6
2839 cat >> confdefs.h <<\EOF 2840 cat >> confdefs.h <<\EOF
2840 #define PROTOTYPES 1 2841 #define PROTOTYPES 1
2841 EOF 2842 EOF
2843 else 2844 else
2844 echo "$ac_t""no" 1>&6 2845 echo "$ac_t""no" 1>&6
2845 fi 2846 fi
2846 2847
2847 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 2848 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
2848 echo "configure:2849: checking for working volatile" >&5 2849 echo "configure:2850: checking for working volatile" >&5
2849 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then 2850 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6 2851 echo $ac_n "(cached) $ac_c" 1>&6
2851 else 2852 else
2852 cat > conftest.$ac_ext <<EOF 2853 cat > conftest.$ac_ext <<EOF
2853 #line 2854 "configure" 2854 #line 2855 "configure"
2854 #include "confdefs.h" 2855 #include "confdefs.h"
2855 2856
2856 int main() { 2857 int main() {
2857 2858
2858 volatile int x; 2859 volatile int x;
2859 int * volatile y; 2860 int * volatile y;
2860 ; return 0; } 2861 ; return 0; }
2861 EOF 2862 EOF
2862 if { (eval echo configure:2863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2863 if { (eval echo configure:2864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2863 rm -rf conftest* 2864 rm -rf conftest*
2864 ac_cv_c_volatile=yes 2865 ac_cv_c_volatile=yes
2865 else 2866 else
2866 echo "configure: failed program was:" >&5 2867 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5 2868 cat conftest.$ac_ext >&5
2878 EOF 2879 EOF
2879 2880
2880 fi 2881 fi
2881 2882
2882 echo $ac_n "checking for working const""... $ac_c" 1>&6 2883 echo $ac_n "checking for working const""... $ac_c" 1>&6
2883 echo "configure:2884: checking for working const" >&5 2884 echo "configure:2885: checking for working const" >&5
2884 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2885 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6 2886 echo $ac_n "(cached) $ac_c" 1>&6
2886 else 2887 else
2887 cat > conftest.$ac_ext <<EOF 2888 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure" 2889 #line 2890 "configure"
2889 #include "confdefs.h" 2890 #include "confdefs.h"
2890 2891
2891 int main() { 2892 int main() {
2892 2893
2893 /* Ultrix mips cc rejects this. */ 2894 /* Ultrix mips cc rejects this. */
2894 typedef int charset[2]; const charset x = {0,0}; 2895 typedef int charset[2]; const charset x;
2895 /* SunOS 4.1.1 cc rejects this. */ 2896 /* SunOS 4.1.1 cc rejects this. */
2896 char const *const *ccp; 2897 char const *const *ccp;
2897 char **p; 2898 char **p;
2898 /* NEC SVR4.0.2 mips cc rejects this. */ 2899 /* NEC SVR4.0.2 mips cc rejects this. */
2899 struct point {int x, y;}; 2900 struct point {int x, y;};
2932 const int foo = 10; 2933 const int foo = 10;
2933 } 2934 }
2934 2935
2935 ; return 0; } 2936 ; return 0; }
2936 EOF 2937 EOF
2937 if { (eval echo configure:2938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2938 if { (eval echo configure:2939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2938 rm -rf conftest* 2939 rm -rf conftest*
2939 ac_cv_c_const=yes 2940 ac_cv_c_const=yes
2940 else 2941 else
2941 echo "configure: failed program was:" >&5 2942 echo "configure: failed program was:" >&5
2942 cat conftest.$ac_ext >&5 2943 cat conftest.$ac_ext >&5
2953 EOF 2954 EOF
2954 2955
2955 fi 2956 fi
2956 2957
2957 echo $ac_n "checking for void * support""... $ac_c" 1>&6 2958 echo $ac_n "checking for void * support""... $ac_c" 1>&6
2958 echo "configure:2959: checking for void * support" >&5 2959 echo "configure:2960: checking for void * support" >&5
2959 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then 2960 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6 2961 echo $ac_n "(cached) $ac_c" 1>&6
2961 else 2962 else
2962 cat > conftest.$ac_ext <<EOF 2963 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure" 2964 #line 2965 "configure"
2964 #include "confdefs.h" 2965 #include "confdefs.h"
2965 2966
2966 int main() { 2967 int main() {
2967 void * foo; 2968 void * foo;
2968 ; return 0; } 2969 ; return 0; }
2969 EOF 2970 EOF
2970 if { (eval echo configure:2971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2971 if { (eval echo configure:2972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2971 rm -rf conftest* 2972 rm -rf conftest*
2972 emacs_cv_void_star=yes 2973 emacs_cv_void_star=yes
2973 else 2974 else
2974 echo "configure: failed program was:" >&5 2975 echo "configure: failed program was:" >&5
2975 cat conftest.$ac_ext >&5 2976 cat conftest.$ac_ext >&5
2991 EOF 2992 EOF
2992 2993
2993 fi 2994 fi
2994 2995
2995 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 2996 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2996 echo "configure:2997: checking whether ${MAKE-make} sets \${MAKE}" >&5 2997 echo "configure:2998: checking whether ${MAKE-make} sets \${MAKE}" >&5
2997 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 2998 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2998 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 2999 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6 3000 echo $ac_n "(cached) $ac_c" 1>&6
3000 else 3001 else
3001 cat > conftestmake <<\EOF 3002 cat > conftestmake <<\EOF
3019 SET_MAKE="MAKE=${MAKE-make}" 3020 SET_MAKE="MAKE=${MAKE-make}"
3020 fi 3021 fi
3021 3022
3022 3023
3023 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3024 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3024 echo "configure:3025: checking for long file names" >&5 3025 echo "configure:3026: checking for long file names" >&5
3025 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 3026 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6 3027 echo $ac_n "(cached) $ac_c" 1>&6
3027 else 3028 else
3028 ac_cv_sys_long_file_names=yes 3029 ac_cv_sys_long_file_names=yes
3029 # Test for long file names in all the places we know might matter: 3030 # Test for long file names in all the places we know might matter:
3070 # If we find X, set shell vars x_includes and x_libraries to the 3071 # If we find X, set shell vars x_includes and x_libraries to the
3071 # paths, otherwise set no_x=yes. 3072 # paths, otherwise set no_x=yes.
3072 # Uses ac_ vars as temps to allow command line to override cache and checks. 3073 # Uses ac_ vars as temps to allow command line to override cache and checks.
3073 # --without-x overrides everything else, but does not touch the cache. 3074 # --without-x overrides everything else, but does not touch the cache.
3074 echo $ac_n "checking for X""... $ac_c" 1>&6 3075 echo $ac_n "checking for X""... $ac_c" 1>&6
3075 echo "configure:3076: checking for X" >&5 3076 echo "configure:3077: checking for X" >&5
3076 3077
3077 # Check whether --with-x or --without-x was given. 3078 # Check whether --with-x or --without-x was given.
3078 if test "${with_x+set}" = set; then 3079 if test "${with_x+set}" = set; then
3079 withval="$with_x" 3080 withval="$with_x"
3080 : 3081 :
3132 # Guess where to find include files, by looking for this one X11 .h file. 3133 # Guess where to find include files, by looking for this one X11 .h file.
3133 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 3134 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3134 3135
3135 # First, try using that file with no special directory specified. 3136 # First, try using that file with no special directory specified.
3136 cat > conftest.$ac_ext <<EOF 3137 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure" 3138 #line 3139 "configure"
3138 #include "confdefs.h" 3139 #include "confdefs.h"
3139 #include <$x_direct_test_include> 3140 #include <$x_direct_test_include>
3140 EOF 3141 EOF
3141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3142 { (eval echo configure:3143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3143 { (eval echo configure:3144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3144 if test -z "$ac_err"; then 3145 if test -z "$ac_err"; then
3145 rm -rf conftest* 3146 rm -rf conftest*
3146 # We can compile using X headers with no special include directory. 3147 # We can compile using X headers with no special include directory.
3147 ac_x_includes= 3148 ac_x_includes=
3206 # See if we find them without any special options. 3207 # See if we find them without any special options.
3207 # Don't add to $LIBS permanently. 3208 # Don't add to $LIBS permanently.
3208 ac_save_LIBS="$LIBS" 3209 ac_save_LIBS="$LIBS"
3209 LIBS="-l$x_direct_test_library $LIBS" 3210 LIBS="-l$x_direct_test_library $LIBS"
3210 cat > conftest.$ac_ext <<EOF 3211 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure" 3212 #line 3213 "configure"
3212 #include "confdefs.h" 3213 #include "confdefs.h"
3213 3214
3214 int main() { 3215 int main() {
3215 ${x_direct_test_function}() 3216 ${x_direct_test_function}()
3216 ; return 0; } 3217 ; return 0; }
3217 EOF 3218 EOF
3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3219 if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3219 rm -rf conftest* 3220 rm -rf conftest*
3220 LIBS="$ac_save_LIBS" 3221 LIBS="$ac_save_LIBS"
3221 # We can link X programs with no special library path. 3222 # We can link X programs with no special library path.
3222 ac_x_libraries= 3223 ac_x_libraries=
3223 else 3224 else
3388 #### Extract some information from the operating system and machine files. 3389 #### Extract some information from the operating system and machine files.
3389 3390
3390 echo "checking the machine- and system-dependent files to find out 3391 echo "checking the machine- and system-dependent files to find out
3391 - which libraries the lib-src programs will want, and 3392 - which libraries the lib-src programs will want, and
3392 - whether the GNU malloc routines are usable" 1>&6 3393 - whether the GNU malloc routines are usable" 1>&6
3393 echo "configure:3394: checking the machine- and system-dependent files to find out 3394 echo "configure:3395: checking the machine- and system-dependent files to find out
3394 - which libraries the lib-src programs will want, and 3395 - which libraries the lib-src programs will want, and
3395 - whether the GNU malloc routines are usable" >&5 3396 - whether the GNU malloc routines are usable" >&5
3396 3397
3397 ### First figure out CFLAGS (which we use for running the compiler here) 3398 ### First figure out CFLAGS (which we use for running the compiler here)
3398 ### and REAL_CFLAGS (which we use for real compilation). 3399 ### and REAL_CFLAGS (which we use for real compilation).
3522 # Do the opsystem or machine files prohibit the use of the GNU malloc? 3523 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3523 # Assume not, until told otherwise. 3524 # Assume not, until told otherwise.
3524 GNU_MALLOC=yes 3525 GNU_MALLOC=yes
3525 doug_lea_malloc=yes 3526 doug_lea_malloc=yes
3526 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3527 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3527 echo "configure:3528: checking for malloc_get_state" >&5 3528 echo "configure:3529: checking for malloc_get_state" >&5
3528 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 3529 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6 3530 echo $ac_n "(cached) $ac_c" 1>&6
3530 else 3531 else
3531 cat > conftest.$ac_ext <<EOF 3532 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure" 3533 #line 3534 "configure"
3533 #include "confdefs.h" 3534 #include "confdefs.h"
3534 /* System header to define __stub macros and hopefully few prototypes, 3535 /* System header to define __stub macros and hopefully few prototypes,
3535 which can conflict with char malloc_get_state(); below. */ 3536 which can conflict with char malloc_get_state(); below. */
3536 #include <assert.h> 3537 #include <assert.h>
3537 /* Override any gcc2 internal prototype to avoid an error. */ 3538 /* Override any gcc2 internal prototype to avoid an error. */
3550 malloc_get_state(); 3551 malloc_get_state();
3551 #endif 3552 #endif
3552 3553
3553 ; return 0; } 3554 ; return 0; }
3554 EOF 3555 EOF
3555 if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3556 if { (eval echo configure:3557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3556 rm -rf conftest* 3557 rm -rf conftest*
3557 eval "ac_cv_func_malloc_get_state=yes" 3558 eval "ac_cv_func_malloc_get_state=yes"
3558 else 3559 else
3559 echo "configure: failed program was:" >&5 3560 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5 3561 cat conftest.$ac_ext >&5
3571 echo "$ac_t""no" 1>&6 3572 echo "$ac_t""no" 1>&6
3572 doug_lea_malloc=no 3573 doug_lea_malloc=no
3573 fi 3574 fi
3574 3575
3575 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3576 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3576 echo "configure:3577: checking for malloc_set_state" >&5 3577 echo "configure:3578: checking for malloc_set_state" >&5
3577 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 3578 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6 3579 echo $ac_n "(cached) $ac_c" 1>&6
3579 else 3580 else
3580 cat > conftest.$ac_ext <<EOF 3581 cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure" 3582 #line 3583 "configure"
3582 #include "confdefs.h" 3583 #include "confdefs.h"
3583 /* System header to define __stub macros and hopefully few prototypes, 3584 /* System header to define __stub macros and hopefully few prototypes,
3584 which can conflict with char malloc_set_state(); below. */ 3585 which can conflict with char malloc_set_state(); below. */
3585 #include <assert.h> 3586 #include <assert.h>
3586 /* Override any gcc2 internal prototype to avoid an error. */ 3587 /* Override any gcc2 internal prototype to avoid an error. */
3599 malloc_set_state(); 3600 malloc_set_state();
3600 #endif 3601 #endif
3601 3602
3602 ; return 0; } 3603 ; return 0; }
3603 EOF 3604 EOF
3604 if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3605 if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3605 rm -rf conftest* 3606 rm -rf conftest*
3606 eval "ac_cv_func_malloc_set_state=yes" 3607 eval "ac_cv_func_malloc_set_state=yes"
3607 else 3608 else
3608 echo "configure: failed program was:" >&5 3609 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5 3610 cat conftest.$ac_ext >&5
3620 echo "$ac_t""no" 1>&6 3621 echo "$ac_t""no" 1>&6
3621 doug_lea_malloc=no 3622 doug_lea_malloc=no
3622 fi 3623 fi
3623 3624
3624 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3625 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3625 echo "configure:3626: checking whether __after_morecore_hook exists" >&5 3626 echo "configure:3627: checking whether __after_morecore_hook exists" >&5
3626 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 3627 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6 3628 echo $ac_n "(cached) $ac_c" 1>&6
3628 else 3629 else
3629 cat > conftest.$ac_ext <<EOF 3630 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure" 3631 #line 3632 "configure"
3631 #include "confdefs.h" 3632 #include "confdefs.h"
3632 extern void (* __after_morecore_hook)(); 3633 extern void (* __after_morecore_hook)();
3633 int main() { 3634 int main() {
3634 __after_morecore_hook = 0 3635 __after_morecore_hook = 0
3635 ; return 0; } 3636 ; return 0; }
3636 EOF 3637 EOF
3637 if { (eval echo configure:3638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3638 if { (eval echo configure:3639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3638 rm -rf conftest* 3639 rm -rf conftest*
3639 emacs_cv_var___after_morecore_hook=yes 3640 emacs_cv_var___after_morecore_hook=yes
3640 else 3641 else
3641 echo "configure: failed program was:" >&5 3642 echo "configure: failed program was:" >&5
3642 cat conftest.$ac_ext >&5 3643 cat conftest.$ac_ext >&5
3679 fi 3680 fi
3680 3681
3681 LIBS="$libsrc_libs $LIBS" 3682 LIBS="$libsrc_libs $LIBS"
3682 3683
3683 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3684 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3684 echo "configure:3685: checking for dnet_ntoa in -ldnet" >&5 3685 echo "configure:3686: checking for dnet_ntoa in -ldnet" >&5
3685 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3686 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6 3688 echo $ac_n "(cached) $ac_c" 1>&6
3688 else 3689 else
3689 ac_save_LIBS="$LIBS" 3690 ac_save_LIBS="$LIBS"
3690 LIBS="-ldnet $LIBS" 3691 LIBS="-ldnet $LIBS"
3691 cat > conftest.$ac_ext <<EOF 3692 cat > conftest.$ac_ext <<EOF
3692 #line 3693 "configure" 3693 #line 3694 "configure"
3693 #include "confdefs.h" 3694 #include "confdefs.h"
3694 /* Override any gcc2 internal prototype to avoid an error. */ 3695 /* Override any gcc2 internal prototype to avoid an error. */
3695 /* We use char because int might match the return type of a gcc2 3696 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */ 3697 builtin and then its argument prototype would still apply. */
3697 char dnet_ntoa(); 3698 char dnet_ntoa();
3698 3699
3699 int main() { 3700 int main() {
3700 dnet_ntoa() 3701 dnet_ntoa()
3701 ; return 0; } 3702 ; return 0; }
3702 EOF 3703 EOF
3703 if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3704 if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3704 rm -rf conftest* 3705 rm -rf conftest*
3705 eval "ac_cv_lib_$ac_lib_var=yes" 3706 eval "ac_cv_lib_$ac_lib_var=yes"
3706 else 3707 else
3707 echo "configure: failed program was:" >&5 3708 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5 3709 cat conftest.$ac_ext >&5
3727 echo "$ac_t""no" 1>&6 3728 echo "$ac_t""no" 1>&6
3728 fi 3729 fi
3729 3730
3730 3731
3731 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 3732 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3732 echo "configure:3733: checking for main in -lXbsd" >&5 3733 echo "configure:3734: checking for main in -lXbsd" >&5
3733 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 3734 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6 3736 echo $ac_n "(cached) $ac_c" 1>&6
3736 else 3737 else
3737 ac_save_LIBS="$LIBS" 3738 ac_save_LIBS="$LIBS"
3738 LIBS="-lXbsd $LIBS" 3739 LIBS="-lXbsd $LIBS"
3739 cat > conftest.$ac_ext <<EOF 3740 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure" 3741 #line 3742 "configure"
3741 #include "confdefs.h" 3742 #include "confdefs.h"
3742 3743
3743 int main() { 3744 int main() {
3744 main() 3745 main()
3745 ; return 0; } 3746 ; return 0; }
3746 EOF 3747 EOF
3747 if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3748 if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3748 rm -rf conftest* 3749 rm -rf conftest*
3749 eval "ac_cv_lib_$ac_lib_var=yes" 3750 eval "ac_cv_lib_$ac_lib_var=yes"
3750 else 3751 else
3751 echo "configure: failed program was:" >&5 3752 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5 3753 cat conftest.$ac_ext >&5
3764 echo "$ac_t""no" 1>&6 3765 echo "$ac_t""no" 1>&6
3765 fi 3766 fi
3766 3767
3767 3768
3768 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3769 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3769 echo "configure:3770: checking for cma_open in -lpthreads" >&5 3770 echo "configure:3771: checking for cma_open in -lpthreads" >&5
3770 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3771 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6 3773 echo $ac_n "(cached) $ac_c" 1>&6
3773 else 3774 else
3774 ac_save_LIBS="$LIBS" 3775 ac_save_LIBS="$LIBS"
3775 LIBS="-lpthreads $LIBS" 3776 LIBS="-lpthreads $LIBS"
3776 cat > conftest.$ac_ext <<EOF 3777 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure" 3778 #line 3779 "configure"
3778 #include "confdefs.h" 3779 #include "confdefs.h"
3779 /* Override any gcc2 internal prototype to avoid an error. */ 3780 /* Override any gcc2 internal prototype to avoid an error. */
3780 /* We use char because int might match the return type of a gcc2 3781 /* We use char because int might match the return type of a gcc2
3781 builtin and then its argument prototype would still apply. */ 3782 builtin and then its argument prototype would still apply. */
3782 char cma_open(); 3783 char cma_open();
3783 3784
3784 int main() { 3785 int main() {
3785 cma_open() 3786 cma_open()
3786 ; return 0; } 3787 ; return 0; }
3787 EOF 3788 EOF
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3789 if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3789 rm -rf conftest* 3790 rm -rf conftest*
3790 eval "ac_cv_lib_$ac_lib_var=yes" 3791 eval "ac_cv_lib_$ac_lib_var=yes"
3791 else 3792 else
3792 echo "configure: failed program was:" >&5 3793 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5 3794 cat conftest.$ac_ext >&5
3812 echo "$ac_t""no" 1>&6 3813 echo "$ac_t""no" 1>&6
3813 fi 3814 fi
3814 3815
3815 3816
3816 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 3817 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3817 echo "configure:3818: checking for XFree86 in /usr/X386" >&5 3818 echo "configure:3819: checking for XFree86 in /usr/X386" >&5
3818 if test -d /usr/X386/include; then 3819 if test -d /usr/X386/include; then
3819 HAVE_XFREE386=yes 3820 HAVE_XFREE386=yes
3820 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 3821 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3821 else 3822 else
3822 HAVE_XFREE386=no 3823 HAVE_XFREE386=no
3841 export LD_RUN_PATH 3842 export LD_RUN_PATH
3842 fi 3843 fi
3843 3844
3844 if test "${opsys}" = "gnu-linux"; then 3845 if test "${opsys}" = "gnu-linux"; then
3845 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 3846 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3846 echo "configure:3847: checking whether X on GNU/Linux needs -b to link" >&5 3847 echo "configure:3848: checking whether X on GNU/Linux needs -b to link" >&5
3847 cat > conftest.$ac_ext <<EOF 3848 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure" 3849 #line 3850 "configure"
3849 #include "confdefs.h" 3850 #include "confdefs.h"
3850 3851
3851 int main() { 3852 int main() {
3852 XOpenDisplay ("foo"); 3853 XOpenDisplay ("foo");
3853 ; return 0; } 3854 ; return 0; }
3854 EOF 3855 EOF
3855 if { (eval echo configure:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3856 if { (eval echo configure:3857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3856 rm -rf conftest* 3857 rm -rf conftest*
3857 xlinux_first_failure=no 3858 xlinux_first_failure=no
3858 else 3859 else
3859 echo "configure: failed program was:" >&5 3860 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5 3861 cat conftest.$ac_ext >&5
3870 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 3871 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
3871 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 3872 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
3872 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 3873 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
3873 LIBS="$LIBS -b i486-linuxaout" 3874 LIBS="$LIBS -b i486-linuxaout"
3874 cat > conftest.$ac_ext <<EOF 3875 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure" 3876 #line 3877 "configure"
3876 #include "confdefs.h" 3877 #include "confdefs.h"
3877 3878
3878 int main() { 3879 int main() {
3879 XOpenDisplay ("foo"); 3880 XOpenDisplay ("foo");
3880 ; return 0; } 3881 ; return 0; }
3881 EOF 3882 EOF
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3883 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3883 rm -rf conftest* 3884 rm -rf conftest*
3884 xlinux_second_failure=no 3885 xlinux_second_failure=no
3885 else 3886 else
3886 echo "configure: failed program was:" >&5 3887 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5 3888 cat conftest.$ac_ext >&5
3907 3908
3908 for ac_func in XrmSetDatabase XScreenResourceString \ 3909 for ac_func in XrmSetDatabase XScreenResourceString \
3909 XScreenNumberOfScreen XSetWMProtocols 3910 XScreenNumberOfScreen XSetWMProtocols
3910 do 3911 do
3911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3912 echo "configure:3913: checking for $ac_func" >&5 3913 echo "configure:3914: checking for $ac_func" >&5
3913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6 3915 echo $ac_n "(cached) $ac_c" 1>&6
3915 else 3916 else
3916 cat > conftest.$ac_ext <<EOF 3917 cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure" 3918 #line 3919 "configure"
3918 #include "confdefs.h" 3919 #include "confdefs.h"
3919 /* System header to define __stub macros and hopefully few prototypes, 3920 /* System header to define __stub macros and hopefully few prototypes,
3920 which can conflict with char $ac_func(); below. */ 3921 which can conflict with char $ac_func(); below. */
3921 #include <assert.h> 3922 #include <assert.h>
3922 /* Override any gcc2 internal prototype to avoid an error. */ 3923 /* Override any gcc2 internal prototype to avoid an error. */
3935 $ac_func(); 3936 $ac_func();
3936 #endif 3937 #endif
3937 3938
3938 ; return 0; } 3939 ; return 0; }
3939 EOF 3940 EOF
3940 if { (eval echo configure:3941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3941 if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3941 rm -rf conftest* 3942 rm -rf conftest*
3942 eval "ac_cv_func_$ac_func=yes" 3943 eval "ac_cv_func_$ac_func=yes"
3943 else 3944 else
3944 echo "configure: failed program was:" >&5 3945 echo "configure: failed program was:" >&5
3945 cat conftest.$ac_ext >&5 3946 cat conftest.$ac_ext >&5
3963 3964
3964 fi 3965 fi
3965 3966
3966 if test "${window_system}" = "x11"; then 3967 if test "${window_system}" = "x11"; then
3967 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 3968 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
3968 echo "configure:3969: checking X11 version 6" >&5 3969 echo "configure:3970: checking X11 version 6" >&5
3969 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 3970 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6 3971 echo $ac_n "(cached) $ac_c" 1>&6
3971 else 3972 else
3972 cat > conftest.$ac_ext <<EOF 3973 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure" 3974 #line 3975 "configure"
3974 #include "confdefs.h" 3975 #include "confdefs.h"
3975 #include <X11/Xlib.h> 3976 #include <X11/Xlib.h>
3976 int main() { 3977 int main() {
3977 #if XlibSpecificationRelease < 6 3978 #if XlibSpecificationRelease < 6
3978 fail; 3979 fail;
3979 #endif 3980 #endif
3980 3981
3981 ; return 0; } 3982 ; return 0; }
3982 EOF 3983 EOF
3983 if { (eval echo configure:3984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3984 rm -rf conftest* 3985 rm -rf conftest*
3985 emacs_cv_x11_version_6=yes 3986 emacs_cv_x11_version_6=yes
3986 else 3987 else
3987 echo "configure: failed program was:" >&5 3988 echo "configure: failed program was:" >&5
3988 cat conftest.$ac_ext >&5 3989 cat conftest.$ac_ext >&5
4003 fi 4004 fi
4004 fi 4005 fi
4005 4006
4006 if test "${window_system}" = "x11"; then 4007 if test "${window_system}" = "x11"; then
4007 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 4008 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4008 echo "configure:4009: checking X11 version 5" >&5 4009 echo "configure:4010: checking X11 version 5" >&5
4009 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 4010 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6 4011 echo $ac_n "(cached) $ac_c" 1>&6
4011 else 4012 else
4012 cat > conftest.$ac_ext <<EOF 4013 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure" 4014 #line 4015 "configure"
4014 #include "confdefs.h" 4015 #include "confdefs.h"
4015 #include <X11/Xlib.h> 4016 #include <X11/Xlib.h>
4016 int main() { 4017 int main() {
4017 #if XlibSpecificationRelease < 5 4018 #if XlibSpecificationRelease < 5
4018 fail; 4019 fail;
4019 #endif 4020 #endif
4020 4021
4021 ; return 0; } 4022 ; return 0; }
4022 EOF 4023 EOF
4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4024 if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4024 rm -rf conftest* 4025 rm -rf conftest*
4025 emacs_cv_x11_version_5=yes 4026 emacs_cv_x11_version_5=yes
4026 else 4027 else
4027 echo "configure: failed program was:" >&5 4028 echo "configure: failed program was:" >&5
4028 cat conftest.$ac_ext >&5 4029 cat conftest.$ac_ext >&5
4046 fi 4047 fi
4047 4048
4048 if test x"${USE_X_TOOLKIT}" = xmaybe; then 4049 if test x"${USE_X_TOOLKIT}" = xmaybe; then
4049 if test x"${HAVE_X11R5}" = xyes; then 4050 if test x"${HAVE_X11R5}" = xyes; then
4050 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 4051 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4051 echo "configure:4052: checking X11 version 5 with Xaw" >&5 4052 echo "configure:4053: checking X11 version 5 with Xaw" >&5
4052 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 4053 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4053 echo $ac_n "(cached) $ac_c" 1>&6 4054 echo $ac_n "(cached) $ac_c" 1>&6
4054 else 4055 else
4055 cat > conftest.$ac_ext <<EOF 4056 cat > conftest.$ac_ext <<EOF
4056 #line 4057 "configure" 4057 #line 4058 "configure"
4057 #include "confdefs.h" 4058 #include "confdefs.h"
4058 4059
4059 #include <X11/Intrinsic.h> 4060 #include <X11/Intrinsic.h>
4060 #include <X11/Xaw/Simple.h> 4061 #include <X11/Xaw/Simple.h>
4061 int main() { 4062 int main() {
4062 4063
4063 ; return 0; } 4064 ; return 0; }
4064 EOF 4065 EOF
4065 if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4066 if { (eval echo configure:4067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4066 rm -rf conftest* 4067 rm -rf conftest*
4067 emacs_cv_x11_version_5_with_xaw=yes 4068 emacs_cv_x11_version_5_with_xaw=yes
4068 else 4069 else
4069 echo "configure: failed program was:" >&5 4070 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5 4071 cat conftest.$ac_ext >&5
4088 4089
4089 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 4090 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
4090 4091
4091 if test "${USE_X_TOOLKIT}" != "none"; then 4092 if test "${USE_X_TOOLKIT}" != "none"; then
4092 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 4093 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4093 echo "configure:4094: checking X11 toolkit version" >&5 4094 echo "configure:4095: checking X11 toolkit version" >&5
4094 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 4095 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6 4096 echo $ac_n "(cached) $ac_c" 1>&6
4096 else 4097 else
4097 cat > conftest.$ac_ext <<EOF 4098 cat > conftest.$ac_ext <<EOF
4098 #line 4099 "configure" 4099 #line 4100 "configure"
4099 #include "confdefs.h" 4100 #include "confdefs.h"
4100 #include <X11/Intrinsic.h> 4101 #include <X11/Intrinsic.h>
4101 int main() { 4102 int main() {
4102 #if XtSpecificationRelease < 6 4103 #if XtSpecificationRelease < 6
4103 fail; 4104 fail;
4104 #endif 4105 #endif
4105 4106
4106 ; return 0; } 4107 ; return 0; }
4107 EOF 4108 EOF
4108 if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4109 if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4109 rm -rf conftest* 4110 rm -rf conftest*
4110 emacs_cv_x11_toolkit_version_6=yes 4111 emacs_cv_x11_toolkit_version_6=yes
4111 else 4112 else
4112 echo "configure: failed program was:" >&5 4113 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5 4114 cat conftest.$ac_ext >&5
4133 LIBS="-lXt -lSM -lICE $LIBS" 4134 LIBS="-lXt -lSM -lICE $LIBS"
4134 else 4135 else
4135 LIBS="-lXt $LIBS" 4136 LIBS="-lXt $LIBS"
4136 fi 4137 fi
4137 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 4138 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4138 echo "configure:4139: checking for XmuConvertStandardSelection in -lXmu" >&5 4139 echo "configure:4140: checking for XmuConvertStandardSelection in -lXmu" >&5
4139 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 4140 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6 4142 echo $ac_n "(cached) $ac_c" 1>&6
4142 else 4143 else
4143 ac_save_LIBS="$LIBS" 4144 ac_save_LIBS="$LIBS"
4144 LIBS="-lXmu $LIBS" 4145 LIBS="-lXmu $LIBS"
4145 cat > conftest.$ac_ext <<EOF 4146 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure" 4147 #line 4148 "configure"
4147 #include "confdefs.h" 4148 #include "confdefs.h"
4148 /* Override any gcc2 internal prototype to avoid an error. */ 4149 /* Override any gcc2 internal prototype to avoid an error. */
4149 /* We use char because int might match the return type of a gcc2 4150 /* We use char because int might match the return type of a gcc2
4150 builtin and then its argument prototype would still apply. */ 4151 builtin and then its argument prototype would still apply. */
4151 char XmuConvertStandardSelection(); 4152 char XmuConvertStandardSelection();
4152 4153
4153 int main() { 4154 int main() {
4154 XmuConvertStandardSelection() 4155 XmuConvertStandardSelection()
4155 ; return 0; } 4156 ; return 0; }
4156 EOF 4157 EOF
4157 if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4158 if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4158 rm -rf conftest* 4159 rm -rf conftest*
4159 eval "ac_cv_lib_$ac_lib_var=yes" 4160 eval "ac_cv_lib_$ac_lib_var=yes"
4160 else 4161 else
4161 echo "configure: failed program was:" >&5 4162 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5 4163 cat conftest.$ac_ext >&5
4184 LIBS="$OLDLIBS" 4185 LIBS="$OLDLIBS"
4185 fi 4186 fi
4186 4187
4187 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 4188 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4188 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 4189 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4189 echo "configure:4190: checking for Motif version 2.1" >&5 4190 echo "configure:4191: checking for Motif version 2.1" >&5
4190 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 4191 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6 4192 echo $ac_n "(cached) $ac_c" 1>&6
4192 else 4193 else
4193 cat > conftest.$ac_ext <<EOF 4194 cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure" 4195 #line 4196 "configure"
4195 #include "confdefs.h" 4196 #include "confdefs.h"
4196 #include <Xm/Xm.h> 4197 #include <Xm/Xm.h>
4197 int main() { 4198 int main() {
4198 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 4199 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4199 int x = 5; 4200 int x = 5;
4200 #else 4201 #else
4201 Motif version prior to 2.1. 4202 Motif version prior to 2.1.
4202 #endif 4203 #endif
4203 ; return 0; } 4204 ; return 0; }
4204 EOF 4205 EOF
4205 if { (eval echo configure:4206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4206 if { (eval echo configure:4207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4206 rm -rf conftest* 4207 rm -rf conftest*
4207 emacs_cv_motif_version_2_1=yes 4208 emacs_cv_motif_version_2_1=yes
4208 else 4209 else
4209 echo "configure: failed program was:" >&5 4210 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5 4211 cat conftest.$ac_ext >&5
4220 cat >> confdefs.h <<\EOF 4221 cat >> confdefs.h <<\EOF
4221 #define HAVE_MOTIF_2_1 1 4222 #define HAVE_MOTIF_2_1 1
4222 EOF 4223 EOF
4223 4224
4224 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 4225 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4225 echo "configure:4226: checking for XpCreateContext in -lXp" >&5 4226 echo "configure:4227: checking for XpCreateContext in -lXp" >&5
4226 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 4227 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4228 echo $ac_n "(cached) $ac_c" 1>&6 4229 echo $ac_n "(cached) $ac_c" 1>&6
4229 else 4230 else
4230 ac_save_LIBS="$LIBS" 4231 ac_save_LIBS="$LIBS"
4231 LIBS="-lXp $LIBS" 4232 LIBS="-lXp $LIBS"
4232 cat > conftest.$ac_ext <<EOF 4233 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure" 4234 #line 4235 "configure"
4234 #include "confdefs.h" 4235 #include "confdefs.h"
4235 /* Override any gcc2 internal prototype to avoid an error. */ 4236 /* Override any gcc2 internal prototype to avoid an error. */
4236 /* We use char because int might match the return type of a gcc2 4237 /* We use char because int might match the return type of a gcc2
4237 builtin and then its argument prototype would still apply. */ 4238 builtin and then its argument prototype would still apply. */
4238 char XpCreateContext(); 4239 char XpCreateContext();
4239 4240
4240 int main() { 4241 int main() {
4241 XpCreateContext() 4242 XpCreateContext()
4242 ; return 0; } 4243 ; return 0; }
4243 EOF 4244 EOF
4244 if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4245 rm -rf conftest* 4246 rm -rf conftest*
4246 eval "ac_cv_lib_$ac_lib_var=yes" 4247 eval "ac_cv_lib_$ac_lib_var=yes"
4247 else 4248 else
4248 echo "configure: failed program was:" >&5 4249 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5 4250 cat conftest.$ac_ext >&5
4277 if test "${USE_X_TOOLKIT}" != "none"; then 4278 if test "${USE_X_TOOLKIT}" != "none"; then
4278 old_c_flags="${CFLAGS}" 4279 old_c_flags="${CFLAGS}"
4279 CFLAGS="${LD_SWITCH_X_SITE}" 4280 CFLAGS="${LD_SWITCH_X_SITE}"
4280 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 4281 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4281 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4282 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4282 echo "configure:4283: checking for X11/Xaw3d/Scrollbar.h" >&5 4283 echo "configure:4284: checking for X11/Xaw3d/Scrollbar.h" >&5
4283 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6 4285 echo $ac_n "(cached) $ac_c" 1>&6
4285 else 4286 else
4286 cat > conftest.$ac_ext <<EOF 4287 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure" 4288 #line 4289 "configure"
4288 #include "confdefs.h" 4289 #include "confdefs.h"
4289 #include <X11/Xaw3d/Scrollbar.h> 4290 #include <X11/Xaw3d/Scrollbar.h>
4290 EOF 4291 EOF
4291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4292 { (eval echo configure:4293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4293 { (eval echo configure:4294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4294 if test -z "$ac_err"; then 4295 if test -z "$ac_err"; then
4295 rm -rf conftest* 4296 rm -rf conftest*
4296 eval "ac_cv_header_$ac_safe=yes" 4297 eval "ac_cv_header_$ac_safe=yes"
4297 else 4298 else
4304 rm -f conftest* 4305 rm -f conftest*
4305 fi 4306 fi
4306 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4307 echo "$ac_t""yes" 1>&6 4308 echo "$ac_t""yes" 1>&6
4308 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 4309 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4309 echo "configure:4310: checking for XawScrollbarSetThumb in -lXaw3d" >&5 4310 echo "configure:4311: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4310 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4311 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6 4313 echo $ac_n "(cached) $ac_c" 1>&6
4313 else 4314 else
4314 ac_save_LIBS="$LIBS" 4315 ac_save_LIBS="$LIBS"
4315 LIBS="-lXaw3d -lX11 $LIBS" 4316 LIBS="-lXaw3d -lX11 $LIBS"
4316 cat > conftest.$ac_ext <<EOF 4317 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure" 4318 #line 4319 "configure"
4318 #include "confdefs.h" 4319 #include "confdefs.h"
4319 /* Override any gcc2 internal prototype to avoid an error. */ 4320 /* Override any gcc2 internal prototype to avoid an error. */
4320 /* We use char because int might match the return type of a gcc2 4321 /* We use char because int might match the return type of a gcc2
4321 builtin and then its argument prototype would still apply. */ 4322 builtin and then its argument prototype would still apply. */
4322 char XawScrollbarSetThumb(); 4323 char XawScrollbarSetThumb();
4323 4324
4324 int main() { 4325 int main() {
4325 XawScrollbarSetThumb() 4326 XawScrollbarSetThumb()
4326 ; return 0; } 4327 ; return 0; }
4327 EOF 4328 EOF
4328 if { (eval echo configure:4329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4329 if { (eval echo configure:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4329 rm -rf conftest* 4330 rm -rf conftest*
4330 eval "ac_cv_lib_$ac_lib_var=yes" 4331 eval "ac_cv_lib_$ac_lib_var=yes"
4331 else 4332 else
4332 echo "configure: failed program was:" >&5 4333 echo "configure: failed program was:" >&5
4333 cat conftest.$ac_ext >&5 4334 cat conftest.$ac_ext >&5
4387 if test "${with_xpm}" != "no"; then 4388 if test "${with_xpm}" != "no"; then
4388 old_c_flags="${CFLAGS}" 4389 old_c_flags="${CFLAGS}"
4389 CFLAGS="${LD_SWITCH_X_SITE}" 4390 CFLAGS="${LD_SWITCH_X_SITE}"
4390 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 4391 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4391 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 4392 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4392 echo "configure:4393: checking for X11/xpm.h" >&5 4393 echo "configure:4394: checking for X11/xpm.h" >&5
4393 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6 4395 echo $ac_n "(cached) $ac_c" 1>&6
4395 else 4396 else
4396 cat > conftest.$ac_ext <<EOF 4397 cat > conftest.$ac_ext <<EOF
4397 #line 4398 "configure" 4398 #line 4399 "configure"
4398 #include "confdefs.h" 4399 #include "confdefs.h"
4399 #include <X11/xpm.h> 4400 #include <X11/xpm.h>
4400 EOF 4401 EOF
4401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4402 { (eval echo configure:4403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4403 { (eval echo configure:4404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4404 if test -z "$ac_err"; then 4405 if test -z "$ac_err"; then
4405 rm -rf conftest* 4406 rm -rf conftest*
4406 eval "ac_cv_header_$ac_safe=yes" 4407 eval "ac_cv_header_$ac_safe=yes"
4407 else 4408 else
4414 rm -f conftest* 4415 rm -f conftest*
4415 fi 4416 fi
4416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4417 echo "$ac_t""yes" 1>&6 4418 echo "$ac_t""yes" 1>&6
4418 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 4419 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4419 echo "configure:4420: checking for XpmReadFileToPixmap in -lXpm" >&5 4420 echo "configure:4421: checking for XpmReadFileToPixmap in -lXpm" >&5
4420 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 4421 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4422 echo $ac_n "(cached) $ac_c" 1>&6 4423 echo $ac_n "(cached) $ac_c" 1>&6
4423 else 4424 else
4424 ac_save_LIBS="$LIBS" 4425 ac_save_LIBS="$LIBS"
4425 LIBS="-lXpm -lX11 $LIBS" 4426 LIBS="-lXpm -lX11 $LIBS"
4426 cat > conftest.$ac_ext <<EOF 4427 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure" 4428 #line 4429 "configure"
4428 #include "confdefs.h" 4429 #include "confdefs.h"
4429 /* Override any gcc2 internal prototype to avoid an error. */ 4430 /* Override any gcc2 internal prototype to avoid an error. */
4430 /* We use char because int might match the return type of a gcc2 4431 /* We use char because int might match the return type of a gcc2
4431 builtin and then its argument prototype would still apply. */ 4432 builtin and then its argument prototype would still apply. */
4432 char XpmReadFileToPixmap(); 4433 char XpmReadFileToPixmap();
4433 4434
4434 int main() { 4435 int main() {
4435 XpmReadFileToPixmap() 4436 XpmReadFileToPixmap()
4436 ; return 0; } 4437 ; return 0; }
4437 EOF 4438 EOF
4438 if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4439 if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4439 rm -rf conftest* 4440 rm -rf conftest*
4440 eval "ac_cv_lib_$ac_lib_var=yes" 4441 eval "ac_cv_lib_$ac_lib_var=yes"
4441 else 4442 else
4442 echo "configure: failed program was:" >&5 4443 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5 4444 cat conftest.$ac_ext >&5
4476 if test "${with_jpeg}" != "no"; then 4477 if test "${with_jpeg}" != "no"; then
4477 old_c_flags="${CFLAGS}" 4478 old_c_flags="${CFLAGS}"
4478 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4479 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4479 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` 4480 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
4480 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 4481 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
4481 echo "configure:4482: checking for jerror.h" >&5 4482 echo "configure:4483: checking for jerror.h" >&5
4482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6 4484 echo $ac_n "(cached) $ac_c" 1>&6
4484 else 4485 else
4485 cat > conftest.$ac_ext <<EOF 4486 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure" 4487 #line 4488 "configure"
4487 #include "confdefs.h" 4488 #include "confdefs.h"
4488 #include <jerror.h> 4489 #include <jerror.h>
4489 EOF 4490 EOF
4490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4491 { (eval echo configure:4492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4492 { (eval echo configure:4493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4493 if test -z "$ac_err"; then 4494 if test -z "$ac_err"; then
4494 rm -rf conftest* 4495 rm -rf conftest*
4495 eval "ac_cv_header_$ac_safe=yes" 4496 eval "ac_cv_header_$ac_safe=yes"
4496 else 4497 else
4503 rm -f conftest* 4504 rm -f conftest*
4504 fi 4505 fi
4505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6 4507 echo "$ac_t""yes" 1>&6
4507 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 4508 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4508 echo "configure:4509: checking for jpeg_destroy_compress in -ljpeg" >&5 4509 echo "configure:4510: checking for jpeg_destroy_compress in -ljpeg" >&5
4509 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 4510 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6 4512 echo $ac_n "(cached) $ac_c" 1>&6
4512 else 4513 else
4513 ac_save_LIBS="$LIBS" 4514 ac_save_LIBS="$LIBS"
4514 LIBS="-ljpeg -lX11 $LIBS" 4515 LIBS="-ljpeg -lX11 $LIBS"
4515 cat > conftest.$ac_ext <<EOF 4516 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure" 4517 #line 4518 "configure"
4517 #include "confdefs.h" 4518 #include "confdefs.h"
4518 /* Override any gcc2 internal prototype to avoid an error. */ 4519 /* Override any gcc2 internal prototype to avoid an error. */
4519 /* We use char because int might match the return type of a gcc2 4520 /* We use char because int might match the return type of a gcc2
4520 builtin and then its argument prototype would still apply. */ 4521 builtin and then its argument prototype would still apply. */
4521 char jpeg_destroy_compress(); 4522 char jpeg_destroy_compress();
4522 4523
4523 int main() { 4524 int main() {
4524 jpeg_destroy_compress() 4525 jpeg_destroy_compress()
4525 ; return 0; } 4526 ; return 0; }
4526 EOF 4527 EOF
4527 if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4528 if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4528 rm -rf conftest* 4529 rm -rf conftest*
4529 eval "ac_cv_lib_$ac_lib_var=yes" 4530 eval "ac_cv_lib_$ac_lib_var=yes"
4530 else 4531 else
4531 echo "configure: failed program was:" >&5 4532 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5 4533 cat conftest.$ac_ext >&5
4565 if test "${with_png}" != "no"; then 4566 if test "${with_png}" != "no"; then
4566 old_c_flags="${CFLAGS}" 4567 old_c_flags="${CFLAGS}"
4567 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4568 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4568 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 4569 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4569 echo $ac_n "checking for png.h""... $ac_c" 1>&6 4570 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4570 echo "configure:4571: checking for png.h" >&5 4571 echo "configure:4572: checking for png.h" >&5
4571 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4572 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6 4573 echo $ac_n "(cached) $ac_c" 1>&6
4573 else 4574 else
4574 cat > conftest.$ac_ext <<EOF 4575 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure" 4576 #line 4577 "configure"
4576 #include "confdefs.h" 4577 #include "confdefs.h"
4577 #include <png.h> 4578 #include <png.h>
4578 EOF 4579 EOF
4579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4580 { (eval echo configure:4581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4581 { (eval echo configure:4582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4582 if test -z "$ac_err"; then 4583 if test -z "$ac_err"; then
4583 rm -rf conftest* 4584 rm -rf conftest*
4584 eval "ac_cv_header_$ac_safe=yes" 4585 eval "ac_cv_header_$ac_safe=yes"
4585 else 4586 else
4592 rm -f conftest* 4593 rm -f conftest*
4593 fi 4594 fi
4594 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4595 echo "$ac_t""yes" 1>&6 4596 echo "$ac_t""yes" 1>&6
4596 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 4597 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4597 echo "configure:4598: checking for png_set_expand in -lpng" >&5 4598 echo "configure:4599: checking for png_set_expand in -lpng" >&5
4598 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` 4599 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6 4601 echo $ac_n "(cached) $ac_c" 1>&6
4601 else 4602 else
4602 ac_save_LIBS="$LIBS" 4603 ac_save_LIBS="$LIBS"
4603 LIBS="-lpng -lX11 -lz -lm $LIBS" 4604 LIBS="-lpng -lX11 -lz -lm $LIBS"
4604 cat > conftest.$ac_ext <<EOF 4605 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure" 4606 #line 4607 "configure"
4606 #include "confdefs.h" 4607 #include "confdefs.h"
4607 /* Override any gcc2 internal prototype to avoid an error. */ 4608 /* Override any gcc2 internal prototype to avoid an error. */
4608 /* We use char because int might match the return type of a gcc2 4609 /* We use char because int might match the return type of a gcc2
4609 builtin and then its argument prototype would still apply. */ 4610 builtin and then its argument prototype would still apply. */
4610 char png_set_expand(); 4611 char png_set_expand();
4611 4612
4612 int main() { 4613 int main() {
4613 png_set_expand() 4614 png_set_expand()
4614 ; return 0; } 4615 ; return 0; }
4615 EOF 4616 EOF
4616 if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4617 rm -rf conftest* 4618 rm -rf conftest*
4618 eval "ac_cv_lib_$ac_lib_var=yes" 4619 eval "ac_cv_lib_$ac_lib_var=yes"
4619 else 4620 else
4620 echo "configure: failed program was:" >&5 4621 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5 4622 cat conftest.$ac_ext >&5
4654 if test "${with_tiff}" != "no"; then 4655 if test "${with_tiff}" != "no"; then
4655 old_c_flags="${CFLAGS}" 4656 old_c_flags="${CFLAGS}"
4656 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4657 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4657 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 4658 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4658 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 4659 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4659 echo "configure:4660: checking for tiffio.h" >&5 4660 echo "configure:4661: checking for tiffio.h" >&5
4660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6 4662 echo $ac_n "(cached) $ac_c" 1>&6
4662 else 4663 else
4663 cat > conftest.$ac_ext <<EOF 4664 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure" 4665 #line 4666 "configure"
4665 #include "confdefs.h" 4666 #include "confdefs.h"
4666 #include <tiffio.h> 4667 #include <tiffio.h>
4667 EOF 4668 EOF
4668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4669 { (eval echo configure:4670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4670 { (eval echo configure:4671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4671 if test -z "$ac_err"; then 4672 if test -z "$ac_err"; then
4672 rm -rf conftest* 4673 rm -rf conftest*
4673 eval "ac_cv_header_$ac_safe=yes" 4674 eval "ac_cv_header_$ac_safe=yes"
4674 else 4675 else
4684 echo "$ac_t""yes" 1>&6 4685 echo "$ac_t""yes" 1>&6
4685 tifflibs="-lX11 -lz -lm" 4686 tifflibs="-lX11 -lz -lm"
4686 # At least one tiff package requires the jpeg library. 4687 # At least one tiff package requires the jpeg library.
4687 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 4688 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
4688 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 4689 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4689 echo "configure:4690: checking for TIFFGetVersion in -ltiff" >&5 4690 echo "configure:4691: checking for TIFFGetVersion in -ltiff" >&5
4690 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 4691 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6 4693 echo $ac_n "(cached) $ac_c" 1>&6
4693 else 4694 else
4694 ac_save_LIBS="$LIBS" 4695 ac_save_LIBS="$LIBS"
4695 LIBS="-ltiff $tifflibs $LIBS" 4696 LIBS="-ltiff $tifflibs $LIBS"
4696 cat > conftest.$ac_ext <<EOF 4697 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure" 4698 #line 4699 "configure"
4698 #include "confdefs.h" 4699 #include "confdefs.h"
4699 /* Override any gcc2 internal prototype to avoid an error. */ 4700 /* Override any gcc2 internal prototype to avoid an error. */
4700 /* We use char because int might match the return type of a gcc2 4701 /* We use char because int might match the return type of a gcc2
4701 builtin and then its argument prototype would still apply. */ 4702 builtin and then its argument prototype would still apply. */
4702 char TIFFGetVersion(); 4703 char TIFFGetVersion();
4703 4704
4704 int main() { 4705 int main() {
4705 TIFFGetVersion() 4706 TIFFGetVersion()
4706 ; return 0; } 4707 ; return 0; }
4707 EOF 4708 EOF
4708 if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4709 if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4709 rm -rf conftest* 4710 rm -rf conftest*
4710 eval "ac_cv_lib_$ac_lib_var=yes" 4711 eval "ac_cv_lib_$ac_lib_var=yes"
4711 else 4712 else
4712 echo "configure: failed program was:" >&5 4713 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5 4714 cat conftest.$ac_ext >&5
4746 if test "${with_gif}" != "no"; then 4747 if test "${with_gif}" != "no"; then
4747 old_c_flags="${CFLAGS}" 4748 old_c_flags="${CFLAGS}"
4748 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4749 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4749 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 4750 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4750 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 4751 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4751 echo "configure:4752: checking for gif_lib.h" >&5 4752 echo "configure:4753: checking for gif_lib.h" >&5
4752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6 4754 echo $ac_n "(cached) $ac_c" 1>&6
4754 else 4755 else
4755 cat > conftest.$ac_ext <<EOF 4756 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure" 4757 #line 4758 "configure"
4757 #include "confdefs.h" 4758 #include "confdefs.h"
4758 #include <gif_lib.h> 4759 #include <gif_lib.h>
4759 EOF 4760 EOF
4760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4761 { (eval echo configure:4762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4762 { (eval echo configure:4763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4763 if test -z "$ac_err"; then 4764 if test -z "$ac_err"; then
4764 rm -rf conftest* 4765 rm -rf conftest*
4765 eval "ac_cv_header_$ac_safe=yes" 4766 eval "ac_cv_header_$ac_safe=yes"
4766 else 4767 else
4773 rm -f conftest* 4774 rm -f conftest*
4774 fi 4775 fi
4775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6 4777 echo "$ac_t""yes" 1>&6
4777 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 4778 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
4778 echo "configure:4779: checking for DGifOpen in -lungif" >&5 4779 echo "configure:4780: checking for DGifOpen in -lungif" >&5
4779 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` 4780 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
4780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4781 echo $ac_n "(cached) $ac_c" 1>&6 4782 echo $ac_n "(cached) $ac_c" 1>&6
4782 else 4783 else
4783 ac_save_LIBS="$LIBS" 4784 ac_save_LIBS="$LIBS"
4784 LIBS="-lungif -lX11 $LIBS" 4785 LIBS="-lungif -lX11 $LIBS"
4785 cat > conftest.$ac_ext <<EOF 4786 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure" 4787 #line 4788 "configure"
4787 #include "confdefs.h" 4788 #include "confdefs.h"
4788 /* Override any gcc2 internal prototype to avoid an error. */ 4789 /* Override any gcc2 internal prototype to avoid an error. */
4789 /* We use char because int might match the return type of a gcc2 4790 /* We use char because int might match the return type of a gcc2
4790 builtin and then its argument prototype would still apply. */ 4791 builtin and then its argument prototype would still apply. */
4791 char DGifOpen(); 4792 char DGifOpen();
4792 4793
4793 int main() { 4794 int main() {
4794 DGifOpen() 4795 DGifOpen()
4795 ; return 0; } 4796 ; return 0; }
4796 EOF 4797 EOF
4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4798 if { (eval echo configure:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4798 rm -rf conftest* 4799 rm -rf conftest*
4799 eval "ac_cv_lib_$ac_lib_var=yes" 4800 eval "ac_cv_lib_$ac_lib_var=yes"
4800 else 4801 else
4801 echo "configure: failed program was:" >&5 4802 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5 4803 cat conftest.$ac_ext >&5
4829 fi 4830 fi
4830 fi 4831 fi
4831 4832
4832 # If netdb.h doesn't declare h_errno, we must declare it by hand. 4833 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4833 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 4834 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4834 echo "configure:4835: checking whether netdb declares h_errno" >&5 4835 echo "configure:4836: checking whether netdb declares h_errno" >&5
4835 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 4836 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6 4837 echo $ac_n "(cached) $ac_c" 1>&6
4837 else 4838 else
4838 cat > conftest.$ac_ext <<EOF 4839 cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure" 4840 #line 4841 "configure"
4840 #include "confdefs.h" 4841 #include "confdefs.h"
4841 #include <netdb.h> 4842 #include <netdb.h>
4842 int main() { 4843 int main() {
4843 return h_errno; 4844 return h_errno;
4844 ; return 0; } 4845 ; return 0; }
4845 EOF 4846 EOF
4846 if { (eval echo configure:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4847 if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4847 rm -rf conftest* 4848 rm -rf conftest*
4848 emacs_cv_netdb_declares_h_errno=yes 4849 emacs_cv_netdb_declares_h_errno=yes
4849 else 4850 else
4850 echo "configure: failed program was:" >&5 4851 echo "configure: failed program was:" >&5
4851 cat conftest.$ac_ext >&5 4852 cat conftest.$ac_ext >&5
4864 fi 4865 fi
4865 4866
4866 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4867 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4867 # for constant arguments. Useless! 4868 # for constant arguments. Useless!
4868 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 4869 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4869 echo "configure:4870: checking for working alloca.h" >&5 4870 echo "configure:4871: checking for working alloca.h" >&5
4870 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 4871 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6 4872 echo $ac_n "(cached) $ac_c" 1>&6
4872 else 4873 else
4873 cat > conftest.$ac_ext <<EOF 4874 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure" 4875 #line 4876 "configure"
4875 #include "confdefs.h" 4876 #include "confdefs.h"
4876 #include <alloca.h> 4877 #include <alloca.h>
4877 int main() { 4878 int main() {
4878 void *p = alloca(2 * sizeof(int)); 4879 char *p = alloca(2 * sizeof(int));
4879 ; return 0; } 4880 ; return 0; }
4880 EOF 4881 EOF
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4882 if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4882 rm -rf conftest* 4883 rm -rf conftest*
4883 ac_cv_header_alloca_h=yes 4884 ac_cv_header_alloca_h=yes
4884 else 4885 else
4885 echo "configure: failed program was:" >&5 4886 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5 4887 cat conftest.$ac_ext >&5
4897 EOF 4898 EOF
4898 4899
4899 fi 4900 fi
4900 4901
4901 echo $ac_n "checking for alloca""... $ac_c" 1>&6 4902 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4902 echo "configure:4903: checking for alloca" >&5 4903 echo "configure:4904: checking for alloca" >&5
4903 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 4904 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6 4905 echo $ac_n "(cached) $ac_c" 1>&6
4905 else 4906 else
4906 cat > conftest.$ac_ext <<EOF 4907 cat > conftest.$ac_ext <<EOF
4907 #line 4908 "configure" 4908 #line 4909 "configure"
4908 #include "confdefs.h" 4909 #include "confdefs.h"
4909 4910
4910 #ifdef __GNUC__ 4911 #ifdef __GNUC__
4911 # define alloca __builtin_alloca 4912 # define alloca __builtin_alloca
4912 #else 4913 #else
4930 4931
4931 int main() { 4932 int main() {
4932 char *p = (char *) alloca(1); 4933 char *p = (char *) alloca(1);
4933 ; return 0; } 4934 ; return 0; }
4934 EOF 4935 EOF
4935 if { (eval echo configure:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4936 if { (eval echo configure:4937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4936 rm -rf conftest* 4937 rm -rf conftest*
4937 ac_cv_func_alloca_works=yes 4938 ac_cv_func_alloca_works=yes
4938 else 4939 else
4939 echo "configure: failed program was:" >&5 4940 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5 4941 cat conftest.$ac_ext >&5
4962 #define C_ALLOCA 1 4963 #define C_ALLOCA 1
4963 EOF 4964 EOF
4964 4965
4965 4966
4966 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 4967 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4967 echo "configure:4968: checking whether alloca needs Cray hooks" >&5 4968 echo "configure:4969: checking whether alloca needs Cray hooks" >&5
4968 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 4969 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6 4970 echo $ac_n "(cached) $ac_c" 1>&6
4970 else 4971 else
4971 cat > conftest.$ac_ext <<EOF 4972 cat > conftest.$ac_ext <<EOF
4972 #line 4973 "configure" 4973 #line 4974 "configure"
4973 #include "confdefs.h" 4974 #include "confdefs.h"
4974 #if defined(CRAY) && ! defined(CRAY2) 4975 #if defined(CRAY) && ! defined(CRAY2)
4975 webecray 4976 webecray
4976 #else 4977 #else
4977 wenotbecray 4978 wenotbecray
4992 4993
4993 echo "$ac_t""$ac_cv_os_cray" 1>&6 4994 echo "$ac_t""$ac_cv_os_cray" 1>&6
4994 if test $ac_cv_os_cray = yes; then 4995 if test $ac_cv_os_cray = yes; then
4995 for ac_func in _getb67 GETB67 getb67; do 4996 for ac_func in _getb67 GETB67 getb67; do
4996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4997 echo "configure:4998: checking for $ac_func" >&5 4998 echo "configure:4999: checking for $ac_func" >&5
4998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4999 echo $ac_n "(cached) $ac_c" 1>&6 5000 echo $ac_n "(cached) $ac_c" 1>&6
5000 else 5001 else
5001 cat > conftest.$ac_ext <<EOF 5002 cat > conftest.$ac_ext <<EOF
5002 #line 5003 "configure" 5003 #line 5004 "configure"
5003 #include "confdefs.h" 5004 #include "confdefs.h"
5004 /* System header to define __stub macros and hopefully few prototypes, 5005 /* System header to define __stub macros and hopefully few prototypes,
5005 which can conflict with char $ac_func(); below. */ 5006 which can conflict with char $ac_func(); below. */
5006 #include <assert.h> 5007 #include <assert.h>
5007 /* Override any gcc2 internal prototype to avoid an error. */ 5008 /* Override any gcc2 internal prototype to avoid an error. */
5020 $ac_func(); 5021 $ac_func();
5021 #endif 5022 #endif
5022 5023
5023 ; return 0; } 5024 ; return 0; }
5024 EOF 5025 EOF
5025 if { (eval echo configure:5026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5026 if { (eval echo configure:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5026 rm -rf conftest* 5027 rm -rf conftest*
5027 eval "ac_cv_func_$ac_func=yes" 5028 eval "ac_cv_func_$ac_func=yes"
5028 else 5029 else
5029 echo "configure: failed program was:" >&5 5030 echo "configure: failed program was:" >&5
5030 cat conftest.$ac_ext >&5 5031 cat conftest.$ac_ext >&5
5047 5048
5048 done 5049 done
5049 fi 5050 fi
5050 5051
5051 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 5052 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5052 echo "configure:5053: checking stack direction for C alloca" >&5 5053 echo "configure:5054: checking stack direction for C alloca" >&5
5053 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 5054 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6 5055 echo $ac_n "(cached) $ac_c" 1>&6
5055 else 5056 else
5056 if test "$cross_compiling" = yes; then 5057 if test "$cross_compiling" = yes; then
5057 ac_cv_c_stack_direction=0 5058 ac_cv_c_stack_direction=0
5058 else 5059 else
5059 cat > conftest.$ac_ext <<EOF 5060 cat > conftest.$ac_ext <<EOF
5060 #line 5061 "configure" 5061 #line 5062 "configure"
5061 #include "confdefs.h" 5062 #include "confdefs.h"
5062 find_stack_direction () 5063 find_stack_direction ()
5063 { 5064 {
5064 static char *addr = 0; 5065 static char *addr = 0;
5065 auto char dummy; 5066 auto char dummy;
5074 main () 5075 main ()
5075 { 5076 {
5076 exit (find_stack_direction() < 0); 5077 exit (find_stack_direction() < 0);
5077 } 5078 }
5078 EOF 5079 EOF
5079 if { (eval echo configure:5080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5080 then 5081 then
5081 ac_cv_c_stack_direction=1 5082 ac_cv_c_stack_direction=1
5082 else 5083 else
5083 echo "configure: failed program was:" >&5 5084 echo "configure: failed program was:" >&5
5084 cat conftest.$ac_ext >&5 5085 cat conftest.$ac_ext >&5
5099 5100
5100 5101
5101 # fmod, logb, and frexp are found in -lm on most systems. 5102 # fmod, logb, and frexp are found in -lm on most systems.
5102 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 5103 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5103 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 5104 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5104 echo "configure:5105: checking for sqrt in -lm" >&5 5105 echo "configure:5106: checking for sqrt in -lm" >&5
5105 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 5106 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5107 echo $ac_n "(cached) $ac_c" 1>&6 5108 echo $ac_n "(cached) $ac_c" 1>&6
5108 else 5109 else
5109 ac_save_LIBS="$LIBS" 5110 ac_save_LIBS="$LIBS"
5110 LIBS="-lm $LIBS" 5111 LIBS="-lm $LIBS"
5111 cat > conftest.$ac_ext <<EOF 5112 cat > conftest.$ac_ext <<EOF
5112 #line 5113 "configure" 5113 #line 5114 "configure"
5113 #include "confdefs.h" 5114 #include "confdefs.h"
5114 /* Override any gcc2 internal prototype to avoid an error. */ 5115 /* Override any gcc2 internal prototype to avoid an error. */
5115 /* We use char because int might match the return type of a gcc2 5116 /* We use char because int might match the return type of a gcc2
5116 builtin and then its argument prototype would still apply. */ 5117 builtin and then its argument prototype would still apply. */
5117 char sqrt(); 5118 char sqrt();
5118 5119
5119 int main() { 5120 int main() {
5120 sqrt() 5121 sqrt()
5121 ; return 0; } 5122 ; return 0; }
5122 EOF 5123 EOF
5123 if { (eval echo configure:5124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5124 rm -rf conftest* 5125 rm -rf conftest*
5125 eval "ac_cv_lib_$ac_lib_var=yes" 5126 eval "ac_cv_lib_$ac_lib_var=yes"
5126 else 5127 else
5127 echo "configure: failed program was:" >&5 5128 echo "configure: failed program was:" >&5
5128 cat conftest.$ac_ext >&5 5129 cat conftest.$ac_ext >&5
5148 fi 5149 fi
5149 5150
5150 5151
5151 # Check for mail-locking functions in a "mail" library 5152 # Check for mail-locking functions in a "mail" library
5152 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 5153 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5153 echo "configure:5154: checking for maillock in -lmail" >&5 5154 echo "configure:5155: checking for maillock in -lmail" >&5
5154 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 5155 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6 5157 echo $ac_n "(cached) $ac_c" 1>&6
5157 else 5158 else
5158 ac_save_LIBS="$LIBS" 5159 ac_save_LIBS="$LIBS"
5159 LIBS="-lmail $LIBS" 5160 LIBS="-lmail $LIBS"
5160 cat > conftest.$ac_ext <<EOF 5161 cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure" 5162 #line 5163 "configure"
5162 #include "confdefs.h" 5163 #include "confdefs.h"
5163 /* Override any gcc2 internal prototype to avoid an error. */ 5164 /* Override any gcc2 internal prototype to avoid an error. */
5164 /* We use char because int might match the return type of a gcc2 5165 /* We use char because int might match the return type of a gcc2
5165 builtin and then its argument prototype would still apply. */ 5166 builtin and then its argument prototype would still apply. */
5166 char maillock(); 5167 char maillock();
5167 5168
5168 int main() { 5169 int main() {
5169 maillock() 5170 maillock()
5170 ; return 0; } 5171 ; return 0; }
5171 EOF 5172 EOF
5172 if { (eval echo configure:5173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5173 rm -rf conftest* 5174 rm -rf conftest*
5174 eval "ac_cv_lib_$ac_lib_var=yes" 5175 eval "ac_cv_lib_$ac_lib_var=yes"
5175 else 5176 else
5176 echo "configure: failed program was:" >&5 5177 echo "configure: failed program was:" >&5
5177 cat conftest.$ac_ext >&5 5178 cat conftest.$ac_ext >&5
5195 else 5196 else
5196 echo "$ac_t""no" 1>&6 5197 echo "$ac_t""no" 1>&6
5197 fi 5198 fi
5198 5199
5199 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 5200 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5200 echo "configure:5201: checking for maillock in -llockfile" >&5 5201 echo "configure:5202: checking for maillock in -llockfile" >&5
5201 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 5202 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6 5204 echo $ac_n "(cached) $ac_c" 1>&6
5204 else 5205 else
5205 ac_save_LIBS="$LIBS" 5206 ac_save_LIBS="$LIBS"
5206 LIBS="-llockfile $LIBS" 5207 LIBS="-llockfile $LIBS"
5207 cat > conftest.$ac_ext <<EOF 5208 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure" 5209 #line 5210 "configure"
5209 #include "confdefs.h" 5210 #include "confdefs.h"
5210 /* Override any gcc2 internal prototype to avoid an error. */ 5211 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2 5212 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */ 5213 builtin and then its argument prototype would still apply. */
5213 char maillock(); 5214 char maillock();
5214 5215
5215 int main() { 5216 int main() {
5216 maillock() 5217 maillock()
5217 ; return 0; } 5218 ; return 0; }
5218 EOF 5219 EOF
5219 if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5220 if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5220 rm -rf conftest* 5221 rm -rf conftest*
5221 eval "ac_cv_lib_$ac_lib_var=yes" 5222 eval "ac_cv_lib_$ac_lib_var=yes"
5222 else 5223 else
5223 echo "configure: failed program was:" >&5 5224 echo "configure: failed program was:" >&5
5224 cat conftest.$ac_ext >&5 5225 cat conftest.$ac_ext >&5
5248 # (no liblockfile.a installed), ensure that we don't need to. 5249 # (no liblockfile.a installed), ensure that we don't need to.
5249 if test "$ac_cv_lib_lockfile_maillock" = no; then 5250 if test "$ac_cv_lib_lockfile_maillock" = no; then
5250 # Extract the first word of "liblockfile.so", so it can be a program name with args. 5251 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5251 set dummy liblockfile.so; ac_word=$2 5252 set dummy liblockfile.so; ac_word=$2
5252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5253 echo "configure:5254: checking for $ac_word" >&5 5254 echo "configure:5255: checking for $ac_word" >&5
5254 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 5255 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5255 echo $ac_n "(cached) $ac_c" 1>&6 5256 echo $ac_n "(cached) $ac_c" 1>&6
5256 else 5257 else
5257 if test -n "$liblockfile"; then 5258 if test -n "$liblockfile"; then
5258 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 5259 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
5289 else : 5290 else :
5290 fi 5291 fi
5291 for ac_func in touchlock 5292 for ac_func in touchlock
5292 do 5293 do
5293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5294 echo "configure:5295: checking for $ac_func" >&5 5295 echo "configure:5296: checking for $ac_func" >&5
5295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5296 echo $ac_n "(cached) $ac_c" 1>&6 5297 echo $ac_n "(cached) $ac_c" 1>&6
5297 else 5298 else
5298 cat > conftest.$ac_ext <<EOF 5299 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure" 5300 #line 5301 "configure"
5300 #include "confdefs.h" 5301 #include "confdefs.h"
5301 /* System header to define __stub macros and hopefully few prototypes, 5302 /* System header to define __stub macros and hopefully few prototypes,
5302 which can conflict with char $ac_func(); below. */ 5303 which can conflict with char $ac_func(); below. */
5303 #include <assert.h> 5304 #include <assert.h>
5304 /* Override any gcc2 internal prototype to avoid an error. */ 5305 /* Override any gcc2 internal prototype to avoid an error. */
5317 $ac_func(); 5318 $ac_func();
5318 #endif 5319 #endif
5319 5320
5320 ; return 0; } 5321 ; return 0; }
5321 EOF 5322 EOF
5322 if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5323 if { (eval echo configure:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5323 rm -rf conftest* 5324 rm -rf conftest*
5324 eval "ac_cv_func_$ac_func=yes" 5325 eval "ac_cv_func_$ac_func=yes"
5325 else 5326 else
5326 echo "configure: failed program was:" >&5 5327 echo "configure: failed program was:" >&5
5327 cat conftest.$ac_ext >&5 5328 cat conftest.$ac_ext >&5
5345 5346
5346 for ac_hdr in maillock.h 5347 for ac_hdr in maillock.h
5347 do 5348 do
5348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5349 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5350 echo "configure:5351: checking for $ac_hdr" >&5 5351 echo "configure:5352: checking for $ac_hdr" >&5
5351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6 5353 echo $ac_n "(cached) $ac_c" 1>&6
5353 else 5354 else
5354 cat > conftest.$ac_ext <<EOF 5355 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure" 5356 #line 5357 "configure"
5356 #include "confdefs.h" 5357 #include "confdefs.h"
5357 #include <$ac_hdr> 5358 #include <$ac_hdr>
5358 EOF 5359 EOF
5359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5360 { (eval echo configure:5361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5361 { (eval echo configure:5362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5362 if test -z "$ac_err"; then 5363 if test -z "$ac_err"; then
5363 rm -rf conftest* 5364 rm -rf conftest*
5364 eval "ac_cv_header_$ac_safe=yes" 5365 eval "ac_cv_header_$ac_safe=yes"
5365 else 5366 else
5390 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 5391 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
5391 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ 5392 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5392 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm 5393 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm
5393 do 5394 do
5394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5395 echo "configure:5396: checking for $ac_func" >&5 5396 echo "configure:5397: checking for $ac_func" >&5
5396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5397 echo $ac_n "(cached) $ac_c" 1>&6 5398 echo $ac_n "(cached) $ac_c" 1>&6
5398 else 5399 else
5399 cat > conftest.$ac_ext <<EOF 5400 cat > conftest.$ac_ext <<EOF
5400 #line 5401 "configure" 5401 #line 5402 "configure"
5401 #include "confdefs.h" 5402 #include "confdefs.h"
5402 /* System header to define __stub macros and hopefully few prototypes, 5403 /* System header to define __stub macros and hopefully few prototypes,
5403 which can conflict with char $ac_func(); below. */ 5404 which can conflict with char $ac_func(); below. */
5404 #include <assert.h> 5405 #include <assert.h>
5405 /* Override any gcc2 internal prototype to avoid an error. */ 5406 /* Override any gcc2 internal prototype to avoid an error. */
5418 $ac_func(); 5419 $ac_func();
5419 #endif 5420 #endif
5420 5421
5421 ; return 0; } 5422 ; return 0; }
5422 EOF 5423 EOF
5423 if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5424 if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5424 rm -rf conftest* 5425 rm -rf conftest*
5425 eval "ac_cv_func_$ac_func=yes" 5426 eval "ac_cv_func_$ac_func=yes"
5426 else 5427 else
5427 echo "configure: failed program was:" >&5 5428 echo "configure: failed program was:" >&5
5428 cat conftest.$ac_ext >&5 5429 cat conftest.$ac_ext >&5
5447 5448
5448 for ac_hdr in sys/time.h unistd.h 5449 for ac_hdr in sys/time.h unistd.h
5449 do 5450 do
5450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5451 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5452 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5452 echo "configure:5453: checking for $ac_hdr" >&5 5453 echo "configure:5454: checking for $ac_hdr" >&5
5453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5454 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6 5455 echo $ac_n "(cached) $ac_c" 1>&6
5455 else 5456 else
5456 cat > conftest.$ac_ext <<EOF 5457 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure" 5458 #line 5459 "configure"
5458 #include "confdefs.h" 5459 #include "confdefs.h"
5459 #include <$ac_hdr> 5460 #include <$ac_hdr>
5460 EOF 5461 EOF
5461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5462 { (eval echo configure:5463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5463 { (eval echo configure:5464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5464 if test -z "$ac_err"; then 5465 if test -z "$ac_err"; then
5465 rm -rf conftest* 5466 rm -rf conftest*
5466 eval "ac_cv_header_$ac_safe=yes" 5467 eval "ac_cv_header_$ac_safe=yes"
5467 else 5468 else
5486 done 5487 done
5487 5488
5488 for ac_func in alarm 5489 for ac_func in alarm
5489 do 5490 do
5490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5491 echo "configure:5492: checking for $ac_func" >&5 5492 echo "configure:5493: checking for $ac_func" >&5
5492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6 5494 echo $ac_n "(cached) $ac_c" 1>&6
5494 else 5495 else
5495 cat > conftest.$ac_ext <<EOF 5496 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure" 5497 #line 5498 "configure"
5497 #include "confdefs.h" 5498 #include "confdefs.h"
5498 /* System header to define __stub macros and hopefully few prototypes, 5499 /* System header to define __stub macros and hopefully few prototypes,
5499 which can conflict with char $ac_func(); below. */ 5500 which can conflict with char $ac_func(); below. */
5500 #include <assert.h> 5501 #include <assert.h>
5501 /* Override any gcc2 internal prototype to avoid an error. */ 5502 /* Override any gcc2 internal prototype to avoid an error. */
5514 $ac_func(); 5515 $ac_func();
5515 #endif 5516 #endif
5516 5517
5517 ; return 0; } 5518 ; return 0; }
5518 EOF 5519 EOF
5519 if { (eval echo configure:5520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5520 if { (eval echo configure:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5520 rm -rf conftest* 5521 rm -rf conftest*
5521 eval "ac_cv_func_$ac_func=yes" 5522 eval "ac_cv_func_$ac_func=yes"
5522 else 5523 else
5523 echo "configure: failed program was:" >&5 5524 echo "configure: failed program was:" >&5
5524 cat conftest.$ac_ext >&5 5525 cat conftest.$ac_ext >&5
5539 echo "$ac_t""no" 1>&6 5540 echo "$ac_t""no" 1>&6
5540 fi 5541 fi
5541 done 5542 done
5542 5543
5543 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 5544 echo $ac_n "checking for working mktime""... $ac_c" 1>&6
5544 echo "configure:5545: checking for working mktime" >&5 5545 echo "configure:5546: checking for working mktime" >&5
5545 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then 5546 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6 5547 echo $ac_n "(cached) $ac_c" 1>&6
5547 else 5548 else
5548 if test "$cross_compiling" = yes; then 5549 if test "$cross_compiling" = yes; then
5549 ac_cv_func_working_mktime=no 5550 ac_cv_func_working_mktime=no
5550 else 5551 else
5551 cat > conftest.$ac_ext <<EOF 5552 cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure" 5553 #line 5554 "configure"
5553 #include "confdefs.h" 5554 #include "confdefs.h"
5554 /* Test program from Paul Eggert (eggert@twinsun.com) 5555 /* Test program from Paul Eggert (eggert@twinsun.com)
5555 and Tony Leneis (tony@plaza.ds.adp.com). */ 5556 and Tony Leneis (tony@plaza.ds.adp.com). */
5556 #if TIME_WITH_SYS_TIME 5557 #if TIME_WITH_SYS_TIME
5557 # include <sys/time.h> 5558 # include <sys/time.h>
5696 irix_6_4_bug (); 5697 irix_6_4_bug ();
5697 spring_forward_gap (); 5698 spring_forward_gap ();
5698 exit (0); 5699 exit (0);
5699 } 5700 }
5700 EOF 5701 EOF
5701 if { (eval echo configure:5702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5702 then 5703 then
5703 ac_cv_func_working_mktime=yes 5704 ac_cv_func_working_mktime=yes
5704 else 5705 else
5705 echo "configure: failed program was:" >&5 5706 echo "configure: failed program was:" >&5
5706 cat conftest.$ac_ext >&5 5707 cat conftest.$ac_ext >&5
5727 # Check this now, so that we will NOT find the above functions in ncurses. 5728 # Check this now, so that we will NOT find the above functions in ncurses.
5728 # That is because we have not set up to link ncurses in lib-src. 5729 # That is because we have not set up to link ncurses in lib-src.
5729 # It's better to believe a function is not available 5730 # It's better to believe a function is not available
5730 # than to expect to find it in ncurses. 5731 # than to expect to find it in ncurses.
5731 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 5732 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5732 echo "configure:5733: checking for tparm in -lncurses" >&5 5733 echo "configure:5734: checking for tparm in -lncurses" >&5
5733 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 5734 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5735 echo $ac_n "(cached) $ac_c" 1>&6 5736 echo $ac_n "(cached) $ac_c" 1>&6
5736 else 5737 else
5737 ac_save_LIBS="$LIBS" 5738 ac_save_LIBS="$LIBS"
5738 LIBS="-lncurses $LIBS" 5739 LIBS="-lncurses $LIBS"
5739 cat > conftest.$ac_ext <<EOF 5740 cat > conftest.$ac_ext <<EOF
5740 #line 5741 "configure" 5741 #line 5742 "configure"
5741 #include "confdefs.h" 5742 #include "confdefs.h"
5742 /* Override any gcc2 internal prototype to avoid an error. */ 5743 /* Override any gcc2 internal prototype to avoid an error. */
5743 /* We use char because int might match the return type of a gcc2 5744 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */ 5745 builtin and then its argument prototype would still apply. */
5745 char tparm(); 5746 char tparm();
5746 5747
5747 int main() { 5748 int main() {
5748 tparm() 5749 tparm()
5749 ; return 0; } 5750 ; return 0; }
5750 EOF 5751 EOF
5751 if { (eval echo configure:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5752 if { (eval echo configure:5753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5752 rm -rf conftest* 5753 rm -rf conftest*
5753 eval "ac_cv_lib_$ac_lib_var=yes" 5754 eval "ac_cv_lib_$ac_lib_var=yes"
5754 else 5755 else
5755 echo "configure: failed program was:" >&5 5756 echo "configure: failed program was:" >&5
5756 cat conftest.$ac_ext >&5 5757 cat conftest.$ac_ext >&5
5777 5778
5778 5779
5779 # These tell us which Kerberos-related libraries to use. 5780 # These tell us which Kerberos-related libraries to use.
5780 if test "${with_kerberos+set}" = set; then 5781 if test "${with_kerberos+set}" = set; then
5781 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 5782 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
5782 echo "configure:5783: checking for com_err in -lcom_err" >&5 5783 echo "configure:5784: checking for com_err in -lcom_err" >&5
5783 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 5784 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
5784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6 5786 echo $ac_n "(cached) $ac_c" 1>&6
5786 else 5787 else
5787 ac_save_LIBS="$LIBS" 5788 ac_save_LIBS="$LIBS"
5788 LIBS="-lcom_err $LIBS" 5789 LIBS="-lcom_err $LIBS"
5789 cat > conftest.$ac_ext <<EOF 5790 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure" 5791 #line 5792 "configure"
5791 #include "confdefs.h" 5792 #include "confdefs.h"
5792 /* Override any gcc2 internal prototype to avoid an error. */ 5793 /* Override any gcc2 internal prototype to avoid an error. */
5793 /* We use char because int might match the return type of a gcc2 5794 /* We use char because int might match the return type of a gcc2
5794 builtin and then its argument prototype would still apply. */ 5795 builtin and then its argument prototype would still apply. */
5795 char com_err(); 5796 char com_err();
5796 5797
5797 int main() { 5798 int main() {
5798 com_err() 5799 com_err()
5799 ; return 0; } 5800 ; return 0; }
5800 EOF 5801 EOF
5801 if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5802 if { (eval echo configure:5803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5802 rm -rf conftest* 5803 rm -rf conftest*
5803 eval "ac_cv_lib_$ac_lib_var=yes" 5804 eval "ac_cv_lib_$ac_lib_var=yes"
5804 else 5805 else
5805 echo "configure: failed program was:" >&5 5806 echo "configure: failed program was:" >&5
5806 cat conftest.$ac_ext >&5 5807 cat conftest.$ac_ext >&5
5824 else 5825 else
5825 echo "$ac_t""no" 1>&6 5826 echo "$ac_t""no" 1>&6
5826 fi 5827 fi
5827 5828
5828 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 5829 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
5829 echo "configure:5830: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 5830 echo "configure:5831: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
5830 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 5831 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6 5833 echo $ac_n "(cached) $ac_c" 1>&6
5833 else 5834 else
5834 ac_save_LIBS="$LIBS" 5835 ac_save_LIBS="$LIBS"
5835 LIBS="-lk5crypto $LIBS" 5836 LIBS="-lk5crypto $LIBS"
5836 cat > conftest.$ac_ext <<EOF 5837 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure" 5838 #line 5839 "configure"
5838 #include "confdefs.h" 5839 #include "confdefs.h"
5839 /* Override any gcc2 internal prototype to avoid an error. */ 5840 /* Override any gcc2 internal prototype to avoid an error. */
5840 /* We use char because int might match the return type of a gcc2 5841 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */ 5842 builtin and then its argument prototype would still apply. */
5842 char mit_des_cbc_encrypt(); 5843 char mit_des_cbc_encrypt();
5843 5844
5844 int main() { 5845 int main() {
5845 mit_des_cbc_encrypt() 5846 mit_des_cbc_encrypt()
5846 ; return 0; } 5847 ; return 0; }
5847 EOF 5848 EOF
5848 if { (eval echo configure:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5849 if { (eval echo configure:5850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5849 rm -rf conftest* 5850 rm -rf conftest*
5850 eval "ac_cv_lib_$ac_lib_var=yes" 5851 eval "ac_cv_lib_$ac_lib_var=yes"
5851 else 5852 else
5852 echo "configure: failed program was:" >&5 5853 echo "configure: failed program was:" >&5
5853 cat conftest.$ac_ext >&5 5854 cat conftest.$ac_ext >&5
5871 else 5872 else
5872 echo "$ac_t""no" 1>&6 5873 echo "$ac_t""no" 1>&6
5873 fi 5874 fi
5874 5875
5875 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 5876 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
5876 echo "configure:5877: checking for mit_des_cbc_encrypt in -lcrypto" >&5 5877 echo "configure:5878: checking for mit_des_cbc_encrypt in -lcrypto" >&5
5877 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 5878 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6 5880 echo $ac_n "(cached) $ac_c" 1>&6
5880 else 5881 else
5881 ac_save_LIBS="$LIBS" 5882 ac_save_LIBS="$LIBS"
5882 LIBS="-lcrypto $LIBS" 5883 LIBS="-lcrypto $LIBS"
5883 cat > conftest.$ac_ext <<EOF 5884 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure" 5885 #line 5886 "configure"
5885 #include "confdefs.h" 5886 #include "confdefs.h"
5886 /* Override any gcc2 internal prototype to avoid an error. */ 5887 /* Override any gcc2 internal prototype to avoid an error. */
5887 /* We use char because int might match the return type of a gcc2 5888 /* We use char because int might match the return type of a gcc2
5888 builtin and then its argument prototype would still apply. */ 5889 builtin and then its argument prototype would still apply. */
5889 char mit_des_cbc_encrypt(); 5890 char mit_des_cbc_encrypt();
5890 5891
5891 int main() { 5892 int main() {
5892 mit_des_cbc_encrypt() 5893 mit_des_cbc_encrypt()
5893 ; return 0; } 5894 ; return 0; }
5894 EOF 5895 EOF
5895 if { (eval echo configure:5896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5896 if { (eval echo configure:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5896 rm -rf conftest* 5897 rm -rf conftest*
5897 eval "ac_cv_lib_$ac_lib_var=yes" 5898 eval "ac_cv_lib_$ac_lib_var=yes"
5898 else 5899 else
5899 echo "configure: failed program was:" >&5 5900 echo "configure: failed program was:" >&5
5900 cat conftest.$ac_ext >&5 5901 cat conftest.$ac_ext >&5
5918 else 5919 else
5919 echo "$ac_t""no" 1>&6 5920 echo "$ac_t""no" 1>&6
5920 fi 5921 fi
5921 5922
5922 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 5923 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
5923 echo "configure:5924: checking for krb5_init_context in -lkrb5" >&5 5924 echo "configure:5925: checking for krb5_init_context in -lkrb5" >&5
5924 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` 5925 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
5925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6 5927 echo $ac_n "(cached) $ac_c" 1>&6
5927 else 5928 else
5928 ac_save_LIBS="$LIBS" 5929 ac_save_LIBS="$LIBS"
5929 LIBS="-lkrb5 $LIBS" 5930 LIBS="-lkrb5 $LIBS"
5930 cat > conftest.$ac_ext <<EOF 5931 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure" 5932 #line 5933 "configure"
5932 #include "confdefs.h" 5933 #include "confdefs.h"
5933 /* Override any gcc2 internal prototype to avoid an error. */ 5934 /* Override any gcc2 internal prototype to avoid an error. */
5934 /* We use char because int might match the return type of a gcc2 5935 /* We use char because int might match the return type of a gcc2
5935 builtin and then its argument prototype would still apply. */ 5936 builtin and then its argument prototype would still apply. */
5936 char krb5_init_context(); 5937 char krb5_init_context();
5937 5938
5938 int main() { 5939 int main() {
5939 krb5_init_context() 5940 krb5_init_context()
5940 ; return 0; } 5941 ; return 0; }
5941 EOF 5942 EOF
5942 if { (eval echo configure:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5943 if { (eval echo configure:5944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5943 rm -rf conftest* 5944 rm -rf conftest*
5944 eval "ac_cv_lib_$ac_lib_var=yes" 5945 eval "ac_cv_lib_$ac_lib_var=yes"
5945 else 5946 else
5946 echo "configure: failed program was:" >&5 5947 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5 5948 cat conftest.$ac_ext >&5
5966 echo "$ac_t""no" 1>&6 5967 echo "$ac_t""no" 1>&6
5967 fi 5968 fi
5968 5969
5969 if test "${with_kerberos5+set}" != set; then 5970 if test "${with_kerberos5+set}" != set; then
5970 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 5971 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
5971 echo "configure:5972: checking for des_cbc_encrypt in -ldes425" >&5 5972 echo "configure:5973: checking for des_cbc_encrypt in -ldes425" >&5
5972 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 5973 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6 5975 echo $ac_n "(cached) $ac_c" 1>&6
5975 else 5976 else
5976 ac_save_LIBS="$LIBS" 5977 ac_save_LIBS="$LIBS"
5977 LIBS="-ldes425 $LIBS" 5978 LIBS="-ldes425 $LIBS"
5978 cat > conftest.$ac_ext <<EOF 5979 cat > conftest.$ac_ext <<EOF
5979 #line 5980 "configure" 5980 #line 5981 "configure"
5980 #include "confdefs.h" 5981 #include "confdefs.h"
5981 /* Override any gcc2 internal prototype to avoid an error. */ 5982 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2 5983 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */ 5984 builtin and then its argument prototype would still apply. */
5984 char des_cbc_encrypt(); 5985 char des_cbc_encrypt();
5985 5986
5986 int main() { 5987 int main() {
5987 des_cbc_encrypt() 5988 des_cbc_encrypt()
5988 ; return 0; } 5989 ; return 0; }
5989 EOF 5990 EOF
5990 if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5991 if { (eval echo configure:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5991 rm -rf conftest* 5992 rm -rf conftest*
5992 eval "ac_cv_lib_$ac_lib_var=yes" 5993 eval "ac_cv_lib_$ac_lib_var=yes"
5993 else 5994 else
5994 echo "configure: failed program was:" >&5 5995 echo "configure: failed program was:" >&5
5995 cat conftest.$ac_ext >&5 5996 cat conftest.$ac_ext >&5
6011 LIBS="-ldes425 $LIBS" 6012 LIBS="-ldes425 $LIBS"
6012 6013
6013 else 6014 else
6014 echo "$ac_t""no" 1>&6 6015 echo "$ac_t""no" 1>&6
6015 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 6016 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
6016 echo "configure:6017: checking for des_cbc_encrypt in -ldes" >&5 6017 echo "configure:6018: checking for des_cbc_encrypt in -ldes" >&5
6017 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 6018 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
6018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6019 echo $ac_n "(cached) $ac_c" 1>&6 6020 echo $ac_n "(cached) $ac_c" 1>&6
6020 else 6021 else
6021 ac_save_LIBS="$LIBS" 6022 ac_save_LIBS="$LIBS"
6022 LIBS="-ldes $LIBS" 6023 LIBS="-ldes $LIBS"
6023 cat > conftest.$ac_ext <<EOF 6024 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure" 6025 #line 6026 "configure"
6025 #include "confdefs.h" 6026 #include "confdefs.h"
6026 /* Override any gcc2 internal prototype to avoid an error. */ 6027 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2 6028 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */ 6029 builtin and then its argument prototype would still apply. */
6029 char des_cbc_encrypt(); 6030 char des_cbc_encrypt();
6030 6031
6031 int main() { 6032 int main() {
6032 des_cbc_encrypt() 6033 des_cbc_encrypt()
6033 ; return 0; } 6034 ; return 0; }
6034 EOF 6035 EOF
6035 if { (eval echo configure:6036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6036 if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6036 rm -rf conftest* 6037 rm -rf conftest*
6037 eval "ac_cv_lib_$ac_lib_var=yes" 6038 eval "ac_cv_lib_$ac_lib_var=yes"
6038 else 6039 else
6039 echo "configure: failed program was:" >&5 6040 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5 6041 cat conftest.$ac_ext >&5
6060 fi 6061 fi
6061 6062
6062 fi 6063 fi
6063 6064
6064 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 6065 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
6065 echo "configure:6066: checking for krb_get_cred in -lkrb4" >&5 6066 echo "configure:6067: checking for krb_get_cred in -lkrb4" >&5
6066 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` 6067 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
6067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6068 echo $ac_n "(cached) $ac_c" 1>&6 6069 echo $ac_n "(cached) $ac_c" 1>&6
6069 else 6070 else
6070 ac_save_LIBS="$LIBS" 6071 ac_save_LIBS="$LIBS"
6071 LIBS="-lkrb4 $LIBS" 6072 LIBS="-lkrb4 $LIBS"
6072 cat > conftest.$ac_ext <<EOF 6073 cat > conftest.$ac_ext <<EOF
6073 #line 6074 "configure" 6074 #line 6075 "configure"
6074 #include "confdefs.h" 6075 #include "confdefs.h"
6075 /* Override any gcc2 internal prototype to avoid an error. */ 6076 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2 6077 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */ 6078 builtin and then its argument prototype would still apply. */
6078 char krb_get_cred(); 6079 char krb_get_cred();
6079 6080
6080 int main() { 6081 int main() {
6081 krb_get_cred() 6082 krb_get_cred()
6082 ; return 0; } 6083 ; return 0; }
6083 EOF 6084 EOF
6084 if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6085 if { (eval echo configure:6086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6085 rm -rf conftest* 6086 rm -rf conftest*
6086 eval "ac_cv_lib_$ac_lib_var=yes" 6087 eval "ac_cv_lib_$ac_lib_var=yes"
6087 else 6088 else
6088 echo "configure: failed program was:" >&5 6089 echo "configure: failed program was:" >&5
6089 cat conftest.$ac_ext >&5 6090 cat conftest.$ac_ext >&5
6105 LIBS="-lkrb4 $LIBS" 6106 LIBS="-lkrb4 $LIBS"
6106 6107
6107 else 6108 else
6108 echo "$ac_t""no" 1>&6 6109 echo "$ac_t""no" 1>&6
6109 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 6110 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
6110 echo "configure:6111: checking for krb_get_cred in -lkrb" >&5 6111 echo "configure:6112: checking for krb_get_cred in -lkrb" >&5
6111 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` 6112 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
6112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6113 echo $ac_n "(cached) $ac_c" 1>&6 6114 echo $ac_n "(cached) $ac_c" 1>&6
6114 else 6115 else
6115 ac_save_LIBS="$LIBS" 6116 ac_save_LIBS="$LIBS"
6116 LIBS="-lkrb $LIBS" 6117 LIBS="-lkrb $LIBS"
6117 cat > conftest.$ac_ext <<EOF 6118 cat > conftest.$ac_ext <<EOF
6118 #line 6119 "configure" 6119 #line 6120 "configure"
6119 #include "confdefs.h" 6120 #include "confdefs.h"
6120 /* Override any gcc2 internal prototype to avoid an error. */ 6121 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2 6122 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */ 6123 builtin and then its argument prototype would still apply. */
6123 char krb_get_cred(); 6124 char krb_get_cred();
6124 6125
6125 int main() { 6126 int main() {
6126 krb_get_cred() 6127 krb_get_cred()
6127 ; return 0; } 6128 ; return 0; }
6128 EOF 6129 EOF
6129 if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6130 if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6130 rm -rf conftest* 6131 rm -rf conftest*
6131 eval "ac_cv_lib_$ac_lib_var=yes" 6132 eval "ac_cv_lib_$ac_lib_var=yes"
6132 else 6133 else
6133 echo "configure: failed program was:" >&5 6134 echo "configure: failed program was:" >&5
6134 cat conftest.$ac_ext >&5 6135 cat conftest.$ac_ext >&5
6160 if test "${with_kerberos5+set}" = set; then 6161 if test "${with_kerberos5+set}" = set; then
6161 for ac_hdr in krb5.h 6162 for ac_hdr in krb5.h
6162 do 6163 do
6163 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6164 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6164 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6165 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6165 echo "configure:6166: checking for $ac_hdr" >&5 6166 echo "configure:6167: checking for $ac_hdr" >&5
6166 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6167 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6 6168 echo $ac_n "(cached) $ac_c" 1>&6
6168 else 6169 else
6169 cat > conftest.$ac_ext <<EOF 6170 cat > conftest.$ac_ext <<EOF
6170 #line 6171 "configure" 6171 #line 6172 "configure"
6171 #include "confdefs.h" 6172 #include "confdefs.h"
6172 #include <$ac_hdr> 6173 #include <$ac_hdr>
6173 EOF 6174 EOF
6174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6175 { (eval echo configure:6176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6176 { (eval echo configure:6177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6177 if test -z "$ac_err"; then 6178 if test -z "$ac_err"; then
6178 rm -rf conftest* 6179 rm -rf conftest*
6179 eval "ac_cv_header_$ac_safe=yes" 6180 eval "ac_cv_header_$ac_safe=yes"
6180 else 6181 else
6201 else 6202 else
6202 for ac_hdr in des.h 6203 for ac_hdr in des.h
6203 do 6204 do
6204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6205 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6206 echo "configure:6207: checking for $ac_hdr" >&5 6207 echo "configure:6208: checking for $ac_hdr" >&5
6207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6 6209 echo $ac_n "(cached) $ac_c" 1>&6
6209 else 6210 else
6210 cat > conftest.$ac_ext <<EOF 6211 cat > conftest.$ac_ext <<EOF
6211 #line 6212 "configure" 6212 #line 6213 "configure"
6212 #include "confdefs.h" 6213 #include "confdefs.h"
6213 #include <$ac_hdr> 6214 #include <$ac_hdr>
6214 EOF 6215 EOF
6215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6216 { (eval echo configure:6217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6217 { (eval echo configure:6218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6218 if test -z "$ac_err"; then 6219 if test -z "$ac_err"; then
6219 rm -rf conftest* 6220 rm -rf conftest*
6220 eval "ac_cv_header_$ac_safe=yes" 6221 eval "ac_cv_header_$ac_safe=yes"
6221 else 6222 else
6238 echo "$ac_t""no" 1>&6 6239 echo "$ac_t""no" 1>&6
6239 for ac_hdr in kerberosIV/des.h 6240 for ac_hdr in kerberosIV/des.h
6240 do 6241 do
6241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6243 echo "configure:6244: checking for $ac_hdr" >&5 6244 echo "configure:6245: checking for $ac_hdr" >&5
6244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6245 echo $ac_n "(cached) $ac_c" 1>&6 6246 echo $ac_n "(cached) $ac_c" 1>&6
6246 else 6247 else
6247 cat > conftest.$ac_ext <<EOF 6248 cat > conftest.$ac_ext <<EOF
6248 #line 6249 "configure" 6249 #line 6250 "configure"
6249 #include "confdefs.h" 6250 #include "confdefs.h"
6250 #include <$ac_hdr> 6251 #include <$ac_hdr>
6251 EOF 6252 EOF
6252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6253 { (eval echo configure:6254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6254 { (eval echo configure:6255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6255 if test -z "$ac_err"; then 6256 if test -z "$ac_err"; then
6256 rm -rf conftest* 6257 rm -rf conftest*
6257 eval "ac_cv_header_$ac_safe=yes" 6258 eval "ac_cv_header_$ac_safe=yes"
6258 else 6259 else
6275 echo "$ac_t""no" 1>&6 6276 echo "$ac_t""no" 1>&6
6276 for ac_hdr in kerberos/des.h 6277 for ac_hdr in kerberos/des.h
6277 do 6278 do
6278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6280 echo "configure:6281: checking for $ac_hdr" >&5 6281 echo "configure:6282: checking for $ac_hdr" >&5
6281 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6 6283 echo $ac_n "(cached) $ac_c" 1>&6
6283 else 6284 else
6284 cat > conftest.$ac_ext <<EOF 6285 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure" 6286 #line 6287 "configure"
6286 #include "confdefs.h" 6287 #include "confdefs.h"
6287 #include <$ac_hdr> 6288 #include <$ac_hdr>
6288 EOF 6289 EOF
6289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6290 { (eval echo configure:6291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6291 { (eval echo configure:6292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6292 if test -z "$ac_err"; then 6293 if test -z "$ac_err"; then
6293 rm -rf conftest* 6294 rm -rf conftest*
6294 eval "ac_cv_header_$ac_safe=yes" 6295 eval "ac_cv_header_$ac_safe=yes"
6295 else 6296 else
6321 6322
6322 for ac_hdr in krb.h 6323 for ac_hdr in krb.h
6323 do 6324 do
6324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6325 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6326 echo "configure:6327: checking for $ac_hdr" >&5 6327 echo "configure:6328: checking for $ac_hdr" >&5
6327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6 6329 echo $ac_n "(cached) $ac_c" 1>&6
6329 else 6330 else
6330 cat > conftest.$ac_ext <<EOF 6331 cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure" 6332 #line 6333 "configure"
6332 #include "confdefs.h" 6333 #include "confdefs.h"
6333 #include <$ac_hdr> 6334 #include <$ac_hdr>
6334 EOF 6335 EOF
6335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6336 { (eval echo configure:6337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6337 { (eval echo configure:6338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6338 if test -z "$ac_err"; then 6339 if test -z "$ac_err"; then
6339 rm -rf conftest* 6340 rm -rf conftest*
6340 eval "ac_cv_header_$ac_safe=yes" 6341 eval "ac_cv_header_$ac_safe=yes"
6341 else 6342 else
6358 echo "$ac_t""no" 1>&6 6359 echo "$ac_t""no" 1>&6
6359 for ac_hdr in kerberosIV/krb.h 6360 for ac_hdr in kerberosIV/krb.h
6360 do 6361 do
6361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6363 echo "configure:6364: checking for $ac_hdr" >&5 6364 echo "configure:6365: checking for $ac_hdr" >&5
6364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6365 echo $ac_n "(cached) $ac_c" 1>&6 6366 echo $ac_n "(cached) $ac_c" 1>&6
6366 else 6367 else
6367 cat > conftest.$ac_ext <<EOF 6368 cat > conftest.$ac_ext <<EOF
6368 #line 6369 "configure" 6369 #line 6370 "configure"
6369 #include "confdefs.h" 6370 #include "confdefs.h"
6370 #include <$ac_hdr> 6371 #include <$ac_hdr>
6371 EOF 6372 EOF
6372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6373 { (eval echo configure:6374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6374 { (eval echo configure:6375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6375 if test -z "$ac_err"; then 6376 if test -z "$ac_err"; then
6376 rm -rf conftest* 6377 rm -rf conftest*
6377 eval "ac_cv_header_$ac_safe=yes" 6378 eval "ac_cv_header_$ac_safe=yes"
6378 else 6379 else
6395 echo "$ac_t""no" 1>&6 6396 echo "$ac_t""no" 1>&6
6396 for ac_hdr in kerberos/krb.h 6397 for ac_hdr in kerberos/krb.h
6397 do 6398 do
6398 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6399 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6400 echo "configure:6401: checking for $ac_hdr" >&5 6401 echo "configure:6402: checking for $ac_hdr" >&5
6401 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6 6403 echo $ac_n "(cached) $ac_c" 1>&6
6403 else 6404 else
6404 cat > conftest.$ac_ext <<EOF 6405 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure" 6406 #line 6407 "configure"
6406 #include "confdefs.h" 6407 #include "confdefs.h"
6407 #include <$ac_hdr> 6408 #include <$ac_hdr>
6408 EOF 6409 EOF
6409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6410 { (eval echo configure:6411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6411 { (eval echo configure:6412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6412 if test -z "$ac_err"; then 6413 if test -z "$ac_err"; then
6413 rm -rf conftest* 6414 rm -rf conftest*
6414 eval "ac_cv_header_$ac_safe=yes" 6415 eval "ac_cv_header_$ac_safe=yes"
6415 else 6416 else
6442 fi 6443 fi
6443 for ac_hdr in com_err.h 6444 for ac_hdr in com_err.h
6444 do 6445 do
6445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6447 echo "configure:6448: checking for $ac_hdr" >&5 6448 echo "configure:6449: checking for $ac_hdr" >&5
6448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6449 echo $ac_n "(cached) $ac_c" 1>&6 6450 echo $ac_n "(cached) $ac_c" 1>&6
6450 else 6451 else
6451 cat > conftest.$ac_ext <<EOF 6452 cat > conftest.$ac_ext <<EOF
6452 #line 6453 "configure" 6453 #line 6454 "configure"
6453 #include "confdefs.h" 6454 #include "confdefs.h"
6454 #include <$ac_hdr> 6455 #include <$ac_hdr>
6455 EOF 6456 EOF
6456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6457 { (eval echo configure:6458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6458 { (eval echo configure:6459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6459 if test -z "$ac_err"; then 6460 if test -z "$ac_err"; then
6460 rm -rf conftest* 6461 rm -rf conftest*
6461 eval "ac_cv_header_$ac_safe=yes" 6462 eval "ac_cv_header_$ac_safe=yes"
6462 else 6463 else
6483 fi 6484 fi
6484 6485
6485 # Solaris requires -lintl if you want strerror (which calls dgettext) 6486 # Solaris requires -lintl if you want strerror (which calls dgettext)
6486 # to return localized messages. 6487 # to return localized messages.
6487 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 6488 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
6488 echo "configure:6489: checking for dgettext in -lintl" >&5 6489 echo "configure:6490: checking for dgettext in -lintl" >&5
6489 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 6490 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
6490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6491 echo $ac_n "(cached) $ac_c" 1>&6 6492 echo $ac_n "(cached) $ac_c" 1>&6
6492 else 6493 else
6493 ac_save_LIBS="$LIBS" 6494 ac_save_LIBS="$LIBS"
6494 LIBS="-lintl $LIBS" 6495 LIBS="-lintl $LIBS"
6495 cat > conftest.$ac_ext <<EOF 6496 cat > conftest.$ac_ext <<EOF
6496 #line 6497 "configure" 6497 #line 6498 "configure"
6497 #include "confdefs.h" 6498 #include "confdefs.h"
6498 /* Override any gcc2 internal prototype to avoid an error. */ 6499 /* Override any gcc2 internal prototype to avoid an error. */
6499 /* We use char because int might match the return type of a gcc2 6500 /* We use char because int might match the return type of a gcc2
6500 builtin and then its argument prototype would still apply. */ 6501 builtin and then its argument prototype would still apply. */
6501 char dgettext(); 6502 char dgettext();
6502 6503
6503 int main() { 6504 int main() {
6504 dgettext() 6505 dgettext()
6505 ; return 0; } 6506 ; return 0; }
6506 EOF 6507 EOF
6507 if { (eval echo configure:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6508 if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6508 rm -rf conftest* 6509 rm -rf conftest*
6509 eval "ac_cv_lib_$ac_lib_var=yes" 6510 eval "ac_cv_lib_$ac_lib_var=yes"
6510 else 6511 else
6511 echo "configure: failed program was:" >&5 6512 echo "configure: failed program was:" >&5
6512 cat conftest.$ac_ext >&5 6513 cat conftest.$ac_ext >&5
6531 echo "$ac_t""no" 1>&6 6532 echo "$ac_t""no" 1>&6
6532 fi 6533 fi
6533 6534
6534 6535
6535 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 6536 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
6536 echo "configure:6537: checking whether localtime caches TZ" >&5 6537 echo "configure:6538: checking whether localtime caches TZ" >&5
6537 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 6538 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
6538 echo $ac_n "(cached) $ac_c" 1>&6 6539 echo $ac_n "(cached) $ac_c" 1>&6
6539 else 6540 else
6540 if test x$ac_cv_func_tzset = xyes; then 6541 if test x$ac_cv_func_tzset = xyes; then
6541 if test "$cross_compiling" = yes; then 6542 if test "$cross_compiling" = yes; then
6542 # If we have tzset, assume the worst when cross-compiling. 6543 # If we have tzset, assume the worst when cross-compiling.
6543 emacs_cv_localtime_cache=yes 6544 emacs_cv_localtime_cache=yes
6544 else 6545 else
6545 cat > conftest.$ac_ext <<EOF 6546 cat > conftest.$ac_ext <<EOF
6546 #line 6547 "configure" 6547 #line 6548 "configure"
6547 #include "confdefs.h" 6548 #include "confdefs.h"
6548 #include <time.h> 6549 #include <time.h>
6549 extern char **environ; 6550 extern char **environ;
6550 unset_TZ () 6551 unset_TZ ()
6551 { 6552 {
6573 if (localtime (&now)->tm_hour != hour_unset) 6574 if (localtime (&now)->tm_hour != hour_unset)
6574 exit (1); 6575 exit (1);
6575 exit (0); 6576 exit (0);
6576 } 6577 }
6577 EOF 6578 EOF
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6579 if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6579 then 6580 then
6580 emacs_cv_localtime_cache=no 6581 emacs_cv_localtime_cache=no
6581 else 6582 else
6582 echo "configure: failed program was:" >&5 6583 echo "configure: failed program was:" >&5
6583 cat conftest.$ac_ext >&5 6584 cat conftest.$ac_ext >&5
6601 6602
6602 fi 6603 fi
6603 6604
6604 if test "x$HAVE_TIMEVAL" = xyes; then 6605 if test "x$HAVE_TIMEVAL" = xyes; then
6605 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 6606 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
6606 echo "configure:6607: checking whether gettimeofday can accept two arguments" >&5 6607 echo "configure:6608: checking whether gettimeofday can accept two arguments" >&5
6607 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 6608 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6 6609 echo $ac_n "(cached) $ac_c" 1>&6
6609 else 6610 else
6610 cat > conftest.$ac_ext <<EOF 6611 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure" 6612 #line 6613 "configure"
6612 #include "confdefs.h" 6613 #include "confdefs.h"
6613 6614
6614 #ifdef TIME_WITH_SYS_TIME 6615 #ifdef TIME_WITH_SYS_TIME
6615 #include <sys/time.h> 6616 #include <sys/time.h>
6616 #include <time.h> 6617 #include <time.h>
6628 struct timezone dummy; 6629 struct timezone dummy;
6629 gettimeofday (&time, &dummy); 6630 gettimeofday (&time, &dummy);
6630 6631
6631 ; return 0; } 6632 ; return 0; }
6632 EOF 6633 EOF
6633 if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6634 if { (eval echo configure:6635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6634 rm -rf conftest* 6635 rm -rf conftest*
6635 emacs_cv_gettimeofday_two_arguments=yes 6636 emacs_cv_gettimeofday_two_arguments=yes
6636 else 6637 else
6637 echo "configure: failed program was:" >&5 6638 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5 6639 cat conftest.$ac_ext >&5
6651 fi 6652 fi
6652 fi 6653 fi
6653 6654
6654 ok_so_far=yes 6655 ok_so_far=yes
6655 echo $ac_n "checking for socket""... $ac_c" 1>&6 6656 echo $ac_n "checking for socket""... $ac_c" 1>&6
6656 echo "configure:6657: checking for socket" >&5 6657 echo "configure:6658: checking for socket" >&5
6657 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 6658 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
6658 echo $ac_n "(cached) $ac_c" 1>&6 6659 echo $ac_n "(cached) $ac_c" 1>&6
6659 else 6660 else
6660 cat > conftest.$ac_ext <<EOF 6661 cat > conftest.$ac_ext <<EOF
6661 #line 6662 "configure" 6662 #line 6663 "configure"
6662 #include "confdefs.h" 6663 #include "confdefs.h"
6663 /* System header to define __stub macros and hopefully few prototypes, 6664 /* System header to define __stub macros and hopefully few prototypes,
6664 which can conflict with char socket(); below. */ 6665 which can conflict with char socket(); below. */
6665 #include <assert.h> 6666 #include <assert.h>
6666 /* Override any gcc2 internal prototype to avoid an error. */ 6667 /* Override any gcc2 internal prototype to avoid an error. */
6679 socket(); 6680 socket();
6680 #endif 6681 #endif
6681 6682
6682 ; return 0; } 6683 ; return 0; }
6683 EOF 6684 EOF
6684 if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6685 if { (eval echo configure:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6685 rm -rf conftest* 6686 rm -rf conftest*
6686 eval "ac_cv_func_socket=yes" 6687 eval "ac_cv_func_socket=yes"
6687 else 6688 else
6688 echo "configure: failed program was:" >&5 6689 echo "configure: failed program was:" >&5
6689 cat conftest.$ac_ext >&5 6690 cat conftest.$ac_ext >&5
6702 fi 6703 fi
6703 6704
6704 if test $ok_so_far = yes; then 6705 if test $ok_so_far = yes; then
6705 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 6706 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
6706 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 6707 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
6707 echo "configure:6708: checking for netinet/in.h" >&5 6708 echo "configure:6709: checking for netinet/in.h" >&5
6708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6709 echo $ac_n "(cached) $ac_c" 1>&6 6710 echo $ac_n "(cached) $ac_c" 1>&6
6710 else 6711 else
6711 cat > conftest.$ac_ext <<EOF 6712 cat > conftest.$ac_ext <<EOF
6712 #line 6713 "configure" 6713 #line 6714 "configure"
6713 #include "confdefs.h" 6714 #include "confdefs.h"
6714 #include <netinet/in.h> 6715 #include <netinet/in.h>
6715 EOF 6716 EOF
6716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6717 { (eval echo configure:6718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6718 { (eval echo configure:6719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6719 if test -z "$ac_err"; then 6720 if test -z "$ac_err"; then
6720 rm -rf conftest* 6721 rm -rf conftest*
6721 eval "ac_cv_header_$ac_safe=yes" 6722 eval "ac_cv_header_$ac_safe=yes"
6722 else 6723 else
6738 6739
6739 fi 6740 fi
6740 if test $ok_so_far = yes; then 6741 if test $ok_so_far = yes; then
6741 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 6742 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
6742 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 6743 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
6743 echo "configure:6744: checking for arpa/inet.h" >&5 6744 echo "configure:6745: checking for arpa/inet.h" >&5
6744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6 6746 echo $ac_n "(cached) $ac_c" 1>&6
6746 else 6747 else
6747 cat > conftest.$ac_ext <<EOF 6748 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure" 6749 #line 6750 "configure"
6749 #include "confdefs.h" 6750 #include "confdefs.h"
6750 #include <arpa/inet.h> 6751 #include <arpa/inet.h>
6751 EOF 6752 EOF
6752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6753 { (eval echo configure:6754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6754 { (eval echo configure:6755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6755 if test -z "$ac_err"; then 6756 if test -z "$ac_err"; then
6756 rm -rf conftest* 6757 rm -rf conftest*
6757 eval "ac_cv_header_$ac_safe=yes" 6758 eval "ac_cv_header_$ac_safe=yes"
6758 else 6759 else
6786 EOF 6787 EOF
6787 6788
6788 fi 6789 fi
6789 6790
6790 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 6791 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
6791 echo "configure:6792: checking whether system supports dynamic ptys" >&5 6792 echo "configure:6793: checking whether system supports dynamic ptys" >&5
6792 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 6793 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
6793 echo "$ac_t""yes" 1>&6 6794 echo "$ac_t""yes" 1>&6
6794 cat >> confdefs.h <<\EOF 6795 cat >> confdefs.h <<\EOF
6795 #define HAVE_DEV_PTMX 1 6796 #define HAVE_DEV_PTMX 1
6796 EOF 6797 EOF
6798 else 6799 else
6799 echo "$ac_t""no" 1>&6 6800 echo "$ac_t""no" 1>&6
6800 fi 6801 fi
6801 6802
6802 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 6803 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6803 echo "configure:6804: checking for pid_t" >&5 6804 echo "configure:6805: checking for pid_t" >&5
6804 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 6805 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6 6806 echo $ac_n "(cached) $ac_c" 1>&6
6806 else 6807 else
6807 cat > conftest.$ac_ext <<EOF 6808 cat > conftest.$ac_ext <<EOF
6808 #line 6809 "configure" 6809 #line 6810 "configure"
6809 #include "confdefs.h" 6810 #include "confdefs.h"
6810 #include <sys/types.h> 6811 #include <sys/types.h>
6811 #if STDC_HEADERS 6812 #if STDC_HEADERS
6812 #include <stdlib.h> 6813 #include <stdlib.h>
6813 #include <stddef.h> 6814 #include <stddef.h>
6832 6833
6833 fi 6834 fi
6834 6835
6835 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 6836 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6836 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 6837 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6837 echo "configure:6838: checking for vfork.h" >&5 6838 echo "configure:6839: checking for vfork.h" >&5
6838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6839 echo $ac_n "(cached) $ac_c" 1>&6 6840 echo $ac_n "(cached) $ac_c" 1>&6
6840 else 6841 else
6841 cat > conftest.$ac_ext <<EOF 6842 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure" 6843 #line 6844 "configure"
6843 #include "confdefs.h" 6844 #include "confdefs.h"
6844 #include <vfork.h> 6845 #include <vfork.h>
6845 EOF 6846 EOF
6846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6847 { (eval echo configure:6848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6848 { (eval echo configure:6849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6849 if test -z "$ac_err"; then 6850 if test -z "$ac_err"; then
6850 rm -rf conftest* 6851 rm -rf conftest*
6851 eval "ac_cv_header_$ac_safe=yes" 6852 eval "ac_cv_header_$ac_safe=yes"
6852 else 6853 else
6867 else 6868 else
6868 echo "$ac_t""no" 1>&6 6869 echo "$ac_t""no" 1>&6
6869 fi 6870 fi
6870 6871
6871 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 6872 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6872 echo "configure:6873: checking for working vfork" >&5 6873 echo "configure:6874: checking for working vfork" >&5
6873 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 6874 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6874 echo $ac_n "(cached) $ac_c" 1>&6 6875 echo $ac_n "(cached) $ac_c" 1>&6
6875 else 6876 else
6876 if test "$cross_compiling" = yes; then 6877 if test "$cross_compiling" = yes; then
6877 echo $ac_n "checking for vfork""... $ac_c" 1>&6 6878 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6878 echo "configure:6879: checking for vfork" >&5 6879 echo "configure:6880: checking for vfork" >&5
6879 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 6880 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6880 echo $ac_n "(cached) $ac_c" 1>&6 6881 echo $ac_n "(cached) $ac_c" 1>&6
6881 else 6882 else
6882 cat > conftest.$ac_ext <<EOF 6883 cat > conftest.$ac_ext <<EOF
6883 #line 6884 "configure" 6884 #line 6885 "configure"
6884 #include "confdefs.h" 6885 #include "confdefs.h"
6885 /* System header to define __stub macros and hopefully few prototypes, 6886 /* System header to define __stub macros and hopefully few prototypes,
6886 which can conflict with char vfork(); below. */ 6887 which can conflict with char vfork(); below. */
6887 #include <assert.h> 6888 #include <assert.h>
6888 /* Override any gcc2 internal prototype to avoid an error. */ 6889 /* Override any gcc2 internal prototype to avoid an error. */
6901 vfork(); 6902 vfork();
6902 #endif 6903 #endif
6903 6904
6904 ; return 0; } 6905 ; return 0; }
6905 EOF 6906 EOF
6906 if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6907 if { (eval echo configure:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6907 rm -rf conftest* 6908 rm -rf conftest*
6908 eval "ac_cv_func_vfork=yes" 6909 eval "ac_cv_func_vfork=yes"
6909 else 6910 else
6910 echo "configure: failed program was:" >&5 6911 echo "configure: failed program was:" >&5
6911 cat conftest.$ac_ext >&5 6912 cat conftest.$ac_ext >&5
6923 fi 6924 fi
6924 6925
6925 ac_cv_func_vfork_works=$ac_cv_func_vfork 6926 ac_cv_func_vfork_works=$ac_cv_func_vfork
6926 else 6927 else
6927 cat > conftest.$ac_ext <<EOF 6928 cat > conftest.$ac_ext <<EOF
6928 #line 6929 "configure" 6929 #line 6930 "configure"
6929 #include "confdefs.h" 6930 #include "confdefs.h"
6930 /* Thanks to Paul Eggert for this test. */ 6931 /* Thanks to Paul Eggert for this test. */
6931 #include <stdio.h> 6932 #include <stdio.h>
6932 #include <sys/types.h> 6933 #include <sys/types.h>
6933 #include <sys/stat.h> 6934 #include <sys/stat.h>
7018 || fstat(fileno(stdout), &st) != 0 7019 || fstat(fileno(stdout), &st) != 0
7019 ); 7020 );
7020 } 7021 }
7021 } 7022 }
7022 EOF 7023 EOF
7023 if { (eval echo configure:7024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7024 then 7025 then
7025 ac_cv_func_vfork_works=yes 7026 ac_cv_func_vfork_works=yes
7026 else 7027 else
7027 echo "configure: failed program was:" >&5 7028 echo "configure: failed program was:" >&5
7028 cat conftest.$ac_ext >&5 7029 cat conftest.$ac_ext >&5