Mercurial > emacs
comparison configure @ 27356:6a78e514e6d3
*** empty log message ***
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 18 Jan 2000 11:01:12 +0000 |
parents | 5b9c236a581d |
children | e655a2d4ecca |
comparison
equal
deleted
inserted
replaced
27355:0a57c4f130bd | 27356:6a78e514e6d3 |
---|---|
869 alpha*-dec-osf* ) | 869 alpha*-dec-osf* ) |
870 machine=alpha opsys=osf1 | 870 machine=alpha opsys=osf1 |
871 # This is needed to find X11R6.1 libraries for certain tests. | 871 # This is needed to find X11R6.1 libraries for certain tests. |
872 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | 872 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib |
873 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | 873 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib |
874 #NON_GCC_TEST_OPTIONS=-std # gets us __STDC__ | |
875 #NON_GNU_CPP=/usr/lib/cpp | |
876 ;; | 874 ;; |
877 | 875 |
878 alpha*-*-linux-gnu* ) | 876 alpha*-*-linux-gnu* ) |
879 machine=alpha opsys=gnu-linux | 877 machine=alpha opsys=gnu-linux |
880 ;; | 878 ;; |
899 ;; | 897 ;; |
900 | 898 |
901 ## Apollo, Domain/OS | 899 ## Apollo, Domain/OS |
902 m68*-apollo-* ) | 900 m68*-apollo-* ) |
903 machine=apollo opsys=bsd4-3 | 901 machine=apollo opsys=bsd4-3 |
904 ;; | |
905 | |
906 ## ARM, GNU/Linux | |
907 arm*-*-linux-gnu* ) | |
908 machine=arm opsys=gnu-linux | |
909 ;; | 902 ;; |
910 | 903 |
911 ## AT&T 3b2, 3b5, 3b15, 3b20 | 904 ## AT&T 3b2, 3b5, 3b15, 3b20 |
912 we32k-att-sysv* ) | 905 we32k-att-sysv* ) |
913 machine=att3b opsys=usg5-2-2 | 906 machine=att3b opsys=usg5-2-2 |
1704 "yes" ) CC="gcc" GCC=yes ;; | 1697 "yes" ) CC="gcc" GCC=yes ;; |
1705 "no" ) : ${CC=cc} ;; | 1698 "no" ) : ${CC=cc} ;; |
1706 * ) # Extract the first word of "gcc", so it can be a program name with args. | 1699 * ) # Extract the first word of "gcc", so it can be a program name with args. |
1707 set dummy gcc; ac_word=$2 | 1700 set dummy gcc; ac_word=$2 |
1708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1709 echo "configure:1710: checking for $ac_word" >&5 | 1702 echo "configure:1703: checking for $ac_word" >&5 |
1710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 1703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1711 echo $ac_n "(cached) $ac_c" 1>&6 | 1704 echo $ac_n "(cached) $ac_c" 1>&6 |
1712 else | 1705 else |
1713 if test -n "$CC"; then | 1706 if test -n "$CC"; then |
1714 ac_cv_prog_CC="$CC" # Let the user override the test. | 1707 ac_cv_prog_CC="$CC" # Let the user override the test. |
1734 | 1727 |
1735 if test -z "$CC"; then | 1728 if test -z "$CC"; then |
1736 # Extract the first word of "cc", so it can be a program name with args. | 1729 # Extract the first word of "cc", so it can be a program name with args. |
1737 set dummy cc; ac_word=$2 | 1730 set dummy cc; ac_word=$2 |
1738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1739 echo "configure:1740: checking for $ac_word" >&5 | 1732 echo "configure:1733: checking for $ac_word" >&5 |
1740 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 1733 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1741 echo $ac_n "(cached) $ac_c" 1>&6 | 1734 echo $ac_n "(cached) $ac_c" 1>&6 |
1742 else | 1735 else |
1743 if test -n "$CC"; then | 1736 if test -n "$CC"; then |
1744 ac_cv_prog_CC="$CC" # Let the user override the test. | 1737 ac_cv_prog_CC="$CC" # Let the user override the test. |
1785 case "`uname -s`" in | 1778 case "`uname -s`" in |
1786 *win32* | *WIN32*) | 1779 *win32* | *WIN32*) |
1787 # Extract the first word of "cl", so it can be a program name with args. | 1780 # Extract the first word of "cl", so it can be a program name with args. |
1788 set dummy cl; ac_word=$2 | 1781 set dummy cl; ac_word=$2 |
1789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1790 echo "configure:1791: checking for $ac_word" >&5 | 1783 echo "configure:1784: checking for $ac_word" >&5 |
1791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 1784 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1792 echo $ac_n "(cached) $ac_c" 1>&6 | 1785 echo $ac_n "(cached) $ac_c" 1>&6 |
1793 else | 1786 else |
1794 if test -n "$CC"; then | 1787 if test -n "$CC"; then |
1795 ac_cv_prog_CC="$CC" # Let the user override the test. | 1788 ac_cv_prog_CC="$CC" # Let the user override the test. |
1817 fi | 1810 fi |
1818 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 1811 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1819 fi | 1812 fi |
1820 | 1813 |
1821 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 1814 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1822 echo "configure:1823: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 1815 echo "configure:1816: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1823 | 1816 |
1824 ac_ext=c | 1817 ac_ext=c |
1825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 1818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1826 ac_cpp='$CPP $CPPFLAGS' | 1819 ac_cpp='$CPP $CPPFLAGS' |
1827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 1820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 1821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1829 cross_compiling=$ac_cv_prog_cc_cross | 1822 cross_compiling=$ac_cv_prog_cc_cross |
1830 | 1823 |
1831 cat > conftest.$ac_ext << EOF | 1824 cat > conftest.$ac_ext << EOF |
1832 | 1825 |
1833 #line 1834 "configure" | 1826 #line 1827 "configure" |
1834 #include "confdefs.h" | 1827 #include "confdefs.h" |
1835 | 1828 |
1836 main(){return(0);} | 1829 main(){return(0);} |
1837 EOF | 1830 EOF |
1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1839 ac_cv_prog_cc_works=yes | 1832 ac_cv_prog_cc_works=yes |
1840 # If we can't run a trivial program, we are probably using a cross compiler. | 1833 # If we can't run a trivial program, we are probably using a cross compiler. |
1841 if (./conftest; exit) 2>/dev/null; then | 1834 if (./conftest; exit) 2>/dev/null; then |
1842 ac_cv_prog_cc_cross=no | 1835 ac_cv_prog_cc_cross=no |
1843 else | 1836 else |
1859 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 1852 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1860 if test $ac_cv_prog_cc_works = no; then | 1853 if test $ac_cv_prog_cc_works = no; then |
1861 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 1854 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1862 fi | 1855 fi |
1863 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 1856 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1864 echo "configure:1865: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 1857 echo "configure:1858: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1865 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 1858 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1866 cross_compiling=$ac_cv_prog_cc_cross | 1859 cross_compiling=$ac_cv_prog_cc_cross |
1867 | 1860 |
1868 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 1861 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1869 echo "configure:1870: checking whether we are using GNU C" >&5 | 1862 echo "configure:1863: checking whether we are using GNU C" >&5 |
1870 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 1863 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1871 echo $ac_n "(cached) $ac_c" 1>&6 | 1864 echo $ac_n "(cached) $ac_c" 1>&6 |
1872 else | 1865 else |
1873 cat > conftest.c <<EOF | 1866 cat > conftest.c <<EOF |
1874 #ifdef __GNUC__ | 1867 #ifdef __GNUC__ |
1875 yes; | 1868 yes; |
1876 #endif | 1869 #endif |
1877 EOF | 1870 EOF |
1878 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 1871 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1879 ac_cv_prog_gcc=yes | 1872 ac_cv_prog_gcc=yes |
1880 else | 1873 else |
1881 ac_cv_prog_gcc=no | 1874 ac_cv_prog_gcc=no |
1882 fi | 1875 fi |
1883 fi | 1876 fi |
1892 | 1885 |
1893 ac_test_CFLAGS="${CFLAGS+set}" | 1886 ac_test_CFLAGS="${CFLAGS+set}" |
1894 ac_save_CFLAGS="$CFLAGS" | 1887 ac_save_CFLAGS="$CFLAGS" |
1895 CFLAGS= | 1888 CFLAGS= |
1896 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 1889 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1897 echo "configure:1898: checking whether ${CC-cc} accepts -g" >&5 | 1890 echo "configure:1891: checking whether ${CC-cc} accepts -g" >&5 |
1898 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 1891 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1899 echo $ac_n "(cached) $ac_c" 1>&6 | 1892 echo $ac_n "(cached) $ac_c" 1>&6 |
1900 else | 1893 else |
1901 echo 'void f(){}' > conftest.c | 1894 echo 'void f(){}' > conftest.c |
1902 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 1895 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1972 #### Some other nice autoconf tests. If you add a test here which | 1965 #### Some other nice autoconf tests. If you add a test here which |
1973 #### should make an entry in src/config.h, don't forget to add an | 1966 #### should make an entry in src/config.h, don't forget to add an |
1974 #### #undef clause to src/config.h.in for autoconf to modify. | 1967 #### #undef clause to src/config.h.in for autoconf to modify. |
1975 | 1968 |
1976 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | 1969 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1977 echo "configure:1978: checking whether ln -s works" >&5 | 1970 echo "configure:1971: checking whether ln -s works" >&5 |
1978 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | 1971 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1979 echo $ac_n "(cached) $ac_c" 1>&6 | 1972 echo $ac_n "(cached) $ac_c" 1>&6 |
1980 else | 1973 else |
1981 rm -f conftestdata | 1974 rm -f conftestdata |
1982 if ln -s X conftestdata 2>/dev/null | 1975 if ln -s X conftestdata 2>/dev/null |
1993 else | 1986 else |
1994 echo "$ac_t""no" 1>&6 | 1987 echo "$ac_t""no" 1>&6 |
1995 fi | 1988 fi |
1996 | 1989 |
1997 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 1990 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1998 echo "configure:1999: checking how to run the C preprocessor" >&5 | 1991 echo "configure:1992: checking how to run the C preprocessor" >&5 |
1999 # On Suns, sometimes $CPP names a directory. | 1992 # On Suns, sometimes $CPP names a directory. |
2000 if test -n "$CPP" && test -d "$CPP"; then | 1993 if test -n "$CPP" && test -d "$CPP"; then |
2001 CPP= | 1994 CPP= |
2002 fi | 1995 fi |
2003 if test -z "$CPP"; then | 1996 if test -z "$CPP"; then |
2008 # substituted into the Makefile and "${CC-cc}" will confuse make. | 2001 # substituted into the Makefile and "${CC-cc}" will confuse make. |
2009 CPP="${CC-cc} -E" | 2002 CPP="${CC-cc} -E" |
2010 # On the NeXT, cc -E runs the code through the compiler's parser, | 2003 # On the NeXT, cc -E runs the code through the compiler's parser, |
2011 # not just through cpp. | 2004 # not just through cpp. |
2012 cat > conftest.$ac_ext <<EOF | 2005 cat > conftest.$ac_ext <<EOF |
2013 #line 2014 "configure" | 2006 #line 2007 "configure" |
2014 #include "confdefs.h" | 2007 #include "confdefs.h" |
2015 #include <assert.h> | 2008 #include <assert.h> |
2016 Syntax Error | 2009 Syntax Error |
2017 EOF | 2010 EOF |
2018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2019 { (eval echo configure:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2012 { (eval echo configure:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2021 if test -z "$ac_err"; then | 2014 if test -z "$ac_err"; then |
2022 : | 2015 : |
2023 else | 2016 else |
2024 echo "$ac_err" >&5 | 2017 echo "$ac_err" >&5 |
2025 echo "configure: failed program was:" >&5 | 2018 echo "configure: failed program was:" >&5 |
2026 cat conftest.$ac_ext >&5 | 2019 cat conftest.$ac_ext >&5 |
2027 rm -rf conftest* | 2020 rm -rf conftest* |
2028 CPP="${CC-cc} -E -traditional-cpp" | 2021 CPP="${CC-cc} -E -traditional-cpp" |
2029 cat > conftest.$ac_ext <<EOF | 2022 cat > conftest.$ac_ext <<EOF |
2030 #line 2031 "configure" | 2023 #line 2024 "configure" |
2031 #include "confdefs.h" | 2024 #include "confdefs.h" |
2032 #include <assert.h> | 2025 #include <assert.h> |
2033 Syntax Error | 2026 Syntax Error |
2034 EOF | 2027 EOF |
2035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2036 { (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2029 { (eval echo configure:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2038 if test -z "$ac_err"; then | 2031 if test -z "$ac_err"; then |
2039 : | 2032 : |
2040 else | 2033 else |
2041 echo "$ac_err" >&5 | 2034 echo "$ac_err" >&5 |
2042 echo "configure: failed program was:" >&5 | 2035 echo "configure: failed program was:" >&5 |
2043 cat conftest.$ac_ext >&5 | 2036 cat conftest.$ac_ext >&5 |
2044 rm -rf conftest* | 2037 rm -rf conftest* |
2045 CPP="${CC-cc} -nologo -E" | 2038 CPP="${CC-cc} -nologo -E" |
2046 cat > conftest.$ac_ext <<EOF | 2039 cat > conftest.$ac_ext <<EOF |
2047 #line 2048 "configure" | 2040 #line 2041 "configure" |
2048 #include "confdefs.h" | 2041 #include "confdefs.h" |
2049 #include <assert.h> | 2042 #include <assert.h> |
2050 Syntax Error | 2043 Syntax Error |
2051 EOF | 2044 EOF |
2052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2053 { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2046 { (eval echo configure:2047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2055 if test -z "$ac_err"; then | 2048 if test -z "$ac_err"; then |
2056 : | 2049 : |
2057 else | 2050 else |
2058 echo "$ac_err" >&5 | 2051 echo "$ac_err" >&5 |
2084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 2077 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 2078 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 2079 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2087 # ./install, which can be erroneously created by make from ./install.sh. | 2080 # ./install, which can be erroneously created by make from ./install.sh. |
2088 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 2081 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
2089 echo "configure:2090: checking for a BSD compatible install" >&5 | 2082 echo "configure:2083: checking for a BSD compatible install" >&5 |
2090 if test -z "$INSTALL"; then | 2083 if test -z "$INSTALL"; then |
2091 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 2084 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
2092 echo $ac_n "(cached) $ac_c" 1>&6 | 2085 echo $ac_n "(cached) $ac_c" 1>&6 |
2093 else | 2086 else |
2094 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | 2087 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
2141 for ac_prog in 'bison -y' byacc | 2134 for ac_prog in 'bison -y' byacc |
2142 do | 2135 do |
2143 # Extract the first word of "$ac_prog", so it can be a program name with args. | 2136 # Extract the first word of "$ac_prog", so it can be a program name with args. |
2144 set dummy $ac_prog; ac_word=$2 | 2137 set dummy $ac_prog; ac_word=$2 |
2145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2146 echo "configure:2147: checking for $ac_word" >&5 | 2139 echo "configure:2140: checking for $ac_word" >&5 |
2147 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | 2140 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
2148 echo $ac_n "(cached) $ac_c" 1>&6 | 2141 echo $ac_n "(cached) $ac_c" 1>&6 |
2149 else | 2142 else |
2150 if test -n "$YACC"; then | 2143 if test -n "$YACC"; then |
2151 ac_cv_prog_YACC="$YACC" # Let the user override the test. | 2144 ac_cv_prog_YACC="$YACC" # Let the user override the test. |
2173 done | 2166 done |
2174 test -n "$YACC" || YACC="yacc" | 2167 test -n "$YACC" || YACC="yacc" |
2175 | 2168 |
2176 | 2169 |
2177 echo $ac_n "checking for AIX""... $ac_c" 1>&6 | 2170 echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
2178 echo "configure:2179: checking for AIX" >&5 | 2171 echo "configure:2172: checking for AIX" >&5 |
2179 cat > conftest.$ac_ext <<EOF | 2172 cat > conftest.$ac_ext <<EOF |
2180 #line 2181 "configure" | 2173 #line 2174 "configure" |
2181 #include "confdefs.h" | 2174 #include "confdefs.h" |
2182 #ifdef _AIX | 2175 #ifdef _AIX |
2183 yes | 2176 yes |
2184 #endif | 2177 #endif |
2185 | 2178 |
2202 # Sound support for GNU/Linux and the free BSDs. | 2195 # Sound support for GNU/Linux and the free BSDs. |
2203 for ac_hdr in machine/soundcard.h sys/soundcard.h | 2196 for ac_hdr in machine/soundcard.h sys/soundcard.h |
2204 do | 2197 do |
2205 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2207 echo "configure:2208: checking for $ac_hdr" >&5 | 2200 echo "configure:2201: checking for $ac_hdr" >&5 |
2208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2209 echo $ac_n "(cached) $ac_c" 1>&6 | 2202 echo $ac_n "(cached) $ac_c" 1>&6 |
2210 else | 2203 else |
2211 cat > conftest.$ac_ext <<EOF | 2204 cat > conftest.$ac_ext <<EOF |
2212 #line 2213 "configure" | 2205 #line 2206 "configure" |
2213 #include "confdefs.h" | 2206 #include "confdefs.h" |
2214 #include <$ac_hdr> | 2207 #include <$ac_hdr> |
2215 EOF | 2208 EOF |
2216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2217 { (eval echo configure:2218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2210 { (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2219 if test -z "$ac_err"; then | 2212 if test -z "$ac_err"; then |
2220 rm -rf conftest* | 2213 rm -rf conftest* |
2221 eval "ac_cv_header_$ac_safe=yes" | 2214 eval "ac_cv_header_$ac_safe=yes" |
2222 else | 2215 else |
2245 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 2238 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
2246 termcap.h stdio_ext.h | 2239 termcap.h stdio_ext.h |
2247 do | 2240 do |
2248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2250 echo "configure:2251: checking for $ac_hdr" >&5 | 2243 echo "configure:2244: checking for $ac_hdr" >&5 |
2251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2252 echo $ac_n "(cached) $ac_c" 1>&6 | 2245 echo $ac_n "(cached) $ac_c" 1>&6 |
2253 else | 2246 else |
2254 cat > conftest.$ac_ext <<EOF | 2247 cat > conftest.$ac_ext <<EOF |
2255 #line 2256 "configure" | 2248 #line 2249 "configure" |
2256 #include "confdefs.h" | 2249 #include "confdefs.h" |
2257 #include <$ac_hdr> | 2250 #include <$ac_hdr> |
2258 EOF | 2251 EOF |
2259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2260 { (eval echo configure:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2253 { (eval echo configure:2254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2262 if test -z "$ac_err"; then | 2255 if test -z "$ac_err"; then |
2263 rm -rf conftest* | 2256 rm -rf conftest* |
2264 eval "ac_cv_header_$ac_safe=yes" | 2257 eval "ac_cv_header_$ac_safe=yes" |
2265 else | 2258 else |
2282 echo "$ac_t""no" 1>&6 | 2275 echo "$ac_t""no" 1>&6 |
2283 fi | 2276 fi |
2284 done | 2277 done |
2285 | 2278 |
2286 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 2279 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
2287 echo "configure:2288: checking for ANSI C header files" >&5 | 2280 echo "configure:2281: checking for ANSI C header files" >&5 |
2288 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 2281 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2289 echo $ac_n "(cached) $ac_c" 1>&6 | 2282 echo $ac_n "(cached) $ac_c" 1>&6 |
2290 else | 2283 else |
2291 cat > conftest.$ac_ext <<EOF | 2284 cat > conftest.$ac_ext <<EOF |
2292 #line 2293 "configure" | 2285 #line 2286 "configure" |
2293 #include "confdefs.h" | 2286 #include "confdefs.h" |
2294 #include <stdlib.h> | 2287 #include <stdlib.h> |
2295 #include <stdarg.h> | 2288 #include <stdarg.h> |
2296 #include <string.h> | 2289 #include <string.h> |
2297 #include <float.h> | 2290 #include <float.h> |
2298 EOF | 2291 EOF |
2299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2300 { (eval echo configure:2301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2293 { (eval echo configure:2294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2302 if test -z "$ac_err"; then | 2295 if test -z "$ac_err"; then |
2303 rm -rf conftest* | 2296 rm -rf conftest* |
2304 ac_cv_header_stdc=yes | 2297 ac_cv_header_stdc=yes |
2305 else | 2298 else |
2312 rm -f conftest* | 2305 rm -f conftest* |
2313 | 2306 |
2314 if test $ac_cv_header_stdc = yes; then | 2307 if test $ac_cv_header_stdc = yes; then |
2315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 2308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
2316 cat > conftest.$ac_ext <<EOF | 2309 cat > conftest.$ac_ext <<EOF |
2317 #line 2318 "configure" | 2310 #line 2311 "configure" |
2318 #include "confdefs.h" | 2311 #include "confdefs.h" |
2319 #include <string.h> | 2312 #include <string.h> |
2320 EOF | 2313 EOF |
2321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2322 egrep "memchr" >/dev/null 2>&1; then | 2315 egrep "memchr" >/dev/null 2>&1; then |
2330 fi | 2323 fi |
2331 | 2324 |
2332 if test $ac_cv_header_stdc = yes; then | 2325 if test $ac_cv_header_stdc = yes; then |
2333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 2326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
2334 cat > conftest.$ac_ext <<EOF | 2327 cat > conftest.$ac_ext <<EOF |
2335 #line 2336 "configure" | 2328 #line 2329 "configure" |
2336 #include "confdefs.h" | 2329 #include "confdefs.h" |
2337 #include <stdlib.h> | 2330 #include <stdlib.h> |
2338 EOF | 2331 EOF |
2339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2340 egrep "free" >/dev/null 2>&1; then | 2333 egrep "free" >/dev/null 2>&1; then |
2351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 2344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
2352 if test "$cross_compiling" = yes; then | 2345 if test "$cross_compiling" = yes; then |
2353 : | 2346 : |
2354 else | 2347 else |
2355 cat > conftest.$ac_ext <<EOF | 2348 cat > conftest.$ac_ext <<EOF |
2356 #line 2357 "configure" | 2349 #line 2350 "configure" |
2357 #include "confdefs.h" | 2350 #include "confdefs.h" |
2358 #include <ctype.h> | 2351 #include <ctype.h> |
2359 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 2352 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
2360 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 2353 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
2361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 2354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2362 int main () { int i; for (i = 0; i < 256; i++) | 2355 int main () { int i; for (i = 0; i < 256; i++) |
2363 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 2356 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
2364 exit (0); } | 2357 exit (0); } |
2365 | 2358 |
2366 EOF | 2359 EOF |
2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 2360 if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2368 then | 2361 then |
2369 : | 2362 : |
2370 else | 2363 else |
2371 echo "configure: failed program was:" >&5 | 2364 echo "configure: failed program was:" >&5 |
2372 cat conftest.$ac_ext >&5 | 2365 cat conftest.$ac_ext >&5 |
2386 EOF | 2379 EOF |
2387 | 2380 |
2388 fi | 2381 fi |
2389 | 2382 |
2390 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 2383 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
2391 echo "configure:2392: checking whether time.h and sys/time.h may both be included" >&5 | 2384 echo "configure:2385: checking whether time.h and sys/time.h may both be included" >&5 |
2392 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | 2385 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2393 echo $ac_n "(cached) $ac_c" 1>&6 | 2386 echo $ac_n "(cached) $ac_c" 1>&6 |
2394 else | 2387 else |
2395 cat > conftest.$ac_ext <<EOF | 2388 cat > conftest.$ac_ext <<EOF |
2396 #line 2397 "configure" | 2389 #line 2390 "configure" |
2397 #include "confdefs.h" | 2390 #include "confdefs.h" |
2398 #include <sys/types.h> | 2391 #include <sys/types.h> |
2399 #include <sys/time.h> | 2392 #include <sys/time.h> |
2400 #include <time.h> | 2393 #include <time.h> |
2401 int main() { | 2394 int main() { |
2402 struct tm *tp; | 2395 struct tm *tp; |
2403 ; return 0; } | 2396 ; return 0; } |
2404 EOF | 2397 EOF |
2405 if { (eval echo configure:2406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2398 if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2406 rm -rf conftest* | 2399 rm -rf conftest* |
2407 ac_cv_header_time=yes | 2400 ac_cv_header_time=yes |
2408 else | 2401 else |
2409 echo "configure: failed program was:" >&5 | 2402 echo "configure: failed program was:" >&5 |
2410 cat conftest.$ac_ext >&5 | 2403 cat conftest.$ac_ext >&5 |
2421 EOF | 2414 EOF |
2422 | 2415 |
2423 fi | 2416 fi |
2424 | 2417 |
2425 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | 2418 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 |
2426 echo "configure:2427: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | 2419 echo "configure:2420: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
2427 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then | 2420 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2428 echo $ac_n "(cached) $ac_c" 1>&6 | 2421 echo $ac_n "(cached) $ac_c" 1>&6 |
2429 else | 2422 else |
2430 cat > conftest.$ac_ext <<EOF | 2423 cat > conftest.$ac_ext <<EOF |
2431 #line 2432 "configure" | 2424 #line 2425 "configure" |
2432 #include "confdefs.h" | 2425 #include "confdefs.h" |
2433 #include <sys/types.h> | 2426 #include <sys/types.h> |
2434 #include <signal.h> | 2427 #include <signal.h> |
2435 /* NetBSD declares sys_siglist in unistd.h. */ | 2428 /* NetBSD declares sys_siglist in unistd.h. */ |
2436 #ifdef HAVE_UNISTD_H | 2429 #ifdef HAVE_UNISTD_H |
2438 #endif | 2431 #endif |
2439 int main() { | 2432 int main() { |
2440 char *msg = *(sys_siglist + 1); | 2433 char *msg = *(sys_siglist + 1); |
2441 ; return 0; } | 2434 ; return 0; } |
2442 EOF | 2435 EOF |
2443 if { (eval echo configure:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2436 if { (eval echo configure:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2444 rm -rf conftest* | 2437 rm -rf conftest* |
2445 ac_cv_decl_sys_siglist=yes | 2438 ac_cv_decl_sys_siglist=yes |
2446 else | 2439 else |
2447 echo "configure: failed program was:" >&5 | 2440 echo "configure: failed program was:" >&5 |
2448 cat conftest.$ac_ext >&5 | 2441 cat conftest.$ac_ext >&5 |
2460 | 2453 |
2461 fi | 2454 fi |
2462 | 2455 |
2463 | 2456 |
2464 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | 2457 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 |
2465 echo "configure:2466: checking for struct utimbuf" >&5 | 2458 echo "configure:2459: checking for struct utimbuf" >&5 |
2466 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then | 2459 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then |
2467 echo $ac_n "(cached) $ac_c" 1>&6 | 2460 echo $ac_n "(cached) $ac_c" 1>&6 |
2468 else | 2461 else |
2469 cat > conftest.$ac_ext <<EOF | 2462 cat > conftest.$ac_ext <<EOF |
2470 #line 2471 "configure" | 2463 #line 2464 "configure" |
2471 #include "confdefs.h" | 2464 #include "confdefs.h" |
2472 #ifdef TIME_WITH_SYS_TIME | 2465 #ifdef TIME_WITH_SYS_TIME |
2473 #include <sys/time.h> | 2466 #include <sys/time.h> |
2474 #include <time.h> | 2467 #include <time.h> |
2475 #else | 2468 #else |
2484 #endif | 2477 #endif |
2485 int main() { | 2478 int main() { |
2486 static struct utimbuf x; x.actime = x.modtime; | 2479 static struct utimbuf x; x.actime = x.modtime; |
2487 ; return 0; } | 2480 ; return 0; } |
2488 EOF | 2481 EOF |
2489 if { (eval echo configure:2490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2482 if { (eval echo configure:2483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2490 rm -rf conftest* | 2483 rm -rf conftest* |
2491 emacs_cv_struct_utimbuf=yes | 2484 emacs_cv_struct_utimbuf=yes |
2492 else | 2485 else |
2493 echo "configure: failed program was:" >&5 | 2486 echo "configure: failed program was:" >&5 |
2494 cat conftest.$ac_ext >&5 | 2487 cat conftest.$ac_ext >&5 |
2505 EOF | 2498 EOF |
2506 | 2499 |
2507 fi | 2500 fi |
2508 | 2501 |
2509 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 2502 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
2510 echo "configure:2511: checking return type of signal handlers" >&5 | 2503 echo "configure:2504: checking return type of signal handlers" >&5 |
2511 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | 2504 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2512 echo $ac_n "(cached) $ac_c" 1>&6 | 2505 echo $ac_n "(cached) $ac_c" 1>&6 |
2513 else | 2506 else |
2514 cat > conftest.$ac_ext <<EOF | 2507 cat > conftest.$ac_ext <<EOF |
2515 #line 2516 "configure" | 2508 #line 2509 "configure" |
2516 #include "confdefs.h" | 2509 #include "confdefs.h" |
2517 #include <sys/types.h> | 2510 #include <sys/types.h> |
2518 #include <signal.h> | 2511 #include <signal.h> |
2519 #ifdef signal | 2512 #ifdef signal |
2520 #undef signal | 2513 #undef signal |
2527 | 2520 |
2528 int main() { | 2521 int main() { |
2529 int i; | 2522 int i; |
2530 ; return 0; } | 2523 ; return 0; } |
2531 EOF | 2524 EOF |
2532 if { (eval echo configure:2533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2525 if { (eval echo configure:2526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2533 rm -rf conftest* | 2526 rm -rf conftest* |
2534 ac_cv_type_signal=void | 2527 ac_cv_type_signal=void |
2535 else | 2528 else |
2536 echo "configure: failed program was:" >&5 | 2529 echo "configure: failed program was:" >&5 |
2537 cat conftest.$ac_ext >&5 | 2530 cat conftest.$ac_ext >&5 |
2547 EOF | 2540 EOF |
2548 | 2541 |
2549 | 2542 |
2550 | 2543 |
2551 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 | 2544 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 |
2552 echo "configure:2553: checking for struct timeval" >&5 | 2545 echo "configure:2546: checking for struct timeval" >&5 |
2553 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then | 2546 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then |
2554 echo $ac_n "(cached) $ac_c" 1>&6 | 2547 echo $ac_n "(cached) $ac_c" 1>&6 |
2555 else | 2548 else |
2556 cat > conftest.$ac_ext <<EOF | 2549 cat > conftest.$ac_ext <<EOF |
2557 #line 2558 "configure" | 2550 #line 2551 "configure" |
2558 #include "confdefs.h" | 2551 #include "confdefs.h" |
2559 #ifdef TIME_WITH_SYS_TIME | 2552 #ifdef TIME_WITH_SYS_TIME |
2560 #include <sys/time.h> | 2553 #include <sys/time.h> |
2561 #include <time.h> | 2554 #include <time.h> |
2562 #else | 2555 #else |
2568 #endif | 2561 #endif |
2569 int main() { | 2562 int main() { |
2570 static struct timeval x; x.tv_sec = x.tv_usec; | 2563 static struct timeval x; x.tv_sec = x.tv_usec; |
2571 ; return 0; } | 2564 ; return 0; } |
2572 EOF | 2565 EOF |
2573 if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2566 if { (eval echo configure:2567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2574 rm -rf conftest* | 2567 rm -rf conftest* |
2575 emacs_cv_struct_timeval=yes | 2568 emacs_cv_struct_timeval=yes |
2576 else | 2569 else |
2577 echo "configure: failed program was:" >&5 | 2570 echo "configure: failed program was:" >&5 |
2578 cat conftest.$ac_ext >&5 | 2571 cat conftest.$ac_ext >&5 |
2590 EOF | 2583 EOF |
2591 | 2584 |
2592 fi | 2585 fi |
2593 | 2586 |
2594 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 2587 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
2595 echo "configure:2596: checking whether struct tm is in sys/time.h or time.h" >&5 | 2588 echo "configure:2589: checking whether struct tm is in sys/time.h or time.h" >&5 |
2596 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | 2589 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
2597 echo $ac_n "(cached) $ac_c" 1>&6 | 2590 echo $ac_n "(cached) $ac_c" 1>&6 |
2598 else | 2591 else |
2599 cat > conftest.$ac_ext <<EOF | 2592 cat > conftest.$ac_ext <<EOF |
2600 #line 2601 "configure" | 2593 #line 2594 "configure" |
2601 #include "confdefs.h" | 2594 #include "confdefs.h" |
2602 #include <sys/types.h> | 2595 #include <sys/types.h> |
2603 #include <time.h> | 2596 #include <time.h> |
2604 int main() { | 2597 int main() { |
2605 struct tm *tp; tp->tm_sec; | 2598 struct tm *tp; tp->tm_sec; |
2606 ; return 0; } | 2599 ; return 0; } |
2607 EOF | 2600 EOF |
2608 if { (eval echo configure:2609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2601 if { (eval echo configure:2602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2609 rm -rf conftest* | 2602 rm -rf conftest* |
2610 ac_cv_struct_tm=time.h | 2603 ac_cv_struct_tm=time.h |
2611 else | 2604 else |
2612 echo "configure: failed program was:" >&5 | 2605 echo "configure: failed program was:" >&5 |
2613 cat conftest.$ac_ext >&5 | 2606 cat conftest.$ac_ext >&5 |
2624 EOF | 2617 EOF |
2625 | 2618 |
2626 fi | 2619 fi |
2627 | 2620 |
2628 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | 2621 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
2629 echo "configure:2630: checking for tm_zone in struct tm" >&5 | 2622 echo "configure:2623: checking for tm_zone in struct tm" >&5 |
2630 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then | 2623 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
2631 echo $ac_n "(cached) $ac_c" 1>&6 | 2624 echo $ac_n "(cached) $ac_c" 1>&6 |
2632 else | 2625 else |
2633 cat > conftest.$ac_ext <<EOF | 2626 cat > conftest.$ac_ext <<EOF |
2634 #line 2635 "configure" | 2627 #line 2628 "configure" |
2635 #include "confdefs.h" | 2628 #include "confdefs.h" |
2636 #include <sys/types.h> | 2629 #include <sys/types.h> |
2637 #include <$ac_cv_struct_tm> | 2630 #include <$ac_cv_struct_tm> |
2638 int main() { | 2631 int main() { |
2639 struct tm tm; tm.tm_zone; | 2632 struct tm tm; tm.tm_zone; |
2640 ; return 0; } | 2633 ; return 0; } |
2641 EOF | 2634 EOF |
2642 if { (eval echo configure:2643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2635 if { (eval echo configure:2636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2643 rm -rf conftest* | 2636 rm -rf conftest* |
2644 ac_cv_struct_tm_zone=yes | 2637 ac_cv_struct_tm_zone=yes |
2645 else | 2638 else |
2646 echo "configure: failed program was:" >&5 | 2639 echo "configure: failed program was:" >&5 |
2647 cat conftest.$ac_ext >&5 | 2640 cat conftest.$ac_ext >&5 |
2657 #define HAVE_TM_ZONE 1 | 2650 #define HAVE_TM_ZONE 1 |
2658 EOF | 2651 EOF |
2659 | 2652 |
2660 else | 2653 else |
2661 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | 2654 echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
2662 echo "configure:2663: checking for tzname" >&5 | 2655 echo "configure:2656: checking for tzname" >&5 |
2663 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then | 2656 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
2664 echo $ac_n "(cached) $ac_c" 1>&6 | 2657 echo $ac_n "(cached) $ac_c" 1>&6 |
2665 else | 2658 else |
2666 cat > conftest.$ac_ext <<EOF | 2659 cat > conftest.$ac_ext <<EOF |
2667 #line 2668 "configure" | 2660 #line 2661 "configure" |
2668 #include "confdefs.h" | 2661 #include "confdefs.h" |
2669 #include <time.h> | 2662 #include <time.h> |
2670 #ifndef tzname /* For SGI. */ | 2663 #ifndef tzname /* For SGI. */ |
2671 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | 2664 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
2672 #endif | 2665 #endif |
2673 int main() { | 2666 int main() { |
2674 atoi(*tzname); | 2667 atoi(*tzname); |
2675 ; return 0; } | 2668 ; return 0; } |
2676 EOF | 2669 EOF |
2677 if { (eval echo configure:2678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2670 if { (eval echo configure:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2678 rm -rf conftest* | 2671 rm -rf conftest* |
2679 ac_cv_var_tzname=yes | 2672 ac_cv_var_tzname=yes |
2680 else | 2673 else |
2681 echo "configure: failed program was:" >&5 | 2674 echo "configure: failed program was:" >&5 |
2682 cat conftest.$ac_ext >&5 | 2675 cat conftest.$ac_ext >&5 |
2694 | 2687 |
2695 fi | 2688 fi |
2696 fi | 2689 fi |
2697 | 2690 |
2698 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | 2691 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
2699 echo "configure:2700: checking for tm_gmtoff in struct tm" >&5 | 2692 echo "configure:2693: checking for tm_gmtoff in struct tm" >&5 |
2700 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then | 2693 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then |
2701 echo $ac_n "(cached) $ac_c" 1>&6 | 2694 echo $ac_n "(cached) $ac_c" 1>&6 |
2702 else | 2695 else |
2703 cat > conftest.$ac_ext <<EOF | 2696 cat > conftest.$ac_ext <<EOF |
2704 #line 2705 "configure" | 2697 #line 2698 "configure" |
2705 #include "confdefs.h" | 2698 #include "confdefs.h" |
2706 #include <time.h> | 2699 #include <time.h> |
2707 int main() { | 2700 int main() { |
2708 struct tm t; t.tm_gmtoff = 0 | 2701 struct tm t; t.tm_gmtoff = 0 |
2709 ; return 0; } | 2702 ; return 0; } |
2710 EOF | 2703 EOF |
2711 if { (eval echo configure:2712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2704 if { (eval echo configure:2705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2712 rm -rf conftest* | 2705 rm -rf conftest* |
2713 emacs_cv_tm_gmtoff=yes | 2706 emacs_cv_tm_gmtoff=yes |
2714 else | 2707 else |
2715 echo "configure: failed program was:" >&5 | 2708 echo "configure: failed program was:" >&5 |
2716 cat conftest.$ac_ext >&5 | 2709 cat conftest.$ac_ext >&5 |
2727 EOF | 2720 EOF |
2728 | 2721 |
2729 fi | 2722 fi |
2730 | 2723 |
2731 echo $ac_n "checking for working const""... $ac_c" 1>&6 | 2724 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
2732 echo "configure:2733: checking for working const" >&5 | 2725 echo "configure:2726: checking for working const" >&5 |
2733 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 2726 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
2734 echo $ac_n "(cached) $ac_c" 1>&6 | 2727 echo $ac_n "(cached) $ac_c" 1>&6 |
2735 else | 2728 else |
2736 cat > conftest.$ac_ext <<EOF | 2729 cat > conftest.$ac_ext <<EOF |
2737 #line 2738 "configure" | 2730 #line 2731 "configure" |
2738 #include "confdefs.h" | 2731 #include "confdefs.h" |
2739 | 2732 |
2740 int main() { | 2733 int main() { |
2741 | 2734 |
2742 /* Ultrix mips cc rejects this. */ | 2735 /* Ultrix mips cc rejects this. */ |
2781 const int foo = 10; | 2774 const int foo = 10; |
2782 } | 2775 } |
2783 | 2776 |
2784 ; return 0; } | 2777 ; return 0; } |
2785 EOF | 2778 EOF |
2786 if { (eval echo configure:2787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2779 if { (eval echo configure:2780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2787 rm -rf conftest* | 2780 rm -rf conftest* |
2788 ac_cv_c_const=yes | 2781 ac_cv_c_const=yes |
2789 else | 2782 else |
2790 echo "configure: failed program was:" >&5 | 2783 echo "configure: failed program was:" >&5 |
2791 cat conftest.$ac_ext >&5 | 2784 cat conftest.$ac_ext >&5 |
2803 | 2796 |
2804 fi | 2797 fi |
2805 | 2798 |
2806 | 2799 |
2807 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 2800 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
2808 echo "configure:2809: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 2801 echo "configure:2802: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
2809 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 2802 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
2810 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 2803 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
2811 echo $ac_n "(cached) $ac_c" 1>&6 | 2804 echo $ac_n "(cached) $ac_c" 1>&6 |
2812 else | 2805 else |
2813 cat > conftestmake <<\EOF | 2806 cat > conftestmake <<\EOF |
2831 SET_MAKE="MAKE=${MAKE-make}" | 2824 SET_MAKE="MAKE=${MAKE-make}" |
2832 fi | 2825 fi |
2833 | 2826 |
2834 | 2827 |
2835 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | 2828 echo $ac_n "checking for long file names""... $ac_c" 1>&6 |
2836 echo "configure:2837: checking for long file names" >&5 | 2829 echo "configure:2830: checking for long file names" >&5 |
2837 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then | 2830 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
2838 echo $ac_n "(cached) $ac_c" 1>&6 | 2831 echo $ac_n "(cached) $ac_c" 1>&6 |
2839 else | 2832 else |
2840 ac_cv_sys_long_file_names=yes | 2833 ac_cv_sys_long_file_names=yes |
2841 # Test for long file names in all the places we know might matter: | 2834 # Test for long file names in all the places we know might matter: |
2882 # If we find X, set shell vars x_includes and x_libraries to the | 2875 # If we find X, set shell vars x_includes and x_libraries to the |
2883 # paths, otherwise set no_x=yes. | 2876 # paths, otherwise set no_x=yes. |
2884 # Uses ac_ vars as temps to allow command line to override cache and checks. | 2877 # Uses ac_ vars as temps to allow command line to override cache and checks. |
2885 # --without-x overrides everything else, but does not touch the cache. | 2878 # --without-x overrides everything else, but does not touch the cache. |
2886 echo $ac_n "checking for X""... $ac_c" 1>&6 | 2879 echo $ac_n "checking for X""... $ac_c" 1>&6 |
2887 echo "configure:2888: checking for X" >&5 | 2880 echo "configure:2881: checking for X" >&5 |
2888 | 2881 |
2889 # Check whether --with-x or --without-x was given. | 2882 # Check whether --with-x or --without-x was given. |
2890 if test "${with_x+set}" = set; then | 2883 if test "${with_x+set}" = set; then |
2891 withval="$with_x" | 2884 withval="$with_x" |
2892 : | 2885 : |
2944 # Guess where to find include files, by looking for this one X11 .h file. | 2937 # Guess where to find include files, by looking for this one X11 .h file. |
2945 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | 2938 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
2946 | 2939 |
2947 # First, try using that file with no special directory specified. | 2940 # First, try using that file with no special directory specified. |
2948 cat > conftest.$ac_ext <<EOF | 2941 cat > conftest.$ac_ext <<EOF |
2949 #line 2950 "configure" | 2942 #line 2943 "configure" |
2950 #include "confdefs.h" | 2943 #include "confdefs.h" |
2951 #include <$x_direct_test_include> | 2944 #include <$x_direct_test_include> |
2952 EOF | 2945 EOF |
2953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2954 { (eval echo configure:2955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2947 { (eval echo configure:2948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2956 if test -z "$ac_err"; then | 2949 if test -z "$ac_err"; then |
2957 rm -rf conftest* | 2950 rm -rf conftest* |
2958 # We can compile using X headers with no special include directory. | 2951 # We can compile using X headers with no special include directory. |
2959 ac_x_includes= | 2952 ac_x_includes= |
3018 # See if we find them without any special options. | 3011 # See if we find them without any special options. |
3019 # Don't add to $LIBS permanently. | 3012 # Don't add to $LIBS permanently. |
3020 ac_save_LIBS="$LIBS" | 3013 ac_save_LIBS="$LIBS" |
3021 LIBS="-l$x_direct_test_library $LIBS" | 3014 LIBS="-l$x_direct_test_library $LIBS" |
3022 cat > conftest.$ac_ext <<EOF | 3015 cat > conftest.$ac_ext <<EOF |
3023 #line 3024 "configure" | 3016 #line 3017 "configure" |
3024 #include "confdefs.h" | 3017 #include "confdefs.h" |
3025 | 3018 |
3026 int main() { | 3019 int main() { |
3027 ${x_direct_test_function}() | 3020 ${x_direct_test_function}() |
3028 ; return 0; } | 3021 ; return 0; } |
3029 EOF | 3022 EOF |
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3023 if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3031 rm -rf conftest* | 3024 rm -rf conftest* |
3032 LIBS="$ac_save_LIBS" | 3025 LIBS="$ac_save_LIBS" |
3033 # We can link X programs with no special library path. | 3026 # We can link X programs with no special library path. |
3034 ac_x_libraries= | 3027 ac_x_libraries= |
3035 else | 3028 else |
3200 #### Extract some information from the operating system and machine files. | 3193 #### Extract some information from the operating system and machine files. |
3201 | 3194 |
3202 echo "checking the machine- and system-dependent files to find out | 3195 echo "checking the machine- and system-dependent files to find out |
3203 - which libraries the lib-src programs will want, and | 3196 - which libraries the lib-src programs will want, and |
3204 - whether the GNU malloc routines are usable" 1>&6 | 3197 - whether the GNU malloc routines are usable" 1>&6 |
3205 echo "configure:3206: checking the machine- and system-dependent files to find out | 3198 echo "configure:3199: checking the machine- and system-dependent files to find out |
3206 - which libraries the lib-src programs will want, and | 3199 - which libraries the lib-src programs will want, and |
3207 - whether the GNU malloc routines are usable" >&5 | 3200 - whether the GNU malloc routines are usable" >&5 |
3208 | 3201 |
3209 ### First figure out CFLAGS (which we use for running the compiler here) | 3202 ### First figure out CFLAGS (which we use for running the compiler here) |
3210 ### and REAL_CFLAGS (which we use for real compilation). | 3203 ### and REAL_CFLAGS (which we use for real compilation). |
3330 # Do the opsystem or machine files prohibit the use of the GNU malloc? | 3323 # Do the opsystem or machine files prohibit the use of the GNU malloc? |
3331 # Assume not, until told otherwise. | 3324 # Assume not, until told otherwise. |
3332 GNU_MALLOC=yes | 3325 GNU_MALLOC=yes |
3333 doug_lea_malloc=yes | 3326 doug_lea_malloc=yes |
3334 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | 3327 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 |
3335 echo "configure:3336: checking for malloc_get_state" >&5 | 3328 echo "configure:3329: checking for malloc_get_state" >&5 |
3336 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then | 3329 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then |
3337 echo $ac_n "(cached) $ac_c" 1>&6 | 3330 echo $ac_n "(cached) $ac_c" 1>&6 |
3338 else | 3331 else |
3339 cat > conftest.$ac_ext <<EOF | 3332 cat > conftest.$ac_ext <<EOF |
3340 #line 3341 "configure" | 3333 #line 3334 "configure" |
3341 #include "confdefs.h" | 3334 #include "confdefs.h" |
3342 /* System header to define __stub macros and hopefully few prototypes, | 3335 /* System header to define __stub macros and hopefully few prototypes, |
3343 which can conflict with char malloc_get_state(); below. */ | 3336 which can conflict with char malloc_get_state(); below. */ |
3344 #include <assert.h> | 3337 #include <assert.h> |
3345 /* Override any gcc2 internal prototype to avoid an error. */ | 3338 /* Override any gcc2 internal prototype to avoid an error. */ |
3358 malloc_get_state(); | 3351 malloc_get_state(); |
3359 #endif | 3352 #endif |
3360 | 3353 |
3361 ; return 0; } | 3354 ; return 0; } |
3362 EOF | 3355 EOF |
3363 if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3356 if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3364 rm -rf conftest* | 3357 rm -rf conftest* |
3365 eval "ac_cv_func_malloc_get_state=yes" | 3358 eval "ac_cv_func_malloc_get_state=yes" |
3366 else | 3359 else |
3367 echo "configure: failed program was:" >&5 | 3360 echo "configure: failed program was:" >&5 |
3368 cat conftest.$ac_ext >&5 | 3361 cat conftest.$ac_ext >&5 |
3379 echo "$ac_t""no" 1>&6 | 3372 echo "$ac_t""no" 1>&6 |
3380 doug_lea_malloc=no | 3373 doug_lea_malloc=no |
3381 fi | 3374 fi |
3382 | 3375 |
3383 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | 3376 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 |
3384 echo "configure:3385: checking for malloc_set_state" >&5 | 3377 echo "configure:3378: checking for malloc_set_state" >&5 |
3385 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then | 3378 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then |
3386 echo $ac_n "(cached) $ac_c" 1>&6 | 3379 echo $ac_n "(cached) $ac_c" 1>&6 |
3387 else | 3380 else |
3388 cat > conftest.$ac_ext <<EOF | 3381 cat > conftest.$ac_ext <<EOF |
3389 #line 3390 "configure" | 3382 #line 3383 "configure" |
3390 #include "confdefs.h" | 3383 #include "confdefs.h" |
3391 /* System header to define __stub macros and hopefully few prototypes, | 3384 /* System header to define __stub macros and hopefully few prototypes, |
3392 which can conflict with char malloc_set_state(); below. */ | 3385 which can conflict with char malloc_set_state(); below. */ |
3393 #include <assert.h> | 3386 #include <assert.h> |
3394 /* Override any gcc2 internal prototype to avoid an error. */ | 3387 /* Override any gcc2 internal prototype to avoid an error. */ |
3407 malloc_set_state(); | 3400 malloc_set_state(); |
3408 #endif | 3401 #endif |
3409 | 3402 |
3410 ; return 0; } | 3403 ; return 0; } |
3411 EOF | 3404 EOF |
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3405 if { (eval echo configure:3406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3413 rm -rf conftest* | 3406 rm -rf conftest* |
3414 eval "ac_cv_func_malloc_set_state=yes" | 3407 eval "ac_cv_func_malloc_set_state=yes" |
3415 else | 3408 else |
3416 echo "configure: failed program was:" >&5 | 3409 echo "configure: failed program was:" >&5 |
3417 cat conftest.$ac_ext >&5 | 3410 cat conftest.$ac_ext >&5 |
3428 echo "$ac_t""no" 1>&6 | 3421 echo "$ac_t""no" 1>&6 |
3429 doug_lea_malloc=no | 3422 doug_lea_malloc=no |
3430 fi | 3423 fi |
3431 | 3424 |
3432 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | 3425 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 |
3433 echo "configure:3434: checking whether __after_morecore_hook exists" >&5 | 3426 echo "configure:3427: checking whether __after_morecore_hook exists" >&5 |
3434 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then | 3427 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then |
3435 echo $ac_n "(cached) $ac_c" 1>&6 | 3428 echo $ac_n "(cached) $ac_c" 1>&6 |
3436 else | 3429 else |
3437 cat > conftest.$ac_ext <<EOF | 3430 cat > conftest.$ac_ext <<EOF |
3438 #line 3439 "configure" | 3431 #line 3432 "configure" |
3439 #include "confdefs.h" | 3432 #include "confdefs.h" |
3440 extern void (* __after_morecore_hook)(); | 3433 extern void (* __after_morecore_hook)(); |
3441 int main() { | 3434 int main() { |
3442 __after_morecore_hook = 0 | 3435 __after_morecore_hook = 0 |
3443 ; return 0; } | 3436 ; return 0; } |
3444 EOF | 3437 EOF |
3445 if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3438 if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3446 rm -rf conftest* | 3439 rm -rf conftest* |
3447 emacs_cv_var___after_morecore_hook=yes | 3440 emacs_cv_var___after_morecore_hook=yes |
3448 else | 3441 else |
3449 echo "configure: failed program was:" >&5 | 3442 echo "configure: failed program was:" >&5 |
3450 cat conftest.$ac_ext >&5 | 3443 cat conftest.$ac_ext >&5 |
3490 fi | 3483 fi |
3491 | 3484 |
3492 LIBS="$libsrc_libs $LIBS" | 3485 LIBS="$libsrc_libs $LIBS" |
3493 | 3486 |
3494 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | 3487 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
3495 echo "configure:3496: checking for dnet_ntoa in -ldnet" >&5 | 3488 echo "configure:3489: checking for dnet_ntoa in -ldnet" >&5 |
3496 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 3489 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
3497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 3490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3498 echo $ac_n "(cached) $ac_c" 1>&6 | 3491 echo $ac_n "(cached) $ac_c" 1>&6 |
3499 else | 3492 else |
3500 ac_save_LIBS="$LIBS" | 3493 ac_save_LIBS="$LIBS" |
3501 LIBS="-ldnet $LIBS" | 3494 LIBS="-ldnet $LIBS" |
3502 cat > conftest.$ac_ext <<EOF | 3495 cat > conftest.$ac_ext <<EOF |
3503 #line 3504 "configure" | 3496 #line 3497 "configure" |
3504 #include "confdefs.h" | 3497 #include "confdefs.h" |
3505 /* Override any gcc2 internal prototype to avoid an error. */ | 3498 /* Override any gcc2 internal prototype to avoid an error. */ |
3506 /* We use char because int might match the return type of a gcc2 | 3499 /* We use char because int might match the return type of a gcc2 |
3507 builtin and then its argument prototype would still apply. */ | 3500 builtin and then its argument prototype would still apply. */ |
3508 char dnet_ntoa(); | 3501 char dnet_ntoa(); |
3509 | 3502 |
3510 int main() { | 3503 int main() { |
3511 dnet_ntoa() | 3504 dnet_ntoa() |
3512 ; return 0; } | 3505 ; return 0; } |
3513 EOF | 3506 EOF |
3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3515 rm -rf conftest* | 3508 rm -rf conftest* |
3516 eval "ac_cv_lib_$ac_lib_var=yes" | 3509 eval "ac_cv_lib_$ac_lib_var=yes" |
3517 else | 3510 else |
3518 echo "configure: failed program was:" >&5 | 3511 echo "configure: failed program was:" >&5 |
3519 cat conftest.$ac_ext >&5 | 3512 cat conftest.$ac_ext >&5 |
3538 echo "$ac_t""no" 1>&6 | 3531 echo "$ac_t""no" 1>&6 |
3539 fi | 3532 fi |
3540 | 3533 |
3541 | 3534 |
3542 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | 3535 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 |
3543 echo "configure:3544: checking for main in -lXbsd" >&5 | 3536 echo "configure:3537: checking for main in -lXbsd" >&5 |
3544 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` | 3537 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
3545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 3538 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3546 echo $ac_n "(cached) $ac_c" 1>&6 | 3539 echo $ac_n "(cached) $ac_c" 1>&6 |
3547 else | 3540 else |
3548 ac_save_LIBS="$LIBS" | 3541 ac_save_LIBS="$LIBS" |
3549 LIBS="-lXbsd $LIBS" | 3542 LIBS="-lXbsd $LIBS" |
3550 cat > conftest.$ac_ext <<EOF | 3543 cat > conftest.$ac_ext <<EOF |
3551 #line 3552 "configure" | 3544 #line 3545 "configure" |
3552 #include "confdefs.h" | 3545 #include "confdefs.h" |
3553 | 3546 |
3554 int main() { | 3547 int main() { |
3555 main() | 3548 main() |
3556 ; return 0; } | 3549 ; return 0; } |
3557 EOF | 3550 EOF |
3558 if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3559 rm -rf conftest* | 3552 rm -rf conftest* |
3560 eval "ac_cv_lib_$ac_lib_var=yes" | 3553 eval "ac_cv_lib_$ac_lib_var=yes" |
3561 else | 3554 else |
3562 echo "configure: failed program was:" >&5 | 3555 echo "configure: failed program was:" >&5 |
3563 cat conftest.$ac_ext >&5 | 3556 cat conftest.$ac_ext >&5 |
3575 echo "$ac_t""no" 1>&6 | 3568 echo "$ac_t""no" 1>&6 |
3576 fi | 3569 fi |
3577 | 3570 |
3578 | 3571 |
3579 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | 3572 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 |
3580 echo "configure:3581: checking for cma_open in -lpthreads" >&5 | 3573 echo "configure:3574: checking for cma_open in -lpthreads" >&5 |
3581 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` | 3574 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
3582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 3575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3583 echo $ac_n "(cached) $ac_c" 1>&6 | 3576 echo $ac_n "(cached) $ac_c" 1>&6 |
3584 else | 3577 else |
3585 ac_save_LIBS="$LIBS" | 3578 ac_save_LIBS="$LIBS" |
3586 LIBS="-lpthreads $LIBS" | 3579 LIBS="-lpthreads $LIBS" |
3587 cat > conftest.$ac_ext <<EOF | 3580 cat > conftest.$ac_ext <<EOF |
3588 #line 3589 "configure" | 3581 #line 3582 "configure" |
3589 #include "confdefs.h" | 3582 #include "confdefs.h" |
3590 /* Override any gcc2 internal prototype to avoid an error. */ | 3583 /* Override any gcc2 internal prototype to avoid an error. */ |
3591 /* We use char because int might match the return type of a gcc2 | 3584 /* We use char because int might match the return type of a gcc2 |
3592 builtin and then its argument prototype would still apply. */ | 3585 builtin and then its argument prototype would still apply. */ |
3593 char cma_open(); | 3586 char cma_open(); |
3594 | 3587 |
3595 int main() { | 3588 int main() { |
3596 cma_open() | 3589 cma_open() |
3597 ; return 0; } | 3590 ; return 0; } |
3598 EOF | 3591 EOF |
3599 if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3600 rm -rf conftest* | 3593 rm -rf conftest* |
3601 eval "ac_cv_lib_$ac_lib_var=yes" | 3594 eval "ac_cv_lib_$ac_lib_var=yes" |
3602 else | 3595 else |
3603 echo "configure: failed program was:" >&5 | 3596 echo "configure: failed program was:" >&5 |
3604 cat conftest.$ac_ext >&5 | 3597 cat conftest.$ac_ext >&5 |
3623 echo "$ac_t""no" 1>&6 | 3616 echo "$ac_t""no" 1>&6 |
3624 fi | 3617 fi |
3625 | 3618 |
3626 | 3619 |
3627 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 | 3620 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 |
3628 echo "configure:3629: checking for XFree86 in /usr/X386" >&5 | 3621 echo "configure:3622: checking for XFree86 in /usr/X386" >&5 |
3629 if test -d /usr/X386/include; then | 3622 if test -d /usr/X386/include; then |
3630 HAVE_XFREE386=yes | 3623 HAVE_XFREE386=yes |
3631 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | 3624 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} |
3632 else | 3625 else |
3633 HAVE_XFREE386=no | 3626 HAVE_XFREE386=no |
3652 export LD_RUN_PATH | 3645 export LD_RUN_PATH |
3653 fi | 3646 fi |
3654 | 3647 |
3655 if test "${opsys}" = "gnu-linux"; then | 3648 if test "${opsys}" = "gnu-linux"; then |
3656 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 | 3649 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 |
3657 echo "configure:3658: checking whether X on GNU/Linux needs -b to link" >&5 | 3650 echo "configure:3651: checking whether X on GNU/Linux needs -b to link" >&5 |
3658 cat > conftest.$ac_ext <<EOF | 3651 cat > conftest.$ac_ext <<EOF |
3659 #line 3660 "configure" | 3652 #line 3653 "configure" |
3660 #include "confdefs.h" | 3653 #include "confdefs.h" |
3661 | 3654 |
3662 int main() { | 3655 int main() { |
3663 XOpenDisplay ("foo"); | 3656 XOpenDisplay ("foo"); |
3664 ; return 0; } | 3657 ; return 0; } |
3665 EOF | 3658 EOF |
3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3667 rm -rf conftest* | 3660 rm -rf conftest* |
3668 xlinux_first_failure=no | 3661 xlinux_first_failure=no |
3669 else | 3662 else |
3670 echo "configure: failed program was:" >&5 | 3663 echo "configure: failed program was:" >&5 |
3671 cat conftest.$ac_ext >&5 | 3664 cat conftest.$ac_ext >&5 |
3681 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | 3674 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" |
3682 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | 3675 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" |
3683 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | 3676 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" |
3684 LIBS="$LIBS -b i486-linuxaout" | 3677 LIBS="$LIBS -b i486-linuxaout" |
3685 cat > conftest.$ac_ext <<EOF | 3678 cat > conftest.$ac_ext <<EOF |
3686 #line 3687 "configure" | 3679 #line 3680 "configure" |
3687 #include "confdefs.h" | 3680 #include "confdefs.h" |
3688 | 3681 |
3689 int main() { | 3682 int main() { |
3690 XOpenDisplay ("foo"); | 3683 XOpenDisplay ("foo"); |
3691 ; return 0; } | 3684 ; return 0; } |
3692 EOF | 3685 EOF |
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3694 rm -rf conftest* | 3687 rm -rf conftest* |
3695 xlinux_second_failure=no | 3688 xlinux_second_failure=no |
3696 else | 3689 else |
3697 echo "configure: failed program was:" >&5 | 3690 echo "configure: failed program was:" >&5 |
3698 cat conftest.$ac_ext >&5 | 3691 cat conftest.$ac_ext >&5 |
3718 | 3711 |
3719 for ac_func in XrmSetDatabase XScreenResourceString \ | 3712 for ac_func in XrmSetDatabase XScreenResourceString \ |
3720 XScreenNumberOfScreen XSetWMProtocols | 3713 XScreenNumberOfScreen XSetWMProtocols |
3721 do | 3714 do |
3722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 3715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3723 echo "configure:3724: checking for $ac_func" >&5 | 3716 echo "configure:3717: checking for $ac_func" >&5 |
3724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 3717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3725 echo $ac_n "(cached) $ac_c" 1>&6 | 3718 echo $ac_n "(cached) $ac_c" 1>&6 |
3726 else | 3719 else |
3727 cat > conftest.$ac_ext <<EOF | 3720 cat > conftest.$ac_ext <<EOF |
3728 #line 3729 "configure" | 3721 #line 3722 "configure" |
3729 #include "confdefs.h" | 3722 #include "confdefs.h" |
3730 /* System header to define __stub macros and hopefully few prototypes, | 3723 /* System header to define __stub macros and hopefully few prototypes, |
3731 which can conflict with char $ac_func(); below. */ | 3724 which can conflict with char $ac_func(); below. */ |
3732 #include <assert.h> | 3725 #include <assert.h> |
3733 /* Override any gcc2 internal prototype to avoid an error. */ | 3726 /* Override any gcc2 internal prototype to avoid an error. */ |
3746 $ac_func(); | 3739 $ac_func(); |
3747 #endif | 3740 #endif |
3748 | 3741 |
3749 ; return 0; } | 3742 ; return 0; } |
3750 EOF | 3743 EOF |
3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3752 rm -rf conftest* | 3745 rm -rf conftest* |
3753 eval "ac_cv_func_$ac_func=yes" | 3746 eval "ac_cv_func_$ac_func=yes" |
3754 else | 3747 else |
3755 echo "configure: failed program was:" >&5 | 3748 echo "configure: failed program was:" >&5 |
3756 cat conftest.$ac_ext >&5 | 3749 cat conftest.$ac_ext >&5 |
3774 | 3767 |
3775 fi | 3768 fi |
3776 | 3769 |
3777 if test "${window_system}" = "x11"; then | 3770 if test "${window_system}" = "x11"; then |
3778 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | 3771 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 |
3779 echo "configure:3780: checking X11 version 6" >&5 | 3772 echo "configure:3773: checking X11 version 6" >&5 |
3780 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then | 3773 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
3781 echo $ac_n "(cached) $ac_c" 1>&6 | 3774 echo $ac_n "(cached) $ac_c" 1>&6 |
3782 else | 3775 else |
3783 cat > conftest.$ac_ext <<EOF | 3776 cat > conftest.$ac_ext <<EOF |
3784 #line 3785 "configure" | 3777 #line 3778 "configure" |
3785 #include "confdefs.h" | 3778 #include "confdefs.h" |
3786 #include <X11/Xlib.h> | 3779 #include <X11/Xlib.h> |
3787 int main() { | 3780 int main() { |
3788 #if XlibSpecificationRelease < 6 | 3781 #if XlibSpecificationRelease < 6 |
3789 fail; | 3782 fail; |
3790 #endif | 3783 #endif |
3791 | 3784 |
3792 ; return 0; } | 3785 ; return 0; } |
3793 EOF | 3786 EOF |
3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3795 rm -rf conftest* | 3788 rm -rf conftest* |
3796 emacs_cv_x11_version_6=yes | 3789 emacs_cv_x11_version_6=yes |
3797 else | 3790 else |
3798 echo "configure: failed program was:" >&5 | 3791 echo "configure: failed program was:" >&5 |
3799 cat conftest.$ac_ext >&5 | 3792 cat conftest.$ac_ext >&5 |
3814 fi | 3807 fi |
3815 fi | 3808 fi |
3816 | 3809 |
3817 if test "${window_system}" = "x11"; then | 3810 if test "${window_system}" = "x11"; then |
3818 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | 3811 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 |
3819 echo "configure:3820: checking X11 version 5" >&5 | 3812 echo "configure:3813: checking X11 version 5" >&5 |
3820 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then | 3813 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
3821 echo $ac_n "(cached) $ac_c" 1>&6 | 3814 echo $ac_n "(cached) $ac_c" 1>&6 |
3822 else | 3815 else |
3823 cat > conftest.$ac_ext <<EOF | 3816 cat > conftest.$ac_ext <<EOF |
3824 #line 3825 "configure" | 3817 #line 3818 "configure" |
3825 #include "confdefs.h" | 3818 #include "confdefs.h" |
3826 #include <X11/Xlib.h> | 3819 #include <X11/Xlib.h> |
3827 int main() { | 3820 int main() { |
3828 #if XlibSpecificationRelease < 5 | 3821 #if XlibSpecificationRelease < 5 |
3829 fail; | 3822 fail; |
3830 #endif | 3823 #endif |
3831 | 3824 |
3832 ; return 0; } | 3825 ; return 0; } |
3833 EOF | 3826 EOF |
3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3835 rm -rf conftest* | 3828 rm -rf conftest* |
3836 emacs_cv_x11_version_5=yes | 3829 emacs_cv_x11_version_5=yes |
3837 else | 3830 else |
3838 echo "configure: failed program was:" >&5 | 3831 echo "configure: failed program was:" >&5 |
3839 cat conftest.$ac_ext >&5 | 3832 cat conftest.$ac_ext >&5 |
3857 fi | 3850 fi |
3858 | 3851 |
3859 if test x"${USE_X_TOOLKIT}" = xmaybe; then | 3852 if test x"${USE_X_TOOLKIT}" = xmaybe; then |
3860 if test x"${HAVE_X11R5}" = xyes; then | 3853 if test x"${HAVE_X11R5}" = xyes; then |
3861 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | 3854 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 |
3862 echo "configure:3863: checking X11 version 5 with Xaw" >&5 | 3855 echo "configure:3856: checking X11 version 5 with Xaw" >&5 |
3863 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then | 3856 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
3864 echo $ac_n "(cached) $ac_c" 1>&6 | 3857 echo $ac_n "(cached) $ac_c" 1>&6 |
3865 else | 3858 else |
3866 cat > conftest.$ac_ext <<EOF | 3859 cat > conftest.$ac_ext <<EOF |
3867 #line 3868 "configure" | 3860 #line 3861 "configure" |
3868 #include "confdefs.h" | 3861 #include "confdefs.h" |
3869 | 3862 |
3870 #include <X11/Intrinsic.h> | 3863 #include <X11/Intrinsic.h> |
3871 #include <X11/Xaw/Simple.h> | 3864 #include <X11/Xaw/Simple.h> |
3872 int main() { | 3865 int main() { |
3873 | 3866 |
3874 ; return 0; } | 3867 ; return 0; } |
3875 EOF | 3868 EOF |
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3869 if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3877 rm -rf conftest* | 3870 rm -rf conftest* |
3878 emacs_cv_x11_version_5_with_xaw=yes | 3871 emacs_cv_x11_version_5_with_xaw=yes |
3879 else | 3872 else |
3880 echo "configure: failed program was:" >&5 | 3873 echo "configure: failed program was:" >&5 |
3881 cat conftest.$ac_ext >&5 | 3874 cat conftest.$ac_ext >&5 |
3899 | 3892 |
3900 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | 3893 X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
3901 | 3894 |
3902 if test "${USE_X_TOOLKIT}" != "none"; then | 3895 if test "${USE_X_TOOLKIT}" != "none"; then |
3903 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | 3896 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 |
3904 echo "configure:3905: checking X11 toolkit version" >&5 | 3897 echo "configure:3898: checking X11 toolkit version" >&5 |
3905 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then | 3898 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
3906 echo $ac_n "(cached) $ac_c" 1>&6 | 3899 echo $ac_n "(cached) $ac_c" 1>&6 |
3907 else | 3900 else |
3908 cat > conftest.$ac_ext <<EOF | 3901 cat > conftest.$ac_ext <<EOF |
3909 #line 3910 "configure" | 3902 #line 3903 "configure" |
3910 #include "confdefs.h" | 3903 #include "confdefs.h" |
3911 #include <X11/Intrinsic.h> | 3904 #include <X11/Intrinsic.h> |
3912 int main() { | 3905 int main() { |
3913 #if XtSpecificationRelease < 6 | 3906 #if XtSpecificationRelease < 6 |
3914 fail; | 3907 fail; |
3915 #endif | 3908 #endif |
3916 | 3909 |
3917 ; return 0; } | 3910 ; return 0; } |
3918 EOF | 3911 EOF |
3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3912 if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3920 rm -rf conftest* | 3913 rm -rf conftest* |
3921 emacs_cv_x11_toolkit_version_6=yes | 3914 emacs_cv_x11_toolkit_version_6=yes |
3922 else | 3915 else |
3923 echo "configure: failed program was:" >&5 | 3916 echo "configure: failed program was:" >&5 |
3924 cat conftest.$ac_ext >&5 | 3917 cat conftest.$ac_ext >&5 |
3944 LIBS="-lXt -lSM -lICE $LIBS" | 3937 LIBS="-lXt -lSM -lICE $LIBS" |
3945 else | 3938 else |
3946 LIBS="-lXt $LIBS" | 3939 LIBS="-lXt $LIBS" |
3947 fi | 3940 fi |
3948 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | 3941 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 |
3949 echo "configure:3950: checking for XmuConvertStandardSelection in -lXmu" >&5 | 3942 echo "configure:3943: checking for XmuConvertStandardSelection in -lXmu" >&5 |
3950 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` | 3943 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
3951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 3944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3952 echo $ac_n "(cached) $ac_c" 1>&6 | 3945 echo $ac_n "(cached) $ac_c" 1>&6 |
3953 else | 3946 else |
3954 ac_save_LIBS="$LIBS" | 3947 ac_save_LIBS="$LIBS" |
3955 LIBS="-lXmu $LIBS" | 3948 LIBS="-lXmu $LIBS" |
3956 cat > conftest.$ac_ext <<EOF | 3949 cat > conftest.$ac_ext <<EOF |
3957 #line 3958 "configure" | 3950 #line 3951 "configure" |
3958 #include "confdefs.h" | 3951 #include "confdefs.h" |
3959 /* Override any gcc2 internal prototype to avoid an error. */ | 3952 /* Override any gcc2 internal prototype to avoid an error. */ |
3960 /* We use char because int might match the return type of a gcc2 | 3953 /* We use char because int might match the return type of a gcc2 |
3961 builtin and then its argument prototype would still apply. */ | 3954 builtin and then its argument prototype would still apply. */ |
3962 char XmuConvertStandardSelection(); | 3955 char XmuConvertStandardSelection(); |
3963 | 3956 |
3964 int main() { | 3957 int main() { |
3965 XmuConvertStandardSelection() | 3958 XmuConvertStandardSelection() |
3966 ; return 0; } | 3959 ; return 0; } |
3967 EOF | 3960 EOF |
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3961 if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3969 rm -rf conftest* | 3962 rm -rf conftest* |
3970 eval "ac_cv_lib_$ac_lib_var=yes" | 3963 eval "ac_cv_lib_$ac_lib_var=yes" |
3971 else | 3964 else |
3972 echo "configure: failed program was:" >&5 | 3965 echo "configure: failed program was:" >&5 |
3973 cat conftest.$ac_ext >&5 | 3966 cat conftest.$ac_ext >&5 |
3995 LIBS="$OLDLIBS" | 3988 LIBS="$OLDLIBS" |
3996 fi | 3989 fi |
3997 | 3990 |
3998 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 3991 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
3999 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | 3992 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 |
4000 echo "configure:4001: checking for Motif version 2.1" >&5 | 3993 echo "configure:3994: checking for Motif version 2.1" >&5 |
4001 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then | 3994 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
4002 echo $ac_n "(cached) $ac_c" 1>&6 | 3995 echo $ac_n "(cached) $ac_c" 1>&6 |
4003 else | 3996 else |
4004 cat > conftest.$ac_ext <<EOF | 3997 cat > conftest.$ac_ext <<EOF |
4005 #line 4006 "configure" | 3998 #line 3999 "configure" |
4006 #include "confdefs.h" | 3999 #include "confdefs.h" |
4007 #include <Xm/Xm.h> | 4000 #include <Xm/Xm.h> |
4008 int main() { | 4001 int main() { |
4009 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | 4002 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
4010 int x = 5; | 4003 int x = 5; |
4011 #else | 4004 #else |
4012 Motif version prior to 2.1. | 4005 Motif version prior to 2.1. |
4013 #endif | 4006 #endif |
4014 ; return 0; } | 4007 ; return 0; } |
4015 EOF | 4008 EOF |
4016 if { (eval echo configure:4017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4009 if { (eval echo configure:4010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4017 rm -rf conftest* | 4010 rm -rf conftest* |
4018 emacs_cv_motif_version_2_1=yes | 4011 emacs_cv_motif_version_2_1=yes |
4019 else | 4012 else |
4020 echo "configure: failed program was:" >&5 | 4013 echo "configure: failed program was:" >&5 |
4021 cat conftest.$ac_ext >&5 | 4014 cat conftest.$ac_ext >&5 |
4031 cat >> confdefs.h <<\EOF | 4024 cat >> confdefs.h <<\EOF |
4032 #define HAVE_MOTIF_2_1 1 | 4025 #define HAVE_MOTIF_2_1 1 |
4033 EOF | 4026 EOF |
4034 | 4027 |
4035 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | 4028 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 |
4036 echo "configure:4037: checking for XpCreateContext in -lXp" >&5 | 4029 echo "configure:4030: checking for XpCreateContext in -lXp" >&5 |
4037 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` | 4030 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4039 echo $ac_n "(cached) $ac_c" 1>&6 | 4032 echo $ac_n "(cached) $ac_c" 1>&6 |
4040 else | 4033 else |
4041 ac_save_LIBS="$LIBS" | 4034 ac_save_LIBS="$LIBS" |
4042 LIBS="-lXp $LIBS" | 4035 LIBS="-lXp $LIBS" |
4043 cat > conftest.$ac_ext <<EOF | 4036 cat > conftest.$ac_ext <<EOF |
4044 #line 4045 "configure" | 4037 #line 4038 "configure" |
4045 #include "confdefs.h" | 4038 #include "confdefs.h" |
4046 /* Override any gcc2 internal prototype to avoid an error. */ | 4039 /* Override any gcc2 internal prototype to avoid an error. */ |
4047 /* We use char because int might match the return type of a gcc2 | 4040 /* We use char because int might match the return type of a gcc2 |
4048 builtin and then its argument prototype would still apply. */ | 4041 builtin and then its argument prototype would still apply. */ |
4049 char XpCreateContext(); | 4042 char XpCreateContext(); |
4050 | 4043 |
4051 int main() { | 4044 int main() { |
4052 XpCreateContext() | 4045 XpCreateContext() |
4053 ; return 0; } | 4046 ; return 0; } |
4054 EOF | 4047 EOF |
4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4048 if { (eval echo configure:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4056 rm -rf conftest* | 4049 rm -rf conftest* |
4057 eval "ac_cv_lib_$ac_lib_var=yes" | 4050 eval "ac_cv_lib_$ac_lib_var=yes" |
4058 else | 4051 else |
4059 echo "configure: failed program was:" >&5 | 4052 echo "configure: failed program was:" >&5 |
4060 cat conftest.$ac_ext >&5 | 4053 cat conftest.$ac_ext >&5 |
4088 if test "${USE_X_TOOLKIT}" != "none"; then | 4081 if test "${USE_X_TOOLKIT}" != "none"; then |
4089 old_c_flags="${CFLAGS}" | 4082 old_c_flags="${CFLAGS}" |
4090 CFLAGS="${LD_SWITCH_X_SITE}" | 4083 CFLAGS="${LD_SWITCH_X_SITE}" |
4091 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | 4084 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` |
4092 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | 4085 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 |
4093 echo "configure:4094: checking for X11/Xaw3d/Scrollbar.h" >&5 | 4086 echo "configure:4087: checking for X11/Xaw3d/Scrollbar.h" >&5 |
4094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4087 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4095 echo $ac_n "(cached) $ac_c" 1>&6 | 4088 echo $ac_n "(cached) $ac_c" 1>&6 |
4096 else | 4089 else |
4097 cat > conftest.$ac_ext <<EOF | 4090 cat > conftest.$ac_ext <<EOF |
4098 #line 4099 "configure" | 4091 #line 4092 "configure" |
4099 #include "confdefs.h" | 4092 #include "confdefs.h" |
4100 #include <X11/Xaw3d/Scrollbar.h> | 4093 #include <X11/Xaw3d/Scrollbar.h> |
4101 EOF | 4094 EOF |
4102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4103 { (eval echo configure:4104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4096 { (eval echo configure:4097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4105 if test -z "$ac_err"; then | 4098 if test -z "$ac_err"; then |
4106 rm -rf conftest* | 4099 rm -rf conftest* |
4107 eval "ac_cv_header_$ac_safe=yes" | 4100 eval "ac_cv_header_$ac_safe=yes" |
4108 else | 4101 else |
4115 rm -f conftest* | 4108 rm -f conftest* |
4116 fi | 4109 fi |
4117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4118 echo "$ac_t""yes" 1>&6 | 4111 echo "$ac_t""yes" 1>&6 |
4119 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | 4112 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 |
4120 echo "configure:4121: checking for XawScrollbarSetThumb in -lXaw3d" >&5 | 4113 echo "configure:4114: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
4121 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | 4114 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4123 echo $ac_n "(cached) $ac_c" 1>&6 | 4116 echo $ac_n "(cached) $ac_c" 1>&6 |
4124 else | 4117 else |
4125 ac_save_LIBS="$LIBS" | 4118 ac_save_LIBS="$LIBS" |
4126 LIBS="-lXaw3d -lX11 $LIBS" | 4119 LIBS="-lXaw3d -lX11 $LIBS" |
4127 cat > conftest.$ac_ext <<EOF | 4120 cat > conftest.$ac_ext <<EOF |
4128 #line 4129 "configure" | 4121 #line 4122 "configure" |
4129 #include "confdefs.h" | 4122 #include "confdefs.h" |
4130 /* Override any gcc2 internal prototype to avoid an error. */ | 4123 /* Override any gcc2 internal prototype to avoid an error. */ |
4131 /* We use char because int might match the return type of a gcc2 | 4124 /* We use char because int might match the return type of a gcc2 |
4132 builtin and then its argument prototype would still apply. */ | 4125 builtin and then its argument prototype would still apply. */ |
4133 char XawScrollbarSetThumb(); | 4126 char XawScrollbarSetThumb(); |
4134 | 4127 |
4135 int main() { | 4128 int main() { |
4136 XawScrollbarSetThumb() | 4129 XawScrollbarSetThumb() |
4137 ; return 0; } | 4130 ; return 0; } |
4138 EOF | 4131 EOF |
4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4132 if { (eval echo configure:4133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4140 rm -rf conftest* | 4133 rm -rf conftest* |
4141 eval "ac_cv_lib_$ac_lib_var=yes" | 4134 eval "ac_cv_lib_$ac_lib_var=yes" |
4142 else | 4135 else |
4143 echo "configure: failed program was:" >&5 | 4136 echo "configure: failed program was:" >&5 |
4144 cat conftest.$ac_ext >&5 | 4137 cat conftest.$ac_ext >&5 |
4198 if test "${with_xpm}" != "no"; then | 4191 if test "${with_xpm}" != "no"; then |
4199 old_c_flags="${CFLAGS}" | 4192 old_c_flags="${CFLAGS}" |
4200 CFLAGS="${LD_SWITCH_X_SITE}" | 4193 CFLAGS="${LD_SWITCH_X_SITE}" |
4201 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | 4194 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` |
4202 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | 4195 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 |
4203 echo "configure:4204: checking for X11/xpm.h" >&5 | 4196 echo "configure:4197: checking for X11/xpm.h" >&5 |
4204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4205 echo $ac_n "(cached) $ac_c" 1>&6 | 4198 echo $ac_n "(cached) $ac_c" 1>&6 |
4206 else | 4199 else |
4207 cat > conftest.$ac_ext <<EOF | 4200 cat > conftest.$ac_ext <<EOF |
4208 #line 4209 "configure" | 4201 #line 4202 "configure" |
4209 #include "confdefs.h" | 4202 #include "confdefs.h" |
4210 #include <X11/xpm.h> | 4203 #include <X11/xpm.h> |
4211 EOF | 4204 EOF |
4212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4213 { (eval echo configure:4214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4206 { (eval echo configure:4207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4215 if test -z "$ac_err"; then | 4208 if test -z "$ac_err"; then |
4216 rm -rf conftest* | 4209 rm -rf conftest* |
4217 eval "ac_cv_header_$ac_safe=yes" | 4210 eval "ac_cv_header_$ac_safe=yes" |
4218 else | 4211 else |
4225 rm -f conftest* | 4218 rm -f conftest* |
4226 fi | 4219 fi |
4227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4228 echo "$ac_t""yes" 1>&6 | 4221 echo "$ac_t""yes" 1>&6 |
4229 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | 4222 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 |
4230 echo "configure:4231: checking for XpmReadFileToPixmap in -lXpm" >&5 | 4223 echo "configure:4224: checking for XpmReadFileToPixmap in -lXpm" >&5 |
4231 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` | 4224 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
4232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4233 echo $ac_n "(cached) $ac_c" 1>&6 | 4226 echo $ac_n "(cached) $ac_c" 1>&6 |
4234 else | 4227 else |
4235 ac_save_LIBS="$LIBS" | 4228 ac_save_LIBS="$LIBS" |
4236 LIBS="-lXpm -lX11 $LIBS" | 4229 LIBS="-lXpm -lX11 $LIBS" |
4237 cat > conftest.$ac_ext <<EOF | 4230 cat > conftest.$ac_ext <<EOF |
4238 #line 4239 "configure" | 4231 #line 4232 "configure" |
4239 #include "confdefs.h" | 4232 #include "confdefs.h" |
4240 /* Override any gcc2 internal prototype to avoid an error. */ | 4233 /* Override any gcc2 internal prototype to avoid an error. */ |
4241 /* We use char because int might match the return type of a gcc2 | 4234 /* We use char because int might match the return type of a gcc2 |
4242 builtin and then its argument prototype would still apply. */ | 4235 builtin and then its argument prototype would still apply. */ |
4243 char XpmReadFileToPixmap(); | 4236 char XpmReadFileToPixmap(); |
4244 | 4237 |
4245 int main() { | 4238 int main() { |
4246 XpmReadFileToPixmap() | 4239 XpmReadFileToPixmap() |
4247 ; return 0; } | 4240 ; return 0; } |
4248 EOF | 4241 EOF |
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4242 if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4250 rm -rf conftest* | 4243 rm -rf conftest* |
4251 eval "ac_cv_lib_$ac_lib_var=yes" | 4244 eval "ac_cv_lib_$ac_lib_var=yes" |
4252 else | 4245 else |
4253 echo "configure: failed program was:" >&5 | 4246 echo "configure: failed program was:" >&5 |
4254 cat conftest.$ac_ext >&5 | 4247 cat conftest.$ac_ext >&5 |
4285 HAVE_JPEG=no | 4278 HAVE_JPEG=no |
4286 if test "${HAVE_X11}" = "yes"; then | 4279 if test "${HAVE_X11}" = "yes"; then |
4287 if test "${with_jpeg}" != "no"; then | 4280 if test "${with_jpeg}" != "no"; then |
4288 old_c_flags="${CFLAGS}" | 4281 old_c_flags="${CFLAGS}" |
4289 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4282 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4290 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | 4283 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` |
4291 echo "configure:4292: checking for jpeg_destroy_compress in -ljpeg" >&5 | 4284 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 |
4285 echo "configure:4286: checking for jerror.h" >&5 | |
4286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
4287 echo $ac_n "(cached) $ac_c" 1>&6 | |
4288 else | |
4289 cat > conftest.$ac_ext <<EOF | |
4290 #line 4291 "configure" | |
4291 #include "confdefs.h" | |
4292 #include <jerror.h> | |
4293 EOF | |
4294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4295 { (eval echo configure:4296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
4296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
4297 if test -z "$ac_err"; then | |
4298 rm -rf conftest* | |
4299 eval "ac_cv_header_$ac_safe=yes" | |
4300 else | |
4301 echo "$ac_err" >&5 | |
4302 echo "configure: failed program was:" >&5 | |
4303 cat conftest.$ac_ext >&5 | |
4304 rm -rf conftest* | |
4305 eval "ac_cv_header_$ac_safe=no" | |
4306 fi | |
4307 rm -f conftest* | |
4308 fi | |
4309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4310 echo "$ac_t""yes" 1>&6 | |
4311 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | |
4312 echo "configure:4313: checking for jpeg_destroy_compress in -ljpeg" >&5 | |
4292 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` | 4313 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
4293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4294 echo $ac_n "(cached) $ac_c" 1>&6 | 4315 echo $ac_n "(cached) $ac_c" 1>&6 |
4295 else | 4316 else |
4296 ac_save_LIBS="$LIBS" | 4317 ac_save_LIBS="$LIBS" |
4297 LIBS="-ljpeg -lX11 $LIBS" | 4318 LIBS="-ljpeg -lX11 $LIBS" |
4298 cat > conftest.$ac_ext <<EOF | 4319 cat > conftest.$ac_ext <<EOF |
4299 #line 4300 "configure" | 4320 #line 4321 "configure" |
4300 #include "confdefs.h" | 4321 #include "confdefs.h" |
4301 /* Override any gcc2 internal prototype to avoid an error. */ | 4322 /* Override any gcc2 internal prototype to avoid an error. */ |
4302 /* We use char because int might match the return type of a gcc2 | 4323 /* We use char because int might match the return type of a gcc2 |
4303 builtin and then its argument prototype would still apply. */ | 4324 builtin and then its argument prototype would still apply. */ |
4304 char jpeg_destroy_compress(); | 4325 char jpeg_destroy_compress(); |
4305 | 4326 |
4306 int main() { | 4327 int main() { |
4307 jpeg_destroy_compress() | 4328 jpeg_destroy_compress() |
4308 ; return 0; } | 4329 ; return 0; } |
4309 EOF | 4330 EOF |
4310 if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4331 if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4311 rm -rf conftest* | 4332 rm -rf conftest* |
4312 eval "ac_cv_lib_$ac_lib_var=yes" | 4333 eval "ac_cv_lib_$ac_lib_var=yes" |
4313 else | 4334 else |
4314 echo "configure: failed program was:" >&5 | 4335 echo "configure: failed program was:" >&5 |
4315 cat conftest.$ac_ext >&5 | 4336 cat conftest.$ac_ext >&5 |
4321 | 4342 |
4322 fi | 4343 fi |
4323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
4324 echo "$ac_t""yes" 1>&6 | 4345 echo "$ac_t""yes" 1>&6 |
4325 HAVE_JPEG=yes | 4346 HAVE_JPEG=yes |
4347 else | |
4348 echo "$ac_t""no" 1>&6 | |
4349 fi | |
4350 | |
4326 else | 4351 else |
4327 echo "$ac_t""no" 1>&6 | 4352 echo "$ac_t""no" 1>&6 |
4328 fi | 4353 fi |
4329 | 4354 |
4330 CFLAGS="${old_c_flags}" | 4355 CFLAGS="${old_c_flags}" |
4344 if test "${with_png}" != "no"; then | 4369 if test "${with_png}" != "no"; then |
4345 old_c_flags="${CFLAGS}" | 4370 old_c_flags="${CFLAGS}" |
4346 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4371 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4347 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | 4372 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
4348 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | 4373 echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
4349 echo "configure:4350: checking for png.h" >&5 | 4374 echo "configure:4375: checking for png.h" >&5 |
4350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4351 echo $ac_n "(cached) $ac_c" 1>&6 | 4376 echo $ac_n "(cached) $ac_c" 1>&6 |
4352 else | 4377 else |
4353 cat > conftest.$ac_ext <<EOF | 4378 cat > conftest.$ac_ext <<EOF |
4354 #line 4355 "configure" | 4379 #line 4380 "configure" |
4355 #include "confdefs.h" | 4380 #include "confdefs.h" |
4356 #include <png.h> | 4381 #include <png.h> |
4357 EOF | 4382 EOF |
4358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4359 { (eval echo configure:4360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4384 { (eval echo configure:4385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4361 if test -z "$ac_err"; then | 4386 if test -z "$ac_err"; then |
4362 rm -rf conftest* | 4387 rm -rf conftest* |
4363 eval "ac_cv_header_$ac_safe=yes" | 4388 eval "ac_cv_header_$ac_safe=yes" |
4364 else | 4389 else |
4371 rm -f conftest* | 4396 rm -f conftest* |
4372 fi | 4397 fi |
4373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4374 echo "$ac_t""yes" 1>&6 | 4399 echo "$ac_t""yes" 1>&6 |
4375 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 | 4400 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 |
4376 echo "configure:4377: checking for png_set_expand in -lpng" >&5 | 4401 echo "configure:4402: checking for png_set_expand in -lpng" >&5 |
4377 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` | 4402 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` |
4378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4379 echo $ac_n "(cached) $ac_c" 1>&6 | 4404 echo $ac_n "(cached) $ac_c" 1>&6 |
4380 else | 4405 else |
4381 ac_save_LIBS="$LIBS" | 4406 ac_save_LIBS="$LIBS" |
4382 LIBS="-lpng -lX11 -lz -lm $LIBS" | 4407 LIBS="-lpng -lX11 -lz -lm $LIBS" |
4383 cat > conftest.$ac_ext <<EOF | 4408 cat > conftest.$ac_ext <<EOF |
4384 #line 4385 "configure" | 4409 #line 4410 "configure" |
4385 #include "confdefs.h" | 4410 #include "confdefs.h" |
4386 /* Override any gcc2 internal prototype to avoid an error. */ | 4411 /* Override any gcc2 internal prototype to avoid an error. */ |
4387 /* We use char because int might match the return type of a gcc2 | 4412 /* We use char because int might match the return type of a gcc2 |
4388 builtin and then its argument prototype would still apply. */ | 4413 builtin and then its argument prototype would still apply. */ |
4389 char png_set_expand(); | 4414 char png_set_expand(); |
4390 | 4415 |
4391 int main() { | 4416 int main() { |
4392 png_set_expand() | 4417 png_set_expand() |
4393 ; return 0; } | 4418 ; return 0; } |
4394 EOF | 4419 EOF |
4395 if { (eval echo configure:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4396 rm -rf conftest* | 4421 rm -rf conftest* |
4397 eval "ac_cv_lib_$ac_lib_var=yes" | 4422 eval "ac_cv_lib_$ac_lib_var=yes" |
4398 else | 4423 else |
4399 echo "configure: failed program was:" >&5 | 4424 echo "configure: failed program was:" >&5 |
4400 cat conftest.$ac_ext >&5 | 4425 cat conftest.$ac_ext >&5 |
4433 if test "${with_tiff}" != "no"; then | 4458 if test "${with_tiff}" != "no"; then |
4434 old_c_flags="${CFLAGS}" | 4459 old_c_flags="${CFLAGS}" |
4435 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4460 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4436 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | 4461 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
4437 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | 4462 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 |
4438 echo "configure:4439: checking for tiffio.h" >&5 | 4463 echo "configure:4464: checking for tiffio.h" >&5 |
4439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4440 echo $ac_n "(cached) $ac_c" 1>&6 | 4465 echo $ac_n "(cached) $ac_c" 1>&6 |
4441 else | 4466 else |
4442 cat > conftest.$ac_ext <<EOF | 4467 cat > conftest.$ac_ext <<EOF |
4443 #line 4444 "configure" | 4468 #line 4469 "configure" |
4444 #include "confdefs.h" | 4469 #include "confdefs.h" |
4445 #include <tiffio.h> | 4470 #include <tiffio.h> |
4446 EOF | 4471 EOF |
4447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4448 { (eval echo configure:4449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4473 { (eval echo configure:4474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4450 if test -z "$ac_err"; then | 4475 if test -z "$ac_err"; then |
4451 rm -rf conftest* | 4476 rm -rf conftest* |
4452 eval "ac_cv_header_$ac_safe=yes" | 4477 eval "ac_cv_header_$ac_safe=yes" |
4453 else | 4478 else |
4460 rm -f conftest* | 4485 rm -f conftest* |
4461 fi | 4486 fi |
4462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4463 echo "$ac_t""yes" 1>&6 | 4488 echo "$ac_t""yes" 1>&6 |
4464 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 | 4489 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 |
4465 echo "configure:4466: checking for TIFFGetVersion in -ltiff" >&5 | 4490 echo "configure:4491: checking for TIFFGetVersion in -ltiff" >&5 |
4466 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` | 4491 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
4467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4468 echo $ac_n "(cached) $ac_c" 1>&6 | 4493 echo $ac_n "(cached) $ac_c" 1>&6 |
4469 else | 4494 else |
4470 ac_save_LIBS="$LIBS" | 4495 ac_save_LIBS="$LIBS" |
4471 LIBS="-ltiff -lX11 -lm $LIBS" | 4496 LIBS="-ltiff -lX11 -lm $LIBS" |
4472 cat > conftest.$ac_ext <<EOF | 4497 cat > conftest.$ac_ext <<EOF |
4473 #line 4474 "configure" | 4498 #line 4499 "configure" |
4474 #include "confdefs.h" | 4499 #include "confdefs.h" |
4475 /* Override any gcc2 internal prototype to avoid an error. */ | 4500 /* Override any gcc2 internal prototype to avoid an error. */ |
4476 /* We use char because int might match the return type of a gcc2 | 4501 /* We use char because int might match the return type of a gcc2 |
4477 builtin and then its argument prototype would still apply. */ | 4502 builtin and then its argument prototype would still apply. */ |
4478 char TIFFGetVersion(); | 4503 char TIFFGetVersion(); |
4479 | 4504 |
4480 int main() { | 4505 int main() { |
4481 TIFFGetVersion() | 4506 TIFFGetVersion() |
4482 ; return 0; } | 4507 ; return 0; } |
4483 EOF | 4508 EOF |
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4485 rm -rf conftest* | 4510 rm -rf conftest* |
4486 eval "ac_cv_lib_$ac_lib_var=yes" | 4511 eval "ac_cv_lib_$ac_lib_var=yes" |
4487 else | 4512 else |
4488 echo "configure: failed program was:" >&5 | 4513 echo "configure: failed program was:" >&5 |
4489 cat conftest.$ac_ext >&5 | 4514 cat conftest.$ac_ext >&5 |
4522 if test "${with_gif}" != "no"; then | 4547 if test "${with_gif}" != "no"; then |
4523 old_c_flags="${CFLAGS}" | 4548 old_c_flags="${CFLAGS}" |
4524 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4549 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4525 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | 4550 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` |
4526 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | 4551 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 |
4527 echo "configure:4528: checking for gif_lib.h" >&5 | 4552 echo "configure:4553: checking for gif_lib.h" >&5 |
4528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4529 echo $ac_n "(cached) $ac_c" 1>&6 | 4554 echo $ac_n "(cached) $ac_c" 1>&6 |
4530 else | 4555 else |
4531 cat > conftest.$ac_ext <<EOF | 4556 cat > conftest.$ac_ext <<EOF |
4532 #line 4533 "configure" | 4557 #line 4558 "configure" |
4533 #include "confdefs.h" | 4558 #include "confdefs.h" |
4534 #include <gif_lib.h> | 4559 #include <gif_lib.h> |
4535 EOF | 4560 EOF |
4536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4537 { (eval echo configure:4538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4562 { (eval echo configure:4563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4539 if test -z "$ac_err"; then | 4564 if test -z "$ac_err"; then |
4540 rm -rf conftest* | 4565 rm -rf conftest* |
4541 eval "ac_cv_header_$ac_safe=yes" | 4566 eval "ac_cv_header_$ac_safe=yes" |
4542 else | 4567 else |
4548 fi | 4573 fi |
4549 rm -f conftest* | 4574 rm -f conftest* |
4550 fi | 4575 fi |
4551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4552 echo "$ac_t""yes" 1>&6 | 4577 echo "$ac_t""yes" 1>&6 |
4553 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6 | 4578 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 |
4554 echo "configure:4555: checking for DGifOpenFileName in -lungif" >&5 | 4579 echo "configure:4580: checking for DGifOpen in -lungif" >&5 |
4555 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'` | 4580 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` |
4556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4557 echo $ac_n "(cached) $ac_c" 1>&6 | 4582 echo $ac_n "(cached) $ac_c" 1>&6 |
4558 else | 4583 else |
4559 ac_save_LIBS="$LIBS" | 4584 ac_save_LIBS="$LIBS" |
4560 LIBS="-lungif -lX11 $LIBS" | 4585 LIBS="-lungif -lX11 $LIBS" |
4561 cat > conftest.$ac_ext <<EOF | 4586 cat > conftest.$ac_ext <<EOF |
4562 #line 4563 "configure" | 4587 #line 4588 "configure" |
4563 #include "confdefs.h" | 4588 #include "confdefs.h" |
4564 /* Override any gcc2 internal prototype to avoid an error. */ | 4589 /* Override any gcc2 internal prototype to avoid an error. */ |
4565 /* We use char because int might match the return type of a gcc2 | 4590 /* We use char because int might match the return type of a gcc2 |
4566 builtin and then its argument prototype would still apply. */ | 4591 builtin and then its argument prototype would still apply. */ |
4567 char DGifOpenFileName(); | 4592 char DGifOpen(); |
4568 | 4593 |
4569 int main() { | 4594 int main() { |
4570 DGifOpenFileName() | 4595 DGifOpen() |
4571 ; return 0; } | 4596 ; return 0; } |
4572 EOF | 4597 EOF |
4573 if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4598 if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4574 rm -rf conftest* | 4599 rm -rf conftest* |
4575 eval "ac_cv_lib_$ac_lib_var=yes" | 4600 eval "ac_cv_lib_$ac_lib_var=yes" |
4576 else | 4601 else |
4577 echo "configure: failed program was:" >&5 | 4602 echo "configure: failed program was:" >&5 |
4578 cat conftest.$ac_ext >&5 | 4603 cat conftest.$ac_ext >&5 |
4605 fi | 4630 fi |
4606 fi | 4631 fi |
4607 | 4632 |
4608 # If netdb.h doesn't declare h_errno, we must declare it by hand. | 4633 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
4609 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 4634 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
4610 echo "configure:4611: checking whether netdb declares h_errno" >&5 | 4635 echo "configure:4636: checking whether netdb declares h_errno" >&5 |
4611 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then | 4636 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
4612 echo $ac_n "(cached) $ac_c" 1>&6 | 4637 echo $ac_n "(cached) $ac_c" 1>&6 |
4613 else | 4638 else |
4614 cat > conftest.$ac_ext <<EOF | 4639 cat > conftest.$ac_ext <<EOF |
4615 #line 4616 "configure" | 4640 #line 4641 "configure" |
4616 #include "confdefs.h" | 4641 #include "confdefs.h" |
4617 #include <netdb.h> | 4642 #include <netdb.h> |
4618 int main() { | 4643 int main() { |
4619 return h_errno; | 4644 return h_errno; |
4620 ; return 0; } | 4645 ; return 0; } |
4621 EOF | 4646 EOF |
4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4647 if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4623 rm -rf conftest* | 4648 rm -rf conftest* |
4624 emacs_cv_netdb_declares_h_errno=yes | 4649 emacs_cv_netdb_declares_h_errno=yes |
4625 else | 4650 else |
4626 echo "configure: failed program was:" >&5 | 4651 echo "configure: failed program was:" >&5 |
4627 cat conftest.$ac_ext >&5 | 4652 cat conftest.$ac_ext >&5 |
4640 fi | 4665 fi |
4641 | 4666 |
4642 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 4667 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
4643 # for constant arguments. Useless! | 4668 # for constant arguments. Useless! |
4644 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 4669 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
4645 echo "configure:4646: checking for working alloca.h" >&5 | 4670 echo "configure:4671: checking for working alloca.h" >&5 |
4646 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 4671 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
4647 echo $ac_n "(cached) $ac_c" 1>&6 | 4672 echo $ac_n "(cached) $ac_c" 1>&6 |
4648 else | 4673 else |
4649 cat > conftest.$ac_ext <<EOF | 4674 cat > conftest.$ac_ext <<EOF |
4650 #line 4651 "configure" | 4675 #line 4676 "configure" |
4651 #include "confdefs.h" | 4676 #include "confdefs.h" |
4652 #include <alloca.h> | 4677 #include <alloca.h> |
4653 int main() { | 4678 int main() { |
4654 char *p = alloca(2 * sizeof(int)); | 4679 char *p = alloca(2 * sizeof(int)); |
4655 ; return 0; } | 4680 ; return 0; } |
4656 EOF | 4681 EOF |
4657 if { (eval echo configure:4658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4658 rm -rf conftest* | 4683 rm -rf conftest* |
4659 ac_cv_header_alloca_h=yes | 4684 ac_cv_header_alloca_h=yes |
4660 else | 4685 else |
4661 echo "configure: failed program was:" >&5 | 4686 echo "configure: failed program was:" >&5 |
4662 cat conftest.$ac_ext >&5 | 4687 cat conftest.$ac_ext >&5 |
4673 EOF | 4698 EOF |
4674 | 4699 |
4675 fi | 4700 fi |
4676 | 4701 |
4677 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 4702 echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
4678 echo "configure:4679: checking for alloca" >&5 | 4703 echo "configure:4704: checking for alloca" >&5 |
4679 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 4704 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
4680 echo $ac_n "(cached) $ac_c" 1>&6 | 4705 echo $ac_n "(cached) $ac_c" 1>&6 |
4681 else | 4706 else |
4682 cat > conftest.$ac_ext <<EOF | 4707 cat > conftest.$ac_ext <<EOF |
4683 #line 4684 "configure" | 4708 #line 4709 "configure" |
4684 #include "confdefs.h" | 4709 #include "confdefs.h" |
4685 | 4710 |
4686 #ifdef __GNUC__ | 4711 #ifdef __GNUC__ |
4687 # define alloca __builtin_alloca | 4712 # define alloca __builtin_alloca |
4688 #else | 4713 #else |
4706 | 4731 |
4707 int main() { | 4732 int main() { |
4708 char *p = (char *) alloca(1); | 4733 char *p = (char *) alloca(1); |
4709 ; return 0; } | 4734 ; return 0; } |
4710 EOF | 4735 EOF |
4711 if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4736 if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4712 rm -rf conftest* | 4737 rm -rf conftest* |
4713 ac_cv_func_alloca_works=yes | 4738 ac_cv_func_alloca_works=yes |
4714 else | 4739 else |
4715 echo "configure: failed program was:" >&5 | 4740 echo "configure: failed program was:" >&5 |
4716 cat conftest.$ac_ext >&5 | 4741 cat conftest.$ac_ext >&5 |
4738 #define C_ALLOCA 1 | 4763 #define C_ALLOCA 1 |
4739 EOF | 4764 EOF |
4740 | 4765 |
4741 | 4766 |
4742 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 4767 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
4743 echo "configure:4744: checking whether alloca needs Cray hooks" >&5 | 4768 echo "configure:4769: checking whether alloca needs Cray hooks" >&5 |
4744 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 4769 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
4745 echo $ac_n "(cached) $ac_c" 1>&6 | 4770 echo $ac_n "(cached) $ac_c" 1>&6 |
4746 else | 4771 else |
4747 cat > conftest.$ac_ext <<EOF | 4772 cat > conftest.$ac_ext <<EOF |
4748 #line 4749 "configure" | 4773 #line 4774 "configure" |
4749 #include "confdefs.h" | 4774 #include "confdefs.h" |
4750 #if defined(CRAY) && ! defined(CRAY2) | 4775 #if defined(CRAY) && ! defined(CRAY2) |
4751 webecray | 4776 webecray |
4752 #else | 4777 #else |
4753 wenotbecray | 4778 wenotbecray |
4768 | 4793 |
4769 echo "$ac_t""$ac_cv_os_cray" 1>&6 | 4794 echo "$ac_t""$ac_cv_os_cray" 1>&6 |
4770 if test $ac_cv_os_cray = yes; then | 4795 if test $ac_cv_os_cray = yes; then |
4771 for ac_func in _getb67 GETB67 getb67; do | 4796 for ac_func in _getb67 GETB67 getb67; do |
4772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 4797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4773 echo "configure:4774: checking for $ac_func" >&5 | 4798 echo "configure:4799: checking for $ac_func" >&5 |
4774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 4799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4775 echo $ac_n "(cached) $ac_c" 1>&6 | 4800 echo $ac_n "(cached) $ac_c" 1>&6 |
4776 else | 4801 else |
4777 cat > conftest.$ac_ext <<EOF | 4802 cat > conftest.$ac_ext <<EOF |
4778 #line 4779 "configure" | 4803 #line 4804 "configure" |
4779 #include "confdefs.h" | 4804 #include "confdefs.h" |
4780 /* System header to define __stub macros and hopefully few prototypes, | 4805 /* System header to define __stub macros and hopefully few prototypes, |
4781 which can conflict with char $ac_func(); below. */ | 4806 which can conflict with char $ac_func(); below. */ |
4782 #include <assert.h> | 4807 #include <assert.h> |
4783 /* Override any gcc2 internal prototype to avoid an error. */ | 4808 /* Override any gcc2 internal prototype to avoid an error. */ |
4796 $ac_func(); | 4821 $ac_func(); |
4797 #endif | 4822 #endif |
4798 | 4823 |
4799 ; return 0; } | 4824 ; return 0; } |
4800 EOF | 4825 EOF |
4801 if { (eval echo configure:4802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4802 rm -rf conftest* | 4827 rm -rf conftest* |
4803 eval "ac_cv_func_$ac_func=yes" | 4828 eval "ac_cv_func_$ac_func=yes" |
4804 else | 4829 else |
4805 echo "configure: failed program was:" >&5 | 4830 echo "configure: failed program was:" >&5 |
4806 cat conftest.$ac_ext >&5 | 4831 cat conftest.$ac_ext >&5 |
4823 | 4848 |
4824 done | 4849 done |
4825 fi | 4850 fi |
4826 | 4851 |
4827 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 4852 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
4828 echo "configure:4829: checking stack direction for C alloca" >&5 | 4853 echo "configure:4854: checking stack direction for C alloca" >&5 |
4829 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 4854 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
4830 echo $ac_n "(cached) $ac_c" 1>&6 | 4855 echo $ac_n "(cached) $ac_c" 1>&6 |
4831 else | 4856 else |
4832 if test "$cross_compiling" = yes; then | 4857 if test "$cross_compiling" = yes; then |
4833 ac_cv_c_stack_direction=0 | 4858 ac_cv_c_stack_direction=0 |
4834 else | 4859 else |
4835 cat > conftest.$ac_ext <<EOF | 4860 cat > conftest.$ac_ext <<EOF |
4836 #line 4837 "configure" | 4861 #line 4862 "configure" |
4837 #include "confdefs.h" | 4862 #include "confdefs.h" |
4838 find_stack_direction () | 4863 find_stack_direction () |
4839 { | 4864 { |
4840 static char *addr = 0; | 4865 static char *addr = 0; |
4841 auto char dummy; | 4866 auto char dummy; |
4850 main () | 4875 main () |
4851 { | 4876 { |
4852 exit (find_stack_direction() < 0); | 4877 exit (find_stack_direction() < 0); |
4853 } | 4878 } |
4854 EOF | 4879 EOF |
4855 if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 4880 if { (eval echo configure:4881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4856 then | 4881 then |
4857 ac_cv_c_stack_direction=1 | 4882 ac_cv_c_stack_direction=1 |
4858 else | 4883 else |
4859 echo "configure: failed program was:" >&5 | 4884 echo "configure: failed program was:" >&5 |
4860 cat conftest.$ac_ext >&5 | 4885 cat conftest.$ac_ext >&5 |
4875 | 4900 |
4876 | 4901 |
4877 # fmod, logb, and frexp are found in -lm on most systems. | 4902 # fmod, logb, and frexp are found in -lm on most systems. |
4878 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 4903 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
4879 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | 4904 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
4880 echo "configure:4881: checking for sqrt in -lm" >&5 | 4905 echo "configure:4906: checking for sqrt in -lm" >&5 |
4881 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` | 4906 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
4882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4883 echo $ac_n "(cached) $ac_c" 1>&6 | 4908 echo $ac_n "(cached) $ac_c" 1>&6 |
4884 else | 4909 else |
4885 ac_save_LIBS="$LIBS" | 4910 ac_save_LIBS="$LIBS" |
4886 LIBS="-lm $LIBS" | 4911 LIBS="-lm $LIBS" |
4887 cat > conftest.$ac_ext <<EOF | 4912 cat > conftest.$ac_ext <<EOF |
4888 #line 4889 "configure" | 4913 #line 4914 "configure" |
4889 #include "confdefs.h" | 4914 #include "confdefs.h" |
4890 /* Override any gcc2 internal prototype to avoid an error. */ | 4915 /* Override any gcc2 internal prototype to avoid an error. */ |
4891 /* We use char because int might match the return type of a gcc2 | 4916 /* We use char because int might match the return type of a gcc2 |
4892 builtin and then its argument prototype would still apply. */ | 4917 builtin and then its argument prototype would still apply. */ |
4893 char sqrt(); | 4918 char sqrt(); |
4894 | 4919 |
4895 int main() { | 4920 int main() { |
4896 sqrt() | 4921 sqrt() |
4897 ; return 0; } | 4922 ; return 0; } |
4898 EOF | 4923 EOF |
4899 if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4924 if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4900 rm -rf conftest* | 4925 rm -rf conftest* |
4901 eval "ac_cv_lib_$ac_lib_var=yes" | 4926 eval "ac_cv_lib_$ac_lib_var=yes" |
4902 else | 4927 else |
4903 echo "configure: failed program was:" >&5 | 4928 echo "configure: failed program was:" >&5 |
4904 cat conftest.$ac_ext >&5 | 4929 cat conftest.$ac_ext >&5 |
4924 fi | 4949 fi |
4925 | 4950 |
4926 | 4951 |
4927 # Check for mail-locking functions in a "mail" library | 4952 # Check for mail-locking functions in a "mail" library |
4928 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | 4953 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 |
4929 echo "configure:4930: checking for maillock in -lmail" >&5 | 4954 echo "configure:4955: checking for maillock in -lmail" >&5 |
4930 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` | 4955 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
4931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4932 echo $ac_n "(cached) $ac_c" 1>&6 | 4957 echo $ac_n "(cached) $ac_c" 1>&6 |
4933 else | 4958 else |
4934 ac_save_LIBS="$LIBS" | 4959 ac_save_LIBS="$LIBS" |
4935 LIBS="-lmail $LIBS" | 4960 LIBS="-lmail $LIBS" |
4936 cat > conftest.$ac_ext <<EOF | 4961 cat > conftest.$ac_ext <<EOF |
4937 #line 4938 "configure" | 4962 #line 4963 "configure" |
4938 #include "confdefs.h" | 4963 #include "confdefs.h" |
4939 /* Override any gcc2 internal prototype to avoid an error. */ | 4964 /* Override any gcc2 internal prototype to avoid an error. */ |
4940 /* We use char because int might match the return type of a gcc2 | 4965 /* We use char because int might match the return type of a gcc2 |
4941 builtin and then its argument prototype would still apply. */ | 4966 builtin and then its argument prototype would still apply. */ |
4942 char maillock(); | 4967 char maillock(); |
4943 | 4968 |
4944 int main() { | 4969 int main() { |
4945 maillock() | 4970 maillock() |
4946 ; return 0; } | 4971 ; return 0; } |
4947 EOF | 4972 EOF |
4948 if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4949 rm -rf conftest* | 4974 rm -rf conftest* |
4950 eval "ac_cv_lib_$ac_lib_var=yes" | 4975 eval "ac_cv_lib_$ac_lib_var=yes" |
4951 else | 4976 else |
4952 echo "configure: failed program was:" >&5 | 4977 echo "configure: failed program was:" >&5 |
4953 cat conftest.$ac_ext >&5 | 4978 cat conftest.$ac_ext >&5 |
4971 else | 4996 else |
4972 echo "$ac_t""no" 1>&6 | 4997 echo "$ac_t""no" 1>&6 |
4973 fi | 4998 fi |
4974 | 4999 |
4975 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | 5000 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 |
4976 echo "configure:4977: checking for maillock in -llockfile" >&5 | 5001 echo "configure:5002: checking for maillock in -llockfile" >&5 |
4977 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` | 5002 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
4978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4979 echo $ac_n "(cached) $ac_c" 1>&6 | 5004 echo $ac_n "(cached) $ac_c" 1>&6 |
4980 else | 5005 else |
4981 ac_save_LIBS="$LIBS" | 5006 ac_save_LIBS="$LIBS" |
4982 LIBS="-llockfile $LIBS" | 5007 LIBS="-llockfile $LIBS" |
4983 cat > conftest.$ac_ext <<EOF | 5008 cat > conftest.$ac_ext <<EOF |
4984 #line 4985 "configure" | 5009 #line 5010 "configure" |
4985 #include "confdefs.h" | 5010 #include "confdefs.h" |
4986 /* Override any gcc2 internal prototype to avoid an error. */ | 5011 /* Override any gcc2 internal prototype to avoid an error. */ |
4987 /* We use char because int might match the return type of a gcc2 | 5012 /* We use char because int might match the return type of a gcc2 |
4988 builtin and then its argument prototype would still apply. */ | 5013 builtin and then its argument prototype would still apply. */ |
4989 char maillock(); | 5014 char maillock(); |
4990 | 5015 |
4991 int main() { | 5016 int main() { |
4992 maillock() | 5017 maillock() |
4993 ; return 0; } | 5018 ; return 0; } |
4994 EOF | 5019 EOF |
4995 if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5020 if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4996 rm -rf conftest* | 5021 rm -rf conftest* |
4997 eval "ac_cv_lib_$ac_lib_var=yes" | 5022 eval "ac_cv_lib_$ac_lib_var=yes" |
4998 else | 5023 else |
4999 echo "configure: failed program was:" >&5 | 5024 echo "configure: failed program was:" >&5 |
5000 cat conftest.$ac_ext >&5 | 5025 cat conftest.$ac_ext >&5 |
5024 # (no liblockfile.a installed), ensure that we don't need to. | 5049 # (no liblockfile.a installed), ensure that we don't need to. |
5025 if test "$ac_cv_lib_lockfile_maillock" = no; then | 5050 if test "$ac_cv_lib_lockfile_maillock" = no; then |
5026 # Extract the first word of "liblockfile.so", so it can be a program name with args. | 5051 # Extract the first word of "liblockfile.so", so it can be a program name with args. |
5027 set dummy liblockfile.so; ac_word=$2 | 5052 set dummy liblockfile.so; ac_word=$2 |
5028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 5053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5029 echo "configure:5030: checking for $ac_word" >&5 | 5054 echo "configure:5055: checking for $ac_word" >&5 |
5030 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then | 5055 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5031 echo $ac_n "(cached) $ac_c" 1>&6 | 5056 echo $ac_n "(cached) $ac_c" 1>&6 |
5032 else | 5057 else |
5033 if test -n "$liblockfile"; then | 5058 if test -n "$liblockfile"; then |
5034 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | 5059 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
5065 else : | 5090 else : |
5066 fi | 5091 fi |
5067 for ac_func in touchlock | 5092 for ac_func in touchlock |
5068 do | 5093 do |
5069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5070 echo "configure:5071: checking for $ac_func" >&5 | 5095 echo "configure:5096: checking for $ac_func" >&5 |
5071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5072 echo $ac_n "(cached) $ac_c" 1>&6 | 5097 echo $ac_n "(cached) $ac_c" 1>&6 |
5073 else | 5098 else |
5074 cat > conftest.$ac_ext <<EOF | 5099 cat > conftest.$ac_ext <<EOF |
5075 #line 5076 "configure" | 5100 #line 5101 "configure" |
5076 #include "confdefs.h" | 5101 #include "confdefs.h" |
5077 /* System header to define __stub macros and hopefully few prototypes, | 5102 /* System header to define __stub macros and hopefully few prototypes, |
5078 which can conflict with char $ac_func(); below. */ | 5103 which can conflict with char $ac_func(); below. */ |
5079 #include <assert.h> | 5104 #include <assert.h> |
5080 /* Override any gcc2 internal prototype to avoid an error. */ | 5105 /* Override any gcc2 internal prototype to avoid an error. */ |
5093 $ac_func(); | 5118 $ac_func(); |
5094 #endif | 5119 #endif |
5095 | 5120 |
5096 ; return 0; } | 5121 ; return 0; } |
5097 EOF | 5122 EOF |
5098 if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5123 if { (eval echo configure:5124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5099 rm -rf conftest* | 5124 rm -rf conftest* |
5100 eval "ac_cv_func_$ac_func=yes" | 5125 eval "ac_cv_func_$ac_func=yes" |
5101 else | 5126 else |
5102 echo "configure: failed program was:" >&5 | 5127 echo "configure: failed program was:" >&5 |
5103 cat conftest.$ac_ext >&5 | 5128 cat conftest.$ac_ext >&5 |
5121 | 5146 |
5122 for ac_hdr in maillock.h | 5147 for ac_hdr in maillock.h |
5123 do | 5148 do |
5124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5126 echo "configure:5127: checking for $ac_hdr" >&5 | 5151 echo "configure:5152: checking for $ac_hdr" >&5 |
5127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5128 echo $ac_n "(cached) $ac_c" 1>&6 | 5153 echo $ac_n "(cached) $ac_c" 1>&6 |
5129 else | 5154 else |
5130 cat > conftest.$ac_ext <<EOF | 5155 cat > conftest.$ac_ext <<EOF |
5131 #line 5132 "configure" | 5156 #line 5157 "configure" |
5132 #include "confdefs.h" | 5157 #include "confdefs.h" |
5133 #include <$ac_hdr> | 5158 #include <$ac_hdr> |
5134 EOF | 5159 EOF |
5135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5136 { (eval echo configure:5137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5161 { (eval echo configure:5162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5138 if test -z "$ac_err"; then | 5163 if test -z "$ac_err"; then |
5139 rm -rf conftest* | 5164 rm -rf conftest* |
5140 eval "ac_cv_header_$ac_safe=yes" | 5165 eval "ac_cv_header_$ac_safe=yes" |
5141 else | 5166 else |
5166 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | 5191 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
5167 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ | 5192 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ |
5168 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm | 5193 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm |
5169 do | 5194 do |
5170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5171 echo "configure:5172: checking for $ac_func" >&5 | 5196 echo "configure:5197: checking for $ac_func" >&5 |
5172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5173 echo $ac_n "(cached) $ac_c" 1>&6 | 5198 echo $ac_n "(cached) $ac_c" 1>&6 |
5174 else | 5199 else |
5175 cat > conftest.$ac_ext <<EOF | 5200 cat > conftest.$ac_ext <<EOF |
5176 #line 5177 "configure" | 5201 #line 5202 "configure" |
5177 #include "confdefs.h" | 5202 #include "confdefs.h" |
5178 /* System header to define __stub macros and hopefully few prototypes, | 5203 /* System header to define __stub macros and hopefully few prototypes, |
5179 which can conflict with char $ac_func(); below. */ | 5204 which can conflict with char $ac_func(); below. */ |
5180 #include <assert.h> | 5205 #include <assert.h> |
5181 /* Override any gcc2 internal prototype to avoid an error. */ | 5206 /* Override any gcc2 internal prototype to avoid an error. */ |
5194 $ac_func(); | 5219 $ac_func(); |
5195 #endif | 5220 #endif |
5196 | 5221 |
5197 ; return 0; } | 5222 ; return 0; } |
5198 EOF | 5223 EOF |
5199 if { (eval echo configure:5200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5224 if { (eval echo configure:5225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5200 rm -rf conftest* | 5225 rm -rf conftest* |
5201 eval "ac_cv_func_$ac_func=yes" | 5226 eval "ac_cv_func_$ac_func=yes" |
5202 else | 5227 else |
5203 echo "configure: failed program was:" >&5 | 5228 echo "configure: failed program was:" >&5 |
5204 cat conftest.$ac_ext >&5 | 5229 cat conftest.$ac_ext >&5 |
5224 # Check this now, so that we will NOT find the above functions in ncurses. | 5249 # Check this now, so that we will NOT find the above functions in ncurses. |
5225 # That is because we have not set up to link ncurses in lib-src. | 5250 # That is because we have not set up to link ncurses in lib-src. |
5226 # It's better to believe a function is not available | 5251 # It's better to believe a function is not available |
5227 # than to expect to find it in ncurses. | 5252 # than to expect to find it in ncurses. |
5228 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | 5253 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 |
5229 echo "configure:5230: checking for tparm in -lncurses" >&5 | 5254 echo "configure:5255: checking for tparm in -lncurses" >&5 |
5230 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` | 5255 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
5231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5232 echo $ac_n "(cached) $ac_c" 1>&6 | 5257 echo $ac_n "(cached) $ac_c" 1>&6 |
5233 else | 5258 else |
5234 ac_save_LIBS="$LIBS" | 5259 ac_save_LIBS="$LIBS" |
5235 LIBS="-lncurses $LIBS" | 5260 LIBS="-lncurses $LIBS" |
5236 cat > conftest.$ac_ext <<EOF | 5261 cat > conftest.$ac_ext <<EOF |
5237 #line 5238 "configure" | 5262 #line 5263 "configure" |
5238 #include "confdefs.h" | 5263 #include "confdefs.h" |
5239 /* Override any gcc2 internal prototype to avoid an error. */ | 5264 /* Override any gcc2 internal prototype to avoid an error. */ |
5240 /* We use char because int might match the return type of a gcc2 | 5265 /* We use char because int might match the return type of a gcc2 |
5241 builtin and then its argument prototype would still apply. */ | 5266 builtin and then its argument prototype would still apply. */ |
5242 char tparm(); | 5267 char tparm(); |
5243 | 5268 |
5244 int main() { | 5269 int main() { |
5245 tparm() | 5270 tparm() |
5246 ; return 0; } | 5271 ; return 0; } |
5247 EOF | 5272 EOF |
5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5273 if { (eval echo configure:5274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5249 rm -rf conftest* | 5274 rm -rf conftest* |
5250 eval "ac_cv_lib_$ac_lib_var=yes" | 5275 eval "ac_cv_lib_$ac_lib_var=yes" |
5251 else | 5276 else |
5252 echo "configure: failed program was:" >&5 | 5277 echo "configure: failed program was:" >&5 |
5253 cat conftest.$ac_ext >&5 | 5278 cat conftest.$ac_ext >&5 |
5274 | 5299 |
5275 | 5300 |
5276 # These tell us which Kerberos-related libraries to use. | 5301 # These tell us which Kerberos-related libraries to use. |
5277 if test "${with_kerberos+set}" = set; then | 5302 if test "${with_kerberos+set}" = set; then |
5278 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 | 5303 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
5279 echo "configure:5280: checking for com_err in -lcom_err" >&5 | 5304 echo "configure:5305: checking for com_err in -lcom_err" >&5 |
5280 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` | 5305 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` |
5281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5282 echo $ac_n "(cached) $ac_c" 1>&6 | 5307 echo $ac_n "(cached) $ac_c" 1>&6 |
5283 else | 5308 else |
5284 ac_save_LIBS="$LIBS" | 5309 ac_save_LIBS="$LIBS" |
5285 LIBS="-lcom_err $LIBS" | 5310 LIBS="-lcom_err $LIBS" |
5286 cat > conftest.$ac_ext <<EOF | 5311 cat > conftest.$ac_ext <<EOF |
5287 #line 5288 "configure" | 5312 #line 5313 "configure" |
5288 #include "confdefs.h" | 5313 #include "confdefs.h" |
5289 /* Override any gcc2 internal prototype to avoid an error. */ | 5314 /* Override any gcc2 internal prototype to avoid an error. */ |
5290 /* We use char because int might match the return type of a gcc2 | 5315 /* We use char because int might match the return type of a gcc2 |
5291 builtin and then its argument prototype would still apply. */ | 5316 builtin and then its argument prototype would still apply. */ |
5292 char com_err(); | 5317 char com_err(); |
5293 | 5318 |
5294 int main() { | 5319 int main() { |
5295 com_err() | 5320 com_err() |
5296 ; return 0; } | 5321 ; return 0; } |
5297 EOF | 5322 EOF |
5298 if { (eval echo configure:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5323 if { (eval echo configure:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5299 rm -rf conftest* | 5324 rm -rf conftest* |
5300 eval "ac_cv_lib_$ac_lib_var=yes" | 5325 eval "ac_cv_lib_$ac_lib_var=yes" |
5301 else | 5326 else |
5302 echo "configure: failed program was:" >&5 | 5327 echo "configure: failed program was:" >&5 |
5303 cat conftest.$ac_ext >&5 | 5328 cat conftest.$ac_ext >&5 |
5321 else | 5346 else |
5322 echo "$ac_t""no" 1>&6 | 5347 echo "$ac_t""no" 1>&6 |
5323 fi | 5348 fi |
5324 | 5349 |
5325 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 | 5350 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
5326 echo "configure:5327: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | 5351 echo "configure:5352: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
5327 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 5352 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
5328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5329 echo $ac_n "(cached) $ac_c" 1>&6 | 5354 echo $ac_n "(cached) $ac_c" 1>&6 |
5330 else | 5355 else |
5331 ac_save_LIBS="$LIBS" | 5356 ac_save_LIBS="$LIBS" |
5332 LIBS="-lk5crypto $LIBS" | 5357 LIBS="-lk5crypto $LIBS" |
5333 cat > conftest.$ac_ext <<EOF | 5358 cat > conftest.$ac_ext <<EOF |
5334 #line 5335 "configure" | 5359 #line 5360 "configure" |
5335 #include "confdefs.h" | 5360 #include "confdefs.h" |
5336 /* Override any gcc2 internal prototype to avoid an error. */ | 5361 /* Override any gcc2 internal prototype to avoid an error. */ |
5337 /* We use char because int might match the return type of a gcc2 | 5362 /* We use char because int might match the return type of a gcc2 |
5338 builtin and then its argument prototype would still apply. */ | 5363 builtin and then its argument prototype would still apply. */ |
5339 char mit_des_cbc_encrypt(); | 5364 char mit_des_cbc_encrypt(); |
5340 | 5365 |
5341 int main() { | 5366 int main() { |
5342 mit_des_cbc_encrypt() | 5367 mit_des_cbc_encrypt() |
5343 ; return 0; } | 5368 ; return 0; } |
5344 EOF | 5369 EOF |
5345 if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5370 if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5346 rm -rf conftest* | 5371 rm -rf conftest* |
5347 eval "ac_cv_lib_$ac_lib_var=yes" | 5372 eval "ac_cv_lib_$ac_lib_var=yes" |
5348 else | 5373 else |
5349 echo "configure: failed program was:" >&5 | 5374 echo "configure: failed program was:" >&5 |
5350 cat conftest.$ac_ext >&5 | 5375 cat conftest.$ac_ext >&5 |
5368 else | 5393 else |
5369 echo "$ac_t""no" 1>&6 | 5394 echo "$ac_t""no" 1>&6 |
5370 fi | 5395 fi |
5371 | 5396 |
5372 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 | 5397 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
5373 echo "configure:5374: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | 5398 echo "configure:5399: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
5374 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 5399 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
5375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5376 echo $ac_n "(cached) $ac_c" 1>&6 | 5401 echo $ac_n "(cached) $ac_c" 1>&6 |
5377 else | 5402 else |
5378 ac_save_LIBS="$LIBS" | 5403 ac_save_LIBS="$LIBS" |
5379 LIBS="-lcrypto $LIBS" | 5404 LIBS="-lcrypto $LIBS" |
5380 cat > conftest.$ac_ext <<EOF | 5405 cat > conftest.$ac_ext <<EOF |
5381 #line 5382 "configure" | 5406 #line 5407 "configure" |
5382 #include "confdefs.h" | 5407 #include "confdefs.h" |
5383 /* Override any gcc2 internal prototype to avoid an error. */ | 5408 /* Override any gcc2 internal prototype to avoid an error. */ |
5384 /* We use char because int might match the return type of a gcc2 | 5409 /* We use char because int might match the return type of a gcc2 |
5385 builtin and then its argument prototype would still apply. */ | 5410 builtin and then its argument prototype would still apply. */ |
5386 char mit_des_cbc_encrypt(); | 5411 char mit_des_cbc_encrypt(); |
5387 | 5412 |
5388 int main() { | 5413 int main() { |
5389 mit_des_cbc_encrypt() | 5414 mit_des_cbc_encrypt() |
5390 ; return 0; } | 5415 ; return 0; } |
5391 EOF | 5416 EOF |
5392 if { (eval echo configure:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5417 if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5393 rm -rf conftest* | 5418 rm -rf conftest* |
5394 eval "ac_cv_lib_$ac_lib_var=yes" | 5419 eval "ac_cv_lib_$ac_lib_var=yes" |
5395 else | 5420 else |
5396 echo "configure: failed program was:" >&5 | 5421 echo "configure: failed program was:" >&5 |
5397 cat conftest.$ac_ext >&5 | 5422 cat conftest.$ac_ext >&5 |
5415 else | 5440 else |
5416 echo "$ac_t""no" 1>&6 | 5441 echo "$ac_t""no" 1>&6 |
5417 fi | 5442 fi |
5418 | 5443 |
5419 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 | 5444 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
5420 echo "configure:5421: checking for krb5_init_context in -lkrb5" >&5 | 5445 echo "configure:5446: checking for krb5_init_context in -lkrb5" >&5 |
5421 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` | 5446 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` |
5422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5423 echo $ac_n "(cached) $ac_c" 1>&6 | 5448 echo $ac_n "(cached) $ac_c" 1>&6 |
5424 else | 5449 else |
5425 ac_save_LIBS="$LIBS" | 5450 ac_save_LIBS="$LIBS" |
5426 LIBS="-lkrb5 $LIBS" | 5451 LIBS="-lkrb5 $LIBS" |
5427 cat > conftest.$ac_ext <<EOF | 5452 cat > conftest.$ac_ext <<EOF |
5428 #line 5429 "configure" | 5453 #line 5454 "configure" |
5429 #include "confdefs.h" | 5454 #include "confdefs.h" |
5430 /* Override any gcc2 internal prototype to avoid an error. */ | 5455 /* Override any gcc2 internal prototype to avoid an error. */ |
5431 /* We use char because int might match the return type of a gcc2 | 5456 /* We use char because int might match the return type of a gcc2 |
5432 builtin and then its argument prototype would still apply. */ | 5457 builtin and then its argument prototype would still apply. */ |
5433 char krb5_init_context(); | 5458 char krb5_init_context(); |
5434 | 5459 |
5435 int main() { | 5460 int main() { |
5436 krb5_init_context() | 5461 krb5_init_context() |
5437 ; return 0; } | 5462 ; return 0; } |
5438 EOF | 5463 EOF |
5439 if { (eval echo configure:5440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5440 rm -rf conftest* | 5465 rm -rf conftest* |
5441 eval "ac_cv_lib_$ac_lib_var=yes" | 5466 eval "ac_cv_lib_$ac_lib_var=yes" |
5442 else | 5467 else |
5443 echo "configure: failed program was:" >&5 | 5468 echo "configure: failed program was:" >&5 |
5444 cat conftest.$ac_ext >&5 | 5469 cat conftest.$ac_ext >&5 |
5463 echo "$ac_t""no" 1>&6 | 5488 echo "$ac_t""no" 1>&6 |
5464 fi | 5489 fi |
5465 | 5490 |
5466 if test "${with_kerberos5+set}" != set; then | 5491 if test "${with_kerberos5+set}" != set; then |
5467 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 | 5492 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
5468 echo "configure:5469: checking for des_cbc_encrypt in -ldes425" >&5 | 5493 echo "configure:5494: checking for des_cbc_encrypt in -ldes425" >&5 |
5469 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 5494 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
5470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5471 echo $ac_n "(cached) $ac_c" 1>&6 | 5496 echo $ac_n "(cached) $ac_c" 1>&6 |
5472 else | 5497 else |
5473 ac_save_LIBS="$LIBS" | 5498 ac_save_LIBS="$LIBS" |
5474 LIBS="-ldes425 $LIBS" | 5499 LIBS="-ldes425 $LIBS" |
5475 cat > conftest.$ac_ext <<EOF | 5500 cat > conftest.$ac_ext <<EOF |
5476 #line 5477 "configure" | 5501 #line 5502 "configure" |
5477 #include "confdefs.h" | 5502 #include "confdefs.h" |
5478 /* Override any gcc2 internal prototype to avoid an error. */ | 5503 /* Override any gcc2 internal prototype to avoid an error. */ |
5479 /* We use char because int might match the return type of a gcc2 | 5504 /* We use char because int might match the return type of a gcc2 |
5480 builtin and then its argument prototype would still apply. */ | 5505 builtin and then its argument prototype would still apply. */ |
5481 char des_cbc_encrypt(); | 5506 char des_cbc_encrypt(); |
5482 | 5507 |
5483 int main() { | 5508 int main() { |
5484 des_cbc_encrypt() | 5509 des_cbc_encrypt() |
5485 ; return 0; } | 5510 ; return 0; } |
5486 EOF | 5511 EOF |
5487 if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5488 rm -rf conftest* | 5513 rm -rf conftest* |
5489 eval "ac_cv_lib_$ac_lib_var=yes" | 5514 eval "ac_cv_lib_$ac_lib_var=yes" |
5490 else | 5515 else |
5491 echo "configure: failed program was:" >&5 | 5516 echo "configure: failed program was:" >&5 |
5492 cat conftest.$ac_ext >&5 | 5517 cat conftest.$ac_ext >&5 |
5508 LIBS="-ldes425 $LIBS" | 5533 LIBS="-ldes425 $LIBS" |
5509 | 5534 |
5510 else | 5535 else |
5511 echo "$ac_t""no" 1>&6 | 5536 echo "$ac_t""no" 1>&6 |
5512 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 | 5537 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
5513 echo "configure:5514: checking for des_cbc_encrypt in -ldes" >&5 | 5538 echo "configure:5539: checking for des_cbc_encrypt in -ldes" >&5 |
5514 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 5539 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
5515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5516 echo $ac_n "(cached) $ac_c" 1>&6 | 5541 echo $ac_n "(cached) $ac_c" 1>&6 |
5517 else | 5542 else |
5518 ac_save_LIBS="$LIBS" | 5543 ac_save_LIBS="$LIBS" |
5519 LIBS="-ldes $LIBS" | 5544 LIBS="-ldes $LIBS" |
5520 cat > conftest.$ac_ext <<EOF | 5545 cat > conftest.$ac_ext <<EOF |
5521 #line 5522 "configure" | 5546 #line 5547 "configure" |
5522 #include "confdefs.h" | 5547 #include "confdefs.h" |
5523 /* Override any gcc2 internal prototype to avoid an error. */ | 5548 /* Override any gcc2 internal prototype to avoid an error. */ |
5524 /* We use char because int might match the return type of a gcc2 | 5549 /* We use char because int might match the return type of a gcc2 |
5525 builtin and then its argument prototype would still apply. */ | 5550 builtin and then its argument prototype would still apply. */ |
5526 char des_cbc_encrypt(); | 5551 char des_cbc_encrypt(); |
5527 | 5552 |
5528 int main() { | 5553 int main() { |
5529 des_cbc_encrypt() | 5554 des_cbc_encrypt() |
5530 ; return 0; } | 5555 ; return 0; } |
5531 EOF | 5556 EOF |
5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5557 if { (eval echo configure:5558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5533 rm -rf conftest* | 5558 rm -rf conftest* |
5534 eval "ac_cv_lib_$ac_lib_var=yes" | 5559 eval "ac_cv_lib_$ac_lib_var=yes" |
5535 else | 5560 else |
5536 echo "configure: failed program was:" >&5 | 5561 echo "configure: failed program was:" >&5 |
5537 cat conftest.$ac_ext >&5 | 5562 cat conftest.$ac_ext >&5 |
5557 fi | 5582 fi |
5558 | 5583 |
5559 fi | 5584 fi |
5560 | 5585 |
5561 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 | 5586 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
5562 echo "configure:5563: checking for krb_get_cred in -lkrb4" >&5 | 5587 echo "configure:5588: checking for krb_get_cred in -lkrb4" >&5 |
5563 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` | 5588 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` |
5564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5565 echo $ac_n "(cached) $ac_c" 1>&6 | 5590 echo $ac_n "(cached) $ac_c" 1>&6 |
5566 else | 5591 else |
5567 ac_save_LIBS="$LIBS" | 5592 ac_save_LIBS="$LIBS" |
5568 LIBS="-lkrb4 $LIBS" | 5593 LIBS="-lkrb4 $LIBS" |
5569 cat > conftest.$ac_ext <<EOF | 5594 cat > conftest.$ac_ext <<EOF |
5570 #line 5571 "configure" | 5595 #line 5596 "configure" |
5571 #include "confdefs.h" | 5596 #include "confdefs.h" |
5572 /* Override any gcc2 internal prototype to avoid an error. */ | 5597 /* Override any gcc2 internal prototype to avoid an error. */ |
5573 /* We use char because int might match the return type of a gcc2 | 5598 /* We use char because int might match the return type of a gcc2 |
5574 builtin and then its argument prototype would still apply. */ | 5599 builtin and then its argument prototype would still apply. */ |
5575 char krb_get_cred(); | 5600 char krb_get_cred(); |
5576 | 5601 |
5577 int main() { | 5602 int main() { |
5578 krb_get_cred() | 5603 krb_get_cred() |
5579 ; return 0; } | 5604 ; return 0; } |
5580 EOF | 5605 EOF |
5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5606 if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5582 rm -rf conftest* | 5607 rm -rf conftest* |
5583 eval "ac_cv_lib_$ac_lib_var=yes" | 5608 eval "ac_cv_lib_$ac_lib_var=yes" |
5584 else | 5609 else |
5585 echo "configure: failed program was:" >&5 | 5610 echo "configure: failed program was:" >&5 |
5586 cat conftest.$ac_ext >&5 | 5611 cat conftest.$ac_ext >&5 |
5602 LIBS="-lkrb4 $LIBS" | 5627 LIBS="-lkrb4 $LIBS" |
5603 | 5628 |
5604 else | 5629 else |
5605 echo "$ac_t""no" 1>&6 | 5630 echo "$ac_t""no" 1>&6 |
5606 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 | 5631 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
5607 echo "configure:5608: checking for krb_get_cred in -lkrb" >&5 | 5632 echo "configure:5633: checking for krb_get_cred in -lkrb" >&5 |
5608 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` | 5633 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` |
5609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5610 echo $ac_n "(cached) $ac_c" 1>&6 | 5635 echo $ac_n "(cached) $ac_c" 1>&6 |
5611 else | 5636 else |
5612 ac_save_LIBS="$LIBS" | 5637 ac_save_LIBS="$LIBS" |
5613 LIBS="-lkrb $LIBS" | 5638 LIBS="-lkrb $LIBS" |
5614 cat > conftest.$ac_ext <<EOF | 5639 cat > conftest.$ac_ext <<EOF |
5615 #line 5616 "configure" | 5640 #line 5641 "configure" |
5616 #include "confdefs.h" | 5641 #include "confdefs.h" |
5617 /* Override any gcc2 internal prototype to avoid an error. */ | 5642 /* Override any gcc2 internal prototype to avoid an error. */ |
5618 /* We use char because int might match the return type of a gcc2 | 5643 /* We use char because int might match the return type of a gcc2 |
5619 builtin and then its argument prototype would still apply. */ | 5644 builtin and then its argument prototype would still apply. */ |
5620 char krb_get_cred(); | 5645 char krb_get_cred(); |
5621 | 5646 |
5622 int main() { | 5647 int main() { |
5623 krb_get_cred() | 5648 krb_get_cred() |
5624 ; return 0; } | 5649 ; return 0; } |
5625 EOF | 5650 EOF |
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5651 if { (eval echo configure:5652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5627 rm -rf conftest* | 5652 rm -rf conftest* |
5628 eval "ac_cv_lib_$ac_lib_var=yes" | 5653 eval "ac_cv_lib_$ac_lib_var=yes" |
5629 else | 5654 else |
5630 echo "configure: failed program was:" >&5 | 5655 echo "configure: failed program was:" >&5 |
5631 cat conftest.$ac_ext >&5 | 5656 cat conftest.$ac_ext >&5 |
5657 if test "${with_kerberos5+set}" = set; then | 5682 if test "${with_kerberos5+set}" = set; then |
5658 for ac_hdr in krb5.h | 5683 for ac_hdr in krb5.h |
5659 do | 5684 do |
5660 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5661 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5662 echo "configure:5663: checking for $ac_hdr" >&5 | 5687 echo "configure:5688: checking for $ac_hdr" >&5 |
5663 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5664 echo $ac_n "(cached) $ac_c" 1>&6 | 5689 echo $ac_n "(cached) $ac_c" 1>&6 |
5665 else | 5690 else |
5666 cat > conftest.$ac_ext <<EOF | 5691 cat > conftest.$ac_ext <<EOF |
5667 #line 5668 "configure" | 5692 #line 5693 "configure" |
5668 #include "confdefs.h" | 5693 #include "confdefs.h" |
5669 #include <$ac_hdr> | 5694 #include <$ac_hdr> |
5670 EOF | 5695 EOF |
5671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5672 { (eval echo configure:5673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5697 { (eval echo configure:5698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5674 if test -z "$ac_err"; then | 5699 if test -z "$ac_err"; then |
5675 rm -rf conftest* | 5700 rm -rf conftest* |
5676 eval "ac_cv_header_$ac_safe=yes" | 5701 eval "ac_cv_header_$ac_safe=yes" |
5677 else | 5702 else |
5698 else | 5723 else |
5699 for ac_hdr in des.h | 5724 for ac_hdr in des.h |
5700 do | 5725 do |
5701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5726 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5727 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5703 echo "configure:5704: checking for $ac_hdr" >&5 | 5728 echo "configure:5729: checking for $ac_hdr" >&5 |
5704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5705 echo $ac_n "(cached) $ac_c" 1>&6 | 5730 echo $ac_n "(cached) $ac_c" 1>&6 |
5706 else | 5731 else |
5707 cat > conftest.$ac_ext <<EOF | 5732 cat > conftest.$ac_ext <<EOF |
5708 #line 5709 "configure" | 5733 #line 5734 "configure" |
5709 #include "confdefs.h" | 5734 #include "confdefs.h" |
5710 #include <$ac_hdr> | 5735 #include <$ac_hdr> |
5711 EOF | 5736 EOF |
5712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5713 { (eval echo configure:5714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5738 { (eval echo configure:5739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5715 if test -z "$ac_err"; then | 5740 if test -z "$ac_err"; then |
5716 rm -rf conftest* | 5741 rm -rf conftest* |
5717 eval "ac_cv_header_$ac_safe=yes" | 5742 eval "ac_cv_header_$ac_safe=yes" |
5718 else | 5743 else |
5735 echo "$ac_t""no" 1>&6 | 5760 echo "$ac_t""no" 1>&6 |
5736 for ac_hdr in kerberosIV/des.h | 5761 for ac_hdr in kerberosIV/des.h |
5737 do | 5762 do |
5738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5740 echo "configure:5741: checking for $ac_hdr" >&5 | 5765 echo "configure:5766: checking for $ac_hdr" >&5 |
5741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5742 echo $ac_n "(cached) $ac_c" 1>&6 | 5767 echo $ac_n "(cached) $ac_c" 1>&6 |
5743 else | 5768 else |
5744 cat > conftest.$ac_ext <<EOF | 5769 cat > conftest.$ac_ext <<EOF |
5745 #line 5746 "configure" | 5770 #line 5771 "configure" |
5746 #include "confdefs.h" | 5771 #include "confdefs.h" |
5747 #include <$ac_hdr> | 5772 #include <$ac_hdr> |
5748 EOF | 5773 EOF |
5749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5750 { (eval echo configure:5751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5775 { (eval echo configure:5776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5752 if test -z "$ac_err"; then | 5777 if test -z "$ac_err"; then |
5753 rm -rf conftest* | 5778 rm -rf conftest* |
5754 eval "ac_cv_header_$ac_safe=yes" | 5779 eval "ac_cv_header_$ac_safe=yes" |
5755 else | 5780 else |
5772 echo "$ac_t""no" 1>&6 | 5797 echo "$ac_t""no" 1>&6 |
5773 for ac_hdr in kerberos/des.h | 5798 for ac_hdr in kerberos/des.h |
5774 do | 5799 do |
5775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5800 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5801 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5777 echo "configure:5778: checking for $ac_hdr" >&5 | 5802 echo "configure:5803: checking for $ac_hdr" >&5 |
5778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5803 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5779 echo $ac_n "(cached) $ac_c" 1>&6 | 5804 echo $ac_n "(cached) $ac_c" 1>&6 |
5780 else | 5805 else |
5781 cat > conftest.$ac_ext <<EOF | 5806 cat > conftest.$ac_ext <<EOF |
5782 #line 5783 "configure" | 5807 #line 5808 "configure" |
5783 #include "confdefs.h" | 5808 #include "confdefs.h" |
5784 #include <$ac_hdr> | 5809 #include <$ac_hdr> |
5785 EOF | 5810 EOF |
5786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5787 { (eval echo configure:5788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5812 { (eval echo configure:5813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5789 if test -z "$ac_err"; then | 5814 if test -z "$ac_err"; then |
5790 rm -rf conftest* | 5815 rm -rf conftest* |
5791 eval "ac_cv_header_$ac_safe=yes" | 5816 eval "ac_cv_header_$ac_safe=yes" |
5792 else | 5817 else |
5818 | 5843 |
5819 for ac_hdr in krb.h | 5844 for ac_hdr in krb.h |
5820 do | 5845 do |
5821 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5823 echo "configure:5824: checking for $ac_hdr" >&5 | 5848 echo "configure:5849: checking for $ac_hdr" >&5 |
5824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5825 echo $ac_n "(cached) $ac_c" 1>&6 | 5850 echo $ac_n "(cached) $ac_c" 1>&6 |
5826 else | 5851 else |
5827 cat > conftest.$ac_ext <<EOF | 5852 cat > conftest.$ac_ext <<EOF |
5828 #line 5829 "configure" | 5853 #line 5854 "configure" |
5829 #include "confdefs.h" | 5854 #include "confdefs.h" |
5830 #include <$ac_hdr> | 5855 #include <$ac_hdr> |
5831 EOF | 5856 EOF |
5832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5833 { (eval echo configure:5834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5858 { (eval echo configure:5859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5835 if test -z "$ac_err"; then | 5860 if test -z "$ac_err"; then |
5836 rm -rf conftest* | 5861 rm -rf conftest* |
5837 eval "ac_cv_header_$ac_safe=yes" | 5862 eval "ac_cv_header_$ac_safe=yes" |
5838 else | 5863 else |
5855 echo "$ac_t""no" 1>&6 | 5880 echo "$ac_t""no" 1>&6 |
5856 for ac_hdr in kerberosIV/krb.h | 5881 for ac_hdr in kerberosIV/krb.h |
5857 do | 5882 do |
5858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5860 echo "configure:5861: checking for $ac_hdr" >&5 | 5885 echo "configure:5886: checking for $ac_hdr" >&5 |
5861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5886 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5862 echo $ac_n "(cached) $ac_c" 1>&6 | 5887 echo $ac_n "(cached) $ac_c" 1>&6 |
5863 else | 5888 else |
5864 cat > conftest.$ac_ext <<EOF | 5889 cat > conftest.$ac_ext <<EOF |
5865 #line 5866 "configure" | 5890 #line 5891 "configure" |
5866 #include "confdefs.h" | 5891 #include "confdefs.h" |
5867 #include <$ac_hdr> | 5892 #include <$ac_hdr> |
5868 EOF | 5893 EOF |
5869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5870 { (eval echo configure:5871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5895 { (eval echo configure:5896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5872 if test -z "$ac_err"; then | 5897 if test -z "$ac_err"; then |
5873 rm -rf conftest* | 5898 rm -rf conftest* |
5874 eval "ac_cv_header_$ac_safe=yes" | 5899 eval "ac_cv_header_$ac_safe=yes" |
5875 else | 5900 else |
5892 echo "$ac_t""no" 1>&6 | 5917 echo "$ac_t""no" 1>&6 |
5893 for ac_hdr in kerberos/krb.h | 5918 for ac_hdr in kerberos/krb.h |
5894 do | 5919 do |
5895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5897 echo "configure:5898: checking for $ac_hdr" >&5 | 5922 echo "configure:5923: checking for $ac_hdr" >&5 |
5898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5899 echo $ac_n "(cached) $ac_c" 1>&6 | 5924 echo $ac_n "(cached) $ac_c" 1>&6 |
5900 else | 5925 else |
5901 cat > conftest.$ac_ext <<EOF | 5926 cat > conftest.$ac_ext <<EOF |
5902 #line 5903 "configure" | 5927 #line 5928 "configure" |
5903 #include "confdefs.h" | 5928 #include "confdefs.h" |
5904 #include <$ac_hdr> | 5929 #include <$ac_hdr> |
5905 EOF | 5930 EOF |
5906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5907 { (eval echo configure:5908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5932 { (eval echo configure:5933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5909 if test -z "$ac_err"; then | 5934 if test -z "$ac_err"; then |
5910 rm -rf conftest* | 5935 rm -rf conftest* |
5911 eval "ac_cv_header_$ac_safe=yes" | 5936 eval "ac_cv_header_$ac_safe=yes" |
5912 else | 5937 else |
5939 fi | 5964 fi |
5940 for ac_hdr in com_err.h | 5965 for ac_hdr in com_err.h |
5941 do | 5966 do |
5942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5967 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5944 echo "configure:5945: checking for $ac_hdr" >&5 | 5969 echo "configure:5970: checking for $ac_hdr" >&5 |
5945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5970 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5946 echo $ac_n "(cached) $ac_c" 1>&6 | 5971 echo $ac_n "(cached) $ac_c" 1>&6 |
5947 else | 5972 else |
5948 cat > conftest.$ac_ext <<EOF | 5973 cat > conftest.$ac_ext <<EOF |
5949 #line 5950 "configure" | 5974 #line 5975 "configure" |
5950 #include "confdefs.h" | 5975 #include "confdefs.h" |
5951 #include <$ac_hdr> | 5976 #include <$ac_hdr> |
5952 EOF | 5977 EOF |
5953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5954 { (eval echo configure:5955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5979 { (eval echo configure:5980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5956 if test -z "$ac_err"; then | 5981 if test -z "$ac_err"; then |
5957 rm -rf conftest* | 5982 rm -rf conftest* |
5958 eval "ac_cv_header_$ac_safe=yes" | 5983 eval "ac_cv_header_$ac_safe=yes" |
5959 else | 5984 else |
5980 fi | 6005 fi |
5981 | 6006 |
5982 # Solaris requires -lintl if you want strerror (which calls dgettext) | 6007 # Solaris requires -lintl if you want strerror (which calls dgettext) |
5983 # to return localized messages. | 6008 # to return localized messages. |
5984 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | 6009 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 |
5985 echo "configure:5986: checking for dgettext in -lintl" >&5 | 6010 echo "configure:6011: checking for dgettext in -lintl" >&5 |
5986 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` | 6011 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
5987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5988 echo $ac_n "(cached) $ac_c" 1>&6 | 6013 echo $ac_n "(cached) $ac_c" 1>&6 |
5989 else | 6014 else |
5990 ac_save_LIBS="$LIBS" | 6015 ac_save_LIBS="$LIBS" |
5991 LIBS="-lintl $LIBS" | 6016 LIBS="-lintl $LIBS" |
5992 cat > conftest.$ac_ext <<EOF | 6017 cat > conftest.$ac_ext <<EOF |
5993 #line 5994 "configure" | 6018 #line 6019 "configure" |
5994 #include "confdefs.h" | 6019 #include "confdefs.h" |
5995 /* Override any gcc2 internal prototype to avoid an error. */ | 6020 /* Override any gcc2 internal prototype to avoid an error. */ |
5996 /* We use char because int might match the return type of a gcc2 | 6021 /* We use char because int might match the return type of a gcc2 |
5997 builtin and then its argument prototype would still apply. */ | 6022 builtin and then its argument prototype would still apply. */ |
5998 char dgettext(); | 6023 char dgettext(); |
5999 | 6024 |
6000 int main() { | 6025 int main() { |
6001 dgettext() | 6026 dgettext() |
6002 ; return 0; } | 6027 ; return 0; } |
6003 EOF | 6028 EOF |
6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6029 if { (eval echo configure:6030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6005 rm -rf conftest* | 6030 rm -rf conftest* |
6006 eval "ac_cv_lib_$ac_lib_var=yes" | 6031 eval "ac_cv_lib_$ac_lib_var=yes" |
6007 else | 6032 else |
6008 echo "configure: failed program was:" >&5 | 6033 echo "configure: failed program was:" >&5 |
6009 cat conftest.$ac_ext >&5 | 6034 cat conftest.$ac_ext >&5 |
6028 echo "$ac_t""no" 1>&6 | 6053 echo "$ac_t""no" 1>&6 |
6029 fi | 6054 fi |
6030 | 6055 |
6031 | 6056 |
6032 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 6057 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
6033 echo "configure:6034: checking whether localtime caches TZ" >&5 | 6058 echo "configure:6059: checking whether localtime caches TZ" >&5 |
6034 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then | 6059 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
6035 echo $ac_n "(cached) $ac_c" 1>&6 | 6060 echo $ac_n "(cached) $ac_c" 1>&6 |
6036 else | 6061 else |
6037 if test x$ac_cv_func_tzset = xyes; then | 6062 if test x$ac_cv_func_tzset = xyes; then |
6038 if test "$cross_compiling" = yes; then | 6063 if test "$cross_compiling" = yes; then |
6039 # If we have tzset, assume the worst when cross-compiling. | 6064 # If we have tzset, assume the worst when cross-compiling. |
6040 emacs_cv_localtime_cache=yes | 6065 emacs_cv_localtime_cache=yes |
6041 else | 6066 else |
6042 cat > conftest.$ac_ext <<EOF | 6067 cat > conftest.$ac_ext <<EOF |
6043 #line 6044 "configure" | 6068 #line 6069 "configure" |
6044 #include "confdefs.h" | 6069 #include "confdefs.h" |
6045 #include <time.h> | 6070 #include <time.h> |
6046 extern char **environ; | 6071 extern char **environ; |
6047 unset_TZ () | 6072 unset_TZ () |
6048 { | 6073 { |
6070 if (localtime (&now)->tm_hour != hour_unset) | 6095 if (localtime (&now)->tm_hour != hour_unset) |
6071 exit (1); | 6096 exit (1); |
6072 exit (0); | 6097 exit (0); |
6073 } | 6098 } |
6074 EOF | 6099 EOF |
6075 if { (eval echo configure:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 6100 if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6076 then | 6101 then |
6077 emacs_cv_localtime_cache=no | 6102 emacs_cv_localtime_cache=no |
6078 else | 6103 else |
6079 echo "configure: failed program was:" >&5 | 6104 echo "configure: failed program was:" >&5 |
6080 cat conftest.$ac_ext >&5 | 6105 cat conftest.$ac_ext >&5 |
6098 | 6123 |
6099 fi | 6124 fi |
6100 | 6125 |
6101 if test "x$HAVE_TIMEVAL" = xyes; then | 6126 if test "x$HAVE_TIMEVAL" = xyes; then |
6102 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | 6127 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 |
6103 echo "configure:6104: checking whether gettimeofday can accept two arguments" >&5 | 6128 echo "configure:6129: checking whether gettimeofday can accept two arguments" >&5 |
6104 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then | 6129 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
6105 echo $ac_n "(cached) $ac_c" 1>&6 | 6130 echo $ac_n "(cached) $ac_c" 1>&6 |
6106 else | 6131 else |
6107 cat > conftest.$ac_ext <<EOF | 6132 cat > conftest.$ac_ext <<EOF |
6108 #line 6109 "configure" | 6133 #line 6134 "configure" |
6109 #include "confdefs.h" | 6134 #include "confdefs.h" |
6110 | 6135 |
6111 #ifdef TIME_WITH_SYS_TIME | 6136 #ifdef TIME_WITH_SYS_TIME |
6112 #include <sys/time.h> | 6137 #include <sys/time.h> |
6113 #include <time.h> | 6138 #include <time.h> |
6125 struct timezone dummy; | 6150 struct timezone dummy; |
6126 gettimeofday (&time, &dummy); | 6151 gettimeofday (&time, &dummy); |
6127 | 6152 |
6128 ; return 0; } | 6153 ; return 0; } |
6129 EOF | 6154 EOF |
6130 if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6131 rm -rf conftest* | 6156 rm -rf conftest* |
6132 emacs_cv_gettimeofday_two_arguments=yes | 6157 emacs_cv_gettimeofday_two_arguments=yes |
6133 else | 6158 else |
6134 echo "configure: failed program was:" >&5 | 6159 echo "configure: failed program was:" >&5 |
6135 cat conftest.$ac_ext >&5 | 6160 cat conftest.$ac_ext >&5 |
6148 fi | 6173 fi |
6149 fi | 6174 fi |
6150 | 6175 |
6151 ok_so_far=yes | 6176 ok_so_far=yes |
6152 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 6177 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
6153 echo "configure:6154: checking for socket" >&5 | 6178 echo "configure:6179: checking for socket" >&5 |
6154 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | 6179 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
6155 echo $ac_n "(cached) $ac_c" 1>&6 | 6180 echo $ac_n "(cached) $ac_c" 1>&6 |
6156 else | 6181 else |
6157 cat > conftest.$ac_ext <<EOF | 6182 cat > conftest.$ac_ext <<EOF |
6158 #line 6159 "configure" | 6183 #line 6184 "configure" |
6159 #include "confdefs.h" | 6184 #include "confdefs.h" |
6160 /* System header to define __stub macros and hopefully few prototypes, | 6185 /* System header to define __stub macros and hopefully few prototypes, |
6161 which can conflict with char socket(); below. */ | 6186 which can conflict with char socket(); below. */ |
6162 #include <assert.h> | 6187 #include <assert.h> |
6163 /* Override any gcc2 internal prototype to avoid an error. */ | 6188 /* Override any gcc2 internal prototype to avoid an error. */ |
6176 socket(); | 6201 socket(); |
6177 #endif | 6202 #endif |
6178 | 6203 |
6179 ; return 0; } | 6204 ; return 0; } |
6180 EOF | 6205 EOF |
6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6206 if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6182 rm -rf conftest* | 6207 rm -rf conftest* |
6183 eval "ac_cv_func_socket=yes" | 6208 eval "ac_cv_func_socket=yes" |
6184 else | 6209 else |
6185 echo "configure: failed program was:" >&5 | 6210 echo "configure: failed program was:" >&5 |
6186 cat conftest.$ac_ext >&5 | 6211 cat conftest.$ac_ext >&5 |
6199 fi | 6224 fi |
6200 | 6225 |
6201 if test $ok_so_far = yes; then | 6226 if test $ok_so_far = yes; then |
6202 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 6227 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
6203 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 6228 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
6204 echo "configure:6205: checking for netinet/in.h" >&5 | 6229 echo "configure:6230: checking for netinet/in.h" >&5 |
6205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6206 echo $ac_n "(cached) $ac_c" 1>&6 | 6231 echo $ac_n "(cached) $ac_c" 1>&6 |
6207 else | 6232 else |
6208 cat > conftest.$ac_ext <<EOF | 6233 cat > conftest.$ac_ext <<EOF |
6209 #line 6210 "configure" | 6234 #line 6235 "configure" |
6210 #include "confdefs.h" | 6235 #include "confdefs.h" |
6211 #include <netinet/in.h> | 6236 #include <netinet/in.h> |
6212 EOF | 6237 EOF |
6213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6214 { (eval echo configure:6215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6239 { (eval echo configure:6240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6216 if test -z "$ac_err"; then | 6241 if test -z "$ac_err"; then |
6217 rm -rf conftest* | 6242 rm -rf conftest* |
6218 eval "ac_cv_header_$ac_safe=yes" | 6243 eval "ac_cv_header_$ac_safe=yes" |
6219 else | 6244 else |
6235 | 6260 |
6236 fi | 6261 fi |
6237 if test $ok_so_far = yes; then | 6262 if test $ok_so_far = yes; then |
6238 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 6263 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
6239 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 6264 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
6240 echo "configure:6241: checking for arpa/inet.h" >&5 | 6265 echo "configure:6266: checking for arpa/inet.h" >&5 |
6241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6266 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6242 echo $ac_n "(cached) $ac_c" 1>&6 | 6267 echo $ac_n "(cached) $ac_c" 1>&6 |
6243 else | 6268 else |
6244 cat > conftest.$ac_ext <<EOF | 6269 cat > conftest.$ac_ext <<EOF |
6245 #line 6246 "configure" | 6270 #line 6271 "configure" |
6246 #include "confdefs.h" | 6271 #include "confdefs.h" |
6247 #include <arpa/inet.h> | 6272 #include <arpa/inet.h> |
6248 EOF | 6273 EOF |
6249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6250 { (eval echo configure:6251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6275 { (eval echo configure:6276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6252 if test -z "$ac_err"; then | 6277 if test -z "$ac_err"; then |
6253 rm -rf conftest* | 6278 rm -rf conftest* |
6254 eval "ac_cv_header_$ac_safe=yes" | 6279 eval "ac_cv_header_$ac_safe=yes" |
6255 else | 6280 else |
6283 EOF | 6308 EOF |
6284 | 6309 |
6285 fi | 6310 fi |
6286 | 6311 |
6287 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 | 6312 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
6288 echo "configure:6289: checking whether system supports dynamic ptys" >&5 | 6313 echo "configure:6314: checking whether system supports dynamic ptys" >&5 |
6289 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 6314 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
6290 echo "$ac_t""yes" 1>&6 | 6315 echo "$ac_t""yes" 1>&6 |
6291 cat >> confdefs.h <<\EOF | 6316 cat >> confdefs.h <<\EOF |
6292 #define HAVE_DEV_PTMX 1 | 6317 #define HAVE_DEV_PTMX 1 |
6293 EOF | 6318 EOF |
6294 | 6319 |
6295 else | 6320 else |
6296 echo "$ac_t""no" 1>&6 | 6321 echo "$ac_t""no" 1>&6 |
6297 fi | 6322 fi |
6298 | |
6299 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
6300 echo "configure:6301: checking for pid_t" >&5 | |
6301 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
6302 echo $ac_n "(cached) $ac_c" 1>&6 | |
6303 else | |
6304 cat > conftest.$ac_ext <<EOF | |
6305 #line 6306 "configure" | |
6306 #include "confdefs.h" | |
6307 #include <sys/types.h> | |
6308 #if STDC_HEADERS | |
6309 #include <stdlib.h> | |
6310 #include <stddef.h> | |
6311 #endif | |
6312 EOF | |
6313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6314 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
6315 rm -rf conftest* | |
6316 ac_cv_type_pid_t=yes | |
6317 else | |
6318 rm -rf conftest* | |
6319 ac_cv_type_pid_t=no | |
6320 fi | |
6321 rm -f conftest* | |
6322 | |
6323 fi | |
6324 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
6325 if test $ac_cv_type_pid_t = no; then | |
6326 cat >> confdefs.h <<\EOF | |
6327 #define pid_t int | |
6328 EOF | |
6329 | |
6330 fi | |
6331 | |
6332 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
6333 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
6334 echo "configure:6335: checking for vfork.h" >&5 | |
6335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6336 echo $ac_n "(cached) $ac_c" 1>&6 | |
6337 else | |
6338 cat > conftest.$ac_ext <<EOF | |
6339 #line 6340 "configure" | |
6340 #include "confdefs.h" | |
6341 #include <vfork.h> | |
6342 EOF | |
6343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6344 { (eval echo configure:6345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6346 if test -z "$ac_err"; then | |
6347 rm -rf conftest* | |
6348 eval "ac_cv_header_$ac_safe=yes" | |
6349 else | |
6350 echo "$ac_err" >&5 | |
6351 echo "configure: failed program was:" >&5 | |
6352 cat conftest.$ac_ext >&5 | |
6353 rm -rf conftest* | |
6354 eval "ac_cv_header_$ac_safe=no" | |
6355 fi | |
6356 rm -f conftest* | |
6357 fi | |
6358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6359 echo "$ac_t""yes" 1>&6 | |
6360 cat >> confdefs.h <<\EOF | |
6361 #define HAVE_VFORK_H 1 | |
6362 EOF | |
6363 | |
6364 else | |
6365 echo "$ac_t""no" 1>&6 | |
6366 fi | |
6367 | |
6368 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
6369 echo "configure:6370: checking for working vfork" >&5 | |
6370 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then | |
6371 echo $ac_n "(cached) $ac_c" 1>&6 | |
6372 else | |
6373 if test "$cross_compiling" = yes; then | |
6374 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
6375 echo "configure:6376: checking for vfork" >&5 | |
6376 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then | |
6377 echo $ac_n "(cached) $ac_c" 1>&6 | |
6378 else | |
6379 cat > conftest.$ac_ext <<EOF | |
6380 #line 6381 "configure" | |
6381 #include "confdefs.h" | |
6382 /* System header to define __stub macros and hopefully few prototypes, | |
6383 which can conflict with char vfork(); below. */ | |
6384 #include <assert.h> | |
6385 /* Override any gcc2 internal prototype to avoid an error. */ | |
6386 /* We use char because int might match the return type of a gcc2 | |
6387 builtin and then its argument prototype would still apply. */ | |
6388 char vfork(); | |
6389 | |
6390 int main() { | |
6391 | |
6392 /* The GNU C library defines this for functions which it implements | |
6393 to always fail with ENOSYS. Some functions are actually named | |
6394 something starting with __ and the normal name is an alias. */ | |
6395 #if defined (__stub_vfork) || defined (__stub___vfork) | |
6396 choke me | |
6397 #else | |
6398 vfork(); | |
6399 #endif | |
6400 | |
6401 ; return 0; } | |
6402 EOF | |
6403 if { (eval echo configure:6404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6404 rm -rf conftest* | |
6405 eval "ac_cv_func_vfork=yes" | |
6406 else | |
6407 echo "configure: failed program was:" >&5 | |
6408 cat conftest.$ac_ext >&5 | |
6409 rm -rf conftest* | |
6410 eval "ac_cv_func_vfork=no" | |
6411 fi | |
6412 rm -f conftest* | |
6413 fi | |
6414 | |
6415 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
6416 echo "$ac_t""yes" 1>&6 | |
6417 : | |
6418 else | |
6419 echo "$ac_t""no" 1>&6 | |
6420 fi | |
6421 | |
6422 ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6423 else | |
6424 cat > conftest.$ac_ext <<EOF | |
6425 #line 6426 "configure" | |
6426 #include "confdefs.h" | |
6427 /* Thanks to Paul Eggert for this test. */ | |
6428 #include <stdio.h> | |
6429 #include <sys/types.h> | |
6430 #include <sys/stat.h> | |
6431 #ifdef HAVE_UNISTD_H | |
6432 #include <unistd.h> | |
6433 #endif | |
6434 #ifdef HAVE_VFORK_H | |
6435 #include <vfork.h> | |
6436 #endif | |
6437 /* On some sparc systems, changes by the child to local and incoming | |
6438 argument registers are propagated back to the parent. | |
6439 The compiler is told about this with #include <vfork.h>, | |
6440 but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
6441 Test for this by using a static variable whose address | |
6442 is put into a register that is clobbered by the vfork. */ | |
6443 static | |
6444 #ifdef __cplusplus | |
6445 sparc_address_test (int arg) | |
6446 #else | |
6447 sparc_address_test (arg) int arg; | |
6448 #endif | |
6449 { | |
6450 static pid_t child; | |
6451 if (!child) { | |
6452 child = vfork (); | |
6453 if (child < 0) { | |
6454 perror ("vfork"); | |
6455 _exit(2); | |
6456 } | |
6457 if (!child) { | |
6458 arg = getpid(); | |
6459 write(-1, "", 0); | |
6460 _exit (arg); | |
6461 } | |
6462 } | |
6463 } | |
6464 main() { | |
6465 pid_t parent = getpid (); | |
6466 pid_t child; | |
6467 | |
6468 sparc_address_test (); | |
6469 | |
6470 child = vfork (); | |
6471 | |
6472 if (child == 0) { | |
6473 /* Here is another test for sparc vfork register problems. | |
6474 This test uses lots of local variables, at least | |
6475 as many local variables as main has allocated so far | |
6476 including compiler temporaries. 4 locals are enough for | |
6477 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
6478 A buggy compiler should reuse the register of parent | |
6479 for one of the local variables, since it will think that | |
6480 parent can't possibly be used any more in this routine. | |
6481 Assigning to the local variable will thus munge parent | |
6482 in the parent process. */ | |
6483 pid_t | |
6484 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6485 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6486 /* Convince the compiler that p..p7 are live; otherwise, it might | |
6487 use the same hardware register for all 8 local variables. */ | |
6488 if (p != p1 || p != p2 || p != p3 || p != p4 | |
6489 || p != p5 || p != p6 || p != p7) | |
6490 _exit(1); | |
6491 | |
6492 /* On some systems (e.g. IRIX 3.3), | |
6493 vfork doesn't separate parent from child file descriptors. | |
6494 If the child closes a descriptor before it execs or exits, | |
6495 this munges the parent's descriptor as well. | |
6496 Test for this by closing stdout in the child. */ | |
6497 _exit(close(fileno(stdout)) != 0); | |
6498 } else { | |
6499 int status; | |
6500 struct stat st; | |
6501 | |
6502 while (wait(&status) != child) | |
6503 ; | |
6504 exit( | |
6505 /* Was there some problem with vforking? */ | |
6506 child < 0 | |
6507 | |
6508 /* Did the child fail? (This shouldn't happen.) */ | |
6509 || status | |
6510 | |
6511 /* Did the vfork/compiler bug occur? */ | |
6512 || parent != getpid() | |
6513 | |
6514 /* Did the file descriptor bug occur? */ | |
6515 || fstat(fileno(stdout), &st) != 0 | |
6516 ); | |
6517 } | |
6518 } | |
6519 EOF | |
6520 if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
6521 then | |
6522 ac_cv_func_vfork_works=yes | |
6523 else | |
6524 echo "configure: failed program was:" >&5 | |
6525 cat conftest.$ac_ext >&5 | |
6526 rm -fr conftest* | |
6527 ac_cv_func_vfork_works=no | |
6528 fi | |
6529 rm -fr conftest* | |
6530 fi | |
6531 | |
6532 fi | |
6533 | |
6534 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
6535 if test $ac_cv_func_vfork_works = no; then | |
6536 cat >> confdefs.h <<\EOF | |
6537 #define vfork fork | |
6538 EOF | |
6539 | |
6540 fi | |
6541 | |
6542 | 6323 |
6543 # Set up the CFLAGS for real compilation, so we can substitute it. | 6324 # Set up the CFLAGS for real compilation, so we can substitute it. |
6544 CFLAGS="$REAL_CFLAGS" | 6325 CFLAGS="$REAL_CFLAGS" |
6545 | 6326 |
6546 #### Find out which version of Emacs this is. | 6327 #### Find out which version of Emacs this is. |