comparison configure @ 255:084402c475ba r20-5b26

Import from CVS: tag r20-5b26
author cvs
date Mon, 13 Aug 2007 10:21:18 +0200
parents 677f6a0ee643
children 65c19d2020f7
comparison
equal deleted inserted replaced
254:e92abcaa252b 255:084402c475ba
2388 fi 2388 fi
2389 2389
2390 2390
2391 2391
2392 GNU_MALLOC=yes 2392 GNU_MALLOC=yes
2393 doug_lea_malloc=yes
2394 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2395 echo "configure:2396: checking for malloc_get_state" >&5
2396
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2400 /* System header to define __stub macros and hopefully few prototypes,
2401 which can conflict with char malloc_get_state(); below. */
2402 #include <assert.h>
2403 /* Override any gcc2 internal prototype to avoid an error. */
2404 /* We use char because int might match the return type of a gcc2
2405 builtin and then its argument prototype would still apply. */
2406 char malloc_get_state();
2407
2408 int main() {
2409
2410 /* The GNU C library defines this for functions which it implements
2411 to always fail with ENOSYS. Some functions are actually named
2412 something starting with __ and the normal name is an alias. */
2413 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
2414 choke me
2415 #else
2416 malloc_get_state();
2417 #endif
2418
2419 ; return 0; }
2420 EOF
2421 if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2422 rm -rf conftest*
2423 eval "ac_cv_func_malloc_get_state=yes"
2424 else
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2427 rm -rf conftest*
2428 eval "ac_cv_func_malloc_get_state=no"
2429 fi
2430 rm -f conftest*
2431
2432 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
2434 :
2435 else
2436 echo "$ac_t""no" 1>&6
2437 doug_lea_malloc=no
2438 fi
2439
2440 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2441 echo "configure:2442: checking for malloc_set_state" >&5
2442
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 /* System header to define __stub macros and hopefully few prototypes,
2447 which can conflict with char malloc_set_state(); below. */
2448 #include <assert.h>
2449 /* Override any gcc2 internal prototype to avoid an error. */
2450 /* We use char because int might match the return type of a gcc2
2451 builtin and then its argument prototype would still apply. */
2452 char malloc_set_state();
2453
2454 int main() {
2455
2456 /* The GNU C library defines this for functions which it implements
2457 to always fail with ENOSYS. Some functions are actually named
2458 something starting with __ and the normal name is an alias. */
2459 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
2460 choke me
2461 #else
2462 malloc_set_state();
2463 #endif
2464
2465 ; return 0; }
2466 EOF
2467 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2468 rm -rf conftest*
2469 eval "ac_cv_func_malloc_set_state=yes"
2470 else
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2473 rm -rf conftest*
2474 eval "ac_cv_func_malloc_set_state=no"
2475 fi
2476 rm -f conftest*
2477
2478 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
2479 echo "$ac_t""yes" 1>&6
2480 :
2481 else
2482 echo "$ac_t""no" 1>&6
2483 doug_lea_malloc=no
2484 fi
2485
2486 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2487 echo "configure:2488: checking whether __after_morecore_hook exists" >&5
2488 cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491 extern void (* __after_morecore_hook)();
2492 int main() {
2493 __after_morecore_hook = 0
2494 ; return 0; }
2495 EOF
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2497 rm -rf conftest*
2498 echo "$ac_t""yes" 1>&6
2499 else
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2502 rm -rf conftest*
2503 echo "$ac_t""no" 1>&6
2504 doug_lea_malloc=no
2505 fi
2506 rm -f conftest*
2393 if test "$system_malloc" = "yes" ; then 2507 if test "$system_malloc" = "yes" ; then
2394 GNU_MALLOC=no 2508 GNU_MALLOC=no
2395 GNU_MALLOC_reason=" 2509 GNU_MALLOC_reason="
2396 (The GNU allocators don't work with this system configuration)." 2510 (The GNU allocators don't work with this system configuration)."
2397 elif test "$with_system_malloc" = "yes" ; then 2511 elif test "$with_system_malloc" = "yes" ; then
2402 GNU_MALLOC=no 2516 GNU_MALLOC=no
2403 GNU_MALLOC_reason=" 2517 GNU_MALLOC_reason="
2404 (User chose to use Debugging Malloc)." 2518 (User chose to use Debugging Malloc)."
2405 fi 2519 fi
2406 2520
2521 if test "$doug_lea_malloc" = "yes" ; then
2522 if test "$GNU_MALLOC" = yes ; then
2523 GNU_MALLOC_reason="
2524 (Using Doug Lea's new malloc from the GNU C Library.)"
2525 fi
2526 { test "$extra_verbose" = "yes" && cat << \EOF
2527 Defining DOUG_LEA_MALLOC
2528 EOF
2529 cat >> confdefs.h <<\EOF
2530 #define DOUG_LEA_MALLOC 1
2531 EOF
2532 }
2533
2534 fi
2535
2407 2536
2408 # Extract the first word of "ranlib", so it can be a program name with args. 2537 # Extract the first word of "ranlib", so it can be a program name with args.
2409 set dummy ranlib; ac_word=$2 2538 set dummy ranlib; ac_word=$2
2410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2411 echo "configure:2412: checking for $ac_word" >&5 2540 echo "configure:2541: checking for $ac_word" >&5
2412 2541
2413 if test -n "$RANLIB"; then 2542 if test -n "$RANLIB"; then
2414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2415 else 2544 else
2416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2459 # AIX /bin/install 2588 # AIX /bin/install
2460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2589 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2590 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2462 # ./install, which can be erroneously created by make from ./install.sh. 2591 # ./install, which can be erroneously created by make from ./install.sh.
2463 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2592 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2464 echo "configure:2465: checking for a BSD compatible install" >&5 2593 echo "configure:2594: checking for a BSD compatible install" >&5
2465 if test -z "$INSTALL"; then 2594 if test -z "$INSTALL"; then
2466 2595
2467 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2596 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2468 for ac_dir in $PATH; do 2597 for ac_dir in $PATH; do
2469 # Account for people who put trailing slashes in PATH elements. 2598 # Account for people who put trailing slashes in PATH elements.
2510 for ac_prog in 'bison -y' byacc 2639 for ac_prog in 'bison -y' byacc
2511 do 2640 do
2512 # Extract the first word of "$ac_prog", so it can be a program name with args. 2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2 2642 set dummy $ac_prog; ac_word=$2
2514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2515 echo "configure:2516: checking for $ac_word" >&5 2644 echo "configure:2645: checking for $ac_word" >&5
2516 2645
2517 if test -n "$YACC"; then 2646 if test -n "$YACC"; then
2518 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2647 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2519 else 2648 else
2520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2541 2670
2542 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2671 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2543 do 2672 do
2544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2546 echo "configure:2547: checking for $ac_hdr" >&5 2675 echo "configure:2676: checking for $ac_hdr" >&5
2547 2676
2548 cat > conftest.$ac_ext <<EOF 2677 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure" 2678 #line 2679 "configure"
2550 #include "confdefs.h" 2679 #include "confdefs.h"
2551 #include <$ac_hdr> 2680 #include <$ac_hdr>
2552 EOF 2681 EOF
2553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2683 { (eval echo configure:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err=`grep -v '^ *+' conftest.out` 2684 ac_err=`grep -v '^ *+' conftest.out`
2556 if test -z "$ac_err"; then 2685 if test -z "$ac_err"; then
2557 rm -rf conftest* 2686 rm -rf conftest*
2558 eval "ac_cv_header_$ac_safe=yes" 2687 eval "ac_cv_header_$ac_safe=yes"
2559 else 2688 else
2582 2711
2583 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h 2712 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
2584 do 2713 do
2585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2714 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_hdr" >&5 2716 echo "configure:2717: checking for $ac_hdr" >&5
2588 2717
2589 cat > conftest.$ac_ext <<EOF 2718 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure" 2719 #line 2720 "configure"
2591 #include "confdefs.h" 2720 #include "confdefs.h"
2592 #include <$ac_hdr> 2721 #include <$ac_hdr>
2593 EOF 2722 EOF
2594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2595 { (eval echo configure:2596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2724 { (eval echo configure:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2596 ac_err=`grep -v '^ *+' conftest.out` 2725 ac_err=`grep -v '^ *+' conftest.out`
2597 if test -z "$ac_err"; then 2726 if test -z "$ac_err"; then
2598 rm -rf conftest* 2727 rm -rf conftest*
2599 eval "ac_cv_header_$ac_safe=yes" 2728 eval "ac_cv_header_$ac_safe=yes"
2600 else 2729 else
2623 2752
2624 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 2753 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
2625 do 2754 do
2626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2628 echo "configure:2629: checking for $ac_hdr" >&5 2757 echo "configure:2758: checking for $ac_hdr" >&5
2629 2758
2630 cat > conftest.$ac_ext <<EOF 2759 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure" 2760 #line 2761 "configure"
2632 #include "confdefs.h" 2761 #include "confdefs.h"
2633 #include <$ac_hdr> 2762 #include <$ac_hdr>
2634 EOF 2763 EOF
2635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2636 { (eval echo configure:2637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2765 { (eval echo configure:2766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2637 ac_err=`grep -v '^ *+' conftest.out` 2766 ac_err=`grep -v '^ *+' conftest.out`
2638 if test -z "$ac_err"; then 2767 if test -z "$ac_err"; then
2639 rm -rf conftest* 2768 rm -rf conftest*
2640 eval "ac_cv_header_$ac_safe=yes" 2769 eval "ac_cv_header_$ac_safe=yes"
2641 else 2770 else
2661 echo "$ac_t""no" 1>&6 2790 echo "$ac_t""no" 1>&6
2662 fi 2791 fi
2663 done 2792 done
2664 2793
2665 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2794 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2666 echo "configure:2667: checking for sys/wait.h that is POSIX.1 compatible" >&5 2795 echo "configure:2796: checking for sys/wait.h that is POSIX.1 compatible" >&5
2667 2796
2668 cat > conftest.$ac_ext <<EOF 2797 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure" 2798 #line 2799 "configure"
2670 #include "confdefs.h" 2799 #include "confdefs.h"
2671 #include <sys/types.h> 2800 #include <sys/types.h>
2672 #include <sys/wait.h> 2801 #include <sys/wait.h>
2673 #ifndef WEXITSTATUS 2802 #ifndef WEXITSTATUS
2674 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2803 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2680 int s; 2809 int s;
2681 wait (&s); 2810 wait (&s);
2682 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2811 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2683 ; return 0; } 2812 ; return 0; }
2684 EOF 2813 EOF
2685 if { (eval echo configure:2686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2814 if { (eval echo configure:2815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2686 rm -rf conftest* 2815 rm -rf conftest*
2687 ac_cv_header_sys_wait_h=yes 2816 ac_cv_header_sys_wait_h=yes
2688 else 2817 else
2689 echo "configure: failed program was:" >&5 2818 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5 2819 cat conftest.$ac_ext >&5
2704 } 2833 }
2705 2834
2706 fi 2835 fi
2707 2836
2708 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2837 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2709 echo "configure:2710: checking for ANSI C header files" >&5 2838 echo "configure:2839: checking for ANSI C header files" >&5
2710 2839
2711 cat > conftest.$ac_ext <<EOF 2840 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure" 2841 #line 2842 "configure"
2713 #include "confdefs.h" 2842 #include "confdefs.h"
2714 #include <stdlib.h> 2843 #include <stdlib.h>
2715 #include <stdarg.h> 2844 #include <stdarg.h>
2716 #include <string.h> 2845 #include <string.h>
2717 #include <float.h> 2846 #include <float.h>
2718 EOF 2847 EOF
2719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2720 { (eval echo configure:2721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2849 { (eval echo configure:2850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2721 ac_err=`grep -v '^ *+' conftest.out` 2850 ac_err=`grep -v '^ *+' conftest.out`
2722 if test -z "$ac_err"; then 2851 if test -z "$ac_err"; then
2723 rm -rf conftest* 2852 rm -rf conftest*
2724 ac_cv_header_stdc=yes 2853 ac_cv_header_stdc=yes
2725 else 2854 else
2732 rm -f conftest* 2861 rm -f conftest*
2733 2862
2734 if test $ac_cv_header_stdc = yes; then 2863 if test $ac_cv_header_stdc = yes; then
2735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2736 cat > conftest.$ac_ext <<EOF 2865 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure" 2866 #line 2867 "configure"
2738 #include "confdefs.h" 2867 #include "confdefs.h"
2739 #include <string.h> 2868 #include <string.h>
2740 EOF 2869 EOF
2741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2742 egrep "memchr" >/dev/null 2>&1; then 2871 egrep "memchr" >/dev/null 2>&1; then
2750 fi 2879 fi
2751 2880
2752 if test $ac_cv_header_stdc = yes; then 2881 if test $ac_cv_header_stdc = yes; then
2753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2754 cat > conftest.$ac_ext <<EOF 2883 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure" 2884 #line 2885 "configure"
2756 #include "confdefs.h" 2885 #include "confdefs.h"
2757 #include <stdlib.h> 2886 #include <stdlib.h>
2758 EOF 2887 EOF
2759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2760 egrep "free" >/dev/null 2>&1; then 2889 egrep "free" >/dev/null 2>&1; then
2768 fi 2897 fi
2769 2898
2770 if test $ac_cv_header_stdc = yes; then 2899 if test $ac_cv_header_stdc = yes; then
2771 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2772 cat > conftest.$ac_ext <<EOF 2901 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure" 2902 #line 2903 "configure"
2774 #include "confdefs.h" 2903 #include "confdefs.h"
2775 #include <ctype.h> 2904 #include <ctype.h>
2776 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2905 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2777 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2906 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2778 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2779 int main () { int i; for (i = 0; i < 256; i++) 2908 int main () { int i; for (i = 0; i < 256; i++)
2780 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2909 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2781 exit (0); } 2910 exit (0); }
2782 2911
2783 EOF 2912 EOF
2784 if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2913 if { (eval echo configure:2914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2785 then 2914 then
2786 : 2915 :
2787 else 2916 else
2788 echo "configure: failed program was:" >&5 2917 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5 2918 cat conftest.$ac_ext >&5
2804 } 2933 }
2805 2934
2806 fi 2935 fi
2807 2936
2808 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2937 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2809 echo "configure:2810: checking whether time.h and sys/time.h may both be included" >&5 2938 echo "configure:2939: checking whether time.h and sys/time.h may both be included" >&5
2810 2939
2811 cat > conftest.$ac_ext <<EOF 2940 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure" 2941 #line 2942 "configure"
2813 #include "confdefs.h" 2942 #include "confdefs.h"
2814 #include <sys/types.h> 2943 #include <sys/types.h>
2815 #include <sys/time.h> 2944 #include <sys/time.h>
2816 #include <time.h> 2945 #include <time.h>
2817 int main() { 2946 int main() {
2818 struct tm *tp; 2947 struct tm *tp;
2819 ; return 0; } 2948 ; return 0; }
2820 EOF 2949 EOF
2821 if { (eval echo configure:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2950 if { (eval echo configure:2951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2822 rm -rf conftest* 2951 rm -rf conftest*
2823 ac_cv_header_time=yes 2952 ac_cv_header_time=yes
2824 else 2953 else
2825 echo "configure: failed program was:" >&5 2954 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5 2955 cat conftest.$ac_ext >&5
2840 } 2969 }
2841 2970
2842 fi 2971 fi
2843 2972
2844 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2973 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2845 echo "configure:2846: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2974 echo "configure:2975: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2846 2975
2847 cat > conftest.$ac_ext <<EOF 2976 cat > conftest.$ac_ext <<EOF
2848 #line 2849 "configure" 2977 #line 2978 "configure"
2849 #include "confdefs.h" 2978 #include "confdefs.h"
2850 #include <sys/types.h> 2979 #include <sys/types.h>
2851 #include <signal.h> 2980 #include <signal.h>
2852 /* NetBSD declares sys_siglist in unistd.h. */ 2981 /* NetBSD declares sys_siglist in unistd.h. */
2853 #ifdef HAVE_UNISTD_H 2982 #ifdef HAVE_UNISTD_H
2855 #endif 2984 #endif
2856 int main() { 2985 int main() {
2857 char *msg = *(sys_siglist + 1); 2986 char *msg = *(sys_siglist + 1);
2858 ; return 0; } 2987 ; return 0; }
2859 EOF 2988 EOF
2860 if { (eval echo configure:2861: \"$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
2861 rm -rf conftest* 2990 rm -rf conftest*
2862 ac_cv_decl_sys_siglist=yes 2991 ac_cv_decl_sys_siglist=yes
2863 else 2992 else
2864 echo "configure: failed program was:" >&5 2993 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5 2994 cat conftest.$ac_ext >&5
2880 3009
2881 fi 3010 fi
2882 3011
2883 3012
2884 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3013 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2885 echo "configure:2886: checking for struct utimbuf" >&5 3014 echo "configure:3015: checking for struct utimbuf" >&5
2886 cat > conftest.$ac_ext <<EOF 3015 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure" 3016 #line 3017 "configure"
2888 #include "confdefs.h" 3017 #include "confdefs.h"
2889 #ifdef TIME_WITH_SYS_TIME 3018 #ifdef TIME_WITH_SYS_TIME
2890 #include <sys/time.h> 3019 #include <sys/time.h>
2891 #include <time.h> 3020 #include <time.h>
2892 #else 3021 #else
2901 #endif 3030 #endif
2902 int main() { 3031 int main() {
2903 static struct utimbuf x; x.actime = x.modtime; 3032 static struct utimbuf x; x.actime = x.modtime;
2904 ; return 0; } 3033 ; return 0; }
2905 EOF 3034 EOF
2906 if { (eval echo configure:2907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3035 if { (eval echo configure:3036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2907 rm -rf conftest* 3036 rm -rf conftest*
2908 echo "$ac_t""yes" 1>&6 3037 echo "$ac_t""yes" 1>&6
2909 { test "$extra_verbose" = "yes" && cat << \EOF 3038 { test "$extra_verbose" = "yes" && cat << \EOF
2910 Defining HAVE_STRUCT_UTIMBUF 3039 Defining HAVE_STRUCT_UTIMBUF
2911 EOF 3040 EOF
2921 echo "$ac_t""no" 1>&6 3050 echo "$ac_t""no" 1>&6
2922 fi 3051 fi
2923 rm -f conftest* 3052 rm -f conftest*
2924 3053
2925 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3054 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2926 echo "configure:2927: checking return type of signal handlers" >&5 3055 echo "configure:3056: checking return type of signal handlers" >&5
2927 3056
2928 cat > conftest.$ac_ext <<EOF 3057 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure" 3058 #line 3059 "configure"
2930 #include "confdefs.h" 3059 #include "confdefs.h"
2931 #include <sys/types.h> 3060 #include <sys/types.h>
2932 #include <signal.h> 3061 #include <signal.h>
2933 #ifdef signal 3062 #ifdef signal
2934 #undef signal 3063 #undef signal
2941 3070
2942 int main() { 3071 int main() {
2943 int i; 3072 int i;
2944 ; return 0; } 3073 ; return 0; }
2945 EOF 3074 EOF
2946 if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3075 if { (eval echo configure:3076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2947 rm -rf conftest* 3076 rm -rf conftest*
2948 ac_cv_type_signal=void 3077 ac_cv_type_signal=void
2949 else 3078 else
2950 echo "configure: failed program was:" >&5 3079 echo "configure: failed program was:" >&5
2951 cat conftest.$ac_ext >&5 3080 cat conftest.$ac_ext >&5
2963 EOF 3092 EOF
2964 } 3093 }
2965 3094
2966 3095
2967 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3096 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2968 echo "configure:2969: checking for size_t" >&5 3097 echo "configure:3098: checking for size_t" >&5
2969 3098
2970 cat > conftest.$ac_ext <<EOF 3099 cat > conftest.$ac_ext <<EOF
2971 #line 2972 "configure" 3100 #line 3101 "configure"
2972 #include "confdefs.h" 3101 #include "confdefs.h"
2973 #include <sys/types.h> 3102 #include <sys/types.h>
2974 #if STDC_HEADERS 3103 #if STDC_HEADERS
2975 #include <stdlib.h> 3104 #include <stdlib.h>
2976 #include <stddef.h> 3105 #include <stddef.h>
2997 } 3126 }
2998 3127
2999 fi 3128 fi
3000 3129
3001 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3130 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3002 echo "configure:3003: checking for pid_t" >&5 3131 echo "configure:3132: checking for pid_t" >&5
3003 3132
3004 cat > conftest.$ac_ext <<EOF 3133 cat > conftest.$ac_ext <<EOF
3005 #line 3006 "configure" 3134 #line 3135 "configure"
3006 #include "confdefs.h" 3135 #include "confdefs.h"
3007 #include <sys/types.h> 3136 #include <sys/types.h>
3008 #if STDC_HEADERS 3137 #if STDC_HEADERS
3009 #include <stdlib.h> 3138 #include <stdlib.h>
3010 #include <stddef.h> 3139 #include <stddef.h>
3031 } 3160 }
3032 3161
3033 fi 3162 fi
3034 3163
3035 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3164 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3036 echo "configure:3037: checking for uid_t in sys/types.h" >&5 3165 echo "configure:3166: checking for uid_t in sys/types.h" >&5
3037 3166
3038 cat > conftest.$ac_ext <<EOF 3167 cat > conftest.$ac_ext <<EOF
3039 #line 3040 "configure" 3168 #line 3169 "configure"
3040 #include "confdefs.h" 3169 #include "confdefs.h"
3041 #include <sys/types.h> 3170 #include <sys/types.h>
3042 EOF 3171 EOF
3043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3044 egrep "uid_t" >/dev/null 2>&1; then 3173 egrep "uid_t" >/dev/null 2>&1; then
3070 } 3199 }
3071 3200
3072 fi 3201 fi
3073 3202
3074 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3203 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3075 echo "configure:3076: checking for mode_t" >&5 3204 echo "configure:3205: checking for mode_t" >&5
3076 3205
3077 cat > conftest.$ac_ext <<EOF 3206 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure" 3207 #line 3208 "configure"
3079 #include "confdefs.h" 3208 #include "confdefs.h"
3080 #include <sys/types.h> 3209 #include <sys/types.h>
3081 #if STDC_HEADERS 3210 #if STDC_HEADERS
3082 #include <stdlib.h> 3211 #include <stdlib.h>
3083 #include <stddef.h> 3212 #include <stddef.h>
3104 } 3233 }
3105 3234
3106 fi 3235 fi
3107 3236
3108 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3237 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3109 echo "configure:3110: checking for off_t" >&5 3238 echo "configure:3239: checking for off_t" >&5
3110 3239
3111 cat > conftest.$ac_ext <<EOF 3240 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure" 3241 #line 3242 "configure"
3113 #include "confdefs.h" 3242 #include "confdefs.h"
3114 #include <sys/types.h> 3243 #include <sys/types.h>
3115 #if STDC_HEADERS 3244 #if STDC_HEADERS
3116 #include <stdlib.h> 3245 #include <stdlib.h>
3117 #include <stddef.h> 3246 #include <stddef.h>
3139 3268
3140 fi 3269 fi
3141 3270
3142 3271
3143 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3272 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3144 echo "configure:3145: checking for struct timeval" >&5 3273 echo "configure:3274: checking for struct timeval" >&5
3145 cat > conftest.$ac_ext <<EOF 3274 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure" 3275 #line 3276 "configure"
3147 #include "confdefs.h" 3276 #include "confdefs.h"
3148 #ifdef TIME_WITH_SYS_TIME 3277 #ifdef TIME_WITH_SYS_TIME
3149 #include <sys/time.h> 3278 #include <sys/time.h>
3150 #include <time.h> 3279 #include <time.h>
3151 #else 3280 #else
3157 #endif 3286 #endif
3158 int main() { 3287 int main() {
3159 static struct timeval x; x.tv_sec = x.tv_usec; 3288 static struct timeval x; x.tv_sec = x.tv_usec;
3160 ; return 0; } 3289 ; return 0; }
3161 EOF 3290 EOF
3162 if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3291 if { (eval echo configure:3292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3163 rm -rf conftest* 3292 rm -rf conftest*
3164 echo "$ac_t""yes" 1>&6 3293 echo "$ac_t""yes" 1>&6
3165 HAVE_TIMEVAL=yes 3294 HAVE_TIMEVAL=yes
3166 { test "$extra_verbose" = "yes" && cat << \EOF 3295 { test "$extra_verbose" = "yes" && cat << \EOF
3167 Defining HAVE_TIMEVAL 3296 Defining HAVE_TIMEVAL
3179 HAVE_TIMEVAL=no 3308 HAVE_TIMEVAL=no
3180 fi 3309 fi
3181 rm -f conftest* 3310 rm -f conftest*
3182 3311
3183 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3312 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3184 echo "configure:3185: checking whether struct tm is in sys/time.h or time.h" >&5 3313 echo "configure:3314: checking whether struct tm is in sys/time.h or time.h" >&5
3185 3314
3186 cat > conftest.$ac_ext <<EOF 3315 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure" 3316 #line 3317 "configure"
3188 #include "confdefs.h" 3317 #include "confdefs.h"
3189 #include <sys/types.h> 3318 #include <sys/types.h>
3190 #include <time.h> 3319 #include <time.h>
3191 int main() { 3320 int main() {
3192 struct tm *tp; tp->tm_sec; 3321 struct tm *tp; tp->tm_sec;
3193 ; return 0; } 3322 ; return 0; }
3194 EOF 3323 EOF
3195 if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3324 if { (eval echo configure:3325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3196 rm -rf conftest* 3325 rm -rf conftest*
3197 ac_cv_struct_tm=time.h 3326 ac_cv_struct_tm=time.h
3198 else 3327 else
3199 echo "configure: failed program was:" >&5 3328 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5 3329 cat conftest.$ac_ext >&5
3214 } 3343 }
3215 3344
3216 fi 3345 fi
3217 3346
3218 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3347 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3219 echo "configure:3220: checking for tm_zone in struct tm" >&5 3348 echo "configure:3349: checking for tm_zone in struct tm" >&5
3220 3349
3221 cat > conftest.$ac_ext <<EOF 3350 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure" 3351 #line 3352 "configure"
3223 #include "confdefs.h" 3352 #include "confdefs.h"
3224 #include <sys/types.h> 3353 #include <sys/types.h>
3225 #include <$ac_cv_struct_tm> 3354 #include <$ac_cv_struct_tm>
3226 int main() { 3355 int main() {
3227 struct tm tm; tm.tm_zone; 3356 struct tm tm; tm.tm_zone;
3228 ; return 0; } 3357 ; return 0; }
3229 EOF 3358 EOF
3230 if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3359 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3231 rm -rf conftest* 3360 rm -rf conftest*
3232 ac_cv_struct_tm_zone=yes 3361 ac_cv_struct_tm_zone=yes
3233 else 3362 else
3234 echo "configure: failed program was:" >&5 3363 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5 3364 cat conftest.$ac_ext >&5
3248 EOF 3377 EOF
3249 } 3378 }
3250 3379
3251 else 3380 else
3252 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3381 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3253 echo "configure:3254: checking for tzname" >&5 3382 echo "configure:3383: checking for tzname" >&5
3254 3383
3255 cat > conftest.$ac_ext <<EOF 3384 cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure" 3385 #line 3386 "configure"
3257 #include "confdefs.h" 3386 #include "confdefs.h"
3258 #include <time.h> 3387 #include <time.h>
3259 #ifndef tzname /* For SGI. */ 3388 #ifndef tzname /* For SGI. */
3260 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3389 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3261 #endif 3390 #endif
3262 int main() { 3391 int main() {
3263 atoi(*tzname); 3392 atoi(*tzname);
3264 ; return 0; } 3393 ; return 0; }
3265 EOF 3394 EOF
3266 if { (eval echo configure:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3395 if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3267 rm -rf conftest* 3396 rm -rf conftest*
3268 ac_cv_var_tzname=yes 3397 ac_cv_var_tzname=yes
3269 else 3398 else
3270 echo "configure: failed program was:" >&5 3399 echo "configure: failed program was:" >&5
3271 cat conftest.$ac_ext >&5 3400 cat conftest.$ac_ext >&5
3287 fi 3416 fi
3288 fi 3417 fi
3289 3418
3290 3419
3291 echo $ac_n "checking for working const""... $ac_c" 1>&6 3420 echo $ac_n "checking for working const""... $ac_c" 1>&6
3292 echo "configure:3293: checking for working const" >&5 3421 echo "configure:3422: checking for working const" >&5
3293 3422
3294 cat > conftest.$ac_ext <<EOF 3423 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure" 3424 #line 3425 "configure"
3296 #include "confdefs.h" 3425 #include "confdefs.h"
3297 3426
3298 int main() { 3427 int main() {
3299 3428
3300 /* Ultrix mips cc rejects this. */ 3429 /* Ultrix mips cc rejects this. */
3339 const int foo = 10; 3468 const int foo = 10;
3340 } 3469 }
3341 3470
3342 ; return 0; } 3471 ; return 0; }
3343 EOF 3472 EOF
3344 if { (eval echo configure:3345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3345 rm -rf conftest* 3474 rm -rf conftest*
3346 ac_cv_c_const=yes 3475 ac_cv_c_const=yes
3347 else 3476 else
3348 echo "configure: failed program was:" >&5 3477 echo "configure: failed program was:" >&5
3349 cat conftest.$ac_ext >&5 3478 cat conftest.$ac_ext >&5
3364 3493
3365 fi 3494 fi
3366 3495
3367 3496
3368 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3497 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3369 echo "configure:3370: checking whether ${MAKE-make} sets \${MAKE}" >&5 3498 echo "configure:3499: checking whether ${MAKE-make} sets \${MAKE}" >&5
3370 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3499 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3371 3500
3372 cat > conftestmake <<\EOF 3501 cat > conftestmake <<\EOF
3373 all: 3502 all:
3374 @echo 'ac_maketemp="${MAKE}"' 3503 @echo 'ac_maketemp="${MAKE}"'
3389 SET_MAKE="MAKE=${MAKE-make}" 3518 SET_MAKE="MAKE=${MAKE-make}"
3390 fi 3519 fi
3391 3520
3392 3521
3393 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3522 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3394 echo "configure:3395: checking whether byte ordering is bigendian" >&5 3523 echo "configure:3524: checking whether byte ordering is bigendian" >&5
3395 3524
3396 ac_cv_c_bigendian=unknown 3525 ac_cv_c_bigendian=unknown
3397 # See if sys/param.h defines the BYTE_ORDER macro. 3526 # See if sys/param.h defines the BYTE_ORDER macro.
3398 cat > conftest.$ac_ext <<EOF 3527 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure" 3528 #line 3529 "configure"
3400 #include "confdefs.h" 3529 #include "confdefs.h"
3401 #include <sys/types.h> 3530 #include <sys/types.h>
3402 #include <sys/param.h> 3531 #include <sys/param.h>
3403 int main() { 3532 int main() {
3404 3533
3405 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3534 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3406 bogus endian macros 3535 bogus endian macros
3407 #endif 3536 #endif
3408 ; return 0; } 3537 ; return 0; }
3409 EOF 3538 EOF
3410 if { (eval echo configure:3411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3539 if { (eval echo configure:3540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3411 rm -rf conftest* 3540 rm -rf conftest*
3412 # It does; now see whether it defined to BIG_ENDIAN or not. 3541 # It does; now see whether it defined to BIG_ENDIAN or not.
3413 cat > conftest.$ac_ext <<EOF 3542 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure" 3543 #line 3544 "configure"
3415 #include "confdefs.h" 3544 #include "confdefs.h"
3416 #include <sys/types.h> 3545 #include <sys/types.h>
3417 #include <sys/param.h> 3546 #include <sys/param.h>
3418 int main() { 3547 int main() {
3419 3548
3420 #if BYTE_ORDER != BIG_ENDIAN 3549 #if BYTE_ORDER != BIG_ENDIAN
3421 not big endian 3550 not big endian
3422 #endif 3551 #endif
3423 ; return 0; } 3552 ; return 0; }
3424 EOF 3553 EOF
3425 if { (eval echo configure:3426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3554 if { (eval echo configure:3555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3426 rm -rf conftest* 3555 rm -rf conftest*
3427 ac_cv_c_bigendian=yes 3556 ac_cv_c_bigendian=yes
3428 else 3557 else
3429 echo "configure: failed program was:" >&5 3558 echo "configure: failed program was:" >&5
3430 cat conftest.$ac_ext >&5 3559 cat conftest.$ac_ext >&5
3437 cat conftest.$ac_ext >&5 3566 cat conftest.$ac_ext >&5
3438 fi 3567 fi
3439 rm -f conftest* 3568 rm -f conftest*
3440 if test $ac_cv_c_bigendian = unknown; then 3569 if test $ac_cv_c_bigendian = unknown; then
3441 cat > conftest.$ac_ext <<EOF 3570 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure" 3571 #line 3572 "configure"
3443 #include "confdefs.h" 3572 #include "confdefs.h"
3444 main () { 3573 main () {
3445 /* Are we little or big endian? From Harbison&Steele. */ 3574 /* Are we little or big endian? From Harbison&Steele. */
3446 union 3575 union
3447 { 3576 {
3450 } u; 3579 } u;
3451 u.l = 1; 3580 u.l = 1;
3452 exit (u.c[sizeof (long) - 1] == 1); 3581 exit (u.c[sizeof (long) - 1] == 1);
3453 } 3582 }
3454 EOF 3583 EOF
3455 if { (eval echo configure:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3584 if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3456 then 3585 then
3457 ac_cv_c_bigendian=no 3586 ac_cv_c_bigendian=no
3458 else 3587 else
3459 echo "configure: failed program was:" >&5 3588 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5 3589 cat conftest.$ac_ext >&5
3476 3605
3477 fi 3606 fi
3478 3607
3479 3608
3480 echo $ac_n "checking size of short""... $ac_c" 1>&6 3609 echo $ac_n "checking size of short""... $ac_c" 1>&6
3481 echo "configure:3482: checking size of short" >&5 3610 echo "configure:3611: checking size of short" >&5
3482 3611
3483 cat > conftest.$ac_ext <<EOF 3612 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure" 3613 #line 3614 "configure"
3485 #include "confdefs.h" 3614 #include "confdefs.h"
3486 #include <stdio.h> 3615 #include <stdio.h>
3487 main() 3616 main()
3488 { 3617 {
3489 FILE *f=fopen("conftestval", "w"); 3618 FILE *f=fopen("conftestval", "w");
3490 if (!f) exit(1); 3619 if (!f) exit(1);
3491 fprintf(f, "%d\n", sizeof(short)); 3620 fprintf(f, "%d\n", sizeof(short));
3492 exit(0); 3621 exit(0);
3493 } 3622 }
3494 EOF 3623 EOF
3495 if { (eval echo configure:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3624 if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3496 then 3625 then
3497 ac_cv_sizeof_short=`cat conftestval` 3626 ac_cv_sizeof_short=`cat conftestval`
3498 else 3627 else
3499 echo "configure: failed program was:" >&5 3628 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5 3629 cat conftest.$ac_ext >&5
3517 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3646 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3518 echo "*** PANIC *** Please examine config.log for compilation errors." 3647 echo "*** PANIC *** Please examine config.log for compilation errors."
3519 exit 1 3648 exit 1
3520 fi 3649 fi
3521 echo $ac_n "checking size of int""... $ac_c" 1>&6 3650 echo $ac_n "checking size of int""... $ac_c" 1>&6
3522 echo "configure:3523: checking size of int" >&5 3651 echo "configure:3652: checking size of int" >&5
3523 3652
3524 cat > conftest.$ac_ext <<EOF 3653 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure" 3654 #line 3655 "configure"
3526 #include "confdefs.h" 3655 #include "confdefs.h"
3527 #include <stdio.h> 3656 #include <stdio.h>
3528 main() 3657 main()
3529 { 3658 {
3530 FILE *f=fopen("conftestval", "w"); 3659 FILE *f=fopen("conftestval", "w");
3531 if (!f) exit(1); 3660 if (!f) exit(1);
3532 fprintf(f, "%d\n", sizeof(int)); 3661 fprintf(f, "%d\n", sizeof(int));
3533 exit(0); 3662 exit(0);
3534 } 3663 }
3535 EOF 3664 EOF
3536 if { (eval echo configure:3537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3537 then 3666 then
3538 ac_cv_sizeof_int=`cat conftestval` 3667 ac_cv_sizeof_int=`cat conftestval`
3539 else 3668 else
3540 echo "configure: failed program was:" >&5 3669 echo "configure: failed program was:" >&5
3541 cat conftest.$ac_ext >&5 3670 cat conftest.$ac_ext >&5
3552 EOF 3681 EOF
3553 } 3682 }
3554 3683
3555 3684
3556 echo $ac_n "checking size of long""... $ac_c" 1>&6 3685 echo $ac_n "checking size of long""... $ac_c" 1>&6
3557 echo "configure:3558: checking size of long" >&5 3686 echo "configure:3687: checking size of long" >&5
3558 3687
3559 cat > conftest.$ac_ext <<EOF 3688 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure" 3689 #line 3690 "configure"
3561 #include "confdefs.h" 3690 #include "confdefs.h"
3562 #include <stdio.h> 3691 #include <stdio.h>
3563 main() 3692 main()
3564 { 3693 {
3565 FILE *f=fopen("conftestval", "w"); 3694 FILE *f=fopen("conftestval", "w");
3566 if (!f) exit(1); 3695 if (!f) exit(1);
3567 fprintf(f, "%d\n", sizeof(long)); 3696 fprintf(f, "%d\n", sizeof(long));
3568 exit(0); 3697 exit(0);
3569 } 3698 }
3570 EOF 3699 EOF
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3700 if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3572 then 3701 then
3573 ac_cv_sizeof_long=`cat conftestval` 3702 ac_cv_sizeof_long=`cat conftestval`
3574 else 3703 else
3575 echo "configure: failed program was:" >&5 3704 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5 3705 cat conftest.$ac_ext >&5
3587 EOF 3716 EOF
3588 } 3717 }
3589 3718
3590 3719
3591 echo $ac_n "checking size of long long""... $ac_c" 1>&6 3720 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3592 echo "configure:3593: checking size of long long" >&5 3721 echo "configure:3722: checking size of long long" >&5
3593 3722
3594 cat > conftest.$ac_ext <<EOF 3723 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure" 3724 #line 3725 "configure"
3596 #include "confdefs.h" 3725 #include "confdefs.h"
3597 #include <stdio.h> 3726 #include <stdio.h>
3598 main() 3727 main()
3599 { 3728 {
3600 FILE *f=fopen("conftestval", "w"); 3729 FILE *f=fopen("conftestval", "w");
3601 if (!f) exit(1); 3730 if (!f) exit(1);
3602 fprintf(f, "%d\n", sizeof(long long)); 3731 fprintf(f, "%d\n", sizeof(long long));
3603 exit(0); 3732 exit(0);
3604 } 3733 }
3605 EOF 3734 EOF
3606 if { (eval echo configure:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3735 if { (eval echo configure:3736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3607 then 3736 then
3608 ac_cv_sizeof_long_long=`cat conftestval` 3737 ac_cv_sizeof_long_long=`cat conftestval`
3609 else 3738 else
3610 echo "configure: failed program was:" >&5 3739 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5 3740 cat conftest.$ac_ext >&5
3622 EOF 3751 EOF
3623 } 3752 }
3624 3753
3625 3754
3626 echo $ac_n "checking size of void *""... $ac_c" 1>&6 3755 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3627 echo "configure:3628: checking size of void *" >&5 3756 echo "configure:3757: checking size of void *" >&5
3628 3757
3629 cat > conftest.$ac_ext <<EOF 3758 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure" 3759 #line 3760 "configure"
3631 #include "confdefs.h" 3760 #include "confdefs.h"
3632 #include <stdio.h> 3761 #include <stdio.h>
3633 main() 3762 main()
3634 { 3763 {
3635 FILE *f=fopen("conftestval", "w"); 3764 FILE *f=fopen("conftestval", "w");
3636 if (!f) exit(1); 3765 if (!f) exit(1);
3637 fprintf(f, "%d\n", sizeof(void *)); 3766 fprintf(f, "%d\n", sizeof(void *));
3638 exit(0); 3767 exit(0);
3639 } 3768 }
3640 EOF 3769 EOF
3641 if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3770 if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3642 then 3771 then
3643 ac_cv_sizeof_void_p=`cat conftestval` 3772 ac_cv_sizeof_void_p=`cat conftestval`
3644 else 3773 else
3645 echo "configure: failed program was:" >&5 3774 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5 3775 cat conftest.$ac_ext >&5
3658 } 3787 }
3659 3788
3660 3789
3661 3790
3662 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3791 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3663 echo "configure:3664: checking for long file names" >&5 3792 echo "configure:3793: checking for long file names" >&5
3664 3793
3665 ac_cv_sys_long_file_names=yes 3794 ac_cv_sys_long_file_names=yes
3666 # Test for long file names in all the places we know might matter: 3795 # Test for long file names in all the places we know might matter:
3667 # . the current directory, where building will happen 3796 # . the current directory, where building will happen
3668 # $prefix/lib where we will be installing things 3797 # $prefix/lib where we will be installing things
3705 fi 3834 fi
3706 3835
3707 3836
3708 3837
3709 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 3838 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
3710 echo "configure:3711: checking for sin in -lm" >&5 3839 echo "configure:3840: checking for sin in -lm" >&5
3711 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 3840 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
3712 3841
3713 xe_check_libs=" -lm " 3842 xe_check_libs=" -lm "
3714 cat > conftest.$ac_ext <<EOF 3843 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure" 3844 #line 3845 "configure"
3716 #include "confdefs.h" 3845 #include "confdefs.h"
3717 /* Override any gcc2 internal prototype to avoid an error. */ 3846 /* Override any gcc2 internal prototype to avoid an error. */
3718 /* We use char because int might match the return type of a gcc2 3847 /* We use char because int might match the return type of a gcc2
3719 builtin and then its argument prototype would still apply. */ 3848 builtin and then its argument prototype would still apply. */
3720 char sin(); 3849 char sin();
3721 3850
3722 int main() { 3851 int main() {
3723 sin() 3852 sin()
3724 ; return 0; } 3853 ; return 0; }
3725 EOF 3854 EOF
3726 if { (eval echo configure:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3855 if { (eval echo configure:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3727 rm -rf conftest* 3856 rm -rf conftest*
3728 eval "ac_cv_lib_$ac_lib_var=yes" 3857 eval "ac_cv_lib_$ac_lib_var=yes"
3729 else 3858 else
3730 echo "configure: failed program was:" >&5 3859 echo "configure: failed program was:" >&5
3731 cat conftest.$ac_ext >&5 3860 cat conftest.$ac_ext >&5
3763 EOF 3892 EOF
3764 } 3893 }
3765 3894
3766 3895
3767 cat > conftest.$ac_ext <<EOF 3896 cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure" 3897 #line 3898 "configure"
3769 #include "confdefs.h" 3898 #include "confdefs.h"
3770 #include <math.h> 3899 #include <math.h>
3771 int main() { 3900 int main() {
3772 return atanh(1.0) + asinh(1.0) + acosh(1.0); 3901 return atanh(1.0) + asinh(1.0) + acosh(1.0);
3773 ; return 0; } 3902 ; return 0; }
3774 EOF 3903 EOF
3775 if { (eval echo configure:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3904 if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3776 rm -rf conftest* 3905 rm -rf conftest*
3777 { test "$extra_verbose" = "yes" && cat << \EOF 3906 { test "$extra_verbose" = "yes" && cat << \EOF
3778 Defining HAVE_INVERSE_HYPERBOLIC 3907 Defining HAVE_INVERSE_HYPERBOLIC
3779 EOF 3908 EOF
3780 cat >> confdefs.h <<\EOF 3909 cat >> confdefs.h <<\EOF
3787 cat conftest.$ac_ext >&5 3916 cat conftest.$ac_ext >&5
3788 fi 3917 fi
3789 rm -f conftest* 3918 rm -f conftest*
3790 3919
3791 echo "checking type of mail spool file locking" 1>&6 3920 echo "checking type of mail spool file locking" 1>&6
3792 echo "configure:3793: checking type of mail spool file locking" >&5 3921 echo "configure:3922: checking type of mail spool file locking" >&5
3793 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3922 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3794 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3923 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3795 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3924 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3796 Defining REAL_MAIL_USE_LOCKF 3925 Defining REAL_MAIL_USE_LOCKF
3797 EOF 3926 EOF
3811 else mail_locking="dot-locking" 3940 else mail_locking="dot-locking"
3812 fi 3941 fi
3813 3942
3814 3943
3815 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 3944 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3816 echo "configure:3817: checking for kstat_open in -lkstat" >&5 3945 echo "configure:3946: checking for kstat_open in -lkstat" >&5
3817 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 3946 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3818 3947
3819 xe_check_libs=" -lkstat " 3948 xe_check_libs=" -lkstat "
3820 cat > conftest.$ac_ext <<EOF 3949 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure" 3950 #line 3951 "configure"
3822 #include "confdefs.h" 3951 #include "confdefs.h"
3823 /* Override any gcc2 internal prototype to avoid an error. */ 3952 /* Override any gcc2 internal prototype to avoid an error. */
3824 /* We use char because int might match the return type of a gcc2 3953 /* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */ 3954 builtin and then its argument prototype would still apply. */
3826 char kstat_open(); 3955 char kstat_open();
3827 3956
3828 int main() { 3957 int main() {
3829 kstat_open() 3958 kstat_open()
3830 ; return 0; } 3959 ; return 0; }
3831 EOF 3960 EOF
3832 if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3961 if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3833 rm -rf conftest* 3962 rm -rf conftest*
3834 eval "ac_cv_lib_$ac_lib_var=yes" 3963 eval "ac_cv_lib_$ac_lib_var=yes"
3835 else 3964 else
3836 echo "configure: failed program was:" >&5 3965 echo "configure: failed program was:" >&5
3837 cat conftest.$ac_ext >&5 3966 cat conftest.$ac_ext >&5
3861 3990
3862 3991
3863 3992
3864 3993
3865 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 3994 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
3866 echo "configure:3867: checking for kvm_read in -lkvm" >&5 3995 echo "configure:3996: checking for kvm_read in -lkvm" >&5
3867 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 3996 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
3868 3997
3869 xe_check_libs=" -lkvm " 3998 xe_check_libs=" -lkvm "
3870 cat > conftest.$ac_ext <<EOF 3999 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure" 4000 #line 4001 "configure"
3872 #include "confdefs.h" 4001 #include "confdefs.h"
3873 /* Override any gcc2 internal prototype to avoid an error. */ 4002 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2 4003 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */ 4004 builtin and then its argument prototype would still apply. */
3876 char kvm_read(); 4005 char kvm_read();
3877 4006
3878 int main() { 4007 int main() {
3879 kvm_read() 4008 kvm_read()
3880 ; return 0; } 4009 ; return 0; }
3881 EOF 4010 EOF
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3883 rm -rf conftest* 4012 rm -rf conftest*
3884 eval "ac_cv_lib_$ac_lib_var=yes" 4013 eval "ac_cv_lib_$ac_lib_var=yes"
3885 else 4014 else
3886 echo "configure: failed program was:" >&5 4015 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5 4016 cat conftest.$ac_ext >&5
3911 4040
3912 4041
3913 4042
3914 4043
3915 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4044 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3916 echo "configure:3917: checking for cma_open in -lpthreads" >&5 4045 echo "configure:4046: checking for cma_open in -lpthreads" >&5
3917 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4046 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3918 4047
3919 xe_check_libs=" -lpthreads " 4048 xe_check_libs=" -lpthreads "
3920 cat > conftest.$ac_ext <<EOF 4049 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure" 4050 #line 4051 "configure"
3922 #include "confdefs.h" 4051 #include "confdefs.h"
3923 /* Override any gcc2 internal prototype to avoid an error. */ 4052 /* Override any gcc2 internal prototype to avoid an error. */
3924 /* We use char because int might match the return type of a gcc2 4053 /* We use char because int might match the return type of a gcc2
3925 builtin and then its argument prototype would still apply. */ 4054 builtin and then its argument prototype would still apply. */
3926 char cma_open(); 4055 char cma_open();
3927 4056
3928 int main() { 4057 int main() {
3929 cma_open() 4058 cma_open()
3930 ; return 0; } 4059 ; return 0; }
3931 EOF 4060 EOF
3932 if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4061 if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3933 rm -rf conftest* 4062 rm -rf conftest*
3934 eval "ac_cv_lib_$ac_lib_var=yes" 4063 eval "ac_cv_lib_$ac_lib_var=yes"
3935 else 4064 else
3936 echo "configure: failed program was:" >&5 4065 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5 4066 cat conftest.$ac_ext >&5
3963 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 4092 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
3964 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 4093 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
3965 fi 4094 fi
3966 4095
3967 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4096 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
3968 echo "configure:3969: checking whether the -xildoff compiler flag is required" >&5 4097 echo "configure:4098: checking whether the -xildoff compiler flag is required" >&5
3969 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4098 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
3970 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4099 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
3971 then echo "$ac_t""no" 1>&6; 4100 then echo "$ac_t""no" 1>&6;
3972 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi 4101 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
3973 fi 4102 fi
3974 else echo "$ac_t""no" 1>&6 4103 else echo "$ac_t""no" 1>&6
3975 fi 4104 fi
3976 4105
3977 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4106 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
3978 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4107 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
3979 echo "configure:3980: checking for \"-z ignore\" linker flag" >&5 4108 echo "configure:4109: checking for \"-z ignore\" linker flag" >&5
3980 case "`ld -h 2>&1`" in 4109 case "`ld -h 2>&1`" in
3981 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4110 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
3982 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4111 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
3983 *) echo "$ac_t""no" 1>&6 ;; 4112 *) echo "$ac_t""no" 1>&6 ;;
3984 esac 4113 esac
3985 fi 4114 fi
3986 4115
3987 4116
3988 echo "checking "for specified window system"" 1>&6 4117 echo "checking "for specified window system"" 1>&6
3989 echo "configure:3990: checking "for specified window system"" >&5 4118 echo "configure:4119: checking "for specified window system"" >&5
3990 4119
3991 if test "$with_x11" != "no"; then 4120 if test "$with_x11" != "no"; then
3992 test "$x_includes $x_libraries" != "NONE NONE" && \ 4121 test "$x_includes $x_libraries" != "NONE NONE" && \
3993 window_system=x11 with_x11=yes 4122 window_system=x11 with_x11=yes
3994 4123
4014 # If we find X, set shell vars x_includes and x_libraries to the 4143 # If we find X, set shell vars x_includes and x_libraries to the
4015 # paths, otherwise set no_x=yes. 4144 # paths, otherwise set no_x=yes.
4016 # Uses ac_ vars as temps to allow command line to override cache and checks. 4145 # Uses ac_ vars as temps to allow command line to override cache and checks.
4017 # --without-x overrides everything else, but does not touch the cache. 4146 # --without-x overrides everything else, but does not touch the cache.
4018 echo $ac_n "checking for X""... $ac_c" 1>&6 4147 echo $ac_n "checking for X""... $ac_c" 1>&6
4019 echo "configure:4020: checking for X" >&5 4148 echo "configure:4149: checking for X" >&5
4020 4149
4021 # Check whether --with-x or --without-x was given. 4150 # Check whether --with-x or --without-x was given.
4022 if test "${with_x+set}" = set; then 4151 if test "${with_x+set}" = set; then
4023 withval="$with_x" 4152 withval="$with_x"
4024 : 4153 :
4074 # Guess where to find include files, by looking for this one X11 .h file. 4203 # Guess where to find include files, by looking for this one X11 .h file.
4075 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4204 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4076 4205
4077 # First, try using that file with no special directory specified. 4206 # First, try using that file with no special directory specified.
4078 cat > conftest.$ac_ext <<EOF 4207 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure" 4208 #line 4209 "configure"
4080 #include "confdefs.h" 4209 #include "confdefs.h"
4081 #include <$x_direct_test_include> 4210 #include <$x_direct_test_include>
4082 EOF 4211 EOF
4083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4084 { (eval echo configure:4085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4213 { (eval echo configure:4214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4085 ac_err=`grep -v '^ *+' conftest.out` 4214 ac_err=`grep -v '^ *+' conftest.out`
4086 if test -z "$ac_err"; then 4215 if test -z "$ac_err"; then
4087 rm -rf conftest* 4216 rm -rf conftest*
4088 # We can compile using X headers with no special include directory. 4217 # We can compile using X headers with no special include directory.
4089 ac_x_includes= 4218 ac_x_includes=
4148 # See if we find them without any special options. 4277 # See if we find them without any special options.
4149 # Don't add to $LIBS permanently. 4278 # Don't add to $LIBS permanently.
4150 ac_save_LIBS="$LIBS" 4279 ac_save_LIBS="$LIBS"
4151 LIBS="-l$x_direct_test_library $LIBS" 4280 LIBS="-l$x_direct_test_library $LIBS"
4152 cat > conftest.$ac_ext <<EOF 4281 cat > conftest.$ac_ext <<EOF
4153 #line 4154 "configure" 4282 #line 4283 "configure"
4154 #include "confdefs.h" 4283 #include "confdefs.h"
4155 4284
4156 int main() { 4285 int main() {
4157 ${x_direct_test_function}() 4286 ${x_direct_test_function}()
4158 ; return 0; } 4287 ; return 0; }
4159 EOF 4288 EOF
4160 if { (eval echo configure:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4289 if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4161 rm -rf conftest* 4290 rm -rf conftest*
4162 LIBS="$ac_save_LIBS" 4291 LIBS="$ac_save_LIBS"
4163 # We can link X programs with no special library path. 4292 # We can link X programs with no special library path.
4164 ac_x_libraries= 4293 ac_x_libraries=
4165 else 4294 else
4264 # For Solaris; some versions of Sun CC require a space after -R and 4393 # For Solaris; some versions of Sun CC require a space after -R and
4265 # others require no space. Words are not sufficient . . . . 4394 # others require no space. Words are not sufficient . . . .
4266 case "`(uname -sr) 2>/dev/null`" in 4395 case "`(uname -sr) 2>/dev/null`" in
4267 "SunOS 5"*) 4396 "SunOS 5"*)
4268 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4397 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4269 echo "configure:4270: checking whether -R must be followed by a space" >&5 4398 echo "configure:4399: checking whether -R must be followed by a space" >&5
4270 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4399 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4271 cat > conftest.$ac_ext <<EOF 4400 cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure" 4401 #line 4402 "configure"
4273 #include "confdefs.h" 4402 #include "confdefs.h"
4274 4403
4275 int main() { 4404 int main() {
4276 4405
4277 ; return 0; } 4406 ; return 0; }
4278 EOF 4407 EOF
4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4408 if { (eval echo configure:4409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4280 rm -rf conftest* 4409 rm -rf conftest*
4281 ac_R_nospace=yes 4410 ac_R_nospace=yes
4282 else 4411 else
4283 echo "configure: failed program was:" >&5 4412 echo "configure: failed program was:" >&5
4284 cat conftest.$ac_ext >&5 4413 cat conftest.$ac_ext >&5
4290 echo "$ac_t""no" 1>&6 4419 echo "$ac_t""no" 1>&6
4291 X_LIBS="$X_LIBS -R$x_libraries" 4420 X_LIBS="$X_LIBS -R$x_libraries"
4292 else 4421 else
4293 LIBS="$ac_xsave_LIBS -R $x_libraries" 4422 LIBS="$ac_xsave_LIBS -R $x_libraries"
4294 cat > conftest.$ac_ext <<EOF 4423 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure" 4424 #line 4425 "configure"
4296 #include "confdefs.h" 4425 #include "confdefs.h"
4297 4426
4298 int main() { 4427 int main() {
4299 4428
4300 ; return 0; } 4429 ; return 0; }
4301 EOF 4430 EOF
4302 if { (eval echo configure:4303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4431 if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4303 rm -rf conftest* 4432 rm -rf conftest*
4304 ac_R_space=yes 4433 ac_R_space=yes
4305 else 4434 else
4306 echo "configure: failed program was:" >&5 4435 echo "configure: failed program was:" >&5
4307 cat conftest.$ac_ext >&5 4436 cat conftest.$ac_ext >&5
4333 if test "$with_dnet" = "no" ; then 4462 if test "$with_dnet" = "no" ; then
4334 ac_cv_lib_dnet_dnet_ntoa=no 4463 ac_cv_lib_dnet_dnet_ntoa=no
4335 else 4464 else
4336 4465
4337 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4466 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4338 echo "configure:4339: checking for dnet_ntoa in -ldnet" >&5 4467 echo "configure:4468: checking for dnet_ntoa in -ldnet" >&5
4339 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4468 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4340 4469
4341 xe_check_libs=" -ldnet " 4470 xe_check_libs=" -ldnet "
4342 cat > conftest.$ac_ext <<EOF 4471 cat > conftest.$ac_ext <<EOF
4343 #line 4344 "configure" 4472 #line 4473 "configure"
4344 #include "confdefs.h" 4473 #include "confdefs.h"
4345 /* Override any gcc2 internal prototype to avoid an error. */ 4474 /* Override any gcc2 internal prototype to avoid an error. */
4346 /* We use char because int might match the return type of a gcc2 4475 /* We use char because int might match the return type of a gcc2
4347 builtin and then its argument prototype would still apply. */ 4476 builtin and then its argument prototype would still apply. */
4348 char dnet_ntoa(); 4477 char dnet_ntoa();
4349 4478
4350 int main() { 4479 int main() {
4351 dnet_ntoa() 4480 dnet_ntoa()
4352 ; return 0; } 4481 ; return 0; }
4353 EOF 4482 EOF
4354 if { (eval echo configure:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4355 rm -rf conftest* 4484 rm -rf conftest*
4356 eval "ac_cv_lib_$ac_lib_var=yes" 4485 eval "ac_cv_lib_$ac_lib_var=yes"
4357 else 4486 else
4358 echo "configure: failed program was:" >&5 4487 echo "configure: failed program was:" >&5
4359 cat conftest.$ac_ext >&5 4488 cat conftest.$ac_ext >&5
4373 fi 4502 fi
4374 4503
4375 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4504 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4376 4505
4377 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4506 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4378 echo "configure:4379: checking for dnet_ntoa in -ldnet_stub" >&5 4507 echo "configure:4508: checking for dnet_ntoa in -ldnet_stub" >&5
4379 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4508 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4380 4509
4381 xe_check_libs=" -ldnet_stub " 4510 xe_check_libs=" -ldnet_stub "
4382 cat > conftest.$ac_ext <<EOF 4511 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure" 4512 #line 4513 "configure"
4384 #include "confdefs.h" 4513 #include "confdefs.h"
4385 /* Override any gcc2 internal prototype to avoid an error. */ 4514 /* Override any gcc2 internal prototype to avoid an error. */
4386 /* We use char because int might match the return type of a gcc2 4515 /* We use char because int might match the return type of a gcc2
4387 builtin and then its argument prototype would still apply. */ 4516 builtin and then its argument prototype would still apply. */
4388 char dnet_ntoa(); 4517 char dnet_ntoa();
4389 4518
4390 int main() { 4519 int main() {
4391 dnet_ntoa() 4520 dnet_ntoa()
4392 ; return 0; } 4521 ; return 0; }
4393 EOF 4522 EOF
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4395 rm -rf conftest* 4524 rm -rf conftest*
4396 eval "ac_cv_lib_$ac_lib_var=yes" 4525 eval "ac_cv_lib_$ac_lib_var=yes"
4397 else 4526 else
4398 echo "configure: failed program was:" >&5 4527 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5 4528 cat conftest.$ac_ext >&5
4418 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4547 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4419 # needs -lnsl. 4548 # needs -lnsl.
4420 # The nsl library prevents programs from opening the X display 4549 # The nsl library prevents programs from opening the X display
4421 # on Irix 5.2, according to dickey@clark.net. 4550 # on Irix 5.2, according to dickey@clark.net.
4422 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4551 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4423 echo "configure:4424: checking for gethostbyname" >&5 4552 echo "configure:4553: checking for gethostbyname" >&5
4424 4553
4425 cat > conftest.$ac_ext <<EOF 4554 cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure" 4555 #line 4556 "configure"
4427 #include "confdefs.h" 4556 #include "confdefs.h"
4428 /* System header to define __stub macros and hopefully few prototypes, 4557 /* System header to define __stub macros and hopefully few prototypes,
4429 which can conflict with char gethostbyname(); below. */ 4558 which can conflict with char gethostbyname(); below. */
4430 #include <assert.h> 4559 #include <assert.h>
4431 /* Override any gcc2 internal prototype to avoid an error. */ 4560 /* Override any gcc2 internal prototype to avoid an error. */
4444 gethostbyname(); 4573 gethostbyname();
4445 #endif 4574 #endif
4446 4575
4447 ; return 0; } 4576 ; return 0; }
4448 EOF 4577 EOF
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4450 rm -rf conftest* 4579 rm -rf conftest*
4451 eval "ac_cv_func_gethostbyname=yes" 4580 eval "ac_cv_func_gethostbyname=yes"
4452 else 4581 else
4453 echo "configure: failed program was:" >&5 4582 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5 4583 cat conftest.$ac_ext >&5
4465 fi 4594 fi
4466 4595
4467 if test $ac_cv_func_gethostbyname = no; then 4596 if test $ac_cv_func_gethostbyname = no; then
4468 4597
4469 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4598 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4470 echo "configure:4471: checking for gethostbyname in -lnsl" >&5 4599 echo "configure:4600: checking for gethostbyname in -lnsl" >&5
4471 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4600 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4472 4601
4473 xe_check_libs=" -lnsl " 4602 xe_check_libs=" -lnsl "
4474 cat > conftest.$ac_ext <<EOF 4603 cat > conftest.$ac_ext <<EOF
4475 #line 4476 "configure" 4604 #line 4605 "configure"
4476 #include "confdefs.h" 4605 #include "confdefs.h"
4477 /* Override any gcc2 internal prototype to avoid an error. */ 4606 /* Override any gcc2 internal prototype to avoid an error. */
4478 /* We use char because int might match the return type of a gcc2 4607 /* We use char because int might match the return type of a gcc2
4479 builtin and then its argument prototype would still apply. */ 4608 builtin and then its argument prototype would still apply. */
4480 char gethostbyname(); 4609 char gethostbyname();
4481 4610
4482 int main() { 4611 int main() {
4483 gethostbyname() 4612 gethostbyname()
4484 ; return 0; } 4613 ; return 0; }
4485 EOF 4614 EOF
4486 if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4615 if { (eval echo configure:4616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4487 rm -rf conftest* 4616 rm -rf conftest*
4488 eval "ac_cv_lib_$ac_lib_var=yes" 4617 eval "ac_cv_lib_$ac_lib_var=yes"
4489 else 4618 else
4490 echo "configure: failed program was:" >&5 4619 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5 4620 cat conftest.$ac_ext >&5
4511 # on later versions), says simon@lia.di.epfl.ch: it contains 4640 # on later versions), says simon@lia.di.epfl.ch: it contains
4512 # gethostby* variants that don't use the nameserver (or something). 4641 # gethostby* variants that don't use the nameserver (or something).
4513 # -lsocket must be given before -lnsl if both are needed. 4642 # -lsocket must be given before -lnsl if both are needed.
4514 # We assume that if connect needs -lnsl, so does gethostbyname. 4643 # We assume that if connect needs -lnsl, so does gethostbyname.
4515 echo $ac_n "checking for connect""... $ac_c" 1>&6 4644 echo $ac_n "checking for connect""... $ac_c" 1>&6
4516 echo "configure:4517: checking for connect" >&5 4645 echo "configure:4646: checking for connect" >&5
4517 4646
4518 cat > conftest.$ac_ext <<EOF 4647 cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure" 4648 #line 4649 "configure"
4520 #include "confdefs.h" 4649 #include "confdefs.h"
4521 /* System header to define __stub macros and hopefully few prototypes, 4650 /* System header to define __stub macros and hopefully few prototypes,
4522 which can conflict with char connect(); below. */ 4651 which can conflict with char connect(); below. */
4523 #include <assert.h> 4652 #include <assert.h>
4524 /* Override any gcc2 internal prototype to avoid an error. */ 4653 /* Override any gcc2 internal prototype to avoid an error. */
4537 connect(); 4666 connect();
4538 #endif 4667 #endif
4539 4668
4540 ; return 0; } 4669 ; return 0; }
4541 EOF 4670 EOF
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4671 if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4543 rm -rf conftest* 4672 rm -rf conftest*
4544 eval "ac_cv_func_connect=yes" 4673 eval "ac_cv_func_connect=yes"
4545 else 4674 else
4546 echo "configure: failed program was:" >&5 4675 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5 4676 cat conftest.$ac_ext >&5
4560 if test $ac_cv_func_connect = no; then 4689 if test $ac_cv_func_connect = no; then
4561 4690
4562 xe_msg_checking="for connect in -lsocket" 4691 xe_msg_checking="for connect in -lsocket"
4563 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4692 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4564 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4693 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4565 echo "configure:4566: checking "$xe_msg_checking"" >&5 4694 echo "configure:4695: checking "$xe_msg_checking"" >&5
4566 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4695 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4567 4696
4568 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4697 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4569 cat > conftest.$ac_ext <<EOF 4698 cat > conftest.$ac_ext <<EOF
4570 #line 4571 "configure" 4699 #line 4700 "configure"
4571 #include "confdefs.h" 4700 #include "confdefs.h"
4572 /* Override any gcc2 internal prototype to avoid an error. */ 4701 /* Override any gcc2 internal prototype to avoid an error. */
4573 /* We use char because int might match the return type of a gcc2 4702 /* We use char because int might match the return type of a gcc2
4574 builtin and then its argument prototype would still apply. */ 4703 builtin and then its argument prototype would still apply. */
4575 char connect(); 4704 char connect();
4576 4705
4577 int main() { 4706 int main() {
4578 connect() 4707 connect()
4579 ; return 0; } 4708 ; return 0; }
4580 EOF 4709 EOF
4581 if { (eval echo configure:4582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4710 if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4582 rm -rf conftest* 4711 rm -rf conftest*
4583 eval "ac_cv_lib_$ac_lib_var=yes" 4712 eval "ac_cv_lib_$ac_lib_var=yes"
4584 else 4713 else
4585 echo "configure: failed program was:" >&5 4714 echo "configure: failed program was:" >&5
4586 cat conftest.$ac_ext >&5 4715 cat conftest.$ac_ext >&5
4600 4729
4601 fi 4730 fi
4602 4731
4603 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4732 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4604 echo $ac_n "checking for remove""... $ac_c" 1>&6 4733 echo $ac_n "checking for remove""... $ac_c" 1>&6
4605 echo "configure:4606: checking for remove" >&5 4734 echo "configure:4735: checking for remove" >&5
4606 4735
4607 cat > conftest.$ac_ext <<EOF 4736 cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure" 4737 #line 4738 "configure"
4609 #include "confdefs.h" 4738 #include "confdefs.h"
4610 /* System header to define __stub macros and hopefully few prototypes, 4739 /* System header to define __stub macros and hopefully few prototypes,
4611 which can conflict with char remove(); below. */ 4740 which can conflict with char remove(); below. */
4612 #include <assert.h> 4741 #include <assert.h>
4613 /* Override any gcc2 internal prototype to avoid an error. */ 4742 /* Override any gcc2 internal prototype to avoid an error. */
4626 remove(); 4755 remove();
4627 #endif 4756 #endif
4628 4757
4629 ; return 0; } 4758 ; return 0; }
4630 EOF 4759 EOF
4631 if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4760 if { (eval echo configure:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4632 rm -rf conftest* 4761 rm -rf conftest*
4633 eval "ac_cv_func_remove=yes" 4762 eval "ac_cv_func_remove=yes"
4634 else 4763 else
4635 echo "configure: failed program was:" >&5 4764 echo "configure: failed program was:" >&5
4636 cat conftest.$ac_ext >&5 4765 cat conftest.$ac_ext >&5
4647 fi 4776 fi
4648 4777
4649 if test $ac_cv_func_remove = no; then 4778 if test $ac_cv_func_remove = no; then
4650 4779
4651 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4780 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4652 echo "configure:4653: checking for remove in -lposix" >&5 4781 echo "configure:4782: checking for remove in -lposix" >&5
4653 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4782 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4654 4783
4655 xe_check_libs=" -lposix " 4784 xe_check_libs=" -lposix "
4656 cat > conftest.$ac_ext <<EOF 4785 cat > conftest.$ac_ext <<EOF
4657 #line 4658 "configure" 4786 #line 4787 "configure"
4658 #include "confdefs.h" 4787 #include "confdefs.h"
4659 /* Override any gcc2 internal prototype to avoid an error. */ 4788 /* Override any gcc2 internal prototype to avoid an error. */
4660 /* We use char because int might match the return type of a gcc2 4789 /* We use char because int might match the return type of a gcc2
4661 builtin and then its argument prototype would still apply. */ 4790 builtin and then its argument prototype would still apply. */
4662 char remove(); 4791 char remove();
4663 4792
4664 int main() { 4793 int main() {
4665 remove() 4794 remove()
4666 ; return 0; } 4795 ; return 0; }
4667 EOF 4796 EOF
4668 if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4669 rm -rf conftest* 4798 rm -rf conftest*
4670 eval "ac_cv_lib_$ac_lib_var=yes" 4799 eval "ac_cv_lib_$ac_lib_var=yes"
4671 else 4800 else
4672 echo "configure: failed program was:" >&5 4801 echo "configure: failed program was:" >&5
4673 cat conftest.$ac_ext >&5 4802 cat conftest.$ac_ext >&5
4687 4816
4688 fi 4817 fi
4689 4818
4690 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4819 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4691 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4820 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4692 echo "configure:4693: checking for shmat" >&5 4821 echo "configure:4822: checking for shmat" >&5
4693 4822
4694 cat > conftest.$ac_ext <<EOF 4823 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure" 4824 #line 4825 "configure"
4696 #include "confdefs.h" 4825 #include "confdefs.h"
4697 /* System header to define __stub macros and hopefully few prototypes, 4826 /* System header to define __stub macros and hopefully few prototypes,
4698 which can conflict with char shmat(); below. */ 4827 which can conflict with char shmat(); below. */
4699 #include <assert.h> 4828 #include <assert.h>
4700 /* Override any gcc2 internal prototype to avoid an error. */ 4829 /* Override any gcc2 internal prototype to avoid an error. */
4713 shmat(); 4842 shmat();
4714 #endif 4843 #endif
4715 4844
4716 ; return 0; } 4845 ; return 0; }
4717 EOF 4846 EOF
4718 if { (eval echo configure:4719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4847 if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4719 rm -rf conftest* 4848 rm -rf conftest*
4720 eval "ac_cv_func_shmat=yes" 4849 eval "ac_cv_func_shmat=yes"
4721 else 4850 else
4722 echo "configure: failed program was:" >&5 4851 echo "configure: failed program was:" >&5
4723 cat conftest.$ac_ext >&5 4852 cat conftest.$ac_ext >&5
4734 fi 4863 fi
4735 4864
4736 if test $ac_cv_func_shmat = no; then 4865 if test $ac_cv_func_shmat = no; then
4737 4866
4738 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4867 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4739 echo "configure:4740: checking for shmat in -lipc" >&5 4868 echo "configure:4869: checking for shmat in -lipc" >&5
4740 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4869 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4741 4870
4742 xe_check_libs=" -lipc " 4871 xe_check_libs=" -lipc "
4743 cat > conftest.$ac_ext <<EOF 4872 cat > conftest.$ac_ext <<EOF
4744 #line 4745 "configure" 4873 #line 4874 "configure"
4745 #include "confdefs.h" 4874 #include "confdefs.h"
4746 /* Override any gcc2 internal prototype to avoid an error. */ 4875 /* Override any gcc2 internal prototype to avoid an error. */
4747 /* We use char because int might match the return type of a gcc2 4876 /* We use char because int might match the return type of a gcc2
4748 builtin and then its argument prototype would still apply. */ 4877 builtin and then its argument prototype would still apply. */
4749 char shmat(); 4878 char shmat();
4750 4879
4751 int main() { 4880 int main() {
4752 shmat() 4881 shmat()
4753 ; return 0; } 4882 ; return 0; }
4754 EOF 4883 EOF
4755 if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4884 if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4756 rm -rf conftest* 4885 rm -rf conftest*
4757 eval "ac_cv_lib_$ac_lib_var=yes" 4886 eval "ac_cv_lib_$ac_lib_var=yes"
4758 else 4887 else
4759 echo "configure: failed program was:" >&5 4888 echo "configure: failed program was:" >&5
4760 cat conftest.$ac_ext >&5 4889 cat conftest.$ac_ext >&5
4784 # These have to be linked with before -lX11, unlike the other 4913 # These have to be linked with before -lX11, unlike the other
4785 # libraries we check for below, so use a different variable. 4914 # libraries we check for below, so use a different variable.
4786 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4915 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4787 4916
4788 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4917 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4789 echo "configure:4790: checking for IceConnectionNumber in -lICE" >&5 4918 echo "configure:4919: checking for IceConnectionNumber in -lICE" >&5
4790 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4919 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4791 4920
4792 xe_check_libs=" -lICE " 4921 xe_check_libs=" -lICE "
4793 cat > conftest.$ac_ext <<EOF 4922 cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure" 4923 #line 4924 "configure"
4795 #include "confdefs.h" 4924 #include "confdefs.h"
4796 /* Override any gcc2 internal prototype to avoid an error. */ 4925 /* Override any gcc2 internal prototype to avoid an error. */
4797 /* We use char because int might match the return type of a gcc2 4926 /* We use char because int might match the return type of a gcc2
4798 builtin and then its argument prototype would still apply. */ 4927 builtin and then its argument prototype would still apply. */
4799 char IceConnectionNumber(); 4928 char IceConnectionNumber();
4800 4929
4801 int main() { 4930 int main() {
4802 IceConnectionNumber() 4931 IceConnectionNumber()
4803 ; return 0; } 4932 ; return 0; }
4804 EOF 4933 EOF
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4806 rm -rf conftest* 4935 rm -rf conftest*
4807 eval "ac_cv_lib_$ac_lib_var=yes" 4936 eval "ac_cv_lib_$ac_lib_var=yes"
4808 else 4937 else
4809 echo "configure: failed program was:" >&5 4938 echo "configure: failed program was:" >&5
4810 cat conftest.$ac_ext >&5 4939 cat conftest.$ac_ext >&5
4837 no ) window_system=none HAVE_X_WINDOWS=no ;; 4966 no ) window_system=none HAVE_X_WINDOWS=no ;;
4838 esac 4967 esac
4839 4968
4840 if test "$window_system" = "none" && test -z "$with_tty"; then 4969 if test "$window_system" = "none" && test -z "$with_tty"; then
4841 echo "checking for MS-Windows" 1>&6 4970 echo "checking for MS-Windows" 1>&6
4842 echo "configure:4843: checking for MS-Windows" >&5 4971 echo "configure:4972: checking for MS-Windows" >&5
4843 4972
4844 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 4973 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
4845 echo "configure:4846: checking for main in -lgdi32" >&5 4974 echo "configure:4975: checking for main in -lgdi32" >&5
4846 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 4975 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
4847 4976
4848 xe_check_libs=" -lgdi32 " 4977 xe_check_libs=" -lgdi32 "
4849 cat > conftest.$ac_ext <<EOF 4978 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure" 4979 #line 4980 "configure"
4851 #include "confdefs.h" 4980 #include "confdefs.h"
4852 4981
4853 int main() { 4982 int main() {
4854 main() 4983 main()
4855 ; return 0; } 4984 ; return 0; }
4856 EOF 4985 EOF
4857 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4986 if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4858 rm -rf conftest* 4987 rm -rf conftest*
4859 eval "ac_cv_lib_$ac_lib_var=yes" 4988 eval "ac_cv_lib_$ac_lib_var=yes"
4860 else 4989 else
4861 echo "configure: failed program was:" >&5 4990 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5 4991 cat conftest.$ac_ext >&5
4998 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done 5127 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
4999 echo 5128 echo
5000 fi 5129 fi
5001 5130
5002 echo "checking for X defines extracted by xmkmf" 1>&6 5131 echo "checking for X defines extracted by xmkmf" 1>&6
5003 echo "configure:5004: checking for X defines extracted by xmkmf" >&5 5132 echo "configure:5133: checking for X defines extracted by xmkmf" >&5
5004 rm -fr conftestdir 5133 rm -fr conftestdir
5005 if mkdir conftestdir; then 5134 if mkdir conftestdir; then
5006 cd conftestdir 5135 cd conftestdir
5007 cat > Imakefile <<'EOF' 5136 cat > Imakefile <<'EOF'
5008 xetest: 5137 xetest:
5030 done 5159 done
5031 fi 5160 fi
5032 5161
5033 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5162 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5034 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5163 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5035 echo "configure:5036: checking for X11/Intrinsic.h" >&5 5164 echo "configure:5165: checking for X11/Intrinsic.h" >&5
5036 5165
5037 cat > conftest.$ac_ext <<EOF 5166 cat > conftest.$ac_ext <<EOF
5038 #line 5039 "configure" 5167 #line 5168 "configure"
5039 #include "confdefs.h" 5168 #include "confdefs.h"
5040 #include <X11/Intrinsic.h> 5169 #include <X11/Intrinsic.h>
5041 EOF 5170 EOF
5042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5043 { (eval echo configure:5044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5172 { (eval echo configure:5173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5044 ac_err=`grep -v '^ *+' conftest.out` 5173 ac_err=`grep -v '^ *+' conftest.out`
5045 if test -z "$ac_err"; then 5174 if test -z "$ac_err"; then
5046 rm -rf conftest* 5175 rm -rf conftest*
5047 eval "ac_cv_header_$ac_safe=yes" 5176 eval "ac_cv_header_$ac_safe=yes"
5048 else 5177 else
5062 fi 5191 fi
5063 5192
5064 5193
5065 5194
5066 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5195 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5067 echo "configure:5068: checking for XOpenDisplay in -lX11" >&5 5196 echo "configure:5197: checking for XOpenDisplay in -lX11" >&5
5068 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5197 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5069 5198
5070 xe_check_libs=" -lX11 " 5199 xe_check_libs=" -lX11 "
5071 cat > conftest.$ac_ext <<EOF 5200 cat > conftest.$ac_ext <<EOF
5072 #line 5073 "configure" 5201 #line 5202 "configure"
5073 #include "confdefs.h" 5202 #include "confdefs.h"
5074 /* Override any gcc2 internal prototype to avoid an error. */ 5203 /* Override any gcc2 internal prototype to avoid an error. */
5075 /* We use char because int might match the return type of a gcc2 5204 /* We use char because int might match the return type of a gcc2
5076 builtin and then its argument prototype would still apply. */ 5205 builtin and then its argument prototype would still apply. */
5077 char XOpenDisplay(); 5206 char XOpenDisplay();
5078 5207
5079 int main() { 5208 int main() {
5080 XOpenDisplay() 5209 XOpenDisplay()
5081 ; return 0; } 5210 ; return 0; }
5082 EOF 5211 EOF
5083 if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5212 if { (eval echo configure:5213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5084 rm -rf conftest* 5213 rm -rf conftest*
5085 eval "ac_cv_lib_$ac_lib_var=yes" 5214 eval "ac_cv_lib_$ac_lib_var=yes"
5086 else 5215 else
5087 echo "configure: failed program was:" >&5 5216 echo "configure: failed program was:" >&5
5088 cat conftest.$ac_ext >&5 5217 cat conftest.$ac_ext >&5
5103 if test "$have_lib_x11" != "yes"; then 5232 if test "$have_lib_x11" != "yes"; then
5104 5233
5105 xe_msg_checking="for XGetFontProperty in -lX11" 5234 xe_msg_checking="for XGetFontProperty in -lX11"
5106 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5235 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5107 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5236 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5108 echo "configure:5109: checking "$xe_msg_checking"" >&5 5237 echo "configure:5238: checking "$xe_msg_checking"" >&5
5109 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5238 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5110 5239
5111 xe_check_libs=" -lX11 -b i486-linuxaout" 5240 xe_check_libs=" -lX11 -b i486-linuxaout"
5112 cat > conftest.$ac_ext <<EOF 5241 cat > conftest.$ac_ext <<EOF
5113 #line 5114 "configure" 5242 #line 5243 "configure"
5114 #include "confdefs.h" 5243 #include "confdefs.h"
5115 /* Override any gcc2 internal prototype to avoid an error. */ 5244 /* Override any gcc2 internal prototype to avoid an error. */
5116 /* We use char because int might match the return type of a gcc2 5245 /* We use char because int might match the return type of a gcc2
5117 builtin and then its argument prototype would still apply. */ 5246 builtin and then its argument prototype would still apply. */
5118 char XGetFontProperty(); 5247 char XGetFontProperty();
5119 5248
5120 int main() { 5249 int main() {
5121 XGetFontProperty() 5250 XGetFontProperty()
5122 ; return 0; } 5251 ; return 0; }
5123 EOF 5252 EOF
5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5125 rm -rf conftest* 5254 rm -rf conftest*
5126 eval "ac_cv_lib_$ac_lib_var=yes" 5255 eval "ac_cv_lib_$ac_lib_var=yes"
5127 else 5256 else
5128 echo "configure: failed program was:" >&5 5257 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5 5258 cat conftest.$ac_ext >&5
5146 libs_x="-lX11" 5275 libs_x="-lX11"
5147 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5276 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5148 5277
5149 5278
5150 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5279 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5151 echo "configure:5152: checking for XShapeSelectInput in -lXext" >&5 5280 echo "configure:5281: checking for XShapeSelectInput in -lXext" >&5
5152 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5281 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5153 5282
5154 xe_check_libs=" -lXext " 5283 xe_check_libs=" -lXext "
5155 cat > conftest.$ac_ext <<EOF 5284 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure" 5285 #line 5286 "configure"
5157 #include "confdefs.h" 5286 #include "confdefs.h"
5158 /* Override any gcc2 internal prototype to avoid an error. */ 5287 /* Override any gcc2 internal prototype to avoid an error. */
5159 /* We use char because int might match the return type of a gcc2 5288 /* We use char because int might match the return type of a gcc2
5160 builtin and then its argument prototype would still apply. */ 5289 builtin and then its argument prototype would still apply. */
5161 char XShapeSelectInput(); 5290 char XShapeSelectInput();
5162 5291
5163 int main() { 5292 int main() {
5164 XShapeSelectInput() 5293 XShapeSelectInput()
5165 ; return 0; } 5294 ; return 0; }
5166 EOF 5295 EOF
5167 if { (eval echo configure:5168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5296 if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5168 rm -rf conftest* 5297 rm -rf conftest*
5169 eval "ac_cv_lib_$ac_lib_var=yes" 5298 eval "ac_cv_lib_$ac_lib_var=yes"
5170 else 5299 else
5171 echo "configure: failed program was:" >&5 5300 echo "configure: failed program was:" >&5
5172 cat conftest.$ac_ext >&5 5301 cat conftest.$ac_ext >&5
5185 5314
5186 5315
5187 5316
5188 5317
5189 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5318 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5190 echo "configure:5191: checking for XtOpenDisplay in -lXt" >&5 5319 echo "configure:5320: checking for XtOpenDisplay in -lXt" >&5
5191 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5320 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5192 5321
5193 xe_check_libs=" -lXt " 5322 xe_check_libs=" -lXt "
5194 cat > conftest.$ac_ext <<EOF 5323 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure" 5324 #line 5325 "configure"
5196 #include "confdefs.h" 5325 #include "confdefs.h"
5197 /* Override any gcc2 internal prototype to avoid an error. */ 5326 /* Override any gcc2 internal prototype to avoid an error. */
5198 /* We use char because int might match the return type of a gcc2 5327 /* We use char because int might match the return type of a gcc2
5199 builtin and then its argument prototype would still apply. */ 5328 builtin and then its argument prototype would still apply. */
5200 char XtOpenDisplay(); 5329 char XtOpenDisplay();
5201 5330
5202 int main() { 5331 int main() {
5203 XtOpenDisplay() 5332 XtOpenDisplay()
5204 ; return 0; } 5333 ; return 0; }
5205 EOF 5334 EOF
5206 if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5335 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5207 rm -rf conftest* 5336 rm -rf conftest*
5208 eval "ac_cv_lib_$ac_lib_var=yes" 5337 eval "ac_cv_lib_$ac_lib_var=yes"
5209 else 5338 else
5210 echo "configure: failed program was:" >&5 5339 echo "configure: failed program was:" >&5
5211 cat conftest.$ac_ext >&5 5340 cat conftest.$ac_ext >&5
5224 fi 5353 fi
5225 5354
5226 5355
5227 5356
5228 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5357 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5229 echo "configure:5230: checking the version of X11 being used" >&5 5358 echo "configure:5359: checking the version of X11 being used" >&5
5230 cat > conftest.$ac_ext <<EOF 5359 cat > conftest.$ac_ext <<EOF
5231 #line 5232 "configure" 5360 #line 5361 "configure"
5232 #include "confdefs.h" 5361 #include "confdefs.h"
5233 #include <X11/Intrinsic.h> 5362 #include <X11/Intrinsic.h>
5234 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5363 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5235 EOF 5364 EOF
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5237 then 5366 then
5238 ./conftest foobar; x11_release=$? 5367 ./conftest foobar; x11_release=$?
5239 else 5368 else
5240 echo "configure: failed program was:" >&5 5369 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5 5370 cat conftest.$ac_ext >&5
5255 5384
5256 for ac_hdr in X11/Xlocale.h 5385 for ac_hdr in X11/Xlocale.h
5257 do 5386 do
5258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5387 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5260 echo "configure:5261: checking for $ac_hdr" >&5 5389 echo "configure:5390: checking for $ac_hdr" >&5
5261 5390
5262 cat > conftest.$ac_ext <<EOF 5391 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure" 5392 #line 5393 "configure"
5264 #include "confdefs.h" 5393 #include "confdefs.h"
5265 #include <$ac_hdr> 5394 #include <$ac_hdr>
5266 EOF 5395 EOF
5267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5396 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; } 5397 { (eval echo configure:5398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5269 ac_err=`grep -v '^ *+' conftest.out` 5398 ac_err=`grep -v '^ *+' conftest.out`
5270 if test -z "$ac_err"; then 5399 if test -z "$ac_err"; then
5271 rm -rf conftest* 5400 rm -rf conftest*
5272 eval "ac_cv_header_$ac_safe=yes" 5401 eval "ac_cv_header_$ac_safe=yes"
5273 else 5402 else
5294 fi 5423 fi
5295 done 5424 done
5296 5425
5297 5426
5298 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5427 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5299 echo "configure:5300: checking for XFree86" >&5 5428 echo "configure:5429: checking for XFree86" >&5
5300 if test -d "/usr/X386/include" -o \ 5429 if test -d "/usr/X386/include" -o \
5301 -f "/etc/XF86Config" -o \ 5430 -f "/etc/XF86Config" -o \
5302 -f "/etc/X11/XF86Config" -o \ 5431 -f "/etc/X11/XF86Config" -o \
5303 -f "/usr/X11R6/lib/X11/XF86Config"; then 5432 -f "/usr/X11R6/lib/X11/XF86Config"; then
5304 echo "$ac_t""yes" 1>&6 5433 echo "$ac_t""yes" 1>&6
5314 echo "$ac_t""no" 1>&6 5443 echo "$ac_t""no" 1>&6
5315 fi 5444 fi
5316 5445
5317 test -z "$with_xmu" && { 5446 test -z "$with_xmu" && {
5318 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5447 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5319 echo "configure:5320: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5448 echo "configure:5449: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5320 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5449 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5321 5450
5322 xe_check_libs=" -lXmu " 5451 xe_check_libs=" -lXmu "
5323 cat > conftest.$ac_ext <<EOF 5452 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure" 5453 #line 5454 "configure"
5325 #include "confdefs.h" 5454 #include "confdefs.h"
5326 /* Override any gcc2 internal prototype to avoid an error. */ 5455 /* Override any gcc2 internal prototype to avoid an error. */
5327 /* We use char because int might match the return type of a gcc2 5456 /* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */ 5457 builtin and then its argument prototype would still apply. */
5329 char XmuReadBitmapDataFromFile(); 5458 char XmuReadBitmapDataFromFile();
5330 5459
5331 int main() { 5460 int main() {
5332 XmuReadBitmapDataFromFile() 5461 XmuReadBitmapDataFromFile()
5333 ; return 0; } 5462 ; return 0; }
5334 EOF 5463 EOF
5335 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5336 rm -rf conftest* 5465 rm -rf conftest*
5337 eval "ac_cv_lib_$ac_lib_var=yes" 5466 eval "ac_cv_lib_$ac_lib_var=yes"
5338 else 5467 else
5339 echo "configure: failed program was:" >&5 5468 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5 5469 cat conftest.$ac_ext >&5
5369 5498
5370 fi 5499 fi
5371 5500
5372 5501
5373 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5502 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5374 echo "configure:5375: checking for main in -lXbsd" >&5 5503 echo "configure:5504: checking for main in -lXbsd" >&5
5375 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5504 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5376 5505
5377 xe_check_libs=" -lXbsd " 5506 xe_check_libs=" -lXbsd "
5378 cat > conftest.$ac_ext <<EOF 5507 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure" 5508 #line 5509 "configure"
5380 #include "confdefs.h" 5509 #include "confdefs.h"
5381 5510
5382 int main() { 5511 int main() {
5383 main() 5512 main()
5384 ; return 0; } 5513 ; return 0; }
5385 EOF 5514 EOF
5386 if { (eval echo configure:5387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5515 if { (eval echo configure:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5387 rm -rf conftest* 5516 rm -rf conftest*
5388 eval "ac_cv_lib_$ac_lib_var=yes" 5517 eval "ac_cv_lib_$ac_lib_var=yes"
5389 else 5518 else
5390 echo "configure: failed program was:" >&5 5519 echo "configure: failed program was:" >&5
5391 cat conftest.$ac_ext >&5 5520 cat conftest.$ac_ext >&5
5440 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5569 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5441 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5570 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5442 esac 5571 esac
5443 5572
5444 echo "checking for session-management option" 1>&6 5573 echo "checking for session-management option" 1>&6
5445 echo "configure:5446: checking for session-management option" >&5; 5574 echo "configure:5575: checking for session-management option" >&5;
5446 if test "$with_session" != "no"; then 5575 if test "$with_session" != "no"; then
5447 { test "$extra_verbose" = "yes" && cat << \EOF 5576 { test "$extra_verbose" = "yes" && cat << \EOF
5448 Defining HAVE_SESSION 5577 Defining HAVE_SESSION
5449 EOF 5578 EOF
5450 cat >> confdefs.h <<\EOF 5579 cat >> confdefs.h <<\EOF
5455 fi 5584 fi
5456 5585
5457 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5586 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5458 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5587 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5459 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5588 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5460 echo "configure:5461: checking for X11/Xauth.h" >&5 5589 echo "configure:5590: checking for X11/Xauth.h" >&5
5461 5590
5462 cat > conftest.$ac_ext <<EOF 5591 cat > conftest.$ac_ext <<EOF
5463 #line 5464 "configure" 5592 #line 5593 "configure"
5464 #include "confdefs.h" 5593 #include "confdefs.h"
5465 #include <X11/Xauth.h> 5594 #include <X11/Xauth.h>
5466 EOF 5595 EOF
5467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5468 { (eval echo configure:5469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5597 { (eval echo configure:5598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5469 ac_err=`grep -v '^ *+' conftest.out` 5598 ac_err=`grep -v '^ *+' conftest.out`
5470 if test -z "$ac_err"; then 5599 if test -z "$ac_err"; then
5471 rm -rf conftest* 5600 rm -rf conftest*
5472 eval "ac_cv_header_$ac_safe=yes" 5601 eval "ac_cv_header_$ac_safe=yes"
5473 else 5602 else
5486 with_xauth=no 5615 with_xauth=no
5487 fi 5616 fi
5488 } 5617 }
5489 test -z "$with_xauth" && { 5618 test -z "$with_xauth" && {
5490 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5619 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5491 echo "configure:5492: checking for XauGetAuthByAddr in -lXau" >&5 5620 echo "configure:5621: checking for XauGetAuthByAddr in -lXau" >&5
5492 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5621 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5493 5622
5494 xe_check_libs=" -lXau " 5623 xe_check_libs=" -lXau "
5495 cat > conftest.$ac_ext <<EOF 5624 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure" 5625 #line 5626 "configure"
5497 #include "confdefs.h" 5626 #include "confdefs.h"
5498 /* Override any gcc2 internal prototype to avoid an error. */ 5627 /* Override any gcc2 internal prototype to avoid an error. */
5499 /* We use char because int might match the return type of a gcc2 5628 /* We use char because int might match the return type of a gcc2
5500 builtin and then its argument prototype would still apply. */ 5629 builtin and then its argument prototype would still apply. */
5501 char XauGetAuthByAddr(); 5630 char XauGetAuthByAddr();
5502 5631
5503 int main() { 5632 int main() {
5504 XauGetAuthByAddr() 5633 XauGetAuthByAddr()
5505 ; return 0; } 5634 ; return 0; }
5506 EOF 5635 EOF
5507 if { (eval echo configure:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5636 if { (eval echo configure:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5508 rm -rf conftest* 5637 rm -rf conftest*
5509 eval "ac_cv_lib_$ac_lib_var=yes" 5638 eval "ac_cv_lib_$ac_lib_var=yes"
5510 else 5639 else
5511 echo "configure: failed program was:" >&5 5640 echo "configure: failed program was:" >&5
5512 cat conftest.$ac_ext >&5 5641 cat conftest.$ac_ext >&5
5543 fi 5672 fi
5544 5673
5545 5674
5546 OFFIX_O="" 5675 OFFIX_O=""
5547 test "$window_system" != "x11" && with_offix=no 5676 test "$window_system" != "x11" && with_offix=no
5677 if test "$with_xmu" != yes -a "$with_x11" = yes; then
5678 echo "configure: warning: No OffiX without real Xmu support" 1>&2
5679 with_offix=no
5680 fi
5548 test -z "$with_offix" && with_offix=yes 5681 test -z "$with_offix" && with_offix=yes
5549 if test "$with_offix" = "yes"; then 5682 if test "$with_offix" = "yes"; then
5550 { test "$extra_verbose" = "yes" && cat << \EOF 5683 { test "$extra_verbose" = "yes" && cat << \EOF
5551 Defining HAVE_OFFIX_DND 5684 Defining HAVE_OFFIX_DND
5552 EOF 5685 EOF
5562 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5695 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5563 if test "$with_tooltalk" != "no" ; then 5696 if test "$with_tooltalk" != "no" ; then
5564 for dir in "" "Tt/" "desktop/" ; do 5697 for dir in "" "Tt/" "desktop/" ; do
5565 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5698 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5566 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5699 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5567 echo "configure:5568: checking for ${dir}tt_c.h" >&5 5700 echo "configure:5701: checking for ${dir}tt_c.h" >&5
5568 5701
5569 cat > conftest.$ac_ext <<EOF 5702 cat > conftest.$ac_ext <<EOF
5570 #line 5571 "configure" 5703 #line 5704 "configure"
5571 #include "confdefs.h" 5704 #include "confdefs.h"
5572 #include <${dir}tt_c.h> 5705 #include <${dir}tt_c.h>
5573 EOF 5706 EOF
5574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5575 { (eval echo configure:5576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5708 { (eval echo configure:5709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5576 ac_err=`grep -v '^ *+' conftest.out` 5709 ac_err=`grep -v '^ *+' conftest.out`
5577 if test -z "$ac_err"; then 5710 if test -z "$ac_err"; then
5578 rm -rf conftest* 5711 rm -rf conftest*
5579 eval "ac_cv_header_$ac_safe=yes" 5712 eval "ac_cv_header_$ac_safe=yes"
5580 else 5713 else
5599 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5732 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5600 5733
5601 xe_msg_checking="for tt_message_create in -ltt" 5734 xe_msg_checking="for tt_message_create in -ltt"
5602 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5735 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5603 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5736 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5604 echo "configure:5605: checking "$xe_msg_checking"" >&5 5737 echo "configure:5738: checking "$xe_msg_checking"" >&5
5605 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5738 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5606 5739
5607 xe_check_libs=" -ltt $extra_libs" 5740 xe_check_libs=" -ltt $extra_libs"
5608 cat > conftest.$ac_ext <<EOF 5741 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure" 5742 #line 5743 "configure"
5610 #include "confdefs.h" 5743 #include "confdefs.h"
5611 /* Override any gcc2 internal prototype to avoid an error. */ 5744 /* Override any gcc2 internal prototype to avoid an error. */
5612 /* We use char because int might match the return type of a gcc2 5745 /* We use char because int might match the return type of a gcc2
5613 builtin and then its argument prototype would still apply. */ 5746 builtin and then its argument prototype would still apply. */
5614 char tt_message_create(); 5747 char tt_message_create();
5615 5748
5616 int main() { 5749 int main() {
5617 tt_message_create() 5750 tt_message_create()
5618 ; return 0; } 5751 ; return 0; }
5619 EOF 5752 EOF
5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5753 if { (eval echo configure:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5621 rm -rf conftest* 5754 rm -rf conftest*
5622 eval "ac_cv_lib_$ac_lib_var=yes" 5755 eval "ac_cv_lib_$ac_lib_var=yes"
5623 else 5756 else
5624 echo "configure: failed program was:" >&5 5757 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5 5758 cat conftest.$ac_ext >&5
5664 fi 5797 fi
5665 fi 5798 fi
5666 5799
5667 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5800 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5668 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5801 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5669 echo "configure:5670: checking for Dt/Dt.h" >&5 5802 echo "configure:5803: checking for Dt/Dt.h" >&5
5670 5803
5671 cat > conftest.$ac_ext <<EOF 5804 cat > conftest.$ac_ext <<EOF
5672 #line 5673 "configure" 5805 #line 5806 "configure"
5673 #include "confdefs.h" 5806 #include "confdefs.h"
5674 #include <Dt/Dt.h> 5807 #include <Dt/Dt.h>
5675 EOF 5808 EOF
5676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5677 { (eval echo configure:5678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5810 { (eval echo configure:5811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5678 ac_err=`grep -v '^ *+' conftest.out` 5811 ac_err=`grep -v '^ *+' conftest.out`
5679 if test -z "$ac_err"; then 5812 if test -z "$ac_err"; then
5680 rm -rf conftest* 5813 rm -rf conftest*
5681 eval "ac_cv_header_$ac_safe=yes" 5814 eval "ac_cv_header_$ac_safe=yes"
5682 else 5815 else
5695 with_cde=no 5828 with_cde=no
5696 fi 5829 fi
5697 } 5830 }
5698 test -z "$with_cde" && { 5831 test -z "$with_cde" && {
5699 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5832 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5700 echo "configure:5701: checking for DtDndDragStart in -lDtSvc" >&5 5833 echo "configure:5834: checking for DtDndDragStart in -lDtSvc" >&5
5701 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5834 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5702 5835
5703 xe_check_libs=" -lDtSvc " 5836 xe_check_libs=" -lDtSvc "
5704 cat > conftest.$ac_ext <<EOF 5837 cat > conftest.$ac_ext <<EOF
5705 #line 5706 "configure" 5838 #line 5839 "configure"
5706 #include "confdefs.h" 5839 #include "confdefs.h"
5707 /* Override any gcc2 internal prototype to avoid an error. */ 5840 /* Override any gcc2 internal prototype to avoid an error. */
5708 /* We use char because int might match the return type of a gcc2 5841 /* We use char because int might match the return type of a gcc2
5709 builtin and then its argument prototype would still apply. */ 5842 builtin and then its argument prototype would still apply. */
5710 char DtDndDragStart(); 5843 char DtDndDragStart();
5711 5844
5712 int main() { 5845 int main() {
5713 DtDndDragStart() 5846 DtDndDragStart()
5714 ; return 0; } 5847 ; return 0; }
5715 EOF 5848 EOF
5716 if { (eval echo configure:5717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5849 if { (eval echo configure:5850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5717 rm -rf conftest* 5850 rm -rf conftest*
5718 eval "ac_cv_lib_$ac_lib_var=yes" 5851 eval "ac_cv_lib_$ac_lib_var=yes"
5719 else 5852 else
5720 echo "configure: failed program was:" >&5 5853 echo "configure: failed program was:" >&5
5721 cat conftest.$ac_ext >&5 5854 cat conftest.$ac_ext >&5
5751 5884
5752 5885
5753 if test "$with_x11" = "yes"; then 5886 if test "$with_x11" = "yes"; then
5754 5887
5755 echo "checking for X11 graphics libraries" 1>&6 5888 echo "checking for X11 graphics libraries" 1>&6
5756 echo "configure:5757: checking for X11 graphics libraries" >&5 5889 echo "configure:5890: checking for X11 graphics libraries" >&5
5757 5890
5758 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 5891 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
5759 echo "configure:5760: checking for Xpm - no older than 3.4f" >&5 5892 echo "configure:5893: checking for Xpm - no older than 3.4f" >&5
5760 xe_check_libs=-lXpm 5893 xe_check_libs=-lXpm
5761 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF 5894 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
5762 #line 5763 "configure" 5895 #line 5896 "configure"
5763 #include "confdefs.h" 5896 #include "confdefs.h"
5764 #include <X11/xpm.h> 5897 #include <X11/xpm.h>
5765 int main(int c, char **v) { 5898 int main(int c, char **v) {
5766 return c == 1 ? 0 : 5899 return c == 1 ? 0 :
5767 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 5900 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
5768 XpmIncludeVersion < 30406 ? 2 : 5901 XpmIncludeVersion < 30406 ? 2 :
5769 0 ; 5902 0 ;
5770 } 5903 }
5771 EOF 5904 EOF
5772 if { (eval echo configure:5773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5905 if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5773 then 5906 then
5774 ./conftest foobar; xpm_status=$?; 5907 ./conftest foobar; xpm_status=$?;
5775 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi; 5908 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
5776 else 5909 else
5777 echo "configure: failed program was:" >&5 5910 echo "configure: failed program was:" >&5
5805 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 5938 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
5806 fi 5939 fi
5807 5940
5808 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 5941 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
5809 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 5942 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
5810 echo "configure:5811: checking for compface.h" >&5 5943 echo "configure:5944: checking for compface.h" >&5
5811 5944
5812 cat > conftest.$ac_ext <<EOF 5945 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure" 5946 #line 5947 "configure"
5814 #include "confdefs.h" 5947 #include "confdefs.h"
5815 #include <compface.h> 5948 #include <compface.h>
5816 EOF 5949 EOF
5817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5818 { (eval echo configure:5819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5951 { (eval echo configure:5952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5819 ac_err=`grep -v '^ *+' conftest.out` 5952 ac_err=`grep -v '^ *+' conftest.out`
5820 if test -z "$ac_err"; then 5953 if test -z "$ac_err"; then
5821 rm -rf conftest* 5954 rm -rf conftest*
5822 eval "ac_cv_header_$ac_safe=yes" 5955 eval "ac_cv_header_$ac_safe=yes"
5823 else 5956 else
5836 with_xface=no 5969 with_xface=no
5837 fi 5970 fi
5838 } 5971 }
5839 test -z "$with_xface" && { 5972 test -z "$with_xface" && {
5840 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 5973 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
5841 echo "configure:5842: checking for UnGenFace in -lcompface" >&5 5974 echo "configure:5975: checking for UnGenFace in -lcompface" >&5
5842 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 5975 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
5843 5976
5844 xe_check_libs=" -lcompface " 5977 xe_check_libs=" -lcompface "
5845 cat > conftest.$ac_ext <<EOF 5978 cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure" 5979 #line 5980 "configure"
5847 #include "confdefs.h" 5980 #include "confdefs.h"
5848 /* Override any gcc2 internal prototype to avoid an error. */ 5981 /* Override any gcc2 internal prototype to avoid an error. */
5849 /* We use char because int might match the return type of a gcc2 5982 /* We use char because int might match the return type of a gcc2
5850 builtin and then its argument prototype would still apply. */ 5983 builtin and then its argument prototype would still apply. */
5851 char UnGenFace(); 5984 char UnGenFace();
5852 5985
5853 int main() { 5986 int main() {
5854 UnGenFace() 5987 UnGenFace()
5855 ; return 0; } 5988 ; return 0; }
5856 EOF 5989 EOF
5857 if { (eval echo configure:5858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5990 if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5858 rm -rf conftest* 5991 rm -rf conftest*
5859 eval "ac_cv_lib_$ac_lib_var=yes" 5992 eval "ac_cv_lib_$ac_lib_var=yes"
5860 else 5993 else
5861 echo "configure: failed program was:" >&5 5994 echo "configure: failed program was:" >&5
5862 cat conftest.$ac_ext >&5 5995 cat conftest.$ac_ext >&5
5903 fi 6036 fi
5904 fi 6037 fi
5905 6038
5906 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6039 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
5907 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6040 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
5908 echo "configure:5909: checking for jpeglib.h" >&5 6041 echo "configure:6042: checking for jpeglib.h" >&5
5909 6042
5910 cat > conftest.$ac_ext <<EOF 6043 cat > conftest.$ac_ext <<EOF
5911 #line 5912 "configure" 6044 #line 6045 "configure"
5912 #include "confdefs.h" 6045 #include "confdefs.h"
5913 #include <jpeglib.h> 6046 #include <jpeglib.h>
5914 EOF 6047 EOF
5915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5916 { (eval echo configure:5917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6049 { (eval echo configure:6050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5917 ac_err=`grep -v '^ *+' conftest.out` 6050 ac_err=`grep -v '^ *+' conftest.out`
5918 if test -z "$ac_err"; then 6051 if test -z "$ac_err"; then
5919 rm -rf conftest* 6052 rm -rf conftest*
5920 eval "ac_cv_header_$ac_safe=yes" 6053 eval "ac_cv_header_$ac_safe=yes"
5921 else 6054 else
5934 with_jpeg=no 6067 with_jpeg=no
5935 fi 6068 fi
5936 } 6069 }
5937 test -z "$with_jpeg" && { 6070 test -z "$with_jpeg" && {
5938 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6071 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
5939 echo "configure:5940: checking for jpeg_destroy_decompress in -ljpeg" >&5 6072 echo "configure:6073: checking for jpeg_destroy_decompress in -ljpeg" >&5
5940 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6073 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
5941 6074
5942 xe_check_libs=" -ljpeg " 6075 xe_check_libs=" -ljpeg "
5943 cat > conftest.$ac_ext <<EOF 6076 cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure" 6077 #line 6078 "configure"
5945 #include "confdefs.h" 6078 #include "confdefs.h"
5946 /* Override any gcc2 internal prototype to avoid an error. */ 6079 /* Override any gcc2 internal prototype to avoid an error. */
5947 /* We use char because int might match the return type of a gcc2 6080 /* We use char because int might match the return type of a gcc2
5948 builtin and then its argument prototype would still apply. */ 6081 builtin and then its argument prototype would still apply. */
5949 char jpeg_destroy_decompress(); 6082 char jpeg_destroy_decompress();
5950 6083
5951 int main() { 6084 int main() {
5952 jpeg_destroy_decompress() 6085 jpeg_destroy_decompress()
5953 ; return 0; } 6086 ; return 0; }
5954 EOF 6087 EOF
5955 if { (eval echo configure:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5956 rm -rf conftest* 6089 rm -rf conftest*
5957 eval "ac_cv_lib_$ac_lib_var=yes" 6090 eval "ac_cv_lib_$ac_lib_var=yes"
5958 else 6091 else
5959 echo "configure: failed program was:" >&5 6092 echo "configure: failed program was:" >&5
5960 cat conftest.$ac_ext >&5 6093 cat conftest.$ac_ext >&5
5986 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6119 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
5987 fi 6120 fi
5988 6121
5989 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6122 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5990 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6123 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5991 echo "configure:5992: checking for png.h" >&5 6124 echo "configure:6125: checking for png.h" >&5
5992 6125
5993 cat > conftest.$ac_ext <<EOF 6126 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure" 6127 #line 6128 "configure"
5995 #include "confdefs.h" 6128 #include "confdefs.h"
5996 #include <png.h> 6129 #include <png.h>
5997 EOF 6130 EOF
5998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5999 { (eval echo configure:6000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6132 { (eval echo configure:6133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6000 ac_err=`grep -v '^ *+' conftest.out` 6133 ac_err=`grep -v '^ *+' conftest.out`
6001 if test -z "$ac_err"; then 6134 if test -z "$ac_err"; then
6002 rm -rf conftest* 6135 rm -rf conftest*
6003 eval "ac_cv_header_$ac_safe=yes" 6136 eval "ac_cv_header_$ac_safe=yes"
6004 else 6137 else
6016 echo "$ac_t""no" 1>&6 6149 echo "$ac_t""no" 1>&6
6017 with_png=no 6150 with_png=no
6018 fi 6151 fi
6019 } 6152 }
6020 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6153 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6021 echo "configure:6022: checking for pow" >&5 6154 echo "configure:6155: checking for pow" >&5
6022 6155
6023 cat > conftest.$ac_ext <<EOF 6156 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure" 6157 #line 6158 "configure"
6025 #include "confdefs.h" 6158 #include "confdefs.h"
6026 /* System header to define __stub macros and hopefully few prototypes, 6159 /* System header to define __stub macros and hopefully few prototypes,
6027 which can conflict with char pow(); below. */ 6160 which can conflict with char pow(); below. */
6028 #include <assert.h> 6161 #include <assert.h>
6029 /* Override any gcc2 internal prototype to avoid an error. */ 6162 /* Override any gcc2 internal prototype to avoid an error. */
6042 pow(); 6175 pow();
6043 #endif 6176 #endif
6044 6177
6045 ; return 0; } 6178 ; return 0; }
6046 EOF 6179 EOF
6047 if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6048 rm -rf conftest* 6181 rm -rf conftest*
6049 eval "ac_cv_func_pow=yes" 6182 eval "ac_cv_func_pow=yes"
6050 else 6183 else
6051 echo "configure: failed program was:" >&5 6184 echo "configure: failed program was:" >&5
6052 cat conftest.$ac_ext >&5 6185 cat conftest.$ac_ext >&5
6067 for extra_libs in "" "-lz" "-lgz"; do 6200 for extra_libs in "" "-lz" "-lgz"; do
6068 6201
6069 xe_msg_checking="for png_read_image in -lpng" 6202 xe_msg_checking="for png_read_image in -lpng"
6070 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6203 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6071 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6204 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6072 echo "configure:6073: checking "$xe_msg_checking"" >&5 6205 echo "configure:6206: checking "$xe_msg_checking"" >&5
6073 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6206 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6074 6207
6075 xe_check_libs=" -lpng $extra_libs" 6208 xe_check_libs=" -lpng $extra_libs"
6076 cat > conftest.$ac_ext <<EOF 6209 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure" 6210 #line 6211 "configure"
6078 #include "confdefs.h" 6211 #include "confdefs.h"
6079 /* Override any gcc2 internal prototype to avoid an error. */ 6212 /* Override any gcc2 internal prototype to avoid an error. */
6080 /* We use char because int might match the return type of a gcc2 6213 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */ 6214 builtin and then its argument prototype would still apply. */
6082 char png_read_image(); 6215 char png_read_image();
6083 6216
6084 int main() { 6217 int main() {
6085 png_read_image() 6218 png_read_image()
6086 ; return 0; } 6219 ; return 0; }
6087 EOF 6220 EOF
6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6221 if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6089 rm -rf conftest* 6222 rm -rf conftest*
6090 eval "ac_cv_lib_$ac_lib_var=yes" 6223 eval "ac_cv_lib_$ac_lib_var=yes"
6091 else 6224 else
6092 echo "configure: failed program was:" >&5 6225 echo "configure: failed program was:" >&5
6093 cat conftest.$ac_ext >&5 6226 cat conftest.$ac_ext >&5
6125 for extra_libs in "" "-lz" "-lgz"; do 6258 for extra_libs in "" "-lz" "-lgz"; do
6126 6259
6127 xe_msg_checking="for TIFFReadScanline in -ltiff" 6260 xe_msg_checking="for TIFFReadScanline in -ltiff"
6128 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6261 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6129 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6262 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6130 echo "configure:6131: checking "$xe_msg_checking"" >&5 6263 echo "configure:6264: checking "$xe_msg_checking"" >&5
6131 ac_lib_var=`echo tiff'_'TIFFReadScanline | sed 'y%./+-%__p_%'` 6264 ac_lib_var=`echo tiff'_'TIFFReadScanline | sed 'y%./+-%__p_%'`
6132 6265
6133 xe_check_libs=" -ltiff $extra_libs" 6266 xe_check_libs=" -ltiff $extra_libs"
6134 cat > conftest.$ac_ext <<EOF 6267 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure" 6268 #line 6269 "configure"
6136 #include "confdefs.h" 6269 #include "confdefs.h"
6137 /* Override any gcc2 internal prototype to avoid an error. */ 6270 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2 6271 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */ 6272 builtin and then its argument prototype would still apply. */
6140 char TIFFReadScanline(); 6273 char TIFFReadScanline();
6141 6274
6142 int main() { 6275 int main() {
6143 TIFFReadScanline() 6276 TIFFReadScanline()
6144 ; return 0; } 6277 ; return 0; }
6145 EOF 6278 EOF
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6279 if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6147 rm -rf conftest* 6280 rm -rf conftest*
6148 eval "ac_cv_lib_$ac_lib_var=yes" 6281 eval "ac_cv_lib_$ac_lib_var=yes"
6149 else 6282 else
6150 echo "configure: failed program was:" >&5 6283 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5 6284 cat conftest.$ac_ext >&5
6179 libs_x="$tiff_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tiff_libs\" to \$libs_x"; fi 6312 libs_x="$tiff_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tiff_libs\" to \$libs_x"; fi
6180 fi 6313 fi
6181 6314
6182 6315
6183 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 6316 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
6184 echo "configure:6185: checking for XawScrollbarSetThumb in -lXaw" >&5 6317 echo "configure:6318: checking for XawScrollbarSetThumb in -lXaw" >&5
6185 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 6318 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
6186 6319
6187 xe_check_libs=" -lXaw " 6320 xe_check_libs=" -lXaw "
6188 cat > conftest.$ac_ext <<EOF 6321 cat > conftest.$ac_ext <<EOF
6189 #line 6190 "configure" 6322 #line 6323 "configure"
6190 #include "confdefs.h" 6323 #include "confdefs.h"
6191 /* Override any gcc2 internal prototype to avoid an error. */ 6324 /* Override any gcc2 internal prototype to avoid an error. */
6192 /* We use char because int might match the return type of a gcc2 6325 /* We use char because int might match the return type of a gcc2
6193 builtin and then its argument prototype would still apply. */ 6326 builtin and then its argument prototype would still apply. */
6194 char XawScrollbarSetThumb(); 6327 char XawScrollbarSetThumb();
6195 6328
6196 int main() { 6329 int main() {
6197 XawScrollbarSetThumb() 6330 XawScrollbarSetThumb()
6198 ; return 0; } 6331 ; return 0; }
6199 EOF 6332 EOF
6200 if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6333 if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6201 rm -rf conftest* 6334 rm -rf conftest*
6202 eval "ac_cv_lib_$ac_lib_var=yes" 6335 eval "ac_cv_lib_$ac_lib_var=yes"
6203 else 6336 else
6204 echo "configure: failed program was:" >&5 6337 echo "configure: failed program was:" >&5
6205 cat conftest.$ac_ext >&5 6338 cat conftest.$ac_ext >&5
6219 6352
6220 6353
6221 6354
6222 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6355 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6223 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6356 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6224 echo "configure:6225: checking for Xm/Xm.h" >&5 6357 echo "configure:6358: checking for Xm/Xm.h" >&5
6225 6358
6226 cat > conftest.$ac_ext <<EOF 6359 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure" 6360 #line 6361 "configure"
6228 #include "confdefs.h" 6361 #include "confdefs.h"
6229 #include <Xm/Xm.h> 6362 #include <Xm/Xm.h>
6230 EOF 6363 EOF
6231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6232 { (eval echo configure:6233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6365 { (eval echo configure:6366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6233 ac_err=`grep -v '^ *+' conftest.out` 6366 ac_err=`grep -v '^ *+' conftest.out`
6234 if test -z "$ac_err"; then 6367 if test -z "$ac_err"; then
6235 rm -rf conftest* 6368 rm -rf conftest*
6236 eval "ac_cv_header_$ac_safe=yes" 6369 eval "ac_cv_header_$ac_safe=yes"
6237 else 6370 else
6244 rm -f conftest* 6377 rm -f conftest*
6245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6246 echo "$ac_t""yes" 1>&6 6379 echo "$ac_t""yes" 1>&6
6247 6380
6248 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6381 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6249 echo "configure:6250: checking for XmStringFree in -lXm" >&5 6382 echo "configure:6383: checking for XmStringFree in -lXm" >&5
6250 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6383 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6251 6384
6252 xe_check_libs=" -lXm " 6385 xe_check_libs=" -lXm "
6253 cat > conftest.$ac_ext <<EOF 6386 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure" 6387 #line 6388 "configure"
6255 #include "confdefs.h" 6388 #include "confdefs.h"
6256 /* Override any gcc2 internal prototype to avoid an error. */ 6389 /* Override any gcc2 internal prototype to avoid an error. */
6257 /* We use char because int might match the return type of a gcc2 6390 /* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */ 6391 builtin and then its argument prototype would still apply. */
6259 char XmStringFree(); 6392 char XmStringFree();
6260 6393
6261 int main() { 6394 int main() {
6262 XmStringFree() 6395 XmStringFree()
6263 ; return 0; } 6396 ; return 0; }
6264 EOF 6397 EOF
6265 if { (eval echo configure:6266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6398 if { (eval echo configure:6399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6266 rm -rf conftest* 6399 rm -rf conftest*
6267 eval "ac_cv_lib_$ac_lib_var=yes" 6400 eval "ac_cv_lib_$ac_lib_var=yes"
6268 else 6401 else
6269 echo "configure: failed program was:" >&5 6402 echo "configure: failed program was:" >&5
6270 cat conftest.$ac_ext >&5 6403 cat conftest.$ac_ext >&5
6532 fi 6665 fi
6533 fi 6666 fi
6534 6667
6535 if test "$with_mule" = "yes" ; then 6668 if test "$with_mule" = "yes" ; then
6536 echo "checking for Mule-related features" 1>&6 6669 echo "checking for Mule-related features" 1>&6
6537 echo "configure:6538: checking for Mule-related features" >&5 6670 echo "configure:6671: checking for Mule-related features" >&5
6538 { test "$extra_verbose" = "yes" && cat << \EOF 6671 { test "$extra_verbose" = "yes" && cat << \EOF
6539 Defining MULE 6672 Defining MULE
6540 EOF 6673 EOF
6541 cat >> confdefs.h <<\EOF 6674 cat >> confdefs.h <<\EOF
6542 #define MULE 1 6675 #define MULE 1
6557 6690
6558 for ac_hdr in libintl.h 6691 for ac_hdr in libintl.h
6559 do 6692 do
6560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6562 echo "configure:6563: checking for $ac_hdr" >&5 6695 echo "configure:6696: checking for $ac_hdr" >&5
6563 6696
6564 cat > conftest.$ac_ext <<EOF 6697 cat > conftest.$ac_ext <<EOF
6565 #line 6566 "configure" 6698 #line 6699 "configure"
6566 #include "confdefs.h" 6699 #include "confdefs.h"
6567 #include <$ac_hdr> 6700 #include <$ac_hdr>
6568 EOF 6701 EOF
6569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6570 { (eval echo configure:6571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6703 { (eval echo configure:6704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6571 ac_err=`grep -v '^ *+' conftest.out` 6704 ac_err=`grep -v '^ *+' conftest.out`
6572 if test -z "$ac_err"; then 6705 if test -z "$ac_err"; then
6573 rm -rf conftest* 6706 rm -rf conftest*
6574 eval "ac_cv_header_$ac_safe=yes" 6707 eval "ac_cv_header_$ac_safe=yes"
6575 else 6708 else
6596 fi 6729 fi
6597 done 6730 done
6598 6731
6599 6732
6600 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6733 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6601 echo "configure:6602: checking for strerror in -lintl" >&5 6734 echo "configure:6735: checking for strerror in -lintl" >&5
6602 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6735 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6603 6736
6604 xe_check_libs=" -lintl " 6737 xe_check_libs=" -lintl "
6605 cat > conftest.$ac_ext <<EOF 6738 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure" 6739 #line 6740 "configure"
6607 #include "confdefs.h" 6740 #include "confdefs.h"
6608 /* Override any gcc2 internal prototype to avoid an error. */ 6741 /* Override any gcc2 internal prototype to avoid an error. */
6609 /* We use char because int might match the return type of a gcc2 6742 /* We use char because int might match the return type of a gcc2
6610 builtin and then its argument prototype would still apply. */ 6743 builtin and then its argument prototype would still apply. */
6611 char strerror(); 6744 char strerror();
6612 6745
6613 int main() { 6746 int main() {
6614 strerror() 6747 strerror()
6615 ; return 0; } 6748 ; return 0; }
6616 EOF 6749 EOF
6617 if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6750 if { (eval echo configure:6751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6618 rm -rf conftest* 6751 rm -rf conftest*
6619 eval "ac_cv_lib_$ac_lib_var=yes" 6752 eval "ac_cv_lib_$ac_lib_var=yes"
6620 else 6753 else
6621 echo "configure: failed program was:" >&5 6754 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5 6755 cat conftest.$ac_ext >&5
6645 fi 6778 fi
6646 6779
6647 6780
6648 6781
6649 echo "checking for Mule input methods" 1>&6 6782 echo "checking for Mule input methods" 1>&6
6650 echo "configure:6651: checking for Mule input methods" >&5 6783 echo "configure:6784: checking for Mule input methods" >&5
6651 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no 6784 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
6652 case "$with_xim" in "" | "yes" ) 6785 case "$with_xim" in "" | "yes" )
6653 echo "checking for XIM" 1>&6 6786 echo "checking for XIM" 1>&6
6654 echo "configure:6655: checking for XIM" >&5 6787 echo "configure:6788: checking for XIM" >&5
6655 6788
6656 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6789 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6657 echo "configure:6658: checking for XmImMbLookupString in -lXm" >&5 6790 echo "configure:6791: checking for XmImMbLookupString in -lXm" >&5
6658 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6791 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6659 6792
6660 xe_check_libs=" -lXm " 6793 xe_check_libs=" -lXm "
6661 cat > conftest.$ac_ext <<EOF 6794 cat > conftest.$ac_ext <<EOF
6662 #line 6663 "configure" 6795 #line 6796 "configure"
6663 #include "confdefs.h" 6796 #include "confdefs.h"
6664 /* Override any gcc2 internal prototype to avoid an error. */ 6797 /* Override any gcc2 internal prototype to avoid an error. */
6665 /* We use char because int might match the return type of a gcc2 6798 /* We use char because int might match the return type of a gcc2
6666 builtin and then its argument prototype would still apply. */ 6799 builtin and then its argument prototype would still apply. */
6667 char XmImMbLookupString(); 6800 char XmImMbLookupString();
6668 6801
6669 int main() { 6802 int main() {
6670 XmImMbLookupString() 6803 XmImMbLookupString()
6671 ; return 0; } 6804 ; return 0; }
6672 EOF 6805 EOF
6673 if { (eval echo configure:6674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6674 rm -rf conftest* 6807 rm -rf conftest*
6675 eval "ac_cv_lib_$ac_lib_var=yes" 6808 eval "ac_cv_lib_$ac_lib_var=yes"
6676 else 6809 else
6677 echo "configure: failed program was:" >&5 6810 echo "configure: failed program was:" >&5
6678 cat conftest.$ac_ext >&5 6811 cat conftest.$ac_ext >&5
6733 fi 6866 fi
6734 fi 6867 fi
6735 6868
6736 if test "$with_xfs" = "yes" ; then 6869 if test "$with_xfs" = "yes" ; then
6737 echo "checking for XFontSet" 1>&6 6870 echo "checking for XFontSet" 1>&6
6738 echo "configure:6739: checking for XFontSet" >&5 6871 echo "configure:6872: checking for XFontSet" >&5
6739 6872
6740 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 6873 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
6741 echo "configure:6742: checking for XmbDrawString in -lX11" >&5 6874 echo "configure:6875: checking for XmbDrawString in -lX11" >&5
6742 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 6875 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6743 6876
6744 xe_check_libs=" -lX11 " 6877 xe_check_libs=" -lX11 "
6745 cat > conftest.$ac_ext <<EOF 6878 cat > conftest.$ac_ext <<EOF
6746 #line 6747 "configure" 6879 #line 6880 "configure"
6747 #include "confdefs.h" 6880 #include "confdefs.h"
6748 /* Override any gcc2 internal prototype to avoid an error. */ 6881 /* Override any gcc2 internal prototype to avoid an error. */
6749 /* We use char because int might match the return type of a gcc2 6882 /* We use char because int might match the return type of a gcc2
6750 builtin and then its argument prototype would still apply. */ 6883 builtin and then its argument prototype would still apply. */
6751 char XmbDrawString(); 6884 char XmbDrawString();
6752 6885
6753 int main() { 6886 int main() {
6754 XmbDrawString() 6887 XmbDrawString()
6755 ; return 0; } 6888 ; return 0; }
6756 EOF 6889 EOF
6757 if { (eval echo configure:6758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6758 rm -rf conftest* 6891 rm -rf conftest*
6759 eval "ac_cv_lib_$ac_lib_var=yes" 6892 eval "ac_cv_lib_$ac_lib_var=yes"
6760 else 6893 else
6761 echo "configure: failed program was:" >&5 6894 echo "configure: failed program was:" >&5
6762 cat conftest.$ac_ext >&5 6895 cat conftest.$ac_ext >&5
6792 fi 6925 fi
6793 fi 6926 fi
6794 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 6927 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6795 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 6928 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
6796 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 6929 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
6797 echo "configure:6798: checking for wnn/jllib.h" >&5 6930 echo "configure:6931: checking for wnn/jllib.h" >&5
6798 6931
6799 cat > conftest.$ac_ext <<EOF 6932 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure" 6933 #line 6934 "configure"
6801 #include "confdefs.h" 6934 #include "confdefs.h"
6802 #include <wnn/jllib.h> 6935 #include <wnn/jllib.h>
6803 EOF 6936 EOF
6804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6805 { (eval echo configure:6806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6938 { (eval echo configure:6939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6806 ac_err=`grep -v '^ *+' conftest.out` 6939 ac_err=`grep -v '^ *+' conftest.out`
6807 if test -z "$ac_err"; then 6940 if test -z "$ac_err"; then
6808 rm -rf conftest* 6941 rm -rf conftest*
6809 eval "ac_cv_header_$ac_safe=yes" 6942 eval "ac_cv_header_$ac_safe=yes"
6810 else 6943 else
6825 } 6958 }
6826 if test "$with_wnn" != "no"; then 6959 if test "$with_wnn" != "no"; then
6827 for ac_func in crypt 6960 for ac_func in crypt
6828 do 6961 do
6829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6830 echo "configure:6831: checking for $ac_func" >&5 6963 echo "configure:6964: checking for $ac_func" >&5
6831 6964
6832 cat > conftest.$ac_ext <<EOF 6965 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure" 6966 #line 6967 "configure"
6834 #include "confdefs.h" 6967 #include "confdefs.h"
6835 /* System header to define __stub macros and hopefully few prototypes, 6968 /* System header to define __stub macros and hopefully few prototypes,
6836 which can conflict with char $ac_func(); below. */ 6969 which can conflict with char $ac_func(); below. */
6837 #include <assert.h> 6970 #include <assert.h>
6838 /* Override any gcc2 internal prototype to avoid an error. */ 6971 /* Override any gcc2 internal prototype to avoid an error. */
6851 $ac_func(); 6984 $ac_func();
6852 #endif 6985 #endif
6853 6986
6854 ; return 0; } 6987 ; return 0; }
6855 EOF 6988 EOF
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6989 if { (eval echo configure:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6857 rm -rf conftest* 6990 rm -rf conftest*
6858 eval "ac_cv_func_$ac_func=yes" 6991 eval "ac_cv_func_$ac_func=yes"
6859 else 6992 else
6860 echo "configure: failed program was:" >&5 6993 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5 6994 cat conftest.$ac_ext >&5
6880 fi 7013 fi
6881 done 7014 done
6882 7015
6883 test "$ac_cv_func_crypt" != "yes" && { 7016 test "$ac_cv_func_crypt" != "yes" && {
6884 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7017 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6885 echo "configure:6886: checking for crypt in -lcrypt" >&5 7018 echo "configure:7019: checking for crypt in -lcrypt" >&5
6886 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7019 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6887 7020
6888 xe_check_libs=" -lcrypt " 7021 xe_check_libs=" -lcrypt "
6889 cat > conftest.$ac_ext <<EOF 7022 cat > conftest.$ac_ext <<EOF
6890 #line 6891 "configure" 7023 #line 7024 "configure"
6891 #include "confdefs.h" 7024 #include "confdefs.h"
6892 /* Override any gcc2 internal prototype to avoid an error. */ 7025 /* Override any gcc2 internal prototype to avoid an error. */
6893 /* We use char because int might match the return type of a gcc2 7026 /* We use char because int might match the return type of a gcc2
6894 builtin and then its argument prototype would still apply. */ 7027 builtin and then its argument prototype would still apply. */
6895 char crypt(); 7028 char crypt();
6896 7029
6897 int main() { 7030 int main() {
6898 crypt() 7031 crypt()
6899 ; return 0; } 7032 ; return 0; }
6900 EOF 7033 EOF
6901 if { (eval echo configure:6902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7034 if { (eval echo configure:7035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6902 rm -rf conftest* 7035 rm -rf conftest*
6903 eval "ac_cv_lib_$ac_lib_var=yes" 7036 eval "ac_cv_lib_$ac_lib_var=yes"
6904 else 7037 else
6905 echo "configure: failed program was:" >&5 7038 echo "configure: failed program was:" >&5
6906 cat conftest.$ac_ext >&5 7039 cat conftest.$ac_ext >&5
6930 7063
6931 } 7064 }
6932 fi 7065 fi
6933 test -z "$with_wnn" && { 7066 test -z "$with_wnn" && {
6934 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7067 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
6935 echo "configure:6936: checking for jl_dic_list_e in -lwnn" >&5 7068 echo "configure:7069: checking for jl_dic_list_e in -lwnn" >&5
6936 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7069 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
6937 7070
6938 xe_check_libs=" -lwnn " 7071 xe_check_libs=" -lwnn "
6939 cat > conftest.$ac_ext <<EOF 7072 cat > conftest.$ac_ext <<EOF
6940 #line 6941 "configure" 7073 #line 7074 "configure"
6941 #include "confdefs.h" 7074 #include "confdefs.h"
6942 /* Override any gcc2 internal prototype to avoid an error. */ 7075 /* Override any gcc2 internal prototype to avoid an error. */
6943 /* We use char because int might match the return type of a gcc2 7076 /* We use char because int might match the return type of a gcc2
6944 builtin and then its argument prototype would still apply. */ 7077 builtin and then its argument prototype would still apply. */
6945 char jl_dic_list_e(); 7078 char jl_dic_list_e();
6946 7079
6947 int main() { 7080 int main() {
6948 jl_dic_list_e() 7081 jl_dic_list_e()
6949 ; return 0; } 7082 ; return 0; }
6950 EOF 7083 EOF
6951 if { (eval echo configure:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7084 if { (eval echo configure:7085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6952 rm -rf conftest* 7085 rm -rf conftest*
6953 eval "ac_cv_lib_$ac_lib_var=yes" 7086 eval "ac_cv_lib_$ac_lib_var=yes"
6954 else 7087 else
6955 echo "configure: failed program was:" >&5 7088 echo "configure: failed program was:" >&5
6956 cat conftest.$ac_ext >&5 7089 cat conftest.$ac_ext >&5
6983 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 7116 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
6984 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7117 echo " xemacs will be linked with \"mule-wnnfns.o\""
6985 fi 7118 fi
6986 7119
6987 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 7120 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
6988 echo "configure:6989: checking for jl_fi_dic_list in -lwnn" >&5 7121 echo "configure:7122: checking for jl_fi_dic_list in -lwnn" >&5
6989 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7122 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
6990 7123
6991 xe_check_libs=" -lwnn " 7124 xe_check_libs=" -lwnn "
6992 cat > conftest.$ac_ext <<EOF 7125 cat > conftest.$ac_ext <<EOF
6993 #line 6994 "configure" 7126 #line 7127 "configure"
6994 #include "confdefs.h" 7127 #include "confdefs.h"
6995 /* Override any gcc2 internal prototype to avoid an error. */ 7128 /* Override any gcc2 internal prototype to avoid an error. */
6996 /* We use char because int might match the return type of a gcc2 7129 /* We use char because int might match the return type of a gcc2
6997 builtin and then its argument prototype would still apply. */ 7130 builtin and then its argument prototype would still apply. */
6998 char jl_fi_dic_list(); 7131 char jl_fi_dic_list();
6999 7132
7000 int main() { 7133 int main() {
7001 jl_fi_dic_list() 7134 jl_fi_dic_list()
7002 ; return 0; } 7135 ; return 0; }
7003 EOF 7136 EOF
7004 if { (eval echo configure:7005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7137 if { (eval echo configure:7138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7005 rm -rf conftest* 7138 rm -rf conftest*
7006 eval "ac_cv_lib_$ac_lib_var=yes" 7139 eval "ac_cv_lib_$ac_lib_var=yes"
7007 else 7140 else
7008 echo "configure: failed program was:" >&5 7141 echo "configure: failed program was:" >&5
7009 cat conftest.$ac_ext >&5 7142 cat conftest.$ac_ext >&5
7031 7164
7032 fi 7165 fi
7033 7166
7034 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 7167 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
7035 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 7168 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
7036 echo "configure:7037: checking for canna/RK.h" >&5 7169 echo "configure:7170: checking for canna/RK.h" >&5
7037 7170
7038 cat > conftest.$ac_ext <<EOF 7171 cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure" 7172 #line 7173 "configure"
7040 #include "confdefs.h" 7173 #include "confdefs.h"
7041 #include <canna/RK.h> 7174 #include <canna/RK.h>
7042 EOF 7175 EOF
7043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7044 { (eval echo configure:7045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7177 { (eval echo configure:7178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7045 ac_err=`grep -v '^ *+' conftest.out` 7178 ac_err=`grep -v '^ *+' conftest.out`
7046 if test -z "$ac_err"; then 7179 if test -z "$ac_err"; then
7047 rm -rf conftest* 7180 rm -rf conftest*
7048 eval "ac_cv_header_$ac_safe=yes" 7181 eval "ac_cv_header_$ac_safe=yes"
7049 else 7182 else
7062 with_canna=no 7195 with_canna=no
7063 fi 7196 fi
7064 } 7197 }
7065 test -z "$with_canna" && { 7198 test -z "$with_canna" && {
7066 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 7199 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7067 echo "configure:7068: checking for RkBgnBun in -lRKC" >&5 7200 echo "configure:7201: checking for RkBgnBun in -lRKC" >&5
7068 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 7201 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7069 7202
7070 xe_check_libs=" -lRKC " 7203 xe_check_libs=" -lRKC "
7071 cat > conftest.$ac_ext <<EOF 7204 cat > conftest.$ac_ext <<EOF
7072 #line 7073 "configure" 7205 #line 7206 "configure"
7073 #include "confdefs.h" 7206 #include "confdefs.h"
7074 /* Override any gcc2 internal prototype to avoid an error. */ 7207 /* Override any gcc2 internal prototype to avoid an error. */
7075 /* We use char because int might match the return type of a gcc2 7208 /* We use char because int might match the return type of a gcc2
7076 builtin and then its argument prototype would still apply. */ 7209 builtin and then its argument prototype would still apply. */
7077 char RkBgnBun(); 7210 char RkBgnBun();
7078 7211
7079 int main() { 7212 int main() {
7080 RkBgnBun() 7213 RkBgnBun()
7081 ; return 0; } 7214 ; return 0; }
7082 EOF 7215 EOF
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7216 if { (eval echo configure:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7084 rm -rf conftest* 7217 rm -rf conftest*
7085 eval "ac_cv_lib_$ac_lib_var=yes" 7218 eval "ac_cv_lib_$ac_lib_var=yes"
7086 else 7219 else
7087 echo "configure: failed program was:" >&5 7220 echo "configure: failed program was:" >&5
7088 cat conftest.$ac_ext >&5 7221 cat conftest.$ac_ext >&5
7101 fi 7234 fi
7102 7235
7103 } 7236 }
7104 test -z "$with_canna" && { 7237 test -z "$with_canna" && {
7105 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 7238 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7106 echo "configure:7107: checking for jrKanjiControl in -lcanna" >&5 7239 echo "configure:7240: checking for jrKanjiControl in -lcanna" >&5
7107 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 7240 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7108 7241
7109 xe_check_libs=" -lcanna " 7242 xe_check_libs=" -lcanna "
7110 cat > conftest.$ac_ext <<EOF 7243 cat > conftest.$ac_ext <<EOF
7111 #line 7112 "configure" 7244 #line 7245 "configure"
7112 #include "confdefs.h" 7245 #include "confdefs.h"
7113 /* Override any gcc2 internal prototype to avoid an error. */ 7246 /* Override any gcc2 internal prototype to avoid an error. */
7114 /* We use char because int might match the return type of a gcc2 7247 /* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */ 7248 builtin and then its argument prototype would still apply. */
7116 char jrKanjiControl(); 7249 char jrKanjiControl();
7117 7250
7118 int main() { 7251 int main() {
7119 jrKanjiControl() 7252 jrKanjiControl()
7120 ; return 0; } 7253 ; return 0; }
7121 EOF 7254 EOF
7122 if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7123 rm -rf conftest* 7256 rm -rf conftest*
7124 eval "ac_cv_lib_$ac_lib_var=yes" 7257 eval "ac_cv_lib_$ac_lib_var=yes"
7125 else 7258 else
7126 echo "configure: failed program was:" >&5 7259 echo "configure: failed program was:" >&5
7127 cat conftest.$ac_ext >&5 7260 cat conftest.$ac_ext >&5
7166 7299
7167 if test "$need_motif" = "yes" ; then 7300 if test "$need_motif" = "yes" ; then
7168 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 7301 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
7169 7302
7170 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 7303 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
7171 echo "configure:7172: checking for layout_object_getvalue in -li18n" >&5 7304 echo "configure:7305: checking for layout_object_getvalue in -li18n" >&5
7172 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 7305 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
7173 7306
7174 xe_check_libs=" -li18n " 7307 xe_check_libs=" -li18n "
7175 cat > conftest.$ac_ext <<EOF 7308 cat > conftest.$ac_ext <<EOF
7176 #line 7177 "configure" 7309 #line 7310 "configure"
7177 #include "confdefs.h" 7310 #include "confdefs.h"
7178 /* Override any gcc2 internal prototype to avoid an error. */ 7311 /* Override any gcc2 internal prototype to avoid an error. */
7179 /* We use char because int might match the return type of a gcc2 7312 /* We use char because int might match the return type of a gcc2
7180 builtin and then its argument prototype would still apply. */ 7313 builtin and then its argument prototype would still apply. */
7181 char layout_object_getvalue(); 7314 char layout_object_getvalue();
7182 7315
7183 int main() { 7316 int main() {
7184 layout_object_getvalue() 7317 layout_object_getvalue()
7185 ; return 0; } 7318 ; return 0; }
7186 EOF 7319 EOF
7187 if { (eval echo configure:7188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7320 if { (eval echo configure:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7188 rm -rf conftest* 7321 rm -rf conftest*
7189 eval "ac_cv_lib_$ac_lib_var=yes" 7322 eval "ac_cv_lib_$ac_lib_var=yes"
7190 else 7323 else
7191 echo "configure: failed program was:" >&5 7324 echo "configure: failed program was:" >&5
7192 cat conftest.$ac_ext >&5 7325 cat conftest.$ac_ext >&5
7255 fi 7388 fi
7256 7389
7257 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset ulimit usleep utimes waitpid 7390 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset ulimit usleep utimes waitpid
7258 do 7391 do
7259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7260 echo "configure:7261: checking for $ac_func" >&5 7393 echo "configure:7394: checking for $ac_func" >&5
7261 7394
7262 cat > conftest.$ac_ext <<EOF 7395 cat > conftest.$ac_ext <<EOF
7263 #line 7264 "configure" 7396 #line 7397 "configure"
7264 #include "confdefs.h" 7397 #include "confdefs.h"
7265 /* System header to define __stub macros and hopefully few prototypes, 7398 /* System header to define __stub macros and hopefully few prototypes,
7266 which can conflict with char $ac_func(); below. */ 7399 which can conflict with char $ac_func(); below. */
7267 #include <assert.h> 7400 #include <assert.h>
7268 /* Override any gcc2 internal prototype to avoid an error. */ 7401 /* Override any gcc2 internal prototype to avoid an error. */
7281 $ac_func(); 7414 $ac_func();
7282 #endif 7415 #endif
7283 7416
7284 ; return 0; } 7417 ; return 0; }
7285 EOF 7418 EOF
7286 if { (eval echo configure:7287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7287 rm -rf conftest* 7420 rm -rf conftest*
7288 eval "ac_cv_func_$ac_func=yes" 7421 eval "ac_cv_func_$ac_func=yes"
7289 else 7422 else
7290 echo "configure: failed program was:" >&5 7423 echo "configure: failed program was:" >&5
7291 cat conftest.$ac_ext >&5 7424 cat conftest.$ac_ext >&5
7318 fi ;; 7451 fi ;;
7319 * ) 7452 * )
7320 for ac_func in realpath 7453 for ac_func in realpath
7321 do 7454 do
7322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7323 echo "configure:7324: checking for $ac_func" >&5 7456 echo "configure:7457: checking for $ac_func" >&5
7324 7457
7325 cat > conftest.$ac_ext <<EOF 7458 cat > conftest.$ac_ext <<EOF
7326 #line 7327 "configure" 7459 #line 7460 "configure"
7327 #include "confdefs.h" 7460 #include "confdefs.h"
7328 /* System header to define __stub macros and hopefully few prototypes, 7461 /* System header to define __stub macros and hopefully few prototypes,
7329 which can conflict with char $ac_func(); below. */ 7462 which can conflict with char $ac_func(); below. */
7330 #include <assert.h> 7463 #include <assert.h>
7331 /* Override any gcc2 internal prototype to avoid an error. */ 7464 /* Override any gcc2 internal prototype to avoid an error. */
7344 $ac_func(); 7477 $ac_func();
7345 #endif 7478 #endif
7346 7479
7347 ; return 0; } 7480 ; return 0; }
7348 EOF 7481 EOF
7349 if { (eval echo configure:7350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7350 rm -rf conftest* 7483 rm -rf conftest*
7351 eval "ac_cv_func_$ac_func=yes" 7484 eval "ac_cv_func_$ac_func=yes"
7352 else 7485 else
7353 echo "configure: failed program was:" >&5 7486 echo "configure: failed program was:" >&5
7354 cat conftest.$ac_ext >&5 7487 cat conftest.$ac_ext >&5
7377 echo " xemacs will be linked with \"realpath.o\"" 7510 echo " xemacs will be linked with \"realpath.o\""
7378 fi ;; 7511 fi ;;
7379 esac 7512 esac
7380 7513
7381 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7514 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
7382 echo "configure:7383: checking whether netdb declares h_errno" >&5 7515 echo "configure:7516: checking whether netdb declares h_errno" >&5
7383 cat > conftest.$ac_ext <<EOF 7516 cat > conftest.$ac_ext <<EOF
7384 #line 7385 "configure" 7517 #line 7518 "configure"
7385 #include "confdefs.h" 7518 #include "confdefs.h"
7386 #include <netdb.h> 7519 #include <netdb.h>
7387 int main() { 7520 int main() {
7388 return h_errno; 7521 return h_errno;
7389 ; return 0; } 7522 ; return 0; }
7390 EOF 7523 EOF
7391 if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7524 if { (eval echo configure:7525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7392 rm -rf conftest* 7525 rm -rf conftest*
7393 echo "$ac_t""yes" 1>&6 7526 echo "$ac_t""yes" 1>&6
7394 { test "$extra_verbose" = "yes" && cat << \EOF 7527 { test "$extra_verbose" = "yes" && cat << \EOF
7395 Defining HAVE_H_ERRNO 7528 Defining HAVE_H_ERRNO
7396 EOF 7529 EOF
7406 echo "$ac_t""no" 1>&6 7539 echo "$ac_t""no" 1>&6
7407 fi 7540 fi
7408 rm -f conftest* 7541 rm -f conftest*
7409 7542
7410 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 7543 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7411 echo "configure:7412: checking for sigsetjmp" >&5 7544 echo "configure:7545: checking for sigsetjmp" >&5
7412 cat > conftest.$ac_ext <<EOF 7545 cat > conftest.$ac_ext <<EOF
7413 #line 7414 "configure" 7546 #line 7547 "configure"
7414 #include "confdefs.h" 7547 #include "confdefs.h"
7415 #include <setjmp.h> 7548 #include <setjmp.h>
7416 int main() { 7549 int main() {
7417 sigjmp_buf bar; sigsetjmp (bar, 0); 7550 sigjmp_buf bar; sigsetjmp (bar, 0);
7418 ; return 0; } 7551 ; return 0; }
7419 EOF 7552 EOF
7420 if { (eval echo configure:7421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7553 if { (eval echo configure:7554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7421 rm -rf conftest* 7554 rm -rf conftest*
7422 echo "$ac_t""yes" 1>&6 7555 echo "$ac_t""yes" 1>&6
7423 { test "$extra_verbose" = "yes" && cat << \EOF 7556 { test "$extra_verbose" = "yes" && cat << \EOF
7424 Defining HAVE_SIGSETJMP 7557 Defining HAVE_SIGSETJMP
7425 EOF 7558 EOF
7435 echo "$ac_t""no" 1>&6 7568 echo "$ac_t""no" 1>&6
7436 fi 7569 fi
7437 rm -f conftest* 7570 rm -f conftest*
7438 7571
7439 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7572 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7440 echo "configure:7441: checking whether localtime caches TZ" >&5 7573 echo "configure:7574: checking whether localtime caches TZ" >&5
7441 7574
7442 if test "$ac_cv_func_tzset" = "yes"; then 7575 if test "$ac_cv_func_tzset" = "yes"; then
7443 cat > conftest.$ac_ext <<EOF 7576 cat > conftest.$ac_ext <<EOF
7444 #line 7445 "configure" 7577 #line 7578 "configure"
7445 #include "confdefs.h" 7578 #include "confdefs.h"
7446 #include <time.h> 7579 #include <time.h>
7447 #if STDC_HEADERS 7580 #if STDC_HEADERS
7448 # include <stdlib.h> 7581 # include <stdlib.h>
7449 #endif 7582 #endif
7474 if (localtime (&now)->tm_hour != hour_unset) 7607 if (localtime (&now)->tm_hour != hour_unset)
7475 exit (1); 7608 exit (1);
7476 exit (0); 7609 exit (0);
7477 } 7610 }
7478 EOF 7611 EOF
7479 if { (eval echo configure:7480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7480 then 7613 then
7481 emacs_cv_localtime_cache=no 7614 emacs_cv_localtime_cache=no
7482 else 7615 else
7483 echo "configure: failed program was:" >&5 7616 echo "configure: failed program was:" >&5
7484 cat conftest.$ac_ext >&5 7617 cat conftest.$ac_ext >&5
7503 7636
7504 fi 7637 fi
7505 7638
7506 if test "$HAVE_TIMEVAL" = "yes"; then 7639 if test "$HAVE_TIMEVAL" = "yes"; then
7507 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 7640 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
7508 echo "configure:7509: checking whether gettimeofday cannot accept two arguments" >&5 7641 echo "configure:7642: checking whether gettimeofday cannot accept two arguments" >&5
7509 cat > conftest.$ac_ext <<EOF 7642 cat > conftest.$ac_ext <<EOF
7510 #line 7511 "configure" 7643 #line 7644 "configure"
7511 #include "confdefs.h" 7644 #include "confdefs.h"
7512 7645
7513 #ifdef TIME_WITH_SYS_TIME 7646 #ifdef TIME_WITH_SYS_TIME
7514 #include <sys/time.h> 7647 #include <sys/time.h>
7515 #include <time.h> 7648 #include <time.h>
7527 struct timezone dummy; 7660 struct timezone dummy;
7528 gettimeofday (&time, &dummy); 7661 gettimeofday (&time, &dummy);
7529 7662
7530 ; return 0; } 7663 ; return 0; }
7531 EOF 7664 EOF
7532 if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7665 if { (eval echo configure:7666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7533 rm -rf conftest* 7666 rm -rf conftest*
7534 echo "$ac_t""no" 1>&6 7667 echo "$ac_t""no" 1>&6
7535 else 7668 else
7536 echo "configure: failed program was:" >&5 7669 echo "configure: failed program was:" >&5
7537 cat conftest.$ac_ext >&5 7670 cat conftest.$ac_ext >&5
7549 rm -f conftest* 7682 rm -f conftest*
7550 fi 7683 fi
7551 7684
7552 7685
7553 echo $ac_n "checking for inline""... $ac_c" 1>&6 7686 echo $ac_n "checking for inline""... $ac_c" 1>&6
7554 echo "configure:7555: checking for inline" >&5 7687 echo "configure:7688: checking for inline" >&5
7555 7688
7556 ac_cv_c_inline=no 7689 ac_cv_c_inline=no
7557 for ac_kw in inline __inline__ __inline; do 7690 for ac_kw in inline __inline__ __inline; do
7558 cat > conftest.$ac_ext <<EOF 7691 cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure" 7692 #line 7693 "configure"
7560 #include "confdefs.h" 7693 #include "confdefs.h"
7561 7694
7562 int main() { 7695 int main() {
7563 } $ac_kw foo() { 7696 } $ac_kw foo() {
7564 ; return 0; } 7697 ; return 0; }
7565 EOF 7698 EOF
7566 if { (eval echo configure:7567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7699 if { (eval echo configure:7700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7567 rm -rf conftest* 7700 rm -rf conftest*
7568 ac_cv_c_inline=$ac_kw; break 7701 ac_cv_c_inline=$ac_kw; break
7569 else 7702 else
7570 echo "configure: failed program was:" >&5 7703 echo "configure: failed program was:" >&5
7571 cat conftest.$ac_ext >&5 7704 cat conftest.$ac_ext >&5
7611 7744
7612 7745
7613 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7746 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7614 # for constant arguments. Useless! 7747 # for constant arguments. Useless!
7615 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7748 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7616 echo "configure:7617: checking for working alloca.h" >&5 7749 echo "configure:7750: checking for working alloca.h" >&5
7617 7750
7618 cat > conftest.$ac_ext <<EOF 7751 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure" 7752 #line 7753 "configure"
7620 #include "confdefs.h" 7753 #include "confdefs.h"
7621 #include <alloca.h> 7754 #include <alloca.h>
7622 int main() { 7755 int main() {
7623 char *p = alloca(2 * sizeof(int)); 7756 char *p = alloca(2 * sizeof(int));
7624 ; return 0; } 7757 ; return 0; }
7625 EOF 7758 EOF
7626 if { (eval echo configure:7627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7627 rm -rf conftest* 7760 rm -rf conftest*
7628 ac_cv_header_alloca_h=yes 7761 ac_cv_header_alloca_h=yes
7629 else 7762 else
7630 echo "configure: failed program was:" >&5 7763 echo "configure: failed program was:" >&5
7631 cat conftest.$ac_ext >&5 7764 cat conftest.$ac_ext >&5
7645 } 7778 }
7646 7779
7647 fi 7780 fi
7648 7781
7649 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7782 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7650 echo "configure:7651: checking for alloca" >&5 7783 echo "configure:7784: checking for alloca" >&5
7651 7784
7652 cat > conftest.$ac_ext <<EOF 7785 cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure" 7786 #line 7787 "configure"
7654 #include "confdefs.h" 7787 #include "confdefs.h"
7655 7788
7656 #ifdef __GNUC__ 7789 #ifdef __GNUC__
7657 # define alloca __builtin_alloca 7790 # define alloca __builtin_alloca
7658 #else 7791 #else
7671 7804
7672 int main() { 7805 int main() {
7673 char *p = (char *) alloca(1); 7806 char *p = (char *) alloca(1);
7674 ; return 0; } 7807 ; return 0; }
7675 EOF 7808 EOF
7676 if { (eval echo configure:7677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7677 rm -rf conftest* 7810 rm -rf conftest*
7678 ac_cv_func_alloca_works=yes 7811 ac_cv_func_alloca_works=yes
7679 else 7812 else
7680 echo "configure: failed program was:" >&5 7813 echo "configure: failed program was:" >&5
7681 cat conftest.$ac_ext >&5 7814 cat conftest.$ac_ext >&5
7710 EOF 7843 EOF
7711 } 7844 }
7712 7845
7713 7846
7714 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7847 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7715 echo "configure:7716: checking whether alloca needs Cray hooks" >&5 7848 echo "configure:7849: checking whether alloca needs Cray hooks" >&5
7716 7849
7717 cat > conftest.$ac_ext <<EOF 7850 cat > conftest.$ac_ext <<EOF
7718 #line 7719 "configure" 7851 #line 7852 "configure"
7719 #include "confdefs.h" 7852 #include "confdefs.h"
7720 #if defined(CRAY) && ! defined(CRAY2) 7853 #if defined(CRAY) && ! defined(CRAY2)
7721 webecray 7854 webecray
7722 #else 7855 #else
7723 wenotbecray 7856 wenotbecray
7737 7870
7738 echo "$ac_t""$ac_cv_os_cray" 1>&6 7871 echo "$ac_t""$ac_cv_os_cray" 1>&6
7739 if test $ac_cv_os_cray = yes; then 7872 if test $ac_cv_os_cray = yes; then
7740 for ac_func in _getb67 GETB67 getb67; do 7873 for ac_func in _getb67 GETB67 getb67; do
7741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7742 echo "configure:7743: checking for $ac_func" >&5 7875 echo "configure:7876: checking for $ac_func" >&5
7743 7876
7744 cat > conftest.$ac_ext <<EOF 7877 cat > conftest.$ac_ext <<EOF
7745 #line 7746 "configure" 7878 #line 7879 "configure"
7746 #include "confdefs.h" 7879 #include "confdefs.h"
7747 /* System header to define __stub macros and hopefully few prototypes, 7880 /* System header to define __stub macros and hopefully few prototypes,
7748 which can conflict with char $ac_func(); below. */ 7881 which can conflict with char $ac_func(); below. */
7749 #include <assert.h> 7882 #include <assert.h>
7750 /* Override any gcc2 internal prototype to avoid an error. */ 7883 /* Override any gcc2 internal prototype to avoid an error. */
7763 $ac_func(); 7896 $ac_func();
7764 #endif 7897 #endif
7765 7898
7766 ; return 0; } 7899 ; return 0; }
7767 EOF 7900 EOF
7768 if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7901 if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7769 rm -rf conftest* 7902 rm -rf conftest*
7770 eval "ac_cv_func_$ac_func=yes" 7903 eval "ac_cv_func_$ac_func=yes"
7771 else 7904 else
7772 echo "configure: failed program was:" >&5 7905 echo "configure: failed program was:" >&5
7773 cat conftest.$ac_ext >&5 7906 cat conftest.$ac_ext >&5
7793 7926
7794 done 7927 done
7795 fi 7928 fi
7796 7929
7797 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7930 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7798 echo "configure:7799: checking stack direction for C alloca" >&5 7931 echo "configure:7932: checking stack direction for C alloca" >&5
7799 7932
7800 cat > conftest.$ac_ext <<EOF 7933 cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure" 7934 #line 7935 "configure"
7802 #include "confdefs.h" 7935 #include "confdefs.h"
7803 find_stack_direction () 7936 find_stack_direction ()
7804 { 7937 {
7805 static char *addr = 0; 7938 static char *addr = 0;
7806 auto char dummy; 7939 auto char dummy;
7815 main () 7948 main ()
7816 { 7949 {
7817 exit (find_stack_direction() < 0); 7950 exit (find_stack_direction() < 0);
7818 } 7951 }
7819 EOF 7952 EOF
7820 if { (eval echo configure:7821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7953 if { (eval echo configure:7954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7821 then 7954 then
7822 ac_cv_c_stack_direction=1 7955 ac_cv_c_stack_direction=1
7823 else 7956 else
7824 echo "configure: failed program was:" >&5 7957 echo "configure: failed program was:" >&5
7825 cat conftest.$ac_ext >&5 7958 cat conftest.$ac_ext >&5
7843 echo " xemacs will be linked with \"$ALLOCA\"" 7976 echo " xemacs will be linked with \"$ALLOCA\""
7844 fi 7977 fi
7845 7978
7846 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 7979 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
7847 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 7980 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
7848 echo "configure:7849: checking for vfork.h" >&5 7981 echo "configure:7982: checking for vfork.h" >&5
7849 7982
7850 cat > conftest.$ac_ext <<EOF 7983 cat > conftest.$ac_ext <<EOF
7851 #line 7852 "configure" 7984 #line 7985 "configure"
7852 #include "confdefs.h" 7985 #include "confdefs.h"
7853 #include <vfork.h> 7986 #include <vfork.h>
7854 EOF 7987 EOF
7855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7856 { (eval echo configure:7857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7989 { (eval echo configure:7990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7857 ac_err=`grep -v '^ *+' conftest.out` 7990 ac_err=`grep -v '^ *+' conftest.out`
7858 if test -z "$ac_err"; then 7991 if test -z "$ac_err"; then
7859 rm -rf conftest* 7992 rm -rf conftest*
7860 eval "ac_cv_header_$ac_safe=yes" 7993 eval "ac_cv_header_$ac_safe=yes"
7861 else 7994 else
7879 else 8012 else
7880 echo "$ac_t""no" 1>&6 8013 echo "$ac_t""no" 1>&6
7881 fi 8014 fi
7882 8015
7883 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8016 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
7884 echo "configure:7885: checking for working vfork" >&5 8017 echo "configure:8018: checking for working vfork" >&5
7885 8018
7886 cat > conftest.$ac_ext <<EOF 8019 cat > conftest.$ac_ext <<EOF
7887 #line 7888 "configure" 8020 #line 8021 "configure"
7888 #include "confdefs.h" 8021 #include "confdefs.h"
7889 /* Thanks to Paul Eggert for this test. */ 8022 /* Thanks to Paul Eggert for this test. */
7890 #include <stdio.h> 8023 #include <stdio.h>
7891 #include <sys/types.h> 8024 #include <sys/types.h>
7892 #include <sys/stat.h> 8025 #include <sys/stat.h>
7977 || fstat(fileno(stdout), &st) != 0 8110 || fstat(fileno(stdout), &st) != 0
7978 ); 8111 );
7979 } 8112 }
7980 } 8113 }
7981 EOF 8114 EOF
7982 if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8115 if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7983 then 8116 then
7984 ac_cv_func_vfork_works=yes 8117 ac_cv_func_vfork_works=yes
7985 else 8118 else
7986 echo "configure: failed program was:" >&5 8119 echo "configure: failed program was:" >&5
7987 cat conftest.$ac_ext >&5 8120 cat conftest.$ac_ext >&5
8002 8135
8003 fi 8136 fi
8004 8137
8005 8138
8006 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8139 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
8007 echo "configure:8008: checking for working strcoll" >&5 8140 echo "configure:8141: checking for working strcoll" >&5
8008 8141
8009 cat > conftest.$ac_ext <<EOF 8142 cat > conftest.$ac_ext <<EOF
8010 #line 8011 "configure" 8143 #line 8144 "configure"
8011 #include "confdefs.h" 8144 #include "confdefs.h"
8012 #include <string.h> 8145 #include <string.h>
8013 main () 8146 main ()
8014 { 8147 {
8015 exit (strcoll ("abc", "def") >= 0 || 8148 exit (strcoll ("abc", "def") >= 0 ||
8016 strcoll ("ABC", "DEF") >= 0 || 8149 strcoll ("ABC", "DEF") >= 0 ||
8017 strcoll ("123", "456") >= 0); 8150 strcoll ("123", "456") >= 0);
8018 } 8151 }
8019 EOF 8152 EOF
8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8153 if { (eval echo configure:8154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8021 then 8154 then
8022 ac_cv_func_strcoll_works=yes 8155 ac_cv_func_strcoll_works=yes
8023 else 8156 else
8024 echo "configure: failed program was:" >&5 8157 echo "configure: failed program was:" >&5
8025 cat conftest.$ac_ext >&5 8158 cat conftest.$ac_ext >&5
8042 8175
8043 8176
8044 for ac_func in getpgrp 8177 for ac_func in getpgrp
8045 do 8178 do
8046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8047 echo "configure:8048: checking for $ac_func" >&5 8180 echo "configure:8181: checking for $ac_func" >&5
8048 8181
8049 cat > conftest.$ac_ext <<EOF 8182 cat > conftest.$ac_ext <<EOF
8050 #line 8051 "configure" 8183 #line 8184 "configure"
8051 #include "confdefs.h" 8184 #include "confdefs.h"
8052 /* System header to define __stub macros and hopefully few prototypes, 8185 /* System header to define __stub macros and hopefully few prototypes,
8053 which can conflict with char $ac_func(); below. */ 8186 which can conflict with char $ac_func(); below. */
8054 #include <assert.h> 8187 #include <assert.h>
8055 /* Override any gcc2 internal prototype to avoid an error. */ 8188 /* Override any gcc2 internal prototype to avoid an error. */
8068 $ac_func(); 8201 $ac_func();
8069 #endif 8202 #endif
8070 8203
8071 ; return 0; } 8204 ; return 0; }
8072 EOF 8205 EOF
8073 if { (eval echo configure:8074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8206 if { (eval echo configure:8207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8074 rm -rf conftest* 8207 rm -rf conftest*
8075 eval "ac_cv_func_$ac_func=yes" 8208 eval "ac_cv_func_$ac_func=yes"
8076 else 8209 else
8077 echo "configure: failed program was:" >&5 8210 echo "configure: failed program was:" >&5
8078 cat conftest.$ac_ext >&5 8211 cat conftest.$ac_ext >&5
8096 echo "$ac_t""no" 1>&6 8229 echo "$ac_t""no" 1>&6
8097 fi 8230 fi
8098 done 8231 done
8099 8232
8100 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8233 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
8101 echo "configure:8102: checking whether getpgrp takes no argument" >&5 8234 echo "configure:8235: checking whether getpgrp takes no argument" >&5
8102 8235
8103 cat > conftest.$ac_ext <<EOF 8236 cat > conftest.$ac_ext <<EOF
8104 #line 8105 "configure" 8237 #line 8238 "configure"
8105 #include "confdefs.h" 8238 #include "confdefs.h"
8106 8239
8107 /* 8240 /*
8108 * If this system has a BSD-style getpgrp(), 8241 * If this system has a BSD-style getpgrp(),
8109 * which takes a pid argument, exit unsuccessfully. 8242 * which takes a pid argument, exit unsuccessfully.
8154 exit(s>>8); 8287 exit(s>>8);
8155 } 8288 }
8156 } 8289 }
8157 8290
8158 EOF 8291 EOF
8159 if { (eval echo configure:8160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8292 if { (eval echo configure:8293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8160 then 8293 then
8161 ac_cv_func_getpgrp_void=yes 8294 ac_cv_func_getpgrp_void=yes
8162 else 8295 else
8163 echo "configure: failed program was:" >&5 8296 echo "configure: failed program was:" >&5
8164 cat conftest.$ac_ext >&5 8297 cat conftest.$ac_ext >&5
8180 8313
8181 fi 8314 fi
8182 8315
8183 8316
8184 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8317 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8185 echo "configure:8186: checking for working mmap" >&5 8318 echo "configure:8319: checking for working mmap" >&5
8186 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8319 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8187 cat > conftest.$ac_ext <<EOF 8320 cat > conftest.$ac_ext <<EOF
8188 #line 8189 "configure" 8321 #line 8322 "configure"
8189 #include "confdefs.h" 8322 #include "confdefs.h"
8190 #include <stdio.h> 8323 #include <stdio.h>
8191 #include <unistd.h> 8324 #include <unistd.h>
8192 #include <fcntl.h> 8325 #include <fcntl.h>
8193 #include <sys/mman.h> 8326 #include <sys/mman.h>
8216 return 0; 8349 return 0;
8217 perror ("conftest: mmap failed"); 8350 perror ("conftest: mmap failed");
8218 return 1; 8351 return 1;
8219 } 8352 }
8220 EOF 8353 EOF
8221 if { (eval echo configure:8222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8354 if { (eval echo configure:8355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8222 then 8355 then
8223 have_mmap=yes 8356 have_mmap=yes
8224 else 8357 else
8225 echo "configure: failed program was:" >&5 8358 echo "configure: failed program was:" >&5
8226 cat conftest.$ac_ext >&5 8359 cat conftest.$ac_ext >&5
8250 } 8383 }
8251 8384
8252 8385
8253 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8386 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8254 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8387 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8255 echo "configure:8256: checking for termios.h" >&5 8388 echo "configure:8389: checking for termios.h" >&5
8256 8389
8257 cat > conftest.$ac_ext <<EOF 8390 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure" 8391 #line 8392 "configure"
8259 #include "confdefs.h" 8392 #include "confdefs.h"
8260 #include <termios.h> 8393 #include <termios.h>
8261 EOF 8394 EOF
8262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8263 { (eval echo configure:8264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8396 { (eval echo configure:8397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8264 ac_err=`grep -v '^ *+' conftest.out` 8397 ac_err=`grep -v '^ *+' conftest.out`
8265 if test -z "$ac_err"; then 8398 if test -z "$ac_err"; then
8266 rm -rf conftest* 8399 rm -rf conftest*
8267 eval "ac_cv_header_$ac_safe=yes" 8400 eval "ac_cv_header_$ac_safe=yes"
8268 else 8401 else
8301 8434
8302 else 8435 else
8303 echo "$ac_t""no" 1>&6 8436 echo "$ac_t""no" 1>&6
8304 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8437 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8305 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8438 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8306 echo "configure:8307: checking for termio.h" >&5 8439 echo "configure:8440: checking for termio.h" >&5
8307 8440
8308 cat > conftest.$ac_ext <<EOF 8441 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure" 8442 #line 8443 "configure"
8310 #include "confdefs.h" 8443 #include "confdefs.h"
8311 #include <termio.h> 8444 #include <termio.h>
8312 EOF 8445 EOF
8313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8314 { (eval echo configure:8315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8447 { (eval echo configure:8448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8315 ac_err=`grep -v '^ *+' conftest.out` 8448 ac_err=`grep -v '^ *+' conftest.out`
8316 if test -z "$ac_err"; then 8449 if test -z "$ac_err"; then
8317 rm -rf conftest* 8450 rm -rf conftest*
8318 eval "ac_cv_header_$ac_safe=yes" 8451 eval "ac_cv_header_$ac_safe=yes"
8319 else 8452 else
8341 fi 8474 fi
8342 8475
8343 8476
8344 8477
8345 echo $ac_n "checking for socket""... $ac_c" 1>&6 8478 echo $ac_n "checking for socket""... $ac_c" 1>&6
8346 echo "configure:8347: checking for socket" >&5 8479 echo "configure:8480: checking for socket" >&5
8347 8480
8348 cat > conftest.$ac_ext <<EOF 8481 cat > conftest.$ac_ext <<EOF
8349 #line 8350 "configure" 8482 #line 8483 "configure"
8350 #include "confdefs.h" 8483 #include "confdefs.h"
8351 /* System header to define __stub macros and hopefully few prototypes, 8484 /* System header to define __stub macros and hopefully few prototypes,
8352 which can conflict with char socket(); below. */ 8485 which can conflict with char socket(); below. */
8353 #include <assert.h> 8486 #include <assert.h>
8354 /* Override any gcc2 internal prototype to avoid an error. */ 8487 /* Override any gcc2 internal prototype to avoid an error. */
8367 socket(); 8500 socket();
8368 #endif 8501 #endif
8369 8502
8370 ; return 0; } 8503 ; return 0; }
8371 EOF 8504 EOF
8372 if { (eval echo configure:8373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8505 if { (eval echo configure:8506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8373 rm -rf conftest* 8506 rm -rf conftest*
8374 eval "ac_cv_func_socket=yes" 8507 eval "ac_cv_func_socket=yes"
8375 else 8508 else
8376 echo "configure: failed program was:" >&5 8509 echo "configure: failed program was:" >&5
8377 cat conftest.$ac_ext >&5 8510 cat conftest.$ac_ext >&5
8382 8515
8383 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8516 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8384 echo "$ac_t""yes" 1>&6 8517 echo "$ac_t""yes" 1>&6
8385 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8518 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8386 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8519 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8387 echo "configure:8388: checking for netinet/in.h" >&5 8520 echo "configure:8521: checking for netinet/in.h" >&5
8388 8521
8389 cat > conftest.$ac_ext <<EOF 8522 cat > conftest.$ac_ext <<EOF
8390 #line 8391 "configure" 8523 #line 8524 "configure"
8391 #include "confdefs.h" 8524 #include "confdefs.h"
8392 #include <netinet/in.h> 8525 #include <netinet/in.h>
8393 EOF 8526 EOF
8394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8395 { (eval echo configure:8396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8528 { (eval echo configure:8529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8396 ac_err=`grep -v '^ *+' conftest.out` 8529 ac_err=`grep -v '^ *+' conftest.out`
8397 if test -z "$ac_err"; then 8530 if test -z "$ac_err"; then
8398 rm -rf conftest* 8531 rm -rf conftest*
8399 eval "ac_cv_header_$ac_safe=yes" 8532 eval "ac_cv_header_$ac_safe=yes"
8400 else 8533 else
8407 rm -f conftest* 8540 rm -f conftest*
8408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8409 echo "$ac_t""yes" 1>&6 8542 echo "$ac_t""yes" 1>&6
8410 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8543 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8411 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8544 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8412 echo "configure:8413: checking for arpa/inet.h" >&5 8545 echo "configure:8546: checking for arpa/inet.h" >&5
8413 8546
8414 cat > conftest.$ac_ext <<EOF 8547 cat > conftest.$ac_ext <<EOF
8415 #line 8416 "configure" 8548 #line 8549 "configure"
8416 #include "confdefs.h" 8549 #include "confdefs.h"
8417 #include <arpa/inet.h> 8550 #include <arpa/inet.h>
8418 EOF 8551 EOF
8419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8420 { (eval echo configure:8421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8553 { (eval echo configure:8554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8421 ac_err=`grep -v '^ *+' conftest.out` 8554 ac_err=`grep -v '^ *+' conftest.out`
8422 if test -z "$ac_err"; then 8555 if test -z "$ac_err"; then
8423 rm -rf conftest* 8556 rm -rf conftest*
8424 eval "ac_cv_header_$ac_safe=yes" 8557 eval "ac_cv_header_$ac_safe=yes"
8425 else 8558 else
8440 #define HAVE_SOCKETS 1 8573 #define HAVE_SOCKETS 1
8441 EOF 8574 EOF
8442 } 8575 }
8443 8576
8444 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8577 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8445 echo "configure:8446: checking "for sun_len member in struct sockaddr_un"" >&5 8578 echo "configure:8579: checking "for sun_len member in struct sockaddr_un"" >&5
8446 cat > conftest.$ac_ext <<EOF 8579 cat > conftest.$ac_ext <<EOF
8447 #line 8448 "configure" 8580 #line 8581 "configure"
8448 #include "confdefs.h" 8581 #include "confdefs.h"
8449 8582
8450 #include <sys/types.h> 8583 #include <sys/types.h>
8451 #include <sys/socket.h> 8584 #include <sys/socket.h>
8452 #include <sys/un.h> 8585 #include <sys/un.h>
8453 8586
8454 int main() { 8587 int main() {
8455 static struct sockaddr_un x; x.sun_len = 1; 8588 static struct sockaddr_un x; x.sun_len = 1;
8456 ; return 0; } 8589 ; return 0; }
8457 EOF 8590 EOF
8458 if { (eval echo configure:8459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8591 if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8459 rm -rf conftest* 8592 rm -rf conftest*
8460 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8593 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8461 Defining HAVE_SOCKADDR_SUN_LEN 8594 Defining HAVE_SOCKADDR_SUN_LEN
8462 EOF 8595 EOF
8463 cat >> confdefs.h <<\EOF 8596 cat >> confdefs.h <<\EOF
8484 echo "$ac_t""no" 1>&6 8617 echo "$ac_t""no" 1>&6
8485 fi 8618 fi
8486 8619
8487 8620
8488 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8621 echo $ac_n "checking for msgget""... $ac_c" 1>&6
8489 echo "configure:8490: checking for msgget" >&5 8622 echo "configure:8623: checking for msgget" >&5
8490 8623
8491 cat > conftest.$ac_ext <<EOF 8624 cat > conftest.$ac_ext <<EOF
8492 #line 8493 "configure" 8625 #line 8626 "configure"
8493 #include "confdefs.h" 8626 #include "confdefs.h"
8494 /* System header to define __stub macros and hopefully few prototypes, 8627 /* System header to define __stub macros and hopefully few prototypes,
8495 which can conflict with char msgget(); below. */ 8628 which can conflict with char msgget(); below. */
8496 #include <assert.h> 8629 #include <assert.h>
8497 /* Override any gcc2 internal prototype to avoid an error. */ 8630 /* Override any gcc2 internal prototype to avoid an error. */
8510 msgget(); 8643 msgget();
8511 #endif 8644 #endif
8512 8645
8513 ; return 0; } 8646 ; return 0; }
8514 EOF 8647 EOF
8515 if { (eval echo configure:8516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8648 if { (eval echo configure:8649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8516 rm -rf conftest* 8649 rm -rf conftest*
8517 eval "ac_cv_func_msgget=yes" 8650 eval "ac_cv_func_msgget=yes"
8518 else 8651 else
8519 echo "configure: failed program was:" >&5 8652 echo "configure: failed program was:" >&5
8520 cat conftest.$ac_ext >&5 8653 cat conftest.$ac_ext >&5
8525 8658
8526 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 8659 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
8527 echo "$ac_t""yes" 1>&6 8660 echo "$ac_t""yes" 1>&6
8528 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 8661 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
8529 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 8662 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
8530 echo "configure:8531: checking for sys/ipc.h" >&5 8663 echo "configure:8664: checking for sys/ipc.h" >&5
8531 8664
8532 cat > conftest.$ac_ext <<EOF 8665 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure" 8666 #line 8667 "configure"
8534 #include "confdefs.h" 8667 #include "confdefs.h"
8535 #include <sys/ipc.h> 8668 #include <sys/ipc.h>
8536 EOF 8669 EOF
8537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8538 { (eval echo configure:8539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8671 { (eval echo configure:8672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8539 ac_err=`grep -v '^ *+' conftest.out` 8672 ac_err=`grep -v '^ *+' conftest.out`
8540 if test -z "$ac_err"; then 8673 if test -z "$ac_err"; then
8541 rm -rf conftest* 8674 rm -rf conftest*
8542 eval "ac_cv_header_$ac_safe=yes" 8675 eval "ac_cv_header_$ac_safe=yes"
8543 else 8676 else
8550 rm -f conftest* 8683 rm -f conftest*
8551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8552 echo "$ac_t""yes" 1>&6 8685 echo "$ac_t""yes" 1>&6
8553 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 8686 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
8554 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 8687 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
8555 echo "configure:8556: checking for sys/msg.h" >&5 8688 echo "configure:8689: checking for sys/msg.h" >&5
8556 8689
8557 cat > conftest.$ac_ext <<EOF 8690 cat > conftest.$ac_ext <<EOF
8558 #line 8559 "configure" 8691 #line 8692 "configure"
8559 #include "confdefs.h" 8692 #include "confdefs.h"
8560 #include <sys/msg.h> 8693 #include <sys/msg.h>
8561 EOF 8694 EOF
8562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8563 { (eval echo configure:8564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8696 { (eval echo configure:8697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8564 ac_err=`grep -v '^ *+' conftest.out` 8697 ac_err=`grep -v '^ *+' conftest.out`
8565 if test -z "$ac_err"; then 8698 if test -z "$ac_err"; then
8566 rm -rf conftest* 8699 rm -rf conftest*
8567 eval "ac_cv_header_$ac_safe=yes" 8700 eval "ac_cv_header_$ac_safe=yes"
8568 else 8701 else
8596 fi 8729 fi
8597 8730
8598 8731
8599 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 8732 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
8600 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 8733 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
8601 echo "configure:8602: checking for dirent.h" >&5 8734 echo "configure:8735: checking for dirent.h" >&5
8602 8735
8603 cat > conftest.$ac_ext <<EOF 8736 cat > conftest.$ac_ext <<EOF
8604 #line 8605 "configure" 8737 #line 8738 "configure"
8605 #include "confdefs.h" 8738 #include "confdefs.h"
8606 #include <dirent.h> 8739 #include <dirent.h>
8607 EOF 8740 EOF
8608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8609 { (eval echo configure:8610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8742 { (eval echo configure:8743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8610 ac_err=`grep -v '^ *+' conftest.out` 8743 ac_err=`grep -v '^ *+' conftest.out`
8611 if test -z "$ac_err"; then 8744 if test -z "$ac_err"; then
8612 rm -rf conftest* 8745 rm -rf conftest*
8613 eval "ac_cv_header_$ac_safe=yes" 8746 eval "ac_cv_header_$ac_safe=yes"
8614 else 8747 else
8631 8764
8632 else 8765 else
8633 echo "$ac_t""no" 1>&6 8766 echo "$ac_t""no" 1>&6
8634 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 8767 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
8635 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 8768 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
8636 echo "configure:8637: checking for sys/dir.h" >&5 8769 echo "configure:8770: checking for sys/dir.h" >&5
8637 8770
8638 cat > conftest.$ac_ext <<EOF 8771 cat > conftest.$ac_ext <<EOF
8639 #line 8640 "configure" 8772 #line 8773 "configure"
8640 #include "confdefs.h" 8773 #include "confdefs.h"
8641 #include <sys/dir.h> 8774 #include <sys/dir.h>
8642 EOF 8775 EOF
8643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8644 { (eval echo configure:8645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8777 { (eval echo configure:8778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8645 ac_err=`grep -v '^ *+' conftest.out` 8778 ac_err=`grep -v '^ *+' conftest.out`
8646 if test -z "$ac_err"; then 8779 if test -z "$ac_err"; then
8647 rm -rf conftest* 8780 rm -rf conftest*
8648 eval "ac_cv_header_$ac_safe=yes" 8781 eval "ac_cv_header_$ac_safe=yes"
8649 else 8782 else
8672 fi 8805 fi
8673 8806
8674 8807
8675 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 8808 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
8676 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 8809 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
8677 echo "configure:8678: checking for nlist.h" >&5 8810 echo "configure:8811: checking for nlist.h" >&5
8678 8811
8679 cat > conftest.$ac_ext <<EOF 8812 cat > conftest.$ac_ext <<EOF
8680 #line 8681 "configure" 8813 #line 8814 "configure"
8681 #include "confdefs.h" 8814 #include "confdefs.h"
8682 #include <nlist.h> 8815 #include <nlist.h>
8683 EOF 8816 EOF
8684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8685 { (eval echo configure:8686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8818 { (eval echo configure:8819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8686 ac_err=`grep -v '^ *+' conftest.out` 8819 ac_err=`grep -v '^ *+' conftest.out`
8687 if test -z "$ac_err"; then 8820 if test -z "$ac_err"; then
8688 rm -rf conftest* 8821 rm -rf conftest*
8689 eval "ac_cv_header_$ac_safe=yes" 8822 eval "ac_cv_header_$ac_safe=yes"
8690 else 8823 else
8710 fi 8843 fi
8711 8844
8712 8845
8713 8846
8714 echo "checking "for sound support"" 1>&6 8847 echo "checking "for sound support"" 1>&6
8715 echo "configure:8716: checking "for sound support"" >&5 8848 echo "configure:8849: checking "for sound support"" >&5
8716 case "$with_sound" in 8849 case "$with_sound" in
8717 native | both ) with_native_sound=yes;; 8850 native | both ) with_native_sound=yes;;
8718 nas | no ) with_native_sound=no;; 8851 nas | no ) with_native_sound=no;;
8719 esac 8852 esac
8720 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 8853 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
8721 8854
8722 if test "$with_native_sound" != "no"; then 8855 if test "$with_native_sound" != "no"; then
8723 if test -n "$native_sound_lib"; then 8856 if test -n "$native_sound_lib"; then
8724 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 8857 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
8725 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 8858 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
8726 echo "configure:8727: checking for multimedia/audio_device.h" >&5 8859 echo "configure:8860: checking for multimedia/audio_device.h" >&5
8727 8860
8728 cat > conftest.$ac_ext <<EOF 8861 cat > conftest.$ac_ext <<EOF
8729 #line 8730 "configure" 8862 #line 8863 "configure"
8730 #include "confdefs.h" 8863 #include "confdefs.h"
8731 #include <multimedia/audio_device.h> 8864 #include <multimedia/audio_device.h>
8732 EOF 8865 EOF
8733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8734 { (eval echo configure:8735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8867 { (eval echo configure:8868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8735 ac_err=`grep -v '^ *+' conftest.out` 8868 ac_err=`grep -v '^ *+' conftest.out`
8736 if test -z "$ac_err"; then 8869 if test -z "$ac_err"; then
8737 rm -rf conftest* 8870 rm -rf conftest*
8738 eval "ac_cv_header_$ac_safe=yes" 8871 eval "ac_cv_header_$ac_safe=yes"
8739 else 8872 else
8777 case "$canonical" in 8910 case "$canonical" in
8778 *-sgi-* ) 8911 *-sgi-* )
8779 if test -z "$native_sound_lib"; then 8912 if test -z "$native_sound_lib"; then
8780 8913
8781 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 8914 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8782 echo "configure:8783: checking for ALopenport in -laudio" >&5 8915 echo "configure:8916: checking for ALopenport in -laudio" >&5
8783 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 8916 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8784 8917
8785 xe_check_libs=" -laudio " 8918 xe_check_libs=" -laudio "
8786 cat > conftest.$ac_ext <<EOF 8919 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure" 8920 #line 8921 "configure"
8788 #include "confdefs.h" 8921 #include "confdefs.h"
8789 /* Override any gcc2 internal prototype to avoid an error. */ 8922 /* Override any gcc2 internal prototype to avoid an error. */
8790 /* We use char because int might match the return type of a gcc2 8923 /* We use char because int might match the return type of a gcc2
8791 builtin and then its argument prototype would still apply. */ 8924 builtin and then its argument prototype would still apply. */
8792 char ALopenport(); 8925 char ALopenport();
8793 8926
8794 int main() { 8927 int main() {
8795 ALopenport() 8928 ALopenport()
8796 ; return 0; } 8929 ; return 0; }
8797 EOF 8930 EOF
8798 if { (eval echo configure:8799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8931 if { (eval echo configure:8932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8799 rm -rf conftest* 8932 rm -rf conftest*
8800 eval "ac_cv_lib_$ac_lib_var=yes" 8933 eval "ac_cv_lib_$ac_lib_var=yes"
8801 else 8934 else
8802 echo "configure: failed program was:" >&5 8935 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5 8936 cat conftest.$ac_ext >&5
8824 fi ;; 8957 fi ;;
8825 hppa*-hp-hpux* ) 8958 hppa*-hp-hpux* )
8826 if test -z "$native_sound_lib"; then 8959 if test -z "$native_sound_lib"; then
8827 8960
8828 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 8961 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
8829 echo "configure:8830: checking for AOpenAudio in -lAlib" >&5 8962 echo "configure:8963: checking for AOpenAudio in -lAlib" >&5
8830 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 8963 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
8831 8964
8832 xe_check_libs=" -lAlib " 8965 xe_check_libs=" -lAlib "
8833 cat > conftest.$ac_ext <<EOF 8966 cat > conftest.$ac_ext <<EOF
8834 #line 8835 "configure" 8967 #line 8968 "configure"
8835 #include "confdefs.h" 8968 #include "confdefs.h"
8836 /* Override any gcc2 internal prototype to avoid an error. */ 8969 /* Override any gcc2 internal prototype to avoid an error. */
8837 /* We use char because int might match the return type of a gcc2 8970 /* We use char because int might match the return type of a gcc2
8838 builtin and then its argument prototype would still apply. */ 8971 builtin and then its argument prototype would still apply. */
8839 char AOpenAudio(); 8972 char AOpenAudio();
8840 8973
8841 int main() { 8974 int main() {
8842 AOpenAudio() 8975 AOpenAudio()
8843 ; return 0; } 8976 ; return 0; }
8844 EOF 8977 EOF
8845 if { (eval echo configure:8846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8978 if { (eval echo configure:8979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8846 rm -rf conftest* 8979 rm -rf conftest*
8847 eval "ac_cv_lib_$ac_lib_var=yes" 8980 eval "ac_cv_lib_$ac_lib_var=yes"
8848 else 8981 else
8849 echo "configure: failed program was:" >&5 8982 echo "configure: failed program was:" >&5
8850 cat conftest.$ac_ext >&5 8983 cat conftest.$ac_ext >&5
8878 9011
8879 if test -z "$sound_found"; then 9012 if test -z "$sound_found"; then
8880 for dir in "machine" "sys" "linux"; do 9013 for dir in "machine" "sys" "linux"; do
8881 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 9014 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
8882 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 9015 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
8883 echo "configure:8884: checking for ${dir}/soundcard.h" >&5 9016 echo "configure:9017: checking for ${dir}/soundcard.h" >&5
8884 9017
8885 cat > conftest.$ac_ext <<EOF 9018 cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure" 9019 #line 9020 "configure"
8887 #include "confdefs.h" 9020 #include "confdefs.h"
8888 #include <${dir}/soundcard.h> 9021 #include <${dir}/soundcard.h>
8889 EOF 9022 EOF
8890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8891 { (eval echo configure:8892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9024 { (eval echo configure:9025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8892 ac_err=`grep -v '^ *+' conftest.out` 9025 ac_err=`grep -v '^ *+' conftest.out`
8893 if test -z "$ac_err"; then 9026 if test -z "$ac_err"; then
8894 rm -rf conftest* 9027 rm -rf conftest*
8895 eval "ac_cv_header_$ac_safe=yes" 9028 eval "ac_cv_header_$ac_safe=yes"
8896 else 9029 else
8956 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 9089 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
8957 echo " xemacs will be linked with \"nas.o\"" 9090 echo " xemacs will be linked with \"nas.o\""
8958 fi 9091 fi
8959 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 9092 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
8960 cat > conftest.$ac_ext <<EOF 9093 cat > conftest.$ac_ext <<EOF
8961 #line 8962 "configure" 9094 #line 9095 "configure"
8962 #include "confdefs.h" 9095 #include "confdefs.h"
8963 #include <audio/Xtutil.h> 9096 #include <audio/Xtutil.h>
8964 EOF 9097 EOF
8965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8966 egrep "AuXtErrorJump" >/dev/null 2>&1; then 9099 egrep "AuXtErrorJump" >/dev/null 2>&1; then
8983 9116
8984 test -z "$with_tty" && with_tty=yes 9117 test -z "$with_tty" && with_tty=yes
8985 9118
8986 if test "$with_tty" = "yes" ; then 9119 if test "$with_tty" = "yes" ; then
8987 echo "checking for TTY-related features" 1>&6 9120 echo "checking for TTY-related features" 1>&6
8988 echo "configure:8989: checking for TTY-related features" >&5 9121 echo "configure:9122: checking for TTY-related features" >&5
8989 { test "$extra_verbose" = "yes" && cat << \EOF 9122 { test "$extra_verbose" = "yes" && cat << \EOF
8990 Defining HAVE_TTY 9123 Defining HAVE_TTY
8991 EOF 9124 EOF
8992 cat >> confdefs.h <<\EOF 9125 cat >> confdefs.h <<\EOF
8993 #define HAVE_TTY 1 9126 #define HAVE_TTY 1
8999 fi 9132 fi
9000 9133
9001 if test -z "$with_ncurses"; then 9134 if test -z "$with_ncurses"; then
9002 9135
9003 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9136 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
9004 echo "configure:9005: checking for tgetent in -lncurses" >&5 9137 echo "configure:9138: checking for tgetent in -lncurses" >&5
9005 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9138 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
9006 9139
9007 xe_check_libs=" -lncurses " 9140 xe_check_libs=" -lncurses "
9008 cat > conftest.$ac_ext <<EOF 9141 cat > conftest.$ac_ext <<EOF
9009 #line 9010 "configure" 9142 #line 9143 "configure"
9010 #include "confdefs.h" 9143 #include "confdefs.h"
9011 /* Override any gcc2 internal prototype to avoid an error. */ 9144 /* Override any gcc2 internal prototype to avoid an error. */
9012 /* We use char because int might match the return type of a gcc2 9145 /* We use char because int might match the return type of a gcc2
9013 builtin and then its argument prototype would still apply. */ 9146 builtin and then its argument prototype would still apply. */
9014 char tgetent(); 9147 char tgetent();
9015 9148
9016 int main() { 9149 int main() {
9017 tgetent() 9150 tgetent()
9018 ; return 0; } 9151 ; return 0; }
9019 EOF 9152 EOF
9020 if { (eval echo configure:9021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9153 if { (eval echo configure:9154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9021 rm -rf conftest* 9154 rm -rf conftest*
9022 eval "ac_cv_lib_$ac_lib_var=yes" 9155 eval "ac_cv_lib_$ac_lib_var=yes"
9023 else 9156 else
9024 echo "configure: failed program was:" >&5 9157 echo "configure: failed program was:" >&5
9025 cat conftest.$ac_ext >&5 9158 cat conftest.$ac_ext >&5
9048 EOF 9181 EOF
9049 } 9182 }
9050 9183
9051 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9184 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9052 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9185 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9053 echo "configure:9054: checking for ncurses/curses.h" >&5 9186 echo "configure:9187: checking for ncurses/curses.h" >&5
9054 9187
9055 cat > conftest.$ac_ext <<EOF 9188 cat > conftest.$ac_ext <<EOF
9056 #line 9057 "configure" 9189 #line 9190 "configure"
9057 #include "confdefs.h" 9190 #include "confdefs.h"
9058 #include <ncurses/curses.h> 9191 #include <ncurses/curses.h>
9059 EOF 9192 EOF
9060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9061 { (eval echo configure:9062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9194 { (eval echo configure:9195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9062 ac_err=`grep -v '^ *+' conftest.out` 9195 ac_err=`grep -v '^ *+' conftest.out`
9063 if test -z "$ac_err"; then 9196 if test -z "$ac_err"; then
9064 rm -rf conftest* 9197 rm -rf conftest*
9065 eval "ac_cv_header_$ac_safe=yes" 9198 eval "ac_cv_header_$ac_safe=yes"
9066 else 9199 else
9078 echo "$ac_t""no" 1>&6 9211 echo "$ac_t""no" 1>&6
9079 fi 9212 fi
9080 9213
9081 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9214 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9082 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9215 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9083 echo "configure:9084: checking for ncurses/term.h" >&5 9216 echo "configure:9217: checking for ncurses/term.h" >&5
9084 9217
9085 cat > conftest.$ac_ext <<EOF 9218 cat > conftest.$ac_ext <<EOF
9086 #line 9087 "configure" 9219 #line 9220 "configure"
9087 #include "confdefs.h" 9220 #include "confdefs.h"
9088 #include <ncurses/term.h> 9221 #include <ncurses/term.h>
9089 EOF 9222 EOF
9090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9091 { (eval echo configure:9092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9224 { (eval echo configure:9225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9092 ac_err=`grep -v '^ *+' conftest.out` 9225 ac_err=`grep -v '^ *+' conftest.out`
9093 if test -z "$ac_err"; then 9226 if test -z "$ac_err"; then
9094 rm -rf conftest* 9227 rm -rf conftest*
9095 eval "ac_cv_header_$ac_safe=yes" 9228 eval "ac_cv_header_$ac_safe=yes"
9096 else 9229 else
9116 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9249 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9117 save_c_switch_site="$c_switch_site" 9250 save_c_switch_site="$c_switch_site"
9118 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9251 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9119 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9252 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9120 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9253 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9121 echo "configure:9122: checking for ncurses/curses.h" >&5 9254 echo "configure:9255: checking for ncurses/curses.h" >&5
9122 9255
9123 cat > conftest.$ac_ext <<EOF 9256 cat > conftest.$ac_ext <<EOF
9124 #line 9125 "configure" 9257 #line 9258 "configure"
9125 #include "confdefs.h" 9258 #include "confdefs.h"
9126 #include <ncurses/curses.h> 9259 #include <ncurses/curses.h>
9127 EOF 9260 EOF
9128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9129 { (eval echo configure:9130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9262 { (eval echo configure:9263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9130 ac_err=`grep -v '^ *+' conftest.out` 9263 ac_err=`grep -v '^ *+' conftest.out`
9131 if test -z "$ac_err"; then 9264 if test -z "$ac_err"; then
9132 rm -rf conftest* 9265 rm -rf conftest*
9133 eval "ac_cv_header_$ac_safe=yes" 9266 eval "ac_cv_header_$ac_safe=yes"
9134 else 9267 else
9159 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9292 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9160 else 9293 else
9161 for lib in curses termlib termcap; do 9294 for lib in curses termlib termcap; do
9162 9295
9163 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9296 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9164 echo "configure:9165: checking for tgetent in -l$lib" >&5 9297 echo "configure:9298: checking for tgetent in -l$lib" >&5
9165 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9298 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9166 9299
9167 xe_check_libs=" -l$lib " 9300 xe_check_libs=" -l$lib "
9168 cat > conftest.$ac_ext <<EOF 9301 cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure" 9302 #line 9303 "configure"
9170 #include "confdefs.h" 9303 #include "confdefs.h"
9171 /* Override any gcc2 internal prototype to avoid an error. */ 9304 /* Override any gcc2 internal prototype to avoid an error. */
9172 /* We use char because int might match the return type of a gcc2 9305 /* We use char because int might match the return type of a gcc2
9173 builtin and then its argument prototype would still apply. */ 9306 builtin and then its argument prototype would still apply. */
9174 char tgetent(); 9307 char tgetent();
9175 9308
9176 int main() { 9309 int main() {
9177 tgetent() 9310 tgetent()
9178 ; return 0; } 9311 ; return 0; }
9179 EOF 9312 EOF
9180 if { (eval echo configure:9181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9313 if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9181 rm -rf conftest* 9314 rm -rf conftest*
9182 eval "ac_cv_lib_$ac_lib_var=yes" 9315 eval "ac_cv_lib_$ac_lib_var=yes"
9183 else 9316 else
9184 echo "configure: failed program was:" >&5 9317 echo "configure: failed program was:" >&5
9185 cat conftest.$ac_ext >&5 9318 cat conftest.$ac_ext >&5
9206 if test -n "$libs_termcap"; then 9339 if test -n "$libs_termcap"; then
9207 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9340 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9208 else 9341 else
9209 9342
9210 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9343 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9211 echo "configure:9212: checking for tgetent in -lcurses" >&5 9344 echo "configure:9345: checking for tgetent in -lcurses" >&5
9212 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9345 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9213 9346
9214 xe_check_libs=" -lcurses " 9347 xe_check_libs=" -lcurses "
9215 cat > conftest.$ac_ext <<EOF 9348 cat > conftest.$ac_ext <<EOF
9216 #line 9217 "configure" 9349 #line 9350 "configure"
9217 #include "confdefs.h" 9350 #include "confdefs.h"
9218 /* Override any gcc2 internal prototype to avoid an error. */ 9351 /* Override any gcc2 internal prototype to avoid an error. */
9219 /* We use char because int might match the return type of a gcc2 9352 /* We use char because int might match the return type of a gcc2
9220 builtin and then its argument prototype would still apply. */ 9353 builtin and then its argument prototype would still apply. */
9221 char tgetent(); 9354 char tgetent();
9222 9355
9223 int main() { 9356 int main() {
9224 tgetent() 9357 tgetent()
9225 ; return 0; } 9358 ; return 0; }
9226 EOF 9359 EOF
9227 if { (eval echo configure:9228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9360 if { (eval echo configure:9361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9228 rm -rf conftest* 9361 rm -rf conftest*
9229 eval "ac_cv_lib_$ac_lib_var=yes" 9362 eval "ac_cv_lib_$ac_lib_var=yes"
9230 else 9363 else
9231 echo "configure: failed program was:" >&5 9364 echo "configure: failed program was:" >&5
9232 cat conftest.$ac_ext >&5 9365 cat conftest.$ac_ext >&5
9240 echo "$ac_t""yes" 1>&6 9373 echo "$ac_t""yes" 1>&6
9241 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9374 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9242 else 9375 else
9243 echo "$ac_t""no" 1>&6 9376 echo "$ac_t""no" 1>&6
9244 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9377 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9245 echo "configure:9246: checking for tgetent in -ltermcap" >&5 9378 echo "configure:9379: checking for tgetent in -ltermcap" >&5
9246 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9379 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9247 9380
9248 xe_check_libs=" -ltermcap " 9381 xe_check_libs=" -ltermcap "
9249 cat > conftest.$ac_ext <<EOF 9382 cat > conftest.$ac_ext <<EOF
9250 #line 9251 "configure" 9383 #line 9384 "configure"
9251 #include "confdefs.h" 9384 #include "confdefs.h"
9252 /* Override any gcc2 internal prototype to avoid an error. */ 9385 /* Override any gcc2 internal prototype to avoid an error. */
9253 /* We use char because int might match the return type of a gcc2 9386 /* We use char because int might match the return type of a gcc2
9254 builtin and then its argument prototype would still apply. */ 9387 builtin and then its argument prototype would still apply. */
9255 char tgetent(); 9388 char tgetent();
9256 9389
9257 int main() { 9390 int main() {
9258 tgetent() 9391 tgetent()
9259 ; return 0; } 9392 ; return 0; }
9260 EOF 9393 EOF
9261 if { (eval echo configure:9262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9394 if { (eval echo configure:9395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9262 rm -rf conftest* 9395 rm -rf conftest*
9263 eval "ac_cv_lib_$ac_lib_var=yes" 9396 eval "ac_cv_lib_$ac_lib_var=yes"
9264 else 9397 else
9265 echo "configure: failed program was:" >&5 9398 echo "configure: failed program was:" >&5
9266 cat conftest.$ac_ext >&5 9399 cat conftest.$ac_ext >&5
9304 } 9437 }
9305 9438
9306 9439
9307 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9440 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9308 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9441 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9309 echo "configure:9310: checking for gpm.h" >&5 9442 echo "configure:9443: checking for gpm.h" >&5
9310 9443
9311 cat > conftest.$ac_ext <<EOF 9444 cat > conftest.$ac_ext <<EOF
9312 #line 9313 "configure" 9445 #line 9446 "configure"
9313 #include "confdefs.h" 9446 #include "confdefs.h"
9314 #include <gpm.h> 9447 #include <gpm.h>
9315 EOF 9448 EOF
9316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9317 { (eval echo configure:9318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9450 { (eval echo configure:9451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9318 ac_err=`grep -v '^ *+' conftest.out` 9451 ac_err=`grep -v '^ *+' conftest.out`
9319 if test -z "$ac_err"; then 9452 if test -z "$ac_err"; then
9320 rm -rf conftest* 9453 rm -rf conftest*
9321 eval "ac_cv_header_$ac_safe=yes" 9454 eval "ac_cv_header_$ac_safe=yes"
9322 else 9455 else
9335 with_gpm=no 9468 with_gpm=no
9336 fi 9469 fi
9337 } 9470 }
9338 test -z "$with_gpm" && { 9471 test -z "$with_gpm" && {
9339 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9472 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9340 echo "configure:9341: checking for Gpm_Open in -lgpm" >&5 9473 echo "configure:9474: checking for Gpm_Open in -lgpm" >&5
9341 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9474 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9342 9475
9343 xe_check_libs=" -lgpm " 9476 xe_check_libs=" -lgpm "
9344 cat > conftest.$ac_ext <<EOF 9477 cat > conftest.$ac_ext <<EOF
9345 #line 9346 "configure" 9478 #line 9479 "configure"
9346 #include "confdefs.h" 9479 #include "confdefs.h"
9347 /* Override any gcc2 internal prototype to avoid an error. */ 9480 /* Override any gcc2 internal prototype to avoid an error. */
9348 /* We use char because int might match the return type of a gcc2 9481 /* We use char because int might match the return type of a gcc2
9349 builtin and then its argument prototype would still apply. */ 9482 builtin and then its argument prototype would still apply. */
9350 char Gpm_Open(); 9483 char Gpm_Open();
9351 9484
9352 int main() { 9485 int main() {
9353 Gpm_Open() 9486 Gpm_Open()
9354 ; return 0; } 9487 ; return 0; }
9355 EOF 9488 EOF
9356 if { (eval echo configure:9357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9489 if { (eval echo configure:9490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9357 rm -rf conftest* 9490 rm -rf conftest*
9358 eval "ac_cv_lib_$ac_lib_var=yes" 9491 eval "ac_cv_lib_$ac_lib_var=yes"
9359 else 9492 else
9360 echo "configure: failed program was:" >&5 9493 echo "configure: failed program was:" >&5
9361 cat conftest.$ac_ext >&5 9494 cat conftest.$ac_ext >&5
9400 echo " xemacs will be linked with \"event-unixoid.o\"" 9533 echo " xemacs will be linked with \"event-unixoid.o\""
9401 fi 9534 fi
9402 9535
9403 9536
9404 echo "checking for database support" 1>&6 9537 echo "checking for database support" 1>&6
9405 echo "configure:9406: checking for database support" >&5 9538 echo "configure:9539: checking for database support" >&5
9406 9539
9407 if test "$with_database_gnudbm" != "no"; then 9540 if test "$with_database_gnudbm" != "no"; then
9408 9541
9409 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9542 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
9410 echo "configure:9411: checking for dbm_open in -lgdbm" >&5 9543 echo "configure:9544: checking for dbm_open in -lgdbm" >&5
9411 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9544 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
9412 9545
9413 xe_check_libs=" -lgdbm " 9546 xe_check_libs=" -lgdbm "
9414 cat > conftest.$ac_ext <<EOF 9547 cat > conftest.$ac_ext <<EOF
9415 #line 9416 "configure" 9548 #line 9549 "configure"
9416 #include "confdefs.h" 9549 #include "confdefs.h"
9417 /* Override any gcc2 internal prototype to avoid an error. */ 9550 /* Override any gcc2 internal prototype to avoid an error. */
9418 /* We use char because int might match the return type of a gcc2 9551 /* We use char because int might match the return type of a gcc2
9419 builtin and then its argument prototype would still apply. */ 9552 builtin and then its argument prototype would still apply. */
9420 char dbm_open(); 9553 char dbm_open();
9421 9554
9422 int main() { 9555 int main() {
9423 dbm_open() 9556 dbm_open()
9424 ; return 0; } 9557 ; return 0; }
9425 EOF 9558 EOF
9426 if { (eval echo configure:9427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9559 if { (eval echo configure:9560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9427 rm -rf conftest* 9560 rm -rf conftest*
9428 eval "ac_cv_lib_$ac_lib_var=yes" 9561 eval "ac_cv_lib_$ac_lib_var=yes"
9429 else 9562 else
9430 echo "configure: failed program was:" >&5 9563 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5 9564 cat conftest.$ac_ext >&5
9443 fi 9576 fi
9444 9577
9445 9578
9446 if test "$with_database_gnudbm" != "yes"; then 9579 if test "$with_database_gnudbm" != "yes"; then
9447 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9580 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9448 echo "configure:9449: checking for dbm_open" >&5 9581 echo "configure:9582: checking for dbm_open" >&5
9449 9582
9450 cat > conftest.$ac_ext <<EOF 9583 cat > conftest.$ac_ext <<EOF
9451 #line 9452 "configure" 9584 #line 9585 "configure"
9452 #include "confdefs.h" 9585 #include "confdefs.h"
9453 /* System header to define __stub macros and hopefully few prototypes, 9586 /* System header to define __stub macros and hopefully few prototypes,
9454 which can conflict with char dbm_open(); below. */ 9587 which can conflict with char dbm_open(); below. */
9455 #include <assert.h> 9588 #include <assert.h>
9456 /* Override any gcc2 internal prototype to avoid an error. */ 9589 /* Override any gcc2 internal prototype to avoid an error. */
9469 dbm_open(); 9602 dbm_open();
9470 #endif 9603 #endif
9471 9604
9472 ; return 0; } 9605 ; return 0; }
9473 EOF 9606 EOF
9474 if { (eval echo configure:9475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9475 rm -rf conftest* 9608 rm -rf conftest*
9476 eval "ac_cv_func_dbm_open=yes" 9609 eval "ac_cv_func_dbm_open=yes"
9477 else 9610 else
9478 echo "configure: failed program was:" >&5 9611 echo "configure: failed program was:" >&5
9479 cat conftest.$ac_ext >&5 9612 cat conftest.$ac_ext >&5
9505 fi 9638 fi
9506 fi 9639 fi
9507 9640
9508 if test "$with_database_dbm" != "no"; then 9641 if test "$with_database_dbm" != "no"; then
9509 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9642 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9510 echo "configure:9511: checking for dbm_open" >&5 9643 echo "configure:9644: checking for dbm_open" >&5
9511 9644
9512 cat > conftest.$ac_ext <<EOF 9645 cat > conftest.$ac_ext <<EOF
9513 #line 9514 "configure" 9646 #line 9647 "configure"
9514 #include "confdefs.h" 9647 #include "confdefs.h"
9515 /* System header to define __stub macros and hopefully few prototypes, 9648 /* System header to define __stub macros and hopefully few prototypes,
9516 which can conflict with char dbm_open(); below. */ 9649 which can conflict with char dbm_open(); below. */
9517 #include <assert.h> 9650 #include <assert.h>
9518 /* Override any gcc2 internal prototype to avoid an error. */ 9651 /* Override any gcc2 internal prototype to avoid an error. */
9531 dbm_open(); 9664 dbm_open();
9532 #endif 9665 #endif
9533 9666
9534 ; return 0; } 9667 ; return 0; }
9535 EOF 9668 EOF
9536 if { (eval echo configure:9537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9669 if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9537 rm -rf conftest* 9670 rm -rf conftest*
9538 eval "ac_cv_func_dbm_open=yes" 9671 eval "ac_cv_func_dbm_open=yes"
9539 else 9672 else
9540 echo "configure: failed program was:" >&5 9673 echo "configure: failed program was:" >&5
9541 cat conftest.$ac_ext >&5 9674 cat conftest.$ac_ext >&5
9552 fi 9685 fi
9553 9686
9554 if test "$need_libdbm" != "no"; then 9687 if test "$need_libdbm" != "no"; then
9555 9688
9556 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 9689 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9557 echo "configure:9558: checking for dbm_open in -ldbm" >&5 9690 echo "configure:9691: checking for dbm_open in -ldbm" >&5
9558 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 9691 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9559 9692
9560 xe_check_libs=" -ldbm " 9693 xe_check_libs=" -ldbm "
9561 cat > conftest.$ac_ext <<EOF 9694 cat > conftest.$ac_ext <<EOF
9562 #line 9563 "configure" 9695 #line 9696 "configure"
9563 #include "confdefs.h" 9696 #include "confdefs.h"
9564 /* Override any gcc2 internal prototype to avoid an error. */ 9697 /* Override any gcc2 internal prototype to avoid an error. */
9565 /* We use char because int might match the return type of a gcc2 9698 /* We use char because int might match the return type of a gcc2
9566 builtin and then its argument prototype would still apply. */ 9699 builtin and then its argument prototype would still apply. */
9567 char dbm_open(); 9700 char dbm_open();
9568 9701
9569 int main() { 9702 int main() {
9570 dbm_open() 9703 dbm_open()
9571 ; return 0; } 9704 ; return 0; }
9572 EOF 9705 EOF
9573 if { (eval echo configure:9574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9706 if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9574 rm -rf conftest* 9707 rm -rf conftest*
9575 eval "ac_cv_lib_$ac_lib_var=yes" 9708 eval "ac_cv_lib_$ac_lib_var=yes"
9576 else 9709 else
9577 echo "configure: failed program was:" >&5 9710 echo "configure: failed program was:" >&5
9578 cat conftest.$ac_ext >&5 9711 cat conftest.$ac_ext >&5
9605 fi 9738 fi
9606 fi 9739 fi
9607 9740
9608 if test "$with_database_berkdb" != "no"; then 9741 if test "$with_database_berkdb" != "no"; then
9609 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 9742 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9610 echo "configure:9611: checking for dbopen" >&5 9743 echo "configure:9744: checking for dbopen" >&5
9611 9744
9612 cat > conftest.$ac_ext <<EOF 9745 cat > conftest.$ac_ext <<EOF
9613 #line 9614 "configure" 9746 #line 9747 "configure"
9614 #include "confdefs.h" 9747 #include "confdefs.h"
9615 /* System header to define __stub macros and hopefully few prototypes, 9748 /* System header to define __stub macros and hopefully few prototypes,
9616 which can conflict with char dbopen(); below. */ 9749 which can conflict with char dbopen(); below. */
9617 #include <assert.h> 9750 #include <assert.h>
9618 /* Override any gcc2 internal prototype to avoid an error. */ 9751 /* Override any gcc2 internal prototype to avoid an error. */
9631 dbopen(); 9764 dbopen();
9632 #endif 9765 #endif
9633 9766
9634 ; return 0; } 9767 ; return 0; }
9635 EOF 9768 EOF
9636 if { (eval echo configure:9637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9769 if { (eval echo configure:9770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9637 rm -rf conftest* 9770 rm -rf conftest*
9638 eval "ac_cv_func_dbopen=yes" 9771 eval "ac_cv_func_dbopen=yes"
9639 else 9772 else
9640 echo "configure: failed program was:" >&5 9773 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5 9774 cat conftest.$ac_ext >&5
9652 fi 9785 fi
9653 9786
9654 if test "$need_libdb" != "no"; then 9787 if test "$need_libdb" != "no"; then
9655 9788
9656 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 9789 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9657 echo "configure:9658: checking for dbopen in -ldb" >&5 9790 echo "configure:9791: checking for dbopen in -ldb" >&5
9658 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9791 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9659 9792
9660 xe_check_libs=" -ldb " 9793 xe_check_libs=" -ldb "
9661 cat > conftest.$ac_ext <<EOF 9794 cat > conftest.$ac_ext <<EOF
9662 #line 9663 "configure" 9795 #line 9796 "configure"
9663 #include "confdefs.h" 9796 #include "confdefs.h"
9664 /* Override any gcc2 internal prototype to avoid an error. */ 9797 /* Override any gcc2 internal prototype to avoid an error. */
9665 /* We use char because int might match the return type of a gcc2 9798 /* We use char because int might match the return type of a gcc2
9666 builtin and then its argument prototype would still apply. */ 9799 builtin and then its argument prototype would still apply. */
9667 char dbopen(); 9800 char dbopen();
9668 9801
9669 int main() { 9802 int main() {
9670 dbopen() 9803 dbopen()
9671 ; return 0; } 9804 ; return 0; }
9672 EOF 9805 EOF
9673 if { (eval echo configure:9674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9806 if { (eval echo configure:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9674 rm -rf conftest* 9807 rm -rf conftest*
9675 eval "ac_cv_lib_$ac_lib_var=yes" 9808 eval "ac_cv_lib_$ac_lib_var=yes"
9676 else 9809 else
9677 echo "configure: failed program was:" >&5 9810 echo "configure: failed program was:" >&5
9678 cat conftest.$ac_ext >&5 9811 cat conftest.$ac_ext >&5
9692 9825
9693 fi 9826 fi
9694 if test "$with_database_berkdb" = "yes"; then 9827 if test "$with_database_berkdb" = "yes"; then
9695 for path in "db/db.h" "db.h"; do 9828 for path in "db/db.h" "db.h"; do
9696 cat > conftest.$ac_ext <<EOF 9829 cat > conftest.$ac_ext <<EOF
9697 #line 9698 "configure" 9830 #line 9831 "configure"
9698 #include "confdefs.h" 9831 #include "confdefs.h"
9699 #ifdef HAVE_INTTYPES_H 9832 #ifdef HAVE_INTTYPES_H
9700 #define __BIT_TYPES_DEFINED__ 9833 #define __BIT_TYPES_DEFINED__
9701 #include <inttypes.h> 9834 #include <inttypes.h>
9702 typedef uint8_t u_int8_t; 9835 typedef uint8_t u_int8_t;
9710 9843
9711 int main() { 9844 int main() {
9712 9845
9713 ; return 0; } 9846 ; return 0; }
9714 EOF 9847 EOF
9715 if { (eval echo configure:9716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9848 if { (eval echo configure:9849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9716 rm -rf conftest* 9849 rm -rf conftest*
9717 db_h_path="$path"; break 9850 db_h_path="$path"; break
9718 else 9851 else
9719 echo "configure: failed program was:" >&5 9852 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5 9853 cat conftest.$ac_ext >&5
9762 fi 9895 fi
9763 9896
9764 if test "$with_socks" = "yes"; then 9897 if test "$with_socks" = "yes"; then
9765 9898
9766 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9899 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9767 echo "configure:9768: checking for SOCKSinit in -lsocks" >&5 9900 echo "configure:9901: checking for SOCKSinit in -lsocks" >&5
9768 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9901 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9769 9902
9770 xe_check_libs=" -lsocks " 9903 xe_check_libs=" -lsocks "
9771 cat > conftest.$ac_ext <<EOF 9904 cat > conftest.$ac_ext <<EOF
9772 #line 9773 "configure" 9905 #line 9906 "configure"
9773 #include "confdefs.h" 9906 #include "confdefs.h"
9774 /* Override any gcc2 internal prototype to avoid an error. */ 9907 /* Override any gcc2 internal prototype to avoid an error. */
9775 /* We use char because int might match the return type of a gcc2 9908 /* We use char because int might match the return type of a gcc2
9776 builtin and then its argument prototype would still apply. */ 9909 builtin and then its argument prototype would still apply. */
9777 char SOCKSinit(); 9910 char SOCKSinit();
9778 9911
9779 int main() { 9912 int main() {
9780 SOCKSinit() 9913 SOCKSinit()
9781 ; return 0; } 9914 ; return 0; }
9782 EOF 9915 EOF
9783 if { (eval echo configure:9784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9916 if { (eval echo configure:9917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9784 rm -rf conftest* 9917 rm -rf conftest*
9785 eval "ac_cv_lib_$ac_lib_var=yes" 9918 eval "ac_cv_lib_$ac_lib_var=yes"
9786 else 9919 else
9787 echo "configure: failed program was:" >&5 9920 echo "configure: failed program was:" >&5
9788 cat conftest.$ac_ext >&5 9921 cat conftest.$ac_ext >&5