comparison configure @ 306:9ea74add5d37 r21-0b51

Import from CVS: tag r21-0b51
author cvs
date Mon, 13 Aug 2007 10:41:58 +0200
parents 3cc9f0ebfbd1
children 33bdb3d4b97f
comparison
equal deleted inserted replaced
305:18920a7e9a86 306:9ea74add5d37
871 EOF 871 EOF
872 } 872 }
873 873
874 874
875 if test "$with_infodock" = "yes"; then 875 if test "$with_infodock" = "yes"; then
876 if test ! -f ../ID-INSTALL; then 876 if test ! -f ../../ID-INSTALL; then
877 echo "Cannot build InfoDock without InfoDock sources" 877 echo "Cannot build InfoDock without InfoDock sources"
878 with_infodock=no 878 with_infodock=no
879 fi 879 fi
880 fi 880 fi
881 881
997 997
998 machine='' opsys='' 998 machine='' opsys=''
999 999
1000 case "$canonical" in 1000 case "$canonical" in
1001 sparc-*-* ) machine=sparc ;; 1001 sparc-*-* ) machine=sparc ;;
1002 alpha-*-* ) machine=alpha ;; 1002 alpha*-*-* ) machine=alpha ;;
1003 vax-*-* ) machine=vax ;; 1003 vax-*-* ) machine=vax ;;
1004 mips-dec-* ) machine=pmax ;; 1004 mips-dec-* ) machine=pmax ;;
1005 mips-sgi-* ) machine=iris4d ;; 1005 mips-sgi-* ) machine=iris4d ;;
1006 romp-ibm-* ) machine=ibmrt ;; 1006 romp-ibm-* ) machine=ibmrt ;;
1007 rs6000-ibm-aix* ) machine=ibmrs6000 ;; 1007 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
2079 #define _GNU_SOURCE 1 2079 #define _GNU_SOURCE 1
2080 EOF 2080 EOF
2081 } 2081 }
2082 2082
2083 2083
2084 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6 2084
2085 echo "configure:2086: checking whether we are using SunPro C" >&5 2085 cat > conftest.$ac_ext <<EOF
2086 cat > conftest.$ac_ext <<EOF 2086 #line 2087 "configure"
2087 #line 2088 "configure" 2087 #include "confdefs.h"
2088 #include "confdefs.h" 2088 int main () {
2089 2089 #if defined __SUNPRO_C
2090 int main() { 2090 return 11;
2091 #ifndef __SUNPRO_C 2091 #elif defined __DECC
2092 #error Not a SunPro compiler :-( 2092 return 12;
2093 ******* ======= ******** &&&&&&&& 2093 #else
2094 return 0;
2094 #endif 2095 #endif
2095 2096 }
2096 ; return 0; } 2097 EOF
2097 EOF 2098 if { (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2098 if { (eval echo configure:2099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2099 then
2099 rm -rf conftest* 2100 :
2100 __sunpro_c=yes 2101 else
2101 else 2102 conftest_rc="$?"
2102 echo "configure: failed program was:" >&5 2103 echo "configure: failed program was:" >&5
2103 cat conftest.$ac_ext >&5 2104 cat conftest.$ac_ext >&5
2104 rm -rf conftest* 2105 rm -fr conftest*
2105 __sunpro_c=no 2106 case "$conftest_rc" in
2106 fi 2107 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
2107 rm -f conftest* 2108 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
2108 echo "$ac_t""$__sunpro_c" 1>&6 2109 esac
2110 fi
2111 rm -fr conftest*
2112
2109 2113
2110 2114
2111 2115
2112 echo "Extracting information from the machine- and system-dependent headers..." 2116 echo "Extracting information from the machine- and system-dependent headers..."
2113 2117
2275 test "$extra_verbose" = "yes" && \ 2279 test "$extra_verbose" = "yes" && \
2276 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo "" 2280 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
2277 2281
2278 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" 2282 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2279 2283
2284 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2285
2280 if test "$cflags_specified" = "no"; then 2286 if test "$cflags_specified" = "no"; then
2281 if test "$GCC" = "yes"; then 2287 if test "$GCC" = "yes"; then
2282 CFLAGS="-g -O3 -Wall -Wno-switch" 2288 CFLAGS="-g -O3 -Wall -Wno-switch"
2283 test "$opsys $machine" = "cygwin32 intel386" && \ 2289 test "$opsys $machine" = "cygwin32 intel386" && \
2284 CFLAGS="-g -O2 -Wall -Wno-switch" 2290 CFLAGS="-g -O2 -Wall -Wno-switch"
2285 elif test "$__sunpro_c" = "yes"; then 2291 elif test "$__SUNPRO_C" = "yes"; then
2286 case "$opsys" in 2292 case "$opsys" in
2287 sol2 ) CFLAGS="-v -xO4" ;; 2293 sol2 ) CFLAGS="-v -xO4" ;;
2288 sunos4* ) CFLAGS="-xO2";; 2294 sunos4* ) CFLAGS="-xO2";;
2289 esac 2295 esac
2296 elif test "$__DECC" = "yes"; then
2297 CFLAGS="-O3"
2290 elif test "$CC" = "xlc"; then 2298 elif test "$CC" = "xlc"; then
2291 CFLAGS="-O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000" 2299 CFLAGS="-O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2292 else 2300 else
2293 CFLAGS="-O" ; fi 2301 CFLAGS="-O" ; fi
2294 fi 2302 fi
2295 2303
2296 2304
2297 if test "$GCC" = "yes"; then 2305 if test "$GCC" = "yes"; then
2298 set x $ld_switch_system; shift; ld_switch_system="" 2306 set x $ld_switch_system; shift; ld_switch_system=""
2355 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2363 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2356 echo " xemacs will be linked with \"$unexec\"" 2364 echo " xemacs will be linked with \"$unexec\""
2357 fi 2365 fi
2358 2366
2359 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2367 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2360 echo "configure:2361: checking for dynodump" >&5 2368 echo "configure:2369: checking for dynodump" >&5
2361 if test "$unexec" != "unexsol2.o"; then 2369 if test "$unexec" != "unexsol2.o"; then
2362 echo "$ac_t""no" 1>&6 2370 echo "$ac_t""no" 1>&6
2363 else 2371 else
2364 echo "$ac_t""yes" 1>&6 2372 echo "$ac_t""yes" 1>&6
2365 { test "$extra_verbose" = "yes" && cat << \EOF 2373 { test "$extra_verbose" = "yes" && cat << \EOF
2393 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2401 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 2402 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2395 done 2403 done
2396 2404
2397 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2405 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2398 echo "configure:2399: checking for terminateAndUnload in -lC" >&5 2406 echo "configure:2407: checking for terminateAndUnload in -lC" >&5
2399 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2407 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2400 2408
2401 xe_check_libs=" -lC " 2409 xe_check_libs=" -lC "
2402 cat > conftest.$ac_ext <<EOF 2410 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure" 2411 #line 2412 "configure"
2404 #include "confdefs.h" 2412 #include "confdefs.h"
2405 /* Override any gcc2 internal prototype to avoid an error. */ 2413 /* Override any gcc2 internal prototype to avoid an error. */
2406 /* We use char because int might match the return type of a gcc2 2414 /* We use char because int might match the return type of a gcc2
2407 builtin and then its argument prototype would still apply. */ 2415 builtin and then its argument prototype would still apply. */
2408 char terminateAndUnload(); 2416 char terminateAndUnload();
2409 2417
2410 int main() { 2418 int main() {
2411 terminateAndUnload() 2419 terminateAndUnload()
2412 ; return 0; } 2420 ; return 0; }
2413 EOF 2421 EOF
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2422 if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2415 rm -rf conftest* 2423 rm -rf conftest*
2416 eval "ac_cv_lib_$ac_lib_var=yes" 2424 eval "ac_cv_lib_$ac_lib_var=yes"
2417 else 2425 else
2418 echo "configure: failed program was:" >&5 2426 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5 2427 cat conftest.$ac_ext >&5
2486 2494
2487 2495
2488 if test "$dynamic" = "no"; then add_runtime_path=no 2496 if test "$dynamic" = "no"; then add_runtime_path=no
2489 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes 2497 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2490 else case "$opsys" in 2498 else case "$opsys" in
2491 sol2 | irix* | *bsd* ) add_runtime_path=yes ;; 2499 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2492 * ) add_runtime_path=no ;; 2500 * ) add_runtime_path=no ;;
2493 esac 2501 esac
2494 fi 2502 fi
2495 2503
2496 if test "$add_runtime_path" = "yes"; then 2504 if test "$add_runtime_path" = "yes"; then
2497 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2505 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2498 echo "configure:2499: checking "for runtime libraries flag"" >&5 2506 echo "configure:2507: checking "for runtime libraries flag"" >&5
2499 dash_r="" 2507 case "$opsys" in
2500 for try_dash_r in "-R" "-R " "-rpath "; do 2508 sol2 ) dash_r="-R" ;;
2501 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2509 decosf* | linux* ) dash_r="-rpath" ;;
2502 2510 *)
2511 dash_r=""
2512 for try_dash_r in "-R" "-R " "-rpath "; do
2513 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2514
2503 if test "$GCC" = "yes"; then 2515 if test "$GCC" = "yes"; then
2504 set x $xe_check_libs; shift; xe_check_libs="" 2516 set x $xe_check_libs; shift; xe_check_libs=""
2505 while test -n "$1"; do 2517 while test -n "$1"; do
2506 case $1 in 2518 case $1 in
2507 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;; 2519 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2510 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;; 2522 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2511 esac 2523 esac
2512 shift 2524 shift
2513 done 2525 done
2514 fi 2526 fi
2515 cat > conftest.$ac_ext <<EOF 2527 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure" 2528 #line 2529 "configure"
2517 #include "confdefs.h" 2529 #include "confdefs.h"
2518 2530
2519 int main() { 2531 int main() {
2520 2532
2521 ; return 0; } 2533 ; return 0; }
2522 EOF 2534 EOF
2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2535 if { (eval echo configure:2536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2524 rm -rf conftest* 2536 rm -rf conftest*
2525 dash_r="$try_dash_r" 2537 dash_r="$try_dash_r"
2526 else 2538 else
2527 echo "configure: failed program was:" >&5 2539 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5 2540 cat conftest.$ac_ext >&5
2529 fi 2541 fi
2530 rm -f conftest* 2542 rm -f conftest*
2531 xe_check_libs="" 2543 xe_check_libs=""
2532 test -n "$dash_r" && break 2544 test -n "$dash_r" && break
2533 done 2545 done ;;
2546 esac
2534 if test -n "$dash_r"; 2547 if test -n "$dash_r";
2535 then echo "$ac_t"""\"${dash_r}\""" 1>&6 2548 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2536 else echo "$ac_t""NONE" 1>&6 2549 else echo "$ac_t""NONE" 1>&6
2537 fi 2550 fi
2538 fi 2551 fi
2618 else 2631 else
2619 doug_lea_malloc=no 2632 doug_lea_malloc=no
2620 fi 2633 fi
2621 after_morecore_hook_exists=yes 2634 after_morecore_hook_exists=yes
2622 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2635 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2623 echo "configure:2624: checking for malloc_get_state" >&5 2636 echo "configure:2637: checking for malloc_get_state" >&5
2624 2637
2625 cat > conftest.$ac_ext <<EOF 2638 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure" 2639 #line 2640 "configure"
2627 #include "confdefs.h" 2640 #include "confdefs.h"
2628 /* System header to define __stub macros and hopefully few prototypes, 2641 /* System header to define __stub macros and hopefully few prototypes,
2629 which can conflict with char malloc_get_state(); below. */ 2642 which can conflict with char malloc_get_state(); below. */
2630 #include <assert.h> 2643 #include <assert.h>
2631 /* Override any gcc2 internal prototype to avoid an error. */ 2644 /* Override any gcc2 internal prototype to avoid an error. */
2644 malloc_get_state(); 2657 malloc_get_state();
2645 #endif 2658 #endif
2646 2659
2647 ; return 0; } 2660 ; return 0; }
2648 EOF 2661 EOF
2649 if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2662 if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2650 rm -rf conftest* 2663 rm -rf conftest*
2651 eval "ac_cv_func_malloc_get_state=yes" 2664 eval "ac_cv_func_malloc_get_state=yes"
2652 else 2665 else
2653 echo "configure: failed program was:" >&5 2666 echo "configure: failed program was:" >&5
2654 cat conftest.$ac_ext >&5 2667 cat conftest.$ac_ext >&5
2664 echo "$ac_t""no" 1>&6 2677 echo "$ac_t""no" 1>&6
2665 doug_lea_malloc=no 2678 doug_lea_malloc=no
2666 fi 2679 fi
2667 2680
2668 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2681 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2669 echo "configure:2670: checking for malloc_set_state" >&5 2682 echo "configure:2683: checking for malloc_set_state" >&5
2670 2683
2671 cat > conftest.$ac_ext <<EOF 2684 cat > conftest.$ac_ext <<EOF
2672 #line 2673 "configure" 2685 #line 2686 "configure"
2673 #include "confdefs.h" 2686 #include "confdefs.h"
2674 /* System header to define __stub macros and hopefully few prototypes, 2687 /* System header to define __stub macros and hopefully few prototypes,
2675 which can conflict with char malloc_set_state(); below. */ 2688 which can conflict with char malloc_set_state(); below. */
2676 #include <assert.h> 2689 #include <assert.h>
2677 /* Override any gcc2 internal prototype to avoid an error. */ 2690 /* Override any gcc2 internal prototype to avoid an error. */
2690 malloc_set_state(); 2703 malloc_set_state();
2691 #endif 2704 #endif
2692 2705
2693 ; return 0; } 2706 ; return 0; }
2694 EOF 2707 EOF
2695 if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2708 if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2696 rm -rf conftest* 2709 rm -rf conftest*
2697 eval "ac_cv_func_malloc_set_state=yes" 2710 eval "ac_cv_func_malloc_set_state=yes"
2698 else 2711 else
2699 echo "configure: failed program was:" >&5 2712 echo "configure: failed program was:" >&5
2700 cat conftest.$ac_ext >&5 2713 cat conftest.$ac_ext >&5
2710 echo "$ac_t""no" 1>&6 2723 echo "$ac_t""no" 1>&6
2711 doug_lea_malloc=no 2724 doug_lea_malloc=no
2712 fi 2725 fi
2713 2726
2714 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2727 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2715 echo "configure:2716: checking whether __after_morecore_hook exists" >&5 2728 echo "configure:2729: checking whether __after_morecore_hook exists" >&5
2716 cat > conftest.$ac_ext <<EOF 2729 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure" 2730 #line 2731 "configure"
2718 #include "confdefs.h" 2731 #include "confdefs.h"
2719 extern void (* __after_morecore_hook)(); 2732 extern void (* __after_morecore_hook)();
2720 int main() { 2733 int main() {
2721 __after_morecore_hook = 0 2734 __after_morecore_hook = 0
2722 ; return 0; } 2735 ; return 0; }
2723 EOF 2736 EOF
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2737 if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2725 rm -rf conftest* 2738 rm -rf conftest*
2726 echo "$ac_t""yes" 1>&6 2739 echo "$ac_t""yes" 1>&6
2727 else 2740 else
2728 echo "configure: failed program was:" >&5 2741 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5 2742 cat conftest.$ac_ext >&5
2778 2791
2779 2792
2780 # Extract the first word of "ranlib", so it can be a program name with args. 2793 # Extract the first word of "ranlib", so it can be a program name with args.
2781 set dummy ranlib; ac_word=$2 2794 set dummy ranlib; ac_word=$2
2782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2783 echo "configure:2784: checking for $ac_word" >&5 2796 echo "configure:2797: checking for $ac_word" >&5
2784 2797
2785 if test -n "$RANLIB"; then 2798 if test -n "$RANLIB"; then
2786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2787 else 2800 else
2788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2831 # AIX /bin/install 2844 # AIX /bin/install
2832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2834 # ./install, which can be erroneously created by make from ./install.sh. 2847 # ./install, which can be erroneously created by make from ./install.sh.
2835 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2848 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2836 echo "configure:2837: checking for a BSD compatible install" >&5 2849 echo "configure:2850: checking for a BSD compatible install" >&5
2837 if test -z "$INSTALL"; then 2850 if test -z "$INSTALL"; then
2838 2851
2839 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2852 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2840 for ac_dir in $PATH; do 2853 for ac_dir in $PATH; do
2841 # Account for people who put trailing slashes in PATH elements. 2854 # Account for people who put trailing slashes in PATH elements.
2882 for ac_prog in 'bison -y' byacc 2895 for ac_prog in 'bison -y' byacc
2883 do 2896 do
2884 # Extract the first word of "$ac_prog", so it can be a program name with args. 2897 # Extract the first word of "$ac_prog", so it can be a program name with args.
2885 set dummy $ac_prog; ac_word=$2 2898 set dummy $ac_prog; ac_word=$2
2886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2887 echo "configure:2888: checking for $ac_word" >&5 2900 echo "configure:2901: checking for $ac_word" >&5
2888 2901
2889 if test -n "$YACC"; then 2902 if test -n "$YACC"; then
2890 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2903 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2891 else 2904 else
2892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2913 2926
2914 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2927 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2915 do 2928 do
2916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2918 echo "configure:2919: checking for $ac_hdr" >&5 2931 echo "configure:2932: checking for $ac_hdr" >&5
2919 2932
2920 cat > conftest.$ac_ext <<EOF 2933 cat > conftest.$ac_ext <<EOF
2921 #line 2922 "configure" 2934 #line 2935 "configure"
2922 #include "confdefs.h" 2935 #include "confdefs.h"
2923 #include <$ac_hdr> 2936 #include <$ac_hdr>
2924 EOF 2937 EOF
2925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2926 { (eval echo configure:2927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2939 { (eval echo configure:2940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2927 ac_err=`grep -v '^ *+' conftest.out` 2940 ac_err=`grep -v '^ *+' conftest.out`
2928 if test -z "$ac_err"; then 2941 if test -z "$ac_err"; then
2929 rm -rf conftest* 2942 rm -rf conftest*
2930 eval "ac_cv_header_$ac_safe=yes" 2943 eval "ac_cv_header_$ac_safe=yes"
2931 else 2944 else
2954 2967
2955 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h 2968 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
2956 do 2969 do
2957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2959 echo "configure:2960: checking for $ac_hdr" >&5 2972 echo "configure:2973: checking for $ac_hdr" >&5
2960 2973
2961 cat > conftest.$ac_ext <<EOF 2974 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure" 2975 #line 2976 "configure"
2963 #include "confdefs.h" 2976 #include "confdefs.h"
2964 #include <$ac_hdr> 2977 #include <$ac_hdr>
2965 EOF 2978 EOF
2966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2967 { (eval echo configure:2968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2980 { (eval echo configure:2981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2968 ac_err=`grep -v '^ *+' conftest.out` 2981 ac_err=`grep -v '^ *+' conftest.out`
2969 if test -z "$ac_err"; then 2982 if test -z "$ac_err"; then
2970 rm -rf conftest* 2983 rm -rf conftest*
2971 eval "ac_cv_header_$ac_safe=yes" 2984 eval "ac_cv_header_$ac_safe=yes"
2972 else 2985 else
2995 3008
2996 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 3009 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
2997 do 3010 do
2998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3000 echo "configure:3001: checking for $ac_hdr" >&5 3013 echo "configure:3014: checking for $ac_hdr" >&5
3001 3014
3002 cat > conftest.$ac_ext <<EOF 3015 cat > conftest.$ac_ext <<EOF
3003 #line 3004 "configure" 3016 #line 3017 "configure"
3004 #include "confdefs.h" 3017 #include "confdefs.h"
3005 #include <$ac_hdr> 3018 #include <$ac_hdr>
3006 EOF 3019 EOF
3007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3008 { (eval echo configure:3009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3021 { (eval echo configure:3022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3009 ac_err=`grep -v '^ *+' conftest.out` 3022 ac_err=`grep -v '^ *+' conftest.out`
3010 if test -z "$ac_err"; then 3023 if test -z "$ac_err"; then
3011 rm -rf conftest* 3024 rm -rf conftest*
3012 eval "ac_cv_header_$ac_safe=yes" 3025 eval "ac_cv_header_$ac_safe=yes"
3013 else 3026 else
3033 echo "$ac_t""no" 1>&6 3046 echo "$ac_t""no" 1>&6
3034 fi 3047 fi
3035 done 3048 done
3036 3049
3037 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3050 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3038 echo "configure:3039: checking for sys/wait.h that is POSIX.1 compatible" >&5 3051 echo "configure:3052: checking for sys/wait.h that is POSIX.1 compatible" >&5
3039 3052
3040 cat > conftest.$ac_ext <<EOF 3053 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure" 3054 #line 3055 "configure"
3042 #include "confdefs.h" 3055 #include "confdefs.h"
3043 #include <sys/types.h> 3056 #include <sys/types.h>
3044 #include <sys/wait.h> 3057 #include <sys/wait.h>
3045 #ifndef WEXITSTATUS 3058 #ifndef WEXITSTATUS
3046 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3059 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3052 int s; 3065 int s;
3053 wait (&s); 3066 wait (&s);
3054 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3067 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3055 ; return 0; } 3068 ; return 0; }
3056 EOF 3069 EOF
3057 if { (eval echo configure:3058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3070 if { (eval echo configure:3071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3058 rm -rf conftest* 3071 rm -rf conftest*
3059 ac_cv_header_sys_wait_h=yes 3072 ac_cv_header_sys_wait_h=yes
3060 else 3073 else
3061 echo "configure: failed program was:" >&5 3074 echo "configure: failed program was:" >&5
3062 cat conftest.$ac_ext >&5 3075 cat conftest.$ac_ext >&5
3076 } 3089 }
3077 3090
3078 fi 3091 fi
3079 3092
3080 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3093 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3081 echo "configure:3082: checking for ANSI C header files" >&5 3094 echo "configure:3095: checking for ANSI C header files" >&5
3082 3095
3083 cat > conftest.$ac_ext <<EOF 3096 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure" 3097 #line 3098 "configure"
3085 #include "confdefs.h" 3098 #include "confdefs.h"
3086 #include <stdlib.h> 3099 #include <stdlib.h>
3087 #include <stdarg.h> 3100 #include <stdarg.h>
3088 #include <string.h> 3101 #include <string.h>
3089 #include <float.h> 3102 #include <float.h>
3090 EOF 3103 EOF
3091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3092 { (eval echo configure:3093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3105 { (eval echo configure:3106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3093 ac_err=`grep -v '^ *+' conftest.out` 3106 ac_err=`grep -v '^ *+' conftest.out`
3094 if test -z "$ac_err"; then 3107 if test -z "$ac_err"; then
3095 rm -rf conftest* 3108 rm -rf conftest*
3096 ac_cv_header_stdc=yes 3109 ac_cv_header_stdc=yes
3097 else 3110 else
3104 rm -f conftest* 3117 rm -f conftest*
3105 3118
3106 if test $ac_cv_header_stdc = yes; then 3119 if test $ac_cv_header_stdc = yes; then
3107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3108 cat > conftest.$ac_ext <<EOF 3121 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure" 3122 #line 3123 "configure"
3110 #include "confdefs.h" 3123 #include "confdefs.h"
3111 #include <string.h> 3124 #include <string.h>
3112 EOF 3125 EOF
3113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3114 egrep "memchr" >/dev/null 2>&1; then 3127 egrep "memchr" >/dev/null 2>&1; then
3122 fi 3135 fi
3123 3136
3124 if test $ac_cv_header_stdc = yes; then 3137 if test $ac_cv_header_stdc = yes; then
3125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3126 cat > conftest.$ac_ext <<EOF 3139 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure" 3140 #line 3141 "configure"
3128 #include "confdefs.h" 3141 #include "confdefs.h"
3129 #include <stdlib.h> 3142 #include <stdlib.h>
3130 EOF 3143 EOF
3131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3132 egrep "free" >/dev/null 2>&1; then 3145 egrep "free" >/dev/null 2>&1; then
3140 fi 3153 fi
3141 3154
3142 if test $ac_cv_header_stdc = yes; then 3155 if test $ac_cv_header_stdc = yes; then
3143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3144 cat > conftest.$ac_ext <<EOF 3157 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure" 3158 #line 3159 "configure"
3146 #include "confdefs.h" 3159 #include "confdefs.h"
3147 #include <ctype.h> 3160 #include <ctype.h>
3148 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3161 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3149 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3162 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3151 int main () { int i; for (i = 0; i < 256; i++) 3164 int main () { int i; for (i = 0; i < 256; i++)
3152 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3165 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3153 exit (0); } 3166 exit (0); }
3154 3167
3155 EOF 3168 EOF
3156 if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3157 then 3170 then
3158 : 3171 :
3159 else 3172 else
3173 conftest_rc="$?"
3160 echo "configure: failed program was:" >&5 3174 echo "configure: failed program was:" >&5
3161 cat conftest.$ac_ext >&5 3175 cat conftest.$ac_ext >&5
3162 rm -fr conftest* 3176 rm -fr conftest*
3163 ac_cv_header_stdc=no 3177 ac_cv_header_stdc=no
3164 fi 3178 fi
3176 } 3190 }
3177 3191
3178 fi 3192 fi
3179 3193
3180 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3194 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3181 echo "configure:3182: checking whether time.h and sys/time.h may both be included" >&5 3195 echo "configure:3196: checking whether time.h and sys/time.h may both be included" >&5
3182 3196
3183 cat > conftest.$ac_ext <<EOF 3197 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure" 3198 #line 3199 "configure"
3185 #include "confdefs.h" 3199 #include "confdefs.h"
3186 #include <sys/types.h> 3200 #include <sys/types.h>
3187 #include <sys/time.h> 3201 #include <sys/time.h>
3188 #include <time.h> 3202 #include <time.h>
3189 int main() { 3203 int main() {
3190 struct tm *tp; 3204 struct tm *tp;
3191 ; return 0; } 3205 ; return 0; }
3192 EOF 3206 EOF
3193 if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3207 if { (eval echo configure:3208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3194 rm -rf conftest* 3208 rm -rf conftest*
3195 ac_cv_header_time=yes 3209 ac_cv_header_time=yes
3196 else 3210 else
3197 echo "configure: failed program was:" >&5 3211 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5 3212 cat conftest.$ac_ext >&5
3212 } 3226 }
3213 3227
3214 fi 3228 fi
3215 3229
3216 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3230 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3217 echo "configure:3218: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3231 echo "configure:3232: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3218 3232
3219 cat > conftest.$ac_ext <<EOF 3233 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure" 3234 #line 3235 "configure"
3221 #include "confdefs.h" 3235 #include "confdefs.h"
3222 #include <sys/types.h> 3236 #include <sys/types.h>
3223 #include <signal.h> 3237 #include <signal.h>
3224 /* NetBSD declares sys_siglist in unistd.h. */ 3238 /* NetBSD declares sys_siglist in unistd.h. */
3225 #ifdef HAVE_UNISTD_H 3239 #ifdef HAVE_UNISTD_H
3227 #endif 3241 #endif
3228 int main() { 3242 int main() {
3229 char *msg = *(sys_siglist + 1); 3243 char *msg = *(sys_siglist + 1);
3230 ; return 0; } 3244 ; return 0; }
3231 EOF 3245 EOF
3232 if { (eval echo configure:3233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3246 if { (eval echo configure:3247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3233 rm -rf conftest* 3247 rm -rf conftest*
3234 ac_cv_decl_sys_siglist=yes 3248 ac_cv_decl_sys_siglist=yes
3235 else 3249 else
3236 echo "configure: failed program was:" >&5 3250 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5 3251 cat conftest.$ac_ext >&5
3252 3266
3253 fi 3267 fi
3254 3268
3255 3269
3256 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3270 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3257 echo "configure:3258: checking for struct utimbuf" >&5 3271 echo "configure:3272: checking for struct utimbuf" >&5
3258 cat > conftest.$ac_ext <<EOF 3272 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure" 3273 #line 3274 "configure"
3260 #include "confdefs.h" 3274 #include "confdefs.h"
3261 #ifdef TIME_WITH_SYS_TIME 3275 #ifdef TIME_WITH_SYS_TIME
3262 #include <sys/time.h> 3276 #include <sys/time.h>
3263 #include <time.h> 3277 #include <time.h>
3264 #else 3278 #else
3273 #endif 3287 #endif
3274 int main() { 3288 int main() {
3275 static struct utimbuf x; x.actime = x.modtime; 3289 static struct utimbuf x; x.actime = x.modtime;
3276 ; return 0; } 3290 ; return 0; }
3277 EOF 3291 EOF
3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3292 if { (eval echo configure:3293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3279 rm -rf conftest* 3293 rm -rf conftest*
3280 echo "$ac_t""yes" 1>&6 3294 echo "$ac_t""yes" 1>&6
3281 { test "$extra_verbose" = "yes" && cat << \EOF 3295 { test "$extra_verbose" = "yes" && cat << \EOF
3282 Defining HAVE_STRUCT_UTIMBUF 3296 Defining HAVE_STRUCT_UTIMBUF
3283 EOF 3297 EOF
3293 echo "$ac_t""no" 1>&6 3307 echo "$ac_t""no" 1>&6
3294 fi 3308 fi
3295 rm -f conftest* 3309 rm -f conftest*
3296 3310
3297 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3311 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3298 echo "configure:3299: checking return type of signal handlers" >&5 3312 echo "configure:3313: checking return type of signal handlers" >&5
3299 3313
3300 cat > conftest.$ac_ext <<EOF 3314 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure" 3315 #line 3316 "configure"
3302 #include "confdefs.h" 3316 #include "confdefs.h"
3303 #include <sys/types.h> 3317 #include <sys/types.h>
3304 #include <signal.h> 3318 #include <signal.h>
3305 #ifdef signal 3319 #ifdef signal
3306 #undef signal 3320 #undef signal
3313 3327
3314 int main() { 3328 int main() {
3315 int i; 3329 int i;
3316 ; return 0; } 3330 ; return 0; }
3317 EOF 3331 EOF
3318 if { (eval echo configure:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3332 if { (eval echo configure:3333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319 rm -rf conftest* 3333 rm -rf conftest*
3320 ac_cv_type_signal=void 3334 ac_cv_type_signal=void
3321 else 3335 else
3322 echo "configure: failed program was:" >&5 3336 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5 3337 cat conftest.$ac_ext >&5
3335 EOF 3349 EOF
3336 } 3350 }
3337 3351
3338 3352
3339 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3353 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3340 echo "configure:3341: checking for size_t" >&5 3354 echo "configure:3355: checking for size_t" >&5
3341 3355
3342 cat > conftest.$ac_ext <<EOF 3356 cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure" 3357 #line 3358 "configure"
3344 #include "confdefs.h" 3358 #include "confdefs.h"
3345 #include <sys/types.h> 3359 #include <sys/types.h>
3346 #if STDC_HEADERS 3360 #if STDC_HEADERS
3347 #include <stdlib.h> 3361 #include <stdlib.h>
3348 #include <stddef.h> 3362 #include <stddef.h>
3369 } 3383 }
3370 3384
3371 fi 3385 fi
3372 3386
3373 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3387 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3374 echo "configure:3375: checking for pid_t" >&5 3388 echo "configure:3389: checking for pid_t" >&5
3375 3389
3376 cat > conftest.$ac_ext <<EOF 3390 cat > conftest.$ac_ext <<EOF
3377 #line 3378 "configure" 3391 #line 3392 "configure"
3378 #include "confdefs.h" 3392 #include "confdefs.h"
3379 #include <sys/types.h> 3393 #include <sys/types.h>
3380 #if STDC_HEADERS 3394 #if STDC_HEADERS
3381 #include <stdlib.h> 3395 #include <stdlib.h>
3382 #include <stddef.h> 3396 #include <stddef.h>
3403 } 3417 }
3404 3418
3405 fi 3419 fi
3406 3420
3407 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3421 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3408 echo "configure:3409: checking for uid_t in sys/types.h" >&5 3422 echo "configure:3423: checking for uid_t in sys/types.h" >&5
3409 3423
3410 cat > conftest.$ac_ext <<EOF 3424 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure" 3425 #line 3426 "configure"
3412 #include "confdefs.h" 3426 #include "confdefs.h"
3413 #include <sys/types.h> 3427 #include <sys/types.h>
3414 EOF 3428 EOF
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 egrep "uid_t" >/dev/null 2>&1; then 3430 egrep "uid_t" >/dev/null 2>&1; then
3442 } 3456 }
3443 3457
3444 fi 3458 fi
3445 3459
3446 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3460 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3447 echo "configure:3448: checking for mode_t" >&5 3461 echo "configure:3462: checking for mode_t" >&5
3448 3462
3449 cat > conftest.$ac_ext <<EOF 3463 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure" 3464 #line 3465 "configure"
3451 #include "confdefs.h" 3465 #include "confdefs.h"
3452 #include <sys/types.h> 3466 #include <sys/types.h>
3453 #if STDC_HEADERS 3467 #if STDC_HEADERS
3454 #include <stdlib.h> 3468 #include <stdlib.h>
3455 #include <stddef.h> 3469 #include <stddef.h>
3476 } 3490 }
3477 3491
3478 fi 3492 fi
3479 3493
3480 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3494 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3481 echo "configure:3482: checking for off_t" >&5 3495 echo "configure:3496: checking for off_t" >&5
3482 3496
3483 cat > conftest.$ac_ext <<EOF 3497 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure" 3498 #line 3499 "configure"
3485 #include "confdefs.h" 3499 #include "confdefs.h"
3486 #include <sys/types.h> 3500 #include <sys/types.h>
3487 #if STDC_HEADERS 3501 #if STDC_HEADERS
3488 #include <stdlib.h> 3502 #include <stdlib.h>
3489 #include <stddef.h> 3503 #include <stddef.h>
3511 3525
3512 fi 3526 fi
3513 3527
3514 3528
3515 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3529 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3516 echo "configure:3517: checking for struct timeval" >&5 3530 echo "configure:3531: checking for struct timeval" >&5
3517 cat > conftest.$ac_ext <<EOF 3531 cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure" 3532 #line 3533 "configure"
3519 #include "confdefs.h" 3533 #include "confdefs.h"
3520 #ifdef TIME_WITH_SYS_TIME 3534 #ifdef TIME_WITH_SYS_TIME
3521 #include <sys/time.h> 3535 #include <sys/time.h>
3522 #include <time.h> 3536 #include <time.h>
3523 #else 3537 #else
3529 #endif 3543 #endif
3530 int main() { 3544 int main() {
3531 static struct timeval x; x.tv_sec = x.tv_usec; 3545 static struct timeval x; x.tv_sec = x.tv_usec;
3532 ; return 0; } 3546 ; return 0; }
3533 EOF 3547 EOF
3534 if { (eval echo configure:3535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3548 if { (eval echo configure:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3535 rm -rf conftest* 3549 rm -rf conftest*
3536 echo "$ac_t""yes" 1>&6 3550 echo "$ac_t""yes" 1>&6
3537 HAVE_TIMEVAL=yes 3551 HAVE_TIMEVAL=yes
3538 { test "$extra_verbose" = "yes" && cat << \EOF 3552 { test "$extra_verbose" = "yes" && cat << \EOF
3539 Defining HAVE_TIMEVAL 3553 Defining HAVE_TIMEVAL
3551 HAVE_TIMEVAL=no 3565 HAVE_TIMEVAL=no
3552 fi 3566 fi
3553 rm -f conftest* 3567 rm -f conftest*
3554 3568
3555 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3569 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3556 echo "configure:3557: checking whether struct tm is in sys/time.h or time.h" >&5 3570 echo "configure:3571: checking whether struct tm is in sys/time.h or time.h" >&5
3557 3571
3558 cat > conftest.$ac_ext <<EOF 3572 cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure" 3573 #line 3574 "configure"
3560 #include "confdefs.h" 3574 #include "confdefs.h"
3561 #include <sys/types.h> 3575 #include <sys/types.h>
3562 #include <time.h> 3576 #include <time.h>
3563 int main() { 3577 int main() {
3564 struct tm *tp; tp->tm_sec; 3578 struct tm *tp; tp->tm_sec;
3565 ; return 0; } 3579 ; return 0; }
3566 EOF 3580 EOF
3567 if { (eval echo configure:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3581 if { (eval echo configure:3582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3568 rm -rf conftest* 3582 rm -rf conftest*
3569 ac_cv_struct_tm=time.h 3583 ac_cv_struct_tm=time.h
3570 else 3584 else
3571 echo "configure: failed program was:" >&5 3585 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5 3586 cat conftest.$ac_ext >&5
3586 } 3600 }
3587 3601
3588 fi 3602 fi
3589 3603
3590 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3604 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3591 echo "configure:3592: checking for tm_zone in struct tm" >&5 3605 echo "configure:3606: checking for tm_zone in struct tm" >&5
3592 3606
3593 cat > conftest.$ac_ext <<EOF 3607 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure" 3608 #line 3609 "configure"
3595 #include "confdefs.h" 3609 #include "confdefs.h"
3596 #include <sys/types.h> 3610 #include <sys/types.h>
3597 #include <$ac_cv_struct_tm> 3611 #include <$ac_cv_struct_tm>
3598 int main() { 3612 int main() {
3599 struct tm tm; tm.tm_zone; 3613 struct tm tm; tm.tm_zone;
3600 ; return 0; } 3614 ; return 0; }
3601 EOF 3615 EOF
3602 if { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3616 if { (eval echo configure:3617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3603 rm -rf conftest* 3617 rm -rf conftest*
3604 ac_cv_struct_tm_zone=yes 3618 ac_cv_struct_tm_zone=yes
3605 else 3619 else
3606 echo "configure: failed program was:" >&5 3620 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5 3621 cat conftest.$ac_ext >&5
3620 EOF 3634 EOF
3621 } 3635 }
3622 3636
3623 else 3637 else
3624 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3638 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3625 echo "configure:3626: checking for tzname" >&5 3639 echo "configure:3640: checking for tzname" >&5
3626 3640
3627 cat > conftest.$ac_ext <<EOF 3641 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure" 3642 #line 3643 "configure"
3629 #include "confdefs.h" 3643 #include "confdefs.h"
3630 #include <time.h> 3644 #include <time.h>
3631 #ifndef tzname /* For SGI. */ 3645 #ifndef tzname /* For SGI. */
3632 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3646 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3633 #endif 3647 #endif
3634 int main() { 3648 int main() {
3635 atoi(*tzname); 3649 atoi(*tzname);
3636 ; return 0; } 3650 ; return 0; }
3637 EOF 3651 EOF
3638 if { (eval echo configure:3639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3652 if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3639 rm -rf conftest* 3653 rm -rf conftest*
3640 ac_cv_var_tzname=yes 3654 ac_cv_var_tzname=yes
3641 else 3655 else
3642 echo "configure: failed program was:" >&5 3656 echo "configure: failed program was:" >&5
3643 cat conftest.$ac_ext >&5 3657 cat conftest.$ac_ext >&5
3659 fi 3673 fi
3660 fi 3674 fi
3661 3675
3662 3676
3663 echo $ac_n "checking for working const""... $ac_c" 1>&6 3677 echo $ac_n "checking for working const""... $ac_c" 1>&6
3664 echo "configure:3665: checking for working const" >&5 3678 echo "configure:3679: checking for working const" >&5
3665 3679
3666 cat > conftest.$ac_ext <<EOF 3680 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure" 3681 #line 3682 "configure"
3668 #include "confdefs.h" 3682 #include "confdefs.h"
3669 3683
3670 int main() { 3684 int main() {
3671 3685
3672 /* Ultrix mips cc rejects this. */ 3686 /* Ultrix mips cc rejects this. */
3711 const int foo = 10; 3725 const int foo = 10;
3712 } 3726 }
3713 3727
3714 ; return 0; } 3728 ; return 0; }
3715 EOF 3729 EOF
3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3730 if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3717 rm -rf conftest* 3731 rm -rf conftest*
3718 ac_cv_c_const=yes 3732 ac_cv_c_const=yes
3719 else 3733 else
3720 echo "configure: failed program was:" >&5 3734 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5 3735 cat conftest.$ac_ext >&5
3736 3750
3737 fi 3751 fi
3738 3752
3739 3753
3740 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3754 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3741 echo "configure:3742: checking whether ${MAKE-make} sets \${MAKE}" >&5 3755 echo "configure:3756: checking whether ${MAKE-make} sets \${MAKE}" >&5
3742 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3756 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3743 3757
3744 cat > conftestmake <<\EOF 3758 cat > conftestmake <<\EOF
3745 all: 3759 all:
3746 @echo 'ac_maketemp="${MAKE}"' 3760 @echo 'ac_maketemp="${MAKE}"'
3761 SET_MAKE="MAKE=${MAKE-make}" 3775 SET_MAKE="MAKE=${MAKE-make}"
3762 fi 3776 fi
3763 3777
3764 3778
3765 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3779 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3766 echo "configure:3767: checking whether byte ordering is bigendian" >&5 3780 echo "configure:3781: checking whether byte ordering is bigendian" >&5
3767 3781
3768 ac_cv_c_bigendian=unknown 3782 ac_cv_c_bigendian=unknown
3769 # See if sys/param.h defines the BYTE_ORDER macro. 3783 # See if sys/param.h defines the BYTE_ORDER macro.
3770 cat > conftest.$ac_ext <<EOF 3784 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure" 3785 #line 3786 "configure"
3772 #include "confdefs.h" 3786 #include "confdefs.h"
3773 #include <sys/types.h> 3787 #include <sys/types.h>
3774 #include <sys/param.h> 3788 #include <sys/param.h>
3775 int main() { 3789 int main() {
3776 3790
3777 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3791 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3778 bogus endian macros 3792 bogus endian macros
3779 #endif 3793 #endif
3780 ; return 0; } 3794 ; return 0; }
3781 EOF 3795 EOF
3782 if { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3796 if { (eval echo configure:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3783 rm -rf conftest* 3797 rm -rf conftest*
3784 # It does; now see whether it defined to BIG_ENDIAN or not. 3798 # It does; now see whether it defined to BIG_ENDIAN or not.
3785 cat > conftest.$ac_ext <<EOF 3799 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure" 3800 #line 3801 "configure"
3787 #include "confdefs.h" 3801 #include "confdefs.h"
3788 #include <sys/types.h> 3802 #include <sys/types.h>
3789 #include <sys/param.h> 3803 #include <sys/param.h>
3790 int main() { 3804 int main() {
3791 3805
3792 #if BYTE_ORDER != BIG_ENDIAN 3806 #if BYTE_ORDER != BIG_ENDIAN
3793 not big endian 3807 not big endian
3794 #endif 3808 #endif
3795 ; return 0; } 3809 ; return 0; }
3796 EOF 3810 EOF
3797 if { (eval echo configure:3798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3811 if { (eval echo configure:3812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3798 rm -rf conftest* 3812 rm -rf conftest*
3799 ac_cv_c_bigendian=yes 3813 ac_cv_c_bigendian=yes
3800 else 3814 else
3801 echo "configure: failed program was:" >&5 3815 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5 3816 cat conftest.$ac_ext >&5
3809 cat conftest.$ac_ext >&5 3823 cat conftest.$ac_ext >&5
3810 fi 3824 fi
3811 rm -f conftest* 3825 rm -f conftest*
3812 if test $ac_cv_c_bigendian = unknown; then 3826 if test $ac_cv_c_bigendian = unknown; then
3813 cat > conftest.$ac_ext <<EOF 3827 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure" 3828 #line 3829 "configure"
3815 #include "confdefs.h" 3829 #include "confdefs.h"
3816 main () { 3830 main () {
3817 /* Are we little or big endian? From Harbison&Steele. */ 3831 /* Are we little or big endian? From Harbison&Steele. */
3818 union 3832 union
3819 { 3833 {
3822 } u; 3836 } u;
3823 u.l = 1; 3837 u.l = 1;
3824 exit (u.c[sizeof (long) - 1] == 1); 3838 exit (u.c[sizeof (long) - 1] == 1);
3825 } 3839 }
3826 EOF 3840 EOF
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3841 if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3828 then 3842 then
3829 ac_cv_c_bigendian=no 3843 ac_cv_c_bigendian=no
3830 else 3844 else
3845 conftest_rc="$?"
3831 echo "configure: failed program was:" >&5 3846 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5 3847 cat conftest.$ac_ext >&5
3833 rm -fr conftest* 3848 rm -fr conftest*
3834 ac_cv_c_bigendian=yes 3849 ac_cv_c_bigendian=yes
3835 fi 3850 fi
3848 3863
3849 fi 3864 fi
3850 3865
3851 3866
3852 echo $ac_n "checking size of short""... $ac_c" 1>&6 3867 echo $ac_n "checking size of short""... $ac_c" 1>&6
3853 echo "configure:3854: checking size of short" >&5 3868 echo "configure:3869: checking size of short" >&5
3854 3869
3855 cat > conftest.$ac_ext <<EOF 3870 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure" 3871 #line 3872 "configure"
3857 #include "confdefs.h" 3872 #include "confdefs.h"
3858 #include <stdio.h> 3873 #include <stdio.h>
3859 main() 3874 main()
3860 { 3875 {
3861 FILE *f=fopen("conftestval", "w"); 3876 FILE *f=fopen("conftestval", "w");
3862 if (!f) exit(1); 3877 if (!f) exit(1);
3863 fprintf(f, "%d\n", sizeof(short)); 3878 fprintf(f, "%d\n", sizeof(short));
3864 exit(0); 3879 exit(0);
3865 } 3880 }
3866 EOF 3881 EOF
3867 if { (eval echo configure:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3868 then 3883 then
3869 ac_cv_sizeof_short=`cat conftestval` 3884 ac_cv_sizeof_short=`cat conftestval`
3870 else 3885 else
3886 conftest_rc="$?"
3871 echo "configure: failed program was:" >&5 3887 echo "configure: failed program was:" >&5
3872 cat conftest.$ac_ext >&5 3888 cat conftest.$ac_ext >&5
3873 rm -fr conftest* 3889 rm -fr conftest*
3874 ac_cv_sizeof_short=0 3890 ac_cv_sizeof_short=0
3875 fi 3891 fi
3889 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3905 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3890 echo "*** PANIC *** Please examine config.log for compilation errors." 3906 echo "*** PANIC *** Please examine config.log for compilation errors."
3891 exit 1 3907 exit 1
3892 fi 3908 fi
3893 echo $ac_n "checking size of int""... $ac_c" 1>&6 3909 echo $ac_n "checking size of int""... $ac_c" 1>&6
3894 echo "configure:3895: checking size of int" >&5 3910 echo "configure:3911: checking size of int" >&5
3895 3911
3896 cat > conftest.$ac_ext <<EOF 3912 cat > conftest.$ac_ext <<EOF
3897 #line 3898 "configure" 3913 #line 3914 "configure"
3898 #include "confdefs.h" 3914 #include "confdefs.h"
3899 #include <stdio.h> 3915 #include <stdio.h>
3900 main() 3916 main()
3901 { 3917 {
3902 FILE *f=fopen("conftestval", "w"); 3918 FILE *f=fopen("conftestval", "w");
3903 if (!f) exit(1); 3919 if (!f) exit(1);
3904 fprintf(f, "%d\n", sizeof(int)); 3920 fprintf(f, "%d\n", sizeof(int));
3905 exit(0); 3921 exit(0);
3906 } 3922 }
3907 EOF 3923 EOF
3908 if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3924 if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3909 then 3925 then
3910 ac_cv_sizeof_int=`cat conftestval` 3926 ac_cv_sizeof_int=`cat conftestval`
3911 else 3927 else
3928 conftest_rc="$?"
3912 echo "configure: failed program was:" >&5 3929 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5 3930 cat conftest.$ac_ext >&5
3914 rm -fr conftest* 3931 rm -fr conftest*
3915 ac_cv_sizeof_int=0 3932 ac_cv_sizeof_int=0
3916 fi 3933 fi
3924 EOF 3941 EOF
3925 } 3942 }
3926 3943
3927 3944
3928 echo $ac_n "checking size of long""... $ac_c" 1>&6 3945 echo $ac_n "checking size of long""... $ac_c" 1>&6
3929 echo "configure:3930: checking size of long" >&5 3946 echo "configure:3947: checking size of long" >&5
3930 3947
3931 cat > conftest.$ac_ext <<EOF 3948 cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure" 3949 #line 3950 "configure"
3933 #include "confdefs.h" 3950 #include "confdefs.h"
3934 #include <stdio.h> 3951 #include <stdio.h>
3935 main() 3952 main()
3936 { 3953 {
3937 FILE *f=fopen("conftestval", "w"); 3954 FILE *f=fopen("conftestval", "w");
3938 if (!f) exit(1); 3955 if (!f) exit(1);
3939 fprintf(f, "%d\n", sizeof(long)); 3956 fprintf(f, "%d\n", sizeof(long));
3940 exit(0); 3957 exit(0);
3941 } 3958 }
3942 EOF 3959 EOF
3943 if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3960 if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3944 then 3961 then
3945 ac_cv_sizeof_long=`cat conftestval` 3962 ac_cv_sizeof_long=`cat conftestval`
3946 else 3963 else
3964 conftest_rc="$?"
3947 echo "configure: failed program was:" >&5 3965 echo "configure: failed program was:" >&5
3948 cat conftest.$ac_ext >&5 3966 cat conftest.$ac_ext >&5
3949 rm -fr conftest* 3967 rm -fr conftest*
3950 ac_cv_sizeof_long=0 3968 ac_cv_sizeof_long=0
3951 fi 3969 fi
3959 EOF 3977 EOF
3960 } 3978 }
3961 3979
3962 3980
3963 echo $ac_n "checking size of long long""... $ac_c" 1>&6 3981 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3964 echo "configure:3965: checking size of long long" >&5 3982 echo "configure:3983: checking size of long long" >&5
3965 3983
3966 cat > conftest.$ac_ext <<EOF 3984 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure" 3985 #line 3986 "configure"
3968 #include "confdefs.h" 3986 #include "confdefs.h"
3969 #include <stdio.h> 3987 #include <stdio.h>
3970 main() 3988 main()
3971 { 3989 {
3972 FILE *f=fopen("conftestval", "w"); 3990 FILE *f=fopen("conftestval", "w");
3973 if (!f) exit(1); 3991 if (!f) exit(1);
3974 fprintf(f, "%d\n", sizeof(long long)); 3992 fprintf(f, "%d\n", sizeof(long long));
3975 exit(0); 3993 exit(0);
3976 } 3994 }
3977 EOF 3995 EOF
3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3996 if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3979 then 3997 then
3980 ac_cv_sizeof_long_long=`cat conftestval` 3998 ac_cv_sizeof_long_long=`cat conftestval`
3981 else 3999 else
4000 conftest_rc="$?"
3982 echo "configure: failed program was:" >&5 4001 echo "configure: failed program was:" >&5
3983 cat conftest.$ac_ext >&5 4002 cat conftest.$ac_ext >&5
3984 rm -fr conftest* 4003 rm -fr conftest*
3985 ac_cv_sizeof_long_long=0 4004 ac_cv_sizeof_long_long=0
3986 fi 4005 fi
3994 EOF 4013 EOF
3995 } 4014 }
3996 4015
3997 4016
3998 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4017 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3999 echo "configure:4000: checking size of void *" >&5 4018 echo "configure:4019: checking size of void *" >&5
4000 4019
4001 cat > conftest.$ac_ext <<EOF 4020 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure" 4021 #line 4022 "configure"
4003 #include "confdefs.h" 4022 #include "confdefs.h"
4004 #include <stdio.h> 4023 #include <stdio.h>
4005 main() 4024 main()
4006 { 4025 {
4007 FILE *f=fopen("conftestval", "w"); 4026 FILE *f=fopen("conftestval", "w");
4008 if (!f) exit(1); 4027 if (!f) exit(1);
4009 fprintf(f, "%d\n", sizeof(void *)); 4028 fprintf(f, "%d\n", sizeof(void *));
4010 exit(0); 4029 exit(0);
4011 } 4030 }
4012 EOF 4031 EOF
4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4014 then 4033 then
4015 ac_cv_sizeof_void_p=`cat conftestval` 4034 ac_cv_sizeof_void_p=`cat conftestval`
4016 else 4035 else
4036 conftest_rc="$?"
4017 echo "configure: failed program was:" >&5 4037 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5 4038 cat conftest.$ac_ext >&5
4019 rm -fr conftest* 4039 rm -fr conftest*
4020 ac_cv_sizeof_void_p=0 4040 ac_cv_sizeof_void_p=0
4021 fi 4041 fi
4030 } 4050 }
4031 4051
4032 4052
4033 4053
4034 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4054 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4035 echo "configure:4036: checking for long file names" >&5 4055 echo "configure:4056: checking for long file names" >&5
4036 4056
4037 ac_cv_sys_long_file_names=yes 4057 ac_cv_sys_long_file_names=yes
4038 # Test for long file names in all the places we know might matter: 4058 # Test for long file names in all the places we know might matter:
4039 # . the current directory, where building will happen 4059 # . the current directory, where building will happen
4040 # $prefix/lib where we will be installing things 4060 # $prefix/lib where we will be installing things
4077 fi 4097 fi
4078 4098
4079 4099
4080 4100
4081 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4101 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4082 echo "configure:4083: checking for sin in -lm" >&5 4102 echo "configure:4103: checking for sin in -lm" >&5
4083 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4103 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4084 4104
4085 xe_check_libs=" -lm " 4105 xe_check_libs=" -lm "
4086 cat > conftest.$ac_ext <<EOF 4106 cat > conftest.$ac_ext <<EOF
4087 #line 4088 "configure" 4107 #line 4108 "configure"
4088 #include "confdefs.h" 4108 #include "confdefs.h"
4089 /* Override any gcc2 internal prototype to avoid an error. */ 4109 /* Override any gcc2 internal prototype to avoid an error. */
4090 /* We use char because int might match the return type of a gcc2 4110 /* We use char because int might match the return type of a gcc2
4091 builtin and then its argument prototype would still apply. */ 4111 builtin and then its argument prototype would still apply. */
4092 char sin(); 4112 char sin();
4093 4113
4094 int main() { 4114 int main() {
4095 sin() 4115 sin()
4096 ; return 0; } 4116 ; return 0; }
4097 EOF 4117 EOF
4098 if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4118 if { (eval echo configure:4119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4099 rm -rf conftest* 4119 rm -rf conftest*
4100 eval "ac_cv_lib_$ac_lib_var=yes" 4120 eval "ac_cv_lib_$ac_lib_var=yes"
4101 else 4121 else
4102 echo "configure: failed program was:" >&5 4122 echo "configure: failed program was:" >&5
4103 cat conftest.$ac_ext >&5 4123 cat conftest.$ac_ext >&5
4135 EOF 4155 EOF
4136 } 4156 }
4137 4157
4138 4158
4139 cat > conftest.$ac_ext <<EOF 4159 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure" 4160 #line 4161 "configure"
4141 #include "confdefs.h" 4161 #include "confdefs.h"
4142 #include <math.h> 4162 #include <math.h>
4143 int main() { 4163 int main() {
4144 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4164 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4145 ; return 0; } 4165 ; return 0; }
4146 EOF 4166 EOF
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4167 if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4148 rm -rf conftest* 4168 rm -rf conftest*
4149 { test "$extra_verbose" = "yes" && cat << \EOF 4169 { test "$extra_verbose" = "yes" && cat << \EOF
4150 Defining HAVE_INVERSE_HYPERBOLIC 4170 Defining HAVE_INVERSE_HYPERBOLIC
4151 EOF 4171 EOF
4152 cat >> confdefs.h <<\EOF 4172 cat >> confdefs.h <<\EOF
4159 cat conftest.$ac_ext >&5 4179 cat conftest.$ac_ext >&5
4160 fi 4180 fi
4161 rm -f conftest* 4181 rm -f conftest*
4162 4182
4163 echo "checking type of mail spool file locking" 1>&6 4183 echo "checking type of mail spool file locking" 1>&6
4164 echo "configure:4165: checking type of mail spool file locking" >&5 4184 echo "configure:4185: checking type of mail spool file locking" >&5
4165 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 4185 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4166 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 4186 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4167 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 4187 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4168 Defining REAL_MAIL_USE_LOCKF 4188 Defining REAL_MAIL_USE_LOCKF
4169 EOF 4189 EOF
4183 else mail_locking="dot-locking" 4203 else mail_locking="dot-locking"
4184 fi 4204 fi
4185 4205
4186 4206
4187 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 4207 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
4188 echo "configure:4189: checking for kstat_open in -lkstat" >&5 4208 echo "configure:4209: checking for kstat_open in -lkstat" >&5
4189 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 4209 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
4190 4210
4191 xe_check_libs=" -lkstat " 4211 xe_check_libs=" -lkstat "
4192 cat > conftest.$ac_ext <<EOF 4212 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure" 4213 #line 4214 "configure"
4194 #include "confdefs.h" 4214 #include "confdefs.h"
4195 /* Override any gcc2 internal prototype to avoid an error. */ 4215 /* Override any gcc2 internal prototype to avoid an error. */
4196 /* We use char because int might match the return type of a gcc2 4216 /* We use char because int might match the return type of a gcc2
4197 builtin and then its argument prototype would still apply. */ 4217 builtin and then its argument prototype would still apply. */
4198 char kstat_open(); 4218 char kstat_open();
4199 4219
4200 int main() { 4220 int main() {
4201 kstat_open() 4221 kstat_open()
4202 ; return 0; } 4222 ; return 0; }
4203 EOF 4223 EOF
4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4224 if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4205 rm -rf conftest* 4225 rm -rf conftest*
4206 eval "ac_cv_lib_$ac_lib_var=yes" 4226 eval "ac_cv_lib_$ac_lib_var=yes"
4207 else 4227 else
4208 echo "configure: failed program was:" >&5 4228 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5 4229 cat conftest.$ac_ext >&5
4233 4253
4234 4254
4235 4255
4236 4256
4237 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 4257 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
4238 echo "configure:4239: checking for kvm_read in -lkvm" >&5 4258 echo "configure:4259: checking for kvm_read in -lkvm" >&5
4239 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 4259 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
4240 4260
4241 xe_check_libs=" -lkvm " 4261 xe_check_libs=" -lkvm "
4242 cat > conftest.$ac_ext <<EOF 4262 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure" 4263 #line 4264 "configure"
4244 #include "confdefs.h" 4264 #include "confdefs.h"
4245 /* Override any gcc2 internal prototype to avoid an error. */ 4265 /* Override any gcc2 internal prototype to avoid an error. */
4246 /* We use char because int might match the return type of a gcc2 4266 /* We use char because int might match the return type of a gcc2
4247 builtin and then its argument prototype would still apply. */ 4267 builtin and then its argument prototype would still apply. */
4248 char kvm_read(); 4268 char kvm_read();
4249 4269
4250 int main() { 4270 int main() {
4251 kvm_read() 4271 kvm_read()
4252 ; return 0; } 4272 ; return 0; }
4253 EOF 4273 EOF
4254 if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4274 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4255 rm -rf conftest* 4275 rm -rf conftest*
4256 eval "ac_cv_lib_$ac_lib_var=yes" 4276 eval "ac_cv_lib_$ac_lib_var=yes"
4257 else 4277 else
4258 echo "configure: failed program was:" >&5 4278 echo "configure: failed program was:" >&5
4259 cat conftest.$ac_ext >&5 4279 cat conftest.$ac_ext >&5
4284 4304
4285 4305
4286 case "$opsys" in decosf*) 4306 case "$opsys" in decosf*)
4287 4307
4288 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4308 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4289 echo "configure:4290: checking for cma_open in -lpthreads" >&5 4309 echo "configure:4310: checking for cma_open in -lpthreads" >&5
4290 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4310 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4291 4311
4292 xe_check_libs=" -lpthreads " 4312 xe_check_libs=" -lpthreads "
4293 cat > conftest.$ac_ext <<EOF 4313 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure" 4314 #line 4315 "configure"
4295 #include "confdefs.h" 4315 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */ 4316 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2 4317 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */ 4318 builtin and then its argument prototype would still apply. */
4299 char cma_open(); 4319 char cma_open();
4300 4320
4301 int main() { 4321 int main() {
4302 cma_open() 4322 cma_open()
4303 ; return 0; } 4323 ; return 0; }
4304 EOF 4324 EOF
4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4325 if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4306 rm -rf conftest* 4326 rm -rf conftest*
4307 eval "ac_cv_lib_$ac_lib_var=yes" 4327 eval "ac_cv_lib_$ac_lib_var=yes"
4308 else 4328 else
4309 echo "configure: failed program was:" >&5 4329 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5 4330 cat conftest.$ac_ext >&5
4336 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4356 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4337 c_switch_site="$c_switch_site -threads" ;; 4357 c_switch_site="$c_switch_site -threads" ;;
4338 esac 4358 esac
4339 4359
4340 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4360 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4341 echo "configure:4342: checking whether the -xildoff compiler flag is required" >&5 4361 echo "configure:4362: checking whether the -xildoff compiler flag is required" >&5
4342 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4362 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4343 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4363 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4344 then echo "$ac_t""no" 1>&6; 4364 then echo "$ac_t""no" 1>&6;
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 4365 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
4346 fi 4366 fi
4347 else echo "$ac_t""no" 1>&6 4367 else echo "$ac_t""no" 1>&6
4348 fi 4368 fi
4349 4369
4350 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4370 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4351 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4371 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4352 echo "configure:4353: checking for \"-z ignore\" linker flag" >&5 4372 echo "configure:4373: checking for \"-z ignore\" linker flag" >&5
4353 case "`ld -h 2>&1`" in 4373 case "`ld -h 2>&1`" in
4354 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4374 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4355 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4375 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4356 *) echo "$ac_t""no" 1>&6 ;; 4376 *) echo "$ac_t""no" 1>&6 ;;
4357 esac 4377 esac
4358 fi 4378 fi
4359 4379
4360 4380
4361 echo "checking "for specified window system"" 1>&6 4381 echo "checking "for specified window system"" 1>&6
4362 echo "configure:4363: checking "for specified window system"" >&5 4382 echo "configure:4383: checking "for specified window system"" >&5
4363 4383
4364 if test "$with_x11" != "no"; then 4384 if test "$with_x11" != "no"; then
4365 test "$x_includes $x_libraries" != "NONE NONE" && \ 4385 test "$x_includes $x_libraries" != "NONE NONE" && \
4366 window_system=x11 with_x11=yes 4386 window_system=x11 with_x11=yes
4367 4387
4390 # If we find X, set shell vars x_includes and x_libraries to the 4410 # If we find X, set shell vars x_includes and x_libraries to the
4391 # paths, otherwise set no_x=yes. 4411 # paths, otherwise set no_x=yes.
4392 # Uses ac_ vars as temps to allow command line to override cache and checks. 4412 # Uses ac_ vars as temps to allow command line to override cache and checks.
4393 # --without-x overrides everything else, but does not touch the cache. 4413 # --without-x overrides everything else, but does not touch the cache.
4394 echo $ac_n "checking for X""... $ac_c" 1>&6 4414 echo $ac_n "checking for X""... $ac_c" 1>&6
4395 echo "configure:4396: checking for X" >&5 4415 echo "configure:4416: checking for X" >&5
4396 4416
4397 # Check whether --with-x or --without-x was given. 4417 # Check whether --with-x or --without-x was given.
4398 if test "${with_x+set}" = set; then 4418 if test "${with_x+set}" = set; then
4399 withval="$with_x" 4419 withval="$with_x"
4400 : 4420 :
4450 # Guess where to find include files, by looking for this one X11 .h file. 4470 # Guess where to find include files, by looking for this one X11 .h file.
4451 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4471 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4452 4472
4453 # First, try using that file with no special directory specified. 4473 # First, try using that file with no special directory specified.
4454 cat > conftest.$ac_ext <<EOF 4474 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure" 4475 #line 4476 "configure"
4456 #include "confdefs.h" 4476 #include "confdefs.h"
4457 #include <$x_direct_test_include> 4477 #include <$x_direct_test_include>
4458 EOF 4478 EOF
4459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4460 { (eval echo configure:4461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4480 { (eval echo configure:4481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4461 ac_err=`grep -v '^ *+' conftest.out` 4481 ac_err=`grep -v '^ *+' conftest.out`
4462 if test -z "$ac_err"; then 4482 if test -z "$ac_err"; then
4463 rm -rf conftest* 4483 rm -rf conftest*
4464 # We can compile using X headers with no special include directory. 4484 # We can compile using X headers with no special include directory.
4465 ac_x_includes= 4485 ac_x_includes=
4524 # See if we find them without any special options. 4544 # See if we find them without any special options.
4525 # Don't add to $LIBS permanently. 4545 # Don't add to $LIBS permanently.
4526 ac_save_LIBS="$LIBS" 4546 ac_save_LIBS="$LIBS"
4527 LIBS="-l$x_direct_test_library $LIBS" 4547 LIBS="-l$x_direct_test_library $LIBS"
4528 cat > conftest.$ac_ext <<EOF 4548 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure" 4549 #line 4550 "configure"
4530 #include "confdefs.h" 4550 #include "confdefs.h"
4531 4551
4532 int main() { 4552 int main() {
4533 ${x_direct_test_function}() 4553 ${x_direct_test_function}()
4534 ; return 0; } 4554 ; return 0; }
4535 EOF 4555 EOF
4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4537 rm -rf conftest* 4557 rm -rf conftest*
4538 LIBS="$ac_save_LIBS" 4558 LIBS="$ac_save_LIBS"
4539 # We can link X programs with no special library path. 4559 # We can link X programs with no special library path.
4540 ac_x_libraries= 4560 ac_x_libraries=
4541 else 4561 else
4640 # For Solaris; some versions of Sun CC require a space after -R and 4660 # For Solaris; some versions of Sun CC require a space after -R and
4641 # others require no space. Words are not sufficient . . . . 4661 # others require no space. Words are not sufficient . . . .
4642 case "`(uname -sr) 2>/dev/null`" in 4662 case "`(uname -sr) 2>/dev/null`" in
4643 "SunOS 5"*) 4663 "SunOS 5"*)
4644 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4664 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4645 echo "configure:4646: checking whether -R must be followed by a space" >&5 4665 echo "configure:4666: checking whether -R must be followed by a space" >&5
4646 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4666 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4647 cat > conftest.$ac_ext <<EOF 4667 cat > conftest.$ac_ext <<EOF
4648 #line 4649 "configure" 4668 #line 4669 "configure"
4649 #include "confdefs.h" 4669 #include "confdefs.h"
4650 4670
4651 int main() { 4671 int main() {
4652 4672
4653 ; return 0; } 4673 ; return 0; }
4654 EOF 4674 EOF
4655 if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4656 rm -rf conftest* 4676 rm -rf conftest*
4657 ac_R_nospace=yes 4677 ac_R_nospace=yes
4658 else 4678 else
4659 echo "configure: failed program was:" >&5 4679 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5 4680 cat conftest.$ac_ext >&5
4666 echo "$ac_t""no" 1>&6 4686 echo "$ac_t""no" 1>&6
4667 X_LIBS="$X_LIBS -R$x_libraries" 4687 X_LIBS="$X_LIBS -R$x_libraries"
4668 else 4688 else
4669 LIBS="$ac_xsave_LIBS -R $x_libraries" 4689 LIBS="$ac_xsave_LIBS -R $x_libraries"
4670 cat > conftest.$ac_ext <<EOF 4690 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure" 4691 #line 4692 "configure"
4672 #include "confdefs.h" 4692 #include "confdefs.h"
4673 4693
4674 int main() { 4694 int main() {
4675 4695
4676 ; return 0; } 4696 ; return 0; }
4677 EOF 4697 EOF
4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4698 if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4679 rm -rf conftest* 4699 rm -rf conftest*
4680 ac_R_space=yes 4700 ac_R_space=yes
4681 else 4701 else
4682 echo "configure: failed program was:" >&5 4702 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5 4703 cat conftest.$ac_ext >&5
4709 if test "$with_dnet" = "no" ; then 4729 if test "$with_dnet" = "no" ; then
4710 ac_cv_lib_dnet_dnet_ntoa=no 4730 ac_cv_lib_dnet_dnet_ntoa=no
4711 else 4731 else
4712 4732
4713 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4733 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4714 echo "configure:4715: checking for dnet_ntoa in -ldnet" >&5 4734 echo "configure:4735: checking for dnet_ntoa in -ldnet" >&5
4715 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4735 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4716 4736
4717 xe_check_libs=" -ldnet " 4737 xe_check_libs=" -ldnet "
4718 cat > conftest.$ac_ext <<EOF 4738 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure" 4739 #line 4740 "configure"
4720 #include "confdefs.h" 4740 #include "confdefs.h"
4721 /* Override any gcc2 internal prototype to avoid an error. */ 4741 /* Override any gcc2 internal prototype to avoid an error. */
4722 /* We use char because int might match the return type of a gcc2 4742 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */ 4743 builtin and then its argument prototype would still apply. */
4724 char dnet_ntoa(); 4744 char dnet_ntoa();
4725 4745
4726 int main() { 4746 int main() {
4727 dnet_ntoa() 4747 dnet_ntoa()
4728 ; return 0; } 4748 ; return 0; }
4729 EOF 4749 EOF
4730 if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4750 if { (eval echo configure:4751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4731 rm -rf conftest* 4751 rm -rf conftest*
4732 eval "ac_cv_lib_$ac_lib_var=yes" 4752 eval "ac_cv_lib_$ac_lib_var=yes"
4733 else 4753 else
4734 echo "configure: failed program was:" >&5 4754 echo "configure: failed program was:" >&5
4735 cat conftest.$ac_ext >&5 4755 cat conftest.$ac_ext >&5
4749 fi 4769 fi
4750 4770
4751 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4771 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4752 4772
4753 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4773 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4754 echo "configure:4755: checking for dnet_ntoa in -ldnet_stub" >&5 4774 echo "configure:4775: checking for dnet_ntoa in -ldnet_stub" >&5
4755 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4775 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4756 4776
4757 xe_check_libs=" -ldnet_stub " 4777 xe_check_libs=" -ldnet_stub "
4758 cat > conftest.$ac_ext <<EOF 4778 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure" 4779 #line 4780 "configure"
4760 #include "confdefs.h" 4780 #include "confdefs.h"
4761 /* Override any gcc2 internal prototype to avoid an error. */ 4781 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2 4782 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */ 4783 builtin and then its argument prototype would still apply. */
4764 char dnet_ntoa(); 4784 char dnet_ntoa();
4765 4785
4766 int main() { 4786 int main() {
4767 dnet_ntoa() 4787 dnet_ntoa()
4768 ; return 0; } 4788 ; return 0; }
4769 EOF 4789 EOF
4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4790 if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4771 rm -rf conftest* 4791 rm -rf conftest*
4772 eval "ac_cv_lib_$ac_lib_var=yes" 4792 eval "ac_cv_lib_$ac_lib_var=yes"
4773 else 4793 else
4774 echo "configure: failed program was:" >&5 4794 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5 4795 cat conftest.$ac_ext >&5
4794 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4814 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4795 # needs -lnsl. 4815 # needs -lnsl.
4796 # The nsl library prevents programs from opening the X display 4816 # The nsl library prevents programs from opening the X display
4797 # on Irix 5.2, according to dickey@clark.net. 4817 # on Irix 5.2, according to dickey@clark.net.
4798 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4818 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4799 echo "configure:4800: checking for gethostbyname" >&5 4819 echo "configure:4820: checking for gethostbyname" >&5
4800 4820
4801 cat > conftest.$ac_ext <<EOF 4821 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure" 4822 #line 4823 "configure"
4803 #include "confdefs.h" 4823 #include "confdefs.h"
4804 /* System header to define __stub macros and hopefully few prototypes, 4824 /* System header to define __stub macros and hopefully few prototypes,
4805 which can conflict with char gethostbyname(); below. */ 4825 which can conflict with char gethostbyname(); below. */
4806 #include <assert.h> 4826 #include <assert.h>
4807 /* Override any gcc2 internal prototype to avoid an error. */ 4827 /* Override any gcc2 internal prototype to avoid an error. */
4820 gethostbyname(); 4840 gethostbyname();
4821 #endif 4841 #endif
4822 4842
4823 ; return 0; } 4843 ; return 0; }
4824 EOF 4844 EOF
4825 if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4845 if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4826 rm -rf conftest* 4846 rm -rf conftest*
4827 eval "ac_cv_func_gethostbyname=yes" 4847 eval "ac_cv_func_gethostbyname=yes"
4828 else 4848 else
4829 echo "configure: failed program was:" >&5 4849 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5 4850 cat conftest.$ac_ext >&5
4841 fi 4861 fi
4842 4862
4843 if test $ac_cv_func_gethostbyname = no; then 4863 if test $ac_cv_func_gethostbyname = no; then
4844 4864
4845 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4865 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4846 echo "configure:4847: checking for gethostbyname in -lnsl" >&5 4866 echo "configure:4867: checking for gethostbyname in -lnsl" >&5
4847 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4867 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4848 4868
4849 xe_check_libs=" -lnsl " 4869 xe_check_libs=" -lnsl "
4850 cat > conftest.$ac_ext <<EOF 4870 cat > conftest.$ac_ext <<EOF
4851 #line 4852 "configure" 4871 #line 4872 "configure"
4852 #include "confdefs.h" 4872 #include "confdefs.h"
4853 /* Override any gcc2 internal prototype to avoid an error. */ 4873 /* Override any gcc2 internal prototype to avoid an error. */
4854 /* We use char because int might match the return type of a gcc2 4874 /* We use char because int might match the return type of a gcc2
4855 builtin and then its argument prototype would still apply. */ 4875 builtin and then its argument prototype would still apply. */
4856 char gethostbyname(); 4876 char gethostbyname();
4857 4877
4858 int main() { 4878 int main() {
4859 gethostbyname() 4879 gethostbyname()
4860 ; return 0; } 4880 ; return 0; }
4861 EOF 4881 EOF
4862 if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4882 if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4863 rm -rf conftest* 4883 rm -rf conftest*
4864 eval "ac_cv_lib_$ac_lib_var=yes" 4884 eval "ac_cv_lib_$ac_lib_var=yes"
4865 else 4885 else
4866 echo "configure: failed program was:" >&5 4886 echo "configure: failed program was:" >&5
4867 cat conftest.$ac_ext >&5 4887 cat conftest.$ac_ext >&5
4887 # on later versions), says simon@lia.di.epfl.ch: it contains 4907 # on later versions), says simon@lia.di.epfl.ch: it contains
4888 # gethostby* variants that don't use the nameserver (or something). 4908 # gethostby* variants that don't use the nameserver (or something).
4889 # -lsocket must be given before -lnsl if both are needed. 4909 # -lsocket must be given before -lnsl if both are needed.
4890 # We assume that if connect needs -lnsl, so does gethostbyname. 4910 # We assume that if connect needs -lnsl, so does gethostbyname.
4891 echo $ac_n "checking for connect""... $ac_c" 1>&6 4911 echo $ac_n "checking for connect""... $ac_c" 1>&6
4892 echo "configure:4893: checking for connect" >&5 4912 echo "configure:4913: checking for connect" >&5
4893 4913
4894 cat > conftest.$ac_ext <<EOF 4914 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure" 4915 #line 4916 "configure"
4896 #include "confdefs.h" 4916 #include "confdefs.h"
4897 /* System header to define __stub macros and hopefully few prototypes, 4917 /* System header to define __stub macros and hopefully few prototypes,
4898 which can conflict with char connect(); below. */ 4918 which can conflict with char connect(); below. */
4899 #include <assert.h> 4919 #include <assert.h>
4900 /* Override any gcc2 internal prototype to avoid an error. */ 4920 /* Override any gcc2 internal prototype to avoid an error. */
4913 connect(); 4933 connect();
4914 #endif 4934 #endif
4915 4935
4916 ; return 0; } 4936 ; return 0; }
4917 EOF 4937 EOF
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4938 if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4919 rm -rf conftest* 4939 rm -rf conftest*
4920 eval "ac_cv_func_connect=yes" 4940 eval "ac_cv_func_connect=yes"
4921 else 4941 else
4922 echo "configure: failed program was:" >&5 4942 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5 4943 cat conftest.$ac_ext >&5
4936 if test $ac_cv_func_connect = no; then 4956 if test $ac_cv_func_connect = no; then
4937 4957
4938 xe_msg_checking="for connect in -lsocket" 4958 xe_msg_checking="for connect in -lsocket"
4939 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4959 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4940 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4960 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4941 echo "configure:4942: checking "$xe_msg_checking"" >&5 4961 echo "configure:4962: checking "$xe_msg_checking"" >&5
4942 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4962 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4943 4963
4944 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4964 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4945 cat > conftest.$ac_ext <<EOF 4965 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure" 4966 #line 4967 "configure"
4947 #include "confdefs.h" 4967 #include "confdefs.h"
4948 /* Override any gcc2 internal prototype to avoid an error. */ 4968 /* Override any gcc2 internal prototype to avoid an error. */
4949 /* We use char because int might match the return type of a gcc2 4969 /* We use char because int might match the return type of a gcc2
4950 builtin and then its argument prototype would still apply. */ 4970 builtin and then its argument prototype would still apply. */
4951 char connect(); 4971 char connect();
4952 4972
4953 int main() { 4973 int main() {
4954 connect() 4974 connect()
4955 ; return 0; } 4975 ; return 0; }
4956 EOF 4976 EOF
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4958 rm -rf conftest* 4978 rm -rf conftest*
4959 eval "ac_cv_lib_$ac_lib_var=yes" 4979 eval "ac_cv_lib_$ac_lib_var=yes"
4960 else 4980 else
4961 echo "configure: failed program was:" >&5 4981 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5 4982 cat conftest.$ac_ext >&5
4976 4996
4977 fi 4997 fi
4978 4998
4979 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4999 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4980 echo $ac_n "checking for remove""... $ac_c" 1>&6 5000 echo $ac_n "checking for remove""... $ac_c" 1>&6
4981 echo "configure:4982: checking for remove" >&5 5001 echo "configure:5002: checking for remove" >&5
4982 5002
4983 cat > conftest.$ac_ext <<EOF 5003 cat > conftest.$ac_ext <<EOF
4984 #line 4985 "configure" 5004 #line 5005 "configure"
4985 #include "confdefs.h" 5005 #include "confdefs.h"
4986 /* System header to define __stub macros and hopefully few prototypes, 5006 /* System header to define __stub macros and hopefully few prototypes,
4987 which can conflict with char remove(); below. */ 5007 which can conflict with char remove(); below. */
4988 #include <assert.h> 5008 #include <assert.h>
4989 /* Override any gcc2 internal prototype to avoid an error. */ 5009 /* Override any gcc2 internal prototype to avoid an error. */
5002 remove(); 5022 remove();
5003 #endif 5023 #endif
5004 5024
5005 ; return 0; } 5025 ; return 0; }
5006 EOF 5026 EOF
5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5027 if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5008 rm -rf conftest* 5028 rm -rf conftest*
5009 eval "ac_cv_func_remove=yes" 5029 eval "ac_cv_func_remove=yes"
5010 else 5030 else
5011 echo "configure: failed program was:" >&5 5031 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5 5032 cat conftest.$ac_ext >&5
5023 fi 5043 fi
5024 5044
5025 if test $ac_cv_func_remove = no; then 5045 if test $ac_cv_func_remove = no; then
5026 5046
5027 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5047 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5028 echo "configure:5029: checking for remove in -lposix" >&5 5048 echo "configure:5049: checking for remove in -lposix" >&5
5029 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5049 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5030 5050
5031 xe_check_libs=" -lposix " 5051 xe_check_libs=" -lposix "
5032 cat > conftest.$ac_ext <<EOF 5052 cat > conftest.$ac_ext <<EOF
5033 #line 5034 "configure" 5053 #line 5054 "configure"
5034 #include "confdefs.h" 5054 #include "confdefs.h"
5035 /* Override any gcc2 internal prototype to avoid an error. */ 5055 /* Override any gcc2 internal prototype to avoid an error. */
5036 /* We use char because int might match the return type of a gcc2 5056 /* We use char because int might match the return type of a gcc2
5037 builtin and then its argument prototype would still apply. */ 5057 builtin and then its argument prototype would still apply. */
5038 char remove(); 5058 char remove();
5039 5059
5040 int main() { 5060 int main() {
5041 remove() 5061 remove()
5042 ; return 0; } 5062 ; return 0; }
5043 EOF 5063 EOF
5044 if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5045 rm -rf conftest* 5065 rm -rf conftest*
5046 eval "ac_cv_lib_$ac_lib_var=yes" 5066 eval "ac_cv_lib_$ac_lib_var=yes"
5047 else 5067 else
5048 echo "configure: failed program was:" >&5 5068 echo "configure: failed program was:" >&5
5049 cat conftest.$ac_ext >&5 5069 cat conftest.$ac_ext >&5
5063 5083
5064 fi 5084 fi
5065 5085
5066 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5086 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5067 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5087 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5068 echo "configure:5069: checking for shmat" >&5 5088 echo "configure:5089: checking for shmat" >&5
5069 5089
5070 cat > conftest.$ac_ext <<EOF 5090 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure" 5091 #line 5092 "configure"
5072 #include "confdefs.h" 5092 #include "confdefs.h"
5073 /* System header to define __stub macros and hopefully few prototypes, 5093 /* System header to define __stub macros and hopefully few prototypes,
5074 which can conflict with char shmat(); below. */ 5094 which can conflict with char shmat(); below. */
5075 #include <assert.h> 5095 #include <assert.h>
5076 /* Override any gcc2 internal prototype to avoid an error. */ 5096 /* Override any gcc2 internal prototype to avoid an error. */
5089 shmat(); 5109 shmat();
5090 #endif 5110 #endif
5091 5111
5092 ; return 0; } 5112 ; return 0; }
5093 EOF 5113 EOF
5094 if { (eval echo configure:5095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5095 rm -rf conftest* 5115 rm -rf conftest*
5096 eval "ac_cv_func_shmat=yes" 5116 eval "ac_cv_func_shmat=yes"
5097 else 5117 else
5098 echo "configure: failed program was:" >&5 5118 echo "configure: failed program was:" >&5
5099 cat conftest.$ac_ext >&5 5119 cat conftest.$ac_ext >&5
5110 fi 5130 fi
5111 5131
5112 if test $ac_cv_func_shmat = no; then 5132 if test $ac_cv_func_shmat = no; then
5113 5133
5114 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5134 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5115 echo "configure:5116: checking for shmat in -lipc" >&5 5135 echo "configure:5136: checking for shmat in -lipc" >&5
5116 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5136 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5117 5137
5118 xe_check_libs=" -lipc " 5138 xe_check_libs=" -lipc "
5119 cat > conftest.$ac_ext <<EOF 5139 cat > conftest.$ac_ext <<EOF
5120 #line 5121 "configure" 5140 #line 5141 "configure"
5121 #include "confdefs.h" 5141 #include "confdefs.h"
5122 /* Override any gcc2 internal prototype to avoid an error. */ 5142 /* Override any gcc2 internal prototype to avoid an error. */
5123 /* We use char because int might match the return type of a gcc2 5143 /* We use char because int might match the return type of a gcc2
5124 builtin and then its argument prototype would still apply. */ 5144 builtin and then its argument prototype would still apply. */
5125 char shmat(); 5145 char shmat();
5126 5146
5127 int main() { 5147 int main() {
5128 shmat() 5148 shmat()
5129 ; return 0; } 5149 ; return 0; }
5130 EOF 5150 EOF
5131 if { (eval echo configure:5132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5151 if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5132 rm -rf conftest* 5152 rm -rf conftest*
5133 eval "ac_cv_lib_$ac_lib_var=yes" 5153 eval "ac_cv_lib_$ac_lib_var=yes"
5134 else 5154 else
5135 echo "configure: failed program was:" >&5 5155 echo "configure: failed program was:" >&5
5136 cat conftest.$ac_ext >&5 5156 cat conftest.$ac_ext >&5
5160 # These have to be linked with before -lX11, unlike the other 5180 # These have to be linked with before -lX11, unlike the other
5161 # libraries we check for below, so use a different variable. 5181 # libraries we check for below, so use a different variable.
5162 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5182 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5163 5183
5164 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 5184 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5165 echo "configure:5166: checking for IceConnectionNumber in -lICE" >&5 5185 echo "configure:5186: checking for IceConnectionNumber in -lICE" >&5
5166 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5186 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5167 5187
5168 xe_check_libs=" -lICE " 5188 xe_check_libs=" -lICE "
5169 cat > conftest.$ac_ext <<EOF 5189 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure" 5190 #line 5191 "configure"
5171 #include "confdefs.h" 5191 #include "confdefs.h"
5172 /* Override any gcc2 internal prototype to avoid an error. */ 5192 /* Override any gcc2 internal prototype to avoid an error. */
5173 /* We use char because int might match the return type of a gcc2 5193 /* We use char because int might match the return type of a gcc2
5174 builtin and then its argument prototype would still apply. */ 5194 builtin and then its argument prototype would still apply. */
5175 char IceConnectionNumber(); 5195 char IceConnectionNumber();
5176 5196
5177 int main() { 5197 int main() {
5178 IceConnectionNumber() 5198 IceConnectionNumber()
5179 ; return 0; } 5199 ; return 0; }
5180 EOF 5200 EOF
5181 if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5201 if { (eval echo configure:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5182 rm -rf conftest* 5202 rm -rf conftest*
5183 eval "ac_cv_lib_$ac_lib_var=yes" 5203 eval "ac_cv_lib_$ac_lib_var=yes"
5184 else 5204 else
5185 echo "configure: failed program was:" >&5 5205 echo "configure: failed program was:" >&5
5186 cat conftest.$ac_ext >&5 5206 cat conftest.$ac_ext >&5
5250 x_includes="$x_includes $inc_dir" 5270 x_includes="$x_includes $inc_dir"
5251 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi 5271 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5252 esac 5272 esac
5253 break; fi 5273 break; fi
5254 done 5274 done
5275
5276 if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi
5255 5277
5256 ld_switch_x_site="$X_LIBS" 5278 ld_switch_x_site="$X_LIBS"
5257 5279
5258 5280
5259 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then 5281 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5343 EOF 5365 EOF
5344 } 5366 }
5345 5367
5346 5368
5347 echo "checking for X defines extracted by xmkmf" 1>&6 5369 echo "checking for X defines extracted by xmkmf" 1>&6
5348 echo "configure:5349: checking for X defines extracted by xmkmf" >&5 5370 echo "configure:5371: checking for X defines extracted by xmkmf" >&5
5349 rm -fr conftestdir 5371 rm -fr conftestdir
5350 if mkdir conftestdir; then 5372 if mkdir conftestdir; then
5351 cd conftestdir 5373 cd conftestdir
5352 cat > Imakefile <<'EOF' 5374 cat > Imakefile <<'EOF'
5353 xetest: 5375 xetest:
5375 done 5397 done
5376 fi 5398 fi
5377 5399
5378 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5400 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5379 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5401 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5380 echo "configure:5381: checking for X11/Intrinsic.h" >&5 5402 echo "configure:5403: checking for X11/Intrinsic.h" >&5
5381 5403
5382 cat > conftest.$ac_ext <<EOF 5404 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure" 5405 #line 5406 "configure"
5384 #include "confdefs.h" 5406 #include "confdefs.h"
5385 #include <X11/Intrinsic.h> 5407 #include <X11/Intrinsic.h>
5386 EOF 5408 EOF
5387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5388 { (eval echo configure:5389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5410 { (eval echo configure:5411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5389 ac_err=`grep -v '^ *+' conftest.out` 5411 ac_err=`grep -v '^ *+' conftest.out`
5390 if test -z "$ac_err"; then 5412 if test -z "$ac_err"; then
5391 rm -rf conftest* 5413 rm -rf conftest*
5392 eval "ac_cv_header_$ac_safe=yes" 5414 eval "ac_cv_header_$ac_safe=yes"
5393 else 5415 else
5407 fi 5429 fi
5408 5430
5409 5431
5410 5432
5411 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5433 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5412 echo "configure:5413: checking for XOpenDisplay in -lX11" >&5 5434 echo "configure:5435: checking for XOpenDisplay in -lX11" >&5
5413 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5435 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5414 5436
5415 xe_check_libs=" -lX11 " 5437 xe_check_libs=" -lX11 "
5416 cat > conftest.$ac_ext <<EOF 5438 cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure" 5439 #line 5440 "configure"
5418 #include "confdefs.h" 5440 #include "confdefs.h"
5419 /* Override any gcc2 internal prototype to avoid an error. */ 5441 /* Override any gcc2 internal prototype to avoid an error. */
5420 /* We use char because int might match the return type of a gcc2 5442 /* We use char because int might match the return type of a gcc2
5421 builtin and then its argument prototype would still apply. */ 5443 builtin and then its argument prototype would still apply. */
5422 char XOpenDisplay(); 5444 char XOpenDisplay();
5423 5445
5424 int main() { 5446 int main() {
5425 XOpenDisplay() 5447 XOpenDisplay()
5426 ; return 0; } 5448 ; return 0; }
5427 EOF 5449 EOF
5428 if { (eval echo configure:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5450 if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5429 rm -rf conftest* 5451 rm -rf conftest*
5430 eval "ac_cv_lib_$ac_lib_var=yes" 5452 eval "ac_cv_lib_$ac_lib_var=yes"
5431 else 5453 else
5432 echo "configure: failed program was:" >&5 5454 echo "configure: failed program was:" >&5
5433 cat conftest.$ac_ext >&5 5455 cat conftest.$ac_ext >&5
5448 if test "$have_lib_x11" != "yes"; then 5470 if test "$have_lib_x11" != "yes"; then
5449 5471
5450 xe_msg_checking="for XGetFontProperty in -lX11" 5472 xe_msg_checking="for XGetFontProperty in -lX11"
5451 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5473 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5452 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5474 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5453 echo "configure:5454: checking "$xe_msg_checking"" >&5 5475 echo "configure:5476: checking "$xe_msg_checking"" >&5
5454 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5476 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5455 5477
5456 xe_check_libs=" -lX11 -b i486-linuxaout" 5478 xe_check_libs=" -lX11 -b i486-linuxaout"
5457 cat > conftest.$ac_ext <<EOF 5479 cat > conftest.$ac_ext <<EOF
5458 #line 5459 "configure" 5480 #line 5481 "configure"
5459 #include "confdefs.h" 5481 #include "confdefs.h"
5460 /* Override any gcc2 internal prototype to avoid an error. */ 5482 /* Override any gcc2 internal prototype to avoid an error. */
5461 /* We use char because int might match the return type of a gcc2 5483 /* We use char because int might match the return type of a gcc2
5462 builtin and then its argument prototype would still apply. */ 5484 builtin and then its argument prototype would still apply. */
5463 char XGetFontProperty(); 5485 char XGetFontProperty();
5464 5486
5465 int main() { 5487 int main() {
5466 XGetFontProperty() 5488 XGetFontProperty()
5467 ; return 0; } 5489 ; return 0; }
5468 EOF 5490 EOF
5469 if { (eval echo configure:5470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5491 if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5470 rm -rf conftest* 5492 rm -rf conftest*
5471 eval "ac_cv_lib_$ac_lib_var=yes" 5493 eval "ac_cv_lib_$ac_lib_var=yes"
5472 else 5494 else
5473 echo "configure: failed program was:" >&5 5495 echo "configure: failed program was:" >&5
5474 cat conftest.$ac_ext >&5 5496 cat conftest.$ac_ext >&5
5491 libs_x="-lX11" 5513 libs_x="-lX11"
5492 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5514 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5493 5515
5494 5516
5495 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5517 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5496 echo "configure:5497: checking for XShapeSelectInput in -lXext" >&5 5518 echo "configure:5519: checking for XShapeSelectInput in -lXext" >&5
5497 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5519 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5498 5520
5499 xe_check_libs=" -lXext " 5521 xe_check_libs=" -lXext "
5500 cat > conftest.$ac_ext <<EOF 5522 cat > conftest.$ac_ext <<EOF
5501 #line 5502 "configure" 5523 #line 5524 "configure"
5502 #include "confdefs.h" 5524 #include "confdefs.h"
5503 /* Override any gcc2 internal prototype to avoid an error. */ 5525 /* Override any gcc2 internal prototype to avoid an error. */
5504 /* We use char because int might match the return type of a gcc2 5526 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */ 5527 builtin and then its argument prototype would still apply. */
5506 char XShapeSelectInput(); 5528 char XShapeSelectInput();
5507 5529
5508 int main() { 5530 int main() {
5509 XShapeSelectInput() 5531 XShapeSelectInput()
5510 ; return 0; } 5532 ; return 0; }
5511 EOF 5533 EOF
5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5534 if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5513 rm -rf conftest* 5535 rm -rf conftest*
5514 eval "ac_cv_lib_$ac_lib_var=yes" 5536 eval "ac_cv_lib_$ac_lib_var=yes"
5515 else 5537 else
5516 echo "configure: failed program was:" >&5 5538 echo "configure: failed program was:" >&5
5517 cat conftest.$ac_ext >&5 5539 cat conftest.$ac_ext >&5
5530 5552
5531 5553
5532 5554
5533 5555
5534 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5556 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5535 echo "configure:5536: checking for XtOpenDisplay in -lXt" >&5 5557 echo "configure:5558: checking for XtOpenDisplay in -lXt" >&5
5536 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5558 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5537 5559
5538 xe_check_libs=" -lXt " 5560 xe_check_libs=" -lXt "
5539 cat > conftest.$ac_ext <<EOF 5561 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure" 5562 #line 5563 "configure"
5541 #include "confdefs.h" 5563 #include "confdefs.h"
5542 /* Override any gcc2 internal prototype to avoid an error. */ 5564 /* Override any gcc2 internal prototype to avoid an error. */
5543 /* We use char because int might match the return type of a gcc2 5565 /* We use char because int might match the return type of a gcc2
5544 builtin and then its argument prototype would still apply. */ 5566 builtin and then its argument prototype would still apply. */
5545 char XtOpenDisplay(); 5567 char XtOpenDisplay();
5546 5568
5547 int main() { 5569 int main() {
5548 XtOpenDisplay() 5570 XtOpenDisplay()
5549 ; return 0; } 5571 ; return 0; }
5550 EOF 5572 EOF
5551 if { (eval echo configure:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5573 if { (eval echo configure:5574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5552 rm -rf conftest* 5574 rm -rf conftest*
5553 eval "ac_cv_lib_$ac_lib_var=yes" 5575 eval "ac_cv_lib_$ac_lib_var=yes"
5554 else 5576 else
5555 echo "configure: failed program was:" >&5 5577 echo "configure: failed program was:" >&5
5556 cat conftest.$ac_ext >&5 5578 cat conftest.$ac_ext >&5
5569 fi 5591 fi
5570 5592
5571 5593
5572 5594
5573 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5595 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5574 echo "configure:5575: checking the version of X11 being used" >&5 5596 echo "configure:5597: checking the version of X11 being used" >&5
5575 cat > conftest.$ac_ext <<EOF 5597 cat > conftest.$ac_ext <<EOF
5576 #line 5577 "configure" 5598 #line 5599 "configure"
5577 #include "confdefs.h" 5599 #include "confdefs.h"
5578 #include <X11/Intrinsic.h> 5600 #include <X11/Intrinsic.h>
5579 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5601 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5580 EOF 5602 EOF
5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5603 if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5582 then 5604 then
5583 ./conftest foobar; x11_release=$? 5605 ./conftest foobar; x11_release=$?
5584 else 5606 else
5607 conftest_rc="$?"
5585 echo "configure: failed program was:" >&5 5608 echo "configure: failed program was:" >&5
5586 cat conftest.$ac_ext >&5 5609 cat conftest.$ac_ext >&5
5587 rm -fr conftest* 5610 rm -fr conftest*
5588 x11_release=4 5611 x11_release=4
5589 fi 5612 fi
5600 5623
5601 for ac_hdr in X11/Xlocale.h 5624 for ac_hdr in X11/Xlocale.h
5602 do 5625 do
5603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5605 echo "configure:5606: checking for $ac_hdr" >&5 5628 echo "configure:5629: checking for $ac_hdr" >&5
5606 5629
5607 cat > conftest.$ac_ext <<EOF 5630 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure" 5631 #line 5632 "configure"
5609 #include "confdefs.h" 5632 #include "confdefs.h"
5610 #include <$ac_hdr> 5633 #include <$ac_hdr>
5611 EOF 5634 EOF
5612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5613 { (eval echo configure:5614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5636 { (eval echo configure:5637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5614 ac_err=`grep -v '^ *+' conftest.out` 5637 ac_err=`grep -v '^ *+' conftest.out`
5615 if test -z "$ac_err"; then 5638 if test -z "$ac_err"; then
5616 rm -rf conftest* 5639 rm -rf conftest*
5617 eval "ac_cv_header_$ac_safe=yes" 5640 eval "ac_cv_header_$ac_safe=yes"
5618 else 5641 else
5639 fi 5662 fi
5640 done 5663 done
5641 5664
5642 5665
5643 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5666 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5644 echo "configure:5645: checking for XFree86" >&5 5667 echo "configure:5668: checking for XFree86" >&5
5645 if test -d "/usr/X386/include" -o \ 5668 if test -d "/usr/X386/include" -o \
5646 -f "/etc/XF86Config" -o \ 5669 -f "/etc/XF86Config" -o \
5647 -f "/etc/X11/XF86Config" -o \ 5670 -f "/etc/X11/XF86Config" -o \
5648 -f "/usr/X11R6/lib/X11/XF86Config"; then 5671 -f "/usr/X11R6/lib/X11/XF86Config"; then
5649 echo "$ac_t""yes" 1>&6 5672 echo "$ac_t""yes" 1>&6
5659 echo "$ac_t""no" 1>&6 5682 echo "$ac_t""no" 1>&6
5660 fi 5683 fi
5661 5684
5662 test -z "$with_xmu" && { 5685 test -z "$with_xmu" && {
5663 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5686 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5664 echo "configure:5665: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5687 echo "configure:5688: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5665 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5688 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5666 5689
5667 xe_check_libs=" -lXmu " 5690 xe_check_libs=" -lXmu "
5668 cat > conftest.$ac_ext <<EOF 5691 cat > conftest.$ac_ext <<EOF
5669 #line 5670 "configure" 5692 #line 5693 "configure"
5670 #include "confdefs.h" 5693 #include "confdefs.h"
5671 /* Override any gcc2 internal prototype to avoid an error. */ 5694 /* Override any gcc2 internal prototype to avoid an error. */
5672 /* We use char because int might match the return type of a gcc2 5695 /* We use char because int might match the return type of a gcc2
5673 builtin and then its argument prototype would still apply. */ 5696 builtin and then its argument prototype would still apply. */
5674 char XmuReadBitmapDataFromFile(); 5697 char XmuReadBitmapDataFromFile();
5675 5698
5676 int main() { 5699 int main() {
5677 XmuReadBitmapDataFromFile() 5700 XmuReadBitmapDataFromFile()
5678 ; return 0; } 5701 ; return 0; }
5679 EOF 5702 EOF
5680 if { (eval echo configure:5681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5681 rm -rf conftest* 5704 rm -rf conftest*
5682 eval "ac_cv_lib_$ac_lib_var=yes" 5705 eval "ac_cv_lib_$ac_lib_var=yes"
5683 else 5706 else
5684 echo "configure: failed program was:" >&5 5707 echo "configure: failed program was:" >&5
5685 cat conftest.$ac_ext >&5 5708 cat conftest.$ac_ext >&5
5714 5737
5715 fi 5738 fi
5716 5739
5717 5740
5718 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5741 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5719 echo "configure:5720: checking for main in -lXbsd" >&5 5742 echo "configure:5743: checking for main in -lXbsd" >&5
5720 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5743 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5721 5744
5722 xe_check_libs=" -lXbsd " 5745 xe_check_libs=" -lXbsd "
5723 cat > conftest.$ac_ext <<EOF 5746 cat > conftest.$ac_ext <<EOF
5724 #line 5725 "configure" 5747 #line 5748 "configure"
5725 #include "confdefs.h" 5748 #include "confdefs.h"
5726 5749
5727 int main() { 5750 int main() {
5728 main() 5751 main()
5729 ; return 0; } 5752 ; return 0; }
5730 EOF 5753 EOF
5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5754 if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5732 rm -rf conftest* 5755 rm -rf conftest*
5733 eval "ac_cv_lib_$ac_lib_var=yes" 5756 eval "ac_cv_lib_$ac_lib_var=yes"
5734 else 5757 else
5735 echo "configure: failed program was:" >&5 5758 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5 5759 cat conftest.$ac_ext >&5
5763 fi 5786 fi
5764 5787
5765 fi 5788 fi
5766 if test "$with_msw" != "no"; then 5789 if test "$with_msw" != "no"; then
5767 echo "checking for MS-Windows" 1>&6 5790 echo "checking for MS-Windows" 1>&6
5768 echo "configure:5769: checking for MS-Windows" >&5 5791 echo "configure:5792: checking for MS-Windows" >&5
5769 5792
5770 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 5793 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5771 echo "configure:5772: checking for main in -lgdi32" >&5 5794 echo "configure:5795: checking for main in -lgdi32" >&5
5772 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 5795 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5773 5796
5774 xe_check_libs=" -lgdi32 " 5797 xe_check_libs=" -lgdi32 "
5775 cat > conftest.$ac_ext <<EOF 5798 cat > conftest.$ac_ext <<EOF
5776 #line 5777 "configure" 5799 #line 5800 "configure"
5777 #include "confdefs.h" 5800 #include "confdefs.h"
5778 5801
5779 int main() { 5802 int main() {
5780 main() 5803 main()
5781 ; return 0; } 5804 ; return 0; }
5782 EOF 5805 EOF
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5784 rm -rf conftest* 5807 rm -rf conftest*
5785 eval "ac_cv_lib_$ac_lib_var=yes" 5808 eval "ac_cv_lib_$ac_lib_var=yes"
5786 else 5809 else
5787 echo "configure: failed program was:" >&5 5810 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5 5811 cat conftest.$ac_ext >&5
5842 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 5865 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
5843 echo " xemacs will be linked with \"dialog-msw.o\"" 5866 echo " xemacs will be linked with \"dialog-msw.o\""
5844 fi 5867 fi
5845 fi 5868 fi
5846 cat > conftest.$ac_ext <<EOF 5869 cat > conftest.$ac_ext <<EOF
5847 #line 5848 "configure" 5870 #line 5871 "configure"
5848 #include "confdefs.h" 5871 #include "confdefs.h"
5849 #include <fcntl.h> 5872 #include <fcntl.h>
5850 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 5873 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
5851 EOF 5874 EOF
5852 if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5875 if { (eval echo configure:5876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5853 then 5876 then
5854 { test "$extra_verbose" = "yes" && cat << \EOF 5877 { test "$extra_verbose" = "yes" && cat << \EOF
5855 Defining HAVE_MSG_SELECT 5878 Defining HAVE_MSG_SELECT
5856 EOF 5879 EOF
5857 cat >> confdefs.h <<\EOF 5880 cat >> confdefs.h <<\EOF
5858 #define HAVE_MSG_SELECT 1 5881 #define HAVE_MSG_SELECT 1
5859 EOF 5882 EOF
5860 } 5883 }
5861 5884
5862 else 5885 else
5886 conftest_rc="$?"
5863 echo "configure: failed program was:" >&5 5887 echo "configure: failed program was:" >&5
5864 cat conftest.$ac_ext >&5 5888 cat conftest.$ac_ext >&5
5865 fi 5889 fi
5866 rm -fr conftest* 5890 rm -fr conftest*
5867 const_is_losing=no 5891 const_is_losing=no
5925 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5949 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5926 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5950 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5927 esac 5951 esac
5928 5952
5929 echo "checking for session-management option" 1>&6 5953 echo "checking for session-management option" 1>&6
5930 echo "configure:5931: checking for session-management option" >&5; 5954 echo "configure:5955: checking for session-management option" >&5;
5931 if test "$with_session" != "no"; then 5955 if test "$with_session" != "no"; then
5932 { test "$extra_verbose" = "yes" && cat << \EOF 5956 { test "$extra_verbose" = "yes" && cat << \EOF
5933 Defining HAVE_SESSION 5957 Defining HAVE_SESSION
5934 EOF 5958 EOF
5935 cat >> confdefs.h <<\EOF 5959 cat >> confdefs.h <<\EOF
5940 fi 5964 fi
5941 5965
5942 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5966 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5943 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5967 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5944 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5968 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5945 echo "configure:5946: checking for X11/Xauth.h" >&5 5969 echo "configure:5970: checking for X11/Xauth.h" >&5
5946 5970
5947 cat > conftest.$ac_ext <<EOF 5971 cat > conftest.$ac_ext <<EOF
5948 #line 5949 "configure" 5972 #line 5973 "configure"
5949 #include "confdefs.h" 5973 #include "confdefs.h"
5950 #include <X11/Xauth.h> 5974 #include <X11/Xauth.h>
5951 EOF 5975 EOF
5952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5953 { (eval echo configure:5954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5977 { (eval echo configure:5978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5954 ac_err=`grep -v '^ *+' conftest.out` 5978 ac_err=`grep -v '^ *+' conftest.out`
5955 if test -z "$ac_err"; then 5979 if test -z "$ac_err"; then
5956 rm -rf conftest* 5980 rm -rf conftest*
5957 eval "ac_cv_header_$ac_safe=yes" 5981 eval "ac_cv_header_$ac_safe=yes"
5958 else 5982 else
5971 with_xauth=no 5995 with_xauth=no
5972 fi 5996 fi
5973 } 5997 }
5974 test -z "$with_xauth" && { 5998 test -z "$with_xauth" && {
5975 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5999 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5976 echo "configure:5977: checking for XauGetAuthByAddr in -lXau" >&5 6000 echo "configure:6001: checking for XauGetAuthByAddr in -lXau" >&5
5977 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6001 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5978 6002
5979 xe_check_libs=" -lXau " 6003 xe_check_libs=" -lXau "
5980 cat > conftest.$ac_ext <<EOF 6004 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure" 6005 #line 6006 "configure"
5982 #include "confdefs.h" 6006 #include "confdefs.h"
5983 /* Override any gcc2 internal prototype to avoid an error. */ 6007 /* Override any gcc2 internal prototype to avoid an error. */
5984 /* We use char because int might match the return type of a gcc2 6008 /* We use char because int might match the return type of a gcc2
5985 builtin and then its argument prototype would still apply. */ 6009 builtin and then its argument prototype would still apply. */
5986 char XauGetAuthByAddr(); 6010 char XauGetAuthByAddr();
5987 6011
5988 int main() { 6012 int main() {
5989 XauGetAuthByAddr() 6013 XauGetAuthByAddr()
5990 ; return 0; } 6014 ; return 0; }
5991 EOF 6015 EOF
5992 if { (eval echo configure:5993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5993 rm -rf conftest* 6017 rm -rf conftest*
5994 eval "ac_cv_lib_$ac_lib_var=yes" 6018 eval "ac_cv_lib_$ac_lib_var=yes"
5995 else 6019 else
5996 echo "configure: failed program was:" >&5 6020 echo "configure: failed program was:" >&5
5997 cat conftest.$ac_ext >&5 6021 cat conftest.$ac_ext >&5
6032 6056
6033 if test "$with_tooltalk" != "no" ; then 6057 if test "$with_tooltalk" != "no" ; then
6034 for dir in "" "Tt/" "desktop/" ; do 6058 for dir in "" "Tt/" "desktop/" ; do
6035 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6059 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6036 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6060 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6037 echo "configure:6038: checking for ${dir}tt_c.h" >&5 6061 echo "configure:6062: checking for ${dir}tt_c.h" >&5
6038 6062
6039 cat > conftest.$ac_ext <<EOF 6063 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure" 6064 #line 6065 "configure"
6041 #include "confdefs.h" 6065 #include "confdefs.h"
6042 #include <${dir}tt_c.h> 6066 #include <${dir}tt_c.h>
6043 EOF 6067 EOF
6044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6045 { (eval echo configure:6046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6069 { (eval echo configure:6070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6046 ac_err=`grep -v '^ *+' conftest.out` 6070 ac_err=`grep -v '^ *+' conftest.out`
6047 if test -z "$ac_err"; then 6071 if test -z "$ac_err"; then
6048 rm -rf conftest* 6072 rm -rf conftest*
6049 eval "ac_cv_header_$ac_safe=yes" 6073 eval "ac_cv_header_$ac_safe=yes"
6050 else 6074 else
6076 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6100 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6077 6101
6078 xe_msg_checking="for tt_message_create in -ltt" 6102 xe_msg_checking="for tt_message_create in -ltt"
6079 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6103 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6080 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6104 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6081 echo "configure:6082: checking "$xe_msg_checking"" >&5 6105 echo "configure:6106: checking "$xe_msg_checking"" >&5
6082 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6106 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6083 6107
6084 xe_check_libs=" -ltt $extra_libs" 6108 xe_check_libs=" -ltt $extra_libs"
6085 cat > conftest.$ac_ext <<EOF 6109 cat > conftest.$ac_ext <<EOF
6086 #line 6087 "configure" 6110 #line 6111 "configure"
6087 #include "confdefs.h" 6111 #include "confdefs.h"
6088 /* Override any gcc2 internal prototype to avoid an error. */ 6112 /* Override any gcc2 internal prototype to avoid an error. */
6089 /* We use char because int might match the return type of a gcc2 6113 /* We use char because int might match the return type of a gcc2
6090 builtin and then its argument prototype would still apply. */ 6114 builtin and then its argument prototype would still apply. */
6091 char tt_message_create(); 6115 char tt_message_create();
6092 6116
6093 int main() { 6117 int main() {
6094 tt_message_create() 6118 tt_message_create()
6095 ; return 0; } 6119 ; return 0; }
6096 EOF 6120 EOF
6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6121 if { (eval echo configure:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6098 rm -rf conftest* 6122 rm -rf conftest*
6099 eval "ac_cv_lib_$ac_lib_var=yes" 6123 eval "ac_cv_lib_$ac_lib_var=yes"
6100 else 6124 else
6101 echo "configure: failed program was:" >&5 6125 echo "configure: failed program was:" >&5
6102 cat conftest.$ac_ext >&5 6126 cat conftest.$ac_ext >&5
6149 fi 6173 fi
6150 fi 6174 fi
6151 6175
6152 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6176 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6153 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6177 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6154 echo "configure:6155: checking for Dt/Dt.h" >&5 6178 echo "configure:6179: checking for Dt/Dt.h" >&5
6155 6179
6156 cat > conftest.$ac_ext <<EOF 6180 cat > conftest.$ac_ext <<EOF
6157 #line 6158 "configure" 6181 #line 6182 "configure"
6158 #include "confdefs.h" 6182 #include "confdefs.h"
6159 #include <Dt/Dt.h> 6183 #include <Dt/Dt.h>
6160 EOF 6184 EOF
6161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6162 { (eval echo configure:6163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6186 { (eval echo configure:6187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6163 ac_err=`grep -v '^ *+' conftest.out` 6187 ac_err=`grep -v '^ *+' conftest.out`
6164 if test -z "$ac_err"; then 6188 if test -z "$ac_err"; then
6165 rm -rf conftest* 6189 rm -rf conftest*
6166 eval "ac_cv_header_$ac_safe=yes" 6190 eval "ac_cv_header_$ac_safe=yes"
6167 else 6191 else
6180 with_cde=no 6204 with_cde=no
6181 fi 6205 fi
6182 } 6206 }
6183 test -z "$with_cde" && { 6207 test -z "$with_cde" && {
6184 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6208 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6185 echo "configure:6186: checking for DtDndDragStart in -lDtSvc" >&5 6209 echo "configure:6210: checking for DtDndDragStart in -lDtSvc" >&5
6186 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6210 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6187 6211
6188 xe_check_libs=" -lDtSvc " 6212 xe_check_libs=" -lDtSvc "
6189 cat > conftest.$ac_ext <<EOF 6213 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure" 6214 #line 6215 "configure"
6191 #include "confdefs.h" 6215 #include "confdefs.h"
6192 /* Override any gcc2 internal prototype to avoid an error. */ 6216 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2 6217 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */ 6218 builtin and then its argument prototype would still apply. */
6195 char DtDndDragStart(); 6219 char DtDndDragStart();
6196 6220
6197 int main() { 6221 int main() {
6198 DtDndDragStart() 6222 DtDndDragStart()
6199 ; return 0; } 6223 ; return 0; }
6200 EOF 6224 EOF
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6202 rm -rf conftest* 6226 rm -rf conftest*
6203 eval "ac_cv_lib_$ac_lib_var=yes" 6227 eval "ac_cv_lib_$ac_lib_var=yes"
6204 else 6228 else
6205 echo "configure: failed program was:" >&5 6229 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5 6230 cat conftest.$ac_ext >&5
6265 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6289 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6266 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6290 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6267 fi 6291 fi
6268 6292
6269 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6293 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6270 echo "configure:6271: checking if drag and drop API is needed" >&5 6294 echo "configure:6295: checking if drag and drop API is needed" >&5
6271 if test "$with_dragndrop" != "no" ; then 6295 if test "$with_dragndrop" != "no" ; then
6272 if test -n "$dragndrop_proto" ; then 6296 if test -n "$dragndrop_proto" ; then
6273 with_dragndrop=yes 6297 with_dragndrop=yes
6274 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6298 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6275 { test "$extra_verbose" = "yes" && cat << \EOF 6299 { test "$extra_verbose" = "yes" && cat << \EOF
6286 echo "$ac_t""no" 1>&6 6310 echo "$ac_t""no" 1>&6
6287 fi 6311 fi
6288 fi 6312 fi
6289 6313
6290 echo "checking for LDAP" 1>&6 6314 echo "checking for LDAP" 1>&6
6291 echo "configure:6292: checking for LDAP" >&5 6315 echo "configure:6316: checking for LDAP" >&5
6292 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6316 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6293 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6317 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6294 echo "configure:6295: checking for ldap.h" >&5 6318 echo "configure:6319: checking for ldap.h" >&5
6295 6319
6296 cat > conftest.$ac_ext <<EOF 6320 cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure" 6321 #line 6322 "configure"
6298 #include "confdefs.h" 6322 #include "confdefs.h"
6299 #include <ldap.h> 6323 #include <ldap.h>
6300 EOF 6324 EOF
6301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6302 { (eval echo configure:6303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6326 { (eval echo configure:6327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6303 ac_err=`grep -v '^ *+' conftest.out` 6327 ac_err=`grep -v '^ *+' conftest.out`
6304 if test -z "$ac_err"; then 6328 if test -z "$ac_err"; then
6305 rm -rf conftest* 6329 rm -rf conftest*
6306 eval "ac_cv_header_$ac_safe=yes" 6330 eval "ac_cv_header_$ac_safe=yes"
6307 else 6331 else
6320 with_ldap=no 6344 with_ldap=no
6321 fi 6345 fi
6322 } 6346 }
6323 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6347 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6324 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6348 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6325 echo "configure:6326: checking for lber.h" >&5 6349 echo "configure:6350: checking for lber.h" >&5
6326 6350
6327 cat > conftest.$ac_ext <<EOF 6351 cat > conftest.$ac_ext <<EOF
6328 #line 6329 "configure" 6352 #line 6353 "configure"
6329 #include "confdefs.h" 6353 #include "confdefs.h"
6330 #include <lber.h> 6354 #include <lber.h>
6331 EOF 6355 EOF
6332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6333 { (eval echo configure:6334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6357 { (eval echo configure:6358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6334 ac_err=`grep -v '^ *+' conftest.out` 6358 ac_err=`grep -v '^ *+' conftest.out`
6335 if test -z "$ac_err"; then 6359 if test -z "$ac_err"; then
6336 rm -rf conftest* 6360 rm -rf conftest*
6337 eval "ac_cv_header_$ac_safe=yes" 6361 eval "ac_cv_header_$ac_safe=yes"
6338 else 6362 else
6354 if test "$with_ldap" != "no"; then 6378 if test "$with_ldap" != "no"; then
6355 test -z "$with_umich_ldap" && { 6379 test -z "$with_umich_ldap" && {
6356 xe_msg_checking="for ldap_open in -lldap" 6380 xe_msg_checking="for ldap_open in -lldap"
6357 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6381 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6358 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6382 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6359 echo "configure:6360: checking "$xe_msg_checking"" >&5 6383 echo "configure:6384: checking "$xe_msg_checking"" >&5
6360 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6384 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6361 6385
6362 xe_check_libs=" -lldap -llber" 6386 xe_check_libs=" -lldap -llber"
6363 cat > conftest.$ac_ext <<EOF 6387 cat > conftest.$ac_ext <<EOF
6364 #line 6365 "configure" 6388 #line 6389 "configure"
6365 #include "confdefs.h" 6389 #include "confdefs.h"
6366 /* Override any gcc2 internal prototype to avoid an error. */ 6390 /* Override any gcc2 internal prototype to avoid an error. */
6367 /* We use char because int might match the return type of a gcc2 6391 /* We use char because int might match the return type of a gcc2
6368 builtin and then its argument prototype would still apply. */ 6392 builtin and then its argument prototype would still apply. */
6369 char ldap_open(); 6393 char ldap_open();
6370 6394
6371 int main() { 6395 int main() {
6372 ldap_open() 6396 ldap_open()
6373 ; return 0; } 6397 ; return 0; }
6374 EOF 6398 EOF
6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6399 if { (eval echo configure:6400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6376 rm -rf conftest* 6400 rm -rf conftest*
6377 eval "ac_cv_lib_$ac_lib_var=yes" 6401 eval "ac_cv_lib_$ac_lib_var=yes"
6378 else 6402 else
6379 echo "configure: failed program was:" >&5 6403 echo "configure: failed program was:" >&5
6380 cat conftest.$ac_ext >&5 6404 cat conftest.$ac_ext >&5
6393 fi 6417 fi
6394 6418
6395 } 6419 }
6396 test "$with_umich_ldap" = "no" && { 6420 test "$with_umich_ldap" = "no" && {
6397 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6 6421 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6398 echo "configure:6399: checking for ldap_set_option in -lldap10" >&5 6422 echo "configure:6423: checking for ldap_set_option in -lldap10" >&5
6399 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'` 6423 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6400 6424
6401 xe_check_libs=" -lldap10 " 6425 xe_check_libs=" -lldap10 "
6402 cat > conftest.$ac_ext <<EOF 6426 cat > conftest.$ac_ext <<EOF
6403 #line 6404 "configure" 6427 #line 6428 "configure"
6404 #include "confdefs.h" 6428 #include "confdefs.h"
6405 /* Override any gcc2 internal prototype to avoid an error. */ 6429 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2 6430 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */ 6431 builtin and then its argument prototype would still apply. */
6408 char ldap_set_option(); 6432 char ldap_set_option();
6409 6433
6410 int main() { 6434 int main() {
6411 ldap_set_option() 6435 ldap_set_option()
6412 ; return 0; } 6436 ; return 0; }
6413 EOF 6437 EOF
6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6438 if { (eval echo configure:6439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6415 rm -rf conftest* 6439 rm -rf conftest*
6416 eval "ac_cv_lib_$ac_lib_var=yes" 6440 eval "ac_cv_lib_$ac_lib_var=yes"
6417 else 6441 else
6418 echo "configure: failed program was:" >&5 6442 echo "configure: failed program was:" >&5
6419 cat conftest.$ac_ext >&5 6443 cat conftest.$ac_ext >&5
6473 fi 6497 fi
6474 6498
6475 6499
6476 if test "$window_system" != "none"; then 6500 if test "$window_system" != "none"; then
6477 echo "checking for graphics libraries" 1>&6 6501 echo "checking for graphics libraries" 1>&6
6478 echo "configure:6479: checking for graphics libraries" >&5 6502 echo "configure:6503: checking for graphics libraries" >&5
6479 6503
6480 if test -z "$with_xpm"; then 6504 if test -z "$with_xpm"; then
6481 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6505 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6482 echo "configure:6483: checking for Xpm - no older than 3.4f" >&5 6506 echo "configure:6507: checking for Xpm - no older than 3.4f" >&5
6483 xe_check_libs=-lXpm 6507 xe_check_libs=-lXpm
6484 cat > conftest.$ac_ext <<EOF 6508 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure" 6509 #line 6510 "configure"
6486 #include "confdefs.h" 6510 #include "confdefs.h"
6487 #include <X11/xpm.h> 6511 #include <X11/xpm.h>
6488 int main(int c, char **v) { 6512 int main(int c, char **v) {
6489 return c == 1 ? 0 : 6513 return c == 1 ? 0 :
6490 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6514 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6491 XpmIncludeVersion < 30406 ? 2 : 0 ;} 6515 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6492 EOF 6516 EOF
6493 if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 6517 if { (eval echo configure:6518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6494 then 6518 then
6495 ./conftest dummy_arg; xpm_status=$?; 6519 ./conftest dummy_arg; xpm_status=$?;
6496 if test "$?" = "0"; then 6520 if test "$?" = "0"; then
6497 with_xpm=yes; 6521 with_xpm=yes;
6498 else 6522 else
6509 I'm not touching that with a 10-foot pole! 6533 I'm not touching that with a 10-foot pole!
6510 If you really want to use the installed version of Xpm, rerun 6534 If you really want to use the installed version of Xpm, rerun
6511 configure --with-xpm=yes, but don't blame me if XEmacs crashes!" 6535 configure --with-xpm=yes, but don't blame me if XEmacs crashes!"
6512 fi 6536 fi
6513 else 6537 else
6538 conftest_rc="$?"
6514 echo "configure: failed program was:" >&5 6539 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5 6540 cat conftest.$ac_ext >&5
6516 rm -fr conftest* 6541 rm -fr conftest*
6517 with_xpm=no 6542 with_xpm=no
6518 fi 6543 fi
6529 EOF 6554 EOF
6530 } 6555 }
6531 6556
6532 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6557 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6533 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 6558 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6534 echo "configure:6535: checking for \"FOR_MSW\" xpm" >&5 6559 echo "configure:6560: checking for \"FOR_MSW\" xpm" >&5
6535 xe_check_libs=-lXpm 6560 xe_check_libs=-lXpm
6536 cat > conftest.$ac_ext <<EOF 6561 cat > conftest.$ac_ext <<EOF
6537 #line 6538 "configure" 6562 #line 6563 "configure"
6538 #include "confdefs.h" 6563 #include "confdefs.h"
6539 6564
6540 int main() { 6565 int main() {
6541 XpmCreatePixmapFromData() 6566 XpmCreatePixmapFromData()
6542 ; return 0; } 6567 ; return 0; }
6543 EOF 6568 EOF
6544 if { (eval echo configure:6545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6569 if { (eval echo configure:6570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6545 rm -rf conftest* 6570 rm -rf conftest*
6546 xpm_for_msw=no 6571 xpm_for_msw=no
6547 else 6572 else
6548 echo "configure: failed program was:" >&5 6573 echo "configure: failed program was:" >&5
6549 cat conftest.$ac_ext >&5 6574 cat conftest.$ac_ext >&5
6566 fi 6591 fi
6567 6592
6568 if test "$with_png $with_tiff" != "no no"; then 6593 if test "$with_png $with_tiff" != "no no"; then
6569 6594
6570 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 6595 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6571 echo "configure:6572: checking for inflate in -lc" >&5 6596 echo "configure:6597: checking for inflate in -lc" >&5
6572 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 6597 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6573 6598
6574 xe_check_libs=" -lc " 6599 xe_check_libs=" -lc "
6575 cat > conftest.$ac_ext <<EOF 6600 cat > conftest.$ac_ext <<EOF
6576 #line 6577 "configure" 6601 #line 6602 "configure"
6577 #include "confdefs.h" 6602 #include "confdefs.h"
6578 /* Override any gcc2 internal prototype to avoid an error. */ 6603 /* Override any gcc2 internal prototype to avoid an error. */
6579 /* We use char because int might match the return type of a gcc2 6604 /* We use char because int might match the return type of a gcc2
6580 builtin and then its argument prototype would still apply. */ 6605 builtin and then its argument prototype would still apply. */
6581 char inflate(); 6606 char inflate();
6582 6607
6583 int main() { 6608 int main() {
6584 inflate() 6609 inflate()
6585 ; return 0; } 6610 ; return 0; }
6586 EOF 6611 EOF
6587 if { (eval echo configure:6588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6612 if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6588 rm -rf conftest* 6613 rm -rf conftest*
6589 eval "ac_cv_lib_$ac_lib_var=yes" 6614 eval "ac_cv_lib_$ac_lib_var=yes"
6590 else 6615 else
6591 echo "configure: failed program was:" >&5 6616 echo "configure: failed program was:" >&5
6592 cat conftest.$ac_ext >&5 6617 cat conftest.$ac_ext >&5
6601 : 6626 :
6602 else 6627 else
6603 echo "$ac_t""no" 1>&6 6628 echo "$ac_t""no" 1>&6
6604 6629
6605 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 6630 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6606 echo "configure:6607: checking for inflate in -lz" >&5 6631 echo "configure:6632: checking for inflate in -lz" >&5
6607 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 6632 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6608 6633
6609 xe_check_libs=" -lz " 6634 xe_check_libs=" -lz "
6610 cat > conftest.$ac_ext <<EOF 6635 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure" 6636 #line 6637 "configure"
6612 #include "confdefs.h" 6637 #include "confdefs.h"
6613 /* Override any gcc2 internal prototype to avoid an error. */ 6638 /* Override any gcc2 internal prototype to avoid an error. */
6614 /* We use char because int might match the return type of a gcc2 6639 /* We use char because int might match the return type of a gcc2
6615 builtin and then its argument prototype would still apply. */ 6640 builtin and then its argument prototype would still apply. */
6616 char inflate(); 6641 char inflate();
6617 6642
6618 int main() { 6643 int main() {
6619 inflate() 6644 inflate()
6620 ; return 0; } 6645 ; return 0; }
6621 EOF 6646 EOF
6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6647 if { (eval echo configure:6648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6623 rm -rf conftest* 6648 rm -rf conftest*
6624 eval "ac_cv_lib_$ac_lib_var=yes" 6649 eval "ac_cv_lib_$ac_lib_var=yes"
6625 else 6650 else
6626 echo "configure: failed program was:" >&5 6651 echo "configure: failed program was:" >&5
6627 cat conftest.$ac_ext >&5 6652 cat conftest.$ac_ext >&5
6636 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 6661 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6637 else 6662 else
6638 echo "$ac_t""no" 1>&6 6663 echo "$ac_t""no" 1>&6
6639 6664
6640 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 6665 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6641 echo "configure:6642: checking for inflate in -lgz" >&5 6666 echo "configure:6667: checking for inflate in -lgz" >&5
6642 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 6667 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6643 6668
6644 xe_check_libs=" -lgz " 6669 xe_check_libs=" -lgz "
6645 cat > conftest.$ac_ext <<EOF 6670 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure" 6671 #line 6672 "configure"
6647 #include "confdefs.h" 6672 #include "confdefs.h"
6648 /* Override any gcc2 internal prototype to avoid an error. */ 6673 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2 6674 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */ 6675 builtin and then its argument prototype would still apply. */
6651 char inflate(); 6676 char inflate();
6652 6677
6653 int main() { 6678 int main() {
6654 inflate() 6679 inflate()
6655 ; return 0; } 6680 ; return 0; }
6656 EOF 6681 EOF
6657 if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6682 if { (eval echo configure:6683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6658 rm -rf conftest* 6683 rm -rf conftest*
6659 eval "ac_cv_lib_$ac_lib_var=yes" 6684 eval "ac_cv_lib_$ac_lib_var=yes"
6660 else 6685 else
6661 echo "configure: failed program was:" >&5 6686 echo "configure: failed program was:" >&5
6662 cat conftest.$ac_ext >&5 6687 cat conftest.$ac_ext >&5
6681 6706
6682 6707
6683 fi 6708 fi
6684 6709
6685 echo $ac_n "checking for gifreader""... $ac_c" 1>&6 6710 echo $ac_n "checking for gifreader""... $ac_c" 1>&6
6686 echo "configure:6687: checking for gifreader" >&5 6711 echo "configure:6712: checking for gifreader" >&5
6687 test -z "$with_gif" && { ac_safe=`echo "gifrlib.h" | sed 'y%./+-%__p_%'` 6712 test -z "$with_gif" && { ac_safe=`echo "gifrlib.h" | sed 'y%./+-%__p_%'`
6688 echo $ac_n "checking for gifrlib.h""... $ac_c" 1>&6 6713 echo $ac_n "checking for gifrlib.h""... $ac_c" 1>&6
6689 echo "configure:6690: checking for gifrlib.h" >&5 6714 echo "configure:6715: checking for gifrlib.h" >&5
6690 6715
6691 cat > conftest.$ac_ext <<EOF 6716 cat > conftest.$ac_ext <<EOF
6692 #line 6693 "configure" 6717 #line 6718 "configure"
6693 #include "confdefs.h" 6718 #include "confdefs.h"
6694 #include <gifrlib.h> 6719 #include <gifrlib.h>
6695 EOF 6720 EOF
6696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6697 { (eval echo configure:6698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6722 { (eval echo configure:6723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6698 ac_err=`grep -v '^ *+' conftest.out` 6723 ac_err=`grep -v '^ *+' conftest.out`
6699 if test -z "$ac_err"; then 6724 if test -z "$ac_err"; then
6700 rm -rf conftest* 6725 rm -rf conftest*
6701 eval "ac_cv_header_$ac_safe=yes" 6726 eval "ac_cv_header_$ac_safe=yes"
6702 else 6727 else
6715 with_gif=no 6740 with_gif=no
6716 fi 6741 fi
6717 } 6742 }
6718 test -z "$with_gif" && { 6743 test -z "$with_gif" && {
6719 echo $ac_n "checking for GetGifError in -lgifreader""... $ac_c" 1>&6 6744 echo $ac_n "checking for GetGifError in -lgifreader""... $ac_c" 1>&6
6720 echo "configure:6721: checking for GetGifError in -lgifreader" >&5 6745 echo "configure:6746: checking for GetGifError in -lgifreader" >&5
6721 ac_lib_var=`echo gifreader'_'GetGifError | sed 'y%./+-%__p_%'` 6746 ac_lib_var=`echo gifreader'_'GetGifError | sed 'y%./+-%__p_%'`
6722 6747
6723 xe_check_libs=" -lgifreader " 6748 xe_check_libs=" -lgifreader "
6724 cat > conftest.$ac_ext <<EOF 6749 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure" 6750 #line 6751 "configure"
6726 #include "confdefs.h" 6751 #include "confdefs.h"
6727 /* Override any gcc2 internal prototype to avoid an error. */ 6752 /* Override any gcc2 internal prototype to avoid an error. */
6728 /* We use char because int might match the return type of a gcc2 6753 /* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */ 6754 builtin and then its argument prototype would still apply. */
6730 char GetGifError(); 6755 char GetGifError();
6731 6756
6732 int main() { 6757 int main() {
6733 GetGifError() 6758 GetGifError()
6734 ; return 0; } 6759 ; return 0; }
6735 EOF 6760 EOF
6736 if { (eval echo configure:6737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6761 if { (eval echo configure:6762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6737 rm -rf conftest* 6762 rm -rf conftest*
6738 eval "ac_cv_lib_$ac_lib_var=yes" 6763 eval "ac_cv_lib_$ac_lib_var=yes"
6739 else 6764 else
6740 echo "configure: failed program was:" >&5 6765 echo "configure: failed program was:" >&5
6741 cat conftest.$ac_ext >&5 6766 cat conftest.$ac_ext >&5
6767 libs_x="-lgifreader $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgifreader\" to \$libs_x"; fi 6792 libs_x="-lgifreader $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgifreader\" to \$libs_x"; fi
6768 fi 6793 fi
6769 6794
6770 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6795 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6771 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6796 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6772 echo "configure:6773: checking for jpeglib.h" >&5 6797 echo "configure:6798: checking for jpeglib.h" >&5
6773 6798
6774 cat > conftest.$ac_ext <<EOF 6799 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure" 6800 #line 6801 "configure"
6776 #include "confdefs.h" 6801 #include "confdefs.h"
6777 #include <jpeglib.h> 6802 #include <jpeglib.h>
6778 EOF 6803 EOF
6779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6780 { (eval echo configure:6781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6805 { (eval echo configure:6806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6781 ac_err=`grep -v '^ *+' conftest.out` 6806 ac_err=`grep -v '^ *+' conftest.out`
6782 if test -z "$ac_err"; then 6807 if test -z "$ac_err"; then
6783 rm -rf conftest* 6808 rm -rf conftest*
6784 eval "ac_cv_header_$ac_safe=yes" 6809 eval "ac_cv_header_$ac_safe=yes"
6785 else 6810 else
6798 with_jpeg=no 6823 with_jpeg=no
6799 fi 6824 fi
6800 } 6825 }
6801 test -z "$with_jpeg" && { 6826 test -z "$with_jpeg" && {
6802 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6827 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6803 echo "configure:6804: checking for jpeg_destroy_decompress in -ljpeg" >&5 6828 echo "configure:6829: checking for jpeg_destroy_decompress in -ljpeg" >&5
6804 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6829 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6805 6830
6806 xe_check_libs=" -ljpeg " 6831 xe_check_libs=" -ljpeg "
6807 cat > conftest.$ac_ext <<EOF 6832 cat > conftest.$ac_ext <<EOF
6808 #line 6809 "configure" 6833 #line 6834 "configure"
6809 #include "confdefs.h" 6834 #include "confdefs.h"
6810 /* Override any gcc2 internal prototype to avoid an error. */ 6835 /* Override any gcc2 internal prototype to avoid an error. */
6811 /* We use char because int might match the return type of a gcc2 6836 /* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */ 6837 builtin and then its argument prototype would still apply. */
6813 char jpeg_destroy_decompress(); 6838 char jpeg_destroy_decompress();
6814 6839
6815 int main() { 6840 int main() {
6816 jpeg_destroy_decompress() 6841 jpeg_destroy_decompress()
6817 ; return 0; } 6842 ; return 0; }
6818 EOF 6843 EOF
6819 if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6820 rm -rf conftest* 6845 rm -rf conftest*
6821 eval "ac_cv_lib_$ac_lib_var=yes" 6846 eval "ac_cv_lib_$ac_lib_var=yes"
6822 else 6847 else
6823 echo "configure: failed program was:" >&5 6848 echo "configure: failed program was:" >&5
6824 cat conftest.$ac_ext >&5 6849 cat conftest.$ac_ext >&5
6850 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6875 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6851 fi 6876 fi
6852 6877
6853 if test -z "$with_png"; then 6878 if test -z "$with_png"; then
6854 echo $ac_n "checking for png.h - no older than 0.96""... $ac_c" 1>&6 6879 echo $ac_n "checking for png.h - no older than 0.96""... $ac_c" 1>&6
6855 echo "configure:6856: checking for png.h - no older than 0.96" >&5 6880 echo "configure:6881: checking for png.h - no older than 0.96" >&5
6856 cat > conftest.$ac_ext <<EOF 6881 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure" 6882 #line 6883 "configure"
6858 #include "confdefs.h" 6883 #include "confdefs.h"
6859 #include <png.h> 6884 #include <png.h>
6860 #if PNG_LIBPNG_VER >= 96 6885 #if PNG_LIBPNG_VER >= 96
6861 yes 6886 yes
6862 #endif 6887 #endif
6872 fi 6897 fi
6873 rm -f conftest* 6898 rm -f conftest*
6874 6899
6875 fi 6900 fi
6876 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6901 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6877 echo "configure:6878: checking for pow" >&5 6902 echo "configure:6903: checking for pow" >&5
6878 6903
6879 cat > conftest.$ac_ext <<EOF 6904 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure" 6905 #line 6906 "configure"
6881 #include "confdefs.h" 6906 #include "confdefs.h"
6882 /* System header to define __stub macros and hopefully few prototypes, 6907 /* System header to define __stub macros and hopefully few prototypes,
6883 which can conflict with char pow(); below. */ 6908 which can conflict with char pow(); below. */
6884 #include <assert.h> 6909 #include <assert.h>
6885 /* Override any gcc2 internal prototype to avoid an error. */ 6910 /* Override any gcc2 internal prototype to avoid an error. */
6898 pow(); 6923 pow();
6899 #endif 6924 #endif
6900 6925
6901 ; return 0; } 6926 ; return 0; }
6902 EOF 6927 EOF
6903 if { (eval echo configure:6904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6928 if { (eval echo configure:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6904 rm -rf conftest* 6929 rm -rf conftest*
6905 eval "ac_cv_func_pow=yes" 6930 eval "ac_cv_func_pow=yes"
6906 else 6931 else
6907 echo "configure: failed program was:" >&5 6932 echo "configure: failed program was:" >&5
6908 cat conftest.$ac_ext >&5 6933 cat conftest.$ac_ext >&5
6919 with_png=no 6944 with_png=no
6920 fi 6945 fi
6921 } 6946 }
6922 test -z "$with_png" && { 6947 test -z "$with_png" && {
6923 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 6948 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
6924 echo "configure:6925: checking for png_read_image in -lpng" >&5 6949 echo "configure:6950: checking for png_read_image in -lpng" >&5
6925 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6950 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6926 6951
6927 xe_check_libs=" -lpng " 6952 xe_check_libs=" -lpng "
6928 cat > conftest.$ac_ext <<EOF 6953 cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure" 6954 #line 6955 "configure"
6930 #include "confdefs.h" 6955 #include "confdefs.h"
6931 /* Override any gcc2 internal prototype to avoid an error. */ 6956 /* Override any gcc2 internal prototype to avoid an error. */
6932 /* We use char because int might match the return type of a gcc2 6957 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */ 6958 builtin and then its argument prototype would still apply. */
6934 char png_read_image(); 6959 char png_read_image();
6935 6960
6936 int main() { 6961 int main() {
6937 png_read_image() 6962 png_read_image()
6938 ; return 0; } 6963 ; return 0; }
6939 EOF 6964 EOF
6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6965 if { (eval echo configure:6966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6941 rm -rf conftest* 6966 rm -rf conftest*
6942 eval "ac_cv_lib_$ac_lib_var=yes" 6967 eval "ac_cv_lib_$ac_lib_var=yes"
6943 else 6968 else
6944 echo "configure: failed program was:" >&5 6969 echo "configure: failed program was:" >&5
6945 cat conftest.$ac_ext >&5 6970 cat conftest.$ac_ext >&5
6971 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 6996 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
6972 fi 6997 fi
6973 6998
6974 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 6999 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
6975 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7000 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
6976 echo "configure:6977: checking for tiffio.h" >&5 7001 echo "configure:7002: checking for tiffio.h" >&5
6977 7002
6978 cat > conftest.$ac_ext <<EOF 7003 cat > conftest.$ac_ext <<EOF
6979 #line 6980 "configure" 7004 #line 7005 "configure"
6980 #include "confdefs.h" 7005 #include "confdefs.h"
6981 #include <tiffio.h> 7006 #include <tiffio.h>
6982 EOF 7007 EOF
6983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6984 { (eval echo configure:6985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7009 { (eval echo configure:7010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6985 ac_err=`grep -v '^ *+' conftest.out` 7010 ac_err=`grep -v '^ *+' conftest.out`
6986 if test -z "$ac_err"; then 7011 if test -z "$ac_err"; then
6987 rm -rf conftest* 7012 rm -rf conftest*
6988 eval "ac_cv_header_$ac_safe=yes" 7013 eval "ac_cv_header_$ac_safe=yes"
6989 else 7014 else
7002 with_tiff=no 7027 with_tiff=no
7003 fi 7028 fi
7004 } 7029 }
7005 test -z "$with_tiff" && { 7030 test -z "$with_tiff" && {
7006 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7031 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7007 echo "configure:7008: checking for TIFFClientOpen in -ltiff" >&5 7032 echo "configure:7033: checking for TIFFClientOpen in -ltiff" >&5
7008 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7033 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7009 7034
7010 xe_check_libs=" -ltiff " 7035 xe_check_libs=" -ltiff "
7011 cat > conftest.$ac_ext <<EOF 7036 cat > conftest.$ac_ext <<EOF
7012 #line 7013 "configure" 7037 #line 7038 "configure"
7013 #include "confdefs.h" 7038 #include "confdefs.h"
7014 /* Override any gcc2 internal prototype to avoid an error. */ 7039 /* Override any gcc2 internal prototype to avoid an error. */
7015 /* We use char because int might match the return type of a gcc2 7040 /* We use char because int might match the return type of a gcc2
7016 builtin and then its argument prototype would still apply. */ 7041 builtin and then its argument prototype would still apply. */
7017 char TIFFClientOpen(); 7042 char TIFFClientOpen();
7018 7043
7019 int main() { 7044 int main() {
7020 TIFFClientOpen() 7045 TIFFClientOpen()
7021 ; return 0; } 7046 ; return 0; }
7022 EOF 7047 EOF
7023 if { (eval echo configure:7024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7048 if { (eval echo configure:7049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7024 rm -rf conftest* 7049 rm -rf conftest*
7025 eval "ac_cv_lib_$ac_lib_var=yes" 7050 eval "ac_cv_lib_$ac_lib_var=yes"
7026 else 7051 else
7027 echo "configure: failed program was:" >&5 7052 echo "configure: failed program was:" >&5
7028 cat conftest.$ac_ext >&5 7053 cat conftest.$ac_ext >&5
7057 7082
7058 7083
7059 if test "$with_x11" = "yes"; then 7084 if test "$with_x11" = "yes"; then
7060 7085
7061 echo "checking for X11 graphics libraries" 1>&6 7086 echo "checking for X11 graphics libraries" 1>&6
7062 echo "configure:7063: checking for X11 graphics libraries" >&5 7087 echo "configure:7088: checking for X11 graphics libraries" >&5
7063 7088
7064 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7089 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7065 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7090 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7066 echo "configure:7067: checking for compface.h" >&5 7091 echo "configure:7092: checking for compface.h" >&5
7067 7092
7068 cat > conftest.$ac_ext <<EOF 7093 cat > conftest.$ac_ext <<EOF
7069 #line 7070 "configure" 7094 #line 7095 "configure"
7070 #include "confdefs.h" 7095 #include "confdefs.h"
7071 #include <compface.h> 7096 #include <compface.h>
7072 EOF 7097 EOF
7073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7074 { (eval echo configure:7075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7099 { (eval echo configure:7100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7075 ac_err=`grep -v '^ *+' conftest.out` 7100 ac_err=`grep -v '^ *+' conftest.out`
7076 if test -z "$ac_err"; then 7101 if test -z "$ac_err"; then
7077 rm -rf conftest* 7102 rm -rf conftest*
7078 eval "ac_cv_header_$ac_safe=yes" 7103 eval "ac_cv_header_$ac_safe=yes"
7079 else 7104 else
7092 with_xface=no 7117 with_xface=no
7093 fi 7118 fi
7094 } 7119 }
7095 test -z "$with_xface" && { 7120 test -z "$with_xface" && {
7096 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7121 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7097 echo "configure:7098: checking for UnGenFace in -lcompface" >&5 7122 echo "configure:7123: checking for UnGenFace in -lcompface" >&5
7098 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7123 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7099 7124
7100 xe_check_libs=" -lcompface " 7125 xe_check_libs=" -lcompface "
7101 cat > conftest.$ac_ext <<EOF 7126 cat > conftest.$ac_ext <<EOF
7102 #line 7103 "configure" 7127 #line 7128 "configure"
7103 #include "confdefs.h" 7128 #include "confdefs.h"
7104 /* Override any gcc2 internal prototype to avoid an error. */ 7129 /* Override any gcc2 internal prototype to avoid an error. */
7105 /* We use char because int might match the return type of a gcc2 7130 /* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */ 7131 builtin and then its argument prototype would still apply. */
7107 char UnGenFace(); 7132 char UnGenFace();
7108 7133
7109 int main() { 7134 int main() {
7110 UnGenFace() 7135 UnGenFace()
7111 ; return 0; } 7136 ; return 0; }
7112 EOF 7137 EOF
7113 if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7138 if { (eval echo configure:7139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7114 rm -rf conftest* 7139 rm -rf conftest*
7115 eval "ac_cv_lib_$ac_lib_var=yes" 7140 eval "ac_cv_lib_$ac_lib_var=yes"
7116 else 7141 else
7117 echo "configure: failed program was:" >&5 7142 echo "configure: failed program was:" >&5
7118 cat conftest.$ac_ext >&5 7143 cat conftest.$ac_ext >&5
7144 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 7169 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7145 fi 7170 fi
7146 7171
7147 7172
7148 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 7173 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7149 echo "configure:7150: checking for XawScrollbarSetThumb in -lXaw" >&5 7174 echo "configure:7175: checking for XawScrollbarSetThumb in -lXaw" >&5
7150 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7175 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7151 7176
7152 xe_check_libs=" -lXaw " 7177 xe_check_libs=" -lXaw "
7153 cat > conftest.$ac_ext <<EOF 7178 cat > conftest.$ac_ext <<EOF
7154 #line 7155 "configure" 7179 #line 7180 "configure"
7155 #include "confdefs.h" 7180 #include "confdefs.h"
7156 /* Override any gcc2 internal prototype to avoid an error. */ 7181 /* Override any gcc2 internal prototype to avoid an error. */
7157 /* We use char because int might match the return type of a gcc2 7182 /* We use char because int might match the return type of a gcc2
7158 builtin and then its argument prototype would still apply. */ 7183 builtin and then its argument prototype would still apply. */
7159 char XawScrollbarSetThumb(); 7184 char XawScrollbarSetThumb();
7160 7185
7161 int main() { 7186 int main() {
7162 XawScrollbarSetThumb() 7187 XawScrollbarSetThumb()
7163 ; return 0; } 7188 ; return 0; }
7164 EOF 7189 EOF
7165 if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7190 if { (eval echo configure:7191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7166 rm -rf conftest* 7191 rm -rf conftest*
7167 eval "ac_cv_lib_$ac_lib_var=yes" 7192 eval "ac_cv_lib_$ac_lib_var=yes"
7168 else 7193 else
7169 echo "configure: failed program was:" >&5 7194 echo "configure: failed program was:" >&5
7170 cat conftest.$ac_ext >&5 7195 cat conftest.$ac_ext >&5
7184 7209
7185 7210
7186 7211
7187 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 7212 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7188 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 7213 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7189 echo "configure:7190: checking for Xm/Xm.h" >&5 7214 echo "configure:7215: checking for Xm/Xm.h" >&5
7190 7215
7191 cat > conftest.$ac_ext <<EOF 7216 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure" 7217 #line 7218 "configure"
7193 #include "confdefs.h" 7218 #include "confdefs.h"
7194 #include <Xm/Xm.h> 7219 #include <Xm/Xm.h>
7195 EOF 7220 EOF
7196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7197 { (eval echo configure:7198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7222 { (eval echo configure:7223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7198 ac_err=`grep -v '^ *+' conftest.out` 7223 ac_err=`grep -v '^ *+' conftest.out`
7199 if test -z "$ac_err"; then 7224 if test -z "$ac_err"; then
7200 rm -rf conftest* 7225 rm -rf conftest*
7201 eval "ac_cv_header_$ac_safe=yes" 7226 eval "ac_cv_header_$ac_safe=yes"
7202 else 7227 else
7209 rm -f conftest* 7234 rm -f conftest*
7210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7211 echo "$ac_t""yes" 1>&6 7236 echo "$ac_t""yes" 1>&6
7212 7237
7213 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 7238 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7214 echo "configure:7215: checking for XmStringFree in -lXm" >&5 7239 echo "configure:7240: checking for XmStringFree in -lXm" >&5
7215 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 7240 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7216 7241
7217 xe_check_libs=" -lXm " 7242 xe_check_libs=" -lXm "
7218 cat > conftest.$ac_ext <<EOF 7243 cat > conftest.$ac_ext <<EOF
7219 #line 7220 "configure" 7244 #line 7245 "configure"
7220 #include "confdefs.h" 7245 #include "confdefs.h"
7221 /* Override any gcc2 internal prototype to avoid an error. */ 7246 /* Override any gcc2 internal prototype to avoid an error. */
7222 /* We use char because int might match the return type of a gcc2 7247 /* We use char because int might match the return type of a gcc2
7223 builtin and then its argument prototype would still apply. */ 7248 builtin and then its argument prototype would still apply. */
7224 char XmStringFree(); 7249 char XmStringFree();
7225 7250
7226 int main() { 7251 int main() {
7227 XmStringFree() 7252 XmStringFree()
7228 ; return 0; } 7253 ; return 0; }
7229 EOF 7254 EOF
7230 if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7231 rm -rf conftest* 7256 rm -rf conftest*
7232 eval "ac_cv_lib_$ac_lib_var=yes" 7257 eval "ac_cv_lib_$ac_lib_var=yes"
7233 else 7258 else
7234 echo "configure: failed program was:" >&5 7259 echo "configure: failed program was:" >&5
7235 cat conftest.$ac_ext >&5 7260 cat conftest.$ac_ext >&5
7254 fi 7279 fi
7255 7280
7256 7281
7257 if test "$have_motif" = "yes"; then 7282 if test "$have_motif" = "yes"; then
7258 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 7283 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7259 echo "configure:7260: checking for Lesstif" >&5 7284 echo "configure:7285: checking for Lesstif" >&5
7260 cat > conftest.$ac_ext <<EOF 7285 cat > conftest.$ac_ext <<EOF
7261 #line 7262 "configure" 7286 #line 7287 "configure"
7262 #include "confdefs.h" 7287 #include "confdefs.h"
7263 #include <Xm/Xm.h> 7288 #include <Xm/Xm.h>
7264 #ifdef LESSTIF_VERSION 7289 #ifdef LESSTIF_VERSION
7265 yes 7290 yes
7266 #endif 7291 #endif
7540 fi 7565 fi
7541 fi 7566 fi
7542 7567
7543 if test "$with_mule" = "yes" ; then 7568 if test "$with_mule" = "yes" ; then
7544 echo "checking for Mule-related features" 1>&6 7569 echo "checking for Mule-related features" 1>&6
7545 echo "configure:7546: checking for Mule-related features" >&5 7570 echo "configure:7571: checking for Mule-related features" >&5
7546 { test "$extra_verbose" = "yes" && cat << \EOF 7571 { test "$extra_verbose" = "yes" && cat << \EOF
7547 Defining MULE 7572 Defining MULE
7548 EOF 7573 EOF
7549 cat >> confdefs.h <<\EOF 7574 cat >> confdefs.h <<\EOF
7550 #define MULE 1 7575 #define MULE 1
7565 7590
7566 for ac_hdr in libintl.h 7591 for ac_hdr in libintl.h
7567 do 7592 do
7568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7569 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7570 echo "configure:7571: checking for $ac_hdr" >&5 7595 echo "configure:7596: checking for $ac_hdr" >&5
7571 7596
7572 cat > conftest.$ac_ext <<EOF 7597 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure" 7598 #line 7599 "configure"
7574 #include "confdefs.h" 7599 #include "confdefs.h"
7575 #include <$ac_hdr> 7600 #include <$ac_hdr>
7576 EOF 7601 EOF
7577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7578 { (eval echo configure:7579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7603 { (eval echo configure:7604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7579 ac_err=`grep -v '^ *+' conftest.out` 7604 ac_err=`grep -v '^ *+' conftest.out`
7580 if test -z "$ac_err"; then 7605 if test -z "$ac_err"; then
7581 rm -rf conftest* 7606 rm -rf conftest*
7582 eval "ac_cv_header_$ac_safe=yes" 7607 eval "ac_cv_header_$ac_safe=yes"
7583 else 7608 else
7604 fi 7629 fi
7605 done 7630 done
7606 7631
7607 7632
7608 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 7633 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7609 echo "configure:7610: checking for strerror in -lintl" >&5 7634 echo "configure:7635: checking for strerror in -lintl" >&5
7610 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 7635 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7611 7636
7612 xe_check_libs=" -lintl " 7637 xe_check_libs=" -lintl "
7613 cat > conftest.$ac_ext <<EOF 7638 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure" 7639 #line 7640 "configure"
7615 #include "confdefs.h" 7640 #include "confdefs.h"
7616 /* Override any gcc2 internal prototype to avoid an error. */ 7641 /* Override any gcc2 internal prototype to avoid an error. */
7617 /* We use char because int might match the return type of a gcc2 7642 /* We use char because int might match the return type of a gcc2
7618 builtin and then its argument prototype would still apply. */ 7643 builtin and then its argument prototype would still apply. */
7619 char strerror(); 7644 char strerror();
7620 7645
7621 int main() { 7646 int main() {
7622 strerror() 7647 strerror()
7623 ; return 0; } 7648 ; return 0; }
7624 EOF 7649 EOF
7625 if { (eval echo configure:7626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7650 if { (eval echo configure:7651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7626 rm -rf conftest* 7651 rm -rf conftest*
7627 eval "ac_cv_lib_$ac_lib_var=yes" 7652 eval "ac_cv_lib_$ac_lib_var=yes"
7628 else 7653 else
7629 echo "configure: failed program was:" >&5 7654 echo "configure: failed program was:" >&5
7630 cat conftest.$ac_ext >&5 7655 cat conftest.$ac_ext >&5
7653 fi 7678 fi
7654 7679
7655 7680
7656 7681
7657 echo "checking for Mule input methods" 1>&6 7682 echo "checking for Mule input methods" 1>&6
7658 echo "configure:7659: checking for Mule input methods" >&5 7683 echo "configure:7684: checking for Mule input methods" >&5
7659 case "$with_xim" in "" | "yes" ) 7684 case "$with_xim" in "" | "yes" )
7660 echo "checking for XIM" 1>&6 7685 echo "checking for XIM" 1>&6
7661 echo "configure:7662: checking for XIM" >&5 7686 echo "configure:7687: checking for XIM" >&5
7662 if test "$have_lesstif" = "yes"; then with_xim=xlib 7687 if test "$have_lesstif" = "yes"; then with_xim=xlib
7663 else 7688 else
7664 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 7689 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7665 echo "configure:7666: checking for XmImMbLookupString in -lXm" >&5 7690 echo "configure:7691: checking for XmImMbLookupString in -lXm" >&5
7666 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 7691 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7667 7692
7668 xe_check_libs=" -lXm " 7693 xe_check_libs=" -lXm "
7669 cat > conftest.$ac_ext <<EOF 7694 cat > conftest.$ac_ext <<EOF
7670 #line 7671 "configure" 7695 #line 7696 "configure"
7671 #include "confdefs.h" 7696 #include "confdefs.h"
7672 /* Override any gcc2 internal prototype to avoid an error. */ 7697 /* Override any gcc2 internal prototype to avoid an error. */
7673 /* We use char because int might match the return type of a gcc2 7698 /* We use char because int might match the return type of a gcc2
7674 builtin and then its argument prototype would still apply. */ 7699 builtin and then its argument prototype would still apply. */
7675 char XmImMbLookupString(); 7700 char XmImMbLookupString();
7676 7701
7677 int main() { 7702 int main() {
7678 XmImMbLookupString() 7703 XmImMbLookupString()
7679 ; return 0; } 7704 ; return 0; }
7680 EOF 7705 EOF
7681 if { (eval echo configure:7682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7706 if { (eval echo configure:7707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7682 rm -rf conftest* 7707 rm -rf conftest*
7683 eval "ac_cv_lib_$ac_lib_var=yes" 7708 eval "ac_cv_lib_$ac_lib_var=yes"
7684 else 7709 else
7685 echo "configure: failed program was:" >&5 7710 echo "configure: failed program was:" >&5
7686 cat conftest.$ac_ext >&5 7711 cat conftest.$ac_ext >&5
7742 fi 7767 fi
7743 fi 7768 fi
7744 7769
7745 if test "$with_xfs" = "yes" ; then 7770 if test "$with_xfs" = "yes" ; then
7746 echo "checking for XFontSet" 1>&6 7771 echo "checking for XFontSet" 1>&6
7747 echo "configure:7748: checking for XFontSet" >&5 7772 echo "configure:7773: checking for XFontSet" >&5
7748 7773
7749 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 7774 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7750 echo "configure:7751: checking for XmbDrawString in -lX11" >&5 7775 echo "configure:7776: checking for XmbDrawString in -lX11" >&5
7751 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 7776 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7752 7777
7753 xe_check_libs=" -lX11 " 7778 xe_check_libs=" -lX11 "
7754 cat > conftest.$ac_ext <<EOF 7779 cat > conftest.$ac_ext <<EOF
7755 #line 7756 "configure" 7780 #line 7781 "configure"
7756 #include "confdefs.h" 7781 #include "confdefs.h"
7757 /* Override any gcc2 internal prototype to avoid an error. */ 7782 /* Override any gcc2 internal prototype to avoid an error. */
7758 /* We use char because int might match the return type of a gcc2 7783 /* We use char because int might match the return type of a gcc2
7759 builtin and then its argument prototype would still apply. */ 7784 builtin and then its argument prototype would still apply. */
7760 char XmbDrawString(); 7785 char XmbDrawString();
7761 7786
7762 int main() { 7787 int main() {
7763 XmbDrawString() 7788 XmbDrawString()
7764 ; return 0; } 7789 ; return 0; }
7765 EOF 7790 EOF
7766 if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7791 if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7767 rm -rf conftest* 7792 rm -rf conftest*
7768 eval "ac_cv_lib_$ac_lib_var=yes" 7793 eval "ac_cv_lib_$ac_lib_var=yes"
7769 else 7794 else
7770 echo "configure: failed program was:" >&5 7795 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5 7796 cat conftest.$ac_ext >&5
7801 fi 7826 fi
7802 fi 7827 fi
7803 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 7828 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
7804 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 7829 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7805 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 7830 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7806 echo "configure:7807: checking for wnn/jllib.h" >&5 7831 echo "configure:7832: checking for wnn/jllib.h" >&5
7807 7832
7808 cat > conftest.$ac_ext <<EOF 7833 cat > conftest.$ac_ext <<EOF
7809 #line 7810 "configure" 7834 #line 7835 "configure"
7810 #include "confdefs.h" 7835 #include "confdefs.h"
7811 #include <wnn/jllib.h> 7836 #include <wnn/jllib.h>
7812 EOF 7837 EOF
7813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7814 { (eval echo configure:7815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7839 { (eval echo configure:7840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7815 ac_err=`grep -v '^ *+' conftest.out` 7840 ac_err=`grep -v '^ *+' conftest.out`
7816 if test -z "$ac_err"; then 7841 if test -z "$ac_err"; then
7817 rm -rf conftest* 7842 rm -rf conftest*
7818 eval "ac_cv_header_$ac_safe=yes" 7843 eval "ac_cv_header_$ac_safe=yes"
7819 else 7844 else
7834 } 7859 }
7835 if test "$with_wnn" != "no"; then 7860 if test "$with_wnn" != "no"; then
7836 for ac_func in crypt 7861 for ac_func in crypt
7837 do 7862 do
7838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7839 echo "configure:7840: checking for $ac_func" >&5 7864 echo "configure:7865: checking for $ac_func" >&5
7840 7865
7841 cat > conftest.$ac_ext <<EOF 7866 cat > conftest.$ac_ext <<EOF
7842 #line 7843 "configure" 7867 #line 7868 "configure"
7843 #include "confdefs.h" 7868 #include "confdefs.h"
7844 /* System header to define __stub macros and hopefully few prototypes, 7869 /* System header to define __stub macros and hopefully few prototypes,
7845 which can conflict with char $ac_func(); below. */ 7870 which can conflict with char $ac_func(); below. */
7846 #include <assert.h> 7871 #include <assert.h>
7847 /* Override any gcc2 internal prototype to avoid an error. */ 7872 /* Override any gcc2 internal prototype to avoid an error. */
7860 $ac_func(); 7885 $ac_func();
7861 #endif 7886 #endif
7862 7887
7863 ; return 0; } 7888 ; return 0; }
7864 EOF 7889 EOF
7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7890 if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7866 rm -rf conftest* 7891 rm -rf conftest*
7867 eval "ac_cv_func_$ac_func=yes" 7892 eval "ac_cv_func_$ac_func=yes"
7868 else 7893 else
7869 echo "configure: failed program was:" >&5 7894 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5 7895 cat conftest.$ac_ext >&5
7889 fi 7914 fi
7890 done 7915 done
7891 7916
7892 test "$ac_cv_func_crypt" != "yes" && { 7917 test "$ac_cv_func_crypt" != "yes" && {
7893 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7918 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7894 echo "configure:7895: checking for crypt in -lcrypt" >&5 7919 echo "configure:7920: checking for crypt in -lcrypt" >&5
7895 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7920 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7896 7921
7897 xe_check_libs=" -lcrypt " 7922 xe_check_libs=" -lcrypt "
7898 cat > conftest.$ac_ext <<EOF 7923 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure" 7924 #line 7925 "configure"
7900 #include "confdefs.h" 7925 #include "confdefs.h"
7901 /* Override any gcc2 internal prototype to avoid an error. */ 7926 /* Override any gcc2 internal prototype to avoid an error. */
7902 /* We use char because int might match the return type of a gcc2 7927 /* We use char because int might match the return type of a gcc2
7903 builtin and then its argument prototype would still apply. */ 7928 builtin and then its argument prototype would still apply. */
7904 char crypt(); 7929 char crypt();
7905 7930
7906 int main() { 7931 int main() {
7907 crypt() 7932 crypt()
7908 ; return 0; } 7933 ; return 0; }
7909 EOF 7934 EOF
7910 if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7935 if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7911 rm -rf conftest* 7936 rm -rf conftest*
7912 eval "ac_cv_lib_$ac_lib_var=yes" 7937 eval "ac_cv_lib_$ac_lib_var=yes"
7913 else 7938 else
7914 echo "configure: failed program was:" >&5 7939 echo "configure: failed program was:" >&5
7915 cat conftest.$ac_ext >&5 7940 cat conftest.$ac_ext >&5
7939 7964
7940 } 7965 }
7941 fi 7966 fi
7942 test -z "$with_wnn" && { 7967 test -z "$with_wnn" && {
7943 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7968 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7944 echo "configure:7945: checking for jl_dic_list_e in -lwnn" >&5 7969 echo "configure:7970: checking for jl_dic_list_e in -lwnn" >&5
7945 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7970 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7946 7971
7947 xe_check_libs=" -lwnn " 7972 xe_check_libs=" -lwnn "
7948 cat > conftest.$ac_ext <<EOF 7973 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure" 7974 #line 7975 "configure"
7950 #include "confdefs.h" 7975 #include "confdefs.h"
7951 /* Override any gcc2 internal prototype to avoid an error. */ 7976 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2 7977 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */ 7978 builtin and then its argument prototype would still apply. */
7954 char jl_dic_list_e(); 7979 char jl_dic_list_e();
7955 7980
7956 int main() { 7981 int main() {
7957 jl_dic_list_e() 7982 jl_dic_list_e()
7958 ; return 0; } 7983 ; return 0; }
7959 EOF 7984 EOF
7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7985 if { (eval echo configure:7986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7961 rm -rf conftest* 7986 rm -rf conftest*
7962 eval "ac_cv_lib_$ac_lib_var=yes" 7987 eval "ac_cv_lib_$ac_lib_var=yes"
7963 else 7988 else
7964 echo "configure: failed program was:" >&5 7989 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5 7990 cat conftest.$ac_ext >&5
7993 echo " xemacs will be linked with \"mule-wnnfns.o\"" 8018 echo " xemacs will be linked with \"mule-wnnfns.o\""
7994 fi 8019 fi
7995 if test "$with_wnn6" != "no"; then 8020 if test "$with_wnn6" != "no"; then
7996 8021
7997 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 8022 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7998 echo "configure:7999: checking for jl_fi_dic_list in -lwnn" >&5 8023 echo "configure:8024: checking for jl_fi_dic_list in -lwnn" >&5
7999 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 8024 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8000 8025
8001 xe_check_libs=" -lwnn " 8026 xe_check_libs=" -lwnn "
8002 cat > conftest.$ac_ext <<EOF 8027 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure" 8028 #line 8029 "configure"
8004 #include "confdefs.h" 8029 #include "confdefs.h"
8005 /* Override any gcc2 internal prototype to avoid an error. */ 8030 /* Override any gcc2 internal prototype to avoid an error. */
8006 /* We use char because int might match the return type of a gcc2 8031 /* We use char because int might match the return type of a gcc2
8007 builtin and then its argument prototype would still apply. */ 8032 builtin and then its argument prototype would still apply. */
8008 char jl_fi_dic_list(); 8033 char jl_fi_dic_list();
8009 8034
8010 int main() { 8035 int main() {
8011 jl_fi_dic_list() 8036 jl_fi_dic_list()
8012 ; return 0; } 8037 ; return 0; }
8013 EOF 8038 EOF
8014 if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8039 if { (eval echo configure:8040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8015 rm -rf conftest* 8040 rm -rf conftest*
8016 eval "ac_cv_lib_$ac_lib_var=yes" 8041 eval "ac_cv_lib_$ac_lib_var=yes"
8017 else 8042 else
8018 echo "configure: failed program was:" >&5 8043 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5 8044 cat conftest.$ac_ext >&5
8044 8069
8045 canna_includes_found=no 8070 canna_includes_found=no
8046 if test "$with_canna" != "no"; then 8071 if test "$with_canna" != "no"; then
8047 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8072 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8048 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8073 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8049 echo "configure:8050: checking for canna/jrkanji.h" >&5 8074 echo "configure:8075: checking for canna/jrkanji.h" >&5
8050 8075
8051 cat > conftest.$ac_ext <<EOF 8076 cat > conftest.$ac_ext <<EOF
8052 #line 8053 "configure" 8077 #line 8078 "configure"
8053 #include "confdefs.h" 8078 #include "confdefs.h"
8054 #include <canna/jrkanji.h> 8079 #include <canna/jrkanji.h>
8055 EOF 8080 EOF
8056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8057 { (eval echo configure:8058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8082 { (eval echo configure:8083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8058 ac_err=`grep -v '^ *+' conftest.out` 8083 ac_err=`grep -v '^ *+' conftest.out`
8059 if test -z "$ac_err"; then 8084 if test -z "$ac_err"; then
8060 rm -rf conftest* 8085 rm -rf conftest*
8061 eval "ac_cv_header_$ac_safe=yes" 8086 eval "ac_cv_header_$ac_safe=yes"
8062 else 8087 else
8079 -d "/usr/local/canna/include"; then 8104 -d "/usr/local/canna/include"; then
8080 save_c_switch_site="$c_switch_site" 8105 save_c_switch_site="$c_switch_site"
8081 c_switch_site="$c_switch_site -I/usr/local/canna/include" 8106 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8082 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8107 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8083 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8108 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8084 echo "configure:8085: checking for canna/jrkanji.h" >&5 8109 echo "configure:8110: checking for canna/jrkanji.h" >&5
8085 8110
8086 cat > conftest.$ac_ext <<EOF 8111 cat > conftest.$ac_ext <<EOF
8087 #line 8088 "configure" 8112 #line 8113 "configure"
8088 #include "confdefs.h" 8113 #include "confdefs.h"
8089 #include <canna/jrkanji.h> 8114 #include <canna/jrkanji.h>
8090 EOF 8115 EOF
8091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8092 { (eval echo configure:8093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8117 { (eval echo configure:8118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8093 ac_err=`grep -v '^ *+' conftest.out` 8118 ac_err=`grep -v '^ *+' conftest.out`
8094 if test -z "$ac_err"; then 8119 if test -z "$ac_err"; then
8095 rm -rf conftest* 8120 rm -rf conftest*
8096 eval "ac_cv_header_$ac_safe=yes" 8121 eval "ac_cv_header_$ac_safe=yes"
8097 else 8122 else
8115 fi 8140 fi
8116 fi 8141 fi
8117 8142
8118 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 8143 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8119 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 8144 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8120 echo "configure:8121: checking for canna/RK.h" >&5 8145 echo "configure:8146: checking for canna/RK.h" >&5
8121 8146
8122 cat > conftest.$ac_ext <<EOF 8147 cat > conftest.$ac_ext <<EOF
8123 #line 8124 "configure" 8148 #line 8149 "configure"
8124 #include "confdefs.h" 8149 #include "confdefs.h"
8125 #include <canna/RK.h> 8150 #include <canna/RK.h>
8126 EOF 8151 EOF
8127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8128 { (eval echo configure:8129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8153 { (eval echo configure:8154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8129 ac_err=`grep -v '^ *+' conftest.out` 8154 ac_err=`grep -v '^ *+' conftest.out`
8130 if test -z "$ac_err"; then 8155 if test -z "$ac_err"; then
8131 rm -rf conftest* 8156 rm -rf conftest*
8132 eval "ac_cv_header_$ac_safe=yes" 8157 eval "ac_cv_header_$ac_safe=yes"
8133 else 8158 else
8146 with_canna=no 8171 with_canna=no
8147 fi 8172 fi
8148 } 8173 }
8149 test -z "$with_canna" && { 8174 test -z "$with_canna" && {
8150 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 8175 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8151 echo "configure:8152: checking for RkBgnBun in -lRKC" >&5 8176 echo "configure:8177: checking for RkBgnBun in -lRKC" >&5
8152 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 8177 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8153 8178
8154 xe_check_libs=" -lRKC " 8179 xe_check_libs=" -lRKC "
8155 cat > conftest.$ac_ext <<EOF 8180 cat > conftest.$ac_ext <<EOF
8156 #line 8157 "configure" 8181 #line 8182 "configure"
8157 #include "confdefs.h" 8182 #include "confdefs.h"
8158 /* Override any gcc2 internal prototype to avoid an error. */ 8183 /* Override any gcc2 internal prototype to avoid an error. */
8159 /* We use char because int might match the return type of a gcc2 8184 /* We use char because int might match the return type of a gcc2
8160 builtin and then its argument prototype would still apply. */ 8185 builtin and then its argument prototype would still apply. */
8161 char RkBgnBun(); 8186 char RkBgnBun();
8162 8187
8163 int main() { 8188 int main() {
8164 RkBgnBun() 8189 RkBgnBun()
8165 ; return 0; } 8190 ; return 0; }
8166 EOF 8191 EOF
8167 if { (eval echo configure:8168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8192 if { (eval echo configure:8193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8168 rm -rf conftest* 8193 rm -rf conftest*
8169 eval "ac_cv_lib_$ac_lib_var=yes" 8194 eval "ac_cv_lib_$ac_lib_var=yes"
8170 else 8195 else
8171 echo "configure: failed program was:" >&5 8196 echo "configure: failed program was:" >&5
8172 cat conftest.$ac_ext >&5 8197 cat conftest.$ac_ext >&5
8185 fi 8210 fi
8186 8211
8187 } 8212 }
8188 test -z "$with_canna" && { 8213 test -z "$with_canna" && {
8189 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 8214 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8190 echo "configure:8191: checking for jrKanjiControl in -lcanna" >&5 8215 echo "configure:8216: checking for jrKanjiControl in -lcanna" >&5
8191 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 8216 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8192 8217
8193 xe_check_libs=" -lcanna " 8218 xe_check_libs=" -lcanna "
8194 cat > conftest.$ac_ext <<EOF 8219 cat > conftest.$ac_ext <<EOF
8195 #line 8196 "configure" 8220 #line 8221 "configure"
8196 #include "confdefs.h" 8221 #include "confdefs.h"
8197 /* Override any gcc2 internal prototype to avoid an error. */ 8222 /* Override any gcc2 internal prototype to avoid an error. */
8198 /* We use char because int might match the return type of a gcc2 8223 /* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */ 8224 builtin and then its argument prototype would still apply. */
8200 char jrKanjiControl(); 8225 char jrKanjiControl();
8201 8226
8202 int main() { 8227 int main() {
8203 jrKanjiControl() 8228 jrKanjiControl()
8204 ; return 0; } 8229 ; return 0; }
8205 EOF 8230 EOF
8206 if { (eval echo configure:8207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8231 if { (eval echo configure:8232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8207 rm -rf conftest* 8232 rm -rf conftest*
8208 eval "ac_cv_lib_$ac_lib_var=yes" 8233 eval "ac_cv_lib_$ac_lib_var=yes"
8209 else 8234 else
8210 echo "configure: failed program was:" >&5 8235 echo "configure: failed program was:" >&5
8211 cat conftest.$ac_ext >&5 8236 cat conftest.$ac_ext >&5
8250 8275
8251 if test "$need_motif" = "yes" ; then 8276 if test "$need_motif" = "yes" ; then
8252 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 8277 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8253 8278
8254 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 8279 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8255 echo "configure:8256: checking for layout_object_getvalue in -li18n" >&5 8280 echo "configure:8281: checking for layout_object_getvalue in -li18n" >&5
8256 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 8281 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8257 8282
8258 xe_check_libs=" -li18n " 8283 xe_check_libs=" -li18n "
8259 cat > conftest.$ac_ext <<EOF 8284 cat > conftest.$ac_ext <<EOF
8260 #line 8261 "configure" 8285 #line 8286 "configure"
8261 #include "confdefs.h" 8286 #include "confdefs.h"
8262 /* Override any gcc2 internal prototype to avoid an error. */ 8287 /* Override any gcc2 internal prototype to avoid an error. */
8263 /* We use char because int might match the return type of a gcc2 8288 /* We use char because int might match the return type of a gcc2
8264 builtin and then its argument prototype would still apply. */ 8289 builtin and then its argument prototype would still apply. */
8265 char layout_object_getvalue(); 8290 char layout_object_getvalue();
8266 8291
8267 int main() { 8292 int main() {
8268 layout_object_getvalue() 8293 layout_object_getvalue()
8269 ; return 0; } 8294 ; return 0; }
8270 EOF 8295 EOF
8271 if { (eval echo configure:8272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8296 if { (eval echo configure:8297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8272 rm -rf conftest* 8297 rm -rf conftest*
8273 eval "ac_cv_lib_$ac_lib_var=yes" 8298 eval "ac_cv_lib_$ac_lib_var=yes"
8274 else 8299 else
8275 echo "configure: failed program was:" >&5 8300 echo "configure: failed program was:" >&5
8276 cat conftest.$ac_ext >&5 8301 cat conftest.$ac_ext >&5
8352 fi 8377 fi
8353 8378
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 8379 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
8355 do 8380 do
8356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8357 echo "configure:8358: checking for $ac_func" >&5 8382 echo "configure:8383: checking for $ac_func" >&5
8358 8383
8359 cat > conftest.$ac_ext <<EOF 8384 cat > conftest.$ac_ext <<EOF
8360 #line 8361 "configure" 8385 #line 8386 "configure"
8361 #include "confdefs.h" 8386 #include "confdefs.h"
8362 /* System header to define __stub macros and hopefully few prototypes, 8387 /* System header to define __stub macros and hopefully few prototypes,
8363 which can conflict with char $ac_func(); below. */ 8388 which can conflict with char $ac_func(); below. */
8364 #include <assert.h> 8389 #include <assert.h>
8365 /* Override any gcc2 internal prototype to avoid an error. */ 8390 /* Override any gcc2 internal prototype to avoid an error. */
8378 $ac_func(); 8403 $ac_func();
8379 #endif 8404 #endif
8380 8405
8381 ; return 0; } 8406 ; return 0; }
8382 EOF 8407 EOF
8383 if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8408 if { (eval echo configure:8409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8384 rm -rf conftest* 8409 rm -rf conftest*
8385 eval "ac_cv_func_$ac_func=yes" 8410 eval "ac_cv_func_$ac_func=yes"
8386 else 8411 else
8387 echo "configure: failed program was:" >&5 8412 echo "configure: failed program was:" >&5
8388 cat conftest.$ac_ext >&5 8413 cat conftest.$ac_ext >&5
8415 fi ;; 8440 fi ;;
8416 * ) 8441 * )
8417 for ac_func in realpath 8442 for ac_func in realpath
8418 do 8443 do
8419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8420 echo "configure:8421: checking for $ac_func" >&5 8445 echo "configure:8446: checking for $ac_func" >&5
8421 8446
8422 cat > conftest.$ac_ext <<EOF 8447 cat > conftest.$ac_ext <<EOF
8423 #line 8424 "configure" 8448 #line 8449 "configure"
8424 #include "confdefs.h" 8449 #include "confdefs.h"
8425 /* System header to define __stub macros and hopefully few prototypes, 8450 /* System header to define __stub macros and hopefully few prototypes,
8426 which can conflict with char $ac_func(); below. */ 8451 which can conflict with char $ac_func(); below. */
8427 #include <assert.h> 8452 #include <assert.h>
8428 /* Override any gcc2 internal prototype to avoid an error. */ 8453 /* Override any gcc2 internal prototype to avoid an error. */
8441 $ac_func(); 8466 $ac_func();
8442 #endif 8467 #endif
8443 8468
8444 ; return 0; } 8469 ; return 0; }
8445 EOF 8470 EOF
8446 if { (eval echo configure:8447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8471 if { (eval echo configure:8472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8447 rm -rf conftest* 8472 rm -rf conftest*
8448 eval "ac_cv_func_$ac_func=yes" 8473 eval "ac_cv_func_$ac_func=yes"
8449 else 8474 else
8450 echo "configure: failed program was:" >&5 8475 echo "configure: failed program was:" >&5
8451 cat conftest.$ac_ext >&5 8476 cat conftest.$ac_ext >&5
8474 echo " xemacs will be linked with \"realpath.o\"" 8499 echo " xemacs will be linked with \"realpath.o\""
8475 fi ;; 8500 fi ;;
8476 esac 8501 esac
8477 8502
8478 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 8503 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8479 echo "configure:8480: checking whether netdb declares h_errno" >&5 8504 echo "configure:8505: checking whether netdb declares h_errno" >&5
8480 cat > conftest.$ac_ext <<EOF 8505 cat > conftest.$ac_ext <<EOF
8481 #line 8482 "configure" 8506 #line 8507 "configure"
8482 #include "confdefs.h" 8507 #include "confdefs.h"
8483 #include <netdb.h> 8508 #include <netdb.h>
8484 int main() { 8509 int main() {
8485 return h_errno; 8510 return h_errno;
8486 ; return 0; } 8511 ; return 0; }
8487 EOF 8512 EOF
8488 if { (eval echo configure:8489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8513 if { (eval echo configure:8514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8489 rm -rf conftest* 8514 rm -rf conftest*
8490 echo "$ac_t""yes" 1>&6 8515 echo "$ac_t""yes" 1>&6
8491 { test "$extra_verbose" = "yes" && cat << \EOF 8516 { test "$extra_verbose" = "yes" && cat << \EOF
8492 Defining HAVE_H_ERRNO 8517 Defining HAVE_H_ERRNO
8493 EOF 8518 EOF
8503 echo "$ac_t""no" 1>&6 8528 echo "$ac_t""no" 1>&6
8504 fi 8529 fi
8505 rm -f conftest* 8530 rm -f conftest*
8506 8531
8507 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 8532 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8508 echo "configure:8509: checking for sigsetjmp" >&5 8533 echo "configure:8534: checking for sigsetjmp" >&5
8509 cat > conftest.$ac_ext <<EOF 8534 cat > conftest.$ac_ext <<EOF
8510 #line 8511 "configure" 8535 #line 8536 "configure"
8511 #include "confdefs.h" 8536 #include "confdefs.h"
8512 #include <setjmp.h> 8537 #include <setjmp.h>
8513 int main() { 8538 int main() {
8514 sigjmp_buf bar; sigsetjmp (bar, 0); 8539 sigjmp_buf bar; sigsetjmp (bar, 0);
8515 ; return 0; } 8540 ; return 0; }
8516 EOF 8541 EOF
8517 if { (eval echo configure:8518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8542 if { (eval echo configure:8543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8518 rm -rf conftest* 8543 rm -rf conftest*
8519 echo "$ac_t""yes" 1>&6 8544 echo "$ac_t""yes" 1>&6
8520 { test "$extra_verbose" = "yes" && cat << \EOF 8545 { test "$extra_verbose" = "yes" && cat << \EOF
8521 Defining HAVE_SIGSETJMP 8546 Defining HAVE_SIGSETJMP
8522 EOF 8547 EOF
8532 echo "$ac_t""no" 1>&6 8557 echo "$ac_t""no" 1>&6
8533 fi 8558 fi
8534 rm -f conftest* 8559 rm -f conftest*
8535 8560
8536 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8561 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8537 echo "configure:8538: checking whether localtime caches TZ" >&5 8562 echo "configure:8563: checking whether localtime caches TZ" >&5
8538 8563
8539 if test "$ac_cv_func_tzset" = "yes"; then 8564 if test "$ac_cv_func_tzset" = "yes"; then
8540 cat > conftest.$ac_ext <<EOF 8565 cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure" 8566 #line 8567 "configure"
8542 #include "confdefs.h" 8567 #include "confdefs.h"
8543 #include <time.h> 8568 #include <time.h>
8544 #if STDC_HEADERS 8569 #if STDC_HEADERS
8545 # include <stdlib.h> 8570 # include <stdlib.h>
8546 #endif 8571 #endif
8571 if (localtime (&now)->tm_hour != hour_unset) 8596 if (localtime (&now)->tm_hour != hour_unset)
8572 exit (1); 8597 exit (1);
8573 exit (0); 8598 exit (0);
8574 } 8599 }
8575 EOF 8600 EOF
8576 if { (eval echo configure:8577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8601 if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8577 then 8602 then
8578 emacs_cv_localtime_cache=no 8603 emacs_cv_localtime_cache=no
8579 else 8604 else
8605 conftest_rc="$?"
8580 echo "configure: failed program was:" >&5 8606 echo "configure: failed program was:" >&5
8581 cat conftest.$ac_ext >&5 8607 cat conftest.$ac_ext >&5
8582 rm -fr conftest* 8608 rm -fr conftest*
8583 emacs_cv_localtime_cache=yes 8609 emacs_cv_localtime_cache=yes
8584 fi 8610 fi
8600 8626
8601 fi 8627 fi
8602 8628
8603 if test "$HAVE_TIMEVAL" = "yes"; then 8629 if test "$HAVE_TIMEVAL" = "yes"; then
8604 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 8630 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
8605 echo "configure:8606: checking whether gettimeofday accepts one or two arguments" >&5 8631 echo "configure:8632: checking whether gettimeofday accepts one or two arguments" >&5
8606 cat > conftest.$ac_ext <<EOF 8632 cat > conftest.$ac_ext <<EOF
8607 #line 8608 "configure" 8633 #line 8634 "configure"
8608 #include "confdefs.h" 8634 #include "confdefs.h"
8609 8635
8610 #ifdef TIME_WITH_SYS_TIME 8636 #ifdef TIME_WITH_SYS_TIME
8611 #include <sys/time.h> 8637 #include <sys/time.h>
8612 #include <time.h> 8638 #include <time.h>
8624 struct timezone dummy; 8650 struct timezone dummy;
8625 gettimeofday (&time, &dummy); 8651 gettimeofday (&time, &dummy);
8626 8652
8627 ; return 0; } 8653 ; return 0; }
8628 EOF 8654 EOF
8629 if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8655 if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8630 rm -rf conftest* 8656 rm -rf conftest*
8631 echo "$ac_t""two" 1>&6 8657 echo "$ac_t""two" 1>&6
8632 else 8658 else
8633 echo "configure: failed program was:" >&5 8659 echo "configure: failed program was:" >&5
8634 cat conftest.$ac_ext >&5 8660 cat conftest.$ac_ext >&5
8646 rm -f conftest* 8672 rm -f conftest*
8647 fi 8673 fi
8648 8674
8649 8675
8650 echo $ac_n "checking for inline""... $ac_c" 1>&6 8676 echo $ac_n "checking for inline""... $ac_c" 1>&6
8651 echo "configure:8652: checking for inline" >&5 8677 echo "configure:8678: checking for inline" >&5
8652 8678
8653 ac_cv_c_inline=no 8679 ac_cv_c_inline=no
8654 for ac_kw in inline __inline__ __inline; do 8680 for ac_kw in inline __inline__ __inline; do
8655 cat > conftest.$ac_ext <<EOF 8681 cat > conftest.$ac_ext <<EOF
8656 #line 8657 "configure" 8682 #line 8683 "configure"
8657 #include "confdefs.h" 8683 #include "confdefs.h"
8658 8684
8659 int main() { 8685 int main() {
8660 } $ac_kw foo() { 8686 } $ac_kw foo() {
8661 ; return 0; } 8687 ; return 0; }
8662 EOF 8688 EOF
8663 if { (eval echo configure:8664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8689 if { (eval echo configure:8690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8664 rm -rf conftest* 8690 rm -rf conftest*
8665 ac_cv_c_inline=$ac_kw; break 8691 ac_cv_c_inline=$ac_kw; break
8666 else 8692 else
8667 echo "configure: failed program was:" >&5 8693 echo "configure: failed program was:" >&5
8668 cat conftest.$ac_ext >&5 8694 cat conftest.$ac_ext >&5
8708 8734
8709 8735
8710 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8736 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8711 # for constant arguments. Useless! 8737 # for constant arguments. Useless!
8712 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 8738 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8713 echo "configure:8714: checking for working alloca.h" >&5 8739 echo "configure:8740: checking for working alloca.h" >&5
8714 8740
8715 cat > conftest.$ac_ext <<EOF 8741 cat > conftest.$ac_ext <<EOF
8716 #line 8717 "configure" 8742 #line 8743 "configure"
8717 #include "confdefs.h" 8743 #include "confdefs.h"
8718 #include <alloca.h> 8744 #include <alloca.h>
8719 int main() { 8745 int main() {
8720 char *p = alloca(2 * sizeof(int)); 8746 char *p = alloca(2 * sizeof(int));
8721 ; return 0; } 8747 ; return 0; }
8722 EOF 8748 EOF
8723 if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8749 if { (eval echo configure:8750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8724 rm -rf conftest* 8750 rm -rf conftest*
8725 ac_cv_header_alloca_h=yes 8751 ac_cv_header_alloca_h=yes
8726 else 8752 else
8727 echo "configure: failed program was:" >&5 8753 echo "configure: failed program was:" >&5
8728 cat conftest.$ac_ext >&5 8754 cat conftest.$ac_ext >&5
8742 } 8768 }
8743 8769
8744 fi 8770 fi
8745 8771
8746 echo $ac_n "checking for alloca""... $ac_c" 1>&6 8772 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8747 echo "configure:8748: checking for alloca" >&5 8773 echo "configure:8774: checking for alloca" >&5
8748 8774
8749 cat > conftest.$ac_ext <<EOF 8775 cat > conftest.$ac_ext <<EOF
8750 #line 8751 "configure" 8776 #line 8777 "configure"
8751 #include "confdefs.h" 8777 #include "confdefs.h"
8752 8778
8753 #ifdef __GNUC__ 8779 #ifdef __GNUC__
8754 # define alloca __builtin_alloca 8780 # define alloca __builtin_alloca
8755 #else 8781 #else
8768 8794
8769 int main() { 8795 int main() {
8770 char *p = (char *) alloca(1); 8796 char *p = (char *) alloca(1);
8771 ; return 0; } 8797 ; return 0; }
8772 EOF 8798 EOF
8773 if { (eval echo configure:8774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8799 if { (eval echo configure:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8774 rm -rf conftest* 8800 rm -rf conftest*
8775 ac_cv_func_alloca_works=yes 8801 ac_cv_func_alloca_works=yes
8776 else 8802 else
8777 echo "configure: failed program was:" >&5 8803 echo "configure: failed program was:" >&5
8778 cat conftest.$ac_ext >&5 8804 cat conftest.$ac_ext >&5
8807 EOF 8833 EOF
8808 } 8834 }
8809 8835
8810 8836
8811 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 8837 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8812 echo "configure:8813: checking whether alloca needs Cray hooks" >&5 8838 echo "configure:8839: checking whether alloca needs Cray hooks" >&5
8813 8839
8814 cat > conftest.$ac_ext <<EOF 8840 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure" 8841 #line 8842 "configure"
8816 #include "confdefs.h" 8842 #include "confdefs.h"
8817 #if defined(CRAY) && ! defined(CRAY2) 8843 #if defined(CRAY) && ! defined(CRAY2)
8818 webecray 8844 webecray
8819 #else 8845 #else
8820 wenotbecray 8846 wenotbecray
8834 8860
8835 echo "$ac_t""$ac_cv_os_cray" 1>&6 8861 echo "$ac_t""$ac_cv_os_cray" 1>&6
8836 if test $ac_cv_os_cray = yes; then 8862 if test $ac_cv_os_cray = yes; then
8837 for ac_func in _getb67 GETB67 getb67; do 8863 for ac_func in _getb67 GETB67 getb67; do
8838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8839 echo "configure:8840: checking for $ac_func" >&5 8865 echo "configure:8866: checking for $ac_func" >&5
8840 8866
8841 cat > conftest.$ac_ext <<EOF 8867 cat > conftest.$ac_ext <<EOF
8842 #line 8843 "configure" 8868 #line 8869 "configure"
8843 #include "confdefs.h" 8869 #include "confdefs.h"
8844 /* System header to define __stub macros and hopefully few prototypes, 8870 /* System header to define __stub macros and hopefully few prototypes,
8845 which can conflict with char $ac_func(); below. */ 8871 which can conflict with char $ac_func(); below. */
8846 #include <assert.h> 8872 #include <assert.h>
8847 /* Override any gcc2 internal prototype to avoid an error. */ 8873 /* Override any gcc2 internal prototype to avoid an error. */
8860 $ac_func(); 8886 $ac_func();
8861 #endif 8887 #endif
8862 8888
8863 ; return 0; } 8889 ; return 0; }
8864 EOF 8890 EOF
8865 if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8891 if { (eval echo configure:8892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8866 rm -rf conftest* 8892 rm -rf conftest*
8867 eval "ac_cv_func_$ac_func=yes" 8893 eval "ac_cv_func_$ac_func=yes"
8868 else 8894 else
8869 echo "configure: failed program was:" >&5 8895 echo "configure: failed program was:" >&5
8870 cat conftest.$ac_ext >&5 8896 cat conftest.$ac_ext >&5
8890 8916
8891 done 8917 done
8892 fi 8918 fi
8893 8919
8894 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 8920 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8895 echo "configure:8896: checking stack direction for C alloca" >&5 8921 echo "configure:8922: checking stack direction for C alloca" >&5
8896 8922
8897 cat > conftest.$ac_ext <<EOF 8923 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure" 8924 #line 8925 "configure"
8899 #include "confdefs.h" 8925 #include "confdefs.h"
8900 find_stack_direction () 8926 find_stack_direction ()
8901 { 8927 {
8902 static char *addr = 0; 8928 static char *addr = 0;
8903 auto char dummy; 8929 auto char dummy;
8912 main () 8938 main ()
8913 { 8939 {
8914 exit (find_stack_direction() < 0); 8940 exit (find_stack_direction() < 0);
8915 } 8941 }
8916 EOF 8942 EOF
8917 if { (eval echo configure:8918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8943 if { (eval echo configure:8944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8918 then 8944 then
8919 ac_cv_c_stack_direction=1 8945 ac_cv_c_stack_direction=1
8920 else 8946 else
8947 conftest_rc="$?"
8921 echo "configure: failed program was:" >&5 8948 echo "configure: failed program was:" >&5
8922 cat conftest.$ac_ext >&5 8949 cat conftest.$ac_ext >&5
8923 rm -fr conftest* 8950 rm -fr conftest*
8924 ac_cv_c_stack_direction=-1 8951 ac_cv_c_stack_direction=-1
8925 fi 8952 fi
8940 echo " xemacs will be linked with \"$ALLOCA\"" 8967 echo " xemacs will be linked with \"$ALLOCA\""
8941 fi 8968 fi
8942 8969
8943 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8970 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8944 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8971 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8945 echo "configure:8946: checking for vfork.h" >&5 8972 echo "configure:8973: checking for vfork.h" >&5
8946 8973
8947 cat > conftest.$ac_ext <<EOF 8974 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure" 8975 #line 8976 "configure"
8949 #include "confdefs.h" 8976 #include "confdefs.h"
8950 #include <vfork.h> 8977 #include <vfork.h>
8951 EOF 8978 EOF
8952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8953 { (eval echo configure:8954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8980 { (eval echo configure:8981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8954 ac_err=`grep -v '^ *+' conftest.out` 8981 ac_err=`grep -v '^ *+' conftest.out`
8955 if test -z "$ac_err"; then 8982 if test -z "$ac_err"; then
8956 rm -rf conftest* 8983 rm -rf conftest*
8957 eval "ac_cv_header_$ac_safe=yes" 8984 eval "ac_cv_header_$ac_safe=yes"
8958 else 8985 else
8976 else 9003 else
8977 echo "$ac_t""no" 1>&6 9004 echo "$ac_t""no" 1>&6
8978 fi 9005 fi
8979 9006
8980 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 9007 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8981 echo "configure:8982: checking for working vfork" >&5 9008 echo "configure:9009: checking for working vfork" >&5
8982 9009
8983 cat > conftest.$ac_ext <<EOF 9010 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure" 9011 #line 9012 "configure"
8985 #include "confdefs.h" 9012 #include "confdefs.h"
8986 /* Thanks to Paul Eggert for this test. */ 9013 /* Thanks to Paul Eggert for this test. */
8987 #include <stdio.h> 9014 #include <stdio.h>
8988 #include <sys/types.h> 9015 #include <sys/types.h>
8989 #include <sys/stat.h> 9016 #include <sys/stat.h>
9074 || fstat(fileno(stdout), &st) != 0 9101 || fstat(fileno(stdout), &st) != 0
9075 ); 9102 );
9076 } 9103 }
9077 } 9104 }
9078 EOF 9105 EOF
9079 if { (eval echo configure:9080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9106 if { (eval echo configure:9107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9080 then 9107 then
9081 ac_cv_func_vfork_works=yes 9108 ac_cv_func_vfork_works=yes
9082 else 9109 else
9110 conftest_rc="$?"
9083 echo "configure: failed program was:" >&5 9111 echo "configure: failed program was:" >&5
9084 cat conftest.$ac_ext >&5 9112 cat conftest.$ac_ext >&5
9085 rm -fr conftest* 9113 rm -fr conftest*
9086 ac_cv_func_vfork_works=no 9114 ac_cv_func_vfork_works=no
9087 fi 9115 fi
9099 9127
9100 fi 9128 fi
9101 9129
9102 9130
9103 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 9131 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9104 echo "configure:9105: checking for working strcoll" >&5 9132 echo "configure:9133: checking for working strcoll" >&5
9105 9133
9106 cat > conftest.$ac_ext <<EOF 9134 cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure" 9135 #line 9136 "configure"
9108 #include "confdefs.h" 9136 #include "confdefs.h"
9109 #include <string.h> 9137 #include <string.h>
9110 main () 9138 main ()
9111 { 9139 {
9112 exit (strcoll ("abc", "def") >= 0 || 9140 exit (strcoll ("abc", "def") >= 0 ||
9113 strcoll ("ABC", "DEF") >= 0 || 9141 strcoll ("ABC", "DEF") >= 0 ||
9114 strcoll ("123", "456") >= 0); 9142 strcoll ("123", "456") >= 0);
9115 } 9143 }
9116 EOF 9144 EOF
9117 if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9145 if { (eval echo configure:9146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9118 then 9146 then
9119 ac_cv_func_strcoll_works=yes 9147 ac_cv_func_strcoll_works=yes
9120 else 9148 else
9149 conftest_rc="$?"
9121 echo "configure: failed program was:" >&5 9150 echo "configure: failed program was:" >&5
9122 cat conftest.$ac_ext >&5 9151 cat conftest.$ac_ext >&5
9123 rm -fr conftest* 9152 rm -fr conftest*
9124 ac_cv_func_strcoll_works=no 9153 ac_cv_func_strcoll_works=no
9125 fi 9154 fi
9139 9168
9140 9169
9141 for ac_func in getpgrp 9170 for ac_func in getpgrp
9142 do 9171 do
9143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9144 echo "configure:9145: checking for $ac_func" >&5 9173 echo "configure:9174: checking for $ac_func" >&5
9145 9174
9146 cat > conftest.$ac_ext <<EOF 9175 cat > conftest.$ac_ext <<EOF
9147 #line 9148 "configure" 9176 #line 9177 "configure"
9148 #include "confdefs.h" 9177 #include "confdefs.h"
9149 /* System header to define __stub macros and hopefully few prototypes, 9178 /* System header to define __stub macros and hopefully few prototypes,
9150 which can conflict with char $ac_func(); below. */ 9179 which can conflict with char $ac_func(); below. */
9151 #include <assert.h> 9180 #include <assert.h>
9152 /* Override any gcc2 internal prototype to avoid an error. */ 9181 /* Override any gcc2 internal prototype to avoid an error. */
9165 $ac_func(); 9194 $ac_func();
9166 #endif 9195 #endif
9167 9196
9168 ; return 0; } 9197 ; return 0; }
9169 EOF 9198 EOF
9170 if { (eval echo configure:9171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9199 if { (eval echo configure:9200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9171 rm -rf conftest* 9200 rm -rf conftest*
9172 eval "ac_cv_func_$ac_func=yes" 9201 eval "ac_cv_func_$ac_func=yes"
9173 else 9202 else
9174 echo "configure: failed program was:" >&5 9203 echo "configure: failed program was:" >&5
9175 cat conftest.$ac_ext >&5 9204 cat conftest.$ac_ext >&5
9193 echo "$ac_t""no" 1>&6 9222 echo "$ac_t""no" 1>&6
9194 fi 9223 fi
9195 done 9224 done
9196 9225
9197 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 9226 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9198 echo "configure:9199: checking whether getpgrp takes no argument" >&5 9227 echo "configure:9228: checking whether getpgrp takes no argument" >&5
9199 9228
9200 cat > conftest.$ac_ext <<EOF 9229 cat > conftest.$ac_ext <<EOF
9201 #line 9202 "configure" 9230 #line 9231 "configure"
9202 #include "confdefs.h" 9231 #include "confdefs.h"
9203 9232
9204 /* 9233 /*
9205 * If this system has a BSD-style getpgrp(), 9234 * If this system has a BSD-style getpgrp(),
9206 * which takes a pid argument, exit unsuccessfully. 9235 * which takes a pid argument, exit unsuccessfully.
9251 exit(s>>8); 9280 exit(s>>8);
9252 } 9281 }
9253 } 9282 }
9254 9283
9255 EOF 9284 EOF
9256 if { (eval echo configure:9257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9285 if { (eval echo configure:9286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9257 then 9286 then
9258 ac_cv_func_getpgrp_void=yes 9287 ac_cv_func_getpgrp_void=yes
9259 else 9288 else
9289 conftest_rc="$?"
9260 echo "configure: failed program was:" >&5 9290 echo "configure: failed program was:" >&5
9261 cat conftest.$ac_ext >&5 9291 cat conftest.$ac_ext >&5
9262 rm -fr conftest* 9292 rm -fr conftest*
9263 ac_cv_func_getpgrp_void=no 9293 ac_cv_func_getpgrp_void=no
9264 fi 9294 fi
9277 9307
9278 fi 9308 fi
9279 9309
9280 9310
9281 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9311 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9282 echo "configure:9283: checking for working mmap" >&5 9312 echo "configure:9313: checking for working mmap" >&5
9283 case "$opsys" in ultrix* ) have_mmap=no ;; *) 9313 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9284 cat > conftest.$ac_ext <<EOF 9314 cat > conftest.$ac_ext <<EOF
9285 #line 9286 "configure" 9315 #line 9316 "configure"
9286 #include "confdefs.h" 9316 #include "confdefs.h"
9287 #include <stdio.h> 9317 #include <stdio.h>
9288 #include <unistd.h> 9318 #include <unistd.h>
9289 #include <fcntl.h> 9319 #include <fcntl.h>
9290 #include <sys/mman.h> 9320 #include <sys/mman.h>
9313 return 0; 9343 return 0;
9314 perror ("conftest: mmap failed"); 9344 perror ("conftest: mmap failed");
9315 return 1; 9345 return 1;
9316 } 9346 }
9317 EOF 9347 EOF
9318 if { (eval echo configure:9319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9348 if { (eval echo configure:9349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9319 then 9349 then
9320 have_mmap=yes 9350 have_mmap=yes
9321 else 9351 else
9352 conftest_rc="$?"
9322 echo "configure: failed program was:" >&5 9353 echo "configure: failed program was:" >&5
9323 cat conftest.$ac_ext >&5 9354 cat conftest.$ac_ext >&5
9324 rm -fr conftest* 9355 rm -fr conftest*
9325 have_mmap=no 9356 have_mmap=no
9326 fi 9357 fi
9347 } 9378 }
9348 9379
9349 9380
9350 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 9381 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
9351 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 9382 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
9352 echo "configure:9353: checking for termios.h" >&5 9383 echo "configure:9384: checking for termios.h" >&5
9353 9384
9354 cat > conftest.$ac_ext <<EOF 9385 cat > conftest.$ac_ext <<EOF
9355 #line 9356 "configure" 9386 #line 9387 "configure"
9356 #include "confdefs.h" 9387 #include "confdefs.h"
9357 #include <termios.h> 9388 #include <termios.h>
9358 EOF 9389 EOF
9359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9360 { (eval echo configure:9361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9391 { (eval echo configure:9392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9361 ac_err=`grep -v '^ *+' conftest.out` 9392 ac_err=`grep -v '^ *+' conftest.out`
9362 if test -z "$ac_err"; then 9393 if test -z "$ac_err"; then
9363 rm -rf conftest* 9394 rm -rf conftest*
9364 eval "ac_cv_header_$ac_safe=yes" 9395 eval "ac_cv_header_$ac_safe=yes"
9365 else 9396 else
9398 9429
9399 else 9430 else
9400 echo "$ac_t""no" 1>&6 9431 echo "$ac_t""no" 1>&6
9401 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 9432 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
9402 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 9433 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
9403 echo "configure:9404: checking for termio.h" >&5 9434 echo "configure:9435: checking for termio.h" >&5
9404 9435
9405 cat > conftest.$ac_ext <<EOF 9436 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure" 9437 #line 9438 "configure"
9407 #include "confdefs.h" 9438 #include "confdefs.h"
9408 #include <termio.h> 9439 #include <termio.h>
9409 EOF 9440 EOF
9410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9411 { (eval echo configure:9412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9442 { (eval echo configure:9443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9412 ac_err=`grep -v '^ *+' conftest.out` 9443 ac_err=`grep -v '^ *+' conftest.out`
9413 if test -z "$ac_err"; then 9444 if test -z "$ac_err"; then
9414 rm -rf conftest* 9445 rm -rf conftest*
9415 eval "ac_cv_header_$ac_safe=yes" 9446 eval "ac_cv_header_$ac_safe=yes"
9416 else 9447 else
9438 fi 9469 fi
9439 9470
9440 9471
9441 9472
9442 echo $ac_n "checking for socket""... $ac_c" 1>&6 9473 echo $ac_n "checking for socket""... $ac_c" 1>&6
9443 echo "configure:9444: checking for socket" >&5 9474 echo "configure:9475: checking for socket" >&5
9444 9475
9445 cat > conftest.$ac_ext <<EOF 9476 cat > conftest.$ac_ext <<EOF
9446 #line 9447 "configure" 9477 #line 9478 "configure"
9447 #include "confdefs.h" 9478 #include "confdefs.h"
9448 /* System header to define __stub macros and hopefully few prototypes, 9479 /* System header to define __stub macros and hopefully few prototypes,
9449 which can conflict with char socket(); below. */ 9480 which can conflict with char socket(); below. */
9450 #include <assert.h> 9481 #include <assert.h>
9451 /* Override any gcc2 internal prototype to avoid an error. */ 9482 /* Override any gcc2 internal prototype to avoid an error. */
9464 socket(); 9495 socket();
9465 #endif 9496 #endif
9466 9497
9467 ; return 0; } 9498 ; return 0; }
9468 EOF 9499 EOF
9469 if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9500 if { (eval echo configure:9501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9470 rm -rf conftest* 9501 rm -rf conftest*
9471 eval "ac_cv_func_socket=yes" 9502 eval "ac_cv_func_socket=yes"
9472 else 9503 else
9473 echo "configure: failed program was:" >&5 9504 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5 9505 cat conftest.$ac_ext >&5
9479 9510
9480 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 9511 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9481 echo "$ac_t""yes" 1>&6 9512 echo "$ac_t""yes" 1>&6
9482 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 9513 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
9483 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 9514 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
9484 echo "configure:9485: checking for netinet/in.h" >&5 9515 echo "configure:9516: checking for netinet/in.h" >&5
9485 9516
9486 cat > conftest.$ac_ext <<EOF 9517 cat > conftest.$ac_ext <<EOF
9487 #line 9488 "configure" 9518 #line 9519 "configure"
9488 #include "confdefs.h" 9519 #include "confdefs.h"
9489 #include <netinet/in.h> 9520 #include <netinet/in.h>
9490 EOF 9521 EOF
9491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9492 { (eval echo configure:9493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9523 { (eval echo configure:9524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9493 ac_err=`grep -v '^ *+' conftest.out` 9524 ac_err=`grep -v '^ *+' conftest.out`
9494 if test -z "$ac_err"; then 9525 if test -z "$ac_err"; then
9495 rm -rf conftest* 9526 rm -rf conftest*
9496 eval "ac_cv_header_$ac_safe=yes" 9527 eval "ac_cv_header_$ac_safe=yes"
9497 else 9528 else
9504 rm -f conftest* 9535 rm -f conftest*
9505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9506 echo "$ac_t""yes" 1>&6 9537 echo "$ac_t""yes" 1>&6
9507 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 9538 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
9508 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 9539 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
9509 echo "configure:9510: checking for arpa/inet.h" >&5 9540 echo "configure:9541: checking for arpa/inet.h" >&5
9510 9541
9511 cat > conftest.$ac_ext <<EOF 9542 cat > conftest.$ac_ext <<EOF
9512 #line 9513 "configure" 9543 #line 9544 "configure"
9513 #include "confdefs.h" 9544 #include "confdefs.h"
9514 #include <arpa/inet.h> 9545 #include <arpa/inet.h>
9515 EOF 9546 EOF
9516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9517 { (eval echo configure:9518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9548 { (eval echo configure:9549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9518 ac_err=`grep -v '^ *+' conftest.out` 9549 ac_err=`grep -v '^ *+' conftest.out`
9519 if test -z "$ac_err"; then 9550 if test -z "$ac_err"; then
9520 rm -rf conftest* 9551 rm -rf conftest*
9521 eval "ac_cv_header_$ac_safe=yes" 9552 eval "ac_cv_header_$ac_safe=yes"
9522 else 9553 else
9537 #define HAVE_SOCKETS 1 9568 #define HAVE_SOCKETS 1
9538 EOF 9569 EOF
9539 } 9570 }
9540 9571
9541 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 9572 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
9542 echo "configure:9543: checking "for sun_len member in struct sockaddr_un"" >&5 9573 echo "configure:9574: checking "for sun_len member in struct sockaddr_un"" >&5
9543 cat > conftest.$ac_ext <<EOF 9574 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure" 9575 #line 9576 "configure"
9545 #include "confdefs.h" 9576 #include "confdefs.h"
9546 9577
9547 #include <sys/types.h> 9578 #include <sys/types.h>
9548 #include <sys/socket.h> 9579 #include <sys/socket.h>
9549 #include <sys/un.h> 9580 #include <sys/un.h>
9550 9581
9551 int main() { 9582 int main() {
9552 static struct sockaddr_un x; x.sun_len = 1; 9583 static struct sockaddr_un x; x.sun_len = 1;
9553 ; return 0; } 9584 ; return 0; }
9554 EOF 9585 EOF
9555 if { (eval echo configure:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9586 if { (eval echo configure:9587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9556 rm -rf conftest* 9587 rm -rf conftest*
9557 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9588 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9558 Defining HAVE_SOCKADDR_SUN_LEN 9589 Defining HAVE_SOCKADDR_SUN_LEN
9559 EOF 9590 EOF
9560 cat >> confdefs.h <<\EOF 9591 cat >> confdefs.h <<\EOF
9568 rm -rf conftest* 9599 rm -rf conftest*
9569 echo "$ac_t""no" 1>&6 9600 echo "$ac_t""no" 1>&6
9570 fi 9601 fi
9571 rm -f conftest* 9602 rm -f conftest*
9572 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 9603 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
9573 echo "configure:9574: checking "for ip_mreq struct in netinet/in.h"" >&5 9604 echo "configure:9605: checking "for ip_mreq struct in netinet/in.h"" >&5
9574 cat > conftest.$ac_ext <<EOF 9605 cat > conftest.$ac_ext <<EOF
9575 #line 9576 "configure" 9606 #line 9607 "configure"
9576 #include "confdefs.h" 9607 #include "confdefs.h"
9577 9608
9578 #include <sys/types.h> 9609 #include <sys/types.h>
9579 #include <netinet/in.h> 9610 #include <netinet/in.h>
9580 9611
9581 int main() { 9612 int main() {
9582 static struct ip_mreq x; 9613 static struct ip_mreq x;
9583 ; return 0; } 9614 ; return 0; }
9584 EOF 9615 EOF
9585 if { (eval echo configure:9586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9616 if { (eval echo configure:9617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9586 rm -rf conftest* 9617 rm -rf conftest*
9587 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9618 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9588 Defining HAVE_MULTICAST 9619 Defining HAVE_MULTICAST
9589 EOF 9620 EOF
9590 cat >> confdefs.h <<\EOF 9621 cat >> confdefs.h <<\EOF
9611 echo "$ac_t""no" 1>&6 9642 echo "$ac_t""no" 1>&6
9612 fi 9643 fi
9613 9644
9614 9645
9615 echo $ac_n "checking for msgget""... $ac_c" 1>&6 9646 echo $ac_n "checking for msgget""... $ac_c" 1>&6
9616 echo "configure:9617: checking for msgget" >&5 9647 echo "configure:9648: checking for msgget" >&5
9617 9648
9618 cat > conftest.$ac_ext <<EOF 9649 cat > conftest.$ac_ext <<EOF
9619 #line 9620 "configure" 9650 #line 9651 "configure"
9620 #include "confdefs.h" 9651 #include "confdefs.h"
9621 /* System header to define __stub macros and hopefully few prototypes, 9652 /* System header to define __stub macros and hopefully few prototypes,
9622 which can conflict with char msgget(); below. */ 9653 which can conflict with char msgget(); below. */
9623 #include <assert.h> 9654 #include <assert.h>
9624 /* Override any gcc2 internal prototype to avoid an error. */ 9655 /* Override any gcc2 internal prototype to avoid an error. */
9637 msgget(); 9668 msgget();
9638 #endif 9669 #endif
9639 9670
9640 ; return 0; } 9671 ; return 0; }
9641 EOF 9672 EOF
9642 if { (eval echo configure:9643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9673 if { (eval echo configure:9674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9643 rm -rf conftest* 9674 rm -rf conftest*
9644 eval "ac_cv_func_msgget=yes" 9675 eval "ac_cv_func_msgget=yes"
9645 else 9676 else
9646 echo "configure: failed program was:" >&5 9677 echo "configure: failed program was:" >&5
9647 cat conftest.$ac_ext >&5 9678 cat conftest.$ac_ext >&5
9652 9683
9653 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 9684 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
9654 echo "$ac_t""yes" 1>&6 9685 echo "$ac_t""yes" 1>&6
9655 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 9686 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
9656 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 9687 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
9657 echo "configure:9658: checking for sys/ipc.h" >&5 9688 echo "configure:9689: checking for sys/ipc.h" >&5
9658 9689
9659 cat > conftest.$ac_ext <<EOF 9690 cat > conftest.$ac_ext <<EOF
9660 #line 9661 "configure" 9691 #line 9692 "configure"
9661 #include "confdefs.h" 9692 #include "confdefs.h"
9662 #include <sys/ipc.h> 9693 #include <sys/ipc.h>
9663 EOF 9694 EOF
9664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9665 { (eval echo configure:9666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9696 { (eval echo configure:9697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9666 ac_err=`grep -v '^ *+' conftest.out` 9697 ac_err=`grep -v '^ *+' conftest.out`
9667 if test -z "$ac_err"; then 9698 if test -z "$ac_err"; then
9668 rm -rf conftest* 9699 rm -rf conftest*
9669 eval "ac_cv_header_$ac_safe=yes" 9700 eval "ac_cv_header_$ac_safe=yes"
9670 else 9701 else
9677 rm -f conftest* 9708 rm -f conftest*
9678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9679 echo "$ac_t""yes" 1>&6 9710 echo "$ac_t""yes" 1>&6
9680 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 9711 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
9681 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 9712 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
9682 echo "configure:9683: checking for sys/msg.h" >&5 9713 echo "configure:9714: checking for sys/msg.h" >&5
9683 9714
9684 cat > conftest.$ac_ext <<EOF 9715 cat > conftest.$ac_ext <<EOF
9685 #line 9686 "configure" 9716 #line 9717 "configure"
9686 #include "confdefs.h" 9717 #include "confdefs.h"
9687 #include <sys/msg.h> 9718 #include <sys/msg.h>
9688 EOF 9719 EOF
9689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9690 { (eval echo configure:9691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9721 { (eval echo configure:9722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9691 ac_err=`grep -v '^ *+' conftest.out` 9722 ac_err=`grep -v '^ *+' conftest.out`
9692 if test -z "$ac_err"; then 9723 if test -z "$ac_err"; then
9693 rm -rf conftest* 9724 rm -rf conftest*
9694 eval "ac_cv_header_$ac_safe=yes" 9725 eval "ac_cv_header_$ac_safe=yes"
9695 else 9726 else
9723 fi 9754 fi
9724 9755
9725 9756
9726 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 9757 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
9727 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 9758 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
9728 echo "configure:9729: checking for dirent.h" >&5 9759 echo "configure:9760: checking for dirent.h" >&5
9729 9760
9730 cat > conftest.$ac_ext <<EOF 9761 cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure" 9762 #line 9763 "configure"
9732 #include "confdefs.h" 9763 #include "confdefs.h"
9733 #include <dirent.h> 9764 #include <dirent.h>
9734 EOF 9765 EOF
9735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9736 { (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9767 { (eval echo configure:9768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9737 ac_err=`grep -v '^ *+' conftest.out` 9768 ac_err=`grep -v '^ *+' conftest.out`
9738 if test -z "$ac_err"; then 9769 if test -z "$ac_err"; then
9739 rm -rf conftest* 9770 rm -rf conftest*
9740 eval "ac_cv_header_$ac_safe=yes" 9771 eval "ac_cv_header_$ac_safe=yes"
9741 else 9772 else
9758 9789
9759 else 9790 else
9760 echo "$ac_t""no" 1>&6 9791 echo "$ac_t""no" 1>&6
9761 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 9792 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
9762 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 9793 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
9763 echo "configure:9764: checking for sys/dir.h" >&5 9794 echo "configure:9795: checking for sys/dir.h" >&5
9764 9795
9765 cat > conftest.$ac_ext <<EOF 9796 cat > conftest.$ac_ext <<EOF
9766 #line 9767 "configure" 9797 #line 9798 "configure"
9767 #include "confdefs.h" 9798 #include "confdefs.h"
9768 #include <sys/dir.h> 9799 #include <sys/dir.h>
9769 EOF 9800 EOF
9770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9771 { (eval echo configure:9772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9802 { (eval echo configure:9803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9772 ac_err=`grep -v '^ *+' conftest.out` 9803 ac_err=`grep -v '^ *+' conftest.out`
9773 if test -z "$ac_err"; then 9804 if test -z "$ac_err"; then
9774 rm -rf conftest* 9805 rm -rf conftest*
9775 eval "ac_cv_header_$ac_safe=yes" 9806 eval "ac_cv_header_$ac_safe=yes"
9776 else 9807 else
9799 fi 9830 fi
9800 9831
9801 9832
9802 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 9833 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
9803 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 9834 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
9804 echo "configure:9805: checking for nlist.h" >&5 9835 echo "configure:9836: checking for nlist.h" >&5
9805 9836
9806 cat > conftest.$ac_ext <<EOF 9837 cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure" 9838 #line 9839 "configure"
9808 #include "confdefs.h" 9839 #include "confdefs.h"
9809 #include <nlist.h> 9840 #include <nlist.h>
9810 EOF 9841 EOF
9811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9812 { (eval echo configure:9813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9843 { (eval echo configure:9844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9813 ac_err=`grep -v '^ *+' conftest.out` 9844 ac_err=`grep -v '^ *+' conftest.out`
9814 if test -z "$ac_err"; then 9845 if test -z "$ac_err"; then
9815 rm -rf conftest* 9846 rm -rf conftest*
9816 eval "ac_cv_header_$ac_safe=yes" 9847 eval "ac_cv_header_$ac_safe=yes"
9817 else 9848 else
9837 fi 9868 fi
9838 9869
9839 9870
9840 9871
9841 echo "checking "for sound support"" 1>&6 9872 echo "checking "for sound support"" 1>&6
9842 echo "configure:9843: checking "for sound support"" >&5 9873 echo "configure:9874: checking "for sound support"" >&5
9843 case "$with_sound" in 9874 case "$with_sound" in
9844 native | both ) with_native_sound=yes;; 9875 native | both ) with_native_sound=yes;;
9845 nas | no ) with_native_sound=no;; 9876 nas | no ) with_native_sound=no;;
9846 esac 9877 esac
9847 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 9878 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
9848 9879
9849 if test "$with_native_sound" != "no"; then 9880 if test "$with_native_sound" != "no"; then
9850 if test -n "$native_sound_lib"; then 9881 if test -n "$native_sound_lib"; then
9851 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 9882 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
9852 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 9883 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
9853 echo "configure:9854: checking for multimedia/audio_device.h" >&5 9884 echo "configure:9885: checking for multimedia/audio_device.h" >&5
9854 9885
9855 cat > conftest.$ac_ext <<EOF 9886 cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure" 9887 #line 9888 "configure"
9857 #include "confdefs.h" 9888 #include "confdefs.h"
9858 #include <multimedia/audio_device.h> 9889 #include <multimedia/audio_device.h>
9859 EOF 9890 EOF
9860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9861 { (eval echo configure:9862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9892 { (eval echo configure:9893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9862 ac_err=`grep -v '^ *+' conftest.out` 9893 ac_err=`grep -v '^ *+' conftest.out`
9863 if test -z "$ac_err"; then 9894 if test -z "$ac_err"; then
9864 rm -rf conftest* 9895 rm -rf conftest*
9865 eval "ac_cv_header_$ac_safe=yes" 9896 eval "ac_cv_header_$ac_safe=yes"
9866 else 9897 else
9904 case "$canonical" in 9935 case "$canonical" in
9905 *-sgi-* ) 9936 *-sgi-* )
9906 if test -z "$native_sound_lib"; then 9937 if test -z "$native_sound_lib"; then
9907 9938
9908 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 9939 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
9909 echo "configure:9910: checking for ALopenport in -laudio" >&5 9940 echo "configure:9941: checking for ALopenport in -laudio" >&5
9910 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 9941 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
9911 9942
9912 xe_check_libs=" -laudio " 9943 xe_check_libs=" -laudio "
9913 cat > conftest.$ac_ext <<EOF 9944 cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure" 9945 #line 9946 "configure"
9915 #include "confdefs.h" 9946 #include "confdefs.h"
9916 /* Override any gcc2 internal prototype to avoid an error. */ 9947 /* Override any gcc2 internal prototype to avoid an error. */
9917 /* We use char because int might match the return type of a gcc2 9948 /* We use char because int might match the return type of a gcc2
9918 builtin and then its argument prototype would still apply. */ 9949 builtin and then its argument prototype would still apply. */
9919 char ALopenport(); 9950 char ALopenport();
9920 9951
9921 int main() { 9952 int main() {
9922 ALopenport() 9953 ALopenport()
9923 ; return 0; } 9954 ; return 0; }
9924 EOF 9955 EOF
9925 if { (eval echo configure:9926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9956 if { (eval echo configure:9957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9926 rm -rf conftest* 9957 rm -rf conftest*
9927 eval "ac_cv_lib_$ac_lib_var=yes" 9958 eval "ac_cv_lib_$ac_lib_var=yes"
9928 else 9959 else
9929 echo "configure: failed program was:" >&5 9960 echo "configure: failed program was:" >&5
9930 cat conftest.$ac_ext >&5 9961 cat conftest.$ac_ext >&5
9951 fi ;; 9982 fi ;;
9952 hppa*-hp-hpux* ) 9983 hppa*-hp-hpux* )
9953 if test -z "$native_sound_lib"; then 9984 if test -z "$native_sound_lib"; then
9954 9985
9955 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 9986 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
9956 echo "configure:9957: checking for AOpenAudio in -lAlib" >&5 9987 echo "configure:9988: checking for AOpenAudio in -lAlib" >&5
9957 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 9988 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
9958 9989
9959 xe_check_libs=" -lAlib " 9990 xe_check_libs=" -lAlib "
9960 cat > conftest.$ac_ext <<EOF 9991 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure" 9992 #line 9993 "configure"
9962 #include "confdefs.h" 9993 #include "confdefs.h"
9963 /* Override any gcc2 internal prototype to avoid an error. */ 9994 /* Override any gcc2 internal prototype to avoid an error. */
9964 /* We use char because int might match the return type of a gcc2 9995 /* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */ 9996 builtin and then its argument prototype would still apply. */
9966 char AOpenAudio(); 9997 char AOpenAudio();
9967 9998
9968 int main() { 9999 int main() {
9969 AOpenAudio() 10000 AOpenAudio()
9970 ; return 0; } 10001 ; return 0; }
9971 EOF 10002 EOF
9972 if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10003 if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9973 rm -rf conftest* 10004 rm -rf conftest*
9974 eval "ac_cv_lib_$ac_lib_var=yes" 10005 eval "ac_cv_lib_$ac_lib_var=yes"
9975 else 10006 else
9976 echo "configure: failed program was:" >&5 10007 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5 10008 cat conftest.$ac_ext >&5
10005 10036
10006 if test -z "$sound_found"; then 10037 if test -z "$sound_found"; then
10007 for dir in "machine" "sys" "linux"; do 10038 for dir in "machine" "sys" "linux"; do
10008 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10039 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10009 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10040 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10010 echo "configure:10011: checking for ${dir}/soundcard.h" >&5 10041 echo "configure:10042: checking for ${dir}/soundcard.h" >&5
10011 10042
10012 cat > conftest.$ac_ext <<EOF 10043 cat > conftest.$ac_ext <<EOF
10013 #line 10014 "configure" 10044 #line 10045 "configure"
10014 #include "confdefs.h" 10045 #include "confdefs.h"
10015 #include <${dir}/soundcard.h> 10046 #include <${dir}/soundcard.h>
10016 EOF 10047 EOF
10017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10018 { (eval echo configure:10019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10049 { (eval echo configure:10050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10019 ac_err=`grep -v '^ *+' conftest.out` 10050 ac_err=`grep -v '^ *+' conftest.out`
10020 if test -z "$ac_err"; then 10051 if test -z "$ac_err"; then
10021 rm -rf conftest* 10052 rm -rf conftest*
10022 eval "ac_cv_header_$ac_safe=yes" 10053 eval "ac_cv_header_$ac_safe=yes"
10023 else 10054 else
10083 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10114 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10084 echo " xemacs will be linked with \"nas.o\"" 10115 echo " xemacs will be linked with \"nas.o\""
10085 fi 10116 fi
10086 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10117 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10087 cat > conftest.$ac_ext <<EOF 10118 cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure" 10119 #line 10120 "configure"
10089 #include "confdefs.h" 10120 #include "confdefs.h"
10090 #include <audio/Xtutil.h> 10121 #include <audio/Xtutil.h>
10091 EOF 10122 EOF
10092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10093 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10124 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10110 10141
10111 test -z "$with_tty" && with_tty=yes 10142 test -z "$with_tty" && with_tty=yes
10112 10143
10113 if test "$with_tty" = "yes" ; then 10144 if test "$with_tty" = "yes" ; then
10114 echo "checking for TTY-related features" 1>&6 10145 echo "checking for TTY-related features" 1>&6
10115 echo "configure:10116: checking for TTY-related features" >&5 10146 echo "configure:10147: checking for TTY-related features" >&5
10116 { test "$extra_verbose" = "yes" && cat << \EOF 10147 { test "$extra_verbose" = "yes" && cat << \EOF
10117 Defining HAVE_TTY 10148 Defining HAVE_TTY
10118 EOF 10149 EOF
10119 cat >> confdefs.h <<\EOF 10150 cat >> confdefs.h <<\EOF
10120 #define HAVE_TTY 1 10151 #define HAVE_TTY 1
10126 fi 10157 fi
10127 10158
10128 if test -z "$with_ncurses"; then 10159 if test -z "$with_ncurses"; then
10129 10160
10130 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 10161 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10131 echo "configure:10132: checking for tgetent in -lncurses" >&5 10162 echo "configure:10163: checking for tgetent in -lncurses" >&5
10132 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 10163 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10133 10164
10134 xe_check_libs=" -lncurses " 10165 xe_check_libs=" -lncurses "
10135 cat > conftest.$ac_ext <<EOF 10166 cat > conftest.$ac_ext <<EOF
10136 #line 10137 "configure" 10167 #line 10168 "configure"
10137 #include "confdefs.h" 10168 #include "confdefs.h"
10138 /* Override any gcc2 internal prototype to avoid an error. */ 10169 /* Override any gcc2 internal prototype to avoid an error. */
10139 /* We use char because int might match the return type of a gcc2 10170 /* We use char because int might match the return type of a gcc2
10140 builtin and then its argument prototype would still apply. */ 10171 builtin and then its argument prototype would still apply. */
10141 char tgetent(); 10172 char tgetent();
10142 10173
10143 int main() { 10174 int main() {
10144 tgetent() 10175 tgetent()
10145 ; return 0; } 10176 ; return 0; }
10146 EOF 10177 EOF
10147 if { (eval echo configure:10148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10178 if { (eval echo configure:10179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10148 rm -rf conftest* 10179 rm -rf conftest*
10149 eval "ac_cv_lib_$ac_lib_var=yes" 10180 eval "ac_cv_lib_$ac_lib_var=yes"
10150 else 10181 else
10151 echo "configure: failed program was:" >&5 10182 echo "configure: failed program was:" >&5
10152 cat conftest.$ac_ext >&5 10183 cat conftest.$ac_ext >&5
10175 EOF 10206 EOF
10176 } 10207 }
10177 10208
10178 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10209 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10179 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10210 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10180 echo "configure:10181: checking for ncurses/curses.h" >&5 10211 echo "configure:10212: checking for ncurses/curses.h" >&5
10181 10212
10182 cat > conftest.$ac_ext <<EOF 10213 cat > conftest.$ac_ext <<EOF
10183 #line 10184 "configure" 10214 #line 10215 "configure"
10184 #include "confdefs.h" 10215 #include "confdefs.h"
10185 #include <ncurses/curses.h> 10216 #include <ncurses/curses.h>
10186 EOF 10217 EOF
10187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10188 { (eval echo configure:10189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10219 { (eval echo configure:10220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10189 ac_err=`grep -v '^ *+' conftest.out` 10220 ac_err=`grep -v '^ *+' conftest.out`
10190 if test -z "$ac_err"; then 10221 if test -z "$ac_err"; then
10191 rm -rf conftest* 10222 rm -rf conftest*
10192 eval "ac_cv_header_$ac_safe=yes" 10223 eval "ac_cv_header_$ac_safe=yes"
10193 else 10224 else
10205 echo "$ac_t""no" 1>&6 10236 echo "$ac_t""no" 1>&6
10206 fi 10237 fi
10207 10238
10208 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 10239 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10209 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 10240 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10210 echo "configure:10211: checking for ncurses/term.h" >&5 10241 echo "configure:10242: checking for ncurses/term.h" >&5
10211 10242
10212 cat > conftest.$ac_ext <<EOF 10243 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure" 10244 #line 10245 "configure"
10214 #include "confdefs.h" 10245 #include "confdefs.h"
10215 #include <ncurses/term.h> 10246 #include <ncurses/term.h>
10216 EOF 10247 EOF
10217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10248 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; } 10249 { (eval echo configure:10250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10219 ac_err=`grep -v '^ *+' conftest.out` 10250 ac_err=`grep -v '^ *+' conftest.out`
10220 if test -z "$ac_err"; then 10251 if test -z "$ac_err"; then
10221 rm -rf conftest* 10252 rm -rf conftest*
10222 eval "ac_cv_header_$ac_safe=yes" 10253 eval "ac_cv_header_$ac_safe=yes"
10223 else 10254 else
10243 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 10274 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10244 save_c_switch_site="$c_switch_site" 10275 save_c_switch_site="$c_switch_site"
10245 c_switch_site="$c_switch_site -I/usr/include/ncurses" 10276 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10246 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10277 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10247 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10278 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10248 echo "configure:10249: checking for ncurses/curses.h" >&5 10279 echo "configure:10280: checking for ncurses/curses.h" >&5
10249 10280
10250 cat > conftest.$ac_ext <<EOF 10281 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure" 10282 #line 10283 "configure"
10252 #include "confdefs.h" 10283 #include "confdefs.h"
10253 #include <ncurses/curses.h> 10284 #include <ncurses/curses.h>
10254 EOF 10285 EOF
10255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10256 { (eval echo configure:10257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10287 { (eval echo configure:10288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10257 ac_err=`grep -v '^ *+' conftest.out` 10288 ac_err=`grep -v '^ *+' conftest.out`
10258 if test -z "$ac_err"; then 10289 if test -z "$ac_err"; then
10259 rm -rf conftest* 10290 rm -rf conftest*
10260 eval "ac_cv_header_$ac_safe=yes" 10291 eval "ac_cv_header_$ac_safe=yes"
10261 else 10292 else
10286 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10317 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10287 else 10318 else
10288 for lib in curses termlib termcap; do 10319 for lib in curses termlib termcap; do
10289 10320
10290 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 10321 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10291 echo "configure:10292: checking for tgetent in -l$lib" >&5 10322 echo "configure:10323: checking for tgetent in -l$lib" >&5
10292 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 10323 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10293 10324
10294 xe_check_libs=" -l$lib " 10325 xe_check_libs=" -l$lib "
10295 cat > conftest.$ac_ext <<EOF 10326 cat > conftest.$ac_ext <<EOF
10296 #line 10297 "configure" 10327 #line 10328 "configure"
10297 #include "confdefs.h" 10328 #include "confdefs.h"
10298 /* Override any gcc2 internal prototype to avoid an error. */ 10329 /* Override any gcc2 internal prototype to avoid an error. */
10299 /* We use char because int might match the return type of a gcc2 10330 /* We use char because int might match the return type of a gcc2
10300 builtin and then its argument prototype would still apply. */ 10331 builtin and then its argument prototype would still apply. */
10301 char tgetent(); 10332 char tgetent();
10302 10333
10303 int main() { 10334 int main() {
10304 tgetent() 10335 tgetent()
10305 ; return 0; } 10336 ; return 0; }
10306 EOF 10337 EOF
10307 if { (eval echo configure:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10338 if { (eval echo configure:10339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10308 rm -rf conftest* 10339 rm -rf conftest*
10309 eval "ac_cv_lib_$ac_lib_var=yes" 10340 eval "ac_cv_lib_$ac_lib_var=yes"
10310 else 10341 else
10311 echo "configure: failed program was:" >&5 10342 echo "configure: failed program was:" >&5
10312 cat conftest.$ac_ext >&5 10343 cat conftest.$ac_ext >&5
10333 if test -n "$libs_termcap"; then 10364 if test -n "$libs_termcap"; then
10334 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10365 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10335 else 10366 else
10336 10367
10337 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10368 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10338 echo "configure:10339: checking for tgetent in -lcurses" >&5 10369 echo "configure:10370: checking for tgetent in -lcurses" >&5
10339 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10370 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10340 10371
10341 xe_check_libs=" -lcurses " 10372 xe_check_libs=" -lcurses "
10342 cat > conftest.$ac_ext <<EOF 10373 cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure" 10374 #line 10375 "configure"
10344 #include "confdefs.h" 10375 #include "confdefs.h"
10345 /* Override any gcc2 internal prototype to avoid an error. */ 10376 /* Override any gcc2 internal prototype to avoid an error. */
10346 /* We use char because int might match the return type of a gcc2 10377 /* We use char because int might match the return type of a gcc2
10347 builtin and then its argument prototype would still apply. */ 10378 builtin and then its argument prototype would still apply. */
10348 char tgetent(); 10379 char tgetent();
10349 10380
10350 int main() { 10381 int main() {
10351 tgetent() 10382 tgetent()
10352 ; return 0; } 10383 ; return 0; }
10353 EOF 10384 EOF
10354 if { (eval echo configure:10355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10385 if { (eval echo configure:10386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10355 rm -rf conftest* 10386 rm -rf conftest*
10356 eval "ac_cv_lib_$ac_lib_var=yes" 10387 eval "ac_cv_lib_$ac_lib_var=yes"
10357 else 10388 else
10358 echo "configure: failed program was:" >&5 10389 echo "configure: failed program was:" >&5
10359 cat conftest.$ac_ext >&5 10390 cat conftest.$ac_ext >&5
10367 echo "$ac_t""yes" 1>&6 10398 echo "$ac_t""yes" 1>&6
10368 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 10399 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
10369 else 10400 else
10370 echo "$ac_t""no" 1>&6 10401 echo "$ac_t""no" 1>&6
10371 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 10402 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
10372 echo "configure:10373: checking for tgetent in -ltermcap" >&5 10403 echo "configure:10404: checking for tgetent in -ltermcap" >&5
10373 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 10404 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
10374 10405
10375 xe_check_libs=" -ltermcap " 10406 xe_check_libs=" -ltermcap "
10376 cat > conftest.$ac_ext <<EOF 10407 cat > conftest.$ac_ext <<EOF
10377 #line 10378 "configure" 10408 #line 10409 "configure"
10378 #include "confdefs.h" 10409 #include "confdefs.h"
10379 /* Override any gcc2 internal prototype to avoid an error. */ 10410 /* Override any gcc2 internal prototype to avoid an error. */
10380 /* We use char because int might match the return type of a gcc2 10411 /* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */ 10412 builtin and then its argument prototype would still apply. */
10382 char tgetent(); 10413 char tgetent();
10383 10414
10384 int main() { 10415 int main() {
10385 tgetent() 10416 tgetent()
10386 ; return 0; } 10417 ; return 0; }
10387 EOF 10418 EOF
10388 if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10419 if { (eval echo configure:10420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10389 rm -rf conftest* 10420 rm -rf conftest*
10390 eval "ac_cv_lib_$ac_lib_var=yes" 10421 eval "ac_cv_lib_$ac_lib_var=yes"
10391 else 10422 else
10392 echo "configure: failed program was:" >&5 10423 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5 10424 cat conftest.$ac_ext >&5
10431 } 10462 }
10432 10463
10433 10464
10434 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 10465 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
10435 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 10466 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
10436 echo "configure:10437: checking for gpm.h" >&5 10467 echo "configure:10468: checking for gpm.h" >&5
10437 10468
10438 cat > conftest.$ac_ext <<EOF 10469 cat > conftest.$ac_ext <<EOF
10439 #line 10440 "configure" 10470 #line 10471 "configure"
10440 #include "confdefs.h" 10471 #include "confdefs.h"
10441 #include <gpm.h> 10472 #include <gpm.h>
10442 EOF 10473 EOF
10443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10444 { (eval echo configure:10445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10475 { (eval echo configure:10476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10445 ac_err=`grep -v '^ *+' conftest.out` 10476 ac_err=`grep -v '^ *+' conftest.out`
10446 if test -z "$ac_err"; then 10477 if test -z "$ac_err"; then
10447 rm -rf conftest* 10478 rm -rf conftest*
10448 eval "ac_cv_header_$ac_safe=yes" 10479 eval "ac_cv_header_$ac_safe=yes"
10449 else 10480 else
10462 with_gpm=no 10493 with_gpm=no
10463 fi 10494 fi
10464 } 10495 }
10465 test -z "$with_gpm" && { 10496 test -z "$with_gpm" && {
10466 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 10497 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
10467 echo "configure:10468: checking for Gpm_Open in -lgpm" >&5 10498 echo "configure:10499: checking for Gpm_Open in -lgpm" >&5
10468 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 10499 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
10469 10500
10470 xe_check_libs=" -lgpm " 10501 xe_check_libs=" -lgpm "
10471 cat > conftest.$ac_ext <<EOF 10502 cat > conftest.$ac_ext <<EOF
10472 #line 10473 "configure" 10503 #line 10504 "configure"
10473 #include "confdefs.h" 10504 #include "confdefs.h"
10474 /* Override any gcc2 internal prototype to avoid an error. */ 10505 /* Override any gcc2 internal prototype to avoid an error. */
10475 /* We use char because int might match the return type of a gcc2 10506 /* We use char because int might match the return type of a gcc2
10476 builtin and then its argument prototype would still apply. */ 10507 builtin and then its argument prototype would still apply. */
10477 char Gpm_Open(); 10508 char Gpm_Open();
10478 10509
10479 int main() { 10510 int main() {
10480 Gpm_Open() 10511 Gpm_Open()
10481 ; return 0; } 10512 ; return 0; }
10482 EOF 10513 EOF
10483 if { (eval echo configure:10484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10514 if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10484 rm -rf conftest* 10515 rm -rf conftest*
10485 eval "ac_cv_lib_$ac_lib_var=yes" 10516 eval "ac_cv_lib_$ac_lib_var=yes"
10486 else 10517 else
10487 echo "configure: failed program was:" >&5 10518 echo "configure: failed program was:" >&5
10488 cat conftest.$ac_ext >&5 10519 cat conftest.$ac_ext >&5
10527 echo " xemacs will be linked with \"event-unixoid.o\"" 10558 echo " xemacs will be linked with \"event-unixoid.o\""
10528 fi 10559 fi
10529 10560
10530 10561
10531 echo "checking for database support" 1>&6 10562 echo "checking for database support" 1>&6
10532 echo "configure:10533: checking for database support" >&5 10563 echo "configure:10564: checking for database support" >&5
10533 10564
10534 if test "$with_database_gnudbm" != "no"; then 10565 if test "$with_database_gnudbm" != "no"; then
10535 for ac_hdr in ndbm.h 10566 for ac_hdr in ndbm.h
10536 do 10567 do
10537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10569 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10539 echo "configure:10540: checking for $ac_hdr" >&5 10570 echo "configure:10571: checking for $ac_hdr" >&5
10540 10571
10541 cat > conftest.$ac_ext <<EOF 10572 cat > conftest.$ac_ext <<EOF
10542 #line 10543 "configure" 10573 #line 10574 "configure"
10543 #include "confdefs.h" 10574 #include "confdefs.h"
10544 #include <$ac_hdr> 10575 #include <$ac_hdr>
10545 EOF 10576 EOF
10546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10547 { (eval echo configure:10548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10578 { (eval echo configure:10579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10548 ac_err=`grep -v '^ *+' conftest.out` 10579 ac_err=`grep -v '^ *+' conftest.out`
10549 if test -z "$ac_err"; then 10580 if test -z "$ac_err"; then
10550 rm -rf conftest* 10581 rm -rf conftest*
10551 eval "ac_cv_header_$ac_safe=yes" 10582 eval "ac_cv_header_$ac_safe=yes"
10552 else 10583 else
10574 done 10605 done
10575 10606
10576 if test "$have_ndbm_h" = "yes"; then 10607 if test "$have_ndbm_h" = "yes"; then
10577 10608
10578 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 10609 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
10579 echo "configure:10580: checking for dbm_open in -lgdbm" >&5 10610 echo "configure:10611: checking for dbm_open in -lgdbm" >&5
10580 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 10611 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
10581 10612
10582 xe_check_libs=" -lgdbm " 10613 xe_check_libs=" -lgdbm "
10583 cat > conftest.$ac_ext <<EOF 10614 cat > conftest.$ac_ext <<EOF
10584 #line 10585 "configure" 10615 #line 10616 "configure"
10585 #include "confdefs.h" 10616 #include "confdefs.h"
10586 /* Override any gcc2 internal prototype to avoid an error. */ 10617 /* Override any gcc2 internal prototype to avoid an error. */
10587 /* We use char because int might match the return type of a gcc2 10618 /* We use char because int might match the return type of a gcc2
10588 builtin and then its argument prototype would still apply. */ 10619 builtin and then its argument prototype would still apply. */
10589 char dbm_open(); 10620 char dbm_open();
10590 10621
10591 int main() { 10622 int main() {
10592 dbm_open() 10623 dbm_open()
10593 ; return 0; } 10624 ; return 0; }
10594 EOF 10625 EOF
10595 if { (eval echo configure:10596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10626 if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10596 rm -rf conftest* 10627 rm -rf conftest*
10597 eval "ac_cv_lib_$ac_lib_var=yes" 10628 eval "ac_cv_lib_$ac_lib_var=yes"
10598 else 10629 else
10599 echo "configure: failed program was:" >&5 10630 echo "configure: failed program was:" >&5
10600 cat conftest.$ac_ext >&5 10631 cat conftest.$ac_ext >&5
10613 10644
10614 10645
10615 fi 10646 fi
10616 if test "$with_database_gnudbm" != "yes"; then 10647 if test "$with_database_gnudbm" != "yes"; then
10617 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 10648 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
10618 echo "configure:10619: checking for dbm_open" >&5 10649 echo "configure:10650: checking for dbm_open" >&5
10619 10650
10620 cat > conftest.$ac_ext <<EOF 10651 cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure" 10652 #line 10653 "configure"
10622 #include "confdefs.h" 10653 #include "confdefs.h"
10623 /* System header to define __stub macros and hopefully few prototypes, 10654 /* System header to define __stub macros and hopefully few prototypes,
10624 which can conflict with char dbm_open(); below. */ 10655 which can conflict with char dbm_open(); below. */
10625 #include <assert.h> 10656 #include <assert.h>
10626 /* Override any gcc2 internal prototype to avoid an error. */ 10657 /* Override any gcc2 internal prototype to avoid an error. */
10639 dbm_open(); 10670 dbm_open();
10640 #endif 10671 #endif
10641 10672
10642 ; return 0; } 10673 ; return 0; }
10643 EOF 10674 EOF
10644 if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10645 rm -rf conftest* 10676 rm -rf conftest*
10646 eval "ac_cv_func_dbm_open=yes" 10677 eval "ac_cv_func_dbm_open=yes"
10647 else 10678 else
10648 echo "configure: failed program was:" >&5 10679 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5 10680 cat conftest.$ac_ext >&5
10675 fi 10706 fi
10676 fi 10707 fi
10677 10708
10678 if test "$with_database_dbm" != "no"; then 10709 if test "$with_database_dbm" != "no"; then
10679 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 10710 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
10680 echo "configure:10681: checking for dbm_open" >&5 10711 echo "configure:10712: checking for dbm_open" >&5
10681 10712
10682 cat > conftest.$ac_ext <<EOF 10713 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure" 10714 #line 10715 "configure"
10684 #include "confdefs.h" 10715 #include "confdefs.h"
10685 /* System header to define __stub macros and hopefully few prototypes, 10716 /* System header to define __stub macros and hopefully few prototypes,
10686 which can conflict with char dbm_open(); below. */ 10717 which can conflict with char dbm_open(); below. */
10687 #include <assert.h> 10718 #include <assert.h>
10688 /* Override any gcc2 internal prototype to avoid an error. */ 10719 /* Override any gcc2 internal prototype to avoid an error. */
10701 dbm_open(); 10732 dbm_open();
10702 #endif 10733 #endif
10703 10734
10704 ; return 0; } 10735 ; return 0; }
10705 EOF 10736 EOF
10706 if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10737 if { (eval echo configure:10738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10707 rm -rf conftest* 10738 rm -rf conftest*
10708 eval "ac_cv_func_dbm_open=yes" 10739 eval "ac_cv_func_dbm_open=yes"
10709 else 10740 else
10710 echo "configure: failed program was:" >&5 10741 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5 10742 cat conftest.$ac_ext >&5
10722 fi 10753 fi
10723 10754
10724 if test "$need_libdbm" != "no"; then 10755 if test "$need_libdbm" != "no"; then
10725 10756
10726 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 10757 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
10727 echo "configure:10728: checking for dbm_open in -ldbm" >&5 10758 echo "configure:10759: checking for dbm_open in -ldbm" >&5
10728 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 10759 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
10729 10760
10730 xe_check_libs=" -ldbm " 10761 xe_check_libs=" -ldbm "
10731 cat > conftest.$ac_ext <<EOF 10762 cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure" 10763 #line 10764 "configure"
10733 #include "confdefs.h" 10764 #include "confdefs.h"
10734 /* Override any gcc2 internal prototype to avoid an error. */ 10765 /* Override any gcc2 internal prototype to avoid an error. */
10735 /* We use char because int might match the return type of a gcc2 10766 /* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */ 10767 builtin and then its argument prototype would still apply. */
10737 char dbm_open(); 10768 char dbm_open();
10738 10769
10739 int main() { 10770 int main() {
10740 dbm_open() 10771 dbm_open()
10741 ; return 0; } 10772 ; return 0; }
10742 EOF 10773 EOF
10743 if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10774 if { (eval echo configure:10775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10744 rm -rf conftest* 10775 rm -rf conftest*
10745 eval "ac_cv_lib_$ac_lib_var=yes" 10776 eval "ac_cv_lib_$ac_lib_var=yes"
10746 else 10777 else
10747 echo "configure: failed program was:" >&5 10778 echo "configure: failed program was:" >&5
10748 cat conftest.$ac_ext >&5 10779 cat conftest.$ac_ext >&5
10775 fi 10806 fi
10776 fi 10807 fi
10777 10808
10778 if test "$with_database_berkdb" != "no"; then 10809 if test "$with_database_berkdb" != "no"; then
10779 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 10810 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
10780 echo "configure:10781: checking for Berkeley db.h" >&5 10811 echo "configure:10812: checking for Berkeley db.h" >&5
10781 for path in "db/db.h" "db.h"; do 10812 for path in "db/db.h" "db.h"; do
10782 cat > conftest.$ac_ext <<EOF 10813 cat > conftest.$ac_ext <<EOF
10783 #line 10784 "configure" 10814 #line 10815 "configure"
10784 #include "confdefs.h" 10815 #include "confdefs.h"
10785 #ifdef HAVE_INTTYPES_H 10816 #ifdef HAVE_INTTYPES_H
10786 #define __BIT_TYPES_DEFINED__ 10817 #define __BIT_TYPES_DEFINED__
10787 #include <inttypes.h> 10818 #include <inttypes.h>
10788 typedef uint8_t u_int8_t; 10819 typedef uint8_t u_int8_t;
10796 10827
10797 int main() { 10828 int main() {
10798 10829
10799 ; return 0; } 10830 ; return 0; }
10800 EOF 10831 EOF
10801 if { (eval echo configure:10802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10832 if { (eval echo configure:10833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10802 rm -rf conftest* 10833 rm -rf conftest*
10803 db_h_path="$path"; break 10834 db_h_path="$path"; break
10804 else 10835 else
10805 echo "configure: failed program was:" >&5 10836 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5 10837 cat conftest.$ac_ext >&5
10807 fi 10838 fi
10808 rm -f conftest* 10839 rm -f conftest*
10809 done 10840 done
10810 if test -z "$db_h_path" 10841 if test -z "$db_h_path"
10811 then echo "$ac_t""no" 1>&6; with_database_berkdb=no 10842 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
10812 else echo "$ac_t""$db_h_path" 1>&6 10843 else echo "$ac_t""$db_h_path" 1>&6
10813 fi 10844 fi
10814 10845
10815 if test "$with_database_berkdb" != "no"; then 10846 if test "$with_database_berkdb" != "no"; then
10816 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 10847 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
10817 echo "configure:10818: checking for Berkeley DB version" >&5 10848 echo "configure:10849: checking for Berkeley DB version" >&5
10818 cat > conftest.$ac_ext <<EOF 10849 cat > conftest.$ac_ext <<EOF
10819 #line 10820 "configure" 10850 #line 10851 "configure"
10820 #include "confdefs.h" 10851 #include "confdefs.h"
10821 #include <$db_h_path> 10852 #include <$db_h_path>
10822 #if DB_VERSION_MAJOR > 1 10853 #if DB_VERSION_MAJOR > 1
10823 yes 10854 yes
10824 #endif 10855 #endif
10833 echo "$ac_t""1" 1>&6; dbfunc=dbopen 10864 echo "$ac_t""1" 1>&6; dbfunc=dbopen
10834 fi 10865 fi
10835 rm -f conftest* 10866 rm -f conftest*
10836 10867
10837 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 10868 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
10838 echo "configure:10839: checking for $dbfunc" >&5 10869 echo "configure:10870: checking for $dbfunc" >&5
10839 10870
10840 cat > conftest.$ac_ext <<EOF 10871 cat > conftest.$ac_ext <<EOF
10841 #line 10842 "configure" 10872 #line 10873 "configure"
10842 #include "confdefs.h" 10873 #include "confdefs.h"
10843 /* System header to define __stub macros and hopefully few prototypes, 10874 /* System header to define __stub macros and hopefully few prototypes,
10844 which can conflict with char $dbfunc(); below. */ 10875 which can conflict with char $dbfunc(); below. */
10845 #include <assert.h> 10876 #include <assert.h>
10846 /* Override any gcc2 internal prototype to avoid an error. */ 10877 /* Override any gcc2 internal prototype to avoid an error. */
10859 $dbfunc(); 10890 $dbfunc();
10860 #endif 10891 #endif
10861 10892
10862 ; return 0; } 10893 ; return 0; }
10863 EOF 10894 EOF
10864 if { (eval echo configure:10865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10895 if { (eval echo configure:10896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10865 rm -rf conftest* 10896 rm -rf conftest*
10866 eval "ac_cv_func_$dbfunc=yes" 10897 eval "ac_cv_func_$dbfunc=yes"
10867 else 10898 else
10868 echo "configure: failed program was:" >&5 10899 echo "configure: failed program was:" >&5
10869 cat conftest.$ac_ext >&5 10900 cat conftest.$ac_ext >&5
10878 else 10909 else
10879 echo "$ac_t""no" 1>&6 10910 echo "$ac_t""no" 1>&6
10880 10911
10881 10912
10882 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 10913 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
10883 echo "configure:10884: checking for $dbfunc in -ldb" >&5 10914 echo "configure:10915: checking for $dbfunc in -ldb" >&5
10884 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 10915 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
10885 10916
10886 xe_check_libs=" -ldb " 10917 xe_check_libs=" -ldb "
10887 cat > conftest.$ac_ext <<EOF 10918 cat > conftest.$ac_ext <<EOF
10888 #line 10889 "configure" 10919 #line 10920 "configure"
10889 #include "confdefs.h" 10920 #include "confdefs.h"
10890 /* Override any gcc2 internal prototype to avoid an error. */ 10921 /* Override any gcc2 internal prototype to avoid an error. */
10891 /* We use char because int might match the return type of a gcc2 10922 /* We use char because int might match the return type of a gcc2
10892 builtin and then its argument prototype would still apply. */ 10923 builtin and then its argument prototype would still apply. */
10893 char $dbfunc(); 10924 char $dbfunc();
10894 10925
10895 int main() { 10926 int main() {
10896 $dbfunc() 10927 $dbfunc()
10897 ; return 0; } 10928 ; return 0; }
10898 EOF 10929 EOF
10899 if { (eval echo configure:10900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10930 if { (eval echo configure:10931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10900 rm -rf conftest* 10931 rm -rf conftest*
10901 eval "ac_cv_lib_$ac_lib_var=yes" 10932 eval "ac_cv_lib_$ac_lib_var=yes"
10902 else 10933 else
10903 echo "configure: failed program was:" >&5 10934 echo "configure: failed program was:" >&5
10904 cat conftest.$ac_ext >&5 10935 cat conftest.$ac_ext >&5
10958 fi 10989 fi
10959 10990
10960 if test "$with_socks" = "yes"; then 10991 if test "$with_socks" = "yes"; then
10961 10992
10962 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 10993 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
10963 echo "configure:10964: checking for SOCKSinit in -lsocks" >&5 10994 echo "configure:10995: checking for SOCKSinit in -lsocks" >&5
10964 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 10995 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
10965 10996
10966 xe_check_libs=" -lsocks " 10997 xe_check_libs=" -lsocks "
10967 cat > conftest.$ac_ext <<EOF 10998 cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure" 10999 #line 11000 "configure"
10969 #include "confdefs.h" 11000 #include "confdefs.h"
10970 /* Override any gcc2 internal prototype to avoid an error. */ 11001 /* Override any gcc2 internal prototype to avoid an error. */
10971 /* We use char because int might match the return type of a gcc2 11002 /* We use char because int might match the return type of a gcc2
10972 builtin and then its argument prototype would still apply. */ 11003 builtin and then its argument prototype would still apply. */
10973 char SOCKSinit(); 11004 char SOCKSinit();
10974 11005
10975 int main() { 11006 int main() {
10976 SOCKSinit() 11007 SOCKSinit()
10977 ; return 0; } 11008 ; return 0; }
10978 EOF 11009 EOF
10979 if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11010 if { (eval echo configure:11011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10980 rm -rf conftest* 11011 rm -rf conftest*
10981 eval "ac_cv_lib_$ac_lib_var=yes" 11012 eval "ac_cv_lib_$ac_lib_var=yes"
10982 else 11013 else
10983 echo "configure: failed program was:" >&5 11014 echo "configure: failed program was:" >&5
10984 cat conftest.$ac_ext >&5 11015 cat conftest.$ac_ext >&5
11031 11062
11032 for ac_hdr in dlfcn.h 11063 for ac_hdr in dlfcn.h
11033 do 11064 do
11034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11065 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11036 echo "configure:11037: checking for $ac_hdr" >&5 11067 echo "configure:11068: checking for $ac_hdr" >&5
11037 11068
11038 cat > conftest.$ac_ext <<EOF 11069 cat > conftest.$ac_ext <<EOF
11039 #line 11040 "configure" 11070 #line 11071 "configure"
11040 #include "confdefs.h" 11071 #include "confdefs.h"
11041 #include <$ac_hdr> 11072 #include <$ac_hdr>
11042 EOF 11073 EOF
11043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11044 { (eval echo configure:11045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11075 { (eval echo configure:11076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11045 ac_err=`grep -v '^ *+' conftest.out` 11076 ac_err=`grep -v '^ *+' conftest.out`
11046 if test -z "$ac_err"; then 11077 if test -z "$ac_err"; then
11047 rm -rf conftest* 11078 rm -rf conftest*
11048 eval "ac_cv_header_$ac_safe=yes" 11079 eval "ac_cv_header_$ac_safe=yes"
11049 else 11080 else
11070 fi 11101 fi
11071 done 11102 done
11072 11103
11073 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11104 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11074 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11105 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11075 echo "configure:11076: checking for dlopen in -ldl" >&5 11106 echo "configure:11107: checking for dlopen in -ldl" >&5
11076 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11107 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11077 11108
11078 xe_check_libs=" -ldl " 11109 xe_check_libs=" -ldl "
11079 cat > conftest.$ac_ext <<EOF 11110 cat > conftest.$ac_ext <<EOF
11080 #line 11081 "configure" 11111 #line 11112 "configure"
11081 #include "confdefs.h" 11112 #include "confdefs.h"
11082 /* Override any gcc2 internal prototype to avoid an error. */ 11113 /* Override any gcc2 internal prototype to avoid an error. */
11083 /* We use char because int might match the return type of a gcc2 11114 /* We use char because int might match the return type of a gcc2
11084 builtin and then its argument prototype would still apply. */ 11115 builtin and then its argument prototype would still apply. */
11085 char dlopen(); 11116 char dlopen();
11086 11117
11087 int main() { 11118 int main() {
11088 dlopen() 11119 dlopen()
11089 ; return 0; } 11120 ; return 0; }
11090 EOF 11121 EOF
11091 if { (eval echo configure:11092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11122 if { (eval echo configure:11123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11092 rm -rf conftest* 11123 rm -rf conftest*
11093 eval "ac_cv_lib_$ac_lib_var=yes" 11124 eval "ac_cv_lib_$ac_lib_var=yes"
11094 else 11125 else
11095 echo "configure: failed program was:" >&5 11126 echo "configure: failed program was:" >&5
11096 cat conftest.$ac_ext >&5 11127 cat conftest.$ac_ext >&5
11115 fi 11146 fi
11116 11147
11117 } 11148 }
11118 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11149 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11119 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 11150 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11120 echo "configure:11121: checking for _dlopen in -lc" >&5 11151 echo "configure:11152: checking for _dlopen in -lc" >&5
11121 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 11152 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11122 11153
11123 xe_check_libs=" -lc " 11154 xe_check_libs=" -lc "
11124 cat > conftest.$ac_ext <<EOF 11155 cat > conftest.$ac_ext <<EOF
11125 #line 11126 "configure" 11156 #line 11157 "configure"
11126 #include "confdefs.h" 11157 #include "confdefs.h"
11127 /* Override any gcc2 internal prototype to avoid an error. */ 11158 /* Override any gcc2 internal prototype to avoid an error. */
11128 /* We use char because int might match the return type of a gcc2 11159 /* We use char because int might match the return type of a gcc2
11129 builtin and then its argument prototype would still apply. */ 11160 builtin and then its argument prototype would still apply. */
11130 char _dlopen(); 11161 char _dlopen();
11131 11162
11132 int main() { 11163 int main() {
11133 _dlopen() 11164 _dlopen()
11134 ; return 0; } 11165 ; return 0; }
11135 EOF 11166 EOF
11136 if { (eval echo configure:11137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11167 if { (eval echo configure:11168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11137 rm -rf conftest* 11168 rm -rf conftest*
11138 eval "ac_cv_lib_$ac_lib_var=yes" 11169 eval "ac_cv_lib_$ac_lib_var=yes"
11139 else 11170 else
11140 echo "configure: failed program was:" >&5 11171 echo "configure: failed program was:" >&5
11141 cat conftest.$ac_ext >&5 11172 cat conftest.$ac_ext >&5
11160 fi 11191 fi
11161 11192
11162 } 11193 }
11163 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11194 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11164 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11195 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11165 echo "configure:11166: checking for dlopen in -lc" >&5 11196 echo "configure:11197: checking for dlopen in -lc" >&5
11166 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11197 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11167 11198
11168 xe_check_libs=" -lc " 11199 xe_check_libs=" -lc "
11169 cat > conftest.$ac_ext <<EOF 11200 cat > conftest.$ac_ext <<EOF
11170 #line 11171 "configure" 11201 #line 11202 "configure"
11171 #include "confdefs.h" 11202 #include "confdefs.h"
11172 /* Override any gcc2 internal prototype to avoid an error. */ 11203 /* Override any gcc2 internal prototype to avoid an error. */
11173 /* We use char because int might match the return type of a gcc2 11204 /* We use char because int might match the return type of a gcc2
11174 builtin and then its argument prototype would still apply. */ 11205 builtin and then its argument prototype would still apply. */
11175 char dlopen(); 11206 char dlopen();
11176 11207
11177 int main() { 11208 int main() {
11178 dlopen() 11209 dlopen()
11179 ; return 0; } 11210 ; return 0; }
11180 EOF 11211 EOF
11181 if { (eval echo configure:11182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11212 if { (eval echo configure:11213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11182 rm -rf conftest* 11213 rm -rf conftest*
11183 eval "ac_cv_lib_$ac_lib_var=yes" 11214 eval "ac_cv_lib_$ac_lib_var=yes"
11184 else 11215 else
11185 echo "configure: failed program was:" >&5 11216 echo "configure: failed program was:" >&5
11186 cat conftest.$ac_ext >&5 11217 cat conftest.$ac_ext >&5
11205 fi 11236 fi
11206 11237
11207 } 11238 }
11208 test -z "$with_shlib" && { 11239 test -z "$with_shlib" && {
11209 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11240 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11210 echo "configure:11211: checking for shl_load in -ldld" >&5 11241 echo "configure:11242: checking for shl_load in -ldld" >&5
11211 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11242 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11212 11243
11213 xe_check_libs=" -ldld " 11244 xe_check_libs=" -ldld "
11214 cat > conftest.$ac_ext <<EOF 11245 cat > conftest.$ac_ext <<EOF
11215 #line 11216 "configure" 11246 #line 11247 "configure"
11216 #include "confdefs.h" 11247 #include "confdefs.h"
11217 /* Override any gcc2 internal prototype to avoid an error. */ 11248 /* Override any gcc2 internal prototype to avoid an error. */
11218 /* We use char because int might match the return type of a gcc2 11249 /* We use char because int might match the return type of a gcc2
11219 builtin and then its argument prototype would still apply. */ 11250 builtin and then its argument prototype would still apply. */
11220 char shl_load(); 11251 char shl_load();
11221 11252
11222 int main() { 11253 int main() {
11223 shl_load() 11254 shl_load()
11224 ; return 0; } 11255 ; return 0; }
11225 EOF 11256 EOF
11226 if { (eval echo configure:11227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11257 if { (eval echo configure:11258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11227 rm -rf conftest* 11258 rm -rf conftest*
11228 eval "ac_cv_lib_$ac_lib_var=yes" 11259 eval "ac_cv_lib_$ac_lib_var=yes"
11229 else 11260 else
11230 echo "configure: failed program was:" >&5 11261 echo "configure: failed program was:" >&5
11231 cat conftest.$ac_ext >&5 11262 cat conftest.$ac_ext >&5
11250 fi 11281 fi
11251 11282
11252 } 11283 }
11253 test -z "$with_shlib" && { 11284 test -z "$with_shlib" && {
11254 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 11285 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11255 echo "configure:11256: checking for dld_init in -ldld" >&5 11286 echo "configure:11287: checking for dld_init in -ldld" >&5
11256 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 11287 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11257 11288
11258 xe_check_libs=" -ldld " 11289 xe_check_libs=" -ldld "
11259 cat > conftest.$ac_ext <<EOF 11290 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure" 11291 #line 11292 "configure"
11261 #include "confdefs.h" 11292 #include "confdefs.h"
11262 /* Override any gcc2 internal prototype to avoid an error. */ 11293 /* Override any gcc2 internal prototype to avoid an error. */
11263 /* We use char because int might match the return type of a gcc2 11294 /* We use char because int might match the return type of a gcc2
11264 builtin and then its argument prototype would still apply. */ 11295 builtin and then its argument prototype would still apply. */
11265 char dld_init(); 11296 char dld_init();
11266 11297
11267 int main() { 11298 int main() {
11268 dld_init() 11299 dld_init()
11269 ; return 0; } 11300 ; return 0; }
11270 EOF 11301 EOF
11271 if { (eval echo configure:11272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11302 if { (eval echo configure:11303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11272 rm -rf conftest* 11303 rm -rf conftest*
11273 eval "ac_cv_lib_$ac_lib_var=yes" 11304 eval "ac_cv_lib_$ac_lib_var=yes"
11274 else 11305 else
11275 echo "configure: failed program was:" >&5 11306 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5 11307 cat conftest.$ac_ext >&5
11316 dll_lflags="-shared" 11347 dll_lflags="-shared"
11317 dll_cflags="-r" 11348 dll_cflags="-r"
11318 dll_oflags="-o " 11349 dll_oflags="-o "
11319 11350
11320 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 11351 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
11321 echo "configure:11322: checking how to build a shared library" >&5 11352 echo "configure:11353: checking how to build a shared library" >&5
11322 case `uname -rs` in 11353 case `uname -rs` in
11323 UNIX_SV*|UNIX_System_V*) 11354 UNIX_SV*|UNIX_System_V*)
11324 dll_lflags="-G" 11355 dll_lflags="-G"
11325 dll_cflags=-Kpic 11356 dll_cflags=-Kpic
11326 dll_ld="ld" 11357 dll_ld="ld"
11407 11438
11408 11439
11409 for ac_func in dlerror 11440 for ac_func in dlerror
11410 do 11441 do
11411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11412 echo "configure:11413: checking for $ac_func" >&5 11443 echo "configure:11444: checking for $ac_func" >&5
11413 11444
11414 cat > conftest.$ac_ext <<EOF 11445 cat > conftest.$ac_ext <<EOF
11415 #line 11416 "configure" 11446 #line 11447 "configure"
11416 #include "confdefs.h" 11447 #include "confdefs.h"
11417 /* System header to define __stub macros and hopefully few prototypes, 11448 /* System header to define __stub macros and hopefully few prototypes,
11418 which can conflict with char $ac_func(); below. */ 11449 which can conflict with char $ac_func(); below. */
11419 #include <assert.h> 11450 #include <assert.h>
11420 /* Override any gcc2 internal prototype to avoid an error. */ 11451 /* Override any gcc2 internal prototype to avoid an error. */
11433 $ac_func(); 11464 $ac_func();
11434 #endif 11465 #endif
11435 11466
11436 ; return 0; } 11467 ; return 0; }
11437 EOF 11468 EOF
11438 if { (eval echo configure:11439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11469 if { (eval echo configure:11470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11439 rm -rf conftest* 11470 rm -rf conftest*
11440 eval "ac_cv_func_$ac_func=yes" 11471 eval "ac_cv_func_$ac_func=yes"
11441 else 11472 else
11442 echo "configure: failed program was:" >&5 11473 echo "configure: failed program was:" >&5
11443 cat conftest.$ac_ext >&5 11474 cat conftest.$ac_ext >&5
11469 *) ;; 11500 *) ;;
11470 esac 11501 esac
11471 fi 11502 fi
11472 11503
11473 cat > conftest.$ac_ext <<EOF 11504 cat > conftest.$ac_ext <<EOF
11474 #line 11475 "configure" 11505 #line 11506 "configure"
11475 #include "confdefs.h" 11506 #include "confdefs.h"
11476 int main(int c,char *v[]){return 0;} 11507 int main(int c,char *v[]){return 0;}
11477 EOF 11508 EOF
11478 if { (eval echo configure:11479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 11509 if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11479 then 11510 then
11480 : 11511 :
11481 else 11512 else
11513 conftest_rc="$?"
11482 echo "configure: failed program was:" >&5 11514 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5 11515 cat conftest.$ac_ext >&5
11484 rm -fr conftest* 11516 rm -fr conftest*
11485 11517
11486 echo "" 11518 echo ""
11613 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then 11645 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
11614 echo "creating src/gdbinit"; echo "" 11646 echo "creating src/gdbinit"; echo ""
11615 echo "source $srcdir/src/gdbinit" > src/gdbinit 11647 echo "source $srcdir/src/gdbinit" > src/gdbinit
11616 fi 11648 fi
11617 11649
11618 if test "$__sunpro_c" = "yes"; then 11650 if test "$__SUNPRO_C" = "yes"; then
11619 echo "creating .sbinit"; echo "" 11651 echo "creating .sbinit"; echo ""
11620 ( echo "# For use with Sun WorkShop's Source browser." 11652 ( echo "# For use with Sun WorkShop's Source browser."
11621 echo "# See sbquery(1) and sbinit(4) for more information" 11653 echo "# See sbquery(1) and sbinit(4) for more information"
11622 for dir in $MAKE_SUBDIR; do echo "import $dir"; done 11654 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
11623 ) > .sbinit 11655 ) > .sbinit