aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Raeburn1999-11-23 22:16:16 +0000
committerKen Raeburn1999-11-23 22:16:16 +0000
commita21616bdc57c7065019d2fbf5a2e45fc70c4d355 (patch)
tree2776946143c835b790d20dcaa519aa957dce69ff
parent5ebc0846effbed992f4b1ddd10059e4ba79558f7 (diff)
downloademacs-a21616bdc57c7065019d2fbf5a2e45fc70c4d355.tar.gz
emacs-a21616bdc57c7065019d2fbf5a2e45fc70c4d355.zip
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
be deleted. Check for the k5crypto library as well as the crypto library; MIT Kerberos 1.1 changed the name.
-rw-r--r--ChangeLog6
-rwxr-xr-xconfigure1184
-rw-r--r--configure.in38
3 files changed, 1001 insertions, 227 deletions
diff --git a/ChangeLog b/ChangeLog
index 0f7fe64af2b..41b7a4f5ea0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
11999-11-23 Ken Raeburn <raeburn@gnu.org>
2
3 * configure.in: Restore Kerberos code deleted on 1999-05-29 that
4 didn't need to be deleted. Check for the k5crypto library as well
5 as the crypto library; MIT Kerberos 1.1 changed the name.
6
11999-11-18 Dave Love <fx@gnu.org> 71999-11-18 Dave Love <fx@gnu.org>
2 8
3 * configure.in: Fix NON_GNU_CPP for Irix 6 to avoid failing tests. 9 * configure.in: Fix NON_GNU_CPP for Irix 6 to avoid failing tests.
diff --git a/configure b/configure
index 315d0d493a7..3850689c87c 100755
--- a/configure
+++ b/configure
@@ -16,6 +16,10 @@ ac_help="$ac_help
16ac_help="$ac_help 16ac_help="$ac_help
17 --without-pop don't support POP mail retrieval with movemail" 17 --without-pop don't support POP mail retrieval with movemail"
18ac_help="$ac_help 18ac_help="$ac_help
19 --with-kerberos support Kerberos-authenticated POP"
20ac_help="$ac_help
21 --with-kerberos5 support Kerberos version 5 authenticated POP"
22ac_help="$ac_help
19 --with-hesiod support Hesiod to get the POP server host" 23 --with-hesiod support Hesiod to get the POP server host"
20ac_help="$ac_help 24ac_help="$ac_help
21 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)" 25 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)"
@@ -576,6 +580,33 @@ EOF
576 580
577fi 581fi
578 582
583# Check whether --with-kerberos or --without-kerberos was given.
584if test "${with_kerberos+set}" = set; then
585 withval="$with_kerberos"
586 cat >> confdefs.h <<\EOF
587#define KERBEROS 1
588EOF
589
590fi
591
592# Check whether --with-kerberos5 or --without-kerberos5 was given.
593if test "${with_kerberos5+set}" = set; then
594 withval="$with_kerberos5"
595 if test "${with_kerberos5+set}" = set; then
596 if test "${with_kerberos+set}" != set; then
597 with_kerberos=yes
598 cat >> confdefs.h <<\EOF
599#define KERBEROS 1
600EOF
601
602 fi
603fi
604cat >> confdefs.h <<\EOF
605#define KERBEROS5 1
606EOF
607
608fi
609
579# Check whether --with-hesiod or --without-hesiod was given. 610# Check whether --with-hesiod or --without-hesiod was given.
580if test "${with_hesiod+set}" = set; then 611if test "${with_hesiod+set}" = set; then
581 withval="$with_hesiod" 612 withval="$with_hesiod"
@@ -713,7 +744,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
713fi 744fi
714 745
715echo $ac_n "checking host system type""... $ac_c" 1>&6 746echo $ac_n "checking host system type""... $ac_c" 1>&6
716echo "configure:717: checking host system type" >&5 747echo "configure:748: checking host system type" >&5
717 748
718host_alias=$host 749host_alias=$host
719case "$host_alias" in 750case "$host_alias" in
@@ -1659,7 +1690,7 @@ case ${with_gcc} in
1659 * ) # Extract the first word of "gcc", so it can be a program name with args. 1690 * ) # Extract the first word of "gcc", so it can be a program name with args.
1660set dummy gcc; ac_word=$2 1691set dummy gcc; ac_word=$2
1661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1692echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1662echo "configure:1663: checking for $ac_word" >&5 1693echo "configure:1694: checking for $ac_word" >&5
1663if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1694if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6 1695 echo $ac_n "(cached) $ac_c" 1>&6
1665else 1696else
@@ -1689,7 +1720,7 @@ if test -z "$CC"; then
1689 # Extract the first word of "cc", so it can be a program name with args. 1720 # Extract the first word of "cc", so it can be a program name with args.
1690set dummy cc; ac_word=$2 1721set dummy cc; ac_word=$2
1691echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1722echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1692echo "configure:1693: checking for $ac_word" >&5 1723echo "configure:1724: checking for $ac_word" >&5
1693if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1724if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6 1725 echo $ac_n "(cached) $ac_c" 1>&6
1695else 1726else
@@ -1740,7 +1771,7 @@ fi
1740 # Extract the first word of "cl", so it can be a program name with args. 1771 # Extract the first word of "cl", so it can be a program name with args.
1741set dummy cl; ac_word=$2 1772set dummy cl; ac_word=$2
1742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1773echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1743echo "configure:1744: checking for $ac_word" >&5 1774echo "configure:1775: checking for $ac_word" >&5
1744if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1775if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6 1776 echo $ac_n "(cached) $ac_c" 1>&6
1746else 1777else
@@ -1772,7 +1803,7 @@ fi
1772fi 1803fi
1773 1804
1774echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1805echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1775echo "configure:1776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1806echo "configure:1807: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1776 1807
1777ac_ext=c 1808ac_ext=c
1778# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1809# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -1783,12 +1814,12 @@ cross_compiling=$ac_cv_prog_cc_cross
1783 1814
1784cat > conftest.$ac_ext << EOF 1815cat > conftest.$ac_ext << EOF
1785 1816
1786#line 1787 "configure" 1817#line 1818 "configure"
1787#include "confdefs.h" 1818#include "confdefs.h"
1788 1819
1789main(){return(0);} 1820main(){return(0);}
1790EOF 1821EOF
1791if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1822if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1792 ac_cv_prog_cc_works=yes 1823 ac_cv_prog_cc_works=yes
1793 # If we can't run a trivial program, we are probably using a cross compiler. 1824 # If we can't run a trivial program, we are probably using a cross compiler.
1794 if (./conftest; exit) 2>/dev/null; then 1825 if (./conftest; exit) 2>/dev/null; then
@@ -1814,12 +1845,12 @@ if test $ac_cv_prog_cc_works = no; then
1814 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1845 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1815fi 1846fi
1816echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1847echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1817echo "configure:1818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1848echo "configure:1849: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1818echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1849echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1819cross_compiling=$ac_cv_prog_cc_cross 1850cross_compiling=$ac_cv_prog_cc_cross
1820 1851
1821echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1852echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1822echo "configure:1823: checking whether we are using GNU C" >&5 1853echo "configure:1854: checking whether we are using GNU C" >&5
1823if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1854if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6 1855 echo $ac_n "(cached) $ac_c" 1>&6
1825else 1856else
@@ -1828,7 +1859,7 @@ else
1828 yes; 1859 yes;
1829#endif 1860#endif
1830EOF 1861EOF
1831if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1862if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1832 ac_cv_prog_gcc=yes 1863 ac_cv_prog_gcc=yes
1833else 1864else
1834 ac_cv_prog_gcc=no 1865 ac_cv_prog_gcc=no
@@ -1847,7 +1878,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
1847ac_save_CFLAGS="$CFLAGS" 1878ac_save_CFLAGS="$CFLAGS"
1848CFLAGS= 1879CFLAGS=
1849echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1880echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1850echo "configure:1851: checking whether ${CC-cc} accepts -g" >&5 1881echo "configure:1882: checking whether ${CC-cc} accepts -g" >&5
1851if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1882if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6 1883 echo $ac_n "(cached) $ac_c" 1>&6
1853else 1884else
@@ -1927,7 +1958,7 @@ fi
1927#### #undef clause to src/config.h.in for autoconf to modify. 1958#### #undef clause to src/config.h.in for autoconf to modify.
1928 1959
1929echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1960echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1930echo "configure:1931: checking whether ln -s works" >&5 1961echo "configure:1962: checking whether ln -s works" >&5
1931if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1962if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6 1963 echo $ac_n "(cached) $ac_c" 1>&6
1933else 1964else
@@ -1948,7 +1979,7 @@ else
1948fi 1979fi
1949 1980
1950echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1981echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1951echo "configure:1952: checking how to run the C preprocessor" >&5 1982echo "configure:1983: checking how to run the C preprocessor" >&5
1952# On Suns, sometimes $CPP names a directory. 1983# On Suns, sometimes $CPP names a directory.
1953if test -n "$CPP" && test -d "$CPP"; then 1984if test -n "$CPP" && test -d "$CPP"; then
1954 CPP= 1985 CPP=
@@ -1963,13 +1994,13 @@ else
1963 # On the NeXT, cc -E runs the code through the compiler's parser, 1994 # On the NeXT, cc -E runs the code through the compiler's parser,
1964 # not just through cpp. 1995 # not just through cpp.
1965 cat > conftest.$ac_ext <<EOF 1996 cat > conftest.$ac_ext <<EOF
1966#line 1967 "configure" 1997#line 1998 "configure"
1967#include "confdefs.h" 1998#include "confdefs.h"
1968#include <assert.h> 1999#include <assert.h>
1969Syntax Error 2000Syntax Error
1970EOF 2001EOF
1971ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2002ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1972{ (eval echo configure:1973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2003{ (eval echo configure:2004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1973ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2004ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1974if test -z "$ac_err"; then 2005if test -z "$ac_err"; then
1975 : 2006 :
@@ -1980,13 +2011,13 @@ else
1980 rm -rf conftest* 2011 rm -rf conftest*
1981 CPP="${CC-cc} -E -traditional-cpp" 2012 CPP="${CC-cc} -E -traditional-cpp"
1982 cat > conftest.$ac_ext <<EOF 2013 cat > conftest.$ac_ext <<EOF
1983#line 1984 "configure" 2014#line 2015 "configure"
1984#include "confdefs.h" 2015#include "confdefs.h"
1985#include <assert.h> 2016#include <assert.h>
1986Syntax Error 2017Syntax Error
1987EOF 2018EOF
1988ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2019ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1989{ (eval echo configure:1990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2020{ (eval echo configure:2021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1990ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2021ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1991if test -z "$ac_err"; then 2022if test -z "$ac_err"; then
1992 : 2023 :
@@ -1997,13 +2028,13 @@ else
1997 rm -rf conftest* 2028 rm -rf conftest*
1998 CPP="${CC-cc} -nologo -E" 2029 CPP="${CC-cc} -nologo -E"
1999 cat > conftest.$ac_ext <<EOF 2030 cat > conftest.$ac_ext <<EOF
2000#line 2001 "configure" 2031#line 2032 "configure"
2001#include "confdefs.h" 2032#include "confdefs.h"
2002#include <assert.h> 2033#include <assert.h>
2003Syntax Error 2034Syntax Error
2004EOF 2035EOF
2005ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2036ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2006{ (eval echo configure:2007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2037{ (eval echo configure:2038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2007ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2038ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2008if test -z "$ac_err"; then 2039if test -z "$ac_err"; then
2009 : 2040 :
@@ -2039,7 +2070,7 @@ echo "$ac_t""$CPP" 1>&6
2039# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2070# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2040# ./install, which can be erroneously created by make from ./install.sh. 2071# ./install, which can be erroneously created by make from ./install.sh.
2041echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2072echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2042echo "configure:2043: checking for a BSD compatible install" >&5 2073echo "configure:2074: checking for a BSD compatible install" >&5
2043if test -z "$INSTALL"; then 2074if test -z "$INSTALL"; then
2044if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2075if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6 2076 echo $ac_n "(cached) $ac_c" 1>&6
@@ -2096,7 +2127,7 @@ do
2096# Extract the first word of "$ac_prog", so it can be a program name with args. 2127# Extract the first word of "$ac_prog", so it can be a program name with args.
2097set dummy $ac_prog; ac_word=$2 2128set dummy $ac_prog; ac_word=$2
2098echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2129echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2099echo "configure:2100: checking for $ac_word" >&5 2130echo "configure:2131: checking for $ac_word" >&5
2100if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 2131if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6 2132 echo $ac_n "(cached) $ac_c" 1>&6
2102else 2133else
@@ -2128,9 +2159,9 @@ test -n "$YACC" || YACC="yacc"
2128 2159
2129 2160
2130echo $ac_n "checking for AIX""... $ac_c" 1>&6 2161echo $ac_n "checking for AIX""... $ac_c" 1>&6
2131echo "configure:2132: checking for AIX" >&5 2162echo "configure:2163: checking for AIX" >&5
2132cat > conftest.$ac_ext <<EOF 2163cat > conftest.$ac_ext <<EOF
2133#line 2134 "configure" 2164#line 2165 "configure"
2134#include "confdefs.h" 2165#include "confdefs.h"
2135#ifdef _AIX 2166#ifdef _AIX
2136 yes 2167 yes
@@ -2157,17 +2188,17 @@ for ac_hdr in machine/soundcard.h sys/soundcard.h
2157do 2188do
2158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2189ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2190echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2160echo "configure:2161: checking for $ac_hdr" >&5 2191echo "configure:2192: checking for $ac_hdr" >&5
2161if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2192if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6 2193 echo $ac_n "(cached) $ac_c" 1>&6
2163else 2194else
2164 cat > conftest.$ac_ext <<EOF 2195 cat > conftest.$ac_ext <<EOF
2165#line 2166 "configure" 2196#line 2197 "configure"
2166#include "confdefs.h" 2197#include "confdefs.h"
2167#include <$ac_hdr> 2198#include <$ac_hdr>
2168EOF 2199EOF
2169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2200ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2170{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2201{ (eval echo configure:2202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2202ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2172if test -z "$ac_err"; then 2203if test -z "$ac_err"; then
2173 rm -rf conftest* 2204 rm -rf conftest*
@@ -2200,17 +2231,17 @@ for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
2200do 2231do
2201ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2232ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2202echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2233echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2203echo "configure:2204: checking for $ac_hdr" >&5 2234echo "configure:2235: checking for $ac_hdr" >&5
2204if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2235if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6 2236 echo $ac_n "(cached) $ac_c" 1>&6
2206else 2237else
2207 cat > conftest.$ac_ext <<EOF 2238 cat > conftest.$ac_ext <<EOF
2208#line 2209 "configure" 2239#line 2240 "configure"
2209#include "confdefs.h" 2240#include "confdefs.h"
2210#include <$ac_hdr> 2241#include <$ac_hdr>
2211EOF 2242EOF
2212ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2243ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2213{ (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2244{ (eval echo configure:2245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2214ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2245ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2215if test -z "$ac_err"; then 2246if test -z "$ac_err"; then
2216 rm -rf conftest* 2247 rm -rf conftest*
@@ -2237,12 +2268,12 @@ fi
2237done 2268done
2238 2269
2239echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2270echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2240echo "configure:2241: checking for ANSI C header files" >&5 2271echo "configure:2272: checking for ANSI C header files" >&5
2241if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2272if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6 2273 echo $ac_n "(cached) $ac_c" 1>&6
2243else 2274else
2244 cat > conftest.$ac_ext <<EOF 2275 cat > conftest.$ac_ext <<EOF
2245#line 2246 "configure" 2276#line 2277 "configure"
2246#include "confdefs.h" 2277#include "confdefs.h"
2247#include <stdlib.h> 2278#include <stdlib.h>
2248#include <stdarg.h> 2279#include <stdarg.h>
@@ -2250,7 +2281,7 @@ else
2250#include <float.h> 2281#include <float.h>
2251EOF 2282EOF
2252ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2283ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2253{ (eval echo configure:2254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2284{ (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2254ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2285ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2255if test -z "$ac_err"; then 2286if test -z "$ac_err"; then
2256 rm -rf conftest* 2287 rm -rf conftest*
@@ -2267,7 +2298,7 @@ rm -f conftest*
2267if test $ac_cv_header_stdc = yes; then 2298if test $ac_cv_header_stdc = yes; then
2268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2269cat > conftest.$ac_ext <<EOF 2300cat > conftest.$ac_ext <<EOF
2270#line 2271 "configure" 2301#line 2302 "configure"
2271#include "confdefs.h" 2302#include "confdefs.h"
2272#include <string.h> 2303#include <string.h>
2273EOF 2304EOF
@@ -2285,7 +2316,7 @@ fi
2285if test $ac_cv_header_stdc = yes; then 2316if test $ac_cv_header_stdc = yes; then
2286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2287cat > conftest.$ac_ext <<EOF 2318cat > conftest.$ac_ext <<EOF
2288#line 2289 "configure" 2319#line 2320 "configure"
2289#include "confdefs.h" 2320#include "confdefs.h"
2290#include <stdlib.h> 2321#include <stdlib.h>
2291EOF 2322EOF
@@ -2306,7 +2337,7 @@ if test "$cross_compiling" = yes; then
2306 : 2337 :
2307else 2338else
2308 cat > conftest.$ac_ext <<EOF 2339 cat > conftest.$ac_ext <<EOF
2309#line 2310 "configure" 2340#line 2341 "configure"
2310#include "confdefs.h" 2341#include "confdefs.h"
2311#include <ctype.h> 2342#include <ctype.h>
2312#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2343#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -2317,7 +2348,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2317exit (0); } 2348exit (0); }
2318 2349
2319EOF 2350EOF
2320if { (eval echo configure:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2351if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2321then 2352then
2322 : 2353 :
2323else 2354else
@@ -2341,12 +2372,12 @@ EOF
2341fi 2372fi
2342 2373
2343echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2374echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2344echo "configure:2345: checking whether time.h and sys/time.h may both be included" >&5 2375echo "configure:2376: checking whether time.h and sys/time.h may both be included" >&5
2345if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2376if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6 2377 echo $ac_n "(cached) $ac_c" 1>&6
2347else 2378else
2348 cat > conftest.$ac_ext <<EOF 2379 cat > conftest.$ac_ext <<EOF
2349#line 2350 "configure" 2380#line 2381 "configure"
2350#include "confdefs.h" 2381#include "confdefs.h"
2351#include <sys/types.h> 2382#include <sys/types.h>
2352#include <sys/time.h> 2383#include <sys/time.h>
@@ -2355,7 +2386,7 @@ int main() {
2355struct tm *tp; 2386struct tm *tp;
2356; return 0; } 2387; return 0; }
2357EOF 2388EOF
2358if { (eval echo configure:2359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2389if { (eval echo configure:2390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2359 rm -rf conftest* 2390 rm -rf conftest*
2360 ac_cv_header_time=yes 2391 ac_cv_header_time=yes
2361else 2392else
@@ -2376,12 +2407,12 @@ EOF
2376fi 2407fi
2377 2408
2378echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2409echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2379echo "configure:2380: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2410echo "configure:2411: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2380if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2411if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6 2412 echo $ac_n "(cached) $ac_c" 1>&6
2382else 2413else
2383 cat > conftest.$ac_ext <<EOF 2414 cat > conftest.$ac_ext <<EOF
2384#line 2385 "configure" 2415#line 2416 "configure"
2385#include "confdefs.h" 2416#include "confdefs.h"
2386#include <sys/types.h> 2417#include <sys/types.h>
2387#include <signal.h> 2418#include <signal.h>
@@ -2393,7 +2424,7 @@ int main() {
2393char *msg = *(sys_siglist + 1); 2424char *msg = *(sys_siglist + 1);
2394; return 0; } 2425; return 0; }
2395EOF 2426EOF
2396if { (eval echo configure:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2427if { (eval echo configure:2428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2397 rm -rf conftest* 2428 rm -rf conftest*
2398 ac_cv_decl_sys_siglist=yes 2429 ac_cv_decl_sys_siglist=yes
2399else 2430else
@@ -2415,12 +2446,12 @@ fi
2415 2446
2416 2447
2417echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2448echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2418echo "configure:2419: checking for struct utimbuf" >&5 2449echo "configure:2450: checking for struct utimbuf" >&5
2419if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 2450if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6 2451 echo $ac_n "(cached) $ac_c" 1>&6
2421else 2452else
2422 cat > conftest.$ac_ext <<EOF 2453 cat > conftest.$ac_ext <<EOF
2423#line 2424 "configure" 2454#line 2455 "configure"
2424#include "confdefs.h" 2455#include "confdefs.h"
2425#ifdef TIME_WITH_SYS_TIME 2456#ifdef TIME_WITH_SYS_TIME
2426#include <sys/time.h> 2457#include <sys/time.h>
@@ -2439,7 +2470,7 @@ int main() {
2439static struct utimbuf x; x.actime = x.modtime; 2470static struct utimbuf x; x.actime = x.modtime;
2440; return 0; } 2471; return 0; }
2441EOF 2472EOF
2442if { (eval echo configure:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2473if { (eval echo configure:2474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2443 rm -rf conftest* 2474 rm -rf conftest*
2444 emacs_cv_struct_utimbuf=yes 2475 emacs_cv_struct_utimbuf=yes
2445else 2476else
@@ -2460,12 +2491,12 @@ EOF
2460fi 2491fi
2461 2492
2462echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2493echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2463echo "configure:2464: checking return type of signal handlers" >&5 2494echo "configure:2495: checking return type of signal handlers" >&5
2464if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2495if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6 2496 echo $ac_n "(cached) $ac_c" 1>&6
2466else 2497else
2467 cat > conftest.$ac_ext <<EOF 2498 cat > conftest.$ac_ext <<EOF
2468#line 2469 "configure" 2499#line 2500 "configure"
2469#include "confdefs.h" 2500#include "confdefs.h"
2470#include <sys/types.h> 2501#include <sys/types.h>
2471#include <signal.h> 2502#include <signal.h>
@@ -2482,7 +2513,7 @@ int main() {
2482int i; 2513int i;
2483; return 0; } 2514; return 0; }
2484EOF 2515EOF
2485if { (eval echo configure:2486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2516if { (eval echo configure:2517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2486 rm -rf conftest* 2517 rm -rf conftest*
2487 ac_cv_type_signal=void 2518 ac_cv_type_signal=void
2488else 2519else
@@ -2502,12 +2533,12 @@ EOF
2502 2533
2503 2534
2504echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 2535echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2505echo "configure:2506: checking for struct timeval" >&5 2536echo "configure:2537: checking for struct timeval" >&5
2506if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 2537if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6 2538 echo $ac_n "(cached) $ac_c" 1>&6
2508else 2539else
2509 cat > conftest.$ac_ext <<EOF 2540 cat > conftest.$ac_ext <<EOF
2510#line 2511 "configure" 2541#line 2542 "configure"
2511#include "confdefs.h" 2542#include "confdefs.h"
2512#ifdef TIME_WITH_SYS_TIME 2543#ifdef TIME_WITH_SYS_TIME
2513#include <sys/time.h> 2544#include <sys/time.h>
@@ -2523,7 +2554,7 @@ int main() {
2523static struct timeval x; x.tv_sec = x.tv_usec; 2554static struct timeval x; x.tv_sec = x.tv_usec;
2524; return 0; } 2555; return 0; }
2525EOF 2556EOF
2526if { (eval echo configure:2527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2557if { (eval echo configure:2558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2527 rm -rf conftest* 2558 rm -rf conftest*
2528 emacs_cv_struct_timeval=yes 2559 emacs_cv_struct_timeval=yes
2529else 2560else
@@ -2545,12 +2576,12 @@ EOF
2545fi 2576fi
2546 2577
2547echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2578echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2548echo "configure:2549: checking whether struct tm is in sys/time.h or time.h" >&5 2579echo "configure:2580: checking whether struct tm is in sys/time.h or time.h" >&5
2549if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2580if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6 2581 echo $ac_n "(cached) $ac_c" 1>&6
2551else 2582else
2552 cat > conftest.$ac_ext <<EOF 2583 cat > conftest.$ac_ext <<EOF
2553#line 2554 "configure" 2584#line 2585 "configure"
2554#include "confdefs.h" 2585#include "confdefs.h"
2555#include <sys/types.h> 2586#include <sys/types.h>
2556#include <time.h> 2587#include <time.h>
@@ -2558,7 +2589,7 @@ int main() {
2558struct tm *tp; tp->tm_sec; 2589struct tm *tp; tp->tm_sec;
2559; return 0; } 2590; return 0; }
2560EOF 2591EOF
2561if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2592if { (eval echo configure:2593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2562 rm -rf conftest* 2593 rm -rf conftest*
2563 ac_cv_struct_tm=time.h 2594 ac_cv_struct_tm=time.h
2564else 2595else
@@ -2579,12 +2610,12 @@ EOF
2579fi 2610fi
2580 2611
2581echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2612echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2582echo "configure:2583: checking for tm_zone in struct tm" >&5 2613echo "configure:2614: checking for tm_zone in struct tm" >&5
2583if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 2614if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6 2615 echo $ac_n "(cached) $ac_c" 1>&6
2585else 2616else
2586 cat > conftest.$ac_ext <<EOF 2617 cat > conftest.$ac_ext <<EOF
2587#line 2588 "configure" 2618#line 2619 "configure"
2588#include "confdefs.h" 2619#include "confdefs.h"
2589#include <sys/types.h> 2620#include <sys/types.h>
2590#include <$ac_cv_struct_tm> 2621#include <$ac_cv_struct_tm>
@@ -2592,7 +2623,7 @@ int main() {
2592struct tm tm; tm.tm_zone; 2623struct tm tm; tm.tm_zone;
2593; return 0; } 2624; return 0; }
2594EOF 2625EOF
2595if { (eval echo configure:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2626if { (eval echo configure:2627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2596 rm -rf conftest* 2627 rm -rf conftest*
2597 ac_cv_struct_tm_zone=yes 2628 ac_cv_struct_tm_zone=yes
2598else 2629else
@@ -2612,12 +2643,12 @@ EOF
2612 2643
2613else 2644else
2614 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2645 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2615echo "configure:2616: checking for tzname" >&5 2646echo "configure:2647: checking for tzname" >&5
2616if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 2647if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6 2648 echo $ac_n "(cached) $ac_c" 1>&6
2618else 2649else
2619 cat > conftest.$ac_ext <<EOF 2650 cat > conftest.$ac_ext <<EOF
2620#line 2621 "configure" 2651#line 2652 "configure"
2621#include "confdefs.h" 2652#include "confdefs.h"
2622#include <time.h> 2653#include <time.h>
2623#ifndef tzname /* For SGI. */ 2654#ifndef tzname /* For SGI. */
@@ -2627,7 +2658,7 @@ int main() {
2627atoi(*tzname); 2658atoi(*tzname);
2628; return 0; } 2659; return 0; }
2629EOF 2660EOF
2630if { (eval echo configure:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2661if { (eval echo configure:2662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2631 rm -rf conftest* 2662 rm -rf conftest*
2632 ac_cv_var_tzname=yes 2663 ac_cv_var_tzname=yes
2633else 2664else
@@ -2649,19 +2680,19 @@ EOF
2649fi 2680fi
2650 2681
2651echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 2682echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2652echo "configure:2653: checking for tm_gmtoff in struct tm" >&5 2683echo "configure:2684: checking for tm_gmtoff in struct tm" >&5
2653if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 2684if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6 2685 echo $ac_n "(cached) $ac_c" 1>&6
2655else 2686else
2656 cat > conftest.$ac_ext <<EOF 2687 cat > conftest.$ac_ext <<EOF
2657#line 2658 "configure" 2688#line 2689 "configure"
2658#include "confdefs.h" 2689#include "confdefs.h"
2659#include <time.h> 2690#include <time.h>
2660int main() { 2691int main() {
2661struct tm t; t.tm_gmtoff = 0 2692struct tm t; t.tm_gmtoff = 0
2662; return 0; } 2693; return 0; }
2663EOF 2694EOF
2664if { (eval echo configure:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2695if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2665 rm -rf conftest* 2696 rm -rf conftest*
2666 emacs_cv_tm_gmtoff=yes 2697 emacs_cv_tm_gmtoff=yes
2667else 2698else
@@ -2682,12 +2713,12 @@ EOF
2682fi 2713fi
2683 2714
2684echo $ac_n "checking for working const""... $ac_c" 1>&6 2715echo $ac_n "checking for working const""... $ac_c" 1>&6
2685echo "configure:2686: checking for working const" >&5 2716echo "configure:2717: checking for working const" >&5
2686if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2717if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6 2718 echo $ac_n "(cached) $ac_c" 1>&6
2688else 2719else
2689 cat > conftest.$ac_ext <<EOF 2720 cat > conftest.$ac_ext <<EOF
2690#line 2691 "configure" 2721#line 2722 "configure"
2691#include "confdefs.h" 2722#include "confdefs.h"
2692 2723
2693int main() { 2724int main() {
@@ -2736,7 +2767,7 @@ ccp = (char const *const *) p;
2736 2767
2737; return 0; } 2768; return 0; }
2738EOF 2769EOF
2739if { (eval echo configure:2740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2770if { (eval echo configure:2771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2740 rm -rf conftest* 2771 rm -rf conftest*
2741 ac_cv_c_const=yes 2772 ac_cv_c_const=yes
2742else 2773else
@@ -2758,7 +2789,7 @@ fi
2758 2789
2759 2790
2760echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 2791echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2761echo "configure:2762: checking whether ${MAKE-make} sets \${MAKE}" >&5 2792echo "configure:2793: checking whether ${MAKE-make} sets \${MAKE}" >&5
2762set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 2793set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2763if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 2794if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6 2795 echo $ac_n "(cached) $ac_c" 1>&6
@@ -2786,7 +2817,7 @@ fi
2786 2817
2787 2818
2788echo $ac_n "checking for long file names""... $ac_c" 1>&6 2819echo $ac_n "checking for long file names""... $ac_c" 1>&6
2789echo "configure:2790: checking for long file names" >&5 2820echo "configure:2821: checking for long file names" >&5
2790if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 2821if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6 2822 echo $ac_n "(cached) $ac_c" 1>&6
2792else 2823else
@@ -2837,7 +2868,7 @@ fi
2837# Uses ac_ vars as temps to allow command line to override cache and checks. 2868# Uses ac_ vars as temps to allow command line to override cache and checks.
2838# --without-x overrides everything else, but does not touch the cache. 2869# --without-x overrides everything else, but does not touch the cache.
2839echo $ac_n "checking for X""... $ac_c" 1>&6 2870echo $ac_n "checking for X""... $ac_c" 1>&6
2840echo "configure:2841: checking for X" >&5 2871echo "configure:2872: checking for X" >&5
2841 2872
2842# Check whether --with-x or --without-x was given. 2873# Check whether --with-x or --without-x was given.
2843if test "${with_x+set}" = set; then 2874if test "${with_x+set}" = set; then
@@ -2899,12 +2930,12 @@ if test "$ac_x_includes" = NO; then
2899 2930
2900 # First, try using that file with no special directory specified. 2931 # First, try using that file with no special directory specified.
2901cat > conftest.$ac_ext <<EOF 2932cat > conftest.$ac_ext <<EOF
2902#line 2903 "configure" 2933#line 2934 "configure"
2903#include "confdefs.h" 2934#include "confdefs.h"
2904#include <$x_direct_test_include> 2935#include <$x_direct_test_include>
2905EOF 2936EOF
2906ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2937ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2907{ (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2938{ (eval echo configure:2939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2908ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2939ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2909if test -z "$ac_err"; then 2940if test -z "$ac_err"; then
2910 rm -rf conftest* 2941 rm -rf conftest*
@@ -2973,14 +3004,14 @@ if test "$ac_x_libraries" = NO; then
2973 ac_save_LIBS="$LIBS" 3004 ac_save_LIBS="$LIBS"
2974 LIBS="-l$x_direct_test_library $LIBS" 3005 LIBS="-l$x_direct_test_library $LIBS"
2975cat > conftest.$ac_ext <<EOF 3006cat > conftest.$ac_ext <<EOF
2976#line 2977 "configure" 3007#line 3008 "configure"
2977#include "confdefs.h" 3008#include "confdefs.h"
2978 3009
2979int main() { 3010int main() {
2980${x_direct_test_function}() 3011${x_direct_test_function}()
2981; return 0; } 3012; return 0; }
2982EOF 3013EOF
2983if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3014if { (eval echo configure:3015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2984 rm -rf conftest* 3015 rm -rf conftest*
2985 LIBS="$ac_save_LIBS" 3016 LIBS="$ac_save_LIBS"
2986# We can link X programs with no special library path. 3017# We can link X programs with no special library path.
@@ -3155,7 +3186,7 @@ fi
3155echo "checking the machine- and system-dependent files to find out 3186echo "checking the machine- and system-dependent files to find out
3156 - which libraries the lib-src programs will want, and 3187 - which libraries the lib-src programs will want, and
3157 - whether the GNU malloc routines are usable" 1>&6 3188 - whether the GNU malloc routines are usable" 1>&6
3158echo "configure:3159: checking the machine- and system-dependent files to find out 3189echo "configure:3190: checking the machine- and system-dependent files to find out
3159 - which libraries the lib-src programs will want, and 3190 - which libraries the lib-src programs will want, and
3160 - whether the GNU malloc routines are usable" >&5 3191 - whether the GNU malloc routines are usable" >&5
3161 3192
@@ -3285,12 +3316,12 @@ UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
3285GNU_MALLOC=yes 3316GNU_MALLOC=yes
3286doug_lea_malloc=yes 3317doug_lea_malloc=yes
3287echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3318echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3288echo "configure:3289: checking for malloc_get_state" >&5 3319echo "configure:3320: checking for malloc_get_state" >&5
3289if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 3320if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6 3321 echo $ac_n "(cached) $ac_c" 1>&6
3291else 3322else
3292 cat > conftest.$ac_ext <<EOF 3323 cat > conftest.$ac_ext <<EOF
3293#line 3294 "configure" 3324#line 3325 "configure"
3294#include "confdefs.h" 3325#include "confdefs.h"
3295/* System header to define __stub macros and hopefully few prototypes, 3326/* System header to define __stub macros and hopefully few prototypes,
3296 which can conflict with char malloc_get_state(); below. */ 3327 which can conflict with char malloc_get_state(); below. */
@@ -3299,7 +3330,6 @@ else
3299/* We use char because int might match the return type of a gcc2 3330/* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */ 3331 builtin and then its argument prototype would still apply. */
3301char malloc_get_state(); 3332char malloc_get_state();
3302char (*f)();
3303 3333
3304int main() { 3334int main() {
3305 3335
@@ -3309,12 +3339,12 @@ int main() {
3309#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) 3339#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3310choke me 3340choke me
3311#else 3341#else
3312f = malloc_get_state; 3342malloc_get_state();
3313#endif 3343#endif
3314 3344
3315; return 0; } 3345; return 0; }
3316EOF 3346EOF
3317if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3347if { (eval echo configure:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3318 rm -rf conftest* 3348 rm -rf conftest*
3319 eval "ac_cv_func_malloc_get_state=yes" 3349 eval "ac_cv_func_malloc_get_state=yes"
3320else 3350else
@@ -3335,12 +3365,12 @@ doug_lea_malloc=no
3335fi 3365fi
3336 3366
3337echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3367echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3338echo "configure:3339: checking for malloc_set_state" >&5 3368echo "configure:3369: checking for malloc_set_state" >&5
3339if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 3369if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6 3370 echo $ac_n "(cached) $ac_c" 1>&6
3341else 3371else
3342 cat > conftest.$ac_ext <<EOF 3372 cat > conftest.$ac_ext <<EOF
3343#line 3344 "configure" 3373#line 3374 "configure"
3344#include "confdefs.h" 3374#include "confdefs.h"
3345/* System header to define __stub macros and hopefully few prototypes, 3375/* System header to define __stub macros and hopefully few prototypes,
3346 which can conflict with char malloc_set_state(); below. */ 3376 which can conflict with char malloc_set_state(); below. */
@@ -3349,7 +3379,6 @@ else
3349/* We use char because int might match the return type of a gcc2 3379/* We use char because int might match the return type of a gcc2
3350 builtin and then its argument prototype would still apply. */ 3380 builtin and then its argument prototype would still apply. */
3351char malloc_set_state(); 3381char malloc_set_state();
3352char (*f)();
3353 3382
3354int main() { 3383int main() {
3355 3384
@@ -3359,12 +3388,12 @@ int main() {
3359#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) 3388#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3360choke me 3389choke me
3361#else 3390#else
3362f = malloc_set_state; 3391malloc_set_state();
3363#endif 3392#endif
3364 3393
3365; return 0; } 3394; return 0; }
3366EOF 3395EOF
3367if { (eval echo configure:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3396if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3368 rm -rf conftest* 3397 rm -rf conftest*
3369 eval "ac_cv_func_malloc_set_state=yes" 3398 eval "ac_cv_func_malloc_set_state=yes"
3370else 3399else
@@ -3385,19 +3414,19 @@ doug_lea_malloc=no
3385fi 3414fi
3386 3415
3387echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3416echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3388echo "configure:3389: checking whether __after_morecore_hook exists" >&5 3417echo "configure:3418: checking whether __after_morecore_hook exists" >&5
3389if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 3418if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6 3419 echo $ac_n "(cached) $ac_c" 1>&6
3391else 3420else
3392 cat > conftest.$ac_ext <<EOF 3421 cat > conftest.$ac_ext <<EOF
3393#line 3394 "configure" 3422#line 3423 "configure"
3394#include "confdefs.h" 3423#include "confdefs.h"
3395extern void (* __after_morecore_hook)(); 3424extern void (* __after_morecore_hook)();
3396int main() { 3425int main() {
3397__after_morecore_hook = 0 3426__after_morecore_hook = 0
3398; return 0; } 3427; return 0; }
3399EOF 3428EOF
3400if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3429if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3401 rm -rf conftest* 3430 rm -rf conftest*
3402 emacs_cv_var___after_morecore_hook=yes 3431 emacs_cv_var___after_morecore_hook=yes
3403else 3432else
@@ -3447,7 +3476,7 @@ fi
3447LIBS="$libsrc_libs $LIBS" 3476LIBS="$libsrc_libs $LIBS"
3448 3477
3449echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3478echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3450echo "configure:3451: checking for dnet_ntoa in -ldnet" >&5 3479echo "configure:3480: checking for dnet_ntoa in -ldnet" >&5
3451ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3480ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3452if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3481if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6 3482 echo $ac_n "(cached) $ac_c" 1>&6
@@ -3455,7 +3484,7 @@ else
3455 ac_save_LIBS="$LIBS" 3484 ac_save_LIBS="$LIBS"
3456LIBS="-ldnet $LIBS" 3485LIBS="-ldnet $LIBS"
3457cat > conftest.$ac_ext <<EOF 3486cat > conftest.$ac_ext <<EOF
3458#line 3459 "configure" 3487#line 3488 "configure"
3459#include "confdefs.h" 3488#include "confdefs.h"
3460/* Override any gcc2 internal prototype to avoid an error. */ 3489/* Override any gcc2 internal prototype to avoid an error. */
3461/* We use char because int might match the return type of a gcc2 3490/* We use char because int might match the return type of a gcc2
@@ -3466,7 +3495,7 @@ int main() {
3466dnet_ntoa() 3495dnet_ntoa()
3467; return 0; } 3496; return 0; }
3468EOF 3497EOF
3469if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3498if { (eval echo configure:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3470 rm -rf conftest* 3499 rm -rf conftest*
3471 eval "ac_cv_lib_$ac_lib_var=yes" 3500 eval "ac_cv_lib_$ac_lib_var=yes"
3472else 3501else
@@ -3495,7 +3524,7 @@ fi
3495 3524
3496 3525
3497echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 3526echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3498echo "configure:3499: checking for main in -lXbsd" >&5 3527echo "configure:3528: checking for main in -lXbsd" >&5
3499ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 3528ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3500if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3529if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6 3530 echo $ac_n "(cached) $ac_c" 1>&6
@@ -3503,14 +3532,14 @@ else
3503 ac_save_LIBS="$LIBS" 3532 ac_save_LIBS="$LIBS"
3504LIBS="-lXbsd $LIBS" 3533LIBS="-lXbsd $LIBS"
3505cat > conftest.$ac_ext <<EOF 3534cat > conftest.$ac_ext <<EOF
3506#line 3507 "configure" 3535#line 3536 "configure"
3507#include "confdefs.h" 3536#include "confdefs.h"
3508 3537
3509int main() { 3538int main() {
3510main() 3539main()
3511; return 0; } 3540; return 0; }
3512EOF 3541EOF
3513if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3542if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3514 rm -rf conftest* 3543 rm -rf conftest*
3515 eval "ac_cv_lib_$ac_lib_var=yes" 3544 eval "ac_cv_lib_$ac_lib_var=yes"
3516else 3545else
@@ -3532,7 +3561,7 @@ fi
3532 3561
3533 3562
3534echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3563echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3535echo "configure:3536: checking for cma_open in -lpthreads" >&5 3564echo "configure:3565: checking for cma_open in -lpthreads" >&5
3536ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3565ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3537if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3566if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6 3567 echo $ac_n "(cached) $ac_c" 1>&6
@@ -3540,7 +3569,7 @@ else
3540 ac_save_LIBS="$LIBS" 3569 ac_save_LIBS="$LIBS"
3541LIBS="-lpthreads $LIBS" 3570LIBS="-lpthreads $LIBS"
3542cat > conftest.$ac_ext <<EOF 3571cat > conftest.$ac_ext <<EOF
3543#line 3544 "configure" 3572#line 3573 "configure"
3544#include "confdefs.h" 3573#include "confdefs.h"
3545/* Override any gcc2 internal prototype to avoid an error. */ 3574/* Override any gcc2 internal prototype to avoid an error. */
3546/* We use char because int might match the return type of a gcc2 3575/* We use char because int might match the return type of a gcc2
@@ -3551,7 +3580,7 @@ int main() {
3551cma_open() 3580cma_open()
3552; return 0; } 3581; return 0; }
3553EOF 3582EOF
3554if { (eval echo configure:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3583if { (eval echo configure:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3555 rm -rf conftest* 3584 rm -rf conftest*
3556 eval "ac_cv_lib_$ac_lib_var=yes" 3585 eval "ac_cv_lib_$ac_lib_var=yes"
3557else 3586else
@@ -3580,7 +3609,7 @@ fi
3580 3609
3581 3610
3582echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 3611echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3583echo "configure:3584: checking for XFree86 in /usr/X386" >&5 3612echo "configure:3613: checking for XFree86 in /usr/X386" >&5
3584if test -d /usr/X386/include; then 3613if test -d /usr/X386/include; then
3585 HAVE_XFREE386=yes 3614 HAVE_XFREE386=yes
3586 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 3615 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
@@ -3609,16 +3638,16 @@ if test "${HAVE_X11}" = "yes"; then
3609 3638
3610 if test "${opsys}" = "gnu-linux"; then 3639 if test "${opsys}" = "gnu-linux"; then
3611 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 3640 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3612echo "configure:3613: checking whether X on GNU/Linux needs -b to link" >&5 3641echo "configure:3642: checking whether X on GNU/Linux needs -b to link" >&5
3613 cat > conftest.$ac_ext <<EOF 3642 cat > conftest.$ac_ext <<EOF
3614#line 3615 "configure" 3643#line 3644 "configure"
3615#include "confdefs.h" 3644#include "confdefs.h"
3616 3645
3617int main() { 3646int main() {
3618XOpenDisplay ("foo"); 3647XOpenDisplay ("foo");
3619; return 0; } 3648; return 0; }
3620EOF 3649EOF
3621if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3650if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3622 rm -rf conftest* 3651 rm -rf conftest*
3623 xlinux_first_failure=no 3652 xlinux_first_failure=no
3624else 3653else
@@ -3638,14 +3667,14 @@ rm -f conftest*
3638 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 3667 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
3639 LIBS="$LIBS -b i486-linuxaout" 3668 LIBS="$LIBS -b i486-linuxaout"
3640 cat > conftest.$ac_ext <<EOF 3669 cat > conftest.$ac_ext <<EOF
3641#line 3642 "configure" 3670#line 3671 "configure"
3642#include "confdefs.h" 3671#include "confdefs.h"
3643 3672
3644int main() { 3673int main() {
3645XOpenDisplay ("foo"); 3674XOpenDisplay ("foo");
3646; return 0; } 3675; return 0; }
3647EOF 3676EOF
3648if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3677if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3649 rm -rf conftest* 3678 rm -rf conftest*
3650 xlinux_second_failure=no 3679 xlinux_second_failure=no
3651else 3680else
@@ -3675,12 +3704,12 @@ rm -f conftest*
3675XScreenNumberOfScreen XSetWMProtocols 3704XScreenNumberOfScreen XSetWMProtocols
3676do 3705do
3677echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3706echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3678echo "configure:3679: checking for $ac_func" >&5 3707echo "configure:3708: checking for $ac_func" >&5
3679if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3708if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6 3709 echo $ac_n "(cached) $ac_c" 1>&6
3681else 3710else
3682 cat > conftest.$ac_ext <<EOF 3711 cat > conftest.$ac_ext <<EOF
3683#line 3684 "configure" 3712#line 3713 "configure"
3684#include "confdefs.h" 3713#include "confdefs.h"
3685/* System header to define __stub macros and hopefully few prototypes, 3714/* System header to define __stub macros and hopefully few prototypes,
3686 which can conflict with char $ac_func(); below. */ 3715 which can conflict with char $ac_func(); below. */
@@ -3689,7 +3718,6 @@ else
3689/* We use char because int might match the return type of a gcc2 3718/* We use char because int might match the return type of a gcc2
3690 builtin and then its argument prototype would still apply. */ 3719 builtin and then its argument prototype would still apply. */
3691char $ac_func(); 3720char $ac_func();
3692char (*f)();
3693 3721
3694int main() { 3722int main() {
3695 3723
@@ -3699,12 +3727,12 @@ int main() {
3699#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3727#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3700choke me 3728choke me
3701#else 3729#else
3702f = $ac_func; 3730$ac_func();
3703#endif 3731#endif
3704 3732
3705; return 0; } 3733; return 0; }
3706EOF 3734EOF
3707if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3735if { (eval echo configure:3736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3708 rm -rf conftest* 3736 rm -rf conftest*
3709 eval "ac_cv_func_$ac_func=yes" 3737 eval "ac_cv_func_$ac_func=yes"
3710else 3738else
@@ -3732,12 +3760,12 @@ fi
3732 3760
3733if test "${window_system}" = "x11"; then 3761if test "${window_system}" = "x11"; then
3734 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 3762 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
3735echo "configure:3736: checking X11 version 6" >&5 3763echo "configure:3764: checking X11 version 6" >&5
3736 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 3764 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6 3765 echo $ac_n "(cached) $ac_c" 1>&6
3738else 3766else
3739 cat > conftest.$ac_ext <<EOF 3767 cat > conftest.$ac_ext <<EOF
3740#line 3741 "configure" 3768#line 3769 "configure"
3741#include "confdefs.h" 3769#include "confdefs.h"
3742#include <X11/Xlib.h> 3770#include <X11/Xlib.h>
3743int main() { 3771int main() {
@@ -3747,7 +3775,7 @@ fail;
3747 3775
3748; return 0; } 3776; return 0; }
3749EOF 3777EOF
3750if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3778if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3751 rm -rf conftest* 3779 rm -rf conftest*
3752 emacs_cv_x11_version_6=yes 3780 emacs_cv_x11_version_6=yes
3753else 3781else
@@ -3772,12 +3800,12 @@ fi
3772 3800
3773if test "${window_system}" = "x11"; then 3801if test "${window_system}" = "x11"; then
3774 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 3802 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
3775echo "configure:3776: checking X11 version 5" >&5 3803echo "configure:3804: checking X11 version 5" >&5
3776 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 3804 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6 3805 echo $ac_n "(cached) $ac_c" 1>&6
3778else 3806else
3779 cat > conftest.$ac_ext <<EOF 3807 cat > conftest.$ac_ext <<EOF
3780#line 3781 "configure" 3808#line 3809 "configure"
3781#include "confdefs.h" 3809#include "confdefs.h"
3782#include <X11/Xlib.h> 3810#include <X11/Xlib.h>
3783int main() { 3811int main() {
@@ -3787,7 +3815,7 @@ fail;
3787 3815
3788; return 0; } 3816; return 0; }
3789EOF 3817EOF
3790if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3818if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3791 rm -rf conftest* 3819 rm -rf conftest*
3792 emacs_cv_x11_version_5=yes 3820 emacs_cv_x11_version_5=yes
3793else 3821else
@@ -3815,12 +3843,12 @@ fi
3815if test x"${USE_X_TOOLKIT}" = xmaybe; then 3843if test x"${USE_X_TOOLKIT}" = xmaybe; then
3816 if test x"${HAVE_X11R5}" = xyes; then 3844 if test x"${HAVE_X11R5}" = xyes; then
3817 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 3845 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
3818echo "configure:3819: checking X11 version 5 with Xaw" >&5 3846echo "configure:3847: checking X11 version 5 with Xaw" >&5
3819 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 3847 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6 3848 echo $ac_n "(cached) $ac_c" 1>&6
3821else 3849else
3822 cat > conftest.$ac_ext <<EOF 3850 cat > conftest.$ac_ext <<EOF
3823#line 3824 "configure" 3851#line 3852 "configure"
3824#include "confdefs.h" 3852#include "confdefs.h"
3825 3853
3826#include <X11/Intrinsic.h> 3854#include <X11/Intrinsic.h>
@@ -3829,7 +3857,7 @@ int main() {
3829 3857
3830; return 0; } 3858; return 0; }
3831EOF 3859EOF
3832if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3860if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3833 rm -rf conftest* 3861 rm -rf conftest*
3834 emacs_cv_x11_version_5_with_xaw=yes 3862 emacs_cv_x11_version_5_with_xaw=yes
3835else 3863else
@@ -3857,12 +3885,12 @@ X_TOOLKIT_TYPE=$USE_X_TOOLKIT
3857 3885
3858if test "${USE_X_TOOLKIT}" != "none"; then 3886if test "${USE_X_TOOLKIT}" != "none"; then
3859 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 3887 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
3860echo "configure:3861: checking X11 toolkit version" >&5 3888echo "configure:3889: checking X11 toolkit version" >&5
3861 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 3889 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6 3890 echo $ac_n "(cached) $ac_c" 1>&6
3863else 3891else
3864 cat > conftest.$ac_ext <<EOF 3892 cat > conftest.$ac_ext <<EOF
3865#line 3866 "configure" 3893#line 3894 "configure"
3866#include "confdefs.h" 3894#include "confdefs.h"
3867#include <X11/Intrinsic.h> 3895#include <X11/Intrinsic.h>
3868int main() { 3896int main() {
@@ -3872,7 +3900,7 @@ fail;
3872 3900
3873; return 0; } 3901; return 0; }
3874EOF 3902EOF
3875if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3903if { (eval echo configure:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3876 rm -rf conftest* 3904 rm -rf conftest*
3877 emacs_cv_x11_toolkit_version_6=yes 3905 emacs_cv_x11_toolkit_version_6=yes
3878else 3906else
@@ -3902,7 +3930,7 @@ EOF
3902 LIBS="-lXt $LIBS" 3930 LIBS="-lXt $LIBS"
3903 fi 3931 fi
3904 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 3932 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
3905echo "configure:3906: checking for XmuConvertStandardSelection in -lXmu" >&5 3933echo "configure:3934: checking for XmuConvertStandardSelection in -lXmu" >&5
3906ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 3934ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
3907if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3935if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6 3936 echo $ac_n "(cached) $ac_c" 1>&6
@@ -3910,7 +3938,7 @@ else
3910 ac_save_LIBS="$LIBS" 3938 ac_save_LIBS="$LIBS"
3911LIBS="-lXmu $LIBS" 3939LIBS="-lXmu $LIBS"
3912cat > conftest.$ac_ext <<EOF 3940cat > conftest.$ac_ext <<EOF
3913#line 3914 "configure" 3941#line 3942 "configure"
3914#include "confdefs.h" 3942#include "confdefs.h"
3915/* Override any gcc2 internal prototype to avoid an error. */ 3943/* Override any gcc2 internal prototype to avoid an error. */
3916/* We use char because int might match the return type of a gcc2 3944/* We use char because int might match the return type of a gcc2
@@ -3921,7 +3949,7 @@ int main() {
3921XmuConvertStandardSelection() 3949XmuConvertStandardSelection()
3922; return 0; } 3950; return 0; }
3923EOF 3951EOF
3924if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3952if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3925 rm -rf conftest* 3953 rm -rf conftest*
3926 eval "ac_cv_lib_$ac_lib_var=yes" 3954 eval "ac_cv_lib_$ac_lib_var=yes"
3927else 3955else
@@ -3953,12 +3981,12 @@ fi
3953 3981
3954if test "${USE_X_TOOLKIT}" = "MOTIF"; then 3982if test "${USE_X_TOOLKIT}" = "MOTIF"; then
3955 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 3983 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
3956echo "configure:3957: checking for Motif version 2.1" >&5 3984echo "configure:3985: checking for Motif version 2.1" >&5
3957if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 3985if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6 3986 echo $ac_n "(cached) $ac_c" 1>&6
3959else 3987else
3960 cat > conftest.$ac_ext <<EOF 3988 cat > conftest.$ac_ext <<EOF
3961#line 3962 "configure" 3989#line 3990 "configure"
3962#include "confdefs.h" 3990#include "confdefs.h"
3963#include <Xm/Xm.h> 3991#include <Xm/Xm.h>
3964int main() { 3992int main() {
@@ -3969,7 +3997,7 @@ Motif version prior to 2.1.
3969#endif 3997#endif
3970; return 0; } 3998; return 0; }
3971EOF 3999EOF
3972if { (eval echo configure:3973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4000if { (eval echo configure:4001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3973 rm -rf conftest* 4001 rm -rf conftest*
3974 emacs_cv_motif_version_2_1=yes 4002 emacs_cv_motif_version_2_1=yes
3975else 4003else
@@ -3989,7 +4017,7 @@ echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
3989EOF 4017EOF
3990 4018
3991 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 4019 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
3992echo "configure:3993: checking for XpCreateContext in -lXp" >&5 4020echo "configure:4021: checking for XpCreateContext in -lXp" >&5
3993ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 4021ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
3994if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4022if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6 4023 echo $ac_n "(cached) $ac_c" 1>&6
@@ -3997,7 +4025,7 @@ else
3997 ac_save_LIBS="$LIBS" 4025 ac_save_LIBS="$LIBS"
3998LIBS="-lXp $LIBS" 4026LIBS="-lXp $LIBS"
3999cat > conftest.$ac_ext <<EOF 4027cat > conftest.$ac_ext <<EOF
4000#line 4001 "configure" 4028#line 4029 "configure"
4001#include "confdefs.h" 4029#include "confdefs.h"
4002/* Override any gcc2 internal prototype to avoid an error. */ 4030/* Override any gcc2 internal prototype to avoid an error. */
4003/* We use char because int might match the return type of a gcc2 4031/* We use char because int might match the return type of a gcc2
@@ -4008,7 +4036,7 @@ int main() {
4008XpCreateContext() 4036XpCreateContext()
4009; return 0; } 4037; return 0; }
4010EOF 4038EOF
4011if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4039if { (eval echo configure:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4012 rm -rf conftest* 4040 rm -rf conftest*
4013 eval "ac_cv_lib_$ac_lib_var=yes" 4041 eval "ac_cv_lib_$ac_lib_var=yes"
4014else 4042else
@@ -4046,17 +4074,17 @@ if test "${HAVE_X11}" = "yes"; then
4046 CFLAGS="${LD_SWITCH_X_SITE}" 4074 CFLAGS="${LD_SWITCH_X_SITE}"
4047 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 4075 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4048echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4076echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4049echo "configure:4050: checking for X11/Xaw3d/Scrollbar.h" >&5 4077echo "configure:4078: checking for X11/Xaw3d/Scrollbar.h" >&5
4050if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4078if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6 4079 echo $ac_n "(cached) $ac_c" 1>&6
4052else 4080else
4053 cat > conftest.$ac_ext <<EOF 4081 cat > conftest.$ac_ext <<EOF
4054#line 4055 "configure" 4082#line 4083 "configure"
4055#include "confdefs.h" 4083#include "confdefs.h"
4056#include <X11/Xaw3d/Scrollbar.h> 4084#include <X11/Xaw3d/Scrollbar.h>
4057EOF 4085EOF
4058ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4086ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4059{ (eval echo configure:4060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4087{ (eval echo configure:4088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4060ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4088ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4061if test -z "$ac_err"; then 4089if test -z "$ac_err"; then
4062 rm -rf conftest* 4090 rm -rf conftest*
@@ -4073,7 +4101,7 @@ fi
4073if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4101if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4074 echo "$ac_t""yes" 1>&6 4102 echo "$ac_t""yes" 1>&6
4075 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 4103 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4076echo "configure:4077: checking for XawScrollbarSetThumb in -lXaw3d" >&5 4104echo "configure:4105: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4077ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4105ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4078if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4106if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4079 echo $ac_n "(cached) $ac_c" 1>&6 4107 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4081,7 +4109,7 @@ else
4081 ac_save_LIBS="$LIBS" 4109 ac_save_LIBS="$LIBS"
4082LIBS="-lXaw3d -lX11 $LIBS" 4110LIBS="-lXaw3d -lX11 $LIBS"
4083cat > conftest.$ac_ext <<EOF 4111cat > conftest.$ac_ext <<EOF
4084#line 4085 "configure" 4112#line 4113 "configure"
4085#include "confdefs.h" 4113#include "confdefs.h"
4086/* Override any gcc2 internal prototype to avoid an error. */ 4114/* Override any gcc2 internal prototype to avoid an error. */
4087/* We use char because int might match the return type of a gcc2 4115/* We use char because int might match the return type of a gcc2
@@ -4092,7 +4120,7 @@ int main() {
4092XawScrollbarSetThumb() 4120XawScrollbarSetThumb()
4093; return 0; } 4121; return 0; }
4094EOF 4122EOF
4095if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4123if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4096 rm -rf conftest* 4124 rm -rf conftest*
4097 eval "ac_cv_lib_$ac_lib_var=yes" 4125 eval "ac_cv_lib_$ac_lib_var=yes"
4098else 4126else
@@ -4156,17 +4184,17 @@ if test "${HAVE_X11}" = "yes"; then
4156 CFLAGS="${LD_SWITCH_X_SITE}" 4184 CFLAGS="${LD_SWITCH_X_SITE}"
4157 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 4185 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4158echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 4186echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4159echo "configure:4160: checking for X11/xpm.h" >&5 4187echo "configure:4188: checking for X11/xpm.h" >&5
4160if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4188if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6 4189 echo $ac_n "(cached) $ac_c" 1>&6
4162else 4190else
4163 cat > conftest.$ac_ext <<EOF 4191 cat > conftest.$ac_ext <<EOF
4164#line 4165 "configure" 4192#line 4193 "configure"
4165#include "confdefs.h" 4193#include "confdefs.h"
4166#include <X11/xpm.h> 4194#include <X11/xpm.h>
4167EOF 4195EOF
4168ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4196ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4169{ (eval echo configure:4170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4197{ (eval echo configure:4198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4170ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4198ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4171if test -z "$ac_err"; then 4199if test -z "$ac_err"; then
4172 rm -rf conftest* 4200 rm -rf conftest*
@@ -4183,7 +4211,7 @@ fi
4183if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4211if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4184 echo "$ac_t""yes" 1>&6 4212 echo "$ac_t""yes" 1>&6
4185 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 4213 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4186echo "configure:4187: checking for XpmReadFileToPixmap in -lXpm" >&5 4214echo "configure:4215: checking for XpmReadFileToPixmap in -lXpm" >&5
4187ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 4215ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4188if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4216if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6 4217 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4191,7 +4219,7 @@ else
4191 ac_save_LIBS="$LIBS" 4219 ac_save_LIBS="$LIBS"
4192LIBS="-lXpm -lX11 $LIBS" 4220LIBS="-lXpm -lX11 $LIBS"
4193cat > conftest.$ac_ext <<EOF 4221cat > conftest.$ac_ext <<EOF
4194#line 4195 "configure" 4222#line 4223 "configure"
4195#include "confdefs.h" 4223#include "confdefs.h"
4196/* Override any gcc2 internal prototype to avoid an error. */ 4224/* Override any gcc2 internal prototype to avoid an error. */
4197/* We use char because int might match the return type of a gcc2 4225/* We use char because int might match the return type of a gcc2
@@ -4202,7 +4230,7 @@ int main() {
4202XpmReadFileToPixmap() 4230XpmReadFileToPixmap()
4203; return 0; } 4231; return 0; }
4204EOF 4232EOF
4205if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4233if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4206 rm -rf conftest* 4234 rm -rf conftest*
4207 eval "ac_cv_lib_$ac_lib_var=yes" 4235 eval "ac_cv_lib_$ac_lib_var=yes"
4208else 4236else
@@ -4244,7 +4272,7 @@ if test "${HAVE_X11}" = "yes"; then
4244 old_c_flags="${CFLAGS}" 4272 old_c_flags="${CFLAGS}"
4245 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4273 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4246 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 4274 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4247echo "configure:4248: checking for jpeg_destroy_compress in -ljpeg" >&5 4275echo "configure:4276: checking for jpeg_destroy_compress in -ljpeg" >&5
4248ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 4276ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4249if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4277if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6 4278 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4252,7 +4280,7 @@ else
4252 ac_save_LIBS="$LIBS" 4280 ac_save_LIBS="$LIBS"
4253LIBS="-ljpeg -lX11 $LIBS" 4281LIBS="-ljpeg -lX11 $LIBS"
4254cat > conftest.$ac_ext <<EOF 4282cat > conftest.$ac_ext <<EOF
4255#line 4256 "configure" 4283#line 4284 "configure"
4256#include "confdefs.h" 4284#include "confdefs.h"
4257/* Override any gcc2 internal prototype to avoid an error. */ 4285/* Override any gcc2 internal prototype to avoid an error. */
4258/* We use char because int might match the return type of a gcc2 4286/* We use char because int might match the return type of a gcc2
@@ -4263,7 +4291,7 @@ int main() {
4263jpeg_destroy_compress() 4291jpeg_destroy_compress()
4264; return 0; } 4292; return 0; }
4265EOF 4293EOF
4266if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4294if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4267 rm -rf conftest* 4295 rm -rf conftest*
4268 eval "ac_cv_lib_$ac_lib_var=yes" 4296 eval "ac_cv_lib_$ac_lib_var=yes"
4269else 4297else
@@ -4302,17 +4330,17 @@ if test "${HAVE_X11}" = "yes"; then
4302 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4330 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4303 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 4331 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4304echo $ac_n "checking for png.h""... $ac_c" 1>&6 4332echo $ac_n "checking for png.h""... $ac_c" 1>&6
4305echo "configure:4306: checking for png.h" >&5 4333echo "configure:4334: checking for png.h" >&5
4306if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4334if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6 4335 echo $ac_n "(cached) $ac_c" 1>&6
4308else 4336else
4309 cat > conftest.$ac_ext <<EOF 4337 cat > conftest.$ac_ext <<EOF
4310#line 4311 "configure" 4338#line 4339 "configure"
4311#include "confdefs.h" 4339#include "confdefs.h"
4312#include <png.h> 4340#include <png.h>
4313EOF 4341EOF
4314ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4342ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4315{ (eval echo configure:4316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4343{ (eval echo configure:4344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4316ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4344ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4317if test -z "$ac_err"; then 4345if test -z "$ac_err"; then
4318 rm -rf conftest* 4346 rm -rf conftest*
@@ -4329,7 +4357,7 @@ fi
4329if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4357if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4330 echo "$ac_t""yes" 1>&6 4358 echo "$ac_t""yes" 1>&6
4331 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 4359 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4332echo "configure:4333: checking for png_set_expand in -lpng" >&5 4360echo "configure:4361: checking for png_set_expand in -lpng" >&5
4333ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` 4361ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4334if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4362if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6 4363 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4337,7 +4365,7 @@ else
4337 ac_save_LIBS="$LIBS" 4365 ac_save_LIBS="$LIBS"
4338LIBS="-lpng -lX11 -lz -lm $LIBS" 4366LIBS="-lpng -lX11 -lz -lm $LIBS"
4339cat > conftest.$ac_ext <<EOF 4367cat > conftest.$ac_ext <<EOF
4340#line 4341 "configure" 4368#line 4369 "configure"
4341#include "confdefs.h" 4369#include "confdefs.h"
4342/* Override any gcc2 internal prototype to avoid an error. */ 4370/* Override any gcc2 internal prototype to avoid an error. */
4343/* We use char because int might match the return type of a gcc2 4371/* We use char because int might match the return type of a gcc2
@@ -4348,7 +4376,7 @@ int main() {
4348png_set_expand() 4376png_set_expand()
4349; return 0; } 4377; return 0; }
4350EOF 4378EOF
4351if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4379if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4352 rm -rf conftest* 4380 rm -rf conftest*
4353 eval "ac_cv_lib_$ac_lib_var=yes" 4381 eval "ac_cv_lib_$ac_lib_var=yes"
4354else 4382else
@@ -4391,17 +4419,17 @@ if test "${HAVE_X11}" = "yes"; then
4391 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4419 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4392 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 4420 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4393echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 4421echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4394echo "configure:4395: checking for tiffio.h" >&5 4422echo "configure:4423: checking for tiffio.h" >&5
4395if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4423if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6 4424 echo $ac_n "(cached) $ac_c" 1>&6
4397else 4425else
4398 cat > conftest.$ac_ext <<EOF 4426 cat > conftest.$ac_ext <<EOF
4399#line 4400 "configure" 4427#line 4428 "configure"
4400#include "confdefs.h" 4428#include "confdefs.h"
4401#include <tiffio.h> 4429#include <tiffio.h>
4402EOF 4430EOF
4403ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4431ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4404{ (eval echo configure:4405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4432{ (eval echo configure:4433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4405ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4433ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4406if test -z "$ac_err"; then 4434if test -z "$ac_err"; then
4407 rm -rf conftest* 4435 rm -rf conftest*
@@ -4418,7 +4446,7 @@ fi
4418if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4446if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4419 echo "$ac_t""yes" 1>&6 4447 echo "$ac_t""yes" 1>&6
4420 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 4448 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4421echo "configure:4422: checking for TIFFGetVersion in -ltiff" >&5 4449echo "configure:4450: checking for TIFFGetVersion in -ltiff" >&5
4422ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 4450ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4423if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4451if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6 4452 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4426,7 +4454,7 @@ else
4426 ac_save_LIBS="$LIBS" 4454 ac_save_LIBS="$LIBS"
4427LIBS="-ltiff -lX11 -lm $LIBS" 4455LIBS="-ltiff -lX11 -lm $LIBS"
4428cat > conftest.$ac_ext <<EOF 4456cat > conftest.$ac_ext <<EOF
4429#line 4430 "configure" 4457#line 4458 "configure"
4430#include "confdefs.h" 4458#include "confdefs.h"
4431/* Override any gcc2 internal prototype to avoid an error. */ 4459/* Override any gcc2 internal prototype to avoid an error. */
4432/* We use char because int might match the return type of a gcc2 4460/* We use char because int might match the return type of a gcc2
@@ -4437,7 +4465,7 @@ int main() {
4437TIFFGetVersion() 4465TIFFGetVersion()
4438; return 0; } 4466; return 0; }
4439EOF 4467EOF
4440if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4468if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4441 rm -rf conftest* 4469 rm -rf conftest*
4442 eval "ac_cv_lib_$ac_lib_var=yes" 4470 eval "ac_cv_lib_$ac_lib_var=yes"
4443else 4471else
@@ -4480,17 +4508,17 @@ if test "${HAVE_X11}" = "yes"; then
4480 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4508 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4481 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 4509 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4482echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 4510echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4483echo "configure:4484: checking for gif_lib.h" >&5 4511echo "configure:4512: checking for gif_lib.h" >&5
4484if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4512if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6 4513 echo $ac_n "(cached) $ac_c" 1>&6
4486else 4514else
4487 cat > conftest.$ac_ext <<EOF 4515 cat > conftest.$ac_ext <<EOF
4488#line 4489 "configure" 4516#line 4517 "configure"
4489#include "confdefs.h" 4517#include "confdefs.h"
4490#include <gif_lib.h> 4518#include <gif_lib.h>
4491EOF 4519EOF
4492ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4520ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4493{ (eval echo configure:4494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4521{ (eval echo configure:4522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4494ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4522ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4495if test -z "$ac_err"; then 4523if test -z "$ac_err"; then
4496 rm -rf conftest* 4524 rm -rf conftest*
@@ -4507,7 +4535,7 @@ fi
4507if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4535if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4508 echo "$ac_t""yes" 1>&6 4536 echo "$ac_t""yes" 1>&6
4509 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6 4537 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4510echo "configure:4511: checking for DGifOpenFileName in -lungif" >&5 4538echo "configure:4539: checking for DGifOpenFileName in -lungif" >&5
4511ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'` 4539ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4540if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6 4541 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4515,7 +4543,7 @@ else
4515 ac_save_LIBS="$LIBS" 4543 ac_save_LIBS="$LIBS"
4516LIBS="-lungif -lX11 $LIBS" 4544LIBS="-lungif -lX11 $LIBS"
4517cat > conftest.$ac_ext <<EOF 4545cat > conftest.$ac_ext <<EOF
4518#line 4519 "configure" 4546#line 4547 "configure"
4519#include "confdefs.h" 4547#include "confdefs.h"
4520/* Override any gcc2 internal prototype to avoid an error. */ 4548/* Override any gcc2 internal prototype to avoid an error. */
4521/* We use char because int might match the return type of a gcc2 4549/* We use char because int might match the return type of a gcc2
@@ -4526,7 +4554,7 @@ int main() {
4526DGifOpenFileName() 4554DGifOpenFileName()
4527; return 0; } 4555; return 0; }
4528EOF 4556EOF
4529if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4557if { (eval echo configure:4558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4530 rm -rf conftest* 4558 rm -rf conftest*
4531 eval "ac_cv_lib_$ac_lib_var=yes" 4559 eval "ac_cv_lib_$ac_lib_var=yes"
4532else 4560else
@@ -4563,19 +4591,19 @@ fi
4563 4591
4564# If netdb.h doesn't declare h_errno, we must declare it by hand. 4592# If netdb.h doesn't declare h_errno, we must declare it by hand.
4565echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 4593echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4566echo "configure:4567: checking whether netdb declares h_errno" >&5 4594echo "configure:4595: checking whether netdb declares h_errno" >&5
4567if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 4595if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6 4596 echo $ac_n "(cached) $ac_c" 1>&6
4569else 4597else
4570 cat > conftest.$ac_ext <<EOF 4598 cat > conftest.$ac_ext <<EOF
4571#line 4572 "configure" 4599#line 4600 "configure"
4572#include "confdefs.h" 4600#include "confdefs.h"
4573#include <netdb.h> 4601#include <netdb.h>
4574int main() { 4602int main() {
4575return h_errno; 4603return h_errno;
4576; return 0; } 4604; return 0; }
4577EOF 4605EOF
4578if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4606if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4579 rm -rf conftest* 4607 rm -rf conftest*
4580 emacs_cv_netdb_declares_h_errno=yes 4608 emacs_cv_netdb_declares_h_errno=yes
4581else 4609else
@@ -4598,19 +4626,19 @@ fi
4598# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4626# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4599# for constant arguments. Useless! 4627# for constant arguments. Useless!
4600echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 4628echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4601echo "configure:4602: checking for working alloca.h" >&5 4629echo "configure:4630: checking for working alloca.h" >&5
4602if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 4630if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6 4631 echo $ac_n "(cached) $ac_c" 1>&6
4604else 4632else
4605 cat > conftest.$ac_ext <<EOF 4633 cat > conftest.$ac_ext <<EOF
4606#line 4607 "configure" 4634#line 4635 "configure"
4607#include "confdefs.h" 4635#include "confdefs.h"
4608#include <alloca.h> 4636#include <alloca.h>
4609int main() { 4637int main() {
4610char *p = alloca(2 * sizeof(int)); 4638char *p = alloca(2 * sizeof(int));
4611; return 0; } 4639; return 0; }
4612EOF 4640EOF
4613if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4641if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4614 rm -rf conftest* 4642 rm -rf conftest*
4615 ac_cv_header_alloca_h=yes 4643 ac_cv_header_alloca_h=yes
4616else 4644else
@@ -4631,12 +4659,12 @@ EOF
4631fi 4659fi
4632 4660
4633echo $ac_n "checking for alloca""... $ac_c" 1>&6 4661echo $ac_n "checking for alloca""... $ac_c" 1>&6
4634echo "configure:4635: checking for alloca" >&5 4662echo "configure:4663: checking for alloca" >&5
4635if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 4663if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6 4664 echo $ac_n "(cached) $ac_c" 1>&6
4637else 4665else
4638 cat > conftest.$ac_ext <<EOF 4666 cat > conftest.$ac_ext <<EOF
4639#line 4640 "configure" 4667#line 4668 "configure"
4640#include "confdefs.h" 4668#include "confdefs.h"
4641 4669
4642#ifdef __GNUC__ 4670#ifdef __GNUC__
@@ -4664,7 +4692,7 @@ int main() {
4664char *p = (char *) alloca(1); 4692char *p = (char *) alloca(1);
4665; return 0; } 4693; return 0; }
4666EOF 4694EOF
4667if { (eval echo configure:4668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4695if { (eval echo configure:4696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4668 rm -rf conftest* 4696 rm -rf conftest*
4669 ac_cv_func_alloca_works=yes 4697 ac_cv_func_alloca_works=yes
4670else 4698else
@@ -4696,12 +4724,12 @@ EOF
4696 4724
4697 4725
4698echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 4726echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4699echo "configure:4700: checking whether alloca needs Cray hooks" >&5 4727echo "configure:4728: checking whether alloca needs Cray hooks" >&5
4700if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 4728if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6 4729 echo $ac_n "(cached) $ac_c" 1>&6
4702else 4730else
4703 cat > conftest.$ac_ext <<EOF 4731 cat > conftest.$ac_ext <<EOF
4704#line 4705 "configure" 4732#line 4733 "configure"
4705#include "confdefs.h" 4733#include "confdefs.h"
4706#if defined(CRAY) && ! defined(CRAY2) 4734#if defined(CRAY) && ! defined(CRAY2)
4707webecray 4735webecray
@@ -4726,12 +4754,12 @@ echo "$ac_t""$ac_cv_os_cray" 1>&6
4726if test $ac_cv_os_cray = yes; then 4754if test $ac_cv_os_cray = yes; then
4727for ac_func in _getb67 GETB67 getb67; do 4755for ac_func in _getb67 GETB67 getb67; do
4728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4729echo "configure:4730: checking for $ac_func" >&5 4757echo "configure:4758: checking for $ac_func" >&5
4730if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4758if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6 4759 echo $ac_n "(cached) $ac_c" 1>&6
4732else 4760else
4733 cat > conftest.$ac_ext <<EOF 4761 cat > conftest.$ac_ext <<EOF
4734#line 4735 "configure" 4762#line 4763 "configure"
4735#include "confdefs.h" 4763#include "confdefs.h"
4736/* System header to define __stub macros and hopefully few prototypes, 4764/* System header to define __stub macros and hopefully few prototypes,
4737 which can conflict with char $ac_func(); below. */ 4765 which can conflict with char $ac_func(); below. */
@@ -4740,7 +4768,6 @@ else
4740/* We use char because int might match the return type of a gcc2 4768/* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */ 4769 builtin and then its argument prototype would still apply. */
4742char $ac_func(); 4770char $ac_func();
4743char (*f)();
4744 4771
4745int main() { 4772int main() {
4746 4773
@@ -4750,12 +4777,12 @@ int main() {
4750#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4777#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4751choke me 4778choke me
4752#else 4779#else
4753f = $ac_func; 4780$ac_func();
4754#endif 4781#endif
4755 4782
4756; return 0; } 4783; return 0; }
4757EOF 4784EOF
4758if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4785if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4759 rm -rf conftest* 4786 rm -rf conftest*
4760 eval "ac_cv_func_$ac_func=yes" 4787 eval "ac_cv_func_$ac_func=yes"
4761else 4788else
@@ -4782,7 +4809,7 @@ done
4782fi 4809fi
4783 4810
4784echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 4811echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4785echo "configure:4786: checking stack direction for C alloca" >&5 4812echo "configure:4813: checking stack direction for C alloca" >&5
4786if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 4813if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6 4814 echo $ac_n "(cached) $ac_c" 1>&6
4788else 4815else
@@ -4790,7 +4817,7 @@ else
4790 ac_cv_c_stack_direction=0 4817 ac_cv_c_stack_direction=0
4791else 4818else
4792 cat > conftest.$ac_ext <<EOF 4819 cat > conftest.$ac_ext <<EOF
4793#line 4794 "configure" 4820#line 4821 "configure"
4794#include "confdefs.h" 4821#include "confdefs.h"
4795find_stack_direction () 4822find_stack_direction ()
4796{ 4823{
@@ -4809,7 +4836,7 @@ main ()
4809 exit (find_stack_direction() < 0); 4836 exit (find_stack_direction() < 0);
4810} 4837}
4811EOF 4838EOF
4812if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4839if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4813then 4840then
4814 ac_cv_c_stack_direction=1 4841 ac_cv_c_stack_direction=1
4815else 4842else
@@ -4834,7 +4861,7 @@ fi
4834# fmod, logb, and frexp are found in -lm on most systems. 4861# fmod, logb, and frexp are found in -lm on most systems.
4835# On HPUX 9.01, -lm does not contain logb, so check for sqrt. 4862# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
4836echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 4863echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4837echo "configure:4838: checking for sqrt in -lm" >&5 4864echo "configure:4865: checking for sqrt in -lm" >&5
4838ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 4865ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4839if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4866if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4840 echo $ac_n "(cached) $ac_c" 1>&6 4867 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4842,7 +4869,7 @@ else
4842 ac_save_LIBS="$LIBS" 4869 ac_save_LIBS="$LIBS"
4843LIBS="-lm $LIBS" 4870LIBS="-lm $LIBS"
4844cat > conftest.$ac_ext <<EOF 4871cat > conftest.$ac_ext <<EOF
4845#line 4846 "configure" 4872#line 4873 "configure"
4846#include "confdefs.h" 4873#include "confdefs.h"
4847/* Override any gcc2 internal prototype to avoid an error. */ 4874/* Override any gcc2 internal prototype to avoid an error. */
4848/* We use char because int might match the return type of a gcc2 4875/* We use char because int might match the return type of a gcc2
@@ -4853,7 +4880,7 @@ int main() {
4853sqrt() 4880sqrt()
4854; return 0; } 4881; return 0; }
4855EOF 4882EOF
4856if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4883if { (eval echo configure:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4857 rm -rf conftest* 4884 rm -rf conftest*
4858 eval "ac_cv_lib_$ac_lib_var=yes" 4885 eval "ac_cv_lib_$ac_lib_var=yes"
4859else 4886else
@@ -4883,7 +4910,7 @@ fi
4883 4910
4884# Check for mail-locking functions in a "mail" library 4911# Check for mail-locking functions in a "mail" library
4885echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 4912echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
4886echo "configure:4887: checking for maillock in -lmail" >&5 4913echo "configure:4914: checking for maillock in -lmail" >&5
4887ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 4914ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
4888if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4915if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6 4916 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4891,7 +4918,7 @@ else
4891 ac_save_LIBS="$LIBS" 4918 ac_save_LIBS="$LIBS"
4892LIBS="-lmail $LIBS" 4919LIBS="-lmail $LIBS"
4893cat > conftest.$ac_ext <<EOF 4920cat > conftest.$ac_ext <<EOF
4894#line 4895 "configure" 4921#line 4922 "configure"
4895#include "confdefs.h" 4922#include "confdefs.h"
4896/* Override any gcc2 internal prototype to avoid an error. */ 4923/* Override any gcc2 internal prototype to avoid an error. */
4897/* We use char because int might match the return type of a gcc2 4924/* We use char because int might match the return type of a gcc2
@@ -4902,7 +4929,7 @@ int main() {
4902maillock() 4929maillock()
4903; return 0; } 4930; return 0; }
4904EOF 4931EOF
4905if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4932if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4906 rm -rf conftest* 4933 rm -rf conftest*
4907 eval "ac_cv_lib_$ac_lib_var=yes" 4934 eval "ac_cv_lib_$ac_lib_var=yes"
4908else 4935else
@@ -4930,7 +4957,7 @@ else
4930fi 4957fi
4931 4958
4932echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 4959echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
4933echo "configure:4934: checking for maillock in -llockfile" >&5 4960echo "configure:4961: checking for maillock in -llockfile" >&5
4934ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 4961ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
4935if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6 4963 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4938,7 +4965,7 @@ else
4938 ac_save_LIBS="$LIBS" 4965 ac_save_LIBS="$LIBS"
4939LIBS="-llockfile $LIBS" 4966LIBS="-llockfile $LIBS"
4940cat > conftest.$ac_ext <<EOF 4967cat > conftest.$ac_ext <<EOF
4941#line 4942 "configure" 4968#line 4969 "configure"
4942#include "confdefs.h" 4969#include "confdefs.h"
4943/* Override any gcc2 internal prototype to avoid an error. */ 4970/* Override any gcc2 internal prototype to avoid an error. */
4944/* We use char because int might match the return type of a gcc2 4971/* We use char because int might match the return type of a gcc2
@@ -4949,7 +4976,7 @@ int main() {
4949maillock() 4976maillock()
4950; return 0; } 4977; return 0; }
4951EOF 4978EOF
4952if { (eval echo configure:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4979if { (eval echo configure:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4953 rm -rf conftest* 4980 rm -rf conftest*
4954 eval "ac_cv_lib_$ac_lib_var=yes" 4981 eval "ac_cv_lib_$ac_lib_var=yes"
4955else 4982else
@@ -4983,7 +5010,7 @@ if test "$ac_cv_lib_lockfile_maillock" = no; then
4983 # Extract the first word of "liblockfile.so", so it can be a program name with args. 5010 # Extract the first word of "liblockfile.so", so it can be a program name with args.
4984set dummy liblockfile.so; ac_word=$2 5011set dummy liblockfile.so; ac_word=$2
4985echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5012echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4986echo "configure:4987: checking for $ac_word" >&5 5013echo "configure:5014: checking for $ac_word" >&5
4987if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 5014if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6 5015 echo $ac_n "(cached) $ac_c" 1>&6
4989else 5016else
@@ -5024,12 +5051,12 @@ fi
5024for ac_func in touchlock 5051for ac_func in touchlock
5025do 5052do
5026echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5053echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5027echo "configure:5028: checking for $ac_func" >&5 5054echo "configure:5055: checking for $ac_func" >&5
5028if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5055if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5029 echo $ac_n "(cached) $ac_c" 1>&6 5056 echo $ac_n "(cached) $ac_c" 1>&6
5030else 5057else
5031 cat > conftest.$ac_ext <<EOF 5058 cat > conftest.$ac_ext <<EOF
5032#line 5033 "configure" 5059#line 5060 "configure"
5033#include "confdefs.h" 5060#include "confdefs.h"
5034/* System header to define __stub macros and hopefully few prototypes, 5061/* System header to define __stub macros and hopefully few prototypes,
5035 which can conflict with char $ac_func(); below. */ 5062 which can conflict with char $ac_func(); below. */
@@ -5038,7 +5065,6 @@ else
5038/* We use char because int might match the return type of a gcc2 5065/* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */ 5066 builtin and then its argument prototype would still apply. */
5040char $ac_func(); 5067char $ac_func();
5041char (*f)();
5042 5068
5043int main() { 5069int main() {
5044 5070
@@ -5048,12 +5074,12 @@ int main() {
5048#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5049choke me 5075choke me
5050#else 5076#else
5051f = $ac_func; 5077$ac_func();
5052#endif 5078#endif
5053 5079
5054; return 0; } 5080; return 0; }
5055EOF 5081EOF
5056if { (eval echo configure:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5082if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5057 rm -rf conftest* 5083 rm -rf conftest*
5058 eval "ac_cv_func_$ac_func=yes" 5084 eval "ac_cv_func_$ac_func=yes"
5059else 5085else
@@ -5081,17 +5107,17 @@ for ac_hdr in maillock.h
5081do 5107do
5082ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5108ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5083echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5109echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5084echo "configure:5085: checking for $ac_hdr" >&5 5110echo "configure:5111: checking for $ac_hdr" >&5
5085if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5111if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6 5112 echo $ac_n "(cached) $ac_c" 1>&6
5087else 5113else
5088 cat > conftest.$ac_ext <<EOF 5114 cat > conftest.$ac_ext <<EOF
5089#line 5090 "configure" 5115#line 5116 "configure"
5090#include "confdefs.h" 5116#include "confdefs.h"
5091#include <$ac_hdr> 5117#include <$ac_hdr>
5092EOF 5118EOF
5093ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5119ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5094{ (eval echo configure:5095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5120{ (eval echo configure:5121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5095ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5121ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5096if test -z "$ac_err"; then 5122if test -z "$ac_err"; then
5097 rm -rf conftest* 5123 rm -rf conftest*
@@ -5126,12 +5152,12 @@ utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5126__fpending ftello getloadavg mblen mbrlen strsignal 5152__fpending ftello getloadavg mblen mbrlen strsignal
5127do 5153do
5128echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5154echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5129echo "configure:5130: checking for $ac_func" >&5 5155echo "configure:5156: checking for $ac_func" >&5
5130if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5156if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6 5157 echo $ac_n "(cached) $ac_c" 1>&6
5132else 5158else
5133 cat > conftest.$ac_ext <<EOF 5159 cat > conftest.$ac_ext <<EOF
5134#line 5135 "configure" 5160#line 5161 "configure"
5135#include "confdefs.h" 5161#include "confdefs.h"
5136/* System header to define __stub macros and hopefully few prototypes, 5162/* System header to define __stub macros and hopefully few prototypes,
5137 which can conflict with char $ac_func(); below. */ 5163 which can conflict with char $ac_func(); below. */
@@ -5140,7 +5166,6 @@ else
5140/* We use char because int might match the return type of a gcc2 5166/* We use char because int might match the return type of a gcc2
5141 builtin and then its argument prototype would still apply. */ 5167 builtin and then its argument prototype would still apply. */
5142char $ac_func(); 5168char $ac_func();
5143char (*f)();
5144 5169
5145int main() { 5170int main() {
5146 5171
@@ -5150,12 +5175,12 @@ int main() {
5150#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5175#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5151choke me 5176choke me
5152#else 5177#else
5153f = $ac_func; 5178$ac_func();
5154#endif 5179#endif
5155 5180
5156; return 0; } 5181; return 0; }
5157EOF 5182EOF
5158if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5183if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5159 rm -rf conftest* 5184 rm -rf conftest*
5160 eval "ac_cv_func_$ac_func=yes" 5185 eval "ac_cv_func_$ac_func=yes"
5161else 5186else
@@ -5185,7 +5210,7 @@ done
5185# It's better to believe a function is not available 5210# It's better to believe a function is not available
5186# than to expect to find it in ncurses. 5211# than to expect to find it in ncurses.
5187echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 5212echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5188echo "configure:5189: checking for tparm in -lncurses" >&5 5213echo "configure:5214: checking for tparm in -lncurses" >&5
5189ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 5214ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5190if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5215if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6 5216 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5193,7 +5218,7 @@ else
5193 ac_save_LIBS="$LIBS" 5218 ac_save_LIBS="$LIBS"
5194LIBS="-lncurses $LIBS" 5219LIBS="-lncurses $LIBS"
5195cat > conftest.$ac_ext <<EOF 5220cat > conftest.$ac_ext <<EOF
5196#line 5197 "configure" 5221#line 5222 "configure"
5197#include "confdefs.h" 5222#include "confdefs.h"
5198/* Override any gcc2 internal prototype to avoid an error. */ 5223/* Override any gcc2 internal prototype to avoid an error. */
5199/* We use char because int might match the return type of a gcc2 5224/* We use char because int might match the return type of a gcc2
@@ -5204,7 +5229,7 @@ int main() {
5204tparm() 5229tparm()
5205; return 0; } 5230; return 0; }
5206EOF 5231EOF
5207if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5232if { (eval echo configure:5233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5208 rm -rf conftest* 5233 rm -rf conftest*
5209 eval "ac_cv_lib_$ac_lib_var=yes" 5234 eval "ac_cv_lib_$ac_lib_var=yes"
5210else 5235else
@@ -5232,10 +5257,716 @@ else
5232fi 5257fi
5233 5258
5234 5259
5260# These tell us which Kerberos-related libraries to use.
5261if test "${with_kerberos+set}" = set; then
5262 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
5263echo "configure:5264: checking for com_err in -lcom_err" >&5
5264ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
5265if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5266 echo $ac_n "(cached) $ac_c" 1>&6
5267else
5268 ac_save_LIBS="$LIBS"
5269LIBS="-lcom_err $LIBS"
5270cat > conftest.$ac_ext <<EOF
5271#line 5272 "configure"
5272#include "confdefs.h"
5273/* Override any gcc2 internal prototype to avoid an error. */
5274/* We use char because int might match the return type of a gcc2
5275 builtin and then its argument prototype would still apply. */
5276char com_err();
5277
5278int main() {
5279com_err()
5280; return 0; }
5281EOF
5282if { (eval echo configure:5283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5283 rm -rf conftest*
5284 eval "ac_cv_lib_$ac_lib_var=yes"
5285else
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5288 rm -rf conftest*
5289 eval "ac_cv_lib_$ac_lib_var=no"
5290fi
5291rm -f conftest*
5292LIBS="$ac_save_LIBS"
5293
5294fi
5295if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5296 echo "$ac_t""yes" 1>&6
5297 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5298 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5299 cat >> confdefs.h <<EOF
5300#define $ac_tr_lib 1
5301EOF
5302
5303 LIBS="-lcom_err $LIBS"
5304
5305else
5306 echo "$ac_t""no" 1>&6
5307fi
5308
5309 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
5310echo "configure:5311: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
5311ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5312if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5314else
5315 ac_save_LIBS="$LIBS"
5316LIBS="-lk5crypto $LIBS"
5317cat > conftest.$ac_ext <<EOF
5318#line 5319 "configure"
5319#include "confdefs.h"
5320/* Override any gcc2 internal prototype to avoid an error. */
5321/* We use char because int might match the return type of a gcc2
5322 builtin and then its argument prototype would still apply. */
5323char mit_des_cbc_encrypt();
5324
5325int main() {
5326mit_des_cbc_encrypt()
5327; return 0; }
5328EOF
5329if { (eval echo configure:5330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5330 rm -rf conftest*
5331 eval "ac_cv_lib_$ac_lib_var=yes"
5332else
5333 echo "configure: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5335 rm -rf conftest*
5336 eval "ac_cv_lib_$ac_lib_var=no"
5337fi
5338rm -f conftest*
5339LIBS="$ac_save_LIBS"
5340
5341fi
5342if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5343 echo "$ac_t""yes" 1>&6
5344 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5345 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5346 cat >> confdefs.h <<EOF
5347#define $ac_tr_lib 1
5348EOF
5349
5350 LIBS="-lk5crypto $LIBS"
5351
5352else
5353 echo "$ac_t""no" 1>&6
5354fi
5355
5356 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
5357echo "configure:5358: checking for mit_des_cbc_encrypt in -lcrypto" >&5
5358ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5359if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5360 echo $ac_n "(cached) $ac_c" 1>&6
5361else
5362 ac_save_LIBS="$LIBS"
5363LIBS="-lcrypto $LIBS"
5364cat > conftest.$ac_ext <<EOF
5365#line 5366 "configure"
5366#include "confdefs.h"
5367/* Override any gcc2 internal prototype to avoid an error. */
5368/* We use char because int might match the return type of a gcc2
5369 builtin and then its argument prototype would still apply. */
5370char mit_des_cbc_encrypt();
5371
5372int main() {
5373mit_des_cbc_encrypt()
5374; return 0; }
5375EOF
5376if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5377 rm -rf conftest*
5378 eval "ac_cv_lib_$ac_lib_var=yes"
5379else
5380 echo "configure: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5382 rm -rf conftest*
5383 eval "ac_cv_lib_$ac_lib_var=no"
5384fi
5385rm -f conftest*
5386LIBS="$ac_save_LIBS"
5387
5388fi
5389if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5390 echo "$ac_t""yes" 1>&6
5391 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5393 cat >> confdefs.h <<EOF
5394#define $ac_tr_lib 1
5395EOF
5396
5397 LIBS="-lcrypto $LIBS"
5398
5399else
5400 echo "$ac_t""no" 1>&6
5401fi
5402
5403 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
5404echo "configure:5405: checking for krb5_init_context in -lkrb5" >&5
5405ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
5406if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5408else
5409 ac_save_LIBS="$LIBS"
5410LIBS="-lkrb5 $LIBS"
5411cat > conftest.$ac_ext <<EOF
5412#line 5413 "configure"
5413#include "confdefs.h"
5414/* Override any gcc2 internal prototype to avoid an error. */
5415/* We use char because int might match the return type of a gcc2
5416 builtin and then its argument prototype would still apply. */
5417char krb5_init_context();
5418
5419int main() {
5420krb5_init_context()
5421; return 0; }
5422EOF
5423if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5424 rm -rf conftest*
5425 eval "ac_cv_lib_$ac_lib_var=yes"
5426else
5427 echo "configure: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5429 rm -rf conftest*
5430 eval "ac_cv_lib_$ac_lib_var=no"
5431fi
5432rm -f conftest*
5433LIBS="$ac_save_LIBS"
5434
5435fi
5436if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5437 echo "$ac_t""yes" 1>&6
5438 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5439 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5440 cat >> confdefs.h <<EOF
5441#define $ac_tr_lib 1
5442EOF
5443
5444 LIBS="-lkrb5 $LIBS"
5445
5446else
5447 echo "$ac_t""no" 1>&6
5448fi
5449
5450 if test "${with_kerberos5+set}" != set; then
5451 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
5452echo "configure:5453: checking for des_cbc_encrypt in -ldes425" >&5
5453ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5454if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5455 echo $ac_n "(cached) $ac_c" 1>&6
5456else
5457 ac_save_LIBS="$LIBS"
5458LIBS="-ldes425 $LIBS"
5459cat > conftest.$ac_ext <<EOF
5460#line 5461 "configure"
5461#include "confdefs.h"
5462/* Override any gcc2 internal prototype to avoid an error. */
5463/* We use char because int might match the return type of a gcc2
5464 builtin and then its argument prototype would still apply. */
5465char des_cbc_encrypt();
5466
5467int main() {
5468des_cbc_encrypt()
5469; return 0; }
5470EOF
5471if { (eval echo configure:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5472 rm -rf conftest*
5473 eval "ac_cv_lib_$ac_lib_var=yes"
5474else
5475 echo "configure: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5477 rm -rf conftest*
5478 eval "ac_cv_lib_$ac_lib_var=no"
5479fi
5480rm -f conftest*
5481LIBS="$ac_save_LIBS"
5482
5483fi
5484if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5485 echo "$ac_t""yes" 1>&6
5486 ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5488 cat >> confdefs.h <<EOF
5489#define $ac_tr_lib 1
5490EOF
5491
5492 LIBS="-ldes425 $LIBS"
5493
5494else
5495 echo "$ac_t""no" 1>&6
5496echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
5497echo "configure:5498: checking for des_cbc_encrypt in -ldes" >&5
5498ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5499if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5500 echo $ac_n "(cached) $ac_c" 1>&6
5501else
5502 ac_save_LIBS="$LIBS"
5503LIBS="-ldes $LIBS"
5504cat > conftest.$ac_ext <<EOF
5505#line 5506 "configure"
5506#include "confdefs.h"
5507/* Override any gcc2 internal prototype to avoid an error. */
5508/* We use char because int might match the return type of a gcc2
5509 builtin and then its argument prototype would still apply. */
5510char des_cbc_encrypt();
5511
5512int main() {
5513des_cbc_encrypt()
5514; return 0; }
5515EOF
5516if { (eval echo configure:5517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5517 rm -rf conftest*
5518 eval "ac_cv_lib_$ac_lib_var=yes"
5519else
5520 echo "configure: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5522 rm -rf conftest*
5523 eval "ac_cv_lib_$ac_lib_var=no"
5524fi
5525rm -f conftest*
5526LIBS="$ac_save_LIBS"
5527
5528fi
5529if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5530 echo "$ac_t""yes" 1>&6
5531 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
5532 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5533 cat >> confdefs.h <<EOF
5534#define $ac_tr_lib 1
5535EOF
5536
5537 LIBS="-ldes $LIBS"
5538
5539else
5540 echo "$ac_t""no" 1>&6
5541fi
5542
5543fi
5544
5545 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
5546echo "configure:5547: checking for krb_get_cred in -lkrb4" >&5
5547ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
5548if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5549 echo $ac_n "(cached) $ac_c" 1>&6
5550else
5551 ac_save_LIBS="$LIBS"
5552LIBS="-lkrb4 $LIBS"
5553cat > conftest.$ac_ext <<EOF
5554#line 5555 "configure"
5555#include "confdefs.h"
5556/* Override any gcc2 internal prototype to avoid an error. */
5557/* We use char because int might match the return type of a gcc2
5558 builtin and then its argument prototype would still apply. */
5559char krb_get_cred();
5560
5561int main() {
5562krb_get_cred()
5563; return 0; }
5564EOF
5565if { (eval echo configure:5566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5566 rm -rf conftest*
5567 eval "ac_cv_lib_$ac_lib_var=yes"
5568else
5569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5571 rm -rf conftest*
5572 eval "ac_cv_lib_$ac_lib_var=no"
5573fi
5574rm -f conftest*
5575LIBS="$ac_save_LIBS"
5576
5577fi
5578if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5579 echo "$ac_t""yes" 1>&6
5580 ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5581 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5582 cat >> confdefs.h <<EOF
5583#define $ac_tr_lib 1
5584EOF
5585
5586 LIBS="-lkrb4 $LIBS"
5587
5588else
5589 echo "$ac_t""no" 1>&6
5590echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
5591echo "configure:5592: checking for krb_get_cred in -lkrb" >&5
5592ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
5593if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5595else
5596 ac_save_LIBS="$LIBS"
5597LIBS="-lkrb $LIBS"
5598cat > conftest.$ac_ext <<EOF
5599#line 5600 "configure"
5600#include "confdefs.h"
5601/* Override any gcc2 internal prototype to avoid an error. */
5602/* We use char because int might match the return type of a gcc2
5603 builtin and then its argument prototype would still apply. */
5604char krb_get_cred();
5605
5606int main() {
5607krb_get_cred()
5608; return 0; }
5609EOF
5610if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5611 rm -rf conftest*
5612 eval "ac_cv_lib_$ac_lib_var=yes"
5613else
5614 echo "configure: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5616 rm -rf conftest*
5617 eval "ac_cv_lib_$ac_lib_var=no"
5618fi
5619rm -f conftest*
5620LIBS="$ac_save_LIBS"
5621
5622fi
5623if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5624 echo "$ac_t""yes" 1>&6
5625 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
5626 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5627 cat >> confdefs.h <<EOF
5628#define $ac_tr_lib 1
5629EOF
5630
5631 LIBS="-lkrb $LIBS"
5632
5633else
5634 echo "$ac_t""no" 1>&6
5635fi
5636
5637fi
5638
5639 fi
5640
5641 if test "${with_kerberos5+set}" = set; then
5642 for ac_hdr in krb5.h
5643do
5644ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5645echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5646echo "configure:5647: checking for $ac_hdr" >&5
5647if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5649else
5650 cat > conftest.$ac_ext <<EOF
5651#line 5652 "configure"
5652#include "confdefs.h"
5653#include <$ac_hdr>
5654EOF
5655ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5656{ (eval echo configure:5657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5657ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5658if test -z "$ac_err"; then
5659 rm -rf conftest*
5660 eval "ac_cv_header_$ac_safe=yes"
5661else
5662 echo "$ac_err" >&5
5663 echo "configure: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5665 rm -rf conftest*
5666 eval "ac_cv_header_$ac_safe=no"
5667fi
5668rm -f conftest*
5669fi
5670if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5671 echo "$ac_t""yes" 1>&6
5672 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5673 cat >> confdefs.h <<EOF
5674#define $ac_tr_hdr 1
5675EOF
5676
5677else
5678 echo "$ac_t""no" 1>&6
5679fi
5680done
5681
5682 else
5683 for ac_hdr in des.h
5684do
5685ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5686echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5687echo "configure:5688: checking for $ac_hdr" >&5
5688if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5690else
5691 cat > conftest.$ac_ext <<EOF
5692#line 5693 "configure"
5693#include "confdefs.h"
5694#include <$ac_hdr>
5695EOF
5696ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5697{ (eval echo configure:5698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5698ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5699if test -z "$ac_err"; then
5700 rm -rf conftest*
5701 eval "ac_cv_header_$ac_safe=yes"
5702else
5703 echo "$ac_err" >&5
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5706 rm -rf conftest*
5707 eval "ac_cv_header_$ac_safe=no"
5708fi
5709rm -f conftest*
5710fi
5711if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5712 echo "$ac_t""yes" 1>&6
5713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5714 cat >> confdefs.h <<EOF
5715#define $ac_tr_hdr 1
5716EOF
5717
5718else
5719 echo "$ac_t""no" 1>&6
5720for ac_hdr in kerberosIV/des.h
5721do
5722ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5723echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5724echo "configure:5725: checking for $ac_hdr" >&5
5725if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5726 echo $ac_n "(cached) $ac_c" 1>&6
5727else
5728 cat > conftest.$ac_ext <<EOF
5729#line 5730 "configure"
5730#include "confdefs.h"
5731#include <$ac_hdr>
5732EOF
5733ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5734{ (eval echo configure:5735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5735ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5736if test -z "$ac_err"; then
5737 rm -rf conftest*
5738 eval "ac_cv_header_$ac_safe=yes"
5739else
5740 echo "$ac_err" >&5
5741 echo "configure: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5743 rm -rf conftest*
5744 eval "ac_cv_header_$ac_safe=no"
5745fi
5746rm -f conftest*
5747fi
5748if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5749 echo "$ac_t""yes" 1>&6
5750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5751 cat >> confdefs.h <<EOF
5752#define $ac_tr_hdr 1
5753EOF
5754
5755else
5756 echo "$ac_t""no" 1>&6
5757for ac_hdr in kerberos/des.h
5758do
5759ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5760echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5761echo "configure:5762: checking for $ac_hdr" >&5
5762if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5763 echo $ac_n "(cached) $ac_c" 1>&6
5764else
5765 cat > conftest.$ac_ext <<EOF
5766#line 5767 "configure"
5767#include "confdefs.h"
5768#include <$ac_hdr>
5769EOF
5770ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5771{ (eval echo configure:5772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5772ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5773if test -z "$ac_err"; then
5774 rm -rf conftest*
5775 eval "ac_cv_header_$ac_safe=yes"
5776else
5777 echo "$ac_err" >&5
5778 echo "configure: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5780 rm -rf conftest*
5781 eval "ac_cv_header_$ac_safe=no"
5782fi
5783rm -f conftest*
5784fi
5785if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5786 echo "$ac_t""yes" 1>&6
5787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5788 cat >> confdefs.h <<EOF
5789#define $ac_tr_hdr 1
5790EOF
5791
5792else
5793 echo "$ac_t""no" 1>&6
5794fi
5795done
5796
5797fi
5798done
5799
5800fi
5801done
5802
5803 for ac_hdr in krb.h
5804do
5805ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5806echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5807echo "configure:5808: checking for $ac_hdr" >&5
5808if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5809 echo $ac_n "(cached) $ac_c" 1>&6
5810else
5811 cat > conftest.$ac_ext <<EOF
5812#line 5813 "configure"
5813#include "confdefs.h"
5814#include <$ac_hdr>
5815EOF
5816ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5817{ (eval echo configure:5818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5818ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5819if test -z "$ac_err"; then
5820 rm -rf conftest*
5821 eval "ac_cv_header_$ac_safe=yes"
5822else
5823 echo "$ac_err" >&5
5824 echo "configure: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5826 rm -rf conftest*
5827 eval "ac_cv_header_$ac_safe=no"
5828fi
5829rm -f conftest*
5830fi
5831if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5832 echo "$ac_t""yes" 1>&6
5833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5834 cat >> confdefs.h <<EOF
5835#define $ac_tr_hdr 1
5836EOF
5837
5838else
5839 echo "$ac_t""no" 1>&6
5840for ac_hdr in kerberosIV/krb.h
5841do
5842ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5843echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5844echo "configure:5845: checking for $ac_hdr" >&5
5845if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5846 echo $ac_n "(cached) $ac_c" 1>&6
5847else
5848 cat > conftest.$ac_ext <<EOF
5849#line 5850 "configure"
5850#include "confdefs.h"
5851#include <$ac_hdr>
5852EOF
5853ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5854{ (eval echo configure:5855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5855ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5856if test -z "$ac_err"; then
5857 rm -rf conftest*
5858 eval "ac_cv_header_$ac_safe=yes"
5859else
5860 echo "$ac_err" >&5
5861 echo "configure: failed program was:" >&5
5862 cat conftest.$ac_ext >&5
5863 rm -rf conftest*
5864 eval "ac_cv_header_$ac_safe=no"
5865fi
5866rm -f conftest*
5867fi
5868if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5869 echo "$ac_t""yes" 1>&6
5870 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5871 cat >> confdefs.h <<EOF
5872#define $ac_tr_hdr 1
5873EOF
5874
5875else
5876 echo "$ac_t""no" 1>&6
5877for ac_hdr in kerberos/krb.h
5878do
5879ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5880echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5881echo "configure:5882: checking for $ac_hdr" >&5
5882if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
5884else
5885 cat > conftest.$ac_ext <<EOF
5886#line 5887 "configure"
5887#include "confdefs.h"
5888#include <$ac_hdr>
5889EOF
5890ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5891{ (eval echo configure:5892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5892ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5893if test -z "$ac_err"; then
5894 rm -rf conftest*
5895 eval "ac_cv_header_$ac_safe=yes"
5896else
5897 echo "$ac_err" >&5
5898 echo "configure: failed program was:" >&5
5899 cat conftest.$ac_ext >&5
5900 rm -rf conftest*
5901 eval "ac_cv_header_$ac_safe=no"
5902fi
5903rm -f conftest*
5904fi
5905if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5906 echo "$ac_t""yes" 1>&6
5907 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5908 cat >> confdefs.h <<EOF
5909#define $ac_tr_hdr 1
5910EOF
5911
5912else
5913 echo "$ac_t""no" 1>&6
5914fi
5915done
5916
5917fi
5918done
5919
5920fi
5921done
5922
5923 fi
5924 for ac_hdr in com_err.h
5925do
5926ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5927echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5928echo "configure:5929: checking for $ac_hdr" >&5
5929if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5930 echo $ac_n "(cached) $ac_c" 1>&6
5931else
5932 cat > conftest.$ac_ext <<EOF
5933#line 5934 "configure"
5934#include "confdefs.h"
5935#include <$ac_hdr>
5936EOF
5937ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5938{ (eval echo configure:5939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5939ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5940if test -z "$ac_err"; then
5941 rm -rf conftest*
5942 eval "ac_cv_header_$ac_safe=yes"
5943else
5944 echo "$ac_err" >&5
5945 echo "configure: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5947 rm -rf conftest*
5948 eval "ac_cv_header_$ac_safe=no"
5949fi
5950rm -f conftest*
5951fi
5952if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5953 echo "$ac_t""yes" 1>&6
5954 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5955 cat >> confdefs.h <<EOF
5956#define $ac_tr_hdr 1
5957EOF
5958
5959else
5960 echo "$ac_t""no" 1>&6
5961fi
5962done
5963
5964fi
5965
5235# Solaris requires -lintl if you want strerror (which calls dgettext) 5966# Solaris requires -lintl if you want strerror (which calls dgettext)
5236# to return localized messages. 5967# to return localized messages.
5237echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 5968echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
5238echo "configure:5239: checking for dgettext in -lintl" >&5 5969echo "configure:5970: checking for dgettext in -lintl" >&5
5239ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 5970ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
5240if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5971if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6 5972 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5243,7 +5974,7 @@ else
5243 ac_save_LIBS="$LIBS" 5974 ac_save_LIBS="$LIBS"
5244LIBS="-lintl $LIBS" 5975LIBS="-lintl $LIBS"
5245cat > conftest.$ac_ext <<EOF 5976cat > conftest.$ac_ext <<EOF
5246#line 5247 "configure" 5977#line 5978 "configure"
5247#include "confdefs.h" 5978#include "confdefs.h"
5248/* Override any gcc2 internal prototype to avoid an error. */ 5979/* Override any gcc2 internal prototype to avoid an error. */
5249/* We use char because int might match the return type of a gcc2 5980/* We use char because int might match the return type of a gcc2
@@ -5254,7 +5985,7 @@ int main() {
5254dgettext() 5985dgettext()
5255; return 0; } 5986; return 0; }
5256EOF 5987EOF
5257if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5988if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5258 rm -rf conftest* 5989 rm -rf conftest*
5259 eval "ac_cv_lib_$ac_lib_var=yes" 5990 eval "ac_cv_lib_$ac_lib_var=yes"
5260else 5991else
@@ -5283,7 +6014,7 @@ fi
5283 6014
5284 6015
5285echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 6016echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
5286echo "configure:5287: checking whether localtime caches TZ" >&5 6017echo "configure:6018: checking whether localtime caches TZ" >&5
5287if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 6018if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6 6019 echo $ac_n "(cached) $ac_c" 1>&6
5289else 6020else
@@ -5293,7 +6024,7 @@ if test "$cross_compiling" = yes; then
5293emacs_cv_localtime_cache=yes 6024emacs_cv_localtime_cache=yes
5294else 6025else
5295 cat > conftest.$ac_ext <<EOF 6026 cat > conftest.$ac_ext <<EOF
5296#line 5297 "configure" 6027#line 6028 "configure"
5297#include "confdefs.h" 6028#include "confdefs.h"
5298#include <time.h> 6029#include <time.h>
5299extern char **environ; 6030extern char **environ;
@@ -5325,7 +6056,7 @@ main()
5325 exit (0); 6056 exit (0);
5326} 6057}
5327EOF 6058EOF
5328if { (eval echo configure:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6059if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5329then 6060then
5330 emacs_cv_localtime_cache=no 6061 emacs_cv_localtime_cache=no
5331else 6062else
@@ -5353,12 +6084,12 @@ fi
5353 6084
5354if test "x$HAVE_TIMEVAL" = xyes; then 6085if test "x$HAVE_TIMEVAL" = xyes; then
5355echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 6086echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
5356echo "configure:5357: checking whether gettimeofday can accept two arguments" >&5 6087echo "configure:6088: checking whether gettimeofday can accept two arguments" >&5
5357if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 6088if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
5358 echo $ac_n "(cached) $ac_c" 1>&6 6089 echo $ac_n "(cached) $ac_c" 1>&6
5359else 6090else
5360 cat > conftest.$ac_ext <<EOF 6091 cat > conftest.$ac_ext <<EOF
5361#line 5362 "configure" 6092#line 6093 "configure"
5362#include "confdefs.h" 6093#include "confdefs.h"
5363 6094
5364#ifdef TIME_WITH_SYS_TIME 6095#ifdef TIME_WITH_SYS_TIME
@@ -5380,7 +6111,7 @@ int main() {
5380 6111
5381; return 0; } 6112; return 0; }
5382EOF 6113EOF
5383if { (eval echo configure:5384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6114if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5384 rm -rf conftest* 6115 rm -rf conftest*
5385 emacs_cv_gettimeofday_two_arguments=yes 6116 emacs_cv_gettimeofday_two_arguments=yes
5386else 6117else
@@ -5403,12 +6134,12 @@ fi
5403 6134
5404ok_so_far=yes 6135ok_so_far=yes
5405echo $ac_n "checking for socket""... $ac_c" 1>&6 6136echo $ac_n "checking for socket""... $ac_c" 1>&6
5406echo "configure:5407: checking for socket" >&5 6137echo "configure:6138: checking for socket" >&5
5407if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 6138if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6 6139 echo $ac_n "(cached) $ac_c" 1>&6
5409else 6140else
5410 cat > conftest.$ac_ext <<EOF 6141 cat > conftest.$ac_ext <<EOF
5411#line 5412 "configure" 6142#line 6143 "configure"
5412#include "confdefs.h" 6143#include "confdefs.h"
5413/* System header to define __stub macros and hopefully few prototypes, 6144/* System header to define __stub macros and hopefully few prototypes,
5414 which can conflict with char socket(); below. */ 6145 which can conflict with char socket(); below. */
@@ -5417,7 +6148,6 @@ else
5417/* We use char because int might match the return type of a gcc2 6148/* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */ 6149 builtin and then its argument prototype would still apply. */
5419char socket(); 6150char socket();
5420char (*f)();
5421 6151
5422int main() { 6152int main() {
5423 6153
@@ -5427,12 +6157,12 @@ int main() {
5427#if defined (__stub_socket) || defined (__stub___socket) 6157#if defined (__stub_socket) || defined (__stub___socket)
5428choke me 6158choke me
5429#else 6159#else
5430f = socket; 6160socket();
5431#endif 6161#endif
5432 6162
5433; return 0; } 6163; return 0; }
5434EOF 6164EOF
5435if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6165if { (eval echo configure:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5436 rm -rf conftest* 6166 rm -rf conftest*
5437 eval "ac_cv_func_socket=yes" 6167 eval "ac_cv_func_socket=yes"
5438else 6168else
@@ -5455,17 +6185,17 @@ fi
5455if test $ok_so_far = yes; then 6185if test $ok_so_far = yes; then
5456 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 6186 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
5457echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 6187echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
5458echo "configure:5459: checking for netinet/in.h" >&5 6188echo "configure:6189: checking for netinet/in.h" >&5
5459if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6189if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5460 echo $ac_n "(cached) $ac_c" 1>&6 6190 echo $ac_n "(cached) $ac_c" 1>&6
5461else 6191else
5462 cat > conftest.$ac_ext <<EOF 6192 cat > conftest.$ac_ext <<EOF
5463#line 5464 "configure" 6193#line 6194 "configure"
5464#include "confdefs.h" 6194#include "confdefs.h"
5465#include <netinet/in.h> 6195#include <netinet/in.h>
5466EOF 6196EOF
5467ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6197ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5468{ (eval echo configure:5469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6198{ (eval echo configure:6199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5469ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6199ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5470if test -z "$ac_err"; then 6200if test -z "$ac_err"; then
5471 rm -rf conftest* 6201 rm -rf conftest*
@@ -5491,17 +6221,17 @@ fi
5491if test $ok_so_far = yes; then 6221if test $ok_so_far = yes; then
5492 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 6222 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
5493echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 6223echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
5494echo "configure:5495: checking for arpa/inet.h" >&5 6224echo "configure:6225: checking for arpa/inet.h" >&5
5495if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6225if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6 6226 echo $ac_n "(cached) $ac_c" 1>&6
5497else 6227else
5498 cat > conftest.$ac_ext <<EOF 6228 cat > conftest.$ac_ext <<EOF
5499#line 5500 "configure" 6229#line 6230 "configure"
5500#include "confdefs.h" 6230#include "confdefs.h"
5501#include <arpa/inet.h> 6231#include <arpa/inet.h>
5502EOF 6232EOF
5503ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6233ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5504{ (eval echo configure:5505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6234{ (eval echo configure:6235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5505ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6235ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5506if test -z "$ac_err"; then 6236if test -z "$ac_err"; then
5507 rm -rf conftest* 6237 rm -rf conftest*
@@ -5539,7 +6269,7 @@ EOF
5539fi 6269fi
5540 6270
5541echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 6271echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
5542echo "configure:5543: checking whether system supports dynamic ptys" >&5 6272echo "configure:6273: checking whether system supports dynamic ptys" >&5
5543if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 6273if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
5544 echo "$ac_t""yes" 1>&6 6274 echo "$ac_t""yes" 1>&6
5545 cat >> confdefs.h <<\EOF 6275 cat >> confdefs.h <<\EOF
diff --git a/configure.in b/configure.in
index 826c8d50272..7fce1785bf1 100644
--- a/configure.in
+++ b/configure.in
@@ -43,6 +43,18 @@ AC_ARG_WITH(pop,
43else : 43else :
44fi], 44fi],
45AC_DEFINE(MAIL_USE_POP)) 45AC_DEFINE(MAIL_USE_POP))
46AC_ARG_WITH(kerberos,
47[ --with-kerberos support Kerberos-authenticated POP],
48[AC_DEFINE(KERBEROS)])
49AC_ARG_WITH(kerberos5,
50[ --with-kerberos5 support Kerberos version 5 authenticated POP],
51[if test "${with_kerberos5+set}" = set; then
52 if test "${with_kerberos+set}" != set; then
53 with_kerberos=yes
54 AC_DEFINE(KERBEROS)
55 fi
56fi
57AC_DEFINE(KERBEROS5)])
46AC_ARG_WITH(hesiod, 58AC_ARG_WITH(hesiod,
47[ --with-hesiod support Hesiod to get the POP server host], 59[ --with-hesiod support Hesiod to get the POP server host],
48[AC_DEFINE(HESIOD)]) 60[AC_DEFINE(HESIOD)])
@@ -1797,6 +1809,32 @@ __fpending ftello getloadavg mblen mbrlen strsignal)
1797# than to expect to find it in ncurses. 1809# than to expect to find it in ncurses.
1798AC_CHECK_LIB(ncurses, tparm) 1810AC_CHECK_LIB(ncurses, tparm)
1799 1811
1812# These tell us which Kerberos-related libraries to use.
1813if test "${with_kerberos+set}" = set; then
1814 AC_CHECK_LIB(com_err, com_err)
1815 AC_CHECK_LIB(k5crypto, mit_des_cbc_encrypt)
1816 AC_CHECK_LIB(crypto, mit_des_cbc_encrypt)
1817 AC_CHECK_LIB(krb5, krb5_init_context)
1818 if test "${with_kerberos5+set}" != set; then
1819 AC_CHECK_LIB(des425, des_cbc_encrypt,,
1820 AC_CHECK_LIB(des, des_cbc_encrypt))
1821 AC_CHECK_LIB(krb4, krb_get_cred,,
1822 AC_CHECK_LIB(krb, krb_get_cred))
1823 fi
1824
1825 if test "${with_kerberos5+set}" = set; then
1826 AC_CHECK_HEADERS(krb5.h)
1827 else
1828 AC_CHECK_HEADERS(des.h,,
1829 AC_CHECK_HEADERS(kerberosIV/des.h,,
1830 AC_CHECK_HEADERS(kerberos/des.h)))
1831 AC_CHECK_HEADERS(krb.h,,
1832 AC_CHECK_HEADERS(kerberosIV/krb.h,,
1833 AC_CHECK_HEADERS(kerberos/krb.h)))
1834 fi
1835 AC_CHECK_HEADERS(com_err.h)
1836fi
1837
1800# Solaris requires -lintl if you want strerror (which calls dgettext) 1838# Solaris requires -lintl if you want strerror (which calls dgettext)
1801# to return localized messages. 1839# to return localized messages.
1802AC_CHECK_LIB(intl, dgettext) 1840AC_CHECK_LIB(intl, dgettext)