comparison configure @ 34431:de5d85f5717b

*** empty log message ***
author Gerd Moellmann <gerd@gnu.org>
date Mon, 11 Dec 2000 12:15:07 +0000
parents fd29993d1f00
children d39dd1c5b93f
comparison
equal deleted inserted replaced
34430:7a1ddacf0683 34431:de5d85f5717b
2399 CPPFLAGS="${OVERRIDE_CPPFLAGS}" 2399 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
2400 else 2400 else
2401 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" 2401 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
2402 fi 2402 fi
2403 2403
2404 # Check whether --enable-largefile or --disable-largefile was given. 2404
2405 # Check whether --enable-largefile or --disable-largefile was given.
2405 if test "${enable_largefile+set}" = set; then 2406 if test "${enable_largefile+set}" = set; then
2406 enableval="$enable_largefile" 2407 enableval="$enable_largefile"
2407 : 2408 :
2408 fi 2409 fi
2409 2410
2410 if test "$enable_largefile" != no; then 2411 if test "$enable_largefile" != no; then
2411 2412
2412 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 2413 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
2413 echo "configure:2414: checking for special C compiler options needed for large files" >&5 2414 echo "configure:2415: checking for special C compiler options needed for large files" >&5
2414 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then 2415 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6 2416 echo $ac_n "(cached) $ac_c" 1>&6
2416 else 2417 else
2417 ac_cv_sys_largefile_CC=no 2418 ac_cv_sys_largefile_CC=no
2418 if test "$GCC" != yes; then 2419 if test "$GCC" != yes; then
2419 # IRIX 6.2 and later do not support large files by default, 2420 # IRIX 6.2 and later do not support large files by default,
2420 # so use the C compiler's -n32 option if that helps. 2421 # so use the C compiler's -n32 option if that helps.
2421 cat > conftest.$ac_ext <<EOF 2422 cat > conftest.$ac_ext <<EOF
2422 #line 2423 "configure" 2423 #line 2424 "configure"
2423 #include "confdefs.h" 2424 #include "confdefs.h"
2424 #include <sys/types.h> 2425 #include <sys/types.h>
2425 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2426 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2426 2427
2427 int main() { 2428 int main() {
2428 2429
2429 ; return 0; } 2430 ; return 0; }
2430 EOF 2431 EOF
2431 if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2432 if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2432 : 2433 :
2433 else 2434 else
2434 echo "configure: failed program was:" >&5 2435 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5 2436 cat conftest.$ac_ext >&5
2436 rm -rf conftest* 2437 rm -rf conftest*
2437 ac_save_CC="$CC" 2438 ac_save_CC="$CC"
2438 CC="$CC -n32" 2439 CC="$CC -n32"
2439 cat > conftest.$ac_ext <<EOF 2440 cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure" 2441 #line 2442 "configure"
2441 #include "confdefs.h" 2442 #include "confdefs.h"
2442 #include <sys/types.h> 2443 #include <sys/types.h>
2443 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2444 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2444 2445
2445 int main() { 2446 int main() {
2446 2447
2447 ; return 0; } 2448 ; return 0; }
2448 EOF 2449 EOF
2449 if { (eval echo configure:2450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2450 if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2450 rm -rf conftest* 2451 rm -rf conftest*
2451 ac_cv_sys_largefile_CC=' -n32' 2452 ac_cv_sys_largefile_CC=' -n32'
2452 else 2453 else
2453 echo "configure: failed program was:" >&5 2454 echo "configure: failed program was:" >&5
2454 cat conftest.$ac_ext >&5 2455 cat conftest.$ac_ext >&5
2464 if test "$ac_cv_sys_largefile_CC" != no; then 2465 if test "$ac_cv_sys_largefile_CC" != no; then
2465 CC="$CC$ac_cv_sys_largefile_CC" 2466 CC="$CC$ac_cv_sys_largefile_CC"
2466 fi 2467 fi
2467 2468
2468 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 2469 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
2469 echo "configure:2470: checking for _FILE_OFFSET_BITS value needed for large files" >&5 2470 echo "configure:2471: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2470 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then 2471 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6 2472 echo $ac_n "(cached) $ac_c" 1>&6
2472 else 2473 else
2473 ac_cv_sys_file_offset_bits=no 2474 ac_cv_sys_file_offset_bits=no
2474 cat > conftest.$ac_ext <<EOF 2475 cat > conftest.$ac_ext <<EOF
2475 #line 2476 "configure" 2476 #line 2477 "configure"
2476 #include "confdefs.h" 2477 #include "confdefs.h"
2477 #include <sys/types.h> 2478 #include <sys/types.h>
2478 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2479 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2479 2480
2480
2481
2482 int main() { 2481 int main() {
2483 2482
2484 ; return 0; } 2483 ; return 0; }
2485 EOF 2484 EOF
2486 if { (eval echo configure:2487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2485 if { (eval echo configure:2486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2487 : 2486 :
2488 else 2487 else
2489 echo "configure: failed program was:" >&5 2488 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5 2489 cat conftest.$ac_ext >&5
2491 rm -rf conftest* 2490 rm -rf conftest*
2492 cat > conftest.$ac_ext <<EOF 2491 cat > conftest.$ac_ext <<EOF
2493 #line 2494 "configure" 2492 #line 2493 "configure"
2494 #include "confdefs.h" 2493 #include "confdefs.h"
2495 #define _FILE_OFFSET_BITS 64 2494 #define _FILE_OFFSET_BITS 64
2496 #include <sys/types.h> 2495 #include <sys/types.h>
2497 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 2496 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2498 2497
2499
2500 2498
2501 int main() { 2499 int main() {
2502 2500
2503 ; return 0; } 2501 ; return 0; }
2504 EOF 2502 EOF
2505 if { (eval echo configure:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2503 if { (eval echo configure:2504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2506 rm -rf conftest* 2504 rm -rf conftest*
2507 ac_cv_sys_file_offset_bits=64 2505 ac_cv_sys_file_offset_bits=64
2508 else 2506 else
2509 echo "configure: failed program was:" >&5 2507 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5 2508 cat conftest.$ac_ext >&5
2519 cat >> confdefs.h <<EOF 2517 cat >> confdefs.h <<EOF
2520 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 2518 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2521 EOF 2519 EOF
2522 2520
2523 fi 2521 fi
2524 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 2522 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
2525 echo "configure:2526: checking for _LARGEFILE_SOURCE value needed for large files" >&5 2523 echo "configure:2524: checking for _LARGE_FILES value needed for large files" >&5
2526 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then 2524 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6 2525 echo $ac_n "(cached) $ac_c" 1>&6
2528 else 2526 else
2529 ac_cv_sys_largefile_source=no 2527 ac_cv_sys_large_files=no
2530 cat > conftest.$ac_ext <<EOF 2528 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure" 2529 #line 2530 "configure"
2532 #include "confdefs.h" 2530 #include "confdefs.h"
2533 #include <sys/types.h> 2531
2534 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2535
2536 #include <stdio.h>
2537
2538 int main() { 2532 int main() {
2539 return !ftello; 2533
2540 ; return 0; } 2534 ; return 0; }
2541 EOF 2535 EOF
2542 if { (eval echo configure:2543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2536 if { (eval echo configure:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2543 : 2537 :
2544 else 2538 else
2545 echo "configure: failed program was:" >&5 2539 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5 2540 cat conftest.$ac_ext >&5
2547 rm -rf conftest* 2541 rm -rf conftest*
2548 cat > conftest.$ac_ext <<EOF 2542 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure" 2543 #line 2544 "configure"
2550 #include "confdefs.h" 2544 #include "confdefs.h"
2551 #define _LARGEFILE_SOURCE 1 2545 #define _LARGE_FILES 1
2552 #include <sys/types.h> 2546
2553 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2554
2555 #include <stdio.h>
2556 2547
2557 int main() { 2548 int main() {
2558 return !ftello; 2549
2559 ; return 0; } 2550 ; return 0; }
2560 EOF 2551 EOF
2561 if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2552 if { (eval echo configure:2553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2562 rm -rf conftest*
2563 ac_cv_sys_largefile_source=1
2564 else
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 fi
2568 rm -f conftest*
2569 fi
2570 rm -f conftest*
2571 fi
2572
2573 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
2574 if test "$ac_cv_sys_largefile_source" != no; then
2575 cat >> confdefs.h <<EOF
2576 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
2577 EOF
2578
2579 fi
2580 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
2581 echo "configure:2582: checking for _LARGE_FILES value needed for large files" >&5
2582 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2584 else
2585 ac_cv_sys_large_files=no
2586 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 #include <sys/types.h>
2590 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2591
2592
2593
2594 int main() {
2595
2596 ; return 0; }
2597 EOF
2598 if { (eval echo configure:2599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2599 :
2600 else
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2603 rm -rf conftest*
2604 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2607 #define _LARGE_FILES 1
2608 #include <sys/types.h>
2609 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2610
2611
2612
2613 int main() {
2614
2615 ; return 0; }
2616 EOF
2617 if { (eval echo configure:2618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2618 rm -rf conftest* 2553 rm -rf conftest*
2619 ac_cv_sys_large_files=1 2554 ac_cv_sys_large_files=1
2620 else 2555 else
2621 echo "configure: failed program was:" >&5 2556 echo "configure: failed program was:" >&5
2622 cat conftest.$ac_ext >&5 2557 cat conftest.$ac_ext >&5
2628 2563
2629 echo "$ac_t""$ac_cv_sys_large_files" 1>&6 2564 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
2630 if test "$ac_cv_sys_large_files" != no; then 2565 if test "$ac_cv_sys_large_files" != no; then
2631 cat >> confdefs.h <<EOF 2566 cat >> confdefs.h <<EOF
2632 #define _LARGE_FILES $ac_cv_sys_large_files 2567 #define _LARGE_FILES $ac_cv_sys_large_files
2633 EOF
2634
2635 fi
2636 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6
2637 echo "configure:2638: checking for _XOPEN_SOURCE value needed for large files" >&5
2638 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2640 else
2641 ac_cv_sys_xopen_source=no
2642 cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2645 #include <sys/types.h>
2646 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2647
2648 #include <stdio.h>
2649
2650 int main() {
2651 return !ftello;
2652 ; return 0; }
2653 EOF
2654 if { (eval echo configure:2655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2655 :
2656 else
2657 echo "configure: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2659 rm -rf conftest*
2660 cat > conftest.$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2663 #define _XOPEN_SOURCE 500
2664 #include <sys/types.h>
2665 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2666
2667 #include <stdio.h>
2668
2669 int main() {
2670 return !ftello;
2671 ; return 0; }
2672 EOF
2673 if { (eval echo configure:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2674 rm -rf conftest*
2675 ac_cv_sys_xopen_source=500
2676 else
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2679 fi
2680 rm -f conftest*
2681 fi
2682 rm -f conftest*
2683 fi
2684
2685 echo "$ac_t""$ac_cv_sys_xopen_source" 1>&6
2686 if test "$ac_cv_sys_xopen_source" != no; then
2687 cat >> confdefs.h <<EOF
2688 #define _XOPEN_SOURCE $ac_cv_sys_xopen_source
2689 EOF 2568 EOF
2690 2569
2691 fi 2570 fi
2692 fi 2571 fi
2693 2572
2695 # Sound support for GNU/Linux and the free BSDs. 2574 # Sound support for GNU/Linux and the free BSDs.
2696 for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h 2575 for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h
2697 do 2576 do
2698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_hdr" >&5 2579 echo "configure:2580: checking for $ac_hdr" >&5
2701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6 2581 echo $ac_n "(cached) $ac_c" 1>&6
2703 else 2582 else
2704 cat > conftest.$ac_ext <<EOF 2583 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure" 2584 #line 2585 "configure"
2706 #include "confdefs.h" 2585 #include "confdefs.h"
2707 #include <$ac_hdr> 2586 #include <$ac_hdr>
2708 EOF 2587 EOF
2709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2710 { (eval echo configure:2711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2589 { (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2712 if test -z "$ac_err"; then 2591 if test -z "$ac_err"; then
2713 rm -rf conftest* 2592 rm -rf conftest*
2714 eval "ac_cv_header_$ac_safe=yes" 2593 eval "ac_cv_header_$ac_safe=yes"
2715 else 2594 else
2733 fi 2612 fi
2734 done 2613 done
2735 2614
2736 # Emulation library used on NetBSD. 2615 # Emulation library used on NetBSD.
2737 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 2616 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2738 echo "configure:2739: checking for _oss_ioctl in -lossaudio" >&5 2617 echo "configure:2618: checking for _oss_ioctl in -lossaudio" >&5
2739 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` 2618 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6 2620 echo $ac_n "(cached) $ac_c" 1>&6
2742 else 2621 else
2743 ac_save_LIBS="$LIBS" 2622 ac_save_LIBS="$LIBS"
2744 LIBS="-lossaudio $LIBS" 2623 LIBS="-lossaudio $LIBS"
2745 cat > conftest.$ac_ext <<EOF 2624 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure" 2625 #line 2626 "configure"
2747 #include "confdefs.h" 2626 #include "confdefs.h"
2748 /* Override any gcc2 internal prototype to avoid an error. */ 2627 /* Override any gcc2 internal prototype to avoid an error. */
2749 /* We use char because int might match the return type of a gcc2 2628 /* We use char because int might match the return type of a gcc2
2750 builtin and then its argument prototype would still apply. */ 2629 builtin and then its argument prototype would still apply. */
2751 char _oss_ioctl(); 2630 char _oss_ioctl();
2752 2631
2753 int main() { 2632 int main() {
2754 _oss_ioctl() 2633 _oss_ioctl()
2755 ; return 0; } 2634 ; return 0; }
2756 EOF 2635 EOF
2757 if { (eval echo configure:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2636 if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2758 rm -rf conftest* 2637 rm -rf conftest*
2759 eval "ac_cv_lib_$ac_lib_var=yes" 2638 eval "ac_cv_lib_$ac_lib_var=yes"
2760 else 2639 else
2761 echo "configure: failed program was:" >&5 2640 echo "configure: failed program was:" >&5
2762 cat conftest.$ac_ext >&5 2641 cat conftest.$ac_ext >&5
2781 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 2660 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
2782 termcap.h stdio_ext.h fcntl.h term.h strings.h 2661 termcap.h stdio_ext.h fcntl.h term.h strings.h
2783 do 2662 do
2784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2786 echo "configure:2787: checking for $ac_hdr" >&5 2665 echo "configure:2666: checking for $ac_hdr" >&5
2787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6 2667 echo $ac_n "(cached) $ac_c" 1>&6
2789 else 2668 else
2790 cat > conftest.$ac_ext <<EOF 2669 cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure" 2670 #line 2671 "configure"
2792 #include "confdefs.h" 2671 #include "confdefs.h"
2793 #include <$ac_hdr> 2672 #include <$ac_hdr>
2794 EOF 2673 EOF
2795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2796 { (eval echo configure:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2675 { (eval echo configure:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2798 if test -z "$ac_err"; then 2677 if test -z "$ac_err"; then
2799 rm -rf conftest* 2678 rm -rf conftest*
2800 eval "ac_cv_header_$ac_safe=yes" 2679 eval "ac_cv_header_$ac_safe=yes"
2801 else 2680 else
2818 echo "$ac_t""no" 1>&6 2697 echo "$ac_t""no" 1>&6
2819 fi 2698 fi
2820 done 2699 done
2821 2700
2822 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2701 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2823 echo "configure:2824: checking for ANSI C header files" >&5 2702 echo "configure:2703: checking for ANSI C header files" >&5
2824 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2703 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6 2704 echo $ac_n "(cached) $ac_c" 1>&6
2826 else 2705 else
2827 cat > conftest.$ac_ext <<EOF 2706 cat > conftest.$ac_ext <<EOF
2828 #line 2829 "configure" 2707 #line 2708 "configure"
2829 #include "confdefs.h" 2708 #include "confdefs.h"
2830 #include <stdlib.h> 2709 #include <stdlib.h>
2831 #include <stdarg.h> 2710 #include <stdarg.h>
2832 #include <string.h> 2711 #include <string.h>
2833 #include <float.h> 2712 #include <float.h>
2834 EOF 2713 EOF
2835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2836 { (eval echo configure:2837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2715 { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2838 if test -z "$ac_err"; then 2717 if test -z "$ac_err"; then
2839 rm -rf conftest* 2718 rm -rf conftest*
2840 ac_cv_header_stdc=yes 2719 ac_cv_header_stdc=yes
2841 else 2720 else
2848 rm -f conftest* 2727 rm -f conftest*
2849 2728
2850 if test $ac_cv_header_stdc = yes; then 2729 if test $ac_cv_header_stdc = yes; then
2851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2852 cat > conftest.$ac_ext <<EOF 2731 cat > conftest.$ac_ext <<EOF
2853 #line 2854 "configure" 2732 #line 2733 "configure"
2854 #include "confdefs.h" 2733 #include "confdefs.h"
2855 #include <string.h> 2734 #include <string.h>
2856 EOF 2735 EOF
2857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2858 egrep "memchr" >/dev/null 2>&1; then 2737 egrep "memchr" >/dev/null 2>&1; then
2866 fi 2745 fi
2867 2746
2868 if test $ac_cv_header_stdc = yes; then 2747 if test $ac_cv_header_stdc = yes; then
2869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2870 cat > conftest.$ac_ext <<EOF 2749 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure" 2750 #line 2751 "configure"
2872 #include "confdefs.h" 2751 #include "confdefs.h"
2873 #include <stdlib.h> 2752 #include <stdlib.h>
2874 EOF 2753 EOF
2875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2876 egrep "free" >/dev/null 2>&1; then 2755 egrep "free" >/dev/null 2>&1; then
2887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2888 if test "$cross_compiling" = yes; then 2767 if test "$cross_compiling" = yes; then
2889 : 2768 :
2890 else 2769 else
2891 cat > conftest.$ac_ext <<EOF 2770 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure" 2771 #line 2772 "configure"
2893 #include "confdefs.h" 2772 #include "confdefs.h"
2894 #include <ctype.h> 2773 #include <ctype.h>
2895 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2774 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2896 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2775 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2898 int main () { int i; for (i = 0; i < 256; i++) 2777 int main () { int i; for (i = 0; i < 256; i++)
2899 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2778 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2900 exit (0); } 2779 exit (0); }
2901 2780
2902 EOF 2781 EOF
2903 if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2782 if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2904 then 2783 then
2905 : 2784 :
2906 else 2785 else
2907 echo "configure: failed program was:" >&5 2786 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5 2787 cat conftest.$ac_ext >&5
2922 EOF 2801 EOF
2923 2802
2924 fi 2803 fi
2925 2804
2926 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2805 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2927 echo "configure:2928: checking whether time.h and sys/time.h may both be included" >&5 2806 echo "configure:2807: checking whether time.h and sys/time.h may both be included" >&5
2928 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2807 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6 2808 echo $ac_n "(cached) $ac_c" 1>&6
2930 else 2809 else
2931 cat > conftest.$ac_ext <<EOF 2810 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure" 2811 #line 2812 "configure"
2933 #include "confdefs.h" 2812 #include "confdefs.h"
2934 #include <sys/types.h> 2813 #include <sys/types.h>
2935 #include <sys/time.h> 2814 #include <sys/time.h>
2936 #include <time.h> 2815 #include <time.h>
2937 int main() { 2816 int main() {
2938 struct tm *tp; 2817 struct tm *tp;
2939 ; return 0; } 2818 ; return 0; }
2940 EOF 2819 EOF
2941 if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2820 if { (eval echo configure:2821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2942 rm -rf conftest* 2821 rm -rf conftest*
2943 ac_cv_header_time=yes 2822 ac_cv_header_time=yes
2944 else 2823 else
2945 echo "configure: failed program was:" >&5 2824 echo "configure: failed program was:" >&5
2946 cat conftest.$ac_ext >&5 2825 cat conftest.$ac_ext >&5
2957 EOF 2836 EOF
2958 2837
2959 fi 2838 fi
2960 2839
2961 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2840 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2962 echo "configure:2963: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2841 echo "configure:2842: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2963 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2842 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6 2843 echo $ac_n "(cached) $ac_c" 1>&6
2965 else 2844 else
2966 cat > conftest.$ac_ext <<EOF 2845 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure" 2846 #line 2847 "configure"
2968 #include "confdefs.h" 2847 #include "confdefs.h"
2969 #include <sys/types.h> 2848 #include <sys/types.h>
2970 #include <signal.h> 2849 #include <signal.h>
2971 /* NetBSD declares sys_siglist in unistd.h. */ 2850 /* NetBSD declares sys_siglist in unistd.h. */
2972 #ifdef HAVE_UNISTD_H 2851 #ifdef HAVE_UNISTD_H
2974 #endif 2853 #endif
2975 int main() { 2854 int main() {
2976 char *msg = *(sys_siglist + 1); 2855 char *msg = *(sys_siglist + 1);
2977 ; return 0; } 2856 ; return 0; }
2978 EOF 2857 EOF
2979 if { (eval echo configure:2980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2858 if { (eval echo configure:2859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2980 rm -rf conftest* 2859 rm -rf conftest*
2981 ac_cv_decl_sys_siglist=yes 2860 ac_cv_decl_sys_siglist=yes
2982 else 2861 else
2983 echo "configure: failed program was:" >&5 2862 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5 2863 cat conftest.$ac_ext >&5
2995 EOF 2874 EOF
2996 2875
2997 fi 2876 fi
2998 2877
2999 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2878 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3000 echo "configure:3001: checking for sys/wait.h that is POSIX.1 compatible" >&5 2879 echo "configure:2880: checking for sys/wait.h that is POSIX.1 compatible" >&5
3001 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 2880 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6 2881 echo $ac_n "(cached) $ac_c" 1>&6
3003 else 2882 else
3004 cat > conftest.$ac_ext <<EOF 2883 cat > conftest.$ac_ext <<EOF
3005 #line 3006 "configure" 2884 #line 2885 "configure"
3006 #include "confdefs.h" 2885 #include "confdefs.h"
3007 #include <sys/types.h> 2886 #include <sys/types.h>
3008 #include <sys/wait.h> 2887 #include <sys/wait.h>
3009 #ifndef WEXITSTATUS 2888 #ifndef WEXITSTATUS
3010 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2889 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3016 int s; 2895 int s;
3017 wait (&s); 2896 wait (&s);
3018 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2897 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3019 ; return 0; } 2898 ; return 0; }
3020 EOF 2899 EOF
3021 if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2900 if { (eval echo configure:2901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3022 rm -rf conftest* 2901 rm -rf conftest*
3023 ac_cv_header_sys_wait_h=yes 2902 ac_cv_header_sys_wait_h=yes
3024 else 2903 else
3025 echo "configure: failed program was:" >&5 2904 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5 2905 cat conftest.$ac_ext >&5
3038 2917
3039 fi 2918 fi
3040 2919
3041 2920
3042 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2921 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3043 echo "configure:3044: checking for struct utimbuf" >&5 2922 echo "configure:2923: checking for struct utimbuf" >&5
3044 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 2923 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6 2924 echo $ac_n "(cached) $ac_c" 1>&6
3046 else 2925 else
3047 cat > conftest.$ac_ext <<EOF 2926 cat > conftest.$ac_ext <<EOF
3048 #line 3049 "configure" 2927 #line 2928 "configure"
3049 #include "confdefs.h" 2928 #include "confdefs.h"
3050 #ifdef TIME_WITH_SYS_TIME 2929 #ifdef TIME_WITH_SYS_TIME
3051 #include <sys/time.h> 2930 #include <sys/time.h>
3052 #include <time.h> 2931 #include <time.h>
3053 #else 2932 #else
3062 #endif 2941 #endif
3063 int main() { 2942 int main() {
3064 static struct utimbuf x; x.actime = x.modtime; 2943 static struct utimbuf x; x.actime = x.modtime;
3065 ; return 0; } 2944 ; return 0; }
3066 EOF 2945 EOF
3067 if { (eval echo configure:3068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2946 if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3068 rm -rf conftest* 2947 rm -rf conftest*
3069 emacs_cv_struct_utimbuf=yes 2948 emacs_cv_struct_utimbuf=yes
3070 else 2949 else
3071 echo "configure: failed program was:" >&5 2950 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5 2951 cat conftest.$ac_ext >&5
3083 EOF 2962 EOF
3084 2963
3085 fi 2964 fi
3086 2965
3087 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2966 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3088 echo "configure:3089: checking return type of signal handlers" >&5 2967 echo "configure:2968: checking return type of signal handlers" >&5
3089 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2968 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6 2969 echo $ac_n "(cached) $ac_c" 1>&6
3091 else 2970 else
3092 cat > conftest.$ac_ext <<EOF 2971 cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure" 2972 #line 2973 "configure"
3094 #include "confdefs.h" 2973 #include "confdefs.h"
3095 #include <sys/types.h> 2974 #include <sys/types.h>
3096 #include <signal.h> 2975 #include <signal.h>
3097 #ifdef signal 2976 #ifdef signal
3098 #undef signal 2977 #undef signal
3105 2984
3106 int main() { 2985 int main() {
3107 int i; 2986 int i;
3108 ; return 0; } 2987 ; return 0; }
3109 EOF 2988 EOF
3110 if { (eval echo configure:3111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2989 if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3111 rm -rf conftest* 2990 rm -rf conftest*
3112 ac_cv_type_signal=void 2991 ac_cv_type_signal=void
3113 else 2992 else
3114 echo "configure: failed program was:" >&5 2993 echo "configure: failed program was:" >&5
3115 cat conftest.$ac_ext >&5 2994 cat conftest.$ac_ext >&5
3125 EOF 3004 EOF
3126 3005
3127 3006
3128 3007
3129 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 3008 echo $ac_n "checking for speed_t""... $ac_c" 1>&6
3130 echo "configure:3131: checking for speed_t" >&5 3009 echo "configure:3010: checking for speed_t" >&5
3131 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then 3010 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6 3011 echo $ac_n "(cached) $ac_c" 1>&6
3133 else 3012 else
3134 cat > conftest.$ac_ext <<EOF 3013 cat > conftest.$ac_ext <<EOF
3135 #line 3136 "configure" 3014 #line 3015 "configure"
3136 #include "confdefs.h" 3015 #include "confdefs.h"
3137 #include <termios.h> 3016 #include <termios.h>
3138 int main() { 3017 int main() {
3139 speed_t x = 1; 3018 speed_t x = 1;
3140 ; return 0; } 3019 ; return 0; }
3141 EOF 3020 EOF
3142 if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3021 if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3143 rm -rf conftest* 3022 rm -rf conftest*
3144 emacs_cv_speed_t=yes 3023 emacs_cv_speed_t=yes
3145 else 3024 else
3146 echo "configure: failed program was:" >&5 3025 echo "configure: failed program was:" >&5
3147 cat conftest.$ac_ext >&5 3026 cat conftest.$ac_ext >&5
3156 EOF 3035 EOF
3157 3036
3158 fi 3037 fi
3159 3038
3160 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3039 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3161 echo "configure:3162: checking for struct timeval" >&5 3040 echo "configure:3041: checking for struct timeval" >&5
3162 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 3041 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6 3042 echo $ac_n "(cached) $ac_c" 1>&6
3164 else 3043 else
3165 cat > conftest.$ac_ext <<EOF 3044 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure" 3045 #line 3046 "configure"
3167 #include "confdefs.h" 3046 #include "confdefs.h"
3168 #ifdef TIME_WITH_SYS_TIME 3047 #ifdef TIME_WITH_SYS_TIME
3169 #include <sys/time.h> 3048 #include <sys/time.h>
3170 #include <time.h> 3049 #include <time.h>
3171 #else 3050 #else
3177 #endif 3056 #endif
3178 int main() { 3057 int main() {
3179 static struct timeval x; x.tv_sec = x.tv_usec; 3058 static struct timeval x; x.tv_sec = x.tv_usec;
3180 ; return 0; } 3059 ; return 0; }
3181 EOF 3060 EOF
3182 if { (eval echo configure:3183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3061 if { (eval echo configure:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3183 rm -rf conftest* 3062 rm -rf conftest*
3184 emacs_cv_struct_timeval=yes 3063 emacs_cv_struct_timeval=yes
3185 else 3064 else
3186 echo "configure: failed program was:" >&5 3065 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5 3066 cat conftest.$ac_ext >&5
3199 EOF 3078 EOF
3200 3079
3201 fi 3080 fi
3202 3081
3203 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 3082 echo $ac_n "checking for struct exception""... $ac_c" 1>&6
3204 echo "configure:3205: checking for struct exception" >&5 3083 echo "configure:3084: checking for struct exception" >&5
3205 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then 3084 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6 3085 echo $ac_n "(cached) $ac_c" 1>&6
3207 else 3086 else
3208 cat > conftest.$ac_ext <<EOF 3087 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure" 3088 #line 3089 "configure"
3210 #include "confdefs.h" 3089 #include "confdefs.h"
3211 #include <math.h> 3090 #include <math.h>
3212 int main() { 3091 int main() {
3213 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; 3092 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
3214 ; return 0; } 3093 ; return 0; }
3215 EOF 3094 EOF
3216 if { (eval echo configure:3217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3095 if { (eval echo configure:3096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3217 rm -rf conftest* 3096 rm -rf conftest*
3218 emacs_cv_struct_exception=yes 3097 emacs_cv_struct_exception=yes
3219 else 3098 else
3220 echo "configure: failed program was:" >&5 3099 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5 3100 cat conftest.$ac_ext >&5
3233 EOF 3112 EOF
3234 3113
3235 fi 3114 fi
3236 3115
3237 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3116 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3238 echo "configure:3239: checking whether struct tm is in sys/time.h or time.h" >&5 3117 echo "configure:3118: checking whether struct tm is in sys/time.h or time.h" >&5
3239 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 3118 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6 3119 echo $ac_n "(cached) $ac_c" 1>&6
3241 else 3120 else
3242 cat > conftest.$ac_ext <<EOF 3121 cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure" 3122 #line 3123 "configure"
3244 #include "confdefs.h" 3123 #include "confdefs.h"
3245 #include <sys/types.h> 3124 #include <sys/types.h>
3246 #include <time.h> 3125 #include <time.h>
3247 int main() { 3126 int main() {
3248 struct tm *tp; tp->tm_sec; 3127 struct tm *tp; tp->tm_sec;
3249 ; return 0; } 3128 ; return 0; }
3250 EOF 3129 EOF
3251 if { (eval echo configure:3252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3130 if { (eval echo configure:3131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3252 rm -rf conftest* 3131 rm -rf conftest*
3253 ac_cv_struct_tm=time.h 3132 ac_cv_struct_tm=time.h
3254 else 3133 else
3255 echo "configure: failed program was:" >&5 3134 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5 3135 cat conftest.$ac_ext >&5
3267 EOF 3146 EOF
3268 3147
3269 fi 3148 fi
3270 3149
3271 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3150 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3272 echo "configure:3273: checking for tm_zone in struct tm" >&5 3151 echo "configure:3152: checking for tm_zone in struct tm" >&5
3273 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 3152 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6 3153 echo $ac_n "(cached) $ac_c" 1>&6
3275 else 3154 else
3276 cat > conftest.$ac_ext <<EOF 3155 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure" 3156 #line 3157 "configure"
3278 #include "confdefs.h" 3157 #include "confdefs.h"
3279 #include <sys/types.h> 3158 #include <sys/types.h>
3280 #include <$ac_cv_struct_tm> 3159 #include <$ac_cv_struct_tm>
3281 int main() { 3160 int main() {
3282 struct tm tm; tm.tm_zone; 3161 struct tm tm; tm.tm_zone;
3283 ; return 0; } 3162 ; return 0; }
3284 EOF 3163 EOF
3285 if { (eval echo configure:3286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3164 if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3286 rm -rf conftest* 3165 rm -rf conftest*
3287 ac_cv_struct_tm_zone=yes 3166 ac_cv_struct_tm_zone=yes
3288 else 3167 else
3289 echo "configure: failed program was:" >&5 3168 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5 3169 cat conftest.$ac_ext >&5
3300 #define HAVE_TM_ZONE 1 3179 #define HAVE_TM_ZONE 1
3301 EOF 3180 EOF
3302 3181
3303 else 3182 else
3304 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3183 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3305 echo "configure:3306: checking for tzname" >&5 3184 echo "configure:3185: checking for tzname" >&5
3306 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 3185 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6 3186 echo $ac_n "(cached) $ac_c" 1>&6
3308 else 3187 else
3309 cat > conftest.$ac_ext <<EOF 3188 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure" 3189 #line 3190 "configure"
3311 #include "confdefs.h" 3190 #include "confdefs.h"
3312 #include <time.h> 3191 #include <time.h>
3313 #ifndef tzname /* For SGI. */ 3192 #ifndef tzname /* For SGI. */
3314 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3193 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3315 #endif 3194 #endif
3316 int main() { 3195 int main() {
3317 atoi(*tzname); 3196 atoi(*tzname);
3318 ; return 0; } 3197 ; return 0; }
3319 EOF 3198 EOF
3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3199 if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3321 rm -rf conftest* 3200 rm -rf conftest*
3322 ac_cv_var_tzname=yes 3201 ac_cv_var_tzname=yes
3323 else 3202 else
3324 echo "configure: failed program was:" >&5 3203 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5 3204 cat conftest.$ac_ext >&5
3337 3216
3338 fi 3217 fi
3339 fi 3218 fi
3340 3219
3341 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 3220 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3342 echo "configure:3343: checking for tm_gmtoff in struct tm" >&5 3221 echo "configure:3222: checking for tm_gmtoff in struct tm" >&5
3343 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 3222 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6 3223 echo $ac_n "(cached) $ac_c" 1>&6
3345 else 3224 else
3346 cat > conftest.$ac_ext <<EOF 3225 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure" 3226 #line 3227 "configure"
3348 #include "confdefs.h" 3227 #include "confdefs.h"
3349 #include <time.h> 3228 #include <time.h>
3350 int main() { 3229 int main() {
3351 struct tm t; t.tm_gmtoff = 0 3230 struct tm t; t.tm_gmtoff = 0
3352 ; return 0; } 3231 ; return 0; }
3353 EOF 3232 EOF
3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3355 rm -rf conftest* 3234 rm -rf conftest*
3356 emacs_cv_tm_gmtoff=yes 3235 emacs_cv_tm_gmtoff=yes
3357 else 3236 else
3358 echo "configure: failed program was:" >&5 3237 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5 3238 cat conftest.$ac_ext >&5
3371 3250
3372 fi 3251 fi
3373 3252
3374 3253
3375 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 3254 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3376 echo "configure:3377: checking for ${CC-cc} option to accept ANSI C" >&5 3255 echo "configure:3256: checking for ${CC-cc} option to accept ANSI C" >&5
3377 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then 3256 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6 3257 echo $ac_n "(cached) $ac_c" 1>&6
3379 else 3258 else
3380 ac_cv_prog_cc_stdc=no 3259 ac_cv_prog_cc_stdc=no
3381 ac_save_CC="$CC" 3260 ac_save_CC="$CC"
3388 # SVR4 -Xc -D__EXTENSIONS__ 3267 # SVR4 -Xc -D__EXTENSIONS__
3389 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3268 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3390 do 3269 do
3391 CC="$ac_save_CC $ac_arg" 3270 CC="$ac_save_CC $ac_arg"
3392 cat > conftest.$ac_ext <<EOF 3271 cat > conftest.$ac_ext <<EOF
3393 #line 3394 "configure" 3272 #line 3273 "configure"
3394 #include "confdefs.h" 3273 #include "confdefs.h"
3395 #include <stdarg.h> 3274 #include <stdarg.h>
3396 #include <stdio.h> 3275 #include <stdio.h>
3397 #include <sys/types.h> 3276 #include <sys/types.h>
3398 #include <sys/stat.h> 3277 #include <sys/stat.h>
3422 char **argv; 3301 char **argv;
3423 int main() { 3302 int main() {
3424 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3425 ; return 0; } 3304 ; return 0; }
3426 EOF 3305 EOF
3427 if { (eval echo configure:3428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3306 if { (eval echo configure:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3428 rm -rf conftest* 3307 rm -rf conftest*
3429 ac_cv_prog_cc_stdc="$ac_arg"; break 3308 ac_cv_prog_cc_stdc="$ac_arg"; break
3430 else 3309 else
3431 echo "configure: failed program was:" >&5 3310 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5 3311 cat conftest.$ac_ext >&5
3444 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 3323 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
3445 CC="$CC $ac_cv_prog_cc_stdc" ;; 3324 CC="$CC $ac_cv_prog_cc_stdc" ;;
3446 esac 3325 esac
3447 3326
3448 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 3327 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
3449 echo "configure:3450: checking for function prototypes" >&5 3328 echo "configure:3329: checking for function prototypes" >&5
3450 if test "$ac_cv_prog_cc_stdc" != no; then 3329 if test "$ac_cv_prog_cc_stdc" != no; then
3451 echo "$ac_t""yes" 1>&6 3330 echo "$ac_t""yes" 1>&6
3452 cat >> confdefs.h <<\EOF 3331 cat >> confdefs.h <<\EOF
3453 #define PROTOTYPES 1 3332 #define PROTOTYPES 1
3454 EOF 3333 EOF
3456 else 3335 else
3457 echo "$ac_t""no" 1>&6 3336 echo "$ac_t""no" 1>&6
3458 fi 3337 fi
3459 3338
3460 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 3339 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
3461 echo "configure:3462: checking for working volatile" >&5 3340 echo "configure:3341: checking for working volatile" >&5
3462 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then 3341 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6 3342 echo $ac_n "(cached) $ac_c" 1>&6
3464 else 3343 else
3465 cat > conftest.$ac_ext <<EOF 3344 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure" 3345 #line 3346 "configure"
3467 #include "confdefs.h" 3346 #include "confdefs.h"
3468 3347
3469 int main() { 3348 int main() {
3470 3349
3471 volatile int x; 3350 volatile int x;
3472 int * volatile y; 3351 int * volatile y;
3473 ; return 0; } 3352 ; return 0; }
3474 EOF 3353 EOF
3475 if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3354 if { (eval echo configure:3355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3476 rm -rf conftest* 3355 rm -rf conftest*
3477 ac_cv_c_volatile=yes 3356 ac_cv_c_volatile=yes
3478 else 3357 else
3479 echo "configure: failed program was:" >&5 3358 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5 3359 cat conftest.$ac_ext >&5
3491 EOF 3370 EOF
3492 3371
3493 fi 3372 fi
3494 3373
3495 echo $ac_n "checking for working const""... $ac_c" 1>&6 3374 echo $ac_n "checking for working const""... $ac_c" 1>&6
3496 echo "configure:3497: checking for working const" >&5 3375 echo "configure:3376: checking for working const" >&5
3497 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 3376 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6 3377 echo $ac_n "(cached) $ac_c" 1>&6
3499 else 3378 else
3500 cat > conftest.$ac_ext <<EOF 3379 cat > conftest.$ac_ext <<EOF
3501 #line 3502 "configure" 3380 #line 3381 "configure"
3502 #include "confdefs.h" 3381 #include "confdefs.h"
3503 3382
3504 int main() { 3383 int main() {
3505 3384
3506 /* Ultrix mips cc rejects this. */ 3385 /* Ultrix mips cc rejects this. */
3545 const int foo = 10; 3424 const int foo = 10;
3546 } 3425 }
3547 3426
3548 ; return 0; } 3427 ; return 0; }
3549 EOF 3428 EOF
3550 if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3429 if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551 rm -rf conftest* 3430 rm -rf conftest*
3552 ac_cv_c_const=yes 3431 ac_cv_c_const=yes
3553 else 3432 else
3554 echo "configure: failed program was:" >&5 3433 echo "configure: failed program was:" >&5
3555 cat conftest.$ac_ext >&5 3434 cat conftest.$ac_ext >&5
3566 EOF 3445 EOF
3567 3446
3568 fi 3447 fi
3569 3448
3570 echo $ac_n "checking for void * support""... $ac_c" 1>&6 3449 echo $ac_n "checking for void * support""... $ac_c" 1>&6
3571 echo "configure:3572: checking for void * support" >&5 3450 echo "configure:3451: checking for void * support" >&5
3572 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then 3451 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6 3452 echo $ac_n "(cached) $ac_c" 1>&6
3574 else 3453 else
3575 cat > conftest.$ac_ext <<EOF 3454 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure" 3455 #line 3456 "configure"
3577 #include "confdefs.h" 3456 #include "confdefs.h"
3578 3457
3579 int main() { 3458 int main() {
3580 void * foo; 3459 void * foo;
3581 ; return 0; } 3460 ; return 0; }
3582 EOF 3461 EOF
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3462 if { (eval echo configure:3463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3584 rm -rf conftest* 3463 rm -rf conftest*
3585 emacs_cv_void_star=yes 3464 emacs_cv_void_star=yes
3586 else 3465 else
3587 echo "configure: failed program was:" >&5 3466 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5 3467 cat conftest.$ac_ext >&5
3604 EOF 3483 EOF
3605 3484
3606 fi 3485 fi
3607 3486
3608 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3487 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3609 echo "configure:3610: checking whether ${MAKE-make} sets \${MAKE}" >&5 3488 echo "configure:3489: checking whether ${MAKE-make} sets \${MAKE}" >&5
3610 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3489 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3611 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 3490 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6 3491 echo $ac_n "(cached) $ac_c" 1>&6
3613 else 3492 else
3614 cat > conftestmake <<\EOF 3493 cat > conftestmake <<\EOF
3632 SET_MAKE="MAKE=${MAKE-make}" 3511 SET_MAKE="MAKE=${MAKE-make}"
3633 fi 3512 fi
3634 3513
3635 3514
3636 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3515 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3637 echo "configure:3638: checking for long file names" >&5 3516 echo "configure:3517: checking for long file names" >&5
3638 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 3517 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6 3518 echo $ac_n "(cached) $ac_c" 1>&6
3640 else 3519 else
3641 ac_cv_sys_long_file_names=yes 3520 ac_cv_sys_long_file_names=yes
3642 # Test for long file names in all the places we know might matter: 3521 # Test for long file names in all the places we know might matter:
3683 # If we find X, set shell vars x_includes and x_libraries to the 3562 # If we find X, set shell vars x_includes and x_libraries to the
3684 # paths, otherwise set no_x=yes. 3563 # paths, otherwise set no_x=yes.
3685 # Uses ac_ vars as temps to allow command line to override cache and checks. 3564 # Uses ac_ vars as temps to allow command line to override cache and checks.
3686 # --without-x overrides everything else, but does not touch the cache. 3565 # --without-x overrides everything else, but does not touch the cache.
3687 echo $ac_n "checking for X""... $ac_c" 1>&6 3566 echo $ac_n "checking for X""... $ac_c" 1>&6
3688 echo "configure:3689: checking for X" >&5 3567 echo "configure:3568: checking for X" >&5
3689 3568
3690 # Check whether --with-x or --without-x was given. 3569 # Check whether --with-x or --without-x was given.
3691 if test "${with_x+set}" = set; then 3570 if test "${with_x+set}" = set; then
3692 withval="$with_x" 3571 withval="$with_x"
3693 : 3572 :
3745 # Guess where to find include files, by looking for this one X11 .h file. 3624 # Guess where to find include files, by looking for this one X11 .h file.
3746 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 3625 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3747 3626
3748 # First, try using that file with no special directory specified. 3627 # First, try using that file with no special directory specified.
3749 cat > conftest.$ac_ext <<EOF 3628 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure" 3629 #line 3630 "configure"
3751 #include "confdefs.h" 3630 #include "confdefs.h"
3752 #include <$x_direct_test_include> 3631 #include <$x_direct_test_include>
3753 EOF 3632 EOF
3754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3755 { (eval echo configure:3756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3634 { (eval echo configure:3635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3757 if test -z "$ac_err"; then 3636 if test -z "$ac_err"; then
3758 rm -rf conftest* 3637 rm -rf conftest*
3759 # We can compile using X headers with no special include directory. 3638 # We can compile using X headers with no special include directory.
3760 ac_x_includes= 3639 ac_x_includes=
3819 # See if we find them without any special options. 3698 # See if we find them without any special options.
3820 # Don't add to $LIBS permanently. 3699 # Don't add to $LIBS permanently.
3821 ac_save_LIBS="$LIBS" 3700 ac_save_LIBS="$LIBS"
3822 LIBS="-l$x_direct_test_library $LIBS" 3701 LIBS="-l$x_direct_test_library $LIBS"
3823 cat > conftest.$ac_ext <<EOF 3702 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure" 3703 #line 3704 "configure"
3825 #include "confdefs.h" 3704 #include "confdefs.h"
3826 3705
3827 int main() { 3706 int main() {
3828 ${x_direct_test_function}() 3707 ${x_direct_test_function}()
3829 ; return 0; } 3708 ; return 0; }
3830 EOF 3709 EOF
3831 if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3832 rm -rf conftest* 3711 rm -rf conftest*
3833 LIBS="$ac_save_LIBS" 3712 LIBS="$ac_save_LIBS"
3834 # We can link X programs with no special library path. 3713 # We can link X programs with no special library path.
3835 ac_x_libraries= 3714 ac_x_libraries=
3836 else 3715 else
4004 # Do the opsystem or machine files prohibit the use of the GNU malloc? 3883 # Do the opsystem or machine files prohibit the use of the GNU malloc?
4005 # Assume not, until told otherwise. 3884 # Assume not, until told otherwise.
4006 GNU_MALLOC=yes 3885 GNU_MALLOC=yes
4007 doug_lea_malloc=yes 3886 doug_lea_malloc=yes
4008 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3887 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
4009 echo "configure:4010: checking for malloc_get_state" >&5 3888 echo "configure:3889: checking for malloc_get_state" >&5
4010 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 3889 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6 3890 echo $ac_n "(cached) $ac_c" 1>&6
4012 else 3891 else
4013 cat > conftest.$ac_ext <<EOF 3892 cat > conftest.$ac_ext <<EOF
4014 #line 4015 "configure" 3893 #line 3894 "configure"
4015 #include "confdefs.h" 3894 #include "confdefs.h"
4016 /* System header to define __stub macros and hopefully few prototypes, 3895 /* System header to define __stub macros and hopefully few prototypes,
4017 which can conflict with char malloc_get_state(); below. */ 3896 which can conflict with char malloc_get_state(); below. */
4018 #include <assert.h> 3897 #include <assert.h>
4019 /* Override any gcc2 internal prototype to avoid an error. */ 3898 /* Override any gcc2 internal prototype to avoid an error. */
4032 malloc_get_state(); 3911 malloc_get_state();
4033 #endif 3912 #endif
4034 3913
4035 ; return 0; } 3914 ; return 0; }
4036 EOF 3915 EOF
4037 if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3916 if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4038 rm -rf conftest* 3917 rm -rf conftest*
4039 eval "ac_cv_func_malloc_get_state=yes" 3918 eval "ac_cv_func_malloc_get_state=yes"
4040 else 3919 else
4041 echo "configure: failed program was:" >&5 3920 echo "configure: failed program was:" >&5
4042 cat conftest.$ac_ext >&5 3921 cat conftest.$ac_ext >&5
4053 echo "$ac_t""no" 1>&6 3932 echo "$ac_t""no" 1>&6
4054 doug_lea_malloc=no 3933 doug_lea_malloc=no
4055 fi 3934 fi
4056 3935
4057 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3936 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
4058 echo "configure:4059: checking for malloc_set_state" >&5 3937 echo "configure:3938: checking for malloc_set_state" >&5
4059 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 3938 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6 3939 echo $ac_n "(cached) $ac_c" 1>&6
4061 else 3940 else
4062 cat > conftest.$ac_ext <<EOF 3941 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure" 3942 #line 3943 "configure"
4064 #include "confdefs.h" 3943 #include "confdefs.h"
4065 /* System header to define __stub macros and hopefully few prototypes, 3944 /* System header to define __stub macros and hopefully few prototypes,
4066 which can conflict with char malloc_set_state(); below. */ 3945 which can conflict with char malloc_set_state(); below. */
4067 #include <assert.h> 3946 #include <assert.h>
4068 /* Override any gcc2 internal prototype to avoid an error. */ 3947 /* Override any gcc2 internal prototype to avoid an error. */
4081 malloc_set_state(); 3960 malloc_set_state();
4082 #endif 3961 #endif
4083 3962
4084 ; return 0; } 3963 ; return 0; }
4085 EOF 3964 EOF
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3965 if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4087 rm -rf conftest* 3966 rm -rf conftest*
4088 eval "ac_cv_func_malloc_set_state=yes" 3967 eval "ac_cv_func_malloc_set_state=yes"
4089 else 3968 else
4090 echo "configure: failed program was:" >&5 3969 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5 3970 cat conftest.$ac_ext >&5
4102 echo "$ac_t""no" 1>&6 3981 echo "$ac_t""no" 1>&6
4103 doug_lea_malloc=no 3982 doug_lea_malloc=no
4104 fi 3983 fi
4105 3984
4106 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3985 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
4107 echo "configure:4108: checking whether __after_morecore_hook exists" >&5 3986 echo "configure:3987: checking whether __after_morecore_hook exists" >&5
4108 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 3987 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6 3988 echo $ac_n "(cached) $ac_c" 1>&6
4110 else 3989 else
4111 cat > conftest.$ac_ext <<EOF 3990 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure" 3991 #line 3992 "configure"
4113 #include "confdefs.h" 3992 #include "confdefs.h"
4114 extern void (* __after_morecore_hook)(); 3993 extern void (* __after_morecore_hook)();
4115 int main() { 3994 int main() {
4116 __after_morecore_hook = 0 3995 __after_morecore_hook = 0
4117 ; return 0; } 3996 ; return 0; }
4118 EOF 3997 EOF
4119 if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4120 rm -rf conftest* 3999 rm -rf conftest*
4121 emacs_cv_var___after_morecore_hook=yes 4000 emacs_cv_var___after_morecore_hook=yes
4122 else 4001 else
4123 echo "configure: failed program was:" >&5 4002 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5 4003 cat conftest.$ac_ext >&5
4155 4034
4156 for ac_hdr in stdlib.h unistd.h sys/stat.h 4035 for ac_hdr in stdlib.h unistd.h sys/stat.h
4157 do 4036 do
4158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4037 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4160 echo "configure:4161: checking for $ac_hdr" >&5 4039 echo "configure:4040: checking for $ac_hdr" >&5
4161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4040 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6 4041 echo $ac_n "(cached) $ac_c" 1>&6
4163 else 4042 else
4164 cat > conftest.$ac_ext <<EOF 4043 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure" 4044 #line 4045 "configure"
4166 #include "confdefs.h" 4045 #include "confdefs.h"
4167 #include <$ac_hdr> 4046 #include <$ac_hdr>
4168 EOF 4047 EOF
4169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4048 ac_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; } 4049 { (eval echo configure:4050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4172 if test -z "$ac_err"; then 4051 if test -z "$ac_err"; then
4173 rm -rf conftest* 4052 rm -rf conftest*
4174 eval "ac_cv_header_$ac_safe=yes" 4053 eval "ac_cv_header_$ac_safe=yes"
4175 else 4054 else
4194 done 4073 done
4195 4074
4196 for ac_func in getpagesize 4075 for ac_func in getpagesize
4197 do 4076 do
4198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4199 echo "configure:4200: checking for $ac_func" >&5 4078 echo "configure:4079: checking for $ac_func" >&5
4200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6 4080 echo $ac_n "(cached) $ac_c" 1>&6
4202 else 4081 else
4203 cat > conftest.$ac_ext <<EOF 4082 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure" 4083 #line 4084 "configure"
4205 #include "confdefs.h" 4084 #include "confdefs.h"
4206 /* System header to define __stub macros and hopefully few prototypes, 4085 /* System header to define __stub macros and hopefully few prototypes,
4207 which can conflict with char $ac_func(); below. */ 4086 which can conflict with char $ac_func(); below. */
4208 #include <assert.h> 4087 #include <assert.h>
4209 /* Override any gcc2 internal prototype to avoid an error. */ 4088 /* Override any gcc2 internal prototype to avoid an error. */
4222 $ac_func(); 4101 $ac_func();
4223 #endif 4102 #endif
4224 4103
4225 ; return 0; } 4104 ; return 0; }
4226 EOF 4105 EOF
4227 if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4228 rm -rf conftest* 4107 rm -rf conftest*
4229 eval "ac_cv_func_$ac_func=yes" 4108 eval "ac_cv_func_$ac_func=yes"
4230 else 4109 else
4231 echo "configure: failed program was:" >&5 4110 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5 4111 cat conftest.$ac_ext >&5
4247 echo "$ac_t""no" 1>&6 4126 echo "$ac_t""no" 1>&6
4248 fi 4127 fi
4249 done 4128 done
4250 4129
4251 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 4130 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4252 echo "configure:4253: checking for working mmap" >&5 4131 echo "configure:4132: checking for working mmap" >&5
4253 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 4132 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6 4133 echo $ac_n "(cached) $ac_c" 1>&6
4255 else 4134 else
4256 if test "$cross_compiling" = yes; then 4135 if test "$cross_compiling" = yes; then
4257 ac_cv_func_mmap_fixed_mapped=no 4136 ac_cv_func_mmap_fixed_mapped=no
4258 else 4137 else
4259 cat > conftest.$ac_ext <<EOF 4138 cat > conftest.$ac_ext <<EOF
4260 #line 4261 "configure" 4139 #line 4140 "configure"
4261 #include "confdefs.h" 4140 #include "confdefs.h"
4262 /* Thanks to Mike Haertel and Jim Avera for this test. 4141 /* Thanks to Mike Haertel and Jim Avera for this test.
4263 Here is a matrix of mmap possibilities: 4142 Here is a matrix of mmap possibilities:
4264 mmap private not fixed 4143 mmap private not fixed
4265 mmap private fixed at somewhere currently unmapped 4144 mmap private fixed at somewhere currently unmapped
4389 close (fd); 4268 close (fd);
4390 unlink ("conftestmmap"); 4269 unlink ("conftestmmap");
4391 exit (0); 4270 exit (0);
4392 } 4271 }
4393 EOF 4272 EOF
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4395 then 4274 then
4396 ac_cv_func_mmap_fixed_mapped=yes 4275 ac_cv_func_mmap_fixed_mapped=yes
4397 else 4276 else
4398 echo "configure: failed program was:" >&5 4277 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5 4278 cat conftest.$ac_ext >&5
4418 fi 4297 fi
4419 4298
4420 LIBS="$libsrc_libs $LIBS" 4299 LIBS="$libsrc_libs $LIBS"
4421 4300
4422 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4301 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4423 echo "configure:4424: checking for dnet_ntoa in -ldnet" >&5 4302 echo "configure:4303: checking for dnet_ntoa in -ldnet" >&5
4424 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4303 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6 4305 echo $ac_n "(cached) $ac_c" 1>&6
4427 else 4306 else
4428 ac_save_LIBS="$LIBS" 4307 ac_save_LIBS="$LIBS"
4429 LIBS="-ldnet $LIBS" 4308 LIBS="-ldnet $LIBS"
4430 cat > conftest.$ac_ext <<EOF 4309 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure" 4310 #line 4311 "configure"
4432 #include "confdefs.h" 4311 #include "confdefs.h"
4433 /* Override any gcc2 internal prototype to avoid an error. */ 4312 /* Override any gcc2 internal prototype to avoid an error. */
4434 /* We use char because int might match the return type of a gcc2 4313 /* We use char because int might match the return type of a gcc2
4435 builtin and then its argument prototype would still apply. */ 4314 builtin and then its argument prototype would still apply. */
4436 char dnet_ntoa(); 4315 char dnet_ntoa();
4437 4316
4438 int main() { 4317 int main() {
4439 dnet_ntoa() 4318 dnet_ntoa()
4440 ; return 0; } 4319 ; return 0; }
4441 EOF 4320 EOF
4442 if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4321 if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4443 rm -rf conftest* 4322 rm -rf conftest*
4444 eval "ac_cv_lib_$ac_lib_var=yes" 4323 eval "ac_cv_lib_$ac_lib_var=yes"
4445 else 4324 else
4446 echo "configure: failed program was:" >&5 4325 echo "configure: failed program was:" >&5
4447 cat conftest.$ac_ext >&5 4326 cat conftest.$ac_ext >&5
4466 echo "$ac_t""no" 1>&6 4345 echo "$ac_t""no" 1>&6
4467 fi 4346 fi
4468 4347
4469 4348
4470 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 4349 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4471 echo "configure:4472: checking for main in -lXbsd" >&5 4350 echo "configure:4351: checking for main in -lXbsd" >&5
4472 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 4351 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6 4353 echo $ac_n "(cached) $ac_c" 1>&6
4475 else 4354 else
4476 ac_save_LIBS="$LIBS" 4355 ac_save_LIBS="$LIBS"
4477 LIBS="-lXbsd $LIBS" 4356 LIBS="-lXbsd $LIBS"
4478 cat > conftest.$ac_ext <<EOF 4357 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure" 4358 #line 4359 "configure"
4480 #include "confdefs.h" 4359 #include "confdefs.h"
4481 4360
4482 int main() { 4361 int main() {
4483 main() 4362 main()
4484 ; return 0; } 4363 ; return 0; }
4485 EOF 4364 EOF
4486 if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4487 rm -rf conftest* 4366 rm -rf conftest*
4488 eval "ac_cv_lib_$ac_lib_var=yes" 4367 eval "ac_cv_lib_$ac_lib_var=yes"
4489 else 4368 else
4490 echo "configure: failed program was:" >&5 4369 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5 4370 cat conftest.$ac_ext >&5
4503 echo "$ac_t""no" 1>&6 4382 echo "$ac_t""no" 1>&6
4504 fi 4383 fi
4505 4384
4506 4385
4507 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4386 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4508 echo "configure:4509: checking for cma_open in -lpthreads" >&5 4387 echo "configure:4388: checking for cma_open in -lpthreads" >&5
4509 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4388 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6 4390 echo $ac_n "(cached) $ac_c" 1>&6
4512 else 4391 else
4513 ac_save_LIBS="$LIBS" 4392 ac_save_LIBS="$LIBS"
4514 LIBS="-lpthreads $LIBS" 4393 LIBS="-lpthreads $LIBS"
4515 cat > conftest.$ac_ext <<EOF 4394 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure" 4395 #line 4396 "configure"
4517 #include "confdefs.h" 4396 #include "confdefs.h"
4518 /* Override any gcc2 internal prototype to avoid an error. */ 4397 /* Override any gcc2 internal prototype to avoid an error. */
4519 /* We use char because int might match the return type of a gcc2 4398 /* We use char because int might match the return type of a gcc2
4520 builtin and then its argument prototype would still apply. */ 4399 builtin and then its argument prototype would still apply. */
4521 char cma_open(); 4400 char cma_open();
4522 4401
4523 int main() { 4402 int main() {
4524 cma_open() 4403 cma_open()
4525 ; return 0; } 4404 ; return 0; }
4526 EOF 4405 EOF
4527 if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4406 if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4528 rm -rf conftest* 4407 rm -rf conftest*
4529 eval "ac_cv_lib_$ac_lib_var=yes" 4408 eval "ac_cv_lib_$ac_lib_var=yes"
4530 else 4409 else
4531 echo "configure: failed program was:" >&5 4410 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5 4411 cat conftest.$ac_ext >&5
4551 echo "$ac_t""no" 1>&6 4430 echo "$ac_t""no" 1>&6
4552 fi 4431 fi
4553 4432
4554 4433
4555 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 4434 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
4556 echo "configure:4557: checking for XFree86 in /usr/X386" >&5 4435 echo "configure:4436: checking for XFree86 in /usr/X386" >&5
4557 if test -d /usr/X386/include; then 4436 if test -d /usr/X386/include; then
4558 HAVE_XFREE386=yes 4437 HAVE_XFREE386=yes
4559 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 4438 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
4560 else 4439 else
4561 HAVE_XFREE386=no 4440 HAVE_XFREE386=no
4583 export LD_RUN_PATH 4462 export LD_RUN_PATH
4584 fi 4463 fi
4585 4464
4586 if test "${opsys}" = "gnu-linux"; then 4465 if test "${opsys}" = "gnu-linux"; then
4587 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 4466 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
4588 echo "configure:4589: checking whether X on GNU/Linux needs -b to link" >&5 4467 echo "configure:4468: checking whether X on GNU/Linux needs -b to link" >&5
4589 cat > conftest.$ac_ext <<EOF 4468 cat > conftest.$ac_ext <<EOF
4590 #line 4591 "configure" 4469 #line 4470 "configure"
4591 #include "confdefs.h" 4470 #include "confdefs.h"
4592 4471
4593 int main() { 4472 int main() {
4594 XOpenDisplay ("foo"); 4473 XOpenDisplay ("foo");
4595 ; return 0; } 4474 ; return 0; }
4596 EOF 4475 EOF
4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4598 rm -rf conftest* 4477 rm -rf conftest*
4599 xlinux_first_failure=no 4478 xlinux_first_failure=no
4600 else 4479 else
4601 echo "configure: failed program was:" >&5 4480 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5 4481 cat conftest.$ac_ext >&5
4612 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 4491 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
4613 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 4492 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
4614 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 4493 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
4615 LIBS="$LIBS -b i486-linuxaout" 4494 LIBS="$LIBS -b i486-linuxaout"
4616 cat > conftest.$ac_ext <<EOF 4495 cat > conftest.$ac_ext <<EOF
4617 #line 4618 "configure" 4496 #line 4497 "configure"
4618 #include "confdefs.h" 4497 #include "confdefs.h"
4619 4498
4620 int main() { 4499 int main() {
4621 XOpenDisplay ("foo"); 4500 XOpenDisplay ("foo");
4622 ; return 0; } 4501 ; return 0; }
4623 EOF 4502 EOF
4624 if { (eval echo configure:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4625 rm -rf conftest* 4504 rm -rf conftest*
4626 xlinux_second_failure=no 4505 xlinux_second_failure=no
4627 else 4506 else
4628 echo "configure: failed program was:" >&5 4507 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5 4508 cat conftest.$ac_ext >&5
4649 4528
4650 for ac_func in XrmSetDatabase XScreenResourceString \ 4529 for ac_func in XrmSetDatabase XScreenResourceString \
4651 XScreenNumberOfScreen XSetWMProtocols 4530 XScreenNumberOfScreen XSetWMProtocols
4652 do 4531 do
4653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4654 echo "configure:4655: checking for $ac_func" >&5 4533 echo "configure:4534: checking for $ac_func" >&5
4655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6 4535 echo $ac_n "(cached) $ac_c" 1>&6
4657 else 4536 else
4658 cat > conftest.$ac_ext <<EOF 4537 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure" 4538 #line 4539 "configure"
4660 #include "confdefs.h" 4539 #include "confdefs.h"
4661 /* System header to define __stub macros and hopefully few prototypes, 4540 /* System header to define __stub macros and hopefully few prototypes,
4662 which can conflict with char $ac_func(); below. */ 4541 which can conflict with char $ac_func(); below. */
4663 #include <assert.h> 4542 #include <assert.h>
4664 /* Override any gcc2 internal prototype to avoid an error. */ 4543 /* Override any gcc2 internal prototype to avoid an error. */
4677 $ac_func(); 4556 $ac_func();
4678 #endif 4557 #endif
4679 4558
4680 ; return 0; } 4559 ; return 0; }
4681 EOF 4560 EOF
4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683 rm -rf conftest* 4562 rm -rf conftest*
4684 eval "ac_cv_func_$ac_func=yes" 4563 eval "ac_cv_func_$ac_func=yes"
4685 else 4564 else
4686 echo "configure: failed program was:" >&5 4565 echo "configure: failed program was:" >&5
4687 cat conftest.$ac_ext >&5 4566 cat conftest.$ac_ext >&5
4705 4584
4706 fi 4585 fi
4707 4586
4708 if test "${window_system}" = "x11"; then 4587 if test "${window_system}" = "x11"; then
4709 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 4588 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4710 echo "configure:4711: checking X11 version 6" >&5 4589 echo "configure:4590: checking X11 version 6" >&5
4711 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 4590 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6 4591 echo $ac_n "(cached) $ac_c" 1>&6
4713 else 4592 else
4714 cat > conftest.$ac_ext <<EOF 4593 cat > conftest.$ac_ext <<EOF
4715 #line 4716 "configure" 4594 #line 4595 "configure"
4716 #include "confdefs.h" 4595 #include "confdefs.h"
4717 #include <X11/Xlib.h> 4596 #include <X11/Xlib.h>
4718 int main() { 4597 int main() {
4719 #if XlibSpecificationRelease < 6 4598 #if XlibSpecificationRelease < 6
4720 fail; 4599 fail;
4721 #endif 4600 #endif
4722 4601
4723 ; return 0; } 4602 ; return 0; }
4724 EOF 4603 EOF
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4604 if { (eval echo configure:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4726 rm -rf conftest* 4605 rm -rf conftest*
4727 emacs_cv_x11_version_6=yes 4606 emacs_cv_x11_version_6=yes
4728 else 4607 else
4729 echo "configure: failed program was:" >&5 4608 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5 4609 cat conftest.$ac_ext >&5
4745 fi 4624 fi
4746 fi 4625 fi
4747 4626
4748 if test "${window_system}" = "x11"; then 4627 if test "${window_system}" = "x11"; then
4749 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 4628 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4750 echo "configure:4751: checking X11 version 5" >&5 4629 echo "configure:4630: checking X11 version 5" >&5
4751 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 4630 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6 4631 echo $ac_n "(cached) $ac_c" 1>&6
4753 else 4632 else
4754 cat > conftest.$ac_ext <<EOF 4633 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure" 4634 #line 4635 "configure"
4756 #include "confdefs.h" 4635 #include "confdefs.h"
4757 #include <X11/Xlib.h> 4636 #include <X11/Xlib.h>
4758 int main() { 4637 int main() {
4759 #if XlibSpecificationRelease < 5 4638 #if XlibSpecificationRelease < 5
4760 fail; 4639 fail;
4761 #endif 4640 #endif
4762 4641
4763 ; return 0; } 4642 ; return 0; }
4764 EOF 4643 EOF
4765 if { (eval echo configure:4766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4644 if { (eval echo configure:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4766 rm -rf conftest* 4645 rm -rf conftest*
4767 emacs_cv_x11_version_5=yes 4646 emacs_cv_x11_version_5=yes
4768 else 4647 else
4769 echo "configure: failed program was:" >&5 4648 echo "configure: failed program was:" >&5
4770 cat conftest.$ac_ext >&5 4649 cat conftest.$ac_ext >&5
4788 fi 4667 fi
4789 4668
4790 if test x"${USE_X_TOOLKIT}" = xmaybe; then 4669 if test x"${USE_X_TOOLKIT}" = xmaybe; then
4791 if test x"${HAVE_X11R5}" = xyes; then 4670 if test x"${HAVE_X11R5}" = xyes; then
4792 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 4671 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4793 echo "configure:4794: checking X11 version 5 with Xaw" >&5 4672 echo "configure:4673: checking X11 version 5 with Xaw" >&5
4794 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 4673 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6 4674 echo $ac_n "(cached) $ac_c" 1>&6
4796 else 4675 else
4797 cat > conftest.$ac_ext <<EOF 4676 cat > conftest.$ac_ext <<EOF
4798 #line 4799 "configure" 4677 #line 4678 "configure"
4799 #include "confdefs.h" 4678 #include "confdefs.h"
4800 4679
4801 #include <X11/Intrinsic.h> 4680 #include <X11/Intrinsic.h>
4802 #include <X11/Xaw/Simple.h> 4681 #include <X11/Xaw/Simple.h>
4803 int main() { 4682 int main() {
4804 4683
4805 ; return 0; } 4684 ; return 0; }
4806 EOF 4685 EOF
4807 if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4686 if { (eval echo configure:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4808 rm -rf conftest* 4687 rm -rf conftest*
4809 emacs_cv_x11_version_5_with_xaw=yes 4688 emacs_cv_x11_version_5_with_xaw=yes
4810 else 4689 else
4811 echo "configure: failed program was:" >&5 4690 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5 4691 cat conftest.$ac_ext >&5
4830 4709
4831 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 4710 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
4832 4711
4833 if test "${USE_X_TOOLKIT}" != "none"; then 4712 if test "${USE_X_TOOLKIT}" != "none"; then
4834 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 4713 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4835 echo "configure:4836: checking X11 toolkit version" >&5 4714 echo "configure:4715: checking X11 toolkit version" >&5
4836 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 4715 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6 4716 echo $ac_n "(cached) $ac_c" 1>&6
4838 else 4717 else
4839 cat > conftest.$ac_ext <<EOF 4718 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure" 4719 #line 4720 "configure"
4841 #include "confdefs.h" 4720 #include "confdefs.h"
4842 #include <X11/Intrinsic.h> 4721 #include <X11/Intrinsic.h>
4843 int main() { 4722 int main() {
4844 #if XtSpecificationRelease < 6 4723 #if XtSpecificationRelease < 6
4845 fail; 4724 fail;
4846 #endif 4725 #endif
4847 4726
4848 ; return 0; } 4727 ; return 0; }
4849 EOF 4728 EOF
4850 if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4729 if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4851 rm -rf conftest* 4730 rm -rf conftest*
4852 emacs_cv_x11_toolkit_version_6=yes 4731 emacs_cv_x11_toolkit_version_6=yes
4853 else 4732 else
4854 echo "configure: failed program was:" >&5 4733 echo "configure: failed program was:" >&5
4855 cat conftest.$ac_ext >&5 4734 cat conftest.$ac_ext >&5
4875 LIBS="-lXt -lSM -lICE $LIBS" 4754 LIBS="-lXt -lSM -lICE $LIBS"
4876 else 4755 else
4877 LIBS="-lXt $LIBS" 4756 LIBS="-lXt $LIBS"
4878 fi 4757 fi
4879 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 4758 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4880 echo "configure:4881: checking for XmuConvertStandardSelection in -lXmu" >&5 4759 echo "configure:4760: checking for XmuConvertStandardSelection in -lXmu" >&5
4881 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 4760 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6 4762 echo $ac_n "(cached) $ac_c" 1>&6
4884 else 4763 else
4885 ac_save_LIBS="$LIBS" 4764 ac_save_LIBS="$LIBS"
4886 LIBS="-lXmu $LIBS" 4765 LIBS="-lXmu $LIBS"
4887 cat > conftest.$ac_ext <<EOF 4766 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure" 4767 #line 4768 "configure"
4889 #include "confdefs.h" 4768 #include "confdefs.h"
4890 /* Override any gcc2 internal prototype to avoid an error. */ 4769 /* Override any gcc2 internal prototype to avoid an error. */
4891 /* We use char because int might match the return type of a gcc2 4770 /* We use char because int might match the return type of a gcc2
4892 builtin and then its argument prototype would still apply. */ 4771 builtin and then its argument prototype would still apply. */
4893 char XmuConvertStandardSelection(); 4772 char XmuConvertStandardSelection();
4894 4773
4895 int main() { 4774 int main() {
4896 XmuConvertStandardSelection() 4775 XmuConvertStandardSelection()
4897 ; return 0; } 4776 ; return 0; }
4898 EOF 4777 EOF
4899 if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4778 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4900 rm -rf conftest* 4779 rm -rf conftest*
4901 eval "ac_cv_lib_$ac_lib_var=yes" 4780 eval "ac_cv_lib_$ac_lib_var=yes"
4902 else 4781 else
4903 echo "configure: failed program was:" >&5 4782 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5 4783 cat conftest.$ac_ext >&5
4926 LIBS="$OLDLIBS" 4805 LIBS="$OLDLIBS"
4927 fi 4806 fi
4928 4807
4929 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 4808 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4930 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 4809 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4931 echo "configure:4932: checking for Motif version 2.1" >&5 4810 echo "configure:4811: checking for Motif version 2.1" >&5
4932 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 4811 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6 4812 echo $ac_n "(cached) $ac_c" 1>&6
4934 else 4813 else
4935 cat > conftest.$ac_ext <<EOF 4814 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure" 4815 #line 4816 "configure"
4937 #include "confdefs.h" 4816 #include "confdefs.h"
4938 #include <Xm/Xm.h> 4817 #include <Xm/Xm.h>
4939 int main() { 4818 int main() {
4940 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 4819 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4941 int x = 5; 4820 int x = 5;
4942 #else 4821 #else
4943 Motif version prior to 2.1. 4822 Motif version prior to 2.1.
4944 #endif 4823 #endif
4945 ; return 0; } 4824 ; return 0; }
4946 EOF 4825 EOF
4947 if { (eval echo configure:4948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4826 if { (eval echo configure:4827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4948 rm -rf conftest* 4827 rm -rf conftest*
4949 emacs_cv_motif_version_2_1=yes 4828 emacs_cv_motif_version_2_1=yes
4950 else 4829 else
4951 echo "configure: failed program was:" >&5 4830 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5 4831 cat conftest.$ac_ext >&5
4957 fi 4836 fi
4958 4837
4959 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6 4838 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
4960 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 4839 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
4961 if test $emacs_cv_motif_version_2_1 = yes; then 4840 if test $emacs_cv_motif_version_2_1 = yes; then
4841 HAVE_LIBXP=no
4962 cat >> confdefs.h <<\EOF 4842 cat >> confdefs.h <<\EOF
4963 #define HAVE_MOTIF_2_1 1 4843 #define HAVE_MOTIF_2_1 1
4964 EOF 4844 EOF
4965 4845
4966 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 4846 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4967 echo "configure:4968: checking for XpCreateContext in -lXp" >&5 4847 echo "configure:4848: checking for XpCreateContext in -lXp" >&5
4968 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 4848 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4970 echo $ac_n "(cached) $ac_c" 1>&6 4850 echo $ac_n "(cached) $ac_c" 1>&6
4971 else 4851 else
4972 ac_save_LIBS="$LIBS" 4852 ac_save_LIBS="$LIBS"
4973 LIBS="-lXp -lXext $LIBS" 4853 LIBS="-lXp -lXext $LIBS"
4974 cat > conftest.$ac_ext <<EOF 4854 cat > conftest.$ac_ext <<EOF
4975 #line 4976 "configure" 4855 #line 4856 "configure"
4976 #include "confdefs.h" 4856 #include "confdefs.h"
4977 /* Override any gcc2 internal prototype to avoid an error. */ 4857 /* Override any gcc2 internal prototype to avoid an error. */
4978 /* We use char because int might match the return type of a gcc2 4858 /* We use char because int might match the return type of a gcc2
4979 builtin and then its argument prototype would still apply. */ 4859 builtin and then its argument prototype would still apply. */
4980 char XpCreateContext(); 4860 char XpCreateContext();
4981 4861
4982 int main() { 4862 int main() {
4983 XpCreateContext() 4863 XpCreateContext()
4984 ; return 0; } 4864 ; return 0; }
4985 EOF 4865 EOF
4986 if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4866 if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4987 rm -rf conftest* 4867 rm -rf conftest*
4988 eval "ac_cv_lib_$ac_lib_var=yes" 4868 eval "ac_cv_lib_$ac_lib_var=yes"
4989 else 4869 else
4990 echo "configure: failed program was:" >&5 4870 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5 4871 cat conftest.$ac_ext >&5
5018 if test "${USE_X_TOOLKIT}" != "none"; then 4898 if test "${USE_X_TOOLKIT}" != "none"; then
5019 old_c_flags="${CFLAGS}" 4899 old_c_flags="${CFLAGS}"
5020 CFLAGS="${LD_SWITCH_X_SITE}" 4900 CFLAGS="${LD_SWITCH_X_SITE}"
5021 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 4901 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
5022 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4902 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
5023 echo "configure:5024: checking for X11/Xaw3d/Scrollbar.h" >&5 4903 echo "configure:4904: checking for X11/Xaw3d/Scrollbar.h" >&5
5024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5025 echo $ac_n "(cached) $ac_c" 1>&6 4905 echo $ac_n "(cached) $ac_c" 1>&6
5026 else 4906 else
5027 cat > conftest.$ac_ext <<EOF 4907 cat > conftest.$ac_ext <<EOF
5028 #line 5029 "configure" 4908 #line 4909 "configure"
5029 #include "confdefs.h" 4909 #include "confdefs.h"
5030 #include <X11/Xaw3d/Scrollbar.h> 4910 #include <X11/Xaw3d/Scrollbar.h>
5031 EOF 4911 EOF
5032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5033 { (eval echo configure:5034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4913 { (eval echo configure:4914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5035 if test -z "$ac_err"; then 4915 if test -z "$ac_err"; then
5036 rm -rf conftest* 4916 rm -rf conftest*
5037 eval "ac_cv_header_$ac_safe=yes" 4917 eval "ac_cv_header_$ac_safe=yes"
5038 else 4918 else
5045 rm -f conftest* 4925 rm -f conftest*
5046 fi 4926 fi
5047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5048 echo "$ac_t""yes" 1>&6 4928 echo "$ac_t""yes" 1>&6
5049 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 4929 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
5050 echo "configure:5051: checking for XawScrollbarSetThumb in -lXaw3d" >&5 4930 echo "configure:4931: checking for XawScrollbarSetThumb in -lXaw3d" >&5
5051 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4931 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
5052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5053 echo $ac_n "(cached) $ac_c" 1>&6 4933 echo $ac_n "(cached) $ac_c" 1>&6
5054 else 4934 else
5055 ac_save_LIBS="$LIBS" 4935 ac_save_LIBS="$LIBS"
5056 LIBS="-lXaw3d -lX11 $LIBS" 4936 LIBS="-lXaw3d -lX11 $LIBS"
5057 cat > conftest.$ac_ext <<EOF 4937 cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure" 4938 #line 4939 "configure"
5059 #include "confdefs.h" 4939 #include "confdefs.h"
5060 /* Override any gcc2 internal prototype to avoid an error. */ 4940 /* Override any gcc2 internal prototype to avoid an error. */
5061 /* We use char because int might match the return type of a gcc2 4941 /* We use char because int might match the return type of a gcc2
5062 builtin and then its argument prototype would still apply. */ 4942 builtin and then its argument prototype would still apply. */
5063 char XawScrollbarSetThumb(); 4943 char XawScrollbarSetThumb();
5064 4944
5065 int main() { 4945 int main() {
5066 XawScrollbarSetThumb() 4946 XawScrollbarSetThumb()
5067 ; return 0; } 4947 ; return 0; }
5068 EOF 4948 EOF
5069 if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5070 rm -rf conftest* 4950 rm -rf conftest*
5071 eval "ac_cv_lib_$ac_lib_var=yes" 4951 eval "ac_cv_lib_$ac_lib_var=yes"
5072 else 4952 else
5073 echo "configure: failed program was:" >&5 4953 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5 4954 cat conftest.$ac_ext >&5
5136 if test "${with_xpm}" != "no"; then 5016 if test "${with_xpm}" != "no"; then
5137 old_c_flags="${CFLAGS}" 5017 old_c_flags="${CFLAGS}"
5138 CFLAGS="${LD_SWITCH_X_SITE}" 5018 CFLAGS="${LD_SWITCH_X_SITE}"
5139 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 5019 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
5140 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 5020 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
5141 echo "configure:5142: checking for X11/xpm.h" >&5 5021 echo "configure:5022: checking for X11/xpm.h" >&5
5142 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6 5023 echo $ac_n "(cached) $ac_c" 1>&6
5144 else 5024 else
5145 cat > conftest.$ac_ext <<EOF 5025 cat > conftest.$ac_ext <<EOF
5146 #line 5147 "configure" 5026 #line 5027 "configure"
5147 #include "confdefs.h" 5027 #include "confdefs.h"
5148 #include <X11/xpm.h> 5028 #include <X11/xpm.h>
5149 EOF 5029 EOF
5150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5151 { (eval echo configure:5152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5031 { (eval echo configure:5032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5153 if test -z "$ac_err"; then 5033 if test -z "$ac_err"; then
5154 rm -rf conftest* 5034 rm -rf conftest*
5155 eval "ac_cv_header_$ac_safe=yes" 5035 eval "ac_cv_header_$ac_safe=yes"
5156 else 5036 else
5163 rm -f conftest* 5043 rm -f conftest*
5164 fi 5044 fi
5165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5166 echo "$ac_t""yes" 1>&6 5046 echo "$ac_t""yes" 1>&6
5167 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 5047 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
5168 echo "configure:5169: checking for XpmReadFileToPixmap in -lXpm" >&5 5048 echo "configure:5049: checking for XpmReadFileToPixmap in -lXpm" >&5
5169 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 5049 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
5170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6 5051 echo $ac_n "(cached) $ac_c" 1>&6
5172 else 5052 else
5173 ac_save_LIBS="$LIBS" 5053 ac_save_LIBS="$LIBS"
5174 LIBS="-lXpm -lX11 $LIBS" 5054 LIBS="-lXpm -lX11 $LIBS"
5175 cat > conftest.$ac_ext <<EOF 5055 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure" 5056 #line 5057 "configure"
5177 #include "confdefs.h" 5057 #include "confdefs.h"
5178 /* Override any gcc2 internal prototype to avoid an error. */ 5058 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2 5059 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */ 5060 builtin and then its argument prototype would still apply. */
5181 char XpmReadFileToPixmap(); 5061 char XpmReadFileToPixmap();
5182 5062
5183 int main() { 5063 int main() {
5184 XpmReadFileToPixmap() 5064 XpmReadFileToPixmap()
5185 ; return 0; } 5065 ; return 0; }
5186 EOF 5066 EOF
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5067 if { (eval echo configure:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5188 rm -rf conftest* 5068 rm -rf conftest*
5189 eval "ac_cv_lib_$ac_lib_var=yes" 5069 eval "ac_cv_lib_$ac_lib_var=yes"
5190 else 5070 else
5191 echo "configure: failed program was:" >&5 5071 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5 5072 cat conftest.$ac_ext >&5
5208 echo "$ac_t""no" 1>&6 5088 echo "$ac_t""no" 1>&6
5209 fi 5089 fi
5210 5090
5211 if test "${HAVE_XPM}" = "yes"; then 5091 if test "${HAVE_XPM}" = "yes"; then
5212 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 5092 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6
5213 echo "configure:5214: checking for XpmReturnAllocPixels preprocessor define" >&5 5093 echo "configure:5094: checking for XpmReturnAllocPixels preprocessor define" >&5
5214 cat > conftest.$ac_ext <<EOF 5094 cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure" 5095 #line 5096 "configure"
5216 #include "confdefs.h" 5096 #include "confdefs.h"
5217 #include "X11/xpm.h" 5097 #include "X11/xpm.h"
5218 #ifndef XpmReturnAllocPixels 5098 #ifndef XpmReturnAllocPixels
5219 no_return_alloc_pixels 5099 no_return_alloc_pixels
5220 #endif 5100 #endif
5253 if test "${with_jpeg}" != "no"; then 5133 if test "${with_jpeg}" != "no"; then
5254 old_c_flags="${CFLAGS}" 5134 old_c_flags="${CFLAGS}"
5255 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 5135 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
5256 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` 5136 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
5257 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 5137 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
5258 echo "configure:5259: checking for jerror.h" >&5 5138 echo "configure:5139: checking for jerror.h" >&5
5259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6 5140 echo $ac_n "(cached) $ac_c" 1>&6
5261 else 5141 else
5262 cat > conftest.$ac_ext <<EOF 5142 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure" 5143 #line 5144 "configure"
5264 #include "confdefs.h" 5144 #include "confdefs.h"
5265 #include <jerror.h> 5145 #include <jerror.h>
5266 EOF 5146 EOF
5267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5268 { (eval echo configure:5269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5148 { (eval echo configure:5149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5270 if test -z "$ac_err"; then 5150 if test -z "$ac_err"; then
5271 rm -rf conftest* 5151 rm -rf conftest*
5272 eval "ac_cv_header_$ac_safe=yes" 5152 eval "ac_cv_header_$ac_safe=yes"
5273 else 5153 else
5280 rm -f conftest* 5160 rm -f conftest*
5281 fi 5161 fi
5282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5283 echo "$ac_t""yes" 1>&6 5163 echo "$ac_t""yes" 1>&6
5284 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 5164 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5285 echo "configure:5286: checking for jpeg_destroy_compress in -ljpeg" >&5 5165 echo "configure:5166: checking for jpeg_destroy_compress in -ljpeg" >&5
5286 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 5166 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6 5168 echo $ac_n "(cached) $ac_c" 1>&6
5289 else 5169 else
5290 ac_save_LIBS="$LIBS" 5170 ac_save_LIBS="$LIBS"
5291 LIBS="-ljpeg -lX11 $LIBS" 5171 LIBS="-ljpeg -lX11 $LIBS"
5292 cat > conftest.$ac_ext <<EOF 5172 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure" 5173 #line 5174 "configure"
5294 #include "confdefs.h" 5174 #include "confdefs.h"
5295 /* Override any gcc2 internal prototype to avoid an error. */ 5175 /* Override any gcc2 internal prototype to avoid an error. */
5296 /* We use char because int might match the return type of a gcc2 5176 /* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */ 5177 builtin and then its argument prototype would still apply. */
5298 char jpeg_destroy_compress(); 5178 char jpeg_destroy_compress();
5299 5179
5300 int main() { 5180 int main() {
5301 jpeg_destroy_compress() 5181 jpeg_destroy_compress()
5302 ; return 0; } 5182 ; return 0; }
5303 EOF 5183 EOF
5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5184 if { (eval echo configure:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5305 rm -rf conftest* 5185 rm -rf conftest*
5306 eval "ac_cv_lib_$ac_lib_var=yes" 5186 eval "ac_cv_lib_$ac_lib_var=yes"
5307 else 5187 else
5308 echo "configure: failed program was:" >&5 5188 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5 5189 cat conftest.$ac_ext >&5
5342 if test "${with_png}" != "no"; then 5222 if test "${with_png}" != "no"; then
5343 old_c_flags="${CFLAGS}" 5223 old_c_flags="${CFLAGS}"
5344 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 5224 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
5345 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 5225 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5346 echo $ac_n "checking for png.h""... $ac_c" 1>&6 5226 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5347 echo "configure:5348: checking for png.h" >&5 5227 echo "configure:5228: checking for png.h" >&5
5348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6 5229 echo $ac_n "(cached) $ac_c" 1>&6
5350 else 5230 else
5351 cat > conftest.$ac_ext <<EOF 5231 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure" 5232 #line 5233 "configure"
5353 #include "confdefs.h" 5233 #include "confdefs.h"
5354 #include <png.h> 5234 #include <png.h>
5355 EOF 5235 EOF
5356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5357 { (eval echo configure:5358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5237 { (eval echo configure:5238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5359 if test -z "$ac_err"; then 5239 if test -z "$ac_err"; then
5360 rm -rf conftest* 5240 rm -rf conftest*
5361 eval "ac_cv_header_$ac_safe=yes" 5241 eval "ac_cv_header_$ac_safe=yes"
5362 else 5242 else
5369 rm -f conftest* 5249 rm -f conftest*
5370 fi 5250 fi
5371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5372 echo "$ac_t""yes" 1>&6 5252 echo "$ac_t""yes" 1>&6
5373 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6 5253 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6
5374 echo "configure:5375: checking for png_get_channels in -lpng" >&5 5254 echo "configure:5255: checking for png_get_channels in -lpng" >&5
5375 ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'` 5255 ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`
5376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6 5257 echo $ac_n "(cached) $ac_c" 1>&6
5378 else 5258 else
5379 ac_save_LIBS="$LIBS" 5259 ac_save_LIBS="$LIBS"
5380 LIBS="-lpng -lX11 -lz -lm $LIBS" 5260 LIBS="-lpng -lX11 -lz -lm $LIBS"
5381 cat > conftest.$ac_ext <<EOF 5261 cat > conftest.$ac_ext <<EOF
5382 #line 5383 "configure" 5262 #line 5263 "configure"
5383 #include "confdefs.h" 5263 #include "confdefs.h"
5384 /* Override any gcc2 internal prototype to avoid an error. */ 5264 /* Override any gcc2 internal prototype to avoid an error. */
5385 /* We use char because int might match the return type of a gcc2 5265 /* We use char because int might match the return type of a gcc2
5386 builtin and then its argument prototype would still apply. */ 5266 builtin and then its argument prototype would still apply. */
5387 char png_get_channels(); 5267 char png_get_channels();
5388 5268
5389 int main() { 5269 int main() {
5390 png_get_channels() 5270 png_get_channels()
5391 ; return 0; } 5271 ; return 0; }
5392 EOF 5272 EOF
5393 if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5273 if { (eval echo configure:5274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5394 rm -rf conftest* 5274 rm -rf conftest*
5395 eval "ac_cv_lib_$ac_lib_var=yes" 5275 eval "ac_cv_lib_$ac_lib_var=yes"
5396 else 5276 else
5397 echo "configure: failed program was:" >&5 5277 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5 5278 cat conftest.$ac_ext >&5
5431 if test "${with_tiff}" != "no"; then 5311 if test "${with_tiff}" != "no"; then
5432 old_c_flags="${CFLAGS}" 5312 old_c_flags="${CFLAGS}"
5433 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 5313 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
5434 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 5314 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5435 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 5315 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5436 echo "configure:5437: checking for tiffio.h" >&5 5316 echo "configure:5317: checking for tiffio.h" >&5
5437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6 5318 echo $ac_n "(cached) $ac_c" 1>&6
5439 else 5319 else
5440 cat > conftest.$ac_ext <<EOF 5320 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure" 5321 #line 5322 "configure"
5442 #include "confdefs.h" 5322 #include "confdefs.h"
5443 #include <tiffio.h> 5323 #include <tiffio.h>
5444 EOF 5324 EOF
5445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5446 { (eval echo configure:5447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5326 { (eval echo configure:5327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5448 if test -z "$ac_err"; then 5328 if test -z "$ac_err"; then
5449 rm -rf conftest* 5329 rm -rf conftest*
5450 eval "ac_cv_header_$ac_safe=yes" 5330 eval "ac_cv_header_$ac_safe=yes"
5451 else 5331 else
5461 echo "$ac_t""yes" 1>&6 5341 echo "$ac_t""yes" 1>&6
5462 tifflibs="-lX11 -lz -lm" 5342 tifflibs="-lX11 -lz -lm"
5463 # At least one tiff package requires the jpeg library. 5343 # At least one tiff package requires the jpeg library.
5464 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 5344 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
5465 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 5345 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5466 echo "configure:5467: checking for TIFFGetVersion in -ltiff" >&5 5346 echo "configure:5347: checking for TIFFGetVersion in -ltiff" >&5
5467 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 5347 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6 5349 echo $ac_n "(cached) $ac_c" 1>&6
5470 else 5350 else
5471 ac_save_LIBS="$LIBS" 5351 ac_save_LIBS="$LIBS"
5472 LIBS="-ltiff $tifflibs $LIBS" 5352 LIBS="-ltiff $tifflibs $LIBS"
5473 cat > conftest.$ac_ext <<EOF 5353 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure" 5354 #line 5355 "configure"
5475 #include "confdefs.h" 5355 #include "confdefs.h"
5476 /* Override any gcc2 internal prototype to avoid an error. */ 5356 /* Override any gcc2 internal prototype to avoid an error. */
5477 /* We use char because int might match the return type of a gcc2 5357 /* We use char because int might match the return type of a gcc2
5478 builtin and then its argument prototype would still apply. */ 5358 builtin and then its argument prototype would still apply. */
5479 char TIFFGetVersion(); 5359 char TIFFGetVersion();
5480 5360
5481 int main() { 5361 int main() {
5482 TIFFGetVersion() 5362 TIFFGetVersion()
5483 ; return 0; } 5363 ; return 0; }
5484 EOF 5364 EOF
5485 if { (eval echo configure:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5486 rm -rf conftest* 5366 rm -rf conftest*
5487 eval "ac_cv_lib_$ac_lib_var=yes" 5367 eval "ac_cv_lib_$ac_lib_var=yes"
5488 else 5368 else
5489 echo "configure: failed program was:" >&5 5369 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5 5370 cat conftest.$ac_ext >&5
5523 if test "${with_gif}" != "no"; then 5403 if test "${with_gif}" != "no"; then
5524 old_c_flags="${CFLAGS}" 5404 old_c_flags="${CFLAGS}"
5525 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 5405 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
5526 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 5406 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5527 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 5407 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5528 echo "configure:5529: checking for gif_lib.h" >&5 5408 echo "configure:5409: checking for gif_lib.h" >&5
5529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5530 echo $ac_n "(cached) $ac_c" 1>&6 5410 echo $ac_n "(cached) $ac_c" 1>&6
5531 else 5411 else
5532 cat > conftest.$ac_ext <<EOF 5412 cat > conftest.$ac_ext <<EOF
5533 #line 5534 "configure" 5413 #line 5414 "configure"
5534 #include "confdefs.h" 5414 #include "confdefs.h"
5535 #include <gif_lib.h> 5415 #include <gif_lib.h>
5536 EOF 5416 EOF
5537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5538 { (eval echo configure:5539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5418 { (eval echo configure:5419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5540 if test -z "$ac_err"; then 5420 if test -z "$ac_err"; then
5541 rm -rf conftest* 5421 rm -rf conftest*
5542 eval "ac_cv_header_$ac_safe=yes" 5422 eval "ac_cv_header_$ac_safe=yes"
5543 else 5423 else
5550 rm -f conftest* 5430 rm -f conftest*
5551 fi 5431 fi
5552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5553 echo "$ac_t""yes" 1>&6 5433 echo "$ac_t""yes" 1>&6
5554 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 5434 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
5555 echo "configure:5556: checking for DGifOpen in -lungif" >&5 5435 echo "configure:5436: checking for DGifOpen in -lungif" >&5
5556 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` 5436 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
5557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6 5438 echo $ac_n "(cached) $ac_c" 1>&6
5559 else 5439 else
5560 ac_save_LIBS="$LIBS" 5440 ac_save_LIBS="$LIBS"
5561 LIBS="-lungif -lX11 $LIBS" 5441 LIBS="-lungif -lX11 $LIBS"
5562 cat > conftest.$ac_ext <<EOF 5442 cat > conftest.$ac_ext <<EOF
5563 #line 5564 "configure" 5443 #line 5444 "configure"
5564 #include "confdefs.h" 5444 #include "confdefs.h"
5565 /* Override any gcc2 internal prototype to avoid an error. */ 5445 /* Override any gcc2 internal prototype to avoid an error. */
5566 /* We use char because int might match the return type of a gcc2 5446 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */ 5447 builtin and then its argument prototype would still apply. */
5568 char DGifOpen(); 5448 char DGifOpen();
5569 5449
5570 int main() { 5450 int main() {
5571 DGifOpen() 5451 DGifOpen()
5572 ; return 0; } 5452 ; return 0; }
5573 EOF 5453 EOF
5574 if { (eval echo configure:5575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5454 if { (eval echo configure:5455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5575 rm -rf conftest* 5455 rm -rf conftest*
5576 eval "ac_cv_lib_$ac_lib_var=yes" 5456 eval "ac_cv_lib_$ac_lib_var=yes"
5577 else 5457 else
5578 echo "configure: failed program was:" >&5 5458 echo "configure: failed program was:" >&5
5579 cat conftest.$ac_ext >&5 5459 cat conftest.$ac_ext >&5
5606 fi 5486 fi
5607 fi 5487 fi
5608 5488
5609 # If netdb.h doesn't declare h_errno, we must declare it by hand. 5489 # If netdb.h doesn't declare h_errno, we must declare it by hand.
5610 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 5490 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
5611 echo "configure:5612: checking whether netdb declares h_errno" >&5 5491 echo "configure:5492: checking whether netdb declares h_errno" >&5
5612 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 5492 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6 5493 echo $ac_n "(cached) $ac_c" 1>&6
5614 else 5494 else
5615 cat > conftest.$ac_ext <<EOF 5495 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure" 5496 #line 5497 "configure"
5617 #include "confdefs.h" 5497 #include "confdefs.h"
5618 #include <netdb.h> 5498 #include <netdb.h>
5619 int main() { 5499 int main() {
5620 return h_errno; 5500 return h_errno;
5621 ; return 0; } 5501 ; return 0; }
5622 EOF 5502 EOF
5623 if { (eval echo configure:5624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5503 if { (eval echo configure:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624 rm -rf conftest* 5504 rm -rf conftest*
5625 emacs_cv_netdb_declares_h_errno=yes 5505 emacs_cv_netdb_declares_h_errno=yes
5626 else 5506 else
5627 echo "configure: failed program was:" >&5 5507 echo "configure: failed program was:" >&5
5628 cat conftest.$ac_ext >&5 5508 cat conftest.$ac_ext >&5
5641 fi 5521 fi
5642 5522
5643 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5523 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5644 # for constant arguments. Useless! 5524 # for constant arguments. Useless!
5645 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 5525 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5646 echo "configure:5647: checking for working alloca.h" >&5 5526 echo "configure:5527: checking for working alloca.h" >&5
5647 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 5527 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6 5528 echo $ac_n "(cached) $ac_c" 1>&6
5649 else 5529 else
5650 cat > conftest.$ac_ext <<EOF 5530 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure" 5531 #line 5532 "configure"
5652 #include "confdefs.h" 5532 #include "confdefs.h"
5653 #include <alloca.h> 5533 #include <alloca.h>
5654 int main() { 5534 int main() {
5655 char *p = alloca(2 * sizeof(int)); 5535 char *p = alloca(2 * sizeof(int));
5656 ; return 0; } 5536 ; return 0; }
5657 EOF 5537 EOF
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5538 if { (eval echo configure:5539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5659 rm -rf conftest* 5539 rm -rf conftest*
5660 ac_cv_header_alloca_h=yes 5540 ac_cv_header_alloca_h=yes
5661 else 5541 else
5662 echo "configure: failed program was:" >&5 5542 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5 5543 cat conftest.$ac_ext >&5
5674 EOF 5554 EOF
5675 5555
5676 fi 5556 fi
5677 5557
5678 echo $ac_n "checking for alloca""... $ac_c" 1>&6 5558 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5679 echo "configure:5680: checking for alloca" >&5 5559 echo "configure:5560: checking for alloca" >&5
5680 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 5560 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6 5561 echo $ac_n "(cached) $ac_c" 1>&6
5682 else 5562 else
5683 cat > conftest.$ac_ext <<EOF 5563 cat > conftest.$ac_ext <<EOF
5684 #line 5685 "configure" 5564 #line 5565 "configure"
5685 #include "confdefs.h" 5565 #include "confdefs.h"
5686 5566
5687 #ifdef __GNUC__ 5567 #ifdef __GNUC__
5688 # define alloca __builtin_alloca 5568 # define alloca __builtin_alloca
5689 #else 5569 #else
5707 5587
5708 int main() { 5588 int main() {
5709 char *p = (char *) alloca(1); 5589 char *p = (char *) alloca(1);
5710 ; return 0; } 5590 ; return 0; }
5711 EOF 5591 EOF
5712 if { (eval echo configure:5713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5592 if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5713 rm -rf conftest* 5593 rm -rf conftest*
5714 ac_cv_func_alloca_works=yes 5594 ac_cv_func_alloca_works=yes
5715 else 5595 else
5716 echo "configure: failed program was:" >&5 5596 echo "configure: failed program was:" >&5
5717 cat conftest.$ac_ext >&5 5597 cat conftest.$ac_ext >&5
5739 #define C_ALLOCA 1 5619 #define C_ALLOCA 1
5740 EOF 5620 EOF
5741 5621
5742 5622
5743 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 5623 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5744 echo "configure:5745: checking whether alloca needs Cray hooks" >&5 5624 echo "configure:5625: checking whether alloca needs Cray hooks" >&5
5745 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 5625 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6 5626 echo $ac_n "(cached) $ac_c" 1>&6
5747 else 5627 else
5748 cat > conftest.$ac_ext <<EOF 5628 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure" 5629 #line 5630 "configure"
5750 #include "confdefs.h" 5630 #include "confdefs.h"
5751 #if defined(CRAY) && ! defined(CRAY2) 5631 #if defined(CRAY) && ! defined(CRAY2)
5752 webecray 5632 webecray
5753 #else 5633 #else
5754 wenotbecray 5634 wenotbecray
5769 5649
5770 echo "$ac_t""$ac_cv_os_cray" 1>&6 5650 echo "$ac_t""$ac_cv_os_cray" 1>&6
5771 if test $ac_cv_os_cray = yes; then 5651 if test $ac_cv_os_cray = yes; then
5772 for ac_func in _getb67 GETB67 getb67; do 5652 for ac_func in _getb67 GETB67 getb67; do
5773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5774 echo "configure:5775: checking for $ac_func" >&5 5654 echo "configure:5655: checking for $ac_func" >&5
5775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5776 echo $ac_n "(cached) $ac_c" 1>&6 5656 echo $ac_n "(cached) $ac_c" 1>&6
5777 else 5657 else
5778 cat > conftest.$ac_ext <<EOF 5658 cat > conftest.$ac_ext <<EOF
5779 #line 5780 "configure" 5659 #line 5660 "configure"
5780 #include "confdefs.h" 5660 #include "confdefs.h"
5781 /* System header to define __stub macros and hopefully few prototypes, 5661 /* System header to define __stub macros and hopefully few prototypes,
5782 which can conflict with char $ac_func(); below. */ 5662 which can conflict with char $ac_func(); below. */
5783 #include <assert.h> 5663 #include <assert.h>
5784 /* Override any gcc2 internal prototype to avoid an error. */ 5664 /* Override any gcc2 internal prototype to avoid an error. */
5797 $ac_func(); 5677 $ac_func();
5798 #endif 5678 #endif
5799 5679
5800 ; return 0; } 5680 ; return 0; }
5801 EOF 5681 EOF
5802 if { (eval echo configure:5803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5682 if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5803 rm -rf conftest* 5683 rm -rf conftest*
5804 eval "ac_cv_func_$ac_func=yes" 5684 eval "ac_cv_func_$ac_func=yes"
5805 else 5685 else
5806 echo "configure: failed program was:" >&5 5686 echo "configure: failed program was:" >&5
5807 cat conftest.$ac_ext >&5 5687 cat conftest.$ac_ext >&5
5824 5704
5825 done 5705 done
5826 fi 5706 fi
5827 5707
5828 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 5708 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5829 echo "configure:5830: checking stack direction for C alloca" >&5 5709 echo "configure:5710: checking stack direction for C alloca" >&5
5830 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 5710 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6 5711 echo $ac_n "(cached) $ac_c" 1>&6
5832 else 5712 else
5833 if test "$cross_compiling" = yes; then 5713 if test "$cross_compiling" = yes; then
5834 ac_cv_c_stack_direction=0 5714 ac_cv_c_stack_direction=0
5835 else 5715 else
5836 cat > conftest.$ac_ext <<EOF 5716 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure" 5717 #line 5718 "configure"
5838 #include "confdefs.h" 5718 #include "confdefs.h"
5839 find_stack_direction () 5719 find_stack_direction ()
5840 { 5720 {
5841 static char *addr = 0; 5721 static char *addr = 0;
5842 auto char dummy; 5722 auto char dummy;
5851 main () 5731 main ()
5852 { 5732 {
5853 exit (find_stack_direction() < 0); 5733 exit (find_stack_direction() < 0);
5854 } 5734 }
5855 EOF 5735 EOF
5856 if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5736 if { (eval echo configure:5737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5857 then 5737 then
5858 ac_cv_c_stack_direction=1 5738 ac_cv_c_stack_direction=1
5859 else 5739 else
5860 echo "configure: failed program was:" >&5 5740 echo "configure: failed program was:" >&5
5861 cat conftest.$ac_ext >&5 5741 cat conftest.$ac_ext >&5
5876 5756
5877 5757
5878 # fmod, logb, and frexp are found in -lm on most systems. 5758 # fmod, logb, and frexp are found in -lm on most systems.
5879 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 5759 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5880 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 5760 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5881 echo "configure:5882: checking for sqrt in -lm" >&5 5761 echo "configure:5762: checking for sqrt in -lm" >&5
5882 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 5762 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6 5764 echo $ac_n "(cached) $ac_c" 1>&6
5885 else 5765 else
5886 ac_save_LIBS="$LIBS" 5766 ac_save_LIBS="$LIBS"
5887 LIBS="-lm $LIBS" 5767 LIBS="-lm $LIBS"
5888 cat > conftest.$ac_ext <<EOF 5768 cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure" 5769 #line 5770 "configure"
5890 #include "confdefs.h" 5770 #include "confdefs.h"
5891 /* Override any gcc2 internal prototype to avoid an error. */ 5771 /* Override any gcc2 internal prototype to avoid an error. */
5892 /* We use char because int might match the return type of a gcc2 5772 /* We use char because int might match the return type of a gcc2
5893 builtin and then its argument prototype would still apply. */ 5773 builtin and then its argument prototype would still apply. */
5894 char sqrt(); 5774 char sqrt();
5895 5775
5896 int main() { 5776 int main() {
5897 sqrt() 5777 sqrt()
5898 ; return 0; } 5778 ; return 0; }
5899 EOF 5779 EOF
5900 if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5780 if { (eval echo configure:5781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5901 rm -rf conftest* 5781 rm -rf conftest*
5902 eval "ac_cv_lib_$ac_lib_var=yes" 5782 eval "ac_cv_lib_$ac_lib_var=yes"
5903 else 5783 else
5904 echo "configure: failed program was:" >&5 5784 echo "configure: failed program was:" >&5
5905 cat conftest.$ac_ext >&5 5785 cat conftest.$ac_ext >&5
5925 fi 5805 fi
5926 5806
5927 5807
5928 # Check for mail-locking functions in a "mail" library 5808 # Check for mail-locking functions in a "mail" library
5929 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 5809 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5930 echo "configure:5931: checking for maillock in -lmail" >&5 5810 echo "configure:5811: checking for maillock in -lmail" >&5
5931 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 5811 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5933 echo $ac_n "(cached) $ac_c" 1>&6 5813 echo $ac_n "(cached) $ac_c" 1>&6
5934 else 5814 else
5935 ac_save_LIBS="$LIBS" 5815 ac_save_LIBS="$LIBS"
5936 LIBS="-lmail $LIBS" 5816 LIBS="-lmail $LIBS"
5937 cat > conftest.$ac_ext <<EOF 5817 cat > conftest.$ac_ext <<EOF
5938 #line 5939 "configure" 5818 #line 5819 "configure"
5939 #include "confdefs.h" 5819 #include "confdefs.h"
5940 /* Override any gcc2 internal prototype to avoid an error. */ 5820 /* Override any gcc2 internal prototype to avoid an error. */
5941 /* We use char because int might match the return type of a gcc2 5821 /* We use char because int might match the return type of a gcc2
5942 builtin and then its argument prototype would still apply. */ 5822 builtin and then its argument prototype would still apply. */
5943 char maillock(); 5823 char maillock();
5944 5824
5945 int main() { 5825 int main() {
5946 maillock() 5826 maillock()
5947 ; return 0; } 5827 ; return 0; }
5948 EOF 5828 EOF
5949 if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5829 if { (eval echo configure:5830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5950 rm -rf conftest* 5830 rm -rf conftest*
5951 eval "ac_cv_lib_$ac_lib_var=yes" 5831 eval "ac_cv_lib_$ac_lib_var=yes"
5952 else 5832 else
5953 echo "configure: failed program was:" >&5 5833 echo "configure: failed program was:" >&5
5954 cat conftest.$ac_ext >&5 5834 cat conftest.$ac_ext >&5
5972 else 5852 else
5973 echo "$ac_t""no" 1>&6 5853 echo "$ac_t""no" 1>&6
5974 fi 5854 fi
5975 5855
5976 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 5856 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5977 echo "configure:5978: checking for maillock in -llockfile" >&5 5857 echo "configure:5858: checking for maillock in -llockfile" >&5
5978 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 5858 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5980 echo $ac_n "(cached) $ac_c" 1>&6 5860 echo $ac_n "(cached) $ac_c" 1>&6
5981 else 5861 else
5982 ac_save_LIBS="$LIBS" 5862 ac_save_LIBS="$LIBS"
5983 LIBS="-llockfile $LIBS" 5863 LIBS="-llockfile $LIBS"
5984 cat > conftest.$ac_ext <<EOF 5864 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure" 5865 #line 5866 "configure"
5986 #include "confdefs.h" 5866 #include "confdefs.h"
5987 /* Override any gcc2 internal prototype to avoid an error. */ 5867 /* Override any gcc2 internal prototype to avoid an error. */
5988 /* We use char because int might match the return type of a gcc2 5868 /* We use char because int might match the return type of a gcc2
5989 builtin and then its argument prototype would still apply. */ 5869 builtin and then its argument prototype would still apply. */
5990 char maillock(); 5870 char maillock();
5991 5871
5992 int main() { 5872 int main() {
5993 maillock() 5873 maillock()
5994 ; return 0; } 5874 ; return 0; }
5995 EOF 5875 EOF
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5997 rm -rf conftest* 5877 rm -rf conftest*
5998 eval "ac_cv_lib_$ac_lib_var=yes" 5878 eval "ac_cv_lib_$ac_lib_var=yes"
5999 else 5879 else
6000 echo "configure: failed program was:" >&5 5880 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5 5881 cat conftest.$ac_ext >&5
6025 # (no liblockfile.a installed), ensure that we don't need to. 5905 # (no liblockfile.a installed), ensure that we don't need to.
6026 if test "$ac_cv_lib_lockfile_maillock" = no; then 5906 if test "$ac_cv_lib_lockfile_maillock" = no; then
6027 # Extract the first word of "liblockfile.so", so it can be a program name with args. 5907 # Extract the first word of "liblockfile.so", so it can be a program name with args.
6028 set dummy liblockfile.so; ac_word=$2 5908 set dummy liblockfile.so; ac_word=$2
6029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6030 echo "configure:6031: checking for $ac_word" >&5 5910 echo "configure:5911: checking for $ac_word" >&5
6031 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 5911 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6 5912 echo $ac_n "(cached) $ac_c" 1>&6
6033 else 5913 else
6034 if test -n "$liblockfile"; then 5914 if test -n "$liblockfile"; then
6035 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 5915 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
6066 else : 5946 else :
6067 fi 5947 fi
6068 for ac_func in touchlock 5948 for ac_func in touchlock
6069 do 5949 do
6070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6071 echo "configure:6072: checking for $ac_func" >&5 5951 echo "configure:5952: checking for $ac_func" >&5
6072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6073 echo $ac_n "(cached) $ac_c" 1>&6 5953 echo $ac_n "(cached) $ac_c" 1>&6
6074 else 5954 else
6075 cat > conftest.$ac_ext <<EOF 5955 cat > conftest.$ac_ext <<EOF
6076 #line 6077 "configure" 5956 #line 5957 "configure"
6077 #include "confdefs.h" 5957 #include "confdefs.h"
6078 /* System header to define __stub macros and hopefully few prototypes, 5958 /* System header to define __stub macros and hopefully few prototypes,
6079 which can conflict with char $ac_func(); below. */ 5959 which can conflict with char $ac_func(); below. */
6080 #include <assert.h> 5960 #include <assert.h>
6081 /* Override any gcc2 internal prototype to avoid an error. */ 5961 /* Override any gcc2 internal prototype to avoid an error. */
6094 $ac_func(); 5974 $ac_func();
6095 #endif 5975 #endif
6096 5976
6097 ; return 0; } 5977 ; return 0; }
6098 EOF 5978 EOF
6099 if { (eval echo configure:6100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5979 if { (eval echo configure:5980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6100 rm -rf conftest* 5980 rm -rf conftest*
6101 eval "ac_cv_func_$ac_func=yes" 5981 eval "ac_cv_func_$ac_func=yes"
6102 else 5982 else
6103 echo "configure: failed program was:" >&5 5983 echo "configure: failed program was:" >&5
6104 cat conftest.$ac_ext >&5 5984 cat conftest.$ac_ext >&5
6122 6002
6123 for ac_hdr in maillock.h 6003 for ac_hdr in maillock.h
6124 do 6004 do
6125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6005 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6127 echo "configure:6128: checking for $ac_hdr" >&5 6007 echo "configure:6008: checking for $ac_hdr" >&5
6128 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6008 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6129 echo $ac_n "(cached) $ac_c" 1>&6 6009 echo $ac_n "(cached) $ac_c" 1>&6
6130 else 6010 else
6131 cat > conftest.$ac_ext <<EOF 6011 cat > conftest.$ac_ext <<EOF
6132 #line 6133 "configure" 6012 #line 6013 "configure"
6133 #include "confdefs.h" 6013 #include "confdefs.h"
6134 #include <$ac_hdr> 6014 #include <$ac_hdr>
6135 EOF 6015 EOF
6136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6137 { (eval echo configure:6138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6017 { (eval echo configure:6018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6139 if test -z "$ac_err"; then 6019 if test -z "$ac_err"; then
6140 rm -rf conftest* 6020 rm -rf conftest*
6141 eval "ac_cv_header_$ac_safe=yes" 6021 eval "ac_cv_header_$ac_safe=yes"
6142 else 6022 else
6168 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ 6048 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
6169 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ 6049 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
6170 gai_strerror mkstemp 6050 gai_strerror mkstemp
6171 do 6051 do
6172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6173 echo "configure:6174: checking for $ac_func" >&5 6053 echo "configure:6054: checking for $ac_func" >&5
6174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6 6055 echo $ac_n "(cached) $ac_c" 1>&6
6176 else 6056 else
6177 cat > conftest.$ac_ext <<EOF 6057 cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure" 6058 #line 6059 "configure"
6179 #include "confdefs.h" 6059 #include "confdefs.h"
6180 /* System header to define __stub macros and hopefully few prototypes, 6060 /* System header to define __stub macros and hopefully few prototypes,
6181 which can conflict with char $ac_func(); below. */ 6061 which can conflict with char $ac_func(); below. */
6182 #include <assert.h> 6062 #include <assert.h>
6183 /* Override any gcc2 internal prototype to avoid an error. */ 6063 /* Override any gcc2 internal prototype to avoid an error. */
6196 $ac_func(); 6076 $ac_func();
6197 #endif 6077 #endif
6198 6078
6199 ; return 0; } 6079 ; return 0; }
6200 EOF 6080 EOF
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6202 rm -rf conftest* 6082 rm -rf conftest*
6203 eval "ac_cv_func_$ac_func=yes" 6083 eval "ac_cv_func_$ac_func=yes"
6204 else 6084 else
6205 echo "configure: failed program was:" >&5 6085 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5 6086 cat conftest.$ac_ext >&5
6225 6105
6226 for ac_hdr in sys/time.h unistd.h 6106 for ac_hdr in sys/time.h unistd.h
6227 do 6107 do
6228 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6108 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6229 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6230 echo "configure:6231: checking for $ac_hdr" >&5 6110 echo "configure:6111: checking for $ac_hdr" >&5
6231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6 6112 echo $ac_n "(cached) $ac_c" 1>&6
6233 else 6113 else
6234 cat > conftest.$ac_ext <<EOF 6114 cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure" 6115 #line 6116 "configure"
6236 #include "confdefs.h" 6116 #include "confdefs.h"
6237 #include <$ac_hdr> 6117 #include <$ac_hdr>
6238 EOF 6118 EOF
6239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6240 { (eval echo configure:6241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6120 { (eval echo configure:6121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6242 if test -z "$ac_err"; then 6122 if test -z "$ac_err"; then
6243 rm -rf conftest* 6123 rm -rf conftest*
6244 eval "ac_cv_header_$ac_safe=yes" 6124 eval "ac_cv_header_$ac_safe=yes"
6245 else 6125 else
6264 done 6144 done
6265 6145
6266 for ac_func in alarm 6146 for ac_func in alarm
6267 do 6147 do
6268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6269 echo "configure:6270: checking for $ac_func" >&5 6149 echo "configure:6150: checking for $ac_func" >&5
6270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6 6151 echo $ac_n "(cached) $ac_c" 1>&6
6272 else 6152 else
6273 cat > conftest.$ac_ext <<EOF 6153 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure" 6154 #line 6155 "configure"
6275 #include "confdefs.h" 6155 #include "confdefs.h"
6276 /* System header to define __stub macros and hopefully few prototypes, 6156 /* System header to define __stub macros and hopefully few prototypes,
6277 which can conflict with char $ac_func(); below. */ 6157 which can conflict with char $ac_func(); below. */
6278 #include <assert.h> 6158 #include <assert.h>
6279 /* Override any gcc2 internal prototype to avoid an error. */ 6159 /* Override any gcc2 internal prototype to avoid an error. */
6292 $ac_func(); 6172 $ac_func();
6293 #endif 6173 #endif
6294 6174
6295 ; return 0; } 6175 ; return 0; }
6296 EOF 6176 EOF
6297 if { (eval echo configure:6298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6177 if { (eval echo configure:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6298 rm -rf conftest* 6178 rm -rf conftest*
6299 eval "ac_cv_func_$ac_func=yes" 6179 eval "ac_cv_func_$ac_func=yes"
6300 else 6180 else
6301 echo "configure: failed program was:" >&5 6181 echo "configure: failed program was:" >&5
6302 cat conftest.$ac_ext >&5 6182 cat conftest.$ac_ext >&5
6317 echo "$ac_t""no" 1>&6 6197 echo "$ac_t""no" 1>&6
6318 fi 6198 fi
6319 done 6199 done
6320 6200
6321 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 6201 echo $ac_n "checking for working mktime""... $ac_c" 1>&6
6322 echo "configure:6323: checking for working mktime" >&5 6202 echo "configure:6203: checking for working mktime" >&5
6323 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then 6203 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6 6204 echo $ac_n "(cached) $ac_c" 1>&6
6325 else 6205 else
6326 if test "$cross_compiling" = yes; then 6206 if test "$cross_compiling" = yes; then
6327 ac_cv_func_working_mktime=no 6207 ac_cv_func_working_mktime=no
6328 else 6208 else
6329 cat > conftest.$ac_ext <<EOF 6209 cat > conftest.$ac_ext <<EOF
6330 #line 6331 "configure" 6210 #line 6211 "configure"
6331 #include "confdefs.h" 6211 #include "confdefs.h"
6332 /* Test program from Paul Eggert (eggert@twinsun.com) 6212 /* Test program from Paul Eggert (eggert@twinsun.com)
6333 and Tony Leneis (tony@plaza.ds.adp.com). */ 6213 and Tony Leneis (tony@plaza.ds.adp.com). */
6334 #if TIME_WITH_SYS_TIME 6214 #if TIME_WITH_SYS_TIME
6335 # include <sys/time.h> 6215 # include <sys/time.h>
6474 irix_6_4_bug (); 6354 irix_6_4_bug ();
6475 spring_forward_gap (); 6355 spring_forward_gap ();
6476 exit (0); 6356 exit (0);
6477 } 6357 }
6478 EOF 6358 EOF
6479 if { (eval echo configure:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6359 if { (eval echo configure:6360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6480 then 6360 then
6481 ac_cv_func_working_mktime=yes 6361 ac_cv_func_working_mktime=yes
6482 else 6362 else
6483 echo "configure: failed program was:" >&5 6363 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5 6364 cat conftest.$ac_ext >&5
6506 6386
6507 # Some systems with -lutil have (and need) -lkvm as well, some do not. 6387 # Some systems with -lutil have (and need) -lkvm as well, some do not.
6508 # On Solaris, -lkvm requires nlist from -lelf, so check that first 6388 # On Solaris, -lkvm requires nlist from -lelf, so check that first
6509 # to get the right answer into the cache. 6389 # to get the right answer into the cache.
6510 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 6390 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
6511 echo "configure:6512: checking for elf_begin in -lelf" >&5 6391 echo "configure:6392: checking for elf_begin in -lelf" >&5
6512 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` 6392 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
6513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6 6394 echo $ac_n "(cached) $ac_c" 1>&6
6515 else 6395 else
6516 ac_save_LIBS="$LIBS" 6396 ac_save_LIBS="$LIBS"
6517 LIBS="-lelf $LIBS" 6397 LIBS="-lelf $LIBS"
6518 cat > conftest.$ac_ext <<EOF 6398 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure" 6399 #line 6400 "configure"
6520 #include "confdefs.h" 6400 #include "confdefs.h"
6521 /* Override any gcc2 internal prototype to avoid an error. */ 6401 /* Override any gcc2 internal prototype to avoid an error. */
6522 /* We use char because int might match the return type of a gcc2 6402 /* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */ 6403 builtin and then its argument prototype would still apply. */
6524 char elf_begin(); 6404 char elf_begin();
6525 6405
6526 int main() { 6406 int main() {
6527 elf_begin() 6407 elf_begin()
6528 ; return 0; } 6408 ; return 0; }
6529 EOF 6409 EOF
6530 if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6531 rm -rf conftest* 6411 rm -rf conftest*
6532 eval "ac_cv_lib_$ac_lib_var=yes" 6412 eval "ac_cv_lib_$ac_lib_var=yes"
6533 else 6413 else
6534 echo "configure: failed program was:" >&5 6414 echo "configure: failed program was:" >&5
6535 cat conftest.$ac_ext >&5 6415 cat conftest.$ac_ext >&5
6546 else 6426 else
6547 echo "$ac_t""no" 1>&6 6427 echo "$ac_t""no" 1>&6
6548 fi 6428 fi
6549 6429
6550 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 6430 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
6551 echo "configure:6552: checking for kvm_open in -lkvm" >&5 6431 echo "configure:6432: checking for kvm_open in -lkvm" >&5
6552 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` 6432 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
6553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6 6434 echo $ac_n "(cached) $ac_c" 1>&6
6555 else 6435 else
6556 ac_save_LIBS="$LIBS" 6436 ac_save_LIBS="$LIBS"
6557 LIBS="-lkvm $LIBS" 6437 LIBS="-lkvm $LIBS"
6558 cat > conftest.$ac_ext <<EOF 6438 cat > conftest.$ac_ext <<EOF
6559 #line 6560 "configure" 6439 #line 6440 "configure"
6560 #include "confdefs.h" 6440 #include "confdefs.h"
6561 /* Override any gcc2 internal prototype to avoid an error. */ 6441 /* Override any gcc2 internal prototype to avoid an error. */
6562 /* We use char because int might match the return type of a gcc2 6442 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */ 6443 builtin and then its argument prototype would still apply. */
6564 char kvm_open(); 6444 char kvm_open();
6565 6445
6566 int main() { 6446 int main() {
6567 kvm_open() 6447 kvm_open()
6568 ; return 0; } 6448 ; return 0; }
6569 EOF 6449 EOF
6570 if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6450 if { (eval echo configure:6451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6571 rm -rf conftest* 6451 rm -rf conftest*
6572 eval "ac_cv_lib_$ac_lib_var=yes" 6452 eval "ac_cv_lib_$ac_lib_var=yes"
6573 else 6453 else
6574 echo "configure: failed program was:" >&5 6454 echo "configure: failed program was:" >&5
6575 cat conftest.$ac_ext >&5 6455 cat conftest.$ac_ext >&5
6587 echo "$ac_t""no" 1>&6 6467 echo "$ac_t""no" 1>&6
6588 fi 6468 fi
6589 6469
6590 # Check for the 4.4BSD definition of getloadavg. 6470 # Check for the 4.4BSD definition of getloadavg.
6591 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 6471 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
6592 echo "configure:6593: checking for getloadavg in -lutil" >&5 6472 echo "configure:6473: checking for getloadavg in -lutil" >&5
6593 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` 6473 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
6594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6595 echo $ac_n "(cached) $ac_c" 1>&6 6475 echo $ac_n "(cached) $ac_c" 1>&6
6596 else 6476 else
6597 ac_save_LIBS="$LIBS" 6477 ac_save_LIBS="$LIBS"
6598 LIBS="-lutil $LIBS" 6478 LIBS="-lutil $LIBS"
6599 cat > conftest.$ac_ext <<EOF 6479 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure" 6480 #line 6481 "configure"
6601 #include "confdefs.h" 6481 #include "confdefs.h"
6602 /* Override any gcc2 internal prototype to avoid an error. */ 6482 /* Override any gcc2 internal prototype to avoid an error. */
6603 /* We use char because int might match the return type of a gcc2 6483 /* We use char because int might match the return type of a gcc2
6604 builtin and then its argument prototype would still apply. */ 6484 builtin and then its argument prototype would still apply. */
6605 char getloadavg(); 6485 char getloadavg();
6606 6486
6607 int main() { 6487 int main() {
6608 getloadavg() 6488 getloadavg()
6609 ; return 0; } 6489 ; return 0; }
6610 EOF 6490 EOF
6611 if { (eval echo configure:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6491 if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6612 rm -rf conftest* 6492 rm -rf conftest*
6613 eval "ac_cv_lib_$ac_lib_var=yes" 6493 eval "ac_cv_lib_$ac_lib_var=yes"
6614 else 6494 else
6615 echo "configure: failed program was:" >&5 6495 echo "configure: failed program was:" >&5
6616 cat conftest.$ac_ext >&5 6496 cat conftest.$ac_ext >&5
6632 if test $ac_have_func = no; then 6512 if test $ac_have_func = no; then
6633 # There is a commonly available library for RS/6000 AIX. 6513 # There is a commonly available library for RS/6000 AIX.
6634 # Since it is not a standard part of AIX, it might be installed locally. 6514 # Since it is not a standard part of AIX, it might be installed locally.
6635 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" 6515 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
6636 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 6516 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
6637 echo "configure:6638: checking for getloadavg in -lgetloadavg" >&5 6517 echo "configure:6518: checking for getloadavg in -lgetloadavg" >&5
6638 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` 6518 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
6639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6 6520 echo $ac_n "(cached) $ac_c" 1>&6
6641 else 6521 else
6642 ac_save_LIBS="$LIBS" 6522 ac_save_LIBS="$LIBS"
6643 LIBS="-lgetloadavg $LIBS" 6523 LIBS="-lgetloadavg $LIBS"
6644 cat > conftest.$ac_ext <<EOF 6524 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure" 6525 #line 6526 "configure"
6646 #include "confdefs.h" 6526 #include "confdefs.h"
6647 /* Override any gcc2 internal prototype to avoid an error. */ 6527 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2 6528 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */ 6529 builtin and then its argument prototype would still apply. */
6650 char getloadavg(); 6530 char getloadavg();
6651 6531
6652 int main() { 6532 int main() {
6653 getloadavg() 6533 getloadavg()
6654 ; return 0; } 6534 ; return 0; }
6655 EOF 6535 EOF
6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6536 if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6657 rm -rf conftest* 6537 rm -rf conftest*
6658 eval "ac_cv_lib_$ac_lib_var=yes" 6538 eval "ac_cv_lib_$ac_lib_var=yes"
6659 else 6539 else
6660 echo "configure: failed program was:" >&5 6540 echo "configure: failed program was:" >&5
6661 cat conftest.$ac_ext >&5 6541 cat conftest.$ac_ext >&5
6678 6558
6679 # Make sure it is really in the library, if we think we found it. 6559 # Make sure it is really in the library, if we think we found it.
6680 for ac_func in getloadavg 6560 for ac_func in getloadavg
6681 do 6561 do
6682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6683 echo "configure:6684: checking for $ac_func" >&5 6563 echo "configure:6564: checking for $ac_func" >&5
6684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6685 echo $ac_n "(cached) $ac_c" 1>&6 6565 echo $ac_n "(cached) $ac_c" 1>&6
6686 else 6566 else
6687 cat > conftest.$ac_ext <<EOF 6567 cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure" 6568 #line 6569 "configure"
6689 #include "confdefs.h" 6569 #include "confdefs.h"
6690 /* System header to define __stub macros and hopefully few prototypes, 6570 /* System header to define __stub macros and hopefully few prototypes,
6691 which can conflict with char $ac_func(); below. */ 6571 which can conflict with char $ac_func(); below. */
6692 #include <assert.h> 6572 #include <assert.h>
6693 /* Override any gcc2 internal prototype to avoid an error. */ 6573 /* Override any gcc2 internal prototype to avoid an error. */
6706 $ac_func(); 6586 $ac_func();
6707 #endif 6587 #endif
6708 6588
6709 ; return 0; } 6589 ; return 0; }
6710 EOF 6590 EOF
6711 if { (eval echo configure:6712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6591 if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6712 rm -rf conftest* 6592 rm -rf conftest*
6713 eval "ac_cv_func_$ac_func=yes" 6593 eval "ac_cv_func_$ac_func=yes"
6714 else 6594 else
6715 echo "configure: failed program was:" >&5 6595 echo "configure: failed program was:" >&5
6716 cat conftest.$ac_ext >&5 6596 cat conftest.$ac_ext >&5
6744 else 6624 else
6745 # Figure out what our getloadavg.c needs. 6625 # Figure out what our getloadavg.c needs.
6746 ac_have_func=no 6626 ac_have_func=no
6747 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` 6627 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
6748 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 6628 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
6749 echo "configure:6750: checking for sys/dg_sys_info.h" >&5 6629 echo "configure:6630: checking for sys/dg_sys_info.h" >&5
6750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6751 echo $ac_n "(cached) $ac_c" 1>&6 6631 echo $ac_n "(cached) $ac_c" 1>&6
6752 else 6632 else
6753 cat > conftest.$ac_ext <<EOF 6633 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure" 6634 #line 6635 "configure"
6755 #include "confdefs.h" 6635 #include "confdefs.h"
6756 #include <sys/dg_sys_info.h> 6636 #include <sys/dg_sys_info.h>
6757 EOF 6637 EOF
6758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6759 { (eval echo configure:6760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6639 { (eval echo configure:6640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6761 if test -z "$ac_err"; then 6641 if test -z "$ac_err"; then
6762 rm -rf conftest* 6642 rm -rf conftest*
6763 eval "ac_cv_header_$ac_safe=yes" 6643 eval "ac_cv_header_$ac_safe=yes"
6764 else 6644 else
6775 ac_have_func=yes; cat >> confdefs.h <<\EOF 6655 ac_have_func=yes; cat >> confdefs.h <<\EOF
6776 #define DGUX 1 6656 #define DGUX 1
6777 EOF 6657 EOF
6778 6658
6779 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 6659 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
6780 echo "configure:6781: checking for dg_sys_info in -ldgc" >&5 6660 echo "configure:6661: checking for dg_sys_info in -ldgc" >&5
6781 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` 6661 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
6782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6 6663 echo $ac_n "(cached) $ac_c" 1>&6
6784 else 6664 else
6785 ac_save_LIBS="$LIBS" 6665 ac_save_LIBS="$LIBS"
6786 LIBS="-ldgc $LIBS" 6666 LIBS="-ldgc $LIBS"
6787 cat > conftest.$ac_ext <<EOF 6667 cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure" 6668 #line 6669 "configure"
6789 #include "confdefs.h" 6669 #include "confdefs.h"
6790 /* Override any gcc2 internal prototype to avoid an error. */ 6670 /* Override any gcc2 internal prototype to avoid an error. */
6791 /* We use char because int might match the return type of a gcc2 6671 /* We use char because int might match the return type of a gcc2
6792 builtin and then its argument prototype would still apply. */ 6672 builtin and then its argument prototype would still apply. */
6793 char dg_sys_info(); 6673 char dg_sys_info();
6794 6674
6795 int main() { 6675 int main() {
6796 dg_sys_info() 6676 dg_sys_info()
6797 ; return 0; } 6677 ; return 0; }
6798 EOF 6678 EOF
6799 if { (eval echo configure:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6800 rm -rf conftest* 6680 rm -rf conftest*
6801 eval "ac_cv_lib_$ac_lib_var=yes" 6681 eval "ac_cv_lib_$ac_lib_var=yes"
6802 else 6682 else
6803 echo "configure: failed program was:" >&5 6683 echo "configure: failed program was:" >&5
6804 cat conftest.$ac_ext >&5 6684 cat conftest.$ac_ext >&5
6839 fi 6719 fi
6840 6720
6841 if test $ac_have_func = no; then 6721 if test $ac_have_func = no; then
6842 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` 6722 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
6843 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 6723 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
6844 echo "configure:6845: checking for inq_stats/cpustats.h" >&5 6724 echo "configure:6725: checking for inq_stats/cpustats.h" >&5
6845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6846 echo $ac_n "(cached) $ac_c" 1>&6 6726 echo $ac_n "(cached) $ac_c" 1>&6
6847 else 6727 else
6848 cat > conftest.$ac_ext <<EOF 6728 cat > conftest.$ac_ext <<EOF
6849 #line 6850 "configure" 6729 #line 6730 "configure"
6850 #include "confdefs.h" 6730 #include "confdefs.h"
6851 #include <inq_stats/cpustats.h> 6731 #include <inq_stats/cpustats.h>
6852 EOF 6732 EOF
6853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6854 { (eval echo configure:6855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6734 { (eval echo configure:6735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6856 if test -z "$ac_err"; then 6736 if test -z "$ac_err"; then
6857 rm -rf conftest* 6737 rm -rf conftest*
6858 eval "ac_cv_header_$ac_safe=yes" 6738 eval "ac_cv_header_$ac_safe=yes"
6859 else 6739 else
6882 fi 6762 fi
6883 6763
6884 if test $ac_have_func = no; then 6764 if test $ac_have_func = no; then
6885 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` 6765 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
6886 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 6766 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
6887 echo "configure:6888: checking for sys/cpustats.h" >&5 6767 echo "configure:6768: checking for sys/cpustats.h" >&5
6888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6 6769 echo $ac_n "(cached) $ac_c" 1>&6
6890 else 6770 else
6891 cat > conftest.$ac_ext <<EOF 6771 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure" 6772 #line 6773 "configure"
6893 #include "confdefs.h" 6773 #include "confdefs.h"
6894 #include <sys/cpustats.h> 6774 #include <sys/cpustats.h>
6895 EOF 6775 EOF
6896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6897 { (eval echo configure:6898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6777 { (eval echo configure:6778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6899 if test -z "$ac_err"; then 6779 if test -z "$ac_err"; then
6900 rm -rf conftest* 6780 rm -rf conftest*
6901 eval "ac_cv_header_$ac_safe=yes" 6781 eval "ac_cv_header_$ac_safe=yes"
6902 else 6782 else
6923 if test $ac_have_func = no; then 6803 if test $ac_have_func = no; then
6924 for ac_hdr in mach/mach.h 6804 for ac_hdr in mach/mach.h
6925 do 6805 do
6926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6806 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6807 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6928 echo "configure:6929: checking for $ac_hdr" >&5 6808 echo "configure:6809: checking for $ac_hdr" >&5
6929 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6809 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6930 echo $ac_n "(cached) $ac_c" 1>&6 6810 echo $ac_n "(cached) $ac_c" 1>&6
6931 else 6811 else
6932 cat > conftest.$ac_ext <<EOF 6812 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure" 6813 #line 6814 "configure"
6934 #include "confdefs.h" 6814 #include "confdefs.h"
6935 #include <$ac_hdr> 6815 #include <$ac_hdr>
6936 EOF 6816 EOF
6937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6938 { (eval echo configure:6939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6818 { (eval echo configure:6819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6819 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6940 if test -z "$ac_err"; then 6820 if test -z "$ac_err"; then
6941 rm -rf conftest* 6821 rm -rf conftest*
6942 eval "ac_cv_header_$ac_safe=yes" 6822 eval "ac_cv_header_$ac_safe=yes"
6943 else 6823 else
6963 6843
6964 fi 6844 fi
6965 6845
6966 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 6846 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
6967 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 6847 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
6968 echo "configure:6969: checking for nlist.h" >&5 6848 echo "configure:6849: checking for nlist.h" >&5
6969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6 6850 echo $ac_n "(cached) $ac_c" 1>&6
6971 else 6851 else
6972 cat > conftest.$ac_ext <<EOF 6852 cat > conftest.$ac_ext <<EOF
6973 #line 6974 "configure" 6853 #line 6854 "configure"
6974 #include "confdefs.h" 6854 #include "confdefs.h"
6975 #include <nlist.h> 6855 #include <nlist.h>
6976 EOF 6856 EOF
6977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6978 { (eval echo configure:6979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6858 { (eval echo configure:6859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6980 if test -z "$ac_err"; then 6860 if test -z "$ac_err"; then
6981 rm -rf conftest* 6861 rm -rf conftest*
6982 eval "ac_cv_header_$ac_safe=yes" 6862 eval "ac_cv_header_$ac_safe=yes"
6983 else 6863 else
6994 cat >> confdefs.h <<\EOF 6874 cat >> confdefs.h <<\EOF
6995 #define NLIST_STRUCT 1 6875 #define NLIST_STRUCT 1
6996 EOF 6876 EOF
6997 6877
6998 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 6878 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
6999 echo "configure:7000: checking for n_un in struct nlist" >&5 6879 echo "configure:6880: checking for n_un in struct nlist" >&5
7000 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then 6880 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
7001 echo $ac_n "(cached) $ac_c" 1>&6 6881 echo $ac_n "(cached) $ac_c" 1>&6
7002 else 6882 else
7003 cat > conftest.$ac_ext <<EOF 6883 cat > conftest.$ac_ext <<EOF
7004 #line 7005 "configure" 6884 #line 6885 "configure"
7005 #include "confdefs.h" 6885 #include "confdefs.h"
7006 #include <nlist.h> 6886 #include <nlist.h>
7007 int main() { 6887 int main() {
7008 struct nlist n; n.n_un.n_name = 0; 6888 struct nlist n; n.n_un.n_name = 0;
7009 ; return 0; } 6889 ; return 0; }
7010 EOF 6890 EOF
7011 if { (eval echo configure:7012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6891 if { (eval echo configure:6892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7012 rm -rf conftest* 6892 rm -rf conftest*
7013 ac_cv_struct_nlist_n_un=yes 6893 ac_cv_struct_nlist_n_un=yes
7014 else 6894 else
7015 echo "configure: failed program was:" >&5 6895 echo "configure: failed program was:" >&5
7016 cat conftest.$ac_ext >&5 6896 cat conftest.$ac_ext >&5
7033 fi 6913 fi
7034 fi # Do not have getloadavg in system libraries. 6914 fi # Do not have getloadavg in system libraries.
7035 6915
7036 # Some definitions of getloadavg require that the program be installed setgid. 6916 # Some definitions of getloadavg require that the program be installed setgid.
7037 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 6917 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
7038 echo "configure:7039: checking whether getloadavg requires setgid" >&5 6918 echo "configure:6919: checking whether getloadavg requires setgid" >&5
7039 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then 6919 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
7040 echo $ac_n "(cached) $ac_c" 1>&6 6920 echo $ac_n "(cached) $ac_c" 1>&6
7041 else 6921 else
7042 cat > conftest.$ac_ext <<EOF 6922 cat > conftest.$ac_ext <<EOF
7043 #line 7044 "configure" 6923 #line 6924 "configure"
7044 #include "confdefs.h" 6924 #include "confdefs.h"
7045 #include "$srcdir/getloadavg.c" 6925 #include "$srcdir/getloadavg.c"
7046 #ifdef LDAV_PRIVILEGED 6926 #ifdef LDAV_PRIVILEGED
7047 Yowza Am I SETGID yet 6927 Yowza Am I SETGID yet
7048 #endif 6928 #endif
7069 NEED_SETGID=false 6949 NEED_SETGID=false
7070 fi 6950 fi
7071 6951
7072 if test $ac_cv_func_getloadavg_setgid = yes; then 6952 if test $ac_cv_func_getloadavg_setgid = yes; then
7073 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 6953 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
7074 echo "configure:7075: checking group of /dev/kmem" >&5 6954 echo "configure:6955: checking group of /dev/kmem" >&5
7075 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then 6955 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
7076 echo $ac_n "(cached) $ac_c" 1>&6 6956 echo $ac_n "(cached) $ac_c" 1>&6
7077 else 6957 else
7078 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 6958 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
7079 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 6959 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
7089 echo "$ac_t""$ac_cv_group_kmem" 1>&6 6969 echo "$ac_t""$ac_cv_group_kmem" 1>&6
7090 KMEM_GROUP=$ac_cv_group_kmem 6970 KMEM_GROUP=$ac_cv_group_kmem
7091 fi 6971 fi
7092 6972
7093 6973
7094 for ac_func in ftello 6974 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
6975 echo "configure:6976: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6976 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6978 else
6979 ac_cv_sys_largefile_source=no
6980 cat > conftest.$ac_ext <<EOF
6981 #line 6982 "configure"
6982 #include "confdefs.h"
6983 #include <stdio.h>
6984 int main() {
6985 return !fseeko;
6986 ; return 0; }
6987 EOF
6988 if { (eval echo configure:6989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6989 :
6990 else
6991 echo "configure: failed program was:" >&5
6992 cat conftest.$ac_ext >&5
6993 rm -rf conftest*
6994 cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
6997 #define _LARGEFILE_SOURCE 1
6998 #include <stdio.h>
6999
7000 int main() {
7001 return !fseeko;
7002 ; return 0; }
7003 EOF
7004 if { (eval echo configure:7005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7005 rm -rf conftest*
7006 ac_cv_sys_largefile_source=1
7007 else
7008 echo "configure: failed program was:" >&5
7009 cat conftest.$ac_ext >&5
7010 fi
7011 rm -f conftest*
7012 fi
7013 rm -f conftest*
7014 fi
7015
7016 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
7017 if test "$ac_cv_sys_largefile_source" != no; then
7018 cat >> confdefs.h <<EOF
7019 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7020 EOF
7021
7022 fi
7023 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7024 # in glibc 2.1.3, but that breaks too many other things.
7025 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7026
7027 echo $ac_n "checking for fseeko""... $ac_c" 1>&6
7028 echo "configure:7029: checking for fseeko" >&5
7029 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then
7030 echo $ac_n "(cached) $ac_c" 1>&6
7031 else
7032 ac_cv_func_fseeko=no
7033 cat > conftest.$ac_ext <<EOF
7034 #line 7035 "configure"
7035 #include "confdefs.h"
7036 #include <stdio.h>
7037 int main() {
7038 return fseeko && fseeko (stdin, 0, 0);
7039 ; return 0; }
7040 EOF
7041 if { (eval echo configure:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7042 rm -rf conftest*
7043 ac_cv_func_fseeko=yes
7044 else
7045 echo "configure: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 fi
7048 rm -f conftest*
7049 fi
7050
7051 echo "$ac_t""$ac_cv_func_fseeko" 1>&6
7052 if test $ac_cv_func_fseeko != no; then
7053 cat >> confdefs.h <<\EOF
7054 #define HAVE_FSEEKO 1
7055 EOF
7056
7057 fi
7058
7059 # UNIX98 PTYs.
7060 for ac_func in grantpt
7095 do 7061 do
7096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7097 echo "configure:7098: checking for $ac_func" >&5 7063 echo "configure:7064: checking for $ac_func" >&5
7098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7099 echo $ac_n "(cached) $ac_c" 1>&6 7065 echo $ac_n "(cached) $ac_c" 1>&6
7100 else 7066 else
7101 cat > conftest.$ac_ext <<EOF 7067 cat > conftest.$ac_ext <<EOF
7102 #line 7103 "configure" 7068 #line 7069 "configure"
7103 #include "confdefs.h" 7069 #include "confdefs.h"
7104 /* System header to define __stub macros and hopefully few prototypes, 7070 /* System header to define __stub macros and hopefully few prototypes,
7105 which can conflict with char $ac_func(); below. */ 7071 which can conflict with char $ac_func(); below. */
7106 #include <assert.h> 7072 #include <assert.h>
7107 /* Override any gcc2 internal prototype to avoid an error. */ 7073 /* Override any gcc2 internal prototype to avoid an error. */
7120 $ac_func(); 7086 $ac_func();
7121 #endif 7087 #endif
7122 7088
7123 ; return 0; } 7089 ; return 0; }
7124 EOF 7090 EOF
7125 if { (eval echo configure:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7126 rm -rf conftest* 7092 rm -rf conftest*
7127 eval "ac_cv_func_$ac_func=yes" 7093 eval "ac_cv_func_$ac_func=yes"
7128 else 7094 else
7129 echo "configure: failed program was:" >&5 7095 echo "configure: failed program was:" >&5
7130 cat conftest.$ac_ext >&5 7096 cat conftest.$ac_ext >&5
7145 echo "$ac_t""no" 1>&6 7111 echo "$ac_t""no" 1>&6
7146 fi 7112 fi
7147 done 7113 done
7148 7114
7149 7115
7150 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE 7116 # PTY-related GNU extensions.
7151 # if we need it. 7117 for ac_func in getpt
7152 for ac_func in grantpt
7153 do 7118 do
7154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7155 echo "configure:7156: checking for $ac_func" >&5 7120 echo "configure:7121: checking for $ac_func" >&5
7156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7157 echo $ac_n "(cached) $ac_c" 1>&6 7122 echo $ac_n "(cached) $ac_c" 1>&6
7158 else 7123 else
7159 cat > conftest.$ac_ext <<EOF 7124 cat > conftest.$ac_ext <<EOF
7160 #line 7161 "configure" 7125 #line 7126 "configure"
7161 #include "confdefs.h" 7126 #include "confdefs.h"
7162 /* System header to define __stub macros and hopefully few prototypes, 7127 /* System header to define __stub macros and hopefully few prototypes,
7163 which can conflict with char $ac_func(); below. */ 7128 which can conflict with char $ac_func(); below. */
7164 #include <assert.h> 7129 #include <assert.h>
7165 /* Override any gcc2 internal prototype to avoid an error. */ 7130 /* Override any gcc2 internal prototype to avoid an error. */
7178 $ac_func(); 7143 $ac_func();
7179 #endif 7144 #endif
7180 7145
7181 ; return 0; } 7146 ; return 0; }
7182 EOF 7147 EOF
7183 if { (eval echo configure:7184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7148 if { (eval echo configure:7149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7184 rm -rf conftest* 7149 rm -rf conftest*
7185 eval "ac_cv_func_$ac_func=yes" 7150 eval "ac_cv_func_$ac_func=yes"
7186 else 7151 else
7187 echo "configure: failed program was:" >&5 7152 echo "configure: failed program was:" >&5
7188 cat conftest.$ac_ext >&5 7153 cat conftest.$ac_ext >&5
7203 echo "$ac_t""no" 1>&6 7168 echo "$ac_t""no" 1>&6
7204 fi 7169 fi
7205 done 7170 done
7206 7171
7207 7172
7208 # PTY-related GNU extensions.
7209 for ac_func in getpt
7210 do
7211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7212 echo "configure:7213: checking for $ac_func" >&5
7213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7214 echo $ac_n "(cached) $ac_c" 1>&6
7215 else
7216 cat > conftest.$ac_ext <<EOF
7217 #line 7218 "configure"
7218 #include "confdefs.h"
7219 /* System header to define __stub macros and hopefully few prototypes,
7220 which can conflict with char $ac_func(); below. */
7221 #include <assert.h>
7222 /* Override any gcc2 internal prototype to avoid an error. */
7223 /* We use char because int might match the return type of a gcc2
7224 builtin and then its argument prototype would still apply. */
7225 char $ac_func();
7226
7227 int main() {
7228
7229 /* The GNU C library defines this for functions which it implements
7230 to always fail with ENOSYS. Some functions are actually named
7231 something starting with __ and the normal name is an alias. */
7232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7233 choke me
7234 #else
7235 $ac_func();
7236 #endif
7237
7238 ; return 0; }
7239 EOF
7240 if { (eval echo configure:7241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7241 rm -rf conftest*
7242 eval "ac_cv_func_$ac_func=yes"
7243 else
7244 echo "configure: failed program was:" >&5
7245 cat conftest.$ac_ext >&5
7246 rm -rf conftest*
7247 eval "ac_cv_func_$ac_func=no"
7248 fi
7249 rm -f conftest*
7250 fi
7251
7252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7253 echo "$ac_t""yes" 1>&6
7254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7255 cat >> confdefs.h <<EOF
7256 #define $ac_tr_func 1
7257 EOF
7258
7259 else
7260 echo "$ac_t""no" 1>&6
7261 fi
7262 done
7263
7264
7265 # Check this now, so that we will NOT find the above functions in ncurses. 7173 # Check this now, so that we will NOT find the above functions in ncurses.
7266 # That is because we have not set up to link ncurses in lib-src. 7174 # That is because we have not set up to link ncurses in lib-src.
7267 # It's better to believe a function is not available 7175 # It's better to believe a function is not available
7268 # than to expect to find it in ncurses. 7176 # than to expect to find it in ncurses.
7269 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 7177 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
7270 echo "configure:7271: checking for tparm in -lncurses" >&5 7178 echo "configure:7179: checking for tparm in -lncurses" >&5
7271 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 7179 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
7272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7273 echo $ac_n "(cached) $ac_c" 1>&6 7181 echo $ac_n "(cached) $ac_c" 1>&6
7274 else 7182 else
7275 ac_save_LIBS="$LIBS" 7183 ac_save_LIBS="$LIBS"
7276 LIBS="-lncurses $LIBS" 7184 LIBS="-lncurses $LIBS"
7277 cat > conftest.$ac_ext <<EOF 7185 cat > conftest.$ac_ext <<EOF
7278 #line 7279 "configure" 7186 #line 7187 "configure"
7279 #include "confdefs.h" 7187 #include "confdefs.h"
7280 /* Override any gcc2 internal prototype to avoid an error. */ 7188 /* Override any gcc2 internal prototype to avoid an error. */
7281 /* We use char because int might match the return type of a gcc2 7189 /* We use char because int might match the return type of a gcc2
7282 builtin and then its argument prototype would still apply. */ 7190 builtin and then its argument prototype would still apply. */
7283 char tparm(); 7191 char tparm();
7284 7192
7285 int main() { 7193 int main() {
7286 tparm() 7194 tparm()
7287 ; return 0; } 7195 ; return 0; }
7288 EOF 7196 EOF
7289 if { (eval echo configure:7290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7197 if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7290 rm -rf conftest* 7198 rm -rf conftest*
7291 eval "ac_cv_lib_$ac_lib_var=yes" 7199 eval "ac_cv_lib_$ac_lib_var=yes"
7292 else 7200 else
7293 echo "configure: failed program was:" >&5 7201 echo "configure: failed program was:" >&5
7294 cat conftest.$ac_ext >&5 7202 cat conftest.$ac_ext >&5
7315 7223
7316 7224
7317 # These tell us which Kerberos-related libraries to use. 7225 # These tell us which Kerberos-related libraries to use.
7318 if test "${with_kerberos+set}" = set; then 7226 if test "${with_kerberos+set}" = set; then
7319 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 7227 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
7320 echo "configure:7321: checking for com_err in -lcom_err" >&5 7228 echo "configure:7229: checking for com_err in -lcom_err" >&5
7321 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 7229 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
7322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7323 echo $ac_n "(cached) $ac_c" 1>&6 7231 echo $ac_n "(cached) $ac_c" 1>&6
7324 else 7232 else
7325 ac_save_LIBS="$LIBS" 7233 ac_save_LIBS="$LIBS"
7326 LIBS="-lcom_err $LIBS" 7234 LIBS="-lcom_err $LIBS"
7327 cat > conftest.$ac_ext <<EOF 7235 cat > conftest.$ac_ext <<EOF
7328 #line 7329 "configure" 7236 #line 7237 "configure"
7329 #include "confdefs.h" 7237 #include "confdefs.h"
7330 /* Override any gcc2 internal prototype to avoid an error. */ 7238 /* Override any gcc2 internal prototype to avoid an error. */
7331 /* We use char because int might match the return type of a gcc2 7239 /* We use char because int might match the return type of a gcc2
7332 builtin and then its argument prototype would still apply. */ 7240 builtin and then its argument prototype would still apply. */
7333 char com_err(); 7241 char com_err();
7334 7242
7335 int main() { 7243 int main() {
7336 com_err() 7244 com_err()
7337 ; return 0; } 7245 ; return 0; }
7338 EOF 7246 EOF
7339 if { (eval echo configure:7340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7340 rm -rf conftest* 7248 rm -rf conftest*
7341 eval "ac_cv_lib_$ac_lib_var=yes" 7249 eval "ac_cv_lib_$ac_lib_var=yes"
7342 else 7250 else
7343 echo "configure: failed program was:" >&5 7251 echo "configure: failed program was:" >&5
7344 cat conftest.$ac_ext >&5 7252 cat conftest.$ac_ext >&5
7362 else 7270 else
7363 echo "$ac_t""no" 1>&6 7271 echo "$ac_t""no" 1>&6
7364 fi 7272 fi
7365 7273
7366 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 7274 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
7367 echo "configure:7368: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 7275 echo "configure:7276: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
7368 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7276 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6 7278 echo $ac_n "(cached) $ac_c" 1>&6
7371 else 7279 else
7372 ac_save_LIBS="$LIBS" 7280 ac_save_LIBS="$LIBS"
7373 LIBS="-lk5crypto $LIBS" 7281 LIBS="-lk5crypto $LIBS"
7374 cat > conftest.$ac_ext <<EOF 7282 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure" 7283 #line 7284 "configure"
7376 #include "confdefs.h" 7284 #include "confdefs.h"
7377 /* Override any gcc2 internal prototype to avoid an error. */ 7285 /* Override any gcc2 internal prototype to avoid an error. */
7378 /* 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
7379 builtin and then its argument prototype would still apply. */ 7287 builtin and then its argument prototype would still apply. */
7380 char mit_des_cbc_encrypt(); 7288 char mit_des_cbc_encrypt();
7381 7289
7382 int main() { 7290 int main() {
7383 mit_des_cbc_encrypt() 7291 mit_des_cbc_encrypt()
7384 ; return 0; } 7292 ; return 0; }
7385 EOF 7293 EOF
7386 if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7294 if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7387 rm -rf conftest* 7295 rm -rf conftest*
7388 eval "ac_cv_lib_$ac_lib_var=yes" 7296 eval "ac_cv_lib_$ac_lib_var=yes"
7389 else 7297 else
7390 echo "configure: failed program was:" >&5 7298 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5 7299 cat conftest.$ac_ext >&5
7409 else 7317 else
7410 echo "$ac_t""no" 1>&6 7318 echo "$ac_t""no" 1>&6
7411 fi 7319 fi
7412 7320
7413 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 7321 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
7414 echo "configure:7415: checking for mit_des_cbc_encrypt in -lcrypto" >&5 7322 echo "configure:7323: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7415 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7323 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6 7325 echo $ac_n "(cached) $ac_c" 1>&6
7418 else 7326 else
7419 ac_save_LIBS="$LIBS" 7327 ac_save_LIBS="$LIBS"
7420 LIBS="-lcrypto $LIBS" 7328 LIBS="-lcrypto $LIBS"
7421 cat > conftest.$ac_ext <<EOF 7329 cat > conftest.$ac_ext <<EOF
7422 #line 7423 "configure" 7330 #line 7331 "configure"
7423 #include "confdefs.h" 7331 #include "confdefs.h"
7424 /* Override any gcc2 internal prototype to avoid an error. */ 7332 /* Override any gcc2 internal prototype to avoid an error. */
7425 /* We use char because int might match the return type of a gcc2 7333 /* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */ 7334 builtin and then its argument prototype would still apply. */
7427 char mit_des_cbc_encrypt(); 7335 char mit_des_cbc_encrypt();
7428 7336
7429 int main() { 7337 int main() {
7430 mit_des_cbc_encrypt() 7338 mit_des_cbc_encrypt()
7431 ; return 0; } 7339 ; return 0; }
7432 EOF 7340 EOF
7433 if { (eval echo configure:7434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7341 if { (eval echo configure:7342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7434 rm -rf conftest* 7342 rm -rf conftest*
7435 eval "ac_cv_lib_$ac_lib_var=yes" 7343 eval "ac_cv_lib_$ac_lib_var=yes"
7436 else 7344 else
7437 echo "configure: failed program was:" >&5 7345 echo "configure: failed program was:" >&5
7438 cat conftest.$ac_ext >&5 7346 cat conftest.$ac_ext >&5
7456 else 7364 else
7457 echo "$ac_t""no" 1>&6 7365 echo "$ac_t""no" 1>&6
7458 fi 7366 fi
7459 7367
7460 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 7368 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
7461 echo "configure:7462: checking for krb5_init_context in -lkrb5" >&5 7369 echo "configure:7370: checking for krb5_init_context in -lkrb5" >&5
7462 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` 7370 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
7463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7464 echo $ac_n "(cached) $ac_c" 1>&6 7372 echo $ac_n "(cached) $ac_c" 1>&6
7465 else 7373 else
7466 ac_save_LIBS="$LIBS" 7374 ac_save_LIBS="$LIBS"
7467 LIBS="-lkrb5 $LIBS" 7375 LIBS="-lkrb5 $LIBS"
7468 cat > conftest.$ac_ext <<EOF 7376 cat > conftest.$ac_ext <<EOF
7469 #line 7470 "configure" 7377 #line 7378 "configure"
7470 #include "confdefs.h" 7378 #include "confdefs.h"
7471 /* Override any gcc2 internal prototype to avoid an error. */ 7379 /* Override any gcc2 internal prototype to avoid an error. */
7472 /* We use char because int might match the return type of a gcc2 7380 /* We use char because int might match the return type of a gcc2
7473 builtin and then its argument prototype would still apply. */ 7381 builtin and then its argument prototype would still apply. */
7474 char krb5_init_context(); 7382 char krb5_init_context();
7475 7383
7476 int main() { 7384 int main() {
7477 krb5_init_context() 7385 krb5_init_context()
7478 ; return 0; } 7386 ; return 0; }
7479 EOF 7387 EOF
7480 if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7388 if { (eval echo configure:7389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7481 rm -rf conftest* 7389 rm -rf conftest*
7482 eval "ac_cv_lib_$ac_lib_var=yes" 7390 eval "ac_cv_lib_$ac_lib_var=yes"
7483 else 7391 else
7484 echo "configure: failed program was:" >&5 7392 echo "configure: failed program was:" >&5
7485 cat conftest.$ac_ext >&5 7393 cat conftest.$ac_ext >&5
7504 echo "$ac_t""no" 1>&6 7412 echo "$ac_t""no" 1>&6
7505 fi 7413 fi
7506 7414
7507 if test "${with_kerberos5+set}" != set; then 7415 if test "${with_kerberos5+set}" != set; then
7508 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 7416 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
7509 echo "configure:7510: checking for des_cbc_encrypt in -ldes425" >&5 7417 echo "configure:7418: checking for des_cbc_encrypt in -ldes425" >&5
7510 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7418 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6 7420 echo $ac_n "(cached) $ac_c" 1>&6
7513 else 7421 else
7514 ac_save_LIBS="$LIBS" 7422 ac_save_LIBS="$LIBS"
7515 LIBS="-ldes425 $LIBS" 7423 LIBS="-ldes425 $LIBS"
7516 cat > conftest.$ac_ext <<EOF 7424 cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure" 7425 #line 7426 "configure"
7518 #include "confdefs.h" 7426 #include "confdefs.h"
7519 /* Override any gcc2 internal prototype to avoid an error. */ 7427 /* Override any gcc2 internal prototype to avoid an error. */
7520 /* We use char because int might match the return type of a gcc2 7428 /* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */ 7429 builtin and then its argument prototype would still apply. */
7522 char des_cbc_encrypt(); 7430 char des_cbc_encrypt();
7523 7431
7524 int main() { 7432 int main() {
7525 des_cbc_encrypt() 7433 des_cbc_encrypt()
7526 ; return 0; } 7434 ; return 0; }
7527 EOF 7435 EOF
7528 if { (eval echo configure:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7529 rm -rf conftest* 7437 rm -rf conftest*
7530 eval "ac_cv_lib_$ac_lib_var=yes" 7438 eval "ac_cv_lib_$ac_lib_var=yes"
7531 else 7439 else
7532 echo "configure: failed program was:" >&5 7440 echo "configure: failed program was:" >&5
7533 cat conftest.$ac_ext >&5 7441 cat conftest.$ac_ext >&5
7549 LIBS="-ldes425 $LIBS" 7457 LIBS="-ldes425 $LIBS"
7550 7458
7551 else 7459 else
7552 echo "$ac_t""no" 1>&6 7460 echo "$ac_t""no" 1>&6
7553 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 7461 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
7554 echo "configure:7555: checking for des_cbc_encrypt in -ldes" >&5 7462 echo "configure:7463: checking for des_cbc_encrypt in -ldes" >&5
7555 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7463 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7557 echo $ac_n "(cached) $ac_c" 1>&6 7465 echo $ac_n "(cached) $ac_c" 1>&6
7558 else 7466 else
7559 ac_save_LIBS="$LIBS" 7467 ac_save_LIBS="$LIBS"
7560 LIBS="-ldes $LIBS" 7468 LIBS="-ldes $LIBS"
7561 cat > conftest.$ac_ext <<EOF 7469 cat > conftest.$ac_ext <<EOF
7562 #line 7563 "configure" 7470 #line 7471 "configure"
7563 #include "confdefs.h" 7471 #include "confdefs.h"
7564 /* Override any gcc2 internal prototype to avoid an error. */ 7472 /* Override any gcc2 internal prototype to avoid an error. */
7565 /* We use char because int might match the return type of a gcc2 7473 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */ 7474 builtin and then its argument prototype would still apply. */
7567 char des_cbc_encrypt(); 7475 char des_cbc_encrypt();
7568 7476
7569 int main() { 7477 int main() {
7570 des_cbc_encrypt() 7478 des_cbc_encrypt()
7571 ; return 0; } 7479 ; return 0; }
7572 EOF 7480 EOF
7573 if { (eval echo configure:7574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7481 if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7574 rm -rf conftest* 7482 rm -rf conftest*
7575 eval "ac_cv_lib_$ac_lib_var=yes" 7483 eval "ac_cv_lib_$ac_lib_var=yes"
7576 else 7484 else
7577 echo "configure: failed program was:" >&5 7485 echo "configure: failed program was:" >&5
7578 cat conftest.$ac_ext >&5 7486 cat conftest.$ac_ext >&5
7598 fi 7506 fi
7599 7507
7600 fi 7508 fi
7601 7509
7602 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 7510 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
7603 echo "configure:7604: checking for krb_get_cred in -lkrb4" >&5 7511 echo "configure:7512: checking for krb_get_cred in -lkrb4" >&5
7604 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` 7512 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
7605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7606 echo $ac_n "(cached) $ac_c" 1>&6 7514 echo $ac_n "(cached) $ac_c" 1>&6
7607 else 7515 else
7608 ac_save_LIBS="$LIBS" 7516 ac_save_LIBS="$LIBS"
7609 LIBS="-lkrb4 $LIBS" 7517 LIBS="-lkrb4 $LIBS"
7610 cat > conftest.$ac_ext <<EOF 7518 cat > conftest.$ac_ext <<EOF
7611 #line 7612 "configure" 7519 #line 7520 "configure"
7612 #include "confdefs.h" 7520 #include "confdefs.h"
7613 /* Override any gcc2 internal prototype to avoid an error. */ 7521 /* Override any gcc2 internal prototype to avoid an error. */
7614 /* We use char because int might match the return type of a gcc2 7522 /* We use char because int might match the return type of a gcc2
7615 builtin and then its argument prototype would still apply. */ 7523 builtin and then its argument prototype would still apply. */
7616 char krb_get_cred(); 7524 char krb_get_cred();
7617 7525
7618 int main() { 7526 int main() {
7619 krb_get_cred() 7527 krb_get_cred()
7620 ; return 0; } 7528 ; return 0; }
7621 EOF 7529 EOF
7622 if { (eval echo configure:7623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7530 if { (eval echo configure:7531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7623 rm -rf conftest* 7531 rm -rf conftest*
7624 eval "ac_cv_lib_$ac_lib_var=yes" 7532 eval "ac_cv_lib_$ac_lib_var=yes"
7625 else 7533 else
7626 echo "configure: failed program was:" >&5 7534 echo "configure: failed program was:" >&5
7627 cat conftest.$ac_ext >&5 7535 cat conftest.$ac_ext >&5
7643 LIBS="-lkrb4 $LIBS" 7551 LIBS="-lkrb4 $LIBS"
7644 7552
7645 else 7553 else
7646 echo "$ac_t""no" 1>&6 7554 echo "$ac_t""no" 1>&6
7647 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 7555 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
7648 echo "configure:7649: checking for krb_get_cred in -lkrb" >&5 7556 echo "configure:7557: checking for krb_get_cred in -lkrb" >&5
7649 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` 7557 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
7650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7651 echo $ac_n "(cached) $ac_c" 1>&6 7559 echo $ac_n "(cached) $ac_c" 1>&6
7652 else 7560 else
7653 ac_save_LIBS="$LIBS" 7561 ac_save_LIBS="$LIBS"
7654 LIBS="-lkrb $LIBS" 7562 LIBS="-lkrb $LIBS"
7655 cat > conftest.$ac_ext <<EOF 7563 cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure" 7564 #line 7565 "configure"
7657 #include "confdefs.h" 7565 #include "confdefs.h"
7658 /* Override any gcc2 internal prototype to avoid an error. */ 7566 /* Override any gcc2 internal prototype to avoid an error. */
7659 /* We use char because int might match the return type of a gcc2 7567 /* We use char because int might match the return type of a gcc2
7660 builtin and then its argument prototype would still apply. */ 7568 builtin and then its argument prototype would still apply. */
7661 char krb_get_cred(); 7569 char krb_get_cred();
7662 7570
7663 int main() { 7571 int main() {
7664 krb_get_cred() 7572 krb_get_cred()
7665 ; return 0; } 7573 ; return 0; }
7666 EOF 7574 EOF
7667 if { (eval echo configure:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7575 if { (eval echo configure:7576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7668 rm -rf conftest* 7576 rm -rf conftest*
7669 eval "ac_cv_lib_$ac_lib_var=yes" 7577 eval "ac_cv_lib_$ac_lib_var=yes"
7670 else 7578 else
7671 echo "configure: failed program was:" >&5 7579 echo "configure: failed program was:" >&5
7672 cat conftest.$ac_ext >&5 7580 cat conftest.$ac_ext >&5
7698 if test "${with_kerberos5+set}" = set; then 7606 if test "${with_kerberos5+set}" = set; then
7699 for ac_hdr in krb5.h 7607 for ac_hdr in krb5.h
7700 do 7608 do
7701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7703 echo "configure:7704: checking for $ac_hdr" >&5 7611 echo "configure:7612: checking for $ac_hdr" >&5
7704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6 7613 echo $ac_n "(cached) $ac_c" 1>&6
7706 else 7614 else
7707 cat > conftest.$ac_ext <<EOF 7615 cat > conftest.$ac_ext <<EOF
7708 #line 7709 "configure" 7616 #line 7617 "configure"
7709 #include "confdefs.h" 7617 #include "confdefs.h"
7710 #include <$ac_hdr> 7618 #include <$ac_hdr>
7711 EOF 7619 EOF
7712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7713 { (eval echo configure:7714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7621 { (eval echo configure:7622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7715 if test -z "$ac_err"; then 7623 if test -z "$ac_err"; then
7716 rm -rf conftest* 7624 rm -rf conftest*
7717 eval "ac_cv_header_$ac_safe=yes" 7625 eval "ac_cv_header_$ac_safe=yes"
7718 else 7626 else
7739 else 7647 else
7740 for ac_hdr in des.h 7648 for ac_hdr in des.h
7741 do 7649 do
7742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7744 echo "configure:7745: checking for $ac_hdr" >&5 7652 echo "configure:7653: checking for $ac_hdr" >&5
7745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7746 echo $ac_n "(cached) $ac_c" 1>&6 7654 echo $ac_n "(cached) $ac_c" 1>&6
7747 else 7655 else
7748 cat > conftest.$ac_ext <<EOF 7656 cat > conftest.$ac_ext <<EOF
7749 #line 7750 "configure" 7657 #line 7658 "configure"
7750 #include "confdefs.h" 7658 #include "confdefs.h"
7751 #include <$ac_hdr> 7659 #include <$ac_hdr>
7752 EOF 7660 EOF
7753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7754 { (eval echo configure:7755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7662 { (eval echo configure:7663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7756 if test -z "$ac_err"; then 7664 if test -z "$ac_err"; then
7757 rm -rf conftest* 7665 rm -rf conftest*
7758 eval "ac_cv_header_$ac_safe=yes" 7666 eval "ac_cv_header_$ac_safe=yes"
7759 else 7667 else
7776 echo "$ac_t""no" 1>&6 7684 echo "$ac_t""no" 1>&6
7777 for ac_hdr in kerberosIV/des.h 7685 for ac_hdr in kerberosIV/des.h
7778 do 7686 do
7779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7781 echo "configure:7782: checking for $ac_hdr" >&5 7689 echo "configure:7690: checking for $ac_hdr" >&5
7782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7783 echo $ac_n "(cached) $ac_c" 1>&6 7691 echo $ac_n "(cached) $ac_c" 1>&6
7784 else 7692 else
7785 cat > conftest.$ac_ext <<EOF 7693 cat > conftest.$ac_ext <<EOF
7786 #line 7787 "configure" 7694 #line 7695 "configure"
7787 #include "confdefs.h" 7695 #include "confdefs.h"
7788 #include <$ac_hdr> 7696 #include <$ac_hdr>
7789 EOF 7697 EOF
7790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7791 { (eval echo configure:7792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7699 { (eval echo configure:7700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7793 if test -z "$ac_err"; then 7701 if test -z "$ac_err"; then
7794 rm -rf conftest* 7702 rm -rf conftest*
7795 eval "ac_cv_header_$ac_safe=yes" 7703 eval "ac_cv_header_$ac_safe=yes"
7796 else 7704 else
7813 echo "$ac_t""no" 1>&6 7721 echo "$ac_t""no" 1>&6
7814 for ac_hdr in kerberos/des.h 7722 for ac_hdr in kerberos/des.h
7815 do 7723 do
7816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7818 echo "configure:7819: checking for $ac_hdr" >&5 7726 echo "configure:7727: checking for $ac_hdr" >&5
7819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6 7728 echo $ac_n "(cached) $ac_c" 1>&6
7821 else 7729 else
7822 cat > conftest.$ac_ext <<EOF 7730 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure" 7731 #line 7732 "configure"
7824 #include "confdefs.h" 7732 #include "confdefs.h"
7825 #include <$ac_hdr> 7733 #include <$ac_hdr>
7826 EOF 7734 EOF
7827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7828 { (eval echo configure:7829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7736 { (eval echo configure:7737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7830 if test -z "$ac_err"; then 7738 if test -z "$ac_err"; then
7831 rm -rf conftest* 7739 rm -rf conftest*
7832 eval "ac_cv_header_$ac_safe=yes" 7740 eval "ac_cv_header_$ac_safe=yes"
7833 else 7741 else
7859 7767
7860 for ac_hdr in krb.h 7768 for ac_hdr in krb.h
7861 do 7769 do
7862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7864 echo "configure:7865: checking for $ac_hdr" >&5 7772 echo "configure:7773: checking for $ac_hdr" >&5
7865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7866 echo $ac_n "(cached) $ac_c" 1>&6 7774 echo $ac_n "(cached) $ac_c" 1>&6
7867 else 7775 else
7868 cat > conftest.$ac_ext <<EOF 7776 cat > conftest.$ac_ext <<EOF
7869 #line 7870 "configure" 7777 #line 7778 "configure"
7870 #include "confdefs.h" 7778 #include "confdefs.h"
7871 #include <$ac_hdr> 7779 #include <$ac_hdr>
7872 EOF 7780 EOF
7873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7874 { (eval echo configure:7875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7782 { (eval echo configure:7783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7876 if test -z "$ac_err"; then 7784 if test -z "$ac_err"; then
7877 rm -rf conftest* 7785 rm -rf conftest*
7878 eval "ac_cv_header_$ac_safe=yes" 7786 eval "ac_cv_header_$ac_safe=yes"
7879 else 7787 else
7896 echo "$ac_t""no" 1>&6 7804 echo "$ac_t""no" 1>&6
7897 for ac_hdr in kerberosIV/krb.h 7805 for ac_hdr in kerberosIV/krb.h
7898 do 7806 do
7899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7901 echo "configure:7902: checking for $ac_hdr" >&5 7809 echo "configure:7810: checking for $ac_hdr" >&5
7902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7903 echo $ac_n "(cached) $ac_c" 1>&6 7811 echo $ac_n "(cached) $ac_c" 1>&6
7904 else 7812 else
7905 cat > conftest.$ac_ext <<EOF 7813 cat > conftest.$ac_ext <<EOF
7906 #line 7907 "configure" 7814 #line 7815 "configure"
7907 #include "confdefs.h" 7815 #include "confdefs.h"
7908 #include <$ac_hdr> 7816 #include <$ac_hdr>
7909 EOF 7817 EOF
7910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7911 { (eval echo configure:7912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7819 { (eval echo configure:7820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7913 if test -z "$ac_err"; then 7821 if test -z "$ac_err"; then
7914 rm -rf conftest* 7822 rm -rf conftest*
7915 eval "ac_cv_header_$ac_safe=yes" 7823 eval "ac_cv_header_$ac_safe=yes"
7916 else 7824 else
7933 echo "$ac_t""no" 1>&6 7841 echo "$ac_t""no" 1>&6
7934 for ac_hdr in kerberos/krb.h 7842 for ac_hdr in kerberos/krb.h
7935 do 7843 do
7936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7938 echo "configure:7939: checking for $ac_hdr" >&5 7846 echo "configure:7847: checking for $ac_hdr" >&5
7939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7940 echo $ac_n "(cached) $ac_c" 1>&6 7848 echo $ac_n "(cached) $ac_c" 1>&6
7941 else 7849 else
7942 cat > conftest.$ac_ext <<EOF 7850 cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure" 7851 #line 7852 "configure"
7944 #include "confdefs.h" 7852 #include "confdefs.h"
7945 #include <$ac_hdr> 7853 #include <$ac_hdr>
7946 EOF 7854 EOF
7947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7948 { (eval echo configure:7949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7856 { (eval echo configure:7857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7950 if test -z "$ac_err"; then 7858 if test -z "$ac_err"; then
7951 rm -rf conftest* 7859 rm -rf conftest*
7952 eval "ac_cv_header_$ac_safe=yes" 7860 eval "ac_cv_header_$ac_safe=yes"
7953 else 7861 else
7980 fi 7888 fi
7981 for ac_hdr in com_err.h 7889 for ac_hdr in com_err.h
7982 do 7890 do
7983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7891 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7985 echo "configure:7986: checking for $ac_hdr" >&5 7893 echo "configure:7894: checking for $ac_hdr" >&5
7986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7894 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7987 echo $ac_n "(cached) $ac_c" 1>&6 7895 echo $ac_n "(cached) $ac_c" 1>&6
7988 else 7896 else
7989 cat > conftest.$ac_ext <<EOF 7897 cat > conftest.$ac_ext <<EOF
7990 #line 7991 "configure" 7898 #line 7899 "configure"
7991 #include "confdefs.h" 7899 #include "confdefs.h"
7992 #include <$ac_hdr> 7900 #include <$ac_hdr>
7993 EOF 7901 EOF
7994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7995 { (eval echo configure:7996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7903 { (eval echo configure:7904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7997 if test -z "$ac_err"; then 7905 if test -z "$ac_err"; then
7998 rm -rf conftest* 7906 rm -rf conftest*
7999 eval "ac_cv_header_$ac_safe=yes" 7907 eval "ac_cv_header_$ac_safe=yes"
8000 else 7908 else
8021 fi 7929 fi
8022 7930
8023 # Solaris requires -lintl if you want strerror (which calls dgettext) 7931 # Solaris requires -lintl if you want strerror (which calls dgettext)
8024 # to return localized messages. 7932 # to return localized messages.
8025 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 7933 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
8026 echo "configure:8027: checking for dgettext in -lintl" >&5 7934 echo "configure:7935: checking for dgettext in -lintl" >&5
8027 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 7935 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
8028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6 7937 echo $ac_n "(cached) $ac_c" 1>&6
8030 else 7938 else
8031 ac_save_LIBS="$LIBS" 7939 ac_save_LIBS="$LIBS"
8032 LIBS="-lintl $LIBS" 7940 LIBS="-lintl $LIBS"
8033 cat > conftest.$ac_ext <<EOF 7941 cat > conftest.$ac_ext <<EOF
8034 #line 8035 "configure" 7942 #line 7943 "configure"
8035 #include "confdefs.h" 7943 #include "confdefs.h"
8036 /* Override any gcc2 internal prototype to avoid an error. */ 7944 /* Override any gcc2 internal prototype to avoid an error. */
8037 /* We use char because int might match the return type of a gcc2 7945 /* We use char because int might match the return type of a gcc2
8038 builtin and then its argument prototype would still apply. */ 7946 builtin and then its argument prototype would still apply. */
8039 char dgettext(); 7947 char dgettext();
8040 7948
8041 int main() { 7949 int main() {
8042 dgettext() 7950 dgettext()
8043 ; return 0; } 7951 ; return 0; }
8044 EOF 7952 EOF
8045 if { (eval echo configure:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7953 if { (eval echo configure:7954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8046 rm -rf conftest* 7954 rm -rf conftest*
8047 eval "ac_cv_lib_$ac_lib_var=yes" 7955 eval "ac_cv_lib_$ac_lib_var=yes"
8048 else 7956 else
8049 echo "configure: failed program was:" >&5 7957 echo "configure: failed program was:" >&5
8050 cat conftest.$ac_ext >&5 7958 cat conftest.$ac_ext >&5
8069 echo "$ac_t""no" 1>&6 7977 echo "$ac_t""no" 1>&6
8070 fi 7978 fi
8071 7979
8072 7980
8073 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7981 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8074 echo "configure:8075: checking whether localtime caches TZ" >&5 7982 echo "configure:7983: checking whether localtime caches TZ" >&5
8075 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 7983 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
8076 echo $ac_n "(cached) $ac_c" 1>&6 7984 echo $ac_n "(cached) $ac_c" 1>&6
8077 else 7985 else
8078 if test x$ac_cv_func_tzset = xyes; then 7986 if test x$ac_cv_func_tzset = xyes; then
8079 if test "$cross_compiling" = yes; then 7987 if test "$cross_compiling" = yes; then
8080 # If we have tzset, assume the worst when cross-compiling. 7988 # If we have tzset, assume the worst when cross-compiling.
8081 emacs_cv_localtime_cache=yes 7989 emacs_cv_localtime_cache=yes
8082 else 7990 else
8083 cat > conftest.$ac_ext <<EOF 7991 cat > conftest.$ac_ext <<EOF
8084 #line 8085 "configure" 7992 #line 7993 "configure"
8085 #include "confdefs.h" 7993 #include "confdefs.h"
8086 #include <time.h> 7994 #include <time.h>
8087 extern char **environ; 7995 extern char **environ;
8088 unset_TZ () 7996 unset_TZ ()
8089 { 7997 {
8111 if (localtime (&now)->tm_hour != hour_unset) 8019 if (localtime (&now)->tm_hour != hour_unset)
8112 exit (1); 8020 exit (1);
8113 exit (0); 8021 exit (0);
8114 } 8022 }
8115 EOF 8023 EOF
8116 if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8117 then 8025 then
8118 emacs_cv_localtime_cache=no 8026 emacs_cv_localtime_cache=no
8119 else 8027 else
8120 echo "configure: failed program was:" >&5 8028 echo "configure: failed program was:" >&5
8121 cat conftest.$ac_ext >&5 8029 cat conftest.$ac_ext >&5
8141 8049
8142 if test "x$HAVE_TIMEVAL" = xyes; then 8050 if test "x$HAVE_TIMEVAL" = xyes; then
8143 for ac_func in gettimeofday 8051 for ac_func in gettimeofday
8144 do 8052 do
8145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8146 echo "configure:8147: checking for $ac_func" >&5 8054 echo "configure:8055: checking for $ac_func" >&5
8147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8148 echo $ac_n "(cached) $ac_c" 1>&6 8056 echo $ac_n "(cached) $ac_c" 1>&6
8149 else 8057 else
8150 cat > conftest.$ac_ext <<EOF 8058 cat > conftest.$ac_ext <<EOF
8151 #line 8152 "configure" 8059 #line 8060 "configure"
8152 #include "confdefs.h" 8060 #include "confdefs.h"
8153 /* System header to define __stub macros and hopefully few prototypes, 8061 /* System header to define __stub macros and hopefully few prototypes,
8154 which can conflict with char $ac_func(); below. */ 8062 which can conflict with char $ac_func(); below. */
8155 #include <assert.h> 8063 #include <assert.h>
8156 /* Override any gcc2 internal prototype to avoid an error. */ 8064 /* Override any gcc2 internal prototype to avoid an error. */
8169 $ac_func(); 8077 $ac_func();
8170 #endif 8078 #endif
8171 8079
8172 ; return 0; } 8080 ; return 0; }
8173 EOF 8081 EOF
8174 if { (eval echo configure:8175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8082 if { (eval echo configure:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8175 rm -rf conftest* 8083 rm -rf conftest*
8176 eval "ac_cv_func_$ac_func=yes" 8084 eval "ac_cv_func_$ac_func=yes"
8177 else 8085 else
8178 echo "configure: failed program was:" >&5 8086 echo "configure: failed program was:" >&5
8179 cat conftest.$ac_ext >&5 8087 cat conftest.$ac_ext >&5
8194 echo "$ac_t""no" 1>&6 8102 echo "$ac_t""no" 1>&6
8195 fi 8103 fi
8196 done 8104 done
8197 8105
8198 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 8106 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
8199 echo "configure:8200: checking whether gettimeofday can accept two arguments" >&5 8107 echo "configure:8108: checking whether gettimeofday can accept two arguments" >&5
8200 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 8108 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
8201 echo $ac_n "(cached) $ac_c" 1>&6 8109 echo $ac_n "(cached) $ac_c" 1>&6
8202 else 8110 else
8203 cat > conftest.$ac_ext <<EOF 8111 cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure" 8112 #line 8113 "configure"
8205 #include "confdefs.h" 8113 #include "confdefs.h"
8206 8114
8207 #ifdef TIME_WITH_SYS_TIME 8115 #ifdef TIME_WITH_SYS_TIME
8208 #include <sys/time.h> 8116 #include <sys/time.h>
8209 #include <time.h> 8117 #include <time.h>
8217 int main() { 8125 int main() {
8218 struct timeval time; 8126 struct timeval time;
8219 gettimeofday (&time, 0); 8127 gettimeofday (&time, 0);
8220 ; return 0; } 8128 ; return 0; }
8221 EOF 8129 EOF
8222 if { (eval echo configure:8223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8130 if { (eval echo configure:8131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8223 rm -rf conftest* 8131 rm -rf conftest*
8224 emacs_cv_gettimeofday_two_arguments=yes 8132 emacs_cv_gettimeofday_two_arguments=yes
8225 else 8133 else
8226 echo "configure: failed program was:" >&5 8134 echo "configure: failed program was:" >&5
8227 cat conftest.$ac_ext >&5 8135 cat conftest.$ac_ext >&5
8240 fi 8148 fi
8241 fi 8149 fi
8242 8150
8243 if test "$ac_cv_func_gettimeofday" = yes; then 8151 if test "$ac_cv_func_gettimeofday" = yes; then
8244 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 8152 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
8245 echo "configure:8246: checking for struct timezone" >&5 8153 echo "configure:8154: checking for struct timezone" >&5
8246 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then 8154 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
8247 echo $ac_n "(cached) $ac_c" 1>&6 8155 echo $ac_n "(cached) $ac_c" 1>&6
8248 else 8156 else
8249 cat > conftest.$ac_ext <<EOF 8157 cat > conftest.$ac_ext <<EOF
8250 #line 8251 "configure" 8158 #line 8159 "configure"
8251 #include "confdefs.h" 8159 #include "confdefs.h"
8252 #include <sys/time.h> 8160 #include <sys/time.h>
8253 int main() { 8161 int main() {
8254 struct timezone tz; 8162 struct timezone tz;
8255 ; return 0; } 8163 ; return 0; }
8256 EOF 8164 EOF
8257 if { (eval echo configure:8258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8165 if { (eval echo configure:8166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8258 rm -rf conftest* 8166 rm -rf conftest*
8259 if test "$cross_compiling" = yes; then 8167 if test "$cross_compiling" = yes; then
8260 emacs_cv_struct_timezone=yes 8168 emacs_cv_struct_timezone=yes
8261 else 8169 else
8262 cat > conftest.$ac_ext <<EOF 8170 cat > conftest.$ac_ext <<EOF
8263 #line 8264 "configure" 8171 #line 8172 "configure"
8264 #include "confdefs.h" 8172 #include "confdefs.h"
8265 8173
8266 #ifdef TIME_WITH_SYS_TIME 8174 #ifdef TIME_WITH_SYS_TIME
8267 #include <sys/time.h> 8175 #include <sys/time.h>
8268 #include <time.h> 8176 #include <time.h>
8277 struct timeval time; 8185 struct timeval time;
8278 struct timezone dummy; 8186 struct timezone dummy;
8279 exit (gettimeofday (&time, &dummy)); 8187 exit (gettimeofday (&time, &dummy));
8280 } 8188 }
8281 EOF 8189 EOF
8282 if { (eval echo configure:8283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8190 if { (eval echo configure:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8283 then 8191 then
8284 emacs_cv_struct_timezone=yes 8192 emacs_cv_struct_timezone=yes
8285 else 8193 else
8286 echo "configure: failed program was:" >&5 8194 echo "configure: failed program was:" >&5
8287 cat conftest.$ac_ext >&5 8195 cat conftest.$ac_ext >&5
8303 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 8211 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
8304 fi 8212 fi
8305 8213
8306 ok_so_far=yes 8214 ok_so_far=yes
8307 echo $ac_n "checking for socket""... $ac_c" 1>&6 8215 echo $ac_n "checking for socket""... $ac_c" 1>&6
8308 echo "configure:8309: checking for socket" >&5 8216 echo "configure:8217: checking for socket" >&5
8309 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 8217 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8310 echo $ac_n "(cached) $ac_c" 1>&6 8218 echo $ac_n "(cached) $ac_c" 1>&6
8311 else 8219 else
8312 cat > conftest.$ac_ext <<EOF 8220 cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure" 8221 #line 8222 "configure"
8314 #include "confdefs.h" 8222 #include "confdefs.h"
8315 /* System header to define __stub macros and hopefully few prototypes, 8223 /* System header to define __stub macros and hopefully few prototypes,
8316 which can conflict with char socket(); below. */ 8224 which can conflict with char socket(); below. */
8317 #include <assert.h> 8225 #include <assert.h>
8318 /* Override any gcc2 internal prototype to avoid an error. */ 8226 /* Override any gcc2 internal prototype to avoid an error. */
8331 socket(); 8239 socket();
8332 #endif 8240 #endif
8333 8241
8334 ; return 0; } 8242 ; return 0; }
8335 EOF 8243 EOF
8336 if { (eval echo configure:8337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8244 if { (eval echo configure:8245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8337 rm -rf conftest* 8245 rm -rf conftest*
8338 eval "ac_cv_func_socket=yes" 8246 eval "ac_cv_func_socket=yes"
8339 else 8247 else
8340 echo "configure: failed program was:" >&5 8248 echo "configure: failed program was:" >&5
8341 cat conftest.$ac_ext >&5 8249 cat conftest.$ac_ext >&5
8354 fi 8262 fi
8355 8263
8356 if test $ok_so_far = yes; then 8264 if test $ok_so_far = yes; then
8357 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8265 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8358 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8266 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8359 echo "configure:8360: checking for netinet/in.h" >&5 8267 echo "configure:8268: checking for netinet/in.h" >&5
8360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8268 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8361 echo $ac_n "(cached) $ac_c" 1>&6 8269 echo $ac_n "(cached) $ac_c" 1>&6
8362 else 8270 else
8363 cat > conftest.$ac_ext <<EOF 8271 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure" 8272 #line 8273 "configure"
8365 #include "confdefs.h" 8273 #include "confdefs.h"
8366 #include <netinet/in.h> 8274 #include <netinet/in.h>
8367 EOF 8275 EOF
8368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8369 { (eval echo configure:8370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8277 { (eval echo configure:8278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8371 if test -z "$ac_err"; then 8279 if test -z "$ac_err"; then
8372 rm -rf conftest* 8280 rm -rf conftest*
8373 eval "ac_cv_header_$ac_safe=yes" 8281 eval "ac_cv_header_$ac_safe=yes"
8374 else 8282 else
8390 8298
8391 fi 8299 fi
8392 if test $ok_so_far = yes; then 8300 if test $ok_so_far = yes; then
8393 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8301 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8394 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8302 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8395 echo "configure:8396: checking for arpa/inet.h" >&5 8303 echo "configure:8304: checking for arpa/inet.h" >&5
8396 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8397 echo $ac_n "(cached) $ac_c" 1>&6 8305 echo $ac_n "(cached) $ac_c" 1>&6
8398 else 8306 else
8399 cat > conftest.$ac_ext <<EOF 8307 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure" 8308 #line 8309 "configure"
8401 #include "confdefs.h" 8309 #include "confdefs.h"
8402 #include <arpa/inet.h> 8310 #include <arpa/inet.h>
8403 EOF 8311 EOF
8404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8405 { (eval echo configure:8406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8313 { (eval echo configure:8314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8407 if test -z "$ac_err"; then 8315 if test -z "$ac_err"; then
8408 rm -rf conftest* 8316 rm -rf conftest*
8409 eval "ac_cv_header_$ac_safe=yes" 8317 eval "ac_cv_header_$ac_safe=yes"
8410 else 8318 else
8438 EOF 8346 EOF
8439 8347
8440 fi 8348 fi
8441 8349
8442 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 8350 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
8443 echo "configure:8444: checking whether system supports dynamic ptys" >&5 8351 echo "configure:8352: checking whether system supports dynamic ptys" >&5
8444 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 8352 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
8445 echo "$ac_t""yes" 1>&6 8353 echo "$ac_t""yes" 1>&6
8446 cat >> confdefs.h <<\EOF 8354 cat >> confdefs.h <<\EOF
8447 #define HAVE_DEV_PTMX 1 8355 #define HAVE_DEV_PTMX 1
8448 EOF 8356 EOF
8450 else 8358 else
8451 echo "$ac_t""no" 1>&6 8359 echo "$ac_t""no" 1>&6
8452 fi 8360 fi
8453 8361
8454 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 8362 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8455 echo "configure:8456: checking for pid_t" >&5 8363 echo "configure:8364: checking for pid_t" >&5
8456 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 8364 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6 8365 echo $ac_n "(cached) $ac_c" 1>&6
8458 else 8366 else
8459 cat > conftest.$ac_ext <<EOF 8367 cat > conftest.$ac_ext <<EOF
8460 #line 8461 "configure" 8368 #line 8369 "configure"
8461 #include "confdefs.h" 8369 #include "confdefs.h"
8462 #include <sys/types.h> 8370 #include <sys/types.h>
8463 #if STDC_HEADERS 8371 #if STDC_HEADERS
8464 #include <stdlib.h> 8372 #include <stdlib.h>
8465 #include <stddef.h> 8373 #include <stddef.h>
8484 8392
8485 fi 8393 fi
8486 8394
8487 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8395 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8488 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8396 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8489 echo "configure:8490: checking for vfork.h" >&5 8397 echo "configure:8398: checking for vfork.h" >&5
8490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8398 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8491 echo $ac_n "(cached) $ac_c" 1>&6 8399 echo $ac_n "(cached) $ac_c" 1>&6
8492 else 8400 else
8493 cat > conftest.$ac_ext <<EOF 8401 cat > conftest.$ac_ext <<EOF
8494 #line 8495 "configure" 8402 #line 8403 "configure"
8495 #include "confdefs.h" 8403 #include "confdefs.h"
8496 #include <vfork.h> 8404 #include <vfork.h>
8497 EOF 8405 EOF
8498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8499 { (eval echo configure:8500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8407 { (eval echo configure:8408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8501 if test -z "$ac_err"; then 8409 if test -z "$ac_err"; then
8502 rm -rf conftest* 8410 rm -rf conftest*
8503 eval "ac_cv_header_$ac_safe=yes" 8411 eval "ac_cv_header_$ac_safe=yes"
8504 else 8412 else
8519 else 8427 else
8520 echo "$ac_t""no" 1>&6 8428 echo "$ac_t""no" 1>&6
8521 fi 8429 fi
8522 8430
8523 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8431 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8524 echo "configure:8525: checking for working vfork" >&5 8432 echo "configure:8433: checking for working vfork" >&5
8525 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 8433 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
8526 echo $ac_n "(cached) $ac_c" 1>&6 8434 echo $ac_n "(cached) $ac_c" 1>&6
8527 else 8435 else
8528 if test "$cross_compiling" = yes; then 8436 if test "$cross_compiling" = yes; then
8529 echo $ac_n "checking for vfork""... $ac_c" 1>&6 8437 echo $ac_n "checking for vfork""... $ac_c" 1>&6
8530 echo "configure:8531: checking for vfork" >&5 8438 echo "configure:8439: checking for vfork" >&5
8531 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 8439 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6 8440 echo $ac_n "(cached) $ac_c" 1>&6
8533 else 8441 else
8534 cat > conftest.$ac_ext <<EOF 8442 cat > conftest.$ac_ext <<EOF
8535 #line 8536 "configure" 8443 #line 8444 "configure"
8536 #include "confdefs.h" 8444 #include "confdefs.h"
8537 /* System header to define __stub macros and hopefully few prototypes, 8445 /* System header to define __stub macros and hopefully few prototypes,
8538 which can conflict with char vfork(); below. */ 8446 which can conflict with char vfork(); below. */
8539 #include <assert.h> 8447 #include <assert.h>
8540 /* Override any gcc2 internal prototype to avoid an error. */ 8448 /* Override any gcc2 internal prototype to avoid an error. */
8553 vfork(); 8461 vfork();
8554 #endif 8462 #endif
8555 8463
8556 ; return 0; } 8464 ; return 0; }
8557 EOF 8465 EOF
8558 if { (eval echo configure:8559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8466 if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8559 rm -rf conftest* 8467 rm -rf conftest*
8560 eval "ac_cv_func_vfork=yes" 8468 eval "ac_cv_func_vfork=yes"
8561 else 8469 else
8562 echo "configure: failed program was:" >&5 8470 echo "configure: failed program was:" >&5
8563 cat conftest.$ac_ext >&5 8471 cat conftest.$ac_ext >&5
8575 fi 8483 fi
8576 8484
8577 ac_cv_func_vfork_works=$ac_cv_func_vfork 8485 ac_cv_func_vfork_works=$ac_cv_func_vfork
8578 else 8486 else
8579 cat > conftest.$ac_ext <<EOF 8487 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure" 8488 #line 8489 "configure"
8581 #include "confdefs.h" 8489 #include "confdefs.h"
8582 /* Thanks to Paul Eggert for this test. */ 8490 /* Thanks to Paul Eggert for this test. */
8583 #include <stdio.h> 8491 #include <stdio.h>
8584 #include <sys/types.h> 8492 #include <sys/types.h>
8585 #include <sys/stat.h> 8493 #include <sys/stat.h>
8670 || fstat(fileno(stdout), &st) != 0 8578 || fstat(fileno(stdout), &st) != 0
8671 ); 8579 );
8672 } 8580 }
8673 } 8581 }
8674 EOF 8582 EOF
8675 if { (eval echo configure:8676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8583 if { (eval echo configure:8584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8676 then 8584 then
8677 ac_cv_func_vfork_works=yes 8585 ac_cv_func_vfork_works=yes
8678 else 8586 else
8679 echo "configure: failed program was:" >&5 8587 echo "configure: failed program was:" >&5
8680 cat conftest.$ac_ext >&5 8588 cat conftest.$ac_ext >&5
8695 fi 8603 fi
8696 8604
8697 8605
8698 # Fixme: This should be replaced when we have autoconf 2.14. 8606 # Fixme: This should be replaced when we have autoconf 2.14.
8699 echo $ac_n "checking for size_t""... $ac_c" 1>&6 8607 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8700 echo "configure:8701: checking for size_t" >&5 8608 echo "configure:8609: checking for size_t" >&5
8701 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 8609 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6 8610 echo $ac_n "(cached) $ac_c" 1>&6
8703 else 8611 else
8704 cat > conftest.$ac_ext <<EOF 8612 cat > conftest.$ac_ext <<EOF
8705 #line 8706 "configure" 8613 #line 8614 "configure"
8706 #include "confdefs.h" 8614 #include "confdefs.h"
8707 #include <sys/types.h> 8615 #include <sys/types.h>
8708 #if STDC_HEADERS 8616 #if STDC_HEADERS
8709 #include <stdlib.h> 8617 #include <stdlib.h>
8710 #include <stddef.h> 8618 #include <stddef.h>