Mercurial > hg > xemacs-beta
comparison configure.in @ 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 |
---|---|
1 dnl -*- mode: m4; m4-mode-hook : (lambda () (modify-syntax-entry ?\" "\"\"")) ; -*- | 1 dnl -*- mode: m4; -*- |
2 dnl Synched up with: FSF 19.31. | 2 dnl Synched up with: FSF 19.31. |
3 dnl (19.29 -- 19.31 use Autoconf 2.x instead of Autoconf 1.x. | 3 dnl (19.29 -- 19.31 use Autoconf 2.x instead of Autoconf 1.x. |
4 dnl Some stuff related to this change has not been synched because | 4 dnl Some stuff related to this change has not been synched because |
5 dnl it can't be until we switch to Autoconf 2.x.) | 5 dnl it can't be until we switch to Autoconf 2.x.) |
6 dnl | 6 dnl |
12 dnl | 12 dnl |
13 dnl The following text appears in the resulting `configure' script, | 13 dnl The following text appears in the resulting `configure' script, |
14 dnl explaining how to rebuild it. | 14 dnl explaining how to rebuild it. |
15 dnl | 15 dnl |
16 AC_PREREQ(1.9)dnl means 'delete newline' and this one needs to be here | 16 AC_PREREQ(1.9)dnl means 'delete newline' and this one needs to be here |
17 [#!/bin/sh | 17 #!/bin/sh |
18 #### Configuration script for XEmacs. | 18 #### Configuration script for XEmacs. |
19 #### Copyright (C) 1994 Free Software Foundation, Inc. | 19 #### Copyright (C) 1994 Free Software Foundation, Inc. |
20 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois. | 20 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois. |
21 #### Copyright (C) 1995, 1996 Ben Wing. | 21 #### Copyright (C) 1995, 1996 Ben Wing. |
22 | 22 |
156 # # | 156 # # |
157 # Usage messages # | 157 # Usage messages # |
158 # # | 158 # # |
159 ############################################################################ | 159 ############################################################################ |
160 | 160 |
161 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...] | 161 short_usage="Usage: ${progname} CONFIGURATION [[-OPTION[=VALUE] ...]] |
162 | 162 |
163 Set compilation and installation parameters for XEmacs, and report. | 163 Set compilation and installation parameters for XEmacs, and report. |
164 CONFIGURATION specifies the machine and operating system to build for. | 164 CONFIGURATION specifies the machine and operating system to build for. |
165 | 165 |
166 Note that for most of the following options, you can explicitly enable | 166 Note that for most of the following options, you can explicitly enable |
212 | 212 |
213 --with-x (*) Support the X Window System. | 213 --with-x (*) Support the X Window System. |
214 --with-x=no Don't support X. | 214 --with-x=no Don't support X. |
215 --x-includes=DIR Search for X header files in DIR. | 215 --x-includes=DIR Search for X header files in DIR. |
216 --x-libraries=DIR Search for X libraries in DIR. | 216 --x-libraries=DIR Search for X libraries in DIR. |
217 --with-ns Support NeXTstep windows (not yet implemented). | |
218 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid | 217 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid |
219 widgets emulate Motif (mostly) but are faster. | 218 widgets emulate Motif (mostly) but are faster. |
220 *WARNING* The Motif menubar is currently broken. | 219 *WARNING* The Motif menubar is currently broken. |
221 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena, | 220 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena, |
222 athena3d, or no). | 221 athena3d, or no). |
270 --with-sound=nas Compile with network sound support. | 269 --with-sound=nas Compile with network sound support. |
271 --with-sound=both Compile with native and network sound support. | 270 --with-sound=both Compile with native and network sound support. |
272 --native-sound-lib=LIB Native sound support library. Needed on Suns | 271 --native-sound-lib=LIB Native sound support library. Needed on Suns |
273 with --with-sound=both because both sound libraries | 272 with --with-sound=both because both sound libraries |
274 are called libaudio. | 273 are called libaudio. |
275 --with-epoch Compile with additional Epoch compatibility. | |
276 --with-mocklisp Compile with Mocklisp support. Don't do this | 274 --with-mocklisp Compile with Mocklisp support. Don't do this |
277 unless you have a Mocklisp program that you need | 275 unless you have a Mocklisp program that you need |
278 to run. | 276 to run. |
279 --usage-tracking Enable some Sun-internal code. If you don't | 277 --usage-tracking Enable some Sun-internal code. If you don't |
280 know what this is, you don't want it. | 278 know what this is, you don't want it. |
309 | 307 |
310 Debugging options: | 308 Debugging options: |
311 | 309 |
312 --debug Compile with support for debugging XEmacs. | 310 --debug Compile with support for debugging XEmacs. |
313 (Causes code-size increase and little loss of speed.) | 311 (Causes code-size increase and little loss of speed.) |
314 --error-checking=TYPE[,TYPE]... | 312 --error-checking=TYPE[[,TYPE]]... |
315 Compile with internal error-checking added. | 313 Compile with internal error-checking added. |
316 Causes noticeable loss of speed. Valid types | 314 Causes noticeable loss of speed. Valid types |
317 are extents, bufpos, malloc, gc, typecheck. | 315 are extents, bufpos, malloc, gc, typecheck. |
318 --error-checking=none Disable all internal error-checking (the default). | 316 --error-checking=none Disable all internal error-checking (the default). |
319 --error-checking=all Enable all internal error-checking. | 317 --error-checking=all Enable all internal error-checking. |
351 # # | 349 # # |
352 # Options processing # | 350 # Options processing # |
353 # # | 351 # # |
354 ############################################################################ | 352 ############################################################################ |
355 | 353 |
354 define([USAGE_ERROR], | |
355 [(echo "${progname}: Usage error:" | |
356 echo " " $1 | |
357 echo " Use \`${progname} --help' for more details.") >&2 && exit 1]) | |
358 | |
356 ### Record all the arguments, so we can save them in config.status. | 359 ### Record all the arguments, so we can save them in config.status. |
357 arguments="$@" | 360 arguments="$@" |
358 | 361 |
359 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date, | 362 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date, |
360 ### in order to get the arguments back in $@, we have to do an | 363 ### in order to get the arguments back in $@, we have to do an |
361 ### `eval set x "$quoted_arguments"; shift'. | 364 ### `eval set x "$quoted_arguments"; shift'. |
365 ### We use sed to turn embedded ' into '"'"'. I truly hate sh's quoting. | |
366 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g | |
362 quoted_arguments= | 367 quoted_arguments= |
363 for i in "$@"; do | 368 for i in "$@"; do |
364 quoted_arguments="$quoted_arguments '$i'" | 369 case "$i" in |
370 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
371 | --no-cr | --no-c) ;; | |
372 -norecursion | --norecursion | --norecursio | --norecursi \ | |
373 | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;; | |
374 *) | |
375 quoted_i="`echo $i | sed $quoted_sed_magic`" | |
376 quoted_arguments="$quoted_arguments '$quoted_i'" ;; | |
377 esac | |
365 done | 378 done |
366 | 379 |
367 ### Don't use shift -- that destroys the argument list, which autoconf needs | 380 ### Don't use shift -- that destroys the argument list, which autoconf needs |
368 ### to produce config.status. It turns out that "set - ${arguments}" doesn't | 381 ### to produce config.status. It turns out that "set - ${arguments}" doesn't |
369 ### work portably. | 382 ### work portably. |
377 ## Anything starting with a hyphen we assume is an option. | 390 ## Anything starting with a hyphen we assume is an option. |
378 -* ) | 391 -* ) |
379 ## Separate the switch name from the value it's being given. | 392 ## Separate the switch name from the value it's being given. |
380 case "${arg}" in | 393 case "${arg}" in |
381 -*=*) | 394 -*=*) |
382 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'` | 395 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([[^=]]*\)=.*$:\1:'` |
383 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'` | 396 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[[^=]]*=\(.*\)$:\1:'` |
384 valomitted=no | 397 valomitted=no |
385 ;; | 398 ;; |
386 # ## special case these strings since echo may | 399 # ## special case these strings since echo may |
387 # ## silently eat them. | 400 # ## silently eat them. |
388 # --help ) opt=help val=yes valomitted=yes ;; | 401 # --help ) opt=help val=yes valomitted=yes ;; |
412 with_x | \ | 425 with_x | \ |
413 with_x11 | \ | 426 with_x11 | \ |
414 with_gcc | \ | 427 with_gcc | \ |
415 with_lcc | \ | 428 with_lcc | \ |
416 with_gnu_make | \ | 429 with_gnu_make | \ |
417 with_epoch | \ | |
418 dynamic | \ | 430 dynamic | \ |
419 with_term | \ | 431 with_term | \ |
420 with_cde | \ | 432 with_cde | \ |
421 with_offix | \ | 433 with_offix | \ |
422 with_xpm | \ | 434 with_xpm | \ |
425 with_tiff | \ | 437 with_tiff | \ |
426 with_socks | \ | 438 with_socks | \ |
427 with_xface | \ | 439 with_xface | \ |
428 with_xmu | \ | 440 with_xmu | \ |
429 quantify | \ | 441 quantify | \ |
430 with_ns | \ | |
431 with_toolbars | \ | 442 with_toolbars | \ |
432 with_tty | \ | 443 with_tty | \ |
433 with_i18n3 | \ | 444 with_i18n3 | \ |
434 with_mule | \ | 445 with_mule | \ |
435 with_canna | \ | 446 with_canna | \ |
441 with_tooltalk | \ | 452 with_tooltalk | \ |
442 with_pop | \ | 453 with_pop | \ |
443 with_kerberos | \ | 454 with_kerberos | \ |
444 with_hesiod | \ | 455 with_hesiod | \ |
445 external_widget | \ | 456 external_widget | \ |
446 extra_verbose | \ | 457 verbose | \ |
458 extra_verbose | \ | |
447 const_is_losing | \ | 459 const_is_losing | \ |
448 usage_tracking | \ | 460 usage_tracking | \ |
449 use_union_type | \ | 461 use_union_type | \ |
450 debug | \ | 462 debug | \ |
451 use_assertions | \ | 463 use_assertions | \ |
453 no_doc_file ) | 465 no_doc_file ) |
454 ## Make sure the value given was either "yes" or "no". | 466 ## Make sure the value given was either "yes" or "no". |
455 case "${val}" in | 467 case "${val}" in |
456 y | ye | yes ) val=yes ;; | 468 y | ye | yes ) val=yes ;; |
457 n | no ) val=no ;; | 469 n | no ) val=no ;; |
458 * ) | 470 * ) USAGE_ERROR("The \`--${optname}' option requires a boolean value: \`yes' or \`no'.") ;; |
459 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value. | |
460 Set it to either \`yes' or \`no'." | |
461 echo "${short_usage}") >&2 | |
462 exit 1 ;; | |
463 esac | 471 esac |
464 eval "${opt}=\"${val}\"" ;; | 472 eval "${opt}=\"${val}\"" ;; |
465 | 473 |
466 | 474 |
467 ## Options that take a user-supplied value, as in --puresize=8000000 | 475 ## Options that take a user-supplied value, as in --puresize=8000000 |
468 srcdir | \ | 476 srcdir | \ |
469 compiler | \ | 477 compiler | \ |
470 puresize | \ | 478 puresize | \ |
471 native_sound_lib | \ | 479 native_sound_lib | \ |
472 x_includes | \ | 480 x_includes | \ |
473 x_libraries | \ | 481 x_libraries | \ |
474 wnn_includes | \ | 482 wnn_includes | \ |
475 wnn_libraries | \ | 483 wnn_libraries | \ |
476 canna_includes | \ | 484 canna_includes | \ |
477 canna_libraries | \ | 485 canna_libraries | \ |
478 site_includes | \ | 486 site_includes | \ |
479 site_libraries | \ | 487 site_libraries | \ |
480 site_runtime_libraries ) | 488 site_runtime_libraries ) |
481 ## If the value was omitted, get it from the next argument. | 489 ## If the value was omitted, get it from the next argument. |
482 if test "${valomitted}" = "yes" ; then | 490 if test "${valomitted}" = "yes" ; then |
483 ## Get the next argument from the argument list, if there is one. | 491 ## Get the next argument from the argument list, if there is one. |
484 if test $# = 0 ; then | 492 if test "$#" = 0 ; then |
485 (echo "${progname}: You must give a value for the \`--${optname}' option, as in | 493 USAGE_ERROR("The \`--${optname}' option requires a value."); |
486 \`--${optname}=FOO'." | |
487 echo "${short_usage}") >&2 | |
488 exit 1 | |
489 fi | 494 fi |
490 val="$1"; shift | 495 val="$1"; shift |
491 fi | 496 fi |
492 eval "${opt}=\"${val}\"" | 497 eval "${opt}=\"${val}\"" |
493 ;; | 498 ;; |
498 case "${val}" in | 503 case "${val}" in |
499 y | ye | yes ) val=yes ;; | 504 y | ye | yes ) val=yes ;; |
500 n | no ) val=no ;; | 505 n | no ) val=no ;; |
501 d | de | def | defa | defau | defaul | default ) | 506 d | de | def | defa | defau | defaul | default ) |
502 val=default ;; | 507 val=default ;; |
503 * ) | 508 * ) USAGE_ERROR(["The \`--${optname}' option requires one of these values: |
504 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'. | 509 \`yes', \`no', or \`default'."]) ;; |
505 Set it to either \`yes', \`no', or \`default'." | |
506 echo "${short_usage}") >&2 | |
507 exit 1 | |
508 ;; | |
509 esac | 510 esac |
510 eval "${opt}=\"${val}\"" | 511 eval "${opt}=\"${val}\"" |
511 ;; | 512 ;; |
512 | 513 |
513 ## Has the user requested database support? | 514 ## Has the user requested database support? |
514 "with_database" ) | 515 "with_database" ) |
515 if test "${val}" = "no" ; then | 516 with_database_berkdb=no |
516 with_database_berkdb=no | 517 with_database_dbm=no |
517 with_database_dbm=no | 518 with_database_gnudbm=no |
518 with_database_gnudbm=no | 519 ## Make sure the value given was `no' or a list of berkdb, dbm, gnudbm |
519 else | 520 for x in `echo "${val}" | sed 's/,/ /'` ; do |
520 ## Make sure the value given was berkdb, dbm, gnudbm, or a list | 521 case "${x}" in |
521 for x in `echo "${val}" | sed 's/,/ /'` ; do | 522 no ) : ;; |
522 case "${x}" in | 523 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; |
523 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; | 524 d | db | dbm ) with_database_dbm=yes ;; |
524 d | db | dbm ) with_database_dbm=yes ;; | |
525 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; | 525 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; |
526 * ) | 526 * ) USAGE_ERROR(["The \`--${optname}' option value |
527 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no' | 527 must be either \`no' or a comma-separated list |
528 or a comma-separated list of one or more of \`berkdb', \`dbm', or \`gnudbm'." | 528 of one or more of \`berkdb', \`dbm', or \`gnudbm'."]) ;; |
529 echo "${short_usage}") >&2 | 529 esac |
530 exit 1 | 530 done |
531 ;; | 531 if test "${with_database_dbm}" = "yes" -a \ |
532 esac | 532 "${with_database_gnudbm}" = "yes" ; then |
533 done | 533 USAGE_ERROR("Only one of \`dbm' and \`gnudbm' may be specified |
534 if test "${with_database_dbm}" = "yes" -a "${with_database_gnudbm}" = "yes" | 534 with the \`--${optname}' option.") |
535 then | |
536 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2 | |
537 exit 1 | |
538 fi | |
539 fi | 535 fi |
540 ;; | 536 ;; |
541 | 537 |
542 ## Has the user requested sound support? | 538 ## Has the user requested sound support? |
543 "with_sound" ) | 539 "with_sound" ) |
547 y | ye | yes ) val=native ;; | 543 y | ye | yes ) val=native ;; |
548 n | no | non | none ) val=no;; | 544 n | no | non | none ) val=no;; |
549 na | nat | nati | nativ | native ) val=native ;; | 545 na | nat | nati | nativ | native ) val=native ;; |
550 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;; | 546 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;; |
551 b | bo | bot | both ) val=both;; | 547 b | bo | bot | both ) val=both;; |
552 * ) | 548 * ) USAGE_ERROR(["The \`--${optname}' option must have one of these values: |
553 (echo "${progname}: the \`--${optname}' option should have one of the values:" | 549 \`native', \`nas', \`both', or \`none'."]) ;; |
554 echo "\`native', \`nas', \`both', or \`none'." | |
555 echo "" | |
556 echo "${short_usage}") >&2 | |
557 exit 1 | |
558 ;; | |
559 esac | 550 esac |
560 eval "${opt}=\"${val}\"" | 551 eval "${opt}=\"${val}\"" |
561 ;; | 552 ;; |
562 | 553 |
563 ## Has the user requested XIM support? | 554 ## Has the user requested XIM support? |
564 "with_xim" ) | 555 "with_xim" ) |
565 ## value can be xlib or motif | 556 ## value can be xlib or motif |
566 ## as a backwards compatible synonym for native | |
567 case "${val}" in | 557 case "${val}" in |
568 y | ye | yes ) val=yes ;; | 558 y | ye | yes ) val=yes ;; |
569 n | no | non | none ) val=no ;; | 559 n | no | non | none ) val=no ;; |
570 x | xl | xli | xlib ) val=xlib ;; | 560 x | xl | xli | xlib ) val=xlib ;; |
571 m | mo | mot | moti | motif ) val=motif ;; | 561 m | mo | mot | moti | motif ) val=motif ;; |
572 * ) | 562 * ) USAGE_ERROR(["The \`--${optname}' option must have one of these values: |
573 (echo "${progname}: the \`--${optname}' option should have one of the values:" | 563 \`motif', \`xlib', \`yes', or \`no'."]) ;; |
574 echo "\`motif', \`xlib', \`yes', or \`no'." | |
575 echo "" | |
576 echo "${short_usage}") >&2 | |
577 exit 1 | |
578 ;; | |
579 esac | 564 esac |
580 eval "${opt}=\"${val}\"" | 565 eval "${opt}=\"${val}\"" |
581 ;; | 566 ;; |
582 | 567 |
583 ## Has the user requested PNG support? | 568 ## Has the user requested PNG support? |
585 ## Make sure the value given was either "yes", "no", or "gnuz". | 570 ## Make sure the value given was either "yes", "no", or "gnuz". |
586 case "${val}" in | 571 case "${val}" in |
587 y | ye | yes ) val=yes ;; | 572 y | ye | yes ) val=yes ;; |
588 n | no ) val=no ;; | 573 n | no ) val=no ;; |
589 g | gn | gnu | gnuz ) val=gnuz ;; | 574 g | gn | gnu | gnuz ) val=gnuz ;; |
590 * ) | 575 * ) USAGE_ERROR(["The \`--${optname}' option must have one of these values: |
591 (echo "${progname}: the \`--${optname}' option is supposed to | 576 \`yes', \`no', or \`gnuz'."]) ;; |
592 be either \`yes', \`no', or \`gnuz'." | |
593 echo "${short_usage}") >&2 | |
594 exit 1 | |
595 ;; | |
596 esac | 577 esac |
597 eval "${opt}=\"${val}\"" | 578 eval "${opt}=\"${val}\"" |
598 ;; | 579 ;; |
599 | 580 |
600 ## Has the user requested error-checking? | 581 ## Has the user requested error-checking? |
626 | 607 |
627 * ) bogus_error_check=yes ;; | 608 * ) bogus_error_check=yes ;; |
628 esac | 609 esac |
629 if test "$bogus_error_check" -o \ | 610 if test "$bogus_error_check" -o \ |
630 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then | 611 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then |
631 ( echo "${progname}: Valid types for the \`--${optname}' option are:" | |
632 if test $error_check_default = yes ; then | 612 if test $error_check_default = yes ; then |
633 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'." | 613 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'." |
634 else | 614 else |
635 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'." | 615 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'." |
636 fi | 616 fi |
637 echo "${short_usage}" ) >&2 | 617 USAGE_ERROR(["Valid types for the \`--${optname}' option are: |
638 exit 1 | 618 $types."]) |
639 elif test "$new_default" ; then | 619 elif test "$new_default" ; then |
640 error_check_extents=$new_default | 620 error_check_extents=$new_default |
641 error_check_typecheck=$new_default | 621 error_check_typecheck=$new_default |
642 error_check_bufpos=$new_default | 622 error_check_bufpos=$new_default |
643 error_check_gc=$new_default | 623 error_check_gc=$new_default |
657 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ | 637 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ |
658 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \ | 638 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \ |
659 sitelispdir | docdir ) | 639 sitelispdir | docdir ) |
660 ## If the value was omitted, get it from the next argument. | 640 ## If the value was omitted, get it from the next argument. |
661 if test "${valomitted}" = "yes" ; then | 641 if test "${valomitted}" = "yes" ; then |
662 if test $# = 0 ; then | 642 if test "$#" = 0 ; then |
663 (echo \ | 643 USAGE_ERROR("The \`--${optname}' option requires a value."); |
664 "$progname: You must give a value for the \`--${optname}' option,"; | 644 fi |
665 echo \ | 645 val="$1"; shift |
666 "as in \`--${optname}=`eval echo '$'$optname`.'" | |
667 echo "$short_usage") >&2 | |
668 exit 1 | |
669 fi | |
670 val="$1"; shift | |
671 fi | 646 fi |
672 eval "${opt}=\"${val}\"" | 647 eval "${opt}=\"${val}\"" |
673 | 648 |
674 ## Changing exec_prefix or libdir will change the default value | 649 ## Changing exec_prefix or libdir will change the default value |
675 ## of archlibdir. Changing datadir will change the default value | 650 ## of archlibdir. Changing datadir will change the default value |
691 | 666 |
692 ## Has the user specified values to override CFLAGS? | 667 ## Has the user specified values to override CFLAGS? |
693 cflags ) | 668 cflags ) |
694 ## If the value was omitted, get it from the next argument. | 669 ## If the value was omitted, get it from the next argument. |
695 if test "${valomitted}" = "yes" ; then | 670 if test "${valomitted}" = "yes" ; then |
696 if test $# = 0 ; then | 671 if test "$#" = 0 ; then |
697 (echo \ | 672 USAGE_ERROR("The \`--${optname}' option requires a value."); |
698 "$progname: You must give a value for the \`--${optname}' option,"; | |
699 echo \ | |
700 "as in \`--${optname}=`eval echo '$'$optname`-g -O'" | |
701 echo "$short_usage") >&2 | |
702 exit 1 | |
703 fi | 673 fi |
704 val="$1"; shift | 674 val="$1"; shift |
705 fi | 675 fi |
706 eval "${opt}=\"${val}\"" | 676 eval "${opt}=\"${val}\"" |
707 eval "${opt}_specified=1" | 677 eval "${opt}_specified=1" |
708 ;; | 678 ;; |
709 | 679 |
710 ## Verbose flag, tested by autoconf macros. | |
711 "verbose" ) | |
712 verbose=yes | |
713 ;; | |
714 | |
715 ## --no-create added by autoconf for use by config.status | 680 ## --no-create added by autoconf for use by config.status |
716 "no_create" ) | 681 "no_create" ) |
717 ;; | 682 ;; |
718 | 683 |
719 ## Has the user asked for some help? | 684 ## Has the user asked for some help? |
720 "usage" | "help" ) | 685 "usage" | "help" ) |
721 if test -z "$PAGER" | 686 echo "${short_usage}" | ${PAGER:-more} |
722 then echo "${short_usage}" | more | 687 exit 0 |
723 else echo "${short_usage}" | $PAGER | |
724 fi | |
725 exit | |
726 ;; | 688 ;; |
727 | 689 |
728 ## Has the user specified what toolkit to use for the menubars, | 690 ## Has the user specified what toolkit to use for the menubars, |
729 ## scrollbar or dialogs? | 691 ## scrollbar or dialogs? |
730 "with_menubars" | "with_scrollbars" | "with_dialogs" ) | 692 "with_menubars" | "with_scrollbars" | "with_dialogs" ) |
733 l | lu | luc | luci | lucid ) val=lucid ;; | 695 l | lu | luc | luci | lucid ) val=lucid ;; |
734 m | mo | mot | moti | motif ) val=motif ;; | 696 m | mo | mot | moti | motif ) val=motif ;; |
735 athena3d | athena-3d ) val=athena3d ;; | 697 athena3d | athena-3d ) val=athena3d ;; |
736 a | at | ath | athe | athen | athena ) val=athena ;; | 698 a | at | ath | athe | athen | athena ) val=athena ;; |
737 n | no | non | none ) val=no ;; | 699 n | no | non | none ) val=no ;; |
738 * ) | 700 * ) USAGE_ERROR(["The \`--${optname}' option must have one of these values: |
739 (echo "${progname}: the \`--${optname}' option should have one of the values:" | 701 \`lucid', \`motif', \`athena', or \`no'."]) ;; |
740 echo "\`lucid', \`motif', \`athena', or \`no'." | |
741 echo "" | |
742 echo "${short_usage}") >&2 | |
743 exit 1 | |
744 ;; | |
745 esac | 702 esac |
746 eval "${opt}=\"${val}\"" | 703 eval "${opt}=\"${val}\"" |
747 ;; | 704 ;; |
748 | 705 |
749 ## Fail on unrecognized arguments. | 706 ## Fail on unrecognized arguments. |
750 * ) | 707 * ) USAGE_ERROR("Unrecognized option: ${arg}") ;; |
751 (echo "${progname}: Error: unrecognized option: ${arg}" | |
752 echo "" | |
753 echo "${short_usage}") >& 2 | |
754 exit 1 | |
755 ;; | |
756 | 708 |
757 esac | 709 esac |
758 ;; | 710 ;; |
759 | 711 |
760 ## Anything not starting with a hyphen we assume is a | 712 ## Anything not starting with a hyphen we assume is a |
796 ### with_x is a synonym for with_x11 | 748 ### with_x is a synonym for with_x11 |
797 test -n "${with_x}" && with_x11="${with_x}" | 749 test -n "${with_x}" && with_x11="${with_x}" |
798 | 750 |
799 ### Can't specify 2 compilers | 751 ### Can't specify 2 compilers |
800 if test "${with_gcc}" = "yes" -a "${with_lcc}" = "yes"; then | 752 if test "${with_gcc}" = "yes" -a "${with_lcc}" = "yes"; then |
801 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified." | 753 USAGE_ERROR("Only one of --with-gcc and --with-lcc may be specified.") |
802 echo "${short_usage}") >&2 | |
803 exit 1 | |
804 fi | 754 fi |
805 | 755 |
806 ### Ignore useless run-in-place flag | 756 ### Ignore useless run-in-place flag |
807 if test "${run_in_place}" = "yes"; then | 757 if test "${run_in_place}" = "yes"; then |
808 ] AC_WARN(The --run-in-place option is ignored because it is unnecessary.) [ | 758 AC_WARN(The --run-in-place option is ignored because it is unnecessary.) |
809 fi | 759 fi |
810 | 760 |
811 ########################################################################### | 761 ########################################################################### |
812 if test "${configuration}" = "" ; then | 762 if test "${configuration}" = "" ; then |
813 echo '- You did not tell me what kind of host system you want to configure. | 763 echo '- You did not tell me what kind of host system you want to configure. |
814 - I will attempt to guess the kind of system this is.' 1>&2 | 764 - I will attempt to guess the kind of system this is.' 1>&2 |
815 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'` | 765 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'` |
816 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then | 766 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then |
817 echo "- Looks like this is a ${configuration}" 1>&2 | 767 echo "- Looks like this is a ${configuration}" 1>&2 |
818 else | 768 else |
819 echo '- Failed to guess the system type. You need to tell me.' 1>&2 | 769 USAGE_ERROR("Failed to guess the system type. You need to tell me.") |
820 echo "${short_usage}" >&2 | |
821 exit 1 | |
822 fi | 770 fi |
823 fi | 771 fi |
824 | 772 |
825 ### Find the source directory. | 773 ### Find the source directory. |
826 case "${srcdir}" in | 774 case "${srcdir}" in |
827 | 775 |
828 ## If it's not specified, see if `.' or `..' might work. | 776 ## If it's not specified, see if `.' or `..' might work. |
829 "" ) | 777 "" ) |
830 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do | 778 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[[^/]]*$||'`" "." ".." ; do |
831 if test -f "$dir/src/lisp.h" -a -f "$dir/lisp/version.el" ; then | 779 if test -f "$dir/src/lisp.h" -a \ |
780 -f "$dir/lisp/version.el" ; then | |
832 srcdir="${dir}" | 781 srcdir="${dir}" |
833 break | 782 break |
834 fi | 783 fi |
835 done | 784 done |
836 if test -z "${srcdir}" ; then | 785 if test -z "${srcdir}" ; then |
837 echo "\ | 786 USAGE_ERROR(["Neither the current directory nor its parent seem to |
838 ${progname}: Neither the current directory nor its parent seem to | 787 contain the XEmacs sources. If you do not want to build XEmacs in its |
839 contain the XEmacs sources. If you do not want to build XEmacs in its | 788 source tree, you should run \`${progname}' in the directory in which |
840 source tree, you should run \`${progname}' in the directory in which | 789 you wish to build XEmacs, using the \`--srcdir' option to say where the |
841 you wish to build XEmacs, using its \`--srcdir' option to say where the | 790 sources may be found."]) |
842 sources may be found. | 791 fi |
843 ${short_usage}" >&2 | |
844 exit 1 | |
845 fi | |
846 ;; | 792 ;; |
847 | 793 |
848 ## Otherwise, check if the directory they specified is okay. | 794 ## Otherwise, check if the directory they specified is okay. |
849 * ) | 795 * ) |
850 if test ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ; then | 796 if test ! -d "${srcdir}" -o \ |
851 (echo "\ | 797 ! -f "${srcdir}/src/lisp.h" -o \ |
852 ${progname}: The directory specified with the \`--srcdir' option, | 798 ! -f "${srcdir}/lisp/version.el" ; then |
853 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should | 799 USAGE_ERROR(["The directory specified with the \`--srcdir' option, |
854 either run the \`${progname}' script at the top of the XEmacs source | 800 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should |
855 tree, or use the \`--srcdir' option to specify where the XEmacs sources | 801 either run the \`${progname}' script at the top of the XEmacs source |
856 are." | 802 tree, or use the \`--srcdir' option to specify the XEmacs source directory."]) |
857 echo "${short_usage}") >&2 | |
858 exit 1 | |
859 fi | 803 fi |
860 ;; | 804 ;; |
861 esac | 805 esac |
862 | 806 |
863 ## We check for this now instead of later when we check for other | 807 ## We check for this now instead of later when we check for other |
864 ## programs because we need to use its return value now. | 808 ## programs because we need to use its return value now. |
865 ] AC_LN_S | 809 AC_LN_S |
866 | 810 |
867 AC_VERBOSE("setting LN_S to ${LN_S}") | 811 AC_VERBOSE("setting LN_S to ${LN_S}") |
868 | 812 |
869 #### Make symlinks for etc, lisp, and info directories while the path | 813 #### Make symlinks for etc, lisp, and info directories while the path |
870 #### is still relative. We don't symlink lock because someone may | 814 #### is still relative. We don't symlink lock because someone may |
877 echo Making symbolic link to ${srcdir}/$dir | 821 echo Making symbolic link to ${srcdir}/$dir |
878 ${LN_S} ${srcdir}/$dir . | 822 ${LN_S} ${srcdir}/$dir . |
879 fi | 823 fi |
880 done | 824 done |
881 | 825 |
882 [ | |
883 #### Make srcdir absolute, if it isn't already. It's important to | 826 #### Make srcdir absolute, if it isn't already. It's important to |
884 #### avoid running the path through pwd unnecessary, since pwd can | 827 #### avoid running the path through pwd unnecessary, since pwd can |
885 #### give you automounter prefixes, which can go away. | 828 #### give you automounter prefixes, which can go away. |
886 case "${srcdir}" in | 829 case "${srcdir}" in |
887 /* ) ;; | 830 /* ) ;; |
904 echo " as a build directory right now; it has been configured in its own" | 847 echo " as a build directory right now; it has been configured in its own" |
905 echo " right. To configure in another directory as well, you MUST" | 848 echo " right. To configure in another directory as well, you MUST" |
906 echo " use GNU make. If you do not have GNU make, then you must" | 849 echo " use GNU make. If you do not have GNU make, then you must" |
907 echo " now do \`make distclean' in ${srcdir}," | 850 echo " now do \`make distclean' in ${srcdir}," |
908 echo " and then run ${progname} again.") >&2 | 851 echo " and then run ${progname} again.") >&2 |
909 extrasub='/^VPATH[ ]*=/c\ | 852 extrasub='/^VPATH[[ ]]*=/c\ |
910 vpath %.c $(srcdir)\ | 853 vpath %.c $(srcdir)\ |
911 vpath %.h $(srcdir)\ | 854 vpath %.h $(srcdir)\ |
912 vpath %.y $(srcdir)\ | 855 vpath %.y $(srcdir)\ |
913 vpath %.l $(srcdir)\ | 856 vpath %.l $(srcdir)\ |
914 vpath %.s $(srcdir)\ | 857 vpath %.s $(srcdir)\ |
973 ## NetBSD ports | 916 ## NetBSD ports |
974 *-*-netbsd* ) | 917 *-*-netbsd* ) |
975 opsys=netbsd | 918 opsys=netbsd |
976 case "${canonical}" in | 919 case "${canonical}" in |
977 sparc-*-netbsd*) machine=sparc ;; | 920 sparc-*-netbsd*) machine=sparc ;; |
978 i[3-9]86-*-netbsd*) machine=intel386 ;; | 921 i[[3-9]]86-*-netbsd*) machine=intel386 ;; |
979 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* ) | 922 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* ) |
980 # Yes, this is somewhat bogus. | 923 # Yes, this is somewhat bogus. |
981 machine=hp9000s300 ;; | 924 machine=hp9000s300 ;; |
982 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;; | 925 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;; |
983 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;; | 926 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;; |
997 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;; | 940 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;; |
998 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;; | 941 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;; |
999 | 942 |
1000 ## Alpha (DEC) machines. | 943 ## Alpha (DEC) machines. |
1001 ## XEmacs change: split apart into numerous files. | 944 ## XEmacs change: split apart into numerous files. |
1002 alpha-dec-osf1.3 | alpha-dec-osf2* ) machine=alpha opsys=decosf1-3 ;; | 945 alpha-*-* ) |
1003 alpha-dec-osf1.2 | alpha-dec-osf1* ) machine=alpha opsys=decosf1-2 ;; | 946 machine=alpha |
1004 | 947 case "${canonical}" in |
1005 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu) | 948 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;; |
1006 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu) | 949 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;; |
1007 alpha-dec-osf3.[2-9] ) machine=alpha opsys=decosf3-2 ;; | 950 |
1008 alpha-dec-osf3* ) machine=alpha opsys=decosf3-1 ;; | 951 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu) |
1009 alpha-dec-osf4* ) machine=alpha opsys=decosf4-0 ;; | 952 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu) |
1010 alpha-*-linux* ) machine=alpha opsys=linux ;; | 953 *-dec-osf3.[[2-9]] ) opsys=decosf3-2 ;; |
954 *-dec-osf3* ) opsys=decosf3-1 ;; | |
955 *-dec-osf4* ) opsys=decosf4-0 ;; | |
956 *-*-linux* ) opsys=linux ;; | |
957 esac | |
958 ;; | |
1011 | 959 |
1012 ## Altos 3068 | 960 ## Altos 3068 |
1013 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;; | 961 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;; |
1014 | 962 |
1015 ## Amdahl UTS | 963 ## Amdahl UTS |
1051 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | 999 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov |
1052 NON_GNU_CPP="cc -E -P" | 1000 NON_GNU_CPP="cc -E -P" |
1053 ;; | 1001 ;; |
1054 | 1002 |
1055 ## Cubix QBx/386 | 1003 ## Cubix QBx/386 |
1056 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;; | 1004 i[[3-9]]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;; |
1057 | 1005 |
1058 ## Cydra 5 | 1006 ## Cydra 5 |
1059 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;; | 1007 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;; |
1060 | 1008 |
1061 ## Data General AViiON Machines | 1009 ## Data General AViiON Machines |
1062 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;; | 1010 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;; |
1063 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) machine=aviion opsys=dgux5-4r3 ;; | 1011 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) machine=aviion opsys=dgux5-4r3 ;; |
1064 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) machine=aviion opsys=dgux5-4r2 ;; | 1012 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) machine=aviion opsys=dgux5-4r2 ;; |
1065 m88k-dg-dgux* ) machine=aviion opsys=dgux ;; | 1013 m88k-dg-dgux* ) machine=aviion opsys=dgux ;; |
1066 | 1014 |
1067 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) machine=pmax opsys=bsd4-2 ;; | 1015 ## Dec Mips machines |
1068 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) machine=pmax opsys=bsd4-3 ;; | 1016 mips-dec-* ) |
1069 mips-dec-ultrix* ) machine=pmax opsys=ultrix4-3 ;; | 1017 machine=pmax |
1070 mips-dec-osf* ) machine=pmax opsys=osf1 ;; | 1018 case "${canonical}" in |
1071 mips-dec-mach_bsd4.3* ) machine=pmax opsys=mach-bsd4-3 ;; | 1019 *-*-ultrix[[0-3]].* | *-*-ultrix4.0* | *-*-bsd4.2* ) opsys=bsd4-2 ;; |
1020 *-*-ultrix4.[[12]]* | *-*-bsd* ) opsys=bsd4-3 ;; | |
1021 *-*-ultrix* ) opsys=ultrix4-3 ;; | |
1022 *-*-osf* ) opsys=osf1 ;; | |
1023 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;; | |
1024 esac | |
1025 ;; | |
1072 | 1026 |
1073 ## Motorola Delta machines | 1027 ## Motorola Delta machines |
1074 m68k-motorola-sysv* | m68000-motorola-sysv* ) | 1028 m68k-motorola-sysv* | m68000-motorola-sysv* ) |
1075 machine=delta opsys=usg5-3 | 1029 machine=delta opsys=usg5-3 |
1076 if test -z "`type gnucc | grep 'not found'`" | 1030 if test -z "`type gnucc | grep 'not found'`" |
1113 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | 1067 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 |
1114 ## as far as XEmacs is concerned). | 1068 ## as far as XEmacs is concerned). |
1115 m88k-harris-cxux* ) | 1069 m88k-harris-cxux* ) |
1116 # Build needs to be different on 7.0 and later releases | 1070 # Build needs to be different on 7.0 and later releases |
1117 case "`uname -r`" in | 1071 case "`uname -r`" in |
1118 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | 1072 [[56]].[[0-9]] ) machine=nh4000 opsys=cxux ;; |
1119 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | 1073 [[7]].[[0-9]] ) machine=nh4000 opsys=cxux7 ;; |
1120 esac | 1074 esac |
1121 NON_GNU_CPP="/lib/cpp" | 1075 NON_GNU_CPP="/lib/cpp" |
1122 ;; | 1076 ;; |
1123 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | 1077 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) |
1124 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;; | 1078 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;; |
1176 ## Orion machines | 1130 ## Orion machines |
1177 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;; | 1131 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;; |
1178 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;; | 1132 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;; |
1179 | 1133 |
1180 ## IBM machines | 1134 ## IBM machines |
1181 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;; | 1135 i[[3-9]]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;; |
1182 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;; | 1136 i[[3-9]]86-ibm-aix1.[[23]]* | i[[3-9]]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;; |
1183 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;; | 1137 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;; |
1184 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) machine=ibmrs6000 opsys=aix3-1 ;; | 1138 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) machine=ibmrs6000 opsys=aix3-1 ;; |
1185 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) machine=ibmrs6000 opsys=aix3-2-5 ;; | 1139 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) machine=ibmrs6000 opsys=aix3-2-5 ;; |
1186 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) machine=ibmrs6000 opsys=aix4-2 ;; | 1140 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) machine=ibmrs6000 opsys=aix4-2 ;; |
1187 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) machine=ibmrs6000 opsys=aix4-1 ;; | 1141 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) machine=ibmrs6000 opsys=aix4-1 ;; |
1199 ## Integrated Solutions `Optimum V' | 1153 ## Integrated Solutions `Optimum V' |
1200 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;; | 1154 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;; |
1201 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;; | 1155 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;; |
1202 | 1156 |
1203 ## Intel 386 machines where we do care about the manufacturer | 1157 ## Intel 386 machines where we do care about the manufacturer |
1204 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;; | 1158 i[[3-9]]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;; |
1205 | 1159 |
1206 ## Prime EXL | 1160 ## Prime EXL |
1207 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;; | 1161 i[[3-9]]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;; |
1208 | 1162 |
1209 ## Sequent Symmetry running Dynix | 1163 ## Sequent Symmetry running Dynix |
1210 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;; | 1164 i[[3-9]]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;; |
1211 | 1165 |
1212 ## Sequent Symmetry running DYNIX/ptx | 1166 ## Sequent Symmetry running DYNIX/ptx |
1213 ## Use the old cpp rather than the newer ANSI one. | 1167 ## Use the old cpp rather than the newer ANSI one. |
1214 i[3-9]86-sequent-ptx* ) | 1168 i[[3-9]]86-sequent-ptx* ) |
1215 machine=sequent-ptx opsys=ptx | 1169 machine=sequent-ptx opsys=ptx |
1216 NON_GNU_CPP="/lib/cpp" | 1170 NON_GNU_CPP="/lib/cpp" |
1217 ;; | 1171 ;; |
1218 | 1172 |
1219 ## Unspecified sysv on an ncr machine defaults to svr4.2. | 1173 ## Unspecified sysv on an ncr machine defaults to svr4.2. |
1220 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | 1174 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) |
1221 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;; | 1175 i[[3-9]]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;; |
1222 | 1176 |
1223 ## Intel Paragon OSF/1 | 1177 ## Intel Paragon OSF/1 |
1224 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;; | 1178 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;; |
1225 | 1179 |
1226 ## Intel 860 | 1180 ## Intel 860 |
1303 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;; | 1257 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;; |
1304 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;; | 1258 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;; |
1305 ## Iris 4D | 1259 ## Iris 4D |
1306 mips-sgi-irix3.* ) machine=iris4d opsys=irix3-3 ;; | 1260 mips-sgi-irix3.* ) machine=iris4d opsys=irix3-3 ;; |
1307 mips-sgi-irix4.* ) machine=iris4d opsys=irix4-0 ;; | 1261 mips-sgi-irix4.* ) machine=iris4d opsys=irix4-0 ;; |
1308 mips-sgi-irix6* ) machine=iris4d | 1262 mips-sgi-irix6* ) machine=iris4d opsys=irix6-0 NON_GNU_CC="cc -Olimit 2000" ;; |
1309 opsys=irix6-0 | 1263 mips-sgi-irix5.[[3-9]]* ) machine=iris4d opsys=irix5-3 ;; |
1310 NON_GNU_CC="cc -Olimit 2000" ;; | |
1311 mips-sgi-irix5.[3-9]* ) machine=iris4d opsys=irix5-3 ;; | |
1312 mips-sgi-irix5.2* ) machine=iris4d opsys=irix5-2 ;; | 1264 mips-sgi-irix5.2* ) machine=iris4d opsys=irix5-2 ;; |
1313 mips-sgi-irix5.1* ) machine=iris4d opsys=irix5-1 ;; | 1265 mips-sgi-irix5.1* ) machine=iris4d opsys=irix5-1 ;; |
1314 mips-sgi-irix* ) machine=iris4d opsys=irix5-0 ;; | 1266 mips-sgi-irix* ) machine=iris4d opsys=irix5-0 ;; |
1315 | 1267 |
1316 ## SONY machines | 1268 ## SONY machines |
1330 # Hardware type | 1282 # Hardware type |
1331 case "${canonical}" in | 1283 case "${canonical}" in |
1332 m68*-sunos1* ) machine=sun1 ;; | 1284 m68*-sunos1* ) machine=sun1 ;; |
1333 m68*-sunos2* ) machine=sun2 ;; | 1285 m68*-sunos2* ) machine=sun2 ;; |
1334 m68* ) machine=sun3 ;; | 1286 m68* ) machine=sun3 ;; |
1335 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;; | 1287 i[[3-9]]86*-sun-sunos[[34]]* ) machine=sun386 ;; |
1336 i[3-9]86-*-* ) machine=intel386 ;; | 1288 i[[3-9]]86-*-* ) machine=intel386 ;; |
1337 rs6000* ) machine=rs6000 ;; | 1289 rs6000* ) machine=rs6000 ;; |
1338 sparc* ) machine=sparc ;; | 1290 sparc* ) machine=sparc ;; |
1339 powerpc* ) machine=powerpc ;; | 1291 powerpc* ) machine=powerpc ;; |
1340 * ) unported=yes ;; | 1292 * ) unported=yes ;; |
1341 esac | 1293 esac |
1354 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;; | 1306 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;; |
1355 *-solaris2* ) | 1307 *-solaris2* ) |
1356 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp | 1308 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp |
1357 RANLIB=':' | 1309 RANLIB=':' |
1358 case "${canonical}" in | 1310 case "${canonical}" in |
1359 *-solaris2.[6-9]* ) need_dynodump=no ;; | 1311 *-solaris2.[[6-9]]* ) need_dynodump=no ;; |
1360 *-solaris2* ) need_dynodump=yes ;; | 1312 *-solaris2* ) need_dynodump=yes ;; |
1361 esac | 1313 esac |
1362 esac | 1314 esac |
1363 | 1315 |
1364 case "${canonical}" in | 1316 case "${canonical}" in |
1365 ## The Sun386 didn't get past 4.0. | 1317 ## The Sun386 didn't get past 4.0. |
1366 i[3-9]86-*-sunos4* ) opsys=sunos4-0 ;; | 1318 i[[3-9]]86-*-sunos4* ) opsys=sunos4-0 ;; |
1367 *-sunos4.0* ) opsys=sunos4-0 ;; | 1319 *-sunos4.0* ) opsys=sunos4-0 ;; |
1368 *-sunos4.1.2* ) opsys=sunos4-1-2 ;; | 1320 *-sunos4.1.2* ) opsys=sunos4-1-2 ;; |
1369 *-sunos4.1.3* ) opsys=sunos4-1-3 ;; | 1321 *-sunos4.1.3* ) opsys=sunos4-1-3 ;; |
1370 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;; | 1322 *-sunos4.1.[[4-9]]* ) opsys=sunos4-1-4 ;; |
1371 *-sunos4* | *-sunos ) opsys=sunos4-1 ;; | 1323 *-sunos4* | *-sunos ) opsys=sunos4-1 ;; |
1372 | 1324 |
1373 *-solaris2.3* ) opsys=sol2-3 ;; | 1325 *-solaris2.3* ) opsys=sol2-3 ;; |
1374 *-solaris2.4* ) opsys=sol2-4 ;; | 1326 *-solaris2.4* ) opsys=sol2-4 ;; |
1375 *-solaris2.5* ) opsys=sol2-5 ;; | 1327 *-solaris2.5* ) opsys=sol2-5 ;; |
1376 *-solaris2.[6-9]* ) opsys=sol2-6 ;; | 1328 *-solaris2.[[6-9]]* ) opsys=sol2-6 ;; |
1377 *-solaris* ) opsys=sol2 ;; | 1329 *-solaris* ) opsys=sol2 ;; |
1378 | 1330 |
1379 *-mach* ) opsys=mach-bsd4-3 ;; | 1331 *-mach* ) opsys=mach-bsd4-3 ;; |
1380 * ) opsys=bsd4-2 ;; | 1332 * ) opsys=bsd4-2 ;; |
1381 esac | 1333 esac |
1419 ## Vaxen. | 1371 ## Vaxen. |
1420 vax-dec-* ) | 1372 vax-dec-* ) |
1421 machine=vax | 1373 machine=vax |
1422 case "${canonical}" in | 1374 case "${canonical}" in |
1423 *-bsd4.1* ) opsys=bsd4-1 ;; | 1375 *-bsd4.1* ) opsys=bsd4-1 ;; |
1424 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | 1376 *-bsd4.2* | *-ultrix[[0-3]].* | *-ultrix4.0* ) opsys=bsd4-2 ;; |
1425 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | 1377 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; |
1426 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | 1378 *-sysv[[01]]* | *-sysvr[[01]]* ) opsys=usg5-0 ;; |
1427 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | 1379 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; |
1428 *-vms* ) opsys=vms ;; | 1380 *-vms* ) opsys=vms ;; |
1429 *-mach* ) opsys=mach-bsd4-3 ;; | 1381 *-mach* ) opsys=mach-bsd4-3 ;; |
1430 * ) unported=yes | 1382 * ) unported=yes |
1431 esac | 1383 esac |
1438 | 1390 |
1439 ## Wicat | 1391 ## Wicat |
1440 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;; | 1392 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;; |
1441 | 1393 |
1442 ## Intel 386 machines where we don't care about the manufacturer | 1394 ## Intel 386 machines where we don't care about the manufacturer |
1443 i[3-9]86-*-* ) | 1395 i[[3-9]]86-*-* ) |
1444 machine=intel386 | 1396 machine=intel386 |
1445 case "${canonical}" in | 1397 case "${canonical}" in |
1446 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; | 1398 *-isc1.* | *-isc2.[[01]]* ) opsys=386-ix ;; |
1447 *-isc2.2* ) opsys=isc2-2 ;; | 1399 *-isc2.2* ) opsys=isc2-2 ;; |
1448 *-isc4.0* ) opsys=isc4-0 ;; | 1400 *-isc4.0* ) opsys=isc4-0 ;; |
1449 *-isc4.* ) opsys=isc4-1 | 1401 *-isc4.* ) opsys=isc4-1 |
1450 GCC_TEST_OPTIONS=-posix | 1402 GCC_TEST_OPTIONS=-posix |
1451 NON_GCC_TEST_OPTIONS=-Xp | 1403 NON_GCC_TEST_OPTIONS=-Xp |
1493 ### runs, it's cleaner to make it explicit in the case statement | 1445 ### runs, it's cleaner to make it explicit in the case statement |
1494 ### above. | 1446 ### above. |
1495 if test -z "${opsys}" ; then | 1447 if test -z "${opsys}" ; then |
1496 case "${canonical}" in | 1448 case "${canonical}" in |
1497 *-gnu* ) opsys=gnu ;; | 1449 *-gnu* ) opsys=gnu ;; |
1498 *-bsd4.[01] ) opsys=bsd4-1 ;; | 1450 *-bsd4.[[01]] ) opsys=bsd4-1 ;; |
1499 *-bsd4.2 ) opsys=bsd4-2 ;; | 1451 *-bsd4.2 ) opsys=bsd4-2 ;; |
1500 *-bsd4.3 ) opsys=bsd4-3 ;; | 1452 *-bsd4.3 ) opsys=bsd4-3 ;; |
1501 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | 1453 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; |
1502 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | 1454 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; |
1503 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | 1455 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; |
1504 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | 1456 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; |
1505 *-sysv4.1* | *-sysvr4.1* ) opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;; | 1457 *-sysv4.1* | *-sysvr4.1* ) opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;; |
1506 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | 1458 *-sysv4.[[2-9]]* | *-sysvr4.[[2-9]]* ) |
1507 if test -z "$NON_GNU_CPP" ; then | 1459 if test -z "$NON_GNU_CPP" ; then |
1508 if test -f /usr/ccs/lib/cpp | 1460 if test -f /usr/ccs/lib/cpp |
1509 then NON_GNU_CPP=/usr/ccs/lib/cpp | 1461 then NON_GNU_CPP=/usr/ccs/lib/cpp |
1510 else NON_GNU_CPP=/lib/cpp | 1462 else NON_GNU_CPP=/lib/cpp |
1511 fi | 1463 fi |
1538 dynodump_arch='' | 1490 dynodump_arch='' |
1539 if test "${need_dynodump}" = "yes" ; then | 1491 if test "${need_dynodump}" = "yes" ; then |
1540 case "${canonical}" in | 1492 case "${canonical}" in |
1541 sparc* ) dynodump_arch=sparc ;; | 1493 sparc* ) dynodump_arch=sparc ;; |
1542 powerpc* ) dynodump_arch=ppc ;; | 1494 powerpc* ) dynodump_arch=ppc ;; |
1543 i[3-9]86* ) dynodump_arch=i386 ;; | 1495 i[[3-9]]86* ) dynodump_arch=i386 ;; |
1544 esac | 1496 esac |
1545 fi | 1497 fi |
1546 | 1498 |
1547 machfile="m/${machine}.h" | 1499 machfile="m/${machine}.h" |
1548 opsysfile="s/${opsys}.h" | 1500 opsysfile="s/${opsys}.h" |
1552 # # | 1504 # # |
1553 # Determine the compiler, set up for feature testing # | 1505 # Determine the compiler, set up for feature testing # |
1554 # # | 1506 # # |
1555 ############################################################################ | 1507 ############################################################################ |
1556 | 1508 |
1557 ] | |
1558 dnl ----------------------------------------------------------------------- | 1509 dnl ----------------------------------------------------------------------- |
1559 dnl Let's do a couple of macro (re)definitions. | 1510 dnl Let's do a couple of macro (re)definitions. |
1560 dnl | 1511 dnl |
1561 dnl First we redefine AC_TEST_CPP so that we can see the error output | 1512 dnl First we redefine AC_TEST_CPP so that we can see the error output |
1562 dnl from preprocessor runs. This definition is identical to the standard | 1513 dnl from preprocessor runs. This definition is identical to the standard |
1673 fi | 1624 fi |
1674 ;; | 1625 ;; |
1675 esac | 1626 esac |
1676 fi | 1627 fi |
1677 | 1628 |
1678 [ | |
1679 | |
1680 #### Some systems specify a CPP to use unless we are using GCC. | 1629 #### Some systems specify a CPP to use unless we are using GCC. |
1681 #### Now that we know whether we are using GCC, we can decide whether | 1630 #### Now that we know whether we are using GCC, we can decide whether |
1682 #### to use that one. | 1631 #### to use that one. |
1683 if test "x$NON_GNU_CPP" = x -o x$GCC = x1 | 1632 if test "x$NON_GNU_CPP" = x -o x$GCC = x1 |
1684 then true | 1633 then true |
1715 ############################################################################ | 1664 ############################################################################ |
1716 | 1665 |
1717 #### Some other nice autoconf tests. If you add a test here which | 1666 #### Some other nice autoconf tests. If you add a test here which |
1718 #### should make an entry in src/config.h, don't forget to add an | 1667 #### should make an entry in src/config.h, don't forget to add an |
1719 #### #undef clause to src/config.h.in for autoconf to modify. | 1668 #### #undef clause to src/config.h.in for autoconf to modify. |
1720 ] | |
1721 dnl checks for programs | 1669 dnl checks for programs |
1722 AC_PROG_CPP | 1670 AC_PROG_CPP |
1723 [ | 1671 |
1724 case "${canonical}" in | 1672 case "${canonical}" in |
1725 *-sun-sunos* ) | 1673 *-sun-sunos* ) |
1726 if test "${CPP}" = "acc -E" ; then | 1674 if test "${CPP}" = "acc -E" ; then |
1727 CPP="acc -E -Xs" | 1675 CPP="acc -E -Xs" |
1728 fi | 1676 fi |
1729 ;; | 1677 ;; |
1730 esac | 1678 esac |
1731 ] | 1679 |
1732 AC_PROG_RANLIB | 1680 AC_PROG_RANLIB |
1733 AC_PROG_INSTALL | 1681 AC_PROG_INSTALL |
1734 AC_PROG_YACC | 1682 AC_PROG_YACC |
1735 | 1683 |
1736 dnl checks for UNIX variants | 1684 dnl checks for UNIX variants |
1737 AC_AIX | 1685 AC_AIX |
1738 | 1686 |
1739 dnl checks for header files | 1687 dnl checks for header files |
1740 AC_HAVE_HEADERS(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) | 1688 AC_HAVE_HEADERS(mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h) |
1689 AC_HAVE_HEADERS(utime.h sys/wait.h libintl.h locale.h libgen.h) | |
1690 AC_HAVE_HEADERS(linux/version.h kstat.h sys/pstat.h inttypes.h) | |
1741 AC_STDC_HEADERS | 1691 AC_STDC_HEADERS |
1742 AC_TIME_WITH_SYS_TIME | 1692 AC_TIME_WITH_SYS_TIME |
1743 AC_SYS_SIGLIST_DECLARED | 1693 AC_SYS_SIGLIST_DECLARED |
1744 | 1694 |
1745 dnl Some systems have utime.h but don't declare the struct anyplace. | 1695 dnl Some systems have utime.h but don't declare the struct anyplace. |
1802 need_xildoff=yes | 1752 need_xildoff=yes |
1803 fi | 1753 fi |
1804 fi | 1754 fi |
1805 | 1755 |
1806 dnl other checks for UNIX variants | 1756 dnl other checks for UNIX variants |
1807 [ | |
1808 # What the hell was this doing here?????? | 1757 # What the hell was this doing here?????? |
1809 ### echo > confdefs.h # this gets nuked above... | 1758 ### echo > confdefs.h # this gets nuked above... |
1810 | 1759 |
1811 ############################################################################ | 1760 ############################################################################ |
1812 # # | 1761 # # |
1845 echo "Don't specify a window system more than once." >&2 | 1794 echo "Don't specify a window system more than once." >&2 |
1846 exit 1 | 1795 exit 1 |
1847 ;; | 1796 ;; |
1848 esac | 1797 esac |
1849 | 1798 |
1850 ] | |
1851 case "${window_system}" in "" | "x11" ) | 1799 case "${window_system}" in "" | "x11" ) |
1852 ### If the user hasn't specified where we should find X, try | 1800 ### If the user hasn't specified where we should find X, try |
1853 ### letting autoconf figure that out. | 1801 ### letting autoconf figure that out. |
1854 if test -z "${x_includes}${x_libraries}" ; then | 1802 if test -z "${x_includes}${x_libraries}" ; then |
1855 AC_FIND_X | 1803 AC_FIND_X |
1864 if test "${with_tty}" != "yes" ; then | 1812 if test "${with_tty}" != "yes" ; then |
1865 echo "No window system support, and no TTY support." >&2 | 1813 echo "No window system support, and no TTY support." >&2 |
1866 echo "Unable to proceed." >&2 | 1814 echo "Unable to proceed." >&2 |
1867 exit 1 | 1815 exit 1 |
1868 fi | 1816 fi |
1869 for feature in epoch cde offix menubars scrollbars toolbars dialogs xim tiff | 1817 for feature in cde offix menubars scrollbars toolbars dialogs xim tiff |
1870 do | 1818 do |
1871 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then | 1819 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then |
1872 AC_WARN(--with-$feature ignored: Not valid without X support) | 1820 AC_WARN(--with-$feature ignored: Not valid without X support) |
1873 fi | 1821 fi |
1874 eval "with_$feature=no" | 1822 eval "with_$feature=no" |
1875 done | 1823 done |
1876 elif test -z "${with_toolbars}" ; then | 1824 elif test -z "${with_toolbars}" ; then |
1877 with_toolbars='yes' | 1825 with_toolbars='yes' |
1878 fi | 1826 fi |
1879 [ | 1827 |
1880 runtime_arg="-R${dash_r_space}" | 1828 runtime_arg="-R${dash_r_space}" |
1881 | 1829 |
1882 case "${canonical}" in | 1830 case "${canonical}" in |
1883 *-sun-solaris* | *-sun-sunos5* ) | 1831 *-sun-solaris* | *-sun-sunos5* ) |
1884 add_runtime_flag=yes ;; | 1832 add_runtime_flag=yes ;; |
2076 # The value of CPP is a quoted variable reference, so we need to do this | 2024 # The value of CPP is a quoted variable reference, so we need to do this |
2077 # to get its actual value... | 2025 # to get its actual value... |
2078 CPP=`eval "echo $CPP"` | 2026 CPP=`eval "echo $CPP"` |
2079 eval `${CPP} -Isrc ${tempcname} \ | 2027 eval `${CPP} -Isrc ${tempcname} \ |
2080 | grep 'configure___' \ | 2028 | grep 'configure___' \ |
2081 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | 2029 | sed -n -e 's/^configure___ \([[^=]]*=\)\(.*\)$/\1"\2"/p'` |
2082 if test "x$SPECIFIED_CFLAGS" = x ; then | 2030 if test "x$SPECIFIED_CFLAGS" = x ; then |
2083 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | 2031 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ |
2084 | grep 'configure___' \ | 2032 | grep 'configure___' \ |
2085 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | 2033 | sed -n -e 's/^configure___ \([[^=]]*=\)\(.*\)$/\1"\2"/p'` |
2086 else | 2034 else |
2087 REAL_CFLAGS="$CFLAGS" | 2035 REAL_CFLAGS="$CFLAGS" |
2088 fi | 2036 fi |
2089 rm ${tempcname} | 2037 rm ${tempcname} |
2090 | 2038 |
2112 LISP_FLOAT_TYPE=yes | 2060 LISP_FLOAT_TYPE=yes |
2113 | 2061 |
2114 | 2062 |
2115 #### Add the libraries to LIBS and check for some functions. | 2063 #### Add the libraries to LIBS and check for some functions. |
2116 | 2064 |
2117 ] | |
2118 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS" | 2065 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS" |
2119 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS" | 2066 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS" |
2120 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS" | 2067 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS" |
2121 | 2068 |
2122 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks, | 2069 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks, |
2128 dnl FSF 19.29 also checks for function gethostbyname. | 2075 dnl FSF 19.29 also checks for function gethostbyname. |
2129 dnl AC_HAVE_LIBRARY(-lresolv) | 2076 dnl AC_HAVE_LIBRARY(-lresolv) |
2130 | 2077 |
2131 dnl Alternative to getloadavg() that doesn't require root priveleges | 2078 dnl Alternative to getloadavg() that doesn't require root priveleges |
2132 AC_HAVE_LIBRARY(-lkstat) | 2079 AC_HAVE_LIBRARY(-lkstat) |
2080 | |
2081 dnl Use -lintl if Mule available. | |
2082 AC_HAVE_LIBRARY(-lintl, AC_DEFINE(HAVE_LIBINTL)) | |
2133 | 2083 |
2134 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd") | 2084 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd") |
2135 | 2085 |
2136 dnl FSF 19.29 also checks for function cma_open. | 2086 dnl FSF 19.29 also checks for function cma_open. |
2137 AC_HAVE_LIBRARY(-lpthreads, HAVE_PTHREADS=yes) | 2087 AC_HAVE_LIBRARY(-lpthreads, HAVE_PTHREADS=yes) |
3177 IF_YES_AC_DEFINE(need_xildoff, NEED_XILDOFF) | 3127 IF_YES_AC_DEFINE(need_xildoff, NEED_XILDOFF) |
3178 IF_YES_AC_DEFINE(with_gcc, USE_GCC) | 3128 IF_YES_AC_DEFINE(with_gcc, USE_GCC) |
3179 IF_YES_AC_DEFINE(with_lcc, USE_LCC) | 3129 IF_YES_AC_DEFINE(with_lcc, USE_LCC) |
3180 IF_YES_AC_DEFINE(with_socks, HAVE_SOCKS) | 3130 IF_YES_AC_DEFINE(with_socks, HAVE_SOCKS) |
3181 IF_YES_AC_DEFINE(with_term, HAVE_TERM) | 3131 IF_YES_AC_DEFINE(with_term, HAVE_TERM) |
3182 IF_YES_AC_DEFINE(with_epoch, EPOCH) | |
3183 IF_YES_AC_DEFINE(external_widget,EXTERNAL_WIDGET) | 3132 IF_YES_AC_DEFINE(external_widget,EXTERNAL_WIDGET) |
3184 IF_YES_AC_DEFINE(with_gnu_make, USE_GNU_MAKE) | 3133 IF_YES_AC_DEFINE(with_gnu_make, USE_GNU_MAKE) |
3185 IF_YES_AC_DEFINE(no_doc_file, NO_DOC_FILE) | 3134 IF_YES_AC_DEFINE(no_doc_file, NO_DOC_FILE) |
3186 IF_YES_AC_DEFINE(const_is_losing,CONST_IS_LOSING) | 3135 IF_YES_AC_DEFINE(const_is_losing,CONST_IS_LOSING) |
3187 IF_YES_AC_DEFINE(use_assertions, USE_ASSERTIONS) | 3136 IF_YES_AC_DEFINE(use_assertions, USE_ASSERTIONS) |
3215 dnl ############################################################################ | 3164 dnl ############################################################################ |
3216 | 3165 |
3217 ( | 3166 ( |
3218 echo "uname -a: `uname -a`" | 3167 echo "uname -a: `uname -a`" |
3219 echo "" | 3168 echo "" |
3220 echo "$0 $configure_args" | 3169 echo "$0 $quoted_arguments" |
3221 ) >> Installation | 3170 ) >> Installation |
3222 # Start stdout redirection to '| tee -a Installation' | 3171 # Start stdout redirection to '| tee -a Installation' |
3223 ( | 3172 ( |
3224 echo " | 3173 echo " |
3225 | 3174 |
3245 elif test -n "$site_libraries"; then | 3194 elif test -n "$site_libraries"; then |
3246 echo " Additional libraries: ${site_libraries}" | 3195 echo " Additional libraries: ${site_libraries}" |
3247 elif test -n "$site_runtime_libraries"; then | 3196 elif test -n "$site_runtime_libraries"; then |
3248 echo " Additional libraries: ${site_runtime_libraries}" | 3197 echo " Additional libraries: ${site_runtime_libraries}" |
3249 fi | 3198 fi |
3250 if test "$with_wnn" = yes ; then | |
3251 echo " Finding WNN includes with: ${wnn_includes}" | |
3252 echo " Loading WNN libs with: ${wnn_libraries}" | |
3253 fi | |
3254 test "$with_socks" = yes && echo " Compiling in support for SOCKS." | 3199 test "$with_socks" = yes && echo " Compiling in support for SOCKS." |
3255 test "$with_term" = yes && echo " Compiling in support for TERM." | 3200 test "$with_term" = yes && echo " Compiling in support for TERM." |
3256 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." | 3201 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." |
3257 test "$with_xpm" = yes && echo " Compiling in support for XPM." | 3202 test "$with_xpm" = yes && echo " Compiling in support for XPM." |
3258 if test "$with_xmu" != yes -a "$window_system" != none; then | 3203 if test "$with_xmu" != yes -a "$window_system" != none; then |
3266 fi | 3211 fi |
3267 if test "$with_png" = gnuz; then | 3212 if test "$with_png" = gnuz; then |
3268 echo " (Using -lgz instead of -lz.)" | 3213 echo " (Using -lgz instead of -lz.)" |
3269 fi | 3214 fi |
3270 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." | 3215 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." |
3271 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility." | |
3272 | 3216 |
3273 test "$with_sound" = nas && echo " Compiling in network sound support." | 3217 test "$with_sound" = nas && echo " Compiling in network sound support." |
3274 test "$with_sound" = native && echo " Compiling in native sound support." | 3218 test "$with_sound" = native && echo " Compiling in native sound support." |
3275 test "$with_sound" = both && echo " Compiling in both network and native sound support." | 3219 test "$with_sound" = both && echo " Compiling in both network and native sound support." |
3276 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously" | 3220 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously" |
3285 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." | 3229 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." |
3286 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." | 3230 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." |
3287 test "$with_xim" = motif && echo " Using Motif to provide XIM support." | 3231 test "$with_xim" = motif && echo " Using Motif to provide XIM support." |
3288 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." | 3232 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." |
3289 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." | 3233 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." |
3290 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule." | 3234 if test "$with_wnn" = yes; then |
3291 test "$with_wnn6" = yes && echo " WNN support for version 6." | 3235 echo " Compiling in support for the WNN input method on Mule." |
3236 test "$with_wnn6" = yes && echo " WNN support for version 6." | |
3237 echo " Finding WNN includes with: ${wnn_includes}" | |
3238 echo " Finding WNN libs with: ${wnn_libraries}" | |
3239 fi | |
3292 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." | 3240 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." |
3293 | 3241 |
3294 test "$with_cde" = yes && echo " Compiling in support for CDE." | 3242 test "$with_cde" = yes && echo " Compiling in support for CDE." |
3295 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | 3243 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." |
3296 test "$with_offix" = yes && echo " Compiling in support for OffiX." | 3244 test "$with_offix" = yes && echo " Compiling in support for OffiX." |
3309 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar." | 3257 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar." |
3310 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar." | 3258 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar." |
3311 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes." | 3259 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes." |
3312 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes." | 3260 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes." |
3313 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes." | 3261 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes." |
3314 test "$with_pop" = yes && "Using POP for mail access" | 3262 test "$with_pop" = yes && " Using POP for mail access" |
3315 test "$with_kerberos" = yes && "Using Kerberos for POP authentication" | 3263 test "$with_kerberos" = yes && " Using Kerberos for POP authentication" |
3316 test "$with_hesiod" = yes && "Using Hesiod to get POP server host" | 3264 test "$with_hesiod" = yes && " Using Hesiod to get POP server host" |
3317 | 3265 |
3318 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects." | 3266 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects." |
3319 test "${debug}" = yes && echo " Compiling in extra code for debugging." | 3267 test "${debug}" = yes && echo " Compiling in extra code for debugging." |
3320 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage." | 3268 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage." |
3321 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." | 3269 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." |
3327 dnl ############################################################################ | 3275 dnl ############################################################################ |
3328 dnl # Now generate! # | 3276 dnl # Now generate! # |
3329 dnl ############################################################################ | 3277 dnl ############################################################################ |
3330 | 3278 |
3331 dnl This has to be called in order for this variable to get into config.status | 3279 dnl This has to be called in order for this variable to get into config.status |
3332 AC_SUBST(internal_makefile_list) [ | 3280 AC_SUBST(internal_makefile_list) |
3333 # Remove any trailing slashes in these variables. | 3281 # Remove any trailing slashes in these variables. |
3334 test -n "${prefix}" && | 3282 test -n "${prefix}" && |
3335 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | 3283 prefix=`echo "${prefix}" | sed 's,\([[^/]]\)/*$,\1,'` |
3336 test -n "${exec_prefix}" && | 3284 test -n "${exec_prefix}" && |
3337 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | 3285 exec_prefix=`echo "${exec_prefix}" | sed 's,\([[^/]]\)/*$,\1,'` |
3338 ] | 3286 |
3339 AC_OUTPUT($internal_makefile_list) [ | 3287 AC_OUTPUT($internal_makefile_list) |
3340 # Build: | 3288 # Build: |
3341 # src/Makefile from ${srcdir}/src/Makefile.in | 3289 # src/Makefile from ${srcdir}/src/Makefile.in |
3342 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in | 3290 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in |
3343 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in | 3291 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in |
3344 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in | 3292 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in |
3362 rm -f junk.c; | 3310 rm -f junk.c; |
3363 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; | 3311 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; |
3364 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; | 3312 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; |
3365 < junk.cpp '\ | 3313 < junk.cpp '\ |
3366 ' sed -e '\''s/^#.*//'\'' '\ | 3314 ' sed -e '\''s/^#.*//'\'' '\ |
3367 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ | 3315 ' -e '\''s/^[[ \f\t]][[ \f\t]]*$//'\'' '\ |
3368 ' -e '\''s/^ / /'\'' '\ | 3316 ' -e '\''s/^ / /'\'' '\ |
3369 ' | sed -n -e '\''/^..*$/p'\'' '\ | 3317 ' | sed -n -e '\''/^..*$/p'\'' '\ |
3370 ' > Makefile.new; | 3318 ' > Makefile.new; |
3371 chmod 444 Makefile.new; | 3319 chmod 444 Makefile.new; |
3372 mv -f Makefile.new Makefile; | 3320 mv -f Makefile.new Makefile; |
3379 rm -f junk.c; | 3327 rm -f junk.c; |
3380 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; | 3328 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; |
3381 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; | 3329 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; |
3382 < junk.cpp '\ | 3330 < junk.cpp '\ |
3383 ' sed -e '\''s/^#.*//'\'' '\ | 3331 ' sed -e '\''s/^#.*//'\'' '\ |
3384 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ | 3332 ' -e '\''s/^[[ \f\t]][[ \f\t]]*$//'\'' '\ |
3385 ' -e '\''s/^ / /'\'' '\ | 3333 ' -e '\''s/^ / /'\'' '\ |
3386 ' | sed -n -e '\''/^..*$/p'\'' '\ | 3334 ' | sed -n -e '\''/^..*$/p'\'' '\ |
3387 ' > Makefile.new; | 3335 ' > Makefile.new; |
3388 chmod 444 Makefile.new; | 3336 chmod 444 Makefile.new; |
3389 mv -f Makefile.new Makefile; | 3337 mv -f Makefile.new Makefile; |
3396 rm -f junk.c; | 3344 rm -f junk.c; |
3397 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; | 3345 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; |
3398 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; | 3346 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; |
3399 < junk.cpp '\ | 3347 < junk.cpp '\ |
3400 ' sed -e '\''s/^#.*//'\'' '\ | 3348 ' sed -e '\''s/^#.*//'\'' '\ |
3401 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ | 3349 ' -e '\''s/^[[ \f\t]][[ \f\t]]*$//'\'' '\ |
3402 ' -e '\''s/^ / /'\'' '\ | 3350 ' -e '\''s/^ / /'\'' '\ |
3403 ' | sed -n -e '\''/^..*$/p'\'' '\ | 3351 ' | sed -n -e '\''/^..*$/p'\'' '\ |
3404 ' > Makefile.new; | 3352 ' > Makefile.new; |
3405 chmod 444 Makefile.new; | 3353 chmod 444 Makefile.new; |
3406 mv -f Makefile.new Makefile; | 3354 mv -f Makefile.new Makefile; |
3416 rm -f junk.c; | 3364 rm -f junk.c; |
3417 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; | 3365 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; |
3418 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; | 3366 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; |
3419 < junk.cpp '\ | 3367 < junk.cpp '\ |
3420 ' sed -e '\''s/^#.*//'\'' '\ | 3368 ' sed -e '\''s/^#.*//'\'' '\ |
3421 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ | 3369 ' -e '\''s/^[[ \f\t]][[ \f\t]]*$//'\'' '\ |
3422 ' -e '\''s/^ / /'\'' '\ | 3370 ' -e '\''s/^ / /'\'' '\ |
3423 ' | sed -n -e '\''/^..*$/p'\'' '\ | 3371 ' | sed -n -e '\''/^..*$/p'\'' '\ |
3424 ' > Makefile.new; | 3372 ' > Makefile.new; |
3425 chmod 444 Makefile.new; | 3373 chmod 444 Makefile.new; |
3426 mv -f Makefile.new Makefile; | 3374 mv -f Makefile.new Makefile; |
3435 rm -f junk.c; | 3383 rm -f junk.c; |
3436 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; | 3384 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; |
3437 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; | 3385 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; |
3438 < junk.cpp '\ | 3386 < junk.cpp '\ |
3439 ' sed -e '\''s/^#.*//'\'' '\ | 3387 ' sed -e '\''s/^#.*//'\'' '\ |
3440 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ | 3388 ' -e '\''s/^[[ \f\t]][[ \f\t]]*$//'\'' '\ |
3441 ' -e '\''s/^ / /'\'' '\ | 3389 ' -e '\''s/^ / /'\'' '\ |
3442 ' | sed -n -e '\''/^..*$/p'\'' '\ | 3390 ' | sed -n -e '\''/^..*$/p'\'' '\ |
3443 ' > Makefile.new; | 3391 ' > Makefile.new; |
3444 chmod 444 Makefile.new; | 3392 chmod 444 Makefile.new; |
3445 mv -f Makefile.new Makefile; | 3393 mv -f Makefile.new Makefile; |
3453 rm -f junk.c; | 3401 rm -f junk.c; |
3454 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; | 3402 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c; |
3455 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; | 3403 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`; |
3456 < junk.cpp '\ | 3404 < junk.cpp '\ |
3457 ' sed -e '\''s/^#.*//'\'' '\ | 3405 ' sed -e '\''s/^#.*//'\'' '\ |
3458 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\ | 3406 ' -e '\''s/^[[ \f\t]][[ \f\t]]*$//'\'' '\ |
3459 ' -e '\''s/^ / /'\'' '\ | 3407 ' -e '\''s/^ / /'\'' '\ |
3460 ' | sed -n -e '\''/^..*$/p'\'' '\ | 3408 ' | sed -n -e '\''/^..*$/p'\'' '\ |
3461 ' > Makefile.new; | 3409 ' > Makefile.new; |
3462 chmod 444 Makefile.new; | 3410 chmod 444 Makefile.new; |
3463 mv -f Makefile.new Makefile; | 3411 mv -f Makefile.new Makefile; |
3500 echo creating src/gdbinit | 3448 echo creating src/gdbinit |
3501 echo source $topsrcdir/src/gdbinit > src/gdbinit | 3449 echo source $topsrcdir/src/gdbinit > src/gdbinit |
3502 fi | 3450 fi |
3503 | 3451 |
3504 exit 0 | 3452 exit 0 |
3505 ] | 3453 |
3454 | |
3455 # Local Variables: | |
3456 # eval: (modify-syntax-entry ?\" "\"") | |
3457 # End: |