diff options
| author | Richard M. Stallman | 1992-09-14 22:08:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-09-14 22:08:02 +0000 |
| commit | 2c44309ae20a22e3e7eb5790ba851482a0e356e8 (patch) | |
| tree | d2958a7256c1ff26a0c93c1a8a31a9f5a9ba919d | |
| parent | 9806213d68c793d29f07203003384a23ec2dd184 (diff) | |
| download | emacs-2c44309ae20a22e3e7eb5790ba851482a0e356e8.tar.gz emacs-2c44309ae20a22e3e7eb5790ba851482a0e356e8.zip | |
entered into RCS
| -rwxr-xr-x | configure1.in | 89 | ||||
| -rw-r--r-- | src/config.in | 7 |
2 files changed, 47 insertions, 49 deletions
diff --git a/configure1.in b/configure1.in index f44611c2272..d38400321fa 100755 --- a/configure1.in +++ b/configure1.in | |||
| @@ -50,24 +50,25 @@ This message needs to be updated. | |||
| 50 | Set compilation and installation parameters for GNU Emacs, and report. | 50 | Set compilation and installation parameters for GNU Emacs, and report. |
| 51 | MACHINENAME is the machine to build for. See \`etc/MACHINES'. | 51 | MACHINENAME is the machine to build for. See \`etc/MACHINES'. |
| 52 | Options are: | 52 | Options are: |
| 53 | -opsystem=SYSTEM - operating system to build for; see \`etc/MACHINES'. | 53 | --opsystem=SYSTEM - operating system to build for; see \`etc/MACHINES'. |
| 54 | -prefix=DIR - where to install Emacs's library files | 54 | --prefix=DIR - where to install Emacs's library files |
| 55 | These options have reasonable defaults (in []s), and may not be needed: | 55 | These options have reasonable defaults (in []s), and may not be needed: |
| 56 | -g, -O - Passed to the compiler. If omitted, use -O only. | 56 | -g, -O - Passed to the compiler. Default is -g, plus -O if using gcc. |
| 57 | -cc=COMPILER - Which compiler to use. Defaults to gcc if available. | 57 | --cc=COMPILER - Which compiler to use. Defaults to gcc if available. |
| 58 | -libdir=DIR - where to look for arch-dependent library files | 58 | --libdir=DIR - where to look for arch-dependent library files |
| 59 | -datadir=DIR - where to look for architecture-independent library files | 59 | --datadir=DIR - where to look for architecture-independent library files |
| 60 | -bindir=DIR - where to install the Emacs executable, and some friends | 60 | --bindir=DIR - where to install the Emacs executable, and some friends |
| 61 | -lisppath=PATH - colon-separated list of Elisp directories | 61 | --lisppath=PATH - colon-separated list of Emacs Lisp directories |
| 62 | -lockdir=DIR - where Emacs should do its file-locking stuff | 62 | --lockdir=DIR - where Emacs should do its file-locking stuff |
| 63 | -window_system=none or [x11, if it is installed] - what window system to use | 63 | --with-x or --with-x10 - what window system to use; |
| 64 | -have_x_menu=yes or [no] - include menu support under X11 | 64 | default is to use X11 if present |
| 65 | -gnu_malloc=[yes] or no - use the GNU memory allocator | ||
| 66 | -rel_alloc=[yes] or no - use compacting allocator for buffers | ||
| 67 | -highpri=N - run at N points higher-than-normal priority | ||
| 68 | -lisp_float_type=[yes] or no - Support native floating point in Elisp | ||
| 69 | If successful, ${progname} leaves its status in config.status. If | 65 | If successful, ${progname} leaves its status in config.status. If |
| 70 | unsuccessful after disturbing the status quo, config.status is removed." | 66 | unsuccessful after disturbing the status quo, config.status is removed." |
| 67 | # These are omitted since users should not mess with them. | ||
| 68 | # --gnu-malloc=[yes] or no - use the GNU memory allocator | ||
| 69 | # --rel-alloc=[yes] or no - use compacting allocator for buffers | ||
| 70 | # --lisp-float-type=[yes] or no - Support floating point in Emacs Lisp. | ||
| 71 | # --window-system is omitted because --with... follow the conventions. | ||
| 71 | 72 | ||
| 72 | if [ ! -r ./src/lisp.h ]; then | 73 | if [ ! -r ./src/lisp.h ]; then |
| 73 | echo "${progname}: Can't find Emacs sources in \`./src'. | 74 | echo "${progname}: Can't find Emacs sources in \`./src'. |
| @@ -75,24 +76,26 @@ Run this config script in the top directory of the Emacs source tree." >&2 | |||
| 75 | exit 1 | 76 | exit 1 |
| 76 | fi | 77 | fi |
| 77 | 78 | ||
| 79 | # The option names defined here are actually the shell variable names. | ||
| 80 | # They should have `_' in place of `-'. | ||
| 78 | options=":\ | 81 | options=":\ |
| 79 | usage:help:\ | 82 | usage:help:\ |
| 80 | machine:opsystem:\ | 83 | machine:opsystem:\ |
| 81 | g:O:cc:\ | 84 | g:O:cc:\ |
| 82 | prefix:bindir:emacsdir:datadir:lispdir:locallisppath:\ | 85 | prefix:bindir:emacsdir:datadir:lispdir:locallisppath:\ |
| 83 | lisppath:buildlisppath:statedir:lockdir:libdir:mandir:infodir:\ | 86 | lisppath:buildlisppath:statedir:lockdir:libdir:mandir:infodir:\ |
| 84 | gnu_malloc:rel_alloc:highpri:lisp_float_type:\ | 87 | gnu_malloc:rel_alloc:lisp_float_type:\ |
| 85 | window_system:have_x_menu:\ | 88 | window_system:\ |
| 86 | " | 89 | " |
| 87 | 90 | ||
| 88 | boolean_opts=":\ | 91 | boolean_opts=":\ |
| 89 | g:O:\ | 92 | g:O:\ |
| 90 | gnu_malloc:rel_alloc:lisp_float_type:have_x_menu:\ | 93 | gnu_malloc:rel_alloc:lisp_float_type:have_x_menu:with_x:with_x11:with_x10:\ |
| 91 | " | 94 | " |
| 92 | 95 | ||
| 93 | config_h_opts=":\ | 96 | config_h_opts=":\ |
| 94 | highpri:gnu_malloc:rel_alloc:lisp_float_type:\ | 97 | gnu_malloc:rel_alloc:lisp_float_type:\ |
| 95 | have_x_windows:have_x11:have_x_menu:\ | 98 | have_x_windows:have_x11:\ |
| 96 | c_switch_site:sigtype:\ | 99 | c_switch_site:sigtype:\ |
| 97 | " | 100 | " |
| 98 | 101 | ||
| @@ -108,7 +111,6 @@ datadir="" | |||
| 108 | libdir="" | 111 | libdir="" |
| 109 | lockdir="" | 112 | lockdir="" |
| 110 | window_system="" | 113 | window_system="" |
| 111 | have_x_menu="" | ||
| 112 | 114 | ||
| 113 | # Record all the arguments, so we can save them in config.status. | 115 | # Record all the arguments, so we can save them in config.status. |
| 114 | arguments="$*" | 116 | arguments="$*" |
| @@ -119,17 +121,18 @@ while [ $# != 0 ]; do | |||
| 119 | case "${arg}" in | 121 | case "${arg}" in |
| 120 | -*) | 122 | -*) |
| 121 | # Separate the switch name from the value it's being given. | 123 | # Separate the switch name from the value it's being given. |
| 124 | # Also change `-' in the option name to `_'. | ||
| 122 | case "${arg}" in | 125 | case "${arg}" in |
| 123 | -*=* ) | 126 | -*=*) |
| 124 | opt=`echo ${arg} | sed 's:^-\([^=]*\)=.*$:\1:'` | 127 | opt=`echo ${arg} | sed 's:^-*\([^=]*\)=.*$:\1:' | tr - _` |
| 125 | val=`echo ${arg} | sed 's:^-[^=]*=\(.*\)$:\1:'` | 128 | val=`echo ${arg} | sed 's:^-*[^=]*=\(.*\)$:\1:'` |
| 126 | valomitted=no | 129 | valomitted=no |
| 127 | ;; | 130 | ;; |
| 128 | -* ) | 131 | -*) |
| 129 | # If FOO is a boolean argument, -FOO is equivalent to | 132 | # If FOO is a boolean argument, -FOO is equivalent to |
| 130 | # -FOO=yes. Otherwise, the value comes from the next | 133 | # -FOO=yes. Otherwise, the value comes from the next |
| 131 | # argument - see below. | 134 | # argument - see below. |
| 132 | opt=`echo ${arg} | sed 's:^-\(.*\)$:\1:'` | 135 | opt=`echo ${arg} | sed 's:^-*\(.*\)$:\1:' | tr - _` |
| 133 | val="yes" | 136 | val="yes" |
| 134 | valomitted=yes | 137 | valomitted=yes |
| 135 | ;; | 138 | ;; |
| @@ -319,6 +322,22 @@ if [ ! "${infodir}" ]; then | |||
| 319 | fi | 322 | fi |
| 320 | 323 | ||
| 321 | echo "Checking window system." | 324 | echo "Checking window system." |
| 325 | case "${with_x11}" in | ||
| 326 | yes ) | ||
| 327 | window_system=${window_system}x11 | ||
| 328 | ;; | ||
| 329 | esac | ||
| 330 | case "${with_x}" in | ||
| 331 | yes ) | ||
| 332 | window_system=${window_system}x11 | ||
| 333 | ;; | ||
| 334 | esac | ||
| 335 | case "${with_x10}" in | ||
| 336 | yes ) | ||
| 337 | window_system=${window_system}x10 | ||
| 338 | ;; | ||
| 339 | esac | ||
| 340 | |||
| 322 | # Note that SYSV `tr' doesn't handle character ranges. | 341 | # Note that SYSV `tr' doesn't handle character ranges. |
| 323 | window_system="`echo ${window_system} \ | 342 | window_system="`echo ${window_system} \ |
| 324 | | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" | 343 | | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" |
| @@ -333,7 +352,7 @@ case "${window_system}" in | |||
| 333 | fi | 352 | fi |
| 334 | ;; | 353 | ;; |
| 335 | * ) | 354 | * ) |
| 336 | echo "The \`-window_system' option must be set to \`none' or \`X11'." >&2 | 355 | echo "Don\'t specify the window system more than once." >&2 |
| 337 | exit 1 | 356 | exit 1 |
| 338 | ;; | 357 | ;; |
| 339 | esac | 358 | esac |
| @@ -353,10 +372,6 @@ case "${window_system}" in | |||
| 353 | ;; | 372 | ;; |
| 354 | esac | 373 | esac |
| 355 | 374 | ||
| 356 | if [ "${have_x_menu}" = "" ]; then | ||
| 357 | have_x_menu=no | ||
| 358 | fi | ||
| 359 | |||
| 360 | echo "Checking for GCC." | 375 | echo "Checking for GCC." |
| 361 | case "${cc}" in | 376 | case "${cc}" in |
| 362 | "" ) | 377 | "" ) |
| @@ -460,9 +475,6 @@ set -e | |||
| 460 | 475 | ||
| 461 | # Make the proper settings in the config file. | 476 | # Make the proper settings in the config file. |
| 462 | echo "Making src/config.h from src/config.h.in" | 477 | echo "Making src/config.h from src/config.h.in" |
| 463 | if [ "${highpri}" != "" ]; then | ||
| 464 | highpri="(-${highpri})" | ||
| 465 | fi | ||
| 466 | case "${g}" in | 478 | case "${g}" in |
| 467 | "yes" ) c_switch_site="${c_switch_site} -g" ;; | 479 | "yes" ) c_switch_site="${c_switch_site} -g" ;; |
| 468 | esac | 480 | esac |
| @@ -569,11 +581,6 @@ chmod -w lib-src/Makefile | |||
| 569 | 581 | ||
| 570 | 582 | ||
| 571 | # Create a verbal description of what we have done. | 583 | # Create a verbal description of what we have done. |
| 572 | if [ "${highpri}" ]; then | ||
| 573 | desc_highpri="${highpri}" | ||
| 574 | else | ||
| 575 | desc_highpri="none" | ||
| 576 | fi | ||
| 577 | message="Configured for machine \`${machine}' running \`${opsystem}'. | 584 | message="Configured for machine \`${machine}' running \`${opsystem}'. |
| 578 | The following values have been set in ./Makefile and ./build-install: | 585 | The following values have been set in ./Makefile and ./build-install: |
| 579 | \`make install' or \`build-install' will placed executables in | 586 | \`make install' or \`build-install' will placed executables in |
| @@ -588,12 +595,10 @@ The following values have been set in ./Makefile and ./build-install: | |||
| 588 | Emacs will keep track of file-locking in | 595 | Emacs will keep track of file-locking in |
| 589 | ${lockdir}. | 596 | ${lockdir}. |
| 590 | The following values have been set in src/config.h: | 597 | The following values have been set in src/config.h: |
| 591 | At how much higher than normal priority should Emacs run? ${desc_highpri} | ||
| 592 | Should Emacs use the GNU version of malloc? ${gnu_malloc}${gnu_malloc_reason} | 598 | Should Emacs use the GNU version of malloc? ${gnu_malloc}${gnu_malloc_reason} |
| 593 | Should Emacs use the relocating allocator for buffers? ${rel_alloc} | 599 | Should Emacs use the relocating allocator for buffers? ${rel_alloc} |
| 594 | Should Emacs support a floating point Elisp type? ${lisp_float_type} | 600 | Should Emacs support a floating point data type? ${lisp_float_type} |
| 595 | What window system should Emacs use? ${window_system} | 601 | What window system should Emacs use? ${window_system} |
| 596 | Should Emacs support mouse menus, which require X11? ${have_x_menu} | ||
| 597 | What compiler should emacs be built with? ${cc} | 602 | What compiler should emacs be built with? ${cc} |
| 598 | Should the compilation use \`-g' and/or \`-O'? ${c_switch_site- neither}" | 603 | Should the compilation use \`-g' and/or \`-O'? ${c_switch_site- neither}" |
| 599 | 604 | ||
diff --git a/src/config.in b/src/config.in index 1a0a063bafa..efc6fb71834 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -54,13 +54,6 @@ and this notice must be preserved on all copies. */ | |||
| 54 | 54 | ||
| 55 | /* #define AMPERSAND_FULL_NAME */ | 55 | /* #define AMPERSAND_FULL_NAME */ |
| 56 | 56 | ||
| 57 | /* Define HIGHPRI as a negative number | ||
| 58 | if you want Emacs to run at a higher than normal priority. | ||
| 59 | For this to take effect, you must install Emacs with setuid root. | ||
| 60 | Emacs will change back to the users's own uid after setting | ||
| 61 | its priority. */ | ||
| 62 | /* #define HIGHPRI */ | ||
| 63 | |||
| 64 | /* Define LISP_FLOAT_TYPE if you want emacs to support floating-point | 57 | /* Define LISP_FLOAT_TYPE if you want emacs to support floating-point |
| 65 | numbers. */ | 58 | numbers. */ |
| 66 | /* #define LISP_FLOAT_TYPE */ | 59 | /* #define LISP_FLOAT_TYPE */ |