diff options
| author | Jim Blandy | 1993-05-23 04:42:38 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-23 04:42:38 +0000 |
| commit | ae6756a26ece01e999356d97da65b83cb5ffb9a1 (patch) | |
| tree | 30692ca1e751e859074bbf7edf06af7bd5ded9b7 | |
| parent | 8d467c70c0184c34868cf95ab260f5a5b524ecfa (diff) | |
| download | emacs-ae6756a26ece01e999356d97da65b83cb5ffb9a1.tar.gz emacs-ae6756a26ece01e999356d97da65b83cb5ffb9a1.zip | |
* configure.in (long_usage): Removed; made short_usage describe
the options.
* configure.in: Implement the --prefix option.
* Makefile.in (prefix): Add support for it here.
| -rwxr-xr-x | configure1.in | 74 |
1 files changed, 32 insertions, 42 deletions
diff --git a/configure1.in b/configure1.in index 7a721bf6d03..c307f45bd0d 100755 --- a/configure1.in +++ b/configure1.in | |||
| @@ -59,50 +59,20 @@ progname="`echo $0 | sed 's:^\./\./:\./:'`" | |||
| 59 | 59 | ||
| 60 | #### Usage messages. | 60 | #### Usage messages. |
| 61 | 61 | ||
| 62 | short_usage="Type \`${progname} --usage' for more information about options." | 62 | short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...] |
| 63 | |||
| 64 | long_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...] | ||
| 65 | 63 | ||
| 66 | Set compilation and installation parameters for GNU Emacs, and report. | 64 | Set compilation and installation parameters for GNU Emacs, and report. |
| 67 | CONFIGURATION specifies the machine and operating system to build for. | 65 | CONFIGURATION specifies the machine and operating system to build for. |
| 68 | For example: | 66 | --with-x Support the X Window System. |
| 69 | ${progname} sparc-sun-sunos4.1 | 67 | --with-x=no Don't support the X Window System. |
| 70 | configures Emacs to build on a Sun Sparc machine running SunOS 4.1, and | 68 | --x-includes=DIR Search for X Window System header files in DIR. |
| 71 | ${progname} decstation | 69 | --x-libraries=DIR Search for X Window System libraries in DIR. |
| 72 | configures Emacs to run on a DECstation running Ultrix. See \`etc/MACHINES'. | 70 | --with-gcc Use GCC to compile Emacs. |
| 73 | 71 | --with-gcc=no Don't use GCC to compile Emacs. | |
| 74 | The --with-x, --with-x11 and --with-x10 options specify what window | 72 | --run-in-place Use libraries and data files directly out of the |
| 75 | system to use; if all are omitted, use X11 if present. If you | 73 | source tree. |
| 76 | don't want X, specify \`--with-x=no'. | 74 | --srcdir=DIR Look for source in DIR. |
| 77 | 75 | --prefix=DIR Install files below dir. | |
| 78 | The --x-includes=DIR option tells the build process where to search | ||
| 79 | for the X Windows header files. DIR should have a | ||
| 80 | subdirectory called \`X11' which contains \`X.h', \`Xlib.h', and | ||
| 81 | the rest of the header files; DIR should not contain \`X11' | ||
| 82 | itself. If this option is omitted, the build process assumes | ||
| 83 | they exist in a directory the compiler checks by default. | ||
| 84 | |||
| 85 | The --x-libraries=DIR option tells the build process where to look for | ||
| 86 | the X windows libraries. If this option is omitted, the build | ||
| 87 | process assumes they are in a directory the compiler checks by | ||
| 88 | default. | ||
| 89 | |||
| 90 | The --with-gcc option says that the build process should use GCC to | ||
| 91 | compile Emacs. If you have GCC but don't want to use it, | ||
| 92 | specify \`--with-gcc=no'. \`configure' tries to guess whether | ||
| 93 | or not you have GCC by searching your executable path, but if | ||
| 94 | it guesses incorrectly, you may need to use this. | ||
| 95 | |||
| 96 | The --run-in-place option sets up default values for the path | ||
| 97 | variables in \`./Makefile' so that Emacs will expect to find | ||
| 98 | its data files (lisp libraries, runnable programs, and the | ||
| 99 | like) in the same locations they occupy while Emacs builds. | ||
| 100 | This means that you don't have to install Emacs in order to | ||
| 101 | run it; it uses its data files as they were unpacked. | ||
| 102 | |||
| 103 | The --srcdir=DIR option specifies that the configuration and build | ||
| 104 | processes should look for the Emacs source code in DIR, when | ||
| 105 | DIR is not the current directory. | ||
| 106 | 76 | ||
| 107 | If successful, ${progname} leaves its status in config.status. If | 77 | If successful, ${progname} leaves its status in config.status. If |
| 108 | unsuccessful after disturbing the status quo, it removes config.status." | 78 | unsuccessful after disturbing the status quo, it removes config.status." |
| @@ -119,6 +89,9 @@ arguments="$@" | |||
| 119 | rip_paths='#disabled# ' | 89 | rip_paths='#disabled# ' |
| 120 | inst_paths='' | 90 | inst_paths='' |
| 121 | 91 | ||
| 92 | ### Establish some default values. | ||
| 93 | prefix='/usr/local' | ||
| 94 | |||
| 122 | while [ $# != 0 ]; do | 95 | while [ $# != 0 ]; do |
| 123 | arg="$1" | 96 | arg="$1" |
| 124 | case "${arg}" in | 97 | case "${arg}" in |
| @@ -239,9 +212,25 @@ Set it to either \`yes' or \`no'." | |||
| 239 | inst_paths='#disabled# ' | 212 | inst_paths='#disabled# ' |
| 240 | ;; | 213 | ;; |
| 241 | 214 | ||
| 215 | ## Has the user specifiec an installation prefix? | ||
| 216 | "prefix" ) | ||
| 217 | ## If the value was omitted, get it from the next argument. | ||
| 218 | if [ "${valomitted}" = "yes" ]; then | ||
| 219 | ## Get the next argument from the argument list, if there is one. | ||
| 220 | if [ $# = 1 ]; then | ||
| 221 | (echo "${progname}: You must give a value for the \`--${optname}' option, as in | ||
| 222 | \`--${optname}=FOO'." | ||
| 223 | echo "${short_usage}") >&2 | ||
| 224 | exit 1 | ||
| 225 | fi | ||
| 226 | shift; val="$1" | ||
| 227 | fi | ||
| 228 | prefix="${val}" | ||
| 229 | ;; | ||
| 230 | |||
| 242 | ## Has the user asked for some help? | 231 | ## Has the user asked for some help? |
| 243 | "usage" | "help" ) | 232 | "usage" | "help" ) |
| 244 | echo "${long_usage}" | more | 233 | echo "${short_usage}" | more |
| 245 | exit | 234 | exit |
| 246 | ;; | 235 | ;; |
| 247 | 236 | ||
| @@ -1016,6 +1005,7 @@ AC_SUBST(inst_paths) | |||
| 1016 | AC_SUBST(LD_SWITCH_X_SITE) | 1005 | AC_SUBST(LD_SWITCH_X_SITE) |
| 1017 | AC_SUBST(C_SWITCH_X_SITE) | 1006 | AC_SUBST(C_SWITCH_X_SITE) |
| 1018 | AC_SUBST(CFLAGS) | 1007 | AC_SUBST(CFLAGS) |
| 1008 | AC_SUBST(prefix) | ||
| 1019 | 1009 | ||
| 1020 | AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"") | 1010 | AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"") |
| 1021 | AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"") | 1011 | AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"") |