comparison configure @ 664:6e99cc8c6ca5

[xemacs-hg @ 2001-09-18 05:04:26 by ben] fileio.c: Fix various C++ compile errors in Andy's recent code. callint.c, editfns.c, emacs.c, lread.c, redisplay-x.c: Fix sign-compare warnings. scrollbar-msw.c: Fix crash under MS Windows. See comment around line 223 for explanation. font-lock.el: fix problem when you insert a comment on the line before a line of code: if we use the following char, then when you hit backspace, the following line of code turns the comment color. configure.in: Don't use -Wshadow when compiling with g++ or you get buried in silly warnings. This patch was already applied but somehow got unapplied. Stephen?
author ben
date Tue, 18 Sep 2001 05:06:57 +0000
parents b17040ffddd1
children fdefd0186b75
comparison
equal deleted inserted replaced
663:ebdebdbf3f84 664:6e99cc8c6ca5
2774 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi 2774 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
2775 fi 2775 fi
2776 2776
2777 if test "$cflags_specified" = "no"; then 2777 if test "$cflags_specified" = "no"; then
2778 if test "$GCC" = "yes"; then 2778 if test "$GCC" = "yes"; then
2779 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow" 2779 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
2780 CFLAGS="$CFLAGS -Wsign-compare" 2780 CFLAGS="$CFLAGS -Wsign-compare"
2781 if test "$xemacs_compiler" != "g++"; then
2782 CFLAGS="$CFLAGS -Wshadow"
2783 fi
2781 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith" 2784 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2782 elif test "$__SUNPRO_C" = "yes"; then 2785 elif test "$__SUNPRO_C" = "yes"; then
2783 case "$opsys" in 2786 case "$opsys" in
2784 sol2 ) CFLAGS="-v -xO4" ;; 2787 sol2 ) CFLAGS="-v -xO4" ;;
2785 sunos4* ) CFLAGS="-xO2";; 2788 sunos4* ) CFLAGS="-xO2";;
2792 CFLAGS="-O" ; fi 2795 CFLAGS="-O" ; fi
2793 fi 2796 fi
2794 2797
2795 if test "$GCC" = "yes"; then 2798 if test "$GCC" = "yes"; then
2796 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6 2799 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2797 echo "configure:2798: checking for buggy gcc versions" >&5 2800 echo "configure:2801: checking for buggy gcc versions" >&5
2798 GCC_VERSION=`$CC --version` 2801 GCC_VERSION=`$CC --version`
2799 case `uname -s`:`uname -m`:$GCC_VERSION in 2802 case `uname -s`:`uname -m`:$GCC_VERSION in
2800 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) 2803 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2801 case "$CFLAGS" in 2804 case "$CFLAGS" in
2802 *-O2*|*-O3*) 2805 *-O2*|*-O3*)
2915 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then 2918 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2916 echo " xemacs will be linked with \"dumper.o\"" 2919 echo " xemacs will be linked with \"dumper.o\""
2917 fi 2920 fi
2918 2921
2919 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2922 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2920 echo "configure:2921: checking for dynodump" >&5 2923 echo "configure:2924: checking for dynodump" >&5
2921 if test "$unexec" != "unexsol2.o"; then 2924 if test "$unexec" != "unexsol2.o"; then
2922 echo "$ac_t""no" 1>&6 2925 echo "$ac_t""no" 1>&6
2923 else 2926 else
2924 echo "$ac_t""yes" 1>&6 2927 echo "$ac_t""yes" 1>&6
2925 { test "$extra_verbose" = "yes" && cat << \EOF 2928 { test "$extra_verbose" = "yes" && cat << \EOF
2953 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2956 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2954 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2957 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2955 done 2958 done
2956 2959
2957 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2960 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2958 echo "configure:2959: checking for terminateAndUnload in -lC" >&5 2961 echo "configure:2962: checking for terminateAndUnload in -lC" >&5
2959 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2962 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2960 2963
2961 xe_check_libs=" -lC " 2964 xe_check_libs=" -lC "
2962 cat > conftest.$ac_ext <<EOF 2965 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure" 2966 #line 2967 "configure"
2964 #include "confdefs.h" 2967 #include "confdefs.h"
2965 /* Override any gcc2 internal prototype to avoid an error. */ 2968 /* Override any gcc2 internal prototype to avoid an error. */
2966 /* We use char because int might match the return type of a gcc2 2969 /* We use char because int might match the return type of a gcc2
2967 builtin and then its argument prototype would still apply. */ 2970 builtin and then its argument prototype would still apply. */
2968 char terminateAndUnload(); 2971 char terminateAndUnload();
2969 2972
2970 int main() { 2973 int main() {
2971 terminateAndUnload() 2974 terminateAndUnload()
2972 ; return 0; } 2975 ; return 0; }
2973 EOF 2976 EOF
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2977 if { (eval echo configure:2978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2975 rm -rf conftest* 2978 rm -rf conftest*
2976 eval "ac_cv_lib_$ac_lib_var=yes" 2979 eval "ac_cv_lib_$ac_lib_var=yes"
2977 else 2980 else
2978 echo "configure: failed program was:" >&5 2981 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5 2982 cat conftest.$ac_ext >&5
3077 esac 3080 esac
3078 fi 3081 fi
3079 3082
3080 if test "$add_runtime_path" = "yes"; then 3083 if test "$add_runtime_path" = "yes"; then
3081 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 3084 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3082 echo "configure:3083: checking "for runtime libraries flag"" >&5 3085 echo "configure:3086: checking "for runtime libraries flag"" >&5
3083 case "$opsys" in 3086 case "$opsys" in
3084 sol2 ) dash_r="-R" ;; 3087 sol2 ) dash_r="-R" ;;
3085 decosf* | linux* | irix*) dash_r="-rpath " ;; 3088 decosf* | linux* | irix*) dash_r="-rpath " ;;
3086 *) 3089 *)
3087 dash_r="" 3090 dash_r=""
3099 esac 3102 esac
3100 shift 3103 shift
3101 done 3104 done
3102 fi 3105 fi
3103 cat > conftest.$ac_ext <<EOF 3106 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure" 3107 #line 3108 "configure"
3105 #include "confdefs.h" 3108 #include "confdefs.h"
3106 3109
3107 int main() { 3110 int main() {
3108 3111
3109 ; return 0; } 3112 ; return 0; }
3110 EOF 3113 EOF
3111 if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3114 if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3112 rm -rf conftest* 3115 rm -rf conftest*
3113 dash_r="$try_dash_r" 3116 dash_r="$try_dash_r"
3114 else 3117 else
3115 echo "configure: failed program was:" >&5 3118 echo "configure: failed program was:" >&5
3116 cat conftest.$ac_ext >&5 3119 cat conftest.$ac_ext >&5
3207 else 3210 else
3208 doug_lea_malloc=no 3211 doug_lea_malloc=no
3209 fi 3212 fi
3210 after_morecore_hook_exists=yes 3213 after_morecore_hook_exists=yes
3211 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3214 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3212 echo "configure:3213: checking for malloc_set_state" >&5 3215 echo "configure:3216: checking for malloc_set_state" >&5
3213 3216
3214 cat > conftest.$ac_ext <<EOF 3217 cat > conftest.$ac_ext <<EOF
3215 #line 3216 "configure" 3218 #line 3219 "configure"
3216 #include "confdefs.h" 3219 #include "confdefs.h"
3217 /* System header to define __stub macros and hopefully few prototypes, 3220 /* System header to define __stub macros and hopefully few prototypes,
3218 which can conflict with char malloc_set_state(); below. */ 3221 which can conflict with char malloc_set_state(); below. */
3219 #include <assert.h> 3222 #include <assert.h>
3220 /* Override any gcc2 internal prototype to avoid an error. */ 3223 /* Override any gcc2 internal prototype to avoid an error. */
3233 malloc_set_state(); 3236 malloc_set_state();
3234 #endif 3237 #endif
3235 3238
3236 ; return 0; } 3239 ; return 0; }
3237 EOF 3240 EOF
3238 if { (eval echo configure:3239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3241 if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3239 rm -rf conftest* 3242 rm -rf conftest*
3240 eval "ac_cv_func_malloc_set_state=yes" 3243 eval "ac_cv_func_malloc_set_state=yes"
3241 else 3244 else
3242 echo "configure: failed program was:" >&5 3245 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5 3246 cat conftest.$ac_ext >&5
3253 echo "$ac_t""no" 1>&6 3256 echo "$ac_t""no" 1>&6
3254 doug_lea_malloc=no 3257 doug_lea_malloc=no
3255 fi 3258 fi
3256 3259
3257 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3260 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3258 echo "configure:3259: checking whether __after_morecore_hook exists" >&5 3261 echo "configure:3262: checking whether __after_morecore_hook exists" >&5
3259 cat > conftest.$ac_ext <<EOF 3262 cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure" 3263 #line 3264 "configure"
3261 #include "confdefs.h" 3264 #include "confdefs.h"
3262 extern void (* __after_morecore_hook)(); 3265 extern void (* __after_morecore_hook)();
3263 int main() { 3266 int main() {
3264 __after_morecore_hook = 0 3267 __after_morecore_hook = 0
3265 ; return 0; } 3268 ; return 0; }
3266 EOF 3269 EOF
3267 if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3270 if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3268 rm -rf conftest* 3271 rm -rf conftest*
3269 echo "$ac_t""yes" 1>&6 3272 echo "$ac_t""yes" 1>&6
3270 else 3273 else
3271 echo "configure: failed program was:" >&5 3274 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5 3275 cat conftest.$ac_ext >&5
3318 3321
3319 3322
3320 # Extract the first word of "ranlib", so it can be a program name with args. 3323 # Extract the first word of "ranlib", so it can be a program name with args.
3321 set dummy ranlib; ac_word=$2 3324 set dummy ranlib; ac_word=$2
3322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3323 echo "configure:3324: checking for $ac_word" >&5 3326 echo "configure:3327: checking for $ac_word" >&5
3324 3327
3325 if test -n "$RANLIB"; then 3328 if test -n "$RANLIB"; then
3326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3327 else 3330 else
3328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3373 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3374 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3375 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3376 # ./install, which can be erroneously created by make from ./install.sh. 3379 # ./install, which can be erroneously created by make from ./install.sh.
3377 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3380 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3378 echo "configure:3379: checking for a BSD compatible install" >&5 3381 echo "configure:3382: checking for a BSD compatible install" >&5
3379 if test -z "$INSTALL"; then 3382 if test -z "$INSTALL"; then
3380 3383
3381 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3384 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3382 for ac_dir in $PATH; do 3385 for ac_dir in $PATH; do
3383 # Account for people who put trailing slashes in PATH elements. 3386 # Account for people who put trailing slashes in PATH elements.
3427 for ac_prog in 'bison -y' byacc 3430 for ac_prog in 'bison -y' byacc
3428 do 3431 do
3429 # Extract the first word of "$ac_prog", so it can be a program name with args. 3432 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy $ac_prog; ac_word=$2 3433 set dummy $ac_prog; ac_word=$2
3431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3432 echo "configure:3433: checking for $ac_word" >&5 3435 echo "configure:3436: checking for $ac_word" >&5
3433 3436
3434 if test -n "$YACC"; then 3437 if test -n "$YACC"; then
3435 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3438 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3436 else 3439 else
3437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3459 3462
3460 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h 3463 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h
3461 do 3464 do
3462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3464 echo "configure:3465: checking for $ac_hdr" >&5 3467 echo "configure:3468: checking for $ac_hdr" >&5
3465 3468
3466 cat > conftest.$ac_ext <<EOF 3469 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure" 3470 #line 3471 "configure"
3468 #include "confdefs.h" 3471 #include "confdefs.h"
3469 #include <$ac_hdr> 3472 #include <$ac_hdr>
3470 EOF 3473 EOF
3471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3472 { (eval echo configure:3473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3475 { (eval echo configure:3476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3474 if test -z "$ac_err"; then 3477 if test -z "$ac_err"; then
3475 rm -rf conftest* 3478 rm -rf conftest*
3476 eval "ac_cv_header_$ac_safe=yes" 3479 eval "ac_cv_header_$ac_safe=yes"
3477 else 3480 else
3497 echo "$ac_t""no" 1>&6 3500 echo "$ac_t""no" 1>&6
3498 fi 3501 fi
3499 done 3502 done
3500 3503
3501 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3504 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3502 echo "configure:3503: checking for sys/wait.h that is POSIX.1 compatible" >&5 3505 echo "configure:3506: checking for sys/wait.h that is POSIX.1 compatible" >&5
3503 3506
3504 cat > conftest.$ac_ext <<EOF 3507 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure" 3508 #line 3509 "configure"
3506 #include "confdefs.h" 3509 #include "confdefs.h"
3507 #include <sys/types.h> 3510 #include <sys/types.h>
3508 #include <sys/wait.h> 3511 #include <sys/wait.h>
3509 #ifndef WEXITSTATUS 3512 #ifndef WEXITSTATUS
3510 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3513 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3516 int s; 3519 int s;
3517 wait (&s); 3520 wait (&s);
3518 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3521 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3519 ; return 0; } 3522 ; return 0; }
3520 EOF 3523 EOF
3521 if { (eval echo configure:3522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3524 if { (eval echo configure:3525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3522 rm -rf conftest* 3525 rm -rf conftest*
3523 ac_cv_header_sys_wait_h=yes 3526 ac_cv_header_sys_wait_h=yes
3524 else 3527 else
3525 echo "configure: failed program was:" >&5 3528 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5 3529 cat conftest.$ac_ext >&5
3540 } 3543 }
3541 3544
3542 fi 3545 fi
3543 3546
3544 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3547 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3545 echo "configure:3546: checking for ANSI C header files" >&5 3548 echo "configure:3549: checking for ANSI C header files" >&5
3546 3549
3547 cat > conftest.$ac_ext <<EOF 3550 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure" 3551 #line 3552 "configure"
3549 #include "confdefs.h" 3552 #include "confdefs.h"
3550 #include <stdlib.h> 3553 #include <stdlib.h>
3551 #include <stdarg.h> 3554 #include <stdarg.h>
3552 #include <string.h> 3555 #include <string.h>
3553 #include <float.h> 3556 #include <float.h>
3554 EOF 3557 EOF
3555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3556 { (eval echo configure:3557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3559 { (eval echo configure:3560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3558 if test -z "$ac_err"; then 3561 if test -z "$ac_err"; then
3559 rm -rf conftest* 3562 rm -rf conftest*
3560 ac_cv_header_stdc=yes 3563 ac_cv_header_stdc=yes
3561 else 3564 else
3568 rm -f conftest* 3571 rm -f conftest*
3569 3572
3570 if test $ac_cv_header_stdc = yes; then 3573 if test $ac_cv_header_stdc = yes; then
3571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3572 cat > conftest.$ac_ext <<EOF 3575 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure" 3576 #line 3577 "configure"
3574 #include "confdefs.h" 3577 #include "confdefs.h"
3575 #include <string.h> 3578 #include <string.h>
3576 EOF 3579 EOF
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 egrep "memchr" >/dev/null 2>&1; then 3581 egrep "memchr" >/dev/null 2>&1; then
3586 fi 3589 fi
3587 3590
3588 if test $ac_cv_header_stdc = yes; then 3591 if test $ac_cv_header_stdc = yes; then
3589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3590 cat > conftest.$ac_ext <<EOF 3593 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure" 3594 #line 3595 "configure"
3592 #include "confdefs.h" 3595 #include "confdefs.h"
3593 #include <stdlib.h> 3596 #include <stdlib.h>
3594 EOF 3597 EOF
3595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3596 egrep "free" >/dev/null 2>&1; then 3599 egrep "free" >/dev/null 2>&1; then
3604 fi 3607 fi
3605 3608
3606 if test $ac_cv_header_stdc = yes; then 3609 if test $ac_cv_header_stdc = yes; then
3607 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3610 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3608 cat > conftest.$ac_ext <<EOF 3611 cat > conftest.$ac_ext <<EOF
3609 #line 3610 "configure" 3612 #line 3613 "configure"
3610 #include "confdefs.h" 3613 #include "confdefs.h"
3611 #include <ctype.h> 3614 #include <ctype.h>
3612 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3615 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3613 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3616 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3615 int main () { int i; for (i = 0; i < 256; i++) 3618 int main () { int i; for (i = 0; i < 256; i++)
3616 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3619 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3617 exit (0); } 3620 exit (0); }
3618 3621
3619 EOF 3622 EOF
3620 if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3623 if { (eval echo configure:3624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3621 then 3624 then
3622 : 3625 :
3623 else 3626 else
3624 conftest_rc="$?" 3627 conftest_rc="$?"
3625 echo "configure: failed program was:" >&5 3628 echo "configure: failed program was:" >&5
3641 } 3644 }
3642 3645
3643 fi 3646 fi
3644 3647
3645 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3648 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3646 echo "configure:3647: checking whether time.h and sys/time.h may both be included" >&5 3649 echo "configure:3650: checking whether time.h and sys/time.h may both be included" >&5
3647 3650
3648 cat > conftest.$ac_ext <<EOF 3651 cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure" 3652 #line 3653 "configure"
3650 #include "confdefs.h" 3653 #include "confdefs.h"
3651 #include <sys/types.h> 3654 #include <sys/types.h>
3652 #include <sys/time.h> 3655 #include <sys/time.h>
3653 #include <time.h> 3656 #include <time.h>
3654 int main() { 3657 int main() {
3655 struct tm *tp; 3658 struct tm *tp;
3656 ; return 0; } 3659 ; return 0; }
3657 EOF 3660 EOF
3658 if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3661 if { (eval echo configure:3662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3659 rm -rf conftest* 3662 rm -rf conftest*
3660 ac_cv_header_time=yes 3663 ac_cv_header_time=yes
3661 else 3664 else
3662 echo "configure: failed program was:" >&5 3665 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5 3666 cat conftest.$ac_ext >&5
3677 } 3680 }
3678 3681
3679 fi 3682 fi
3680 3683
3681 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3684 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3682 echo "configure:3683: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3685 echo "configure:3686: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3683 3686
3684 cat > conftest.$ac_ext <<EOF 3687 cat > conftest.$ac_ext <<EOF
3685 #line 3686 "configure" 3688 #line 3689 "configure"
3686 #include "confdefs.h" 3689 #include "confdefs.h"
3687 #include <sys/types.h> 3690 #include <sys/types.h>
3688 #include <signal.h> 3691 #include <signal.h>
3689 /* NetBSD declares sys_siglist in unistd.h. */ 3692 /* NetBSD declares sys_siglist in unistd.h. */
3690 #ifdef HAVE_UNISTD_H 3693 #ifdef HAVE_UNISTD_H
3692 #endif 3695 #endif
3693 int main() { 3696 int main() {
3694 char *msg = *(sys_siglist + 1); 3697 char *msg = *(sys_siglist + 1);
3695 ; return 0; } 3698 ; return 0; }
3696 EOF 3699 EOF
3697 if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3700 if { (eval echo configure:3701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3698 rm -rf conftest* 3701 rm -rf conftest*
3699 ac_cv_decl_sys_siglist=yes 3702 ac_cv_decl_sys_siglist=yes
3700 else 3703 else
3701 echo "configure: failed program was:" >&5 3704 echo "configure: failed program was:" >&5
3702 cat conftest.$ac_ext >&5 3705 cat conftest.$ac_ext >&5
3718 fi 3721 fi
3719 3722
3720 3723
3721 3724
3722 echo $ac_n "checking for utime""... $ac_c" 1>&6 3725 echo $ac_n "checking for utime""... $ac_c" 1>&6
3723 echo "configure:3724: checking for utime" >&5 3726 echo "configure:3727: checking for utime" >&5
3724 cat > conftest.$ac_ext <<EOF 3727 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure" 3728 #line 3729 "configure"
3726 #include "confdefs.h" 3729 #include "confdefs.h"
3727 #include <sys/types.h> 3730 #include <sys/types.h>
3728 #include <utime.h> 3731 #include <utime.h>
3729 int main() { 3732 int main() {
3730 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x); 3733 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3731 ; return 0; } 3734 ; return 0; }
3732 EOF 3735 EOF
3733 if { (eval echo configure:3734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3736 if { (eval echo configure:3737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3734 rm -rf conftest* 3737 rm -rf conftest*
3735 echo "$ac_t""yes" 1>&6 3738 echo "$ac_t""yes" 1>&6
3736 { test "$extra_verbose" = "yes" && cat << \EOF 3739 { test "$extra_verbose" = "yes" && cat << \EOF
3737 Defining HAVE_UTIME 3740 Defining HAVE_UTIME
3738 EOF 3741 EOF
3747 rm -rf conftest* 3750 rm -rf conftest*
3748 echo "$ac_t""no" 1>&6 3751 echo "$ac_t""no" 1>&6
3749 for ac_func in utimes 3752 for ac_func in utimes
3750 do 3753 do
3751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3752 echo "configure:3753: checking for $ac_func" >&5 3755 echo "configure:3756: checking for $ac_func" >&5
3753 3756
3754 cat > conftest.$ac_ext <<EOF 3757 cat > conftest.$ac_ext <<EOF
3755 #line 3756 "configure" 3758 #line 3759 "configure"
3756 #include "confdefs.h" 3759 #include "confdefs.h"
3757 /* System header to define __stub macros and hopefully few prototypes, 3760 /* System header to define __stub macros and hopefully few prototypes,
3758 which can conflict with char $ac_func(); below. */ 3761 which can conflict with char $ac_func(); below. */
3759 #include <assert.h> 3762 #include <assert.h>
3760 /* Override any gcc2 internal prototype to avoid an error. */ 3763 /* Override any gcc2 internal prototype to avoid an error. */
3773 $ac_func(); 3776 $ac_func();
3774 #endif 3777 #endif
3775 3778
3776 ; return 0; } 3779 ; return 0; }
3777 EOF 3780 EOF
3778 if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3781 if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3779 rm -rf conftest* 3782 rm -rf conftest*
3780 eval "ac_cv_func_$ac_func=yes" 3783 eval "ac_cv_func_$ac_func=yes"
3781 else 3784 else
3782 echo "configure: failed program was:" >&5 3785 echo "configure: failed program was:" >&5
3783 cat conftest.$ac_ext >&5 3786 cat conftest.$ac_ext >&5
3805 fi 3808 fi
3806 rm -f conftest* 3809 rm -f conftest*
3807 3810
3808 3811
3809 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3812 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3810 echo "configure:3811: checking return type of signal handlers" >&5 3813 echo "configure:3814: checking return type of signal handlers" >&5
3811 3814
3812 cat > conftest.$ac_ext <<EOF 3815 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure" 3816 #line 3817 "configure"
3814 #include "confdefs.h" 3817 #include "confdefs.h"
3815 #include <sys/types.h> 3818 #include <sys/types.h>
3816 #include <signal.h> 3819 #include <signal.h>
3817 #ifdef signal 3820 #ifdef signal
3818 #undef signal 3821 #undef signal
3825 3828
3826 int main() { 3829 int main() {
3827 int i; 3830 int i;
3828 ; return 0; } 3831 ; return 0; }
3829 EOF 3832 EOF
3830 if { (eval echo configure:3831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3833 if { (eval echo configure:3834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3831 rm -rf conftest* 3834 rm -rf conftest*
3832 ac_cv_type_signal=void 3835 ac_cv_type_signal=void
3833 else 3836 else
3834 echo "configure: failed program was:" >&5 3837 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5 3838 cat conftest.$ac_ext >&5
3847 EOF 3850 EOF
3848 } 3851 }
3849 3852
3850 3853
3851 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3854 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3852 echo "configure:3853: checking for size_t" >&5 3855 echo "configure:3856: checking for size_t" >&5
3853 3856
3854 cat > conftest.$ac_ext <<EOF 3857 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure" 3858 #line 3859 "configure"
3856 #include "confdefs.h" 3859 #include "confdefs.h"
3857 #include <sys/types.h> 3860 #include <sys/types.h>
3858 #if STDC_HEADERS 3861 #if STDC_HEADERS
3859 #include <stdlib.h> 3862 #include <stdlib.h>
3860 #include <stddef.h> 3863 #include <stddef.h>
3881 } 3884 }
3882 3885
3883 fi 3886 fi
3884 3887
3885 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3888 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3886 echo "configure:3887: checking for pid_t" >&5 3889 echo "configure:3890: checking for pid_t" >&5
3887 3890
3888 cat > conftest.$ac_ext <<EOF 3891 cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure" 3892 #line 3893 "configure"
3890 #include "confdefs.h" 3893 #include "confdefs.h"
3891 #include <sys/types.h> 3894 #include <sys/types.h>
3892 #if STDC_HEADERS 3895 #if STDC_HEADERS
3893 #include <stdlib.h> 3896 #include <stdlib.h>
3894 #include <stddef.h> 3897 #include <stddef.h>
3915 } 3918 }
3916 3919
3917 fi 3920 fi
3918 3921
3919 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3922 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3920 echo "configure:3921: checking for uid_t in sys/types.h" >&5 3923 echo "configure:3924: checking for uid_t in sys/types.h" >&5
3921 3924
3922 cat > conftest.$ac_ext <<EOF 3925 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure" 3926 #line 3927 "configure"
3924 #include "confdefs.h" 3927 #include "confdefs.h"
3925 #include <sys/types.h> 3928 #include <sys/types.h>
3926 EOF 3929 EOF
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928 egrep "uid_t" >/dev/null 2>&1; then 3931 egrep "uid_t" >/dev/null 2>&1; then
3954 } 3957 }
3955 3958
3956 fi 3959 fi
3957 3960
3958 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3961 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3959 echo "configure:3960: checking for mode_t" >&5 3962 echo "configure:3963: checking for mode_t" >&5
3960 3963
3961 cat > conftest.$ac_ext <<EOF 3964 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure" 3965 #line 3966 "configure"
3963 #include "confdefs.h" 3966 #include "confdefs.h"
3964 #include <sys/types.h> 3967 #include <sys/types.h>
3965 #if STDC_HEADERS 3968 #if STDC_HEADERS
3966 #include <stdlib.h> 3969 #include <stdlib.h>
3967 #include <stddef.h> 3970 #include <stddef.h>
3988 } 3991 }
3989 3992
3990 fi 3993 fi
3991 3994
3992 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3995 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3993 echo "configure:3994: checking for off_t" >&5 3996 echo "configure:3997: checking for off_t" >&5
3994 3997
3995 cat > conftest.$ac_ext <<EOF 3998 cat > conftest.$ac_ext <<EOF
3996 #line 3997 "configure" 3999 #line 4000 "configure"
3997 #include "confdefs.h" 4000 #include "confdefs.h"
3998 #include <sys/types.h> 4001 #include <sys/types.h>
3999 #if STDC_HEADERS 4002 #if STDC_HEADERS
4000 #include <stdlib.h> 4003 #include <stdlib.h>
4001 #include <stddef.h> 4004 #include <stddef.h>
4022 } 4025 }
4023 4026
4024 fi 4027 fi
4025 4028
4026 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 4029 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4027 echo "configure:4028: checking for ssize_t" >&5 4030 echo "configure:4031: checking for ssize_t" >&5
4028 4031
4029 cat > conftest.$ac_ext <<EOF 4032 cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure" 4033 #line 4034 "configure"
4031 #include "confdefs.h" 4034 #include "confdefs.h"
4032 #include <sys/types.h> 4035 #include <sys/types.h>
4033 #if STDC_HEADERS 4036 #if STDC_HEADERS
4034 #include <stdlib.h> 4037 #include <stdlib.h>
4035 #include <stddef.h> 4038 #include <stddef.h>
4057 4060
4058 fi 4061 fi
4059 4062
4060 4063
4061 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 4064 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4062 echo "configure:4063: checking for socklen_t" >&5 4065 echo "configure:4066: checking for socklen_t" >&5
4063 cat > conftest.$ac_ext <<EOF 4066 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure" 4067 #line 4068 "configure"
4065 #include "confdefs.h" 4068 #include "confdefs.h"
4066 #include <sys/socket.h> 4069 #include <sys/socket.h>
4067 socklen_t x; 4070 socklen_t x;
4068 4071
4069 int main() { 4072 int main() {
4070 4073
4071 ; return 0; } 4074 ; return 0; }
4072 EOF 4075 EOF
4073 if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4076 if { (eval echo configure:4077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4074 rm -rf conftest* 4077 rm -rf conftest*
4075 echo "$ac_t""yes" 1>&6 4078 echo "$ac_t""yes" 1>&6
4076 else 4079 else
4077 echo "configure: failed program was:" >&5 4080 echo "configure: failed program was:" >&5
4078 cat conftest.$ac_ext >&5 4081 cat conftest.$ac_ext >&5
4079 rm -rf conftest* 4082 rm -rf conftest*
4080 4083
4081 cat > conftest.$ac_ext <<EOF 4084 cat > conftest.$ac_ext <<EOF
4082 #line 4083 "configure" 4085 #line 4086 "configure"
4083 #include "confdefs.h" 4086 #include "confdefs.h"
4084 #include <sys/socket.h> 4087 #include <sys/socket.h>
4085 int accept (int, struct sockaddr *, size_t *); 4088 int accept (int, struct sockaddr *, size_t *);
4086 4089
4087 int main() { 4090 int main() {
4088 4091
4089 ; return 0; } 4092 ; return 0; }
4090 EOF 4093 EOF
4091 if { (eval echo configure:4092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4094 if { (eval echo configure:4095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4092 rm -rf conftest* 4095 rm -rf conftest*
4093 4096
4094 echo "$ac_t""size_t" 1>&6 4097 echo "$ac_t""size_t" 1>&6
4095 { test "$extra_verbose" = "yes" && cat << \EOF 4098 { test "$extra_verbose" = "yes" && cat << \EOF
4096 Defining socklen_t = size_t 4099 Defining socklen_t = size_t
4118 rm -f conftest* 4121 rm -f conftest*
4119 fi 4122 fi
4120 rm -f conftest* 4123 rm -f conftest*
4121 4124
4122 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 4125 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4123 echo "configure:4124: checking for struct timeval" >&5 4126 echo "configure:4127: checking for struct timeval" >&5
4124 cat > conftest.$ac_ext <<EOF 4127 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure" 4128 #line 4129 "configure"
4126 #include "confdefs.h" 4129 #include "confdefs.h"
4127 #ifdef TIME_WITH_SYS_TIME 4130 #ifdef TIME_WITH_SYS_TIME
4128 #include <sys/time.h> 4131 #include <sys/time.h>
4129 #include <time.h> 4132 #include <time.h>
4130 #else 4133 #else
4136 #endif 4139 #endif
4137 int main() { 4140 int main() {
4138 static struct timeval x; x.tv_sec = x.tv_usec; 4141 static struct timeval x; x.tv_sec = x.tv_usec;
4139 ; return 0; } 4142 ; return 0; }
4140 EOF 4143 EOF
4141 if { (eval echo configure:4142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4144 if { (eval echo configure:4145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4142 rm -rf conftest* 4145 rm -rf conftest*
4143 echo "$ac_t""yes" 1>&6 4146 echo "$ac_t""yes" 1>&6
4144 HAVE_TIMEVAL=yes 4147 HAVE_TIMEVAL=yes
4145 { test "$extra_verbose" = "yes" && cat << \EOF 4148 { test "$extra_verbose" = "yes" && cat << \EOF
4146 Defining HAVE_TIMEVAL 4149 Defining HAVE_TIMEVAL
4158 HAVE_TIMEVAL=no 4161 HAVE_TIMEVAL=no
4159 fi 4162 fi
4160 rm -f conftest* 4163 rm -f conftest*
4161 4164
4162 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4165 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4163 echo "configure:4164: checking whether struct tm is in sys/time.h or time.h" >&5 4166 echo "configure:4167: checking whether struct tm is in sys/time.h or time.h" >&5
4164 4167
4165 cat > conftest.$ac_ext <<EOF 4168 cat > conftest.$ac_ext <<EOF
4166 #line 4167 "configure" 4169 #line 4170 "configure"
4167 #include "confdefs.h" 4170 #include "confdefs.h"
4168 #include <sys/types.h> 4171 #include <sys/types.h>
4169 #include <time.h> 4172 #include <time.h>
4170 int main() { 4173 int main() {
4171 struct tm *tp; tp->tm_sec; 4174 struct tm *tp; tp->tm_sec;
4172 ; return 0; } 4175 ; return 0; }
4173 EOF 4176 EOF
4174 if { (eval echo configure:4175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4177 if { (eval echo configure:4178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4175 rm -rf conftest* 4178 rm -rf conftest*
4176 ac_cv_struct_tm=time.h 4179 ac_cv_struct_tm=time.h
4177 else 4180 else
4178 echo "configure: failed program was:" >&5 4181 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5 4182 cat conftest.$ac_ext >&5
4193 } 4196 }
4194 4197
4195 fi 4198 fi
4196 4199
4197 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 4200 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4198 echo "configure:4199: checking for tm_zone in struct tm" >&5 4201 echo "configure:4202: checking for tm_zone in struct tm" >&5
4199 4202
4200 cat > conftest.$ac_ext <<EOF 4203 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure" 4204 #line 4205 "configure"
4202 #include "confdefs.h" 4205 #include "confdefs.h"
4203 #include <sys/types.h> 4206 #include <sys/types.h>
4204 #include <$ac_cv_struct_tm> 4207 #include <$ac_cv_struct_tm>
4205 int main() { 4208 int main() {
4206 struct tm tm; tm.tm_zone; 4209 struct tm tm; tm.tm_zone;
4207 ; return 0; } 4210 ; return 0; }
4208 EOF 4211 EOF
4209 if { (eval echo configure:4210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4212 if { (eval echo configure:4213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4210 rm -rf conftest* 4213 rm -rf conftest*
4211 ac_cv_struct_tm_zone=yes 4214 ac_cv_struct_tm_zone=yes
4212 else 4215 else
4213 echo "configure: failed program was:" >&5 4216 echo "configure: failed program was:" >&5
4214 cat conftest.$ac_ext >&5 4217 cat conftest.$ac_ext >&5
4227 EOF 4230 EOF
4228 } 4231 }
4229 4232
4230 else 4233 else
4231 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4234 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4232 echo "configure:4233: checking for tzname" >&5 4235 echo "configure:4236: checking for tzname" >&5
4233 4236
4234 cat > conftest.$ac_ext <<EOF 4237 cat > conftest.$ac_ext <<EOF
4235 #line 4236 "configure" 4238 #line 4239 "configure"
4236 #include "confdefs.h" 4239 #include "confdefs.h"
4237 #include <time.h> 4240 #include <time.h>
4238 #ifndef tzname /* For SGI. */ 4241 #ifndef tzname /* For SGI. */
4239 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4242 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4240 #endif 4243 #endif
4241 int main() { 4244 int main() {
4242 atoi(*tzname); 4245 atoi(*tzname);
4243 ; return 0; } 4246 ; return 0; }
4244 EOF 4247 EOF
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4246 rm -rf conftest* 4249 rm -rf conftest*
4247 ac_cv_var_tzname=yes 4250 ac_cv_var_tzname=yes
4248 else 4251 else
4249 echo "configure: failed program was:" >&5 4252 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5 4253 cat conftest.$ac_ext >&5
4266 fi 4269 fi
4267 fi 4270 fi
4268 4271
4269 4272
4270 echo $ac_n "checking for working const""... $ac_c" 1>&6 4273 echo $ac_n "checking for working const""... $ac_c" 1>&6
4271 echo "configure:4272: checking for working const" >&5 4274 echo "configure:4275: checking for working const" >&5
4272 4275
4273 cat > conftest.$ac_ext <<EOF 4276 cat > conftest.$ac_ext <<EOF
4274 #line 4275 "configure" 4277 #line 4278 "configure"
4275 #include "confdefs.h" 4278 #include "confdefs.h"
4276 4279
4277 int main() { 4280 int main() {
4278 4281
4279 /* Ultrix mips cc rejects this. */ 4282 /* Ultrix mips cc rejects this. */
4318 const int foo = 10; 4321 const int foo = 10;
4319 } 4322 }
4320 4323
4321 ; return 0; } 4324 ; return 0; }
4322 EOF 4325 EOF
4323 if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4326 if { (eval echo configure:4327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4324 rm -rf conftest* 4327 rm -rf conftest*
4325 ac_cv_c_const=yes 4328 ac_cv_c_const=yes
4326 else 4329 else
4327 echo "configure: failed program was:" >&5 4330 echo "configure: failed program was:" >&5
4328 cat conftest.$ac_ext >&5 4331 cat conftest.$ac_ext >&5
4343 4346
4344 fi 4347 fi
4345 4348
4346 4349
4347 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4350 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4348 echo "configure:4349: checking whether ${MAKE-make} sets \${MAKE}" >&5 4351 echo "configure:4352: checking whether ${MAKE-make} sets \${MAKE}" >&5
4349 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4352 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4350 4353
4351 cat > conftestmake <<\EOF 4354 cat > conftestmake <<\EOF
4352 all: 4355 all:
4353 @echo 'ac_maketemp="${MAKE}"' 4356 @echo 'ac_maketemp="${MAKE}"'
4368 SET_MAKE="MAKE=${MAKE-make}" 4371 SET_MAKE="MAKE=${MAKE-make}"
4369 fi 4372 fi
4370 4373
4371 4374
4372 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4375 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4373 echo "configure:4374: checking whether byte ordering is bigendian" >&5 4376 echo "configure:4377: checking whether byte ordering is bigendian" >&5
4374 4377
4375 ac_cv_c_bigendian=unknown 4378 ac_cv_c_bigendian=unknown
4376 # See if sys/param.h defines the BYTE_ORDER macro. 4379 # See if sys/param.h defines the BYTE_ORDER macro.
4377 cat > conftest.$ac_ext <<EOF 4380 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure" 4381 #line 4382 "configure"
4379 #include "confdefs.h" 4382 #include "confdefs.h"
4380 #include <sys/types.h> 4383 #include <sys/types.h>
4381 #include <sys/param.h> 4384 #include <sys/param.h>
4382 int main() { 4385 int main() {
4383 4386
4384 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4387 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4385 bogus endian macros 4388 bogus endian macros
4386 #endif 4389 #endif
4387 ; return 0; } 4390 ; return 0; }
4388 EOF 4391 EOF
4389 if { (eval echo configure:4390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4392 if { (eval echo configure:4393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4390 rm -rf conftest* 4393 rm -rf conftest*
4391 # It does; now see whether it defined to BIG_ENDIAN or not. 4394 # It does; now see whether it defined to BIG_ENDIAN or not.
4392 cat > conftest.$ac_ext <<EOF 4395 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure" 4396 #line 4397 "configure"
4394 #include "confdefs.h" 4397 #include "confdefs.h"
4395 #include <sys/types.h> 4398 #include <sys/types.h>
4396 #include <sys/param.h> 4399 #include <sys/param.h>
4397 int main() { 4400 int main() {
4398 4401
4399 #if BYTE_ORDER != BIG_ENDIAN 4402 #if BYTE_ORDER != BIG_ENDIAN
4400 not big endian 4403 not big endian
4401 #endif 4404 #endif
4402 ; return 0; } 4405 ; return 0; }
4403 EOF 4406 EOF
4404 if { (eval echo configure:4405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4407 if { (eval echo configure:4408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4405 rm -rf conftest* 4408 rm -rf conftest*
4406 ac_cv_c_bigendian=yes 4409 ac_cv_c_bigendian=yes
4407 else 4410 else
4408 echo "configure: failed program was:" >&5 4411 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5 4412 cat conftest.$ac_ext >&5
4416 cat conftest.$ac_ext >&5 4419 cat conftest.$ac_ext >&5
4417 fi 4420 fi
4418 rm -f conftest* 4421 rm -f conftest*
4419 if test $ac_cv_c_bigendian = unknown; then 4422 if test $ac_cv_c_bigendian = unknown; then
4420 cat > conftest.$ac_ext <<EOF 4423 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure" 4424 #line 4425 "configure"
4422 #include "confdefs.h" 4425 #include "confdefs.h"
4423 main () { 4426 main () {
4424 /* Are we little or big endian? From Harbison&Steele. */ 4427 /* Are we little or big endian? From Harbison&Steele. */
4425 union 4428 union
4426 { 4429 {
4429 } u; 4432 } u;
4430 u.l = 1; 4433 u.l = 1;
4431 exit (u.c[sizeof (long) - 1] == 1); 4434 exit (u.c[sizeof (long) - 1] == 1);
4432 } 4435 }
4433 EOF 4436 EOF
4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4437 if { (eval echo configure:4438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4435 then 4438 then
4436 ac_cv_c_bigendian=no 4439 ac_cv_c_bigendian=no
4437 else 4440 else
4438 conftest_rc="$?" 4441 conftest_rc="$?"
4439 echo "configure: failed program was:" >&5 4442 echo "configure: failed program was:" >&5
4456 4459
4457 fi 4460 fi
4458 4461
4459 4462
4460 echo $ac_n "checking size of short""... $ac_c" 1>&6 4463 echo $ac_n "checking size of short""... $ac_c" 1>&6
4461 echo "configure:4462: checking size of short" >&5 4464 echo "configure:4465: checking size of short" >&5
4462 4465
4463 cat > conftest.$ac_ext <<EOF 4466 cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure" 4467 #line 4468 "configure"
4465 #include "confdefs.h" 4468 #include "confdefs.h"
4466 #include <stdio.h> 4469 #include <stdio.h>
4467 #include <sys/types.h>
4468 main() 4470 main()
4469 { 4471 {
4470 FILE *f=fopen("conftestval", "w"); 4472 FILE *f=fopen("conftestval", "w");
4471 if (!f) exit(1); 4473 if (!f) exit(1);
4472 fprintf(f, "%d\n", sizeof(short)); 4474 fprintf(f, "%d\n", sizeof(short));
4473 exit(0); 4475 exit(0);
4474 } 4476 }
4475 EOF 4477 EOF
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4477 then 4479 then
4478 ac_cv_sizeof_short=`cat conftestval` 4480 ac_cv_sizeof_short=`cat conftestval`
4479 else 4481 else
4480 conftest_rc="$?" 4482 conftest_rc="$?"
4481 echo "configure: failed program was:" >&5 4483 echo "configure: failed program was:" >&5
4499 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4501 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4500 echo "*** PANIC *** Please examine config.log for compilation errors." 4502 echo "*** PANIC *** Please examine config.log for compilation errors."
4501 exit 1 4503 exit 1
4502 fi 4504 fi
4503 echo $ac_n "checking size of int""... $ac_c" 1>&6 4505 echo $ac_n "checking size of int""... $ac_c" 1>&6
4504 echo "configure:4505: checking size of int" >&5 4506 echo "configure:4507: checking size of int" >&5
4505 4507
4506 cat > conftest.$ac_ext <<EOF 4508 cat > conftest.$ac_ext <<EOF
4507 #line 4508 "configure" 4509 #line 4510 "configure"
4508 #include "confdefs.h" 4510 #include "confdefs.h"
4509 #include <stdio.h> 4511 #include <stdio.h>
4510 #include <sys/types.h>
4511 main() 4512 main()
4512 { 4513 {
4513 FILE *f=fopen("conftestval", "w"); 4514 FILE *f=fopen("conftestval", "w");
4514 if (!f) exit(1); 4515 if (!f) exit(1);
4515 fprintf(f, "%d\n", sizeof(int)); 4516 fprintf(f, "%d\n", sizeof(int));
4516 exit(0); 4517 exit(0);
4517 } 4518 }
4518 EOF 4519 EOF
4519 if { (eval echo configure:4520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4520 if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4520 then 4521 then
4521 ac_cv_sizeof_int=`cat conftestval` 4522 ac_cv_sizeof_int=`cat conftestval`
4522 else 4523 else
4523 conftest_rc="$?" 4524 conftest_rc="$?"
4524 echo "configure: failed program was:" >&5 4525 echo "configure: failed program was:" >&5
4536 EOF 4537 EOF
4537 } 4538 }
4538 4539
4539 4540
4540 echo $ac_n "checking size of long""... $ac_c" 1>&6 4541 echo $ac_n "checking size of long""... $ac_c" 1>&6
4541 echo "configure:4542: checking size of long" >&5 4542 echo "configure:4543: checking size of long" >&5
4542 4543
4543 cat > conftest.$ac_ext <<EOF 4544 cat > conftest.$ac_ext <<EOF
4544 #line 4545 "configure" 4545 #line 4546 "configure"
4545 #include "confdefs.h" 4546 #include "confdefs.h"
4546 #include <stdio.h> 4547 #include <stdio.h>
4547 #include <sys/types.h>
4548 main() 4548 main()
4549 { 4549 {
4550 FILE *f=fopen("conftestval", "w"); 4550 FILE *f=fopen("conftestval", "w");
4551 if (!f) exit(1); 4551 if (!f) exit(1);
4552 fprintf(f, "%d\n", sizeof(long)); 4552 fprintf(f, "%d\n", sizeof(long));
4579 4579
4580 cat > conftest.$ac_ext <<EOF 4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure" 4581 #line 4582 "configure"
4582 #include "confdefs.h" 4582 #include "confdefs.h"
4583 #include <stdio.h> 4583 #include <stdio.h>
4584 #include <sys/types.h>
4585 main() 4584 main()
4586 { 4585 {
4587 FILE *f=fopen("conftestval", "w"); 4586 FILE *f=fopen("conftestval", "w");
4588 if (!f) exit(1); 4587 if (!f) exit(1);
4589 fprintf(f, "%d\n", sizeof(long long)); 4588 fprintf(f, "%d\n", sizeof(long long));
4590 exit(0); 4589 exit(0);
4591 } 4590 }
4592 EOF 4591 EOF
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4594 then 4593 then
4595 ac_cv_sizeof_long_long=`cat conftestval` 4594 ac_cv_sizeof_long_long=`cat conftestval`
4596 else 4595 else
4597 conftest_rc="$?" 4596 conftest_rc="$?"
4598 echo "configure: failed program was:" >&5 4597 echo "configure: failed program was:" >&5
4610 EOF 4609 EOF
4611 } 4610 }
4612 4611
4613 4612
4614 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4613 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4615 echo "configure:4616: checking size of void *" >&5 4614 echo "configure:4615: checking size of void *" >&5
4616 4615
4617 cat > conftest.$ac_ext <<EOF 4616 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure" 4617 #line 4618 "configure"
4619 #include "confdefs.h" 4618 #include "confdefs.h"
4620 #include <stdio.h> 4619 #include <stdio.h>
4621 #include <sys/types.h>
4622 main() 4620 main()
4623 { 4621 {
4624 FILE *f=fopen("conftestval", "w"); 4622 FILE *f=fopen("conftestval", "w");
4625 if (!f) exit(1); 4623 if (!f) exit(1);
4626 fprintf(f, "%d\n", sizeof(void *)); 4624 fprintf(f, "%d\n", sizeof(void *));
4627 exit(0); 4625 exit(0);
4628 } 4626 }
4629 EOF 4627 EOF
4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4628 if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4631 then 4629 then
4632 ac_cv_sizeof_void_p=`cat conftestval` 4630 ac_cv_sizeof_void_p=`cat conftestval`
4633 else 4631 else
4634 conftest_rc="$?" 4632 conftest_rc="$?"
4635 echo "configure: failed program was:" >&5 4633 echo "configure: failed program was:" >&5
4648 } 4646 }
4649 4647
4650 4648
4651 4649
4652 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4650 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4653 echo "configure:4654: checking for long file names" >&5 4651 echo "configure:4652: checking for long file names" >&5
4654 4652
4655 ac_cv_sys_long_file_names=yes 4653 ac_cv_sys_long_file_names=yes
4656 # Test for long file names in all the places we know might matter: 4654 # Test for long file names in all the places we know might matter:
4657 # . the current directory, where building will happen 4655 # . the current directory, where building will happen
4658 # $prefix/lib where we will be installing things 4656 # $prefix/lib where we will be installing things
4694 4692
4695 fi 4693 fi
4696 4694
4697 4695
4698 echo $ac_n "checking for sin""... $ac_c" 1>&6 4696 echo $ac_n "checking for sin""... $ac_c" 1>&6
4699 echo "configure:4700: checking for sin" >&5 4697 echo "configure:4698: checking for sin" >&5
4700 4698
4701 cat > conftest.$ac_ext <<EOF 4699 cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure" 4700 #line 4701 "configure"
4703 #include "confdefs.h" 4701 #include "confdefs.h"
4704 /* System header to define __stub macros and hopefully few prototypes, 4702 /* System header to define __stub macros and hopefully few prototypes,
4705 which can conflict with char sin(); below. */ 4703 which can conflict with char sin(); below. */
4706 #include <assert.h> 4704 #include <assert.h>
4707 /* Override any gcc2 internal prototype to avoid an error. */ 4705 /* Override any gcc2 internal prototype to avoid an error. */
4720 sin(); 4718 sin();
4721 #endif 4719 #endif
4722 4720
4723 ; return 0; } 4721 ; return 0; }
4724 EOF 4722 EOF
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4723 if { (eval echo configure:4724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4726 rm -rf conftest* 4724 rm -rf conftest*
4727 eval "ac_cv_func_sin=yes" 4725 eval "ac_cv_func_sin=yes"
4728 else 4726 else
4729 echo "configure: failed program was:" >&5 4727 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5 4728 cat conftest.$ac_ext >&5
4738 : 4736 :
4739 else 4737 else
4740 echo "$ac_t""no" 1>&6 4738 echo "$ac_t""no" 1>&6
4741 4739
4742 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4740 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4743 echo "configure:4744: checking for sin in -lm" >&5 4741 echo "configure:4742: checking for sin in -lm" >&5
4744 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4742 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4745 4743
4746 xe_check_libs=" -lm " 4744 xe_check_libs=" -lm "
4747 cat > conftest.$ac_ext <<EOF 4745 cat > conftest.$ac_ext <<EOF
4748 #line 4749 "configure" 4746 #line 4747 "configure"
4749 #include "confdefs.h" 4747 #include "confdefs.h"
4750 /* Override any gcc2 internal prototype to avoid an error. */ 4748 /* Override any gcc2 internal prototype to avoid an error. */
4751 /* We use char because int might match the return type of a gcc2 4749 /* We use char because int might match the return type of a gcc2
4752 builtin and then its argument prototype would still apply. */ 4750 builtin and then its argument prototype would still apply. */
4753 char sin(); 4751 char sin();
4754 4752
4755 int main() { 4753 int main() {
4756 sin() 4754 sin()
4757 ; return 0; } 4755 ; return 0; }
4758 EOF 4756 EOF
4759 if { (eval echo configure:4760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4757 if { (eval echo configure:4758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4760 rm -rf conftest* 4758 rm -rf conftest*
4761 eval "ac_cv_lib_$ac_lib_var=yes" 4759 eval "ac_cv_lib_$ac_lib_var=yes"
4762 else 4760 else
4763 echo "configure: failed program was:" >&5 4761 echo "configure: failed program was:" >&5
4764 cat conftest.$ac_ext >&5 4762 cat conftest.$ac_ext >&5
4798 EOF 4796 EOF
4799 } 4797 }
4800 4798
4801 4799
4802 cat > conftest.$ac_ext <<EOF 4800 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure" 4801 #line 4802 "configure"
4804 #include "confdefs.h" 4802 #include "confdefs.h"
4805 #include <math.h> 4803 #include <math.h>
4806 int main() { 4804 int main() {
4807 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4805 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4808 ; return 0; } 4806 ; return 0; }
4809 EOF 4807 EOF
4810 if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4808 if { (eval echo configure:4809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4811 rm -rf conftest* 4809 rm -rf conftest*
4812 { test "$extra_verbose" = "yes" && cat << \EOF 4810 { test "$extra_verbose" = "yes" && cat << \EOF
4813 Defining HAVE_INVERSE_HYPERBOLIC 4811 Defining HAVE_INVERSE_HYPERBOLIC
4814 EOF 4812 EOF
4815 cat >> confdefs.h <<\EOF 4813 cat >> confdefs.h <<\EOF
4824 rm -f conftest* 4822 rm -f conftest*
4825 4823
4826 for ac_func in mkstemp 4824 for ac_func in mkstemp
4827 do 4825 do
4828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4829 echo "configure:4830: checking for $ac_func" >&5 4827 echo "configure:4828: checking for $ac_func" >&5
4830 4828
4831 cat > conftest.$ac_ext <<EOF 4829 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure" 4830 #line 4831 "configure"
4833 #include "confdefs.h" 4831 #include "confdefs.h"
4834 /* System header to define __stub macros and hopefully few prototypes, 4832 /* System header to define __stub macros and hopefully few prototypes,
4835 which can conflict with char $ac_func(); below. */ 4833 which can conflict with char $ac_func(); below. */
4836 #include <assert.h> 4834 #include <assert.h>
4837 /* Override any gcc2 internal prototype to avoid an error. */ 4835 /* Override any gcc2 internal prototype to avoid an error. */
4850 $ac_func(); 4848 $ac_func();
4851 #endif 4849 #endif
4852 4850
4853 ; return 0; } 4851 ; return 0; }
4854 EOF 4852 EOF
4855 if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4853 if { (eval echo configure:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4856 rm -rf conftest* 4854 rm -rf conftest*
4857 eval "ac_cv_func_$ac_func=yes" 4855 eval "ac_cv_func_$ac_func=yes"
4858 else 4856 else
4859 echo "configure: failed program was:" >&5 4857 echo "configure: failed program was:" >&5
4860 cat conftest.$ac_ext >&5 4858 cat conftest.$ac_ext >&5
4879 fi 4877 fi
4880 done 4878 done
4881 4879
4882 4880
4883 echo "checking type of mail spool file locking" 1>&6 4881 echo "checking type of mail spool file locking" 1>&6
4884 echo "configure:4885: checking type of mail spool file locking" >&5 4882 echo "configure:4883: checking type of mail spool file locking" >&5
4885 for ac_func in lockf flock 4883 for ac_func in lockf flock
4886 do 4884 do
4887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4888 echo "configure:4889: checking for $ac_func" >&5 4886 echo "configure:4887: checking for $ac_func" >&5
4889 4887
4890 cat > conftest.$ac_ext <<EOF 4888 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure" 4889 #line 4890 "configure"
4892 #include "confdefs.h" 4890 #include "confdefs.h"
4893 /* System header to define __stub macros and hopefully few prototypes, 4891 /* System header to define __stub macros and hopefully few prototypes,
4894 which can conflict with char $ac_func(); below. */ 4892 which can conflict with char $ac_func(); below. */
4895 #include <assert.h> 4893 #include <assert.h>
4896 /* Override any gcc2 internal prototype to avoid an error. */ 4894 /* Override any gcc2 internal prototype to avoid an error. */
4909 $ac_func(); 4907 $ac_func();
4910 #endif 4908 #endif
4911 4909
4912 ; return 0; } 4910 ; return 0; }
4913 EOF 4911 EOF
4914 if { (eval echo configure:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4915 rm -rf conftest* 4913 rm -rf conftest*
4916 eval "ac_cv_func_$ac_func=yes" 4914 eval "ac_cv_func_$ac_func=yes"
4917 else 4915 else
4918 echo "configure: failed program was:" >&5 4916 echo "configure: failed program was:" >&5
4919 cat conftest.$ac_ext >&5 4917 cat conftest.$ac_ext >&5
4991 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 4989 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4992 4990
4993 case "$opsys" in decosf*) 4991 case "$opsys" in decosf*)
4994 4992
4995 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4993 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4996 echo "configure:4997: checking for cma_open in -lpthreads" >&5 4994 echo "configure:4995: checking for cma_open in -lpthreads" >&5
4997 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4995 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4998 4996
4999 xe_check_libs=" -lpthreads " 4997 xe_check_libs=" -lpthreads "
5000 cat > conftest.$ac_ext <<EOF 4998 cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure" 4999 #line 5000 "configure"
5002 #include "confdefs.h" 5000 #include "confdefs.h"
5003 /* Override any gcc2 internal prototype to avoid an error. */ 5001 /* Override any gcc2 internal prototype to avoid an error. */
5004 /* We use char because int might match the return type of a gcc2 5002 /* We use char because int might match the return type of a gcc2
5005 builtin and then its argument prototype would still apply. */ 5003 builtin and then its argument prototype would still apply. */
5006 char cma_open(); 5004 char cma_open();
5007 5005
5008 int main() { 5006 int main() {
5009 cma_open() 5007 cma_open()
5010 ; return 0; } 5008 ; return 0; }
5011 EOF 5009 EOF
5012 if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5013 rm -rf conftest* 5011 rm -rf conftest*
5014 eval "ac_cv_lib_$ac_lib_var=yes" 5012 eval "ac_cv_lib_$ac_lib_var=yes"
5015 else 5013 else
5016 echo "configure: failed program was:" >&5 5014 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5 5015 cat conftest.$ac_ext >&5
5043 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 5041 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
5044 c_switch_site="$c_switch_site -threads" ;; 5042 c_switch_site="$c_switch_site -threads" ;;
5045 esac 5043 esac
5046 5044
5047 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 5045 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5048 echo "configure:5049: checking whether the -xildoff compiler flag is required" >&5 5046 echo "configure:5047: checking whether the -xildoff compiler flag is required" >&5
5049 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 5047 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5050 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 5048 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5051 then echo "$ac_t""no" 1>&6; 5049 then echo "$ac_t""no" 1>&6;
5052 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 5050 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
5053 fi 5051 fi
5055 fi 5053 fi
5056 5054
5057 if test "$opsys" = "sol2"; then 5055 if test "$opsys" = "sol2"; then
5058 if test "$os_release" -ge 56; then 5056 if test "$os_release" -ge 56; then
5059 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 5057 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5060 echo "configure:5061: checking for \"-z ignore\" linker flag" >&5 5058 echo "configure:5059: checking for \"-z ignore\" linker flag" >&5
5061 case "`ld -h 2>&1`" in 5059 case "`ld -h 2>&1`" in
5062 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 5060 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5063 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 5061 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5064 *) echo "$ac_t""no" 1>&6 ;; 5062 *) echo "$ac_t""no" 1>&6 ;;
5065 esac 5063 esac
5066 fi 5064 fi
5067 fi 5065 fi
5068 5066
5069 5067
5070 echo "checking "for specified window system"" 1>&6 5068 echo "checking "for specified window system"" 1>&6
5071 echo "configure:5072: checking "for specified window system"" >&5 5069 echo "configure:5070: checking "for specified window system"" >&5
5072 5070
5073 5071
5074 GNOME_CONFIG=no 5072 GNOME_CONFIG=no
5075 GTK_CONFIG=no 5073 GTK_CONFIG=no
5076 5074
5077 if test "$with_gnome" != "no"; then 5075 if test "$with_gnome" != "no"; then
5078 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6 5076 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5079 echo "configure:5080: checking for GNOME configuration script" >&5 5077 echo "configure:5078: checking for GNOME configuration script" >&5
5080 for possible in gnome-config 5078 for possible in gnome-config
5081 do 5079 do
5082 possible_version=`${possible} --version 2> /dev/null` 5080 possible_version=`${possible} --version 2> /dev/null`
5083 if test "x${possible_version}" != "x"; then 5081 if test "x${possible_version}" != "x"; then
5084 GNOME_CONFIG="${possible}" 5082 GNOME_CONFIG="${possible}"
5105 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi 5103 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5106 fi 5104 fi
5107 5105
5108 if test "$with_gtk" != "no";then 5106 if test "$with_gtk" != "no";then
5109 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6 5107 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5110 echo "configure:5111: checking for GTK configuration script" >&5 5108 echo "configure:5109: checking for GTK configuration script" >&5
5111 for possible in gtk12-config gtk14-config gtk-config 5109 for possible in gtk12-config gtk14-config gtk-config
5112 do 5110 do
5113 possible_version=`${possible} --version 2> /dev/null` 5111 possible_version=`${possible} --version 2> /dev/null`
5114 if test "x${possible_version}" != "x"; then 5112 if test "x${possible_version}" != "x"; then
5115 GTK_CONFIG="${possible}" 5113 GTK_CONFIG="${possible}"
5127 echo "$ac_t""${GTK_CONFIG}" 1>&6 5125 echo "$ac_t""${GTK_CONFIG}" 1>&6
5128 fi 5126 fi
5129 5127
5130 if test "${GTK_CONFIG}" != "no"; then 5128 if test "${GTK_CONFIG}" != "no"; then
5131 echo $ac_n "checking gtk version""... $ac_c" 1>&6 5129 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5132 echo "configure:5133: checking gtk version" >&5 5130 echo "configure:5131: checking gtk version" >&5
5133 GTK_VERSION=`${GTK_CONFIG} --version` 5131 GTK_VERSION=`${GTK_CONFIG} --version`
5134 echo "$ac_t""${GTK_VERSION}" 1>&6 5132 echo "$ac_t""${GTK_VERSION}" 1>&6
5135 5133
5136 echo $ac_n "checking gtk libs""... $ac_c" 1>&6 5134 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5137 echo "configure:5138: checking gtk libs" >&5 5135 echo "configure:5136: checking gtk libs" >&5
5138 GTK_LIBS=`${GTK_CONFIG} --libs` 5136 GTK_LIBS=`${GTK_CONFIG} --libs`
5139 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi 5137 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5140 echo "$ac_t""${GTK_LIBS}" 1>&6 5138 echo "$ac_t""${GTK_LIBS}" 1>&6
5141 5139
5142 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6 5140 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5143 echo "configure:5144: checking gtk cflags" >&5 5141 echo "configure:5142: checking gtk cflags" >&5
5144 GTK_CFLAGS=`${GTK_CONFIG} --cflags` 5142 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5145 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi 5143 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5146 echo "$ac_t""${GTK_CFLAGS}" 1>&6 5144 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5147 5145
5148 5146
5149 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6 5147 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5150 echo "configure:5151: checking for main in -lgdk_imlib" >&5 5148 echo "configure:5149: checking for main in -lgdk_imlib" >&5
5151 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'` 5149 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5152 5150
5153 xe_check_libs=" -lgdk_imlib " 5151 xe_check_libs=" -lgdk_imlib "
5154 cat > conftest.$ac_ext <<EOF 5152 cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure" 5153 #line 5154 "configure"
5156 #include "confdefs.h" 5154 #include "confdefs.h"
5157 5155
5158 int main() { 5156 int main() {
5159 main() 5157 main()
5160 ; return 0; } 5158 ; return 0; }
5161 EOF 5159 EOF
5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5160 if { (eval echo configure:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5163 rm -rf conftest* 5161 rm -rf conftest*
5164 eval "ac_cv_lib_$ac_lib_var=yes" 5162 eval "ac_cv_lib_$ac_lib_var=yes"
5165 else 5163 else
5166 echo "configure: failed program was:" >&5 5164 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5 5165 cat conftest.$ac_ext >&5
5179 fi 5177 fi
5180 5178
5181 5179
5182 5180
5183 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6 5181 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5184 echo "configure:5185: checking for Imlib_init in -lImlib" >&5 5182 echo "configure:5183: checking for Imlib_init in -lImlib" >&5
5185 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'` 5183 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5186 5184
5187 xe_check_libs=" -lImlib " 5185 xe_check_libs=" -lImlib "
5188 cat > conftest.$ac_ext <<EOF 5186 cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure" 5187 #line 5188 "configure"
5190 #include "confdefs.h" 5188 #include "confdefs.h"
5191 /* Override any gcc2 internal prototype to avoid an error. */ 5189 /* Override any gcc2 internal prototype to avoid an error. */
5192 /* We use char because int might match the return type of a gcc2 5190 /* We use char because int might match the return type of a gcc2
5193 builtin and then its argument prototype would still apply. */ 5191 builtin and then its argument prototype would still apply. */
5194 char Imlib_init(); 5192 char Imlib_init();
5195 5193
5196 int main() { 5194 int main() {
5197 Imlib_init() 5195 Imlib_init()
5198 ; return 0; } 5196 ; return 0; }
5199 EOF 5197 EOF
5200 if { (eval echo configure:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5201 rm -rf conftest* 5199 rm -rf conftest*
5202 eval "ac_cv_lib_$ac_lib_var=yes" 5200 eval "ac_cv_lib_$ac_lib_var=yes"
5203 else 5201 else
5204 echo "configure: failed program was:" >&5 5202 echo "configure: failed program was:" >&5
5205 cat conftest.$ac_ext >&5 5203 cat conftest.$ac_ext >&5
5218 5216
5219 5217
5220 for ac_func in gdk_imlib_init 5218 for ac_func in gdk_imlib_init
5221 do 5219 do
5222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5223 echo "configure:5224: checking for $ac_func" >&5 5221 echo "configure:5222: checking for $ac_func" >&5
5224 5222
5225 cat > conftest.$ac_ext <<EOF 5223 cat > conftest.$ac_ext <<EOF
5226 #line 5227 "configure" 5224 #line 5225 "configure"
5227 #include "confdefs.h" 5225 #include "confdefs.h"
5228 /* System header to define __stub macros and hopefully few prototypes, 5226 /* System header to define __stub macros and hopefully few prototypes,
5229 which can conflict with char $ac_func(); below. */ 5227 which can conflict with char $ac_func(); below. */
5230 #include <assert.h> 5228 #include <assert.h>
5231 /* Override any gcc2 internal prototype to avoid an error. */ 5229 /* Override any gcc2 internal prototype to avoid an error. */
5244 $ac_func(); 5242 $ac_func();
5245 #endif 5243 #endif
5246 5244
5247 ; return 0; } 5245 ; return 0; }
5248 EOF 5246 EOF
5249 if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5250 rm -rf conftest* 5248 rm -rf conftest*
5251 eval "ac_cv_func_$ac_func=yes" 5249 eval "ac_cv_func_$ac_func=yes"
5252 else 5250 else
5253 echo "configure: failed program was:" >&5 5251 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5 5252 cat conftest.$ac_ext >&5
5321 LDFLAGS="${LDFLAGS} ${GTK_LIBS}" 5319 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5322 for ac_hdr in glade/glade.h glade.h 5320 for ac_hdr in glade/glade.h glade.h
5323 do 5321 do
5324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5326 echo "configure:5327: checking for $ac_hdr" >&5 5324 echo "configure:5325: checking for $ac_hdr" >&5
5327 5325
5328 cat > conftest.$ac_ext <<EOF 5326 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure" 5327 #line 5328 "configure"
5330 #include "confdefs.h" 5328 #include "confdefs.h"
5331 #include <$ac_hdr> 5329 #include <$ac_hdr>
5332 EOF 5330 EOF
5333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5334 { (eval echo configure:5335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5332 { (eval echo configure:5333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5336 if test -z "$ac_err"; then 5334 if test -z "$ac_err"; then
5337 rm -rf conftest* 5335 rm -rf conftest*
5338 eval "ac_cv_header_$ac_safe=yes" 5336 eval "ac_cv_header_$ac_safe=yes"
5339 else 5337 else
5360 fi 5358 fi
5361 done 5359 done
5362 5360
5363 5361
5364 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6 5362 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5365 echo "configure:5366: checking for main in -lxml" >&5 5363 echo "configure:5364: checking for main in -lxml" >&5
5366 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'` 5364 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5367 5365
5368 xe_check_libs=" -lxml " 5366 xe_check_libs=" -lxml "
5369 cat > conftest.$ac_ext <<EOF 5367 cat > conftest.$ac_ext <<EOF
5370 #line 5371 "configure" 5368 #line 5369 "configure"
5371 #include "confdefs.h" 5369 #include "confdefs.h"
5372 5370
5373 int main() { 5371 int main() {
5374 main() 5372 main()
5375 ; return 0; } 5373 ; return 0; }
5376 EOF 5374 EOF
5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5375 if { (eval echo configure:5376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5378 rm -rf conftest* 5376 rm -rf conftest*
5379 eval "ac_cv_lib_$ac_lib_var=yes" 5377 eval "ac_cv_lib_$ac_lib_var=yes"
5380 else 5378 else
5381 echo "configure: failed program was:" >&5 5379 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5 5380 cat conftest.$ac_ext >&5
5394 fi 5392 fi
5395 5393
5396 5394
5397 5395
5398 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6 5396 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5399 echo "configure:5400: checking for main in -lglade" >&5 5397 echo "configure:5398: checking for main in -lglade" >&5
5400 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'` 5398 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5401 5399
5402 xe_check_libs=" -lglade " 5400 xe_check_libs=" -lglade "
5403 cat > conftest.$ac_ext <<EOF 5401 cat > conftest.$ac_ext <<EOF
5404 #line 5405 "configure" 5402 #line 5403 "configure"
5405 #include "confdefs.h" 5403 #include "confdefs.h"
5406 5404
5407 int main() { 5405 int main() {
5408 main() 5406 main()
5409 ; return 0; } 5407 ; return 0; }
5410 EOF 5408 EOF
5411 if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5409 if { (eval echo configure:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5412 rm -rf conftest* 5410 rm -rf conftest*
5413 eval "ac_cv_lib_$ac_lib_var=yes" 5411 eval "ac_cv_lib_$ac_lib_var=yes"
5414 else 5412 else
5415 echo "configure: failed program was:" >&5 5413 echo "configure: failed program was:" >&5
5416 cat conftest.$ac_ext >&5 5414 cat conftest.$ac_ext >&5
5428 fi 5426 fi
5429 5427
5430 5428
5431 5429
5432 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6 5430 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5433 echo "configure:5434: checking for main in -lglade-gnome" >&5 5431 echo "configure:5432: checking for main in -lglade-gnome" >&5
5434 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'` 5432 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5435 5433
5436 xe_check_libs=" -lglade-gnome " 5434 xe_check_libs=" -lglade-gnome "
5437 cat > conftest.$ac_ext <<EOF 5435 cat > conftest.$ac_ext <<EOF
5438 #line 5439 "configure" 5436 #line 5437 "configure"
5439 #include "confdefs.h" 5437 #include "confdefs.h"
5440 5438
5441 int main() { 5439 int main() {
5442 main() 5440 main()
5443 ; return 0; } 5441 ; return 0; }
5444 EOF 5442 EOF
5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5443 if { (eval echo configure:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5446 rm -rf conftest* 5444 rm -rf conftest*
5447 eval "ac_cv_lib_$ac_lib_var=yes" 5445 eval "ac_cv_lib_$ac_lib_var=yes"
5448 else 5446 else
5449 echo "configure: failed program was:" >&5 5447 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5 5448 cat conftest.$ac_ext >&5
5461 echo "$ac_t""no" 1>&6 5459 echo "$ac_t""no" 1>&6
5462 fi 5460 fi
5463 5461
5464 5462
5465 cat > conftest.$ac_ext <<EOF 5463 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure" 5464 #line 5465 "configure"
5467 #include "confdefs.h" 5465 #include "confdefs.h"
5468 #include <glade/glade-xml.h> 5466 #include <glade/glade-xml.h>
5469 EOF 5467 EOF
5470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5471 egrep "char \*txtdomain;" >/dev/null 2>&1; then 5469 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5519 # If we find X, set shell vars x_includes and x_libraries to the 5517 # If we find X, set shell vars x_includes and x_libraries to the
5520 # paths, otherwise set no_x=yes. 5518 # paths, otherwise set no_x=yes.
5521 # Uses ac_ vars as temps to allow command line to override cache and checks. 5519 # Uses ac_ vars as temps to allow command line to override cache and checks.
5522 # --without-x overrides everything else, but does not touch the cache. 5520 # --without-x overrides everything else, but does not touch the cache.
5523 echo $ac_n "checking for X""... $ac_c" 1>&6 5521 echo $ac_n "checking for X""... $ac_c" 1>&6
5524 echo "configure:5525: checking for X" >&5 5522 echo "configure:5523: checking for X" >&5
5525 5523
5526 # Check whether --with-x or --without-x was given. 5524 # Check whether --with-x or --without-x was given.
5527 if test "${with_x+set}" = set; then 5525 if test "${with_x+set}" = set; then
5528 withval="$with_x" 5526 withval="$with_x"
5529 : 5527 :
5579 # Guess where to find include files, by looking for this one X11 .h file. 5577 # Guess where to find include files, by looking for this one X11 .h file.
5580 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5578 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5581 5579
5582 # First, try using that file with no special directory specified. 5580 # First, try using that file with no special directory specified.
5583 cat > conftest.$ac_ext <<EOF 5581 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure" 5582 #line 5583 "configure"
5585 #include "confdefs.h" 5583 #include "confdefs.h"
5586 #include <$x_direct_test_include> 5584 #include <$x_direct_test_include>
5587 EOF 5585 EOF
5588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5589 { (eval echo configure:5590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5587 { (eval echo configure:5588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5591 if test -z "$ac_err"; then 5589 if test -z "$ac_err"; then
5592 rm -rf conftest* 5590 rm -rf conftest*
5593 # We can compile using X headers with no special include directory. 5591 # We can compile using X headers with no special include directory.
5594 ac_x_includes= 5592 ac_x_includes=
5653 # See if we find them without any special options. 5651 # See if we find them without any special options.
5654 # Don't add to $LIBS permanently. 5652 # Don't add to $LIBS permanently.
5655 ac_save_LIBS="$LIBS" 5653 ac_save_LIBS="$LIBS"
5656 LIBS="-l$x_direct_test_library $LIBS" 5654 LIBS="-l$x_direct_test_library $LIBS"
5657 cat > conftest.$ac_ext <<EOF 5655 cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure" 5656 #line 5657 "configure"
5659 #include "confdefs.h" 5657 #include "confdefs.h"
5660 5658
5661 int main() { 5659 int main() {
5662 ${x_direct_test_function}() 5660 ${x_direct_test_function}()
5663 ; return 0; } 5661 ; return 0; }
5664 EOF 5662 EOF
5665 if { (eval echo configure:5666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5663 if { (eval echo configure:5664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5666 rm -rf conftest* 5664 rm -rf conftest*
5667 LIBS="$ac_save_LIBS" 5665 LIBS="$ac_save_LIBS"
5668 # We can link X programs with no special library path. 5666 # We can link X programs with no special library path.
5669 ac_x_libraries= 5667 ac_x_libraries=
5670 else 5668 else
5769 # For Solaris; some versions of Sun CC require a space after -R and 5767 # For Solaris; some versions of Sun CC require a space after -R and
5770 # others require no space. Words are not sufficient . . . . 5768 # others require no space. Words are not sufficient . . . .
5771 case "`(uname -sr) 2>/dev/null`" in 5769 case "`(uname -sr) 2>/dev/null`" in
5772 "SunOS 5"*) 5770 "SunOS 5"*)
5773 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5771 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5774 echo "configure:5775: checking whether -R must be followed by a space" >&5 5772 echo "configure:5773: checking whether -R must be followed by a space" >&5
5775 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5773 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5776 cat > conftest.$ac_ext <<EOF 5774 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure" 5775 #line 5776 "configure"
5778 #include "confdefs.h" 5776 #include "confdefs.h"
5779 5777
5780 int main() { 5778 int main() {
5781 5779
5782 ; return 0; } 5780 ; return 0; }
5783 EOF 5781 EOF
5784 if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5782 if { (eval echo configure:5783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5785 rm -rf conftest* 5783 rm -rf conftest*
5786 ac_R_nospace=yes 5784 ac_R_nospace=yes
5787 else 5785 else
5788 echo "configure: failed program was:" >&5 5786 echo "configure: failed program was:" >&5
5789 cat conftest.$ac_ext >&5 5787 cat conftest.$ac_ext >&5
5795 echo "$ac_t""no" 1>&6 5793 echo "$ac_t""no" 1>&6
5796 X_LIBS="$X_LIBS -R$x_libraries" 5794 X_LIBS="$X_LIBS -R$x_libraries"
5797 else 5795 else
5798 LIBS="$ac_xsave_LIBS -R $x_libraries" 5796 LIBS="$ac_xsave_LIBS -R $x_libraries"
5799 cat > conftest.$ac_ext <<EOF 5797 cat > conftest.$ac_ext <<EOF
5800 #line 5801 "configure" 5798 #line 5799 "configure"
5801 #include "confdefs.h" 5799 #include "confdefs.h"
5802 5800
5803 int main() { 5801 int main() {
5804 5802
5805 ; return 0; } 5803 ; return 0; }
5806 EOF 5804 EOF
5807 if { (eval echo configure:5808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5805 if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5808 rm -rf conftest* 5806 rm -rf conftest*
5809 ac_R_space=yes 5807 ac_R_space=yes
5810 else 5808 else
5811 echo "configure: failed program was:" >&5 5809 echo "configure: failed program was:" >&5
5812 cat conftest.$ac_ext >&5 5810 cat conftest.$ac_ext >&5
5838 if test "$with_dnet" = "no" ; then 5836 if test "$with_dnet" = "no" ; then
5839 ac_cv_lib_dnet_dnet_ntoa=no 5837 ac_cv_lib_dnet_dnet_ntoa=no
5840 else 5838 else
5841 5839
5842 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5840 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5843 echo "configure:5844: checking for dnet_ntoa in -ldnet" >&5 5841 echo "configure:5842: checking for dnet_ntoa in -ldnet" >&5
5844 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5842 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5845 5843
5846 xe_check_libs=" -ldnet " 5844 xe_check_libs=" -ldnet "
5847 cat > conftest.$ac_ext <<EOF 5845 cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure" 5846 #line 5847 "configure"
5849 #include "confdefs.h" 5847 #include "confdefs.h"
5850 /* Override any gcc2 internal prototype to avoid an error. */ 5848 /* Override any gcc2 internal prototype to avoid an error. */
5851 /* We use char because int might match the return type of a gcc2 5849 /* We use char because int might match the return type of a gcc2
5852 builtin and then its argument prototype would still apply. */ 5850 builtin and then its argument prototype would still apply. */
5853 char dnet_ntoa(); 5851 char dnet_ntoa();
5854 5852
5855 int main() { 5853 int main() {
5856 dnet_ntoa() 5854 dnet_ntoa()
5857 ; return 0; } 5855 ; return 0; }
5858 EOF 5856 EOF
5859 if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5857 if { (eval echo configure:5858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860 rm -rf conftest* 5858 rm -rf conftest*
5861 eval "ac_cv_lib_$ac_lib_var=yes" 5859 eval "ac_cv_lib_$ac_lib_var=yes"
5862 else 5860 else
5863 echo "configure: failed program was:" >&5 5861 echo "configure: failed program was:" >&5
5864 cat conftest.$ac_ext >&5 5862 cat conftest.$ac_ext >&5
5878 fi 5876 fi
5879 5877
5880 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5878 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5881 5879
5882 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 5880 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5883 echo "configure:5884: checking for dnet_ntoa in -ldnet_stub" >&5 5881 echo "configure:5882: checking for dnet_ntoa in -ldnet_stub" >&5
5884 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5882 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5885 5883
5886 xe_check_libs=" -ldnet_stub " 5884 xe_check_libs=" -ldnet_stub "
5887 cat > conftest.$ac_ext <<EOF 5885 cat > conftest.$ac_ext <<EOF
5888 #line 5889 "configure" 5886 #line 5887 "configure"
5889 #include "confdefs.h" 5887 #include "confdefs.h"
5890 /* Override any gcc2 internal prototype to avoid an error. */ 5888 /* Override any gcc2 internal prototype to avoid an error. */
5891 /* We use char because int might match the return type of a gcc2 5889 /* We use char because int might match the return type of a gcc2
5892 builtin and then its argument prototype would still apply. */ 5890 builtin and then its argument prototype would still apply. */
5893 char dnet_ntoa(); 5891 char dnet_ntoa();
5894 5892
5895 int main() { 5893 int main() {
5896 dnet_ntoa() 5894 dnet_ntoa()
5897 ; return 0; } 5895 ; return 0; }
5898 EOF 5896 EOF
5899 if { (eval echo configure:5900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5897 if { (eval echo configure:5898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5900 rm -rf conftest* 5898 rm -rf conftest*
5901 eval "ac_cv_lib_$ac_lib_var=yes" 5899 eval "ac_cv_lib_$ac_lib_var=yes"
5902 else 5900 else
5903 echo "configure: failed program was:" >&5 5901 echo "configure: failed program was:" >&5
5904 cat conftest.$ac_ext >&5 5902 cat conftest.$ac_ext >&5
5923 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5921 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5924 # needs -lnsl. 5922 # needs -lnsl.
5925 # The nsl library prevents programs from opening the X display 5923 # The nsl library prevents programs from opening the X display
5926 # on Irix 5.2, according to dickey@clark.net. 5924 # on Irix 5.2, according to dickey@clark.net.
5927 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5925 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5928 echo "configure:5929: checking for gethostbyname" >&5 5926 echo "configure:5927: checking for gethostbyname" >&5
5929 5927
5930 cat > conftest.$ac_ext <<EOF 5928 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure" 5929 #line 5930 "configure"
5932 #include "confdefs.h" 5930 #include "confdefs.h"
5933 /* System header to define __stub macros and hopefully few prototypes, 5931 /* System header to define __stub macros and hopefully few prototypes,
5934 which can conflict with char gethostbyname(); below. */ 5932 which can conflict with char gethostbyname(); below. */
5935 #include <assert.h> 5933 #include <assert.h>
5936 /* Override any gcc2 internal prototype to avoid an error. */ 5934 /* Override any gcc2 internal prototype to avoid an error. */
5949 gethostbyname(); 5947 gethostbyname();
5950 #endif 5948 #endif
5951 5949
5952 ; return 0; } 5950 ; return 0; }
5953 EOF 5951 EOF
5954 if { (eval echo configure:5955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5952 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5955 rm -rf conftest* 5953 rm -rf conftest*
5956 eval "ac_cv_func_gethostbyname=yes" 5954 eval "ac_cv_func_gethostbyname=yes"
5957 else 5955 else
5958 echo "configure: failed program was:" >&5 5956 echo "configure: failed program was:" >&5
5959 cat conftest.$ac_ext >&5 5957 cat conftest.$ac_ext >&5
5970 fi 5968 fi
5971 5969
5972 if test $ac_cv_func_gethostbyname = no; then 5970 if test $ac_cv_func_gethostbyname = no; then
5973 5971
5974 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5972 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5975 echo "configure:5976: checking for gethostbyname in -lnsl" >&5 5973 echo "configure:5974: checking for gethostbyname in -lnsl" >&5
5976 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5974 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5977 5975
5978 xe_check_libs=" -lnsl " 5976 xe_check_libs=" -lnsl "
5979 cat > conftest.$ac_ext <<EOF 5977 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure" 5978 #line 5979 "configure"
5981 #include "confdefs.h" 5979 #include "confdefs.h"
5982 /* Override any gcc2 internal prototype to avoid an error. */ 5980 /* Override any gcc2 internal prototype to avoid an error. */
5983 /* We use char because int might match the return type of a gcc2 5981 /* We use char because int might match the return type of a gcc2
5984 builtin and then its argument prototype would still apply. */ 5982 builtin and then its argument prototype would still apply. */
5985 char gethostbyname(); 5983 char gethostbyname();
5986 5984
5987 int main() { 5985 int main() {
5988 gethostbyname() 5986 gethostbyname()
5989 ; return 0; } 5987 ; return 0; }
5990 EOF 5988 EOF
5991 if { (eval echo configure:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5989 if { (eval echo configure:5990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5992 rm -rf conftest* 5990 rm -rf conftest*
5993 eval "ac_cv_lib_$ac_lib_var=yes" 5991 eval "ac_cv_lib_$ac_lib_var=yes"
5994 else 5992 else
5995 echo "configure: failed program was:" >&5 5993 echo "configure: failed program was:" >&5
5996 cat conftest.$ac_ext >&5 5994 cat conftest.$ac_ext >&5
6016 # on later versions), says simon@lia.di.epfl.ch: it contains 6014 # on later versions), says simon@lia.di.epfl.ch: it contains
6017 # gethostby* variants that don't use the nameserver (or something). 6015 # gethostby* variants that don't use the nameserver (or something).
6018 # -lsocket must be given before -lnsl if both are needed. 6016 # -lsocket must be given before -lnsl if both are needed.
6019 # We assume that if connect needs -lnsl, so does gethostbyname. 6017 # We assume that if connect needs -lnsl, so does gethostbyname.
6020 echo $ac_n "checking for connect""... $ac_c" 1>&6 6018 echo $ac_n "checking for connect""... $ac_c" 1>&6
6021 echo "configure:6022: checking for connect" >&5 6019 echo "configure:6020: checking for connect" >&5
6022 6020
6023 cat > conftest.$ac_ext <<EOF 6021 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure" 6022 #line 6023 "configure"
6025 #include "confdefs.h" 6023 #include "confdefs.h"
6026 /* System header to define __stub macros and hopefully few prototypes, 6024 /* System header to define __stub macros and hopefully few prototypes,
6027 which can conflict with char connect(); below. */ 6025 which can conflict with char connect(); below. */
6028 #include <assert.h> 6026 #include <assert.h>
6029 /* Override any gcc2 internal prototype to avoid an error. */ 6027 /* Override any gcc2 internal prototype to avoid an error. */
6042 connect(); 6040 connect();
6043 #endif 6041 #endif
6044 6042
6045 ; return 0; } 6043 ; return 0; }
6046 EOF 6044 EOF
6047 if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6045 if { (eval echo configure:6046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6048 rm -rf conftest* 6046 rm -rf conftest*
6049 eval "ac_cv_func_connect=yes" 6047 eval "ac_cv_func_connect=yes"
6050 else 6048 else
6051 echo "configure: failed program was:" >&5 6049 echo "configure: failed program was:" >&5
6052 cat conftest.$ac_ext >&5 6050 cat conftest.$ac_ext >&5
6065 if test $ac_cv_func_connect = no; then 6063 if test $ac_cv_func_connect = no; then
6066 6064
6067 xe_msg_checking="for connect in -lsocket" 6065 xe_msg_checking="for connect in -lsocket"
6068 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6066 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6069 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6067 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6070 echo "configure:6071: checking "$xe_msg_checking"" >&5 6068 echo "configure:6069: checking "$xe_msg_checking"" >&5
6071 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 6069 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6072 6070
6073 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 6071 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6074 cat > conftest.$ac_ext <<EOF 6072 cat > conftest.$ac_ext <<EOF
6075 #line 6076 "configure" 6073 #line 6074 "configure"
6076 #include "confdefs.h" 6074 #include "confdefs.h"
6077 /* Override any gcc2 internal prototype to avoid an error. */ 6075 /* Override any gcc2 internal prototype to avoid an error. */
6078 /* We use char because int might match the return type of a gcc2 6076 /* We use char because int might match the return type of a gcc2
6079 builtin and then its argument prototype would still apply. */ 6077 builtin and then its argument prototype would still apply. */
6080 char connect(); 6078 char connect();
6081 6079
6082 int main() { 6080 int main() {
6083 connect() 6081 connect()
6084 ; return 0; } 6082 ; return 0; }
6085 EOF 6083 EOF
6086 if { (eval echo configure:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6084 if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6087 rm -rf conftest* 6085 rm -rf conftest*
6088 eval "ac_cv_lib_$ac_lib_var=yes" 6086 eval "ac_cv_lib_$ac_lib_var=yes"
6089 else 6087 else
6090 echo "configure: failed program was:" >&5 6088 echo "configure: failed program was:" >&5
6091 cat conftest.$ac_ext >&5 6089 cat conftest.$ac_ext >&5
6105 6103
6106 fi 6104 fi
6107 6105
6108 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 6106 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6109 echo $ac_n "checking for remove""... $ac_c" 1>&6 6107 echo $ac_n "checking for remove""... $ac_c" 1>&6
6110 echo "configure:6111: checking for remove" >&5 6108 echo "configure:6109: checking for remove" >&5
6111 6109
6112 cat > conftest.$ac_ext <<EOF 6110 cat > conftest.$ac_ext <<EOF
6113 #line 6114 "configure" 6111 #line 6112 "configure"
6114 #include "confdefs.h" 6112 #include "confdefs.h"
6115 /* System header to define __stub macros and hopefully few prototypes, 6113 /* System header to define __stub macros and hopefully few prototypes,
6116 which can conflict with char remove(); below. */ 6114 which can conflict with char remove(); below. */
6117 #include <assert.h> 6115 #include <assert.h>
6118 /* Override any gcc2 internal prototype to avoid an error. */ 6116 /* Override any gcc2 internal prototype to avoid an error. */
6131 remove(); 6129 remove();
6132 #endif 6130 #endif
6133 6131
6134 ; return 0; } 6132 ; return 0; }
6135 EOF 6133 EOF
6136 if { (eval echo configure:6137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6134 if { (eval echo configure:6135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6137 rm -rf conftest* 6135 rm -rf conftest*
6138 eval "ac_cv_func_remove=yes" 6136 eval "ac_cv_func_remove=yes"
6139 else 6137 else
6140 echo "configure: failed program was:" >&5 6138 echo "configure: failed program was:" >&5
6141 cat conftest.$ac_ext >&5 6139 cat conftest.$ac_ext >&5
6152 fi 6150 fi
6153 6151
6154 if test $ac_cv_func_remove = no; then 6152 if test $ac_cv_func_remove = no; then
6155 6153
6156 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 6154 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6157 echo "configure:6158: checking for remove in -lposix" >&5 6155 echo "configure:6156: checking for remove in -lposix" >&5
6158 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 6156 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6159 6157
6160 xe_check_libs=" -lposix " 6158 xe_check_libs=" -lposix "
6161 cat > conftest.$ac_ext <<EOF 6159 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure" 6160 #line 6161 "configure"
6163 #include "confdefs.h" 6161 #include "confdefs.h"
6164 /* Override any gcc2 internal prototype to avoid an error. */ 6162 /* Override any gcc2 internal prototype to avoid an error. */
6165 /* We use char because int might match the return type of a gcc2 6163 /* We use char because int might match the return type of a gcc2
6166 builtin and then its argument prototype would still apply. */ 6164 builtin and then its argument prototype would still apply. */
6167 char remove(); 6165 char remove();
6168 6166
6169 int main() { 6167 int main() {
6170 remove() 6168 remove()
6171 ; return 0; } 6169 ; return 0; }
6172 EOF 6170 EOF
6173 if { (eval echo configure:6174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6171 if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6174 rm -rf conftest* 6172 rm -rf conftest*
6175 eval "ac_cv_lib_$ac_lib_var=yes" 6173 eval "ac_cv_lib_$ac_lib_var=yes"
6176 else 6174 else
6177 echo "configure: failed program was:" >&5 6175 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5 6176 cat conftest.$ac_ext >&5
6192 6190
6193 fi 6191 fi
6194 6192
6195 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6193 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6196 echo $ac_n "checking for shmat""... $ac_c" 1>&6 6194 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6197 echo "configure:6198: checking for shmat" >&5 6195 echo "configure:6196: checking for shmat" >&5
6198 6196
6199 cat > conftest.$ac_ext <<EOF 6197 cat > conftest.$ac_ext <<EOF
6200 #line 6201 "configure" 6198 #line 6199 "configure"
6201 #include "confdefs.h" 6199 #include "confdefs.h"
6202 /* System header to define __stub macros and hopefully few prototypes, 6200 /* System header to define __stub macros and hopefully few prototypes,
6203 which can conflict with char shmat(); below. */ 6201 which can conflict with char shmat(); below. */
6204 #include <assert.h> 6202 #include <assert.h>
6205 /* Override any gcc2 internal prototype to avoid an error. */ 6203 /* Override any gcc2 internal prototype to avoid an error. */
6218 shmat(); 6216 shmat();
6219 #endif 6217 #endif
6220 6218
6221 ; return 0; } 6219 ; return 0; }
6222 EOF 6220 EOF
6223 if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6221 if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6224 rm -rf conftest* 6222 rm -rf conftest*
6225 eval "ac_cv_func_shmat=yes" 6223 eval "ac_cv_func_shmat=yes"
6226 else 6224 else
6227 echo "configure: failed program was:" >&5 6225 echo "configure: failed program was:" >&5
6228 cat conftest.$ac_ext >&5 6226 cat conftest.$ac_ext >&5
6239 fi 6237 fi
6240 6238
6241 if test $ac_cv_func_shmat = no; then 6239 if test $ac_cv_func_shmat = no; then
6242 6240
6243 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 6241 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6244 echo "configure:6245: checking for shmat in -lipc" >&5 6242 echo "configure:6243: checking for shmat in -lipc" >&5
6245 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 6243 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6246 6244
6247 xe_check_libs=" -lipc " 6245 xe_check_libs=" -lipc "
6248 cat > conftest.$ac_ext <<EOF 6246 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure" 6247 #line 6248 "configure"
6250 #include "confdefs.h" 6248 #include "confdefs.h"
6251 /* Override any gcc2 internal prototype to avoid an error. */ 6249 /* Override any gcc2 internal prototype to avoid an error. */
6252 /* We use char because int might match the return type of a gcc2 6250 /* We use char because int might match the return type of a gcc2
6253 builtin and then its argument prototype would still apply. */ 6251 builtin and then its argument prototype would still apply. */
6254 char shmat(); 6252 char shmat();
6255 6253
6256 int main() { 6254 int main() {
6257 shmat() 6255 shmat()
6258 ; return 0; } 6256 ; return 0; }
6259 EOF 6257 EOF
6260 if { (eval echo configure:6261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6258 if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6261 rm -rf conftest* 6259 rm -rf conftest*
6262 eval "ac_cv_lib_$ac_lib_var=yes" 6260 eval "ac_cv_lib_$ac_lib_var=yes"
6263 else 6261 else
6264 echo "configure: failed program was:" >&5 6262 echo "configure: failed program was:" >&5
6265 cat conftest.$ac_ext >&5 6263 cat conftest.$ac_ext >&5
6291 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 6289 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6292 6290
6293 xe_msg_checking="for IceConnectionNumber in -lICE" 6291 xe_msg_checking="for IceConnectionNumber in -lICE"
6294 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6292 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6295 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6293 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6296 echo "configure:6297: checking "$xe_msg_checking"" >&5 6294 echo "configure:6295: checking "$xe_msg_checking"" >&5
6297 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 6295 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6298 6296
6299 xe_check_libs=" -lICE $X_EXTRA_LIBS" 6297 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6300 cat > conftest.$ac_ext <<EOF 6298 cat > conftest.$ac_ext <<EOF
6301 #line 6302 "configure" 6299 #line 6300 "configure"
6302 #include "confdefs.h" 6300 #include "confdefs.h"
6303 /* Override any gcc2 internal prototype to avoid an error. */ 6301 /* Override any gcc2 internal prototype to avoid an error. */
6304 /* We use char because int might match the return type of a gcc2 6302 /* We use char because int might match the return type of a gcc2
6305 builtin and then its argument prototype would still apply. */ 6303 builtin and then its argument prototype would still apply. */
6306 char IceConnectionNumber(); 6304 char IceConnectionNumber();
6307 6305
6308 int main() { 6306 int main() {
6309 IceConnectionNumber() 6307 IceConnectionNumber()
6310 ; return 0; } 6308 ; return 0; }
6311 EOF 6309 EOF
6312 if { (eval echo configure:6313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6310 if { (eval echo configure:6311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6313 rm -rf conftest* 6311 rm -rf conftest*
6314 eval "ac_cv_lib_$ac_lib_var=yes" 6312 eval "ac_cv_lib_$ac_lib_var=yes"
6315 else 6313 else
6316 echo "configure: failed program was:" >&5 6314 echo "configure: failed program was:" >&5
6317 cat conftest.$ac_ext >&5 6315 cat conftest.$ac_ext >&5
6474 EOF 6472 EOF
6475 } 6473 }
6476 6474
6477 6475
6478 echo "checking for X defines extracted by xmkmf" 1>&6 6476 echo "checking for X defines extracted by xmkmf" 1>&6
6479 echo "configure:6480: checking for X defines extracted by xmkmf" >&5 6477 echo "configure:6478: checking for X defines extracted by xmkmf" >&5
6480 rm -fr conftestdir 6478 rm -fr conftestdir
6481 if mkdir conftestdir; then 6479 if mkdir conftestdir; then
6482 cd conftestdir 6480 cd conftestdir
6483 cat > Imakefile <<'EOF' 6481 cat > Imakefile <<'EOF'
6484 xetest: 6482 xetest:
6523 done 6521 done
6524 fi 6522 fi
6525 6523
6526 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 6524 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6527 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 6525 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6528 echo "configure:6529: checking for X11/Intrinsic.h" >&5 6526 echo "configure:6527: checking for X11/Intrinsic.h" >&5
6529 6527
6530 cat > conftest.$ac_ext <<EOF 6528 cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure" 6529 #line 6530 "configure"
6532 #include "confdefs.h" 6530 #include "confdefs.h"
6533 #include <X11/Intrinsic.h> 6531 #include <X11/Intrinsic.h>
6534 EOF 6532 EOF
6535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6536 { (eval echo configure:6537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6534 { (eval echo configure:6535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6538 if test -z "$ac_err"; then 6536 if test -z "$ac_err"; then
6539 rm -rf conftest* 6537 rm -rf conftest*
6540 eval "ac_cv_header_$ac_safe=yes" 6538 eval "ac_cv_header_$ac_safe=yes"
6541 else 6539 else
6555 fi 6553 fi
6556 6554
6557 6555
6558 6556
6559 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 6557 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6560 echo "configure:6561: checking for XOpenDisplay in -lX11" >&5 6558 echo "configure:6559: checking for XOpenDisplay in -lX11" >&5
6561 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 6559 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6562 6560
6563 xe_check_libs=" -lX11 " 6561 xe_check_libs=" -lX11 "
6564 cat > conftest.$ac_ext <<EOF 6562 cat > conftest.$ac_ext <<EOF
6565 #line 6566 "configure" 6563 #line 6564 "configure"
6566 #include "confdefs.h" 6564 #include "confdefs.h"
6567 /* Override any gcc2 internal prototype to avoid an error. */ 6565 /* Override any gcc2 internal prototype to avoid an error. */
6568 /* We use char because int might match the return type of a gcc2 6566 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */ 6567 builtin and then its argument prototype would still apply. */
6570 char XOpenDisplay(); 6568 char XOpenDisplay();
6571 6569
6572 int main() { 6570 int main() {
6573 XOpenDisplay() 6571 XOpenDisplay()
6574 ; return 0; } 6572 ; return 0; }
6575 EOF 6573 EOF
6576 if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6574 if { (eval echo configure:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6577 rm -rf conftest* 6575 rm -rf conftest*
6578 eval "ac_cv_lib_$ac_lib_var=yes" 6576 eval "ac_cv_lib_$ac_lib_var=yes"
6579 else 6577 else
6580 echo "configure: failed program was:" >&5 6578 echo "configure: failed program was:" >&5
6581 cat conftest.$ac_ext >&5 6579 cat conftest.$ac_ext >&5
6596 if test "$have_lib_x11" != "yes"; then 6594 if test "$have_lib_x11" != "yes"; then
6597 6595
6598 xe_msg_checking="for XGetFontProperty in -lX11" 6596 xe_msg_checking="for XGetFontProperty in -lX11"
6599 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 6597 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6600 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6598 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6601 echo "configure:6602: checking "$xe_msg_checking"" >&5 6599 echo "configure:6600: checking "$xe_msg_checking"" >&5
6602 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 6600 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6603 6601
6604 xe_check_libs=" -lX11 -b i486-linuxaout" 6602 xe_check_libs=" -lX11 -b i486-linuxaout"
6605 cat > conftest.$ac_ext <<EOF 6603 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure" 6604 #line 6605 "configure"
6607 #include "confdefs.h" 6605 #include "confdefs.h"
6608 /* Override any gcc2 internal prototype to avoid an error. */ 6606 /* Override any gcc2 internal prototype to avoid an error. */
6609 /* We use char because int might match the return type of a gcc2 6607 /* We use char because int might match the return type of a gcc2
6610 builtin and then its argument prototype would still apply. */ 6608 builtin and then its argument prototype would still apply. */
6611 char XGetFontProperty(); 6609 char XGetFontProperty();
6612 6610
6613 int main() { 6611 int main() {
6614 XGetFontProperty() 6612 XGetFontProperty()
6615 ; return 0; } 6613 ; return 0; }
6616 EOF 6614 EOF
6617 if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6618 rm -rf conftest* 6616 rm -rf conftest*
6619 eval "ac_cv_lib_$ac_lib_var=yes" 6617 eval "ac_cv_lib_$ac_lib_var=yes"
6620 else 6618 else
6621 echo "configure: failed program was:" >&5 6619 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5 6620 cat conftest.$ac_ext >&5
6639 libs_x="-lX11" 6637 libs_x="-lX11"
6640 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 6638 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6641 6639
6642 6640
6643 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 6641 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6644 echo "configure:6645: checking for XShapeSelectInput in -lXext" >&5 6642 echo "configure:6643: checking for XShapeSelectInput in -lXext" >&5
6645 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 6643 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6646 6644
6647 xe_check_libs=" -lXext " 6645 xe_check_libs=" -lXext "
6648 cat > conftest.$ac_ext <<EOF 6646 cat > conftest.$ac_ext <<EOF
6649 #line 6650 "configure" 6647 #line 6648 "configure"
6650 #include "confdefs.h" 6648 #include "confdefs.h"
6651 /* Override any gcc2 internal prototype to avoid an error. */ 6649 /* Override any gcc2 internal prototype to avoid an error. */
6652 /* We use char because int might match the return type of a gcc2 6650 /* We use char because int might match the return type of a gcc2
6653 builtin and then its argument prototype would still apply. */ 6651 builtin and then its argument prototype would still apply. */
6654 char XShapeSelectInput(); 6652 char XShapeSelectInput();
6655 6653
6656 int main() { 6654 int main() {
6657 XShapeSelectInput() 6655 XShapeSelectInput()
6658 ; return 0; } 6656 ; return 0; }
6659 EOF 6657 EOF
6660 if { (eval echo configure:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6658 if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661 rm -rf conftest* 6659 rm -rf conftest*
6662 eval "ac_cv_lib_$ac_lib_var=yes" 6660 eval "ac_cv_lib_$ac_lib_var=yes"
6663 else 6661 else
6664 echo "configure: failed program was:" >&5 6662 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5 6663 cat conftest.$ac_ext >&5
6678 6676
6679 6677
6680 6678
6681 6679
6682 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 6680 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6683 echo "configure:6684: checking for XtOpenDisplay in -lXt" >&5 6681 echo "configure:6682: checking for XtOpenDisplay in -lXt" >&5
6684 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 6682 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6685 6683
6686 xe_check_libs=" -lXt " 6684 xe_check_libs=" -lXt "
6687 cat > conftest.$ac_ext <<EOF 6685 cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure" 6686 #line 6687 "configure"
6689 #include "confdefs.h" 6687 #include "confdefs.h"
6690 /* Override any gcc2 internal prototype to avoid an error. */ 6688 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2 6689 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */ 6690 builtin and then its argument prototype would still apply. */
6693 char XtOpenDisplay(); 6691 char XtOpenDisplay();
6694 6692
6695 int main() { 6693 int main() {
6696 XtOpenDisplay() 6694 XtOpenDisplay()
6697 ; return 0; } 6695 ; return 0; }
6698 EOF 6696 EOF
6699 if { (eval echo configure:6700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6697 if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6700 rm -rf conftest* 6698 rm -rf conftest*
6701 eval "ac_cv_lib_$ac_lib_var=yes" 6699 eval "ac_cv_lib_$ac_lib_var=yes"
6702 else 6700 else
6703 echo "configure: failed program was:" >&5 6701 echo "configure: failed program was:" >&5
6704 cat conftest.$ac_ext >&5 6702 cat conftest.$ac_ext >&5
6717 fi 6715 fi
6718 6716
6719 6717
6720 6718
6721 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 6719 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6722 echo "configure:6723: checking the version of X11 being used" >&5 6720 echo "configure:6721: checking the version of X11 being used" >&5
6723 cat > conftest.$ac_ext <<EOF 6721 cat > conftest.$ac_ext <<EOF
6724 #line 6725 "configure" 6722 #line 6723 "configure"
6725 #include "confdefs.h" 6723 #include "confdefs.h"
6726 #include <X11/Intrinsic.h> 6724 #include <X11/Intrinsic.h>
6727 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 6725 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6728 EOF 6726 EOF
6729 if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6727 if { (eval echo configure:6728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6730 then 6728 then
6731 ./conftest foobar; x11_release=$? 6729 ./conftest foobar; x11_release=$?
6732 else 6730 else
6733 conftest_rc="$?" 6731 conftest_rc="$?"
6734 echo "configure: failed program was:" >&5 6732 echo "configure: failed program was:" >&5
6755 fi 6753 fi
6756 6754
6757 for ac_func in XConvertCase 6755 for ac_func in XConvertCase
6758 do 6756 do
6759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6760 echo "configure:6761: checking for $ac_func" >&5 6758 echo "configure:6759: checking for $ac_func" >&5
6761 6759
6762 cat > conftest.$ac_ext <<EOF 6760 cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure" 6761 #line 6762 "configure"
6764 #include "confdefs.h" 6762 #include "confdefs.h"
6765 /* System header to define __stub macros and hopefully few prototypes, 6763 /* System header to define __stub macros and hopefully few prototypes,
6766 which can conflict with char $ac_func(); below. */ 6764 which can conflict with char $ac_func(); below. */
6767 #include <assert.h> 6765 #include <assert.h>
6768 /* Override any gcc2 internal prototype to avoid an error. */ 6766 /* Override any gcc2 internal prototype to avoid an error. */
6781 $ac_func(); 6779 $ac_func();
6782 #endif 6780 #endif
6783 6781
6784 ; return 0; } 6782 ; return 0; }
6785 EOF 6783 EOF
6786 if { (eval echo configure:6787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6784 if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6787 rm -rf conftest* 6785 rm -rf conftest*
6788 eval "ac_cv_func_$ac_func=yes" 6786 eval "ac_cv_func_$ac_func=yes"
6789 else 6787 else
6790 echo "configure: failed program was:" >&5 6788 echo "configure: failed program was:" >&5
6791 cat conftest.$ac_ext >&5 6789 cat conftest.$ac_ext >&5
6813 6811
6814 for ac_hdr in X11/Xlocale.h 6812 for ac_hdr in X11/Xlocale.h
6815 do 6813 do
6816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6818 echo "configure:6819: checking for $ac_hdr" >&5 6816 echo "configure:6817: checking for $ac_hdr" >&5
6819 6817
6820 cat > conftest.$ac_ext <<EOF 6818 cat > conftest.$ac_ext <<EOF
6821 #line 6822 "configure" 6819 #line 6820 "configure"
6822 #include "confdefs.h" 6820 #include "confdefs.h"
6823 #include <$ac_hdr> 6821 #include <$ac_hdr>
6824 EOF 6822 EOF
6825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6826 { (eval echo configure:6827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6824 { (eval echo configure:6825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6828 if test -z "$ac_err"; then 6826 if test -z "$ac_err"; then
6829 rm -rf conftest* 6827 rm -rf conftest*
6830 eval "ac_cv_header_$ac_safe=yes" 6828 eval "ac_cv_header_$ac_safe=yes"
6831 else 6829 else
6854 6852
6855 6853
6856 for ac_func in XRegisterIMInstantiateCallback 6854 for ac_func in XRegisterIMInstantiateCallback
6857 do 6855 do
6858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6859 echo "configure:6860: checking for $ac_func" >&5 6857 echo "configure:6858: checking for $ac_func" >&5
6860 6858
6861 cat > conftest.$ac_ext <<EOF 6859 cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure" 6860 #line 6861 "configure"
6863 #include "confdefs.h" 6861 #include "confdefs.h"
6864 /* System header to define __stub macros and hopefully few prototypes, 6862 /* System header to define __stub macros and hopefully few prototypes,
6865 which can conflict with char $ac_func(); below. */ 6863 which can conflict with char $ac_func(); below. */
6866 #include <assert.h> 6864 #include <assert.h>
6867 /* Override any gcc2 internal prototype to avoid an error. */ 6865 /* Override any gcc2 internal prototype to avoid an error. */
6880 $ac_func(); 6878 $ac_func();
6881 #endif 6879 #endif
6882 6880
6883 ; return 0; } 6881 ; return 0; }
6884 EOF 6882 EOF
6885 if { (eval echo configure:6886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6883 if { (eval echo configure:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6886 rm -rf conftest* 6884 rm -rf conftest*
6887 eval "ac_cv_func_$ac_func=yes" 6885 eval "ac_cv_func_$ac_func=yes"
6888 else 6886 else
6889 echo "configure: failed program was:" >&5 6887 echo "configure: failed program was:" >&5
6890 cat conftest.$ac_ext >&5 6888 cat conftest.$ac_ext >&5
6908 echo "$ac_t""no" 1>&6 6906 echo "$ac_t""no" 1>&6
6909 fi 6907 fi
6910 done 6908 done
6911 6909
6912 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 6910 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6913 echo "configure:6914: checking for standard XRegisterIMInstantiateCallback prototype" >&5 6911 echo "configure:6912: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6914 cat > conftest.$ac_ext <<EOF 6912 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure" 6913 #line 6914 "configure"
6916 #include "confdefs.h" 6914 #include "confdefs.h"
6917 6915
6918 #define NeedFunctionPrototypes 1 6916 #define NeedFunctionPrototypes 1
6919 #include <X11/Xlib.h> 6917 #include <X11/Xlib.h>
6920 extern Bool XRegisterIMInstantiateCallback( 6918 extern Bool XRegisterIMInstantiateCallback(
6922 6920
6923 int main() { 6921 int main() {
6924 6922
6925 ; return 0; } 6923 ; return 0; }
6926 EOF 6924 EOF
6927 if { (eval echo configure:6928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6925 if { (eval echo configure:6926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6928 rm -rf conftest* 6926 rm -rf conftest*
6929 echo "$ac_t""yes" 1>&6 6927 echo "$ac_t""yes" 1>&6
6930 else 6928 else
6931 echo "configure: failed program was:" >&5 6929 echo "configure: failed program was:" >&5
6932 cat conftest.$ac_ext >&5 6930 cat conftest.$ac_ext >&5
6943 fi 6941 fi
6944 rm -f conftest* 6942 rm -f conftest*
6945 6943
6946 test -z "$with_xmu" && { 6944 test -z "$with_xmu" && {
6947 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 6945 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6948 echo "configure:6949: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 6946 echo "configure:6947: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6949 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 6947 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6950 6948
6951 xe_check_libs=" -lXmu " 6949 xe_check_libs=" -lXmu "
6952 cat > conftest.$ac_ext <<EOF 6950 cat > conftest.$ac_ext <<EOF
6953 #line 6954 "configure" 6951 #line 6952 "configure"
6954 #include "confdefs.h" 6952 #include "confdefs.h"
6955 /* Override any gcc2 internal prototype to avoid an error. */ 6953 /* Override any gcc2 internal prototype to avoid an error. */
6956 /* We use char because int might match the return type of a gcc2 6954 /* We use char because int might match the return type of a gcc2
6957 builtin and then its argument prototype would still apply. */ 6955 builtin and then its argument prototype would still apply. */
6958 char XmuReadBitmapDataFromFile(); 6956 char XmuReadBitmapDataFromFile();
6959 6957
6960 int main() { 6958 int main() {
6961 XmuReadBitmapDataFromFile() 6959 XmuReadBitmapDataFromFile()
6962 ; return 0; } 6960 ; return 0; }
6963 EOF 6961 EOF
6964 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6962 if { (eval echo configure:6963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6965 rm -rf conftest* 6963 rm -rf conftest*
6966 eval "ac_cv_lib_$ac_lib_var=yes" 6964 eval "ac_cv_lib_$ac_lib_var=yes"
6967 else 6965 else
6968 echo "configure: failed program was:" >&5 6966 echo "configure: failed program was:" >&5
6969 cat conftest.$ac_ext >&5 6967 cat conftest.$ac_ext >&5
6998 6996
6999 fi 6997 fi
7000 6998
7001 6999
7002 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 7000 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7003 echo "configure:7004: checking for main in -lXbsd" >&5 7001 echo "configure:7002: checking for main in -lXbsd" >&5
7004 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 7002 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7005 7003
7006 xe_check_libs=" -lXbsd " 7004 xe_check_libs=" -lXbsd "
7007 cat > conftest.$ac_ext <<EOF 7005 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure" 7006 #line 7007 "configure"
7009 #include "confdefs.h" 7007 #include "confdefs.h"
7010 7008
7011 int main() { 7009 int main() {
7012 main() 7010 main()
7013 ; return 0; } 7011 ; return 0; }
7014 EOF 7012 EOF
7015 if { (eval echo configure:7016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7013 if { (eval echo configure:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7016 rm -rf conftest* 7014 rm -rf conftest*
7017 eval "ac_cv_lib_$ac_lib_var=yes" 7015 eval "ac_cv_lib_$ac_lib_var=yes"
7018 else 7016 else
7019 echo "configure: failed program was:" >&5 7017 echo "configure: failed program was:" >&5
7020 cat conftest.$ac_ext >&5 7018 cat conftest.$ac_ext >&5
7047 fi 7045 fi
7048 7046
7049 fi 7047 fi
7050 if test "$with_msw" != "no"; then 7048 if test "$with_msw" != "no"; then
7051 echo "checking for MS-Windows" 1>&6 7049 echo "checking for MS-Windows" 1>&6
7052 echo "configure:7053: checking for MS-Windows" >&5 7050 echo "configure:7051: checking for MS-Windows" >&5
7053 7051
7054 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 7052 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7055 echo "configure:7056: checking for main in -lgdi32" >&5 7053 echo "configure:7054: checking for main in -lgdi32" >&5
7056 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 7054 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7057 7055
7058 xe_check_libs=" -lgdi32 " 7056 xe_check_libs=" -lgdi32 "
7059 cat > conftest.$ac_ext <<EOF 7057 cat > conftest.$ac_ext <<EOF
7060 #line 7061 "configure" 7058 #line 7059 "configure"
7061 #include "confdefs.h" 7059 #include "confdefs.h"
7062 7060
7063 int main() { 7061 int main() {
7064 main() 7062 main()
7065 ; return 0; } 7063 ; return 0; }
7066 EOF 7064 EOF
7067 if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7065 if { (eval echo configure:7066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7068 rm -rf conftest* 7066 rm -rf conftest*
7069 eval "ac_cv_lib_$ac_lib_var=yes" 7067 eval "ac_cv_lib_$ac_lib_var=yes"
7070 else 7068 else
7071 echo "configure: failed program was:" >&5 7069 echo "configure: failed program was:" >&5
7072 cat conftest.$ac_ext >&5 7070 cat conftest.$ac_ext >&5
7135 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 7133 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
7136 echo " xemacs will be linked with \"dialog-msw.o\"" 7134 echo " xemacs will be linked with \"dialog-msw.o\""
7137 fi 7135 fi
7138 fi 7136 fi
7139 cat > conftest.$ac_ext <<EOF 7137 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure" 7138 #line 7139 "configure"
7141 #include "confdefs.h" 7139 #include "confdefs.h"
7142 #include <fcntl.h> 7140 #include <fcntl.h>
7143 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 7141 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7144 EOF 7142 EOF
7145 if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7143 if { (eval echo configure:7144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7146 then 7144 then
7147 { test "$extra_verbose" = "yes" && cat << \EOF 7145 need_event_unixoid=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7148 Defining HAVE_MSG_SELECT 7146 Defining HAVE_MSG_SELECT
7149 EOF 7147 EOF
7150 cat >> confdefs.h <<\EOF 7148 cat >> confdefs.h <<\EOF
7151 #define HAVE_MSG_SELECT 1 7149 #define HAVE_MSG_SELECT 1
7152 EOF 7150 EOF
7204 fi 7202 fi
7205 7203
7206 if test "$with_x11" = "yes"; then 7204 if test "$with_x11" = "yes"; then
7207 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` 7205 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7208 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 7206 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7209 echo "configure:7210: checking for X11/extensions/shape.h" >&5 7207 echo "configure:7208: checking for X11/extensions/shape.h" >&5
7210 7208
7211 cat > conftest.$ac_ext <<EOF 7209 cat > conftest.$ac_ext <<EOF
7212 #line 7213 "configure" 7210 #line 7211 "configure"
7213 #include "confdefs.h" 7211 #include "confdefs.h"
7214 #include <X11/extensions/shape.h> 7212 #include <X11/extensions/shape.h>
7215 EOF 7213 EOF
7216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7217 { (eval echo configure:7218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7215 { (eval echo configure:7216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7219 if test -z "$ac_err"; then 7217 if test -z "$ac_err"; then
7220 rm -rf conftest* 7218 rm -rf conftest*
7221 eval "ac_cv_header_$ac_safe=yes" 7219 eval "ac_cv_header_$ac_safe=yes"
7222 else 7220 else
7264 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 7262 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7265 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 7263 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7266 esac 7264 esac
7267 7265
7268 echo "checking for WM_COMMAND option" 1>&6 7266 echo "checking for WM_COMMAND option" 1>&6
7269 echo "configure:7270: checking for WM_COMMAND option" >&5; 7267 echo "configure:7268: checking for WM_COMMAND option" >&5;
7270 if test "$with_wmcommand" != "no"; then 7268 if test "$with_wmcommand" != "no"; then
7271 { test "$extra_verbose" = "yes" && cat << \EOF 7269 { test "$extra_verbose" = "yes" && cat << \EOF
7272 Defining HAVE_WMCOMMAND 7270 Defining HAVE_WMCOMMAND
7273 EOF 7271 EOF
7274 cat >> confdefs.h <<\EOF 7272 cat >> confdefs.h <<\EOF
7279 fi 7277 fi
7280 7278
7281 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 7279 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7282 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 7280 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7283 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 7281 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7284 echo "configure:7285: checking for X11/Xauth.h" >&5 7282 echo "configure:7283: checking for X11/Xauth.h" >&5
7285 7283
7286 cat > conftest.$ac_ext <<EOF 7284 cat > conftest.$ac_ext <<EOF
7287 #line 7288 "configure" 7285 #line 7286 "configure"
7288 #include "confdefs.h" 7286 #include "confdefs.h"
7289 #include <X11/Xauth.h> 7287 #include <X11/Xauth.h>
7290 EOF 7288 EOF
7291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7292 { (eval echo configure:7293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7290 { (eval echo configure:7291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7294 if test -z "$ac_err"; then 7292 if test -z "$ac_err"; then
7295 rm -rf conftest* 7293 rm -rf conftest*
7296 eval "ac_cv_header_$ac_safe=yes" 7294 eval "ac_cv_header_$ac_safe=yes"
7297 else 7295 else
7310 with_xauth=no 7308 with_xauth=no
7311 fi 7309 fi
7312 } 7310 }
7313 test -z "$with_xauth" && { 7311 test -z "$with_xauth" && {
7314 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 7312 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7315 echo "configure:7316: checking for XauGetAuthByAddr in -lXau" >&5 7313 echo "configure:7314: checking for XauGetAuthByAddr in -lXau" >&5
7316 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 7314 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7317 7315
7318 xe_check_libs=" -lXau " 7316 xe_check_libs=" -lXau "
7319 cat > conftest.$ac_ext <<EOF 7317 cat > conftest.$ac_ext <<EOF
7320 #line 7321 "configure" 7318 #line 7319 "configure"
7321 #include "confdefs.h" 7319 #include "confdefs.h"
7322 /* Override any gcc2 internal prototype to avoid an error. */ 7320 /* Override any gcc2 internal prototype to avoid an error. */
7323 /* We use char because int might match the return type of a gcc2 7321 /* We use char because int might match the return type of a gcc2
7324 builtin and then its argument prototype would still apply. */ 7322 builtin and then its argument prototype would still apply. */
7325 char XauGetAuthByAddr(); 7323 char XauGetAuthByAddr();
7326 7324
7327 int main() { 7325 int main() {
7328 XauGetAuthByAddr() 7326 XauGetAuthByAddr()
7329 ; return 0; } 7327 ; return 0; }
7330 EOF 7328 EOF
7331 if { (eval echo configure:7332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7329 if { (eval echo configure:7330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7332 rm -rf conftest* 7330 rm -rf conftest*
7333 eval "ac_cv_lib_$ac_lib_var=yes" 7331 eval "ac_cv_lib_$ac_lib_var=yes"
7334 else 7332 else
7335 echo "configure: failed program was:" >&5 7333 echo "configure: failed program was:" >&5
7336 cat conftest.$ac_ext >&5 7334 cat conftest.$ac_ext >&5
7371 7369
7372 if test "$with_tooltalk" != "no" ; then 7370 if test "$with_tooltalk" != "no" ; then
7373 for dir in "" "Tt/" "desktop/" ; do 7371 for dir in "" "Tt/" "desktop/" ; do
7374 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 7372 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7375 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 7373 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7376 echo "configure:7377: checking for ${dir}tt_c.h" >&5 7374 echo "configure:7375: checking for ${dir}tt_c.h" >&5
7377 7375
7378 cat > conftest.$ac_ext <<EOF 7376 cat > conftest.$ac_ext <<EOF
7379 #line 7380 "configure" 7377 #line 7378 "configure"
7380 #include "confdefs.h" 7378 #include "confdefs.h"
7381 #include <${dir}tt_c.h> 7379 #include <${dir}tt_c.h>
7382 EOF 7380 EOF
7383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7384 { (eval echo configure:7385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7382 { (eval echo configure:7383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7386 if test -z "$ac_err"; then 7384 if test -z "$ac_err"; then
7387 rm -rf conftest* 7385 rm -rf conftest*
7388 eval "ac_cv_header_$ac_safe=yes" 7386 eval "ac_cv_header_$ac_safe=yes"
7389 else 7387 else
7415 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 7413 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7416 7414
7417 xe_msg_checking="for tt_message_create in -ltt" 7415 xe_msg_checking="for tt_message_create in -ltt"
7418 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 7416 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7419 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7417 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7420 echo "configure:7421: checking "$xe_msg_checking"" >&5 7418 echo "configure:7419: checking "$xe_msg_checking"" >&5
7421 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 7419 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7422 7420
7423 xe_check_libs=" -ltt $extra_libs" 7421 xe_check_libs=" -ltt $extra_libs"
7424 cat > conftest.$ac_ext <<EOF 7422 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure" 7423 #line 7424 "configure"
7426 #include "confdefs.h" 7424 #include "confdefs.h"
7427 /* Override any gcc2 internal prototype to avoid an error. */ 7425 /* Override any gcc2 internal prototype to avoid an error. */
7428 /* We use char because int might match the return type of a gcc2 7426 /* We use char because int might match the return type of a gcc2
7429 builtin and then its argument prototype would still apply. */ 7427 builtin and then its argument prototype would still apply. */
7430 char tt_message_create(); 7428 char tt_message_create();
7431 7429
7432 int main() { 7430 int main() {
7433 tt_message_create() 7431 tt_message_create()
7434 ; return 0; } 7432 ; return 0; }
7435 EOF 7433 EOF
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7434 if { (eval echo configure:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7437 rm -rf conftest* 7435 rm -rf conftest*
7438 eval "ac_cv_lib_$ac_lib_var=yes" 7436 eval "ac_cv_lib_$ac_lib_var=yes"
7439 else 7437 else
7440 echo "configure: failed program was:" >&5 7438 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5 7439 cat conftest.$ac_ext >&5
7488 fi 7486 fi
7489 fi 7487 fi
7490 7488
7491 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 7489 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7492 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 7490 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7493 echo "configure:7494: checking for Dt/Dt.h" >&5 7491 echo "configure:7492: checking for Dt/Dt.h" >&5
7494 7492
7495 cat > conftest.$ac_ext <<EOF 7493 cat > conftest.$ac_ext <<EOF
7496 #line 7497 "configure" 7494 #line 7495 "configure"
7497 #include "confdefs.h" 7495 #include "confdefs.h"
7498 #include <Dt/Dt.h> 7496 #include <Dt/Dt.h>
7499 EOF 7497 EOF
7500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7501 { (eval echo configure:7502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7499 { (eval echo configure:7500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7503 if test -z "$ac_err"; then 7501 if test -z "$ac_err"; then
7504 rm -rf conftest* 7502 rm -rf conftest*
7505 eval "ac_cv_header_$ac_safe=yes" 7503 eval "ac_cv_header_$ac_safe=yes"
7506 else 7504 else
7519 with_cde=no 7517 with_cde=no
7520 fi 7518 fi
7521 } 7519 }
7522 test -z "$with_cde" && { 7520 test -z "$with_cde" && {
7523 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 7521 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7524 echo "configure:7525: checking for DtDndDragStart in -lDtSvc" >&5 7522 echo "configure:7523: checking for DtDndDragStart in -lDtSvc" >&5
7525 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 7523 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7526 7524
7527 xe_check_libs=" -lDtSvc " 7525 xe_check_libs=" -lDtSvc "
7528 cat > conftest.$ac_ext <<EOF 7526 cat > conftest.$ac_ext <<EOF
7529 #line 7530 "configure" 7527 #line 7528 "configure"
7530 #include "confdefs.h" 7528 #include "confdefs.h"
7531 /* Override any gcc2 internal prototype to avoid an error. */ 7529 /* Override any gcc2 internal prototype to avoid an error. */
7532 /* We use char because int might match the return type of a gcc2 7530 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */ 7531 builtin and then its argument prototype would still apply. */
7534 char DtDndDragStart(); 7532 char DtDndDragStart();
7535 7533
7536 int main() { 7534 int main() {
7537 DtDndDragStart() 7535 DtDndDragStart()
7538 ; return 0; } 7536 ; return 0; }
7539 EOF 7537 EOF
7540 if { (eval echo configure:7541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7538 if { (eval echo configure:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7541 rm -rf conftest* 7539 rm -rf conftest*
7542 eval "ac_cv_lib_$ac_lib_var=yes" 7540 eval "ac_cv_lib_$ac_lib_var=yes"
7543 else 7541 else
7544 echo "configure: failed program was:" >&5 7542 echo "configure: failed program was:" >&5
7545 cat conftest.$ac_ext >&5 7543 cat conftest.$ac_ext >&5
7616 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi 7614 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7617 fi 7615 fi
7618 7616
7619 if test "$with_dragndrop" != "no" ; then 7617 if test "$with_dragndrop" != "no" ; then
7620 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 7618 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7621 echo "configure:7622: checking if drag and drop API is needed" >&5 7619 echo "configure:7620: checking if drag and drop API is needed" >&5
7622 if test -n "$dragndrop_proto" ; then 7620 if test -n "$dragndrop_proto" ; then
7623 with_dragndrop=yes 7621 with_dragndrop=yes
7624 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 7622 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7625 { test "$extra_verbose" = "yes" && cat << \EOF 7623 { test "$extra_verbose" = "yes" && cat << \EOF
7626 Defining HAVE_DRAGNDROP 7624 Defining HAVE_DRAGNDROP
7636 echo "$ac_t""no" 1>&6 7634 echo "$ac_t""no" 1>&6
7637 fi 7635 fi
7638 fi 7636 fi
7639 7637
7640 echo "checking for LDAP" 1>&6 7638 echo "checking for LDAP" 1>&6
7641 echo "configure:7642: checking for LDAP" >&5 7639 echo "configure:7640: checking for LDAP" >&5
7642 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 7640 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7643 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 7641 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7644 echo "configure:7645: checking for ldap.h" >&5 7642 echo "configure:7643: checking for ldap.h" >&5
7645 7643
7646 cat > conftest.$ac_ext <<EOF 7644 cat > conftest.$ac_ext <<EOF
7647 #line 7648 "configure" 7645 #line 7646 "configure"
7648 #include "confdefs.h" 7646 #include "confdefs.h"
7649 #include <ldap.h> 7647 #include <ldap.h>
7650 EOF 7648 EOF
7651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7652 { (eval echo configure:7653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7650 { (eval echo configure:7651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7654 if test -z "$ac_err"; then 7652 if test -z "$ac_err"; then
7655 rm -rf conftest* 7653 rm -rf conftest*
7656 eval "ac_cv_header_$ac_safe=yes" 7654 eval "ac_cv_header_$ac_safe=yes"
7657 else 7655 else
7670 with_ldap=no 7668 with_ldap=no
7671 fi 7669 fi
7672 } 7670 }
7673 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 7671 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7674 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 7672 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7675 echo "configure:7676: checking for lber.h" >&5 7673 echo "configure:7674: checking for lber.h" >&5
7676 7674
7677 cat > conftest.$ac_ext <<EOF 7675 cat > conftest.$ac_ext <<EOF
7678 #line 7679 "configure" 7676 #line 7677 "configure"
7679 #include "confdefs.h" 7677 #include "confdefs.h"
7680 #include <lber.h> 7678 #include <lber.h>
7681 EOF 7679 EOF
7682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7683 { (eval echo configure:7684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7681 { (eval echo configure:7682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7685 if test -z "$ac_err"; then 7683 if test -z "$ac_err"; then
7686 rm -rf conftest* 7684 rm -rf conftest*
7687 eval "ac_cv_header_$ac_safe=yes" 7685 eval "ac_cv_header_$ac_safe=yes"
7688 else 7686 else
7702 fi 7700 fi
7703 } 7701 }
7704 if test "$with_ldap" != "no"; then 7702 if test "$with_ldap" != "no"; then
7705 7703
7706 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 7704 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7707 echo "configure:7708: checking for ldap_search in -lldap" >&5 7705 echo "configure:7706: checking for ldap_search in -lldap" >&5
7708 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 7706 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7709 7707
7710 xe_check_libs=" -lldap " 7708 xe_check_libs=" -lldap "
7711 cat > conftest.$ac_ext <<EOF 7709 cat > conftest.$ac_ext <<EOF
7712 #line 7713 "configure" 7710 #line 7711 "configure"
7713 #include "confdefs.h" 7711 #include "confdefs.h"
7714 /* Override any gcc2 internal prototype to avoid an error. */ 7712 /* Override any gcc2 internal prototype to avoid an error. */
7715 /* We use char because int might match the return type of a gcc2 7713 /* We use char because int might match the return type of a gcc2
7716 builtin and then its argument prototype would still apply. */ 7714 builtin and then its argument prototype would still apply. */
7717 char ldap_search(); 7715 char ldap_search();
7718 7716
7719 int main() { 7717 int main() {
7720 ldap_search() 7718 ldap_search()
7721 ; return 0; } 7719 ; return 0; }
7722 EOF 7720 EOF
7723 if { (eval echo configure:7724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7721 if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7724 rm -rf conftest* 7722 rm -rf conftest*
7725 eval "ac_cv_lib_$ac_lib_var=yes" 7723 eval "ac_cv_lib_$ac_lib_var=yes"
7726 else 7724 else
7727 echo "configure: failed program was:" >&5 7725 echo "configure: failed program was:" >&5
7728 cat conftest.$ac_ext >&5 7726 cat conftest.$ac_ext >&5
7743 7741
7744 test "$with_ldap_nolber" = "no" && { 7742 test "$with_ldap_nolber" = "no" && {
7745 xe_msg_checking="for ldap_open in -lldap" 7743 xe_msg_checking="for ldap_open in -lldap"
7746 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 7744 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7747 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7745 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7748 echo "configure:7749: checking "$xe_msg_checking"" >&5 7746 echo "configure:7747: checking "$xe_msg_checking"" >&5
7749 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7747 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7750 7748
7751 xe_check_libs=" -lldap -llber" 7749 xe_check_libs=" -lldap -llber"
7752 cat > conftest.$ac_ext <<EOF 7750 cat > conftest.$ac_ext <<EOF
7753 #line 7754 "configure" 7751 #line 7752 "configure"
7754 #include "confdefs.h" 7752 #include "confdefs.h"
7755 /* Override any gcc2 internal prototype to avoid an error. */ 7753 /* Override any gcc2 internal prototype to avoid an error. */
7756 /* We use char because int might match the return type of a gcc2 7754 /* We use char because int might match the return type of a gcc2
7757 builtin and then its argument prototype would still apply. */ 7755 builtin and then its argument prototype would still apply. */
7758 char ldap_open(); 7756 char ldap_open();
7759 7757
7760 int main() { 7758 int main() {
7761 ldap_open() 7759 ldap_open()
7762 ; return 0; } 7760 ; return 0; }
7763 EOF 7761 EOF
7764 if { (eval echo configure:7765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7762 if { (eval echo configure:7763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7765 rm -rf conftest* 7763 rm -rf conftest*
7766 eval "ac_cv_lib_$ac_lib_var=yes" 7764 eval "ac_cv_lib_$ac_lib_var=yes"
7767 else 7765 else
7768 echo "configure: failed program was:" >&5 7766 echo "configure: failed program was:" >&5
7769 cat conftest.$ac_ext >&5 7767 cat conftest.$ac_ext >&5
7784 } 7782 }
7785 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 7783 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7786 xe_msg_checking="for ldap_open in -lldap" 7784 xe_msg_checking="for ldap_open in -lldap"
7787 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 7785 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7788 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7786 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7789 echo "configure:7790: checking "$xe_msg_checking"" >&5 7787 echo "configure:7788: checking "$xe_msg_checking"" >&5
7790 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7788 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7791 7789
7792 xe_check_libs=" -lldap -llber -lkrb" 7790 xe_check_libs=" -lldap -llber -lkrb"
7793 cat > conftest.$ac_ext <<EOF 7791 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure" 7792 #line 7793 "configure"
7795 #include "confdefs.h" 7793 #include "confdefs.h"
7796 /* Override any gcc2 internal prototype to avoid an error. */ 7794 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2 7795 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */ 7796 builtin and then its argument prototype would still apply. */
7799 char ldap_open(); 7797 char ldap_open();
7800 7798
7801 int main() { 7799 int main() {
7802 ldap_open() 7800 ldap_open()
7803 ; return 0; } 7801 ; return 0; }
7804 EOF 7802 EOF
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7803 if { (eval echo configure:7804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7806 rm -rf conftest* 7804 rm -rf conftest*
7807 eval "ac_cv_lib_$ac_lib_var=yes" 7805 eval "ac_cv_lib_$ac_lib_var=yes"
7808 else 7806 else
7809 echo "configure: failed program was:" >&5 7807 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5 7808 cat conftest.$ac_ext >&5
7825 } 7823 }
7826 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 7824 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7827 xe_msg_checking="for ldap_open in -lldap" 7825 xe_msg_checking="for ldap_open in -lldap"
7828 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 7826 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7829 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7827 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7830 echo "configure:7831: checking "$xe_msg_checking"" >&5 7828 echo "configure:7829: checking "$xe_msg_checking"" >&5
7831 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7829 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7832 7830
7833 xe_check_libs=" -lldap -llber -lkrb -ldes" 7831 xe_check_libs=" -lldap -llber -lkrb -ldes"
7834 cat > conftest.$ac_ext <<EOF 7832 cat > conftest.$ac_ext <<EOF
7835 #line 7836 "configure" 7833 #line 7834 "configure"
7836 #include "confdefs.h" 7834 #include "confdefs.h"
7837 /* Override any gcc2 internal prototype to avoid an error. */ 7835 /* Override any gcc2 internal prototype to avoid an error. */
7838 /* We use char because int might match the return type of a gcc2 7836 /* We use char because int might match the return type of a gcc2
7839 builtin and then its argument prototype would still apply. */ 7837 builtin and then its argument prototype would still apply. */
7840 char ldap_open(); 7838 char ldap_open();
7841 7839
7842 int main() { 7840 int main() {
7843 ldap_open() 7841 ldap_open()
7844 ; return 0; } 7842 ; return 0; }
7845 EOF 7843 EOF
7846 if { (eval echo configure:7847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7844 if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7847 rm -rf conftest* 7845 rm -rf conftest*
7848 eval "ac_cv_lib_$ac_lib_var=yes" 7846 eval "ac_cv_lib_$ac_lib_var=yes"
7849 else 7847 else
7850 echo "configure: failed program was:" >&5 7848 echo "configure: failed program was:" >&5
7851 cat conftest.$ac_ext >&5 7849 cat conftest.$ac_ext >&5
7892 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 7890 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7893 fi 7891 fi
7894 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 7892 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7895 do 7893 do
7896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7897 echo "configure:7898: checking for $ac_func" >&5 7895 echo "configure:7896: checking for $ac_func" >&5
7898 7896
7899 cat > conftest.$ac_ext <<EOF 7897 cat > conftest.$ac_ext <<EOF
7900 #line 7901 "configure" 7898 #line 7899 "configure"
7901 #include "confdefs.h" 7899 #include "confdefs.h"
7902 /* System header to define __stub macros and hopefully few prototypes, 7900 /* System header to define __stub macros and hopefully few prototypes,
7903 which can conflict with char $ac_func(); below. */ 7901 which can conflict with char $ac_func(); below. */
7904 #include <assert.h> 7902 #include <assert.h>
7905 /* Override any gcc2 internal prototype to avoid an error. */ 7903 /* Override any gcc2 internal prototype to avoid an error. */
7918 $ac_func(); 7916 $ac_func();
7919 #endif 7917 #endif
7920 7918
7921 ; return 0; } 7919 ; return 0; }
7922 EOF 7920 EOF
7923 if { (eval echo configure:7924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7921 if { (eval echo configure:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7924 rm -rf conftest* 7922 rm -rf conftest*
7925 eval "ac_cv_func_$ac_func=yes" 7923 eval "ac_cv_func_$ac_func=yes"
7926 else 7924 else
7927 echo "configure: failed program was:" >&5 7925 echo "configure: failed program was:" >&5
7928 cat conftest.$ac_ext >&5 7926 cat conftest.$ac_ext >&5
7949 7947
7950 fi 7948 fi
7951 7949
7952 if test "$with_postgresql" != "no"; then 7950 if test "$with_postgresql" != "no"; then
7953 echo "checking for PostgreSQL" 1>&6 7951 echo "checking for PostgreSQL" 1>&6
7954 echo "configure:7955: checking for PostgreSQL" >&5 7952 echo "configure:7953: checking for PostgreSQL" >&5
7955 7953
7956 for header_dir in "" "pgsql/" "postgresql/"; do 7954 for header_dir in "" "pgsql/" "postgresql/"; do
7957 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` 7955 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7958 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 7956 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7959 echo "configure:7960: checking for ${header_dir}libpq-fe.h" >&5 7957 echo "configure:7958: checking for ${header_dir}libpq-fe.h" >&5
7960 7958
7961 cat > conftest.$ac_ext <<EOF 7959 cat > conftest.$ac_ext <<EOF
7962 #line 7963 "configure" 7960 #line 7961 "configure"
7963 #include "confdefs.h" 7961 #include "confdefs.h"
7964 #include <${header_dir}libpq-fe.h> 7962 #include <${header_dir}libpq-fe.h>
7965 EOF 7963 EOF
7966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7967 { (eval echo configure:7968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7965 { (eval echo configure:7966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7969 if test -z "$ac_err"; then 7967 if test -z "$ac_err"; then
7970 rm -rf conftest* 7968 rm -rf conftest*
7971 eval "ac_cv_header_$ac_safe=yes" 7969 eval "ac_cv_header_$ac_safe=yes"
7972 else 7970 else
7986 7984
7987 done 7985 done
7988 7986
7989 test -n "$libpq_fe_h_file" && { 7987 test -n "$libpq_fe_h_file" && {
7990 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 7988 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7991 echo "configure:7992: checking for PQconnectdb in -lpq" >&5 7989 echo "configure:7990: checking for PQconnectdb in -lpq" >&5
7992 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` 7990 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7993 7991
7994 xe_check_libs=" -lpq " 7992 xe_check_libs=" -lpq "
7995 cat > conftest.$ac_ext <<EOF 7993 cat > conftest.$ac_ext <<EOF
7996 #line 7997 "configure" 7994 #line 7995 "configure"
7997 #include "confdefs.h" 7995 #include "confdefs.h"
7998 /* Override any gcc2 internal prototype to avoid an error. */ 7996 /* Override any gcc2 internal prototype to avoid an error. */
7999 /* We use char because int might match the return type of a gcc2 7997 /* We use char because int might match the return type of a gcc2
8000 builtin and then its argument prototype would still apply. */ 7998 builtin and then its argument prototype would still apply. */
8001 char PQconnectdb(); 7999 char PQconnectdb();
8002 8000
8003 int main() { 8001 int main() {
8004 PQconnectdb() 8002 PQconnectdb()
8005 ; return 0; } 8003 ; return 0; }
8006 EOF 8004 EOF
8007 if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8005 if { (eval echo configure:8006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8008 rm -rf conftest* 8006 rm -rf conftest*
8009 eval "ac_cv_lib_$ac_lib_var=yes" 8007 eval "ac_cv_lib_$ac_lib_var=yes"
8010 else 8008 else
8011 echo "configure: failed program was:" >&5 8009 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5 8010 cat conftest.$ac_ext >&5
8035 EOF 8033 EOF
8036 } 8034 }
8037 8035
8038 8036
8039 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 8037 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8040 echo "configure:8041: checking for PQconnectStart in -lpq" >&5 8038 echo "configure:8039: checking for PQconnectStart in -lpq" >&5
8041 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` 8039 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8042 8040
8043 xe_check_libs=" -lpq " 8041 xe_check_libs=" -lpq "
8044 cat > conftest.$ac_ext <<EOF 8042 cat > conftest.$ac_ext <<EOF
8045 #line 8046 "configure" 8043 #line 8044 "configure"
8046 #include "confdefs.h" 8044 #include "confdefs.h"
8047 /* Override any gcc2 internal prototype to avoid an error. */ 8045 /* Override any gcc2 internal prototype to avoid an error. */
8048 /* We use char because int might match the return type of a gcc2 8046 /* We use char because int might match the return type of a gcc2
8049 builtin and then its argument prototype would still apply. */ 8047 builtin and then its argument prototype would still apply. */
8050 char PQconnectStart(); 8048 char PQconnectStart();
8051 8049
8052 int main() { 8050 int main() {
8053 PQconnectStart() 8051 PQconnectStart()
8054 ; return 0; } 8052 ; return 0; }
8055 EOF 8053 EOF
8056 if { (eval echo configure:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8054 if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8057 rm -rf conftest* 8055 rm -rf conftest*
8058 eval "ac_cv_lib_$ac_lib_var=yes" 8056 eval "ac_cv_lib_$ac_lib_var=yes"
8059 else 8057 else
8060 echo "configure: failed program was:" >&5 8058 echo "configure: failed program was:" >&5
8061 cat conftest.$ac_ext >&5 8059 cat conftest.$ac_ext >&5
8099 fi 8097 fi
8100 8098
8101 8099
8102 if test "$window_system" != "none"; then 8100 if test "$window_system" != "none"; then
8103 echo "checking for graphics libraries" 1>&6 8101 echo "checking for graphics libraries" 1>&6
8104 echo "configure:8105: checking for graphics libraries" >&5 8102 echo "configure:8103: checking for graphics libraries" >&5
8105 8103
8106 xpm_problem="" 8104 xpm_problem=""
8107 if test -z "$with_xpm"; then 8105 if test -z "$with_xpm"; then
8108 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 8106 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
8109 echo "configure:8110: checking for Xpm - no older than 3.4f" >&5 8107 echo "configure:8108: checking for Xpm - no older than 3.4f" >&5
8110 xe_check_libs=-lXpm 8108 xe_check_libs=-lXpm
8111 cat > conftest.$ac_ext <<EOF 8109 cat > conftest.$ac_ext <<EOF
8112 #line 8113 "configure" 8110 #line 8111 "configure"
8113 #include "confdefs.h" 8111 #include "confdefs.h"
8114 #define XPM_NUMBERS 8112 #define XPM_NUMBERS
8115 #include <X11/xpm.h> 8113 #include <X11/xpm.h>
8116 int main(int c, char **v) { 8114 int main(int c, char **v) {
8117 return c == 1 ? 0 : 8115 return c == 1 ? 0 :
8118 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 8116 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
8119 XpmIncludeVersion < 30406 ? 2 : 0 ;} 8117 XpmIncludeVersion < 30406 ? 2 : 0 ;}
8120 EOF 8118 EOF
8121 if { (eval echo configure:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8119 if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8122 then 8120 then
8123 ./conftest dummy_arg; xpm_status=$?; 8121 ./conftest dummy_arg; xpm_status=$?;
8124 if test "$xpm_status" = "0"; then 8122 if test "$xpm_status" = "0"; then
8125 with_xpm=yes; 8123 with_xpm=yes;
8126 else 8124 else
8158 EOF 8156 EOF
8159 } 8157 }
8160 8158
8161 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 8159 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
8162 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 8160 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
8163 echo "configure:8164: checking for \"FOR_MSW\" xpm" >&5 8161 echo "configure:8162: checking for \"FOR_MSW\" xpm" >&5
8164 xe_check_libs=-lXpm 8162 xe_check_libs=-lXpm
8165 cat > conftest.$ac_ext <<EOF 8163 cat > conftest.$ac_ext <<EOF
8166 #line 8167 "configure" 8164 #line 8165 "configure"
8167 #include "confdefs.h" 8165 #include "confdefs.h"
8168 8166
8169 int main() { 8167 int main() {
8170 XpmCreatePixmapFromData() 8168 XpmCreatePixmapFromData()
8171 ; return 0; } 8169 ; return 0; }
8172 EOF 8170 EOF
8173 if { (eval echo configure:8174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8171 if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8174 rm -rf conftest* 8172 rm -rf conftest*
8175 xpm_for_msw=no 8173 xpm_for_msw=no
8176 else 8174 else
8177 echo "configure: failed program was:" >&5 8175 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5 8176 cat conftest.$ac_ext >&5
8194 fi 8192 fi
8195 fi 8193 fi
8196 8194
8197 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 8195 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8198 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 8196 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8199 echo "configure:8200: checking for compface.h" >&5 8197 echo "configure:8198: checking for compface.h" >&5
8200 8198
8201 cat > conftest.$ac_ext <<EOF 8199 cat > conftest.$ac_ext <<EOF
8202 #line 8203 "configure" 8200 #line 8201 "configure"
8203 #include "confdefs.h" 8201 #include "confdefs.h"
8204 #include <compface.h> 8202 #include <compface.h>
8205 EOF 8203 EOF
8206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8207 { (eval echo configure:8208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8205 { (eval echo configure:8206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8209 if test -z "$ac_err"; then 8207 if test -z "$ac_err"; then
8210 rm -rf conftest* 8208 rm -rf conftest*
8211 eval "ac_cv_header_$ac_safe=yes" 8209 eval "ac_cv_header_$ac_safe=yes"
8212 else 8210 else
8225 with_xface=no 8223 with_xface=no
8226 fi 8224 fi
8227 } 8225 }
8228 test -z "$with_xface" && { 8226 test -z "$with_xface" && {
8229 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 8227 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8230 echo "configure:8231: checking for UnGenFace in -lcompface" >&5 8228 echo "configure:8229: checking for UnGenFace in -lcompface" >&5
8231 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 8229 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8232 8230
8233 xe_check_libs=" -lcompface " 8231 xe_check_libs=" -lcompface "
8234 cat > conftest.$ac_ext <<EOF 8232 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure" 8233 #line 8234 "configure"
8236 #include "confdefs.h" 8234 #include "confdefs.h"
8237 /* Override any gcc2 internal prototype to avoid an error. */ 8235 /* Override any gcc2 internal prototype to avoid an error. */
8238 /* We use char because int might match the return type of a gcc2 8236 /* We use char because int might match the return type of a gcc2
8239 builtin and then its argument prototype would still apply. */ 8237 builtin and then its argument prototype would still apply. */
8240 char UnGenFace(); 8238 char UnGenFace();
8241 8239
8242 int main() { 8240 int main() {
8243 UnGenFace() 8241 UnGenFace()
8244 ; return 0; } 8242 ; return 0; }
8245 EOF 8243 EOF
8246 if { (eval echo configure:8247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8244 if { (eval echo configure:8245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8247 rm -rf conftest* 8245 rm -rf conftest*
8248 eval "ac_cv_lib_$ac_lib_var=yes" 8246 eval "ac_cv_lib_$ac_lib_var=yes"
8249 else 8247 else
8250 echo "configure: failed program was:" >&5 8248 echo "configure: failed program was:" >&5
8251 cat conftest.$ac_ext >&5 8249 cat conftest.$ac_ext >&5
8293 fi 8291 fi
8294 8292
8295 if test "$with_png $with_tiff" != "no no"; then 8293 if test "$with_png $with_tiff" != "no no"; then
8296 8294
8297 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 8295 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8298 echo "configure:8299: checking for inflate in -lc" >&5 8296 echo "configure:8297: checking for inflate in -lc" >&5
8299 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 8297 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8300 8298
8301 xe_check_libs=" -lc " 8299 xe_check_libs=" -lc "
8302 cat > conftest.$ac_ext <<EOF 8300 cat > conftest.$ac_ext <<EOF
8303 #line 8304 "configure" 8301 #line 8302 "configure"
8304 #include "confdefs.h" 8302 #include "confdefs.h"
8305 /* Override any gcc2 internal prototype to avoid an error. */ 8303 /* Override any gcc2 internal prototype to avoid an error. */
8306 /* We use char because int might match the return type of a gcc2 8304 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */ 8305 builtin and then its argument prototype would still apply. */
8308 char inflate(); 8306 char inflate();
8309 8307
8310 int main() { 8308 int main() {
8311 inflate() 8309 inflate()
8312 ; return 0; } 8310 ; return 0; }
8313 EOF 8311 EOF
8314 if { (eval echo configure:8315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8312 if { (eval echo configure:8313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8315 rm -rf conftest* 8313 rm -rf conftest*
8316 eval "ac_cv_lib_$ac_lib_var=yes" 8314 eval "ac_cv_lib_$ac_lib_var=yes"
8317 else 8315 else
8318 echo "configure: failed program was:" >&5 8316 echo "configure: failed program was:" >&5
8319 cat conftest.$ac_ext >&5 8317 cat conftest.$ac_ext >&5
8328 : 8326 :
8329 else 8327 else
8330 echo "$ac_t""no" 1>&6 8328 echo "$ac_t""no" 1>&6
8331 8329
8332 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 8330 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8333 echo "configure:8334: checking for inflate in -lz" >&5 8331 echo "configure:8332: checking for inflate in -lz" >&5
8334 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 8332 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8335 8333
8336 xe_check_libs=" -lz " 8334 xe_check_libs=" -lz "
8337 cat > conftest.$ac_ext <<EOF 8335 cat > conftest.$ac_ext <<EOF
8338 #line 8339 "configure" 8336 #line 8337 "configure"
8339 #include "confdefs.h" 8337 #include "confdefs.h"
8340 /* Override any gcc2 internal prototype to avoid an error. */ 8338 /* Override any gcc2 internal prototype to avoid an error. */
8341 /* We use char because int might match the return type of a gcc2 8339 /* We use char because int might match the return type of a gcc2
8342 builtin and then its argument prototype would still apply. */ 8340 builtin and then its argument prototype would still apply. */
8343 char inflate(); 8341 char inflate();
8344 8342
8345 int main() { 8343 int main() {
8346 inflate() 8344 inflate()
8347 ; return 0; } 8345 ; return 0; }
8348 EOF 8346 EOF
8349 if { (eval echo configure:8350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8347 if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8350 rm -rf conftest* 8348 rm -rf conftest*
8351 eval "ac_cv_lib_$ac_lib_var=yes" 8349 eval "ac_cv_lib_$ac_lib_var=yes"
8352 else 8350 else
8353 echo "configure: failed program was:" >&5 8351 echo "configure: failed program was:" >&5
8354 cat conftest.$ac_ext >&5 8352 cat conftest.$ac_ext >&5
8363 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 8361 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8364 else 8362 else
8365 echo "$ac_t""no" 1>&6 8363 echo "$ac_t""no" 1>&6
8366 8364
8367 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 8365 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8368 echo "configure:8369: checking for inflate in -lgz" >&5 8366 echo "configure:8367: checking for inflate in -lgz" >&5
8369 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 8367 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8370 8368
8371 xe_check_libs=" -lgz " 8369 xe_check_libs=" -lgz "
8372 cat > conftest.$ac_ext <<EOF 8370 cat > conftest.$ac_ext <<EOF
8373 #line 8374 "configure" 8371 #line 8372 "configure"
8374 #include "confdefs.h" 8372 #include "confdefs.h"
8375 /* Override any gcc2 internal prototype to avoid an error. */ 8373 /* Override any gcc2 internal prototype to avoid an error. */
8376 /* We use char because int might match the return type of a gcc2 8374 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */ 8375 builtin and then its argument prototype would still apply. */
8378 char inflate(); 8376 char inflate();
8379 8377
8380 int main() { 8378 int main() {
8381 inflate() 8379 inflate()
8382 ; return 0; } 8380 ; return 0; }
8383 EOF 8381 EOF
8384 if { (eval echo configure:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8382 if { (eval echo configure:8383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8385 rm -rf conftest* 8383 rm -rf conftest*
8386 eval "ac_cv_lib_$ac_lib_var=yes" 8384 eval "ac_cv_lib_$ac_lib_var=yes"
8387 else 8385 else
8388 echo "configure: failed program was:" >&5 8386 echo "configure: failed program was:" >&5
8389 cat conftest.$ac_ext >&5 8387 cat conftest.$ac_ext >&5
8409 8407
8410 fi 8408 fi
8411 8409
8412 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 8410 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8413 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 8411 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8414 echo "configure:8415: checking for jpeglib.h" >&5 8412 echo "configure:8413: checking for jpeglib.h" >&5
8415 8413
8416 cat > conftest.$ac_ext <<EOF 8414 cat > conftest.$ac_ext <<EOF
8417 #line 8418 "configure" 8415 #line 8416 "configure"
8418 #include "confdefs.h" 8416 #include "confdefs.h"
8419 #include <jpeglib.h> 8417 #include <jpeglib.h>
8420 EOF 8418 EOF
8421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8422 { (eval echo configure:8423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8420 { (eval echo configure:8421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8424 if test -z "$ac_err"; then 8422 if test -z "$ac_err"; then
8425 rm -rf conftest* 8423 rm -rf conftest*
8426 eval "ac_cv_header_$ac_safe=yes" 8424 eval "ac_cv_header_$ac_safe=yes"
8427 else 8425 else
8440 with_jpeg=no 8438 with_jpeg=no
8441 fi 8439 fi
8442 } 8440 }
8443 test -z "$with_jpeg" && { 8441 test -z "$with_jpeg" && {
8444 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 8442 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8445 echo "configure:8446: checking for jpeg_destroy_decompress in -ljpeg" >&5 8443 echo "configure:8444: checking for jpeg_destroy_decompress in -ljpeg" >&5
8446 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 8444 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8447 8445
8448 xe_check_libs=" -ljpeg " 8446 xe_check_libs=" -ljpeg "
8449 cat > conftest.$ac_ext <<EOF 8447 cat > conftest.$ac_ext <<EOF
8450 #line 8451 "configure" 8448 #line 8449 "configure"
8451 #include "confdefs.h" 8449 #include "confdefs.h"
8452 /* Override any gcc2 internal prototype to avoid an error. */ 8450 /* Override any gcc2 internal prototype to avoid an error. */
8453 /* We use char because int might match the return type of a gcc2 8451 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */ 8452 builtin and then its argument prototype would still apply. */
8455 char jpeg_destroy_decompress(); 8453 char jpeg_destroy_decompress();
8456 8454
8457 int main() { 8455 int main() {
8458 jpeg_destroy_decompress() 8456 jpeg_destroy_decompress()
8459 ; return 0; } 8457 ; return 0; }
8460 EOF 8458 EOF
8461 if { (eval echo configure:8462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8459 if { (eval echo configure:8460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8462 rm -rf conftest* 8460 rm -rf conftest*
8463 eval "ac_cv_lib_$ac_lib_var=yes" 8461 eval "ac_cv_lib_$ac_lib_var=yes"
8464 else 8462 else
8465 echo "configure: failed program was:" >&5 8463 echo "configure: failed program was:" >&5
8466 cat conftest.$ac_ext >&5 8464 cat conftest.$ac_ext >&5
8492 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 8490 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8493 fi 8491 fi
8494 8492
8495 png_problem="" 8493 png_problem=""
8496 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 8494 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8497 echo "configure:8498: checking for pow" >&5 8495 echo "configure:8496: checking for pow" >&5
8498 8496
8499 cat > conftest.$ac_ext <<EOF 8497 cat > conftest.$ac_ext <<EOF
8500 #line 8501 "configure" 8498 #line 8499 "configure"
8501 #include "confdefs.h" 8499 #include "confdefs.h"
8502 /* System header to define __stub macros and hopefully few prototypes, 8500 /* System header to define __stub macros and hopefully few prototypes,
8503 which can conflict with char pow(); below. */ 8501 which can conflict with char pow(); below. */
8504 #include <assert.h> 8502 #include <assert.h>
8505 /* Override any gcc2 internal prototype to avoid an error. */ 8503 /* Override any gcc2 internal prototype to avoid an error. */
8518 pow(); 8516 pow();
8519 #endif 8517 #endif
8520 8518
8521 ; return 0; } 8519 ; return 0; }
8522 EOF 8520 EOF
8523 if { (eval echo configure:8524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8521 if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8524 rm -rf conftest* 8522 rm -rf conftest*
8525 eval "ac_cv_func_pow=yes" 8523 eval "ac_cv_func_pow=yes"
8526 else 8524 else
8527 echo "configure: failed program was:" >&5 8525 echo "configure: failed program was:" >&5
8528 cat conftest.$ac_ext >&5 8526 cat conftest.$ac_ext >&5
8539 with_png=no 8537 with_png=no
8540 fi 8538 fi
8541 } 8539 }
8542 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 8540 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8543 echo $ac_n "checking for png.h""... $ac_c" 1>&6 8541 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8544 echo "configure:8545: checking for png.h" >&5 8542 echo "configure:8543: checking for png.h" >&5
8545 8543
8546 cat > conftest.$ac_ext <<EOF 8544 cat > conftest.$ac_ext <<EOF
8547 #line 8548 "configure" 8545 #line 8546 "configure"
8548 #include "confdefs.h" 8546 #include "confdefs.h"
8549 #include <png.h> 8547 #include <png.h>
8550 EOF 8548 EOF
8551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8552 { (eval echo configure:8553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8550 { (eval echo configure:8551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8554 if test -z "$ac_err"; then 8552 if test -z "$ac_err"; then
8555 rm -rf conftest* 8553 rm -rf conftest*
8556 eval "ac_cv_header_$ac_safe=yes" 8554 eval "ac_cv_header_$ac_safe=yes"
8557 else 8555 else
8570 with_png=no 8568 with_png=no
8571 fi 8569 fi
8572 } 8570 }
8573 test -z "$with_png" && { 8571 test -z "$with_png" && {
8574 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 8572 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8575 echo "configure:8576: checking for png_read_image in -lpng" >&5 8573 echo "configure:8574: checking for png_read_image in -lpng" >&5
8576 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 8574 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8577 8575
8578 xe_check_libs=" -lpng " 8576 xe_check_libs=" -lpng "
8579 cat > conftest.$ac_ext <<EOF 8577 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure" 8578 #line 8579 "configure"
8581 #include "confdefs.h" 8579 #include "confdefs.h"
8582 /* Override any gcc2 internal prototype to avoid an error. */ 8580 /* Override any gcc2 internal prototype to avoid an error. */
8583 /* We use char because int might match the return type of a gcc2 8581 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */ 8582 builtin and then its argument prototype would still apply. */
8585 char png_read_image(); 8583 char png_read_image();
8586 8584
8587 int main() { 8585 int main() {
8588 png_read_image() 8586 png_read_image()
8589 ; return 0; } 8587 ; return 0; }
8590 EOF 8588 EOF
8591 if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8589 if { (eval echo configure:8590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8592 rm -rf conftest* 8590 rm -rf conftest*
8593 eval "ac_cv_lib_$ac_lib_var=yes" 8591 eval "ac_cv_lib_$ac_lib_var=yes"
8594 else 8592 else
8595 echo "configure: failed program was:" >&5 8593 echo "configure: failed program was:" >&5
8596 cat conftest.$ac_ext >&5 8594 cat conftest.$ac_ext >&5
8609 fi 8607 fi
8610 8608
8611 } 8609 }
8612 if test -z "$with_png"; then 8610 if test -z "$with_png"; then
8613 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 8611 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8614 echo "configure:8615: checking for workable png version information" >&5 8612 echo "configure:8613: checking for workable png version information" >&5
8615 xe_check_libs="-lpng -lz" 8613 xe_check_libs="-lpng -lz"
8616 cat > conftest.$ac_ext <<EOF 8614 cat > conftest.$ac_ext <<EOF
8617 #line 8618 "configure" 8615 #line 8616 "configure"
8618 #include "confdefs.h" 8616 #include "confdefs.h"
8619 #include <png.h> 8617 #include <png.h>
8620 int main(int c, char **v) { 8618 int main(int c, char **v) {
8621 if (c == 1) return 0; 8619 if (c == 1) return 0;
8622 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 8620 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8623 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 8621 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8624 EOF 8622 EOF
8625 if { (eval echo configure:8626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8623 if { (eval echo configure:8624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8626 then 8624 then
8627 ./conftest dummy_arg; png_status=$?; 8625 ./conftest dummy_arg; png_status=$?;
8628 if test "$png_status" = "0"; then 8626 if test "$png_status" = "0"; then
8629 with_png=yes; 8627 with_png=yes;
8630 else 8628 else
8663 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 8661 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8664 fi 8662 fi
8665 8663
8666 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 8664 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8667 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 8665 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8668 echo "configure:8669: checking for tiffio.h" >&5 8666 echo "configure:8667: checking for tiffio.h" >&5
8669 8667
8670 cat > conftest.$ac_ext <<EOF 8668 cat > conftest.$ac_ext <<EOF
8671 #line 8672 "configure" 8669 #line 8670 "configure"
8672 #include "confdefs.h" 8670 #include "confdefs.h"
8673 #include <tiffio.h> 8671 #include <tiffio.h>
8674 EOF 8672 EOF
8675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8676 { (eval echo configure:8677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8674 { (eval echo configure:8675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8678 if test -z "$ac_err"; then 8676 if test -z "$ac_err"; then
8679 rm -rf conftest* 8677 rm -rf conftest*
8680 eval "ac_cv_header_$ac_safe=yes" 8678 eval "ac_cv_header_$ac_safe=yes"
8681 else 8679 else
8694 with_tiff=no 8692 with_tiff=no
8695 fi 8693 fi
8696 } 8694 }
8697 test -z "$with_tiff" && { 8695 test -z "$with_tiff" && {
8698 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 8696 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8699 echo "configure:8700: checking for TIFFClientOpen in -ltiff" >&5 8697 echo "configure:8698: checking for TIFFClientOpen in -ltiff" >&5
8700 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 8698 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8701 8699
8702 xe_check_libs=" -ltiff " 8700 xe_check_libs=" -ltiff "
8703 cat > conftest.$ac_ext <<EOF 8701 cat > conftest.$ac_ext <<EOF
8704 #line 8705 "configure" 8702 #line 8703 "configure"
8705 #include "confdefs.h" 8703 #include "confdefs.h"
8706 /* Override any gcc2 internal prototype to avoid an error. */ 8704 /* Override any gcc2 internal prototype to avoid an error. */
8707 /* We use char because int might match the return type of a gcc2 8705 /* We use char because int might match the return type of a gcc2
8708 builtin and then its argument prototype would still apply. */ 8706 builtin and then its argument prototype would still apply. */
8709 char TIFFClientOpen(); 8707 char TIFFClientOpen();
8710 8708
8711 int main() { 8709 int main() {
8712 TIFFClientOpen() 8710 TIFFClientOpen()
8713 ; return 0; } 8711 ; return 0; }
8714 EOF 8712 EOF
8715 if { (eval echo configure:8716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8713 if { (eval echo configure:8714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8716 rm -rf conftest* 8714 rm -rf conftest*
8717 eval "ac_cv_lib_$ac_lib_var=yes" 8715 eval "ac_cv_lib_$ac_lib_var=yes"
8718 else 8716 else
8719 echo "configure: failed program was:" >&5 8717 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5 8718 cat conftest.$ac_ext >&5
8749 8747
8750 8748
8751 if test "$with_gtk" = "yes"; then 8749 if test "$with_gtk" = "yes"; then
8752 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 8750 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8753 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 8751 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8754 echo "configure:8755: checking for compface.h" >&5 8752 echo "configure:8753: checking for compface.h" >&5
8755 8753
8756 cat > conftest.$ac_ext <<EOF 8754 cat > conftest.$ac_ext <<EOF
8757 #line 8758 "configure" 8755 #line 8756 "configure"
8758 #include "confdefs.h" 8756 #include "confdefs.h"
8759 #include <compface.h> 8757 #include <compface.h>
8760 EOF 8758 EOF
8761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8762 { (eval echo configure:8763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8760 { (eval echo configure:8761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8764 if test -z "$ac_err"; then 8762 if test -z "$ac_err"; then
8765 rm -rf conftest* 8763 rm -rf conftest*
8766 eval "ac_cv_header_$ac_safe=yes" 8764 eval "ac_cv_header_$ac_safe=yes"
8767 else 8765 else
8780 with_xface=no 8778 with_xface=no
8781 fi 8779 fi
8782 } 8780 }
8783 test -z "$with_xface" && { 8781 test -z "$with_xface" && {
8784 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 8782 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8785 echo "configure:8786: checking for UnGenFace in -lcompface" >&5 8783 echo "configure:8784: checking for UnGenFace in -lcompface" >&5
8786 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 8784 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8787 8785
8788 xe_check_libs=" -lcompface " 8786 xe_check_libs=" -lcompface "
8789 cat > conftest.$ac_ext <<EOF 8787 cat > conftest.$ac_ext <<EOF
8790 #line 8791 "configure" 8788 #line 8789 "configure"
8791 #include "confdefs.h" 8789 #include "confdefs.h"
8792 /* Override any gcc2 internal prototype to avoid an error. */ 8790 /* Override any gcc2 internal prototype to avoid an error. */
8793 /* We use char because int might match the return type of a gcc2 8791 /* We use char because int might match the return type of a gcc2
8794 builtin and then its argument prototype would still apply. */ 8792 builtin and then its argument prototype would still apply. */
8795 char UnGenFace(); 8793 char UnGenFace();
8796 8794
8797 int main() { 8795 int main() {
8798 UnGenFace() 8796 UnGenFace()
8799 ; return 0; } 8797 ; return 0; }
8800 EOF 8798 EOF
8801 if { (eval echo configure:8802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8799 if { (eval echo configure:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8802 rm -rf conftest* 8800 rm -rf conftest*
8803 eval "ac_cv_lib_$ac_lib_var=yes" 8801 eval "ac_cv_lib_$ac_lib_var=yes"
8804 else 8802 else
8805 echo "configure: failed program was:" >&5 8803 echo "configure: failed program was:" >&5
8806 cat conftest.$ac_ext >&5 8804 cat conftest.$ac_ext >&5
8836 8834
8837 8835
8838 if test "$with_x11" = "yes"; then 8836 if test "$with_x11" = "yes"; then
8839 8837
8840 echo "checking for X11 graphics libraries" 1>&6 8838 echo "checking for X11 graphics libraries" 1>&6
8841 echo "configure:8842: checking for X11 graphics libraries" >&5 8839 echo "configure:8840: checking for X11 graphics libraries" >&5
8842 8840
8843 echo "checking for the Athena widgets" 1>&6 8841 echo "checking for the Athena widgets" 1>&6
8844 echo "configure:8845: checking for the Athena widgets" >&5 8842 echo "configure:8843: checking for the Athena widgets" >&5
8845 8843
8846 case "$with_athena" in 8844 case "$with_athena" in
8847 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 8845 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8848 "3d") athena_variant=Xaw3d athena_3d=yes ;; 8846 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8849 "next") athena_variant=neXtaw athena_3d=yes ;; 8847 "next") athena_variant=neXtaw athena_3d=yes ;;
8853 esac 8851 esac
8854 8852
8855 if test "$athena_3d" = "no"; then 8853 if test "$athena_3d" = "no"; then
8856 8854
8857 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 8855 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8858 echo "configure:8859: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 8856 echo "configure:8857: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8859 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 8857 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8860 8858
8861 xe_check_libs=" -l$athena_variant " 8859 xe_check_libs=" -l$athena_variant "
8862 cat > conftest.$ac_ext <<EOF 8860 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure" 8861 #line 8862 "configure"
8864 #include "confdefs.h" 8862 #include "confdefs.h"
8865 /* Override any gcc2 internal prototype to avoid an error. */ 8863 /* Override any gcc2 internal prototype to avoid an error. */
8866 /* We use char because int might match the return type of a gcc2 8864 /* We use char because int might match the return type of a gcc2
8867 builtin and then its argument prototype would still apply. */ 8865 builtin and then its argument prototype would still apply. */
8868 char XawScrollbarSetThumb(); 8866 char XawScrollbarSetThumb();
8869 8867
8870 int main() { 8868 int main() {
8871 XawScrollbarSetThumb() 8869 XawScrollbarSetThumb()
8872 ; return 0; } 8870 ; return 0; }
8873 EOF 8871 EOF
8874 if { (eval echo configure:8875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8872 if { (eval echo configure:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8875 rm -rf conftest* 8873 rm -rf conftest*
8876 eval "ac_cv_lib_$ac_lib_var=yes" 8874 eval "ac_cv_lib_$ac_lib_var=yes"
8877 else 8875 else
8878 echo "configure: failed program was:" >&5 8876 echo "configure: failed program was:" >&5
8879 cat conftest.$ac_ext >&5 8877 cat conftest.$ac_ext >&5
8885 8883
8886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 8884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8887 echo "$ac_t""yes" 1>&6 8885 echo "$ac_t""yes" 1>&6
8888 8886
8889 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8887 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8890 echo "configure:8891: checking for threeDClassRec in -l$athena_variant" >&5 8888 echo "configure:8889: checking for threeDClassRec in -l$athena_variant" >&5
8891 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8889 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8892 8890
8893 xe_check_libs=" -l$athena_variant " 8891 xe_check_libs=" -l$athena_variant "
8894 cat > conftest.$ac_ext <<EOF 8892 cat > conftest.$ac_ext <<EOF
8895 #line 8896 "configure" 8893 #line 8894 "configure"
8896 #include "confdefs.h" 8894 #include "confdefs.h"
8897 /* Override any gcc2 internal prototype to avoid an error. */ 8895 /* Override any gcc2 internal prototype to avoid an error. */
8898 /* We use char because int might match the return type of a gcc2 8896 /* We use char because int might match the return type of a gcc2
8899 builtin and then its argument prototype would still apply. */ 8897 builtin and then its argument prototype would still apply. */
8900 char threeDClassRec(); 8898 char threeDClassRec();
8901 8899
8902 int main() { 8900 int main() {
8903 threeDClassRec() 8901 threeDClassRec()
8904 ; return 0; } 8902 ; return 0; }
8905 EOF 8903 EOF
8906 if { (eval echo configure:8907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8904 if { (eval echo configure:8905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8907 rm -rf conftest* 8905 rm -rf conftest*
8908 eval "ac_cv_lib_$ac_lib_var=yes" 8906 eval "ac_cv_lib_$ac_lib_var=yes"
8909 else 8907 else
8910 echo "configure: failed program was:" >&5 8908 echo "configure: failed program was:" >&5
8911 cat conftest.$ac_ext >&5 8909 cat conftest.$ac_ext >&5
8932 8930
8933 8931
8934 else 8932 else
8935 8933
8936 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8934 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8937 echo "configure:8938: checking for threeDClassRec in -l$athena_variant" >&5 8935 echo "configure:8936: checking for threeDClassRec in -l$athena_variant" >&5
8938 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8936 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8939 8937
8940 xe_check_libs=" -l$athena_variant " 8938 xe_check_libs=" -l$athena_variant "
8941 cat > conftest.$ac_ext <<EOF 8939 cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure" 8940 #line 8941 "configure"
8943 #include "confdefs.h" 8941 #include "confdefs.h"
8944 /* Override any gcc2 internal prototype to avoid an error. */ 8942 /* Override any gcc2 internal prototype to avoid an error. */
8945 /* We use char because int might match the return type of a gcc2 8943 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */ 8944 builtin and then its argument prototype would still apply. */
8947 char threeDClassRec(); 8945 char threeDClassRec();
8948 8946
8949 int main() { 8947 int main() {
8950 threeDClassRec() 8948 threeDClassRec()
8951 ; return 0; } 8949 ; return 0; }
8952 EOF 8950 EOF
8953 if { (eval echo configure:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8951 if { (eval echo configure:8952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8954 rm -rf conftest* 8952 rm -rf conftest*
8955 eval "ac_cv_lib_$ac_lib_var=yes" 8953 eval "ac_cv_lib_$ac_lib_var=yes"
8956 else 8954 else
8957 echo "configure: failed program was:" >&5 8955 echo "configure: failed program was:" >&5
8958 cat conftest.$ac_ext >&5 8956 cat conftest.$ac_ext >&5
8966 echo "$ac_t""yes" 1>&6 8964 echo "$ac_t""yes" 1>&6
8967 athena_lib=$athena_variant 8965 athena_lib=$athena_variant
8968 else 8966 else
8969 echo "$ac_t""no" 1>&6 8967 echo "$ac_t""no" 1>&6
8970 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 8968 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8971 echo "configure:8972: checking for threeDClassRec in -lXaw" >&5 8969 echo "configure:8970: checking for threeDClassRec in -lXaw" >&5
8972 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 8970 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8973 8971
8974 xe_check_libs=" -lXaw " 8972 xe_check_libs=" -lXaw "
8975 cat > conftest.$ac_ext <<EOF 8973 cat > conftest.$ac_ext <<EOF
8976 #line 8977 "configure" 8974 #line 8975 "configure"
8977 #include "confdefs.h" 8975 #include "confdefs.h"
8978 /* Override any gcc2 internal prototype to avoid an error. */ 8976 /* Override any gcc2 internal prototype to avoid an error. */
8979 /* We use char because int might match the return type of a gcc2 8977 /* We use char because int might match the return type of a gcc2
8980 builtin and then its argument prototype would still apply. */ 8978 builtin and then its argument prototype would still apply. */
8981 char threeDClassRec(); 8979 char threeDClassRec();
8982 8980
8983 int main() { 8981 int main() {
8984 threeDClassRec() 8982 threeDClassRec()
8985 ; return 0; } 8983 ; return 0; }
8986 EOF 8984 EOF
8987 if { (eval echo configure:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8985 if { (eval echo configure:8986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8988 rm -rf conftest* 8986 rm -rf conftest*
8989 eval "ac_cv_lib_$ac_lib_var=yes" 8987 eval "ac_cv_lib_$ac_lib_var=yes"
8990 else 8988 else
8991 echo "configure: failed program was:" >&5 8989 echo "configure: failed program was:" >&5
8992 cat conftest.$ac_ext >&5 8990 cat conftest.$ac_ext >&5
9013 fi 9011 fi
9014 9012
9015 if test "$athena_3d" = "no"; then 9013 if test "$athena_3d" = "no"; then
9016 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 9014 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9017 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 9015 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9018 echo "configure:9019: checking for X11/Xaw/ThreeD.h" >&5 9016 echo "configure:9017: checking for X11/Xaw/ThreeD.h" >&5
9019 9017
9020 cat > conftest.$ac_ext <<EOF 9018 cat > conftest.$ac_ext <<EOF
9021 #line 9022 "configure" 9019 #line 9020 "configure"
9022 #include "confdefs.h" 9020 #include "confdefs.h"
9023 #include <X11/Xaw/ThreeD.h> 9021 #include <X11/Xaw/ThreeD.h>
9024 EOF 9022 EOF
9025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9026 { (eval echo configure:9027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9024 { (eval echo configure:9025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9028 if test -z "$ac_err"; then 9026 if test -z "$ac_err"; then
9029 rm -rf conftest* 9027 rm -rf conftest*
9030 eval "ac_cv_header_$ac_safe=yes" 9028 eval "ac_cv_header_$ac_safe=yes"
9031 else 9029 else
9041 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2 9039 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
9042 else 9040 else
9043 echo "$ac_t""no" 1>&6 9041 echo "$ac_t""no" 1>&6
9044 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 9042 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9045 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 9043 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9046 echo "configure:9047: checking for X11/Xaw/XawInit.h" >&5 9044 echo "configure:9045: checking for X11/Xaw/XawInit.h" >&5
9047 9045
9048 cat > conftest.$ac_ext <<EOF 9046 cat > conftest.$ac_ext <<EOF
9049 #line 9050 "configure" 9047 #line 9048 "configure"
9050 #include "confdefs.h" 9048 #include "confdefs.h"
9051 #include <X11/Xaw/XawInit.h> 9049 #include <X11/Xaw/XawInit.h>
9052 EOF 9050 EOF
9053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9054 { (eval echo configure:9055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9052 { (eval echo configure:9053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9056 if test -z "$ac_err"; then 9054 if test -z "$ac_err"; then
9057 rm -rf conftest* 9055 rm -rf conftest*
9058 eval "ac_cv_header_$ac_safe=yes" 9056 eval "ac_cv_header_$ac_safe=yes"
9059 else 9057 else
9075 fi 9073 fi
9076 9074
9077 else 9075 else
9078 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 9076 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9079 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 9077 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9080 echo "configure:9081: checking for X11/$athena_variant/XawInit.h" >&5 9078 echo "configure:9079: checking for X11/$athena_variant/XawInit.h" >&5
9081 9079
9082 cat > conftest.$ac_ext <<EOF 9080 cat > conftest.$ac_ext <<EOF
9083 #line 9084 "configure" 9081 #line 9082 "configure"
9084 #include "confdefs.h" 9082 #include "confdefs.h"
9085 #include <X11/$athena_variant/XawInit.h> 9083 #include <X11/$athena_variant/XawInit.h>
9086 EOF 9084 EOF
9087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9088 { (eval echo configure:9089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9086 { (eval echo configure:9087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9090 if test -z "$ac_err"; then 9088 if test -z "$ac_err"; then
9091 rm -rf conftest* 9089 rm -rf conftest*
9092 eval "ac_cv_header_$ac_safe=yes" 9090 eval "ac_cv_header_$ac_safe=yes"
9093 else 9091 else
9100 rm -f conftest* 9098 rm -f conftest*
9101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9102 echo "$ac_t""yes" 1>&6 9100 echo "$ac_t""yes" 1>&6
9103 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 9101 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9104 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 9102 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
9105 echo "configure:9106: checking for X11/$athena_variant/ThreeD.h" >&5 9103 echo "configure:9104: checking for X11/$athena_variant/ThreeD.h" >&5
9106 9104
9107 cat > conftest.$ac_ext <<EOF 9105 cat > conftest.$ac_ext <<EOF
9108 #line 9109 "configure" 9106 #line 9107 "configure"
9109 #include "confdefs.h" 9107 #include "confdefs.h"
9110 #include <X11/$athena_variant/ThreeD.h> 9108 #include <X11/$athena_variant/ThreeD.h>
9111 EOF 9109 EOF
9112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9113 { (eval echo configure:9114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9111 { (eval echo configure:9112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9115 if test -z "$ac_err"; then 9113 if test -z "$ac_err"; then
9116 rm -rf conftest* 9114 rm -rf conftest*
9117 eval "ac_cv_header_$ac_safe=yes" 9115 eval "ac_cv_header_$ac_safe=yes"
9118 else 9116 else
9136 9134
9137 9135
9138 if test -z "$athena_h_path"; then 9136 if test -z "$athena_h_path"; then
9139 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 9137 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9140 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 9138 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
9141 echo "configure:9142: checking for $athena_variant/XawInit.h" >&5 9139 echo "configure:9140: checking for $athena_variant/XawInit.h" >&5
9142 9140
9143 cat > conftest.$ac_ext <<EOF 9141 cat > conftest.$ac_ext <<EOF
9144 #line 9145 "configure" 9142 #line 9143 "configure"
9145 #include "confdefs.h" 9143 #include "confdefs.h"
9146 #include <$athena_variant/XawInit.h> 9144 #include <$athena_variant/XawInit.h>
9147 EOF 9145 EOF
9148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9149 { (eval echo configure:9150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9147 { (eval echo configure:9148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9151 if test -z "$ac_err"; then 9149 if test -z "$ac_err"; then
9152 rm -rf conftest* 9150 rm -rf conftest*
9153 eval "ac_cv_header_$ac_safe=yes" 9151 eval "ac_cv_header_$ac_safe=yes"
9154 else 9152 else
9161 rm -f conftest* 9159 rm -f conftest*
9162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9163 echo "$ac_t""yes" 1>&6 9161 echo "$ac_t""yes" 1>&6
9164 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 9162 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9165 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 9163 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
9166 echo "configure:9167: checking for $athena_variant/ThreeD.h" >&5 9164 echo "configure:9165: checking for $athena_variant/ThreeD.h" >&5
9167 9165
9168 cat > conftest.$ac_ext <<EOF 9166 cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure" 9167 #line 9168 "configure"
9170 #include "confdefs.h" 9168 #include "confdefs.h"
9171 #include <$athena_variant/ThreeD.h> 9169 #include <$athena_variant/ThreeD.h>
9172 EOF 9170 EOF
9173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9174 { (eval echo configure:9175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9172 { (eval echo configure:9173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9176 if test -z "$ac_err"; then 9174 if test -z "$ac_err"; then
9177 rm -rf conftest* 9175 rm -rf conftest*
9178 eval "ac_cv_header_$ac_safe=yes" 9176 eval "ac_cv_header_$ac_safe=yes"
9179 else 9177 else
9198 fi 9196 fi
9199 9197
9200 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 9198 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9201 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 9199 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9202 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 9200 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
9203 echo "configure:9204: checking for X11/Xaw3d/XawInit.h" >&5 9201 echo "configure:9202: checking for X11/Xaw3d/XawInit.h" >&5
9204 9202
9205 cat > conftest.$ac_ext <<EOF 9203 cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure" 9204 #line 9205 "configure"
9207 #include "confdefs.h" 9205 #include "confdefs.h"
9208 #include <X11/Xaw3d/XawInit.h> 9206 #include <X11/Xaw3d/XawInit.h>
9209 EOF 9207 EOF
9210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9211 { (eval echo configure:9212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9209 { (eval echo configure:9210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9213 if test -z "$ac_err"; then 9211 if test -z "$ac_err"; then
9214 rm -rf conftest* 9212 rm -rf conftest*
9215 eval "ac_cv_header_$ac_safe=yes" 9213 eval "ac_cv_header_$ac_safe=yes"
9216 else 9214 else
9223 rm -f conftest* 9221 rm -f conftest*
9224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9225 echo "$ac_t""yes" 1>&6 9223 echo "$ac_t""yes" 1>&6
9226 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 9224 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9227 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 9225 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9228 echo "configure:9229: checking for X11/Xaw3d/ThreeD.h" >&5 9226 echo "configure:9227: checking for X11/Xaw3d/ThreeD.h" >&5
9229 9227
9230 cat > conftest.$ac_ext <<EOF 9228 cat > conftest.$ac_ext <<EOF
9231 #line 9232 "configure" 9229 #line 9230 "configure"
9232 #include "confdefs.h" 9230 #include "confdefs.h"
9233 #include <X11/Xaw3d/ThreeD.h> 9231 #include <X11/Xaw3d/ThreeD.h>
9234 EOF 9232 EOF
9235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9236 { (eval echo configure:9237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9234 { (eval echo configure:9235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9238 if test -z "$ac_err"; then 9236 if test -z "$ac_err"; then
9239 rm -rf conftest* 9237 rm -rf conftest*
9240 eval "ac_cv_header_$ac_safe=yes" 9238 eval "ac_cv_header_$ac_safe=yes"
9241 else 9239 else
9263 fi 9261 fi
9264 9262
9265 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 9263 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9266 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 9264 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9267 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 9265 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9268 echo "configure:9269: checking for Xaw3d/XawInit.h" >&5 9266 echo "configure:9267: checking for Xaw3d/XawInit.h" >&5
9269 9267
9270 cat > conftest.$ac_ext <<EOF 9268 cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure" 9269 #line 9270 "configure"
9272 #include "confdefs.h" 9270 #include "confdefs.h"
9273 #include <Xaw3d/XawInit.h> 9271 #include <Xaw3d/XawInit.h>
9274 EOF 9272 EOF
9275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9276 { (eval echo configure:9277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9274 { (eval echo configure:9275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9278 if test -z "$ac_err"; then 9276 if test -z "$ac_err"; then
9279 rm -rf conftest* 9277 rm -rf conftest*
9280 eval "ac_cv_header_$ac_safe=yes" 9278 eval "ac_cv_header_$ac_safe=yes"
9281 else 9279 else
9288 rm -f conftest* 9286 rm -f conftest*
9289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9290 echo "$ac_t""yes" 1>&6 9288 echo "$ac_t""yes" 1>&6
9291 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 9289 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9292 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 9290 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9293 echo "configure:9294: checking for Xaw3d/ThreeD.h" >&5 9291 echo "configure:9292: checking for Xaw3d/ThreeD.h" >&5
9294 9292
9295 cat > conftest.$ac_ext <<EOF 9293 cat > conftest.$ac_ext <<EOF
9296 #line 9297 "configure" 9294 #line 9295 "configure"
9297 #include "confdefs.h" 9295 #include "confdefs.h"
9298 #include <Xaw3d/ThreeD.h> 9296 #include <Xaw3d/ThreeD.h>
9299 EOF 9297 EOF
9300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9301 { (eval echo configure:9302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9299 { (eval echo configure:9300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9303 if test -z "$ac_err"; then 9301 if test -z "$ac_err"; then
9304 rm -rf conftest* 9302 rm -rf conftest*
9305 eval "ac_cv_header_$ac_safe=yes" 9303 eval "ac_cv_header_$ac_safe=yes"
9306 else 9304 else
9328 fi 9326 fi
9329 9327
9330 if test -z "$athena_h_path"; then 9328 if test -z "$athena_h_path"; then
9331 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 9329 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9332 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 9330 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9333 echo "configure:9334: checking for X11/Xaw/ThreeD.h" >&5 9331 echo "configure:9332: checking for X11/Xaw/ThreeD.h" >&5
9334 9332
9335 cat > conftest.$ac_ext <<EOF 9333 cat > conftest.$ac_ext <<EOF
9336 #line 9337 "configure" 9334 #line 9335 "configure"
9337 #include "confdefs.h" 9335 #include "confdefs.h"
9338 #include <X11/Xaw/ThreeD.h> 9336 #include <X11/Xaw/ThreeD.h>
9339 EOF 9337 EOF
9340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9341 { (eval echo configure:9342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9339 { (eval echo configure:9340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9343 if test -z "$ac_err"; then 9341 if test -z "$ac_err"; then
9344 rm -rf conftest* 9342 rm -rf conftest*
9345 eval "ac_cv_header_$ac_safe=yes" 9343 eval "ac_cv_header_$ac_safe=yes"
9346 else 9344 else
9371 have_xaw=no 9369 have_xaw=no
9372 fi 9370 fi
9373 9371
9374 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 9372 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9375 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 9373 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9376 echo "configure:9377: checking for Xm/Xm.h" >&5 9374 echo "configure:9375: checking for Xm/Xm.h" >&5
9377 9375
9378 cat > conftest.$ac_ext <<EOF 9376 cat > conftest.$ac_ext <<EOF
9379 #line 9380 "configure" 9377 #line 9378 "configure"
9380 #include "confdefs.h" 9378 #include "confdefs.h"
9381 #include <Xm/Xm.h> 9379 #include <Xm/Xm.h>
9382 EOF 9380 EOF
9383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9384 { (eval echo configure:9385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9382 { (eval echo configure:9383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9386 if test -z "$ac_err"; then 9384 if test -z "$ac_err"; then
9387 rm -rf conftest* 9385 rm -rf conftest*
9388 eval "ac_cv_header_$ac_safe=yes" 9386 eval "ac_cv_header_$ac_safe=yes"
9389 else 9387 else
9396 rm -f conftest* 9394 rm -f conftest*
9397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9398 echo "$ac_t""yes" 1>&6 9396 echo "$ac_t""yes" 1>&6
9399 9397
9400 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 9398 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9401 echo "configure:9402: checking for XmStringFree in -lXm" >&5 9399 echo "configure:9400: checking for XmStringFree in -lXm" >&5
9402 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 9400 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9403 9401
9404 xe_check_libs=" -lXm " 9402 xe_check_libs=" -lXm "
9405 cat > conftest.$ac_ext <<EOF 9403 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure" 9404 #line 9405 "configure"
9407 #include "confdefs.h" 9405 #include "confdefs.h"
9408 /* Override any gcc2 internal prototype to avoid an error. */ 9406 /* Override any gcc2 internal prototype to avoid an error. */
9409 /* We use char because int might match the return type of a gcc2 9407 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */ 9408 builtin and then its argument prototype would still apply. */
9411 char XmStringFree(); 9409 char XmStringFree();
9412 9410
9413 int main() { 9411 int main() {
9414 XmStringFree() 9412 XmStringFree()
9415 ; return 0; } 9413 ; return 0; }
9416 EOF 9414 EOF
9417 if { (eval echo configure:9418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9415 if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9418 rm -rf conftest* 9416 rm -rf conftest*
9419 eval "ac_cv_lib_$ac_lib_var=yes" 9417 eval "ac_cv_lib_$ac_lib_var=yes"
9420 else 9418 else
9421 echo "configure: failed program was:" >&5 9419 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5 9420 cat conftest.$ac_ext >&5
9441 fi 9439 fi
9442 9440
9443 9441
9444 if test "$have_motif" = "yes"; then 9442 if test "$have_motif" = "yes"; then
9445 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 9443 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9446 echo "configure:9447: checking for Lesstif" >&5 9444 echo "configure:9445: checking for Lesstif" >&5
9447 cat > conftest.$ac_ext <<EOF 9445 cat > conftest.$ac_ext <<EOF
9448 #line 9449 "configure" 9446 #line 9447 "configure"
9449 #include "confdefs.h" 9447 #include "confdefs.h"
9450 #include <Xm/Xm.h> 9448 #include <Xm/Xm.h>
9451 #ifdef LESSTIF_VERSION 9449 #ifdef LESSTIF_VERSION
9452 yes 9450 yes
9453 #endif 9451 #endif
9873 9871
9874 test -z "$with_file_coding" && with_file_coding=no 9872 test -z "$with_file_coding" && with_file_coding=no
9875 9873
9876 if test "$with_mule" = "yes" ; then 9874 if test "$with_mule" = "yes" ; then
9877 echo "checking for Mule-related features" 1>&6 9875 echo "checking for Mule-related features" 1>&6
9878 echo "configure:9879: checking for Mule-related features" >&5 9876 echo "configure:9877: checking for Mule-related features" >&5
9879 { test "$extra_verbose" = "yes" && cat << \EOF 9877 { test "$extra_verbose" = "yes" && cat << \EOF
9880 Defining MULE 9878 Defining MULE
9881 EOF 9879 EOF
9882 cat >> confdefs.h <<\EOF 9880 cat >> confdefs.h <<\EOF
9883 #define MULE 1 9881 #define MULE 1
9898 9896
9899 for ac_hdr in libintl.h 9897 for ac_hdr in libintl.h
9900 do 9898 do
9901 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 9899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9902 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 9900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9903 echo "configure:9904: checking for $ac_hdr" >&5 9901 echo "configure:9902: checking for $ac_hdr" >&5
9904 9902
9905 cat > conftest.$ac_ext <<EOF 9903 cat > conftest.$ac_ext <<EOF
9906 #line 9907 "configure" 9904 #line 9905 "configure"
9907 #include "confdefs.h" 9905 #include "confdefs.h"
9908 #include <$ac_hdr> 9906 #include <$ac_hdr>
9909 EOF 9907 EOF
9910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9911 { (eval echo configure:9912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9909 { (eval echo configure:9910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9913 if test -z "$ac_err"; then 9911 if test -z "$ac_err"; then
9914 rm -rf conftest* 9912 rm -rf conftest*
9915 eval "ac_cv_header_$ac_safe=yes" 9913 eval "ac_cv_header_$ac_safe=yes"
9916 else 9914 else
9937 fi 9935 fi
9938 done 9936 done
9939 9937
9940 9938
9941 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 9939 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9942 echo "configure:9943: checking for strerror in -lintl" >&5 9940 echo "configure:9941: checking for strerror in -lintl" >&5
9943 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 9941 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9944 9942
9945 xe_check_libs=" -lintl " 9943 xe_check_libs=" -lintl "
9946 cat > conftest.$ac_ext <<EOF 9944 cat > conftest.$ac_ext <<EOF
9947 #line 9948 "configure" 9945 #line 9946 "configure"
9948 #include "confdefs.h" 9946 #include "confdefs.h"
9949 /* Override any gcc2 internal prototype to avoid an error. */ 9947 /* Override any gcc2 internal prototype to avoid an error. */
9950 /* We use char because int might match the return type of a gcc2 9948 /* We use char because int might match the return type of a gcc2
9951 builtin and then its argument prototype would still apply. */ 9949 builtin and then its argument prototype would still apply. */
9952 char strerror(); 9950 char strerror();
9953 9951
9954 int main() { 9952 int main() {
9955 strerror() 9953 strerror()
9956 ; return 0; } 9954 ; return 0; }
9957 EOF 9955 EOF
9958 if { (eval echo configure:9959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9956 if { (eval echo configure:9957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9959 rm -rf conftest* 9957 rm -rf conftest*
9960 eval "ac_cv_lib_$ac_lib_var=yes" 9958 eval "ac_cv_lib_$ac_lib_var=yes"
9961 else 9959 else
9962 echo "configure: failed program was:" >&5 9960 echo "configure: failed program was:" >&5
9963 cat conftest.$ac_ext >&5 9961 cat conftest.$ac_ext >&5
9986 fi 9984 fi
9987 9985
9988 9986
9989 9987
9990 echo "checking for Mule input methods" 1>&6 9988 echo "checking for Mule input methods" 1>&6
9991 echo "configure:9992: checking for Mule input methods" >&5 9989 echo "configure:9990: checking for Mule input methods" >&5
9992 case "$with_xim" in "" | "yes" ) 9990 case "$with_xim" in "" | "yes" )
9993 echo "checking for XIM" 1>&6 9991 echo "checking for XIM" 1>&6
9994 echo "configure:9995: checking for XIM" >&5 9992 echo "configure:9993: checking for XIM" >&5
9995 9993
9996 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 9994 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9997 echo "configure:9998: checking for XOpenIM in -lX11" >&5 9995 echo "configure:9996: checking for XOpenIM in -lX11" >&5
9998 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 9996 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9999 9997
10000 xe_check_libs=" -lX11 " 9998 xe_check_libs=" -lX11 "
10001 cat > conftest.$ac_ext <<EOF 9999 cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure" 10000 #line 10001 "configure"
10003 #include "confdefs.h" 10001 #include "confdefs.h"
10004 /* Override any gcc2 internal prototype to avoid an error. */ 10002 /* Override any gcc2 internal prototype to avoid an error. */
10005 /* We use char because int might match the return type of a gcc2 10003 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */ 10004 builtin and then its argument prototype would still apply. */
10007 char XOpenIM(); 10005 char XOpenIM();
10008 10006
10009 int main() { 10007 int main() {
10010 XOpenIM() 10008 XOpenIM()
10011 ; return 0; } 10009 ; return 0; }
10012 EOF 10010 EOF
10013 if { (eval echo configure:10014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10011 if { (eval echo configure:10012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10014 rm -rf conftest* 10012 rm -rf conftest*
10015 eval "ac_cv_lib_$ac_lib_var=yes" 10013 eval "ac_cv_lib_$ac_lib_var=yes"
10016 else 10014 else
10017 echo "configure: failed program was:" >&5 10015 echo "configure: failed program was:" >&5
10018 cat conftest.$ac_ext >&5 10016 cat conftest.$ac_ext >&5
10032 10030
10033 10031
10034 if test "$have_motif $have_lesstif" = "yes no"; then 10032 if test "$have_motif $have_lesstif" = "yes no"; then
10035 10033
10036 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 10034 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10037 echo "configure:10038: checking for XmImMbLookupString in -lXm" >&5 10035 echo "configure:10036: checking for XmImMbLookupString in -lXm" >&5
10038 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 10036 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10039 10037
10040 xe_check_libs=" -lXm " 10038 xe_check_libs=" -lXm "
10041 cat > conftest.$ac_ext <<EOF 10039 cat > conftest.$ac_ext <<EOF
10042 #line 10043 "configure" 10040 #line 10041 "configure"
10043 #include "confdefs.h" 10041 #include "confdefs.h"
10044 /* Override any gcc2 internal prototype to avoid an error. */ 10042 /* Override any gcc2 internal prototype to avoid an error. */
10045 /* We use char because int might match the return type of a gcc2 10043 /* We use char because int might match the return type of a gcc2
10046 builtin and then its argument prototype would still apply. */ 10044 builtin and then its argument prototype would still apply. */
10047 char XmImMbLookupString(); 10045 char XmImMbLookupString();
10048 10046
10049 int main() { 10047 int main() {
10050 XmImMbLookupString() 10048 XmImMbLookupString()
10051 ; return 0; } 10049 ; return 0; }
10052 EOF 10050 EOF
10053 if { (eval echo configure:10054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10051 if { (eval echo configure:10052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10054 rm -rf conftest* 10052 rm -rf conftest*
10055 eval "ac_cv_lib_$ac_lib_var=yes" 10053 eval "ac_cv_lib_$ac_lib_var=yes"
10056 else 10054 else
10057 echo "configure: failed program was:" >&5 10055 echo "configure: failed program was:" >&5
10058 cat conftest.$ac_ext >&5 10056 cat conftest.$ac_ext >&5
10113 fi 10111 fi
10114 fi 10112 fi
10115 10113
10116 if test "$with_xfs" = "yes" ; then 10114 if test "$with_xfs" = "yes" ; then
10117 echo "checking for XFontSet" 1>&6 10115 echo "checking for XFontSet" 1>&6
10118 echo "configure:10119: checking for XFontSet" >&5 10116 echo "configure:10117: checking for XFontSet" >&5
10119 10117
10120 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 10118 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10121 echo "configure:10122: checking for XmbDrawString in -lX11" >&5 10119 echo "configure:10120: checking for XmbDrawString in -lX11" >&5
10122 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 10120 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10123 10121
10124 xe_check_libs=" -lX11 " 10122 xe_check_libs=" -lX11 "
10125 cat > conftest.$ac_ext <<EOF 10123 cat > conftest.$ac_ext <<EOF
10126 #line 10127 "configure" 10124 #line 10125 "configure"
10127 #include "confdefs.h" 10125 #include "confdefs.h"
10128 /* Override any gcc2 internal prototype to avoid an error. */ 10126 /* Override any gcc2 internal prototype to avoid an error. */
10129 /* We use char because int might match the return type of a gcc2 10127 /* We use char because int might match the return type of a gcc2
10130 builtin and then its argument prototype would still apply. */ 10128 builtin and then its argument prototype would still apply. */
10131 char XmbDrawString(); 10129 char XmbDrawString();
10132 10130
10133 int main() { 10131 int main() {
10134 XmbDrawString() 10132 XmbDrawString()
10135 ; return 0; } 10133 ; return 0; }
10136 EOF 10134 EOF
10137 if { (eval echo configure:10138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10135 if { (eval echo configure:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10138 rm -rf conftest* 10136 rm -rf conftest*
10139 eval "ac_cv_lib_$ac_lib_var=yes" 10137 eval "ac_cv_lib_$ac_lib_var=yes"
10140 else 10138 else
10141 echo "configure: failed program was:" >&5 10139 echo "configure: failed program was:" >&5
10142 cat conftest.$ac_ext >&5 10140 cat conftest.$ac_ext >&5
10172 fi 10170 fi
10173 fi 10171 fi
10174 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 10172 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10175 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 10173 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10176 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 10174 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10177 echo "configure:10178: checking for wnn/jllib.h" >&5 10175 echo "configure:10176: checking for wnn/jllib.h" >&5
10178 10176
10179 cat > conftest.$ac_ext <<EOF 10177 cat > conftest.$ac_ext <<EOF
10180 #line 10181 "configure" 10178 #line 10179 "configure"
10181 #include "confdefs.h" 10179 #include "confdefs.h"
10182 #include <wnn/jllib.h> 10180 #include <wnn/jllib.h>
10183 EOF 10181 EOF
10184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10185 { (eval echo configure:10186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10183 { (eval echo configure:10184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10187 if test -z "$ac_err"; then 10185 if test -z "$ac_err"; then
10188 rm -rf conftest* 10186 rm -rf conftest*
10189 eval "ac_cv_header_$ac_safe=yes" 10187 eval "ac_cv_header_$ac_safe=yes"
10190 else 10188 else
10203 with_wnn=no 10201 with_wnn=no
10204 fi 10202 fi
10205 } 10203 }
10206 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` 10204 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10207 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 10205 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10208 echo "configure:10209: checking for wnn/commonhd.h" >&5 10206 echo "configure:10207: checking for wnn/commonhd.h" >&5
10209 10207
10210 cat > conftest.$ac_ext <<EOF 10208 cat > conftest.$ac_ext <<EOF
10211 #line 10212 "configure" 10209 #line 10210 "configure"
10212 #include "confdefs.h" 10210 #include "confdefs.h"
10213 #include <wnn/commonhd.h> 10211 #include <wnn/commonhd.h>
10214 EOF 10212 EOF
10215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10216 { (eval echo configure:10217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10214 { (eval echo configure:10215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10218 if test -z "$ac_err"; then 10216 if test -z "$ac_err"; then
10219 rm -rf conftest* 10217 rm -rf conftest*
10220 eval "ac_cv_header_$ac_safe=yes" 10218 eval "ac_cv_header_$ac_safe=yes"
10221 else 10219 else
10236 } 10234 }
10237 if test "$with_wnn" != "no"; then 10235 if test "$with_wnn" != "no"; then
10238 for ac_func in crypt 10236 for ac_func in crypt
10239 do 10237 do
10240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10241 echo "configure:10242: checking for $ac_func" >&5 10239 echo "configure:10240: checking for $ac_func" >&5
10242 10240
10243 cat > conftest.$ac_ext <<EOF 10241 cat > conftest.$ac_ext <<EOF
10244 #line 10245 "configure" 10242 #line 10243 "configure"
10245 #include "confdefs.h" 10243 #include "confdefs.h"
10246 /* System header to define __stub macros and hopefully few prototypes, 10244 /* System header to define __stub macros and hopefully few prototypes,
10247 which can conflict with char $ac_func(); below. */ 10245 which can conflict with char $ac_func(); below. */
10248 #include <assert.h> 10246 #include <assert.h>
10249 /* Override any gcc2 internal prototype to avoid an error. */ 10247 /* Override any gcc2 internal prototype to avoid an error. */
10262 $ac_func(); 10260 $ac_func();
10263 #endif 10261 #endif
10264 10262
10265 ; return 0; } 10263 ; return 0; }
10266 EOF 10264 EOF
10267 if { (eval echo configure:10268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10265 if { (eval echo configure:10266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10268 rm -rf conftest* 10266 rm -rf conftest*
10269 eval "ac_cv_func_$ac_func=yes" 10267 eval "ac_cv_func_$ac_func=yes"
10270 else 10268 else
10271 echo "configure: failed program was:" >&5 10269 echo "configure: failed program was:" >&5
10272 cat conftest.$ac_ext >&5 10270 cat conftest.$ac_ext >&5
10291 fi 10289 fi
10292 done 10290 done
10293 10291
10294 test "$ac_cv_func_crypt" != "yes" && { 10292 test "$ac_cv_func_crypt" != "yes" && {
10295 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 10293 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10296 echo "configure:10297: checking for crypt in -lcrypt" >&5 10294 echo "configure:10295: checking for crypt in -lcrypt" >&5
10297 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 10295 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10298 10296
10299 xe_check_libs=" -lcrypt " 10297 xe_check_libs=" -lcrypt "
10300 cat > conftest.$ac_ext <<EOF 10298 cat > conftest.$ac_ext <<EOF
10301 #line 10302 "configure" 10299 #line 10300 "configure"
10302 #include "confdefs.h" 10300 #include "confdefs.h"
10303 /* Override any gcc2 internal prototype to avoid an error. */ 10301 /* Override any gcc2 internal prototype to avoid an error. */
10304 /* We use char because int might match the return type of a gcc2 10302 /* We use char because int might match the return type of a gcc2
10305 builtin and then its argument prototype would still apply. */ 10303 builtin and then its argument prototype would still apply. */
10306 char crypt(); 10304 char crypt();
10307 10305
10308 int main() { 10306 int main() {
10309 crypt() 10307 crypt()
10310 ; return 0; } 10308 ; return 0; }
10311 EOF 10309 EOF
10312 if { (eval echo configure:10313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10310 if { (eval echo configure:10311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10313 rm -rf conftest* 10311 rm -rf conftest*
10314 eval "ac_cv_lib_$ac_lib_var=yes" 10312 eval "ac_cv_lib_$ac_lib_var=yes"
10315 else 10313 else
10316 echo "configure: failed program was:" >&5 10314 echo "configure: failed program was:" >&5
10317 cat conftest.$ac_ext >&5 10315 cat conftest.$ac_ext >&5
10342 } 10340 }
10343 fi 10341 fi
10344 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 10342 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10345 10343
10346 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 10344 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10347 echo "configure:10348: checking for jl_dic_list_e in -lwnn" >&5 10345 echo "configure:10346: checking for jl_dic_list_e in -lwnn" >&5
10348 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10346 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10349 10347
10350 xe_check_libs=" -lwnn " 10348 xe_check_libs=" -lwnn "
10351 cat > conftest.$ac_ext <<EOF 10349 cat > conftest.$ac_ext <<EOF
10352 #line 10353 "configure" 10350 #line 10351 "configure"
10353 #include "confdefs.h" 10351 #include "confdefs.h"
10354 /* Override any gcc2 internal prototype to avoid an error. */ 10352 /* Override any gcc2 internal prototype to avoid an error. */
10355 /* We use char because int might match the return type of a gcc2 10353 /* We use char because int might match the return type of a gcc2
10356 builtin and then its argument prototype would still apply. */ 10354 builtin and then its argument prototype would still apply. */
10357 char jl_dic_list_e(); 10355 char jl_dic_list_e();
10358 10356
10359 int main() { 10357 int main() {
10360 jl_dic_list_e() 10358 jl_dic_list_e()
10361 ; return 0; } 10359 ; return 0; }
10362 EOF 10360 EOF
10363 if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10361 if { (eval echo configure:10362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10364 rm -rf conftest* 10362 rm -rf conftest*
10365 eval "ac_cv_lib_$ac_lib_var=yes" 10363 eval "ac_cv_lib_$ac_lib_var=yes"
10366 else 10364 else
10367 echo "configure: failed program was:" >&5 10365 echo "configure: failed program was:" >&5
10368 cat conftest.$ac_ext >&5 10366 cat conftest.$ac_ext >&5
10376 echo "$ac_t""yes" 1>&6 10374 echo "$ac_t""yes" 1>&6
10377 libwnn=wnn 10375 libwnn=wnn
10378 else 10376 else
10379 echo "$ac_t""no" 1>&6 10377 echo "$ac_t""no" 1>&6
10380 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 10378 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10381 echo "configure:10382: checking for jl_dic_list_e in -lwnn4" >&5 10379 echo "configure:10380: checking for jl_dic_list_e in -lwnn4" >&5
10382 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10380 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10383 10381
10384 xe_check_libs=" -lwnn4 " 10382 xe_check_libs=" -lwnn4 "
10385 cat > conftest.$ac_ext <<EOF 10383 cat > conftest.$ac_ext <<EOF
10386 #line 10387 "configure" 10384 #line 10385 "configure"
10387 #include "confdefs.h" 10385 #include "confdefs.h"
10388 /* Override any gcc2 internal prototype to avoid an error. */ 10386 /* Override any gcc2 internal prototype to avoid an error. */
10389 /* We use char because int might match the return type of a gcc2 10387 /* We use char because int might match the return type of a gcc2
10390 builtin and then its argument prototype would still apply. */ 10388 builtin and then its argument prototype would still apply. */
10391 char jl_dic_list_e(); 10389 char jl_dic_list_e();
10392 10390
10393 int main() { 10391 int main() {
10394 jl_dic_list_e() 10392 jl_dic_list_e()
10395 ; return 0; } 10393 ; return 0; }
10396 EOF 10394 EOF
10397 if { (eval echo configure:10398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10395 if { (eval echo configure:10396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10398 rm -rf conftest* 10396 rm -rf conftest*
10399 eval "ac_cv_lib_$ac_lib_var=yes" 10397 eval "ac_cv_lib_$ac_lib_var=yes"
10400 else 10398 else
10401 echo "configure: failed program was:" >&5 10399 echo "configure: failed program was:" >&5
10402 cat conftest.$ac_ext >&5 10400 cat conftest.$ac_ext >&5
10410 echo "$ac_t""yes" 1>&6 10408 echo "$ac_t""yes" 1>&6
10411 libwnn=wnn4 10409 libwnn=wnn4
10412 else 10410 else
10413 echo "$ac_t""no" 1>&6 10411 echo "$ac_t""no" 1>&6
10414 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 10412 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10415 echo "configure:10416: checking for jl_dic_list_e in -lwnn6" >&5 10413 echo "configure:10414: checking for jl_dic_list_e in -lwnn6" >&5
10416 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10414 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10417 10415
10418 xe_check_libs=" -lwnn6 " 10416 xe_check_libs=" -lwnn6 "
10419 cat > conftest.$ac_ext <<EOF 10417 cat > conftest.$ac_ext <<EOF
10420 #line 10421 "configure" 10418 #line 10419 "configure"
10421 #include "confdefs.h" 10419 #include "confdefs.h"
10422 /* Override any gcc2 internal prototype to avoid an error. */ 10420 /* Override any gcc2 internal prototype to avoid an error. */
10423 /* We use char because int might match the return type of a gcc2 10421 /* We use char because int might match the return type of a gcc2
10424 builtin and then its argument prototype would still apply. */ 10422 builtin and then its argument prototype would still apply. */
10425 char jl_dic_list_e(); 10423 char jl_dic_list_e();
10426 10424
10427 int main() { 10425 int main() {
10428 jl_dic_list_e() 10426 jl_dic_list_e()
10429 ; return 0; } 10427 ; return 0; }
10430 EOF 10428 EOF
10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10429 if { (eval echo configure:10430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10432 rm -rf conftest* 10430 rm -rf conftest*
10433 eval "ac_cv_lib_$ac_lib_var=yes" 10431 eval "ac_cv_lib_$ac_lib_var=yes"
10434 else 10432 else
10435 echo "configure: failed program was:" >&5 10433 echo "configure: failed program was:" >&5
10436 cat conftest.$ac_ext >&5 10434 cat conftest.$ac_ext >&5
10444 echo "$ac_t""yes" 1>&6 10442 echo "$ac_t""yes" 1>&6
10445 libwnn=wnn6 10443 libwnn=wnn6
10446 else 10444 else
10447 echo "$ac_t""no" 1>&6 10445 echo "$ac_t""no" 1>&6
10448 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 10446 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10449 echo "configure:10450: checking for dic_list_e in -lwnn6_fromsrc" >&5 10447 echo "configure:10448: checking for dic_list_e in -lwnn6_fromsrc" >&5
10450 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 10448 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10451 10449
10452 xe_check_libs=" -lwnn6_fromsrc " 10450 xe_check_libs=" -lwnn6_fromsrc "
10453 cat > conftest.$ac_ext <<EOF 10451 cat > conftest.$ac_ext <<EOF
10454 #line 10455 "configure" 10452 #line 10453 "configure"
10455 #include "confdefs.h" 10453 #include "confdefs.h"
10456 /* Override any gcc2 internal prototype to avoid an error. */ 10454 /* Override any gcc2 internal prototype to avoid an error. */
10457 /* We use char because int might match the return type of a gcc2 10455 /* We use char because int might match the return type of a gcc2
10458 builtin and then its argument prototype would still apply. */ 10456 builtin and then its argument prototype would still apply. */
10459 char dic_list_e(); 10457 char dic_list_e();
10460 10458
10461 int main() { 10459 int main() {
10462 dic_list_e() 10460 dic_list_e()
10463 ; return 0; } 10461 ; return 0; }
10464 EOF 10462 EOF
10465 if { (eval echo configure:10466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10463 if { (eval echo configure:10464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10466 rm -rf conftest* 10464 rm -rf conftest*
10467 eval "ac_cv_lib_$ac_lib_var=yes" 10465 eval "ac_cv_lib_$ac_lib_var=yes"
10468 else 10466 else
10469 echo "configure: failed program was:" >&5 10467 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5 10468 cat conftest.$ac_ext >&5
10508 echo " xemacs will be linked with \"mule-wnnfns.o\"" 10506 echo " xemacs will be linked with \"mule-wnnfns.o\""
10509 fi 10507 fi
10510 if test "$with_wnn6" != "no"; then 10508 if test "$with_wnn6" != "no"; then
10511 10509
10512 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 10510 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10513 echo "configure:10514: checking for jl_fi_dic_list in -l$libwnn" >&5 10511 echo "configure:10512: checking for jl_fi_dic_list in -l$libwnn" >&5
10514 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 10512 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10515 10513
10516 xe_check_libs=" -l$libwnn " 10514 xe_check_libs=" -l$libwnn "
10517 cat > conftest.$ac_ext <<EOF 10515 cat > conftest.$ac_ext <<EOF
10518 #line 10519 "configure" 10516 #line 10517 "configure"
10519 #include "confdefs.h" 10517 #include "confdefs.h"
10520 /* Override any gcc2 internal prototype to avoid an error. */ 10518 /* Override any gcc2 internal prototype to avoid an error. */
10521 /* We use char because int might match the return type of a gcc2 10519 /* We use char because int might match the return type of a gcc2
10522 builtin and then its argument prototype would still apply. */ 10520 builtin and then its argument prototype would still apply. */
10523 char jl_fi_dic_list(); 10521 char jl_fi_dic_list();
10524 10522
10525 int main() { 10523 int main() {
10526 jl_fi_dic_list() 10524 jl_fi_dic_list()
10527 ; return 0; } 10525 ; return 0; }
10528 EOF 10526 EOF
10529 if { (eval echo configure:10530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10527 if { (eval echo configure:10528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10530 rm -rf conftest* 10528 rm -rf conftest*
10531 eval "ac_cv_lib_$ac_lib_var=yes" 10529 eval "ac_cv_lib_$ac_lib_var=yes"
10532 else 10530 else
10533 echo "configure: failed program was:" >&5 10531 echo "configure: failed program was:" >&5
10534 cat conftest.$ac_ext >&5 10532 cat conftest.$ac_ext >&5
10559 10557
10560 canna_includes_found=no 10558 canna_includes_found=no
10561 if test "$with_canna" != "no"; then 10559 if test "$with_canna" != "no"; then
10562 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 10560 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10563 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 10561 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10564 echo "configure:10565: checking for canna/jrkanji.h" >&5 10562 echo "configure:10563: checking for canna/jrkanji.h" >&5
10565 10563
10566 cat > conftest.$ac_ext <<EOF 10564 cat > conftest.$ac_ext <<EOF
10567 #line 10568 "configure" 10565 #line 10566 "configure"
10568 #include "confdefs.h" 10566 #include "confdefs.h"
10569 #include <canna/jrkanji.h> 10567 #include <canna/jrkanji.h>
10570 EOF 10568 EOF
10571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10572 { (eval echo configure:10573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10570 { (eval echo configure:10571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10574 if test -z "$ac_err"; then 10572 if test -z "$ac_err"; then
10575 rm -rf conftest* 10573 rm -rf conftest*
10576 eval "ac_cv_header_$ac_safe=yes" 10574 eval "ac_cv_header_$ac_safe=yes"
10577 else 10575 else
10594 -d "/usr/local/canna/include"; then 10592 -d "/usr/local/canna/include"; then
10595 save_c_switch_site="$c_switch_site" 10593 save_c_switch_site="$c_switch_site"
10596 c_switch_site="$c_switch_site -I/usr/local/canna/include" 10594 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10597 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 10595 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10598 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 10596 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10599 echo "configure:10600: checking for canna/jrkanji.h" >&5 10597 echo "configure:10598: checking for canna/jrkanji.h" >&5
10600 10598
10601 cat > conftest.$ac_ext <<EOF 10599 cat > conftest.$ac_ext <<EOF
10602 #line 10603 "configure" 10600 #line 10601 "configure"
10603 #include "confdefs.h" 10601 #include "confdefs.h"
10604 #include <canna/jrkanji.h> 10602 #include <canna/jrkanji.h>
10605 EOF 10603 EOF
10606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10607 { (eval echo configure:10608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10605 { (eval echo configure:10606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10609 if test -z "$ac_err"; then 10607 if test -z "$ac_err"; then
10610 rm -rf conftest* 10608 rm -rf conftest*
10611 eval "ac_cv_header_$ac_safe=yes" 10609 eval "ac_cv_header_$ac_safe=yes"
10612 else 10610 else
10630 fi 10628 fi
10631 fi 10629 fi
10632 10630
10633 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 10631 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10634 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 10632 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10635 echo "configure:10636: checking for canna/RK.h" >&5 10633 echo "configure:10634: checking for canna/RK.h" >&5
10636 10634
10637 cat > conftest.$ac_ext <<EOF 10635 cat > conftest.$ac_ext <<EOF
10638 #line 10639 "configure" 10636 #line 10637 "configure"
10639 #include "confdefs.h" 10637 #include "confdefs.h"
10640 #include <canna/RK.h> 10638 #include <canna/RK.h>
10641 EOF 10639 EOF
10642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10643 { (eval echo configure:10644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10641 { (eval echo configure:10642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10645 if test -z "$ac_err"; then 10643 if test -z "$ac_err"; then
10646 rm -rf conftest* 10644 rm -rf conftest*
10647 eval "ac_cv_header_$ac_safe=yes" 10645 eval "ac_cv_header_$ac_safe=yes"
10648 else 10646 else
10661 with_canna=no 10659 with_canna=no
10662 fi 10660 fi
10663 } 10661 }
10664 test -z "$with_canna" && { 10662 test -z "$with_canna" && {
10665 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 10663 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10666 echo "configure:10667: checking for RkBgnBun in -lRKC" >&5 10664 echo "configure:10665: checking for RkBgnBun in -lRKC" >&5
10667 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 10665 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10668 10666
10669 xe_check_libs=" -lRKC " 10667 xe_check_libs=" -lRKC "
10670 cat > conftest.$ac_ext <<EOF 10668 cat > conftest.$ac_ext <<EOF
10671 #line 10672 "configure" 10669 #line 10670 "configure"
10672 #include "confdefs.h" 10670 #include "confdefs.h"
10673 /* Override any gcc2 internal prototype to avoid an error. */ 10671 /* Override any gcc2 internal prototype to avoid an error. */
10674 /* We use char because int might match the return type of a gcc2 10672 /* We use char because int might match the return type of a gcc2
10675 builtin and then its argument prototype would still apply. */ 10673 builtin and then its argument prototype would still apply. */
10676 char RkBgnBun(); 10674 char RkBgnBun();
10677 10675
10678 int main() { 10676 int main() {
10679 RkBgnBun() 10677 RkBgnBun()
10680 ; return 0; } 10678 ; return 0; }
10681 EOF 10679 EOF
10682 if { (eval echo configure:10683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10680 if { (eval echo configure:10681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10683 rm -rf conftest* 10681 rm -rf conftest*
10684 eval "ac_cv_lib_$ac_lib_var=yes" 10682 eval "ac_cv_lib_$ac_lib_var=yes"
10685 else 10683 else
10686 echo "configure: failed program was:" >&5 10684 echo "configure: failed program was:" >&5
10687 cat conftest.$ac_ext >&5 10685 cat conftest.$ac_ext >&5
10700 fi 10698 fi
10701 10699
10702 } 10700 }
10703 test -z "$with_canna" && { 10701 test -z "$with_canna" && {
10704 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 10702 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10705 echo "configure:10706: checking for jrKanjiControl in -lcanna" >&5 10703 echo "configure:10704: checking for jrKanjiControl in -lcanna" >&5
10706 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 10704 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10707 10705
10708 xe_check_libs=" -lcanna " 10706 xe_check_libs=" -lcanna "
10709 cat > conftest.$ac_ext <<EOF 10707 cat > conftest.$ac_ext <<EOF
10710 #line 10711 "configure" 10708 #line 10709 "configure"
10711 #include "confdefs.h" 10709 #include "confdefs.h"
10712 /* Override any gcc2 internal prototype to avoid an error. */ 10710 /* Override any gcc2 internal prototype to avoid an error. */
10713 /* We use char because int might match the return type of a gcc2 10711 /* We use char because int might match the return type of a gcc2
10714 builtin and then its argument prototype would still apply. */ 10712 builtin and then its argument prototype would still apply. */
10715 char jrKanjiControl(); 10713 char jrKanjiControl();
10716 10714
10717 int main() { 10715 int main() {
10718 jrKanjiControl() 10716 jrKanjiControl()
10719 ; return 0; } 10717 ; return 0; }
10720 EOF 10718 EOF
10721 if { (eval echo configure:10722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10719 if { (eval echo configure:10720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10722 rm -rf conftest* 10720 rm -rf conftest*
10723 eval "ac_cv_lib_$ac_lib_var=yes" 10721 eval "ac_cv_lib_$ac_lib_var=yes"
10724 else 10722 else
10725 echo "configure: failed program was:" >&5 10723 echo "configure: failed program was:" >&5
10726 cat conftest.$ac_ext >&5 10724 cat conftest.$ac_ext >&5
10765 10763
10766 if test "$need_motif" = "yes" ; then 10764 if test "$need_motif" = "yes" ; then
10767 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 10765 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10768 10766
10769 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 10767 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10770 echo "configure:10771: checking for layout_object_getvalue in -li18n" >&5 10768 echo "configure:10769: checking for layout_object_getvalue in -li18n" >&5
10771 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 10769 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10772 10770
10773 xe_check_libs=" -li18n " 10771 xe_check_libs=" -li18n "
10774 cat > conftest.$ac_ext <<EOF 10772 cat > conftest.$ac_ext <<EOF
10775 #line 10776 "configure" 10773 #line 10774 "configure"
10776 #include "confdefs.h" 10774 #include "confdefs.h"
10777 /* Override any gcc2 internal prototype to avoid an error. */ 10775 /* Override any gcc2 internal prototype to avoid an error. */
10778 /* We use char because int might match the return type of a gcc2 10776 /* We use char because int might match the return type of a gcc2
10779 builtin and then its argument prototype would still apply. */ 10777 builtin and then its argument prototype would still apply. */
10780 char layout_object_getvalue(); 10778 char layout_object_getvalue();
10781 10779
10782 int main() { 10780 int main() {
10783 layout_object_getvalue() 10781 layout_object_getvalue()
10784 ; return 0; } 10782 ; return 0; }
10785 EOF 10783 EOF
10786 if { (eval echo configure:10787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10784 if { (eval echo configure:10785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10787 rm -rf conftest* 10785 rm -rf conftest*
10788 eval "ac_cv_lib_$ac_lib_var=yes" 10786 eval "ac_cv_lib_$ac_lib_var=yes"
10789 else 10787 else
10790 echo "configure: failed program was:" >&5 10788 echo "configure: failed program was:" >&5
10791 cat conftest.$ac_ext >&5 10789 cat conftest.$ac_ext >&5
10867 fi 10865 fi
10868 10866
10869 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo 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 stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask 10867 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo 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 stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask
10870 do 10868 do
10871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10872 echo "configure:10873: checking for $ac_func" >&5 10870 echo "configure:10871: checking for $ac_func" >&5
10873 10871
10874 cat > conftest.$ac_ext <<EOF 10872 cat > conftest.$ac_ext <<EOF
10875 #line 10876 "configure" 10873 #line 10874 "configure"
10876 #include "confdefs.h" 10874 #include "confdefs.h"
10877 /* System header to define __stub macros and hopefully few prototypes, 10875 /* System header to define __stub macros and hopefully few prototypes,
10878 which can conflict with char $ac_func(); below. */ 10876 which can conflict with char $ac_func(); below. */
10879 #include <assert.h> 10877 #include <assert.h>
10880 /* Override any gcc2 internal prototype to avoid an error. */ 10878 /* Override any gcc2 internal prototype to avoid an error. */
10893 $ac_func(); 10891 $ac_func();
10894 #endif 10892 #endif
10895 10893
10896 ; return 0; } 10894 ; return 0; }
10897 EOF 10895 EOF
10898 if { (eval echo configure:10899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10896 if { (eval echo configure:10897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10899 rm -rf conftest* 10897 rm -rf conftest*
10900 eval "ac_cv_func_$ac_func=yes" 10898 eval "ac_cv_func_$ac_func=yes"
10901 else 10899 else
10902 echo "configure: failed program was:" >&5 10900 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5 10901 cat conftest.$ac_ext >&5
10925 10923
10926 10924
10927 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 10925 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10928 do 10926 do
10929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10930 echo "configure:10931: checking for $ac_func" >&5 10928 echo "configure:10929: checking for $ac_func" >&5
10931 10929
10932 cat > conftest.$ac_ext <<EOF 10930 cat > conftest.$ac_ext <<EOF
10933 #line 10934 "configure" 10931 #line 10932 "configure"
10934 #include "confdefs.h" 10932 #include "confdefs.h"
10935 /* System header to define __stub macros and hopefully few prototypes, 10933 /* System header to define __stub macros and hopefully few prototypes,
10936 which can conflict with char $ac_func(); below. */ 10934 which can conflict with char $ac_func(); below. */
10937 #include <assert.h> 10935 #include <assert.h>
10938 /* Override any gcc2 internal prototype to avoid an error. */ 10936 /* Override any gcc2 internal prototype to avoid an error. */
10951 $ac_func(); 10949 $ac_func();
10952 #endif 10950 #endif
10953 10951
10954 ; return 0; } 10952 ; return 0; }
10955 EOF 10953 EOF
10956 if { (eval echo configure:10957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10954 if { (eval echo configure:10955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10957 rm -rf conftest* 10955 rm -rf conftest*
10958 eval "ac_cv_func_$ac_func=yes" 10956 eval "ac_cv_func_$ac_func=yes"
10959 else 10957 else
10960 echo "configure: failed program was:" >&5 10958 echo "configure: failed program was:" >&5
10961 cat conftest.$ac_ext >&5 10959 cat conftest.$ac_ext >&5
10980 fi 10978 fi
10981 done 10979 done
10982 10980
10983 10981
10984 echo $ac_n "checking for openpty""... $ac_c" 1>&6 10982 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10985 echo "configure:10986: checking for openpty" >&5 10983 echo "configure:10984: checking for openpty" >&5
10986 10984
10987 cat > conftest.$ac_ext <<EOF 10985 cat > conftest.$ac_ext <<EOF
10988 #line 10989 "configure" 10986 #line 10987 "configure"
10989 #include "confdefs.h" 10987 #include "confdefs.h"
10990 /* System header to define __stub macros and hopefully few prototypes, 10988 /* System header to define __stub macros and hopefully few prototypes,
10991 which can conflict with char openpty(); below. */ 10989 which can conflict with char openpty(); below. */
10992 #include <assert.h> 10990 #include <assert.h>
10993 /* Override any gcc2 internal prototype to avoid an error. */ 10991 /* Override any gcc2 internal prototype to avoid an error. */
11006 openpty(); 11004 openpty();
11007 #endif 11005 #endif
11008 11006
11009 ; return 0; } 11007 ; return 0; }
11010 EOF 11008 EOF
11011 if { (eval echo configure:11012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11009 if { (eval echo configure:11010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11012 rm -rf conftest* 11010 rm -rf conftest*
11013 eval "ac_cv_func_openpty=yes" 11011 eval "ac_cv_func_openpty=yes"
11014 else 11012 else
11015 echo "configure: failed program was:" >&5 11013 echo "configure: failed program was:" >&5
11016 cat conftest.$ac_ext >&5 11014 cat conftest.$ac_ext >&5
11025 else 11023 else
11026 echo "$ac_t""no" 1>&6 11024 echo "$ac_t""no" 1>&6
11027 11025
11028 11026
11029 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 11027 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11030 echo "configure:11031: checking for openpty in -lutil" >&5 11028 echo "configure:11029: checking for openpty in -lutil" >&5
11031 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 11029 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11032 11030
11033 xe_check_libs=" -lutil " 11031 xe_check_libs=" -lutil "
11034 cat > conftest.$ac_ext <<EOF 11032 cat > conftest.$ac_ext <<EOF
11035 #line 11036 "configure" 11033 #line 11034 "configure"
11036 #include "confdefs.h" 11034 #include "confdefs.h"
11037 /* Override any gcc2 internal prototype to avoid an error. */ 11035 /* Override any gcc2 internal prototype to avoid an error. */
11038 /* We use char because int might match the return type of a gcc2 11036 /* We use char because int might match the return type of a gcc2
11039 builtin and then its argument prototype would still apply. */ 11037 builtin and then its argument prototype would still apply. */
11040 char openpty(); 11038 char openpty();
11041 11039
11042 int main() { 11040 int main() {
11043 openpty() 11041 openpty()
11044 ; return 0; } 11042 ; return 0; }
11045 EOF 11043 EOF
11046 if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11044 if { (eval echo configure:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11047 rm -rf conftest* 11045 rm -rf conftest*
11048 eval "ac_cv_lib_$ac_lib_var=yes" 11046 eval "ac_cv_lib_$ac_lib_var=yes"
11049 else 11047 else
11050 echo "configure: failed program was:" >&5 11048 echo "configure: failed program was:" >&5
11051 cat conftest.$ac_ext >&5 11049 cat conftest.$ac_ext >&5
11076 11074
11077 for ac_hdr in libutil.h util.h 11075 for ac_hdr in libutil.h util.h
11078 do 11076 do
11079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11081 echo "configure:11082: checking for $ac_hdr" >&5 11079 echo "configure:11080: checking for $ac_hdr" >&5
11082 11080
11083 cat > conftest.$ac_ext <<EOF 11081 cat > conftest.$ac_ext <<EOF
11084 #line 11085 "configure" 11082 #line 11083 "configure"
11085 #include "confdefs.h" 11083 #include "confdefs.h"
11086 #include <$ac_hdr> 11084 #include <$ac_hdr>
11087 EOF 11085 EOF
11088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11089 { (eval echo configure:11090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11087 { (eval echo configure:11088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11091 if test -z "$ac_err"; then 11089 if test -z "$ac_err"; then
11092 rm -rf conftest* 11090 rm -rf conftest*
11093 eval "ac_cv_header_$ac_safe=yes" 11091 eval "ac_cv_header_$ac_safe=yes"
11094 else 11092 else
11121 case "$opsys" in 11119 case "$opsys" in
11122 hpux*) for ac_hdr in sys/ptyio.h 11120 hpux*) for ac_hdr in sys/ptyio.h
11123 do 11121 do
11124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11122 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11126 echo "configure:11127: checking for $ac_hdr" >&5 11124 echo "configure:11125: checking for $ac_hdr" >&5
11127 11125
11128 cat > conftest.$ac_ext <<EOF 11126 cat > conftest.$ac_ext <<EOF
11129 #line 11130 "configure" 11127 #line 11128 "configure"
11130 #include "confdefs.h" 11128 #include "confdefs.h"
11131 #include <$ac_hdr> 11129 #include <$ac_hdr>
11132 EOF 11130 EOF
11133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11134 { (eval echo configure:11135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11132 { (eval echo configure:11133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11136 if test -z "$ac_err"; then 11134 if test -z "$ac_err"; then
11137 rm -rf conftest* 11135 rm -rf conftest*
11138 eval "ac_cv_header_$ac_safe=yes" 11136 eval "ac_cv_header_$ac_safe=yes"
11139 else 11137 else
11162 ;; 11160 ;;
11163 *) for ac_hdr in pty.h 11161 *) for ac_hdr in pty.h
11164 do 11162 do
11165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11163 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11164 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11167 echo "configure:11168: checking for $ac_hdr" >&5 11165 echo "configure:11166: checking for $ac_hdr" >&5
11168 11166
11169 cat > conftest.$ac_ext <<EOF 11167 cat > conftest.$ac_ext <<EOF
11170 #line 11171 "configure" 11168 #line 11169 "configure"
11171 #include "confdefs.h" 11169 #include "confdefs.h"
11172 #include <$ac_hdr> 11170 #include <$ac_hdr>
11173 EOF 11171 EOF
11174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11175 { (eval echo configure:11176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11173 { (eval echo configure:11174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11177 if test -z "$ac_err"; then 11175 if test -z "$ac_err"; then
11178 rm -rf conftest* 11176 rm -rf conftest*
11179 eval "ac_cv_header_$ac_safe=yes" 11177 eval "ac_cv_header_$ac_safe=yes"
11180 else 11178 else
11203 11201
11204 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h 11202 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
11205 do 11203 do
11206 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11207 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11208 echo "configure:11209: checking for $ac_hdr" >&5 11206 echo "configure:11207: checking for $ac_hdr" >&5
11209 11207
11210 cat > conftest.$ac_ext <<EOF 11208 cat > conftest.$ac_ext <<EOF
11211 #line 11212 "configure" 11209 #line 11210 "configure"
11212 #include "confdefs.h" 11210 #include "confdefs.h"
11213 #include <$ac_hdr> 11211 #include <$ac_hdr>
11214 EOF 11212 EOF
11215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11216 { (eval echo configure:11217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11214 { (eval echo configure:11215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11218 if test -z "$ac_err"; then 11216 if test -z "$ac_err"; then
11219 rm -rf conftest* 11217 rm -rf conftest*
11220 eval "ac_cv_header_$ac_safe=yes" 11218 eval "ac_cv_header_$ac_safe=yes"
11221 else 11219 else
11247 11245
11248 for ac_hdr in stropts.h 11246 for ac_hdr in stropts.h
11249 do 11247 do
11250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11252 echo "configure:11253: checking for $ac_hdr" >&5 11250 echo "configure:11251: checking for $ac_hdr" >&5
11253 11251
11254 cat > conftest.$ac_ext <<EOF 11252 cat > conftest.$ac_ext <<EOF
11255 #line 11256 "configure" 11253 #line 11254 "configure"
11256 #include "confdefs.h" 11254 #include "confdefs.h"
11257 #include <$ac_hdr> 11255 #include <$ac_hdr>
11258 EOF 11256 EOF
11259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11260 { (eval echo configure:11261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11258 { (eval echo configure:11259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11262 if test -z "$ac_err"; then 11260 if test -z "$ac_err"; then
11263 rm -rf conftest* 11261 rm -rf conftest*
11264 eval "ac_cv_header_$ac_safe=yes" 11262 eval "ac_cv_header_$ac_safe=yes"
11265 else 11263 else
11288 11286
11289 if test "$ac_cv_header_stropts_h" = "yes"; then 11287 if test "$ac_cv_header_stropts_h" = "yes"; then
11290 for ac_func in isastream 11288 for ac_func in isastream
11291 do 11289 do
11292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11293 echo "configure:11294: checking for $ac_func" >&5 11291 echo "configure:11292: checking for $ac_func" >&5
11294 11292
11295 cat > conftest.$ac_ext <<EOF 11293 cat > conftest.$ac_ext <<EOF
11296 #line 11297 "configure" 11294 #line 11295 "configure"
11297 #include "confdefs.h" 11295 #include "confdefs.h"
11298 /* System header to define __stub macros and hopefully few prototypes, 11296 /* System header to define __stub macros and hopefully few prototypes,
11299 which can conflict with char $ac_func(); below. */ 11297 which can conflict with char $ac_func(); below. */
11300 #include <assert.h> 11298 #include <assert.h>
11301 /* Override any gcc2 internal prototype to avoid an error. */ 11299 /* Override any gcc2 internal prototype to avoid an error. */
11314 $ac_func(); 11312 $ac_func();
11315 #endif 11313 #endif
11316 11314
11317 ; return 0; } 11315 ; return 0; }
11318 EOF 11316 EOF
11319 if { (eval echo configure:11320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11317 if { (eval echo configure:11318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11320 rm -rf conftest* 11318 rm -rf conftest*
11321 eval "ac_cv_func_$ac_func=yes" 11319 eval "ac_cv_func_$ac_func=yes"
11322 else 11320 else
11323 echo "configure: failed program was:" >&5 11321 echo "configure: failed program was:" >&5
11324 cat conftest.$ac_ext >&5 11322 cat conftest.$ac_ext >&5
11345 11343
11346 for ac_hdr in strtio.h 11344 for ac_hdr in strtio.h
11347 do 11345 do
11348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11350 echo "configure:11351: checking for $ac_hdr" >&5 11348 echo "configure:11349: checking for $ac_hdr" >&5
11351 11349
11352 cat > conftest.$ac_ext <<EOF 11350 cat > conftest.$ac_ext <<EOF
11353 #line 11354 "configure" 11351 #line 11352 "configure"
11354 #include "confdefs.h" 11352 #include "confdefs.h"
11355 #include <$ac_hdr> 11353 #include <$ac_hdr>
11356 EOF 11354 EOF
11357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11358 { (eval echo configure:11359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11356 { (eval echo configure:11357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11360 if test -z "$ac_err"; then 11358 if test -z "$ac_err"; then
11361 rm -rf conftest* 11359 rm -rf conftest*
11362 eval "ac_cv_header_$ac_safe=yes" 11360 eval "ac_cv_header_$ac_safe=yes"
11363 else 11361 else
11390 fi 11388 fi
11391 11389
11392 for ac_func in getloadavg 11390 for ac_func in getloadavg
11393 do 11391 do
11394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11395 echo "configure:11396: checking for $ac_func" >&5 11393 echo "configure:11394: checking for $ac_func" >&5
11396 11394
11397 cat > conftest.$ac_ext <<EOF 11395 cat > conftest.$ac_ext <<EOF
11398 #line 11399 "configure" 11396 #line 11397 "configure"
11399 #include "confdefs.h" 11397 #include "confdefs.h"
11400 /* System header to define __stub macros and hopefully few prototypes, 11398 /* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func(); below. */ 11399 which can conflict with char $ac_func(); below. */
11402 #include <assert.h> 11400 #include <assert.h>
11403 /* Override any gcc2 internal prototype to avoid an error. */ 11401 /* Override any gcc2 internal prototype to avoid an error. */
11416 $ac_func(); 11414 $ac_func();
11417 #endif 11415 #endif
11418 11416
11419 ; return 0; } 11417 ; return 0; }
11420 EOF 11418 EOF
11421 if { (eval echo configure:11422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11419 if { (eval echo configure:11420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11422 rm -rf conftest* 11420 rm -rf conftest*
11423 eval "ac_cv_func_$ac_func=yes" 11421 eval "ac_cv_func_$ac_func=yes"
11424 else 11422 else
11425 echo "configure: failed program was:" >&5 11423 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5 11424 cat conftest.$ac_ext >&5
11449 if test "$ac_cv_func_getloadavg" = "yes"; then 11447 if test "$ac_cv_func_getloadavg" = "yes"; then
11450 for ac_hdr in sys/loadavg.h 11448 for ac_hdr in sys/loadavg.h
11451 do 11449 do
11452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11454 echo "configure:11455: checking for $ac_hdr" >&5 11452 echo "configure:11453: checking for $ac_hdr" >&5
11455 11453
11456 cat > conftest.$ac_ext <<EOF 11454 cat > conftest.$ac_ext <<EOF
11457 #line 11458 "configure" 11455 #line 11456 "configure"
11458 #include "confdefs.h" 11456 #include "confdefs.h"
11459 #include <$ac_hdr> 11457 #include <$ac_hdr>
11460 EOF 11458 EOF
11461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11462 { (eval echo configure:11463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11460 { (eval echo configure:11461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11464 if test -z "$ac_err"; then 11462 if test -z "$ac_err"; then
11465 rm -rf conftest* 11463 rm -rf conftest*
11466 eval "ac_cv_header_$ac_safe=yes" 11464 eval "ac_cv_header_$ac_safe=yes"
11467 else 11465 else
11493 echo " xemacs will be linked with \"getloadavg.o\"" 11491 echo " xemacs will be linked with \"getloadavg.o\""
11494 fi 11492 fi
11495 11493
11496 11494
11497 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 11495 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11498 echo "configure:11499: checking for kstat_open in -lkstat" >&5 11496 echo "configure:11497: checking for kstat_open in -lkstat" >&5
11499 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 11497 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11500 11498
11501 xe_check_libs=" -lkstat " 11499 xe_check_libs=" -lkstat "
11502 cat > conftest.$ac_ext <<EOF 11500 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure" 11501 #line 11502 "configure"
11504 #include "confdefs.h" 11502 #include "confdefs.h"
11505 /* Override any gcc2 internal prototype to avoid an error. */ 11503 /* Override any gcc2 internal prototype to avoid an error. */
11506 /* We use char because int might match the return type of a gcc2 11504 /* We use char because int might match the return type of a gcc2
11507 builtin and then its argument prototype would still apply. */ 11505 builtin and then its argument prototype would still apply. */
11508 char kstat_open(); 11506 char kstat_open();
11509 11507
11510 int main() { 11508 int main() {
11511 kstat_open() 11509 kstat_open()
11512 ; return 0; } 11510 ; return 0; }
11513 EOF 11511 EOF
11514 if { (eval echo configure:11515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11512 if { (eval echo configure:11513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11515 rm -rf conftest* 11513 rm -rf conftest*
11516 eval "ac_cv_lib_$ac_lib_var=yes" 11514 eval "ac_cv_lib_$ac_lib_var=yes"
11517 else 11515 else
11518 echo "configure: failed program was:" >&5 11516 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5 11517 cat conftest.$ac_ext >&5
11544 11542
11545 for ac_hdr in kstat.h 11543 for ac_hdr in kstat.h
11546 do 11544 do
11547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11549 echo "configure:11550: checking for $ac_hdr" >&5 11547 echo "configure:11548: checking for $ac_hdr" >&5
11550 11548
11551 cat > conftest.$ac_ext <<EOF 11549 cat > conftest.$ac_ext <<EOF
11552 #line 11553 "configure" 11550 #line 11551 "configure"
11553 #include "confdefs.h" 11551 #include "confdefs.h"
11554 #include <$ac_hdr> 11552 #include <$ac_hdr>
11555 EOF 11553 EOF
11556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11557 { (eval echo configure:11558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11555 { (eval echo configure:11556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11559 if test -z "$ac_err"; then 11557 if test -z "$ac_err"; then
11560 rm -rf conftest* 11558 rm -rf conftest*
11561 eval "ac_cv_header_$ac_safe=yes" 11559 eval "ac_cv_header_$ac_safe=yes"
11562 else 11560 else
11584 done 11582 done
11585 11583
11586 11584
11587 11585
11588 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 11586 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11589 echo "configure:11590: checking for kvm_read in -lkvm" >&5 11587 echo "configure:11588: checking for kvm_read in -lkvm" >&5
11590 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 11588 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11591 11589
11592 xe_check_libs=" -lkvm " 11590 xe_check_libs=" -lkvm "
11593 cat > conftest.$ac_ext <<EOF 11591 cat > conftest.$ac_ext <<EOF
11594 #line 11595 "configure" 11592 #line 11593 "configure"
11595 #include "confdefs.h" 11593 #include "confdefs.h"
11596 /* Override any gcc2 internal prototype to avoid an error. */ 11594 /* Override any gcc2 internal prototype to avoid an error. */
11597 /* We use char because int might match the return type of a gcc2 11595 /* We use char because int might match the return type of a gcc2
11598 builtin and then its argument prototype would still apply. */ 11596 builtin and then its argument prototype would still apply. */
11599 char kvm_read(); 11597 char kvm_read();
11600 11598
11601 int main() { 11599 int main() {
11602 kvm_read() 11600 kvm_read()
11603 ; return 0; } 11601 ; return 0; }
11604 EOF 11602 EOF
11605 if { (eval echo configure:11606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11603 if { (eval echo configure:11604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11606 rm -rf conftest* 11604 rm -rf conftest*
11607 eval "ac_cv_lib_$ac_lib_var=yes" 11605 eval "ac_cv_lib_$ac_lib_var=yes"
11608 else 11606 else
11609 echo "configure: failed program was:" >&5 11607 echo "configure: failed program was:" >&5
11610 cat conftest.$ac_ext >&5 11608 cat conftest.$ac_ext >&5
11634 11632
11635 11633
11636 fi 11634 fi
11637 11635
11638 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 11636 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11639 echo "configure:11640: checking whether netdb declares h_errno" >&5 11637 echo "configure:11638: checking whether netdb declares h_errno" >&5
11640 cat > conftest.$ac_ext <<EOF 11638 cat > conftest.$ac_ext <<EOF
11641 #line 11642 "configure" 11639 #line 11640 "configure"
11642 #include "confdefs.h" 11640 #include "confdefs.h"
11643 #include <netdb.h> 11641 #include <netdb.h>
11644 int main() { 11642 int main() {
11645 return h_errno; 11643 return h_errno;
11646 ; return 0; } 11644 ; return 0; }
11647 EOF 11645 EOF
11648 if { (eval echo configure:11649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11646 if { (eval echo configure:11647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11649 rm -rf conftest* 11647 rm -rf conftest*
11650 echo "$ac_t""yes" 1>&6 11648 echo "$ac_t""yes" 1>&6
11651 { test "$extra_verbose" = "yes" && cat << \EOF 11649 { test "$extra_verbose" = "yes" && cat << \EOF
11652 Defining HAVE_H_ERRNO 11650 Defining HAVE_H_ERRNO
11653 EOF 11651 EOF
11663 echo "$ac_t""no" 1>&6 11661 echo "$ac_t""no" 1>&6
11664 fi 11662 fi
11665 rm -f conftest* 11663 rm -f conftest*
11666 11664
11667 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 11665 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11668 echo "configure:11669: checking for sigsetjmp" >&5 11666 echo "configure:11667: checking for sigsetjmp" >&5
11669 cat > conftest.$ac_ext <<EOF 11667 cat > conftest.$ac_ext <<EOF
11670 #line 11671 "configure" 11668 #line 11669 "configure"
11671 #include "confdefs.h" 11669 #include "confdefs.h"
11672 #include <setjmp.h> 11670 #include <setjmp.h>
11673 int main() { 11671 int main() {
11674 sigjmp_buf bar; sigsetjmp (bar, 0); 11672 sigjmp_buf bar; sigsetjmp (bar, 0);
11675 ; return 0; } 11673 ; return 0; }
11676 EOF 11674 EOF
11677 if { (eval echo configure:11678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11675 if { (eval echo configure:11676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11678 rm -rf conftest* 11676 rm -rf conftest*
11679 echo "$ac_t""yes" 1>&6 11677 echo "$ac_t""yes" 1>&6
11680 { test "$extra_verbose" = "yes" && cat << \EOF 11678 { test "$extra_verbose" = "yes" && cat << \EOF
11681 Defining HAVE_SIGSETJMP 11679 Defining HAVE_SIGSETJMP
11682 EOF 11680 EOF
11692 echo "$ac_t""no" 1>&6 11690 echo "$ac_t""no" 1>&6
11693 fi 11691 fi
11694 rm -f conftest* 11692 rm -f conftest*
11695 11693
11696 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 11694 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11697 echo "configure:11698: checking whether localtime caches TZ" >&5 11695 echo "configure:11696: checking whether localtime caches TZ" >&5
11698 11696
11699 if test "$ac_cv_func_tzset" = "yes"; then 11697 if test "$ac_cv_func_tzset" = "yes"; then
11700 cat > conftest.$ac_ext <<EOF 11698 cat > conftest.$ac_ext <<EOF
11701 #line 11702 "configure" 11699 #line 11700 "configure"
11702 #include "confdefs.h" 11700 #include "confdefs.h"
11703 #include <time.h> 11701 #include <time.h>
11704 #if STDC_HEADERS 11702 #if STDC_HEADERS
11705 # include <stdlib.h> 11703 # include <stdlib.h>
11706 #endif 11704 #endif
11731 if (localtime (&now)->tm_hour != hour_unset) 11729 if (localtime (&now)->tm_hour != hour_unset)
11732 exit (1); 11730 exit (1);
11733 exit (0); 11731 exit (0);
11734 } 11732 }
11735 EOF 11733 EOF
11736 if { (eval echo configure:11737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11734 if { (eval echo configure:11735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11737 then 11735 then
11738 emacs_cv_localtime_cache=no 11736 emacs_cv_localtime_cache=no
11739 else 11737 else
11740 conftest_rc="$?" 11738 conftest_rc="$?"
11741 echo "configure: failed program was:" >&5 11739 echo "configure: failed program was:" >&5
11761 11759
11762 fi 11760 fi
11763 11761
11764 if test "$HAVE_TIMEVAL" = "yes"; then 11762 if test "$HAVE_TIMEVAL" = "yes"; then
11765 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 11763 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11766 echo "configure:11767: checking whether gettimeofday accepts one or two arguments" >&5 11764 echo "configure:11765: checking whether gettimeofday accepts one or two arguments" >&5
11767 cat > conftest.$ac_ext <<EOF 11765 cat > conftest.$ac_ext <<EOF
11768 #line 11769 "configure" 11766 #line 11767 "configure"
11769 #include "confdefs.h" 11767 #include "confdefs.h"
11770 11768
11771 #ifdef TIME_WITH_SYS_TIME 11769 #ifdef TIME_WITH_SYS_TIME
11772 #include <sys/time.h> 11770 #include <sys/time.h>
11773 #include <time.h> 11771 #include <time.h>
11784 struct timeval time; 11782 struct timeval time;
11785 gettimeofday (&time, 0); 11783 gettimeofday (&time, 0);
11786 11784
11787 ; return 0; } 11785 ; return 0; }
11788 EOF 11786 EOF
11789 if { (eval echo configure:11790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11787 if { (eval echo configure:11788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11790 rm -rf conftest* 11788 rm -rf conftest*
11791 echo "$ac_t""two" 1>&6 11789 echo "$ac_t""two" 1>&6
11792 else 11790 else
11793 echo "configure: failed program was:" >&5 11791 echo "configure: failed program was:" >&5
11794 cat conftest.$ac_ext >&5 11792 cat conftest.$ac_ext >&5
11806 rm -f conftest* 11804 rm -f conftest*
11807 fi 11805 fi
11808 11806
11809 11807
11810 echo $ac_n "checking for inline""... $ac_c" 1>&6 11808 echo $ac_n "checking for inline""... $ac_c" 1>&6
11811 echo "configure:11812: checking for inline" >&5 11809 echo "configure:11810: checking for inline" >&5
11812 11810
11813 ac_cv_c_inline=no 11811 ac_cv_c_inline=no
11814 for ac_kw in inline __inline__ __inline; do 11812 for ac_kw in inline __inline__ __inline; do
11815 cat > conftest.$ac_ext <<EOF 11813 cat > conftest.$ac_ext <<EOF
11816 #line 11817 "configure" 11814 #line 11815 "configure"
11817 #include "confdefs.h" 11815 #include "confdefs.h"
11818 11816
11819 int main() { 11817 int main() {
11820 } $ac_kw foo() { 11818 } $ac_kw foo() {
11821 ; return 0; } 11819 ; return 0; }
11822 EOF 11820 EOF
11823 if { (eval echo configure:11824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11821 if { (eval echo configure:11822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11824 rm -rf conftest* 11822 rm -rf conftest*
11825 ac_cv_c_inline=$ac_kw; break 11823 ac_cv_c_inline=$ac_kw; break
11826 else 11824 else
11827 echo "configure: failed program was:" >&5 11825 echo "configure: failed program was:" >&5
11828 cat conftest.$ac_ext >&5 11826 cat conftest.$ac_ext >&5
11859 11857
11860 if test "$__DECC" != "yes"; then 11858 if test "$__DECC" != "yes"; then
11861 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 11859 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11862 # for constant arguments. Useless! 11860 # for constant arguments. Useless!
11863 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 11861 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11864 echo "configure:11865: checking for working alloca.h" >&5 11862 echo "configure:11863: checking for working alloca.h" >&5
11865 11863
11866 cat > conftest.$ac_ext <<EOF 11864 cat > conftest.$ac_ext <<EOF
11867 #line 11868 "configure" 11865 #line 11866 "configure"
11868 #include "confdefs.h" 11866 #include "confdefs.h"
11869 #include <alloca.h> 11867 #include <alloca.h>
11870 int main() { 11868 int main() {
11871 char *p = alloca(2 * sizeof(int)); 11869 char *p = alloca(2 * sizeof(int));
11872 ; return 0; } 11870 ; return 0; }
11873 EOF 11871 EOF
11874 if { (eval echo configure:11875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11872 if { (eval echo configure:11873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11875 rm -rf conftest* 11873 rm -rf conftest*
11876 ac_cv_header_alloca_h=yes 11874 ac_cv_header_alloca_h=yes
11877 else 11875 else
11878 echo "configure: failed program was:" >&5 11876 echo "configure: failed program was:" >&5
11879 cat conftest.$ac_ext >&5 11877 cat conftest.$ac_ext >&5
11893 } 11891 }
11894 11892
11895 fi 11893 fi
11896 11894
11897 echo $ac_n "checking for alloca""... $ac_c" 1>&6 11895 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11898 echo "configure:11899: checking for alloca" >&5 11896 echo "configure:11897: checking for alloca" >&5
11899 11897
11900 cat > conftest.$ac_ext <<EOF 11898 cat > conftest.$ac_ext <<EOF
11901 #line 11902 "configure" 11899 #line 11900 "configure"
11902 #include "confdefs.h" 11900 #include "confdefs.h"
11903 11901
11904 #ifdef __GNUC__ 11902 #ifdef __GNUC__
11905 # define alloca __builtin_alloca 11903 # define alloca __builtin_alloca
11906 #else 11904 #else
11924 11922
11925 int main() { 11923 int main() {
11926 char *p = (char *) alloca(1); 11924 char *p = (char *) alloca(1);
11927 ; return 0; } 11925 ; return 0; }
11928 EOF 11926 EOF
11929 if { (eval echo configure:11930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11927 if { (eval echo configure:11928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11930 rm -rf conftest* 11928 rm -rf conftest*
11931 ac_cv_func_alloca_works=yes 11929 ac_cv_func_alloca_works=yes
11932 else 11930 else
11933 echo "configure: failed program was:" >&5 11931 echo "configure: failed program was:" >&5
11934 cat conftest.$ac_ext >&5 11932 cat conftest.$ac_ext >&5
11963 EOF 11961 EOF
11964 } 11962 }
11965 11963
11966 11964
11967 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 11965 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11968 echo "configure:11969: checking whether alloca needs Cray hooks" >&5 11966 echo "configure:11967: checking whether alloca needs Cray hooks" >&5
11969 11967
11970 cat > conftest.$ac_ext <<EOF 11968 cat > conftest.$ac_ext <<EOF
11971 #line 11972 "configure" 11969 #line 11970 "configure"
11972 #include "confdefs.h" 11970 #include "confdefs.h"
11973 #if defined(CRAY) && ! defined(CRAY2) 11971 #if defined(CRAY) && ! defined(CRAY2)
11974 webecray 11972 webecray
11975 #else 11973 #else
11976 wenotbecray 11974 wenotbecray
11990 11988
11991 echo "$ac_t""$ac_cv_os_cray" 1>&6 11989 echo "$ac_t""$ac_cv_os_cray" 1>&6
11992 if test $ac_cv_os_cray = yes; then 11990 if test $ac_cv_os_cray = yes; then
11993 for ac_func in _getb67 GETB67 getb67; do 11991 for ac_func in _getb67 GETB67 getb67; do
11994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11995 echo "configure:11996: checking for $ac_func" >&5 11993 echo "configure:11994: checking for $ac_func" >&5
11996 11994
11997 cat > conftest.$ac_ext <<EOF 11995 cat > conftest.$ac_ext <<EOF
11998 #line 11999 "configure" 11996 #line 11997 "configure"
11999 #include "confdefs.h" 11997 #include "confdefs.h"
12000 /* System header to define __stub macros and hopefully few prototypes, 11998 /* System header to define __stub macros and hopefully few prototypes,
12001 which can conflict with char $ac_func(); below. */ 11999 which can conflict with char $ac_func(); below. */
12002 #include <assert.h> 12000 #include <assert.h>
12003 /* Override any gcc2 internal prototype to avoid an error. */ 12001 /* Override any gcc2 internal prototype to avoid an error. */
12016 $ac_func(); 12014 $ac_func();
12017 #endif 12015 #endif
12018 12016
12019 ; return 0; } 12017 ; return 0; }
12020 EOF 12018 EOF
12021 if { (eval echo configure:12022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12019 if { (eval echo configure:12020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12022 rm -rf conftest* 12020 rm -rf conftest*
12023 eval "ac_cv_func_$ac_func=yes" 12021 eval "ac_cv_func_$ac_func=yes"
12024 else 12022 else
12025 echo "configure: failed program was:" >&5 12023 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5 12024 cat conftest.$ac_ext >&5
12046 12044
12047 done 12045 done
12048 fi 12046 fi
12049 12047
12050 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 12048 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
12051 echo "configure:12052: checking stack direction for C alloca" >&5 12049 echo "configure:12050: checking stack direction for C alloca" >&5
12052 12050
12053 cat > conftest.$ac_ext <<EOF 12051 cat > conftest.$ac_ext <<EOF
12054 #line 12055 "configure" 12052 #line 12053 "configure"
12055 #include "confdefs.h" 12053 #include "confdefs.h"
12056 find_stack_direction () 12054 find_stack_direction ()
12057 { 12055 {
12058 static char *addr = 0; 12056 static char *addr = 0;
12059 auto char dummy; 12057 auto char dummy;
12068 main () 12066 main ()
12069 { 12067 {
12070 exit (find_stack_direction() < 0); 12068 exit (find_stack_direction() < 0);
12071 } 12069 }
12072 EOF 12070 EOF
12073 if { (eval echo configure:12074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12071 if { (eval echo configure:12072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12074 then 12072 then
12075 ac_cv_c_stack_direction=1 12073 ac_cv_c_stack_direction=1
12076 else 12074 else
12077 conftest_rc="$?" 12075 conftest_rc="$?"
12078 echo "configure: failed program was:" >&5 12076 echo "configure: failed program was:" >&5
12098 fi 12096 fi
12099 fi 12097 fi
12100 12098
12101 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 12099 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
12102 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 12100 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
12103 echo "configure:12104: checking for vfork.h" >&5 12101 echo "configure:12102: checking for vfork.h" >&5
12104 12102
12105 cat > conftest.$ac_ext <<EOF 12103 cat > conftest.$ac_ext <<EOF
12106 #line 12107 "configure" 12104 #line 12105 "configure"
12107 #include "confdefs.h" 12105 #include "confdefs.h"
12108 #include <vfork.h> 12106 #include <vfork.h>
12109 EOF 12107 EOF
12110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12111 { (eval echo configure:12112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12109 { (eval echo configure:12110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12113 if test -z "$ac_err"; then 12111 if test -z "$ac_err"; then
12114 rm -rf conftest* 12112 rm -rf conftest*
12115 eval "ac_cv_header_$ac_safe=yes" 12113 eval "ac_cv_header_$ac_safe=yes"
12116 else 12114 else
12134 else 12132 else
12135 echo "$ac_t""no" 1>&6 12133 echo "$ac_t""no" 1>&6
12136 fi 12134 fi
12137 12135
12138 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 12136 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12139 echo "configure:12140: checking for working vfork" >&5 12137 echo "configure:12138: checking for working vfork" >&5
12140 12138
12141 cat > conftest.$ac_ext <<EOF 12139 cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure" 12140 #line 12141 "configure"
12143 #include "confdefs.h" 12141 #include "confdefs.h"
12144 /* Thanks to Paul Eggert for this test. */ 12142 /* Thanks to Paul Eggert for this test. */
12145 #include <stdio.h> 12143 #include <stdio.h>
12146 #include <sys/types.h> 12144 #include <sys/types.h>
12147 #include <sys/stat.h> 12145 #include <sys/stat.h>
12232 || fstat(fileno(stdout), &st) != 0 12230 || fstat(fileno(stdout), &st) != 0
12233 ); 12231 );
12234 } 12232 }
12235 } 12233 }
12236 EOF 12234 EOF
12237 if { (eval echo configure:12238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12235 if { (eval echo configure:12236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12238 then 12236 then
12239 ac_cv_func_vfork_works=yes 12237 ac_cv_func_vfork_works=yes
12240 else 12238 else
12241 conftest_rc="$?" 12239 conftest_rc="$?"
12242 echo "configure: failed program was:" >&5 12240 echo "configure: failed program was:" >&5
12258 12256
12259 fi 12257 fi
12260 12258
12261 12259
12262 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 12260 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12263 echo "configure:12264: checking for working strcoll" >&5 12261 echo "configure:12262: checking for working strcoll" >&5
12264 12262
12265 cat > conftest.$ac_ext <<EOF 12263 cat > conftest.$ac_ext <<EOF
12266 #line 12267 "configure" 12264 #line 12265 "configure"
12267 #include "confdefs.h" 12265 #include "confdefs.h"
12268 #include <string.h> 12266 #include <string.h>
12269 main () 12267 main ()
12270 { 12268 {
12271 exit (strcoll ("abc", "def") >= 0 || 12269 exit (strcoll ("abc", "def") >= 0 ||
12272 strcoll ("ABC", "DEF") >= 0 || 12270 strcoll ("ABC", "DEF") >= 0 ||
12273 strcoll ("123", "456") >= 0); 12271 strcoll ("123", "456") >= 0);
12274 } 12272 }
12275 EOF 12273 EOF
12276 if { (eval echo configure:12277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12274 if { (eval echo configure:12275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12277 then 12275 then
12278 ac_cv_func_strcoll_works=yes 12276 ac_cv_func_strcoll_works=yes
12279 else 12277 else
12280 conftest_rc="$?" 12278 conftest_rc="$?"
12281 echo "configure: failed program was:" >&5 12279 echo "configure: failed program was:" >&5
12299 12297
12300 12298
12301 for ac_func in getpgrp 12299 for ac_func in getpgrp
12302 do 12300 do
12303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12304 echo "configure:12305: checking for $ac_func" >&5 12302 echo "configure:12303: checking for $ac_func" >&5
12305 12303
12306 cat > conftest.$ac_ext <<EOF 12304 cat > conftest.$ac_ext <<EOF
12307 #line 12308 "configure" 12305 #line 12306 "configure"
12308 #include "confdefs.h" 12306 #include "confdefs.h"
12309 /* System header to define __stub macros and hopefully few prototypes, 12307 /* System header to define __stub macros and hopefully few prototypes,
12310 which can conflict with char $ac_func(); below. */ 12308 which can conflict with char $ac_func(); below. */
12311 #include <assert.h> 12309 #include <assert.h>
12312 /* Override any gcc2 internal prototype to avoid an error. */ 12310 /* Override any gcc2 internal prototype to avoid an error. */
12325 $ac_func(); 12323 $ac_func();
12326 #endif 12324 #endif
12327 12325
12328 ; return 0; } 12326 ; return 0; }
12329 EOF 12327 EOF
12330 if { (eval echo configure:12331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12328 if { (eval echo configure:12329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12331 rm -rf conftest* 12329 rm -rf conftest*
12332 eval "ac_cv_func_$ac_func=yes" 12330 eval "ac_cv_func_$ac_func=yes"
12333 else 12331 else
12334 echo "configure: failed program was:" >&5 12332 echo "configure: failed program was:" >&5
12335 cat conftest.$ac_ext >&5 12333 cat conftest.$ac_ext >&5
12353 echo "$ac_t""no" 1>&6 12351 echo "$ac_t""no" 1>&6
12354 fi 12352 fi
12355 done 12353 done
12356 12354
12357 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 12355 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12358 echo "configure:12359: checking whether getpgrp takes no argument" >&5 12356 echo "configure:12357: checking whether getpgrp takes no argument" >&5
12359 12357
12360 cat > conftest.$ac_ext <<EOF 12358 cat > conftest.$ac_ext <<EOF
12361 #line 12362 "configure" 12359 #line 12360 "configure"
12362 #include "confdefs.h" 12360 #include "confdefs.h"
12363 12361
12364 /* 12362 /*
12365 * If this system has a BSD-style getpgrp(), 12363 * If this system has a BSD-style getpgrp(),
12366 * which takes a pid argument, exit unsuccessfully. 12364 * which takes a pid argument, exit unsuccessfully.
12411 exit(s>>8); 12409 exit(s>>8);
12412 } 12410 }
12413 } 12411 }
12414 12412
12415 EOF 12413 EOF
12416 if { (eval echo configure:12417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12414 if { (eval echo configure:12415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12417 then 12415 then
12418 ac_cv_func_getpgrp_void=yes 12416 ac_cv_func_getpgrp_void=yes
12419 else 12417 else
12420 conftest_rc="$?" 12418 conftest_rc="$?"
12421 echo "configure: failed program was:" >&5 12419 echo "configure: failed program was:" >&5
12438 12436
12439 fi 12437 fi
12440 12438
12441 12439
12442 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 12440 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12443 echo "configure:12444: checking for working mmap" >&5 12441 echo "configure:12442: checking for working mmap" >&5
12444 case "$opsys" in ultrix* ) have_mmap=no ;; *) 12442 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12445 cat > conftest.$ac_ext <<EOF 12443 cat > conftest.$ac_ext <<EOF
12446 #line 12447 "configure" 12444 #line 12445 "configure"
12447 #include "confdefs.h" 12445 #include "confdefs.h"
12448 #include <stdio.h> 12446 #include <stdio.h>
12449 #include <unistd.h> 12447 #include <unistd.h>
12450 #include <fcntl.h> 12448 #include <fcntl.h>
12451 #include <sys/mman.h> 12449 #include <sys/mman.h>
12474 return 0; 12472 return 0;
12475 perror ("conftest: mmap failed"); 12473 perror ("conftest: mmap failed");
12476 return 1; 12474 return 1;
12477 } 12475 }
12478 EOF 12476 EOF
12479 if { (eval echo configure:12480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12477 if { (eval echo configure:12478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12480 then 12478 then
12481 have_mmap=yes 12479 have_mmap=yes
12482 else 12480 else
12483 conftest_rc="$?" 12481 conftest_rc="$?"
12484 echo "configure: failed program was:" >&5 12482 echo "configure: failed program was:" >&5
12503 esac 12501 esac
12504 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 12502 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12505 if test "$rel_alloc $have_mmap" = "default yes"; then 12503 if test "$rel_alloc $have_mmap" = "default yes"; then
12506 if test "$doug_lea_malloc" = "yes"; then 12504 if test "$doug_lea_malloc" = "yes"; then
12507 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 12505 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12508 echo "configure:12509: checking for M_MMAP_THRESHOLD" >&5 12506 echo "configure:12507: checking for M_MMAP_THRESHOLD" >&5
12509 cat > conftest.$ac_ext <<EOF 12507 cat > conftest.$ac_ext <<EOF
12510 #line 12511 "configure" 12508 #line 12509 "configure"
12511 #include "confdefs.h" 12509 #include "confdefs.h"
12512 #include <malloc.h> 12510 #include <malloc.h>
12513 int main() { 12511 int main() {
12514 12512
12515 #ifndef M_MMAP_THRESHOLD 12513 #ifndef M_MMAP_THRESHOLD
12517 !@+$%^&*_)(_ - unlikely to compile... 12515 !@+$%^&*_)(_ - unlikely to compile...
12518 #endif 12516 #endif
12519 12517
12520 ; return 0; } 12518 ; return 0; }
12521 EOF 12519 EOF
12522 if { (eval echo configure:12523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12520 if { (eval echo configure:12521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12523 rm -rf conftest* 12521 rm -rf conftest*
12524 rel_alloc=no; echo "$ac_t""yes" 1>&6; 12522 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12525 else 12523 else
12526 echo "configure: failed program was:" >&5 12524 echo "configure: failed program was:" >&5
12527 cat conftest.$ac_ext >&5 12525 cat conftest.$ac_ext >&5
12542 } 12540 }
12543 12541
12544 12542
12545 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 12543 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12546 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 12544 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12547 echo "configure:12548: checking for termios.h" >&5 12545 echo "configure:12546: checking for termios.h" >&5
12548 12546
12549 cat > conftest.$ac_ext <<EOF 12547 cat > conftest.$ac_ext <<EOF
12550 #line 12551 "configure" 12548 #line 12549 "configure"
12551 #include "confdefs.h" 12549 #include "confdefs.h"
12552 #include <termios.h> 12550 #include <termios.h>
12553 EOF 12551 EOF
12554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12555 { (eval echo configure:12556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12553 { (eval echo configure:12554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12557 if test -z "$ac_err"; then 12555 if test -z "$ac_err"; then
12558 rm -rf conftest* 12556 rm -rf conftest*
12559 eval "ac_cv_header_$ac_safe=yes" 12557 eval "ac_cv_header_$ac_safe=yes"
12560 else 12558 else
12593 12591
12594 else 12592 else
12595 echo "$ac_t""no" 1>&6 12593 echo "$ac_t""no" 1>&6
12596 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 12594 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12597 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 12595 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12598 echo "configure:12599: checking for termio.h" >&5 12596 echo "configure:12597: checking for termio.h" >&5
12599 12597
12600 cat > conftest.$ac_ext <<EOF 12598 cat > conftest.$ac_ext <<EOF
12601 #line 12602 "configure" 12599 #line 12600 "configure"
12602 #include "confdefs.h" 12600 #include "confdefs.h"
12603 #include <termio.h> 12601 #include <termio.h>
12604 EOF 12602 EOF
12605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12606 { (eval echo configure:12607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12604 { (eval echo configure:12605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12608 if test -z "$ac_err"; then 12606 if test -z "$ac_err"; then
12609 rm -rf conftest* 12607 rm -rf conftest*
12610 eval "ac_cv_header_$ac_safe=yes" 12608 eval "ac_cv_header_$ac_safe=yes"
12611 else 12609 else
12633 fi 12631 fi
12634 12632
12635 12633
12636 12634
12637 echo $ac_n "checking for socket""... $ac_c" 1>&6 12635 echo $ac_n "checking for socket""... $ac_c" 1>&6
12638 echo "configure:12639: checking for socket" >&5 12636 echo "configure:12637: checking for socket" >&5
12639 12637
12640 cat > conftest.$ac_ext <<EOF 12638 cat > conftest.$ac_ext <<EOF
12641 #line 12642 "configure" 12639 #line 12640 "configure"
12642 #include "confdefs.h" 12640 #include "confdefs.h"
12643 /* System header to define __stub macros and hopefully few prototypes, 12641 /* System header to define __stub macros and hopefully few prototypes,
12644 which can conflict with char socket(); below. */ 12642 which can conflict with char socket(); below. */
12645 #include <assert.h> 12643 #include <assert.h>
12646 /* Override any gcc2 internal prototype to avoid an error. */ 12644 /* Override any gcc2 internal prototype to avoid an error. */
12659 socket(); 12657 socket();
12660 #endif 12658 #endif
12661 12659
12662 ; return 0; } 12660 ; return 0; }
12663 EOF 12661 EOF
12664 if { (eval echo configure:12665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12662 if { (eval echo configure:12663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12665 rm -rf conftest* 12663 rm -rf conftest*
12666 eval "ac_cv_func_socket=yes" 12664 eval "ac_cv_func_socket=yes"
12667 else 12665 else
12668 echo "configure: failed program was:" >&5 12666 echo "configure: failed program was:" >&5
12669 cat conftest.$ac_ext >&5 12667 cat conftest.$ac_ext >&5
12674 12672
12675 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 12673 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12676 echo "$ac_t""yes" 1>&6 12674 echo "$ac_t""yes" 1>&6
12677 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 12675 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12678 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 12676 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12679 echo "configure:12680: checking for netinet/in.h" >&5 12677 echo "configure:12678: checking for netinet/in.h" >&5
12680 12678
12681 cat > conftest.$ac_ext <<EOF 12679 cat > conftest.$ac_ext <<EOF
12682 #line 12683 "configure" 12680 #line 12681 "configure"
12683 #include "confdefs.h" 12681 #include "confdefs.h"
12684 #include <netinet/in.h> 12682 #include <netinet/in.h>
12685 EOF 12683 EOF
12686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12687 { (eval echo configure:12688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12685 { (eval echo configure:12686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12689 if test -z "$ac_err"; then 12687 if test -z "$ac_err"; then
12690 rm -rf conftest* 12688 rm -rf conftest*
12691 eval "ac_cv_header_$ac_safe=yes" 12689 eval "ac_cv_header_$ac_safe=yes"
12692 else 12690 else
12699 rm -f conftest* 12697 rm -f conftest*
12700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12701 echo "$ac_t""yes" 1>&6 12699 echo "$ac_t""yes" 1>&6
12702 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 12700 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12703 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 12701 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12704 echo "configure:12705: checking for arpa/inet.h" >&5 12702 echo "configure:12703: checking for arpa/inet.h" >&5
12705 12703
12706 cat > conftest.$ac_ext <<EOF 12704 cat > conftest.$ac_ext <<EOF
12707 #line 12708 "configure" 12705 #line 12706 "configure"
12708 #include "confdefs.h" 12706 #include "confdefs.h"
12709 #include <arpa/inet.h> 12707 #include <arpa/inet.h>
12710 EOF 12708 EOF
12711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12712 { (eval echo configure:12713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12710 { (eval echo configure:12711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12714 if test -z "$ac_err"; then 12712 if test -z "$ac_err"; then
12715 rm -rf conftest* 12713 rm -rf conftest*
12716 eval "ac_cv_header_$ac_safe=yes" 12714 eval "ac_cv_header_$ac_safe=yes"
12717 else 12715 else
12732 #define HAVE_SOCKETS 1 12730 #define HAVE_SOCKETS 1
12733 EOF 12731 EOF
12734 } 12732 }
12735 12733
12736 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 12734 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12737 echo "configure:12738: checking "for sun_len member in struct sockaddr_un"" >&5 12735 echo "configure:12736: checking "for sun_len member in struct sockaddr_un"" >&5
12738 cat > conftest.$ac_ext <<EOF 12736 cat > conftest.$ac_ext <<EOF
12739 #line 12740 "configure" 12737 #line 12738 "configure"
12740 #include "confdefs.h" 12738 #include "confdefs.h"
12741 12739
12742 #include <sys/types.h> 12740 #include <sys/types.h>
12743 #include <sys/socket.h> 12741 #include <sys/socket.h>
12744 #include <sys/un.h> 12742 #include <sys/un.h>
12745 12743
12746 int main() { 12744 int main() {
12747 static struct sockaddr_un x; x.sun_len = 1; 12745 static struct sockaddr_un x; x.sun_len = 1;
12748 ; return 0; } 12746 ; return 0; }
12749 EOF 12747 EOF
12750 if { (eval echo configure:12751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12748 if { (eval echo configure:12749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12751 rm -rf conftest* 12749 rm -rf conftest*
12752 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 12750 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12753 Defining HAVE_SOCKADDR_SUN_LEN 12751 Defining HAVE_SOCKADDR_SUN_LEN
12754 EOF 12752 EOF
12755 cat >> confdefs.h <<\EOF 12753 cat >> confdefs.h <<\EOF
12763 rm -rf conftest* 12761 rm -rf conftest*
12764 echo "$ac_t""no" 1>&6 12762 echo "$ac_t""no" 1>&6
12765 fi 12763 fi
12766 rm -f conftest* 12764 rm -f conftest*
12767 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 12765 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12768 echo "configure:12769: checking "for ip_mreq struct in netinet/in.h"" >&5 12766 echo "configure:12767: checking "for ip_mreq struct in netinet/in.h"" >&5
12769 cat > conftest.$ac_ext <<EOF 12767 cat > conftest.$ac_ext <<EOF
12770 #line 12771 "configure" 12768 #line 12769 "configure"
12771 #include "confdefs.h" 12769 #include "confdefs.h"
12772 12770
12773 #include <sys/types.h> 12771 #include <sys/types.h>
12774 #include <netinet/in.h> 12772 #include <netinet/in.h>
12775 12773
12776 int main() { 12774 int main() {
12777 static struct ip_mreq x; 12775 static struct ip_mreq x;
12778 ; return 0; } 12776 ; return 0; }
12779 EOF 12777 EOF
12780 if { (eval echo configure:12781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12778 if { (eval echo configure:12779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12781 rm -rf conftest* 12779 rm -rf conftest*
12782 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 12780 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12783 Defining HAVE_MULTICAST 12781 Defining HAVE_MULTICAST
12784 EOF 12782 EOF
12785 cat >> confdefs.h <<\EOF 12783 cat >> confdefs.h <<\EOF
12806 echo "$ac_t""no" 1>&6 12804 echo "$ac_t""no" 1>&6
12807 fi 12805 fi
12808 12806
12809 12807
12810 echo $ac_n "checking for msgget""... $ac_c" 1>&6 12808 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12811 echo "configure:12812: checking for msgget" >&5 12809 echo "configure:12810: checking for msgget" >&5
12812 12810
12813 cat > conftest.$ac_ext <<EOF 12811 cat > conftest.$ac_ext <<EOF
12814 #line 12815 "configure" 12812 #line 12813 "configure"
12815 #include "confdefs.h" 12813 #include "confdefs.h"
12816 /* System header to define __stub macros and hopefully few prototypes, 12814 /* System header to define __stub macros and hopefully few prototypes,
12817 which can conflict with char msgget(); below. */ 12815 which can conflict with char msgget(); below. */
12818 #include <assert.h> 12816 #include <assert.h>
12819 /* Override any gcc2 internal prototype to avoid an error. */ 12817 /* Override any gcc2 internal prototype to avoid an error. */
12832 msgget(); 12830 msgget();
12833 #endif 12831 #endif
12834 12832
12835 ; return 0; } 12833 ; return 0; }
12836 EOF 12834 EOF
12837 if { (eval echo configure:12838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12835 if { (eval echo configure:12836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12838 rm -rf conftest* 12836 rm -rf conftest*
12839 eval "ac_cv_func_msgget=yes" 12837 eval "ac_cv_func_msgget=yes"
12840 else 12838 else
12841 echo "configure: failed program was:" >&5 12839 echo "configure: failed program was:" >&5
12842 cat conftest.$ac_ext >&5 12840 cat conftest.$ac_ext >&5
12847 12845
12848 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 12846 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12849 echo "$ac_t""yes" 1>&6 12847 echo "$ac_t""yes" 1>&6
12850 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 12848 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12851 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 12849 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12852 echo "configure:12853: checking for sys/ipc.h" >&5 12850 echo "configure:12851: checking for sys/ipc.h" >&5
12853 12851
12854 cat > conftest.$ac_ext <<EOF 12852 cat > conftest.$ac_ext <<EOF
12855 #line 12856 "configure" 12853 #line 12854 "configure"
12856 #include "confdefs.h" 12854 #include "confdefs.h"
12857 #include <sys/ipc.h> 12855 #include <sys/ipc.h>
12858 EOF 12856 EOF
12859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12860 { (eval echo configure:12861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12858 { (eval echo configure:12859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12862 if test -z "$ac_err"; then 12860 if test -z "$ac_err"; then
12863 rm -rf conftest* 12861 rm -rf conftest*
12864 eval "ac_cv_header_$ac_safe=yes" 12862 eval "ac_cv_header_$ac_safe=yes"
12865 else 12863 else
12872 rm -f conftest* 12870 rm -f conftest*
12873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12874 echo "$ac_t""yes" 1>&6 12872 echo "$ac_t""yes" 1>&6
12875 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 12873 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12876 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 12874 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12877 echo "configure:12878: checking for sys/msg.h" >&5 12875 echo "configure:12876: checking for sys/msg.h" >&5
12878 12876
12879 cat > conftest.$ac_ext <<EOF 12877 cat > conftest.$ac_ext <<EOF
12880 #line 12881 "configure" 12878 #line 12879 "configure"
12881 #include "confdefs.h" 12879 #include "confdefs.h"
12882 #include <sys/msg.h> 12880 #include <sys/msg.h>
12883 EOF 12881 EOF
12884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12885 { (eval echo configure:12886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12883 { (eval echo configure:12884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12887 if test -z "$ac_err"; then 12885 if test -z "$ac_err"; then
12888 rm -rf conftest* 12886 rm -rf conftest*
12889 eval "ac_cv_header_$ac_safe=yes" 12887 eval "ac_cv_header_$ac_safe=yes"
12890 else 12888 else
12918 fi 12916 fi
12919 12917
12920 12918
12921 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 12919 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12922 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 12920 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12923 echo "configure:12924: checking for dirent.h" >&5 12921 echo "configure:12922: checking for dirent.h" >&5
12924 12922
12925 cat > conftest.$ac_ext <<EOF 12923 cat > conftest.$ac_ext <<EOF
12926 #line 12927 "configure" 12924 #line 12925 "configure"
12927 #include "confdefs.h" 12925 #include "confdefs.h"
12928 #include <dirent.h> 12926 #include <dirent.h>
12929 EOF 12927 EOF
12930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12931 { (eval echo configure:12932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12929 { (eval echo configure:12930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12933 if test -z "$ac_err"; then 12931 if test -z "$ac_err"; then
12934 rm -rf conftest* 12932 rm -rf conftest*
12935 eval "ac_cv_header_$ac_safe=yes" 12933 eval "ac_cv_header_$ac_safe=yes"
12936 else 12934 else
12953 12951
12954 else 12952 else
12955 echo "$ac_t""no" 1>&6 12953 echo "$ac_t""no" 1>&6
12956 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 12954 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12957 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 12955 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12958 echo "configure:12959: checking for sys/dir.h" >&5 12956 echo "configure:12957: checking for sys/dir.h" >&5
12959 12957
12960 cat > conftest.$ac_ext <<EOF 12958 cat > conftest.$ac_ext <<EOF
12961 #line 12962 "configure" 12959 #line 12960 "configure"
12962 #include "confdefs.h" 12960 #include "confdefs.h"
12963 #include <sys/dir.h> 12961 #include <sys/dir.h>
12964 EOF 12962 EOF
12965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12966 { (eval echo configure:12967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12964 { (eval echo configure:12965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12968 if test -z "$ac_err"; then 12966 if test -z "$ac_err"; then
12969 rm -rf conftest* 12967 rm -rf conftest*
12970 eval "ac_cv_header_$ac_safe=yes" 12968 eval "ac_cv_header_$ac_safe=yes"
12971 else 12969 else
12994 fi 12992 fi
12995 12993
12996 12994
12997 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 12995 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12998 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 12996 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12999 echo "configure:13000: checking for nlist.h" >&5 12997 echo "configure:12998: checking for nlist.h" >&5
13000 12998
13001 cat > conftest.$ac_ext <<EOF 12999 cat > conftest.$ac_ext <<EOF
13002 #line 13003 "configure" 13000 #line 13001 "configure"
13003 #include "confdefs.h" 13001 #include "confdefs.h"
13004 #include <nlist.h> 13002 #include <nlist.h>
13005 EOF 13003 EOF
13006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13007 { (eval echo configure:13008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13005 { (eval echo configure:13006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13009 if test -z "$ac_err"; then 13007 if test -z "$ac_err"; then
13010 rm -rf conftest* 13008 rm -rf conftest*
13011 eval "ac_cv_header_$ac_safe=yes" 13009 eval "ac_cv_header_$ac_safe=yes"
13012 else 13010 else
13032 fi 13030 fi
13033 13031
13034 13032
13035 13033
13036 echo "checking "for sound support"" 1>&6 13034 echo "checking "for sound support"" 1>&6
13037 echo "configure:13038: checking "for sound support"" >&5 13035 echo "configure:13036: checking "for sound support"" >&5
13038 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 13036 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
13039 13037
13040 if test "$with_native_sound" != "no"; then 13038 if test "$with_native_sound" != "no"; then
13041 if test -n "$native_sound_lib"; then 13039 if test -n "$native_sound_lib"; then
13042 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 13040 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
13043 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 13041 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
13044 echo "configure:13045: checking for multimedia/audio_device.h" >&5 13042 echo "configure:13043: checking for multimedia/audio_device.h" >&5
13045 13043
13046 cat > conftest.$ac_ext <<EOF 13044 cat > conftest.$ac_ext <<EOF
13047 #line 13048 "configure" 13045 #line 13046 "configure"
13048 #include "confdefs.h" 13046 #include "confdefs.h"
13049 #include <multimedia/audio_device.h> 13047 #include <multimedia/audio_device.h>
13050 EOF 13048 EOF
13051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13052 { (eval echo configure:13053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13050 { (eval echo configure:13051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13054 if test -z "$ac_err"; then 13052 if test -z "$ac_err"; then
13055 rm -rf conftest* 13053 rm -rf conftest*
13056 eval "ac_cv_header_$ac_safe=yes" 13054 eval "ac_cv_header_$ac_safe=yes"
13057 else 13055 else
13095 case "$canonical" in 13093 case "$canonical" in
13096 *-sgi-* ) 13094 *-sgi-* )
13097 if test -z "$native_sound_lib"; then 13095 if test -z "$native_sound_lib"; then
13098 13096
13099 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 13097 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13100 echo "configure:13101: checking for ALopenport in -laudio" >&5 13098 echo "configure:13099: checking for ALopenport in -laudio" >&5
13101 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 13099 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13102 13100
13103 xe_check_libs=" -laudio " 13101 xe_check_libs=" -laudio "
13104 cat > conftest.$ac_ext <<EOF 13102 cat > conftest.$ac_ext <<EOF
13105 #line 13106 "configure" 13103 #line 13104 "configure"
13106 #include "confdefs.h" 13104 #include "confdefs.h"
13107 /* Override any gcc2 internal prototype to avoid an error. */ 13105 /* Override any gcc2 internal prototype to avoid an error. */
13108 /* We use char because int might match the return type of a gcc2 13106 /* We use char because int might match the return type of a gcc2
13109 builtin and then its argument prototype would still apply. */ 13107 builtin and then its argument prototype would still apply. */
13110 char ALopenport(); 13108 char ALopenport();
13111 13109
13112 int main() { 13110 int main() {
13113 ALopenport() 13111 ALopenport()
13114 ; return 0; } 13112 ; return 0; }
13115 EOF 13113 EOF
13116 if { (eval echo configure:13117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13114 if { (eval echo configure:13115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13117 rm -rf conftest* 13115 rm -rf conftest*
13118 eval "ac_cv_lib_$ac_lib_var=yes" 13116 eval "ac_cv_lib_$ac_lib_var=yes"
13119 else 13117 else
13120 echo "configure: failed program was:" >&5 13118 echo "configure: failed program was:" >&5
13121 cat conftest.$ac_ext >&5 13119 cat conftest.$ac_ext >&5
13142 fi ;; 13140 fi ;;
13143 hppa*-hp-hpux* ) 13141 hppa*-hp-hpux* )
13144 if test -z "$native_sound_lib"; then 13142 if test -z "$native_sound_lib"; then
13145 13143
13146 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 13144 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13147 echo "configure:13148: checking for AOpenAudio in -lAlib" >&5 13145 echo "configure:13146: checking for AOpenAudio in -lAlib" >&5
13148 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 13146 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13149 13147
13150 xe_check_libs=" -lAlib " 13148 xe_check_libs=" -lAlib "
13151 cat > conftest.$ac_ext <<EOF 13149 cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure" 13150 #line 13151 "configure"
13153 #include "confdefs.h" 13151 #include "confdefs.h"
13154 /* Override any gcc2 internal prototype to avoid an error. */ 13152 /* Override any gcc2 internal prototype to avoid an error. */
13155 /* We use char because int might match the return type of a gcc2 13153 /* We use char because int might match the return type of a gcc2
13156 builtin and then its argument prototype would still apply. */ 13154 builtin and then its argument prototype would still apply. */
13157 char AOpenAudio(); 13155 char AOpenAudio();
13158 13156
13159 int main() { 13157 int main() {
13160 AOpenAudio() 13158 AOpenAudio()
13161 ; return 0; } 13159 ; return 0; }
13162 EOF 13160 EOF
13163 if { (eval echo configure:13164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13161 if { (eval echo configure:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13164 rm -rf conftest* 13162 rm -rf conftest*
13165 eval "ac_cv_lib_$ac_lib_var=yes" 13163 eval "ac_cv_lib_$ac_lib_var=yes"
13166 else 13164 else
13167 echo "configure: failed program was:" >&5 13165 echo "configure: failed program was:" >&5
13168 cat conftest.$ac_ext >&5 13166 cat conftest.$ac_ext >&5
13206 13204
13207 if test -z "$sound_found"; then 13205 if test -z "$sound_found"; then
13208 for dir in "machine" "sys" "linux"; do 13206 for dir in "machine" "sys" "linux"; do
13209 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 13207 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13210 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 13208 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13211 echo "configure:13212: checking for ${dir}/soundcard.h" >&5 13209 echo "configure:13210: checking for ${dir}/soundcard.h" >&5
13212 13210
13213 cat > conftest.$ac_ext <<EOF 13211 cat > conftest.$ac_ext <<EOF
13214 #line 13215 "configure" 13212 #line 13213 "configure"
13215 #include "confdefs.h" 13213 #include "confdefs.h"
13216 #include <${dir}/soundcard.h> 13214 #include <${dir}/soundcard.h>
13217 EOF 13215 EOF
13218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13219 { (eval echo configure:13220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13217 { (eval echo configure:13218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13221 if test -z "$ac_err"; then 13219 if test -z "$ac_err"; then
13222 rm -rf conftest* 13220 rm -rf conftest*
13223 eval "ac_cv_header_$ac_safe=yes" 13221 eval "ac_cv_header_$ac_safe=yes"
13224 else 13222 else
13268 fi 13266 fi
13269 13267
13270 if test "$with_nas_sound" != "no"; then 13268 if test "$with_nas_sound" != "no"; then
13271 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 13269 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13272 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 13270 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13273 echo "configure:13274: checking for audio/audiolib.h" >&5 13271 echo "configure:13272: checking for audio/audiolib.h" >&5
13274 13272
13275 cat > conftest.$ac_ext <<EOF 13273 cat > conftest.$ac_ext <<EOF
13276 #line 13277 "configure" 13274 #line 13275 "configure"
13277 #include "confdefs.h" 13275 #include "confdefs.h"
13278 #include <audio/audiolib.h> 13276 #include <audio/audiolib.h>
13279 EOF 13277 EOF
13280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13281 { (eval echo configure:13282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13279 { (eval echo configure:13280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13283 if test -z "$ac_err"; then 13281 if test -z "$ac_err"; then
13284 rm -rf conftest* 13282 rm -rf conftest*
13285 eval "ac_cv_header_$ac_safe=yes" 13283 eval "ac_cv_header_$ac_safe=yes"
13286 else 13284 else
13294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13295 echo "$ac_t""yes" 1>&6 13293 echo "$ac_t""yes" 1>&6
13296 13294
13297 13295
13298 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 13296 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13299 echo "configure:13300: checking for AuOpenServer in -laudio" >&5 13297 echo "configure:13298: checking for AuOpenServer in -laudio" >&5
13300 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 13298 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13301 13299
13302 xe_check_libs=" -laudio " 13300 xe_check_libs=" -laudio "
13303 cat > conftest.$ac_ext <<EOF 13301 cat > conftest.$ac_ext <<EOF
13304 #line 13305 "configure" 13302 #line 13303 "configure"
13305 #include "confdefs.h" 13303 #include "confdefs.h"
13306 /* Override any gcc2 internal prototype to avoid an error. */ 13304 /* Override any gcc2 internal prototype to avoid an error. */
13307 /* We use char because int might match the return type of a gcc2 13305 /* We use char because int might match the return type of a gcc2
13308 builtin and then its argument prototype would still apply. */ 13306 builtin and then its argument prototype would still apply. */
13309 char AuOpenServer(); 13307 char AuOpenServer();
13310 13308
13311 int main() { 13309 int main() {
13312 AuOpenServer() 13310 AuOpenServer()
13313 ; return 0; } 13311 ; return 0; }
13314 EOF 13312 EOF
13315 if { (eval echo configure:13316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13313 if { (eval echo configure:13314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13316 rm -rf conftest* 13314 rm -rf conftest*
13317 eval "ac_cv_lib_$ac_lib_var=yes" 13315 eval "ac_cv_lib_$ac_lib_var=yes"
13318 else 13316 else
13319 echo "configure: failed program was:" >&5 13317 echo "configure: failed program was:" >&5
13320 cat conftest.$ac_ext >&5 13318 cat conftest.$ac_ext >&5
13349 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 13347 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13350 echo " xemacs will be linked with \"nas.o\"" 13348 echo " xemacs will be linked with \"nas.o\""
13351 fi 13349 fi
13352 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 13350 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13353 cat > conftest.$ac_ext <<EOF 13351 cat > conftest.$ac_ext <<EOF
13354 #line 13355 "configure" 13352 #line 13353 "configure"
13355 #include "confdefs.h" 13353 #include "confdefs.h"
13356 #include <audio/Xtutil.h> 13354 #include <audio/Xtutil.h>
13357 EOF 13355 EOF
13358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13359 egrep "AuXtErrorJump" >/dev/null 2>&1; then 13357 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13380 13378
13381 if test "$with_esd_sound" != "no"; then 13379 if test "$with_esd_sound" != "no"; then
13382 # Extract the first word of "esd-config", so it can be a program name with args. 13380 # Extract the first word of "esd-config", so it can be a program name with args.
13383 set dummy esd-config; ac_word=$2 13381 set dummy esd-config; ac_word=$2
13384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 13382 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13385 echo "configure:13386: checking for $ac_word" >&5 13383 echo "configure:13384: checking for $ac_word" >&5
13386 13384
13387 if test -n "$have_esd_config"; then 13385 if test -n "$have_esd_config"; then
13388 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 13386 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13389 else 13387 else
13390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 13388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13409 if test "$have_esd_config" = "yes"; then 13407 if test "$have_esd_config" = "yes"; then
13410 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 13408 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13411 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi 13409 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
13412 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 13410 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13413 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 13411 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13414 echo "configure:13415: checking for esd_play_stream" >&5 13412 echo "configure:13413: checking for esd_play_stream" >&5
13415 13413
13416 cat > conftest.$ac_ext <<EOF 13414 cat > conftest.$ac_ext <<EOF
13417 #line 13418 "configure" 13415 #line 13416 "configure"
13418 #include "confdefs.h" 13416 #include "confdefs.h"
13419 /* System header to define __stub macros and hopefully few prototypes, 13417 /* System header to define __stub macros and hopefully few prototypes,
13420 which can conflict with char esd_play_stream(); below. */ 13418 which can conflict with char esd_play_stream(); below. */
13421 #include <assert.h> 13419 #include <assert.h>
13422 /* Override any gcc2 internal prototype to avoid an error. */ 13420 /* Override any gcc2 internal prototype to avoid an error. */
13435 esd_play_stream(); 13433 esd_play_stream();
13436 #endif 13434 #endif
13437 13435
13438 ; return 0; } 13436 ; return 0; }
13439 EOF 13437 EOF
13440 if { (eval echo configure:13441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13438 if { (eval echo configure:13439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13441 rm -rf conftest* 13439 rm -rf conftest*
13442 eval "ac_cv_func_esd_play_stream=yes" 13440 eval "ac_cv_func_esd_play_stream=yes"
13443 else 13441 else
13444 echo "configure: failed program was:" >&5 13442 echo "configure: failed program was:" >&5
13445 cat conftest.$ac_ext >&5 13443 cat conftest.$ac_ext >&5
13486 13484
13487 test -z "$with_tty" && with_tty=yes 13485 test -z "$with_tty" && with_tty=yes
13488 13486
13489 if test "$with_tty" = "yes" ; then 13487 if test "$with_tty" = "yes" ; then
13490 echo "checking for TTY-related features" 1>&6 13488 echo "checking for TTY-related features" 1>&6
13491 echo "configure:13492: checking for TTY-related features" >&5 13489 echo "configure:13490: checking for TTY-related features" >&5
13492 { test "$extra_verbose" = "yes" && cat << \EOF 13490 { test "$extra_verbose" = "yes" && cat << \EOF
13493 Defining HAVE_TTY 13491 Defining HAVE_TTY
13494 EOF 13492 EOF
13495 cat >> confdefs.h <<\EOF 13493 cat >> confdefs.h <<\EOF
13496 #define HAVE_TTY 1 13494 #define HAVE_TTY 1
13502 fi 13500 fi
13503 13501
13504 if test -z "$with_ncurses"; then 13502 if test -z "$with_ncurses"; then
13505 13503
13506 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 13504 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13507 echo "configure:13508: checking for tgetent in -lncurses" >&5 13505 echo "configure:13506: checking for tgetent in -lncurses" >&5
13508 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 13506 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13509 13507
13510 xe_check_libs=" -lncurses " 13508 xe_check_libs=" -lncurses "
13511 cat > conftest.$ac_ext <<EOF 13509 cat > conftest.$ac_ext <<EOF
13512 #line 13513 "configure" 13510 #line 13511 "configure"
13513 #include "confdefs.h" 13511 #include "confdefs.h"
13514 /* Override any gcc2 internal prototype to avoid an error. */ 13512 /* Override any gcc2 internal prototype to avoid an error. */
13515 /* We use char because int might match the return type of a gcc2 13513 /* We use char because int might match the return type of a gcc2
13516 builtin and then its argument prototype would still apply. */ 13514 builtin and then its argument prototype would still apply. */
13517 char tgetent(); 13515 char tgetent();
13518 13516
13519 int main() { 13517 int main() {
13520 tgetent() 13518 tgetent()
13521 ; return 0; } 13519 ; return 0; }
13522 EOF 13520 EOF
13523 if { (eval echo configure:13524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13521 if { (eval echo configure:13522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13524 rm -rf conftest* 13522 rm -rf conftest*
13525 eval "ac_cv_lib_$ac_lib_var=yes" 13523 eval "ac_cv_lib_$ac_lib_var=yes"
13526 else 13524 else
13527 echo "configure: failed program was:" >&5 13525 echo "configure: failed program was:" >&5
13528 cat conftest.$ac_ext >&5 13526 cat conftest.$ac_ext >&5
13551 EOF 13549 EOF
13552 } 13550 }
13553 13551
13554 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 13552 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13555 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 13553 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13556 echo "configure:13557: checking for ncurses/curses.h" >&5 13554 echo "configure:13555: checking for ncurses/curses.h" >&5
13557 13555
13558 cat > conftest.$ac_ext <<EOF 13556 cat > conftest.$ac_ext <<EOF
13559 #line 13560 "configure" 13557 #line 13558 "configure"
13560 #include "confdefs.h" 13558 #include "confdefs.h"
13561 #include <ncurses/curses.h> 13559 #include <ncurses/curses.h>
13562 EOF 13560 EOF
13563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13564 { (eval echo configure:13565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13562 { (eval echo configure:13563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13566 if test -z "$ac_err"; then 13564 if test -z "$ac_err"; then
13567 rm -rf conftest* 13565 rm -rf conftest*
13568 eval "ac_cv_header_$ac_safe=yes" 13566 eval "ac_cv_header_$ac_safe=yes"
13569 else 13567 else
13581 echo "$ac_t""no" 1>&6 13579 echo "$ac_t""no" 1>&6
13582 fi 13580 fi
13583 13581
13584 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 13582 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13585 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 13583 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13586 echo "configure:13587: checking for ncurses/term.h" >&5 13584 echo "configure:13585: checking for ncurses/term.h" >&5
13587 13585
13588 cat > conftest.$ac_ext <<EOF 13586 cat > conftest.$ac_ext <<EOF
13589 #line 13590 "configure" 13587 #line 13588 "configure"
13590 #include "confdefs.h" 13588 #include "confdefs.h"
13591 #include <ncurses/term.h> 13589 #include <ncurses/term.h>
13592 EOF 13590 EOF
13593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13594 { (eval echo configure:13595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13592 { (eval echo configure:13593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13596 if test -z "$ac_err"; then 13594 if test -z "$ac_err"; then
13597 rm -rf conftest* 13595 rm -rf conftest*
13598 eval "ac_cv_header_$ac_safe=yes" 13596 eval "ac_cv_header_$ac_safe=yes"
13599 else 13597 else
13619 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 13617 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13620 save_c_switch_site="$c_switch_site" 13618 save_c_switch_site="$c_switch_site"
13621 c_switch_site="$c_switch_site -I/usr/include/ncurses" 13619 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13622 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 13620 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13623 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 13621 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13624 echo "configure:13625: checking for ncurses/curses.h" >&5 13622 echo "configure:13623: checking for ncurses/curses.h" >&5
13625 13623
13626 cat > conftest.$ac_ext <<EOF 13624 cat > conftest.$ac_ext <<EOF
13627 #line 13628 "configure" 13625 #line 13626 "configure"
13628 #include "confdefs.h" 13626 #include "confdefs.h"
13629 #include <ncurses/curses.h> 13627 #include <ncurses/curses.h>
13630 EOF 13628 EOF
13631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13632 { (eval echo configure:13633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13630 { (eval echo configure:13631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13634 if test -z "$ac_err"; then 13632 if test -z "$ac_err"; then
13635 rm -rf conftest* 13633 rm -rf conftest*
13636 eval "ac_cv_header_$ac_safe=yes" 13634 eval "ac_cv_header_$ac_safe=yes"
13637 else 13635 else
13662 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 13660 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13663 else 13661 else
13664 for lib in curses termlib termcap; do 13662 for lib in curses termlib termcap; do
13665 13663
13666 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 13664 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13667 echo "configure:13668: checking for tgetent in -l$lib" >&5 13665 echo "configure:13666: checking for tgetent in -l$lib" >&5
13668 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 13666 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13669 13667
13670 xe_check_libs=" -l$lib " 13668 xe_check_libs=" -l$lib "
13671 cat > conftest.$ac_ext <<EOF 13669 cat > conftest.$ac_ext <<EOF
13672 #line 13673 "configure" 13670 #line 13671 "configure"
13673 #include "confdefs.h" 13671 #include "confdefs.h"
13674 /* Override any gcc2 internal prototype to avoid an error. */ 13672 /* Override any gcc2 internal prototype to avoid an error. */
13675 /* We use char because int might match the return type of a gcc2 13673 /* We use char because int might match the return type of a gcc2
13676 builtin and then its argument prototype would still apply. */ 13674 builtin and then its argument prototype would still apply. */
13677 char tgetent(); 13675 char tgetent();
13678 13676
13679 int main() { 13677 int main() {
13680 tgetent() 13678 tgetent()
13681 ; return 0; } 13679 ; return 0; }
13682 EOF 13680 EOF
13683 if { (eval echo configure:13684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13681 if { (eval echo configure:13682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13684 rm -rf conftest* 13682 rm -rf conftest*
13685 eval "ac_cv_lib_$ac_lib_var=yes" 13683 eval "ac_cv_lib_$ac_lib_var=yes"
13686 else 13684 else
13687 echo "configure: failed program was:" >&5 13685 echo "configure: failed program was:" >&5
13688 cat conftest.$ac_ext >&5 13686 cat conftest.$ac_ext >&5
13709 if test -n "$libs_termcap"; then 13707 if test -n "$libs_termcap"; then
13710 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 13708 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13711 else 13709 else
13712 13710
13713 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 13711 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13714 echo "configure:13715: checking for tgetent in -lcurses" >&5 13712 echo "configure:13713: checking for tgetent in -lcurses" >&5
13715 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 13713 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13716 13714
13717 xe_check_libs=" -lcurses " 13715 xe_check_libs=" -lcurses "
13718 cat > conftest.$ac_ext <<EOF 13716 cat > conftest.$ac_ext <<EOF
13719 #line 13720 "configure" 13717 #line 13718 "configure"
13720 #include "confdefs.h" 13718 #include "confdefs.h"
13721 /* Override any gcc2 internal prototype to avoid an error. */ 13719 /* Override any gcc2 internal prototype to avoid an error. */
13722 /* We use char because int might match the return type of a gcc2 13720 /* We use char because int might match the return type of a gcc2
13723 builtin and then its argument prototype would still apply. */ 13721 builtin and then its argument prototype would still apply. */
13724 char tgetent(); 13722 char tgetent();
13725 13723
13726 int main() { 13724 int main() {
13727 tgetent() 13725 tgetent()
13728 ; return 0; } 13726 ; return 0; }
13729 EOF 13727 EOF
13730 if { (eval echo configure:13731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13728 if { (eval echo configure:13729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13731 rm -rf conftest* 13729 rm -rf conftest*
13732 eval "ac_cv_lib_$ac_lib_var=yes" 13730 eval "ac_cv_lib_$ac_lib_var=yes"
13733 else 13731 else
13734 echo "configure: failed program was:" >&5 13732 echo "configure: failed program was:" >&5
13735 cat conftest.$ac_ext >&5 13733 cat conftest.$ac_ext >&5
13743 echo "$ac_t""yes" 1>&6 13741 echo "$ac_t""yes" 1>&6
13744 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 13742 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13745 else 13743 else
13746 echo "$ac_t""no" 1>&6 13744 echo "$ac_t""no" 1>&6
13747 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 13745 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13748 echo "configure:13749: checking for tgetent in -ltermcap" >&5 13746 echo "configure:13747: checking for tgetent in -ltermcap" >&5
13749 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 13747 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13750 13748
13751 xe_check_libs=" -ltermcap " 13749 xe_check_libs=" -ltermcap "
13752 cat > conftest.$ac_ext <<EOF 13750 cat > conftest.$ac_ext <<EOF
13753 #line 13754 "configure" 13751 #line 13752 "configure"
13754 #include "confdefs.h" 13752 #include "confdefs.h"
13755 /* Override any gcc2 internal prototype to avoid an error. */ 13753 /* Override any gcc2 internal prototype to avoid an error. */
13756 /* We use char because int might match the return type of a gcc2 13754 /* We use char because int might match the return type of a gcc2
13757 builtin and then its argument prototype would still apply. */ 13755 builtin and then its argument prototype would still apply. */
13758 char tgetent(); 13756 char tgetent();
13759 13757
13760 int main() { 13758 int main() {
13761 tgetent() 13759 tgetent()
13762 ; return 0; } 13760 ; return 0; }
13763 EOF 13761 EOF
13764 if { (eval echo configure:13765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13762 if { (eval echo configure:13763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13765 rm -rf conftest* 13763 rm -rf conftest*
13766 eval "ac_cv_lib_$ac_lib_var=yes" 13764 eval "ac_cv_lib_$ac_lib_var=yes"
13767 else 13765 else
13768 echo "configure: failed program was:" >&5 13766 echo "configure: failed program was:" >&5
13769 cat conftest.$ac_ext >&5 13767 cat conftest.$ac_ext >&5
13807 } 13805 }
13808 13806
13809 13807
13810 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 13808 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13811 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 13809 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13812 echo "configure:13813: checking for gpm.h" >&5 13810 echo "configure:13811: checking for gpm.h" >&5
13813 13811
13814 cat > conftest.$ac_ext <<EOF 13812 cat > conftest.$ac_ext <<EOF
13815 #line 13816 "configure" 13813 #line 13814 "configure"
13816 #include "confdefs.h" 13814 #include "confdefs.h"
13817 #include <gpm.h> 13815 #include <gpm.h>
13818 EOF 13816 EOF
13819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13820 { (eval echo configure:13821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13818 { (eval echo configure:13819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13819 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13822 if test -z "$ac_err"; then 13820 if test -z "$ac_err"; then
13823 rm -rf conftest* 13821 rm -rf conftest*
13824 eval "ac_cv_header_$ac_safe=yes" 13822 eval "ac_cv_header_$ac_safe=yes"
13825 else 13823 else
13838 with_gpm=no 13836 with_gpm=no
13839 fi 13837 fi
13840 } 13838 }
13841 test -z "$with_gpm" && { 13839 test -z "$with_gpm" && {
13842 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 13840 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13843 echo "configure:13844: checking for Gpm_Open in -lgpm" >&5 13841 echo "configure:13842: checking for Gpm_Open in -lgpm" >&5
13844 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 13842 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13845 13843
13846 xe_check_libs=" -lgpm " 13844 xe_check_libs=" -lgpm "
13847 cat > conftest.$ac_ext <<EOF 13845 cat > conftest.$ac_ext <<EOF
13848 #line 13849 "configure" 13846 #line 13847 "configure"
13849 #include "confdefs.h" 13847 #include "confdefs.h"
13850 /* Override any gcc2 internal prototype to avoid an error. */ 13848 /* Override any gcc2 internal prototype to avoid an error. */
13851 /* We use char because int might match the return type of a gcc2 13849 /* We use char because int might match the return type of a gcc2
13852 builtin and then its argument prototype would still apply. */ 13850 builtin and then its argument prototype would still apply. */
13853 char Gpm_Open(); 13851 char Gpm_Open();
13854 13852
13855 int main() { 13853 int main() {
13856 Gpm_Open() 13854 Gpm_Open()
13857 ; return 0; } 13855 ; return 0; }
13858 EOF 13856 EOF
13859 if { (eval echo configure:13860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13857 if { (eval echo configure:13858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13860 rm -rf conftest* 13858 rm -rf conftest*
13861 eval "ac_cv_lib_$ac_lib_var=yes" 13859 eval "ac_cv_lib_$ac_lib_var=yes"
13862 else 13860 else
13863 echo "configure: failed program was:" >&5 13861 echo "configure: failed program was:" >&5
13864 cat conftest.$ac_ext >&5 13862 cat conftest.$ac_ext >&5
13897 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2 13895 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
13898 fi 13896 fi
13899 eval "with_${feature}=no" 13897 eval "with_${feature}=no"
13900 done 13898 done
13901 fi 13899 fi
13902 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then 13900 test "$with_x11" = "yes" -o "$with_tty" = "yes" -o "$need_event_unixoid" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
13903 echo " xemacs will be linked with \"event-unixoid.o\"" 13901 echo " xemacs will be linked with \"event-unixoid.o\""
13904 fi 13902 fi
13905 13903
13906 13904
13907 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 13905 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13908 != "no no no" && echo "checking for database support" 1>&6 13906 != "no no no" && echo "checking for database support" 1>&6
13909 echo "configure:13910: checking for database support" >&5 13907 echo "configure:13908: checking for database support" >&5
13910 13908
13911 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 13909 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13912 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 13910 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13913 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 13911 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13914 echo "configure:13915: checking for ndbm.h" >&5 13912 echo "configure:13913: checking for ndbm.h" >&5
13915 13913
13916 cat > conftest.$ac_ext <<EOF 13914 cat > conftest.$ac_ext <<EOF
13917 #line 13918 "configure" 13915 #line 13916 "configure"
13918 #include "confdefs.h" 13916 #include "confdefs.h"
13919 #include <ndbm.h> 13917 #include <ndbm.h>
13920 EOF 13918 EOF
13921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13922 { (eval echo configure:13923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13920 { (eval echo configure:13921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13924 if test -z "$ac_err"; then 13922 if test -z "$ac_err"; then
13925 rm -rf conftest* 13923 rm -rf conftest*
13926 eval "ac_cv_header_$ac_safe=yes" 13924 eval "ac_cv_header_$ac_safe=yes"
13927 else 13925 else
13947 fi 13945 fi
13948 13946
13949 if test "$with_database_gdbm" != "no"; then 13947 if test "$with_database_gdbm" != "no"; then
13950 13948
13951 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 13949 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13952 echo "configure:13953: checking for dbm_open in -lgdbm" >&5 13950 echo "configure:13951: checking for dbm_open in -lgdbm" >&5
13953 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 13951 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13954 13952
13955 xe_check_libs=" -lgdbm " 13953 xe_check_libs=" -lgdbm "
13956 cat > conftest.$ac_ext <<EOF 13954 cat > conftest.$ac_ext <<EOF
13957 #line 13958 "configure" 13955 #line 13956 "configure"
13958 #include "confdefs.h" 13956 #include "confdefs.h"
13959 /* Override any gcc2 internal prototype to avoid an error. */ 13957 /* Override any gcc2 internal prototype to avoid an error. */
13960 /* We use char because int might match the return type of a gcc2 13958 /* We use char because int might match the return type of a gcc2
13961 builtin and then its argument prototype would still apply. */ 13959 builtin and then its argument prototype would still apply. */
13962 char dbm_open(); 13960 char dbm_open();
13963 13961
13964 int main() { 13962 int main() {
13965 dbm_open() 13963 dbm_open()
13966 ; return 0; } 13964 ; return 0; }
13967 EOF 13965 EOF
13968 if { (eval echo configure:13969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13966 if { (eval echo configure:13967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13969 rm -rf conftest* 13967 rm -rf conftest*
13970 eval "ac_cv_lib_$ac_lib_var=yes" 13968 eval "ac_cv_lib_$ac_lib_var=yes"
13971 else 13969 else
13972 echo "configure: failed program was:" >&5 13970 echo "configure: failed program was:" >&5
13973 cat conftest.$ac_ext >&5 13971 cat conftest.$ac_ext >&5
13991 13989
13992 fi 13990 fi
13993 13991
13994 if test "$with_database_dbm" != "no"; then 13992 if test "$with_database_dbm" != "no"; then
13995 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 13993 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13996 echo "configure:13997: checking for dbm_open" >&5 13994 echo "configure:13995: checking for dbm_open" >&5
13997 13995
13998 cat > conftest.$ac_ext <<EOF 13996 cat > conftest.$ac_ext <<EOF
13999 #line 14000 "configure" 13997 #line 13998 "configure"
14000 #include "confdefs.h" 13998 #include "confdefs.h"
14001 /* System header to define __stub macros and hopefully few prototypes, 13999 /* System header to define __stub macros and hopefully few prototypes,
14002 which can conflict with char dbm_open(); below. */ 14000 which can conflict with char dbm_open(); below. */
14003 #include <assert.h> 14001 #include <assert.h>
14004 /* Override any gcc2 internal prototype to avoid an error. */ 14002 /* Override any gcc2 internal prototype to avoid an error. */
14017 dbm_open(); 14015 dbm_open();
14018 #endif 14016 #endif
14019 14017
14020 ; return 0; } 14018 ; return 0; }
14021 EOF 14019 EOF
14022 if { (eval echo configure:14023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14020 if { (eval echo configure:14021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14023 rm -rf conftest* 14021 rm -rf conftest*
14024 eval "ac_cv_func_dbm_open=yes" 14022 eval "ac_cv_func_dbm_open=yes"
14025 else 14023 else
14026 echo "configure: failed program was:" >&5 14024 echo "configure: failed program was:" >&5
14027 cat conftest.$ac_ext >&5 14025 cat conftest.$ac_ext >&5
14036 else 14034 else
14037 echo "$ac_t""no" 1>&6 14035 echo "$ac_t""no" 1>&6
14038 14036
14039 14037
14040 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 14038 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14041 echo "configure:14042: checking for dbm_open in -ldbm" >&5 14039 echo "configure:14040: checking for dbm_open in -ldbm" >&5
14042 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 14040 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14043 14041
14044 xe_check_libs=" -ldbm " 14042 xe_check_libs=" -ldbm "
14045 cat > conftest.$ac_ext <<EOF 14043 cat > conftest.$ac_ext <<EOF
14046 #line 14047 "configure" 14044 #line 14045 "configure"
14047 #include "confdefs.h" 14045 #include "confdefs.h"
14048 /* Override any gcc2 internal prototype to avoid an error. */ 14046 /* Override any gcc2 internal prototype to avoid an error. */
14049 /* We use char because int might match the return type of a gcc2 14047 /* We use char because int might match the return type of a gcc2
14050 builtin and then its argument prototype would still apply. */ 14048 builtin and then its argument prototype would still apply. */
14051 char dbm_open(); 14049 char dbm_open();
14052 14050
14053 int main() { 14051 int main() {
14054 dbm_open() 14052 dbm_open()
14055 ; return 0; } 14053 ; return 0; }
14056 EOF 14054 EOF
14057 if { (eval echo configure:14058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14055 if { (eval echo configure:14056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14058 rm -rf conftest* 14056 rm -rf conftest*
14059 eval "ac_cv_lib_$ac_lib_var=yes" 14057 eval "ac_cv_lib_$ac_lib_var=yes"
14060 else 14058 else
14061 echo "configure: failed program was:" >&5 14059 echo "configure: failed program was:" >&5
14062 cat conftest.$ac_ext >&5 14060 cat conftest.$ac_ext >&5
14093 } 14091 }
14094 14092
14095 14093
14096 if test "$with_database_berkdb" != "no"; then 14094 if test "$with_database_berkdb" != "no"; then
14097 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 14095 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14098 echo "configure:14099: checking for Berkeley db.h" >&5 14096 echo "configure:14097: checking for Berkeley db.h" >&5
14099 for header in "db/db.h" "db.h"; do 14097 for header in "db/db.h" "db.h"; do
14100 cat > conftest.$ac_ext <<EOF 14098 cat > conftest.$ac_ext <<EOF
14101 #line 14102 "configure" 14099 #line 14100 "configure"
14102 #include "confdefs.h" 14100 #include "confdefs.h"
14103 14101
14104 #include <stdlib.h> 14102 #include <stdlib.h>
14105 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 14103 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14106 #ifdef HAVE_INTTYPES_H 14104 #ifdef HAVE_INTTYPES_H
14118 14116
14119 int main() { 14117 int main() {
14120 14118
14121 ; return 0; } 14119 ; return 0; }
14122 EOF 14120 EOF
14123 if { (eval echo configure:14124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14121 if { (eval echo configure:14122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14124 rm -rf conftest* 14122 rm -rf conftest*
14125 db_h_file="$header"; break 14123 db_h_file="$header"; break
14126 else 14124 else
14127 echo "configure: failed program was:" >&5 14125 echo "configure: failed program was:" >&5
14128 cat conftest.$ac_ext >&5 14126 cat conftest.$ac_ext >&5
14134 else echo "$ac_t""$db_h_file" 1>&6 14132 else echo "$ac_t""$db_h_file" 1>&6
14135 fi 14133 fi
14136 14134
14137 if test "$with_database_berkdb" != "no"; then 14135 if test "$with_database_berkdb" != "no"; then
14138 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 14136 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14139 echo "configure:14140: checking for Berkeley DB version" >&5 14137 echo "configure:14138: checking for Berkeley DB version" >&5
14140 cat > conftest.$ac_ext <<EOF 14138 cat > conftest.$ac_ext <<EOF
14141 #line 14142 "configure" 14139 #line 14140 "configure"
14142 #include "confdefs.h" 14140 #include "confdefs.h"
14143 #include <$db_h_file> 14141 #include <$db_h_file>
14144 #if DB_VERSION_MAJOR > 1 14142 #if DB_VERSION_MAJOR > 1
14145 yes 14143 yes
14146 #endif 14144 #endif
14148 EOF 14146 EOF
14149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14150 egrep "yes" >/dev/null 2>&1; then 14148 egrep "yes" >/dev/null 2>&1; then
14151 rm -rf conftest* 14149 rm -rf conftest*
14152 cat > conftest.$ac_ext <<EOF 14150 cat > conftest.$ac_ext <<EOF
14153 #line 14154 "configure" 14151 #line 14152 "configure"
14154 #include "confdefs.h" 14152 #include "confdefs.h"
14155 #include <$db_h_file> 14153 #include <$db_h_file>
14156 #if DB_VERSION_MAJOR > 2 14154 #if DB_VERSION_MAJOR > 2
14157 yes 14155 yes
14158 #endif 14156 #endif
14175 echo "$ac_t""1" 1>&6; dbfunc=dbopen 14173 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14176 fi 14174 fi
14177 rm -f conftest* 14175 rm -f conftest*
14178 14176
14179 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 14177 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14180 echo "configure:14181: checking for $dbfunc" >&5 14178 echo "configure:14179: checking for $dbfunc" >&5
14181 14179
14182 cat > conftest.$ac_ext <<EOF 14180 cat > conftest.$ac_ext <<EOF
14183 #line 14184 "configure" 14181 #line 14182 "configure"
14184 #include "confdefs.h" 14182 #include "confdefs.h"
14185 /* System header to define __stub macros and hopefully few prototypes, 14183 /* System header to define __stub macros and hopefully few prototypes,
14186 which can conflict with char $dbfunc(); below. */ 14184 which can conflict with char $dbfunc(); below. */
14187 #include <assert.h> 14185 #include <assert.h>
14188 /* Override any gcc2 internal prototype to avoid an error. */ 14186 /* Override any gcc2 internal prototype to avoid an error. */
14201 $dbfunc(); 14199 $dbfunc();
14202 #endif 14200 #endif
14203 14201
14204 ; return 0; } 14202 ; return 0; }
14205 EOF 14203 EOF
14206 if { (eval echo configure:14207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14204 if { (eval echo configure:14205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14207 rm -rf conftest* 14205 rm -rf conftest*
14208 eval "ac_cv_func_$dbfunc=yes" 14206 eval "ac_cv_func_$dbfunc=yes"
14209 else 14207 else
14210 echo "configure: failed program was:" >&5 14208 echo "configure: failed program was:" >&5
14211 cat conftest.$ac_ext >&5 14209 cat conftest.$ac_ext >&5
14220 else 14218 else
14221 echo "$ac_t""no" 1>&6 14219 echo "$ac_t""no" 1>&6
14222 14220
14223 14221
14224 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 14222 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14225 echo "configure:14226: checking for $dbfunc in -ldb" >&5 14223 echo "configure:14224: checking for $dbfunc in -ldb" >&5
14226 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 14224 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14227 14225
14228 xe_check_libs=" -ldb " 14226 xe_check_libs=" -ldb "
14229 cat > conftest.$ac_ext <<EOF 14227 cat > conftest.$ac_ext <<EOF
14230 #line 14231 "configure" 14228 #line 14229 "configure"
14231 #include "confdefs.h" 14229 #include "confdefs.h"
14232 /* Override any gcc2 internal prototype to avoid an error. */ 14230 /* Override any gcc2 internal prototype to avoid an error. */
14233 /* We use char because int might match the return type of a gcc2 14231 /* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */ 14232 builtin and then its argument prototype would still apply. */
14235 char $dbfunc(); 14233 char $dbfunc();
14236 14234
14237 int main() { 14235 int main() {
14238 $dbfunc() 14236 $dbfunc()
14239 ; return 0; } 14237 ; return 0; }
14240 EOF 14238 EOF
14241 if { (eval echo configure:14242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14239 if { (eval echo configure:14240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14242 rm -rf conftest* 14240 rm -rf conftest*
14243 eval "ac_cv_lib_$ac_lib_var=yes" 14241 eval "ac_cv_lib_$ac_lib_var=yes"
14244 else 14242 else
14245 echo "configure: failed program was:" >&5 14243 echo "configure: failed program was:" >&5
14246 cat conftest.$ac_ext >&5 14244 cat conftest.$ac_ext >&5
14300 fi 14298 fi
14301 14299
14302 if test "$with_socks" = "yes"; then 14300 if test "$with_socks" = "yes"; then
14303 14301
14304 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 14302 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14305 echo "configure:14306: checking for SOCKSinit in -lsocks" >&5 14303 echo "configure:14304: checking for SOCKSinit in -lsocks" >&5
14306 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 14304 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14307 14305
14308 xe_check_libs=" -lsocks " 14306 xe_check_libs=" -lsocks "
14309 cat > conftest.$ac_ext <<EOF 14307 cat > conftest.$ac_ext <<EOF
14310 #line 14311 "configure" 14308 #line 14309 "configure"
14311 #include "confdefs.h" 14309 #include "confdefs.h"
14312 /* Override any gcc2 internal prototype to avoid an error. */ 14310 /* Override any gcc2 internal prototype to avoid an error. */
14313 /* We use char because int might match the return type of a gcc2 14311 /* We use char because int might match the return type of a gcc2
14314 builtin and then its argument prototype would still apply. */ 14312 builtin and then its argument prototype would still apply. */
14315 char SOCKSinit(); 14313 char SOCKSinit();
14316 14314
14317 int main() { 14315 int main() {
14318 SOCKSinit() 14316 SOCKSinit()
14319 ; return 0; } 14317 ; return 0; }
14320 EOF 14318 EOF
14321 if { (eval echo configure:14322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14319 if { (eval echo configure:14320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14322 rm -rf conftest* 14320 rm -rf conftest*
14323 eval "ac_cv_lib_$ac_lib_var=yes" 14321 eval "ac_cv_lib_$ac_lib_var=yes"
14324 else 14322 else
14325 echo "configure: failed program was:" >&5 14323 echo "configure: failed program was:" >&5
14326 cat conftest.$ac_ext >&5 14324 cat conftest.$ac_ext >&5
14371 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 14369 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14372 fi 14370 fi
14373 14371
14374 if test "$with_modules" != "no"; then 14372 if test "$with_modules" != "no"; then
14375 echo "checking for module support" 1>&6 14373 echo "checking for module support" 1>&6
14376 echo "configure:14377: checking for module support" >&5 14374 echo "configure:14375: checking for module support" >&5
14377 14375
14378 if test "$with_msw" = "yes"; then 14376 if test "$with_msw" = "yes"; then
14379 have_dl=yes; 14377 have_dl=yes;
14380 else 14378 else
14381 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 14379 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14382 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 14380 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14383 echo "configure:14384: checking for dlfcn.h" >&5 14381 echo "configure:14382: checking for dlfcn.h" >&5
14384 14382
14385 cat > conftest.$ac_ext <<EOF 14383 cat > conftest.$ac_ext <<EOF
14386 #line 14387 "configure" 14384 #line 14385 "configure"
14387 #include "confdefs.h" 14385 #include "confdefs.h"
14388 #include <dlfcn.h> 14386 #include <dlfcn.h>
14389 EOF 14387 EOF
14390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14391 { (eval echo configure:14392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14389 { (eval echo configure:14390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14393 if test -z "$ac_err"; then 14391 if test -z "$ac_err"; then
14394 rm -rf conftest* 14392 rm -rf conftest*
14395 eval "ac_cv_header_$ac_safe=yes" 14393 eval "ac_cv_header_$ac_safe=yes"
14396 else 14394 else
14403 rm -f conftest* 14401 rm -f conftest*
14404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14405 echo "$ac_t""yes" 1>&6 14403 echo "$ac_t""yes" 1>&6
14406 14404
14407 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 14405 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14408 echo "configure:14409: checking for dlopen in -lc" >&5 14406 echo "configure:14407: checking for dlopen in -lc" >&5
14409 cat > conftest.$ac_ext <<EOF 14407 cat > conftest.$ac_ext <<EOF
14410 #line 14411 "configure" 14408 #line 14409 "configure"
14411 #include "confdefs.h" 14409 #include "confdefs.h"
14412 #include <dlfcn.h> 14410 #include <dlfcn.h>
14413 int main() { 14411 int main() {
14414 dlopen ("", 0); 14412 dlopen ("", 0);
14415 ; return 0; } 14413 ; return 0; }
14416 EOF 14414 EOF
14417 if { (eval echo configure:14418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14415 if { (eval echo configure:14416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14418 rm -rf conftest* 14416 rm -rf conftest*
14419 have_dl=yes 14417 have_dl=yes
14420 else 14418 else
14421 echo "configure: failed program was:" >&5 14419 echo "configure: failed program was:" >&5
14422 cat conftest.$ac_ext >&5 14420 cat conftest.$ac_ext >&5
14423 rm -rf conftest* 14421 rm -rf conftest*
14424 14422
14425 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 14423 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14426 echo "configure:14427: checking for dlopen in -ldl" >&5 14424 echo "configure:14425: checking for dlopen in -ldl" >&5
14427 ac_save_LIBS="$LIBS" 14425 ac_save_LIBS="$LIBS"
14428 LIBS="-ldl $LIBS" 14426 LIBS="-ldl $LIBS"
14429 cat > conftest.$ac_ext <<EOF 14427 cat > conftest.$ac_ext <<EOF
14430 #line 14431 "configure" 14428 #line 14429 "configure"
14431 #include "confdefs.h" 14429 #include "confdefs.h"
14432 #include <dlfcn.h> 14430 #include <dlfcn.h>
14433 int main() { 14431 int main() {
14434 dlopen ("", 0); 14432 dlopen ("", 0);
14435 ; return 0; } 14433 ; return 0; }
14436 EOF 14434 EOF
14437 if { (eval echo configure:14438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14435 if { (eval echo configure:14436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14438 rm -rf conftest* 14436 rm -rf conftest*
14439 have_dl=yes 14437 have_dl=yes
14440 else 14438 else
14441 echo "configure: failed program was:" >&5 14439 echo "configure: failed program was:" >&5
14442 cat conftest.$ac_ext >&5 14440 cat conftest.$ac_ext >&5
14461 } 14459 }
14462 14460
14463 else 14461 else
14464 14462
14465 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 14463 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14466 echo "configure:14467: checking for shl_load in -ldld" >&5 14464 echo "configure:14465: checking for shl_load in -ldld" >&5
14467 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 14465 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14468 14466
14469 xe_check_libs=" -ldld " 14467 xe_check_libs=" -ldld "
14470 cat > conftest.$ac_ext <<EOF 14468 cat > conftest.$ac_ext <<EOF
14471 #line 14472 "configure" 14469 #line 14470 "configure"
14472 #include "confdefs.h" 14470 #include "confdefs.h"
14473 /* Override any gcc2 internal prototype to avoid an error. */ 14471 /* Override any gcc2 internal prototype to avoid an error. */
14474 /* We use char because int might match the return type of a gcc2 14472 /* We use char because int might match the return type of a gcc2
14475 builtin and then its argument prototype would still apply. */ 14473 builtin and then its argument prototype would still apply. */
14476 char shl_load(); 14474 char shl_load();
14477 14475
14478 int main() { 14476 int main() {
14479 shl_load() 14477 shl_load()
14480 ; return 0; } 14478 ; return 0; }
14481 EOF 14479 EOF
14482 if { (eval echo configure:14483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14480 if { (eval echo configure:14481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14483 rm -rf conftest* 14481 rm -rf conftest*
14484 eval "ac_cv_lib_$ac_lib_var=yes" 14482 eval "ac_cv_lib_$ac_lib_var=yes"
14485 else 14483 else
14486 echo "configure: failed program was:" >&5 14484 echo "configure: failed program was:" >&5
14487 cat conftest.$ac_ext >&5 14485 cat conftest.$ac_ext >&5
14504 14502
14505 else 14503 else
14506 echo "$ac_t""no" 1>&6 14504 echo "$ac_t""no" 1>&6
14507 14505
14508 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 14506 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14509 echo "configure:14510: checking for dld_init in -ldld" >&5 14507 echo "configure:14508: checking for dld_init in -ldld" >&5
14510 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 14508 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14511 14509
14512 xe_check_libs=" -ldld " 14510 xe_check_libs=" -ldld "
14513 cat > conftest.$ac_ext <<EOF 14511 cat > conftest.$ac_ext <<EOF
14514 #line 14515 "configure" 14512 #line 14513 "configure"
14515 #include "confdefs.h" 14513 #include "confdefs.h"
14516 /* Override any gcc2 internal prototype to avoid an error. */ 14514 /* Override any gcc2 internal prototype to avoid an error. */
14517 /* We use char because int might match the return type of a gcc2 14515 /* We use char because int might match the return type of a gcc2
14518 builtin and then its argument prototype would still apply. */ 14516 builtin and then its argument prototype would still apply. */
14519 char dld_init(); 14517 char dld_init();
14520 14518
14521 int main() { 14519 int main() {
14522 dld_init() 14520 dld_init()
14523 ; return 0; } 14521 ; return 0; }
14524 EOF 14522 EOF
14525 if { (eval echo configure:14526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14523 if { (eval echo configure:14524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14526 rm -rf conftest* 14524 rm -rf conftest*
14527 eval "ac_cv_lib_$ac_lib_var=yes" 14525 eval "ac_cv_lib_$ac_lib_var=yes"
14528 else 14526 else
14529 echo "configure: failed program was:" >&5 14527 echo "configure: failed program was:" >&5
14530 cat conftest.$ac_ext >&5 14528 cat conftest.$ac_ext >&5
14565 ld_dynamic_link_flags= 14563 ld_dynamic_link_flags=
14566 xehost=$canonical 14564 xehost=$canonical
14567 xealias=$internal_configuration 14565 xealias=$internal_configuration
14568 14566
14569 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 14567 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14570 echo "configure:14571: checking how to build dynamic libraries for ${xehost}" >&5 14568 echo "configure:14569: checking how to build dynamic libraries for ${xehost}" >&5
14571 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 14569 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14572 case "$xehost" in 14570 case "$xehost" in
14573 *-*-linux-gnu*) ;; 14571 *-*-linux-gnu*) ;;
14574 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 14572 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14575 esac 14573 esac
14593 # Now see if the compiler is really GCC. 14591 # Now see if the compiler is really GCC.
14594 if test "$GCC" = "yes"; then 14592 if test "$GCC" = "yes"; then
14595 XEGCC=yes 14593 XEGCC=yes
14596 else 14594 else
14597 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 14595 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14598 echo "configure:14599: checking checking whether we are using GNU C" >&5 14596 echo "configure:14597: checking checking whether we are using GNU C" >&5
14599 cat > conftest.$ac_ext <<EOF 14597 cat > conftest.$ac_ext <<EOF
14600 #line 14601 "configure" 14598 #line 14599 "configure"
14601 #include "confdefs.h" 14599 #include "confdefs.h"
14602 14600
14603 #ifdef __GNUC__ 14601 #ifdef __GNUC__
14604 yes; 14602 yes;
14605 #endif 14603 #endif
14617 14615
14618 echo "$ac_t""${XEGCC}" 1>&6 14616 echo "$ac_t""${XEGCC}" 1>&6
14619 fi 14617 fi
14620 14618
14621 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 14619 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14622 echo "configure:14623: checking how to produce PIC code" >&5 14620 echo "configure:14621: checking how to produce PIC code" >&5
14623 wl= 14621 wl=
14624 14622
14625 can_build_shared=yes 14623 can_build_shared=yes
14626 if test "$XEGCC" = yes; then 14624 if test "$XEGCC" = yes; then
14627 wl='-Wl,' 14625 wl='-Wl,'
14718 if test -n "$dll_cflags"; then 14716 if test -n "$dll_cflags"; then
14719 echo "$ac_t""${dll_cflags}" 1>&6 14717 echo "$ac_t""${dll_cflags}" 1>&6
14720 14718
14721 # Check to make sure the dll_cflags actually works. 14719 # Check to make sure the dll_cflags actually works.
14722 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 14720 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14723 echo "configure:14724: checking if PIC flag ${dll_cflags} really works" >&5 14721 echo "configure:14722: checking if PIC flag ${dll_cflags} really works" >&5
14724 save_CFLAGS="$CFLAGS" 14722 save_CFLAGS="$CFLAGS"
14725 CFLAGS="$CFLAGS $dll_cflags -DPIC" 14723 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14726 cat > conftest.$ac_ext <<EOF 14724 cat > conftest.$ac_ext <<EOF
14727 #line 14728 "configure" 14725 #line 14726 "configure"
14728 #include "confdefs.h" 14726 #include "confdefs.h"
14729 14727
14730 int main() { 14728 int main() {
14731 int x=0; 14729 int x=0;
14732 ; return 0; } 14730 ; return 0; }
14733 EOF 14731 EOF
14734 if { (eval echo configure:14735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14732 if { (eval echo configure:14733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14735 rm -rf conftest* 14733 rm -rf conftest*
14736 14734
14737 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 14735 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14738 # reports no error. So, we need to grep stderr for (Bundled). 14736 # reports no error. So, we need to grep stderr for (Bundled).
14739 if grep '(Bundled)' config.log >/dev/null; then 14737 if grep '(Bundled)' config.log >/dev/null; then
14760 if test "$can_build_shared" = "yes"; then 14758 if test "$can_build_shared" = "yes"; then
14761 cc_produces_so=no 14759 cc_produces_so=no
14762 xldf= 14760 xldf=
14763 xcldf= 14761 xcldf=
14764 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 14762 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14765 echo "configure:14766: checking if C compiler can produce shared libraries" >&5 14763 echo "configure:14764: checking if C compiler can produce shared libraries" >&5
14766 if test "$XEGCC" = yes; then 14764 if test "$XEGCC" = yes; then
14767 xcldf="-shared" 14765 xcldf="-shared"
14768 xldf="-shared" 14766 xldf="-shared"
14769 else # Not using GCC 14767 else # Not using GCC
14770 case "$xehost_os" in 14768 case "$xehost_os" in
14811 LDFLAGS="$xcldf $LDFLAGS" 14809 LDFLAGS="$xcldf $LDFLAGS"
14812 LIBS= 14810 LIBS=
14813 xe_libs= 14811 xe_libs=
14814 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 14812 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14815 cat > conftest.$ac_ext <<EOF 14813 cat > conftest.$ac_ext <<EOF
14816 #line 14817 "configure" 14814 #line 14815 "configure"
14817 #include "confdefs.h" 14815 #include "confdefs.h"
14818 14816
14819 int main() { 14817 int main() {
14820 int x=0; 14818 int x=0;
14821 ; return 0; } 14819 ; return 0; }
14822 EOF 14820 EOF
14823 if { (eval echo configure:14824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14821 if { (eval echo configure:14822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14824 rm -rf conftest* 14822 rm -rf conftest*
14825 cc_produces_so=yes 14823 cc_produces_so=yes
14826 else 14824 else
14827 echo "configure: failed program was:" >&5 14825 echo "configure: failed program was:" >&5
14828 cat conftest.$ac_ext >&5 14826 cat conftest.$ac_ext >&5
14843 if test -z "$LTLD"; then 14841 if test -z "$LTLD"; then
14844 ac_prog=ld 14842 ac_prog=ld
14845 if test "$XEGCC" = yes; then 14843 if test "$XEGCC" = yes; then
14846 # Check if gcc -print-prog-name=ld gives a path. 14844 # Check if gcc -print-prog-name=ld gives a path.
14847 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 14845 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14848 echo "configure:14849: checking for ld used by GCC" >&5 14846 echo "configure:14847: checking for ld used by GCC" >&5
14849 ac_prog=`($CC -print-prog-name=ld) 2>&5` 14847 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14850 case "$ac_prog" in 14848 case "$ac_prog" in
14851 # Accept absolute paths. 14849 # Accept absolute paths.
14852 /*) 14850 /*)
14853 if test -z "$LTLD"; then 14851 if test -z "$LTLD"; then
14868 with_gnu_ld=unknown 14866 with_gnu_ld=unknown
14869 ;; 14867 ;;
14870 esac 14868 esac
14871 else 14869 else
14872 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 14870 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14873 echo "configure:14874: checking for GNU ld" >&5 14871 echo "configure:14872: checking for GNU ld" >&5
14874 fi 14872 fi
14875 14873
14876 if test -z "$LTLD"; then 14874 if test -z "$LTLD"; then
14877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 14875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14878 for ac_dir in $PATH; do 14876 for ac_dir in $PATH; do
14906 14904
14907 ld_dynamic_link_flags= 14905 ld_dynamic_link_flags=
14908 14906
14909 # Check to see if it really is or isn't GNU ld. 14907 # Check to see if it really is or isn't GNU ld.
14910 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 14908 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14911 echo "configure:14912: checking if the linker is GNU ld" >&5 14909 echo "configure:14910: checking if the linker is GNU ld" >&5
14912 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 14910 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14913 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 14911 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14914 xe_gnu_ld=yes 14912 xe_gnu_ld=yes
14915 else 14913 else
14916 xe_gnu_ld=no 14914 xe_gnu_ld=no
14934 ld_shlibs=yes 14932 ld_shlibs=yes
14935 else 14933 else
14936 # OK - only NOW do we futz about with ld. 14934 # OK - only NOW do we futz about with ld.
14937 # See if the linker supports building shared libraries. 14935 # See if the linker supports building shared libraries.
14938 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 14936 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14939 echo "configure:14940: checking whether the linker supports shared libraries" >&5 14937 echo "configure:14938: checking whether the linker supports shared libraries" >&5
14940 dll_ld=$CC 14938 dll_ld=$CC
14941 dll_ldflags=$LDFLAGS 14939 dll_ldflags=$LDFLAGS
14942 ld_shlibs=yes 14940 ld_shlibs=yes
14943 can_build_shared=yes 14941 can_build_shared=yes
14944 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 14942 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
15145 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 15143 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15146 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 15144 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15147 for ac_func in dlerror _dlerror 15145 for ac_func in dlerror _dlerror
15148 do 15146 do
15149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15150 echo "configure:15151: checking for $ac_func" >&5 15148 echo "configure:15149: checking for $ac_func" >&5
15151 15149
15152 cat > conftest.$ac_ext <<EOF 15150 cat > conftest.$ac_ext <<EOF
15153 #line 15154 "configure" 15151 #line 15152 "configure"
15154 #include "confdefs.h" 15152 #include "confdefs.h"
15155 /* System header to define __stub macros and hopefully few prototypes, 15153 /* System header to define __stub macros and hopefully few prototypes,
15156 which can conflict with char $ac_func(); below. */ 15154 which can conflict with char $ac_func(); below. */
15157 #include <assert.h> 15155 #include <assert.h>
15158 /* Override any gcc2 internal prototype to avoid an error. */ 15156 /* Override any gcc2 internal prototype to avoid an error. */
15171 $ac_func(); 15169 $ac_func();
15172 #endif 15170 #endif
15173 15171
15174 ; return 0; } 15172 ; return 0; }
15175 EOF 15173 EOF
15176 if { (eval echo configure:15177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15174 if { (eval echo configure:15175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15177 rm -rf conftest* 15175 rm -rf conftest*
15178 eval "ac_cv_func_$ac_func=yes" 15176 eval "ac_cv_func_$ac_func=yes"
15179 else 15177 else
15180 echo "configure: failed program was:" >&5 15178 echo "configure: failed program was:" >&5
15181 cat conftest.$ac_ext >&5 15179 cat conftest.$ac_ext >&5
15210 with_modules=no 15208 with_modules=no
15211 fi 15209 fi
15212 fi 15210 fi
15213 15211
15214 cat > conftest.$ac_ext <<EOF 15212 cat > conftest.$ac_ext <<EOF
15215 #line 15216 "configure" 15213 #line 15214 "configure"
15216 #include "confdefs.h" 15214 #include "confdefs.h"
15217 int main(int c,char *v[]){return 0;} 15215 int main(int c,char *v[]){return 0;}
15218 EOF 15216 EOF
15219 if { (eval echo configure:15220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 15217 if { (eval echo configure:15218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15220 then 15218 then
15221 : 15219 :
15222 else 15220 else
15223 conftest_rc="$?" 15221 conftest_rc="$?"
15224 echo "configure: failed program was:" >&5 15222 echo "configure: failed program was:" >&5