comparison configure @ 159:3bb7ccffb0c0 r20-3b6

Import from CVS: tag r20-3b6
author cvs
date Mon, 13 Aug 2007 09:41:43 +0200
parents 6b37e6ddd302
children 0132846995bd
comparison
equal deleted inserted replaced
158:558dfa75ffb3 159:3bb7ccffb0c0
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;; 468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *) 471 *)
472 quoted_i="`echo $i | sed $quoted_sed_magic`" 472 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
473 quoted_arguments="$quoted_arguments '$quoted_i'" ;; 473 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
474 esac 474 esac
475 done 475 done
476 476
477 while test $# != 0; do 477 while test $# != 0; do
592 592
593 "with_database" ) 593 "with_database" )
594 with_database_berkdb=no 594 with_database_berkdb=no
595 with_database_dbm=no 595 with_database_dbm=no
596 with_database_gnudbm=no 596 with_database_gnudbm=no
597 for x in `echo "$val" | sed 's/,/ /'` ; do 597 for x in `echo "$val" | sed -e 's/,/ /'` ; do
598 case "$x" in 598 case "$x" in
599 no ) ;; 599 no ) ;;
600 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; 600 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
601 d | db | dbm ) with_database_dbm=yes ;; 601 d | db | dbm ) with_database_dbm=yes ;;
602 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; 602 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
658 eval "$opt=\"$val\"" 658 eval "$opt=\"$val\""
659 ;; 659 ;;
660 660
661 "error_checking" ) 661 "error_checking" )
662 662
663 for x in `echo "$val" | sed 's/,/ /'` ; do 663 for x in `echo "$val" | sed -e 's/,/ /'` ; do
664 case "$x" in 664 case "$x" in
665 n | no | non | none ) new_default=no ;; 665 n | no | non | none ) new_default=no ;;
666 a | al | all ) new_default=yes ;; 666 a | al | all ) new_default=yes ;;
667 667
668 extents ) error_check_extents=yes ;; 668 extents ) error_check_extents=yes ;;
768 MAKE_SUBDIR="$MAKE_SUBDIR lwlib/energize" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib/energize\" to \$MAKE_SUBDIR"; fi 768 MAKE_SUBDIR="$MAKE_SUBDIR lwlib/energize" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib/energize\" to \$MAKE_SUBDIR"; fi
769 fi 769 fi
770 770
771 test "$extra_verbose" = "yes" && verbose=yes 771 test "$extra_verbose" = "yes" && verbose=yes
772 772
773 case "site_includes" in *:* ) site_includes="`echo $site_includes | sed 's/:/ /g'`";; esac 773 case "site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's:^ ::' -e 's/:/ /g'`";; esac
774 case "site_libraries" in *:* ) site_libraries="`echo $site_libraries | sed 's/:/ /g'`";; esac 774 case "site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's:^ ::' -e 's/:/ /g'`";; esac
775 case "site_runtime_libraries" in *:* ) site_runtime_libraries="`echo $site_runtime_libraries | sed 's/:/ /g'`";; esac 775 case "site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's:^ ::' -e 's/:/ /g'`";; esac
776 776
777 test -n "$with_x" && with_x11="$with_x" 777 test -n "$with_x" && with_x11="$with_x"
778 778
779 if test "$run_in_place" = "yes"; then 779 if test "$run_in_place" = "yes"; then
780 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2 780 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2
2152 fi 2152 fi
2153 2153
2154 2154
2155 2155
2156 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then 2156 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2157 ld_switch_site="`echo $ld_switch_site | sed \"s/${dash_r}[^ ]*//\"`" 2157 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/${dash_r}[^ ]*//"`
2158 ld_switch_x_site="`echo $ld_switch_x_site | sed \"s/${dash_r}[^ ]*//\"`" 2158 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/${dash_r}[^ ]*//"`
2159 2159
2160 runpath="" 2160 runpath=""
2161 if test -n "$LD_RUN_PATH"; then 2161 if test -n "$LD_RUN_PATH"; then
2162 runpath="$LD_RUN_PATH" 2162 runpath="$LD_RUN_PATH"
2163 elif test "$GCC" = "yes"; then 2163 elif test "$GCC" = "yes"; then
2164 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c 2164 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2165 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' 2165 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2166 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do 2166 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2167 case "$arg" in P,* | -L* | -R* ) 2167 case "$arg" in P,* | -L* | -R* )
2168 for dir in `echo "$arg" | sed -e 's/^..//' -e 'y/:/ /'`; do 2168 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2169 2169
2170 xe_runpath_dir="$dir" 2170 xe_runpath_dir="$dir"
2171 if test "$xe_runpath_dir" != "/lib" -a \ 2171 if test "$xe_runpath_dir" != "/lib" -a \
2172 "$xe_runpath_dir" != "/usr/lib" -a \ 2172 "$xe_runpath_dir" != "/usr/lib" -a \
2173 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then 2173 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then
2180 done 2180 done
2181 rm -f conftest* 2181 rm -f conftest*
2182 else 2182 else
2183 for arg in $ld_switch_site $ld_switch_x_site; do 2183 for arg in $ld_switch_site $ld_switch_x_site; do
2184 case "$arg" in -L*) 2184 case "$arg" in -L*)
2185 xe_runpath_dir=`echo "$arg" | sed 's/^-L//'` 2185 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2186 if test "$xe_runpath_dir" != "/lib" -a \ 2186 if test "$xe_runpath_dir" != "/lib" -a \
2187 "$xe_runpath_dir" != "/usr/lib" -a \ 2187 "$xe_runpath_dir" != "/usr/lib" -a \
2188 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then 2188 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then
2189 test -n "$runpath" && runpath="${runpath}:" 2189 test -n "$runpath" && runpath="${runpath}:"
2190 runpath="${runpath}${xe_runpath_dir}" 2190 runpath="${runpath}${xe_runpath_dir}"
3215 #define SIZEOF_LONG $ac_cv_sizeof_long 3215 #define SIZEOF_LONG $ac_cv_sizeof_long
3216 EOF 3216 EOF
3217 } 3217 }
3218 3218
3219 3219
3220 if test "$ac_cv_sizeof_long" = 0; then
3221 echo ""
3222 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3223 echo "*** PANIC *** Please examine config.log for compilation errors."
3224 exit 1
3225 fi
3220 3226
3221 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3227 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3222 echo "configure:3223: checking for long file names" >&5 3228 echo "configure:3229: checking for long file names" >&5
3223 3229
3224 ac_cv_sys_long_file_names=yes 3230 ac_cv_sys_long_file_names=yes
3225 # Test for long file names in all the places we know might matter: 3231 # Test for long file names in all the places we know might matter:
3226 # . the current directory, where building will happen 3232 # . the current directory, where building will happen
3227 # $prefix/lib where we will be installing things 3233 # $prefix/lib where we will be installing things
3263 3269
3264 fi 3270 fi
3265 3271
3266 3272
3267 3273
3268
3269 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 3274 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
3270 echo "configure:3271: checking for sqrt in -lm" >&5 3275 echo "configure:3276: checking for sqrt in -lm" >&5
3271 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 3276 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
3272 3277
3273 xe_check_libs=" -lm " 3278 xe_check_libs=" -lm "
3274 cat > conftest.$ac_ext <<EOF 3279 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure" 3280 #line 3281 "configure"
3276 #include "confdefs.h" 3281 #include "confdefs.h"
3277 /* Override any gcc2 internal prototype to avoid an error. */ 3282 /* Override any gcc2 internal prototype to avoid an error. */
3278 /* We use char because int might match the return type of a gcc2 3283 /* We use char because int might match the return type of a gcc2
3279 builtin and then its argument prototype would still apply. */ 3284 builtin and then its argument prototype would still apply. */
3280 char sqrt(); 3285 char sqrt();
3281 3286
3282 int main() { 3287 int main() {
3283 sqrt() 3288 sqrt()
3284 ; return 0; } 3289 ; return 0; }
3285 EOF 3290 EOF
3286 if { (eval echo configure:3287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3291 if { (eval echo configure:3292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3287 rm -rf conftest* 3292 rm -rf conftest*
3288 eval "ac_cv_lib_$ac_lib_var=yes" 3293 eval "ac_cv_lib_$ac_lib_var=yes"
3289 else 3294 else
3290 echo "configure: failed program was:" >&5 3295 echo "configure: failed program was:" >&5
3291 cat conftest.$ac_ext >&5 3296 cat conftest.$ac_ext >&5
3313 echo "$ac_t""no" 1>&6 3318 echo "$ac_t""no" 1>&6
3314 fi 3319 fi
3315 3320
3316 3321
3317 3322
3323
3324 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3325 echo "configure:3326: checking for main in -lPW" >&5
3326 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3327
3328 xe_check_libs=" -lPW "
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332
3333 int main() {
3334 main()
3335 ; return 0; }
3336 EOF
3337 if { (eval echo configure:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3338 rm -rf conftest*
3339 eval "ac_cv_lib_$ac_lib_var=yes"
3340 else
3341 echo "configure: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3343 rm -rf conftest*
3344 eval "ac_cv_lib_$ac_lib_var=no"
3345 fi
3346 rm -f conftest*
3347 xe_check_libs=""
3348
3349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3350 echo "$ac_t""yes" 1>&6
3351 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3352 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3353 { test "$extra_verbose" = "yes" && cat << EOF
3354 Defining $ac_tr_lib
3355 EOF
3356 cat >> confdefs.h <<EOF
3357 #define $ac_tr_lib 1
3358 EOF
3359 }
3360
3361 LIBS="-lPW $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lPW\" to \$LIBS"; fi
3362
3363 else
3364 echo "$ac_t""no" 1>&6
3365 fi
3366
3367
3368
3318 { test "$extra_verbose" = "yes" && cat << \EOF 3369 { test "$extra_verbose" = "yes" && cat << \EOF
3319 Defining LISP_FLOAT_TYPE 3370 Defining LISP_FLOAT_TYPE
3320 EOF 3371 EOF
3321 cat >> confdefs.h <<\EOF 3372 cat >> confdefs.h <<\EOF
3322 #define LISP_FLOAT_TYPE 1 3373 #define LISP_FLOAT_TYPE 1
3323 EOF 3374 EOF
3324 } 3375 }
3325 3376
3326 3377
3327 echo "checking type of mail spool file locking" 1>&6 3378 echo "checking type of mail spool file locking" 1>&6
3328 echo "configure:3329: checking type of mail spool file locking" >&5 3379 echo "configure:3380: checking type of mail spool file locking" >&5
3329 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3380 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3330 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3381 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3331 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3382 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3332 Defining REAL_MAIL_USE_LOCKF 3383 Defining REAL_MAIL_USE_LOCKF
3333 EOF 3384 EOF
3347 else mail_locking="dot-locking" 3398 else mail_locking="dot-locking"
3348 fi 3399 fi
3349 3400
3350 3401
3351 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 3402 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3352 echo "configure:3353: checking for kstat_open in -lkstat" >&5 3403 echo "configure:3404: checking for kstat_open in -lkstat" >&5
3353 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 3404 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3354 3405
3355 xe_check_libs=" -lkstat " 3406 xe_check_libs=" -lkstat "
3356 cat > conftest.$ac_ext <<EOF 3407 cat > conftest.$ac_ext <<EOF
3357 #line 3358 "configure" 3408 #line 3409 "configure"
3358 #include "confdefs.h" 3409 #include "confdefs.h"
3359 /* Override any gcc2 internal prototype to avoid an error. */ 3410 /* Override any gcc2 internal prototype to avoid an error. */
3360 /* We use char because int might match the return type of a gcc2 3411 /* We use char because int might match the return type of a gcc2
3361 builtin and then its argument prototype would still apply. */ 3412 builtin and then its argument prototype would still apply. */
3362 char kstat_open(); 3413 char kstat_open();
3363 3414
3364 int main() { 3415 int main() {
3365 kstat_open() 3416 kstat_open()
3366 ; return 0; } 3417 ; return 0; }
3367 EOF 3418 EOF
3368 if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3419 if { (eval echo configure:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3369 rm -rf conftest* 3420 rm -rf conftest*
3370 eval "ac_cv_lib_$ac_lib_var=yes" 3421 eval "ac_cv_lib_$ac_lib_var=yes"
3371 else 3422 else
3372 echo "configure: failed program was:" >&5 3423 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5 3424 cat conftest.$ac_ext >&5
3397 3448
3398 3449
3399 3450
3400 3451
3401 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 3452 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
3402 echo "configure:3403: checking for kvm_read in -lkvm" >&5 3453 echo "configure:3454: checking for kvm_read in -lkvm" >&5
3403 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 3454 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
3404 3455
3405 xe_check_libs=" -lkvm " 3456 xe_check_libs=" -lkvm "
3406 cat > conftest.$ac_ext <<EOF 3457 cat > conftest.$ac_ext <<EOF
3407 #line 3408 "configure" 3458 #line 3459 "configure"
3408 #include "confdefs.h" 3459 #include "confdefs.h"
3409 /* Override any gcc2 internal prototype to avoid an error. */ 3460 /* Override any gcc2 internal prototype to avoid an error. */
3410 /* We use char because int might match the return type of a gcc2 3461 /* We use char because int might match the return type of a gcc2
3411 builtin and then its argument prototype would still apply. */ 3462 builtin and then its argument prototype would still apply. */
3412 char kvm_read(); 3463 char kvm_read();
3413 3464
3414 int main() { 3465 int main() {
3415 kvm_read() 3466 kvm_read()
3416 ; return 0; } 3467 ; return 0; }
3417 EOF 3468 EOF
3418 if { (eval echo configure:3419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3469 if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3419 rm -rf conftest* 3470 rm -rf conftest*
3420 eval "ac_cv_lib_$ac_lib_var=yes" 3471 eval "ac_cv_lib_$ac_lib_var=yes"
3421 else 3472 else
3422 echo "configure: failed program was:" >&5 3473 echo "configure: failed program was:" >&5
3423 cat conftest.$ac_ext >&5 3474 cat conftest.$ac_ext >&5
3447 3498
3448 3499
3449 3500
3450 3501
3451 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3502 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3452 echo "configure:3453: checking for cma_open in -lpthreads" >&5 3503 echo "configure:3504: checking for cma_open in -lpthreads" >&5
3453 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3504 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3454 3505
3455 xe_check_libs=" -lpthreads " 3506 xe_check_libs=" -lpthreads "
3456 cat > conftest.$ac_ext <<EOF 3507 cat > conftest.$ac_ext <<EOF
3457 #line 3458 "configure" 3508 #line 3509 "configure"
3458 #include "confdefs.h" 3509 #include "confdefs.h"
3459 /* Override any gcc2 internal prototype to avoid an error. */ 3510 /* Override any gcc2 internal prototype to avoid an error. */
3460 /* We use char because int might match the return type of a gcc2 3511 /* We use char because int might match the return type of a gcc2
3461 builtin and then its argument prototype would still apply. */ 3512 builtin and then its argument prototype would still apply. */
3462 char cma_open(); 3513 char cma_open();
3463 3514
3464 int main() { 3515 int main() {
3465 cma_open() 3516 cma_open()
3466 ; return 0; } 3517 ; return 0; }
3467 EOF 3518 EOF
3468 if { (eval echo configure:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3519 if { (eval echo configure:3520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3469 rm -rf conftest* 3520 rm -rf conftest*
3470 eval "ac_cv_lib_$ac_lib_var=yes" 3521 eval "ac_cv_lib_$ac_lib_var=yes"
3471 else 3522 else
3472 echo "configure: failed program was:" >&5 3523 echo "configure: failed program was:" >&5
3473 cat conftest.$ac_ext >&5 3524 cat conftest.$ac_ext >&5
3499 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 3550 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
3500 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 3551 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
3501 fi 3552 fi
3502 3553
3503 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 3554 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
3504 echo "configure:3505: checking whether the -xildoff compiler flag is required" >&5 3555 echo "configure:3556: checking whether the -xildoff compiler flag is required" >&5
3505 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 3556 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
3506 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 3557 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
3507 then echo "$ac_t""no" 1>&6; 3558 then echo "$ac_t""no" 1>&6;
3508 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 3559 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
3509 fi 3560 fi
3510 else echo "$ac_t""no" 1>&6 3561 else echo "$ac_t""no" 1>&6
3511 fi 3562 fi
3512 3563
3513 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 3564 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
3514 echo "configure:3515: checking for dynodump" >&5 3565 echo "configure:3566: checking for dynodump" >&5
3515 case "$opsys" in sol2* ) 3566 case "$opsys" in sol2* )
3516 echo "$ac_t""yes" 1>&6 3567 echo "$ac_t""yes" 1>&6
3517 { test "$extra_verbose" = "yes" && cat << \EOF 3568 { test "$extra_verbose" = "yes" && cat << \EOF
3518 Defining DYNODUMP 3569 Defining DYNODUMP
3519 EOF 3570 EOF
3532 *) echo "$ac_t""no" 1>&6 ;; 3583 *) echo "$ac_t""no" 1>&6 ;;
3533 esac 3584 esac
3534 3585
3535 case "$opsys" in sol2-[6-9]* ) 3586 case "$opsys" in sol2-[6-9]* )
3536 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 3587 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
3537 echo "configure:3538: checking for \"-z ignore\" linker flag" >&5 3588 echo "configure:3589: checking for \"-z ignore\" linker flag" >&5
3538 case "`ld -h 2>&1`" in 3589 case "`ld -h 2>&1`" in
3539 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 3590 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
3540 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 3591 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
3541 *) echo "$ac_t""no" 1>&6 ;; 3592 *) echo "$ac_t""no" 1>&6 ;;
3542 esac ;; 3593 esac ;;
3543 esac 3594 esac
3544 3595
3545 3596
3546 echo "checking "for specified window system"" 1>&6 3597 echo "checking "for specified window system"" 1>&6
3547 echo "configure:3548: checking "for specified window system"" >&5 3598 echo "configure:3599: checking "for specified window system"" >&5
3548 3599
3549 if test "$x_includes $x_libraries" = "NONE NONE"; then 3600 if test "$x_includes $x_libraries" = "NONE NONE"; then
3550 if test -n "$OPENWINHOME" \ 3601 if test -n "$OPENWINHOME" \
3551 -a "$OPENWINHOME" != "/usr/openwin" \ 3602 -a "$OPENWINHOME" != "/usr/openwin" \
3552 -a -d "$OPENWINHOME"; then 3603 -a -d "$OPENWINHOME"; then
3563 # If we find X, set shell vars x_includes and x_libraries to the 3614 # If we find X, set shell vars x_includes and x_libraries to the
3564 # paths, otherwise set no_x=yes. 3615 # paths, otherwise set no_x=yes.
3565 # Uses ac_ vars as temps to allow command line to override cache and checks. 3616 # Uses ac_ vars as temps to allow command line to override cache and checks.
3566 # --without-x overrides everything else, but does not touch the cache. 3617 # --without-x overrides everything else, but does not touch the cache.
3567 echo $ac_n "checking for X""... $ac_c" 1>&6 3618 echo $ac_n "checking for X""... $ac_c" 1>&6
3568 echo "configure:3569: checking for X" >&5 3619 echo "configure:3620: checking for X" >&5
3569 3620
3570 # Check whether --with-x or --without-x was given. 3621 # Check whether --with-x or --without-x was given.
3571 if test "${with_x+set}" = set; then 3622 if test "${with_x+set}" = set; then
3572 withval="$with_x" 3623 withval="$with_x"
3573 : 3624 :
3623 # Guess where to find include files, by looking for this one X11 .h file. 3674 # Guess where to find include files, by looking for this one X11 .h file.
3624 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 3675 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3625 3676
3626 # First, try using that file with no special directory specified. 3677 # First, try using that file with no special directory specified.
3627 cat > conftest.$ac_ext <<EOF 3678 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure" 3679 #line 3680 "configure"
3629 #include "confdefs.h" 3680 #include "confdefs.h"
3630 #include <$x_direct_test_include> 3681 #include <$x_direct_test_include>
3631 EOF 3682 EOF
3632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3633 { (eval echo configure:3634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3684 { (eval echo configure:3685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3634 ac_err=`grep -v '^ *+' conftest.out` 3685 ac_err=`grep -v '^ *+' conftest.out`
3635 if test -z "$ac_err"; then 3686 if test -z "$ac_err"; then
3636 rm -rf conftest* 3687 rm -rf conftest*
3637 # We can compile using X headers with no special include directory. 3688 # We can compile using X headers with no special include directory.
3638 ac_x_includes= 3689 ac_x_includes=
3697 # See if we find them without any special options. 3748 # See if we find them without any special options.
3698 # Don't add to $LIBS permanently. 3749 # Don't add to $LIBS permanently.
3699 ac_save_LIBS="$LIBS" 3750 ac_save_LIBS="$LIBS"
3700 LIBS="-l$x_direct_test_library $LIBS" 3751 LIBS="-l$x_direct_test_library $LIBS"
3701 cat > conftest.$ac_ext <<EOF 3752 cat > conftest.$ac_ext <<EOF
3702 #line 3703 "configure" 3753 #line 3754 "configure"
3703 #include "confdefs.h" 3754 #include "confdefs.h"
3704 3755
3705 int main() { 3756 int main() {
3706 ${x_direct_test_function}() 3757 ${x_direct_test_function}()
3707 ; return 0; } 3758 ; return 0; }
3708 EOF 3759 EOF
3709 if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3760 if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3710 rm -rf conftest* 3761 rm -rf conftest*
3711 LIBS="$ac_save_LIBS" 3762 LIBS="$ac_save_LIBS"
3712 # We can link X programs with no special library path. 3763 # We can link X programs with no special library path.
3713 ac_x_libraries= 3764 ac_x_libraries=
3714 else 3765 else
3813 # For Solaris; some versions of Sun CC require a space after -R and 3864 # For Solaris; some versions of Sun CC require a space after -R and
3814 # others require no space. Words are not sufficient . . . . 3865 # others require no space. Words are not sufficient . . . .
3815 case "`(uname -sr) 2>/dev/null`" in 3866 case "`(uname -sr) 2>/dev/null`" in
3816 "SunOS 5"*) 3867 "SunOS 5"*)
3817 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 3868 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3818 echo "configure:3819: checking whether -R must be followed by a space" >&5 3869 echo "configure:3870: checking whether -R must be followed by a space" >&5
3819 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 3870 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3820 cat > conftest.$ac_ext <<EOF 3871 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure" 3872 #line 3873 "configure"
3822 #include "confdefs.h" 3873 #include "confdefs.h"
3823 3874
3824 int main() { 3875 int main() {
3825 3876
3826 ; return 0; } 3877 ; return 0; }
3827 EOF 3878 EOF
3828 if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3829 rm -rf conftest* 3880 rm -rf conftest*
3830 ac_R_nospace=yes 3881 ac_R_nospace=yes
3831 else 3882 else
3832 echo "configure: failed program was:" >&5 3883 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5 3884 cat conftest.$ac_ext >&5
3839 echo "$ac_t""no" 1>&6 3890 echo "$ac_t""no" 1>&6
3840 X_LIBS="$X_LIBS -R$x_libraries" 3891 X_LIBS="$X_LIBS -R$x_libraries"
3841 else 3892 else
3842 LIBS="$ac_xsave_LIBS -R $x_libraries" 3893 LIBS="$ac_xsave_LIBS -R $x_libraries"
3843 cat > conftest.$ac_ext <<EOF 3894 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure" 3895 #line 3896 "configure"
3845 #include "confdefs.h" 3896 #include "confdefs.h"
3846 3897
3847 int main() { 3898 int main() {
3848 3899
3849 ; return 0; } 3900 ; return 0; }
3850 EOF 3901 EOF
3851 if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3902 if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3852 rm -rf conftest* 3903 rm -rf conftest*
3853 ac_R_space=yes 3904 ac_R_space=yes
3854 else 3905 else
3855 echo "configure: failed program was:" >&5 3906 echo "configure: failed program was:" >&5
3856 cat conftest.$ac_ext >&5 3907 cat conftest.$ac_ext >&5
3882 if test "$with_dnet" = "no" ; then 3933 if test "$with_dnet" = "no" ; then
3883 ac_cv_lib_dnet_dnet_ntoa=no 3934 ac_cv_lib_dnet_dnet_ntoa=no
3884 else 3935 else
3885 3936
3886 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3937 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3887 echo "configure:3888: checking for dnet_ntoa in -ldnet" >&5 3938 echo "configure:3939: checking for dnet_ntoa in -ldnet" >&5
3888 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3939 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3889 3940
3890 xe_check_libs=" -ldnet " 3941 xe_check_libs=" -ldnet "
3891 cat > conftest.$ac_ext <<EOF 3942 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure" 3943 #line 3944 "configure"
3893 #include "confdefs.h" 3944 #include "confdefs.h"
3894 /* Override any gcc2 internal prototype to avoid an error. */ 3945 /* Override any gcc2 internal prototype to avoid an error. */
3895 /* We use char because int might match the return type of a gcc2 3946 /* We use char because int might match the return type of a gcc2
3896 builtin and then its argument prototype would still apply. */ 3947 builtin and then its argument prototype would still apply. */
3897 char dnet_ntoa(); 3948 char dnet_ntoa();
3898 3949
3899 int main() { 3950 int main() {
3900 dnet_ntoa() 3951 dnet_ntoa()
3901 ; return 0; } 3952 ; return 0; }
3902 EOF 3953 EOF
3903 if { (eval echo configure:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3954 if { (eval echo configure:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3904 rm -rf conftest* 3955 rm -rf conftest*
3905 eval "ac_cv_lib_$ac_lib_var=yes" 3956 eval "ac_cv_lib_$ac_lib_var=yes"
3906 else 3957 else
3907 echo "configure: failed program was:" >&5 3958 echo "configure: failed program was:" >&5
3908 cat conftest.$ac_ext >&5 3959 cat conftest.$ac_ext >&5
3922 fi 3973 fi
3923 3974
3924 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 3975 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3925 3976
3926 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 3977 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3927 echo "configure:3928: checking for dnet_ntoa in -ldnet_stub" >&5 3978 echo "configure:3979: checking for dnet_ntoa in -ldnet_stub" >&5
3928 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3979 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3929 3980
3930 xe_check_libs=" -ldnet_stub " 3981 xe_check_libs=" -ldnet_stub "
3931 cat > conftest.$ac_ext <<EOF 3982 cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure" 3983 #line 3984 "configure"
3933 #include "confdefs.h" 3984 #include "confdefs.h"
3934 /* Override any gcc2 internal prototype to avoid an error. */ 3985 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2 3986 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */ 3987 builtin and then its argument prototype would still apply. */
3937 char dnet_ntoa(); 3988 char dnet_ntoa();
3938 3989
3939 int main() { 3990 int main() {
3940 dnet_ntoa() 3991 dnet_ntoa()
3941 ; return 0; } 3992 ; return 0; }
3942 EOF 3993 EOF
3943 if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3994 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3944 rm -rf conftest* 3995 rm -rf conftest*
3945 eval "ac_cv_lib_$ac_lib_var=yes" 3996 eval "ac_cv_lib_$ac_lib_var=yes"
3946 else 3997 else
3947 echo "configure: failed program was:" >&5 3998 echo "configure: failed program was:" >&5
3948 cat conftest.$ac_ext >&5 3999 cat conftest.$ac_ext >&5
3967 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4018 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3968 # needs -lnsl. 4019 # needs -lnsl.
3969 # The nsl library prevents programs from opening the X display 4020 # The nsl library prevents programs from opening the X display
3970 # on Irix 5.2, according to dickey@clark.net. 4021 # on Irix 5.2, according to dickey@clark.net.
3971 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4022 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3972 echo "configure:3973: checking for gethostbyname" >&5 4023 echo "configure:4024: checking for gethostbyname" >&5
3973 4024
3974 cat > conftest.$ac_ext <<EOF 4025 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure" 4026 #line 4027 "configure"
3976 #include "confdefs.h" 4027 #include "confdefs.h"
3977 /* System header to define __stub macros and hopefully few prototypes, 4028 /* System header to define __stub macros and hopefully few prototypes,
3978 which can conflict with char gethostbyname(); below. */ 4029 which can conflict with char gethostbyname(); below. */
3979 #include <assert.h> 4030 #include <assert.h>
3980 /* Override any gcc2 internal prototype to avoid an error. */ 4031 /* Override any gcc2 internal prototype to avoid an error. */
3993 gethostbyname(); 4044 gethostbyname();
3994 #endif 4045 #endif
3995 4046
3996 ; return 0; } 4047 ; return 0; }
3997 EOF 4048 EOF
3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3999 rm -rf conftest* 4050 rm -rf conftest*
4000 eval "ac_cv_func_gethostbyname=yes" 4051 eval "ac_cv_func_gethostbyname=yes"
4001 else 4052 else
4002 echo "configure: failed program was:" >&5 4053 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5 4054 cat conftest.$ac_ext >&5
4014 fi 4065 fi
4015 4066
4016 if test $ac_cv_func_gethostbyname = no; then 4067 if test $ac_cv_func_gethostbyname = no; then
4017 4068
4018 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4069 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4019 echo "configure:4020: checking for gethostbyname in -lnsl" >&5 4070 echo "configure:4071: checking for gethostbyname in -lnsl" >&5
4020 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4071 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4021 4072
4022 xe_check_libs=" -lnsl " 4073 xe_check_libs=" -lnsl "
4023 cat > conftest.$ac_ext <<EOF 4074 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure" 4075 #line 4076 "configure"
4025 #include "confdefs.h" 4076 #include "confdefs.h"
4026 /* Override any gcc2 internal prototype to avoid an error. */ 4077 /* Override any gcc2 internal prototype to avoid an error. */
4027 /* We use char because int might match the return type of a gcc2 4078 /* We use char because int might match the return type of a gcc2
4028 builtin and then its argument prototype would still apply. */ 4079 builtin and then its argument prototype would still apply. */
4029 char gethostbyname(); 4080 char gethostbyname();
4030 4081
4031 int main() { 4082 int main() {
4032 gethostbyname() 4083 gethostbyname()
4033 ; return 0; } 4084 ; return 0; }
4034 EOF 4085 EOF
4035 if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4036 rm -rf conftest* 4087 rm -rf conftest*
4037 eval "ac_cv_lib_$ac_lib_var=yes" 4088 eval "ac_cv_lib_$ac_lib_var=yes"
4038 else 4089 else
4039 echo "configure: failed program was:" >&5 4090 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5 4091 cat conftest.$ac_ext >&5
4060 # on later versions), says simon@lia.di.epfl.ch: it contains 4111 # on later versions), says simon@lia.di.epfl.ch: it contains
4061 # gethostby* variants that don't use the nameserver (or something). 4112 # gethostby* variants that don't use the nameserver (or something).
4062 # -lsocket must be given before -lnsl if both are needed. 4113 # -lsocket must be given before -lnsl if both are needed.
4063 # We assume that if connect needs -lnsl, so does gethostbyname. 4114 # We assume that if connect needs -lnsl, so does gethostbyname.
4064 echo $ac_n "checking for connect""... $ac_c" 1>&6 4115 echo $ac_n "checking for connect""... $ac_c" 1>&6
4065 echo "configure:4066: checking for connect" >&5 4116 echo "configure:4117: checking for connect" >&5
4066 4117
4067 cat > conftest.$ac_ext <<EOF 4118 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure" 4119 #line 4120 "configure"
4069 #include "confdefs.h" 4120 #include "confdefs.h"
4070 /* System header to define __stub macros and hopefully few prototypes, 4121 /* System header to define __stub macros and hopefully few prototypes,
4071 which can conflict with char connect(); below. */ 4122 which can conflict with char connect(); below. */
4072 #include <assert.h> 4123 #include <assert.h>
4073 /* Override any gcc2 internal prototype to avoid an error. */ 4124 /* Override any gcc2 internal prototype to avoid an error. */
4086 connect(); 4137 connect();
4087 #endif 4138 #endif
4088 4139
4089 ; return 0; } 4140 ; return 0; }
4090 EOF 4141 EOF
4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4142 if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4092 rm -rf conftest* 4143 rm -rf conftest*
4093 eval "ac_cv_func_connect=yes" 4144 eval "ac_cv_func_connect=yes"
4094 else 4145 else
4095 echo "configure: failed program was:" >&5 4146 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5 4147 cat conftest.$ac_ext >&5
4109 if test $ac_cv_func_connect = no; then 4160 if test $ac_cv_func_connect = no; then
4110 4161
4111 xe_msg_checking="for connect in -lsocket" 4162 xe_msg_checking="for connect in -lsocket"
4112 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4163 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4113 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4164 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4114 echo "configure:4115: checking "$xe_msg_checking"" >&5 4165 echo "configure:4166: checking "$xe_msg_checking"" >&5
4115 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4166 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4116 4167
4117 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4168 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4118 cat > conftest.$ac_ext <<EOF 4169 cat > conftest.$ac_ext <<EOF
4119 #line 4120 "configure" 4170 #line 4171 "configure"
4120 #include "confdefs.h" 4171 #include "confdefs.h"
4121 /* Override any gcc2 internal prototype to avoid an error. */ 4172 /* Override any gcc2 internal prototype to avoid an error. */
4122 /* We use char because int might match the return type of a gcc2 4173 /* We use char because int might match the return type of a gcc2
4123 builtin and then its argument prototype would still apply. */ 4174 builtin and then its argument prototype would still apply. */
4124 char connect(); 4175 char connect();
4125 4176
4126 int main() { 4177 int main() {
4127 connect() 4178 connect()
4128 ; return 0; } 4179 ; return 0; }
4129 EOF 4180 EOF
4130 if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4181 if { (eval echo configure:4182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4131 rm -rf conftest* 4182 rm -rf conftest*
4132 eval "ac_cv_lib_$ac_lib_var=yes" 4183 eval "ac_cv_lib_$ac_lib_var=yes"
4133 else 4184 else
4134 echo "configure: failed program was:" >&5 4185 echo "configure: failed program was:" >&5
4135 cat conftest.$ac_ext >&5 4186 cat conftest.$ac_ext >&5
4149 4200
4150 fi 4201 fi
4151 4202
4152 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4203 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4153 echo $ac_n "checking for remove""... $ac_c" 1>&6 4204 echo $ac_n "checking for remove""... $ac_c" 1>&6
4154 echo "configure:4155: checking for remove" >&5 4205 echo "configure:4206: checking for remove" >&5
4155 4206
4156 cat > conftest.$ac_ext <<EOF 4207 cat > conftest.$ac_ext <<EOF
4157 #line 4158 "configure" 4208 #line 4209 "configure"
4158 #include "confdefs.h" 4209 #include "confdefs.h"
4159 /* System header to define __stub macros and hopefully few prototypes, 4210 /* System header to define __stub macros and hopefully few prototypes,
4160 which can conflict with char remove(); below. */ 4211 which can conflict with char remove(); below. */
4161 #include <assert.h> 4212 #include <assert.h>
4162 /* Override any gcc2 internal prototype to avoid an error. */ 4213 /* Override any gcc2 internal prototype to avoid an error. */
4175 remove(); 4226 remove();
4176 #endif 4227 #endif
4177 4228
4178 ; return 0; } 4229 ; return 0; }
4179 EOF 4230 EOF
4180 if { (eval echo configure:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4231 if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4181 rm -rf conftest* 4232 rm -rf conftest*
4182 eval "ac_cv_func_remove=yes" 4233 eval "ac_cv_func_remove=yes"
4183 else 4234 else
4184 echo "configure: failed program was:" >&5 4235 echo "configure: failed program was:" >&5
4185 cat conftest.$ac_ext >&5 4236 cat conftest.$ac_ext >&5
4196 fi 4247 fi
4197 4248
4198 if test $ac_cv_func_remove = no; then 4249 if test $ac_cv_func_remove = no; then
4199 4250
4200 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4251 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4201 echo "configure:4202: checking for remove in -lposix" >&5 4252 echo "configure:4253: checking for remove in -lposix" >&5
4202 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4253 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4203 4254
4204 xe_check_libs=" -lposix " 4255 xe_check_libs=" -lposix "
4205 cat > conftest.$ac_ext <<EOF 4256 cat > conftest.$ac_ext <<EOF
4206 #line 4207 "configure" 4257 #line 4258 "configure"
4207 #include "confdefs.h" 4258 #include "confdefs.h"
4208 /* Override any gcc2 internal prototype to avoid an error. */ 4259 /* Override any gcc2 internal prototype to avoid an error. */
4209 /* We use char because int might match the return type of a gcc2 4260 /* We use char because int might match the return type of a gcc2
4210 builtin and then its argument prototype would still apply. */ 4261 builtin and then its argument prototype would still apply. */
4211 char remove(); 4262 char remove();
4212 4263
4213 int main() { 4264 int main() {
4214 remove() 4265 remove()
4215 ; return 0; } 4266 ; return 0; }
4216 EOF 4267 EOF
4217 if { (eval echo configure:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4268 if { (eval echo configure:4269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4218 rm -rf conftest* 4269 rm -rf conftest*
4219 eval "ac_cv_lib_$ac_lib_var=yes" 4270 eval "ac_cv_lib_$ac_lib_var=yes"
4220 else 4271 else
4221 echo "configure: failed program was:" >&5 4272 echo "configure: failed program was:" >&5
4222 cat conftest.$ac_ext >&5 4273 cat conftest.$ac_ext >&5
4236 4287
4237 fi 4288 fi
4238 4289
4239 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4290 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4240 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4291 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4241 echo "configure:4242: checking for shmat" >&5 4292 echo "configure:4293: checking for shmat" >&5
4242 4293
4243 cat > conftest.$ac_ext <<EOF 4294 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure" 4295 #line 4296 "configure"
4245 #include "confdefs.h" 4296 #include "confdefs.h"
4246 /* System header to define __stub macros and hopefully few prototypes, 4297 /* System header to define __stub macros and hopefully few prototypes,
4247 which can conflict with char shmat(); below. */ 4298 which can conflict with char shmat(); below. */
4248 #include <assert.h> 4299 #include <assert.h>
4249 /* Override any gcc2 internal prototype to avoid an error. */ 4300 /* Override any gcc2 internal prototype to avoid an error. */
4262 shmat(); 4313 shmat();
4263 #endif 4314 #endif
4264 4315
4265 ; return 0; } 4316 ; return 0; }
4266 EOF 4317 EOF
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4318 if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4268 rm -rf conftest* 4319 rm -rf conftest*
4269 eval "ac_cv_func_shmat=yes" 4320 eval "ac_cv_func_shmat=yes"
4270 else 4321 else
4271 echo "configure: failed program was:" >&5 4322 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5 4323 cat conftest.$ac_ext >&5
4283 fi 4334 fi
4284 4335
4285 if test $ac_cv_func_shmat = no; then 4336 if test $ac_cv_func_shmat = no; then
4286 4337
4287 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4338 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4288 echo "configure:4289: checking for shmat in -lipc" >&5 4339 echo "configure:4340: checking for shmat in -lipc" >&5
4289 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4340 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4290 4341
4291 xe_check_libs=" -lipc " 4342 xe_check_libs=" -lipc "
4292 cat > conftest.$ac_ext <<EOF 4343 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure" 4344 #line 4345 "configure"
4294 #include "confdefs.h" 4345 #include "confdefs.h"
4295 /* Override any gcc2 internal prototype to avoid an error. */ 4346 /* Override any gcc2 internal prototype to avoid an error. */
4296 /* We use char because int might match the return type of a gcc2 4347 /* We use char because int might match the return type of a gcc2
4297 builtin and then its argument prototype would still apply. */ 4348 builtin and then its argument prototype would still apply. */
4298 char shmat(); 4349 char shmat();
4299 4350
4300 int main() { 4351 int main() {
4301 shmat() 4352 shmat()
4302 ; return 0; } 4353 ; return 0; }
4303 EOF 4354 EOF
4304 if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4305 rm -rf conftest* 4356 rm -rf conftest*
4306 eval "ac_cv_lib_$ac_lib_var=yes" 4357 eval "ac_cv_lib_$ac_lib_var=yes"
4307 else 4358 else
4308 echo "configure: failed program was:" >&5 4359 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5 4360 cat conftest.$ac_ext >&5
4333 # These have to be linked with before -lX11, unlike the other 4384 # These have to be linked with before -lX11, unlike the other
4334 # libraries we check for below, so use a different variable. 4385 # libraries we check for below, so use a different variable.
4335 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4386 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4336 4387
4337 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4388 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4338 echo "configure:4339: checking for IceConnectionNumber in -lICE" >&5 4389 echo "configure:4390: checking for IceConnectionNumber in -lICE" >&5
4339 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4390 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4340 4391
4341 xe_check_libs=" -lICE " 4392 xe_check_libs=" -lICE "
4342 cat > conftest.$ac_ext <<EOF 4393 cat > conftest.$ac_ext <<EOF
4343 #line 4344 "configure" 4394 #line 4395 "configure"
4344 #include "confdefs.h" 4395 #include "confdefs.h"
4345 /* Override any gcc2 internal prototype to avoid an error. */ 4396 /* Override any gcc2 internal prototype to avoid an error. */
4346 /* We use char because int might match the return type of a gcc2 4397 /* We use char because int might match the return type of a gcc2
4347 builtin and then its argument prototype would still apply. */ 4398 builtin and then its argument prototype would still apply. */
4348 char IceConnectionNumber(); 4399 char IceConnectionNumber();
4349 4400
4350 int main() { 4401 int main() {
4351 IceConnectionNumber() 4402 IceConnectionNumber()
4352 ; return 0; } 4403 ; return 0; }
4353 EOF 4404 EOF
4354 if { (eval echo configure:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4405 if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4355 rm -rf conftest* 4406 rm -rf conftest*
4356 eval "ac_cv_lib_$ac_lib_var=yes" 4407 eval "ac_cv_lib_$ac_lib_var=yes"
4357 else 4408 else
4358 echo "configure: failed program was:" >&5 4409 echo "configure: failed program was:" >&5
4359 cat conftest.$ac_ext >&5 4410 cat conftest.$ac_ext >&5
4396 } 4447 }
4397 4448
4398 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi 4449 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
4399 4450
4400 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do 4451 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
4401 inc_dir="`echo $lib_dir | sed 's/lib/include/'`" 4452 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
4402 if test -d "$lib_dir" -a -d "$inc_dir"; then 4453 if test -d "$lib_dir" -a -d "$inc_dir"; then
4403 case "$x_libraries" in *"$lib_dir"* ) ;; *) 4454 case "$x_libraries" in *"$lib_dir"* ) ;; *)
4404 x_libraries="$lib_dir $x_libraries" 4455 x_libraries="$lib_dir $x_libraries"
4405 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;; 4456 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
4406 esac 4457 esac
4427 4478
4428 ld_switch_x_site="$X_LIBS" 4479 ld_switch_x_site="$X_LIBS"
4429 4480
4430 4481
4431 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then 4482 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
4432 ld_switch_site="`echo $ld_switch_site | sed \"s/${dash_r}[^ ]*//\"`" 4483 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/${dash_r}[^ ]*//"`
4433 ld_switch_x_site="`echo $ld_switch_x_site | sed \"s/${dash_r}[^ ]*//\"`" 4484 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/${dash_r}[^ ]*//"`
4434 4485
4435 runpath="" 4486 runpath=""
4436 if test -n "$LD_RUN_PATH"; then 4487 if test -n "$LD_RUN_PATH"; then
4437 runpath="$LD_RUN_PATH" 4488 runpath="$LD_RUN_PATH"
4438 elif test "$GCC" = "yes"; then 4489 elif test "$GCC" = "yes"; then
4439 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c 4490 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
4440 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' 4491 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
4441 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do 4492 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
4442 case "$arg" in P,* | -L* | -R* ) 4493 case "$arg" in P,* | -L* | -R* )
4443 for dir in `echo "$arg" | sed -e 's/^..//' -e 'y/:/ /'`; do 4494 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
4444 4495
4445 xe_runpath_dir="$dir" 4496 xe_runpath_dir="$dir"
4446 if test "$xe_runpath_dir" != "/lib" -a \ 4497 if test "$xe_runpath_dir" != "/lib" -a \
4447 "$xe_runpath_dir" != "/usr/lib" -a \ 4498 "$xe_runpath_dir" != "/usr/lib" -a \
4448 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then 4499 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then
4455 done 4506 done
4456 rm -f conftest* 4507 rm -f conftest*
4457 else 4508 else
4458 for arg in $ld_switch_site $ld_switch_x_site; do 4509 for arg in $ld_switch_site $ld_switch_x_site; do
4459 case "$arg" in -L*) 4510 case "$arg" in -L*)
4460 xe_runpath_dir=`echo "$arg" | sed 's/^-L//'` 4511 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
4461 if test "$xe_runpath_dir" != "/lib" -a \ 4512 if test "$xe_runpath_dir" != "/lib" -a \
4462 "$xe_runpath_dir" != "/usr/lib" -a \ 4513 "$xe_runpath_dir" != "/usr/lib" -a \
4463 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then 4514 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then
4464 test -n "$runpath" && runpath="${runpath}:" 4515 test -n "$runpath" && runpath="${runpath}:"
4465 runpath="${runpath}${xe_runpath_dir}" 4516 runpath="${runpath}${xe_runpath_dir}"
4488 echo 4539 echo
4489 fi 4540 fi
4490 4541
4491 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 4542 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
4492 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 4543 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
4493 echo "configure:4494: checking for X11/Intrinsic.h" >&5 4544 echo "configure:4545: checking for X11/Intrinsic.h" >&5
4494 4545
4495 cat > conftest.$ac_ext <<EOF 4546 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure" 4547 #line 4548 "configure"
4497 #include "confdefs.h" 4548 #include "confdefs.h"
4498 #include <X11/Intrinsic.h> 4549 #include <X11/Intrinsic.h>
4499 EOF 4550 EOF
4500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4501 { (eval echo configure:4502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4552 { (eval echo configure:4553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4502 ac_err=`grep -v '^ *+' conftest.out` 4553 ac_err=`grep -v '^ *+' conftest.out`
4503 if test -z "$ac_err"; then 4554 if test -z "$ac_err"; then
4504 rm -rf conftest* 4555 rm -rf conftest*
4505 eval "ac_cv_header_$ac_safe=yes" 4556 eval "ac_cv_header_$ac_safe=yes"
4506 else 4557 else
4520 fi 4571 fi
4521 4572
4522 4573
4523 4574
4524 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 4575 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
4525 echo "configure:4526: checking for XOpenDisplay in -lX11" >&5 4576 echo "configure:4577: checking for XOpenDisplay in -lX11" >&5
4526 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 4577 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
4527 4578
4528 xe_check_libs=" -lX11 " 4579 xe_check_libs=" -lX11 "
4529 cat > conftest.$ac_ext <<EOF 4580 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure" 4581 #line 4582 "configure"
4531 #include "confdefs.h" 4582 #include "confdefs.h"
4532 /* Override any gcc2 internal prototype to avoid an error. */ 4583 /* Override any gcc2 internal prototype to avoid an error. */
4533 /* We use char because int might match the return type of a gcc2 4584 /* We use char because int might match the return type of a gcc2
4534 builtin and then its argument prototype would still apply. */ 4585 builtin and then its argument prototype would still apply. */
4535 char XOpenDisplay(); 4586 char XOpenDisplay();
4536 4587
4537 int main() { 4588 int main() {
4538 XOpenDisplay() 4589 XOpenDisplay()
4539 ; return 0; } 4590 ; return 0; }
4540 EOF 4591 EOF
4541 if { (eval echo configure:4542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4542 rm -rf conftest* 4593 rm -rf conftest*
4543 eval "ac_cv_lib_$ac_lib_var=yes" 4594 eval "ac_cv_lib_$ac_lib_var=yes"
4544 else 4595 else
4545 echo "configure: failed program was:" >&5 4596 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5 4597 cat conftest.$ac_ext >&5
4561 if test "$have_lib_x11" != "yes"; then 4612 if test "$have_lib_x11" != "yes"; then
4562 4613
4563 xe_msg_checking="for XGetFontProperty in -lX11" 4614 xe_msg_checking="for XGetFontProperty in -lX11"
4564 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 4615 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
4565 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4616 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4566 echo "configure:4567: checking "$xe_msg_checking"" >&5 4617 echo "configure:4618: checking "$xe_msg_checking"" >&5
4567 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 4618 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
4568 4619
4569 xe_check_libs=" -lX11 -b i486-linuxaout" 4620 xe_check_libs=" -lX11 -b i486-linuxaout"
4570 cat > conftest.$ac_ext <<EOF 4621 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure" 4622 #line 4623 "configure"
4572 #include "confdefs.h" 4623 #include "confdefs.h"
4573 /* Override any gcc2 internal prototype to avoid an error. */ 4624 /* Override any gcc2 internal prototype to avoid an error. */
4574 /* We use char because int might match the return type of a gcc2 4625 /* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */ 4626 builtin and then its argument prototype would still apply. */
4576 char XGetFontProperty(); 4627 char XGetFontProperty();
4577 4628
4578 int main() { 4629 int main() {
4579 XGetFontProperty() 4630 XGetFontProperty()
4580 ; return 0; } 4631 ; return 0; }
4581 EOF 4632 EOF
4582 if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4583 rm -rf conftest* 4634 rm -rf conftest*
4584 eval "ac_cv_lib_$ac_lib_var=yes" 4635 eval "ac_cv_lib_$ac_lib_var=yes"
4585 else 4636 else
4586 echo "configure: failed program was:" >&5 4637 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5 4638 cat conftest.$ac_ext >&5
4604 libs_x="-lX11" 4655 libs_x="-lX11"
4605 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 4656 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
4606 4657
4607 4658
4608 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 4659 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4609 echo "configure:4610: checking for XShapeSelectInput in -lXext" >&5 4660 echo "configure:4661: checking for XShapeSelectInput in -lXext" >&5
4610 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 4661 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4611 4662
4612 xe_check_libs=" -lXext " 4663 xe_check_libs=" -lXext "
4613 cat > conftest.$ac_ext <<EOF 4664 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure" 4665 #line 4666 "configure"
4615 #include "confdefs.h" 4666 #include "confdefs.h"
4616 /* Override any gcc2 internal prototype to avoid an error. */ 4667 /* Override any gcc2 internal prototype to avoid an error. */
4617 /* We use char because int might match the return type of a gcc2 4668 /* We use char because int might match the return type of a gcc2
4618 builtin and then its argument prototype would still apply. */ 4669 builtin and then its argument prototype would still apply. */
4619 char XShapeSelectInput(); 4670 char XShapeSelectInput();
4620 4671
4621 int main() { 4672 int main() {
4622 XShapeSelectInput() 4673 XShapeSelectInput()
4623 ; return 0; } 4674 ; return 0; }
4624 EOF 4675 EOF
4625 if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4676 if { (eval echo configure:4677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4626 rm -rf conftest* 4677 rm -rf conftest*
4627 eval "ac_cv_lib_$ac_lib_var=yes" 4678 eval "ac_cv_lib_$ac_lib_var=yes"
4628 else 4679 else
4629 echo "configure: failed program was:" >&5 4680 echo "configure: failed program was:" >&5
4630 cat conftest.$ac_ext >&5 4681 cat conftest.$ac_ext >&5
4644 4695
4645 4696
4646 case "$opsys" in sunos4* ) libs_x="-u _XtToolkitInitialize -lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-u _XtToolkitInitialize -lXt\" to \$libs_x"; fi ;; 4697 case "$opsys" in sunos4* ) libs_x="-u _XtToolkitInitialize -lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-u _XtToolkitInitialize -lXt\" to \$libs_x"; fi ;;
4647 * ) 4698 * )
4648 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 4699 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
4649 echo "configure:4650: checking for XtOpenDisplay in -lXt" >&5 4700 echo "configure:4701: checking for XtOpenDisplay in -lXt" >&5
4650 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 4701 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
4651 4702
4652 xe_check_libs=" -lXt " 4703 xe_check_libs=" -lXt "
4653 cat > conftest.$ac_ext <<EOF 4704 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure" 4705 #line 4706 "configure"
4655 #include "confdefs.h" 4706 #include "confdefs.h"
4656 /* Override any gcc2 internal prototype to avoid an error. */ 4707 /* Override any gcc2 internal prototype to avoid an error. */
4657 /* We use char because int might match the return type of a gcc2 4708 /* We use char because int might match the return type of a gcc2
4658 builtin and then its argument prototype would still apply. */ 4709 builtin and then its argument prototype would still apply. */
4659 char XtOpenDisplay(); 4710 char XtOpenDisplay();
4660 4711
4661 int main() { 4712 int main() {
4662 XtOpenDisplay() 4713 XtOpenDisplay()
4663 ; return 0; } 4714 ; return 0; }
4664 EOF 4715 EOF
4665 if { (eval echo configure:4666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4716 if { (eval echo configure:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4666 rm -rf conftest* 4717 rm -rf conftest*
4667 eval "ac_cv_lib_$ac_lib_var=yes" 4718 eval "ac_cv_lib_$ac_lib_var=yes"
4668 else 4719 else
4669 echo "configure: failed program was:" >&5 4720 echo "configure: failed program was:" >&5
4670 cat conftest.$ac_ext >&5 4721 cat conftest.$ac_ext >&5
4684 4735
4685 ;; 4736 ;;
4686 esac 4737 esac
4687 4738
4688 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 4739 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
4689 echo "configure:4690: checking the version of X11 being used" >&5 4740 echo "configure:4741: checking the version of X11 being used" >&5
4690 cat > conftest.$ac_ext <<EOF 4741 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure" 4742 #line 4743 "configure"
4692 #include "confdefs.h" 4743 #include "confdefs.h"
4693 #include <X11/Intrinsic.h> 4744 #include <X11/Intrinsic.h>
4694 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 4745 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
4695 EOF 4746 EOF
4696 if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
4697 then 4748 then
4698 ./conftest foobar; x11_release=$? 4749 ./conftest foobar; x11_release=$?
4699 else 4750 else
4700 echo "configure: failed program was:" >&5 4751 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5 4752 cat conftest.$ac_ext >&5
4715 4766
4716 for ac_hdr in X11/Xlocale.h 4767 for ac_hdr in X11/Xlocale.h
4717 do 4768 do
4718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4720 echo "configure:4721: checking for $ac_hdr" >&5 4771 echo "configure:4772: checking for $ac_hdr" >&5
4721 4772
4722 cat > conftest.$ac_ext <<EOF 4773 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure" 4774 #line 4775 "configure"
4724 #include "confdefs.h" 4775 #include "confdefs.h"
4725 #include <$ac_hdr> 4776 #include <$ac_hdr>
4726 EOF 4777 EOF
4727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4728 { (eval echo configure:4729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4779 { (eval echo configure:4780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4729 ac_err=`grep -v '^ *+' conftest.out` 4780 ac_err=`grep -v '^ *+' conftest.out`
4730 if test -z "$ac_err"; then 4781 if test -z "$ac_err"; then
4731 rm -rf conftest* 4782 rm -rf conftest*
4732 eval "ac_cv_header_$ac_safe=yes" 4783 eval "ac_cv_header_$ac_safe=yes"
4733 else 4784 else
4754 fi 4805 fi
4755 done 4806 done
4756 4807
4757 4808
4758 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 4809 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
4759 echo "configure:4760: checking for XFree86" >&5 4810 echo "configure:4811: checking for XFree86" >&5
4760 if test -d "/usr/X386/include" -o \ 4811 if test -d "/usr/X386/include" -o \
4761 -f "/etc/XF86Config" -o \ 4812 -f "/etc/XF86Config" -o \
4762 -f "/etc/X11/XF86Config" -o \ 4813 -f "/etc/X11/XF86Config" -o \
4763 -f "/usr/X11R6/lib/X11/XF86Config"; then 4814 -f "/usr/X11R6/lib/X11/XF86Config"; then
4764 echo "$ac_t""yes" 1>&6 4815 echo "$ac_t""yes" 1>&6
4776 4827
4777 case "$opsys" in sunos4* ) libs_x="-u _get_applicationShellWidgetClass -lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-u _get_applicationShellWidgetClass -lXmu\" to \$libs_x"; fi ;; 4828 case "$opsys" in sunos4* ) libs_x="-u _get_applicationShellWidgetClass -lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-u _get_applicationShellWidgetClass -lXmu\" to \$libs_x"; fi ;;
4778 * ) if test -z "$with_xmu"; then 4829 * ) if test -z "$with_xmu"; then
4779 4830
4780 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 4831 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4781 echo "configure:4782: checking for XmuConvertStandardSelection in -lXmu" >&5 4832 echo "configure:4833: checking for XmuConvertStandardSelection in -lXmu" >&5
4782 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 4833 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4783 4834
4784 xe_check_libs=" -lXmu " 4835 xe_check_libs=" -lXmu "
4785 cat > conftest.$ac_ext <<EOF 4836 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure" 4837 #line 4838 "configure"
4787 #include "confdefs.h" 4838 #include "confdefs.h"
4788 /* Override any gcc2 internal prototype to avoid an error. */ 4839 /* Override any gcc2 internal prototype to avoid an error. */
4789 /* We use char because int might match the return type of a gcc2 4840 /* We use char because int might match the return type of a gcc2
4790 builtin and then its argument prototype would still apply. */ 4841 builtin and then its argument prototype would still apply. */
4791 char XmuConvertStandardSelection(); 4842 char XmuConvertStandardSelection();
4792 4843
4793 int main() { 4844 int main() {
4794 XmuConvertStandardSelection() 4845 XmuConvertStandardSelection()
4795 ; return 0; } 4846 ; return 0; }
4796 EOF 4847 EOF
4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4848 if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4798 rm -rf conftest* 4849 rm -rf conftest*
4799 eval "ac_cv_lib_$ac_lib_var=yes" 4850 eval "ac_cv_lib_$ac_lib_var=yes"
4800 else 4851 else
4801 echo "configure: failed program was:" >&5 4852 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5 4853 cat conftest.$ac_ext >&5
4825 fi ;; 4876 fi ;;
4826 esac 4877 esac
4827 4878
4828 4879
4829 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 4880 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4830 echo "configure:4831: checking for main in -lXbsd" >&5 4881 echo "configure:4882: checking for main in -lXbsd" >&5
4831 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 4882 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4832 4883
4833 xe_check_libs=" -lXbsd " 4884 xe_check_libs=" -lXbsd "
4834 cat > conftest.$ac_ext <<EOF 4885 cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure" 4886 #line 4887 "configure"
4836 #include "confdefs.h" 4887 #include "confdefs.h"
4837 4888
4838 int main() { 4889 int main() {
4839 main() 4890 main()
4840 ; return 0; } 4891 ; return 0; }
4841 EOF 4892 EOF
4842 if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4893 if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4843 rm -rf conftest* 4894 rm -rf conftest*
4844 eval "ac_cv_lib_$ac_lib_var=yes" 4895 eval "ac_cv_lib_$ac_lib_var=yes"
4845 else 4896 else
4846 echo "configure: failed program was:" >&5 4897 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5 4898 cat conftest.$ac_ext >&5
4860 4911
4861 4912
4862 4913
4863 4914
4864 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 4915 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
4865 echo "configure:4866: checking for XawScrollbarSetThumb in -lXaw" >&5 4916 echo "configure:4917: checking for XawScrollbarSetThumb in -lXaw" >&5
4866 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4917 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4867 4918
4868 xe_check_libs=" -lXaw " 4919 xe_check_libs=" -lXaw "
4869 cat > conftest.$ac_ext <<EOF 4920 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure" 4921 #line 4922 "configure"
4871 #include "confdefs.h" 4922 #include "confdefs.h"
4872 /* Override any gcc2 internal prototype to avoid an error. */ 4923 /* Override any gcc2 internal prototype to avoid an error. */
4873 /* We use char because int might match the return type of a gcc2 4924 /* We use char because int might match the return type of a gcc2
4874 builtin and then its argument prototype would still apply. */ 4925 builtin and then its argument prototype would still apply. */
4875 char XawScrollbarSetThumb(); 4926 char XawScrollbarSetThumb();
4876 4927
4877 int main() { 4928 int main() {
4878 XawScrollbarSetThumb() 4929 XawScrollbarSetThumb()
4879 ; return 0; } 4930 ; return 0; }
4880 EOF 4931 EOF
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4932 if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4882 rm -rf conftest* 4933 rm -rf conftest*
4883 eval "ac_cv_lib_$ac_lib_var=yes" 4934 eval "ac_cv_lib_$ac_lib_var=yes"
4884 else 4935 else
4885 echo "configure: failed program was:" >&5 4936 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5 4937 cat conftest.$ac_ext >&5
4896 else 4947 else
4897 echo "$ac_t""no" 1>&6 4948 echo "$ac_t""no" 1>&6
4898 have_xaw=no 4949 have_xaw=no
4899 fi 4950 fi
4900 4951
4952
4953
4954 echo $ac_n "checking for NARROWPROTO""... $ac_c" 1>&6
4955 echo "configure:4956: checking for NARROWPROTO" >&5
4956 rm -fr conftestdir
4957 if mkdir conftestdir; then
4958 cd conftestdir
4959 cat > Imakefile <<'EOF'
4960 xetest:
4961 @echo 'proto_defines="${PROTO_DEFINES}"'
4962 EOF
4963 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4964 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4965 eval `${MAKE-make} xetest 2>/dev/null | grep -v make`
4966 case "$proto_defines" in *NARROWPROTO* ) narrowproto=yes ;; esac
4967 fi
4968 cd ..
4969 rm -fr conftestdir
4970 fi
4971 test -z "$narrowproto" && narrowproto=no
4972 echo "$ac_t""$narrowproto" 1>&6
4973 test "$narrowproto" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
4974 Defining NARROWPROTO
4975 EOF
4976 cat >> confdefs.h <<\EOF
4977 #define NARROWPROTO 1
4978 EOF
4979 }
4901 4980
4902 4981
4903 fi 4982 fi
4904 test -z "$window_system" && window_system="none" 4983 test -z "$window_system" && window_system="none"
4905 4984
4933 esac 5012 esac
4934 5013
4935 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5014 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
4936 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5015 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
4937 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5016 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
4938 echo "configure:4939: checking for X11/Xauth.h" >&5 5017 echo "configure:5018: checking for X11/Xauth.h" >&5
4939 5018
4940 cat > conftest.$ac_ext <<EOF 5019 cat > conftest.$ac_ext <<EOF
4941 #line 4942 "configure" 5020 #line 5021 "configure"
4942 #include "confdefs.h" 5021 #include "confdefs.h"
4943 #include <X11/Xauth.h> 5022 #include <X11/Xauth.h>
4944 EOF 5023 EOF
4945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4946 { (eval echo configure:4947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5025 { (eval echo configure:5026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4947 ac_err=`grep -v '^ *+' conftest.out` 5026 ac_err=`grep -v '^ *+' conftest.out`
4948 if test -z "$ac_err"; then 5027 if test -z "$ac_err"; then
4949 rm -rf conftest* 5028 rm -rf conftest*
4950 eval "ac_cv_header_$ac_safe=yes" 5029 eval "ac_cv_header_$ac_safe=yes"
4951 else 5030 else
4964 with_xauth=no 5043 with_xauth=no
4965 fi 5044 fi
4966 } 5045 }
4967 test -z "$with_xauth" && { 5046 test -z "$with_xauth" && {
4968 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5047 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
4969 echo "configure:4970: checking for XauGetAuthByAddr in -lXau" >&5 5048 echo "configure:5049: checking for XauGetAuthByAddr in -lXau" >&5
4970 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5049 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
4971 5050
4972 xe_check_libs=" -lXau " 5051 xe_check_libs=" -lXau "
4973 cat > conftest.$ac_ext <<EOF 5052 cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure" 5053 #line 5054 "configure"
4975 #include "confdefs.h" 5054 #include "confdefs.h"
4976 /* Override any gcc2 internal prototype to avoid an error. */ 5055 /* Override any gcc2 internal prototype to avoid an error. */
4977 /* We use char because int might match the return type of a gcc2 5056 /* We use char because int might match the return type of a gcc2
4978 builtin and then its argument prototype would still apply. */ 5057 builtin and then its argument prototype would still apply. */
4979 char XauGetAuthByAddr(); 5058 char XauGetAuthByAddr();
4980 5059
4981 int main() { 5060 int main() {
4982 XauGetAuthByAddr() 5061 XauGetAuthByAddr()
4983 ; return 0; } 5062 ; return 0; }
4984 EOF 5063 EOF
4985 if { (eval echo configure:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4986 rm -rf conftest* 5065 rm -rf conftest*
4987 eval "ac_cv_lib_$ac_lib_var=yes" 5066 eval "ac_cv_lib_$ac_lib_var=yes"
4988 else 5067 else
4989 echo "configure: failed program was:" >&5 5068 echo "configure: failed program was:" >&5
4990 cat conftest.$ac_ext >&5 5069 cat conftest.$ac_ext >&5
5011 cat >> confdefs.h <<\EOF 5090 cat >> confdefs.h <<\EOF
5012 #define HAVE_XAUTH 1 5091 #define HAVE_XAUTH 1
5013 EOF 5092 EOF
5014 } 5093 }
5015 5094
5016 libs_x="-lXau $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXau\" to \$libs_x"; fi 5095
5017 fi 5096 T=""
5097 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
5098 libs_xauth="$T"
5099
5100 fi
5101
5018 5102
5019 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` 5103 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'`
5020 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 5104 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6
5021 echo "configure:5022: checking for OffiX/DragAndDrop.h" >&5 5105 echo "configure:5106: checking for OffiX/DragAndDrop.h" >&5
5022 5106
5023 cat > conftest.$ac_ext <<EOF 5107 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure" 5108 #line 5109 "configure"
5025 #include "confdefs.h" 5109 #include "confdefs.h"
5026 #include <OffiX/DragAndDrop.h> 5110 #include <OffiX/DragAndDrop.h>
5027 EOF 5111 EOF
5028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5029 { (eval echo configure:5030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5113 { (eval echo configure:5114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5030 ac_err=`grep -v '^ *+' conftest.out` 5114 ac_err=`grep -v '^ *+' conftest.out`
5031 if test -z "$ac_err"; then 5115 if test -z "$ac_err"; then
5032 rm -rf conftest* 5116 rm -rf conftest*
5033 eval "ac_cv_header_$ac_safe=yes" 5117 eval "ac_cv_header_$ac_safe=yes"
5034 else 5118 else
5047 with_offix=no 5131 with_offix=no
5048 fi 5132 fi
5049 } 5133 }
5050 test -z "$with_offix" && { 5134 test -z "$with_offix" && {
5051 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 5135 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6
5052 echo "configure:5053: checking for DndInitialize in -lDnd" >&5 5136 echo "configure:5137: checking for DndInitialize in -lDnd" >&5
5053 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` 5137 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'`
5054 5138
5055 xe_check_libs=" -lDnd " 5139 xe_check_libs=" -lDnd "
5056 cat > conftest.$ac_ext <<EOF 5140 cat > conftest.$ac_ext <<EOF
5057 #line 5058 "configure" 5141 #line 5142 "configure"
5058 #include "confdefs.h" 5142 #include "confdefs.h"
5059 /* Override any gcc2 internal prototype to avoid an error. */ 5143 /* Override any gcc2 internal prototype to avoid an error. */
5060 /* We use char because int might match the return type of a gcc2 5144 /* We use char because int might match the return type of a gcc2
5061 builtin and then its argument prototype would still apply. */ 5145 builtin and then its argument prototype would still apply. */
5062 char DndInitialize(); 5146 char DndInitialize();
5063 5147
5064 int main() { 5148 int main() {
5065 DndInitialize() 5149 DndInitialize()
5066 ; return 0; } 5150 ; return 0; }
5067 EOF 5151 EOF
5068 if { (eval echo configure:5069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5069 rm -rf conftest* 5153 rm -rf conftest*
5070 eval "ac_cv_lib_$ac_lib_var=yes" 5154 eval "ac_cv_lib_$ac_lib_var=yes"
5071 else 5155 else
5072 echo "configure: failed program was:" >&5 5156 echo "configure: failed program was:" >&5
5073 cat conftest.$ac_ext >&5 5157 cat conftest.$ac_ext >&5
5102 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5186 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5103 if test "$with_tooltalk" != "no" ; then 5187 if test "$with_tooltalk" != "no" ; then
5104 for dir in "" "Tt/" "desktop/" ; do 5188 for dir in "" "Tt/" "desktop/" ; do
5105 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5189 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5106 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5190 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5107 echo "configure:5108: checking for ${dir}tt_c.h" >&5 5191 echo "configure:5192: checking for ${dir}tt_c.h" >&5
5108 5192
5109 cat > conftest.$ac_ext <<EOF 5193 cat > conftest.$ac_ext <<EOF
5110 #line 5111 "configure" 5194 #line 5195 "configure"
5111 #include "confdefs.h" 5195 #include "confdefs.h"
5112 #include <${dir}tt_c.h> 5196 #include <${dir}tt_c.h>
5113 EOF 5197 EOF
5114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5115 { (eval echo configure:5116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5199 { (eval echo configure:5200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5116 ac_err=`grep -v '^ *+' conftest.out` 5200 ac_err=`grep -v '^ *+' conftest.out`
5117 if test -z "$ac_err"; then 5201 if test -z "$ac_err"; then
5118 rm -rf conftest* 5202 rm -rf conftest*
5119 eval "ac_cv_header_$ac_safe=yes" 5203 eval "ac_cv_header_$ac_safe=yes"
5120 else 5204 else
5139 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5223 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5140 5224
5141 xe_msg_checking="for tt_message_create in -ltt" 5225 xe_msg_checking="for tt_message_create in -ltt"
5142 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5226 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5143 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5227 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5144 echo "configure:5145: checking "$xe_msg_checking"" >&5 5228 echo "configure:5229: checking "$xe_msg_checking"" >&5
5145 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5229 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5146 5230
5147 xe_check_libs=" -ltt $extra_libs" 5231 xe_check_libs=" -ltt $extra_libs"
5148 cat > conftest.$ac_ext <<EOF 5232 cat > conftest.$ac_ext <<EOF
5149 #line 5150 "configure" 5233 #line 5234 "configure"
5150 #include "confdefs.h" 5234 #include "confdefs.h"
5151 /* Override any gcc2 internal prototype to avoid an error. */ 5235 /* Override any gcc2 internal prototype to avoid an error. */
5152 /* We use char because int might match the return type of a gcc2 5236 /* We use char because int might match the return type of a gcc2
5153 builtin and then its argument prototype would still apply. */ 5237 builtin and then its argument prototype would still apply. */
5154 char tt_message_create(); 5238 char tt_message_create();
5155 5239
5156 int main() { 5240 int main() {
5157 tt_message_create() 5241 tt_message_create()
5158 ; return 0; } 5242 ; return 0; }
5159 EOF 5243 EOF
5160 if { (eval echo configure:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5244 if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5161 rm -rf conftest* 5245 rm -rf conftest*
5162 eval "ac_cv_lib_$ac_lib_var=yes" 5246 eval "ac_cv_lib_$ac_lib_var=yes"
5163 else 5247 else
5164 echo "configure: failed program was:" >&5 5248 echo "configure: failed program was:" >&5
5165 cat conftest.$ac_ext >&5 5249 cat conftest.$ac_ext >&5
5204 fi 5288 fi
5205 fi 5289 fi
5206 5290
5207 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5291 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5208 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5292 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5209 echo "configure:5210: checking for Dt/Dt.h" >&5 5293 echo "configure:5294: checking for Dt/Dt.h" >&5
5210 5294
5211 cat > conftest.$ac_ext <<EOF 5295 cat > conftest.$ac_ext <<EOF
5212 #line 5213 "configure" 5296 #line 5297 "configure"
5213 #include "confdefs.h" 5297 #include "confdefs.h"
5214 #include <Dt/Dt.h> 5298 #include <Dt/Dt.h>
5215 EOF 5299 EOF
5216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5217 { (eval echo configure:5218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5301 { (eval echo configure:5302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5218 ac_err=`grep -v '^ *+' conftest.out` 5302 ac_err=`grep -v '^ *+' conftest.out`
5219 if test -z "$ac_err"; then 5303 if test -z "$ac_err"; then
5220 rm -rf conftest* 5304 rm -rf conftest*
5221 eval "ac_cv_header_$ac_safe=yes" 5305 eval "ac_cv_header_$ac_safe=yes"
5222 else 5306 else
5235 with_cde=no 5319 with_cde=no
5236 fi 5320 fi
5237 } 5321 }
5238 test -z "$with_cde" && { 5322 test -z "$with_cde" && {
5239 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5323 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5240 echo "configure:5241: checking for DtDndDragStart in -lDtSvc" >&5 5324 echo "configure:5325: checking for DtDndDragStart in -lDtSvc" >&5
5241 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5325 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5242 5326
5243 xe_check_libs=" -lDtSvc " 5327 xe_check_libs=" -lDtSvc "
5244 cat > conftest.$ac_ext <<EOF 5328 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure" 5329 #line 5330 "configure"
5246 #include "confdefs.h" 5330 #include "confdefs.h"
5247 /* Override any gcc2 internal prototype to avoid an error. */ 5331 /* Override any gcc2 internal prototype to avoid an error. */
5248 /* We use char because int might match the return type of a gcc2 5332 /* We use char because int might match the return type of a gcc2
5249 builtin and then its argument prototype would still apply. */ 5333 builtin and then its argument prototype would still apply. */
5250 char DtDndDragStart(); 5334 char DtDndDragStart();
5251 5335
5252 int main() { 5336 int main() {
5253 DtDndDragStart() 5337 DtDndDragStart()
5254 ; return 0; } 5338 ; return 0; }
5255 EOF 5339 EOF
5256 if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5340 if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5257 rm -rf conftest* 5341 rm -rf conftest*
5258 eval "ac_cv_lib_$ac_lib_var=yes" 5342 eval "ac_cv_lib_$ac_lib_var=yes"
5259 else 5343 else
5260 echo "configure: failed program was:" >&5 5344 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5 5345 cat conftest.$ac_ext >&5
5298 EOF 5382 EOF
5299 } 5383 }
5300 5384
5301 5385
5302 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 5386 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6
5303 echo "configure:5304: checking for main in -lenergize" >&5 5387 echo "configure:5388: checking for main in -lenergize" >&5
5304 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` 5388 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'`
5305 5389
5306 xe_check_libs=" -lenergize " 5390 xe_check_libs=" -lenergize "
5307 cat > conftest.$ac_ext <<EOF 5391 cat > conftest.$ac_ext <<EOF
5308 #line 5309 "configure" 5392 #line 5393 "configure"
5309 #include "confdefs.h" 5393 #include "confdefs.h"
5310 5394
5311 int main() { 5395 int main() {
5312 main() 5396 main()
5313 ; return 0; } 5397 ; return 0; }
5314 EOF 5398 EOF
5315 if { (eval echo configure:5316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5316 rm -rf conftest* 5400 rm -rf conftest*
5317 eval "ac_cv_lib_$ac_lib_var=yes" 5401 eval "ac_cv_lib_$ac_lib_var=yes"
5318 else 5402 else
5319 echo "configure: failed program was:" >&5 5403 echo "configure: failed program was:" >&5
5320 cat conftest.$ac_ext >&5 5404 cat conftest.$ac_ext >&5
5342 5426
5343 5427
5344 if test -z "$energize_version"; then 5428 if test -z "$energize_version"; then
5345 5429
5346 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 5430 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6
5347 echo "configure:5348: checking for main in -lconn" >&5 5431 echo "configure:5432: checking for main in -lconn" >&5
5348 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` 5432 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'`
5349 5433
5350 xe_check_libs=" -lconn " 5434 xe_check_libs=" -lconn "
5351 cat > conftest.$ac_ext <<EOF 5435 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure" 5436 #line 5437 "configure"
5353 #include "confdefs.h" 5437 #include "confdefs.h"
5354 5438
5355 int main() { 5439 int main() {
5356 main() 5440 main()
5357 ; return 0; } 5441 ; return 0; }
5358 EOF 5442 EOF
5359 if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5443 if { (eval echo configure:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5360 rm -rf conftest* 5444 rm -rf conftest*
5361 eval "ac_cv_lib_$ac_lib_var=yes" 5445 eval "ac_cv_lib_$ac_lib_var=yes"
5362 else 5446 else
5363 echo "configure: failed program was:" >&5 5447 echo "configure: failed program was:" >&5
5364 cat conftest.$ac_ext >&5 5448 cat conftest.$ac_ext >&5
5387 5471
5388 5472
5389 fi 5473 fi
5390 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` 5474 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'`
5391 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 5475 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6
5392 echo "configure:5393: checking for editorconn.h" >&5 5476 echo "configure:5477: checking for editorconn.h" >&5
5393 5477
5394 cat > conftest.$ac_ext <<EOF 5478 cat > conftest.$ac_ext <<EOF
5395 #line 5396 "configure" 5479 #line 5480 "configure"
5396 #include "confdefs.h" 5480 #include "confdefs.h"
5397 #include <editorconn.h> 5481 #include <editorconn.h>
5398 EOF 5482 EOF
5399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5400 { (eval echo configure:5401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5484 { (eval echo configure:5485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5401 ac_err=`grep -v '^ *+' conftest.out` 5485 ac_err=`grep -v '^ *+' conftest.out`
5402 if test -z "$ac_err"; then 5486 if test -z "$ac_err"; then
5403 rm -rf conftest* 5487 rm -rf conftest*
5404 eval "ac_cv_header_$ac_safe=yes" 5488 eval "ac_cv_header_$ac_safe=yes"
5405 else 5489 else
5437 5521
5438 fi 5522 fi
5439 5523
5440 5524
5441 echo "checking for graphics libraries" 1>&6 5525 echo "checking for graphics libraries" 1>&6
5442 echo "configure:5443: checking for graphics libraries" >&5 5526 echo "configure:5527: checking for graphics libraries" >&5
5443 test -z "$with_gif" && with_gif=yes; 5527 test -z "$with_gif" && with_gif=yes;
5444 if test "$with_gif" = "yes"; then 5528 if test "$with_gif" = "yes"; then
5445 { test "$extra_verbose" = "yes" && cat << \EOF 5529 { test "$extra_verbose" = "yes" && cat << \EOF
5446 Defining HAVE_GIF 5530 Defining HAVE_GIF
5447 EOF 5531 EOF
5453 extra_objs="$extra_objs dgif_lib.o gif_err.o gifalloc.o" && if test "$extra_verbose" = "yes"; then 5537 extra_objs="$extra_objs dgif_lib.o gif_err.o gifalloc.o" && if test "$extra_verbose" = "yes"; then
5454 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\"" 5538 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\""
5455 fi 5539 fi
5456 fi 5540 fi
5457 5541
5458 test -z "$with_xpm" && { ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 5542 echo $ac_n "checking for Xpm""... $ac_c" 1>&6
5459 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 5543 echo "configure:5544: checking for Xpm" >&5
5460 echo "configure:5461: checking for X11/xpm.h" >&5 5544 xe_check_libs=-lXpm
5461 5545 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
5462 cat > conftest.$ac_ext <<EOF 5546 #line 5547 "configure"
5463 #line 5464 "configure"
5464 #include "confdefs.h" 5547 #include "confdefs.h"
5465 #include <X11/xpm.h> 5548 #include <X11/xpm.h>
5549 int main(int argc, char *argv[]) {
5550 return (XpmIncludeVersion != XpmLibraryVersion()) ||
5551 XpmIncludeVersion < 30406;
5552 }
5553 EOF
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5555 then
5556 with_xpm=yes
5557 else
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5560 rm -fr conftest*
5561 with_xpm=no
5562 fi
5563 rm -fr conftest*
5564 }
5565 xe_check_libs=
5566 echo "$ac_t""$with_xpm" 1>&6
5567 if test "$with_xpm" = "yes"; then
5568 { test "$extra_verbose" = "yes" && cat << \EOF
5569 Defining HAVE_XPM
5570 EOF
5571 cat >> confdefs.h <<\EOF
5572 #define HAVE_XPM 1
5573 EOF
5574 }
5575
5576 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
5577 fi
5578
5579 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
5580 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
5581 echo "configure:5582: checking for compface.h" >&5
5582
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5586 #include <compface.h>
5466 EOF 5587 EOF
5467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5468 { (eval echo configure:5469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5589 { (eval echo configure:5590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5469 ac_err=`grep -v '^ *+' conftest.out` 5590 ac_err=`grep -v '^ *+' conftest.out`
5470 if test -z "$ac_err"; then 5591 if test -z "$ac_err"; then
5471 rm -rf conftest* 5592 rm -rf conftest*
5472 eval "ac_cv_header_$ac_safe=yes" 5593 eval "ac_cv_header_$ac_safe=yes"
5473 else 5594 else
5481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5482 echo "$ac_t""yes" 1>&6 5603 echo "$ac_t""yes" 1>&6
5483 : 5604 :
5484 else 5605 else
5485 echo "$ac_t""no" 1>&6 5606 echo "$ac_t""no" 1>&6
5486 with_xpm=no
5487 fi
5488 }
5489 test -z "$with_xpm" && {
5490 echo $ac_n "checking for XpmFree in -lXpm""... $ac_c" 1>&6
5491 echo "configure:5492: checking for XpmFree in -lXpm" >&5
5492 ac_lib_var=`echo Xpm'_'XpmFree | sed 'y%./+-%__p_%'`
5493
5494 xe_check_libs=" -lXpm "
5495 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5498 /* Override any gcc2 internal prototype to avoid an error. */
5499 /* We use char because int might match the return type of a gcc2
5500 builtin and then its argument prototype would still apply. */
5501 char XpmFree();
5502
5503 int main() {
5504 XpmFree()
5505 ; return 0; }
5506 EOF
5507 if { (eval echo configure:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5508 rm -rf conftest*
5509 eval "ac_cv_lib_$ac_lib_var=yes"
5510 else
5511 echo "configure: failed program was:" >&5
5512 cat conftest.$ac_ext >&5
5513 rm -rf conftest*
5514 eval "ac_cv_lib_$ac_lib_var=no"
5515 fi
5516 rm -f conftest*
5517 xe_check_libs=""
5518
5519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5520 echo "$ac_t""yes" 1>&6
5521 :
5522 else
5523 echo "$ac_t""no" 1>&6
5524 with_xpm=no
5525 fi
5526
5527 }
5528 test -z "$with_xpm" && with_xpm=yes
5529 if test "$with_xpm" = "yes"; then
5530 { test "$extra_verbose" = "yes" && cat << \EOF
5531 Defining HAVE_XPM
5532 EOF
5533 cat >> confdefs.h <<\EOF
5534 #define HAVE_XPM 1
5535 EOF
5536 }
5537
5538 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
5539 fi
5540
5541 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
5542 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
5543 echo "configure:5544: checking for compface.h" >&5
5544
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 #include <compface.h>
5549 EOF
5550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5551 { (eval echo configure:5552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5552 ac_err=`grep -v '^ *+' conftest.out`
5553 if test -z "$ac_err"; then
5554 rm -rf conftest*
5555 eval "ac_cv_header_$ac_safe=yes"
5556 else
5557 echo "$ac_err" >&5
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5560 rm -rf conftest*
5561 eval "ac_cv_header_$ac_safe=no"
5562 fi
5563 rm -f conftest*
5564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5565 echo "$ac_t""yes" 1>&6
5566 :
5567 else
5568 echo "$ac_t""no" 1>&6
5569 with_xface=no 5607 with_xface=no
5570 fi 5608 fi
5571 } 5609 }
5572 test -z "$with_xface" && { 5610 test -z "$with_xface" && {
5573 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 5611 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
5574 echo "configure:5575: checking for UnGenFace in -lcompface" >&5 5612 echo "configure:5613: checking for UnGenFace in -lcompface" >&5
5575 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 5613 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
5576 5614
5577 xe_check_libs=" -lcompface " 5615 xe_check_libs=" -lcompface "
5578 cat > conftest.$ac_ext <<EOF 5616 cat > conftest.$ac_ext <<EOF
5579 #line 5580 "configure" 5617 #line 5618 "configure"
5580 #include "confdefs.h" 5618 #include "confdefs.h"
5581 /* Override any gcc2 internal prototype to avoid an error. */ 5619 /* Override any gcc2 internal prototype to avoid an error. */
5582 /* We use char because int might match the return type of a gcc2 5620 /* We use char because int might match the return type of a gcc2
5583 builtin and then its argument prototype would still apply. */ 5621 builtin and then its argument prototype would still apply. */
5584 char UnGenFace(); 5622 char UnGenFace();
5585 5623
5586 int main() { 5624 int main() {
5587 UnGenFace() 5625 UnGenFace()
5588 ; return 0; } 5626 ; return 0; }
5589 EOF 5627 EOF
5590 if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5628 if { (eval echo configure:5629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5591 rm -rf conftest* 5629 rm -rf conftest*
5592 eval "ac_cv_lib_$ac_lib_var=yes" 5630 eval "ac_cv_lib_$ac_lib_var=yes"
5593 else 5631 else
5594 echo "configure: failed program was:" >&5 5632 echo "configure: failed program was:" >&5
5595 cat conftest.$ac_ext >&5 5633 cat conftest.$ac_ext >&5
5621 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 5659 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
5622 fi 5660 fi
5623 5661
5624 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 5662 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
5625 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 5663 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
5626 echo "configure:5627: checking for jpeglib.h" >&5 5664 echo "configure:5665: checking for jpeglib.h" >&5
5627 5665
5628 cat > conftest.$ac_ext <<EOF 5666 cat > conftest.$ac_ext <<EOF
5629 #line 5630 "configure" 5667 #line 5668 "configure"
5630 #include "confdefs.h" 5668 #include "confdefs.h"
5631 #include <jpeglib.h> 5669 #include <jpeglib.h>
5632 EOF 5670 EOF
5633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5634 { (eval echo configure:5635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5672 { (eval echo configure:5673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5635 ac_err=`grep -v '^ *+' conftest.out` 5673 ac_err=`grep -v '^ *+' conftest.out`
5636 if test -z "$ac_err"; then 5674 if test -z "$ac_err"; then
5637 rm -rf conftest* 5675 rm -rf conftest*
5638 eval "ac_cv_header_$ac_safe=yes" 5676 eval "ac_cv_header_$ac_safe=yes"
5639 else 5677 else
5652 with_jpeg=no 5690 with_jpeg=no
5653 fi 5691 fi
5654 } 5692 }
5655 test -z "$with_jpeg" && { 5693 test -z "$with_jpeg" && {
5656 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 5694 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
5657 echo "configure:5658: checking for jpeg_destroy_decompress in -ljpeg" >&5 5695 echo "configure:5696: checking for jpeg_destroy_decompress in -ljpeg" >&5
5658 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 5696 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
5659 5697
5660 xe_check_libs=" -ljpeg " 5698 xe_check_libs=" -ljpeg "
5661 cat > conftest.$ac_ext <<EOF 5699 cat > conftest.$ac_ext <<EOF
5662 #line 5663 "configure" 5700 #line 5701 "configure"
5663 #include "confdefs.h" 5701 #include "confdefs.h"
5664 /* Override any gcc2 internal prototype to avoid an error. */ 5702 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2 5703 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */ 5704 builtin and then its argument prototype would still apply. */
5667 char jpeg_destroy_decompress(); 5705 char jpeg_destroy_decompress();
5668 5706
5669 int main() { 5707 int main() {
5670 jpeg_destroy_decompress() 5708 jpeg_destroy_decompress()
5671 ; return 0; } 5709 ; return 0; }
5672 EOF 5710 EOF
5673 if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5711 if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5674 rm -rf conftest* 5712 rm -rf conftest*
5675 eval "ac_cv_lib_$ac_lib_var=yes" 5713 eval "ac_cv_lib_$ac_lib_var=yes"
5676 else 5714 else
5677 echo "configure: failed program was:" >&5 5715 echo "configure: failed program was:" >&5
5678 cat conftest.$ac_ext >&5 5716 cat conftest.$ac_ext >&5
5704 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 5742 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
5705 fi 5743 fi
5706 5744
5707 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 5745 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5708 echo $ac_n "checking for png.h""... $ac_c" 1>&6 5746 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5709 echo "configure:5710: checking for png.h" >&5 5747 echo "configure:5748: checking for png.h" >&5
5710 5748
5711 cat > conftest.$ac_ext <<EOF 5749 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure" 5750 #line 5751 "configure"
5713 #include "confdefs.h" 5751 #include "confdefs.h"
5714 #include <png.h> 5752 #include <png.h>
5715 EOF 5753 EOF
5716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5717 { (eval echo configure:5718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5755 { (eval echo configure:5756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5718 ac_err=`grep -v '^ *+' conftest.out` 5756 ac_err=`grep -v '^ *+' conftest.out`
5719 if test -z "$ac_err"; then 5757 if test -z "$ac_err"; then
5720 rm -rf conftest* 5758 rm -rf conftest*
5721 eval "ac_cv_header_$ac_safe=yes" 5759 eval "ac_cv_header_$ac_safe=yes"
5722 else 5760 else
5734 echo "$ac_t""no" 1>&6 5772 echo "$ac_t""no" 1>&6
5735 with_png=no 5773 with_png=no
5736 fi 5774 fi
5737 } 5775 }
5738 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 5776 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
5739 echo "configure:5740: checking for pow" >&5 5777 echo "configure:5778: checking for pow" >&5
5740 5778
5741 cat > conftest.$ac_ext <<EOF 5779 cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure" 5780 #line 5781 "configure"
5743 #include "confdefs.h" 5781 #include "confdefs.h"
5744 /* System header to define __stub macros and hopefully few prototypes, 5782 /* System header to define __stub macros and hopefully few prototypes,
5745 which can conflict with char pow(); below. */ 5783 which can conflict with char pow(); below. */
5746 #include <assert.h> 5784 #include <assert.h>
5747 /* Override any gcc2 internal prototype to avoid an error. */ 5785 /* Override any gcc2 internal prototype to avoid an error. */
5760 pow(); 5798 pow();
5761 #endif 5799 #endif
5762 5800
5763 ; return 0; } 5801 ; return 0; }
5764 EOF 5802 EOF
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5803 if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5766 rm -rf conftest* 5804 rm -rf conftest*
5767 eval "ac_cv_func_pow=yes" 5805 eval "ac_cv_func_pow=yes"
5768 else 5806 else
5769 echo "configure: failed program was:" >&5 5807 echo "configure: failed program was:" >&5
5770 cat conftest.$ac_ext >&5 5808 cat conftest.$ac_ext >&5
5785 for extra_libs in "" "-lz" "-lgz"; do 5823 for extra_libs in "" "-lz" "-lgz"; do
5786 5824
5787 xe_msg_checking="for png_read_image in -lpng" 5825 xe_msg_checking="for png_read_image in -lpng"
5788 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5826 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5789 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5827 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5790 echo "configure:5791: checking "$xe_msg_checking"" >&5 5828 echo "configure:5829: checking "$xe_msg_checking"" >&5
5791 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 5829 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
5792 5830
5793 xe_check_libs=" -lpng $extra_libs" 5831 xe_check_libs=" -lpng $extra_libs"
5794 cat > conftest.$ac_ext <<EOF 5832 cat > conftest.$ac_ext <<EOF
5795 #line 5796 "configure" 5833 #line 5834 "configure"
5796 #include "confdefs.h" 5834 #include "confdefs.h"
5797 /* Override any gcc2 internal prototype to avoid an error. */ 5835 /* Override any gcc2 internal prototype to avoid an error. */
5798 /* We use char because int might match the return type of a gcc2 5836 /* We use char because int might match the return type of a gcc2
5799 builtin and then its argument prototype would still apply. */ 5837 builtin and then its argument prototype would still apply. */
5800 char png_read_image(); 5838 char png_read_image();
5801 5839
5802 int main() { 5840 int main() {
5803 png_read_image() 5841 png_read_image()
5804 ; return 0; } 5842 ; return 0; }
5805 EOF 5843 EOF
5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5844 if { (eval echo configure:5845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5807 rm -rf conftest* 5845 rm -rf conftest*
5808 eval "ac_cv_lib_$ac_lib_var=yes" 5846 eval "ac_cv_lib_$ac_lib_var=yes"
5809 else 5847 else
5810 echo "configure: failed program was:" >&5 5848 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5 5849 cat conftest.$ac_ext >&5
5851 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi 5889 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
5852 fi 5890 fi
5853 5891
5854 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 5892 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
5855 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 5893 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
5856 echo "configure:5857: checking for Xm/Xm.h" >&5 5894 echo "configure:5895: checking for Xm/Xm.h" >&5
5857 5895
5858 cat > conftest.$ac_ext <<EOF 5896 cat > conftest.$ac_ext <<EOF
5859 #line 5860 "configure" 5897 #line 5898 "configure"
5860 #include "confdefs.h" 5898 #include "confdefs.h"
5861 #include <Xm/Xm.h> 5899 #include <Xm/Xm.h>
5862 EOF 5900 EOF
5863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5864 { (eval echo configure:5865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5902 { (eval echo configure:5903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5865 ac_err=`grep -v '^ *+' conftest.out` 5903 ac_err=`grep -v '^ *+' conftest.out`
5866 if test -z "$ac_err"; then 5904 if test -z "$ac_err"; then
5867 rm -rf conftest* 5905 rm -rf conftest*
5868 eval "ac_cv_header_$ac_safe=yes" 5906 eval "ac_cv_header_$ac_safe=yes"
5869 else 5907 else
5876 rm -f conftest* 5914 rm -f conftest*
5877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5878 echo "$ac_t""yes" 1>&6 5916 echo "$ac_t""yes" 1>&6
5879 5917
5880 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 5918 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
5881 echo "configure:5882: checking for XmStringFree in -lXm" >&5 5919 echo "configure:5920: checking for XmStringFree in -lXm" >&5
5882 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 5920 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
5883 5921
5884 xe_check_libs=" -lXm " 5922 xe_check_libs=" -lXm "
5885 cat > conftest.$ac_ext <<EOF 5923 cat > conftest.$ac_ext <<EOF
5886 #line 5887 "configure" 5924 #line 5925 "configure"
5887 #include "confdefs.h" 5925 #include "confdefs.h"
5888 /* Override any gcc2 internal prototype to avoid an error. */ 5926 /* Override any gcc2 internal prototype to avoid an error. */
5889 /* We use char because int might match the return type of a gcc2 5927 /* We use char because int might match the return type of a gcc2
5890 builtin and then its argument prototype would still apply. */ 5928 builtin and then its argument prototype would still apply. */
5891 char XmStringFree(); 5929 char XmStringFree();
5892 5930
5893 int main() { 5931 int main() {
5894 XmStringFree() 5932 XmStringFree()
5895 ; return 0; } 5933 ; return 0; }
5896 EOF 5934 EOF
5897 if { (eval echo configure:5898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5935 if { (eval echo configure:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5898 rm -rf conftest* 5936 rm -rf conftest*
5899 eval "ac_cv_lib_$ac_lib_var=yes" 5937 eval "ac_cv_lib_$ac_lib_var=yes"
5900 else 5938 else
5901 echo "configure: failed program was:" >&5 5939 echo "configure: failed program was:" >&5
5902 cat conftest.$ac_ext >&5 5940 cat conftest.$ac_ext >&5
6140 6178
6141 test -z "$with_mule" && with_mule=no 6179 test -z "$with_mule" && with_mule=no
6142 6180
6143 if test "$with_mule" = "yes" ; then 6181 if test "$with_mule" = "yes" ; then
6144 echo "checking for Mule-related features" 1>&6 6182 echo "checking for Mule-related features" 1>&6
6145 echo "configure:6146: checking for Mule-related features" >&5 6183 echo "configure:6184: checking for Mule-related features" >&5
6146 { test "$extra_verbose" = "yes" && cat << \EOF 6184 { test "$extra_verbose" = "yes" && cat << \EOF
6147 Defining MULE 6185 Defining MULE
6148 EOF 6186 EOF
6149 cat >> confdefs.h <<\EOF 6187 cat >> confdefs.h <<\EOF
6150 #define MULE 1 6188 #define MULE 1
6157 6195
6158 for ac_hdr in libintl.h 6196 for ac_hdr in libintl.h
6159 do 6197 do
6160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6162 echo "configure:6163: checking for $ac_hdr" >&5 6200 echo "configure:6201: checking for $ac_hdr" >&5
6163 6201
6164 cat > conftest.$ac_ext <<EOF 6202 cat > conftest.$ac_ext <<EOF
6165 #line 6166 "configure" 6203 #line 6204 "configure"
6166 #include "confdefs.h" 6204 #include "confdefs.h"
6167 #include <$ac_hdr> 6205 #include <$ac_hdr>
6168 EOF 6206 EOF
6169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6170 { (eval echo configure:6171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6208 { (eval echo configure:6209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6171 ac_err=`grep -v '^ *+' conftest.out` 6209 ac_err=`grep -v '^ *+' conftest.out`
6172 if test -z "$ac_err"; then 6210 if test -z "$ac_err"; then
6173 rm -rf conftest* 6211 rm -rf conftest*
6174 eval "ac_cv_header_$ac_safe=yes" 6212 eval "ac_cv_header_$ac_safe=yes"
6175 else 6213 else
6196 fi 6234 fi
6197 done 6235 done
6198 6236
6199 6237
6200 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6238 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6201 echo "configure:6202: checking for strerror in -lintl" >&5 6239 echo "configure:6240: checking for strerror in -lintl" >&5
6202 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6240 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6203 6241
6204 xe_check_libs=" -lintl " 6242 xe_check_libs=" -lintl "
6205 cat > conftest.$ac_ext <<EOF 6243 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure" 6244 #line 6245 "configure"
6207 #include "confdefs.h" 6245 #include "confdefs.h"
6208 /* Override any gcc2 internal prototype to avoid an error. */ 6246 /* Override any gcc2 internal prototype to avoid an error. */
6209 /* We use char because int might match the return type of a gcc2 6247 /* We use char because int might match the return type of a gcc2
6210 builtin and then its argument prototype would still apply. */ 6248 builtin and then its argument prototype would still apply. */
6211 char strerror(); 6249 char strerror();
6212 6250
6213 int main() { 6251 int main() {
6214 strerror() 6252 strerror()
6215 ; return 0; } 6253 ; return 0; }
6216 EOF 6254 EOF
6217 if { (eval echo configure:6218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6255 if { (eval echo configure:6256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6218 rm -rf conftest* 6256 rm -rf conftest*
6219 eval "ac_cv_lib_$ac_lib_var=yes" 6257 eval "ac_cv_lib_$ac_lib_var=yes"
6220 else 6258 else
6221 echo "configure: failed program was:" >&5 6259 echo "configure: failed program was:" >&5
6222 cat conftest.$ac_ext >&5 6260 cat conftest.$ac_ext >&5
6245 fi 6283 fi
6246 6284
6247 6285
6248 6286
6249 echo "checking for Mule input methods" 1>&6 6287 echo "checking for Mule input methods" 1>&6
6250 echo "configure:6251: checking for Mule input methods" >&5 6288 echo "configure:6289: checking for Mule input methods" >&5
6251 test -z "$with_xim" && case "$opsys" in sol2* ) ;; *) with_xim=no ;; esac 6289 test -z "$with_xim" && case "$opsys" in sol2* ) ;; *) with_xim=no ;; esac
6252 case "$with_xim" in "" | "yes" ) 6290 case "$with_xim" in "" | "yes" )
6253 echo "checking for XIM" 1>&6 6291 echo "checking for XIM" 1>&6
6254 echo "configure:6255: checking for XIM" >&5 6292 echo "configure:6293: checking for XIM" >&5
6255 6293
6256 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6294 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6257 echo "configure:6258: checking for XmImMbLookupString in -lXm" >&5 6295 echo "configure:6296: checking for XmImMbLookupString in -lXm" >&5
6258 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6296 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6259 6297
6260 xe_check_libs=" -lXm " 6298 xe_check_libs=" -lXm "
6261 cat > conftest.$ac_ext <<EOF 6299 cat > conftest.$ac_ext <<EOF
6262 #line 6263 "configure" 6300 #line 6301 "configure"
6263 #include "confdefs.h" 6301 #include "confdefs.h"
6264 /* Override any gcc2 internal prototype to avoid an error. */ 6302 /* Override any gcc2 internal prototype to avoid an error. */
6265 /* We use char because int might match the return type of a gcc2 6303 /* We use char because int might match the return type of a gcc2
6266 builtin and then its argument prototype would still apply. */ 6304 builtin and then its argument prototype would still apply. */
6267 char XmImMbLookupString(); 6305 char XmImMbLookupString();
6268 6306
6269 int main() { 6307 int main() {
6270 XmImMbLookupString() 6308 XmImMbLookupString()
6271 ; return 0; } 6309 ; return 0; }
6272 EOF 6310 EOF
6273 if { (eval echo configure:6274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6311 if { (eval echo configure:6312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6274 rm -rf conftest* 6312 rm -rf conftest*
6275 eval "ac_cv_lib_$ac_lib_var=yes" 6313 eval "ac_cv_lib_$ac_lib_var=yes"
6276 else 6314 else
6277 echo "configure: failed program was:" >&5 6315 echo "configure: failed program was:" >&5
6278 cat conftest.$ac_ext >&5 6316 cat conftest.$ac_ext >&5
6330 fi 6368 fi
6331 fi 6369 fi
6332 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 6370 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6333 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 6371 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
6334 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 6372 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
6335 echo "configure:6336: checking for wnn/jllib.h" >&5 6373 echo "configure:6374: checking for wnn/jllib.h" >&5
6336 6374
6337 cat > conftest.$ac_ext <<EOF 6375 cat > conftest.$ac_ext <<EOF
6338 #line 6339 "configure" 6376 #line 6377 "configure"
6339 #include "confdefs.h" 6377 #include "confdefs.h"
6340 #include <wnn/jllib.h> 6378 #include <wnn/jllib.h>
6341 EOF 6379 EOF
6342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6343 { (eval echo configure:6344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6381 { (eval echo configure:6382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6344 ac_err=`grep -v '^ *+' conftest.out` 6382 ac_err=`grep -v '^ *+' conftest.out`
6345 if test -z "$ac_err"; then 6383 if test -z "$ac_err"; then
6346 rm -rf conftest* 6384 rm -rf conftest*
6347 eval "ac_cv_header_$ac_safe=yes" 6385 eval "ac_cv_header_$ac_safe=yes"
6348 else 6386 else
6360 echo "$ac_t""no" 1>&6 6398 echo "$ac_t""no" 1>&6
6361 with_wnn=no 6399 with_wnn=no
6362 fi 6400 fi
6363 } 6401 }
6364 test -z "$with_wnn" && { 6402 test -z "$with_wnn" && {
6365 xe_msg_checking="for jl_dic_list_e in -lwnn" 6403 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
6366 test -n "with_wnn=no" && xe_msg_checking="$xe_msg_checking using extra libs with_wnn=no" 6404 echo "configure:6405: checking for jl_dic_list_e in -lwnn" >&5
6367 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6368 echo "configure:6369: checking "$xe_msg_checking"" >&5
6369 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 6405 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
6370 6406
6371 xe_check_libs=" -lwnn with_wnn=no" 6407 xe_check_libs=" -lwnn "
6372 cat > conftest.$ac_ext <<EOF 6408 cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure" 6409 #line 6410 "configure"
6374 #include "confdefs.h" 6410 #include "confdefs.h"
6375 /* Override any gcc2 internal prototype to avoid an error. */ 6411 /* Override any gcc2 internal prototype to avoid an error. */
6376 /* We use char because int might match the return type of a gcc2 6412 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */ 6413 builtin and then its argument prototype would still apply. */
6378 char jl_dic_list_e(); 6414 char jl_dic_list_e();
6379 6415
6380 int main() { 6416 int main() {
6381 jl_dic_list_e() 6417 jl_dic_list_e()
6382 ; return 0; } 6418 ; return 0; }
6383 EOF 6419 EOF
6384 if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6420 if { (eval echo configure:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6385 rm -rf conftest* 6421 rm -rf conftest*
6386 eval "ac_cv_lib_$ac_lib_var=yes" 6422 eval "ac_cv_lib_$ac_lib_var=yes"
6387 else 6423 else
6388 echo "configure: failed program was:" >&5 6424 echo "configure: failed program was:" >&5
6389 cat conftest.$ac_ext >&5 6425 cat conftest.$ac_ext >&5
6393 rm -f conftest* 6429 rm -f conftest*
6394 xe_check_libs="" 6430 xe_check_libs=""
6395 6431
6396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 6432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6397 echo "$ac_t""yes" 1>&6 6433 echo "$ac_t""yes" 1>&6
6398 ac_tr_lib=HAVE_LIB`echo wnn | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 6434 :
6399 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 6435 else
6400 { test "$extra_verbose" = "yes" && cat << EOF 6436 echo "$ac_t""no" 1>&6
6401 Defining $ac_tr_lib 6437 with_wnn=no
6402 EOF
6403 cat >> confdefs.h <<EOF
6404 #define $ac_tr_lib 1
6405 EOF
6406 }
6407
6408 LIBS="-lwnn $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lwnn\" to \$LIBS"; fi
6409
6410 else
6411 echo "$ac_t""no" 1>&6
6412 :
6413 fi 6438 fi
6414 6439
6415 } 6440 }
6416 test -z "$with_wnn" && with_wnn=yes 6441 test -z "$with_wnn" && with_wnn=yes
6417 if test "$with_wnn" = "yes"; then 6442 if test "$with_wnn" = "yes"; then
6427 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 6452 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
6428 echo " xemacs will be linked with \"mule-wnnfns.o\"" 6453 echo " xemacs will be linked with \"mule-wnnfns.o\""
6429 fi 6454 fi
6430 6455
6431 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 6456 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
6432 echo "configure:6433: checking for jl_fi_dic_list in -lwnn" >&5 6457 echo "configure:6458: checking for jl_fi_dic_list in -lwnn" >&5
6433 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 6458 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
6434 6459
6435 xe_check_libs=" -lwnn " 6460 xe_check_libs=" -lwnn "
6436 cat > conftest.$ac_ext <<EOF 6461 cat > conftest.$ac_ext <<EOF
6437 #line 6438 "configure" 6462 #line 6463 "configure"
6438 #include "confdefs.h" 6463 #include "confdefs.h"
6439 /* Override any gcc2 internal prototype to avoid an error. */ 6464 /* Override any gcc2 internal prototype to avoid an error. */
6440 /* We use char because int might match the return type of a gcc2 6465 /* We use char because int might match the return type of a gcc2
6441 builtin and then its argument prototype would still apply. */ 6466 builtin and then its argument prototype would still apply. */
6442 char jl_fi_dic_list(); 6467 char jl_fi_dic_list();
6443 6468
6444 int main() { 6469 int main() {
6445 jl_fi_dic_list() 6470 jl_fi_dic_list()
6446 ; return 0; } 6471 ; return 0; }
6447 EOF 6472 EOF
6448 if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6473 if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6449 rm -rf conftest* 6474 rm -rf conftest*
6450 eval "ac_cv_lib_$ac_lib_var=yes" 6475 eval "ac_cv_lib_$ac_lib_var=yes"
6451 else 6476 else
6452 echo "configure: failed program was:" >&5 6477 echo "configure: failed program was:" >&5
6453 cat conftest.$ac_ext >&5 6478 cat conftest.$ac_ext >&5
6475 6500
6476 fi 6501 fi
6477 6502
6478 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 6503 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
6479 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 6504 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
6480 echo "configure:6481: checking for canna/RK.h" >&5 6505 echo "configure:6506: checking for canna/RK.h" >&5
6481 6506
6482 cat > conftest.$ac_ext <<EOF 6507 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure" 6508 #line 6509 "configure"
6484 #include "confdefs.h" 6509 #include "confdefs.h"
6485 #include <canna/RK.h> 6510 #include <canna/RK.h>
6486 EOF 6511 EOF
6487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6488 { (eval echo configure:6489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6513 { (eval echo configure:6514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6489 ac_err=`grep -v '^ *+' conftest.out` 6514 ac_err=`grep -v '^ *+' conftest.out`
6490 if test -z "$ac_err"; then 6515 if test -z "$ac_err"; then
6491 rm -rf conftest* 6516 rm -rf conftest*
6492 eval "ac_cv_header_$ac_safe=yes" 6517 eval "ac_cv_header_$ac_safe=yes"
6493 else 6518 else
6506 with_canna=no 6531 with_canna=no
6507 fi 6532 fi
6508 } 6533 }
6509 test -z "$with_canna" && { 6534 test -z "$with_canna" && {
6510 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 6535 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
6511 echo "configure:6512: checking for RkBgnBun in -lRKC" >&5 6536 echo "configure:6537: checking for RkBgnBun in -lRKC" >&5
6512 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 6537 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
6513 6538
6514 xe_check_libs=" -lRKC " 6539 xe_check_libs=" -lRKC "
6515 cat > conftest.$ac_ext <<EOF 6540 cat > conftest.$ac_ext <<EOF
6516 #line 6517 "configure" 6541 #line 6542 "configure"
6517 #include "confdefs.h" 6542 #include "confdefs.h"
6518 /* Override any gcc2 internal prototype to avoid an error. */ 6543 /* Override any gcc2 internal prototype to avoid an error. */
6519 /* We use char because int might match the return type of a gcc2 6544 /* We use char because int might match the return type of a gcc2
6520 builtin and then its argument prototype would still apply. */ 6545 builtin and then its argument prototype would still apply. */
6521 char RkBgnBun(); 6546 char RkBgnBun();
6522 6547
6523 int main() { 6548 int main() {
6524 RkBgnBun() 6549 RkBgnBun()
6525 ; return 0; } 6550 ; return 0; }
6526 EOF 6551 EOF
6527 if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6552 if { (eval echo configure:6553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6528 rm -rf conftest* 6553 rm -rf conftest*
6529 eval "ac_cv_lib_$ac_lib_var=yes" 6554 eval "ac_cv_lib_$ac_lib_var=yes"
6530 else 6555 else
6531 echo "configure: failed program was:" >&5 6556 echo "configure: failed program was:" >&5
6532 cat conftest.$ac_ext >&5 6557 cat conftest.$ac_ext >&5
6545 fi 6570 fi
6546 6571
6547 } 6572 }
6548 test -z "$with_canna" && { 6573 test -z "$with_canna" && {
6549 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 6574 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
6550 echo "configure:6551: checking for jrKanjiControl in -lcanna" >&5 6575 echo "configure:6576: checking for jrKanjiControl in -lcanna" >&5
6551 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 6576 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
6552 6577
6553 xe_check_libs=" -lcanna " 6578 xe_check_libs=" -lcanna "
6554 cat > conftest.$ac_ext <<EOF 6579 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure" 6580 #line 6581 "configure"
6556 #include "confdefs.h" 6581 #include "confdefs.h"
6557 /* Override any gcc2 internal prototype to avoid an error. */ 6582 /* Override any gcc2 internal prototype to avoid an error. */
6558 /* We use char because int might match the return type of a gcc2 6583 /* We use char because int might match the return type of a gcc2
6559 builtin and then its argument prototype would still apply. */ 6584 builtin and then its argument prototype would still apply. */
6560 char jrKanjiControl(); 6585 char jrKanjiControl();
6561 6586
6562 int main() { 6587 int main() {
6563 jrKanjiControl() 6588 jrKanjiControl()
6564 ; return 0; } 6589 ; return 0; }
6565 EOF 6590 EOF
6566 if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6591 if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6567 rm -rf conftest* 6592 rm -rf conftest*
6568 eval "ac_cv_lib_$ac_lib_var=yes" 6593 eval "ac_cv_lib_$ac_lib_var=yes"
6569 else 6594 else
6570 echo "configure: failed program was:" >&5 6595 echo "configure: failed program was:" >&5
6571 cat conftest.$ac_ext >&5 6596 cat conftest.$ac_ext >&5
6610 6635
6611 if test "$need_motif" = "yes" ; then 6636 if test "$need_motif" = "yes" ; then
6612 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 6637 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
6613 6638
6614 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then 6639 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6615 ld_switch_site="`echo $ld_switch_site | sed \"s/${dash_r}[^ ]*//\"`" 6640 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/${dash_r}[^ ]*//"`
6616 ld_switch_x_site="`echo $ld_switch_x_site | sed \"s/${dash_r}[^ ]*//\"`" 6641 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/${dash_r}[^ ]*//"`
6617 6642
6618 runpath="" 6643 runpath=""
6619 if test -n "$LD_RUN_PATH"; then 6644 if test -n "$LD_RUN_PATH"; then
6620 runpath="$LD_RUN_PATH" 6645 runpath="$LD_RUN_PATH"
6621 elif test "$GCC" = "yes"; then 6646 elif test "$GCC" = "yes"; then
6622 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c 6647 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6623 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' 6648 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6624 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do 6649 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6625 case "$arg" in P,* | -L* | -R* ) 6650 case "$arg" in P,* | -L* | -R* )
6626 for dir in `echo "$arg" | sed -e 's/^..//' -e 'y/:/ /'`; do 6651 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6627 6652
6628 xe_runpath_dir="$dir" 6653 xe_runpath_dir="$dir"
6629 if test "$xe_runpath_dir" != "/lib" -a \ 6654 if test "$xe_runpath_dir" != "/lib" -a \
6630 "$xe_runpath_dir" != "/usr/lib" -a \ 6655 "$xe_runpath_dir" != "/usr/lib" -a \
6631 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then 6656 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then
6638 done 6663 done
6639 rm -f conftest* 6664 rm -f conftest*
6640 else 6665 else
6641 for arg in $ld_switch_site $ld_switch_x_site; do 6666 for arg in $ld_switch_site $ld_switch_x_site; do
6642 case "$arg" in -L*) 6667 case "$arg" in -L*)
6643 xe_runpath_dir=`echo "$arg" | sed 's/^-L//'` 6668 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6644 if test "$xe_runpath_dir" != "/lib" -a \ 6669 if test "$xe_runpath_dir" != "/lib" -a \
6645 "$xe_runpath_dir" != "/usr/lib" -a \ 6670 "$xe_runpath_dir" != "/usr/lib" -a \
6646 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then 6671 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then
6647 test -n "$runpath" && runpath="${runpath}:" 6672 test -n "$runpath" && runpath="${runpath}:"
6648 runpath="${runpath}${xe_runpath_dir}" 6673 runpath="${runpath}${xe_runpath_dir}"
6662 fi 6687 fi
6663 6688
6664 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid 6689 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid
6665 do 6690 do
6666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6667 echo "configure:6668: checking for $ac_func" >&5 6692 echo "configure:6693: checking for $ac_func" >&5
6668 6693
6669 cat > conftest.$ac_ext <<EOF 6694 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure" 6695 #line 6696 "configure"
6671 #include "confdefs.h" 6696 #include "confdefs.h"
6672 /* System header to define __stub macros and hopefully few prototypes, 6697 /* System header to define __stub macros and hopefully few prototypes,
6673 which can conflict with char $ac_func(); below. */ 6698 which can conflict with char $ac_func(); below. */
6674 #include <assert.h> 6699 #include <assert.h>
6675 /* Override any gcc2 internal prototype to avoid an error. */ 6700 /* Override any gcc2 internal prototype to avoid an error. */
6688 $ac_func(); 6713 $ac_func();
6689 #endif 6714 #endif
6690 6715
6691 ; return 0; } 6716 ; return 0; }
6692 EOF 6717 EOF
6693 if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6694 rm -rf conftest* 6719 rm -rf conftest*
6695 eval "ac_cv_func_$ac_func=yes" 6720 eval "ac_cv_func_$ac_func=yes"
6696 else 6721 else
6697 echo "configure: failed program was:" >&5 6722 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5 6723 cat conftest.$ac_ext >&5
6725 fi ;; 6750 fi ;;
6726 * ) 6751 * )
6727 for ac_func in realpath 6752 for ac_func in realpath
6728 do 6753 do
6729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6730 echo "configure:6731: checking for $ac_func" >&5 6755 echo "configure:6756: checking for $ac_func" >&5
6731 6756
6732 cat > conftest.$ac_ext <<EOF 6757 cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure" 6758 #line 6759 "configure"
6734 #include "confdefs.h" 6759 #include "confdefs.h"
6735 /* System header to define __stub macros and hopefully few prototypes, 6760 /* System header to define __stub macros and hopefully few prototypes,
6736 which can conflict with char $ac_func(); below. */ 6761 which can conflict with char $ac_func(); below. */
6737 #include <assert.h> 6762 #include <assert.h>
6738 /* Override any gcc2 internal prototype to avoid an error. */ 6763 /* Override any gcc2 internal prototype to avoid an error. */
6751 $ac_func(); 6776 $ac_func();
6752 #endif 6777 #endif
6753 6778
6754 ; return 0; } 6779 ; return 0; }
6755 EOF 6780 EOF
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6781 if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6757 rm -rf conftest* 6782 rm -rf conftest*
6758 eval "ac_cv_func_$ac_func=yes" 6783 eval "ac_cv_func_$ac_func=yes"
6759 else 6784 else
6760 echo "configure: failed program was:" >&5 6785 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5 6786 cat conftest.$ac_ext >&5
6784 echo " xemacs will be linked with \"realpath.o\"" 6809 echo " xemacs will be linked with \"realpath.o\""
6785 fi ;; 6810 fi ;;
6786 esac 6811 esac
6787 6812
6788 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 6813 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
6789 echo "configure:6790: checking whether netdb declares h_errno" >&5 6814 echo "configure:6815: checking whether netdb declares h_errno" >&5
6790 cat > conftest.$ac_ext <<EOF 6815 cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure" 6816 #line 6817 "configure"
6792 #include "confdefs.h" 6817 #include "confdefs.h"
6793 #include <netdb.h> 6818 #include <netdb.h>
6794 int main() { 6819 int main() {
6795 return h_errno; 6820 return h_errno;
6796 ; return 0; } 6821 ; return 0; }
6797 EOF 6822 EOF
6798 if { (eval echo configure:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6823 if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6799 rm -rf conftest* 6824 rm -rf conftest*
6800 echo "$ac_t""yes" 1>&6 6825 echo "$ac_t""yes" 1>&6
6801 { test "$extra_verbose" = "yes" && cat << \EOF 6826 { test "$extra_verbose" = "yes" && cat << \EOF
6802 Defining HAVE_H_ERRNO 6827 Defining HAVE_H_ERRNO
6803 EOF 6828 EOF
6813 echo "$ac_t""no" 1>&6 6838 echo "$ac_t""no" 1>&6
6814 fi 6839 fi
6815 rm -f conftest* 6840 rm -f conftest*
6816 6841
6817 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 6842 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6818 echo "configure:6819: checking for sigsetjmp" >&5 6843 echo "configure:6844: checking for sigsetjmp" >&5
6819 cat > conftest.$ac_ext <<EOF 6844 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure" 6845 #line 6846 "configure"
6821 #include "confdefs.h" 6846 #include "confdefs.h"
6822 #include <setjmp.h> 6847 #include <setjmp.h>
6823 int main() { 6848 int main() {
6824 sigjmp_buf bar; sigsetjmp (bar, 0); 6849 sigjmp_buf bar; sigsetjmp (bar, 0);
6825 ; return 0; } 6850 ; return 0; }
6826 EOF 6851 EOF
6827 if { (eval echo configure:6828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6852 if { (eval echo configure:6853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6828 rm -rf conftest* 6853 rm -rf conftest*
6829 echo "$ac_t""yes" 1>&6 6854 echo "$ac_t""yes" 1>&6
6830 { test "$extra_verbose" = "yes" && cat << \EOF 6855 { test "$extra_verbose" = "yes" && cat << \EOF
6831 Defining HAVE_SIGSETJMP 6856 Defining HAVE_SIGSETJMP
6832 EOF 6857 EOF
6842 echo "$ac_t""no" 1>&6 6867 echo "$ac_t""no" 1>&6
6843 fi 6868 fi
6844 rm -f conftest* 6869 rm -f conftest*
6845 6870
6846 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 6871 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
6847 echo "configure:6848: checking whether localtime caches TZ" >&5 6872 echo "configure:6873: checking whether localtime caches TZ" >&5
6848 6873
6849 if test "$ac_cv_func_tzset" = "yes"; then 6874 if test "$ac_cv_func_tzset" = "yes"; then
6850 cat > conftest.$ac_ext <<EOF 6875 cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure" 6876 #line 6877 "configure"
6852 #include "confdefs.h" 6877 #include "confdefs.h"
6853 #include <time.h> 6878 #include <time.h>
6854 #if STDC_HEADERS 6879 #if STDC_HEADERS
6855 # include <stdlib.h> 6880 # include <stdlib.h>
6856 #endif 6881 #endif
6881 if (localtime (&now)->tm_hour != hour_unset) 6906 if (localtime (&now)->tm_hour != hour_unset)
6882 exit (1); 6907 exit (1);
6883 exit (0); 6908 exit (0);
6884 } 6909 }
6885 EOF 6910 EOF
6886 if { (eval echo configure:6887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 6911 if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6887 then 6912 then
6888 emacs_cv_localtime_cache=no 6913 emacs_cv_localtime_cache=no
6889 else 6914 else
6890 echo "configure: failed program was:" >&5 6915 echo "configure: failed program was:" >&5
6891 cat conftest.$ac_ext >&5 6916 cat conftest.$ac_ext >&5
6910 6935
6911 fi 6936 fi
6912 6937
6913 if test "$HAVE_TIMEVAL" = "yes"; then 6938 if test "$HAVE_TIMEVAL" = "yes"; then
6914 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 6939 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
6915 echo "configure:6916: checking whether gettimeofday cannot accept two arguments" >&5 6940 echo "configure:6941: checking whether gettimeofday cannot accept two arguments" >&5
6916 cat > conftest.$ac_ext <<EOF 6941 cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure" 6942 #line 6943 "configure"
6918 #include "confdefs.h" 6943 #include "confdefs.h"
6919 6944
6920 #ifdef TIME_WITH_SYS_TIME 6945 #ifdef TIME_WITH_SYS_TIME
6921 #include <sys/time.h> 6946 #include <sys/time.h>
6922 #include <time.h> 6947 #include <time.h>
6934 struct timezone dummy; 6959 struct timezone dummy;
6935 gettimeofday (&time, &dummy); 6960 gettimeofday (&time, &dummy);
6936 6961
6937 ; return 0; } 6962 ; return 0; }
6938 EOF 6963 EOF
6939 if { (eval echo configure:6940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6964 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6940 rm -rf conftest* 6965 rm -rf conftest*
6941 echo "$ac_t""no" 1>&6 6966 echo "$ac_t""no" 1>&6
6942 else 6967 else
6943 echo "configure: failed program was:" >&5 6968 echo "configure: failed program was:" >&5
6944 cat conftest.$ac_ext >&5 6969 cat conftest.$ac_ext >&5
6956 rm -f conftest* 6981 rm -f conftest*
6957 fi 6982 fi
6958 6983
6959 6984
6960 echo $ac_n "checking for inline""... $ac_c" 1>&6 6985 echo $ac_n "checking for inline""... $ac_c" 1>&6
6961 echo "configure:6962: checking for inline" >&5 6986 echo "configure:6987: checking for inline" >&5
6962 6987
6963 ac_cv_c_inline=no 6988 ac_cv_c_inline=no
6964 for ac_kw in inline __inline__ __inline; do 6989 for ac_kw in inline __inline__ __inline; do
6965 cat > conftest.$ac_ext <<EOF 6990 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure" 6991 #line 6992 "configure"
6967 #include "confdefs.h" 6992 #include "confdefs.h"
6968 6993
6969 int main() { 6994 int main() {
6970 } $ac_kw foo() { 6995 } $ac_kw foo() {
6971 ; return 0; } 6996 ; return 0; }
6972 EOF 6997 EOF
6973 if { (eval echo configure:6974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6998 if { (eval echo configure:6999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6974 rm -rf conftest* 6999 rm -rf conftest*
6975 ac_cv_c_inline=$ac_kw; break 7000 ac_cv_c_inline=$ac_kw; break
6976 else 7001 else
6977 echo "configure: failed program was:" >&5 7002 echo "configure: failed program was:" >&5
6978 cat conftest.$ac_ext >&5 7003 cat conftest.$ac_ext >&5
7018 7043
7019 7044
7020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7045 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7021 # for constant arguments. Useless! 7046 # for constant arguments. Useless!
7022 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7047 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7023 echo "configure:7024: checking for working alloca.h" >&5 7048 echo "configure:7049: checking for working alloca.h" >&5
7024 7049
7025 cat > conftest.$ac_ext <<EOF 7050 cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure" 7051 #line 7052 "configure"
7027 #include "confdefs.h" 7052 #include "confdefs.h"
7028 #include <alloca.h> 7053 #include <alloca.h>
7029 int main() { 7054 int main() {
7030 char *p = alloca(2 * sizeof(int)); 7055 char *p = alloca(2 * sizeof(int));
7031 ; return 0; } 7056 ; return 0; }
7032 EOF 7057 EOF
7033 if { (eval echo configure:7034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7034 rm -rf conftest* 7059 rm -rf conftest*
7035 ac_cv_header_alloca_h=yes 7060 ac_cv_header_alloca_h=yes
7036 else 7061 else
7037 echo "configure: failed program was:" >&5 7062 echo "configure: failed program was:" >&5
7038 cat conftest.$ac_ext >&5 7063 cat conftest.$ac_ext >&5
7052 } 7077 }
7053 7078
7054 fi 7079 fi
7055 7080
7056 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7081 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7057 echo "configure:7058: checking for alloca" >&5 7082 echo "configure:7083: checking for alloca" >&5
7058 7083
7059 cat > conftest.$ac_ext <<EOF 7084 cat > conftest.$ac_ext <<EOF
7060 #line 7061 "configure" 7085 #line 7086 "configure"
7061 #include "confdefs.h" 7086 #include "confdefs.h"
7062 7087
7063 #ifdef __GNUC__ 7088 #ifdef __GNUC__
7064 # define alloca __builtin_alloca 7089 # define alloca __builtin_alloca
7065 #else 7090 #else
7078 7103
7079 int main() { 7104 int main() {
7080 char *p = (char *) alloca(1); 7105 char *p = (char *) alloca(1);
7081 ; return 0; } 7106 ; return 0; }
7082 EOF 7107 EOF
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7108 if { (eval echo configure:7109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7084 rm -rf conftest* 7109 rm -rf conftest*
7085 ac_cv_func_alloca_works=yes 7110 ac_cv_func_alloca_works=yes
7086 else 7111 else
7087 echo "configure: failed program was:" >&5 7112 echo "configure: failed program was:" >&5
7088 cat conftest.$ac_ext >&5 7113 cat conftest.$ac_ext >&5
7117 EOF 7142 EOF
7118 } 7143 }
7119 7144
7120 7145
7121 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7146 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7122 echo "configure:7123: checking whether alloca needs Cray hooks" >&5 7147 echo "configure:7148: checking whether alloca needs Cray hooks" >&5
7123 7148
7124 cat > conftest.$ac_ext <<EOF 7149 cat > conftest.$ac_ext <<EOF
7125 #line 7126 "configure" 7150 #line 7151 "configure"
7126 #include "confdefs.h" 7151 #include "confdefs.h"
7127 #if defined(CRAY) && ! defined(CRAY2) 7152 #if defined(CRAY) && ! defined(CRAY2)
7128 webecray 7153 webecray
7129 #else 7154 #else
7130 wenotbecray 7155 wenotbecray
7144 7169
7145 echo "$ac_t""$ac_cv_os_cray" 1>&6 7170 echo "$ac_t""$ac_cv_os_cray" 1>&6
7146 if test $ac_cv_os_cray = yes; then 7171 if test $ac_cv_os_cray = yes; then
7147 for ac_func in _getb67 GETB67 getb67; do 7172 for ac_func in _getb67 GETB67 getb67; do
7148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7149 echo "configure:7150: checking for $ac_func" >&5 7174 echo "configure:7175: checking for $ac_func" >&5
7150 7175
7151 cat > conftest.$ac_ext <<EOF 7176 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure" 7177 #line 7178 "configure"
7153 #include "confdefs.h" 7178 #include "confdefs.h"
7154 /* System header to define __stub macros and hopefully few prototypes, 7179 /* System header to define __stub macros and hopefully few prototypes,
7155 which can conflict with char $ac_func(); below. */ 7180 which can conflict with char $ac_func(); below. */
7156 #include <assert.h> 7181 #include <assert.h>
7157 /* Override any gcc2 internal prototype to avoid an error. */ 7182 /* Override any gcc2 internal prototype to avoid an error. */
7170 $ac_func(); 7195 $ac_func();
7171 #endif 7196 #endif
7172 7197
7173 ; return 0; } 7198 ; return 0; }
7174 EOF 7199 EOF
7175 if { (eval echo configure:7176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7200 if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7176 rm -rf conftest* 7201 rm -rf conftest*
7177 eval "ac_cv_func_$ac_func=yes" 7202 eval "ac_cv_func_$ac_func=yes"
7178 else 7203 else
7179 echo "configure: failed program was:" >&5 7204 echo "configure: failed program was:" >&5
7180 cat conftest.$ac_ext >&5 7205 cat conftest.$ac_ext >&5
7200 7225
7201 done 7226 done
7202 fi 7227 fi
7203 7228
7204 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7229 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7205 echo "configure:7206: checking stack direction for C alloca" >&5 7230 echo "configure:7231: checking stack direction for C alloca" >&5
7206 7231
7207 cat > conftest.$ac_ext <<EOF 7232 cat > conftest.$ac_ext <<EOF
7208 #line 7209 "configure" 7233 #line 7234 "configure"
7209 #include "confdefs.h" 7234 #include "confdefs.h"
7210 find_stack_direction () 7235 find_stack_direction ()
7211 { 7236 {
7212 static char *addr = 0; 7237 static char *addr = 0;
7213 auto char dummy; 7238 auto char dummy;
7222 main () 7247 main ()
7223 { 7248 {
7224 exit (find_stack_direction() < 0); 7249 exit (find_stack_direction() < 0);
7225 } 7250 }
7226 EOF 7251 EOF
7227 if { (eval echo configure:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7252 if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7228 then 7253 then
7229 ac_cv_c_stack_direction=1 7254 ac_cv_c_stack_direction=1
7230 else 7255 else
7231 echo "configure: failed program was:" >&5 7256 echo "configure: failed program was:" >&5
7232 cat conftest.$ac_ext >&5 7257 cat conftest.$ac_ext >&5
7249 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then 7274 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
7250 echo " xemacs will be linked with \"$ALLOCA\"" 7275 echo " xemacs will be linked with \"$ALLOCA\""
7251 fi 7276 fi
7252 7277
7253 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 7278 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7254 echo "configure:7255: checking for pid_t" >&5 7279 echo "configure:7280: checking for pid_t" >&5
7255 7280
7256 cat > conftest.$ac_ext <<EOF 7281 cat > conftest.$ac_ext <<EOF
7257 #line 7258 "configure" 7282 #line 7283 "configure"
7258 #include "confdefs.h" 7283 #include "confdefs.h"
7259 #include <sys/types.h> 7284 #include <sys/types.h>
7260 #if STDC_HEADERS 7285 #if STDC_HEADERS
7261 #include <stdlib.h> 7286 #include <stdlib.h>
7262 #include <stddef.h> 7287 #include <stddef.h>
7284 7309
7285 fi 7310 fi
7286 7311
7287 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 7312 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
7288 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 7313 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
7289 echo "configure:7290: checking for vfork.h" >&5 7314 echo "configure:7315: checking for vfork.h" >&5
7290 7315
7291 cat > conftest.$ac_ext <<EOF 7316 cat > conftest.$ac_ext <<EOF
7292 #line 7293 "configure" 7317 #line 7318 "configure"
7293 #include "confdefs.h" 7318 #include "confdefs.h"
7294 #include <vfork.h> 7319 #include <vfork.h>
7295 EOF 7320 EOF
7296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7297 { (eval echo configure:7298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7322 { (eval echo configure:7323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7298 ac_err=`grep -v '^ *+' conftest.out` 7323 ac_err=`grep -v '^ *+' conftest.out`
7299 if test -z "$ac_err"; then 7324 if test -z "$ac_err"; then
7300 rm -rf conftest* 7325 rm -rf conftest*
7301 eval "ac_cv_header_$ac_safe=yes" 7326 eval "ac_cv_header_$ac_safe=yes"
7302 else 7327 else
7320 else 7345 else
7321 echo "$ac_t""no" 1>&6 7346 echo "$ac_t""no" 1>&6
7322 fi 7347 fi
7323 7348
7324 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 7349 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
7325 echo "configure:7326: checking for working vfork" >&5 7350 echo "configure:7351: checking for working vfork" >&5
7326 7351
7327 cat > conftest.$ac_ext <<EOF 7352 cat > conftest.$ac_ext <<EOF
7328 #line 7329 "configure" 7353 #line 7354 "configure"
7329 #include "confdefs.h" 7354 #include "confdefs.h"
7330 /* Thanks to Paul Eggert for this test. */ 7355 /* Thanks to Paul Eggert for this test. */
7331 #include <stdio.h> 7356 #include <stdio.h>
7332 #include <sys/types.h> 7357 #include <sys/types.h>
7333 #include <sys/stat.h> 7358 #include <sys/stat.h>
7418 || fstat(fileno(stdout), &st) != 0 7443 || fstat(fileno(stdout), &st) != 0
7419 ); 7444 );
7420 } 7445 }
7421 } 7446 }
7422 EOF 7447 EOF
7423 if { (eval echo configure:7424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7448 if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7424 then 7449 then
7425 ac_cv_func_vfork_works=yes 7450 ac_cv_func_vfork_works=yes
7426 else 7451 else
7427 echo "configure: failed program was:" >&5 7452 echo "configure: failed program was:" >&5
7428 cat conftest.$ac_ext >&5 7453 cat conftest.$ac_ext >&5
7443 7468
7444 fi 7469 fi
7445 7470
7446 7471
7447 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 7472 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
7448 echo "configure:7449: checking for working strcoll" >&5 7473 echo "configure:7474: checking for working strcoll" >&5
7449 7474
7450 cat > conftest.$ac_ext <<EOF 7475 cat > conftest.$ac_ext <<EOF
7451 #line 7452 "configure" 7476 #line 7477 "configure"
7452 #include "confdefs.h" 7477 #include "confdefs.h"
7453 #include <string.h> 7478 #include <string.h>
7454 main () 7479 main ()
7455 { 7480 {
7456 exit (strcoll ("abc", "def") >= 0 || 7481 exit (strcoll ("abc", "def") >= 0 ||
7457 strcoll ("ABC", "DEF") >= 0 || 7482 strcoll ("ABC", "DEF") >= 0 ||
7458 strcoll ("123", "456") >= 0); 7483 strcoll ("123", "456") >= 0);
7459 } 7484 }
7460 EOF 7485 EOF
7461 if { (eval echo configure:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7486 if { (eval echo configure:7487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7462 then 7487 then
7463 ac_cv_func_strcoll_works=yes 7488 ac_cv_func_strcoll_works=yes
7464 else 7489 else
7465 echo "configure: failed program was:" >&5 7490 echo "configure: failed program was:" >&5
7466 cat conftest.$ac_ext >&5 7491 cat conftest.$ac_ext >&5
7481 7506
7482 fi 7507 fi
7483 7508
7484 7509
7485 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 7510 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
7486 echo "configure:7487: checking for working mmap" >&5 7511 echo "configure:7512: checking for working mmap" >&5
7487 case "$opsys" in ultrix* ) have_mmap=no ;; *) 7512 case "$opsys" in ultrix* ) have_mmap=no ;; *)
7488 cat > conftest.$ac_ext <<EOF 7513 cat > conftest.$ac_ext <<EOF
7489 #line 7490 "configure" 7514 #line 7515 "configure"
7490 #include "confdefs.h" 7515 #include "confdefs.h"
7491 #include <stdio.h> 7516 #include <stdio.h>
7492 #include <unistd.h> 7517 #include <unistd.h>
7493 #include <fcntl.h> 7518 #include <fcntl.h>
7494 #include <sys/mman.h> 7519 #include <sys/mman.h>
7517 return 0; 7542 return 0;
7518 perror ("conftest: mmap failed"); 7543 perror ("conftest: mmap failed");
7519 return 1; 7544 return 1;
7520 } 7545 }
7521 EOF 7546 EOF
7522 if { (eval echo configure:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7547 if { (eval echo configure:7548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7523 then 7548 then
7524 have_mmap=yes 7549 have_mmap=yes
7525 else 7550 else
7526 echo "configure: failed program was:" >&5 7551 echo "configure: failed program was:" >&5
7527 cat conftest.$ac_ext >&5 7552 cat conftest.$ac_ext >&5
7550 EOF 7575 EOF
7551 } 7576 }
7552 7577
7553 7578
7554 echo $ac_n "checking for socket""... $ac_c" 1>&6 7579 echo $ac_n "checking for socket""... $ac_c" 1>&6
7555 echo "configure:7556: checking for socket" >&5 7580 echo "configure:7581: checking for socket" >&5
7556 7581
7557 cat > conftest.$ac_ext <<EOF 7582 cat > conftest.$ac_ext <<EOF
7558 #line 7559 "configure" 7583 #line 7584 "configure"
7559 #include "confdefs.h" 7584 #include "confdefs.h"
7560 /* System header to define __stub macros and hopefully few prototypes, 7585 /* System header to define __stub macros and hopefully few prototypes,
7561 which can conflict with char socket(); below. */ 7586 which can conflict with char socket(); below. */
7562 #include <assert.h> 7587 #include <assert.h>
7563 /* Override any gcc2 internal prototype to avoid an error. */ 7588 /* Override any gcc2 internal prototype to avoid an error. */
7576 socket(); 7601 socket();
7577 #endif 7602 #endif
7578 7603
7579 ; return 0; } 7604 ; return 0; }
7580 EOF 7605 EOF
7581 if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7606 if { (eval echo configure:7607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7582 rm -rf conftest* 7607 rm -rf conftest*
7583 eval "ac_cv_func_socket=yes" 7608 eval "ac_cv_func_socket=yes"
7584 else 7609 else
7585 echo "configure: failed program was:" >&5 7610 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5 7611 cat conftest.$ac_ext >&5
7591 7616
7592 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 7617 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6 7618 echo "$ac_t""yes" 1>&6
7594 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 7619 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
7595 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 7620 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
7596 echo "configure:7597: checking for netinet/in.h" >&5 7621 echo "configure:7622: checking for netinet/in.h" >&5
7597 7622
7598 cat > conftest.$ac_ext <<EOF 7623 cat > conftest.$ac_ext <<EOF
7599 #line 7600 "configure" 7624 #line 7625 "configure"
7600 #include "confdefs.h" 7625 #include "confdefs.h"
7601 #include <netinet/in.h> 7626 #include <netinet/in.h>
7602 EOF 7627 EOF
7603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7604 { (eval echo configure:7605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7629 { (eval echo configure:7630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7605 ac_err=`grep -v '^ *+' conftest.out` 7630 ac_err=`grep -v '^ *+' conftest.out`
7606 if test -z "$ac_err"; then 7631 if test -z "$ac_err"; then
7607 rm -rf conftest* 7632 rm -rf conftest*
7608 eval "ac_cv_header_$ac_safe=yes" 7633 eval "ac_cv_header_$ac_safe=yes"
7609 else 7634 else
7616 rm -f conftest* 7641 rm -f conftest*
7617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7618 echo "$ac_t""yes" 1>&6 7643 echo "$ac_t""yes" 1>&6
7619 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 7644 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
7620 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 7645 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
7621 echo "configure:7622: checking for arpa/inet.h" >&5 7646 echo "configure:7647: checking for arpa/inet.h" >&5
7622 7647
7623 cat > conftest.$ac_ext <<EOF 7648 cat > conftest.$ac_ext <<EOF
7624 #line 7625 "configure" 7649 #line 7650 "configure"
7625 #include "confdefs.h" 7650 #include "confdefs.h"
7626 #include <arpa/inet.h> 7651 #include <arpa/inet.h>
7627 EOF 7652 EOF
7628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7629 { (eval echo configure:7630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7654 { (eval echo configure:7655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7630 ac_err=`grep -v '^ *+' conftest.out` 7655 ac_err=`grep -v '^ *+' conftest.out`
7631 if test -z "$ac_err"; then 7656 if test -z "$ac_err"; then
7632 rm -rf conftest* 7657 rm -rf conftest*
7633 eval "ac_cv_header_$ac_safe=yes" 7658 eval "ac_cv_header_$ac_safe=yes"
7634 else 7659 else
7649 #define HAVE_SOCKETS 1 7674 #define HAVE_SOCKETS 1
7650 EOF 7675 EOF
7651 } 7676 }
7652 7677
7653 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 7678 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
7654 echo "configure:7655: checking "for sun_len member in struct sockaddr_un"" >&5 7679 echo "configure:7680: checking "for sun_len member in struct sockaddr_un"" >&5
7655 cat > conftest.$ac_ext <<EOF 7680 cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure" 7681 #line 7682 "configure"
7657 #include "confdefs.h" 7682 #include "confdefs.h"
7658 7683
7659 #include <sys/types.h> 7684 #include <sys/types.h>
7660 #include <sys/socket.h> 7685 #include <sys/socket.h>
7661 #include <sys/un.h> 7686 #include <sys/un.h>
7662 7687
7663 int main() { 7688 int main() {
7664 static struct sockaddr_un x; x.sun_len = 1; 7689 static struct sockaddr_un x; x.sun_len = 1;
7665 ; return 0; } 7690 ; return 0; }
7666 EOF 7691 EOF
7667 if { (eval echo configure:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7692 if { (eval echo configure:7693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7668 rm -rf conftest* 7693 rm -rf conftest*
7669 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 7694 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
7670 Defining HAVE_SOCKADDR_SUN_LEN 7695 Defining HAVE_SOCKADDR_SUN_LEN
7671 EOF 7696 EOF
7672 cat >> confdefs.h <<\EOF 7697 cat >> confdefs.h <<\EOF
7693 echo "$ac_t""no" 1>&6 7718 echo "$ac_t""no" 1>&6
7694 fi 7719 fi
7695 7720
7696 7721
7697 echo $ac_n "checking for msgget""... $ac_c" 1>&6 7722 echo $ac_n "checking for msgget""... $ac_c" 1>&6
7698 echo "configure:7699: checking for msgget" >&5 7723 echo "configure:7724: checking for msgget" >&5
7699 7724
7700 cat > conftest.$ac_ext <<EOF 7725 cat > conftest.$ac_ext <<EOF
7701 #line 7702 "configure" 7726 #line 7727 "configure"
7702 #include "confdefs.h" 7727 #include "confdefs.h"
7703 /* System header to define __stub macros and hopefully few prototypes, 7728 /* System header to define __stub macros and hopefully few prototypes,
7704 which can conflict with char msgget(); below. */ 7729 which can conflict with char msgget(); below. */
7705 #include <assert.h> 7730 #include <assert.h>
7706 /* Override any gcc2 internal prototype to avoid an error. */ 7731 /* Override any gcc2 internal prototype to avoid an error. */
7719 msgget(); 7744 msgget();
7720 #endif 7745 #endif
7721 7746
7722 ; return 0; } 7747 ; return 0; }
7723 EOF 7748 EOF
7724 if { (eval echo configure:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7749 if { (eval echo configure:7750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7725 rm -rf conftest* 7750 rm -rf conftest*
7726 eval "ac_cv_func_msgget=yes" 7751 eval "ac_cv_func_msgget=yes"
7727 else 7752 else
7728 echo "configure: failed program was:" >&5 7753 echo "configure: failed program was:" >&5
7729 cat conftest.$ac_ext >&5 7754 cat conftest.$ac_ext >&5
7734 7759
7735 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 7760 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
7736 echo "$ac_t""yes" 1>&6 7761 echo "$ac_t""yes" 1>&6
7737 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 7762 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
7738 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 7763 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
7739 echo "configure:7740: checking for sys/ipc.h" >&5 7764 echo "configure:7765: checking for sys/ipc.h" >&5
7740 7765
7741 cat > conftest.$ac_ext <<EOF 7766 cat > conftest.$ac_ext <<EOF
7742 #line 7743 "configure" 7767 #line 7768 "configure"
7743 #include "confdefs.h" 7768 #include "confdefs.h"
7744 #include <sys/ipc.h> 7769 #include <sys/ipc.h>
7745 EOF 7770 EOF
7746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7747 { (eval echo configure:7748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7772 { (eval echo configure:7773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7748 ac_err=`grep -v '^ *+' conftest.out` 7773 ac_err=`grep -v '^ *+' conftest.out`
7749 if test -z "$ac_err"; then 7774 if test -z "$ac_err"; then
7750 rm -rf conftest* 7775 rm -rf conftest*
7751 eval "ac_cv_header_$ac_safe=yes" 7776 eval "ac_cv_header_$ac_safe=yes"
7752 else 7777 else
7759 rm -f conftest* 7784 rm -f conftest*
7760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7761 echo "$ac_t""yes" 1>&6 7786 echo "$ac_t""yes" 1>&6
7762 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 7787 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
7763 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 7788 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
7764 echo "configure:7765: checking for sys/msg.h" >&5 7789 echo "configure:7790: checking for sys/msg.h" >&5
7765 7790
7766 cat > conftest.$ac_ext <<EOF 7791 cat > conftest.$ac_ext <<EOF
7767 #line 7768 "configure" 7792 #line 7793 "configure"
7768 #include "confdefs.h" 7793 #include "confdefs.h"
7769 #include <sys/msg.h> 7794 #include <sys/msg.h>
7770 EOF 7795 EOF
7771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7772 { (eval echo configure:7773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7797 { (eval echo configure:7798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7773 ac_err=`grep -v '^ *+' conftest.out` 7798 ac_err=`grep -v '^ *+' conftest.out`
7774 if test -z "$ac_err"; then 7799 if test -z "$ac_err"; then
7775 rm -rf conftest* 7800 rm -rf conftest*
7776 eval "ac_cv_header_$ac_safe=yes" 7801 eval "ac_cv_header_$ac_safe=yes"
7777 else 7802 else
7805 fi 7830 fi
7806 7831
7807 7832
7808 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 7833 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
7809 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 7834 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
7810 echo "configure:7811: checking for dirent.h" >&5 7835 echo "configure:7836: checking for dirent.h" >&5
7811 7836
7812 cat > conftest.$ac_ext <<EOF 7837 cat > conftest.$ac_ext <<EOF
7813 #line 7814 "configure" 7838 #line 7839 "configure"
7814 #include "confdefs.h" 7839 #include "confdefs.h"
7815 #include <dirent.h> 7840 #include <dirent.h>
7816 EOF 7841 EOF
7817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7818 { (eval echo configure:7819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7843 { (eval echo configure:7844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7819 ac_err=`grep -v '^ *+' conftest.out` 7844 ac_err=`grep -v '^ *+' conftest.out`
7820 if test -z "$ac_err"; then 7845 if test -z "$ac_err"; then
7821 rm -rf conftest* 7846 rm -rf conftest*
7822 eval "ac_cv_header_$ac_safe=yes" 7847 eval "ac_cv_header_$ac_safe=yes"
7823 else 7848 else
7840 7865
7841 else 7866 else
7842 echo "$ac_t""no" 1>&6 7867 echo "$ac_t""no" 1>&6
7843 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 7868 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
7844 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 7869 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
7845 echo "configure:7846: checking for sys/dir.h" >&5 7870 echo "configure:7871: checking for sys/dir.h" >&5
7846 7871
7847 cat > conftest.$ac_ext <<EOF 7872 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure" 7873 #line 7874 "configure"
7849 #include "confdefs.h" 7874 #include "confdefs.h"
7850 #include <sys/dir.h> 7875 #include <sys/dir.h>
7851 EOF 7876 EOF
7852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7853 { (eval echo configure:7854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7878 { (eval echo configure:7879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7854 ac_err=`grep -v '^ *+' conftest.out` 7879 ac_err=`grep -v '^ *+' conftest.out`
7855 if test -z "$ac_err"; then 7880 if test -z "$ac_err"; then
7856 rm -rf conftest* 7881 rm -rf conftest*
7857 eval "ac_cv_header_$ac_safe=yes" 7882 eval "ac_cv_header_$ac_safe=yes"
7858 else 7883 else
7881 fi 7906 fi
7882 7907
7883 7908
7884 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 7909 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
7885 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 7910 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
7886 echo "configure:7887: checking for nlist.h" >&5 7911 echo "configure:7912: checking for nlist.h" >&5
7887 7912
7888 cat > conftest.$ac_ext <<EOF 7913 cat > conftest.$ac_ext <<EOF
7889 #line 7890 "configure" 7914 #line 7915 "configure"
7890 #include "confdefs.h" 7915 #include "confdefs.h"
7891 #include <nlist.h> 7916 #include <nlist.h>
7892 EOF 7917 EOF
7893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7894 { (eval echo configure:7895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7919 { (eval echo configure:7920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7895 ac_err=`grep -v '^ *+' conftest.out` 7920 ac_err=`grep -v '^ *+' conftest.out`
7896 if test -z "$ac_err"; then 7921 if test -z "$ac_err"; then
7897 rm -rf conftest* 7922 rm -rf conftest*
7898 eval "ac_cv_header_$ac_safe=yes" 7923 eval "ac_cv_header_$ac_safe=yes"
7899 else 7924 else
7934 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"` 7959 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"`
7935 if test -z "$version"; then 7960 if test -z "$version"; then
7936 echo "$progname: can't find current emacs version in \"$file\"." >&2 7961 echo "$progname: can't find current emacs version in \"$file\"." >&2
7937 exit 1 7962 exit 1
7938 fi 7963 fi
7939 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([0-9][0-9]*\)).*$/\1/p' "$file"` 7964 beta=`sed -ne 's/^.*beta.*(beta\([0-9][0-9]*\)).*$/\1/p' "$file"`
7940 test -n "$beta" && version="${version}-b${beta}" 7965 test -n "$beta" && version="${version}-b${beta}"
7941 { test "$extra_verbose" = "yes" && cat << EOF 7966 { test "$extra_verbose" = "yes" && cat << EOF
7942 Defining EMACS_VERSION = "$version" 7967 Defining EMACS_VERSION = "$version"
7943 EOF 7968 EOF
7944 cat >> confdefs.h <<EOF 7969 cat >> confdefs.h <<EOF
7945 #define EMACS_VERSION "$version" 7970 #define EMACS_VERSION "$version"
7946 EOF 7971 EOF
7947 } 7972 }
7948 7973
7949 main_1_id="`echo main_1_xemacs_${version}_${canonical} | sed 'y/.-/__/'`" 7974 main_1_id=`echo main_1_xemacs_${version}_${canonical} | sed 'y/.-/__/'`
7950 { test "$extra_verbose" = "yes" && cat << EOF 7975 { test "$extra_verbose" = "yes" && cat << EOF
7951 Defining main_1 = $main_1_id 7976 Defining main_1 = $main_1_id
7952 EOF 7977 EOF
7953 cat >> confdefs.h <<EOF 7978 cat >> confdefs.h <<EOF
7954 #define main_1 $main_1_id 7979 #define main_1 $main_1_id
7957 7982
7958 7983
7959 7984
7960 7985
7961 echo "checking "for sound support"" 1>&6 7986 echo "checking "for sound support"" 1>&6
7962 echo "configure:7963: checking "for sound support"" >&5 7987 echo "configure:7988: checking "for sound support"" >&5
7963 case "$with_sound" in 7988 case "$with_sound" in
7964 native | both ) with_native_sound=yes;; 7989 native | both ) with_native_sound=yes;;
7965 nas | no ) with_native_sound=no;; 7990 nas | no ) with_native_sound=no;;
7966 esac 7991 esac
7967 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 7992 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
7968 7993
7969 if test "$with_native_sound" != "no"; then 7994 if test "$with_native_sound" != "no"; then
7970 if test -n "$native_sound_lib"; then 7995 if test -n "$native_sound_lib"; then
7971 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 7996 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
7972 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 7997 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
7973 echo "configure:7974: checking for multimedia/audio_device.h" >&5 7998 echo "configure:7999: checking for multimedia/audio_device.h" >&5
7974 7999
7975 cat > conftest.$ac_ext <<EOF 8000 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure" 8001 #line 8002 "configure"
7977 #include "confdefs.h" 8002 #include "confdefs.h"
7978 #include <multimedia/audio_device.h> 8003 #include <multimedia/audio_device.h>
7979 EOF 8004 EOF
7980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7981 { (eval echo configure:7982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8006 { (eval echo configure:8007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7982 ac_err=`grep -v '^ *+' conftest.out` 8007 ac_err=`grep -v '^ *+' conftest.out`
7983 if test -z "$ac_err"; then 8008 if test -z "$ac_err"; then
7984 rm -rf conftest* 8009 rm -rf conftest*
7985 eval "ac_cv_header_$ac_safe=yes" 8010 eval "ac_cv_header_$ac_safe=yes"
7986 else 8011 else
8024 case "$canonical" in 8049 case "$canonical" in
8025 *-sgi-* ) 8050 *-sgi-* )
8026 if test -z "$native_sound_lib"; then 8051 if test -z "$native_sound_lib"; then
8027 8052
8028 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 8053 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8029 echo "configure:8030: checking for ALopenport in -laudio" >&5 8054 echo "configure:8055: checking for ALopenport in -laudio" >&5
8030 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 8055 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8031 8056
8032 xe_check_libs=" -laudio " 8057 xe_check_libs=" -laudio "
8033 cat > conftest.$ac_ext <<EOF 8058 cat > conftest.$ac_ext <<EOF
8034 #line 8035 "configure" 8059 #line 8060 "configure"
8035 #include "confdefs.h" 8060 #include "confdefs.h"
8036 /* Override any gcc2 internal prototype to avoid an error. */ 8061 /* Override any gcc2 internal prototype to avoid an error. */
8037 /* We use char because int might match the return type of a gcc2 8062 /* We use char because int might match the return type of a gcc2
8038 builtin and then its argument prototype would still apply. */ 8063 builtin and then its argument prototype would still apply. */
8039 char ALopenport(); 8064 char ALopenport();
8040 8065
8041 int main() { 8066 int main() {
8042 ALopenport() 8067 ALopenport()
8043 ; return 0; } 8068 ; return 0; }
8044 EOF 8069 EOF
8045 if { (eval echo configure:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8070 if { (eval echo configure:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8046 rm -rf conftest* 8071 rm -rf conftest*
8047 eval "ac_cv_lib_$ac_lib_var=yes" 8072 eval "ac_cv_lib_$ac_lib_var=yes"
8048 else 8073 else
8049 echo "configure: failed program was:" >&5 8074 echo "configure: failed program was:" >&5
8050 cat conftest.$ac_ext >&5 8075 cat conftest.$ac_ext >&5
8071 fi ;; 8096 fi ;;
8072 hppa*-hp-hpux* ) 8097 hppa*-hp-hpux* )
8073 if test -z "$native_sound_lib"; then 8098 if test -z "$native_sound_lib"; then
8074 8099
8075 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 8100 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
8076 echo "configure:8077: checking for AOpenAudio in -lAlib" >&5 8101 echo "configure:8102: checking for AOpenAudio in -lAlib" >&5
8077 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 8102 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
8078 8103
8079 xe_check_libs=" -lAlib " 8104 xe_check_libs=" -lAlib "
8080 cat > conftest.$ac_ext <<EOF 8105 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure" 8106 #line 8107 "configure"
8082 #include "confdefs.h" 8107 #include "confdefs.h"
8083 /* Override any gcc2 internal prototype to avoid an error. */ 8108 /* Override any gcc2 internal prototype to avoid an error. */
8084 /* We use char because int might match the return type of a gcc2 8109 /* We use char because int might match the return type of a gcc2
8085 builtin and then its argument prototype would still apply. */ 8110 builtin and then its argument prototype would still apply. */
8086 char AOpenAudio(); 8111 char AOpenAudio();
8087 8112
8088 int main() { 8113 int main() {
8089 AOpenAudio() 8114 AOpenAudio()
8090 ; return 0; } 8115 ; return 0; }
8091 EOF 8116 EOF
8092 if { (eval echo configure:8093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8117 if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8093 rm -rf conftest* 8118 rm -rf conftest*
8094 eval "ac_cv_lib_$ac_lib_var=yes" 8119 eval "ac_cv_lib_$ac_lib_var=yes"
8095 else 8120 else
8096 echo "configure: failed program was:" >&5 8121 echo "configure: failed program was:" >&5
8097 cat conftest.$ac_ext >&5 8122 cat conftest.$ac_ext >&5
8125 8150
8126 if test -z "$sound_found"; then 8151 if test -z "$sound_found"; then
8127 for dir in "machine" "sys" "linux"; do 8152 for dir in "machine" "sys" "linux"; do
8128 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 8153 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
8129 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 8154 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
8130 echo "configure:8131: checking for ${dir}/soundcard.h" >&5 8155 echo "configure:8156: checking for ${dir}/soundcard.h" >&5
8131 8156
8132 cat > conftest.$ac_ext <<EOF 8157 cat > conftest.$ac_ext <<EOF
8133 #line 8134 "configure" 8158 #line 8159 "configure"
8134 #include "confdefs.h" 8159 #include "confdefs.h"
8135 #include <${dir}/soundcard.h> 8160 #include <${dir}/soundcard.h>
8136 EOF 8161 EOF
8137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8138 { (eval echo configure:8139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8163 { (eval echo configure:8164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8139 ac_err=`grep -v '^ *+' conftest.out` 8164 ac_err=`grep -v '^ *+' conftest.out`
8140 if test -z "$ac_err"; then 8165 if test -z "$ac_err"; then
8141 rm -rf conftest* 8166 rm -rf conftest*
8142 eval "ac_cv_header_$ac_safe=yes" 8167 eval "ac_cv_header_$ac_safe=yes"
8143 else 8168 else
8203 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 8228 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
8204 echo " xemacs will be linked with \"nas.o\"" 8229 echo " xemacs will be linked with \"nas.o\""
8205 fi 8230 fi
8206 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi 8231 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi
8207 cat > conftest.$ac_ext <<EOF 8232 cat > conftest.$ac_ext <<EOF
8208 #line 8209 "configure" 8233 #line 8234 "configure"
8209 #include "confdefs.h" 8234 #include "confdefs.h"
8210 #include <audio/Xtutil.h> 8235 #include <audio/Xtutil.h>
8211 EOF 8236 EOF
8212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8213 egrep "AuXtErrorJump" >/dev/null 2>&1; then 8238 egrep "AuXtErrorJump" >/dev/null 2>&1; then
8230 8255
8231 test -z "$with_tty" && with_tty=yes 8256 test -z "$with_tty" && with_tty=yes
8232 8257
8233 if test "$with_tty" = "yes" ; then 8258 if test "$with_tty" = "yes" ; then
8234 echo "checking for TTY-related features" 1>&6 8259 echo "checking for TTY-related features" 1>&6
8235 echo "configure:8236: checking for TTY-related features" >&5 8260 echo "configure:8261: checking for TTY-related features" >&5
8236 { test "$extra_verbose" = "yes" && cat << \EOF 8261 { test "$extra_verbose" = "yes" && cat << \EOF
8237 Defining HAVE_TTY 8262 Defining HAVE_TTY
8238 EOF 8263 EOF
8239 cat >> confdefs.h <<\EOF 8264 cat >> confdefs.h <<\EOF
8240 #define HAVE_TTY 1 8265 #define HAVE_TTY 1
8245 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\"" 8270 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\""
8246 fi 8271 fi
8247 8272
8248 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8273 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8249 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8274 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8250 echo "configure:8251: checking for termios.h" >&5 8275 echo "configure:8276: checking for termios.h" >&5
8251 8276
8252 cat > conftest.$ac_ext <<EOF 8277 cat > conftest.$ac_ext <<EOF
8253 #line 8254 "configure" 8278 #line 8279 "configure"
8254 #include "confdefs.h" 8279 #include "confdefs.h"
8255 #include <termios.h> 8280 #include <termios.h>
8256 EOF 8281 EOF
8257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8258 { (eval echo configure:8259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8283 { (eval echo configure:8284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8259 ac_err=`grep -v '^ *+' conftest.out` 8284 ac_err=`grep -v '^ *+' conftest.out`
8260 if test -z "$ac_err"; then 8285 if test -z "$ac_err"; then
8261 rm -rf conftest* 8286 rm -rf conftest*
8262 eval "ac_cv_header_$ac_safe=yes" 8287 eval "ac_cv_header_$ac_safe=yes"
8263 else 8288 else
8280 8305
8281 else 8306 else
8282 echo "$ac_t""no" 1>&6 8307 echo "$ac_t""no" 1>&6
8283 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8308 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8284 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8309 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8285 echo "configure:8286: checking for termio.h" >&5 8310 echo "configure:8311: checking for termio.h" >&5
8286 8311
8287 cat > conftest.$ac_ext <<EOF 8312 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure" 8313 #line 8314 "configure"
8289 #include "confdefs.h" 8314 #include "confdefs.h"
8290 #include <termio.h> 8315 #include <termio.h>
8291 EOF 8316 EOF
8292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8293 { (eval echo configure:8294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8318 { (eval echo configure:8319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8294 ac_err=`grep -v '^ *+' conftest.out` 8319 ac_err=`grep -v '^ *+' conftest.out`
8295 if test -z "$ac_err"; then 8320 if test -z "$ac_err"; then
8296 rm -rf conftest* 8321 rm -rf conftest*
8297 eval "ac_cv_header_$ac_safe=yes" 8322 eval "ac_cv_header_$ac_safe=yes"
8298 else 8323 else
8321 8346
8322 8347
8323 if test -z "$with_ncurses"; then 8348 if test -z "$with_ncurses"; then
8324 8349
8325 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 8350 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
8326 echo "configure:8327: checking for tgetent in -lncurses" >&5 8351 echo "configure:8352: checking for tgetent in -lncurses" >&5
8327 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 8352 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
8328 8353
8329 xe_check_libs=" -lncurses " 8354 xe_check_libs=" -lncurses "
8330 cat > conftest.$ac_ext <<EOF 8355 cat > conftest.$ac_ext <<EOF
8331 #line 8332 "configure" 8356 #line 8357 "configure"
8332 #include "confdefs.h" 8357 #include "confdefs.h"
8333 /* Override any gcc2 internal prototype to avoid an error. */ 8358 /* Override any gcc2 internal prototype to avoid an error. */
8334 /* We use char because int might match the return type of a gcc2 8359 /* We use char because int might match the return type of a gcc2
8335 builtin and then its argument prototype would still apply. */ 8360 builtin and then its argument prototype would still apply. */
8336 char tgetent(); 8361 char tgetent();
8337 8362
8338 int main() { 8363 int main() {
8339 tgetent() 8364 tgetent()
8340 ; return 0; } 8365 ; return 0; }
8341 EOF 8366 EOF
8342 if { (eval echo configure:8343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8343 rm -rf conftest* 8368 rm -rf conftest*
8344 eval "ac_cv_lib_$ac_lib_var=yes" 8369 eval "ac_cv_lib_$ac_lib_var=yes"
8345 else 8370 else
8346 echo "configure: failed program was:" >&5 8371 echo "configure: failed program was:" >&5
8347 cat conftest.$ac_ext >&5 8372 cat conftest.$ac_ext >&5
8370 EOF 8395 EOF
8371 } 8396 }
8372 8397
8373 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 8398 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
8374 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 8399 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
8375 echo "configure:8376: checking for ncurses/curses.h" >&5 8400 echo "configure:8401: checking for ncurses/curses.h" >&5
8376 8401
8377 cat > conftest.$ac_ext <<EOF 8402 cat > conftest.$ac_ext <<EOF
8378 #line 8379 "configure" 8403 #line 8404 "configure"
8379 #include "confdefs.h" 8404 #include "confdefs.h"
8380 #include <ncurses/curses.h> 8405 #include <ncurses/curses.h>
8381 EOF 8406 EOF
8382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8383 { (eval echo configure:8384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8408 { (eval echo configure:8409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8384 ac_err=`grep -v '^ *+' conftest.out` 8409 ac_err=`grep -v '^ *+' conftest.out`
8385 if test -z "$ac_err"; then 8410 if test -z "$ac_err"; then
8386 rm -rf conftest* 8411 rm -rf conftest*
8387 eval "ac_cv_header_$ac_safe=yes" 8412 eval "ac_cv_header_$ac_safe=yes"
8388 else 8413 else
8400 echo "$ac_t""no" 1>&6 8425 echo "$ac_t""no" 1>&6
8401 fi 8426 fi
8402 8427
8403 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 8428 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
8404 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 8429 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
8405 echo "configure:8406: checking for ncurses/term.h" >&5 8430 echo "configure:8431: checking for ncurses/term.h" >&5
8406 8431
8407 cat > conftest.$ac_ext <<EOF 8432 cat > conftest.$ac_ext <<EOF
8408 #line 8409 "configure" 8433 #line 8434 "configure"
8409 #include "confdefs.h" 8434 #include "confdefs.h"
8410 #include <ncurses/term.h> 8435 #include <ncurses/term.h>
8411 EOF 8436 EOF
8412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8413 { (eval echo configure:8414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8438 { (eval echo configure:8439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8414 ac_err=`grep -v '^ *+' conftest.out` 8439 ac_err=`grep -v '^ *+' conftest.out`
8415 if test -z "$ac_err"; then 8440 if test -z "$ac_err"; then
8416 rm -rf conftest* 8441 rm -rf conftest*
8417 eval "ac_cv_header_$ac_safe=yes" 8442 eval "ac_cv_header_$ac_safe=yes"
8418 else 8443 else
8438 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 8463 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
8439 save_c_switch_site="$c_switch_site" 8464 save_c_switch_site="$c_switch_site"
8440 c_switch_site="$c_switch_site -I/usr/include/ncurses" 8465 c_switch_site="$c_switch_site -I/usr/include/ncurses"
8441 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 8466 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
8442 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 8467 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
8443 echo "configure:8444: checking for ncurses/curses.h" >&5 8468 echo "configure:8469: checking for ncurses/curses.h" >&5
8444 8469
8445 cat > conftest.$ac_ext <<EOF 8470 cat > conftest.$ac_ext <<EOF
8446 #line 8447 "configure" 8471 #line 8472 "configure"
8447 #include "confdefs.h" 8472 #include "confdefs.h"
8448 #include <ncurses/curses.h> 8473 #include <ncurses/curses.h>
8449 EOF 8474 EOF
8450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8451 { (eval echo configure:8452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8476 { (eval echo configure:8477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8452 ac_err=`grep -v '^ *+' conftest.out` 8477 ac_err=`grep -v '^ *+' conftest.out`
8453 if test -z "$ac_err"; then 8478 if test -z "$ac_err"; then
8454 rm -rf conftest* 8479 rm -rf conftest*
8455 eval "ac_cv_header_$ac_safe=yes" 8480 eval "ac_cv_header_$ac_safe=yes"
8456 else 8481 else
8481 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 8506 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
8482 else 8507 else
8483 for lib in curses termlib termcap; do 8508 for lib in curses termlib termcap; do
8484 8509
8485 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 8510 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
8486 echo "configure:8487: checking for tgetent in -l$lib" >&5 8511 echo "configure:8512: checking for tgetent in -l$lib" >&5
8487 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 8512 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
8488 8513
8489 xe_check_libs=" -l$lib " 8514 xe_check_libs=" -l$lib "
8490 cat > conftest.$ac_ext <<EOF 8515 cat > conftest.$ac_ext <<EOF
8491 #line 8492 "configure" 8516 #line 8517 "configure"
8492 #include "confdefs.h" 8517 #include "confdefs.h"
8493 /* Override any gcc2 internal prototype to avoid an error. */ 8518 /* Override any gcc2 internal prototype to avoid an error. */
8494 /* We use char because int might match the return type of a gcc2 8519 /* We use char because int might match the return type of a gcc2
8495 builtin and then its argument prototype would still apply. */ 8520 builtin and then its argument prototype would still apply. */
8496 char tgetent(); 8521 char tgetent();
8497 8522
8498 int main() { 8523 int main() {
8499 tgetent() 8524 tgetent()
8500 ; return 0; } 8525 ; return 0; }
8501 EOF 8526 EOF
8502 if { (eval echo configure:8503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8527 if { (eval echo configure:8528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8503 rm -rf conftest* 8528 rm -rf conftest*
8504 eval "ac_cv_lib_$ac_lib_var=yes" 8529 eval "ac_cv_lib_$ac_lib_var=yes"
8505 else 8530 else
8506 echo "configure: failed program was:" >&5 8531 echo "configure: failed program was:" >&5
8507 cat conftest.$ac_ext >&5 8532 cat conftest.$ac_ext >&5
8528 if test -n "$libs_termcap"; then 8553 if test -n "$libs_termcap"; then
8529 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 8554 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
8530 else 8555 else
8531 8556
8532 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 8557 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
8533 echo "configure:8534: checking for tgetent in -lcurses" >&5 8558 echo "configure:8559: checking for tgetent in -lcurses" >&5
8534 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 8559 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
8535 8560
8536 xe_check_libs=" -lcurses " 8561 xe_check_libs=" -lcurses "
8537 cat > conftest.$ac_ext <<EOF 8562 cat > conftest.$ac_ext <<EOF
8538 #line 8539 "configure" 8563 #line 8564 "configure"
8539 #include "confdefs.h" 8564 #include "confdefs.h"
8540 /* Override any gcc2 internal prototype to avoid an error. */ 8565 /* Override any gcc2 internal prototype to avoid an error. */
8541 /* We use char because int might match the return type of a gcc2 8566 /* We use char because int might match the return type of a gcc2
8542 builtin and then its argument prototype would still apply. */ 8567 builtin and then its argument prototype would still apply. */
8543 char tgetent(); 8568 char tgetent();
8544 8569
8545 int main() { 8570 int main() {
8546 tgetent() 8571 tgetent()
8547 ; return 0; } 8572 ; return 0; }
8548 EOF 8573 EOF
8549 if { (eval echo configure:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8574 if { (eval echo configure:8575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8550 rm -rf conftest* 8575 rm -rf conftest*
8551 eval "ac_cv_lib_$ac_lib_var=yes" 8576 eval "ac_cv_lib_$ac_lib_var=yes"
8552 else 8577 else
8553 echo "configure: failed program was:" >&5 8578 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5 8579 cat conftest.$ac_ext >&5
8562 echo "$ac_t""yes" 1>&6 8587 echo "$ac_t""yes" 1>&6
8563 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 8588 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
8564 else 8589 else
8565 echo "$ac_t""no" 1>&6 8590 echo "$ac_t""no" 1>&6
8566 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 8591 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
8567 echo "configure:8568: checking for tgetent in -ltermcap" >&5 8592 echo "configure:8593: checking for tgetent in -ltermcap" >&5
8568 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 8593 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
8569 8594
8570 xe_check_libs=" -ltermcap " 8595 xe_check_libs=" -ltermcap "
8571 cat > conftest.$ac_ext <<EOF 8596 cat > conftest.$ac_ext <<EOF
8572 #line 8573 "configure" 8597 #line 8598 "configure"
8573 #include "confdefs.h" 8598 #include "confdefs.h"
8574 /* Override any gcc2 internal prototype to avoid an error. */ 8599 /* Override any gcc2 internal prototype to avoid an error. */
8575 /* We use char because int might match the return type of a gcc2 8600 /* We use char because int might match the return type of a gcc2
8576 builtin and then its argument prototype would still apply. */ 8601 builtin and then its argument prototype would still apply. */
8577 char tgetent(); 8602 char tgetent();
8578 8603
8579 int main() { 8604 int main() {
8580 tgetent() 8605 tgetent()
8581 ; return 0; } 8606 ; return 0; }
8582 EOF 8607 EOF
8583 if { (eval echo configure:8584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8608 if { (eval echo configure:8609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8584 rm -rf conftest* 8609 rm -rf conftest*
8585 eval "ac_cv_lib_$ac_lib_var=yes" 8610 eval "ac_cv_lib_$ac_lib_var=yes"
8586 else 8611 else
8587 echo "configure: failed program was:" >&5 8612 echo "configure: failed program was:" >&5
8588 cat conftest.$ac_ext >&5 8613 cat conftest.$ac_ext >&5
8626 } 8651 }
8627 8652
8628 8653
8629 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 8654 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
8630 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 8655 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
8631 echo "configure:8632: checking for gpm.h" >&5 8656 echo "configure:8657: checking for gpm.h" >&5
8632 8657
8633 cat > conftest.$ac_ext <<EOF 8658 cat > conftest.$ac_ext <<EOF
8634 #line 8635 "configure" 8659 #line 8660 "configure"
8635 #include "confdefs.h" 8660 #include "confdefs.h"
8636 #include <gpm.h> 8661 #include <gpm.h>
8637 EOF 8662 EOF
8638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8639 { (eval echo configure:8640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8664 { (eval echo configure:8665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8640 ac_err=`grep -v '^ *+' conftest.out` 8665 ac_err=`grep -v '^ *+' conftest.out`
8641 if test -z "$ac_err"; then 8666 if test -z "$ac_err"; then
8642 rm -rf conftest* 8667 rm -rf conftest*
8643 eval "ac_cv_header_$ac_safe=yes" 8668 eval "ac_cv_header_$ac_safe=yes"
8644 else 8669 else
8657 with_gpm=no 8682 with_gpm=no
8658 fi 8683 fi
8659 } 8684 }
8660 test -z "$with_gpm" && { 8685 test -z "$with_gpm" && {
8661 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 8686 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
8662 echo "configure:8663: checking for Gpm_Open in -lgpm" >&5 8687 echo "configure:8688: checking for Gpm_Open in -lgpm" >&5
8663 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 8688 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
8664 8689
8665 xe_check_libs=" -lgpm " 8690 xe_check_libs=" -lgpm "
8666 cat > conftest.$ac_ext <<EOF 8691 cat > conftest.$ac_ext <<EOF
8667 #line 8668 "configure" 8692 #line 8693 "configure"
8668 #include "confdefs.h" 8693 #include "confdefs.h"
8669 /* Override any gcc2 internal prototype to avoid an error. */ 8694 /* Override any gcc2 internal prototype to avoid an error. */
8670 /* We use char because int might match the return type of a gcc2 8695 /* We use char because int might match the return type of a gcc2
8671 builtin and then its argument prototype would still apply. */ 8696 builtin and then its argument prototype would still apply. */
8672 char Gpm_Open(); 8697 char Gpm_Open();
8673 8698
8674 int main() { 8699 int main() {
8675 Gpm_Open() 8700 Gpm_Open()
8676 ; return 0; } 8701 ; return 0; }
8677 EOF 8702 EOF
8678 if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8703 if { (eval echo configure:8704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8679 rm -rf conftest* 8704 rm -rf conftest*
8680 eval "ac_cv_lib_$ac_lib_var=yes" 8705 eval "ac_cv_lib_$ac_lib_var=yes"
8681 else 8706 else
8682 echo "configure: failed program was:" >&5 8707 echo "configure: failed program was:" >&5
8683 cat conftest.$ac_ext >&5 8708 cat conftest.$ac_ext >&5
8718 eval "with_${feature}=no" 8743 eval "with_${feature}=no"
8719 done 8744 done
8720 fi 8745 fi
8721 8746
8722 echo "checking for database support" 1>&6 8747 echo "checking for database support" 1>&6
8723 echo "configure:8724: checking for database support" >&5 8748 echo "configure:8749: checking for database support" >&5
8724 8749
8725 if test "$with_database_gnudbm" != "no"; then 8750 if test "$with_database_gnudbm" != "no"; then
8726 8751
8727 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 8752 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
8728 echo "configure:8729: checking for dbm_open in -lgdbm" >&5 8753 echo "configure:8754: checking for dbm_open in -lgdbm" >&5
8729 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 8754 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
8730 8755
8731 xe_check_libs=" -lgdbm " 8756 xe_check_libs=" -lgdbm "
8732 cat > conftest.$ac_ext <<EOF 8757 cat > conftest.$ac_ext <<EOF
8733 #line 8734 "configure" 8758 #line 8759 "configure"
8734 #include "confdefs.h" 8759 #include "confdefs.h"
8735 /* Override any gcc2 internal prototype to avoid an error. */ 8760 /* Override any gcc2 internal prototype to avoid an error. */
8736 /* We use char because int might match the return type of a gcc2 8761 /* We use char because int might match the return type of a gcc2
8737 builtin and then its argument prototype would still apply. */ 8762 builtin and then its argument prototype would still apply. */
8738 char dbm_open(); 8763 char dbm_open();
8739 8764
8740 int main() { 8765 int main() {
8741 dbm_open() 8766 dbm_open()
8742 ; return 0; } 8767 ; return 0; }
8743 EOF 8768 EOF
8744 if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8769 if { (eval echo configure:8770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8745 rm -rf conftest* 8770 rm -rf conftest*
8746 eval "ac_cv_lib_$ac_lib_var=yes" 8771 eval "ac_cv_lib_$ac_lib_var=yes"
8747 else 8772 else
8748 echo "configure: failed program was:" >&5 8773 echo "configure: failed program was:" >&5
8749 cat conftest.$ac_ext >&5 8774 cat conftest.$ac_ext >&5
8761 fi 8786 fi
8762 8787
8763 8788
8764 if test "$with_database_gnudbm" != "yes"; then 8789 if test "$with_database_gnudbm" != "yes"; then
8765 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 8790 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8766 echo "configure:8767: checking for dbm_open" >&5 8791 echo "configure:8792: checking for dbm_open" >&5
8767 8792
8768 cat > conftest.$ac_ext <<EOF 8793 cat > conftest.$ac_ext <<EOF
8769 #line 8770 "configure" 8794 #line 8795 "configure"
8770 #include "confdefs.h" 8795 #include "confdefs.h"
8771 /* System header to define __stub macros and hopefully few prototypes, 8796 /* System header to define __stub macros and hopefully few prototypes,
8772 which can conflict with char dbm_open(); below. */ 8797 which can conflict with char dbm_open(); below. */
8773 #include <assert.h> 8798 #include <assert.h>
8774 /* Override any gcc2 internal prototype to avoid an error. */ 8799 /* Override any gcc2 internal prototype to avoid an error. */
8787 dbm_open(); 8812 dbm_open();
8788 #endif 8813 #endif
8789 8814
8790 ; return 0; } 8815 ; return 0; }
8791 EOF 8816 EOF
8792 if { (eval echo configure:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8817 if { (eval echo configure:8818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8793 rm -rf conftest* 8818 rm -rf conftest*
8794 eval "ac_cv_func_dbm_open=yes" 8819 eval "ac_cv_func_dbm_open=yes"
8795 else 8820 else
8796 echo "configure: failed program was:" >&5 8821 echo "configure: failed program was:" >&5
8797 cat conftest.$ac_ext >&5 8822 cat conftest.$ac_ext >&5
8823 fi 8848 fi
8824 fi 8849 fi
8825 8850
8826 if test "$with_database_dbm" != "no"; then 8851 if test "$with_database_dbm" != "no"; then
8827 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 8852 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8828 echo "configure:8829: checking for dbm_open" >&5 8853 echo "configure:8854: checking for dbm_open" >&5
8829 8854
8830 cat > conftest.$ac_ext <<EOF 8855 cat > conftest.$ac_ext <<EOF
8831 #line 8832 "configure" 8856 #line 8857 "configure"
8832 #include "confdefs.h" 8857 #include "confdefs.h"
8833 /* System header to define __stub macros and hopefully few prototypes, 8858 /* System header to define __stub macros and hopefully few prototypes,
8834 which can conflict with char dbm_open(); below. */ 8859 which can conflict with char dbm_open(); below. */
8835 #include <assert.h> 8860 #include <assert.h>
8836 /* Override any gcc2 internal prototype to avoid an error. */ 8861 /* Override any gcc2 internal prototype to avoid an error. */
8849 dbm_open(); 8874 dbm_open();
8850 #endif 8875 #endif
8851 8876
8852 ; return 0; } 8877 ; return 0; }
8853 EOF 8878 EOF
8854 if { (eval echo configure:8855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8855 rm -rf conftest* 8880 rm -rf conftest*
8856 eval "ac_cv_func_dbm_open=yes" 8881 eval "ac_cv_func_dbm_open=yes"
8857 else 8882 else
8858 echo "configure: failed program was:" >&5 8883 echo "configure: failed program was:" >&5
8859 cat conftest.$ac_ext >&5 8884 cat conftest.$ac_ext >&5
8870 fi 8895 fi
8871 8896
8872 if test "$need_libdbm" != "no"; then 8897 if test "$need_libdbm" != "no"; then
8873 8898
8874 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 8899 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8875 echo "configure:8876: checking for dbm_open in -ldbm" >&5 8900 echo "configure:8901: checking for dbm_open in -ldbm" >&5
8876 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 8901 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8877 8902
8878 xe_check_libs=" -ldbm " 8903 xe_check_libs=" -ldbm "
8879 cat > conftest.$ac_ext <<EOF 8904 cat > conftest.$ac_ext <<EOF
8880 #line 8881 "configure" 8905 #line 8906 "configure"
8881 #include "confdefs.h" 8906 #include "confdefs.h"
8882 /* Override any gcc2 internal prototype to avoid an error. */ 8907 /* Override any gcc2 internal prototype to avoid an error. */
8883 /* We use char because int might match the return type of a gcc2 8908 /* We use char because int might match the return type of a gcc2
8884 builtin and then its argument prototype would still apply. */ 8909 builtin and then its argument prototype would still apply. */
8885 char dbm_open(); 8910 char dbm_open();
8886 8911
8887 int main() { 8912 int main() {
8888 dbm_open() 8913 dbm_open()
8889 ; return 0; } 8914 ; return 0; }
8890 EOF 8915 EOF
8891 if { (eval echo configure:8892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8916 if { (eval echo configure:8917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8892 rm -rf conftest* 8917 rm -rf conftest*
8893 eval "ac_cv_lib_$ac_lib_var=yes" 8918 eval "ac_cv_lib_$ac_lib_var=yes"
8894 else 8919 else
8895 echo "configure: failed program was:" >&5 8920 echo "configure: failed program was:" >&5
8896 cat conftest.$ac_ext >&5 8921 cat conftest.$ac_ext >&5
8923 fi 8948 fi
8924 fi 8949 fi
8925 8950
8926 if test "$with_database_berkdb" != "no"; then 8951 if test "$with_database_berkdb" != "no"; then
8927 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 8952 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
8928 echo "configure:8929: checking for dbopen" >&5 8953 echo "configure:8954: checking for dbopen" >&5
8929 8954
8930 cat > conftest.$ac_ext <<EOF 8955 cat > conftest.$ac_ext <<EOF
8931 #line 8932 "configure" 8956 #line 8957 "configure"
8932 #include "confdefs.h" 8957 #include "confdefs.h"
8933 /* System header to define __stub macros and hopefully few prototypes, 8958 /* System header to define __stub macros and hopefully few prototypes,
8934 which can conflict with char dbopen(); below. */ 8959 which can conflict with char dbopen(); below. */
8935 #include <assert.h> 8960 #include <assert.h>
8936 /* Override any gcc2 internal prototype to avoid an error. */ 8961 /* Override any gcc2 internal prototype to avoid an error. */
8949 dbopen(); 8974 dbopen();
8950 #endif 8975 #endif
8951 8976
8952 ; return 0; } 8977 ; return 0; }
8953 EOF 8978 EOF
8954 if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8979 if { (eval echo configure:8980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8955 rm -rf conftest* 8980 rm -rf conftest*
8956 eval "ac_cv_func_dbopen=yes" 8981 eval "ac_cv_func_dbopen=yes"
8957 else 8982 else
8958 echo "configure: failed program was:" >&5 8983 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5 8984 cat conftest.$ac_ext >&5
8970 fi 8995 fi
8971 8996
8972 if test "$need_libdb" != "no"; then 8997 if test "$need_libdb" != "no"; then
8973 8998
8974 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 8999 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
8975 echo "configure:8976: checking for dbopen in -ldb" >&5 9000 echo "configure:9001: checking for dbopen in -ldb" >&5
8976 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9001 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
8977 9002
8978 xe_check_libs=" -ldb " 9003 xe_check_libs=" -ldb "
8979 cat > conftest.$ac_ext <<EOF 9004 cat > conftest.$ac_ext <<EOF
8980 #line 8981 "configure" 9005 #line 9006 "configure"
8981 #include "confdefs.h" 9006 #include "confdefs.h"
8982 /* Override any gcc2 internal prototype to avoid an error. */ 9007 /* Override any gcc2 internal prototype to avoid an error. */
8983 /* We use char because int might match the return type of a gcc2 9008 /* We use char because int might match the return type of a gcc2
8984 builtin and then its argument prototype would still apply. */ 9009 builtin and then its argument prototype would still apply. */
8985 char dbopen(); 9010 char dbopen();
8986 9011
8987 int main() { 9012 int main() {
8988 dbopen() 9013 dbopen()
8989 ; return 0; } 9014 ; return 0; }
8990 EOF 9015 EOF
8991 if { (eval echo configure:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9016 if { (eval echo configure:9017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8992 rm -rf conftest* 9017 rm -rf conftest*
8993 eval "ac_cv_lib_$ac_lib_var=yes" 9018 eval "ac_cv_lib_$ac_lib_var=yes"
8994 else 9019 else
8995 echo "configure: failed program was:" >&5 9020 echo "configure: failed program was:" >&5
8996 cat conftest.$ac_ext >&5 9021 cat conftest.$ac_ext >&5
9010 9035
9011 fi 9036 fi
9012 if test "$with_database_berkdb" = "yes"; then 9037 if test "$with_database_berkdb" = "yes"; then
9013 for path in "db/db.h" "db.h"; do 9038 for path in "db/db.h" "db.h"; do
9014 cat > conftest.$ac_ext <<EOF 9039 cat > conftest.$ac_ext <<EOF
9015 #line 9016 "configure" 9040 #line 9041 "configure"
9016 #include "confdefs.h" 9041 #include "confdefs.h"
9017 #ifdef HAVE_INTTYPES_H 9042 #ifdef HAVE_INTTYPES_H
9018 #define __BIT_TYPES_DEFINED__ 9043 #define __BIT_TYPES_DEFINED__
9019 #include <inttypes.h> 9044 #include <inttypes.h>
9020 typedef uint8_t u_int8_t; 9045 typedef uint8_t u_int8_t;
9028 9053
9029 int main() { 9054 int main() {
9030 9055
9031 ; return 0; } 9056 ; return 0; }
9032 EOF 9057 EOF
9033 if { (eval echo configure:9034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9058 if { (eval echo configure:9059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9034 rm -rf conftest* 9059 rm -rf conftest*
9035 db_h_path="$path"; break 9060 db_h_path="$path"; break
9036 else 9061 else
9037 echo "configure: failed program was:" >&5 9062 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5 9063 cat conftest.$ac_ext >&5
9080 fi 9105 fi
9081 9106
9082 if test "$with_socks" = "yes"; then 9107 if test "$with_socks" = "yes"; then
9083 9108
9084 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9109 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9085 echo "configure:9086: checking for SOCKSinit in -lsocks" >&5 9110 echo "configure:9111: checking for SOCKSinit in -lsocks" >&5
9086 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9111 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9087 9112
9088 xe_check_libs=" -lsocks " 9113 xe_check_libs=" -lsocks "
9089 cat > conftest.$ac_ext <<EOF 9114 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure" 9115 #line 9116 "configure"
9091 #include "confdefs.h" 9116 #include "confdefs.h"
9092 /* Override any gcc2 internal prototype to avoid an error. */ 9117 /* Override any gcc2 internal prototype to avoid an error. */
9093 /* We use char because int might match the return type of a gcc2 9118 /* We use char because int might match the return type of a gcc2
9094 builtin and then its argument prototype would still apply. */ 9119 builtin and then its argument prototype would still apply. */
9095 char SOCKSinit(); 9120 char SOCKSinit();
9096 9121
9097 int main() { 9122 int main() {
9098 SOCKSinit() 9123 SOCKSinit()
9099 ; return 0; } 9124 ; return 0; }
9100 EOF 9125 EOF
9101 if { (eval echo configure:9102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9126 if { (eval echo configure:9127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9102 rm -rf conftest* 9127 rm -rf conftest*
9103 eval "ac_cv_lib_$ac_lib_var=yes" 9128 eval "ac_cv_lib_$ac_lib_var=yes"
9104 else 9129 else
9105 echo "configure: failed program was:" >&5 9130 echo "configure: failed program was:" >&5
9106 cat conftest.$ac_ext >&5 9131 cat conftest.$ac_ext >&5
9709 9734
9710 9735
9711 9736
9712 # Remove any trailing slashes in these variables. 9737 # Remove any trailing slashes in these variables.
9713 test -n "$prefix" && 9738 test -n "$prefix" &&
9714 prefix=`echo "$prefix" | sed 's,\([^/]\)/*$,\1,'` 9739 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
9715 test -n "$exec_prefix" && 9740 test -n "$exec_prefix" &&
9716 exec_prefix=`echo "$exec_prefix" | sed 's,\([^/]\)/*$,\1,'` 9741 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
9717 9742
9718 9743
9719 trap '' 1 2 15 9744 trap '' 1 2 15
9720 9745
9721 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 9746 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9811 s%@SET_MAKE@%$SET_MAKE%g 9836 s%@SET_MAKE@%$SET_MAKE%g
9812 s%@X_CFLAGS@%$X_CFLAGS%g 9837 s%@X_CFLAGS@%$X_CFLAGS%g
9813 s%@X_PRE_LIBS@%$X_PRE_LIBS%g 9838 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9814 s%@X_LIBS@%$X_LIBS%g 9839 s%@X_LIBS@%$X_LIBS%g
9815 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 9840 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9841 s%@libs_xauth@%$libs_xauth%g
9816 s%@lwlib_objs@%$lwlib_objs%g 9842 s%@lwlib_objs@%$lwlib_objs%g
9817 s%@ALLOCA@%$ALLOCA%g 9843 s%@ALLOCA@%$ALLOCA%g
9818 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g 9844 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
9819 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g 9845 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
9820 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g 9846 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g