comparison configure @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents 7d59cb494b73
children a86b2b5e0111
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
225 bindir='${exec_prefix}/bin' 225 bindir='${exec_prefix}/bin'
226 datadir='${prefix}/lib' 226 datadir='${prefix}/lib'
227 statedir='${prefix}/lib' 227 statedir='${prefix}/lib'
228 libdir='${exec_prefix}/lib' 228 libdir='${exec_prefix}/lib'
229 mandir='${prefix}/man/man1' 229 mandir='${prefix}/man/man1'
230 infodir='${datadir}/${PROGNAME}-${version}/info' 230 inststaticdir='${PROGNAME}'
231 instvardir='${PROGNAME}-${version}'
232 infodir='${datadir}/${instvardir}/info'
231 infopath='' 233 infopath=''
232 install_pp='' 234 install_pp=''
233 lispdir='${datadir}/${PROGNAME}-${version}/lisp' 235 lispdir='${datadir}/${instvardir}/lisp'
234 moduledir='${datadir}/${PROGNAME}-${version}/${configuration}/modules' 236 moduledir='${datadir}/${instvardir}/${configuration}/modules'
235 sitelispdir='${datadir}/xemacs/site-lisp' 237 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
236 sitemoduledir='${datadir}/xemacs/site-modules' 238 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
237 pkgdir='${datadir}/${PROGNAME}-${version}/lisp' 239 pkgdir='${datadir}/${instvardir}/lisp'
238 package_path='' 240 package_path=''
239 etcdir='${datadir}/${PROGNAME}-${version}/etc' 241 etcdir='${datadir}/${instvardir}/etc'
240 lockdir='${statedir}/${PROGNAME}/lock' 242 lockdir='${statedir}/${inststaticdir}/lock'
241 archlibdir='${datadir}/${PROGNAME}-${version}/${configuration}' 243 archlibdir='${datadir}/${instvardir}/${configuration}'
244 docdir='${archlibdir}'
245 with_prefix='yes'
242 with_site_lisp='no' 246 with_site_lisp='no'
243 with_site_modules='yes' 247 with_site_modules='yes'
244 with_menubars='' 248 with_menubars=''
245 with_scrollbars='' 249 with_scrollbars=''
250 with_widgets=''
246 with_dialogs='' 251 with_dialogs=''
247 with_file_coding='' 252 with_file_coding=''
248 puresize=''
249 cpp='' cppflags='' libs='' ldflags='' 253 cpp='' cppflags='' libs='' ldflags=''
250 dynamic='' 254 dynamic=''
251 with_x11='' 255 with_x11=''
252 with_msw='' 256 with_msw=''
253 rel_alloc='default' 257 rel_alloc='default'
257 use_assertions="yes" 261 use_assertions="yes"
258 with_toolbars="" 262 with_toolbars=""
259 with_tty="" 263 with_tty=""
260 use_union_type="no" 264 use_union_type="no"
261 with_dnet="" 265 with_dnet=""
266 pdump="no"
267 with_dragndrop="no"
262 268
263 269
264 270
265 271
266 arguments="$@" 272 arguments="$@"
305 esac 311 esac
306 312
307 case "$opt" in 313 case "$opt" in
308 314
309 with_site_lisp | \ 315 with_site_lisp | \
310 with_site_modules | \ 316 with_prefix | \
317 with_site_modules | \
311 with_x | \ 318 with_x | \
312 with_x11 | \ 319 with_x11 | \
313 with_msw | \ 320 with_msw | \
314 with_gcc | \ 321 with_gcc | \
315 dynamic | \ 322 dynamic | \
324 with_xface | \ 331 with_xface | \
325 with_gif | \ 332 with_gif | \
326 with_jpeg | \ 333 with_jpeg | \
327 with_png | \ 334 with_png | \
328 with_tiff | \ 335 with_tiff | \
329 with_session | \ 336 with_wmcommand | \
330 with_xmu | \ 337 with_xmu | \
331 with_purify | \ 338 with_purify | \
332 with_quantify | \ 339 with_quantify | \
333 with_toolbars | \ 340 with_toolbars | \
334 with_tty | \ 341 with_tty | \
349 with_dnet | \ 356 with_dnet | \
350 with_infodock | \ 357 with_infodock | \
351 external_widget | \ 358 external_widget | \
352 verbose | \ 359 verbose | \
353 extra_verbose | \ 360 extra_verbose | \
354 const_is_losing | \
355 usage_tracking | \ 361 usage_tracking | \
356 use_union_type | \ 362 use_union_type | \
363 pdump | \
357 debug | \ 364 debug | \
358 use_assertions | \ 365 use_assertions | \
359 gung_ho | \
360 use_minimal_tagbits | \
361 use_indexed_lrecord_implementation | \
362 memory_usage_stats | \ 366 memory_usage_stats | \
363 with_clash_detection | \ 367 with_clash_detection | \
364 with_shlib | \ 368 with_modules | \
365 no_doc_file ) 369 no_doc_file )
366 case "$val" in 370 case "$val" in
367 y | ye | yes ) val=yes ;; 371 y | ye | yes ) val=yes ;;
368 n | no ) val=no ;; 372 n | no ) val=no ;;
369 * ) (echo "$progname: Usage error:" 373 * ) (echo "$progname: Usage error:"
378 cflags | \ 382 cflags | \
379 cpp | \ 383 cpp | \
380 cppflags | \ 384 cppflags | \
381 libs | \ 385 libs | \
382 ldflags | \ 386 ldflags | \
383 puresize | \
384 cache_file | \ 387 cache_file | \
385 native_sound_lib| \ 388 native_sound_lib| \
386 site_lisp | \ 389 site_lisp | \
387 x_includes | \ 390 x_includes | \
388 x_libraries | \ 391 x_libraries | \
419 ;; 422 ;;
420 423
421 "with_database" ) 424 "with_database" )
422 with_database_berkdb=no 425 with_database_berkdb=no
423 with_database_dbm=no 426 with_database_dbm=no
424 with_database_gnudbm=no 427 with_database_gdbm=no
425 for x in `echo "$val" | sed -e 's/,/ /g'` ; do 428 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
426 case "$x" in 429 case "$x" in
427 no ) ;; 430 no ) ;;
428 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; 431 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
429 d | db | dbm ) with_database_dbm=yes ;; 432 d | db | dbm ) with_database_dbm=yes ;;
430 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; 433 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
431 * ) (echo "$progname: Usage error:" 434 * ) (echo "$progname: Usage error:"
432 echo " " "The \`--$optname' option value 435 echo " " "The \`--$optname' option value
433 must be either \`no' or a comma-separated list 436 must be either \`no' or a comma-separated list
434 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'." 437 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
435 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
436 esac 439 esac
437 done 440 done
438 if test "$with_database_dbm" = "yes" -a \ 441 if test "$with_database_dbm" = "yes" -a \
439 "$with_database_gnudbm" = "yes"; then 442 "$with_database_gdbm" = "yes"; then
440 (echo "$progname: Usage error:" 443 (echo "$progname: Usage error:"
441 echo " " "Only one of \`dbm' and \`gnudbm' may be specified 444 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
442 with the \`--$optname' option." 445 with the \`--$optname' option."
443 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
444 fi 447 fi
445 ;; 448 ;;
446 449
447 "with_sound" ) 450 "with_sound" )
448 case "$val" in 451 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
449 y | ye | yes ) val=native ;; 452 case "$x" in
450 n | no | non | none ) val=no;; 453 n | no | non | none ) new_sdefault=no ;;
451 na | nat | nati | nativ | native ) val=native ;; 454 a | al | all | both ) new_sdefault=yes ;;
452 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;; 455
453 b | bo | bot | both ) val=both;; 456 native ) with_native_sound=yes ;;
457 nonative ) with_native_sound=no ;;
458
459 nas ) with_nas_sound=yes ;;
460 nonas ) with_nas_sound=no ;;
461
462 esd ) with_esd_sound=yes ;;
463 noesd ) with_esd_sound=no ;;
464
465 * ) bogus_sound=yes ;;
466 esac
467 if test "$bogus_sound" -o \
468 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
469 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
470 (echo "$progname: Usage error:"
471 echo " " "Valid types for the \`--$optname' option are:
472 $types.
473 The default is to autodetect all sound support."
474 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
475 elif test -n "$new_sdefault" ; then
476 with_native_sound=$new_sdefault
477 with_nas_sound=$new_sdefault
478 with_esd_sound=$new_sdefault
479 new_sdefault= # reset this
480 fi
481 sound_notfirst=true
482 done
483 ;;
484
485 "with_athena" )
486 case "$val" in
487 xa | xaw ) val=xaw ;;
488 3 | 3d | xaw3d ) val=3d ;;
489 ne | nex | next | naxtaw) val=next ;;
490 9 | 95 | xaw95 ) val=95 ;;
491 xp | xpm | xawxpm ) val=xpm ;;
454 * ) (echo "$progname: Usage error:" 492 * ) (echo "$progname: Usage error:"
455 echo " " "The \`--$optname' option must have one of these values: 493 echo " " "The \`--$optname' option must have one of these values:
456 \`native', \`nas', \`both', or \`none'." 494 \`xaw', \`3d', \`next', \`95', or \`xpm'."
457 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 495 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
458 esac 496 esac
459 eval "$opt=\"$val\"" 497 eval "$opt=\"$val\""
460 ;; 498 ;;
461 499
475 513
476 "mail_locking" ) 514 "mail_locking" )
477 case "$val" in 515 case "$val" in
478 lockf ) val=lockf ;; 516 lockf ) val=lockf ;;
479 flock ) val=flock ;; 517 flock ) val=flock ;;
480 file ) val=file ;; 518 file | dot ) val=file ;;
519 locking ) val=locking ;;
481 * ) (echo "$progname: Usage error:" 520 * ) (echo "$progname: Usage error:"
482 echo " " "The \`--$optname' option must have one of these values: 521 echo " " "The \`--$optname' option must have one of these values:
483 \`lockf', \`flock', or \`file'." 522 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
484 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 523 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
485 esac 524 esac
486 eval "$opt=\"$val\"" 525 eval "$opt=\"$val\""
487 ;; 526 ;;
488 527
506 nogc ) error_check_gc=no ;; 545 nogc ) error_check_gc=no ;;
507 546
508 malloc ) error_check_malloc=yes ;; 547 malloc ) error_check_malloc=yes ;;
509 nomalloc ) error_check_malloc=no ;; 548 nomalloc ) error_check_malloc=no ;;
510 549
550 byte_code ) error_check_byte_code=yes ;;
551 nobyte_code ) error_check_byte_code=no ;;
552
511 * ) bogus_error_check=yes ;; 553 * ) bogus_error_check=yes ;;
512 esac 554 esac
513 if test "$bogus_error_check" -o \ 555 if test "$bogus_error_check" -o \
514 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then 556 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
515 if test "$error_check_default" = yes ; then 557 if test "$error_check_default" = yes ; then
516 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'." 558 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
517 else 559 else
518 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'." 560 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
519 fi 561 fi
520 (echo "$progname: Usage error:" 562 (echo "$progname: Usage error:"
521 echo " " "Valid types for the \`--$optname' option are: 563 echo " " "Valid types for the \`--$optname' option are:
522 $types." 564 $types."
523 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 565 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
525 error_check_extents=$new_default 567 error_check_extents=$new_default
526 error_check_typecheck=$new_default 568 error_check_typecheck=$new_default
527 error_check_bufpos=$new_default 569 error_check_bufpos=$new_default
528 error_check_gc=$new_default 570 error_check_gc=$new_default
529 error_check_malloc=$new_default 571 error_check_malloc=$new_default
572 error_check_byte_code=$new_default
530 new_default= # reset this 573 new_default= # reset this
531 fi 574 fi
532 echeck_notfirst=true 575 echeck_notfirst=true
533 done 576 done
534 ;; 577 ;;
546 val="$1"; shift 589 val="$1"; shift
547 fi 590 fi
548 eval "$opt=\"$val\"" 591 eval "$opt=\"$val\""
549 592
550 case "$opt" in 593 case "$opt" in
594 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
595 Defining EXEC_PREFIX_USER_DEFINED
596 EOF
597 cat >> confdefs.h <<\EOF
598 #define EXEC_PREFIX_USER_DEFINED 1
599 EOF
600 }
601 ;;
551 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF 602 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
552 Defining LISPDIR_USER_DEFINED 603 Defining LISPDIR_USER_DEFINED
553 EOF 604 EOF
554 cat >> confdefs.h <<\EOF 605 cat >> confdefs.h <<\EOF
555 #define LISPDIR_USER_DEFINED 1 606 #define LISPDIR_USER_DEFINED 1
643 cat >> confdefs.h <<\EOF 694 cat >> confdefs.h <<\EOF
644 #define LOCKDIR_USER_DEFINED 1 695 #define LOCKDIR_USER_DEFINED 1
645 EOF 696 EOF
646 } 697 }
647 ;; 698 ;;
699 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
700 Defining DOCDIR_USER_DEFINED
701 EOF
702 cat >> confdefs.h <<\EOF
703 #define DOCDIR_USER_DEFINED 1
704 EOF
705 }
706 ;;
648 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF 707 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
649 Defining ARCHLIBDIR_USER_DEFINED 708 Defining ARCHLIBDIR_USER_DEFINED
650 EOF 709 EOF
651 cat >> confdefs.h <<\EOF 710 cat >> confdefs.h <<\EOF
652 #define ARCHLIBDIR_USER_DEFINED 1 711 #define ARCHLIBDIR_USER_DEFINED 1
660 719
661 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;; 720 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
662 721
663 "with_menubars" | \ 722 "with_menubars" | \
664 "with_scrollbars" | \ 723 "with_scrollbars" | \
665 "with_dialogs" ) 724 "with_dialogs" | \
725 "with_widgets" )
666 case "$val" in 726 case "$val" in
667 l | lu | luc | luci | lucid ) val=lucid ;; 727 l | lu | luc | luci | lucid ) val=lucid ;;
668 m | mo | mot | moti | motif ) val=motif ;; 728 m | mo | mot | moti | motif ) val=motif ;;
669 athena3d | athena-3d ) val=athena3d ;;
670 a | at | ath | athe | athen | athena ) val=athena ;; 729 a | at | ath | athe | athen | athena ) val=athena ;;
671 n | no | non | none ) val=no ;; 730 n | no | non | none ) val=no ;;
672 * ) (echo "$progname: Usage error:" 731 * ) (echo "$progname: Usage error:"
673 echo " " "The \`--$optname' option must have one of these values: 732 echo " " "The \`--$optname' option must have one of these values:
674 \`lucid', \`motif', \`athena', \`athena3d', or \`no'." 733 \`lucid', \`motif', \`athena', or \`no'."
675 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 734 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
676 esac 735 esac
677 eval "$opt=\"$val\"" 736 eval "$opt=\"$val\""
678 ;; 737 ;;
679 738
680 "run_in_place" | \ 739 "use_minimal_tagbits" | \
740 "use_indexed_lrecord_implementation" | \
741 "run_in_place" | \
742 "const_is_losing" | \
681 "with_gnu_make" ) 743 "with_gnu_make" )
682 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2 744 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
683 ;; 745 ;;
684 746
685 * ) (echo "$progname: Usage error:" 747 * ) (echo "$progname: Usage error:"
710 772
711 test -n "$with_x" && with_x11="$with_x" 773 test -n "$with_x" && with_x11="$with_x"
712 774
713 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then 775 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
714 test "$with_system_malloc" = "default" && with_system_malloc=yes 776 test "$with_system_malloc" = "default" && with_system_malloc=yes
715 fi
716
717 if test -n "$gung_ho"; then
718 test -z "$use_minimal_tagbits" && use_minimal_tagbits="$gung_ho"
719 test -z "$use_indexed_lrecord_implementation" && \
720 use_indexed_lrecord_implementation="$gung_ho"
721 fi
722 if test "$use_minimal_tagbits" = "no"; then
723 test "$with_dlmalloc" = "yes" && \
724 (echo "$progname: Usage error:"
725 echo " " "--with-dlmalloc requires --use-minimal-tagbits"
726 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
727 with_dlmalloc=no
728 fi 777 fi
729 778
730 779
731 780
732 if test "$with_cde $with_tooltalk" = "yes no"; then 781 if test "$with_cde $with_tooltalk" = "yes no"; then
781 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
782 fi 831 fi
783 fi 832 fi
784 833
785 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 834 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
786 echo "configure:787: checking whether ln -s works" >&5 835 echo "configure:836: checking whether ln -s works" >&5
787 836
788 rm -f conftestdata 837 rm -f conftestdata
789 if ln -s X conftestdata 2>/dev/null 838 if ln -s X conftestdata 2>/dev/null
790 then 839 then
791 rm -f conftestdata 840 rm -f conftestdata
799 else 848 else
800 echo "$ac_t""no" 1>&6 849 echo "$ac_t""no" 1>&6
801 fi 850 fi
802 851
803 852
804 for dir in lisp etc man info; do 853 for dir in lisp etc man info tests; do
805 if test ! -d "$dir" ; then 854 if test ! -d "$dir" ; then
806 echo Making symbolic link to "$srcdir/$dir" 855 echo Making symbolic link to "$srcdir/$dir"
807 ${LN_S} "$srcdir/$dir" "$dir" 856 ${LN_S} "$srcdir/$dir" "$dir"
808 fi 857 fi
809 done 858 done
846 vpath %.s $(srcdir)\ 895 vpath %.s $(srcdir)\
847 vpath %.in $(srcdir)' 896 vpath %.in $(srcdir)'
848 fi 897 fi
849 898
850 . "$srcdir/version.sh" || exit 1; 899 . "$srcdir/version.sh" || exit 1;
851 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi 900 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
852 : "${extra_verbose=$beta}" 901 : "${extra_verbose=$beta}"
853 version="${emacs_major_version}.${emacs_minor_version}" 902 version="${emacs_major_version}.${emacs_minor_version}"
854 { test "$extra_verbose" = "yes" && cat << EOF 903 { test "$extra_verbose" = "yes" && cat << EOF
855 Defining EMACS_MAJOR_VERSION = $emacs_major_version 904 Defining EMACS_MAJOR_VERSION = $emacs_major_version
856 EOF 905 EOF
865 cat >> confdefs.h <<EOF 914 cat >> confdefs.h <<EOF
866 #define EMACS_MINOR_VERSION $emacs_minor_version 915 #define EMACS_MINOR_VERSION $emacs_minor_version
867 EOF 916 EOF
868 } 917 }
869 918
870 if test -n "$emacs_beta_version"; then 919 if test -n "$emacs_beta_version" ; then
871 version="${version}-b${emacs_beta_version}" 920 if test "$beta" = "yes"; then
872 { test "$extra_verbose" = "yes" && cat << EOF 921 version="${version}-b${emacs_beta_version}"
922 { test "$extra_verbose" = "yes" && cat << EOF
873 Defining EMACS_BETA_VERSION = $emacs_beta_version 923 Defining EMACS_BETA_VERSION = $emacs_beta_version
874 EOF 924 EOF
875 cat >> confdefs.h <<EOF 925 cat >> confdefs.h <<EOF
876 #define EMACS_BETA_VERSION $emacs_beta_version 926 #define EMACS_BETA_VERSION $emacs_beta_version
877 EOF 927 EOF
878 } 928 }
879 929
930 else
931 version="${version}.${emacs_beta_version}"
932 { test "$extra_verbose" = "yes" && cat << EOF
933 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
934 EOF
935 cat >> confdefs.h <<EOF
936 #define EMACS_PATCH_LEVEL $emacs_beta_version
937 EOF
938 }
939
940 fi
880 fi 941 fi
881 { test "$extra_verbose" = "yes" && cat << EOF 942 { test "$extra_verbose" = "yes" && cat << EOF
882 Defining XEMACS_CODENAME = "$xemacs_codename" 943 Defining XEMACS_CODENAME = "$xemacs_codename"
883 EOF 944 EOF
884 cat >> confdefs.h <<EOF 945 cat >> confdefs.h <<EOF
894 EOF 955 EOF
895 } 956 }
896 957
897 958
898 if test "$with_infodock" = "yes"; then 959 if test "$with_infodock" = "yes"; then
899 if test ! -f ../ID-INSTALL; then 960 if test ! -f ../../ID-INSTALL; then
900 echo "Cannot build InfoDock without InfoDock sources" 961 echo "Cannot build InfoDock without InfoDock sources"
901 with_infodock=no 962 with_infodock=no
902 fi 963 fi
903 fi 964 fi
904 965
932 CPPFLAGS="$CPPFLAGS -DINFODOCK" 993 CPPFLAGS="$CPPFLAGS -DINFODOCK"
933 else 994 else
934 PROGNAME=xemacs 995 PROGNAME=xemacs
935 fi 996 fi
936 997
937 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi 998 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
938 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF 999 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
939 Defining ERROR_CHECK_EXTENTS 1000 Defining ERROR_CHECK_EXTENTS
940 EOF 1001 EOF
941 cat >> confdefs.h <<\EOF 1002 cat >> confdefs.h <<\EOF
942 #define ERROR_CHECK_EXTENTS 1 1003 #define ERROR_CHECK_EXTENTS 1
970 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF 1031 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
971 Defining ERROR_CHECK_MALLOC 1032 Defining ERROR_CHECK_MALLOC
972 EOF 1033 EOF
973 cat >> confdefs.h <<\EOF 1034 cat >> confdefs.h <<\EOF
974 #define ERROR_CHECK_MALLOC 1 1035 #define ERROR_CHECK_MALLOC 1
1036 EOF
1037 }
1038
1039 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
1040 Defining ERROR_CHECK_BYTE_CODE
1041 EOF
1042 cat >> confdefs.h <<\EOF
1043 #define ERROR_CHECK_BYTE_CODE 1
975 EOF 1044 EOF
976 } 1045 }
977 1046
978 if test "${debug:=$beta}" = "yes"; then 1047 if test "${debug:=$beta}" = "yes"; then
979 use_assertions=yes memory_usage_stats=yes 1048 use_assertions=yes memory_usage_stats=yes
980 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then 1049 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
981 echo " xemacs will be linked with \"debug.o\"" 1050 echo " xemacs will be linked with \"debug.o\""
982 fi 1051 fi
1052 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1053 echo " xemacs will be linked with \"tests.o\""
1054 fi
983 { test "$extra_verbose" = "yes" && cat << \EOF 1055 { test "$extra_verbose" = "yes" && cat << \EOF
984 Defining DEBUG_XEMACS 1056 Defining DEBUG_XEMACS
985 EOF 1057 EOF
986 cat >> confdefs.h <<\EOF 1058 cat >> confdefs.h <<\EOF
987 #define DEBUG_XEMACS 1 1059 #define DEBUG_XEMACS 1
1006 } 1078 }
1007 1079
1008 1080
1009 1081
1010 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 1082 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1011 echo "configure:1012: checking "host system type"" >&5 1083 echo "configure:1084: checking "host system type"" >&5
1012 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1084 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1013 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 1085 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1014 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1086 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1015 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1087 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1016 echo "$ac_t""$configuration" 1>&6 1088 echo "$ac_t""$configuration" 1>&6
1024 case "$canonical" in 1096 case "$canonical" in
1025 sparc-*-* ) machine=sparc ;; 1097 sparc-*-* ) machine=sparc ;;
1026 alpha*-*-* ) machine=alpha ;; 1098 alpha*-*-* ) machine=alpha ;;
1027 vax-*-* ) machine=vax ;; 1099 vax-*-* ) machine=vax ;;
1028 mips-dec-* ) machine=pmax ;; 1100 mips-dec-* ) machine=pmax ;;
1101 mips-sgi-irix6* ) machine=iris6d ;;
1029 mips-sgi-* ) machine=iris4d ;; 1102 mips-sgi-* ) machine=iris4d ;;
1103 mips*-linux ) machine=mips ;;
1030 romp-ibm-* ) machine=ibmrt ;; 1104 romp-ibm-* ) machine=ibmrt ;;
1031 rs6000-ibm-aix* ) machine=ibmrs6000 ;; 1105 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1032 powerpc-ibm-aix* ) machine=ibmrs6000 ;; 1106 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1033 powerpc*-* ) machine=powerpc ;; 1107 powerpc*-* ) machine=powerpc ;;
1034 hppa-*-* ) machine=hp800 ;; 1108 hppa-*-* ) machine=hp800 ;;
1035 m88k-dg-* ) machine=aviion ;; 1109 m88k-dg-* ) machine=aviion ;;
1036 m68*-sony-* ) machine=news ;; 1110 m68*-sony-* ) machine=news ;;
1037 mips-sony-* ) machine=news-risc ;; 1111 mips-sony-* ) machine=news-risc ;;
1038 clipper-* ) machine=clipper ;; 1112 clipper-* ) machine=clipper ;;
1039 arm-* ) machine=arm ;; 1113 arm-* ) machine=arm ;;
1114 armv34lb-* ) machine=arm ;;
1040 ns32k-* ) machine=ns32000 ;; 1115 ns32k-* ) machine=ns32000 ;;
1041 esac 1116 esac
1042 1117
1043 case "$canonical" in 1118 case "$canonical" in
1044 *-*-linux* ) opsys=linux ;; 1119 *-*-linux* ) opsys=linux ;;
1389 if test "$dynamic" = "yes" ; then 1464 if test "$dynamic" = "yes" ; then
1390 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ; 1465 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1391 else 1466 else
1392 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; 1467 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1393 fi ;; 1468 fi ;;
1469 *-sysv5* ) opsys=sco7 ;;
1394 *-386bsd* ) opsys=386bsd ;; 1470 *-386bsd* ) opsys=386bsd ;;
1395 *-freebsd* ) opsys=freebsd ;; 1471 *-freebsd* ) opsys=freebsd ;;
1396 *-nextstep* ) opsys=nextstep ;; 1472 *-nextstep* ) opsys=nextstep ;;
1397 *-pc-cygwin32 ) opsys=cygwin32 ;; 1473 *-pc-cygwin* ) opsys=cygwin32 ;;
1474 *-pc-mingw* ) opsys=mingw32 ;
1475 test -z "$with_tty" && with_tty="no";;
1398 esac 1476 esac
1399 ;; 1477 ;;
1400 1478
1401 m68k-*-linux* ) machine=m68k opsys=linux ;; 1479 m68k-*-linux* ) machine=m68k opsys=linux ;;
1402 1480
1496 xe_save_CFLAGS="$CFLAGS" 1574 xe_save_CFLAGS="$CFLAGS"
1497 1575
1498 # Extract the first word of "gcc", so it can be a program name with args. 1576 # Extract the first word of "gcc", so it can be a program name with args.
1499 set dummy gcc; ac_word=$2 1577 set dummy gcc; ac_word=$2
1500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1501 echo "configure:1502: checking for $ac_word" >&5 1579 echo "configure:1580: checking for $ac_word" >&5
1502 1580
1503 if test -n "$CC"; then 1581 if test -n "$CC"; then
1504 ac_cv_prog_CC="$CC" # Let the user override the test. 1582 ac_cv_prog_CC="$CC" # Let the user override the test.
1505 else 1583 else
1506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1523 1601
1524 if test -z "$CC"; then 1602 if test -z "$CC"; then
1525 # Extract the first word of "cc", so it can be a program name with args. 1603 # Extract the first word of "cc", so it can be a program name with args.
1526 set dummy cc; ac_word=$2 1604 set dummy cc; ac_word=$2
1527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1528 echo "configure:1529: checking for $ac_word" >&5 1606 echo "configure:1607: checking for $ac_word" >&5
1529 1607
1530 if test -n "$CC"; then 1608 if test -n "$CC"; then
1531 ac_cv_prog_CC="$CC" # Let the user override the test. 1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1532 else 1610 else
1533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1571 case "`uname -s`" in 1649 case "`uname -s`" in
1572 *win32* | *WIN32*) 1650 *win32* | *WIN32*)
1573 # Extract the first word of "cl", so it can be a program name with args. 1651 # Extract the first word of "cl", so it can be a program name with args.
1574 set dummy cl; ac_word=$2 1652 set dummy cl; ac_word=$2
1575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1576 echo "configure:1577: checking for $ac_word" >&5 1654 echo "configure:1655: checking for $ac_word" >&5
1577 1655
1578 if test -n "$CC"; then 1656 if test -n "$CC"; then
1579 ac_cv_prog_CC="$CC" # Let the user override the test. 1657 ac_cv_prog_CC="$CC" # Let the user override the test.
1580 else 1658 else
1581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1600 fi 1678 fi
1601 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1679 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1602 fi 1680 fi
1603 1681
1604 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1682 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1605 echo "configure:1606: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1683 echo "configure:1684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1606 1684
1607 ac_ext=c 1685 ac_ext=c
1608 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1686 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1609 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1687 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1610 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1688 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1613 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1691 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1614 cross_compiling=no 1692 cross_compiling=no
1615 1693
1616 cat > conftest.$ac_ext << EOF 1694 cat > conftest.$ac_ext << EOF
1617 1695
1618 #line 1619 "configure" 1696 #line 1697 "configure"
1619 #include "confdefs.h" 1697 #include "confdefs.h"
1620 1698
1621 main(){return(0);} 1699 main(){return(0);}
1622 EOF 1700 EOF
1623 if { (eval echo configure:1624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1624 ac_cv_prog_cc_works=yes 1702 ac_cv_prog_cc_works=yes
1625 # If we can't run a trivial program, we are probably using a cross compiler. 1703 # If we can't run a trivial program, we are probably using a cross compiler.
1626 if (./conftest; exit) 2>/dev/null; then 1704 if (./conftest; exit) 2>/dev/null; then
1627 ac_cv_prog_cc_cross=no 1705 ac_cv_prog_cc_cross=no
1628 else 1706 else
1646 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1724 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1647 if test $ac_cv_prog_cc_works = no; then 1725 if test $ac_cv_prog_cc_works = no; then
1648 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1726 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1649 fi 1727 fi
1650 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1651 echo "configure:1652: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1729 echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1652 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1730 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1653 cross_compiling=$ac_cv_prog_cc_cross 1731 cross_compiling=$ac_cv_prog_cc_cross
1654 1732
1655 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1733 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1656 echo "configure:1657: checking whether we are using GNU C" >&5 1734 echo "configure:1735: checking whether we are using GNU C" >&5
1657 1735
1658 cat > conftest.c <<EOF 1736 cat > conftest.c <<EOF
1659 #ifdef __GNUC__ 1737 #ifdef __GNUC__
1660 yes; 1738 yes;
1661 #endif 1739 #endif
1662 EOF 1740 EOF
1663 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1741 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1664 ac_cv_prog_gcc=yes 1742 ac_cv_prog_gcc=yes
1665 else 1743 else
1666 ac_cv_prog_gcc=no 1744 ac_cv_prog_gcc=no
1667 fi 1745 fi
1668 1746
1676 1754
1677 ac_test_CFLAGS="${CFLAGS+set}" 1755 ac_test_CFLAGS="${CFLAGS+set}"
1678 ac_save_CFLAGS="$CFLAGS" 1756 ac_save_CFLAGS="$CFLAGS"
1679 CFLAGS= 1757 CFLAGS=
1680 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1758 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1681 echo "configure:1682: checking whether ${CC-cc} accepts -g" >&5 1759 echo "configure:1760: checking whether ${CC-cc} accepts -g" >&5
1682 1760
1683 echo 'void f(){}' > conftest.c 1761 echo 'void f(){}' > conftest.c
1684 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1762 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1685 ac_cv_prog_cc_g=yes 1763 ac_cv_prog_cc_g=yes
1686 else 1764 else
1709 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1787 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1710 CC=${NON_GNU_CC-cc} 1788 CC=${NON_GNU_CC-cc}
1711 # Extract the first word of "gcc", so it can be a program name with args. 1789 # Extract the first word of "gcc", so it can be a program name with args.
1712 set dummy gcc; ac_word=$2 1790 set dummy gcc; ac_word=$2
1713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1714 echo "configure:1715: checking for $ac_word" >&5 1792 echo "configure:1793: checking for $ac_word" >&5
1715 1793
1716 if test -n "$CC"; then 1794 if test -n "$CC"; then
1717 ac_cv_prog_CC="$CC" # Let the user override the test. 1795 ac_cv_prog_CC="$CC" # Let the user override the test.
1718 else 1796 else
1719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1736 1814
1737 if test -z "$CC"; then 1815 if test -z "$CC"; then
1738 # Extract the first word of "cc", so it can be a program name with args. 1816 # Extract the first word of "cc", so it can be a program name with args.
1739 set dummy cc; ac_word=$2 1817 set dummy cc; ac_word=$2
1740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1741 echo "configure:1742: checking for $ac_word" >&5 1819 echo "configure:1820: checking for $ac_word" >&5
1742 1820
1743 if test -n "$CC"; then 1821 if test -n "$CC"; then
1744 ac_cv_prog_CC="$CC" # Let the user override the test. 1822 ac_cv_prog_CC="$CC" # Let the user override the test.
1745 else 1823 else
1746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1784 case "`uname -s`" in 1862 case "`uname -s`" in
1785 *win32* | *WIN32*) 1863 *win32* | *WIN32*)
1786 # Extract the first word of "cl", so it can be a program name with args. 1864 # Extract the first word of "cl", so it can be a program name with args.
1787 set dummy cl; ac_word=$2 1865 set dummy cl; ac_word=$2
1788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1789 echo "configure:1790: checking for $ac_word" >&5 1867 echo "configure:1868: checking for $ac_word" >&5
1790 1868
1791 if test -n "$CC"; then 1869 if test -n "$CC"; then
1792 ac_cv_prog_CC="$CC" # Let the user override the test. 1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1793 else 1871 else
1794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1813 fi 1891 fi
1814 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1815 fi 1893 fi
1816 1894
1817 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1818 echo "configure:1819: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1896 echo "configure:1897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1819 1897
1820 ac_ext=c 1898 ac_ext=c
1821 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1899 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1822 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1900 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1823 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1901 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1826 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1904 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1827 cross_compiling=no 1905 cross_compiling=no
1828 1906
1829 cat > conftest.$ac_ext << EOF 1907 cat > conftest.$ac_ext << EOF
1830 1908
1831 #line 1832 "configure" 1909 #line 1910 "configure"
1832 #include "confdefs.h" 1910 #include "confdefs.h"
1833 1911
1834 main(){return(0);} 1912 main(){return(0);}
1835 EOF 1913 EOF
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1914 if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1837 ac_cv_prog_cc_works=yes 1915 ac_cv_prog_cc_works=yes
1838 # If we can't run a trivial program, we are probably using a cross compiler. 1916 # If we can't run a trivial program, we are probably using a cross compiler.
1839 if (./conftest; exit) 2>/dev/null; then 1917 if (./conftest; exit) 2>/dev/null; then
1840 ac_cv_prog_cc_cross=no 1918 ac_cv_prog_cc_cross=no
1841 else 1919 else
1859 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1937 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1860 if test $ac_cv_prog_cc_works = no; then 1938 if test $ac_cv_prog_cc_works = no; then
1861 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1939 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1862 fi 1940 fi
1863 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1941 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1864 echo "configure:1865: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1942 echo "configure:1943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1865 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1943 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1866 cross_compiling=$ac_cv_prog_cc_cross 1944 cross_compiling=$ac_cv_prog_cc_cross
1867 1945
1868 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1946 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1869 echo "configure:1870: checking whether we are using GNU C" >&5 1947 echo "configure:1948: checking whether we are using GNU C" >&5
1870 1948
1871 cat > conftest.c <<EOF 1949 cat > conftest.c <<EOF
1872 #ifdef __GNUC__ 1950 #ifdef __GNUC__
1873 yes; 1951 yes;
1874 #endif 1952 #endif
1875 EOF 1953 EOF
1876 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1954 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1877 ac_cv_prog_gcc=yes 1955 ac_cv_prog_gcc=yes
1878 else 1956 else
1879 ac_cv_prog_gcc=no 1957 ac_cv_prog_gcc=no
1880 fi 1958 fi
1881 1959
1889 1967
1890 ac_test_CFLAGS="${CFLAGS+set}" 1968 ac_test_CFLAGS="${CFLAGS+set}"
1891 ac_save_CFLAGS="$CFLAGS" 1969 ac_save_CFLAGS="$CFLAGS"
1892 CFLAGS= 1970 CFLAGS=
1893 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1971 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1894 echo "configure:1895: checking whether ${CC-cc} accepts -g" >&5 1972 echo "configure:1973: checking whether ${CC-cc} accepts -g" >&5
1895 1973
1896 echo 'void f(){}' > conftest.c 1974 echo 'void f(){}' > conftest.c
1897 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1975 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1898 ac_cv_prog_cc_g=yes 1976 ac_cv_prog_cc_g=yes
1899 else 1977 else
1922 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 2000 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1923 CC=gcc 2001 CC=gcc
1924 # Extract the first word of "gcc", so it can be a program name with args. 2002 # Extract the first word of "gcc", so it can be a program name with args.
1925 set dummy gcc; ac_word=$2 2003 set dummy gcc; ac_word=$2
1926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1927 echo "configure:1928: checking for $ac_word" >&5 2005 echo "configure:2006: checking for $ac_word" >&5
1928 2006
1929 if test -n "$CC"; then 2007 if test -n "$CC"; then
1930 ac_cv_prog_CC="$CC" # Let the user override the test. 2008 ac_cv_prog_CC="$CC" # Let the user override the test.
1931 else 2009 else
1932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1949 2027
1950 if test -z "$CC"; then 2028 if test -z "$CC"; then
1951 # Extract the first word of "cc", so it can be a program name with args. 2029 # Extract the first word of "cc", so it can be a program name with args.
1952 set dummy cc; ac_word=$2 2030 set dummy cc; ac_word=$2
1953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1954 echo "configure:1955: checking for $ac_word" >&5 2032 echo "configure:2033: checking for $ac_word" >&5
1955 2033
1956 if test -n "$CC"; then 2034 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test. 2035 ac_cv_prog_CC="$CC" # Let the user override the test.
1958 else 2036 else
1959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1997 case "`uname -s`" in 2075 case "`uname -s`" in
1998 *win32* | *WIN32*) 2076 *win32* | *WIN32*)
1999 # Extract the first word of "cl", so it can be a program name with args. 2077 # Extract the first word of "cl", so it can be a program name with args.
2000 set dummy cl; ac_word=$2 2078 set dummy cl; ac_word=$2
2001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2002 echo "configure:2003: checking for $ac_word" >&5 2080 echo "configure:2081: checking for $ac_word" >&5
2003 2081
2004 if test -n "$CC"; then 2082 if test -n "$CC"; then
2005 ac_cv_prog_CC="$CC" # Let the user override the test. 2083 ac_cv_prog_CC="$CC" # Let the user override the test.
2006 else 2084 else
2007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2026 fi 2104 fi
2027 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2105 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2028 fi 2106 fi
2029 2107
2030 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2108 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2031 echo "configure:2032: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2109 echo "configure:2110: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2032 2110
2033 ac_ext=c 2111 ac_ext=c
2034 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2112 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2035 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2113 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2036 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2114 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2039 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2117 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2040 cross_compiling=no 2118 cross_compiling=no
2041 2119
2042 cat > conftest.$ac_ext << EOF 2120 cat > conftest.$ac_ext << EOF
2043 2121
2044 #line 2045 "configure" 2122 #line 2123 "configure"
2045 #include "confdefs.h" 2123 #include "confdefs.h"
2046 2124
2047 main(){return(0);} 2125 main(){return(0);}
2048 EOF 2126 EOF
2049 if { (eval echo configure:2050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2127 if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2050 ac_cv_prog_cc_works=yes 2128 ac_cv_prog_cc_works=yes
2051 # If we can't run a trivial program, we are probably using a cross compiler. 2129 # If we can't run a trivial program, we are probably using a cross compiler.
2052 if (./conftest; exit) 2>/dev/null; then 2130 if (./conftest; exit) 2>/dev/null; then
2053 ac_cv_prog_cc_cross=no 2131 ac_cv_prog_cc_cross=no
2054 else 2132 else
2072 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2150 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2073 if test $ac_cv_prog_cc_works = no; then 2151 if test $ac_cv_prog_cc_works = no; then
2074 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2152 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2075 fi 2153 fi
2076 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2077 echo "configure:2078: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2155 echo "configure:2156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2078 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2156 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2079 cross_compiling=$ac_cv_prog_cc_cross 2157 cross_compiling=$ac_cv_prog_cc_cross
2080 2158
2081 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2159 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2082 echo "configure:2083: checking whether we are using GNU C" >&5 2160 echo "configure:2161: checking whether we are using GNU C" >&5
2083 2161
2084 cat > conftest.c <<EOF 2162 cat > conftest.c <<EOF
2085 #ifdef __GNUC__ 2163 #ifdef __GNUC__
2086 yes; 2164 yes;
2087 #endif 2165 #endif
2088 EOF 2166 EOF
2089 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2167 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2090 ac_cv_prog_gcc=yes 2168 ac_cv_prog_gcc=yes
2091 else 2169 else
2092 ac_cv_prog_gcc=no 2170 ac_cv_prog_gcc=no
2093 fi 2171 fi
2094 2172
2102 2180
2103 ac_test_CFLAGS="${CFLAGS+set}" 2181 ac_test_CFLAGS="${CFLAGS+set}"
2104 ac_save_CFLAGS="$CFLAGS" 2182 ac_save_CFLAGS="$CFLAGS"
2105 CFLAGS= 2183 CFLAGS=
2106 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2184 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2107 echo "configure:2108: checking whether ${CC-cc} accepts -g" >&5 2185 echo "configure:2186: checking whether ${CC-cc} accepts -g" >&5
2108 2186
2109 echo 'void f(){}' > conftest.c 2187 echo 'void f(){}' > conftest.c
2110 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2188 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2111 ac_cv_prog_cc_g=yes 2189 ac_cv_prog_cc_g=yes
2112 else 2190 else
2139 test -n "$CPP" -a -d "$CPP" && CPP= 2217 test -n "$CPP" -a -d "$CPP" && CPP=
2140 2218
2141 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2219 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2142 2220
2143 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2221 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2144 echo "configure:2145: checking how to run the C preprocessor" >&5 2222 echo "configure:2223: checking how to run the C preprocessor" >&5
2145 # On Suns, sometimes $CPP names a directory. 2223 # On Suns, sometimes $CPP names a directory.
2146 if test -n "$CPP" && test -d "$CPP"; then 2224 if test -n "$CPP" && test -d "$CPP"; then
2147 CPP= 2225 CPP=
2148 fi 2226 fi
2149 if test -z "$CPP"; then 2227 if test -z "$CPP"; then
2152 # substituted into the Makefile and "${CC-cc}" will confuse make. 2230 # substituted into the Makefile and "${CC-cc}" will confuse make.
2153 CPP="${CC-cc} -E" 2231 CPP="${CC-cc} -E"
2154 # On the NeXT, cc -E runs the code through the compiler's parser, 2232 # On the NeXT, cc -E runs the code through the compiler's parser,
2155 # not just through cpp. 2233 # not just through cpp.
2156 cat > conftest.$ac_ext <<EOF 2234 cat > conftest.$ac_ext <<EOF
2157 #line 2158 "configure" 2235 #line 2236 "configure"
2158 #include "confdefs.h" 2236 #include "confdefs.h"
2159 #include <assert.h> 2237 #include <assert.h>
2160 Syntax Error 2238 Syntax Error
2161 EOF 2239 EOF
2162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2163 { (eval echo configure:2164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2241 { (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2165 if test -z "$ac_err"; then 2243 if test -z "$ac_err"; then
2166 : 2244 :
2167 else 2245 else
2168 echo "$ac_err" >&5 2246 echo "$ac_err" >&5
2169 echo "configure: failed program was:" >&5 2247 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5 2248 cat conftest.$ac_ext >&5
2171 rm -rf conftest* 2249 rm -rf conftest*
2172 CPP="${CC-cc} -E -traditional-cpp" 2250 CPP="${CC-cc} -E -traditional-cpp"
2173 cat > conftest.$ac_ext <<EOF 2251 cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure" 2252 #line 2253 "configure"
2175 #include "confdefs.h" 2253 #include "confdefs.h"
2176 #include <assert.h> 2254 #include <assert.h>
2177 Syntax Error 2255 Syntax Error
2178 EOF 2256 EOF
2179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2180 { (eval echo configure:2181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2258 { (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2182 if test -z "$ac_err"; then 2260 if test -z "$ac_err"; then
2183 : 2261 :
2184 else 2262 else
2185 echo "$ac_err" >&5 2263 echo "$ac_err" >&5
2186 echo "configure: failed program was:" >&5 2264 echo "configure: failed program was:" >&5
2187 cat conftest.$ac_ext >&5 2265 cat conftest.$ac_ext >&5
2188 rm -rf conftest* 2266 rm -rf conftest*
2189 CPP="${CC-cc} -nologo -E" 2267 CPP="${CC-cc} -nologo -E"
2190 cat > conftest.$ac_ext <<EOF 2268 cat > conftest.$ac_ext <<EOF
2191 #line 2192 "configure" 2269 #line 2270 "configure"
2192 #include "confdefs.h" 2270 #include "confdefs.h"
2193 #include <assert.h> 2271 #include <assert.h>
2194 Syntax Error 2272 Syntax Error
2195 EOF 2273 EOF
2196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2197 { (eval echo configure:2198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2275 { (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2199 if test -z "$ac_err"; then 2277 if test -z "$ac_err"; then
2200 : 2278 :
2201 else 2279 else
2202 echo "$ac_err" >&5 2280 echo "$ac_err" >&5
2216 ac_cv_prog_CPP="$CPP" 2294 ac_cv_prog_CPP="$CPP"
2217 fi 2295 fi
2218 echo "$ac_t""$CPP" 1>&6 2296 echo "$ac_t""$CPP" 1>&6
2219 2297
2220 2298
2299
2300
2221 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2301 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2222 echo "configure:2223: checking for AIX" >&5 2302 echo "configure:2303: checking for AIX" >&5
2223 cat > conftest.$ac_ext <<EOF 2303 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure" 2304 #line 2305 "configure"
2225 #include "confdefs.h" 2305 #include "confdefs.h"
2226 #ifdef _AIX 2306 #ifdef _AIX
2227 yes 2307 yes
2228 #endif 2308 #endif
2229 2309
2243 rm -rf conftest* 2323 rm -rf conftest*
2244 echo "$ac_t""no" 1>&6 2324 echo "$ac_t""no" 1>&6
2245 fi 2325 fi
2246 rm -f conftest* 2326 rm -f conftest*
2247 2327
2248 2328
2249
2250 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2329 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2251 echo "configure:2252: checking for GNU libc" >&5 2330 echo "configure:2331: checking for GNU libc" >&5
2252 cat > conftest.$ac_ext <<EOF 2331 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure" 2332 #line 2333 "configure"
2254 #include "confdefs.h" 2333 #include "confdefs.h"
2255 #include <features.h> 2334 #include <features.h>
2256 int main() { 2335 int main() {
2257 2336
2258 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2337 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2260 ******* ======= ******** &&&&&&&& 2339 ******* ======= ******** &&&&&&&&
2261 #endif 2340 #endif
2262 2341
2263 ; return 0; } 2342 ; return 0; }
2264 EOF 2343 EOF
2265 if { (eval echo configure:2266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2344 if { (eval echo configure:2345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2266 rm -rf conftest* 2345 rm -rf conftest*
2267 have_glibc=yes 2346 have_glibc=yes
2268 else 2347 else
2269 echo "configure: failed program was:" >&5 2348 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5 2349 cat conftest.$ac_ext >&5
2280 #define _GNU_SOURCE 1 2359 #define _GNU_SOURCE 1
2281 EOF 2360 EOF
2282 } 2361 }
2283 2362
2284 2363
2285 2364 case "$opsys" in
2286 cat > conftest.$ac_ext <<EOF 2365 sol2)
2287 #line 2288 "configure" 2366 { test "$extra_verbose" = "yes" && cat << \EOF
2367 Defining __EXTENSIONS__
2368 EOF
2369 cat >> confdefs.h <<\EOF
2370 #define __EXTENSIONS__ 1
2371 EOF
2372 }
2373
2374 if test "$os_release" -ge 55; then
2375 { test "$extra_verbose" = "yes" && cat << \EOF
2376 Defining _XOPEN_SOURCE = 500
2377 EOF
2378 cat >> confdefs.h <<\EOF
2379 #define _XOPEN_SOURCE 500
2380 EOF
2381 }
2382
2383 { test "$extra_verbose" = "yes" && cat << \EOF
2384 Defining _XOPEN_SOURCE_EXTENDED
2385 EOF
2386 cat >> confdefs.h <<\EOF
2387 #define _XOPEN_SOURCE_EXTENDED 1
2388 EOF
2389 }
2390
2391 fi ;;
2392 linux)
2393 { test "$extra_verbose" = "yes" && cat << \EOF
2394 Defining _POSIX_C_SOURCE = 199506L
2395 EOF
2396 cat >> confdefs.h <<\EOF
2397 #define _POSIX_C_SOURCE 199506L
2398 EOF
2399 }
2400
2401 { test "$extra_verbose" = "yes" && cat << \EOF
2402 Defining _XOPEN_SOURCE = 500
2403 EOF
2404 cat >> confdefs.h <<\EOF
2405 #define _XOPEN_SOURCE 500
2406 EOF
2407 }
2408
2409 { test "$extra_verbose" = "yes" && cat << \EOF
2410 Defining _XOPEN_SOURCE_EXTENDED
2411 EOF
2412 cat >> confdefs.h <<\EOF
2413 #define _XOPEN_SOURCE_EXTENDED 1
2414 EOF
2415 }
2416
2417 ;;
2418 esac
2419
2420 cat > conftest.$ac_ext <<EOF
2421 #line 2422 "configure"
2288 #include "confdefs.h" 2422 #include "confdefs.h"
2289 int main () { 2423 int main () {
2290 #if defined __SUNPRO_C 2424 #if defined __SUNPRO_C
2291 return 11; 2425 return 11;
2292 #elif defined __DECC 2426 #elif defined __DECC
2294 #else 2428 #else
2295 return 0; 2429 return 0;
2296 #endif 2430 #endif
2297 } 2431 }
2298 EOF 2432 EOF
2299 if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2433 if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2300 then 2434 then
2301 : 2435 :
2302 else 2436 else
2303 conftest_rc="$?" 2437 conftest_rc="$?"
2304 echo "configure: failed program was:" >&5 2438 echo "configure: failed program was:" >&5
2467 configure___ mail_use_lockf=yes 2601 configure___ mail_use_lockf=yes
2468 #else 2602 #else
2469 configure___ mail_use_lockf=no 2603 configure___ mail_use_lockf=no
2470 #endif 2604 #endif
2471 2605
2606 #ifdef MAIL_USE_LOCKING
2607 configure___ mail_use_locking=yes
2608 #else
2609 configure___ mail_use_locking=no
2610 #endif
2611
2612 #ifdef HAVE_WIN32_PROCESSES
2613 configure___ win32_processes=yes
2614 #else
2615 configure___ win32_processes=no
2616 #endif
2617
2472 EOF 2618 EOF
2473 2619
2474 CPP=`eval "echo $CPP $CPPFLAGS"` 2620 CPP=`eval "echo $CPP $CPPFLAGS"`
2475 eval `$CPP -Isrc $tempcname \ 2621 eval `$CPP -Isrc $tempcname \
2476 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"` 2622 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2478 rm $tempcname 2624 rm $tempcname
2479 2625
2480 test "$extra_verbose" = "yes" && \ 2626 test "$extra_verbose" = "yes" && \
2481 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo "" 2627 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
2482 2628
2629 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ;
2630 mingw_include=`eval "dirname $mingw_include"` ;
2631 mingw_include="-I$mingw_include/../include/mingw32" ;
2632 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;;
2633 esac
2634
2483 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" 2635 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2484 2636
2485 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi 2637 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2486 2638
2487 if test "$cflags_specified" = "no"; then 2639 if test "$cflags_specified" = "no"; then
2488 if test "$GCC" = "yes"; then 2640 if test "$GCC" = "yes"; then
2489 CFLAGS="-g -O3 -Wall -Wno-switch" 2641 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
2490 elif test "$__SUNPRO_C" = "yes"; then 2642 elif test "$__SUNPRO_C" = "yes"; then
2491 case "$opsys" in 2643 case "$opsys" in
2492 sol2 ) CFLAGS="-v -xO4" ;; 2644 sol2 ) CFLAGS="-v -xO4" ;;
2493 sunos4* ) CFLAGS="-xO2";; 2645 sunos4* ) CFLAGS="-xO2";;
2494 esac 2646 esac
2495 elif test "$__DECC" = "yes"; then 2647 elif test "$__DECC" = "yes"; then
2562 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2714 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2563 echo " xemacs will be linked with \"$unexec\"" 2715 echo " xemacs will be linked with \"$unexec\""
2564 fi 2716 fi
2565 2717
2566 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2718 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2567 echo "configure:2568: checking for dynodump" >&5 2719 echo "configure:2720: checking for dynodump" >&5
2568 if test "$unexec" != "unexsol2.o"; then 2720 if test "$unexec" != "unexsol2.o"; then
2569 echo "$ac_t""no" 1>&6 2721 echo "$ac_t""no" 1>&6
2570 else 2722 else
2571 echo "$ac_t""yes" 1>&6 2723 echo "$ac_t""yes" 1>&6
2572 { test "$extra_verbose" = "yes" && cat << \EOF 2724 { test "$extra_verbose" = "yes" && cat << \EOF
2600 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2752 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2601 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2753 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2602 done 2754 done
2603 2755
2604 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2756 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2605 echo "configure:2606: checking for terminateAndUnload in -lC" >&5 2757 echo "configure:2758: checking for terminateAndUnload in -lC" >&5
2606 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2758 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2607 2759
2608 xe_check_libs=" -lC " 2760 xe_check_libs=" -lC "
2609 cat > conftest.$ac_ext <<EOF 2761 cat > conftest.$ac_ext <<EOF
2610 #line 2611 "configure" 2762 #line 2763 "configure"
2611 #include "confdefs.h" 2763 #include "confdefs.h"
2612 /* Override any gcc2 internal prototype to avoid an error. */ 2764 /* Override any gcc2 internal prototype to avoid an error. */
2613 /* We use char because int might match the return type of a gcc2 2765 /* We use char because int might match the return type of a gcc2
2614 builtin and then its argument prototype would still apply. */ 2766 builtin and then its argument prototype would still apply. */
2615 char terminateAndUnload(); 2767 char terminateAndUnload();
2616 2768
2617 int main() { 2769 int main() {
2618 terminateAndUnload() 2770 terminateAndUnload()
2619 ; return 0; } 2771 ; return 0; }
2620 EOF 2772 EOF
2621 if { (eval echo configure:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2773 if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2622 rm -rf conftest* 2774 rm -rf conftest*
2623 eval "ac_cv_lib_$ac_lib_var=yes" 2775 eval "ac_cv_lib_$ac_lib_var=yes"
2624 else 2776 else
2625 echo "configure: failed program was:" >&5 2777 echo "configure: failed program was:" >&5
2626 cat conftest.$ac_ext >&5 2778 cat conftest.$ac_ext >&5
2683 fi 2835 fi
2684 2836
2685 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac 2837 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2686 if test -n "$site_prefixes"; then 2838 if test -n "$site_prefixes"; then
2687 for dir in $site_prefixes; do 2839 for dir in $site_prefixes; do
2840 lib_dir="${dir}/lib"
2688 inc_dir="${dir}/include" 2841 inc_dir="${dir}/include"
2689 lib_dir="${dir}/lib"
2690 if test ! -d "$dir"; then 2842 if test ! -d "$dir"; then
2691 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; } 2843 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
2692 elif test ! -d "$inc_dir"; then
2693 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$inc_dir'" >&2; exit 1; }
2694 elif test ! -d "$lib_dir"; then 2844 elif test ! -d "$lib_dir"; then
2695 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; } 2845 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
2696 else 2846 else
2697 c_switch_site="$c_switch_site "-I$inc_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-I$inc_dir"\" to \$c_switch_site"; fi 2847 if test -d "$inc_dir"; then
2848 c_switch_site="$c_switch_site "-I$inc_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-I$inc_dir"\" to \$c_switch_site"; fi
2849 fi
2698 ld_switch_site="$ld_switch_site "-L$lib_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-L$lib_dir"\" to \$ld_switch_site"; fi 2850 ld_switch_site="$ld_switch_site "-L$lib_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-L$lib_dir"\" to \$ld_switch_site"; fi
2699 fi 2851 fi
2700 done 2852 done
2701 fi 2853 fi
2702 2854
2703 2855
2704 for dir in "/usr/ccs/lib"; do 2856 for dir in "/usr/ccs/lib"; do
2705 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi 2857 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi
2706 done 2858 done
2707 2859
2708 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac 2860 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2709 if test -n "$site_runtime_libraries"; then 2861 if test -n "$site_runtime_libraries"; then
2710 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`" 2862 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2711 export LD_RUN_PATH 2863 export LD_RUN_PATH
2712 fi 2864 fi
2713 2865
2714 2866
2715 if test "$dynamic" = "no"; then add_runtime_path=no 2867
2868
2869
2870 if test -n "$add_runtime_path"; then :;
2871 elif test "$dynamic" = "no"; then add_runtime_path=no
2716 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes 2872 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2717 else case "$opsys" in 2873 else case "$opsys" in
2718 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;; 2874 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2719 * ) add_runtime_path=no ;; 2875 * ) add_runtime_path=no ;;
2720 esac 2876 esac
2721 fi 2877 fi
2722 2878
2723 if test "$add_runtime_path" = "yes"; then 2879 if test "$add_runtime_path" = "yes"; then
2724 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2880 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2725 echo "configure:2726: checking "for runtime libraries flag"" >&5 2881 echo "configure:2882: checking "for runtime libraries flag"" >&5
2726 case "$opsys" in 2882 case "$opsys" in
2727 sol2 ) dash_r="-R" ;; 2883 sol2 ) dash_r="-R" ;;
2728 decosf* | linux* | irix*) dash_r="-rpath " ;; 2884 decosf* | linux* | irix*) dash_r="-rpath " ;;
2729 *) 2885 *)
2730 dash_r="" 2886 dash_r=""
2742 esac 2898 esac
2743 shift 2899 shift
2744 done 2900 done
2745 fi 2901 fi
2746 cat > conftest.$ac_ext <<EOF 2902 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure" 2903 #line 2904 "configure"
2748 #include "confdefs.h" 2904 #include "confdefs.h"
2749 2905
2750 int main() { 2906 int main() {
2751 2907
2752 ; return 0; } 2908 ; return 0; }
2753 EOF 2909 EOF
2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2910 if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2755 rm -rf conftest* 2911 rm -rf conftest*
2756 dash_r="$try_dash_r" 2912 dash_r="$try_dash_r"
2757 else 2913 else
2758 echo "configure: failed program was:" >&5 2914 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5 2915 cat conftest.$ac_ext >&5
2851 else 3007 else
2852 doug_lea_malloc=no 3008 doug_lea_malloc=no
2853 fi 3009 fi
2854 after_morecore_hook_exists=yes 3010 after_morecore_hook_exists=yes
2855 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3011 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2856 echo "configure:2857: checking for malloc_get_state" >&5 3012 echo "configure:3013: checking for malloc_get_state" >&5
2857 3013
2858 cat > conftest.$ac_ext <<EOF 3014 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure" 3015 #line 3016 "configure"
2860 #include "confdefs.h" 3016 #include "confdefs.h"
2861 /* System header to define __stub macros and hopefully few prototypes, 3017 /* System header to define __stub macros and hopefully few prototypes,
2862 which can conflict with char malloc_get_state(); below. */ 3018 which can conflict with char malloc_get_state(); below. */
2863 #include <assert.h> 3019 #include <assert.h>
2864 /* Override any gcc2 internal prototype to avoid an error. */ 3020 /* Override any gcc2 internal prototype to avoid an error. */
2877 malloc_get_state(); 3033 malloc_get_state();
2878 #endif 3034 #endif
2879 3035
2880 ; return 0; } 3036 ; return 0; }
2881 EOF 3037 EOF
2882 if { (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3038 if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2883 rm -rf conftest* 3039 rm -rf conftest*
2884 eval "ac_cv_func_malloc_get_state=yes" 3040 eval "ac_cv_func_malloc_get_state=yes"
2885 else 3041 else
2886 echo "configure: failed program was:" >&5 3042 echo "configure: failed program was:" >&5
2887 cat conftest.$ac_ext >&5 3043 cat conftest.$ac_ext >&5
2897 echo "$ac_t""no" 1>&6 3053 echo "$ac_t""no" 1>&6
2898 doug_lea_malloc=no 3054 doug_lea_malloc=no
2899 fi 3055 fi
2900 3056
2901 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3057 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2902 echo "configure:2903: checking for malloc_set_state" >&5 3058 echo "configure:3059: checking for malloc_set_state" >&5
2903 3059
2904 cat > conftest.$ac_ext <<EOF 3060 cat > conftest.$ac_ext <<EOF
2905 #line 2906 "configure" 3061 #line 3062 "configure"
2906 #include "confdefs.h" 3062 #include "confdefs.h"
2907 /* System header to define __stub macros and hopefully few prototypes, 3063 /* System header to define __stub macros and hopefully few prototypes,
2908 which can conflict with char malloc_set_state(); below. */ 3064 which can conflict with char malloc_set_state(); below. */
2909 #include <assert.h> 3065 #include <assert.h>
2910 /* Override any gcc2 internal prototype to avoid an error. */ 3066 /* Override any gcc2 internal prototype to avoid an error. */
2923 malloc_set_state(); 3079 malloc_set_state();
2924 #endif 3080 #endif
2925 3081
2926 ; return 0; } 3082 ; return 0; }
2927 EOF 3083 EOF
2928 if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2929 rm -rf conftest* 3085 rm -rf conftest*
2930 eval "ac_cv_func_malloc_set_state=yes" 3086 eval "ac_cv_func_malloc_set_state=yes"
2931 else 3087 else
2932 echo "configure: failed program was:" >&5 3088 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5 3089 cat conftest.$ac_ext >&5
2943 echo "$ac_t""no" 1>&6 3099 echo "$ac_t""no" 1>&6
2944 doug_lea_malloc=no 3100 doug_lea_malloc=no
2945 fi 3101 fi
2946 3102
2947 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3103 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2948 echo "configure:2949: checking whether __after_morecore_hook exists" >&5 3104 echo "configure:3105: checking whether __after_morecore_hook exists" >&5
2949 cat > conftest.$ac_ext <<EOF 3105 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure" 3106 #line 3107 "configure"
2951 #include "confdefs.h" 3107 #include "confdefs.h"
2952 extern void (* __after_morecore_hook)(); 3108 extern void (* __after_morecore_hook)();
2953 int main() { 3109 int main() {
2954 __after_morecore_hook = 0 3110 __after_morecore_hook = 0
2955 ; return 0; } 3111 ; return 0; }
2956 EOF 3112 EOF
2957 if { (eval echo configure:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3113 if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2958 rm -rf conftest* 3114 rm -rf conftest*
2959 echo "$ac_t""yes" 1>&6 3115 echo "$ac_t""yes" 1>&6
2960 else 3116 else
2961 echo "configure: failed program was:" >&5 3117 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5 3118 cat conftest.$ac_ext >&5
3011 3167
3012 3168
3013 # Extract the first word of "ranlib", so it can be a program name with args. 3169 # Extract the first word of "ranlib", so it can be a program name with args.
3014 set dummy ranlib; ac_word=$2 3170 set dummy ranlib; ac_word=$2
3015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3016 echo "configure:3017: checking for $ac_word" >&5 3172 echo "configure:3173: checking for $ac_word" >&5
3017 3173
3018 if test -n "$RANLIB"; then 3174 if test -n "$RANLIB"; then
3019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3020 else 3176 else
3021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3222 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3223 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3224 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3069 # ./install, which can be erroneously created by make from ./install.sh. 3225 # ./install, which can be erroneously created by make from ./install.sh.
3070 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3226 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3071 echo "configure:3072: checking for a BSD compatible install" >&5 3227 echo "configure:3228: checking for a BSD compatible install" >&5
3072 if test -z "$INSTALL"; then 3228 if test -z "$INSTALL"; then
3073 3229
3074 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3230 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3075 for ac_dir in $PATH; do 3231 for ac_dir in $PATH; do
3076 # Account for people who put trailing slashes in PATH elements. 3232 # Account for people who put trailing slashes in PATH elements.
3120 for ac_prog in 'bison -y' byacc 3276 for ac_prog in 'bison -y' byacc
3121 do 3277 do
3122 # Extract the first word of "$ac_prog", so it can be a program name with args. 3278 # Extract the first word of "$ac_prog", so it can be a program name with args.
3123 set dummy $ac_prog; ac_word=$2 3279 set dummy $ac_prog; ac_word=$2
3124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3125 echo "configure:3126: checking for $ac_word" >&5 3281 echo "configure:3282: checking for $ac_word" >&5
3126 3282
3127 if test -n "$YACC"; then 3283 if test -n "$YACC"; then
3128 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3284 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3129 else 3285 else
3130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3152 3308
3153 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 3309 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3154 do 3310 do
3155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3157 echo "configure:3158: checking for $ac_hdr" >&5 3313 echo "configure:3314: checking for $ac_hdr" >&5
3158 3314
3159 cat > conftest.$ac_ext <<EOF 3315 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure" 3316 #line 3317 "configure"
3161 #include "confdefs.h" 3317 #include "confdefs.h"
3162 #include <$ac_hdr> 3318 #include <$ac_hdr>
3163 EOF 3319 EOF
3164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3165 { (eval echo configure:3166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3321 { (eval echo configure:3322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3167 if test -z "$ac_err"; then 3323 if test -z "$ac_err"; then
3168 rm -rf conftest* 3324 rm -rf conftest*
3169 eval "ac_cv_header_$ac_safe=yes" 3325 eval "ac_cv_header_$ac_safe=yes"
3170 else 3326 else
3193 3349
3194 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h 3350 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3195 do 3351 do
3196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3198 echo "configure:3199: checking for $ac_hdr" >&5 3354 echo "configure:3355: checking for $ac_hdr" >&5
3199 3355
3200 cat > conftest.$ac_ext <<EOF 3356 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure" 3357 #line 3358 "configure"
3202 #include "confdefs.h" 3358 #include "confdefs.h"
3203 #include <$ac_hdr> 3359 #include <$ac_hdr>
3204 EOF 3360 EOF
3205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3206 { (eval echo configure:3207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3362 { (eval echo configure:3363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3208 if test -z "$ac_err"; then 3364 if test -z "$ac_err"; then
3209 rm -rf conftest* 3365 rm -rf conftest*
3210 eval "ac_cv_header_$ac_safe=yes" 3366 eval "ac_cv_header_$ac_safe=yes"
3211 else 3367 else
3234 3390
3235 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 3391 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3236 do 3392 do
3237 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3239 echo "configure:3240: checking for $ac_hdr" >&5 3395 echo "configure:3396: checking for $ac_hdr" >&5
3240 3396
3241 cat > conftest.$ac_ext <<EOF 3397 cat > conftest.$ac_ext <<EOF
3242 #line 3243 "configure" 3398 #line 3399 "configure"
3243 #include "confdefs.h" 3399 #include "confdefs.h"
3244 #include <$ac_hdr> 3400 #include <$ac_hdr>
3245 EOF 3401 EOF
3246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3247 { (eval echo configure:3248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3403 { (eval echo configure:3404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3249 if test -z "$ac_err"; then 3405 if test -z "$ac_err"; then
3250 rm -rf conftest* 3406 rm -rf conftest*
3251 eval "ac_cv_header_$ac_safe=yes" 3407 eval "ac_cv_header_$ac_safe=yes"
3252 else 3408 else
3272 echo "$ac_t""no" 1>&6 3428 echo "$ac_t""no" 1>&6
3273 fi 3429 fi
3274 done 3430 done
3275 3431
3276 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3432 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3277 echo "configure:3278: checking for sys/wait.h that is POSIX.1 compatible" >&5 3433 echo "configure:3434: checking for sys/wait.h that is POSIX.1 compatible" >&5
3278 3434
3279 cat > conftest.$ac_ext <<EOF 3435 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure" 3436 #line 3437 "configure"
3281 #include "confdefs.h" 3437 #include "confdefs.h"
3282 #include <sys/types.h> 3438 #include <sys/types.h>
3283 #include <sys/wait.h> 3439 #include <sys/wait.h>
3284 #ifndef WEXITSTATUS 3440 #ifndef WEXITSTATUS
3285 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3441 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3291 int s; 3447 int s;
3292 wait (&s); 3448 wait (&s);
3293 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3449 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3294 ; return 0; } 3450 ; return 0; }
3295 EOF 3451 EOF
3296 if { (eval echo configure:3297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3452 if { (eval echo configure:3453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3297 rm -rf conftest* 3453 rm -rf conftest*
3298 ac_cv_header_sys_wait_h=yes 3454 ac_cv_header_sys_wait_h=yes
3299 else 3455 else
3300 echo "configure: failed program was:" >&5 3456 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5 3457 cat conftest.$ac_ext >&5
3315 } 3471 }
3316 3472
3317 fi 3473 fi
3318 3474
3319 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3475 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3320 echo "configure:3321: checking for ANSI C header files" >&5 3476 echo "configure:3477: checking for ANSI C header files" >&5
3321 3477
3322 cat > conftest.$ac_ext <<EOF 3478 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure" 3479 #line 3480 "configure"
3324 #include "confdefs.h" 3480 #include "confdefs.h"
3325 #include <stdlib.h> 3481 #include <stdlib.h>
3326 #include <stdarg.h> 3482 #include <stdarg.h>
3327 #include <string.h> 3483 #include <string.h>
3328 #include <float.h> 3484 #include <float.h>
3329 EOF 3485 EOF
3330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3331 { (eval echo configure:3332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3487 { (eval echo configure:3488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3333 if test -z "$ac_err"; then 3489 if test -z "$ac_err"; then
3334 rm -rf conftest* 3490 rm -rf conftest*
3335 ac_cv_header_stdc=yes 3491 ac_cv_header_stdc=yes
3336 else 3492 else
3343 rm -f conftest* 3499 rm -f conftest*
3344 3500
3345 if test $ac_cv_header_stdc = yes; then 3501 if test $ac_cv_header_stdc = yes; then
3346 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3347 cat > conftest.$ac_ext <<EOF 3503 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure" 3504 #line 3505 "configure"
3349 #include "confdefs.h" 3505 #include "confdefs.h"
3350 #include <string.h> 3506 #include <string.h>
3351 EOF 3507 EOF
3352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3353 egrep "memchr" >/dev/null 2>&1; then 3509 egrep "memchr" >/dev/null 2>&1; then
3361 fi 3517 fi
3362 3518
3363 if test $ac_cv_header_stdc = yes; then 3519 if test $ac_cv_header_stdc = yes; then
3364 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3365 cat > conftest.$ac_ext <<EOF 3521 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure" 3522 #line 3523 "configure"
3367 #include "confdefs.h" 3523 #include "confdefs.h"
3368 #include <stdlib.h> 3524 #include <stdlib.h>
3369 EOF 3525 EOF
3370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3371 egrep "free" >/dev/null 2>&1; then 3527 egrep "free" >/dev/null 2>&1; then
3379 fi 3535 fi
3380 3536
3381 if test $ac_cv_header_stdc = yes; then 3537 if test $ac_cv_header_stdc = yes; then
3382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3383 cat > conftest.$ac_ext <<EOF 3539 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure" 3540 #line 3541 "configure"
3385 #include "confdefs.h" 3541 #include "confdefs.h"
3386 #include <ctype.h> 3542 #include <ctype.h>
3387 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3543 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3388 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3544 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3389 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3390 int main () { int i; for (i = 0; i < 256; i++) 3546 int main () { int i; for (i = 0; i < 256; i++)
3391 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3547 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3392 exit (0); } 3548 exit (0); }
3393 3549
3394 EOF 3550 EOF
3395 if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3396 then 3552 then
3397 : 3553 :
3398 else 3554 else
3399 conftest_rc="$?" 3555 conftest_rc="$?"
3400 echo "configure: failed program was:" >&5 3556 echo "configure: failed program was:" >&5
3416 } 3572 }
3417 3573
3418 fi 3574 fi
3419 3575
3420 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3576 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3421 echo "configure:3422: checking whether time.h and sys/time.h may both be included" >&5 3577 echo "configure:3578: checking whether time.h and sys/time.h may both be included" >&5
3422 3578
3423 cat > conftest.$ac_ext <<EOF 3579 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure" 3580 #line 3581 "configure"
3425 #include "confdefs.h" 3581 #include "confdefs.h"
3426 #include <sys/types.h> 3582 #include <sys/types.h>
3427 #include <sys/time.h> 3583 #include <sys/time.h>
3428 #include <time.h> 3584 #include <time.h>
3429 int main() { 3585 int main() {
3430 struct tm *tp; 3586 struct tm *tp;
3431 ; return 0; } 3587 ; return 0; }
3432 EOF 3588 EOF
3433 if { (eval echo configure:3434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3589 if { (eval echo configure:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3434 rm -rf conftest* 3590 rm -rf conftest*
3435 ac_cv_header_time=yes 3591 ac_cv_header_time=yes
3436 else 3592 else
3437 echo "configure: failed program was:" >&5 3593 echo "configure: failed program was:" >&5
3438 cat conftest.$ac_ext >&5 3594 cat conftest.$ac_ext >&5
3452 } 3608 }
3453 3609
3454 fi 3610 fi
3455 3611
3456 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3612 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3457 echo "configure:3458: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3613 echo "configure:3614: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3458 3614
3459 cat > conftest.$ac_ext <<EOF 3615 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure" 3616 #line 3617 "configure"
3461 #include "confdefs.h" 3617 #include "confdefs.h"
3462 #include <sys/types.h> 3618 #include <sys/types.h>
3463 #include <signal.h> 3619 #include <signal.h>
3464 /* NetBSD declares sys_siglist in unistd.h. */ 3620 /* NetBSD declares sys_siglist in unistd.h. */
3465 #ifdef HAVE_UNISTD_H 3621 #ifdef HAVE_UNISTD_H
3467 #endif 3623 #endif
3468 int main() { 3624 int main() {
3469 char *msg = *(sys_siglist + 1); 3625 char *msg = *(sys_siglist + 1);
3470 ; return 0; } 3626 ; return 0; }
3471 EOF 3627 EOF
3472 if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3628 if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3473 rm -rf conftest* 3629 rm -rf conftest*
3474 ac_cv_decl_sys_siglist=yes 3630 ac_cv_decl_sys_siglist=yes
3475 else 3631 else
3476 echo "configure: failed program was:" >&5 3632 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5 3633 cat conftest.$ac_ext >&5
3492 3648
3493 fi 3649 fi
3494 3650
3495 3651
3496 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3652 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3497 echo "configure:3498: checking for struct utimbuf" >&5 3653 echo "configure:3654: checking for struct utimbuf" >&5
3498 cat > conftest.$ac_ext <<EOF 3654 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure" 3655 #line 3656 "configure"
3500 #include "confdefs.h" 3656 #include "confdefs.h"
3501 #ifdef TIME_WITH_SYS_TIME 3657 #ifdef TIME_WITH_SYS_TIME
3502 #include <sys/time.h> 3658 #include <sys/time.h>
3503 #include <time.h> 3659 #include <time.h>
3504 #else 3660 #else
3513 #endif 3669 #endif
3514 int main() { 3670 int main() {
3515 static struct utimbuf x; x.actime = x.modtime; 3671 static struct utimbuf x; x.actime = x.modtime;
3516 ; return 0; } 3672 ; return 0; }
3517 EOF 3673 EOF
3518 if { (eval echo configure:3519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3674 if { (eval echo configure:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3519 rm -rf conftest* 3675 rm -rf conftest*
3520 echo "$ac_t""yes" 1>&6 3676 echo "$ac_t""yes" 1>&6
3521 { test "$extra_verbose" = "yes" && cat << \EOF 3677 { test "$extra_verbose" = "yes" && cat << \EOF
3522 Defining HAVE_STRUCT_UTIMBUF 3678 Defining HAVE_STRUCT_UTIMBUF
3523 EOF 3679 EOF
3533 echo "$ac_t""no" 1>&6 3689 echo "$ac_t""no" 1>&6
3534 fi 3690 fi
3535 rm -f conftest* 3691 rm -f conftest*
3536 3692
3537 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3693 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3538 echo "configure:3539: checking return type of signal handlers" >&5 3694 echo "configure:3695: checking return type of signal handlers" >&5
3539 3695
3540 cat > conftest.$ac_ext <<EOF 3696 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure" 3697 #line 3698 "configure"
3542 #include "confdefs.h" 3698 #include "confdefs.h"
3543 #include <sys/types.h> 3699 #include <sys/types.h>
3544 #include <signal.h> 3700 #include <signal.h>
3545 #ifdef signal 3701 #ifdef signal
3546 #undef signal 3702 #undef signal
3553 3709
3554 int main() { 3710 int main() {
3555 int i; 3711 int i;
3556 ; return 0; } 3712 ; return 0; }
3557 EOF 3713 EOF
3558 if { (eval echo configure:3559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3714 if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559 rm -rf conftest* 3715 rm -rf conftest*
3560 ac_cv_type_signal=void 3716 ac_cv_type_signal=void
3561 else 3717 else
3562 echo "configure: failed program was:" >&5 3718 echo "configure: failed program was:" >&5
3563 cat conftest.$ac_ext >&5 3719 cat conftest.$ac_ext >&5
3575 EOF 3731 EOF
3576 } 3732 }
3577 3733
3578 3734
3579 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3735 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3580 echo "configure:3581: checking for size_t" >&5 3736 echo "configure:3737: checking for size_t" >&5
3581 3737
3582 cat > conftest.$ac_ext <<EOF 3738 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure" 3739 #line 3740 "configure"
3584 #include "confdefs.h" 3740 #include "confdefs.h"
3585 #include <sys/types.h> 3741 #include <sys/types.h>
3586 #if STDC_HEADERS 3742 #if STDC_HEADERS
3587 #include <stdlib.h> 3743 #include <stdlib.h>
3588 #include <stddef.h> 3744 #include <stddef.h>
3609 } 3765 }
3610 3766
3611 fi 3767 fi
3612 3768
3613 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3769 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3614 echo "configure:3615: checking for pid_t" >&5 3770 echo "configure:3771: checking for pid_t" >&5
3615 3771
3616 cat > conftest.$ac_ext <<EOF 3772 cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure" 3773 #line 3774 "configure"
3618 #include "confdefs.h" 3774 #include "confdefs.h"
3619 #include <sys/types.h> 3775 #include <sys/types.h>
3620 #if STDC_HEADERS 3776 #if STDC_HEADERS
3621 #include <stdlib.h> 3777 #include <stdlib.h>
3622 #include <stddef.h> 3778 #include <stddef.h>
3643 } 3799 }
3644 3800
3645 fi 3801 fi
3646 3802
3647 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3803 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3648 echo "configure:3649: checking for uid_t in sys/types.h" >&5 3804 echo "configure:3805: checking for uid_t in sys/types.h" >&5
3649 3805
3650 cat > conftest.$ac_ext <<EOF 3806 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure" 3807 #line 3808 "configure"
3652 #include "confdefs.h" 3808 #include "confdefs.h"
3653 #include <sys/types.h> 3809 #include <sys/types.h>
3654 EOF 3810 EOF
3655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3656 egrep "uid_t" >/dev/null 2>&1; then 3812 egrep "uid_t" >/dev/null 2>&1; then
3682 } 3838 }
3683 3839
3684 fi 3840 fi
3685 3841
3686 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3842 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3687 echo "configure:3688: checking for mode_t" >&5 3843 echo "configure:3844: checking for mode_t" >&5
3688 3844
3689 cat > conftest.$ac_ext <<EOF 3845 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure" 3846 #line 3847 "configure"
3691 #include "confdefs.h" 3847 #include "confdefs.h"
3692 #include <sys/types.h> 3848 #include <sys/types.h>
3693 #if STDC_HEADERS 3849 #if STDC_HEADERS
3694 #include <stdlib.h> 3850 #include <stdlib.h>
3695 #include <stddef.h> 3851 #include <stddef.h>
3716 } 3872 }
3717 3873
3718 fi 3874 fi
3719 3875
3720 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3876 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3721 echo "configure:3722: checking for off_t" >&5 3877 echo "configure:3878: checking for off_t" >&5
3722 3878
3723 cat > conftest.$ac_ext <<EOF 3879 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure" 3880 #line 3881 "configure"
3725 #include "confdefs.h" 3881 #include "confdefs.h"
3726 #include <sys/types.h> 3882 #include <sys/types.h>
3727 #if STDC_HEADERS 3883 #if STDC_HEADERS
3728 #include <stdlib.h> 3884 #include <stdlib.h>
3729 #include <stddef.h> 3885 #include <stddef.h>
3749 EOF 3905 EOF
3750 } 3906 }
3751 3907
3752 fi 3908 fi
3753 3909
3910 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3911 echo "configure:3912: checking for ssize_t" >&5
3912
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3916 #include <sys/types.h>
3917 #if STDC_HEADERS
3918 #include <stdlib.h>
3919 #include <stddef.h>
3920 #endif
3921 EOF
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3924 rm -rf conftest*
3925 ac_cv_type_ssize_t=yes
3926 else
3927 rm -rf conftest*
3928 ac_cv_type_ssize_t=no
3929 fi
3930 rm -f conftest*
3931
3932 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3933 if test $ac_cv_type_ssize_t = no; then
3934 { test "$extra_verbose" = "yes" && cat << \EOF
3935 Defining ssize_t = int
3936 EOF
3937 cat >> confdefs.h <<\EOF
3938 #define ssize_t int
3939 EOF
3940 }
3941
3942 fi
3943
3754 3944
3755 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3945 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3756 echo "configure:3757: checking for struct timeval" >&5 3946 echo "configure:3947: checking for struct timeval" >&5
3757 cat > conftest.$ac_ext <<EOF 3947 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure" 3948 #line 3949 "configure"
3759 #include "confdefs.h" 3949 #include "confdefs.h"
3760 #ifdef TIME_WITH_SYS_TIME 3950 #ifdef TIME_WITH_SYS_TIME
3761 #include <sys/time.h> 3951 #include <sys/time.h>
3762 #include <time.h> 3952 #include <time.h>
3763 #else 3953 #else
3769 #endif 3959 #endif
3770 int main() { 3960 int main() {
3771 static struct timeval x; x.tv_sec = x.tv_usec; 3961 static struct timeval x; x.tv_sec = x.tv_usec;
3772 ; return 0; } 3962 ; return 0; }
3773 EOF 3963 EOF
3774 if { (eval echo configure:3775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3964 if { (eval echo configure:3965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3775 rm -rf conftest* 3965 rm -rf conftest*
3776 echo "$ac_t""yes" 1>&6 3966 echo "$ac_t""yes" 1>&6
3777 HAVE_TIMEVAL=yes 3967 HAVE_TIMEVAL=yes
3778 { test "$extra_verbose" = "yes" && cat << \EOF 3968 { test "$extra_verbose" = "yes" && cat << \EOF
3779 Defining HAVE_TIMEVAL 3969 Defining HAVE_TIMEVAL
3791 HAVE_TIMEVAL=no 3981 HAVE_TIMEVAL=no
3792 fi 3982 fi
3793 rm -f conftest* 3983 rm -f conftest*
3794 3984
3795 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3985 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3796 echo "configure:3797: checking whether struct tm is in sys/time.h or time.h" >&5 3986 echo "configure:3987: checking whether struct tm is in sys/time.h or time.h" >&5
3797 3987
3798 cat > conftest.$ac_ext <<EOF 3988 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure" 3989 #line 3990 "configure"
3800 #include "confdefs.h" 3990 #include "confdefs.h"
3801 #include <sys/types.h> 3991 #include <sys/types.h>
3802 #include <time.h> 3992 #include <time.h>
3803 int main() { 3993 int main() {
3804 struct tm *tp; tp->tm_sec; 3994 struct tm *tp; tp->tm_sec;
3805 ; return 0; } 3995 ; return 0; }
3806 EOF 3996 EOF
3807 if { (eval echo configure:3808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3997 if { (eval echo configure:3998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3808 rm -rf conftest* 3998 rm -rf conftest*
3809 ac_cv_struct_tm=time.h 3999 ac_cv_struct_tm=time.h
3810 else 4000 else
3811 echo "configure: failed program was:" >&5 4001 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5 4002 cat conftest.$ac_ext >&5
3826 } 4016 }
3827 4017
3828 fi 4018 fi
3829 4019
3830 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 4020 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3831 echo "configure:3832: checking for tm_zone in struct tm" >&5 4021 echo "configure:4022: checking for tm_zone in struct tm" >&5
3832 4022
3833 cat > conftest.$ac_ext <<EOF 4023 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure" 4024 #line 4025 "configure"
3835 #include "confdefs.h" 4025 #include "confdefs.h"
3836 #include <sys/types.h> 4026 #include <sys/types.h>
3837 #include <$ac_cv_struct_tm> 4027 #include <$ac_cv_struct_tm>
3838 int main() { 4028 int main() {
3839 struct tm tm; tm.tm_zone; 4029 struct tm tm; tm.tm_zone;
3840 ; return 0; } 4030 ; return 0; }
3841 EOF 4031 EOF
3842 if { (eval echo configure:3843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4032 if { (eval echo configure:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3843 rm -rf conftest* 4033 rm -rf conftest*
3844 ac_cv_struct_tm_zone=yes 4034 ac_cv_struct_tm_zone=yes
3845 else 4035 else
3846 echo "configure: failed program was:" >&5 4036 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5 4037 cat conftest.$ac_ext >&5
3860 EOF 4050 EOF
3861 } 4051 }
3862 4052
3863 else 4053 else
3864 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4054 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3865 echo "configure:3866: checking for tzname" >&5 4055 echo "configure:4056: checking for tzname" >&5
3866 4056
3867 cat > conftest.$ac_ext <<EOF 4057 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure" 4058 #line 4059 "configure"
3869 #include "confdefs.h" 4059 #include "confdefs.h"
3870 #include <time.h> 4060 #include <time.h>
3871 #ifndef tzname /* For SGI. */ 4061 #ifndef tzname /* For SGI. */
3872 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4062 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3873 #endif 4063 #endif
3874 int main() { 4064 int main() {
3875 atoi(*tzname); 4065 atoi(*tzname);
3876 ; return 0; } 4066 ; return 0; }
3877 EOF 4067 EOF
3878 if { (eval echo configure:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4068 if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3879 rm -rf conftest* 4069 rm -rf conftest*
3880 ac_cv_var_tzname=yes 4070 ac_cv_var_tzname=yes
3881 else 4071 else
3882 echo "configure: failed program was:" >&5 4072 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5 4073 cat conftest.$ac_ext >&5
3899 fi 4089 fi
3900 fi 4090 fi
3901 4091
3902 4092
3903 echo $ac_n "checking for working const""... $ac_c" 1>&6 4093 echo $ac_n "checking for working const""... $ac_c" 1>&6
3904 echo "configure:3905: checking for working const" >&5 4094 echo "configure:4095: checking for working const" >&5
3905 4095
3906 cat > conftest.$ac_ext <<EOF 4096 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure" 4097 #line 4098 "configure"
3908 #include "confdefs.h" 4098 #include "confdefs.h"
3909 4099
3910 int main() { 4100 int main() {
3911 4101
3912 /* Ultrix mips cc rejects this. */ 4102 /* Ultrix mips cc rejects this. */
3951 const int foo = 10; 4141 const int foo = 10;
3952 } 4142 }
3953 4143
3954 ; return 0; } 4144 ; return 0; }
3955 EOF 4145 EOF
3956 if { (eval echo configure:3957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4146 if { (eval echo configure:4147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3957 rm -rf conftest* 4147 rm -rf conftest*
3958 ac_cv_c_const=yes 4148 ac_cv_c_const=yes
3959 else 4149 else
3960 echo "configure: failed program was:" >&5 4150 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5 4151 cat conftest.$ac_ext >&5
3976 4166
3977 fi 4167 fi
3978 4168
3979 4169
3980 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4170 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3981 echo "configure:3982: checking whether ${MAKE-make} sets \${MAKE}" >&5 4171 echo "configure:4172: checking whether ${MAKE-make} sets \${MAKE}" >&5
3982 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4172 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3983 4173
3984 cat > conftestmake <<\EOF 4174 cat > conftestmake <<\EOF
3985 all: 4175 all:
3986 @echo 'ac_maketemp="${MAKE}"' 4176 @echo 'ac_maketemp="${MAKE}"'
4001 SET_MAKE="MAKE=${MAKE-make}" 4191 SET_MAKE="MAKE=${MAKE-make}"
4002 fi 4192 fi
4003 4193
4004 4194
4005 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4195 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4006 echo "configure:4007: checking whether byte ordering is bigendian" >&5 4196 echo "configure:4197: checking whether byte ordering is bigendian" >&5
4007 4197
4008 ac_cv_c_bigendian=unknown 4198 ac_cv_c_bigendian=unknown
4009 # See if sys/param.h defines the BYTE_ORDER macro. 4199 # See if sys/param.h defines the BYTE_ORDER macro.
4010 cat > conftest.$ac_ext <<EOF 4200 cat > conftest.$ac_ext <<EOF
4011 #line 4012 "configure" 4201 #line 4202 "configure"
4012 #include "confdefs.h" 4202 #include "confdefs.h"
4013 #include <sys/types.h> 4203 #include <sys/types.h>
4014 #include <sys/param.h> 4204 #include <sys/param.h>
4015 int main() { 4205 int main() {
4016 4206
4017 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4207 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4018 bogus endian macros 4208 bogus endian macros
4019 #endif 4209 #endif
4020 ; return 0; } 4210 ; return 0; }
4021 EOF 4211 EOF
4022 if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4212 if { (eval echo configure:4213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4023 rm -rf conftest* 4213 rm -rf conftest*
4024 # It does; now see whether it defined to BIG_ENDIAN or not. 4214 # It does; now see whether it defined to BIG_ENDIAN or not.
4025 cat > conftest.$ac_ext <<EOF 4215 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure" 4216 #line 4217 "configure"
4027 #include "confdefs.h" 4217 #include "confdefs.h"
4028 #include <sys/types.h> 4218 #include <sys/types.h>
4029 #include <sys/param.h> 4219 #include <sys/param.h>
4030 int main() { 4220 int main() {
4031 4221
4032 #if BYTE_ORDER != BIG_ENDIAN 4222 #if BYTE_ORDER != BIG_ENDIAN
4033 not big endian 4223 not big endian
4034 #endif 4224 #endif
4035 ; return 0; } 4225 ; return 0; }
4036 EOF 4226 EOF
4037 if { (eval echo configure:4038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4227 if { (eval echo configure:4228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4038 rm -rf conftest* 4228 rm -rf conftest*
4039 ac_cv_c_bigendian=yes 4229 ac_cv_c_bigendian=yes
4040 else 4230 else
4041 echo "configure: failed program was:" >&5 4231 echo "configure: failed program was:" >&5
4042 cat conftest.$ac_ext >&5 4232 cat conftest.$ac_ext >&5
4049 cat conftest.$ac_ext >&5 4239 cat conftest.$ac_ext >&5
4050 fi 4240 fi
4051 rm -f conftest* 4241 rm -f conftest*
4052 if test $ac_cv_c_bigendian = unknown; then 4242 if test $ac_cv_c_bigendian = unknown; then
4053 cat > conftest.$ac_ext <<EOF 4243 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure" 4244 #line 4245 "configure"
4055 #include "confdefs.h" 4245 #include "confdefs.h"
4056 main () { 4246 main () {
4057 /* Are we little or big endian? From Harbison&Steele. */ 4247 /* Are we little or big endian? From Harbison&Steele. */
4058 union 4248 union
4059 { 4249 {
4062 } u; 4252 } u;
4063 u.l = 1; 4253 u.l = 1;
4064 exit (u.c[sizeof (long) - 1] == 1); 4254 exit (u.c[sizeof (long) - 1] == 1);
4065 } 4255 }
4066 EOF 4256 EOF
4067 if { (eval echo configure:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4257 if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4068 then 4258 then
4069 ac_cv_c_bigendian=no 4259 ac_cv_c_bigendian=no
4070 else 4260 else
4071 conftest_rc="$?" 4261 conftest_rc="$?"
4072 echo "configure: failed program was:" >&5 4262 echo "configure: failed program was:" >&5
4089 4279
4090 fi 4280 fi
4091 4281
4092 4282
4093 echo $ac_n "checking size of short""... $ac_c" 1>&6 4283 echo $ac_n "checking size of short""... $ac_c" 1>&6
4094 echo "configure:4095: checking size of short" >&5 4284 echo "configure:4285: checking size of short" >&5
4095 4285
4096 cat > conftest.$ac_ext <<EOF 4286 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure" 4287 #line 4288 "configure"
4098 #include "confdefs.h" 4288 #include "confdefs.h"
4099 #include <stdio.h> 4289 #include <stdio.h>
4100 main() 4290 main()
4101 { 4291 {
4102 FILE *f=fopen("conftestval", "w"); 4292 FILE *f=fopen("conftestval", "w");
4103 if (!f) exit(1); 4293 if (!f) exit(1);
4104 fprintf(f, "%d\n", sizeof(short)); 4294 fprintf(f, "%d\n", sizeof(short));
4105 exit(0); 4295 exit(0);
4106 } 4296 }
4107 EOF 4297 EOF
4108 if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4298 if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4109 then 4299 then
4110 ac_cv_sizeof_short=`cat conftestval` 4300 ac_cv_sizeof_short=`cat conftestval`
4111 else 4301 else
4112 conftest_rc="$?" 4302 conftest_rc="$?"
4113 echo "configure: failed program was:" >&5 4303 echo "configure: failed program was:" >&5
4131 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4321 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4132 echo "*** PANIC *** Please examine config.log for compilation errors." 4322 echo "*** PANIC *** Please examine config.log for compilation errors."
4133 exit 1 4323 exit 1
4134 fi 4324 fi
4135 echo $ac_n "checking size of int""... $ac_c" 1>&6 4325 echo $ac_n "checking size of int""... $ac_c" 1>&6
4136 echo "configure:4137: checking size of int" >&5 4326 echo "configure:4327: checking size of int" >&5
4137 4327
4138 cat > conftest.$ac_ext <<EOF 4328 cat > conftest.$ac_ext <<EOF
4139 #line 4140 "configure" 4329 #line 4330 "configure"
4140 #include "confdefs.h" 4330 #include "confdefs.h"
4141 #include <stdio.h> 4331 #include <stdio.h>
4142 main() 4332 main()
4143 { 4333 {
4144 FILE *f=fopen("conftestval", "w"); 4334 FILE *f=fopen("conftestval", "w");
4145 if (!f) exit(1); 4335 if (!f) exit(1);
4146 fprintf(f, "%d\n", sizeof(int)); 4336 fprintf(f, "%d\n", sizeof(int));
4147 exit(0); 4337 exit(0);
4148 } 4338 }
4149 EOF 4339 EOF
4150 if { (eval echo configure:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4340 if { (eval echo configure:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4151 then 4341 then
4152 ac_cv_sizeof_int=`cat conftestval` 4342 ac_cv_sizeof_int=`cat conftestval`
4153 else 4343 else
4154 conftest_rc="$?" 4344 conftest_rc="$?"
4155 echo "configure: failed program was:" >&5 4345 echo "configure: failed program was:" >&5
4167 EOF 4357 EOF
4168 } 4358 }
4169 4359
4170 4360
4171 echo $ac_n "checking size of long""... $ac_c" 1>&6 4361 echo $ac_n "checking size of long""... $ac_c" 1>&6
4172 echo "configure:4173: checking size of long" >&5 4362 echo "configure:4363: checking size of long" >&5
4173 4363
4174 cat > conftest.$ac_ext <<EOF 4364 cat > conftest.$ac_ext <<EOF
4175 #line 4176 "configure" 4365 #line 4366 "configure"
4176 #include "confdefs.h" 4366 #include "confdefs.h"
4177 #include <stdio.h> 4367 #include <stdio.h>
4178 main() 4368 main()
4179 { 4369 {
4180 FILE *f=fopen("conftestval", "w"); 4370 FILE *f=fopen("conftestval", "w");
4181 if (!f) exit(1); 4371 if (!f) exit(1);
4182 fprintf(f, "%d\n", sizeof(long)); 4372 fprintf(f, "%d\n", sizeof(long));
4183 exit(0); 4373 exit(0);
4184 } 4374 }
4185 EOF 4375 EOF
4186 if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4376 if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4187 then 4377 then
4188 ac_cv_sizeof_long=`cat conftestval` 4378 ac_cv_sizeof_long=`cat conftestval`
4189 else 4379 else
4190 conftest_rc="$?" 4380 conftest_rc="$?"
4191 echo "configure: failed program was:" >&5 4381 echo "configure: failed program was:" >&5
4203 EOF 4393 EOF
4204 } 4394 }
4205 4395
4206 4396
4207 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4397 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4208 echo "configure:4209: checking size of long long" >&5 4398 echo "configure:4399: checking size of long long" >&5
4209 4399
4210 cat > conftest.$ac_ext <<EOF 4400 cat > conftest.$ac_ext <<EOF
4211 #line 4212 "configure" 4401 #line 4402 "configure"
4212 #include "confdefs.h" 4402 #include "confdefs.h"
4213 #include <stdio.h> 4403 #include <stdio.h>
4214 main() 4404 main()
4215 { 4405 {
4216 FILE *f=fopen("conftestval", "w"); 4406 FILE *f=fopen("conftestval", "w");
4217 if (!f) exit(1); 4407 if (!f) exit(1);
4218 fprintf(f, "%d\n", sizeof(long long)); 4408 fprintf(f, "%d\n", sizeof(long long));
4219 exit(0); 4409 exit(0);
4220 } 4410 }
4221 EOF 4411 EOF
4222 if { (eval echo configure:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4223 then 4413 then
4224 ac_cv_sizeof_long_long=`cat conftestval` 4414 ac_cv_sizeof_long_long=`cat conftestval`
4225 else 4415 else
4226 conftest_rc="$?" 4416 conftest_rc="$?"
4227 echo "configure: failed program was:" >&5 4417 echo "configure: failed program was:" >&5
4239 EOF 4429 EOF
4240 } 4430 }
4241 4431
4242 4432
4243 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4433 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4244 echo "configure:4245: checking size of void *" >&5 4434 echo "configure:4435: checking size of void *" >&5
4245 4435
4246 cat > conftest.$ac_ext <<EOF 4436 cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure" 4437 #line 4438 "configure"
4248 #include "confdefs.h" 4438 #include "confdefs.h"
4249 #include <stdio.h> 4439 #include <stdio.h>
4250 main() 4440 main()
4251 { 4441 {
4252 FILE *f=fopen("conftestval", "w"); 4442 FILE *f=fopen("conftestval", "w");
4253 if (!f) exit(1); 4443 if (!f) exit(1);
4254 fprintf(f, "%d\n", sizeof(void *)); 4444 fprintf(f, "%d\n", sizeof(void *));
4255 exit(0); 4445 exit(0);
4256 } 4446 }
4257 EOF 4447 EOF
4258 if { (eval echo configure:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4259 then 4449 then
4260 ac_cv_sizeof_void_p=`cat conftestval` 4450 ac_cv_sizeof_void_p=`cat conftestval`
4261 else 4451 else
4262 conftest_rc="$?" 4452 conftest_rc="$?"
4263 echo "configure: failed program was:" >&5 4453 echo "configure: failed program was:" >&5
4276 } 4466 }
4277 4467
4278 4468
4279 4469
4280 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4470 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4281 echo "configure:4282: checking for long file names" >&5 4471 echo "configure:4472: checking for long file names" >&5
4282 4472
4283 ac_cv_sys_long_file_names=yes 4473 ac_cv_sys_long_file_names=yes
4284 # Test for long file names in all the places we know might matter: 4474 # Test for long file names in all the places we know might matter:
4285 # . the current directory, where building will happen 4475 # . the current directory, where building will happen
4286 # $prefix/lib where we will be installing things 4476 # $prefix/lib where we will be installing things
4321 } 4511 }
4322 4512
4323 fi 4513 fi
4324 4514
4325 4515
4326 4516 echo $ac_n "checking for sin""... $ac_c" 1>&6
4327 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4517 echo "configure:4518: checking for sin" >&5
4328 echo "configure:4329: checking for sin in -lm" >&5 4518
4329 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4519 cat > conftest.$ac_ext <<EOF
4330 4520 #line 4521 "configure"
4331 xe_check_libs=" -lm " 4521 #include "confdefs.h"
4332 cat > conftest.$ac_ext <<EOF 4522 /* System header to define __stub macros and hopefully few prototypes,
4333 #line 4334 "configure" 4523 which can conflict with char sin(); below. */
4334 #include "confdefs.h" 4524 #include <assert.h>
4335 /* Override any gcc2 internal prototype to avoid an error. */ 4525 /* Override any gcc2 internal prototype to avoid an error. */
4336 /* We use char because int might match the return type of a gcc2 4526 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */ 4527 builtin and then its argument prototype would still apply. */
4338 char sin(); 4528 char sin();
4339 4529
4340 int main() { 4530 int main() {
4531
4532 /* The GNU C library defines this for functions which it implements
4533 to always fail with ENOSYS. Some functions are actually named
4534 something starting with __ and the normal name is an alias. */
4535 #if defined (__stub_sin) || defined (__stub___sin)
4536 choke me
4537 #else
4538 sin();
4539 #endif
4540
4541 ; return 0; }
4542 EOF
4543 if { (eval echo configure:4544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4544 rm -rf conftest*
4545 eval "ac_cv_func_sin=yes"
4546 else
4547 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5
4549 rm -rf conftest*
4550 eval "ac_cv_func_sin=no"
4551 fi
4552 rm -f conftest*
4553
4554 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
4555 echo "$ac_t""yes" 1>&6
4556 :
4557 else
4558 echo "$ac_t""no" 1>&6
4559
4560 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4561 echo "configure:4562: checking for sin in -lm" >&5
4562 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4563
4564 xe_check_libs=" -lm "
4565 cat > conftest.$ac_ext <<EOF
4566 #line 4567 "configure"
4567 #include "confdefs.h"
4568 /* Override any gcc2 internal prototype to avoid an error. */
4569 /* We use char because int might match the return type of a gcc2
4570 builtin and then its argument prototype would still apply. */
4571 char sin();
4572
4573 int main() {
4341 sin() 4574 sin()
4342 ; return 0; } 4575 ; return 0; }
4343 EOF 4576 EOF
4344 if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4345 rm -rf conftest* 4578 rm -rf conftest*
4346 eval "ac_cv_lib_$ac_lib_var=yes" 4579 eval "ac_cv_lib_$ac_lib_var=yes"
4347 else 4580 else
4348 echo "configure: failed program was:" >&5 4581 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5 4582 cat conftest.$ac_ext >&5
4353 rm -f conftest* 4586 rm -f conftest*
4354 xe_check_libs="" 4587 xe_check_libs=""
4355 4588
4356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 4589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4357 echo "$ac_t""yes" 1>&6 4590 echo "$ac_t""yes" 1>&6
4358 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4591 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
4359 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4592 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4360 { test "$extra_verbose" = "yes" && cat << EOF 4593 { test "$extra_verbose" = "yes" && cat << EOF
4361 Defining $ac_tr_lib 4594 Defining $ac_tr_lib
4362 EOF 4595 EOF
4363 cat >> confdefs.h <<EOF 4596 cat >> confdefs.h <<EOF
4370 else 4603 else
4371 echo "$ac_t""no" 1>&6 4604 echo "$ac_t""no" 1>&6
4372 fi 4605 fi
4373 4606
4374 4607
4608 fi
4609
4375 4610
4376 { test "$extra_verbose" = "yes" && cat << \EOF 4611 { test "$extra_verbose" = "yes" && cat << \EOF
4377 Defining LISP_FLOAT_TYPE 4612 Defining LISP_FLOAT_TYPE
4378 EOF 4613 EOF
4379 cat >> confdefs.h <<\EOF 4614 cat >> confdefs.h <<\EOF
4381 EOF 4616 EOF
4382 } 4617 }
4383 4618
4384 4619
4385 cat > conftest.$ac_ext <<EOF 4620 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure" 4621 #line 4622 "configure"
4387 #include "confdefs.h" 4622 #include "confdefs.h"
4388 #include <math.h> 4623 #include <math.h>
4389 int main() { 4624 int main() {
4390 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4625 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4391 ; return 0; } 4626 ; return 0; }
4392 EOF 4627 EOF
4393 if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4628 if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4394 rm -rf conftest* 4629 rm -rf conftest*
4395 { test "$extra_verbose" = "yes" && cat << \EOF 4630 { test "$extra_verbose" = "yes" && cat << \EOF
4396 Defining HAVE_INVERSE_HYPERBOLIC 4631 Defining HAVE_INVERSE_HYPERBOLIC
4397 EOF 4632 EOF
4398 cat >> confdefs.h <<\EOF 4633 cat >> confdefs.h <<\EOF
4405 cat conftest.$ac_ext >&5 4640 cat conftest.$ac_ext >&5
4406 fi 4641 fi
4407 rm -f conftest* 4642 rm -f conftest*
4408 4643
4409 echo "checking type of mail spool file locking" 1>&6 4644 echo "checking type of mail spool file locking" 1>&6
4410 echo "configure:4411: checking type of mail spool file locking" >&5 4645 echo "configure:4646: checking type of mail spool file locking" >&5
4411 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 4646 for ac_func in lockf flock
4412 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 4647 do
4413 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 4648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4414 Defining REAL_MAIL_USE_LOCKF 4649 echo "configure:4650: checking for $ac_func" >&5
4415 EOF 4650
4416 cat >> confdefs.h <<\EOF 4651 cat > conftest.$ac_ext <<EOF
4417 #define REAL_MAIL_USE_LOCKF 1 4652 #line 4653 "configure"
4418 EOF 4653 #include "confdefs.h"
4419 } 4654 /* System header to define __stub macros and hopefully few prototypes,
4420 4655 which can conflict with char $ac_func(); below. */
4421 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF 4656 #include <assert.h>
4422 Defining REAL_MAIL_USE_FLOCK
4423 EOF
4424 cat >> confdefs.h <<\EOF
4425 #define REAL_MAIL_USE_FLOCK 1
4426 EOF
4427 }
4428
4429 else mail_locking="dot-locking"
4430 fi
4431
4432
4433 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
4434 echo "configure:4435: checking for kstat_open in -lkstat" >&5
4435 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
4436
4437 xe_check_libs=" -lkstat "
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4441 /* Override any gcc2 internal prototype to avoid an error. */ 4657 /* Override any gcc2 internal prototype to avoid an error. */
4442 /* We use char because int might match the return type of a gcc2 4658 /* We use char because int might match the return type of a gcc2
4443 builtin and then its argument prototype would still apply. */ 4659 builtin and then its argument prototype would still apply. */
4444 char kstat_open(); 4660 char $ac_func();
4445 4661
4446 int main() { 4662 int main() {
4447 kstat_open() 4663
4664 /* The GNU C library defines this for functions which it implements
4665 to always fail with ENOSYS. Some functions are actually named
4666 something starting with __ and the normal name is an alias. */
4667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4668 choke me
4669 #else
4670 $ac_func();
4671 #endif
4672
4448 ; return 0; } 4673 ; return 0; }
4449 EOF 4674 EOF
4450 if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4451 rm -rf conftest* 4676 rm -rf conftest*
4452 eval "ac_cv_lib_$ac_lib_var=yes" 4677 eval "ac_cv_func_$ac_func=yes"
4453 else 4678 else
4454 echo "configure: failed program was:" >&5 4679 echo "configure: failed program was:" >&5
4455 cat conftest.$ac_ext >&5 4680 cat conftest.$ac_ext >&5
4456 rm -rf conftest* 4681 rm -rf conftest*
4457 eval "ac_cv_lib_$ac_lib_var=no" 4682 eval "ac_cv_func_$ac_func=no"
4458 fi 4683 fi
4459 rm -f conftest* 4684 rm -f conftest*
4460 xe_check_libs="" 4685
4461 4686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4463 echo "$ac_t""yes" 1>&6 4687 echo "$ac_t""yes" 1>&6
4464 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4465 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4466 { test "$extra_verbose" = "yes" && cat << EOF 4689 { test "$extra_verbose" = "yes" && cat << EOF
4467 Defining $ac_tr_lib 4690 Defining $ac_tr_func
4468 EOF 4691 EOF
4469 cat >> confdefs.h <<EOF 4692 cat >> confdefs.h <<EOF
4470 #define $ac_tr_lib 1 4693 #define $ac_tr_func 1
4471 EOF 4694 EOF
4472 } 4695 }
4473 4696
4474 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi 4697 else
4475 4698 echo "$ac_t""no" 1>&6
4476 else 4699 fi
4477 echo "$ac_t""no" 1>&6 4700 done
4478 fi 4701
4479 4702 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4480 4703 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4481 4704 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
4482 4705 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4483 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 4706 Defining MAIL_LOCK_LOCKF
4484 echo "configure:4485: checking for kvm_read in -lkvm" >&5 4707 EOF
4485 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 4708 cat >> confdefs.h <<\EOF
4486 4709 #define MAIL_LOCK_LOCKF 1
4487 xe_check_libs=" -lkvm " 4710 EOF
4488 cat > conftest.$ac_ext <<EOF 4711 }
4489 #line 4490 "configure" 4712
4490 #include "confdefs.h" 4713 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
4491 /* Override any gcc2 internal prototype to avoid an error. */ 4714 Defining MAIL_LOCK_FLOCK
4492 /* We use char because int might match the return type of a gcc2 4715 EOF
4493 builtin and then its argument prototype would still apply. */ 4716 cat >> confdefs.h <<\EOF
4494 char kvm_read(); 4717 #define MAIL_LOCK_FLOCK 1
4495 4718 EOF
4496 int main() { 4719 }
4497 kvm_read() 4720
4498 ; return 0; } 4721 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
4499 EOF 4722 Defining MAIL_LOCK_LOCKING
4500 if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4723 EOF
4501 rm -rf conftest* 4724 cat >> confdefs.h <<\EOF
4502 eval "ac_cv_lib_$ac_lib_var=yes" 4725 #define MAIL_LOCK_LOCKING 1
4503 else 4726 EOF
4504 echo "configure: failed program was:" >&5 4727 }
4505 cat conftest.$ac_ext >&5 4728
4506 rm -rf conftest* 4729 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
4507 eval "ac_cv_lib_$ac_lib_var=no" 4730 Defining MAIL_LOCK_DOT
4508 fi 4731 EOF
4509 rm -f conftest* 4732 cat >> confdefs.h <<\EOF
4510 xe_check_libs="" 4733 #define MAIL_LOCK_DOT 1
4511 4734 EOF
4512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 4735 }
4513 echo "$ac_t""yes" 1>&6 4736
4514 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4737 fi
4515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4738 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
4516 { test "$extra_verbose" = "yes" && cat << EOF 4739 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
4517 Defining $ac_tr_lib 4740 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
4518 EOF 4741 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
4519 cat >> confdefs.h <<EOF 4742 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
4520 #define $ac_tr_lib 1 4743 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4521 EOF
4522 }
4523
4524 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
4525
4526 else
4527 echo "$ac_t""no" 1>&6
4528 fi
4529
4530
4531 4744
4532 case "$opsys" in decosf*) 4745 case "$opsys" in decosf*)
4533 4746
4534 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4747 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4535 echo "configure:4536: checking for cma_open in -lpthreads" >&5 4748 echo "configure:4749: checking for cma_open in -lpthreads" >&5
4536 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4749 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4537 4750
4538 xe_check_libs=" -lpthreads " 4751 xe_check_libs=" -lpthreads "
4539 cat > conftest.$ac_ext <<EOF 4752 cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure" 4753 #line 4754 "configure"
4541 #include "confdefs.h" 4754 #include "confdefs.h"
4542 /* Override any gcc2 internal prototype to avoid an error. */ 4755 /* Override any gcc2 internal prototype to avoid an error. */
4543 /* We use char because int might match the return type of a gcc2 4756 /* We use char because int might match the return type of a gcc2
4544 builtin and then its argument prototype would still apply. */ 4757 builtin and then its argument prototype would still apply. */
4545 char cma_open(); 4758 char cma_open();
4546 4759
4547 int main() { 4760 int main() {
4548 cma_open() 4761 cma_open()
4549 ; return 0; } 4762 ; return 0; }
4550 EOF 4763 EOF
4551 if { (eval echo configure:4552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552 rm -rf conftest* 4765 rm -rf conftest*
4553 eval "ac_cv_lib_$ac_lib_var=yes" 4766 eval "ac_cv_lib_$ac_lib_var=yes"
4554 else 4767 else
4555 echo "configure: failed program was:" >&5 4768 echo "configure: failed program was:" >&5
4556 cat conftest.$ac_ext >&5 4769 cat conftest.$ac_ext >&5
4582 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4795 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4583 c_switch_site="$c_switch_site -threads" ;; 4796 c_switch_site="$c_switch_site -threads" ;;
4584 esac 4797 esac
4585 4798
4586 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4799 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4587 echo "configure:4588: checking whether the -xildoff compiler flag is required" >&5 4800 echo "configure:4801: checking whether the -xildoff compiler flag is required" >&5
4588 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4801 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4589 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4802 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4590 then echo "$ac_t""no" 1>&6; 4803 then echo "$ac_t""no" 1>&6;
4591 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 4804 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
4592 fi 4805 fi
4593 else echo "$ac_t""no" 1>&6 4806 else echo "$ac_t""no" 1>&6
4594 fi 4807 fi
4595 4808
4596 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4809 if test "$opsys" = "sol2" -a "$os_release" -ge 56; then
4597 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4810 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4598 echo "configure:4599: checking for \"-z ignore\" linker flag" >&5 4811 echo "configure:4812: checking for \"-z ignore\" linker flag" >&5
4599 case "`ld -h 2>&1`" in 4812 case "`ld -h 2>&1`" in
4600 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4813 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4601 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4814 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4602 *) echo "$ac_t""no" 1>&6 ;; 4815 *) echo "$ac_t""no" 1>&6 ;;
4603 esac 4816 esac
4604 fi 4817 fi
4605 4818
4606 4819
4607 echo "checking "for specified window system"" 1>&6 4820 echo "checking "for specified window system"" 1>&6
4608 echo "configure:4609: checking "for specified window system"" >&5 4821 echo "configure:4822: checking "for specified window system"" >&5
4609 4822
4610 if test "$with_x11" != "no"; then 4823 if test "$with_x11" != "no"; then
4611 test "$x_includes $x_libraries" != "NONE NONE" && \ 4824 test "$x_includes $x_libraries" != "NONE NONE" && \
4612 window_system=x11 with_x11=yes 4825 window_system=x11 with_x11=yes
4613 4826
4636 # If we find X, set shell vars x_includes and x_libraries to the 4849 # If we find X, set shell vars x_includes and x_libraries to the
4637 # paths, otherwise set no_x=yes. 4850 # paths, otherwise set no_x=yes.
4638 # Uses ac_ vars as temps to allow command line to override cache and checks. 4851 # Uses ac_ vars as temps to allow command line to override cache and checks.
4639 # --without-x overrides everything else, but does not touch the cache. 4852 # --without-x overrides everything else, but does not touch the cache.
4640 echo $ac_n "checking for X""... $ac_c" 1>&6 4853 echo $ac_n "checking for X""... $ac_c" 1>&6
4641 echo "configure:4642: checking for X" >&5 4854 echo "configure:4855: checking for X" >&5
4642 4855
4643 # Check whether --with-x or --without-x was given. 4856 # Check whether --with-x or --without-x was given.
4644 if test "${with_x+set}" = set; then 4857 if test "${with_x+set}" = set; then
4645 withval="$with_x" 4858 withval="$with_x"
4646 : 4859 :
4696 # Guess where to find include files, by looking for this one X11 .h file. 4909 # Guess where to find include files, by looking for this one X11 .h file.
4697 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4910 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4698 4911
4699 # First, try using that file with no special directory specified. 4912 # First, try using that file with no special directory specified.
4700 cat > conftest.$ac_ext <<EOF 4913 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure" 4914 #line 4915 "configure"
4702 #include "confdefs.h" 4915 #include "confdefs.h"
4703 #include <$x_direct_test_include> 4916 #include <$x_direct_test_include>
4704 EOF 4917 EOF
4705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4706 { (eval echo configure:4707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4919 { (eval echo configure:4920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4708 if test -z "$ac_err"; then 4921 if test -z "$ac_err"; then
4709 rm -rf conftest* 4922 rm -rf conftest*
4710 # We can compile using X headers with no special include directory. 4923 # We can compile using X headers with no special include directory.
4711 ac_x_includes= 4924 ac_x_includes=
4770 # See if we find them without any special options. 4983 # See if we find them without any special options.
4771 # Don't add to $LIBS permanently. 4984 # Don't add to $LIBS permanently.
4772 ac_save_LIBS="$LIBS" 4985 ac_save_LIBS="$LIBS"
4773 LIBS="-l$x_direct_test_library $LIBS" 4986 LIBS="-l$x_direct_test_library $LIBS"
4774 cat > conftest.$ac_ext <<EOF 4987 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure" 4988 #line 4989 "configure"
4776 #include "confdefs.h" 4989 #include "confdefs.h"
4777 4990
4778 int main() { 4991 int main() {
4779 ${x_direct_test_function}() 4992 ${x_direct_test_function}()
4780 ; return 0; } 4993 ; return 0; }
4781 EOF 4994 EOF
4782 if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4995 if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4783 rm -rf conftest* 4996 rm -rf conftest*
4784 LIBS="$ac_save_LIBS" 4997 LIBS="$ac_save_LIBS"
4785 # We can link X programs with no special library path. 4998 # We can link X programs with no special library path.
4786 ac_x_libraries= 4999 ac_x_libraries=
4787 else 5000 else
4886 # For Solaris; some versions of Sun CC require a space after -R and 5099 # For Solaris; some versions of Sun CC require a space after -R and
4887 # others require no space. Words are not sufficient . . . . 5100 # others require no space. Words are not sufficient . . . .
4888 case "`(uname -sr) 2>/dev/null`" in 5101 case "`(uname -sr) 2>/dev/null`" in
4889 "SunOS 5"*) 5102 "SunOS 5"*)
4890 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5103 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4891 echo "configure:4892: checking whether -R must be followed by a space" >&5 5104 echo "configure:5105: checking whether -R must be followed by a space" >&5
4892 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5105 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4893 cat > conftest.$ac_ext <<EOF 5106 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure" 5107 #line 5108 "configure"
4895 #include "confdefs.h" 5108 #include "confdefs.h"
4896 5109
4897 int main() { 5110 int main() {
4898 5111
4899 ; return 0; } 5112 ; return 0; }
4900 EOF 5113 EOF
4901 if { (eval echo configure:4902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4902 rm -rf conftest* 5115 rm -rf conftest*
4903 ac_R_nospace=yes 5116 ac_R_nospace=yes
4904 else 5117 else
4905 echo "configure: failed program was:" >&5 5118 echo "configure: failed program was:" >&5
4906 cat conftest.$ac_ext >&5 5119 cat conftest.$ac_ext >&5
4912 echo "$ac_t""no" 1>&6 5125 echo "$ac_t""no" 1>&6
4913 X_LIBS="$X_LIBS -R$x_libraries" 5126 X_LIBS="$X_LIBS -R$x_libraries"
4914 else 5127 else
4915 LIBS="$ac_xsave_LIBS -R $x_libraries" 5128 LIBS="$ac_xsave_LIBS -R $x_libraries"
4916 cat > conftest.$ac_ext <<EOF 5129 cat > conftest.$ac_ext <<EOF
4917 #line 4918 "configure" 5130 #line 5131 "configure"
4918 #include "confdefs.h" 5131 #include "confdefs.h"
4919 5132
4920 int main() { 5133 int main() {
4921 5134
4922 ; return 0; } 5135 ; return 0; }
4923 EOF 5136 EOF
4924 if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5137 if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925 rm -rf conftest* 5138 rm -rf conftest*
4926 ac_R_space=yes 5139 ac_R_space=yes
4927 else 5140 else
4928 echo "configure: failed program was:" >&5 5141 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5 5142 cat conftest.$ac_ext >&5
4955 if test "$with_dnet" = "no" ; then 5168 if test "$with_dnet" = "no" ; then
4956 ac_cv_lib_dnet_dnet_ntoa=no 5169 ac_cv_lib_dnet_dnet_ntoa=no
4957 else 5170 else
4958 5171
4959 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5172 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4960 echo "configure:4961: checking for dnet_ntoa in -ldnet" >&5 5173 echo "configure:5174: checking for dnet_ntoa in -ldnet" >&5
4961 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5174 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4962 5175
4963 xe_check_libs=" -ldnet " 5176 xe_check_libs=" -ldnet "
4964 cat > conftest.$ac_ext <<EOF 5177 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure" 5178 #line 5179 "configure"
4966 #include "confdefs.h" 5179 #include "confdefs.h"
4967 /* Override any gcc2 internal prototype to avoid an error. */ 5180 /* Override any gcc2 internal prototype to avoid an error. */
4968 /* We use char because int might match the return type of a gcc2 5181 /* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */ 5182 builtin and then its argument prototype would still apply. */
4970 char dnet_ntoa(); 5183 char dnet_ntoa();
4971 5184
4972 int main() { 5185 int main() {
4973 dnet_ntoa() 5186 dnet_ntoa()
4974 ; return 0; } 5187 ; return 0; }
4975 EOF 5188 EOF
4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4977 rm -rf conftest* 5190 rm -rf conftest*
4978 eval "ac_cv_lib_$ac_lib_var=yes" 5191 eval "ac_cv_lib_$ac_lib_var=yes"
4979 else 5192 else
4980 echo "configure: failed program was:" >&5 5193 echo "configure: failed program was:" >&5
4981 cat conftest.$ac_ext >&5 5194 cat conftest.$ac_ext >&5
4995 fi 5208 fi
4996 5209
4997 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5210 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4998 5211
4999 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 5212 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5000 echo "configure:5001: checking for dnet_ntoa in -ldnet_stub" >&5 5213 echo "configure:5214: checking for dnet_ntoa in -ldnet_stub" >&5
5001 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5214 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5002 5215
5003 xe_check_libs=" -ldnet_stub " 5216 xe_check_libs=" -ldnet_stub "
5004 cat > conftest.$ac_ext <<EOF 5217 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure" 5218 #line 5219 "configure"
5006 #include "confdefs.h" 5219 #include "confdefs.h"
5007 /* Override any gcc2 internal prototype to avoid an error. */ 5220 /* Override any gcc2 internal prototype to avoid an error. */
5008 /* We use char because int might match the return type of a gcc2 5221 /* We use char because int might match the return type of a gcc2
5009 builtin and then its argument prototype would still apply. */ 5222 builtin and then its argument prototype would still apply. */
5010 char dnet_ntoa(); 5223 char dnet_ntoa();
5011 5224
5012 int main() { 5225 int main() {
5013 dnet_ntoa() 5226 dnet_ntoa()
5014 ; return 0; } 5227 ; return 0; }
5015 EOF 5228 EOF
5016 if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5017 rm -rf conftest* 5230 rm -rf conftest*
5018 eval "ac_cv_lib_$ac_lib_var=yes" 5231 eval "ac_cv_lib_$ac_lib_var=yes"
5019 else 5232 else
5020 echo "configure: failed program was:" >&5 5233 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5 5234 cat conftest.$ac_ext >&5
5040 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5253 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5041 # needs -lnsl. 5254 # needs -lnsl.
5042 # The nsl library prevents programs from opening the X display 5255 # The nsl library prevents programs from opening the X display
5043 # on Irix 5.2, according to dickey@clark.net. 5256 # on Irix 5.2, according to dickey@clark.net.
5044 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5257 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5045 echo "configure:5046: checking for gethostbyname" >&5 5258 echo "configure:5259: checking for gethostbyname" >&5
5046 5259
5047 cat > conftest.$ac_ext <<EOF 5260 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure" 5261 #line 5262 "configure"
5049 #include "confdefs.h" 5262 #include "confdefs.h"
5050 /* System header to define __stub macros and hopefully few prototypes, 5263 /* System header to define __stub macros and hopefully few prototypes,
5051 which can conflict with char gethostbyname(); below. */ 5264 which can conflict with char gethostbyname(); below. */
5052 #include <assert.h> 5265 #include <assert.h>
5053 /* Override any gcc2 internal prototype to avoid an error. */ 5266 /* Override any gcc2 internal prototype to avoid an error. */
5066 gethostbyname(); 5279 gethostbyname();
5067 #endif 5280 #endif
5068 5281
5069 ; return 0; } 5282 ; return 0; }
5070 EOF 5283 EOF
5071 if { (eval echo configure:5072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5284 if { (eval echo configure:5285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5072 rm -rf conftest* 5285 rm -rf conftest*
5073 eval "ac_cv_func_gethostbyname=yes" 5286 eval "ac_cv_func_gethostbyname=yes"
5074 else 5287 else
5075 echo "configure: failed program was:" >&5 5288 echo "configure: failed program was:" >&5
5076 cat conftest.$ac_ext >&5 5289 cat conftest.$ac_ext >&5
5087 fi 5300 fi
5088 5301
5089 if test $ac_cv_func_gethostbyname = no; then 5302 if test $ac_cv_func_gethostbyname = no; then
5090 5303
5091 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5304 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5092 echo "configure:5093: checking for gethostbyname in -lnsl" >&5 5305 echo "configure:5306: checking for gethostbyname in -lnsl" >&5
5093 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5306 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5094 5307
5095 xe_check_libs=" -lnsl " 5308 xe_check_libs=" -lnsl "
5096 cat > conftest.$ac_ext <<EOF 5309 cat > conftest.$ac_ext <<EOF
5097 #line 5098 "configure" 5310 #line 5311 "configure"
5098 #include "confdefs.h" 5311 #include "confdefs.h"
5099 /* Override any gcc2 internal prototype to avoid an error. */ 5312 /* Override any gcc2 internal prototype to avoid an error. */
5100 /* We use char because int might match the return type of a gcc2 5313 /* We use char because int might match the return type of a gcc2
5101 builtin and then its argument prototype would still apply. */ 5314 builtin and then its argument prototype would still apply. */
5102 char gethostbyname(); 5315 char gethostbyname();
5103 5316
5104 int main() { 5317 int main() {
5105 gethostbyname() 5318 gethostbyname()
5106 ; return 0; } 5319 ; return 0; }
5107 EOF 5320 EOF
5108 if { (eval echo configure:5109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5109 rm -rf conftest* 5322 rm -rf conftest*
5110 eval "ac_cv_lib_$ac_lib_var=yes" 5323 eval "ac_cv_lib_$ac_lib_var=yes"
5111 else 5324 else
5112 echo "configure: failed program was:" >&5 5325 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5 5326 cat conftest.$ac_ext >&5
5133 # on later versions), says simon@lia.di.epfl.ch: it contains 5346 # on later versions), says simon@lia.di.epfl.ch: it contains
5134 # gethostby* variants that don't use the nameserver (or something). 5347 # gethostby* variants that don't use the nameserver (or something).
5135 # -lsocket must be given before -lnsl if both are needed. 5348 # -lsocket must be given before -lnsl if both are needed.
5136 # We assume that if connect needs -lnsl, so does gethostbyname. 5349 # We assume that if connect needs -lnsl, so does gethostbyname.
5137 echo $ac_n "checking for connect""... $ac_c" 1>&6 5350 echo $ac_n "checking for connect""... $ac_c" 1>&6
5138 echo "configure:5139: checking for connect" >&5 5351 echo "configure:5352: checking for connect" >&5
5139 5352
5140 cat > conftest.$ac_ext <<EOF 5353 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure" 5354 #line 5355 "configure"
5142 #include "confdefs.h" 5355 #include "confdefs.h"
5143 /* System header to define __stub macros and hopefully few prototypes, 5356 /* System header to define __stub macros and hopefully few prototypes,
5144 which can conflict with char connect(); below. */ 5357 which can conflict with char connect(); below. */
5145 #include <assert.h> 5358 #include <assert.h>
5146 /* Override any gcc2 internal prototype to avoid an error. */ 5359 /* Override any gcc2 internal prototype to avoid an error. */
5159 connect(); 5372 connect();
5160 #endif 5373 #endif
5161 5374
5162 ; return 0; } 5375 ; return 0; }
5163 EOF 5376 EOF
5164 if { (eval echo configure:5165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5165 rm -rf conftest* 5378 rm -rf conftest*
5166 eval "ac_cv_func_connect=yes" 5379 eval "ac_cv_func_connect=yes"
5167 else 5380 else
5168 echo "configure: failed program was:" >&5 5381 echo "configure: failed program was:" >&5
5169 cat conftest.$ac_ext >&5 5382 cat conftest.$ac_ext >&5
5182 if test $ac_cv_func_connect = no; then 5395 if test $ac_cv_func_connect = no; then
5183 5396
5184 xe_msg_checking="for connect in -lsocket" 5397 xe_msg_checking="for connect in -lsocket"
5185 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5398 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5186 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5399 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5187 echo "configure:5188: checking "$xe_msg_checking"" >&5 5400 echo "configure:5401: checking "$xe_msg_checking"" >&5
5188 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 5401 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5189 5402
5190 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5403 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5191 cat > conftest.$ac_ext <<EOF 5404 cat > conftest.$ac_ext <<EOF
5192 #line 5193 "configure" 5405 #line 5406 "configure"
5193 #include "confdefs.h" 5406 #include "confdefs.h"
5194 /* Override any gcc2 internal prototype to avoid an error. */ 5407 /* Override any gcc2 internal prototype to avoid an error. */
5195 /* We use char because int might match the return type of a gcc2 5408 /* We use char because int might match the return type of a gcc2
5196 builtin and then its argument prototype would still apply. */ 5409 builtin and then its argument prototype would still apply. */
5197 char connect(); 5410 char connect();
5198 5411
5199 int main() { 5412 int main() {
5200 connect() 5413 connect()
5201 ; return 0; } 5414 ; return 0; }
5202 EOF 5415 EOF
5203 if { (eval echo configure:5204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5416 if { (eval echo configure:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5204 rm -rf conftest* 5417 rm -rf conftest*
5205 eval "ac_cv_lib_$ac_lib_var=yes" 5418 eval "ac_cv_lib_$ac_lib_var=yes"
5206 else 5419 else
5207 echo "configure: failed program was:" >&5 5420 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5 5421 cat conftest.$ac_ext >&5
5222 5435
5223 fi 5436 fi
5224 5437
5225 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 5438 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5226 echo $ac_n "checking for remove""... $ac_c" 1>&6 5439 echo $ac_n "checking for remove""... $ac_c" 1>&6
5227 echo "configure:5228: checking for remove" >&5 5440 echo "configure:5441: checking for remove" >&5
5228 5441
5229 cat > conftest.$ac_ext <<EOF 5442 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure" 5443 #line 5444 "configure"
5231 #include "confdefs.h" 5444 #include "confdefs.h"
5232 /* System header to define __stub macros and hopefully few prototypes, 5445 /* System header to define __stub macros and hopefully few prototypes,
5233 which can conflict with char remove(); below. */ 5446 which can conflict with char remove(); below. */
5234 #include <assert.h> 5447 #include <assert.h>
5235 /* Override any gcc2 internal prototype to avoid an error. */ 5448 /* Override any gcc2 internal prototype to avoid an error. */
5248 remove(); 5461 remove();
5249 #endif 5462 #endif
5250 5463
5251 ; return 0; } 5464 ; return 0; }
5252 EOF 5465 EOF
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5254 rm -rf conftest* 5467 rm -rf conftest*
5255 eval "ac_cv_func_remove=yes" 5468 eval "ac_cv_func_remove=yes"
5256 else 5469 else
5257 echo "configure: failed program was:" >&5 5470 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5 5471 cat conftest.$ac_ext >&5
5269 fi 5482 fi
5270 5483
5271 if test $ac_cv_func_remove = no; then 5484 if test $ac_cv_func_remove = no; then
5272 5485
5273 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5486 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5274 echo "configure:5275: checking for remove in -lposix" >&5 5487 echo "configure:5488: checking for remove in -lposix" >&5
5275 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5488 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5276 5489
5277 xe_check_libs=" -lposix " 5490 xe_check_libs=" -lposix "
5278 cat > conftest.$ac_ext <<EOF 5491 cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure" 5492 #line 5493 "configure"
5280 #include "confdefs.h" 5493 #include "confdefs.h"
5281 /* Override any gcc2 internal prototype to avoid an error. */ 5494 /* Override any gcc2 internal prototype to avoid an error. */
5282 /* We use char because int might match the return type of a gcc2 5495 /* We use char because int might match the return type of a gcc2
5283 builtin and then its argument prototype would still apply. */ 5496 builtin and then its argument prototype would still apply. */
5284 char remove(); 5497 char remove();
5285 5498
5286 int main() { 5499 int main() {
5287 remove() 5500 remove()
5288 ; return 0; } 5501 ; return 0; }
5289 EOF 5502 EOF
5290 if { (eval echo configure:5291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5503 if { (eval echo configure:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5291 rm -rf conftest* 5504 rm -rf conftest*
5292 eval "ac_cv_lib_$ac_lib_var=yes" 5505 eval "ac_cv_lib_$ac_lib_var=yes"
5293 else 5506 else
5294 echo "configure: failed program was:" >&5 5507 echo "configure: failed program was:" >&5
5295 cat conftest.$ac_ext >&5 5508 cat conftest.$ac_ext >&5
5309 5522
5310 fi 5523 fi
5311 5524
5312 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5525 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5313 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5526 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5314 echo "configure:5315: checking for shmat" >&5 5527 echo "configure:5528: checking for shmat" >&5
5315 5528
5316 cat > conftest.$ac_ext <<EOF 5529 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure" 5530 #line 5531 "configure"
5318 #include "confdefs.h" 5531 #include "confdefs.h"
5319 /* System header to define __stub macros and hopefully few prototypes, 5532 /* System header to define __stub macros and hopefully few prototypes,
5320 which can conflict with char shmat(); below. */ 5533 which can conflict with char shmat(); below. */
5321 #include <assert.h> 5534 #include <assert.h>
5322 /* Override any gcc2 internal prototype to avoid an error. */ 5535 /* Override any gcc2 internal prototype to avoid an error. */
5335 shmat(); 5548 shmat();
5336 #endif 5549 #endif
5337 5550
5338 ; return 0; } 5551 ; return 0; }
5339 EOF 5552 EOF
5340 if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5553 if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5341 rm -rf conftest* 5554 rm -rf conftest*
5342 eval "ac_cv_func_shmat=yes" 5555 eval "ac_cv_func_shmat=yes"
5343 else 5556 else
5344 echo "configure: failed program was:" >&5 5557 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5 5558 cat conftest.$ac_ext >&5
5356 fi 5569 fi
5357 5570
5358 if test $ac_cv_func_shmat = no; then 5571 if test $ac_cv_func_shmat = no; then
5359 5572
5360 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5573 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5361 echo "configure:5362: checking for shmat in -lipc" >&5 5574 echo "configure:5575: checking for shmat in -lipc" >&5
5362 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5575 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5363 5576
5364 xe_check_libs=" -lipc " 5577 xe_check_libs=" -lipc "
5365 cat > conftest.$ac_ext <<EOF 5578 cat > conftest.$ac_ext <<EOF
5366 #line 5367 "configure" 5579 #line 5580 "configure"
5367 #include "confdefs.h" 5580 #include "confdefs.h"
5368 /* Override any gcc2 internal prototype to avoid an error. */ 5581 /* Override any gcc2 internal prototype to avoid an error. */
5369 /* We use char because int might match the return type of a gcc2 5582 /* We use char because int might match the return type of a gcc2
5370 builtin and then its argument prototype would still apply. */ 5583 builtin and then its argument prototype would still apply. */
5371 char shmat(); 5584 char shmat();
5372 5585
5373 int main() { 5586 int main() {
5374 shmat() 5587 shmat()
5375 ; return 0; } 5588 ; return 0; }
5376 EOF 5589 EOF
5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5590 if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5378 rm -rf conftest* 5591 rm -rf conftest*
5379 eval "ac_cv_lib_$ac_lib_var=yes" 5592 eval "ac_cv_lib_$ac_lib_var=yes"
5380 else 5593 else
5381 echo "configure: failed program was:" >&5 5594 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5 5595 cat conftest.$ac_ext >&5
5408 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5621 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5409 5622
5410 xe_msg_checking="for IceConnectionNumber in -lICE" 5623 xe_msg_checking="for IceConnectionNumber in -lICE"
5411 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5624 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5412 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5625 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5413 echo "configure:5414: checking "$xe_msg_checking"" >&5 5626 echo "configure:5627: checking "$xe_msg_checking"" >&5
5414 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5627 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5415 5628
5416 xe_check_libs=" -lICE $X_EXTRA_LIBS" 5629 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5417 cat > conftest.$ac_ext <<EOF 5630 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure" 5631 #line 5632 "configure"
5419 #include "confdefs.h" 5632 #include "confdefs.h"
5420 /* Override any gcc2 internal prototype to avoid an error. */ 5633 /* Override any gcc2 internal prototype to avoid an error. */
5421 /* We use char because int might match the return type of a gcc2 5634 /* We use char because int might match the return type of a gcc2
5422 builtin and then its argument prototype would still apply. */ 5635 builtin and then its argument prototype would still apply. */
5423 char IceConnectionNumber(); 5636 char IceConnectionNumber();
5424 5637
5425 int main() { 5638 int main() {
5426 IceConnectionNumber() 5639 IceConnectionNumber()
5427 ; return 0; } 5640 ; return 0; }
5428 EOF 5641 EOF
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5642 if { (eval echo configure:5643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430 rm -rf conftest* 5643 rm -rf conftest*
5431 eval "ac_cv_lib_$ac_lib_var=yes" 5644 eval "ac_cv_lib_$ac_lib_var=yes"
5432 else 5645 else
5433 echo "configure: failed program was:" >&5 5646 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5 5647 cat conftest.$ac_ext >&5
5593 EOF 5806 EOF
5594 } 5807 }
5595 5808
5596 5809
5597 echo "checking for X defines extracted by xmkmf" 1>&6 5810 echo "checking for X defines extracted by xmkmf" 1>&6
5598 echo "configure:5599: checking for X defines extracted by xmkmf" >&5 5811 echo "configure:5812: checking for X defines extracted by xmkmf" >&5
5599 rm -fr conftestdir 5812 rm -fr conftestdir
5600 if mkdir conftestdir; then 5813 if mkdir conftestdir; then
5601 cd conftestdir 5814 cd conftestdir
5602 cat > Imakefile <<'EOF' 5815 cat > Imakefile <<'EOF'
5603 xetest: 5816 xetest:
5625 done 5838 done
5626 fi 5839 fi
5627 5840
5628 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5841 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5629 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5842 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5630 echo "configure:5631: checking for X11/Intrinsic.h" >&5 5843 echo "configure:5844: checking for X11/Intrinsic.h" >&5
5631 5844
5632 cat > conftest.$ac_ext <<EOF 5845 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure" 5846 #line 5847 "configure"
5634 #include "confdefs.h" 5847 #include "confdefs.h"
5635 #include <X11/Intrinsic.h> 5848 #include <X11/Intrinsic.h>
5636 EOF 5849 EOF
5637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5638 { (eval echo configure:5639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5851 { (eval echo configure:5852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5640 if test -z "$ac_err"; then 5853 if test -z "$ac_err"; then
5641 rm -rf conftest* 5854 rm -rf conftest*
5642 eval "ac_cv_header_$ac_safe=yes" 5855 eval "ac_cv_header_$ac_safe=yes"
5643 else 5856 else
5657 fi 5870 fi
5658 5871
5659 5872
5660 5873
5661 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5874 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5662 echo "configure:5663: checking for XOpenDisplay in -lX11" >&5 5875 echo "configure:5876: checking for XOpenDisplay in -lX11" >&5
5663 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5876 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5664 5877
5665 xe_check_libs=" -lX11 " 5878 xe_check_libs=" -lX11 "
5666 cat > conftest.$ac_ext <<EOF 5879 cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure" 5880 #line 5881 "configure"
5668 #include "confdefs.h" 5881 #include "confdefs.h"
5669 /* Override any gcc2 internal prototype to avoid an error. */ 5882 /* Override any gcc2 internal prototype to avoid an error. */
5670 /* We use char because int might match the return type of a gcc2 5883 /* We use char because int might match the return type of a gcc2
5671 builtin and then its argument prototype would still apply. */ 5884 builtin and then its argument prototype would still apply. */
5672 char XOpenDisplay(); 5885 char XOpenDisplay();
5673 5886
5674 int main() { 5887 int main() {
5675 XOpenDisplay() 5888 XOpenDisplay()
5676 ; return 0; } 5889 ; return 0; }
5677 EOF 5890 EOF
5678 if { (eval echo configure:5679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5679 rm -rf conftest* 5892 rm -rf conftest*
5680 eval "ac_cv_lib_$ac_lib_var=yes" 5893 eval "ac_cv_lib_$ac_lib_var=yes"
5681 else 5894 else
5682 echo "configure: failed program was:" >&5 5895 echo "configure: failed program was:" >&5
5683 cat conftest.$ac_ext >&5 5896 cat conftest.$ac_ext >&5
5698 if test "$have_lib_x11" != "yes"; then 5911 if test "$have_lib_x11" != "yes"; then
5699 5912
5700 xe_msg_checking="for XGetFontProperty in -lX11" 5913 xe_msg_checking="for XGetFontProperty in -lX11"
5701 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5914 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5702 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5915 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5703 echo "configure:5704: checking "$xe_msg_checking"" >&5 5916 echo "configure:5917: checking "$xe_msg_checking"" >&5
5704 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5917 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5705 5918
5706 xe_check_libs=" -lX11 -b i486-linuxaout" 5919 xe_check_libs=" -lX11 -b i486-linuxaout"
5707 cat > conftest.$ac_ext <<EOF 5920 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure" 5921 #line 5922 "configure"
5709 #include "confdefs.h" 5922 #include "confdefs.h"
5710 /* Override any gcc2 internal prototype to avoid an error. */ 5923 /* Override any gcc2 internal prototype to avoid an error. */
5711 /* We use char because int might match the return type of a gcc2 5924 /* We use char because int might match the return type of a gcc2
5712 builtin and then its argument prototype would still apply. */ 5925 builtin and then its argument prototype would still apply. */
5713 char XGetFontProperty(); 5926 char XGetFontProperty();
5714 5927
5715 int main() { 5928 int main() {
5716 XGetFontProperty() 5929 XGetFontProperty()
5717 ; return 0; } 5930 ; return 0; }
5718 EOF 5931 EOF
5719 if { (eval echo configure:5720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5932 if { (eval echo configure:5933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5720 rm -rf conftest* 5933 rm -rf conftest*
5721 eval "ac_cv_lib_$ac_lib_var=yes" 5934 eval "ac_cv_lib_$ac_lib_var=yes"
5722 else 5935 else
5723 echo "configure: failed program was:" >&5 5936 echo "configure: failed program was:" >&5
5724 cat conftest.$ac_ext >&5 5937 cat conftest.$ac_ext >&5
5741 libs_x="-lX11" 5954 libs_x="-lX11"
5742 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5955 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5743 5956
5744 5957
5745 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5958 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5746 echo "configure:5747: checking for XShapeSelectInput in -lXext" >&5 5959 echo "configure:5960: checking for XShapeSelectInput in -lXext" >&5
5747 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5960 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5748 5961
5749 xe_check_libs=" -lXext " 5962 xe_check_libs=" -lXext "
5750 cat > conftest.$ac_ext <<EOF 5963 cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure" 5964 #line 5965 "configure"
5752 #include "confdefs.h" 5965 #include "confdefs.h"
5753 /* Override any gcc2 internal prototype to avoid an error. */ 5966 /* Override any gcc2 internal prototype to avoid an error. */
5754 /* We use char because int might match the return type of a gcc2 5967 /* We use char because int might match the return type of a gcc2
5755 builtin and then its argument prototype would still apply. */ 5968 builtin and then its argument prototype would still apply. */
5756 char XShapeSelectInput(); 5969 char XShapeSelectInput();
5757 5970
5758 int main() { 5971 int main() {
5759 XShapeSelectInput() 5972 XShapeSelectInput()
5760 ; return 0; } 5973 ; return 0; }
5761 EOF 5974 EOF
5762 if { (eval echo configure:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5975 if { (eval echo configure:5976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5763 rm -rf conftest* 5976 rm -rf conftest*
5764 eval "ac_cv_lib_$ac_lib_var=yes" 5977 eval "ac_cv_lib_$ac_lib_var=yes"
5765 else 5978 else
5766 echo "configure: failed program was:" >&5 5979 echo "configure: failed program was:" >&5
5767 cat conftest.$ac_ext >&5 5980 cat conftest.$ac_ext >&5
5780 5993
5781 5994
5782 5995
5783 5996
5784 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5997 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5785 echo "configure:5786: checking for XtOpenDisplay in -lXt" >&5 5998 echo "configure:5999: checking for XtOpenDisplay in -lXt" >&5
5786 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5999 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5787 6000
5788 xe_check_libs=" -lXt " 6001 xe_check_libs=" -lXt "
5789 cat > conftest.$ac_ext <<EOF 6002 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure" 6003 #line 6004 "configure"
5791 #include "confdefs.h" 6004 #include "confdefs.h"
5792 /* Override any gcc2 internal prototype to avoid an error. */ 6005 /* Override any gcc2 internal prototype to avoid an error. */
5793 /* We use char because int might match the return type of a gcc2 6006 /* We use char because int might match the return type of a gcc2
5794 builtin and then its argument prototype would still apply. */ 6007 builtin and then its argument prototype would still apply. */
5795 char XtOpenDisplay(); 6008 char XtOpenDisplay();
5796 6009
5797 int main() { 6010 int main() {
5798 XtOpenDisplay() 6011 XtOpenDisplay()
5799 ; return 0; } 6012 ; return 0; }
5800 EOF 6013 EOF
5801 if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6014 if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5802 rm -rf conftest* 6015 rm -rf conftest*
5803 eval "ac_cv_lib_$ac_lib_var=yes" 6016 eval "ac_cv_lib_$ac_lib_var=yes"
5804 else 6017 else
5805 echo "configure: failed program was:" >&5 6018 echo "configure: failed program was:" >&5
5806 cat conftest.$ac_ext >&5 6019 cat conftest.$ac_ext >&5
5819 fi 6032 fi
5820 6033
5821 6034
5822 6035
5823 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 6036 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5824 echo "configure:5825: checking the version of X11 being used" >&5 6037 echo "configure:6038: checking the version of X11 being used" >&5
5825 cat > conftest.$ac_ext <<EOF 6038 cat > conftest.$ac_ext <<EOF
5826 #line 5827 "configure" 6039 #line 6040 "configure"
5827 #include "confdefs.h" 6040 #include "confdefs.h"
5828 #include <X11/Intrinsic.h> 6041 #include <X11/Intrinsic.h>
5829 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 6042 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5830 EOF 6043 EOF
5831 if { (eval echo configure:5832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5832 then 6045 then
5833 ./conftest foobar; x11_release=$? 6046 ./conftest foobar; x11_release=$?
5834 else 6047 else
5835 conftest_rc="$?" 6048 conftest_rc="$?"
5836 echo "configure: failed program was:" >&5 6049 echo "configure: failed program was:" >&5
5847 #define THIS_IS_X11R${x11_release} 1 6060 #define THIS_IS_X11R${x11_release} 1
5848 EOF 6061 EOF
5849 } 6062 }
5850 6063
5851 6064
6065 for ac_func in XConvertCase
6066 do
6067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6068 echo "configure:6069: checking for $ac_func" >&5
6069
6070 cat > conftest.$ac_ext <<EOF
6071 #line 6072 "configure"
6072 #include "confdefs.h"
6073 /* System header to define __stub macros and hopefully few prototypes,
6074 which can conflict with char $ac_func(); below. */
6075 #include <assert.h>
6076 /* Override any gcc2 internal prototype to avoid an error. */
6077 /* We use char because int might match the return type of a gcc2
6078 builtin and then its argument prototype would still apply. */
6079 char $ac_func();
6080
6081 int main() {
6082
6083 /* The GNU C library defines this for functions which it implements
6084 to always fail with ENOSYS. Some functions are actually named
6085 something starting with __ and the normal name is an alias. */
6086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6087 choke me
6088 #else
6089 $ac_func();
6090 #endif
6091
6092 ; return 0; }
6093 EOF
6094 if { (eval echo configure:6095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6095 rm -rf conftest*
6096 eval "ac_cv_func_$ac_func=yes"
6097 else
6098 echo "configure: failed program was:" >&5
6099 cat conftest.$ac_ext >&5
6100 rm -rf conftest*
6101 eval "ac_cv_func_$ac_func=no"
6102 fi
6103 rm -f conftest*
6104
6105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6108 { test "$extra_verbose" = "yes" && cat << EOF
6109 Defining $ac_tr_func
6110 EOF
6111 cat >> confdefs.h <<EOF
6112 #define $ac_tr_func 1
6113 EOF
6114 }
6115
6116 else
6117 echo "$ac_t""no" 1>&6
6118 fi
6119 done
6120
6121
5852 for ac_hdr in X11/Xlocale.h 6122 for ac_hdr in X11/Xlocale.h
5853 do 6123 do
5854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5856 echo "configure:5857: checking for $ac_hdr" >&5 6126 echo "configure:6127: checking for $ac_hdr" >&5
5857 6127
5858 cat > conftest.$ac_ext <<EOF 6128 cat > conftest.$ac_ext <<EOF
5859 #line 5860 "configure" 6129 #line 6130 "configure"
5860 #include "confdefs.h" 6130 #include "confdefs.h"
5861 #include <$ac_hdr> 6131 #include <$ac_hdr>
5862 EOF 6132 EOF
5863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6133 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; } 6134 { (eval echo configure:6135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5866 if test -z "$ac_err"; then 6136 if test -z "$ac_err"; then
5867 rm -rf conftest* 6137 rm -rf conftest*
5868 eval "ac_cv_header_$ac_safe=yes" 6138 eval "ac_cv_header_$ac_safe=yes"
5869 else 6139 else
5890 fi 6160 fi
5891 done 6161 done
5892 6162
5893 6163
5894 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 6164 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5895 echo "configure:5896: checking for XFree86" >&5 6165 echo "configure:6166: checking for XFree86" >&5
5896 if test -d "/usr/X386/include" -o \ 6166 if test -d "/usr/X386/include" -o \
5897 -f "/etc/XF86Config" -o \ 6167 -f "/etc/XF86Config" -o \
5898 -f "/etc/X11/XF86Config" -o \ 6168 -f "/etc/X11/XF86Config" -o \
5899 -f "/usr/X11R6/lib/X11/XF86Config"; then 6169 -f "/usr/X11R6/lib/X11/XF86Config"; then
5900 echo "$ac_t""yes" 1>&6 6170 echo "$ac_t""yes" 1>&6
5910 echo "$ac_t""no" 1>&6 6180 echo "$ac_t""no" 1>&6
5911 fi 6181 fi
5912 6182
5913 test -z "$with_xmu" && { 6183 test -z "$with_xmu" && {
5914 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 6184 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5915 echo "configure:5916: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 6185 echo "configure:6186: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5916 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 6186 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5917 6187
5918 xe_check_libs=" -lXmu " 6188 xe_check_libs=" -lXmu "
5919 cat > conftest.$ac_ext <<EOF 6189 cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure" 6190 #line 6191 "configure"
5921 #include "confdefs.h" 6191 #include "confdefs.h"
5922 /* Override any gcc2 internal prototype to avoid an error. */ 6192 /* Override any gcc2 internal prototype to avoid an error. */
5923 /* We use char because int might match the return type of a gcc2 6193 /* We use char because int might match the return type of a gcc2
5924 builtin and then its argument prototype would still apply. */ 6194 builtin and then its argument prototype would still apply. */
5925 char XmuReadBitmapDataFromFile(); 6195 char XmuReadBitmapDataFromFile();
5926 6196
5927 int main() { 6197 int main() {
5928 XmuReadBitmapDataFromFile() 6198 XmuReadBitmapDataFromFile()
5929 ; return 0; } 6199 ; return 0; }
5930 EOF 6200 EOF
5931 if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5932 rm -rf conftest* 6202 rm -rf conftest*
5933 eval "ac_cv_lib_$ac_lib_var=yes" 6203 eval "ac_cv_lib_$ac_lib_var=yes"
5934 else 6204 else
5935 echo "configure: failed program was:" >&5 6205 echo "configure: failed program was:" >&5
5936 cat conftest.$ac_ext >&5 6206 cat conftest.$ac_ext >&5
5965 6235
5966 fi 6236 fi
5967 6237
5968 6238
5969 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 6239 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5970 echo "configure:5971: checking for main in -lXbsd" >&5 6240 echo "configure:6241: checking for main in -lXbsd" >&5
5971 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 6241 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5972 6242
5973 xe_check_libs=" -lXbsd " 6243 xe_check_libs=" -lXbsd "
5974 cat > conftest.$ac_ext <<EOF 6244 cat > conftest.$ac_ext <<EOF
5975 #line 5976 "configure" 6245 #line 6246 "configure"
5976 #include "confdefs.h" 6246 #include "confdefs.h"
5977 6247
5978 int main() { 6248 int main() {
5979 main() 6249 main()
5980 ; return 0; } 6250 ; return 0; }
5981 EOF 6251 EOF
5982 if { (eval echo configure:5983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6252 if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5983 rm -rf conftest* 6253 rm -rf conftest*
5984 eval "ac_cv_lib_$ac_lib_var=yes" 6254 eval "ac_cv_lib_$ac_lib_var=yes"
5985 else 6255 else
5986 echo "configure: failed program was:" >&5 6256 echo "configure: failed program was:" >&5
5987 cat conftest.$ac_ext >&5 6257 cat conftest.$ac_ext >&5
6014 fi 6284 fi
6015 6285
6016 fi 6286 fi
6017 if test "$with_msw" != "no"; then 6287 if test "$with_msw" != "no"; then
6018 echo "checking for MS-Windows" 1>&6 6288 echo "checking for MS-Windows" 1>&6
6019 echo "configure:6020: checking for MS-Windows" >&5 6289 echo "configure:6290: checking for MS-Windows" >&5
6020 6290
6021 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 6291 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6022 echo "configure:6023: checking for main in -lgdi32" >&5 6292 echo "configure:6293: checking for main in -lgdi32" >&5
6023 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 6293 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6024 6294
6025 xe_check_libs=" -lgdi32 " 6295 xe_check_libs=" -lgdi32 "
6026 cat > conftest.$ac_ext <<EOF 6296 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure" 6297 #line 6298 "configure"
6028 #include "confdefs.h" 6298 #include "confdefs.h"
6029 6299
6030 int main() { 6300 int main() {
6031 main() 6301 main()
6032 ; return 0; } 6302 ; return 0; }
6033 EOF 6303 EOF
6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6035 rm -rf conftest* 6305 rm -rf conftest*
6036 eval "ac_cv_lib_$ac_lib_var=yes" 6306 eval "ac_cv_lib_$ac_lib_var=yes"
6037 else 6307 else
6038 echo "configure: failed program was:" >&5 6308 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5 6309 cat conftest.$ac_ext >&5
6059 #define HAVE_MS_WINDOWS 1 6329 #define HAVE_MS_WINDOWS 1
6060 EOF 6330 EOF
6061 } 6331 }
6062 6332
6063 install_pp="$blddir/lib-src/installexe.sh" 6333 install_pp="$blddir/lib-src/installexe.sh"
6064 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi 6334 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
6065 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi 6335 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6066 if test "$window_system" != x11; then 6336 if test "$window_system" != x11; then
6067 window_system=msw 6337 window_system=msw
6068 test "$with_scrollbars" != "no" && with_scrollbars=msw \ 6338 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6069 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then 6339 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6079 fi 6349 fi
6080 test "$with_dialogs" != "no" && with_dialogs=msw \ 6350 test "$with_dialogs" != "no" && with_dialogs=msw \
6081 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 6351 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6082 echo " xemacs will be linked with \"dialog-msw.o\"" 6352 echo " xemacs will be linked with \"dialog-msw.o\""
6083 fi 6353 fi
6354 test "$with_widgets" != "no" && with_widgets=msw
6084 else 6355 else
6085 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then 6356 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6086 echo " xemacs will be linked with \"scrollbar-msw.o\"" 6357 echo " xemacs will be linked with \"scrollbar-msw.o\""
6087 fi 6358 fi
6088 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then 6359 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6094 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 6365 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6095 echo " xemacs will be linked with \"dialog-msw.o\"" 6366 echo " xemacs will be linked with \"dialog-msw.o\""
6096 fi 6367 fi
6097 fi 6368 fi
6098 cat > conftest.$ac_ext <<EOF 6369 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure" 6370 #line 6371 "configure"
6100 #include "confdefs.h" 6371 #include "confdefs.h"
6101 #include <fcntl.h> 6372 #include <fcntl.h>
6102 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 6373 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6103 EOF 6374 EOF
6104 if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6105 then 6376 then
6106 { test "$extra_verbose" = "yes" && cat << \EOF 6377 { test "$extra_verbose" = "yes" && cat << \EOF
6107 Defining HAVE_MSG_SELECT 6378 Defining HAVE_MSG_SELECT
6108 EOF 6379 EOF
6109 cat >> confdefs.h <<\EOF 6380 cat >> confdefs.h <<\EOF
6115 conftest_rc="$?" 6386 conftest_rc="$?"
6116 echo "configure: failed program was:" >&5 6387 echo "configure: failed program was:" >&5
6117 cat conftest.$ac_ext >&5 6388 cat conftest.$ac_ext >&5
6118 fi 6389 fi
6119 rm -fr conftest* 6390 rm -fr conftest*
6120 const_is_losing=no
6121 with_file_coding=yes 6391 with_file_coding=yes
6122 use_minimal_tagbits=yes
6123 use_indexed_lrecord_implementation=yes
6124 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o" && if test "$extra_verbose" = "yes"; then 6392 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o" && if test "$extra_verbose" = "yes"; then
6125 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o\"" 6393 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o\""
6126 fi 6394 fi
6127 fi 6395 fi
6128 fi 6396 fi
6154 else 6422 else
6155 : 6423 :
6156 fi 6424 fi
6157 6425
6158 if test "$with_x11" != "yes"; then 6426 if test "$with_x11" != "yes"; then
6159 for feature in tooltalk cde offix session xim xmu 6427 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
6160 do 6428 do
6161 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 6429 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
6162 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2 6430 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
6163 fi 6431 fi
6164 eval "with_${feature}=no" 6432 eval "with_${feature}=no"
6176 case "$x_libraries" in *X11R4* ) 6444 case "$x_libraries" in *X11R4* )
6177 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 6445 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6178 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 6446 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6179 esac 6447 esac
6180 6448
6181 echo "checking for session-management option" 1>&6 6449 echo "checking for WM_COMMAND option" 1>&6
6182 echo "configure:6183: checking for session-management option" >&5; 6450 echo "configure:6451: checking for WM_COMMAND option" >&5;
6183 if test "$with_session" != "no"; then 6451 if test "$with_wmcommand" != "no"; then
6184 { test "$extra_verbose" = "yes" && cat << \EOF 6452 { test "$extra_verbose" = "yes" && cat << \EOF
6185 Defining HAVE_SESSION 6453 Defining HAVE_WMCOMMAND
6186 EOF 6454 EOF
6187 cat >> confdefs.h <<\EOF 6455 cat >> confdefs.h <<\EOF
6188 #define HAVE_SESSION 1 6456 #define HAVE_WMCOMMAND 1
6189 EOF 6457 EOF
6190 } 6458 }
6191 6459
6192 fi 6460 fi
6193 6461
6194 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 6462 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6195 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 6463 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6196 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 6464 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6197 echo "configure:6198: checking for X11/Xauth.h" >&5 6465 echo "configure:6466: checking for X11/Xauth.h" >&5
6198 6466
6199 cat > conftest.$ac_ext <<EOF 6467 cat > conftest.$ac_ext <<EOF
6200 #line 6201 "configure" 6468 #line 6469 "configure"
6201 #include "confdefs.h" 6469 #include "confdefs.h"
6202 #include <X11/Xauth.h> 6470 #include <X11/Xauth.h>
6203 EOF 6471 EOF
6204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6205 { (eval echo configure:6206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6473 { (eval echo configure:6474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6207 if test -z "$ac_err"; then 6475 if test -z "$ac_err"; then
6208 rm -rf conftest* 6476 rm -rf conftest*
6209 eval "ac_cv_header_$ac_safe=yes" 6477 eval "ac_cv_header_$ac_safe=yes"
6210 else 6478 else
6223 with_xauth=no 6491 with_xauth=no
6224 fi 6492 fi
6225 } 6493 }
6226 test -z "$with_xauth" && { 6494 test -z "$with_xauth" && {
6227 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 6495 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6228 echo "configure:6229: checking for XauGetAuthByAddr in -lXau" >&5 6496 echo "configure:6497: checking for XauGetAuthByAddr in -lXau" >&5
6229 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6497 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6230 6498
6231 xe_check_libs=" -lXau " 6499 xe_check_libs=" -lXau "
6232 cat > conftest.$ac_ext <<EOF 6500 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure" 6501 #line 6502 "configure"
6234 #include "confdefs.h" 6502 #include "confdefs.h"
6235 /* Override any gcc2 internal prototype to avoid an error. */ 6503 /* Override any gcc2 internal prototype to avoid an error. */
6236 /* We use char because int might match the return type of a gcc2 6504 /* We use char because int might match the return type of a gcc2
6237 builtin and then its argument prototype would still apply. */ 6505 builtin and then its argument prototype would still apply. */
6238 char XauGetAuthByAddr(); 6506 char XauGetAuthByAddr();
6239 6507
6240 int main() { 6508 int main() {
6241 XauGetAuthByAddr() 6509 XauGetAuthByAddr()
6242 ; return 0; } 6510 ; return 0; }
6243 EOF 6511 EOF
6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6512 if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6245 rm -rf conftest* 6513 rm -rf conftest*
6246 eval "ac_cv_lib_$ac_lib_var=yes" 6514 eval "ac_cv_lib_$ac_lib_var=yes"
6247 else 6515 else
6248 echo "configure: failed program was:" >&5 6516 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5 6517 cat conftest.$ac_ext >&5
6284 6552
6285 if test "$with_tooltalk" != "no" ; then 6553 if test "$with_tooltalk" != "no" ; then
6286 for dir in "" "Tt/" "desktop/" ; do 6554 for dir in "" "Tt/" "desktop/" ; do
6287 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6555 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6288 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6556 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6289 echo "configure:6290: checking for ${dir}tt_c.h" >&5 6557 echo "configure:6558: checking for ${dir}tt_c.h" >&5
6290 6558
6291 cat > conftest.$ac_ext <<EOF 6559 cat > conftest.$ac_ext <<EOF
6292 #line 6293 "configure" 6560 #line 6561 "configure"
6293 #include "confdefs.h" 6561 #include "confdefs.h"
6294 #include <${dir}tt_c.h> 6562 #include <${dir}tt_c.h>
6295 EOF 6563 EOF
6296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6297 { (eval echo configure:6298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6565 { (eval echo configure:6566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6299 if test -z "$ac_err"; then 6567 if test -z "$ac_err"; then
6300 rm -rf conftest* 6568 rm -rf conftest*
6301 eval "ac_cv_header_$ac_safe=yes" 6569 eval "ac_cv_header_$ac_safe=yes"
6302 else 6570 else
6328 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6596 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6329 6597
6330 xe_msg_checking="for tt_message_create in -ltt" 6598 xe_msg_checking="for tt_message_create in -ltt"
6331 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6599 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6332 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6600 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6333 echo "configure:6334: checking "$xe_msg_checking"" >&5 6601 echo "configure:6602: checking "$xe_msg_checking"" >&5
6334 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6602 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6335 6603
6336 xe_check_libs=" -ltt $extra_libs" 6604 xe_check_libs=" -ltt $extra_libs"
6337 cat > conftest.$ac_ext <<EOF 6605 cat > conftest.$ac_ext <<EOF
6338 #line 6339 "configure" 6606 #line 6607 "configure"
6339 #include "confdefs.h" 6607 #include "confdefs.h"
6340 /* Override any gcc2 internal prototype to avoid an error. */ 6608 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2 6609 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */ 6610 builtin and then its argument prototype would still apply. */
6343 char tt_message_create(); 6611 char tt_message_create();
6344 6612
6345 int main() { 6613 int main() {
6346 tt_message_create() 6614 tt_message_create()
6347 ; return 0; } 6615 ; return 0; }
6348 EOF 6616 EOF
6349 if { (eval echo configure:6350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6617 if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6350 rm -rf conftest* 6618 rm -rf conftest*
6351 eval "ac_cv_lib_$ac_lib_var=yes" 6619 eval "ac_cv_lib_$ac_lib_var=yes"
6352 else 6620 else
6353 echo "configure: failed program was:" >&5 6621 echo "configure: failed program was:" >&5
6354 cat conftest.$ac_ext >&5 6622 cat conftest.$ac_ext >&5
6401 fi 6669 fi
6402 fi 6670 fi
6403 6671
6404 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6672 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6405 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6673 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6406 echo "configure:6407: checking for Dt/Dt.h" >&5 6674 echo "configure:6675: checking for Dt/Dt.h" >&5
6407 6675
6408 cat > conftest.$ac_ext <<EOF 6676 cat > conftest.$ac_ext <<EOF
6409 #line 6410 "configure" 6677 #line 6678 "configure"
6410 #include "confdefs.h" 6678 #include "confdefs.h"
6411 #include <Dt/Dt.h> 6679 #include <Dt/Dt.h>
6412 EOF 6680 EOF
6413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6414 { (eval echo configure:6415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6682 { (eval echo configure:6683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6416 if test -z "$ac_err"; then 6684 if test -z "$ac_err"; then
6417 rm -rf conftest* 6685 rm -rf conftest*
6418 eval "ac_cv_header_$ac_safe=yes" 6686 eval "ac_cv_header_$ac_safe=yes"
6419 else 6687 else
6432 with_cde=no 6700 with_cde=no
6433 fi 6701 fi
6434 } 6702 }
6435 test -z "$with_cde" && { 6703 test -z "$with_cde" && {
6436 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6704 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6437 echo "configure:6438: checking for DtDndDragStart in -lDtSvc" >&5 6705 echo "configure:6706: checking for DtDndDragStart in -lDtSvc" >&5
6438 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6706 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6439 6707
6440 xe_check_libs=" -lDtSvc " 6708 xe_check_libs=" -lDtSvc "
6441 cat > conftest.$ac_ext <<EOF 6709 cat > conftest.$ac_ext <<EOF
6442 #line 6443 "configure" 6710 #line 6711 "configure"
6443 #include "confdefs.h" 6711 #include "confdefs.h"
6444 /* Override any gcc2 internal prototype to avoid an error. */ 6712 /* Override any gcc2 internal prototype to avoid an error. */
6445 /* We use char because int might match the return type of a gcc2 6713 /* We use char because int might match the return type of a gcc2
6446 builtin and then its argument prototype would still apply. */ 6714 builtin and then its argument prototype would still apply. */
6447 char DtDndDragStart(); 6715 char DtDndDragStart();
6448 6716
6449 int main() { 6717 int main() {
6450 DtDndDragStart() 6718 DtDndDragStart()
6451 ; return 0; } 6719 ; return 0; }
6452 EOF 6720 EOF
6453 if { (eval echo configure:6454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6721 if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6454 rm -rf conftest* 6722 rm -rf conftest*
6455 eval "ac_cv_lib_$ac_lib_var=yes" 6723 eval "ac_cv_lib_$ac_lib_var=yes"
6456 else 6724 else
6457 echo "configure: failed program was:" >&5 6725 echo "configure: failed program was:" >&5
6458 cat conftest.$ac_ext >&5 6726 cat conftest.$ac_ext >&5
6517 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6785 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6518 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6786 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6519 fi 6787 fi
6520 6788
6521 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6789 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6522 echo "configure:6523: checking if drag and drop API is needed" >&5 6790 echo "configure:6791: checking if drag and drop API is needed" >&5
6523 if test "$with_dragndrop" != "no" ; then 6791 if test "$with_dragndrop" != "no" ; then
6524 if test -n "$dragndrop_proto" ; then 6792 if test -n "$dragndrop_proto" ; then
6525 with_dragndrop=yes 6793 with_dragndrop=yes
6526 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6794 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6527 { test "$extra_verbose" = "yes" && cat << \EOF 6795 { test "$extra_verbose" = "yes" && cat << \EOF
6538 echo "$ac_t""no" 1>&6 6806 echo "$ac_t""no" 1>&6
6539 fi 6807 fi
6540 fi 6808 fi
6541 6809
6542 echo "checking for LDAP" 1>&6 6810 echo "checking for LDAP" 1>&6
6543 echo "configure:6544: checking for LDAP" >&5 6811 echo "configure:6812: checking for LDAP" >&5
6544 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6812 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6545 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6813 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6546 echo "configure:6547: checking for ldap.h" >&5 6814 echo "configure:6815: checking for ldap.h" >&5
6547 6815
6548 cat > conftest.$ac_ext <<EOF 6816 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure" 6817 #line 6818 "configure"
6550 #include "confdefs.h" 6818 #include "confdefs.h"
6551 #include <ldap.h> 6819 #include <ldap.h>
6552 EOF 6820 EOF
6553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6554 { (eval echo configure:6555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6822 { (eval echo configure:6823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6556 if test -z "$ac_err"; then 6824 if test -z "$ac_err"; then
6557 rm -rf conftest* 6825 rm -rf conftest*
6558 eval "ac_cv_header_$ac_safe=yes" 6826 eval "ac_cv_header_$ac_safe=yes"
6559 else 6827 else
6572 with_ldap=no 6840 with_ldap=no
6573 fi 6841 fi
6574 } 6842 }
6575 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6843 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6576 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6844 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6577 echo "configure:6578: checking for lber.h" >&5 6845 echo "configure:6846: checking for lber.h" >&5
6578 6846
6579 cat > conftest.$ac_ext <<EOF 6847 cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure" 6848 #line 6849 "configure"
6581 #include "confdefs.h" 6849 #include "confdefs.h"
6582 #include <lber.h> 6850 #include <lber.h>
6583 EOF 6851 EOF
6584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6585 { (eval echo configure:6586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6853 { (eval echo configure:6854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6587 if test -z "$ac_err"; then 6855 if test -z "$ac_err"; then
6588 rm -rf conftest* 6856 rm -rf conftest*
6589 eval "ac_cv_header_$ac_safe=yes" 6857 eval "ac_cv_header_$ac_safe=yes"
6590 else 6858 else
6602 echo "$ac_t""no" 1>&6 6870 echo "$ac_t""no" 1>&6
6603 with_ldap=no 6871 with_ldap=no
6604 fi 6872 fi
6605 } 6873 }
6606 if test "$with_ldap" != "no"; then 6874 if test "$with_ldap" != "no"; then
6607 test -z "$with_umich_ldap" && { 6875
6876 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6877 echo "configure:6878: checking for ldap_search in -lldap" >&5
6878 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6879
6880 xe_check_libs=" -lldap "
6881 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6884 /* Override any gcc2 internal prototype to avoid an error. */
6885 /* We use char because int might match the return type of a gcc2
6886 builtin and then its argument prototype would still apply. */
6887 char ldap_search();
6888
6889 int main() {
6890 ldap_search()
6891 ; return 0; }
6892 EOF
6893 if { (eval echo configure:6894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6894 rm -rf conftest*
6895 eval "ac_cv_lib_$ac_lib_var=yes"
6896 else
6897 echo "configure: failed program was:" >&5
6898 cat conftest.$ac_ext >&5
6899 rm -rf conftest*
6900 eval "ac_cv_lib_$ac_lib_var=no"
6901 fi
6902 rm -f conftest*
6903 xe_check_libs=""
6904
6905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6906 echo "$ac_t""yes" 1>&6
6907 with_ldap_nolber=yes
6908 else
6909 echo "$ac_t""no" 1>&6
6910 with_ldap_nolber=no
6911 fi
6912
6913
6914 test "$with_ldap_nolber" = "no" && {
6608 xe_msg_checking="for ldap_open in -lldap" 6915 xe_msg_checking="for ldap_open in -lldap"
6609 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6916 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6610 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6917 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6611 echo "configure:6612: checking "$xe_msg_checking"" >&5 6918 echo "configure:6919: checking "$xe_msg_checking"" >&5
6612 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6919 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6613 6920
6614 xe_check_libs=" -lldap -llber" 6921 xe_check_libs=" -lldap -llber"
6615 cat > conftest.$ac_ext <<EOF 6922 cat > conftest.$ac_ext <<EOF
6616 #line 6617 "configure" 6923 #line 6924 "configure"
6617 #include "confdefs.h" 6924 #include "confdefs.h"
6618 /* Override any gcc2 internal prototype to avoid an error. */ 6925 /* Override any gcc2 internal prototype to avoid an error. */
6619 /* We use char because int might match the return type of a gcc2 6926 /* We use char because int might match the return type of a gcc2
6620 builtin and then its argument prototype would still apply. */ 6927 builtin and then its argument prototype would still apply. */
6621 char ldap_open(); 6928 char ldap_open();
6622 6929
6623 int main() { 6930 int main() {
6624 ldap_open() 6931 ldap_open()
6625 ; return 0; } 6932 ; return 0; }
6626 EOF 6933 EOF
6627 if { (eval echo configure:6628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6628 rm -rf conftest* 6935 rm -rf conftest*
6629 eval "ac_cv_lib_$ac_lib_var=yes" 6936 eval "ac_cv_lib_$ac_lib_var=yes"
6630 else 6937 else
6631 echo "configure: failed program was:" >&5 6938 echo "configure: failed program was:" >&5
6632 cat conftest.$ac_ext >&5 6939 cat conftest.$ac_ext >&5
6636 rm -f conftest* 6943 rm -f conftest*
6637 xe_check_libs="" 6944 xe_check_libs=""
6638 6945
6639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 6946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6640 echo "$ac_t""yes" 1>&6 6947 echo "$ac_t""yes" 1>&6
6641 with_umich_ldap=yes 6948 with_ldap_lber=yes
6642 else 6949 else
6643 echo "$ac_t""no" 1>&6 6950 echo "$ac_t""no" 1>&6
6644 with_umich_ldap=no 6951 with_ldap_lber=no
6645 fi 6952 fi
6646 6953
6647 } 6954 }
6648 test "$with_umich_ldap" = "no" && { 6955 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6649 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6 6956 xe_msg_checking="for ldap_open in -lldap"
6650 echo "configure:6651: checking for ldap_set_option in -lldap10" >&5 6957 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6651 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'` 6958 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6652 6959 echo "configure:6960: checking "$xe_msg_checking"" >&5
6653 xe_check_libs=" -lldap10 " 6960 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6654 cat > conftest.$ac_ext <<EOF 6961
6655 #line 6656 "configure" 6962 xe_check_libs=" -lldap -llber -lkrb"
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6656 #include "confdefs.h" 6965 #include "confdefs.h"
6657 /* Override any gcc2 internal prototype to avoid an error. */ 6966 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2 6967 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */ 6968 builtin and then its argument prototype would still apply. */
6660 char ldap_set_option(); 6969 char ldap_open();
6661 6970
6662 int main() { 6971 int main() {
6663 ldap_set_option() 6972 ldap_open()
6664 ; return 0; } 6973 ; return 0; }
6665 EOF 6974 EOF
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6975 if { (eval echo configure:6976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6667 rm -rf conftest* 6976 rm -rf conftest*
6668 eval "ac_cv_lib_$ac_lib_var=yes" 6977 eval "ac_cv_lib_$ac_lib_var=yes"
6669 else 6978 else
6670 echo "configure: failed program was:" >&5 6979 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5 6980 cat conftest.$ac_ext >&5
6675 rm -f conftest* 6984 rm -f conftest*
6676 xe_check_libs="" 6985 xe_check_libs=""
6677 6986
6678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 6987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6679 echo "$ac_t""yes" 1>&6 6988 echo "$ac_t""yes" 1>&6
6680 with_ns_ldap=yes 6989 with_ldap_krb=yes
6681 else 6990 else
6682 echo "$ac_t""no" 1>&6 6991 echo "$ac_t""no" 1>&6
6683 with_ns_ldap=no 6992 with_ldap_krb=no
6684 fi 6993 fi
6685 6994
6686 } 6995 }
6687 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes 6996 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6997 xe_msg_checking="for ldap_open in -lldap"
6998 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6999 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7000 echo "configure:7001: checking "$xe_msg_checking"" >&5
7001 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7002
7003 xe_check_libs=" -lldap -llber -lkrb -ldes"
7004 cat > conftest.$ac_ext <<EOF
7005 #line 7006 "configure"
7006 #include "confdefs.h"
7007 /* Override any gcc2 internal prototype to avoid an error. */
7008 /* We use char because int might match the return type of a gcc2
7009 builtin and then its argument prototype would still apply. */
7010 char ldap_open();
7011
7012 int main() {
7013 ldap_open()
7014 ; return 0; }
7015 EOF
7016 if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7017 rm -rf conftest*
7018 eval "ac_cv_lib_$ac_lib_var=yes"
7019 else
7020 echo "configure: failed program was:" >&5
7021 cat conftest.$ac_ext >&5
7022 rm -rf conftest*
7023 eval "ac_cv_lib_$ac_lib_var=no"
7024 fi
7025 rm -f conftest*
7026 xe_check_libs=""
7027
7028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7029 echo "$ac_t""yes" 1>&6
7030 with_ldap_krbdes=yes
7031 else
7032 echo "$ac_t""no" 1>&6
7033 with_ldap_krbdes=no
7034 fi
7035
7036 }
7037 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
6688 fi 7038 fi
6689 if test "$with_ldap" = "yes"; then 7039 if test "$with_ldap" = "yes"; then
6690 { test "$extra_verbose" = "yes" && cat << \EOF 7040 { test "$extra_verbose" = "yes" && cat << \EOF
6691 Defining HAVE_LDAP 7041 Defining HAVE_LDAP
6692 EOF 7042 EOF
6696 } 7046 }
6697 7047
6698 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then 7048 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6699 echo " xemacs will be linked with \"eldap.o\"" 7049 echo " xemacs will be linked with \"eldap.o\""
6700 fi 7050 fi
6701 if test "$with_umich_ldap" = "yes" ; then 7051 if test "$with_ldap_nolber" = "yes" ; then
6702 { test "$extra_verbose" = "yes" && cat << \EOF 7052 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6703 Defining HAVE_UMICH_LDAP 7053 else
6704 EOF 7054 if test "$with_ldap_krb" = "yes" ; then
6705 cat >> confdefs.h <<\EOF 7055 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6706 #define HAVE_UMICH_LDAP 1 7056 fi
6707 EOF 7057 if test "$with_ldap_krbdes" = "yes" ; then
6708 } 7058 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
6709 7059 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
7060 fi
6710 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi 7061 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6711 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 7062 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6712 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
6713 { test "$extra_verbose" = "yes" && cat << \EOF
6714 Defining HAVE_NS_LDAP
6715 EOF
6716 cat >> confdefs.h <<\EOF
6717 #define HAVE_NS_LDAP 1
6718 EOF
6719 }
6720
6721 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
6722 elif test "$with_ldap" = "yes" ; then
6723 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6724 fi 7063 fi
7064 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7065 do
7066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7067 echo "configure:7068: checking for $ac_func" >&5
7068
7069 cat > conftest.$ac_ext <<EOF
7070 #line 7071 "configure"
7071 #include "confdefs.h"
7072 /* System header to define __stub macros and hopefully few prototypes,
7073 which can conflict with char $ac_func(); below. */
7074 #include <assert.h>
7075 /* Override any gcc2 internal prototype to avoid an error. */
7076 /* We use char because int might match the return type of a gcc2
7077 builtin and then its argument prototype would still apply. */
7078 char $ac_func();
7079
7080 int main() {
7081
7082 /* The GNU C library defines this for functions which it implements
7083 to always fail with ENOSYS. Some functions are actually named
7084 something starting with __ and the normal name is an alias. */
7085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7086 choke me
7087 #else
7088 $ac_func();
7089 #endif
7090
7091 ; return 0; }
7092 EOF
7093 if { (eval echo configure:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7094 rm -rf conftest*
7095 eval "ac_cv_func_$ac_func=yes"
7096 else
7097 echo "configure: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7099 rm -rf conftest*
7100 eval "ac_cv_func_$ac_func=no"
7101 fi
7102 rm -f conftest*
7103
7104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7105 echo "$ac_t""yes" 1>&6
7106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7107 { test "$extra_verbose" = "yes" && cat << EOF
7108 Defining $ac_tr_func
7109 EOF
7110 cat >> confdefs.h <<EOF
7111 #define $ac_tr_func 1
7112 EOF
7113 }
7114
7115 else
7116 echo "$ac_t""no" 1>&6
7117 fi
7118 done
7119
6725 fi 7120 fi
6726 7121
6727 7122
6728 if test "$window_system" != "none"; then 7123 if test "$window_system" != "none"; then
6729 echo "checking for graphics libraries" 1>&6 7124 echo "checking for graphics libraries" 1>&6
6730 echo "configure:6731: checking for graphics libraries" >&5 7125 echo "configure:7126: checking for graphics libraries" >&5
6731 7126
6732 xpm_problem="" 7127 xpm_problem=""
6733 if test -z "$with_xpm"; then 7128 if test -z "$with_xpm"; then
6734 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 7129 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6735 echo "configure:6736: checking for Xpm - no older than 3.4f" >&5 7130 echo "configure:7131: checking for Xpm - no older than 3.4f" >&5
6736 xe_check_libs=-lXpm 7131 xe_check_libs=-lXpm
6737 cat > conftest.$ac_ext <<EOF 7132 cat > conftest.$ac_ext <<EOF
6738 #line 6739 "configure" 7133 #line 7134 "configure"
6739 #include "confdefs.h" 7134 #include "confdefs.h"
7135 #define XPM_NUMBERS
6740 #include <X11/xpm.h> 7136 #include <X11/xpm.h>
6741 int main(int c, char **v) { 7137 int main(int c, char **v) {
6742 return c == 1 ? 0 : 7138 return c == 1 ? 0 :
6743 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 7139 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6744 XpmIncludeVersion < 30406 ? 2 : 0 ;} 7140 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6745 EOF 7141 EOF
6746 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7142 if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6747 then 7143 then
6748 ./conftest dummy_arg; xpm_status=$?; 7144 ./conftest dummy_arg; xpm_status=$?;
6749 if test "$xpm_status" = "0"; then 7145 if test "$xpm_status" = "0"; then
6750 with_xpm=yes; 7146 with_xpm=yes;
6751 else 7147 else
6783 EOF 7179 EOF
6784 } 7180 }
6785 7181
6786 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 7182 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6787 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 7183 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6788 echo "configure:6789: checking for \"FOR_MSW\" xpm" >&5 7184 echo "configure:7185: checking for \"FOR_MSW\" xpm" >&5
6789 xe_check_libs=-lXpm 7185 xe_check_libs=-lXpm
6790 cat > conftest.$ac_ext <<EOF 7186 cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure" 7187 #line 7188 "configure"
6792 #include "confdefs.h" 7188 #include "confdefs.h"
6793 7189
6794 int main() { 7190 int main() {
6795 XpmCreatePixmapFromData() 7191 XpmCreatePixmapFromData()
6796 ; return 0; } 7192 ; return 0; }
6797 EOF 7193 EOF
6798 if { (eval echo configure:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6799 rm -rf conftest* 7195 rm -rf conftest*
6800 xpm_for_msw=no 7196 xpm_for_msw=no
6801 else 7197 else
6802 echo "configure: failed program was:" >&5 7198 echo "configure: failed program was:" >&5
6803 cat conftest.$ac_ext >&5 7199 cat conftest.$ac_ext >&5
6819 fi 7215 fi
6820 fi 7216 fi
6821 7217
6822 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7218 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6823 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7219 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6824 echo "configure:6825: checking for compface.h" >&5 7220 echo "configure:7221: checking for compface.h" >&5
6825 7221
6826 cat > conftest.$ac_ext <<EOF 7222 cat > conftest.$ac_ext <<EOF
6827 #line 6828 "configure" 7223 #line 7224 "configure"
6828 #include "confdefs.h" 7224 #include "confdefs.h"
6829 #include <compface.h> 7225 #include <compface.h>
6830 EOF 7226 EOF
6831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6832 { (eval echo configure:6833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7228 { (eval echo configure:7229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6834 if test -z "$ac_err"; then 7230 if test -z "$ac_err"; then
6835 rm -rf conftest* 7231 rm -rf conftest*
6836 eval "ac_cv_header_$ac_safe=yes" 7232 eval "ac_cv_header_$ac_safe=yes"
6837 else 7233 else
6850 with_xface=no 7246 with_xface=no
6851 fi 7247 fi
6852 } 7248 }
6853 test -z "$with_xface" && { 7249 test -z "$with_xface" && {
6854 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7250 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6855 echo "configure:6856: checking for UnGenFace in -lcompface" >&5 7251 echo "configure:7252: checking for UnGenFace in -lcompface" >&5
6856 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7252 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6857 7253
6858 xe_check_libs=" -lcompface " 7254 xe_check_libs=" -lcompface "
6859 cat > conftest.$ac_ext <<EOF 7255 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure" 7256 #line 7257 "configure"
6861 #include "confdefs.h" 7257 #include "confdefs.h"
6862 /* Override any gcc2 internal prototype to avoid an error. */ 7258 /* Override any gcc2 internal prototype to avoid an error. */
6863 /* We use char because int might match the return type of a gcc2 7259 /* We use char because int might match the return type of a gcc2
6864 builtin and then its argument prototype would still apply. */ 7260 builtin and then its argument prototype would still apply. */
6865 char UnGenFace(); 7261 char UnGenFace();
6866 7262
6867 int main() { 7263 int main() {
6868 UnGenFace() 7264 UnGenFace()
6869 ; return 0; } 7265 ; return 0; }
6870 EOF 7266 EOF
6871 if { (eval echo configure:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7267 if { (eval echo configure:7268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6872 rm -rf conftest* 7268 rm -rf conftest*
6873 eval "ac_cv_lib_$ac_lib_var=yes" 7269 eval "ac_cv_lib_$ac_lib_var=yes"
6874 else 7270 else
6875 echo "configure: failed program was:" >&5 7271 echo "configure: failed program was:" >&5
6876 cat conftest.$ac_ext >&5 7272 cat conftest.$ac_ext >&5
6918 fi 7314 fi
6919 7315
6920 if test "$with_png $with_tiff" != "no no"; then 7316 if test "$with_png $with_tiff" != "no no"; then
6921 7317
6922 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 7318 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6923 echo "configure:6924: checking for inflate in -lc" >&5 7319 echo "configure:7320: checking for inflate in -lc" >&5
6924 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 7320 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6925 7321
6926 xe_check_libs=" -lc " 7322 xe_check_libs=" -lc "
6927 cat > conftest.$ac_ext <<EOF 7323 cat > conftest.$ac_ext <<EOF
6928 #line 6929 "configure" 7324 #line 7325 "configure"
6929 #include "confdefs.h" 7325 #include "confdefs.h"
6930 /* Override any gcc2 internal prototype to avoid an error. */ 7326 /* Override any gcc2 internal prototype to avoid an error. */
6931 /* We use char because int might match the return type of a gcc2 7327 /* We use char because int might match the return type of a gcc2
6932 builtin and then its argument prototype would still apply. */ 7328 builtin and then its argument prototype would still apply. */
6933 char inflate(); 7329 char inflate();
6934 7330
6935 int main() { 7331 int main() {
6936 inflate() 7332 inflate()
6937 ; return 0; } 7333 ; return 0; }
6938 EOF 7334 EOF
6939 if { (eval echo configure:6940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7335 if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6940 rm -rf conftest* 7336 rm -rf conftest*
6941 eval "ac_cv_lib_$ac_lib_var=yes" 7337 eval "ac_cv_lib_$ac_lib_var=yes"
6942 else 7338 else
6943 echo "configure: failed program was:" >&5 7339 echo "configure: failed program was:" >&5
6944 cat conftest.$ac_ext >&5 7340 cat conftest.$ac_ext >&5
6953 : 7349 :
6954 else 7350 else
6955 echo "$ac_t""no" 1>&6 7351 echo "$ac_t""no" 1>&6
6956 7352
6957 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 7353 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6958 echo "configure:6959: checking for inflate in -lz" >&5 7354 echo "configure:7355: checking for inflate in -lz" >&5
6959 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 7355 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6960 7356
6961 xe_check_libs=" -lz " 7357 xe_check_libs=" -lz "
6962 cat > conftest.$ac_ext <<EOF 7358 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure" 7359 #line 7360 "configure"
6964 #include "confdefs.h" 7360 #include "confdefs.h"
6965 /* Override any gcc2 internal prototype to avoid an error. */ 7361 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2 7362 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */ 7363 builtin and then its argument prototype would still apply. */
6968 char inflate(); 7364 char inflate();
6969 7365
6970 int main() { 7366 int main() {
6971 inflate() 7367 inflate()
6972 ; return 0; } 7368 ; return 0; }
6973 EOF 7369 EOF
6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7370 if { (eval echo configure:7371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6975 rm -rf conftest* 7371 rm -rf conftest*
6976 eval "ac_cv_lib_$ac_lib_var=yes" 7372 eval "ac_cv_lib_$ac_lib_var=yes"
6977 else 7373 else
6978 echo "configure: failed program was:" >&5 7374 echo "configure: failed program was:" >&5
6979 cat conftest.$ac_ext >&5 7375 cat conftest.$ac_ext >&5
6988 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 7384 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6989 else 7385 else
6990 echo "$ac_t""no" 1>&6 7386 echo "$ac_t""no" 1>&6
6991 7387
6992 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 7388 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6993 echo "configure:6994: checking for inflate in -lgz" >&5 7389 echo "configure:7390: checking for inflate in -lgz" >&5
6994 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 7390 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6995 7391
6996 xe_check_libs=" -lgz " 7392 xe_check_libs=" -lgz "
6997 cat > conftest.$ac_ext <<EOF 7393 cat > conftest.$ac_ext <<EOF
6998 #line 6999 "configure" 7394 #line 7395 "configure"
6999 #include "confdefs.h" 7395 #include "confdefs.h"
7000 /* Override any gcc2 internal prototype to avoid an error. */ 7396 /* Override any gcc2 internal prototype to avoid an error. */
7001 /* We use char because int might match the return type of a gcc2 7397 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */ 7398 builtin and then its argument prototype would still apply. */
7003 char inflate(); 7399 char inflate();
7004 7400
7005 int main() { 7401 int main() {
7006 inflate() 7402 inflate()
7007 ; return 0; } 7403 ; return 0; }
7008 EOF 7404 EOF
7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7405 if { (eval echo configure:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7010 rm -rf conftest* 7406 rm -rf conftest*
7011 eval "ac_cv_lib_$ac_lib_var=yes" 7407 eval "ac_cv_lib_$ac_lib_var=yes"
7012 else 7408 else
7013 echo "configure: failed program was:" >&5 7409 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5 7410 cat conftest.$ac_ext >&5
7034 7430
7035 fi 7431 fi
7036 7432
7037 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 7433 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7038 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 7434 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7039 echo "configure:7040: checking for jpeglib.h" >&5 7435 echo "configure:7436: checking for jpeglib.h" >&5
7040 7436
7041 cat > conftest.$ac_ext <<EOF 7437 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure" 7438 #line 7439 "configure"
7043 #include "confdefs.h" 7439 #include "confdefs.h"
7044 #include <jpeglib.h> 7440 #include <jpeglib.h>
7045 EOF 7441 EOF
7046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7047 { (eval echo configure:7048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7443 { (eval echo configure:7444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7049 if test -z "$ac_err"; then 7445 if test -z "$ac_err"; then
7050 rm -rf conftest* 7446 rm -rf conftest*
7051 eval "ac_cv_header_$ac_safe=yes" 7447 eval "ac_cv_header_$ac_safe=yes"
7052 else 7448 else
7065 with_jpeg=no 7461 with_jpeg=no
7066 fi 7462 fi
7067 } 7463 }
7068 test -z "$with_jpeg" && { 7464 test -z "$with_jpeg" && {
7069 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 7465 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7070 echo "configure:7071: checking for jpeg_destroy_decompress in -ljpeg" >&5 7466 echo "configure:7467: checking for jpeg_destroy_decompress in -ljpeg" >&5
7071 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 7467 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7072 7468
7073 xe_check_libs=" -ljpeg " 7469 xe_check_libs=" -ljpeg "
7074 cat > conftest.$ac_ext <<EOF 7470 cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure" 7471 #line 7472 "configure"
7076 #include "confdefs.h" 7472 #include "confdefs.h"
7077 /* Override any gcc2 internal prototype to avoid an error. */ 7473 /* Override any gcc2 internal prototype to avoid an error. */
7078 /* We use char because int might match the return type of a gcc2 7474 /* We use char because int might match the return type of a gcc2
7079 builtin and then its argument prototype would still apply. */ 7475 builtin and then its argument prototype would still apply. */
7080 char jpeg_destroy_decompress(); 7476 char jpeg_destroy_decompress();
7081 7477
7082 int main() { 7478 int main() {
7083 jpeg_destroy_decompress() 7479 jpeg_destroy_decompress()
7084 ; return 0; } 7480 ; return 0; }
7085 EOF 7481 EOF
7086 if { (eval echo configure:7087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7087 rm -rf conftest* 7483 rm -rf conftest*
7088 eval "ac_cv_lib_$ac_lib_var=yes" 7484 eval "ac_cv_lib_$ac_lib_var=yes"
7089 else 7485 else
7090 echo "configure: failed program was:" >&5 7486 echo "configure: failed program was:" >&5
7091 cat conftest.$ac_ext >&5 7487 cat conftest.$ac_ext >&5
7117 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 7513 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7118 fi 7514 fi
7119 7515
7120 png_problem="" 7516 png_problem=""
7121 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 7517 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7122 echo "configure:7123: checking for pow" >&5 7518 echo "configure:7519: checking for pow" >&5
7123 7519
7124 cat > conftest.$ac_ext <<EOF 7520 cat > conftest.$ac_ext <<EOF
7125 #line 7126 "configure" 7521 #line 7522 "configure"
7126 #include "confdefs.h" 7522 #include "confdefs.h"
7127 /* System header to define __stub macros and hopefully few prototypes, 7523 /* System header to define __stub macros and hopefully few prototypes,
7128 which can conflict with char pow(); below. */ 7524 which can conflict with char pow(); below. */
7129 #include <assert.h> 7525 #include <assert.h>
7130 /* Override any gcc2 internal prototype to avoid an error. */ 7526 /* Override any gcc2 internal prototype to avoid an error. */
7143 pow(); 7539 pow();
7144 #endif 7540 #endif
7145 7541
7146 ; return 0; } 7542 ; return 0; }
7147 EOF 7543 EOF
7148 if { (eval echo configure:7149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7544 if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7149 rm -rf conftest* 7545 rm -rf conftest*
7150 eval "ac_cv_func_pow=yes" 7546 eval "ac_cv_func_pow=yes"
7151 else 7547 else
7152 echo "configure: failed program was:" >&5 7548 echo "configure: failed program was:" >&5
7153 cat conftest.$ac_ext >&5 7549 cat conftest.$ac_ext >&5
7164 with_png=no 7560 with_png=no
7165 fi 7561 fi
7166 } 7562 }
7167 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 7563 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7168 echo $ac_n "checking for png.h""... $ac_c" 1>&6 7564 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7169 echo "configure:7170: checking for png.h" >&5 7565 echo "configure:7566: checking for png.h" >&5
7170 7566
7171 cat > conftest.$ac_ext <<EOF 7567 cat > conftest.$ac_ext <<EOF
7172 #line 7173 "configure" 7568 #line 7569 "configure"
7173 #include "confdefs.h" 7569 #include "confdefs.h"
7174 #include <png.h> 7570 #include <png.h>
7175 EOF 7571 EOF
7176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7177 { (eval echo configure:7178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7573 { (eval echo configure:7574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7179 if test -z "$ac_err"; then 7575 if test -z "$ac_err"; then
7180 rm -rf conftest* 7576 rm -rf conftest*
7181 eval "ac_cv_header_$ac_safe=yes" 7577 eval "ac_cv_header_$ac_safe=yes"
7182 else 7578 else
7195 with_png=no 7591 with_png=no
7196 fi 7592 fi
7197 } 7593 }
7198 test -z "$with_png" && { 7594 test -z "$with_png" && {
7199 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 7595 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7200 echo "configure:7201: checking for png_read_image in -lpng" >&5 7596 echo "configure:7597: checking for png_read_image in -lpng" >&5
7201 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 7597 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7202 7598
7203 xe_check_libs=" -lpng " 7599 xe_check_libs=" -lpng "
7204 cat > conftest.$ac_ext <<EOF 7600 cat > conftest.$ac_ext <<EOF
7205 #line 7206 "configure" 7601 #line 7602 "configure"
7206 #include "confdefs.h" 7602 #include "confdefs.h"
7207 /* Override any gcc2 internal prototype to avoid an error. */ 7603 /* Override any gcc2 internal prototype to avoid an error. */
7208 /* We use char because int might match the return type of a gcc2 7604 /* We use char because int might match the return type of a gcc2
7209 builtin and then its argument prototype would still apply. */ 7605 builtin and then its argument prototype would still apply. */
7210 char png_read_image(); 7606 char png_read_image();
7211 7607
7212 int main() { 7608 int main() {
7213 png_read_image() 7609 png_read_image()
7214 ; return 0; } 7610 ; return 0; }
7215 EOF 7611 EOF
7216 if { (eval echo configure:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7217 rm -rf conftest* 7613 rm -rf conftest*
7218 eval "ac_cv_lib_$ac_lib_var=yes" 7614 eval "ac_cv_lib_$ac_lib_var=yes"
7219 else 7615 else
7220 echo "configure: failed program was:" >&5 7616 echo "configure: failed program was:" >&5
7221 cat conftest.$ac_ext >&5 7617 cat conftest.$ac_ext >&5
7234 fi 7630 fi
7235 7631
7236 } 7632 }
7237 if test -z "$with_png"; then 7633 if test -z "$with_png"; then
7238 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 7634 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7239 echo "configure:7240: checking for workable png version information" >&5 7635 echo "configure:7636: checking for workable png version information" >&5
7240 xe_check_libs="-lpng -lz" 7636 xe_check_libs="-lpng -lz"
7241 cat > conftest.$ac_ext <<EOF 7637 cat > conftest.$ac_ext <<EOF
7242 #line 7243 "configure" 7638 #line 7639 "configure"
7243 #include "confdefs.h" 7639 #include "confdefs.h"
7244 #include <png.h> 7640 #include <png.h>
7245 int main(int c, char **v) { 7641 int main(int c, char **v) {
7246 if (c == 1) return 0; 7642 if (c == 1) return 0;
7247 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 7643 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7248 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 7644 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7249 EOF 7645 EOF
7250 if { (eval echo configure:7251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7646 if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7251 then 7647 then
7252 ./conftest dummy_arg; png_status=$?; 7648 ./conftest dummy_arg; png_status=$?;
7253 if test "$png_status" = "0"; then 7649 if test "$png_status" = "0"; then
7254 with_png=yes; 7650 with_png=yes;
7255 else 7651 else
7288 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 7684 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7289 fi 7685 fi
7290 7686
7291 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 7687 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7292 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7688 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7293 echo "configure:7294: checking for tiffio.h" >&5 7689 echo "configure:7690: checking for tiffio.h" >&5
7294 7690
7295 cat > conftest.$ac_ext <<EOF 7691 cat > conftest.$ac_ext <<EOF
7296 #line 7297 "configure" 7692 #line 7693 "configure"
7297 #include "confdefs.h" 7693 #include "confdefs.h"
7298 #include <tiffio.h> 7694 #include <tiffio.h>
7299 EOF 7695 EOF
7300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7301 { (eval echo configure:7302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7697 { (eval echo configure:7698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7303 if test -z "$ac_err"; then 7699 if test -z "$ac_err"; then
7304 rm -rf conftest* 7700 rm -rf conftest*
7305 eval "ac_cv_header_$ac_safe=yes" 7701 eval "ac_cv_header_$ac_safe=yes"
7306 else 7702 else
7319 with_tiff=no 7715 with_tiff=no
7320 fi 7716 fi
7321 } 7717 }
7322 test -z "$with_tiff" && { 7718 test -z "$with_tiff" && {
7323 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7719 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7324 echo "configure:7325: checking for TIFFClientOpen in -ltiff" >&5 7720 echo "configure:7721: checking for TIFFClientOpen in -ltiff" >&5
7325 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7721 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7326 7722
7327 xe_check_libs=" -ltiff " 7723 xe_check_libs=" -ltiff "
7328 cat > conftest.$ac_ext <<EOF 7724 cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure" 7725 #line 7726 "configure"
7330 #include "confdefs.h" 7726 #include "confdefs.h"
7331 /* Override any gcc2 internal prototype to avoid an error. */ 7727 /* Override any gcc2 internal prototype to avoid an error. */
7332 /* We use char because int might match the return type of a gcc2 7728 /* We use char because int might match the return type of a gcc2
7333 builtin and then its argument prototype would still apply. */ 7729 builtin and then its argument prototype would still apply. */
7334 char TIFFClientOpen(); 7730 char TIFFClientOpen();
7335 7731
7336 int main() { 7732 int main() {
7337 TIFFClientOpen() 7733 TIFFClientOpen()
7338 ; return 0; } 7734 ; return 0; }
7339 EOF 7735 EOF
7340 if { (eval echo configure:7341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7736 if { (eval echo configure:7737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7341 rm -rf conftest* 7737 rm -rf conftest*
7342 eval "ac_cv_lib_$ac_lib_var=yes" 7738 eval "ac_cv_lib_$ac_lib_var=yes"
7343 else 7739 else
7344 echo "configure: failed program was:" >&5 7740 echo "configure: failed program was:" >&5
7345 cat conftest.$ac_ext >&5 7741 cat conftest.$ac_ext >&5
7374 7770
7375 7771
7376 if test "$with_x11" = "yes"; then 7772 if test "$with_x11" = "yes"; then
7377 7773
7378 echo "checking for X11 graphics libraries" 1>&6 7774 echo "checking for X11 graphics libraries" 1>&6
7379 echo "configure:7380: checking for X11 graphics libraries" >&5 7775 echo "configure:7776: checking for X11 graphics libraries" >&5
7380 7776
7777 echo "checking for the Athena widgets" 1>&6
7778 echo "configure:7779: checking for the Athena widgets" >&5
7779
7780 case "$with_athena" in
7781 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
7782 "3d") athena_variant=Xaw3d athena_3d=yes ;;
7783 "next") athena_variant=neXtaw athena_3d=yes ;;
7784 "95") athena_variant=Xaw95 athena_3d=yes ;;
7785 "xpm") athena_variant=XawXpm athena_3d=yes ;;
7786 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
7787 esac
7788
7789 if test "$athena_3d" = "no"; then
7381 7790
7382 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 7791 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
7383 echo "configure:7384: checking for XawScrollbarSetThumb in -lXaw" >&5 7792 echo "configure:7793: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
7384 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7793 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7385 7794
7386 xe_check_libs=" -lXaw " 7795 xe_check_libs=" -l$athena_variant "
7387 cat > conftest.$ac_ext <<EOF 7796 cat > conftest.$ac_ext <<EOF
7388 #line 7389 "configure" 7797 #line 7798 "configure"
7389 #include "confdefs.h" 7798 #include "confdefs.h"
7390 /* Override any gcc2 internal prototype to avoid an error. */ 7799 /* Override any gcc2 internal prototype to avoid an error. */
7391 /* We use char because int might match the return type of a gcc2 7800 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */ 7801 builtin and then its argument prototype would still apply. */
7393 char XawScrollbarSetThumb(); 7802 char XawScrollbarSetThumb();
7394 7803
7395 int main() { 7804 int main() {
7396 XawScrollbarSetThumb() 7805 XawScrollbarSetThumb()
7397 ; return 0; } 7806 ; return 0; }
7398 EOF 7807 EOF
7399 if { (eval echo configure:7400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7808 if { (eval echo configure:7809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7400 rm -rf conftest* 7809 rm -rf conftest*
7401 eval "ac_cv_lib_$ac_lib_var=yes" 7810 eval "ac_cv_lib_$ac_lib_var=yes"
7402 else 7811 else
7403 echo "configure: failed program was:" >&5 7812 echo "configure: failed program was:" >&5
7404 cat conftest.$ac_ext >&5 7813 cat conftest.$ac_ext >&5
7408 rm -f conftest* 7817 rm -f conftest*
7409 xe_check_libs="" 7818 xe_check_libs=""
7410 7819
7411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 7820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7412 echo "$ac_t""yes" 1>&6 7821 echo "$ac_t""yes" 1>&6
7413 have_xaw=yes 7822
7414 else 7823 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7415 echo "$ac_t""no" 1>&6 7824 echo "configure:7825: checking for threeDClassRec in -l$athena_variant" >&5
7416 have_xaw=no 7825 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7417 fi 7826
7418 7827 xe_check_libs=" -l$athena_variant "
7419 7828 cat > conftest.$ac_ext <<EOF
7420 7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 /* Override any gcc2 internal prototype to avoid an error. */
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7834 char threeDClassRec();
7835
7836 int main() {
7837 threeDClassRec()
7838 ; return 0; }
7839 EOF
7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7841 rm -rf conftest*
7842 eval "ac_cv_lib_$ac_lib_var=yes"
7843 else
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7846 rm -rf conftest*
7847 eval "ac_cv_lib_$ac_lib_var=no"
7848 fi
7849 rm -f conftest*
7850 xe_check_libs=""
7851
7852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7853 echo "$ac_t""yes" 1>&6
7854 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
7855 else
7856 echo "$ac_t""no" 1>&6
7857 athena_lib=$athena_variant
7858 fi
7859
7860
7861
7862 else
7863 echo "$ac_t""no" 1>&6
7864 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
7865 fi
7866
7867
7868 else
7869
7870 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7871 echo "configure:7872: checking for threeDClassRec in -l$athena_variant" >&5
7872 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7873
7874 xe_check_libs=" -l$athena_variant "
7875 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 /* Override any gcc2 internal prototype to avoid an error. */
7879 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7881 char threeDClassRec();
7882
7883 int main() {
7884 threeDClassRec()
7885 ; return 0; }
7886 EOF
7887 if { (eval echo configure:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7888 rm -rf conftest*
7889 eval "ac_cv_lib_$ac_lib_var=yes"
7890 else
7891 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7893 rm -rf conftest*
7894 eval "ac_cv_lib_$ac_lib_var=no"
7895 fi
7896 rm -f conftest*
7897 xe_check_libs=""
7898
7899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7900 echo "$ac_t""yes" 1>&6
7901 athena_lib=$athena_variant
7902 else
7903 echo "$ac_t""no" 1>&6
7904 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
7905 echo "configure:7906: checking for threeDClassRec in -lXaw" >&5
7906 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
7907
7908 xe_check_libs=" -lXaw "
7909 cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure"
7911 #include "confdefs.h"
7912 /* Override any gcc2 internal prototype to avoid an error. */
7913 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7915 char threeDClassRec();
7916
7917 int main() {
7918 threeDClassRec()
7919 ; return 0; }
7920 EOF
7921 if { (eval echo configure:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7922 rm -rf conftest*
7923 eval "ac_cv_lib_$ac_lib_var=yes"
7924 else
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7927 rm -rf conftest*
7928 eval "ac_cv_lib_$ac_lib_var=no"
7929 fi
7930 rm -f conftest*
7931 xe_check_libs=""
7932
7933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7934 echo "$ac_t""yes" 1>&6
7935 athena_lib=Xaw;
7936 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
7937
7938 else
7939 echo "$ac_t""no" 1>&6
7940 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
7941 fi
7942
7943
7944 fi
7945
7946
7947 fi
7948
7949 if test "$athena_3d" = "no"; then
7950 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
7951 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
7952 echo "configure:7953: checking for X11/Xaw/ThreeD.h" >&5
7953
7954 cat > conftest.$ac_ext <<EOF
7955 #line 7956 "configure"
7956 #include "confdefs.h"
7957 #include <X11/Xaw/ThreeD.h>
7958 EOF
7959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7960 { (eval echo configure:7961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7962 if test -z "$ac_err"; then
7963 rm -rf conftest*
7964 eval "ac_cv_header_$ac_safe=yes"
7965 else
7966 echo "$ac_err" >&5
7967 echo "configure: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7969 rm -rf conftest*
7970 eval "ac_cv_header_$ac_safe=no"
7971 fi
7972 rm -f conftest*
7973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
7976 else
7977 echo "$ac_t""no" 1>&6
7978 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
7979 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
7980 echo "configure:7981: checking for X11/Xaw/XawInit.h" >&5
7981
7982 cat > conftest.$ac_ext <<EOF
7983 #line 7984 "configure"
7984 #include "confdefs.h"
7985 #include <X11/Xaw/XawInit.h>
7986 EOF
7987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7988 { (eval echo configure:7989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7990 if test -z "$ac_err"; then
7991 rm -rf conftest*
7992 eval "ac_cv_header_$ac_safe=yes"
7993 else
7994 echo "$ac_err" >&5
7995 echo "configure: failed program was:" >&5
7996 cat conftest.$ac_ext >&5
7997 rm -rf conftest*
7998 eval "ac_cv_header_$ac_safe=no"
7999 fi
8000 rm -f conftest*
8001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6
8003 athena_h_path=X11/Xaw
8004 else
8005 echo "$ac_t""no" 1>&6
8006 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8007 fi
8008
8009 fi
8010
8011 else
8012 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8013 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8014 echo "configure:8015: checking for X11/$athena_variant/XawInit.h" >&5
8015
8016 cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure"
8018 #include "confdefs.h"
8019 #include <X11/$athena_variant/XawInit.h>
8020 EOF
8021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8022 { (eval echo configure:8023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8024 if test -z "$ac_err"; then
8025 rm -rf conftest*
8026 eval "ac_cv_header_$ac_safe=yes"
8027 else
8028 echo "$ac_err" >&5
8029 echo "configure: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8031 rm -rf conftest*
8032 eval "ac_cv_header_$ac_safe=no"
8033 fi
8034 rm -f conftest*
8035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8036 echo "$ac_t""yes" 1>&6
8037 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8038 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8039 echo "configure:8040: checking for X11/$athena_variant/ThreeD.h" >&5
8040
8041 cat > conftest.$ac_ext <<EOF
8042 #line 8043 "configure"
8043 #include "confdefs.h"
8044 #include <X11/$athena_variant/ThreeD.h>
8045 EOF
8046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8047 { (eval echo configure:8048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8049 if test -z "$ac_err"; then
8050 rm -rf conftest*
8051 eval "ac_cv_header_$ac_safe=yes"
8052 else
8053 echo "$ac_err" >&5
8054 echo "configure: failed program was:" >&5
8055 cat conftest.$ac_ext >&5
8056 rm -rf conftest*
8057 eval "ac_cv_header_$ac_safe=no"
8058 fi
8059 rm -f conftest*
8060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8061 echo "$ac_t""yes" 1>&6
8062 athena_h_path=X11/$athena_variant
8063 else
8064 echo "$ac_t""no" 1>&6
8065 fi
8066
8067 else
8068 echo "$ac_t""no" 1>&6
8069 fi
8070
8071
8072 if test -z "$athena_h_path"; then
8073 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8074 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8075 echo "configure:8076: checking for $athena_variant/XawInit.h" >&5
8076
8077 cat > conftest.$ac_ext <<EOF
8078 #line 8079 "configure"
8079 #include "confdefs.h"
8080 #include <$athena_variant/XawInit.h>
8081 EOF
8082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8083 { (eval echo configure:8084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8085 if test -z "$ac_err"; then
8086 rm -rf conftest*
8087 eval "ac_cv_header_$ac_safe=yes"
8088 else
8089 echo "$ac_err" >&5
8090 echo "configure: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8092 rm -rf conftest*
8093 eval "ac_cv_header_$ac_safe=no"
8094 fi
8095 rm -f conftest*
8096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8097 echo "$ac_t""yes" 1>&6
8098 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8099 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8100 echo "configure:8101: checking for $athena_variant/ThreeD.h" >&5
8101
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 #include <$athena_variant/ThreeD.h>
8106 EOF
8107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8108 { (eval echo configure:8109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8110 if test -z "$ac_err"; then
8111 rm -rf conftest*
8112 eval "ac_cv_header_$ac_safe=yes"
8113 else
8114 echo "$ac_err" >&5
8115 echo "configure: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8117 rm -rf conftest*
8118 eval "ac_cv_header_$ac_safe=no"
8119 fi
8120 rm -f conftest*
8121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8122 echo "$ac_t""yes" 1>&6
8123 athena_h_path=$athena_variant
8124 else
8125 echo "$ac_t""no" 1>&6
8126 fi
8127
8128 else
8129 echo "$ac_t""no" 1>&6
8130 fi
8131
8132 fi
8133
8134 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8135 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8136 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8137 echo "configure:8138: checking for X11/Xaw3d/XawInit.h" >&5
8138
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 #include <X11/Xaw3d/XawInit.h>
8143 EOF
8144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8145 { (eval echo configure:8146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8147 if test -z "$ac_err"; then
8148 rm -rf conftest*
8149 eval "ac_cv_header_$ac_safe=yes"
8150 else
8151 echo "$ac_err" >&5
8152 echo "configure: failed program was:" >&5
8153 cat conftest.$ac_ext >&5
8154 rm -rf conftest*
8155 eval "ac_cv_header_$ac_safe=no"
8156 fi
8157 rm -f conftest*
8158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8159 echo "$ac_t""yes" 1>&6
8160 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8161 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8162 echo "configure:8163: checking for X11/Xaw3d/ThreeD.h" >&5
8163
8164 cat > conftest.$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8167 #include <X11/Xaw3d/ThreeD.h>
8168 EOF
8169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8170 { (eval echo configure:8171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8172 if test -z "$ac_err"; then
8173 rm -rf conftest*
8174 eval "ac_cv_header_$ac_safe=yes"
8175 else
8176 echo "$ac_err" >&5
8177 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8179 rm -rf conftest*
8180 eval "ac_cv_header_$ac_safe=no"
8181 fi
8182 rm -f conftest*
8183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8184 echo "$ac_t""yes" 1>&6
8185
8186 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
8187 athena_h_path=X11/Xaw3d
8188
8189 else
8190 echo "$ac_t""no" 1>&6
8191 fi
8192
8193 else
8194 echo "$ac_t""no" 1>&6
8195 fi
8196
8197 fi
8198
8199 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8200 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8201 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8202 echo "configure:8203: checking for Xaw3d/XawInit.h" >&5
8203
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8207 #include <Xaw3d/XawInit.h>
8208 EOF
8209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8210 { (eval echo configure:8211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8212 if test -z "$ac_err"; then
8213 rm -rf conftest*
8214 eval "ac_cv_header_$ac_safe=yes"
8215 else
8216 echo "$ac_err" >&5
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8219 rm -rf conftest*
8220 eval "ac_cv_header_$ac_safe=no"
8221 fi
8222 rm -f conftest*
8223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8224 echo "$ac_t""yes" 1>&6
8225 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8226 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8227 echo "configure:8228: checking for Xaw3d/ThreeD.h" >&5
8228
8229 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8232 #include <Xaw3d/ThreeD.h>
8233 EOF
8234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8235 { (eval echo configure:8236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8237 if test -z "$ac_err"; then
8238 rm -rf conftest*
8239 eval "ac_cv_header_$ac_safe=yes"
8240 else
8241 echo "$ac_err" >&5
8242 echo "configure: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8244 rm -rf conftest*
8245 eval "ac_cv_header_$ac_safe=no"
8246 fi
8247 rm -f conftest*
8248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8249 echo "$ac_t""yes" 1>&6
8250
8251 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8252 athena_h_path=Xaw3d
8253
8254 else
8255 echo "$ac_t""no" 1>&6
8256 fi
8257
8258 else
8259 echo "$ac_t""no" 1>&6
8260 fi
8261
8262 fi
8263
8264 if test -z "$athena_h_path"; then
8265 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8266 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8267 echo "configure:8268: checking for X11/Xaw/ThreeD.h" >&5
8268
8269 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8272 #include <X11/Xaw/ThreeD.h>
8273 EOF
8274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8275 { (eval echo configure:8276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8277 if test -z "$ac_err"; then
8278 rm -rf conftest*
8279 eval "ac_cv_header_$ac_safe=yes"
8280 else
8281 echo "$ac_err" >&5
8282 echo "configure: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8284 rm -rf conftest*
8285 eval "ac_cv_header_$ac_safe=no"
8286 fi
8287 rm -f conftest*
8288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8289 echo "$ac_t""yes" 1>&6
8290
8291 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
8292 athena_h_path=X11/Xaw
8293
8294 else
8295 echo "$ac_t""no" 1>&6
8296 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
8297 fi
8298
8299 fi
8300 fi
8301
8302 if test -n "$athena_lib" -a -n "$athena_h_path"; then
8303 have_xaw=yes
8304 else
8305 have_xaw=no
8306 fi
8307
7421 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 8308 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7422 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 8309 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7423 echo "configure:7424: checking for Xm/Xm.h" >&5 8310 echo "configure:8311: checking for Xm/Xm.h" >&5
7424 8311
7425 cat > conftest.$ac_ext <<EOF 8312 cat > conftest.$ac_ext <<EOF
7426 #line 7427 "configure" 8313 #line 8314 "configure"
7427 #include "confdefs.h" 8314 #include "confdefs.h"
7428 #include <Xm/Xm.h> 8315 #include <Xm/Xm.h>
7429 EOF 8316 EOF
7430 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"
7431 { (eval echo configure:7432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8318 { (eval echo configure:8319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7433 if test -z "$ac_err"; then 8320 if test -z "$ac_err"; then
7434 rm -rf conftest* 8321 rm -rf conftest*
7435 eval "ac_cv_header_$ac_safe=yes" 8322 eval "ac_cv_header_$ac_safe=yes"
7436 else 8323 else
7443 rm -f conftest* 8330 rm -f conftest*
7444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7445 echo "$ac_t""yes" 1>&6 8332 echo "$ac_t""yes" 1>&6
7446 8333
7447 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 8334 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7448 echo "configure:7449: checking for XmStringFree in -lXm" >&5 8335 echo "configure:8336: checking for XmStringFree in -lXm" >&5
7449 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 8336 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7450 8337
7451 xe_check_libs=" -lXm " 8338 xe_check_libs=" -lXm "
7452 cat > conftest.$ac_ext <<EOF 8339 cat > conftest.$ac_ext <<EOF
7453 #line 7454 "configure" 8340 #line 8341 "configure"
7454 #include "confdefs.h" 8341 #include "confdefs.h"
7455 /* Override any gcc2 internal prototype to avoid an error. */ 8342 /* Override any gcc2 internal prototype to avoid an error. */
7456 /* We use char because int might match the return type of a gcc2 8343 /* We use char because int might match the return type of a gcc2
7457 builtin and then its argument prototype would still apply. */ 8344 builtin and then its argument prototype would still apply. */
7458 char XmStringFree(); 8345 char XmStringFree();
7459 8346
7460 int main() { 8347 int main() {
7461 XmStringFree() 8348 XmStringFree()
7462 ; return 0; } 8349 ; return 0; }
7463 EOF 8350 EOF
7464 if { (eval echo configure:7465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8351 if { (eval echo configure:8352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7465 rm -rf conftest* 8352 rm -rf conftest*
7466 eval "ac_cv_lib_$ac_lib_var=yes" 8353 eval "ac_cv_lib_$ac_lib_var=yes"
7467 else 8354 else
7468 echo "configure: failed program was:" >&5 8355 echo "configure: failed program was:" >&5
7469 cat conftest.$ac_ext >&5 8356 cat conftest.$ac_ext >&5
7488 fi 8375 fi
7489 8376
7490 8377
7491 if test "$have_motif" = "yes"; then 8378 if test "$have_motif" = "yes"; then
7492 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 8379 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7493 echo "configure:7494: checking for Lesstif" >&5 8380 echo "configure:8381: checking for Lesstif" >&5
7494 cat > conftest.$ac_ext <<EOF 8381 cat > conftest.$ac_ext <<EOF
7495 #line 7496 "configure" 8382 #line 8383 "configure"
7496 #include "confdefs.h" 8383 #include "confdefs.h"
7497 #include <Xm/Xm.h> 8384 #include <Xm/Xm.h>
7498 #ifdef LESSTIF_VERSION 8385 #ifdef LESSTIF_VERSION
7499 yes 8386 yes
7500 #endif 8387 #endif
7513 echo "$ac_t""$have_lesstif" 1>&6 8400 echo "$ac_t""$have_lesstif" 1>&6
7514 fi 8401 fi
7515 8402
7516 fi 8403 fi
7517 8404
7518 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" ) 8405 case "$with_menubars" in "" | "yes" | "athena" )
7519 with_menubars="lucid" ;; 8406 with_menubars="lucid" ;;
7520 esac 8407 esac
7521 case "$with_dialogs" in "" | "yes" | "lucid" ) 8408 case "$with_dialogs" in "" | "yes" | "lucid" )
7522 if test "$have_motif" = "yes"; then with_dialogs="motif" 8409 if test "$have_motif" = "yes"; then with_dialogs="motif"
7523 elif test "$have_xaw" = "yes"; then with_dialogs="athena" 8410 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
7524 else with_dialogs=no 8411 else with_dialogs=no
7525 fi ;; 8412 fi ;;
7526 esac 8413 esac
7527 case "$with_scrollbars" in "" | "yes" ) 8414 case "$with_scrollbars" in "" | "yes" )
7528 with_scrollbars="lucid" ;; 8415 with_scrollbars="lucid" ;;
7529 esac 8416 esac
7530 8417 case "$with_widgets" in "" | "yes" | "lucid")
7531 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars" 8418 if test "$have_motif" = "yes"; then with_widgets="motif"
7532 8419 elif test "$have_xaw" = "yes"; then with_widgets="athena"
7533 case "$all_widgets" in *athena* ) 8420 else with_widgets=no
7534 { test "$extra_verbose" = "yes" && cat << \EOF 8421 fi ;;
8422 esac
8423
8424 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
8425
8426 case "$all_widgets" in
8427 *athena* )
8428 if test "$have_xaw" != "yes"; then
8429 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
8430 fi
8431
8432 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
8433
8434 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
8435
8436 { test "$extra_verbose" = "yes" && cat << EOF
8437 Defining ATHENA_H_PATH = $athena_h_path
8438 EOF
8439 cat >> confdefs.h <<EOF
8440 #define ATHENA_H_PATH $athena_h_path
8441 EOF
8442 }
8443
8444
8445 { test "$extra_verbose" = "yes" && cat << \EOF
7535 Defining LWLIB_USES_ATHENA 8446 Defining LWLIB_USES_ATHENA
7536 EOF 8447 EOF
7537 cat >> confdefs.h <<\EOF 8448 cat >> confdefs.h <<\EOF
7538 #define LWLIB_USES_ATHENA 1 8449 #define LWLIB_USES_ATHENA 1
7539 EOF 8450 EOF
7540 } 8451 }
7541 8452
7542 { test "$extra_verbose" = "yes" && cat << \EOF 8453 { test "$extra_verbose" = "yes" && cat << \EOF
7543 Defining NEED_ATHENA 8454 Defining NEED_ATHENA
7544 EOF 8455 EOF
7545 cat >> confdefs.h <<\EOF 8456 cat >> confdefs.h <<\EOF
7546 #define NEED_ATHENA 1 8457 #define NEED_ATHENA 1
7547 EOF 8458 EOF
7548 } 8459 }
7549 8460
7550 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi 8461
7551 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;; 8462 if test "$athena_3d" = "yes"; then
8463 { test "$extra_verbose" = "yes" && cat << \EOF
8464 Defining HAVE_ATHENA_3D
8465 EOF
8466 cat >> confdefs.h <<\EOF
8467 #define HAVE_ATHENA_3D 1
8468 EOF
8469 }
8470
8471 fi
8472 ;;
7552 esac 8473 esac
7553 8474
7554 case "$all_widgets" in *motif* ) 8475 case "$all_widgets" in *motif* )
7555 { test "$extra_verbose" = "yes" && cat << \EOF 8476 { test "$extra_verbose" = "yes" && cat << \EOF
7556 Defining LWLIB_USES_MOTIF 8477 Defining LWLIB_USES_MOTIF
7573 esac 8494 esac
7574 8495
7575 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi 8496 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7576 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi 8497 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
7577 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi 8498 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
8499 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
8500 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
8501 case "$with_widgets" in athena* )
8502 lwlib_objs="$lwlib_objs xlwradio.o xlwcheckbox.o xlwgauge.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwradio.o xlwcheckbox.o xlwgauge.o\" to \$lwlib_objs"; fi;;
8503 esac
7578 case "$all_widgets" in *lucid* ) 8504 case "$all_widgets" in *lucid* )
7579 { test "$extra_verbose" = "yes" && cat << \EOF 8505 { test "$extra_verbose" = "yes" && cat << \EOF
7580 Defining NEED_LUCID 8506 Defining NEED_LUCID
7581 EOF 8507 EOF
7582 cat >> confdefs.h <<\EOF 8508 cat >> confdefs.h <<\EOF
7587 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;; 8513 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
7588 esac 8514 esac
7589 8515
7590 8516
7591 8517
7592 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF 8518 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
7593 Defining LWLIB_SCROLLBARS_ATHENA 8519 Defining LWLIB_SCROLLBARS_ATHENA
7594 EOF 8520 EOF
7595 cat >> confdefs.h <<\EOF 8521 cat >> confdefs.h <<\EOF
7596 #define LWLIB_SCROLLBARS_ATHENA 1 8522 #define LWLIB_SCROLLBARS_ATHENA 1
7597 EOF 8523 EOF
7598 } 8524 }
8525
8526 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8527 Defining LWLIB_DIALOGS_ATHENA
8528 EOF
8529 cat >> confdefs.h <<\EOF
8530 #define LWLIB_DIALOGS_ATHENA 1
8531 EOF
8532 }
8533
8534
8535 if test "$athena_3d" = "yes"; then
8536 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8537 Defining LWLIB_SCROLLBARS_ATHENA3D
8538 EOF
8539 cat >> confdefs.h <<\EOF
8540 #define LWLIB_SCROLLBARS_ATHENA3D 1
8541 EOF
8542 }
8543
8544 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
8545 Defining LWLIB_DIALOGS_ATHENA3D
8546 EOF
8547 cat >> confdefs.h <<\EOF
8548 #define LWLIB_DIALOGS_ATHENA3D 1
8549 EOF
8550 }
8551
8552 fi
8553
8554 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
8555 Defining LWLIB_WIDGETS_ATHENA
8556 EOF
8557 cat >> confdefs.h <<\EOF
8558 #define LWLIB_WIDGETS_ATHENA 1
8559 EOF
8560 }
7599 ;; esac 8561 ;; esac
7600 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF 8562 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
7601 Defining LWLIB_DIALOGS_ATHENA 8563 { test "$extra_verbose" = "yes" && cat << \EOF
7602 EOF 8564 Defining LWLIB_TABS_LUCID
7603 cat >> confdefs.h <<\EOF 8565 EOF
7604 #define LWLIB_DIALOGS_ATHENA 1 8566 cat >> confdefs.h <<\EOF
7605 EOF 8567 #define LWLIB_TABS_LUCID 1
7606 }
7607 ;; esac
7608 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7609 Defining LWLIB_SCROLLBARS_ATHENA3D
7610 EOF
7611 cat >> confdefs.h <<\EOF
7612 #define LWLIB_SCROLLBARS_ATHENA3D 1
7613 EOF
7614 }
7615
7616 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
7617 Defining LWLIB_DIALOGS_ATHENA3D
7618 EOF
7619 cat >> confdefs.h <<\EOF
7620 #define LWLIB_DIALOGS_ATHENA3D 1
7621 EOF 8568 EOF
7622 } 8569 }
7623 8570
7624 8571
7625 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF 8572 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
7652 cat >> confdefs.h <<\EOF 8599 cat >> confdefs.h <<\EOF
7653 #define HAVE_TOOLBARS 1 8600 #define HAVE_TOOLBARS 1
7654 EOF 8601 EOF
7655 } 8602 }
7656 8603
8604 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8605 Defining HAVE_WIDGETS
8606 EOF
8607 cat >> confdefs.h <<\EOF
8608 #define HAVE_WIDGETS 1
8609 EOF
8610 }
8611
7657 8612
7658 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF 8613 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
7659 Defining LWLIB_MENUBARS_LUCID 8614 Defining LWLIB_MENUBARS_LUCID
7660 EOF 8615 EOF
7661 cat >> confdefs.h <<\EOF 8616 cat >> confdefs.h <<\EOF
7694 cat >> confdefs.h <<\EOF 8649 cat >> confdefs.h <<\EOF
7695 #define LWLIB_DIALOGS_MOTIF 1 8650 #define LWLIB_DIALOGS_MOTIF 1
7696 EOF 8651 EOF
7697 } 8652 }
7698 8653
7699 8654 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
7700 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then 8655 Defining LWLIB_WIDGETS_MOTIF
8656 EOF
8657 cat >> confdefs.h <<\EOF
8658 #define LWLIB_WIDGETS_MOTIF 1
8659 EOF
8660 }
8661
8662
8663 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
7701 echo " xemacs will be linked with \"menubar.o\"" 8664 echo " xemacs will be linked with \"menubar.o\""
7702 fi 8665 fi
7703 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then 8666 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
7704 echo " xemacs will be linked with \"scrollbar.o\"" 8667 echo " xemacs will be linked with \"scrollbar.o\""
7705 fi 8668 fi
7706 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then 8669 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
7707 echo " xemacs will be linked with \"dialog.o\"" 8670 echo " xemacs will be linked with \"dialog.o\""
7708 fi 8671 fi
7709 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then 8672 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
7710 echo " xemacs will be linked with \"toolbar.o\"" 8673 echo " xemacs will be linked with \"toolbar.o\""
7711 fi 8674 fi
7712 8675
7713 if test "$with_x11" = "yes"; then 8676 if test "$with_x11" = "yes"; then
7714 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then 8677 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
7715 echo " xemacs will be linked with \"menubar-x.o\"" 8678 echo " xemacs will be linked with \"menubar-x.o\""
7716 fi 8679 fi
7717 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then 8680 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
7718 echo " xemacs will be linked with \"scrollbar-x.o\"" 8681 echo " xemacs will be linked with \"scrollbar-x.o\""
7719 fi 8682 fi
7720 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then 8683 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
7721 echo " xemacs will be linked with \"dialog-x.o\"" 8684 echo " xemacs will be linked with \"dialog-x.o\""
7722 fi 8685 fi
7723 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then 8686 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
7724 echo " xemacs will be linked with \"toolbar-x.o\"" 8687 echo " xemacs will be linked with \"toolbar-x.o\""
7725 fi 8688 fi
7726 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then 8689 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
7727 echo " xemacs will be linked with \"gui-x.o\"" 8690 echo " xemacs will be linked with \"gui-x.o\""
7728 fi 8691 fi
7729 else 8692 fi
7730 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
7731 echo "Attempt to Build NAS sound without X"
7732 echo "Please remove NAS configuration or build with X"
7733 exit 1
7734 fi
7735 fi
7736
7737 test "$use_minimal_tagbits" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
7738 Defining USE_MINIMAL_TAGBITS
7739 EOF
7740 cat >> confdefs.h <<\EOF
7741 #define USE_MINIMAL_TAGBITS 1
7742 EOF
7743 }
7744
7745 test "$use_indexed_lrecord_implementation" = "yes" && \
7746 { test "$extra_verbose" = "yes" && cat << \EOF
7747 Defining USE_INDEXED_LRECORD_IMPLEMENTATION
7748 EOF
7749 cat >> confdefs.h <<\EOF
7750 #define USE_INDEXED_LRECORD_IMPLEMENTATION 1
7751 EOF
7752 }
7753
7754 8693
7755 8694
7756 test -z "$with_mule" && with_mule=no 8695 test -z "$with_mule" && with_mule=no
7757 test -z "$with_file_coding" && with_file_coding=no 8696 test -z "$with_file_coding" && with_file_coding=no
7758 8697
7771 fi 8710 fi
7772 fi 8711 fi
7773 8712
7774 if test "$with_mule" = "yes" ; then 8713 if test "$with_mule" = "yes" ; then
7775 echo "checking for Mule-related features" 1>&6 8714 echo "checking for Mule-related features" 1>&6
7776 echo "configure:7777: checking for Mule-related features" >&5 8715 echo "configure:8716: checking for Mule-related features" >&5
7777 { test "$extra_verbose" = "yes" && cat << \EOF 8716 { test "$extra_verbose" = "yes" && cat << \EOF
7778 Defining MULE 8717 Defining MULE
7779 EOF 8718 EOF
7780 cat >> confdefs.h <<\EOF 8719 cat >> confdefs.h <<\EOF
7781 #define MULE 1 8720 #define MULE 1
7788 cat >> confdefs.h <<\EOF 8727 cat >> confdefs.h <<\EOF
7789 #define FILE_CODING 1 8728 #define FILE_CODING 1
7790 EOF 8729 EOF
7791 } 8730 }
7792 8731
7793 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o" && if test "$extra_verbose" = "yes"; then 8732 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7794 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o\"" 8733 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
7795 fi 8734 fi
7796 8735
7797 for ac_hdr in libintl.h 8736 for ac_hdr in libintl.h
7798 do 8737 do
7799 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 8738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 8739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7801 echo "configure:7802: checking for $ac_hdr" >&5 8740 echo "configure:8741: checking for $ac_hdr" >&5
7802 8741
7803 cat > conftest.$ac_ext <<EOF 8742 cat > conftest.$ac_ext <<EOF
7804 #line 7805 "configure" 8743 #line 8744 "configure"
7805 #include "confdefs.h" 8744 #include "confdefs.h"
7806 #include <$ac_hdr> 8745 #include <$ac_hdr>
7807 EOF 8746 EOF
7808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7809 { (eval echo configure:7810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8748 { (eval echo configure:8749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7811 if test -z "$ac_err"; then 8750 if test -z "$ac_err"; then
7812 rm -rf conftest* 8751 rm -rf conftest*
7813 eval "ac_cv_header_$ac_safe=yes" 8752 eval "ac_cv_header_$ac_safe=yes"
7814 else 8753 else
7835 fi 8774 fi
7836 done 8775 done
7837 8776
7838 8777
7839 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 8778 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7840 echo "configure:7841: checking for strerror in -lintl" >&5 8779 echo "configure:8780: checking for strerror in -lintl" >&5
7841 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 8780 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7842 8781
7843 xe_check_libs=" -lintl " 8782 xe_check_libs=" -lintl "
7844 cat > conftest.$ac_ext <<EOF 8783 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure" 8784 #line 8785 "configure"
7846 #include "confdefs.h" 8785 #include "confdefs.h"
7847 /* Override any gcc2 internal prototype to avoid an error. */ 8786 /* Override any gcc2 internal prototype to avoid an error. */
7848 /* We use char because int might match the return type of a gcc2 8787 /* We use char because int might match the return type of a gcc2
7849 builtin and then its argument prototype would still apply. */ 8788 builtin and then its argument prototype would still apply. */
7850 char strerror(); 8789 char strerror();
7851 8790
7852 int main() { 8791 int main() {
7853 strerror() 8792 strerror()
7854 ; return 0; } 8793 ; return 0; }
7855 EOF 8794 EOF
7856 if { (eval echo configure:7857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8795 if { (eval echo configure:8796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7857 rm -rf conftest* 8796 rm -rf conftest*
7858 eval "ac_cv_lib_$ac_lib_var=yes" 8797 eval "ac_cv_lib_$ac_lib_var=yes"
7859 else 8798 else
7860 echo "configure: failed program was:" >&5 8799 echo "configure: failed program was:" >&5
7861 cat conftest.$ac_ext >&5 8800 cat conftest.$ac_ext >&5
7884 fi 8823 fi
7885 8824
7886 8825
7887 8826
7888 echo "checking for Mule input methods" 1>&6 8827 echo "checking for Mule input methods" 1>&6
7889 echo "configure:7890: checking for Mule input methods" >&5 8828 echo "configure:8829: checking for Mule input methods" >&5
7890 case "$with_xim" in "" | "yes" ) 8829 case "$with_xim" in "" | "yes" )
7891 echo "checking for XIM" 1>&6 8830 echo "checking for XIM" 1>&6
7892 echo "configure:7893: checking for XIM" >&5 8831 echo "configure:8832: checking for XIM" >&5
7893 8832
7894 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 8833 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7895 echo "configure:7896: checking for XOpenIM in -lX11" >&5 8834 echo "configure:8835: checking for XOpenIM in -lX11" >&5
7896 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 8835 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7897 8836
7898 xe_check_libs=" -lX11 " 8837 xe_check_libs=" -lX11 "
7899 cat > conftest.$ac_ext <<EOF 8838 cat > conftest.$ac_ext <<EOF
7900 #line 7901 "configure" 8839 #line 8840 "configure"
7901 #include "confdefs.h" 8840 #include "confdefs.h"
7902 /* Override any gcc2 internal prototype to avoid an error. */ 8841 /* Override any gcc2 internal prototype to avoid an error. */
7903 /* We use char because int might match the return type of a gcc2 8842 /* We use char because int might match the return type of a gcc2
7904 builtin and then its argument prototype would still apply. */ 8843 builtin and then its argument prototype would still apply. */
7905 char XOpenIM(); 8844 char XOpenIM();
7906 8845
7907 int main() { 8846 int main() {
7908 XOpenIM() 8847 XOpenIM()
7909 ; return 0; } 8848 ; return 0; }
7910 EOF 8849 EOF
7911 if { (eval echo configure:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8850 if { (eval echo configure:8851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7912 rm -rf conftest* 8851 rm -rf conftest*
7913 eval "ac_cv_lib_$ac_lib_var=yes" 8852 eval "ac_cv_lib_$ac_lib_var=yes"
7914 else 8853 else
7915 echo "configure: failed program was:" >&5 8854 echo "configure: failed program was:" >&5
7916 cat conftest.$ac_ext >&5 8855 cat conftest.$ac_ext >&5
7930 8869
7931 8870
7932 if test "$have_motif $have_lesstif" = "yes no"; then 8871 if test "$have_motif $have_lesstif" = "yes no"; then
7933 8872
7934 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 8873 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7935 echo "configure:7936: checking for XmImMbLookupString in -lXm" >&5 8874 echo "configure:8875: checking for XmImMbLookupString in -lXm" >&5
7936 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 8875 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7937 8876
7938 xe_check_libs=" -lXm " 8877 xe_check_libs=" -lXm "
7939 cat > conftest.$ac_ext <<EOF 8878 cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure" 8879 #line 8880 "configure"
7941 #include "confdefs.h" 8880 #include "confdefs.h"
7942 /* Override any gcc2 internal prototype to avoid an error. */ 8881 /* Override any gcc2 internal prototype to avoid an error. */
7943 /* We use char because int might match the return type of a gcc2 8882 /* We use char because int might match the return type of a gcc2
7944 builtin and then its argument prototype would still apply. */ 8883 builtin and then its argument prototype would still apply. */
7945 char XmImMbLookupString(); 8884 char XmImMbLookupString();
7946 8885
7947 int main() { 8886 int main() {
7948 XmImMbLookupString() 8887 XmImMbLookupString()
7949 ; return 0; } 8888 ; return 0; }
7950 EOF 8889 EOF
7951 if { (eval echo configure:7952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8890 if { (eval echo configure:8891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7952 rm -rf conftest* 8891 rm -rf conftest*
7953 eval "ac_cv_lib_$ac_lib_var=yes" 8892 eval "ac_cv_lib_$ac_lib_var=yes"
7954 else 8893 else
7955 echo "configure: failed program was:" >&5 8894 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5 8895 cat conftest.$ac_ext >&5
8011 fi 8950 fi
8012 fi 8951 fi
8013 8952
8014 if test "$with_xfs" = "yes" ; then 8953 if test "$with_xfs" = "yes" ; then
8015 echo "checking for XFontSet" 1>&6 8954 echo "checking for XFontSet" 1>&6
8016 echo "configure:8017: checking for XFontSet" >&5 8955 echo "configure:8956: checking for XFontSet" >&5
8017 8956
8018 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 8957 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8019 echo "configure:8020: checking for XmbDrawString in -lX11" >&5 8958 echo "configure:8959: checking for XmbDrawString in -lX11" >&5
8020 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 8959 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8021 8960
8022 xe_check_libs=" -lX11 " 8961 xe_check_libs=" -lX11 "
8023 cat > conftest.$ac_ext <<EOF 8962 cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure" 8963 #line 8964 "configure"
8025 #include "confdefs.h" 8964 #include "confdefs.h"
8026 /* Override any gcc2 internal prototype to avoid an error. */ 8965 /* Override any gcc2 internal prototype to avoid an error. */
8027 /* We use char because int might match the return type of a gcc2 8966 /* We use char because int might match the return type of a gcc2
8028 builtin and then its argument prototype would still apply. */ 8967 builtin and then its argument prototype would still apply. */
8029 char XmbDrawString(); 8968 char XmbDrawString();
8030 8969
8031 int main() { 8970 int main() {
8032 XmbDrawString() 8971 XmbDrawString()
8033 ; return 0; } 8972 ; return 0; }
8034 EOF 8973 EOF
8035 if { (eval echo configure:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8974 if { (eval echo configure:8975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8036 rm -rf conftest* 8975 rm -rf conftest*
8037 eval "ac_cv_lib_$ac_lib_var=yes" 8976 eval "ac_cv_lib_$ac_lib_var=yes"
8038 else 8977 else
8039 echo "configure: failed program was:" >&5 8978 echo "configure: failed program was:" >&5
8040 cat conftest.$ac_ext >&5 8979 cat conftest.$ac_ext >&5
8070 fi 9009 fi
8071 fi 9010 fi
8072 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 9011 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8073 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 9012 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8074 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 9013 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8075 echo "configure:8076: checking for wnn/jllib.h" >&5 9014 echo "configure:9015: checking for wnn/jllib.h" >&5
8076 9015
8077 cat > conftest.$ac_ext <<EOF 9016 cat > conftest.$ac_ext <<EOF
8078 #line 8079 "configure" 9017 #line 9018 "configure"
8079 #include "confdefs.h" 9018 #include "confdefs.h"
8080 #include <wnn/jllib.h> 9019 #include <wnn/jllib.h>
8081 EOF 9020 EOF
8082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8083 { (eval echo configure:8084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9022 { (eval echo configure:9023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8085 if test -z "$ac_err"; then 9024 if test -z "$ac_err"; then
8086 rm -rf conftest* 9025 rm -rf conftest*
8087 eval "ac_cv_header_$ac_safe=yes" 9026 eval "ac_cv_header_$ac_safe=yes"
8088 else 9027 else
8103 } 9042 }
8104 if test "$with_wnn" != "no"; then 9043 if test "$with_wnn" != "no"; then
8105 for ac_func in crypt 9044 for ac_func in crypt
8106 do 9045 do
8107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8108 echo "configure:8109: checking for $ac_func" >&5 9047 echo "configure:9048: checking for $ac_func" >&5
8109 9048
8110 cat > conftest.$ac_ext <<EOF 9049 cat > conftest.$ac_ext <<EOF
8111 #line 8112 "configure" 9050 #line 9051 "configure"
8112 #include "confdefs.h" 9051 #include "confdefs.h"
8113 /* System header to define __stub macros and hopefully few prototypes, 9052 /* System header to define __stub macros and hopefully few prototypes,
8114 which can conflict with char $ac_func(); below. */ 9053 which can conflict with char $ac_func(); below. */
8115 #include <assert.h> 9054 #include <assert.h>
8116 /* Override any gcc2 internal prototype to avoid an error. */ 9055 /* Override any gcc2 internal prototype to avoid an error. */
8129 $ac_func(); 9068 $ac_func();
8130 #endif 9069 #endif
8131 9070
8132 ; return 0; } 9071 ; return 0; }
8133 EOF 9072 EOF
8134 if { (eval echo configure:8135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9073 if { (eval echo configure:9074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8135 rm -rf conftest* 9074 rm -rf conftest*
8136 eval "ac_cv_func_$ac_func=yes" 9075 eval "ac_cv_func_$ac_func=yes"
8137 else 9076 else
8138 echo "configure: failed program was:" >&5 9077 echo "configure: failed program was:" >&5
8139 cat conftest.$ac_ext >&5 9078 cat conftest.$ac_ext >&5
8158 fi 9097 fi
8159 done 9098 done
8160 9099
8161 test "$ac_cv_func_crypt" != "yes" && { 9100 test "$ac_cv_func_crypt" != "yes" && {
8162 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 9101 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8163 echo "configure:8164: checking for crypt in -lcrypt" >&5 9102 echo "configure:9103: checking for crypt in -lcrypt" >&5
8164 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 9103 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8165 9104
8166 xe_check_libs=" -lcrypt " 9105 xe_check_libs=" -lcrypt "
8167 cat > conftest.$ac_ext <<EOF 9106 cat > conftest.$ac_ext <<EOF
8168 #line 8169 "configure" 9107 #line 9108 "configure"
8169 #include "confdefs.h" 9108 #include "confdefs.h"
8170 /* Override any gcc2 internal prototype to avoid an error. */ 9109 /* Override any gcc2 internal prototype to avoid an error. */
8171 /* We use char because int might match the return type of a gcc2 9110 /* We use char because int might match the return type of a gcc2
8172 builtin and then its argument prototype would still apply. */ 9111 builtin and then its argument prototype would still apply. */
8173 char crypt(); 9112 char crypt();
8174 9113
8175 int main() { 9114 int main() {
8176 crypt() 9115 crypt()
8177 ; return 0; } 9116 ; return 0; }
8178 EOF 9117 EOF
8179 if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9118 if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8180 rm -rf conftest* 9119 rm -rf conftest*
8181 eval "ac_cv_lib_$ac_lib_var=yes" 9120 eval "ac_cv_lib_$ac_lib_var=yes"
8182 else 9121 else
8183 echo "configure: failed program was:" >&5 9122 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5 9123 cat conftest.$ac_ext >&5
8209 } 9148 }
8210 fi 9149 fi
8211 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 9150 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8212 9151
8213 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 9152 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8214 echo "configure:8215: checking for jl_dic_list_e in -lwnn" >&5 9153 echo "configure:9154: checking for jl_dic_list_e in -lwnn" >&5
8215 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9154 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8216 9155
8217 xe_check_libs=" -lwnn " 9156 xe_check_libs=" -lwnn "
8218 cat > conftest.$ac_ext <<EOF 9157 cat > conftest.$ac_ext <<EOF
8219 #line 8220 "configure" 9158 #line 9159 "configure"
8220 #include "confdefs.h" 9159 #include "confdefs.h"
8221 /* Override any gcc2 internal prototype to avoid an error. */ 9160 /* Override any gcc2 internal prototype to avoid an error. */
8222 /* We use char because int might match the return type of a gcc2 9161 /* We use char because int might match the return type of a gcc2
8223 builtin and then its argument prototype would still apply. */ 9162 builtin and then its argument prototype would still apply. */
8224 char jl_dic_list_e(); 9163 char jl_dic_list_e();
8225 9164
8226 int main() { 9165 int main() {
8227 jl_dic_list_e() 9166 jl_dic_list_e()
8228 ; return 0; } 9167 ; return 0; }
8229 EOF 9168 EOF
8230 if { (eval echo configure:8231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9169 if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8231 rm -rf conftest* 9170 rm -rf conftest*
8232 eval "ac_cv_lib_$ac_lib_var=yes" 9171 eval "ac_cv_lib_$ac_lib_var=yes"
8233 else 9172 else
8234 echo "configure: failed program was:" >&5 9173 echo "configure: failed program was:" >&5
8235 cat conftest.$ac_ext >&5 9174 cat conftest.$ac_ext >&5
8243 echo "$ac_t""yes" 1>&6 9182 echo "$ac_t""yes" 1>&6
8244 libwnn=wnn 9183 libwnn=wnn
8245 else 9184 else
8246 echo "$ac_t""no" 1>&6 9185 echo "$ac_t""no" 1>&6
8247 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 9186 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8248 echo "configure:8249: checking for jl_dic_list_e in -lwnn4" >&5 9187 echo "configure:9188: checking for jl_dic_list_e in -lwnn4" >&5
8249 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9188 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8250 9189
8251 xe_check_libs=" -lwnn4 " 9190 xe_check_libs=" -lwnn4 "
8252 cat > conftest.$ac_ext <<EOF 9191 cat > conftest.$ac_ext <<EOF
8253 #line 8254 "configure" 9192 #line 9193 "configure"
8254 #include "confdefs.h" 9193 #include "confdefs.h"
8255 /* Override any gcc2 internal prototype to avoid an error. */ 9194 /* Override any gcc2 internal prototype to avoid an error. */
8256 /* We use char because int might match the return type of a gcc2 9195 /* We use char because int might match the return type of a gcc2
8257 builtin and then its argument prototype would still apply. */ 9196 builtin and then its argument prototype would still apply. */
8258 char jl_dic_list_e(); 9197 char jl_dic_list_e();
8259 9198
8260 int main() { 9199 int main() {
8261 jl_dic_list_e() 9200 jl_dic_list_e()
8262 ; return 0; } 9201 ; return 0; }
8263 EOF 9202 EOF
8264 if { (eval echo configure:8265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9203 if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8265 rm -rf conftest* 9204 rm -rf conftest*
8266 eval "ac_cv_lib_$ac_lib_var=yes" 9205 eval "ac_cv_lib_$ac_lib_var=yes"
8267 else 9206 else
8268 echo "configure: failed program was:" >&5 9207 echo "configure: failed program was:" >&5
8269 cat conftest.$ac_ext >&5 9208 cat conftest.$ac_ext >&5
8277 echo "$ac_t""yes" 1>&6 9216 echo "$ac_t""yes" 1>&6
8278 libwnn=wnn4 9217 libwnn=wnn4
8279 else 9218 else
8280 echo "$ac_t""no" 1>&6 9219 echo "$ac_t""no" 1>&6
8281 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 9220 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8282 echo "configure:8283: checking for jl_dic_list_e in -lwnn6" >&5 9221 echo "configure:9222: checking for jl_dic_list_e in -lwnn6" >&5
8283 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9222 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8284 9223
8285 xe_check_libs=" -lwnn6 " 9224 xe_check_libs=" -lwnn6 "
8286 cat > conftest.$ac_ext <<EOF 9225 cat > conftest.$ac_ext <<EOF
8287 #line 8288 "configure" 9226 #line 9227 "configure"
8288 #include "confdefs.h" 9227 #include "confdefs.h"
8289 /* Override any gcc2 internal prototype to avoid an error. */ 9228 /* Override any gcc2 internal prototype to avoid an error. */
8290 /* We use char because int might match the return type of a gcc2 9229 /* We use char because int might match the return type of a gcc2
8291 builtin and then its argument prototype would still apply. */ 9230 builtin and then its argument prototype would still apply. */
8292 char jl_dic_list_e(); 9231 char jl_dic_list_e();
8293 9232
8294 int main() { 9233 int main() {
8295 jl_dic_list_e() 9234 jl_dic_list_e()
8296 ; return 0; } 9235 ; return 0; }
8297 EOF 9236 EOF
8298 if { (eval echo configure:8299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9237 if { (eval echo configure:9238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8299 rm -rf conftest* 9238 rm -rf conftest*
8300 eval "ac_cv_lib_$ac_lib_var=yes" 9239 eval "ac_cv_lib_$ac_lib_var=yes"
8301 else 9240 else
8302 echo "configure: failed program was:" >&5 9241 echo "configure: failed program was:" >&5
8303 cat conftest.$ac_ext >&5 9242 cat conftest.$ac_ext >&5
8311 echo "$ac_t""yes" 1>&6 9250 echo "$ac_t""yes" 1>&6
8312 libwnn=wnn6 9251 libwnn=wnn6
8313 else 9252 else
8314 echo "$ac_t""no" 1>&6 9253 echo "$ac_t""no" 1>&6
8315 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 9254 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8316 echo "configure:8317: checking for dic_list_e in -lwnn6_fromsrc" >&5 9255 echo "configure:9256: checking for dic_list_e in -lwnn6_fromsrc" >&5
8317 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 9256 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8318 9257
8319 xe_check_libs=" -lwnn6_fromsrc " 9258 xe_check_libs=" -lwnn6_fromsrc "
8320 cat > conftest.$ac_ext <<EOF 9259 cat > conftest.$ac_ext <<EOF
8321 #line 8322 "configure" 9260 #line 9261 "configure"
8322 #include "confdefs.h" 9261 #include "confdefs.h"
8323 /* Override any gcc2 internal prototype to avoid an error. */ 9262 /* Override any gcc2 internal prototype to avoid an error. */
8324 /* We use char because int might match the return type of a gcc2 9263 /* We use char because int might match the return type of a gcc2
8325 builtin and then its argument prototype would still apply. */ 9264 builtin and then its argument prototype would still apply. */
8326 char dic_list_e(); 9265 char dic_list_e();
8327 9266
8328 int main() { 9267 int main() {
8329 dic_list_e() 9268 dic_list_e()
8330 ; return 0; } 9269 ; return 0; }
8331 EOF 9270 EOF
8332 if { (eval echo configure:8333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9271 if { (eval echo configure:9272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8333 rm -rf conftest* 9272 rm -rf conftest*
8334 eval "ac_cv_lib_$ac_lib_var=yes" 9273 eval "ac_cv_lib_$ac_lib_var=yes"
8335 else 9274 else
8336 echo "configure: failed program was:" >&5 9275 echo "configure: failed program was:" >&5
8337 cat conftest.$ac_ext >&5 9276 cat conftest.$ac_ext >&5
8375 echo " xemacs will be linked with \"mule-wnnfns.o\"" 9314 echo " xemacs will be linked with \"mule-wnnfns.o\""
8376 fi 9315 fi
8377 if test "$with_wnn6" != "no"; then 9316 if test "$with_wnn6" != "no"; then
8378 9317
8379 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 9318 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8380 echo "configure:8381: checking for jl_fi_dic_list in -l$libwnn" >&5 9319 echo "configure:9320: checking for jl_fi_dic_list in -l$libwnn" >&5
8381 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 9320 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8382 9321
8383 xe_check_libs=" -l$libwnn " 9322 xe_check_libs=" -l$libwnn "
8384 cat > conftest.$ac_ext <<EOF 9323 cat > conftest.$ac_ext <<EOF
8385 #line 8386 "configure" 9324 #line 9325 "configure"
8386 #include "confdefs.h" 9325 #include "confdefs.h"
8387 /* Override any gcc2 internal prototype to avoid an error. */ 9326 /* Override any gcc2 internal prototype to avoid an error. */
8388 /* We use char because int might match the return type of a gcc2 9327 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */ 9328 builtin and then its argument prototype would still apply. */
8390 char jl_fi_dic_list(); 9329 char jl_fi_dic_list();
8391 9330
8392 int main() { 9331 int main() {
8393 jl_fi_dic_list() 9332 jl_fi_dic_list()
8394 ; return 0; } 9333 ; return 0; }
8395 EOF 9334 EOF
8396 if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8397 rm -rf conftest* 9336 rm -rf conftest*
8398 eval "ac_cv_lib_$ac_lib_var=yes" 9337 eval "ac_cv_lib_$ac_lib_var=yes"
8399 else 9338 else
8400 echo "configure: failed program was:" >&5 9339 echo "configure: failed program was:" >&5
8401 cat conftest.$ac_ext >&5 9340 cat conftest.$ac_ext >&5
8426 9365
8427 canna_includes_found=no 9366 canna_includes_found=no
8428 if test "$with_canna" != "no"; then 9367 if test "$with_canna" != "no"; then
8429 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 9368 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8430 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 9369 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8431 echo "configure:8432: checking for canna/jrkanji.h" >&5 9370 echo "configure:9371: checking for canna/jrkanji.h" >&5
8432 9371
8433 cat > conftest.$ac_ext <<EOF 9372 cat > conftest.$ac_ext <<EOF
8434 #line 8435 "configure" 9373 #line 9374 "configure"
8435 #include "confdefs.h" 9374 #include "confdefs.h"
8436 #include <canna/jrkanji.h> 9375 #include <canna/jrkanji.h>
8437 EOF 9376 EOF
8438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8439 { (eval echo configure:8440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9378 { (eval echo configure:9379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8441 if test -z "$ac_err"; then 9380 if test -z "$ac_err"; then
8442 rm -rf conftest* 9381 rm -rf conftest*
8443 eval "ac_cv_header_$ac_safe=yes" 9382 eval "ac_cv_header_$ac_safe=yes"
8444 else 9383 else
8461 -d "/usr/local/canna/include"; then 9400 -d "/usr/local/canna/include"; then
8462 save_c_switch_site="$c_switch_site" 9401 save_c_switch_site="$c_switch_site"
8463 c_switch_site="$c_switch_site -I/usr/local/canna/include" 9402 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8464 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 9403 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8465 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 9404 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8466 echo "configure:8467: checking for canna/jrkanji.h" >&5 9405 echo "configure:9406: checking for canna/jrkanji.h" >&5
8467 9406
8468 cat > conftest.$ac_ext <<EOF 9407 cat > conftest.$ac_ext <<EOF
8469 #line 8470 "configure" 9408 #line 9409 "configure"
8470 #include "confdefs.h" 9409 #include "confdefs.h"
8471 #include <canna/jrkanji.h> 9410 #include <canna/jrkanji.h>
8472 EOF 9411 EOF
8473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8474 { (eval echo configure:8475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9413 { (eval echo configure:9414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8476 if test -z "$ac_err"; then 9415 if test -z "$ac_err"; then
8477 rm -rf conftest* 9416 rm -rf conftest*
8478 eval "ac_cv_header_$ac_safe=yes" 9417 eval "ac_cv_header_$ac_safe=yes"
8479 else 9418 else
8497 fi 9436 fi
8498 fi 9437 fi
8499 9438
8500 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 9439 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8501 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 9440 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8502 echo "configure:8503: checking for canna/RK.h" >&5 9441 echo "configure:9442: checking for canna/RK.h" >&5
8503 9442
8504 cat > conftest.$ac_ext <<EOF 9443 cat > conftest.$ac_ext <<EOF
8505 #line 8506 "configure" 9444 #line 9445 "configure"
8506 #include "confdefs.h" 9445 #include "confdefs.h"
8507 #include <canna/RK.h> 9446 #include <canna/RK.h>
8508 EOF 9447 EOF
8509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8510 { (eval echo configure:8511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9449 { (eval echo configure:9450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8512 if test -z "$ac_err"; then 9451 if test -z "$ac_err"; then
8513 rm -rf conftest* 9452 rm -rf conftest*
8514 eval "ac_cv_header_$ac_safe=yes" 9453 eval "ac_cv_header_$ac_safe=yes"
8515 else 9454 else
8528 with_canna=no 9467 with_canna=no
8529 fi 9468 fi
8530 } 9469 }
8531 test -z "$with_canna" && { 9470 test -z "$with_canna" && {
8532 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 9471 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8533 echo "configure:8534: checking for RkBgnBun in -lRKC" >&5 9472 echo "configure:9473: checking for RkBgnBun in -lRKC" >&5
8534 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 9473 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8535 9474
8536 xe_check_libs=" -lRKC " 9475 xe_check_libs=" -lRKC "
8537 cat > conftest.$ac_ext <<EOF 9476 cat > conftest.$ac_ext <<EOF
8538 #line 8539 "configure" 9477 #line 9478 "configure"
8539 #include "confdefs.h" 9478 #include "confdefs.h"
8540 /* Override any gcc2 internal prototype to avoid an error. */ 9479 /* Override any gcc2 internal prototype to avoid an error. */
8541 /* We use char because int might match the return type of a gcc2 9480 /* We use char because int might match the return type of a gcc2
8542 builtin and then its argument prototype would still apply. */ 9481 builtin and then its argument prototype would still apply. */
8543 char RkBgnBun(); 9482 char RkBgnBun();
8544 9483
8545 int main() { 9484 int main() {
8546 RkBgnBun() 9485 RkBgnBun()
8547 ; return 0; } 9486 ; return 0; }
8548 EOF 9487 EOF
8549 if { (eval echo configure:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9488 if { (eval echo configure:9489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8550 rm -rf conftest* 9489 rm -rf conftest*
8551 eval "ac_cv_lib_$ac_lib_var=yes" 9490 eval "ac_cv_lib_$ac_lib_var=yes"
8552 else 9491 else
8553 echo "configure: failed program was:" >&5 9492 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5 9493 cat conftest.$ac_ext >&5
8567 fi 9506 fi
8568 9507
8569 } 9508 }
8570 test -z "$with_canna" && { 9509 test -z "$with_canna" && {
8571 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 9510 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8572 echo "configure:8573: checking for jrKanjiControl in -lcanna" >&5 9511 echo "configure:9512: checking for jrKanjiControl in -lcanna" >&5
8573 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 9512 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8574 9513
8575 xe_check_libs=" -lcanna " 9514 xe_check_libs=" -lcanna "
8576 cat > conftest.$ac_ext <<EOF 9515 cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure" 9516 #line 9517 "configure"
8578 #include "confdefs.h" 9517 #include "confdefs.h"
8579 /* Override any gcc2 internal prototype to avoid an error. */ 9518 /* Override any gcc2 internal prototype to avoid an error. */
8580 /* We use char because int might match the return type of a gcc2 9519 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */ 9520 builtin and then its argument prototype would still apply. */
8582 char jrKanjiControl(); 9521 char jrKanjiControl();
8583 9522
8584 int main() { 9523 int main() {
8585 jrKanjiControl() 9524 jrKanjiControl()
8586 ; return 0; } 9525 ; return 0; }
8587 EOF 9526 EOF
8588 if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9527 if { (eval echo configure:9528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8589 rm -rf conftest* 9528 rm -rf conftest*
8590 eval "ac_cv_lib_$ac_lib_var=yes" 9529 eval "ac_cv_lib_$ac_lib_var=yes"
8591 else 9530 else
8592 echo "configure: failed program was:" >&5 9531 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5 9532 cat conftest.$ac_ext >&5
8632 9571
8633 if test "$need_motif" = "yes" ; then 9572 if test "$need_motif" = "yes" ; then
8634 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 9573 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8635 9574
8636 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 9575 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8637 echo "configure:8638: checking for layout_object_getvalue in -li18n" >&5 9576 echo "configure:9577: checking for layout_object_getvalue in -li18n" >&5
8638 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 9577 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8639 9578
8640 xe_check_libs=" -li18n " 9579 xe_check_libs=" -li18n "
8641 cat > conftest.$ac_ext <<EOF 9580 cat > conftest.$ac_ext <<EOF
8642 #line 8643 "configure" 9581 #line 9582 "configure"
8643 #include "confdefs.h" 9582 #include "confdefs.h"
8644 /* Override any gcc2 internal prototype to avoid an error. */ 9583 /* Override any gcc2 internal prototype to avoid an error. */
8645 /* We use char because int might match the return type of a gcc2 9584 /* We use char because int might match the return type of a gcc2
8646 builtin and then its argument prototype would still apply. */ 9585 builtin and then its argument prototype would still apply. */
8647 char layout_object_getvalue(); 9586 char layout_object_getvalue();
8648 9587
8649 int main() { 9588 int main() {
8650 layout_object_getvalue() 9589 layout_object_getvalue()
8651 ; return 0; } 9590 ; return 0; }
8652 EOF 9591 EOF
8653 if { (eval echo configure:8654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9592 if { (eval echo configure:9593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8654 rm -rf conftest* 9593 rm -rf conftest*
8655 eval "ac_cv_lib_$ac_lib_var=yes" 9594 eval "ac_cv_lib_$ac_lib_var=yes"
8656 else 9595 else
8657 echo "configure: failed program was:" >&5 9596 echo "configure: failed program was:" >&5
8658 cat conftest.$ac_ext >&5 9597 cat conftest.$ac_ext >&5
8731 fi 9670 fi
8732 fi 9671 fi
8733 9672
8734 fi 9673 fi
8735 9674
8736 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf 9675 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask
8737 do 9676 do
8738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8739 echo "configure:8740: checking for $ac_func" >&5 9678 echo "configure:9679: checking for $ac_func" >&5
8740 9679
8741 cat > conftest.$ac_ext <<EOF 9680 cat > conftest.$ac_ext <<EOF
8742 #line 8743 "configure" 9681 #line 9682 "configure"
8743 #include "confdefs.h" 9682 #include "confdefs.h"
8744 /* System header to define __stub macros and hopefully few prototypes, 9683 /* System header to define __stub macros and hopefully few prototypes,
8745 which can conflict with char $ac_func(); below. */ 9684 which can conflict with char $ac_func(); below. */
8746 #include <assert.h> 9685 #include <assert.h>
8747 /* Override any gcc2 internal prototype to avoid an error. */ 9686 /* Override any gcc2 internal prototype to avoid an error. */
8760 $ac_func(); 9699 $ac_func();
8761 #endif 9700 #endif
8762 9701
8763 ; return 0; } 9702 ; return 0; }
8764 EOF 9703 EOF
8765 if { (eval echo configure:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9704 if { (eval echo configure:9705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8766 rm -rf conftest* 9705 rm -rf conftest*
8767 eval "ac_cv_func_$ac_func=yes" 9706 eval "ac_cv_func_$ac_func=yes"
8768 else 9707 else
8769 echo "configure: failed program was:" >&5 9708 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5 9709 cat conftest.$ac_ext >&5
8788 echo "$ac_t""no" 1>&6 9727 echo "$ac_t""no" 1>&6
8789 fi 9728 fi
8790 done 9729 done
8791 9730
8792 9731
8793 9732 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8794 case "$opsys" in
8795 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8796 echo " xemacs will be linked with \"realpath.o\"" 9733 echo " xemacs will be linked with \"realpath.o\""
8797 fi ;; 9734 fi
8798 * ) 9735
8799 case "$canonical" in 9736 for ac_func in getloadavg
8800 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
8801 echo " xemacs will be linked with \"realpath.o\""
8802 fi ;;
8803 * ) for ac_func in realpath
8804 do 9737 do
8805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8806 echo "configure:8807: checking for $ac_func" >&5 9739 echo "configure:9740: checking for $ac_func" >&5
8807 9740
8808 cat > conftest.$ac_ext <<EOF 9741 cat > conftest.$ac_ext <<EOF
8809 #line 8810 "configure" 9742 #line 9743 "configure"
8810 #include "confdefs.h" 9743 #include "confdefs.h"
8811 /* System header to define __stub macros and hopefully few prototypes, 9744 /* System header to define __stub macros and hopefully few prototypes,
8812 which can conflict with char $ac_func(); below. */ 9745 which can conflict with char $ac_func(); below. */
8813 #include <assert.h> 9746 #include <assert.h>
8814 /* Override any gcc2 internal prototype to avoid an error. */ 9747 /* Override any gcc2 internal prototype to avoid an error. */
8827 $ac_func(); 9760 $ac_func();
8828 #endif 9761 #endif
8829 9762
8830 ; return 0; } 9763 ; return 0; }
8831 EOF 9764 EOF
8832 if { (eval echo configure:8833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9765 if { (eval echo configure:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8833 rm -rf conftest* 9766 rm -rf conftest*
8834 eval "ac_cv_func_$ac_func=yes" 9767 eval "ac_cv_func_$ac_func=yes"
8835 else 9768 else
8836 echo "configure: failed program was:" >&5 9769 echo "configure: failed program was:" >&5
8837 cat conftest.$ac_ext >&5 9770 cat conftest.$ac_ext >&5
8854 else 9787 else
8855 echo "$ac_t""no" 1>&6 9788 echo "$ac_t""no" 1>&6
8856 fi 9789 fi
8857 done 9790 done
8858 9791
8859 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then 9792
8860 echo " xemacs will be linked with \"realpath.o\"" 9793 if test "$ac_cv_func_getloadavg" != "yes"
8861 fi ;; 9794 then
8862 esac ;; 9795 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
8863 esac 9796 echo " xemacs will be linked with \"getloadavg.o\""
9797 fi
9798
9799
9800 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9801 echo "configure:9802: checking for kstat_open in -lkstat" >&5
9802 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9803
9804 xe_check_libs=" -lkstat "
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9808 /* Override any gcc2 internal prototype to avoid an error. */
9809 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9811 char kstat_open();
9812
9813 int main() {
9814 kstat_open()
9815 ; return 0; }
9816 EOF
9817 if { (eval echo configure:9818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9818 rm -rf conftest*
9819 eval "ac_cv_lib_$ac_lib_var=yes"
9820 else
9821 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5
9823 rm -rf conftest*
9824 eval "ac_cv_lib_$ac_lib_var=no"
9825 fi
9826 rm -f conftest*
9827 xe_check_libs=""
9828
9829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9830 echo "$ac_t""yes" 1>&6
9831 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9832 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9833 { test "$extra_verbose" = "yes" && cat << EOF
9834 Defining $ac_tr_lib
9835 EOF
9836 cat >> confdefs.h <<EOF
9837 #define $ac_tr_lib 1
9838 EOF
9839 }
9840
9841 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
9842
9843 else
9844 echo "$ac_t""no" 1>&6
9845 fi
9846
9847
9848
9849
9850 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9851 echo "configure:9852: checking for kvm_read in -lkvm" >&5
9852 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9853
9854 xe_check_libs=" -lkvm "
9855 cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure"
9857 #include "confdefs.h"
9858 /* Override any gcc2 internal prototype to avoid an error. */
9859 /* We use char because int might match the return type of a gcc2
9860 builtin and then its argument prototype would still apply. */
9861 char kvm_read();
9862
9863 int main() {
9864 kvm_read()
9865 ; return 0; }
9866 EOF
9867 if { (eval echo configure:9868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9868 rm -rf conftest*
9869 eval "ac_cv_lib_$ac_lib_var=yes"
9870 else
9871 echo "configure: failed program was:" >&5
9872 cat conftest.$ac_ext >&5
9873 rm -rf conftest*
9874 eval "ac_cv_lib_$ac_lib_var=no"
9875 fi
9876 rm -f conftest*
9877 xe_check_libs=""
9878
9879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9880 echo "$ac_t""yes" 1>&6
9881 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9882 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9883 { test "$extra_verbose" = "yes" && cat << EOF
9884 Defining $ac_tr_lib
9885 EOF
9886 cat >> confdefs.h <<EOF
9887 #define $ac_tr_lib 1
9888 EOF
9889 }
9890
9891 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
9892
9893 else
9894 echo "$ac_t""no" 1>&6
9895 fi
9896
9897
9898 fi
8864 9899
8865 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 9900 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8866 echo "configure:8867: checking whether netdb declares h_errno" >&5 9901 echo "configure:9902: checking whether netdb declares h_errno" >&5
8867 cat > conftest.$ac_ext <<EOF 9902 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure" 9903 #line 9904 "configure"
8869 #include "confdefs.h" 9904 #include "confdefs.h"
8870 #include <netdb.h> 9905 #include <netdb.h>
8871 int main() { 9906 int main() {
8872 return h_errno; 9907 return h_errno;
8873 ; return 0; } 9908 ; return 0; }
8874 EOF 9909 EOF
8875 if { (eval echo configure:8876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9910 if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8876 rm -rf conftest* 9911 rm -rf conftest*
8877 echo "$ac_t""yes" 1>&6 9912 echo "$ac_t""yes" 1>&6
8878 { test "$extra_verbose" = "yes" && cat << \EOF 9913 { test "$extra_verbose" = "yes" && cat << \EOF
8879 Defining HAVE_H_ERRNO 9914 Defining HAVE_H_ERRNO
8880 EOF 9915 EOF
8890 echo "$ac_t""no" 1>&6 9925 echo "$ac_t""no" 1>&6
8891 fi 9926 fi
8892 rm -f conftest* 9927 rm -f conftest*
8893 9928
8894 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 9929 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8895 echo "configure:8896: checking for sigsetjmp" >&5 9930 echo "configure:9931: checking for sigsetjmp" >&5
8896 cat > conftest.$ac_ext <<EOF 9931 cat > conftest.$ac_ext <<EOF
8897 #line 8898 "configure" 9932 #line 9933 "configure"
8898 #include "confdefs.h" 9933 #include "confdefs.h"
8899 #include <setjmp.h> 9934 #include <setjmp.h>
8900 int main() { 9935 int main() {
8901 sigjmp_buf bar; sigsetjmp (bar, 0); 9936 sigjmp_buf bar; sigsetjmp (bar, 0);
8902 ; return 0; } 9937 ; return 0; }
8903 EOF 9938 EOF
8904 if { (eval echo configure:8905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9939 if { (eval echo configure:9940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8905 rm -rf conftest* 9940 rm -rf conftest*
8906 echo "$ac_t""yes" 1>&6 9941 echo "$ac_t""yes" 1>&6
8907 { test "$extra_verbose" = "yes" && cat << \EOF 9942 { test "$extra_verbose" = "yes" && cat << \EOF
8908 Defining HAVE_SIGSETJMP 9943 Defining HAVE_SIGSETJMP
8909 EOF 9944 EOF
8919 echo "$ac_t""no" 1>&6 9954 echo "$ac_t""no" 1>&6
8920 fi 9955 fi
8921 rm -f conftest* 9956 rm -f conftest*
8922 9957
8923 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 9958 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8924 echo "configure:8925: checking whether localtime caches TZ" >&5 9959 echo "configure:9960: checking whether localtime caches TZ" >&5
8925 9960
8926 if test "$ac_cv_func_tzset" = "yes"; then 9961 if test "$ac_cv_func_tzset" = "yes"; then
8927 cat > conftest.$ac_ext <<EOF 9962 cat > conftest.$ac_ext <<EOF
8928 #line 8929 "configure" 9963 #line 9964 "configure"
8929 #include "confdefs.h" 9964 #include "confdefs.h"
8930 #include <time.h> 9965 #include <time.h>
8931 #if STDC_HEADERS 9966 #if STDC_HEADERS
8932 # include <stdlib.h> 9967 # include <stdlib.h>
8933 #endif 9968 #endif
8958 if (localtime (&now)->tm_hour != hour_unset) 9993 if (localtime (&now)->tm_hour != hour_unset)
8959 exit (1); 9994 exit (1);
8960 exit (0); 9995 exit (0);
8961 } 9996 }
8962 EOF 9997 EOF
8963 if { (eval echo configure:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9998 if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8964 then 9999 then
8965 emacs_cv_localtime_cache=no 10000 emacs_cv_localtime_cache=no
8966 else 10001 else
8967 conftest_rc="$?" 10002 conftest_rc="$?"
8968 echo "configure: failed program was:" >&5 10003 echo "configure: failed program was:" >&5
8988 10023
8989 fi 10024 fi
8990 10025
8991 if test "$HAVE_TIMEVAL" = "yes"; then 10026 if test "$HAVE_TIMEVAL" = "yes"; then
8992 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 10027 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
8993 echo "configure:8994: checking whether gettimeofday accepts one or two arguments" >&5 10028 echo "configure:10029: checking whether gettimeofday accepts one or two arguments" >&5
8994 cat > conftest.$ac_ext <<EOF 10029 cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure" 10030 #line 10031 "configure"
8996 #include "confdefs.h" 10031 #include "confdefs.h"
8997 10032
8998 #ifdef TIME_WITH_SYS_TIME 10033 #ifdef TIME_WITH_SYS_TIME
8999 #include <sys/time.h> 10034 #include <sys/time.h>
9000 #include <time.h> 10035 #include <time.h>
9007 #endif 10042 #endif
9008 10043
9009 int main() { 10044 int main() {
9010 10045
9011 struct timeval time; 10046 struct timeval time;
9012 struct timezone dummy; 10047 gettimeofday (&time, 0);
9013 gettimeofday (&time, &dummy);
9014 10048
9015 ; return 0; } 10049 ; return 0; }
9016 EOF 10050 EOF
9017 if { (eval echo configure:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10051 if { (eval echo configure:10052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9018 rm -rf conftest* 10052 rm -rf conftest*
9019 echo "$ac_t""two" 1>&6 10053 echo "$ac_t""two" 1>&6
9020 else 10054 else
9021 echo "configure: failed program was:" >&5 10055 echo "configure: failed program was:" >&5
9022 cat conftest.$ac_ext >&5 10056 cat conftest.$ac_ext >&5
9034 rm -f conftest* 10068 rm -f conftest*
9035 fi 10069 fi
9036 10070
9037 10071
9038 echo $ac_n "checking for inline""... $ac_c" 1>&6 10072 echo $ac_n "checking for inline""... $ac_c" 1>&6
9039 echo "configure:9040: checking for inline" >&5 10073 echo "configure:10074: checking for inline" >&5
9040 10074
9041 ac_cv_c_inline=no 10075 ac_cv_c_inline=no
9042 for ac_kw in inline __inline__ __inline; do 10076 for ac_kw in inline __inline__ __inline; do
9043 cat > conftest.$ac_ext <<EOF 10077 cat > conftest.$ac_ext <<EOF
9044 #line 9045 "configure" 10078 #line 10079 "configure"
9045 #include "confdefs.h" 10079 #include "confdefs.h"
9046 10080
9047 int main() { 10081 int main() {
9048 } $ac_kw foo() { 10082 } $ac_kw foo() {
9049 ; return 0; } 10083 ; return 0; }
9050 EOF 10084 EOF
9051 if { (eval echo configure:9052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10085 if { (eval echo configure:10086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9052 rm -rf conftest* 10086 rm -rf conftest*
9053 ac_cv_c_inline=$ac_kw; break 10087 ac_cv_c_inline=$ac_kw; break
9054 else 10088 else
9055 echo "configure: failed program was:" >&5 10089 echo "configure: failed program was:" >&5
9056 cat conftest.$ac_ext >&5 10090 cat conftest.$ac_ext >&5
9096 10130
9097 10131
9098 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 10132 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9099 # for constant arguments. Useless! 10133 # for constant arguments. Useless!
9100 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 10134 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9101 echo "configure:9102: checking for working alloca.h" >&5 10135 echo "configure:10136: checking for working alloca.h" >&5
9102 10136
9103 cat > conftest.$ac_ext <<EOF 10137 cat > conftest.$ac_ext <<EOF
9104 #line 9105 "configure" 10138 #line 10139 "configure"
9105 #include "confdefs.h" 10139 #include "confdefs.h"
9106 #include <alloca.h> 10140 #include <alloca.h>
9107 int main() { 10141 int main() {
9108 char *p = alloca(2 * sizeof(int)); 10142 char *p = alloca(2 * sizeof(int));
9109 ; return 0; } 10143 ; return 0; }
9110 EOF 10144 EOF
9111 if { (eval echo configure:9112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10145 if { (eval echo configure:10146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9112 rm -rf conftest* 10146 rm -rf conftest*
9113 ac_cv_header_alloca_h=yes 10147 ac_cv_header_alloca_h=yes
9114 else 10148 else
9115 echo "configure: failed program was:" >&5 10149 echo "configure: failed program was:" >&5
9116 cat conftest.$ac_ext >&5 10150 cat conftest.$ac_ext >&5
9130 } 10164 }
9131 10165
9132 fi 10166 fi
9133 10167
9134 echo $ac_n "checking for alloca""... $ac_c" 1>&6 10168 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9135 echo "configure:9136: checking for alloca" >&5 10169 echo "configure:10170: checking for alloca" >&5
9136 10170
9137 cat > conftest.$ac_ext <<EOF 10171 cat > conftest.$ac_ext <<EOF
9138 #line 9139 "configure" 10172 #line 10173 "configure"
9139 #include "confdefs.h" 10173 #include "confdefs.h"
9140 10174
9141 #ifdef __GNUC__ 10175 #ifdef __GNUC__
9142 # define alloca __builtin_alloca 10176 # define alloca __builtin_alloca
9143 #else 10177 #else
9161 10195
9162 int main() { 10196 int main() {
9163 char *p = (char *) alloca(1); 10197 char *p = (char *) alloca(1);
9164 ; return 0; } 10198 ; return 0; }
9165 EOF 10199 EOF
9166 if { (eval echo configure:9167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10200 if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9167 rm -rf conftest* 10201 rm -rf conftest*
9168 ac_cv_func_alloca_works=yes 10202 ac_cv_func_alloca_works=yes
9169 else 10203 else
9170 echo "configure: failed program was:" >&5 10204 echo "configure: failed program was:" >&5
9171 cat conftest.$ac_ext >&5 10205 cat conftest.$ac_ext >&5
9200 EOF 10234 EOF
9201 } 10235 }
9202 10236
9203 10237
9204 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 10238 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9205 echo "configure:9206: checking whether alloca needs Cray hooks" >&5 10239 echo "configure:10240: checking whether alloca needs Cray hooks" >&5
9206 10240
9207 cat > conftest.$ac_ext <<EOF 10241 cat > conftest.$ac_ext <<EOF
9208 #line 9209 "configure" 10242 #line 10243 "configure"
9209 #include "confdefs.h" 10243 #include "confdefs.h"
9210 #if defined(CRAY) && ! defined(CRAY2) 10244 #if defined(CRAY) && ! defined(CRAY2)
9211 webecray 10245 webecray
9212 #else 10246 #else
9213 wenotbecray 10247 wenotbecray
9227 10261
9228 echo "$ac_t""$ac_cv_os_cray" 1>&6 10262 echo "$ac_t""$ac_cv_os_cray" 1>&6
9229 if test $ac_cv_os_cray = yes; then 10263 if test $ac_cv_os_cray = yes; then
9230 for ac_func in _getb67 GETB67 getb67; do 10264 for ac_func in _getb67 GETB67 getb67; do
9231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9232 echo "configure:9233: checking for $ac_func" >&5 10266 echo "configure:10267: checking for $ac_func" >&5
9233 10267
9234 cat > conftest.$ac_ext <<EOF 10268 cat > conftest.$ac_ext <<EOF
9235 #line 9236 "configure" 10269 #line 10270 "configure"
9236 #include "confdefs.h" 10270 #include "confdefs.h"
9237 /* System header to define __stub macros and hopefully few prototypes, 10271 /* System header to define __stub macros and hopefully few prototypes,
9238 which can conflict with char $ac_func(); below. */ 10272 which can conflict with char $ac_func(); below. */
9239 #include <assert.h> 10273 #include <assert.h>
9240 /* Override any gcc2 internal prototype to avoid an error. */ 10274 /* Override any gcc2 internal prototype to avoid an error. */
9253 $ac_func(); 10287 $ac_func();
9254 #endif 10288 #endif
9255 10289
9256 ; return 0; } 10290 ; return 0; }
9257 EOF 10291 EOF
9258 if { (eval echo configure:9259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10292 if { (eval echo configure:10293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9259 rm -rf conftest* 10293 rm -rf conftest*
9260 eval "ac_cv_func_$ac_func=yes" 10294 eval "ac_cv_func_$ac_func=yes"
9261 else 10295 else
9262 echo "configure: failed program was:" >&5 10296 echo "configure: failed program was:" >&5
9263 cat conftest.$ac_ext >&5 10297 cat conftest.$ac_ext >&5
9283 10317
9284 done 10318 done
9285 fi 10319 fi
9286 10320
9287 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 10321 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9288 echo "configure:9289: checking stack direction for C alloca" >&5 10322 echo "configure:10323: checking stack direction for C alloca" >&5
9289 10323
9290 cat > conftest.$ac_ext <<EOF 10324 cat > conftest.$ac_ext <<EOF
9291 #line 9292 "configure" 10325 #line 10326 "configure"
9292 #include "confdefs.h" 10326 #include "confdefs.h"
9293 find_stack_direction () 10327 find_stack_direction ()
9294 { 10328 {
9295 static char *addr = 0; 10329 static char *addr = 0;
9296 auto char dummy; 10330 auto char dummy;
9305 main () 10339 main ()
9306 { 10340 {
9307 exit (find_stack_direction() < 0); 10341 exit (find_stack_direction() < 0);
9308 } 10342 }
9309 EOF 10343 EOF
9310 if { (eval echo configure:9311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10344 if { (eval echo configure:10345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9311 then 10345 then
9312 ac_cv_c_stack_direction=1 10346 ac_cv_c_stack_direction=1
9313 else 10347 else
9314 conftest_rc="$?" 10348 conftest_rc="$?"
9315 echo "configure: failed program was:" >&5 10349 echo "configure: failed program was:" >&5
9334 echo " xemacs will be linked with \"$ALLOCA\"" 10368 echo " xemacs will be linked with \"$ALLOCA\""
9335 fi 10369 fi
9336 10370
9337 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 10371 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9338 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 10372 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9339 echo "configure:9340: checking for vfork.h" >&5 10373 echo "configure:10374: checking for vfork.h" >&5
9340 10374
9341 cat > conftest.$ac_ext <<EOF 10375 cat > conftest.$ac_ext <<EOF
9342 #line 9343 "configure" 10376 #line 10377 "configure"
9343 #include "confdefs.h" 10377 #include "confdefs.h"
9344 #include <vfork.h> 10378 #include <vfork.h>
9345 EOF 10379 EOF
9346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9347 { (eval echo configure:9348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10381 { (eval echo configure:10382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9349 if test -z "$ac_err"; then 10383 if test -z "$ac_err"; then
9350 rm -rf conftest* 10384 rm -rf conftest*
9351 eval "ac_cv_header_$ac_safe=yes" 10385 eval "ac_cv_header_$ac_safe=yes"
9352 else 10386 else
9370 else 10404 else
9371 echo "$ac_t""no" 1>&6 10405 echo "$ac_t""no" 1>&6
9372 fi 10406 fi
9373 10407
9374 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 10408 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9375 echo "configure:9376: checking for working vfork" >&5 10409 echo "configure:10410: checking for working vfork" >&5
9376 10410
9377 cat > conftest.$ac_ext <<EOF 10411 cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure" 10412 #line 10413 "configure"
9379 #include "confdefs.h" 10413 #include "confdefs.h"
9380 /* Thanks to Paul Eggert for this test. */ 10414 /* Thanks to Paul Eggert for this test. */
9381 #include <stdio.h> 10415 #include <stdio.h>
9382 #include <sys/types.h> 10416 #include <sys/types.h>
9383 #include <sys/stat.h> 10417 #include <sys/stat.h>
9468 || fstat(fileno(stdout), &st) != 0 10502 || fstat(fileno(stdout), &st) != 0
9469 ); 10503 );
9470 } 10504 }
9471 } 10505 }
9472 EOF 10506 EOF
9473 if { (eval echo configure:9474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10507 if { (eval echo configure:10508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9474 then 10508 then
9475 ac_cv_func_vfork_works=yes 10509 ac_cv_func_vfork_works=yes
9476 else 10510 else
9477 conftest_rc="$?" 10511 conftest_rc="$?"
9478 echo "configure: failed program was:" >&5 10512 echo "configure: failed program was:" >&5
9494 10528
9495 fi 10529 fi
9496 10530
9497 10531
9498 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 10532 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9499 echo "configure:9500: checking for working strcoll" >&5 10533 echo "configure:10534: checking for working strcoll" >&5
9500 10534
9501 cat > conftest.$ac_ext <<EOF 10535 cat > conftest.$ac_ext <<EOF
9502 #line 9503 "configure" 10536 #line 10537 "configure"
9503 #include "confdefs.h" 10537 #include "confdefs.h"
9504 #include <string.h> 10538 #include <string.h>
9505 main () 10539 main ()
9506 { 10540 {
9507 exit (strcoll ("abc", "def") >= 0 || 10541 exit (strcoll ("abc", "def") >= 0 ||
9508 strcoll ("ABC", "DEF") >= 0 || 10542 strcoll ("ABC", "DEF") >= 0 ||
9509 strcoll ("123", "456") >= 0); 10543 strcoll ("123", "456") >= 0);
9510 } 10544 }
9511 EOF 10545 EOF
9512 if { (eval echo configure:9513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10546 if { (eval echo configure:10547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9513 then 10547 then
9514 ac_cv_func_strcoll_works=yes 10548 ac_cv_func_strcoll_works=yes
9515 else 10549 else
9516 conftest_rc="$?" 10550 conftest_rc="$?"
9517 echo "configure: failed program was:" >&5 10551 echo "configure: failed program was:" >&5
9535 10569
9536 10570
9537 for ac_func in getpgrp 10571 for ac_func in getpgrp
9538 do 10572 do
9539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9540 echo "configure:9541: checking for $ac_func" >&5 10574 echo "configure:10575: checking for $ac_func" >&5
9541 10575
9542 cat > conftest.$ac_ext <<EOF 10576 cat > conftest.$ac_ext <<EOF
9543 #line 9544 "configure" 10577 #line 10578 "configure"
9544 #include "confdefs.h" 10578 #include "confdefs.h"
9545 /* System header to define __stub macros and hopefully few prototypes, 10579 /* System header to define __stub macros and hopefully few prototypes,
9546 which can conflict with char $ac_func(); below. */ 10580 which can conflict with char $ac_func(); below. */
9547 #include <assert.h> 10581 #include <assert.h>
9548 /* Override any gcc2 internal prototype to avoid an error. */ 10582 /* Override any gcc2 internal prototype to avoid an error. */
9561 $ac_func(); 10595 $ac_func();
9562 #endif 10596 #endif
9563 10597
9564 ; return 0; } 10598 ; return 0; }
9565 EOF 10599 EOF
9566 if { (eval echo configure:9567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10600 if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9567 rm -rf conftest* 10601 rm -rf conftest*
9568 eval "ac_cv_func_$ac_func=yes" 10602 eval "ac_cv_func_$ac_func=yes"
9569 else 10603 else
9570 echo "configure: failed program was:" >&5 10604 echo "configure: failed program was:" >&5
9571 cat conftest.$ac_ext >&5 10605 cat conftest.$ac_ext >&5
9589 echo "$ac_t""no" 1>&6 10623 echo "$ac_t""no" 1>&6
9590 fi 10624 fi
9591 done 10625 done
9592 10626
9593 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 10627 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9594 echo "configure:9595: checking whether getpgrp takes no argument" >&5 10628 echo "configure:10629: checking whether getpgrp takes no argument" >&5
9595 10629
9596 cat > conftest.$ac_ext <<EOF 10630 cat > conftest.$ac_ext <<EOF
9597 #line 9598 "configure" 10631 #line 10632 "configure"
9598 #include "confdefs.h" 10632 #include "confdefs.h"
9599 10633
9600 /* 10634 /*
9601 * If this system has a BSD-style getpgrp(), 10635 * If this system has a BSD-style getpgrp(),
9602 * which takes a pid argument, exit unsuccessfully. 10636 * which takes a pid argument, exit unsuccessfully.
9647 exit(s>>8); 10681 exit(s>>8);
9648 } 10682 }
9649 } 10683 }
9650 10684
9651 EOF 10685 EOF
9652 if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10686 if { (eval echo configure:10687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9653 then 10687 then
9654 ac_cv_func_getpgrp_void=yes 10688 ac_cv_func_getpgrp_void=yes
9655 else 10689 else
9656 conftest_rc="$?" 10690 conftest_rc="$?"
9657 echo "configure: failed program was:" >&5 10691 echo "configure: failed program was:" >&5
9674 10708
9675 fi 10709 fi
9676 10710
9677 10711
9678 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 10712 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9679 echo "configure:9680: checking for working mmap" >&5 10713 echo "configure:10714: checking for working mmap" >&5
9680 case "$opsys" in ultrix* ) have_mmap=no ;; *) 10714 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9681 cat > conftest.$ac_ext <<EOF 10715 cat > conftest.$ac_ext <<EOF
9682 #line 9683 "configure" 10716 #line 10717 "configure"
9683 #include "confdefs.h" 10717 #include "confdefs.h"
9684 #include <stdio.h> 10718 #include <stdio.h>
9685 #include <unistd.h> 10719 #include <unistd.h>
9686 #include <fcntl.h> 10720 #include <fcntl.h>
9687 #include <sys/mman.h> 10721 #include <sys/mman.h>
9710 return 0; 10744 return 0;
9711 perror ("conftest: mmap failed"); 10745 perror ("conftest: mmap failed");
9712 return 1; 10746 return 1;
9713 } 10747 }
9714 EOF 10748 EOF
9715 if { (eval echo configure:9716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10749 if { (eval echo configure:10750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9716 then 10750 then
9717 have_mmap=yes 10751 have_mmap=yes
9718 else 10752 else
9719 conftest_rc="$?" 10753 conftest_rc="$?"
9720 echo "configure: failed program was:" >&5 10754 echo "configure: failed program was:" >&5
9731 cat >> confdefs.h <<\EOF 10765 cat >> confdefs.h <<\EOF
9732 #define HAVE_MMAP 1 10766 #define HAVE_MMAP 1
9733 EOF 10767 EOF
9734 } 10768 }
9735 10769
9736 for ac_hdr in unistd.h 10770
9737 do 10771 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
9738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10772 if test "$rel_alloc $have_mmap" = "default yes"; then
9739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10773 if test "$doug_lea_malloc" = "yes"; then
9740 echo "configure:9741: checking for $ac_hdr" >&5 10774 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
9741 10775 echo "configure:10776: checking for M_MMAP_THRESHOLD" >&5
9742 cat > conftest.$ac_ext <<EOF 10776 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure" 10777 #line 10778 "configure"
9744 #include "confdefs.h" 10778 #include "confdefs.h"
9745 #include <$ac_hdr> 10779 #include <malloc.h>
9746 EOF
9747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9748 { (eval echo configure:9749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9750 if test -z "$ac_err"; then
9751 rm -rf conftest*
9752 eval "ac_cv_header_$ac_safe=yes"
9753 else
9754 echo "$ac_err" >&5
9755 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 rm -rf conftest*
9758 eval "ac_cv_header_$ac_safe=no"
9759 fi
9760 rm -f conftest*
9761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9762 echo "$ac_t""yes" 1>&6
9763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9764 { test "$extra_verbose" = "yes" && cat << EOF
9765 Defining $ac_tr_hdr
9766 EOF
9767 cat >> confdefs.h <<EOF
9768 #define $ac_tr_hdr 1
9769 EOF
9770 }
9771
9772 else
9773 echo "$ac_t""no" 1>&6
9774 fi
9775 done
9776
9777 for ac_func in getpagesize
9778 do
9779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9780 echo "configure:9781: checking for $ac_func" >&5
9781
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 /* System header to define __stub macros and hopefully few prototypes,
9786 which can conflict with char $ac_func(); below. */
9787 #include <assert.h>
9788 /* Override any gcc2 internal prototype to avoid an error. */
9789 /* We use char because int might match the return type of a gcc2
9790 builtin and then its argument prototype would still apply. */
9791 char $ac_func();
9792
9793 int main() { 10780 int main() {
9794 10781
9795 /* The GNU C library defines this for functions which it implements 10782 #ifndef M_MMAP_THRESHOLD
9796 to always fail with ENOSYS. Some functions are actually named 10783 #error No M_MMAP_THRESHOLD :-(
9797 something starting with __ and the normal name is an alias. */ 10784 !@+$%^&*_)(_ - unlikely to compile...
9798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9799 choke me
9800 #else
9801 $ac_func();
9802 #endif 10785 #endif
9803 10786
9804 ; return 0; } 10787 ; return 0; }
9805 EOF 10788 EOF
9806 if { (eval echo configure:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10789 if { (eval echo configure:10790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9807 rm -rf conftest* 10790 rm -rf conftest*
9808 eval "ac_cv_func_$ac_func=yes" 10791 rel_alloc=no; echo "$ac_t""yes" 1>&6;
9809 else 10792 else
9810 echo "configure: failed program was:" >&5 10793 echo "configure: failed program was:" >&5
9811 cat conftest.$ac_ext >&5 10794 cat conftest.$ac_ext >&5
9812 rm -rf conftest* 10795 rm -rf conftest*
9813 eval "ac_cv_func_$ac_func=no" 10796 rel_alloc=yes; echo "$ac_t""no" 1>&6;
9814 fi 10797 fi
9815 rm -f conftest* 10798 rm -f conftest*
9816 10799 else
9817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 10800 rel_alloc=yes
9818 echo "$ac_t""yes" 1>&6 10801 fi
9819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 10802 fi
9820 { test "$extra_verbose" = "yes" && cat << EOF
9821 Defining $ac_tr_func
9822 EOF
9823 cat >> confdefs.h <<EOF
9824 #define $ac_tr_func 1
9825 EOF
9826 }
9827
9828 else
9829 echo "$ac_t""no" 1>&6
9830 fi
9831 done
9832
9833 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9834 echo "configure:9835: checking for working mmap" >&5
9835
9836 cat > conftest.$ac_ext <<EOF
9837 #line 9838 "configure"
9838 #include "confdefs.h"
9839
9840 /* Thanks to Mike Haertel and Jim Avera for this test.
9841 Here is a matrix of mmap possibilities:
9842 mmap private not fixed
9843 mmap private fixed at somewhere currently unmapped
9844 mmap private fixed at somewhere already mapped
9845 mmap shared not fixed
9846 mmap shared fixed at somewhere currently unmapped
9847 mmap shared fixed at somewhere already mapped
9848 For private mappings, we should verify that changes cannot be read()
9849 back from the file, nor mmap's back from the file at a different
9850 address. (There have been systems where private was not correctly
9851 implemented like the infamous i386 svr4.0, and systems where the
9852 VM page cache was not coherent with the filesystem buffer cache
9853 like early versions of FreeBSD and possibly contemporary NetBSD.)
9854 For shared mappings, we should conversely verify that changes get
9855 propogated back to all the places they're supposed to be.
9856
9857 Grep wants private fixed already mapped.
9858 The main things grep needs to know about mmap are:
9859 * does it exist and is it safe to write into the mmap'd area
9860 * how to use it (BSD variants) */
9861 #include <sys/types.h>
9862 #include <fcntl.h>
9863 #include <sys/mman.h>
9864
9865 /* This mess was copied from the GNU getpagesize.h. */
9866 #ifndef HAVE_GETPAGESIZE
9867 # ifdef HAVE_UNISTD_H
9868 # include <unistd.h>
9869 # endif
9870
9871 /* Assume that all systems that can run configure have sys/param.h. */
9872 # ifndef HAVE_SYS_PARAM_H
9873 # define HAVE_SYS_PARAM_H 1
9874 # endif
9875
9876 # ifdef _SC_PAGESIZE
9877 # define getpagesize() sysconf(_SC_PAGESIZE)
9878 # else /* no _SC_PAGESIZE */
9879 # ifdef HAVE_SYS_PARAM_H
9880 # include <sys/param.h>
9881 # ifdef EXEC_PAGESIZE
9882 # define getpagesize() EXEC_PAGESIZE
9883 # else /* no EXEC_PAGESIZE */
9884 # ifdef NBPG
9885 # define getpagesize() NBPG * CLSIZE
9886 # ifndef CLSIZE
9887 # define CLSIZE 1
9888 # endif /* no CLSIZE */
9889 # else /* no NBPG */
9890 # ifdef NBPC
9891 # define getpagesize() NBPC
9892 # else /* no NBPC */
9893 # ifdef PAGESIZE
9894 # define getpagesize() PAGESIZE
9895 # endif /* PAGESIZE */
9896 # endif /* no NBPC */
9897 # endif /* no NBPG */
9898 # endif /* no EXEC_PAGESIZE */
9899 # else /* no HAVE_SYS_PARAM_H */
9900 # define getpagesize() 8192 /* punt totally */
9901 # endif /* no HAVE_SYS_PARAM_H */
9902 # endif /* no _SC_PAGESIZE */
9903
9904 #endif /* no HAVE_GETPAGESIZE */
9905
9906 #ifdef __cplusplus
9907 extern "C" { void *malloc(unsigned); }
9908 #else
9909 char *malloc();
9910 #endif
9911
9912 int
9913 main()
9914 {
9915 char *data, *data2, *data3;
9916 int i, pagesize;
9917 int fd;
9918
9919 pagesize = getpagesize();
9920
9921 /*
9922 * First, make a file with some known garbage in it.
9923 */
9924 data = malloc(pagesize);
9925 if (!data)
9926 exit(1);
9927 for (i = 0; i < pagesize; ++i)
9928 *(data + i) = rand();
9929 umask(0);
9930 fd = creat("conftestmmap", 0600);
9931 if (fd < 0)
9932 exit(1);
9933 if (write(fd, data, pagesize) != pagesize)
9934 exit(1);
9935 close(fd);
9936
9937 /*
9938 * Next, try to mmap the file at a fixed address which
9939 * already has something else allocated at it. If we can,
9940 * also make sure that we see the same garbage.
9941 */
9942 fd = open("conftestmmap", O_RDWR);
9943 if (fd < 0)
9944 exit(1);
9945 data2 = malloc(2 * pagesize);
9946 if (!data2)
9947 exit(1);
9948 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9949 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
9950 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9951 exit(1);
9952 for (i = 0; i < pagesize; ++i)
9953 if (*(data + i) != *(data2 + i))
9954 exit(1);
9955
9956 /*
9957 * Finally, make sure that changes to the mapped area
9958 * do not percolate back to the file as seen by read().
9959 * (This is a bug on some variants of i386 svr4.0.)
9960 */
9961 for (i = 0; i < pagesize; ++i)
9962 *(data2 + i) = *(data2 + i) + 1;
9963 data3 = malloc(pagesize);
9964 if (!data3)
9965 exit(1);
9966 if (read(fd, data3, pagesize) != pagesize)
9967 exit(1);
9968 for (i = 0; i < pagesize; ++i)
9969 if (*(data + i) != *(data3 + i))
9970 exit(1);
9971 close(fd);
9972 unlink("conftestmmap");
9973 exit(0);
9974 }
9975
9976 EOF
9977 if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9978 then
9979 ac_cv_func_mmap_fixed_mapped=yes
9980 else
9981 conftest_rc="$?"
9982 echo "configure: failed program was:" >&5
9983 cat conftest.$ac_ext >&5
9984 rm -fr conftest*
9985 ac_cv_func_mmap_fixed_mapped=no
9986 fi
9987 rm -fr conftest*
9988
9989 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
9990 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9991 { test "$extra_verbose" = "yes" && cat << \EOF
9992 Defining HAVE_MMAP
9993 EOF
9994 cat >> confdefs.h <<\EOF
9995 #define HAVE_MMAP 1
9996 EOF
9997 }
9998
9999 fi
10000
10001
10002 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10003 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10004 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 10803 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10005 Defining REL_ALLOC 10804 Defining REL_ALLOC
10006 EOF 10805 EOF
10007 cat >> confdefs.h <<\EOF 10806 cat >> confdefs.h <<\EOF
10008 #define REL_ALLOC 1 10807 #define REL_ALLOC 1
10010 } 10809 }
10011 10810
10012 10811
10013 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 10812 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10014 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 10813 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10015 echo "configure:10016: checking for termios.h" >&5 10814 echo "configure:10815: checking for termios.h" >&5
10016 10815
10017 cat > conftest.$ac_ext <<EOF 10816 cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure" 10817 #line 10818 "configure"
10019 #include "confdefs.h" 10818 #include "confdefs.h"
10020 #include <termios.h> 10819 #include <termios.h>
10021 EOF 10820 EOF
10022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10023 { (eval echo configure:10024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10822 { (eval echo configure:10823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10025 if test -z "$ac_err"; then 10824 if test -z "$ac_err"; then
10026 rm -rf conftest* 10825 rm -rf conftest*
10027 eval "ac_cv_header_$ac_safe=yes" 10826 eval "ac_cv_header_$ac_safe=yes"
10028 else 10827 else
10061 10860
10062 else 10861 else
10063 echo "$ac_t""no" 1>&6 10862 echo "$ac_t""no" 1>&6
10064 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 10863 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10065 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 10864 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10066 echo "configure:10067: checking for termio.h" >&5 10865 echo "configure:10866: checking for termio.h" >&5
10067 10866
10068 cat > conftest.$ac_ext <<EOF 10867 cat > conftest.$ac_ext <<EOF
10069 #line 10070 "configure" 10868 #line 10869 "configure"
10070 #include "confdefs.h" 10869 #include "confdefs.h"
10071 #include <termio.h> 10870 #include <termio.h>
10072 EOF 10871 EOF
10073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10074 { (eval echo configure:10075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10873 { (eval echo configure:10874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10076 if test -z "$ac_err"; then 10875 if test -z "$ac_err"; then
10077 rm -rf conftest* 10876 rm -rf conftest*
10078 eval "ac_cv_header_$ac_safe=yes" 10877 eval "ac_cv_header_$ac_safe=yes"
10079 else 10878 else
10101 fi 10900 fi
10102 10901
10103 10902
10104 10903
10105 echo $ac_n "checking for socket""... $ac_c" 1>&6 10904 echo $ac_n "checking for socket""... $ac_c" 1>&6
10106 echo "configure:10107: checking for socket" >&5 10905 echo "configure:10906: checking for socket" >&5
10107 10906
10108 cat > conftest.$ac_ext <<EOF 10907 cat > conftest.$ac_ext <<EOF
10109 #line 10110 "configure" 10908 #line 10909 "configure"
10110 #include "confdefs.h" 10909 #include "confdefs.h"
10111 /* System header to define __stub macros and hopefully few prototypes, 10910 /* System header to define __stub macros and hopefully few prototypes,
10112 which can conflict with char socket(); below. */ 10911 which can conflict with char socket(); below. */
10113 #include <assert.h> 10912 #include <assert.h>
10114 /* Override any gcc2 internal prototype to avoid an error. */ 10913 /* Override any gcc2 internal prototype to avoid an error. */
10127 socket(); 10926 socket();
10128 #endif 10927 #endif
10129 10928
10130 ; return 0; } 10929 ; return 0; }
10131 EOF 10930 EOF
10132 if { (eval echo configure:10133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10931 if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10133 rm -rf conftest* 10932 rm -rf conftest*
10134 eval "ac_cv_func_socket=yes" 10933 eval "ac_cv_func_socket=yes"
10135 else 10934 else
10136 echo "configure: failed program was:" >&5 10935 echo "configure: failed program was:" >&5
10137 cat conftest.$ac_ext >&5 10936 cat conftest.$ac_ext >&5
10142 10941
10143 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 10942 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10144 echo "$ac_t""yes" 1>&6 10943 echo "$ac_t""yes" 1>&6
10145 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 10944 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10146 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 10945 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10147 echo "configure:10148: checking for netinet/in.h" >&5 10946 echo "configure:10947: checking for netinet/in.h" >&5
10148 10947
10149 cat > conftest.$ac_ext <<EOF 10948 cat > conftest.$ac_ext <<EOF
10150 #line 10151 "configure" 10949 #line 10950 "configure"
10151 #include "confdefs.h" 10950 #include "confdefs.h"
10152 #include <netinet/in.h> 10951 #include <netinet/in.h>
10153 EOF 10952 EOF
10154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10155 { (eval echo configure:10156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10954 { (eval echo configure:10955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10157 if test -z "$ac_err"; then 10956 if test -z "$ac_err"; then
10158 rm -rf conftest* 10957 rm -rf conftest*
10159 eval "ac_cv_header_$ac_safe=yes" 10958 eval "ac_cv_header_$ac_safe=yes"
10160 else 10959 else
10167 rm -f conftest* 10966 rm -f conftest*
10168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10169 echo "$ac_t""yes" 1>&6 10968 echo "$ac_t""yes" 1>&6
10170 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 10969 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10171 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 10970 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10172 echo "configure:10173: checking for arpa/inet.h" >&5 10971 echo "configure:10972: checking for arpa/inet.h" >&5
10173 10972
10174 cat > conftest.$ac_ext <<EOF 10973 cat > conftest.$ac_ext <<EOF
10175 #line 10176 "configure" 10974 #line 10975 "configure"
10176 #include "confdefs.h" 10975 #include "confdefs.h"
10177 #include <arpa/inet.h> 10976 #include <arpa/inet.h>
10178 EOF 10977 EOF
10179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10180 { (eval echo configure:10181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10979 { (eval echo configure:10980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10182 if test -z "$ac_err"; then 10981 if test -z "$ac_err"; then
10183 rm -rf conftest* 10982 rm -rf conftest*
10184 eval "ac_cv_header_$ac_safe=yes" 10983 eval "ac_cv_header_$ac_safe=yes"
10185 else 10984 else
10200 #define HAVE_SOCKETS 1 10999 #define HAVE_SOCKETS 1
10201 EOF 11000 EOF
10202 } 11001 }
10203 11002
10204 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 11003 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10205 echo "configure:10206: checking "for sun_len member in struct sockaddr_un"" >&5 11004 echo "configure:11005: checking "for sun_len member in struct sockaddr_un"" >&5
10206 cat > conftest.$ac_ext <<EOF 11005 cat > conftest.$ac_ext <<EOF
10207 #line 10208 "configure" 11006 #line 11007 "configure"
10208 #include "confdefs.h" 11007 #include "confdefs.h"
10209 11008
10210 #include <sys/types.h> 11009 #include <sys/types.h>
10211 #include <sys/socket.h> 11010 #include <sys/socket.h>
10212 #include <sys/un.h> 11011 #include <sys/un.h>
10213 11012
10214 int main() { 11013 int main() {
10215 static struct sockaddr_un x; x.sun_len = 1; 11014 static struct sockaddr_un x; x.sun_len = 1;
10216 ; return 0; } 11015 ; return 0; }
10217 EOF 11016 EOF
10218 if { (eval echo configure:10219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11017 if { (eval echo configure:11018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10219 rm -rf conftest* 11018 rm -rf conftest*
10220 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 11019 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10221 Defining HAVE_SOCKADDR_SUN_LEN 11020 Defining HAVE_SOCKADDR_SUN_LEN
10222 EOF 11021 EOF
10223 cat >> confdefs.h <<\EOF 11022 cat >> confdefs.h <<\EOF
10231 rm -rf conftest* 11030 rm -rf conftest*
10232 echo "$ac_t""no" 1>&6 11031 echo "$ac_t""no" 1>&6
10233 fi 11032 fi
10234 rm -f conftest* 11033 rm -f conftest*
10235 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 11034 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10236 echo "configure:10237: checking "for ip_mreq struct in netinet/in.h"" >&5 11035 echo "configure:11036: checking "for ip_mreq struct in netinet/in.h"" >&5
10237 cat > conftest.$ac_ext <<EOF 11036 cat > conftest.$ac_ext <<EOF
10238 #line 10239 "configure" 11037 #line 11038 "configure"
10239 #include "confdefs.h" 11038 #include "confdefs.h"
10240 11039
10241 #include <sys/types.h> 11040 #include <sys/types.h>
10242 #include <netinet/in.h> 11041 #include <netinet/in.h>
10243 11042
10244 int main() { 11043 int main() {
10245 static struct ip_mreq x; 11044 static struct ip_mreq x;
10246 ; return 0; } 11045 ; return 0; }
10247 EOF 11046 EOF
10248 if { (eval echo configure:10249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11047 if { (eval echo configure:11048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10249 rm -rf conftest* 11048 rm -rf conftest*
10250 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 11049 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10251 Defining HAVE_MULTICAST 11050 Defining HAVE_MULTICAST
10252 EOF 11051 EOF
10253 cat >> confdefs.h <<\EOF 11052 cat >> confdefs.h <<\EOF
10274 echo "$ac_t""no" 1>&6 11073 echo "$ac_t""no" 1>&6
10275 fi 11074 fi
10276 11075
10277 11076
10278 echo $ac_n "checking for msgget""... $ac_c" 1>&6 11077 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10279 echo "configure:10280: checking for msgget" >&5 11078 echo "configure:11079: checking for msgget" >&5
10280 11079
10281 cat > conftest.$ac_ext <<EOF 11080 cat > conftest.$ac_ext <<EOF
10282 #line 10283 "configure" 11081 #line 11082 "configure"
10283 #include "confdefs.h" 11082 #include "confdefs.h"
10284 /* System header to define __stub macros and hopefully few prototypes, 11083 /* System header to define __stub macros and hopefully few prototypes,
10285 which can conflict with char msgget(); below. */ 11084 which can conflict with char msgget(); below. */
10286 #include <assert.h> 11085 #include <assert.h>
10287 /* Override any gcc2 internal prototype to avoid an error. */ 11086 /* Override any gcc2 internal prototype to avoid an error. */
10300 msgget(); 11099 msgget();
10301 #endif 11100 #endif
10302 11101
10303 ; return 0; } 11102 ; return 0; }
10304 EOF 11103 EOF
10305 if { (eval echo configure:10306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11104 if { (eval echo configure:11105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10306 rm -rf conftest* 11105 rm -rf conftest*
10307 eval "ac_cv_func_msgget=yes" 11106 eval "ac_cv_func_msgget=yes"
10308 else 11107 else
10309 echo "configure: failed program was:" >&5 11108 echo "configure: failed program was:" >&5
10310 cat conftest.$ac_ext >&5 11109 cat conftest.$ac_ext >&5
10315 11114
10316 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 11115 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10317 echo "$ac_t""yes" 1>&6 11116 echo "$ac_t""yes" 1>&6
10318 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 11117 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10319 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 11118 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10320 echo "configure:10321: checking for sys/ipc.h" >&5 11119 echo "configure:11120: checking for sys/ipc.h" >&5
10321 11120
10322 cat > conftest.$ac_ext <<EOF 11121 cat > conftest.$ac_ext <<EOF
10323 #line 10324 "configure" 11122 #line 11123 "configure"
10324 #include "confdefs.h" 11123 #include "confdefs.h"
10325 #include <sys/ipc.h> 11124 #include <sys/ipc.h>
10326 EOF 11125 EOF
10327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10328 { (eval echo configure:10329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11127 { (eval echo configure:11128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10330 if test -z "$ac_err"; then 11129 if test -z "$ac_err"; then
10331 rm -rf conftest* 11130 rm -rf conftest*
10332 eval "ac_cv_header_$ac_safe=yes" 11131 eval "ac_cv_header_$ac_safe=yes"
10333 else 11132 else
10340 rm -f conftest* 11139 rm -f conftest*
10341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10342 echo "$ac_t""yes" 1>&6 11141 echo "$ac_t""yes" 1>&6
10343 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 11142 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10344 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 11143 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10345 echo "configure:10346: checking for sys/msg.h" >&5 11144 echo "configure:11145: checking for sys/msg.h" >&5
10346 11145
10347 cat > conftest.$ac_ext <<EOF 11146 cat > conftest.$ac_ext <<EOF
10348 #line 10349 "configure" 11147 #line 11148 "configure"
10349 #include "confdefs.h" 11148 #include "confdefs.h"
10350 #include <sys/msg.h> 11149 #include <sys/msg.h>
10351 EOF 11150 EOF
10352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10353 { (eval echo configure:10354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11152 { (eval echo configure:11153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10355 if test -z "$ac_err"; then 11154 if test -z "$ac_err"; then
10356 rm -rf conftest* 11155 rm -rf conftest*
10357 eval "ac_cv_header_$ac_safe=yes" 11156 eval "ac_cv_header_$ac_safe=yes"
10358 else 11157 else
10386 fi 11185 fi
10387 11186
10388 11187
10389 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 11188 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10390 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 11189 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10391 echo "configure:10392: checking for dirent.h" >&5 11190 echo "configure:11191: checking for dirent.h" >&5
10392 11191
10393 cat > conftest.$ac_ext <<EOF 11192 cat > conftest.$ac_ext <<EOF
10394 #line 10395 "configure" 11193 #line 11194 "configure"
10395 #include "confdefs.h" 11194 #include "confdefs.h"
10396 #include <dirent.h> 11195 #include <dirent.h>
10397 EOF 11196 EOF
10398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10399 { (eval echo configure:10400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11198 { (eval echo configure:11199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10401 if test -z "$ac_err"; then 11200 if test -z "$ac_err"; then
10402 rm -rf conftest* 11201 rm -rf conftest*
10403 eval "ac_cv_header_$ac_safe=yes" 11202 eval "ac_cv_header_$ac_safe=yes"
10404 else 11203 else
10421 11220
10422 else 11221 else
10423 echo "$ac_t""no" 1>&6 11222 echo "$ac_t""no" 1>&6
10424 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 11223 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10425 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 11224 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10426 echo "configure:10427: checking for sys/dir.h" >&5 11225 echo "configure:11226: checking for sys/dir.h" >&5
10427 11226
10428 cat > conftest.$ac_ext <<EOF 11227 cat > conftest.$ac_ext <<EOF
10429 #line 10430 "configure" 11228 #line 11229 "configure"
10430 #include "confdefs.h" 11229 #include "confdefs.h"
10431 #include <sys/dir.h> 11230 #include <sys/dir.h>
10432 EOF 11231 EOF
10433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10434 { (eval echo configure:10435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11233 { (eval echo configure:11234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10436 if test -z "$ac_err"; then 11235 if test -z "$ac_err"; then
10437 rm -rf conftest* 11236 rm -rf conftest*
10438 eval "ac_cv_header_$ac_safe=yes" 11237 eval "ac_cv_header_$ac_safe=yes"
10439 else 11238 else
10462 fi 11261 fi
10463 11262
10464 11263
10465 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 11264 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10466 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 11265 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10467 echo "configure:10468: checking for nlist.h" >&5 11266 echo "configure:11267: checking for nlist.h" >&5
10468 11267
10469 cat > conftest.$ac_ext <<EOF 11268 cat > conftest.$ac_ext <<EOF
10470 #line 10471 "configure" 11269 #line 11270 "configure"
10471 #include "confdefs.h" 11270 #include "confdefs.h"
10472 #include <nlist.h> 11271 #include <nlist.h>
10473 EOF 11272 EOF
10474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10475 { (eval echo configure:10476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11274 { (eval echo configure:11275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10477 if test -z "$ac_err"; then 11276 if test -z "$ac_err"; then
10478 rm -rf conftest* 11277 rm -rf conftest*
10479 eval "ac_cv_header_$ac_safe=yes" 11278 eval "ac_cv_header_$ac_safe=yes"
10480 else 11279 else
10500 fi 11299 fi
10501 11300
10502 11301
10503 11302
10504 echo "checking "for sound support"" 1>&6 11303 echo "checking "for sound support"" 1>&6
10505 echo "configure:10506: checking "for sound support"" >&5 11304 echo "configure:11305: checking "for sound support"" >&5
10506 case "$with_sound" in
10507 native | both ) with_native_sound=yes;;
10508 nas | no ) with_native_sound=no;;
10509 esac
10510 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 11305 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10511 11306
10512 if test "$with_native_sound" != "no"; then 11307 if test "$with_native_sound" != "no"; then
10513 if test -n "$native_sound_lib"; then 11308 if test -n "$native_sound_lib"; then
10514 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 11309 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10515 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 11310 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10516 echo "configure:10517: checking for multimedia/audio_device.h" >&5 11311 echo "configure:11312: checking for multimedia/audio_device.h" >&5
10517 11312
10518 cat > conftest.$ac_ext <<EOF 11313 cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure" 11314 #line 11315 "configure"
10520 #include "confdefs.h" 11315 #include "confdefs.h"
10521 #include <multimedia/audio_device.h> 11316 #include <multimedia/audio_device.h>
10522 EOF 11317 EOF
10523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10524 { (eval echo configure:10525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11319 { (eval echo configure:11320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10526 if test -z "$ac_err"; then 11321 if test -z "$ac_err"; then
10527 rm -rf conftest* 11322 rm -rf conftest*
10528 eval "ac_cv_header_$ac_safe=yes" 11323 eval "ac_cv_header_$ac_safe=yes"
10529 else 11324 else
10567 case "$canonical" in 11362 case "$canonical" in
10568 *-sgi-* ) 11363 *-sgi-* )
10569 if test -z "$native_sound_lib"; then 11364 if test -z "$native_sound_lib"; then
10570 11365
10571 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 11366 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10572 echo "configure:10573: checking for ALopenport in -laudio" >&5 11367 echo "configure:11368: checking for ALopenport in -laudio" >&5
10573 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 11368 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10574 11369
10575 xe_check_libs=" -laudio " 11370 xe_check_libs=" -laudio "
10576 cat > conftest.$ac_ext <<EOF 11371 cat > conftest.$ac_ext <<EOF
10577 #line 10578 "configure" 11372 #line 11373 "configure"
10578 #include "confdefs.h" 11373 #include "confdefs.h"
10579 /* Override any gcc2 internal prototype to avoid an error. */ 11374 /* Override any gcc2 internal prototype to avoid an error. */
10580 /* We use char because int might match the return type of a gcc2 11375 /* We use char because int might match the return type of a gcc2
10581 builtin and then its argument prototype would still apply. */ 11376 builtin and then its argument prototype would still apply. */
10582 char ALopenport(); 11377 char ALopenport();
10583 11378
10584 int main() { 11379 int main() {
10585 ALopenport() 11380 ALopenport()
10586 ; return 0; } 11381 ; return 0; }
10587 EOF 11382 EOF
10588 if { (eval echo configure:10589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11383 if { (eval echo configure:11384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10589 rm -rf conftest* 11384 rm -rf conftest*
10590 eval "ac_cv_lib_$ac_lib_var=yes" 11385 eval "ac_cv_lib_$ac_lib_var=yes"
10591 else 11386 else
10592 echo "configure: failed program was:" >&5 11387 echo "configure: failed program was:" >&5
10593 cat conftest.$ac_ext >&5 11388 cat conftest.$ac_ext >&5
10614 fi ;; 11409 fi ;;
10615 hppa*-hp-hpux* ) 11410 hppa*-hp-hpux* )
10616 if test -z "$native_sound_lib"; then 11411 if test -z "$native_sound_lib"; then
10617 11412
10618 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 11413 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10619 echo "configure:10620: checking for AOpenAudio in -lAlib" >&5 11414 echo "configure:11415: checking for AOpenAudio in -lAlib" >&5
10620 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 11415 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10621 11416
10622 xe_check_libs=" -lAlib " 11417 xe_check_libs=" -lAlib "
10623 cat > conftest.$ac_ext <<EOF 11418 cat > conftest.$ac_ext <<EOF
10624 #line 10625 "configure" 11419 #line 11420 "configure"
10625 #include "confdefs.h" 11420 #include "confdefs.h"
10626 /* Override any gcc2 internal prototype to avoid an error. */ 11421 /* Override any gcc2 internal prototype to avoid an error. */
10627 /* We use char because int might match the return type of a gcc2 11422 /* We use char because int might match the return type of a gcc2
10628 builtin and then its argument prototype would still apply. */ 11423 builtin and then its argument prototype would still apply. */
10629 char AOpenAudio(); 11424 char AOpenAudio();
10630 11425
10631 int main() { 11426 int main() {
10632 AOpenAudio() 11427 AOpenAudio()
10633 ; return 0; } 11428 ; return 0; }
10634 EOF 11429 EOF
10635 if { (eval echo configure:10636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11430 if { (eval echo configure:11431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10636 rm -rf conftest* 11431 rm -rf conftest*
10637 eval "ac_cv_lib_$ac_lib_var=yes" 11432 eval "ac_cv_lib_$ac_lib_var=yes"
10638 else 11433 else
10639 echo "configure: failed program was:" >&5 11434 echo "configure: failed program was:" >&5
10640 cat conftest.$ac_ext >&5 11435 cat conftest.$ac_ext >&5
10668 11463
10669 if test -z "$sound_found"; then 11464 if test -z "$sound_found"; then
10670 for dir in "machine" "sys" "linux"; do 11465 for dir in "machine" "sys" "linux"; do
10671 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 11466 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10672 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 11467 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10673 echo "configure:10674: checking for ${dir}/soundcard.h" >&5 11468 echo "configure:11469: checking for ${dir}/soundcard.h" >&5
10674 11469
10675 cat > conftest.$ac_ext <<EOF 11470 cat > conftest.$ac_ext <<EOF
10676 #line 10677 "configure" 11471 #line 11472 "configure"
10677 #include "confdefs.h" 11472 #include "confdefs.h"
10678 #include <${dir}/soundcard.h> 11473 #include <${dir}/soundcard.h>
10679 EOF 11474 EOF
10680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10681 { (eval echo configure:10682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11476 { (eval echo configure:11477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10683 if test -z "$ac_err"; then 11478 if test -z "$ac_err"; then
10684 rm -rf conftest* 11479 rm -rf conftest*
10685 eval "ac_cv_header_$ac_safe=yes" 11480 eval "ac_cv_header_$ac_safe=yes"
10686 else 11481 else
10692 fi 11487 fi
10693 rm -f conftest* 11488 rm -f conftest*
10694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10695 echo "$ac_t""yes" 1>&6 11490 echo "$ac_t""yes" 1>&6
10696 sound_found=yes 11491 sound_found=yes
11492 need_miscplay=yes
10697 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then 11493 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
10698 echo " xemacs will be linked with \"linuxplay.o\"" 11494 echo " xemacs will be linked with \"linuxplay.o\""
10699 fi 11495 fi
10700 { test "$extra_verbose" = "yes" && cat << EOF 11496 { test "$extra_verbose" = "yes" && cat << EOF
10701 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h" 11497 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
10714 fi 11510 fi
10715 11511
10716 test "$sound_found" = "yes" && with_native_sound=yes 11512 test "$sound_found" = "yes" && with_native_sound=yes
10717 fi 11513 fi
10718 11514
10719 if test -z "$with_sound"; then
10720 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
10721 with_sound=native
10722 fi
10723 fi
10724
10725 if test "$with_native_sound" = "yes"; then 11515 if test "$with_native_sound" = "yes"; then
10726 { test "$extra_verbose" = "yes" && cat << \EOF 11516 { test "$extra_verbose" = "yes" && cat << \EOF
10727 Defining HAVE_NATIVE_SOUND 11517 Defining HAVE_NATIVE_SOUND
10728 EOF 11518 EOF
10729 cat >> confdefs.h <<\EOF 11519 cat >> confdefs.h <<\EOF
10732 } 11522 }
10733 11523
10734 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi 11524 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
10735 fi 11525 fi
10736 11526
10737 case "$with_sound" in both | nas ) 11527 if test "$with_nas_sound" != "no"; then
10738 { test "$extra_verbose" = "yes" && cat << \EOF 11528 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
11529 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
11530 echo "configure:11531: checking for audio/audiolib.h" >&5
11531
11532 cat > conftest.$ac_ext <<EOF
11533 #line 11534 "configure"
11534 #include "confdefs.h"
11535 #include <audio/audiolib.h>
11536 EOF
11537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11538 { (eval echo configure:11539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11540 if test -z "$ac_err"; then
11541 rm -rf conftest*
11542 eval "ac_cv_header_$ac_safe=yes"
11543 else
11544 echo "$ac_err" >&5
11545 echo "configure: failed program was:" >&5
11546 cat conftest.$ac_ext >&5
11547 rm -rf conftest*
11548 eval "ac_cv_header_$ac_safe=no"
11549 fi
11550 rm -f conftest*
11551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11552 echo "$ac_t""yes" 1>&6
11553
11554
11555 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
11556 echo "configure:11557: checking for AuOpenServer in -laudio" >&5
11557 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
11558
11559 xe_check_libs=" -laudio "
11560 cat > conftest.$ac_ext <<EOF
11561 #line 11562 "configure"
11562 #include "confdefs.h"
11563 /* Override any gcc2 internal prototype to avoid an error. */
11564 /* We use char because int might match the return type of a gcc2
11565 builtin and then its argument prototype would still apply. */
11566 char AuOpenServer();
11567
11568 int main() {
11569 AuOpenServer()
11570 ; return 0; }
11571 EOF
11572 if { (eval echo configure:11573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11573 rm -rf conftest*
11574 eval "ac_cv_lib_$ac_lib_var=yes"
11575 else
11576 echo "configure: failed program was:" >&5
11577 cat conftest.$ac_ext >&5
11578 rm -rf conftest*
11579 eval "ac_cv_lib_$ac_lib_var=no"
11580 fi
11581 rm -f conftest*
11582 xe_check_libs=""
11583
11584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11585 echo "$ac_t""yes" 1>&6
11586 have_nas_sound=yes
11587 else
11588 echo "$ac_t""no" 1>&6
11589 fi
11590
11591
11592 else
11593 echo "$ac_t""no" 1>&6
11594 fi
11595
11596 if test "$have_nas_sound" = "yes"; then
11597 with_nas_sound=yes
11598 { test "$extra_verbose" = "yes" && cat << \EOF
10739 Defining HAVE_NAS_SOUND 11599 Defining HAVE_NAS_SOUND
10740 EOF 11600 EOF
10741 cat >> confdefs.h <<\EOF 11601 cat >> confdefs.h <<\EOF
10742 #define HAVE_NAS_SOUND 1 11602 #define HAVE_NAS_SOUND 1
10743 EOF 11603 EOF
10744 } 11604 }
10745 11605
10746 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 11606 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10747 echo " xemacs will be linked with \"nas.o\"" 11607 echo " xemacs will be linked with \"nas.o\""
10748 fi 11608 fi
10749 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 11609 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10750 cat > conftest.$ac_ext <<EOF 11610 cat > conftest.$ac_ext <<EOF
10751 #line 10752 "configure" 11611 #line 11612 "configure"
10752 #include "confdefs.h" 11612 #include "confdefs.h"
10753 #include <audio/Xtutil.h> 11613 #include <audio/Xtutil.h>
10754 EOF 11614 EOF
10755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10756 egrep "AuXtErrorJump" >/dev/null 2>&1; then 11616 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10757 : 11617 :
10758 else 11618 else
10759 rm -rf conftest* 11619 rm -rf conftest*
10760 { test "$extra_verbose" = "yes" && cat << \EOF 11620 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
10761 Defining NAS_NO_ERROR_JUMP 11621 Defining NAS_NO_ERROR_JUMP
10762 EOF 11622 EOF
10763 cat >> confdefs.h <<\EOF 11623 cat >> confdefs.h <<\EOF
10764 #define NAS_NO_ERROR_JUMP 1 11624 #define NAS_NO_ERROR_JUMP 1
10765 EOF 11625 EOF
10766 } 11626 }
10767 11627
10768 fi 11628 fi
10769 rm -f conftest* 11629 rm -f conftest*
10770 11630
10771 esac 11631 else
11632 test "$with_nas_sound" = "yes" && \
11633 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
11634 with_nas_sound=no
11635 fi
11636 fi
11637
11638 if test "$with_esd_sound" != "no"; then
11639 # Extract the first word of "esd-config", so it can be a program name with args.
11640 set dummy esd-config; ac_word=$2
11641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11642 echo "configure:11643: checking for $ac_word" >&5
11643
11644 if test -n "$have_esd_config"; then
11645 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11646 else
11647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11648 ac_dummy="$PATH"
11649 for ac_dir in $ac_dummy; do
11650 test -z "$ac_dir" && ac_dir=.
11651 if test -f $ac_dir/$ac_word; then
11652 ac_cv_prog_have_esd_config="yes"
11653 break
11654 fi
11655 done
11656 IFS="$ac_save_ifs"
11657 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
11658 fi
11659 have_esd_config="$ac_cv_prog_have_esd_config"
11660 if test -n "$have_esd_config"; then
11661 echo "$ac_t""$have_esd_config" 1>&6
11662 else
11663 echo "$ac_t""no" 1>&6
11664 fi
11665
11666 if test "$have_esd_config" = "yes"; then
11667 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11668 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
11669 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11670 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11671 echo "configure:11672: checking for esd_play_stream" >&5
11672
11673 cat > conftest.$ac_ext <<EOF
11674 #line 11675 "configure"
11675 #include "confdefs.h"
11676 /* System header to define __stub macros and hopefully few prototypes,
11677 which can conflict with char esd_play_stream(); below. */
11678 #include <assert.h>
11679 /* Override any gcc2 internal prototype to avoid an error. */
11680 /* We use char because int might match the return type of a gcc2
11681 builtin and then its argument prototype would still apply. */
11682 char esd_play_stream();
11683
11684 int main() {
11685
11686 /* The GNU C library defines this for functions which it implements
11687 to always fail with ENOSYS. Some functions are actually named
11688 something starting with __ and the normal name is an alias. */
11689 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
11690 choke me
11691 #else
11692 esd_play_stream();
11693 #endif
11694
11695 ; return 0; }
11696 EOF
11697 if { (eval echo configure:11698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11698 rm -rf conftest*
11699 eval "ac_cv_func_esd_play_stream=yes"
11700 else
11701 echo "configure: failed program was:" >&5
11702 cat conftest.$ac_ext >&5
11703 rm -rf conftest*
11704 eval "ac_cv_func_esd_play_stream=no"
11705 fi
11706 rm -f conftest*
11707
11708 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
11709 echo "$ac_t""yes" 1>&6
11710 have_esd_sound=yes
11711 else
11712 echo "$ac_t""no" 1>&6
11713 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
11714 fi
11715
11716 fi
11717
11718 if test "$have_esd_sound" = "yes"; then
11719 with_esd_sound=yes
11720 need_miscplay=yes
11721 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
11722 echo " xemacs will be linked with \"esd.o\""
11723 fi
11724 { test "$extra_verbose" = "yes" && cat << \EOF
11725 Defining HAVE_ESD_SOUND
11726 EOF
11727 cat >> confdefs.h <<\EOF
11728 #define HAVE_ESD_SOUND 1
11729 EOF
11730 }
11731
11732 else
11733 test "$with_esd_sound" = "yes" && \
11734 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
11735 with_esd_sound=no
11736 fi
11737 fi
11738
11739 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
11740 echo " xemacs will be linked with \"miscplay.o\""
11741 fi
10772 11742
10773 11743
10774 test -z "$with_tty" && with_tty=yes 11744 test -z "$with_tty" && with_tty=yes
10775 11745
10776 if test "$with_tty" = "yes" ; then 11746 if test "$with_tty" = "yes" ; then
10777 echo "checking for TTY-related features" 1>&6 11747 echo "checking for TTY-related features" 1>&6
10778 echo "configure:10779: checking for TTY-related features" >&5 11748 echo "configure:11749: checking for TTY-related features" >&5
10779 { test "$extra_verbose" = "yes" && cat << \EOF 11749 { test "$extra_verbose" = "yes" && cat << \EOF
10780 Defining HAVE_TTY 11750 Defining HAVE_TTY
10781 EOF 11751 EOF
10782 cat >> confdefs.h <<\EOF 11752 cat >> confdefs.h <<\EOF
10783 #define HAVE_TTY 1 11753 #define HAVE_TTY 1
10789 fi 11759 fi
10790 11760
10791 if test -z "$with_ncurses"; then 11761 if test -z "$with_ncurses"; then
10792 11762
10793 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 11763 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10794 echo "configure:10795: checking for tgetent in -lncurses" >&5 11764 echo "configure:11765: checking for tgetent in -lncurses" >&5
10795 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 11765 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10796 11766
10797 xe_check_libs=" -lncurses " 11767 xe_check_libs=" -lncurses "
10798 cat > conftest.$ac_ext <<EOF 11768 cat > conftest.$ac_ext <<EOF
10799 #line 10800 "configure" 11769 #line 11770 "configure"
10800 #include "confdefs.h" 11770 #include "confdefs.h"
10801 /* Override any gcc2 internal prototype to avoid an error. */ 11771 /* Override any gcc2 internal prototype to avoid an error. */
10802 /* We use char because int might match the return type of a gcc2 11772 /* We use char because int might match the return type of a gcc2
10803 builtin and then its argument prototype would still apply. */ 11773 builtin and then its argument prototype would still apply. */
10804 char tgetent(); 11774 char tgetent();
10805 11775
10806 int main() { 11776 int main() {
10807 tgetent() 11777 tgetent()
10808 ; return 0; } 11778 ; return 0; }
10809 EOF 11779 EOF
10810 if { (eval echo configure:10811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11780 if { (eval echo configure:11781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10811 rm -rf conftest* 11781 rm -rf conftest*
10812 eval "ac_cv_lib_$ac_lib_var=yes" 11782 eval "ac_cv_lib_$ac_lib_var=yes"
10813 else 11783 else
10814 echo "configure: failed program was:" >&5 11784 echo "configure: failed program was:" >&5
10815 cat conftest.$ac_ext >&5 11785 cat conftest.$ac_ext >&5
10838 EOF 11808 EOF
10839 } 11809 }
10840 11810
10841 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 11811 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10842 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 11812 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10843 echo "configure:10844: checking for ncurses/curses.h" >&5 11813 echo "configure:11814: checking for ncurses/curses.h" >&5
10844 11814
10845 cat > conftest.$ac_ext <<EOF 11815 cat > conftest.$ac_ext <<EOF
10846 #line 10847 "configure" 11816 #line 11817 "configure"
10847 #include "confdefs.h" 11817 #include "confdefs.h"
10848 #include <ncurses/curses.h> 11818 #include <ncurses/curses.h>
10849 EOF 11819 EOF
10850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10851 { (eval echo configure:10852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11821 { (eval echo configure:11822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10853 if test -z "$ac_err"; then 11823 if test -z "$ac_err"; then
10854 rm -rf conftest* 11824 rm -rf conftest*
10855 eval "ac_cv_header_$ac_safe=yes" 11825 eval "ac_cv_header_$ac_safe=yes"
10856 else 11826 else
10868 echo "$ac_t""no" 1>&6 11838 echo "$ac_t""no" 1>&6
10869 fi 11839 fi
10870 11840
10871 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 11841 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10872 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 11842 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10873 echo "configure:10874: checking for ncurses/term.h" >&5 11843 echo "configure:11844: checking for ncurses/term.h" >&5
10874 11844
10875 cat > conftest.$ac_ext <<EOF 11845 cat > conftest.$ac_ext <<EOF
10876 #line 10877 "configure" 11846 #line 11847 "configure"
10877 #include "confdefs.h" 11847 #include "confdefs.h"
10878 #include <ncurses/term.h> 11848 #include <ncurses/term.h>
10879 EOF 11849 EOF
10880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10881 { (eval echo configure:10882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11851 { (eval echo configure:11852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10883 if test -z "$ac_err"; then 11853 if test -z "$ac_err"; then
10884 rm -rf conftest* 11854 rm -rf conftest*
10885 eval "ac_cv_header_$ac_safe=yes" 11855 eval "ac_cv_header_$ac_safe=yes"
10886 else 11856 else
10906 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 11876 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10907 save_c_switch_site="$c_switch_site" 11877 save_c_switch_site="$c_switch_site"
10908 c_switch_site="$c_switch_site -I/usr/include/ncurses" 11878 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10909 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 11879 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10910 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 11880 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10911 echo "configure:10912: checking for ncurses/curses.h" >&5 11881 echo "configure:11882: checking for ncurses/curses.h" >&5
10912 11882
10913 cat > conftest.$ac_ext <<EOF 11883 cat > conftest.$ac_ext <<EOF
10914 #line 10915 "configure" 11884 #line 11885 "configure"
10915 #include "confdefs.h" 11885 #include "confdefs.h"
10916 #include <ncurses/curses.h> 11886 #include <ncurses/curses.h>
10917 EOF 11887 EOF
10918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10919 { (eval echo configure:10920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11889 { (eval echo configure:11890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10921 if test -z "$ac_err"; then 11891 if test -z "$ac_err"; then
10922 rm -rf conftest* 11892 rm -rf conftest*
10923 eval "ac_cv_header_$ac_safe=yes" 11893 eval "ac_cv_header_$ac_safe=yes"
10924 else 11894 else
10949 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 11919 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10950 else 11920 else
10951 for lib in curses termlib termcap; do 11921 for lib in curses termlib termcap; do
10952 11922
10953 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 11923 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10954 echo "configure:10955: checking for tgetent in -l$lib" >&5 11924 echo "configure:11925: checking for tgetent in -l$lib" >&5
10955 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 11925 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10956 11926
10957 xe_check_libs=" -l$lib " 11927 xe_check_libs=" -l$lib "
10958 cat > conftest.$ac_ext <<EOF 11928 cat > conftest.$ac_ext <<EOF
10959 #line 10960 "configure" 11929 #line 11930 "configure"
10960 #include "confdefs.h" 11930 #include "confdefs.h"
10961 /* Override any gcc2 internal prototype to avoid an error. */ 11931 /* Override any gcc2 internal prototype to avoid an error. */
10962 /* We use char because int might match the return type of a gcc2 11932 /* We use char because int might match the return type of a gcc2
10963 builtin and then its argument prototype would still apply. */ 11933 builtin and then its argument prototype would still apply. */
10964 char tgetent(); 11934 char tgetent();
10965 11935
10966 int main() { 11936 int main() {
10967 tgetent() 11937 tgetent()
10968 ; return 0; } 11938 ; return 0; }
10969 EOF 11939 EOF
10970 if { (eval echo configure:10971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11940 if { (eval echo configure:11941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10971 rm -rf conftest* 11941 rm -rf conftest*
10972 eval "ac_cv_lib_$ac_lib_var=yes" 11942 eval "ac_cv_lib_$ac_lib_var=yes"
10973 else 11943 else
10974 echo "configure: failed program was:" >&5 11944 echo "configure: failed program was:" >&5
10975 cat conftest.$ac_ext >&5 11945 cat conftest.$ac_ext >&5
10996 if test -n "$libs_termcap"; then 11966 if test -n "$libs_termcap"; then
10997 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 11967 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10998 else 11968 else
10999 11969
11000 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 11970 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11001 echo "configure:11002: checking for tgetent in -lcurses" >&5 11971 echo "configure:11972: checking for tgetent in -lcurses" >&5
11002 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 11972 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11003 11973
11004 xe_check_libs=" -lcurses " 11974 xe_check_libs=" -lcurses "
11005 cat > conftest.$ac_ext <<EOF 11975 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure" 11976 #line 11977 "configure"
11007 #include "confdefs.h" 11977 #include "confdefs.h"
11008 /* Override any gcc2 internal prototype to avoid an error. */ 11978 /* Override any gcc2 internal prototype to avoid an error. */
11009 /* We use char because int might match the return type of a gcc2 11979 /* We use char because int might match the return type of a gcc2
11010 builtin and then its argument prototype would still apply. */ 11980 builtin and then its argument prototype would still apply. */
11011 char tgetent(); 11981 char tgetent();
11012 11982
11013 int main() { 11983 int main() {
11014 tgetent() 11984 tgetent()
11015 ; return 0; } 11985 ; return 0; }
11016 EOF 11986 EOF
11017 if { (eval echo configure:11018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11987 if { (eval echo configure:11988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11018 rm -rf conftest* 11988 rm -rf conftest*
11019 eval "ac_cv_lib_$ac_lib_var=yes" 11989 eval "ac_cv_lib_$ac_lib_var=yes"
11020 else 11990 else
11021 echo "configure: failed program was:" >&5 11991 echo "configure: failed program was:" >&5
11022 cat conftest.$ac_ext >&5 11992 cat conftest.$ac_ext >&5
11030 echo "$ac_t""yes" 1>&6 12000 echo "$ac_t""yes" 1>&6
11031 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 12001 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11032 else 12002 else
11033 echo "$ac_t""no" 1>&6 12003 echo "$ac_t""no" 1>&6
11034 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 12004 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11035 echo "configure:11036: checking for tgetent in -ltermcap" >&5 12005 echo "configure:12006: checking for tgetent in -ltermcap" >&5
11036 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 12006 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11037 12007
11038 xe_check_libs=" -ltermcap " 12008 xe_check_libs=" -ltermcap "
11039 cat > conftest.$ac_ext <<EOF 12009 cat > conftest.$ac_ext <<EOF
11040 #line 11041 "configure" 12010 #line 12011 "configure"
11041 #include "confdefs.h" 12011 #include "confdefs.h"
11042 /* Override any gcc2 internal prototype to avoid an error. */ 12012 /* Override any gcc2 internal prototype to avoid an error. */
11043 /* We use char because int might match the return type of a gcc2 12013 /* We use char because int might match the return type of a gcc2
11044 builtin and then its argument prototype would still apply. */ 12014 builtin and then its argument prototype would still apply. */
11045 char tgetent(); 12015 char tgetent();
11046 12016
11047 int main() { 12017 int main() {
11048 tgetent() 12018 tgetent()
11049 ; return 0; } 12019 ; return 0; }
11050 EOF 12020 EOF
11051 if { (eval echo configure:11052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12021 if { (eval echo configure:12022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11052 rm -rf conftest* 12022 rm -rf conftest*
11053 eval "ac_cv_lib_$ac_lib_var=yes" 12023 eval "ac_cv_lib_$ac_lib_var=yes"
11054 else 12024 else
11055 echo "configure: failed program was:" >&5 12025 echo "configure: failed program was:" >&5
11056 cat conftest.$ac_ext >&5 12026 cat conftest.$ac_ext >&5
11094 } 12064 }
11095 12065
11096 12066
11097 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 12067 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11098 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 12068 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11099 echo "configure:11100: checking for gpm.h" >&5 12069 echo "configure:12070: checking for gpm.h" >&5
11100 12070
11101 cat > conftest.$ac_ext <<EOF 12071 cat > conftest.$ac_ext <<EOF
11102 #line 11103 "configure" 12072 #line 12073 "configure"
11103 #include "confdefs.h" 12073 #include "confdefs.h"
11104 #include <gpm.h> 12074 #include <gpm.h>
11105 EOF 12075 EOF
11106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11107 { (eval echo configure:11108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12077 { (eval echo configure:12078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11109 if test -z "$ac_err"; then 12079 if test -z "$ac_err"; then
11110 rm -rf conftest* 12080 rm -rf conftest*
11111 eval "ac_cv_header_$ac_safe=yes" 12081 eval "ac_cv_header_$ac_safe=yes"
11112 else 12082 else
11125 with_gpm=no 12095 with_gpm=no
11126 fi 12096 fi
11127 } 12097 }
11128 test -z "$with_gpm" && { 12098 test -z "$with_gpm" && {
11129 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 12099 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11130 echo "configure:11131: checking for Gpm_Open in -lgpm" >&5 12100 echo "configure:12101: checking for Gpm_Open in -lgpm" >&5
11131 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 12101 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11132 12102
11133 xe_check_libs=" -lgpm " 12103 xe_check_libs=" -lgpm "
11134 cat > conftest.$ac_ext <<EOF 12104 cat > conftest.$ac_ext <<EOF
11135 #line 11136 "configure" 12105 #line 12106 "configure"
11136 #include "confdefs.h" 12106 #include "confdefs.h"
11137 /* Override any gcc2 internal prototype to avoid an error. */ 12107 /* Override any gcc2 internal prototype to avoid an error. */
11138 /* We use char because int might match the return type of a gcc2 12108 /* We use char because int might match the return type of a gcc2
11139 builtin and then its argument prototype would still apply. */ 12109 builtin and then its argument prototype would still apply. */
11140 char Gpm_Open(); 12110 char Gpm_Open();
11141 12111
11142 int main() { 12112 int main() {
11143 Gpm_Open() 12113 Gpm_Open()
11144 ; return 0; } 12114 ; return 0; }
11145 EOF 12115 EOF
11146 if { (eval echo configure:11147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12116 if { (eval echo configure:12117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11147 rm -rf conftest* 12117 rm -rf conftest*
11148 eval "ac_cv_lib_$ac_lib_var=yes" 12118 eval "ac_cv_lib_$ac_lib_var=yes"
11149 else 12119 else
11150 echo "configure: failed program was:" >&5 12120 echo "configure: failed program was:" >&5
11151 cat conftest.$ac_ext >&5 12121 cat conftest.$ac_ext >&5
11189 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then 12159 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
11190 echo " xemacs will be linked with \"event-unixoid.o\"" 12160 echo " xemacs will be linked with \"event-unixoid.o\""
11191 fi 12161 fi
11192 12162
11193 12163
11194 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \ 12164 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
11195 != "no no no" && echo "checking for database support" 1>&6 12165 != "no no no" && echo "checking for database support" 1>&6
11196 echo "configure:11197: checking for database support" >&5 12166 echo "configure:12167: checking for database support" >&5
11197 12167
11198 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then 12168 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
11199 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 12169 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11200 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 12170 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11201 echo "configure:11202: checking for ndbm.h" >&5 12171 echo "configure:12172: checking for ndbm.h" >&5
11202 12172
11203 cat > conftest.$ac_ext <<EOF 12173 cat > conftest.$ac_ext <<EOF
11204 #line 11205 "configure" 12174 #line 12175 "configure"
11205 #include "confdefs.h" 12175 #include "confdefs.h"
11206 #include <ndbm.h> 12176 #include <ndbm.h>
11207 EOF 12177 EOF
11208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11209 { (eval echo configure:11210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12179 { (eval echo configure:12180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11211 if test -z "$ac_err"; then 12181 if test -z "$ac_err"; then
11212 rm -rf conftest* 12182 rm -rf conftest*
11213 eval "ac_cv_header_$ac_safe=yes" 12183 eval "ac_cv_header_$ac_safe=yes"
11214 else 12184 else
11223 echo "$ac_t""yes" 1>&6 12193 echo "$ac_t""yes" 1>&6
11224 : 12194 :
11225 else 12195 else
11226 echo "$ac_t""no" 1>&6 12196 echo "$ac_t""no" 1>&6
11227 12197
11228 test "$with_database_gnudbm" = "yes" -o \ 12198 test "$with_database_gdbm" = "yes" -o \
11229 "$with_database_dbm" = "yes" && \ 12199 "$with_database_dbm" = "yes" && \
11230 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; } 12200 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
11231 with_database_gnudbm=no with_database_dbm=no 12201 with_database_gdbm=no with_database_dbm=no
11232 fi 12202 fi
11233 12203
11234 fi 12204 fi
11235 12205
11236 if test "$with_database_gnudbm" != "no"; then 12206 if test "$with_database_gdbm" != "no"; then
11237 12207
11238 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 12208 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11239 echo "configure:11240: checking for dbm_open in -lgdbm" >&5 12209 echo "configure:12210: checking for dbm_open in -lgdbm" >&5
11240 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 12210 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11241 12211
11242 xe_check_libs=" -lgdbm " 12212 xe_check_libs=" -lgdbm "
11243 cat > conftest.$ac_ext <<EOF 12213 cat > conftest.$ac_ext <<EOF
11244 #line 11245 "configure" 12214 #line 12215 "configure"
11245 #include "confdefs.h" 12215 #include "confdefs.h"
11246 /* Override any gcc2 internal prototype to avoid an error. */ 12216 /* Override any gcc2 internal prototype to avoid an error. */
11247 /* We use char because int might match the return type of a gcc2 12217 /* We use char because int might match the return type of a gcc2
11248 builtin and then its argument prototype would still apply. */ 12218 builtin and then its argument prototype would still apply. */
11249 char dbm_open(); 12219 char dbm_open();
11250 12220
11251 int main() { 12221 int main() {
11252 dbm_open() 12222 dbm_open()
11253 ; return 0; } 12223 ; return 0; }
11254 EOF 12224 EOF
11255 if { (eval echo configure:11256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12225 if { (eval echo configure:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11256 rm -rf conftest* 12226 rm -rf conftest*
11257 eval "ac_cv_lib_$ac_lib_var=yes" 12227 eval "ac_cv_lib_$ac_lib_var=yes"
11258 else 12228 else
11259 echo "configure: failed program was:" >&5 12229 echo "configure: failed program was:" >&5
11260 cat conftest.$ac_ext >&5 12230 cat conftest.$ac_ext >&5
11264 rm -f conftest* 12234 rm -f conftest*
11265 xe_check_libs="" 12235 xe_check_libs=""
11266 12236
11267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 12237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11268 echo "$ac_t""yes" 1>&6 12238 echo "$ac_t""yes" 1>&6
11269 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm 12239 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
11270 else 12240 else
11271 echo "$ac_t""no" 1>&6 12241 echo "$ac_t""no" 1>&6
11272 if test "$with_database_gnudbm" = "yes"; then 12242 if test "$with_database_gdbm" = "yes"; then
11273 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; } 12243 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
11274 fi 12244 fi
11275 with_database_gnudbm=no 12245 with_database_gdbm=no
11276 fi 12246 fi
11277 12247
11278 12248
11279 fi 12249 fi
11280 12250
11281 if test "$with_database_dbm" != "no"; then 12251 if test "$with_database_dbm" != "no"; then
11282 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 12252 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11283 echo "configure:11284: checking for dbm_open" >&5 12253 echo "configure:12254: checking for dbm_open" >&5
11284 12254
11285 cat > conftest.$ac_ext <<EOF 12255 cat > conftest.$ac_ext <<EOF
11286 #line 11287 "configure" 12256 #line 12257 "configure"
11287 #include "confdefs.h" 12257 #include "confdefs.h"
11288 /* System header to define __stub macros and hopefully few prototypes, 12258 /* System header to define __stub macros and hopefully few prototypes,
11289 which can conflict with char dbm_open(); below. */ 12259 which can conflict with char dbm_open(); below. */
11290 #include <assert.h> 12260 #include <assert.h>
11291 /* Override any gcc2 internal prototype to avoid an error. */ 12261 /* Override any gcc2 internal prototype to avoid an error. */
11304 dbm_open(); 12274 dbm_open();
11305 #endif 12275 #endif
11306 12276
11307 ; return 0; } 12277 ; return 0; }
11308 EOF 12278 EOF
11309 if { (eval echo configure:11310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12279 if { (eval echo configure:12280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11310 rm -rf conftest* 12280 rm -rf conftest*
11311 eval "ac_cv_func_dbm_open=yes" 12281 eval "ac_cv_func_dbm_open=yes"
11312 else 12282 else
11313 echo "configure: failed program was:" >&5 12283 echo "configure: failed program was:" >&5
11314 cat conftest.$ac_ext >&5 12284 cat conftest.$ac_ext >&5
11323 else 12293 else
11324 echo "$ac_t""no" 1>&6 12294 echo "$ac_t""no" 1>&6
11325 12295
11326 12296
11327 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 12297 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11328 echo "configure:11329: checking for dbm_open in -ldbm" >&5 12298 echo "configure:12299: checking for dbm_open in -ldbm" >&5
11329 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 12299 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11330 12300
11331 xe_check_libs=" -ldbm " 12301 xe_check_libs=" -ldbm "
11332 cat > conftest.$ac_ext <<EOF 12302 cat > conftest.$ac_ext <<EOF
11333 #line 11334 "configure" 12303 #line 12304 "configure"
11334 #include "confdefs.h" 12304 #include "confdefs.h"
11335 /* Override any gcc2 internal prototype to avoid an error. */ 12305 /* Override any gcc2 internal prototype to avoid an error. */
11336 /* We use char because int might match the return type of a gcc2 12306 /* We use char because int might match the return type of a gcc2
11337 builtin and then its argument prototype would still apply. */ 12307 builtin and then its argument prototype would still apply. */
11338 char dbm_open(); 12308 char dbm_open();
11339 12309
11340 int main() { 12310 int main() {
11341 dbm_open() 12311 dbm_open()
11342 ; return 0; } 12312 ; return 0; }
11343 EOF 12313 EOF
11344 if { (eval echo configure:11345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12314 if { (eval echo configure:12315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11345 rm -rf conftest* 12315 rm -rf conftest*
11346 eval "ac_cv_lib_$ac_lib_var=yes" 12316 eval "ac_cv_lib_$ac_lib_var=yes"
11347 else 12317 else
11348 echo "configure: failed program was:" >&5 12318 echo "configure: failed program was:" >&5
11349 cat conftest.$ac_ext >&5 12319 cat conftest.$ac_ext >&5
11367 fi 12337 fi
11368 12338
11369 fi 12339 fi
11370 12340
11371 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi 12341 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
11372 test "$with_database_gnudbm" = "yes" -o \ 12342 test "$with_database_gdbm" = "yes" -o \
11373 "$with_database_dbm" = "yes" && \ 12343 "$with_database_dbm" = "yes" && \
11374 { test "$extra_verbose" = "yes" && cat << \EOF 12344 { test "$extra_verbose" = "yes" && cat << \EOF
11375 Defining HAVE_DBM 12345 Defining HAVE_DBM
11376 EOF 12346 EOF
11377 cat >> confdefs.h <<\EOF 12347 cat >> confdefs.h <<\EOF
11378 #define HAVE_DBM 1 12348 #define HAVE_DBM 1
11380 } 12350 }
11381 12351
11382 12352
11383 if test "$with_database_berkdb" != "no"; then 12353 if test "$with_database_berkdb" != "no"; then
11384 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 12354 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11385 echo "configure:11386: checking for Berkeley db.h" >&5 12355 echo "configure:12356: checking for Berkeley db.h" >&5
11386 for path in "db/db.h" "db.h"; do 12356 for path in "db/db.h" "db.h"; do
11387 cat > conftest.$ac_ext <<EOF 12357 cat > conftest.$ac_ext <<EOF
11388 #line 11389 "configure" 12358 #line 12359 "configure"
11389 #include "confdefs.h" 12359 #include "confdefs.h"
12360
12361 #include <stdlib.h>
12362 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
11390 #ifdef HAVE_INTTYPES_H 12363 #ifdef HAVE_INTTYPES_H
11391 #define __BIT_TYPES_DEFINED__ 12364 #define __BIT_TYPES_DEFINED__
11392 #include <inttypes.h> 12365 #include <inttypes.h>
11393 typedef uint8_t u_int8_t; 12366 typedef uint8_t u_int8_t;
11394 typedef uint16_t u_int16_t; 12367 typedef uint16_t u_int16_t;
11395 typedef uint32_t u_int32_t; 12368 typedef uint32_t u_int32_t;
11396 #ifdef WE_DONT_NEED_QUADS 12369 #ifdef WE_DONT_NEED_QUADS
11397 typedef uint64_t u_int64_t; 12370 typedef uint64_t u_int64_t;
11398 #endif 12371 #endif
11399 #endif 12372 #endif
12373 #endif
11400 #include <$path> 12374 #include <$path>
11401 12375
11402 int main() { 12376 int main() {
11403 12377
11404 ; return 0; } 12378 ; return 0; }
11405 EOF 12379 EOF
11406 if { (eval echo configure:11407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12380 if { (eval echo configure:12381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11407 rm -rf conftest* 12381 rm -rf conftest*
11408 db_h_path="$path"; break 12382 db_h_path="$path"; break
11409 else 12383 else
11410 echo "configure: failed program was:" >&5 12384 echo "configure: failed program was:" >&5
11411 cat conftest.$ac_ext >&5 12385 cat conftest.$ac_ext >&5
11417 else echo "$ac_t""$db_h_path" 1>&6 12391 else echo "$ac_t""$db_h_path" 1>&6
11418 fi 12392 fi
11419 12393
11420 if test "$with_database_berkdb" != "no"; then 12394 if test "$with_database_berkdb" != "no"; then
11421 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 12395 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11422 echo "configure:11423: checking for Berkeley DB version" >&5 12396 echo "configure:12397: checking for Berkeley DB version" >&5
11423 cat > conftest.$ac_ext <<EOF 12397 cat > conftest.$ac_ext <<EOF
11424 #line 11425 "configure" 12398 #line 12399 "configure"
11425 #include "confdefs.h" 12399 #include "confdefs.h"
11426 #include <$db_h_path> 12400 #include <$db_h_path>
11427 #if DB_VERSION_MAJOR > 1 12401 #if DB_VERSION_MAJOR > 1
11428 yes 12402 yes
11429 #endif 12403 #endif
11438 echo "$ac_t""1" 1>&6; dbfunc=dbopen 12412 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11439 fi 12413 fi
11440 rm -f conftest* 12414 rm -f conftest*
11441 12415
11442 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 12416 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11443 echo "configure:11444: checking for $dbfunc" >&5 12417 echo "configure:12418: checking for $dbfunc" >&5
11444 12418
11445 cat > conftest.$ac_ext <<EOF 12419 cat > conftest.$ac_ext <<EOF
11446 #line 11447 "configure" 12420 #line 12421 "configure"
11447 #include "confdefs.h" 12421 #include "confdefs.h"
11448 /* System header to define __stub macros and hopefully few prototypes, 12422 /* System header to define __stub macros and hopefully few prototypes,
11449 which can conflict with char $dbfunc(); below. */ 12423 which can conflict with char $dbfunc(); below. */
11450 #include <assert.h> 12424 #include <assert.h>
11451 /* Override any gcc2 internal prototype to avoid an error. */ 12425 /* Override any gcc2 internal prototype to avoid an error. */
11464 $dbfunc(); 12438 $dbfunc();
11465 #endif 12439 #endif
11466 12440
11467 ; return 0; } 12441 ; return 0; }
11468 EOF 12442 EOF
11469 if { (eval echo configure:11470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12443 if { (eval echo configure:12444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11470 rm -rf conftest* 12444 rm -rf conftest*
11471 eval "ac_cv_func_$dbfunc=yes" 12445 eval "ac_cv_func_$dbfunc=yes"
11472 else 12446 else
11473 echo "configure: failed program was:" >&5 12447 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5 12448 cat conftest.$ac_ext >&5
11483 else 12457 else
11484 echo "$ac_t""no" 1>&6 12458 echo "$ac_t""no" 1>&6
11485 12459
11486 12460
11487 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 12461 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11488 echo "configure:11489: checking for $dbfunc in -ldb" >&5 12462 echo "configure:12463: checking for $dbfunc in -ldb" >&5
11489 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 12463 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11490 12464
11491 xe_check_libs=" -ldb " 12465 xe_check_libs=" -ldb "
11492 cat > conftest.$ac_ext <<EOF 12466 cat > conftest.$ac_ext <<EOF
11493 #line 11494 "configure" 12467 #line 12468 "configure"
11494 #include "confdefs.h" 12468 #include "confdefs.h"
11495 /* Override any gcc2 internal prototype to avoid an error. */ 12469 /* Override any gcc2 internal prototype to avoid an error. */
11496 /* We use char because int might match the return type of a gcc2 12470 /* We use char because int might match the return type of a gcc2
11497 builtin and then its argument prototype would still apply. */ 12471 builtin and then its argument prototype would still apply. */
11498 char $dbfunc(); 12472 char $dbfunc();
11499 12473
11500 int main() { 12474 int main() {
11501 $dbfunc() 12475 $dbfunc()
11502 ; return 0; } 12476 ; return 0; }
11503 EOF 12477 EOF
11504 if { (eval echo configure:11505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12478 if { (eval echo configure:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11505 rm -rf conftest* 12479 rm -rf conftest*
11506 eval "ac_cv_lib_$ac_lib_var=yes" 12480 eval "ac_cv_lib_$ac_lib_var=yes"
11507 else 12481 else
11508 echo "configure: failed program was:" >&5 12482 echo "configure: failed program was:" >&5
11509 cat conftest.$ac_ext >&5 12483 cat conftest.$ac_ext >&5
11545 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi 12519 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
11546 else with_database_berkdb=no 12520 else with_database_berkdb=no
11547 fi 12521 fi
11548 fi 12522 fi
11549 12523
11550 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \ 12524 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
11551 != "no no no"; then 12525 != "no no no"; then
11552 { test "$extra_verbose" = "yes" && cat << \EOF 12526 { test "$extra_verbose" = "yes" && cat << \EOF
11553 Defining HAVE_DATABASE 12527 Defining HAVE_DATABASE
11554 EOF 12528 EOF
11555 cat >> confdefs.h <<\EOF 12529 cat >> confdefs.h <<\EOF
11563 fi 12537 fi
11564 12538
11565 if test "$with_socks" = "yes"; then 12539 if test "$with_socks" = "yes"; then
11566 12540
11567 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 12541 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11568 echo "configure:11569: checking for SOCKSinit in -lsocks" >&5 12542 echo "configure:12543: checking for SOCKSinit in -lsocks" >&5
11569 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 12543 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11570 12544
11571 xe_check_libs=" -lsocks " 12545 xe_check_libs=" -lsocks "
11572 cat > conftest.$ac_ext <<EOF 12546 cat > conftest.$ac_ext <<EOF
11573 #line 11574 "configure" 12547 #line 12548 "configure"
11574 #include "confdefs.h" 12548 #include "confdefs.h"
11575 /* Override any gcc2 internal prototype to avoid an error. */ 12549 /* Override any gcc2 internal prototype to avoid an error. */
11576 /* We use char because int might match the return type of a gcc2 12550 /* We use char because int might match the return type of a gcc2
11577 builtin and then its argument prototype would still apply. */ 12551 builtin and then its argument prototype would still apply. */
11578 char SOCKSinit(); 12552 char SOCKSinit();
11579 12553
11580 int main() { 12554 int main() {
11581 SOCKSinit() 12555 SOCKSinit()
11582 ; return 0; } 12556 ; return 0; }
11583 EOF 12557 EOF
11584 if { (eval echo configure:11585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12558 if { (eval echo configure:12559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11585 rm -rf conftest* 12559 rm -rf conftest*
11586 eval "ac_cv_lib_$ac_lib_var=yes" 12560 eval "ac_cv_lib_$ac_lib_var=yes"
11587 else 12561 else
11588 echo "configure: failed program was:" >&5 12562 echo "configure: failed program was:" >&5
11589 cat conftest.$ac_ext >&5 12563 cat conftest.$ac_ext >&5
11632 } 12606 }
11633 12607
11634 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 12608 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11635 fi 12609 fi
11636 12610
11637 for ac_hdr in dlfcn.h 12611 if test "$with_modules" != "no"; then
11638 do 12612 echo "checking for module support" 1>&6
11639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12613 echo "configure:12614: checking for module support" >&5
11640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12614
11641 echo "configure:11642: checking for $ac_hdr" >&5 12615 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
11642 12616 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
11643 cat > conftest.$ac_ext <<EOF 12617 echo "configure:12618: checking for dlfcn.h" >&5
11644 #line 11645 "configure" 12618
11645 #include "confdefs.h" 12619 cat > conftest.$ac_ext <<EOF
11646 #include <$ac_hdr> 12620 #line 12621 "configure"
12621 #include "confdefs.h"
12622 #include <dlfcn.h>
11647 EOF 12623 EOF
11648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11649 { (eval echo configure:11650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12625 { (eval echo configure:12626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11651 if test -z "$ac_err"; then 12627 if test -z "$ac_err"; then
11652 rm -rf conftest* 12628 rm -rf conftest*
11653 eval "ac_cv_header_$ac_safe=yes" 12629 eval "ac_cv_header_$ac_safe=yes"
11654 else 12630 else
11659 eval "ac_cv_header_$ac_safe=no" 12635 eval "ac_cv_header_$ac_safe=no"
11660 fi 12636 fi
11661 rm -f conftest* 12637 rm -f conftest*
11662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11663 echo "$ac_t""yes" 1>&6 12639 echo "$ac_t""yes" 1>&6
11664 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 12640
11665 { test "$extra_verbose" = "yes" && cat << EOF 12641
11666 Defining $ac_tr_hdr
11667 EOF
11668 cat >> confdefs.h <<EOF
11669 #define $ac_tr_hdr 1
11670 EOF
11671 }
11672 have_dlfcn=yes
11673 { test "$extra_verbose" = "yes" && cat << \EOF
11674 Defining HAVE_DLFCN_H
11675 EOF
11676 cat >> confdefs.h <<\EOF
11677 #define HAVE_DLFCN_H 1
11678 EOF
11679 }
11680
11681 else
11682 echo "$ac_t""no" 1>&6
11683 fi
11684 done
11685
11686 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11687 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 12642 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11688 echo "configure:11689: checking for dlopen in -ldl" >&5 12643 echo "configure:12644: checking for dlopen in -ldl" >&5
11689 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 12644 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11690 12645
11691 xe_check_libs=" -ldl " 12646 xe_check_libs=" -ldl "
11692 cat > conftest.$ac_ext <<EOF 12647 cat > conftest.$ac_ext <<EOF
11693 #line 11694 "configure" 12648 #line 12649 "configure"
11694 #include "confdefs.h" 12649 #include "confdefs.h"
11695 /* Override any gcc2 internal prototype to avoid an error. */ 12650 /* Override any gcc2 internal prototype to avoid an error. */
11696 /* We use char because int might match the return type of a gcc2 12651 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */ 12652 builtin and then its argument prototype would still apply. */
11698 char dlopen(); 12653 char dlopen();
11699 12654
11700 int main() { 12655 int main() {
11701 dlopen() 12656 dlopen()
11702 ; return 0; } 12657 ; return 0; }
11703 EOF 12658 EOF
11704 if { (eval echo configure:11705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12659 if { (eval echo configure:12660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11705 rm -rf conftest* 12660 rm -rf conftest*
11706 eval "ac_cv_lib_$ac_lib_var=yes" 12661 eval "ac_cv_lib_$ac_lib_var=yes"
11707 else 12662 else
11708 echo "configure: failed program was:" >&5 12663 echo "configure: failed program was:" >&5
11709 cat conftest.$ac_ext >&5 12664 cat conftest.$ac_ext >&5
11713 rm -f conftest* 12668 rm -f conftest*
11714 xe_check_libs="" 12669 xe_check_libs=""
11715 12670
11716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 12671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11717 echo "$ac_t""yes" 1>&6 12672 echo "$ac_t""yes" 1>&6
11718 { test "$extra_verbose" = "yes" && cat << \EOF 12673 have_dl=yes libdl=dl
11719 Defining HAVE_DLOPEN 12674 else
11720 EOF 12675 echo "$ac_t""no" 1>&6
11721 cat >> confdefs.h <<\EOF 12676
11722 #define HAVE_DLOPEN 1 12677 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11723 EOF 12678 echo "configure:12679: checking for dlopen in -lc" >&5
11724 } 12679 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11725 DLL_LIB=dl; with_shlib=yes
11726 else
11727 echo "$ac_t""no" 1>&6
11728 fi
11729
11730 }
11731 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11732 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11733 echo "configure:11734: checking for _dlopen in -lc" >&5
11734 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11735 12680
11736 xe_check_libs=" -lc " 12681 xe_check_libs=" -lc "
11737 cat > conftest.$ac_ext <<EOF 12682 cat > conftest.$ac_ext <<EOF
11738 #line 11739 "configure" 12683 #line 12684 "configure"
11739 #include "confdefs.h"
11740 /* Override any gcc2 internal prototype to avoid an error. */
11741 /* We use char because int might match the return type of a gcc2
11742 builtin and then its argument prototype would still apply. */
11743 char _dlopen();
11744
11745 int main() {
11746 _dlopen()
11747 ; return 0; }
11748 EOF
11749 if { (eval echo configure:11750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11750 rm -rf conftest*
11751 eval "ac_cv_lib_$ac_lib_var=yes"
11752 else
11753 echo "configure: failed program was:" >&5
11754 cat conftest.$ac_ext >&5
11755 rm -rf conftest*
11756 eval "ac_cv_lib_$ac_lib_var=no"
11757 fi
11758 rm -f conftest*
11759 xe_check_libs=""
11760
11761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11762 echo "$ac_t""yes" 1>&6
11763 { test "$extra_verbose" = "yes" && cat << \EOF
11764 Defining HAVE_DLOPEN
11765 EOF
11766 cat >> confdefs.h <<\EOF
11767 #define HAVE_DLOPEN 1
11768 EOF
11769 }
11770 DLL_LIB=; with_shlib=yes
11771 else
11772 echo "$ac_t""no" 1>&6
11773 fi
11774
11775 }
11776 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11777 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11778 echo "configure:11779: checking for dlopen in -lc" >&5
11779 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11780
11781 xe_check_libs=" -lc "
11782 cat > conftest.$ac_ext <<EOF
11783 #line 11784 "configure"
11784 #include "confdefs.h" 12684 #include "confdefs.h"
11785 /* Override any gcc2 internal prototype to avoid an error. */ 12685 /* Override any gcc2 internal prototype to avoid an error. */
11786 /* We use char because int might match the return type of a gcc2 12686 /* We use char because int might match the return type of a gcc2
11787 builtin and then its argument prototype would still apply. */ 12687 builtin and then its argument prototype would still apply. */
11788 char dlopen(); 12688 char dlopen();
11789 12689
11790 int main() { 12690 int main() {
11791 dlopen() 12691 dlopen()
11792 ; return 0; } 12692 ; return 0; }
11793 EOF 12693 EOF
11794 if { (eval echo configure:11795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12694 if { (eval echo configure:12695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11795 rm -rf conftest* 12695 rm -rf conftest*
11796 eval "ac_cv_lib_$ac_lib_var=yes" 12696 eval "ac_cv_lib_$ac_lib_var=yes"
11797 else 12697 else
11798 echo "configure: failed program was:" >&5 12698 echo "configure: failed program was:" >&5
11799 cat conftest.$ac_ext >&5 12699 cat conftest.$ac_ext >&5
11803 rm -f conftest* 12703 rm -f conftest*
11804 xe_check_libs="" 12704 xe_check_libs=""
11805 12705
11806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 12706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11807 echo "$ac_t""yes" 1>&6 12707 echo "$ac_t""yes" 1>&6
11808 { test "$extra_verbose" = "yes" && cat << \EOF 12708 have_dl=yes
12709 else
12710 echo "$ac_t""no" 1>&6
12711 fi
12712
12713
12714 fi
12715
12716
12717 else
12718 echo "$ac_t""no" 1>&6
12719 fi
12720
12721 if test -n "$have_dl"; then
12722 { test "$extra_verbose" = "yes" && cat << \EOF
11809 Defining HAVE_DLOPEN 12723 Defining HAVE_DLOPEN
11810 EOF 12724 EOF
11811 cat >> confdefs.h <<\EOF 12725 cat >> confdefs.h <<\EOF
11812 #define HAVE_DLOPEN 1 12726 #define HAVE_DLOPEN 1
11813 EOF 12727 EOF
11814 } 12728 }
11815 DLL_LIB=; with_shlib=yes 12729
11816 else 12730 else
11817 echo "$ac_t""no" 1>&6 12731
11818 fi
11819
11820 }
11821 test -z "$with_shlib" && {
11822 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 12732 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11823 echo "configure:11824: checking for shl_load in -ldld" >&5 12733 echo "configure:12734: checking for shl_load in -ldld" >&5
11824 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 12734 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11825 12735
11826 xe_check_libs=" -ldld " 12736 xe_check_libs=" -ldld "
11827 cat > conftest.$ac_ext <<EOF 12737 cat > conftest.$ac_ext <<EOF
11828 #line 11829 "configure" 12738 #line 12739 "configure"
11829 #include "confdefs.h" 12739 #include "confdefs.h"
11830 /* Override any gcc2 internal prototype to avoid an error. */ 12740 /* Override any gcc2 internal prototype to avoid an error. */
11831 /* We use char because int might match the return type of a gcc2 12741 /* We use char because int might match the return type of a gcc2
11832 builtin and then its argument prototype would still apply. */ 12742 builtin and then its argument prototype would still apply. */
11833 char shl_load(); 12743 char shl_load();
11834 12744
11835 int main() { 12745 int main() {
11836 shl_load() 12746 shl_load()
11837 ; return 0; } 12747 ; return 0; }
11838 EOF 12748 EOF
11839 if { (eval echo configure:11840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12749 if { (eval echo configure:12750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11840 rm -rf conftest* 12750 rm -rf conftest*
11841 eval "ac_cv_lib_$ac_lib_var=yes" 12751 eval "ac_cv_lib_$ac_lib_var=yes"
11842 else 12752 else
11843 echo "configure: failed program was:" >&5 12753 echo "configure: failed program was:" >&5
11844 cat conftest.$ac_ext >&5 12754 cat conftest.$ac_ext >&5
11848 rm -f conftest* 12758 rm -f conftest*
11849 xe_check_libs="" 12759 xe_check_libs=""
11850 12760
11851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 12761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11852 echo "$ac_t""yes" 1>&6 12762 echo "$ac_t""yes" 1>&6
11853 { test "$extra_verbose" = "yes" && cat << \EOF 12763 libdl=dld have_dl=yes;
12764 { test "$extra_verbose" = "yes" && cat << \EOF
11854 Defining HAVE_SHL_LOAD 12765 Defining HAVE_SHL_LOAD
11855 EOF 12766 EOF
11856 cat >> confdefs.h <<\EOF 12767 cat >> confdefs.h <<\EOF
11857 #define HAVE_SHL_LOAD 1 12768 #define HAVE_SHL_LOAD 1
11858 EOF 12769 EOF
11859 } 12770 }
11860 DLL_LIB=dld; with_shlib=yes 12771
11861 else 12772 else
11862 echo "$ac_t""no" 1>&6 12773 echo "$ac_t""no" 1>&6
11863 fi 12774
11864
11865 }
11866 test -z "$with_shlib" && {
11867 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 12775 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11868 echo "configure:11869: checking for dld_init in -ldld" >&5 12776 echo "configure:12777: checking for dld_init in -ldld" >&5
11869 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 12777 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11870 12778
11871 xe_check_libs=" -ldld " 12779 xe_check_libs=" -ldld "
11872 cat > conftest.$ac_ext <<EOF 12780 cat > conftest.$ac_ext <<EOF
11873 #line 11874 "configure" 12781 #line 12782 "configure"
11874 #include "confdefs.h" 12782 #include "confdefs.h"
11875 /* Override any gcc2 internal prototype to avoid an error. */ 12783 /* Override any gcc2 internal prototype to avoid an error. */
11876 /* We use char because int might match the return type of a gcc2 12784 /* We use char because int might match the return type of a gcc2
11877 builtin and then its argument prototype would still apply. */ 12785 builtin and then its argument prototype would still apply. */
11878 char dld_init(); 12786 char dld_init();
11879 12787
11880 int main() { 12788 int main() {
11881 dld_init() 12789 dld_init()
11882 ; return 0; } 12790 ; return 0; }
11883 EOF 12791 EOF
11884 if { (eval echo configure:11885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12792 if { (eval echo configure:12793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11885 rm -rf conftest* 12793 rm -rf conftest*
11886 eval "ac_cv_lib_$ac_lib_var=yes" 12794 eval "ac_cv_lib_$ac_lib_var=yes"
11887 else 12795 else
11888 echo "configure: failed program was:" >&5 12796 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5 12797 cat conftest.$ac_ext >&5
11893 rm -f conftest* 12801 rm -f conftest*
11894 xe_check_libs="" 12802 xe_check_libs=""
11895 12803
11896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 12804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11897 echo "$ac_t""yes" 1>&6 12805 echo "$ac_t""yes" 1>&6
11898 { test "$extra_verbose" = "yes" && cat << \EOF 12806 libdl=dld have_dl=yes;
12807 { test "$extra_verbose" = "yes" && cat << \EOF
11899 Defining HAVE_DLD_INIT 12808 Defining HAVE_DLD_INIT
11900 EOF 12809 EOF
11901 cat >> confdefs.h <<\EOF 12810 cat >> confdefs.h <<\EOF
11902 #define HAVE_DLD_INIT 1 12811 #define HAVE_DLD_INIT 1
11903 EOF 12812 EOF
11904 } 12813 }
11905 DLL_LIB=dld; with_shlib=yes 12814
11906 else 12815 else
11907 echo "$ac_t""no" 1>&6 12816 echo "$ac_t""no" 1>&6
11908 fi 12817 fi
11909 12818
11910 } 12819
11911 if test "$with_shlib" = "yes"; then 12820 fi
11912 12821
12822
12823 fi
12824
12825 if test -n "$have_dl"; then
12826
11913 dll_ld= 12827 dll_ld=
11914 dll_ldflags= 12828 dll_ldflags=
11915 dll_cflags= 12829 dll_cflags=
11916 dll_post= 12830 dll_post=
11917 dll_ldo="-o" 12831 dll_ldo="-o"
11918 ld_dynamic_link_flags= 12832 ld_dynamic_link_flags=
11919 xehost=$canonical 12833 xehost=$canonical
11920 xealias=$internal_configuration 12834 xealias=$internal_configuration
11921 12835
11922 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 12836 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
11923 echo "configure:11924: checking how to build dynamic libraries for ${xehost}" >&5 12837 echo "configure:12838: checking how to build dynamic libraries for ${xehost}" >&5
11924 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 12838 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
11925 case "$xehost" in 12839 case "$xehost" in
11926 *-*-linux-gnu*) ;; 12840 *-*-linux-gnu*) ;;
11927 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 12841 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
11928 esac 12842 esac
11946 # Now see if the compiler is really GCC. 12860 # Now see if the compiler is really GCC.
11947 if test "$GCC" = "yes"; then 12861 if test "$GCC" = "yes"; then
11948 XEGCC=yes 12862 XEGCC=yes
11949 else 12863 else
11950 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 12864 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
11951 echo "configure:11952: checking checking whether we are using GNU C" >&5 12865 echo "configure:12866: checking checking whether we are using GNU C" >&5
11952 cat > conftest.$ac_ext <<EOF 12866 cat > conftest.$ac_ext <<EOF
11953 #line 11954 "configure" 12867 #line 12868 "configure"
11954 #include "confdefs.h" 12868 #include "confdefs.h"
11955 12869
11956 #ifdef __GNUC__ 12870 #ifdef __GNUC__
11957 yes; 12871 yes;
11958 #endif 12872 #endif
11970 12884
11971 echo "$ac_t""${XEGCC}" 1>&6 12885 echo "$ac_t""${XEGCC}" 1>&6
11972 fi 12886 fi
11973 12887
11974 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 12888 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
11975 echo "configure:11976: checking how to produce PIC code" >&5 12889 echo "configure:12890: checking how to produce PIC code" >&5
11976 wl= 12890 wl=
11977 12891
11978 can_build_shared=yes 12892 can_build_shared=yes
11979 if test "$XEGCC" = yes; then 12893 if test "$XEGCC" = yes; then
11980 wl='-Wl,' 12894 wl='-Wl,'
11982 case "$xehost_os" in 12896 case "$xehost_os" in
11983 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*) 12897 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
11984 # PIC is the default for these OSes. 12898 # PIC is the default for these OSes.
11985 ;; 12899 ;;
11986 12900
11987 os2*) 12901 aix3* | aix4* | os2*)
11988 # We can build DLLs from non-PIC. 12902 # We can build DLLs from non-PIC.
11989 ;; 12903 ;;
11990 amigaos*) 12904 amigaos*)
11991 # FIXME: we need at least 68020 code to build shared libraries, but 12905 # FIXME: we need at least 68020 code to build shared libraries, but
11992 # adding the `-m68020' flag to GCC prevents building anything better, 12906 # adding the `-m68020' flag to GCC prevents building anything better,
11998 ;; 12912 ;;
11999 esac 12913 esac
12000 else 12914 else
12001 # PORTME Check for PIC flags for the system compiler. 12915 # PORTME Check for PIC flags for the system compiler.
12002 case "$xehost_os" in 12916 case "$xehost_os" in
12003 hpux9* | hpux10*) 12917 hpux9* | hpux1[0-9]*)
12004 # Is there a better link_static_flag that works with the bundled CC? 12918 # Is there a better link_static_flag that works with the bundled CC?
12005 wl='-Wl,' 12919 wl='-Wl,'
12006 dll_cflags='+Z' 12920 dll_cflags='+Z'
12007 ;; 12921 ;;
12008 12922
12063 if test -n "$dll_cflags"; then 12977 if test -n "$dll_cflags"; then
12064 echo "$ac_t""${dll_cflags}" 1>&6 12978 echo "$ac_t""${dll_cflags}" 1>&6
12065 12979
12066 # Check to make sure the dll_cflags actually works. 12980 # Check to make sure the dll_cflags actually works.
12067 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 12981 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12068 echo "configure:12069: checking if PIC flag ${dll_cflags} really works" >&5 12982 echo "configure:12983: checking if PIC flag ${dll_cflags} really works" >&5
12069 save_CFLAGS="$CFLAGS" 12983 save_CFLAGS="$CFLAGS"
12070 CFLAGS="$CFLAGS $dll_cflags -DPIC" 12984 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12071 cat > conftest.$ac_ext <<EOF 12985 cat > conftest.$ac_ext <<EOF
12072 #line 12073 "configure" 12986 #line 12987 "configure"
12073 #include "confdefs.h" 12987 #include "confdefs.h"
12074 12988
12075 int main() { 12989 int main() {
12076 int x=0; 12990 int x=0;
12077 ; return 0; } 12991 ; return 0; }
12078 EOF 12992 EOF
12079 if { (eval echo configure:12080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12993 if { (eval echo configure:12994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12080 rm -rf conftest* 12994 rm -rf conftest*
12081 12995
12082 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 12996 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12083 # reports no error. So, we need to grep stderr for (Bundled). 12997 # reports no error. So, we need to grep stderr for (Bundled).
12084 if grep '(Bundled)' config.log >/dev/null; then 12998 if grep '(Bundled)' config.log >/dev/null; then
12105 if test "$can_build_shared" = "yes"; then 13019 if test "$can_build_shared" = "yes"; then
12106 cc_produces_so=no 13020 cc_produces_so=no
12107 xldf= 13021 xldf=
12108 xcldf= 13022 xcldf=
12109 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 13023 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12110 echo "configure:12111: checking if C compiler can produce shared libraries" >&5 13024 echo "configure:13025: checking if C compiler can produce shared libraries" >&5
12111 if test "$XEGCC" = yes; then 13025 if test "$XEGCC" = yes; then
12112 xcldf="-shared" 13026 xcldf="-shared"
12113 xldf="-shared" 13027 xldf="-shared"
12114 else # Not using GCC 13028 else # Not using GCC
12115 case "$xehost_os" in 13029 case "$xehost_os" in
12156 LDFLAGS="$xcldf $LDFLAGS" 13070 LDFLAGS="$xcldf $LDFLAGS"
12157 LIBS= 13071 LIBS=
12158 xe_libs= 13072 xe_libs=
12159 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 13073 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12160 cat > conftest.$ac_ext <<EOF 13074 cat > conftest.$ac_ext <<EOF
12161 #line 12162 "configure" 13075 #line 13076 "configure"
12162 #include "confdefs.h" 13076 #include "confdefs.h"
12163 13077
12164 int main() { 13078 int main() {
12165 int x=0; 13079 int x=0;
12166 ; return 0; } 13080 ; return 0; }
12167 EOF 13081 EOF
12168 if { (eval echo configure:12169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13082 if { (eval echo configure:13083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12169 rm -rf conftest* 13083 rm -rf conftest*
12170 cc_produces_so=yes 13084 cc_produces_so=yes
12171 else 13085 else
12172 echo "configure: failed program was:" >&5 13086 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5 13087 cat conftest.$ac_ext >&5
12188 if test -z "$LTLD"; then 13102 if test -z "$LTLD"; then
12189 ac_prog=ld 13103 ac_prog=ld
12190 if test "$XEGCC" = yes; then 13104 if test "$XEGCC" = yes; then
12191 # Check if gcc -print-prog-name=ld gives a path. 13105 # Check if gcc -print-prog-name=ld gives a path.
12192 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 13106 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12193 echo "configure:12194: checking for ld used by GCC" >&5 13107 echo "configure:13108: checking for ld used by GCC" >&5
12194 ac_prog=`($CC -print-prog-name=ld) 2>&5` 13108 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12195 case "$ac_prog" in 13109 case "$ac_prog" in
12196 # Accept absolute paths. 13110 # Accept absolute paths.
12197 /*) 13111 /*)
12198 if test -z "$LTLD"; then 13112 if test -z "$LTLD"; then
12213 with_gnu_ld=unknown 13127 with_gnu_ld=unknown
12214 ;; 13128 ;;
12215 esac 13129 esac
12216 else 13130 else
12217 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 13131 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12218 echo "configure:12219: checking for GNU ld" >&5 13132 echo "configure:13133: checking for GNU ld" >&5
12219 fi 13133 fi
12220 13134
12221 if test -z "$LTLD"; then 13135 if test -z "$LTLD"; then
12222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 13136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12223 for ac_dir in $PATH; do 13137 for ac_dir in $PATH; do
12251 13165
12252 ld_dynamic_link_flags= 13166 ld_dynamic_link_flags=
12253 13167
12254 # Check to see if it really is or isn't GNU ld. 13168 # Check to see if it really is or isn't GNU ld.
12255 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 13169 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12256 echo "configure:12257: checking if the linker is GNU ld" >&5 13170 echo "configure:13171: checking if the linker is GNU ld" >&5
12257 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 13171 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12258 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 13172 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12259 xe_gnu_ld=yes 13173 xe_gnu_ld=yes
12260 else 13174 else
12261 xe_gnu_ld=no 13175 xe_gnu_ld=no
12278 can_build_shared=yes 13192 can_build_shared=yes
12279 else 13193 else
12280 # OK - only NOW do we futz about with ld. 13194 # OK - only NOW do we futz about with ld.
12281 # See if the linker supports building shared libraries. 13195 # See if the linker supports building shared libraries.
12282 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 13196 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12283 echo "configure:12284: checking whether the linker supports shared libraries" >&5 13197 echo "configure:13198: checking whether the linker supports shared libraries" >&5
12284 dll_ld=$CC 13198 dll_ld=$CC
12285 dll_ldflags=$LDFLAGS 13199 dll_ldflags=$LDFLAGS
12286 ld_shlibs=yes 13200 ld_shlibs=yes
12287 can_build_shared=yes 13201 can_build_shared=yes
12288 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 13202 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12443 13357
12444 osf3* | osf4*) 13358 osf3* | osf4*)
12445 ld_dynamic_link_flags= 13359 ld_dynamic_link_flags=
12446 ;; 13360 ;;
12447 13361
12448 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*) 13362 solaris2* | solaris7*)
13363 ld_dynamic_link_flags=
13364 ;;
13365
13366 sco3.2v5* | unixware* | sysv5* | sysv4*)
12449 ld_dynamic_link_flags="${wl}-Bexport" 13367 ld_dynamic_link_flags="${wl}-Bexport"
12450 ;; 13368 ;;
12451 13369
12452 sunos4*) 13370 sunos4*)
12453 ld_dynamic_link_flags= 13371 ld_dynamic_link_flags=
12470 13388
12471 13389
12472 13390
12473 13391
12474 13392
13393 fi
13394
12475 if test "$can_build_shared" = "yes"; then 13395 if test "$can_build_shared" = "yes"; then
12476 { test "$extra_verbose" = "yes" && cat << \EOF 13396 { test "$extra_verbose" = "yes" && cat << \EOF
12477 Defining HAVE_SHLIB 13397 Defining HAVE_SHLIB
12478 EOF 13398 EOF
12479 cat >> confdefs.h <<\EOF 13399 cat >> confdefs.h <<\EOF
12480 #define HAVE_SHLIB 1 13400 #define HAVE_SHLIB 1
12481 EOF 13401 EOF
12482 } 13402 }
12483 13403
12484 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then 13404 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
12485 echo " xemacs will be linked with \"sysdll.o\"" 13405 echo " xemacs will be linked with \"sysdll.o emodules.o\""
12486 fi
12487 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12488 echo " xemacs will be linked with \"emodules.o\""
12489 fi 13406 fi
12490 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 13407 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12491 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi 13408 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
12492 for ac_func in dlerror _dlerror 13409 for ac_func in dlerror _dlerror
12493 do 13410 do
12494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12495 echo "configure:12496: checking for $ac_func" >&5 13412 echo "configure:13413: checking for $ac_func" >&5
12496 13413
12497 cat > conftest.$ac_ext <<EOF 13414 cat > conftest.$ac_ext <<EOF
12498 #line 12499 "configure" 13415 #line 13416 "configure"
12499 #include "confdefs.h" 13416 #include "confdefs.h"
12500 /* System header to define __stub macros and hopefully few prototypes, 13417 /* System header to define __stub macros and hopefully few prototypes,
12501 which can conflict with char $ac_func(); below. */ 13418 which can conflict with char $ac_func(); below. */
12502 #include <assert.h> 13419 #include <assert.h>
12503 /* Override any gcc2 internal prototype to avoid an error. */ 13420 /* Override any gcc2 internal prototype to avoid an error. */
12516 $ac_func(); 13433 $ac_func();
12517 #endif 13434 #endif
12518 13435
12519 ; return 0; } 13436 ; return 0; }
12520 EOF 13437 EOF
12521 if { (eval echo configure:12522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13438 if { (eval echo configure:13439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12522 rm -rf conftest* 13439 rm -rf conftest*
12523 eval "ac_cv_func_$ac_func=yes" 13440 eval "ac_cv_func_$ac_func=yes"
12524 else 13441 else
12525 echo "configure: failed program was:" >&5 13442 echo "configure: failed program was:" >&5
12526 cat conftest.$ac_ext >&5 13443 cat conftest.$ac_ext >&5
12543 else 13460 else
12544 echo "$ac_t""no" 1>&6 13461 echo "$ac_t""no" 1>&6
12545 fi 13462 fi
12546 done 13463 done
12547 13464
13465 with_modules=yes
12548 else 13466 else
12549 echo "configure: warning: disabling shared library support" 1>&2 13467 if test "$with_modules" = "yes"; then
12550 with_shlib=no 13468 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
13469 else
13470 echo "configure: warning: "Module support cannot be provided."" 1>&2
13471 fi
13472 with_modules=no
12551 fi 13473 fi
12552 fi 13474 fi
12553 13475
12554 cat > conftest.$ac_ext <<EOF 13476 cat > conftest.$ac_ext <<EOF
12555 #line 12556 "configure" 13477 #line 13478 "configure"
12556 #include "confdefs.h" 13478 #include "confdefs.h"
12557 int main(int c,char *v[]){return 0;} 13479 int main(int c,char *v[]){return 0;}
12558 EOF 13480 EOF
12559 if { (eval echo configure:12560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13481 if { (eval echo configure:13482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12560 then 13482 then
12561 : 13483 :
12562 else 13484 else
12563 conftest_rc="$?" 13485 conftest_rc="$?"
12564 echo "configure: failed program was:" >&5 13486 echo "configure: failed program was:" >&5
12581 echo "*** PANIC *** on your system. Don't do that." 13503 echo "*** PANIC *** on your system. Don't do that."
12582 exit 1 13504 exit 1
12583 fi 13505 fi
12584 rm -fr conftest* 13506 rm -fr conftest*
12585 13507
12586 13508 if test "$win32_processes" = "yes"; then
12587 { test "$extra_verbose" = "yes" && cat << \EOF 13509 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
13510 echo " xemacs will be linked with \"process-nt.o\""
13511 fi
13512 else
13513 { test "$extra_verbose" = "yes" && cat << \EOF
12588 Defining HAVE_UNIX_PROCESSES 13514 Defining HAVE_UNIX_PROCESSES
12589 EOF 13515 EOF
12590 cat >> confdefs.h <<\EOF 13516 cat >> confdefs.h <<\EOF
12591 #define HAVE_UNIX_PROCESSES 1 13517 #define HAVE_UNIX_PROCESSES 1
12592 EOF 13518 EOF
12593 } 13519 }
12594 13520
12595 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then 13521 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
12596 echo " xemacs will be linked with \"process-unix.o\"" 13522 echo " xemacs will be linked with \"process-unix.o\""
12597 fi 13523 fi
13524 fi
12598 13525
12599 13526
12600 13527
12601 T="" 13528 T=""
12602 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 13529 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12690 echo "" 13617 echo ""
12691 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done 13618 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done
12692 echo "" 13619 echo ""
12693 fi 13620 fi
12694 13621
12695 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then 13622
12696 echo "creating src/gdbinit"; echo "" 13623 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
12697 echo "source $srcdir/src/gdbinit" > src/gdbinit 13624 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
13625 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
13626 fi
13627
13628 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
13629 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
13630 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
13631 fi
13632
13633 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
13634 test "$extra_verbose" = "yes" && echo "creating TAGS"
13635 echo "
13636 $srcdir/TAGS,include" > "TAGS"
12698 fi 13637 fi
12699 13638
12700 if test "$__SUNPRO_C" = "yes"; then 13639 if test "$__SUNPRO_C" = "yes"; then
12701 echo "creating .sbinit"; echo "" 13640 test "$extra_verbose" = "yes" && echo "creating .sbinit"
12702 ( echo "# For use with Sun WorkShop's Source browser." 13641 ( echo "# For use with Sun WorkShop's Source browser."
12703 echo "# See sbquery(1) and sbinit(4) for more information" 13642 echo "# See sbquery(1) and sbinit(4) for more information"
12704 for dir in $MAKE_SUBDIR; do echo "import $dir"; done 13643 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12705 ) > .sbinit 13644 ) > .sbinit
12706 fi 13645 fi
12707 13646
12708 rm -f core 13647 rm -f core
13648
13649
13650
12709 13651
12710 13652
12711 13653
12712 13654
12713 13655
12730 esac 13672 esac
12731 done 13673 done
12732 13674
12733 13675
12734 13676
13677
12735 EXEC_PREFIX=$exec_prefix 13678 EXEC_PREFIX=$exec_prefix
12736 while true; do 13679 while true; do
12737 case "$EXEC_PREFIX" in 13680 case "$EXEC_PREFIX" in
12738 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;; 13681 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
12739 *) break ;; 13682 *) break ;;
12840 done 13783 done
12841 13784
12842 13785
12843 13786
12844 13787
13788 DOCDIR=$docdir
13789 while true; do
13790 case "$DOCDIR" in
13791 *\$* ) eval "DOCDIR=$DOCDIR" ;;
13792 *) break ;;
13793 esac
13794 done
13795
13796
13797
13798
12845 ARCHLIBDIR=$archlibdir 13799 ARCHLIBDIR=$archlibdir
12846 while true; do 13800 while true; do
12847 case "$ARCHLIBDIR" in 13801 case "$ARCHLIBDIR" in
12848 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;; 13802 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
12849 *) break ;; 13803 *) break ;;
12878 13832
12879 13833
12880 : ${XEMACS_CC:=$CC} 13834 : ${XEMACS_CC:=$CC}
12881 13835
12882 13836
13837 if test "$with_prefix" = "yes"; then
13838 { test "$extra_verbose" = "yes" && cat << \EOF
13839 Defining PREFIX_USER_DEFINED
13840 EOF
13841 cat >> confdefs.h <<\EOF
13842 #define PREFIX_USER_DEFINED 1
13843 EOF
13844 }
13845
13846 fi
12883 13847
12884 if test "$with_site_lisp" = "no"; then 13848 if test "$with_site_lisp" = "no"; then
12885 { test "$extra_verbose" = "yes" && cat << \EOF 13849 { test "$extra_verbose" = "yes" && cat << \EOF
12886 Defining INHIBIT_SITE_LISP 13850 Defining INHIBIT_SITE_LISP
12887 EOF 13851 EOF
12906 T="" 13870 T=""
12907 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 13871 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12908 ac_configure_args="$T" 13872 ac_configure_args="$T"
12909 13873
12910 { test "$extra_verbose" = "yes" && cat << EOF 13874 { test "$extra_verbose" = "yes" && cat << EOF
12911 Defining EMACS_CONFIGURATION = "$canonical" 13875 Defining EMACS_CONFIGURATION = "$configuration"
12912 EOF 13876 EOF
12913 cat >> confdefs.h <<EOF 13877 cat >> confdefs.h <<EOF
12914 #define EMACS_CONFIGURATION "$canonical" 13878 #define EMACS_CONFIGURATION "$configuration"
12915 EOF 13879 EOF
12916 } 13880 }
12917 13881
12918 { test "$extra_verbose" = "yes" && cat << EOF 13882 { test "$extra_verbose" = "yes" && cat << EOF
12919 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args" 13883 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
12982 EOF 13946 EOF
12983 } 13947 }
12984 13948
12985 13949
12986 13950
12987 test -n "$puresize" && { test "$extra_verbose" = "yes" && cat << EOF
12988 Defining RAW_PURESIZE = $puresize
12989 EOF
12990 cat >> confdefs.h <<EOF
12991 #define RAW_PURESIZE $puresize
12992 EOF
12993 }
12994
12995
12996 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF 13951 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
12997 Defining GNU_MALLOC 13952 Defining GNU_MALLOC
12998 EOF 13953 EOF
12999 cat >> confdefs.h <<\EOF 13954 cat >> confdefs.h <<\EOF
13000 #define GNU_MALLOC 1 13955 #define GNU_MALLOC 1
13101 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 14056 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
13102 Defining USE_UNION_TYPE 14057 Defining USE_UNION_TYPE
13103 EOF 14058 EOF
13104 cat >> confdefs.h <<\EOF 14059 cat >> confdefs.h <<\EOF
13105 #define USE_UNION_TYPE 1 14060 #define USE_UNION_TYPE 1
14061 EOF
14062 }
14063
14064 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
14065 Defining PDUMP
14066 EOF
14067 cat >> confdefs.h <<\EOF
14068 #define PDUMP 1
13106 EOF 14069 EOF
13107 } 14070 }
13108 14071
13109 14072
13110 14073
13115 fi 14078 fi
13116 echo "" 14079 echo ""
13117 echo "$0 $quoted_arguments" 14080 echo "$0 $quoted_arguments"
13118 ) > Installation 14081 ) > Installation
13119 14082
13120 xemacs_betaname="" 14083 if test ! -z ${emacs_beta_version} ; then
13121 test ! -z "${emacs_beta_version}" && xemacs_betaname="-b${emacs_beta_version}" 14084 if test -z "${emacs_is_beta}" ; then
14085 xemacs_betaname=".${emacs_beta_version}"
14086 else
14087 xemacs_betaname="-b${emacs_beta_version}"
14088 fi
14089 else
14090 xemacs_betaname=""
14091 fi
13122 14092
13123 ( 14093 (
13124 echo " 14094 echo "
13125 14095
13126 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'. 14096 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
13146 if test -n "$site_prefixes"; then 14116 if test -n "$site_prefixes"; then
13147 echo " Additional prefixes: $site_prefixes" 14117 echo " Additional prefixes: $site_prefixes"
13148 fi 14118 fi
13149 if test -n "$runpath"; then 14119 if test -n "$runpath"; then
13150 echo " Runtime library search path: $runpath" 14120 echo " Runtime library search path: $runpath"
14121 fi
14122 if test "$have_xaw" = "yes"; then
14123 echo " Athena library to link: $athena_lib"
14124 echo " Athena header include path: $athena_h_path"
13151 fi 14125 fi
13152 test "$with_dnet" = yes && echo " Compiling in support for DNET." 14126 test "$with_dnet" = yes && echo " Compiling in support for DNET."
13153 test "$with_socks" = yes && echo " Compiling in support for SOCKS." 14127 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
13154 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." 14128 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
13155 if test "$with_xmu" != yes -a "$with_x11" = yes; then 14129 if test "$with_xmu" != yes -a "$with_x11" = yes; then
13184 fi 14158 fi
13185 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling." 14159 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13186 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling." 14160 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13187 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling." 14161 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13188 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." 14162 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13189 case "$with_sound" in 14163
13190 nas ) echo " Compiling in network sound (NAS) support." ;; 14164 test "$with_native_sound" = yes && echo " Compiling in native sound support."
13191 native ) echo " Compiling in native sound support." ;; 14165 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support."
13192 both ) echo " Compiling in both network and native sound support." ;; 14166 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13193 esac 14167 test "$with_esd_sound" = yes && echo " Compiling in support for Enlightened Sound Daemon (ESD)."
13194 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13195 14168
13196 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." 14169 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13197 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." 14170 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13198 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM." 14171 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
13199 14172
13200 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)." 14173 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
13201 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)."
13202 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)."
13203 14174
13204 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." 14175 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
13205 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." 14176 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
13206 14177
13207 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." 14178 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
13220 test "$with_cde" = yes && echo " Compiling in support for CDE." 14191 test "$with_cde" = yes && echo " Compiling in support for CDE."
13221 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." 14192 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
13222 test "$with_offix" = yes && echo " Compiling in support for OffiX." 14193 test "$with_offix" = yes && echo " Compiling in support for OffiX."
13223 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )." 14194 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
13224 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." 14195 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
13225 test "$with_session" != no && echo " Compiling in support for proper session-management." 14196 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
13226 case "$with_menubars" in 14197 case "$with_menubars" in
13227 lucid ) echo " Using Lucid menubars." ;; 14198 lucid ) echo " Using Lucid menubars." ;;
13228 motif ) echo " Using Motif menubars." 14199 motif ) echo " Using Motif menubars."
13229 echo " *WARNING* The Motif menubar implementation is currently buggy." 14200 echo " *WARNING* The Motif menubar implementation is currently buggy."
13230 echo " We recommend using the Lucid menubar instead." 14201 echo " We recommend using the Lucid menubar instead."
13231 echo " Re-run configure with --with-menubars='lucid'." ;; 14202 echo " Re-run configure with --with-menubars='lucid'." ;;
14203 msw ) echo " Using MS-Windows menubars." ;;
13232 esac 14204 esac
13233 case "$with_scrollbars" in 14205 case "$with_scrollbars" in
13234 lucid ) echo " Using Lucid scrollbars." ;; 14206 lucid ) echo " Using Lucid scrollbars." ;;
13235 motif ) echo " Using Motif scrollbars." ;; 14207 motif ) echo " Using Motif scrollbars." ;;
13236 athena ) echo " Using Athena scrollbars." ;; 14208 athena ) echo " Using Athena scrollbars." ;;
13237 athena3d ) echo " Using Athena-3d scrollbars." ;; 14209 msw ) echo " Using MS-Windows scrollbars." ;;
14210 esac
14211 case "$with_widgets" in
14212 motif ) echo " Using Motif native widgets." ;;
14213 athena ) echo " Using Athena native widgets." ;;
14214 msw ) echo " Using MS-Windows native widgets." ;;
13238 esac 14215 esac
13239 case "$with_dialogs" in 14216 case "$with_dialogs" in
13240 motif ) 14217 motif )
13241 echo " Using Motif dialog boxes." 14218 echo " Using Motif dialog boxes."
13242 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then 14219 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13245 echo " Install libXaw and re-run configure with --with-dialogs='athena'." 14222 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
13246 echo " Read the PROBLEMS file for more information." 14223 echo " Read the PROBLEMS file for more information."
13247 fi; fi 14224 fi; fi
13248 ;; 14225 ;;
13249 athena ) echo " Using Athena dialog boxes." ;; 14226 athena ) echo " Using Athena dialog boxes." ;;
13250 athena3d ) echo " Using Athena-3d dialog boxes." ;; 14227 msw ) echo " Using MS-Windows dialog boxes." ;;
13251 esac 14228 esac
13252 test "$with_shlib" = "yes" && echo " Compiling in DLL support." 14229 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support."
13253 test "$with_clash_detection" = yes && \ 14230 test "$with_clash_detection" = yes && \
13254 echo " Clash detection will use \"$lockdir\" for locking files." 14231 echo " Clash detection will use \"$lockdir\" for locking files."
13255 echo " movemail will use \"$mail_locking\" for locking mail spool files." 14232 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13256 test "$with_pop" = yes && echo " Using POP for mail access." 14233 test "$with_pop" = yes && echo " Using POP for mail access."
13257 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication." 14234 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13258 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host." 14235 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
13259 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." 14236 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
13260 test "$use_minimal_tagbits" = yes && echo " Using Lisp_Objects with minimal tagbits." 14237 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)."
13261 test "$use_indexed_lrecord_implementation" = yes && echo " Using indexed lrecord implementation." 14238 test "$debug" = yes && echo " Compiling in extra code for debugging."
13262 test "$debug" = yes && echo " Compiling in extra code for debugging." 14239 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13263 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage."
13264 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
13265 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ 14240 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
13266 != "no no no no no"; then 14241 != "no no no no no"; then
13267 echo " WARNING: ---------------------------------------------------------" 14242 echo " WARNING: ---------------------------------------------------------"
13268 echo " WARNING: Compiling in support for runtime error checking." 14243 echo " WARNING: Compiling in support for runtime error checking."
13269 echo " WARNING: XEmacs will run noticeably more slowly as a result." 14244 echo " WARNING: XEmacs will run noticeably more slowly as a result."
13272 fi 14247 fi
13273 echo "" 14248 echo ""
13274 ) | tee -a Installation 14249 ) | tee -a Installation
13275 echo "" 14250 echo ""
13276 14251
13277 echo '(setq Installation-string "' > Installation.el
13278 sed 's/"/\\"/g' Installation >> Installation.el
13279 echo '")' >> Installation.el
13280
13281 14252
13282 # Remove any trailing slashes in these variables. 14253 # Remove any trailing slashes in these variables.
13283 test -n "$prefix" && 14254 test -n "$prefix" &&
13284 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'` 14255 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
13285 test -n "$exec_prefix" && 14256 test -n "$exec_prefix" &&
13287 14258
13288 14259
13289 for file in $internal_makefile_list; do 14260 for file in $internal_makefile_list; do
13290 test "$file" = src/Makefile.in && \ 14261 test "$file" = src/Makefile.in && \
13291 file="src/Makefile.in:src/Makefile.in.in:src/depend" 14262 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13292 ac_output_files="${ac_output_files+$ac_output_files }$file" 14263 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
13293 done 14264 done
13294 ac_output_files="$ac_output_files src/paths.h lib-src/config.values" 14265 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13295 if test "$with_shlib" = "yes"; then 14266 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi
13296 ac_output_files="$ac_output_files lib-src/ellcc.h"
13297 fi
13298 14267
13299 trap '' 1 2 15 14268 trap '' 1 2 15
13300 14269
13301 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 14270 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13302 14271
13405 s%@install_pp@%$install_pp%g 14374 s%@install_pp@%$install_pp%g
13406 s%@libs_xauth@%$libs_xauth%g 14375 s%@libs_xauth@%$libs_xauth%g
13407 s%@dnd_objs@%$dnd_objs%g 14376 s%@dnd_objs@%$dnd_objs%g
13408 s%@lwlib_objs@%$lwlib_objs%g 14377 s%@lwlib_objs@%$lwlib_objs%g
13409 s%@ALLOCA@%$ALLOCA%g 14378 s%@ALLOCA@%$ALLOCA%g
14379 s%@have_esd_config@%$have_esd_config%g
13410 s%@dll_ld@%$dll_ld%g 14380 s%@dll_ld@%$dll_ld%g
13411 s%@dll_cflags@%$dll_cflags%g 14381 s%@dll_cflags@%$dll_cflags%g
13412 s%@dll_ldflags@%$dll_ldflags%g 14382 s%@dll_ldflags@%$dll_ldflags%g
13413 s%@dll_post@%$dll_post%g 14383 s%@dll_post@%$dll_post%g
13414 s%@dll_ldo@%$dll_ldo%g 14384 s%@dll_ldo@%$dll_ldo%g
13419 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g 14389 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13420 s%@PROGNAME@%$PROGNAME%g 14390 s%@PROGNAME@%$PROGNAME%g
13421 s%@version@%$version%g 14391 s%@version@%$version%g
13422 s%@configuration@%$configuration%g 14392 s%@configuration@%$configuration%g
13423 s%@canonical@%$canonical%g 14393 s%@canonical@%$canonical%g
14394 s%@inststaticdir@%$inststaticdir%g
14395 s%@instvardir@%$instvardir%g
13424 s%@srcdir@%$srcdir%g 14396 s%@srcdir@%$srcdir%g
13425 s%@pkgdir@%$pkgdir%g 14397 s%@pkgdir@%$pkgdir%g
13426 s%@statedir@%$statedir%g 14398 s%@statedir@%$statedir%g
14399 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
13427 s%@PREFIX@%$PREFIX%g 14400 s%@PREFIX@%$PREFIX%g
14401 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
13428 s%@EXEC_PREFIX@%$EXEC_PREFIX%g 14402 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
13429 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g 14403 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
13430 s%@INFODIR@%$INFODIR%g 14404 s%@INFODIR@%$INFODIR%g
13431 s%@infopath@%$infopath%g 14405 s%@infopath@%$infopath%g
13432 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g 14406 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
13450 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g 14424 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
13451 s%@ETCDIR@%$ETCDIR%g 14425 s%@ETCDIR@%$ETCDIR%g
13452 s%@lockdir@%$lockdir%g 14426 s%@lockdir@%$lockdir%g
13453 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g 14427 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
13454 s%@LOCKDIR@%$LOCKDIR%g 14428 s%@LOCKDIR@%$LOCKDIR%g
14429 s%@docdir@%$docdir%g
14430 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
14431 s%@DOCDIR@%$DOCDIR%g
13455 s%@archlibdir@%$archlibdir%g 14432 s%@archlibdir@%$archlibdir%g
13456 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g 14433 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
13457 s%@ARCHLIBDIR@%$ARCHLIBDIR%g 14434 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
13458 s%@docdir@%$docdir%g
13459 s%@bitmapdir@%$bitmapdir%g 14435 s%@bitmapdir@%$bitmapdir%g
13460 s%@extra_objs@%$extra_objs%g 14436 s%@extra_objs@%$extra_objs%g
13461 s%@machfile@%$machfile%g 14437 s%@machfile@%$machfile%g
13462 s%@opsysfile@%$opsysfile%g 14438 s%@opsysfile@%$opsysfile%g
13463 s%@c_switch_general@%$c_switch_general%g 14439 s%@c_switch_general@%$c_switch_general%g