comparison configure @ 29654:16fbddb97bd4

*** empty log message ***
author Gerd Moellmann <gerd@gnu.org>
date Wed, 14 Jun 2000 13:39:46 +0000
parents 315367ef0316
children cdef08609770
comparison
equal deleted inserted replaced
29653:dfb2dd2b862a 29654:16fbddb97bd4
879 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib 879 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
880 case "${canonical}" in 880 case "${canonical}" in
881 # This is necessary on 5.0 to avoid mangling src/Makefile. 881 # This is necessary on 5.0 to avoid mangling src/Makefile.
882 # Separated out in case it causes problems on earlier versions. 882 # Separated out in case it causes problems on earlier versions.
883 alpha*-dec-osf[5-9]*) 883 alpha*-dec-osf[5-9]*)
884 NON_GNU_CPP='cc -E -std0' ;; 884 NON_GNU_CPP='cpp' ;;
885 esac 885 esac
886 ;; 886 ;;
887 887
888 alpha*-*-linux-gnu* ) 888 alpha*-*-linux-gnu* )
889 machine=alpha opsys=gnu-linux 889 machine=alpha opsys=gnu-linux
1599 1599
1600 ## Intel 386 machines where we don't care about the manufacturer 1600 ## Intel 386 machines where we don't care about the manufacturer
1601 i[3456]86-*-* ) 1601 i[3456]86-*-* )
1602 machine=intel386 1602 machine=intel386
1603 case "${canonical}" in 1603 case "${canonical}" in
1604 *-lynxos* ) opsys=lynxos ;;
1604 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; 1605 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1605 *-isc2.2* ) opsys=isc2-2 ;; 1606 *-isc2.2* ) opsys=isc2-2 ;;
1606 *-isc4.0* ) opsys=isc4-0 ;; 1607 *-isc4.0* ) opsys=isc4-0 ;;
1607 *-isc4.* ) opsys=isc4-1 1608 *-isc4.* ) opsys=isc4-1
1608 GCC_TEST_OPTIONS=-posix 1609 GCC_TEST_OPTIONS=-posix
1711 "yes" ) CC="gcc" GCC=yes ;; 1712 "yes" ) CC="gcc" GCC=yes ;;
1712 "no" ) : ${CC=cc} ;; 1713 "no" ) : ${CC=cc} ;;
1713 * ) # Extract the first word of "gcc", so it can be a program name with args. 1714 * ) # Extract the first word of "gcc", so it can be a program name with args.
1714 set dummy gcc; ac_word=$2 1715 set dummy gcc; ac_word=$2
1715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1716 echo "configure:1717: checking for $ac_word" >&5 1717 echo "configure:1718: checking for $ac_word" >&5
1717 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1718 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6 1719 echo $ac_n "(cached) $ac_c" 1>&6
1719 else 1720 else
1720 if test -n "$CC"; then 1721 if test -n "$CC"; then
1721 ac_cv_prog_CC="$CC" # Let the user override the test. 1722 ac_cv_prog_CC="$CC" # Let the user override the test.
1741 1742
1742 if test -z "$CC"; then 1743 if test -z "$CC"; then
1743 # Extract the first word of "cc", so it can be a program name with args. 1744 # Extract the first word of "cc", so it can be a program name with args.
1744 set dummy cc; ac_word=$2 1745 set dummy cc; ac_word=$2
1745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1746 echo "configure:1747: checking for $ac_word" >&5 1747 echo "configure:1748: checking for $ac_word" >&5
1747 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6 1749 echo $ac_n "(cached) $ac_c" 1>&6
1749 else 1750 else
1750 if test -n "$CC"; then 1751 if test -n "$CC"; then
1751 ac_cv_prog_CC="$CC" # Let the user override the test. 1752 ac_cv_prog_CC="$CC" # Let the user override the test.
1792 case "`uname -s`" in 1793 case "`uname -s`" in
1793 *win32* | *WIN32*) 1794 *win32* | *WIN32*)
1794 # Extract the first word of "cl", so it can be a program name with args. 1795 # Extract the first word of "cl", so it can be a program name with args.
1795 set dummy cl; ac_word=$2 1796 set dummy cl; ac_word=$2
1796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1797 echo "configure:1798: checking for $ac_word" >&5 1798 echo "configure:1799: checking for $ac_word" >&5
1798 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1799 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6 1800 echo $ac_n "(cached) $ac_c" 1>&6
1800 else 1801 else
1801 if test -n "$CC"; then 1802 if test -n "$CC"; then
1802 ac_cv_prog_CC="$CC" # Let the user override the test. 1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1824 fi 1825 fi
1825 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1826 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1826 fi 1827 fi
1827 1828
1828 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1829 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1829 echo "configure:1830: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1830 echo "configure:1831: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1830 1831
1831 ac_ext=c 1832 ac_ext=c
1832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1833 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1833 ac_cpp='$CPP $CPPFLAGS' 1834 ac_cpp='$CPP $CPPFLAGS'
1834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1835 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1836 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1836 cross_compiling=$ac_cv_prog_cc_cross 1837 cross_compiling=$ac_cv_prog_cc_cross
1837 1838
1838 cat > conftest.$ac_ext << EOF 1839 cat > conftest.$ac_ext << EOF
1839 1840
1840 #line 1841 "configure" 1841 #line 1842 "configure"
1841 #include "confdefs.h" 1842 #include "confdefs.h"
1842 1843
1843 main(){return(0);} 1844 main(){return(0);}
1844 EOF 1845 EOF
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1846 ac_cv_prog_cc_works=yes 1847 ac_cv_prog_cc_works=yes
1847 # If we can't run a trivial program, we are probably using a cross compiler. 1848 # If we can't run a trivial program, we are probably using a cross compiler.
1848 if (./conftest; exit) 2>/dev/null; then 1849 if (./conftest; exit) 2>/dev/null; then
1849 ac_cv_prog_cc_cross=no 1850 ac_cv_prog_cc_cross=no
1850 else 1851 else
1866 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1867 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1867 if test $ac_cv_prog_cc_works = no; then 1868 if test $ac_cv_prog_cc_works = no; then
1868 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1869 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1869 fi 1870 fi
1870 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1871 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1871 echo "configure:1872: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1872 echo "configure:1873: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1872 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1873 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1873 cross_compiling=$ac_cv_prog_cc_cross 1874 cross_compiling=$ac_cv_prog_cc_cross
1874 1875
1875 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1876 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1876 echo "configure:1877: checking whether we are using GNU C" >&5 1877 echo "configure:1878: checking whether we are using GNU C" >&5
1877 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1878 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6 1879 echo $ac_n "(cached) $ac_c" 1>&6
1879 else 1880 else
1880 cat > conftest.c <<EOF 1881 cat > conftest.c <<EOF
1881 #ifdef __GNUC__ 1882 #ifdef __GNUC__
1882 yes; 1883 yes;
1883 #endif 1884 #endif
1884 EOF 1885 EOF
1885 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1886 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1886 ac_cv_prog_gcc=yes 1887 ac_cv_prog_gcc=yes
1887 else 1888 else
1888 ac_cv_prog_gcc=no 1889 ac_cv_prog_gcc=no
1889 fi 1890 fi
1890 fi 1891 fi
1899 1900
1900 ac_test_CFLAGS="${CFLAGS+set}" 1901 ac_test_CFLAGS="${CFLAGS+set}"
1901 ac_save_CFLAGS="$CFLAGS" 1902 ac_save_CFLAGS="$CFLAGS"
1902 CFLAGS= 1903 CFLAGS=
1903 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1904 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1904 echo "configure:1905: checking whether ${CC-cc} accepts -g" >&5 1905 echo "configure:1906: checking whether ${CC-cc} accepts -g" >&5
1905 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1906 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6 1907 echo $ac_n "(cached) $ac_c" 1>&6
1907 else 1908 else
1908 echo 'void f(){}' > conftest.c 1909 echo 'void f(){}' > conftest.c
1909 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1910 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1979 #### Some other nice autoconf tests. If you add a test here which 1980 #### Some other nice autoconf tests. If you add a test here which
1980 #### should make an entry in src/config.h, don't forget to add an 1981 #### should make an entry in src/config.h, don't forget to add an
1981 #### #undef clause to src/config.h.in for autoconf to modify. 1982 #### #undef clause to src/config.h.in for autoconf to modify.
1982 1983
1983 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1984 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1984 echo "configure:1985: checking whether ln -s works" >&5 1985 echo "configure:1986: checking whether ln -s works" >&5
1985 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1986 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6 1987 echo $ac_n "(cached) $ac_c" 1>&6
1987 else 1988 else
1988 rm -f conftestdata 1989 rm -f conftestdata
1989 if ln -s X conftestdata 2>/dev/null 1990 if ln -s X conftestdata 2>/dev/null
2000 else 2001 else
2001 echo "$ac_t""no" 1>&6 2002 echo "$ac_t""no" 1>&6
2002 fi 2003 fi
2003 2004
2004 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2005 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2005 echo "configure:2006: checking how to run the C preprocessor" >&5 2006 echo "configure:2007: checking how to run the C preprocessor" >&5
2006 # On Suns, sometimes $CPP names a directory. 2007 # On Suns, sometimes $CPP names a directory.
2007 if test -n "$CPP" && test -d "$CPP"; then 2008 if test -n "$CPP" && test -d "$CPP"; then
2008 CPP= 2009 CPP=
2009 fi 2010 fi
2010 if test -z "$CPP"; then 2011 if test -z "$CPP"; then
2015 # substituted into the Makefile and "${CC-cc}" will confuse make. 2016 # substituted into the Makefile and "${CC-cc}" will confuse make.
2016 CPP="${CC-cc} -E" 2017 CPP="${CC-cc} -E"
2017 # On the NeXT, cc -E runs the code through the compiler's parser, 2018 # On the NeXT, cc -E runs the code through the compiler's parser,
2018 # not just through cpp. 2019 # not just through cpp.
2019 cat > conftest.$ac_ext <<EOF 2020 cat > conftest.$ac_ext <<EOF
2020 #line 2021 "configure" 2021 #line 2022 "configure"
2021 #include "confdefs.h" 2022 #include "confdefs.h"
2022 #include <assert.h> 2023 #include <assert.h>
2023 Syntax Error 2024 Syntax Error
2024 EOF 2025 EOF
2025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2027 { (eval echo configure:2028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2028 if test -z "$ac_err"; then 2029 if test -z "$ac_err"; then
2029 : 2030 :
2030 else 2031 else
2031 echo "$ac_err" >&5 2032 echo "$ac_err" >&5
2032 echo "configure: failed program was:" >&5 2033 echo "configure: failed program was:" >&5
2033 cat conftest.$ac_ext >&5 2034 cat conftest.$ac_ext >&5
2034 rm -rf conftest* 2035 rm -rf conftest*
2035 CPP="${CC-cc} -E -traditional-cpp" 2036 CPP="${CC-cc} -E -traditional-cpp"
2036 cat > conftest.$ac_ext <<EOF 2037 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure" 2038 #line 2039 "configure"
2038 #include "confdefs.h" 2039 #include "confdefs.h"
2039 #include <assert.h> 2040 #include <assert.h>
2040 Syntax Error 2041 Syntax Error
2041 EOF 2042 EOF
2042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2043 { (eval echo configure:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2044 { (eval echo configure:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2045 if test -z "$ac_err"; then 2046 if test -z "$ac_err"; then
2046 : 2047 :
2047 else 2048 else
2048 echo "$ac_err" >&5 2049 echo "$ac_err" >&5
2049 echo "configure: failed program was:" >&5 2050 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5 2051 cat conftest.$ac_ext >&5
2051 rm -rf conftest* 2052 rm -rf conftest*
2052 CPP="${CC-cc} -nologo -E" 2053 CPP="${CC-cc} -nologo -E"
2053 cat > conftest.$ac_ext <<EOF 2054 cat > conftest.$ac_ext <<EOF
2054 #line 2055 "configure" 2055 #line 2056 "configure"
2055 #include "confdefs.h" 2056 #include "confdefs.h"
2056 #include <assert.h> 2057 #include <assert.h>
2057 Syntax Error 2058 Syntax Error
2058 EOF 2059 EOF
2059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2060 { (eval echo configure:2061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2061 { (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2062 if test -z "$ac_err"; then 2063 if test -z "$ac_err"; then
2063 : 2064 :
2064 else 2065 else
2065 echo "$ac_err" >&5 2066 echo "$ac_err" >&5
2091 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2092 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2092 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2093 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2093 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2094 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2094 # ./install, which can be erroneously created by make from ./install.sh. 2095 # ./install, which can be erroneously created by make from ./install.sh.
2095 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2096 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2096 echo "configure:2097: checking for a BSD compatible install" >&5 2097 echo "configure:2098: checking for a BSD compatible install" >&5
2097 if test -z "$INSTALL"; then 2098 if test -z "$INSTALL"; then
2098 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2099 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6 2100 echo $ac_n "(cached) $ac_c" 1>&6
2100 else 2101 else
2101 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 2102 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2148 for ac_prog in 'bison -y' byacc 2149 for ac_prog in 'bison -y' byacc
2149 do 2150 do
2150 # Extract the first word of "$ac_prog", so it can be a program name with args. 2151 # Extract the first word of "$ac_prog", so it can be a program name with args.
2151 set dummy $ac_prog; ac_word=$2 2152 set dummy $ac_prog; ac_word=$2
2152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2153 echo "configure:2154: checking for $ac_word" >&5 2154 echo "configure:2155: checking for $ac_word" >&5
2154 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 2155 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6 2156 echo $ac_n "(cached) $ac_c" 1>&6
2156 else 2157 else
2157 if test -n "$YACC"; then 2158 if test -n "$YACC"; then
2158 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2159 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2182 2183
2183 if test "x$RANLIB" = x; then 2184 if test "x$RANLIB" = x; then
2184 # Extract the first word of "ranlib", so it can be a program name with args. 2185 # Extract the first word of "ranlib", so it can be a program name with args.
2185 set dummy ranlib; ac_word=$2 2186 set dummy ranlib; ac_word=$2
2186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2187 echo "configure:2188: checking for $ac_word" >&5 2188 echo "configure:2189: checking for $ac_word" >&5
2188 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2189 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6 2190 echo $ac_n "(cached) $ac_c" 1>&6
2190 else 2191 else
2191 if test -n "$RANLIB"; then 2192 if test -n "$RANLIB"; then
2192 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2212 fi 2213 fi
2213 2214
2214 fi 2215 fi
2215 2216
2216 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2217 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2217 echo "configure:2218: checking for AIX" >&5 2218 echo "configure:2219: checking for AIX" >&5
2218 cat > conftest.$ac_ext <<EOF 2219 cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure" 2220 #line 2221 "configure"
2220 #include "confdefs.h" 2221 #include "confdefs.h"
2221 #ifdef _AIX 2222 #ifdef _AIX
2222 yes 2223 yes
2223 #endif 2224 #endif
2224 2225
2241 # Sound support for GNU/Linux and the free BSDs. 2242 # Sound support for GNU/Linux and the free BSDs.
2242 for ac_hdr in machine/soundcard.h sys/soundcard.h 2243 for ac_hdr in machine/soundcard.h sys/soundcard.h
2243 do 2244 do
2244 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_hdr" >&5 2247 echo "configure:2248: checking for $ac_hdr" >&5
2247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6 2249 echo $ac_n "(cached) $ac_c" 1>&6
2249 else 2250 else
2250 cat > conftest.$ac_ext <<EOF 2251 cat > conftest.$ac_ext <<EOF
2251 #line 2252 "configure" 2252 #line 2253 "configure"
2252 #include "confdefs.h" 2253 #include "confdefs.h"
2253 #include <$ac_hdr> 2254 #include <$ac_hdr>
2254 EOF 2255 EOF
2255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2256 { (eval echo configure:2257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2257 { (eval echo configure:2258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2258 if test -z "$ac_err"; then 2259 if test -z "$ac_err"; then
2259 rm -rf conftest* 2260 rm -rf conftest*
2260 eval "ac_cv_header_$ac_safe=yes" 2261 eval "ac_cv_header_$ac_safe=yes"
2261 else 2262 else
2284 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 2285 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
2285 termcap.h stdio_ext.h 2286 termcap.h stdio_ext.h
2286 do 2287 do
2287 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_hdr" >&5 2290 echo "configure:2291: checking for $ac_hdr" >&5
2290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6 2292 echo $ac_n "(cached) $ac_c" 1>&6
2292 else 2293 else
2293 cat > conftest.$ac_ext <<EOF 2294 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure" 2295 #line 2296 "configure"
2295 #include "confdefs.h" 2296 #include "confdefs.h"
2296 #include <$ac_hdr> 2297 #include <$ac_hdr>
2297 EOF 2298 EOF
2298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2299 { (eval echo configure:2300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2300 { (eval echo configure:2301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2301 if test -z "$ac_err"; then 2302 if test -z "$ac_err"; then
2302 rm -rf conftest* 2303 rm -rf conftest*
2303 eval "ac_cv_header_$ac_safe=yes" 2304 eval "ac_cv_header_$ac_safe=yes"
2304 else 2305 else
2321 echo "$ac_t""no" 1>&6 2322 echo "$ac_t""no" 1>&6
2322 fi 2323 fi
2323 done 2324 done
2324 2325
2325 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2326 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2326 echo "configure:2327: checking for ANSI C header files" >&5 2327 echo "configure:2328: checking for ANSI C header files" >&5
2327 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2328 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6 2329 echo $ac_n "(cached) $ac_c" 1>&6
2329 else 2330 else
2330 cat > conftest.$ac_ext <<EOF 2331 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure" 2332 #line 2333 "configure"
2332 #include "confdefs.h" 2333 #include "confdefs.h"
2333 #include <stdlib.h> 2334 #include <stdlib.h>
2334 #include <stdarg.h> 2335 #include <stdarg.h>
2335 #include <string.h> 2336 #include <string.h>
2336 #include <float.h> 2337 #include <float.h>
2337 EOF 2338 EOF
2338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2339 { (eval echo configure:2340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2340 { (eval echo configure:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2341 if test -z "$ac_err"; then 2342 if test -z "$ac_err"; then
2342 rm -rf conftest* 2343 rm -rf conftest*
2343 ac_cv_header_stdc=yes 2344 ac_cv_header_stdc=yes
2344 else 2345 else
2351 rm -f conftest* 2352 rm -f conftest*
2352 2353
2353 if test $ac_cv_header_stdc = yes; then 2354 if test $ac_cv_header_stdc = yes; then
2354 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2355 cat > conftest.$ac_ext <<EOF 2356 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure" 2357 #line 2358 "configure"
2357 #include "confdefs.h" 2358 #include "confdefs.h"
2358 #include <string.h> 2359 #include <string.h>
2359 EOF 2360 EOF
2360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2361 egrep "memchr" >/dev/null 2>&1; then 2362 egrep "memchr" >/dev/null 2>&1; then
2369 fi 2370 fi
2370 2371
2371 if test $ac_cv_header_stdc = yes; then 2372 if test $ac_cv_header_stdc = yes; then
2372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2373 cat > conftest.$ac_ext <<EOF 2374 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure" 2375 #line 2376 "configure"
2375 #include "confdefs.h" 2376 #include "confdefs.h"
2376 #include <stdlib.h> 2377 #include <stdlib.h>
2377 EOF 2378 EOF
2378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2379 egrep "free" >/dev/null 2>&1; then 2380 egrep "free" >/dev/null 2>&1; then
2390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2391 if test "$cross_compiling" = yes; then 2392 if test "$cross_compiling" = yes; then
2392 : 2393 :
2393 else 2394 else
2394 cat > conftest.$ac_ext <<EOF 2395 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure" 2396 #line 2397 "configure"
2396 #include "confdefs.h" 2397 #include "confdefs.h"
2397 #include <ctype.h> 2398 #include <ctype.h>
2398 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2399 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2399 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2400 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2400 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2401 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2401 int main () { int i; for (i = 0; i < 256; i++) 2402 int main () { int i; for (i = 0; i < 256; i++)
2402 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2403 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2403 exit (0); } 2404 exit (0); }
2404 2405
2405 EOF 2406 EOF
2406 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2407 if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2407 then 2408 then
2408 : 2409 :
2409 else 2410 else
2410 echo "configure: failed program was:" >&5 2411 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5 2412 cat conftest.$ac_ext >&5
2425 EOF 2426 EOF
2426 2427
2427 fi 2428 fi
2428 2429
2429 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2430 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2430 echo "configure:2431: checking whether time.h and sys/time.h may both be included" >&5 2431 echo "configure:2432: checking whether time.h and sys/time.h may both be included" >&5
2431 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2432 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6 2433 echo $ac_n "(cached) $ac_c" 1>&6
2433 else 2434 else
2434 cat > conftest.$ac_ext <<EOF 2435 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure" 2436 #line 2437 "configure"
2436 #include "confdefs.h" 2437 #include "confdefs.h"
2437 #include <sys/types.h> 2438 #include <sys/types.h>
2438 #include <sys/time.h> 2439 #include <sys/time.h>
2439 #include <time.h> 2440 #include <time.h>
2440 int main() { 2441 int main() {
2441 struct tm *tp; 2442 struct tm *tp;
2442 ; return 0; } 2443 ; return 0; }
2443 EOF 2444 EOF
2444 if { (eval echo configure:2445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2445 if { (eval echo configure:2446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2445 rm -rf conftest* 2446 rm -rf conftest*
2446 ac_cv_header_time=yes 2447 ac_cv_header_time=yes
2447 else 2448 else
2448 echo "configure: failed program was:" >&5 2449 echo "configure: failed program was:" >&5
2449 cat conftest.$ac_ext >&5 2450 cat conftest.$ac_ext >&5
2460 EOF 2461 EOF
2461 2462
2462 fi 2463 fi
2463 2464
2464 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2465 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2465 echo "configure:2466: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2466 echo "configure:2467: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2466 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2467 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6 2468 echo $ac_n "(cached) $ac_c" 1>&6
2468 else 2469 else
2469 cat > conftest.$ac_ext <<EOF 2470 cat > conftest.$ac_ext <<EOF
2470 #line 2471 "configure" 2471 #line 2472 "configure"
2471 #include "confdefs.h" 2472 #include "confdefs.h"
2472 #include <sys/types.h> 2473 #include <sys/types.h>
2473 #include <signal.h> 2474 #include <signal.h>
2474 /* NetBSD declares sys_siglist in unistd.h. */ 2475 /* NetBSD declares sys_siglist in unistd.h. */
2475 #ifdef HAVE_UNISTD_H 2476 #ifdef HAVE_UNISTD_H
2477 #endif 2478 #endif
2478 int main() { 2479 int main() {
2479 char *msg = *(sys_siglist + 1); 2480 char *msg = *(sys_siglist + 1);
2480 ; return 0; } 2481 ; return 0; }
2481 EOF 2482 EOF
2482 if { (eval echo configure:2483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2483 if { (eval echo configure:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2483 rm -rf conftest* 2484 rm -rf conftest*
2484 ac_cv_decl_sys_siglist=yes 2485 ac_cv_decl_sys_siglist=yes
2485 else 2486 else
2486 echo "configure: failed program was:" >&5 2487 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5 2488 cat conftest.$ac_ext >&5
2499 2500
2500 fi 2501 fi
2501 2502
2502 2503
2503 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2504 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2504 echo "configure:2505: checking for struct utimbuf" >&5 2505 echo "configure:2506: checking for struct utimbuf" >&5
2505 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 2506 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6 2507 echo $ac_n "(cached) $ac_c" 1>&6
2507 else 2508 else
2508 cat > conftest.$ac_ext <<EOF 2509 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure" 2510 #line 2511 "configure"
2510 #include "confdefs.h" 2511 #include "confdefs.h"
2511 #ifdef TIME_WITH_SYS_TIME 2512 #ifdef TIME_WITH_SYS_TIME
2512 #include <sys/time.h> 2513 #include <sys/time.h>
2513 #include <time.h> 2514 #include <time.h>
2514 #else 2515 #else
2523 #endif 2524 #endif
2524 int main() { 2525 int main() {
2525 static struct utimbuf x; x.actime = x.modtime; 2526 static struct utimbuf x; x.actime = x.modtime;
2526 ; return 0; } 2527 ; return 0; }
2527 EOF 2528 EOF
2528 if { (eval echo configure:2529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2529 if { (eval echo configure:2530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2529 rm -rf conftest* 2530 rm -rf conftest*
2530 emacs_cv_struct_utimbuf=yes 2531 emacs_cv_struct_utimbuf=yes
2531 else 2532 else
2532 echo "configure: failed program was:" >&5 2533 echo "configure: failed program was:" >&5
2533 cat conftest.$ac_ext >&5 2534 cat conftest.$ac_ext >&5
2544 EOF 2545 EOF
2545 2546
2546 fi 2547 fi
2547 2548
2548 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2549 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2549 echo "configure:2550: checking return type of signal handlers" >&5 2550 echo "configure:2551: checking return type of signal handlers" >&5
2550 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2551 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6 2552 echo $ac_n "(cached) $ac_c" 1>&6
2552 else 2553 else
2553 cat > conftest.$ac_ext <<EOF 2554 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure" 2555 #line 2556 "configure"
2555 #include "confdefs.h" 2556 #include "confdefs.h"
2556 #include <sys/types.h> 2557 #include <sys/types.h>
2557 #include <signal.h> 2558 #include <signal.h>
2558 #ifdef signal 2559 #ifdef signal
2559 #undef signal 2560 #undef signal
2566 2567
2567 int main() { 2568 int main() {
2568 int i; 2569 int i;
2569 ; return 0; } 2570 ; return 0; }
2570 EOF 2571 EOF
2571 if { (eval echo configure:2572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2572 if { (eval echo configure:2573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2572 rm -rf conftest* 2573 rm -rf conftest*
2573 ac_cv_type_signal=void 2574 ac_cv_type_signal=void
2574 else 2575 else
2575 echo "configure: failed program was:" >&5 2576 echo "configure: failed program was:" >&5
2576 cat conftest.$ac_ext >&5 2577 cat conftest.$ac_ext >&5
2586 EOF 2587 EOF
2587 2588
2588 2589
2589 2590
2590 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 2591 echo $ac_n "checking for speed_t""... $ac_c" 1>&6
2591 echo "configure:2592: checking for speed_t" >&5 2592 echo "configure:2593: checking for speed_t" >&5
2592 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then 2593 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6 2594 echo $ac_n "(cached) $ac_c" 1>&6
2594 else 2595 else
2595 cat > conftest.$ac_ext <<EOF 2596 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure" 2597 #line 2598 "configure"
2597 #include "confdefs.h" 2598 #include "confdefs.h"
2598 #include <termios.h> 2599 #include <termios.h>
2599 int main() { 2600 int main() {
2600 speed_t x = 1; 2601 speed_t x = 1;
2601 ; return 0; } 2602 ; return 0; }
2602 EOF 2603 EOF
2603 if { (eval echo configure:2604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2604 if { (eval echo configure:2605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2604 rm -rf conftest* 2605 rm -rf conftest*
2605 emacs_cv_speed_t=yes 2606 emacs_cv_speed_t=yes
2606 else 2607 else
2607 echo "configure: failed program was:" >&5 2608 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5 2609 cat conftest.$ac_ext >&5
2617 EOF 2618 EOF
2618 2619
2619 fi 2620 fi
2620 2621
2621 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 2622 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2622 echo "configure:2623: checking for struct timeval" >&5 2623 echo "configure:2624: checking for struct timeval" >&5
2623 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 2624 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6 2625 echo $ac_n "(cached) $ac_c" 1>&6
2625 else 2626 else
2626 cat > conftest.$ac_ext <<EOF 2627 cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure" 2628 #line 2629 "configure"
2628 #include "confdefs.h" 2629 #include "confdefs.h"
2629 #ifdef TIME_WITH_SYS_TIME 2630 #ifdef TIME_WITH_SYS_TIME
2630 #include <sys/time.h> 2631 #include <sys/time.h>
2631 #include <time.h> 2632 #include <time.h>
2632 #else 2633 #else
2638 #endif 2639 #endif
2639 int main() { 2640 int main() {
2640 static struct timeval x; x.tv_sec = x.tv_usec; 2641 static struct timeval x; x.tv_sec = x.tv_usec;
2641 ; return 0; } 2642 ; return 0; }
2642 EOF 2643 EOF
2643 if { (eval echo configure:2644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2644 if { (eval echo configure:2645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2644 rm -rf conftest* 2645 rm -rf conftest*
2645 emacs_cv_struct_timeval=yes 2646 emacs_cv_struct_timeval=yes
2646 else 2647 else
2647 echo "configure: failed program was:" >&5 2648 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5 2649 cat conftest.$ac_ext >&5
2660 EOF 2661 EOF
2661 2662
2662 fi 2663 fi
2663 2664
2664 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 2665 echo $ac_n "checking for struct exception""... $ac_c" 1>&6
2665 echo "configure:2666: checking for struct exception" >&5 2666 echo "configure:2667: checking for struct exception" >&5
2666 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then 2667 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6 2668 echo $ac_n "(cached) $ac_c" 1>&6
2668 else 2669 else
2669 cat > conftest.$ac_ext <<EOF 2670 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure" 2671 #line 2672 "configure"
2671 #include "confdefs.h" 2672 #include "confdefs.h"
2672 #include <math.h> 2673 #include <math.h>
2673 int main() { 2674 int main() {
2674 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; 2675 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
2675 ; return 0; } 2676 ; return 0; }
2676 EOF 2677 EOF
2677 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2678 if { (eval echo configure:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2678 rm -rf conftest* 2679 rm -rf conftest*
2679 emacs_cv_struct_exception=yes 2680 emacs_cv_struct_exception=yes
2680 else 2681 else
2681 echo "configure: failed program was:" >&5 2682 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5 2683 cat conftest.$ac_ext >&5
2694 EOF 2695 EOF
2695 2696
2696 fi 2697 fi
2697 2698
2698 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2699 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2699 echo "configure:2700: checking whether struct tm is in sys/time.h or time.h" >&5 2700 echo "configure:2701: checking whether struct tm is in sys/time.h or time.h" >&5
2700 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2701 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6 2702 echo $ac_n "(cached) $ac_c" 1>&6
2702 else 2703 else
2703 cat > conftest.$ac_ext <<EOF 2704 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure" 2705 #line 2706 "configure"
2705 #include "confdefs.h" 2706 #include "confdefs.h"
2706 #include <sys/types.h> 2707 #include <sys/types.h>
2707 #include <time.h> 2708 #include <time.h>
2708 int main() { 2709 int main() {
2709 struct tm *tp; tp->tm_sec; 2710 struct tm *tp; tp->tm_sec;
2710 ; return 0; } 2711 ; return 0; }
2711 EOF 2712 EOF
2712 if { (eval echo configure:2713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2713 if { (eval echo configure:2714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2713 rm -rf conftest* 2714 rm -rf conftest*
2714 ac_cv_struct_tm=time.h 2715 ac_cv_struct_tm=time.h
2715 else 2716 else
2716 echo "configure: failed program was:" >&5 2717 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5 2718 cat conftest.$ac_ext >&5
2728 EOF 2729 EOF
2729 2730
2730 fi 2731 fi
2731 2732
2732 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2733 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2733 echo "configure:2734: checking for tm_zone in struct tm" >&5 2734 echo "configure:2735: checking for tm_zone in struct tm" >&5
2734 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 2735 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6 2736 echo $ac_n "(cached) $ac_c" 1>&6
2736 else 2737 else
2737 cat > conftest.$ac_ext <<EOF 2738 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure" 2739 #line 2740 "configure"
2739 #include "confdefs.h" 2740 #include "confdefs.h"
2740 #include <sys/types.h> 2741 #include <sys/types.h>
2741 #include <$ac_cv_struct_tm> 2742 #include <$ac_cv_struct_tm>
2742 int main() { 2743 int main() {
2743 struct tm tm; tm.tm_zone; 2744 struct tm tm; tm.tm_zone;
2744 ; return 0; } 2745 ; return 0; }
2745 EOF 2746 EOF
2746 if { (eval echo configure:2747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2747 if { (eval echo configure:2748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2747 rm -rf conftest* 2748 rm -rf conftest*
2748 ac_cv_struct_tm_zone=yes 2749 ac_cv_struct_tm_zone=yes
2749 else 2750 else
2750 echo "configure: failed program was:" >&5 2751 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5 2752 cat conftest.$ac_ext >&5
2761 #define HAVE_TM_ZONE 1 2762 #define HAVE_TM_ZONE 1
2762 EOF 2763 EOF
2763 2764
2764 else 2765 else
2765 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2766 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2766 echo "configure:2767: checking for tzname" >&5 2767 echo "configure:2768: checking for tzname" >&5
2767 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 2768 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6 2769 echo $ac_n "(cached) $ac_c" 1>&6
2769 else 2770 else
2770 cat > conftest.$ac_ext <<EOF 2771 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure" 2772 #line 2773 "configure"
2772 #include "confdefs.h" 2773 #include "confdefs.h"
2773 #include <time.h> 2774 #include <time.h>
2774 #ifndef tzname /* For SGI. */ 2775 #ifndef tzname /* For SGI. */
2775 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 2776 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2776 #endif 2777 #endif
2777 int main() { 2778 int main() {
2778 atoi(*tzname); 2779 atoi(*tzname);
2779 ; return 0; } 2780 ; return 0; }
2780 EOF 2781 EOF
2781 if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2782 if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2782 rm -rf conftest* 2783 rm -rf conftest*
2783 ac_cv_var_tzname=yes 2784 ac_cv_var_tzname=yes
2784 else 2785 else
2785 echo "configure: failed program was:" >&5 2786 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5 2787 cat conftest.$ac_ext >&5
2798 2799
2799 fi 2800 fi
2800 fi 2801 fi
2801 2802
2802 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 2803 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2803 echo "configure:2804: checking for tm_gmtoff in struct tm" >&5 2804 echo "configure:2805: checking for tm_gmtoff in struct tm" >&5
2804 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 2805 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6 2806 echo $ac_n "(cached) $ac_c" 1>&6
2806 else 2807 else
2807 cat > conftest.$ac_ext <<EOF 2808 cat > conftest.$ac_ext <<EOF
2808 #line 2809 "configure" 2809 #line 2810 "configure"
2809 #include "confdefs.h" 2810 #include "confdefs.h"
2810 #include <time.h> 2811 #include <time.h>
2811 int main() { 2812 int main() {
2812 struct tm t; t.tm_gmtoff = 0 2813 struct tm t; t.tm_gmtoff = 0
2813 ; return 0; } 2814 ; return 0; }
2814 EOF 2815 EOF
2815 if { (eval echo configure:2816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2816 if { (eval echo configure:2817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2816 rm -rf conftest* 2817 rm -rf conftest*
2817 emacs_cv_tm_gmtoff=yes 2818 emacs_cv_tm_gmtoff=yes
2818 else 2819 else
2819 echo "configure: failed program was:" >&5 2820 echo "configure: failed program was:" >&5
2820 cat conftest.$ac_ext >&5 2821 cat conftest.$ac_ext >&5
2832 2833
2833 fi 2834 fi
2834 2835
2835 2836
2836 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 2837 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2837 echo "configure:2838: checking for ${CC-cc} option to accept ANSI C" >&5 2838 echo "configure:2839: checking for ${CC-cc} option to accept ANSI C" >&5
2838 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then 2839 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6 2840 echo $ac_n "(cached) $ac_c" 1>&6
2840 else 2841 else
2841 ac_cv_prog_cc_stdc=no 2842 ac_cv_prog_cc_stdc=no
2842 ac_save_CC="$CC" 2843 ac_save_CC="$CC"
2849 # SVR4 -Xc -D__EXTENSIONS__ 2850 # SVR4 -Xc -D__EXTENSIONS__
2850 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2851 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2851 do 2852 do
2852 CC="$ac_save_CC $ac_arg" 2853 CC="$ac_save_CC $ac_arg"
2853 cat > conftest.$ac_ext <<EOF 2854 cat > conftest.$ac_ext <<EOF
2854 #line 2855 "configure" 2855 #line 2856 "configure"
2855 #include "confdefs.h" 2856 #include "confdefs.h"
2856 #include <stdarg.h> 2857 #include <stdarg.h>
2857 #include <stdio.h> 2858 #include <stdio.h>
2858 #include <sys/types.h> 2859 #include <sys/types.h>
2859 #include <sys/stat.h> 2860 #include <sys/stat.h>
2883 char **argv; 2884 char **argv;
2884 int main() { 2885 int main() {
2885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2886 ; return 0; } 2887 ; return 0; }
2887 EOF 2888 EOF
2888 if { (eval echo configure:2889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2889 if { (eval echo configure:2890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2889 rm -rf conftest* 2890 rm -rf conftest*
2890 ac_cv_prog_cc_stdc="$ac_arg"; break 2891 ac_cv_prog_cc_stdc="$ac_arg"; break
2891 else 2892 else
2892 echo "configure: failed program was:" >&5 2893 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5 2894 cat conftest.$ac_ext >&5
2905 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 2906 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
2906 CC="$CC $ac_cv_prog_cc_stdc" ;; 2907 CC="$CC $ac_cv_prog_cc_stdc" ;;
2907 esac 2908 esac
2908 2909
2909 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 2910 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
2910 echo "configure:2911: checking for function prototypes" >&5 2911 echo "configure:2912: checking for function prototypes" >&5
2911 if test "$ac_cv_prog_cc_stdc" != no; then 2912 if test "$ac_cv_prog_cc_stdc" != no; then
2912 echo "$ac_t""yes" 1>&6 2913 echo "$ac_t""yes" 1>&6
2913 cat >> confdefs.h <<\EOF 2914 cat >> confdefs.h <<\EOF
2914 #define PROTOTYPES 1 2915 #define PROTOTYPES 1
2915 EOF 2916 EOF
2917 else 2918 else
2918 echo "$ac_t""no" 1>&6 2919 echo "$ac_t""no" 1>&6
2919 fi 2920 fi
2920 2921
2921 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 2922 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
2922 echo "configure:2923: checking for working volatile" >&5 2923 echo "configure:2924: checking for working volatile" >&5
2923 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then 2924 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6 2925 echo $ac_n "(cached) $ac_c" 1>&6
2925 else 2926 else
2926 cat > conftest.$ac_ext <<EOF 2927 cat > conftest.$ac_ext <<EOF
2927 #line 2928 "configure" 2928 #line 2929 "configure"
2928 #include "confdefs.h" 2929 #include "confdefs.h"
2929 2930
2930 int main() { 2931 int main() {
2931 2932
2932 volatile int x; 2933 volatile int x;
2933 int * volatile y; 2934 int * volatile y;
2934 ; return 0; } 2935 ; return 0; }
2935 EOF 2936 EOF
2936 if { (eval echo configure:2937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2937 if { (eval echo configure:2938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2937 rm -rf conftest* 2938 rm -rf conftest*
2938 ac_cv_c_volatile=yes 2939 ac_cv_c_volatile=yes
2939 else 2940 else
2940 echo "configure: failed program was:" >&5 2941 echo "configure: failed program was:" >&5
2941 cat conftest.$ac_ext >&5 2942 cat conftest.$ac_ext >&5
2952 EOF 2953 EOF
2953 2954
2954 fi 2955 fi
2955 2956
2956 echo $ac_n "checking for working const""... $ac_c" 1>&6 2957 echo $ac_n "checking for working const""... $ac_c" 1>&6
2957 echo "configure:2958: checking for working const" >&5 2958 echo "configure:2959: checking for working const" >&5
2958 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2959 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6 2960 echo $ac_n "(cached) $ac_c" 1>&6
2960 else 2961 else
2961 cat > conftest.$ac_ext <<EOF 2962 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure" 2963 #line 2964 "configure"
2963 #include "confdefs.h" 2964 #include "confdefs.h"
2964 2965
2965 int main() { 2966 int main() {
2966 2967
2967 /* Ultrix mips cc rejects this. */ 2968 /* Ultrix mips cc rejects this. */
2968 typedef int charset[2]; const charset x = {0,0}; 2969 typedef int charset[2]; const charset x;
2969 /* SunOS 4.1.1 cc rejects this. */ 2970 /* SunOS 4.1.1 cc rejects this. */
2970 char const *const *ccp; 2971 char const *const *ccp;
2971 char **p; 2972 char **p;
2972 /* NEC SVR4.0.2 mips cc rejects this. */ 2973 /* NEC SVR4.0.2 mips cc rejects this. */
2973 struct point {int x, y;}; 2974 struct point {int x, y;};
3006 const int foo = 10; 3007 const int foo = 10;
3007 } 3008 }
3008 3009
3009 ; return 0; } 3010 ; return 0; }
3010 EOF 3011 EOF
3011 if { (eval echo configure:3012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3012 if { (eval echo configure:3013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3012 rm -rf conftest* 3013 rm -rf conftest*
3013 ac_cv_c_const=yes 3014 ac_cv_c_const=yes
3014 else 3015 else
3015 echo "configure: failed program was:" >&5 3016 echo "configure: failed program was:" >&5
3016 cat conftest.$ac_ext >&5 3017 cat conftest.$ac_ext >&5
3027 EOF 3028 EOF
3028 3029
3029 fi 3030 fi
3030 3031
3031 echo $ac_n "checking for void * support""... $ac_c" 1>&6 3032 echo $ac_n "checking for void * support""... $ac_c" 1>&6
3032 echo "configure:3033: checking for void * support" >&5 3033 echo "configure:3034: checking for void * support" >&5
3033 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then 3034 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6 3035 echo $ac_n "(cached) $ac_c" 1>&6
3035 else 3036 else
3036 cat > conftest.$ac_ext <<EOF 3037 cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure" 3038 #line 3039 "configure"
3038 #include "confdefs.h" 3039 #include "confdefs.h"
3039 3040
3040 int main() { 3041 int main() {
3041 void * foo; 3042 void * foo;
3042 ; return 0; } 3043 ; return 0; }
3043 EOF 3044 EOF
3044 if { (eval echo configure:3045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3045 if { (eval echo configure:3046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3045 rm -rf conftest* 3046 rm -rf conftest*
3046 emacs_cv_void_star=yes 3047 emacs_cv_void_star=yes
3047 else 3048 else
3048 echo "configure: failed program was:" >&5 3049 echo "configure: failed program was:" >&5
3049 cat conftest.$ac_ext >&5 3050 cat conftest.$ac_ext >&5
3065 EOF 3066 EOF
3066 3067
3067 fi 3068 fi
3068 3069
3069 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3070 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3070 echo "configure:3071: checking whether ${MAKE-make} sets \${MAKE}" >&5 3071 echo "configure:3072: checking whether ${MAKE-make} sets \${MAKE}" >&5
3071 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3072 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3072 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 3073 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6 3074 echo $ac_n "(cached) $ac_c" 1>&6
3074 else 3075 else
3075 cat > conftestmake <<\EOF 3076 cat > conftestmake <<\EOF
3093 SET_MAKE="MAKE=${MAKE-make}" 3094 SET_MAKE="MAKE=${MAKE-make}"
3094 fi 3095 fi
3095 3096
3096 3097
3097 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3098 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3098 echo "configure:3099: checking for long file names" >&5 3099 echo "configure:3100: checking for long file names" >&5
3099 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 3100 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6 3101 echo $ac_n "(cached) $ac_c" 1>&6
3101 else 3102 else
3102 ac_cv_sys_long_file_names=yes 3103 ac_cv_sys_long_file_names=yes
3103 # Test for long file names in all the places we know might matter: 3104 # Test for long file names in all the places we know might matter:
3144 # If we find X, set shell vars x_includes and x_libraries to the 3145 # If we find X, set shell vars x_includes and x_libraries to the
3145 # paths, otherwise set no_x=yes. 3146 # paths, otherwise set no_x=yes.
3146 # Uses ac_ vars as temps to allow command line to override cache and checks. 3147 # Uses ac_ vars as temps to allow command line to override cache and checks.
3147 # --without-x overrides everything else, but does not touch the cache. 3148 # --without-x overrides everything else, but does not touch the cache.
3148 echo $ac_n "checking for X""... $ac_c" 1>&6 3149 echo $ac_n "checking for X""... $ac_c" 1>&6
3149 echo "configure:3150: checking for X" >&5 3150 echo "configure:3151: checking for X" >&5
3150 3151
3151 # Check whether --with-x or --without-x was given. 3152 # Check whether --with-x or --without-x was given.
3152 if test "${with_x+set}" = set; then 3153 if test "${with_x+set}" = set; then
3153 withval="$with_x" 3154 withval="$with_x"
3154 : 3155 :
3206 # Guess where to find include files, by looking for this one X11 .h file. 3207 # Guess where to find include files, by looking for this one X11 .h file.
3207 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 3208 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3208 3209
3209 # First, try using that file with no special directory specified. 3210 # First, try using that file with no special directory specified.
3210 cat > conftest.$ac_ext <<EOF 3211 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure" 3212 #line 3213 "configure"
3212 #include "confdefs.h" 3213 #include "confdefs.h"
3213 #include <$x_direct_test_include> 3214 #include <$x_direct_test_include>
3214 EOF 3215 EOF
3215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3216 { (eval echo configure:3217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3217 { (eval echo configure:3218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3218 if test -z "$ac_err"; then 3219 if test -z "$ac_err"; then
3219 rm -rf conftest* 3220 rm -rf conftest*
3220 # We can compile using X headers with no special include directory. 3221 # We can compile using X headers with no special include directory.
3221 ac_x_includes= 3222 ac_x_includes=
3280 # See if we find them without any special options. 3281 # See if we find them without any special options.
3281 # Don't add to $LIBS permanently. 3282 # Don't add to $LIBS permanently.
3282 ac_save_LIBS="$LIBS" 3283 ac_save_LIBS="$LIBS"
3283 LIBS="-l$x_direct_test_library $LIBS" 3284 LIBS="-l$x_direct_test_library $LIBS"
3284 cat > conftest.$ac_ext <<EOF 3285 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure" 3286 #line 3287 "configure"
3286 #include "confdefs.h" 3287 #include "confdefs.h"
3287 3288
3288 int main() { 3289 int main() {
3289 ${x_direct_test_function}() 3290 ${x_direct_test_function}()
3290 ; return 0; } 3291 ; return 0; }
3291 EOF 3292 EOF
3292 if { (eval echo configure:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3293 if { (eval echo configure:3294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3293 rm -rf conftest* 3294 rm -rf conftest*
3294 LIBS="$ac_save_LIBS" 3295 LIBS="$ac_save_LIBS"
3295 # We can link X programs with no special library path. 3296 # We can link X programs with no special library path.
3296 ac_x_libraries= 3297 ac_x_libraries=
3297 else 3298 else
3462 #### Extract some information from the operating system and machine files. 3463 #### Extract some information from the operating system and machine files.
3463 3464
3464 echo "checking the machine- and system-dependent files to find out 3465 echo "checking the machine- and system-dependent files to find out
3465 - which libraries the lib-src programs will want, and 3466 - which libraries the lib-src programs will want, and
3466 - whether the GNU malloc routines are usable" 1>&6 3467 - whether the GNU malloc routines are usable" 1>&6
3467 echo "configure:3468: checking the machine- and system-dependent files to find out 3468 echo "configure:3469: checking the machine- and system-dependent files to find out
3468 - which libraries the lib-src programs will want, and 3469 - which libraries the lib-src programs will want, and
3469 - whether the GNU malloc routines are usable" >&5 3470 - whether the GNU malloc routines are usable" >&5
3470 3471
3471 ### First figure out CFLAGS (which we use for running the compiler here) 3472 ### First figure out CFLAGS (which we use for running the compiler here)
3472 ### and REAL_CFLAGS (which we use for real compilation). 3473 ### and REAL_CFLAGS (which we use for real compilation).
3596 # Do the opsystem or machine files prohibit the use of the GNU malloc? 3597 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3597 # Assume not, until told otherwise. 3598 # Assume not, until told otherwise.
3598 GNU_MALLOC=yes 3599 GNU_MALLOC=yes
3599 doug_lea_malloc=yes 3600 doug_lea_malloc=yes
3600 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3601 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3601 echo "configure:3602: checking for malloc_get_state" >&5 3602 echo "configure:3603: checking for malloc_get_state" >&5
3602 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 3603 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6 3604 echo $ac_n "(cached) $ac_c" 1>&6
3604 else 3605 else
3605 cat > conftest.$ac_ext <<EOF 3606 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure" 3607 #line 3608 "configure"
3607 #include "confdefs.h" 3608 #include "confdefs.h"
3608 /* System header to define __stub macros and hopefully few prototypes, 3609 /* System header to define __stub macros and hopefully few prototypes,
3609 which can conflict with char malloc_get_state(); below. */ 3610 which can conflict with char malloc_get_state(); below. */
3610 #include <assert.h> 3611 #include <assert.h>
3611 /* Override any gcc2 internal prototype to avoid an error. */ 3612 /* Override any gcc2 internal prototype to avoid an error. */
3624 malloc_get_state(); 3625 malloc_get_state();
3625 #endif 3626 #endif
3626 3627
3627 ; return 0; } 3628 ; return 0; }
3628 EOF 3629 EOF
3629 if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3630 if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3630 rm -rf conftest* 3631 rm -rf conftest*
3631 eval "ac_cv_func_malloc_get_state=yes" 3632 eval "ac_cv_func_malloc_get_state=yes"
3632 else 3633 else
3633 echo "configure: failed program was:" >&5 3634 echo "configure: failed program was:" >&5
3634 cat conftest.$ac_ext >&5 3635 cat conftest.$ac_ext >&5
3645 echo "$ac_t""no" 1>&6 3646 echo "$ac_t""no" 1>&6
3646 doug_lea_malloc=no 3647 doug_lea_malloc=no
3647 fi 3648 fi
3648 3649
3649 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3650 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3650 echo "configure:3651: checking for malloc_set_state" >&5 3651 echo "configure:3652: checking for malloc_set_state" >&5
3651 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 3652 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6 3653 echo $ac_n "(cached) $ac_c" 1>&6
3653 else 3654 else
3654 cat > conftest.$ac_ext <<EOF 3655 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure" 3656 #line 3657 "configure"
3656 #include "confdefs.h" 3657 #include "confdefs.h"
3657 /* System header to define __stub macros and hopefully few prototypes, 3658 /* System header to define __stub macros and hopefully few prototypes,
3658 which can conflict with char malloc_set_state(); below. */ 3659 which can conflict with char malloc_set_state(); below. */
3659 #include <assert.h> 3660 #include <assert.h>
3660 /* Override any gcc2 internal prototype to avoid an error. */ 3661 /* Override any gcc2 internal prototype to avoid an error. */
3673 malloc_set_state(); 3674 malloc_set_state();
3674 #endif 3675 #endif
3675 3676
3676 ; return 0; } 3677 ; return 0; }
3677 EOF 3678 EOF
3678 if { (eval echo configure:3679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3679 rm -rf conftest* 3680 rm -rf conftest*
3680 eval "ac_cv_func_malloc_set_state=yes" 3681 eval "ac_cv_func_malloc_set_state=yes"
3681 else 3682 else
3682 echo "configure: failed program was:" >&5 3683 echo "configure: failed program was:" >&5
3683 cat conftest.$ac_ext >&5 3684 cat conftest.$ac_ext >&5
3694 echo "$ac_t""no" 1>&6 3695 echo "$ac_t""no" 1>&6
3695 doug_lea_malloc=no 3696 doug_lea_malloc=no
3696 fi 3697 fi
3697 3698
3698 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3699 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3699 echo "configure:3700: checking whether __after_morecore_hook exists" >&5 3700 echo "configure:3701: checking whether __after_morecore_hook exists" >&5
3700 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 3701 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6 3702 echo $ac_n "(cached) $ac_c" 1>&6
3702 else 3703 else
3703 cat > conftest.$ac_ext <<EOF 3704 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure" 3705 #line 3706 "configure"
3705 #include "confdefs.h" 3706 #include "confdefs.h"
3706 extern void (* __after_morecore_hook)(); 3707 extern void (* __after_morecore_hook)();
3707 int main() { 3708 int main() {
3708 __after_morecore_hook = 0 3709 __after_morecore_hook = 0
3709 ; return 0; } 3710 ; return 0; }
3710 EOF 3711 EOF
3711 if { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3712 rm -rf conftest* 3713 rm -rf conftest*
3713 emacs_cv_var___after_morecore_hook=yes 3714 emacs_cv_var___after_morecore_hook=yes
3714 else 3715 else
3715 echo "configure: failed program was:" >&5 3716 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5 3717 cat conftest.$ac_ext >&5
3753 fi 3754 fi
3754 3755
3755 LIBS="$libsrc_libs $LIBS" 3756 LIBS="$libsrc_libs $LIBS"
3756 3757
3757 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3758 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3758 echo "configure:3759: checking for dnet_ntoa in -ldnet" >&5 3759 echo "configure:3760: checking for dnet_ntoa in -ldnet" >&5
3759 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3760 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6 3762 echo $ac_n "(cached) $ac_c" 1>&6
3762 else 3763 else
3763 ac_save_LIBS="$LIBS" 3764 ac_save_LIBS="$LIBS"
3764 LIBS="-ldnet $LIBS" 3765 LIBS="-ldnet $LIBS"
3765 cat > conftest.$ac_ext <<EOF 3766 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure" 3767 #line 3768 "configure"
3767 #include "confdefs.h" 3768 #include "confdefs.h"
3768 /* Override any gcc2 internal prototype to avoid an error. */ 3769 /* Override any gcc2 internal prototype to avoid an error. */
3769 /* We use char because int might match the return type of a gcc2 3770 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */ 3771 builtin and then its argument prototype would still apply. */
3771 char dnet_ntoa(); 3772 char dnet_ntoa();
3772 3773
3773 int main() { 3774 int main() {
3774 dnet_ntoa() 3775 dnet_ntoa()
3775 ; return 0; } 3776 ; return 0; }
3776 EOF 3777 EOF
3777 if { (eval echo configure:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3778 if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3778 rm -rf conftest* 3779 rm -rf conftest*
3779 eval "ac_cv_lib_$ac_lib_var=yes" 3780 eval "ac_cv_lib_$ac_lib_var=yes"
3780 else 3781 else
3781 echo "configure: failed program was:" >&5 3782 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5 3783 cat conftest.$ac_ext >&5
3801 echo "$ac_t""no" 1>&6 3802 echo "$ac_t""no" 1>&6
3802 fi 3803 fi
3803 3804
3804 3805
3805 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 3806 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3806 echo "configure:3807: checking for main in -lXbsd" >&5 3807 echo "configure:3808: checking for main in -lXbsd" >&5
3807 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 3808 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6 3810 echo $ac_n "(cached) $ac_c" 1>&6
3810 else 3811 else
3811 ac_save_LIBS="$LIBS" 3812 ac_save_LIBS="$LIBS"
3812 LIBS="-lXbsd $LIBS" 3813 LIBS="-lXbsd $LIBS"
3813 cat > conftest.$ac_ext <<EOF 3814 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure" 3815 #line 3816 "configure"
3815 #include "confdefs.h" 3816 #include "confdefs.h"
3816 3817
3817 int main() { 3818 int main() {
3818 main() 3819 main()
3819 ; return 0; } 3820 ; return 0; }
3820 EOF 3821 EOF
3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3822 if { (eval echo configure:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3822 rm -rf conftest* 3823 rm -rf conftest*
3823 eval "ac_cv_lib_$ac_lib_var=yes" 3824 eval "ac_cv_lib_$ac_lib_var=yes"
3824 else 3825 else
3825 echo "configure: failed program was:" >&5 3826 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5 3827 cat conftest.$ac_ext >&5
3838 echo "$ac_t""no" 1>&6 3839 echo "$ac_t""no" 1>&6
3839 fi 3840 fi
3840 3841
3841 3842
3842 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3843 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3843 echo "configure:3844: checking for cma_open in -lpthreads" >&5 3844 echo "configure:3845: checking for cma_open in -lpthreads" >&5
3844 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3845 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6 3847 echo $ac_n "(cached) $ac_c" 1>&6
3847 else 3848 else
3848 ac_save_LIBS="$LIBS" 3849 ac_save_LIBS="$LIBS"
3849 LIBS="-lpthreads $LIBS" 3850 LIBS="-lpthreads $LIBS"
3850 cat > conftest.$ac_ext <<EOF 3851 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure" 3852 #line 3853 "configure"
3852 #include "confdefs.h" 3853 #include "confdefs.h"
3853 /* Override any gcc2 internal prototype to avoid an error. */ 3854 /* Override any gcc2 internal prototype to avoid an error. */
3854 /* We use char because int might match the return type of a gcc2 3855 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */ 3856 builtin and then its argument prototype would still apply. */
3856 char cma_open(); 3857 char cma_open();
3857 3858
3858 int main() { 3859 int main() {
3859 cma_open() 3860 cma_open()
3860 ; return 0; } 3861 ; return 0; }
3861 EOF 3862 EOF
3862 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3863 if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3863 rm -rf conftest* 3864 rm -rf conftest*
3864 eval "ac_cv_lib_$ac_lib_var=yes" 3865 eval "ac_cv_lib_$ac_lib_var=yes"
3865 else 3866 else
3866 echo "configure: failed program was:" >&5 3867 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5 3868 cat conftest.$ac_ext >&5
3886 echo "$ac_t""no" 1>&6 3887 echo "$ac_t""no" 1>&6
3887 fi 3888 fi
3888 3889
3889 3890
3890 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 3891 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3891 echo "configure:3892: checking for XFree86 in /usr/X386" >&5 3892 echo "configure:3893: checking for XFree86 in /usr/X386" >&5
3892 if test -d /usr/X386/include; then 3893 if test -d /usr/X386/include; then
3893 HAVE_XFREE386=yes 3894 HAVE_XFREE386=yes
3894 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 3895 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3895 else 3896 else
3896 HAVE_XFREE386=no 3897 HAVE_XFREE386=no
3915 export LD_RUN_PATH 3916 export LD_RUN_PATH
3916 fi 3917 fi
3917 3918
3918 if test "${opsys}" = "gnu-linux"; then 3919 if test "${opsys}" = "gnu-linux"; then
3919 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 3920 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3920 echo "configure:3921: checking whether X on GNU/Linux needs -b to link" >&5 3921 echo "configure:3922: checking whether X on GNU/Linux needs -b to link" >&5
3921 cat > conftest.$ac_ext <<EOF 3922 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure" 3923 #line 3924 "configure"
3923 #include "confdefs.h" 3924 #include "confdefs.h"
3924 3925
3925 int main() { 3926 int main() {
3926 XOpenDisplay ("foo"); 3927 XOpenDisplay ("foo");
3927 ; return 0; } 3928 ; return 0; }
3928 EOF 3929 EOF
3929 if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3930 if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3930 rm -rf conftest* 3931 rm -rf conftest*
3931 xlinux_first_failure=no 3932 xlinux_first_failure=no
3932 else 3933 else
3933 echo "configure: failed program was:" >&5 3934 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5 3935 cat conftest.$ac_ext >&5
3944 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 3945 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
3945 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 3946 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
3946 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 3947 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
3947 LIBS="$LIBS -b i486-linuxaout" 3948 LIBS="$LIBS -b i486-linuxaout"
3948 cat > conftest.$ac_ext <<EOF 3949 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure" 3950 #line 3951 "configure"
3950 #include "confdefs.h" 3951 #include "confdefs.h"
3951 3952
3952 int main() { 3953 int main() {
3953 XOpenDisplay ("foo"); 3954 XOpenDisplay ("foo");
3954 ; return 0; } 3955 ; return 0; }
3955 EOF 3956 EOF
3956 if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3957 if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3957 rm -rf conftest* 3958 rm -rf conftest*
3958 xlinux_second_failure=no 3959 xlinux_second_failure=no
3959 else 3960 else
3960 echo "configure: failed program was:" >&5 3961 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5 3962 cat conftest.$ac_ext >&5
3981 3982
3982 for ac_func in XrmSetDatabase XScreenResourceString \ 3983 for ac_func in XrmSetDatabase XScreenResourceString \
3983 XScreenNumberOfScreen XSetWMProtocols 3984 XScreenNumberOfScreen XSetWMProtocols
3984 do 3985 do
3985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3986 echo "configure:3987: checking for $ac_func" >&5 3987 echo "configure:3988: checking for $ac_func" >&5
3987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6 3989 echo $ac_n "(cached) $ac_c" 1>&6
3989 else 3990 else
3990 cat > conftest.$ac_ext <<EOF 3991 cat > conftest.$ac_ext <<EOF
3991 #line 3992 "configure" 3992 #line 3993 "configure"
3992 #include "confdefs.h" 3993 #include "confdefs.h"
3993 /* System header to define __stub macros and hopefully few prototypes, 3994 /* System header to define __stub macros and hopefully few prototypes,
3994 which can conflict with char $ac_func(); below. */ 3995 which can conflict with char $ac_func(); below. */
3995 #include <assert.h> 3996 #include <assert.h>
3996 /* Override any gcc2 internal prototype to avoid an error. */ 3997 /* Override any gcc2 internal prototype to avoid an error. */
4009 $ac_func(); 4010 $ac_func();
4010 #endif 4011 #endif
4011 4012
4012 ; return 0; } 4013 ; return 0; }
4013 EOF 4014 EOF
4014 if { (eval echo configure:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4015 if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4015 rm -rf conftest* 4016 rm -rf conftest*
4016 eval "ac_cv_func_$ac_func=yes" 4017 eval "ac_cv_func_$ac_func=yes"
4017 else 4018 else
4018 echo "configure: failed program was:" >&5 4019 echo "configure: failed program was:" >&5
4019 cat conftest.$ac_ext >&5 4020 cat conftest.$ac_ext >&5
4037 4038
4038 fi 4039 fi
4039 4040
4040 if test "${window_system}" = "x11"; then 4041 if test "${window_system}" = "x11"; then
4041 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 4042 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4042 echo "configure:4043: checking X11 version 6" >&5 4043 echo "configure:4044: checking X11 version 6" >&5
4043 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 4044 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6 4045 echo $ac_n "(cached) $ac_c" 1>&6
4045 else 4046 else
4046 cat > conftest.$ac_ext <<EOF 4047 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure" 4048 #line 4049 "configure"
4048 #include "confdefs.h" 4049 #include "confdefs.h"
4049 #include <X11/Xlib.h> 4050 #include <X11/Xlib.h>
4050 int main() { 4051 int main() {
4051 #if XlibSpecificationRelease < 6 4052 #if XlibSpecificationRelease < 6
4052 fail; 4053 fail;
4053 #endif 4054 #endif
4054 4055
4055 ; return 0; } 4056 ; return 0; }
4056 EOF 4057 EOF
4057 if { (eval echo configure:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4058 if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4058 rm -rf conftest* 4059 rm -rf conftest*
4059 emacs_cv_x11_version_6=yes 4060 emacs_cv_x11_version_6=yes
4060 else 4061 else
4061 echo "configure: failed program was:" >&5 4062 echo "configure: failed program was:" >&5
4062 cat conftest.$ac_ext >&5 4063 cat conftest.$ac_ext >&5
4077 fi 4078 fi
4078 fi 4079 fi
4079 4080
4080 if test "${window_system}" = "x11"; then 4081 if test "${window_system}" = "x11"; then
4081 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 4082 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4082 echo "configure:4083: checking X11 version 5" >&5 4083 echo "configure:4084: checking X11 version 5" >&5
4083 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 4084 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6 4085 echo $ac_n "(cached) $ac_c" 1>&6
4085 else 4086 else
4086 cat > conftest.$ac_ext <<EOF 4087 cat > conftest.$ac_ext <<EOF
4087 #line 4088 "configure" 4088 #line 4089 "configure"
4088 #include "confdefs.h" 4089 #include "confdefs.h"
4089 #include <X11/Xlib.h> 4090 #include <X11/Xlib.h>
4090 int main() { 4091 int main() {
4091 #if XlibSpecificationRelease < 5 4092 #if XlibSpecificationRelease < 5
4092 fail; 4093 fail;
4093 #endif 4094 #endif
4094 4095
4095 ; return 0; } 4096 ; return 0; }
4096 EOF 4097 EOF
4097 if { (eval echo configure:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4098 if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4098 rm -rf conftest* 4099 rm -rf conftest*
4099 emacs_cv_x11_version_5=yes 4100 emacs_cv_x11_version_5=yes
4100 else 4101 else
4101 echo "configure: failed program was:" >&5 4102 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5 4103 cat conftest.$ac_ext >&5
4120 fi 4121 fi
4121 4122
4122 if test x"${USE_X_TOOLKIT}" = xmaybe; then 4123 if test x"${USE_X_TOOLKIT}" = xmaybe; then
4123 if test x"${HAVE_X11R5}" = xyes; then 4124 if test x"${HAVE_X11R5}" = xyes; then
4124 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 4125 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4125 echo "configure:4126: checking X11 version 5 with Xaw" >&5 4126 echo "configure:4127: checking X11 version 5 with Xaw" >&5
4126 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 4127 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6 4128 echo $ac_n "(cached) $ac_c" 1>&6
4128 else 4129 else
4129 cat > conftest.$ac_ext <<EOF 4130 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure" 4131 #line 4132 "configure"
4131 #include "confdefs.h" 4132 #include "confdefs.h"
4132 4133
4133 #include <X11/Intrinsic.h> 4134 #include <X11/Intrinsic.h>
4134 #include <X11/Xaw/Simple.h> 4135 #include <X11/Xaw/Simple.h>
4135 int main() { 4136 int main() {
4136 4137
4137 ; return 0; } 4138 ; return 0; }
4138 EOF 4139 EOF
4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4140 if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4140 rm -rf conftest* 4141 rm -rf conftest*
4141 emacs_cv_x11_version_5_with_xaw=yes 4142 emacs_cv_x11_version_5_with_xaw=yes
4142 else 4143 else
4143 echo "configure: failed program was:" >&5 4144 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5 4145 cat conftest.$ac_ext >&5
4162 4163
4163 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 4164 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
4164 4165
4165 if test "${USE_X_TOOLKIT}" != "none"; then 4166 if test "${USE_X_TOOLKIT}" != "none"; then
4166 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 4167 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4167 echo "configure:4168: checking X11 toolkit version" >&5 4168 echo "configure:4169: checking X11 toolkit version" >&5
4168 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 4169 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6 4170 echo $ac_n "(cached) $ac_c" 1>&6
4170 else 4171 else
4171 cat > conftest.$ac_ext <<EOF 4172 cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure" 4173 #line 4174 "configure"
4173 #include "confdefs.h" 4174 #include "confdefs.h"
4174 #include <X11/Intrinsic.h> 4175 #include <X11/Intrinsic.h>
4175 int main() { 4176 int main() {
4176 #if XtSpecificationRelease < 6 4177 #if XtSpecificationRelease < 6
4177 fail; 4178 fail;
4178 #endif 4179 #endif
4179 4180
4180 ; return 0; } 4181 ; return 0; }
4181 EOF 4182 EOF
4182 if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4183 if { (eval echo configure:4184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4183 rm -rf conftest* 4184 rm -rf conftest*
4184 emacs_cv_x11_toolkit_version_6=yes 4185 emacs_cv_x11_toolkit_version_6=yes
4185 else 4186 else
4186 echo "configure: failed program was:" >&5 4187 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5 4188 cat conftest.$ac_ext >&5
4207 LIBS="-lXt -lSM -lICE $LIBS" 4208 LIBS="-lXt -lSM -lICE $LIBS"
4208 else 4209 else
4209 LIBS="-lXt $LIBS" 4210 LIBS="-lXt $LIBS"
4210 fi 4211 fi
4211 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 4212 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4212 echo "configure:4213: checking for XmuConvertStandardSelection in -lXmu" >&5 4213 echo "configure:4214: checking for XmuConvertStandardSelection in -lXmu" >&5
4213 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 4214 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6 4216 echo $ac_n "(cached) $ac_c" 1>&6
4216 else 4217 else
4217 ac_save_LIBS="$LIBS" 4218 ac_save_LIBS="$LIBS"
4218 LIBS="-lXmu $LIBS" 4219 LIBS="-lXmu $LIBS"
4219 cat > conftest.$ac_ext <<EOF 4220 cat > conftest.$ac_ext <<EOF
4220 #line 4221 "configure" 4221 #line 4222 "configure"
4221 #include "confdefs.h" 4222 #include "confdefs.h"
4222 /* Override any gcc2 internal prototype to avoid an error. */ 4223 /* Override any gcc2 internal prototype to avoid an error. */
4223 /* We use char because int might match the return type of a gcc2 4224 /* We use char because int might match the return type of a gcc2
4224 builtin and then its argument prototype would still apply. */ 4225 builtin and then its argument prototype would still apply. */
4225 char XmuConvertStandardSelection(); 4226 char XmuConvertStandardSelection();
4226 4227
4227 int main() { 4228 int main() {
4228 XmuConvertStandardSelection() 4229 XmuConvertStandardSelection()
4229 ; return 0; } 4230 ; return 0; }
4230 EOF 4231 EOF
4231 if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4232 if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4232 rm -rf conftest* 4233 rm -rf conftest*
4233 eval "ac_cv_lib_$ac_lib_var=yes" 4234 eval "ac_cv_lib_$ac_lib_var=yes"
4234 else 4235 else
4235 echo "configure: failed program was:" >&5 4236 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5 4237 cat conftest.$ac_ext >&5
4258 LIBS="$OLDLIBS" 4259 LIBS="$OLDLIBS"
4259 fi 4260 fi
4260 4261
4261 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 4262 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4262 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 4263 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4263 echo "configure:4264: checking for Motif version 2.1" >&5 4264 echo "configure:4265: checking for Motif version 2.1" >&5
4264 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 4265 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6 4266 echo $ac_n "(cached) $ac_c" 1>&6
4266 else 4267 else
4267 cat > conftest.$ac_ext <<EOF 4268 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure" 4269 #line 4270 "configure"
4269 #include "confdefs.h" 4270 #include "confdefs.h"
4270 #include <Xm/Xm.h> 4271 #include <Xm/Xm.h>
4271 int main() { 4272 int main() {
4272 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 4273 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4273 int x = 5; 4274 int x = 5;
4274 #else 4275 #else
4275 Motif version prior to 2.1. 4276 Motif version prior to 2.1.
4276 #endif 4277 #endif
4277 ; return 0; } 4278 ; return 0; }
4278 EOF 4279 EOF
4279 if { (eval echo configure:4280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4280 if { (eval echo configure:4281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4280 rm -rf conftest* 4281 rm -rf conftest*
4281 emacs_cv_motif_version_2_1=yes 4282 emacs_cv_motif_version_2_1=yes
4282 else 4283 else
4283 echo "configure: failed program was:" >&5 4284 echo "configure: failed program was:" >&5
4284 cat conftest.$ac_ext >&5 4285 cat conftest.$ac_ext >&5
4294 cat >> confdefs.h <<\EOF 4295 cat >> confdefs.h <<\EOF
4295 #define HAVE_MOTIF_2_1 1 4296 #define HAVE_MOTIF_2_1 1
4296 EOF 4297 EOF
4297 4298
4298 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 4299 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4299 echo "configure:4300: checking for XpCreateContext in -lXp" >&5 4300 echo "configure:4301: checking for XpCreateContext in -lXp" >&5
4300 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 4301 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6 4303 echo $ac_n "(cached) $ac_c" 1>&6
4303 else 4304 else
4304 ac_save_LIBS="$LIBS" 4305 ac_save_LIBS="$LIBS"
4305 LIBS="-lXp $LIBS" 4306 LIBS="-lXp $LIBS"
4306 cat > conftest.$ac_ext <<EOF 4307 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure" 4308 #line 4309 "configure"
4308 #include "confdefs.h" 4309 #include "confdefs.h"
4309 /* Override any gcc2 internal prototype to avoid an error. */ 4310 /* Override any gcc2 internal prototype to avoid an error. */
4310 /* We use char because int might match the return type of a gcc2 4311 /* We use char because int might match the return type of a gcc2
4311 builtin and then its argument prototype would still apply. */ 4312 builtin and then its argument prototype would still apply. */
4312 char XpCreateContext(); 4313 char XpCreateContext();
4313 4314
4314 int main() { 4315 int main() {
4315 XpCreateContext() 4316 XpCreateContext()
4316 ; return 0; } 4317 ; return 0; }
4317 EOF 4318 EOF
4318 if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4319 rm -rf conftest* 4320 rm -rf conftest*
4320 eval "ac_cv_lib_$ac_lib_var=yes" 4321 eval "ac_cv_lib_$ac_lib_var=yes"
4321 else 4322 else
4322 echo "configure: failed program was:" >&5 4323 echo "configure: failed program was:" >&5
4323 cat conftest.$ac_ext >&5 4324 cat conftest.$ac_ext >&5
4351 if test "${USE_X_TOOLKIT}" != "none"; then 4352 if test "${USE_X_TOOLKIT}" != "none"; then
4352 old_c_flags="${CFLAGS}" 4353 old_c_flags="${CFLAGS}"
4353 CFLAGS="${LD_SWITCH_X_SITE}" 4354 CFLAGS="${LD_SWITCH_X_SITE}"
4354 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 4355 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4355 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4356 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4356 echo "configure:4357: checking for X11/Xaw3d/Scrollbar.h" >&5 4357 echo "configure:4358: checking for X11/Xaw3d/Scrollbar.h" >&5
4357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6 4359 echo $ac_n "(cached) $ac_c" 1>&6
4359 else 4360 else
4360 cat > conftest.$ac_ext <<EOF 4361 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure" 4362 #line 4363 "configure"
4362 #include "confdefs.h" 4363 #include "confdefs.h"
4363 #include <X11/Xaw3d/Scrollbar.h> 4364 #include <X11/Xaw3d/Scrollbar.h>
4364 EOF 4365 EOF
4365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4366 { (eval echo configure:4367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4367 { (eval echo configure:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4368 if test -z "$ac_err"; then 4369 if test -z "$ac_err"; then
4369 rm -rf conftest* 4370 rm -rf conftest*
4370 eval "ac_cv_header_$ac_safe=yes" 4371 eval "ac_cv_header_$ac_safe=yes"
4371 else 4372 else
4378 rm -f conftest* 4379 rm -f conftest*
4379 fi 4380 fi
4380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4381 echo "$ac_t""yes" 1>&6 4382 echo "$ac_t""yes" 1>&6
4382 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 4383 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4383 echo "configure:4384: checking for XawScrollbarSetThumb in -lXaw3d" >&5 4384 echo "configure:4385: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4384 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4385 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6 4387 echo $ac_n "(cached) $ac_c" 1>&6
4387 else 4388 else
4388 ac_save_LIBS="$LIBS" 4389 ac_save_LIBS="$LIBS"
4389 LIBS="-lXaw3d -lX11 $LIBS" 4390 LIBS="-lXaw3d -lX11 $LIBS"
4390 cat > conftest.$ac_ext <<EOF 4391 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure" 4392 #line 4393 "configure"
4392 #include "confdefs.h" 4393 #include "confdefs.h"
4393 /* Override any gcc2 internal prototype to avoid an error. */ 4394 /* Override any gcc2 internal prototype to avoid an error. */
4394 /* We use char because int might match the return type of a gcc2 4395 /* We use char because int might match the return type of a gcc2
4395 builtin and then its argument prototype would still apply. */ 4396 builtin and then its argument prototype would still apply. */
4396 char XawScrollbarSetThumb(); 4397 char XawScrollbarSetThumb();
4397 4398
4398 int main() { 4399 int main() {
4399 XawScrollbarSetThumb() 4400 XawScrollbarSetThumb()
4400 ; return 0; } 4401 ; return 0; }
4401 EOF 4402 EOF
4402 if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4403 if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4403 rm -rf conftest* 4404 rm -rf conftest*
4404 eval "ac_cv_lib_$ac_lib_var=yes" 4405 eval "ac_cv_lib_$ac_lib_var=yes"
4405 else 4406 else
4406 echo "configure: failed program was:" >&5 4407 echo "configure: failed program was:" >&5
4407 cat conftest.$ac_ext >&5 4408 cat conftest.$ac_ext >&5
4461 if test "${with_xpm}" != "no"; then 4462 if test "${with_xpm}" != "no"; then
4462 old_c_flags="${CFLAGS}" 4463 old_c_flags="${CFLAGS}"
4463 CFLAGS="${LD_SWITCH_X_SITE}" 4464 CFLAGS="${LD_SWITCH_X_SITE}"
4464 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 4465 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4465 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 4466 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4466 echo "configure:4467: checking for X11/xpm.h" >&5 4467 echo "configure:4468: checking for X11/xpm.h" >&5
4467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6 4469 echo $ac_n "(cached) $ac_c" 1>&6
4469 else 4470 else
4470 cat > conftest.$ac_ext <<EOF 4471 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure" 4472 #line 4473 "configure"
4472 #include "confdefs.h" 4473 #include "confdefs.h"
4473 #include <X11/xpm.h> 4474 #include <X11/xpm.h>
4474 EOF 4475 EOF
4475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4476 { (eval echo configure:4477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4477 { (eval echo configure:4478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4478 if test -z "$ac_err"; then 4479 if test -z "$ac_err"; then
4479 rm -rf conftest* 4480 rm -rf conftest*
4480 eval "ac_cv_header_$ac_safe=yes" 4481 eval "ac_cv_header_$ac_safe=yes"
4481 else 4482 else
4488 rm -f conftest* 4489 rm -f conftest*
4489 fi 4490 fi
4490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4491 echo "$ac_t""yes" 1>&6 4492 echo "$ac_t""yes" 1>&6
4492 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 4493 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4493 echo "configure:4494: checking for XpmReadFileToPixmap in -lXpm" >&5 4494 echo "configure:4495: checking for XpmReadFileToPixmap in -lXpm" >&5
4494 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 4495 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6 4497 echo $ac_n "(cached) $ac_c" 1>&6
4497 else 4498 else
4498 ac_save_LIBS="$LIBS" 4499 ac_save_LIBS="$LIBS"
4499 LIBS="-lXpm -lX11 $LIBS" 4500 LIBS="-lXpm -lX11 $LIBS"
4500 cat > conftest.$ac_ext <<EOF 4501 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure" 4502 #line 4503 "configure"
4502 #include "confdefs.h" 4503 #include "confdefs.h"
4503 /* Override any gcc2 internal prototype to avoid an error. */ 4504 /* Override any gcc2 internal prototype to avoid an error. */
4504 /* We use char because int might match the return type of a gcc2 4505 /* We use char because int might match the return type of a gcc2
4505 builtin and then its argument prototype would still apply. */ 4506 builtin and then its argument prototype would still apply. */
4506 char XpmReadFileToPixmap(); 4507 char XpmReadFileToPixmap();
4507 4508
4508 int main() { 4509 int main() {
4509 XpmReadFileToPixmap() 4510 XpmReadFileToPixmap()
4510 ; return 0; } 4511 ; return 0; }
4511 EOF 4512 EOF
4512 if { (eval echo configure:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4513 if { (eval echo configure:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4513 rm -rf conftest* 4514 rm -rf conftest*
4514 eval "ac_cv_lib_$ac_lib_var=yes" 4515 eval "ac_cv_lib_$ac_lib_var=yes"
4515 else 4516 else
4516 echo "configure: failed program was:" >&5 4517 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5 4518 cat conftest.$ac_ext >&5
4550 if test "${with_jpeg}" != "no"; then 4551 if test "${with_jpeg}" != "no"; then
4551 old_c_flags="${CFLAGS}" 4552 old_c_flags="${CFLAGS}"
4552 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4553 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4553 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` 4554 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
4554 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 4555 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
4555 echo "configure:4556: checking for jerror.h" >&5 4556 echo "configure:4557: checking for jerror.h" >&5
4556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6 4558 echo $ac_n "(cached) $ac_c" 1>&6
4558 else 4559 else
4559 cat > conftest.$ac_ext <<EOF 4560 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure" 4561 #line 4562 "configure"
4561 #include "confdefs.h" 4562 #include "confdefs.h"
4562 #include <jerror.h> 4563 #include <jerror.h>
4563 EOF 4564 EOF
4564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4565 { (eval echo configure:4566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4566 { (eval echo configure:4567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4567 if test -z "$ac_err"; then 4568 if test -z "$ac_err"; then
4568 rm -rf conftest* 4569 rm -rf conftest*
4569 eval "ac_cv_header_$ac_safe=yes" 4570 eval "ac_cv_header_$ac_safe=yes"
4570 else 4571 else
4577 rm -f conftest* 4578 rm -f conftest*
4578 fi 4579 fi
4579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4580 echo "$ac_t""yes" 1>&6 4581 echo "$ac_t""yes" 1>&6
4581 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 4582 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4582 echo "configure:4583: checking for jpeg_destroy_compress in -ljpeg" >&5 4583 echo "configure:4584: checking for jpeg_destroy_compress in -ljpeg" >&5
4583 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 4584 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6 4586 echo $ac_n "(cached) $ac_c" 1>&6
4586 else 4587 else
4587 ac_save_LIBS="$LIBS" 4588 ac_save_LIBS="$LIBS"
4588 LIBS="-ljpeg -lX11 $LIBS" 4589 LIBS="-ljpeg -lX11 $LIBS"
4589 cat > conftest.$ac_ext <<EOF 4590 cat > conftest.$ac_ext <<EOF
4590 #line 4591 "configure" 4591 #line 4592 "configure"
4591 #include "confdefs.h" 4592 #include "confdefs.h"
4592 /* Override any gcc2 internal prototype to avoid an error. */ 4593 /* Override any gcc2 internal prototype to avoid an error. */
4593 /* We use char because int might match the return type of a gcc2 4594 /* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */ 4595 builtin and then its argument prototype would still apply. */
4595 char jpeg_destroy_compress(); 4596 char jpeg_destroy_compress();
4596 4597
4597 int main() { 4598 int main() {
4598 jpeg_destroy_compress() 4599 jpeg_destroy_compress()
4599 ; return 0; } 4600 ; return 0; }
4600 EOF 4601 EOF
4601 if { (eval echo configure:4602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4602 if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4602 rm -rf conftest* 4603 rm -rf conftest*
4603 eval "ac_cv_lib_$ac_lib_var=yes" 4604 eval "ac_cv_lib_$ac_lib_var=yes"
4604 else 4605 else
4605 echo "configure: failed program was:" >&5 4606 echo "configure: failed program was:" >&5
4606 cat conftest.$ac_ext >&5 4607 cat conftest.$ac_ext >&5
4639 if test "${with_png}" != "no"; then 4640 if test "${with_png}" != "no"; then
4640 old_c_flags="${CFLAGS}" 4641 old_c_flags="${CFLAGS}"
4641 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4642 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4642 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 4643 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4643 echo $ac_n "checking for png.h""... $ac_c" 1>&6 4644 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4644 echo "configure:4645: checking for png.h" >&5 4645 echo "configure:4646: checking for png.h" >&5
4645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6 4647 echo $ac_n "(cached) $ac_c" 1>&6
4647 else 4648 else
4648 cat > conftest.$ac_ext <<EOF 4649 cat > conftest.$ac_ext <<EOF
4649 #line 4650 "configure" 4650 #line 4651 "configure"
4650 #include "confdefs.h" 4651 #include "confdefs.h"
4651 #include <png.h> 4652 #include <png.h>
4652 EOF 4653 EOF
4653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4654 { (eval echo configure:4655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4655 { (eval echo configure:4656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4656 if test -z "$ac_err"; then 4657 if test -z "$ac_err"; then
4657 rm -rf conftest* 4658 rm -rf conftest*
4658 eval "ac_cv_header_$ac_safe=yes" 4659 eval "ac_cv_header_$ac_safe=yes"
4659 else 4660 else
4666 rm -f conftest* 4667 rm -f conftest*
4667 fi 4668 fi
4668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6 4670 echo "$ac_t""yes" 1>&6
4670 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 4671 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4671 echo "configure:4672: checking for png_set_expand in -lpng" >&5 4672 echo "configure:4673: checking for png_set_expand in -lpng" >&5
4672 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` 4673 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6 4675 echo $ac_n "(cached) $ac_c" 1>&6
4675 else 4676 else
4676 ac_save_LIBS="$LIBS" 4677 ac_save_LIBS="$LIBS"
4677 LIBS="-lpng -lX11 -lz -lm $LIBS" 4678 LIBS="-lpng -lX11 -lz -lm $LIBS"
4678 cat > conftest.$ac_ext <<EOF 4679 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure" 4680 #line 4681 "configure"
4680 #include "confdefs.h" 4681 #include "confdefs.h"
4681 /* Override any gcc2 internal prototype to avoid an error. */ 4682 /* Override any gcc2 internal prototype to avoid an error. */
4682 /* We use char because int might match the return type of a gcc2 4683 /* We use char because int might match the return type of a gcc2
4683 builtin and then its argument prototype would still apply. */ 4684 builtin and then its argument prototype would still apply. */
4684 char png_set_expand(); 4685 char png_set_expand();
4685 4686
4686 int main() { 4687 int main() {
4687 png_set_expand() 4688 png_set_expand()
4688 ; return 0; } 4689 ; return 0; }
4689 EOF 4690 EOF
4690 if { (eval echo configure:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4691 rm -rf conftest* 4692 rm -rf conftest*
4692 eval "ac_cv_lib_$ac_lib_var=yes" 4693 eval "ac_cv_lib_$ac_lib_var=yes"
4693 else 4694 else
4694 echo "configure: failed program was:" >&5 4695 echo "configure: failed program was:" >&5
4695 cat conftest.$ac_ext >&5 4696 cat conftest.$ac_ext >&5
4728 if test "${with_tiff}" != "no"; then 4729 if test "${with_tiff}" != "no"; then
4729 old_c_flags="${CFLAGS}" 4730 old_c_flags="${CFLAGS}"
4730 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4731 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4731 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 4732 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4732 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 4733 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4733 echo "configure:4734: checking for tiffio.h" >&5 4734 echo "configure:4735: checking for tiffio.h" >&5
4734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6 4736 echo $ac_n "(cached) $ac_c" 1>&6
4736 else 4737 else
4737 cat > conftest.$ac_ext <<EOF 4738 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure" 4739 #line 4740 "configure"
4739 #include "confdefs.h" 4740 #include "confdefs.h"
4740 #include <tiffio.h> 4741 #include <tiffio.h>
4741 EOF 4742 EOF
4742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4743 { (eval echo configure:4744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4744 { (eval echo configure:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4745 if test -z "$ac_err"; then 4746 if test -z "$ac_err"; then
4746 rm -rf conftest* 4747 rm -rf conftest*
4747 eval "ac_cv_header_$ac_safe=yes" 4748 eval "ac_cv_header_$ac_safe=yes"
4748 else 4749 else
4758 echo "$ac_t""yes" 1>&6 4759 echo "$ac_t""yes" 1>&6
4759 tifflibs="-lX11 -lz -lm" 4760 tifflibs="-lX11 -lz -lm"
4760 # At least one tiff package requires the jpeg library. 4761 # At least one tiff package requires the jpeg library.
4761 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 4762 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
4762 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 4763 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4763 echo "configure:4764: checking for TIFFGetVersion in -ltiff" >&5 4764 echo "configure:4765: checking for TIFFGetVersion in -ltiff" >&5
4764 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 4765 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6 4767 echo $ac_n "(cached) $ac_c" 1>&6
4767 else 4768 else
4768 ac_save_LIBS="$LIBS" 4769 ac_save_LIBS="$LIBS"
4769 LIBS="-ltiff $tifflibs $LIBS" 4770 LIBS="-ltiff $tifflibs $LIBS"
4770 cat > conftest.$ac_ext <<EOF 4771 cat > conftest.$ac_ext <<EOF
4771 #line 4772 "configure" 4772 #line 4773 "configure"
4772 #include "confdefs.h" 4773 #include "confdefs.h"
4773 /* Override any gcc2 internal prototype to avoid an error. */ 4774 /* Override any gcc2 internal prototype to avoid an error. */
4774 /* We use char because int might match the return type of a gcc2 4775 /* We use char because int might match the return type of a gcc2
4775 builtin and then its argument prototype would still apply. */ 4776 builtin and then its argument prototype would still apply. */
4776 char TIFFGetVersion(); 4777 char TIFFGetVersion();
4777 4778
4778 int main() { 4779 int main() {
4779 TIFFGetVersion() 4780 TIFFGetVersion()
4780 ; return 0; } 4781 ; return 0; }
4781 EOF 4782 EOF
4782 if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4783 if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4783 rm -rf conftest* 4784 rm -rf conftest*
4784 eval "ac_cv_lib_$ac_lib_var=yes" 4785 eval "ac_cv_lib_$ac_lib_var=yes"
4785 else 4786 else
4786 echo "configure: failed program was:" >&5 4787 echo "configure: failed program was:" >&5
4787 cat conftest.$ac_ext >&5 4788 cat conftest.$ac_ext >&5
4820 if test "${with_gif}" != "no"; then 4821 if test "${with_gif}" != "no"; then
4821 old_c_flags="${CFLAGS}" 4822 old_c_flags="${CFLAGS}"
4822 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4823 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4823 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 4824 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4824 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 4825 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4825 echo "configure:4826: checking for gif_lib.h" >&5 4826 echo "configure:4827: checking for gif_lib.h" >&5
4826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6 4828 echo $ac_n "(cached) $ac_c" 1>&6
4828 else 4829 else
4829 cat > conftest.$ac_ext <<EOF 4830 cat > conftest.$ac_ext <<EOF
4830 #line 4831 "configure" 4831 #line 4832 "configure"
4831 #include "confdefs.h" 4832 #include "confdefs.h"
4832 #include <gif_lib.h> 4833 #include <gif_lib.h>
4833 EOF 4834 EOF
4834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4835 { (eval echo configure:4836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4836 { (eval echo configure:4837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4837 if test -z "$ac_err"; then 4838 if test -z "$ac_err"; then
4838 rm -rf conftest* 4839 rm -rf conftest*
4839 eval "ac_cv_header_$ac_safe=yes" 4840 eval "ac_cv_header_$ac_safe=yes"
4840 else 4841 else
4847 rm -f conftest* 4848 rm -f conftest*
4848 fi 4849 fi
4849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4850 echo "$ac_t""yes" 1>&6 4851 echo "$ac_t""yes" 1>&6
4851 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 4852 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
4852 echo "configure:4853: checking for DGifOpen in -lungif" >&5 4853 echo "configure:4854: checking for DGifOpen in -lungif" >&5
4853 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` 4854 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
4854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6 4856 echo $ac_n "(cached) $ac_c" 1>&6
4856 else 4857 else
4857 ac_save_LIBS="$LIBS" 4858 ac_save_LIBS="$LIBS"
4858 LIBS="-lungif -lX11 $LIBS" 4859 LIBS="-lungif -lX11 $LIBS"
4859 cat > conftest.$ac_ext <<EOF 4860 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure" 4861 #line 4862 "configure"
4861 #include "confdefs.h" 4862 #include "confdefs.h"
4862 /* Override any gcc2 internal prototype to avoid an error. */ 4863 /* Override any gcc2 internal prototype to avoid an error. */
4863 /* We use char because int might match the return type of a gcc2 4864 /* We use char because int might match the return type of a gcc2
4864 builtin and then its argument prototype would still apply. */ 4865 builtin and then its argument prototype would still apply. */
4865 char DGifOpen(); 4866 char DGifOpen();
4866 4867
4867 int main() { 4868 int main() {
4868 DGifOpen() 4869 DGifOpen()
4869 ; return 0; } 4870 ; return 0; }
4870 EOF 4871 EOF
4871 if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4872 if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4872 rm -rf conftest* 4873 rm -rf conftest*
4873 eval "ac_cv_lib_$ac_lib_var=yes" 4874 eval "ac_cv_lib_$ac_lib_var=yes"
4874 else 4875 else
4875 echo "configure: failed program was:" >&5 4876 echo "configure: failed program was:" >&5
4876 cat conftest.$ac_ext >&5 4877 cat conftest.$ac_ext >&5
4903 fi 4904 fi
4904 fi 4905 fi
4905 4906
4906 # If netdb.h doesn't declare h_errno, we must declare it by hand. 4907 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4907 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 4908 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4908 echo "configure:4909: checking whether netdb declares h_errno" >&5 4909 echo "configure:4910: checking whether netdb declares h_errno" >&5
4909 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 4910 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6 4911 echo $ac_n "(cached) $ac_c" 1>&6
4911 else 4912 else
4912 cat > conftest.$ac_ext <<EOF 4913 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure" 4914 #line 4915 "configure"
4914 #include "confdefs.h" 4915 #include "confdefs.h"
4915 #include <netdb.h> 4916 #include <netdb.h>
4916 int main() { 4917 int main() {
4917 return h_errno; 4918 return h_errno;
4918 ; return 0; } 4919 ; return 0; }
4919 EOF 4920 EOF
4920 if { (eval echo configure:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4921 rm -rf conftest* 4922 rm -rf conftest*
4922 emacs_cv_netdb_declares_h_errno=yes 4923 emacs_cv_netdb_declares_h_errno=yes
4923 else 4924 else
4924 echo "configure: failed program was:" >&5 4925 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5 4926 cat conftest.$ac_ext >&5
4938 fi 4939 fi
4939 4940
4940 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4941 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4941 # for constant arguments. Useless! 4942 # for constant arguments. Useless!
4942 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 4943 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4943 echo "configure:4944: checking for working alloca.h" >&5 4944 echo "configure:4945: checking for working alloca.h" >&5
4944 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 4945 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4945 echo $ac_n "(cached) $ac_c" 1>&6 4946 echo $ac_n "(cached) $ac_c" 1>&6
4946 else 4947 else
4947 cat > conftest.$ac_ext <<EOF 4948 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure" 4949 #line 4950 "configure"
4949 #include "confdefs.h" 4950 #include "confdefs.h"
4950 #include <alloca.h> 4951 #include <alloca.h>
4951 int main() { 4952 int main() {
4952 void *p = alloca(2 * sizeof(int)); 4953 char *p = alloca(2 * sizeof(int));
4953 ; return 0; } 4954 ; return 0; }
4954 EOF 4955 EOF
4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4956 rm -rf conftest* 4957 rm -rf conftest*
4957 ac_cv_header_alloca_h=yes 4958 ac_cv_header_alloca_h=yes
4958 else 4959 else
4959 echo "configure: failed program was:" >&5 4960 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5 4961 cat conftest.$ac_ext >&5
4971 EOF 4972 EOF
4972 4973
4973 fi 4974 fi
4974 4975
4975 echo $ac_n "checking for alloca""... $ac_c" 1>&6 4976 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4976 echo "configure:4977: checking for alloca" >&5 4977 echo "configure:4978: checking for alloca" >&5
4977 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 4978 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6 4979 echo $ac_n "(cached) $ac_c" 1>&6
4979 else 4980 else
4980 cat > conftest.$ac_ext <<EOF 4981 cat > conftest.$ac_ext <<EOF
4981 #line 4982 "configure" 4982 #line 4983 "configure"
4982 #include "confdefs.h" 4983 #include "confdefs.h"
4983 4984
4984 #ifdef __GNUC__ 4985 #ifdef __GNUC__
4985 # define alloca __builtin_alloca 4986 # define alloca __builtin_alloca
4986 #else 4987 #else
5004 5005
5005 int main() { 5006 int main() {
5006 char *p = (char *) alloca(1); 5007 char *p = (char *) alloca(1);
5007 ; return 0; } 5008 ; return 0; }
5008 EOF 5009 EOF
5009 if { (eval echo configure:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5010 rm -rf conftest* 5011 rm -rf conftest*
5011 ac_cv_func_alloca_works=yes 5012 ac_cv_func_alloca_works=yes
5012 else 5013 else
5013 echo "configure: failed program was:" >&5 5014 echo "configure: failed program was:" >&5
5014 cat conftest.$ac_ext >&5 5015 cat conftest.$ac_ext >&5
5036 #define C_ALLOCA 1 5037 #define C_ALLOCA 1
5037 EOF 5038 EOF
5038 5039
5039 5040
5040 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 5041 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5041 echo "configure:5042: checking whether alloca needs Cray hooks" >&5 5042 echo "configure:5043: checking whether alloca needs Cray hooks" >&5
5042 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 5043 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6 5044 echo $ac_n "(cached) $ac_c" 1>&6
5044 else 5045 else
5045 cat > conftest.$ac_ext <<EOF 5046 cat > conftest.$ac_ext <<EOF
5046 #line 5047 "configure" 5047 #line 5048 "configure"
5047 #include "confdefs.h" 5048 #include "confdefs.h"
5048 #if defined(CRAY) && ! defined(CRAY2) 5049 #if defined(CRAY) && ! defined(CRAY2)
5049 webecray 5050 webecray
5050 #else 5051 #else
5051 wenotbecray 5052 wenotbecray
5066 5067
5067 echo "$ac_t""$ac_cv_os_cray" 1>&6 5068 echo "$ac_t""$ac_cv_os_cray" 1>&6
5068 if test $ac_cv_os_cray = yes; then 5069 if test $ac_cv_os_cray = yes; then
5069 for ac_func in _getb67 GETB67 getb67; do 5070 for ac_func in _getb67 GETB67 getb67; do
5070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5071 echo "configure:5072: checking for $ac_func" >&5 5072 echo "configure:5073: checking for $ac_func" >&5
5072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5073 echo $ac_n "(cached) $ac_c" 1>&6 5074 echo $ac_n "(cached) $ac_c" 1>&6
5074 else 5075 else
5075 cat > conftest.$ac_ext <<EOF 5076 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure" 5077 #line 5078 "configure"
5077 #include "confdefs.h" 5078 #include "confdefs.h"
5078 /* System header to define __stub macros and hopefully few prototypes, 5079 /* System header to define __stub macros and hopefully few prototypes,
5079 which can conflict with char $ac_func(); below. */ 5080 which can conflict with char $ac_func(); below. */
5080 #include <assert.h> 5081 #include <assert.h>
5081 /* Override any gcc2 internal prototype to avoid an error. */ 5082 /* Override any gcc2 internal prototype to avoid an error. */
5094 $ac_func(); 5095 $ac_func();
5095 #endif 5096 #endif
5096 5097
5097 ; return 0; } 5098 ; return 0; }
5098 EOF 5099 EOF
5099 if { (eval echo configure:5100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5100 if { (eval echo configure:5101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5100 rm -rf conftest* 5101 rm -rf conftest*
5101 eval "ac_cv_func_$ac_func=yes" 5102 eval "ac_cv_func_$ac_func=yes"
5102 else 5103 else
5103 echo "configure: failed program was:" >&5 5104 echo "configure: failed program was:" >&5
5104 cat conftest.$ac_ext >&5 5105 cat conftest.$ac_ext >&5
5121 5122
5122 done 5123 done
5123 fi 5124 fi
5124 5125
5125 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 5126 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5126 echo "configure:5127: checking stack direction for C alloca" >&5 5127 echo "configure:5128: checking stack direction for C alloca" >&5
5127 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 5128 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5128 echo $ac_n "(cached) $ac_c" 1>&6 5129 echo $ac_n "(cached) $ac_c" 1>&6
5129 else 5130 else
5130 if test "$cross_compiling" = yes; then 5131 if test "$cross_compiling" = yes; then
5131 ac_cv_c_stack_direction=0 5132 ac_cv_c_stack_direction=0
5132 else 5133 else
5133 cat > conftest.$ac_ext <<EOF 5134 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure" 5135 #line 5136 "configure"
5135 #include "confdefs.h" 5136 #include "confdefs.h"
5136 find_stack_direction () 5137 find_stack_direction ()
5137 { 5138 {
5138 static char *addr = 0; 5139 static char *addr = 0;
5139 auto char dummy; 5140 auto char dummy;
5148 main () 5149 main ()
5149 { 5150 {
5150 exit (find_stack_direction() < 0); 5151 exit (find_stack_direction() < 0);
5151 } 5152 }
5152 EOF 5153 EOF
5153 if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5154 if { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5154 then 5155 then
5155 ac_cv_c_stack_direction=1 5156 ac_cv_c_stack_direction=1
5156 else 5157 else
5157 echo "configure: failed program was:" >&5 5158 echo "configure: failed program was:" >&5
5158 cat conftest.$ac_ext >&5 5159 cat conftest.$ac_ext >&5
5173 5174
5174 5175
5175 # fmod, logb, and frexp are found in -lm on most systems. 5176 # fmod, logb, and frexp are found in -lm on most systems.
5176 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 5177 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5177 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 5178 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5178 echo "configure:5179: checking for sqrt in -lm" >&5 5179 echo "configure:5180: checking for sqrt in -lm" >&5
5179 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 5180 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6 5182 echo $ac_n "(cached) $ac_c" 1>&6
5182 else 5183 else
5183 ac_save_LIBS="$LIBS" 5184 ac_save_LIBS="$LIBS"
5184 LIBS="-lm $LIBS" 5185 LIBS="-lm $LIBS"
5185 cat > conftest.$ac_ext <<EOF 5186 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure" 5187 #line 5188 "configure"
5187 #include "confdefs.h" 5188 #include "confdefs.h"
5188 /* Override any gcc2 internal prototype to avoid an error. */ 5189 /* Override any gcc2 internal prototype to avoid an error. */
5189 /* We use char because int might match the return type of a gcc2 5190 /* We use char because int might match the return type of a gcc2
5190 builtin and then its argument prototype would still apply. */ 5191 builtin and then its argument prototype would still apply. */
5191 char sqrt(); 5192 char sqrt();
5192 5193
5193 int main() { 5194 int main() {
5194 sqrt() 5195 sqrt()
5195 ; return 0; } 5196 ; return 0; }
5196 EOF 5197 EOF
5197 if { (eval echo configure:5198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5198 rm -rf conftest* 5199 rm -rf conftest*
5199 eval "ac_cv_lib_$ac_lib_var=yes" 5200 eval "ac_cv_lib_$ac_lib_var=yes"
5200 else 5201 else
5201 echo "configure: failed program was:" >&5 5202 echo "configure: failed program was:" >&5
5202 cat conftest.$ac_ext >&5 5203 cat conftest.$ac_ext >&5
5222 fi 5223 fi
5223 5224
5224 5225
5225 # Check for mail-locking functions in a "mail" library 5226 # Check for mail-locking functions in a "mail" library
5226 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 5227 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5227 echo "configure:5228: checking for maillock in -lmail" >&5 5228 echo "configure:5229: checking for maillock in -lmail" >&5
5228 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 5229 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6 5231 echo $ac_n "(cached) $ac_c" 1>&6
5231 else 5232 else
5232 ac_save_LIBS="$LIBS" 5233 ac_save_LIBS="$LIBS"
5233 LIBS="-lmail $LIBS" 5234 LIBS="-lmail $LIBS"
5234 cat > conftest.$ac_ext <<EOF 5235 cat > conftest.$ac_ext <<EOF
5235 #line 5236 "configure" 5236 #line 5237 "configure"
5236 #include "confdefs.h" 5237 #include "confdefs.h"
5237 /* Override any gcc2 internal prototype to avoid an error. */ 5238 /* Override any gcc2 internal prototype to avoid an error. */
5238 /* We use char because int might match the return type of a gcc2 5239 /* We use char because int might match the return type of a gcc2
5239 builtin and then its argument prototype would still apply. */ 5240 builtin and then its argument prototype would still apply. */
5240 char maillock(); 5241 char maillock();
5241 5242
5242 int main() { 5243 int main() {
5243 maillock() 5244 maillock()
5244 ; return 0; } 5245 ; return 0; }
5245 EOF 5246 EOF
5246 if { (eval echo configure:5247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5247 rm -rf conftest* 5248 rm -rf conftest*
5248 eval "ac_cv_lib_$ac_lib_var=yes" 5249 eval "ac_cv_lib_$ac_lib_var=yes"
5249 else 5250 else
5250 echo "configure: failed program was:" >&5 5251 echo "configure: failed program was:" >&5
5251 cat conftest.$ac_ext >&5 5252 cat conftest.$ac_ext >&5
5269 else 5270 else
5270 echo "$ac_t""no" 1>&6 5271 echo "$ac_t""no" 1>&6
5271 fi 5272 fi
5272 5273
5273 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 5274 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5274 echo "configure:5275: checking for maillock in -llockfile" >&5 5275 echo "configure:5276: checking for maillock in -llockfile" >&5
5275 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 5276 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6 5278 echo $ac_n "(cached) $ac_c" 1>&6
5278 else 5279 else
5279 ac_save_LIBS="$LIBS" 5280 ac_save_LIBS="$LIBS"
5280 LIBS="-llockfile $LIBS" 5281 LIBS="-llockfile $LIBS"
5281 cat > conftest.$ac_ext <<EOF 5282 cat > conftest.$ac_ext <<EOF
5282 #line 5283 "configure" 5283 #line 5284 "configure"
5283 #include "confdefs.h" 5284 #include "confdefs.h"
5284 /* Override any gcc2 internal prototype to avoid an error. */ 5285 /* Override any gcc2 internal prototype to avoid an error. */
5285 /* We use char because int might match the return type of a gcc2 5286 /* We use char because int might match the return type of a gcc2
5286 builtin and then its argument prototype would still apply. */ 5287 builtin and then its argument prototype would still apply. */
5287 char maillock(); 5288 char maillock();
5288 5289
5289 int main() { 5290 int main() {
5290 maillock() 5291 maillock()
5291 ; return 0; } 5292 ; return 0; }
5292 EOF 5293 EOF
5293 if { (eval echo configure:5294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5294 if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5294 rm -rf conftest* 5295 rm -rf conftest*
5295 eval "ac_cv_lib_$ac_lib_var=yes" 5296 eval "ac_cv_lib_$ac_lib_var=yes"
5296 else 5297 else
5297 echo "configure: failed program was:" >&5 5298 echo "configure: failed program was:" >&5
5298 cat conftest.$ac_ext >&5 5299 cat conftest.$ac_ext >&5
5322 # (no liblockfile.a installed), ensure that we don't need to. 5323 # (no liblockfile.a installed), ensure that we don't need to.
5323 if test "$ac_cv_lib_lockfile_maillock" = no; then 5324 if test "$ac_cv_lib_lockfile_maillock" = no; then
5324 # Extract the first word of "liblockfile.so", so it can be a program name with args. 5325 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5325 set dummy liblockfile.so; ac_word=$2 5326 set dummy liblockfile.so; ac_word=$2
5326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5327 echo "configure:5328: checking for $ac_word" >&5 5328 echo "configure:5329: checking for $ac_word" >&5
5328 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 5329 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5329 echo $ac_n "(cached) $ac_c" 1>&6 5330 echo $ac_n "(cached) $ac_c" 1>&6
5330 else 5331 else
5331 if test -n "$liblockfile"; then 5332 if test -n "$liblockfile"; then
5332 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 5333 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
5363 else : 5364 else :
5364 fi 5365 fi
5365 for ac_func in touchlock 5366 for ac_func in touchlock
5366 do 5367 do
5367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5368 echo "configure:5369: checking for $ac_func" >&5 5369 echo "configure:5370: checking for $ac_func" >&5
5369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6 5371 echo $ac_n "(cached) $ac_c" 1>&6
5371 else 5372 else
5372 cat > conftest.$ac_ext <<EOF 5373 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure" 5374 #line 5375 "configure"
5374 #include "confdefs.h" 5375 #include "confdefs.h"
5375 /* System header to define __stub macros and hopefully few prototypes, 5376 /* System header to define __stub macros and hopefully few prototypes,
5376 which can conflict with char $ac_func(); below. */ 5377 which can conflict with char $ac_func(); below. */
5377 #include <assert.h> 5378 #include <assert.h>
5378 /* Override any gcc2 internal prototype to avoid an error. */ 5379 /* Override any gcc2 internal prototype to avoid an error. */
5391 $ac_func(); 5392 $ac_func();
5392 #endif 5393 #endif
5393 5394
5394 ; return 0; } 5395 ; return 0; }
5395 EOF 5396 EOF
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5397 rm -rf conftest* 5398 rm -rf conftest*
5398 eval "ac_cv_func_$ac_func=yes" 5399 eval "ac_cv_func_$ac_func=yes"
5399 else 5400 else
5400 echo "configure: failed program was:" >&5 5401 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5 5402 cat conftest.$ac_ext >&5
5419 5420
5420 for ac_hdr in maillock.h 5421 for ac_hdr in maillock.h
5421 do 5422 do
5422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5423 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5424 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5424 echo "configure:5425: checking for $ac_hdr" >&5 5425 echo "configure:5426: checking for $ac_hdr" >&5
5425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5426 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6 5427 echo $ac_n "(cached) $ac_c" 1>&6
5427 else 5428 else
5428 cat > conftest.$ac_ext <<EOF 5429 cat > conftest.$ac_ext <<EOF
5429 #line 5430 "configure" 5430 #line 5431 "configure"
5430 #include "confdefs.h" 5431 #include "confdefs.h"
5431 #include <$ac_hdr> 5432 #include <$ac_hdr>
5432 EOF 5433 EOF
5433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5434 { (eval echo configure:5435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5435 { (eval echo configure:5436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5436 if test -z "$ac_err"; then 5437 if test -z "$ac_err"; then
5437 rm -rf conftest* 5438 rm -rf conftest*
5438 eval "ac_cv_header_$ac_safe=yes" 5439 eval "ac_cv_header_$ac_safe=yes"
5439 else 5440 else
5464 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 5465 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
5465 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ 5466 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5466 __fpending getloadavg mblen mbrlen strsignal setitimer ualarm 5467 __fpending getloadavg mblen mbrlen strsignal setitimer ualarm
5467 do 5468 do
5468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5469 echo "configure:5470: checking for $ac_func" >&5 5470 echo "configure:5471: checking for $ac_func" >&5
5470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5471 echo $ac_n "(cached) $ac_c" 1>&6 5472 echo $ac_n "(cached) $ac_c" 1>&6
5472 else 5473 else
5473 cat > conftest.$ac_ext <<EOF 5474 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure" 5475 #line 5476 "configure"
5475 #include "confdefs.h" 5476 #include "confdefs.h"
5476 /* System header to define __stub macros and hopefully few prototypes, 5477 /* System header to define __stub macros and hopefully few prototypes,
5477 which can conflict with char $ac_func(); below. */ 5478 which can conflict with char $ac_func(); below. */
5478 #include <assert.h> 5479 #include <assert.h>
5479 /* Override any gcc2 internal prototype to avoid an error. */ 5480 /* Override any gcc2 internal prototype to avoid an error. */
5492 $ac_func(); 5493 $ac_func();
5493 #endif 5494 #endif
5494 5495
5495 ; return 0; } 5496 ; return 0; }
5496 EOF 5497 EOF
5497 if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5498 if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5498 rm -rf conftest* 5499 rm -rf conftest*
5499 eval "ac_cv_func_$ac_func=yes" 5500 eval "ac_cv_func_$ac_func=yes"
5500 else 5501 else
5501 echo "configure: failed program was:" >&5 5502 echo "configure: failed program was:" >&5
5502 cat conftest.$ac_ext >&5 5503 cat conftest.$ac_ext >&5
5521 5522
5522 for ac_hdr in sys/time.h unistd.h 5523 for ac_hdr in sys/time.h unistd.h
5523 do 5524 do
5524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5526 echo "configure:5527: checking for $ac_hdr" >&5 5527 echo "configure:5528: checking for $ac_hdr" >&5
5527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6 5529 echo $ac_n "(cached) $ac_c" 1>&6
5529 else 5530 else
5530 cat > conftest.$ac_ext <<EOF 5531 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure" 5532 #line 5533 "configure"
5532 #include "confdefs.h" 5533 #include "confdefs.h"
5533 #include <$ac_hdr> 5534 #include <$ac_hdr>
5534 EOF 5535 EOF
5535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5536 { (eval echo configure:5537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5537 { (eval echo configure:5538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5538 if test -z "$ac_err"; then 5539 if test -z "$ac_err"; then
5539 rm -rf conftest* 5540 rm -rf conftest*
5540 eval "ac_cv_header_$ac_safe=yes" 5541 eval "ac_cv_header_$ac_safe=yes"
5541 else 5542 else
5560 done 5561 done
5561 5562
5562 for ac_func in alarm 5563 for ac_func in alarm
5563 do 5564 do
5564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5565 echo "configure:5566: checking for $ac_func" >&5 5566 echo "configure:5567: checking for $ac_func" >&5
5566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5567 echo $ac_n "(cached) $ac_c" 1>&6 5568 echo $ac_n "(cached) $ac_c" 1>&6
5568 else 5569 else
5569 cat > conftest.$ac_ext <<EOF 5570 cat > conftest.$ac_ext <<EOF
5570 #line 5571 "configure" 5571 #line 5572 "configure"
5571 #include "confdefs.h" 5572 #include "confdefs.h"
5572 /* System header to define __stub macros and hopefully few prototypes, 5573 /* System header to define __stub macros and hopefully few prototypes,
5573 which can conflict with char $ac_func(); below. */ 5574 which can conflict with char $ac_func(); below. */
5574 #include <assert.h> 5575 #include <assert.h>
5575 /* Override any gcc2 internal prototype to avoid an error. */ 5576 /* Override any gcc2 internal prototype to avoid an error. */
5588 $ac_func(); 5589 $ac_func();
5589 #endif 5590 #endif
5590 5591
5591 ; return 0; } 5592 ; return 0; }
5592 EOF 5593 EOF
5593 if { (eval echo configure:5594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5594 if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5594 rm -rf conftest* 5595 rm -rf conftest*
5595 eval "ac_cv_func_$ac_func=yes" 5596 eval "ac_cv_func_$ac_func=yes"
5596 else 5597 else
5597 echo "configure: failed program was:" >&5 5598 echo "configure: failed program was:" >&5
5598 cat conftest.$ac_ext >&5 5599 cat conftest.$ac_ext >&5
5613 echo "$ac_t""no" 1>&6 5614 echo "$ac_t""no" 1>&6
5614 fi 5615 fi
5615 done 5616 done
5616 5617
5617 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 5618 echo $ac_n "checking for working mktime""... $ac_c" 1>&6
5618 echo "configure:5619: checking for working mktime" >&5 5619 echo "configure:5620: checking for working mktime" >&5
5619 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then 5620 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
5620 echo $ac_n "(cached) $ac_c" 1>&6 5621 echo $ac_n "(cached) $ac_c" 1>&6
5621 else 5622 else
5622 if test "$cross_compiling" = yes; then 5623 if test "$cross_compiling" = yes; then
5623 ac_cv_func_working_mktime=no 5624 ac_cv_func_working_mktime=no
5624 else 5625 else
5625 cat > conftest.$ac_ext <<EOF 5626 cat > conftest.$ac_ext <<EOF
5626 #line 5627 "configure" 5627 #line 5628 "configure"
5627 #include "confdefs.h" 5628 #include "confdefs.h"
5628 /* Test program from Paul Eggert (eggert@twinsun.com) 5629 /* Test program from Paul Eggert (eggert@twinsun.com)
5629 and Tony Leneis (tony@plaza.ds.adp.com). */ 5630 and Tony Leneis (tony@plaza.ds.adp.com). */
5630 #if TIME_WITH_SYS_TIME 5631 #if TIME_WITH_SYS_TIME
5631 # include <sys/time.h> 5632 # include <sys/time.h>
5770 irix_6_4_bug (); 5771 irix_6_4_bug ();
5771 spring_forward_gap (); 5772 spring_forward_gap ();
5772 exit (0); 5773 exit (0);
5773 } 5774 }
5774 EOF 5775 EOF
5775 if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5776 if { (eval echo configure:5777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5776 then 5777 then
5777 ac_cv_func_working_mktime=yes 5778 ac_cv_func_working_mktime=yes
5778 else 5779 else
5779 echo "configure: failed program was:" >&5 5780 echo "configure: failed program was:" >&5
5780 cat conftest.$ac_ext >&5 5781 cat conftest.$ac_ext >&5
5805 fi 5806 fi
5806 5807
5807 if test "$enable_largefile" != no; then 5808 if test "$enable_largefile" != no; then
5808 5809
5809 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 5810 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
5810 echo "configure:5811: checking for special C compiler options needed for large files" >&5 5811 echo "configure:5812: checking for special C compiler options needed for large files" >&5
5811 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then 5812 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6 5813 echo $ac_n "(cached) $ac_c" 1>&6
5813 else 5814 else
5814 ac_cv_sys_largefile_CC=no 5815 ac_cv_sys_largefile_CC=no
5815 if test "$GCC" != yes; then 5816 if test "$GCC" != yes; then
5816 # IRIX 6.2 and later do not support large files by default, 5817 # IRIX 6.2 and later do not support large files by default,
5817 # so use the C compiler's -n32 option if that helps. 5818 # so use the C compiler's -n32 option if that helps.
5818 cat > conftest.$ac_ext <<EOF 5819 cat > conftest.$ac_ext <<EOF
5819 #line 5820 "configure" 5820 #line 5821 "configure"
5820 #include "confdefs.h" 5821 #include "confdefs.h"
5821 #include <sys/types.h> 5822 #include <sys/types.h>
5822 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 5823 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
5823 5824
5824 int main() { 5825 int main() {
5825 5826
5826 ; return 0; } 5827 ; return 0; }
5827 EOF 5828 EOF
5828 if { (eval echo configure:5829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5829 if { (eval echo configure:5830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5829 : 5830 :
5830 else 5831 else
5831 echo "configure: failed program was:" >&5 5832 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5 5833 cat conftest.$ac_ext >&5
5833 rm -rf conftest* 5834 rm -rf conftest*
5834 ac_save_CC="$CC" 5835 ac_save_CC="$CC"
5835 CC="$CC -n32" 5836 CC="$CC -n32"
5836 cat > conftest.$ac_ext <<EOF 5837 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure" 5838 #line 5839 "configure"
5838 #include "confdefs.h" 5839 #include "confdefs.h"
5839 #include <sys/types.h> 5840 #include <sys/types.h>
5840 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 5841 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
5841 5842
5842 int main() { 5843 int main() {
5843 5844
5844 ; return 0; } 5845 ; return 0; }
5845 EOF 5846 EOF
5846 if { (eval echo configure:5847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5847 if { (eval echo configure:5848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5847 rm -rf conftest* 5848 rm -rf conftest*
5848 ac_cv_sys_largefile_CC=' -n32' 5849 ac_cv_sys_largefile_CC=' -n32'
5849 else 5850 else
5850 echo "configure: failed program was:" >&5 5851 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5 5852 cat conftest.$ac_ext >&5
5861 if test "$ac_cv_sys_largefile_CC" != no; then 5862 if test "$ac_cv_sys_largefile_CC" != no; then
5862 CC="$CC$ac_cv_sys_largefile_CC" 5863 CC="$CC$ac_cv_sys_largefile_CC"
5863 fi 5864 fi
5864 5865
5865 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 5866 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
5866 echo "configure:5867: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5867 echo "configure:5868: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5867 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then 5868 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6 5869 echo $ac_n "(cached) $ac_c" 1>&6
5869 else 5870 else
5870 ac_cv_sys_file_offset_bits=no 5871 ac_cv_sys_file_offset_bits=no
5871 cat > conftest.$ac_ext <<EOF 5872 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure" 5873 #line 5874 "configure"
5873 #include "confdefs.h" 5874 #include "confdefs.h"
5874 #include <sys/types.h> 5875 #include <sys/types.h>
5875 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 5876 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
5876 5877
5877 5878
5878 5879
5879 int main() { 5880 int main() {
5880 5881
5881 ; return 0; } 5882 ; return 0; }
5882 EOF 5883 EOF
5883 if { (eval echo configure:5884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5884 if { (eval echo configure:5885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5884 : 5885 :
5885 else 5886 else
5886 echo "configure: failed program was:" >&5 5887 echo "configure: failed program was:" >&5
5887 cat conftest.$ac_ext >&5 5888 cat conftest.$ac_ext >&5
5888 rm -rf conftest* 5889 rm -rf conftest*
5889 cat > conftest.$ac_ext <<EOF 5890 cat > conftest.$ac_ext <<EOF
5890 #line 5891 "configure" 5891 #line 5892 "configure"
5891 #include "confdefs.h" 5892 #include "confdefs.h"
5892 #define _FILE_OFFSET_BITS 64 5893 #define _FILE_OFFSET_BITS 64
5893 #include <sys/types.h> 5894 #include <sys/types.h>
5894 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 5895 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
5895 5896
5897 5898
5898 int main() { 5899 int main() {
5899 5900
5900 ; return 0; } 5901 ; return 0; }
5901 EOF 5902 EOF
5902 if { (eval echo configure:5903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5903 if { (eval echo configure:5904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5903 rm -rf conftest* 5904 rm -rf conftest*
5904 ac_cv_sys_file_offset_bits=64 5905 ac_cv_sys_file_offset_bits=64
5905 else 5906 else
5906 echo "configure: failed program was:" >&5 5907 echo "configure: failed program was:" >&5
5907 cat conftest.$ac_ext >&5 5908 cat conftest.$ac_ext >&5
5917 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5918 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5918 EOF 5919 EOF
5919 5920
5920 fi 5921 fi
5921 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 5922 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
5922 echo "configure:5923: checking for _LARGEFILE_SOURCE value needed for large files" >&5 5923 echo "configure:5924: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5923 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then 5924 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6 5925 echo $ac_n "(cached) $ac_c" 1>&6
5925 else 5926 else
5926 ac_cv_sys_largefile_source=no 5927 ac_cv_sys_largefile_source=no
5927 cat > conftest.$ac_ext <<EOF 5928 cat > conftest.$ac_ext <<EOF
5928 #line 5929 "configure" 5929 #line 5930 "configure"
5929 #include "confdefs.h" 5930 #include "confdefs.h"
5930 #include <sys/types.h> 5931 #include <sys/types.h>
5931 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 5932 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
5932 5933
5933 #include <stdio.h> 5934 #include <stdio.h>
5934 5935
5935 int main() { 5936 int main() {
5936 return !ftello; 5937 return !ftello;
5937 ; return 0; } 5938 ; return 0; }
5938 EOF 5939 EOF
5939 if { (eval echo configure:5940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5940 if { (eval echo configure:5941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5940 : 5941 :
5941 else 5942 else
5942 echo "configure: failed program was:" >&5 5943 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5 5944 cat conftest.$ac_ext >&5
5944 rm -rf conftest* 5945 rm -rf conftest*
5945 cat > conftest.$ac_ext <<EOF 5946 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure" 5947 #line 5948 "configure"
5947 #include "confdefs.h" 5948 #include "confdefs.h"
5948 #define _LARGEFILE_SOURCE 1 5949 #define _LARGEFILE_SOURCE 1
5949 #include <sys/types.h> 5950 #include <sys/types.h>
5950 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 5951 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
5951 5952
5953 5954
5954 int main() { 5955 int main() {
5955 return !ftello; 5956 return !ftello;
5956 ; return 0; } 5957 ; return 0; }
5957 EOF 5958 EOF
5958 if { (eval echo configure:5959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5959 if { (eval echo configure:5960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5959 rm -rf conftest* 5960 rm -rf conftest*
5960 ac_cv_sys_largefile_source=1 5961 ac_cv_sys_largefile_source=1
5961 else 5962 else
5962 echo "configure: failed program was:" >&5 5963 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5 5964 cat conftest.$ac_ext >&5
5973 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 5974 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5974 EOF 5975 EOF
5975 5976
5976 fi 5977 fi
5977 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 5978 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
5978 echo "configure:5979: checking for _LARGE_FILES value needed for large files" >&5 5979 echo "configure:5980: checking for _LARGE_FILES value needed for large files" >&5
5979 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then 5980 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
5980 echo $ac_n "(cached) $ac_c" 1>&6 5981 echo $ac_n "(cached) $ac_c" 1>&6
5981 else 5982 else
5982 ac_cv_sys_large_files=no 5983 ac_cv_sys_large_files=no
5983 cat > conftest.$ac_ext <<EOF 5984 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure" 5985 #line 5986 "configure"
5985 #include "confdefs.h" 5986 #include "confdefs.h"
5986 #include <sys/types.h> 5987 #include <sys/types.h>
5987 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 5988 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
5988 5989
5989 5990
5990 5991
5991 int main() { 5992 int main() {
5992 5993
5993 ; return 0; } 5994 ; return 0; }
5994 EOF 5995 EOF
5995 if { (eval echo configure:5996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5996 if { (eval echo configure:5997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5996 : 5997 :
5997 else 5998 else
5998 echo "configure: failed program was:" >&5 5999 echo "configure: failed program was:" >&5
5999 cat conftest.$ac_ext >&5 6000 cat conftest.$ac_ext >&5
6000 rm -rf conftest* 6001 rm -rf conftest*
6001 cat > conftest.$ac_ext <<EOF 6002 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure" 6003 #line 6004 "configure"
6003 #include "confdefs.h" 6004 #include "confdefs.h"
6004 #define _LARGE_FILES 1 6005 #define _LARGE_FILES 1
6005 #include <sys/types.h> 6006 #include <sys/types.h>
6006 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6007 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6007 6008
6009 6010
6010 int main() { 6011 int main() {
6011 6012
6012 ; return 0; } 6013 ; return 0; }
6013 EOF 6014 EOF
6014 if { (eval echo configure:6015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6015 if { (eval echo configure:6016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6015 rm -rf conftest* 6016 rm -rf conftest*
6016 ac_cv_sys_large_files=1 6017 ac_cv_sys_large_files=1
6017 else 6018 else
6018 echo "configure: failed program was:" >&5 6019 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5 6020 cat conftest.$ac_ext >&5
6029 #define _LARGE_FILES $ac_cv_sys_large_files 6030 #define _LARGE_FILES $ac_cv_sys_large_files
6030 EOF 6031 EOF
6031 6032
6032 fi 6033 fi
6033 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 6034 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6
6034 echo "configure:6035: checking for _XOPEN_SOURCE value needed for large files" >&5 6035 echo "configure:6036: checking for _XOPEN_SOURCE value needed for large files" >&5
6035 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then 6036 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6 6037 echo $ac_n "(cached) $ac_c" 1>&6
6037 else 6038 else
6038 ac_cv_sys_xopen_source=no 6039 ac_cv_sys_xopen_source=no
6039 cat > conftest.$ac_ext <<EOF 6040 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure" 6041 #line 6042 "configure"
6041 #include "confdefs.h" 6042 #include "confdefs.h"
6042 #include <sys/types.h> 6043 #include <sys/types.h>
6043 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6044 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6044 6045
6045 #include <stdio.h> 6046 #include <stdio.h>
6046 6047
6047 int main() { 6048 int main() {
6048 return !ftello; 6049 return !ftello;
6049 ; return 0; } 6050 ; return 0; }
6050 EOF 6051 EOF
6051 if { (eval echo configure:6052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6052 if { (eval echo configure:6053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6052 : 6053 :
6053 else 6054 else
6054 echo "configure: failed program was:" >&5 6055 echo "configure: failed program was:" >&5
6055 cat conftest.$ac_ext >&5 6056 cat conftest.$ac_ext >&5
6056 rm -rf conftest* 6057 rm -rf conftest*
6057 cat > conftest.$ac_ext <<EOF 6058 cat > conftest.$ac_ext <<EOF
6058 #line 6059 "configure" 6059 #line 6060 "configure"
6059 #include "confdefs.h" 6060 #include "confdefs.h"
6060 #define _XOPEN_SOURCE 500 6061 #define _XOPEN_SOURCE 500
6061 #include <sys/types.h> 6062 #include <sys/types.h>
6062 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6063 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6063 6064
6065 6066
6066 int main() { 6067 int main() {
6067 return !ftello; 6068 return !ftello;
6068 ; return 0; } 6069 ; return 0; }
6069 EOF 6070 EOF
6070 if { (eval echo configure:6071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6071 if { (eval echo configure:6072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6071 rm -rf conftest* 6072 rm -rf conftest*
6072 ac_cv_sys_xopen_source=500 6073 ac_cv_sys_xopen_source=500
6073 else 6074 else
6074 echo "configure: failed program was:" >&5 6075 echo "configure: failed program was:" >&5
6075 cat conftest.$ac_ext >&5 6076 cat conftest.$ac_ext >&5
6089 fi 6090 fi
6090 6091
6091 for ac_func in ftello 6092 for ac_func in ftello
6092 do 6093 do
6093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6094 echo "configure:6095: checking for $ac_func" >&5 6095 echo "configure:6096: checking for $ac_func" >&5
6095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6096 echo $ac_n "(cached) $ac_c" 1>&6 6097 echo $ac_n "(cached) $ac_c" 1>&6
6097 else 6098 else
6098 cat > conftest.$ac_ext <<EOF 6099 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure" 6100 #line 6101 "configure"
6100 #include "confdefs.h" 6101 #include "confdefs.h"
6101 /* System header to define __stub macros and hopefully few prototypes, 6102 /* System header to define __stub macros and hopefully few prototypes,
6102 which can conflict with char $ac_func(); below. */ 6103 which can conflict with char $ac_func(); below. */
6103 #include <assert.h> 6104 #include <assert.h>
6104 /* Override any gcc2 internal prototype to avoid an error. */ 6105 /* Override any gcc2 internal prototype to avoid an error. */
6117 $ac_func(); 6118 $ac_func();
6118 #endif 6119 #endif
6119 6120
6120 ; return 0; } 6121 ; return 0; }
6121 EOF 6122 EOF
6122 if { (eval echo configure:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6123 if { (eval echo configure:6124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6123 rm -rf conftest* 6124 rm -rf conftest*
6124 eval "ac_cv_func_$ac_func=yes" 6125 eval "ac_cv_func_$ac_func=yes"
6125 else 6126 else
6126 echo "configure: failed program was:" >&5 6127 echo "configure: failed program was:" >&5
6127 cat conftest.$ac_ext >&5 6128 cat conftest.$ac_ext >&5
6147 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE 6148 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE
6148 # if we need it. 6149 # if we need it.
6149 for ac_func in grantpt 6150 for ac_func in grantpt
6150 do 6151 do
6151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6152 echo "configure:6153: checking for $ac_func" >&5 6153 echo "configure:6154: checking for $ac_func" >&5
6153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6154 echo $ac_n "(cached) $ac_c" 1>&6 6155 echo $ac_n "(cached) $ac_c" 1>&6
6155 else 6156 else
6156 cat > conftest.$ac_ext <<EOF 6157 cat > conftest.$ac_ext <<EOF
6157 #line 6158 "configure" 6158 #line 6159 "configure"
6158 #include "confdefs.h" 6159 #include "confdefs.h"
6159 /* System header to define __stub macros and hopefully few prototypes, 6160 /* System header to define __stub macros and hopefully few prototypes,
6160 which can conflict with char $ac_func(); below. */ 6161 which can conflict with char $ac_func(); below. */
6161 #include <assert.h> 6162 #include <assert.h>
6162 /* Override any gcc2 internal prototype to avoid an error. */ 6163 /* Override any gcc2 internal prototype to avoid an error. */
6175 $ac_func(); 6176 $ac_func();
6176 #endif 6177 #endif
6177 6178
6178 ; return 0; } 6179 ; return 0; }
6179 EOF 6180 EOF
6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6181 rm -rf conftest* 6182 rm -rf conftest*
6182 eval "ac_cv_func_$ac_func=yes" 6183 eval "ac_cv_func_$ac_func=yes"
6183 else 6184 else
6184 echo "configure: failed program was:" >&5 6185 echo "configure: failed program was:" >&5
6185 cat conftest.$ac_ext >&5 6186 cat conftest.$ac_ext >&5
6204 6205
6205 # PTY-related GNU extensions. 6206 # PTY-related GNU extensions.
6206 for ac_func in getpt 6207 for ac_func in getpt
6207 do 6208 do
6208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6209 echo "configure:6210: checking for $ac_func" >&5 6210 echo "configure:6211: checking for $ac_func" >&5
6210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6211 echo $ac_n "(cached) $ac_c" 1>&6 6212 echo $ac_n "(cached) $ac_c" 1>&6
6212 else 6213 else
6213 cat > conftest.$ac_ext <<EOF 6214 cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure" 6215 #line 6216 "configure"
6215 #include "confdefs.h" 6216 #include "confdefs.h"
6216 /* System header to define __stub macros and hopefully few prototypes, 6217 /* System header to define __stub macros and hopefully few prototypes,
6217 which can conflict with char $ac_func(); below. */ 6218 which can conflict with char $ac_func(); below. */
6218 #include <assert.h> 6219 #include <assert.h>
6219 /* Override any gcc2 internal prototype to avoid an error. */ 6220 /* Override any gcc2 internal prototype to avoid an error. */
6232 $ac_func(); 6233 $ac_func();
6233 #endif 6234 #endif
6234 6235
6235 ; return 0; } 6236 ; return 0; }
6236 EOF 6237 EOF
6237 if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6238 rm -rf conftest* 6239 rm -rf conftest*
6239 eval "ac_cv_func_$ac_func=yes" 6240 eval "ac_cv_func_$ac_func=yes"
6240 else 6241 else
6241 echo "configure: failed program was:" >&5 6242 echo "configure: failed program was:" >&5
6242 cat conftest.$ac_ext >&5 6243 cat conftest.$ac_ext >&5
6262 # Check this now, so that we will NOT find the above functions in ncurses. 6263 # Check this now, so that we will NOT find the above functions in ncurses.
6263 # That is because we have not set up to link ncurses in lib-src. 6264 # That is because we have not set up to link ncurses in lib-src.
6264 # It's better to believe a function is not available 6265 # It's better to believe a function is not available
6265 # than to expect to find it in ncurses. 6266 # than to expect to find it in ncurses.
6266 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 6267 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
6267 echo "configure:6268: checking for tparm in -lncurses" >&5 6268 echo "configure:6269: checking for tparm in -lncurses" >&5
6268 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 6269 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
6269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6270 echo $ac_n "(cached) $ac_c" 1>&6 6271 echo $ac_n "(cached) $ac_c" 1>&6
6271 else 6272 else
6272 ac_save_LIBS="$LIBS" 6273 ac_save_LIBS="$LIBS"
6273 LIBS="-lncurses $LIBS" 6274 LIBS="-lncurses $LIBS"
6274 cat > conftest.$ac_ext <<EOF 6275 cat > conftest.$ac_ext <<EOF
6275 #line 6276 "configure" 6276 #line 6277 "configure"
6276 #include "confdefs.h" 6277 #include "confdefs.h"
6277 /* Override any gcc2 internal prototype to avoid an error. */ 6278 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2 6279 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */ 6280 builtin and then its argument prototype would still apply. */
6280 char tparm(); 6281 char tparm();
6281 6282
6282 int main() { 6283 int main() {
6283 tparm() 6284 tparm()
6284 ; return 0; } 6285 ; return 0; }
6285 EOF 6286 EOF
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6287 if { (eval echo configure:6288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6287 rm -rf conftest* 6288 rm -rf conftest*
6288 eval "ac_cv_lib_$ac_lib_var=yes" 6289 eval "ac_cv_lib_$ac_lib_var=yes"
6289 else 6290 else
6290 echo "configure: failed program was:" >&5 6291 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5 6292 cat conftest.$ac_ext >&5
6312 6313
6313 6314
6314 # These tell us which Kerberos-related libraries to use. 6315 # These tell us which Kerberos-related libraries to use.
6315 if test "${with_kerberos+set}" = set; then 6316 if test "${with_kerberos+set}" = set; then
6316 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 6317 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
6317 echo "configure:6318: checking for com_err in -lcom_err" >&5 6318 echo "configure:6319: checking for com_err in -lcom_err" >&5
6318 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 6319 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
6319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6320 echo $ac_n "(cached) $ac_c" 1>&6 6321 echo $ac_n "(cached) $ac_c" 1>&6
6321 else 6322 else
6322 ac_save_LIBS="$LIBS" 6323 ac_save_LIBS="$LIBS"
6323 LIBS="-lcom_err $LIBS" 6324 LIBS="-lcom_err $LIBS"
6324 cat > conftest.$ac_ext <<EOF 6325 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure" 6326 #line 6327 "configure"
6326 #include "confdefs.h" 6327 #include "confdefs.h"
6327 /* Override any gcc2 internal prototype to avoid an error. */ 6328 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2 6329 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */ 6330 builtin and then its argument prototype would still apply. */
6330 char com_err(); 6331 char com_err();
6331 6332
6332 int main() { 6333 int main() {
6333 com_err() 6334 com_err()
6334 ; return 0; } 6335 ; return 0; }
6335 EOF 6336 EOF
6336 if { (eval echo configure:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6337 rm -rf conftest* 6338 rm -rf conftest*
6338 eval "ac_cv_lib_$ac_lib_var=yes" 6339 eval "ac_cv_lib_$ac_lib_var=yes"
6339 else 6340 else
6340 echo "configure: failed program was:" >&5 6341 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5 6342 cat conftest.$ac_ext >&5
6359 else 6360 else
6360 echo "$ac_t""no" 1>&6 6361 echo "$ac_t""no" 1>&6
6361 fi 6362 fi
6362 6363
6363 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 6364 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
6364 echo "configure:6365: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 6365 echo "configure:6366: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
6365 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 6366 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
6366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6 6368 echo $ac_n "(cached) $ac_c" 1>&6
6368 else 6369 else
6369 ac_save_LIBS="$LIBS" 6370 ac_save_LIBS="$LIBS"
6370 LIBS="-lk5crypto $LIBS" 6371 LIBS="-lk5crypto $LIBS"
6371 cat > conftest.$ac_ext <<EOF 6372 cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure" 6373 #line 6374 "configure"
6373 #include "confdefs.h" 6374 #include "confdefs.h"
6374 /* Override any gcc2 internal prototype to avoid an error. */ 6375 /* Override any gcc2 internal prototype to avoid an error. */
6375 /* We use char because int might match the return type of a gcc2 6376 /* We use char because int might match the return type of a gcc2
6376 builtin and then its argument prototype would still apply. */ 6377 builtin and then its argument prototype would still apply. */
6377 char mit_des_cbc_encrypt(); 6378 char mit_des_cbc_encrypt();
6378 6379
6379 int main() { 6380 int main() {
6380 mit_des_cbc_encrypt() 6381 mit_des_cbc_encrypt()
6381 ; return 0; } 6382 ; return 0; }
6382 EOF 6383 EOF
6383 if { (eval echo configure:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6384 if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6384 rm -rf conftest* 6385 rm -rf conftest*
6385 eval "ac_cv_lib_$ac_lib_var=yes" 6386 eval "ac_cv_lib_$ac_lib_var=yes"
6386 else 6387 else
6387 echo "configure: failed program was:" >&5 6388 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5 6389 cat conftest.$ac_ext >&5
6406 else 6407 else
6407 echo "$ac_t""no" 1>&6 6408 echo "$ac_t""no" 1>&6
6408 fi 6409 fi
6409 6410
6410 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 6411 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
6411 echo "configure:6412: checking for mit_des_cbc_encrypt in -lcrypto" >&5 6412 echo "configure:6413: checking for mit_des_cbc_encrypt in -lcrypto" >&5
6412 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 6413 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
6413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6414 echo $ac_n "(cached) $ac_c" 1>&6 6415 echo $ac_n "(cached) $ac_c" 1>&6
6415 else 6416 else
6416 ac_save_LIBS="$LIBS" 6417 ac_save_LIBS="$LIBS"
6417 LIBS="-lcrypto $LIBS" 6418 LIBS="-lcrypto $LIBS"
6418 cat > conftest.$ac_ext <<EOF 6419 cat > conftest.$ac_ext <<EOF
6419 #line 6420 "configure" 6420 #line 6421 "configure"
6420 #include "confdefs.h" 6421 #include "confdefs.h"
6421 /* Override any gcc2 internal prototype to avoid an error. */ 6422 /* Override any gcc2 internal prototype to avoid an error. */
6422 /* We use char because int might match the return type of a gcc2 6423 /* We use char because int might match the return type of a gcc2
6423 builtin and then its argument prototype would still apply. */ 6424 builtin and then its argument prototype would still apply. */
6424 char mit_des_cbc_encrypt(); 6425 char mit_des_cbc_encrypt();
6425 6426
6426 int main() { 6427 int main() {
6427 mit_des_cbc_encrypt() 6428 mit_des_cbc_encrypt()
6428 ; return 0; } 6429 ; return 0; }
6429 EOF 6430 EOF
6430 if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6431 if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6431 rm -rf conftest* 6432 rm -rf conftest*
6432 eval "ac_cv_lib_$ac_lib_var=yes" 6433 eval "ac_cv_lib_$ac_lib_var=yes"
6433 else 6434 else
6434 echo "configure: failed program was:" >&5 6435 echo "configure: failed program was:" >&5
6435 cat conftest.$ac_ext >&5 6436 cat conftest.$ac_ext >&5
6453 else 6454 else
6454 echo "$ac_t""no" 1>&6 6455 echo "$ac_t""no" 1>&6
6455 fi 6456 fi
6456 6457
6457 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 6458 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
6458 echo "configure:6459: checking for krb5_init_context in -lkrb5" >&5 6459 echo "configure:6460: checking for krb5_init_context in -lkrb5" >&5
6459 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` 6460 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
6460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6461 echo $ac_n "(cached) $ac_c" 1>&6 6462 echo $ac_n "(cached) $ac_c" 1>&6
6462 else 6463 else
6463 ac_save_LIBS="$LIBS" 6464 ac_save_LIBS="$LIBS"
6464 LIBS="-lkrb5 $LIBS" 6465 LIBS="-lkrb5 $LIBS"
6465 cat > conftest.$ac_ext <<EOF 6466 cat > conftest.$ac_ext <<EOF
6466 #line 6467 "configure" 6467 #line 6468 "configure"
6467 #include "confdefs.h" 6468 #include "confdefs.h"
6468 /* Override any gcc2 internal prototype to avoid an error. */ 6469 /* Override any gcc2 internal prototype to avoid an error. */
6469 /* We use char because int might match the return type of a gcc2 6470 /* We use char because int might match the return type of a gcc2
6470 builtin and then its argument prototype would still apply. */ 6471 builtin and then its argument prototype would still apply. */
6471 char krb5_init_context(); 6472 char krb5_init_context();
6472 6473
6473 int main() { 6474 int main() {
6474 krb5_init_context() 6475 krb5_init_context()
6475 ; return 0; } 6476 ; return 0; }
6476 EOF 6477 EOF
6477 if { (eval echo configure:6478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6478 if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6478 rm -rf conftest* 6479 rm -rf conftest*
6479 eval "ac_cv_lib_$ac_lib_var=yes" 6480 eval "ac_cv_lib_$ac_lib_var=yes"
6480 else 6481 else
6481 echo "configure: failed program was:" >&5 6482 echo "configure: failed program was:" >&5
6482 cat conftest.$ac_ext >&5 6483 cat conftest.$ac_ext >&5
6501 echo "$ac_t""no" 1>&6 6502 echo "$ac_t""no" 1>&6
6502 fi 6503 fi
6503 6504
6504 if test "${with_kerberos5+set}" != set; then 6505 if test "${with_kerberos5+set}" != set; then
6505 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 6506 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
6506 echo "configure:6507: checking for des_cbc_encrypt in -ldes425" >&5 6507 echo "configure:6508: checking for des_cbc_encrypt in -ldes425" >&5
6507 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 6508 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
6508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6 6510 echo $ac_n "(cached) $ac_c" 1>&6
6510 else 6511 else
6511 ac_save_LIBS="$LIBS" 6512 ac_save_LIBS="$LIBS"
6512 LIBS="-ldes425 $LIBS" 6513 LIBS="-ldes425 $LIBS"
6513 cat > conftest.$ac_ext <<EOF 6514 cat > conftest.$ac_ext <<EOF
6514 #line 6515 "configure" 6515 #line 6516 "configure"
6515 #include "confdefs.h" 6516 #include "confdefs.h"
6516 /* Override any gcc2 internal prototype to avoid an error. */ 6517 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2 6518 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */ 6519 builtin and then its argument prototype would still apply. */
6519 char des_cbc_encrypt(); 6520 char des_cbc_encrypt();
6520 6521
6521 int main() { 6522 int main() {
6522 des_cbc_encrypt() 6523 des_cbc_encrypt()
6523 ; return 0; } 6524 ; return 0; }
6524 EOF 6525 EOF
6525 if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6526 if { (eval echo configure:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6526 rm -rf conftest* 6527 rm -rf conftest*
6527 eval "ac_cv_lib_$ac_lib_var=yes" 6528 eval "ac_cv_lib_$ac_lib_var=yes"
6528 else 6529 else
6529 echo "configure: failed program was:" >&5 6530 echo "configure: failed program was:" >&5
6530 cat conftest.$ac_ext >&5 6531 cat conftest.$ac_ext >&5
6546 LIBS="-ldes425 $LIBS" 6547 LIBS="-ldes425 $LIBS"
6547 6548
6548 else 6549 else
6549 echo "$ac_t""no" 1>&6 6550 echo "$ac_t""no" 1>&6
6550 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 6551 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
6551 echo "configure:6552: checking for des_cbc_encrypt in -ldes" >&5 6552 echo "configure:6553: checking for des_cbc_encrypt in -ldes" >&5
6552 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 6553 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
6553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6 6555 echo $ac_n "(cached) $ac_c" 1>&6
6555 else 6556 else
6556 ac_save_LIBS="$LIBS" 6557 ac_save_LIBS="$LIBS"
6557 LIBS="-ldes $LIBS" 6558 LIBS="-ldes $LIBS"
6558 cat > conftest.$ac_ext <<EOF 6559 cat > conftest.$ac_ext <<EOF
6559 #line 6560 "configure" 6560 #line 6561 "configure"
6560 #include "confdefs.h" 6561 #include "confdefs.h"
6561 /* Override any gcc2 internal prototype to avoid an error. */ 6562 /* Override any gcc2 internal prototype to avoid an error. */
6562 /* We use char because int might match the return type of a gcc2 6563 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */ 6564 builtin and then its argument prototype would still apply. */
6564 char des_cbc_encrypt(); 6565 char des_cbc_encrypt();
6565 6566
6566 int main() { 6567 int main() {
6567 des_cbc_encrypt() 6568 des_cbc_encrypt()
6568 ; return 0; } 6569 ; return 0; }
6569 EOF 6570 EOF
6570 if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6571 if { (eval echo configure:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6571 rm -rf conftest* 6572 rm -rf conftest*
6572 eval "ac_cv_lib_$ac_lib_var=yes" 6573 eval "ac_cv_lib_$ac_lib_var=yes"
6573 else 6574 else
6574 echo "configure: failed program was:" >&5 6575 echo "configure: failed program was:" >&5
6575 cat conftest.$ac_ext >&5 6576 cat conftest.$ac_ext >&5
6595 fi 6596 fi
6596 6597
6597 fi 6598 fi
6598 6599
6599 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 6600 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
6600 echo "configure:6601: checking for krb_get_cred in -lkrb4" >&5 6601 echo "configure:6602: checking for krb_get_cred in -lkrb4" >&5
6601 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` 6602 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
6602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6603 echo $ac_n "(cached) $ac_c" 1>&6 6604 echo $ac_n "(cached) $ac_c" 1>&6
6604 else 6605 else
6605 ac_save_LIBS="$LIBS" 6606 ac_save_LIBS="$LIBS"
6606 LIBS="-lkrb4 $LIBS" 6607 LIBS="-lkrb4 $LIBS"
6607 cat > conftest.$ac_ext <<EOF 6608 cat > conftest.$ac_ext <<EOF
6608 #line 6609 "configure" 6609 #line 6610 "configure"
6609 #include "confdefs.h" 6610 #include "confdefs.h"
6610 /* Override any gcc2 internal prototype to avoid an error. */ 6611 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2 6612 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */ 6613 builtin and then its argument prototype would still apply. */
6613 char krb_get_cred(); 6614 char krb_get_cred();
6614 6615
6615 int main() { 6616 int main() {
6616 krb_get_cred() 6617 krb_get_cred()
6617 ; return 0; } 6618 ; return 0; }
6618 EOF 6619 EOF
6619 if { (eval echo configure:6620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6620 if { (eval echo configure:6621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6620 rm -rf conftest* 6621 rm -rf conftest*
6621 eval "ac_cv_lib_$ac_lib_var=yes" 6622 eval "ac_cv_lib_$ac_lib_var=yes"
6622 else 6623 else
6623 echo "configure: failed program was:" >&5 6624 echo "configure: failed program was:" >&5
6624 cat conftest.$ac_ext >&5 6625 cat conftest.$ac_ext >&5
6640 LIBS="-lkrb4 $LIBS" 6641 LIBS="-lkrb4 $LIBS"
6641 6642
6642 else 6643 else
6643 echo "$ac_t""no" 1>&6 6644 echo "$ac_t""no" 1>&6
6644 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 6645 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
6645 echo "configure:6646: checking for krb_get_cred in -lkrb" >&5 6646 echo "configure:6647: checking for krb_get_cred in -lkrb" >&5
6646 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` 6647 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
6647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6648 echo $ac_n "(cached) $ac_c" 1>&6 6649 echo $ac_n "(cached) $ac_c" 1>&6
6649 else 6650 else
6650 ac_save_LIBS="$LIBS" 6651 ac_save_LIBS="$LIBS"
6651 LIBS="-lkrb $LIBS" 6652 LIBS="-lkrb $LIBS"
6652 cat > conftest.$ac_ext <<EOF 6653 cat > conftest.$ac_ext <<EOF
6653 #line 6654 "configure" 6654 #line 6655 "configure"
6654 #include "confdefs.h" 6655 #include "confdefs.h"
6655 /* Override any gcc2 internal prototype to avoid an error. */ 6656 /* Override any gcc2 internal prototype to avoid an error. */
6656 /* We use char because int might match the return type of a gcc2 6657 /* We use char because int might match the return type of a gcc2
6657 builtin and then its argument prototype would still apply. */ 6658 builtin and then its argument prototype would still apply. */
6658 char krb_get_cred(); 6659 char krb_get_cred();
6659 6660
6660 int main() { 6661 int main() {
6661 krb_get_cred() 6662 krb_get_cred()
6662 ; return 0; } 6663 ; return 0; }
6663 EOF 6664 EOF
6664 if { (eval echo configure:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6665 if { (eval echo configure:6666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6665 rm -rf conftest* 6666 rm -rf conftest*
6666 eval "ac_cv_lib_$ac_lib_var=yes" 6667 eval "ac_cv_lib_$ac_lib_var=yes"
6667 else 6668 else
6668 echo "configure: failed program was:" >&5 6669 echo "configure: failed program was:" >&5
6669 cat conftest.$ac_ext >&5 6670 cat conftest.$ac_ext >&5
6695 if test "${with_kerberos5+set}" = set; then 6696 if test "${with_kerberos5+set}" = set; then
6696 for ac_hdr in krb5.h 6697 for ac_hdr in krb5.h
6697 do 6698 do
6698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6700 echo "configure:6701: checking for $ac_hdr" >&5 6701 echo "configure:6702: checking for $ac_hdr" >&5
6701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6 6703 echo $ac_n "(cached) $ac_c" 1>&6
6703 else 6704 else
6704 cat > conftest.$ac_ext <<EOF 6705 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure" 6706 #line 6707 "configure"
6706 #include "confdefs.h" 6707 #include "confdefs.h"
6707 #include <$ac_hdr> 6708 #include <$ac_hdr>
6708 EOF 6709 EOF
6709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6710 { (eval echo configure:6711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6711 { (eval echo configure:6712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6712 if test -z "$ac_err"; then 6713 if test -z "$ac_err"; then
6713 rm -rf conftest* 6714 rm -rf conftest*
6714 eval "ac_cv_header_$ac_safe=yes" 6715 eval "ac_cv_header_$ac_safe=yes"
6715 else 6716 else
6736 else 6737 else
6737 for ac_hdr in des.h 6738 for ac_hdr in des.h
6738 do 6739 do
6739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6741 echo "configure:6742: checking for $ac_hdr" >&5 6742 echo "configure:6743: checking for $ac_hdr" >&5
6742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6743 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6743 echo $ac_n "(cached) $ac_c" 1>&6 6744 echo $ac_n "(cached) $ac_c" 1>&6
6744 else 6745 else
6745 cat > conftest.$ac_ext <<EOF 6746 cat > conftest.$ac_ext <<EOF
6746 #line 6747 "configure" 6747 #line 6748 "configure"
6747 #include "confdefs.h" 6748 #include "confdefs.h"
6748 #include <$ac_hdr> 6749 #include <$ac_hdr>
6749 EOF 6750 EOF
6750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6751 { (eval echo configure:6752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6752 { (eval echo configure:6753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6753 if test -z "$ac_err"; then 6754 if test -z "$ac_err"; then
6754 rm -rf conftest* 6755 rm -rf conftest*
6755 eval "ac_cv_header_$ac_safe=yes" 6756 eval "ac_cv_header_$ac_safe=yes"
6756 else 6757 else
6773 echo "$ac_t""no" 1>&6 6774 echo "$ac_t""no" 1>&6
6774 for ac_hdr in kerberosIV/des.h 6775 for ac_hdr in kerberosIV/des.h
6775 do 6776 do
6776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6778 echo "configure:6779: checking for $ac_hdr" >&5 6779 echo "configure:6780: checking for $ac_hdr" >&5
6779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6780 echo $ac_n "(cached) $ac_c" 1>&6 6781 echo $ac_n "(cached) $ac_c" 1>&6
6781 else 6782 else
6782 cat > conftest.$ac_ext <<EOF 6783 cat > conftest.$ac_ext <<EOF
6783 #line 6784 "configure" 6784 #line 6785 "configure"
6784 #include "confdefs.h" 6785 #include "confdefs.h"
6785 #include <$ac_hdr> 6786 #include <$ac_hdr>
6786 EOF 6787 EOF
6787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6788 { (eval echo configure:6789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6789 { (eval echo configure:6790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6790 if test -z "$ac_err"; then 6791 if test -z "$ac_err"; then
6791 rm -rf conftest* 6792 rm -rf conftest*
6792 eval "ac_cv_header_$ac_safe=yes" 6793 eval "ac_cv_header_$ac_safe=yes"
6793 else 6794 else
6810 echo "$ac_t""no" 1>&6 6811 echo "$ac_t""no" 1>&6
6811 for ac_hdr in kerberos/des.h 6812 for ac_hdr in kerberos/des.h
6812 do 6813 do
6813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6815 echo "configure:6816: checking for $ac_hdr" >&5 6816 echo "configure:6817: checking for $ac_hdr" >&5
6816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6 6818 echo $ac_n "(cached) $ac_c" 1>&6
6818 else 6819 else
6819 cat > conftest.$ac_ext <<EOF 6820 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure" 6821 #line 6822 "configure"
6821 #include "confdefs.h" 6822 #include "confdefs.h"
6822 #include <$ac_hdr> 6823 #include <$ac_hdr>
6823 EOF 6824 EOF
6824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6825 { (eval echo configure:6826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6826 { (eval echo configure:6827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6827 if test -z "$ac_err"; then 6828 if test -z "$ac_err"; then
6828 rm -rf conftest* 6829 rm -rf conftest*
6829 eval "ac_cv_header_$ac_safe=yes" 6830 eval "ac_cv_header_$ac_safe=yes"
6830 else 6831 else
6856 6857
6857 for ac_hdr in krb.h 6858 for ac_hdr in krb.h
6858 do 6859 do
6859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6860 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6861 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6861 echo "configure:6862: checking for $ac_hdr" >&5 6862 echo "configure:6863: checking for $ac_hdr" >&5
6862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6863 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6863 echo $ac_n "(cached) $ac_c" 1>&6 6864 echo $ac_n "(cached) $ac_c" 1>&6
6864 else 6865 else
6865 cat > conftest.$ac_ext <<EOF 6866 cat > conftest.$ac_ext <<EOF
6866 #line 6867 "configure" 6867 #line 6868 "configure"
6867 #include "confdefs.h" 6868 #include "confdefs.h"
6868 #include <$ac_hdr> 6869 #include <$ac_hdr>
6869 EOF 6870 EOF
6870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6871 { (eval echo configure:6872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6872 { (eval echo configure:6873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6873 if test -z "$ac_err"; then 6874 if test -z "$ac_err"; then
6874 rm -rf conftest* 6875 rm -rf conftest*
6875 eval "ac_cv_header_$ac_safe=yes" 6876 eval "ac_cv_header_$ac_safe=yes"
6876 else 6877 else
6893 echo "$ac_t""no" 1>&6 6894 echo "$ac_t""no" 1>&6
6894 for ac_hdr in kerberosIV/krb.h 6895 for ac_hdr in kerberosIV/krb.h
6895 do 6896 do
6896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6898 echo "configure:6899: checking for $ac_hdr" >&5 6899 echo "configure:6900: checking for $ac_hdr" >&5
6899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6900 echo $ac_n "(cached) $ac_c" 1>&6 6901 echo $ac_n "(cached) $ac_c" 1>&6
6901 else 6902 else
6902 cat > conftest.$ac_ext <<EOF 6903 cat > conftest.$ac_ext <<EOF
6903 #line 6904 "configure" 6904 #line 6905 "configure"
6904 #include "confdefs.h" 6905 #include "confdefs.h"
6905 #include <$ac_hdr> 6906 #include <$ac_hdr>
6906 EOF 6907 EOF
6907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6908 { (eval echo configure:6909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6909 { (eval echo configure:6910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6910 if test -z "$ac_err"; then 6911 if test -z "$ac_err"; then
6911 rm -rf conftest* 6912 rm -rf conftest*
6912 eval "ac_cv_header_$ac_safe=yes" 6913 eval "ac_cv_header_$ac_safe=yes"
6913 else 6914 else
6930 echo "$ac_t""no" 1>&6 6931 echo "$ac_t""no" 1>&6
6931 for ac_hdr in kerberos/krb.h 6932 for ac_hdr in kerberos/krb.h
6932 do 6933 do
6933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6935 echo "configure:6936: checking for $ac_hdr" >&5 6936 echo "configure:6937: checking for $ac_hdr" >&5
6936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6937 echo $ac_n "(cached) $ac_c" 1>&6 6938 echo $ac_n "(cached) $ac_c" 1>&6
6938 else 6939 else
6939 cat > conftest.$ac_ext <<EOF 6940 cat > conftest.$ac_ext <<EOF
6940 #line 6941 "configure" 6941 #line 6942 "configure"
6941 #include "confdefs.h" 6942 #include "confdefs.h"
6942 #include <$ac_hdr> 6943 #include <$ac_hdr>
6943 EOF 6944 EOF
6944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6945 { (eval echo configure:6946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6946 { (eval echo configure:6947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6947 if test -z "$ac_err"; then 6948 if test -z "$ac_err"; then
6948 rm -rf conftest* 6949 rm -rf conftest*
6949 eval "ac_cv_header_$ac_safe=yes" 6950 eval "ac_cv_header_$ac_safe=yes"
6950 else 6951 else
6977 fi 6978 fi
6978 for ac_hdr in com_err.h 6979 for ac_hdr in com_err.h
6979 do 6980 do
6980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6982 echo "configure:6983: checking for $ac_hdr" >&5 6983 echo "configure:6984: checking for $ac_hdr" >&5
6983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6984 echo $ac_n "(cached) $ac_c" 1>&6 6985 echo $ac_n "(cached) $ac_c" 1>&6
6985 else 6986 else
6986 cat > conftest.$ac_ext <<EOF 6987 cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure" 6988 #line 6989 "configure"
6988 #include "confdefs.h" 6989 #include "confdefs.h"
6989 #include <$ac_hdr> 6990 #include <$ac_hdr>
6990 EOF 6991 EOF
6991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6992 { (eval echo configure:6993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6993 { (eval echo configure:6994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6994 if test -z "$ac_err"; then 6995 if test -z "$ac_err"; then
6995 rm -rf conftest* 6996 rm -rf conftest*
6996 eval "ac_cv_header_$ac_safe=yes" 6997 eval "ac_cv_header_$ac_safe=yes"
6997 else 6998 else
7018 fi 7019 fi
7019 7020
7020 # Solaris requires -lintl if you want strerror (which calls dgettext) 7021 # Solaris requires -lintl if you want strerror (which calls dgettext)
7021 # to return localized messages. 7022 # to return localized messages.
7022 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 7023 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
7023 echo "configure:7024: checking for dgettext in -lintl" >&5 7024 echo "configure:7025: checking for dgettext in -lintl" >&5
7024 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 7025 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
7025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7026 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6 7027 echo $ac_n "(cached) $ac_c" 1>&6
7027 else 7028 else
7028 ac_save_LIBS="$LIBS" 7029 ac_save_LIBS="$LIBS"
7029 LIBS="-lintl $LIBS" 7030 LIBS="-lintl $LIBS"
7030 cat > conftest.$ac_ext <<EOF 7031 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure" 7032 #line 7033 "configure"
7032 #include "confdefs.h" 7033 #include "confdefs.h"
7033 /* Override any gcc2 internal prototype to avoid an error. */ 7034 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2 7035 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */ 7036 builtin and then its argument prototype would still apply. */
7036 char dgettext(); 7037 char dgettext();
7037 7038
7038 int main() { 7039 int main() {
7039 dgettext() 7040 dgettext()
7040 ; return 0; } 7041 ; return 0; }
7041 EOF 7042 EOF
7042 if { (eval echo configure:7043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7043 if { (eval echo configure:7044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7043 rm -rf conftest* 7044 rm -rf conftest*
7044 eval "ac_cv_lib_$ac_lib_var=yes" 7045 eval "ac_cv_lib_$ac_lib_var=yes"
7045 else 7046 else
7046 echo "configure: failed program was:" >&5 7047 echo "configure: failed program was:" >&5
7047 cat conftest.$ac_ext >&5 7048 cat conftest.$ac_ext >&5
7066 echo "$ac_t""no" 1>&6 7067 echo "$ac_t""no" 1>&6
7067 fi 7068 fi
7068 7069
7069 7070
7070 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7071 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7071 echo "configure:7072: checking whether localtime caches TZ" >&5 7072 echo "configure:7073: checking whether localtime caches TZ" >&5
7072 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 7073 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
7073 echo $ac_n "(cached) $ac_c" 1>&6 7074 echo $ac_n "(cached) $ac_c" 1>&6
7074 else 7075 else
7075 if test x$ac_cv_func_tzset = xyes; then 7076 if test x$ac_cv_func_tzset = xyes; then
7076 if test "$cross_compiling" = yes; then 7077 if test "$cross_compiling" = yes; then
7077 # If we have tzset, assume the worst when cross-compiling. 7078 # If we have tzset, assume the worst when cross-compiling.
7078 emacs_cv_localtime_cache=yes 7079 emacs_cv_localtime_cache=yes
7079 else 7080 else
7080 cat > conftest.$ac_ext <<EOF 7081 cat > conftest.$ac_ext <<EOF
7081 #line 7082 "configure" 7082 #line 7083 "configure"
7082 #include "confdefs.h" 7083 #include "confdefs.h"
7083 #include <time.h> 7084 #include <time.h>
7084 extern char **environ; 7085 extern char **environ;
7085 unset_TZ () 7086 unset_TZ ()
7086 { 7087 {
7108 if (localtime (&now)->tm_hour != hour_unset) 7109 if (localtime (&now)->tm_hour != hour_unset)
7109 exit (1); 7110 exit (1);
7110 exit (0); 7111 exit (0);
7111 } 7112 }
7112 EOF 7113 EOF
7113 if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7114 if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7114 then 7115 then
7115 emacs_cv_localtime_cache=no 7116 emacs_cv_localtime_cache=no
7116 else 7117 else
7117 echo "configure: failed program was:" >&5 7118 echo "configure: failed program was:" >&5
7118 cat conftest.$ac_ext >&5 7119 cat conftest.$ac_ext >&5
7136 7137
7137 fi 7138 fi
7138 7139
7139 if test "x$HAVE_TIMEVAL" = xyes; then 7140 if test "x$HAVE_TIMEVAL" = xyes; then
7140 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 7141 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
7141 echo "configure:7142: checking whether gettimeofday can accept two arguments" >&5 7142 echo "configure:7143: checking whether gettimeofday can accept two arguments" >&5
7142 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 7143 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
7143 echo $ac_n "(cached) $ac_c" 1>&6 7144 echo $ac_n "(cached) $ac_c" 1>&6
7144 else 7145 else
7145 cat > conftest.$ac_ext <<EOF 7146 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure" 7147 #line 7148 "configure"
7147 #include "confdefs.h" 7148 #include "confdefs.h"
7148 7149
7149 #ifdef TIME_WITH_SYS_TIME 7150 #ifdef TIME_WITH_SYS_TIME
7150 #include <sys/time.h> 7151 #include <sys/time.h>
7151 #include <time.h> 7152 #include <time.h>
7163 struct timezone dummy; 7164 struct timezone dummy;
7164 gettimeofday (&time, &dummy); 7165 gettimeofday (&time, &dummy);
7165 7166
7166 ; return 0; } 7167 ; return 0; }
7167 EOF 7168 EOF
7168 if { (eval echo configure:7169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7169 rm -rf conftest* 7170 rm -rf conftest*
7170 emacs_cv_gettimeofday_two_arguments=yes 7171 emacs_cv_gettimeofday_two_arguments=yes
7171 else 7172 else
7172 echo "configure: failed program was:" >&5 7173 echo "configure: failed program was:" >&5
7173 cat conftest.$ac_ext >&5 7174 cat conftest.$ac_ext >&5
7186 fi 7187 fi
7187 fi 7188 fi
7188 7189
7189 ok_so_far=yes 7190 ok_so_far=yes
7190 echo $ac_n "checking for socket""... $ac_c" 1>&6 7191 echo $ac_n "checking for socket""... $ac_c" 1>&6
7191 echo "configure:7192: checking for socket" >&5 7192 echo "configure:7193: checking for socket" >&5
7192 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 7193 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6 7194 echo $ac_n "(cached) $ac_c" 1>&6
7194 else 7195 else
7195 cat > conftest.$ac_ext <<EOF 7196 cat > conftest.$ac_ext <<EOF
7196 #line 7197 "configure" 7197 #line 7198 "configure"
7197 #include "confdefs.h" 7198 #include "confdefs.h"
7198 /* System header to define __stub macros and hopefully few prototypes, 7199 /* System header to define __stub macros and hopefully few prototypes,
7199 which can conflict with char socket(); below. */ 7200 which can conflict with char socket(); below. */
7200 #include <assert.h> 7201 #include <assert.h>
7201 /* Override any gcc2 internal prototype to avoid an error. */ 7202 /* Override any gcc2 internal prototype to avoid an error. */
7214 socket(); 7215 socket();
7215 #endif 7216 #endif
7216 7217
7217 ; return 0; } 7218 ; return 0; }
7218 EOF 7219 EOF
7219 if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7220 if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7220 rm -rf conftest* 7221 rm -rf conftest*
7221 eval "ac_cv_func_socket=yes" 7222 eval "ac_cv_func_socket=yes"
7222 else 7223 else
7223 echo "configure: failed program was:" >&5 7224 echo "configure: failed program was:" >&5
7224 cat conftest.$ac_ext >&5 7225 cat conftest.$ac_ext >&5
7237 fi 7238 fi
7238 7239
7239 if test $ok_so_far = yes; then 7240 if test $ok_so_far = yes; then
7240 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 7241 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
7241 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 7242 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
7242 echo "configure:7243: checking for netinet/in.h" >&5 7243 echo "configure:7244: checking for netinet/in.h" >&5
7243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6 7245 echo $ac_n "(cached) $ac_c" 1>&6
7245 else 7246 else
7246 cat > conftest.$ac_ext <<EOF 7247 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure" 7248 #line 7249 "configure"
7248 #include "confdefs.h" 7249 #include "confdefs.h"
7249 #include <netinet/in.h> 7250 #include <netinet/in.h>
7250 EOF 7251 EOF
7251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7252 { (eval echo configure:7253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7253 { (eval echo configure:7254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7254 if test -z "$ac_err"; then 7255 if test -z "$ac_err"; then
7255 rm -rf conftest* 7256 rm -rf conftest*
7256 eval "ac_cv_header_$ac_safe=yes" 7257 eval "ac_cv_header_$ac_safe=yes"
7257 else 7258 else
7273 7274
7274 fi 7275 fi
7275 if test $ok_so_far = yes; then 7276 if test $ok_so_far = yes; then
7276 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 7277 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
7277 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 7278 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
7278 echo "configure:7279: checking for arpa/inet.h" >&5 7279 echo "configure:7280: checking for arpa/inet.h" >&5
7279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6 7281 echo $ac_n "(cached) $ac_c" 1>&6
7281 else 7282 else
7282 cat > conftest.$ac_ext <<EOF 7283 cat > conftest.$ac_ext <<EOF
7283 #line 7284 "configure" 7284 #line 7285 "configure"
7284 #include "confdefs.h" 7285 #include "confdefs.h"
7285 #include <arpa/inet.h> 7286 #include <arpa/inet.h>
7286 EOF 7287 EOF
7287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7288 { (eval echo configure:7289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7289 { (eval echo configure:7290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7290 if test -z "$ac_err"; then 7291 if test -z "$ac_err"; then
7291 rm -rf conftest* 7292 rm -rf conftest*
7292 eval "ac_cv_header_$ac_safe=yes" 7293 eval "ac_cv_header_$ac_safe=yes"
7293 else 7294 else
7321 EOF 7322 EOF
7322 7323
7323 fi 7324 fi
7324 7325
7325 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 7326 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
7326 echo "configure:7327: checking whether system supports dynamic ptys" >&5 7327 echo "configure:7328: checking whether system supports dynamic ptys" >&5
7327 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 7328 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
7328 echo "$ac_t""yes" 1>&6 7329 echo "$ac_t""yes" 1>&6
7329 cat >> confdefs.h <<\EOF 7330 cat >> confdefs.h <<\EOF
7330 #define HAVE_DEV_PTMX 1 7331 #define HAVE_DEV_PTMX 1
7331 EOF 7332 EOF
7333 else 7334 else
7334 echo "$ac_t""no" 1>&6 7335 echo "$ac_t""no" 1>&6
7335 fi 7336 fi
7336 7337
7337 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 7338 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7338 echo "configure:7339: checking for pid_t" >&5 7339 echo "configure:7340: checking for pid_t" >&5
7339 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 7340 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6 7341 echo $ac_n "(cached) $ac_c" 1>&6
7341 else 7342 else
7342 cat > conftest.$ac_ext <<EOF 7343 cat > conftest.$ac_ext <<EOF
7343 #line 7344 "configure" 7344 #line 7345 "configure"
7344 #include "confdefs.h" 7345 #include "confdefs.h"
7345 #include <sys/types.h> 7346 #include <sys/types.h>
7346 #if STDC_HEADERS 7347 #if STDC_HEADERS
7347 #include <stdlib.h> 7348 #include <stdlib.h>
7348 #include <stddef.h> 7349 #include <stddef.h>
7367 7368
7368 fi 7369 fi
7369 7370
7370 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 7371 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
7371 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 7372 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
7372 echo "configure:7373: checking for vfork.h" >&5 7373 echo "configure:7374: checking for vfork.h" >&5
7373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7374 echo $ac_n "(cached) $ac_c" 1>&6 7375 echo $ac_n "(cached) $ac_c" 1>&6
7375 else 7376 else
7376 cat > conftest.$ac_ext <<EOF 7377 cat > conftest.$ac_ext <<EOF
7377 #line 7378 "configure" 7378 #line 7379 "configure"
7378 #include "confdefs.h" 7379 #include "confdefs.h"
7379 #include <vfork.h> 7380 #include <vfork.h>
7380 EOF 7381 EOF
7381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7382 { (eval echo configure:7383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7383 { (eval echo configure:7384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7384 if test -z "$ac_err"; then 7385 if test -z "$ac_err"; then
7385 rm -rf conftest* 7386 rm -rf conftest*
7386 eval "ac_cv_header_$ac_safe=yes" 7387 eval "ac_cv_header_$ac_safe=yes"
7387 else 7388 else
7402 else 7403 else
7403 echo "$ac_t""no" 1>&6 7404 echo "$ac_t""no" 1>&6
7404 fi 7405 fi
7405 7406
7406 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 7407 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
7407 echo "configure:7408: checking for working vfork" >&5 7408 echo "configure:7409: checking for working vfork" >&5
7408 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 7409 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
7409 echo $ac_n "(cached) $ac_c" 1>&6 7410 echo $ac_n "(cached) $ac_c" 1>&6
7410 else 7411 else
7411 if test "$cross_compiling" = yes; then 7412 if test "$cross_compiling" = yes; then
7412 echo $ac_n "checking for vfork""... $ac_c" 1>&6 7413 echo $ac_n "checking for vfork""... $ac_c" 1>&6
7413 echo "configure:7414: checking for vfork" >&5 7414 echo "configure:7415: checking for vfork" >&5
7414 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 7415 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
7415 echo $ac_n "(cached) $ac_c" 1>&6 7416 echo $ac_n "(cached) $ac_c" 1>&6
7416 else 7417 else
7417 cat > conftest.$ac_ext <<EOF 7418 cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure" 7419 #line 7420 "configure"
7419 #include "confdefs.h" 7420 #include "confdefs.h"
7420 /* System header to define __stub macros and hopefully few prototypes, 7421 /* System header to define __stub macros and hopefully few prototypes,
7421 which can conflict with char vfork(); below. */ 7422 which can conflict with char vfork(); below. */
7422 #include <assert.h> 7423 #include <assert.h>
7423 /* Override any gcc2 internal prototype to avoid an error. */ 7424 /* Override any gcc2 internal prototype to avoid an error. */
7436 vfork(); 7437 vfork();
7437 #endif 7438 #endif
7438 7439
7439 ; return 0; } 7440 ; return 0; }
7440 EOF 7441 EOF
7441 if { (eval echo configure:7442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7442 if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7442 rm -rf conftest* 7443 rm -rf conftest*
7443 eval "ac_cv_func_vfork=yes" 7444 eval "ac_cv_func_vfork=yes"
7444 else 7445 else
7445 echo "configure: failed program was:" >&5 7446 echo "configure: failed program was:" >&5
7446 cat conftest.$ac_ext >&5 7447 cat conftest.$ac_ext >&5
7458 fi 7459 fi
7459 7460
7460 ac_cv_func_vfork_works=$ac_cv_func_vfork 7461 ac_cv_func_vfork_works=$ac_cv_func_vfork
7461 else 7462 else
7462 cat > conftest.$ac_ext <<EOF 7463 cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure" 7464 #line 7465 "configure"
7464 #include "confdefs.h" 7465 #include "confdefs.h"
7465 /* Thanks to Paul Eggert for this test. */ 7466 /* Thanks to Paul Eggert for this test. */
7466 #include <stdio.h> 7467 #include <stdio.h>
7467 #include <sys/types.h> 7468 #include <sys/types.h>
7468 #include <sys/stat.h> 7469 #include <sys/stat.h>
7553 || fstat(fileno(stdout), &st) != 0 7554 || fstat(fileno(stdout), &st) != 0
7554 ); 7555 );
7555 } 7556 }
7556 } 7557 }
7557 EOF 7558 EOF
7558 if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7559 if { (eval echo configure:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7559 then 7560 then
7560 ac_cv_func_vfork_works=yes 7561 ac_cv_func_vfork_works=yes
7561 else 7562 else
7562 echo "configure: failed program was:" >&5 7563 echo "configure: failed program was:" >&5
7563 cat conftest.$ac_ext >&5 7564 cat conftest.$ac_ext >&5