aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-09-06 21:42:35 +0000
committerGerd Moellmann2000-09-06 21:42:35 +0000
commit73b77ee53a3199ae5eb468c0fce25e9c8101fc5e (patch)
tree42b1e5a133fe240107d6b29f538de94e87266e7c
parent684b01ee39da9caf6b70afd28f461dfcd0b3adca (diff)
downloademacs-73b77ee53a3199ae5eb468c0fce25e9c8101fc5e.tar.gz
emacs-73b77ee53a3199ae5eb468c0fce25e9c8101fc5e.zip
*** empty log message ***
-rw-r--r--ChangeLog3
-rwxr-xr-xconfigure1280
-rw-r--r--src/ChangeLog3
3 files changed, 652 insertions, 634 deletions
diff --git a/ChangeLog b/ChangeLog
index d2002095210..db5039b28f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
12000-09-06 Gerd Moellmann <gerd@gnu.org> 12000-09-06 Gerd Moellmann <gerd@gnu.org>
2 2
3 * configure.in (REL_ALLOC_MMAP): Recognize in system configuration
4 file and print informational message.
5
3 * configure.in (AC_FUNC_MMAP): Add. 6 * configure.in (AC_FUNC_MMAP): Add.
4 7
52000-09-01 Gerd Moellmann <gerd@gnu.org> 82000-09-01 Gerd Moellmann <gerd@gnu.org>
diff --git a/configure b/configure
index 390be45d06f..7da3c4f08b8 100755
--- a/configure
+++ b/configure
@@ -2324,6 +2324,12 @@ configure___ system_malloc=yes
2324configure___ system_malloc=no 2324configure___ system_malloc=no
2325#endif 2325#endif
2326 2326
2327#ifdef REL_ALLOC_MMAP
2328configure___ rel_alloc_mmap=yes
2329#else
2330configure___ rel_alloc_mmap=no
2331#endif
2332
2327#ifndef C_DEBUG_SWITCH 2333#ifndef C_DEBUG_SWITCH
2328#define C_DEBUG_SWITCH -g 2334#define C_DEBUG_SWITCH -g
2329#endif 2335#endif
@@ -2404,7 +2410,7 @@ fi
2404 if test "$enable_largefile" != no; then 2410 if test "$enable_largefile" != no; then
2405 2411
2406 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 2412 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
2407echo "configure:2408: checking for special C compiler options needed for large files" >&5 2413echo "configure:2414: checking for special C compiler options needed for large files" >&5
2408if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then 2414if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6 2415 echo $ac_n "(cached) $ac_c" 1>&6
2410else 2416else
@@ -2413,7 +2419,7 @@ else
2413 # IRIX 6.2 and later do not support large files by default, 2419 # IRIX 6.2 and later do not support large files by default,
2414 # so use the C compiler's -n32 option if that helps. 2420 # so use the C compiler's -n32 option if that helps.
2415 cat > conftest.$ac_ext <<EOF 2421 cat > conftest.$ac_ext <<EOF
2416#line 2417 "configure" 2422#line 2423 "configure"
2417#include "confdefs.h" 2423#include "confdefs.h"
2418#include <sys/types.h> 2424#include <sys/types.h>
2419 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2425 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
@@ -2422,7 +2428,7 @@ int main() {
2422 2428
2423; return 0; } 2429; return 0; }
2424EOF 2430EOF
2425if { (eval echo configure:2426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2431if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2426 : 2432 :
2427else 2433else
2428 echo "configure: failed program was:" >&5 2434 echo "configure: failed program was:" >&5
@@ -2431,7 +2437,7 @@ else
2431 ac_save_CC="$CC" 2437 ac_save_CC="$CC"
2432 CC="$CC -n32" 2438 CC="$CC -n32"
2433 cat > conftest.$ac_ext <<EOF 2439 cat > conftest.$ac_ext <<EOF
2434#line 2435 "configure" 2440#line 2441 "configure"
2435#include "confdefs.h" 2441#include "confdefs.h"
2436#include <sys/types.h> 2442#include <sys/types.h>
2437 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2443 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
@@ -2440,7 +2446,7 @@ int main() {
2440 2446
2441; return 0; } 2447; return 0; }
2442EOF 2448EOF
2443if { (eval echo configure:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2449if { (eval echo configure:2450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2444 rm -rf conftest* 2450 rm -rf conftest*
2445 ac_cv_sys_largefile_CC=' -n32' 2451 ac_cv_sys_largefile_CC=' -n32'
2446else 2452else
@@ -2460,13 +2466,13 @@ echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
2460 fi 2466 fi
2461 2467
2462 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 2468 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
2463echo "configure:2464: checking for _FILE_OFFSET_BITS value needed for large files" >&5 2469echo "configure:2470: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2464if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then 2470if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6 2471 echo $ac_n "(cached) $ac_c" 1>&6
2466else 2472else
2467 ac_cv_sys_file_offset_bits=no 2473 ac_cv_sys_file_offset_bits=no
2468 cat > conftest.$ac_ext <<EOF 2474 cat > conftest.$ac_ext <<EOF
2469#line 2470 "configure" 2475#line 2476 "configure"
2470#include "confdefs.h" 2476#include "confdefs.h"
2471#include <sys/types.h> 2477#include <sys/types.h>
2472 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2478 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
@@ -2477,14 +2483,14 @@ int main() {
2477 2483
2478; return 0; } 2484; return 0; }
2479EOF 2485EOF
2480if { (eval echo configure:2481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2486if { (eval echo configure:2487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2481 : 2487 :
2482else 2488else
2483 echo "configure: failed program was:" >&5 2489 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5 2490 cat conftest.$ac_ext >&5
2485 rm -rf conftest* 2491 rm -rf conftest*
2486 cat > conftest.$ac_ext <<EOF 2492 cat > conftest.$ac_ext <<EOF
2487#line 2488 "configure" 2493#line 2494 "configure"
2488#include "confdefs.h" 2494#include "confdefs.h"
2489#define _FILE_OFFSET_BITS 64 2495#define _FILE_OFFSET_BITS 64
2490#include <sys/types.h> 2496#include <sys/types.h>
@@ -2496,7 +2502,7 @@ int main() {
2496 2502
2497; return 0; } 2503; return 0; }
2498EOF 2504EOF
2499if { (eval echo configure:2500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2505if { (eval echo configure:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2500 rm -rf conftest* 2506 rm -rf conftest*
2501 ac_cv_sys_file_offset_bits=64 2507 ac_cv_sys_file_offset_bits=64
2502else 2508else
@@ -2516,13 +2522,13 @@ EOF
2516 2522
2517 fi 2523 fi
2518 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 2524 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
2519echo "configure:2520: checking for _LARGEFILE_SOURCE value needed for large files" >&5 2525echo "configure:2526: checking for _LARGEFILE_SOURCE value needed for large files" >&5
2520if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then 2526if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6 2527 echo $ac_n "(cached) $ac_c" 1>&6
2522else 2528else
2523 ac_cv_sys_largefile_source=no 2529 ac_cv_sys_largefile_source=no
2524 cat > conftest.$ac_ext <<EOF 2530 cat > conftest.$ac_ext <<EOF
2525#line 2526 "configure" 2531#line 2532 "configure"
2526#include "confdefs.h" 2532#include "confdefs.h"
2527#include <sys/types.h> 2533#include <sys/types.h>
2528 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2534 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
@@ -2533,14 +2539,14 @@ int main() {
2533return !ftello; 2539return !ftello;
2534; return 0; } 2540; return 0; }
2535EOF 2541EOF
2536if { (eval echo configure:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2542if { (eval echo configure:2543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2537 : 2543 :
2538else 2544else
2539 echo "configure: failed program was:" >&5 2545 echo "configure: failed program was:" >&5
2540 cat conftest.$ac_ext >&5 2546 cat conftest.$ac_ext >&5
2541 rm -rf conftest* 2547 rm -rf conftest*
2542 cat > conftest.$ac_ext <<EOF 2548 cat > conftest.$ac_ext <<EOF
2543#line 2544 "configure" 2549#line 2550 "configure"
2544#include "confdefs.h" 2550#include "confdefs.h"
2545#define _LARGEFILE_SOURCE 1 2551#define _LARGEFILE_SOURCE 1
2546#include <sys/types.h> 2552#include <sys/types.h>
@@ -2552,7 +2558,7 @@ int main() {
2552return !ftello; 2558return !ftello;
2553; return 0; } 2559; return 0; }
2554EOF 2560EOF
2555if { (eval echo configure:2556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2561if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2556 rm -rf conftest* 2562 rm -rf conftest*
2557 ac_cv_sys_largefile_source=1 2563 ac_cv_sys_largefile_source=1
2558else 2564else
@@ -2572,13 +2578,13 @@ EOF
2572 2578
2573 fi 2579 fi
2574 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 2580 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
2575echo "configure:2576: checking for _LARGE_FILES value needed for large files" >&5 2581echo "configure:2582: checking for _LARGE_FILES value needed for large files" >&5
2576if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then 2582if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6 2583 echo $ac_n "(cached) $ac_c" 1>&6
2578else 2584else
2579 ac_cv_sys_large_files=no 2585 ac_cv_sys_large_files=no
2580 cat > conftest.$ac_ext <<EOF 2586 cat > conftest.$ac_ext <<EOF
2581#line 2582 "configure" 2587#line 2588 "configure"
2582#include "confdefs.h" 2588#include "confdefs.h"
2583#include <sys/types.h> 2589#include <sys/types.h>
2584 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2590 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
@@ -2589,14 +2595,14 @@ int main() {
2589 2595
2590; return 0; } 2596; return 0; }
2591EOF 2597EOF
2592if { (eval echo configure:2593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2598if { (eval echo configure:2599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2593 : 2599 :
2594else 2600else
2595 echo "configure: failed program was:" >&5 2601 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5 2602 cat conftest.$ac_ext >&5
2597 rm -rf conftest* 2603 rm -rf conftest*
2598 cat > conftest.$ac_ext <<EOF 2604 cat > conftest.$ac_ext <<EOF
2599#line 2600 "configure" 2605#line 2606 "configure"
2600#include "confdefs.h" 2606#include "confdefs.h"
2601#define _LARGE_FILES 1 2607#define _LARGE_FILES 1
2602#include <sys/types.h> 2608#include <sys/types.h>
@@ -2608,7 +2614,7 @@ int main() {
2608 2614
2609; return 0; } 2615; return 0; }
2610EOF 2616EOF
2611if { (eval echo configure:2612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2617if { (eval echo configure:2618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2612 rm -rf conftest* 2618 rm -rf conftest*
2613 ac_cv_sys_large_files=1 2619 ac_cv_sys_large_files=1
2614else 2620else
@@ -2628,13 +2634,13 @@ EOF
2628 2634
2629 fi 2635 fi
2630 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 2636 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6
2631echo "configure:2632: checking for _XOPEN_SOURCE value needed for large files" >&5 2637echo "configure:2638: checking for _XOPEN_SOURCE value needed for large files" >&5
2632if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then 2638if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6 2639 echo $ac_n "(cached) $ac_c" 1>&6
2634else 2640else
2635 ac_cv_sys_xopen_source=no 2641 ac_cv_sys_xopen_source=no
2636 cat > conftest.$ac_ext <<EOF 2642 cat > conftest.$ac_ext <<EOF
2637#line 2638 "configure" 2643#line 2644 "configure"
2638#include "confdefs.h" 2644#include "confdefs.h"
2639#include <sys/types.h> 2645#include <sys/types.h>
2640 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2646 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
@@ -2645,14 +2651,14 @@ int main() {
2645return !ftello; 2651return !ftello;
2646; return 0; } 2652; return 0; }
2647EOF 2653EOF
2648if { (eval echo configure:2649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2654if { (eval echo configure:2655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2649 : 2655 :
2650else 2656else
2651 echo "configure: failed program was:" >&5 2657 echo "configure: failed program was:" >&5
2652 cat conftest.$ac_ext >&5 2658 cat conftest.$ac_ext >&5
2653 rm -rf conftest* 2659 rm -rf conftest*
2654 cat > conftest.$ac_ext <<EOF 2660 cat > conftest.$ac_ext <<EOF
2655#line 2656 "configure" 2661#line 2662 "configure"
2656#include "confdefs.h" 2662#include "confdefs.h"
2657#define _XOPEN_SOURCE 500 2663#define _XOPEN_SOURCE 500
2658#include <sys/types.h> 2664#include <sys/types.h>
@@ -2664,7 +2670,7 @@ int main() {
2664return !ftello; 2670return !ftello;
2665; return 0; } 2671; return 0; }
2666EOF 2672EOF
2667if { (eval echo configure:2668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2673if { (eval echo configure:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2668 rm -rf conftest* 2674 rm -rf conftest*
2669 ac_cv_sys_xopen_source=500 2675 ac_cv_sys_xopen_source=500
2670else 2676else
@@ -2691,17 +2697,17 @@ for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h
2691do 2697do
2692ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2698ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2693echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2699echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2694echo "configure:2695: checking for $ac_hdr" >&5 2700echo "configure:2701: checking for $ac_hdr" >&5
2695if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2701if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6 2702 echo $ac_n "(cached) $ac_c" 1>&6
2697else 2703else
2698 cat > conftest.$ac_ext <<EOF 2704 cat > conftest.$ac_ext <<EOF
2699#line 2700 "configure" 2705#line 2706 "configure"
2700#include "confdefs.h" 2706#include "confdefs.h"
2701#include <$ac_hdr> 2707#include <$ac_hdr>
2702EOF 2708EOF
2703ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2709ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2704{ (eval echo configure:2705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2710{ (eval echo configure:2711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2705ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2711ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2706if test -z "$ac_err"; then 2712if test -z "$ac_err"; then
2707 rm -rf conftest* 2713 rm -rf conftest*
@@ -2729,7 +2735,7 @@ done
2729 2735
2730# Emulation library used on NetBSD. 2736# Emulation library used on NetBSD.
2731echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 2737echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2732echo "configure:2733: checking for _oss_ioctl in -lossaudio" >&5 2738echo "configure:2739: checking for _oss_ioctl in -lossaudio" >&5
2733ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` 2739ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2734if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2740if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6 2741 echo $ac_n "(cached) $ac_c" 1>&6
@@ -2737,7 +2743,7 @@ else
2737 ac_save_LIBS="$LIBS" 2743 ac_save_LIBS="$LIBS"
2738LIBS="-lossaudio $LIBS" 2744LIBS="-lossaudio $LIBS"
2739cat > conftest.$ac_ext <<EOF 2745cat > conftest.$ac_ext <<EOF
2740#line 2741 "configure" 2746#line 2747 "configure"
2741#include "confdefs.h" 2747#include "confdefs.h"
2742/* Override any gcc2 internal prototype to avoid an error. */ 2748/* Override any gcc2 internal prototype to avoid an error. */
2743/* We use char because int might match the return type of a gcc2 2749/* We use char because int might match the return type of a gcc2
@@ -2748,7 +2754,7 @@ int main() {
2748_oss_ioctl() 2754_oss_ioctl()
2749; return 0; } 2755; return 0; }
2750EOF 2756EOF
2751if { (eval echo configure:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2757if { (eval echo configure:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2752 rm -rf conftest* 2758 rm -rf conftest*
2753 eval "ac_cv_lib_$ac_lib_var=yes" 2759 eval "ac_cv_lib_$ac_lib_var=yes"
2754else 2760else
@@ -2777,17 +2783,17 @@ for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
2777do 2783do
2778ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2784ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2779echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2785echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2780echo "configure:2781: checking for $ac_hdr" >&5 2786echo "configure:2787: checking for $ac_hdr" >&5
2781if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2787if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6 2788 echo $ac_n "(cached) $ac_c" 1>&6
2783else 2789else
2784 cat > conftest.$ac_ext <<EOF 2790 cat > conftest.$ac_ext <<EOF
2785#line 2786 "configure" 2791#line 2792 "configure"
2786#include "confdefs.h" 2792#include "confdefs.h"
2787#include <$ac_hdr> 2793#include <$ac_hdr>
2788EOF 2794EOF
2789ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2795ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2790{ (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2796{ (eval echo configure:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2791ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2797ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2792if test -z "$ac_err"; then 2798if test -z "$ac_err"; then
2793 rm -rf conftest* 2799 rm -rf conftest*
@@ -2814,12 +2820,12 @@ fi
2814done 2820done
2815 2821
2816echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2822echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2817echo "configure:2818: checking for ANSI C header files" >&5 2823echo "configure:2824: checking for ANSI C header files" >&5
2818if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2824if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6 2825 echo $ac_n "(cached) $ac_c" 1>&6
2820else 2826else
2821 cat > conftest.$ac_ext <<EOF 2827 cat > conftest.$ac_ext <<EOF
2822#line 2823 "configure" 2828#line 2829 "configure"
2823#include "confdefs.h" 2829#include "confdefs.h"
2824#include <stdlib.h> 2830#include <stdlib.h>
2825#include <stdarg.h> 2831#include <stdarg.h>
@@ -2827,7 +2833,7 @@ else
2827#include <float.h> 2833#include <float.h>
2828EOF 2834EOF
2829ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2835ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2830{ (eval echo configure:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2836{ (eval echo configure:2837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2831ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2837ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2832if test -z "$ac_err"; then 2838if test -z "$ac_err"; then
2833 rm -rf conftest* 2839 rm -rf conftest*
@@ -2844,7 +2850,7 @@ rm -f conftest*
2844if test $ac_cv_header_stdc = yes; then 2850if test $ac_cv_header_stdc = yes; then
2845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2846cat > conftest.$ac_ext <<EOF 2852cat > conftest.$ac_ext <<EOF
2847#line 2848 "configure" 2853#line 2854 "configure"
2848#include "confdefs.h" 2854#include "confdefs.h"
2849#include <string.h> 2855#include <string.h>
2850EOF 2856EOF
@@ -2862,7 +2868,7 @@ fi
2862if test $ac_cv_header_stdc = yes; then 2868if test $ac_cv_header_stdc = yes; then
2863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2864cat > conftest.$ac_ext <<EOF 2870cat > conftest.$ac_ext <<EOF
2865#line 2866 "configure" 2871#line 2872 "configure"
2866#include "confdefs.h" 2872#include "confdefs.h"
2867#include <stdlib.h> 2873#include <stdlib.h>
2868EOF 2874EOF
@@ -2883,7 +2889,7 @@ if test "$cross_compiling" = yes; then
2883 : 2889 :
2884else 2890else
2885 cat > conftest.$ac_ext <<EOF 2891 cat > conftest.$ac_ext <<EOF
2886#line 2887 "configure" 2892#line 2893 "configure"
2887#include "confdefs.h" 2893#include "confdefs.h"
2888#include <ctype.h> 2894#include <ctype.h>
2889#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2895#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -2894,7 +2900,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2894exit (0); } 2900exit (0); }
2895 2901
2896EOF 2902EOF
2897if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2903if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2898then 2904then
2899 : 2905 :
2900else 2906else
@@ -2918,12 +2924,12 @@ EOF
2918fi 2924fi
2919 2925
2920echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2926echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2921echo "configure:2922: checking whether time.h and sys/time.h may both be included" >&5 2927echo "configure:2928: checking whether time.h and sys/time.h may both be included" >&5
2922if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2928if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6 2929 echo $ac_n "(cached) $ac_c" 1>&6
2924else 2930else
2925 cat > conftest.$ac_ext <<EOF 2931 cat > conftest.$ac_ext <<EOF
2926#line 2927 "configure" 2932#line 2933 "configure"
2927#include "confdefs.h" 2933#include "confdefs.h"
2928#include <sys/types.h> 2934#include <sys/types.h>
2929#include <sys/time.h> 2935#include <sys/time.h>
@@ -2932,7 +2938,7 @@ int main() {
2932struct tm *tp; 2938struct tm *tp;
2933; return 0; } 2939; return 0; }
2934EOF 2940EOF
2935if { (eval echo configure:2936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2941if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2936 rm -rf conftest* 2942 rm -rf conftest*
2937 ac_cv_header_time=yes 2943 ac_cv_header_time=yes
2938else 2944else
@@ -2953,12 +2959,12 @@ EOF
2953fi 2959fi
2954 2960
2955echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2961echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2956echo "configure:2957: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2962echo "configure:2963: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2957if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2963if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6 2964 echo $ac_n "(cached) $ac_c" 1>&6
2959else 2965else
2960 cat > conftest.$ac_ext <<EOF 2966 cat > conftest.$ac_ext <<EOF
2961#line 2962 "configure" 2967#line 2968 "configure"
2962#include "confdefs.h" 2968#include "confdefs.h"
2963#include <sys/types.h> 2969#include <sys/types.h>
2964#include <signal.h> 2970#include <signal.h>
@@ -2970,7 +2976,7 @@ int main() {
2970char *msg = *(sys_siglist + 1); 2976char *msg = *(sys_siglist + 1);
2971; return 0; } 2977; return 0; }
2972EOF 2978EOF
2973if { (eval echo configure:2974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2979if { (eval echo configure:2980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2974 rm -rf conftest* 2980 rm -rf conftest*
2975 ac_cv_decl_sys_siglist=yes 2981 ac_cv_decl_sys_siglist=yes
2976else 2982else
@@ -2991,12 +2997,12 @@ EOF
2991fi 2997fi
2992 2998
2993echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2999echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2994echo "configure:2995: checking for sys/wait.h that is POSIX.1 compatible" >&5 3000echo "configure:3001: checking for sys/wait.h that is POSIX.1 compatible" >&5
2995if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 3001if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6 3002 echo $ac_n "(cached) $ac_c" 1>&6
2997else 3003else
2998 cat > conftest.$ac_ext <<EOF 3004 cat > conftest.$ac_ext <<EOF
2999#line 3000 "configure" 3005#line 3006 "configure"
3000#include "confdefs.h" 3006#include "confdefs.h"
3001#include <sys/types.h> 3007#include <sys/types.h>
3002#include <sys/wait.h> 3008#include <sys/wait.h>
@@ -3012,7 +3018,7 @@ wait (&s);
3012s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3018s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3013; return 0; } 3019; return 0; }
3014EOF 3020EOF
3015if { (eval echo configure:3016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3021if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3016 rm -rf conftest* 3022 rm -rf conftest*
3017 ac_cv_header_sys_wait_h=yes 3023 ac_cv_header_sys_wait_h=yes
3018else 3024else
@@ -3034,12 +3040,12 @@ fi
3034 3040
3035 3041
3036echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3042echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3037echo "configure:3038: checking for struct utimbuf" >&5 3043echo "configure:3044: checking for struct utimbuf" >&5
3038if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 3044if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6 3045 echo $ac_n "(cached) $ac_c" 1>&6
3040else 3046else
3041 cat > conftest.$ac_ext <<EOF 3047 cat > conftest.$ac_ext <<EOF
3042#line 3043 "configure" 3048#line 3049 "configure"
3043#include "confdefs.h" 3049#include "confdefs.h"
3044#ifdef TIME_WITH_SYS_TIME 3050#ifdef TIME_WITH_SYS_TIME
3045#include <sys/time.h> 3051#include <sys/time.h>
@@ -3058,7 +3064,7 @@ int main() {
3058static struct utimbuf x; x.actime = x.modtime; 3064static struct utimbuf x; x.actime = x.modtime;
3059; return 0; } 3065; return 0; }
3060EOF 3066EOF
3061if { (eval echo configure:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3067if { (eval echo configure:3068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3062 rm -rf conftest* 3068 rm -rf conftest*
3063 emacs_cv_struct_utimbuf=yes 3069 emacs_cv_struct_utimbuf=yes
3064else 3070else
@@ -3079,12 +3085,12 @@ EOF
3079fi 3085fi
3080 3086
3081echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3087echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3082echo "configure:3083: checking return type of signal handlers" >&5 3088echo "configure:3089: checking return type of signal handlers" >&5
3083if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 3089if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6 3090 echo $ac_n "(cached) $ac_c" 1>&6
3085else 3091else
3086 cat > conftest.$ac_ext <<EOF 3092 cat > conftest.$ac_ext <<EOF
3087#line 3088 "configure" 3093#line 3094 "configure"
3088#include "confdefs.h" 3094#include "confdefs.h"
3089#include <sys/types.h> 3095#include <sys/types.h>
3090#include <signal.h> 3096#include <signal.h>
@@ -3101,7 +3107,7 @@ int main() {
3101int i; 3107int i;
3102; return 0; } 3108; return 0; }
3103EOF 3109EOF
3104if { (eval echo configure:3105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3110if { (eval echo configure:3111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3105 rm -rf conftest* 3111 rm -rf conftest*
3106 ac_cv_type_signal=void 3112 ac_cv_type_signal=void
3107else 3113else
@@ -3121,19 +3127,19 @@ EOF
3121 3127
3122 3128
3123echo $ac_n "checking for speed_t""... $ac_c" 1>&6 3129echo $ac_n "checking for speed_t""... $ac_c" 1>&6
3124echo "configure:3125: checking for speed_t" >&5 3130echo "configure:3131: checking for speed_t" >&5
3125if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then 3131if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6 3132 echo $ac_n "(cached) $ac_c" 1>&6
3127else 3133else
3128 cat > conftest.$ac_ext <<EOF 3134 cat > conftest.$ac_ext <<EOF
3129#line 3130 "configure" 3135#line 3136 "configure"
3130#include "confdefs.h" 3136#include "confdefs.h"
3131#include <termios.h> 3137#include <termios.h>
3132int main() { 3138int main() {
3133speed_t x = 1; 3139speed_t x = 1;
3134; return 0; } 3140; return 0; }
3135EOF 3141EOF
3136if { (eval echo configure:3137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3142if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3137 rm -rf conftest* 3143 rm -rf conftest*
3138 emacs_cv_speed_t=yes 3144 emacs_cv_speed_t=yes
3139else 3145else
@@ -3152,12 +3158,12 @@ EOF
3152fi 3158fi
3153 3159
3154echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3160echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3155echo "configure:3156: checking for struct timeval" >&5 3161echo "configure:3162: checking for struct timeval" >&5
3156if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 3162if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6 3163 echo $ac_n "(cached) $ac_c" 1>&6
3158else 3164else
3159 cat > conftest.$ac_ext <<EOF 3165 cat > conftest.$ac_ext <<EOF
3160#line 3161 "configure" 3166#line 3167 "configure"
3161#include "confdefs.h" 3167#include "confdefs.h"
3162#ifdef TIME_WITH_SYS_TIME 3168#ifdef TIME_WITH_SYS_TIME
3163#include <sys/time.h> 3169#include <sys/time.h>
@@ -3173,7 +3179,7 @@ int main() {
3173static struct timeval x; x.tv_sec = x.tv_usec; 3179static struct timeval x; x.tv_sec = x.tv_usec;
3174; return 0; } 3180; return 0; }
3175EOF 3181EOF
3176if { (eval echo configure:3177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3182if { (eval echo configure:3183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3177 rm -rf conftest* 3183 rm -rf conftest*
3178 emacs_cv_struct_timeval=yes 3184 emacs_cv_struct_timeval=yes
3179else 3185else
@@ -3195,19 +3201,19 @@ EOF
3195fi 3201fi
3196 3202
3197echo $ac_n "checking for struct exception""... $ac_c" 1>&6 3203echo $ac_n "checking for struct exception""... $ac_c" 1>&6
3198echo "configure:3199: checking for struct exception" >&5 3204echo "configure:3205: checking for struct exception" >&5
3199if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then 3205if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6 3206 echo $ac_n "(cached) $ac_c" 1>&6
3201else 3207else
3202 cat > conftest.$ac_ext <<EOF 3208 cat > conftest.$ac_ext <<EOF
3203#line 3204 "configure" 3209#line 3210 "configure"
3204#include "confdefs.h" 3210#include "confdefs.h"
3205#include <math.h> 3211#include <math.h>
3206int main() { 3212int main() {
3207static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; 3213static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
3208; return 0; } 3214; return 0; }
3209EOF 3215EOF
3210if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3216if { (eval echo configure:3217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3211 rm -rf conftest* 3217 rm -rf conftest*
3212 emacs_cv_struct_exception=yes 3218 emacs_cv_struct_exception=yes
3213else 3219else
@@ -3229,12 +3235,12 @@ EOF
3229fi 3235fi
3230 3236
3231echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3237echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3232echo "configure:3233: checking whether struct tm is in sys/time.h or time.h" >&5 3238echo "configure:3239: checking whether struct tm is in sys/time.h or time.h" >&5
3233if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 3239if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6 3240 echo $ac_n "(cached) $ac_c" 1>&6
3235else 3241else
3236 cat > conftest.$ac_ext <<EOF 3242 cat > conftest.$ac_ext <<EOF
3237#line 3238 "configure" 3243#line 3244 "configure"
3238#include "confdefs.h" 3244#include "confdefs.h"
3239#include <sys/types.h> 3245#include <sys/types.h>
3240#include <time.h> 3246#include <time.h>
@@ -3242,7 +3248,7 @@ int main() {
3242struct tm *tp; tp->tm_sec; 3248struct tm *tp; tp->tm_sec;
3243; return 0; } 3249; return 0; }
3244EOF 3250EOF
3245if { (eval echo configure:3246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3251if { (eval echo configure:3252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3246 rm -rf conftest* 3252 rm -rf conftest*
3247 ac_cv_struct_tm=time.h 3253 ac_cv_struct_tm=time.h
3248else 3254else
@@ -3263,12 +3269,12 @@ EOF
3263fi 3269fi
3264 3270
3265echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3271echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3266echo "configure:3267: checking for tm_zone in struct tm" >&5 3272echo "configure:3273: checking for tm_zone in struct tm" >&5
3267if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 3273if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6 3274 echo $ac_n "(cached) $ac_c" 1>&6
3269else 3275else
3270 cat > conftest.$ac_ext <<EOF 3276 cat > conftest.$ac_ext <<EOF
3271#line 3272 "configure" 3277#line 3278 "configure"
3272#include "confdefs.h" 3278#include "confdefs.h"
3273#include <sys/types.h> 3279#include <sys/types.h>
3274#include <$ac_cv_struct_tm> 3280#include <$ac_cv_struct_tm>
@@ -3276,7 +3282,7 @@ int main() {
3276struct tm tm; tm.tm_zone; 3282struct tm tm; tm.tm_zone;
3277; return 0; } 3283; return 0; }
3278EOF 3284EOF
3279if { (eval echo configure:3280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3285if { (eval echo configure:3286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3280 rm -rf conftest* 3286 rm -rf conftest*
3281 ac_cv_struct_tm_zone=yes 3287 ac_cv_struct_tm_zone=yes
3282else 3288else
@@ -3296,12 +3302,12 @@ EOF
3296 3302
3297else 3303else
3298 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3304 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3299echo "configure:3300: checking for tzname" >&5 3305echo "configure:3306: checking for tzname" >&5
3300if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 3306if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6 3307 echo $ac_n "(cached) $ac_c" 1>&6
3302else 3308else
3303 cat > conftest.$ac_ext <<EOF 3309 cat > conftest.$ac_ext <<EOF
3304#line 3305 "configure" 3310#line 3311 "configure"
3305#include "confdefs.h" 3311#include "confdefs.h"
3306#include <time.h> 3312#include <time.h>
3307#ifndef tzname /* For SGI. */ 3313#ifndef tzname /* For SGI. */
@@ -3311,7 +3317,7 @@ int main() {
3311atoi(*tzname); 3317atoi(*tzname);
3312; return 0; } 3318; return 0; }
3313EOF 3319EOF
3314if { (eval echo configure:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3320if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3315 rm -rf conftest* 3321 rm -rf conftest*
3316 ac_cv_var_tzname=yes 3322 ac_cv_var_tzname=yes
3317else 3323else
@@ -3333,19 +3339,19 @@ EOF
3333fi 3339fi
3334 3340
3335echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 3341echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3336echo "configure:3337: checking for tm_gmtoff in struct tm" >&5 3342echo "configure:3343: checking for tm_gmtoff in struct tm" >&5
3337if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 3343if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6 3344 echo $ac_n "(cached) $ac_c" 1>&6
3339else 3345else
3340 cat > conftest.$ac_ext <<EOF 3346 cat > conftest.$ac_ext <<EOF
3341#line 3342 "configure" 3347#line 3348 "configure"
3342#include "confdefs.h" 3348#include "confdefs.h"
3343#include <time.h> 3349#include <time.h>
3344int main() { 3350int main() {
3345struct tm t; t.tm_gmtoff = 0 3351struct tm t; t.tm_gmtoff = 0
3346; return 0; } 3352; return 0; }
3347EOF 3353EOF
3348if { (eval echo configure:3349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3354if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3349 rm -rf conftest* 3355 rm -rf conftest*
3350 emacs_cv_tm_gmtoff=yes 3356 emacs_cv_tm_gmtoff=yes
3351else 3357else
@@ -3367,7 +3373,7 @@ fi
3367 3373
3368 3374
3369echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 3375echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3370echo "configure:3371: checking for ${CC-cc} option to accept ANSI C" >&5 3376echo "configure:3377: checking for ${CC-cc} option to accept ANSI C" >&5
3371if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then 3377if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6 3378 echo $ac_n "(cached) $ac_c" 1>&6
3373else 3379else
@@ -3384,7 +3390,7 @@ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIO
3384do 3390do
3385 CC="$ac_save_CC $ac_arg" 3391 CC="$ac_save_CC $ac_arg"
3386 cat > conftest.$ac_ext <<EOF 3392 cat > conftest.$ac_ext <<EOF
3387#line 3388 "configure" 3393#line 3394 "configure"
3388#include "confdefs.h" 3394#include "confdefs.h"
3389#include <stdarg.h> 3395#include <stdarg.h>
3390#include <stdio.h> 3396#include <stdio.h>
@@ -3418,7 +3424,7 @@ int main() {
3418return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3424return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419; return 0; } 3425; return 0; }
3420EOF 3426EOF
3421if { (eval echo configure:3422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3427if { (eval echo configure:3428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3422 rm -rf conftest* 3428 rm -rf conftest*
3423 ac_cv_prog_cc_stdc="$ac_arg"; break 3429 ac_cv_prog_cc_stdc="$ac_arg"; break
3424else 3430else
@@ -3440,7 +3446,7 @@ case "x$ac_cv_prog_cc_stdc" in
3440esac 3446esac
3441 3447
3442echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 3448echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
3443echo "configure:3444: checking for function prototypes" >&5 3449echo "configure:3450: checking for function prototypes" >&5
3444if test "$ac_cv_prog_cc_stdc" != no; then 3450if test "$ac_cv_prog_cc_stdc" != no; then
3445 echo "$ac_t""yes" 1>&6 3451 echo "$ac_t""yes" 1>&6
3446 cat >> confdefs.h <<\EOF 3452 cat >> confdefs.h <<\EOF
@@ -3452,12 +3458,12 @@ else
3452fi 3458fi
3453 3459
3454echo $ac_n "checking for working volatile""... $ac_c" 1>&6 3460echo $ac_n "checking for working volatile""... $ac_c" 1>&6
3455echo "configure:3456: checking for working volatile" >&5 3461echo "configure:3462: checking for working volatile" >&5
3456if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then 3462if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6 3463 echo $ac_n "(cached) $ac_c" 1>&6
3458else 3464else
3459 cat > conftest.$ac_ext <<EOF 3465 cat > conftest.$ac_ext <<EOF
3460#line 3461 "configure" 3466#line 3467 "configure"
3461#include "confdefs.h" 3467#include "confdefs.h"
3462 3468
3463int main() { 3469int main() {
@@ -3466,7 +3472,7 @@ volatile int x;
3466int * volatile y; 3472int * volatile y;
3467; return 0; } 3473; return 0; }
3468EOF 3474EOF
3469if { (eval echo configure:3470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3475if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3470 rm -rf conftest* 3476 rm -rf conftest*
3471 ac_cv_c_volatile=yes 3477 ac_cv_c_volatile=yes
3472else 3478else
@@ -3487,12 +3493,12 @@ EOF
3487fi 3493fi
3488 3494
3489echo $ac_n "checking for working const""... $ac_c" 1>&6 3495echo $ac_n "checking for working const""... $ac_c" 1>&6
3490echo "configure:3491: checking for working const" >&5 3496echo "configure:3497: checking for working const" >&5
3491if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 3497if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6 3498 echo $ac_n "(cached) $ac_c" 1>&6
3493else 3499else
3494 cat > conftest.$ac_ext <<EOF 3500 cat > conftest.$ac_ext <<EOF
3495#line 3496 "configure" 3501#line 3502 "configure"
3496#include "confdefs.h" 3502#include "confdefs.h"
3497 3503
3498int main() { 3504int main() {
@@ -3541,7 +3547,7 @@ ccp = (char const *const *) p;
3541 3547
3542; return 0; } 3548; return 0; }
3543EOF 3549EOF
3544if { (eval echo configure:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3550if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3545 rm -rf conftest* 3551 rm -rf conftest*
3546 ac_cv_c_const=yes 3552 ac_cv_c_const=yes
3547else 3553else
@@ -3562,19 +3568,19 @@ EOF
3562fi 3568fi
3563 3569
3564echo $ac_n "checking for void * support""... $ac_c" 1>&6 3570echo $ac_n "checking for void * support""... $ac_c" 1>&6
3565echo "configure:3566: checking for void * support" >&5 3571echo "configure:3572: checking for void * support" >&5
3566if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then 3572if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6 3573 echo $ac_n "(cached) $ac_c" 1>&6
3568else 3574else
3569 cat > conftest.$ac_ext <<EOF 3575 cat > conftest.$ac_ext <<EOF
3570#line 3571 "configure" 3576#line 3577 "configure"
3571#include "confdefs.h" 3577#include "confdefs.h"
3572 3578
3573int main() { 3579int main() {
3574void * foo; 3580void * foo;
3575; return 0; } 3581; return 0; }
3576EOF 3582EOF
3577if { (eval echo configure:3578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3583if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3578 rm -rf conftest* 3584 rm -rf conftest*
3579 emacs_cv_void_star=yes 3585 emacs_cv_void_star=yes
3580else 3586else
@@ -3600,7 +3606,7 @@ EOF
3600fi 3606fi
3601 3607
3602echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3608echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3603echo "configure:3604: checking whether ${MAKE-make} sets \${MAKE}" >&5 3609echo "configure:3610: checking whether ${MAKE-make} sets \${MAKE}" >&5
3604set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3610set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3605if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 3611if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6 3612 echo $ac_n "(cached) $ac_c" 1>&6
@@ -3628,7 +3634,7 @@ fi
3628 3634
3629 3635
3630echo $ac_n "checking for long file names""... $ac_c" 1>&6 3636echo $ac_n "checking for long file names""... $ac_c" 1>&6
3631echo "configure:3632: checking for long file names" >&5 3637echo "configure:3638: checking for long file names" >&5
3632if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 3638if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6 3639 echo $ac_n "(cached) $ac_c" 1>&6
3634else 3640else
@@ -3679,7 +3685,7 @@ fi
3679# Uses ac_ vars as temps to allow command line to override cache and checks. 3685# Uses ac_ vars as temps to allow command line to override cache and checks.
3680# --without-x overrides everything else, but does not touch the cache. 3686# --without-x overrides everything else, but does not touch the cache.
3681echo $ac_n "checking for X""... $ac_c" 1>&6 3687echo $ac_n "checking for X""... $ac_c" 1>&6
3682echo "configure:3683: checking for X" >&5 3688echo "configure:3689: checking for X" >&5
3683 3689
3684# Check whether --with-x or --without-x was given. 3690# Check whether --with-x or --without-x was given.
3685if test "${with_x+set}" = set; then 3691if test "${with_x+set}" = set; then
@@ -3741,12 +3747,12 @@ if test "$ac_x_includes" = NO; then
3741 3747
3742 # First, try using that file with no special directory specified. 3748 # First, try using that file with no special directory specified.
3743cat > conftest.$ac_ext <<EOF 3749cat > conftest.$ac_ext <<EOF
3744#line 3745 "configure" 3750#line 3751 "configure"
3745#include "confdefs.h" 3751#include "confdefs.h"
3746#include <$x_direct_test_include> 3752#include <$x_direct_test_include>
3747EOF 3753EOF
3748ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3754ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3749{ (eval echo configure:3750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3755{ (eval echo configure:3756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3750ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3756ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3751if test -z "$ac_err"; then 3757if test -z "$ac_err"; then
3752 rm -rf conftest* 3758 rm -rf conftest*
@@ -3815,14 +3821,14 @@ if test "$ac_x_libraries" = NO; then
3815 ac_save_LIBS="$LIBS" 3821 ac_save_LIBS="$LIBS"
3816 LIBS="-l$x_direct_test_library $LIBS" 3822 LIBS="-l$x_direct_test_library $LIBS"
3817cat > conftest.$ac_ext <<EOF 3823cat > conftest.$ac_ext <<EOF
3818#line 3819 "configure" 3824#line 3825 "configure"
3819#include "confdefs.h" 3825#include "confdefs.h"
3820 3826
3821int main() { 3827int main() {
3822${x_direct_test_function}() 3828${x_direct_test_function}()
3823; return 0; } 3829; return 0; }
3824EOF 3830EOF
3825if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3831if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3826 rm -rf conftest* 3832 rm -rf conftest*
3827 LIBS="$ac_save_LIBS" 3833 LIBS="$ac_save_LIBS"
3828# We can link X programs with no special library path. 3834# We can link X programs with no special library path.
@@ -4000,12 +4006,12 @@ UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
4000GNU_MALLOC=yes 4006GNU_MALLOC=yes
4001doug_lea_malloc=yes 4007doug_lea_malloc=yes
4002echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 4008echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
4003echo "configure:4004: checking for malloc_get_state" >&5 4009echo "configure:4010: checking for malloc_get_state" >&5
4004if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 4010if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6 4011 echo $ac_n "(cached) $ac_c" 1>&6
4006else 4012else
4007 cat > conftest.$ac_ext <<EOF 4013 cat > conftest.$ac_ext <<EOF
4008#line 4009 "configure" 4014#line 4015 "configure"
4009#include "confdefs.h" 4015#include "confdefs.h"
4010/* System header to define __stub macros and hopefully few prototypes, 4016/* System header to define __stub macros and hopefully few prototypes,
4011 which can conflict with char malloc_get_state(); below. */ 4017 which can conflict with char malloc_get_state(); below. */
@@ -4028,7 +4034,7 @@ malloc_get_state();
4028 4034
4029; return 0; } 4035; return 0; }
4030EOF 4036EOF
4031if { (eval echo configure:4032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4037if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4032 rm -rf conftest* 4038 rm -rf conftest*
4033 eval "ac_cv_func_malloc_get_state=yes" 4039 eval "ac_cv_func_malloc_get_state=yes"
4034else 4040else
@@ -4049,12 +4055,12 @@ doug_lea_malloc=no
4049fi 4055fi
4050 4056
4051echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 4057echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
4052echo "configure:4053: checking for malloc_set_state" >&5 4058echo "configure:4059: checking for malloc_set_state" >&5
4053if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 4059if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6 4060 echo $ac_n "(cached) $ac_c" 1>&6
4055else 4061else
4056 cat > conftest.$ac_ext <<EOF 4062 cat > conftest.$ac_ext <<EOF
4057#line 4058 "configure" 4063#line 4064 "configure"
4058#include "confdefs.h" 4064#include "confdefs.h"
4059/* System header to define __stub macros and hopefully few prototypes, 4065/* System header to define __stub macros and hopefully few prototypes,
4060 which can conflict with char malloc_set_state(); below. */ 4066 which can conflict with char malloc_set_state(); below. */
@@ -4077,7 +4083,7 @@ malloc_set_state();
4077 4083
4078; return 0; } 4084; return 0; }
4079EOF 4085EOF
4080if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4086if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4081 rm -rf conftest* 4087 rm -rf conftest*
4082 eval "ac_cv_func_malloc_set_state=yes" 4088 eval "ac_cv_func_malloc_set_state=yes"
4083else 4089else
@@ -4098,19 +4104,19 @@ doug_lea_malloc=no
4098fi 4104fi
4099 4105
4100echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 4106echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
4101echo "configure:4102: checking whether __after_morecore_hook exists" >&5 4107echo "configure:4108: checking whether __after_morecore_hook exists" >&5
4102if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 4108if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6 4109 echo $ac_n "(cached) $ac_c" 1>&6
4104else 4110else
4105 cat > conftest.$ac_ext <<EOF 4111 cat > conftest.$ac_ext <<EOF
4106#line 4107 "configure" 4112#line 4113 "configure"
4107#include "confdefs.h" 4113#include "confdefs.h"
4108extern void (* __after_morecore_hook)(); 4114extern void (* __after_morecore_hook)();
4109int main() { 4115int main() {
4110__after_morecore_hook = 0 4116__after_morecore_hook = 0
4111; return 0; } 4117; return 0; }
4112EOF 4118EOF
4113if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4119if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4114 rm -rf conftest* 4120 rm -rf conftest*
4115 emacs_cv_var___after_morecore_hook=yes 4121 emacs_cv_var___after_morecore_hook=yes
4116else 4122else
@@ -4146,10 +4152,281 @@ if test x"${REL_ALLOC}" = x; then
4146 REL_ALLOC=${GNU_MALLOC} 4152 REL_ALLOC=${GNU_MALLOC}
4147fi 4153fi
4148 4154
4155@@@
4156for ac_hdr in unistd.h
4157do
4158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4160echo "configure:4161: checking for $ac_hdr" >&5
4161if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4163else
4164 cat > conftest.$ac_ext <<EOF
4165#line 4166 "configure"
4166#include "confdefs.h"
4167#include <$ac_hdr>
4168EOF
4169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4170{ (eval echo configure:4171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4172if test -z "$ac_err"; then
4173 rm -rf conftest*
4174 eval "ac_cv_header_$ac_safe=yes"
4175else
4176 echo "$ac_err" >&5
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4179 rm -rf conftest*
4180 eval "ac_cv_header_$ac_safe=no"
4181fi
4182rm -f conftest*
4183fi
4184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4185 echo "$ac_t""yes" 1>&6
4186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4187 cat >> confdefs.h <<EOF
4188#define $ac_tr_hdr 1
4189EOF
4190
4191else
4192 echo "$ac_t""no" 1>&6
4193fi
4194done
4195
4196for ac_func in getpagesize
4197do
4198echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4199echo "configure:4200: checking for $ac_func" >&5
4200if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4202else
4203 cat > conftest.$ac_ext <<EOF
4204#line 4205 "configure"
4205#include "confdefs.h"
4206/* System header to define __stub macros and hopefully few prototypes,
4207 which can conflict with char $ac_func(); below. */
4208#include <assert.h>
4209/* Override any gcc2 internal prototype to avoid an error. */
4210/* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212char $ac_func();
4213
4214int main() {
4215
4216/* The GNU C library defines this for functions which it implements
4217 to always fail with ENOSYS. Some functions are actually named
4218 something starting with __ and the normal name is an alias. */
4219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4220choke me
4221#else
4222$ac_func();
4223#endif
4224
4225; return 0; }
4226EOF
4227if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4228 rm -rf conftest*
4229 eval "ac_cv_func_$ac_func=yes"
4230else
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4233 rm -rf conftest*
4234 eval "ac_cv_func_$ac_func=no"
4235fi
4236rm -f conftest*
4237fi
4238
4239if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4240 echo "$ac_t""yes" 1>&6
4241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4242 cat >> confdefs.h <<EOF
4243#define $ac_tr_func 1
4244EOF
4245
4246else
4247 echo "$ac_t""no" 1>&6
4248fi
4249done
4250
4251echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4252echo "configure:4253: checking for working mmap" >&5
4253if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4255else
4256 if test "$cross_compiling" = yes; then
4257 ac_cv_func_mmap_fixed_mapped=no
4258else
4259 cat > conftest.$ac_ext <<EOF
4260#line 4261 "configure"
4261#include "confdefs.h"
4262
4263/* Thanks to Mike Haertel and Jim Avera for this test.
4264 Here is a matrix of mmap possibilities:
4265 mmap private not fixed
4266 mmap private fixed at somewhere currently unmapped
4267 mmap private fixed at somewhere already mapped
4268 mmap shared not fixed
4269 mmap shared fixed at somewhere currently unmapped
4270 mmap shared fixed at somewhere already mapped
4271 For private mappings, we should verify that changes cannot be read()
4272 back from the file, nor mmap's back from the file at a different
4273 address. (There have been systems where private was not correctly
4274 implemented like the infamous i386 svr4.0, and systems where the
4275 VM page cache was not coherent with the filesystem buffer cache
4276 like early versions of FreeBSD and possibly contemporary NetBSD.)
4277 For shared mappings, we should conversely verify that changes get
4278 propogated back to all the places they're supposed to be.
4279
4280 Grep wants private fixed already mapped.
4281 The main things grep needs to know about mmap are:
4282 * does it exist and is it safe to write into the mmap'd area
4283 * how to use it (BSD variants) */
4284#include <sys/types.h>
4285#include <fcntl.h>
4286#include <sys/mman.h>
4287
4288/* This mess was copied from the GNU getpagesize.h. */
4289#ifndef HAVE_GETPAGESIZE
4290# ifdef HAVE_UNISTD_H
4291# include <unistd.h>
4292# endif
4293
4294/* Assume that all systems that can run configure have sys/param.h. */
4295# ifndef HAVE_SYS_PARAM_H
4296# define HAVE_SYS_PARAM_H 1
4297# endif
4298
4299# ifdef _SC_PAGESIZE
4300# define getpagesize() sysconf(_SC_PAGESIZE)
4301# else /* no _SC_PAGESIZE */
4302# ifdef HAVE_SYS_PARAM_H
4303# include <sys/param.h>
4304# ifdef EXEC_PAGESIZE
4305# define getpagesize() EXEC_PAGESIZE
4306# else /* no EXEC_PAGESIZE */
4307# ifdef NBPG
4308# define getpagesize() NBPG * CLSIZE
4309# ifndef CLSIZE
4310# define CLSIZE 1
4311# endif /* no CLSIZE */
4312# else /* no NBPG */
4313# ifdef NBPC
4314# define getpagesize() NBPC
4315# else /* no NBPC */
4316# ifdef PAGESIZE
4317# define getpagesize() PAGESIZE
4318# endif /* PAGESIZE */
4319# endif /* no NBPC */
4320# endif /* no NBPG */
4321# endif /* no EXEC_PAGESIZE */
4322# else /* no HAVE_SYS_PARAM_H */
4323# define getpagesize() 8192 /* punt totally */
4324# endif /* no HAVE_SYS_PARAM_H */
4325# endif /* no _SC_PAGESIZE */
4326
4327#endif /* no HAVE_GETPAGESIZE */
4328
4329#ifdef __cplusplus
4330extern "C" { void *malloc(unsigned); }
4331#else
4332char *malloc();
4333#endif
4334
4335int
4336main()
4337{
4338 char *data, *data2, *data3;
4339 int i, pagesize;
4340 int fd;
4341
4342 pagesize = getpagesize();
4343
4344 /*
4345 * First, make a file with some known garbage in it.
4346 */
4347 data = malloc(pagesize);
4348 if (!data)
4349 exit(1);
4350 for (i = 0; i < pagesize; ++i)
4351 *(data + i) = rand();
4352 umask(0);
4353 fd = creat("conftestmmap", 0600);
4354 if (fd < 0)
4355 exit(1);
4356 if (write(fd, data, pagesize) != pagesize)
4357 exit(1);
4358 close(fd);
4359
4360 /*
4361 * Next, try to mmap the file at a fixed address which
4362 * already has something else allocated at it. If we can,
4363 * also make sure that we see the same garbage.
4364 */
4365 fd = open("conftestmmap", O_RDWR);
4366 if (fd < 0)
4367 exit(1);
4368 data2 = malloc(2 * pagesize);
4369 if (!data2)
4370 exit(1);
4371 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4372 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4373 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4374 exit(1);
4375 for (i = 0; i < pagesize; ++i)
4376 if (*(data + i) != *(data2 + i))
4377 exit(1);
4378
4379 /*
4380 * Finally, make sure that changes to the mapped area
4381 * do not percolate back to the file as seen by read().
4382 * (This is a bug on some variants of i386 svr4.0.)
4383 */
4384 for (i = 0; i < pagesize; ++i)
4385 *(data2 + i) = *(data2 + i) + 1;
4386 data3 = malloc(pagesize);
4387 if (!data3)
4388 exit(1);
4389 if (read(fd, data3, pagesize) != pagesize)
4390 exit(1);
4391 for (i = 0; i < pagesize; ++i)
4392 if (*(data + i) != *(data3 + i))
4393 exit(1);
4394 close(fd);
4395 unlink("conftestmmap");
4396 exit(0);
4397}
4398
4399EOF
4400if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4401then
4402 ac_cv_func_mmap_fixed_mapped=yes
4403else
4404 echo "configure: failed program was:" >&5
4405 cat conftest.$ac_ext >&5
4406 rm -fr conftest*
4407 ac_cv_func_mmap_fixed_mapped=no
4408fi
4409rm -fr conftest*
4410fi
4411
4412fi
4413
4414echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4415if test $ac_cv_func_mmap_fixed_mapped = yes; then
4416 cat >> confdefs.h <<\EOF
4417#define HAVE_MMAP 1
4418EOF
4419
4420fi
4421
4422if test $rel_alloc_mmap = yes; then
4423 REL_ALLOC=yes
4424fi
4425
4149LIBS="$libsrc_libs $LIBS" 4426LIBS="$libsrc_libs $LIBS"
4150 4427
4151echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4428echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4152echo "configure:4153: checking for dnet_ntoa in -ldnet" >&5 4429echo "configure:4430: checking for dnet_ntoa in -ldnet" >&5
4153ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4430ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4154if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4431if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6 4432 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4157,7 +4434,7 @@ else
4157 ac_save_LIBS="$LIBS" 4434 ac_save_LIBS="$LIBS"
4158LIBS="-ldnet $LIBS" 4435LIBS="-ldnet $LIBS"
4159cat > conftest.$ac_ext <<EOF 4436cat > conftest.$ac_ext <<EOF
4160#line 4161 "configure" 4437#line 4438 "configure"
4161#include "confdefs.h" 4438#include "confdefs.h"
4162/* Override any gcc2 internal prototype to avoid an error. */ 4439/* Override any gcc2 internal prototype to avoid an error. */
4163/* We use char because int might match the return type of a gcc2 4440/* We use char because int might match the return type of a gcc2
@@ -4168,7 +4445,7 @@ int main() {
4168dnet_ntoa() 4445dnet_ntoa()
4169; return 0; } 4446; return 0; }
4170EOF 4447EOF
4171if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4448if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4172 rm -rf conftest* 4449 rm -rf conftest*
4173 eval "ac_cv_lib_$ac_lib_var=yes" 4450 eval "ac_cv_lib_$ac_lib_var=yes"
4174else 4451else
@@ -4197,7 +4474,7 @@ fi
4197 4474
4198 4475
4199echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 4476echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4200echo "configure:4201: checking for main in -lXbsd" >&5 4477echo "configure:4478: checking for main in -lXbsd" >&5
4201ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 4478ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4202if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4479if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6 4480 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4205,14 +4482,14 @@ else
4205 ac_save_LIBS="$LIBS" 4482 ac_save_LIBS="$LIBS"
4206LIBS="-lXbsd $LIBS" 4483LIBS="-lXbsd $LIBS"
4207cat > conftest.$ac_ext <<EOF 4484cat > conftest.$ac_ext <<EOF
4208#line 4209 "configure" 4485#line 4486 "configure"
4209#include "confdefs.h" 4486#include "confdefs.h"
4210 4487
4211int main() { 4488int main() {
4212main() 4489main()
4213; return 0; } 4490; return 0; }
4214EOF 4491EOF
4215if { (eval echo configure:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4492if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4216 rm -rf conftest* 4493 rm -rf conftest*
4217 eval "ac_cv_lib_$ac_lib_var=yes" 4494 eval "ac_cv_lib_$ac_lib_var=yes"
4218else 4495else
@@ -4234,7 +4511,7 @@ fi
4234 4511
4235 4512
4236echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4513echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4237echo "configure:4238: checking for cma_open in -lpthreads" >&5 4514echo "configure:4515: checking for cma_open in -lpthreads" >&5
4238ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4515ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4239if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4516if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4240 echo $ac_n "(cached) $ac_c" 1>&6 4517 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4242,7 +4519,7 @@ else
4242 ac_save_LIBS="$LIBS" 4519 ac_save_LIBS="$LIBS"
4243LIBS="-lpthreads $LIBS" 4520LIBS="-lpthreads $LIBS"
4244cat > conftest.$ac_ext <<EOF 4521cat > conftest.$ac_ext <<EOF
4245#line 4246 "configure" 4522#line 4523 "configure"
4246#include "confdefs.h" 4523#include "confdefs.h"
4247/* Override any gcc2 internal prototype to avoid an error. */ 4524/* Override any gcc2 internal prototype to avoid an error. */
4248/* We use char because int might match the return type of a gcc2 4525/* We use char because int might match the return type of a gcc2
@@ -4253,7 +4530,7 @@ int main() {
4253cma_open() 4530cma_open()
4254; return 0; } 4531; return 0; }
4255EOF 4532EOF
4256if { (eval echo configure:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4533if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4257 rm -rf conftest* 4534 rm -rf conftest*
4258 eval "ac_cv_lib_$ac_lib_var=yes" 4535 eval "ac_cv_lib_$ac_lib_var=yes"
4259else 4536else
@@ -4282,7 +4559,7 @@ fi
4282 4559
4283 4560
4284echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 4561echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
4285echo "configure:4286: checking for XFree86 in /usr/X386" >&5 4562echo "configure:4563: checking for XFree86 in /usr/X386" >&5
4286if test -d /usr/X386/include; then 4563if test -d /usr/X386/include; then
4287 HAVE_XFREE386=yes 4564 HAVE_XFREE386=yes
4288 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 4565 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
@@ -4314,16 +4591,16 @@ if test "${HAVE_X11}" = "yes"; then
4314 4591
4315 if test "${opsys}" = "gnu-linux"; then 4592 if test "${opsys}" = "gnu-linux"; then
4316 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 4593 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
4317echo "configure:4318: checking whether X on GNU/Linux needs -b to link" >&5 4594echo "configure:4595: checking whether X on GNU/Linux needs -b to link" >&5
4318 cat > conftest.$ac_ext <<EOF 4595 cat > conftest.$ac_ext <<EOF
4319#line 4320 "configure" 4596#line 4597 "configure"
4320#include "confdefs.h" 4597#include "confdefs.h"
4321 4598
4322int main() { 4599int main() {
4323XOpenDisplay ("foo"); 4600XOpenDisplay ("foo");
4324; return 0; } 4601; return 0; }
4325EOF 4602EOF
4326if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4603if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4327 rm -rf conftest* 4604 rm -rf conftest*
4328 xlinux_first_failure=no 4605 xlinux_first_failure=no
4329else 4606else
@@ -4343,14 +4620,14 @@ rm -f conftest*
4343 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 4620 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
4344 LIBS="$LIBS -b i486-linuxaout" 4621 LIBS="$LIBS -b i486-linuxaout"
4345 cat > conftest.$ac_ext <<EOF 4622 cat > conftest.$ac_ext <<EOF
4346#line 4347 "configure" 4623#line 4624 "configure"
4347#include "confdefs.h" 4624#include "confdefs.h"
4348 4625
4349int main() { 4626int main() {
4350XOpenDisplay ("foo"); 4627XOpenDisplay ("foo");
4351; return 0; } 4628; return 0; }
4352EOF 4629EOF
4353if { (eval echo configure:4354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4630if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4354 rm -rf conftest* 4631 rm -rf conftest*
4355 xlinux_second_failure=no 4632 xlinux_second_failure=no
4356else 4633else
@@ -4380,12 +4657,12 @@ rm -f conftest*
4380XScreenNumberOfScreen XSetWMProtocols 4657XScreenNumberOfScreen XSetWMProtocols
4381do 4658do
4382echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4659echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4383echo "configure:4384: checking for $ac_func" >&5 4660echo "configure:4661: checking for $ac_func" >&5
4384if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4661if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6 4662 echo $ac_n "(cached) $ac_c" 1>&6
4386else 4663else
4387 cat > conftest.$ac_ext <<EOF 4664 cat > conftest.$ac_ext <<EOF
4388#line 4389 "configure" 4665#line 4666 "configure"
4389#include "confdefs.h" 4666#include "confdefs.h"
4390/* System header to define __stub macros and hopefully few prototypes, 4667/* System header to define __stub macros and hopefully few prototypes,
4391 which can conflict with char $ac_func(); below. */ 4668 which can conflict with char $ac_func(); below. */
@@ -4408,7 +4685,7 @@ $ac_func();
4408 4685
4409; return 0; } 4686; return 0; }
4410EOF 4687EOF
4411if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4688if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4412 rm -rf conftest* 4689 rm -rf conftest*
4413 eval "ac_cv_func_$ac_func=yes" 4690 eval "ac_cv_func_$ac_func=yes"
4414else 4691else
@@ -4436,12 +4713,12 @@ fi
4436 4713
4437if test "${window_system}" = "x11"; then 4714if test "${window_system}" = "x11"; then
4438 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 4715 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4439echo "configure:4440: checking X11 version 6" >&5 4716echo "configure:4717: checking X11 version 6" >&5
4440 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 4717 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6 4718 echo $ac_n "(cached) $ac_c" 1>&6
4442else 4719else
4443 cat > conftest.$ac_ext <<EOF 4720 cat > conftest.$ac_ext <<EOF
4444#line 4445 "configure" 4721#line 4722 "configure"
4445#include "confdefs.h" 4722#include "confdefs.h"
4446#include <X11/Xlib.h> 4723#include <X11/Xlib.h>
4447int main() { 4724int main() {
@@ -4451,7 +4728,7 @@ fail;
4451 4728
4452; return 0; } 4729; return 0; }
4453EOF 4730EOF
4454if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4731if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4455 rm -rf conftest* 4732 rm -rf conftest*
4456 emacs_cv_x11_version_6=yes 4733 emacs_cv_x11_version_6=yes
4457else 4734else
@@ -4476,12 +4753,12 @@ fi
4476 4753
4477if test "${window_system}" = "x11"; then 4754if test "${window_system}" = "x11"; then
4478 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 4755 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4479echo "configure:4480: checking X11 version 5" >&5 4756echo "configure:4757: checking X11 version 5" >&5
4480 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 4757 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6 4758 echo $ac_n "(cached) $ac_c" 1>&6
4482else 4759else
4483 cat > conftest.$ac_ext <<EOF 4760 cat > conftest.$ac_ext <<EOF
4484#line 4485 "configure" 4761#line 4762 "configure"
4485#include "confdefs.h" 4762#include "confdefs.h"
4486#include <X11/Xlib.h> 4763#include <X11/Xlib.h>
4487int main() { 4764int main() {
@@ -4491,7 +4768,7 @@ fail;
4491 4768
4492; return 0; } 4769; return 0; }
4493EOF 4770EOF
4494if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4771if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4495 rm -rf conftest* 4772 rm -rf conftest*
4496 emacs_cv_x11_version_5=yes 4773 emacs_cv_x11_version_5=yes
4497else 4774else
@@ -4519,12 +4796,12 @@ fi
4519if test x"${USE_X_TOOLKIT}" = xmaybe; then 4796if test x"${USE_X_TOOLKIT}" = xmaybe; then
4520 if test x"${HAVE_X11R5}" = xyes; then 4797 if test x"${HAVE_X11R5}" = xyes; then
4521 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 4798 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4522echo "configure:4523: checking X11 version 5 with Xaw" >&5 4799echo "configure:4800: checking X11 version 5 with Xaw" >&5
4523 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 4800 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4524 echo $ac_n "(cached) $ac_c" 1>&6 4801 echo $ac_n "(cached) $ac_c" 1>&6
4525else 4802else
4526 cat > conftest.$ac_ext <<EOF 4803 cat > conftest.$ac_ext <<EOF
4527#line 4528 "configure" 4804#line 4805 "configure"
4528#include "confdefs.h" 4805#include "confdefs.h"
4529 4806
4530#include <X11/Intrinsic.h> 4807#include <X11/Intrinsic.h>
@@ -4533,7 +4810,7 @@ int main() {
4533 4810
4534; return 0; } 4811; return 0; }
4535EOF 4812EOF
4536if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4813if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4537 rm -rf conftest* 4814 rm -rf conftest*
4538 emacs_cv_x11_version_5_with_xaw=yes 4815 emacs_cv_x11_version_5_with_xaw=yes
4539else 4816else
@@ -4561,12 +4838,12 @@ X_TOOLKIT_TYPE=$USE_X_TOOLKIT
4561 4838
4562if test "${USE_X_TOOLKIT}" != "none"; then 4839if test "${USE_X_TOOLKIT}" != "none"; then
4563 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 4840 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4564echo "configure:4565: checking X11 toolkit version" >&5 4841echo "configure:4842: checking X11 toolkit version" >&5
4565 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 4842 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6 4843 echo $ac_n "(cached) $ac_c" 1>&6
4567else 4844else
4568 cat > conftest.$ac_ext <<EOF 4845 cat > conftest.$ac_ext <<EOF
4569#line 4570 "configure" 4846#line 4847 "configure"
4570#include "confdefs.h" 4847#include "confdefs.h"
4571#include <X11/Intrinsic.h> 4848#include <X11/Intrinsic.h>
4572int main() { 4849int main() {
@@ -4576,7 +4853,7 @@ fail;
4576 4853
4577; return 0; } 4854; return 0; }
4578EOF 4855EOF
4579if { (eval echo configure:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4856if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4580 rm -rf conftest* 4857 rm -rf conftest*
4581 emacs_cv_x11_toolkit_version_6=yes 4858 emacs_cv_x11_toolkit_version_6=yes
4582else 4859else
@@ -4606,7 +4883,7 @@ EOF
4606 LIBS="-lXt $LIBS" 4883 LIBS="-lXt $LIBS"
4607 fi 4884 fi
4608 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 4885 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4609echo "configure:4610: checking for XmuConvertStandardSelection in -lXmu" >&5 4886echo "configure:4887: checking for XmuConvertStandardSelection in -lXmu" >&5
4610ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 4887ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4611if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4888if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6 4889 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4614,7 +4891,7 @@ else
4614 ac_save_LIBS="$LIBS" 4891 ac_save_LIBS="$LIBS"
4615LIBS="-lXmu $LIBS" 4892LIBS="-lXmu $LIBS"
4616cat > conftest.$ac_ext <<EOF 4893cat > conftest.$ac_ext <<EOF
4617#line 4618 "configure" 4894#line 4895 "configure"
4618#include "confdefs.h" 4895#include "confdefs.h"
4619/* Override any gcc2 internal prototype to avoid an error. */ 4896/* Override any gcc2 internal prototype to avoid an error. */
4620/* We use char because int might match the return type of a gcc2 4897/* We use char because int might match the return type of a gcc2
@@ -4625,7 +4902,7 @@ int main() {
4625XmuConvertStandardSelection() 4902XmuConvertStandardSelection()
4626; return 0; } 4903; return 0; }
4627EOF 4904EOF
4628if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4905if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4629 rm -rf conftest* 4906 rm -rf conftest*
4630 eval "ac_cv_lib_$ac_lib_var=yes" 4907 eval "ac_cv_lib_$ac_lib_var=yes"
4631else 4908else
@@ -4657,12 +4934,12 @@ fi
4657 4934
4658if test "${USE_X_TOOLKIT}" = "MOTIF"; then 4935if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4659 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 4936 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4660echo "configure:4661: checking for Motif version 2.1" >&5 4937echo "configure:4938: checking for Motif version 2.1" >&5
4661if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 4938if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6 4939 echo $ac_n "(cached) $ac_c" 1>&6
4663else 4940else
4664 cat > conftest.$ac_ext <<EOF 4941 cat > conftest.$ac_ext <<EOF
4665#line 4666 "configure" 4942#line 4943 "configure"
4666#include "confdefs.h" 4943#include "confdefs.h"
4667#include <Xm/Xm.h> 4944#include <Xm/Xm.h>
4668int main() { 4945int main() {
@@ -4673,7 +4950,7 @@ Motif version prior to 2.1.
4673#endif 4950#endif
4674; return 0; } 4951; return 0; }
4675EOF 4952EOF
4676if { (eval echo configure:4677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4953if { (eval echo configure:4954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4677 rm -rf conftest* 4954 rm -rf conftest*
4678 emacs_cv_motif_version_2_1=yes 4955 emacs_cv_motif_version_2_1=yes
4679else 4956else
@@ -4693,7 +4970,7 @@ echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
4693EOF 4970EOF
4694 4971
4695 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 4972 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4696echo "configure:4697: checking for XpCreateContext in -lXp" >&5 4973echo "configure:4974: checking for XpCreateContext in -lXp" >&5
4697ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 4974ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4698if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4975if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6 4976 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4701,7 +4978,7 @@ else
4701 ac_save_LIBS="$LIBS" 4978 ac_save_LIBS="$LIBS"
4702LIBS="-lXp -lXext $LIBS" 4979LIBS="-lXp -lXext $LIBS"
4703cat > conftest.$ac_ext <<EOF 4980cat > conftest.$ac_ext <<EOF
4704#line 4705 "configure" 4981#line 4982 "configure"
4705#include "confdefs.h" 4982#include "confdefs.h"
4706/* Override any gcc2 internal prototype to avoid an error. */ 4983/* Override any gcc2 internal prototype to avoid an error. */
4707/* We use char because int might match the return type of a gcc2 4984/* We use char because int might match the return type of a gcc2
@@ -4712,7 +4989,7 @@ int main() {
4712XpCreateContext() 4989XpCreateContext()
4713; return 0; } 4990; return 0; }
4714EOF 4991EOF
4715if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4992if { (eval echo configure:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4716 rm -rf conftest* 4993 rm -rf conftest*
4717 eval "ac_cv_lib_$ac_lib_var=yes" 4994 eval "ac_cv_lib_$ac_lib_var=yes"
4718else 4995else
@@ -4749,17 +5026,17 @@ if test "${HAVE_X11}" = "yes"; then
4749 CFLAGS="${LD_SWITCH_X_SITE}" 5026 CFLAGS="${LD_SWITCH_X_SITE}"
4750 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 5027 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4751echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 5028echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4752echo "configure:4753: checking for X11/Xaw3d/Scrollbar.h" >&5 5029echo "configure:5030: checking for X11/Xaw3d/Scrollbar.h" >&5
4753if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5030if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6 5031 echo $ac_n "(cached) $ac_c" 1>&6
4755else 5032else
4756 cat > conftest.$ac_ext <<EOF 5033 cat > conftest.$ac_ext <<EOF
4757#line 4758 "configure" 5034#line 5035 "configure"
4758#include "confdefs.h" 5035#include "confdefs.h"
4759#include <X11/Xaw3d/Scrollbar.h> 5036#include <X11/Xaw3d/Scrollbar.h>
4760EOF 5037EOF
4761ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5038ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4762{ (eval echo configure:4763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5039{ (eval echo configure:5040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4763ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5040ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4764if test -z "$ac_err"; then 5041if test -z "$ac_err"; then
4765 rm -rf conftest* 5042 rm -rf conftest*
@@ -4776,7 +5053,7 @@ fi
4776if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5053if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4777 echo "$ac_t""yes" 1>&6 5054 echo "$ac_t""yes" 1>&6
4778 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 5055 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4779echo "configure:4780: checking for XawScrollbarSetThumb in -lXaw3d" >&5 5056echo "configure:5057: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4780ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 5057ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4781if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5058if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6 5059 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4784,7 +5061,7 @@ else
4784 ac_save_LIBS="$LIBS" 5061 ac_save_LIBS="$LIBS"
4785LIBS="-lXaw3d -lX11 $LIBS" 5062LIBS="-lXaw3d -lX11 $LIBS"
4786cat > conftest.$ac_ext <<EOF 5063cat > conftest.$ac_ext <<EOF
4787#line 4788 "configure" 5064#line 5065 "configure"
4788#include "confdefs.h" 5065#include "confdefs.h"
4789/* Override any gcc2 internal prototype to avoid an error. */ 5066/* Override any gcc2 internal prototype to avoid an error. */
4790/* We use char because int might match the return type of a gcc2 5067/* We use char because int might match the return type of a gcc2
@@ -4795,7 +5072,7 @@ int main() {
4795XawScrollbarSetThumb() 5072XawScrollbarSetThumb()
4796; return 0; } 5073; return 0; }
4797EOF 5074EOF
4798if { (eval echo configure:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5075if { (eval echo configure:5076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4799 rm -rf conftest* 5076 rm -rf conftest*
4800 eval "ac_cv_lib_$ac_lib_var=yes" 5077 eval "ac_cv_lib_$ac_lib_var=yes"
4801else 5078else
@@ -4867,17 +5144,17 @@ if test "${HAVE_X11}" = "yes"; then
4867 CFLAGS="${LD_SWITCH_X_SITE}" 5144 CFLAGS="${LD_SWITCH_X_SITE}"
4868 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 5145 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4869echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 5146echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4870echo "configure:4871: checking for X11/xpm.h" >&5 5147echo "configure:5148: checking for X11/xpm.h" >&5
4871if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5148if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6 5149 echo $ac_n "(cached) $ac_c" 1>&6
4873else 5150else
4874 cat > conftest.$ac_ext <<EOF 5151 cat > conftest.$ac_ext <<EOF
4875#line 4876 "configure" 5152#line 5153 "configure"
4876#include "confdefs.h" 5153#include "confdefs.h"
4877#include <X11/xpm.h> 5154#include <X11/xpm.h>
4878EOF 5155EOF
4879ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5156ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4880{ (eval echo configure:4881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5157{ (eval echo configure:5158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4881ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5158ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4882if test -z "$ac_err"; then 5159if test -z "$ac_err"; then
4883 rm -rf conftest* 5160 rm -rf conftest*
@@ -4894,7 +5171,7 @@ fi
4894if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5171if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4895 echo "$ac_t""yes" 1>&6 5172 echo "$ac_t""yes" 1>&6
4896 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 5173 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4897echo "configure:4898: checking for XpmReadFileToPixmap in -lXpm" >&5 5174echo "configure:5175: checking for XpmReadFileToPixmap in -lXpm" >&5
4898ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 5175ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4899if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5176if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6 5177 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4902,7 +5179,7 @@ else
4902 ac_save_LIBS="$LIBS" 5179 ac_save_LIBS="$LIBS"
4903LIBS="-lXpm -lX11 $LIBS" 5180LIBS="-lXpm -lX11 $LIBS"
4904cat > conftest.$ac_ext <<EOF 5181cat > conftest.$ac_ext <<EOF
4905#line 4906 "configure" 5182#line 5183 "configure"
4906#include "confdefs.h" 5183#include "confdefs.h"
4907/* Override any gcc2 internal prototype to avoid an error. */ 5184/* Override any gcc2 internal prototype to avoid an error. */
4908/* We use char because int might match the return type of a gcc2 5185/* We use char because int might match the return type of a gcc2
@@ -4913,7 +5190,7 @@ int main() {
4913XpmReadFileToPixmap() 5190XpmReadFileToPixmap()
4914; return 0; } 5191; return 0; }
4915EOF 5192EOF
4916if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5193if { (eval echo configure:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4917 rm -rf conftest* 5194 rm -rf conftest*
4918 eval "ac_cv_lib_$ac_lib_var=yes" 5195 eval "ac_cv_lib_$ac_lib_var=yes"
4919else 5196else
@@ -4939,9 +5216,9 @@ fi
4939 5216
4940 if test "${HAVE_XPM}" = "yes"; then 5217 if test "${HAVE_XPM}" = "yes"; then
4941 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 5218 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6
4942echo "configure:4943: checking for XpmReturnAllocPixels preprocessor define" >&5 5219echo "configure:5220: checking for XpmReturnAllocPixels preprocessor define" >&5
4943 cat > conftest.$ac_ext <<EOF 5220 cat > conftest.$ac_ext <<EOF
4944#line 4945 "configure" 5221#line 5222 "configure"
4945#include "confdefs.h" 5222#include "confdefs.h"
4946#include "X11/xpm.h" 5223#include "X11/xpm.h"
4947#ifndef XpmReturnAllocPixels 5224#ifndef XpmReturnAllocPixels
@@ -4984,17 +5261,17 @@ if test "${HAVE_X11}" = "yes"; then
4984 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 5261 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4985 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` 5262 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
4986echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 5263echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
4987echo "configure:4988: checking for jerror.h" >&5 5264echo "configure:5265: checking for jerror.h" >&5
4988if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5265if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4989 echo $ac_n "(cached) $ac_c" 1>&6 5266 echo $ac_n "(cached) $ac_c" 1>&6
4990else 5267else
4991 cat > conftest.$ac_ext <<EOF 5268 cat > conftest.$ac_ext <<EOF
4992#line 4993 "configure" 5269#line 5270 "configure"
4993#include "confdefs.h" 5270#include "confdefs.h"
4994#include <jerror.h> 5271#include <jerror.h>
4995EOF 5272EOF
4996ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5273ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4997{ (eval echo configure:4998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5274{ (eval echo configure:5275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4998ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5275ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4999if test -z "$ac_err"; then 5276if test -z "$ac_err"; then
5000 rm -rf conftest* 5277 rm -rf conftest*
@@ -5011,7 +5288,7 @@ fi
5011if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5288if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5012 echo "$ac_t""yes" 1>&6 5289 echo "$ac_t""yes" 1>&6
5013 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 5290 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5014echo "configure:5015: checking for jpeg_destroy_compress in -ljpeg" >&5 5291echo "configure:5292: checking for jpeg_destroy_compress in -ljpeg" >&5
5015ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 5292ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5016if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5293if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6 5294 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5019,7 +5296,7 @@ else
5019 ac_save_LIBS="$LIBS" 5296 ac_save_LIBS="$LIBS"
5020LIBS="-ljpeg -lX11 $LIBS" 5297LIBS="-ljpeg -lX11 $LIBS"
5021cat > conftest.$ac_ext <<EOF 5298cat > conftest.$ac_ext <<EOF
5022#line 5023 "configure" 5299#line 5300 "configure"
5023#include "confdefs.h" 5300#include "confdefs.h"
5024/* Override any gcc2 internal prototype to avoid an error. */ 5301/* Override any gcc2 internal prototype to avoid an error. */
5025/* We use char because int might match the return type of a gcc2 5302/* We use char because int might match the return type of a gcc2
@@ -5030,7 +5307,7 @@ int main() {
5030jpeg_destroy_compress() 5307jpeg_destroy_compress()
5031; return 0; } 5308; return 0; }
5032EOF 5309EOF
5033if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5310if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5034 rm -rf conftest* 5311 rm -rf conftest*
5035 eval "ac_cv_lib_$ac_lib_var=yes" 5312 eval "ac_cv_lib_$ac_lib_var=yes"
5036else 5313else
@@ -5073,17 +5350,17 @@ if test "${HAVE_X11}" = "yes"; then
5073 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 5350 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
5074 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 5351 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5075echo $ac_n "checking for png.h""... $ac_c" 1>&6 5352echo $ac_n "checking for png.h""... $ac_c" 1>&6
5076echo "configure:5077: checking for png.h" >&5 5353echo "configure:5354: checking for png.h" >&5
5077if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5354if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5078 echo $ac_n "(cached) $ac_c" 1>&6 5355 echo $ac_n "(cached) $ac_c" 1>&6
5079else 5356else
5080 cat > conftest.$ac_ext <<EOF 5357 cat > conftest.$ac_ext <<EOF
5081#line 5082 "configure" 5358#line 5359 "configure"
5082#include "confdefs.h" 5359#include "confdefs.h"
5083#include <png.h> 5360#include <png.h>
5084EOF 5361EOF
5085ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5362ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5086{ (eval echo configure:5087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5363{ (eval echo configure:5364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5087ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5364ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5088if test -z "$ac_err"; then 5365if test -z "$ac_err"; then
5089 rm -rf conftest* 5366 rm -rf conftest*
@@ -5100,7 +5377,7 @@ fi
5100if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5377if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5101 echo "$ac_t""yes" 1>&6 5378 echo "$ac_t""yes" 1>&6
5102 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 5379 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
5103echo "configure:5104: checking for png_set_expand in -lpng" >&5 5380echo "configure:5381: checking for png_set_expand in -lpng" >&5
5104ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` 5381ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
5105if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5382if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5106 echo $ac_n "(cached) $ac_c" 1>&6 5383 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5108,7 +5385,7 @@ else
5108 ac_save_LIBS="$LIBS" 5385 ac_save_LIBS="$LIBS"
5109LIBS="-lpng -lX11 -lz -lm $LIBS" 5386LIBS="-lpng -lX11 -lz -lm $LIBS"
5110cat > conftest.$ac_ext <<EOF 5387cat > conftest.$ac_ext <<EOF
5111#line 5112 "configure" 5388#line 5389 "configure"
5112#include "confdefs.h" 5389#include "confdefs.h"
5113/* Override any gcc2 internal prototype to avoid an error. */ 5390/* Override any gcc2 internal prototype to avoid an error. */
5114/* We use char because int might match the return type of a gcc2 5391/* We use char because int might match the return type of a gcc2
@@ -5119,7 +5396,7 @@ int main() {
5119png_set_expand() 5396png_set_expand()
5120; return 0; } 5397; return 0; }
5121EOF 5398EOF
5122if { (eval echo configure:5123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5399if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5123 rm -rf conftest* 5400 rm -rf conftest*
5124 eval "ac_cv_lib_$ac_lib_var=yes" 5401 eval "ac_cv_lib_$ac_lib_var=yes"
5125else 5402else
@@ -5162,17 +5439,17 @@ if test "${HAVE_X11}" = "yes"; then
5162 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 5439 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
5163 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 5440 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5164echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 5441echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5165echo "configure:5166: checking for tiffio.h" >&5 5442echo "configure:5443: checking for tiffio.h" >&5
5166if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5443if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6 5444 echo $ac_n "(cached) $ac_c" 1>&6
5168else 5445else
5169 cat > conftest.$ac_ext <<EOF 5446 cat > conftest.$ac_ext <<EOF
5170#line 5171 "configure" 5447#line 5448 "configure"
5171#include "confdefs.h" 5448#include "confdefs.h"
5172#include <tiffio.h> 5449#include <tiffio.h>
5173EOF 5450EOF
5174ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5451ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5175{ (eval echo configure:5176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5452{ (eval echo configure:5453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5176ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5453ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5177if test -z "$ac_err"; then 5454if test -z "$ac_err"; then
5178 rm -rf conftest* 5455 rm -rf conftest*
@@ -5192,7 +5469,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5192 # At least one tiff package requires the jpeg library. 5469 # At least one tiff package requires the jpeg library.
5193 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 5470 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
5194 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 5471 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5195echo "configure:5196: checking for TIFFGetVersion in -ltiff" >&5 5472echo "configure:5473: checking for TIFFGetVersion in -ltiff" >&5
5196ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 5473ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5474if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5198 echo $ac_n "(cached) $ac_c" 1>&6 5475 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5200,7 +5477,7 @@ else
5200 ac_save_LIBS="$LIBS" 5477 ac_save_LIBS="$LIBS"
5201LIBS="-ltiff $tifflibs $LIBS" 5478LIBS="-ltiff $tifflibs $LIBS"
5202cat > conftest.$ac_ext <<EOF 5479cat > conftest.$ac_ext <<EOF
5203#line 5204 "configure" 5480#line 5481 "configure"
5204#include "confdefs.h" 5481#include "confdefs.h"
5205/* Override any gcc2 internal prototype to avoid an error. */ 5482/* Override any gcc2 internal prototype to avoid an error. */
5206/* We use char because int might match the return type of a gcc2 5483/* We use char because int might match the return type of a gcc2
@@ -5211,7 +5488,7 @@ int main() {
5211TIFFGetVersion() 5488TIFFGetVersion()
5212; return 0; } 5489; return 0; }
5213EOF 5490EOF
5214if { (eval echo configure:5215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5491if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5215 rm -rf conftest* 5492 rm -rf conftest*
5216 eval "ac_cv_lib_$ac_lib_var=yes" 5493 eval "ac_cv_lib_$ac_lib_var=yes"
5217else 5494else
@@ -5254,17 +5531,17 @@ if test "${HAVE_X11}" = "yes"; then
5254 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 5531 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
5255 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 5532 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5256echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 5533echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5257echo "configure:5258: checking for gif_lib.h" >&5 5534echo "configure:5535: checking for gif_lib.h" >&5
5258if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5535if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6 5536 echo $ac_n "(cached) $ac_c" 1>&6
5260else 5537else
5261 cat > conftest.$ac_ext <<EOF 5538 cat > conftest.$ac_ext <<EOF
5262#line 5263 "configure" 5539#line 5540 "configure"
5263#include "confdefs.h" 5540#include "confdefs.h"
5264#include <gif_lib.h> 5541#include <gif_lib.h>
5265EOF 5542EOF
5266ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5543ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5267{ (eval echo configure:5268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5544{ (eval echo configure:5545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5268ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5545ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5269if test -z "$ac_err"; then 5546if test -z "$ac_err"; then
5270 rm -rf conftest* 5547 rm -rf conftest*
@@ -5281,7 +5558,7 @@ fi
5281if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5558if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5282 echo "$ac_t""yes" 1>&6 5559 echo "$ac_t""yes" 1>&6
5283 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 5560 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
5284echo "configure:5285: checking for DGifOpen in -lungif" >&5 5561echo "configure:5562: checking for DGifOpen in -lungif" >&5
5285ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` 5562ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
5286if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5563if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6 5564 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5289,7 +5566,7 @@ else
5289 ac_save_LIBS="$LIBS" 5566 ac_save_LIBS="$LIBS"
5290LIBS="-lungif -lX11 $LIBS" 5567LIBS="-lungif -lX11 $LIBS"
5291cat > conftest.$ac_ext <<EOF 5568cat > conftest.$ac_ext <<EOF
5292#line 5293 "configure" 5569#line 5570 "configure"
5293#include "confdefs.h" 5570#include "confdefs.h"
5294/* Override any gcc2 internal prototype to avoid an error. */ 5571/* Override any gcc2 internal prototype to avoid an error. */
5295/* We use char because int might match the return type of a gcc2 5572/* We use char because int might match the return type of a gcc2
@@ -5300,7 +5577,7 @@ int main() {
5300DGifOpen() 5577DGifOpen()
5301; return 0; } 5578; return 0; }
5302EOF 5579EOF
5303if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5580if { (eval echo configure:5581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5304 rm -rf conftest* 5581 rm -rf conftest*
5305 eval "ac_cv_lib_$ac_lib_var=yes" 5582 eval "ac_cv_lib_$ac_lib_var=yes"
5306else 5583else
@@ -5337,19 +5614,19 @@ fi
5337 5614
5338# If netdb.h doesn't declare h_errno, we must declare it by hand. 5615# If netdb.h doesn't declare h_errno, we must declare it by hand.
5339echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 5616echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
5340echo "configure:5341: checking whether netdb declares h_errno" >&5 5617echo "configure:5618: checking whether netdb declares h_errno" >&5
5341if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 5618if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6 5619 echo $ac_n "(cached) $ac_c" 1>&6
5343else 5620else
5344 cat > conftest.$ac_ext <<EOF 5621 cat > conftest.$ac_ext <<EOF
5345#line 5346 "configure" 5622#line 5623 "configure"
5346#include "confdefs.h" 5623#include "confdefs.h"
5347#include <netdb.h> 5624#include <netdb.h>
5348int main() { 5625int main() {
5349return h_errno; 5626return h_errno;
5350; return 0; } 5627; return 0; }
5351EOF 5628EOF
5352if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5629if { (eval echo configure:5630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5353 rm -rf conftest* 5630 rm -rf conftest*
5354 emacs_cv_netdb_declares_h_errno=yes 5631 emacs_cv_netdb_declares_h_errno=yes
5355else 5632else
@@ -5372,19 +5649,19 @@ fi
5372# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5649# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5373# for constant arguments. Useless! 5650# for constant arguments. Useless!
5374echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 5651echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5375echo "configure:5376: checking for working alloca.h" >&5 5652echo "configure:5653: checking for working alloca.h" >&5
5376if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 5653if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6 5654 echo $ac_n "(cached) $ac_c" 1>&6
5378else 5655else
5379 cat > conftest.$ac_ext <<EOF 5656 cat > conftest.$ac_ext <<EOF
5380#line 5381 "configure" 5657#line 5658 "configure"
5381#include "confdefs.h" 5658#include "confdefs.h"
5382#include <alloca.h> 5659#include <alloca.h>
5383int main() { 5660int main() {
5384char *p = alloca(2 * sizeof(int)); 5661char *p = alloca(2 * sizeof(int));
5385; return 0; } 5662; return 0; }
5386EOF 5663EOF
5387if { (eval echo configure:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5664if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5388 rm -rf conftest* 5665 rm -rf conftest*
5389 ac_cv_header_alloca_h=yes 5666 ac_cv_header_alloca_h=yes
5390else 5667else
@@ -5405,12 +5682,12 @@ EOF
5405fi 5682fi
5406 5683
5407echo $ac_n "checking for alloca""... $ac_c" 1>&6 5684echo $ac_n "checking for alloca""... $ac_c" 1>&6
5408echo "configure:5409: checking for alloca" >&5 5685echo "configure:5686: checking for alloca" >&5
5409if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 5686if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5410 echo $ac_n "(cached) $ac_c" 1>&6 5687 echo $ac_n "(cached) $ac_c" 1>&6
5411else 5688else
5412 cat > conftest.$ac_ext <<EOF 5689 cat > conftest.$ac_ext <<EOF
5413#line 5414 "configure" 5690#line 5691 "configure"
5414#include "confdefs.h" 5691#include "confdefs.h"
5415 5692
5416#ifdef __GNUC__ 5693#ifdef __GNUC__
@@ -5438,7 +5715,7 @@ int main() {
5438char *p = (char *) alloca(1); 5715char *p = (char *) alloca(1);
5439; return 0; } 5716; return 0; }
5440EOF 5717EOF
5441if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5718if { (eval echo configure:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5442 rm -rf conftest* 5719 rm -rf conftest*
5443 ac_cv_func_alloca_works=yes 5720 ac_cv_func_alloca_works=yes
5444else 5721else
@@ -5470,12 +5747,12 @@ EOF
5470 5747
5471 5748
5472echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 5749echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5473echo "configure:5474: checking whether alloca needs Cray hooks" >&5 5750echo "configure:5751: checking whether alloca needs Cray hooks" >&5
5474if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 5751if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6 5752 echo $ac_n "(cached) $ac_c" 1>&6
5476else 5753else
5477 cat > conftest.$ac_ext <<EOF 5754 cat > conftest.$ac_ext <<EOF
5478#line 5479 "configure" 5755#line 5756 "configure"
5479#include "confdefs.h" 5756#include "confdefs.h"
5480#if defined(CRAY) && ! defined(CRAY2) 5757#if defined(CRAY) && ! defined(CRAY2)
5481webecray 5758webecray
@@ -5500,12 +5777,12 @@ echo "$ac_t""$ac_cv_os_cray" 1>&6
5500if test $ac_cv_os_cray = yes; then 5777if test $ac_cv_os_cray = yes; then
5501for ac_func in _getb67 GETB67 getb67; do 5778for ac_func in _getb67 GETB67 getb67; do
5502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5503echo "configure:5504: checking for $ac_func" >&5 5780echo "configure:5781: checking for $ac_func" >&5
5504if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5781if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6 5782 echo $ac_n "(cached) $ac_c" 1>&6
5506else 5783else
5507 cat > conftest.$ac_ext <<EOF 5784 cat > conftest.$ac_ext <<EOF
5508#line 5509 "configure" 5785#line 5786 "configure"
5509#include "confdefs.h" 5786#include "confdefs.h"
5510/* System header to define __stub macros and hopefully few prototypes, 5787/* System header to define __stub macros and hopefully few prototypes,
5511 which can conflict with char $ac_func(); below. */ 5788 which can conflict with char $ac_func(); below. */
@@ -5528,7 +5805,7 @@ $ac_func();
5528 5805
5529; return 0; } 5806; return 0; }
5530EOF 5807EOF
5531if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5808if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532 rm -rf conftest* 5809 rm -rf conftest*
5533 eval "ac_cv_func_$ac_func=yes" 5810 eval "ac_cv_func_$ac_func=yes"
5534else 5811else
@@ -5555,7 +5832,7 @@ done
5555fi 5832fi
5556 5833
5557echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 5834echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5558echo "configure:5559: checking stack direction for C alloca" >&5 5835echo "configure:5836: checking stack direction for C alloca" >&5
5559if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 5836if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6 5837 echo $ac_n "(cached) $ac_c" 1>&6
5561else 5838else
@@ -5563,7 +5840,7 @@ else
5563 ac_cv_c_stack_direction=0 5840 ac_cv_c_stack_direction=0
5564else 5841else
5565 cat > conftest.$ac_ext <<EOF 5842 cat > conftest.$ac_ext <<EOF
5566#line 5567 "configure" 5843#line 5844 "configure"
5567#include "confdefs.h" 5844#include "confdefs.h"
5568find_stack_direction () 5845find_stack_direction ()
5569{ 5846{
@@ -5582,7 +5859,7 @@ main ()
5582 exit (find_stack_direction() < 0); 5859 exit (find_stack_direction() < 0);
5583} 5860}
5584EOF 5861EOF
5585if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5862if { (eval echo configure:5863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5586then 5863then
5587 ac_cv_c_stack_direction=1 5864 ac_cv_c_stack_direction=1
5588else 5865else
@@ -5607,7 +5884,7 @@ fi
5607# fmod, logb, and frexp are found in -lm on most systems. 5884# fmod, logb, and frexp are found in -lm on most systems.
5608# On HPUX 9.01, -lm does not contain logb, so check for sqrt. 5885# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5609echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 5886echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5610echo "configure:5611: checking for sqrt in -lm" >&5 5887echo "configure:5888: checking for sqrt in -lm" >&5
5611ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 5888ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5612if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5889if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6 5890 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5615,7 +5892,7 @@ else
5615 ac_save_LIBS="$LIBS" 5892 ac_save_LIBS="$LIBS"
5616LIBS="-lm $LIBS" 5893LIBS="-lm $LIBS"
5617cat > conftest.$ac_ext <<EOF 5894cat > conftest.$ac_ext <<EOF
5618#line 5619 "configure" 5895#line 5896 "configure"
5619#include "confdefs.h" 5896#include "confdefs.h"
5620/* Override any gcc2 internal prototype to avoid an error. */ 5897/* Override any gcc2 internal prototype to avoid an error. */
5621/* We use char because int might match the return type of a gcc2 5898/* We use char because int might match the return type of a gcc2
@@ -5626,7 +5903,7 @@ int main() {
5626sqrt() 5903sqrt()
5627; return 0; } 5904; return 0; }
5628EOF 5905EOF
5629if { (eval echo configure:5630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5906if { (eval echo configure:5907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5630 rm -rf conftest* 5907 rm -rf conftest*
5631 eval "ac_cv_lib_$ac_lib_var=yes" 5908 eval "ac_cv_lib_$ac_lib_var=yes"
5632else 5909else
@@ -5656,7 +5933,7 @@ fi
5656 5933
5657# Check for mail-locking functions in a "mail" library 5934# Check for mail-locking functions in a "mail" library
5658echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 5935echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5659echo "configure:5660: checking for maillock in -lmail" >&5 5936echo "configure:5937: checking for maillock in -lmail" >&5
5660ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 5937ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5661if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5938if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6 5939 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5664,7 +5941,7 @@ else
5664 ac_save_LIBS="$LIBS" 5941 ac_save_LIBS="$LIBS"
5665LIBS="-lmail $LIBS" 5942LIBS="-lmail $LIBS"
5666cat > conftest.$ac_ext <<EOF 5943cat > conftest.$ac_ext <<EOF
5667#line 5668 "configure" 5944#line 5945 "configure"
5668#include "confdefs.h" 5945#include "confdefs.h"
5669/* Override any gcc2 internal prototype to avoid an error. */ 5946/* Override any gcc2 internal prototype to avoid an error. */
5670/* We use char because int might match the return type of a gcc2 5947/* We use char because int might match the return type of a gcc2
@@ -5675,7 +5952,7 @@ int main() {
5675maillock() 5952maillock()
5676; return 0; } 5953; return 0; }
5677EOF 5954EOF
5678if { (eval echo configure:5679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5955if { (eval echo configure:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5679 rm -rf conftest* 5956 rm -rf conftest*
5680 eval "ac_cv_lib_$ac_lib_var=yes" 5957 eval "ac_cv_lib_$ac_lib_var=yes"
5681else 5958else
@@ -5703,7 +5980,7 @@ else
5703fi 5980fi
5704 5981
5705echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 5982echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5706echo "configure:5707: checking for maillock in -llockfile" >&5 5983echo "configure:5984: checking for maillock in -llockfile" >&5
5707ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 5984ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5708if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5985if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5709 echo $ac_n "(cached) $ac_c" 1>&6 5986 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5711,7 +5988,7 @@ else
5711 ac_save_LIBS="$LIBS" 5988 ac_save_LIBS="$LIBS"
5712LIBS="-llockfile $LIBS" 5989LIBS="-llockfile $LIBS"
5713cat > conftest.$ac_ext <<EOF 5990cat > conftest.$ac_ext <<EOF
5714#line 5715 "configure" 5991#line 5992 "configure"
5715#include "confdefs.h" 5992#include "confdefs.h"
5716/* Override any gcc2 internal prototype to avoid an error. */ 5993/* Override any gcc2 internal prototype to avoid an error. */
5717/* We use char because int might match the return type of a gcc2 5994/* We use char because int might match the return type of a gcc2
@@ -5722,7 +5999,7 @@ int main() {
5722maillock() 5999maillock()
5723; return 0; } 6000; return 0; }
5724EOF 6001EOF
5725if { (eval echo configure:5726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6002if { (eval echo configure:6003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5726 rm -rf conftest* 6003 rm -rf conftest*
5727 eval "ac_cv_lib_$ac_lib_var=yes" 6004 eval "ac_cv_lib_$ac_lib_var=yes"
5728else 6005else
@@ -5756,7 +6033,7 @@ if test "$ac_cv_lib_lockfile_maillock" = no; then
5756 # Extract the first word of "liblockfile.so", so it can be a program name with args. 6033 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5757set dummy liblockfile.so; ac_word=$2 6034set dummy liblockfile.so; ac_word=$2
5758echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 6035echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5759echo "configure:5760: checking for $ac_word" >&5 6036echo "configure:6037: checking for $ac_word" >&5
5760if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 6037if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5761 echo $ac_n "(cached) $ac_c" 1>&6 6038 echo $ac_n "(cached) $ac_c" 1>&6
5762else 6039else
@@ -5797,12 +6074,12 @@ fi
5797for ac_func in touchlock 6074for ac_func in touchlock
5798do 6075do
5799echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6076echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5800echo "configure:5801: checking for $ac_func" >&5 6077echo "configure:6078: checking for $ac_func" >&5
5801if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6078if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5802 echo $ac_n "(cached) $ac_c" 1>&6 6079 echo $ac_n "(cached) $ac_c" 1>&6
5803else 6080else
5804 cat > conftest.$ac_ext <<EOF 6081 cat > conftest.$ac_ext <<EOF
5805#line 5806 "configure" 6082#line 6083 "configure"
5806#include "confdefs.h" 6083#include "confdefs.h"
5807/* System header to define __stub macros and hopefully few prototypes, 6084/* System header to define __stub macros and hopefully few prototypes,
5808 which can conflict with char $ac_func(); below. */ 6085 which can conflict with char $ac_func(); below. */
@@ -5825,7 +6102,7 @@ $ac_func();
5825 6102
5826; return 0; } 6103; return 0; }
5827EOF 6104EOF
5828if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6105if { (eval echo configure:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5829 rm -rf conftest* 6106 rm -rf conftest*
5830 eval "ac_cv_func_$ac_func=yes" 6107 eval "ac_cv_func_$ac_func=yes"
5831else 6108else
@@ -5853,17 +6130,17 @@ for ac_hdr in maillock.h
5853do 6130do
5854ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6131ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5855echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6132echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5856echo "configure:5857: checking for $ac_hdr" >&5 6133echo "configure:6134: checking for $ac_hdr" >&5
5857if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6134if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5858 echo $ac_n "(cached) $ac_c" 1>&6 6135 echo $ac_n "(cached) $ac_c" 1>&6
5859else 6136else
5860 cat > conftest.$ac_ext <<EOF 6137 cat > conftest.$ac_ext <<EOF
5861#line 5862 "configure" 6138#line 6139 "configure"
5862#include "confdefs.h" 6139#include "confdefs.h"
5863#include <$ac_hdr> 6140#include <$ac_hdr>
5864EOF 6141EOF
5865ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6142ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5866{ (eval echo configure:5867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6143{ (eval echo configure:6144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5867ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6144ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5868if test -z "$ac_err"; then 6145if test -z "$ac_err"; then
5869 rm -rf conftest* 6146 rm -rf conftest*
@@ -5898,12 +6175,12 @@ utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
5898__fpending mblen mbrlen strsignal setitimer ualarm index rindex 6175__fpending mblen mbrlen strsignal setitimer ualarm index rindex
5899do 6176do
5900echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6177echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5901echo "configure:5902: checking for $ac_func" >&5 6178echo "configure:6179: checking for $ac_func" >&5
5902if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6179if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5903 echo $ac_n "(cached) $ac_c" 1>&6 6180 echo $ac_n "(cached) $ac_c" 1>&6
5904else 6181else
5905 cat > conftest.$ac_ext <<EOF 6182 cat > conftest.$ac_ext <<EOF
5906#line 5907 "configure" 6183#line 6184 "configure"
5907#include "confdefs.h" 6184#include "confdefs.h"
5908/* System header to define __stub macros and hopefully few prototypes, 6185/* System header to define __stub macros and hopefully few prototypes,
5909 which can conflict with char $ac_func(); below. */ 6186 which can conflict with char $ac_func(); below. */
@@ -5926,7 +6203,7 @@ $ac_func();
5926 6203
5927; return 0; } 6204; return 0; }
5928EOF 6205EOF
5929if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6206if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5930 rm -rf conftest* 6207 rm -rf conftest*
5931 eval "ac_cv_func_$ac_func=yes" 6208 eval "ac_cv_func_$ac_func=yes"
5932else 6209else
@@ -5955,17 +6232,17 @@ for ac_hdr in sys/time.h unistd.h
5955do 6232do
5956ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6233ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5957echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6234echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5958echo "configure:5959: checking for $ac_hdr" >&5 6235echo "configure:6236: checking for $ac_hdr" >&5
5959if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6236if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5960 echo $ac_n "(cached) $ac_c" 1>&6 6237 echo $ac_n "(cached) $ac_c" 1>&6
5961else 6238else
5962 cat > conftest.$ac_ext <<EOF 6239 cat > conftest.$ac_ext <<EOF
5963#line 5964 "configure" 6240#line 6241 "configure"
5964#include "confdefs.h" 6241#include "confdefs.h"
5965#include <$ac_hdr> 6242#include <$ac_hdr>
5966EOF 6243EOF
5967ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6244ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5968{ (eval echo configure:5969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6245{ (eval echo configure:6246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5969ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6246ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5970if test -z "$ac_err"; then 6247if test -z "$ac_err"; then
5971 rm -rf conftest* 6248 rm -rf conftest*
@@ -5994,12 +6271,12 @@ done
5994for ac_func in alarm 6271for ac_func in alarm
5995do 6272do
5996echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6273echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5997echo "configure:5998: checking for $ac_func" >&5 6274echo "configure:6275: checking for $ac_func" >&5
5998if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6275if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6 6276 echo $ac_n "(cached) $ac_c" 1>&6
6000else 6277else
6001 cat > conftest.$ac_ext <<EOF 6278 cat > conftest.$ac_ext <<EOF
6002#line 6003 "configure" 6279#line 6280 "configure"
6003#include "confdefs.h" 6280#include "confdefs.h"
6004/* System header to define __stub macros and hopefully few prototypes, 6281/* System header to define __stub macros and hopefully few prototypes,
6005 which can conflict with char $ac_func(); below. */ 6282 which can conflict with char $ac_func(); below. */
@@ -6022,7 +6299,7 @@ $ac_func();
6022 6299
6023; return 0; } 6300; return 0; }
6024EOF 6301EOF
6025if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6302if { (eval echo configure:6303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6026 rm -rf conftest* 6303 rm -rf conftest*
6027 eval "ac_cv_func_$ac_func=yes" 6304 eval "ac_cv_func_$ac_func=yes"
6028else 6305else
@@ -6047,7 +6324,7 @@ fi
6047done 6324done
6048 6325
6049echo $ac_n "checking for working mktime""... $ac_c" 1>&6 6326echo $ac_n "checking for working mktime""... $ac_c" 1>&6
6050echo "configure:6051: checking for working mktime" >&5 6327echo "configure:6328: checking for working mktime" >&5
6051if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then 6328if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
6052 echo $ac_n "(cached) $ac_c" 1>&6 6329 echo $ac_n "(cached) $ac_c" 1>&6
6053else 6330else
@@ -6055,7 +6332,7 @@ else
6055 ac_cv_func_working_mktime=no 6332 ac_cv_func_working_mktime=no
6056else 6333else
6057 cat > conftest.$ac_ext <<EOF 6334 cat > conftest.$ac_ext <<EOF
6058#line 6059 "configure" 6335#line 6336 "configure"
6059#include "confdefs.h" 6336#include "confdefs.h"
6060/* Test program from Paul Eggert (eggert@twinsun.com) 6337/* Test program from Paul Eggert (eggert@twinsun.com)
6061 and Tony Leneis (tony@plaza.ds.adp.com). */ 6338 and Tony Leneis (tony@plaza.ds.adp.com). */
@@ -6204,7 +6481,7 @@ main ()
6204 exit (0); 6481 exit (0);
6205} 6482}
6206EOF 6483EOF
6207if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6484if { (eval echo configure:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6208then 6485then
6209 ac_cv_func_working_mktime=yes 6486 ac_cv_func_working_mktime=yes
6210else 6487else
@@ -6236,7 +6513,7 @@ ac_have_func=no # yes means we've found a way to get the load average.
6236# On Solaris, -lkvm requires nlist from -lelf, so check that first 6513# On Solaris, -lkvm requires nlist from -lelf, so check that first
6237# to get the right answer into the cache. 6514# to get the right answer into the cache.
6238echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 6515echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
6239echo "configure:6240: checking for elf_begin in -lelf" >&5 6516echo "configure:6517: checking for elf_begin in -lelf" >&5
6240ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` 6517ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
6241if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6518if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6 6519 echo $ac_n "(cached) $ac_c" 1>&6
@@ -6244,7 +6521,7 @@ else
6244 ac_save_LIBS="$LIBS" 6521 ac_save_LIBS="$LIBS"
6245LIBS="-lelf $LIBS" 6522LIBS="-lelf $LIBS"
6246cat > conftest.$ac_ext <<EOF 6523cat > conftest.$ac_ext <<EOF
6247#line 6248 "configure" 6524#line 6525 "configure"
6248#include "confdefs.h" 6525#include "confdefs.h"
6249/* Override any gcc2 internal prototype to avoid an error. */ 6526/* Override any gcc2 internal prototype to avoid an error. */
6250/* We use char because int might match the return type of a gcc2 6527/* We use char because int might match the return type of a gcc2
@@ -6255,7 +6532,7 @@ int main() {
6255elf_begin() 6532elf_begin()
6256; return 0; } 6533; return 0; }
6257EOF 6534EOF
6258if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6535if { (eval echo configure:6536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6259 rm -rf conftest* 6536 rm -rf conftest*
6260 eval "ac_cv_lib_$ac_lib_var=yes" 6537 eval "ac_cv_lib_$ac_lib_var=yes"
6261else 6538else
@@ -6276,7 +6553,7 @@ else
6276fi 6553fi
6277 6554
6278echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 6555echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
6279echo "configure:6280: checking for kvm_open in -lkvm" >&5 6556echo "configure:6557: checking for kvm_open in -lkvm" >&5
6280ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` 6557ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
6281if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6558if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6 6559 echo $ac_n "(cached) $ac_c" 1>&6
@@ -6284,7 +6561,7 @@ else
6284 ac_save_LIBS="$LIBS" 6561 ac_save_LIBS="$LIBS"
6285LIBS="-lkvm $LIBS" 6562LIBS="-lkvm $LIBS"
6286cat > conftest.$ac_ext <<EOF 6563cat > conftest.$ac_ext <<EOF
6287#line 6288 "configure" 6564#line 6565 "configure"
6288#include "confdefs.h" 6565#include "confdefs.h"
6289/* Override any gcc2 internal prototype to avoid an error. */ 6566/* Override any gcc2 internal prototype to avoid an error. */
6290/* We use char because int might match the return type of a gcc2 6567/* We use char because int might match the return type of a gcc2
@@ -6295,7 +6572,7 @@ int main() {
6295kvm_open() 6572kvm_open()
6296; return 0; } 6573; return 0; }
6297EOF 6574EOF
6298if { (eval echo configure:6299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6575if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6299 rm -rf conftest* 6576 rm -rf conftest*
6300 eval "ac_cv_lib_$ac_lib_var=yes" 6577 eval "ac_cv_lib_$ac_lib_var=yes"
6301else 6578else
@@ -6317,7 +6594,7 @@ fi
6317 6594
6318# Check for the 4.4BSD definition of getloadavg. 6595# Check for the 4.4BSD definition of getloadavg.
6319echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 6596echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
6320echo "configure:6321: checking for getloadavg in -lutil" >&5 6597echo "configure:6598: checking for getloadavg in -lutil" >&5
6321ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` 6598ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
6322if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6599if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6 6600 echo $ac_n "(cached) $ac_c" 1>&6
@@ -6325,7 +6602,7 @@ else
6325 ac_save_LIBS="$LIBS" 6602 ac_save_LIBS="$LIBS"
6326LIBS="-lutil $LIBS" 6603LIBS="-lutil $LIBS"
6327cat > conftest.$ac_ext <<EOF 6604cat > conftest.$ac_ext <<EOF
6328#line 6329 "configure" 6605#line 6606 "configure"
6329#include "confdefs.h" 6606#include "confdefs.h"
6330/* Override any gcc2 internal prototype to avoid an error. */ 6607/* Override any gcc2 internal prototype to avoid an error. */
6331/* We use char because int might match the return type of a gcc2 6608/* We use char because int might match the return type of a gcc2
@@ -6336,7 +6613,7 @@ int main() {
6336getloadavg() 6613getloadavg()
6337; return 0; } 6614; return 0; }
6338EOF 6615EOF
6339if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6616if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6340 rm -rf conftest* 6617 rm -rf conftest*
6341 eval "ac_cv_lib_$ac_lib_var=yes" 6618 eval "ac_cv_lib_$ac_lib_var=yes"
6342else 6619else
@@ -6362,7 +6639,7 @@ if test $ac_have_func = no; then
6362 # Since it is not a standard part of AIX, it might be installed locally. 6639 # Since it is not a standard part of AIX, it might be installed locally.
6363 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" 6640 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
6364 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 6641 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
6365echo "configure:6366: checking for getloadavg in -lgetloadavg" >&5 6642echo "configure:6643: checking for getloadavg in -lgetloadavg" >&5
6366ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` 6643ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
6367if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6644if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6368 echo $ac_n "(cached) $ac_c" 1>&6 6645 echo $ac_n "(cached) $ac_c" 1>&6
@@ -6370,7 +6647,7 @@ else
6370 ac_save_LIBS="$LIBS" 6647 ac_save_LIBS="$LIBS"
6371LIBS="-lgetloadavg $LIBS" 6648LIBS="-lgetloadavg $LIBS"
6372cat > conftest.$ac_ext <<EOF 6649cat > conftest.$ac_ext <<EOF
6373#line 6374 "configure" 6650#line 6651 "configure"
6374#include "confdefs.h" 6651#include "confdefs.h"
6375/* Override any gcc2 internal prototype to avoid an error. */ 6652/* Override any gcc2 internal prototype to avoid an error. */
6376/* We use char because int might match the return type of a gcc2 6653/* We use char because int might match the return type of a gcc2
@@ -6381,7 +6658,7 @@ int main() {
6381getloadavg() 6658getloadavg()
6382; return 0; } 6659; return 0; }
6383EOF 6660EOF
6384if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6661if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6385 rm -rf conftest* 6662 rm -rf conftest*
6386 eval "ac_cv_lib_$ac_lib_var=yes" 6663 eval "ac_cv_lib_$ac_lib_var=yes"
6387else 6664else
@@ -6408,12 +6685,12 @@ fi
6408for ac_func in getloadavg 6685for ac_func in getloadavg
6409do 6686do
6410echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6687echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6411echo "configure:6412: checking for $ac_func" >&5 6688echo "configure:6689: checking for $ac_func" >&5
6412if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6689if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6413 echo $ac_n "(cached) $ac_c" 1>&6 6690 echo $ac_n "(cached) $ac_c" 1>&6
6414else 6691else
6415 cat > conftest.$ac_ext <<EOF 6692 cat > conftest.$ac_ext <<EOF
6416#line 6417 "configure" 6693#line 6694 "configure"
6417#include "confdefs.h" 6694#include "confdefs.h"
6418/* System header to define __stub macros and hopefully few prototypes, 6695/* System header to define __stub macros and hopefully few prototypes,
6419 which can conflict with char $ac_func(); below. */ 6696 which can conflict with char $ac_func(); below. */
@@ -6436,7 +6713,7 @@ $ac_func();
6436 6713
6437; return 0; } 6714; return 0; }
6438EOF 6715EOF
6439if { (eval echo configure:6440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6716if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6440 rm -rf conftest* 6717 rm -rf conftest*
6441 eval "ac_cv_func_$ac_func=yes" 6718 eval "ac_cv_func_$ac_func=yes"
6442else 6719else
@@ -6474,17 +6751,17 @@ else
6474 ac_have_func=no 6751 ac_have_func=no
6475 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` 6752 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
6476echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 6753echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
6477echo "configure:6478: checking for sys/dg_sys_info.h" >&5 6754echo "configure:6755: checking for sys/dg_sys_info.h" >&5
6478if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6755if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6 6756 echo $ac_n "(cached) $ac_c" 1>&6
6480else 6757else
6481 cat > conftest.$ac_ext <<EOF 6758 cat > conftest.$ac_ext <<EOF
6482#line 6483 "configure" 6759#line 6760 "configure"
6483#include "confdefs.h" 6760#include "confdefs.h"
6484#include <sys/dg_sys_info.h> 6761#include <sys/dg_sys_info.h>
6485EOF 6762EOF
6486ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6763ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6487{ (eval echo configure:6488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6764{ (eval echo configure:6765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6488ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6765ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6489if test -z "$ac_err"; then 6766if test -z "$ac_err"; then
6490 rm -rf conftest* 6767 rm -rf conftest*
@@ -6505,7 +6782,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6505EOF 6782EOF
6506 6783
6507 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 6784 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
6508echo "configure:6509: checking for dg_sys_info in -ldgc" >&5 6785echo "configure:6786: checking for dg_sys_info in -ldgc" >&5
6509ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` 6786ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
6510if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6511 echo $ac_n "(cached) $ac_c" 1>&6 6788 echo $ac_n "(cached) $ac_c" 1>&6
@@ -6513,7 +6790,7 @@ else
6513 ac_save_LIBS="$LIBS" 6790 ac_save_LIBS="$LIBS"
6514LIBS="-ldgc $LIBS" 6791LIBS="-ldgc $LIBS"
6515cat > conftest.$ac_ext <<EOF 6792cat > conftest.$ac_ext <<EOF
6516#line 6517 "configure" 6793#line 6794 "configure"
6517#include "confdefs.h" 6794#include "confdefs.h"
6518/* Override any gcc2 internal prototype to avoid an error. */ 6795/* Override any gcc2 internal prototype to avoid an error. */
6519/* We use char because int might match the return type of a gcc2 6796/* We use char because int might match the return type of a gcc2
@@ -6524,7 +6801,7 @@ int main() {
6524dg_sys_info() 6801dg_sys_info()
6525; return 0; } 6802; return 0; }
6526EOF 6803EOF
6527if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6804if { (eval echo configure:6805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6528 rm -rf conftest* 6805 rm -rf conftest*
6529 eval "ac_cv_lib_$ac_lib_var=yes" 6806 eval "ac_cv_lib_$ac_lib_var=yes"
6530else 6807else
@@ -6569,17 +6846,17 @@ EOF
6569 if test $ac_have_func = no; then 6846 if test $ac_have_func = no; then
6570 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` 6847 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
6571echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 6848echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
6572echo "configure:6573: checking for inq_stats/cpustats.h" >&5 6849echo "configure:6850: checking for inq_stats/cpustats.h" >&5
6573if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6850if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6574 echo $ac_n "(cached) $ac_c" 1>&6 6851 echo $ac_n "(cached) $ac_c" 1>&6
6575else 6852else
6576 cat > conftest.$ac_ext <<EOF 6853 cat > conftest.$ac_ext <<EOF
6577#line 6578 "configure" 6854#line 6855 "configure"
6578#include "confdefs.h" 6855#include "confdefs.h"
6579#include <inq_stats/cpustats.h> 6856#include <inq_stats/cpustats.h>
6580EOF 6857EOF
6581ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6858ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6582{ (eval echo configure:6583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6859{ (eval echo configure:6860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6583ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6860ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6584if test -z "$ac_err"; then 6861if test -z "$ac_err"; then
6585 rm -rf conftest* 6862 rm -rf conftest*
@@ -6612,17 +6889,17 @@ fi
6612 if test $ac_have_func = no; then 6889 if test $ac_have_func = no; then
6613 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` 6890 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
6614echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 6891echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
6615echo "configure:6616: checking for sys/cpustats.h" >&5 6892echo "configure:6893: checking for sys/cpustats.h" >&5
6616if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6893if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6617 echo $ac_n "(cached) $ac_c" 1>&6 6894 echo $ac_n "(cached) $ac_c" 1>&6
6618else 6895else
6619 cat > conftest.$ac_ext <<EOF 6896 cat > conftest.$ac_ext <<EOF
6620#line 6621 "configure" 6897#line 6898 "configure"
6621#include "confdefs.h" 6898#include "confdefs.h"
6622#include <sys/cpustats.h> 6899#include <sys/cpustats.h>
6623EOF 6900EOF
6624ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6901ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6625{ (eval echo configure:6626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6902{ (eval echo configure:6903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6626ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6903ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6627if test -z "$ac_err"; then 6904if test -z "$ac_err"; then
6628 rm -rf conftest* 6905 rm -rf conftest*
@@ -6653,17 +6930,17 @@ fi
6653do 6930do
6654ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6931ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6655echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6932echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6656echo "configure:6657: checking for $ac_hdr" >&5 6933echo "configure:6934: checking for $ac_hdr" >&5
6657if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6934if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6658 echo $ac_n "(cached) $ac_c" 1>&6 6935 echo $ac_n "(cached) $ac_c" 1>&6
6659else 6936else
6660 cat > conftest.$ac_ext <<EOF 6937 cat > conftest.$ac_ext <<EOF
6661#line 6662 "configure" 6938#line 6939 "configure"
6662#include "confdefs.h" 6939#include "confdefs.h"
6663#include <$ac_hdr> 6940#include <$ac_hdr>
6664EOF 6941EOF
6665ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6942ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6666{ (eval echo configure:6667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6943{ (eval echo configure:6944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6667ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6944ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6668if test -z "$ac_err"; then 6945if test -z "$ac_err"; then
6669 rm -rf conftest* 6946 rm -rf conftest*
@@ -6693,17 +6970,17 @@ done
6693 6970
6694 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 6971 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
6695echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 6972echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
6696echo "configure:6697: checking for nlist.h" >&5 6973echo "configure:6974: checking for nlist.h" >&5
6697if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6974if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6 6975 echo $ac_n "(cached) $ac_c" 1>&6
6699else 6976else
6700 cat > conftest.$ac_ext <<EOF 6977 cat > conftest.$ac_ext <<EOF
6701#line 6702 "configure" 6978#line 6979 "configure"
6702#include "confdefs.h" 6979#include "confdefs.h"
6703#include <nlist.h> 6980#include <nlist.h>
6704EOF 6981EOF
6705ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6982ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6706{ (eval echo configure:6707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6983{ (eval echo configure:6984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6707ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6984ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6708if test -z "$ac_err"; then 6985if test -z "$ac_err"; then
6709 rm -rf conftest* 6986 rm -rf conftest*
@@ -6724,19 +7001,19 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6724EOF 7001EOF
6725 7002
6726 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 7003 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
6727echo "configure:6728: checking for n_un in struct nlist" >&5 7004echo "configure:7005: checking for n_un in struct nlist" >&5
6728if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then 7005if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
6729 echo $ac_n "(cached) $ac_c" 1>&6 7006 echo $ac_n "(cached) $ac_c" 1>&6
6730else 7007else
6731 cat > conftest.$ac_ext <<EOF 7008 cat > conftest.$ac_ext <<EOF
6732#line 6733 "configure" 7009#line 7010 "configure"
6733#include "confdefs.h" 7010#include "confdefs.h"
6734#include <nlist.h> 7011#include <nlist.h>
6735int main() { 7012int main() {
6736struct nlist n; n.n_un.n_name = 0; 7013struct nlist n; n.n_un.n_name = 0;
6737; return 0; } 7014; return 0; }
6738EOF 7015EOF
6739if { (eval echo configure:6740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7016if { (eval echo configure:7017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6740 rm -rf conftest* 7017 rm -rf conftest*
6741 ac_cv_struct_nlist_n_un=yes 7018 ac_cv_struct_nlist_n_un=yes
6742else 7019else
@@ -6763,12 +7040,12 @@ fi # Do not have getloadavg in system libraries.
6763 7040
6764# Some definitions of getloadavg require that the program be installed setgid. 7041# Some definitions of getloadavg require that the program be installed setgid.
6765echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 7042echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
6766echo "configure:6767: checking whether getloadavg requires setgid" >&5 7043echo "configure:7044: checking whether getloadavg requires setgid" >&5
6767if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then 7044if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6 7045 echo $ac_n "(cached) $ac_c" 1>&6
6769else 7046else
6770 cat > conftest.$ac_ext <<EOF 7047 cat > conftest.$ac_ext <<EOF
6771#line 6772 "configure" 7048#line 7049 "configure"
6772#include "confdefs.h" 7049#include "confdefs.h"
6773#include "$srcdir/getloadavg.c" 7050#include "$srcdir/getloadavg.c"
6774#ifdef LDAV_PRIVILEGED 7051#ifdef LDAV_PRIVILEGED
@@ -6799,7 +7076,7 @@ fi
6799 7076
6800if test $ac_cv_func_getloadavg_setgid = yes; then 7077if test $ac_cv_func_getloadavg_setgid = yes; then
6801 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 7078 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
6802echo "configure:6803: checking group of /dev/kmem" >&5 7079echo "configure:7080: checking group of /dev/kmem" >&5
6803if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then 7080if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
6804 echo $ac_n "(cached) $ac_c" 1>&6 7081 echo $ac_n "(cached) $ac_c" 1>&6
6805else 7082else
@@ -6822,12 +7099,12 @@ fi
6822for ac_func in ftello 7099for ac_func in ftello
6823do 7100do
6824echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7101echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6825echo "configure:6826: checking for $ac_func" >&5 7102echo "configure:7103: checking for $ac_func" >&5
6826if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7103if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6 7104 echo $ac_n "(cached) $ac_c" 1>&6
6828else 7105else
6829 cat > conftest.$ac_ext <<EOF 7106 cat > conftest.$ac_ext <<EOF
6830#line 6831 "configure" 7107#line 7108 "configure"
6831#include "confdefs.h" 7108#include "confdefs.h"
6832/* System header to define __stub macros and hopefully few prototypes, 7109/* System header to define __stub macros and hopefully few prototypes,
6833 which can conflict with char $ac_func(); below. */ 7110 which can conflict with char $ac_func(); below. */
@@ -6850,7 +7127,7 @@ $ac_func();
6850 7127
6851; return 0; } 7128; return 0; }
6852EOF 7129EOF
6853if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7130if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6854 rm -rf conftest* 7131 rm -rf conftest*
6855 eval "ac_cv_func_$ac_func=yes" 7132 eval "ac_cv_func_$ac_func=yes"
6856else 7133else
@@ -6880,12 +7157,12 @@ done
6880for ac_func in grantpt 7157for ac_func in grantpt
6881do 7158do
6882echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7159echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6883echo "configure:6884: checking for $ac_func" >&5 7160echo "configure:7161: checking for $ac_func" >&5
6884if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7161if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6885 echo $ac_n "(cached) $ac_c" 1>&6 7162 echo $ac_n "(cached) $ac_c" 1>&6
6886else 7163else
6887 cat > conftest.$ac_ext <<EOF 7164 cat > conftest.$ac_ext <<EOF
6888#line 6889 "configure" 7165#line 7166 "configure"
6889#include "confdefs.h" 7166#include "confdefs.h"
6890/* System header to define __stub macros and hopefully few prototypes, 7167/* System header to define __stub macros and hopefully few prototypes,
6891 which can conflict with char $ac_func(); below. */ 7168 which can conflict with char $ac_func(); below. */
@@ -6908,7 +7185,7 @@ $ac_func();
6908 7185
6909; return 0; } 7186; return 0; }
6910EOF 7187EOF
6911if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7188if { (eval echo configure:7189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6912 rm -rf conftest* 7189 rm -rf conftest*
6913 eval "ac_cv_func_$ac_func=yes" 7190 eval "ac_cv_func_$ac_func=yes"
6914else 7191else
@@ -6937,12 +7214,12 @@ done
6937for ac_func in getpt 7214for ac_func in getpt
6938do 7215do
6939echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7216echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6940echo "configure:6941: checking for $ac_func" >&5 7217echo "configure:7218: checking for $ac_func" >&5
6941if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7218if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6942 echo $ac_n "(cached) $ac_c" 1>&6 7219 echo $ac_n "(cached) $ac_c" 1>&6
6943else 7220else
6944 cat > conftest.$ac_ext <<EOF 7221 cat > conftest.$ac_ext <<EOF
6945#line 6946 "configure" 7222#line 7223 "configure"
6946#include "confdefs.h" 7223#include "confdefs.h"
6947/* System header to define __stub macros and hopefully few prototypes, 7224/* System header to define __stub macros and hopefully few prototypes,
6948 which can conflict with char $ac_func(); below. */ 7225 which can conflict with char $ac_func(); below. */
@@ -6965,7 +7242,7 @@ $ac_func();
6965 7242
6966; return 0; } 7243; return 0; }
6967EOF 7244EOF
6968if { (eval echo configure:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7245if { (eval echo configure:7246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6969 rm -rf conftest* 7246 rm -rf conftest*
6970 eval "ac_cv_func_$ac_func=yes" 7247 eval "ac_cv_func_$ac_func=yes"
6971else 7248else
@@ -6995,7 +7272,7 @@ done
6995# It's better to believe a function is not available 7272# It's better to believe a function is not available
6996# than to expect to find it in ncurses. 7273# than to expect to find it in ncurses.
6997echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 7274echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
6998echo "configure:6999: checking for tparm in -lncurses" >&5 7275echo "configure:7276: checking for tparm in -lncurses" >&5
6999ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 7276ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
7000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7277if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7001 echo $ac_n "(cached) $ac_c" 1>&6 7278 echo $ac_n "(cached) $ac_c" 1>&6
@@ -7003,7 +7280,7 @@ else
7003 ac_save_LIBS="$LIBS" 7280 ac_save_LIBS="$LIBS"
7004LIBS="-lncurses $LIBS" 7281LIBS="-lncurses $LIBS"
7005cat > conftest.$ac_ext <<EOF 7282cat > conftest.$ac_ext <<EOF
7006#line 7007 "configure" 7283#line 7284 "configure"
7007#include "confdefs.h" 7284#include "confdefs.h"
7008/* Override any gcc2 internal prototype to avoid an error. */ 7285/* Override any gcc2 internal prototype to avoid an error. */
7009/* We use char because int might match the return type of a gcc2 7286/* We use char because int might match the return type of a gcc2
@@ -7014,7 +7291,7 @@ int main() {
7014tparm() 7291tparm()
7015; return 0; } 7292; return 0; }
7016EOF 7293EOF
7017if { (eval echo configure:7018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7294if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7018 rm -rf conftest* 7295 rm -rf conftest*
7019 eval "ac_cv_lib_$ac_lib_var=yes" 7296 eval "ac_cv_lib_$ac_lib_var=yes"
7020else 7297else
@@ -7045,7 +7322,7 @@ fi
7045# These tell us which Kerberos-related libraries to use. 7322# These tell us which Kerberos-related libraries to use.
7046if test "${with_kerberos+set}" = set; then 7323if test "${with_kerberos+set}" = set; then
7047 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 7324 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
7048echo "configure:7049: checking for com_err in -lcom_err" >&5 7325echo "configure:7326: checking for com_err in -lcom_err" >&5
7049ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 7326ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
7050if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7327if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7051 echo $ac_n "(cached) $ac_c" 1>&6 7328 echo $ac_n "(cached) $ac_c" 1>&6
@@ -7053,7 +7330,7 @@ else
7053 ac_save_LIBS="$LIBS" 7330 ac_save_LIBS="$LIBS"
7054LIBS="-lcom_err $LIBS" 7331LIBS="-lcom_err $LIBS"
7055cat > conftest.$ac_ext <<EOF 7332cat > conftest.$ac_ext <<EOF
7056#line 7057 "configure" 7333#line 7334 "configure"
7057#include "confdefs.h" 7334#include "confdefs.h"
7058/* Override any gcc2 internal prototype to avoid an error. */ 7335/* Override any gcc2 internal prototype to avoid an error. */
7059/* We use char because int might match the return type of a gcc2 7336/* We use char because int might match the return type of a gcc2
@@ -7064,7 +7341,7 @@ int main() {
7064com_err() 7341com_err()
7065; return 0; } 7342; return 0; }
7066EOF 7343EOF
7067if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7344if { (eval echo configure:7345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7068 rm -rf conftest* 7345 rm -rf conftest*
7069 eval "ac_cv_lib_$ac_lib_var=yes" 7346 eval "ac_cv_lib_$ac_lib_var=yes"
7070else 7347else
@@ -7092,7 +7369,7 @@ else
7092fi 7369fi
7093 7370
7094 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 7371 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
7095echo "configure:7096: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 7372echo "configure:7373: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
7096ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7373ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7097if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7374if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7098 echo $ac_n "(cached) $ac_c" 1>&6 7375 echo $ac_n "(cached) $ac_c" 1>&6
@@ -7100,7 +7377,7 @@ else
7100 ac_save_LIBS="$LIBS" 7377 ac_save_LIBS="$LIBS"
7101LIBS="-lk5crypto $LIBS" 7378LIBS="-lk5crypto $LIBS"
7102cat > conftest.$ac_ext <<EOF 7379cat > conftest.$ac_ext <<EOF
7103#line 7104 "configure" 7380#line 7381 "configure"
7104#include "confdefs.h" 7381#include "confdefs.h"
7105/* Override any gcc2 internal prototype to avoid an error. */ 7382/* Override any gcc2 internal prototype to avoid an error. */
7106/* We use char because int might match the return type of a gcc2 7383/* We use char because int might match the return type of a gcc2
@@ -7111,7 +7388,7 @@ int main() {
7111mit_des_cbc_encrypt() 7388mit_des_cbc_encrypt()
7112; return 0; } 7389; return 0; }
7113EOF 7390EOF
7114if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7391if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7115 rm -rf conftest* 7392 rm -rf conftest*
7116 eval "ac_cv_lib_$ac_lib_var=yes" 7393 eval "ac_cv_lib_$ac_lib_var=yes"
7117else 7394else
@@ -7139,7 +7416,7 @@ else
7139fi 7416fi
7140 7417
7141 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 7418 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
7142echo "configure:7143: checking for mit_des_cbc_encrypt in -lcrypto" >&5 7419echo "configure:7420: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7143ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7420ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7144if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7421if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6 7422 echo $ac_n "(cached) $ac_c" 1>&6
@@ -7147,7 +7424,7 @@ else
7147 ac_save_LIBS="$LIBS" 7424 ac_save_LIBS="$LIBS"
7148LIBS="-lcrypto $LIBS" 7425LIBS="-lcrypto $LIBS"
7149cat > conftest.$ac_ext <<EOF 7426cat > conftest.$ac_ext <<EOF
7150#line 7151 "configure" 7427#line 7428 "configure"
7151#include "confdefs.h" 7428#include "confdefs.h"
7152/* Override any gcc2 internal prototype to avoid an error. */ 7429/* Override any gcc2 internal prototype to avoid an error. */
7153/* We use char because int might match the return type of a gcc2 7430/* We use char because int might match the return type of a gcc2
@@ -7158,7 +7435,7 @@ int main() {
7158mit_des_cbc_encrypt() 7435mit_des_cbc_encrypt()
7159; return 0; } 7436; return 0; }
7160EOF 7437EOF
7161if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7438if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7162 rm -rf conftest* 7439 rm -rf conftest*
7163 eval "ac_cv_lib_$ac_lib_var=yes" 7440 eval "ac_cv_lib_$ac_lib_var=yes"
7164else 7441else
@@ -7186,7 +7463,7 @@ else
7186fi 7463fi
7187 7464
7188 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 7465 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
7189echo "configure:7190: checking for krb5_init_context in -lkrb5" >&5 7466echo "configure:7467: checking for krb5_init_context in -lkrb5" >&5
7190ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` 7467ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
7191if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7468if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6 7469 echo $ac_n "(cached) $ac_c" 1>&6
@@ -7194,7 +7471,7 @@ else
7194 ac_save_LIBS="$LIBS" 7471 ac_save_LIBS="$LIBS"
7195LIBS="-lkrb5 $LIBS" 7472LIBS="-lkrb5 $LIBS"
7196cat > conftest.$ac_ext <<EOF 7473cat > conftest.$ac_ext <<EOF
7197#line 7198 "configure" 7474#line 7475 "configure"
7198#include "confdefs.h" 7475#include "confdefs.h"
7199/* Override any gcc2 internal prototype to avoid an error. */ 7476/* Override any gcc2 internal prototype to avoid an error. */
7200/* We use char because int might match the return type of a gcc2 7477/* We use char because int might match the return type of a gcc2
@@ -7205,7 +7482,7 @@ int main() {
7205krb5_init_context() 7482krb5_init_context()
7206; return 0; } 7483; return 0; }
7207EOF 7484EOF
7208if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7485if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7209 rm -rf conftest* 7486 rm -rf conftest*
7210 eval "ac_cv_lib_$ac_lib_var=yes" 7487 eval "ac_cv_lib_$ac_lib_var=yes"
7211else 7488else
@@ -7234,7 +7511,7 @@ fi
7234 7511
7235 if test "${with_kerberos5+set}" != set; then 7512 if test "${with_kerberos5+set}" != set; then
7236 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 7513 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
7237echo "configure:7238: checking for des_cbc_encrypt in -ldes425" >&5 7514echo "configure:7515: checking for des_cbc_encrypt in -ldes425" >&5
7238ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7515ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7239if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7516if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6 7517 echo $ac_n "(cached) $ac_c" 1>&6
@@ -7242,7 +7519,7 @@ else
7242 ac_save_LIBS="$LIBS" 7519 ac_save_LIBS="$LIBS"
7243LIBS="-ldes425 $LIBS" 7520LIBS="-ldes425 $LIBS"
7244cat > conftest.$ac_ext <<EOF 7521cat > conftest.$ac_ext <<EOF
7245#line 7246 "configure" 7522#line 7523 "configure"
7246#include "confdefs.h" 7523#include "confdefs.h"
7247/* Override any gcc2 internal prototype to avoid an error. */ 7524/* Override any gcc2 internal prototype to avoid an error. */
7248/* We use char because int might match the return type of a gcc2 7525/* We use char because int might match the return type of a gcc2
@@ -7253,7 +7530,7 @@ int main() {
7253des_cbc_encrypt() 7530des_cbc_encrypt()
7254; return 0; } 7531; return 0; }
7255EOF 7532EOF
7256if { (eval echo configure:7257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7533if { (eval echo configure:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7257 rm -rf conftest* 7534 rm -rf conftest*
7258 eval "ac_cv_lib_$ac_lib_var=yes" 7535 eval "ac_cv_lib_$ac_lib_var=yes"
7259else 7536else
@@ -7279,7 +7556,7 @@ EOF
7279else 7556else
7280 echo "$ac_t""no" 1>&6 7557 echo "$ac_t""no" 1>&6
7281echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 7558echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
7282echo "configure:7283: checking for des_cbc_encrypt in -ldes" >&5 7559echo "configure:7560: checking for des_cbc_encrypt in -ldes" >&5
7283ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7560ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7284if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7561if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7285 echo $ac_n "(cached) $ac_c" 1>&6 7562 echo $ac_n "(cached) $ac_c" 1>&6
@@ -7287,7 +7564,7 @@ else
7287 ac_save_LIBS="$LIBS" 7564 ac_save_LIBS="$LIBS"
7288LIBS="-ldes $LIBS" 7565LIBS="-ldes $LIBS"
7289cat > conftest.$ac_ext <<EOF 7566cat > conftest.$ac_ext <<EOF
7290#line 7291 "configure" 7567#line 7568 "configure"
7291#include "confdefs.h" 7568#include "confdefs.h"
7292/* Override any gcc2 internal prototype to avoid an error. */ 7569/* Override any gcc2 internal prototype to avoid an error. */
7293/* We use char because int might match the return type of a gcc2 7570/* We use char because int might match the return type of a gcc2
@@ -7298,7 +7575,7 @@ int main() {
7298des_cbc_encrypt() 7575des_cbc_encrypt()
7299; return 0; } 7576; return 0; }
7300EOF 7577EOF
7301if { (eval echo configure:7302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7578if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7302 rm -rf conftest* 7579 rm -rf conftest*
7303 eval "ac_cv_lib_$ac_lib_var=yes" 7580 eval "ac_cv_lib_$ac_lib_var=yes"
7304else 7581else
@@ -7328,7 +7605,7 @@ fi
7328fi 7605fi
7329 7606
7330 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 7607 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
7331echo "configure:7332: checking for krb_get_cred in -lkrb4" >&5 7608echo "configure:7609: checking for krb_get_cred in -lkrb4" >&5
7332ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` 7609ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
7333if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7610if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7334 echo $ac_n "(cached) $ac_c" 1>&6 7611 echo $ac_n "(cached) $ac_c" 1>&6
@@ -7336,7 +7613,7 @@ else
7336 ac_save_LIBS="$LIBS" 7613 ac_save_LIBS="$LIBS"
7337LIBS="-lkrb4 $LIBS" 7614LIBS="-lkrb4 $LIBS"
7338cat > conftest.$ac_ext <<EOF 7615cat > conftest.$ac_ext <<EOF
7339#line 7340 "configure" 7616#line 7617 "configure"
7340#include "confdefs.h" 7617#include "confdefs.h"
7341/* Override any gcc2 internal prototype to avoid an error. */ 7618/* Override any gcc2 internal prototype to avoid an error. */
7342/* We use char because int might match the return type of a gcc2 7619/* We use char because int might match the return type of a gcc2
@@ -7347,7 +7624,7 @@ int main() {
7347krb_get_cred() 7624krb_get_cred()
7348; return 0; } 7625; return 0; }
7349EOF 7626EOF
7350if { (eval echo configure:7351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7627if { (eval echo configure:7628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7351 rm -rf conftest* 7628 rm -rf conftest*
7352 eval "ac_cv_lib_$ac_lib_var=yes" 7629 eval "ac_cv_lib_$ac_lib_var=yes"
7353else 7630else
@@ -7373,7 +7650,7 @@ EOF
7373else 7650else
7374 echo "$ac_t""no" 1>&6 7651 echo "$ac_t""no" 1>&6
7375echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 7652echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
7376echo "configure:7377: checking for krb_get_cred in -lkrb" >&5 7653echo "configure:7654: checking for krb_get_cred in -lkrb" >&5
7377ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` 7654ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
7378if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7655if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7379 echo $ac_n "(cached) $ac_c" 1>&6 7656 echo $ac_n "(cached) $ac_c" 1>&6
@@ -7381,7 +7658,7 @@ else
7381 ac_save_LIBS="$LIBS" 7658 ac_save_LIBS="$LIBS"
7382LIBS="-lkrb $LIBS" 7659LIBS="-lkrb $LIBS"
7383cat > conftest.$ac_ext <<EOF 7660cat > conftest.$ac_ext <<EOF
7384#line 7385 "configure" 7661#line 7662 "configure"
7385#include "confdefs.h" 7662#include "confdefs.h"
7386/* Override any gcc2 internal prototype to avoid an error. */ 7663/* Override any gcc2 internal prototype to avoid an error. */
7387/* We use char because int might match the return type of a gcc2 7664/* We use char because int might match the return type of a gcc2
@@ -7392,7 +7669,7 @@ int main() {
7392krb_get_cred() 7669krb_get_cred()
7393; return 0; } 7670; return 0; }
7394EOF 7671EOF
7395if { (eval echo configure:7396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7672if { (eval echo configure:7673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7396 rm -rf conftest* 7673 rm -rf conftest*
7397 eval "ac_cv_lib_$ac_lib_var=yes" 7674 eval "ac_cv_lib_$ac_lib_var=yes"
7398else 7675else
@@ -7428,17 +7705,17 @@ fi
7428do 7705do
7429ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7706ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7430echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7707echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7431echo "configure:7432: checking for $ac_hdr" >&5 7708echo "configure:7709: checking for $ac_hdr" >&5
7432if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7709if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7433 echo $ac_n "(cached) $ac_c" 1>&6 7710 echo $ac_n "(cached) $ac_c" 1>&6
7434else 7711else
7435 cat > conftest.$ac_ext <<EOF 7712 cat > conftest.$ac_ext <<EOF
7436#line 7437 "configure" 7713#line 7714 "configure"
7437#include "confdefs.h" 7714#include "confdefs.h"
7438#include <$ac_hdr> 7715#include <$ac_hdr>
7439EOF 7716EOF
7440ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7717ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7441{ (eval echo configure:7442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7718{ (eval echo configure:7719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7442ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7719ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7443if test -z "$ac_err"; then 7720if test -z "$ac_err"; then
7444 rm -rf conftest* 7721 rm -rf conftest*
@@ -7469,17 +7746,17 @@ done
7469do 7746do
7470ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7747ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7471echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7748echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7472echo "configure:7473: checking for $ac_hdr" >&5 7749echo "configure:7750: checking for $ac_hdr" >&5
7473if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7750if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7474 echo $ac_n "(cached) $ac_c" 1>&6 7751 echo $ac_n "(cached) $ac_c" 1>&6
7475else 7752else
7476 cat > conftest.$ac_ext <<EOF 7753 cat > conftest.$ac_ext <<EOF
7477#line 7478 "configure" 7754#line 7755 "configure"
7478#include "confdefs.h" 7755#include "confdefs.h"
7479#include <$ac_hdr> 7756#include <$ac_hdr>
7480EOF 7757EOF
7481ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7758ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7482{ (eval echo configure:7483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7759{ (eval echo configure:7760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7483ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7760ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7484if test -z "$ac_err"; then 7761if test -z "$ac_err"; then
7485 rm -rf conftest* 7762 rm -rf conftest*
@@ -7506,17 +7783,17 @@ for ac_hdr in kerberosIV/des.h
7506do 7783do
7507ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7784ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7508echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7785echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7509echo "configure:7510: checking for $ac_hdr" >&5 7786echo "configure:7787: checking for $ac_hdr" >&5
7510if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7787if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6 7788 echo $ac_n "(cached) $ac_c" 1>&6
7512else 7789else
7513 cat > conftest.$ac_ext <<EOF 7790 cat > conftest.$ac_ext <<EOF
7514#line 7515 "configure" 7791#line 7792 "configure"
7515#include "confdefs.h" 7792#include "confdefs.h"
7516#include <$ac_hdr> 7793#include <$ac_hdr>
7517EOF 7794EOF
7518ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7795ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7519{ (eval echo configure:7520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7796{ (eval echo configure:7797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7520ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7797ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7521if test -z "$ac_err"; then 7798if test -z "$ac_err"; then
7522 rm -rf conftest* 7799 rm -rf conftest*
@@ -7543,17 +7820,17 @@ for ac_hdr in kerberos/des.h
7543do 7820do
7544ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7821ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7545echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7822echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7546echo "configure:7547: checking for $ac_hdr" >&5 7823echo "configure:7824: checking for $ac_hdr" >&5
7547if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7824if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7548 echo $ac_n "(cached) $ac_c" 1>&6 7825 echo $ac_n "(cached) $ac_c" 1>&6
7549else 7826else
7550 cat > conftest.$ac_ext <<EOF 7827 cat > conftest.$ac_ext <<EOF
7551#line 7552 "configure" 7828#line 7829 "configure"
7552#include "confdefs.h" 7829#include "confdefs.h"
7553#include <$ac_hdr> 7830#include <$ac_hdr>
7554EOF 7831EOF
7555ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7832ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7556{ (eval echo configure:7557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7833{ (eval echo configure:7834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7557ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7834ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7558if test -z "$ac_err"; then 7835if test -z "$ac_err"; then
7559 rm -rf conftest* 7836 rm -rf conftest*
@@ -7589,17 +7866,17 @@ done
7589do 7866do
7590ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7867ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7591echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7868echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7592echo "configure:7593: checking for $ac_hdr" >&5 7869echo "configure:7870: checking for $ac_hdr" >&5
7593if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7870if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7594 echo $ac_n "(cached) $ac_c" 1>&6 7871 echo $ac_n "(cached) $ac_c" 1>&6
7595else 7872else
7596 cat > conftest.$ac_ext <<EOF 7873 cat > conftest.$ac_ext <<EOF
7597#line 7598 "configure" 7874#line 7875 "configure"
7598#include "confdefs.h" 7875#include "confdefs.h"
7599#include <$ac_hdr> 7876#include <$ac_hdr>
7600EOF 7877EOF
7601ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7878ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7602{ (eval echo configure:7603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7879{ (eval echo configure:7880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7603ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7880ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7604if test -z "$ac_err"; then 7881if test -z "$ac_err"; then
7605 rm -rf conftest* 7882 rm -rf conftest*
@@ -7626,17 +7903,17 @@ for ac_hdr in kerberosIV/krb.h
7626do 7903do
7627ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7904ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7628echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7905echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7629echo "configure:7630: checking for $ac_hdr" >&5 7906echo "configure:7907: checking for $ac_hdr" >&5
7630if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7907if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6 7908 echo $ac_n "(cached) $ac_c" 1>&6
7632else 7909else
7633 cat > conftest.$ac_ext <<EOF 7910 cat > conftest.$ac_ext <<EOF
7634#line 7635 "configure" 7911#line 7912 "configure"
7635#include "confdefs.h" 7912#include "confdefs.h"
7636#include <$ac_hdr> 7913#include <$ac_hdr>
7637EOF 7914EOF
7638ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7915ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7639{ (eval echo configure:7640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7916{ (eval echo configure:7917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7640ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7917ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7641if test -z "$ac_err"; then 7918if test -z "$ac_err"; then
7642 rm -rf conftest* 7919 rm -rf conftest*
@@ -7663,17 +7940,17 @@ for ac_hdr in kerberos/krb.h
7663do 7940do
7664ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7941ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7665echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7942echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7666echo "configure:7667: checking for $ac_hdr" >&5 7943echo "configure:7944: checking for $ac_hdr" >&5
7667if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7944if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6 7945 echo $ac_n "(cached) $ac_c" 1>&6
7669else 7946else
7670 cat > conftest.$ac_ext <<EOF 7947 cat > conftest.$ac_ext <<EOF
7671#line 7672 "configure" 7948#line 7949 "configure"
7672#include "confdefs.h" 7949#include "confdefs.h"
7673#include <$ac_hdr> 7950#include <$ac_hdr>
7674EOF 7951EOF
7675ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7952ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7676{ (eval echo configure:7677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7953{ (eval echo configure:7954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7677ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7954ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7678if test -z "$ac_err"; then 7955if test -z "$ac_err"; then
7679 rm -rf conftest* 7956 rm -rf conftest*
@@ -7710,17 +7987,17 @@ done
7710do 7987do
7711ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7988ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7712echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7989echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7713echo "configure:7714: checking for $ac_hdr" >&5 7990echo "configure:7991: checking for $ac_hdr" >&5
7714if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7991if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7715 echo $ac_n "(cached) $ac_c" 1>&6 7992 echo $ac_n "(cached) $ac_c" 1>&6
7716else 7993else
7717 cat > conftest.$ac_ext <<EOF 7994 cat > conftest.$ac_ext <<EOF
7718#line 7719 "configure" 7995#line 7996 "configure"
7719#include "confdefs.h" 7996#include "confdefs.h"
7720#include <$ac_hdr> 7997#include <$ac_hdr>
7721EOF 7998EOF
7722ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7999ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7723{ (eval echo configure:7724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8000{ (eval echo configure:8001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7724ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8001ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7725if test -z "$ac_err"; then 8002if test -z "$ac_err"; then
7726 rm -rf conftest* 8003 rm -rf conftest*
@@ -7751,7 +8028,7 @@ fi
7751# Solaris requires -lintl if you want strerror (which calls dgettext) 8028# Solaris requires -lintl if you want strerror (which calls dgettext)
7752# to return localized messages. 8029# to return localized messages.
7753echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 8030echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
7754echo "configure:7755: checking for dgettext in -lintl" >&5 8031echo "configure:8032: checking for dgettext in -lintl" >&5
7755ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 8032ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
7756if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 8033if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7757 echo $ac_n "(cached) $ac_c" 1>&6 8034 echo $ac_n "(cached) $ac_c" 1>&6
@@ -7759,7 +8036,7 @@ else
7759 ac_save_LIBS="$LIBS" 8036 ac_save_LIBS="$LIBS"
7760LIBS="-lintl $LIBS" 8037LIBS="-lintl $LIBS"
7761cat > conftest.$ac_ext <<EOF 8038cat > conftest.$ac_ext <<EOF
7762#line 7763 "configure" 8039#line 8040 "configure"
7763#include "confdefs.h" 8040#include "confdefs.h"
7764/* Override any gcc2 internal prototype to avoid an error. */ 8041/* Override any gcc2 internal prototype to avoid an error. */
7765/* We use char because int might match the return type of a gcc2 8042/* We use char because int might match the return type of a gcc2
@@ -7770,7 +8047,7 @@ int main() {
7770dgettext() 8047dgettext()
7771; return 0; } 8048; return 0; }
7772EOF 8049EOF
7773if { (eval echo configure:7774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8050if { (eval echo configure:8051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7774 rm -rf conftest* 8051 rm -rf conftest*
7775 eval "ac_cv_lib_$ac_lib_var=yes" 8052 eval "ac_cv_lib_$ac_lib_var=yes"
7776else 8053else
@@ -7799,7 +8076,7 @@ fi
7799 8076
7800 8077
7801echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8078echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7802echo "configure:7803: checking whether localtime caches TZ" >&5 8079echo "configure:8080: checking whether localtime caches TZ" >&5
7803if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 8080if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
7804 echo $ac_n "(cached) $ac_c" 1>&6 8081 echo $ac_n "(cached) $ac_c" 1>&6
7805else 8082else
@@ -7809,7 +8086,7 @@ if test "$cross_compiling" = yes; then
7809emacs_cv_localtime_cache=yes 8086emacs_cv_localtime_cache=yes
7810else 8087else
7811 cat > conftest.$ac_ext <<EOF 8088 cat > conftest.$ac_ext <<EOF
7812#line 7813 "configure" 8089#line 8090 "configure"
7813#include "confdefs.h" 8090#include "confdefs.h"
7814#include <time.h> 8091#include <time.h>
7815extern char **environ; 8092extern char **environ;
@@ -7841,7 +8118,7 @@ main()
7841 exit (0); 8118 exit (0);
7842} 8119}
7843EOF 8120EOF
7844if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8121if { (eval echo configure:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7845then 8122then
7846 emacs_cv_localtime_cache=no 8123 emacs_cv_localtime_cache=no
7847else 8124else
@@ -7871,12 +8148,12 @@ if test "x$HAVE_TIMEVAL" = xyes; then
7871 for ac_func in gettimeofday 8148 for ac_func in gettimeofday
7872do 8149do
7873echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8150echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7874echo "configure:7875: checking for $ac_func" >&5 8151echo "configure:8152: checking for $ac_func" >&5
7875if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8152if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7876 echo $ac_n "(cached) $ac_c" 1>&6 8153 echo $ac_n "(cached) $ac_c" 1>&6
7877else 8154else
7878 cat > conftest.$ac_ext <<EOF 8155 cat > conftest.$ac_ext <<EOF
7879#line 7880 "configure" 8156#line 8157 "configure"
7880#include "confdefs.h" 8157#include "confdefs.h"
7881/* System header to define __stub macros and hopefully few prototypes, 8158/* System header to define __stub macros and hopefully few prototypes,
7882 which can conflict with char $ac_func(); below. */ 8159 which can conflict with char $ac_func(); below. */
@@ -7899,7 +8176,7 @@ $ac_func();
7899 8176
7900; return 0; } 8177; return 0; }
7901EOF 8178EOF
7902if { (eval echo configure:7903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8179if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7903 rm -rf conftest* 8180 rm -rf conftest*
7904 eval "ac_cv_func_$ac_func=yes" 8181 eval "ac_cv_func_$ac_func=yes"
7905else 8182else
@@ -7924,12 +8201,12 @@ fi
7924done 8201done
7925 8202
7926 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 8203 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
7927echo "configure:7928: checking whether gettimeofday can accept two arguments" >&5 8204echo "configure:8205: checking whether gettimeofday can accept two arguments" >&5
7928if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 8205if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
7929 echo $ac_n "(cached) $ac_c" 1>&6 8206 echo $ac_n "(cached) $ac_c" 1>&6
7930else 8207else
7931 cat > conftest.$ac_ext <<EOF 8208 cat > conftest.$ac_ext <<EOF
7932#line 7933 "configure" 8209#line 8210 "configure"
7933#include "confdefs.h" 8210#include "confdefs.h"
7934 8211
7935#ifdef TIME_WITH_SYS_TIME 8212#ifdef TIME_WITH_SYS_TIME
@@ -7947,7 +8224,7 @@ struct timeval time;
7947 gettimeofday (&time, 0); 8224 gettimeofday (&time, 0);
7948; return 0; } 8225; return 0; }
7949EOF 8226EOF
7950if { (eval echo configure:7951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8227if { (eval echo configure:8228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7951 rm -rf conftest* 8228 rm -rf conftest*
7952 emacs_cv_gettimeofday_two_arguments=yes 8229 emacs_cv_gettimeofday_two_arguments=yes
7953else 8230else
@@ -7970,25 +8247,25 @@ fi
7970 8247
7971if test "$ac_cv_func_gettimeofday" = yes; then 8248if test "$ac_cv_func_gettimeofday" = yes; then
7972 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 8249 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
7973echo "configure:7974: checking for struct timezone" >&5 8250echo "configure:8251: checking for struct timezone" >&5
7974if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then 8251if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6 8252 echo $ac_n "(cached) $ac_c" 1>&6
7976else 8253else
7977 cat > conftest.$ac_ext <<EOF 8254 cat > conftest.$ac_ext <<EOF
7978#line 7979 "configure" 8255#line 8256 "configure"
7979#include "confdefs.h" 8256#include "confdefs.h"
7980#include <sys/time.h> 8257#include <sys/time.h>
7981int main() { 8258int main() {
7982struct timezone tz; 8259struct timezone tz;
7983; return 0; } 8260; return 0; }
7984EOF 8261EOF
7985if { (eval echo configure:7986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8262if { (eval echo configure:8263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7986 rm -rf conftest* 8263 rm -rf conftest*
7987 if test "$cross_compiling" = yes; then 8264 if test "$cross_compiling" = yes; then
7988 emacs_cv_struct_timezone=yes 8265 emacs_cv_struct_timezone=yes
7989else 8266else
7990 cat > conftest.$ac_ext <<EOF 8267 cat > conftest.$ac_ext <<EOF
7991#line 7992 "configure" 8268#line 8269 "configure"
7992#include "confdefs.h" 8269#include "confdefs.h"
7993 8270
7994#ifdef TIME_WITH_SYS_TIME 8271#ifdef TIME_WITH_SYS_TIME
@@ -8007,7 +8284,7 @@ main () {
8007 exit (gettimeofday (&time, &dummy)); 8284 exit (gettimeofday (&time, &dummy));
8008} 8285}
8009EOF 8286EOF
8010if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8287if { (eval echo configure:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8011then 8288then
8012 emacs_cv_struct_timezone=yes 8289 emacs_cv_struct_timezone=yes
8013else 8290else
@@ -8033,12 +8310,12 @@ fi
8033 8310
8034ok_so_far=yes 8311ok_so_far=yes
8035echo $ac_n "checking for socket""... $ac_c" 1>&6 8312echo $ac_n "checking for socket""... $ac_c" 1>&6
8036echo "configure:8037: checking for socket" >&5 8313echo "configure:8314: checking for socket" >&5
8037if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 8314if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8038 echo $ac_n "(cached) $ac_c" 1>&6 8315 echo $ac_n "(cached) $ac_c" 1>&6
8039else 8316else
8040 cat > conftest.$ac_ext <<EOF 8317 cat > conftest.$ac_ext <<EOF
8041#line 8042 "configure" 8318#line 8319 "configure"
8042#include "confdefs.h" 8319#include "confdefs.h"
8043/* System header to define __stub macros and hopefully few prototypes, 8320/* System header to define __stub macros and hopefully few prototypes,
8044 which can conflict with char socket(); below. */ 8321 which can conflict with char socket(); below. */
@@ -8061,7 +8338,7 @@ socket();
8061 8338
8062; return 0; } 8339; return 0; }
8063EOF 8340EOF
8064if { (eval echo configure:8065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8341if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8065 rm -rf conftest* 8342 rm -rf conftest*
8066 eval "ac_cv_func_socket=yes" 8343 eval "ac_cv_func_socket=yes"
8067else 8344else
@@ -8084,17 +8361,17 @@ fi
8084if test $ok_so_far = yes; then 8361if test $ok_so_far = yes; then
8085 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8362 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8086echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8363echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8087echo "configure:8088: checking for netinet/in.h" >&5 8364echo "configure:8365: checking for netinet/in.h" >&5
8088if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8365if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8089 echo $ac_n "(cached) $ac_c" 1>&6 8366 echo $ac_n "(cached) $ac_c" 1>&6
8090else 8367else
8091 cat > conftest.$ac_ext <<EOF 8368 cat > conftest.$ac_ext <<EOF
8092#line 8093 "configure" 8369#line 8370 "configure"
8093#include "confdefs.h" 8370#include "confdefs.h"
8094#include <netinet/in.h> 8371#include <netinet/in.h>
8095EOF 8372EOF
8096ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8373ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8097{ (eval echo configure:8098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8374{ (eval echo configure:8375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8098ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8375ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8099if test -z "$ac_err"; then 8376if test -z "$ac_err"; then
8100 rm -rf conftest* 8377 rm -rf conftest*
@@ -8120,17 +8397,17 @@ fi
8120if test $ok_so_far = yes; then 8397if test $ok_so_far = yes; then
8121 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8398 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8122echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8399echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8123echo "configure:8124: checking for arpa/inet.h" >&5 8400echo "configure:8401: checking for arpa/inet.h" >&5
8124if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8401if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6 8402 echo $ac_n "(cached) $ac_c" 1>&6
8126else 8403else
8127 cat > conftest.$ac_ext <<EOF 8404 cat > conftest.$ac_ext <<EOF
8128#line 8129 "configure" 8405#line 8406 "configure"
8129#include "confdefs.h" 8406#include "confdefs.h"
8130#include <arpa/inet.h> 8407#include <arpa/inet.h>
8131EOF 8408EOF
8132ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8409ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8133{ (eval echo configure:8134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8410{ (eval echo configure:8411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8134ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8411ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8135if test -z "$ac_err"; then 8412if test -z "$ac_err"; then
8136 rm -rf conftest* 8413 rm -rf conftest*
@@ -8168,7 +8445,7 @@ EOF
8168fi 8445fi
8169 8446
8170echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 8447echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
8171echo "configure:8172: checking whether system supports dynamic ptys" >&5 8448echo "configure:8449: checking whether system supports dynamic ptys" >&5
8172if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 8449if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
8173 echo "$ac_t""yes" 1>&6 8450 echo "$ac_t""yes" 1>&6
8174 cat >> confdefs.h <<\EOF 8451 cat >> confdefs.h <<\EOF
@@ -8180,12 +8457,12 @@ else
8180fi 8457fi
8181 8458
8182echo $ac_n "checking for pid_t""... $ac_c" 1>&6 8459echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8183echo "configure:8184: checking for pid_t" >&5 8460echo "configure:8461: checking for pid_t" >&5
8184if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 8461if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8185 echo $ac_n "(cached) $ac_c" 1>&6 8462 echo $ac_n "(cached) $ac_c" 1>&6
8186else 8463else
8187 cat > conftest.$ac_ext <<EOF 8464 cat > conftest.$ac_ext <<EOF
8188#line 8189 "configure" 8465#line 8466 "configure"
8189#include "confdefs.h" 8466#include "confdefs.h"
8190#include <sys/types.h> 8467#include <sys/types.h>
8191#if STDC_HEADERS 8468#if STDC_HEADERS
@@ -8214,17 +8491,17 @@ fi
8214 8491
8215ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8492ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8216echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8493echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8217echo "configure:8218: checking for vfork.h" >&5 8494echo "configure:8495: checking for vfork.h" >&5
8218if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8495if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8219 echo $ac_n "(cached) $ac_c" 1>&6 8496 echo $ac_n "(cached) $ac_c" 1>&6
8220else 8497else
8221 cat > conftest.$ac_ext <<EOF 8498 cat > conftest.$ac_ext <<EOF
8222#line 8223 "configure" 8499#line 8500 "configure"
8223#include "confdefs.h" 8500#include "confdefs.h"
8224#include <vfork.h> 8501#include <vfork.h>
8225EOF 8502EOF
8226ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8503ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8227{ (eval echo configure:8228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8504{ (eval echo configure:8505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8228ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8505ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8229if test -z "$ac_err"; then 8506if test -z "$ac_err"; then
8230 rm -rf conftest* 8507 rm -rf conftest*
@@ -8249,18 +8526,18 @@ else
8249fi 8526fi
8250 8527
8251echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8528echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8252echo "configure:8253: checking for working vfork" >&5 8529echo "configure:8530: checking for working vfork" >&5
8253if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 8530if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
8254 echo $ac_n "(cached) $ac_c" 1>&6 8531 echo $ac_n "(cached) $ac_c" 1>&6
8255else 8532else
8256 if test "$cross_compiling" = yes; then 8533 if test "$cross_compiling" = yes; then
8257 echo $ac_n "checking for vfork""... $ac_c" 1>&6 8534 echo $ac_n "checking for vfork""... $ac_c" 1>&6
8258echo "configure:8259: checking for vfork" >&5 8535echo "configure:8536: checking for vfork" >&5
8259if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 8536if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8260 echo $ac_n "(cached) $ac_c" 1>&6 8537 echo $ac_n "(cached) $ac_c" 1>&6
8261else 8538else
8262 cat > conftest.$ac_ext <<EOF 8539 cat > conftest.$ac_ext <<EOF
8263#line 8264 "configure" 8540#line 8541 "configure"
8264#include "confdefs.h" 8541#include "confdefs.h"
8265/* System header to define __stub macros and hopefully few prototypes, 8542/* System header to define __stub macros and hopefully few prototypes,
8266 which can conflict with char vfork(); below. */ 8543 which can conflict with char vfork(); below. */
@@ -8283,7 +8560,7 @@ vfork();
8283 8560
8284; return 0; } 8561; return 0; }
8285EOF 8562EOF
8286if { (eval echo configure:8287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8563if { (eval echo configure:8564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8287 rm -rf conftest* 8564 rm -rf conftest*
8288 eval "ac_cv_func_vfork=yes" 8565 eval "ac_cv_func_vfork=yes"
8289else 8566else
@@ -8305,7 +8582,7 @@ fi
8305ac_cv_func_vfork_works=$ac_cv_func_vfork 8582ac_cv_func_vfork_works=$ac_cv_func_vfork
8306else 8583else
8307 cat > conftest.$ac_ext <<EOF 8584 cat > conftest.$ac_ext <<EOF
8308#line 8309 "configure" 8585#line 8586 "configure"
8309#include "confdefs.h" 8586#include "confdefs.h"
8310/* Thanks to Paul Eggert for this test. */ 8587/* Thanks to Paul Eggert for this test. */
8311#include <stdio.h> 8588#include <stdio.h>
@@ -8400,7 +8677,7 @@ main() {
8400 } 8677 }
8401} 8678}
8402EOF 8679EOF
8403if { (eval echo configure:8404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8680if { (eval echo configure:8681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8404then 8681then
8405 ac_cv_func_vfork_works=yes 8682 ac_cv_func_vfork_works=yes
8406else 8683else
@@ -8422,281 +8699,15 @@ EOF
8422 8699
8423fi 8700fi
8424 8701
8425for ac_hdr in unistd.h
8426do
8427ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8428echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8429echo "configure:8430: checking for $ac_hdr" >&5
8430if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8431 echo $ac_n "(cached) $ac_c" 1>&6
8432else
8433 cat > conftest.$ac_ext <<EOF
8434#line 8435 "configure"
8435#include "confdefs.h"
8436#include <$ac_hdr>
8437EOF
8438ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8439{ (eval echo configure:8440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8440ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8441if test -z "$ac_err"; then
8442 rm -rf conftest*
8443 eval "ac_cv_header_$ac_safe=yes"
8444else
8445 echo "$ac_err" >&5
8446 echo "configure: failed program was:" >&5
8447 cat conftest.$ac_ext >&5
8448 rm -rf conftest*
8449 eval "ac_cv_header_$ac_safe=no"
8450fi
8451rm -f conftest*
8452fi
8453if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8454 echo "$ac_t""yes" 1>&6
8455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8456 cat >> confdefs.h <<EOF
8457#define $ac_tr_hdr 1
8458EOF
8459
8460else
8461 echo "$ac_t""no" 1>&6
8462fi
8463done
8464
8465for ac_func in getpagesize
8466do
8467echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8468echo "configure:8469: checking for $ac_func" >&5
8469if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8470 echo $ac_n "(cached) $ac_c" 1>&6
8471else
8472 cat > conftest.$ac_ext <<EOF
8473#line 8474 "configure"
8474#include "confdefs.h"
8475/* System header to define __stub macros and hopefully few prototypes,
8476 which can conflict with char $ac_func(); below. */
8477#include <assert.h>
8478/* Override any gcc2 internal prototype to avoid an error. */
8479/* We use char because int might match the return type of a gcc2
8480 builtin and then its argument prototype would still apply. */
8481char $ac_func();
8482
8483int main() {
8484
8485/* The GNU C library defines this for functions which it implements
8486 to always fail with ENOSYS. Some functions are actually named
8487 something starting with __ and the normal name is an alias. */
8488#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8489choke me
8490#else
8491$ac_func();
8492#endif
8493
8494; return 0; }
8495EOF
8496if { (eval echo configure:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8497 rm -rf conftest*
8498 eval "ac_cv_func_$ac_func=yes"
8499else
8500 echo "configure: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8502 rm -rf conftest*
8503 eval "ac_cv_func_$ac_func=no"
8504fi
8505rm -f conftest*
8506fi
8507
8508if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8509 echo "$ac_t""yes" 1>&6
8510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8511 cat >> confdefs.h <<EOF
8512#define $ac_tr_func 1
8513EOF
8514
8515else
8516 echo "$ac_t""no" 1>&6
8517fi
8518done
8519
8520echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8521echo "configure:8522: checking for working mmap" >&5
8522if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
8524else
8525 if test "$cross_compiling" = yes; then
8526 ac_cv_func_mmap_fixed_mapped=no
8527else
8528 cat > conftest.$ac_ext <<EOF
8529#line 8530 "configure"
8530#include "confdefs.h"
8531
8532/* Thanks to Mike Haertel and Jim Avera for this test.
8533 Here is a matrix of mmap possibilities:
8534 mmap private not fixed
8535 mmap private fixed at somewhere currently unmapped
8536 mmap private fixed at somewhere already mapped
8537 mmap shared not fixed
8538 mmap shared fixed at somewhere currently unmapped
8539 mmap shared fixed at somewhere already mapped
8540 For private mappings, we should verify that changes cannot be read()
8541 back from the file, nor mmap's back from the file at a different
8542 address. (There have been systems where private was not correctly
8543 implemented like the infamous i386 svr4.0, and systems where the
8544 VM page cache was not coherent with the filesystem buffer cache
8545 like early versions of FreeBSD and possibly contemporary NetBSD.)
8546 For shared mappings, we should conversely verify that changes get
8547 propogated back to all the places they're supposed to be.
8548
8549 Grep wants private fixed already mapped.
8550 The main things grep needs to know about mmap are:
8551 * does it exist and is it safe to write into the mmap'd area
8552 * how to use it (BSD variants) */
8553#include <sys/types.h>
8554#include <fcntl.h>
8555#include <sys/mman.h>
8556
8557/* This mess was copied from the GNU getpagesize.h. */
8558#ifndef HAVE_GETPAGESIZE
8559# ifdef HAVE_UNISTD_H
8560# include <unistd.h>
8561# endif
8562
8563/* Assume that all systems that can run configure have sys/param.h. */
8564# ifndef HAVE_SYS_PARAM_H
8565# define HAVE_SYS_PARAM_H 1
8566# endif
8567
8568# ifdef _SC_PAGESIZE
8569# define getpagesize() sysconf(_SC_PAGESIZE)
8570# else /* no _SC_PAGESIZE */
8571# ifdef HAVE_SYS_PARAM_H
8572# include <sys/param.h>
8573# ifdef EXEC_PAGESIZE
8574# define getpagesize() EXEC_PAGESIZE
8575# else /* no EXEC_PAGESIZE */
8576# ifdef NBPG
8577# define getpagesize() NBPG * CLSIZE
8578# ifndef CLSIZE
8579# define CLSIZE 1
8580# endif /* no CLSIZE */
8581# else /* no NBPG */
8582# ifdef NBPC
8583# define getpagesize() NBPC
8584# else /* no NBPC */
8585# ifdef PAGESIZE
8586# define getpagesize() PAGESIZE
8587# endif /* PAGESIZE */
8588# endif /* no NBPC */
8589# endif /* no NBPG */
8590# endif /* no EXEC_PAGESIZE */
8591# else /* no HAVE_SYS_PARAM_H */
8592# define getpagesize() 8192 /* punt totally */
8593# endif /* no HAVE_SYS_PARAM_H */
8594# endif /* no _SC_PAGESIZE */
8595
8596#endif /* no HAVE_GETPAGESIZE */
8597
8598#ifdef __cplusplus
8599extern "C" { void *malloc(unsigned); }
8600#else
8601char *malloc();
8602#endif
8603
8604int
8605main()
8606{
8607 char *data, *data2, *data3;
8608 int i, pagesize;
8609 int fd;
8610
8611 pagesize = getpagesize();
8612
8613 /*
8614 * First, make a file with some known garbage in it.
8615 */
8616 data = malloc(pagesize);
8617 if (!data)
8618 exit(1);
8619 for (i = 0; i < pagesize; ++i)
8620 *(data + i) = rand();
8621 umask(0);
8622 fd = creat("conftestmmap", 0600);
8623 if (fd < 0)
8624 exit(1);
8625 if (write(fd, data, pagesize) != pagesize)
8626 exit(1);
8627 close(fd);
8628
8629 /*
8630 * Next, try to mmap the file at a fixed address which
8631 * already has something else allocated at it. If we can,
8632 * also make sure that we see the same garbage.
8633 */
8634 fd = open("conftestmmap", O_RDWR);
8635 if (fd < 0)
8636 exit(1);
8637 data2 = malloc(2 * pagesize);
8638 if (!data2)
8639 exit(1);
8640 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8641 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8642 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8643 exit(1);
8644 for (i = 0; i < pagesize; ++i)
8645 if (*(data + i) != *(data2 + i))
8646 exit(1);
8647
8648 /*
8649 * Finally, make sure that changes to the mapped area
8650 * do not percolate back to the file as seen by read().
8651 * (This is a bug on some variants of i386 svr4.0.)
8652 */
8653 for (i = 0; i < pagesize; ++i)
8654 *(data2 + i) = *(data2 + i) + 1;
8655 data3 = malloc(pagesize);
8656 if (!data3)
8657 exit(1);
8658 if (read(fd, data3, pagesize) != pagesize)
8659 exit(1);
8660 for (i = 0; i < pagesize; ++i)
8661 if (*(data + i) != *(data3 + i))
8662 exit(1);
8663 close(fd);
8664 unlink("conftestmmap");
8665 exit(0);
8666}
8667
8668EOF
8669if { (eval echo configure:8670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8670then
8671 ac_cv_func_mmap_fixed_mapped=yes
8672else
8673 echo "configure: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8675 rm -fr conftest*
8676 ac_cv_func_mmap_fixed_mapped=no
8677fi
8678rm -fr conftest*
8679fi
8680
8681fi
8682
8683echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8684if test $ac_cv_func_mmap_fixed_mapped = yes; then
8685 cat >> confdefs.h <<\EOF
8686#define HAVE_MMAP 1
8687EOF
8688
8689fi
8690
8691 8702
8692# Fixme: This should be replaced when we have autoconf 2.14. 8703# Fixme: This should be replaced when we have autoconf 2.14.
8693echo $ac_n "checking for size_t""... $ac_c" 1>&6 8704echo $ac_n "checking for size_t""... $ac_c" 1>&6
8694echo "configure:8695: checking for size_t" >&5 8705echo "configure:8706: checking for size_t" >&5
8695if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 8706if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8696 echo $ac_n "(cached) $ac_c" 1>&6 8707 echo $ac_n "(cached) $ac_c" 1>&6
8697else 8708else
8698 cat > conftest.$ac_ext <<EOF 8709 cat > conftest.$ac_ext <<EOF
8699#line 8700 "configure" 8710#line 8711 "configure"
8700#include "confdefs.h" 8711#include "confdefs.h"
8701#include <sys/types.h> 8712#include <sys/types.h>
8702#if STDC_HEADERS 8713#if STDC_HEADERS
@@ -8853,7 +8864,8 @@ Configured for \`${canonical}'.
8853 \`${opsysfile}' and \`${machfile}' 8864 \`${opsysfile}' and \`${machfile}'
8854 What compiler should emacs be built with? ${CC} ${CFLAGS} 8865 What compiler should emacs be built with? ${CC} ${CFLAGS}
8855 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} 8866 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
8856 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} 8867 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
8868 Should Emacs use mmap for the relocating allocator? $rel_alloc_mmap
8857 What window system should Emacs use? ${window_system} 8869 What window system should Emacs use? ${window_system}
8858 What toolkit should Emacs use? ${USE_X_TOOLKIT}" 8870 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
8859 8871
diff --git a/src/ChangeLog b/src/ChangeLog
index fbe13c0a37f..c13c862a620 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12000-09-06 Gerd Moellmann <gerd@gnu.org> 12000-09-06 Gerd Moellmann <gerd@gnu.org>
2 2
3 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
4 buffer's text buffer is null, map new memory.
5
3 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of 6 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
4 POINTER_TYPE and size_t. 7 POINTER_TYPE and size_t.
5 (struct mmap_region) [REL_ALLOC_MMAP]: New structure. 8 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.