comparison configure @ 294:4b85ae5eabfb r21-0b45

Import from CVS: tag r21-0b45
author cvs
date Mon, 13 Aug 2007 10:38:01 +0200
parents c9fe270a4101
children 5a79be0ef6a8
comparison
equal deleted inserted replaced
293:403535bfea94 294:4b85ae5eabfb
2391 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi 2391 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2392 done 2392 done
2393 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2393 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2394 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2394 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2395 done 2395 done
2396
2397 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2398 echo "configure:2399: checking for terminateAndUnload in -lC" >&5
2399 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2400
2401 xe_check_libs=" -lC "
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 /* Override any gcc2 internal prototype to avoid an error. */
2406 /* We use char because int might match the return type of a gcc2
2407 builtin and then its argument prototype would still apply. */
2408 char terminateAndUnload();
2409
2410 int main() {
2411 terminateAndUnload()
2412 ; return 0; }
2413 EOF
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2415 rm -rf conftest*
2416 eval "ac_cv_lib_$ac_lib_var=yes"
2417 else
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2420 rm -rf conftest*
2421 eval "ac_cv_lib_$ac_lib_var=no"
2422 fi
2423 rm -f conftest*
2424 xe_check_libs=""
2425
2426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
2427 echo "$ac_t""yes" 1>&6
2428 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
2429 else
2430 echo "$ac_t""no" 1>&6
2431 fi
2432
2433
2396 fi 2434 fi
2397 elif test -n "$ld_text_start_addr"; then 2435 elif test -n "$ld_text_start_addr"; then
2398 start_flags="-T $ld_text_start_addr -e __start" 2436 start_flags="-T $ld_text_start_addr -e __start"
2399 fi 2437 fi
2400 2438
2455 esac 2493 esac
2456 fi 2494 fi
2457 2495
2458 if test "$add_runtime_path" = "yes"; then 2496 if test "$add_runtime_path" = "yes"; then
2459 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2497 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2460 echo "configure:2461: checking "for runtime libraries flag"" >&5 2498 echo "configure:2499: checking "for runtime libraries flag"" >&5
2461 dash_r="" 2499 dash_r=""
2462 for try_dash_r in "-R" "-R " "-rpath "; do 2500 for try_dash_r in "-R" "-R " "-rpath "; do
2463 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2501 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2464 2502
2465 if test "$GCC" = "yes"; then 2503 if test "$GCC" = "yes"; then
2473 esac 2511 esac
2474 shift 2512 shift
2475 done 2513 done
2476 fi 2514 fi
2477 cat > conftest.$ac_ext <<EOF 2515 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure" 2516 #line 2517 "configure"
2479 #include "confdefs.h" 2517 #include "confdefs.h"
2480 2518
2481 int main() { 2519 int main() {
2482 2520
2483 ; return 0; } 2521 ; return 0; }
2484 EOF 2522 EOF
2485 if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2486 rm -rf conftest* 2524 rm -rf conftest*
2487 dash_r="$try_dash_r" 2525 dash_r="$try_dash_r"
2488 else 2526 else
2489 echo "configure: failed program was:" >&5 2527 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5 2528 cat conftest.$ac_ext >&5
2580 else 2618 else
2581 doug_lea_malloc=no 2619 doug_lea_malloc=no
2582 fi 2620 fi
2583 after_morecore_hook_exists=yes 2621 after_morecore_hook_exists=yes
2584 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2622 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2585 echo "configure:2586: checking for malloc_get_state" >&5 2623 echo "configure:2624: checking for malloc_get_state" >&5
2586 2624
2587 cat > conftest.$ac_ext <<EOF 2625 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure" 2626 #line 2627 "configure"
2589 #include "confdefs.h" 2627 #include "confdefs.h"
2590 /* System header to define __stub macros and hopefully few prototypes, 2628 /* System header to define __stub macros and hopefully few prototypes,
2591 which can conflict with char malloc_get_state(); below. */ 2629 which can conflict with char malloc_get_state(); below. */
2592 #include <assert.h> 2630 #include <assert.h>
2593 /* Override any gcc2 internal prototype to avoid an error. */ 2631 /* Override any gcc2 internal prototype to avoid an error. */
2606 malloc_get_state(); 2644 malloc_get_state();
2607 #endif 2645 #endif
2608 2646
2609 ; return 0; } 2647 ; return 0; }
2610 EOF 2648 EOF
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2649 if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2612 rm -rf conftest* 2650 rm -rf conftest*
2613 eval "ac_cv_func_malloc_get_state=yes" 2651 eval "ac_cv_func_malloc_get_state=yes"
2614 else 2652 else
2615 echo "configure: failed program was:" >&5 2653 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5 2654 cat conftest.$ac_ext >&5
2626 echo "$ac_t""no" 1>&6 2664 echo "$ac_t""no" 1>&6
2627 doug_lea_malloc=no 2665 doug_lea_malloc=no
2628 fi 2666 fi
2629 2667
2630 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2668 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2631 echo "configure:2632: checking for malloc_set_state" >&5 2669 echo "configure:2670: checking for malloc_set_state" >&5
2632 2670
2633 cat > conftest.$ac_ext <<EOF 2671 cat > conftest.$ac_ext <<EOF
2634 #line 2635 "configure" 2672 #line 2673 "configure"
2635 #include "confdefs.h" 2673 #include "confdefs.h"
2636 /* System header to define __stub macros and hopefully few prototypes, 2674 /* System header to define __stub macros and hopefully few prototypes,
2637 which can conflict with char malloc_set_state(); below. */ 2675 which can conflict with char malloc_set_state(); below. */
2638 #include <assert.h> 2676 #include <assert.h>
2639 /* Override any gcc2 internal prototype to avoid an error. */ 2677 /* Override any gcc2 internal prototype to avoid an error. */
2652 malloc_set_state(); 2690 malloc_set_state();
2653 #endif 2691 #endif
2654 2692
2655 ; return 0; } 2693 ; return 0; }
2656 EOF 2694 EOF
2657 if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2695 if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2658 rm -rf conftest* 2696 rm -rf conftest*
2659 eval "ac_cv_func_malloc_set_state=yes" 2697 eval "ac_cv_func_malloc_set_state=yes"
2660 else 2698 else
2661 echo "configure: failed program was:" >&5 2699 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5 2700 cat conftest.$ac_ext >&5
2672 echo "$ac_t""no" 1>&6 2710 echo "$ac_t""no" 1>&6
2673 doug_lea_malloc=no 2711 doug_lea_malloc=no
2674 fi 2712 fi
2675 2713
2676 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2714 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2677 echo "configure:2678: checking whether __after_morecore_hook exists" >&5 2715 echo "configure:2716: checking whether __after_morecore_hook exists" >&5
2678 cat > conftest.$ac_ext <<EOF 2716 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure" 2717 #line 2718 "configure"
2680 #include "confdefs.h" 2718 #include "confdefs.h"
2681 extern void (* __after_morecore_hook)(); 2719 extern void (* __after_morecore_hook)();
2682 int main() { 2720 int main() {
2683 __after_morecore_hook = 0 2721 __after_morecore_hook = 0
2684 ; return 0; } 2722 ; return 0; }
2685 EOF 2723 EOF
2686 if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2687 rm -rf conftest* 2725 rm -rf conftest*
2688 echo "$ac_t""yes" 1>&6 2726 echo "$ac_t""yes" 1>&6
2689 else 2727 else
2690 echo "configure: failed program was:" >&5 2728 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5 2729 cat conftest.$ac_ext >&5
2740 2778
2741 2779
2742 # Extract the first word of "ranlib", so it can be a program name with args. 2780 # Extract the first word of "ranlib", so it can be a program name with args.
2743 set dummy ranlib; ac_word=$2 2781 set dummy ranlib; ac_word=$2
2744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2745 echo "configure:2746: checking for $ac_word" >&5 2783 echo "configure:2784: checking for $ac_word" >&5
2746 2784
2747 if test -n "$RANLIB"; then 2785 if test -n "$RANLIB"; then
2748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2749 else 2787 else
2750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2793 # AIX /bin/install 2831 # AIX /bin/install
2794 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2795 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2796 # ./install, which can be erroneously created by make from ./install.sh. 2834 # ./install, which can be erroneously created by make from ./install.sh.
2797 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2835 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2798 echo "configure:2799: checking for a BSD compatible install" >&5 2836 echo "configure:2837: checking for a BSD compatible install" >&5
2799 if test -z "$INSTALL"; then 2837 if test -z "$INSTALL"; then
2800 2838
2801 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2839 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2802 for ac_dir in $PATH; do 2840 for ac_dir in $PATH; do
2803 # Account for people who put trailing slashes in PATH elements. 2841 # Account for people who put trailing slashes in PATH elements.
2844 for ac_prog in 'bison -y' byacc 2882 for ac_prog in 'bison -y' byacc
2845 do 2883 do
2846 # Extract the first word of "$ac_prog", so it can be a program name with args. 2884 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2 2885 set dummy $ac_prog; ac_word=$2
2848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_word" >&5 2887 echo "configure:2888: checking for $ac_word" >&5
2850 2888
2851 if test -n "$YACC"; then 2889 if test -n "$YACC"; then
2852 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2890 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2853 else 2891 else
2854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2875 2913
2876 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2914 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2877 do 2915 do
2878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2880 echo "configure:2881: checking for $ac_hdr" >&5 2918 echo "configure:2919: checking for $ac_hdr" >&5
2881 2919
2882 cat > conftest.$ac_ext <<EOF 2920 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure" 2921 #line 2922 "configure"
2884 #include "confdefs.h" 2922 #include "confdefs.h"
2885 #include <$ac_hdr> 2923 #include <$ac_hdr>
2886 EOF 2924 EOF
2887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2888 { (eval echo configure:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2926 { (eval echo configure:2927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2889 ac_err=`grep -v '^ *+' conftest.out` 2927 ac_err=`grep -v '^ *+' conftest.out`
2890 if test -z "$ac_err"; then 2928 if test -z "$ac_err"; then
2891 rm -rf conftest* 2929 rm -rf conftest*
2892 eval "ac_cv_header_$ac_safe=yes" 2930 eval "ac_cv_header_$ac_safe=yes"
2893 else 2931 else
2916 2954
2917 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h 2955 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
2918 do 2956 do
2919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2921 echo "configure:2922: checking for $ac_hdr" >&5 2959 echo "configure:2960: checking for $ac_hdr" >&5
2922 2960
2923 cat > conftest.$ac_ext <<EOF 2961 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure" 2962 #line 2963 "configure"
2925 #include "confdefs.h" 2963 #include "confdefs.h"
2926 #include <$ac_hdr> 2964 #include <$ac_hdr>
2927 EOF 2965 EOF
2928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2929 { (eval echo configure:2930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2967 { (eval echo configure:2968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2930 ac_err=`grep -v '^ *+' conftest.out` 2968 ac_err=`grep -v '^ *+' conftest.out`
2931 if test -z "$ac_err"; then 2969 if test -z "$ac_err"; then
2932 rm -rf conftest* 2970 rm -rf conftest*
2933 eval "ac_cv_header_$ac_safe=yes" 2971 eval "ac_cv_header_$ac_safe=yes"
2934 else 2972 else
2957 2995
2958 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 2996 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
2959 do 2997 do
2960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2962 echo "configure:2963: checking for $ac_hdr" >&5 3000 echo "configure:3001: checking for $ac_hdr" >&5
2963 3001
2964 cat > conftest.$ac_ext <<EOF 3002 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure" 3003 #line 3004 "configure"
2966 #include "confdefs.h" 3004 #include "confdefs.h"
2967 #include <$ac_hdr> 3005 #include <$ac_hdr>
2968 EOF 3006 EOF
2969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2970 { (eval echo configure:2971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3008 { (eval echo configure:3009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2971 ac_err=`grep -v '^ *+' conftest.out` 3009 ac_err=`grep -v '^ *+' conftest.out`
2972 if test -z "$ac_err"; then 3010 if test -z "$ac_err"; then
2973 rm -rf conftest* 3011 rm -rf conftest*
2974 eval "ac_cv_header_$ac_safe=yes" 3012 eval "ac_cv_header_$ac_safe=yes"
2975 else 3013 else
2995 echo "$ac_t""no" 1>&6 3033 echo "$ac_t""no" 1>&6
2996 fi 3034 fi
2997 done 3035 done
2998 3036
2999 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3037 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3000 echo "configure:3001: checking for sys/wait.h that is POSIX.1 compatible" >&5 3038 echo "configure:3039: checking for sys/wait.h that is POSIX.1 compatible" >&5
3001 3039
3002 cat > conftest.$ac_ext <<EOF 3040 cat > conftest.$ac_ext <<EOF
3003 #line 3004 "configure" 3041 #line 3042 "configure"
3004 #include "confdefs.h" 3042 #include "confdefs.h"
3005 #include <sys/types.h> 3043 #include <sys/types.h>
3006 #include <sys/wait.h> 3044 #include <sys/wait.h>
3007 #ifndef WEXITSTATUS 3045 #ifndef WEXITSTATUS
3008 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3046 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3014 int s; 3052 int s;
3015 wait (&s); 3053 wait (&s);
3016 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3054 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3017 ; return 0; } 3055 ; return 0; }
3018 EOF 3056 EOF
3019 if { (eval echo configure:3020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3057 if { (eval echo configure:3058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3020 rm -rf conftest* 3058 rm -rf conftest*
3021 ac_cv_header_sys_wait_h=yes 3059 ac_cv_header_sys_wait_h=yes
3022 else 3060 else
3023 echo "configure: failed program was:" >&5 3061 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5 3062 cat conftest.$ac_ext >&5
3038 } 3076 }
3039 3077
3040 fi 3078 fi
3041 3079
3042 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3080 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3043 echo "configure:3044: checking for ANSI C header files" >&5 3081 echo "configure:3082: checking for ANSI C header files" >&5
3044 3082
3045 cat > conftest.$ac_ext <<EOF 3083 cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure" 3084 #line 3085 "configure"
3047 #include "confdefs.h" 3085 #include "confdefs.h"
3048 #include <stdlib.h> 3086 #include <stdlib.h>
3049 #include <stdarg.h> 3087 #include <stdarg.h>
3050 #include <string.h> 3088 #include <string.h>
3051 #include <float.h> 3089 #include <float.h>
3052 EOF 3090 EOF
3053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3054 { (eval echo configure:3055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3092 { (eval echo configure:3093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3055 ac_err=`grep -v '^ *+' conftest.out` 3093 ac_err=`grep -v '^ *+' conftest.out`
3056 if test -z "$ac_err"; then 3094 if test -z "$ac_err"; then
3057 rm -rf conftest* 3095 rm -rf conftest*
3058 ac_cv_header_stdc=yes 3096 ac_cv_header_stdc=yes
3059 else 3097 else
3066 rm -f conftest* 3104 rm -f conftest*
3067 3105
3068 if test $ac_cv_header_stdc = yes; then 3106 if test $ac_cv_header_stdc = yes; then
3069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3070 cat > conftest.$ac_ext <<EOF 3108 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure" 3109 #line 3110 "configure"
3072 #include "confdefs.h" 3110 #include "confdefs.h"
3073 #include <string.h> 3111 #include <string.h>
3074 EOF 3112 EOF
3075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3076 egrep "memchr" >/dev/null 2>&1; then 3114 egrep "memchr" >/dev/null 2>&1; then
3084 fi 3122 fi
3085 3123
3086 if test $ac_cv_header_stdc = yes; then 3124 if test $ac_cv_header_stdc = yes; then
3087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3088 cat > conftest.$ac_ext <<EOF 3126 cat > conftest.$ac_ext <<EOF
3089 #line 3090 "configure" 3127 #line 3128 "configure"
3090 #include "confdefs.h" 3128 #include "confdefs.h"
3091 #include <stdlib.h> 3129 #include <stdlib.h>
3092 EOF 3130 EOF
3093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3094 egrep "free" >/dev/null 2>&1; then 3132 egrep "free" >/dev/null 2>&1; then
3102 fi 3140 fi
3103 3141
3104 if test $ac_cv_header_stdc = yes; then 3142 if test $ac_cv_header_stdc = yes; then
3105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3106 cat > conftest.$ac_ext <<EOF 3144 cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure" 3145 #line 3146 "configure"
3108 #include "confdefs.h" 3146 #include "confdefs.h"
3109 #include <ctype.h> 3147 #include <ctype.h>
3110 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3148 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3111 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3149 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3112 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3113 int main () { int i; for (i = 0; i < 256; i++) 3151 int main () { int i; for (i = 0; i < 256; i++)
3114 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3152 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3115 exit (0); } 3153 exit (0); }
3116 3154
3117 EOF 3155 EOF
3118 if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3156 if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3119 then 3157 then
3120 : 3158 :
3121 else 3159 else
3122 echo "configure: failed program was:" >&5 3160 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5 3161 cat conftest.$ac_ext >&5
3138 } 3176 }
3139 3177
3140 fi 3178 fi
3141 3179
3142 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3180 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3143 echo "configure:3144: checking whether time.h and sys/time.h may both be included" >&5 3181 echo "configure:3182: checking whether time.h and sys/time.h may both be included" >&5
3144 3182
3145 cat > conftest.$ac_ext <<EOF 3183 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure" 3184 #line 3185 "configure"
3147 #include "confdefs.h" 3185 #include "confdefs.h"
3148 #include <sys/types.h> 3186 #include <sys/types.h>
3149 #include <sys/time.h> 3187 #include <sys/time.h>
3150 #include <time.h> 3188 #include <time.h>
3151 int main() { 3189 int main() {
3152 struct tm *tp; 3190 struct tm *tp;
3153 ; return 0; } 3191 ; return 0; }
3154 EOF 3192 EOF
3155 if { (eval echo configure:3156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3193 if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3156 rm -rf conftest* 3194 rm -rf conftest*
3157 ac_cv_header_time=yes 3195 ac_cv_header_time=yes
3158 else 3196 else
3159 echo "configure: failed program was:" >&5 3197 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5 3198 cat conftest.$ac_ext >&5
3174 } 3212 }
3175 3213
3176 fi 3214 fi
3177 3215
3178 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3216 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3179 echo "configure:3180: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3217 echo "configure:3218: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3180 3218
3181 cat > conftest.$ac_ext <<EOF 3219 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure" 3220 #line 3221 "configure"
3183 #include "confdefs.h" 3221 #include "confdefs.h"
3184 #include <sys/types.h> 3222 #include <sys/types.h>
3185 #include <signal.h> 3223 #include <signal.h>
3186 /* NetBSD declares sys_siglist in unistd.h. */ 3224 /* NetBSD declares sys_siglist in unistd.h. */
3187 #ifdef HAVE_UNISTD_H 3225 #ifdef HAVE_UNISTD_H
3189 #endif 3227 #endif
3190 int main() { 3228 int main() {
3191 char *msg = *(sys_siglist + 1); 3229 char *msg = *(sys_siglist + 1);
3192 ; return 0; } 3230 ; return 0; }
3193 EOF 3231 EOF
3194 if { (eval echo configure:3195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3232 if { (eval echo configure:3233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3195 rm -rf conftest* 3233 rm -rf conftest*
3196 ac_cv_decl_sys_siglist=yes 3234 ac_cv_decl_sys_siglist=yes
3197 else 3235 else
3198 echo "configure: failed program was:" >&5 3236 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5 3237 cat conftest.$ac_ext >&5
3214 3252
3215 fi 3253 fi
3216 3254
3217 3255
3218 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3256 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3219 echo "configure:3220: checking for struct utimbuf" >&5 3257 echo "configure:3258: checking for struct utimbuf" >&5
3220 cat > conftest.$ac_ext <<EOF 3258 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure" 3259 #line 3260 "configure"
3222 #include "confdefs.h" 3260 #include "confdefs.h"
3223 #ifdef TIME_WITH_SYS_TIME 3261 #ifdef TIME_WITH_SYS_TIME
3224 #include <sys/time.h> 3262 #include <sys/time.h>
3225 #include <time.h> 3263 #include <time.h>
3226 #else 3264 #else
3235 #endif 3273 #endif
3236 int main() { 3274 int main() {
3237 static struct utimbuf x; x.actime = x.modtime; 3275 static struct utimbuf x; x.actime = x.modtime;
3238 ; return 0; } 3276 ; return 0; }
3239 EOF 3277 EOF
3240 if { (eval echo configure:3241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3241 rm -rf conftest* 3279 rm -rf conftest*
3242 echo "$ac_t""yes" 1>&6 3280 echo "$ac_t""yes" 1>&6
3243 { test "$extra_verbose" = "yes" && cat << \EOF 3281 { test "$extra_verbose" = "yes" && cat << \EOF
3244 Defining HAVE_STRUCT_UTIMBUF 3282 Defining HAVE_STRUCT_UTIMBUF
3245 EOF 3283 EOF
3255 echo "$ac_t""no" 1>&6 3293 echo "$ac_t""no" 1>&6
3256 fi 3294 fi
3257 rm -f conftest* 3295 rm -f conftest*
3258 3296
3259 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3297 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3260 echo "configure:3261: checking return type of signal handlers" >&5 3298 echo "configure:3299: checking return type of signal handlers" >&5
3261 3299
3262 cat > conftest.$ac_ext <<EOF 3300 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure" 3301 #line 3302 "configure"
3264 #include "confdefs.h" 3302 #include "confdefs.h"
3265 #include <sys/types.h> 3303 #include <sys/types.h>
3266 #include <signal.h> 3304 #include <signal.h>
3267 #ifdef signal 3305 #ifdef signal
3268 #undef signal 3306 #undef signal
3275 3313
3276 int main() { 3314 int main() {
3277 int i; 3315 int i;
3278 ; return 0; } 3316 ; return 0; }
3279 EOF 3317 EOF
3280 if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3318 if { (eval echo configure:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3281 rm -rf conftest* 3319 rm -rf conftest*
3282 ac_cv_type_signal=void 3320 ac_cv_type_signal=void
3283 else 3321 else
3284 echo "configure: failed program was:" >&5 3322 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5 3323 cat conftest.$ac_ext >&5
3297 EOF 3335 EOF
3298 } 3336 }
3299 3337
3300 3338
3301 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3339 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3302 echo "configure:3303: checking for size_t" >&5 3340 echo "configure:3341: checking for size_t" >&5
3303 3341
3304 cat > conftest.$ac_ext <<EOF 3342 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure" 3343 #line 3344 "configure"
3306 #include "confdefs.h" 3344 #include "confdefs.h"
3307 #include <sys/types.h> 3345 #include <sys/types.h>
3308 #if STDC_HEADERS 3346 #if STDC_HEADERS
3309 #include <stdlib.h> 3347 #include <stdlib.h>
3310 #include <stddef.h> 3348 #include <stddef.h>
3331 } 3369 }
3332 3370
3333 fi 3371 fi
3334 3372
3335 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3373 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3336 echo "configure:3337: checking for pid_t" >&5 3374 echo "configure:3375: checking for pid_t" >&5
3337 3375
3338 cat > conftest.$ac_ext <<EOF 3376 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure" 3377 #line 3378 "configure"
3340 #include "confdefs.h" 3378 #include "confdefs.h"
3341 #include <sys/types.h> 3379 #include <sys/types.h>
3342 #if STDC_HEADERS 3380 #if STDC_HEADERS
3343 #include <stdlib.h> 3381 #include <stdlib.h>
3344 #include <stddef.h> 3382 #include <stddef.h>
3365 } 3403 }
3366 3404
3367 fi 3405 fi
3368 3406
3369 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3407 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3370 echo "configure:3371: checking for uid_t in sys/types.h" >&5 3408 echo "configure:3409: checking for uid_t in sys/types.h" >&5
3371 3409
3372 cat > conftest.$ac_ext <<EOF 3410 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure" 3411 #line 3412 "configure"
3374 #include "confdefs.h" 3412 #include "confdefs.h"
3375 #include <sys/types.h> 3413 #include <sys/types.h>
3376 EOF 3414 EOF
3377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3378 egrep "uid_t" >/dev/null 2>&1; then 3416 egrep "uid_t" >/dev/null 2>&1; then
3404 } 3442 }
3405 3443
3406 fi 3444 fi
3407 3445
3408 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3446 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3409 echo "configure:3410: checking for mode_t" >&5 3447 echo "configure:3448: checking for mode_t" >&5
3410 3448
3411 cat > conftest.$ac_ext <<EOF 3449 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure" 3450 #line 3451 "configure"
3413 #include "confdefs.h" 3451 #include "confdefs.h"
3414 #include <sys/types.h> 3452 #include <sys/types.h>
3415 #if STDC_HEADERS 3453 #if STDC_HEADERS
3416 #include <stdlib.h> 3454 #include <stdlib.h>
3417 #include <stddef.h> 3455 #include <stddef.h>
3438 } 3476 }
3439 3477
3440 fi 3478 fi
3441 3479
3442 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3480 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3443 echo "configure:3444: checking for off_t" >&5 3481 echo "configure:3482: checking for off_t" >&5
3444 3482
3445 cat > conftest.$ac_ext <<EOF 3483 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure" 3484 #line 3485 "configure"
3447 #include "confdefs.h" 3485 #include "confdefs.h"
3448 #include <sys/types.h> 3486 #include <sys/types.h>
3449 #if STDC_HEADERS 3487 #if STDC_HEADERS
3450 #include <stdlib.h> 3488 #include <stdlib.h>
3451 #include <stddef.h> 3489 #include <stddef.h>
3473 3511
3474 fi 3512 fi
3475 3513
3476 3514
3477 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3515 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3478 echo "configure:3479: checking for struct timeval" >&5 3516 echo "configure:3517: checking for struct timeval" >&5
3479 cat > conftest.$ac_ext <<EOF 3517 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure" 3518 #line 3519 "configure"
3481 #include "confdefs.h" 3519 #include "confdefs.h"
3482 #ifdef TIME_WITH_SYS_TIME 3520 #ifdef TIME_WITH_SYS_TIME
3483 #include <sys/time.h> 3521 #include <sys/time.h>
3484 #include <time.h> 3522 #include <time.h>
3485 #else 3523 #else
3491 #endif 3529 #endif
3492 int main() { 3530 int main() {
3493 static struct timeval x; x.tv_sec = x.tv_usec; 3531 static struct timeval x; x.tv_sec = x.tv_usec;
3494 ; return 0; } 3532 ; return 0; }
3495 EOF 3533 EOF
3496 if { (eval echo configure:3497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3534 if { (eval echo configure:3535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3497 rm -rf conftest* 3535 rm -rf conftest*
3498 echo "$ac_t""yes" 1>&6 3536 echo "$ac_t""yes" 1>&6
3499 HAVE_TIMEVAL=yes 3537 HAVE_TIMEVAL=yes
3500 { test "$extra_verbose" = "yes" && cat << \EOF 3538 { test "$extra_verbose" = "yes" && cat << \EOF
3501 Defining HAVE_TIMEVAL 3539 Defining HAVE_TIMEVAL
3513 HAVE_TIMEVAL=no 3551 HAVE_TIMEVAL=no
3514 fi 3552 fi
3515 rm -f conftest* 3553 rm -f conftest*
3516 3554
3517 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3555 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3518 echo "configure:3519: checking whether struct tm is in sys/time.h or time.h" >&5 3556 echo "configure:3557: checking whether struct tm is in sys/time.h or time.h" >&5
3519 3557
3520 cat > conftest.$ac_ext <<EOF 3558 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure" 3559 #line 3560 "configure"
3522 #include "confdefs.h" 3560 #include "confdefs.h"
3523 #include <sys/types.h> 3561 #include <sys/types.h>
3524 #include <time.h> 3562 #include <time.h>
3525 int main() { 3563 int main() {
3526 struct tm *tp; tp->tm_sec; 3564 struct tm *tp; tp->tm_sec;
3527 ; return 0; } 3565 ; return 0; }
3528 EOF 3566 EOF
3529 if { (eval echo configure:3530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3567 if { (eval echo configure:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3530 rm -rf conftest* 3568 rm -rf conftest*
3531 ac_cv_struct_tm=time.h 3569 ac_cv_struct_tm=time.h
3532 else 3570 else
3533 echo "configure: failed program was:" >&5 3571 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5 3572 cat conftest.$ac_ext >&5
3548 } 3586 }
3549 3587
3550 fi 3588 fi
3551 3589
3552 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3590 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3553 echo "configure:3554: checking for tm_zone in struct tm" >&5 3591 echo "configure:3592: checking for tm_zone in struct tm" >&5
3554 3592
3555 cat > conftest.$ac_ext <<EOF 3593 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure" 3594 #line 3595 "configure"
3557 #include "confdefs.h" 3595 #include "confdefs.h"
3558 #include <sys/types.h> 3596 #include <sys/types.h>
3559 #include <$ac_cv_struct_tm> 3597 #include <$ac_cv_struct_tm>
3560 int main() { 3598 int main() {
3561 struct tm tm; tm.tm_zone; 3599 struct tm tm; tm.tm_zone;
3562 ; return 0; } 3600 ; return 0; }
3563 EOF 3601 EOF
3564 if { (eval echo configure:3565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3602 if { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3565 rm -rf conftest* 3603 rm -rf conftest*
3566 ac_cv_struct_tm_zone=yes 3604 ac_cv_struct_tm_zone=yes
3567 else 3605 else
3568 echo "configure: failed program was:" >&5 3606 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5 3607 cat conftest.$ac_ext >&5
3582 EOF 3620 EOF
3583 } 3621 }
3584 3622
3585 else 3623 else
3586 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3624 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3587 echo "configure:3588: checking for tzname" >&5 3625 echo "configure:3626: checking for tzname" >&5
3588 3626
3589 cat > conftest.$ac_ext <<EOF 3627 cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure" 3628 #line 3629 "configure"
3591 #include "confdefs.h" 3629 #include "confdefs.h"
3592 #include <time.h> 3630 #include <time.h>
3593 #ifndef tzname /* For SGI. */ 3631 #ifndef tzname /* For SGI. */
3594 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3632 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3595 #endif 3633 #endif
3596 int main() { 3634 int main() {
3597 atoi(*tzname); 3635 atoi(*tzname);
3598 ; return 0; } 3636 ; return 0; }
3599 EOF 3637 EOF
3600 if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3638 if { (eval echo configure:3639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3601 rm -rf conftest* 3639 rm -rf conftest*
3602 ac_cv_var_tzname=yes 3640 ac_cv_var_tzname=yes
3603 else 3641 else
3604 echo "configure: failed program was:" >&5 3642 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5 3643 cat conftest.$ac_ext >&5
3621 fi 3659 fi
3622 fi 3660 fi
3623 3661
3624 3662
3625 echo $ac_n "checking for working const""... $ac_c" 1>&6 3663 echo $ac_n "checking for working const""... $ac_c" 1>&6
3626 echo "configure:3627: checking for working const" >&5 3664 echo "configure:3665: checking for working const" >&5
3627 3665
3628 cat > conftest.$ac_ext <<EOF 3666 cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure" 3667 #line 3668 "configure"
3630 #include "confdefs.h" 3668 #include "confdefs.h"
3631 3669
3632 int main() { 3670 int main() {
3633 3671
3634 /* Ultrix mips cc rejects this. */ 3672 /* Ultrix mips cc rejects this. */
3673 const int foo = 10; 3711 const int foo = 10;
3674 } 3712 }
3675 3713
3676 ; return 0; } 3714 ; return 0; }
3677 EOF 3715 EOF
3678 if { (eval echo configure:3679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3679 rm -rf conftest* 3717 rm -rf conftest*
3680 ac_cv_c_const=yes 3718 ac_cv_c_const=yes
3681 else 3719 else
3682 echo "configure: failed program was:" >&5 3720 echo "configure: failed program was:" >&5
3683 cat conftest.$ac_ext >&5 3721 cat conftest.$ac_ext >&5
3698 3736
3699 fi 3737 fi
3700 3738
3701 3739
3702 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3740 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3703 echo "configure:3704: checking whether ${MAKE-make} sets \${MAKE}" >&5 3741 echo "configure:3742: checking whether ${MAKE-make} sets \${MAKE}" >&5
3704 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3742 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3705 3743
3706 cat > conftestmake <<\EOF 3744 cat > conftestmake <<\EOF
3707 all: 3745 all:
3708 @echo 'ac_maketemp="${MAKE}"' 3746 @echo 'ac_maketemp="${MAKE}"'
3723 SET_MAKE="MAKE=${MAKE-make}" 3761 SET_MAKE="MAKE=${MAKE-make}"
3724 fi 3762 fi
3725 3763
3726 3764
3727 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3765 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3728 echo "configure:3729: checking whether byte ordering is bigendian" >&5 3766 echo "configure:3767: checking whether byte ordering is bigendian" >&5
3729 3767
3730 ac_cv_c_bigendian=unknown 3768 ac_cv_c_bigendian=unknown
3731 # See if sys/param.h defines the BYTE_ORDER macro. 3769 # See if sys/param.h defines the BYTE_ORDER macro.
3732 cat > conftest.$ac_ext <<EOF 3770 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure" 3771 #line 3772 "configure"
3734 #include "confdefs.h" 3772 #include "confdefs.h"
3735 #include <sys/types.h> 3773 #include <sys/types.h>
3736 #include <sys/param.h> 3774 #include <sys/param.h>
3737 int main() { 3775 int main() {
3738 3776
3739 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3777 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3740 bogus endian macros 3778 bogus endian macros
3741 #endif 3779 #endif
3742 ; return 0; } 3780 ; return 0; }
3743 EOF 3781 EOF
3744 if { (eval echo configure:3745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3782 if { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3745 rm -rf conftest* 3783 rm -rf conftest*
3746 # It does; now see whether it defined to BIG_ENDIAN or not. 3784 # It does; now see whether it defined to BIG_ENDIAN or not.
3747 cat > conftest.$ac_ext <<EOF 3785 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure" 3786 #line 3787 "configure"
3749 #include "confdefs.h" 3787 #include "confdefs.h"
3750 #include <sys/types.h> 3788 #include <sys/types.h>
3751 #include <sys/param.h> 3789 #include <sys/param.h>
3752 int main() { 3790 int main() {
3753 3791
3754 #if BYTE_ORDER != BIG_ENDIAN 3792 #if BYTE_ORDER != BIG_ENDIAN
3755 not big endian 3793 not big endian
3756 #endif 3794 #endif
3757 ; return 0; } 3795 ; return 0; }
3758 EOF 3796 EOF
3759 if { (eval echo configure:3760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3797 if { (eval echo configure:3798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3760 rm -rf conftest* 3798 rm -rf conftest*
3761 ac_cv_c_bigendian=yes 3799 ac_cv_c_bigendian=yes
3762 else 3800 else
3763 echo "configure: failed program was:" >&5 3801 echo "configure: failed program was:" >&5
3764 cat conftest.$ac_ext >&5 3802 cat conftest.$ac_ext >&5
3771 cat conftest.$ac_ext >&5 3809 cat conftest.$ac_ext >&5
3772 fi 3810 fi
3773 rm -f conftest* 3811 rm -f conftest*
3774 if test $ac_cv_c_bigendian = unknown; then 3812 if test $ac_cv_c_bigendian = unknown; then
3775 cat > conftest.$ac_ext <<EOF 3813 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure" 3814 #line 3815 "configure"
3777 #include "confdefs.h" 3815 #include "confdefs.h"
3778 main () { 3816 main () {
3779 /* Are we little or big endian? From Harbison&Steele. */ 3817 /* Are we little or big endian? From Harbison&Steele. */
3780 union 3818 union
3781 { 3819 {
3784 } u; 3822 } u;
3785 u.l = 1; 3823 u.l = 1;
3786 exit (u.c[sizeof (long) - 1] == 1); 3824 exit (u.c[sizeof (long) - 1] == 1);
3787 } 3825 }
3788 EOF 3826 EOF
3789 if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3790 then 3828 then
3791 ac_cv_c_bigendian=no 3829 ac_cv_c_bigendian=no
3792 else 3830 else
3793 echo "configure: failed program was:" >&5 3831 echo "configure: failed program was:" >&5
3794 cat conftest.$ac_ext >&5 3832 cat conftest.$ac_ext >&5
3810 3848
3811 fi 3849 fi
3812 3850
3813 3851
3814 echo $ac_n "checking size of short""... $ac_c" 1>&6 3852 echo $ac_n "checking size of short""... $ac_c" 1>&6
3815 echo "configure:3816: checking size of short" >&5 3853 echo "configure:3854: checking size of short" >&5
3816 3854
3817 cat > conftest.$ac_ext <<EOF 3855 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure" 3856 #line 3857 "configure"
3819 #include "confdefs.h" 3857 #include "confdefs.h"
3820 #include <stdio.h> 3858 #include <stdio.h>
3821 main() 3859 main()
3822 { 3860 {
3823 FILE *f=fopen("conftestval", "w"); 3861 FILE *f=fopen("conftestval", "w");
3824 if (!f) exit(1); 3862 if (!f) exit(1);
3825 fprintf(f, "%d\n", sizeof(short)); 3863 fprintf(f, "%d\n", sizeof(short));
3826 exit(0); 3864 exit(0);
3827 } 3865 }
3828 EOF 3866 EOF
3829 if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3867 if { (eval echo configure:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3830 then 3868 then
3831 ac_cv_sizeof_short=`cat conftestval` 3869 ac_cv_sizeof_short=`cat conftestval`
3832 else 3870 else
3833 echo "configure: failed program was:" >&5 3871 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5 3872 cat conftest.$ac_ext >&5
3851 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3889 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3852 echo "*** PANIC *** Please examine config.log for compilation errors." 3890 echo "*** PANIC *** Please examine config.log for compilation errors."
3853 exit 1 3891 exit 1
3854 fi 3892 fi
3855 echo $ac_n "checking size of int""... $ac_c" 1>&6 3893 echo $ac_n "checking size of int""... $ac_c" 1>&6
3856 echo "configure:3857: checking size of int" >&5 3894 echo "configure:3895: checking size of int" >&5
3857 3895
3858 cat > conftest.$ac_ext <<EOF 3896 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure" 3897 #line 3898 "configure"
3860 #include "confdefs.h" 3898 #include "confdefs.h"
3861 #include <stdio.h> 3899 #include <stdio.h>
3862 main() 3900 main()
3863 { 3901 {
3864 FILE *f=fopen("conftestval", "w"); 3902 FILE *f=fopen("conftestval", "w");
3865 if (!f) exit(1); 3903 if (!f) exit(1);
3866 fprintf(f, "%d\n", sizeof(int)); 3904 fprintf(f, "%d\n", sizeof(int));
3867 exit(0); 3905 exit(0);
3868 } 3906 }
3869 EOF 3907 EOF
3870 if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3908 if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3871 then 3909 then
3872 ac_cv_sizeof_int=`cat conftestval` 3910 ac_cv_sizeof_int=`cat conftestval`
3873 else 3911 else
3874 echo "configure: failed program was:" >&5 3912 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5 3913 cat conftest.$ac_ext >&5
3886 EOF 3924 EOF
3887 } 3925 }
3888 3926
3889 3927
3890 echo $ac_n "checking size of long""... $ac_c" 1>&6 3928 echo $ac_n "checking size of long""... $ac_c" 1>&6
3891 echo "configure:3892: checking size of long" >&5 3929 echo "configure:3930: checking size of long" >&5
3892 3930
3893 cat > conftest.$ac_ext <<EOF 3931 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure" 3932 #line 3933 "configure"
3895 #include "confdefs.h" 3933 #include "confdefs.h"
3896 #include <stdio.h> 3934 #include <stdio.h>
3897 main() 3935 main()
3898 { 3936 {
3899 FILE *f=fopen("conftestval", "w"); 3937 FILE *f=fopen("conftestval", "w");
3900 if (!f) exit(1); 3938 if (!f) exit(1);
3901 fprintf(f, "%d\n", sizeof(long)); 3939 fprintf(f, "%d\n", sizeof(long));
3902 exit(0); 3940 exit(0);
3903 } 3941 }
3904 EOF 3942 EOF
3905 if { (eval echo configure:3906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3943 if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3906 then 3944 then
3907 ac_cv_sizeof_long=`cat conftestval` 3945 ac_cv_sizeof_long=`cat conftestval`
3908 else 3946 else
3909 echo "configure: failed program was:" >&5 3947 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5 3948 cat conftest.$ac_ext >&5
3921 EOF 3959 EOF
3922 } 3960 }
3923 3961
3924 3962
3925 echo $ac_n "checking size of long long""... $ac_c" 1>&6 3963 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3926 echo "configure:3927: checking size of long long" >&5 3964 echo "configure:3965: checking size of long long" >&5
3927 3965
3928 cat > conftest.$ac_ext <<EOF 3966 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure" 3967 #line 3968 "configure"
3930 #include "confdefs.h" 3968 #include "confdefs.h"
3931 #include <stdio.h> 3969 #include <stdio.h>
3932 main() 3970 main()
3933 { 3971 {
3934 FILE *f=fopen("conftestval", "w"); 3972 FILE *f=fopen("conftestval", "w");
3935 if (!f) exit(1); 3973 if (!f) exit(1);
3936 fprintf(f, "%d\n", sizeof(long long)); 3974 fprintf(f, "%d\n", sizeof(long long));
3937 exit(0); 3975 exit(0);
3938 } 3976 }
3939 EOF 3977 EOF
3940 if { (eval echo configure:3941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3941 then 3979 then
3942 ac_cv_sizeof_long_long=`cat conftestval` 3980 ac_cv_sizeof_long_long=`cat conftestval`
3943 else 3981 else
3944 echo "configure: failed program was:" >&5 3982 echo "configure: failed program was:" >&5
3945 cat conftest.$ac_ext >&5 3983 cat conftest.$ac_ext >&5
3956 EOF 3994 EOF
3957 } 3995 }
3958 3996
3959 3997
3960 echo $ac_n "checking size of void *""... $ac_c" 1>&6 3998 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3961 echo "configure:3962: checking size of void *" >&5 3999 echo "configure:4000: checking size of void *" >&5
3962 4000
3963 cat > conftest.$ac_ext <<EOF 4001 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure" 4002 #line 4003 "configure"
3965 #include "confdefs.h" 4003 #include "confdefs.h"
3966 #include <stdio.h> 4004 #include <stdio.h>
3967 main() 4005 main()
3968 { 4006 {
3969 FILE *f=fopen("conftestval", "w"); 4007 FILE *f=fopen("conftestval", "w");
3970 if (!f) exit(1); 4008 if (!f) exit(1);
3971 fprintf(f, "%d\n", sizeof(void *)); 4009 fprintf(f, "%d\n", sizeof(void *));
3972 exit(0); 4010 exit(0);
3973 } 4011 }
3974 EOF 4012 EOF
3975 if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3976 then 4014 then
3977 ac_cv_sizeof_void_p=`cat conftestval` 4015 ac_cv_sizeof_void_p=`cat conftestval`
3978 else 4016 else
3979 echo "configure: failed program was:" >&5 4017 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5 4018 cat conftest.$ac_ext >&5
3992 } 4030 }
3993 4031
3994 4032
3995 4033
3996 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4034 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3997 echo "configure:3998: checking for long file names" >&5 4035 echo "configure:4036: checking for long file names" >&5
3998 4036
3999 ac_cv_sys_long_file_names=yes 4037 ac_cv_sys_long_file_names=yes
4000 # Test for long file names in all the places we know might matter: 4038 # Test for long file names in all the places we know might matter:
4001 # . the current directory, where building will happen 4039 # . the current directory, where building will happen
4002 # $prefix/lib where we will be installing things 4040 # $prefix/lib where we will be installing things
4039 fi 4077 fi
4040 4078
4041 4079
4042 4080
4043 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4081 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4044 echo "configure:4045: checking for sin in -lm" >&5 4082 echo "configure:4083: checking for sin in -lm" >&5
4045 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4083 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4046 4084
4047 xe_check_libs=" -lm " 4085 xe_check_libs=" -lm "
4048 cat > conftest.$ac_ext <<EOF 4086 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure" 4087 #line 4088 "configure"
4050 #include "confdefs.h" 4088 #include "confdefs.h"
4051 /* Override any gcc2 internal prototype to avoid an error. */ 4089 /* Override any gcc2 internal prototype to avoid an error. */
4052 /* We use char because int might match the return type of a gcc2 4090 /* We use char because int might match the return type of a gcc2
4053 builtin and then its argument prototype would still apply. */ 4091 builtin and then its argument prototype would still apply. */
4054 char sin(); 4092 char sin();
4055 4093
4056 int main() { 4094 int main() {
4057 sin() 4095 sin()
4058 ; return 0; } 4096 ; return 0; }
4059 EOF 4097 EOF
4060 if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4098 if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4061 rm -rf conftest* 4099 rm -rf conftest*
4062 eval "ac_cv_lib_$ac_lib_var=yes" 4100 eval "ac_cv_lib_$ac_lib_var=yes"
4063 else 4101 else
4064 echo "configure: failed program was:" >&5 4102 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5 4103 cat conftest.$ac_ext >&5
4097 EOF 4135 EOF
4098 } 4136 }
4099 4137
4100 4138
4101 cat > conftest.$ac_ext <<EOF 4139 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure" 4140 #line 4141 "configure"
4103 #include "confdefs.h" 4141 #include "confdefs.h"
4104 #include <math.h> 4142 #include <math.h>
4105 int main() { 4143 int main() {
4106 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4144 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4107 ; return 0; } 4145 ; return 0; }
4108 EOF 4146 EOF
4109 if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4110 rm -rf conftest* 4148 rm -rf conftest*
4111 { test "$extra_verbose" = "yes" && cat << \EOF 4149 { test "$extra_verbose" = "yes" && cat << \EOF
4112 Defining HAVE_INVERSE_HYPERBOLIC 4150 Defining HAVE_INVERSE_HYPERBOLIC
4113 EOF 4151 EOF
4114 cat >> confdefs.h <<\EOF 4152 cat >> confdefs.h <<\EOF
4121 cat conftest.$ac_ext >&5 4159 cat conftest.$ac_ext >&5
4122 fi 4160 fi
4123 rm -f conftest* 4161 rm -f conftest*
4124 4162
4125 echo "checking type of mail spool file locking" 1>&6 4163 echo "checking type of mail spool file locking" 1>&6
4126 echo "configure:4127: checking type of mail spool file locking" >&5 4164 echo "configure:4165: checking type of mail spool file locking" >&5
4127 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 4165 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4128 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 4166 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4129 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 4167 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4130 Defining REAL_MAIL_USE_LOCKF 4168 Defining REAL_MAIL_USE_LOCKF
4131 EOF 4169 EOF
4145 else mail_locking="dot-locking" 4183 else mail_locking="dot-locking"
4146 fi 4184 fi
4147 4185
4148 4186
4149 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 4187 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
4150 echo "configure:4151: checking for kstat_open in -lkstat" >&5 4188 echo "configure:4189: checking for kstat_open in -lkstat" >&5
4151 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 4189 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
4152 4190
4153 xe_check_libs=" -lkstat " 4191 xe_check_libs=" -lkstat "
4154 cat > conftest.$ac_ext <<EOF 4192 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure" 4193 #line 4194 "configure"
4156 #include "confdefs.h" 4194 #include "confdefs.h"
4157 /* Override any gcc2 internal prototype to avoid an error. */ 4195 /* Override any gcc2 internal prototype to avoid an error. */
4158 /* We use char because int might match the return type of a gcc2 4196 /* We use char because int might match the return type of a gcc2
4159 builtin and then its argument prototype would still apply. */ 4197 builtin and then its argument prototype would still apply. */
4160 char kstat_open(); 4198 char kstat_open();
4161 4199
4162 int main() { 4200 int main() {
4163 kstat_open() 4201 kstat_open()
4164 ; return 0; } 4202 ; return 0; }
4165 EOF 4203 EOF
4166 if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4167 rm -rf conftest* 4205 rm -rf conftest*
4168 eval "ac_cv_lib_$ac_lib_var=yes" 4206 eval "ac_cv_lib_$ac_lib_var=yes"
4169 else 4207 else
4170 echo "configure: failed program was:" >&5 4208 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5 4209 cat conftest.$ac_ext >&5
4195 4233
4196 4234
4197 4235
4198 4236
4199 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 4237 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
4200 echo "configure:4201: checking for kvm_read in -lkvm" >&5 4238 echo "configure:4239: checking for kvm_read in -lkvm" >&5
4201 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 4239 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
4202 4240
4203 xe_check_libs=" -lkvm " 4241 xe_check_libs=" -lkvm "
4204 cat > conftest.$ac_ext <<EOF 4242 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure" 4243 #line 4244 "configure"
4206 #include "confdefs.h" 4244 #include "confdefs.h"
4207 /* Override any gcc2 internal prototype to avoid an error. */ 4245 /* Override any gcc2 internal prototype to avoid an error. */
4208 /* We use char because int might match the return type of a gcc2 4246 /* We use char because int might match the return type of a gcc2
4209 builtin and then its argument prototype would still apply. */ 4247 builtin and then its argument prototype would still apply. */
4210 char kvm_read(); 4248 char kvm_read();
4211 4249
4212 int main() { 4250 int main() {
4213 kvm_read() 4251 kvm_read()
4214 ; return 0; } 4252 ; return 0; }
4215 EOF 4253 EOF
4216 if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4254 if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4217 rm -rf conftest* 4255 rm -rf conftest*
4218 eval "ac_cv_lib_$ac_lib_var=yes" 4256 eval "ac_cv_lib_$ac_lib_var=yes"
4219 else 4257 else
4220 echo "configure: failed program was:" >&5 4258 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5 4259 cat conftest.$ac_ext >&5
4246 4284
4247 4285
4248 case "$opsys" in decosf*) 4286 case "$opsys" in decosf*)
4249 4287
4250 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4288 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4251 echo "configure:4252: checking for cma_open in -lpthreads" >&5 4289 echo "configure:4290: checking for cma_open in -lpthreads" >&5
4252 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4290 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4253 4291
4254 xe_check_libs=" -lpthreads " 4292 xe_check_libs=" -lpthreads "
4255 cat > conftest.$ac_ext <<EOF 4293 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure" 4294 #line 4295 "configure"
4257 #include "confdefs.h" 4295 #include "confdefs.h"
4258 /* Override any gcc2 internal prototype to avoid an error. */ 4296 /* Override any gcc2 internal prototype to avoid an error. */
4259 /* We use char because int might match the return type of a gcc2 4297 /* We use char because int might match the return type of a gcc2
4260 builtin and then its argument prototype would still apply. */ 4298 builtin and then its argument prototype would still apply. */
4261 char cma_open(); 4299 char cma_open();
4262 4300
4263 int main() { 4301 int main() {
4264 cma_open() 4302 cma_open()
4265 ; return 0; } 4303 ; return 0; }
4266 EOF 4304 EOF
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4268 rm -rf conftest* 4306 rm -rf conftest*
4269 eval "ac_cv_lib_$ac_lib_var=yes" 4307 eval "ac_cv_lib_$ac_lib_var=yes"
4270 else 4308 else
4271 echo "configure: failed program was:" >&5 4309 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5 4310 cat conftest.$ac_ext >&5
4298 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4336 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4299 c_switch_site="$c_switch_site -threads" ;; 4337 c_switch_site="$c_switch_site -threads" ;;
4300 esac 4338 esac
4301 4339
4302 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4340 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4303 echo "configure:4304: checking whether the -xildoff compiler flag is required" >&5 4341 echo "configure:4342: checking whether the -xildoff compiler flag is required" >&5
4304 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4342 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4305 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4343 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4306 then echo "$ac_t""no" 1>&6; 4344 then echo "$ac_t""no" 1>&6;
4307 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 4345 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
4308 fi 4346 fi
4309 else echo "$ac_t""no" 1>&6 4347 else echo "$ac_t""no" 1>&6
4310 fi 4348 fi
4311 4349
4312 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4350 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4313 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4351 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4314 echo "configure:4315: checking for \"-z ignore\" linker flag" >&5 4352 echo "configure:4353: checking for \"-z ignore\" linker flag" >&5
4315 case "`ld -h 2>&1`" in 4353 case "`ld -h 2>&1`" in
4316 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4354 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4317 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4355 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4318 *) echo "$ac_t""no" 1>&6 ;; 4356 *) echo "$ac_t""no" 1>&6 ;;
4319 esac 4357 esac
4320 fi 4358 fi
4321 4359
4322 4360
4323 echo "checking "for specified window system"" 1>&6 4361 echo "checking "for specified window system"" 1>&6
4324 echo "configure:4325: checking "for specified window system"" >&5 4362 echo "configure:4363: checking "for specified window system"" >&5
4325 4363
4326 if test "$with_x11" != "no"; then 4364 if test "$with_x11" != "no"; then
4327 test "$x_includes $x_libraries" != "NONE NONE" && \ 4365 test "$x_includes $x_libraries" != "NONE NONE" && \
4328 window_system=x11 with_x11=yes 4366 window_system=x11 with_x11=yes
4329 4367
4352 # If we find X, set shell vars x_includes and x_libraries to the 4390 # If we find X, set shell vars x_includes and x_libraries to the
4353 # paths, otherwise set no_x=yes. 4391 # paths, otherwise set no_x=yes.
4354 # Uses ac_ vars as temps to allow command line to override cache and checks. 4392 # Uses ac_ vars as temps to allow command line to override cache and checks.
4355 # --without-x overrides everything else, but does not touch the cache. 4393 # --without-x overrides everything else, but does not touch the cache.
4356 echo $ac_n "checking for X""... $ac_c" 1>&6 4394 echo $ac_n "checking for X""... $ac_c" 1>&6
4357 echo "configure:4358: checking for X" >&5 4395 echo "configure:4396: checking for X" >&5
4358 4396
4359 # Check whether --with-x or --without-x was given. 4397 # Check whether --with-x or --without-x was given.
4360 if test "${with_x+set}" = set; then 4398 if test "${with_x+set}" = set; then
4361 withval="$with_x" 4399 withval="$with_x"
4362 : 4400 :
4412 # Guess where to find include files, by looking for this one X11 .h file. 4450 # Guess where to find include files, by looking for this one X11 .h file.
4413 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4451 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4414 4452
4415 # First, try using that file with no special directory specified. 4453 # First, try using that file with no special directory specified.
4416 cat > conftest.$ac_ext <<EOF 4454 cat > conftest.$ac_ext <<EOF
4417 #line 4418 "configure" 4455 #line 4456 "configure"
4418 #include "confdefs.h" 4456 #include "confdefs.h"
4419 #include <$x_direct_test_include> 4457 #include <$x_direct_test_include>
4420 EOF 4458 EOF
4421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4422 { (eval echo configure:4423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4460 { (eval echo configure:4461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4423 ac_err=`grep -v '^ *+' conftest.out` 4461 ac_err=`grep -v '^ *+' conftest.out`
4424 if test -z "$ac_err"; then 4462 if test -z "$ac_err"; then
4425 rm -rf conftest* 4463 rm -rf conftest*
4426 # We can compile using X headers with no special include directory. 4464 # We can compile using X headers with no special include directory.
4427 ac_x_includes= 4465 ac_x_includes=
4486 # See if we find them without any special options. 4524 # See if we find them without any special options.
4487 # Don't add to $LIBS permanently. 4525 # Don't add to $LIBS permanently.
4488 ac_save_LIBS="$LIBS" 4526 ac_save_LIBS="$LIBS"
4489 LIBS="-l$x_direct_test_library $LIBS" 4527 LIBS="-l$x_direct_test_library $LIBS"
4490 cat > conftest.$ac_ext <<EOF 4528 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure" 4529 #line 4530 "configure"
4492 #include "confdefs.h" 4530 #include "confdefs.h"
4493 4531
4494 int main() { 4532 int main() {
4495 ${x_direct_test_function}() 4533 ${x_direct_test_function}()
4496 ; return 0; } 4534 ; return 0; }
4497 EOF 4535 EOF
4498 if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4499 rm -rf conftest* 4537 rm -rf conftest*
4500 LIBS="$ac_save_LIBS" 4538 LIBS="$ac_save_LIBS"
4501 # We can link X programs with no special library path. 4539 # We can link X programs with no special library path.
4502 ac_x_libraries= 4540 ac_x_libraries=
4503 else 4541 else
4602 # For Solaris; some versions of Sun CC require a space after -R and 4640 # For Solaris; some versions of Sun CC require a space after -R and
4603 # others require no space. Words are not sufficient . . . . 4641 # others require no space. Words are not sufficient . . . .
4604 case "`(uname -sr) 2>/dev/null`" in 4642 case "`(uname -sr) 2>/dev/null`" in
4605 "SunOS 5"*) 4643 "SunOS 5"*)
4606 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4644 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4607 echo "configure:4608: checking whether -R must be followed by a space" >&5 4645 echo "configure:4646: checking whether -R must be followed by a space" >&5
4608 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4646 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4609 cat > conftest.$ac_ext <<EOF 4647 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure" 4648 #line 4649 "configure"
4611 #include "confdefs.h" 4649 #include "confdefs.h"
4612 4650
4613 int main() { 4651 int main() {
4614 4652
4615 ; return 0; } 4653 ; return 0; }
4616 EOF 4654 EOF
4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4655 if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4618 rm -rf conftest* 4656 rm -rf conftest*
4619 ac_R_nospace=yes 4657 ac_R_nospace=yes
4620 else 4658 else
4621 echo "configure: failed program was:" >&5 4659 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5 4660 cat conftest.$ac_ext >&5
4628 echo "$ac_t""no" 1>&6 4666 echo "$ac_t""no" 1>&6
4629 X_LIBS="$X_LIBS -R$x_libraries" 4667 X_LIBS="$X_LIBS -R$x_libraries"
4630 else 4668 else
4631 LIBS="$ac_xsave_LIBS -R $x_libraries" 4669 LIBS="$ac_xsave_LIBS -R $x_libraries"
4632 cat > conftest.$ac_ext <<EOF 4670 cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure" 4671 #line 4672 "configure"
4634 #include "confdefs.h" 4672 #include "confdefs.h"
4635 4673
4636 int main() { 4674 int main() {
4637 4675
4638 ; return 0; } 4676 ; return 0; }
4639 EOF 4677 EOF
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4641 rm -rf conftest* 4679 rm -rf conftest*
4642 ac_R_space=yes 4680 ac_R_space=yes
4643 else 4681 else
4644 echo "configure: failed program was:" >&5 4682 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5 4683 cat conftest.$ac_ext >&5
4671 if test "$with_dnet" = "no" ; then 4709 if test "$with_dnet" = "no" ; then
4672 ac_cv_lib_dnet_dnet_ntoa=no 4710 ac_cv_lib_dnet_dnet_ntoa=no
4673 else 4711 else
4674 4712
4675 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4713 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4676 echo "configure:4677: checking for dnet_ntoa in -ldnet" >&5 4714 echo "configure:4715: checking for dnet_ntoa in -ldnet" >&5
4677 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4715 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4678 4716
4679 xe_check_libs=" -ldnet " 4717 xe_check_libs=" -ldnet "
4680 cat > conftest.$ac_ext <<EOF 4718 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure" 4719 #line 4720 "configure"
4682 #include "confdefs.h" 4720 #include "confdefs.h"
4683 /* Override any gcc2 internal prototype to avoid an error. */ 4721 /* Override any gcc2 internal prototype to avoid an error. */
4684 /* We use char because int might match the return type of a gcc2 4722 /* We use char because int might match the return type of a gcc2
4685 builtin and then its argument prototype would still apply. */ 4723 builtin and then its argument prototype would still apply. */
4686 char dnet_ntoa(); 4724 char dnet_ntoa();
4687 4725
4688 int main() { 4726 int main() {
4689 dnet_ntoa() 4727 dnet_ntoa()
4690 ; return 0; } 4728 ; return 0; }
4691 EOF 4729 EOF
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4730 if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4693 rm -rf conftest* 4731 rm -rf conftest*
4694 eval "ac_cv_lib_$ac_lib_var=yes" 4732 eval "ac_cv_lib_$ac_lib_var=yes"
4695 else 4733 else
4696 echo "configure: failed program was:" >&5 4734 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5 4735 cat conftest.$ac_ext >&5
4711 fi 4749 fi
4712 4750
4713 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4751 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4714 4752
4715 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4753 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4716 echo "configure:4717: checking for dnet_ntoa in -ldnet_stub" >&5 4754 echo "configure:4755: checking for dnet_ntoa in -ldnet_stub" >&5
4717 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4755 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4718 4756
4719 xe_check_libs=" -ldnet_stub " 4757 xe_check_libs=" -ldnet_stub "
4720 cat > conftest.$ac_ext <<EOF 4758 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure" 4759 #line 4760 "configure"
4722 #include "confdefs.h" 4760 #include "confdefs.h"
4723 /* Override any gcc2 internal prototype to avoid an error. */ 4761 /* Override any gcc2 internal prototype to avoid an error. */
4724 /* We use char because int might match the return type of a gcc2 4762 /* We use char because int might match the return type of a gcc2
4725 builtin and then its argument prototype would still apply. */ 4763 builtin and then its argument prototype would still apply. */
4726 char dnet_ntoa(); 4764 char dnet_ntoa();
4727 4765
4728 int main() { 4766 int main() {
4729 dnet_ntoa() 4767 dnet_ntoa()
4730 ; return 0; } 4768 ; return 0; }
4731 EOF 4769 EOF
4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4733 rm -rf conftest* 4771 rm -rf conftest*
4734 eval "ac_cv_lib_$ac_lib_var=yes" 4772 eval "ac_cv_lib_$ac_lib_var=yes"
4735 else 4773 else
4736 echo "configure: failed program was:" >&5 4774 echo "configure: failed program was:" >&5
4737 cat conftest.$ac_ext >&5 4775 cat conftest.$ac_ext >&5
4756 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4794 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4757 # needs -lnsl. 4795 # needs -lnsl.
4758 # The nsl library prevents programs from opening the X display 4796 # The nsl library prevents programs from opening the X display
4759 # on Irix 5.2, according to dickey@clark.net. 4797 # on Irix 5.2, according to dickey@clark.net.
4760 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4798 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4761 echo "configure:4762: checking for gethostbyname" >&5 4799 echo "configure:4800: checking for gethostbyname" >&5
4762 4800
4763 cat > conftest.$ac_ext <<EOF 4801 cat > conftest.$ac_ext <<EOF
4764 #line 4765 "configure" 4802 #line 4803 "configure"
4765 #include "confdefs.h" 4803 #include "confdefs.h"
4766 /* System header to define __stub macros and hopefully few prototypes, 4804 /* System header to define __stub macros and hopefully few prototypes,
4767 which can conflict with char gethostbyname(); below. */ 4805 which can conflict with char gethostbyname(); below. */
4768 #include <assert.h> 4806 #include <assert.h>
4769 /* Override any gcc2 internal prototype to avoid an error. */ 4807 /* Override any gcc2 internal prototype to avoid an error. */
4782 gethostbyname(); 4820 gethostbyname();
4783 #endif 4821 #endif
4784 4822
4785 ; return 0; } 4823 ; return 0; }
4786 EOF 4824 EOF
4787 if { (eval echo configure:4788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4825 if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4788 rm -rf conftest* 4826 rm -rf conftest*
4789 eval "ac_cv_func_gethostbyname=yes" 4827 eval "ac_cv_func_gethostbyname=yes"
4790 else 4828 else
4791 echo "configure: failed program was:" >&5 4829 echo "configure: failed program was:" >&5
4792 cat conftest.$ac_ext >&5 4830 cat conftest.$ac_ext >&5
4803 fi 4841 fi
4804 4842
4805 if test $ac_cv_func_gethostbyname = no; then 4843 if test $ac_cv_func_gethostbyname = no; then
4806 4844
4807 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4845 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4808 echo "configure:4809: checking for gethostbyname in -lnsl" >&5 4846 echo "configure:4847: checking for gethostbyname in -lnsl" >&5
4809 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4847 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4810 4848
4811 xe_check_libs=" -lnsl " 4849 xe_check_libs=" -lnsl "
4812 cat > conftest.$ac_ext <<EOF 4850 cat > conftest.$ac_ext <<EOF
4813 #line 4814 "configure" 4851 #line 4852 "configure"
4814 #include "confdefs.h" 4852 #include "confdefs.h"
4815 /* Override any gcc2 internal prototype to avoid an error. */ 4853 /* Override any gcc2 internal prototype to avoid an error. */
4816 /* We use char because int might match the return type of a gcc2 4854 /* We use char because int might match the return type of a gcc2
4817 builtin and then its argument prototype would still apply. */ 4855 builtin and then its argument prototype would still apply. */
4818 char gethostbyname(); 4856 char gethostbyname();
4819 4857
4820 int main() { 4858 int main() {
4821 gethostbyname() 4859 gethostbyname()
4822 ; return 0; } 4860 ; return 0; }
4823 EOF 4861 EOF
4824 if { (eval echo configure:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4862 if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4825 rm -rf conftest* 4863 rm -rf conftest*
4826 eval "ac_cv_lib_$ac_lib_var=yes" 4864 eval "ac_cv_lib_$ac_lib_var=yes"
4827 else 4865 else
4828 echo "configure: failed program was:" >&5 4866 echo "configure: failed program was:" >&5
4829 cat conftest.$ac_ext >&5 4867 cat conftest.$ac_ext >&5
4849 # on later versions), says simon@lia.di.epfl.ch: it contains 4887 # on later versions), says simon@lia.di.epfl.ch: it contains
4850 # gethostby* variants that don't use the nameserver (or something). 4888 # gethostby* variants that don't use the nameserver (or something).
4851 # -lsocket must be given before -lnsl if both are needed. 4889 # -lsocket must be given before -lnsl if both are needed.
4852 # We assume that if connect needs -lnsl, so does gethostbyname. 4890 # We assume that if connect needs -lnsl, so does gethostbyname.
4853 echo $ac_n "checking for connect""... $ac_c" 1>&6 4891 echo $ac_n "checking for connect""... $ac_c" 1>&6
4854 echo "configure:4855: checking for connect" >&5 4892 echo "configure:4893: checking for connect" >&5
4855 4893
4856 cat > conftest.$ac_ext <<EOF 4894 cat > conftest.$ac_ext <<EOF
4857 #line 4858 "configure" 4895 #line 4896 "configure"
4858 #include "confdefs.h" 4896 #include "confdefs.h"
4859 /* System header to define __stub macros and hopefully few prototypes, 4897 /* System header to define __stub macros and hopefully few prototypes,
4860 which can conflict with char connect(); below. */ 4898 which can conflict with char connect(); below. */
4861 #include <assert.h> 4899 #include <assert.h>
4862 /* Override any gcc2 internal prototype to avoid an error. */ 4900 /* Override any gcc2 internal prototype to avoid an error. */
4875 connect(); 4913 connect();
4876 #endif 4914 #endif
4877 4915
4878 ; return 0; } 4916 ; return 0; }
4879 EOF 4917 EOF
4880 if { (eval echo configure:4881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4881 rm -rf conftest* 4919 rm -rf conftest*
4882 eval "ac_cv_func_connect=yes" 4920 eval "ac_cv_func_connect=yes"
4883 else 4921 else
4884 echo "configure: failed program was:" >&5 4922 echo "configure: failed program was:" >&5
4885 cat conftest.$ac_ext >&5 4923 cat conftest.$ac_ext >&5
4898 if test $ac_cv_func_connect = no; then 4936 if test $ac_cv_func_connect = no; then
4899 4937
4900 xe_msg_checking="for connect in -lsocket" 4938 xe_msg_checking="for connect in -lsocket"
4901 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4939 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4902 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4940 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4903 echo "configure:4904: checking "$xe_msg_checking"" >&5 4941 echo "configure:4942: checking "$xe_msg_checking"" >&5
4904 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4942 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4905 4943
4906 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4944 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4907 cat > conftest.$ac_ext <<EOF 4945 cat > conftest.$ac_ext <<EOF
4908 #line 4909 "configure" 4946 #line 4947 "configure"
4909 #include "confdefs.h" 4947 #include "confdefs.h"
4910 /* Override any gcc2 internal prototype to avoid an error. */ 4948 /* Override any gcc2 internal prototype to avoid an error. */
4911 /* We use char because int might match the return type of a gcc2 4949 /* We use char because int might match the return type of a gcc2
4912 builtin and then its argument prototype would still apply. */ 4950 builtin and then its argument prototype would still apply. */
4913 char connect(); 4951 char connect();
4914 4952
4915 int main() { 4953 int main() {
4916 connect() 4954 connect()
4917 ; return 0; } 4955 ; return 0; }
4918 EOF 4956 EOF
4919 if { (eval echo configure:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4920 rm -rf conftest* 4958 rm -rf conftest*
4921 eval "ac_cv_lib_$ac_lib_var=yes" 4959 eval "ac_cv_lib_$ac_lib_var=yes"
4922 else 4960 else
4923 echo "configure: failed program was:" >&5 4961 echo "configure: failed program was:" >&5
4924 cat conftest.$ac_ext >&5 4962 cat conftest.$ac_ext >&5
4938 4976
4939 fi 4977 fi
4940 4978
4941 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4979 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4942 echo $ac_n "checking for remove""... $ac_c" 1>&6 4980 echo $ac_n "checking for remove""... $ac_c" 1>&6
4943 echo "configure:4944: checking for remove" >&5 4981 echo "configure:4982: checking for remove" >&5
4944 4982
4945 cat > conftest.$ac_ext <<EOF 4983 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure" 4984 #line 4985 "configure"
4947 #include "confdefs.h" 4985 #include "confdefs.h"
4948 /* System header to define __stub macros and hopefully few prototypes, 4986 /* System header to define __stub macros and hopefully few prototypes,
4949 which can conflict with char remove(); below. */ 4987 which can conflict with char remove(); below. */
4950 #include <assert.h> 4988 #include <assert.h>
4951 /* Override any gcc2 internal prototype to avoid an error. */ 4989 /* Override any gcc2 internal prototype to avoid an error. */
4964 remove(); 5002 remove();
4965 #endif 5003 #endif
4966 5004
4967 ; return 0; } 5005 ; return 0; }
4968 EOF 5006 EOF
4969 if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4970 rm -rf conftest* 5008 rm -rf conftest*
4971 eval "ac_cv_func_remove=yes" 5009 eval "ac_cv_func_remove=yes"
4972 else 5010 else
4973 echo "configure: failed program was:" >&5 5011 echo "configure: failed program was:" >&5
4974 cat conftest.$ac_ext >&5 5012 cat conftest.$ac_ext >&5
4985 fi 5023 fi
4986 5024
4987 if test $ac_cv_func_remove = no; then 5025 if test $ac_cv_func_remove = no; then
4988 5026
4989 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5027 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4990 echo "configure:4991: checking for remove in -lposix" >&5 5028 echo "configure:5029: checking for remove in -lposix" >&5
4991 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5029 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4992 5030
4993 xe_check_libs=" -lposix " 5031 xe_check_libs=" -lposix "
4994 cat > conftest.$ac_ext <<EOF 5032 cat > conftest.$ac_ext <<EOF
4995 #line 4996 "configure" 5033 #line 5034 "configure"
4996 #include "confdefs.h" 5034 #include "confdefs.h"
4997 /* Override any gcc2 internal prototype to avoid an error. */ 5035 /* Override any gcc2 internal prototype to avoid an error. */
4998 /* We use char because int might match the return type of a gcc2 5036 /* We use char because int might match the return type of a gcc2
4999 builtin and then its argument prototype would still apply. */ 5037 builtin and then its argument prototype would still apply. */
5000 char remove(); 5038 char remove();
5001 5039
5002 int main() { 5040 int main() {
5003 remove() 5041 remove()
5004 ; return 0; } 5042 ; return 0; }
5005 EOF 5043 EOF
5006 if { (eval echo configure:5007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5044 if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5007 rm -rf conftest* 5045 rm -rf conftest*
5008 eval "ac_cv_lib_$ac_lib_var=yes" 5046 eval "ac_cv_lib_$ac_lib_var=yes"
5009 else 5047 else
5010 echo "configure: failed program was:" >&5 5048 echo "configure: failed program was:" >&5
5011 cat conftest.$ac_ext >&5 5049 cat conftest.$ac_ext >&5
5025 5063
5026 fi 5064 fi
5027 5065
5028 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5066 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5029 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5067 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5030 echo "configure:5031: checking for shmat" >&5 5068 echo "configure:5069: checking for shmat" >&5
5031 5069
5032 cat > conftest.$ac_ext <<EOF 5070 cat > conftest.$ac_ext <<EOF
5033 #line 5034 "configure" 5071 #line 5072 "configure"
5034 #include "confdefs.h" 5072 #include "confdefs.h"
5035 /* System header to define __stub macros and hopefully few prototypes, 5073 /* System header to define __stub macros and hopefully few prototypes,
5036 which can conflict with char shmat(); below. */ 5074 which can conflict with char shmat(); below. */
5037 #include <assert.h> 5075 #include <assert.h>
5038 /* Override any gcc2 internal prototype to avoid an error. */ 5076 /* Override any gcc2 internal prototype to avoid an error. */
5051 shmat(); 5089 shmat();
5052 #endif 5090 #endif
5053 5091
5054 ; return 0; } 5092 ; return 0; }
5055 EOF 5093 EOF
5056 if { (eval echo configure:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5094 if { (eval echo configure:5095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5057 rm -rf conftest* 5095 rm -rf conftest*
5058 eval "ac_cv_func_shmat=yes" 5096 eval "ac_cv_func_shmat=yes"
5059 else 5097 else
5060 echo "configure: failed program was:" >&5 5098 echo "configure: failed program was:" >&5
5061 cat conftest.$ac_ext >&5 5099 cat conftest.$ac_ext >&5
5072 fi 5110 fi
5073 5111
5074 if test $ac_cv_func_shmat = no; then 5112 if test $ac_cv_func_shmat = no; then
5075 5113
5076 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5114 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5077 echo "configure:5078: checking for shmat in -lipc" >&5 5115 echo "configure:5116: checking for shmat in -lipc" >&5
5078 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5116 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5079 5117
5080 xe_check_libs=" -lipc " 5118 xe_check_libs=" -lipc "
5081 cat > conftest.$ac_ext <<EOF 5119 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure" 5120 #line 5121 "configure"
5083 #include "confdefs.h" 5121 #include "confdefs.h"
5084 /* Override any gcc2 internal prototype to avoid an error. */ 5122 /* Override any gcc2 internal prototype to avoid an error. */
5085 /* We use char because int might match the return type of a gcc2 5123 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */ 5124 builtin and then its argument prototype would still apply. */
5087 char shmat(); 5125 char shmat();
5088 5126
5089 int main() { 5127 int main() {
5090 shmat() 5128 shmat()
5091 ; return 0; } 5129 ; return 0; }
5092 EOF 5130 EOF
5093 if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5131 if { (eval echo configure:5132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5094 rm -rf conftest* 5132 rm -rf conftest*
5095 eval "ac_cv_lib_$ac_lib_var=yes" 5133 eval "ac_cv_lib_$ac_lib_var=yes"
5096 else 5134 else
5097 echo "configure: failed program was:" >&5 5135 echo "configure: failed program was:" >&5
5098 cat conftest.$ac_ext >&5 5136 cat conftest.$ac_ext >&5
5122 # These have to be linked with before -lX11, unlike the other 5160 # These have to be linked with before -lX11, unlike the other
5123 # libraries we check for below, so use a different variable. 5161 # libraries we check for below, so use a different variable.
5124 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5162 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5125 5163
5126 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 5164 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5127 echo "configure:5128: checking for IceConnectionNumber in -lICE" >&5 5165 echo "configure:5166: checking for IceConnectionNumber in -lICE" >&5
5128 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5166 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5129 5167
5130 xe_check_libs=" -lICE " 5168 xe_check_libs=" -lICE "
5131 cat > conftest.$ac_ext <<EOF 5169 cat > conftest.$ac_ext <<EOF
5132 #line 5133 "configure" 5170 #line 5171 "configure"
5133 #include "confdefs.h" 5171 #include "confdefs.h"
5134 /* Override any gcc2 internal prototype to avoid an error. */ 5172 /* Override any gcc2 internal prototype to avoid an error. */
5135 /* We use char because int might match the return type of a gcc2 5173 /* We use char because int might match the return type of a gcc2
5136 builtin and then its argument prototype would still apply. */ 5174 builtin and then its argument prototype would still apply. */
5137 char IceConnectionNumber(); 5175 char IceConnectionNumber();
5138 5176
5139 int main() { 5177 int main() {
5140 IceConnectionNumber() 5178 IceConnectionNumber()
5141 ; return 0; } 5179 ; return 0; }
5142 EOF 5180 EOF
5143 if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5181 if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5144 rm -rf conftest* 5182 rm -rf conftest*
5145 eval "ac_cv_lib_$ac_lib_var=yes" 5183 eval "ac_cv_lib_$ac_lib_var=yes"
5146 else 5184 else
5147 echo "configure: failed program was:" >&5 5185 echo "configure: failed program was:" >&5
5148 cat conftest.$ac_ext >&5 5186 cat conftest.$ac_ext >&5
5305 EOF 5343 EOF
5306 } 5344 }
5307 5345
5308 5346
5309 echo "checking for X defines extracted by xmkmf" 1>&6 5347 echo "checking for X defines extracted by xmkmf" 1>&6
5310 echo "configure:5311: checking for X defines extracted by xmkmf" >&5 5348 echo "configure:5349: checking for X defines extracted by xmkmf" >&5
5311 rm -fr conftestdir 5349 rm -fr conftestdir
5312 if mkdir conftestdir; then 5350 if mkdir conftestdir; then
5313 cd conftestdir 5351 cd conftestdir
5314 cat > Imakefile <<'EOF' 5352 cat > Imakefile <<'EOF'
5315 xetest: 5353 xetest:
5337 done 5375 done
5338 fi 5376 fi
5339 5377
5340 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5378 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5341 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5379 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5342 echo "configure:5343: checking for X11/Intrinsic.h" >&5 5380 echo "configure:5381: checking for X11/Intrinsic.h" >&5
5343 5381
5344 cat > conftest.$ac_ext <<EOF 5382 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure" 5383 #line 5384 "configure"
5346 #include "confdefs.h" 5384 #include "confdefs.h"
5347 #include <X11/Intrinsic.h> 5385 #include <X11/Intrinsic.h>
5348 EOF 5386 EOF
5349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5350 { (eval echo configure:5351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5388 { (eval echo configure:5389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5351 ac_err=`grep -v '^ *+' conftest.out` 5389 ac_err=`grep -v '^ *+' conftest.out`
5352 if test -z "$ac_err"; then 5390 if test -z "$ac_err"; then
5353 rm -rf conftest* 5391 rm -rf conftest*
5354 eval "ac_cv_header_$ac_safe=yes" 5392 eval "ac_cv_header_$ac_safe=yes"
5355 else 5393 else
5369 fi 5407 fi
5370 5408
5371 5409
5372 5410
5373 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5411 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5374 echo "configure:5375: checking for XOpenDisplay in -lX11" >&5 5412 echo "configure:5413: checking for XOpenDisplay in -lX11" >&5
5375 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5413 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5376 5414
5377 xe_check_libs=" -lX11 " 5415 xe_check_libs=" -lX11 "
5378 cat > conftest.$ac_ext <<EOF 5416 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure" 5417 #line 5418 "configure"
5380 #include "confdefs.h" 5418 #include "confdefs.h"
5381 /* Override any gcc2 internal prototype to avoid an error. */ 5419 /* Override any gcc2 internal prototype to avoid an error. */
5382 /* We use char because int might match the return type of a gcc2 5420 /* We use char because int might match the return type of a gcc2
5383 builtin and then its argument prototype would still apply. */ 5421 builtin and then its argument prototype would still apply. */
5384 char XOpenDisplay(); 5422 char XOpenDisplay();
5385 5423
5386 int main() { 5424 int main() {
5387 XOpenDisplay() 5425 XOpenDisplay()
5388 ; return 0; } 5426 ; return 0; }
5389 EOF 5427 EOF
5390 if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5428 if { (eval echo configure:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5391 rm -rf conftest* 5429 rm -rf conftest*
5392 eval "ac_cv_lib_$ac_lib_var=yes" 5430 eval "ac_cv_lib_$ac_lib_var=yes"
5393 else 5431 else
5394 echo "configure: failed program was:" >&5 5432 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5 5433 cat conftest.$ac_ext >&5
5410 if test "$have_lib_x11" != "yes"; then 5448 if test "$have_lib_x11" != "yes"; then
5411 5449
5412 xe_msg_checking="for XGetFontProperty in -lX11" 5450 xe_msg_checking="for XGetFontProperty in -lX11"
5413 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5451 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5414 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5452 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5415 echo "configure:5416: checking "$xe_msg_checking"" >&5 5453 echo "configure:5454: checking "$xe_msg_checking"" >&5
5416 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5454 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5417 5455
5418 xe_check_libs=" -lX11 -b i486-linuxaout" 5456 xe_check_libs=" -lX11 -b i486-linuxaout"
5419 cat > conftest.$ac_ext <<EOF 5457 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure" 5458 #line 5459 "configure"
5421 #include "confdefs.h" 5459 #include "confdefs.h"
5422 /* Override any gcc2 internal prototype to avoid an error. */ 5460 /* Override any gcc2 internal prototype to avoid an error. */
5423 /* We use char because int might match the return type of a gcc2 5461 /* We use char because int might match the return type of a gcc2
5424 builtin and then its argument prototype would still apply. */ 5462 builtin and then its argument prototype would still apply. */
5425 char XGetFontProperty(); 5463 char XGetFontProperty();
5426 5464
5427 int main() { 5465 int main() {
5428 XGetFontProperty() 5466 XGetFontProperty()
5429 ; return 0; } 5467 ; return 0; }
5430 EOF 5468 EOF
5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5469 if { (eval echo configure:5470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5432 rm -rf conftest* 5470 rm -rf conftest*
5433 eval "ac_cv_lib_$ac_lib_var=yes" 5471 eval "ac_cv_lib_$ac_lib_var=yes"
5434 else 5472 else
5435 echo "configure: failed program was:" >&5 5473 echo "configure: failed program was:" >&5
5436 cat conftest.$ac_ext >&5 5474 cat conftest.$ac_ext >&5
5453 libs_x="-lX11" 5491 libs_x="-lX11"
5454 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5492 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5455 5493
5456 5494
5457 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5495 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5458 echo "configure:5459: checking for XShapeSelectInput in -lXext" >&5 5496 echo "configure:5497: checking for XShapeSelectInput in -lXext" >&5
5459 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5497 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5460 5498
5461 xe_check_libs=" -lXext " 5499 xe_check_libs=" -lXext "
5462 cat > conftest.$ac_ext <<EOF 5500 cat > conftest.$ac_ext <<EOF
5463 #line 5464 "configure" 5501 #line 5502 "configure"
5464 #include "confdefs.h" 5502 #include "confdefs.h"
5465 /* Override any gcc2 internal prototype to avoid an error. */ 5503 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2 5504 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */ 5505 builtin and then its argument prototype would still apply. */
5468 char XShapeSelectInput(); 5506 char XShapeSelectInput();
5469 5507
5470 int main() { 5508 int main() {
5471 XShapeSelectInput() 5509 XShapeSelectInput()
5472 ; return 0; } 5510 ; return 0; }
5473 EOF 5511 EOF
5474 if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5475 rm -rf conftest* 5513 rm -rf conftest*
5476 eval "ac_cv_lib_$ac_lib_var=yes" 5514 eval "ac_cv_lib_$ac_lib_var=yes"
5477 else 5515 else
5478 echo "configure: failed program was:" >&5 5516 echo "configure: failed program was:" >&5
5479 cat conftest.$ac_ext >&5 5517 cat conftest.$ac_ext >&5
5492 5530
5493 5531
5494 5532
5495 5533
5496 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5534 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5497 echo "configure:5498: checking for XtOpenDisplay in -lXt" >&5 5535 echo "configure:5536: checking for XtOpenDisplay in -lXt" >&5
5498 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5536 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5499 5537
5500 xe_check_libs=" -lXt " 5538 xe_check_libs=" -lXt "
5501 cat > conftest.$ac_ext <<EOF 5539 cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure" 5540 #line 5541 "configure"
5503 #include "confdefs.h" 5541 #include "confdefs.h"
5504 /* Override any gcc2 internal prototype to avoid an error. */ 5542 /* Override any gcc2 internal prototype to avoid an error. */
5505 /* We use char because int might match the return type of a gcc2 5543 /* We use char because int might match the return type of a gcc2
5506 builtin and then its argument prototype would still apply. */ 5544 builtin and then its argument prototype would still apply. */
5507 char XtOpenDisplay(); 5545 char XtOpenDisplay();
5508 5546
5509 int main() { 5547 int main() {
5510 XtOpenDisplay() 5548 XtOpenDisplay()
5511 ; return 0; } 5549 ; return 0; }
5512 EOF 5550 EOF
5513 if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5551 if { (eval echo configure:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5514 rm -rf conftest* 5552 rm -rf conftest*
5515 eval "ac_cv_lib_$ac_lib_var=yes" 5553 eval "ac_cv_lib_$ac_lib_var=yes"
5516 else 5554 else
5517 echo "configure: failed program was:" >&5 5555 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5 5556 cat conftest.$ac_ext >&5
5531 fi 5569 fi
5532 5570
5533 5571
5534 5572
5535 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5573 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5536 echo "configure:5537: checking the version of X11 being used" >&5 5574 echo "configure:5575: checking the version of X11 being used" >&5
5537 cat > conftest.$ac_ext <<EOF 5575 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure" 5576 #line 5577 "configure"
5539 #include "confdefs.h" 5577 #include "confdefs.h"
5540 #include <X11/Intrinsic.h> 5578 #include <X11/Intrinsic.h>
5541 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5579 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5542 EOF 5580 EOF
5543 if { (eval echo configure:5544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5544 then 5582 then
5545 ./conftest foobar; x11_release=$? 5583 ./conftest foobar; x11_release=$?
5546 else 5584 else
5547 echo "configure: failed program was:" >&5 5585 echo "configure: failed program was:" >&5
5548 cat conftest.$ac_ext >&5 5586 cat conftest.$ac_ext >&5
5562 5600
5563 for ac_hdr in X11/Xlocale.h 5601 for ac_hdr in X11/Xlocale.h
5564 do 5602 do
5565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5567 echo "configure:5568: checking for $ac_hdr" >&5 5605 echo "configure:5606: checking for $ac_hdr" >&5
5568 5606
5569 cat > conftest.$ac_ext <<EOF 5607 cat > conftest.$ac_ext <<EOF
5570 #line 5571 "configure" 5608 #line 5609 "configure"
5571 #include "confdefs.h" 5609 #include "confdefs.h"
5572 #include <$ac_hdr> 5610 #include <$ac_hdr>
5573 EOF 5611 EOF
5574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5612 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; } 5613 { (eval echo configure:5614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5576 ac_err=`grep -v '^ *+' conftest.out` 5614 ac_err=`grep -v '^ *+' conftest.out`
5577 if test -z "$ac_err"; then 5615 if test -z "$ac_err"; then
5578 rm -rf conftest* 5616 rm -rf conftest*
5579 eval "ac_cv_header_$ac_safe=yes" 5617 eval "ac_cv_header_$ac_safe=yes"
5580 else 5618 else
5601 fi 5639 fi
5602 done 5640 done
5603 5641
5604 5642
5605 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5643 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5606 echo "configure:5607: checking for XFree86" >&5 5644 echo "configure:5645: checking for XFree86" >&5
5607 if test -d "/usr/X386/include" -o \ 5645 if test -d "/usr/X386/include" -o \
5608 -f "/etc/XF86Config" -o \ 5646 -f "/etc/XF86Config" -o \
5609 -f "/etc/X11/XF86Config" -o \ 5647 -f "/etc/X11/XF86Config" -o \
5610 -f "/usr/X11R6/lib/X11/XF86Config"; then 5648 -f "/usr/X11R6/lib/X11/XF86Config"; then
5611 echo "$ac_t""yes" 1>&6 5649 echo "$ac_t""yes" 1>&6
5621 echo "$ac_t""no" 1>&6 5659 echo "$ac_t""no" 1>&6
5622 fi 5660 fi
5623 5661
5624 test -z "$with_xmu" && { 5662 test -z "$with_xmu" && {
5625 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5663 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5626 echo "configure:5627: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5664 echo "configure:5665: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5627 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5665 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5628 5666
5629 xe_check_libs=" -lXmu " 5667 xe_check_libs=" -lXmu "
5630 cat > conftest.$ac_ext <<EOF 5668 cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure" 5669 #line 5670 "configure"
5632 #include "confdefs.h" 5670 #include "confdefs.h"
5633 /* Override any gcc2 internal prototype to avoid an error. */ 5671 /* Override any gcc2 internal prototype to avoid an error. */
5634 /* We use char because int might match the return type of a gcc2 5672 /* We use char because int might match the return type of a gcc2
5635 builtin and then its argument prototype would still apply. */ 5673 builtin and then its argument prototype would still apply. */
5636 char XmuReadBitmapDataFromFile(); 5674 char XmuReadBitmapDataFromFile();
5637 5675
5638 int main() { 5676 int main() {
5639 XmuReadBitmapDataFromFile() 5677 XmuReadBitmapDataFromFile()
5640 ; return 0; } 5678 ; return 0; }
5641 EOF 5679 EOF
5642 if { (eval echo configure:5643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5680 if { (eval echo configure:5681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5643 rm -rf conftest* 5681 rm -rf conftest*
5644 eval "ac_cv_lib_$ac_lib_var=yes" 5682 eval "ac_cv_lib_$ac_lib_var=yes"
5645 else 5683 else
5646 echo "configure: failed program was:" >&5 5684 echo "configure: failed program was:" >&5
5647 cat conftest.$ac_ext >&5 5685 cat conftest.$ac_ext >&5
5676 5714
5677 fi 5715 fi
5678 5716
5679 5717
5680 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5718 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5681 echo "configure:5682: checking for main in -lXbsd" >&5 5719 echo "configure:5720: checking for main in -lXbsd" >&5
5682 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5720 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5683 5721
5684 xe_check_libs=" -lXbsd " 5722 xe_check_libs=" -lXbsd "
5685 cat > conftest.$ac_ext <<EOF 5723 cat > conftest.$ac_ext <<EOF
5686 #line 5687 "configure" 5724 #line 5725 "configure"
5687 #include "confdefs.h" 5725 #include "confdefs.h"
5688 5726
5689 int main() { 5727 int main() {
5690 main() 5728 main()
5691 ; return 0; } 5729 ; return 0; }
5692 EOF 5730 EOF
5693 if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5694 rm -rf conftest* 5732 rm -rf conftest*
5695 eval "ac_cv_lib_$ac_lib_var=yes" 5733 eval "ac_cv_lib_$ac_lib_var=yes"
5696 else 5734 else
5697 echo "configure: failed program was:" >&5 5735 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5 5736 cat conftest.$ac_ext >&5
5725 fi 5763 fi
5726 5764
5727 fi 5765 fi
5728 if test "$with_msw" != "no"; then 5766 if test "$with_msw" != "no"; then
5729 echo "checking for MS-Windows" 1>&6 5767 echo "checking for MS-Windows" 1>&6
5730 echo "configure:5731: checking for MS-Windows" >&5 5768 echo "configure:5769: checking for MS-Windows" >&5
5731 5769
5732 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 5770 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5733 echo "configure:5734: checking for main in -lgdi32" >&5 5771 echo "configure:5772: checking for main in -lgdi32" >&5
5734 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 5772 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5735 5773
5736 xe_check_libs=" -lgdi32 " 5774 xe_check_libs=" -lgdi32 "
5737 cat > conftest.$ac_ext <<EOF 5775 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure" 5776 #line 5777 "configure"
5739 #include "confdefs.h" 5777 #include "confdefs.h"
5740 5778
5741 int main() { 5779 int main() {
5742 main() 5780 main()
5743 ; return 0; } 5781 ; return 0; }
5744 EOF 5782 EOF
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5746 rm -rf conftest* 5784 rm -rf conftest*
5747 eval "ac_cv_lib_$ac_lib_var=yes" 5785 eval "ac_cv_lib_$ac_lib_var=yes"
5748 else 5786 else
5749 echo "configure: failed program was:" >&5 5787 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5 5788 cat conftest.$ac_ext >&5
5804 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 5842 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
5805 echo " xemacs will be linked with \"dialog-msw.o\"" 5843 echo " xemacs will be linked with \"dialog-msw.o\""
5806 fi 5844 fi
5807 fi 5845 fi
5808 cat > conftest.$ac_ext <<EOF 5846 cat > conftest.$ac_ext <<EOF
5809 #line 5810 "configure" 5847 #line 5848 "configure"
5810 #include "confdefs.h" 5848 #include "confdefs.h"
5811 #include <fcntl.h> 5849 #include <fcntl.h>
5812 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 5850 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
5813 EOF 5851 EOF
5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5852 if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5815 then 5853 then
5816 { test "$extra_verbose" = "yes" && cat << \EOF 5854 { test "$extra_verbose" = "yes" && cat << \EOF
5817 Defining HAVE_MSG_SELECT 5855 Defining HAVE_MSG_SELECT
5818 EOF 5856 EOF
5819 cat >> confdefs.h <<\EOF 5857 cat >> confdefs.h <<\EOF
5887 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5925 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5888 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5926 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5889 esac 5927 esac
5890 5928
5891 echo "checking for session-management option" 1>&6 5929 echo "checking for session-management option" 1>&6
5892 echo "configure:5893: checking for session-management option" >&5; 5930 echo "configure:5931: checking for session-management option" >&5;
5893 if test "$with_session" != "no"; then 5931 if test "$with_session" != "no"; then
5894 { test "$extra_verbose" = "yes" && cat << \EOF 5932 { test "$extra_verbose" = "yes" && cat << \EOF
5895 Defining HAVE_SESSION 5933 Defining HAVE_SESSION
5896 EOF 5934 EOF
5897 cat >> confdefs.h <<\EOF 5935 cat >> confdefs.h <<\EOF
5902 fi 5940 fi
5903 5941
5904 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5942 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5905 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5943 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5906 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5944 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5907 echo "configure:5908: checking for X11/Xauth.h" >&5 5945 echo "configure:5946: checking for X11/Xauth.h" >&5
5908 5946
5909 cat > conftest.$ac_ext <<EOF 5947 cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure" 5948 #line 5949 "configure"
5911 #include "confdefs.h" 5949 #include "confdefs.h"
5912 #include <X11/Xauth.h> 5950 #include <X11/Xauth.h>
5913 EOF 5951 EOF
5914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5915 { (eval echo configure:5916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5953 { (eval echo configure:5954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5916 ac_err=`grep -v '^ *+' conftest.out` 5954 ac_err=`grep -v '^ *+' conftest.out`
5917 if test -z "$ac_err"; then 5955 if test -z "$ac_err"; then
5918 rm -rf conftest* 5956 rm -rf conftest*
5919 eval "ac_cv_header_$ac_safe=yes" 5957 eval "ac_cv_header_$ac_safe=yes"
5920 else 5958 else
5933 with_xauth=no 5971 with_xauth=no
5934 fi 5972 fi
5935 } 5973 }
5936 test -z "$with_xauth" && { 5974 test -z "$with_xauth" && {
5937 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5975 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5938 echo "configure:5939: checking for XauGetAuthByAddr in -lXau" >&5 5976 echo "configure:5977: checking for XauGetAuthByAddr in -lXau" >&5
5939 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5977 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5940 5978
5941 xe_check_libs=" -lXau " 5979 xe_check_libs=" -lXau "
5942 cat > conftest.$ac_ext <<EOF 5980 cat > conftest.$ac_ext <<EOF
5943 #line 5944 "configure" 5981 #line 5982 "configure"
5944 #include "confdefs.h" 5982 #include "confdefs.h"
5945 /* Override any gcc2 internal prototype to avoid an error. */ 5983 /* Override any gcc2 internal prototype to avoid an error. */
5946 /* We use char because int might match the return type of a gcc2 5984 /* We use char because int might match the return type of a gcc2
5947 builtin and then its argument prototype would still apply. */ 5985 builtin and then its argument prototype would still apply. */
5948 char XauGetAuthByAddr(); 5986 char XauGetAuthByAddr();
5949 5987
5950 int main() { 5988 int main() {
5951 XauGetAuthByAddr() 5989 XauGetAuthByAddr()
5952 ; return 0; } 5990 ; return 0; }
5953 EOF 5991 EOF
5954 if { (eval echo configure:5955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5992 if { (eval echo configure:5993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5955 rm -rf conftest* 5993 rm -rf conftest*
5956 eval "ac_cv_lib_$ac_lib_var=yes" 5994 eval "ac_cv_lib_$ac_lib_var=yes"
5957 else 5995 else
5958 echo "configure: failed program was:" >&5 5996 echo "configure: failed program was:" >&5
5959 cat conftest.$ac_ext >&5 5997 cat conftest.$ac_ext >&5
5994 6032
5995 if test "$with_tooltalk" != "no" ; then 6033 if test "$with_tooltalk" != "no" ; then
5996 for dir in "" "Tt/" "desktop/" ; do 6034 for dir in "" "Tt/" "desktop/" ; do
5997 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6035 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5998 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6036 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5999 echo "configure:6000: checking for ${dir}tt_c.h" >&5 6037 echo "configure:6038: checking for ${dir}tt_c.h" >&5
6000 6038
6001 cat > conftest.$ac_ext <<EOF 6039 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure" 6040 #line 6041 "configure"
6003 #include "confdefs.h" 6041 #include "confdefs.h"
6004 #include <${dir}tt_c.h> 6042 #include <${dir}tt_c.h>
6005 EOF 6043 EOF
6006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6007 { (eval echo configure:6008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6045 { (eval echo configure:6046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6008 ac_err=`grep -v '^ *+' conftest.out` 6046 ac_err=`grep -v '^ *+' conftest.out`
6009 if test -z "$ac_err"; then 6047 if test -z "$ac_err"; then
6010 rm -rf conftest* 6048 rm -rf conftest*
6011 eval "ac_cv_header_$ac_safe=yes" 6049 eval "ac_cv_header_$ac_safe=yes"
6012 else 6050 else
6038 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6076 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6039 6077
6040 xe_msg_checking="for tt_message_create in -ltt" 6078 xe_msg_checking="for tt_message_create in -ltt"
6041 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6079 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6042 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6080 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6043 echo "configure:6044: checking "$xe_msg_checking"" >&5 6081 echo "configure:6082: checking "$xe_msg_checking"" >&5
6044 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6082 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6045 6083
6046 xe_check_libs=" -ltt $extra_libs" 6084 xe_check_libs=" -ltt $extra_libs"
6047 cat > conftest.$ac_ext <<EOF 6085 cat > conftest.$ac_ext <<EOF
6048 #line 6049 "configure" 6086 #line 6087 "configure"
6049 #include "confdefs.h" 6087 #include "confdefs.h"
6050 /* Override any gcc2 internal prototype to avoid an error. */ 6088 /* Override any gcc2 internal prototype to avoid an error. */
6051 /* We use char because int might match the return type of a gcc2 6089 /* We use char because int might match the return type of a gcc2
6052 builtin and then its argument prototype would still apply. */ 6090 builtin and then its argument prototype would still apply. */
6053 char tt_message_create(); 6091 char tt_message_create();
6054 6092
6055 int main() { 6093 int main() {
6056 tt_message_create() 6094 tt_message_create()
6057 ; return 0; } 6095 ; return 0; }
6058 EOF 6096 EOF
6059 if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6060 rm -rf conftest* 6098 rm -rf conftest*
6061 eval "ac_cv_lib_$ac_lib_var=yes" 6099 eval "ac_cv_lib_$ac_lib_var=yes"
6062 else 6100 else
6063 echo "configure: failed program was:" >&5 6101 echo "configure: failed program was:" >&5
6064 cat conftest.$ac_ext >&5 6102 cat conftest.$ac_ext >&5
6111 fi 6149 fi
6112 fi 6150 fi
6113 6151
6114 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6152 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6115 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6153 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6116 echo "configure:6117: checking for Dt/Dt.h" >&5 6154 echo "configure:6155: checking for Dt/Dt.h" >&5
6117 6155
6118 cat > conftest.$ac_ext <<EOF 6156 cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure" 6157 #line 6158 "configure"
6120 #include "confdefs.h" 6158 #include "confdefs.h"
6121 #include <Dt/Dt.h> 6159 #include <Dt/Dt.h>
6122 EOF 6160 EOF
6123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6124 { (eval echo configure:6125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6162 { (eval echo configure:6163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6125 ac_err=`grep -v '^ *+' conftest.out` 6163 ac_err=`grep -v '^ *+' conftest.out`
6126 if test -z "$ac_err"; then 6164 if test -z "$ac_err"; then
6127 rm -rf conftest* 6165 rm -rf conftest*
6128 eval "ac_cv_header_$ac_safe=yes" 6166 eval "ac_cv_header_$ac_safe=yes"
6129 else 6167 else
6142 with_cde=no 6180 with_cde=no
6143 fi 6181 fi
6144 } 6182 }
6145 test -z "$with_cde" && { 6183 test -z "$with_cde" && {
6146 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6184 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6147 echo "configure:6148: checking for DtDndDragStart in -lDtSvc" >&5 6185 echo "configure:6186: checking for DtDndDragStart in -lDtSvc" >&5
6148 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6186 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6149 6187
6150 xe_check_libs=" -lDtSvc " 6188 xe_check_libs=" -lDtSvc "
6151 cat > conftest.$ac_ext <<EOF 6189 cat > conftest.$ac_ext <<EOF
6152 #line 6153 "configure" 6190 #line 6191 "configure"
6153 #include "confdefs.h" 6191 #include "confdefs.h"
6154 /* Override any gcc2 internal prototype to avoid an error. */ 6192 /* Override any gcc2 internal prototype to avoid an error. */
6155 /* We use char because int might match the return type of a gcc2 6193 /* We use char because int might match the return type of a gcc2
6156 builtin and then its argument prototype would still apply. */ 6194 builtin and then its argument prototype would still apply. */
6157 char DtDndDragStart(); 6195 char DtDndDragStart();
6158 6196
6159 int main() { 6197 int main() {
6160 DtDndDragStart() 6198 DtDndDragStart()
6161 ; return 0; } 6199 ; return 0; }
6162 EOF 6200 EOF
6163 if { (eval echo configure:6164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6164 rm -rf conftest* 6202 rm -rf conftest*
6165 eval "ac_cv_lib_$ac_lib_var=yes" 6203 eval "ac_cv_lib_$ac_lib_var=yes"
6166 else 6204 else
6167 echo "configure: failed program was:" >&5 6205 echo "configure: failed program was:" >&5
6168 cat conftest.$ac_ext >&5 6206 cat conftest.$ac_ext >&5
6227 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6265 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6228 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6266 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6229 fi 6267 fi
6230 6268
6231 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6269 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6232 echo "configure:6233: checking if drag and drop API is needed" >&5 6270 echo "configure:6271: checking if drag and drop API is needed" >&5
6233 if test "$with_dragndrop" != "no" ; then 6271 if test "$with_dragndrop" != "no" ; then
6234 if test -n "$dragndrop_proto" ; then 6272 if test -n "$dragndrop_proto" ; then
6235 with_dragndrop=yes 6273 with_dragndrop=yes
6236 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6274 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6237 { test "$extra_verbose" = "yes" && cat << \EOF 6275 { test "$extra_verbose" = "yes" && cat << \EOF
6248 echo "$ac_t""no" 1>&6 6286 echo "$ac_t""no" 1>&6
6249 fi 6287 fi
6250 fi 6288 fi
6251 6289
6252 echo "checking for LDAP" 1>&6 6290 echo "checking for LDAP" 1>&6
6253 echo "configure:6254: checking for LDAP" >&5 6291 echo "configure:6292: checking for LDAP" >&5
6254 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6292 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6255 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6293 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6256 echo "configure:6257: checking for ldap.h" >&5 6294 echo "configure:6295: checking for ldap.h" >&5
6257 6295
6258 cat > conftest.$ac_ext <<EOF 6296 cat > conftest.$ac_ext <<EOF
6259 #line 6260 "configure" 6297 #line 6298 "configure"
6260 #include "confdefs.h" 6298 #include "confdefs.h"
6261 #include <ldap.h> 6299 #include <ldap.h>
6262 EOF 6300 EOF
6263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6264 { (eval echo configure:6265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6302 { (eval echo configure:6303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6265 ac_err=`grep -v '^ *+' conftest.out` 6303 ac_err=`grep -v '^ *+' conftest.out`
6266 if test -z "$ac_err"; then 6304 if test -z "$ac_err"; then
6267 rm -rf conftest* 6305 rm -rf conftest*
6268 eval "ac_cv_header_$ac_safe=yes" 6306 eval "ac_cv_header_$ac_safe=yes"
6269 else 6307 else
6282 with_ldap=no 6320 with_ldap=no
6283 fi 6321 fi
6284 } 6322 }
6285 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6323 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6286 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6324 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6287 echo "configure:6288: checking for lber.h" >&5 6325 echo "configure:6326: checking for lber.h" >&5
6288 6326
6289 cat > conftest.$ac_ext <<EOF 6327 cat > conftest.$ac_ext <<EOF
6290 #line 6291 "configure" 6328 #line 6329 "configure"
6291 #include "confdefs.h" 6329 #include "confdefs.h"
6292 #include <lber.h> 6330 #include <lber.h>
6293 EOF 6331 EOF
6294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6295 { (eval echo configure:6296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6333 { (eval echo configure:6334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6296 ac_err=`grep -v '^ *+' conftest.out` 6334 ac_err=`grep -v '^ *+' conftest.out`
6297 if test -z "$ac_err"; then 6335 if test -z "$ac_err"; then
6298 rm -rf conftest* 6336 rm -rf conftest*
6299 eval "ac_cv_header_$ac_safe=yes" 6337 eval "ac_cv_header_$ac_safe=yes"
6300 else 6338 else
6316 if test "$with_ldap" != "no"; then 6354 if test "$with_ldap" != "no"; then
6317 test -z "$with_umich_ldap" && { 6355 test -z "$with_umich_ldap" && {
6318 xe_msg_checking="for ldap_open in -lldap" 6356 xe_msg_checking="for ldap_open in -lldap"
6319 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6357 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6320 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6358 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6321 echo "configure:6322: checking "$xe_msg_checking"" >&5 6359 echo "configure:6360: checking "$xe_msg_checking"" >&5
6322 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6360 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6323 6361
6324 xe_check_libs=" -lldap -llber" 6362 xe_check_libs=" -lldap -llber"
6325 cat > conftest.$ac_ext <<EOF 6363 cat > conftest.$ac_ext <<EOF
6326 #line 6327 "configure" 6364 #line 6365 "configure"
6327 #include "confdefs.h" 6365 #include "confdefs.h"
6328 /* Override any gcc2 internal prototype to avoid an error. */ 6366 /* Override any gcc2 internal prototype to avoid an error. */
6329 /* We use char because int might match the return type of a gcc2 6367 /* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */ 6368 builtin and then its argument prototype would still apply. */
6331 char ldap_open(); 6369 char ldap_open();
6332 6370
6333 int main() { 6371 int main() {
6334 ldap_open() 6372 ldap_open()
6335 ; return 0; } 6373 ; return 0; }
6336 EOF 6374 EOF
6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6338 rm -rf conftest* 6376 rm -rf conftest*
6339 eval "ac_cv_lib_$ac_lib_var=yes" 6377 eval "ac_cv_lib_$ac_lib_var=yes"
6340 else 6378 else
6341 echo "configure: failed program was:" >&5 6379 echo "configure: failed program was:" >&5
6342 cat conftest.$ac_ext >&5 6380 cat conftest.$ac_ext >&5
6355 fi 6393 fi
6356 6394
6357 } 6395 }
6358 test "$with_umich_ldap" = "no" && { 6396 test "$with_umich_ldap" = "no" && {
6359 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6 6397 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6360 echo "configure:6361: checking for ldap_set_option in -lldap10" >&5 6398 echo "configure:6399: checking for ldap_set_option in -lldap10" >&5
6361 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'` 6399 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6362 6400
6363 xe_check_libs=" -lldap10 " 6401 xe_check_libs=" -lldap10 "
6364 cat > conftest.$ac_ext <<EOF 6402 cat > conftest.$ac_ext <<EOF
6365 #line 6366 "configure" 6403 #line 6404 "configure"
6366 #include "confdefs.h" 6404 #include "confdefs.h"
6367 /* Override any gcc2 internal prototype to avoid an error. */ 6405 /* Override any gcc2 internal prototype to avoid an error. */
6368 /* We use char because int might match the return type of a gcc2 6406 /* We use char because int might match the return type of a gcc2
6369 builtin and then its argument prototype would still apply. */ 6407 builtin and then its argument prototype would still apply. */
6370 char ldap_set_option(); 6408 char ldap_set_option();
6371 6409
6372 int main() { 6410 int main() {
6373 ldap_set_option() 6411 ldap_set_option()
6374 ; return 0; } 6412 ; return 0; }
6375 EOF 6413 EOF
6376 if { (eval echo configure:6377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6377 rm -rf conftest* 6415 rm -rf conftest*
6378 eval "ac_cv_lib_$ac_lib_var=yes" 6416 eval "ac_cv_lib_$ac_lib_var=yes"
6379 else 6417 else
6380 echo "configure: failed program was:" >&5 6418 echo "configure: failed program was:" >&5
6381 cat conftest.$ac_ext >&5 6419 cat conftest.$ac_ext >&5
6435 fi 6473 fi
6436 6474
6437 6475
6438 if test "$window_system" != "none"; then 6476 if test "$window_system" != "none"; then
6439 echo "checking for graphics libraries" 1>&6 6477 echo "checking for graphics libraries" 1>&6
6440 echo "configure:6441: checking for graphics libraries" >&5 6478 echo "configure:6479: checking for graphics libraries" >&5
6441 6479
6442 if test -z "$with_xpm"; then 6480 if test -z "$with_xpm"; then
6443 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6481 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6444 echo "configure:6445: checking for Xpm - no older than 3.4f" >&5 6482 echo "configure:6483: checking for Xpm - no older than 3.4f" >&5
6445 xe_check_libs=-lXpm 6483 xe_check_libs=-lXpm
6446 cat > conftest.$ac_ext <<EOF 6484 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure" 6485 #line 6486 "configure"
6448 #include "confdefs.h" 6486 #include "confdefs.h"
6449 #include <X11/xpm.h> 6487 #include <X11/xpm.h>
6450 int main(int c, char **v) { 6488 int main(int c, char **v) {
6451 return c == 1 ? 0 : 6489 return c == 1 ? 0 :
6452 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6490 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6453 XpmIncludeVersion < 30406 ? 2 : 0 ;} 6491 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6454 EOF 6492 EOF
6455 if { (eval echo configure:6456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 6493 if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6456 then 6494 then
6457 ./conftest dummy_arg; xpm_status=$?; 6495 ./conftest dummy_arg; xpm_status=$?;
6458 if test "$?" = "0"; then 6496 if test "$?" = "0"; then
6459 with_xpm=yes; 6497 with_xpm=yes;
6460 else 6498 else
6491 EOF 6529 EOF
6492 } 6530 }
6493 6531
6494 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6532 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6495 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 6533 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6496 echo "configure:6497: checking for \"FOR_MSW\" xpm" >&5 6534 echo "configure:6535: checking for \"FOR_MSW\" xpm" >&5
6497 xe_check_libs=-lXpm 6535 xe_check_libs=-lXpm
6498 cat > conftest.$ac_ext <<EOF 6536 cat > conftest.$ac_ext <<EOF
6499 #line 6500 "configure" 6537 #line 6538 "configure"
6500 #include "confdefs.h" 6538 #include "confdefs.h"
6501 6539
6502 int main() { 6540 int main() {
6503 XpmCreatePixmapFromData() 6541 XpmCreatePixmapFromData()
6504 ; return 0; } 6542 ; return 0; }
6505 EOF 6543 EOF
6506 if { (eval echo configure:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6544 if { (eval echo configure:6545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6507 rm -rf conftest* 6545 rm -rf conftest*
6508 xpm_for_msw=no 6546 xpm_for_msw=no
6509 else 6547 else
6510 echo "configure: failed program was:" >&5 6548 echo "configure: failed program was:" >&5
6511 cat conftest.$ac_ext >&5 6549 cat conftest.$ac_ext >&5
6528 fi 6566 fi
6529 6567
6530 if test "$with_png $with_tiff" != "no no"; then 6568 if test "$with_png $with_tiff" != "no no"; then
6531 6569
6532 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 6570 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6533 echo "configure:6534: checking for inflate in -lc" >&5 6571 echo "configure:6572: checking for inflate in -lc" >&5
6534 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 6572 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6535 6573
6536 xe_check_libs=" -lc " 6574 xe_check_libs=" -lc "
6537 cat > conftest.$ac_ext <<EOF 6575 cat > conftest.$ac_ext <<EOF
6538 #line 6539 "configure" 6576 #line 6577 "configure"
6539 #include "confdefs.h" 6577 #include "confdefs.h"
6540 /* Override any gcc2 internal prototype to avoid an error. */ 6578 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2 6579 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */ 6580 builtin and then its argument prototype would still apply. */
6543 char inflate(); 6581 char inflate();
6544 6582
6545 int main() { 6583 int main() {
6546 inflate() 6584 inflate()
6547 ; return 0; } 6585 ; return 0; }
6548 EOF 6586 EOF
6549 if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6587 if { (eval echo configure:6588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6550 rm -rf conftest* 6588 rm -rf conftest*
6551 eval "ac_cv_lib_$ac_lib_var=yes" 6589 eval "ac_cv_lib_$ac_lib_var=yes"
6552 else 6590 else
6553 echo "configure: failed program was:" >&5 6591 echo "configure: failed program was:" >&5
6554 cat conftest.$ac_ext >&5 6592 cat conftest.$ac_ext >&5
6563 : 6601 :
6564 else 6602 else
6565 echo "$ac_t""no" 1>&6 6603 echo "$ac_t""no" 1>&6
6566 6604
6567 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 6605 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6568 echo "configure:6569: checking for inflate in -lz" >&5 6606 echo "configure:6607: checking for inflate in -lz" >&5
6569 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 6607 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6570 6608
6571 xe_check_libs=" -lz " 6609 xe_check_libs=" -lz "
6572 cat > conftest.$ac_ext <<EOF 6610 cat > conftest.$ac_ext <<EOF
6573 #line 6574 "configure" 6611 #line 6612 "configure"
6574 #include "confdefs.h" 6612 #include "confdefs.h"
6575 /* Override any gcc2 internal prototype to avoid an error. */ 6613 /* Override any gcc2 internal prototype to avoid an error. */
6576 /* We use char because int might match the return type of a gcc2 6614 /* We use char because int might match the return type of a gcc2
6577 builtin and then its argument prototype would still apply. */ 6615 builtin and then its argument prototype would still apply. */
6578 char inflate(); 6616 char inflate();
6579 6617
6580 int main() { 6618 int main() {
6581 inflate() 6619 inflate()
6582 ; return 0; } 6620 ; return 0; }
6583 EOF 6621 EOF
6584 if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6585 rm -rf conftest* 6623 rm -rf conftest*
6586 eval "ac_cv_lib_$ac_lib_var=yes" 6624 eval "ac_cv_lib_$ac_lib_var=yes"
6587 else 6625 else
6588 echo "configure: failed program was:" >&5 6626 echo "configure: failed program was:" >&5
6589 cat conftest.$ac_ext >&5 6627 cat conftest.$ac_ext >&5
6598 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 6636 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6599 else 6637 else
6600 echo "$ac_t""no" 1>&6 6638 echo "$ac_t""no" 1>&6
6601 6639
6602 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 6640 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6603 echo "configure:6604: checking for inflate in -lgz" >&5 6641 echo "configure:6642: checking for inflate in -lgz" >&5
6604 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 6642 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6605 6643
6606 xe_check_libs=" -lgz " 6644 xe_check_libs=" -lgz "
6607 cat > conftest.$ac_ext <<EOF 6645 cat > conftest.$ac_ext <<EOF
6608 #line 6609 "configure" 6646 #line 6647 "configure"
6609 #include "confdefs.h" 6647 #include "confdefs.h"
6610 /* Override any gcc2 internal prototype to avoid an error. */ 6648 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2 6649 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */ 6650 builtin and then its argument prototype would still apply. */
6613 char inflate(); 6651 char inflate();
6614 6652
6615 int main() { 6653 int main() {
6616 inflate() 6654 inflate()
6617 ; return 0; } 6655 ; return 0; }
6618 EOF 6656 EOF
6619 if { (eval echo configure:6620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6657 if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6620 rm -rf conftest* 6658 rm -rf conftest*
6621 eval "ac_cv_lib_$ac_lib_var=yes" 6659 eval "ac_cv_lib_$ac_lib_var=yes"
6622 else 6660 else
6623 echo "configure: failed program was:" >&5 6661 echo "configure: failed program was:" >&5
6624 cat conftest.$ac_ext >&5 6662 cat conftest.$ac_ext >&5
6643 6681
6644 6682
6645 fi 6683 fi
6646 6684
6647 echo $ac_n "checking for gifreader""... $ac_c" 1>&6 6685 echo $ac_n "checking for gifreader""... $ac_c" 1>&6
6648 echo "configure:6649: checking for gifreader" >&5 6686 echo "configure:6687: checking for gifreader" >&5
6649 test -z "$with_gif" && { ac_safe=`echo "gifrlib.h" | sed 'y%./+-%__p_%'` 6687 test -z "$with_gif" && { ac_safe=`echo "gifrlib.h" | sed 'y%./+-%__p_%'`
6650 echo $ac_n "checking for gifrlib.h""... $ac_c" 1>&6 6688 echo $ac_n "checking for gifrlib.h""... $ac_c" 1>&6
6651 echo "configure:6652: checking for gifrlib.h" >&5 6689 echo "configure:6690: checking for gifrlib.h" >&5
6652 6690
6653 cat > conftest.$ac_ext <<EOF 6691 cat > conftest.$ac_ext <<EOF
6654 #line 6655 "configure" 6692 #line 6693 "configure"
6655 #include "confdefs.h" 6693 #include "confdefs.h"
6656 #include <gifrlib.h> 6694 #include <gifrlib.h>
6657 EOF 6695 EOF
6658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6659 { (eval echo configure:6660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6697 { (eval echo configure:6698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6660 ac_err=`grep -v '^ *+' conftest.out` 6698 ac_err=`grep -v '^ *+' conftest.out`
6661 if test -z "$ac_err"; then 6699 if test -z "$ac_err"; then
6662 rm -rf conftest* 6700 rm -rf conftest*
6663 eval "ac_cv_header_$ac_safe=yes" 6701 eval "ac_cv_header_$ac_safe=yes"
6664 else 6702 else
6677 with_gif=no 6715 with_gif=no
6678 fi 6716 fi
6679 } 6717 }
6680 test -z "$with_gif" && { 6718 test -z "$with_gif" && {
6681 echo $ac_n "checking for GetGifError in -lgifreader""... $ac_c" 1>&6 6719 echo $ac_n "checking for GetGifError in -lgifreader""... $ac_c" 1>&6
6682 echo "configure:6683: checking for GetGifError in -lgifreader" >&5 6720 echo "configure:6721: checking for GetGifError in -lgifreader" >&5
6683 ac_lib_var=`echo gifreader'_'GetGifError | sed 'y%./+-%__p_%'` 6721 ac_lib_var=`echo gifreader'_'GetGifError | sed 'y%./+-%__p_%'`
6684 6722
6685 xe_check_libs=" -lgifreader " 6723 xe_check_libs=" -lgifreader "
6686 cat > conftest.$ac_ext <<EOF 6724 cat > conftest.$ac_ext <<EOF
6687 #line 6688 "configure" 6725 #line 6726 "configure"
6688 #include "confdefs.h" 6726 #include "confdefs.h"
6689 /* Override any gcc2 internal prototype to avoid an error. */ 6727 /* Override any gcc2 internal prototype to avoid an error. */
6690 /* We use char because int might match the return type of a gcc2 6728 /* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */ 6729 builtin and then its argument prototype would still apply. */
6692 char GetGifError(); 6730 char GetGifError();
6693 6731
6694 int main() { 6732 int main() {
6695 GetGifError() 6733 GetGifError()
6696 ; return 0; } 6734 ; return 0; }
6697 EOF 6735 EOF
6698 if { (eval echo configure:6699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6736 if { (eval echo configure:6737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6699 rm -rf conftest* 6737 rm -rf conftest*
6700 eval "ac_cv_lib_$ac_lib_var=yes" 6738 eval "ac_cv_lib_$ac_lib_var=yes"
6701 else 6739 else
6702 echo "configure: failed program was:" >&5 6740 echo "configure: failed program was:" >&5
6703 cat conftest.$ac_ext >&5 6741 cat conftest.$ac_ext >&5
6729 libs_x="-lgifreader $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgifreader\" to \$libs_x"; fi 6767 libs_x="-lgifreader $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgifreader\" to \$libs_x"; fi
6730 fi 6768 fi
6731 6769
6732 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6770 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6733 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6771 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6734 echo "configure:6735: checking for jpeglib.h" >&5 6772 echo "configure:6773: checking for jpeglib.h" >&5
6735 6773
6736 cat > conftest.$ac_ext <<EOF 6774 cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure" 6775 #line 6776 "configure"
6738 #include "confdefs.h" 6776 #include "confdefs.h"
6739 #include <jpeglib.h> 6777 #include <jpeglib.h>
6740 EOF 6778 EOF
6741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6742 { (eval echo configure:6743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6780 { (eval echo configure:6781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6743 ac_err=`grep -v '^ *+' conftest.out` 6781 ac_err=`grep -v '^ *+' conftest.out`
6744 if test -z "$ac_err"; then 6782 if test -z "$ac_err"; then
6745 rm -rf conftest* 6783 rm -rf conftest*
6746 eval "ac_cv_header_$ac_safe=yes" 6784 eval "ac_cv_header_$ac_safe=yes"
6747 else 6785 else
6760 with_jpeg=no 6798 with_jpeg=no
6761 fi 6799 fi
6762 } 6800 }
6763 test -z "$with_jpeg" && { 6801 test -z "$with_jpeg" && {
6764 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6802 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6765 echo "configure:6766: checking for jpeg_destroy_decompress in -ljpeg" >&5 6803 echo "configure:6804: checking for jpeg_destroy_decompress in -ljpeg" >&5
6766 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6804 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6767 6805
6768 xe_check_libs=" -ljpeg " 6806 xe_check_libs=" -ljpeg "
6769 cat > conftest.$ac_ext <<EOF 6807 cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure" 6808 #line 6809 "configure"
6771 #include "confdefs.h" 6809 #include "confdefs.h"
6772 /* Override any gcc2 internal prototype to avoid an error. */ 6810 /* Override any gcc2 internal prototype to avoid an error. */
6773 /* We use char because int might match the return type of a gcc2 6811 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */ 6812 builtin and then its argument prototype would still apply. */
6775 char jpeg_destroy_decompress(); 6813 char jpeg_destroy_decompress();
6776 6814
6777 int main() { 6815 int main() {
6778 jpeg_destroy_decompress() 6816 jpeg_destroy_decompress()
6779 ; return 0; } 6817 ; return 0; }
6780 EOF 6818 EOF
6781 if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6819 if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6782 rm -rf conftest* 6820 rm -rf conftest*
6783 eval "ac_cv_lib_$ac_lib_var=yes" 6821 eval "ac_cv_lib_$ac_lib_var=yes"
6784 else 6822 else
6785 echo "configure: failed program was:" >&5 6823 echo "configure: failed program was:" >&5
6786 cat conftest.$ac_ext >&5 6824 cat conftest.$ac_ext >&5
6812 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6850 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6813 fi 6851 fi
6814 6852
6815 if test -z "$with_png"; then 6853 if test -z "$with_png"; then
6816 echo $ac_n "checking for png.h - no older than 0.96""... $ac_c" 1>&6 6854 echo $ac_n "checking for png.h - no older than 0.96""... $ac_c" 1>&6
6817 echo "configure:6818: checking for png.h - no older than 0.96" >&5 6855 echo "configure:6856: checking for png.h - no older than 0.96" >&5
6818 cat > conftest.$ac_ext <<EOF 6856 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure" 6857 #line 6858 "configure"
6820 #include "confdefs.h" 6858 #include "confdefs.h"
6821 #include <png.h> 6859 #include <png.h>
6822 #if PNG_LIBPNG_VER >= 96 6860 #if PNG_LIBPNG_VER >= 96
6823 yes 6861 yes
6824 #endif 6862 #endif
6834 fi 6872 fi
6835 rm -f conftest* 6873 rm -f conftest*
6836 6874
6837 fi 6875 fi
6838 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6876 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6839 echo "configure:6840: checking for pow" >&5 6877 echo "configure:6878: checking for pow" >&5
6840 6878
6841 cat > conftest.$ac_ext <<EOF 6879 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure" 6880 #line 6881 "configure"
6843 #include "confdefs.h" 6881 #include "confdefs.h"
6844 /* System header to define __stub macros and hopefully few prototypes, 6882 /* System header to define __stub macros and hopefully few prototypes,
6845 which can conflict with char pow(); below. */ 6883 which can conflict with char pow(); below. */
6846 #include <assert.h> 6884 #include <assert.h>
6847 /* Override any gcc2 internal prototype to avoid an error. */ 6885 /* Override any gcc2 internal prototype to avoid an error. */
6860 pow(); 6898 pow();
6861 #endif 6899 #endif
6862 6900
6863 ; return 0; } 6901 ; return 0; }
6864 EOF 6902 EOF
6865 if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6903 if { (eval echo configure:6904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6866 rm -rf conftest* 6904 rm -rf conftest*
6867 eval "ac_cv_func_pow=yes" 6905 eval "ac_cv_func_pow=yes"
6868 else 6906 else
6869 echo "configure: failed program was:" >&5 6907 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5 6908 cat conftest.$ac_ext >&5
6881 with_png=no 6919 with_png=no
6882 fi 6920 fi
6883 } 6921 }
6884 test -z "$with_png" && { 6922 test -z "$with_png" && {
6885 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 6923 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
6886 echo "configure:6887: checking for png_read_image in -lpng" >&5 6924 echo "configure:6925: checking for png_read_image in -lpng" >&5
6887 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6925 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6888 6926
6889 xe_check_libs=" -lpng " 6927 xe_check_libs=" -lpng "
6890 cat > conftest.$ac_ext <<EOF 6928 cat > conftest.$ac_ext <<EOF
6891 #line 6892 "configure" 6929 #line 6930 "configure"
6892 #include "confdefs.h" 6930 #include "confdefs.h"
6893 /* Override any gcc2 internal prototype to avoid an error. */ 6931 /* Override any gcc2 internal prototype to avoid an error. */
6894 /* We use char because int might match the return type of a gcc2 6932 /* We use char because int might match the return type of a gcc2
6895 builtin and then its argument prototype would still apply. */ 6933 builtin and then its argument prototype would still apply. */
6896 char png_read_image(); 6934 char png_read_image();
6897 6935
6898 int main() { 6936 int main() {
6899 png_read_image() 6937 png_read_image()
6900 ; return 0; } 6938 ; return 0; }
6901 EOF 6939 EOF
6902 if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6903 rm -rf conftest* 6941 rm -rf conftest*
6904 eval "ac_cv_lib_$ac_lib_var=yes" 6942 eval "ac_cv_lib_$ac_lib_var=yes"
6905 else 6943 else
6906 echo "configure: failed program was:" >&5 6944 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5 6945 cat conftest.$ac_ext >&5
6933 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 6971 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
6934 fi 6972 fi
6935 6973
6936 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 6974 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
6937 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 6975 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
6938 echo "configure:6939: checking for tiffio.h" >&5 6976 echo "configure:6977: checking for tiffio.h" >&5
6939 6977
6940 cat > conftest.$ac_ext <<EOF 6978 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure" 6979 #line 6980 "configure"
6942 #include "confdefs.h" 6980 #include "confdefs.h"
6943 #include <tiffio.h> 6981 #include <tiffio.h>
6944 EOF 6982 EOF
6945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6946 { (eval echo configure:6947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6984 { (eval echo configure:6985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6947 ac_err=`grep -v '^ *+' conftest.out` 6985 ac_err=`grep -v '^ *+' conftest.out`
6948 if test -z "$ac_err"; then 6986 if test -z "$ac_err"; then
6949 rm -rf conftest* 6987 rm -rf conftest*
6950 eval "ac_cv_header_$ac_safe=yes" 6988 eval "ac_cv_header_$ac_safe=yes"
6951 else 6989 else
6964 with_tiff=no 7002 with_tiff=no
6965 fi 7003 fi
6966 } 7004 }
6967 test -z "$with_tiff" && { 7005 test -z "$with_tiff" && {
6968 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7006 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
6969 echo "configure:6970: checking for TIFFClientOpen in -ltiff" >&5 7007 echo "configure:7008: checking for TIFFClientOpen in -ltiff" >&5
6970 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7008 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
6971 7009
6972 xe_check_libs=" -ltiff " 7010 xe_check_libs=" -ltiff "
6973 cat > conftest.$ac_ext <<EOF 7011 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure" 7012 #line 7013 "configure"
6975 #include "confdefs.h" 7013 #include "confdefs.h"
6976 /* Override any gcc2 internal prototype to avoid an error. */ 7014 /* Override any gcc2 internal prototype to avoid an error. */
6977 /* We use char because int might match the return type of a gcc2 7015 /* We use char because int might match the return type of a gcc2
6978 builtin and then its argument prototype would still apply. */ 7016 builtin and then its argument prototype would still apply. */
6979 char TIFFClientOpen(); 7017 char TIFFClientOpen();
6980 7018
6981 int main() { 7019 int main() {
6982 TIFFClientOpen() 7020 TIFFClientOpen()
6983 ; return 0; } 7021 ; return 0; }
6984 EOF 7022 EOF
6985 if { (eval echo configure:6986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7023 if { (eval echo configure:7024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6986 rm -rf conftest* 7024 rm -rf conftest*
6987 eval "ac_cv_lib_$ac_lib_var=yes" 7025 eval "ac_cv_lib_$ac_lib_var=yes"
6988 else 7026 else
6989 echo "configure: failed program was:" >&5 7027 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5 7028 cat conftest.$ac_ext >&5
7019 7057
7020 7058
7021 if test "$with_x11" = "yes"; then 7059 if test "$with_x11" = "yes"; then
7022 7060
7023 echo "checking for X11 graphics libraries" 1>&6 7061 echo "checking for X11 graphics libraries" 1>&6
7024 echo "configure:7025: checking for X11 graphics libraries" >&5 7062 echo "configure:7063: checking for X11 graphics libraries" >&5
7025 7063
7026 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7064 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7027 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7065 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7028 echo "configure:7029: checking for compface.h" >&5 7066 echo "configure:7067: checking for compface.h" >&5
7029 7067
7030 cat > conftest.$ac_ext <<EOF 7068 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure" 7069 #line 7070 "configure"
7032 #include "confdefs.h" 7070 #include "confdefs.h"
7033 #include <compface.h> 7071 #include <compface.h>
7034 EOF 7072 EOF
7035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7036 { (eval echo configure:7037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7074 { (eval echo configure:7075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7037 ac_err=`grep -v '^ *+' conftest.out` 7075 ac_err=`grep -v '^ *+' conftest.out`
7038 if test -z "$ac_err"; then 7076 if test -z "$ac_err"; then
7039 rm -rf conftest* 7077 rm -rf conftest*
7040 eval "ac_cv_header_$ac_safe=yes" 7078 eval "ac_cv_header_$ac_safe=yes"
7041 else 7079 else
7054 with_xface=no 7092 with_xface=no
7055 fi 7093 fi
7056 } 7094 }
7057 test -z "$with_xface" && { 7095 test -z "$with_xface" && {
7058 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7096 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7059 echo "configure:7060: checking for UnGenFace in -lcompface" >&5 7097 echo "configure:7098: checking for UnGenFace in -lcompface" >&5
7060 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7098 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7061 7099
7062 xe_check_libs=" -lcompface " 7100 xe_check_libs=" -lcompface "
7063 cat > conftest.$ac_ext <<EOF 7101 cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure" 7102 #line 7103 "configure"
7065 #include "confdefs.h" 7103 #include "confdefs.h"
7066 /* Override any gcc2 internal prototype to avoid an error. */ 7104 /* Override any gcc2 internal prototype to avoid an error. */
7067 /* We use char because int might match the return type of a gcc2 7105 /* We use char because int might match the return type of a gcc2
7068 builtin and then its argument prototype would still apply. */ 7106 builtin and then its argument prototype would still apply. */
7069 char UnGenFace(); 7107 char UnGenFace();
7070 7108
7071 int main() { 7109 int main() {
7072 UnGenFace() 7110 UnGenFace()
7073 ; return 0; } 7111 ; return 0; }
7074 EOF 7112 EOF
7075 if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7113 if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7076 rm -rf conftest* 7114 rm -rf conftest*
7077 eval "ac_cv_lib_$ac_lib_var=yes" 7115 eval "ac_cv_lib_$ac_lib_var=yes"
7078 else 7116 else
7079 echo "configure: failed program was:" >&5 7117 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5 7118 cat conftest.$ac_ext >&5
7106 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 7144 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7107 fi 7145 fi
7108 7146
7109 7147
7110 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 7148 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7111 echo "configure:7112: checking for XawScrollbarSetThumb in -lXaw" >&5 7149 echo "configure:7150: checking for XawScrollbarSetThumb in -lXaw" >&5
7112 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7150 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7113 7151
7114 xe_check_libs=" -lXaw " 7152 xe_check_libs=" -lXaw "
7115 cat > conftest.$ac_ext <<EOF 7153 cat > conftest.$ac_ext <<EOF
7116 #line 7117 "configure" 7154 #line 7155 "configure"
7117 #include "confdefs.h" 7155 #include "confdefs.h"
7118 /* Override any gcc2 internal prototype to avoid an error. */ 7156 /* Override any gcc2 internal prototype to avoid an error. */
7119 /* We use char because int might match the return type of a gcc2 7157 /* We use char because int might match the return type of a gcc2
7120 builtin and then its argument prototype would still apply. */ 7158 builtin and then its argument prototype would still apply. */
7121 char XawScrollbarSetThumb(); 7159 char XawScrollbarSetThumb();
7122 7160
7123 int main() { 7161 int main() {
7124 XawScrollbarSetThumb() 7162 XawScrollbarSetThumb()
7125 ; return 0; } 7163 ; return 0; }
7126 EOF 7164 EOF
7127 if { (eval echo configure:7128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7165 if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7128 rm -rf conftest* 7166 rm -rf conftest*
7129 eval "ac_cv_lib_$ac_lib_var=yes" 7167 eval "ac_cv_lib_$ac_lib_var=yes"
7130 else 7168 else
7131 echo "configure: failed program was:" >&5 7169 echo "configure: failed program was:" >&5
7132 cat conftest.$ac_ext >&5 7170 cat conftest.$ac_ext >&5
7146 7184
7147 7185
7148 7186
7149 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 7187 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7150 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 7188 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7151 echo "configure:7152: checking for Xm/Xm.h" >&5 7189 echo "configure:7190: checking for Xm/Xm.h" >&5
7152 7190
7153 cat > conftest.$ac_ext <<EOF 7191 cat > conftest.$ac_ext <<EOF
7154 #line 7155 "configure" 7192 #line 7193 "configure"
7155 #include "confdefs.h" 7193 #include "confdefs.h"
7156 #include <Xm/Xm.h> 7194 #include <Xm/Xm.h>
7157 EOF 7195 EOF
7158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7159 { (eval echo configure:7160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7197 { (eval echo configure:7198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7160 ac_err=`grep -v '^ *+' conftest.out` 7198 ac_err=`grep -v '^ *+' conftest.out`
7161 if test -z "$ac_err"; then 7199 if test -z "$ac_err"; then
7162 rm -rf conftest* 7200 rm -rf conftest*
7163 eval "ac_cv_header_$ac_safe=yes" 7201 eval "ac_cv_header_$ac_safe=yes"
7164 else 7202 else
7171 rm -f conftest* 7209 rm -f conftest*
7172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7173 echo "$ac_t""yes" 1>&6 7211 echo "$ac_t""yes" 1>&6
7174 7212
7175 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 7213 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7176 echo "configure:7177: checking for XmStringFree in -lXm" >&5 7214 echo "configure:7215: checking for XmStringFree in -lXm" >&5
7177 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 7215 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7178 7216
7179 xe_check_libs=" -lXm " 7217 xe_check_libs=" -lXm "
7180 cat > conftest.$ac_ext <<EOF 7218 cat > conftest.$ac_ext <<EOF
7181 #line 7182 "configure" 7219 #line 7220 "configure"
7182 #include "confdefs.h" 7220 #include "confdefs.h"
7183 /* Override any gcc2 internal prototype to avoid an error. */ 7221 /* Override any gcc2 internal prototype to avoid an error. */
7184 /* We use char because int might match the return type of a gcc2 7222 /* We use char because int might match the return type of a gcc2
7185 builtin and then its argument prototype would still apply. */ 7223 builtin and then its argument prototype would still apply. */
7186 char XmStringFree(); 7224 char XmStringFree();
7187 7225
7188 int main() { 7226 int main() {
7189 XmStringFree() 7227 XmStringFree()
7190 ; return 0; } 7228 ; return 0; }
7191 EOF 7229 EOF
7192 if { (eval echo configure:7193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7230 if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7193 rm -rf conftest* 7231 rm -rf conftest*
7194 eval "ac_cv_lib_$ac_lib_var=yes" 7232 eval "ac_cv_lib_$ac_lib_var=yes"
7195 else 7233 else
7196 echo "configure: failed program was:" >&5 7234 echo "configure: failed program was:" >&5
7197 cat conftest.$ac_ext >&5 7235 cat conftest.$ac_ext >&5
7216 fi 7254 fi
7217 7255
7218 7256
7219 if test "$have_motif" = "yes"; then 7257 if test "$have_motif" = "yes"; then
7220 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 7258 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7221 echo "configure:7222: checking for Lesstif" >&5 7259 echo "configure:7260: checking for Lesstif" >&5
7222 cat > conftest.$ac_ext <<EOF 7260 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure" 7261 #line 7262 "configure"
7224 #include "confdefs.h" 7262 #include "confdefs.h"
7225 #include <Xm/Xm.h> 7263 #include <Xm/Xm.h>
7226 #ifdef LESSTIF_VERSION 7264 #ifdef LESSTIF_VERSION
7227 yes 7265 yes
7228 #endif 7266 #endif
7502 fi 7540 fi
7503 fi 7541 fi
7504 7542
7505 if test "$with_mule" = "yes" ; then 7543 if test "$with_mule" = "yes" ; then
7506 echo "checking for Mule-related features" 1>&6 7544 echo "checking for Mule-related features" 1>&6
7507 echo "configure:7508: checking for Mule-related features" >&5 7545 echo "configure:7546: checking for Mule-related features" >&5
7508 { test "$extra_verbose" = "yes" && cat << \EOF 7546 { test "$extra_verbose" = "yes" && cat << \EOF
7509 Defining MULE 7547 Defining MULE
7510 EOF 7548 EOF
7511 cat >> confdefs.h <<\EOF 7549 cat >> confdefs.h <<\EOF
7512 #define MULE 1 7550 #define MULE 1
7527 7565
7528 for ac_hdr in libintl.h 7566 for ac_hdr in libintl.h
7529 do 7567 do
7530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7569 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7532 echo "configure:7533: checking for $ac_hdr" >&5 7570 echo "configure:7571: checking for $ac_hdr" >&5
7533 7571
7534 cat > conftest.$ac_ext <<EOF 7572 cat > conftest.$ac_ext <<EOF
7535 #line 7536 "configure" 7573 #line 7574 "configure"
7536 #include "confdefs.h" 7574 #include "confdefs.h"
7537 #include <$ac_hdr> 7575 #include <$ac_hdr>
7538 EOF 7576 EOF
7539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7540 { (eval echo configure:7541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7578 { (eval echo configure:7579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7541 ac_err=`grep -v '^ *+' conftest.out` 7579 ac_err=`grep -v '^ *+' conftest.out`
7542 if test -z "$ac_err"; then 7580 if test -z "$ac_err"; then
7543 rm -rf conftest* 7581 rm -rf conftest*
7544 eval "ac_cv_header_$ac_safe=yes" 7582 eval "ac_cv_header_$ac_safe=yes"
7545 else 7583 else
7566 fi 7604 fi
7567 done 7605 done
7568 7606
7569 7607
7570 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 7608 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7571 echo "configure:7572: checking for strerror in -lintl" >&5 7609 echo "configure:7610: checking for strerror in -lintl" >&5
7572 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 7610 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7573 7611
7574 xe_check_libs=" -lintl " 7612 xe_check_libs=" -lintl "
7575 cat > conftest.$ac_ext <<EOF 7613 cat > conftest.$ac_ext <<EOF
7576 #line 7577 "configure" 7614 #line 7615 "configure"
7577 #include "confdefs.h" 7615 #include "confdefs.h"
7578 /* Override any gcc2 internal prototype to avoid an error. */ 7616 /* Override any gcc2 internal prototype to avoid an error. */
7579 /* We use char because int might match the return type of a gcc2 7617 /* We use char because int might match the return type of a gcc2
7580 builtin and then its argument prototype would still apply. */ 7618 builtin and then its argument prototype would still apply. */
7581 char strerror(); 7619 char strerror();
7582 7620
7583 int main() { 7621 int main() {
7584 strerror() 7622 strerror()
7585 ; return 0; } 7623 ; return 0; }
7586 EOF 7624 EOF
7587 if { (eval echo configure:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7625 if { (eval echo configure:7626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7588 rm -rf conftest* 7626 rm -rf conftest*
7589 eval "ac_cv_lib_$ac_lib_var=yes" 7627 eval "ac_cv_lib_$ac_lib_var=yes"
7590 else 7628 else
7591 echo "configure: failed program was:" >&5 7629 echo "configure: failed program was:" >&5
7592 cat conftest.$ac_ext >&5 7630 cat conftest.$ac_ext >&5
7615 fi 7653 fi
7616 7654
7617 7655
7618 7656
7619 echo "checking for Mule input methods" 1>&6 7657 echo "checking for Mule input methods" 1>&6
7620 echo "configure:7621: checking for Mule input methods" >&5 7658 echo "configure:7659: checking for Mule input methods" >&5
7621 case "$with_xim" in "" | "yes" ) 7659 case "$with_xim" in "" | "yes" )
7622 echo "checking for XIM" 1>&6 7660 echo "checking for XIM" 1>&6
7623 echo "configure:7624: checking for XIM" >&5 7661 echo "configure:7662: checking for XIM" >&5
7624 if test "$have_lesstif" = "yes"; then with_xim=xlib 7662 if test "$have_lesstif" = "yes"; then with_xim=xlib
7625 else 7663 else
7626 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 7664 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7627 echo "configure:7628: checking for XmImMbLookupString in -lXm" >&5 7665 echo "configure:7666: checking for XmImMbLookupString in -lXm" >&5
7628 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 7666 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7629 7667
7630 xe_check_libs=" -lXm " 7668 xe_check_libs=" -lXm "
7631 cat > conftest.$ac_ext <<EOF 7669 cat > conftest.$ac_ext <<EOF
7632 #line 7633 "configure" 7670 #line 7671 "configure"
7633 #include "confdefs.h" 7671 #include "confdefs.h"
7634 /* Override any gcc2 internal prototype to avoid an error. */ 7672 /* Override any gcc2 internal prototype to avoid an error. */
7635 /* We use char because int might match the return type of a gcc2 7673 /* We use char because int might match the return type of a gcc2
7636 builtin and then its argument prototype would still apply. */ 7674 builtin and then its argument prototype would still apply. */
7637 char XmImMbLookupString(); 7675 char XmImMbLookupString();
7638 7676
7639 int main() { 7677 int main() {
7640 XmImMbLookupString() 7678 XmImMbLookupString()
7641 ; return 0; } 7679 ; return 0; }
7642 EOF 7680 EOF
7643 if { (eval echo configure:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7681 if { (eval echo configure:7682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7644 rm -rf conftest* 7682 rm -rf conftest*
7645 eval "ac_cv_lib_$ac_lib_var=yes" 7683 eval "ac_cv_lib_$ac_lib_var=yes"
7646 else 7684 else
7647 echo "configure: failed program was:" >&5 7685 echo "configure: failed program was:" >&5
7648 cat conftest.$ac_ext >&5 7686 cat conftest.$ac_ext >&5
7704 fi 7742 fi
7705 fi 7743 fi
7706 7744
7707 if test "$with_xfs" = "yes" ; then 7745 if test "$with_xfs" = "yes" ; then
7708 echo "checking for XFontSet" 1>&6 7746 echo "checking for XFontSet" 1>&6
7709 echo "configure:7710: checking for XFontSet" >&5 7747 echo "configure:7748: checking for XFontSet" >&5
7710 7748
7711 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 7749 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7712 echo "configure:7713: checking for XmbDrawString in -lX11" >&5 7750 echo "configure:7751: checking for XmbDrawString in -lX11" >&5
7713 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 7751 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7714 7752
7715 xe_check_libs=" -lX11 " 7753 xe_check_libs=" -lX11 "
7716 cat > conftest.$ac_ext <<EOF 7754 cat > conftest.$ac_ext <<EOF
7717 #line 7718 "configure" 7755 #line 7756 "configure"
7718 #include "confdefs.h" 7756 #include "confdefs.h"
7719 /* Override any gcc2 internal prototype to avoid an error. */ 7757 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2 7758 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */ 7759 builtin and then its argument prototype would still apply. */
7722 char XmbDrawString(); 7760 char XmbDrawString();
7723 7761
7724 int main() { 7762 int main() {
7725 XmbDrawString() 7763 XmbDrawString()
7726 ; return 0; } 7764 ; return 0; }
7727 EOF 7765 EOF
7728 if { (eval echo configure:7729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7766 if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7729 rm -rf conftest* 7767 rm -rf conftest*
7730 eval "ac_cv_lib_$ac_lib_var=yes" 7768 eval "ac_cv_lib_$ac_lib_var=yes"
7731 else 7769 else
7732 echo "configure: failed program was:" >&5 7770 echo "configure: failed program was:" >&5
7733 cat conftest.$ac_ext >&5 7771 cat conftest.$ac_ext >&5
7763 fi 7801 fi
7764 fi 7802 fi
7765 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 7803 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
7766 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 7804 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7767 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 7805 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7768 echo "configure:7769: checking for wnn/jllib.h" >&5 7806 echo "configure:7807: checking for wnn/jllib.h" >&5
7769 7807
7770 cat > conftest.$ac_ext <<EOF 7808 cat > conftest.$ac_ext <<EOF
7771 #line 7772 "configure" 7809 #line 7810 "configure"
7772 #include "confdefs.h" 7810 #include "confdefs.h"
7773 #include <wnn/jllib.h> 7811 #include <wnn/jllib.h>
7774 EOF 7812 EOF
7775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7776 { (eval echo configure:7777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7814 { (eval echo configure:7815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7777 ac_err=`grep -v '^ *+' conftest.out` 7815 ac_err=`grep -v '^ *+' conftest.out`
7778 if test -z "$ac_err"; then 7816 if test -z "$ac_err"; then
7779 rm -rf conftest* 7817 rm -rf conftest*
7780 eval "ac_cv_header_$ac_safe=yes" 7818 eval "ac_cv_header_$ac_safe=yes"
7781 else 7819 else
7796 } 7834 }
7797 if test "$with_wnn" != "no"; then 7835 if test "$with_wnn" != "no"; then
7798 for ac_func in crypt 7836 for ac_func in crypt
7799 do 7837 do
7800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7801 echo "configure:7802: checking for $ac_func" >&5 7839 echo "configure:7840: checking for $ac_func" >&5
7802 7840
7803 cat > conftest.$ac_ext <<EOF 7841 cat > conftest.$ac_ext <<EOF
7804 #line 7805 "configure" 7842 #line 7843 "configure"
7805 #include "confdefs.h" 7843 #include "confdefs.h"
7806 /* System header to define __stub macros and hopefully few prototypes, 7844 /* System header to define __stub macros and hopefully few prototypes,
7807 which can conflict with char $ac_func(); below. */ 7845 which can conflict with char $ac_func(); below. */
7808 #include <assert.h> 7846 #include <assert.h>
7809 /* Override any gcc2 internal prototype to avoid an error. */ 7847 /* Override any gcc2 internal prototype to avoid an error. */
7822 $ac_func(); 7860 $ac_func();
7823 #endif 7861 #endif
7824 7862
7825 ; return 0; } 7863 ; return 0; }
7826 EOF 7864 EOF
7827 if { (eval echo configure:7828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7828 rm -rf conftest* 7866 rm -rf conftest*
7829 eval "ac_cv_func_$ac_func=yes" 7867 eval "ac_cv_func_$ac_func=yes"
7830 else 7868 else
7831 echo "configure: failed program was:" >&5 7869 echo "configure: failed program was:" >&5
7832 cat conftest.$ac_ext >&5 7870 cat conftest.$ac_ext >&5
7851 fi 7889 fi
7852 done 7890 done
7853 7891
7854 test "$ac_cv_func_crypt" != "yes" && { 7892 test "$ac_cv_func_crypt" != "yes" && {
7855 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7893 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7856 echo "configure:7857: checking for crypt in -lcrypt" >&5 7894 echo "configure:7895: checking for crypt in -lcrypt" >&5
7857 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7895 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7858 7896
7859 xe_check_libs=" -lcrypt " 7897 xe_check_libs=" -lcrypt "
7860 cat > conftest.$ac_ext <<EOF 7898 cat > conftest.$ac_ext <<EOF
7861 #line 7862 "configure" 7899 #line 7900 "configure"
7862 #include "confdefs.h" 7900 #include "confdefs.h"
7863 /* Override any gcc2 internal prototype to avoid an error. */ 7901 /* Override any gcc2 internal prototype to avoid an error. */
7864 /* We use char because int might match the return type of a gcc2 7902 /* We use char because int might match the return type of a gcc2
7865 builtin and then its argument prototype would still apply. */ 7903 builtin and then its argument prototype would still apply. */
7866 char crypt(); 7904 char crypt();
7867 7905
7868 int main() { 7906 int main() {
7869 crypt() 7907 crypt()
7870 ; return 0; } 7908 ; return 0; }
7871 EOF 7909 EOF
7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7910 if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7873 rm -rf conftest* 7911 rm -rf conftest*
7874 eval "ac_cv_lib_$ac_lib_var=yes" 7912 eval "ac_cv_lib_$ac_lib_var=yes"
7875 else 7913 else
7876 echo "configure: failed program was:" >&5 7914 echo "configure: failed program was:" >&5
7877 cat conftest.$ac_ext >&5 7915 cat conftest.$ac_ext >&5
7901 7939
7902 } 7940 }
7903 fi 7941 fi
7904 test -z "$with_wnn" && { 7942 test -z "$with_wnn" && {
7905 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7943 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7906 echo "configure:7907: checking for jl_dic_list_e in -lwnn" >&5 7944 echo "configure:7945: checking for jl_dic_list_e in -lwnn" >&5
7907 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7945 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7908 7946
7909 xe_check_libs=" -lwnn " 7947 xe_check_libs=" -lwnn "
7910 cat > conftest.$ac_ext <<EOF 7948 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure" 7949 #line 7950 "configure"
7912 #include "confdefs.h" 7950 #include "confdefs.h"
7913 /* Override any gcc2 internal prototype to avoid an error. */ 7951 /* Override any gcc2 internal prototype to avoid an error. */
7914 /* We use char because int might match the return type of a gcc2 7952 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */ 7953 builtin and then its argument prototype would still apply. */
7916 char jl_dic_list_e(); 7954 char jl_dic_list_e();
7917 7955
7918 int main() { 7956 int main() {
7919 jl_dic_list_e() 7957 jl_dic_list_e()
7920 ; return 0; } 7958 ; return 0; }
7921 EOF 7959 EOF
7922 if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7923 rm -rf conftest* 7961 rm -rf conftest*
7924 eval "ac_cv_lib_$ac_lib_var=yes" 7962 eval "ac_cv_lib_$ac_lib_var=yes"
7925 else 7963 else
7926 echo "configure: failed program was:" >&5 7964 echo "configure: failed program was:" >&5
7927 cat conftest.$ac_ext >&5 7965 cat conftest.$ac_ext >&5
7955 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7993 echo " xemacs will be linked with \"mule-wnnfns.o\""
7956 fi 7994 fi
7957 if test "$with_wnn6" != "no"; then 7995 if test "$with_wnn6" != "no"; then
7958 7996
7959 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 7997 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7960 echo "configure:7961: checking for jl_fi_dic_list in -lwnn" >&5 7998 echo "configure:7999: checking for jl_fi_dic_list in -lwnn" >&5
7961 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7999 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
7962 8000
7963 xe_check_libs=" -lwnn " 8001 xe_check_libs=" -lwnn "
7964 cat > conftest.$ac_ext <<EOF 8002 cat > conftest.$ac_ext <<EOF
7965 #line 7966 "configure" 8003 #line 8004 "configure"
7966 #include "confdefs.h" 8004 #include "confdefs.h"
7967 /* Override any gcc2 internal prototype to avoid an error. */ 8005 /* Override any gcc2 internal prototype to avoid an error. */
7968 /* We use char because int might match the return type of a gcc2 8006 /* We use char because int might match the return type of a gcc2
7969 builtin and then its argument prototype would still apply. */ 8007 builtin and then its argument prototype would still apply. */
7970 char jl_fi_dic_list(); 8008 char jl_fi_dic_list();
7971 8009
7972 int main() { 8010 int main() {
7973 jl_fi_dic_list() 8011 jl_fi_dic_list()
7974 ; return 0; } 8012 ; return 0; }
7975 EOF 8013 EOF
7976 if { (eval echo configure:7977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8014 if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7977 rm -rf conftest* 8015 rm -rf conftest*
7978 eval "ac_cv_lib_$ac_lib_var=yes" 8016 eval "ac_cv_lib_$ac_lib_var=yes"
7979 else 8017 else
7980 echo "configure: failed program was:" >&5 8018 echo "configure: failed program was:" >&5
7981 cat conftest.$ac_ext >&5 8019 cat conftest.$ac_ext >&5
8006 8044
8007 canna_includes_found=no 8045 canna_includes_found=no
8008 if test "$with_canna" != "no"; then 8046 if test "$with_canna" != "no"; then
8009 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8047 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8010 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8048 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8011 echo "configure:8012: checking for canna/jrkanji.h" >&5 8049 echo "configure:8050: checking for canna/jrkanji.h" >&5
8012 8050
8013 cat > conftest.$ac_ext <<EOF 8051 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure" 8052 #line 8053 "configure"
8015 #include "confdefs.h" 8053 #include "confdefs.h"
8016 #include <canna/jrkanji.h> 8054 #include <canna/jrkanji.h>
8017 EOF 8055 EOF
8018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8019 { (eval echo configure:8020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8057 { (eval echo configure:8058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8020 ac_err=`grep -v '^ *+' conftest.out` 8058 ac_err=`grep -v '^ *+' conftest.out`
8021 if test -z "$ac_err"; then 8059 if test -z "$ac_err"; then
8022 rm -rf conftest* 8060 rm -rf conftest*
8023 eval "ac_cv_header_$ac_safe=yes" 8061 eval "ac_cv_header_$ac_safe=yes"
8024 else 8062 else
8041 -d "/usr/local/canna/include"; then 8079 -d "/usr/local/canna/include"; then
8042 save_c_switch_site="$c_switch_site" 8080 save_c_switch_site="$c_switch_site"
8043 c_switch_site="$c_switch_site -I/usr/local/canna/include" 8081 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8044 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8082 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8045 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8083 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8046 echo "configure:8047: checking for canna/jrkanji.h" >&5 8084 echo "configure:8085: checking for canna/jrkanji.h" >&5
8047 8085
8048 cat > conftest.$ac_ext <<EOF 8086 cat > conftest.$ac_ext <<EOF
8049 #line 8050 "configure" 8087 #line 8088 "configure"
8050 #include "confdefs.h" 8088 #include "confdefs.h"
8051 #include <canna/jrkanji.h> 8089 #include <canna/jrkanji.h>
8052 EOF 8090 EOF
8053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8054 { (eval echo configure:8055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8092 { (eval echo configure:8093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8055 ac_err=`grep -v '^ *+' conftest.out` 8093 ac_err=`grep -v '^ *+' conftest.out`
8056 if test -z "$ac_err"; then 8094 if test -z "$ac_err"; then
8057 rm -rf conftest* 8095 rm -rf conftest*
8058 eval "ac_cv_header_$ac_safe=yes" 8096 eval "ac_cv_header_$ac_safe=yes"
8059 else 8097 else
8077 fi 8115 fi
8078 fi 8116 fi
8079 8117
8080 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 8118 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8081 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 8119 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8082 echo "configure:8083: checking for canna/RK.h" >&5 8120 echo "configure:8121: checking for canna/RK.h" >&5
8083 8121
8084 cat > conftest.$ac_ext <<EOF 8122 cat > conftest.$ac_ext <<EOF
8085 #line 8086 "configure" 8123 #line 8124 "configure"
8086 #include "confdefs.h" 8124 #include "confdefs.h"
8087 #include <canna/RK.h> 8125 #include <canna/RK.h>
8088 EOF 8126 EOF
8089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8090 { (eval echo configure:8091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8128 { (eval echo configure:8129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8091 ac_err=`grep -v '^ *+' conftest.out` 8129 ac_err=`grep -v '^ *+' conftest.out`
8092 if test -z "$ac_err"; then 8130 if test -z "$ac_err"; then
8093 rm -rf conftest* 8131 rm -rf conftest*
8094 eval "ac_cv_header_$ac_safe=yes" 8132 eval "ac_cv_header_$ac_safe=yes"
8095 else 8133 else
8108 with_canna=no 8146 with_canna=no
8109 fi 8147 fi
8110 } 8148 }
8111 test -z "$with_canna" && { 8149 test -z "$with_canna" && {
8112 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 8150 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8113 echo "configure:8114: checking for RkBgnBun in -lRKC" >&5 8151 echo "configure:8152: checking for RkBgnBun in -lRKC" >&5
8114 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 8152 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8115 8153
8116 xe_check_libs=" -lRKC " 8154 xe_check_libs=" -lRKC "
8117 cat > conftest.$ac_ext <<EOF 8155 cat > conftest.$ac_ext <<EOF
8118 #line 8119 "configure" 8156 #line 8157 "configure"
8119 #include "confdefs.h" 8157 #include "confdefs.h"
8120 /* Override any gcc2 internal prototype to avoid an error. */ 8158 /* Override any gcc2 internal prototype to avoid an error. */
8121 /* We use char because int might match the return type of a gcc2 8159 /* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */ 8160 builtin and then its argument prototype would still apply. */
8123 char RkBgnBun(); 8161 char RkBgnBun();
8124 8162
8125 int main() { 8163 int main() {
8126 RkBgnBun() 8164 RkBgnBun()
8127 ; return 0; } 8165 ; return 0; }
8128 EOF 8166 EOF
8129 if { (eval echo configure:8130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8167 if { (eval echo configure:8168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8130 rm -rf conftest* 8168 rm -rf conftest*
8131 eval "ac_cv_lib_$ac_lib_var=yes" 8169 eval "ac_cv_lib_$ac_lib_var=yes"
8132 else 8170 else
8133 echo "configure: failed program was:" >&5 8171 echo "configure: failed program was:" >&5
8134 cat conftest.$ac_ext >&5 8172 cat conftest.$ac_ext >&5
8147 fi 8185 fi
8148 8186
8149 } 8187 }
8150 test -z "$with_canna" && { 8188 test -z "$with_canna" && {
8151 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 8189 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8152 echo "configure:8153: checking for jrKanjiControl in -lcanna" >&5 8190 echo "configure:8191: checking for jrKanjiControl in -lcanna" >&5
8153 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 8191 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8154 8192
8155 xe_check_libs=" -lcanna " 8193 xe_check_libs=" -lcanna "
8156 cat > conftest.$ac_ext <<EOF 8194 cat > conftest.$ac_ext <<EOF
8157 #line 8158 "configure" 8195 #line 8196 "configure"
8158 #include "confdefs.h" 8196 #include "confdefs.h"
8159 /* Override any gcc2 internal prototype to avoid an error. */ 8197 /* Override any gcc2 internal prototype to avoid an error. */
8160 /* We use char because int might match the return type of a gcc2 8198 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */ 8199 builtin and then its argument prototype would still apply. */
8162 char jrKanjiControl(); 8200 char jrKanjiControl();
8163 8201
8164 int main() { 8202 int main() {
8165 jrKanjiControl() 8203 jrKanjiControl()
8166 ; return 0; } 8204 ; return 0; }
8167 EOF 8205 EOF
8168 if { (eval echo configure:8169: \"$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
8169 rm -rf conftest* 8207 rm -rf conftest*
8170 eval "ac_cv_lib_$ac_lib_var=yes" 8208 eval "ac_cv_lib_$ac_lib_var=yes"
8171 else 8209 else
8172 echo "configure: failed program was:" >&5 8210 echo "configure: failed program was:" >&5
8173 cat conftest.$ac_ext >&5 8211 cat conftest.$ac_ext >&5
8212 8250
8213 if test "$need_motif" = "yes" ; then 8251 if test "$need_motif" = "yes" ; then
8214 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 8252 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8215 8253
8216 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 8254 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8217 echo "configure:8218: checking for layout_object_getvalue in -li18n" >&5 8255 echo "configure:8256: checking for layout_object_getvalue in -li18n" >&5
8218 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 8256 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8219 8257
8220 xe_check_libs=" -li18n " 8258 xe_check_libs=" -li18n "
8221 cat > conftest.$ac_ext <<EOF 8259 cat > conftest.$ac_ext <<EOF
8222 #line 8223 "configure" 8260 #line 8261 "configure"
8223 #include "confdefs.h" 8261 #include "confdefs.h"
8224 /* Override any gcc2 internal prototype to avoid an error. */ 8262 /* Override any gcc2 internal prototype to avoid an error. */
8225 /* We use char because int might match the return type of a gcc2 8263 /* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */ 8264 builtin and then its argument prototype would still apply. */
8227 char layout_object_getvalue(); 8265 char layout_object_getvalue();
8228 8266
8229 int main() { 8267 int main() {
8230 layout_object_getvalue() 8268 layout_object_getvalue()
8231 ; return 0; } 8269 ; return 0; }
8232 EOF 8270 EOF
8233 if { (eval echo configure:8234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8271 if { (eval echo configure:8272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8234 rm -rf conftest* 8272 rm -rf conftest*
8235 eval "ac_cv_lib_$ac_lib_var=yes" 8273 eval "ac_cv_lib_$ac_lib_var=yes"
8236 else 8274 else
8237 echo "configure: failed program was:" >&5 8275 echo "configure: failed program was:" >&5
8238 cat conftest.$ac_ext >&5 8276 cat conftest.$ac_ext >&5
8314 fi 8352 fi
8315 8353
8316 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 snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf 8354 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 snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
8317 do 8355 do
8318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8319 echo "configure:8320: checking for $ac_func" >&5 8357 echo "configure:8358: checking for $ac_func" >&5
8320 8358
8321 cat > conftest.$ac_ext <<EOF 8359 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure" 8360 #line 8361 "configure"
8323 #include "confdefs.h" 8361 #include "confdefs.h"
8324 /* System header to define __stub macros and hopefully few prototypes, 8362 /* System header to define __stub macros and hopefully few prototypes,
8325 which can conflict with char $ac_func(); below. */ 8363 which can conflict with char $ac_func(); below. */
8326 #include <assert.h> 8364 #include <assert.h>
8327 /* Override any gcc2 internal prototype to avoid an error. */ 8365 /* Override any gcc2 internal prototype to avoid an error. */
8340 $ac_func(); 8378 $ac_func();
8341 #endif 8379 #endif
8342 8380
8343 ; return 0; } 8381 ; return 0; }
8344 EOF 8382 EOF
8345 if { (eval echo configure:8346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8383 if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8346 rm -rf conftest* 8384 rm -rf conftest*
8347 eval "ac_cv_func_$ac_func=yes" 8385 eval "ac_cv_func_$ac_func=yes"
8348 else 8386 else
8349 echo "configure: failed program was:" >&5 8387 echo "configure: failed program was:" >&5
8350 cat conftest.$ac_ext >&5 8388 cat conftest.$ac_ext >&5
8377 fi ;; 8415 fi ;;
8378 * ) 8416 * )
8379 for ac_func in realpath 8417 for ac_func in realpath
8380 do 8418 do
8381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8382 echo "configure:8383: checking for $ac_func" >&5 8420 echo "configure:8421: checking for $ac_func" >&5
8383 8421
8384 cat > conftest.$ac_ext <<EOF 8422 cat > conftest.$ac_ext <<EOF
8385 #line 8386 "configure" 8423 #line 8424 "configure"
8386 #include "confdefs.h" 8424 #include "confdefs.h"
8387 /* System header to define __stub macros and hopefully few prototypes, 8425 /* System header to define __stub macros and hopefully few prototypes,
8388 which can conflict with char $ac_func(); below. */ 8426 which can conflict with char $ac_func(); below. */
8389 #include <assert.h> 8427 #include <assert.h>
8390 /* Override any gcc2 internal prototype to avoid an error. */ 8428 /* Override any gcc2 internal prototype to avoid an error. */
8403 $ac_func(); 8441 $ac_func();
8404 #endif 8442 #endif
8405 8443
8406 ; return 0; } 8444 ; return 0; }
8407 EOF 8445 EOF
8408 if { (eval echo configure:8409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8446 if { (eval echo configure:8447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8409 rm -rf conftest* 8447 rm -rf conftest*
8410 eval "ac_cv_func_$ac_func=yes" 8448 eval "ac_cv_func_$ac_func=yes"
8411 else 8449 else
8412 echo "configure: failed program was:" >&5 8450 echo "configure: failed program was:" >&5
8413 cat conftest.$ac_ext >&5 8451 cat conftest.$ac_ext >&5
8436 echo " xemacs will be linked with \"realpath.o\"" 8474 echo " xemacs will be linked with \"realpath.o\""
8437 fi ;; 8475 fi ;;
8438 esac 8476 esac
8439 8477
8440 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 8478 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8441 echo "configure:8442: checking whether netdb declares h_errno" >&5 8479 echo "configure:8480: checking whether netdb declares h_errno" >&5
8442 cat > conftest.$ac_ext <<EOF 8480 cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure" 8481 #line 8482 "configure"
8444 #include "confdefs.h" 8482 #include "confdefs.h"
8445 #include <netdb.h> 8483 #include <netdb.h>
8446 int main() { 8484 int main() {
8447 return h_errno; 8485 return h_errno;
8448 ; return 0; } 8486 ; return 0; }
8449 EOF 8487 EOF
8450 if { (eval echo configure:8451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8488 if { (eval echo configure:8489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8451 rm -rf conftest* 8489 rm -rf conftest*
8452 echo "$ac_t""yes" 1>&6 8490 echo "$ac_t""yes" 1>&6
8453 { test "$extra_verbose" = "yes" && cat << \EOF 8491 { test "$extra_verbose" = "yes" && cat << \EOF
8454 Defining HAVE_H_ERRNO 8492 Defining HAVE_H_ERRNO
8455 EOF 8493 EOF
8465 echo "$ac_t""no" 1>&6 8503 echo "$ac_t""no" 1>&6
8466 fi 8504 fi
8467 rm -f conftest* 8505 rm -f conftest*
8468 8506
8469 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 8507 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8470 echo "configure:8471: checking for sigsetjmp" >&5 8508 echo "configure:8509: checking for sigsetjmp" >&5
8471 cat > conftest.$ac_ext <<EOF 8509 cat > conftest.$ac_ext <<EOF
8472 #line 8473 "configure" 8510 #line 8511 "configure"
8473 #include "confdefs.h" 8511 #include "confdefs.h"
8474 #include <setjmp.h> 8512 #include <setjmp.h>
8475 int main() { 8513 int main() {
8476 sigjmp_buf bar; sigsetjmp (bar, 0); 8514 sigjmp_buf bar; sigsetjmp (bar, 0);
8477 ; return 0; } 8515 ; return 0; }
8478 EOF 8516 EOF
8479 if { (eval echo configure:8480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8517 if { (eval echo configure:8518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8480 rm -rf conftest* 8518 rm -rf conftest*
8481 echo "$ac_t""yes" 1>&6 8519 echo "$ac_t""yes" 1>&6
8482 { test "$extra_verbose" = "yes" && cat << \EOF 8520 { test "$extra_verbose" = "yes" && cat << \EOF
8483 Defining HAVE_SIGSETJMP 8521 Defining HAVE_SIGSETJMP
8484 EOF 8522 EOF
8494 echo "$ac_t""no" 1>&6 8532 echo "$ac_t""no" 1>&6
8495 fi 8533 fi
8496 rm -f conftest* 8534 rm -f conftest*
8497 8535
8498 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8536 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8499 echo "configure:8500: checking whether localtime caches TZ" >&5 8537 echo "configure:8538: checking whether localtime caches TZ" >&5
8500 8538
8501 if test "$ac_cv_func_tzset" = "yes"; then 8539 if test "$ac_cv_func_tzset" = "yes"; then
8502 cat > conftest.$ac_ext <<EOF 8540 cat > conftest.$ac_ext <<EOF
8503 #line 8504 "configure" 8541 #line 8542 "configure"
8504 #include "confdefs.h" 8542 #include "confdefs.h"
8505 #include <time.h> 8543 #include <time.h>
8506 #if STDC_HEADERS 8544 #if STDC_HEADERS
8507 # include <stdlib.h> 8545 # include <stdlib.h>
8508 #endif 8546 #endif
8533 if (localtime (&now)->tm_hour != hour_unset) 8571 if (localtime (&now)->tm_hour != hour_unset)
8534 exit (1); 8572 exit (1);
8535 exit (0); 8573 exit (0);
8536 } 8574 }
8537 EOF 8575 EOF
8538 if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8576 if { (eval echo configure:8577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8539 then 8577 then
8540 emacs_cv_localtime_cache=no 8578 emacs_cv_localtime_cache=no
8541 else 8579 else
8542 echo "configure: failed program was:" >&5 8580 echo "configure: failed program was:" >&5
8543 cat conftest.$ac_ext >&5 8581 cat conftest.$ac_ext >&5
8562 8600
8563 fi 8601 fi
8564 8602
8565 if test "$HAVE_TIMEVAL" = "yes"; then 8603 if test "$HAVE_TIMEVAL" = "yes"; then
8566 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 8604 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
8567 echo "configure:8568: checking whether gettimeofday accepts one or two arguments" >&5 8605 echo "configure:8606: checking whether gettimeofday accepts one or two arguments" >&5
8568 cat > conftest.$ac_ext <<EOF 8606 cat > conftest.$ac_ext <<EOF
8569 #line 8570 "configure" 8607 #line 8608 "configure"
8570 #include "confdefs.h" 8608 #include "confdefs.h"
8571 8609
8572 #ifdef TIME_WITH_SYS_TIME 8610 #ifdef TIME_WITH_SYS_TIME
8573 #include <sys/time.h> 8611 #include <sys/time.h>
8574 #include <time.h> 8612 #include <time.h>
8586 struct timezone dummy; 8624 struct timezone dummy;
8587 gettimeofday (&time, &dummy); 8625 gettimeofday (&time, &dummy);
8588 8626
8589 ; return 0; } 8627 ; return 0; }
8590 EOF 8628 EOF
8591 if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8629 if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8592 rm -rf conftest* 8630 rm -rf conftest*
8593 echo "$ac_t""two" 1>&6 8631 echo "$ac_t""two" 1>&6
8594 else 8632 else
8595 echo "configure: failed program was:" >&5 8633 echo "configure: failed program was:" >&5
8596 cat conftest.$ac_ext >&5 8634 cat conftest.$ac_ext >&5
8608 rm -f conftest* 8646 rm -f conftest*
8609 fi 8647 fi
8610 8648
8611 8649
8612 echo $ac_n "checking for inline""... $ac_c" 1>&6 8650 echo $ac_n "checking for inline""... $ac_c" 1>&6
8613 echo "configure:8614: checking for inline" >&5 8651 echo "configure:8652: checking for inline" >&5
8614 8652
8615 ac_cv_c_inline=no 8653 ac_cv_c_inline=no
8616 for ac_kw in inline __inline__ __inline; do 8654 for ac_kw in inline __inline__ __inline; do
8617 cat > conftest.$ac_ext <<EOF 8655 cat > conftest.$ac_ext <<EOF
8618 #line 8619 "configure" 8656 #line 8657 "configure"
8619 #include "confdefs.h" 8657 #include "confdefs.h"
8620 8658
8621 int main() { 8659 int main() {
8622 } $ac_kw foo() { 8660 } $ac_kw foo() {
8623 ; return 0; } 8661 ; return 0; }
8624 EOF 8662 EOF
8625 if { (eval echo configure:8626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8663 if { (eval echo configure:8664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8626 rm -rf conftest* 8664 rm -rf conftest*
8627 ac_cv_c_inline=$ac_kw; break 8665 ac_cv_c_inline=$ac_kw; break
8628 else 8666 else
8629 echo "configure: failed program was:" >&5 8667 echo "configure: failed program was:" >&5
8630 cat conftest.$ac_ext >&5 8668 cat conftest.$ac_ext >&5
8670 8708
8671 8709
8672 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8710 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8673 # for constant arguments. Useless! 8711 # for constant arguments. Useless!
8674 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 8712 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8675 echo "configure:8676: checking for working alloca.h" >&5 8713 echo "configure:8714: checking for working alloca.h" >&5
8676 8714
8677 cat > conftest.$ac_ext <<EOF 8715 cat > conftest.$ac_ext <<EOF
8678 #line 8679 "configure" 8716 #line 8717 "configure"
8679 #include "confdefs.h" 8717 #include "confdefs.h"
8680 #include <alloca.h> 8718 #include <alloca.h>
8681 int main() { 8719 int main() {
8682 char *p = alloca(2 * sizeof(int)); 8720 char *p = alloca(2 * sizeof(int));
8683 ; return 0; } 8721 ; return 0; }
8684 EOF 8722 EOF
8685 if { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8723 if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8686 rm -rf conftest* 8724 rm -rf conftest*
8687 ac_cv_header_alloca_h=yes 8725 ac_cv_header_alloca_h=yes
8688 else 8726 else
8689 echo "configure: failed program was:" >&5 8727 echo "configure: failed program was:" >&5
8690 cat conftest.$ac_ext >&5 8728 cat conftest.$ac_ext >&5
8704 } 8742 }
8705 8743
8706 fi 8744 fi
8707 8745
8708 echo $ac_n "checking for alloca""... $ac_c" 1>&6 8746 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8709 echo "configure:8710: checking for alloca" >&5 8747 echo "configure:8748: checking for alloca" >&5
8710 8748
8711 cat > conftest.$ac_ext <<EOF 8749 cat > conftest.$ac_ext <<EOF
8712 #line 8713 "configure" 8750 #line 8751 "configure"
8713 #include "confdefs.h" 8751 #include "confdefs.h"
8714 8752
8715 #ifdef __GNUC__ 8753 #ifdef __GNUC__
8716 # define alloca __builtin_alloca 8754 # define alloca __builtin_alloca
8717 #else 8755 #else
8730 8768
8731 int main() { 8769 int main() {
8732 char *p = (char *) alloca(1); 8770 char *p = (char *) alloca(1);
8733 ; return 0; } 8771 ; return 0; }
8734 EOF 8772 EOF
8735 if { (eval echo configure:8736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8773 if { (eval echo configure:8774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8736 rm -rf conftest* 8774 rm -rf conftest*
8737 ac_cv_func_alloca_works=yes 8775 ac_cv_func_alloca_works=yes
8738 else 8776 else
8739 echo "configure: failed program was:" >&5 8777 echo "configure: failed program was:" >&5
8740 cat conftest.$ac_ext >&5 8778 cat conftest.$ac_ext >&5
8769 EOF 8807 EOF
8770 } 8808 }
8771 8809
8772 8810
8773 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 8811 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8774 echo "configure:8775: checking whether alloca needs Cray hooks" >&5 8812 echo "configure:8813: checking whether alloca needs Cray hooks" >&5
8775 8813
8776 cat > conftest.$ac_ext <<EOF 8814 cat > conftest.$ac_ext <<EOF
8777 #line 8778 "configure" 8815 #line 8816 "configure"
8778 #include "confdefs.h" 8816 #include "confdefs.h"
8779 #if defined(CRAY) && ! defined(CRAY2) 8817 #if defined(CRAY) && ! defined(CRAY2)
8780 webecray 8818 webecray
8781 #else 8819 #else
8782 wenotbecray 8820 wenotbecray
8796 8834
8797 echo "$ac_t""$ac_cv_os_cray" 1>&6 8835 echo "$ac_t""$ac_cv_os_cray" 1>&6
8798 if test $ac_cv_os_cray = yes; then 8836 if test $ac_cv_os_cray = yes; then
8799 for ac_func in _getb67 GETB67 getb67; do 8837 for ac_func in _getb67 GETB67 getb67; do
8800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8801 echo "configure:8802: checking for $ac_func" >&5 8839 echo "configure:8840: checking for $ac_func" >&5
8802 8840
8803 cat > conftest.$ac_ext <<EOF 8841 cat > conftest.$ac_ext <<EOF
8804 #line 8805 "configure" 8842 #line 8843 "configure"
8805 #include "confdefs.h" 8843 #include "confdefs.h"
8806 /* System header to define __stub macros and hopefully few prototypes, 8844 /* System header to define __stub macros and hopefully few prototypes,
8807 which can conflict with char $ac_func(); below. */ 8845 which can conflict with char $ac_func(); below. */
8808 #include <assert.h> 8846 #include <assert.h>
8809 /* Override any gcc2 internal prototype to avoid an error. */ 8847 /* Override any gcc2 internal prototype to avoid an error. */
8822 $ac_func(); 8860 $ac_func();
8823 #endif 8861 #endif
8824 8862
8825 ; return 0; } 8863 ; return 0; }
8826 EOF 8864 EOF
8827 if { (eval echo configure:8828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8865 if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8828 rm -rf conftest* 8866 rm -rf conftest*
8829 eval "ac_cv_func_$ac_func=yes" 8867 eval "ac_cv_func_$ac_func=yes"
8830 else 8868 else
8831 echo "configure: failed program was:" >&5 8869 echo "configure: failed program was:" >&5
8832 cat conftest.$ac_ext >&5 8870 cat conftest.$ac_ext >&5
8852 8890
8853 done 8891 done
8854 fi 8892 fi
8855 8893
8856 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 8894 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8857 echo "configure:8858: checking stack direction for C alloca" >&5 8895 echo "configure:8896: checking stack direction for C alloca" >&5
8858 8896
8859 cat > conftest.$ac_ext <<EOF 8897 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure" 8898 #line 8899 "configure"
8861 #include "confdefs.h" 8899 #include "confdefs.h"
8862 find_stack_direction () 8900 find_stack_direction ()
8863 { 8901 {
8864 static char *addr = 0; 8902 static char *addr = 0;
8865 auto char dummy; 8903 auto char dummy;
8874 main () 8912 main ()
8875 { 8913 {
8876 exit (find_stack_direction() < 0); 8914 exit (find_stack_direction() < 0);
8877 } 8915 }
8878 EOF 8916 EOF
8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8917 if { (eval echo configure:8918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8880 then 8918 then
8881 ac_cv_c_stack_direction=1 8919 ac_cv_c_stack_direction=1
8882 else 8920 else
8883 echo "configure: failed program was:" >&5 8921 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5 8922 cat conftest.$ac_ext >&5
8902 echo " xemacs will be linked with \"$ALLOCA\"" 8940 echo " xemacs will be linked with \"$ALLOCA\""
8903 fi 8941 fi
8904 8942
8905 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8943 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8906 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8944 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8907 echo "configure:8908: checking for vfork.h" >&5 8945 echo "configure:8946: checking for vfork.h" >&5
8908 8946
8909 cat > conftest.$ac_ext <<EOF 8947 cat > conftest.$ac_ext <<EOF
8910 #line 8911 "configure" 8948 #line 8949 "configure"
8911 #include "confdefs.h" 8949 #include "confdefs.h"
8912 #include <vfork.h> 8950 #include <vfork.h>
8913 EOF 8951 EOF
8914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8915 { (eval echo configure:8916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8953 { (eval echo configure:8954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8916 ac_err=`grep -v '^ *+' conftest.out` 8954 ac_err=`grep -v '^ *+' conftest.out`
8917 if test -z "$ac_err"; then 8955 if test -z "$ac_err"; then
8918 rm -rf conftest* 8956 rm -rf conftest*
8919 eval "ac_cv_header_$ac_safe=yes" 8957 eval "ac_cv_header_$ac_safe=yes"
8920 else 8958 else
8938 else 8976 else
8939 echo "$ac_t""no" 1>&6 8977 echo "$ac_t""no" 1>&6
8940 fi 8978 fi
8941 8979
8942 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8980 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8943 echo "configure:8944: checking for working vfork" >&5 8981 echo "configure:8982: checking for working vfork" >&5
8944 8982
8945 cat > conftest.$ac_ext <<EOF 8983 cat > conftest.$ac_ext <<EOF
8946 #line 8947 "configure" 8984 #line 8985 "configure"
8947 #include "confdefs.h" 8985 #include "confdefs.h"
8948 /* Thanks to Paul Eggert for this test. */ 8986 /* Thanks to Paul Eggert for this test. */
8949 #include <stdio.h> 8987 #include <stdio.h>
8950 #include <sys/types.h> 8988 #include <sys/types.h>
8951 #include <sys/stat.h> 8989 #include <sys/stat.h>
9036 || fstat(fileno(stdout), &st) != 0 9074 || fstat(fileno(stdout), &st) != 0
9037 ); 9075 );
9038 } 9076 }
9039 } 9077 }
9040 EOF 9078 EOF
9041 if { (eval echo configure:9042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9079 if { (eval echo configure:9080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
9042 then 9080 then
9043 ac_cv_func_vfork_works=yes 9081 ac_cv_func_vfork_works=yes
9044 else 9082 else
9045 echo "configure: failed program was:" >&5 9083 echo "configure: failed program was:" >&5
9046 cat conftest.$ac_ext >&5 9084 cat conftest.$ac_ext >&5
9061 9099
9062 fi 9100 fi
9063 9101
9064 9102
9065 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 9103 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9066 echo "configure:9067: checking for working strcoll" >&5 9104 echo "configure:9105: checking for working strcoll" >&5
9067 9105
9068 cat > conftest.$ac_ext <<EOF 9106 cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure" 9107 #line 9108 "configure"
9070 #include "confdefs.h" 9108 #include "confdefs.h"
9071 #include <string.h> 9109 #include <string.h>
9072 main () 9110 main ()
9073 { 9111 {
9074 exit (strcoll ("abc", "def") >= 0 || 9112 exit (strcoll ("abc", "def") >= 0 ||
9075 strcoll ("ABC", "DEF") >= 0 || 9113 strcoll ("ABC", "DEF") >= 0 ||
9076 strcoll ("123", "456") >= 0); 9114 strcoll ("123", "456") >= 0);
9077 } 9115 }
9078 EOF 9116 EOF
9079 if { (eval echo configure:9080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9117 if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
9080 then 9118 then
9081 ac_cv_func_strcoll_works=yes 9119 ac_cv_func_strcoll_works=yes
9082 else 9120 else
9083 echo "configure: failed program was:" >&5 9121 echo "configure: failed program was:" >&5
9084 cat conftest.$ac_ext >&5 9122 cat conftest.$ac_ext >&5
9101 9139
9102 9140
9103 for ac_func in getpgrp 9141 for ac_func in getpgrp
9104 do 9142 do
9105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9106 echo "configure:9107: checking for $ac_func" >&5 9144 echo "configure:9145: checking for $ac_func" >&5
9107 9145
9108 cat > conftest.$ac_ext <<EOF 9146 cat > conftest.$ac_ext <<EOF
9109 #line 9110 "configure" 9147 #line 9148 "configure"
9110 #include "confdefs.h" 9148 #include "confdefs.h"
9111 /* System header to define __stub macros and hopefully few prototypes, 9149 /* System header to define __stub macros and hopefully few prototypes,
9112 which can conflict with char $ac_func(); below. */ 9150 which can conflict with char $ac_func(); below. */
9113 #include <assert.h> 9151 #include <assert.h>
9114 /* Override any gcc2 internal prototype to avoid an error. */ 9152 /* Override any gcc2 internal prototype to avoid an error. */
9127 $ac_func(); 9165 $ac_func();
9128 #endif 9166 #endif
9129 9167
9130 ; return 0; } 9168 ; return 0; }
9131 EOF 9169 EOF
9132 if { (eval echo configure:9133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9170 if { (eval echo configure:9171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9133 rm -rf conftest* 9171 rm -rf conftest*
9134 eval "ac_cv_func_$ac_func=yes" 9172 eval "ac_cv_func_$ac_func=yes"
9135 else 9173 else
9136 echo "configure: failed program was:" >&5 9174 echo "configure: failed program was:" >&5
9137 cat conftest.$ac_ext >&5 9175 cat conftest.$ac_ext >&5
9155 echo "$ac_t""no" 1>&6 9193 echo "$ac_t""no" 1>&6
9156 fi 9194 fi
9157 done 9195 done
9158 9196
9159 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 9197 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9160 echo "configure:9161: checking whether getpgrp takes no argument" >&5 9198 echo "configure:9199: checking whether getpgrp takes no argument" >&5
9161 9199
9162 cat > conftest.$ac_ext <<EOF 9200 cat > conftest.$ac_ext <<EOF
9163 #line 9164 "configure" 9201 #line 9202 "configure"
9164 #include "confdefs.h" 9202 #include "confdefs.h"
9165 9203
9166 /* 9204 /*
9167 * If this system has a BSD-style getpgrp(), 9205 * If this system has a BSD-style getpgrp(),
9168 * which takes a pid argument, exit unsuccessfully. 9206 * which takes a pid argument, exit unsuccessfully.
9213 exit(s>>8); 9251 exit(s>>8);
9214 } 9252 }
9215 } 9253 }
9216 9254
9217 EOF 9255 EOF
9218 if { (eval echo configure:9219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9256 if { (eval echo configure:9257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
9219 then 9257 then
9220 ac_cv_func_getpgrp_void=yes 9258 ac_cv_func_getpgrp_void=yes
9221 else 9259 else
9222 echo "configure: failed program was:" >&5 9260 echo "configure: failed program was:" >&5
9223 cat conftest.$ac_ext >&5 9261 cat conftest.$ac_ext >&5
9239 9277
9240 fi 9278 fi
9241 9279
9242 9280
9243 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9281 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9244 echo "configure:9245: checking for working mmap" >&5 9282 echo "configure:9283: checking for working mmap" >&5
9245 case "$opsys" in ultrix* ) have_mmap=no ;; *) 9283 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9246 cat > conftest.$ac_ext <<EOF 9284 cat > conftest.$ac_ext <<EOF
9247 #line 9248 "configure" 9285 #line 9286 "configure"
9248 #include "confdefs.h" 9286 #include "confdefs.h"
9249 #include <stdio.h> 9287 #include <stdio.h>
9250 #include <unistd.h> 9288 #include <unistd.h>
9251 #include <fcntl.h> 9289 #include <fcntl.h>
9252 #include <sys/mman.h> 9290 #include <sys/mman.h>
9275 return 0; 9313 return 0;
9276 perror ("conftest: mmap failed"); 9314 perror ("conftest: mmap failed");
9277 return 1; 9315 return 1;
9278 } 9316 }
9279 EOF 9317 EOF
9280 if { (eval echo configure:9281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9318 if { (eval echo configure:9319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
9281 then 9319 then
9282 have_mmap=yes 9320 have_mmap=yes
9283 else 9321 else
9284 echo "configure: failed program was:" >&5 9322 echo "configure: failed program was:" >&5
9285 cat conftest.$ac_ext >&5 9323 cat conftest.$ac_ext >&5
9309 } 9347 }
9310 9348
9311 9349
9312 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 9350 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
9313 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 9351 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
9314 echo "configure:9315: checking for termios.h" >&5 9352 echo "configure:9353: checking for termios.h" >&5
9315 9353
9316 cat > conftest.$ac_ext <<EOF 9354 cat > conftest.$ac_ext <<EOF
9317 #line 9318 "configure" 9355 #line 9356 "configure"
9318 #include "confdefs.h" 9356 #include "confdefs.h"
9319 #include <termios.h> 9357 #include <termios.h>
9320 EOF 9358 EOF
9321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9322 { (eval echo configure:9323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9360 { (eval echo configure:9361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9323 ac_err=`grep -v '^ *+' conftest.out` 9361 ac_err=`grep -v '^ *+' conftest.out`
9324 if test -z "$ac_err"; then 9362 if test -z "$ac_err"; then
9325 rm -rf conftest* 9363 rm -rf conftest*
9326 eval "ac_cv_header_$ac_safe=yes" 9364 eval "ac_cv_header_$ac_safe=yes"
9327 else 9365 else
9360 9398
9361 else 9399 else
9362 echo "$ac_t""no" 1>&6 9400 echo "$ac_t""no" 1>&6
9363 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 9401 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
9364 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 9402 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
9365 echo "configure:9366: checking for termio.h" >&5 9403 echo "configure:9404: checking for termio.h" >&5
9366 9404
9367 cat > conftest.$ac_ext <<EOF 9405 cat > conftest.$ac_ext <<EOF
9368 #line 9369 "configure" 9406 #line 9407 "configure"
9369 #include "confdefs.h" 9407 #include "confdefs.h"
9370 #include <termio.h> 9408 #include <termio.h>
9371 EOF 9409 EOF
9372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9373 { (eval echo configure:9374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9411 { (eval echo configure:9412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9374 ac_err=`grep -v '^ *+' conftest.out` 9412 ac_err=`grep -v '^ *+' conftest.out`
9375 if test -z "$ac_err"; then 9413 if test -z "$ac_err"; then
9376 rm -rf conftest* 9414 rm -rf conftest*
9377 eval "ac_cv_header_$ac_safe=yes" 9415 eval "ac_cv_header_$ac_safe=yes"
9378 else 9416 else
9400 fi 9438 fi
9401 9439
9402 9440
9403 9441
9404 echo $ac_n "checking for socket""... $ac_c" 1>&6 9442 echo $ac_n "checking for socket""... $ac_c" 1>&6
9405 echo "configure:9406: checking for socket" >&5 9443 echo "configure:9444: checking for socket" >&5
9406 9444
9407 cat > conftest.$ac_ext <<EOF 9445 cat > conftest.$ac_ext <<EOF
9408 #line 9409 "configure" 9446 #line 9447 "configure"
9409 #include "confdefs.h" 9447 #include "confdefs.h"
9410 /* System header to define __stub macros and hopefully few prototypes, 9448 /* System header to define __stub macros and hopefully few prototypes,
9411 which can conflict with char socket(); below. */ 9449 which can conflict with char socket(); below. */
9412 #include <assert.h> 9450 #include <assert.h>
9413 /* Override any gcc2 internal prototype to avoid an error. */ 9451 /* Override any gcc2 internal prototype to avoid an error. */
9426 socket(); 9464 socket();
9427 #endif 9465 #endif
9428 9466
9429 ; return 0; } 9467 ; return 0; }
9430 EOF 9468 EOF
9431 if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9469 if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9432 rm -rf conftest* 9470 rm -rf conftest*
9433 eval "ac_cv_func_socket=yes" 9471 eval "ac_cv_func_socket=yes"
9434 else 9472 else
9435 echo "configure: failed program was:" >&5 9473 echo "configure: failed program was:" >&5
9436 cat conftest.$ac_ext >&5 9474 cat conftest.$ac_ext >&5
9441 9479
9442 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 9480 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9443 echo "$ac_t""yes" 1>&6 9481 echo "$ac_t""yes" 1>&6
9444 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 9482 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
9445 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 9483 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
9446 echo "configure:9447: checking for netinet/in.h" >&5 9484 echo "configure:9485: checking for netinet/in.h" >&5
9447 9485
9448 cat > conftest.$ac_ext <<EOF 9486 cat > conftest.$ac_ext <<EOF
9449 #line 9450 "configure" 9487 #line 9488 "configure"
9450 #include "confdefs.h" 9488 #include "confdefs.h"
9451 #include <netinet/in.h> 9489 #include <netinet/in.h>
9452 EOF 9490 EOF
9453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9454 { (eval echo configure:9455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9492 { (eval echo configure:9493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9455 ac_err=`grep -v '^ *+' conftest.out` 9493 ac_err=`grep -v '^ *+' conftest.out`
9456 if test -z "$ac_err"; then 9494 if test -z "$ac_err"; then
9457 rm -rf conftest* 9495 rm -rf conftest*
9458 eval "ac_cv_header_$ac_safe=yes" 9496 eval "ac_cv_header_$ac_safe=yes"
9459 else 9497 else
9466 rm -f conftest* 9504 rm -f conftest*
9467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9468 echo "$ac_t""yes" 1>&6 9506 echo "$ac_t""yes" 1>&6
9469 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 9507 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
9470 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 9508 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
9471 echo "configure:9472: checking for arpa/inet.h" >&5 9509 echo "configure:9510: checking for arpa/inet.h" >&5
9472 9510
9473 cat > conftest.$ac_ext <<EOF 9511 cat > conftest.$ac_ext <<EOF
9474 #line 9475 "configure" 9512 #line 9513 "configure"
9475 #include "confdefs.h" 9513 #include "confdefs.h"
9476 #include <arpa/inet.h> 9514 #include <arpa/inet.h>
9477 EOF 9515 EOF
9478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9479 { (eval echo configure:9480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9517 { (eval echo configure:9518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9480 ac_err=`grep -v '^ *+' conftest.out` 9518 ac_err=`grep -v '^ *+' conftest.out`
9481 if test -z "$ac_err"; then 9519 if test -z "$ac_err"; then
9482 rm -rf conftest* 9520 rm -rf conftest*
9483 eval "ac_cv_header_$ac_safe=yes" 9521 eval "ac_cv_header_$ac_safe=yes"
9484 else 9522 else
9499 #define HAVE_SOCKETS 1 9537 #define HAVE_SOCKETS 1
9500 EOF 9538 EOF
9501 } 9539 }
9502 9540
9503 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 9541 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
9504 echo "configure:9505: checking "for sun_len member in struct sockaddr_un"" >&5 9542 echo "configure:9543: checking "for sun_len member in struct sockaddr_un"" >&5
9505 cat > conftest.$ac_ext <<EOF 9543 cat > conftest.$ac_ext <<EOF
9506 #line 9507 "configure" 9544 #line 9545 "configure"
9507 #include "confdefs.h" 9545 #include "confdefs.h"
9508 9546
9509 #include <sys/types.h> 9547 #include <sys/types.h>
9510 #include <sys/socket.h> 9548 #include <sys/socket.h>
9511 #include <sys/un.h> 9549 #include <sys/un.h>
9512 9550
9513 int main() { 9551 int main() {
9514 static struct sockaddr_un x; x.sun_len = 1; 9552 static struct sockaddr_un x; x.sun_len = 1;
9515 ; return 0; } 9553 ; return 0; }
9516 EOF 9554 EOF
9517 if { (eval echo configure:9518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9555 if { (eval echo configure:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9518 rm -rf conftest* 9556 rm -rf conftest*
9519 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9557 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9520 Defining HAVE_SOCKADDR_SUN_LEN 9558 Defining HAVE_SOCKADDR_SUN_LEN
9521 EOF 9559 EOF
9522 cat >> confdefs.h <<\EOF 9560 cat >> confdefs.h <<\EOF
9530 rm -rf conftest* 9568 rm -rf conftest*
9531 echo "$ac_t""no" 1>&6 9569 echo "$ac_t""no" 1>&6
9532 fi 9570 fi
9533 rm -f conftest* 9571 rm -f conftest*
9534 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 9572 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
9535 echo "configure:9536: checking "for ip_mreq struct in netinet/in.h"" >&5 9573 echo "configure:9574: checking "for ip_mreq struct in netinet/in.h"" >&5
9536 cat > conftest.$ac_ext <<EOF 9574 cat > conftest.$ac_ext <<EOF
9537 #line 9538 "configure" 9575 #line 9576 "configure"
9538 #include "confdefs.h" 9576 #include "confdefs.h"
9539 9577
9540 #include <sys/types.h> 9578 #include <sys/types.h>
9541 #include <netinet/in.h> 9579 #include <netinet/in.h>
9542 9580
9543 int main() { 9581 int main() {
9544 static struct ip_mreq x; 9582 static struct ip_mreq x;
9545 ; return 0; } 9583 ; return 0; }
9546 EOF 9584 EOF
9547 if { (eval echo configure:9548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9585 if { (eval echo configure:9586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9548 rm -rf conftest* 9586 rm -rf conftest*
9549 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9587 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9550 Defining HAVE_MULTICAST 9588 Defining HAVE_MULTICAST
9551 EOF 9589 EOF
9552 cat >> confdefs.h <<\EOF 9590 cat >> confdefs.h <<\EOF
9573 echo "$ac_t""no" 1>&6 9611 echo "$ac_t""no" 1>&6
9574 fi 9612 fi
9575 9613
9576 9614
9577 echo $ac_n "checking for msgget""... $ac_c" 1>&6 9615 echo $ac_n "checking for msgget""... $ac_c" 1>&6
9578 echo "configure:9579: checking for msgget" >&5 9616 echo "configure:9617: checking for msgget" >&5
9579 9617
9580 cat > conftest.$ac_ext <<EOF 9618 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure" 9619 #line 9620 "configure"
9582 #include "confdefs.h" 9620 #include "confdefs.h"
9583 /* System header to define __stub macros and hopefully few prototypes, 9621 /* System header to define __stub macros and hopefully few prototypes,
9584 which can conflict with char msgget(); below. */ 9622 which can conflict with char msgget(); below. */
9585 #include <assert.h> 9623 #include <assert.h>
9586 /* Override any gcc2 internal prototype to avoid an error. */ 9624 /* Override any gcc2 internal prototype to avoid an error. */
9599 msgget(); 9637 msgget();
9600 #endif 9638 #endif
9601 9639
9602 ; return 0; } 9640 ; return 0; }
9603 EOF 9641 EOF
9604 if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9642 if { (eval echo configure:9643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9605 rm -rf conftest* 9643 rm -rf conftest*
9606 eval "ac_cv_func_msgget=yes" 9644 eval "ac_cv_func_msgget=yes"
9607 else 9645 else
9608 echo "configure: failed program was:" >&5 9646 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5 9647 cat conftest.$ac_ext >&5
9614 9652
9615 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 9653 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
9616 echo "$ac_t""yes" 1>&6 9654 echo "$ac_t""yes" 1>&6
9617 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 9655 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
9618 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 9656 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
9619 echo "configure:9620: checking for sys/ipc.h" >&5 9657 echo "configure:9658: checking for sys/ipc.h" >&5
9620 9658
9621 cat > conftest.$ac_ext <<EOF 9659 cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure" 9660 #line 9661 "configure"
9623 #include "confdefs.h" 9661 #include "confdefs.h"
9624 #include <sys/ipc.h> 9662 #include <sys/ipc.h>
9625 EOF 9663 EOF
9626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9627 { (eval echo configure:9628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9665 { (eval echo configure:9666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9628 ac_err=`grep -v '^ *+' conftest.out` 9666 ac_err=`grep -v '^ *+' conftest.out`
9629 if test -z "$ac_err"; then 9667 if test -z "$ac_err"; then
9630 rm -rf conftest* 9668 rm -rf conftest*
9631 eval "ac_cv_header_$ac_safe=yes" 9669 eval "ac_cv_header_$ac_safe=yes"
9632 else 9670 else
9639 rm -f conftest* 9677 rm -f conftest*
9640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9641 echo "$ac_t""yes" 1>&6 9679 echo "$ac_t""yes" 1>&6
9642 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 9680 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
9643 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 9681 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
9644 echo "configure:9645: checking for sys/msg.h" >&5 9682 echo "configure:9683: checking for sys/msg.h" >&5
9645 9683
9646 cat > conftest.$ac_ext <<EOF 9684 cat > conftest.$ac_ext <<EOF
9647 #line 9648 "configure" 9685 #line 9686 "configure"
9648 #include "confdefs.h" 9686 #include "confdefs.h"
9649 #include <sys/msg.h> 9687 #include <sys/msg.h>
9650 EOF 9688 EOF
9651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9652 { (eval echo configure:9653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9690 { (eval echo configure:9691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9653 ac_err=`grep -v '^ *+' conftest.out` 9691 ac_err=`grep -v '^ *+' conftest.out`
9654 if test -z "$ac_err"; then 9692 if test -z "$ac_err"; then
9655 rm -rf conftest* 9693 rm -rf conftest*
9656 eval "ac_cv_header_$ac_safe=yes" 9694 eval "ac_cv_header_$ac_safe=yes"
9657 else 9695 else
9685 fi 9723 fi
9686 9724
9687 9725
9688 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 9726 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
9689 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 9727 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
9690 echo "configure:9691: checking for dirent.h" >&5 9728 echo "configure:9729: checking for dirent.h" >&5
9691 9729
9692 cat > conftest.$ac_ext <<EOF 9730 cat > conftest.$ac_ext <<EOF
9693 #line 9694 "configure" 9731 #line 9732 "configure"
9694 #include "confdefs.h" 9732 #include "confdefs.h"
9695 #include <dirent.h> 9733 #include <dirent.h>
9696 EOF 9734 EOF
9697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9698 { (eval echo configure:9699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9736 { (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9699 ac_err=`grep -v '^ *+' conftest.out` 9737 ac_err=`grep -v '^ *+' conftest.out`
9700 if test -z "$ac_err"; then 9738 if test -z "$ac_err"; then
9701 rm -rf conftest* 9739 rm -rf conftest*
9702 eval "ac_cv_header_$ac_safe=yes" 9740 eval "ac_cv_header_$ac_safe=yes"
9703 else 9741 else
9720 9758
9721 else 9759 else
9722 echo "$ac_t""no" 1>&6 9760 echo "$ac_t""no" 1>&6
9723 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 9761 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
9724 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 9762 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
9725 echo "configure:9726: checking for sys/dir.h" >&5 9763 echo "configure:9764: checking for sys/dir.h" >&5
9726 9764
9727 cat > conftest.$ac_ext <<EOF 9765 cat > conftest.$ac_ext <<EOF
9728 #line 9729 "configure" 9766 #line 9767 "configure"
9729 #include "confdefs.h" 9767 #include "confdefs.h"
9730 #include <sys/dir.h> 9768 #include <sys/dir.h>
9731 EOF 9769 EOF
9732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9733 { (eval echo configure:9734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9771 { (eval echo configure:9772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9734 ac_err=`grep -v '^ *+' conftest.out` 9772 ac_err=`grep -v '^ *+' conftest.out`
9735 if test -z "$ac_err"; then 9773 if test -z "$ac_err"; then
9736 rm -rf conftest* 9774 rm -rf conftest*
9737 eval "ac_cv_header_$ac_safe=yes" 9775 eval "ac_cv_header_$ac_safe=yes"
9738 else 9776 else
9761 fi 9799 fi
9762 9800
9763 9801
9764 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 9802 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
9765 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 9803 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
9766 echo "configure:9767: checking for nlist.h" >&5 9804 echo "configure:9805: checking for nlist.h" >&5
9767 9805
9768 cat > conftest.$ac_ext <<EOF 9806 cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure" 9807 #line 9808 "configure"
9770 #include "confdefs.h" 9808 #include "confdefs.h"
9771 #include <nlist.h> 9809 #include <nlist.h>
9772 EOF 9810 EOF
9773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9774 { (eval echo configure:9775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9812 { (eval echo configure:9813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9775 ac_err=`grep -v '^ *+' conftest.out` 9813 ac_err=`grep -v '^ *+' conftest.out`
9776 if test -z "$ac_err"; then 9814 if test -z "$ac_err"; then
9777 rm -rf conftest* 9815 rm -rf conftest*
9778 eval "ac_cv_header_$ac_safe=yes" 9816 eval "ac_cv_header_$ac_safe=yes"
9779 else 9817 else
9799 fi 9837 fi
9800 9838
9801 9839
9802 9840
9803 echo "checking "for sound support"" 1>&6 9841 echo "checking "for sound support"" 1>&6
9804 echo "configure:9805: checking "for sound support"" >&5 9842 echo "configure:9843: checking "for sound support"" >&5
9805 case "$with_sound" in 9843 case "$with_sound" in
9806 native | both ) with_native_sound=yes;; 9844 native | both ) with_native_sound=yes;;
9807 nas | no ) with_native_sound=no;; 9845 nas | no ) with_native_sound=no;;
9808 esac 9846 esac
9809 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 9847 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
9810 9848
9811 if test "$with_native_sound" != "no"; then 9849 if test "$with_native_sound" != "no"; then
9812 if test -n "$native_sound_lib"; then 9850 if test -n "$native_sound_lib"; then
9813 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 9851 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
9814 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 9852 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
9815 echo "configure:9816: checking for multimedia/audio_device.h" >&5 9853 echo "configure:9854: checking for multimedia/audio_device.h" >&5
9816 9854
9817 cat > conftest.$ac_ext <<EOF 9855 cat > conftest.$ac_ext <<EOF
9818 #line 9819 "configure" 9856 #line 9857 "configure"
9819 #include "confdefs.h" 9857 #include "confdefs.h"
9820 #include <multimedia/audio_device.h> 9858 #include <multimedia/audio_device.h>
9821 EOF 9859 EOF
9822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9823 { (eval echo configure:9824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9861 { (eval echo configure:9862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9824 ac_err=`grep -v '^ *+' conftest.out` 9862 ac_err=`grep -v '^ *+' conftest.out`
9825 if test -z "$ac_err"; then 9863 if test -z "$ac_err"; then
9826 rm -rf conftest* 9864 rm -rf conftest*
9827 eval "ac_cv_header_$ac_safe=yes" 9865 eval "ac_cv_header_$ac_safe=yes"
9828 else 9866 else
9866 case "$canonical" in 9904 case "$canonical" in
9867 *-sgi-* ) 9905 *-sgi-* )
9868 if test -z "$native_sound_lib"; then 9906 if test -z "$native_sound_lib"; then
9869 9907
9870 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 9908 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
9871 echo "configure:9872: checking for ALopenport in -laudio" >&5 9909 echo "configure:9910: checking for ALopenport in -laudio" >&5
9872 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 9910 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
9873 9911
9874 xe_check_libs=" -laudio " 9912 xe_check_libs=" -laudio "
9875 cat > conftest.$ac_ext <<EOF 9913 cat > conftest.$ac_ext <<EOF
9876 #line 9877 "configure" 9914 #line 9915 "configure"
9877 #include "confdefs.h" 9915 #include "confdefs.h"
9878 /* Override any gcc2 internal prototype to avoid an error. */ 9916 /* Override any gcc2 internal prototype to avoid an error. */
9879 /* We use char because int might match the return type of a gcc2 9917 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */ 9918 builtin and then its argument prototype would still apply. */
9881 char ALopenport(); 9919 char ALopenport();
9882 9920
9883 int main() { 9921 int main() {
9884 ALopenport() 9922 ALopenport()
9885 ; return 0; } 9923 ; return 0; }
9886 EOF 9924 EOF
9887 if { (eval echo configure:9888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9925 if { (eval echo configure:9926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9888 rm -rf conftest* 9926 rm -rf conftest*
9889 eval "ac_cv_lib_$ac_lib_var=yes" 9927 eval "ac_cv_lib_$ac_lib_var=yes"
9890 else 9928 else
9891 echo "configure: failed program was:" >&5 9929 echo "configure: failed program was:" >&5
9892 cat conftest.$ac_ext >&5 9930 cat conftest.$ac_ext >&5
9913 fi ;; 9951 fi ;;
9914 hppa*-hp-hpux* ) 9952 hppa*-hp-hpux* )
9915 if test -z "$native_sound_lib"; then 9953 if test -z "$native_sound_lib"; then
9916 9954
9917 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 9955 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
9918 echo "configure:9919: checking for AOpenAudio in -lAlib" >&5 9956 echo "configure:9957: checking for AOpenAudio in -lAlib" >&5
9919 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 9957 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
9920 9958
9921 xe_check_libs=" -lAlib " 9959 xe_check_libs=" -lAlib "
9922 cat > conftest.$ac_ext <<EOF 9960 cat > conftest.$ac_ext <<EOF
9923 #line 9924 "configure" 9961 #line 9962 "configure"
9924 #include "confdefs.h" 9962 #include "confdefs.h"
9925 /* Override any gcc2 internal prototype to avoid an error. */ 9963 /* Override any gcc2 internal prototype to avoid an error. */
9926 /* We use char because int might match the return type of a gcc2 9964 /* We use char because int might match the return type of a gcc2
9927 builtin and then its argument prototype would still apply. */ 9965 builtin and then its argument prototype would still apply. */
9928 char AOpenAudio(); 9966 char AOpenAudio();
9929 9967
9930 int main() { 9968 int main() {
9931 AOpenAudio() 9969 AOpenAudio()
9932 ; return 0; } 9970 ; return 0; }
9933 EOF 9971 EOF
9934 if { (eval echo configure:9935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9972 if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9935 rm -rf conftest* 9973 rm -rf conftest*
9936 eval "ac_cv_lib_$ac_lib_var=yes" 9974 eval "ac_cv_lib_$ac_lib_var=yes"
9937 else 9975 else
9938 echo "configure: failed program was:" >&5 9976 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5 9977 cat conftest.$ac_ext >&5
9967 10005
9968 if test -z "$sound_found"; then 10006 if test -z "$sound_found"; then
9969 for dir in "machine" "sys" "linux"; do 10007 for dir in "machine" "sys" "linux"; do
9970 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10008 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
9971 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10009 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
9972 echo "configure:9973: checking for ${dir}/soundcard.h" >&5 10010 echo "configure:10011: checking for ${dir}/soundcard.h" >&5
9973 10011
9974 cat > conftest.$ac_ext <<EOF 10012 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure" 10013 #line 10014 "configure"
9976 #include "confdefs.h" 10014 #include "confdefs.h"
9977 #include <${dir}/soundcard.h> 10015 #include <${dir}/soundcard.h>
9978 EOF 10016 EOF
9979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9980 { (eval echo configure:9981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10018 { (eval echo configure:10019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9981 ac_err=`grep -v '^ *+' conftest.out` 10019 ac_err=`grep -v '^ *+' conftest.out`
9982 if test -z "$ac_err"; then 10020 if test -z "$ac_err"; then
9983 rm -rf conftest* 10021 rm -rf conftest*
9984 eval "ac_cv_header_$ac_safe=yes" 10022 eval "ac_cv_header_$ac_safe=yes"
9985 else 10023 else
10045 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10083 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10046 echo " xemacs will be linked with \"nas.o\"" 10084 echo " xemacs will be linked with \"nas.o\""
10047 fi 10085 fi
10048 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10086 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10049 cat > conftest.$ac_ext <<EOF 10087 cat > conftest.$ac_ext <<EOF
10050 #line 10051 "configure" 10088 #line 10089 "configure"
10051 #include "confdefs.h" 10089 #include "confdefs.h"
10052 #include <audio/Xtutil.h> 10090 #include <audio/Xtutil.h>
10053 EOF 10091 EOF
10054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10055 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10093 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10072 10110
10073 test -z "$with_tty" && with_tty=yes 10111 test -z "$with_tty" && with_tty=yes
10074 10112
10075 if test "$with_tty" = "yes" ; then 10113 if test "$with_tty" = "yes" ; then
10076 echo "checking for TTY-related features" 1>&6 10114 echo "checking for TTY-related features" 1>&6
10077 echo "configure:10078: checking for TTY-related features" >&5 10115 echo "configure:10116: checking for TTY-related features" >&5
10078 { test "$extra_verbose" = "yes" && cat << \EOF 10116 { test "$extra_verbose" = "yes" && cat << \EOF
10079 Defining HAVE_TTY 10117 Defining HAVE_TTY
10080 EOF 10118 EOF
10081 cat >> confdefs.h <<\EOF 10119 cat >> confdefs.h <<\EOF
10082 #define HAVE_TTY 1 10120 #define HAVE_TTY 1
10088 fi 10126 fi
10089 10127
10090 if test -z "$with_ncurses"; then 10128 if test -z "$with_ncurses"; then
10091 10129
10092 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 10130 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10093 echo "configure:10094: checking for tgetent in -lncurses" >&5 10131 echo "configure:10132: checking for tgetent in -lncurses" >&5
10094 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 10132 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10095 10133
10096 xe_check_libs=" -lncurses " 10134 xe_check_libs=" -lncurses "
10097 cat > conftest.$ac_ext <<EOF 10135 cat > conftest.$ac_ext <<EOF
10098 #line 10099 "configure" 10136 #line 10137 "configure"
10099 #include "confdefs.h" 10137 #include "confdefs.h"
10100 /* Override any gcc2 internal prototype to avoid an error. */ 10138 /* Override any gcc2 internal prototype to avoid an error. */
10101 /* We use char because int might match the return type of a gcc2 10139 /* We use char because int might match the return type of a gcc2
10102 builtin and then its argument prototype would still apply. */ 10140 builtin and then its argument prototype would still apply. */
10103 char tgetent(); 10141 char tgetent();
10104 10142
10105 int main() { 10143 int main() {
10106 tgetent() 10144 tgetent()
10107 ; return 0; } 10145 ; return 0; }
10108 EOF 10146 EOF
10109 if { (eval echo configure:10110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10147 if { (eval echo configure:10148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10110 rm -rf conftest* 10148 rm -rf conftest*
10111 eval "ac_cv_lib_$ac_lib_var=yes" 10149 eval "ac_cv_lib_$ac_lib_var=yes"
10112 else 10150 else
10113 echo "configure: failed program was:" >&5 10151 echo "configure: failed program was:" >&5
10114 cat conftest.$ac_ext >&5 10152 cat conftest.$ac_ext >&5
10137 EOF 10175 EOF
10138 } 10176 }
10139 10177
10140 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10178 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10141 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10179 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10142 echo "configure:10143: checking for ncurses/curses.h" >&5 10180 echo "configure:10181: checking for ncurses/curses.h" >&5
10143 10181
10144 cat > conftest.$ac_ext <<EOF 10182 cat > conftest.$ac_ext <<EOF
10145 #line 10146 "configure" 10183 #line 10184 "configure"
10146 #include "confdefs.h" 10184 #include "confdefs.h"
10147 #include <ncurses/curses.h> 10185 #include <ncurses/curses.h>
10148 EOF 10186 EOF
10149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10150 { (eval echo configure:10151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10188 { (eval echo configure:10189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10151 ac_err=`grep -v '^ *+' conftest.out` 10189 ac_err=`grep -v '^ *+' conftest.out`
10152 if test -z "$ac_err"; then 10190 if test -z "$ac_err"; then
10153 rm -rf conftest* 10191 rm -rf conftest*
10154 eval "ac_cv_header_$ac_safe=yes" 10192 eval "ac_cv_header_$ac_safe=yes"
10155 else 10193 else
10167 echo "$ac_t""no" 1>&6 10205 echo "$ac_t""no" 1>&6
10168 fi 10206 fi
10169 10207
10170 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 10208 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10171 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 10209 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10172 echo "configure:10173: checking for ncurses/term.h" >&5 10210 echo "configure:10211: checking for ncurses/term.h" >&5
10173 10211
10174 cat > conftest.$ac_ext <<EOF 10212 cat > conftest.$ac_ext <<EOF
10175 #line 10176 "configure" 10213 #line 10214 "configure"
10176 #include "confdefs.h" 10214 #include "confdefs.h"
10177 #include <ncurses/term.h> 10215 #include <ncurses/term.h>
10178 EOF 10216 EOF
10179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10180 { (eval echo configure:10181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10218 { (eval echo configure:10219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10181 ac_err=`grep -v '^ *+' conftest.out` 10219 ac_err=`grep -v '^ *+' conftest.out`
10182 if test -z "$ac_err"; then 10220 if test -z "$ac_err"; then
10183 rm -rf conftest* 10221 rm -rf conftest*
10184 eval "ac_cv_header_$ac_safe=yes" 10222 eval "ac_cv_header_$ac_safe=yes"
10185 else 10223 else
10205 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 10243 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10206 save_c_switch_site="$c_switch_site" 10244 save_c_switch_site="$c_switch_site"
10207 c_switch_site="$c_switch_site -I/usr/include/ncurses" 10245 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10208 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10246 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10209 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10247 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10210 echo "configure:10211: checking for ncurses/curses.h" >&5 10248 echo "configure:10249: checking for ncurses/curses.h" >&5
10211 10249
10212 cat > conftest.$ac_ext <<EOF 10250 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure" 10251 #line 10252 "configure"
10214 #include "confdefs.h" 10252 #include "confdefs.h"
10215 #include <ncurses/curses.h> 10253 #include <ncurses/curses.h>
10216 EOF 10254 EOF
10217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10218 { (eval echo configure:10219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10256 { (eval echo configure:10257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10219 ac_err=`grep -v '^ *+' conftest.out` 10257 ac_err=`grep -v '^ *+' conftest.out`
10220 if test -z "$ac_err"; then 10258 if test -z "$ac_err"; then
10221 rm -rf conftest* 10259 rm -rf conftest*
10222 eval "ac_cv_header_$ac_safe=yes" 10260 eval "ac_cv_header_$ac_safe=yes"
10223 else 10261 else
10248 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10286 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10249 else 10287 else
10250 for lib in curses termlib termcap; do 10288 for lib in curses termlib termcap; do
10251 10289
10252 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 10290 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10253 echo "configure:10254: checking for tgetent in -l$lib" >&5 10291 echo "configure:10292: checking for tgetent in -l$lib" >&5
10254 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 10292 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10255 10293
10256 xe_check_libs=" -l$lib " 10294 xe_check_libs=" -l$lib "
10257 cat > conftest.$ac_ext <<EOF 10295 cat > conftest.$ac_ext <<EOF
10258 #line 10259 "configure" 10296 #line 10297 "configure"
10259 #include "confdefs.h" 10297 #include "confdefs.h"
10260 /* Override any gcc2 internal prototype to avoid an error. */ 10298 /* Override any gcc2 internal prototype to avoid an error. */
10261 /* We use char because int might match the return type of a gcc2 10299 /* We use char because int might match the return type of a gcc2
10262 builtin and then its argument prototype would still apply. */ 10300 builtin and then its argument prototype would still apply. */
10263 char tgetent(); 10301 char tgetent();
10264 10302
10265 int main() { 10303 int main() {
10266 tgetent() 10304 tgetent()
10267 ; return 0; } 10305 ; return 0; }
10268 EOF 10306 EOF
10269 if { (eval echo configure:10270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10307 if { (eval echo configure:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10270 rm -rf conftest* 10308 rm -rf conftest*
10271 eval "ac_cv_lib_$ac_lib_var=yes" 10309 eval "ac_cv_lib_$ac_lib_var=yes"
10272 else 10310 else
10273 echo "configure: failed program was:" >&5 10311 echo "configure: failed program was:" >&5
10274 cat conftest.$ac_ext >&5 10312 cat conftest.$ac_ext >&5
10295 if test -n "$libs_termcap"; then 10333 if test -n "$libs_termcap"; then
10296 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10334 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10297 else 10335 else
10298 10336
10299 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10337 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10300 echo "configure:10301: checking for tgetent in -lcurses" >&5 10338 echo "configure:10339: checking for tgetent in -lcurses" >&5
10301 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10339 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10302 10340
10303 xe_check_libs=" -lcurses " 10341 xe_check_libs=" -lcurses "
10304 cat > conftest.$ac_ext <<EOF 10342 cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure" 10343 #line 10344 "configure"
10306 #include "confdefs.h" 10344 #include "confdefs.h"
10307 /* Override any gcc2 internal prototype to avoid an error. */ 10345 /* Override any gcc2 internal prototype to avoid an error. */
10308 /* We use char because int might match the return type of a gcc2 10346 /* We use char because int might match the return type of a gcc2
10309 builtin and then its argument prototype would still apply. */ 10347 builtin and then its argument prototype would still apply. */
10310 char tgetent(); 10348 char tgetent();
10311 10349
10312 int main() { 10350 int main() {
10313 tgetent() 10351 tgetent()
10314 ; return 0; } 10352 ; return 0; }
10315 EOF 10353 EOF
10316 if { (eval echo configure:10317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10354 if { (eval echo configure:10355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10317 rm -rf conftest* 10355 rm -rf conftest*
10318 eval "ac_cv_lib_$ac_lib_var=yes" 10356 eval "ac_cv_lib_$ac_lib_var=yes"
10319 else 10357 else
10320 echo "configure: failed program was:" >&5 10358 echo "configure: failed program was:" >&5
10321 cat conftest.$ac_ext >&5 10359 cat conftest.$ac_ext >&5
10329 echo "$ac_t""yes" 1>&6 10367 echo "$ac_t""yes" 1>&6
10330 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 10368 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
10331 else 10369 else
10332 echo "$ac_t""no" 1>&6 10370 echo "$ac_t""no" 1>&6
10333 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 10371 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
10334 echo "configure:10335: checking for tgetent in -ltermcap" >&5 10372 echo "configure:10373: checking for tgetent in -ltermcap" >&5
10335 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 10373 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
10336 10374
10337 xe_check_libs=" -ltermcap " 10375 xe_check_libs=" -ltermcap "
10338 cat > conftest.$ac_ext <<EOF 10376 cat > conftest.$ac_ext <<EOF
10339 #line 10340 "configure" 10377 #line 10378 "configure"
10340 #include "confdefs.h" 10378 #include "confdefs.h"
10341 /* Override any gcc2 internal prototype to avoid an error. */ 10379 /* Override any gcc2 internal prototype to avoid an error. */
10342 /* We use char because int might match the return type of a gcc2 10380 /* We use char because int might match the return type of a gcc2
10343 builtin and then its argument prototype would still apply. */ 10381 builtin and then its argument prototype would still apply. */
10344 char tgetent(); 10382 char tgetent();
10345 10383
10346 int main() { 10384 int main() {
10347 tgetent() 10385 tgetent()
10348 ; return 0; } 10386 ; return 0; }
10349 EOF 10387 EOF
10350 if { (eval echo configure:10351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10388 if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10351 rm -rf conftest* 10389 rm -rf conftest*
10352 eval "ac_cv_lib_$ac_lib_var=yes" 10390 eval "ac_cv_lib_$ac_lib_var=yes"
10353 else 10391 else
10354 echo "configure: failed program was:" >&5 10392 echo "configure: failed program was:" >&5
10355 cat conftest.$ac_ext >&5 10393 cat conftest.$ac_ext >&5
10393 } 10431 }
10394 10432
10395 10433
10396 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 10434 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
10397 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 10435 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
10398 echo "configure:10399: checking for gpm.h" >&5 10436 echo "configure:10437: checking for gpm.h" >&5
10399 10437
10400 cat > conftest.$ac_ext <<EOF 10438 cat > conftest.$ac_ext <<EOF
10401 #line 10402 "configure" 10439 #line 10440 "configure"
10402 #include "confdefs.h" 10440 #include "confdefs.h"
10403 #include <gpm.h> 10441 #include <gpm.h>
10404 EOF 10442 EOF
10405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10406 { (eval echo configure:10407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10444 { (eval echo configure:10445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10407 ac_err=`grep -v '^ *+' conftest.out` 10445 ac_err=`grep -v '^ *+' conftest.out`
10408 if test -z "$ac_err"; then 10446 if test -z "$ac_err"; then
10409 rm -rf conftest* 10447 rm -rf conftest*
10410 eval "ac_cv_header_$ac_safe=yes" 10448 eval "ac_cv_header_$ac_safe=yes"
10411 else 10449 else
10424 with_gpm=no 10462 with_gpm=no
10425 fi 10463 fi
10426 } 10464 }
10427 test -z "$with_gpm" && { 10465 test -z "$with_gpm" && {
10428 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 10466 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
10429 echo "configure:10430: checking for Gpm_Open in -lgpm" >&5 10467 echo "configure:10468: checking for Gpm_Open in -lgpm" >&5
10430 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 10468 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
10431 10469
10432 xe_check_libs=" -lgpm " 10470 xe_check_libs=" -lgpm "
10433 cat > conftest.$ac_ext <<EOF 10471 cat > conftest.$ac_ext <<EOF
10434 #line 10435 "configure" 10472 #line 10473 "configure"
10435 #include "confdefs.h" 10473 #include "confdefs.h"
10436 /* Override any gcc2 internal prototype to avoid an error. */ 10474 /* Override any gcc2 internal prototype to avoid an error. */
10437 /* We use char because int might match the return type of a gcc2 10475 /* We use char because int might match the return type of a gcc2
10438 builtin and then its argument prototype would still apply. */ 10476 builtin and then its argument prototype would still apply. */
10439 char Gpm_Open(); 10477 char Gpm_Open();
10440 10478
10441 int main() { 10479 int main() {
10442 Gpm_Open() 10480 Gpm_Open()
10443 ; return 0; } 10481 ; return 0; }
10444 EOF 10482 EOF
10445 if { (eval echo configure:10446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10483 if { (eval echo configure:10484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10446 rm -rf conftest* 10484 rm -rf conftest*
10447 eval "ac_cv_lib_$ac_lib_var=yes" 10485 eval "ac_cv_lib_$ac_lib_var=yes"
10448 else 10486 else
10449 echo "configure: failed program was:" >&5 10487 echo "configure: failed program was:" >&5
10450 cat conftest.$ac_ext >&5 10488 cat conftest.$ac_ext >&5
10489 echo " xemacs will be linked with \"event-unixoid.o\"" 10527 echo " xemacs will be linked with \"event-unixoid.o\""
10490 fi 10528 fi
10491 10529
10492 10530
10493 echo "checking for database support" 1>&6 10531 echo "checking for database support" 1>&6
10494 echo "configure:10495: checking for database support" >&5 10532 echo "configure:10533: checking for database support" >&5
10495 10533
10496 if test "$with_database_gnudbm" != "no"; then 10534 if test "$with_database_gnudbm" != "no"; then
10497 for ac_hdr in ndbm.h 10535 for ac_hdr in ndbm.h
10498 do 10536 do
10499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10501 echo "configure:10502: checking for $ac_hdr" >&5 10539 echo "configure:10540: checking for $ac_hdr" >&5
10502 10540
10503 cat > conftest.$ac_ext <<EOF 10541 cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure" 10542 #line 10543 "configure"
10505 #include "confdefs.h" 10543 #include "confdefs.h"
10506 #include <$ac_hdr> 10544 #include <$ac_hdr>
10507 EOF 10545 EOF
10508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10509 { (eval echo configure:10510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10547 { (eval echo configure:10548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10510 ac_err=`grep -v '^ *+' conftest.out` 10548 ac_err=`grep -v '^ *+' conftest.out`
10511 if test -z "$ac_err"; then 10549 if test -z "$ac_err"; then
10512 rm -rf conftest* 10550 rm -rf conftest*
10513 eval "ac_cv_header_$ac_safe=yes" 10551 eval "ac_cv_header_$ac_safe=yes"
10514 else 10552 else
10536 done 10574 done
10537 10575
10538 if test "$have_ndbm_h" = "yes"; then 10576 if test "$have_ndbm_h" = "yes"; then
10539 10577
10540 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 10578 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
10541 echo "configure:10542: checking for dbm_open in -lgdbm" >&5 10579 echo "configure:10580: checking for dbm_open in -lgdbm" >&5
10542 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 10580 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
10543 10581
10544 xe_check_libs=" -lgdbm " 10582 xe_check_libs=" -lgdbm "
10545 cat > conftest.$ac_ext <<EOF 10583 cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure" 10584 #line 10585 "configure"
10547 #include "confdefs.h" 10585 #include "confdefs.h"
10548 /* Override any gcc2 internal prototype to avoid an error. */ 10586 /* Override any gcc2 internal prototype to avoid an error. */
10549 /* We use char because int might match the return type of a gcc2 10587 /* We use char because int might match the return type of a gcc2
10550 builtin and then its argument prototype would still apply. */ 10588 builtin and then its argument prototype would still apply. */
10551 char dbm_open(); 10589 char dbm_open();
10552 10590
10553 int main() { 10591 int main() {
10554 dbm_open() 10592 dbm_open()
10555 ; return 0; } 10593 ; return 0; }
10556 EOF 10594 EOF
10557 if { (eval echo configure:10558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10595 if { (eval echo configure:10596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10558 rm -rf conftest* 10596 rm -rf conftest*
10559 eval "ac_cv_lib_$ac_lib_var=yes" 10597 eval "ac_cv_lib_$ac_lib_var=yes"
10560 else 10598 else
10561 echo "configure: failed program was:" >&5 10599 echo "configure: failed program was:" >&5
10562 cat conftest.$ac_ext >&5 10600 cat conftest.$ac_ext >&5
10575 10613
10576 10614
10577 fi 10615 fi
10578 if test "$with_database_gnudbm" != "yes"; then 10616 if test "$with_database_gnudbm" != "yes"; then
10579 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 10617 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
10580 echo "configure:10581: checking for dbm_open" >&5 10618 echo "configure:10619: checking for dbm_open" >&5
10581 10619
10582 cat > conftest.$ac_ext <<EOF 10620 cat > conftest.$ac_ext <<EOF
10583 #line 10584 "configure" 10621 #line 10622 "configure"
10584 #include "confdefs.h" 10622 #include "confdefs.h"
10585 /* System header to define __stub macros and hopefully few prototypes, 10623 /* System header to define __stub macros and hopefully few prototypes,
10586 which can conflict with char dbm_open(); below. */ 10624 which can conflict with char dbm_open(); below. */
10587 #include <assert.h> 10625 #include <assert.h>
10588 /* Override any gcc2 internal prototype to avoid an error. */ 10626 /* Override any gcc2 internal prototype to avoid an error. */
10601 dbm_open(); 10639 dbm_open();
10602 #endif 10640 #endif
10603 10641
10604 ; return 0; } 10642 ; return 0; }
10605 EOF 10643 EOF
10606 if { (eval echo configure:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10644 if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10607 rm -rf conftest* 10645 rm -rf conftest*
10608 eval "ac_cv_func_dbm_open=yes" 10646 eval "ac_cv_func_dbm_open=yes"
10609 else 10647 else
10610 echo "configure: failed program was:" >&5 10648 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5 10649 cat conftest.$ac_ext >&5
10637 fi 10675 fi
10638 fi 10676 fi
10639 10677
10640 if test "$with_database_dbm" != "no"; then 10678 if test "$with_database_dbm" != "no"; then
10641 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 10679 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
10642 echo "configure:10643: checking for dbm_open" >&5 10680 echo "configure:10681: checking for dbm_open" >&5
10643 10681
10644 cat > conftest.$ac_ext <<EOF 10682 cat > conftest.$ac_ext <<EOF
10645 #line 10646 "configure" 10683 #line 10684 "configure"
10646 #include "confdefs.h" 10684 #include "confdefs.h"
10647 /* System header to define __stub macros and hopefully few prototypes, 10685 /* System header to define __stub macros and hopefully few prototypes,
10648 which can conflict with char dbm_open(); below. */ 10686 which can conflict with char dbm_open(); below. */
10649 #include <assert.h> 10687 #include <assert.h>
10650 /* Override any gcc2 internal prototype to avoid an error. */ 10688 /* Override any gcc2 internal prototype to avoid an error. */
10663 dbm_open(); 10701 dbm_open();
10664 #endif 10702 #endif
10665 10703
10666 ; return 0; } 10704 ; return 0; }
10667 EOF 10705 EOF
10668 if { (eval echo configure:10669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10706 if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10669 rm -rf conftest* 10707 rm -rf conftest*
10670 eval "ac_cv_func_dbm_open=yes" 10708 eval "ac_cv_func_dbm_open=yes"
10671 else 10709 else
10672 echo "configure: failed program was:" >&5 10710 echo "configure: failed program was:" >&5
10673 cat conftest.$ac_ext >&5 10711 cat conftest.$ac_ext >&5
10684 fi 10722 fi
10685 10723
10686 if test "$need_libdbm" != "no"; then 10724 if test "$need_libdbm" != "no"; then
10687 10725
10688 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 10726 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
10689 echo "configure:10690: checking for dbm_open in -ldbm" >&5 10727 echo "configure:10728: checking for dbm_open in -ldbm" >&5
10690 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 10728 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
10691 10729
10692 xe_check_libs=" -ldbm " 10730 xe_check_libs=" -ldbm "
10693 cat > conftest.$ac_ext <<EOF 10731 cat > conftest.$ac_ext <<EOF
10694 #line 10695 "configure" 10732 #line 10733 "configure"
10695 #include "confdefs.h" 10733 #include "confdefs.h"
10696 /* Override any gcc2 internal prototype to avoid an error. */ 10734 /* Override any gcc2 internal prototype to avoid an error. */
10697 /* We use char because int might match the return type of a gcc2 10735 /* We use char because int might match the return type of a gcc2
10698 builtin and then its argument prototype would still apply. */ 10736 builtin and then its argument prototype would still apply. */
10699 char dbm_open(); 10737 char dbm_open();
10700 10738
10701 int main() { 10739 int main() {
10702 dbm_open() 10740 dbm_open()
10703 ; return 0; } 10741 ; return 0; }
10704 EOF 10742 EOF
10705 if { (eval echo configure:10706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10743 if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10706 rm -rf conftest* 10744 rm -rf conftest*
10707 eval "ac_cv_lib_$ac_lib_var=yes" 10745 eval "ac_cv_lib_$ac_lib_var=yes"
10708 else 10746 else
10709 echo "configure: failed program was:" >&5 10747 echo "configure: failed program was:" >&5
10710 cat conftest.$ac_ext >&5 10748 cat conftest.$ac_ext >&5
10737 fi 10775 fi
10738 fi 10776 fi
10739 10777
10740 if test "$with_database_berkdb" != "no"; then 10778 if test "$with_database_berkdb" != "no"; then
10741 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 10779 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
10742 echo "configure:10743: checking for dbopen" >&5 10780 echo "configure:10781: checking for dbopen" >&5
10743 10781
10744 cat > conftest.$ac_ext <<EOF 10782 cat > conftest.$ac_ext <<EOF
10745 #line 10746 "configure" 10783 #line 10784 "configure"
10746 #include "confdefs.h" 10784 #include "confdefs.h"
10747 /* System header to define __stub macros and hopefully few prototypes, 10785 /* System header to define __stub macros and hopefully few prototypes,
10748 which can conflict with char dbopen(); below. */ 10786 which can conflict with char dbopen(); below. */
10749 #include <assert.h> 10787 #include <assert.h>
10750 /* Override any gcc2 internal prototype to avoid an error. */ 10788 /* Override any gcc2 internal prototype to avoid an error. */
10763 dbopen(); 10801 dbopen();
10764 #endif 10802 #endif
10765 10803
10766 ; return 0; } 10804 ; return 0; }
10767 EOF 10805 EOF
10768 if { (eval echo configure:10769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10806 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10769 rm -rf conftest* 10807 rm -rf conftest*
10770 eval "ac_cv_func_dbopen=yes" 10808 eval "ac_cv_func_dbopen=yes"
10771 else 10809 else
10772 echo "configure: failed program was:" >&5 10810 echo "configure: failed program was:" >&5
10773 cat conftest.$ac_ext >&5 10811 cat conftest.$ac_ext >&5
10784 fi 10822 fi
10785 10823
10786 if test "$need_libdb" != "no"; then 10824 if test "$need_libdb" != "no"; then
10787 10825
10788 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 10826 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
10789 echo "configure:10790: checking for dbopen in -ldb" >&5 10827 echo "configure:10828: checking for dbopen in -ldb" >&5
10790 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 10828 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
10791 10829
10792 xe_check_libs=" -ldb " 10830 xe_check_libs=" -ldb "
10793 cat > conftest.$ac_ext <<EOF 10831 cat > conftest.$ac_ext <<EOF
10794 #line 10795 "configure" 10832 #line 10833 "configure"
10795 #include "confdefs.h" 10833 #include "confdefs.h"
10796 /* Override any gcc2 internal prototype to avoid an error. */ 10834 /* Override any gcc2 internal prototype to avoid an error. */
10797 /* We use char because int might match the return type of a gcc2 10835 /* We use char because int might match the return type of a gcc2
10798 builtin and then its argument prototype would still apply. */ 10836 builtin and then its argument prototype would still apply. */
10799 char dbopen(); 10837 char dbopen();
10800 10838
10801 int main() { 10839 int main() {
10802 dbopen() 10840 dbopen()
10803 ; return 0; } 10841 ; return 0; }
10804 EOF 10842 EOF
10805 if { (eval echo configure:10806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10843 if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10806 rm -rf conftest* 10844 rm -rf conftest*
10807 eval "ac_cv_lib_$ac_lib_var=yes" 10845 eval "ac_cv_lib_$ac_lib_var=yes"
10808 else 10846 else
10809 echo "configure: failed program was:" >&5 10847 echo "configure: failed program was:" >&5
10810 cat conftest.$ac_ext >&5 10848 cat conftest.$ac_ext >&5
10824 10862
10825 fi 10863 fi
10826 if test "$with_database_berkdb" = "yes"; then 10864 if test "$with_database_berkdb" = "yes"; then
10827 for path in "db/db.h" "db.h"; do 10865 for path in "db/db.h" "db.h"; do
10828 cat > conftest.$ac_ext <<EOF 10866 cat > conftest.$ac_ext <<EOF
10829 #line 10830 "configure" 10867 #line 10868 "configure"
10830 #include "confdefs.h" 10868 #include "confdefs.h"
10831 #ifdef HAVE_INTTYPES_H 10869 #ifdef HAVE_INTTYPES_H
10832 #define __BIT_TYPES_DEFINED__ 10870 #define __BIT_TYPES_DEFINED__
10833 #include <inttypes.h> 10871 #include <inttypes.h>
10834 typedef uint8_t u_int8_t; 10872 typedef uint8_t u_int8_t;
10842 10880
10843 int main() { 10881 int main() {
10844 10882
10845 ; return 0; } 10883 ; return 0; }
10846 EOF 10884 EOF
10847 if { (eval echo configure:10848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10885 if { (eval echo configure:10886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10848 rm -rf conftest* 10886 rm -rf conftest*
10849 db_h_path="$path"; break 10887 db_h_path="$path"; break
10850 else 10888 else
10851 echo "configure: failed program was:" >&5 10889 echo "configure: failed program was:" >&5
10852 cat conftest.$ac_ext >&5 10890 cat conftest.$ac_ext >&5
10893 fi 10931 fi
10894 10932
10895 if test "$with_socks" = "yes"; then 10933 if test "$with_socks" = "yes"; then
10896 10934
10897 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 10935 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
10898 echo "configure:10899: checking for SOCKSinit in -lsocks" >&5 10936 echo "configure:10937: checking for SOCKSinit in -lsocks" >&5
10899 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 10937 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
10900 10938
10901 xe_check_libs=" -lsocks " 10939 xe_check_libs=" -lsocks "
10902 cat > conftest.$ac_ext <<EOF 10940 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure" 10941 #line 10942 "configure"
10904 #include "confdefs.h" 10942 #include "confdefs.h"
10905 /* Override any gcc2 internal prototype to avoid an error. */ 10943 /* Override any gcc2 internal prototype to avoid an error. */
10906 /* We use char because int might match the return type of a gcc2 10944 /* We use char because int might match the return type of a gcc2
10907 builtin and then its argument prototype would still apply. */ 10945 builtin and then its argument prototype would still apply. */
10908 char SOCKSinit(); 10946 char SOCKSinit();
10909 10947
10910 int main() { 10948 int main() {
10911 SOCKSinit() 10949 SOCKSinit()
10912 ; return 0; } 10950 ; return 0; }
10913 EOF 10951 EOF
10914 if { (eval echo configure:10915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10952 if { (eval echo configure:10953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10915 rm -rf conftest* 10953 rm -rf conftest*
10916 eval "ac_cv_lib_$ac_lib_var=yes" 10954 eval "ac_cv_lib_$ac_lib_var=yes"
10917 else 10955 else
10918 echo "configure: failed program was:" >&5 10956 echo "configure: failed program was:" >&5
10919 cat conftest.$ac_ext >&5 10957 cat conftest.$ac_ext >&5
10966 11004
10967 for ac_hdr in dlfcn.h 11005 for ac_hdr in dlfcn.h
10968 do 11006 do
10969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11007 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10971 echo "configure:10972: checking for $ac_hdr" >&5 11009 echo "configure:11010: checking for $ac_hdr" >&5
10972 11010
10973 cat > conftest.$ac_ext <<EOF 11011 cat > conftest.$ac_ext <<EOF
10974 #line 10975 "configure" 11012 #line 11013 "configure"
10975 #include "confdefs.h" 11013 #include "confdefs.h"
10976 #include <$ac_hdr> 11014 #include <$ac_hdr>
10977 EOF 11015 EOF
10978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10979 { (eval echo configure:10980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11017 { (eval echo configure:11018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10980 ac_err=`grep -v '^ *+' conftest.out` 11018 ac_err=`grep -v '^ *+' conftest.out`
10981 if test -z "$ac_err"; then 11019 if test -z "$ac_err"; then
10982 rm -rf conftest* 11020 rm -rf conftest*
10983 eval "ac_cv_header_$ac_safe=yes" 11021 eval "ac_cv_header_$ac_safe=yes"
10984 else 11022 else
11005 fi 11043 fi
11006 done 11044 done
11007 11045
11008 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11046 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11009 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11047 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11010 echo "configure:11011: checking for dlopen in -ldl" >&5 11048 echo "configure:11049: checking for dlopen in -ldl" >&5
11011 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11049 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11012 11050
11013 xe_check_libs=" -ldl " 11051 xe_check_libs=" -ldl "
11014 cat > conftest.$ac_ext <<EOF 11052 cat > conftest.$ac_ext <<EOF
11015 #line 11016 "configure" 11053 #line 11054 "configure"
11016 #include "confdefs.h" 11054 #include "confdefs.h"
11017 /* Override any gcc2 internal prototype to avoid an error. */ 11055 /* Override any gcc2 internal prototype to avoid an error. */
11018 /* We use char because int might match the return type of a gcc2 11056 /* We use char because int might match the return type of a gcc2
11019 builtin and then its argument prototype would still apply. */ 11057 builtin and then its argument prototype would still apply. */
11020 char dlopen(); 11058 char dlopen();
11021 11059
11022 int main() { 11060 int main() {
11023 dlopen() 11061 dlopen()
11024 ; return 0; } 11062 ; return 0; }
11025 EOF 11063 EOF
11026 if { (eval echo configure:11027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11064 if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11027 rm -rf conftest* 11065 rm -rf conftest*
11028 eval "ac_cv_lib_$ac_lib_var=yes" 11066 eval "ac_cv_lib_$ac_lib_var=yes"
11029 else 11067 else
11030 echo "configure: failed program was:" >&5 11068 echo "configure: failed program was:" >&5
11031 cat conftest.$ac_ext >&5 11069 cat conftest.$ac_ext >&5
11050 fi 11088 fi
11051 11089
11052 } 11090 }
11053 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11091 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11054 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 11092 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11055 echo "configure:11056: checking for _dlopen in -lc" >&5 11093 echo "configure:11094: checking for _dlopen in -lc" >&5
11056 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 11094 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11057 11095
11058 xe_check_libs=" -lc " 11096 xe_check_libs=" -lc "
11059 cat > conftest.$ac_ext <<EOF 11097 cat > conftest.$ac_ext <<EOF
11060 #line 11061 "configure" 11098 #line 11099 "configure"
11061 #include "confdefs.h" 11099 #include "confdefs.h"
11062 /* Override any gcc2 internal prototype to avoid an error. */ 11100 /* Override any gcc2 internal prototype to avoid an error. */
11063 /* We use char because int might match the return type of a gcc2 11101 /* We use char because int might match the return type of a gcc2
11064 builtin and then its argument prototype would still apply. */ 11102 builtin and then its argument prototype would still apply. */
11065 char _dlopen(); 11103 char _dlopen();
11066 11104
11067 int main() { 11105 int main() {
11068 _dlopen() 11106 _dlopen()
11069 ; return 0; } 11107 ; return 0; }
11070 EOF 11108 EOF
11071 if { (eval echo configure:11072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11109 if { (eval echo configure:11110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11072 rm -rf conftest* 11110 rm -rf conftest*
11073 eval "ac_cv_lib_$ac_lib_var=yes" 11111 eval "ac_cv_lib_$ac_lib_var=yes"
11074 else 11112 else
11075 echo "configure: failed program was:" >&5 11113 echo "configure: failed program was:" >&5
11076 cat conftest.$ac_ext >&5 11114 cat conftest.$ac_ext >&5
11095 fi 11133 fi
11096 11134
11097 } 11135 }
11098 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11136 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11099 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11137 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11100 echo "configure:11101: checking for dlopen in -lc" >&5 11138 echo "configure:11139: checking for dlopen in -lc" >&5
11101 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11139 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11102 11140
11103 xe_check_libs=" -lc " 11141 xe_check_libs=" -lc "
11104 cat > conftest.$ac_ext <<EOF 11142 cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure" 11143 #line 11144 "configure"
11106 #include "confdefs.h" 11144 #include "confdefs.h"
11107 /* Override any gcc2 internal prototype to avoid an error. */ 11145 /* Override any gcc2 internal prototype to avoid an error. */
11108 /* We use char because int might match the return type of a gcc2 11146 /* We use char because int might match the return type of a gcc2
11109 builtin and then its argument prototype would still apply. */ 11147 builtin and then its argument prototype would still apply. */
11110 char dlopen(); 11148 char dlopen();
11111 11149
11112 int main() { 11150 int main() {
11113 dlopen() 11151 dlopen()
11114 ; return 0; } 11152 ; return 0; }
11115 EOF 11153 EOF
11116 if { (eval echo configure:11117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11154 if { (eval echo configure:11155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11117 rm -rf conftest* 11155 rm -rf conftest*
11118 eval "ac_cv_lib_$ac_lib_var=yes" 11156 eval "ac_cv_lib_$ac_lib_var=yes"
11119 else 11157 else
11120 echo "configure: failed program was:" >&5 11158 echo "configure: failed program was:" >&5
11121 cat conftest.$ac_ext >&5 11159 cat conftest.$ac_ext >&5
11140 fi 11178 fi
11141 11179
11142 } 11180 }
11143 test -z "$with_shlib" && { 11181 test -z "$with_shlib" && {
11144 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11182 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11145 echo "configure:11146: checking for shl_load in -ldld" >&5 11183 echo "configure:11184: checking for shl_load in -ldld" >&5
11146 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11184 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11147 11185
11148 xe_check_libs=" -ldld " 11186 xe_check_libs=" -ldld "
11149 cat > conftest.$ac_ext <<EOF 11187 cat > conftest.$ac_ext <<EOF
11150 #line 11151 "configure" 11188 #line 11189 "configure"
11151 #include "confdefs.h" 11189 #include "confdefs.h"
11152 /* Override any gcc2 internal prototype to avoid an error. */ 11190 /* Override any gcc2 internal prototype to avoid an error. */
11153 /* We use char because int might match the return type of a gcc2 11191 /* We use char because int might match the return type of a gcc2
11154 builtin and then its argument prototype would still apply. */ 11192 builtin and then its argument prototype would still apply. */
11155 char shl_load(); 11193 char shl_load();
11156 11194
11157 int main() { 11195 int main() {
11158 shl_load() 11196 shl_load()
11159 ; return 0; } 11197 ; return 0; }
11160 EOF 11198 EOF
11161 if { (eval echo configure:11162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11199 if { (eval echo configure:11200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11162 rm -rf conftest* 11200 rm -rf conftest*
11163 eval "ac_cv_lib_$ac_lib_var=yes" 11201 eval "ac_cv_lib_$ac_lib_var=yes"
11164 else 11202 else
11165 echo "configure: failed program was:" >&5 11203 echo "configure: failed program was:" >&5
11166 cat conftest.$ac_ext >&5 11204 cat conftest.$ac_ext >&5
11185 fi 11223 fi
11186 11224
11187 } 11225 }
11188 test -z "$with_shlib" && { 11226 test -z "$with_shlib" && {
11189 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 11227 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11190 echo "configure:11191: checking for dld_init in -ldld" >&5 11228 echo "configure:11229: checking for dld_init in -ldld" >&5
11191 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 11229 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11192 11230
11193 xe_check_libs=" -ldld " 11231 xe_check_libs=" -ldld "
11194 cat > conftest.$ac_ext <<EOF 11232 cat > conftest.$ac_ext <<EOF
11195 #line 11196 "configure" 11233 #line 11234 "configure"
11196 #include "confdefs.h" 11234 #include "confdefs.h"
11197 /* Override any gcc2 internal prototype to avoid an error. */ 11235 /* Override any gcc2 internal prototype to avoid an error. */
11198 /* We use char because int might match the return type of a gcc2 11236 /* We use char because int might match the return type of a gcc2
11199 builtin and then its argument prototype would still apply. */ 11237 builtin and then its argument prototype would still apply. */
11200 char dld_init(); 11238 char dld_init();
11201 11239
11202 int main() { 11240 int main() {
11203 dld_init() 11241 dld_init()
11204 ; return 0; } 11242 ; return 0; }
11205 EOF 11243 EOF
11206 if { (eval echo configure:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11244 if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11207 rm -rf conftest* 11245 rm -rf conftest*
11208 eval "ac_cv_lib_$ac_lib_var=yes" 11246 eval "ac_cv_lib_$ac_lib_var=yes"
11209 else 11247 else
11210 echo "configure: failed program was:" >&5 11248 echo "configure: failed program was:" >&5
11211 cat conftest.$ac_ext >&5 11249 cat conftest.$ac_ext >&5
11251 dll_lflags="-shared" 11289 dll_lflags="-shared"
11252 dll_cflags="-r" 11290 dll_cflags="-r"
11253 dll_oflags="-o " 11291 dll_oflags="-o "
11254 11292
11255 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 11293 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
11256 echo "configure:11257: checking how to build a shared library" >&5 11294 echo "configure:11295: checking how to build a shared library" >&5
11257 case `uname -rs` in 11295 case `uname -rs` in
11258 UNIX_SV*|UNIX_System_V*) 11296 UNIX_SV*|UNIX_System_V*)
11259 dll_lflags="-G" 11297 dll_lflags="-G"
11260 dll_cflags=-Kpic 11298 dll_cflags=-Kpic
11261 dll_ld="ld" 11299 dll_ld="ld"
11342 11380
11343 11381
11344 for ac_func in dlerror 11382 for ac_func in dlerror
11345 do 11383 do
11346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11347 echo "configure:11348: checking for $ac_func" >&5 11385 echo "configure:11386: checking for $ac_func" >&5
11348 11386
11349 cat > conftest.$ac_ext <<EOF 11387 cat > conftest.$ac_ext <<EOF
11350 #line 11351 "configure" 11388 #line 11389 "configure"
11351 #include "confdefs.h" 11389 #include "confdefs.h"
11352 /* System header to define __stub macros and hopefully few prototypes, 11390 /* System header to define __stub macros and hopefully few prototypes,
11353 which can conflict with char $ac_func(); below. */ 11391 which can conflict with char $ac_func(); below. */
11354 #include <assert.h> 11392 #include <assert.h>
11355 /* Override any gcc2 internal prototype to avoid an error. */ 11393 /* Override any gcc2 internal prototype to avoid an error. */
11368 $ac_func(); 11406 $ac_func();
11369 #endif 11407 #endif
11370 11408
11371 ; return 0; } 11409 ; return 0; }
11372 EOF 11410 EOF
11373 if { (eval echo configure:11374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11411 if { (eval echo configure:11412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11374 rm -rf conftest* 11412 rm -rf conftest*
11375 eval "ac_cv_func_$ac_func=yes" 11413 eval "ac_cv_func_$ac_func=yes"
11376 else 11414 else
11377 echo "configure: failed program was:" >&5 11415 echo "configure: failed program was:" >&5
11378 cat conftest.$ac_ext >&5 11416 cat conftest.$ac_ext >&5
11404 *) ;; 11442 *) ;;
11405 esac 11443 esac
11406 fi 11444 fi
11407 11445
11408 cat > conftest.$ac_ext <<EOF 11446 cat > conftest.$ac_ext <<EOF
11409 #line 11410 "configure" 11447 #line 11448 "configure"
11410 #include "confdefs.h" 11448 #include "confdefs.h"
11411 int main(int c,char *v[]){return 0;} 11449 int main(int c,char *v[]){return 0;}
11412 EOF 11450 EOF
11413 if { (eval echo configure:11414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 11451 if { (eval echo configure:11452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
11414 then 11452 then
11415 : 11453 :
11416 else 11454 else
11417 echo "configure: failed program was:" >&5 11455 echo "configure: failed program was:" >&5
11418 cat conftest.$ac_ext >&5 11456 cat conftest.$ac_ext >&5