/[emacs]/emacs/configure
ViewVC logotype

Diff of /emacs/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.62.4.5 by eliz, Mon Jan 28 16:37:30 2002 UTC revision 1.62.4.6 by eliz, Fri Mar 15 12:47:05 2002 UTC
# Line 1204  case "${canonical}" in Line 1204  case "${canonical}" in
1204    rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2*  )    rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2*  )
1205      machine=ibmrs6000 opsys=aix4-2      machine=ibmrs6000 opsys=aix4-2
1206    ;;    ;;
1207      rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1*  )
1208        machine=ibmrs6000 opsys=aix4-2
1209      ;;
1210    rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0*  )    rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0*  )
1211      machine=ibmrs6000 opsys=aix4      machine=ibmrs6000 opsys=aix4
1212    ;;    ;;
# Line 1738  case ${with_gcc} in Line 1741  case ${with_gcc} in
1741    * ) # Extract the first word of "gcc", so it can be a program name with args.    * ) # Extract the first word of "gcc", so it can be a program name with args.
1742  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1743  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1744  echo "configure:1742: checking for $ac_word" >&5  echo "configure:1745: checking for $ac_word" >&5
1745  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1746    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1747  else  else
# Line 1768  if test -z "$CC"; then Line 1771  if test -z "$CC"; then
1771    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
1772  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1773  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1774  echo "configure:1772: checking for $ac_word" >&5  echo "configure:1775: checking for $ac_word" >&5
1775  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1776    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1777  else  else
# Line 1819  fi Line 1822  fi
1822        # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
1823  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
1824  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1825  echo "configure:1823: checking for $ac_word" >&5  echo "configure:1826: checking for $ac_word" >&5
1826  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1827    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1828  else  else
# Line 1851  fi Line 1854  fi
1854  fi  fi
1855    
1856  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1857  echo "configure:1855: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:1858: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1858    
1859  ac_ext=c  ac_ext=c
1860  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 1862  cross_compiling=$ac_cv_prog_cc_cross Line 1865  cross_compiling=$ac_cv_prog_cc_cross
1865    
1866  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
1867    
1868  #line 1866 "configure"  #line 1869 "configure"
1869  #include "confdefs.h"  #include "confdefs.h"
1870    
1871  main(){return(0);}  main(){return(0);}
1872  EOF  EOF
1873  if { (eval echo configure:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1874    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
1875    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
1876    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 1893  if test $ac_cv_prog_cc_works = no; then Line 1896  if test $ac_cv_prog_cc_works = no; then
1896    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1897  fi  fi
1898  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1899  echo "configure:1897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:1900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1900  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1901  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
1902    
1903  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1904  echo "configure:1902: checking whether we are using GNU C" >&5  echo "configure:1905: checking whether we are using GNU C" >&5
1905  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1906    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1907  else  else
# Line 1907  else Line 1910  else
1910    yes;    yes;
1911  #endif  #endif
1912  EOF  EOF
1913  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1914    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
1915  else  else
1916    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 1926  ac_test_CFLAGS="${CFLAGS+set}" Line 1929  ac_test_CFLAGS="${CFLAGS+set}"
1929  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
1930  CFLAGS=  CFLAGS=
1931  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1932  echo "configure:1930: checking whether ${CC-cc} accepts -g" >&5  echo "configure:1933: checking whether ${CC-cc} accepts -g" >&5
1933  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1934    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1935  else  else
# Line 2006  fi Line 2009  fi
2009  #### #undef clause to src/config.h.in for autoconf to modify.  #### #undef clause to src/config.h.in for autoconf to modify.
2010    
2011  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2012  echo "configure:2010: checking whether ln -s works" >&5  echo "configure:2013: checking whether ln -s works" >&5
2013  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2014    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2015  else  else
# Line 2027  else Line 2030  else
2030  fi  fi
2031    
2032  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2033  echo "configure:2031: checking how to run the C preprocessor" >&5  echo "configure:2034: checking how to run the C preprocessor" >&5
2034  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2035  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2036    CPP=    CPP=
# Line 2042  else Line 2045  else
2045    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
2046    # not just through cpp.    # not just through cpp.
2047    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2048  #line 2046 "configure"  #line 2049 "configure"
2049  #include "confdefs.h"  #include "confdefs.h"
2050  #include <assert.h>  #include <assert.h>
2051  Syntax Error  Syntax Error
2052  EOF  EOF
2053  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2054  { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2055  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2056  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2057    :    :
# Line 2059  else Line 2062  else
2062    rm -rf conftest*    rm -rf conftest*
2063    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
2064    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2065  #line 2063 "configure"  #line 2066 "configure"
2066  #include "confdefs.h"  #include "confdefs.h"
2067  #include <assert.h>  #include <assert.h>
2068  Syntax Error  Syntax Error
2069  EOF  EOF
2070  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2071  { (eval echo configure:2069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2072  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2073  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2074    :    :
# Line 2076  else Line 2079  else
2079    rm -rf conftest*    rm -rf conftest*
2080    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
2081    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2082  #line 2080 "configure"  #line 2083 "configure"
2083  #include "confdefs.h"  #include "confdefs.h"
2084  #include <assert.h>  #include <assert.h>
2085  Syntax Error  Syntax Error
2086  EOF  EOF
2087  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2088  { (eval echo configure:2086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2089  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2090  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2091    :    :
# Line 2118  echo "$ac_t""$CPP" 1>&6 Line 2121  echo "$ac_t""$CPP" 1>&6
2121  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2122  # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
2123  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2124  echo "configure:2122: checking for a BSD compatible install" >&5  echo "configure:2125: checking for a BSD compatible install" >&5
2125  if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
2126  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2127    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2175  do Line 2178  do
2178  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
2179  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2180  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2181  echo "configure:2179: checking for $ac_word" >&5  echo "configure:2182: checking for $ac_word" >&5
2182  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2183    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2184  else  else
# Line 2209  if test "x$RANLIB" = x; then Line 2212  if test "x$RANLIB" = x; then
2212    # Extract the first word of "ranlib", so it can be a program name with args.    # Extract the first word of "ranlib", so it can be a program name with args.
2213  set dummy ranlib; ac_word=$2  set dummy ranlib; ac_word=$2
2214  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2215  echo "configure:2213: checking for $ac_word" >&5  echo "configure:2216: checking for $ac_word" >&5
2216  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2217    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2218  else  else
# Line 2239  fi Line 2242  fi
2242  fi  fi
2243    
2244  echo $ac_n "checking for AIX""... $ac_c" 1>&6  echo $ac_n "checking for AIX""... $ac_c" 1>&6
2245  echo "configure:2243: checking for AIX" >&5  echo "configure:2246: checking for AIX" >&5
2246  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2247  #line 2245 "configure"  #line 2248 "configure"
2248  #include "confdefs.h"  #include "confdefs.h"
2249  #ifdef _AIX  #ifdef _AIX
2250    yes    yes
# Line 2268  rm -f conftest* Line 2271  rm -f conftest*
2271  echo "checking the machine- and system-dependent files to find out  echo "checking the machine- and system-dependent files to find out
2272   - which libraries the lib-src programs will want, and   - which libraries the lib-src programs will want, and
2273   - whether the GNU malloc routines are usable" 1>&6   - whether the GNU malloc routines are usable" 1>&6
2274  echo "configure:2272: checking the machine- and system-dependent files to find out  echo "configure:2275: checking the machine- and system-dependent files to find out
2275   - which libraries the lib-src programs will want, and   - which libraries the lib-src programs will want, and
2276   - whether the GNU malloc routines are usable" >&5   - whether the GNU malloc routines are usable" >&5
2277    
# Line 2418  fi Line 2421  fi
2421     if test "$enable_largefile" != no; then     if test "$enable_largefile" != no; then
2422    
2423       echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6       echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
2424  echo "configure:2422: checking for special C compiler options needed for large files" >&5  echo "configure:2425: checking for special C compiler options needed for large files" >&5
2425  if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
2426    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2427  else  else
# Line 2427  else Line 2430  else
2430            # IRIX 6.2 and later do not support large files by default,            # IRIX 6.2 and later do not support large files by default,
2431            # so use the C compiler's -n32 option if that helps.            # so use the C compiler's -n32 option if that helps.
2432            cat > conftest.$ac_ext <<EOF            cat > conftest.$ac_ext <<EOF
2433  #line 2431 "configure"  #line 2434 "configure"
2434  #include "confdefs.h"  #include "confdefs.h"
2435  #include <sys/types.h>  #include <sys/types.h>
2436      int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];      int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
# Line 2436  int main() { Line 2439  int main() {
2439    
2440  ; return 0; }  ; return 0; }
2441  EOF  EOF
2442  if { (eval echo configure:2440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2443    :    :
2444  else  else
2445    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
# Line 2445  else Line 2448  else
2448    ac_save_CC="$CC"    ac_save_CC="$CC"
2449               CC="$CC -n32"               CC="$CC -n32"
2450               cat > conftest.$ac_ext <<EOF               cat > conftest.$ac_ext <<EOF
2451  #line 2449 "configure"  #line 2452 "configure"
2452  #include "confdefs.h"  #include "confdefs.h"
2453  #include <sys/types.h>  #include <sys/types.h>
2454      int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];      int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
# Line 2454  int main() { Line 2457  int main() {
2457    
2458  ; return 0; }  ; return 0; }
2459  EOF  EOF
2460  if { (eval echo configure:2458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2461    rm -rf conftest*    rm -rf conftest*
2462    ac_cv_sys_largefile_CC=' -n32'    ac_cv_sys_largefile_CC=' -n32'
2463  else  else
# Line 2474  echo "$ac_t""$ac_cv_sys_largefile_CC" 1> Line 2477  echo "$ac_t""$ac_cv_sys_largefile_CC" 1>
2477       fi       fi
2478    
2479       echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6       echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
2480  echo "configure:2478: checking for _FILE_OFFSET_BITS value needed for large files" >&5  echo "configure:2481: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2481  if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
2482    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2483  else  else
2484    ac_cv_sys_file_offset_bits=no    ac_cv_sys_file_offset_bits=no
2485        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
2486  #line 2484 "configure"  #line 2487 "configure"
2487  #include "confdefs.h"  #include "confdefs.h"
2488  #include <sys/types.h>  #include <sys/types.h>
2489      int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];      int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
# Line 2489  int main() { Line 2492  int main() {
2492    
2493  ; return 0; }  ; return 0; }
2494  EOF  EOF
2495  if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2496    :    :
2497  else  else
2498    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
2499    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2500    rm -rf conftest*    rm -rf conftest*
2501    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2502  #line 2500 "configure"  #line 2503 "configure"
2503  #include "confdefs.h"  #include "confdefs.h"
2504  #define _FILE_OFFSET_BITS 64  #define _FILE_OFFSET_BITS 64
2505  #include <sys/types.h>  #include <sys/types.h>
# Line 2507  int main() { Line 2510  int main() {
2510    
2511  ; return 0; }  ; return 0; }
2512  EOF  EOF
2513  if { (eval echo configure:2511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2514    rm -rf conftest*    rm -rf conftest*
2515    ac_cv_sys_file_offset_bits=64    ac_cv_sys_file_offset_bits=64
2516  else  else
# Line 2527  EOF Line 2530  EOF
2530    
2531     fi     fi
2532       echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6       echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
2533  echo "configure:2531: checking for _LARGE_FILES value needed for large files" >&5  echo "configure:2534: checking for _LARGE_FILES value needed for large files" >&5
2534  if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
2535    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2536  else  else
2537    ac_cv_sys_large_files=no    ac_cv_sys_large_files=no
2538        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
2539  #line 2537 "configure"  #line 2540 "configure"
2540  #include "confdefs.h"  #include "confdefs.h"
2541    
2542  int main() {  int main() {
2543    
2544  ; return 0; }  ; return 0; }
2545  EOF  EOF
2546  if { (eval echo configure:2544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2547    :    :
2548  else  else
2549    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
2550    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2551    rm -rf conftest*    rm -rf conftest*
2552    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2553  #line 2551 "configure"  #line 2554 "configure"
2554  #include "confdefs.h"  #include "confdefs.h"
2555  #define _LARGE_FILES 1  #define _LARGE_FILES 1
2556    
# Line 2556  int main() { Line 2559  int main() {
2559    
2560  ; return 0; }  ; return 0; }
2561  EOF  EOF
2562  if { (eval echo configure:2560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2563    rm -rf conftest*    rm -rf conftest*
2564    ac_cv_sys_large_files=1    ac_cv_sys_large_files=1
2565  else  else
# Line 2583  for ac_hdr in machine/soundcard.h sys/so Line 2586  for ac_hdr in machine/soundcard.h sys/so
2586  do  do
2587  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2588  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2589  echo "configure:2587: checking for $ac_hdr" >&5  echo "configure:2590: checking for $ac_hdr" >&5
2590  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2591    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2592  else  else
2593    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2594  #line 2592 "configure"  #line 2595 "configure"
2595  #include "confdefs.h"  #include "confdefs.h"
2596  #include <$ac_hdr>  #include <$ac_hdr>
2597  EOF  EOF
2598  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2599  { (eval echo configure:2597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2600  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2601  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2602    rm -rf conftest*    rm -rf conftest*
# Line 2621  done Line 2624  done
2624    
2625  # Emulation library used on NetBSD.  # Emulation library used on NetBSD.
2626  echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6  echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2627  echo "configure:2625: checking for _oss_ioctl in -lossaudio" >&5  echo "configure:2628: checking for _oss_ioctl in -lossaudio" >&5
2628  ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2629  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2630    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2629  else Line 2632  else
2632    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2633  LIBS="-lossaudio  $LIBS"  LIBS="-lossaudio  $LIBS"
2634  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2635  #line 2633 "configure"  #line 2636 "configure"
2636  #include "confdefs.h"  #include "confdefs.h"
2637  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2638  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 2640  int main() { Line 2643  int main() {
2643  _oss_ioctl()  _oss_ioctl()
2644  ; return 0; }  ; return 0; }
2645  EOF  EOF
2646  if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2647    rm -rf conftest*    rm -rf conftest*
2648    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2649  else  else
# Line 2669  for ac_hdr in sys/select.h sys/timeb.h s Line 2672  for ac_hdr in sys/select.h sys/timeb.h s
2672  do  do
2673  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2674  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2675  echo "configure:2673: checking for $ac_hdr" >&5  echo "configure:2676: checking for $ac_hdr" >&5
2676  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2677    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2678  else  else
2679    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2680  #line 2678 "configure"  #line 2681 "configure"
2681  #include "confdefs.h"  #include "confdefs.h"
2682  #include <$ac_hdr>  #include <$ac_hdr>
2683  EOF  EOF
2684  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2685  { (eval echo configure:2683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2686  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2687  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2688    rm -rf conftest*    rm -rf conftest*
# Line 2706  fi Line 2709  fi
2709  done  done
2710    
2711  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2712  echo "configure:2710: checking for ANSI C header files" >&5  echo "configure:2713: checking for ANSI C header files" >&5
2713  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2714    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2715  else  else
2716    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2717  #line 2715 "configure"  #line 2718 "configure"
2718  #include "confdefs.h"  #include "confdefs.h"
2719  #include <stdlib.h>  #include <stdlib.h>
2720  #include <stdarg.h>  #include <stdarg.h>
# Line 2719  else Line 2722  else
2722  #include <float.h>  #include <float.h>
2723  EOF  EOF
2724  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2725  { (eval echo configure:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2726  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2727  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2728    rm -rf conftest*    rm -rf conftest*
# Line 2736  rm -f conftest* Line 2739  rm -f conftest*
2739  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
2740    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2741  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2742  #line 2740 "configure"  #line 2743 "configure"
2743  #include "confdefs.h"  #include "confdefs.h"
2744  #include <string.h>  #include <string.h>
2745  EOF  EOF
# Line 2754  fi Line 2757  fi
2757  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
2758    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2759  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2760  #line 2758 "configure"  #line 2761 "configure"
2761  #include "confdefs.h"  #include "confdefs.h"
2762  #include <stdlib.h>  #include <stdlib.h>
2763  EOF  EOF
# Line 2775  if test "$cross_compiling" = yes; then Line 2778  if test "$cross_compiling" = yes; then
2778    :    :
2779  else  else
2780    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2781  #line 2779 "configure"  #line 2782 "configure"
2782  #include "confdefs.h"  #include "confdefs.h"
2783  #include <ctype.h>  #include <ctype.h>
2784  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# Line 2786  if (XOR (islower (i), ISLOWER (i)) || to Line 2789  if (XOR (islower (i), ISLOWER (i)) || to
2789  exit (0); }  exit (0); }
2790    
2791  EOF  EOF
2792  if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2793  then  then
2794    :    :
2795  else  else
# Line 2810  EOF Line 2813  EOF
2813  fi  fi
2814    
2815  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2816  echo "configure:2814: checking whether time.h and sys/time.h may both be included" >&5  echo "configure:2817: checking whether time.h and sys/time.h may both be included" >&5
2817  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2818    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2819  else  else
2820    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2821  #line 2819 "configure"  #line 2822 "configure"
2822  #include "confdefs.h"  #include "confdefs.h"
2823  #include <sys/types.h>  #include <sys/types.h>
2824  #include <sys/time.h>  #include <sys/time.h>
# Line 2824  int main() { Line 2827  int main() {
2827  struct tm *tp;  struct tm *tp;
2828  ; return 0; }  ; return 0; }
2829  EOF  EOF
2830  if { (eval echo configure:2828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2831    rm -rf conftest*    rm -rf conftest*
2832    ac_cv_header_time=yes    ac_cv_header_time=yes
2833  else  else
# Line 2845  EOF Line 2848  EOF
2848  fi  fi
2849    
2850  echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6  echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2851  echo "configure:2849: checking for sys_siglist declaration in signal.h or unistd.h" >&5  echo "configure:2852: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2852  if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2853    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2854  else  else
2855    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2856  #line 2854 "configure"  #line 2857 "configure"
2857  #include "confdefs.h"  #include "confdefs.h"
2858  #include <sys/types.h>  #include <sys/types.h>
2859  #include <signal.h>  #include <signal.h>
# Line 2862  int main() { Line 2865  int main() {
2865  char *msg = *(sys_siglist + 1);  char *msg = *(sys_siglist + 1);
2866  ; return 0; }  ; return 0; }
2867  EOF  EOF
2868  if { (eval echo configure:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2869    rm -rf conftest*    rm -rf conftest*
2870    ac_cv_decl_sys_siglist=yes    ac_cv_decl_sys_siglist=yes
2871  else  else
# Line 2883  EOF Line 2886  EOF
2886  fi  fi
2887    
2888  echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6  echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2889  echo "configure:2887: checking for sys/wait.h that is POSIX.1 compatible" >&5  echo "configure:2890: checking for sys/wait.h that is POSIX.1 compatible" >&5
2890  if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2891    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2892  else  else
2893    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2894  #line 2892 "configure"  #line 2895 "configure"
2895  #include "confdefs.h"  #include "confdefs.h"
2896  #include <sys/types.h>  #include <sys/types.h>
2897  #include <sys/wait.h>  #include <sys/wait.h>
# Line 2904  wait (&s); Line 2907  wait (&s);
2907  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2908  ; return 0; }  ; return 0; }
2909  EOF  EOF
2910  if { (eval echo configure:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2911    rm -rf conftest*    rm -rf conftest*
2912    ac_cv_header_sys_wait_h=yes    ac_cv_header_sys_wait_h=yes
2913  else  else
# Line 2926  fi Line 2929  fi
2929    
2930    
2931  echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6  echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2932  echo "configure:2930: checking for struct utimbuf" >&5  echo "configure:2933: checking for struct utimbuf" >&5
2933  if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2934    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2935  else  else
2936    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2937  #line 2935 "configure"  #line 2938 "configure"
2938  #include "confdefs.h"  #include "confdefs.h"
2939  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
2940  #include <sys/time.h>  #include <sys/time.h>
# Line 2950  int main() { Line 2953  int main() {
2953  static struct utimbuf x; x.actime = x.modtime;  static struct utimbuf x; x.actime = x.modtime;
2954  ; return 0; }  ; return 0; }
2955  EOF  EOF
2956  if { (eval echo configure:2954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2957    rm -rf conftest*    rm -rf conftest*
2958    emacs_cv_struct_utimbuf=yes    emacs_cv_struct_utimbuf=yes
2959  else  else
# Line 2971  EOF Line 2974  EOF
2974  fi  fi
2975    
2976  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2977  echo "configure:2975: checking return type of signal handlers" >&5  echo "configure:2978: checking return type of signal handlers" >&5
2978  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2979    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2980  else  else
2981    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2982  #line 2980 "configure"  #line 2983 "configure"
2983  #include "confdefs.h"  #include "confdefs.h"
2984  #include <sys/types.h>  #include <sys/types.h>
2985  #include <signal.h>  #include <signal.h>
# Line 2993  int main() { Line 2996  int main() {
2996  int i;  int i;
2997  ; return 0; }  ; return 0; }
2998  EOF  EOF
2999  if { (eval echo configure:2997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3000    rm -rf conftest*    rm -rf conftest*
3001    ac_cv_type_signal=void    ac_cv_type_signal=void
3002  else  else
# Line 3013  EOF Line 3016  EOF
3016    
3017    
3018  echo $ac_n "checking for speed_t""... $ac_c" 1>&6  echo $ac_n "checking for speed_t""... $ac_c" 1>&6
3019  echo "configure:3017: checking for speed_t" >&5  echo "configure:3020: checking for speed_t" >&5
3020  if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
3021    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3022  else  else
3023    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3024  #line 3022 "configure"  #line 3025 "configure"
3025  #include "confdefs.h"  #include "confdefs.h"
3026  #include <termios.h>  #include <termios.h>
3027  int main() {  int main() {
3028  speed_t x = 1;  speed_t x = 1;
3029  ; return 0; }  ; return 0; }
3030  EOF  EOF
3031  if { (eval echo configure:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3032    rm -rf conftest*    rm -rf conftest*
3033    emacs_cv_speed_t=yes    emacs_cv_speed_t=yes
3034  else  else
# Line 3044  EOF Line 3047  EOF
3047  fi  fi
3048    
3049  echo $ac_n "checking for struct timeval""... $ac_c" 1>&6  echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3050  echo "configure:3048: checking for struct timeval" >&5  echo "configure:3051: checking for struct timeval" >&5
3051  if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
3052    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3053  else  else
3054    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3055  #line 3053 "configure"  #line 3056 "configure"
3056  #include "confdefs.h"  #include "confdefs.h"
3057  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
3058  #include <sys/time.h>  #include <sys/time.h>
# Line 3065  int main() { Line 3068  int main() {
3068  static struct timeval x; x.tv_sec = x.tv_usec;  static struct timeval x; x.tv_sec = x.tv_usec;
3069  ; return 0; }  ; return 0; }
3070  EOF  EOF
3071  if { (eval echo configure:3069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3072    rm -rf conftest*    rm -rf conftest*
3073    emacs_cv_struct_timeval=yes    emacs_cv_struct_timeval=yes
3074  else  else
# Line 3087  EOF Line 3090  EOF
3090  fi  fi
3091    
3092  echo $ac_n "checking for struct exception""... $ac_c" 1>&6  echo $ac_n "checking for struct exception""... $ac_c" 1>&6
3093  echo "configure:3091: checking for struct exception" >&5  echo "configure:3094: checking for struct exception" >&5
3094  if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
3095    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3096  else  else
3097    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3098  #line 3096 "configure"  #line 3099 "configure"
3099  #include "confdefs.h"  #include "confdefs.h"
3100  #include <math.h>  #include <math.h>
3101  int main() {  int main() {
3102  static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;  static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
3103  ; return 0; }  ; return 0; }
3104  EOF  EOF
3105  if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3106    rm -rf conftest*    rm -rf conftest*
3107    emacs_cv_struct_exception=yes    emacs_cv_struct_exception=yes
3108  else  else
# Line 3121  EOF Line 3124  EOF
3124  fi  fi
3125    
3126  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3127  echo "configure:3125: checking whether struct tm is in sys/time.h or time.h" >&5  echo "configure:3128: checking whether struct tm is in sys/time.h or time.h" >&5
3128  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3129    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3130  else  else
3131    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3132  #line 3130 "configure"  #line 3133 "configure"
3133  #include "confdefs.h"  #include "confdefs.h"
3134  #include <sys/types.h>  #include <sys/types.h>
3135  #include <time.h>  #include <time.h>
# Line 3134  int main() { Line 3137  int main() {
3137  struct tm *tp; tp->tm_sec;  struct tm *tp; tp->tm_sec;
3138  ; return 0; }  ; return 0; }
3139  EOF  EOF
3140  if { (eval echo configure:3138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3141    rm -rf conftest*    rm -rf conftest*
3142    ac_cv_struct_tm=time.h    ac_cv_struct_tm=time.h
3143  else  else
# Line 3155  EOF Line 3158  EOF
3158  fi  fi
3159    
3160  echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6  echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3161  echo "configure:3159: checking for tm_zone in struct tm" >&5  echo "configure:3162: checking for tm_zone in struct tm" >&5
3162  if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3163    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3164  else  else
3165    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3166  #line 3164 "configure"  #line 3167 "configure"
3167  #include "confdefs.h"  #include "confdefs.h"
3168  #include <sys/types.h>  #include <sys/types.h>
3169  #include <$ac_cv_struct_tm>  #include <$ac_cv_struct_tm>
# Line 3168  int main() { Line 3171  int main() {
3171  struct tm tm; tm.tm_zone;  struct tm tm; tm.tm_zone;
3172  ; return 0; }  ; return 0; }
3173  EOF  EOF
3174  if { (eval echo configure:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3175    rm -rf conftest*    rm -rf conftest*
3176    ac_cv_struct_tm_zone=yes    ac_cv_struct_tm_zone=yes
3177  else  else
# Line 3188  EOF Line 3191  EOF
3191    
3192  else  else
3193    echo $ac_n "checking for tzname""... $ac_c" 1>&6    echo $ac_n "checking for tzname""... $ac_c" 1>&6
3194  echo "configure:3192: checking for tzname" >&5  echo "configure:3195: checking for tzname" >&5
3195  if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3196    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3197  else  else
3198    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3199  #line 3197 "configure"  #line 3200 "configure"
3200  #include "confdefs.h"  #include "confdefs.h"
3201  #include <time.h>  #include <time.h>
3202  #ifndef tzname /* For SGI.  */  #ifndef tzname /* For SGI.  */
# Line 3203  int main() { Line 3206  int main() {
3206  atoi(*tzname);  atoi(*tzname);
3207  ; return 0; }  ; return 0; }
3208  EOF  EOF
3209  if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3210    rm -rf conftest*    rm -rf conftest*
3211    ac_cv_var_tzname=yes    ac_cv_var_tzname=yes
3212  else  else
# Line 3225  EOF Line 3228  EOF
3228  fi  fi
3229    
3230  echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6  echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3231  echo "configure:3229: checking for tm_gmtoff in struct tm" >&5  echo "configure:3232: checking for tm_gmtoff in struct tm" >&5
3232  if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
3233    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3234  else  else
3235    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3236  #line 3234 "configure"  #line 3237 "configure"
3237  #include "confdefs.h"  #include "confdefs.h"
3238  #include <time.h>  #include <time.h>
3239  int main() {  int main() {
3240  struct tm t; t.tm_gmtoff = 0  struct tm t; t.tm_gmtoff = 0
3241  ; return 0; }  ; return 0; }
3242  EOF  EOF
3243  if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3244    rm -rf conftest*    rm -rf conftest*
3245    emacs_cv_tm_gmtoff=yes    emacs_cv_tm_gmtoff=yes
3246  else  else
# Line 3259  fi Line 3262  fi
3262    
3263    
3264  echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6  echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3265  echo "configure:3263: checking for ${CC-cc} option to accept ANSI C" >&5  echo "configure:3266: checking for ${CC-cc} option to accept ANSI C" >&5
3266  if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
3267    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3268  else  else
# Line 3276  for ac_arg in "" -qlanglvl=ansi -std1 -A Line 3279  for ac_arg in "" -qlanglvl=ansi -std1 -A
3279  do  do
3280    CC="$ac_save_CC $ac_arg"    CC="$ac_save_CC $ac_arg"
3281    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3282  #line 3280 "configure"  #line 3283 "configure"
3283  #include "confdefs.h"  #include "confdefs.h"
3284  #include <stdarg.h>  #include <stdarg.h>
3285  #include <stdio.h>  #include <stdio.h>
# Line 3310  int main() { Line 3313  int main() {
3313  return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];  return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3314  ; return 0; }  ; return 0; }
3315  EOF  EOF
3316  if { (eval echo configure:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317    rm -rf conftest*    rm -rf conftest*
3318    ac_cv_prog_cc_stdc="$ac_arg"; break    ac_cv_prog_cc_stdc="$ac_arg"; break
3319  else  else
# Line 3332  case "x$ac_cv_prog_cc_stdc" in Line 3335  case "x$ac_cv_prog_cc_stdc" in
3335  esac  esac
3336    
3337  echo $ac_n "checking for function prototypes""... $ac_c" 1>&6  echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
3338  echo "configure:3336: checking for function prototypes" >&5  echo "configure:3339: checking for function prototypes" >&5
3339  if test "$ac_cv_prog_cc_stdc" != no; then  if test "$ac_cv_prog_cc_stdc" != no; then
3340    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
3341    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
# Line 3344  else Line 3347  else
3347  fi  fi
3348    
3349  echo $ac_n "checking for working volatile""... $ac_c" 1>&6  echo $ac_n "checking for working volatile""... $ac_c" 1>&6
3350  echo "configure:3348: checking for working volatile" >&5  echo "configure:3351: checking for working volatile" >&5
3351  if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
3352    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3353  else  else
3354    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3355  #line 3353 "configure"  #line 3356 "configure"
3356  #include "confdefs.h"  #include "confdefs.h"
3357    
3358  int main() {  int main() {
# Line 3358  volatile int x; Line 3361  volatile int x;
3361  int * volatile y;  int * volatile y;
3362  ; return 0; }  ; return 0; }
3363  EOF  EOF
3364  if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3365    rm -rf conftest*    rm -rf conftest*
3366    ac_cv_c_volatile=yes    ac_cv_c_volatile=yes
3367  else  else
# Line 3379  EOF Line 3382  EOF
3382  fi  fi
3383    
3384  echo $ac_n "checking for working const""... $ac_c" 1>&6  echo $ac_n "checking for working const""... $ac_c" 1>&6
3385  echo "configure:3383: checking for working const" >&5  echo "configure:3386: checking for working const" >&5
3386  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3387    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3388  else  else
3389    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3390  #line 3388 "configure"  #line 3391 "configure"
3391  #include "confdefs.h"  #include "confdefs.h"
3392    
3393  int main() {  int main() {
# Line 3433  ccp = (char const *const *) p; Line 3436  ccp = (char const *const *) p;
3436    
3437  ; return 0; }  ; return 0; }
3438  EOF  EOF
3439  if { (eval echo configure:3437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3440    rm -rf conftest*    rm -rf conftest*
3441    ac_cv_c_const=yes    ac_cv_c_const=yes
3442  else  else
# Line 3454  EOF Line 3457  EOF
3457  fi  fi
3458    
3459  echo $ac_n "checking for void * support""... $ac_c" 1>&6  echo $ac_n "checking for void * support""... $ac_c" 1>&6
3460  echo "configure:3458: checking for void * support" >&5  echo "configure:3461: checking for void * support" >&5
3461  if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
3462    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3463  else  else
3464    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3465  #line 3463 "configure"  #line 3466 "configure"
3466  #include "confdefs.h"  #include "confdefs.h"
3467    
3468  int main() {  int main() {
3469  void * foo;  void * foo;
3470  ; return 0; }  ; return 0; }
3471  EOF  EOF
3472  if { (eval echo configure:3470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3473    rm -rf conftest*    rm -rf conftest*
3474    emacs_cv_void_star=yes    emacs_cv_void_star=yes
3475  else  else
# Line 3492  EOF Line 3495  EOF
3495  fi  fi
3496    
3497  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3498  echo "configure:3496: checking whether ${MAKE-make} sets \${MAKE}" >&5  echo "configure:3499: checking whether ${MAKE-make} sets \${MAKE}" >&5
3499  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3500  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3501    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3520  fi Line 3523  fi
3523    
3524    
3525  echo $ac_n "checking for long file names""... $ac_c" 1>&6  echo $ac_n "checking for long file names""... $ac_c" 1>&6
3526  echo "configure:3524: checking for long file names" >&5  echo "configure:3527: checking for long file names" >&5
3527  if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3528    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3529  else  else
# Line 3571  fi Line 3574  fi
3574  # Uses ac_ vars as temps to allow command line to override cache and checks.  # Uses ac_ vars as temps to allow command line to override cache and checks.
3575  # --without-x overrides everything else, but does not touch the cache.  # --without-x overrides everything else, but does not touch the cache.
3576  echo $ac_n "checking for X""... $ac_c" 1>&6  echo $ac_n "checking for X""... $ac_c" 1>&6
3577  echo "configure:3575: checking for X" >&5  echo "configure:3578: checking for X" >&5
3578    
3579  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
3580  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
# Line 3633  if test "$ac_x_includes" = NO; then Line 3636  if test "$ac_x_includes" = NO; then
3636    
3637    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
3638  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3639  #line 3637 "configure"  #line 3640 "configure"
3640  #include "confdefs.h"  #include "confdefs.h"
3641  #include <$x_direct_test_include>  #include <$x_direct_test_include>
3642  EOF  EOF
3643  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3644  { (eval echo configure:3642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3645  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3646  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3647    rm -rf conftest*    rm -rf conftest*
# Line 3707  if test "$ac_x_libraries" = NO; then Line 3710  if test "$ac_x_libraries" = NO; then
3710    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3711    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-l$x_direct_test_library $LIBS"
3712  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3713  #line 3711 "configure"  #line 3714 "configure"
3714  #include "confdefs.h"  #include "confdefs.h"
3715    
3716  int main() {  int main() {
3717  ${x_direct_test_function}()  ${x_direct_test_function}()
3718  ; return 0; }  ; return 0; }
3719  EOF  EOF
3720  if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3721    rm -rf conftest*    rm -rf conftest*
3722    LIBS="$ac_save_LIBS"    LIBS="$ac_save_LIBS"
3723  # We can link X programs with no special library path.  # We can link X programs with no special library path.
# Line 3895  UNEXEC_SRC="`echo ${unexec} | sed 's/\.o Line 3898  UNEXEC_SRC="`echo ${unexec} | sed 's/\.o
3898  GNU_MALLOC=yes  GNU_MALLOC=yes
3899  doug_lea_malloc=yes  doug_lea_malloc=yes
3900  echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6  echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3901  echo "configure:3899: checking for malloc_get_state" >&5  echo "configure:3902: checking for malloc_get_state" >&5
3902  if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3903    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3904  else  else
3905    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3906  #line 3904 "configure"  #line 3907 "configure"
3907  #include "confdefs.h"  #include "confdefs.h"
3908  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3909      which can conflict with char malloc_get_state(); below.  */      which can conflict with char malloc_get_state(); below.  */
# Line 3923  malloc_get_state(); Line 3926  malloc_get_state();
3926    
3927  ; return 0; }  ; return 0; }
3928  EOF  EOF
3929  if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3930    rm -rf conftest*    rm -rf conftest*
3931    eval "ac_cv_func_malloc_get_state=yes"    eval "ac_cv_func_malloc_get_state=yes"
3932  else  else
# Line 3944  doug_lea_malloc=no Line 3947  doug_lea_malloc=no
3947  fi  fi
3948    
3949  echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6  echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3950  echo "configure:3948: checking for malloc_set_state" >&5  echo "configure:3951: checking for malloc_set_state" >&5
3951  if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3952    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3953  else  else
3954    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3955  #line 3953 "configure"  #line 3956 "configure"
3956  #include "confdefs.h"  #include "confdefs.h"
3957  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3958      which can conflict with char malloc_set_state(); below.  */      which can conflict with char malloc_set_state(); below.  */
# Line 3972  malloc_set_state(); Line 3975  malloc_set_state();
3975    
3976  ; return 0; }  ; return 0; }
3977  EOF  EOF
3978  if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3979    rm -rf conftest*    rm -rf conftest*
3980    eval "ac_cv_func_malloc_set_state=yes"    eval "ac_cv_func_malloc_set_state=yes"
3981  else  else
# Line 3993  doug_lea_malloc=no Line 3996  doug_lea_malloc=no
3996  fi  fi
3997    
3998  echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6  echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3999  echo "configure:3997: checking whether __after_morecore_hook exists" >&5  echo "configure:4000: checking whether __after_morecore_hook exists" >&5
4000  if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
4001    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4002  else  else
4003    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4004  #line 4002 "configure"  #line 4005 "configure"
4005  #include "confdefs.h"  #include "confdefs.h"
4006  extern void (* __after_morecore_hook)();  extern void (* __after_morecore_hook)();
4007  int main() {  int main() {
4008  __after_morecore_hook = 0  __after_morecore_hook = 0
4009  ; return 0; }  ; return 0; }
4010  EOF  EOF
4011  if { (eval echo configure:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4012    rm -rf conftest*    rm -rf conftest*
4013    emacs_cv_var___after_morecore_hook=yes    emacs_cv_var___after_morecore_hook=yes
4014  else  else
# Line 4046  for ac_hdr in stdlib.h unistd.h sys/stat Line 4049  for ac_hdr in stdlib.h unistd.h sys/stat
4049  do  do
4050  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4051  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4052  echo "configure:4050: checking for $ac_hdr" >&5  echo "configure:4053: checking for $ac_hdr" >&5
4053  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4054    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4055  else  else
4056    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4057  #line 4055 "configure"  #line 4058 "configure"
4058  #include "confdefs.h"  #include "confdefs.h"
4059  #include <$ac_hdr>  #include <$ac_hdr>
4060  EOF  EOF
4061  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4062  { (eval echo configure:4060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4063  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4064  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4065    rm -rf conftest*    rm -rf conftest*
# Line 4085  done Line 4088  done
4088  for ac_func in getpagesize  for ac_func in getpagesize
4089  do  do
4090  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4091  echo "configure:4089: checking for $ac_func" >&5  echo "configure:4092: checking for $ac_func" >&5
4092  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4093    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4094  else  else
4095    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4096  #line 4094 "configure"  #line 4097 "configure"
4097  #include "confdefs.h"  #include "confdefs.h"
4098  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4099      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 4113  $ac_func(); Line 4116  $ac_func();
4116    
4117  ; return 0; }  ; return 0; }
4118  EOF  EOF
4119  if { (eval echo configure:4117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4120    rm -rf conftest*    rm -rf conftest*
4121    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
4122  else  else
# Line 4138  fi Line 4141  fi
4141  done  done
4142    
4143  echo $ac_n "checking for working mmap""... $ac_c" 1>&6  echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4144  echo "configure:4142: checking for working mmap" >&5  echo "configure:4145: checking for working mmap" >&5
4145  if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4146    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4147  else  else
# Line 4146  else Line 4149  else
4149    ac_cv_func_mmap_fixed_mapped=no    ac_cv_func_mmap_fixed_mapped=no
4150  else  else
4151    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4152  #line 4150 "configure"  #line 4153 "configure"
4153  #include "confdefs.h"  #include "confdefs.h"
4154  /* Thanks to Mike Haertel and Jim Avera for this test.  /* Thanks to Mike Haertel and Jim Avera for this test.
4155     Here is a matrix of mmap possibilities:     Here is a matrix of mmap possibilities:
# Line 4280  main () Line 4283  main ()
4283    exit (0);    exit (0);
4284  }  }
4285  EOF  EOF
4286  if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4287  then  then
4288    ac_cv_func_mmap_fixed_mapped=yes    ac_cv_func_mmap_fixed_mapped=yes
4289  else  else
# Line 4309  fi Line 4312  fi
4312  LIBS="$libsrc_libs $LIBS"  LIBS="$libsrc_libs $LIBS"
4313    
4314  echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6  echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4315  echo "configure:4313: checking for dnet_ntoa in -ldnet" >&5  echo "configure:4316: checking for dnet_ntoa in -ldnet" >&5
4316  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4317  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4318    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4317  else Line 4320  else
4320    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4321  LIBS="-ldnet  $LIBS"  LIBS="-ldnet  $LIBS"
4322  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4323  #line 4321 "configure"  #line 4324 "configure"
4324  #include "confdefs.h"  #include "confdefs.h"
4325  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4326  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 4328  int main() { Line 4331  int main() {
4331  dnet_ntoa()  dnet_ntoa()
4332  ; return 0; }  ; return 0; }
4333  EOF  EOF
4334  if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4335    rm -rf conftest*    rm -rf conftest*
4336    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4337  else  else
# Line 4357  fi Line 4360  fi
4360    
4361    
4362  echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4363  echo "configure:4361: checking for main in -lXbsd" >&5  echo "configure:4364: checking for main in -lXbsd" >&5
4364  ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4365  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4366    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4365  else Line 4368  else
4368    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4369  LIBS="-lXbsd  $LIBS"  LIBS="-lXbsd  $LIBS"
4370  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4371  #line 4369 "configure"  #line 4372 "configure"
4372  #include "confdefs.h"  #include "confdefs.h"
4373    
4374  int main() {  int main() {
4375  main()  main()
4376  ; return 0; }  ; return 0; }
4377  EOF  EOF
4378  if { (eval echo configure:4376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4379    rm -rf conftest*    rm -rf conftest*
4380    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4381  else  else
# Line 4394  fi Line 4397  fi
4397    
4398    
4399  echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6  echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4400  echo "configure:4398: checking for cma_open in -lpthreads" >&5  echo "configure:4401: checking for cma_open in -lpthreads" >&5
4401  ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`  ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4402  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4403    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4402  else Line 4405  else
4405    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4406  LIBS="-lpthreads  $LIBS"  LIBS="-lpthreads  $LIBS"
4407  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4408  #line 4406 "configure"  #line 4409 "configure"
4409  #include "confdefs.h"  #include "confdefs.h"
4410  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4411  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 4413  int main() { Line 4416  int main() {
4416  cma_open()  cma_open()
4417  ; return 0; }  ; return 0; }
4418  EOF  EOF
4419  if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4420    rm -rf conftest*    rm -rf conftest*
4421    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4422  else  else
# Line 4442  fi Line 4445  fi
4445    
4446    
4447  echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6  echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
4448  echo "configure:4446: checking for XFree86 in /usr/X386" >&5  echo "configure:4449: checking for XFree86 in /usr/X386" >&5
4449  if test -d /usr/X386/include; then  if test -d /usr/X386/include; then
4450    HAVE_XFREE386=yes    HAVE_XFREE386=yes
4451    : ${C_SWITCH_X_SITE="-I/usr/X386/include"}    : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
# Line 4474  if test "${HAVE_X11}" = "yes"; then Line 4477  if test "${HAVE_X11}" = "yes"; then
4477    
4478    if test "${opsys}" = "gnu-linux"; then    if test "${opsys}" = "gnu-linux"; then
4479      echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6      echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
4480  echo "configure:4478: checking whether X on GNU/Linux needs -b to link" >&5  echo "configure:4481: checking whether X on GNU/Linux needs -b to link" >&5
4481      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
4482  #line 4480 "configure"  #line 4483 "configure"
4483  #include "confdefs.h"  #include "confdefs.h"
4484    
4485  int main() {  int main() {
4486  XOpenDisplay ("foo");  XOpenDisplay ("foo");
4487  ; return 0; }  ; return 0; }
4488  EOF  EOF
4489  if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4490    rm -rf conftest*    rm -rf conftest*
4491    xlinux_first_failure=no    xlinux_first_failure=no
4492  else  else
# Line 4503  rm -f conftest* Line 4506  rm -f conftest*
4506        CPPFLAGS="$CPPFLAGS -b i486-linuxaout"        CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
4507        LIBS="$LIBS -b i486-linuxaout"        LIBS="$LIBS -b i486-linuxaout"
4508        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
4509  #line 4507 "configure"  #line 4510 "configure"
4510  #include "confdefs.h"  #include "confdefs.h"
4511    
4512  int main() {  int main() {
4513  XOpenDisplay ("foo");  XOpenDisplay ("foo");
4514  ; return 0; }  ; return 0; }
4515  EOF  EOF
4516  if { (eval echo configure:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4517    rm -rf conftest*    rm -rf conftest*
4518    xlinux_second_failure=no    xlinux_second_failure=no
4519  else  else
# Line 4539  rm -f conftest* Line 4542  rm -f conftest*
4542    # Reportedly, some broken Solaris systems have XKBlib.h but are missing    # Reportedly, some broken Solaris systems have XKBlib.h but are missing
4543    # header files included from there.    # header files included from there.
4544    echo $ac_n "checking for Xkb""... $ac_c" 1>&6    echo $ac_n "checking for Xkb""... $ac_c" 1>&6
4545  echo "configure:4543: checking for Xkb" >&5  echo "configure:4546: checking for Xkb" >&5
4546    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4547  #line 4545 "configure"  #line 4548 "configure"
4548  #include "confdefs.h"  #include "confdefs.h"
4549  #include <X11/Xlib.h>  #include <X11/Xlib.h>
4550  #include <X11/XKBlib.h>  #include <X11/XKBlib.h>
# Line 4549  int main() { Line 4552  int main() {
4552  XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);  XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
4553  ; return 0; }  ; return 0; }
4554  EOF  EOF
4555  if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4556    rm -rf conftest*    rm -rf conftest*
4557    emacs_xkb=yes    emacs_xkb=yes
4558  else  else
# Line 4571  EOF Line 4574  EOF
4574  XScreenNumberOfScreen XSetWMProtocols  XScreenNumberOfScreen XSetWMProtocols
4575  do  do
4576  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4577  echo "configure:4575: checking for $ac_func" >&5  echo "configure:4578: checking for $ac_func" >&5
4578  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4579    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4580  else  else
4581    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4582  #line 4580 "configure"  #line 4583 "configure"
4583  #include "confdefs.h"  #include "confdefs.h"
4584  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4585      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 4599  $ac_func(); Line 4602  $ac_func();
4602    
4603  ; return 0; }  ; return 0; }
4604  EOF  EOF
4605  if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4606    rm -rf conftest*    rm -rf conftest*
4607    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
4608  else  else
# Line 4627  fi Line 4630  fi
4630    
4631  if test "${window_system}" = "x11"; then  if test "${window_system}" = "x11"; then
4632    echo $ac_n "checking X11 version 6""... $ac_c" 1>&6    echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4633  echo "configure:4631: checking X11 version 6" >&5  echo "configure:4634: checking X11 version 6" >&5
4634    if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then    if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4635    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4636  else  else
4637    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4638  #line 4636 "configure"  #line 4639 "configure"
4639  #include "confdefs.h"  #include "confdefs.h"
4640  #include <X11/Xlib.h>  #include <X11/Xlib.h>
4641  int main() {  int main() {
# Line 4642  fail; Line 4645  fail;
4645    
4646  ; return 0; }  ; return 0; }
4647  EOF  EOF
4648  if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4649    rm -rf conftest*    rm -rf conftest*
4650    emacs_cv_x11_version_6=yes    emacs_cv_x11_version_6=yes
4651  else  else
# Line 4667  fi Line 4670  fi
4670    
4671  if test "${window_system}" = "x11"; then  if test "${window_system}" = "x11"; then
4672    echo $ac_n "checking X11 version 5""... $ac_c" 1>&6    echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4673  echo "configure:4671: checking X11 version 5" >&5  echo "configure:4674: checking X11 version 5" >&5
4674    if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then    if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4675    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4676  else  else
4677    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4678  #line 4676 "configure"  #line 4679 "configure"
4679  #include "confdefs.h"  #include "confdefs.h"
4680  #include <X11/Xlib.h>  #include <X11/Xlib.h>
4681  int main() {  int main() {
# Line 4682  fail; Line 4685  fail;
4685    
4686  ; return 0; }  ; return 0; }
4687  EOF  EOF
4688  if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4689    rm -rf conftest*    rm -rf conftest*
4690    emacs_cv_x11_version_5=yes    emacs_cv_x11_version_5=yes
4691  else  else
# Line 4710  fi Line 4713  fi
4713  if test x"${USE_X_TOOLKIT}" = xmaybe; then  if test x"${USE_X_TOOLKIT}" = xmaybe; then
4714    if test x"${HAVE_X11R5}" = xyes; then    if test x"${HAVE_X11R5}" = xyes; then
4715      echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6      echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4716  echo "configure:4714: checking X11 version 5 with Xaw" >&5  echo "configure:4717: checking X11 version 5 with Xaw" >&5
4717      if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then      if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4718    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4719  else  else
4720    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4721  #line 4719 "configure"  #line 4722 "configure"
4722  #include "confdefs.h"  #include "confdefs.h"
4723    
4724  #include <X11/Intrinsic.h>  #include <X11/Intrinsic.h>
# Line 4724  int main() { Line 4727  int main() {
4727    
4728  ; return 0; }  ; return 0; }
4729  EOF  EOF
4730  if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4731    rm -rf conftest*    rm -rf conftest*
4732    emacs_cv_x11_version_5_with_xaw=yes    emacs_cv_x11_version_5_with_xaw=yes
4733  else  else
# Line 4752  X_TOOLKIT_TYPE=$USE_X_TOOLKIT Line 4755  X_TOOLKIT_TYPE=$USE_X_TOOLKIT
4755    
4756  if test "${USE_X_TOOLKIT}" != "none"; then  if test "${USE_X_TOOLKIT}" != "none"; then
4757    echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6    echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4758  echo "configure:4756: checking X11 toolkit version" >&5  echo "configure:4759: checking X11 toolkit version" >&5
4759    if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then    if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4760    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4761  else  else
4762    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4763  #line 4761 "configure"  #line 4764 "configure"
4764  #include "confdefs.h"  #include "confdefs.h"
4765  #include <X11/Intrinsic.h>  #include <X11/Intrinsic.h>
4766  int main() {  int main() {
# Line 4767  fail; Line 4770  fail;
4770    
4771  ; return 0; }  ; return 0; }
4772  EOF  EOF
4773  if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4774    rm -rf conftest*    rm -rf conftest*
4775    emacs_cv_x11_toolkit_version_6=yes    emacs_cv_x11_toolkit_version_6=yes
4776  else  else
# Line 4797  EOF Line 4800  EOF
4800      LIBS="-lXt $LIBS"      LIBS="-lXt $LIBS"
4801    fi    fi
4802    echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6    echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4803  echo "configure:4801: checking for XmuConvertStandardSelection in -lXmu" >&5  echo "configure:4804: checking for XmuConvertStandardSelection in -lXmu" >&5
4804  ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4805  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4806    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4805  else Line 4808  else
4808    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4809  LIBS="-lXmu  $LIBS"  LIBS="-lXmu  $LIBS"
4810  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4811  #line 4809 "configure"  #line 4812 "configure"
4812  #include "confdefs.h"  #include "confdefs.h"
4813  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4814  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 4816  int main() { Line 4819  int main() {
4819  XmuConvertStandardSelection()  XmuConvertStandardSelection()
4820  ; return 0; }  ; return 0; }
4821  EOF  EOF
4822  if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4823    rm -rf conftest*    rm -rf conftest*
4824    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4825  else  else
# Line 4850  fi Line 4853  fi
4853  if test "${HAVE_X11}" = "yes"; then  if test "${HAVE_X11}" = "yes"; then
4854    if test "${USE_X_TOOLKIT}" != "none"; then    if test "${USE_X_TOOLKIT}" != "none"; then
4855      echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6      echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
4856  echo "configure:4854: checking for XShapeQueryExtension in -lXext" >&5  echo "configure:4857: checking for XShapeQueryExtension in -lXext" >&5
4857  ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
4858  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4859    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4858  else Line 4861  else
4861    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4862  LIBS="-lXext  $LIBS"  LIBS="-lXext  $LIBS"
4863  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4864  #line 4862 "configure"  #line 4865 "configure"
4865  #include "confdefs.h"  #include "confdefs.h"
4866  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4867  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 4869  int main() { Line 4872  int main() {
4872  XShapeQueryExtension()  XShapeQueryExtension()
4873  ; return 0; }  ; return 0; }
4874  EOF  EOF
4875  if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4876    rm -rf conftest*    rm -rf conftest*
4877    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4878  else  else
# Line 4901  fi Line 4904  fi
4904    
4905  if test "${USE_X_TOOLKIT}" = "MOTIF"; then  if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4906    echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6    echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4907  echo "configure:4905: checking for Motif version 2.1" >&5  echo "configure:4908: checking for Motif version 2.1" >&5
4908  if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4909    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4910  else  else
4911    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4912  #line 4910 "configure"  #line 4913 "configure"
4913  #include "confdefs.h"  #include "confdefs.h"
4914  #include <Xm/Xm.h>  #include <Xm/Xm.h>
4915  int main() {  int main() {
# Line 4917  Motif version prior to 2.1. Line 4920  Motif version prior to 2.1.
4920  #endif  #endif
4921  ; return 0; }  ; return 0; }
4922  EOF  EOF
4923  if { (eval echo configure:4921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4924    rm -rf conftest*    rm -rf conftest*
4925    emacs_cv_motif_version_2_1=yes    emacs_cv_motif_version_2_1=yes
4926  else  else
# Line 4938  echo "$ac_t""$emacs_cv_motif_version_2_1 Line 4941  echo "$ac_t""$emacs_cv_motif_version_2_1
4941  EOF  EOF
4942    
4943      echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6      echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4944  echo "configure:4942: checking for XpCreateContext in -lXp" >&5  echo "configure:4945: checking for XpCreateContext in -lXp" >&5
4945  ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4946  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4947    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4946  else Line 4949  else
4949    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4950  LIBS="-lXp  $LIBS"  LIBS="-lXp  $LIBS"
4951  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4952  #line 4950 "configure"  #line 4953 "configure"
4953  #include "confdefs.h"  #include "confdefs.h"
4954  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4955  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 4957  int main() { Line 4960  int main() {
4960  XpCreateContext()  XpCreateContext()
4961  ; return 0; }  ; return 0; }
4962  EOF  EOF
4963  if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4964    rm -rf conftest*    rm -rf conftest*
4965    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4966  else  else
# Line 4992  if test "${HAVE_X11}" = "yes"; then Line 4995  if test "${HAVE_X11}" = "yes"; then
4995    if test "${USE_X_TOOLKIT}" != "none"; then    if test "${USE_X_TOOLKIT}" != "none"; then
4996      ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4997  echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6  echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4998  echo "configure:4996: checking for X11/Xaw3d/Scrollbar.h" >&5  echo "configure:4999: checking for X11/Xaw3d/Scrollbar.h" >&5
4999  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5000    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5001  else  else
5002    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5003  #line 5001 "configure"  #line 5004 "configure"
5004  #include "confdefs.h"  #include "confdefs.h"
5005  #include <X11/Xaw3d/Scrollbar.h>  #include <X11/Xaw3d/Scrollbar.h>
5006  EOF  EOF
5007  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5008  { (eval echo configure:5006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5009  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5010  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5011    rm -rf conftest*    rm -rf conftest*
# Line 5019  fi Line 5022  fi
5022  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5023    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
5024    echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6    echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
5025  echo "configure:5023: checking for XawScrollbarSetThumb in -lXaw3d" >&5  echo "configure:5026: checking for XawScrollbarSetThumb in -lXaw3d" >&5
5026  ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
5027  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5028    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5027  else Line 5030  else
5030    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5031  LIBS="-lXaw3d  $LIBS"  LIBS="-lXaw3d  $LIBS"
5032  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5033  #line 5031 "configure"  #line 5034 "configure"
5034  #include "confdefs.h"  #include "confdefs.h"
5035  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5036  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 5038  int main() { Line 5041  int main() {
5041  XawScrollbarSetThumb()  XawScrollbarSetThumb()
5042  ; return 0; }  ; return 0; }
5043  EOF  EOF
5044  if { (eval echo configure:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5045    rm -rf conftest*    rm -rf conftest*
5046    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5047  else  else
# Line 5106  if test "${HAVE_X11}" = "yes"; then Line 5109  if test "${HAVE_X11}" = "yes"; then
5109    if test "${with_xpm}" != "no"; then    if test "${with_xpm}" != "no"; then
5110      ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
5111  echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6  echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
5112  echo "configure:5110: checking for X11/xpm.h" >&5  echo "configure:5113: checking for X11/xpm.h" >&5
5113  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5114    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5115  else  else
5116    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5117  #line 5115 "configure"  #line 5118 "configure"
5118  #include "confdefs.h"  #include "confdefs.h"
5119  #include <X11/xpm.h>  #include <X11/xpm.h>
5120  EOF  EOF
5121  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5122  { (eval echo configure:5120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5123  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5124  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5125    rm -rf conftest*    rm -rf conftest*
# Line 5133  fi Line 5136  fi
5136  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5137    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
5138    echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6    echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
5139  echo "configure:5137: checking for XpmReadFileToPixmap in -lXpm" >&5  echo "configure:5140: checking for XpmReadFileToPixmap in -lXpm" >&5
5140  ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
5141  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5142    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5141  else Line 5144  else
5144    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5145  LIBS="-lXpm -lX11 $LIBS"  LIBS="-lXpm -lX11 $LIBS"
5146  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5147  #line 5145 "configure"  #line 5148 "configure"
5148  #include "confdefs.h"  #include "confdefs.h"
5149  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5150  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 5152  int main() { Line 5155  int main() {
5155  XpmReadFileToPixmap()  XpmReadFileToPixmap()
5156  ; return 0; }  ; return 0; }
5157  EOF  EOF
5158  if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5159    rm -rf conftest*    rm -rf conftest*
5160    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5161  else  else
# Line 5178  fi Line 5181  fi
5181    
5182      if test "${HAVE_XPM}" = "yes"; then      if test "${HAVE_XPM}" = "yes"; then
5183        echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6        echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6
5184  echo "configure:5182: checking for XpmReturnAllocPixels preprocessor define" >&5  echo "configure:5185: checking for XpmReturnAllocPixels preprocessor define" >&5
5185        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
5186  #line 5184 "configure"  #line 5187 "configure"
5187  #include "confdefs.h"  #include "confdefs.h"
5188  #include "X11/xpm.h"  #include "X11/xpm.h"
5189  #ifndef XpmReturnAllocPixels  #ifndef XpmReturnAllocPixels
# Line 5221  if test "${HAVE_X11}" = "yes"; then Line 5224  if test "${HAVE_X11}" = "yes"; then
5224    if test "${with_jpeg}" != "no"; then    if test "${with_jpeg}" != "no"; then
5225              ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`              ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
5226  echo $ac_n "checking for jerror.h""... $ac_c" 1>&6  echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
5227  echo "configure:5225: checking for jerror.h" >&5  echo "configure:5228: checking for jerror.h" >&5
5228  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5229    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5230  else  else
5231    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5232  #line 5230 "configure"  #line 5233 "configure"
5233  #include "confdefs.h"  #include "confdefs.h"
5234  #include <jerror.h>  #include <jerror.h>
5235  EOF  EOF
5236  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5237  { (eval echo configure:5235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5238  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5239  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5240    rm -rf conftest*    rm -rf conftest*
# Line 5248  fi Line 5251  fi
5251  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5252    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
5253    echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6    echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5254  echo "configure:5252: checking for jpeg_destroy_compress in -ljpeg" >&5  echo "configure:5255: checking for jpeg_destroy_compress in -ljpeg" >&5
5255  ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`  ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5256  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5257    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5256  else Line 5259  else
5259    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5260  LIBS="-ljpeg  $LIBS"  LIBS="-ljpeg  $LIBS"
5261  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5262  #line 5260 "configure"  #line 5263 "configure"
5263  #include "confdefs.h"  #include "confdefs.h"
5264  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5265  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 5267  int main() { Line 5270  int main() {
5270  jpeg_destroy_compress()  jpeg_destroy_compress()
5271  ; return 0; }  ; return 0; }
5272  EOF  EOF
5273  if { (eval echo configure:5271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5274    rm -rf conftest*    rm -rf conftest*
5275    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5276  else  else
# Line 5307  if test "${HAVE_X11}" = "yes"; then Line 5310  if test "${HAVE_X11}" = "yes"; then
5310    if test "${with_png}" != "no"; then    if test "${with_png}" != "no"; then
5311      ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5312  echo $ac_n "checking for png.h""... $ac_c" 1>&6  echo $ac_n "checking for png.h""... $ac_c" 1>&6
5313  echo "configure:5311: checking for png.h" >&5  echo "configure:5314: checking for png.h" >&5
5314  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5315    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5316  else  else
5317    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5318  #line 5316 "configure"  #line 5319 "configure"
5319  #include "confdefs.h"  #include "confdefs.h"
5320  #include <png.h>  #include <png.h>
5321  EOF  EOF
5322  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5323  { (eval echo configure:5321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5324  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5325  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5326    rm -rf conftest*    rm -rf conftest*
# Line 5334  fi Line 5337  fi
5337  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5338    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
5339    echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6    echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6
5340  echo "configure:5338: checking for png_get_channels in -lpng" >&5  echo "configure:5341: checking for png_get_channels in -lpng" >&5
5341  ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`  ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`
5342  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5343    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5342  else Line 5345  else
5345    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5346  LIBS="-lpng -lz -lm $LIBS"  LIBS="-lpng -lz -lm $LIBS"
5347  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5348  #line 5346 "configure"  #line 5349 "configure"
5349  #include "confdefs.h"  #include "confdefs.h"
5350  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5351  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 5353  int main() { Line 5356  int main() {
5356  png_get_channels()  png_get_channels()
5357  ; return 0; }  ; return 0; }
5358  EOF  EOF
5359  if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5360    rm -rf conftest*    rm -rf conftest*
5361    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5362  else  else
# Line 5393  if test "${HAVE_X11}" = "yes"; then Line 5396  if test "${HAVE_X11}" = "yes"; then
5396    if test "${with_tiff}" != "no"; then    if test "${with_tiff}" != "no"; then
5397      ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5398  echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6  echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5399  echo "configure:5397: checking for tiffio.h" >&5  echo "configure:5400: checking for tiffio.h" >&5
5400  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5401    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5402  else  else
5403    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5404  #line 5402 "configure"  #line 5405 "configure"
5405  #include "confdefs.h"  #include "confdefs.h"
5406  #include <tiffio.h>  #include <tiffio.h>
5407  EOF  EOF
5408  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5409  { (eval echo configure:5407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5410  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5411  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5412    rm -rf conftest*    rm -rf conftest*
# Line 5423  if eval "test \"`echo '$ac_cv_header_'$a Line 5426  if eval "test \"`echo '$ac_cv_header_'$a
5426        # At least one tiff package requires the jpeg library.        # At least one tiff package requires the jpeg library.
5427        if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi        if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
5428        echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6        echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5429  echo "configure:5427: checking for TIFFGetVersion in -ltiff" >&5  echo "configure:5430: checking for TIFFGetVersion in -ltiff" >&5
5430  ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`  ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5431  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5432    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5431  else Line 5434  else
5434    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5435  LIBS="-ltiff $tifflibs $LIBS"  LIBS="-ltiff $tifflibs $LIBS"
5436  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5437  #line 5435 "configure"  #line 5438 "configure"
5438  #include "confdefs.h"  #include "confdefs.h"
5439  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5440  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 5442  int main() { Line 5445  int main() {
5445  TIFFGetVersion()  TIFFGetVersion()
5446  ; return 0; }  ; return 0; }
5447  EOF  EOF
5448  if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5449    rm -rf conftest*    rm -rf conftest*
5450    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5451  else  else
# Line 5482  if test "${HAVE_X11}" = "yes"; then Line 5485  if test "${HAVE_X11}" = "yes"; then
5485    if test "${with_gif}" != "no"; then    if test "${with_gif}" != "no"; then
5486      ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5487  echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6  echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5488  echo "configure:5486: checking for gif_lib.h" >&5  echo "configure:5489: checking for gif_lib.h" >&5
5489  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5490    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5491  else  else
5492    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5493  #line 5491 "configure"  #line 5494 "configure"
5494  #include "confdefs.h"  #include "confdefs.h"
5495  #include <gif_lib.h>  #include <gif_lib.h>
5496  EOF  EOF
5497  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5498  { (eval echo configure:5496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5499  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5500  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5501    rm -rf conftest*    rm -rf conftest*
# Line 5509  fi Line 5512  fi
5512  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5513    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
5514    echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6    echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
5515  echo "configure:5513: checking for DGifOpen in -lungif" >&5  echo "configure:5516: checking for DGifOpen in -lungif" >&5
5516  ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
5517  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5518    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5517  else Line 5520  else
5520    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5521  LIBS="-lungif  $LIBS"  LIBS="-lungif  $LIBS"
5522  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5523  #line 5521 "configure"  #line 5524 "configure"
5524  #include "confdefs.h"  #include "confdefs.h"
5525  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5526  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 5528  int main() { Line 5531  int main() {
5531  DGifOpen()  DGifOpen()
5532  ; return 0; }  ; return 0; }
5533  EOF  EOF
5534  if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5535    rm -rf conftest*    rm -rf conftest*
5536    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5537  else  else
# Line 5564  fi Line 5567  fi
5567    
5568  # If netdb.h doesn't declare h_errno, we must declare it by hand.  # If netdb.h doesn't declare h_errno, we must declare it by hand.
5569  echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6  echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
5570  echo "configure:5568: checking whether netdb declares h_errno" >&5  echo "configure:5571: checking whether netdb declares h_errno" >&5
5571  if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
5572    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5573  else  else
5574    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5575  #line 5573 "configure"  #line 5576 "configure"
5576  #include "confdefs.h"  #include "confdefs.h"
5577  #include <netdb.h>  #include <netdb.h>
5578  int main() {  int main() {
5579  return h_errno;  return h_errno;
5580  ; return 0; }  ; return 0; }
5581  EOF  EOF
5582  if { (eval echo configure:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5583    rm -rf conftest*    rm -rf conftest*
5584    emacs_cv_netdb_declares_h_errno=yes    emacs_cv_netdb_declares_h_errno=yes
5585  else  else
# Line 5599  fi Line 5602  fi
5602  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5603  # for constant arguments.  Useless!  # for constant arguments.  Useless!
5604  echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6  echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5605  echo "configure:5603: checking for working alloca.h" >&5  echo "configure:5606: checking for working alloca.h" >&5
5606  if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5607    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5608  else  else
5609    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5610  #line 5608 "configure"  #line 5611 "configure"
5611  #include "confdefs.h"  #include "confdefs.h"
5612  #include <alloca.h>  #include <alloca.h>
5613  int main() {  int main() {
5614  char *p = alloca(2 * sizeof(int));  char *p = alloca(2 * sizeof(int));
5615  ; return 0; }  ; return 0; }
5616  EOF  EOF
5617  if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5618    rm -rf conftest*    rm -rf conftest*
5619    ac_cv_header_alloca_h=yes    ac_cv_header_alloca_h=yes
5620  else  else
# Line 5632  EOF Line 5635  EOF
5635  fi  fi
5636    
5637  echo $ac_n "checking for alloca""... $ac_c" 1>&6  echo $ac_n "checking for alloca""... $ac_c" 1>&6
5638  echo "configure:5636: checking for alloca" >&5  echo "configure:5639: checking for alloca" >&5
5639  if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5640    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5641  else  else
5642    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5643  #line 5641 "configure"  #line 5644 "configure"
5644  #include "confdefs.h"  #include "confdefs.h"
5645    
5646  #ifdef __GNUC__  #ifdef __GNUC__
# Line 5665  int main() { Line 5668  int main() {
5668  char *p = (char *) alloca(1);  char *p = (char *) alloca(1);
5669  ; return 0; }  ; return 0; }
5670  EOF  EOF
5671  if { (eval echo configure:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5672    rm -rf conftest*    rm -rf conftest*
5673    ac_cv_func_alloca_works=yes    ac_cv_func_alloca_works=yes
5674  else  else
# Line 5697  EOF Line 5700  EOF
5700    
5701    
5702  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5703  echo "configure:5701: checking whether alloca needs Cray hooks" >&5  echo "configure:5704: checking whether alloca needs Cray hooks" >&5
5704  if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5705    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5706  else  else
5707    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5708  #line 5706 "configure"  #line 5709 "configure"
5709  #include "confdefs.h"  #include "confdefs.h"
5710  #if defined(CRAY) && ! defined(CRAY2)  #if defined(CRAY) && ! defined(CRAY2)
5711  webecray  webecray
# Line 5727  echo "$ac_t""$ac_cv_os_cray" 1>&6 Line 5730  echo "$ac_t""$ac_cv_os_cray" 1>&6
5730  if test $ac_cv_os_cray = yes; then  if test $ac_cv_os_cray = yes; then
5731  for ac_func in _getb67 GETB67 getb67; do  for ac_func in _getb67 GETB67 getb67; do
5732    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5733  echo "configure:5731: checking for $ac_func" >&5  echo "configure:5734: checking for $ac_func" >&5
5734  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5735    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5736  else  else
5737    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5738  #line 5736 "configure"  #line 5739 "configure"
5739  #include "confdefs.h"  #include "confdefs.h"
5740  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5741      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 5755  $ac_func(); Line 5758  $ac_func();
5758    
5759  ; return 0; }  ; return 0; }
5760  EOF  EOF
5761  if { (eval echo configure:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5762    rm -rf conftest*    rm -rf conftest*
5763    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
5764  else  else
# Line 5782  done Line 5785  done
5785  fi  fi
5786    
5787  echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6  echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5788  echo "configure:5786: checking stack direction for C alloca" >&5  echo "configure:5789: checking stack direction for C alloca" >&5
5789  if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5790    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5791  else  else
# Line 5790  else Line 5793  else
5793    ac_cv_c_stack_direction=0    ac_cv_c_stack_direction=0
5794  else  else
5795    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5796  #line 5794 "configure"  #line 5797 "configure"
5797  #include "confdefs.h"  #include "confdefs.h"
5798  find_stack_direction ()  find_stack_direction ()
5799  {  {
# Line 5809  main () Line 5812  main ()
5812    exit (find_stack_direction() < 0);    exit (find_stack_direction() < 0);
5813  }  }
5814  EOF  EOF
5815  if { (eval echo configure:5813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5816  then  then
5817    ac_cv_c_stack_direction=1    ac_cv_c_stack_direction=1
5818  else  else
# Line 5834  fi Line 5837  fi
5837  # fmod, logb, and frexp are found in -lm on most systems.  # fmod, logb, and frexp are found in -lm on most systems.
5838  # On HPUX 9.01, -lm does not contain logb, so check for sqrt.  # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5839  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5840  echo "configure:5838: checking for sqrt in -lm" >&5  echo "configure:5841: checking for sqrt in -lm" >&5
5841  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5842  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5843    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5842  else Line 5845  else
5845    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5846  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
5847  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5848  #line 5846 "configure"  #line 5849 "configure"
5849  #include "confdefs.h"  #include "confdefs.h"
5850  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5851  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 5853  int main() { Line 5856  int main() {
5856  sqrt()  sqrt()
5857  ; return 0; }  ; return 0; }
5858  EOF  EOF
5859  if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860    rm -rf conftest*    rm -rf conftest*
5861    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5862  else  else
# Line 5883  fi Line 5886  fi
5886    
5887  # Check for mail-locking functions in a "mail" library  # Check for mail-locking functions in a "mail" library
5888  echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6  echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5889  echo "configure:5887: checking for maillock in -lmail" >&5  echo "configure:5890: checking for maillock in -lmail" >&5
5890  ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`  ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5891  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5892    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5891  else Line 5894  else
5894    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5895  LIBS="-lmail  $LIBS"  LIBS="-lmail  $LIBS"
5896  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5897  #line 5895 "configure"  #line 5898 "configure"
5898  #include "confdefs.h"  #include "confdefs.h"
5899  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5900  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 5902  int main() { Line 5905  int main() {
5905  maillock()  maillock()
5906  ; return 0; }  ; return 0; }
5907  EOF  EOF
5908  if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5909    rm -rf conftest*    rm -rf conftest*
5910    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5911  else  else
# Line 5930  else Line 5933  else
5933  fi  fi
5934    
5935  echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6  echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5936  echo "configure:5934: checking for maillock in -llockfile" >&5  echo "configure:5937: checking for maillock in -llockfile" >&5
5937  ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`  ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5938  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5939    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5938  else Line 5941  else
5941    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5942  LIBS="-llockfile  $LIBS"  LIBS="-llockfile  $LIBS"
5943  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5944  #line 5942 "configure"  #line 5945 "configure"
5945  #include "confdefs.h"  #include "confdefs.h"
5946  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5947  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 5949  int main() { Line 5952  int main() {
5952  maillock()  maillock()
5953  ; return 0; }  ; return 0; }
5954  EOF  EOF
5955  if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5956    rm -rf conftest*    rm -rf conftest*
5957    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5958  else  else
# Line 5983  if test "$ac_cv_lib_lockfile_maillock" = Line 5986  if test "$ac_cv_lib_lockfile_maillock" =
5986        # Extract the first word of "liblockfile.so", so it can be a program name with args.        # Extract the first word of "liblockfile.so", so it can be a program name with args.
5987  set dummy liblockfile.so; ac_word=$2  set dummy liblockfile.so; ac_word=$2
5988  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5989  echo "configure:5987: checking for $ac_word" >&5  echo "configure:5990: checking for $ac_word" >&5
5990  if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5991    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5992  else  else
# Line 6024  fi Line 6027  fi
6027  for ac_func in touchlock  for ac_func in touchlock
6028  do  do
6029  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6030  echo "configure:6028: checking for $ac_func" >&5  echo "configure:6031: checking for $ac_func" >&5
6031  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6032    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6033  else  else
6034    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6035  #line 6033 "configure"  #line 6036 "configure"
6036  #include "confdefs.h"  #include "confdefs.h"
6037  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6038      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 6052  $ac_func(); Line 6055  $ac_func();
6055    
6056  ; return 0; }  ; return 0; }
6057  EOF  EOF
6058  if { (eval echo configure:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6059    rm -rf conftest*    rm -rf conftest*
6060    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
6061  else  else
# Line 6080  for ac_hdr in maillock.h Line 6083  for ac_hdr in maillock.h
6083  do  do
6084  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6085  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6086  echo "configure:6084: checking for $ac_hdr" >&5  echo "configure:6087: checking for $ac_hdr" >&5
6087  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6088    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6089  else  else
6090    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6091  #line 6089 "configure"  #line 6092 "configure"
6092  #include "confdefs.h"  #include "confdefs.h"
6093  #include <$ac_hdr>  #include <$ac_hdr>
6094  EOF  EOF
6095  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6096  { (eval echo configure:6094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6097  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6098  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6099    rm -rf conftest*    rm -rf conftest*
# Line 6126  __fpending mblen mbrlen strsignal setiti Line 6129  __fpending mblen mbrlen strsignal setiti
6129  gai_strerror mkstemp  gai_strerror mkstemp
6130  do  do
6131  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6132  echo "configure:6130: checking for $ac_func" >&5  echo "configure:6133: checking for $ac_func" >&5
6133  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6134    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6135  else  else
6136    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6137  #line 6135 "configure"  #line 6138 "configure"
6138  #include "confdefs.h"  #include "confdefs.h"
6139  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6140      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 6154  $ac_func(); Line 6157  $ac_func();
6157    
6158  ; return 0; }  ; return 0; }
6159  EOF  EOF
6160  if { (eval echo configure:6158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6161    rm -rf conftest*    rm -rf conftest*
6162    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
6163  else  else
# Line 6183  for ac_hdr in sys/time.h unistd.h Line 6186  for ac_hdr in sys/time.h unistd.h
6186  do  do
6187  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6188  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6189  echo "configure:6187: checking for $ac_hdr" >&5  echo "configure:6190: checking for $ac_hdr" >&5
6190  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6191    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6192  else  else
6193    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6194  #line 6192 "configure"  #line 6195 "configure"
6195  #include "confdefs.h"  #include "confdefs.h"
6196  #include <$ac_hdr>  #include <$ac_hdr>
6197  EOF  EOF
6198  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6199  { (eval echo configure:6197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6200  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6201  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6202    rm -rf conftest*    rm -rf conftest*
# Line 6222  done Line 6225  done
6225  for ac_func in alarm  for ac_func in alarm
6226  do  do
6227  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6228  echo "configure:6226: checking for $ac_func" >&5  echo "configure:6229: checking for $ac_func" >&5
6229  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6230    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6231  else  else
6232    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6233  #line 6231 "configure"  #line 6234 "configure"
6234  #include "confdefs.h"  #include "confdefs.h"
6235  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6236      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 6250  $ac_func(); Line 6253  $ac_func();
6253    
6254  ; return 0; }  ; return 0; }
6255  EOF  EOF
6256  if { (eval echo configure:6254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6257    rm -rf conftest*    rm -rf conftest*
6258    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
6259  else  else
# Line 6275  fi Line 6278  fi
6278  done  done
6279    
6280  echo $ac_n "checking for working mktime""... $ac_c" 1>&6  echo $ac_n "checking for working mktime""... $ac_c" 1>&6
6281  echo "configure:6279: checking for working mktime" >&5  echo "configure:6282: checking for working mktime" >&5
6282  if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
6283    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6284  else  else
# Line 6283  else Line 6286  else
6286    ac_cv_func_working_mktime=no    ac_cv_func_working_mktime=no
6287  else  else
6288    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6289  #line 6287 "configure"  #line 6290 "configure"
6290  #include "confdefs.h"  #include "confdefs.h"
6291  /* Test program from Paul Eggert (eggert@twinsun.com)  /* Test program from Paul Eggert (eggert@twinsun.com)
6292     and Tony Leneis (tony@plaza.ds.adp.com).  */     and Tony Leneis (tony@plaza.ds.adp.com).  */
# Line 6432  main () Line 6435  main ()
6435    exit (0);    exit (0);
6436  }  }
6437  EOF  EOF
6438  if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:6439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6439  then  then
6440    ac_cv_func_working_mktime=yes    ac_cv_func_working_mktime=yes
6441  else  else
# Line 6462  ac_have_func=no # yes means we've found Line 6465  ac_have_func=no # yes means we've found
6465    
6466  # Some systems have getloadavg without any extra libraries.  # Some systems have getloadavg without any extra libraries.
6467  echo $ac_n "checking for getloadavg""... $ac_c" 1>&6  echo $ac_n "checking for getloadavg""... $ac_c" 1>&6
6468  echo "configure:6466: checking for getloadavg" >&5  echo "configure:6469: checking for getloadavg" >&5
6469  if eval "test \"`echo '$''{'ac_cv_func_getloadavg'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_getloadavg'+set}'`\" = set"; then
6470    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6471  else  else
6472    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6473  #line 6471 "configure"  #line 6474 "configure"
6474  #include "confdefs.h"  #include "confdefs.h"
6475  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6476      which can conflict with char getloadavg(); below.  */      which can conflict with char getloadavg(); below.  */
# Line 6490  getloadavg(); Line 6493  getloadavg();
6493    
6494  ; return 0; }  ; return 0; }
6495  EOF  EOF
6496  if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6497    rm -rf conftest*    rm -rf conftest*
6498    eval "ac_cv_func_getloadavg=yes"    eval "ac_cv_func_getloadavg=yes"
6499  else  else
# Line 6515  if test $ac_have_func = no; then Line 6518  if test $ac_have_func = no; then
6518    # On Solaris, -lkvm requires nlist from -lelf, so check that first    # On Solaris, -lkvm requires nlist from -lelf, so check that first
6519    # to get the right answer into the cache.    # to get the right answer into the cache.
6520    echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6    echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
6521  echo "configure:6519: checking for elf_begin in -lelf" >&5  echo "configure:6522: checking for elf_begin in -lelf" >&5
6522  ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
6523  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6524    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6523  else Line 6526  else
6526    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6527  LIBS="-lelf  $LIBS"  LIBS="-lelf  $LIBS"
6528  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6529  #line 6527 "configure"  #line 6530 "configure"
6530  #include "confdefs.h"  #include "confdefs.h"
6531  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6532  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 6534  int main() { Line 6537  int main() {
6537  elf_begin()  elf_begin()
6538  ; return 0; }  ; return 0; }
6539  EOF  EOF
6540  if { (eval echo configure:6538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6541    rm -rf conftest*    rm -rf conftest*
6542    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6543  else  else
# Line 6555  else Line 6558  else
6558  fi  fi
6559    
6560    echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6    echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
6561  echo "configure:6559: checking for kvm_open in -lkvm" >&5  echo "configure:6562: checking for kvm_open in -lkvm" >&5
6562  ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`  ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
6563  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6564    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6563  else Line 6566  else
6566    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6567  LIBS="-lkvm  $LIBS"  LIBS="-lkvm  $LIBS"
6568  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6569  #line 6567 "configure"  #line 6570 "configure"
6570  #include "confdefs.h"  #include "confdefs.h"
6571  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6572  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 6574  int main() { Line 6577  int main() {
6577  kvm_open()  kvm_open()
6578  ; return 0; }  ; return 0; }
6579  EOF  EOF
6580  if { (eval echo configure:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6581    rm -rf conftest*    rm -rf conftest*
6582    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6583  else  else
# Line 6596  fi Line 6599  fi
6599    
6600    # Check for the 4.4BSD definition of getloadavg.    # Check for the 4.4BSD definition of getloadavg.
6601    echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6    echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
6602  echo "configure:6600: checking for getloadavg in -lutil" >&5  echo "configure:6603: checking for getloadavg in -lutil" >&5
6603  ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`  ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
6604  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6605    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6604  else Line 6607  else
6607    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6608  LIBS="-lutil  $LIBS"  LIBS="-lutil  $LIBS"
6609  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6610  #line 6608 "configure"  #line 6611 "configure"
6611  #include "confdefs.h"  #include "confdefs.h"
6612  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6613  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 6615  int main() { Line 6618  int main() {
6618  getloadavg()  getloadavg()
6619  ; return 0; }  ; return 0; }
6620  EOF  EOF
6621  if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6622    rm -rf conftest*    rm -rf conftest*
6623    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6624  else  else
# Line 6642  if test $ac_have_func = no; then Line 6645  if test $ac_have_func = no; then
6645    # Since it is not a standard part of AIX, it might be installed locally.    # Since it is not a standard part of AIX, it might be installed locally.
6646    ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"    ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
6647    echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6    echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
6648  echo "configure:6646: checking for getloadavg in -lgetloadavg" >&5  echo "configure:6649: checking for getloadavg in -lgetloadavg" >&5
6649  ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`  ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
6650  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6651    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6650  else Line 6653  else
6653    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6654  LIBS="-lgetloadavg  $LIBS"  LIBS="-lgetloadavg  $LIBS"
6655  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6656  #line 6654 "configure"  #line 6657 "configure"
6657  #include "confdefs.h"  #include "confdefs.h"
6658  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6659  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 6661  int main() { Line 6664  int main() {
6664  getloadavg()  getloadavg()
6665  ; return 0; }  ; return 0; }
6666  EOF  EOF
6667  if { (eval echo configure:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668    rm -rf conftest*    rm -rf conftest*
6669    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6670  else  else
# Line 6688  fi Line 6691  fi
6691  for ac_func in getloadavg  for ac_func in getloadavg
6692  do  do
6693  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6694  echo "configure:6692: checking for $ac_func" >&5  echo "configure:6695: checking for $ac_func" >&5
6695  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6696    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6697  else  else
6698    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6699  #line 6697 "configure"  #line 6700 "configure"
6700  #include "confdefs.h"  #include "confdefs.h"
6701  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6702      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 6716  $ac_func(); Line 6719  $ac_func();
6719    
6720  ; return 0; }  ; return 0; }
6721  EOF  EOF
6722  if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6723    rm -rf conftest*    rm -rf conftest*
6724    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
6725  else  else
# Line 6754  else Line 6757  else
6757    ac_have_func=no    ac_have_func=no
6758    ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`    ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
6759  echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6  echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
6760  echo "configure:6758: checking for sys/dg_sys_info.h" >&5  echo "configure:6761: checking for sys/dg_sys_info.h" >&5
6761  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6762    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6763  else  else
6764    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6765  #line 6763 "configure"  #line 6766 "configure"
6766  #include "confdefs.h"  #include "confdefs.h"
6767  #include <sys/dg_sys_info.h>  #include <sys/dg_sys_info.h>
6768  EOF  EOF
6769  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6770  { (eval echo configure:6768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6771  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6772  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6773    rm -rf conftest*    rm -rf conftest*
# Line 6785  if eval "test \"`echo '$ac_cv_header_'$a Line 6788  if eval "test \"`echo '$ac_cv_header_'$a
6788  EOF  EOF
6789    
6790    echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6    echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
6791  echo "configure:6789: checking for dg_sys_info in -ldgc" >&5  echo "configure:6792: checking for dg_sys_info in -ldgc" >&5
6792  ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
6793  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6794    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6793  else Line 6796  else
6796    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6797  LIBS="-ldgc  $LIBS"  LIBS="-ldgc  $LIBS"
6798  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6799  #line 6797 "configure"  #line 6800 "configure"
6800  #include "confdefs.h"  #include "confdefs.h"
6801  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6802  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 6804  int main() { Line 6807  int main() {
6807  dg_sys_info()  dg_sys_info()
6808  ; return 0; }  ; return 0; }
6809  EOF  EOF
6810  if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6811    rm -rf conftest*    rm -rf conftest*
6812    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6813  else  else
# Line 6849  EOF Line 6852  EOF
6852    if test $ac_have_func = no; then    if test $ac_have_func = no; then
6853      ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
6854  echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6  echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
6855  echo "configure:6853: checking for inq_stats/cpustats.h" >&5  echo "configure:6856: checking for inq_stats/cpustats.h" >&5
6856  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6857    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6858  else  else
6859    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6860  #line 6858 "configure"  #line 6861 "configure"
6861  #include "confdefs.h"  #include "confdefs.h"
6862  #include <inq_stats/cpustats.h>  #include <inq_stats/cpustats.h>
6863  EOF  EOF
6864  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6865  { (eval echo configure:6863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6866  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6867  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6868    rm -rf conftest*    rm -rf conftest*
# Line 6892  fi Line 6895  fi
6895    if test $ac_have_func = no; then    if test $ac_have_func = no; then
6896      ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
6897  echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6  echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
6898  echo "configure:6896: checking for sys/cpustats.h" >&5  echo "configure:6899: checking for sys/cpustats.h" >&5
6899  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6900    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6901  else  else
6902    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6903  #line 6901 "configure"  #line 6904 "configure"
6904  #include "confdefs.h"  #include "confdefs.h"
6905  #include <sys/cpustats.h>  #include <sys/cpustats.h>
6906  EOF  EOF
6907  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6908  { (eval echo configure:6906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6909  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6910  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6911    rm -rf conftest*    rm -rf conftest*
# Line 6933  fi Line 6936  fi
6936  do  do
6937  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6938  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6939  echo "configure:6937: checking for $ac_hdr" >&5  echo "configure:6940: checking for $ac_hdr" >&5
6940  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6941    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6942  else  else
6943    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6944  #line 6942 "configure"  #line 6945 "configure"
6945  #include "confdefs.h"  #include "confdefs.h"
6946  #include <$ac_hdr>  #include <$ac_hdr>
6947  EOF  EOF
6948  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6949  { (eval echo configure:6947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6950  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6951  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6952    rm -rf conftest*    rm -rf conftest*
# Line 6973  done Line 6976  done
6976    
6977    ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`    ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
6978  echo $ac_n "checking for nlist.h""... $ac_c" 1>&6  echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
6979  echo "configure:6977: checking for nlist.h" >&5  echo "configure:6980: checking for nlist.h" >&5
6980  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6981    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6982  else  else
6983    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6984  #line 6982 "configure"  #line 6985 "configure"
6985  #include "confdefs.h"  #include "confdefs.h"
6986  #include <nlist.h>  #include <nlist.h>
6987  EOF  EOF
6988  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6989  { (eval echo configure:6987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6990  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6991  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6992    rm -rf conftest*    rm -rf conftest*
# Line 7004  if eval "test \"`echo '$ac_cv_header_'$a Line 7007  if eval "test \"`echo '$ac_cv_header_'$a
7007  EOF  EOF
7008    
7009    echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6    echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
7010  echo "configure:7008: checking for n_un in struct nlist" >&5  echo "configure:7011: checking for n_un in struct nlist" >&5
7011  if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
7012    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7013  else  else
7014    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7015  #line 7013 "configure"  #line 7016 "configure"
7016  #include "confdefs.h"  #include "confdefs.h"
7017  #include <nlist.h>  #include <nlist.h>
7018  int main() {  int main() {
7019  struct nlist n; n.n_un.n_name = 0;  struct nlist n; n.n_un.n_name = 0;
7020  ; return 0; }  ; return 0; }
7021  EOF  EOF
7022  if { (eval echo configure:7020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7023    rm -rf conftest*    rm -rf conftest*
7024    ac_cv_struct_nlist_n_un=yes    ac_cv_struct_nlist_n_un=yes
7025  else  else
# Line 7043  fi # Do not have getloadavg in system li Line 7046  fi # Do not have getloadavg in system li
7046    
7047  # Some definitions of getloadavg require that the program be installed setgid.  # Some definitions of getloadavg require that the program be installed setgid.
7048  echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6  echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
7049  echo "configure:7047: checking whether getloadavg requires setgid" >&5  echo "configure:7050: checking whether getloadavg requires setgid" >&5
7050  if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
7051    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7052  else  else
7053    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7054  #line 7052 "configure"  #line 7055 "configure"
7055  #include "confdefs.h"  #include "confdefs.h"
7056  #include "$srcdir/getloadavg.c"  #include "$srcdir/getloadavg.c"
7057  #ifdef LDAV_PRIVILEGED  #ifdef LDAV_PRIVILEGED
# Line 7079  fi Line 7082  fi
7082    
7083  if test $ac_cv_func_getloadavg_setgid = yes; then  if test $ac_cv_func_getloadavg_setgid = yes; then
7084    echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6    echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
7085  echo "configure:7083: checking group of /dev/kmem" >&5  echo "configure:7086: checking group of /dev/kmem" >&5
7086  if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
7087    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7088  else  else
# Line 7100  fi Line 7103  fi
7103    
7104    
7105  echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6  echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
7106  echo "configure:7104: checking for _LARGEFILE_SOURCE value needed for large files" >&5  echo "configure:7107: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7107  if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
7108    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7109  else  else
7110    ac_cv_sys_largefile_source=no    ac_cv_sys_largefile_source=no
7111        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
7112  #line 7110 "configure"  #line 7113 "configure"
7113  #include "confdefs.h"  #include "confdefs.h"
7114  #include <stdio.h>  #include <stdio.h>
7115  int main() {  int main() {
7116  return !fseeko;  return !fseeko;
7117  ; return 0; }  ; return 0; }
7118  EOF  EOF
7119  if { (eval echo configure:7117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7120    :    :
7121  else  else
7122    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
7123    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7124    rm -rf conftest*    rm -rf conftest*
7125    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7126  #line 7124 "configure"  #line 7127 "configure"
7127  #include "confdefs.h"  #include "confdefs.h"
7128  #define _LARGEFILE_SOURCE 1  #define _LARGEFILE_SOURCE 1
7129  #include <stdio.h>  #include <stdio.h>
# Line 7129  int main() { Line 7132  int main() {
7132  return !fseeko;  return !fseeko;
7133  ; return 0; }  ; return 0; }
7134  EOF  EOF
7135  if { (eval echo configure:7133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7136    rm -rf conftest*    rm -rf conftest*
7137    ac_cv_sys_largefile_source=1    ac_cv_sys_largefile_source=1
7138  else  else
# Line 7153  EOF Line 7156  EOF
7156     # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.     # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7157    
7158     echo $ac_n "checking for fseeko""... $ac_c" 1>&6     echo $ac_n "checking for fseeko""... $ac_c" 1>&6
7159  echo "configure:7157: checking for fseeko" >&5  echo "configure:7160: checking for fseeko" >&5
7160  if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then
7161    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7162  else  else
7163    ac_cv_func_fseeko=no    ac_cv_func_fseeko=no
7164        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
7165  #line 7163 "configure"  #line 7166 "configure"
7166  #include "confdefs.h"  #include "confdefs.h"
7167  #include <stdio.h>  #include <stdio.h>
7168  int main() {  int main() {
7169  return fseeko && fseeko (stdin, 0, 0);  return fseeko && fseeko (stdin, 0, 0);
7170  ; return 0; }  ; return 0; }
7171  EOF  EOF
7172  if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7173    rm -rf conftest*    rm -rf conftest*
7174    ac_cv_func_fseeko=yes    ac_cv_func_fseeko=yes
7175  else  else
# Line 7188  EOF Line 7191  EOF
7191  for ac_func in grantpt  for ac_func in grantpt
7192  do  do
7193  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7194  echo "configure:7192: checking for $ac_func" >&5  echo "configure:7195: checking for $ac_func" >&5
7195  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7196    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7197  else  else
7198    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7199  #line 7197 "configure"  #line 7200 "configure"
7200  #include "confdefs.h"  #include "confdefs.h"
7201  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7202      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 7216  $ac_func(); Line 7219  $ac_func();
7219    
7220  ; return 0; }  ; return 0; }
7221  EOF  EOF
7222  if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7223    rm -rf conftest*    rm -rf conftest*
7224    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
7225  else  else
# Line 7245  done Line 7248  done
7248  for ac_func in getpt  for ac_func in getpt
7249  do  do
7250  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7251  echo "configure:7249: checking for $ac_func" >&5  echo "configure:7252: checking for $ac_func" >&5
7252  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7253    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7254  else  else
7255    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7256  #line 7254 "configure"  #line 7257 "configure"
7257  #include "confdefs.h"  #include "confdefs.h"
7258  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7259      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 7273  $ac_func(); Line 7276  $ac_func();
7276    
7277  ; return 0; }  ; return 0; }
7278  EOF  EOF
7279  if { (eval echo configure:7277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7280    rm -rf conftest*    rm -rf conftest*
7281    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
7282  else  else
# Line 7303  done Line 7306  done
7306  # It's better to believe a function is not available  # It's better to believe a function is not available
7307  # than to expect to find it in ncurses.  # than to expect to find it in ncurses.
7308  echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6  echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
7309  echo "configure:7307: checking for tparm in -lncurses" >&5  echo "configure:7310: checking for tparm in -lncurses" >&5
7310  ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
7311  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7312    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7311  else Line 7314  else
7314    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7315  LIBS="-lncurses  $LIBS"  LIBS="-lncurses  $LIBS"
7316  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7317  #line 7315 "configure"  #line 7318 "configure"
7318  #include "confdefs.h"  #include "confdefs.h"
7319  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7320  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 7322  int main() { Line 7325  int main() {
7325  tparm()  tparm()
7326  ; return 0; }  ; return 0; }
7327  EOF  EOF
7328  if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7329    rm -rf conftest*    rm -rf conftest*
7330    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7331  else  else
# Line 7355  if test "$with_hesiod" = yes ; then Line 7358  if test "$with_hesiod" = yes ; then
7358    # Don't set $LIBS here -- see comments above.    # Don't set $LIBS here -- see comments above.
7359    resolv=no    resolv=no
7360    echo $ac_n "checking for res_send""... $ac_c" 1>&6    echo $ac_n "checking for res_send""... $ac_c" 1>&6
7361  echo "configure:7359: checking for res_send" >&5  echo "configure:7362: checking for res_send" >&5
7362  if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
7363    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7364  else  else
7365    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7366  #line 7364 "configure"  #line 7367 "configure"
7367  #include "confdefs.h"  #include "confdefs.h"
7368  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7369      which can conflict with char res_send(); below.  */      which can conflict with char res_send(); below.  */
# Line 7383  res_send(); Line 7386  res_send();
7386    
7387  ; return 0; }  ; return 0; }
7388  EOF  EOF
7389  if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7390    rm -rf conftest*    rm -rf conftest*
7391    eval "ac_cv_func_res_send=yes"    eval "ac_cv_func_res_send=yes"
7392  else  else
# Line 7401  if eval "test \"`echo '$ac_cv_func_'res_ Line 7404  if eval "test \"`echo '$ac_cv_func_'res_
7404  else  else
7405    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
7406  echo $ac_n "checking for __res_send""... $ac_c" 1>&6  echo $ac_n "checking for __res_send""... $ac_c" 1>&6
7407  echo "configure:7405: checking for __res_send" >&5  echo "configure:7408: checking for __res_send" >&5
7408  if eval "test \"`echo '$''{'ac_cv_func___res_send'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func___res_send'+set}'`\" = set"; then
7409    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7410  else  else
7411    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7412  #line 7410 "configure"  #line 7413 "configure"
7413  #include "confdefs.h"  #include "confdefs.h"
7414  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7415      which can conflict with char __res_send(); below.  */      which can conflict with char __res_send(); below.  */
# Line 7429  __res_send(); Line 7432  __res_send();
7432    
7433  ; return 0; }  ; return 0; }
7434  EOF  EOF
7435  if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7436    rm -rf conftest*    rm -rf conftest*
7437    eval "ac_cv_func___res_send=yes"    eval "ac_cv_func___res_send=yes"
7438  else  else
# Line 7447  if eval "test \"`echo '$ac_cv_func_'__re Line 7450  if eval "test \"`echo '$ac_cv_func_'__re
7450  else  else
7451    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
7452  echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6  echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
7453  echo "configure:7451: checking for res_send in -lresolv" >&5  echo "configure:7454: checking for res_send in -lresolv" >&5
7454  ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`  ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
7455  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7456    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7455  else Line 7458  else
7458    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7459  LIBS="-lresolv  $LIBS"  LIBS="-lresolv  $LIBS"
7460  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7461  #line 7459 "configure"  #line 7462 "configure"
7462  #include "confdefs.h"  #include "confdefs.h"
7463  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7464  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 7466  int main() { Line 7469  int main() {
7469  res_send()  res_send()
7470  ; return 0; }  ; return 0; }
7471  EOF  EOF
7472  if { (eval echo configure:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7473    rm -rf conftest*    rm -rf conftest*
7474    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7475  else  else
# Line 7485  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 7488  if eval "test \"`echo '$ac_cv_lib_'$ac_l
7488  else  else
7489    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
7490  echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6  echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6
7491  echo "configure:7489: checking for __res_send in -lresolv" >&5  echo "configure:7492: checking for __res_send in -lresolv" >&5
7492  ac_lib_var=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`  ac_lib_var=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`
7493  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7494    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7493  else Line 7496  else
7496    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7497  LIBS="-lresolv  $LIBS"  LIBS="-lresolv  $LIBS"
7498  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7499  #line 7497 "configure"  #line 7500 "configure"
7500  #include "confdefs.h"  #include "confdefs.h"
7501  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7502  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 7504  int main() { Line 7507  int main() {
7507  __res_send()  __res_send()
7508  ; return 0; }  ; return 0; }
7509  EOF  EOF
7510  if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7511    rm -rf conftest*    rm -rf conftest*
7512    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7513  else  else
# Line 7540  EOF Line 7543  EOF
7543      RESOLVLIB=      RESOLVLIB=
7544    fi    fi
7545    echo $ac_n "checking for hes_getmailhost""... $ac_c" 1>&6    echo $ac_n "checking for hes_getmailhost""... $ac_c" 1>&6
7546  echo "configure:7544: checking for hes_getmailhost" >&5  echo "configure:7547: checking for hes_getmailhost" >&5
7547  if eval "test \"`echo '$''{'ac_cv_func_hes_getmailhost'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_hes_getmailhost'+set}'`\" = set"; then
7548    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7549  else  else
7550    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7551  #line 7549 "configure"  #line 7552 "configure"
7552  #include "confdefs.h"  #include "confdefs.h"
7553  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7554      which can conflict with char hes_getmailhost(); below.  */      which can conflict with char hes_getmailhost(); below.  */
# Line 7568  hes_getmailhost(); Line 7571  hes_getmailhost();
7571    
7572  ; return 0; }  ; return 0; }
7573  EOF  EOF
7574  if { (eval echo configure:7572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7575    rm -rf conftest*    rm -rf conftest*
7576    eval "ac_cv_func_hes_getmailhost=yes"    eval "ac_cv_func_hes_getmailhost=yes"
7577  else  else
# Line 7586  if eval "test \"`echo '$ac_cv_func_'hes_ Line 7589  if eval "test \"`echo '$ac_cv_func_'hes_
7589  else  else
7590    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
7591  echo $ac_n "checking for hes_getmailhost in -lhesiod""... $ac_c" 1>&6  echo $ac_n "checking for hes_getmailhost in -lhesiod""... $ac_c" 1>&6
7592  echo "configure:7590: checking for hes_getmailhost in -lhesiod" >&5  echo "configure:7593: checking for hes_getmailhost in -lhesiod" >&5
7593  ac_lib_var=`echo hesiod'_'hes_getmailhost | sed 'y%./+-%__p_%'`  ac_lib_var=`echo hesiod'_'hes_getmailhost | sed 'y%./+-%__p_%'`
7594  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7595    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7594  else Line 7597  else
7597    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7598  LIBS="-lhesiod $RESOLVLIB $LIBS"  LIBS="-lhesiod $RESOLVLIB $LIBS"
7599  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7600  #line 7598 "configure"  #line 7601 "configure"
7601  #include "confdefs.h"  #include "confdefs.h"
7602  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7603  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 7605  int main() { Line 7608  int main() {
7608  hes_getmailhost()  hes_getmailhost()
7609  ; return 0; }  ; return 0; }
7610  EOF  EOF
7611  if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7612    rm -rf conftest*    rm -rf conftest*
7613    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7614  else  else
# Line 7636  fi Line 7639  fi
7639  # These tell us which Kerberos-related libraries to use.  # These tell us which Kerberos-related libraries to use.
7640  if test "${with_kerberos+set}" = set; then  if test "${with_kerberos+set}" = set; then
7641    echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6    echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
7642  echo "configure:7640: checking for com_err in -lcom_err" >&5  echo "configure:7643: checking for com_err in -lcom_err" >&5
7643  ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`  ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
7644  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7645    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7644  else Line 7647  else
7647    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7648  LIBS="-lcom_err  $LIBS"  LIBS="-lcom_err  $LIBS"
7649  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7650  #line 7648 "configure"  #line 7651 "configure"
7651  #include "confdefs.h"  #include "confdefs.h"
7652  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7653  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 7655  int main() { Line 7658  int main() {
7658  com_err()  com_err()
7659  ; return 0; }  ; return 0; }
7660  EOF  EOF
7661  if { (eval echo configure:7659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7662    rm -rf conftest*    rm -rf conftest*
7663    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7664  else  else
# Line 7683  else Line 7686  else
7686  fi  fi
7687    
7688    echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6    echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
7689  echo "configure:7687: checking for mit_des_cbc_encrypt in -lk5crypto" >&5  echo "configure:7690: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
7690  ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7691  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7692    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7691  else Line 7694  else
7694    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7695  LIBS="-lk5crypto  $LIBS"  LIBS="-lk5crypto  $LIBS"
7696  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7697  #line 7695 "configure"  #line 7698 "configure"
7698  #include "confdefs.h"  #include "confdefs.h"
7699  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7700  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 7702  int main() { Line 7705  int main() {
7705  mit_des_cbc_encrypt()  mit_des_cbc_encrypt()
7706  ; return 0; }  ; return 0; }
7707  EOF  EOF
7708  if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7709    rm -rf conftest*    rm -rf conftest*
7710    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7711  else  else
# Line 7730  else Line 7733  else
7733  fi  fi
7734    
7735    echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6    echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
7736  echo "configure:7734: checking for mit_des_cbc_encrypt in -lcrypto" >&5  echo "configure:7737: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7737  ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7738  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7739    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7738  else Line 7741  else
7741    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7742  LIBS="-lcrypto  $LIBS"  LIBS="-lcrypto  $LIBS"
7743  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7744  #line 7742 "configure"  #line 7745 "configure"
7745  #include "confdefs.h"  #include "confdefs.h"
7746  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7747  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 7749  int main() { Line 7752  int main() {
7752  mit_des_cbc_encrypt()  mit_des_cbc_encrypt()
7753  ; return 0; }  ; return 0; }
7754  EOF  EOF
7755  if { (eval echo configure:7753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7756    rm -rf conftest*    rm -rf conftest*
7757    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7758  else  else
# Line 7777  else Line 7780  else
7780  fi  fi
7781    
7782    echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6    echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
7783  echo "configure:7781: checking for krb5_init_context in -lkrb5" >&5  echo "configure:7784: checking for krb5_init_context in -lkrb5" >&5
7784  ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`  ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
7785  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7786    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7785  else Line 7788  else
7788    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7789  LIBS="-lkrb5  $LIBS"  LIBS="-lkrb5  $LIBS"
7790  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7791  #line 7789 "configure"  #line 7792 "configure"
7792  #include "confdefs.h"  #include "confdefs.h"
7793  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7794  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 7796  int main() { Line 7799  int main() {
7799  krb5_init_context()  krb5_init_context()
7800  ; return 0; }  ; return 0; }
7801  EOF  EOF
7802  if { (eval echo configure:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7803    rm -rf conftest*    rm -rf conftest*
7804    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7805  else  else
# Line 7825  fi Line 7828  fi
7828    
7829    if test "${with_kerberos5+set}" != set; then    if test "${with_kerberos5+set}" != set; then
7830      echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6      echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
7831  echo "configure:7829: checking for des_cbc_encrypt in -ldes425" >&5  echo "configure:7832: checking for des_cbc_encrypt in -ldes425" >&5
7832  ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7833  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7834    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7833  else Line 7836  else
7836    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7837  LIBS="-ldes425  $LIBS"  LIBS="-ldes425  $LIBS"
7838  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7839  #line 7837 "configure"  #line 7840 "configure"
7840  #include "confdefs.h"  #include "confdefs.h"
7841  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7842  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 7844  int main() { Line 7847  int main() {
7847  des_cbc_encrypt()  des_cbc_encrypt()
7848  ; return 0; }  ; return 0; }
7849  EOF  EOF
7850  if { (eval echo configure:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7851    rm -rf conftest*    rm -rf conftest*
7852    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7853  else  else
# Line 7870  EOF Line 7873  EOF
7873  else  else
7874    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
7875  echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6  echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
7876  echo "configure:7874: checking for des_cbc_encrypt in -ldes" >&5  echo "configure:7877: checking for des_cbc_encrypt in -ldes" >&5
7877  ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7878  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7879    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7878  else Line 7881  else
7881    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7882  LIBS="-ldes  $LIBS"  LIBS="-ldes  $LIBS"
7883  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7884  #line 7882 "configure"  #line 7885 "configure"
7885  #include "confdefs.h"  #include "confdefs.h"
7886  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7887  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 7889  int main() { Line 7892  int main() {
7892  des_cbc_encrypt()  des_cbc_encrypt()
7893  ; return 0; }  ; return 0; }
7894  EOF  EOF
7895  if { (eval echo configure:7893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7896    rm -rf conftest*    rm -rf conftest*
7897    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7898  else  else
# Line 7919  fi Line 7922  fi
7922  fi  fi
7923    
7924      echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6      echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
7925  echo "configure:7923: checking for krb_get_cred in -lkrb4" >&5  echo "configure:7926: checking for krb_get_cred in -lkrb4" >&5
7926  ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`  ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
7927  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7928    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7927  else Line 7930  else
7930    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7931  LIBS="-lkrb4  $LIBS"  LIBS="-lkrb4  $LIBS"
7932  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7933  #line 7931 "configure"  #line 7934 "configure"
7934  #include "confdefs.h"  #include "confdefs.h"
7935  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7936  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 7938  int main() { Line 7941  int main() {
7941  krb_get_cred()  krb_get_cred()
7942  ; return 0; }  ; return 0; }
7943  EOF  EOF
7944  if { (eval echo configure:7942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7945    rm -rf conftest*    rm -rf conftest*
7946    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7947  else  else
# Line 7964  EOF Line 7967  EOF
7967  else  else
7968    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
7969  echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6  echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
7970  echo "configure:7968: checking for krb_get_cred in -lkrb" >&5  echo "configure:7971: checking for krb_get_cred in -lkrb" >&5
7971  ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`  ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
7972  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7973    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7972  else Line 7975  else
7975    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7976  LIBS="-lkrb  $LIBS"  LIBS="-lkrb  $LIBS"
7977  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7978  #line 7976 "configure"  #line 7979 "configure"
7979  #include "confdefs.h"  #include "confdefs.h"
7980  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7981  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 7983  int main() { Line 7986  int main() {
7986  krb_get_cred()  krb_get_cred()
7987  ; return 0; }  ; return 0; }
7988  EOF  EOF
7989  if { (eval echo configure:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7990    rm -rf conftest*    rm -rf conftest*
7991    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7992  else  else
# Line 8019  fi Line 8022  fi
8022  do  do
8023  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8024  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8025  echo "configure:8023: checking for $ac_hdr" >&5  echo "configure:8026: checking for $ac_hdr" >&5
8026  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8027    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8028  else  else
8029    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8030  #line 8028 "configure"  #line 8031 "configure"
8031  #include "confdefs.h"  #include "confdefs.h"
8032  #include <$ac_hdr>  #include <$ac_hdr>
8033  EOF  EOF
8034  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8035  { (eval echo configure:8033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8036  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8037  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8038    rm -rf conftest*    rm -rf conftest*
# Line 8060  done Line 8063  done
8063  do  do
8064  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8065  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8066  echo "configure:8064: checking for $ac_hdr" >&5  echo "configure:8067: checking for $ac_hdr" >&5
8067  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8068    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8069  else  else
8070    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8071  #line 8069 "configure"  #line 8072 "configure"
8072  #include "confdefs.h"  #include "confdefs.h"
8073  #include <$ac_hdr>  #include <$ac_hdr>
8074  EOF  EOF
8075  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8076  { (eval echo configure:8074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8077  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8078  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8079    rm -rf conftest*    rm -rf conftest*
# Line 8097  for ac_hdr in kerberosIV/des.h Line 8100  for ac_hdr in kerberosIV/des.h
8100  do  do
8101  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8102  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8103  echo "configure:8101: checking for $ac_hdr" >&5  echo "configure:8104: checking for $ac_hdr" >&5
8104  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8105    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8106  else  else
8107    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8108  #line 8106 "configure"  #line 8109 "configure"
8109  #include "confdefs.h"  #include "confdefs.h"
8110  #include <$ac_hdr>  #include <$ac_hdr>
8111  EOF  EOF
8112  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8113  { (eval echo configure:8111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8114  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8115  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8116    rm -rf conftest*    rm -rf conftest*
# Line 8134  for ac_hdr in kerberos/des.h Line 8137  for ac_hdr in kerberos/des.h
8137  do  do
8138  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8139  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8140  echo "configure:8138: checking for $ac_hdr" >&5  echo "configure:8141: checking for $ac_hdr" >&5
8141  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8142    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8143  else  else
8144    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8145  #line 8143 "configure"  #line 8146 "configure"
8146  #include "confdefs.h"  #include "confdefs.h"
8147  #include <$ac_hdr>  #include <$ac_hdr>
8148  EOF  EOF
8149  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8150  { (eval echo configure:8148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8151  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8152  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8153    rm -rf conftest*    rm -rf conftest*
# Line 8180  done Line 8183  done
8183  do  do
8184  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8185  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8186  echo "configure:8184: checking for $ac_hdr" >&5  echo "configure:8187: checking for $ac_hdr" >&5
8187  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8188    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8189  else  else
8190    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8191  #line 8189 "configure"  #line 8192 "configure"
8192  #include "confdefs.h"  #include "confdefs.h"
8193  #include <$ac_hdr>  #include <$ac_hdr>
8194  EOF  EOF
8195  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8196  { (eval echo configure:8194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8197  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8198  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8199    rm -rf conftest*    rm -rf conftest*
# Line 8217  for ac_hdr in kerberosIV/krb.h Line 8220  for ac_hdr in kerberosIV/krb.h
8220  do  do
8221  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8222  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8223  echo "configure:8221: checking for $ac_hdr" >&5  echo "configure:8224: checking for $ac_hdr" >&5
8224  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8225    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8226  else  else
8227    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8228  #line 8226 "configure"  #line 8229 "configure"
8229  #include "confdefs.h"  #include "confdefs.h"
8230  #include <$ac_hdr>  #include <$ac_hdr>
8231  EOF  EOF
8232  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8233  { (eval echo configure:8231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8234  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8235  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8236    rm -rf conftest*    rm -rf conftest*
# Line 8254  for ac_hdr in kerberos/krb.h Line 8257  for ac_hdr in kerberos/krb.h
8257  do  do
8258  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8259  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8260  echo "configure:8258: checking for $ac_hdr" >&5  echo "configure:8261: checking for $ac_hdr" >&5
8261  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8262    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8263  else  else
8264    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8265  #line 8263 "configure"  #line 8266 "configure"
8266  #include "confdefs.h"  #include "confdefs.h"
8267  #include <$ac_hdr>  #include <$ac_hdr>
8268  EOF  EOF
8269  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8270  { (eval echo configure:8268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8271  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8272  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8273    rm -rf conftest*    rm -rf conftest*
# Line 8301  done Line 8304  done
8304  do  do
8305  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8306  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8307  echo "configure:8305: checking for $ac_hdr" >&5  echo "configure:8308: checking for $ac_hdr" >&5
8308  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8309    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8310  else  else
8311    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8312  #line 8310 "configure"  #line 8313 "configure"
8313  #include "confdefs.h"  #include "confdefs.h"
8314  #include <$ac_hdr>  #include <$ac_hdr>
8315  EOF  EOF
8316  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8317  { (eval echo configure:8315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8318  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8319  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8320    rm -rf conftest*    rm -rf conftest*
# Line 8342  fi Line 8345  fi
8345  # Solaris requires -lintl if you want strerror (which calls dgettext)  # Solaris requires -lintl if you want strerror (which calls dgettext)
8346  # to return localized messages.  # to return localized messages.
8347  echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6  echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
8348  echo "configure:8346: checking for dgettext in -lintl" >&5  echo "configure:8349: checking for dgettext in -lintl" >&5
8349  ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`  ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
8350  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8351    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 8350  else Line 8353  else
8353    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
8354  LIBS="-lintl  $LIBS"  LIBS="-lintl  $LIBS"
8355  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
8356  #line 8354 "configure"  #line 8357 "configure"
8357  #include "confdefs.h"  #include "confdefs.h"
8358  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8359  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 8361  int main() { Line 8364  int main() {
8364  dgettext()  dgettext()
8365  ; return 0; }  ; return 0; }
8366  EOF  EOF
8367  if { (eval echo configure:8365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8368    rm -rf conftest*    rm -rf conftest*
8369    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
8370  else  else
# Line 8390  fi Line 8393  fi
8393    
8394    
8395  echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6  echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8396  echo "configure:8394: checking whether localtime caches TZ" >&5  echo "configure:8397: checking whether localtime caches TZ" >&5
8397  if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
8398    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8399  else  else
# Line 8400  if test "$cross_compiling" = yes; then Line 8403  if test "$cross_compiling" = yes; then
8403  emacs_cv_localtime_cache=yes  emacs_cv_localtime_cache=yes
8404  else  else
8405    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8406  #line 8404 "configure"  #line 8407 "configure"
8407  #include "confdefs.h"  #include "confdefs.h"
8408  #include <time.h>  #include <time.h>
8409  extern char **environ;  extern char **environ;
# Line 8432  main() Line 8435  main()
8435    exit (0);    exit (0);
8436  }  }
8437  EOF  EOF
8438  if { (eval echo configure:8436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:8439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8439  then  then
8440    emacs_cv_localtime_cache=no    emacs_cv_localtime_cache=no
8441  else  else
# Line 8462  if test "x$HAVE_TIMEVAL" = xyes; then Line 8465  if test "x$HAVE_TIMEVAL" = xyes; then
8465    for ac_func in gettimeofday    for ac_func in gettimeofday
8466  do  do
8467  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8468  echo "configure:8466: checking for $ac_func" >&5  echo "configure:8469: checking for $ac_func" >&5
8469  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8470    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8471  else  else
8472    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8473  #line 8471 "configure"  #line 8474 "configure"
8474  #include "confdefs.h"  #include "confdefs.h"
8475  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8476      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 8490  $ac_func(); Line 8493  $ac_func();
8493    
8494  ; return 0; }  ; return 0; }
8495  EOF  EOF
8496  if { (eval echo configure:8494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8497    rm -rf conftest*    rm -rf conftest*
8498    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
8499  else  else
# Line 8515  fi Line 8518  fi
8518  done  done
8519    
8520    echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6    echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
8521  echo "configure:8519: checking whether gettimeofday can accept two arguments" >&5  echo "configure:8522: checking whether gettimeofday can accept two arguments" >&5
8522  if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
8523    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8524  else  else
8525    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8526  #line 8524 "configure"  #line 8527 "configure"
8527  #include "confdefs.h"  #include "confdefs.h"
8528    
8529  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
# Line 8538  struct timeval time; Line 8541  struct timeval time;
8541       gettimeofday (&time, 0);       gettimeofday (&time, 0);
8542  ; return 0; }  ; return 0; }
8543  EOF  EOF
8544  if { (eval echo configure:8542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8545    rm -rf conftest*    rm -rf conftest*
8546    emacs_cv_gettimeofday_two_arguments=yes    emacs_cv_gettimeofday_two_arguments=yes
8547  else  else
# Line 8561  fi Line 8564  fi
8564    
8565  if test "$ac_cv_func_gettimeofday" = yes; then  if test "$ac_cv_func_gettimeofday" = yes; then
8566    echo $ac_n "checking for struct timezone""... $ac_c" 1>&6    echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
8567  echo "configure:8565: checking for struct timezone" >&5  echo "configure:8568: checking for struct timezone" >&5
8568  if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
8569    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8570  else  else
8571    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8572  #line 8570 "configure"  #line 8573 "configure"
8573  #include "confdefs.h"  #include "confdefs.h"
8574  #include <sys/time.h>  #include <sys/time.h>
8575  int main() {  int main() {
8576  struct timezone tz;  struct timezone tz;
8577  ; return 0; }  ; return 0; }
8578  EOF  EOF
8579  if { (eval echo configure:8577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8580    rm -rf conftest*    rm -rf conftest*
8581                if test "$cross_compiling" = yes; then                if test "$cross_compiling" = yes; then
8582    emacs_cv_struct_timezone=yes    emacs_cv_struct_timezone=yes
8583  else  else
8584    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8585  #line 8583 "configure"  #line 8586 "configure"
8586  #include "confdefs.h"  #include "confdefs.h"
8587    
8588  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
# Line 8598  main () { Line 8601  main () {
8601    exit (gettimeofday (&time, &dummy));    exit (gettimeofday (&time, &dummy));
8602  }  }
8603  EOF  EOF
8604  if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8605  then  then
8606    emacs_cv_struct_timezone=yes    emacs_cv_struct_timezone=yes
8607  else  else
# Line 8624  fi Line 8627  fi
8627    
8628  ok_so_far=yes  ok_so_far=yes
8629  echo $ac_n "checking for socket""... $ac_c" 1>&6  echo $ac_n "checking for socket""... $ac_c" 1>&6
8630  echo "configure:8628: checking for socket" >&5  echo "configure:8631: checking for socket" >&5
8631  if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8632    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8633  else  else
8634    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8635  #line 8633 "configure"  #line 8636 "configure"
8636  #include "confdefs.h"  #include "confdefs.h"
8637  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8638      which can conflict with char socket(); below.  */      which can conflict with char socket(); below.  */
# Line 8652  socket(); Line 8655  socket();
8655    
8656  ; return 0; }  ; return 0; }
8657  EOF  EOF
8658  if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:8659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8659    rm -rf conftest*    rm -rf conftest*
8660    eval "ac_cv_func_socket=yes"    eval "ac_cv_func_socket=yes"
8661  else  else
# Line 8675  fi Line 8678  fi
8678  if test $ok_so_far = yes; then  if test $ok_so_far = yes; then
8679    ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`    ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8680  echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6  echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8681  echo "configure:8679: checking for netinet/in.h" >&5  echo "configure:8682: checking for netinet/in.h" >&5
8682  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8683    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8684  else  else
8685    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8686  #line 8684 "configure"  #line 8687 "configure"
8687  #include "confdefs.h"  #include "confdefs.h"
8688  #include <netinet/in.h>  #include <netinet/in.h>
8689  EOF  EOF
8690  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8691  { (eval echo configure:8689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8692  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8693  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8694    rm -rf conftest*    rm -rf conftest*
# Line 8711  fi Line 8714  fi
8714  if test $ok_so_far = yes; then  if test $ok_so_far = yes; then
8715    ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`    ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8716  echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6  echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8717  echo "configure:8715: checking for arpa/inet.h" >&5  echo "configure:8718: checking for arpa/inet.h" >&5
8718  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8719    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8720  else  else
8721    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8722  #line 8720 "configure"  #line 8723 "configure"
8723  #include "confdefs.h"  #include "confdefs.h"
8724  #include <arpa/inet.h>  #include <arpa/inet.h>
8725  EOF  EOF
8726  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8727  { (eval echo configure:8725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8728  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8729  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8730    rm -rf conftest*    rm -rf conftest*
# Line 8759  EOF Line 8762  EOF
8762  fi  fi
8763    
8764  echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6  echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
8765  echo "configure:8763: checking whether system supports dynamic ptys" >&5  echo "configure:8766: checking whether system supports dynamic ptys" >&5
8766  if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then  if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
8767    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
8768    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
# Line 8771  else Line 8774  else
8774  fi  fi
8775    
8776  echo $ac_n "checking for pid_t""... $ac_c" 1>&6  echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8777  echo "configure:8775: checking for pid_t" >&5  echo "configure:8778: checking for pid_t" >&5
8778  if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8779    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8780  else  else
8781    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8782  #line 8780 "configure"  #line 8783 "configure"
8783  #include "confdefs.h"  #include "confdefs.h"
8784  #include <sys/types.h>  #include <sys/types.h>
8785  #if STDC_HEADERS  #if STDC_HEADERS
# Line 8805  fi Line 8808  fi
8808    
8809  ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8810  echo $ac_n "checking for vfork.h""... $ac_c" 1>&6  echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8811  echo "configure:8809: checking for vfork.h" >&5  echo "configure:8812: checking for vfork.h" >&5
8812  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8813    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8814  else  else
8815    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8816  #line 8814 "configure"  #line 8817 "configure"
8817  #include "confdefs.h"  #include "confdefs.h"
8818  #include <vfork.h>  #include <vfork.h>
8819  EOF  EOF
8820  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8821  { (eval echo configure:8819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8822  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8823  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8824    rm -rf conftest*    rm -rf conftest*
# Line 8840  else Line 8843  else
8843  fi  fi
8844    
8845  echo $ac_n "checking for working vfork""... $ac_c" 1>&6  echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8846  echo "configure:8844: checking for working vfork" >&5  echo "configure:8847: checking for working vfork" >&5
8847  if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
8848    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8849  else  else
8850    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
8851    echo $ac_n "checking for vfork""... $ac_c" 1>&6    echo $ac_n "checking for vfork""... $ac_c" 1>&6
8852  echo "configure:8850: checking for vfork" >&5  echo "configure:8853: checking for vfork" >&5
8853  if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8854    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8855  else  else
8856    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8857  #line 8855 "configure"  #line 8858 "configure"
8858  #include "confdefs.h"  #include "confdefs.h"
8859  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8860      which can conflict with char vfork(); below.  */      which can conflict with char vfork(); below.  */
# Line 8874  vfork(); Line 8877  vfork();
8877    
8878  ; return 0; }  ; return 0; }
8879  EOF  EOF
8880  if { (eval echo configure:8878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8881    rm -rf conftest*    rm -rf conftest*
8882    eval "ac_cv_func_vfork=yes"    eval "ac_cv_func_vfork=yes"
8883  else  else
# Line 8896  fi Line 8899  fi
8899  ac_cv_func_vfork_works=$ac_cv_func_vfork  ac_cv_func_vfork_works=$ac_cv_func_vfork
8900  else  else
8901    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8902  #line 8900 "configure"  #line 8903 "configure"
8903  #include "confdefs.h"  #include "confdefs.h"
8904  /* Thanks to Paul Eggert for this test.  */  /* Thanks to Paul Eggert for this test.  */
8905  #include <stdio.h>  #include <stdio.h>
# Line 8991  main() { Line 8994  main() {
8994    }    }
8995  }  }
8996  EOF  EOF
8997  if { (eval echo configure:8995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8998  then  then
8999    ac_cv_func_vfork_works=yes    ac_cv_func_vfork_works=yes
9000  else  else
# Line 9016  fi Line 9019  fi
9019    
9020  # Fixme: This should be replaced when we have autoconf 2.14.  # Fixme: This should be replaced when we have autoconf 2.14.
9021  echo $ac_n "checking for size_t""... $ac_c" 1>&6  echo $ac_n "checking for size_t""... $ac_c" 1>&6
9022  echo "configure:9020: checking for size_t" >&5  echo "configure:9023: checking for size_t" >&5
9023  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9024    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
9025  else  else
9026    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
9027  #line 9025 "configure"  #line 9028 "configure"
9028  #include "confdefs.h"  #include "confdefs.h"
9029  #include <sys/types.h>  #include <sys/types.h>
9030  #if STDC_HEADERS  #if STDC_HEADERS
# Line 9215  test "${exec_prefix}" != NONE && Line 9218  test "${exec_prefix}" != NONE &&
9218  ## C preprocessor.  ## C preprocessor.
9219    
9220  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
9221  #line 9219 "configure"  #line 9222 "configure"
9222  #include "confdefs.h"  #include "confdefs.h"
9223  yes..yes  yes..yes
9224  EOF  EOF

Legend:
Removed from v.1.62.4.5  
changed lines
  Added in v.1.62.4.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26