Mercurial > hg > xemacs-beta
comparison configure @ 120:cca96a509cfe r20-1b12
Import from CVS: tag r20-1b12
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:25:29 +0200 |
parents | 7d55a9ba150c |
children | 1370575f1259 |
comparison
equal
deleted
inserted
replaced
119:d101af7320b8 | 120:cca96a509cfe |
---|---|
196 | 196 |
197 --with-x (*) Support the X Window System. | 197 --with-x (*) Support the X Window System. |
198 --with-x=no Don't support X. | 198 --with-x=no Don't support X. |
199 --x-includes=DIR Search for X header files in DIR. | 199 --x-includes=DIR Search for X header files in DIR. |
200 --x-libraries=DIR Search for X libraries in DIR. | 200 --x-libraries=DIR Search for X libraries in DIR. |
201 --with-ns Support NeXTstep windows (not yet implemented). | |
202 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid | 201 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid |
203 widgets emulate Motif (mostly) but are faster. | 202 widgets emulate Motif (mostly) but are faster. |
204 *WARNING* The Motif menubar is currently broken. | 203 *WARNING* The Motif menubar is currently broken. |
205 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena, | 204 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena, |
206 athena3d, or no). | 205 athena3d, or no). |
254 --with-sound=nas Compile with network sound support. | 253 --with-sound=nas Compile with network sound support. |
255 --with-sound=both Compile with native and network sound support. | 254 --with-sound=both Compile with native and network sound support. |
256 --native-sound-lib=LIB Native sound support library. Needed on Suns | 255 --native-sound-lib=LIB Native sound support library. Needed on Suns |
257 with --with-sound=both because both sound libraries | 256 with --with-sound=both because both sound libraries |
258 are called libaudio. | 257 are called libaudio. |
259 --with-epoch Compile with additional Epoch compatibility. | |
260 --with-mocklisp Compile with Mocklisp support. Don't do this | 258 --with-mocklisp Compile with Mocklisp support. Don't do this |
261 unless you have a Mocklisp program that you need | 259 unless you have a Mocklisp program that you need |
262 to run. | 260 to run. |
263 --usage-tracking Enable some Sun-internal code. If you don't | 261 --usage-tracking Enable some Sun-internal code. If you don't |
264 know what this is, you don't want it. | 262 know what this is, you don't want it. |
335 # # | 333 # # |
336 # Options processing # | 334 # Options processing # |
337 # # | 335 # # |
338 ############################################################################ | 336 ############################################################################ |
339 | 337 |
338 | |
339 | |
340 ### Record all the arguments, so we can save them in config.status. | 340 ### Record all the arguments, so we can save them in config.status. |
341 arguments="$@" | 341 arguments="$@" |
342 | 342 |
343 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date, | 343 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date, |
344 ### in order to get the arguments back in $@, we have to do an | 344 ### in order to get the arguments back in $@, we have to do an |
345 ### `eval set x "$quoted_arguments"; shift'. | 345 ### `eval set x "$quoted_arguments"; shift'. |
346 ### We use sed to turn embedded ' into '"'"'. I truly hate sh's quoting. | |
347 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g | |
346 quoted_arguments= | 348 quoted_arguments= |
347 for i in "$@"; do | 349 for i in "$@"; do |
348 quoted_arguments="$quoted_arguments '$i'" | 350 case "$i" in |
351 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
352 | --no-cr | --no-c) ;; | |
353 -norecursion | --norecursion | --norecursio | --norecursi \ | |
354 | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;; | |
355 *) | |
356 quoted_i="`echo $i | sed $quoted_sed_magic`" | |
357 quoted_arguments="$quoted_arguments '$quoted_i'" ;; | |
358 esac | |
349 done | 359 done |
350 | 360 |
351 ### Don't use shift -- that destroys the argument list, which autoconf needs | 361 ### Don't use shift -- that destroys the argument list, which autoconf needs |
352 ### to produce config.status. It turns out that "set - ${arguments}" doesn't | 362 ### to produce config.status. It turns out that "set - ${arguments}" doesn't |
353 ### work portably. | 363 ### work portably. |
396 with_x | \ | 406 with_x | \ |
397 with_x11 | \ | 407 with_x11 | \ |
398 with_gcc | \ | 408 with_gcc | \ |
399 with_lcc | \ | 409 with_lcc | \ |
400 with_gnu_make | \ | 410 with_gnu_make | \ |
401 with_epoch | \ | |
402 dynamic | \ | 411 dynamic | \ |
403 with_term | \ | 412 with_term | \ |
404 with_cde | \ | 413 with_cde | \ |
405 with_offix | \ | 414 with_offix | \ |
406 with_xpm | \ | 415 with_xpm | \ |
409 with_tiff | \ | 418 with_tiff | \ |
410 with_socks | \ | 419 with_socks | \ |
411 with_xface | \ | 420 with_xface | \ |
412 with_xmu | \ | 421 with_xmu | \ |
413 quantify | \ | 422 quantify | \ |
414 with_ns | \ | |
415 with_toolbars | \ | 423 with_toolbars | \ |
416 with_tty | \ | 424 with_tty | \ |
417 with_i18n3 | \ | 425 with_i18n3 | \ |
418 with_mule | \ | 426 with_mule | \ |
419 with_canna | \ | 427 with_canna | \ |
425 with_tooltalk | \ | 433 with_tooltalk | \ |
426 with_pop | \ | 434 with_pop | \ |
427 with_kerberos | \ | 435 with_kerberos | \ |
428 with_hesiod | \ | 436 with_hesiod | \ |
429 external_widget | \ | 437 external_widget | \ |
430 extra_verbose | \ | 438 verbose | \ |
439 extra_verbose | \ | |
431 const_is_losing | \ | 440 const_is_losing | \ |
432 usage_tracking | \ | 441 usage_tracking | \ |
433 use_union_type | \ | 442 use_union_type | \ |
434 debug | \ | 443 debug | \ |
435 use_assertions | \ | 444 use_assertions | \ |
437 no_doc_file ) | 446 no_doc_file ) |
438 ## Make sure the value given was either "yes" or "no". | 447 ## Make sure the value given was either "yes" or "no". |
439 case "${val}" in | 448 case "${val}" in |
440 y | ye | yes ) val=yes ;; | 449 y | ye | yes ) val=yes ;; |
441 n | no ) val=no ;; | 450 n | no ) val=no ;; |
442 * ) | 451 * ) (echo "${progname}: Usage error:" |
443 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value. | 452 echo " " "The \`--${optname}' option requires a boolean value: \`yes' or \`no'." |
444 Set it to either \`yes' or \`no'." | 453 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; |
445 echo "${short_usage}") >&2 | |
446 exit 1 ;; | |
447 esac | 454 esac |
448 eval "${opt}=\"${val}\"" ;; | 455 eval "${opt}=\"${val}\"" ;; |
449 | 456 |
450 | 457 |
451 ## Options that take a user-supplied value, as in --puresize=8000000 | 458 ## Options that take a user-supplied value, as in --puresize=8000000 |
452 srcdir | \ | 459 srcdir | \ |
453 compiler | \ | 460 compiler | \ |
454 puresize | \ | 461 puresize | \ |
455 native_sound_lib | \ | 462 native_sound_lib | \ |
456 x_includes | \ | 463 x_includes | \ |
457 x_libraries | \ | 464 x_libraries | \ |
458 wnn_includes | \ | 465 wnn_includes | \ |
459 wnn_libraries | \ | 466 wnn_libraries | \ |
460 canna_includes | \ | 467 canna_includes | \ |
461 canna_libraries | \ | 468 canna_libraries | \ |
462 site_includes | \ | 469 site_includes | \ |
463 site_libraries | \ | 470 site_libraries | \ |
464 site_runtime_libraries ) | 471 site_runtime_libraries ) |
465 ## If the value was omitted, get it from the next argument. | 472 ## If the value was omitted, get it from the next argument. |
466 if test "${valomitted}" = "yes" ; then | 473 if test "${valomitted}" = "yes" ; then |
467 ## Get the next argument from the argument list, if there is one. | 474 ## Get the next argument from the argument list, if there is one. |
468 if test $# = 0 ; then | 475 if test "$#" = 0 ; then |
469 (echo "${progname}: You must give a value for the \`--${optname}' option, as in | 476 (echo "${progname}: Usage error:" |
470 \`--${optname}=FOO'." | 477 echo " " "The \`--${optname}' option requires a value." |
471 echo "${short_usage}") >&2 | 478 echo " Use \`${progname} --help' for more details.") >&2 && exit 1; |
472 exit 1 | |
473 fi | 479 fi |
474 val="$1"; shift | 480 val="$1"; shift |
475 fi | 481 fi |
476 eval "${opt}=\"${val}\"" | 482 eval "${opt}=\"${val}\"" |
477 ;; | 483 ;; |
482 case "${val}" in | 488 case "${val}" in |
483 y | ye | yes ) val=yes ;; | 489 y | ye | yes ) val=yes ;; |
484 n | no ) val=no ;; | 490 n | no ) val=no ;; |
485 d | de | def | defa | defau | defaul | default ) | 491 d | de | def | defa | defau | defaul | default ) |
486 val=default ;; | 492 val=default ;; |
487 * ) | 493 * ) (echo "${progname}: Usage error:" |
488 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'. | 494 echo " " "The \`--${optname}' option requires one of these values: |
489 Set it to either \`yes', \`no', or \`default'." | 495 \`yes', \`no', or \`default'." |
490 echo "${short_usage}") >&2 | 496 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; |
491 exit 1 | |
492 ;; | |
493 esac | 497 esac |
494 eval "${opt}=\"${val}\"" | 498 eval "${opt}=\"${val}\"" |
495 ;; | 499 ;; |
496 | 500 |
497 ## Has the user requested database support? | 501 ## Has the user requested database support? |
498 "with_database" ) | 502 "with_database" ) |
499 if test "${val}" = "no" ; then | 503 with_database_berkdb=no |
500 with_database_berkdb=no | 504 with_database_dbm=no |
501 with_database_dbm=no | 505 with_database_gnudbm=no |
502 with_database_gnudbm=no | 506 ## Make sure the value given was `no' or a list of berkdb, dbm, gnudbm |
503 else | 507 for x in `echo "${val}" | sed 's/,/ /'` ; do |
504 ## Make sure the value given was berkdb, dbm, gnudbm, or a list | 508 case "${x}" in |
505 for x in `echo "${val}" | sed 's/,/ /'` ; do | 509 no ) : ;; |
506 case "${x}" in | 510 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; |
507 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; | 511 d | db | dbm ) with_database_dbm=yes ;; |
508 d | db | dbm ) with_database_dbm=yes ;; | |
509 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; | 512 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; |
510 * ) | 513 * ) (echo "${progname}: Usage error:" |
511 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no' | 514 echo " " "The \`--${optname}' option value |
512 or a comma-separated list of one or more of \`berkdb', \`dbm', or \`gnudbm'." | 515 must be either \`no' or a comma-separated list |
513 echo "${short_usage}") >&2 | 516 of one or more of \`berkdb', \`dbm', or \`gnudbm'." |
514 exit 1 | 517 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; |
515 ;; | 518 esac |
516 esac | 519 done |
517 done | 520 if test "${with_database_dbm}" = "yes" -a \ |
518 if test "${with_database_dbm}" = "yes" -a "${with_database_gnudbm}" = "yes" | 521 "${with_database_gnudbm}" = "yes" ; then |
519 then | 522 (echo "${progname}: Usage error:" |
520 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2 | 523 echo " " "Only one of \`dbm' and \`gnudbm' may be specified |
521 exit 1 | 524 with the \`--${optname}' option." |
522 fi | 525 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 |
523 fi | 526 fi |
524 ;; | 527 ;; |
525 | 528 |
526 ## Has the user requested sound support? | 529 ## Has the user requested sound support? |
527 "with_sound" ) | 530 "with_sound" ) |
531 y | ye | yes ) val=native ;; | 534 y | ye | yes ) val=native ;; |
532 n | no | non | none ) val=no;; | 535 n | no | non | none ) val=no;; |
533 na | nat | nati | nativ | native ) val=native ;; | 536 na | nat | nati | nativ | native ) val=native ;; |
534 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;; | 537 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;; |
535 b | bo | bot | both ) val=both;; | 538 b | bo | bot | both ) val=both;; |
536 * ) | 539 * ) (echo "${progname}: Usage error:" |
537 (echo "${progname}: the \`--${optname}' option should have one of the values:" | 540 echo " " "The \`--${optname}' option must have one of these values: |
538 echo "\`native', \`nas', \`both', or \`none'." | 541 \`native', \`nas', \`both', or \`none'." |
539 echo "" | 542 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; |
540 echo "${short_usage}") >&2 | |
541 exit 1 | |
542 ;; | |
543 esac | 543 esac |
544 eval "${opt}=\"${val}\"" | 544 eval "${opt}=\"${val}\"" |
545 ;; | 545 ;; |
546 | 546 |
547 ## Has the user requested XIM support? | 547 ## Has the user requested XIM support? |
548 "with_xim" ) | 548 "with_xim" ) |
549 ## value can be xlib or motif | 549 ## value can be xlib or motif |
550 ## as a backwards compatible synonym for native | |
551 case "${val}" in | 550 case "${val}" in |
552 y | ye | yes ) val=yes ;; | 551 y | ye | yes ) val=yes ;; |
553 n | no | non | none ) val=no ;; | 552 n | no | non | none ) val=no ;; |
554 x | xl | xli | xlib ) val=xlib ;; | 553 x | xl | xli | xlib ) val=xlib ;; |
555 m | mo | mot | moti | motif ) val=motif ;; | 554 m | mo | mot | moti | motif ) val=motif ;; |
556 * ) | 555 * ) (echo "${progname}: Usage error:" |
557 (echo "${progname}: the \`--${optname}' option should have one of the values:" | 556 echo " " "The \`--${optname}' option must have one of these values: |
558 echo "\`motif', \`xlib', \`yes', or \`no'." | 557 \`motif', \`xlib', \`yes', or \`no'." |
559 echo "" | 558 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; |
560 echo "${short_usage}") >&2 | |
561 exit 1 | |
562 ;; | |
563 esac | 559 esac |
564 eval "${opt}=\"${val}\"" | 560 eval "${opt}=\"${val}\"" |
565 ;; | 561 ;; |
566 | 562 |
567 ## Has the user requested PNG support? | 563 ## Has the user requested PNG support? |
569 ## Make sure the value given was either "yes", "no", or "gnuz". | 565 ## Make sure the value given was either "yes", "no", or "gnuz". |
570 case "${val}" in | 566 case "${val}" in |
571 y | ye | yes ) val=yes ;; | 567 y | ye | yes ) val=yes ;; |
572 n | no ) val=no ;; | 568 n | no ) val=no ;; |
573 g | gn | gnu | gnuz ) val=gnuz ;; | 569 g | gn | gnu | gnuz ) val=gnuz ;; |
574 * ) | 570 * ) (echo "${progname}: Usage error:" |
575 (echo "${progname}: the \`--${optname}' option is supposed to | 571 echo " " "The \`--${optname}' option must have one of these values: |
576 be either \`yes', \`no', or \`gnuz'." | 572 \`yes', \`no', or \`gnuz'." |
577 echo "${short_usage}") >&2 | 573 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; |
578 exit 1 | |
579 ;; | |
580 esac | 574 esac |
581 eval "${opt}=\"${val}\"" | 575 eval "${opt}=\"${val}\"" |
582 ;; | 576 ;; |
583 | 577 |
584 ## Has the user requested error-checking? | 578 ## Has the user requested error-checking? |
610 | 604 |
611 * ) bogus_error_check=yes ;; | 605 * ) bogus_error_check=yes ;; |
612 esac | 606 esac |
613 if test "$bogus_error_check" -o \ | 607 if test "$bogus_error_check" -o \ |
614 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then | 608 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then |
615 ( echo "${progname}: Valid types for the \`--${optname}' option are:" | |
616 if test $error_check_default = yes ; then | 609 if test $error_check_default = yes ; then |
617 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'." | 610 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'." |
618 else | 611 else |
619 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'." | 612 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'." |
620 fi | 613 fi |
621 echo "${short_usage}" ) >&2 | 614 (echo "${progname}: Usage error:" |
622 exit 1 | 615 echo " " "Valid types for the \`--${optname}' option are: |
616 $types." | |
617 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 | |
623 elif test "$new_default" ; then | 618 elif test "$new_default" ; then |
624 error_check_extents=$new_default | 619 error_check_extents=$new_default |
625 error_check_typecheck=$new_default | 620 error_check_typecheck=$new_default |
626 error_check_bufpos=$new_default | 621 error_check_bufpos=$new_default |
627 error_check_gc=$new_default | 622 error_check_gc=$new_default |
641 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ | 636 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ |
642 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \ | 637 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \ |
643 sitelispdir | docdir ) | 638 sitelispdir | docdir ) |
644 ## If the value was omitted, get it from the next argument. | 639 ## If the value was omitted, get it from the next argument. |
645 if test "${valomitted}" = "yes" ; then | 640 if test "${valomitted}" = "yes" ; then |
646 if test $# = 0 ; then | 641 if test "$#" = 0 ; then |
647 (echo \ | 642 (echo "${progname}: Usage error:" |
648 "$progname: You must give a value for the \`--${optname}' option,"; | 643 echo " " "The \`--${optname}' option requires a value." |
649 echo \ | 644 echo " Use \`${progname} --help' for more details.") >&2 && exit 1; |
650 "as in \`--${optname}=`eval echo '$'$optname`.'" | 645 fi |
651 echo "$short_usage") >&2 | 646 val="$1"; shift |
652 exit 1 | |
653 fi | |
654 val="$1"; shift | |
655 fi | 647 fi |
656 eval "${opt}=\"${val}\"" | 648 eval "${opt}=\"${val}\"" |
657 | 649 |
658 ## Changing exec_prefix or libdir will change the default value | 650 ## Changing exec_prefix or libdir will change the default value |
659 ## of archlibdir. Changing datadir will change the default value | 651 ## of archlibdir. Changing datadir will change the default value |
675 | 667 |
676 ## Has the user specified values to override CFLAGS? | 668 ## Has the user specified values to override CFLAGS? |
677 cflags ) | 669 cflags ) |
678 ## If the value was omitted, get it from the next argument. | 670 ## If the value was omitted, get it from the next argument. |
679 if test "${valomitted}" = "yes" ; then | 671 if test "${valomitted}" = "yes" ; then |
680 if test $# = 0 ; then | 672 if test "$#" = 0 ; then |
681 (echo \ | 673 (echo "${progname}: Usage error:" |
682 "$progname: You must give a value for the \`--${optname}' option,"; | 674 echo " " "The \`--${optname}' option requires a value." |
683 echo \ | 675 echo " Use \`${progname} --help' for more details.") >&2 && exit 1; |
684 "as in \`--${optname}=`eval echo '$'$optname`-g -O'" | |
685 echo "$short_usage") >&2 | |
686 exit 1 | |
687 fi | 676 fi |
688 val="$1"; shift | 677 val="$1"; shift |
689 fi | 678 fi |
690 eval "${opt}=\"${val}\"" | 679 eval "${opt}=\"${val}\"" |
691 eval "${opt}_specified=1" | 680 eval "${opt}_specified=1" |
692 ;; | 681 ;; |
693 | 682 |
694 ## Verbose flag, tested by autoconf macros. | |
695 "verbose" ) | |
696 verbose=yes | |
697 ;; | |
698 | |
699 ## --no-create added by autoconf for use by config.status | 683 ## --no-create added by autoconf for use by config.status |
700 "no_create" ) | 684 "no_create" ) |
701 ;; | 685 ;; |
702 | 686 |
703 ## Has the user asked for some help? | 687 ## Has the user asked for some help? |
704 "usage" | "help" ) | 688 "usage" | "help" ) |
705 if test -z "$PAGER" | 689 echo "${short_usage}" | ${PAGER:-more} |
706 then echo "${short_usage}" | more | 690 exit 0 |
707 else echo "${short_usage}" | $PAGER | |
708 fi | |
709 exit | |
710 ;; | 691 ;; |
711 | 692 |
712 ## Has the user specified what toolkit to use for the menubars, | 693 ## Has the user specified what toolkit to use for the menubars, |
713 ## scrollbar or dialogs? | 694 ## scrollbar or dialogs? |
714 "with_menubars" | "with_scrollbars" | "with_dialogs" ) | 695 "with_menubars" | "with_scrollbars" | "with_dialogs" ) |
717 l | lu | luc | luci | lucid ) val=lucid ;; | 698 l | lu | luc | luci | lucid ) val=lucid ;; |
718 m | mo | mot | moti | motif ) val=motif ;; | 699 m | mo | mot | moti | motif ) val=motif ;; |
719 athena3d | athena-3d ) val=athena3d ;; | 700 athena3d | athena-3d ) val=athena3d ;; |
720 a | at | ath | athe | athen | athena ) val=athena ;; | 701 a | at | ath | athe | athen | athena ) val=athena ;; |
721 n | no | non | none ) val=no ;; | 702 n | no | non | none ) val=no ;; |
722 * ) | 703 * ) (echo "${progname}: Usage error:" |
723 (echo "${progname}: the \`--${optname}' option should have one of the values:" | 704 echo " " "The \`--${optname}' option must have one of these values: |
724 echo "\`lucid', \`motif', \`athena', or \`no'." | 705 \`lucid', \`motif', \`athena', or \`no'." |
725 echo "" | 706 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; |
726 echo "${short_usage}") >&2 | |
727 exit 1 | |
728 ;; | |
729 esac | 707 esac |
730 eval "${opt}=\"${val}\"" | 708 eval "${opt}=\"${val}\"" |
731 ;; | 709 ;; |
732 | 710 |
733 ## Fail on unrecognized arguments. | 711 ## Fail on unrecognized arguments. |
734 * ) | 712 * ) (echo "${progname}: Usage error:" |
735 (echo "${progname}: Error: unrecognized option: ${arg}" | 713 echo " " "Unrecognized option: ${arg}" |
736 echo "" | 714 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 ;; |
737 echo "${short_usage}") >& 2 | |
738 exit 1 | |
739 ;; | |
740 | 715 |
741 esac | 716 esac |
742 ;; | 717 ;; |
743 | 718 |
744 ## Anything not starting with a hyphen we assume is a | 719 ## Anything not starting with a hyphen we assume is a |
780 ### with_x is a synonym for with_x11 | 755 ### with_x is a synonym for with_x11 |
781 test -n "${with_x}" && with_x11="${with_x}" | 756 test -n "${with_x}" && with_x11="${with_x}" |
782 | 757 |
783 ### Can't specify 2 compilers | 758 ### Can't specify 2 compilers |
784 if test "${with_gcc}" = "yes" -a "${with_lcc}" = "yes"; then | 759 if test "${with_gcc}" = "yes" -a "${with_lcc}" = "yes"; then |
785 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified." | 760 (echo "${progname}: Usage error:" |
786 echo "${short_usage}") >&2 | 761 echo " " "Only one of --with-gcc and --with-lcc may be specified." |
787 exit 1 | 762 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 |
788 fi | 763 fi |
789 | 764 |
790 ### Ignore useless run-in-place flag | 765 ### Ignore useless run-in-place flag |
791 if test "${run_in_place}" = "yes"; then | 766 if test "${run_in_place}" = "yes"; then |
792 echo "configure: warning: The --run-in-place option is ignored because it is unnecessary." >&2 | 767 echo "configure: warning: The --run-in-place option is ignored because it is unnecessary." >&2 |
793 fi | 768 fi |
794 | 769 |
795 ########################################################################### | 770 ########################################################################### |
796 if test "${configuration}" = "" ; then | 771 if test "${configuration}" = "" ; then |
797 echo '- You did not tell me what kind of host system you want to configure. | 772 echo '- You did not tell me what kind of host system you want to configure. |
798 - I will attempt to guess the kind of system this is.' 1>&2 | 773 - I will attempt to guess the kind of system this is.' 1>&2 |
799 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'` | 774 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'` |
800 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then | 775 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then |
801 echo "- Looks like this is a ${configuration}" 1>&2 | 776 echo "- Looks like this is a ${configuration}" 1>&2 |
802 else | 777 else |
803 echo '- Failed to guess the system type. You need to tell me.' 1>&2 | 778 (echo "${progname}: Usage error:" |
804 echo "${short_usage}" >&2 | 779 echo " " "Failed to guess the system type. You need to tell me." |
805 exit 1 | 780 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 |
806 fi | 781 fi |
807 fi | 782 fi |
808 | 783 |
809 ### Find the source directory. | 784 ### Find the source directory. |
810 case "${srcdir}" in | 785 case "${srcdir}" in |
811 | 786 |
812 ## If it's not specified, see if `.' or `..' might work. | 787 ## If it's not specified, see if `.' or `..' might work. |
813 "" ) | 788 "" ) |
814 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do | 789 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do |
815 if test -f "$dir/src/lisp.h" -a -f "$dir/lisp/version.el" ; then | 790 if test -f "$dir/src/lisp.h" -a \ |
791 -f "$dir/lisp/version.el" ; then | |
816 srcdir="${dir}" | 792 srcdir="${dir}" |
817 break | 793 break |
818 fi | 794 fi |
819 done | 795 done |
820 if test -z "${srcdir}" ; then | 796 if test -z "${srcdir}" ; then |
821 echo "\ | 797 (echo "${progname}: Usage error:" |
822 ${progname}: Neither the current directory nor its parent seem to | 798 echo " " "Neither the current directory nor its parent seem to |
823 contain the XEmacs sources. If you do not want to build XEmacs in its | 799 contain the XEmacs sources. If you do not want to build XEmacs in its |
824 source tree, you should run \`${progname}' in the directory in which | 800 source tree, you should run \`${progname}' in the directory in which |
825 you wish to build XEmacs, using its \`--srcdir' option to say where the | 801 you wish to build XEmacs, using the \`--srcdir' option to say where the |
826 sources may be found. | 802 sources may be found." |
827 ${short_usage}" >&2 | 803 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 |
828 exit 1 | 804 fi |
829 fi | |
830 ;; | 805 ;; |
831 | 806 |
832 ## Otherwise, check if the directory they specified is okay. | 807 ## Otherwise, check if the directory they specified is okay. |
833 * ) | 808 * ) |
834 if test ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ; then | 809 if test ! -d "${srcdir}" -o \ |
835 (echo "\ | 810 ! -f "${srcdir}/src/lisp.h" -o \ |
836 ${progname}: The directory specified with the \`--srcdir' option, | 811 ! -f "${srcdir}/lisp/version.el" ; then |
837 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should | 812 (echo "${progname}: Usage error:" |
838 either run the \`${progname}' script at the top of the XEmacs source | 813 echo " " "The directory specified with the \`--srcdir' option, |
839 tree, or use the \`--srcdir' option to specify where the XEmacs sources | 814 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should |
840 are." | 815 either run the \`${progname}' script at the top of the XEmacs source |
841 echo "${short_usage}") >&2 | 816 tree, or use the \`--srcdir' option to specify the XEmacs source directory." |
842 exit 1 | 817 echo " Use \`${progname} --help' for more details.") >&2 && exit 1 |
843 fi | 818 fi |
844 ;; | 819 ;; |
845 esac | 820 esac |
846 | 821 |
847 ## We check for this now instead of later when we check for other | 822 ## We check for this now instead of later when we check for other |
848 ## programs because we need to use its return value now. | 823 ## programs because we need to use its return value now. |
849 test -n "$silent" || echo "checking for ln -s" | 824 test -n "$silent" || echo "checking for ln -s" |
850 rm -f conftestdata | 825 rm -f conftestdata |
851 if ln -s X conftestdata 2>/dev/null | 826 if ln -s X conftestdata 2>/dev/null |
852 then | 827 then |
853 rm -f conftestdata | 828 rm -f conftestdata |
854 LN_S="ln -s" | 829 LN_S="ln -s" |
870 if test ! -d $dir ; then | 845 if test ! -d $dir ; then |
871 echo Making symbolic link to ${srcdir}/$dir | 846 echo Making symbolic link to ${srcdir}/$dir |
872 ${LN_S} ${srcdir}/$dir . | 847 ${LN_S} ${srcdir}/$dir . |
873 fi | 848 fi |
874 done | 849 done |
875 | |
876 | 850 |
877 #### Make srcdir absolute, if it isn't already. It's important to | 851 #### Make srcdir absolute, if it isn't already. It's important to |
878 #### avoid running the path through pwd unnecessary, since pwd can | 852 #### avoid running the path through pwd unnecessary, since pwd can |
879 #### give you automounter prefixes, which can go away. | 853 #### give you automounter prefixes, which can go away. |
880 case "${srcdir}" in | 854 case "${srcdir}" in |
991 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;; | 965 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;; |
992 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;; | 966 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;; |
993 | 967 |
994 ## Alpha (DEC) machines. | 968 ## Alpha (DEC) machines. |
995 ## XEmacs change: split apart into numerous files. | 969 ## XEmacs change: split apart into numerous files. |
996 alpha-dec-osf1.3 | alpha-dec-osf2* ) machine=alpha opsys=decosf1-3 ;; | 970 alpha-*-* ) |
997 alpha-dec-osf1.2 | alpha-dec-osf1* ) machine=alpha opsys=decosf1-2 ;; | 971 machine=alpha |
998 | 972 case "${canonical}" in |
999 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu) | 973 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;; |
1000 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu) | 974 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;; |
1001 alpha-dec-osf3.[2-9] ) machine=alpha opsys=decosf3-2 ;; | 975 |
1002 alpha-dec-osf3* ) machine=alpha opsys=decosf3-1 ;; | 976 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu) |
1003 alpha-dec-osf4* ) machine=alpha opsys=decosf4-0 ;; | 977 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu) |
1004 alpha-*-linux* ) machine=alpha opsys=linux ;; | 978 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;; |
979 *-dec-osf3* ) opsys=decosf3-1 ;; | |
980 *-dec-osf4* ) opsys=decosf4-0 ;; | |
981 *-*-linux* ) opsys=linux ;; | |
982 esac | |
983 ;; | |
1005 | 984 |
1006 ## Altos 3068 | 985 ## Altos 3068 |
1007 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;; | 986 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;; |
1008 | 987 |
1009 ## Amdahl UTS | 988 ## Amdahl UTS |
1051 | 1030 |
1052 ## Cydra 5 | 1031 ## Cydra 5 |
1053 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;; | 1032 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;; |
1054 | 1033 |
1055 ## Data General AViiON Machines | 1034 ## Data General AViiON Machines |
1056 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;; | 1035 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;; |
1057 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) machine=aviion opsys=dgux5-4r3 ;; | 1036 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) machine=aviion opsys=dgux5-4r3 ;; |
1058 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) machine=aviion opsys=dgux5-4r2 ;; | 1037 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) machine=aviion opsys=dgux5-4r2 ;; |
1059 m88k-dg-dgux* ) machine=aviion opsys=dgux ;; | 1038 m88k-dg-dgux* ) machine=aviion opsys=dgux ;; |
1060 | 1039 |
1061 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) machine=pmax opsys=bsd4-2 ;; | 1040 ## Dec Mips machines |
1062 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) machine=pmax opsys=bsd4-3 ;; | 1041 mips-dec-* ) |
1063 mips-dec-ultrix* ) machine=pmax opsys=ultrix4-3 ;; | 1042 machine=pmax |
1064 mips-dec-osf* ) machine=pmax opsys=osf1 ;; | 1043 case "${canonical}" in |
1065 mips-dec-mach_bsd4.3* ) machine=pmax opsys=mach-bsd4-3 ;; | 1044 *-*-ultrix[0-3].* | *-*-ultrix4.0* | *-*-bsd4.2* ) opsys=bsd4-2 ;; |
1045 *-*-ultrix4.[12]* | *-*-bsd* ) opsys=bsd4-3 ;; | |
1046 *-*-ultrix* ) opsys=ultrix4-3 ;; | |
1047 *-*-osf* ) opsys=osf1 ;; | |
1048 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;; | |
1049 esac | |
1050 ;; | |
1066 | 1051 |
1067 ## Motorola Delta machines | 1052 ## Motorola Delta machines |
1068 m68k-motorola-sysv* | m68000-motorola-sysv* ) | 1053 m68k-motorola-sysv* | m68000-motorola-sysv* ) |
1069 machine=delta opsys=usg5-3 | 1054 machine=delta opsys=usg5-3 |
1070 if test -z "`type gnucc | grep 'not found'`" | 1055 if test -z "`type gnucc | grep 'not found'`" |
1297 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;; | 1282 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;; |
1298 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;; | 1283 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;; |
1299 ## Iris 4D | 1284 ## Iris 4D |
1300 mips-sgi-irix3.* ) machine=iris4d opsys=irix3-3 ;; | 1285 mips-sgi-irix3.* ) machine=iris4d opsys=irix3-3 ;; |
1301 mips-sgi-irix4.* ) machine=iris4d opsys=irix4-0 ;; | 1286 mips-sgi-irix4.* ) machine=iris4d opsys=irix4-0 ;; |
1302 mips-sgi-irix6* ) machine=iris4d | 1287 mips-sgi-irix6* ) machine=iris4d opsys=irix6-0 NON_GNU_CC="cc -Olimit 2000" ;; |
1303 opsys=irix6-0 | |
1304 NON_GNU_CC="cc -Olimit 2000" ;; | |
1305 mips-sgi-irix5.[3-9]* ) machine=iris4d opsys=irix5-3 ;; | 1288 mips-sgi-irix5.[3-9]* ) machine=iris4d opsys=irix5-3 ;; |
1306 mips-sgi-irix5.2* ) machine=iris4d opsys=irix5-2 ;; | 1289 mips-sgi-irix5.2* ) machine=iris4d opsys=irix5-2 ;; |
1307 mips-sgi-irix5.1* ) machine=iris4d opsys=irix5-1 ;; | 1290 mips-sgi-irix5.1* ) machine=iris4d opsys=irix5-1 ;; |
1308 mips-sgi-irix* ) machine=iris4d opsys=irix5-0 ;; | 1291 mips-sgi-irix* ) machine=iris4d opsys=irix5-0 ;; |
1309 | 1292 |
1324 # Hardware type | 1307 # Hardware type |
1325 case "${canonical}" in | 1308 case "${canonical}" in |
1326 m68*-sunos1* ) machine=sun1 ;; | 1309 m68*-sunos1* ) machine=sun1 ;; |
1327 m68*-sunos2* ) machine=sun2 ;; | 1310 m68*-sunos2* ) machine=sun2 ;; |
1328 m68* ) machine=sun3 ;; | 1311 m68* ) machine=sun3 ;; |
1329 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;; | 1312 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;; |
1330 i[3-9]86-*-* ) machine=intel386 ;; | 1313 i[3-9]86-*-* ) machine=intel386 ;; |
1331 rs6000* ) machine=rs6000 ;; | 1314 rs6000* ) machine=rs6000 ;; |
1332 sparc* ) machine=sparc ;; | 1315 sparc* ) machine=sparc ;; |
1333 powerpc* ) machine=powerpc ;; | 1316 powerpc* ) machine=powerpc ;; |
1334 * ) unported=yes ;; | 1317 * ) unported=yes ;; |
1359 ## The Sun386 didn't get past 4.0. | 1342 ## The Sun386 didn't get past 4.0. |
1360 i[3-9]86-*-sunos4* ) opsys=sunos4-0 ;; | 1343 i[3-9]86-*-sunos4* ) opsys=sunos4-0 ;; |
1361 *-sunos4.0* ) opsys=sunos4-0 ;; | 1344 *-sunos4.0* ) opsys=sunos4-0 ;; |
1362 *-sunos4.1.2* ) opsys=sunos4-1-2 ;; | 1345 *-sunos4.1.2* ) opsys=sunos4-1-2 ;; |
1363 *-sunos4.1.3* ) opsys=sunos4-1-3 ;; | 1346 *-sunos4.1.3* ) opsys=sunos4-1-3 ;; |
1364 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;; | 1347 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;; |
1365 *-sunos4* | *-sunos ) opsys=sunos4-1 ;; | 1348 *-sunos4* | *-sunos ) opsys=sunos4-1 ;; |
1366 | 1349 |
1367 *-solaris2.3* ) opsys=sol2-3 ;; | 1350 *-solaris2.3* ) opsys=sol2-3 ;; |
1368 *-solaris2.4* ) opsys=sol2-4 ;; | 1351 *-solaris2.4* ) opsys=sol2-4 ;; |
1369 *-solaris2.5* ) opsys=sol2-5 ;; | 1352 *-solaris2.5* ) opsys=sol2-5 ;; |
1370 *-solaris2.[6-9]* ) opsys=sol2-6 ;; | 1353 *-solaris2.[6-9]* ) opsys=sol2-6 ;; |
1371 *-solaris* ) opsys=sol2 ;; | 1354 *-solaris* ) opsys=sol2 ;; |
1372 | 1355 |
1373 *-mach* ) opsys=mach-bsd4-3 ;; | 1356 *-mach* ) opsys=mach-bsd4-3 ;; |
1374 * ) opsys=bsd4-2 ;; | 1357 * ) opsys=bsd4-2 ;; |
1375 esac | 1358 esac |
1435 | 1418 |
1436 ## Intel 386 machines where we don't care about the manufacturer | 1419 ## Intel 386 machines where we don't care about the manufacturer |
1437 i[3-9]86-*-* ) | 1420 i[3-9]86-*-* ) |
1438 machine=intel386 | 1421 machine=intel386 |
1439 case "${canonical}" in | 1422 case "${canonical}" in |
1440 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; | 1423 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
1441 *-isc2.2* ) opsys=isc2-2 ;; | 1424 *-isc2.2* ) opsys=isc2-2 ;; |
1442 *-isc4.0* ) opsys=isc4-0 ;; | 1425 *-isc4.0* ) opsys=isc4-0 ;; |
1443 *-isc4.* ) opsys=isc4-1 | 1426 *-isc4.* ) opsys=isc4-1 |
1444 GCC_TEST_OPTIONS=-posix | 1427 GCC_TEST_OPTIONS=-posix |
1445 NON_GCC_TEST_OPTIONS=-Xp | 1428 NON_GCC_TEST_OPTIONS=-Xp |
1549 ############################################################################ | 1532 ############################################################################ |
1550 | 1533 |
1551 | 1534 |
1552 | 1535 |
1553 | 1536 |
1554 | |
1555 ac_ext=c | 1537 ac_ext=c |
1556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 1538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1557 ac_cpp='${CPP}' | 1539 ac_cpp='${CPP}' |
1558 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1' | 1540 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1' |
1559 | 1541 |
1681 fi | 1663 fi |
1682 ;; | 1664 ;; |
1683 esac | 1665 esac |
1684 fi | 1666 fi |
1685 | 1667 |
1686 | |
1687 | |
1688 #### Some systems specify a CPP to use unless we are using GCC. | 1668 #### Some systems specify a CPP to use unless we are using GCC. |
1689 #### Now that we know whether we are using GCC, we can decide whether | 1669 #### Now that we know whether we are using GCC, we can decide whether |
1690 #### to use that one. | 1670 #### to use that one. |
1691 if test "x$NON_GNU_CPP" = x -o x$GCC = x1 | 1671 if test "x$NON_GNU_CPP" = x -o x$GCC = x1 |
1692 then true | 1672 then true |
1723 ############################################################################ | 1703 ############################################################################ |
1724 | 1704 |
1725 #### Some other nice autoconf tests. If you add a test here which | 1705 #### Some other nice autoconf tests. If you add a test here which |
1726 #### should make an entry in src/config.h, don't forget to add an | 1706 #### should make an entry in src/config.h, don't forget to add an |
1727 #### #undef clause to src/config.h.in for autoconf to modify. | 1707 #### #undef clause to src/config.h.in for autoconf to modify. |
1728 | |
1729 test -n "$silent" || echo "checking how to run the C preprocessor" | 1708 test -n "$silent" || echo "checking how to run the C preprocessor" |
1730 if test -z "$CPP"; then | 1709 if test -z "$CPP"; then |
1731 # This must be in double quotes, not single quotes, because CPP may get | 1710 # This must be in double quotes, not single quotes, because CPP may get |
1732 # substituted into the Makefile and ``${CC-cc}'' will simply confuse | 1711 # substituted into the Makefile and ``${CC-cc}'' will simply confuse |
1733 # make. It must be expanded now. | 1712 # make. It must be expanded now. |
1908 fi | 1887 fi |
1909 rm -f conftest* | 1888 rm -f conftest* |
1910 | 1889 |
1911 | 1890 |
1912 | 1891 |
1913 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h utime.h sys/wait.h libintl.h locale.h libgen.h linux/version.h kstat.h sys/pstat.h | 1892 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h |
1893 do | |
1894 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'` | |
1895 test -n "$silent" || echo "checking for ${ac_hdr}" | |
1896 cat > conftest.${ac_ext} <<EOF | |
1897 #include "confdefs.h" | |
1898 #include <${ac_hdr}> | |
1899 EOF | |
1900 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
1901 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
1902 echo "$ac_err" | |
1903 fi | |
1904 if test -z "$ac_err"; then | |
1905 rm -rf conftest* | |
1906 | |
1907 { | |
1908 test -n "$verbose" && \ | |
1909 echo " defining ${ac_tr_hdr}" | |
1910 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h | |
1911 DEFS="$DEFS -D${ac_tr_hdr}=1" | |
1912 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD} | |
1913 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD} | |
1914 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD} | |
1915 " | |
1916 } | |
1917 | |
1918 | |
1919 fi | |
1920 rm -f conftest* | |
1921 done | |
1922 | |
1923 for ac_hdr in utime.h sys/wait.h libintl.h locale.h libgen.h | |
1924 do | |
1925 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'` | |
1926 test -n "$silent" || echo "checking for ${ac_hdr}" | |
1927 cat > conftest.${ac_ext} <<EOF | |
1928 #include "confdefs.h" | |
1929 #include <${ac_hdr}> | |
1930 EOF | |
1931 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` | |
1932 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then | |
1933 echo "$ac_err" | |
1934 fi | |
1935 if test -z "$ac_err"; then | |
1936 rm -rf conftest* | |
1937 | |
1938 { | |
1939 test -n "$verbose" && \ | |
1940 echo " defining ${ac_tr_hdr}" | |
1941 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h | |
1942 DEFS="$DEFS -D${ac_tr_hdr}=1" | |
1943 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD} | |
1944 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD} | |
1945 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD} | |
1946 " | |
1947 } | |
1948 | |
1949 | |
1950 fi | |
1951 rm -f conftest* | |
1952 done | |
1953 | |
1954 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h | |
1914 do | 1955 do |
1915 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'` | 1956 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'` |
1916 test -n "$silent" || echo "checking for ${ac_hdr}" | 1957 test -n "$silent" || echo "checking for ${ac_hdr}" |
1917 cat > conftest.${ac_ext} <<EOF | 1958 cat > conftest.${ac_ext} <<EOF |
1918 #include "confdefs.h" | 1959 #include "confdefs.h" |
2436 else | 2477 else |
2437 test -n "$verbose" && echo " defining NEED_XILDOFF" | 2478 test -n "$verbose" && echo " defining NEED_XILDOFF" |
2438 need_xildoff=yes | 2479 need_xildoff=yes |
2439 fi | 2480 fi |
2440 fi | 2481 fi |
2441 | |
2442 | 2482 |
2443 # What the hell was this doing here?????? | 2483 # What the hell was this doing here?????? |
2444 ### echo > confdefs.h # this gets nuked above... | 2484 ### echo > confdefs.h # this gets nuked above... |
2445 | 2485 |
2446 ############################################################################ | 2486 ############################################################################ |
2479 * ) | 2519 * ) |
2480 echo "Don't specify a window system more than once." >&2 | 2520 echo "Don't specify a window system more than once." >&2 |
2481 exit 1 | 2521 exit 1 |
2482 ;; | 2522 ;; |
2483 esac | 2523 esac |
2484 | |
2485 | 2524 |
2486 case "${window_system}" in "" | "x11" ) | 2525 case "${window_system}" in "" | "x11" ) |
2487 ### If the user hasn't specified where we should find X, try | 2526 ### If the user hasn't specified where we should find X, try |
2488 ### letting autoconf figure that out. | 2527 ### letting autoconf figure that out. |
2489 if test -z "${x_includes}${x_libraries}" ; then | 2528 if test -z "${x_includes}${x_libraries}" ; then |
2674 if test "${with_tty}" != "yes" ; then | 2713 if test "${with_tty}" != "yes" ; then |
2675 echo "No window system support, and no TTY support." >&2 | 2714 echo "No window system support, and no TTY support." >&2 |
2676 echo "Unable to proceed." >&2 | 2715 echo "Unable to proceed." >&2 |
2677 exit 1 | 2716 exit 1 |
2678 fi | 2717 fi |
2679 for feature in epoch cde offix menubars scrollbars toolbars dialogs xim tiff | 2718 for feature in cde offix menubars scrollbars toolbars dialogs xim tiff |
2680 do | 2719 do |
2681 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then | 2720 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then |
2682 echo "configure: warning: --with-$feature ignored: Not valid without X support" >&2 | 2721 echo "configure: warning: --with-$feature ignored: Not valid without X support" >&2 |
2683 fi | 2722 fi |
2684 eval "with_$feature=no" | 2723 eval "with_$feature=no" |
2922 LISP_FLOAT_TYPE=yes | 2961 LISP_FLOAT_TYPE=yes |
2923 | 2962 |
2924 | 2963 |
2925 #### Add the libraries to LIBS and check for some functions. | 2964 #### Add the libraries to LIBS and check for some functions. |
2926 | 2965 |
2927 | |
2928 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS" | 2966 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS" |
2929 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS" | 2967 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS" |
2930 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS" | 2968 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS" |
2931 | 2969 |
2932 ac_save_LIBS="${LIBS}" | 2970 ac_save_LIBS="${LIBS}" |
2992 \${ac_eA}HAVE_LIBKSTAT\${ac_eB}HAVE_LIBKSTAT\${ac_eC}1\${ac_eD} | 3030 \${ac_eA}HAVE_LIBKSTAT\${ac_eB}HAVE_LIBKSTAT\${ac_eC}1\${ac_eD} |
2993 " | 3031 " |
2994 } | 3032 } |
2995 | 3033 |
2996 LIBS="${LIBS} -lkstat" | 3034 LIBS="${LIBS} -lkstat" |
3035 fi | |
3036 | |
3037 | |
3038 ac_save_LIBS="${LIBS}" | |
3039 LIBS="${LIBS} -lintl" | |
3040 ac_have_lib="" | |
3041 test -n "$silent" || echo "checking for -lintl" | |
3042 cat > conftest.${ac_ext} <<EOF | |
3043 #include "confdefs.h" | |
3044 | |
3045 int main() { return 0; } | |
3046 int t() { main();; return 0; } | |
3047 EOF | |
3048 if eval $ac_compile; then | |
3049 rm -rf conftest* | |
3050 ac_have_lib="1" | |
3051 | |
3052 fi | |
3053 rm -f conftest* | |
3054 LIBS="${ac_save_LIBS}" | |
3055 if test -n "${ac_have_lib}"; then | |
3056 :; | |
3057 { | |
3058 test -n "$verbose" && \ | |
3059 echo " defining HAVE_LIBINTL" | |
3060 echo "#define" HAVE_LIBINTL "1" >> confdefs.h | |
3061 DEFS="$DEFS -DHAVE_LIBINTL=1" | |
3062 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBINTL\${ac_dB}HAVE_LIBINTL\${ac_dC}1\${ac_dD} | |
3063 \${ac_uA}HAVE_LIBINTL\${ac_uB}HAVE_LIBINTL\${ac_uC}1\${ac_uD} | |
3064 \${ac_eA}HAVE_LIBINTL\${ac_eB}HAVE_LIBINTL\${ac_eC}1\${ac_eD} | |
3065 " | |
3066 } | |
3067 | |
3068 else | |
3069 :; | |
2997 fi | 3070 fi |
2998 | 3071 |
2999 | 3072 |
3000 ac_save_LIBS="${LIBS}" | 3073 ac_save_LIBS="${LIBS}" |
3001 LIBS="${LIBS} -lXbsd" | 3074 LIBS="${LIBS} -lXbsd" |
6747 \${ac_uA}HAVE_TERM\${ac_uB}HAVE_TERM\${ac_uC}1\${ac_uD} | 6820 \${ac_uA}HAVE_TERM\${ac_uB}HAVE_TERM\${ac_uC}1\${ac_uD} |
6748 \${ac_eA}HAVE_TERM\${ac_eB}HAVE_TERM\${ac_eC}1\${ac_eD} | 6821 \${ac_eA}HAVE_TERM\${ac_eB}HAVE_TERM\${ac_eC}1\${ac_eD} |
6749 " | 6822 " |
6750 } | 6823 } |
6751 | 6824 |
6752 test "${with_epoch}" = yes && | |
6753 { | |
6754 test -n "$verbose" && \ | |
6755 echo " defining EPOCH" | |
6756 echo "#define" EPOCH "1" >> confdefs.h | |
6757 DEFS="$DEFS -DEPOCH=1" | |
6758 ac_sed_defs="${ac_sed_defs}\${ac_dA}EPOCH\${ac_dB}EPOCH\${ac_dC}1\${ac_dD} | |
6759 \${ac_uA}EPOCH\${ac_uB}EPOCH\${ac_uC}1\${ac_uD} | |
6760 \${ac_eA}EPOCH\${ac_eB}EPOCH\${ac_eC}1\${ac_eD} | |
6761 " | |
6762 } | |
6763 | |
6764 test "${external_widget}" = yes && | 6825 test "${external_widget}" = yes && |
6765 { | 6826 { |
6766 test -n "$verbose" && \ | 6827 test -n "$verbose" && \ |
6767 echo " defining EXTERNAL_WIDGET" | 6828 echo " defining EXTERNAL_WIDGET" |
6768 echo "#define" EXTERNAL_WIDGET "1" >> confdefs.h | 6829 echo "#define" EXTERNAL_WIDGET "1" >> confdefs.h |
7046 | 7107 |
7047 | 7108 |
7048 ( | 7109 ( |
7049 echo "uname -a: `uname -a`" | 7110 echo "uname -a: `uname -a`" |
7050 echo "" | 7111 echo "" |
7051 echo "$0 $configure_args" | 7112 echo "$0 $quoted_arguments" |
7052 ) >> Installation | 7113 ) >> Installation |
7053 # Start stdout redirection to '| tee -a Installation' | 7114 # Start stdout redirection to '| tee -a Installation' |
7054 ( | 7115 ( |
7055 echo " | 7116 echo " |
7056 | 7117 |
7076 elif test -n "$site_libraries"; then | 7137 elif test -n "$site_libraries"; then |
7077 echo " Additional libraries: ${site_libraries}" | 7138 echo " Additional libraries: ${site_libraries}" |
7078 elif test -n "$site_runtime_libraries"; then | 7139 elif test -n "$site_runtime_libraries"; then |
7079 echo " Additional libraries: ${site_runtime_libraries}" | 7140 echo " Additional libraries: ${site_runtime_libraries}" |
7080 fi | 7141 fi |
7081 if test "$with_wnn" = yes ; then | |
7082 echo " Finding WNN includes with: ${wnn_includes}" | |
7083 echo " Loading WNN libs with: ${wnn_libraries}" | |
7084 fi | |
7085 test "$with_socks" = yes && echo " Compiling in support for SOCKS." | 7142 test "$with_socks" = yes && echo " Compiling in support for SOCKS." |
7086 test "$with_term" = yes && echo " Compiling in support for TERM." | 7143 test "$with_term" = yes && echo " Compiling in support for TERM." |
7087 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." | 7144 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." |
7088 test "$with_xpm" = yes && echo " Compiling in support for XPM." | 7145 test "$with_xpm" = yes && echo " Compiling in support for XPM." |
7089 if test "$with_xmu" != yes -a "$window_system" != none; then | 7146 if test "$with_xmu" != yes -a "$window_system" != none; then |
7097 fi | 7154 fi |
7098 if test "$with_png" = gnuz; then | 7155 if test "$with_png" = gnuz; then |
7099 echo " (Using -lgz instead of -lz.)" | 7156 echo " (Using -lgz instead of -lz.)" |
7100 fi | 7157 fi |
7101 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." | 7158 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." |
7102 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility." | |
7103 | 7159 |
7104 test "$with_sound" = nas && echo " Compiling in network sound support." | 7160 test "$with_sound" = nas && echo " Compiling in network sound support." |
7105 test "$with_sound" = native && echo " Compiling in native sound support." | 7161 test "$with_sound" = native && echo " Compiling in native sound support." |
7106 test "$with_sound" = both && echo " Compiling in both network and native sound support." | 7162 test "$with_sound" = both && echo " Compiling in both network and native sound support." |
7107 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously" | 7163 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously" |
7116 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." | 7172 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." |
7117 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." | 7173 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." |
7118 test "$with_xim" = motif && echo " Using Motif to provide XIM support." | 7174 test "$with_xim" = motif && echo " Using Motif to provide XIM support." |
7119 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." | 7175 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." |
7120 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." | 7176 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." |
7121 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule." | 7177 if test "$with_wnn" = yes; then |
7122 test "$with_wnn6" = yes && echo " WNN support for version 6." | 7178 echo " Compiling in support for the WNN input method on Mule." |
7179 test "$with_wnn6" = yes && echo " WNN support for version 6." | |
7180 echo " Finding WNN includes with: ${wnn_includes}" | |
7181 echo " Finding WNN libs with: ${wnn_libraries}" | |
7182 fi | |
7123 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." | 7183 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." |
7124 | 7184 |
7125 test "$with_cde" = yes && echo " Compiling in support for CDE." | 7185 test "$with_cde" = yes && echo " Compiling in support for CDE." |
7126 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | 7186 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." |
7127 test "$with_offix" = yes && echo " Compiling in support for OffiX." | 7187 test "$with_offix" = yes && echo " Compiling in support for OffiX." |
7140 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar." | 7200 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar." |
7141 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar." | 7201 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar." |
7142 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes." | 7202 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes." |
7143 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes." | 7203 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes." |
7144 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes." | 7204 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes." |
7145 test "$with_pop" = yes && "Using POP for mail access" | 7205 test "$with_pop" = yes && " Using POP for mail access" |
7146 test "$with_kerberos" = yes && "Using Kerberos for POP authentication" | 7206 test "$with_kerberos" = yes && " Using Kerberos for POP authentication" |
7147 test "$with_hesiod" = yes && "Using Hesiod to get POP server host" | 7207 test "$with_hesiod" = yes && " Using Hesiod to get POP server host" |
7148 | 7208 |
7149 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects." | 7209 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects." |
7150 test "${debug}" = yes && echo " Compiling in extra code for debugging." | 7210 test "${debug}" = yes && echo " Compiling in extra code for debugging." |
7151 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage." | 7211 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage." |
7152 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." | 7212 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." |
7154 ) | tee -a Installation | 7214 ) | tee -a Installation |
7155 echo 'The above configure report is appended to "Installation" file.' | 7215 echo 'The above configure report is appended to "Installation" file.' |
7156 echo "" | 7216 echo "" |
7157 | 7217 |
7158 | 7218 |
7159 | 7219 |
7160 # Remove any trailing slashes in these variables. | 7220 # Remove any trailing slashes in these variables. |
7161 test -n "${prefix}" && | 7221 test -n "${prefix}" && |
7162 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | 7222 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` |
7163 test -n "${exec_prefix}" && | 7223 test -n "${exec_prefix}" && |
7164 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | 7224 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` |
7201 # Generated automatically by configure. | 7261 # Generated automatically by configure. |
7202 # Run this file to recreate the current configuration. | 7262 # Run this file to recreate the current configuration. |
7203 # This directory was configured as follows, | 7263 # This directory was configured as follows, |
7204 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 7264 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
7205 # | 7265 # |
7206 # $0 $configure_args | 7266 # $0 $quoted_arguments |
7207 | 7267 |
7208 ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]" | 7268 ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]" |
7209 for ac_option | 7269 for ac_option |
7210 do | 7270 do |
7211 case "\$ac_option" in | 7271 case "\$ac_option" in |
7212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 7272 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7213 echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create | 7273 echo running \${CONFIG_SHELL-/bin/sh} $0 $quoted_arguments --no-create |
7214 exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;; | 7274 exec \${CONFIG_SHELL-/bin/sh} $0 $quoted_arguments --no-create ;; |
7215 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 7275 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
7216 echo "config.status generated by autoconf version 1.11" | 7276 echo "config.status generated by autoconf version 1.11" |
7217 exit 0 ;; | 7277 exit 0 ;; |
7218 -help | --help | --hel | --he | --h) | 7278 -help | --help | --hel | --he | --h) |
7219 echo "\$ac_cs_usage"; exit 0 ;; | 7279 echo "\$ac_cs_usage"; exit 0 ;; |
7473 exit 0 | 7533 exit 0 |
7474 EOF | 7534 EOF |
7475 chmod +x config.status | 7535 chmod +x config.status |
7476 # Some shells look in PATH for config.status without the "./". | 7536 # Some shells look in PATH for config.status without the "./". |
7477 test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status | 7537 test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status |
7478 | 7538 |
7479 # Build: | 7539 # Build: |
7480 # src/Makefile from ${srcdir}/src/Makefile.in | 7540 # src/Makefile from ${srcdir}/src/Makefile.in |
7481 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in | 7541 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in |
7482 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in | 7542 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in |
7483 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in | 7543 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in |
7640 echo source $topsrcdir/src/gdbinit > src/gdbinit | 7700 echo source $topsrcdir/src/gdbinit > src/gdbinit |
7641 fi | 7701 fi |
7642 | 7702 |
7643 exit 0 | 7703 exit 0 |
7644 | 7704 |
7705 | |
7706 # Local Variables: | |
7707 # eval: (modify-syntax-entry ?\" "\"") | |
7708 # End: |