Mercurial > hg > xemacs-beta
comparison configure.in @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children | da8ed4261e83 |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
12 ### Don't edit this script! | 12 ### Don't edit this script! |
13 ### This script was automatically generated by the `autoconf' program | 13 ### This script was automatically generated by the `autoconf' program |
14 ### from the file `./configure.in'. | 14 ### from the file `./configure.in'. |
15 ### To rebuild it, execute the command | 15 ### To rebuild it, execute the command |
16 ### autoconf | 16 ### autoconf |
17 ### in the this directory. You must have autoconf version 2.13 or later. | 17 ### in the this directory. You must have autoconf version 2.12 or later. |
18 | 18 |
19 ### This file is part of XEmacs. | 19 ### This file is part of XEmacs. |
20 | 20 |
21 ### XEmacs is free software; you can redistribute it and/or modify it | 21 ### XEmacs is free software; you can redistribute it and/or modify it |
22 ### under the terms of the GNU General Public License as published by | 22 ### under the terms of the GNU General Public License as published by |
48 dnl configuration code and autoconf macros. | 48 dnl configuration code and autoconf macros. |
49 | 49 |
50 dnl We use the m4 quoting characters [ ] (as established by the | 50 dnl We use the m4 quoting characters [ ] (as established by the |
51 dnl autoconf system), so quote them like this: [[foo]] | 51 dnl autoconf system), so quote them like this: [[foo]] |
52 | 52 |
53 AC_PREREQ(2.13)dnl | 53 AC_PREREQ(2.12)dnl |
54 dnl Redefine some standard autoconf macros | 54 dnl Redefine some standard autoconf macros |
55 dnl here is how XEmacs is different: | 55 dnl here is how XEmacs is different: |
56 dnl - no cache file | 56 dnl - no cache file |
57 dnl - non-standard options | 57 dnl - non-standard options |
58 dnl - suport for extra-verbosity | 58 dnl - suport for extra-verbosity |
305 mandir='${prefix}/man' | 305 mandir='${prefix}/man' |
306 | 306 |
307 dnl Initialize some other variables. | 307 dnl Initialize some other variables. |
308 subdirs= | 308 subdirs= |
309 MFLAGS= MAKEFLAGS= | 309 MFLAGS= MAKEFLAGS= |
310 SHELL=${CONFIG_SHELL-/bin/sh} | |
311 dnl Maximum number of lines to put in a shell here document. | 310 dnl Maximum number of lines to put in a shell here document. |
312 ac_max_here_lines=12 | 311 ac_max_here_lines=12 |
313 ])dnl AC_INIT_PARSE_ARGS | 312 ])dnl AC_INIT_PARSE_ARGS |
314 | 313 |
315 AC_INIT(src/lisp.h)dnl | 314 AC_INIT(src/lisp.h)dnl |
344 dnl libexecdir='${exec_prefix}/libexec' | 343 dnl libexecdir='${exec_prefix}/libexec' |
345 datadir='${prefix}/lib' | 344 datadir='${prefix}/lib' |
346 statedir='${prefix}/lib' | 345 statedir='${prefix}/lib' |
347 libdir='${exec_prefix}/lib' | 346 libdir='${exec_prefix}/lib' |
348 mandir='${prefix}/man/man1' | 347 mandir='${prefix}/man/man1' |
349 inststaticdir='${PROGNAME}' | 348 infodir='${datadir}/${PROGNAME}-${version}/info' |
350 instvardir='${PROGNAME}-${version}' | |
351 infodir='${datadir}/${instvardir}/info' | |
352 infopath='' | 349 infopath='' |
353 install_pp='' | 350 install_pp='' |
354 lispdir='${datadir}/${instvardir}/lisp' | 351 lispdir='${datadir}/${PROGNAME}-${version}/lisp' |
355 moduledir='${datadir}/${instvardir}/${configuration}/modules' | 352 moduledir='${datadir}/${PROGNAME}-${version}/${configuration}/modules' |
356 sitelispdir='${datadir}/${inststaticdir}/site-lisp' | 353 sitelispdir='${datadir}/xemacs/site-lisp' |
357 sitemoduledir='${datadir}/${inststaticdir}/site-modules' | 354 sitemoduledir='${datadir}/xemacs/site-modules' |
358 pkgdir='${datadir}/${instvardir}/lisp' | 355 pkgdir='${datadir}/${PROGNAME}-${version}/lisp' |
359 package_path='' | 356 package_path='' |
360 etcdir='${datadir}/${instvardir}/etc' | 357 etcdir='${datadir}/${PROGNAME}-${version}/etc' |
361 archlibdir='${datadir}/${instvardir}/${configuration}' | 358 lockdir='${statedir}/${PROGNAME}/lock' |
362 docdir='${archlibdir}' | 359 archlibdir='${datadir}/${PROGNAME}-${version}/${configuration}' |
363 with_prefix='yes' | |
364 with_site_lisp='no' | 360 with_site_lisp='no' |
365 with_site_modules='yes' | 361 with_site_modules='yes' |
366 with_menubars='' | 362 with_menubars='' |
367 with_scrollbars='' | 363 with_scrollbars='' |
368 with_widgets='' | |
369 with_dialogs='' | 364 with_dialogs='' |
370 with_file_coding='' | 365 with_file_coding='' |
366 dnl const_is_losing is removed - we rely on AC_C_CONST instead. | |
367 dnl We accept (and ignore) the --const-is-losing option for compatibility. | |
368 dnl const_is_losing='yes' | |
371 cpp='' cppflags='' libs='' ldflags='' | 369 cpp='' cppflags='' libs='' ldflags='' |
372 dynamic='' | 370 dynamic='' |
373 with_x11='' | 371 with_x11='' |
374 with_msw='' | 372 with_msw='' |
375 rel_alloc='default' | 373 rel_alloc='default' |
383 dnl the following is set to yes or no later. | 381 dnl the following is set to yes or no later. |
384 with_toolbars="" | 382 with_toolbars="" |
385 with_tty="" | 383 with_tty="" |
386 use_union_type="no" | 384 use_union_type="no" |
387 with_dnet="" | 385 with_dnet="" |
388 pdump="no" | |
389 dnl dragndrop is still experimental. When it is stable, comment out the following line: | |
390 with_dragndrop="no" | |
391 | 386 |
392 dnl ------------------ | 387 dnl ------------------ |
393 dnl Options Processing | 388 dnl Options Processing |
394 dnl ------------------ | 389 dnl ------------------ |
395 | 390 |
466 dnl Process the option. | 461 dnl Process the option. |
467 case "$opt" in | 462 case "$opt" in |
468 | 463 |
469 dnl Process (many) boolean options | 464 dnl Process (many) boolean options |
470 with_site_lisp | \ | 465 with_site_lisp | \ |
471 with_prefix | \ | 466 with_site_modules | \ |
472 with_site_modules | \ | |
473 with_x | \ | 467 with_x | \ |
474 with_x11 | \ | 468 with_x11 | \ |
475 with_msw | \ | 469 with_msw | \ |
476 with_gcc | \ | 470 with_gcc | \ |
477 dynamic | \ | 471 dynamic | \ |
486 with_xface | \ | 480 with_xface | \ |
487 with_gif | \ | 481 with_gif | \ |
488 with_jpeg | \ | 482 with_jpeg | \ |
489 with_png | \ | 483 with_png | \ |
490 with_tiff | \ | 484 with_tiff | \ |
491 with_wmcommand | \ | 485 with_session | \ |
492 with_xmu | \ | 486 with_xmu | \ |
493 with_purify | \ | 487 with_purify | \ |
494 with_quantify | \ | 488 with_quantify | \ |
495 with_toolbars | \ | 489 with_toolbars | \ |
496 with_tty | \ | 490 with_tty | \ |
503 with_wnn6 | \ | 497 with_wnn6 | \ |
504 with_workshop | \ | 498 with_workshop | \ |
505 with_sparcworks | \ | 499 with_sparcworks | \ |
506 with_tooltalk | \ | 500 with_tooltalk | \ |
507 with_ldap | \ | 501 with_ldap | \ |
508 with_postgresql | \ | |
509 with_pop | \ | 502 with_pop | \ |
510 with_kerberos | \ | 503 with_kerberos | \ |
511 with_hesiod | \ | 504 with_hesiod | \ |
512 with_dnet | \ | 505 with_dnet | \ |
513 with_infodock | \ | 506 with_infodock | \ |
514 external_widget | \ | 507 external_widget | \ |
515 verbose | \ | 508 verbose | \ |
516 extra_verbose | \ | 509 extra_verbose | \ |
510 const_is_losing | \ | |
517 usage_tracking | \ | 511 usage_tracking | \ |
518 use_union_type | \ | 512 use_union_type | \ |
519 pdump | \ | |
520 debug | \ | 513 debug | \ |
521 use_assertions | \ | 514 use_assertions | \ |
522 memory_usage_stats | \ | 515 memory_usage_stats | \ |
523 with_clash_detection | \ | 516 with_clash_detection | \ |
524 with_modules | \ | 517 with_shlib | \ |
525 quick_build ) | 518 no_doc_file ) |
526 dnl Make sure the value given was either "yes" or "no". | 519 dnl Make sure the value given was either "yes" or "no". |
527 case "$val" in | 520 case "$val" in |
528 y | ye | yes ) val=yes ;; | 521 y | ye | yes ) val=yes ;; |
529 n | no ) val=no ;; | 522 n | no ) val=no ;; |
530 * ) USAGE_ERROR("The \`--$optname' option requires a boolean value: \`yes' or \`no'.") ;; | 523 * ) USAGE_ERROR("The \`--$optname' option requires a boolean value: \`yes' or \`no'.") ;; |
579 | 572 |
580 dnl Has the user requested database support? | 573 dnl Has the user requested database support? |
581 "with_database" ) | 574 "with_database" ) |
582 with_database_berkdb=no | 575 with_database_berkdb=no |
583 with_database_dbm=no | 576 with_database_dbm=no |
584 with_database_gdbm=no | 577 with_database_gnudbm=no |
585 for x in `echo "$val" | sed -e 's/,/ /g'` ; do | 578 for x in `echo "$val" | sed -e 's/,/ /g'` ; do |
586 case "$x" in | 579 case "$x" in |
587 no ) ;; | 580 no ) ;; |
588 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; | 581 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; |
589 d | db | dbm ) with_database_dbm=yes ;; | 582 d | db | dbm ) with_database_dbm=yes ;; |
590 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;; | 583 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; |
591 * ) USAGE_ERROR(["The \`--$optname' option value | 584 * ) USAGE_ERROR(["The \`--$optname' option value |
592 must be either \`no' or a comma-separated list | 585 must be either \`no' or a comma-separated list |
593 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."]) ;; | 586 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."]) ;; |
594 esac | 587 esac |
595 done | 588 done |
596 if test "$with_database_dbm" = "yes" -a \ | 589 if test "$with_database_dbm" = "yes" -a \ |
597 "$with_database_gdbm" = "yes"; then | 590 "$with_database_gnudbm" = "yes"; then |
598 USAGE_ERROR("Only one of \`dbm' and \`gnudbm' may be specified | 591 USAGE_ERROR("Only one of \`dbm' and \`gnudbm' may be specified |
599 with the \`--$optname' option.") | 592 with the \`--$optname' option.") |
600 fi | 593 fi |
601 ;; | 594 ;; |
602 | 595 |
603 dnl Has the user requested sound support? | 596 dnl Has the user requested sound support? |
604 "with_sound" ) | 597 "with_sound" ) |
605 dnl values is a subset of all,native,nas,esd | 598 dnl value can be native, nas or both. yes is allowed |
606 dnl or their negatives: none,nonative,nonas,noesd | 599 dnl as a backwards compatible synonym for native |
607 for x in `echo "$val" | sed -e 's/,/ /g'` ; do | |
608 case "$x" in | |
609 dnl all and none are only permitted as the first in the list. | |
610 n | no | non | none ) new_sdefault=no ;; | |
611 a | al | all | both ) new_sdefault=yes ;; | |
612 | |
613 native ) with_native_sound=yes ;; | |
614 nonative ) with_native_sound=no ;; | |
615 | |
616 nas ) with_nas_sound=yes ;; | |
617 nonas ) with_nas_sound=no ;; | |
618 | |
619 esd ) with_esd_sound=yes ;; | |
620 noesd ) with_esd_sound=no ;; | |
621 | |
622 * ) bogus_sound=yes ;; | |
623 esac | |
624 if test "$bogus_sound" -o \ | |
625 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then | |
626 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'." | |
627 USAGE_ERROR(["Valid types for the \`--$optname' option are: | |
628 $types. | |
629 The default is to autodetect all sound support."]) | |
630 elif test -n "$new_sdefault" ; then | |
631 with_native_sound=$new_sdefault | |
632 with_nas_sound=$new_sdefault | |
633 with_esd_sound=$new_sdefault | |
634 new_sdefault= # reset this | |
635 fi | |
636 sound_notfirst=true | |
637 done | |
638 ;; | |
639 | |
640 dnl Has the user specified a prefered Athena widget set? | |
641 dnl This bit expands any alias names out for us... | |
642 "with_athena" ) | |
643 case "$val" in | 600 case "$val" in |
644 xa | xaw ) val=xaw ;; | 601 y | ye | yes ) val=native ;; |
645 3 | 3d | xaw3d ) val=3d ;; | 602 n | no | non | none ) val=no;; |
646 dnl No `n' for next, someone may try `no' | 603 na | nat | nati | nativ | native ) val=native ;; |
647 ne | nex | next | naxtaw) val=next ;; | 604 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;; |
648 dnl Have not tested the next two... | 605 b | bo | bot | both ) val=both;; |
649 9 | 95 | xaw95 ) val=95 ;; | |
650 xp | xpm | xawxpm ) val=xpm ;; | |
651 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: | 606 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: |
652 \`xaw', \`3d', \`next', \`95', or \`xpm'."]) ;; | 607 \`native', \`nas', \`both', or \`none'."]) ;; |
653 esac | 608 esac |
654 eval "$opt=\"$val\"" | 609 eval "$opt=\"$val\"" |
655 ;; | 610 ;; |
656 | 611 |
657 dnl Has the user requested XIM support? | 612 dnl Has the user requested XIM support? |
670 dnl Mail locking specification | 625 dnl Mail locking specification |
671 "mail_locking" ) | 626 "mail_locking" ) |
672 case "$val" in | 627 case "$val" in |
673 lockf ) val=lockf ;; | 628 lockf ) val=lockf ;; |
674 flock ) val=flock ;; | 629 flock ) val=flock ;; |
675 file | dot ) val=file ;; | 630 file ) val=file ;; |
676 locking ) val=locking ;; | |
677 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: | 631 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: |
678 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."]) ;; | 632 \`lockf', \`flock', or \`file'."]) ;; |
679 esac | 633 esac |
680 eval "$opt=\"$val\"" | 634 eval "$opt=\"$val\"" |
681 ;; | 635 ;; |
682 | 636 |
683 dnl Has the user requested error-checking? | 637 dnl Has the user requested error-checking? |
705 nogc ) error_check_gc=no ;; | 659 nogc ) error_check_gc=no ;; |
706 | 660 |
707 malloc ) error_check_malloc=yes ;; | 661 malloc ) error_check_malloc=yes ;; |
708 nomalloc ) error_check_malloc=no ;; | 662 nomalloc ) error_check_malloc=no ;; |
709 | 663 |
710 byte_code ) error_check_byte_code=yes ;; | |
711 nobyte_code ) error_check_byte_code=no ;; | |
712 | |
713 glyphs ) error_check_glyphs=yes ;; | |
714 noglyphs ) error_check_glyphs=no ;; | |
715 | |
716 * ) bogus_error_check=yes ;; | 664 * ) bogus_error_check=yes ;; |
717 esac | 665 esac |
718 if test "$bogus_error_check" -o \ | 666 if test "$bogus_error_check" -o \ |
719 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then | 667 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then |
720 if test "$error_check_default" = yes ; then | 668 if test "$error_check_default" = yes ; then |
721 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'." | 669 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'." |
722 else | 670 else |
723 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'." | 671 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'." |
724 fi | 672 fi |
725 USAGE_ERROR(["Valid types for the \`--$optname' option are: | 673 USAGE_ERROR(["Valid types for the \`--$optname' option are: |
726 $types."]) | 674 $types."]) |
727 elif test -n "$new_default" ; then | 675 elif test -n "$new_default" ; then |
728 error_check_extents=$new_default | 676 error_check_extents=$new_default |
729 error_check_typecheck=$new_default | 677 error_check_typecheck=$new_default |
730 error_check_bufpos=$new_default | 678 error_check_bufpos=$new_default |
731 error_check_gc=$new_default | 679 error_check_gc=$new_default |
732 error_check_malloc=$new_default | 680 error_check_malloc=$new_default |
733 error_check_byte_code=$new_default | |
734 error_check_glyphs=$new_default | |
735 new_default= # reset this | 681 new_default= # reset this |
736 fi | 682 fi |
737 echeck_notfirst=true | 683 echeck_notfirst=true |
738 done | 684 done |
739 ;; | 685 ;; |
743 dnl testers, at large sites, have said they have their X files | 689 dnl testers, at large sites, have said they have their X files |
744 dnl installed in odd places. | 690 dnl installed in odd places. |
745 | 691 |
746 dnl Has the user specified one of the path options? | 692 dnl Has the user specified one of the path options? |
747 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ | 693 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ |
748 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \ | 694 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \ |
749 archlibdir | docdir | package_path ) | 695 archlibdir | docdir | package_path ) |
750 dnl If the value was omitted, get it from the next argument. | 696 dnl If the value was omitted, get it from the next argument. |
751 if test "$valomitted" = "yes"; then | 697 if test "$valomitted" = "yes"; then |
752 if test "$#" = 0; then | 698 if test "$#" = 0; then |
753 USAGE_ERROR("The \`--$optname' option requires a value."); | 699 USAGE_ERROR("The \`--$optname' option requires a value."); |
757 eval "$opt=\"$val\"" | 703 eval "$opt=\"$val\"" |
758 | 704 |
759 dnl You need to synchronize this with the way the | 705 dnl You need to synchronize this with the way the |
760 dnl default values are built. | 706 dnl default values are built. |
761 case "$opt" in | 707 case "$opt" in |
762 dnl prefix is taken care of by --with-prefix | |
763 exec_prefix ) AC_DEFINE(EXEC_PREFIX_USER_DEFINED) ;; | |
764 lispdir ) AC_DEFINE(LISPDIR_USER_DEFINED) ;; | 708 lispdir ) AC_DEFINE(LISPDIR_USER_DEFINED) ;; |
765 sitelispdir ) AC_DEFINE(SITELISPDIR_USER_DEFINED) ;; | 709 sitelispdir ) AC_DEFINE(SITELISPDIR_USER_DEFINED) ;; |
766 moduledir ) AC_DEFINE(MODULEDIR_USER_DEFINED) ;; | 710 moduledir ) AC_DEFINE(MODULEDIR_USER_DEFINED) ;; |
767 etcdir ) AC_DEFINE(ETCDIR_USER_DEFINED) ;; | 711 etcdir ) AC_DEFINE(ETCDIR_USER_DEFINED) ;; |
768 infodir ) AC_DEFINE(INFODIR_USER_DEFINED) ;; | 712 infodir ) AC_DEFINE(INFODIR_USER_DEFINED) ;; |
771 datadir ) | 715 datadir ) |
772 AC_DEFINE(INFODIR_USER_DEFINED) | 716 AC_DEFINE(INFODIR_USER_DEFINED) |
773 AC_DEFINE(LISPDIR_USER_DEFINED) | 717 AC_DEFINE(LISPDIR_USER_DEFINED) |
774 AC_DEFINE(MODULEDIR_USER_DEFINED) | 718 AC_DEFINE(MODULEDIR_USER_DEFINED) |
775 AC_DEFINE(ETCDIR_USER_DEFINED) ;; | 719 AC_DEFINE(ETCDIR_USER_DEFINED) ;; |
776 docdir ) AC_DEFINE(DOCDIR_USER_DEFINED) ;; | 720 statedir | lockdir ) AC_DEFINE(LOCKDIR_USER_DEFINED) ;; |
777 exec_prefix | libdir | archlibdir ) AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;; | 721 exec_prefix | libdir | archlibdir ) AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;; |
778 esac | 722 esac |
779 ;; | 723 ;; |
780 | 724 |
781 dnl --no-create added by autoconf for use by config.status | 725 dnl --no-create added by autoconf for use by config.status |
785 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;; | 729 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;; |
786 | 730 |
787 dnl Has the user specified the toolkit(s) to use for GUI elements? | 731 dnl Has the user specified the toolkit(s) to use for GUI elements? |
788 "with_menubars" | \ | 732 "with_menubars" | \ |
789 "with_scrollbars" | \ | 733 "with_scrollbars" | \ |
790 "with_dialogs" | \ | 734 "with_dialogs" ) |
791 "with_widgets" ) | |
792 case "$val" in | 735 case "$val" in |
793 l | lu | luc | luci | lucid ) val=lucid ;; | 736 l | lu | luc | luci | lucid ) val=lucid ;; |
794 m | mo | mot | moti | motif ) val=motif ;; | 737 m | mo | mot | moti | motif ) val=motif ;; |
738 athena3d | athena-3d ) val=athena3d ;; | |
795 a | at | ath | athe | athen | athena ) val=athena ;; | 739 a | at | ath | athe | athen | athena ) val=athena ;; |
796 n | no | non | none ) val=no ;; | 740 n | no | non | none ) val=no ;; |
797 y | ye | yes ) val=yes ;; | |
798 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: | 741 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: |
799 \`lucid', \`motif', \`athena', \`yes', or \`no'."]) ;; | 742 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."]) ;; |
800 esac | 743 esac |
801 eval "$opt=\"$val\"" | 744 eval "$opt=\"$val\"" |
802 ;; | 745 ;; |
803 | 746 |
804 dnl Obsolete legacy argument? Warn, but otherwise ignore. | 747 dnl Obsolete legacy argument? Warn, but otherwise ignore. |
805 "use_minimal_tagbits" | \ | |
806 "use_indexed_lrecord_implementation" | \ | |
807 "run_in_place" | \ | 748 "run_in_place" | \ |
808 "const_is_losing" | \ | |
809 "with_gnu_make" ) | 749 "with_gnu_make" ) |
810 AC_MSG_WARN([Obsolete option \`--$optname' ignored.]) | 750 AC_MSG_WARN([Obsolete option \`--$optname' ignored.]) |
811 ;; | 751 ;; |
812 | 752 |
813 dnl Unrecognized option? No mercy for user errors. | 753 dnl Unrecognized option? No mercy for user errors. |
909 dnl Make symlinks for etc, lisp, and info directories while the path | 849 dnl Make symlinks for etc, lisp, and info directories while the path |
910 dnl is still relative. We do not symlink lock because someone may | 850 dnl is still relative. We do not symlink lock because someone may |
911 dnl have stuck the source on a read-only partition. Instead we | 851 dnl have stuck the source on a read-only partition. Instead we |
912 dnl create it as an actual directory later on if it does not already | 852 dnl create it as an actual directory later on if it does not already |
913 dnl exist. | 853 dnl exist. |
914 for dir in lisp etc man info tests; do | 854 for dir in lisp etc man info; do |
915 if test ! -d "$dir" ; then | 855 if test ! -d "$dir" ; then |
916 echo Making symbolic link to "$srcdir/$dir" | 856 echo Making symbolic link to "$srcdir/$dir" |
917 ${LN_S} "$srcdir/$dir" "$dir" | 857 ${LN_S} "$srcdir/$dir" "$dir" |
918 fi | 858 fi |
919 done | 859 done |
967 dnl ---------------------------------------- | 907 dnl ---------------------------------------- |
968 dnl Find out which version of XEmacs this is | 908 dnl Find out which version of XEmacs this is |
969 dnl ---------------------------------------- | 909 dnl ---------------------------------------- |
970 . "$srcdir/version.sh" || exit 1; | 910 . "$srcdir/version.sh" || exit 1; |
971 dnl Must do the following first to determine verbosity for AC_DEFINE | 911 dnl Must do the following first to determine verbosity for AC_DEFINE |
972 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi | 912 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi |
973 : "${extra_verbose=$beta}" | 913 : "${extra_verbose=$beta}" |
974 version="${emacs_major_version}.${emacs_minor_version}" | 914 version="${emacs_major_version}.${emacs_minor_version}" |
975 AC_DEFINE_UNQUOTED(EMACS_MAJOR_VERSION, $emacs_major_version) | 915 AC_DEFINE_UNQUOTED(EMACS_MAJOR_VERSION, $emacs_major_version) |
976 AC_DEFINE_UNQUOTED(EMACS_MINOR_VERSION, $emacs_minor_version) | 916 AC_DEFINE_UNQUOTED(EMACS_MINOR_VERSION, $emacs_minor_version) |
977 if test -n "$emacs_beta_version" ; then | 917 if test -n "$emacs_beta_version"; then |
978 if test "$beta" = "yes"; then | 918 version="${version}-b${emacs_beta_version}" |
979 version="${version}-b${emacs_beta_version}" | 919 AC_DEFINE_UNQUOTED(EMACS_BETA_VERSION, $emacs_beta_version) |
980 AC_DEFINE_UNQUOTED(EMACS_BETA_VERSION, $emacs_beta_version) | |
981 else | |
982 version="${version}.${emacs_beta_version}" | |
983 AC_DEFINE_UNQUOTED(EMACS_PATCH_LEVEL, $emacs_beta_version) | |
984 fi | |
985 fi | 920 fi |
986 AC_DEFINE_UNQUOTED(XEMACS_CODENAME, "$xemacs_codename") | 921 AC_DEFINE_UNQUOTED(XEMACS_CODENAME, "$xemacs_codename") |
987 AC_DEFINE_UNQUOTED(EMACS_VERSION, "$version") | 922 AC_DEFINE_UNQUOTED(EMACS_VERSION, "$version") |
988 | 923 |
989 if test "$with_infodock" = "yes"; then | 924 if test "$with_infodock" = "yes"; then |
990 if test ! -f ../../ID-INSTALL; then | 925 if test ! -f ../ID-INSTALL; then |
991 echo "Cannot build InfoDock without InfoDock sources" | 926 echo "Cannot build InfoDock without InfoDock sources" |
992 with_infodock=no | 927 with_infodock=no |
993 fi | 928 fi |
994 fi | 929 fi |
995 | 930 |
1004 CPPFLAGS="$CPPFLAGS -DINFODOCK" | 939 CPPFLAGS="$CPPFLAGS -DINFODOCK" |
1005 else | 940 else |
1006 PROGNAME=xemacs | 941 PROGNAME=xemacs |
1007 fi | 942 fi |
1008 | 943 |
1009 AC_DEFINE_UNQUOTED(EMACS_PROGNAME, "$PROGNAME") | |
1010 | |
1011 dnl ---------------------------------- | 944 dnl ---------------------------------- |
1012 dnl Error checking and debugging flags | 945 dnl Error checking and debugging flags |
1013 dnl ---------------------------------- | 946 dnl ---------------------------------- |
1014 dnl Error checking default to "yes" in beta versions, to "no" in releases. | 947 dnl Error checking default to "yes" in beta versions, to "no" in releases. |
1015 dnl Same goes for --debug and --extra-verbosity. | 948 dnl Same goes for --debug and --extra-verbosity. |
1016 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi | 949 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi |
1017 test "${error_check_extents=$beta}" = yes && AC_DEFINE(ERROR_CHECK_EXTENTS) | 950 test "${error_check_extents=$beta}" = yes && AC_DEFINE(ERROR_CHECK_EXTENTS) |
1018 test "${error_check_typecheck=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPECHECK) | 951 test "${error_check_typecheck=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPECHECK) |
1019 test "${error_check_bufpos=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BUFPOS) | 952 test "${error_check_bufpos=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BUFPOS) |
1020 test "${error_check_gc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC) | 953 test "${error_check_gc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC) |
1021 test "${error_check_malloc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC) | 954 test "${error_check_malloc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC) |
1022 test "${error_check_byte_code=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BYTE_CODE) | |
1023 test "${error_check_glyphs=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GLYPHS) | |
1024 dnl debug=yes must be set when error checking is present. This should be | 955 dnl debug=yes must be set when error checking is present. This should be |
1025 dnl fixed up. | 956 dnl fixed up. |
1026 dnl debug implies other options | 957 dnl debug implies other options |
1027 if test "${debug:=$beta}" = "yes"; then | 958 if test "${debug:=$beta}" = "yes"; then |
1028 use_assertions=yes memory_usage_stats=yes | 959 use_assertions=yes memory_usage_stats=yes |
1029 XE_ADD_OBJS(debug.o) | 960 XE_ADD_OBJS(debug.o) |
1030 XE_ADD_OBJS(tests.o) | |
1031 AC_DEFINE(DEBUG_XEMACS) | 961 AC_DEFINE(DEBUG_XEMACS) |
1032 fi | 962 fi |
1033 test "$use_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS) | 963 test "$use_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS) |
1034 test "$memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS) | 964 test "$memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS) |
1035 | 965 |
1077 case "$canonical" in | 1007 case "$canonical" in |
1078 sparc-*-* ) machine=sparc ;; | 1008 sparc-*-* ) machine=sparc ;; |
1079 alpha*-*-* ) machine=alpha ;; | 1009 alpha*-*-* ) machine=alpha ;; |
1080 vax-*-* ) machine=vax ;; | 1010 vax-*-* ) machine=vax ;; |
1081 mips-dec-* ) machine=pmax ;; | 1011 mips-dec-* ) machine=pmax ;; |
1082 mips-sgi-irix6* ) machine=iris6d ;; | |
1083 mips-sgi-* ) machine=iris4d ;; | 1012 mips-sgi-* ) machine=iris4d ;; |
1084 mips*-linux ) machine=mips ;; | |
1085 romp-ibm-* ) machine=ibmrt ;; | 1013 romp-ibm-* ) machine=ibmrt ;; |
1086 rs6000-ibm-aix* ) machine=ibmrs6000 ;; | 1014 rs6000-ibm-aix* ) machine=ibmrs6000 ;; |
1087 powerpc-ibm-aix* ) machine=ibmrs6000 ;; | 1015 powerpc-ibm-aix* ) machine=ibmrs6000 ;; |
1088 powerpc*-* ) machine=powerpc ;; | 1016 powerpc*-* ) machine=powerpc ;; |
1089 hppa-*-* ) machine=hp800 ;; | 1017 hppa-*-* ) machine=hp800 ;; |
1090 m88k-dg-* ) machine=aviion ;; | 1018 m88k-dg-* ) machine=aviion ;; |
1091 m68*-sony-* ) machine=news ;; | 1019 m68*-sony-* ) machine=news ;; |
1092 mips-sony-* ) machine=news-risc ;; | 1020 mips-sony-* ) machine=news-risc ;; |
1093 clipper-* ) machine=clipper ;; | 1021 clipper-* ) machine=clipper ;; |
1094 arm* ) machine=arm ;; | 1022 arm-* ) machine=arm ;; |
1095 ns32k-* ) machine=ns32000 ;; | 1023 ns32k-* ) machine=ns32000 ;; |
1096 s390-* ) machine=s390 ;; | |
1097 esac | 1024 esac |
1098 | 1025 |
1099 dnl Straightforward OS determination | 1026 dnl Straightforward OS determination |
1100 case "$canonical" in | 1027 case "$canonical" in |
1101 *-*-linux* ) opsys=linux ;; | 1028 *-*-linux* ) opsys=linux ;; |
1534 if test "$dynamic" = "yes" ; then | 1461 if test "$dynamic" = "yes" ; then |
1535 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ; | 1462 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ; |
1536 else | 1463 else |
1537 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; | 1464 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; |
1538 fi ;; | 1465 fi ;; |
1539 *-sysv5* ) opsys=sco7 ;; | |
1540 *-386bsd* ) opsys=386bsd ;; | 1466 *-386bsd* ) opsys=386bsd ;; |
1541 *-freebsd* ) opsys=freebsd ;; | 1467 *-freebsd* ) opsys=freebsd ;; |
1542 *-nextstep* ) opsys=nextstep ;; | 1468 *-nextstep* ) opsys=nextstep ;; |
1543 *-pc-cygwin* ) opsys=cygwin32 ;; | 1469 *-pc-cygwin* ) opsys=cygwin32 ;; |
1544 *-pc-mingw* ) opsys=mingw32 ; | 1470 *-pc-mingw* ) opsys=mingw32 ; |
1600 if test "$with_workshop" = "yes"; then | 1526 if test "$with_workshop" = "yes"; then |
1601 AC_DEFINE(SUNPRO) | 1527 AC_DEFINE(SUNPRO) |
1602 XE_ADD_OBJS(sunpro.o) | 1528 XE_ADD_OBJS(sunpro.o) |
1603 fi | 1529 fi |
1604 | 1530 |
1605 if test "$with_clash_detection" != "no"; then | 1531 if test "$with_clash_detection" = "yes"; then |
1606 AC_DEFINE(CLASH_DETECTION) | 1532 AC_DEFINE(CLASH_DETECTION) |
1607 XE_ADD_OBJS(filelock.o) | 1533 XE_ADD_OBJS(filelock.o) |
1608 fi | 1534 fi |
1609 | 1535 |
1610 dnl Choose a compiler from (in order) | 1536 dnl Choose a compiler from (in order) |
1647 | 1573 |
1648 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" | 1574 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" |
1649 | 1575 |
1650 AC_PROG_CPP | 1576 AC_PROG_CPP |
1651 | 1577 |
1652 dnl -------------------------------------------------------------------- | 1578 AC_AIX |
1653 dnl Compiler feature macros | |
1654 dnl -------------------------------------------------------------------- | |
1655 | |
1656 AC_AIX dnl Defines _ALL_SOURCE on AIX. | |
1657 | |
1658 dnl We want feature macros defined here *and* in config.h.in, so that | |
1659 dnl the compilation environment at configure time and compile time agree. | |
1660 | 1579 |
1661 AC_MSG_CHECKING(for GNU libc) | 1580 AC_MSG_CHECKING(for GNU libc) |
1662 AC_TRY_COMPILE([#include <features.h>],[ | 1581 AC_TRY_COMPILE([#include <features.h>],[ |
1663 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) | 1582 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) |
1664 #error Not a GNU libc system :-( | 1583 #error Not a GNU libc system :-( |
1668 AC_MSG_RESULT($have_glibc) | 1587 AC_MSG_RESULT($have_glibc) |
1669 dnl I'm tired of pop being broken with GLIBC -slb | 1588 dnl I'm tired of pop being broken with GLIBC -slb |
1670 dnl Well. then why not fix fucking pop? | 1589 dnl Well. then why not fix fucking pop? |
1671 test "$have_glibc" = "yes" && AC_DEFINE(_GNU_SOURCE) | 1590 test "$have_glibc" = "yes" && AC_DEFINE(_GNU_SOURCE) |
1672 | 1591 |
1673 dnl We'd like to use vendor extensions, where available. | |
1674 dnl We'd like to use functions from the latest Unix98 standards. | |
1675 dnl See http://www.opengroup.org/onlinepubs/007908799/xsh/compilation.html | |
1676 case "$opsys" in | |
1677 sol2) | |
1678 AC_DEFINE(__EXTENSIONS__) | |
1679 dnl Solaris 2 before 2.5 had some bugs with feature test macro interaction. | |
1680 if test "$os_release" -ge 55; then | |
1681 AC_DEFINE(_XOPEN_SOURCE,500) | |
1682 AC_DEFINE(_XOPEN_SOURCE_EXTENDED) | |
1683 fi ;; | |
1684 linux) | |
1685 AC_DEFINE(_POSIX_C_SOURCE,199506L) | |
1686 AC_DEFINE(_XOPEN_SOURCE,500) | |
1687 AC_DEFINE(_XOPEN_SOURCE_EXTENDED) | |
1688 ;; | |
1689 esac | |
1690 | 1592 |
1691 dnl Identify compilers to enable compiler-specific hacks. | 1593 dnl Identify compilers to enable compiler-specific hacks. |
1692 dnl Add support for other compilers HERE! | 1594 dnl Add support for other compilers HERE! |
1693 dnl GCC is already identified elsewhere. | 1595 dnl GCC is already identified elsewhere. |
1694 AC_TRY_RUN([int main () { | 1596 AC_TRY_RUN([int main () { |
1765 | 1667 |
1766 CPP_to_sh(UNEXEC, unexec, unexec.o) | 1668 CPP_to_sh(UNEXEC, unexec, unexec.o) |
1767 | 1669 |
1768 CPP_to_sh(LD_SWITCH_SHARED, ld_switch_shared, -c) | 1670 CPP_to_sh(LD_SWITCH_SHARED, ld_switch_shared, -c) |
1769 | 1671 |
1770 #define ORDINARY_LD "\$(CC) \$(CFLAGS)" | |
1771 configure___ ordinary_ld=ORDINARY_LD | |
1772 | |
1773 #ifdef ORDINARY_LINK | 1672 #ifdef ORDINARY_LINK |
1774 #define LD ORDINARY_LD | 1673 #define LD "\$(CC) \$(CFLAGS)" |
1775 #else /* no ORDINARY LINK */ | 1674 #else /* no ORDINARY LINK */ |
1776 #ifdef COFF_ENCAPSULATE | 1675 #ifdef COFF_ENCAPSULATE |
1777 #define LD "\$(CC) -nostdlib" | 1676 #define LD "\$(CC) -nostdlib" |
1778 #else /* not COFF_ENCAPSULATE */ | 1677 #else /* not COFF_ENCAPSULATE */ |
1779 #ifdef LINKER | 1678 #ifdef LINKER |
1805 configure___ start_files=START_FILES | 1704 configure___ start_files=START_FILES |
1806 | 1705 |
1807 CPP_boolean_to_sh(ORDINARY_LINK, ordinary_link) | 1706 CPP_boolean_to_sh(ORDINARY_LINK, ordinary_link) |
1808 CPP_boolean_to_sh(SYSTEM_MALLOC, system_malloc) | 1707 CPP_boolean_to_sh(SYSTEM_MALLOC, system_malloc) |
1809 CPP_boolean_to_sh(TERMINFO, have_terminfo) | 1708 CPP_boolean_to_sh(TERMINFO, have_terminfo) |
1810 dnl The MAIL_USE_xxx variables come from the s&m headers | |
1811 CPP_boolean_to_sh(MAIL_USE_FLOCK, mail_use_flock) | 1709 CPP_boolean_to_sh(MAIL_USE_FLOCK, mail_use_flock) |
1812 CPP_boolean_to_sh(MAIL_USE_LOCKF, mail_use_lockf) | 1710 CPP_boolean_to_sh(MAIL_USE_LOCKF, mail_use_lockf) |
1813 CPP_boolean_to_sh(MAIL_USE_LOCKING, mail_use_locking) | |
1814 CPP_boolean_to_sh(HAVE_WIN32_PROCESSES, win32_processes) | 1711 CPP_boolean_to_sh(HAVE_WIN32_PROCESSES, win32_processes) |
1815 EOF | 1712 EOF |
1816 | 1713 |
1817 dnl The value of CPP is a quoted variable reference, so we need to do this | 1714 dnl The value of CPP is a quoted variable reference, so we need to do this |
1818 dnl to get its actual value... | 1715 dnl to get its actual value... |
1823 | sed -n -e "s/[ TAB]*=[ TAB\"]*/='/" -e "s/[ TAB\"]*\$/'/" -e "s/^configure___//p"` | 1720 | sed -n -e "s/[ TAB]*=[ TAB\"]*/='/" -e "s/[ TAB\"]*\$/'/" -e "s/^configure___//p"` |
1824 changequote([, ])dnl | 1721 changequote([, ])dnl |
1825 | 1722 |
1826 rm $tempcname | 1723 rm $tempcname |
1827 | 1724 |
1828 if test "$pdump" = "yes"; then | |
1829 ordinary_link="yes" | |
1830 ld="${ordinary_ld}" | |
1831 start_files= | |
1832 libs_standard= | |
1833 unexec= | |
1834 lib_gcc= | |
1835 fi | |
1836 | |
1837 dnl For debugging... | 1725 dnl For debugging... |
1838 test "$extra_verbose" = "yes" && \ | 1726 test "$extra_verbose" = "yes" && \ |
1839 PRINT_VAR(libs_machine libs_system libs_termcap libs_standard | 1727 PRINT_VAR(libs_machine libs_system libs_termcap libs_standard |
1840 objects_machine objects_system c_switch_machine c_switch_system | 1728 objects_machine objects_system c_switch_machine c_switch_system |
1841 ld_switch_machine ld_switch_system unexec ld_switch_shared | 1729 ld_switch_machine ld_switch_system unexec ld_switch_shared |
1842 ld lib_gcc ld_text_start_addr start_files ordinary_link | 1730 ld lib_gcc ld_text_start_addr start_files ordinary_link |
1843 have_terminfo mail_use_flock mail_use_lockf) && echo "" | 1731 have_terminfo mail_use_flock mail_use_lockf) && echo "" |
1844 | 1732 |
1845 dnl Pick up mingw32 include path | |
1846 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ; | |
1847 mingw_include=`eval "dirname $mingw_include"` ; | |
1848 mingw_include="-I$mingw_include/../include/mingw32" ; | |
1849 XE_APPEND($mingw_include, c_switch_system) ;; | |
1850 esac | |
1851 | |
1852 dnl Non-ordinary link usually requires -lc | 1733 dnl Non-ordinary link usually requires -lc |
1853 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" | 1734 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" |
1854 | 1735 |
1855 dnl Compiler-specific hacks | 1736 dnl Compiler-specific hacks |
1856 dnl DEC C `-std1' means ANSI C mode | 1737 dnl DEC C requires -std |
1857 test "$__DECC" = "yes" && XE_APPEND(-std1, c_switch_site) | 1738 test "$__DECC" = "yes" && XE_APPEND(-std, c_switch_site) |
1858 | 1739 |
1859 dnl Calculalate value of CFLAGS: | 1740 dnl Calculalate value of CFLAGS: |
1860 dnl Use either command line flag, environment var, or autodetection | 1741 dnl Use either command line flag, environment var, or autodetection |
1861 if test "$cflags_specified" = "no"; then | 1742 if test "$cflags_specified" = "no"; then |
1862 dnl Following values of CFLAGS are known to work well. | 1743 dnl Following values of CFLAGS are known to work well. |
1863 dnl Should we take debugging options into consideration? | 1744 dnl Should we take debugging options into consideration? |
1864 if test "$GCC" = "yes"; then | 1745 if test "$GCC" = "yes"; then |
1865 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow" | 1746 CFLAGS="-g -O3 -Wall -Wno-switch" |
1866 dnl I'm not convinced this is a good idea any more. -sb | 1747 dnl I'm not convinced this is a good idea any more. -sb |
1867 dnl test "$opsys $machine" = "linux intel386" && \ | 1748 dnl test "$opsys $machine" = "linux intel386" && \ |
1868 dnl CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2" | 1749 dnl CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2" |
1869 elif test "$__SUNPRO_C" = "yes"; then | 1750 elif test "$__SUNPRO_C" = "yes"; then |
1870 case "$opsys" in | 1751 case "$opsys" in |
1878 dnl ### Add optimal CFLAGS support for other compilers HERE! | 1759 dnl ### Add optimal CFLAGS support for other compilers HERE! |
1879 else | 1760 else |
1880 CFLAGS="-O" ;dnl The only POSIX-approved flag | 1761 CFLAGS="-O" ;dnl The only POSIX-approved flag |
1881 fi | 1762 fi |
1882 fi | 1763 fi |
1883 | |
1884 dnl Search for GCC specific build problems we know about | |
1885 if test "$GCC" = "yes"; then | |
1886 AC_MSG_CHECKING(for buggy gcc versions) | |
1887 GCC_VERSION=`$CC --version` | |
1888 case `uname -s`:`uname -m`:$GCC_VERSION in | |
1889 dnl egcs 2.90.21 (egcs-1.00 release) | |
1890 dnl egcs 2.90.29 (egcs-1.0.3 release) | |
1891 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) | |
1892 dnl Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures | |
1893 dnl without also using `-fno-schedule-insns'. | |
1894 case "$CFLAGS" in | |
1895 *-O2*|*-O3*) | |
1896 case "$CFLAGS" in | |
1897 *-fno-schedule-insns*) ;; | |
1898 *) | |
1899 AC_MSG_RESULT(Yes) | |
1900 AC_MSG_WARN(Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures) | |
1901 AC_MSG_WARN(without also using -fno-schedule-insns.) | |
1902 AC_MSG_ERROR(Aborting due to known problem) | |
1903 ;; | |
1904 esac | |
1905 ;; | |
1906 esac | |
1907 ;; | |
1908 dnl egcs-2.91.57 (egcs-1.1 release) | |
1909 dnl egcs-2.91.66 (egcs-1.1.2 release) | |
1910 Linux:alpha:egcs-2.91.*) | |
1911 AC_MSG_RESULT(Yes) | |
1912 AC_MSG_WARN(There have been reports of egcs-1.1 not compiling XEmacs correctly on) | |
1913 AC_MSG_WARN(Alpha Linux. There have also been reports that egcs-1.0.3a is O.K.) | |
1914 AC_MSG_ERROR(Aborting due to known problem) | |
1915 ;; | |
1916 *:i*86*:2.7.2*) | |
1917 case "$GCC_VERSION" in | |
1918 2.7.2) | |
1919 case "$CFLAGS" in | |
1920 *-O2*|*-O3*) | |
1921 case "$CFLAGS" in | |
1922 *-fno-strength-reduce*) ;; | |
1923 *) | |
1924 AC_MSG_RESULT(Yes) | |
1925 AC_MSG_WARN(Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using) | |
1926 AC_MSG_WARN(-fno-strength-reduce.) | |
1927 AC_MSG_ERROR(Aborting due to known problem) | |
1928 ;; | |
1929 esac | |
1930 ;; | |
1931 esac | |
1932 ;; | |
1933 esac | |
1934 case "$CFLAGS" in | |
1935 *-fno-caller-saves*) ;; | |
1936 *) | |
1937 AC_MSG_RESULT(Yes) | |
1938 AC_MSG_WARN(Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using) | |
1939 AC_MSG_WARN(-fno-caller-saves.) | |
1940 AC_MSG_ERROR(Aborting due to known problem) | |
1941 ;; | |
1942 esac | |
1943 ;; | |
1944 esac | |
1945 fi | |
1946 AC_MSG_RESULT(No) | |
1947 | 1764 |
1948 dnl Inform compiler that certain flags are meant for the linker | 1765 dnl Inform compiler that certain flags are meant for the linker |
1949 dnl XE_PROTECT_LINKER_FLAGS(shell_var) | 1766 dnl XE_PROTECT_LINKER_FLAGS(shell_var) |
1950 define([XE_PROTECT_LINKER_FLAGS], [ | 1767 define([XE_PROTECT_LINKER_FLAGS], [ |
1951 if test "$GCC" = "yes"; then | 1768 if test "$GCC" = "yes"; then |
1966 XE_PROTECT_LINKER_FLAGS(ld_call_shared) | 1783 XE_PROTECT_LINKER_FLAGS(ld_call_shared) |
1967 | 1784 |
1968 dnl Add s&m-determined objects (including unexec) to link line | 1785 dnl Add s&m-determined objects (including unexec) to link line |
1969 test -n "$objects_machine" && XE_ADD_OBJS($objects_machine) | 1786 test -n "$objects_machine" && XE_ADD_OBJS($objects_machine) |
1970 test -n "$objects_system" && XE_ADD_OBJS($objects_system) | 1787 test -n "$objects_system" && XE_ADD_OBJS($objects_system) |
1971 test -n "$unexec" && test ! "$pdump" = "yes" && XE_ADD_OBJS($unexec) | 1788 test -n "$unexec" && XE_ADD_OBJS($unexec) |
1972 test "$pdump" = "yes" && XE_ADD_OBJS(dumper.o) | |
1973 | 1789 |
1974 dnl Dynodump (Solaris 2.x, x<6) | 1790 dnl Dynodump (Solaris 2.x, x<6) |
1975 AC_MSG_CHECKING(for dynodump) | 1791 AC_MSG_CHECKING(for dynodump) |
1976 if test "$unexec" != "unexsol2.o"; then | 1792 if test "$unexec" != "unexsol2.o"; then |
1977 AC_MSG_RESULT(no) | 1793 AC_MSG_RESULT(no) |
2064 dnl Site prefixes take precedence over the standard places, but not over | 1880 dnl Site prefixes take precedence over the standard places, but not over |
2065 dnl site-includes and site-libraries. | 1881 dnl site-includes and site-libraries. |
2066 COLON_TO_SPACE(site_prefixes) | 1882 COLON_TO_SPACE(site_prefixes) |
2067 if test -n "$site_prefixes"; then | 1883 if test -n "$site_prefixes"; then |
2068 for dir in $site_prefixes; do | 1884 for dir in $site_prefixes; do |
1885 inc_dir="${dir}/include" | |
2069 lib_dir="${dir}/lib" | 1886 lib_dir="${dir}/lib" |
2070 inc_dir="${dir}/include" | |
2071 if test ! -d "$dir"; then | 1887 if test ! -d "$dir"; then |
2072 XE_DIE("Invalid site prefix \`$dir': no such directory") | 1888 XE_DIE("Invalid site prefix \`$dir': no such directory") |
1889 elif test ! -d "$inc_dir"; then | |
1890 XE_DIE("Invalid site prefix \`$dir': no such directory \`$inc_dir'") | |
2073 elif test ! -d "$lib_dir"; then | 1891 elif test ! -d "$lib_dir"; then |
2074 XE_DIE("Invalid site prefix \`$dir': no such directory \`$lib_dir'") | 1892 XE_DIE("Invalid site prefix \`$dir': no such directory \`$lib_dir'") |
2075 else | 1893 else |
2076 if test -d "$inc_dir"; then | 1894 XE_APPEND("-I$inc_dir", c_switch_site) |
2077 XE_APPEND("-I$inc_dir", c_switch_site) | |
2078 fi | |
2079 XE_APPEND("-L$lib_dir", ld_switch_site) | 1895 XE_APPEND("-L$lib_dir", ld_switch_site) |
2080 fi | 1896 fi |
2081 done | 1897 done |
2082 fi | 1898 fi |
2083 | 1899 |
2087 dnl XE_APPEND("-I/usr/local/include", c_switch_site) | 1903 dnl XE_APPEND("-I/usr/local/include", c_switch_site) |
2088 dnl fi | 1904 dnl fi |
2089 | 1905 |
2090 dnl Extra system-specific library directories - please add to list | 1906 dnl Extra system-specific library directories - please add to list |
2091 for dir in "/usr/ccs/lib"; do | 1907 for dir in "/usr/ccs/lib"; do |
2092 test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_system) | 1908 test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_site) |
2093 done | 1909 done |
2094 | 1910 |
2095 dnl --site-runtime-libraries (multiple dirs) | 1911 dnl --site-runtime-libraries (multiple dirs) |
2096 COLON_TO_SPACE(site_runtime_libraries) | 1912 COLON_TO_SPACE(site_runtime_libraries) |
2097 if test -n "$site_runtime_libraries"; then | 1913 if test -n "$site_runtime_libraries"; then |
2098 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`" | 1914 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`" |
2099 export LD_RUN_PATH | 1915 export LD_RUN_PATH |
2100 fi | 1916 fi |
2101 | 1917 |
2102 dnl Linux systems have dynamic runtime library directories listed in | |
2103 dnl /etc/ld.so.conf. Since those are used at run time, it seems pretty | |
2104 dnl safe to use them at link time, and less controversial than forcing | |
2105 dnl the run-time to use the link-time libraries. This also helps avoid | |
2106 dnl mismatches between the link-time and run-time libraries. | |
2107 | |
2108 dnl #### Unfortunately, there are horrible libc4 and libc5 libraries | |
2109 dnl listed in /etc/ld.so.conf on some systems, and including them on | |
2110 dnl the link path leads to linking in utterly broken libc's. | |
2111 dnl There are many clever ways of approaching this problem, | |
2112 dnl but finding out that actually works... | |
2113 | |
2114 dnl if test -z "$LD_RUN_PATH" -a -r "/etc/ld.so.conf"; then | |
2115 dnl for dir in `cat /etc/ld.so.conf`; do | |
2116 dnl test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_system) | |
2117 dnl done | |
2118 dnl add_runtime_path=no | |
2119 dnl fi | |
2120 | |
2121 dnl ------------------------------------- | 1918 dnl ------------------------------------- |
2122 dnl Compute runtime library path | 1919 dnl Compute runtime library path |
2123 dnl ------------------------------------- | 1920 dnl ------------------------------------- |
2124 | 1921 |
2125 if test -n "$add_runtime_path"; then :; | 1922 if test "$dynamic" = "no"; then add_runtime_path=no |
2126 elif test "$dynamic" = "no"; then add_runtime_path=no | |
2127 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes | 1923 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes |
2128 else case "$opsys" in | 1924 else case "$opsys" in |
2129 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;; | 1925 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;; |
2130 * ) add_runtime_path=no ;; | 1926 * ) add_runtime_path=no ;; |
2131 esac | 1927 esac |
2239 doug_lea_malloc=yes | 2035 doug_lea_malloc=yes |
2240 else | 2036 else |
2241 doug_lea_malloc=no | 2037 doug_lea_malloc=no |
2242 fi | 2038 fi |
2243 after_morecore_hook_exists=yes | 2039 after_morecore_hook_exists=yes |
2040 AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no) | |
2244 AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) | 2041 AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) |
2245 AC_MSG_CHECKING(whether __after_morecore_hook exists) | 2042 AC_MSG_CHECKING(whether __after_morecore_hook exists) |
2246 AC_TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0], | 2043 AC_TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0], |
2247 [AC_MSG_RESULT(yes)], | 2044 [AC_MSG_RESULT(yes)], |
2248 [AC_MSG_RESULT(no) | 2045 [AC_MSG_RESULT(no) |
2249 after_morecore_hook_exists=no]) | 2046 after_morecore_hook_exists=no]) |
2250 if test "$system_malloc" = "yes" ; then | 2047 if test "$system_malloc" = "yes" ; then |
2251 GNU_MALLOC=no | 2048 GNU_MALLOC=no |
2252 GNU_MALLOC_reason=" | 2049 GNU_MALLOC_reason=" |
2253 - The GNU allocators don't work with this system configuration." | 2050 (The GNU allocators don't work with this system configuration)." |
2254 elif test "$with_system_malloc" = "yes" ; then | 2051 elif test "$with_system_malloc" = "yes" ; then |
2255 GNU_MALLOC=no | 2052 GNU_MALLOC=no |
2256 GNU_MALLOC_reason=" | 2053 GNU_MALLOC_reason=" |
2257 - User chose not to use GNU allocators." | 2054 (User chose not to use GNU allocators)." |
2258 elif test "$with_debug_malloc" = "yes" ; then | 2055 elif test "$with_debug_malloc" = "yes" ; then |
2259 GNU_MALLOC=no | 2056 GNU_MALLOC=no |
2260 GNU_MALLOC_reason=" | 2057 GNU_MALLOC_reason=" |
2261 - User chose to use Debugging Malloc." | 2058 (User chose to use Debugging Malloc)." |
2262 fi | 2059 fi |
2263 | 2060 |
2264 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then | 2061 if test "$doug_lea_malloc" = "yes" ; then |
2265 GNU_MALLOC_reason=" | 2062 if test "$GNU_MALLOC" = yes ; then |
2266 - Using Doug Lea's new malloc from the GNU C Library." | 2063 GNU_MALLOC_reason=" |
2064 (Using Doug Lea's new malloc from the GNU C Library.)" | |
2065 fi | |
2267 AC_DEFINE(DOUG_LEA_MALLOC) | 2066 AC_DEFINE(DOUG_LEA_MALLOC) |
2268 if test "$after_morecore_hook_exists" = "no" ; then | 2067 if test "$after_morecore_hook_exists" = "no" ; then |
2269 GNU_MALLOC_reason=" | 2068 GNU_MALLOC_reason=" |
2270 - Using Doug Lea's new malloc from the Linux C Library." | 2069 (Using Doug Lea's new malloc from the Linux C Library.)" |
2271 AC_DEFINE(_NO_MALLOC_WARNING_) | 2070 AC_DEFINE(_NO_MALLOC_WARNING_) |
2272 fi | 2071 fi |
2072 use_minimal_tagbits=yes | |
2273 fi | 2073 fi |
2274 | 2074 |
2275 dnl #### mcheck is broken in all versions of Linux libc and glibc. | 2075 dnl #### mcheck is broken in all versions of Linux libc and glibc. |
2276 dnl Try this again when 2.1 hits the streets. | 2076 dnl Try this again when 2.1 hits the streets. |
2277 dnl Avoid using free-hook.c if support exists for malloc debugging in libc | 2077 dnl Avoid using free-hook.c if support exists for malloc debugging in libc |
2296 AC_PROG_RANLIB | 2096 AC_PROG_RANLIB |
2297 AC_PROG_INSTALL | 2097 AC_PROG_INSTALL |
2298 AC_PROG_YACC | 2098 AC_PROG_YACC |
2299 | 2099 |
2300 dnl checks for header files | 2100 dnl checks for header files |
2301 AC_CHECK_HEADERS(dnl | 2101 AC_CHECK_HEADERS(mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h) |
2302 a.out.h dnl | 2102 AC_CHECK_HEADERS(utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h) |
2303 cygwin/version.h dnl | 2103 AC_CHECK_HEADERS(kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h) |
2304 fcntl.h dnl | |
2305 inttypes.h dnl | |
2306 libgen.h dnl | |
2307 locale.h dnl | |
2308 mach/mach.h dnl | |
2309 sys/param.h dnl | |
2310 sys/pstat.h dnl | |
2311 sys/stropts.h dnl | |
2312 sys/time.h dnl | |
2313 sys/timeb.h dnl | |
2314 sys/un.h dnl | |
2315 kstat.h dnl | |
2316 ulimit.h dnl | |
2317 unistd.h dnl | |
2318 utime.h dnl | |
2319 ) | |
2320 AC_HEADER_SYS_WAIT | 2104 AC_HEADER_SYS_WAIT |
2321 AC_HEADER_STDC | 2105 AC_HEADER_STDC |
2322 AC_HEADER_TIME | 2106 AC_HEADER_TIME |
2323 AC_DECL_SYS_SIGLIST | 2107 AC_DECL_SYS_SIGLIST |
2324 | 2108 |
2346 AC_TYPE_SIZE_T | 2130 AC_TYPE_SIZE_T |
2347 AC_TYPE_PID_T | 2131 AC_TYPE_PID_T |
2348 AC_TYPE_UID_T | 2132 AC_TYPE_UID_T |
2349 AC_TYPE_MODE_T | 2133 AC_TYPE_MODE_T |
2350 AC_TYPE_OFF_T | 2134 AC_TYPE_OFF_T |
2351 AC_CHECK_TYPE(ssize_t, int) | |
2352 | |
2353 dnl check for Unix98 socklen_t | |
2354 AC_MSG_CHECKING(for socklen_t) | |
2355 AC_TRY_COMPILE([#include <sys/socket.h> | |
2356 socklen_t x; | |
2357 ],[],[AC_MSG_RESULT(yes)],[ | |
2358 AC_TRY_COMPILE([#include <sys/socket.h> | |
2359 int accept (int, struct sockaddr *, size_t *); | |
2360 ],[],[ | |
2361 AC_MSG_RESULT(size_t) | |
2362 AC_DEFINE(socklen_t,size_t)], [ | |
2363 AC_MSG_RESULT(int) | |
2364 AC_DEFINE(socklen_t,int)])]) | |
2365 | 2135 |
2366 AC_MSG_CHECKING(for struct timeval) | 2136 AC_MSG_CHECKING(for struct timeval) |
2367 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME | 2137 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME |
2368 #include <sys/time.h> | 2138 #include <sys/time.h> |
2369 #include <time.h> | 2139 #include <time.h> |
2419 [return atanh(1.0) + asinh(1.0) + acosh(1.0); ], | 2189 [return atanh(1.0) + asinh(1.0) + acosh(1.0); ], |
2420 AC_DEFINE(HAVE_INVERSE_HYPERBOLIC)) | 2190 AC_DEFINE(HAVE_INVERSE_HYPERBOLIC)) |
2421 | 2191 |
2422 dnl Determine type of mail locking from configure args and s&m headers | 2192 dnl Determine type of mail locking from configure args and s&m headers |
2423 AC_CHECKING(type of mail spool file locking) | 2193 AC_CHECKING(type of mail spool file locking) |
2424 AC_CHECK_FUNCS(lockf flock) | |
2425 dnl The mail_use_xxx variables are set according to the s&m headers. | |
2426 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock | 2194 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock |
2427 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf | 2195 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf |
2428 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking | 2196 if test "$mail_locking" = "lockf"; then AC_DEFINE(REAL_MAIL_USE_LOCKF) |
2429 if test -z "$mail_locking"; then | 2197 elif test "$mail_locking" = "flock"; then AC_DEFINE(REAL_MAIL_USE_FLOCK) |
2430 case "$opsys" in cygwin* | mingw*) | 2198 else mail_locking="dot-locking" |
2431 mail_locking=pop ;; | 2199 fi |
2432 esac | |
2433 fi | |
2434 | |
2435 if test "$mail_locking" = "lockf"; then AC_DEFINE(MAIL_LOCK_LOCKF) | |
2436 elif test "$mail_locking" = "flock"; then AC_DEFINE(MAIL_LOCK_FLOCK) | |
2437 elif test "$mail_locking" = "locking"; then AC_DEFINE(MAIL_LOCK_LOCKING) | |
2438 elif test "$mail_locking" = "pop"; then | |
2439 with_pop=yes | |
2440 mail_locking= | |
2441 else mail_locking="dot-locking"; AC_DEFINE(MAIL_LOCK_DOT) | |
2442 fi | |
2443 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \ | |
2444 XE_DIE("lockf mail locking requested but not available.") | |
2445 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \ | |
2446 XE_DIE("flock mail locking requested but not available.") | |
2447 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \ | |
2448 XE_DIE("locking mail locking requested but not available.") | |
2449 | 2200 |
2450 case "$opsys" in decosf*) | 2201 case "$opsys" in decosf*) |
2451 AC_CHECK_LIB(pthreads, cma_open) | 2202 AC_CHECK_LIB(pthreads, cma_open) |
2452 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ | 2203 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ |
2453 c_switch_site="$c_switch_site -threads" ;; | 2204 c_switch_site="$c_switch_site -threads" ;; |
2461 fi | 2212 fi |
2462 else AC_MSG_RESULT(no) | 2213 else AC_MSG_RESULT(no) |
2463 fi | 2214 fi |
2464 | 2215 |
2465 dnl Link with "-z ignore" on Solaris if supported | 2216 dnl Link with "-z ignore" on Solaris if supported |
2466 if test "$opsys" = "sol2"; then | 2217 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then |
2467 if test "$os_release" -ge 56; then | 2218 AC_MSG_CHECKING(for \"-z ignore\" linker flag) |
2468 AC_MSG_CHECKING(for \"-z ignore\" linker flag) | 2219 case "`ld -h 2>&1`" in |
2469 case "`ld -h 2>&1`" in | 2220 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) |
2470 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) | 2221 XE_PREPEND(-z ignore, ld_switch_site) ;; |
2471 XE_PREPEND(-z ignore, ld_switch_site) ;; | 2222 *) AC_MSG_RESULT(no) ;; |
2472 *) AC_MSG_RESULT(no) ;; | 2223 esac |
2473 esac | |
2474 fi | |
2475 fi | 2224 fi |
2476 | 2225 |
2477 dnl ---------------------- | 2226 dnl ---------------------- |
2478 dnl Choose a window system | 2227 dnl Choose a window system |
2479 dnl ---------------------- | 2228 dnl ---------------------- |
2613 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` | 2362 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` |
2614 fi | 2363 fi |
2615 cd .. | 2364 cd .. |
2616 rm -fr conftestdir | 2365 rm -fr conftestdir |
2617 for word in $xmkmf_defines; do | 2366 for word in $xmkmf_defines; do |
2618 case "$word" in -D* ) | 2367 case "$word" in |
2619 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'` | 2368 -D*=* ) ;; |
2620 case "$word" in | 2369 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'` |
2621 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;; | 2370 AC_DEFINE_UNQUOTED($word) ;; |
2622 * ) val=1 ;; | |
2623 esac | |
2624 dnl Avoid re-AC_DEFINE-ing xmkmf symbols we've already defined above. | |
2625 if grep "^#define $sym " confdefs.h >/dev/null; then :; else | |
2626 if test "$val" = "1" | |
2627 then AC_DEFINE_UNQUOTED($sym) | |
2628 else AC_DEFINE_UNQUOTED($sym,$val) | |
2629 fi | |
2630 fi ;; | |
2631 esac | 2371 esac |
2632 done | 2372 done |
2633 fi | 2373 fi |
2634 | 2374 |
2635 dnl make sure we can find Intrinsic.h | 2375 dnl make sure we can find Intrinsic.h |
2659 AC_TRY_RUN([#include <X11/Intrinsic.h> | 2399 AC_TRY_RUN([#include <X11/Intrinsic.h> |
2660 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }], | 2400 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }], |
2661 [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4]) | 2401 [./conftest foobar; x11_release=$?],[x11_release=4],[x11_release=4]) |
2662 AC_MSG_RESULT(R${x11_release}) | 2402 AC_MSG_RESULT(R${x11_release}) |
2663 AC_DEFINE_UNQUOTED(THIS_IS_X11R${x11_release}) | 2403 AC_DEFINE_UNQUOTED(THIS_IS_X11R${x11_release}) |
2664 | |
2665 AC_CHECK_FUNCS(XConvertCase) | |
2666 | 2404 |
2667 AC_CHECK_HEADERS(X11/Xlocale.h) | 2405 AC_CHECK_HEADERS(X11/Xlocale.h) |
2668 | 2406 |
2669 dnl remove this - we should avoid checking for specific OS | 2407 dnl remove this - we should avoid checking for specific OS |
2670 AC_MSG_CHECKING(for XFree86) | 2408 AC_MSG_CHECKING(for XFree86) |
2713 AC_CHECKING(for MS-Windows) | 2451 AC_CHECKING(for MS-Windows) |
2714 AC_CHECK_LIB(gdi32,main,with_msw=yes) | 2452 AC_CHECK_LIB(gdi32,main,with_msw=yes) |
2715 if test "$with_msw" = "yes"; then | 2453 if test "$with_msw" = "yes"; then |
2716 AC_DEFINE(HAVE_MS_WINDOWS) | 2454 AC_DEFINE(HAVE_MS_WINDOWS) |
2717 install_pp="$blddir/lib-src/installexe.sh" | 2455 install_pp="$blddir/lib-src/installexe.sh" |
2718 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool, libs_system) | 2456 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomctl32, libs_system) |
2719 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) | 2457 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) |
2720 if test "$window_system" != x11; then | 2458 if test "$window_system" != x11; then |
2721 window_system=msw | 2459 window_system=msw |
2722 test "$with_scrollbars" != "no" && with_scrollbars=msw \ | 2460 test "$with_scrollbars" != "no" && with_scrollbars=msw \ |
2723 && XE_ADD_OBJS(scrollbar-msw.o) | 2461 && XE_ADD_OBJS(scrollbar-msw.o) |
2725 && XE_ADD_OBJS(menubar-msw.o) | 2463 && XE_ADD_OBJS(menubar-msw.o) |
2726 test "$with_toolbars" != "no" && with_toolbars=msw \ | 2464 test "$with_toolbars" != "no" && with_toolbars=msw \ |
2727 && XE_ADD_OBJS(toolbar-msw.o) | 2465 && XE_ADD_OBJS(toolbar-msw.o) |
2728 test "$with_dialogs" != "no" && with_dialogs=msw \ | 2466 test "$with_dialogs" != "no" && with_dialogs=msw \ |
2729 && XE_ADD_OBJS(dialog-msw.o) | 2467 && XE_ADD_OBJS(dialog-msw.o) |
2730 test "$with_widgets" != "no" && with_widgets=msw | |
2731 else | 2468 else |
2732 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-msw.o) | 2469 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-msw.o) |
2733 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-msw.o) | 2470 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-msw.o) |
2734 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-msw.o) | 2471 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-msw.o) |
2735 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-msw.o) | 2472 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-msw.o) |
2736 fi | 2473 fi |
2737 dnl check for our special version of select | 2474 dnl check for our special version of select |
2738 AC_TRY_RUN([#include <fcntl.h> | 2475 AC_TRY_RUN([#include <fcntl.h> |
2739 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }], | 2476 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }], |
2740 [AC_DEFINE(HAVE_MSG_SELECT)]) | 2477 [AC_DEFINE(HAVE_MSG_SELECT)]) |
2478 const_is_losing=no | |
2741 with_file_coding=yes | 2479 with_file_coding=yes |
2742 XE_ADD_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) | 2480 XE_ADD_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) |
2743 fi | 2481 fi |
2744 fi | 2482 fi |
2745 | 2483 |
2779 dnl It ought to be reasonable to have no output device at all, and only use | 2517 dnl It ought to be reasonable to have no output device at all, and only use |
2780 dnl XEmacs in --batch mode. | 2518 dnl XEmacs in --batch mode. |
2781 dnl if test "$with_tty" = "no" ; then | 2519 dnl if test "$with_tty" = "no" ; then |
2782 dnl AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) | 2520 dnl AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) |
2783 dnl fi | 2521 dnl fi |
2784 for feature in tooltalk cde offix wmcommand xim xmu nas_sound | 2522 for feature in tooltalk cde offix session xim xmu |
2785 do | 2523 do |
2786 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then | 2524 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then |
2787 AC_MSG_WARN([--with-$feature ignored: Not valid without X support]) | 2525 AC_MSG_WARN([--with-$feature ignored: Not valid without X support]) |
2788 fi | 2526 fi |
2789 eval "with_${feature}=no" | 2527 eval "with_${feature}=no" |
2802 case "$x_libraries" in *X11R4* ) | 2540 case "$x_libraries" in *X11R4* ) |
2803 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" | 2541 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" |
2804 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" | 2542 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" |
2805 esac | 2543 esac |
2806 | 2544 |
2807 dnl Enable or disable proper handling of WM_COMMAND | 2545 dnl Enable or disable proper session-management |
2808 AC_CHECKING(for WM_COMMAND option); | 2546 AC_CHECKING(for session-management option); |
2809 dnl if test "$with_wmcommand" = "yes"; then | 2547 dnl if test "$with_session" = "yes"; then |
2810 if test "$with_wmcommand" != "no"; then | 2548 if test "$with_session" != "no"; then |
2811 AC_DEFINE(HAVE_WMCOMMAND) | 2549 AC_DEFINE(HAVE_SESSION) |
2812 fi | 2550 fi |
2813 | 2551 |
2814 dnl Autodetect Xauth | 2552 dnl Autodetect Xauth |
2815 dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs | 2553 dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs |
2816 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no | 2554 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no |
2830 dnl Autodetect tooltalk | 2568 dnl Autodetect tooltalk |
2831 if test "$with_tooltalk" != "no" ; then | 2569 if test "$with_tooltalk" != "no" ; then |
2832 dnl autodetect the location of tt_c.h | 2570 dnl autodetect the location of tt_c.h |
2833 dnl tt_c.h might be in Tt or desktop include directories | 2571 dnl tt_c.h might be in Tt or desktop include directories |
2834 for dir in "" "Tt/" "desktop/" ; do | 2572 for dir in "" "Tt/" "desktop/" ; do |
2835 AC_CHECK_HEADER(${dir}tt_c.h, tt_c_h_file="${dir}tt_c.h"; break) | 2573 AC_CHECK_HEADER(${dir}tt_c.h, tt_c_h_path="${dir}tt_c.h"; break) |
2836 done | 2574 done |
2837 if test -z "$tt_c_h_file"; then | 2575 if test -z "$tt_c_h_path"; then |
2838 if test "$with_tooltalk" = "yes"; then | 2576 if test "$with_tooltalk" = "yes"; then |
2839 USAGE_ERROR("Unable to find required tooltalk header files.") | 2577 USAGE_ERROR("Unable to find required tooltalk header files.") |
2840 fi | 2578 fi |
2841 with_tooltalk=no | 2579 with_tooltalk=no |
2842 fi | 2580 fi |
2854 fi | 2592 fi |
2855 fi | 2593 fi |
2856 test -z "$with_tooltalk" && with_tooltalk=yes | 2594 test -z "$with_tooltalk" && with_tooltalk=yes |
2857 if test "$with_tooltalk" = "yes"; then | 2595 if test "$with_tooltalk" = "yes"; then |
2858 AC_DEFINE(TOOLTALK) | 2596 AC_DEFINE(TOOLTALK) |
2859 AC_DEFINE_UNQUOTED(TT_C_H_FILE, "$tt_c_h_file") | 2597 AC_DEFINE_UNQUOTED(TT_C_H_PATH, "$tt_c_h_path") |
2860 XE_PREPEND($tt_libs, libs_x) | 2598 XE_PREPEND($tt_libs, libs_x) |
2861 XE_ADD_OBJS(tooltalk.o) | 2599 XE_ADD_OBJS(tooltalk.o) |
2862 fi | 2600 fi |
2863 | 2601 |
2864 dnl Autodetect CDE | 2602 dnl Autodetect CDE |
2920 dnl Autodetect LDAP | 2658 dnl Autodetect LDAP |
2921 AC_CHECKING(for LDAP) | 2659 AC_CHECKING(for LDAP) |
2922 test -z "$with_ldap" && { AC_CHECK_HEADER(ldap.h, ,with_ldap=no) } | 2660 test -z "$with_ldap" && { AC_CHECK_HEADER(ldap.h, ,with_ldap=no) } |
2923 test -z "$with_ldap" && { AC_CHECK_HEADER(lber.h, ,with_ldap=no) } | 2661 test -z "$with_ldap" && { AC_CHECK_HEADER(lber.h, ,with_ldap=no) } |
2924 if test "$with_ldap" != "no"; then | 2662 if test "$with_ldap" != "no"; then |
2925 AC_CHECK_LIB(ldap, ldap_search, with_ldap_nolber=yes, with_ldap_nolber=no) | 2663 test -z "$with_umich_ldap" && { AC_CHECK_LIB(ldap, ldap_open, with_umich_ldap=yes, with_umich_ldap=no, -llber) } |
2926 test "$with_ldap_nolber" = "no" && { AC_CHECK_LIB(ldap, ldap_open, with_ldap_lber=yes, with_ldap_lber=no, -llber) } | 2664 test "$with_umich_ldap" = "no" && { AC_CHECK_LIB(ldap10, ldap_set_option, with_ns_ldap=yes, with_ns_ldap=no) } |
2927 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { AC_CHECK_LIB(ldap, ldap_open, with_ldap_krb=yes, with_ldap_krb=no, -llber -lkrb) } | 2665 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes |
2928 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { AC_CHECK_LIB(ldap, ldap_open, with_ldap_krbdes=yes, with_ldap_krbdes=no, -llber -lkrb -ldes) } | |
2929 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 | |
2930 fi | 2666 fi |
2931 if test "$with_ldap" = "yes"; then | 2667 if test "$with_ldap" = "yes"; then |
2932 AC_DEFINE(HAVE_LDAP) | 2668 AC_DEFINE(HAVE_LDAP) |
2933 XE_ADD_OBJS(eldap.o) | 2669 XE_ADD_OBJS(eldap.o) |
2934 if test "$with_ldap_nolber" = "yes" ; then | 2670 if test "$with_umich_ldap" = "yes" ; then |
2935 XE_PREPEND(-lldap, LIBS) | 2671 AC_DEFINE(HAVE_UMICH_LDAP) |
2936 else | |
2937 if test "$with_ldap_krb" = "yes" ; then | |
2938 XE_PREPEND(-lkrb, LIBS) | |
2939 fi | |
2940 if test "$with_ldap_krbdes" = "yes" ; then | |
2941 XE_PREPEND(-ldes, LIBS) | |
2942 XE_PREPEND(-lkrb, LIBS) | |
2943 fi | |
2944 XE_PREPEND(-llber, LIBS) | 2672 XE_PREPEND(-llber, LIBS) |
2945 XE_PREPEND(-lldap, LIBS) | 2673 XE_PREPEND(-lldap, LIBS) |
2946 fi | 2674 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then |
2947 AC_CHECK_FUNCS(ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result) | 2675 AC_DEFINE(HAVE_NS_LDAP) |
2948 fi | 2676 XE_PREPEND(-lldap10, LIBS) |
2949 | 2677 elif test "$with_ldap" = "yes" ; then |
2950 dnl Autodetect PostgreSQL | 2678 XE_PREPEND(-lldap, LIBS) |
2951 dnl On many Linux systems, PostgreSQL is packaged to be installed in /usr; | |
2952 dnl in this case, configure will easily detect it there. | |
2953 dnl | |
2954 dnl If PostgreSQL is installed into a different prefix, | |
2955 dnl (such as the default /usr/local/pgsql when building from source), | |
2956 dnl that prefix must be specified using the --site-prefixes flag. | |
2957 if test "$with_postgresql" != "no"; then | |
2958 AC_CHECKING(for PostgreSQL) | |
2959 | |
2960 dnl Look for these standard header file locations, known to be used on Linux | |
2961 for header_dir in "" "pgsql/" "postgresql/"; do | |
2962 AC_CHECK_HEADER(${header_dir}libpq-fe.h, | |
2963 libpq_fe_h_file=${header_dir}libpq-fe.h; break) | |
2964 done | |
2965 | |
2966 test -n "$libpq_fe_h_file" && { AC_CHECK_LIB(pq,PQconnectdb,have_libpq=yes) } | |
2967 | |
2968 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then | |
2969 with_postgresql=yes | |
2970 AC_DEFINE(HAVE_POSTGRESQL) | |
2971 AC_CHECK_LIB(pq,PQconnectStart, [ | |
2972 with_postgresqlv7=yes; | |
2973 AC_DEFINE(HAVE_POSTGRESQLV7)]) | |
2974 AC_DEFINE_UNQUOTED(LIBPQ_FE_H_FILE, "$libpq_fe_h_file") | |
2975 XE_PREPEND(-lpq, LIBS) | |
2976 XE_ADD_OBJS(postgresql.o) | |
2977 elif test "$with_postgresql" = "yes"; then | |
2978 XE_DIE("Required PostgreSQL support cannot be provided. Check --site-prefixes.") | |
2979 fi | 2679 fi |
2980 fi | 2680 fi |
2981 | 2681 |
2982 dnl ---------------------- | 2682 dnl ---------------------- |
2983 dnl Graphics libraries | 2683 dnl Graphics libraries |
2989 dnl Autodetect Xpm | 2689 dnl Autodetect Xpm |
2990 xpm_problem="" | 2690 xpm_problem="" |
2991 if test -z "$with_xpm"; then | 2691 if test -z "$with_xpm"; then |
2992 AC_MSG_CHECKING(for Xpm - no older than 3.4f) | 2692 AC_MSG_CHECKING(for Xpm - no older than 3.4f) |
2993 xe_check_libs=-lXpm | 2693 xe_check_libs=-lXpm |
2994 AC_TRY_RUN([#define XPM_NUMBERS | 2694 AC_TRY_RUN([#include <X11/xpm.h> |
2995 #include <X11/xpm.h> | |
2996 int main(int c, char **v) { | 2695 int main(int c, char **v) { |
2997 return c == 1 ? 0 : | 2696 return c == 1 ? 0 : |
2998 XpmIncludeVersion != XpmLibraryVersion() ? 1 : | 2697 XpmIncludeVersion != XpmLibraryVersion() ? 1 : |
2999 XpmIncludeVersion < 30406 ? 2 : 0 ;}], | 2698 XpmIncludeVersion < 30406 ? 2 : 0 ;}], |
3000 [./conftest dummy_arg; xpm_status=$?; | 2699 [./conftest dummy_arg; xpm_status=$?; |
3123 | 2822 |
3124 if test "$with_x11" = "yes"; then | 2823 if test "$with_x11" = "yes"; then |
3125 | 2824 |
3126 AC_CHECKING(for X11 graphics libraries) | 2825 AC_CHECKING(for X11 graphics libraries) |
3127 | 2826 |
3128 AC_CHECKING(for the Athena widgets) | 2827 dnl Autodetect -lXaw |
3129 | 2828 AC_CHECK_LIB(Xaw, XawScrollbarSetThumb, have_xaw=yes, have_xaw=no) |
3130 dnl What in heck did the user actually want? | 2829 dnl if test "$have_xaw" = "yes"; then |
3131 case "$with_athena" in | 2830 dnl AC_CHECK_HEADER(X11/Xaw/Reports.h, [ |
3132 dnl This is the default, old fashioned flat Athena. | 2831 dnl XE_APPEND(pkg-src/tree-x, MAKE_SUBDIR) |
3133 "xaw" | "") athena_variant=Xaw athena_3d=no ;; | 2832 dnl XE_APPEND(pkg-src/tree-x, INSTALL_ARCH_DEP_SUBDIR)]) |
3134 "3d") athena_variant=Xaw3d athena_3d=yes ;; | 2833 dnl fi |
3135 "next") athena_variant=neXtaw athena_3d=yes ;; | |
3136 "95") athena_variant=Xaw95 athena_3d=yes ;; | |
3137 "xpm") athena_variant=XawXpm athena_3d=yes ;; | |
3138 *) XE_DIE("Unknown Athena widget set \`$with_athena'. This should not happen.") ;; | |
3139 esac | |
3140 | |
3141 dnl Search for the Athena library... | |
3142 if test "$athena_3d" = "no"; then | |
3143 AC_CHECK_LIB($athena_variant, XawScrollbarSetThumb, | |
3144 [ | |
3145 dnl Must not be a 3d library... | |
3146 AC_CHECK_LIB($athena_variant, threeDClassRec, | |
3147 AC_MSG_WARN("Could not find a non-3d Athena widget library."), | |
3148 athena_lib=$athena_variant) | |
3149 ], | |
3150 AC_MSG_WARN("Could not find an Athena widget library.")) | |
3151 else | |
3152 dnl The real configuration, need 3d library | |
3153 AC_CHECK_LIB($athena_variant, threeDClassRec, athena_lib=$athena_variant, | |
3154 dnl OK, couldn't find it with a proper name, try the standard Athena lib | |
3155 dnl If that is 3d, presume the user asked for what they have installed. | |
3156 AC_CHECK_LIB(Xaw, threeDClassRec, | |
3157 [ | |
3158 athena_lib=Xaw; | |
3159 AC_MSG_WARN("Assuming that libXaw is actually $athena_variant."); | |
3160 ], | |
3161 AC_MSG_WARN("Could not find a 3d Athena widget library that looked like $athena_variant."))) | |
3162 fi | |
3163 | |
3164 dnl Now we locate the Athena headers that we need. | |
3165 if test "$athena_3d" = "no"; then | |
3166 AC_CHECK_HEADER(X11/Xaw/ThreeD.h, | |
3167 AC_MSG_WARN("Could not find a non-3d Athena header set."), | |
3168 AC_CHECK_HEADER(X11/Xaw/XawInit.h, | |
3169 athena_h_path=X11/Xaw, | |
3170 AC_MSG_WARN("Could not find a non-3d Athena header set."))) | |
3171 else | |
3172 dnl The three-d Athena headers are so much more slippery. | |
3173 dnl Curse this `Lets replace standard libraries' thing that they did. :/ | |
3174 AC_CHECK_HEADER(X11/$athena_variant/XawInit.h, | |
3175 AC_CHECK_HEADER(X11/$athena_variant/ThreeD.h, | |
3176 athena_h_path=X11/$athena_variant,)) | |
3177 | |
3178 dnl Is the variant specific header directory directly under include? | |
3179 if test -z "$athena_h_path"; then | |
3180 AC_CHECK_HEADER($athena_variant/XawInit.h, | |
3181 AC_CHECK_HEADER($athena_variant/ThreeD.h, | |
3182 athena_h_path=$athena_variant,)) | |
3183 fi | |
3184 | |
3185 dnl If we couldn't find the specific variant, try the generic Athena 3d headers | |
3186 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then | |
3187 AC_CHECK_HEADER(X11/Xaw3d/XawInit.h, | |
3188 AC_CHECK_HEADER(X11/Xaw3d/ThreeD.h, | |
3189 [ | |
3190 AC_MSG_WARN("Assuming that X11/Xaw3d headers are suitable for $athena_variant.") | |
3191 athena_h_path=X11/Xaw3d | |
3192 ],)) | |
3193 fi | |
3194 | |
3195 dnl Also generic 3d headers directly under include dir | |
3196 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then | |
3197 AC_CHECK_HEADER(Xaw3d/XawInit.h, | |
3198 AC_CHECK_HEADER(Xaw3d/ThreeD.h, | |
3199 [ | |
3200 AC_MSG_WARN("Assuming that Xaw3d headers are suitable for $athena_variant.") | |
3201 athena_h_path=Xaw3d | |
3202 ],)) | |
3203 fi | |
3204 | |
3205 dnl If nothing yet found, see if Xaw is a 3d header set... | |
3206 dnl We AC_MSG_WARN if we fail because I am all out of ideas... | |
3207 if test -z "$athena_h_path"; then | |
3208 AC_CHECK_HEADER(X11/Xaw/ThreeD.h, | |
3209 [ | |
3210 AC_MSG_WARN("Assuming that X11/Xaw headers are suitable for $athena_variant.") | |
3211 athena_h_path=X11/Xaw | |
3212 ], | |
3213 AC_MSG_WARN("Could not find a suitable 3d Athena header set.")) | |
3214 fi | |
3215 fi | |
3216 | |
3217 dnl Do we actually have a usable Athena widget set? Please? | |
3218 if test -n "$athena_lib" -a -n "$athena_h_path"; then | |
3219 have_xaw=yes | |
3220 else | |
3221 have_xaw=no | |
3222 fi | |
3223 | 2834 |
3224 dnl autodetect Motif - but only add to libs_x later (if necessary) | 2835 dnl autodetect Motif - but only add to libs_x later (if necessary) |
3225 AC_CHECK_HEADER(Xm/Xm.h, | 2836 AC_CHECK_HEADER(Xm/Xm.h, |
3226 [AC_CHECK_LIB(Xm, XmStringFree, have_motif=yes, have_motif=no)], | 2837 [AC_CHECK_LIB(Xm, XmStringFree, have_motif=yes, have_motif=no)], |
3227 have_motif=no) | 2838 have_motif=no) |
3242 | 2853 |
3243 dnl Finish ensuring that we have values for the various toolkit items. | 2854 dnl Finish ensuring that we have values for the various toolkit items. |
3244 dnl Not all toolkits support all widgets | 2855 dnl Not all toolkits support all widgets |
3245 dnl if Motif is available we use it for the dialog boxes. | 2856 dnl if Motif is available we use it for the dialog boxes. |
3246 | 2857 |
3247 case "$with_menubars" in "" | "yes" | "athena" ) | 2858 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" ) |
3248 with_menubars="lucid" ;; | 2859 with_menubars="lucid" ;; |
3249 esac | 2860 esac |
3250 case "$with_dialogs" in "" | "yes" | "lucid" ) | 2861 case "$with_dialogs" in "" | "yes" | "lucid" ) |
3251 if test "$have_motif" = "yes"; then with_dialogs="motif" | 2862 if test "$have_motif" = "yes"; then with_dialogs="motif" |
3252 elif test "$have_xaw" = "yes"; then with_dialogs="athena" | 2863 elif test "$have_xaw" = "yes"; then with_dialogs="athena" |
3253 else with_dialogs=no | 2864 else with_dialogs=no |
3254 fi ;; | 2865 fi ;; |
3255 esac | 2866 esac |
3256 case "$with_scrollbars" in "" | "yes" ) | 2867 case "$with_scrollbars" in "" | "yes" ) |
3257 with_scrollbars="lucid" ;; | 2868 with_scrollbars="lucid" ;; |
3258 esac | 2869 esac |
3259 case "$with_widgets" in "" | "yes" | "lucid") | 2870 |
3260 if test "$have_motif" = "yes"; then with_widgets="motif" | 2871 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars" |
3261 elif test "$have_xaw" = "yes"; then with_widgets="athena" | 2872 |
3262 else with_widgets=no | 2873 case "$all_widgets" in *athena* ) |
3263 fi ;; | 2874 AC_DEFINE(LWLIB_USES_ATHENA) |
3264 esac | 2875 AC_DEFINE(NEED_ATHENA) |
3265 | 2876 XE_APPEND(lwlib-Xaw.o, lwlib_objs) |
3266 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets" | 2877 XE_PREPEND(-lXaw, libs_x) ;; |
3267 | |
3268 case "$all_widgets" in | |
3269 *athena* ) | |
3270 if test "$have_xaw" != "yes"; then | |
3271 XE_DIE("Could not find a suitable Athena library to build with.") | |
3272 fi | |
3273 | |
3274 dnl Add the Lucid widget Athena code | |
3275 XE_APPEND(lwlib-Xaw.o, lwlib_objs) | |
3276 | |
3277 dnl Add the Athena widget library we located earlier | |
3278 XE_PREPEND(-l$athena_lib, libs_x) | |
3279 | |
3280 dnl Tell lwlib where to find the Athena header files. | |
3281 dnl Many people have tried to create a `smart' way of doing this, | |
3282 dnl but all have failed. Before changing the following ugly definitions, | |
3283 dnl consult the veterans of many a battle. | |
3284 AC_DEFINE_UNQUOTED(ATHENA_Scrollbar_h_,"$athena_h_path/Scrollbar.h") | |
3285 AC_DEFINE_UNQUOTED(ATHENA_Dialog_h_,"$athena_h_path/Dialog.h") | |
3286 AC_DEFINE_UNQUOTED(ATHENA_Form_h_,"$athena_h_path/Form.h") | |
3287 AC_DEFINE_UNQUOTED(ATHENA_Command_h_,"$athena_h_path/Command.h") | |
3288 AC_DEFINE_UNQUOTED(ATHENA_Label_h_,"$athena_h_path/Label.h") | |
3289 AC_DEFINE_UNQUOTED(ATHENA_LabelP_h_,"$athena_h_path/LabelP.h") | |
3290 AC_DEFINE_UNQUOTED(ATHENA_Toggle_h_,"$athena_h_path/Toggle.h") | |
3291 AC_DEFINE_UNQUOTED(ATHENA_ToggleP_h_,"$athena_h_path/ToggleP.h") | |
3292 AC_DEFINE_UNQUOTED(ATHENA_AsciiText_h_,"$athena_h_path/AsciiText.h") | |
3293 AC_DEFINE_UNQUOTED(ATHENA_XawInit_h_,"$athena_h_path/XawInit.h") | |
3294 | |
3295 AC_DEFINE(LWLIB_USES_ATHENA) | |
3296 AC_DEFINE(NEED_ATHENA) | |
3297 need_athena="yes" | |
3298 | |
3299 if test "$athena_3d" = "yes"; then | |
3300 AC_DEFINE(HAVE_ATHENA_3D) | |
3301 fi | |
3302 ;; | |
3303 esac | 2878 esac |
3304 | 2879 |
3305 case "$all_widgets" in *motif* ) | 2880 case "$all_widgets" in *motif* ) |
3306 AC_DEFINE(LWLIB_USES_MOTIF) | 2881 AC_DEFINE(LWLIB_USES_MOTIF) |
3307 AC_DEFINE(NEED_MOTIF) | 2882 AC_DEFINE(NEED_MOTIF) |
3310 esac | 2885 esac |
3311 | 2886 |
3312 test "$with_menubars" = "lucid" && XE_APPEND(xlwmenu.o, lwlib_objs) | 2887 test "$with_menubars" = "lucid" && XE_APPEND(xlwmenu.o, lwlib_objs) |
3313 test "$with_menubars" = "motif" && XE_APPEND(xlwmenu.o, lwlib_objs) | 2888 test "$with_menubars" = "motif" && XE_APPEND(xlwmenu.o, lwlib_objs) |
3314 test "$with_scrollbars" = "lucid" && XE_APPEND(xlwscrollbar.o, lwlib_objs) | 2889 test "$with_scrollbars" = "lucid" && XE_APPEND(xlwscrollbar.o, lwlib_objs) |
3315 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \ | |
3316 XE_APPEND(xlwtabs.o xlwgcs.o, lwlib_objs) | |
3317 case "$with_widgets" in athena* ) | |
3318 XE_APPEND(xlwradio.o xlwcheckbox.o xlwgauge.o, lwlib_objs);; | |
3319 esac | |
3320 case "$all_widgets" in *lucid* ) | 2890 case "$all_widgets" in *lucid* ) |
3321 AC_DEFINE(NEED_LUCID) | 2891 AC_DEFINE(NEED_LUCID) |
3322 XE_APPEND(lwlib-Xlw.o, lwlib_objs) ;; | 2892 XE_APPEND(lwlib-Xlw.o, lwlib_objs) ;; |
3323 esac | 2893 esac |
3324 | 2894 |
3325 AC_SUBST(lwlib_objs) | 2895 AC_SUBST(lwlib_objs) |
3326 | 2896 |
3327 test "$with_scrollbars" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA) | 2897 case "$with_scrollbars" in athena* ) AC_DEFINE(LWLIB_SCROLLBARS_ATHENA);; esac |
3328 test "$with_dialogs" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA) | 2898 case "$with_dialogs" in athena* ) AC_DEFINE(LWLIB_DIALOGS_ATHENA) ;; esac |
3329 | 2899 test "$with_scrollbars" = "athena3d" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D) |
3330 if test "$athena_3d" = "yes"; then | 2900 test "$with_dialogs" = "athena3d" && AC_DEFINE(LWLIB_DIALOGS_ATHENA3D) |
3331 test "$with_scrollbars" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D) | |
3332 test "$with_dialogs" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA3D) | |
3333 fi | |
3334 | |
3335 case "$with_widgets" in athena* ) AC_DEFINE(LWLIB_WIDGETS_ATHENA);; esac | |
3336 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \ | |
3337 AC_DEFINE(LWLIB_TABS_LUCID) | |
3338 | 2901 |
3339 test "$with_menubars" != "no" && AC_DEFINE(HAVE_MENUBARS) | 2902 test "$with_menubars" != "no" && AC_DEFINE(HAVE_MENUBARS) |
3340 test "$with_scrollbars" != "no" && AC_DEFINE(HAVE_SCROLLBARS) | 2903 test "$with_scrollbars" != "no" && AC_DEFINE(HAVE_SCROLLBARS) |
3341 test "$with_dialogs" != "no" && AC_DEFINE(HAVE_DIALOGS) | 2904 test "$with_dialogs" != "no" && AC_DEFINE(HAVE_DIALOGS) |
3342 test "$with_toolbars" != "no" && AC_DEFINE(HAVE_TOOLBARS) | 2905 test "$with_toolbars" != "no" && AC_DEFINE(HAVE_TOOLBARS) |
3343 test "$with_widgets" != "no" && AC_DEFINE(HAVE_WIDGETS) | |
3344 | 2906 |
3345 test "$with_menubars" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID) | 2907 test "$with_menubars" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID) |
3346 test "$with_scrollbars" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID) | 2908 test "$with_scrollbars" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID) |
3347 | 2909 |
3348 test "$with_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF) | 2910 test "$with_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF) |
3349 test "$with_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) | 2911 test "$with_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) |
3350 test "$with_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF) | 2912 test "$with_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF) |
3351 test "$with_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF) | 2913 |
3352 | 2914 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar.o) |
3353 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar.o) | 2915 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar.o) |
3354 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar.o) | 2916 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog.o) |
3355 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog.o) | 2917 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar.o) |
3356 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar.o) | |
3357 | 2918 |
3358 if test "$with_x11" = "yes"; then | 2919 if test "$with_x11" = "yes"; then |
3359 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-x.o) | 2920 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-x.o) |
3360 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-x.o) | 2921 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-x.o) |
3361 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-x.o) | 2922 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-x.o) |
3362 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-x.o) | 2923 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-x.o) |
3363 test "$all_widgets" != "no no no no no" && XE_ADD_OBJS(gui-x.o) | 2924 test "$all_widgets" != "no no no no" && XE_ADD_OBJS(gui-x.o) |
2925 else | |
2926 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then | |
2927 echo "Attempt to Build NAS sound without X" | |
2928 echo "Please remove NAS configuration or build with X" | |
2929 exit 1 | |
2930 fi | |
3364 fi | 2931 fi |
3365 | 2932 |
3366 dnl ---------------------- | 2933 dnl ---------------------- |
3367 dnl Mule-dependent options | 2934 dnl Mule-dependent options |
3368 dnl ---------------------- | 2935 dnl ---------------------- |
3500 dnl AIX needs the following library for use with Motif | 3067 dnl AIX needs the following library for use with Motif |
3501 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)]) | 3068 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)]) |
3502 XE_COMPUTE_RUNPATH() | 3069 XE_COMPUTE_RUNPATH() |
3503 fi | 3070 fi |
3504 | 3071 |
3505 AC_CHECK_FUNCS(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) | 3072 AC_CHECK_FUNCS(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) |
3506 | 3073 |
3507 dnl Use our own realpath always. | 3074 dnl realpath is buggy on linux, decosf and aix4 |
3508 XE_ADD_OBJS(realpath.o) | 3075 |
3076 dnl The realpath() in linux libc (4.6.27) sometimes fails with ELOOP. | |
3077 dnl The realpath in ELF linux libc's is O.K. | |
3078 dnl For example, call realpath on a file thirty-five or so directories deep | |
3079 dnl and you get ELOOP even if no symlinks at all are involved. | |
3080 dnl Reports as of 11/1997 indicate BSDi has problems too. | |
3081 dnl The realpath() in UnixWare2.1.3 could not get any pathname fragment in error condition. | |
3082 case "$opsys" in | |
3083 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) XE_ADD_OBJS(realpath.o) ;; | |
3084 * ) | |
3085 case "$canonical" in | |
3086 *-*-sysv4.2uw2* ) XE_ADD_OBJS(realpath.o) ;; | |
3087 * ) AC_CHECK_FUNCS(realpath) | |
3088 test "$ac_cv_func_realpath" != "yes" && XE_ADD_OBJS(realpath.o) ;; | |
3089 esac ;; | |
3090 esac | |
3509 | 3091 |
3510 dnl Check whether the system provides getloadavg (Solaris 7 has it) | 3092 dnl Check whether the system provides getloadavg (Solaris 7 has it) |
3511 AC_CHECK_FUNCS(getloadavg) | 3093 AC_CHECK_FUNCS(getloadavg) |
3512 | 3094 |
3513 if test "$ac_cv_func_getloadavg" != "yes" | 3095 if test "$ac_cv_func_getloadavg" != "yes" |
3597 #endif | 3179 #endif |
3598 #endif | 3180 #endif |
3599 ], | 3181 ], |
3600 [ | 3182 [ |
3601 struct timeval time; | 3183 struct timeval time; |
3602 gettimeofday (&time, 0); | 3184 struct timezone dummy; |
3185 gettimeofday (&time, &dummy); | |
3603 ], | 3186 ], |
3604 [AC_MSG_RESULT(two)], | 3187 [AC_MSG_RESULT(two)], |
3605 [AC_MSG_RESULT(one) | 3188 [AC_MSG_RESULT(one) |
3606 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)]) | 3189 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)]) |
3607 fi | 3190 fi |
3608 | 3191 |
3609 | 3192 |
3610 AC_C_INLINE | 3193 AC_C_INLINE |
3611 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && XE_ADD_OBJS(inline.o) | 3194 if test "$ac_cv_c_inline" != "no"; then |
3195 AC_DEFINE(HAVE_INLINE) | |
3196 test "$GCC" = "yes" && XE_ADD_OBJS(inline.o) | |
3197 fi | |
3612 | 3198 |
3613 dnl HP-UX has a working alloca in libPW. | 3199 dnl HP-UX has a working alloca in libPW. |
3614 dnl case "${GCC}${opsys}" in hpux* ) | 3200 dnl case "${GCC}${opsys}" in hpux* ) |
3615 dnl AC_CHECK_FUNC(alloca, [:], [AC_CHECK_LIB(PW, alloca)]) | 3201 dnl AC_CHECK_FUNC(alloca, [:], [AC_CHECK_LIB(PW, alloca)]) |
3616 dnl esac | 3202 dnl esac |
3668 return 1; | 3254 return 1; |
3669 }], have_mmap=yes, have_mmap=no) ;; | 3255 }], have_mmap=yes, have_mmap=no) ;; |
3670 esac | 3256 esac |
3671 AC_MSG_RESULT($have_mmap) | 3257 AC_MSG_RESULT($have_mmap) |
3672 test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP) | 3258 test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP) |
3259 AC_FUNC_MMAP | |
3673 | 3260 |
3674 dnl rel_alloc requires either GNU malloc or system malloc with mmap | 3261 dnl rel_alloc requires either GNU malloc or system malloc with mmap |
3675 dnl We only turn rel_alloc on by default if mmap is available. | 3262 dnl We only turn rel_alloc on by default if mmap is available. |
3676 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no | 3263 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no |
3677 if test "$rel_alloc $have_mmap" = "default yes"; then | 3264 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes |
3678 if test "$doug_lea_malloc" = "yes"; then | |
3679 dnl Check if malloc() calls mmap(), making rel_alloc pointless. | |
3680 AC_MSG_CHECKING(for M_MMAP_THRESHOLD) | |
3681 AC_TRY_COMPILE([#include <malloc.h>],[ | |
3682 #ifndef M_MMAP_THRESHOLD | |
3683 #error No M_MMAP_THRESHOLD :-( | |
3684 !@+$%^&*_)(_ - unlikely to compile... | |
3685 #endif | |
3686 ], [rel_alloc=no; AC_MSG_RESULT(yes);], [rel_alloc=yes; AC_MSG_RESULT(no);]) | |
3687 else | |
3688 rel_alloc=yes | |
3689 fi | |
3690 fi | |
3691 test "$rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC) | 3265 test "$rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC) |
3692 | 3266 |
3693 dnl Check for terminal I/O variants | 3267 dnl Check for terminal I/O variants |
3694 dnl TERMIOS systems may have termio.h, but not vice-versa, I think. | 3268 dnl TERMIOS systems may have termio.h, but not vice-versa, I think. |
3695 AC_CHECK_HEADER(termios.h, | 3269 AC_CHECK_HEADER(termios.h, |
3737 | 3311 |
3738 dnl Check for sound of various sorts. | 3312 dnl Check for sound of various sorts. |
3739 | 3313 |
3740 dnl Autodetect native sound | 3314 dnl Autodetect native sound |
3741 AC_CHECKING("for sound support") | 3315 AC_CHECKING("for sound support") |
3316 case "$with_sound" in | |
3317 native | both ) with_native_sound=yes;; | |
3318 nas | no ) with_native_sound=no;; | |
3319 esac | |
3742 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes | 3320 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes |
3743 | 3321 |
3744 if test "$with_native_sound" != "no"; then | 3322 if test "$with_native_sound" != "no"; then |
3745 dnl Maybe sound is already on include path... | 3323 dnl Maybe sound is already on include path... |
3746 if test -n "$native_sound_lib"; then | 3324 if test -n "$native_sound_lib"; then |
3794 dnl Check for Linux/BSD native sound | 3372 dnl Check for Linux/BSD native sound |
3795 if test -z "$sound_found"; then | 3373 if test -z "$sound_found"; then |
3796 for dir in "machine" "sys" "linux"; do | 3374 for dir in "machine" "sys" "linux"; do |
3797 AC_CHECK_HEADER(${dir}/soundcard.h, | 3375 AC_CHECK_HEADER(${dir}/soundcard.h, |
3798 sound_found=yes | 3376 sound_found=yes |
3799 need_miscplay=yes | |
3800 XE_ADD_OBJS(linuxplay.o) | 3377 XE_ADD_OBJS(linuxplay.o) |
3801 [AC_DEFINE_UNQUOTED(SOUNDCARD_H_FILE, "${dir}/soundcard.h")] | 3378 [AC_DEFINE_UNQUOTED(SOUNDCARD_H_PATH, "${dir}/soundcard.h")] |
3802 break) | 3379 break) |
3803 done | 3380 done |
3804 fi | 3381 fi |
3805 | 3382 |
3806 dnl Win32 Native uses native sound | |
3807 if test -z "$sound_found"; then | |
3808 if test "$with_msw" = "yes"; then | |
3809 sound_found=yes | |
3810 native_sound_lib= | |
3811 fi | |
3812 fi | |
3813 | |
3814 test "$sound_found" = "yes" && with_native_sound=yes | 3383 test "$sound_found" = "yes" && with_native_sound=yes |
3384 fi | |
3385 | |
3386 if test -z "$with_sound"; then | |
3387 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then | |
3388 with_sound=native | |
3389 fi | |
3815 fi | 3390 fi |
3816 | 3391 |
3817 if test "$with_native_sound" = "yes"; then | 3392 if test "$with_native_sound" = "yes"; then |
3818 AC_DEFINE(HAVE_NATIVE_SOUND) | 3393 AC_DEFINE(HAVE_NATIVE_SOUND) |
3819 test -n "$native_sound_lib" && XE_PREPEND($native_sound_lib, LIBS) | 3394 test -n "$native_sound_lib" && XE_PREPEND($native_sound_lib, LIBS) |
3820 fi | 3395 fi |
3821 | 3396 |
3822 dnl NAS Sound support | 3397 case "$with_sound" in both | nas ) |
3823 if test "$with_nas_sound" != "no"; then | 3398 AC_DEFINE(HAVE_NAS_SOUND) |
3824 AC_CHECK_HEADER(audio/audiolib.h, [ | 3399 XE_ADD_OBJS(nas.o) |
3825 AC_CHECK_LIB(audio, AuOpenServer, have_nas_sound=yes)]) | 3400 XE_PREPEND(-laudio, libs_x) |
3826 if test "$have_nas_sound" = "yes"; then | 3401 dnl If the nas library does not contain the error jump point, |
3827 with_nas_sound=yes | 3402 dnl then we force safer behavior. |
3828 AC_DEFINE(HAVE_NAS_SOUND) | 3403 AC_EGREP_HEADER(AuXtErrorJump,audio/Xtutil.h,,[AC_DEFINE(NAS_NO_ERROR_JUMP)]) |
3829 XE_ADD_OBJS(nas.o) | 3404 esac |
3830 XE_PREPEND(-laudio, libs_x) | |
3831 dnl If the nas library does not contain the error jump point, | |
3832 dnl then we force safer behavior. | |
3833 AC_EGREP_HEADER(AuXtErrorJump,audio/Xtutil.h,,[old_nas=yes; AC_DEFINE(NAS_NO_ERROR_JUMP)]) | |
3834 else | |
3835 test "$with_nas_sound" = "yes" && \ | |
3836 XE_DIE("Required NAS sound support cannot be provided.") | |
3837 with_nas_sound=no | |
3838 fi | |
3839 fi | |
3840 | |
3841 dnl ESD Sound support | |
3842 if test "$with_esd_sound" != "no"; then | |
3843 AC_CHECK_PROG(have_esd_config, esd-config, yes, no) | |
3844 if test "$have_esd_config" = "yes"; then | |
3845 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" | |
3846 XE_APPEND(`esd-config --cflags`, c_switch_site) | |
3847 XE_PREPEND(`esd-config --libs`, LIBS) | |
3848 AC_CHECK_FUNC(esd_play_stream, | |
3849 have_esd_sound=yes, | |
3850 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS") | |
3851 fi | |
3852 | |
3853 if test "$have_esd_sound" = "yes"; then | |
3854 with_esd_sound=yes | |
3855 need_miscplay=yes | |
3856 XE_ADD_OBJS(esd.o) | |
3857 AC_DEFINE(HAVE_ESD_SOUND) | |
3858 else | |
3859 test "$with_esd_sound" = "yes" && \ | |
3860 XE_DIE("Required ESD sound support cannot be provided.") | |
3861 with_esd_sound=no | |
3862 fi | |
3863 fi | |
3864 | |
3865 test "$need_miscplay" = "yes" && XE_ADD_OBJS(miscplay.o) | |
3866 | 3405 |
3867 dnl --------------------- | 3406 dnl --------------------- |
3868 dnl TTY-dependent options | 3407 dnl TTY-dependent options |
3869 dnl --------------------- | 3408 dnl --------------------- |
3870 | 3409 |
3879 if test -z "$with_ncurses"; then | 3418 if test -z "$with_ncurses"; then |
3880 AC_CHECK_LIB(ncurses, tgetent, with_ncurses=yes, with_ncurses=no) | 3419 AC_CHECK_LIB(ncurses, tgetent, with_ncurses=yes, with_ncurses=no) |
3881 fi | 3420 fi |
3882 if test "$with_ncurses" = "yes"; then | 3421 if test "$with_ncurses" = "yes"; then |
3883 AC_DEFINE(HAVE_NCURSES) | 3422 AC_DEFINE(HAVE_NCURSES) |
3884 AC_CHECK_HEADER(ncurses/curses.h, curses_h_file=ncurses/curses.h) | 3423 AC_CHECK_HEADER(ncurses/curses.h, curses_h_path=ncurses/curses.h) |
3885 AC_CHECK_HEADER(ncurses/term.h, term_h_file=ncurses/term.h) | 3424 AC_CHECK_HEADER(ncurses/term.h, term_h_path=ncurses/term.h) |
3886 XE_ADD_OBJS(terminfo.o) | 3425 XE_ADD_OBJS(terminfo.o) |
3887 XE_PREPEND(-lncurses, LIBS) | 3426 XE_PREPEND(-lncurses, LIBS) |
3888 | 3427 |
3889 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then | 3428 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then |
3890 dnl Try again, and check for the bogus ncurses/ include bug. | 3429 dnl Try again, and check for the bogus ncurses/ include bug. |
3891 dnl (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of | 3430 dnl (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of |
3892 dnl <ncurses/unctrl.h>) | 3431 dnl <ncurses/unctrl.h>) |
3893 save_c_switch_site="$c_switch_site" | 3432 save_c_switch_site="$c_switch_site" |
3894 c_switch_site="$c_switch_site -I/usr/include/ncurses" | 3433 c_switch_site="$c_switch_site -I/usr/include/ncurses" |
3895 AC_CHECK_HEADER(ncurses/curses.h, curses_h_file=ncurses/curses.h) | 3434 AC_CHECK_HEADER(ncurses/curses.h, curses_h_path=ncurses/curses.h) |
3896 if test "$ac_cv_header_ncurses_curses_h" = "yes" | 3435 if test "$ac_cv_header_ncurses_curses_h" = "yes" |
3897 then AC_MSG_WARN("Your system has the bogus ncurses include bug.") | 3436 then AC_MSG_WARN("Your system has the bogus ncurses include bug.") |
3898 else c_switch_site="$save_c_switch_site" | 3437 else c_switch_site="$save_c_switch_site" |
3899 fi | 3438 fi |
3900 fi | 3439 fi |
3922 AC_CHECK_LIB(termcap, tgetent, XE_PREPEND(-ltermcap, LIBS), | 3461 AC_CHECK_LIB(termcap, tgetent, XE_PREPEND(-ltermcap, LIBS), |
3923 XE_ADD_OBJS(termcap.o))) | 3462 XE_ADD_OBJS(termcap.o))) |
3924 fi | 3463 fi |
3925 fi | 3464 fi |
3926 fi | 3465 fi |
3927 AC_DEFINE_UNQUOTED(CURSES_H_FILE, "${curses_h_file-curses.h}") | 3466 AC_DEFINE_UNQUOTED(CURSES_H_PATH, "${curses_h_path-curses.h}") |
3928 AC_DEFINE_UNQUOTED(TERM_H_FILE, "${term_h_file-term.h}") | 3467 AC_DEFINE_UNQUOTED(TERM_H_PATH, "${term_h_path-term.h}") |
3929 | 3468 |
3930 dnl Autodetect gpm | 3469 dnl Autodetect gpm |
3931 test -z "$with_gpm" && { AC_CHECK_HEADER(gpm.h, , with_gpm=no) } | 3470 test -z "$with_gpm" && { AC_CHECK_HEADER(gpm.h, , with_gpm=no) } |
3932 test -z "$with_gpm" && { AC_CHECK_LIB(gpm, Gpm_Open, with_gpm=yes, with_gpm=no) } | 3471 test -z "$with_gpm" && { AC_CHECK_LIB(gpm, Gpm_Open, with_gpm=yes, with_gpm=no) } |
3933 if test "$with_gpm" = "yes"; then | 3472 if test "$with_gpm" = "yes"; then |
3951 dnl Database support | 3490 dnl Database support |
3952 dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support. | 3491 dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support. |
3953 dnl On FreeBSD, both DB and DBM are part of libc. | 3492 dnl On FreeBSD, both DB and DBM are part of libc. |
3954 dnl By default, we check for DBM support in libgdbm, then libc, then libdbm. | 3493 dnl By default, we check for DBM support in libgdbm, then libc, then libdbm. |
3955 | 3494 |
3956 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ | 3495 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \ |
3957 != "no no no" && AC_CHECKING(for database support) | 3496 != "no no no" && AC_CHECKING(for database support) |
3958 | 3497 |
3959 dnl Check for ndbm.h, required for either kind of DBM support. | 3498 dnl Check for ndbm.h, required for either kind of DBM support. |
3960 if test "$with_database_gdbm $with_database_dbm" != "no no"; then | 3499 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then |
3961 AC_CHECK_HEADER(ndbm.h, [:], [ | 3500 AC_CHECK_HEADER(ndbm.h, [:], [ |
3962 test "$with_database_gdbm" = "yes" -o \ | 3501 test "$with_database_gnudbm" = "yes" -o \ |
3963 "$with_database_dbm" = "yes" && \ | 3502 "$with_database_dbm" = "yes" && \ |
3964 XE_DIE("Required DBM support cannot be provided.") | 3503 XE_DIE("Required DBM support cannot be provided.") |
3965 with_database_gdbm=no with_database_dbm=no]) | 3504 with_database_gnudbm=no with_database_dbm=no]) |
3966 fi | 3505 fi |
3967 | 3506 |
3968 dnl Check for DBM support in libgdbm. | 3507 dnl Check for DBM support in libgdbm. |
3969 if test "$with_database_gdbm" != "no"; then | 3508 if test "$with_database_gnudbm" != "no"; then |
3970 AC_CHECK_LIB(gdbm, dbm_open, [ | 3509 AC_CHECK_LIB(gdbm, dbm_open, [ |
3971 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm], [ | 3510 with_database_gnudbm=yes with_database_dbm=no libdbm=-lgdbm], [ |
3972 if test "$with_database_gdbm" = "yes"; then | 3511 if test "$with_database_gnudbm" = "yes"; then |
3973 XE_DIE("Required GNU DBM support cannot be provided.") | 3512 XE_DIE("Required GNU DBM support cannot be provided.") |
3974 fi | 3513 fi |
3975 with_database_gdbm=no]) | 3514 with_database_gnudbm=no]) |
3976 fi | 3515 fi |
3977 | 3516 |
3978 dnl Check for DBM support in libc and libdbm. | 3517 dnl Check for DBM support in libc and libdbm. |
3979 if test "$with_database_dbm" != "no"; then | 3518 if test "$with_database_dbm" != "no"; then |
3980 AC_CHECK_FUNC(dbm_open, [with_database_dbm=yes libdbm=], [ | 3519 AC_CHECK_FUNC(dbm_open, [with_database_dbm=yes libdbm=], [ |
3984 with_database_dbm=no])]) | 3523 with_database_dbm=no])]) |
3985 fi | 3524 fi |
3986 | 3525 |
3987 dnl Tell make about the DBM support we detected. | 3526 dnl Tell make about the DBM support we detected. |
3988 test -n "$libdbm" && XE_PREPEND("$libdbm", LIBS) | 3527 test -n "$libdbm" && XE_PREPEND("$libdbm", LIBS) |
3989 test "$with_database_gdbm" = "yes" -o \ | 3528 test "$with_database_gnudbm" = "yes" -o \ |
3990 "$with_database_dbm" = "yes" && \ | 3529 "$with_database_dbm" = "yes" && \ |
3991 AC_DEFINE(HAVE_DBM) | 3530 AC_DEFINE(HAVE_DBM) |
3992 | 3531 |
3993 dnl Check for Berkeley DB. | 3532 dnl Check for Berkeley DB. |
3994 if test "$with_database_berkdb" != "no"; then | 3533 if test "$with_database_berkdb" != "no"; then |
3995 AC_MSG_CHECKING(for Berkeley db.h) | 3534 AC_MSG_CHECKING(for Berkeley db.h) |
3996 for header in "db/db.h" "db.h"; do | 3535 for path in "db/db.h" "db.h"; do |
3997 AC_TRY_COMPILE([ | 3536 AC_TRY_COMPILE([#ifdef HAVE_INTTYPES_H |
3998 #include <stdlib.h> | |
3999 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) | |
4000 #ifdef HAVE_INTTYPES_H | |
4001 #define __BIT_TYPES_DEFINED__ | 3537 #define __BIT_TYPES_DEFINED__ |
4002 #include <inttypes.h> | 3538 #include <inttypes.h> |
4003 typedef uint8_t u_int8_t; | 3539 typedef uint8_t u_int8_t; |
4004 typedef uint16_t u_int16_t; | 3540 typedef uint16_t u_int16_t; |
4005 typedef uint32_t u_int32_t; | 3541 typedef uint32_t u_int32_t; |
4006 #ifdef WE_DONT_NEED_QUADS | 3542 #ifdef WE_DONT_NEED_QUADS |
4007 typedef uint64_t u_int64_t; | 3543 typedef uint64_t u_int64_t; |
4008 #endif | 3544 #endif |
4009 #endif | 3545 #endif |
4010 #endif | 3546 #include <$path> |
4011 #include <$header> | 3547 ],[], db_h_path="$path"; break) |
4012 ],[], db_h_file="$header"; break) | |
4013 done | 3548 done |
4014 if test -z "$db_h_file" | 3549 if test -z "$db_h_path" |
4015 then AC_MSG_RESULT(no); with_database_berkdb=no | 3550 then AC_MSG_RESULT(no); with_database_berkdb=no |
4016 else AC_MSG_RESULT($db_h_file) | 3551 else AC_MSG_RESULT($db_h_path) |
4017 fi | 3552 fi |
4018 | 3553 |
4019 if test "$with_database_berkdb" != "no"; then | 3554 if test "$with_database_berkdb" != "no"; then |
4020 AC_MSG_CHECKING(for Berkeley DB version) | 3555 AC_MSG_CHECKING(for Berkeley DB version) |
4021 AC_EGREP_CPP(yes, | 3556 AC_EGREP_CPP(yes, |
4022 [#include <$db_h_file> | 3557 [#include <$db_h_path> |
4023 #if DB_VERSION_MAJOR > 1 | 3558 #if DB_VERSION_MAJOR > 1 |
4024 yes | 3559 yes |
4025 #endif | 3560 #endif |
4026 ], [AC_MSG_RESULT(2); dbfunc=db_open], [AC_MSG_RESULT(1); dbfunc=dbopen]) | 3561 ], [AC_MSG_RESULT(2); dbfunc=db_open], [AC_MSG_RESULT(1); dbfunc=dbopen]) |
4027 AC_CHECK_FUNC($dbfunc, with_database_berkdb=yes need_libdb=no, [ | 3562 AC_CHECK_FUNC($dbfunc, with_database_berkdb=yes need_libdb=no, [ |
4028 AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes)]) | 3563 AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes)]) |
4029 fi | 3564 fi |
4030 | 3565 |
4031 if test "$with_database_berkdb" = "yes"; then | 3566 if test "$with_database_berkdb" = "yes"; then |
4032 AC_DEFINE_UNQUOTED(DB_H_FILE, "$db_h_file") | 3567 AC_DEFINE_UNQUOTED(DB_H_PATH, "$db_h_path") |
4033 AC_DEFINE(HAVE_BERKELEY_DB) | 3568 AC_DEFINE(HAVE_BERKELEY_DB) |
4034 test "$need_libdb" = "yes" && XE_PREPEND(-ldb, LIBS) | 3569 test "$need_libdb" = "yes" && XE_PREPEND(-ldb, LIBS) |
4035 else with_database_berkdb=no | 3570 else with_database_berkdb=no |
4036 fi | 3571 fi |
4037 fi | 3572 fi |
4038 | 3573 |
4039 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ | 3574 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \ |
4040 != "no no no"; then | 3575 != "no no no"; then |
4041 AC_DEFINE(HAVE_DATABASE) | 3576 AC_DEFINE(HAVE_DATABASE) |
4042 XE_ADD_OBJS(database.o) | 3577 XE_ADD_OBJS(database.o) |
4043 fi | 3578 fi |
4044 | 3579 |
4053 AC_DEFINE(USAGE_TRACKING) | 3588 AC_DEFINE(USAGE_TRACKING) |
4054 XE_PREPEND(-Bstatic -lut -Bdynamic, LIBS) | 3589 XE_PREPEND(-Bstatic -lut -Bdynamic, LIBS) |
4055 fi | 3590 fi |
4056 | 3591 |
4057 dnl autodetect dll support | 3592 dnl autodetect dll support |
4058 if test "$with_modules" != "no"; then | 3593 AC_CHECK_HEADERS(dlfcn.h, [have_dlfcn=yes |
4059 AC_CHECKING(for module support) | 3594 AC_DEFINE(HAVE_DLFCN_H)]) |
4060 | 3595 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { AC_CHECK_LIB(dl, dlopen, [ AC_DEFINE(HAVE_DLOPEN) DLL_LIB=dl; with_shlib=yes]) } |
4061 dnl Check for MS-Windows | 3596 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { AC_CHECK_LIB(c, _dlopen, [ AC_DEFINE(HAVE_DLOPEN) DLL_LIB=; with_shlib=yes]) } |
4062 if test "$with_msw" = "yes"; then | 3597 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { AC_CHECK_LIB(c, dlopen, [ AC_DEFINE(HAVE_DLOPEN) DLL_LIB=; with_shlib=yes]) } |
4063 have_dl=yes; | 3598 test -z "$with_shlib" && { AC_CHECK_LIB(dld, shl_load, [ AC_DEFINE(HAVE_SHL_LOAD) DLL_LIB=dld; with_shlib=yes]) } |
4064 else | 3599 test -z "$with_shlib" && { AC_CHECK_LIB(dld, dld_init, [ AC_DEFINE(HAVE_DLD_INIT) DLL_LIB=dld; with_shlib=yes]) } |
4065 dnl Find headers and libraries | 3600 if test "$with_shlib" = "yes"; then |
4066 AC_CHECK_HEADER(dlfcn.h, [ | 3601 XE_SHLIB_STUFF |
4067 AC_CHECK_LIB(dl, dlopen, [ have_dl=yes libdl=dl], [ | |
4068 AC_CHECK_LIB(c, dlopen, [ have_dl=yes ])])]) | |
4069 if test -n "$have_dl"; then | |
4070 AC_DEFINE(HAVE_DLOPEN) | |
4071 else | |
4072 AC_CHECK_LIB(dld, shl_load, [ | |
4073 libdl=dld have_dl=yes; | |
4074 AC_DEFINE(HAVE_SHL_LOAD)], [ | |
4075 AC_CHECK_LIB(dld, dld_init, [ | |
4076 libdl=dld have_dl=yes; | |
4077 AC_DEFINE(HAVE_DLD_INIT)])]) | |
4078 fi | |
4079 fi dnl end !MS-Windows | |
4080 | |
4081 if test -n "$have_dl"; then | |
4082 dnl XE_SHLIB_STUFF (in aclocal.m4) defines $can_build_shared | |
4083 XE_SHLIB_STUFF | |
4084 fi | |
4085 | |
4086 if test "$can_build_shared" = "yes"; then | 3602 if test "$can_build_shared" = "yes"; then |
4087 AC_DEFINE(HAVE_SHLIB) | 3603 AC_DEFINE(HAVE_SHLIB) |
4088 XE_ADD_OBJS(sysdll.o emodules.o) | 3604 XE_ADD_OBJS(sysdll.o) |
3605 XE_ADD_OBJS(emodules.o) | |
4089 XE_APPEND(src, INSTALL_ARCH_DEP_SUBDIR) | 3606 XE_APPEND(src, INSTALL_ARCH_DEP_SUBDIR) |
4090 test -n "$libdl" && XE_PREPEND(-l${libdl}, LIBS) | 3607 test ! -z "$DLL_LIB" && XE_PREPEND(-l${DLL_LIB}, LIBS) |
4091 AC_CHECK_FUNCS(dlerror _dlerror) | 3608 AC_CHECK_FUNCS(dlerror _dlerror) |
4092 with_modules=yes | |
4093 else | 3609 else |
4094 if test "$with_modules" = "yes"; then | 3610 AC_MSG_WARN(disabling shared library support) |
4095 XE_DIE("Required module support cannot be provided.") | 3611 with_shlib=no |
4096 else | |
4097 AC_MSG_WARN("Module support cannot be provided.") | |
4098 fi | |
4099 with_modules=no | |
4100 fi | 3612 fi |
4101 fi | 3613 fi |
4102 | 3614 |
4103 dnl Unfortunately, just because we can link doesn't mean we can run. | 3615 dnl Unfortunately, just because we can link doesn't mean we can run. |
4104 dnl One of the above link tests may have succeeded but caused resulting | 3616 dnl One of the above link tests may have succeeded but caused resulting |
4182 ld_switch_general ld_switch_window_system ld_switch_all | 3694 ld_switch_general ld_switch_window_system ld_switch_all |
4183 ld_libs_general ld_libs_window_system ld_libs_all) | 3695 ld_libs_general ld_libs_window_system ld_libs_all) |
4184 echo "" | 3696 echo "" |
4185 fi | 3697 fi |
4186 | 3698 |
4187 dnl ---------------------------------------------- | 3699 dnl Create some auxiliary files |
4188 dnl Create some auxiliary files for developers. | 3700 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then |
4189 dnl ---------------------------------------------- | 3701 echo "creating src/gdbinit"; echo "" |
4190 | 3702 echo "source $srcdir/src/gdbinit" > src/gdbinit |
4191 dnl Create a .gdbinit useful for debugging XEmacs | |
4192 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then | |
4193 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit" | |
4194 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit" | |
4195 fi | |
4196 | |
4197 dnl Create a .dbxrc useful for debugging XEmacs | |
4198 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then | |
4199 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc" | |
4200 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc" | |
4201 fi | |
4202 | |
4203 dnl Create a useful TAGS file | |
4204 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then | |
4205 test "$extra_verbose" = "yes" && echo "creating TAGS" | |
4206 echo " | |
4207 $srcdir/TAGS,include" > "TAGS" | |
4208 fi | 3703 fi |
4209 | 3704 |
4210 dnl Create top level .sbinit for Sun compilers | 3705 dnl Create top level .sbinit for Sun compilers |
4211 if test "$__SUNPRO_C" = "yes"; then | 3706 if test "$__SUNPRO_C" = "yes"; then |
4212 test "$extra_verbose" = "yes" && echo "creating .sbinit" | 3707 echo "creating .sbinit"; echo "" |
4213 ( echo "# For use with Sun WorkShop's Source browser." | 3708 ( echo "# For use with Sun WorkShop's Source browser." |
4214 echo "# See sbquery(1) and sbinit(4) for more information" | 3709 echo "# See sbquery(1) and sbinit(4) for more information" |
4215 for dir in $MAKE_SUBDIR; do echo "import $dir"; done | 3710 for dir in $MAKE_SUBDIR; do echo "import $dir"; done |
4216 ) > .sbinit | 3711 ) > .sbinit |
4217 fi | 3712 fi |
4228 | 3723 |
4229 AC_SUBST(PROGNAME) | 3724 AC_SUBST(PROGNAME) |
4230 AC_SUBST(version) | 3725 AC_SUBST(version) |
4231 AC_SUBST(configuration) | 3726 AC_SUBST(configuration) |
4232 AC_SUBST(canonical) | 3727 AC_SUBST(canonical) |
4233 AC_SUBST(inststaticdir) | |
4234 AC_SUBST(instvardir) | |
4235 AC_SUBST(srcdir) | 3728 AC_SUBST(srcdir) |
4236 AC_SUBST(bindir) | 3729 AC_SUBST(bindir) |
4237 AC_SUBST(datadir) | 3730 AC_SUBST(datadir) |
4238 AC_SUBST(pkgdir) | 3731 AC_SUBST(pkgdir) |
4239 AC_SUBST(statedir) | 3732 AC_SUBST(statedir) |
4240 AC_SUBST(libdir) | 3733 AC_SUBST(libdir) |
4241 AC_SUBST(mandir) | 3734 AC_SUBST(mandir) |
4242 | 3735 |
4243 AC_SUBST(prefix) | 3736 AC_SUBST(prefix) |
4244 AC_SUBST(PREFIX_USER_DEFINED) | |
4245 dnl Yo, Stephen Bourne! I want to marry you! | 3737 dnl Yo, Stephen Bourne! I want to marry you! |
4246 PREFIX=$prefix | 3738 PREFIX=$prefix |
4247 while true; do | 3739 while true; do |
4248 case "$PREFIX" in | 3740 case "$PREFIX" in |
4249 *\$* ) eval "PREFIX=$PREFIX" ;; | 3741 *\$* ) eval "PREFIX=$PREFIX" ;; |
4251 esac | 3743 esac |
4252 done | 3744 done |
4253 AC_SUBST(PREFIX) | 3745 AC_SUBST(PREFIX) |
4254 | 3746 |
4255 AC_SUBST(exec_prefix) | 3747 AC_SUBST(exec_prefix) |
4256 AC_SUBST(EXEC_PREFIX_USER_DEFINED) | |
4257 EXEC_PREFIX=$exec_prefix | 3748 EXEC_PREFIX=$exec_prefix |
4258 while true; do | 3749 while true; do |
4259 case "$EXEC_PREFIX" in | 3750 case "$EXEC_PREFIX" in |
4260 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;; | 3751 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;; |
4261 *) break ;; | 3752 *) break ;; |
4349 *) break ;; | 3840 *) break ;; |
4350 esac | 3841 esac |
4351 done | 3842 done |
4352 AC_SUBST(ETCDIR) | 3843 AC_SUBST(ETCDIR) |
4353 | 3844 |
4354 AC_SUBST(docdir) | 3845 AC_SUBST(lockdir) |
4355 AC_SUBST(DOCDIR_USER_DEFINED) | 3846 AC_SUBST(LOCKDIR_USER_DEFINED) |
4356 DOCDIR=$docdir | 3847 LOCKDIR=$lockdir |
4357 while true; do | 3848 while true; do |
4358 case "$DOCDIR" in | 3849 case "$LOCKDIR" in |
4359 *\$* ) eval "DOCDIR=$DOCDIR" ;; | 3850 *\$* ) eval "LOCKDIR=$LOCKDIR" ;; |
4360 *) break ;; | 3851 *) break ;; |
4361 esac | 3852 esac |
4362 done | 3853 done |
4363 AC_SUBST(DOCDIR) | 3854 AC_SUBST(LOCKDIR) |
4364 | 3855 |
4365 AC_SUBST(archlibdir) | 3856 AC_SUBST(archlibdir) |
4366 AC_SUBST(ARCHLIBDIR_USER_DEFINED) | 3857 AC_SUBST(ARCHLIBDIR_USER_DEFINED) |
4367 ARCHLIBDIR=$archlibdir | 3858 ARCHLIBDIR=$archlibdir |
4368 while true; do | 3859 while true; do |
4407 dnl Preliminary support for using a different compiler for xemacs itself. | 3898 dnl Preliminary support for using a different compiler for xemacs itself. |
4408 dnl Useful for building XEmacs with a C++ or 64-bit compiler. | 3899 dnl Useful for building XEmacs with a C++ or 64-bit compiler. |
4409 : ${XEMACS_CC:=$CC} | 3900 : ${XEMACS_CC:=$CC} |
4410 AC_SUBST(XEMACS_CC) | 3901 AC_SUBST(XEMACS_CC) |
4411 | 3902 |
4412 dnl The default is yes | |
4413 if test "$with_prefix" = "yes"; then | |
4414 AC_DEFINE(PREFIX_USER_DEFINED) | |
4415 fi | |
4416 | 3903 |
4417 dnl The default is no | 3904 dnl The default is no |
4418 if test "$with_site_lisp" = "no"; then | 3905 if test "$with_site_lisp" = "no"; then |
4419 AC_DEFINE(INHIBIT_SITE_LISP) | 3906 AC_DEFINE(INHIBIT_SITE_LISP) |
4420 fi | 3907 fi |
4422 if test "$with_site_modules" = "no"; then | 3909 if test "$with_site_modules" = "no"; then |
4423 AC_DEFINE(INHIBIT_SITE_MODULES) | 3910 AC_DEFINE(INHIBIT_SITE_MODULES) |
4424 fi | 3911 fi |
4425 | 3912 |
4426 XE_SPACE(ac_configure_args, $ac_configure_args) | 3913 XE_SPACE(ac_configure_args, $ac_configure_args) |
4427 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$configuration") | 3914 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$canonical") |
4428 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "$ac_configure_args") | 3915 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "$ac_configure_args") |
4429 AC_DEFINE_UNQUOTED(config_machfile, "$machfile") | 3916 AC_DEFINE_UNQUOTED(config_machfile, "$machfile") |
4430 AC_DEFINE_UNQUOTED(config_opsysfile, "$opsysfile") | 3917 AC_DEFINE_UNQUOTED(config_opsysfile, "$opsysfile") |
4431 | 3918 |
4432 dnl Following are deprecated | 3919 dnl Following are deprecated |
4450 AC_DEFINE(USE_SYSTEM_MALLOC) | 3937 AC_DEFINE(USE_SYSTEM_MALLOC) |
4451 fi | 3938 fi |
4452 test "$with_i18n3" = "yes" && AC_DEFINE(I18N3) | 3939 test "$with_i18n3" = "yes" && AC_DEFINE(I18N3) |
4453 test "$GCC" = "yes" && AC_DEFINE(USE_GCC) | 3940 test "$GCC" = "yes" && AC_DEFINE(USE_GCC) |
4454 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) | 3941 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) |
4455 test "$quick_build" = "yes" && AC_DEFINE(QUICK_BUILD) | 3942 test "$no_doc_file" = "yes" && AC_DEFINE(NO_DOC_FILE) |
3943 dnl test "$const_is_losing" = "yes" && AC_DEFINE(CONST_IS_LOSING) | |
4456 test "$with_purify" = "yes" && AC_DEFINE(PURIFY) | 3944 test "$with_purify" = "yes" && AC_DEFINE(PURIFY) |
4457 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) | 3945 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) |
4458 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) | 3946 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) |
4459 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) | 3947 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) |
4460 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) | 3948 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) |
4461 test "$use_union_type" = "yes" && AC_DEFINE(USE_UNION_TYPE) | 3949 test "$use_union_type" = "yes" && AC_DEFINE(USE_UNION_TYPE) |
4462 test "$pdump" = "yes" && AC_DEFINE(PDUMP) | |
4463 | 3950 |
4464 dnl ------------------------------- | 3951 dnl ------------------------------- |
4465 dnl Report on what we decided to do | 3952 dnl Report on what we decided to do |
4466 dnl ------------------------------- | 3953 dnl ------------------------------- |
4467 | 3954 |
4474 fi | 3961 fi |
4475 echo "" | 3962 echo "" |
4476 echo "$0 $quoted_arguments" | 3963 echo "$0 $quoted_arguments" |
4477 ) > Installation | 3964 ) > Installation |
4478 | 3965 |
4479 if test ! -z ${emacs_beta_version} ; then | 3966 xemacs_betaname="" |
4480 if test -z "${emacs_is_beta}" ; then | 3967 test ! -z "${emacs_beta_version}" && xemacs_betaname="-b${emacs_beta_version}" |
4481 xemacs_betaname=".${emacs_beta_version}" | |
4482 else | |
4483 xemacs_betaname="-b${emacs_beta_version}" | |
4484 fi | |
4485 else | |
4486 xemacs_betaname="" | |
4487 fi | |
4488 | 3968 |
4489 dnl Start stdout redirection to '| tee -a Installation' | 3969 dnl Start stdout redirection to '| tee -a Installation' |
4490 ( | 3970 ( |
4491 echo " | 3971 echo " |
4492 | 3972 |
4493 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'. | 3973 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'. |
4494 " | 3974 |
4495 echo " | 3975 Where should the build process find the source code? $srcdir |
4496 Compilation / Installation:" | 3976 What installation prefix should install use? $prefix |
4497 echo " Source code location: $srcdir" | 3977 What operating system and machine description files should XEmacs use? |
4498 echo " Installation prefix: $prefix" | 3978 \`$opsysfile' and \`$machfile' |
3979 What compiler should XEmacs be built with? $CC $CFLAGS | |
3980 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
3981 Should XEmacs use the relocating allocator for buffers? $rel_alloc | |
3982 What window system should XEmacs use? ${window_system}" | |
3983 if test "$with_x11" = "yes"; then | |
3984 echo " Where do we find X Windows header files? $x_includes" | |
3985 echo " Where do we find X Windows libraries? $x_libraries" | |
3986 fi | |
4499 if test -n "$site_includes"; then | 3987 if test -n "$site_includes"; then |
4500 echo " Additional header files: $site_includes" | 3988 echo " Additional header files: $site_includes" |
4501 fi | 3989 fi |
4502 if test -n "$site_libraries"; then | 3990 if test -n "$site_libraries"; then |
4503 echo " Additional libraries: $site_libraries" | 3991 echo " Additional libraries: $site_libraries" |
4504 fi | 3992 fi |
4505 if test -n "$site_prefixes"; then | 3993 if test -n "$site_prefixes"; then |
4506 echo " Additional prefixes: $site_prefixes" | 3994 echo " Additional prefixes: $site_prefixes" |
4507 fi | 3995 fi |
4508 if test -n "$runpath"; then | 3996 if test -n "$runpath"; then |
4509 echo " Runtime library search path: $runpath" | 3997 echo " Runtime library search path: $runpath" |
4510 fi | 3998 fi |
4511 echo " Operating system description file: \`$opsysfile'" | 3999 test "$with_dnet" = yes && echo " Compiling in support for DNET." |
4512 echo " Machine description file: \`$machfile'" | 4000 test "$with_socks" = yes && echo " Compiling in support for SOCKS." |
4513 echo " Compiler: $CC $CFLAGS" | 4001 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." |
4514 echo " Relocating allocator for buffers: $rel_alloc" | 4002 if test "$with_xmu" != yes -a "$with_x11" = yes; then |
4515 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}" | 4003 echo " No Xmu; substituting equivalent routines." |
4516 | 4004 fi |
4517 echo " | 4005 |
4518 Window System:" | 4006 if test "$with_xpm" = yes; then |
4519 if test "$with_msw" = "yes"; then | 4007 echo " Compiling in support for XPM images." |
4520 echo " Compiling in support for the Microsoft window system." | 4008 elif test "$with_x11" = yes; then |
4521 fi | 4009 echo " --------------------------------------------------------------------" |
4522 if test "$with_x11" = "yes"; then | 4010 echo " WARNING: Compiling without XPM support." |
4523 echo " Compiling in support for the X window system:" | 4011 if test "$xpm_problem" != ""; then |
4524 echo " - X Windows headers location: $x_includes" | 4012 echo " Reason: $xpm_problem" |
4525 echo " - X Windows libraries location: $x_libraries" | 4013 fi |
4526 if test "$with_xauth" != yes; then | 4014 echo " WARNING: You should strongly consider installing XPM." |
4527 echo " - Xau (X authority) not available." | 4015 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." |
4528 fi | 4016 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)" |
4529 if test "$with_xmu" != yes; then | 4017 echo " --------------------------------------------------------------------" |
4530 echo " - Xmu library not available; substituting equivalent routines." | 4018 fi |
4531 fi | 4019 if test "$with_png" = yes; then |
4532 if test "$with_wmcommand" != no; then | 4020 echo " Compiling in support for PNG image handling." |
4533 echo " - Handling WM_COMMAND properly." | 4021 elif test "$window_system" != "none"; then |
4534 fi | 4022 echo " --------------------------------------------------------------------" |
4535 fi | 4023 echo " WARNING: Compiling without PNG image support." |
4536 if test "$need_athena" = "yes"; then | 4024 if test "$png_problem" != ""; then |
4537 echo " Compiling in support for the Athena widget set:" | 4025 echo " Reason: $png_problem" |
4538 echo " - Athena headers location: $athena_h_path" | 4026 fi |
4539 echo " - Athena library to link: $athena_lib" | 4027 echo " WARNING: You should strongly consider installing the PNG libraries." |
4540 fi | 4028 echo " WARNING: Otherwise certain images and glyphs may not display." |
4029 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)" | |
4030 echo " --------------------------------------------------------------------" | |
4031 fi | |
4032 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling." | |
4033 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling." | |
4034 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling." | |
4035 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." | |
4036 case "$with_sound" in | |
4037 nas ) echo " Compiling in network sound (NAS) support." ;; | |
4038 native ) echo " Compiling in native sound support." ;; | |
4039 both ) echo " Compiling in both network and native sound support." ;; | |
4040 esac | |
4041 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously." | |
4042 | |
4043 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." | |
4044 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." | |
4045 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM." | |
4046 | |
4047 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)." | |
4048 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)." | |
4049 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)." | |
4050 | |
4051 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." | |
4052 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." | |
4053 | |
4054 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." | |
4055 test "$with_file_coding" = yes && echo " Compiling in File coding support." | |
4056 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." | |
4057 test "$with_xim" = motif && echo " Using Motif to provide XIM support." | |
4058 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." | |
4059 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar." | |
4060 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." | |
4061 if test "$with_wnn" = yes; then | |
4062 echo " Compiling in support for the WNN input method on Mule." | |
4063 test "$with_wnn6" = yes && echo " Using WNN version 6." | |
4064 fi | |
4065 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." | |
4066 | |
4067 test "$with_cde" = yes && echo " Compiling in support for CDE." | |
4068 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | |
4069 test "$with_offix" = yes && echo " Compiling in support for OffiX." | |
4070 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )." | |
4071 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." | |
4072 test "$with_session" != no && echo " Compiling in support for proper session-management." | |
4541 case "$with_menubars" in | 4073 case "$with_menubars" in |
4542 lucid ) echo " Using Lucid menubars." ;; | 4074 lucid ) echo " Using Lucid menubars." ;; |
4543 motif ) echo " Using Motif menubars." | 4075 motif ) echo " Using Motif menubars." |
4544 echo " *WARNING* The Motif menubar implementation is currently buggy." | 4076 echo " *WARNING* The Motif menubar implementation is currently buggy." |
4545 echo " We recommend using the Lucid menubar instead." | 4077 echo " We recommend using the Lucid menubar instead." |
4546 echo " Re-run configure with --with-menubars='lucid'." ;; | 4078 echo " Re-run configure with --with-menubars='lucid'." ;; |
4547 msw ) echo " Using MS-Windows menubars." ;; | |
4548 esac | 4079 esac |
4549 case "$with_scrollbars" in | 4080 case "$with_scrollbars" in |
4550 lucid ) echo " Using Lucid scrollbars." ;; | 4081 lucid ) echo " Using Lucid scrollbars." ;; |
4551 motif ) echo " Using Motif scrollbars." ;; | 4082 motif ) echo " Using Motif scrollbars." ;; |
4552 athena ) echo " Using Athena scrollbars." ;; | 4083 athena ) echo " Using Athena scrollbars." ;; |
4553 msw ) echo " Using MS-Windows scrollbars." ;; | 4084 athena3d ) echo " Using Athena-3d scrollbars." ;; |
4554 esac | 4085 esac |
4555 case "$with_dialogs" in | 4086 case "$with_dialogs" in |
4556 motif ) echo " Using Motif dialog boxes." | 4087 motif ) |
4557 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then | 4088 echo " Using Motif dialog boxes." |
4558 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." | 4089 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then |
4559 echo " We recommend using the Athena dialog boxes instead." | 4090 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." |
4560 echo " Install libXaw and re-run configure with --with-dialogs='athena'." | 4091 echo " We recommend using the Athena dialog boxes instead." |
4561 echo " Read the PROBLEMS file for more information." | 4092 echo " Install libXaw and re-run configure with --with-dialogs='athena'." |
4562 fi; fi ;; | 4093 echo " Read the PROBLEMS file for more information." |
4563 athena ) echo " Using Athena dialog boxes." ;; | 4094 fi; fi |
4564 msw ) echo " Using MS-Windows dialog boxes." ;; | 4095 ;; |
4096 athena ) echo " Using Athena dialog boxes." ;; | |
4097 athena3d ) echo " Using Athena-3d dialog boxes." ;; | |
4565 esac | 4098 esac |
4566 case "$with_widgets" in | 4099 test "$with_shlib" = "yes" && echo " Compiling in DLL support." |
4567 motif ) echo " Using Motif native widgets." ;; | 4100 test "$with_clash_detection" = yes && \ |
4568 athena ) echo " Using Athena native widgets." ;; | 4101 echo " Clash detection will use \"$lockdir\" for locking files." |
4569 msw ) echo " Using MS-Windows native widgets." ;; | 4102 echo " movemail will use \"$mail_locking\" for locking mail spool files." |
4570 esac | 4103 test "$with_pop" = yes && echo " Using POP for mail access." |
4571 if test "$with_dragndrop" = yes; then | 4104 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication." |
4572 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)." | 4105 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host." |
4573 echo " - Drag'n'Drop prototype: $dragndrop_proto." | 4106 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." |
4574 fi | 4107 test "$debug" = yes && echo " Compiling in extra code for debugging." |
4575 | 4108 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." |
4576 echo " | 4109 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ |
4577 TTY:" | 4110 != "no no no no no"; then |
4578 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." | |
4579 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." | |
4580 | |
4581 echo " | |
4582 Images:" | |
4583 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)." | |
4584 if test "$with_xpm" = yes; then | |
4585 echo " Compiling in support for XPM images." | |
4586 elif test "$with_x11" = yes; then | |
4587 echo " WARNING: -----------------------------------------------------------" | |
4588 echo " WARNING: Compiling without XPM image support." | |
4589 if test "$xpm_problem" != ""; then | |
4590 echo " Reason: $xpm_problem" | |
4591 fi | |
4592 echo " WARNING: You should strongly consider installing XPM." | |
4593 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." | |
4594 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)" | |
4595 echo " WARNING: -----------------------------------------------------------" | |
4596 fi | |
4597 if test "$with_png" = yes; then | |
4598 echo " Compiling in support for PNG images." | |
4599 elif test "$window_system" != "none"; then | |
4600 echo " WARNING: -----------------------------------------------------------" | |
4601 echo " WARNING: Compiling without PNG image support." | |
4602 if test "$png_problem" != ""; then | |
4603 echo " Reason: $png_problem" | |
4604 fi | |
4605 echo " WARNING: You should strongly consider installing the PNG libraries." | |
4606 echo " WARNING: Otherwise certain images and glyphs may not display." | |
4607 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)" | |
4608 echo " WARNING: -----------------------------------------------------------" | |
4609 fi | |
4610 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images." | |
4611 test "$with_tiff" = yes && echo " Compiling in support for TIFF images." | |
4612 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." | |
4613 | |
4614 echo " | |
4615 Sound:" | |
4616 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)." | |
4617 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)." | |
4618 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously." | |
4619 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)." | |
4620 | |
4621 echo " | |
4622 Databases:" | |
4623 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database." | |
4624 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." | |
4625 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM." | |
4626 test "$with_ldap" = yes && echo " Compiling in support for LDAP." | |
4627 if test "$with_postgresql" = yes; then | |
4628 echo " Compiling in support for PostgreSQL." | |
4629 echo " - Using PostgreSQL header file: $libpq_fe_h_file" | |
4630 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings." | |
4631 fi | |
4632 | |
4633 echo " | |
4634 Internationalization:" | |
4635 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." | |
4636 test "$with_file_coding" = yes && echo " Compiling in support for file coding." | |
4637 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)." | |
4638 test "$with_xim" = motif && echo " - Using Motif to provide XIM support." | |
4639 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support." | |
4640 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar." | |
4641 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." | |
4642 if test "$with_wnn" = yes; then | |
4643 echo " Compiling in support for the WNN input method on Mule." | |
4644 test "$with_wnn6" = yes && echo " - Using WNN version 6." | |
4645 fi | |
4646 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)." | |
4647 | |
4648 echo " | |
4649 Mail:" | |
4650 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval." | |
4651 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication." | |
4652 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access." | |
4653 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method." | |
4654 | |
4655 echo " | |
4656 Other Features:" | |
4657 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | |
4658 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." | |
4659 test "$with_socks" = yes && echo " Compiling in support for SOCKS." | |
4660 test "$with_dnet" = yes && echo " Compiling in support for DNET." | |
4661 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules." | |
4662 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." | |
4663 test "$pdump" = yes && echo " Using the new portable dumper." | |
4664 test "$debug" = yes && echo " Compiling in support for extra debugging code." | |
4665 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)." | |
4666 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \ | |
4667 != "no no no no no no"; then | |
4668 echo " WARNING: ---------------------------------------------------------" | 4111 echo " WARNING: ---------------------------------------------------------" |
4669 echo " WARNING: Compiling in support for runtime error checking." | 4112 echo " WARNING: Compiling in support for runtime error checking." |
4670 echo " WARNING: XEmacs will run noticeably more slowly as a result." | 4113 echo " WARNING: XEmacs will run noticeably more slowly as a result." |
4671 echo " WARNING: Error checking is on by default for XEmacs beta releases." | 4114 echo " WARNING: Error checking is on by default for XEmacs beta releases." |
4672 echo " WARNING: ---------------------------------------------------------" | 4115 echo " WARNING: ---------------------------------------------------------" |
4691 dnl except ./Makefile from $srcdir/Makefile.in | 4134 dnl except ./Makefile from $srcdir/Makefile.in |
4692 | 4135 |
4693 for file in $internal_makefile_list; do | 4136 for file in $internal_makefile_list; do |
4694 test "$file" = src/Makefile.in && \ | 4137 test "$file" = src/Makefile.in && \ |
4695 file="src/Makefile.in:src/Makefile.in.in:src/depend" | 4138 file="src/Makefile.in:src/Makefile.in.in:src/depend" |
4696 XE_APPEND($file, ac_output_files) | 4139 ac_output_files="${ac_output_files+$ac_output_files }$file" |
4697 done | 4140 done |
4698 ac_output_files="$ac_output_files src/paths.h lib-src/config.values" | 4141 ac_output_files="$ac_output_files src/paths.h lib-src/config.values" |
4699 test "$with_modules" = "yes" && XE_APPEND(lib-src/ellcc.h, ac_output_files) | 4142 if test "$with_shlib" = "yes"; then |
4143 ac_output_files="$ac_output_files lib-src/ellcc.h" | |
4144 fi | |
4700 | 4145 |
4701 AC_OUTPUT($ac_output_files, | 4146 AC_OUTPUT($ac_output_files, |
4702 [for dir in . $MAKE_SUBDIR; do | 4147 [for dir in . $MAKE_SUBDIR; do |
4703 ( | 4148 ( |
4704 cd $dir | 4149 cd $dir |