aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love1999-11-08 16:26:25 +0000
committerDave Love1999-11-08 16:26:25 +0000
commit3d9fec712f1dff98c961c47820d7151bb36b884d (patch)
tree78b051d2c73eb6c712cfecace058f8083abf6f08
parentfa9aabf6340269ce49f0e26b59a9c2676c5938e2 (diff)
downloademacs-3d9fec712f1dff98c961c47820d7151bb36b884d.tar.gz
emacs-3d9fec712f1dff98c961c47820d7151bb36b884d.zip
Fix change for --with-pop default.
-rwxr-xr-xconfigure462
-rw-r--r--configure.in3
2 files changed, 245 insertions, 220 deletions
diff --git a/configure b/configure
index 37cc1cbad2b..eccdd6c9e91 100755
--- a/configure
+++ b/configure
@@ -569,6 +569,11 @@ EOF
569 569
570else : 570else :
571fi 571fi
572else
573 cat >> confdefs.h <<\EOF
574#define MAIL_USE_POP 1
575EOF
576
572fi 577fi
573 578
574# Check whether --with-hesiod or --without-hesiod was given. 579# Check whether --with-hesiod or --without-hesiod was given.
@@ -708,7 +713,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
708fi 713fi
709 714
710echo $ac_n "checking host system type""... $ac_c" 1>&6 715echo $ac_n "checking host system type""... $ac_c" 1>&6
711echo "configure:712: checking host system type" >&5 716echo "configure:717: checking host system type" >&5
712 717
713host_alias=$host 718host_alias=$host
714case "$host_alias" in 719case "$host_alias" in
@@ -1649,7 +1654,7 @@ case ${with_gcc} in
1649 * ) # Extract the first word of "gcc", so it can be a program name with args. 1654 * ) # Extract the first word of "gcc", so it can be a program name with args.
1650set dummy gcc; ac_word=$2 1655set dummy gcc; ac_word=$2
1651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1656echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1652echo "configure:1653: checking for $ac_word" >&5 1657echo "configure:1658: checking for $ac_word" >&5
1653if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1658if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6 1659 echo $ac_n "(cached) $ac_c" 1>&6
1655else 1660else
@@ -1679,7 +1684,7 @@ if test -z "$CC"; then
1679 # Extract the first word of "cc", so it can be a program name with args. 1684 # Extract the first word of "cc", so it can be a program name with args.
1680set dummy cc; ac_word=$2 1685set dummy cc; ac_word=$2
1681echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1686echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1682echo "configure:1683: checking for $ac_word" >&5 1687echo "configure:1688: checking for $ac_word" >&5
1683if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1688if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6 1689 echo $ac_n "(cached) $ac_c" 1>&6
1685else 1690else
@@ -1730,7 +1735,7 @@ fi
1730 # Extract the first word of "cl", so it can be a program name with args. 1735 # Extract the first word of "cl", so it can be a program name with args.
1731set dummy cl; ac_word=$2 1736set dummy cl; ac_word=$2
1732echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1737echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1733echo "configure:1734: checking for $ac_word" >&5 1738echo "configure:1739: checking for $ac_word" >&5
1734if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1739if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6 1740 echo $ac_n "(cached) $ac_c" 1>&6
1736else 1741else
@@ -1762,7 +1767,7 @@ fi
1762fi 1767fi
1763 1768
1764echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1769echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1765echo "configure:1766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1770echo "configure:1771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1766 1771
1767ac_ext=c 1772ac_ext=c
1768# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1773# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -1773,12 +1778,12 @@ cross_compiling=$ac_cv_prog_cc_cross
1773 1778
1774cat > conftest.$ac_ext << EOF 1779cat > conftest.$ac_ext << EOF
1775 1780
1776#line 1777 "configure" 1781#line 1782 "configure"
1777#include "confdefs.h" 1782#include "confdefs.h"
1778 1783
1779main(){return(0);} 1784main(){return(0);}
1780EOF 1785EOF
1781if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1786if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1782 ac_cv_prog_cc_works=yes 1787 ac_cv_prog_cc_works=yes
1783 # If we can't run a trivial program, we are probably using a cross compiler. 1788 # If we can't run a trivial program, we are probably using a cross compiler.
1784 if (./conftest; exit) 2>/dev/null; then 1789 if (./conftest; exit) 2>/dev/null; then
@@ -1804,12 +1809,12 @@ if test $ac_cv_prog_cc_works = no; then
1804 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1809 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1805fi 1810fi
1806echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1811echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1807echo "configure:1808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1812echo "configure:1813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1808echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1813echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1809cross_compiling=$ac_cv_prog_cc_cross 1814cross_compiling=$ac_cv_prog_cc_cross
1810 1815
1811echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1816echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1812echo "configure:1813: checking whether we are using GNU C" >&5 1817echo "configure:1818: checking whether we are using GNU C" >&5
1813if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1818if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6 1819 echo $ac_n "(cached) $ac_c" 1>&6
1815else 1820else
@@ -1818,7 +1823,7 @@ else
1818 yes; 1823 yes;
1819#endif 1824#endif
1820EOF 1825EOF
1821if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1826if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1822 ac_cv_prog_gcc=yes 1827 ac_cv_prog_gcc=yes
1823else 1828else
1824 ac_cv_prog_gcc=no 1829 ac_cv_prog_gcc=no
@@ -1837,7 +1842,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
1837ac_save_CFLAGS="$CFLAGS" 1842ac_save_CFLAGS="$CFLAGS"
1838CFLAGS= 1843CFLAGS=
1839echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1844echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1840echo "configure:1841: checking whether ${CC-cc} accepts -g" >&5 1845echo "configure:1846: checking whether ${CC-cc} accepts -g" >&5
1841if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1846if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6 1847 echo $ac_n "(cached) $ac_c" 1>&6
1843else 1848else
@@ -1917,7 +1922,7 @@ fi
1917#### #undef clause to src/config.h.in for autoconf to modify. 1922#### #undef clause to src/config.h.in for autoconf to modify.
1918 1923
1919echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1924echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1920echo "configure:1921: checking whether ln -s works" >&5 1925echo "configure:1926: checking whether ln -s works" >&5
1921if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1926if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6 1927 echo $ac_n "(cached) $ac_c" 1>&6
1923else 1928else
@@ -1938,7 +1943,7 @@ else
1938fi 1943fi
1939 1944
1940echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1945echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1941echo "configure:1942: checking how to run the C preprocessor" >&5 1946echo "configure:1947: checking how to run the C preprocessor" >&5
1942# On Suns, sometimes $CPP names a directory. 1947# On Suns, sometimes $CPP names a directory.
1943if test -n "$CPP" && test -d "$CPP"; then 1948if test -n "$CPP" && test -d "$CPP"; then
1944 CPP= 1949 CPP=
@@ -1953,13 +1958,13 @@ else
1953 # On the NeXT, cc -E runs the code through the compiler's parser, 1958 # On the NeXT, cc -E runs the code through the compiler's parser,
1954 # not just through cpp. 1959 # not just through cpp.
1955 cat > conftest.$ac_ext <<EOF 1960 cat > conftest.$ac_ext <<EOF
1956#line 1957 "configure" 1961#line 1962 "configure"
1957#include "confdefs.h" 1962#include "confdefs.h"
1958#include <assert.h> 1963#include <assert.h>
1959Syntax Error 1964Syntax Error
1960EOF 1965EOF
1961ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1966ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1962{ (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1967{ (eval echo configure:1968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1963ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1968ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1964if test -z "$ac_err"; then 1969if test -z "$ac_err"; then
1965 : 1970 :
@@ -1970,13 +1975,13 @@ else
1970 rm -rf conftest* 1975 rm -rf conftest*
1971 CPP="${CC-cc} -E -traditional-cpp" 1976 CPP="${CC-cc} -E -traditional-cpp"
1972 cat > conftest.$ac_ext <<EOF 1977 cat > conftest.$ac_ext <<EOF
1973#line 1974 "configure" 1978#line 1979 "configure"
1974#include "confdefs.h" 1979#include "confdefs.h"
1975#include <assert.h> 1980#include <assert.h>
1976Syntax Error 1981Syntax Error
1977EOF 1982EOF
1978ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1983ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1979{ (eval echo configure:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1984{ (eval echo configure:1985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1980ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1985ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1981if test -z "$ac_err"; then 1986if test -z "$ac_err"; then
1982 : 1987 :
@@ -1987,13 +1992,13 @@ else
1987 rm -rf conftest* 1992 rm -rf conftest*
1988 CPP="${CC-cc} -nologo -E" 1993 CPP="${CC-cc} -nologo -E"
1989 cat > conftest.$ac_ext <<EOF 1994 cat > conftest.$ac_ext <<EOF
1990#line 1991 "configure" 1995#line 1996 "configure"
1991#include "confdefs.h" 1996#include "confdefs.h"
1992#include <assert.h> 1997#include <assert.h>
1993Syntax Error 1998Syntax Error
1994EOF 1999EOF
1995ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2000ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1996{ (eval echo configure:1997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2001{ (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1997ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2002ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998if test -z "$ac_err"; then 2003if test -z "$ac_err"; then
1999 : 2004 :
@@ -2029,7 +2034,7 @@ echo "$ac_t""$CPP" 1>&6
2029# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2034# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2030# ./install, which can be erroneously created by make from ./install.sh. 2035# ./install, which can be erroneously created by make from ./install.sh.
2031echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2036echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2032echo "configure:2033: checking for a BSD compatible install" >&5 2037echo "configure:2038: checking for a BSD compatible install" >&5
2033if test -z "$INSTALL"; then 2038if test -z "$INSTALL"; then
2034if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2039if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6 2040 echo $ac_n "(cached) $ac_c" 1>&6
@@ -2086,7 +2091,7 @@ do
2086# Extract the first word of "$ac_prog", so it can be a program name with args. 2091# Extract the first word of "$ac_prog", so it can be a program name with args.
2087set dummy $ac_prog; ac_word=$2 2092set dummy $ac_prog; ac_word=$2
2088echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2093echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2089echo "configure:2090: checking for $ac_word" >&5 2094echo "configure:2095: checking for $ac_word" >&5
2090if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 2095if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6 2096 echo $ac_n "(cached) $ac_c" 1>&6
2092else 2097else
@@ -2118,9 +2123,9 @@ test -n "$YACC" || YACC="yacc"
2118 2123
2119 2124
2120echo $ac_n "checking for AIX""... $ac_c" 1>&6 2125echo $ac_n "checking for AIX""... $ac_c" 1>&6
2121echo "configure:2122: checking for AIX" >&5 2126echo "configure:2127: checking for AIX" >&5
2122cat > conftest.$ac_ext <<EOF 2127cat > conftest.$ac_ext <<EOF
2123#line 2124 "configure" 2128#line 2129 "configure"
2124#include "confdefs.h" 2129#include "confdefs.h"
2125#ifdef _AIX 2130#ifdef _AIX
2126 yes 2131 yes
@@ -2147,17 +2152,17 @@ for ac_hdr in machine/soundcard.h sys/soundcard.h
2147do 2152do
2148ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2153ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2149echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2154echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2150echo "configure:2151: checking for $ac_hdr" >&5 2155echo "configure:2156: checking for $ac_hdr" >&5
2151if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2156if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6 2157 echo $ac_n "(cached) $ac_c" 1>&6
2153else 2158else
2154 cat > conftest.$ac_ext <<EOF 2159 cat > conftest.$ac_ext <<EOF
2155#line 2156 "configure" 2160#line 2161 "configure"
2156#include "confdefs.h" 2161#include "confdefs.h"
2157#include <$ac_hdr> 2162#include <$ac_hdr>
2158EOF 2163EOF
2159ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2164ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2160{ (eval echo configure:2161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2165{ (eval echo configure:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2161ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2166ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2162if test -z "$ac_err"; then 2167if test -z "$ac_err"; then
2163 rm -rf conftest* 2168 rm -rf conftest*
@@ -2190,17 +2195,17 @@ for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
2190do 2195do
2191ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2196ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2192echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2197echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2193echo "configure:2194: checking for $ac_hdr" >&5 2198echo "configure:2199: checking for $ac_hdr" >&5
2194if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2199if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6 2200 echo $ac_n "(cached) $ac_c" 1>&6
2196else 2201else
2197 cat > conftest.$ac_ext <<EOF 2202 cat > conftest.$ac_ext <<EOF
2198#line 2199 "configure" 2203#line 2204 "configure"
2199#include "confdefs.h" 2204#include "confdefs.h"
2200#include <$ac_hdr> 2205#include <$ac_hdr>
2201EOF 2206EOF
2202ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2203{ (eval echo configure:2204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2208{ (eval echo configure:2209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2204ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2205if test -z "$ac_err"; then 2210if test -z "$ac_err"; then
2206 rm -rf conftest* 2211 rm -rf conftest*
@@ -2227,12 +2232,12 @@ fi
2227done 2232done
2228 2233
2229echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2234echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2230echo "configure:2231: checking for ANSI C header files" >&5 2235echo "configure:2236: checking for ANSI C header files" >&5
2231if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2236if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6 2237 echo $ac_n "(cached) $ac_c" 1>&6
2233else 2238else
2234 cat > conftest.$ac_ext <<EOF 2239 cat > conftest.$ac_ext <<EOF
2235#line 2236 "configure" 2240#line 2241 "configure"
2236#include "confdefs.h" 2241#include "confdefs.h"
2237#include <stdlib.h> 2242#include <stdlib.h>
2238#include <stdarg.h> 2243#include <stdarg.h>
@@ -2240,7 +2245,7 @@ else
2240#include <float.h> 2245#include <float.h>
2241EOF 2246EOF
2242ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2247ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2243{ (eval echo configure:2244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2248{ (eval echo configure:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2244ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2249ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2245if test -z "$ac_err"; then 2250if test -z "$ac_err"; then
2246 rm -rf conftest* 2251 rm -rf conftest*
@@ -2257,7 +2262,7 @@ rm -f conftest*
2257if test $ac_cv_header_stdc = yes; then 2262if test $ac_cv_header_stdc = yes; then
2258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2259cat > conftest.$ac_ext <<EOF 2264cat > conftest.$ac_ext <<EOF
2260#line 2261 "configure" 2265#line 2266 "configure"
2261#include "confdefs.h" 2266#include "confdefs.h"
2262#include <string.h> 2267#include <string.h>
2263EOF 2268EOF
@@ -2275,7 +2280,7 @@ fi
2275if test $ac_cv_header_stdc = yes; then 2280if test $ac_cv_header_stdc = yes; then
2276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2277cat > conftest.$ac_ext <<EOF 2282cat > conftest.$ac_ext <<EOF
2278#line 2279 "configure" 2283#line 2284 "configure"
2279#include "confdefs.h" 2284#include "confdefs.h"
2280#include <stdlib.h> 2285#include <stdlib.h>
2281EOF 2286EOF
@@ -2296,7 +2301,7 @@ if test "$cross_compiling" = yes; then
2296 : 2301 :
2297else 2302else
2298 cat > conftest.$ac_ext <<EOF 2303 cat > conftest.$ac_ext <<EOF
2299#line 2300 "configure" 2304#line 2305 "configure"
2300#include "confdefs.h" 2305#include "confdefs.h"
2301#include <ctype.h> 2306#include <ctype.h>
2302#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2307#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -2307,7 +2312,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2307exit (0); } 2312exit (0); }
2308 2313
2309EOF 2314EOF
2310if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2315if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2311then 2316then
2312 : 2317 :
2313else 2318else
@@ -2331,12 +2336,12 @@ EOF
2331fi 2336fi
2332 2337
2333echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2338echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2334echo "configure:2335: checking whether time.h and sys/time.h may both be included" >&5 2339echo "configure:2340: checking whether time.h and sys/time.h may both be included" >&5
2335if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2340if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6 2341 echo $ac_n "(cached) $ac_c" 1>&6
2337else 2342else
2338 cat > conftest.$ac_ext <<EOF 2343 cat > conftest.$ac_ext <<EOF
2339#line 2340 "configure" 2344#line 2345 "configure"
2340#include "confdefs.h" 2345#include "confdefs.h"
2341#include <sys/types.h> 2346#include <sys/types.h>
2342#include <sys/time.h> 2347#include <sys/time.h>
@@ -2345,7 +2350,7 @@ int main() {
2345struct tm *tp; 2350struct tm *tp;
2346; return 0; } 2351; return 0; }
2347EOF 2352EOF
2348if { (eval echo configure:2349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2353if { (eval echo configure:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2349 rm -rf conftest* 2354 rm -rf conftest*
2350 ac_cv_header_time=yes 2355 ac_cv_header_time=yes
2351else 2356else
@@ -2366,12 +2371,12 @@ EOF
2366fi 2371fi
2367 2372
2368echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2373echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2369echo "configure:2370: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2374echo "configure:2375: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2370if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2375if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6 2376 echo $ac_n "(cached) $ac_c" 1>&6
2372else 2377else
2373 cat > conftest.$ac_ext <<EOF 2378 cat > conftest.$ac_ext <<EOF
2374#line 2375 "configure" 2379#line 2380 "configure"
2375#include "confdefs.h" 2380#include "confdefs.h"
2376#include <sys/types.h> 2381#include <sys/types.h>
2377#include <signal.h> 2382#include <signal.h>
@@ -2383,7 +2388,7 @@ int main() {
2383char *msg = *(sys_siglist + 1); 2388char *msg = *(sys_siglist + 1);
2384; return 0; } 2389; return 0; }
2385EOF 2390EOF
2386if { (eval echo configure:2387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2391if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2387 rm -rf conftest* 2392 rm -rf conftest*
2388 ac_cv_decl_sys_siglist=yes 2393 ac_cv_decl_sys_siglist=yes
2389else 2394else
@@ -2405,12 +2410,12 @@ fi
2405 2410
2406 2411
2407echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2412echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2408echo "configure:2409: checking for struct utimbuf" >&5 2413echo "configure:2414: checking for struct utimbuf" >&5
2409if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 2414if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6 2415 echo $ac_n "(cached) $ac_c" 1>&6
2411else 2416else
2412 cat > conftest.$ac_ext <<EOF 2417 cat > conftest.$ac_ext <<EOF
2413#line 2414 "configure" 2418#line 2419 "configure"
2414#include "confdefs.h" 2419#include "confdefs.h"
2415#ifdef TIME_WITH_SYS_TIME 2420#ifdef TIME_WITH_SYS_TIME
2416#include <sys/time.h> 2421#include <sys/time.h>
@@ -2429,7 +2434,7 @@ int main() {
2429static struct utimbuf x; x.actime = x.modtime; 2434static struct utimbuf x; x.actime = x.modtime;
2430; return 0; } 2435; return 0; }
2431EOF 2436EOF
2432if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2437if { (eval echo configure:2438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2433 rm -rf conftest* 2438 rm -rf conftest*
2434 emacs_cv_struct_utimbuf=yes 2439 emacs_cv_struct_utimbuf=yes
2435else 2440else
@@ -2450,12 +2455,12 @@ EOF
2450fi 2455fi
2451 2456
2452echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2457echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2453echo "configure:2454: checking return type of signal handlers" >&5 2458echo "configure:2459: checking return type of signal handlers" >&5
2454if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2459if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6 2460 echo $ac_n "(cached) $ac_c" 1>&6
2456else 2461else
2457 cat > conftest.$ac_ext <<EOF 2462 cat > conftest.$ac_ext <<EOF
2458#line 2459 "configure" 2463#line 2464 "configure"
2459#include "confdefs.h" 2464#include "confdefs.h"
2460#include <sys/types.h> 2465#include <sys/types.h>
2461#include <signal.h> 2466#include <signal.h>
@@ -2472,7 +2477,7 @@ int main() {
2472int i; 2477int i;
2473; return 0; } 2478; return 0; }
2474EOF 2479EOF
2475if { (eval echo configure:2476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2480if { (eval echo configure:2481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2476 rm -rf conftest* 2481 rm -rf conftest*
2477 ac_cv_type_signal=void 2482 ac_cv_type_signal=void
2478else 2483else
@@ -2492,12 +2497,12 @@ EOF
2492 2497
2493 2498
2494echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 2499echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2495echo "configure:2496: checking for struct timeval" >&5 2500echo "configure:2501: checking for struct timeval" >&5
2496if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 2501if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6 2502 echo $ac_n "(cached) $ac_c" 1>&6
2498else 2503else
2499 cat > conftest.$ac_ext <<EOF 2504 cat > conftest.$ac_ext <<EOF
2500#line 2501 "configure" 2505#line 2506 "configure"
2501#include "confdefs.h" 2506#include "confdefs.h"
2502#ifdef TIME_WITH_SYS_TIME 2507#ifdef TIME_WITH_SYS_TIME
2503#include <sys/time.h> 2508#include <sys/time.h>
@@ -2513,7 +2518,7 @@ int main() {
2513static struct timeval x; x.tv_sec = x.tv_usec; 2518static struct timeval x; x.tv_sec = x.tv_usec;
2514; return 0; } 2519; return 0; }
2515EOF 2520EOF
2516if { (eval echo configure:2517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2521if { (eval echo configure:2522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2517 rm -rf conftest* 2522 rm -rf conftest*
2518 emacs_cv_struct_timeval=yes 2523 emacs_cv_struct_timeval=yes
2519else 2524else
@@ -2535,12 +2540,12 @@ EOF
2535fi 2540fi
2536 2541
2537echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2542echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2538echo "configure:2539: checking whether struct tm is in sys/time.h or time.h" >&5 2543echo "configure:2544: checking whether struct tm is in sys/time.h or time.h" >&5
2539if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2544if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6 2545 echo $ac_n "(cached) $ac_c" 1>&6
2541else 2546else
2542 cat > conftest.$ac_ext <<EOF 2547 cat > conftest.$ac_ext <<EOF
2543#line 2544 "configure" 2548#line 2549 "configure"
2544#include "confdefs.h" 2549#include "confdefs.h"
2545#include <sys/types.h> 2550#include <sys/types.h>
2546#include <time.h> 2551#include <time.h>
@@ -2548,7 +2553,7 @@ int main() {
2548struct tm *tp; tp->tm_sec; 2553struct tm *tp; tp->tm_sec;
2549; return 0; } 2554; return 0; }
2550EOF 2555EOF
2551if { (eval echo configure:2552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2556if { (eval echo configure:2557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2552 rm -rf conftest* 2557 rm -rf conftest*
2553 ac_cv_struct_tm=time.h 2558 ac_cv_struct_tm=time.h
2554else 2559else
@@ -2569,12 +2574,12 @@ EOF
2569fi 2574fi
2570 2575
2571echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2576echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2572echo "configure:2573: checking for tm_zone in struct tm" >&5 2577echo "configure:2578: checking for tm_zone in struct tm" >&5
2573if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 2578if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6 2579 echo $ac_n "(cached) $ac_c" 1>&6
2575else 2580else
2576 cat > conftest.$ac_ext <<EOF 2581 cat > conftest.$ac_ext <<EOF
2577#line 2578 "configure" 2582#line 2583 "configure"
2578#include "confdefs.h" 2583#include "confdefs.h"
2579#include <sys/types.h> 2584#include <sys/types.h>
2580#include <$ac_cv_struct_tm> 2585#include <$ac_cv_struct_tm>
@@ -2582,7 +2587,7 @@ int main() {
2582struct tm tm; tm.tm_zone; 2587struct tm tm; tm.tm_zone;
2583; return 0; } 2588; return 0; }
2584EOF 2589EOF
2585if { (eval echo configure:2586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2590if { (eval echo configure:2591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2586 rm -rf conftest* 2591 rm -rf conftest*
2587 ac_cv_struct_tm_zone=yes 2592 ac_cv_struct_tm_zone=yes
2588else 2593else
@@ -2602,12 +2607,12 @@ EOF
2602 2607
2603else 2608else
2604 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2609 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2605echo "configure:2606: checking for tzname" >&5 2610echo "configure:2611: checking for tzname" >&5
2606if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 2611if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6 2612 echo $ac_n "(cached) $ac_c" 1>&6
2608else 2613else
2609 cat > conftest.$ac_ext <<EOF 2614 cat > conftest.$ac_ext <<EOF
2610#line 2611 "configure" 2615#line 2616 "configure"
2611#include "confdefs.h" 2616#include "confdefs.h"
2612#include <time.h> 2617#include <time.h>
2613#ifndef tzname /* For SGI. */ 2618#ifndef tzname /* For SGI. */
@@ -2617,7 +2622,7 @@ int main() {
2617atoi(*tzname); 2622atoi(*tzname);
2618; return 0; } 2623; return 0; }
2619EOF 2624EOF
2620if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2625if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2621 rm -rf conftest* 2626 rm -rf conftest*
2622 ac_cv_var_tzname=yes 2627 ac_cv_var_tzname=yes
2623else 2628else
@@ -2639,19 +2644,19 @@ EOF
2639fi 2644fi
2640 2645
2641echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 2646echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2642echo "configure:2643: checking for tm_gmtoff in struct tm" >&5 2647echo "configure:2648: checking for tm_gmtoff in struct tm" >&5
2643if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 2648if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6 2649 echo $ac_n "(cached) $ac_c" 1>&6
2645else 2650else
2646 cat > conftest.$ac_ext <<EOF 2651 cat > conftest.$ac_ext <<EOF
2647#line 2648 "configure" 2652#line 2653 "configure"
2648#include "confdefs.h" 2653#include "confdefs.h"
2649#include <time.h> 2654#include <time.h>
2650int main() { 2655int main() {
2651struct tm t; t.tm_gmtoff = 0 2656struct tm t; t.tm_gmtoff = 0
2652; return 0; } 2657; return 0; }
2653EOF 2658EOF
2654if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2659if { (eval echo configure:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2655 rm -rf conftest* 2660 rm -rf conftest*
2656 emacs_cv_tm_gmtoff=yes 2661 emacs_cv_tm_gmtoff=yes
2657else 2662else
@@ -2672,12 +2677,12 @@ EOF
2672fi 2677fi
2673 2678
2674echo $ac_n "checking for working const""... $ac_c" 1>&6 2679echo $ac_n "checking for working const""... $ac_c" 1>&6
2675echo "configure:2676: checking for working const" >&5 2680echo "configure:2681: checking for working const" >&5
2676if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2681if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6 2682 echo $ac_n "(cached) $ac_c" 1>&6
2678else 2683else
2679 cat > conftest.$ac_ext <<EOF 2684 cat > conftest.$ac_ext <<EOF
2680#line 2681 "configure" 2685#line 2686 "configure"
2681#include "confdefs.h" 2686#include "confdefs.h"
2682 2687
2683int main() { 2688int main() {
@@ -2726,7 +2731,7 @@ ccp = (char const *const *) p;
2726 2731
2727; return 0; } 2732; return 0; }
2728EOF 2733EOF
2729if { (eval echo configure:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2734if { (eval echo configure:2735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2730 rm -rf conftest* 2735 rm -rf conftest*
2731 ac_cv_c_const=yes 2736 ac_cv_c_const=yes
2732else 2737else
@@ -2748,7 +2753,7 @@ fi
2748 2753
2749 2754
2750echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 2755echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2751echo "configure:2752: checking whether ${MAKE-make} sets \${MAKE}" >&5 2756echo "configure:2757: checking whether ${MAKE-make} sets \${MAKE}" >&5
2752set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 2757set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2753if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 2758if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6 2759 echo $ac_n "(cached) $ac_c" 1>&6
@@ -2776,7 +2781,7 @@ fi
2776 2781
2777 2782
2778echo $ac_n "checking for long file names""... $ac_c" 1>&6 2783echo $ac_n "checking for long file names""... $ac_c" 1>&6
2779echo "configure:2780: checking for long file names" >&5 2784echo "configure:2785: checking for long file names" >&5
2780if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 2785if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6 2786 echo $ac_n "(cached) $ac_c" 1>&6
2782else 2787else
@@ -2827,7 +2832,7 @@ fi
2827# Uses ac_ vars as temps to allow command line to override cache and checks. 2832# Uses ac_ vars as temps to allow command line to override cache and checks.
2828# --without-x overrides everything else, but does not touch the cache. 2833# --without-x overrides everything else, but does not touch the cache.
2829echo $ac_n "checking for X""... $ac_c" 1>&6 2834echo $ac_n "checking for X""... $ac_c" 1>&6
2830echo "configure:2831: checking for X" >&5 2835echo "configure:2836: checking for X" >&5
2831 2836
2832# Check whether --with-x or --without-x was given. 2837# Check whether --with-x or --without-x was given.
2833if test "${with_x+set}" = set; then 2838if test "${with_x+set}" = set; then
@@ -2889,12 +2894,12 @@ if test "$ac_x_includes" = NO; then
2889 2894
2890 # First, try using that file with no special directory specified. 2895 # First, try using that file with no special directory specified.
2891cat > conftest.$ac_ext <<EOF 2896cat > conftest.$ac_ext <<EOF
2892#line 2893 "configure" 2897#line 2898 "configure"
2893#include "confdefs.h" 2898#include "confdefs.h"
2894#include <$x_direct_test_include> 2899#include <$x_direct_test_include>
2895EOF 2900EOF
2896ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2901ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2897{ (eval echo configure:2898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2902{ (eval echo configure:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2898ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2903ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2899if test -z "$ac_err"; then 2904if test -z "$ac_err"; then
2900 rm -rf conftest* 2905 rm -rf conftest*
@@ -2963,14 +2968,14 @@ if test "$ac_x_libraries" = NO; then
2963 ac_save_LIBS="$LIBS" 2968 ac_save_LIBS="$LIBS"
2964 LIBS="-l$x_direct_test_library $LIBS" 2969 LIBS="-l$x_direct_test_library $LIBS"
2965cat > conftest.$ac_ext <<EOF 2970cat > conftest.$ac_ext <<EOF
2966#line 2967 "configure" 2971#line 2972 "configure"
2967#include "confdefs.h" 2972#include "confdefs.h"
2968 2973
2969int main() { 2974int main() {
2970${x_direct_test_function}() 2975${x_direct_test_function}()
2971; return 0; } 2976; return 0; }
2972EOF 2977EOF
2973if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2978if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2974 rm -rf conftest* 2979 rm -rf conftest*
2975 LIBS="$ac_save_LIBS" 2980 LIBS="$ac_save_LIBS"
2976# We can link X programs with no special library path. 2981# We can link X programs with no special library path.
@@ -3144,7 +3149,7 @@ fi
3144echo "checking the machine- and system-dependent files to find out 3149echo "checking the machine- and system-dependent files to find out
3145 - which libraries the lib-src programs will want, and 3150 - which libraries the lib-src programs will want, and
3146 - whether the GNU malloc routines are usable" 1>&6 3151 - whether the GNU malloc routines are usable" 1>&6
3147echo "configure:3148: checking the machine- and system-dependent files to find out 3152echo "configure:3153: checking the machine- and system-dependent files to find out
3148 - which libraries the lib-src programs will want, and 3153 - which libraries the lib-src programs will want, and
3149 - whether the GNU malloc routines are usable" >&5 3154 - whether the GNU malloc routines are usable" >&5
3150 3155
@@ -3274,12 +3279,12 @@ UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
3274GNU_MALLOC=yes 3279GNU_MALLOC=yes
3275doug_lea_malloc=yes 3280doug_lea_malloc=yes
3276echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3281echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3277echo "configure:3278: checking for malloc_get_state" >&5 3282echo "configure:3283: checking for malloc_get_state" >&5
3278if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 3283if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6 3284 echo $ac_n "(cached) $ac_c" 1>&6
3280else 3285else
3281 cat > conftest.$ac_ext <<EOF 3286 cat > conftest.$ac_ext <<EOF
3282#line 3283 "configure" 3287#line 3288 "configure"
3283#include "confdefs.h" 3288#include "confdefs.h"
3284/* System header to define __stub macros and hopefully few prototypes, 3289/* System header to define __stub macros and hopefully few prototypes,
3285 which can conflict with char malloc_get_state(); below. */ 3290 which can conflict with char malloc_get_state(); below. */
@@ -3288,6 +3293,7 @@ else
3288/* We use char because int might match the return type of a gcc2 3293/* We use char because int might match the return type of a gcc2
3289 builtin and then its argument prototype would still apply. */ 3294 builtin and then its argument prototype would still apply. */
3290char malloc_get_state(); 3295char malloc_get_state();
3296char (*f)();
3291 3297
3292int main() { 3298int main() {
3293 3299
@@ -3297,12 +3303,12 @@ int main() {
3297#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) 3303#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3298choke me 3304choke me
3299#else 3305#else
3300malloc_get_state(); 3306f = malloc_get_state;
3301#endif 3307#endif
3302 3308
3303; return 0; } 3309; return 0; }
3304EOF 3310EOF
3305if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3311if { (eval echo configure:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3306 rm -rf conftest* 3312 rm -rf conftest*
3307 eval "ac_cv_func_malloc_get_state=yes" 3313 eval "ac_cv_func_malloc_get_state=yes"
3308else 3314else
@@ -3323,12 +3329,12 @@ doug_lea_malloc=no
3323fi 3329fi
3324 3330
3325echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3331echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3326echo "configure:3327: checking for malloc_set_state" >&5 3332echo "configure:3333: checking for malloc_set_state" >&5
3327if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 3333if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6 3334 echo $ac_n "(cached) $ac_c" 1>&6
3329else 3335else
3330 cat > conftest.$ac_ext <<EOF 3336 cat > conftest.$ac_ext <<EOF
3331#line 3332 "configure" 3337#line 3338 "configure"
3332#include "confdefs.h" 3338#include "confdefs.h"
3333/* System header to define __stub macros and hopefully few prototypes, 3339/* System header to define __stub macros and hopefully few prototypes,
3334 which can conflict with char malloc_set_state(); below. */ 3340 which can conflict with char malloc_set_state(); below. */
@@ -3337,6 +3343,7 @@ else
3337/* We use char because int might match the return type of a gcc2 3343/* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */ 3344 builtin and then its argument prototype would still apply. */
3339char malloc_set_state(); 3345char malloc_set_state();
3346char (*f)();
3340 3347
3341int main() { 3348int main() {
3342 3349
@@ -3346,12 +3353,12 @@ int main() {
3346#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) 3353#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3347choke me 3354choke me
3348#else 3355#else
3349malloc_set_state(); 3356f = malloc_set_state;
3350#endif 3357#endif
3351 3358
3352; return 0; } 3359; return 0; }
3353EOF 3360EOF
3354if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3361if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3355 rm -rf conftest* 3362 rm -rf conftest*
3356 eval "ac_cv_func_malloc_set_state=yes" 3363 eval "ac_cv_func_malloc_set_state=yes"
3357else 3364else
@@ -3372,19 +3379,19 @@ doug_lea_malloc=no
3372fi 3379fi
3373 3380
3374echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3381echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3375echo "configure:3376: checking whether __after_morecore_hook exists" >&5 3382echo "configure:3383: checking whether __after_morecore_hook exists" >&5
3376if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 3383if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6 3384 echo $ac_n "(cached) $ac_c" 1>&6
3378else 3385else
3379 cat > conftest.$ac_ext <<EOF 3386 cat > conftest.$ac_ext <<EOF
3380#line 3381 "configure" 3387#line 3388 "configure"
3381#include "confdefs.h" 3388#include "confdefs.h"
3382extern void (* __after_morecore_hook)(); 3389extern void (* __after_morecore_hook)();
3383int main() { 3390int main() {
3384__after_morecore_hook = 0 3391__after_morecore_hook = 0
3385; return 0; } 3392; return 0; }
3386EOF 3393EOF
3387if { (eval echo configure:3388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3394if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3388 rm -rf conftest* 3395 rm -rf conftest*
3389 emacs_cv_var___after_morecore_hook=yes 3396 emacs_cv_var___after_morecore_hook=yes
3390else 3397else
@@ -3434,7 +3441,7 @@ fi
3434LIBS="$libsrc_libs $LIBS" 3441LIBS="$libsrc_libs $LIBS"
3435 3442
3436echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3443echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3437echo "configure:3438: checking for dnet_ntoa in -ldnet" >&5 3444echo "configure:3445: checking for dnet_ntoa in -ldnet" >&5
3438ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3445ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3439if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3446if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6 3447 echo $ac_n "(cached) $ac_c" 1>&6
@@ -3442,7 +3449,7 @@ else
3442 ac_save_LIBS="$LIBS" 3449 ac_save_LIBS="$LIBS"
3443LIBS="-ldnet $LIBS" 3450LIBS="-ldnet $LIBS"
3444cat > conftest.$ac_ext <<EOF 3451cat > conftest.$ac_ext <<EOF
3445#line 3446 "configure" 3452#line 3453 "configure"
3446#include "confdefs.h" 3453#include "confdefs.h"
3447/* Override any gcc2 internal prototype to avoid an error. */ 3454/* Override any gcc2 internal prototype to avoid an error. */
3448/* We use char because int might match the return type of a gcc2 3455/* We use char because int might match the return type of a gcc2
@@ -3453,7 +3460,7 @@ int main() {
3453dnet_ntoa() 3460dnet_ntoa()
3454; return 0; } 3461; return 0; }
3455EOF 3462EOF
3456if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3463if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3457 rm -rf conftest* 3464 rm -rf conftest*
3458 eval "ac_cv_lib_$ac_lib_var=yes" 3465 eval "ac_cv_lib_$ac_lib_var=yes"
3459else 3466else
@@ -3482,7 +3489,7 @@ fi
3482 3489
3483 3490
3484echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 3491echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3485echo "configure:3486: checking for main in -lXbsd" >&5 3492echo "configure:3493: checking for main in -lXbsd" >&5
3486ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 3493ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3487if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3494if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6 3495 echo $ac_n "(cached) $ac_c" 1>&6
@@ -3490,14 +3497,14 @@ else
3490 ac_save_LIBS="$LIBS" 3497 ac_save_LIBS="$LIBS"
3491LIBS="-lXbsd $LIBS" 3498LIBS="-lXbsd $LIBS"
3492cat > conftest.$ac_ext <<EOF 3499cat > conftest.$ac_ext <<EOF
3493#line 3494 "configure" 3500#line 3501 "configure"
3494#include "confdefs.h" 3501#include "confdefs.h"
3495 3502
3496int main() { 3503int main() {
3497main() 3504main()
3498; return 0; } 3505; return 0; }
3499EOF 3506EOF
3500if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3507if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3501 rm -rf conftest* 3508 rm -rf conftest*
3502 eval "ac_cv_lib_$ac_lib_var=yes" 3509 eval "ac_cv_lib_$ac_lib_var=yes"
3503else 3510else
@@ -3519,7 +3526,7 @@ fi
3519 3526
3520 3527
3521echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3528echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3522echo "configure:3523: checking for cma_open in -lpthreads" >&5 3529echo "configure:3530: checking for cma_open in -lpthreads" >&5
3523ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3530ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3524if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3531if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6 3532 echo $ac_n "(cached) $ac_c" 1>&6
@@ -3527,7 +3534,7 @@ else
3527 ac_save_LIBS="$LIBS" 3534 ac_save_LIBS="$LIBS"
3528LIBS="-lpthreads $LIBS" 3535LIBS="-lpthreads $LIBS"
3529cat > conftest.$ac_ext <<EOF 3536cat > conftest.$ac_ext <<EOF
3530#line 3531 "configure" 3537#line 3538 "configure"
3531#include "confdefs.h" 3538#include "confdefs.h"
3532/* Override any gcc2 internal prototype to avoid an error. */ 3539/* Override any gcc2 internal prototype to avoid an error. */
3533/* We use char because int might match the return type of a gcc2 3540/* We use char because int might match the return type of a gcc2
@@ -3538,7 +3545,7 @@ int main() {
3538cma_open() 3545cma_open()
3539; return 0; } 3546; return 0; }
3540EOF 3547EOF
3541if { (eval echo configure:3542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3548if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3542 rm -rf conftest* 3549 rm -rf conftest*
3543 eval "ac_cv_lib_$ac_lib_var=yes" 3550 eval "ac_cv_lib_$ac_lib_var=yes"
3544else 3551else
@@ -3567,7 +3574,7 @@ fi
3567 3574
3568 3575
3569echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 3576echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3570echo "configure:3571: checking for XFree86 in /usr/X386" >&5 3577echo "configure:3578: checking for XFree86 in /usr/X386" >&5
3571if test -d /usr/X386/include; then 3578if test -d /usr/X386/include; then
3572 HAVE_XFREE386=yes 3579 HAVE_XFREE386=yes
3573 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 3580 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
@@ -3596,16 +3603,16 @@ if test "${HAVE_X11}" = "yes"; then
3596 3603
3597 if test "${opsys}" = "gnu-linux"; then 3604 if test "${opsys}" = "gnu-linux"; then
3598 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 3605 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3599echo "configure:3600: checking whether X on GNU/Linux needs -b to link" >&5 3606echo "configure:3607: checking whether X on GNU/Linux needs -b to link" >&5
3600 cat > conftest.$ac_ext <<EOF 3607 cat > conftest.$ac_ext <<EOF
3601#line 3602 "configure" 3608#line 3609 "configure"
3602#include "confdefs.h" 3609#include "confdefs.h"
3603 3610
3604int main() { 3611int main() {
3605XOpenDisplay ("foo"); 3612XOpenDisplay ("foo");
3606; return 0; } 3613; return 0; }
3607EOF 3614EOF
3608if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3615if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3609 rm -rf conftest* 3616 rm -rf conftest*
3610 xlinux_first_failure=no 3617 xlinux_first_failure=no
3611else 3618else
@@ -3625,14 +3632,14 @@ rm -f conftest*
3625 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 3632 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
3626 LIBS="$LIBS -b i486-linuxaout" 3633 LIBS="$LIBS -b i486-linuxaout"
3627 cat > conftest.$ac_ext <<EOF 3634 cat > conftest.$ac_ext <<EOF
3628#line 3629 "configure" 3635#line 3636 "configure"
3629#include "confdefs.h" 3636#include "confdefs.h"
3630 3637
3631int main() { 3638int main() {
3632XOpenDisplay ("foo"); 3639XOpenDisplay ("foo");
3633; return 0; } 3640; return 0; }
3634EOF 3641EOF
3635if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3642if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3636 rm -rf conftest* 3643 rm -rf conftest*
3637 xlinux_second_failure=no 3644 xlinux_second_failure=no
3638else 3645else
@@ -3662,12 +3669,12 @@ rm -f conftest*
3662XScreenNumberOfScreen XSetWMProtocols 3669XScreenNumberOfScreen XSetWMProtocols
3663do 3670do
3664echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3671echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3665echo "configure:3666: checking for $ac_func" >&5 3672echo "configure:3673: checking for $ac_func" >&5
3666if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3673if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6 3674 echo $ac_n "(cached) $ac_c" 1>&6
3668else 3675else
3669 cat > conftest.$ac_ext <<EOF 3676 cat > conftest.$ac_ext <<EOF
3670#line 3671 "configure" 3677#line 3678 "configure"
3671#include "confdefs.h" 3678#include "confdefs.h"
3672/* System header to define __stub macros and hopefully few prototypes, 3679/* System header to define __stub macros and hopefully few prototypes,
3673 which can conflict with char $ac_func(); below. */ 3680 which can conflict with char $ac_func(); below. */
@@ -3676,6 +3683,7 @@ else
3676/* We use char because int might match the return type of a gcc2 3683/* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */ 3684 builtin and then its argument prototype would still apply. */
3678char $ac_func(); 3685char $ac_func();
3686char (*f)();
3679 3687
3680int main() { 3688int main() {
3681 3689
@@ -3685,12 +3693,12 @@ int main() {
3685#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3686choke me 3694choke me
3687#else 3695#else
3688$ac_func(); 3696f = $ac_func;
3689#endif 3697#endif
3690 3698
3691; return 0; } 3699; return 0; }
3692EOF 3700EOF
3693if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3701if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3694 rm -rf conftest* 3702 rm -rf conftest*
3695 eval "ac_cv_func_$ac_func=yes" 3703 eval "ac_cv_func_$ac_func=yes"
3696else 3704else
@@ -3718,12 +3726,12 @@ fi
3718 3726
3719if test "${window_system}" = "x11"; then 3727if test "${window_system}" = "x11"; then
3720 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 3728 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
3721echo "configure:3722: checking X11 version 6" >&5 3729echo "configure:3730: checking X11 version 6" >&5
3722 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 3730 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6 3731 echo $ac_n "(cached) $ac_c" 1>&6
3724else 3732else
3725 cat > conftest.$ac_ext <<EOF 3733 cat > conftest.$ac_ext <<EOF
3726#line 3727 "configure" 3734#line 3735 "configure"
3727#include "confdefs.h" 3735#include "confdefs.h"
3728#include <X11/Xlib.h> 3736#include <X11/Xlib.h>
3729int main() { 3737int main() {
@@ -3733,7 +3741,7 @@ fail;
3733 3741
3734; return 0; } 3742; return 0; }
3735EOF 3743EOF
3736if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3744if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3737 rm -rf conftest* 3745 rm -rf conftest*
3738 emacs_cv_x11_version_6=yes 3746 emacs_cv_x11_version_6=yes
3739else 3747else
@@ -3758,12 +3766,12 @@ fi
3758 3766
3759if test "${window_system}" = "x11"; then 3767if test "${window_system}" = "x11"; then
3760 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 3768 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
3761echo "configure:3762: checking X11 version 5" >&5 3769echo "configure:3770: checking X11 version 5" >&5
3762 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 3770 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6 3771 echo $ac_n "(cached) $ac_c" 1>&6
3764else 3772else
3765 cat > conftest.$ac_ext <<EOF 3773 cat > conftest.$ac_ext <<EOF
3766#line 3767 "configure" 3774#line 3775 "configure"
3767#include "confdefs.h" 3775#include "confdefs.h"
3768#include <X11/Xlib.h> 3776#include <X11/Xlib.h>
3769int main() { 3777int main() {
@@ -3773,7 +3781,7 @@ fail;
3773 3781
3774; return 0; } 3782; return 0; }
3775EOF 3783EOF
3776if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3784if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3777 rm -rf conftest* 3785 rm -rf conftest*
3778 emacs_cv_x11_version_5=yes 3786 emacs_cv_x11_version_5=yes
3779else 3787else
@@ -3801,12 +3809,12 @@ fi
3801if test x"${USE_X_TOOLKIT}" = xmaybe; then 3809if test x"${USE_X_TOOLKIT}" = xmaybe; then
3802 if test x"${HAVE_X11R5}" = xyes; then 3810 if test x"${HAVE_X11R5}" = xyes; then
3803 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 3811 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
3804echo "configure:3805: checking X11 version 5 with Xaw" >&5 3812echo "configure:3813: checking X11 version 5 with Xaw" >&5
3805 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 3813 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6 3814 echo $ac_n "(cached) $ac_c" 1>&6
3807else 3815else
3808 cat > conftest.$ac_ext <<EOF 3816 cat > conftest.$ac_ext <<EOF
3809#line 3810 "configure" 3817#line 3818 "configure"
3810#include "confdefs.h" 3818#include "confdefs.h"
3811 3819
3812#include <X11/Intrinsic.h> 3820#include <X11/Intrinsic.h>
@@ -3815,7 +3823,7 @@ int main() {
3815 3823
3816; return 0; } 3824; return 0; }
3817EOF 3825EOF
3818if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3826if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3819 rm -rf conftest* 3827 rm -rf conftest*
3820 emacs_cv_x11_version_5_with_xaw=yes 3828 emacs_cv_x11_version_5_with_xaw=yes
3821else 3829else
@@ -3843,12 +3851,12 @@ X_TOOLKIT_TYPE=$USE_X_TOOLKIT
3843 3851
3844if test "${USE_X_TOOLKIT}" != "none"; then 3852if test "${USE_X_TOOLKIT}" != "none"; then
3845 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 3853 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
3846echo "configure:3847: checking X11 toolkit version" >&5 3854echo "configure:3855: checking X11 toolkit version" >&5
3847 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 3855 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6 3856 echo $ac_n "(cached) $ac_c" 1>&6
3849else 3857else
3850 cat > conftest.$ac_ext <<EOF 3858 cat > conftest.$ac_ext <<EOF
3851#line 3852 "configure" 3859#line 3860 "configure"
3852#include "confdefs.h" 3860#include "confdefs.h"
3853#include <X11/Intrinsic.h> 3861#include <X11/Intrinsic.h>
3854int main() { 3862int main() {
@@ -3858,7 +3866,7 @@ fail;
3858 3866
3859; return 0; } 3867; return 0; }
3860EOF 3868EOF
3861if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3869if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3862 rm -rf conftest* 3870 rm -rf conftest*
3863 emacs_cv_x11_toolkit_version_6=yes 3871 emacs_cv_x11_toolkit_version_6=yes
3864else 3872else
@@ -3888,7 +3896,7 @@ EOF
3888 LIBS="-lXt $LIBS" 3896 LIBS="-lXt $LIBS"
3889 fi 3897 fi
3890 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 3898 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
3891echo "configure:3892: checking for XmuConvertStandardSelection in -lXmu" >&5 3899echo "configure:3900: checking for XmuConvertStandardSelection in -lXmu" >&5
3892ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 3900ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
3893if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3901if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6 3902 echo $ac_n "(cached) $ac_c" 1>&6
@@ -3896,7 +3904,7 @@ else
3896 ac_save_LIBS="$LIBS" 3904 ac_save_LIBS="$LIBS"
3897LIBS="-lXmu $LIBS" 3905LIBS="-lXmu $LIBS"
3898cat > conftest.$ac_ext <<EOF 3906cat > conftest.$ac_ext <<EOF
3899#line 3900 "configure" 3907#line 3908 "configure"
3900#include "confdefs.h" 3908#include "confdefs.h"
3901/* Override any gcc2 internal prototype to avoid an error. */ 3909/* Override any gcc2 internal prototype to avoid an error. */
3902/* We use char because int might match the return type of a gcc2 3910/* We use char because int might match the return type of a gcc2
@@ -3907,7 +3915,7 @@ int main() {
3907XmuConvertStandardSelection() 3915XmuConvertStandardSelection()
3908; return 0; } 3916; return 0; }
3909EOF 3917EOF
3910if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3918if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 rm -rf conftest* 3919 rm -rf conftest*
3912 eval "ac_cv_lib_$ac_lib_var=yes" 3920 eval "ac_cv_lib_$ac_lib_var=yes"
3913else 3921else
@@ -3939,12 +3947,12 @@ fi
3939 3947
3940if test "${USE_X_TOOLKIT}" = "MOTIF"; then 3948if test "${USE_X_TOOLKIT}" = "MOTIF"; then
3941 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 3949 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
3942echo "configure:3943: checking for Motif version 2.1" >&5 3950echo "configure:3951: checking for Motif version 2.1" >&5
3943if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 3951if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6 3952 echo $ac_n "(cached) $ac_c" 1>&6
3945else 3953else
3946 cat > conftest.$ac_ext <<EOF 3954 cat > conftest.$ac_ext <<EOF
3947#line 3948 "configure" 3955#line 3956 "configure"
3948#include "confdefs.h" 3956#include "confdefs.h"
3949#include <Xm/Xm.h> 3957#include <Xm/Xm.h>
3950int main() { 3958int main() {
@@ -3955,7 +3963,7 @@ Motif version prior to 2.1.
3955#endif 3963#endif
3956; return 0; } 3964; return 0; }
3957EOF 3965EOF
3958if { (eval echo configure:3959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3966if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3959 rm -rf conftest* 3967 rm -rf conftest*
3960 emacs_cv_motif_version_2_1=yes 3968 emacs_cv_motif_version_2_1=yes
3961else 3969else
@@ -3975,7 +3983,7 @@ echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
3975EOF 3983EOF
3976 3984
3977 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 3985 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
3978echo "configure:3979: checking for XpCreateContext in -lXp" >&5 3986echo "configure:3987: checking for XpCreateContext in -lXp" >&5
3979ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 3987ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
3980if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3988if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6 3989 echo $ac_n "(cached) $ac_c" 1>&6
@@ -3983,7 +3991,7 @@ else
3983 ac_save_LIBS="$LIBS" 3991 ac_save_LIBS="$LIBS"
3984LIBS="-lXp $LIBS" 3992LIBS="-lXp $LIBS"
3985cat > conftest.$ac_ext <<EOF 3993cat > conftest.$ac_ext <<EOF
3986#line 3987 "configure" 3994#line 3995 "configure"
3987#include "confdefs.h" 3995#include "confdefs.h"
3988/* Override any gcc2 internal prototype to avoid an error. */ 3996/* Override any gcc2 internal prototype to avoid an error. */
3989/* We use char because int might match the return type of a gcc2 3997/* We use char because int might match the return type of a gcc2
@@ -3994,7 +4002,7 @@ int main() {
3994XpCreateContext() 4002XpCreateContext()
3995; return 0; } 4003; return 0; }
3996EOF 4004EOF
3997if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4005if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3998 rm -rf conftest* 4006 rm -rf conftest*
3999 eval "ac_cv_lib_$ac_lib_var=yes" 4007 eval "ac_cv_lib_$ac_lib_var=yes"
4000else 4008else
@@ -4032,17 +4040,17 @@ if test "${HAVE_X11}" = "yes"; then
4032 CFLAGS="${LD_SWITCH_X_SITE}" 4040 CFLAGS="${LD_SWITCH_X_SITE}"
4033 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 4041 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4034echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4042echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4035echo "configure:4036: checking for X11/Xaw3d/Scrollbar.h" >&5 4043echo "configure:4044: checking for X11/Xaw3d/Scrollbar.h" >&5
4036if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4044if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6 4045 echo $ac_n "(cached) $ac_c" 1>&6
4038else 4046else
4039 cat > conftest.$ac_ext <<EOF 4047 cat > conftest.$ac_ext <<EOF
4040#line 4041 "configure" 4048#line 4049 "configure"
4041#include "confdefs.h" 4049#include "confdefs.h"
4042#include <X11/Xaw3d/Scrollbar.h> 4050#include <X11/Xaw3d/Scrollbar.h>
4043EOF 4051EOF
4044ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4052ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4045{ (eval echo configure:4046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4053{ (eval echo configure:4054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4046ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4054ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4047if test -z "$ac_err"; then 4055if test -z "$ac_err"; then
4048 rm -rf conftest* 4056 rm -rf conftest*
@@ -4059,7 +4067,7 @@ fi
4059if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4067if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4060 echo "$ac_t""yes" 1>&6 4068 echo "$ac_t""yes" 1>&6
4061 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 4069 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4062echo "configure:4063: checking for XawScrollbarSetThumb in -lXaw3d" >&5 4070echo "configure:4071: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4063ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4071ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4064if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4072if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6 4073 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4067,7 +4075,7 @@ else
4067 ac_save_LIBS="$LIBS" 4075 ac_save_LIBS="$LIBS"
4068LIBS="-lXaw3d -lX11 $LIBS" 4076LIBS="-lXaw3d -lX11 $LIBS"
4069cat > conftest.$ac_ext <<EOF 4077cat > conftest.$ac_ext <<EOF
4070#line 4071 "configure" 4078#line 4079 "configure"
4071#include "confdefs.h" 4079#include "confdefs.h"
4072/* Override any gcc2 internal prototype to avoid an error. */ 4080/* Override any gcc2 internal prototype to avoid an error. */
4073/* We use char because int might match the return type of a gcc2 4081/* We use char because int might match the return type of a gcc2
@@ -4078,7 +4086,7 @@ int main() {
4078XawScrollbarSetThumb() 4086XawScrollbarSetThumb()
4079; return 0; } 4087; return 0; }
4080EOF 4088EOF
4081if { (eval echo configure:4082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4089if { (eval echo configure:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4082 rm -rf conftest* 4090 rm -rf conftest*
4083 eval "ac_cv_lib_$ac_lib_var=yes" 4091 eval "ac_cv_lib_$ac_lib_var=yes"
4084else 4092else
@@ -4142,17 +4150,17 @@ if test "${HAVE_X11}" = "yes"; then
4142 CFLAGS="${LD_SWITCH_X_SITE}" 4150 CFLAGS="${LD_SWITCH_X_SITE}"
4143 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 4151 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4144echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 4152echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4145echo "configure:4146: checking for X11/xpm.h" >&5 4153echo "configure:4154: checking for X11/xpm.h" >&5
4146if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4154if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6 4155 echo $ac_n "(cached) $ac_c" 1>&6
4148else 4156else
4149 cat > conftest.$ac_ext <<EOF 4157 cat > conftest.$ac_ext <<EOF
4150#line 4151 "configure" 4158#line 4159 "configure"
4151#include "confdefs.h" 4159#include "confdefs.h"
4152#include <X11/xpm.h> 4160#include <X11/xpm.h>
4153EOF 4161EOF
4154ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4162ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4155{ (eval echo configure:4156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4163{ (eval echo configure:4164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4156ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4164ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4157if test -z "$ac_err"; then 4165if test -z "$ac_err"; then
4158 rm -rf conftest* 4166 rm -rf conftest*
@@ -4169,7 +4177,7 @@ fi
4169if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4177if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6 4178 echo "$ac_t""yes" 1>&6
4171 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 4179 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4172echo "configure:4173: checking for XpmReadFileToPixmap in -lXpm" >&5 4180echo "configure:4181: checking for XpmReadFileToPixmap in -lXpm" >&5
4173ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 4181ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4174if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4182if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6 4183 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4177,7 +4185,7 @@ else
4177 ac_save_LIBS="$LIBS" 4185 ac_save_LIBS="$LIBS"
4178LIBS="-lXpm -lX11 $LIBS" 4186LIBS="-lXpm -lX11 $LIBS"
4179cat > conftest.$ac_ext <<EOF 4187cat > conftest.$ac_ext <<EOF
4180#line 4181 "configure" 4188#line 4189 "configure"
4181#include "confdefs.h" 4189#include "confdefs.h"
4182/* Override any gcc2 internal prototype to avoid an error. */ 4190/* Override any gcc2 internal prototype to avoid an error. */
4183/* We use char because int might match the return type of a gcc2 4191/* We use char because int might match the return type of a gcc2
@@ -4188,7 +4196,7 @@ int main() {
4188XpmReadFileToPixmap() 4196XpmReadFileToPixmap()
4189; return 0; } 4197; return 0; }
4190EOF 4198EOF
4191if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4199if { (eval echo configure:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4192 rm -rf conftest* 4200 rm -rf conftest*
4193 eval "ac_cv_lib_$ac_lib_var=yes" 4201 eval "ac_cv_lib_$ac_lib_var=yes"
4194else 4202else
@@ -4230,7 +4238,7 @@ if test "${HAVE_X11}" = "yes"; then
4230 old_c_flags="${CFLAGS}" 4238 old_c_flags="${CFLAGS}"
4231 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4239 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4232 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 4240 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4233echo "configure:4234: checking for jpeg_destroy_compress in -ljpeg" >&5 4241echo "configure:4242: checking for jpeg_destroy_compress in -ljpeg" >&5
4234ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 4242ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4235if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4243if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6 4244 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4238,7 +4246,7 @@ else
4238 ac_save_LIBS="$LIBS" 4246 ac_save_LIBS="$LIBS"
4239LIBS="-ljpeg -lX11 $LIBS" 4247LIBS="-ljpeg -lX11 $LIBS"
4240cat > conftest.$ac_ext <<EOF 4248cat > conftest.$ac_ext <<EOF
4241#line 4242 "configure" 4249#line 4250 "configure"
4242#include "confdefs.h" 4250#include "confdefs.h"
4243/* Override any gcc2 internal prototype to avoid an error. */ 4251/* Override any gcc2 internal prototype to avoid an error. */
4244/* We use char because int might match the return type of a gcc2 4252/* We use char because int might match the return type of a gcc2
@@ -4249,7 +4257,7 @@ int main() {
4249jpeg_destroy_compress() 4257jpeg_destroy_compress()
4250; return 0; } 4258; return 0; }
4251EOF 4259EOF
4252if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4260if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4253 rm -rf conftest* 4261 rm -rf conftest*
4254 eval "ac_cv_lib_$ac_lib_var=yes" 4262 eval "ac_cv_lib_$ac_lib_var=yes"
4255else 4263else
@@ -4288,17 +4296,17 @@ if test "${HAVE_X11}" = "yes"; then
4288 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4296 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4289 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 4297 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4290echo $ac_n "checking for png.h""... $ac_c" 1>&6 4298echo $ac_n "checking for png.h""... $ac_c" 1>&6
4291echo "configure:4292: checking for png.h" >&5 4299echo "configure:4300: checking for png.h" >&5
4292if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4300if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6 4301 echo $ac_n "(cached) $ac_c" 1>&6
4294else 4302else
4295 cat > conftest.$ac_ext <<EOF 4303 cat > conftest.$ac_ext <<EOF
4296#line 4297 "configure" 4304#line 4305 "configure"
4297#include "confdefs.h" 4305#include "confdefs.h"
4298#include <png.h> 4306#include <png.h>
4299EOF 4307EOF
4300ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4308ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4301{ (eval echo configure:4302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4309{ (eval echo configure:4310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4302ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4310ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4303if test -z "$ac_err"; then 4311if test -z "$ac_err"; then
4304 rm -rf conftest* 4312 rm -rf conftest*
@@ -4315,7 +4323,7 @@ fi
4315if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4323if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4316 echo "$ac_t""yes" 1>&6 4324 echo "$ac_t""yes" 1>&6
4317 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 4325 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4318echo "configure:4319: checking for png_set_expand in -lpng" >&5 4326echo "configure:4327: checking for png_set_expand in -lpng" >&5
4319ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` 4327ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4320if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4328if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6 4329 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4323,7 +4331,7 @@ else
4323 ac_save_LIBS="$LIBS" 4331 ac_save_LIBS="$LIBS"
4324LIBS="-lpng -lX11 -lz -lm $LIBS" 4332LIBS="-lpng -lX11 -lz -lm $LIBS"
4325cat > conftest.$ac_ext <<EOF 4333cat > conftest.$ac_ext <<EOF
4326#line 4327 "configure" 4334#line 4335 "configure"
4327#include "confdefs.h" 4335#include "confdefs.h"
4328/* Override any gcc2 internal prototype to avoid an error. */ 4336/* Override any gcc2 internal prototype to avoid an error. */
4329/* We use char because int might match the return type of a gcc2 4337/* We use char because int might match the return type of a gcc2
@@ -4334,7 +4342,7 @@ int main() {
4334png_set_expand() 4342png_set_expand()
4335; return 0; } 4343; return 0; }
4336EOF 4344EOF
4337if { (eval echo configure:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4345if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4338 rm -rf conftest* 4346 rm -rf conftest*
4339 eval "ac_cv_lib_$ac_lib_var=yes" 4347 eval "ac_cv_lib_$ac_lib_var=yes"
4340else 4348else
@@ -4377,17 +4385,17 @@ if test "${HAVE_X11}" = "yes"; then
4377 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4385 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4378 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 4386 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4379echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 4387echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4380echo "configure:4381: checking for tiffio.h" >&5 4388echo "configure:4389: checking for tiffio.h" >&5
4381if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4389if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6 4390 echo $ac_n "(cached) $ac_c" 1>&6
4383else 4391else
4384 cat > conftest.$ac_ext <<EOF 4392 cat > conftest.$ac_ext <<EOF
4385#line 4386 "configure" 4393#line 4394 "configure"
4386#include "confdefs.h" 4394#include "confdefs.h"
4387#include <tiffio.h> 4395#include <tiffio.h>
4388EOF 4396EOF
4389ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4397ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4390{ (eval echo configure:4391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4398{ (eval echo configure:4399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4391ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4399ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4392if test -z "$ac_err"; then 4400if test -z "$ac_err"; then
4393 rm -rf conftest* 4401 rm -rf conftest*
@@ -4404,7 +4412,7 @@ fi
4404if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4412if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4405 echo "$ac_t""yes" 1>&6 4413 echo "$ac_t""yes" 1>&6
4406 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 4414 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4407echo "configure:4408: checking for TIFFGetVersion in -ltiff" >&5 4415echo "configure:4416: checking for TIFFGetVersion in -ltiff" >&5
4408ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 4416ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4409if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4417if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6 4418 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4412,7 +4420,7 @@ else
4412 ac_save_LIBS="$LIBS" 4420 ac_save_LIBS="$LIBS"
4413LIBS="-ltiff -lX11 -lm $LIBS" 4421LIBS="-ltiff -lX11 -lm $LIBS"
4414cat > conftest.$ac_ext <<EOF 4422cat > conftest.$ac_ext <<EOF
4415#line 4416 "configure" 4423#line 4424 "configure"
4416#include "confdefs.h" 4424#include "confdefs.h"
4417/* Override any gcc2 internal prototype to avoid an error. */ 4425/* Override any gcc2 internal prototype to avoid an error. */
4418/* We use char because int might match the return type of a gcc2 4426/* We use char because int might match the return type of a gcc2
@@ -4423,7 +4431,7 @@ int main() {
4423TIFFGetVersion() 4431TIFFGetVersion()
4424; return 0; } 4432; return 0; }
4425EOF 4433EOF
4426if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4434if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427 rm -rf conftest* 4435 rm -rf conftest*
4428 eval "ac_cv_lib_$ac_lib_var=yes" 4436 eval "ac_cv_lib_$ac_lib_var=yes"
4429else 4437else
@@ -4466,17 +4474,17 @@ if test "${HAVE_X11}" = "yes"; then
4466 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4474 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4467 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 4475 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4468echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 4476echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4469echo "configure:4470: checking for gif_lib.h" >&5 4477echo "configure:4478: checking for gif_lib.h" >&5
4470if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4478if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6 4479 echo $ac_n "(cached) $ac_c" 1>&6
4472else 4480else
4473 cat > conftest.$ac_ext <<EOF 4481 cat > conftest.$ac_ext <<EOF
4474#line 4475 "configure" 4482#line 4483 "configure"
4475#include "confdefs.h" 4483#include "confdefs.h"
4476#include <gif_lib.h> 4484#include <gif_lib.h>
4477EOF 4485EOF
4478ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4486ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4479{ (eval echo configure:4480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4487{ (eval echo configure:4488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4480ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4488ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4481if test -z "$ac_err"; then 4489if test -z "$ac_err"; then
4482 rm -rf conftest* 4490 rm -rf conftest*
@@ -4493,7 +4501,7 @@ fi
4493if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4501if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6 4502 echo "$ac_t""yes" 1>&6
4495 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6 4503 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4496echo "configure:4497: checking for DGifOpenFileName in -lungif" >&5 4504echo "configure:4505: checking for DGifOpenFileName in -lungif" >&5
4497ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'` 4505ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4498if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4506if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6 4507 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4501,7 +4509,7 @@ else
4501 ac_save_LIBS="$LIBS" 4509 ac_save_LIBS="$LIBS"
4502LIBS="-lungif -lX11 $LIBS" 4510LIBS="-lungif -lX11 $LIBS"
4503cat > conftest.$ac_ext <<EOF 4511cat > conftest.$ac_ext <<EOF
4504#line 4505 "configure" 4512#line 4513 "configure"
4505#include "confdefs.h" 4513#include "confdefs.h"
4506/* Override any gcc2 internal prototype to avoid an error. */ 4514/* Override any gcc2 internal prototype to avoid an error. */
4507/* We use char because int might match the return type of a gcc2 4515/* We use char because int might match the return type of a gcc2
@@ -4512,7 +4520,7 @@ int main() {
4512DGifOpenFileName() 4520DGifOpenFileName()
4513; return 0; } 4521; return 0; }
4514EOF 4522EOF
4515if { (eval echo configure:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4523if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4516 rm -rf conftest* 4524 rm -rf conftest*
4517 eval "ac_cv_lib_$ac_lib_var=yes" 4525 eval "ac_cv_lib_$ac_lib_var=yes"
4518else 4526else
@@ -4549,19 +4557,19 @@ fi
4549 4557
4550# If netdb.h doesn't declare h_errno, we must declare it by hand. 4558# If netdb.h doesn't declare h_errno, we must declare it by hand.
4551echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 4559echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4552echo "configure:4553: checking whether netdb declares h_errno" >&5 4560echo "configure:4561: checking whether netdb declares h_errno" >&5
4553if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 4561if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6 4562 echo $ac_n "(cached) $ac_c" 1>&6
4555else 4563else
4556 cat > conftest.$ac_ext <<EOF 4564 cat > conftest.$ac_ext <<EOF
4557#line 4558 "configure" 4565#line 4566 "configure"
4558#include "confdefs.h" 4566#include "confdefs.h"
4559#include <netdb.h> 4567#include <netdb.h>
4560int main() { 4568int main() {
4561return h_errno; 4569return h_errno;
4562; return 0; } 4570; return 0; }
4563EOF 4571EOF
4564if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4572if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4565 rm -rf conftest* 4573 rm -rf conftest*
4566 emacs_cv_netdb_declares_h_errno=yes 4574 emacs_cv_netdb_declares_h_errno=yes
4567else 4575else
@@ -4584,19 +4592,19 @@ fi
4584# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4592# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4585# for constant arguments. Useless! 4593# for constant arguments. Useless!
4586echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 4594echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4587echo "configure:4588: checking for working alloca.h" >&5 4595echo "configure:4596: checking for working alloca.h" >&5
4588if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 4596if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6 4597 echo $ac_n "(cached) $ac_c" 1>&6
4590else 4598else
4591 cat > conftest.$ac_ext <<EOF 4599 cat > conftest.$ac_ext <<EOF
4592#line 4593 "configure" 4600#line 4601 "configure"
4593#include "confdefs.h" 4601#include "confdefs.h"
4594#include <alloca.h> 4602#include <alloca.h>
4595int main() { 4603int main() {
4596char *p = alloca(2 * sizeof(int)); 4604char *p = alloca(2 * sizeof(int));
4597; return 0; } 4605; return 0; }
4598EOF 4606EOF
4599if { (eval echo configure:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4607if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4600 rm -rf conftest* 4608 rm -rf conftest*
4601 ac_cv_header_alloca_h=yes 4609 ac_cv_header_alloca_h=yes
4602else 4610else
@@ -4617,12 +4625,12 @@ EOF
4617fi 4625fi
4618 4626
4619echo $ac_n "checking for alloca""... $ac_c" 1>&6 4627echo $ac_n "checking for alloca""... $ac_c" 1>&6
4620echo "configure:4621: checking for alloca" >&5 4628echo "configure:4629: checking for alloca" >&5
4621if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 4629if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6 4630 echo $ac_n "(cached) $ac_c" 1>&6
4623else 4631else
4624 cat > conftest.$ac_ext <<EOF 4632 cat > conftest.$ac_ext <<EOF
4625#line 4626 "configure" 4633#line 4634 "configure"
4626#include "confdefs.h" 4634#include "confdefs.h"
4627 4635
4628#ifdef __GNUC__ 4636#ifdef __GNUC__
@@ -4650,7 +4658,7 @@ int main() {
4650char *p = (char *) alloca(1); 4658char *p = (char *) alloca(1);
4651; return 0; } 4659; return 0; }
4652EOF 4660EOF
4653if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4661if { (eval echo configure:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4654 rm -rf conftest* 4662 rm -rf conftest*
4655 ac_cv_func_alloca_works=yes 4663 ac_cv_func_alloca_works=yes
4656else 4664else
@@ -4682,12 +4690,12 @@ EOF
4682 4690
4683 4691
4684echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 4692echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4685echo "configure:4686: checking whether alloca needs Cray hooks" >&5 4693echo "configure:4694: checking whether alloca needs Cray hooks" >&5
4686if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 4694if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6 4695 echo $ac_n "(cached) $ac_c" 1>&6
4688else 4696else
4689 cat > conftest.$ac_ext <<EOF 4697 cat > conftest.$ac_ext <<EOF
4690#line 4691 "configure" 4698#line 4699 "configure"
4691#include "confdefs.h" 4699#include "confdefs.h"
4692#if defined(CRAY) && ! defined(CRAY2) 4700#if defined(CRAY) && ! defined(CRAY2)
4693webecray 4701webecray
@@ -4712,12 +4720,12 @@ echo "$ac_t""$ac_cv_os_cray" 1>&6
4712if test $ac_cv_os_cray = yes; then 4720if test $ac_cv_os_cray = yes; then
4713for ac_func in _getb67 GETB67 getb67; do 4721for ac_func in _getb67 GETB67 getb67; do
4714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4715echo "configure:4716: checking for $ac_func" >&5 4723echo "configure:4724: checking for $ac_func" >&5
4716if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4724if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6 4725 echo $ac_n "(cached) $ac_c" 1>&6
4718else 4726else
4719 cat > conftest.$ac_ext <<EOF 4727 cat > conftest.$ac_ext <<EOF
4720#line 4721 "configure" 4728#line 4729 "configure"
4721#include "confdefs.h" 4729#include "confdefs.h"
4722/* System header to define __stub macros and hopefully few prototypes, 4730/* System header to define __stub macros and hopefully few prototypes,
4723 which can conflict with char $ac_func(); below. */ 4731 which can conflict with char $ac_func(); below. */
@@ -4726,6 +4734,7 @@ else
4726/* We use char because int might match the return type of a gcc2 4734/* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */ 4735 builtin and then its argument prototype would still apply. */
4728char $ac_func(); 4736char $ac_func();
4737char (*f)();
4729 4738
4730int main() { 4739int main() {
4731 4740
@@ -4735,12 +4744,12 @@ int main() {
4735#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4736choke me 4745choke me
4737#else 4746#else
4738$ac_func(); 4747f = $ac_func;
4739#endif 4748#endif
4740 4749
4741; return 0; } 4750; return 0; }
4742EOF 4751EOF
4743if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4752if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4744 rm -rf conftest* 4753 rm -rf conftest*
4745 eval "ac_cv_func_$ac_func=yes" 4754 eval "ac_cv_func_$ac_func=yes"
4746else 4755else
@@ -4767,7 +4776,7 @@ done
4767fi 4776fi
4768 4777
4769echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 4778echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4770echo "configure:4771: checking stack direction for C alloca" >&5 4779echo "configure:4780: checking stack direction for C alloca" >&5
4771if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 4780if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6 4781 echo $ac_n "(cached) $ac_c" 1>&6
4773else 4782else
@@ -4775,7 +4784,7 @@ else
4775 ac_cv_c_stack_direction=0 4784 ac_cv_c_stack_direction=0
4776else 4785else
4777 cat > conftest.$ac_ext <<EOF 4786 cat > conftest.$ac_ext <<EOF
4778#line 4779 "configure" 4787#line 4788 "configure"
4779#include "confdefs.h" 4788#include "confdefs.h"
4780find_stack_direction () 4789find_stack_direction ()
4781{ 4790{
@@ -4794,7 +4803,7 @@ main ()
4794 exit (find_stack_direction() < 0); 4803 exit (find_stack_direction() < 0);
4795} 4804}
4796EOF 4805EOF
4797if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4806if { (eval echo configure:4807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4798then 4807then
4799 ac_cv_c_stack_direction=1 4808 ac_cv_c_stack_direction=1
4800else 4809else
@@ -4819,7 +4828,7 @@ fi
4819# fmod, logb, and frexp are found in -lm on most systems. 4828# fmod, logb, and frexp are found in -lm on most systems.
4820# On HPUX 9.01, -lm does not contain logb, so check for sqrt. 4829# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
4821echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 4830echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4822echo "configure:4823: checking for sqrt in -lm" >&5 4831echo "configure:4832: checking for sqrt in -lm" >&5
4823ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 4832ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4824if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4833if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6 4834 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4827,7 +4836,7 @@ else
4827 ac_save_LIBS="$LIBS" 4836 ac_save_LIBS="$LIBS"
4828LIBS="-lm $LIBS" 4837LIBS="-lm $LIBS"
4829cat > conftest.$ac_ext <<EOF 4838cat > conftest.$ac_ext <<EOF
4830#line 4831 "configure" 4839#line 4840 "configure"
4831#include "confdefs.h" 4840#include "confdefs.h"
4832/* Override any gcc2 internal prototype to avoid an error. */ 4841/* Override any gcc2 internal prototype to avoid an error. */
4833/* We use char because int might match the return type of a gcc2 4842/* We use char because int might match the return type of a gcc2
@@ -4838,7 +4847,7 @@ int main() {
4838sqrt() 4847sqrt()
4839; return 0; } 4848; return 0; }
4840EOF 4849EOF
4841if { (eval echo configure:4842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4850if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4842 rm -rf conftest* 4851 rm -rf conftest*
4843 eval "ac_cv_lib_$ac_lib_var=yes" 4852 eval "ac_cv_lib_$ac_lib_var=yes"
4844else 4853else
@@ -4868,7 +4877,7 @@ fi
4868 4877
4869# Check for mail-locking functions in a "mail" library 4878# Check for mail-locking functions in a "mail" library
4870echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 4879echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
4871echo "configure:4872: checking for maillock in -lmail" >&5 4880echo "configure:4881: checking for maillock in -lmail" >&5
4872ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 4881ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
4873if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4882if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6 4883 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4876,7 +4885,7 @@ else
4876 ac_save_LIBS="$LIBS" 4885 ac_save_LIBS="$LIBS"
4877LIBS="-lmail $LIBS" 4886LIBS="-lmail $LIBS"
4878cat > conftest.$ac_ext <<EOF 4887cat > conftest.$ac_ext <<EOF
4879#line 4880 "configure" 4888#line 4889 "configure"
4880#include "confdefs.h" 4889#include "confdefs.h"
4881/* Override any gcc2 internal prototype to avoid an error. */ 4890/* Override any gcc2 internal prototype to avoid an error. */
4882/* We use char because int might match the return type of a gcc2 4891/* We use char because int might match the return type of a gcc2
@@ -4887,7 +4896,7 @@ int main() {
4887maillock() 4896maillock()
4888; return 0; } 4897; return 0; }
4889EOF 4898EOF
4890if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4899if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4891 rm -rf conftest* 4900 rm -rf conftest*
4892 eval "ac_cv_lib_$ac_lib_var=yes" 4901 eval "ac_cv_lib_$ac_lib_var=yes"
4893else 4902else
@@ -4915,7 +4924,7 @@ else
4915fi 4924fi
4916 4925
4917echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 4926echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
4918echo "configure:4919: checking for maillock in -llockfile" >&5 4927echo "configure:4928: checking for maillock in -llockfile" >&5
4919ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 4928ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
4920if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4929if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6 4930 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4923,7 +4932,7 @@ else
4923 ac_save_LIBS="$LIBS" 4932 ac_save_LIBS="$LIBS"
4924LIBS="-llockfile $LIBS" 4933LIBS="-llockfile $LIBS"
4925cat > conftest.$ac_ext <<EOF 4934cat > conftest.$ac_ext <<EOF
4926#line 4927 "configure" 4935#line 4936 "configure"
4927#include "confdefs.h" 4936#include "confdefs.h"
4928/* Override any gcc2 internal prototype to avoid an error. */ 4937/* Override any gcc2 internal prototype to avoid an error. */
4929/* We use char because int might match the return type of a gcc2 4938/* We use char because int might match the return type of a gcc2
@@ -4934,7 +4943,7 @@ int main() {
4934maillock() 4943maillock()
4935; return 0; } 4944; return 0; }
4936EOF 4945EOF
4937if { (eval echo configure:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4946if { (eval echo configure:4947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4938 rm -rf conftest* 4947 rm -rf conftest*
4939 eval "ac_cv_lib_$ac_lib_var=yes" 4948 eval "ac_cv_lib_$ac_lib_var=yes"
4940else 4949else
@@ -4968,7 +4977,7 @@ if test "$ac_cv_lib_lockfile_maillock" = no; then
4968 # Extract the first word of "liblockfile.so", so it can be a program name with args. 4977 # Extract the first word of "liblockfile.so", so it can be a program name with args.
4969set dummy liblockfile.so; ac_word=$2 4978set dummy liblockfile.so; ac_word=$2
4970echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4979echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4971echo "configure:4972: checking for $ac_word" >&5 4980echo "configure:4981: checking for $ac_word" >&5
4972if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 4981if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
4973 echo $ac_n "(cached) $ac_c" 1>&6 4982 echo $ac_n "(cached) $ac_c" 1>&6
4974else 4983else
@@ -5009,12 +5018,12 @@ fi
5009for ac_func in touchlock 5018for ac_func in touchlock
5010do 5019do
5011echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5020echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5012echo "configure:5013: checking for $ac_func" >&5 5021echo "configure:5022: checking for $ac_func" >&5
5013if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5022if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6 5023 echo $ac_n "(cached) $ac_c" 1>&6
5015else 5024else
5016 cat > conftest.$ac_ext <<EOF 5025 cat > conftest.$ac_ext <<EOF
5017#line 5018 "configure" 5026#line 5027 "configure"
5018#include "confdefs.h" 5027#include "confdefs.h"
5019/* System header to define __stub macros and hopefully few prototypes, 5028/* System header to define __stub macros and hopefully few prototypes,
5020 which can conflict with char $ac_func(); below. */ 5029 which can conflict with char $ac_func(); below. */
@@ -5023,6 +5032,7 @@ else
5023/* We use char because int might match the return type of a gcc2 5032/* We use char because int might match the return type of a gcc2
5024 builtin and then its argument prototype would still apply. */ 5033 builtin and then its argument prototype would still apply. */
5025char $ac_func(); 5034char $ac_func();
5035char (*f)();
5026 5036
5027int main() { 5037int main() {
5028 5038
@@ -5032,12 +5042,12 @@ int main() {
5032#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5042#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5033choke me 5043choke me
5034#else 5044#else
5035$ac_func(); 5045f = $ac_func;
5036#endif 5046#endif
5037 5047
5038; return 0; } 5048; return 0; }
5039EOF 5049EOF
5040if { (eval echo configure:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5050if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5041 rm -rf conftest* 5051 rm -rf conftest*
5042 eval "ac_cv_func_$ac_func=yes" 5052 eval "ac_cv_func_$ac_func=yes"
5043else 5053else
@@ -5065,17 +5075,17 @@ for ac_hdr in maillock.h
5065do 5075do
5066ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5076ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5067echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5077echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5068echo "configure:5069: checking for $ac_hdr" >&5 5078echo "configure:5079: checking for $ac_hdr" >&5
5069if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5079if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6 5080 echo $ac_n "(cached) $ac_c" 1>&6
5071else 5081else
5072 cat > conftest.$ac_ext <<EOF 5082 cat > conftest.$ac_ext <<EOF
5073#line 5074 "configure" 5083#line 5084 "configure"
5074#include "confdefs.h" 5084#include "confdefs.h"
5075#include <$ac_hdr> 5085#include <$ac_hdr>
5076EOF 5086EOF
5077ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5087ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5078{ (eval echo configure:5079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5088{ (eval echo configure:5089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5079ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5089ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5080if test -z "$ac_err"; then 5090if test -z "$ac_err"; then
5081 rm -rf conftest* 5091 rm -rf conftest*
@@ -5110,12 +5120,12 @@ utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5110__fpending ftello getloadavg mblen mbrlen strsignal 5120__fpending ftello getloadavg mblen mbrlen strsignal
5111do 5121do
5112echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5122echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5113echo "configure:5114: checking for $ac_func" >&5 5123echo "configure:5124: checking for $ac_func" >&5
5114if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5124if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6 5125 echo $ac_n "(cached) $ac_c" 1>&6
5116else 5126else
5117 cat > conftest.$ac_ext <<EOF 5127 cat > conftest.$ac_ext <<EOF
5118#line 5119 "configure" 5128#line 5129 "configure"
5119#include "confdefs.h" 5129#include "confdefs.h"
5120/* System header to define __stub macros and hopefully few prototypes, 5130/* System header to define __stub macros and hopefully few prototypes,
5121 which can conflict with char $ac_func(); below. */ 5131 which can conflict with char $ac_func(); below. */
@@ -5124,6 +5134,7 @@ else
5124/* We use char because int might match the return type of a gcc2 5134/* We use char because int might match the return type of a gcc2
5125 builtin and then its argument prototype would still apply. */ 5135 builtin and then its argument prototype would still apply. */
5126char $ac_func(); 5136char $ac_func();
5137char (*f)();
5127 5138
5128int main() { 5139int main() {
5129 5140
@@ -5133,12 +5144,12 @@ int main() {
5133#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5144#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5134choke me 5145choke me
5135#else 5146#else
5136$ac_func(); 5147f = $ac_func;
5137#endif 5148#endif
5138 5149
5139; return 0; } 5150; return 0; }
5140EOF 5151EOF
5141if { (eval echo configure:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5152if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5142 rm -rf conftest* 5153 rm -rf conftest*
5143 eval "ac_cv_func_$ac_func=yes" 5154 eval "ac_cv_func_$ac_func=yes"
5144else 5155else
@@ -5168,7 +5179,7 @@ done
5168# It's better to believe a function is not available 5179# It's better to believe a function is not available
5169# than to expect to find it in ncurses. 5180# than to expect to find it in ncurses.
5170echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 5181echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5171echo "configure:5172: checking for tparm in -lncurses" >&5 5182echo "configure:5183: checking for tparm in -lncurses" >&5
5172ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 5183ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5173if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5184if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6 5185 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5176,7 +5187,7 @@ else
5176 ac_save_LIBS="$LIBS" 5187 ac_save_LIBS="$LIBS"
5177LIBS="-lncurses $LIBS" 5188LIBS="-lncurses $LIBS"
5178cat > conftest.$ac_ext <<EOF 5189cat > conftest.$ac_ext <<EOF
5179#line 5180 "configure" 5190#line 5191 "configure"
5180#include "confdefs.h" 5191#include "confdefs.h"
5181/* Override any gcc2 internal prototype to avoid an error. */ 5192/* Override any gcc2 internal prototype to avoid an error. */
5182/* We use char because int might match the return type of a gcc2 5193/* We use char because int might match the return type of a gcc2
@@ -5187,7 +5198,7 @@ int main() {
5187tparm() 5198tparm()
5188; return 0; } 5199; return 0; }
5189EOF 5200EOF
5190if { (eval echo configure:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5201if { (eval echo configure:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5191 rm -rf conftest* 5202 rm -rf conftest*
5192 eval "ac_cv_lib_$ac_lib_var=yes" 5203 eval "ac_cv_lib_$ac_lib_var=yes"
5193else 5204else
@@ -5218,7 +5229,7 @@ fi
5218# Solaris requires -lintl if you want strerror (which calls dgettext) 5229# Solaris requires -lintl if you want strerror (which calls dgettext)
5219# to return localized messages. 5230# to return localized messages.
5220echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 5231echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
5221echo "configure:5222: checking for dgettext in -lintl" >&5 5232echo "configure:5233: checking for dgettext in -lintl" >&5
5222ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 5233ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
5223if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5234if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5224 echo $ac_n "(cached) $ac_c" 1>&6 5235 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5226,7 +5237,7 @@ else
5226 ac_save_LIBS="$LIBS" 5237 ac_save_LIBS="$LIBS"
5227LIBS="-lintl $LIBS" 5238LIBS="-lintl $LIBS"
5228cat > conftest.$ac_ext <<EOF 5239cat > conftest.$ac_ext <<EOF
5229#line 5230 "configure" 5240#line 5241 "configure"
5230#include "confdefs.h" 5241#include "confdefs.h"
5231/* Override any gcc2 internal prototype to avoid an error. */ 5242/* Override any gcc2 internal prototype to avoid an error. */
5232/* We use char because int might match the return type of a gcc2 5243/* We use char because int might match the return type of a gcc2
@@ -5237,7 +5248,7 @@ int main() {
5237dgettext() 5248dgettext()
5238; return 0; } 5249; return 0; }
5239EOF 5250EOF
5240if { (eval echo configure:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5251if { (eval echo configure:5252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5241 rm -rf conftest* 5252 rm -rf conftest*
5242 eval "ac_cv_lib_$ac_lib_var=yes" 5253 eval "ac_cv_lib_$ac_lib_var=yes"
5243else 5254else
@@ -5266,7 +5277,7 @@ fi
5266 5277
5267 5278
5268echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 5279echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
5269echo "configure:5270: checking whether localtime caches TZ" >&5 5280echo "configure:5281: checking whether localtime caches TZ" >&5
5270if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 5281if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6 5282 echo $ac_n "(cached) $ac_c" 1>&6
5272else 5283else
@@ -5276,7 +5287,7 @@ if test "$cross_compiling" = yes; then
5276emacs_cv_localtime_cache=yes 5287emacs_cv_localtime_cache=yes
5277else 5288else
5278 cat > conftest.$ac_ext <<EOF 5289 cat > conftest.$ac_ext <<EOF
5279#line 5280 "configure" 5290#line 5291 "configure"
5280#include "confdefs.h" 5291#include "confdefs.h"
5281#include <time.h> 5292#include <time.h>
5282extern char **environ; 5293extern char **environ;
@@ -5308,7 +5319,7 @@ main()
5308 exit (0); 5319 exit (0);
5309} 5320}
5310EOF 5321EOF
5311if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5322if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5312then 5323then
5313 emacs_cv_localtime_cache=no 5324 emacs_cv_localtime_cache=no
5314else 5325else
@@ -5336,12 +5347,12 @@ fi
5336 5347
5337if test "x$HAVE_TIMEVAL" = xyes; then 5348if test "x$HAVE_TIMEVAL" = xyes; then
5338echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 5349echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
5339echo "configure:5340: checking whether gettimeofday can accept two arguments" >&5 5350echo "configure:5351: checking whether gettimeofday can accept two arguments" >&5
5340if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 5351if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
5341 echo $ac_n "(cached) $ac_c" 1>&6 5352 echo $ac_n "(cached) $ac_c" 1>&6
5342else 5353else
5343 cat > conftest.$ac_ext <<EOF 5354 cat > conftest.$ac_ext <<EOF
5344#line 5345 "configure" 5355#line 5356 "configure"
5345#include "confdefs.h" 5356#include "confdefs.h"
5346 5357
5347#ifdef TIME_WITH_SYS_TIME 5358#ifdef TIME_WITH_SYS_TIME
@@ -5363,7 +5374,7 @@ int main() {
5363 5374
5364; return 0; } 5375; return 0; }
5365EOF 5376EOF
5366if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5377if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5367 rm -rf conftest* 5378 rm -rf conftest*
5368 emacs_cv_gettimeofday_two_arguments=yes 5379 emacs_cv_gettimeofday_two_arguments=yes
5369else 5380else
@@ -5386,12 +5397,12 @@ fi
5386 5397
5387ok_so_far=yes 5398ok_so_far=yes
5388echo $ac_n "checking for socket""... $ac_c" 1>&6 5399echo $ac_n "checking for socket""... $ac_c" 1>&6
5389echo "configure:5390: checking for socket" >&5 5400echo "configure:5401: checking for socket" >&5
5390if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 5401if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6 5402 echo $ac_n "(cached) $ac_c" 1>&6
5392else 5403else
5393 cat > conftest.$ac_ext <<EOF 5404 cat > conftest.$ac_ext <<EOF
5394#line 5395 "configure" 5405#line 5406 "configure"
5395#include "confdefs.h" 5406#include "confdefs.h"
5396/* System header to define __stub macros and hopefully few prototypes, 5407/* System header to define __stub macros and hopefully few prototypes,
5397 which can conflict with char socket(); below. */ 5408 which can conflict with char socket(); below. */
@@ -5400,6 +5411,7 @@ else
5400/* We use char because int might match the return type of a gcc2 5411/* We use char because int might match the return type of a gcc2
5401 builtin and then its argument prototype would still apply. */ 5412 builtin and then its argument prototype would still apply. */
5402char socket(); 5413char socket();
5414char (*f)();
5403 5415
5404int main() { 5416int main() {
5405 5417
@@ -5409,12 +5421,12 @@ int main() {
5409#if defined (__stub_socket) || defined (__stub___socket) 5421#if defined (__stub_socket) || defined (__stub___socket)
5410choke me 5422choke me
5411#else 5423#else
5412socket(); 5424f = socket;
5413#endif 5425#endif
5414 5426
5415; return 0; } 5427; return 0; }
5416EOF 5428EOF
5417if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5429if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5418 rm -rf conftest* 5430 rm -rf conftest*
5419 eval "ac_cv_func_socket=yes" 5431 eval "ac_cv_func_socket=yes"
5420else 5432else
@@ -5437,17 +5449,17 @@ fi
5437if test $ok_so_far = yes; then 5449if test $ok_so_far = yes; then
5438 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 5450 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
5439echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 5451echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
5440echo "configure:5441: checking for netinet/in.h" >&5 5452echo "configure:5453: checking for netinet/in.h" >&5
5441if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5453if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5442 echo $ac_n "(cached) $ac_c" 1>&6 5454 echo $ac_n "(cached) $ac_c" 1>&6
5443else 5455else
5444 cat > conftest.$ac_ext <<EOF 5456 cat > conftest.$ac_ext <<EOF
5445#line 5446 "configure" 5457#line 5458 "configure"
5446#include "confdefs.h" 5458#include "confdefs.h"
5447#include <netinet/in.h> 5459#include <netinet/in.h>
5448EOF 5460EOF
5449ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5461ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5450{ (eval echo configure:5451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5462{ (eval echo configure:5463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5451ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5463ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5452if test -z "$ac_err"; then 5464if test -z "$ac_err"; then
5453 rm -rf conftest* 5465 rm -rf conftest*
@@ -5473,17 +5485,17 @@ fi
5473if test $ok_so_far = yes; then 5485if test $ok_so_far = yes; then
5474 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 5486 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
5475echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 5487echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
5476echo "configure:5477: checking for arpa/inet.h" >&5 5488echo "configure:5489: checking for arpa/inet.h" >&5
5477if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5489if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6 5490 echo $ac_n "(cached) $ac_c" 1>&6
5479else 5491else
5480 cat > conftest.$ac_ext <<EOF 5492 cat > conftest.$ac_ext <<EOF
5481#line 5482 "configure" 5493#line 5494 "configure"
5482#include "confdefs.h" 5494#include "confdefs.h"
5483#include <arpa/inet.h> 5495#include <arpa/inet.h>
5484EOF 5496EOF
5485ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5497ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5486{ (eval echo configure:5487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5498{ (eval echo configure:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5487ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5499ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5488if test -z "$ac_err"; then 5500if test -z "$ac_err"; then
5489 rm -rf conftest* 5501 rm -rf conftest*
@@ -5520,6 +5532,18 @@ EOF
5520 5532
5521fi 5533fi
5522 5534
5535echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
5536echo "configure:5537: checking whether system supports dynamic ptys" >&5
5537if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
5538 echo "$ac_t""yes" 1>&6
5539 cat >> confdefs.h <<\EOF
5540#define HAVE_DEV_PTMX 1
5541EOF
5542
5543else
5544 echo "$ac_t""no" 1>&6
5545fi
5546
5523# Set up the CFLAGS for real compilation, so we can substitute it. 5547# Set up the CFLAGS for real compilation, so we can substitute it.
5524CFLAGS="$REAL_CFLAGS" 5548CFLAGS="$REAL_CFLAGS"
5525 5549
diff --git a/configure.in b/configure.in
index 9fcf264126f..956d5dc2ed6 100644
--- a/configure.in
+++ b/configure.in
@@ -41,7 +41,8 @@ AC_ARG_WITH(pop,
41[if test "$withval" = yes; then 41[if test "$withval" = yes; then
42 AC_DEFINE(MAIL_USE_POP) 42 AC_DEFINE(MAIL_USE_POP)
43else : 43else :
44fi]) 44fi],
45AC_DEFINE(MAIL_USE_POP))
45AC_ARG_WITH(hesiod, 46AC_ARG_WITH(hesiod,
46[ --with-hesiod support Hesiod to get the POP server host], 47[ --with-hesiod support Hesiod to get the POP server host],
47[AC_DEFINE(HESIOD)]) 48[AC_DEFINE(HESIOD)])