diff options
| author | Jim Blandy | 1993-03-23 05:31:35 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-03-23 05:31:35 +0000 |
| commit | 9c7a7556b5479e03cb4c852836fb33f24cb9f8d1 (patch) | |
| tree | cf8be05323002b64918034af5a46db849e9dcd2a | |
| parent | 8af1d7ca2bc2cfe7e70d651caf82da4c1f80e95d (diff) | |
| download | emacs-9c7a7556b5479e03cb4c852836fb33f24cb9f8d1.tar.gz emacs-9c7a7556b5479e03cb4c852836fb33f24cb9f8d1.zip | |
* configure: Add `--x-includes' and `--x-libraries' options. I
think these are dopey, but no less than three alpha testers, at
large sites, have said they have their X files installed in odd
places.
| -rwxr-xr-x | configure1.in | 53 |
1 files changed, 51 insertions, 2 deletions
diff --git a/configure1.in b/configure1.in index a5f9098de10..88aee113e2e 100755 --- a/configure1.in +++ b/configure1.in | |||
| @@ -64,6 +64,16 @@ The --with-x, --with-x11 and --with-x10 options specify what window | |||
| 64 | system to use; if all are omitted, use X11 if present. If you | 64 | system to use; if all are omitted, use X11 if present. If you |
| 65 | don't want X, specify \`--with-x=no'. | 65 | don't want X, specify \`--with-x=no'. |
| 66 | 66 | ||
| 67 | The --x-includes=DIR option tells the build process where to search for | ||
| 68 | the X Windows header files. If this option is omitted, the | ||
| 69 | build process assumes they exist in a directory the compiler | ||
| 70 | checks by default. | ||
| 71 | |||
| 72 | The --x-libraries=DIR option tells the build process where to look for | ||
| 73 | the X windows libraries. If this option is omitted, the build | ||
| 74 | process assumes they are in a directory the compiler checks by | ||
| 75 | default. | ||
| 76 | |||
| 67 | The --with-gcc option says that the build process should use GCC to | 77 | The --with-gcc option says that the build process should use GCC to |
| 68 | compile Emacs. If you have GCC but don't want to use it, | 78 | compile Emacs. If you have GCC but don't want to use it, |
| 69 | specify \`--with-gcc=no'. \`configure' tries to guess whether | 79 | specify \`--with-gcc=no'. \`configure' tries to guess whether |
| @@ -85,7 +95,8 @@ unsuccessful after disturbing the status quo, it removes config.status." | |||
| 85 | ### names. | 95 | ### names. |
| 86 | config_h_opts=" \ | 96 | config_h_opts=" \ |
| 87 | HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \ | 97 | HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \ |
| 88 | SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST" | 98 | SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST\ |
| 99 | LD_SWITCH_SITE C_SWITCH_SITE" | ||
| 89 | 100 | ||
| 90 | ### Record all the arguments, so we can save them in config.status. | 101 | ### Record all the arguments, so we can save them in config.status. |
| 91 | arguments="$@" | 102 | arguments="$@" |
| @@ -170,6 +181,41 @@ Set it to either \`yes' or \`no'." | |||
| 170 | echo "${progname}: Beware - the \`--srcdir' option doesn't work yet." >&2 | 181 | echo "${progname}: Beware - the \`--srcdir' option doesn't work yet." >&2 |
| 171 | ;; | 182 | ;; |
| 172 | 183 | ||
| 184 | ## Has the user tried to tell us where the X files are? | ||
| 185 | ## I think these are dopey, but no less than three alpha | ||
| 186 | ## testers, at large sites, have said they have their X files | ||
| 187 | ## installed in odd places. | ||
| 188 | "x-includes" ) | ||
| 189 | ## If the value was omitted, get it from the next argument. | ||
| 190 | if [ "${valomitted}" = "yes" ]; then | ||
| 191 | ## Get the next argument from the argument list, if there is one. | ||
| 192 | if [ $# = 1 ]; then | ||
| 193 | (echo "${progname}: You must give a value for the \`--${opt}' option, as in | ||
| 194 | \`--${opt}=FOO'." | ||
| 195 | echo "${short_usage}") >&2 | ||
| 196 | exit 1 | ||
| 197 | fi | ||
| 198 | shift; val="$1" | ||
| 199 | fi | ||
| 200 | x_includes="${val}" | ||
| 201 | C_SWITCH_SITE="-I${x_includes}" | ||
| 202 | ;; | ||
| 203 | "x-libraries" ) | ||
| 204 | ## If the value was omitted, get it from the next argument. | ||
| 205 | if [ "${valomitted}" = "yes" ]; then | ||
| 206 | ## Get the next argument from the argument list, if there is one. | ||
| 207 | if [ $# = 1 ]; then | ||
| 208 | (echo "${progname}: You must give a value for the \`--${opt}' option, as in | ||
| 209 | \`--${opt}=FOO'." | ||
| 210 | echo "${short_usage}") >&2 | ||
| 211 | exit 1 | ||
| 212 | fi | ||
| 213 | shift; val="$1" | ||
| 214 | fi | ||
| 215 | x_libraries="${val}" | ||
| 216 | LD_SWITCH_SITE="-L${x_libraries}" | ||
| 217 | ;; | ||
| 218 | |||
| 173 | ## Has the user asked for some help? | 219 | ## Has the user asked for some help? |
| 174 | "usage" | "help" ) | 220 | "usage" | "help" ) |
| 175 | echo "${long_usage}" | more | 221 | echo "${long_usage}" | more |
| @@ -1001,6 +1047,7 @@ ${srcdir}/move-if-change Makefile.tmp Makefile | |||
| 1001 | #### Describe the results. | 1047 | #### Describe the results. |
| 1002 | 1048 | ||
| 1003 | ### Create a verbal description of what we have done. | 1049 | ### Create a verbal description of what we have done. |
| 1050 | |||
| 1004 | message="Configured for \`${configuration}'. | 1051 | message="Configured for \`${configuration}'. |
| 1005 | 1052 | ||
| 1006 | What operating system and machine description files should Emacs use? | 1053 | What operating system and machine description files should Emacs use? |
| @@ -1009,7 +1056,9 @@ message="Configured for \`${configuration}'. | |||
| 1009 | Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} | 1056 | Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} |
| 1010 | What window system should Emacs use? ${window_system} | 1057 | What window system should Emacs use? ${window_system} |
| 1011 | What compiler should emacs be built with? ${default_cc} | 1058 | What compiler should emacs be built with? ${default_cc} |
| 1012 | Should the compilation use \`-g' and/or \`-O'? ${default_cflags-neither}" | 1059 | Should the compilation use \`-g' and/or \`-O'? ${default_cflags-neither}${x_includes+ |
| 1060 | Where do we find X Windows header files? }${x_includes}${x_libraries+ | ||
| 1061 | Where do we find X Windows libraries? }${x_libraries}" | ||
| 1013 | 1062 | ||
| 1014 | ### Write config.status, documenting the damage we have done. | 1063 | ### Write config.status, documenting the damage we have done. |
| 1015 | 1064 | ||