comparison configure @ 373:6240c7796c7a r21-2b2

Import from CVS: tag r21-2b2
author cvs
date Mon, 13 Aug 2007 11:04:06 +0200
parents cc15677e0335
children a300bb07d72d
comparison
equal deleted inserted replaced
372:49e1ed2d7ed8 373:6240c7796c7a
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 ;;
1032 *-*-ultrix* ) opsys=ultrix4-3 ;; 1032 *-*-ultrix* ) opsys=ultrix4-3 ;;
1033 1033
1034 *-*-aix3.1* ) opsys=aix3-1 ;; 1034 *-*-aix3.1* ) opsys=aix3-1 ;;
1035 *-*-aix3.2.5 ) opsys=aix3-2-5 ;; 1035 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1036 *-*-aix3* ) opsys=aix3-2 ;; 1036 *-*-aix3* ) opsys=aix3-2 ;;
1037 *-*-aix4.2* ) opsys=aix4-2 ;; 1037 *-*-aix4.0* ) opsys=aix4 ;;
1038 *-*-aix4.1* ) opsys=aix4-1 ;; 1038 *-*-aix4.1* ) opsys=aix4-1 ;;
1039 *-*-aix4* ) opsys=aix4 ;; 1039 *-*-aix4* ) opsys=aix4-2 ;;
1040 1040
1041 *-gnu* ) opsys=gnu ;; 1041 *-gnu* ) opsys=gnu ;;
1042 *-*-bsd4.[01] ) opsys=bsd4-1 ;; 1042 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1043 *-*-bsd4.2 ) opsys=bsd4-2 ;; 1043 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1044 *-*-bsd4.3 ) opsys=bsd4-3 ;; 1044 *-*-bsd4.3 ) opsys=bsd4-3 ;;
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="-g -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
2950 else 2963 else
2951 echo "$ac_t""no" 1>&6 2964 echo "$ac_t""no" 1>&6
2952 fi 2965 fi
2953 done 2966 done
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 cygwin32/version.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 xpm_problem=""
6505 if test -z "$with_xpm"; then
6481 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6506 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 6507 echo "configure:6508: checking for Xpm - no older than 3.4f" >&5
6483 xe_check_libs=-lXpm 6508 xe_check_libs=-lXpm
6484 cat > conftest.$ac_ext <<EOF 6509 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure" 6510 #line 6511 "configure"
6486 #include "confdefs.h" 6511 #include "confdefs.h"
6487 #include <X11/xpm.h> 6512 #include <X11/xpm.h>
6488 int main(int c, char **v) { 6513 int main(int c, char **v) {
6489 return c == 1 ? 0 : 6514 return c == 1 ? 0 :
6490 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6515 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6491 XpmIncludeVersion < 30406 ? 2 : 0 ;} 6516 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6492 EOF 6517 EOF
6493 if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6494 then 6519 then
6495 ./conftest dummy_arg; xpm_status=$?; 6520 ./conftest dummy_arg; xpm_status=$?;
6496 if test "$?" = "0"; then 6521 if test "$xpm_status" = "0"; then
6497 with_xpm=yes; 6522 with_xpm=yes;
6498 else 6523 else
6499 with_xpm=no; 6524 with_xpm=no;
6500 if test "$?" = "1"; then 6525 if test "$xpm_status" = "1"; then
6501 xpm_problem="Xpm library version and header file version don't match!" 6526 xpm_problem="Xpm library version and header file version don't match!"
6502 elif test "$?" = "2"; then 6527 elif test "$xpm_status" = "2"; then
6503 xpm_problem="Xpm library version is too old!" 6528 xpm_problem="Xpm library version is too old!"
6504 else 6529 else
6505 xpm_problem="Internal xpm detection logic error!" 6530 xpm_problem="Internal xpm detection logic error!"
6506 fi 6531 fi
6507 echo " 6532 echo "
6508 *** WARNING *** $problem 6533 *** WARNING *** $xpm_problem
6509 I'm not touching that with a 10-foot pole! 6534 I'm not touching that with a 10-foot pole!
6510 If you really want to use the installed version of Xpm, rerun 6535 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!" 6536 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
6512 fi 6537 fi
6513 else 6538 else
6539 conftest_rc="$?"
6514 echo "configure: failed program was:" >&5 6540 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5 6541 cat conftest.$ac_ext >&5
6516 rm -fr conftest* 6542 rm -fr conftest*
6517 with_xpm=no 6543 with_xpm=no
6518 fi 6544 fi
6529 EOF 6555 EOF
6530 } 6556 }
6531 6557
6532 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6558 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 6559 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6534 echo "configure:6535: checking for \"FOR_MSW\" xpm" >&5 6560 echo "configure:6561: checking for \"FOR_MSW\" xpm" >&5
6535 xe_check_libs=-lXpm 6561 xe_check_libs=-lXpm
6536 cat > conftest.$ac_ext <<EOF 6562 cat > conftest.$ac_ext <<EOF
6537 #line 6538 "configure" 6563 #line 6564 "configure"
6538 #include "confdefs.h" 6564 #include "confdefs.h"
6539 6565
6540 int main() { 6566 int main() {
6541 XpmCreatePixmapFromData() 6567 XpmCreatePixmapFromData()
6542 ; return 0; } 6568 ; return 0; }
6543 EOF 6569 EOF
6544 if { (eval echo configure:6545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6570 if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6545 rm -rf conftest* 6571 rm -rf conftest*
6546 xpm_for_msw=no 6572 xpm_for_msw=no
6547 else 6573 else
6548 echo "configure: failed program was:" >&5 6574 echo "configure: failed program was:" >&5
6549 cat conftest.$ac_ext >&5 6575 cat conftest.$ac_ext >&5
6563 } 6589 }
6564 6590
6565 fi 6591 fi
6566 fi 6592 fi
6567 6593
6594 if test "$with_gif" != "no"; then
6595 with_gif="yes"
6596 { test "$extra_verbose" = "yes" && cat << \EOF
6597 Defining HAVE_GIF
6598 EOF
6599 cat >> confdefs.h <<\EOF
6600 #define HAVE_GIF 1
6601 EOF
6602 }
6603
6604 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
6605 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
6606 fi
6607 fi
6608
6568 if test "$with_png $with_tiff" != "no no"; then 6609 if test "$with_png $with_tiff" != "no no"; then
6569 6610
6570 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 6611 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6571 echo "configure:6572: checking for inflate in -lc" >&5 6612 echo "configure:6613: checking for inflate in -lc" >&5
6572 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 6613 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6573 6614
6574 xe_check_libs=" -lc " 6615 xe_check_libs=" -lc "
6575 cat > conftest.$ac_ext <<EOF 6616 cat > conftest.$ac_ext <<EOF
6576 #line 6577 "configure" 6617 #line 6618 "configure"
6577 #include "confdefs.h" 6618 #include "confdefs.h"
6578 /* Override any gcc2 internal prototype to avoid an error. */ 6619 /* Override any gcc2 internal prototype to avoid an error. */
6579 /* We use char because int might match the return type of a gcc2 6620 /* We use char because int might match the return type of a gcc2
6580 builtin and then its argument prototype would still apply. */ 6621 builtin and then its argument prototype would still apply. */
6581 char inflate(); 6622 char inflate();
6582 6623
6583 int main() { 6624 int main() {
6584 inflate() 6625 inflate()
6585 ; return 0; } 6626 ; return 0; }
6586 EOF 6627 EOF
6587 if { (eval echo configure:6588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6628 if { (eval echo configure:6629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6588 rm -rf conftest* 6629 rm -rf conftest*
6589 eval "ac_cv_lib_$ac_lib_var=yes" 6630 eval "ac_cv_lib_$ac_lib_var=yes"
6590 else 6631 else
6591 echo "configure: failed program was:" >&5 6632 echo "configure: failed program was:" >&5
6592 cat conftest.$ac_ext >&5 6633 cat conftest.$ac_ext >&5
6601 : 6642 :
6602 else 6643 else
6603 echo "$ac_t""no" 1>&6 6644 echo "$ac_t""no" 1>&6
6604 6645
6605 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 6646 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6606 echo "configure:6607: checking for inflate in -lz" >&5 6647 echo "configure:6648: checking for inflate in -lz" >&5
6607 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 6648 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6608 6649
6609 xe_check_libs=" -lz " 6650 xe_check_libs=" -lz "
6610 cat > conftest.$ac_ext <<EOF 6651 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure" 6652 #line 6653 "configure"
6612 #include "confdefs.h" 6653 #include "confdefs.h"
6613 /* Override any gcc2 internal prototype to avoid an error. */ 6654 /* Override any gcc2 internal prototype to avoid an error. */
6614 /* We use char because int might match the return type of a gcc2 6655 /* We use char because int might match the return type of a gcc2
6615 builtin and then its argument prototype would still apply. */ 6656 builtin and then its argument prototype would still apply. */
6616 char inflate(); 6657 char inflate();
6617 6658
6618 int main() { 6659 int main() {
6619 inflate() 6660 inflate()
6620 ; return 0; } 6661 ; return 0; }
6621 EOF 6662 EOF
6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6663 if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6623 rm -rf conftest* 6664 rm -rf conftest*
6624 eval "ac_cv_lib_$ac_lib_var=yes" 6665 eval "ac_cv_lib_$ac_lib_var=yes"
6625 else 6666 else
6626 echo "configure: failed program was:" >&5 6667 echo "configure: failed program was:" >&5
6627 cat conftest.$ac_ext >&5 6668 cat conftest.$ac_ext >&5
6636 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 6677 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6637 else 6678 else
6638 echo "$ac_t""no" 1>&6 6679 echo "$ac_t""no" 1>&6
6639 6680
6640 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 6681 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6641 echo "configure:6642: checking for inflate in -lgz" >&5 6682 echo "configure:6683: checking for inflate in -lgz" >&5
6642 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 6683 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6643 6684
6644 xe_check_libs=" -lgz " 6685 xe_check_libs=" -lgz "
6645 cat > conftest.$ac_ext <<EOF 6686 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure" 6687 #line 6688 "configure"
6647 #include "confdefs.h" 6688 #include "confdefs.h"
6648 /* Override any gcc2 internal prototype to avoid an error. */ 6689 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2 6690 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */ 6691 builtin and then its argument prototype would still apply. */
6651 char inflate(); 6692 char inflate();
6652 6693
6653 int main() { 6694 int main() {
6654 inflate() 6695 inflate()
6655 ; return 0; } 6696 ; return 0; }
6656 EOF 6697 EOF
6657 if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6698 if { (eval echo configure:6699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6658 rm -rf conftest* 6699 rm -rf conftest*
6659 eval "ac_cv_lib_$ac_lib_var=yes" 6700 eval "ac_cv_lib_$ac_lib_var=yes"
6660 else 6701 else
6661 echo "configure: failed program was:" >&5 6702 echo "configure: failed program was:" >&5
6662 cat conftest.$ac_ext >&5 6703 cat conftest.$ac_ext >&5
6680 fi 6721 fi
6681 6722
6682 6723
6683 fi 6724 fi
6684 6725
6685 echo $ac_n "checking for gifreader""... $ac_c" 1>&6 6726 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6686 echo "configure:6687: checking for gifreader" >&5 6727 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6687 test -z "$with_gif" && { ac_safe=`echo "gifrlib.h" | sed 'y%./+-%__p_%'` 6728 echo "configure:6729: checking for jpeglib.h" >&5
6688 echo $ac_n "checking for gifrlib.h""... $ac_c" 1>&6 6729
6689 echo "configure:6690: checking for gifrlib.h" >&5 6730 cat > conftest.$ac_ext <<EOF
6690 6731 #line 6732 "configure"
6691 cat > conftest.$ac_ext <<EOF 6732 #include "confdefs.h"
6692 #line 6693 "configure" 6733 #include <jpeglib.h>
6693 #include "confdefs.h"
6694 #include <gifrlib.h>
6695 EOF 6734 EOF
6696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6735 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; } 6736 { (eval echo configure:6737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6698 ac_err=`grep -v '^ *+' conftest.out` 6737 ac_err=`grep -v '^ *+' conftest.out`
6699 if test -z "$ac_err"; then 6738 if test -z "$ac_err"; then
6700 rm -rf conftest* 6739 rm -rf conftest*
6701 eval "ac_cv_header_$ac_safe=yes" 6740 eval "ac_cv_header_$ac_safe=yes"
6702 else 6741 else
6710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6711 echo "$ac_t""yes" 1>&6 6750 echo "$ac_t""yes" 1>&6
6712 : 6751 :
6713 else 6752 else
6714 echo "$ac_t""no" 1>&6 6753 echo "$ac_t""no" 1>&6
6715 with_gif=no
6716 fi
6717 }
6718 test -z "$with_gif" && {
6719 echo $ac_n "checking for GetGifError in -lgifreader""... $ac_c" 1>&6
6720 echo "configure:6721: checking for GetGifError in -lgifreader" >&5
6721 ac_lib_var=`echo gifreader'_'GetGifError | sed 'y%./+-%__p_%'`
6722
6723 xe_check_libs=" -lgifreader "
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 /* Override any gcc2 internal prototype to avoid an error. */
6728 /* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */
6730 char GetGifError();
6731
6732 int main() {
6733 GetGifError()
6734 ; return 0; }
6735 EOF
6736 if { (eval echo configure:6737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6737 rm -rf conftest*
6738 eval "ac_cv_lib_$ac_lib_var=yes"
6739 else
6740 echo "configure: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6742 rm -rf conftest*
6743 eval "ac_cv_lib_$ac_lib_var=no"
6744 fi
6745 rm -f conftest*
6746 xe_check_libs=""
6747
6748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6749 echo "$ac_t""yes" 1>&6
6750 :
6751 else
6752 echo "$ac_t""no" 1>&6
6753 with_gif=no
6754 fi
6755
6756 }
6757 test -z "$with_gif" && with_gif=yes
6758 if test "$with_gif" = "yes"; then
6759 { test "$extra_verbose" = "yes" && cat << \EOF
6760 Defining HAVE_GIF
6761 EOF
6762 cat >> confdefs.h <<\EOF
6763 #define HAVE_GIF 1
6764 EOF
6765 }
6766
6767 libs_x="-lgifreader $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgifreader\" to \$libs_x"; fi
6768 fi
6769
6770 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6771 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6772 echo "configure:6773: checking for jpeglib.h" >&5
6773
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 #include <jpeglib.h>
6778 EOF
6779 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; }
6781 ac_err=`grep -v '^ *+' conftest.out`
6782 if test -z "$ac_err"; then
6783 rm -rf conftest*
6784 eval "ac_cv_header_$ac_safe=yes"
6785 else
6786 echo "$ac_err" >&5
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 rm -rf conftest*
6790 eval "ac_cv_header_$ac_safe=no"
6791 fi
6792 rm -f conftest*
6793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6794 echo "$ac_t""yes" 1>&6
6795 :
6796 else
6797 echo "$ac_t""no" 1>&6
6798 with_jpeg=no 6754 with_jpeg=no
6799 fi 6755 fi
6800 } 6756 }
6801 test -z "$with_jpeg" && { 6757 test -z "$with_jpeg" && {
6802 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6758 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 6759 echo "configure:6760: checking for jpeg_destroy_decompress in -ljpeg" >&5
6804 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6760 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6805 6761
6806 xe_check_libs=" -ljpeg " 6762 xe_check_libs=" -ljpeg "
6807 cat > conftest.$ac_ext <<EOF 6763 cat > conftest.$ac_ext <<EOF
6808 #line 6809 "configure" 6764 #line 6765 "configure"
6809 #include "confdefs.h" 6765 #include "confdefs.h"
6810 /* Override any gcc2 internal prototype to avoid an error. */ 6766 /* Override any gcc2 internal prototype to avoid an error. */
6811 /* We use char because int might match the return type of a gcc2 6767 /* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */ 6768 builtin and then its argument prototype would still apply. */
6813 char jpeg_destroy_decompress(); 6769 char jpeg_destroy_decompress();
6814 6770
6815 int main() { 6771 int main() {
6816 jpeg_destroy_decompress() 6772 jpeg_destroy_decompress()
6817 ; return 0; } 6773 ; return 0; }
6818 EOF 6774 EOF
6819 if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6775 if { (eval echo configure:6776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6820 rm -rf conftest* 6776 rm -rf conftest*
6821 eval "ac_cv_lib_$ac_lib_var=yes" 6777 eval "ac_cv_lib_$ac_lib_var=yes"
6822 else 6778 else
6823 echo "configure: failed program was:" >&5 6779 echo "configure: failed program was:" >&5
6824 cat conftest.$ac_ext >&5 6780 cat conftest.$ac_ext >&5
6848 } 6804 }
6849 6805
6850 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6806 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6851 fi 6807 fi
6852 6808
6853 if test -z "$with_png"; then 6809 png_problem=""
6854 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
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6859 #include <png.h>
6860 #if PNG_LIBPNG_VER >= 96
6861 yes
6862 #endif
6863
6864 EOF
6865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6866 egrep "yes" >/dev/null 2>&1; then
6867 rm -rf conftest*
6868 echo "$ac_t""yes" 1>&6
6869 else
6870 rm -rf conftest*
6871 echo "$ac_t""no" 1>&6; with_png=no
6872 fi
6873 rm -f conftest*
6874
6875 fi
6876 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6810 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6877 echo "configure:6878: checking for pow" >&5 6811 echo "configure:6812: checking for pow" >&5
6878 6812
6879 cat > conftest.$ac_ext <<EOF 6813 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure" 6814 #line 6815 "configure"
6881 #include "confdefs.h" 6815 #include "confdefs.h"
6882 /* System header to define __stub macros and hopefully few prototypes, 6816 /* System header to define __stub macros and hopefully few prototypes,
6883 which can conflict with char pow(); below. */ 6817 which can conflict with char pow(); below. */
6884 #include <assert.h> 6818 #include <assert.h>
6885 /* Override any gcc2 internal prototype to avoid an error. */ 6819 /* Override any gcc2 internal prototype to avoid an error. */
6898 pow(); 6832 pow();
6899 #endif 6833 #endif
6900 6834
6901 ; return 0; } 6835 ; return 0; }
6902 EOF 6836 EOF
6903 if { (eval echo configure:6904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6837 if { (eval echo configure:6838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6904 rm -rf conftest* 6838 rm -rf conftest*
6905 eval "ac_cv_func_pow=yes" 6839 eval "ac_cv_func_pow=yes"
6906 else 6840 else
6907 echo "configure: failed program was:" >&5 6841 echo "configure: failed program was:" >&5
6908 cat conftest.$ac_ext >&5 6842 cat conftest.$ac_ext >&5
6917 else 6851 else
6918 echo "$ac_t""no" 1>&6 6852 echo "$ac_t""no" 1>&6
6919 with_png=no 6853 with_png=no
6920 fi 6854 fi
6921 } 6855 }
6856 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6857 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6858 echo "configure:6859: checking for png.h" >&5
6859
6860 cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6863 #include <png.h>
6864 EOF
6865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6866 { (eval echo configure:6867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6867 ac_err=`grep -v '^ *+' conftest.out`
6868 if test -z "$ac_err"; then
6869 rm -rf conftest*
6870 eval "ac_cv_header_$ac_safe=yes"
6871 else
6872 echo "$ac_err" >&5
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6875 rm -rf conftest*
6876 eval "ac_cv_header_$ac_safe=no"
6877 fi
6878 rm -f conftest*
6879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6880 echo "$ac_t""yes" 1>&6
6881 :
6882 else
6883 echo "$ac_t""no" 1>&6
6884 with_png=no
6885 fi
6886 }
6922 test -z "$with_png" && { 6887 test -z "$with_png" && {
6923 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 6888 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 6889 echo "configure:6890: checking for png_read_image in -lpng" >&5
6925 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6890 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6926 6891
6927 xe_check_libs=" -lpng " 6892 xe_check_libs=" -lpng "
6928 cat > conftest.$ac_ext <<EOF 6893 cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure" 6894 #line 6895 "configure"
6930 #include "confdefs.h" 6895 #include "confdefs.h"
6931 /* Override any gcc2 internal prototype to avoid an error. */ 6896 /* Override any gcc2 internal prototype to avoid an error. */
6932 /* We use char because int might match the return type of a gcc2 6897 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */ 6898 builtin and then its argument prototype would still apply. */
6934 char png_read_image(); 6899 char png_read_image();
6935 6900
6936 int main() { 6901 int main() {
6937 png_read_image() 6902 png_read_image()
6938 ; return 0; } 6903 ; return 0; }
6939 EOF 6904 EOF
6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6905 if { (eval echo configure:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6941 rm -rf conftest* 6906 rm -rf conftest*
6942 eval "ac_cv_lib_$ac_lib_var=yes" 6907 eval "ac_cv_lib_$ac_lib_var=yes"
6943 else 6908 else
6944 echo "configure: failed program was:" >&5 6909 echo "configure: failed program was:" >&5
6945 cat conftest.$ac_ext >&5 6910 cat conftest.$ac_ext >&5
6956 echo "$ac_t""no" 1>&6 6921 echo "$ac_t""no" 1>&6
6957 with_png=no 6922 with_png=no
6958 fi 6923 fi
6959 6924
6960 } 6925 }
6961 test -z "$with_png" && with_png=yes 6926 if test -z "$with_png"; then
6927 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
6928 echo "configure:6929: checking for workable png version information" >&5
6929 xe_check_libs="-lpng -lz"
6930 cat > conftest.$ac_ext <<EOF
6931 #line 6932 "configure"
6932 #include "confdefs.h"
6933 #include <png.h>
6934 int main(int c, char **v) {
6935 if (c == 1) return 0;
6936 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
6937 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
6938 EOF
6939 if { (eval echo configure:6940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6940 then
6941 ./conftest dummy_arg; png_status=$?;
6942 if test "$png_status" = "0"; then
6943 with_png=yes;
6944 else
6945 with_png=no;
6946 if test "$png_status" = "1"; then
6947 png_problem="PNG library version and header file don't match!"
6948 elif test "$png_status" = "2"; then
6949 png_problem="PNG library version too old (pre 1.0.2)!"
6950 fi
6951 echo "
6952 *** WARNING *** $png_problem
6953 I'm not touching that with a 10-foot pole!
6954 If you really want to use the installed version of libPNG, rerun
6955 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
6956 fi
6957 else
6958 conftest_rc="$?"
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6961 rm -fr conftest*
6962 with_png=no
6963 fi
6964 rm -fr conftest*
6965 xe_check_libs=
6966 echo "$ac_t""$with_png" 1>&6
6967 fi
6962 if test "$with_png" = "yes"; then 6968 if test "$with_png" = "yes"; then
6963 { test "$extra_verbose" = "yes" && cat << \EOF 6969 { test "$extra_verbose" = "yes" && cat << \EOF
6964 Defining HAVE_PNG 6970 Defining HAVE_PNG
6965 EOF 6971 EOF
6966 cat >> confdefs.h <<\EOF 6972 cat >> confdefs.h <<\EOF
6971 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 6977 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
6972 fi 6978 fi
6973 6979
6974 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 6980 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
6975 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 6981 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
6976 echo "configure:6977: checking for tiffio.h" >&5 6982 echo "configure:6983: checking for tiffio.h" >&5
6977 6983
6978 cat > conftest.$ac_ext <<EOF 6984 cat > conftest.$ac_ext <<EOF
6979 #line 6980 "configure" 6985 #line 6986 "configure"
6980 #include "confdefs.h" 6986 #include "confdefs.h"
6981 #include <tiffio.h> 6987 #include <tiffio.h>
6982 EOF 6988 EOF
6983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6989 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; } 6990 { (eval echo configure:6991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6985 ac_err=`grep -v '^ *+' conftest.out` 6991 ac_err=`grep -v '^ *+' conftest.out`
6986 if test -z "$ac_err"; then 6992 if test -z "$ac_err"; then
6987 rm -rf conftest* 6993 rm -rf conftest*
6988 eval "ac_cv_header_$ac_safe=yes" 6994 eval "ac_cv_header_$ac_safe=yes"
6989 else 6995 else
7002 with_tiff=no 7008 with_tiff=no
7003 fi 7009 fi
7004 } 7010 }
7005 test -z "$with_tiff" && { 7011 test -z "$with_tiff" && {
7006 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7012 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7007 echo "configure:7008: checking for TIFFClientOpen in -ltiff" >&5 7013 echo "configure:7014: checking for TIFFClientOpen in -ltiff" >&5
7008 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7014 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7009 7015
7010 xe_check_libs=" -ltiff " 7016 xe_check_libs=" -ltiff "
7011 cat > conftest.$ac_ext <<EOF 7017 cat > conftest.$ac_ext <<EOF
7012 #line 7013 "configure" 7018 #line 7019 "configure"
7013 #include "confdefs.h" 7019 #include "confdefs.h"
7014 /* Override any gcc2 internal prototype to avoid an error. */ 7020 /* Override any gcc2 internal prototype to avoid an error. */
7015 /* We use char because int might match the return type of a gcc2 7021 /* We use char because int might match the return type of a gcc2
7016 builtin and then its argument prototype would still apply. */ 7022 builtin and then its argument prototype would still apply. */
7017 char TIFFClientOpen(); 7023 char TIFFClientOpen();
7018 7024
7019 int main() { 7025 int main() {
7020 TIFFClientOpen() 7026 TIFFClientOpen()
7021 ; return 0; } 7027 ; return 0; }
7022 EOF 7028 EOF
7023 if { (eval echo configure:7024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7029 if { (eval echo configure:7030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7024 rm -rf conftest* 7030 rm -rf conftest*
7025 eval "ac_cv_lib_$ac_lib_var=yes" 7031 eval "ac_cv_lib_$ac_lib_var=yes"
7026 else 7032 else
7027 echo "configure: failed program was:" >&5 7033 echo "configure: failed program was:" >&5
7028 cat conftest.$ac_ext >&5 7034 cat conftest.$ac_ext >&5
7057 7063
7058 7064
7059 if test "$with_x11" = "yes"; then 7065 if test "$with_x11" = "yes"; then
7060 7066
7061 echo "checking for X11 graphics libraries" 1>&6 7067 echo "checking for X11 graphics libraries" 1>&6
7062 echo "configure:7063: checking for X11 graphics libraries" >&5 7068 echo "configure:7069: checking for X11 graphics libraries" >&5
7063 7069
7064 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7070 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7065 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7071 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7066 echo "configure:7067: checking for compface.h" >&5 7072 echo "configure:7073: checking for compface.h" >&5
7067 7073
7068 cat > conftest.$ac_ext <<EOF 7074 cat > conftest.$ac_ext <<EOF
7069 #line 7070 "configure" 7075 #line 7076 "configure"
7070 #include "confdefs.h" 7076 #include "confdefs.h"
7071 #include <compface.h> 7077 #include <compface.h>
7072 EOF 7078 EOF
7073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7079 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; } 7080 { (eval echo configure:7081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7075 ac_err=`grep -v '^ *+' conftest.out` 7081 ac_err=`grep -v '^ *+' conftest.out`
7076 if test -z "$ac_err"; then 7082 if test -z "$ac_err"; then
7077 rm -rf conftest* 7083 rm -rf conftest*
7078 eval "ac_cv_header_$ac_safe=yes" 7084 eval "ac_cv_header_$ac_safe=yes"
7079 else 7085 else
7092 with_xface=no 7098 with_xface=no
7093 fi 7099 fi
7094 } 7100 }
7095 test -z "$with_xface" && { 7101 test -z "$with_xface" && {
7096 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7102 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7097 echo "configure:7098: checking for UnGenFace in -lcompface" >&5 7103 echo "configure:7104: checking for UnGenFace in -lcompface" >&5
7098 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7104 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7099 7105
7100 xe_check_libs=" -lcompface " 7106 xe_check_libs=" -lcompface "
7101 cat > conftest.$ac_ext <<EOF 7107 cat > conftest.$ac_ext <<EOF
7102 #line 7103 "configure" 7108 #line 7109 "configure"
7103 #include "confdefs.h" 7109 #include "confdefs.h"
7104 /* Override any gcc2 internal prototype to avoid an error. */ 7110 /* Override any gcc2 internal prototype to avoid an error. */
7105 /* We use char because int might match the return type of a gcc2 7111 /* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */ 7112 builtin and then its argument prototype would still apply. */
7107 char UnGenFace(); 7113 char UnGenFace();
7108 7114
7109 int main() { 7115 int main() {
7110 UnGenFace() 7116 UnGenFace()
7111 ; return 0; } 7117 ; return 0; }
7112 EOF 7118 EOF
7113 if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7119 if { (eval echo configure:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7114 rm -rf conftest* 7120 rm -rf conftest*
7115 eval "ac_cv_lib_$ac_lib_var=yes" 7121 eval "ac_cv_lib_$ac_lib_var=yes"
7116 else 7122 else
7117 echo "configure: failed program was:" >&5 7123 echo "configure: failed program was:" >&5
7118 cat conftest.$ac_ext >&5 7124 cat conftest.$ac_ext >&5
7144 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 7150 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7145 fi 7151 fi
7146 7152
7147 7153
7148 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 7154 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7149 echo "configure:7150: checking for XawScrollbarSetThumb in -lXaw" >&5 7155 echo "configure:7156: checking for XawScrollbarSetThumb in -lXaw" >&5
7150 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7156 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7151 7157
7152 xe_check_libs=" -lXaw " 7158 xe_check_libs=" -lXaw "
7153 cat > conftest.$ac_ext <<EOF 7159 cat > conftest.$ac_ext <<EOF
7154 #line 7155 "configure" 7160 #line 7161 "configure"
7155 #include "confdefs.h" 7161 #include "confdefs.h"
7156 /* Override any gcc2 internal prototype to avoid an error. */ 7162 /* Override any gcc2 internal prototype to avoid an error. */
7157 /* We use char because int might match the return type of a gcc2 7163 /* We use char because int might match the return type of a gcc2
7158 builtin and then its argument prototype would still apply. */ 7164 builtin and then its argument prototype would still apply. */
7159 char XawScrollbarSetThumb(); 7165 char XawScrollbarSetThumb();
7160 7166
7161 int main() { 7167 int main() {
7162 XawScrollbarSetThumb() 7168 XawScrollbarSetThumb()
7163 ; return 0; } 7169 ; return 0; }
7164 EOF 7170 EOF
7165 if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7171 if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7166 rm -rf conftest* 7172 rm -rf conftest*
7167 eval "ac_cv_lib_$ac_lib_var=yes" 7173 eval "ac_cv_lib_$ac_lib_var=yes"
7168 else 7174 else
7169 echo "configure: failed program was:" >&5 7175 echo "configure: failed program was:" >&5
7170 cat conftest.$ac_ext >&5 7176 cat conftest.$ac_ext >&5
7184 7190
7185 7191
7186 7192
7187 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 7193 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7188 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 7194 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7189 echo "configure:7190: checking for Xm/Xm.h" >&5 7195 echo "configure:7196: checking for Xm/Xm.h" >&5
7190 7196
7191 cat > conftest.$ac_ext <<EOF 7197 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure" 7198 #line 7199 "configure"
7193 #include "confdefs.h" 7199 #include "confdefs.h"
7194 #include <Xm/Xm.h> 7200 #include <Xm/Xm.h>
7195 EOF 7201 EOF
7196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7202 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; } 7203 { (eval echo configure:7204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7198 ac_err=`grep -v '^ *+' conftest.out` 7204 ac_err=`grep -v '^ *+' conftest.out`
7199 if test -z "$ac_err"; then 7205 if test -z "$ac_err"; then
7200 rm -rf conftest* 7206 rm -rf conftest*
7201 eval "ac_cv_header_$ac_safe=yes" 7207 eval "ac_cv_header_$ac_safe=yes"
7202 else 7208 else
7209 rm -f conftest* 7215 rm -f conftest*
7210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7211 echo "$ac_t""yes" 1>&6 7217 echo "$ac_t""yes" 1>&6
7212 7218
7213 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 7219 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7214 echo "configure:7215: checking for XmStringFree in -lXm" >&5 7220 echo "configure:7221: checking for XmStringFree in -lXm" >&5
7215 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 7221 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7216 7222
7217 xe_check_libs=" -lXm " 7223 xe_check_libs=" -lXm "
7218 cat > conftest.$ac_ext <<EOF 7224 cat > conftest.$ac_ext <<EOF
7219 #line 7220 "configure" 7225 #line 7226 "configure"
7220 #include "confdefs.h" 7226 #include "confdefs.h"
7221 /* Override any gcc2 internal prototype to avoid an error. */ 7227 /* Override any gcc2 internal prototype to avoid an error. */
7222 /* We use char because int might match the return type of a gcc2 7228 /* We use char because int might match the return type of a gcc2
7223 builtin and then its argument prototype would still apply. */ 7229 builtin and then its argument prototype would still apply. */
7224 char XmStringFree(); 7230 char XmStringFree();
7225 7231
7226 int main() { 7232 int main() {
7227 XmStringFree() 7233 XmStringFree()
7228 ; return 0; } 7234 ; return 0; }
7229 EOF 7235 EOF
7230 if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7236 if { (eval echo configure:7237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7231 rm -rf conftest* 7237 rm -rf conftest*
7232 eval "ac_cv_lib_$ac_lib_var=yes" 7238 eval "ac_cv_lib_$ac_lib_var=yes"
7233 else 7239 else
7234 echo "configure: failed program was:" >&5 7240 echo "configure: failed program was:" >&5
7235 cat conftest.$ac_ext >&5 7241 cat conftest.$ac_ext >&5
7254 fi 7260 fi
7255 7261
7256 7262
7257 if test "$have_motif" = "yes"; then 7263 if test "$have_motif" = "yes"; then
7258 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 7264 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7259 echo "configure:7260: checking for Lesstif" >&5 7265 echo "configure:7266: checking for Lesstif" >&5
7260 cat > conftest.$ac_ext <<EOF 7266 cat > conftest.$ac_ext <<EOF
7261 #line 7262 "configure" 7267 #line 7268 "configure"
7262 #include "confdefs.h" 7268 #include "confdefs.h"
7263 #include <Xm/Xm.h> 7269 #include <Xm/Xm.h>
7264 #ifdef LESSTIF_VERSION 7270 #ifdef LESSTIF_VERSION
7265 yes 7271 yes
7266 #endif 7272 #endif
7540 fi 7546 fi
7541 fi 7547 fi
7542 7548
7543 if test "$with_mule" = "yes" ; then 7549 if test "$with_mule" = "yes" ; then
7544 echo "checking for Mule-related features" 1>&6 7550 echo "checking for Mule-related features" 1>&6
7545 echo "configure:7546: checking for Mule-related features" >&5 7551 echo "configure:7552: checking for Mule-related features" >&5
7546 { test "$extra_verbose" = "yes" && cat << \EOF 7552 { test "$extra_verbose" = "yes" && cat << \EOF
7547 Defining MULE 7553 Defining MULE
7548 EOF 7554 EOF
7549 cat >> confdefs.h <<\EOF 7555 cat >> confdefs.h <<\EOF
7550 #define MULE 1 7556 #define MULE 1
7565 7571
7566 for ac_hdr in libintl.h 7572 for ac_hdr in libintl.h
7567 do 7573 do
7568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7569 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7570 echo "configure:7571: checking for $ac_hdr" >&5 7576 echo "configure:7577: checking for $ac_hdr" >&5
7571 7577
7572 cat > conftest.$ac_ext <<EOF 7578 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure" 7579 #line 7580 "configure"
7574 #include "confdefs.h" 7580 #include "confdefs.h"
7575 #include <$ac_hdr> 7581 #include <$ac_hdr>
7576 EOF 7582 EOF
7577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7583 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; } 7584 { (eval echo configure:7585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7579 ac_err=`grep -v '^ *+' conftest.out` 7585 ac_err=`grep -v '^ *+' conftest.out`
7580 if test -z "$ac_err"; then 7586 if test -z "$ac_err"; then
7581 rm -rf conftest* 7587 rm -rf conftest*
7582 eval "ac_cv_header_$ac_safe=yes" 7588 eval "ac_cv_header_$ac_safe=yes"
7583 else 7589 else
7604 fi 7610 fi
7605 done 7611 done
7606 7612
7607 7613
7608 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 7614 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7609 echo "configure:7610: checking for strerror in -lintl" >&5 7615 echo "configure:7616: checking for strerror in -lintl" >&5
7610 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 7616 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7611 7617
7612 xe_check_libs=" -lintl " 7618 xe_check_libs=" -lintl "
7613 cat > conftest.$ac_ext <<EOF 7619 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure" 7620 #line 7621 "configure"
7615 #include "confdefs.h" 7621 #include "confdefs.h"
7616 /* Override any gcc2 internal prototype to avoid an error. */ 7622 /* Override any gcc2 internal prototype to avoid an error. */
7617 /* We use char because int might match the return type of a gcc2 7623 /* We use char because int might match the return type of a gcc2
7618 builtin and then its argument prototype would still apply. */ 7624 builtin and then its argument prototype would still apply. */
7619 char strerror(); 7625 char strerror();
7620 7626
7621 int main() { 7627 int main() {
7622 strerror() 7628 strerror()
7623 ; return 0; } 7629 ; return 0; }
7624 EOF 7630 EOF
7625 if { (eval echo configure:7626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7631 if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7626 rm -rf conftest* 7632 rm -rf conftest*
7627 eval "ac_cv_lib_$ac_lib_var=yes" 7633 eval "ac_cv_lib_$ac_lib_var=yes"
7628 else 7634 else
7629 echo "configure: failed program was:" >&5 7635 echo "configure: failed program was:" >&5
7630 cat conftest.$ac_ext >&5 7636 cat conftest.$ac_ext >&5
7653 fi 7659 fi
7654 7660
7655 7661
7656 7662
7657 echo "checking for Mule input methods" 1>&6 7663 echo "checking for Mule input methods" 1>&6
7658 echo "configure:7659: checking for Mule input methods" >&5 7664 echo "configure:7665: checking for Mule input methods" >&5
7659 case "$with_xim" in "" | "yes" ) 7665 case "$with_xim" in "" | "yes" )
7660 echo "checking for XIM" 1>&6 7666 echo "checking for XIM" 1>&6
7661 echo "configure:7662: checking for XIM" >&5 7667 echo "configure:7668: checking for XIM" >&5
7662 if test "$have_lesstif" = "yes"; then with_xim=xlib 7668 if test "$have_lesstif" = "yes"; then with_xim=xlib
7663 else 7669 else
7664 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 7670 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7665 echo "configure:7666: checking for XmImMbLookupString in -lXm" >&5 7671 echo "configure:7672: checking for XmImMbLookupString in -lXm" >&5
7666 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 7672 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7667 7673
7668 xe_check_libs=" -lXm " 7674 xe_check_libs=" -lXm "
7669 cat > conftest.$ac_ext <<EOF 7675 cat > conftest.$ac_ext <<EOF
7670 #line 7671 "configure" 7676 #line 7677 "configure"
7671 #include "confdefs.h" 7677 #include "confdefs.h"
7672 /* Override any gcc2 internal prototype to avoid an error. */ 7678 /* Override any gcc2 internal prototype to avoid an error. */
7673 /* We use char because int might match the return type of a gcc2 7679 /* We use char because int might match the return type of a gcc2
7674 builtin and then its argument prototype would still apply. */ 7680 builtin and then its argument prototype would still apply. */
7675 char XmImMbLookupString(); 7681 char XmImMbLookupString();
7676 7682
7677 int main() { 7683 int main() {
7678 XmImMbLookupString() 7684 XmImMbLookupString()
7679 ; return 0; } 7685 ; return 0; }
7680 EOF 7686 EOF
7681 if { (eval echo configure:7682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7687 if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7682 rm -rf conftest* 7688 rm -rf conftest*
7683 eval "ac_cv_lib_$ac_lib_var=yes" 7689 eval "ac_cv_lib_$ac_lib_var=yes"
7684 else 7690 else
7685 echo "configure: failed program was:" >&5 7691 echo "configure: failed program was:" >&5
7686 cat conftest.$ac_ext >&5 7692 cat conftest.$ac_ext >&5
7742 fi 7748 fi
7743 fi 7749 fi
7744 7750
7745 if test "$with_xfs" = "yes" ; then 7751 if test "$with_xfs" = "yes" ; then
7746 echo "checking for XFontSet" 1>&6 7752 echo "checking for XFontSet" 1>&6
7747 echo "configure:7748: checking for XFontSet" >&5 7753 echo "configure:7754: checking for XFontSet" >&5
7748 7754
7749 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 7755 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7750 echo "configure:7751: checking for XmbDrawString in -lX11" >&5 7756 echo "configure:7757: checking for XmbDrawString in -lX11" >&5
7751 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 7757 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7752 7758
7753 xe_check_libs=" -lX11 " 7759 xe_check_libs=" -lX11 "
7754 cat > conftest.$ac_ext <<EOF 7760 cat > conftest.$ac_ext <<EOF
7755 #line 7756 "configure" 7761 #line 7762 "configure"
7756 #include "confdefs.h" 7762 #include "confdefs.h"
7757 /* Override any gcc2 internal prototype to avoid an error. */ 7763 /* Override any gcc2 internal prototype to avoid an error. */
7758 /* We use char because int might match the return type of a gcc2 7764 /* We use char because int might match the return type of a gcc2
7759 builtin and then its argument prototype would still apply. */ 7765 builtin and then its argument prototype would still apply. */
7760 char XmbDrawString(); 7766 char XmbDrawString();
7761 7767
7762 int main() { 7768 int main() {
7763 XmbDrawString() 7769 XmbDrawString()
7764 ; return 0; } 7770 ; return 0; }
7765 EOF 7771 EOF
7766 if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7772 if { (eval echo configure:7773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7767 rm -rf conftest* 7773 rm -rf conftest*
7768 eval "ac_cv_lib_$ac_lib_var=yes" 7774 eval "ac_cv_lib_$ac_lib_var=yes"
7769 else 7775 else
7770 echo "configure: failed program was:" >&5 7776 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5 7777 cat conftest.$ac_ext >&5
7801 fi 7807 fi
7802 fi 7808 fi
7803 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 7809 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_%'` 7810 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 7811 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7806 echo "configure:7807: checking for wnn/jllib.h" >&5 7812 echo "configure:7813: checking for wnn/jllib.h" >&5
7807 7813
7808 cat > conftest.$ac_ext <<EOF 7814 cat > conftest.$ac_ext <<EOF
7809 #line 7810 "configure" 7815 #line 7816 "configure"
7810 #include "confdefs.h" 7816 #include "confdefs.h"
7811 #include <wnn/jllib.h> 7817 #include <wnn/jllib.h>
7812 EOF 7818 EOF
7813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7819 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; } 7820 { (eval echo configure:7821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7815 ac_err=`grep -v '^ *+' conftest.out` 7821 ac_err=`grep -v '^ *+' conftest.out`
7816 if test -z "$ac_err"; then 7822 if test -z "$ac_err"; then
7817 rm -rf conftest* 7823 rm -rf conftest*
7818 eval "ac_cv_header_$ac_safe=yes" 7824 eval "ac_cv_header_$ac_safe=yes"
7819 else 7825 else
7834 } 7840 }
7835 if test "$with_wnn" != "no"; then 7841 if test "$with_wnn" != "no"; then
7836 for ac_func in crypt 7842 for ac_func in crypt
7837 do 7843 do
7838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7839 echo "configure:7840: checking for $ac_func" >&5 7845 echo "configure:7846: checking for $ac_func" >&5
7840 7846
7841 cat > conftest.$ac_ext <<EOF 7847 cat > conftest.$ac_ext <<EOF
7842 #line 7843 "configure" 7848 #line 7849 "configure"
7843 #include "confdefs.h" 7849 #include "confdefs.h"
7844 /* System header to define __stub macros and hopefully few prototypes, 7850 /* System header to define __stub macros and hopefully few prototypes,
7845 which can conflict with char $ac_func(); below. */ 7851 which can conflict with char $ac_func(); below. */
7846 #include <assert.h> 7852 #include <assert.h>
7847 /* Override any gcc2 internal prototype to avoid an error. */ 7853 /* Override any gcc2 internal prototype to avoid an error. */
7860 $ac_func(); 7866 $ac_func();
7861 #endif 7867 #endif
7862 7868
7863 ; return 0; } 7869 ; return 0; }
7864 EOF 7870 EOF
7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7871 if { (eval echo configure:7872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7866 rm -rf conftest* 7872 rm -rf conftest*
7867 eval "ac_cv_func_$ac_func=yes" 7873 eval "ac_cv_func_$ac_func=yes"
7868 else 7874 else
7869 echo "configure: failed program was:" >&5 7875 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5 7876 cat conftest.$ac_ext >&5
7889 fi 7895 fi
7890 done 7896 done
7891 7897
7892 test "$ac_cv_func_crypt" != "yes" && { 7898 test "$ac_cv_func_crypt" != "yes" && {
7893 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7899 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7894 echo "configure:7895: checking for crypt in -lcrypt" >&5 7900 echo "configure:7901: checking for crypt in -lcrypt" >&5
7895 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7901 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7896 7902
7897 xe_check_libs=" -lcrypt " 7903 xe_check_libs=" -lcrypt "
7898 cat > conftest.$ac_ext <<EOF 7904 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure" 7905 #line 7906 "configure"
7900 #include "confdefs.h" 7906 #include "confdefs.h"
7901 /* Override any gcc2 internal prototype to avoid an error. */ 7907 /* Override any gcc2 internal prototype to avoid an error. */
7902 /* We use char because int might match the return type of a gcc2 7908 /* We use char because int might match the return type of a gcc2
7903 builtin and then its argument prototype would still apply. */ 7909 builtin and then its argument prototype would still apply. */
7904 char crypt(); 7910 char crypt();
7905 7911
7906 int main() { 7912 int main() {
7907 crypt() 7913 crypt()
7908 ; return 0; } 7914 ; return 0; }
7909 EOF 7915 EOF
7910 if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7916 if { (eval echo configure:7917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7911 rm -rf conftest* 7917 rm -rf conftest*
7912 eval "ac_cv_lib_$ac_lib_var=yes" 7918 eval "ac_cv_lib_$ac_lib_var=yes"
7913 else 7919 else
7914 echo "configure: failed program was:" >&5 7920 echo "configure: failed program was:" >&5
7915 cat conftest.$ac_ext >&5 7921 cat conftest.$ac_ext >&5
7939 7945
7940 } 7946 }
7941 fi 7947 fi
7942 test -z "$with_wnn" && { 7948 test -z "$with_wnn" && {
7943 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7949 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 7950 echo "configure:7951: checking for jl_dic_list_e in -lwnn" >&5
7945 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7951 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7946 7952
7947 xe_check_libs=" -lwnn " 7953 xe_check_libs=" -lwnn "
7948 cat > conftest.$ac_ext <<EOF 7954 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure" 7955 #line 7956 "configure"
7950 #include "confdefs.h" 7956 #include "confdefs.h"
7951 /* Override any gcc2 internal prototype to avoid an error. */ 7957 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2 7958 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */ 7959 builtin and then its argument prototype would still apply. */
7954 char jl_dic_list_e(); 7960 char jl_dic_list_e();
7955 7961
7956 int main() { 7962 int main() {
7957 jl_dic_list_e() 7963 jl_dic_list_e()
7958 ; return 0; } 7964 ; return 0; }
7959 EOF 7965 EOF
7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7966 if { (eval echo configure:7967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7961 rm -rf conftest* 7967 rm -rf conftest*
7962 eval "ac_cv_lib_$ac_lib_var=yes" 7968 eval "ac_cv_lib_$ac_lib_var=yes"
7963 else 7969 else
7964 echo "configure: failed program was:" >&5 7970 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5 7971 cat conftest.$ac_ext >&5
7993 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7999 echo " xemacs will be linked with \"mule-wnnfns.o\""
7994 fi 8000 fi
7995 if test "$with_wnn6" != "no"; then 8001 if test "$with_wnn6" != "no"; then
7996 8002
7997 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 8003 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 8004 echo "configure:8005: checking for jl_fi_dic_list in -lwnn" >&5
7999 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 8005 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8000 8006
8001 xe_check_libs=" -lwnn " 8007 xe_check_libs=" -lwnn "
8002 cat > conftest.$ac_ext <<EOF 8008 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure" 8009 #line 8010 "configure"
8004 #include "confdefs.h" 8010 #include "confdefs.h"
8005 /* Override any gcc2 internal prototype to avoid an error. */ 8011 /* Override any gcc2 internal prototype to avoid an error. */
8006 /* We use char because int might match the return type of a gcc2 8012 /* We use char because int might match the return type of a gcc2
8007 builtin and then its argument prototype would still apply. */ 8013 builtin and then its argument prototype would still apply. */
8008 char jl_fi_dic_list(); 8014 char jl_fi_dic_list();
8009 8015
8010 int main() { 8016 int main() {
8011 jl_fi_dic_list() 8017 jl_fi_dic_list()
8012 ; return 0; } 8018 ; return 0; }
8013 EOF 8019 EOF
8014 if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8015 rm -rf conftest* 8021 rm -rf conftest*
8016 eval "ac_cv_lib_$ac_lib_var=yes" 8022 eval "ac_cv_lib_$ac_lib_var=yes"
8017 else 8023 else
8018 echo "configure: failed program was:" >&5 8024 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5 8025 cat conftest.$ac_ext >&5
8044 8050
8045 canna_includes_found=no 8051 canna_includes_found=no
8046 if test "$with_canna" != "no"; then 8052 if test "$with_canna" != "no"; then
8047 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8053 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8048 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8054 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8049 echo "configure:8050: checking for canna/jrkanji.h" >&5 8055 echo "configure:8056: checking for canna/jrkanji.h" >&5
8050 8056
8051 cat > conftest.$ac_ext <<EOF 8057 cat > conftest.$ac_ext <<EOF
8052 #line 8053 "configure" 8058 #line 8059 "configure"
8053 #include "confdefs.h" 8059 #include "confdefs.h"
8054 #include <canna/jrkanji.h> 8060 #include <canna/jrkanji.h>
8055 EOF 8061 EOF
8056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8062 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; } 8063 { (eval echo configure:8064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8058 ac_err=`grep -v '^ *+' conftest.out` 8064 ac_err=`grep -v '^ *+' conftest.out`
8059 if test -z "$ac_err"; then 8065 if test -z "$ac_err"; then
8060 rm -rf conftest* 8066 rm -rf conftest*
8061 eval "ac_cv_header_$ac_safe=yes" 8067 eval "ac_cv_header_$ac_safe=yes"
8062 else 8068 else
8079 -d "/usr/local/canna/include"; then 8085 -d "/usr/local/canna/include"; then
8080 save_c_switch_site="$c_switch_site" 8086 save_c_switch_site="$c_switch_site"
8081 c_switch_site="$c_switch_site -I/usr/local/canna/include" 8087 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8082 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8088 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8083 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8089 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8084 echo "configure:8085: checking for canna/jrkanji.h" >&5 8090 echo "configure:8091: checking for canna/jrkanji.h" >&5
8085 8091
8086 cat > conftest.$ac_ext <<EOF 8092 cat > conftest.$ac_ext <<EOF
8087 #line 8088 "configure" 8093 #line 8094 "configure"
8088 #include "confdefs.h" 8094 #include "confdefs.h"
8089 #include <canna/jrkanji.h> 8095 #include <canna/jrkanji.h>
8090 EOF 8096 EOF
8091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8097 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; } 8098 { (eval echo configure:8099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8093 ac_err=`grep -v '^ *+' conftest.out` 8099 ac_err=`grep -v '^ *+' conftest.out`
8094 if test -z "$ac_err"; then 8100 if test -z "$ac_err"; then
8095 rm -rf conftest* 8101 rm -rf conftest*
8096 eval "ac_cv_header_$ac_safe=yes" 8102 eval "ac_cv_header_$ac_safe=yes"
8097 else 8103 else
8115 fi 8121 fi
8116 fi 8122 fi
8117 8123
8118 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 8124 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 8125 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8120 echo "configure:8121: checking for canna/RK.h" >&5 8126 echo "configure:8127: checking for canna/RK.h" >&5
8121 8127
8122 cat > conftest.$ac_ext <<EOF 8128 cat > conftest.$ac_ext <<EOF
8123 #line 8124 "configure" 8129 #line 8130 "configure"
8124 #include "confdefs.h" 8130 #include "confdefs.h"
8125 #include <canna/RK.h> 8131 #include <canna/RK.h>
8126 EOF 8132 EOF
8127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8133 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; } 8134 { (eval echo configure:8135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8129 ac_err=`grep -v '^ *+' conftest.out` 8135 ac_err=`grep -v '^ *+' conftest.out`
8130 if test -z "$ac_err"; then 8136 if test -z "$ac_err"; then
8131 rm -rf conftest* 8137 rm -rf conftest*
8132 eval "ac_cv_header_$ac_safe=yes" 8138 eval "ac_cv_header_$ac_safe=yes"
8133 else 8139 else
8146 with_canna=no 8152 with_canna=no
8147 fi 8153 fi
8148 } 8154 }
8149 test -z "$with_canna" && { 8155 test -z "$with_canna" && {
8150 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 8156 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8151 echo "configure:8152: checking for RkBgnBun in -lRKC" >&5 8157 echo "configure:8158: checking for RkBgnBun in -lRKC" >&5
8152 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 8158 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8153 8159
8154 xe_check_libs=" -lRKC " 8160 xe_check_libs=" -lRKC "
8155 cat > conftest.$ac_ext <<EOF 8161 cat > conftest.$ac_ext <<EOF
8156 #line 8157 "configure" 8162 #line 8163 "configure"
8157 #include "confdefs.h" 8163 #include "confdefs.h"
8158 /* Override any gcc2 internal prototype to avoid an error. */ 8164 /* Override any gcc2 internal prototype to avoid an error. */
8159 /* We use char because int might match the return type of a gcc2 8165 /* We use char because int might match the return type of a gcc2
8160 builtin and then its argument prototype would still apply. */ 8166 builtin and then its argument prototype would still apply. */
8161 char RkBgnBun(); 8167 char RkBgnBun();
8162 8168
8163 int main() { 8169 int main() {
8164 RkBgnBun() 8170 RkBgnBun()
8165 ; return 0; } 8171 ; return 0; }
8166 EOF 8172 EOF
8167 if { (eval echo configure:8168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8173 if { (eval echo configure:8174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8168 rm -rf conftest* 8174 rm -rf conftest*
8169 eval "ac_cv_lib_$ac_lib_var=yes" 8175 eval "ac_cv_lib_$ac_lib_var=yes"
8170 else 8176 else
8171 echo "configure: failed program was:" >&5 8177 echo "configure: failed program was:" >&5
8172 cat conftest.$ac_ext >&5 8178 cat conftest.$ac_ext >&5
8185 fi 8191 fi
8186 8192
8187 } 8193 }
8188 test -z "$with_canna" && { 8194 test -z "$with_canna" && {
8189 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 8195 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8190 echo "configure:8191: checking for jrKanjiControl in -lcanna" >&5 8196 echo "configure:8197: checking for jrKanjiControl in -lcanna" >&5
8191 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 8197 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8192 8198
8193 xe_check_libs=" -lcanna " 8199 xe_check_libs=" -lcanna "
8194 cat > conftest.$ac_ext <<EOF 8200 cat > conftest.$ac_ext <<EOF
8195 #line 8196 "configure" 8201 #line 8202 "configure"
8196 #include "confdefs.h" 8202 #include "confdefs.h"
8197 /* Override any gcc2 internal prototype to avoid an error. */ 8203 /* Override any gcc2 internal prototype to avoid an error. */
8198 /* We use char because int might match the return type of a gcc2 8204 /* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */ 8205 builtin and then its argument prototype would still apply. */
8200 char jrKanjiControl(); 8206 char jrKanjiControl();
8201 8207
8202 int main() { 8208 int main() {
8203 jrKanjiControl() 8209 jrKanjiControl()
8204 ; return 0; } 8210 ; return 0; }
8205 EOF 8211 EOF
8206 if { (eval echo configure:8207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8212 if { (eval echo configure:8213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8207 rm -rf conftest* 8213 rm -rf conftest*
8208 eval "ac_cv_lib_$ac_lib_var=yes" 8214 eval "ac_cv_lib_$ac_lib_var=yes"
8209 else 8215 else
8210 echo "configure: failed program was:" >&5 8216 echo "configure: failed program was:" >&5
8211 cat conftest.$ac_ext >&5 8217 cat conftest.$ac_ext >&5
8250 8256
8251 if test "$need_motif" = "yes" ; then 8257 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 8258 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8253 8259
8254 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 8260 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 8261 echo "configure:8262: checking for layout_object_getvalue in -li18n" >&5
8256 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 8262 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8257 8263
8258 xe_check_libs=" -li18n " 8264 xe_check_libs=" -li18n "
8259 cat > conftest.$ac_ext <<EOF 8265 cat > conftest.$ac_ext <<EOF
8260 #line 8261 "configure" 8266 #line 8267 "configure"
8261 #include "confdefs.h" 8267 #include "confdefs.h"
8262 /* Override any gcc2 internal prototype to avoid an error. */ 8268 /* Override any gcc2 internal prototype to avoid an error. */
8263 /* We use char because int might match the return type of a gcc2 8269 /* We use char because int might match the return type of a gcc2
8264 builtin and then its argument prototype would still apply. */ 8270 builtin and then its argument prototype would still apply. */
8265 char layout_object_getvalue(); 8271 char layout_object_getvalue();
8266 8272
8267 int main() { 8273 int main() {
8268 layout_object_getvalue() 8274 layout_object_getvalue()
8269 ; return 0; } 8275 ; return 0; }
8270 EOF 8276 EOF
8271 if { (eval echo configure:8272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8277 if { (eval echo configure:8278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8272 rm -rf conftest* 8278 rm -rf conftest*
8273 eval "ac_cv_lib_$ac_lib_var=yes" 8279 eval "ac_cv_lib_$ac_lib_var=yes"
8274 else 8280 else
8275 echo "configure: failed program was:" >&5 8281 echo "configure: failed program was:" >&5
8276 cat conftest.$ac_ext >&5 8282 cat conftest.$ac_ext >&5
8352 fi 8358 fi
8353 8359
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 8360 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 8361 do
8356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8357 echo "configure:8358: checking for $ac_func" >&5 8363 echo "configure:8364: checking for $ac_func" >&5
8358 8364
8359 cat > conftest.$ac_ext <<EOF 8365 cat > conftest.$ac_ext <<EOF
8360 #line 8361 "configure" 8366 #line 8367 "configure"
8361 #include "confdefs.h" 8367 #include "confdefs.h"
8362 /* System header to define __stub macros and hopefully few prototypes, 8368 /* System header to define __stub macros and hopefully few prototypes,
8363 which can conflict with char $ac_func(); below. */ 8369 which can conflict with char $ac_func(); below. */
8364 #include <assert.h> 8370 #include <assert.h>
8365 /* Override any gcc2 internal prototype to avoid an error. */ 8371 /* Override any gcc2 internal prototype to avoid an error. */
8378 $ac_func(); 8384 $ac_func();
8379 #endif 8385 #endif
8380 8386
8381 ; return 0; } 8387 ; return 0; }
8382 EOF 8388 EOF
8383 if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8389 if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8384 rm -rf conftest* 8390 rm -rf conftest*
8385 eval "ac_cv_func_$ac_func=yes" 8391 eval "ac_cv_func_$ac_func=yes"
8386 else 8392 else
8387 echo "configure: failed program was:" >&5 8393 echo "configure: failed program was:" >&5
8388 cat conftest.$ac_ext >&5 8394 cat conftest.$ac_ext >&5
8415 fi ;; 8421 fi ;;
8416 * ) 8422 * )
8417 for ac_func in realpath 8423 for ac_func in realpath
8418 do 8424 do
8419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8420 echo "configure:8421: checking for $ac_func" >&5 8426 echo "configure:8427: checking for $ac_func" >&5
8421 8427
8422 cat > conftest.$ac_ext <<EOF 8428 cat > conftest.$ac_ext <<EOF
8423 #line 8424 "configure" 8429 #line 8430 "configure"
8424 #include "confdefs.h" 8430 #include "confdefs.h"
8425 /* System header to define __stub macros and hopefully few prototypes, 8431 /* System header to define __stub macros and hopefully few prototypes,
8426 which can conflict with char $ac_func(); below. */ 8432 which can conflict with char $ac_func(); below. */
8427 #include <assert.h> 8433 #include <assert.h>
8428 /* Override any gcc2 internal prototype to avoid an error. */ 8434 /* Override any gcc2 internal prototype to avoid an error. */
8441 $ac_func(); 8447 $ac_func();
8442 #endif 8448 #endif
8443 8449
8444 ; return 0; } 8450 ; return 0; }
8445 EOF 8451 EOF
8446 if { (eval echo configure:8447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8452 if { (eval echo configure:8453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8447 rm -rf conftest* 8453 rm -rf conftest*
8448 eval "ac_cv_func_$ac_func=yes" 8454 eval "ac_cv_func_$ac_func=yes"
8449 else 8455 else
8450 echo "configure: failed program was:" >&5 8456 echo "configure: failed program was:" >&5
8451 cat conftest.$ac_ext >&5 8457 cat conftest.$ac_ext >&5
8474 echo " xemacs will be linked with \"realpath.o\"" 8480 echo " xemacs will be linked with \"realpath.o\""
8475 fi ;; 8481 fi ;;
8476 esac 8482 esac
8477 8483
8478 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 8484 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8479 echo "configure:8480: checking whether netdb declares h_errno" >&5 8485 echo "configure:8486: checking whether netdb declares h_errno" >&5
8480 cat > conftest.$ac_ext <<EOF 8486 cat > conftest.$ac_ext <<EOF
8481 #line 8482 "configure" 8487 #line 8488 "configure"
8482 #include "confdefs.h" 8488 #include "confdefs.h"
8483 #include <netdb.h> 8489 #include <netdb.h>
8484 int main() { 8490 int main() {
8485 return h_errno; 8491 return h_errno;
8486 ; return 0; } 8492 ; return 0; }
8487 EOF 8493 EOF
8488 if { (eval echo configure:8489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8494 if { (eval echo configure:8495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8489 rm -rf conftest* 8495 rm -rf conftest*
8490 echo "$ac_t""yes" 1>&6 8496 echo "$ac_t""yes" 1>&6
8491 { test "$extra_verbose" = "yes" && cat << \EOF 8497 { test "$extra_verbose" = "yes" && cat << \EOF
8492 Defining HAVE_H_ERRNO 8498 Defining HAVE_H_ERRNO
8493 EOF 8499 EOF
8503 echo "$ac_t""no" 1>&6 8509 echo "$ac_t""no" 1>&6
8504 fi 8510 fi
8505 rm -f conftest* 8511 rm -f conftest*
8506 8512
8507 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 8513 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8508 echo "configure:8509: checking for sigsetjmp" >&5 8514 echo "configure:8515: checking for sigsetjmp" >&5
8509 cat > conftest.$ac_ext <<EOF 8515 cat > conftest.$ac_ext <<EOF
8510 #line 8511 "configure" 8516 #line 8517 "configure"
8511 #include "confdefs.h" 8517 #include "confdefs.h"
8512 #include <setjmp.h> 8518 #include <setjmp.h>
8513 int main() { 8519 int main() {
8514 sigjmp_buf bar; sigsetjmp (bar, 0); 8520 sigjmp_buf bar; sigsetjmp (bar, 0);
8515 ; return 0; } 8521 ; return 0; }
8516 EOF 8522 EOF
8517 if { (eval echo configure:8518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8523 if { (eval echo configure:8524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8518 rm -rf conftest* 8524 rm -rf conftest*
8519 echo "$ac_t""yes" 1>&6 8525 echo "$ac_t""yes" 1>&6
8520 { test "$extra_verbose" = "yes" && cat << \EOF 8526 { test "$extra_verbose" = "yes" && cat << \EOF
8521 Defining HAVE_SIGSETJMP 8527 Defining HAVE_SIGSETJMP
8522 EOF 8528 EOF
8532 echo "$ac_t""no" 1>&6 8538 echo "$ac_t""no" 1>&6
8533 fi 8539 fi
8534 rm -f conftest* 8540 rm -f conftest*
8535 8541
8536 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8542 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8537 echo "configure:8538: checking whether localtime caches TZ" >&5 8543 echo "configure:8544: checking whether localtime caches TZ" >&5
8538 8544
8539 if test "$ac_cv_func_tzset" = "yes"; then 8545 if test "$ac_cv_func_tzset" = "yes"; then
8540 cat > conftest.$ac_ext <<EOF 8546 cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure" 8547 #line 8548 "configure"
8542 #include "confdefs.h" 8548 #include "confdefs.h"
8543 #include <time.h> 8549 #include <time.h>
8544 #if STDC_HEADERS 8550 #if STDC_HEADERS
8545 # include <stdlib.h> 8551 # include <stdlib.h>
8546 #endif 8552 #endif
8571 if (localtime (&now)->tm_hour != hour_unset) 8577 if (localtime (&now)->tm_hour != hour_unset)
8572 exit (1); 8578 exit (1);
8573 exit (0); 8579 exit (0);
8574 } 8580 }
8575 EOF 8581 EOF
8576 if { (eval echo configure:8577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8582 if { (eval echo configure:8583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8577 then 8583 then
8578 emacs_cv_localtime_cache=no 8584 emacs_cv_localtime_cache=no
8579 else 8585 else
8586 conftest_rc="$?"
8580 echo "configure: failed program was:" >&5 8587 echo "configure: failed program was:" >&5
8581 cat conftest.$ac_ext >&5 8588 cat conftest.$ac_ext >&5
8582 rm -fr conftest* 8589 rm -fr conftest*
8583 emacs_cv_localtime_cache=yes 8590 emacs_cv_localtime_cache=yes
8584 fi 8591 fi
8600 8607
8601 fi 8608 fi
8602 8609
8603 if test "$HAVE_TIMEVAL" = "yes"; then 8610 if test "$HAVE_TIMEVAL" = "yes"; then
8604 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 8611 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 8612 echo "configure:8613: checking whether gettimeofday accepts one or two arguments" >&5
8606 cat > conftest.$ac_ext <<EOF 8613 cat > conftest.$ac_ext <<EOF
8607 #line 8608 "configure" 8614 #line 8615 "configure"
8608 #include "confdefs.h" 8615 #include "confdefs.h"
8609 8616
8610 #ifdef TIME_WITH_SYS_TIME 8617 #ifdef TIME_WITH_SYS_TIME
8611 #include <sys/time.h> 8618 #include <sys/time.h>
8612 #include <time.h> 8619 #include <time.h>
8624 struct timezone dummy; 8631 struct timezone dummy;
8625 gettimeofday (&time, &dummy); 8632 gettimeofday (&time, &dummy);
8626 8633
8627 ; return 0; } 8634 ; return 0; }
8628 EOF 8635 EOF
8629 if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8636 if { (eval echo configure:8637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8630 rm -rf conftest* 8637 rm -rf conftest*
8631 echo "$ac_t""two" 1>&6 8638 echo "$ac_t""two" 1>&6
8632 else 8639 else
8633 echo "configure: failed program was:" >&5 8640 echo "configure: failed program was:" >&5
8634 cat conftest.$ac_ext >&5 8641 cat conftest.$ac_ext >&5
8646 rm -f conftest* 8653 rm -f conftest*
8647 fi 8654 fi
8648 8655
8649 8656
8650 echo $ac_n "checking for inline""... $ac_c" 1>&6 8657 echo $ac_n "checking for inline""... $ac_c" 1>&6
8651 echo "configure:8652: checking for inline" >&5 8658 echo "configure:8659: checking for inline" >&5
8652 8659
8653 ac_cv_c_inline=no 8660 ac_cv_c_inline=no
8654 for ac_kw in inline __inline__ __inline; do 8661 for ac_kw in inline __inline__ __inline; do
8655 cat > conftest.$ac_ext <<EOF 8662 cat > conftest.$ac_ext <<EOF
8656 #line 8657 "configure" 8663 #line 8664 "configure"
8657 #include "confdefs.h" 8664 #include "confdefs.h"
8658 8665
8659 int main() { 8666 int main() {
8660 } $ac_kw foo() { 8667 } $ac_kw foo() {
8661 ; return 0; } 8668 ; return 0; }
8662 EOF 8669 EOF
8663 if { (eval echo configure:8664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8670 if { (eval echo configure:8671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8664 rm -rf conftest* 8671 rm -rf conftest*
8665 ac_cv_c_inline=$ac_kw; break 8672 ac_cv_c_inline=$ac_kw; break
8666 else 8673 else
8667 echo "configure: failed program was:" >&5 8674 echo "configure: failed program was:" >&5
8668 cat conftest.$ac_ext >&5 8675 cat conftest.$ac_ext >&5
8708 8715
8709 8716
8710 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8717 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8711 # for constant arguments. Useless! 8718 # for constant arguments. Useless!
8712 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 8719 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8713 echo "configure:8714: checking for working alloca.h" >&5 8720 echo "configure:8721: checking for working alloca.h" >&5
8714 8721
8715 cat > conftest.$ac_ext <<EOF 8722 cat > conftest.$ac_ext <<EOF
8716 #line 8717 "configure" 8723 #line 8724 "configure"
8717 #include "confdefs.h" 8724 #include "confdefs.h"
8718 #include <alloca.h> 8725 #include <alloca.h>
8719 int main() { 8726 int main() {
8720 char *p = alloca(2 * sizeof(int)); 8727 char *p = alloca(2 * sizeof(int));
8721 ; return 0; } 8728 ; return 0; }
8722 EOF 8729 EOF
8723 if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8730 if { (eval echo configure:8731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8724 rm -rf conftest* 8731 rm -rf conftest*
8725 ac_cv_header_alloca_h=yes 8732 ac_cv_header_alloca_h=yes
8726 else 8733 else
8727 echo "configure: failed program was:" >&5 8734 echo "configure: failed program was:" >&5
8728 cat conftest.$ac_ext >&5 8735 cat conftest.$ac_ext >&5
8742 } 8749 }
8743 8750
8744 fi 8751 fi
8745 8752
8746 echo $ac_n "checking for alloca""... $ac_c" 1>&6 8753 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8747 echo "configure:8748: checking for alloca" >&5 8754 echo "configure:8755: checking for alloca" >&5
8748 8755
8749 cat > conftest.$ac_ext <<EOF 8756 cat > conftest.$ac_ext <<EOF
8750 #line 8751 "configure" 8757 #line 8758 "configure"
8751 #include "confdefs.h" 8758 #include "confdefs.h"
8752 8759
8753 #ifdef __GNUC__ 8760 #ifdef __GNUC__
8754 # define alloca __builtin_alloca 8761 # define alloca __builtin_alloca
8755 #else 8762 #else
8768 8775
8769 int main() { 8776 int main() {
8770 char *p = (char *) alloca(1); 8777 char *p = (char *) alloca(1);
8771 ; return 0; } 8778 ; return 0; }
8772 EOF 8779 EOF
8773 if { (eval echo configure:8774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8780 if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8774 rm -rf conftest* 8781 rm -rf conftest*
8775 ac_cv_func_alloca_works=yes 8782 ac_cv_func_alloca_works=yes
8776 else 8783 else
8777 echo "configure: failed program was:" >&5 8784 echo "configure: failed program was:" >&5
8778 cat conftest.$ac_ext >&5 8785 cat conftest.$ac_ext >&5
8807 EOF 8814 EOF
8808 } 8815 }
8809 8816
8810 8817
8811 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 8818 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8812 echo "configure:8813: checking whether alloca needs Cray hooks" >&5 8819 echo "configure:8820: checking whether alloca needs Cray hooks" >&5
8813 8820
8814 cat > conftest.$ac_ext <<EOF 8821 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure" 8822 #line 8823 "configure"
8816 #include "confdefs.h" 8823 #include "confdefs.h"
8817 #if defined(CRAY) && ! defined(CRAY2) 8824 #if defined(CRAY) && ! defined(CRAY2)
8818 webecray 8825 webecray
8819 #else 8826 #else
8820 wenotbecray 8827 wenotbecray
8834 8841
8835 echo "$ac_t""$ac_cv_os_cray" 1>&6 8842 echo "$ac_t""$ac_cv_os_cray" 1>&6
8836 if test $ac_cv_os_cray = yes; then 8843 if test $ac_cv_os_cray = yes; then
8837 for ac_func in _getb67 GETB67 getb67; do 8844 for ac_func in _getb67 GETB67 getb67; do
8838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8839 echo "configure:8840: checking for $ac_func" >&5 8846 echo "configure:8847: checking for $ac_func" >&5
8840 8847
8841 cat > conftest.$ac_ext <<EOF 8848 cat > conftest.$ac_ext <<EOF
8842 #line 8843 "configure" 8849 #line 8850 "configure"
8843 #include "confdefs.h" 8850 #include "confdefs.h"
8844 /* System header to define __stub macros and hopefully few prototypes, 8851 /* System header to define __stub macros and hopefully few prototypes,
8845 which can conflict with char $ac_func(); below. */ 8852 which can conflict with char $ac_func(); below. */
8846 #include <assert.h> 8853 #include <assert.h>
8847 /* Override any gcc2 internal prototype to avoid an error. */ 8854 /* Override any gcc2 internal prototype to avoid an error. */
8860 $ac_func(); 8867 $ac_func();
8861 #endif 8868 #endif
8862 8869
8863 ; return 0; } 8870 ; return 0; }
8864 EOF 8871 EOF
8865 if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8872 if { (eval echo configure:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8866 rm -rf conftest* 8873 rm -rf conftest*
8867 eval "ac_cv_func_$ac_func=yes" 8874 eval "ac_cv_func_$ac_func=yes"
8868 else 8875 else
8869 echo "configure: failed program was:" >&5 8876 echo "configure: failed program was:" >&5
8870 cat conftest.$ac_ext >&5 8877 cat conftest.$ac_ext >&5
8890 8897
8891 done 8898 done
8892 fi 8899 fi
8893 8900
8894 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 8901 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8895 echo "configure:8896: checking stack direction for C alloca" >&5 8902 echo "configure:8903: checking stack direction for C alloca" >&5
8896 8903
8897 cat > conftest.$ac_ext <<EOF 8904 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure" 8905 #line 8906 "configure"
8899 #include "confdefs.h" 8906 #include "confdefs.h"
8900 find_stack_direction () 8907 find_stack_direction ()
8901 { 8908 {
8902 static char *addr = 0; 8909 static char *addr = 0;
8903 auto char dummy; 8910 auto char dummy;
8912 main () 8919 main ()
8913 { 8920 {
8914 exit (find_stack_direction() < 0); 8921 exit (find_stack_direction() < 0);
8915 } 8922 }
8916 EOF 8923 EOF
8917 if { (eval echo configure:8918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8924 if { (eval echo configure:8925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8918 then 8925 then
8919 ac_cv_c_stack_direction=1 8926 ac_cv_c_stack_direction=1
8920 else 8927 else
8928 conftest_rc="$?"
8921 echo "configure: failed program was:" >&5 8929 echo "configure: failed program was:" >&5
8922 cat conftest.$ac_ext >&5 8930 cat conftest.$ac_ext >&5
8923 rm -fr conftest* 8931 rm -fr conftest*
8924 ac_cv_c_stack_direction=-1 8932 ac_cv_c_stack_direction=-1
8925 fi 8933 fi
8940 echo " xemacs will be linked with \"$ALLOCA\"" 8948 echo " xemacs will be linked with \"$ALLOCA\""
8941 fi 8949 fi
8942 8950
8943 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8951 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8944 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8952 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8945 echo "configure:8946: checking for vfork.h" >&5 8953 echo "configure:8954: checking for vfork.h" >&5
8946 8954
8947 cat > conftest.$ac_ext <<EOF 8955 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure" 8956 #line 8957 "configure"
8949 #include "confdefs.h" 8957 #include "confdefs.h"
8950 #include <vfork.h> 8958 #include <vfork.h>
8951 EOF 8959 EOF
8952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8960 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; } 8961 { (eval echo configure:8962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8954 ac_err=`grep -v '^ *+' conftest.out` 8962 ac_err=`grep -v '^ *+' conftest.out`
8955 if test -z "$ac_err"; then 8963 if test -z "$ac_err"; then
8956 rm -rf conftest* 8964 rm -rf conftest*
8957 eval "ac_cv_header_$ac_safe=yes" 8965 eval "ac_cv_header_$ac_safe=yes"
8958 else 8966 else
8976 else 8984 else
8977 echo "$ac_t""no" 1>&6 8985 echo "$ac_t""no" 1>&6
8978 fi 8986 fi
8979 8987
8980 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8988 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8981 echo "configure:8982: checking for working vfork" >&5 8989 echo "configure:8990: checking for working vfork" >&5
8982 8990
8983 cat > conftest.$ac_ext <<EOF 8991 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure" 8992 #line 8993 "configure"
8985 #include "confdefs.h" 8993 #include "confdefs.h"
8986 /* Thanks to Paul Eggert for this test. */ 8994 /* Thanks to Paul Eggert for this test. */
8987 #include <stdio.h> 8995 #include <stdio.h>
8988 #include <sys/types.h> 8996 #include <sys/types.h>
8989 #include <sys/stat.h> 8997 #include <sys/stat.h>
9074 || fstat(fileno(stdout), &st) != 0 9082 || fstat(fileno(stdout), &st) != 0
9075 ); 9083 );
9076 } 9084 }
9077 } 9085 }
9078 EOF 9086 EOF
9079 if { (eval echo configure:9080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9087 if { (eval echo configure:9088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9080 then 9088 then
9081 ac_cv_func_vfork_works=yes 9089 ac_cv_func_vfork_works=yes
9082 else 9090 else
9091 conftest_rc="$?"
9083 echo "configure: failed program was:" >&5 9092 echo "configure: failed program was:" >&5
9084 cat conftest.$ac_ext >&5 9093 cat conftest.$ac_ext >&5
9085 rm -fr conftest* 9094 rm -fr conftest*
9086 ac_cv_func_vfork_works=no 9095 ac_cv_func_vfork_works=no
9087 fi 9096 fi
9099 9108
9100 fi 9109 fi
9101 9110
9102 9111
9103 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 9112 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9104 echo "configure:9105: checking for working strcoll" >&5 9113 echo "configure:9114: checking for working strcoll" >&5
9105 9114
9106 cat > conftest.$ac_ext <<EOF 9115 cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure" 9116 #line 9117 "configure"
9108 #include "confdefs.h" 9117 #include "confdefs.h"
9109 #include <string.h> 9118 #include <string.h>
9110 main () 9119 main ()
9111 { 9120 {
9112 exit (strcoll ("abc", "def") >= 0 || 9121 exit (strcoll ("abc", "def") >= 0 ||
9113 strcoll ("ABC", "DEF") >= 0 || 9122 strcoll ("ABC", "DEF") >= 0 ||
9114 strcoll ("123", "456") >= 0); 9123 strcoll ("123", "456") >= 0);
9115 } 9124 }
9116 EOF 9125 EOF
9117 if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9126 if { (eval echo configure:9127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9118 then 9127 then
9119 ac_cv_func_strcoll_works=yes 9128 ac_cv_func_strcoll_works=yes
9120 else 9129 else
9130 conftest_rc="$?"
9121 echo "configure: failed program was:" >&5 9131 echo "configure: failed program was:" >&5
9122 cat conftest.$ac_ext >&5 9132 cat conftest.$ac_ext >&5
9123 rm -fr conftest* 9133 rm -fr conftest*
9124 ac_cv_func_strcoll_works=no 9134 ac_cv_func_strcoll_works=no
9125 fi 9135 fi
9139 9149
9140 9150
9141 for ac_func in getpgrp 9151 for ac_func in getpgrp
9142 do 9152 do
9143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9144 echo "configure:9145: checking for $ac_func" >&5 9154 echo "configure:9155: checking for $ac_func" >&5
9145 9155
9146 cat > conftest.$ac_ext <<EOF 9156 cat > conftest.$ac_ext <<EOF
9147 #line 9148 "configure" 9157 #line 9158 "configure"
9148 #include "confdefs.h" 9158 #include "confdefs.h"
9149 /* System header to define __stub macros and hopefully few prototypes, 9159 /* System header to define __stub macros and hopefully few prototypes,
9150 which can conflict with char $ac_func(); below. */ 9160 which can conflict with char $ac_func(); below. */
9151 #include <assert.h> 9161 #include <assert.h>
9152 /* Override any gcc2 internal prototype to avoid an error. */ 9162 /* Override any gcc2 internal prototype to avoid an error. */
9165 $ac_func(); 9175 $ac_func();
9166 #endif 9176 #endif
9167 9177
9168 ; return 0; } 9178 ; return 0; }
9169 EOF 9179 EOF
9170 if { (eval echo configure:9171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9180 if { (eval echo configure:9181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9171 rm -rf conftest* 9181 rm -rf conftest*
9172 eval "ac_cv_func_$ac_func=yes" 9182 eval "ac_cv_func_$ac_func=yes"
9173 else 9183 else
9174 echo "configure: failed program was:" >&5 9184 echo "configure: failed program was:" >&5
9175 cat conftest.$ac_ext >&5 9185 cat conftest.$ac_ext >&5
9193 echo "$ac_t""no" 1>&6 9203 echo "$ac_t""no" 1>&6
9194 fi 9204 fi
9195 done 9205 done
9196 9206
9197 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 9207 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9198 echo "configure:9199: checking whether getpgrp takes no argument" >&5 9208 echo "configure:9209: checking whether getpgrp takes no argument" >&5
9199 9209
9200 cat > conftest.$ac_ext <<EOF 9210 cat > conftest.$ac_ext <<EOF
9201 #line 9202 "configure" 9211 #line 9212 "configure"
9202 #include "confdefs.h" 9212 #include "confdefs.h"
9203 9213
9204 /* 9214 /*
9205 * If this system has a BSD-style getpgrp(), 9215 * If this system has a BSD-style getpgrp(),
9206 * which takes a pid argument, exit unsuccessfully. 9216 * which takes a pid argument, exit unsuccessfully.
9251 exit(s>>8); 9261 exit(s>>8);
9252 } 9262 }
9253 } 9263 }
9254 9264
9255 EOF 9265 EOF
9256 if { (eval echo configure:9257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9266 if { (eval echo configure:9267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9257 then 9267 then
9258 ac_cv_func_getpgrp_void=yes 9268 ac_cv_func_getpgrp_void=yes
9259 else 9269 else
9270 conftest_rc="$?"
9260 echo "configure: failed program was:" >&5 9271 echo "configure: failed program was:" >&5
9261 cat conftest.$ac_ext >&5 9272 cat conftest.$ac_ext >&5
9262 rm -fr conftest* 9273 rm -fr conftest*
9263 ac_cv_func_getpgrp_void=no 9274 ac_cv_func_getpgrp_void=no
9264 fi 9275 fi
9277 9288
9278 fi 9289 fi
9279 9290
9280 9291
9281 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9292 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9282 echo "configure:9283: checking for working mmap" >&5 9293 echo "configure:9294: checking for working mmap" >&5
9283 case "$opsys" in ultrix* ) have_mmap=no ;; *) 9294 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9284 cat > conftest.$ac_ext <<EOF 9295 cat > conftest.$ac_ext <<EOF
9285 #line 9286 "configure" 9296 #line 9297 "configure"
9286 #include "confdefs.h" 9297 #include "confdefs.h"
9287 #include <stdio.h> 9298 #include <stdio.h>
9288 #include <unistd.h> 9299 #include <unistd.h>
9289 #include <fcntl.h> 9300 #include <fcntl.h>
9290 #include <sys/mman.h> 9301 #include <sys/mman.h>
9313 return 0; 9324 return 0;
9314 perror ("conftest: mmap failed"); 9325 perror ("conftest: mmap failed");
9315 return 1; 9326 return 1;
9316 } 9327 }
9317 EOF 9328 EOF
9318 if { (eval echo configure:9319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9329 if { (eval echo configure:9330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9319 then 9330 then
9320 have_mmap=yes 9331 have_mmap=yes
9321 else 9332 else
9333 conftest_rc="$?"
9322 echo "configure: failed program was:" >&5 9334 echo "configure: failed program was:" >&5
9323 cat conftest.$ac_ext >&5 9335 cat conftest.$ac_ext >&5
9324 rm -fr conftest* 9336 rm -fr conftest*
9325 have_mmap=no 9337 have_mmap=no
9326 fi 9338 fi
9333 cat >> confdefs.h <<\EOF 9345 cat >> confdefs.h <<\EOF
9334 #define HAVE_MMAP 1 9346 #define HAVE_MMAP 1
9335 EOF 9347 EOF
9336 } 9348 }
9337 9349
9350 for ac_hdr in unistd.h
9351 do
9352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9354 echo "configure:9355: checking for $ac_hdr" >&5
9355
9356 cat > conftest.$ac_ext <<EOF
9357 #line 9358 "configure"
9358 #include "confdefs.h"
9359 #include <$ac_hdr>
9360 EOF
9361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9362 { (eval echo configure:9363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9363 ac_err=`grep -v '^ *+' conftest.out`
9364 if test -z "$ac_err"; then
9365 rm -rf conftest*
9366 eval "ac_cv_header_$ac_safe=yes"
9367 else
9368 echo "$ac_err" >&5
9369 echo "configure: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9371 rm -rf conftest*
9372 eval "ac_cv_header_$ac_safe=no"
9373 fi
9374 rm -f conftest*
9375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9376 echo "$ac_t""yes" 1>&6
9377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9378 { test "$extra_verbose" = "yes" && cat << EOF
9379 Defining $ac_tr_hdr
9380 EOF
9381 cat >> confdefs.h <<EOF
9382 #define $ac_tr_hdr 1
9383 EOF
9384 }
9385
9386 else
9387 echo "$ac_t""no" 1>&6
9388 fi
9389 done
9390
9391 for ac_func in getpagesize
9392 do
9393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9394 echo "configure:9395: checking for $ac_func" >&5
9395
9396 cat > conftest.$ac_ext <<EOF
9397 #line 9398 "configure"
9398 #include "confdefs.h"
9399 /* System header to define __stub macros and hopefully few prototypes,
9400 which can conflict with char $ac_func(); below. */
9401 #include <assert.h>
9402 /* Override any gcc2 internal prototype to avoid an error. */
9403 /* We use char because int might match the return type of a gcc2
9404 builtin and then its argument prototype would still apply. */
9405 char $ac_func();
9406
9407 int main() {
9408
9409 /* The GNU C library defines this for functions which it implements
9410 to always fail with ENOSYS. Some functions are actually named
9411 something starting with __ and the normal name is an alias. */
9412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9413 choke me
9414 #else
9415 $ac_func();
9416 #endif
9417
9418 ; return 0; }
9419 EOF
9420 if { (eval echo configure:9421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9421 rm -rf conftest*
9422 eval "ac_cv_func_$ac_func=yes"
9423 else
9424 echo "configure: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 rm -rf conftest*
9427 eval "ac_cv_func_$ac_func=no"
9428 fi
9429 rm -f conftest*
9430
9431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9432 echo "$ac_t""yes" 1>&6
9433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9434 { test "$extra_verbose" = "yes" && cat << EOF
9435 Defining $ac_tr_func
9436 EOF
9437 cat >> confdefs.h <<EOF
9438 #define $ac_tr_func 1
9439 EOF
9440 }
9441
9442 else
9443 echo "$ac_t""no" 1>&6
9444 fi
9445 done
9446
9447 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9448 echo "configure:9449: checking for working mmap" >&5
9449
9450 cat > conftest.$ac_ext <<EOF
9451 #line 9452 "configure"
9452 #include "confdefs.h"
9453
9454 /* Thanks to Mike Haertel and Jim Avera for this test.
9455 Here is a matrix of mmap possibilities:
9456 mmap private not fixed
9457 mmap private fixed at somewhere currently unmapped
9458 mmap private fixed at somewhere already mapped
9459 mmap shared not fixed
9460 mmap shared fixed at somewhere currently unmapped
9461 mmap shared fixed at somewhere already mapped
9462 For private mappings, we should verify that changes cannot be read()
9463 back from the file, nor mmap's back from the file at a different
9464 address. (There have been systems where private was not correctly
9465 implemented like the infamous i386 svr4.0, and systems where the
9466 VM page cache was not coherent with the filesystem buffer cache
9467 like early versions of FreeBSD and possibly contemporary NetBSD.)
9468 For shared mappings, we should conversely verify that changes get
9469 propogated back to all the places they're supposed to be.
9470
9471 Grep wants private fixed already mapped.
9472 The main things grep needs to know about mmap are:
9473 * does it exist and is it safe to write into the mmap'd area
9474 * how to use it (BSD variants) */
9475 #include <sys/types.h>
9476 #include <fcntl.h>
9477 #include <sys/mman.h>
9478
9479 /* This mess was copied from the GNU getpagesize.h. */
9480 #ifndef HAVE_GETPAGESIZE
9481 # ifdef HAVE_UNISTD_H
9482 # include <unistd.h>
9483 # endif
9484
9485 /* Assume that all systems that can run configure have sys/param.h. */
9486 # ifndef HAVE_SYS_PARAM_H
9487 # define HAVE_SYS_PARAM_H 1
9488 # endif
9489
9490 # ifdef _SC_PAGESIZE
9491 # define getpagesize() sysconf(_SC_PAGESIZE)
9492 # else /* no _SC_PAGESIZE */
9493 # ifdef HAVE_SYS_PARAM_H
9494 # include <sys/param.h>
9495 # ifdef EXEC_PAGESIZE
9496 # define getpagesize() EXEC_PAGESIZE
9497 # else /* no EXEC_PAGESIZE */
9498 # ifdef NBPG
9499 # define getpagesize() NBPG * CLSIZE
9500 # ifndef CLSIZE
9501 # define CLSIZE 1
9502 # endif /* no CLSIZE */
9503 # else /* no NBPG */
9504 # ifdef NBPC
9505 # define getpagesize() NBPC
9506 # else /* no NBPC */
9507 # ifdef PAGESIZE
9508 # define getpagesize() PAGESIZE
9509 # endif /* PAGESIZE */
9510 # endif /* no NBPC */
9511 # endif /* no NBPG */
9512 # endif /* no EXEC_PAGESIZE */
9513 # else /* no HAVE_SYS_PARAM_H */
9514 # define getpagesize() 8192 /* punt totally */
9515 # endif /* no HAVE_SYS_PARAM_H */
9516 # endif /* no _SC_PAGESIZE */
9517
9518 #endif /* no HAVE_GETPAGESIZE */
9519
9520 #ifdef __cplusplus
9521 extern "C" { void *malloc(unsigned); }
9522 #else
9523 char *malloc();
9524 #endif
9525
9526 int
9527 main()
9528 {
9529 char *data, *data2, *data3;
9530 int i, pagesize;
9531 int fd;
9532
9533 pagesize = getpagesize();
9534
9535 /*
9536 * First, make a file with some known garbage in it.
9537 */
9538 data = malloc(pagesize);
9539 if (!data)
9540 exit(1);
9541 for (i = 0; i < pagesize; ++i)
9542 *(data + i) = rand();
9543 umask(0);
9544 fd = creat("conftestmmap", 0600);
9545 if (fd < 0)
9546 exit(1);
9547 if (write(fd, data, pagesize) != pagesize)
9548 exit(1);
9549 close(fd);
9550
9551 /*
9552 * Next, try to mmap the file at a fixed address which
9553 * already has something else allocated at it. If we can,
9554 * also make sure that we see the same garbage.
9555 */
9556 fd = open("conftestmmap", O_RDWR);
9557 if (fd < 0)
9558 exit(1);
9559 data2 = malloc(2 * pagesize);
9560 if (!data2)
9561 exit(1);
9562 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9563 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
9564 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9565 exit(1);
9566 for (i = 0; i < pagesize; ++i)
9567 if (*(data + i) != *(data2 + i))
9568 exit(1);
9569
9570 /*
9571 * Finally, make sure that changes to the mapped area
9572 * do not percolate back to the file as seen by read().
9573 * (This is a bug on some variants of i386 svr4.0.)
9574 */
9575 for (i = 0; i < pagesize; ++i)
9576 *(data2 + i) = *(data2 + i) + 1;
9577 data3 = malloc(pagesize);
9578 if (!data3)
9579 exit(1);
9580 if (read(fd, data3, pagesize) != pagesize)
9581 exit(1);
9582 for (i = 0; i < pagesize; ++i)
9583 if (*(data + i) != *(data3 + i))
9584 exit(1);
9585 close(fd);
9586 unlink("conftestmmap");
9587 exit(0);
9588 }
9589
9590 EOF
9591 if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9592 then
9593 ac_cv_func_mmap_fixed_mapped=yes
9594 else
9595 conftest_rc="$?"
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9598 rm -fr conftest*
9599 ac_cv_func_mmap_fixed_mapped=no
9600 fi
9601 rm -fr conftest*
9602
9603 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
9604 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9605 { test "$extra_verbose" = "yes" && cat << \EOF
9606 Defining HAVE_MMAP
9607 EOF
9608 cat >> confdefs.h <<\EOF
9609 #define HAVE_MMAP 1
9610 EOF
9611 }
9612
9613 fi
9614
9338 9615
9339 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 9616 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
9340 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes 9617 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
9341 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 9618 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9342 Defining REL_ALLOC 9619 Defining REL_ALLOC
9347 } 9624 }
9348 9625
9349 9626
9350 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 9627 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
9351 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 9628 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
9352 echo "configure:9353: checking for termios.h" >&5 9629 echo "configure:9630: checking for termios.h" >&5
9353 9630
9354 cat > conftest.$ac_ext <<EOF 9631 cat > conftest.$ac_ext <<EOF
9355 #line 9356 "configure" 9632 #line 9633 "configure"
9356 #include "confdefs.h" 9633 #include "confdefs.h"
9357 #include <termios.h> 9634 #include <termios.h>
9358 EOF 9635 EOF
9359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9636 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; } 9637 { (eval echo configure:9638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9361 ac_err=`grep -v '^ *+' conftest.out` 9638 ac_err=`grep -v '^ *+' conftest.out`
9362 if test -z "$ac_err"; then 9639 if test -z "$ac_err"; then
9363 rm -rf conftest* 9640 rm -rf conftest*
9364 eval "ac_cv_header_$ac_safe=yes" 9641 eval "ac_cv_header_$ac_safe=yes"
9365 else 9642 else
9398 9675
9399 else 9676 else
9400 echo "$ac_t""no" 1>&6 9677 echo "$ac_t""no" 1>&6
9401 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 9678 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
9402 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 9679 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
9403 echo "configure:9404: checking for termio.h" >&5 9680 echo "configure:9681: checking for termio.h" >&5
9404 9681
9405 cat > conftest.$ac_ext <<EOF 9682 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure" 9683 #line 9684 "configure"
9407 #include "confdefs.h" 9684 #include "confdefs.h"
9408 #include <termio.h> 9685 #include <termio.h>
9409 EOF 9686 EOF
9410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9687 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; } 9688 { (eval echo configure:9689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9412 ac_err=`grep -v '^ *+' conftest.out` 9689 ac_err=`grep -v '^ *+' conftest.out`
9413 if test -z "$ac_err"; then 9690 if test -z "$ac_err"; then
9414 rm -rf conftest* 9691 rm -rf conftest*
9415 eval "ac_cv_header_$ac_safe=yes" 9692 eval "ac_cv_header_$ac_safe=yes"
9416 else 9693 else
9438 fi 9715 fi
9439 9716
9440 9717
9441 9718
9442 echo $ac_n "checking for socket""... $ac_c" 1>&6 9719 echo $ac_n "checking for socket""... $ac_c" 1>&6
9443 echo "configure:9444: checking for socket" >&5 9720 echo "configure:9721: checking for socket" >&5
9444 9721
9445 cat > conftest.$ac_ext <<EOF 9722 cat > conftest.$ac_ext <<EOF
9446 #line 9447 "configure" 9723 #line 9724 "configure"
9447 #include "confdefs.h" 9724 #include "confdefs.h"
9448 /* System header to define __stub macros and hopefully few prototypes, 9725 /* System header to define __stub macros and hopefully few prototypes,
9449 which can conflict with char socket(); below. */ 9726 which can conflict with char socket(); below. */
9450 #include <assert.h> 9727 #include <assert.h>
9451 /* Override any gcc2 internal prototype to avoid an error. */ 9728 /* Override any gcc2 internal prototype to avoid an error. */
9464 socket(); 9741 socket();
9465 #endif 9742 #endif
9466 9743
9467 ; return 0; } 9744 ; return 0; }
9468 EOF 9745 EOF
9469 if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9746 if { (eval echo configure:9747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9470 rm -rf conftest* 9747 rm -rf conftest*
9471 eval "ac_cv_func_socket=yes" 9748 eval "ac_cv_func_socket=yes"
9472 else 9749 else
9473 echo "configure: failed program was:" >&5 9750 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5 9751 cat conftest.$ac_ext >&5
9479 9756
9480 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 9757 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9481 echo "$ac_t""yes" 1>&6 9758 echo "$ac_t""yes" 1>&6
9482 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 9759 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
9483 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 9760 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
9484 echo "configure:9485: checking for netinet/in.h" >&5 9761 echo "configure:9762: checking for netinet/in.h" >&5
9485 9762
9486 cat > conftest.$ac_ext <<EOF 9763 cat > conftest.$ac_ext <<EOF
9487 #line 9488 "configure" 9764 #line 9765 "configure"
9488 #include "confdefs.h" 9765 #include "confdefs.h"
9489 #include <netinet/in.h> 9766 #include <netinet/in.h>
9490 EOF 9767 EOF
9491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9768 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; } 9769 { (eval echo configure:9770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9493 ac_err=`grep -v '^ *+' conftest.out` 9770 ac_err=`grep -v '^ *+' conftest.out`
9494 if test -z "$ac_err"; then 9771 if test -z "$ac_err"; then
9495 rm -rf conftest* 9772 rm -rf conftest*
9496 eval "ac_cv_header_$ac_safe=yes" 9773 eval "ac_cv_header_$ac_safe=yes"
9497 else 9774 else
9504 rm -f conftest* 9781 rm -f conftest*
9505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9506 echo "$ac_t""yes" 1>&6 9783 echo "$ac_t""yes" 1>&6
9507 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 9784 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
9508 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 9785 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
9509 echo "configure:9510: checking for arpa/inet.h" >&5 9786 echo "configure:9787: checking for arpa/inet.h" >&5
9510 9787
9511 cat > conftest.$ac_ext <<EOF 9788 cat > conftest.$ac_ext <<EOF
9512 #line 9513 "configure" 9789 #line 9790 "configure"
9513 #include "confdefs.h" 9790 #include "confdefs.h"
9514 #include <arpa/inet.h> 9791 #include <arpa/inet.h>
9515 EOF 9792 EOF
9516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9793 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; } 9794 { (eval echo configure:9795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9518 ac_err=`grep -v '^ *+' conftest.out` 9795 ac_err=`grep -v '^ *+' conftest.out`
9519 if test -z "$ac_err"; then 9796 if test -z "$ac_err"; then
9520 rm -rf conftest* 9797 rm -rf conftest*
9521 eval "ac_cv_header_$ac_safe=yes" 9798 eval "ac_cv_header_$ac_safe=yes"
9522 else 9799 else
9537 #define HAVE_SOCKETS 1 9814 #define HAVE_SOCKETS 1
9538 EOF 9815 EOF
9539 } 9816 }
9540 9817
9541 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 9818 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 9819 echo "configure:9820: checking "for sun_len member in struct sockaddr_un"" >&5
9543 cat > conftest.$ac_ext <<EOF 9820 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure" 9821 #line 9822 "configure"
9545 #include "confdefs.h" 9822 #include "confdefs.h"
9546 9823
9547 #include <sys/types.h> 9824 #include <sys/types.h>
9548 #include <sys/socket.h> 9825 #include <sys/socket.h>
9549 #include <sys/un.h> 9826 #include <sys/un.h>
9550 9827
9551 int main() { 9828 int main() {
9552 static struct sockaddr_un x; x.sun_len = 1; 9829 static struct sockaddr_un x; x.sun_len = 1;
9553 ; return 0; } 9830 ; return 0; }
9554 EOF 9831 EOF
9555 if { (eval echo configure:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9832 if { (eval echo configure:9833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9556 rm -rf conftest* 9833 rm -rf conftest*
9557 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9834 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9558 Defining HAVE_SOCKADDR_SUN_LEN 9835 Defining HAVE_SOCKADDR_SUN_LEN
9559 EOF 9836 EOF
9560 cat >> confdefs.h <<\EOF 9837 cat >> confdefs.h <<\EOF
9568 rm -rf conftest* 9845 rm -rf conftest*
9569 echo "$ac_t""no" 1>&6 9846 echo "$ac_t""no" 1>&6
9570 fi 9847 fi
9571 rm -f conftest* 9848 rm -f conftest*
9572 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 9849 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 9850 echo "configure:9851: checking "for ip_mreq struct in netinet/in.h"" >&5
9574 cat > conftest.$ac_ext <<EOF 9851 cat > conftest.$ac_ext <<EOF
9575 #line 9576 "configure" 9852 #line 9853 "configure"
9576 #include "confdefs.h" 9853 #include "confdefs.h"
9577 9854
9578 #include <sys/types.h> 9855 #include <sys/types.h>
9579 #include <netinet/in.h> 9856 #include <netinet/in.h>
9580 9857
9581 int main() { 9858 int main() {
9582 static struct ip_mreq x; 9859 static struct ip_mreq x;
9583 ; return 0; } 9860 ; return 0; }
9584 EOF 9861 EOF
9585 if { (eval echo configure:9586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9862 if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9586 rm -rf conftest* 9863 rm -rf conftest*
9587 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9864 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9588 Defining HAVE_MULTICAST 9865 Defining HAVE_MULTICAST
9589 EOF 9866 EOF
9590 cat >> confdefs.h <<\EOF 9867 cat >> confdefs.h <<\EOF
9611 echo "$ac_t""no" 1>&6 9888 echo "$ac_t""no" 1>&6
9612 fi 9889 fi
9613 9890
9614 9891
9615 echo $ac_n "checking for msgget""... $ac_c" 1>&6 9892 echo $ac_n "checking for msgget""... $ac_c" 1>&6
9616 echo "configure:9617: checking for msgget" >&5 9893 echo "configure:9894: checking for msgget" >&5
9617 9894
9618 cat > conftest.$ac_ext <<EOF 9895 cat > conftest.$ac_ext <<EOF
9619 #line 9620 "configure" 9896 #line 9897 "configure"
9620 #include "confdefs.h" 9897 #include "confdefs.h"
9621 /* System header to define __stub macros and hopefully few prototypes, 9898 /* System header to define __stub macros and hopefully few prototypes,
9622 which can conflict with char msgget(); below. */ 9899 which can conflict with char msgget(); below. */
9623 #include <assert.h> 9900 #include <assert.h>
9624 /* Override any gcc2 internal prototype to avoid an error. */ 9901 /* Override any gcc2 internal prototype to avoid an error. */
9637 msgget(); 9914 msgget();
9638 #endif 9915 #endif
9639 9916
9640 ; return 0; } 9917 ; return 0; }
9641 EOF 9918 EOF
9642 if { (eval echo configure:9643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9919 if { (eval echo configure:9920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9643 rm -rf conftest* 9920 rm -rf conftest*
9644 eval "ac_cv_func_msgget=yes" 9921 eval "ac_cv_func_msgget=yes"
9645 else 9922 else
9646 echo "configure: failed program was:" >&5 9923 echo "configure: failed program was:" >&5
9647 cat conftest.$ac_ext >&5 9924 cat conftest.$ac_ext >&5
9652 9929
9653 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 9930 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
9654 echo "$ac_t""yes" 1>&6 9931 echo "$ac_t""yes" 1>&6
9655 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 9932 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
9656 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 9933 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
9657 echo "configure:9658: checking for sys/ipc.h" >&5 9934 echo "configure:9935: checking for sys/ipc.h" >&5
9658 9935
9659 cat > conftest.$ac_ext <<EOF 9936 cat > conftest.$ac_ext <<EOF
9660 #line 9661 "configure" 9937 #line 9938 "configure"
9661 #include "confdefs.h" 9938 #include "confdefs.h"
9662 #include <sys/ipc.h> 9939 #include <sys/ipc.h>
9663 EOF 9940 EOF
9664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9941 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; } 9942 { (eval echo configure:9943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9666 ac_err=`grep -v '^ *+' conftest.out` 9943 ac_err=`grep -v '^ *+' conftest.out`
9667 if test -z "$ac_err"; then 9944 if test -z "$ac_err"; then
9668 rm -rf conftest* 9945 rm -rf conftest*
9669 eval "ac_cv_header_$ac_safe=yes" 9946 eval "ac_cv_header_$ac_safe=yes"
9670 else 9947 else
9677 rm -f conftest* 9954 rm -f conftest*
9678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9679 echo "$ac_t""yes" 1>&6 9956 echo "$ac_t""yes" 1>&6
9680 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 9957 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
9681 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 9958 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
9682 echo "configure:9683: checking for sys/msg.h" >&5 9959 echo "configure:9960: checking for sys/msg.h" >&5
9683 9960
9684 cat > conftest.$ac_ext <<EOF 9961 cat > conftest.$ac_ext <<EOF
9685 #line 9686 "configure" 9962 #line 9963 "configure"
9686 #include "confdefs.h" 9963 #include "confdefs.h"
9687 #include <sys/msg.h> 9964 #include <sys/msg.h>
9688 EOF 9965 EOF
9689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9966 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; } 9967 { (eval echo configure:9968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9691 ac_err=`grep -v '^ *+' conftest.out` 9968 ac_err=`grep -v '^ *+' conftest.out`
9692 if test -z "$ac_err"; then 9969 if test -z "$ac_err"; then
9693 rm -rf conftest* 9970 rm -rf conftest*
9694 eval "ac_cv_header_$ac_safe=yes" 9971 eval "ac_cv_header_$ac_safe=yes"
9695 else 9972 else
9723 fi 10000 fi
9724 10001
9725 10002
9726 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 10003 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
9727 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 10004 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
9728 echo "configure:9729: checking for dirent.h" >&5 10005 echo "configure:10006: checking for dirent.h" >&5
9729 10006
9730 cat > conftest.$ac_ext <<EOF 10007 cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure" 10008 #line 10009 "configure"
9732 #include "confdefs.h" 10009 #include "confdefs.h"
9733 #include <dirent.h> 10010 #include <dirent.h>
9734 EOF 10011 EOF
9735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10012 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; } 10013 { (eval echo configure:10014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9737 ac_err=`grep -v '^ *+' conftest.out` 10014 ac_err=`grep -v '^ *+' conftest.out`
9738 if test -z "$ac_err"; then 10015 if test -z "$ac_err"; then
9739 rm -rf conftest* 10016 rm -rf conftest*
9740 eval "ac_cv_header_$ac_safe=yes" 10017 eval "ac_cv_header_$ac_safe=yes"
9741 else 10018 else
9758 10035
9759 else 10036 else
9760 echo "$ac_t""no" 1>&6 10037 echo "$ac_t""no" 1>&6
9761 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 10038 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
9762 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 10039 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
9763 echo "configure:9764: checking for sys/dir.h" >&5 10040 echo "configure:10041: checking for sys/dir.h" >&5
9764 10041
9765 cat > conftest.$ac_ext <<EOF 10042 cat > conftest.$ac_ext <<EOF
9766 #line 9767 "configure" 10043 #line 10044 "configure"
9767 #include "confdefs.h" 10044 #include "confdefs.h"
9768 #include <sys/dir.h> 10045 #include <sys/dir.h>
9769 EOF 10046 EOF
9770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10047 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; } 10048 { (eval echo configure:10049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9772 ac_err=`grep -v '^ *+' conftest.out` 10049 ac_err=`grep -v '^ *+' conftest.out`
9773 if test -z "$ac_err"; then 10050 if test -z "$ac_err"; then
9774 rm -rf conftest* 10051 rm -rf conftest*
9775 eval "ac_cv_header_$ac_safe=yes" 10052 eval "ac_cv_header_$ac_safe=yes"
9776 else 10053 else
9799 fi 10076 fi
9800 10077
9801 10078
9802 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 10079 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
9803 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 10080 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
9804 echo "configure:9805: checking for nlist.h" >&5 10081 echo "configure:10082: checking for nlist.h" >&5
9805 10082
9806 cat > conftest.$ac_ext <<EOF 10083 cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure" 10084 #line 10085 "configure"
9808 #include "confdefs.h" 10085 #include "confdefs.h"
9809 #include <nlist.h> 10086 #include <nlist.h>
9810 EOF 10087 EOF
9811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10088 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; } 10089 { (eval echo configure:10090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9813 ac_err=`grep -v '^ *+' conftest.out` 10090 ac_err=`grep -v '^ *+' conftest.out`
9814 if test -z "$ac_err"; then 10091 if test -z "$ac_err"; then
9815 rm -rf conftest* 10092 rm -rf conftest*
9816 eval "ac_cv_header_$ac_safe=yes" 10093 eval "ac_cv_header_$ac_safe=yes"
9817 else 10094 else
9837 fi 10114 fi
9838 10115
9839 10116
9840 10117
9841 echo "checking "for sound support"" 1>&6 10118 echo "checking "for sound support"" 1>&6
9842 echo "configure:9843: checking "for sound support"" >&5 10119 echo "configure:10120: checking "for sound support"" >&5
9843 case "$with_sound" in 10120 case "$with_sound" in
9844 native | both ) with_native_sound=yes;; 10121 native | both ) with_native_sound=yes;;
9845 nas | no ) with_native_sound=no;; 10122 nas | no ) with_native_sound=no;;
9846 esac 10123 esac
9847 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 10124 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
9848 10125
9849 if test "$with_native_sound" != "no"; then 10126 if test "$with_native_sound" != "no"; then
9850 if test -n "$native_sound_lib"; then 10127 if test -n "$native_sound_lib"; then
9851 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 10128 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
9852 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 10129 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
9853 echo "configure:9854: checking for multimedia/audio_device.h" >&5 10130 echo "configure:10131: checking for multimedia/audio_device.h" >&5
9854 10131
9855 cat > conftest.$ac_ext <<EOF 10132 cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure" 10133 #line 10134 "configure"
9857 #include "confdefs.h" 10134 #include "confdefs.h"
9858 #include <multimedia/audio_device.h> 10135 #include <multimedia/audio_device.h>
9859 EOF 10136 EOF
9860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10137 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; } 10138 { (eval echo configure:10139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9862 ac_err=`grep -v '^ *+' conftest.out` 10139 ac_err=`grep -v '^ *+' conftest.out`
9863 if test -z "$ac_err"; then 10140 if test -z "$ac_err"; then
9864 rm -rf conftest* 10141 rm -rf conftest*
9865 eval "ac_cv_header_$ac_safe=yes" 10142 eval "ac_cv_header_$ac_safe=yes"
9866 else 10143 else
9904 case "$canonical" in 10181 case "$canonical" in
9905 *-sgi-* ) 10182 *-sgi-* )
9906 if test -z "$native_sound_lib"; then 10183 if test -z "$native_sound_lib"; then
9907 10184
9908 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 10185 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
9909 echo "configure:9910: checking for ALopenport in -laudio" >&5 10186 echo "configure:10187: checking for ALopenport in -laudio" >&5
9910 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 10187 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
9911 10188
9912 xe_check_libs=" -laudio " 10189 xe_check_libs=" -laudio "
9913 cat > conftest.$ac_ext <<EOF 10190 cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure" 10191 #line 10192 "configure"
9915 #include "confdefs.h" 10192 #include "confdefs.h"
9916 /* Override any gcc2 internal prototype to avoid an error. */ 10193 /* Override any gcc2 internal prototype to avoid an error. */
9917 /* We use char because int might match the return type of a gcc2 10194 /* We use char because int might match the return type of a gcc2
9918 builtin and then its argument prototype would still apply. */ 10195 builtin and then its argument prototype would still apply. */
9919 char ALopenport(); 10196 char ALopenport();
9920 10197
9921 int main() { 10198 int main() {
9922 ALopenport() 10199 ALopenport()
9923 ; return 0; } 10200 ; return 0; }
9924 EOF 10201 EOF
9925 if { (eval echo configure:9926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10202 if { (eval echo configure:10203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9926 rm -rf conftest* 10203 rm -rf conftest*
9927 eval "ac_cv_lib_$ac_lib_var=yes" 10204 eval "ac_cv_lib_$ac_lib_var=yes"
9928 else 10205 else
9929 echo "configure: failed program was:" >&5 10206 echo "configure: failed program was:" >&5
9930 cat conftest.$ac_ext >&5 10207 cat conftest.$ac_ext >&5
9951 fi ;; 10228 fi ;;
9952 hppa*-hp-hpux* ) 10229 hppa*-hp-hpux* )
9953 if test -z "$native_sound_lib"; then 10230 if test -z "$native_sound_lib"; then
9954 10231
9955 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 10232 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
9956 echo "configure:9957: checking for AOpenAudio in -lAlib" >&5 10233 echo "configure:10234: checking for AOpenAudio in -lAlib" >&5
9957 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 10234 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
9958 10235
9959 xe_check_libs=" -lAlib " 10236 xe_check_libs=" -lAlib "
9960 cat > conftest.$ac_ext <<EOF 10237 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure" 10238 #line 10239 "configure"
9962 #include "confdefs.h" 10239 #include "confdefs.h"
9963 /* Override any gcc2 internal prototype to avoid an error. */ 10240 /* Override any gcc2 internal prototype to avoid an error. */
9964 /* We use char because int might match the return type of a gcc2 10241 /* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */ 10242 builtin and then its argument prototype would still apply. */
9966 char AOpenAudio(); 10243 char AOpenAudio();
9967 10244
9968 int main() { 10245 int main() {
9969 AOpenAudio() 10246 AOpenAudio()
9970 ; return 0; } 10247 ; return 0; }
9971 EOF 10248 EOF
9972 if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10249 if { (eval echo configure:10250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9973 rm -rf conftest* 10250 rm -rf conftest*
9974 eval "ac_cv_lib_$ac_lib_var=yes" 10251 eval "ac_cv_lib_$ac_lib_var=yes"
9975 else 10252 else
9976 echo "configure: failed program was:" >&5 10253 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5 10254 cat conftest.$ac_ext >&5
10005 10282
10006 if test -z "$sound_found"; then 10283 if test -z "$sound_found"; then
10007 for dir in "machine" "sys" "linux"; do 10284 for dir in "machine" "sys" "linux"; do
10008 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10285 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10009 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10286 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10010 echo "configure:10011: checking for ${dir}/soundcard.h" >&5 10287 echo "configure:10288: checking for ${dir}/soundcard.h" >&5
10011 10288
10012 cat > conftest.$ac_ext <<EOF 10289 cat > conftest.$ac_ext <<EOF
10013 #line 10014 "configure" 10290 #line 10291 "configure"
10014 #include "confdefs.h" 10291 #include "confdefs.h"
10015 #include <${dir}/soundcard.h> 10292 #include <${dir}/soundcard.h>
10016 EOF 10293 EOF
10017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10294 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; } 10295 { (eval echo configure:10296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10019 ac_err=`grep -v '^ *+' conftest.out` 10296 ac_err=`grep -v '^ *+' conftest.out`
10020 if test -z "$ac_err"; then 10297 if test -z "$ac_err"; then
10021 rm -rf conftest* 10298 rm -rf conftest*
10022 eval "ac_cv_header_$ac_safe=yes" 10299 eval "ac_cv_header_$ac_safe=yes"
10023 else 10300 else
10083 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10360 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10084 echo " xemacs will be linked with \"nas.o\"" 10361 echo " xemacs will be linked with \"nas.o\""
10085 fi 10362 fi
10086 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10363 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10087 cat > conftest.$ac_ext <<EOF 10364 cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure" 10365 #line 10366 "configure"
10089 #include "confdefs.h" 10366 #include "confdefs.h"
10090 #include <audio/Xtutil.h> 10367 #include <audio/Xtutil.h>
10091 EOF 10368 EOF
10092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10093 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10370 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10110 10387
10111 test -z "$with_tty" && with_tty=yes 10388 test -z "$with_tty" && with_tty=yes
10112 10389
10113 if test "$with_tty" = "yes" ; then 10390 if test "$with_tty" = "yes" ; then
10114 echo "checking for TTY-related features" 1>&6 10391 echo "checking for TTY-related features" 1>&6
10115 echo "configure:10116: checking for TTY-related features" >&5 10392 echo "configure:10393: checking for TTY-related features" >&5
10116 { test "$extra_verbose" = "yes" && cat << \EOF 10393 { test "$extra_verbose" = "yes" && cat << \EOF
10117 Defining HAVE_TTY 10394 Defining HAVE_TTY
10118 EOF 10395 EOF
10119 cat >> confdefs.h <<\EOF 10396 cat >> confdefs.h <<\EOF
10120 #define HAVE_TTY 1 10397 #define HAVE_TTY 1
10126 fi 10403 fi
10127 10404
10128 if test -z "$with_ncurses"; then 10405 if test -z "$with_ncurses"; then
10129 10406
10130 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 10407 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10131 echo "configure:10132: checking for tgetent in -lncurses" >&5 10408 echo "configure:10409: checking for tgetent in -lncurses" >&5
10132 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 10409 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10133 10410
10134 xe_check_libs=" -lncurses " 10411 xe_check_libs=" -lncurses "
10135 cat > conftest.$ac_ext <<EOF 10412 cat > conftest.$ac_ext <<EOF
10136 #line 10137 "configure" 10413 #line 10414 "configure"
10137 #include "confdefs.h" 10414 #include "confdefs.h"
10138 /* Override any gcc2 internal prototype to avoid an error. */ 10415 /* Override any gcc2 internal prototype to avoid an error. */
10139 /* We use char because int might match the return type of a gcc2 10416 /* We use char because int might match the return type of a gcc2
10140 builtin and then its argument prototype would still apply. */ 10417 builtin and then its argument prototype would still apply. */
10141 char tgetent(); 10418 char tgetent();
10142 10419
10143 int main() { 10420 int main() {
10144 tgetent() 10421 tgetent()
10145 ; return 0; } 10422 ; return 0; }
10146 EOF 10423 EOF
10147 if { (eval echo configure:10148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10424 if { (eval echo configure:10425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10148 rm -rf conftest* 10425 rm -rf conftest*
10149 eval "ac_cv_lib_$ac_lib_var=yes" 10426 eval "ac_cv_lib_$ac_lib_var=yes"
10150 else 10427 else
10151 echo "configure: failed program was:" >&5 10428 echo "configure: failed program was:" >&5
10152 cat conftest.$ac_ext >&5 10429 cat conftest.$ac_ext >&5
10175 EOF 10452 EOF
10176 } 10453 }
10177 10454
10178 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10455 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10179 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10456 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10180 echo "configure:10181: checking for ncurses/curses.h" >&5 10457 echo "configure:10458: checking for ncurses/curses.h" >&5
10181 10458
10182 cat > conftest.$ac_ext <<EOF 10459 cat > conftest.$ac_ext <<EOF
10183 #line 10184 "configure" 10460 #line 10461 "configure"
10184 #include "confdefs.h" 10461 #include "confdefs.h"
10185 #include <ncurses/curses.h> 10462 #include <ncurses/curses.h>
10186 EOF 10463 EOF
10187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10464 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; } 10465 { (eval echo configure:10466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10189 ac_err=`grep -v '^ *+' conftest.out` 10466 ac_err=`grep -v '^ *+' conftest.out`
10190 if test -z "$ac_err"; then 10467 if test -z "$ac_err"; then
10191 rm -rf conftest* 10468 rm -rf conftest*
10192 eval "ac_cv_header_$ac_safe=yes" 10469 eval "ac_cv_header_$ac_safe=yes"
10193 else 10470 else
10205 echo "$ac_t""no" 1>&6 10482 echo "$ac_t""no" 1>&6
10206 fi 10483 fi
10207 10484
10208 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 10485 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10209 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 10486 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10210 echo "configure:10211: checking for ncurses/term.h" >&5 10487 echo "configure:10488: checking for ncurses/term.h" >&5
10211 10488
10212 cat > conftest.$ac_ext <<EOF 10489 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure" 10490 #line 10491 "configure"
10214 #include "confdefs.h" 10491 #include "confdefs.h"
10215 #include <ncurses/term.h> 10492 #include <ncurses/term.h>
10216 EOF 10493 EOF
10217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10494 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; } 10495 { (eval echo configure:10496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10219 ac_err=`grep -v '^ *+' conftest.out` 10496 ac_err=`grep -v '^ *+' conftest.out`
10220 if test -z "$ac_err"; then 10497 if test -z "$ac_err"; then
10221 rm -rf conftest* 10498 rm -rf conftest*
10222 eval "ac_cv_header_$ac_safe=yes" 10499 eval "ac_cv_header_$ac_safe=yes"
10223 else 10500 else
10243 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 10520 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10244 save_c_switch_site="$c_switch_site" 10521 save_c_switch_site="$c_switch_site"
10245 c_switch_site="$c_switch_site -I/usr/include/ncurses" 10522 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10246 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10523 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10247 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10524 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10248 echo "configure:10249: checking for ncurses/curses.h" >&5 10525 echo "configure:10526: checking for ncurses/curses.h" >&5
10249 10526
10250 cat > conftest.$ac_ext <<EOF 10527 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure" 10528 #line 10529 "configure"
10252 #include "confdefs.h" 10529 #include "confdefs.h"
10253 #include <ncurses/curses.h> 10530 #include <ncurses/curses.h>
10254 EOF 10531 EOF
10255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10532 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; } 10533 { (eval echo configure:10534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10257 ac_err=`grep -v '^ *+' conftest.out` 10534 ac_err=`grep -v '^ *+' conftest.out`
10258 if test -z "$ac_err"; then 10535 if test -z "$ac_err"; then
10259 rm -rf conftest* 10536 rm -rf conftest*
10260 eval "ac_cv_header_$ac_safe=yes" 10537 eval "ac_cv_header_$ac_safe=yes"
10261 else 10538 else
10286 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10563 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10287 else 10564 else
10288 for lib in curses termlib termcap; do 10565 for lib in curses termlib termcap; do
10289 10566
10290 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 10567 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10291 echo "configure:10292: checking for tgetent in -l$lib" >&5 10568 echo "configure:10569: checking for tgetent in -l$lib" >&5
10292 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 10569 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10293 10570
10294 xe_check_libs=" -l$lib " 10571 xe_check_libs=" -l$lib "
10295 cat > conftest.$ac_ext <<EOF 10572 cat > conftest.$ac_ext <<EOF
10296 #line 10297 "configure" 10573 #line 10574 "configure"
10297 #include "confdefs.h" 10574 #include "confdefs.h"
10298 /* Override any gcc2 internal prototype to avoid an error. */ 10575 /* Override any gcc2 internal prototype to avoid an error. */
10299 /* We use char because int might match the return type of a gcc2 10576 /* We use char because int might match the return type of a gcc2
10300 builtin and then its argument prototype would still apply. */ 10577 builtin and then its argument prototype would still apply. */
10301 char tgetent(); 10578 char tgetent();
10302 10579
10303 int main() { 10580 int main() {
10304 tgetent() 10581 tgetent()
10305 ; return 0; } 10582 ; return 0; }
10306 EOF 10583 EOF
10307 if { (eval echo configure:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10584 if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10308 rm -rf conftest* 10585 rm -rf conftest*
10309 eval "ac_cv_lib_$ac_lib_var=yes" 10586 eval "ac_cv_lib_$ac_lib_var=yes"
10310 else 10587 else
10311 echo "configure: failed program was:" >&5 10588 echo "configure: failed program was:" >&5
10312 cat conftest.$ac_ext >&5 10589 cat conftest.$ac_ext >&5
10333 if test -n "$libs_termcap"; then 10610 if test -n "$libs_termcap"; then
10334 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10611 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10335 else 10612 else
10336 10613
10337 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10614 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10338 echo "configure:10339: checking for tgetent in -lcurses" >&5 10615 echo "configure:10616: checking for tgetent in -lcurses" >&5
10339 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10616 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10340 10617
10341 xe_check_libs=" -lcurses " 10618 xe_check_libs=" -lcurses "
10342 cat > conftest.$ac_ext <<EOF 10619 cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure" 10620 #line 10621 "configure"
10344 #include "confdefs.h" 10621 #include "confdefs.h"
10345 /* Override any gcc2 internal prototype to avoid an error. */ 10622 /* Override any gcc2 internal prototype to avoid an error. */
10346 /* We use char because int might match the return type of a gcc2 10623 /* We use char because int might match the return type of a gcc2
10347 builtin and then its argument prototype would still apply. */ 10624 builtin and then its argument prototype would still apply. */
10348 char tgetent(); 10625 char tgetent();
10349 10626
10350 int main() { 10627 int main() {
10351 tgetent() 10628 tgetent()
10352 ; return 0; } 10629 ; return 0; }
10353 EOF 10630 EOF
10354 if { (eval echo configure:10355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10631 if { (eval echo configure:10632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10355 rm -rf conftest* 10632 rm -rf conftest*
10356 eval "ac_cv_lib_$ac_lib_var=yes" 10633 eval "ac_cv_lib_$ac_lib_var=yes"
10357 else 10634 else
10358 echo "configure: failed program was:" >&5 10635 echo "configure: failed program was:" >&5
10359 cat conftest.$ac_ext >&5 10636 cat conftest.$ac_ext >&5
10367 echo "$ac_t""yes" 1>&6 10644 echo "$ac_t""yes" 1>&6
10368 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 10645 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
10369 else 10646 else
10370 echo "$ac_t""no" 1>&6 10647 echo "$ac_t""no" 1>&6
10371 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 10648 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
10372 echo "configure:10373: checking for tgetent in -ltermcap" >&5 10649 echo "configure:10650: checking for tgetent in -ltermcap" >&5
10373 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 10650 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
10374 10651
10375 xe_check_libs=" -ltermcap " 10652 xe_check_libs=" -ltermcap "
10376 cat > conftest.$ac_ext <<EOF 10653 cat > conftest.$ac_ext <<EOF
10377 #line 10378 "configure" 10654 #line 10655 "configure"
10378 #include "confdefs.h" 10655 #include "confdefs.h"
10379 /* Override any gcc2 internal prototype to avoid an error. */ 10656 /* Override any gcc2 internal prototype to avoid an error. */
10380 /* We use char because int might match the return type of a gcc2 10657 /* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */ 10658 builtin and then its argument prototype would still apply. */
10382 char tgetent(); 10659 char tgetent();
10383 10660
10384 int main() { 10661 int main() {
10385 tgetent() 10662 tgetent()
10386 ; return 0; } 10663 ; return 0; }
10387 EOF 10664 EOF
10388 if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10665 if { (eval echo configure:10666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10389 rm -rf conftest* 10666 rm -rf conftest*
10390 eval "ac_cv_lib_$ac_lib_var=yes" 10667 eval "ac_cv_lib_$ac_lib_var=yes"
10391 else 10668 else
10392 echo "configure: failed program was:" >&5 10669 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5 10670 cat conftest.$ac_ext >&5
10431 } 10708 }
10432 10709
10433 10710
10434 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 10711 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
10435 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 10712 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
10436 echo "configure:10437: checking for gpm.h" >&5 10713 echo "configure:10714: checking for gpm.h" >&5
10437 10714
10438 cat > conftest.$ac_ext <<EOF 10715 cat > conftest.$ac_ext <<EOF
10439 #line 10440 "configure" 10716 #line 10717 "configure"
10440 #include "confdefs.h" 10717 #include "confdefs.h"
10441 #include <gpm.h> 10718 #include <gpm.h>
10442 EOF 10719 EOF
10443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10720 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; } 10721 { (eval echo configure:10722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10445 ac_err=`grep -v '^ *+' conftest.out` 10722 ac_err=`grep -v '^ *+' conftest.out`
10446 if test -z "$ac_err"; then 10723 if test -z "$ac_err"; then
10447 rm -rf conftest* 10724 rm -rf conftest*
10448 eval "ac_cv_header_$ac_safe=yes" 10725 eval "ac_cv_header_$ac_safe=yes"
10449 else 10726 else
10462 with_gpm=no 10739 with_gpm=no
10463 fi 10740 fi
10464 } 10741 }
10465 test -z "$with_gpm" && { 10742 test -z "$with_gpm" && {
10466 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 10743 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
10467 echo "configure:10468: checking for Gpm_Open in -lgpm" >&5 10744 echo "configure:10745: checking for Gpm_Open in -lgpm" >&5
10468 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 10745 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
10469 10746
10470 xe_check_libs=" -lgpm " 10747 xe_check_libs=" -lgpm "
10471 cat > conftest.$ac_ext <<EOF 10748 cat > conftest.$ac_ext <<EOF
10472 #line 10473 "configure" 10749 #line 10750 "configure"
10473 #include "confdefs.h" 10750 #include "confdefs.h"
10474 /* Override any gcc2 internal prototype to avoid an error. */ 10751 /* Override any gcc2 internal prototype to avoid an error. */
10475 /* We use char because int might match the return type of a gcc2 10752 /* We use char because int might match the return type of a gcc2
10476 builtin and then its argument prototype would still apply. */ 10753 builtin and then its argument prototype would still apply. */
10477 char Gpm_Open(); 10754 char Gpm_Open();
10478 10755
10479 int main() { 10756 int main() {
10480 Gpm_Open() 10757 Gpm_Open()
10481 ; return 0; } 10758 ; return 0; }
10482 EOF 10759 EOF
10483 if { (eval echo configure:10484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10760 if { (eval echo configure:10761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10484 rm -rf conftest* 10761 rm -rf conftest*
10485 eval "ac_cv_lib_$ac_lib_var=yes" 10762 eval "ac_cv_lib_$ac_lib_var=yes"
10486 else 10763 else
10487 echo "configure: failed program was:" >&5 10764 echo "configure: failed program was:" >&5
10488 cat conftest.$ac_ext >&5 10765 cat conftest.$ac_ext >&5
10527 echo " xemacs will be linked with \"event-unixoid.o\"" 10804 echo " xemacs will be linked with \"event-unixoid.o\""
10528 fi 10805 fi
10529 10806
10530 10807
10531 echo "checking for database support" 1>&6 10808 echo "checking for database support" 1>&6
10532 echo "configure:10533: checking for database support" >&5 10809 echo "configure:10810: checking for database support" >&5
10533 10810
10534 if test "$with_database_gnudbm" != "no"; then 10811 if test "$with_database_gnudbm" != "no"; then
10535 for ac_hdr in ndbm.h 10812 for ac_hdr in ndbm.h
10536 do 10813 do
10537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10539 echo "configure:10540: checking for $ac_hdr" >&5 10816 echo "configure:10817: checking for $ac_hdr" >&5
10540 10817
10541 cat > conftest.$ac_ext <<EOF 10818 cat > conftest.$ac_ext <<EOF
10542 #line 10543 "configure" 10819 #line 10820 "configure"
10543 #include "confdefs.h" 10820 #include "confdefs.h"
10544 #include <$ac_hdr> 10821 #include <$ac_hdr>
10545 EOF 10822 EOF
10546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10823 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; } 10824 { (eval echo configure:10825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10548 ac_err=`grep -v '^ *+' conftest.out` 10825 ac_err=`grep -v '^ *+' conftest.out`
10549 if test -z "$ac_err"; then 10826 if test -z "$ac_err"; then
10550 rm -rf conftest* 10827 rm -rf conftest*
10551 eval "ac_cv_header_$ac_safe=yes" 10828 eval "ac_cv_header_$ac_safe=yes"
10552 else 10829 else
10574 done 10851 done
10575 10852
10576 if test "$have_ndbm_h" = "yes"; then 10853 if test "$have_ndbm_h" = "yes"; then
10577 10854
10578 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 10855 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
10579 echo "configure:10580: checking for dbm_open in -lgdbm" >&5 10856 echo "configure:10857: checking for dbm_open in -lgdbm" >&5
10580 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 10857 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
10581 10858
10582 xe_check_libs=" -lgdbm " 10859 xe_check_libs=" -lgdbm "
10583 cat > conftest.$ac_ext <<EOF 10860 cat > conftest.$ac_ext <<EOF
10584 #line 10585 "configure" 10861 #line 10862 "configure"
10585 #include "confdefs.h" 10862 #include "confdefs.h"
10586 /* Override any gcc2 internal prototype to avoid an error. */ 10863 /* Override any gcc2 internal prototype to avoid an error. */
10587 /* We use char because int might match the return type of a gcc2 10864 /* We use char because int might match the return type of a gcc2
10588 builtin and then its argument prototype would still apply. */ 10865 builtin and then its argument prototype would still apply. */
10589 char dbm_open(); 10866 char dbm_open();
10590 10867
10591 int main() { 10868 int main() {
10592 dbm_open() 10869 dbm_open()
10593 ; return 0; } 10870 ; return 0; }
10594 EOF 10871 EOF
10595 if { (eval echo configure:10596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10872 if { (eval echo configure:10873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10596 rm -rf conftest* 10873 rm -rf conftest*
10597 eval "ac_cv_lib_$ac_lib_var=yes" 10874 eval "ac_cv_lib_$ac_lib_var=yes"
10598 else 10875 else
10599 echo "configure: failed program was:" >&5 10876 echo "configure: failed program was:" >&5
10600 cat conftest.$ac_ext >&5 10877 cat conftest.$ac_ext >&5
10613 10890
10614 10891
10615 fi 10892 fi
10616 if test "$with_database_gnudbm" != "yes"; then 10893 if test "$with_database_gnudbm" != "yes"; then
10617 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 10894 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
10618 echo "configure:10619: checking for dbm_open" >&5 10895 echo "configure:10896: checking for dbm_open" >&5
10619 10896
10620 cat > conftest.$ac_ext <<EOF 10897 cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure" 10898 #line 10899 "configure"
10622 #include "confdefs.h" 10899 #include "confdefs.h"
10623 /* System header to define __stub macros and hopefully few prototypes, 10900 /* System header to define __stub macros and hopefully few prototypes,
10624 which can conflict with char dbm_open(); below. */ 10901 which can conflict with char dbm_open(); below. */
10625 #include <assert.h> 10902 #include <assert.h>
10626 /* Override any gcc2 internal prototype to avoid an error. */ 10903 /* Override any gcc2 internal prototype to avoid an error. */
10639 dbm_open(); 10916 dbm_open();
10640 #endif 10917 #endif
10641 10918
10642 ; return 0; } 10919 ; return 0; }
10643 EOF 10920 EOF
10644 if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10921 if { (eval echo configure:10922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10645 rm -rf conftest* 10922 rm -rf conftest*
10646 eval "ac_cv_func_dbm_open=yes" 10923 eval "ac_cv_func_dbm_open=yes"
10647 else 10924 else
10648 echo "configure: failed program was:" >&5 10925 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5 10926 cat conftest.$ac_ext >&5
10675 fi 10952 fi
10676 fi 10953 fi
10677 10954
10678 if test "$with_database_dbm" != "no"; then 10955 if test "$with_database_dbm" != "no"; then
10679 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 10956 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
10680 echo "configure:10681: checking for dbm_open" >&5 10957 echo "configure:10958: checking for dbm_open" >&5
10681 10958
10682 cat > conftest.$ac_ext <<EOF 10959 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure" 10960 #line 10961 "configure"
10684 #include "confdefs.h" 10961 #include "confdefs.h"
10685 /* System header to define __stub macros and hopefully few prototypes, 10962 /* System header to define __stub macros and hopefully few prototypes,
10686 which can conflict with char dbm_open(); below. */ 10963 which can conflict with char dbm_open(); below. */
10687 #include <assert.h> 10964 #include <assert.h>
10688 /* Override any gcc2 internal prototype to avoid an error. */ 10965 /* Override any gcc2 internal prototype to avoid an error. */
10701 dbm_open(); 10978 dbm_open();
10702 #endif 10979 #endif
10703 10980
10704 ; return 0; } 10981 ; return 0; }
10705 EOF 10982 EOF
10706 if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10983 if { (eval echo configure:10984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10707 rm -rf conftest* 10984 rm -rf conftest*
10708 eval "ac_cv_func_dbm_open=yes" 10985 eval "ac_cv_func_dbm_open=yes"
10709 else 10986 else
10710 echo "configure: failed program was:" >&5 10987 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5 10988 cat conftest.$ac_ext >&5
10722 fi 10999 fi
10723 11000
10724 if test "$need_libdbm" != "no"; then 11001 if test "$need_libdbm" != "no"; then
10725 11002
10726 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 11003 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
10727 echo "configure:10728: checking for dbm_open in -ldbm" >&5 11004 echo "configure:11005: checking for dbm_open in -ldbm" >&5
10728 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 11005 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
10729 11006
10730 xe_check_libs=" -ldbm " 11007 xe_check_libs=" -ldbm "
10731 cat > conftest.$ac_ext <<EOF 11008 cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure" 11009 #line 11010 "configure"
10733 #include "confdefs.h" 11010 #include "confdefs.h"
10734 /* Override any gcc2 internal prototype to avoid an error. */ 11011 /* Override any gcc2 internal prototype to avoid an error. */
10735 /* We use char because int might match the return type of a gcc2 11012 /* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */ 11013 builtin and then its argument prototype would still apply. */
10737 char dbm_open(); 11014 char dbm_open();
10738 11015
10739 int main() { 11016 int main() {
10740 dbm_open() 11017 dbm_open()
10741 ; return 0; } 11018 ; return 0; }
10742 EOF 11019 EOF
10743 if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11020 if { (eval echo configure:11021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10744 rm -rf conftest* 11021 rm -rf conftest*
10745 eval "ac_cv_lib_$ac_lib_var=yes" 11022 eval "ac_cv_lib_$ac_lib_var=yes"
10746 else 11023 else
10747 echo "configure: failed program was:" >&5 11024 echo "configure: failed program was:" >&5
10748 cat conftest.$ac_ext >&5 11025 cat conftest.$ac_ext >&5
10775 fi 11052 fi
10776 fi 11053 fi
10777 11054
10778 if test "$with_database_berkdb" != "no"; then 11055 if test "$with_database_berkdb" != "no"; then
10779 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 11056 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
10780 echo "configure:10781: checking for Berkeley db.h" >&5 11057 echo "configure:11058: checking for Berkeley db.h" >&5
10781 for path in "db/db.h" "db.h"; do 11058 for path in "db/db.h" "db.h"; do
10782 cat > conftest.$ac_ext <<EOF 11059 cat > conftest.$ac_ext <<EOF
10783 #line 10784 "configure" 11060 #line 11061 "configure"
10784 #include "confdefs.h" 11061 #include "confdefs.h"
10785 #ifdef HAVE_INTTYPES_H 11062 #ifdef HAVE_INTTYPES_H
10786 #define __BIT_TYPES_DEFINED__ 11063 #define __BIT_TYPES_DEFINED__
10787 #include <inttypes.h> 11064 #include <inttypes.h>
10788 typedef uint8_t u_int8_t; 11065 typedef uint8_t u_int8_t;
10796 11073
10797 int main() { 11074 int main() {
10798 11075
10799 ; return 0; } 11076 ; return 0; }
10800 EOF 11077 EOF
10801 if { (eval echo configure:10802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11078 if { (eval echo configure:11079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10802 rm -rf conftest* 11079 rm -rf conftest*
10803 db_h_path="$path"; break 11080 db_h_path="$path"; break
10804 else 11081 else
10805 echo "configure: failed program was:" >&5 11082 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5 11083 cat conftest.$ac_ext >&5
10807 fi 11084 fi
10808 rm -f conftest* 11085 rm -f conftest*
10809 done 11086 done
10810 if test -z "$db_h_path" 11087 if test -z "$db_h_path"
10811 then echo "$ac_t""no" 1>&6; with_database_berkdb=no 11088 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
10812 else echo "$ac_t""$db_h_path" 1>&6 11089 else echo "$ac_t""$db_h_path" 1>&6
10813 fi 11090 fi
10814 11091
10815 if test "$with_database_berkdb" != "no"; then 11092 if test "$with_database_berkdb" != "no"; then
10816 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 11093 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
10817 echo "configure:10818: checking for Berkeley DB version" >&5 11094 echo "configure:11095: checking for Berkeley DB version" >&5
10818 cat > conftest.$ac_ext <<EOF 11095 cat > conftest.$ac_ext <<EOF
10819 #line 10820 "configure" 11096 #line 11097 "configure"
10820 #include "confdefs.h" 11097 #include "confdefs.h"
10821 #include <$db_h_path> 11098 #include <$db_h_path>
10822 #if DB_VERSION_MAJOR > 1 11099 #if DB_VERSION_MAJOR > 1
10823 yes 11100 yes
10824 #endif 11101 #endif
10833 echo "$ac_t""1" 1>&6; dbfunc=dbopen 11110 echo "$ac_t""1" 1>&6; dbfunc=dbopen
10834 fi 11111 fi
10835 rm -f conftest* 11112 rm -f conftest*
10836 11113
10837 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 11114 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
10838 echo "configure:10839: checking for $dbfunc" >&5 11115 echo "configure:11116: checking for $dbfunc" >&5
10839 11116
10840 cat > conftest.$ac_ext <<EOF 11117 cat > conftest.$ac_ext <<EOF
10841 #line 10842 "configure" 11118 #line 11119 "configure"
10842 #include "confdefs.h" 11119 #include "confdefs.h"
10843 /* System header to define __stub macros and hopefully few prototypes, 11120 /* System header to define __stub macros and hopefully few prototypes,
10844 which can conflict with char $dbfunc(); below. */ 11121 which can conflict with char $dbfunc(); below. */
10845 #include <assert.h> 11122 #include <assert.h>
10846 /* Override any gcc2 internal prototype to avoid an error. */ 11123 /* Override any gcc2 internal prototype to avoid an error. */
10859 $dbfunc(); 11136 $dbfunc();
10860 #endif 11137 #endif
10861 11138
10862 ; return 0; } 11139 ; return 0; }
10863 EOF 11140 EOF
10864 if { (eval echo configure:10865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10865 rm -rf conftest* 11142 rm -rf conftest*
10866 eval "ac_cv_func_$dbfunc=yes" 11143 eval "ac_cv_func_$dbfunc=yes"
10867 else 11144 else
10868 echo "configure: failed program was:" >&5 11145 echo "configure: failed program was:" >&5
10869 cat conftest.$ac_ext >&5 11146 cat conftest.$ac_ext >&5
10878 else 11155 else
10879 echo "$ac_t""no" 1>&6 11156 echo "$ac_t""no" 1>&6
10880 11157
10881 11158
10882 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 11159 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
10883 echo "configure:10884: checking for $dbfunc in -ldb" >&5 11160 echo "configure:11161: checking for $dbfunc in -ldb" >&5
10884 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 11161 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
10885 11162
10886 xe_check_libs=" -ldb " 11163 xe_check_libs=" -ldb "
10887 cat > conftest.$ac_ext <<EOF 11164 cat > conftest.$ac_ext <<EOF
10888 #line 10889 "configure" 11165 #line 11166 "configure"
10889 #include "confdefs.h" 11166 #include "confdefs.h"
10890 /* Override any gcc2 internal prototype to avoid an error. */ 11167 /* Override any gcc2 internal prototype to avoid an error. */
10891 /* We use char because int might match the return type of a gcc2 11168 /* We use char because int might match the return type of a gcc2
10892 builtin and then its argument prototype would still apply. */ 11169 builtin and then its argument prototype would still apply. */
10893 char $dbfunc(); 11170 char $dbfunc();
10894 11171
10895 int main() { 11172 int main() {
10896 $dbfunc() 11173 $dbfunc()
10897 ; return 0; } 11174 ; return 0; }
10898 EOF 11175 EOF
10899 if { (eval echo configure:10900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11176 if { (eval echo configure:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10900 rm -rf conftest* 11177 rm -rf conftest*
10901 eval "ac_cv_lib_$ac_lib_var=yes" 11178 eval "ac_cv_lib_$ac_lib_var=yes"
10902 else 11179 else
10903 echo "configure: failed program was:" >&5 11180 echo "configure: failed program was:" >&5
10904 cat conftest.$ac_ext >&5 11181 cat conftest.$ac_ext >&5
10958 fi 11235 fi
10959 11236
10960 if test "$with_socks" = "yes"; then 11237 if test "$with_socks" = "yes"; then
10961 11238
10962 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 11239 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
10963 echo "configure:10964: checking for SOCKSinit in -lsocks" >&5 11240 echo "configure:11241: checking for SOCKSinit in -lsocks" >&5
10964 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 11241 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
10965 11242
10966 xe_check_libs=" -lsocks " 11243 xe_check_libs=" -lsocks "
10967 cat > conftest.$ac_ext <<EOF 11244 cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure" 11245 #line 11246 "configure"
10969 #include "confdefs.h" 11246 #include "confdefs.h"
10970 /* Override any gcc2 internal prototype to avoid an error. */ 11247 /* Override any gcc2 internal prototype to avoid an error. */
10971 /* We use char because int might match the return type of a gcc2 11248 /* We use char because int might match the return type of a gcc2
10972 builtin and then its argument prototype would still apply. */ 11249 builtin and then its argument prototype would still apply. */
10973 char SOCKSinit(); 11250 char SOCKSinit();
10974 11251
10975 int main() { 11252 int main() {
10976 SOCKSinit() 11253 SOCKSinit()
10977 ; return 0; } 11254 ; return 0; }
10978 EOF 11255 EOF
10979 if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11256 if { (eval echo configure:11257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10980 rm -rf conftest* 11257 rm -rf conftest*
10981 eval "ac_cv_lib_$ac_lib_var=yes" 11258 eval "ac_cv_lib_$ac_lib_var=yes"
10982 else 11259 else
10983 echo "configure: failed program was:" >&5 11260 echo "configure: failed program was:" >&5
10984 cat conftest.$ac_ext >&5 11261 cat conftest.$ac_ext >&5
11031 11308
11032 for ac_hdr in dlfcn.h 11309 for ac_hdr in dlfcn.h
11033 do 11310 do
11034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11036 echo "configure:11037: checking for $ac_hdr" >&5 11313 echo "configure:11314: checking for $ac_hdr" >&5
11037 11314
11038 cat > conftest.$ac_ext <<EOF 11315 cat > conftest.$ac_ext <<EOF
11039 #line 11040 "configure" 11316 #line 11317 "configure"
11040 #include "confdefs.h" 11317 #include "confdefs.h"
11041 #include <$ac_hdr> 11318 #include <$ac_hdr>
11042 EOF 11319 EOF
11043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11320 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; } 11321 { (eval echo configure:11322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11045 ac_err=`grep -v '^ *+' conftest.out` 11322 ac_err=`grep -v '^ *+' conftest.out`
11046 if test -z "$ac_err"; then 11323 if test -z "$ac_err"; then
11047 rm -rf conftest* 11324 rm -rf conftest*
11048 eval "ac_cv_header_$ac_safe=yes" 11325 eval "ac_cv_header_$ac_safe=yes"
11049 else 11326 else
11070 fi 11347 fi
11071 done 11348 done
11072 11349
11073 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11350 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11074 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11351 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11075 echo "configure:11076: checking for dlopen in -ldl" >&5 11352 echo "configure:11353: checking for dlopen in -ldl" >&5
11076 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11353 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11077 11354
11078 xe_check_libs=" -ldl " 11355 xe_check_libs=" -ldl "
11079 cat > conftest.$ac_ext <<EOF 11356 cat > conftest.$ac_ext <<EOF
11080 #line 11081 "configure" 11357 #line 11358 "configure"
11081 #include "confdefs.h" 11358 #include "confdefs.h"
11082 /* Override any gcc2 internal prototype to avoid an error. */ 11359 /* Override any gcc2 internal prototype to avoid an error. */
11083 /* We use char because int might match the return type of a gcc2 11360 /* We use char because int might match the return type of a gcc2
11084 builtin and then its argument prototype would still apply. */ 11361 builtin and then its argument prototype would still apply. */
11085 char dlopen(); 11362 char dlopen();
11086 11363
11087 int main() { 11364 int main() {
11088 dlopen() 11365 dlopen()
11089 ; return 0; } 11366 ; return 0; }
11090 EOF 11367 EOF
11091 if { (eval echo configure:11092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11368 if { (eval echo configure:11369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11092 rm -rf conftest* 11369 rm -rf conftest*
11093 eval "ac_cv_lib_$ac_lib_var=yes" 11370 eval "ac_cv_lib_$ac_lib_var=yes"
11094 else 11371 else
11095 echo "configure: failed program was:" >&5 11372 echo "configure: failed program was:" >&5
11096 cat conftest.$ac_ext >&5 11373 cat conftest.$ac_ext >&5
11115 fi 11392 fi
11116 11393
11117 } 11394 }
11118 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11395 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11119 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 11396 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11120 echo "configure:11121: checking for _dlopen in -lc" >&5 11397 echo "configure:11398: checking for _dlopen in -lc" >&5
11121 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 11398 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11122 11399
11123 xe_check_libs=" -lc " 11400 xe_check_libs=" -lc "
11124 cat > conftest.$ac_ext <<EOF 11401 cat > conftest.$ac_ext <<EOF
11125 #line 11126 "configure" 11402 #line 11403 "configure"
11126 #include "confdefs.h" 11403 #include "confdefs.h"
11127 /* Override any gcc2 internal prototype to avoid an error. */ 11404 /* Override any gcc2 internal prototype to avoid an error. */
11128 /* We use char because int might match the return type of a gcc2 11405 /* We use char because int might match the return type of a gcc2
11129 builtin and then its argument prototype would still apply. */ 11406 builtin and then its argument prototype would still apply. */
11130 char _dlopen(); 11407 char _dlopen();
11131 11408
11132 int main() { 11409 int main() {
11133 _dlopen() 11410 _dlopen()
11134 ; return 0; } 11411 ; return 0; }
11135 EOF 11412 EOF
11136 if { (eval echo configure:11137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11413 if { (eval echo configure:11414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11137 rm -rf conftest* 11414 rm -rf conftest*
11138 eval "ac_cv_lib_$ac_lib_var=yes" 11415 eval "ac_cv_lib_$ac_lib_var=yes"
11139 else 11416 else
11140 echo "configure: failed program was:" >&5 11417 echo "configure: failed program was:" >&5
11141 cat conftest.$ac_ext >&5 11418 cat conftest.$ac_ext >&5
11160 fi 11437 fi
11161 11438
11162 } 11439 }
11163 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11440 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11164 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11441 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11165 echo "configure:11166: checking for dlopen in -lc" >&5 11442 echo "configure:11443: checking for dlopen in -lc" >&5
11166 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11443 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11167 11444
11168 xe_check_libs=" -lc " 11445 xe_check_libs=" -lc "
11169 cat > conftest.$ac_ext <<EOF 11446 cat > conftest.$ac_ext <<EOF
11170 #line 11171 "configure" 11447 #line 11448 "configure"
11171 #include "confdefs.h" 11448 #include "confdefs.h"
11172 /* Override any gcc2 internal prototype to avoid an error. */ 11449 /* Override any gcc2 internal prototype to avoid an error. */
11173 /* We use char because int might match the return type of a gcc2 11450 /* We use char because int might match the return type of a gcc2
11174 builtin and then its argument prototype would still apply. */ 11451 builtin and then its argument prototype would still apply. */
11175 char dlopen(); 11452 char dlopen();
11176 11453
11177 int main() { 11454 int main() {
11178 dlopen() 11455 dlopen()
11179 ; return 0; } 11456 ; return 0; }
11180 EOF 11457 EOF
11181 if { (eval echo configure:11182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11458 if { (eval echo configure:11459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11182 rm -rf conftest* 11459 rm -rf conftest*
11183 eval "ac_cv_lib_$ac_lib_var=yes" 11460 eval "ac_cv_lib_$ac_lib_var=yes"
11184 else 11461 else
11185 echo "configure: failed program was:" >&5 11462 echo "configure: failed program was:" >&5
11186 cat conftest.$ac_ext >&5 11463 cat conftest.$ac_ext >&5
11205 fi 11482 fi
11206 11483
11207 } 11484 }
11208 test -z "$with_shlib" && { 11485 test -z "$with_shlib" && {
11209 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11486 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11210 echo "configure:11211: checking for shl_load in -ldld" >&5 11487 echo "configure:11488: checking for shl_load in -ldld" >&5
11211 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11488 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11212 11489
11213 xe_check_libs=" -ldld " 11490 xe_check_libs=" -ldld "
11214 cat > conftest.$ac_ext <<EOF 11491 cat > conftest.$ac_ext <<EOF
11215 #line 11216 "configure" 11492 #line 11493 "configure"
11216 #include "confdefs.h" 11493 #include "confdefs.h"
11217 /* Override any gcc2 internal prototype to avoid an error. */ 11494 /* Override any gcc2 internal prototype to avoid an error. */
11218 /* We use char because int might match the return type of a gcc2 11495 /* We use char because int might match the return type of a gcc2
11219 builtin and then its argument prototype would still apply. */ 11496 builtin and then its argument prototype would still apply. */
11220 char shl_load(); 11497 char shl_load();
11221 11498
11222 int main() { 11499 int main() {
11223 shl_load() 11500 shl_load()
11224 ; return 0; } 11501 ; return 0; }
11225 EOF 11502 EOF
11226 if { (eval echo configure:11227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11503 if { (eval echo configure:11504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11227 rm -rf conftest* 11504 rm -rf conftest*
11228 eval "ac_cv_lib_$ac_lib_var=yes" 11505 eval "ac_cv_lib_$ac_lib_var=yes"
11229 else 11506 else
11230 echo "configure: failed program was:" >&5 11507 echo "configure: failed program was:" >&5
11231 cat conftest.$ac_ext >&5 11508 cat conftest.$ac_ext >&5
11250 fi 11527 fi
11251 11528
11252 } 11529 }
11253 test -z "$with_shlib" && { 11530 test -z "$with_shlib" && {
11254 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 11531 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11255 echo "configure:11256: checking for dld_init in -ldld" >&5 11532 echo "configure:11533: checking for dld_init in -ldld" >&5
11256 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 11533 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11257 11534
11258 xe_check_libs=" -ldld " 11535 xe_check_libs=" -ldld "
11259 cat > conftest.$ac_ext <<EOF 11536 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure" 11537 #line 11538 "configure"
11261 #include "confdefs.h" 11538 #include "confdefs.h"
11262 /* Override any gcc2 internal prototype to avoid an error. */ 11539 /* Override any gcc2 internal prototype to avoid an error. */
11263 /* We use char because int might match the return type of a gcc2 11540 /* We use char because int might match the return type of a gcc2
11264 builtin and then its argument prototype would still apply. */ 11541 builtin and then its argument prototype would still apply. */
11265 char dld_init(); 11542 char dld_init();
11266 11543
11267 int main() { 11544 int main() {
11268 dld_init() 11545 dld_init()
11269 ; return 0; } 11546 ; return 0; }
11270 EOF 11547 EOF
11271 if { (eval echo configure:11272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11548 if { (eval echo configure:11549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11272 rm -rf conftest* 11549 rm -rf conftest*
11273 eval "ac_cv_lib_$ac_lib_var=yes" 11550 eval "ac_cv_lib_$ac_lib_var=yes"
11274 else 11551 else
11275 echo "configure: failed program was:" >&5 11552 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5 11553 cat conftest.$ac_ext >&5
11316 dll_lflags="-shared" 11593 dll_lflags="-shared"
11317 dll_cflags="-r" 11594 dll_cflags="-r"
11318 dll_oflags="-o " 11595 dll_oflags="-o "
11319 11596
11320 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 11597 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 11598 echo "configure:11599: checking how to build a shared library" >&5
11322 case `uname -rs` in 11599 case `uname -rs` in
11323 UNIX_SV*|UNIX_System_V*) 11600 UNIX_SV*|UNIX_System_V*)
11324 dll_lflags="-G" 11601 dll_lflags="-G"
11325 dll_cflags=-Kpic 11602 dll_cflags=-Kpic
11326 dll_ld="ld" 11603 dll_ld="ld"
11407 11684
11408 11685
11409 for ac_func in dlerror 11686 for ac_func in dlerror
11410 do 11687 do
11411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11412 echo "configure:11413: checking for $ac_func" >&5 11689 echo "configure:11690: checking for $ac_func" >&5
11413 11690
11414 cat > conftest.$ac_ext <<EOF 11691 cat > conftest.$ac_ext <<EOF
11415 #line 11416 "configure" 11692 #line 11693 "configure"
11416 #include "confdefs.h" 11693 #include "confdefs.h"
11417 /* System header to define __stub macros and hopefully few prototypes, 11694 /* System header to define __stub macros and hopefully few prototypes,
11418 which can conflict with char $ac_func(); below. */ 11695 which can conflict with char $ac_func(); below. */
11419 #include <assert.h> 11696 #include <assert.h>
11420 /* Override any gcc2 internal prototype to avoid an error. */ 11697 /* Override any gcc2 internal prototype to avoid an error. */
11433 $ac_func(); 11710 $ac_func();
11434 #endif 11711 #endif
11435 11712
11436 ; return 0; } 11713 ; return 0; }
11437 EOF 11714 EOF
11438 if { (eval echo configure:11439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11715 if { (eval echo configure:11716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11439 rm -rf conftest* 11716 rm -rf conftest*
11440 eval "ac_cv_func_$ac_func=yes" 11717 eval "ac_cv_func_$ac_func=yes"
11441 else 11718 else
11442 echo "configure: failed program was:" >&5 11719 echo "configure: failed program was:" >&5
11443 cat conftest.$ac_ext >&5 11720 cat conftest.$ac_ext >&5
11469 *) ;; 11746 *) ;;
11470 esac 11747 esac
11471 fi 11748 fi
11472 11749
11473 cat > conftest.$ac_ext <<EOF 11750 cat > conftest.$ac_ext <<EOF
11474 #line 11475 "configure" 11751 #line 11752 "configure"
11475 #include "confdefs.h" 11752 #include "confdefs.h"
11476 int main(int c,char *v[]){return 0;} 11753 int main(int c,char *v[]){return 0;}
11477 EOF 11754 EOF
11478 if { (eval echo configure:11479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 11755 if { (eval echo configure:11756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11479 then 11756 then
11480 : 11757 :
11481 else 11758 else
11759 conftest_rc="$?"
11482 echo "configure: failed program was:" >&5 11760 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5 11761 cat conftest.$ac_ext >&5
11484 rm -fr conftest* 11762 rm -fr conftest*
11485 11763
11486 echo "" 11764 echo ""
11613 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then 11891 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
11614 echo "creating src/gdbinit"; echo "" 11892 echo "creating src/gdbinit"; echo ""
11615 echo "source $srcdir/src/gdbinit" > src/gdbinit 11893 echo "source $srcdir/src/gdbinit" > src/gdbinit
11616 fi 11894 fi
11617 11895
11618 if test "$__sunpro_c" = "yes"; then 11896 if test "$__SUNPRO_C" = "yes"; then
11619 echo "creating .sbinit"; echo "" 11897 echo "creating .sbinit"; echo ""
11620 ( echo "# For use with Sun WorkShop's Source browser." 11898 ( echo "# For use with Sun WorkShop's Source browser."
11621 echo "# See sbquery(1) and sbinit(4) for more information" 11899 echo "# See sbquery(1) and sbinit(4) for more information"
11622 for dir in $MAKE_SUBDIR; do echo "import $dir"; done 11900 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
11623 ) > .sbinit 11901 ) > .sbinit
12033 if test "$with_xpm" = yes; then 12311 if test "$with_xpm" = yes; then
12034 echo " Compiling in support for XPM images." 12312 echo " Compiling in support for XPM images."
12035 elif test "$with_x11" = yes; then 12313 elif test "$with_x11" = yes; then
12036 echo " --------------------------------------------------------------------" 12314 echo " --------------------------------------------------------------------"
12037 echo " WARNING: Compiling without XPM support." 12315 echo " WARNING: Compiling without XPM support."
12038 echo " WARNING: You should strongly considering installing XPM." 12316 if test "$xpm_problem" != ""; then
12317 echo " Reason: $xpm_problem"
12318 fi
12319 echo " WARNING: You should strongly consider installing XPM."
12039 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." 12320 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
12321 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
12040 echo " --------------------------------------------------------------------" 12322 echo " --------------------------------------------------------------------"
12041 fi 12323 fi
12324 if test "$with_png" = yes; then
12325 echo " Compiling in support for PNG image handling."
12326 elif test "$window_system" != "none"; then
12327 echo " --------------------------------------------------------------------"
12328 echo " WARNING: Compiling without PNG image support."
12329 if test "$png_problem" != ""; then
12330 echo " Reason: $png_problem"
12331 fi
12332 echo " WARNING: You should strongly consider installing the PNG libraries."
12333 echo " WARNING: Otherwise certain images and glyphs may not display."
12334 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
12335 echo " --------------------------------------------------------------------"
12336 fi
12337 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
12338 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
12339 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
12042 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." 12340 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
12043 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
12044 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion."
12045 test "$with_png" = yes && echo " Compiling in support for PNG image conversion."
12046 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion."
12047 case "$with_sound" in 12341 case "$with_sound" in
12048 nas ) echo " Compiling in network sound (NAS) support." ;; 12342 nas ) echo " Compiling in network sound (NAS) support." ;;
12049 native ) echo " Compiling in native sound support." ;; 12343 native ) echo " Compiling in native sound support." ;;
12050 both ) echo " Compiling in both network and native sound support." ;; 12344 both ) echo " Compiling in both network and native sound support." ;;
12051 esac 12345 esac