diff options
| author | Jim Blandy | 1993-03-25 01:14:34 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-03-25 01:14:34 +0000 |
| commit | b0209e1861c439cdfd3e574c696a72d3561a6225 (patch) | |
| tree | 9deb6ca70a98f415dc2dc98e63fd9f2a896ab51b | |
| parent | de025efdf189b7d8277fee6bef59134545862781 (diff) | |
| download | emacs-b0209e1861c439cdfd3e574c696a72d3561a6225.tar.gz emacs-b0209e1861c439cdfd3e574c696a72d3561a6225.zip | |
* configure: Doc fix.
* configure: Fix corrupted config_h_opts.
* configure: Properly report option names in error messages.
* configure: Properly recognize --x-includes and --x-libraries
options.
* configure: Fix syntax errors in code handling XFree386.
| -rwxr-xr-x | configure1.in | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/configure1.in b/configure1.in index 3661ff75b21..e6f7aa99fd8 100755 --- a/configure1.in +++ b/configure1.in | |||
| @@ -64,10 +64,12 @@ 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 | 67 | The --x-includes=DIR option tells the build process where to search |
| 68 | the X Windows header files. If this option is omitted, the | 68 | for the X Windows header files. DIR should have a |
| 69 | build process assumes they exist in a directory the compiler | 69 | subdirectory called \`X11' which contains \`X.h', \`Xlib.h', and |
| 70 | checks by default. | 70 | the rest of the header files; DIR should not contain \`X11' |
| 71 | itself. If this option is omitted, the build process assumes | ||
| 72 | they exist in a directory the compiler checks by default. | ||
| 71 | 73 | ||
| 72 | The --x-libraries=DIR option tells the build process where to look for | 74 | 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 | 75 | the X windows libraries. If this option is omitted, the build |
| @@ -95,7 +97,7 @@ unsuccessful after disturbing the status quo, it removes config.status." | |||
| 95 | ### names. | 97 | ### names. |
| 96 | config_h_opts=" \ | 98 | config_h_opts=" \ |
| 97 | HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \ | 99 | HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \ |
| 98 | SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST\ | 100 | SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST \ |
| 99 | LD_SWITCH_X_SITE C_SWITCH_X_SITE HAVE_XFREE386" | 101 | LD_SWITCH_X_SITE C_SWITCH_X_SITE HAVE_XFREE386" |
| 100 | 102 | ||
| 101 | ### Record all the arguments, so we can save them in config.status. | 103 | ### Record all the arguments, so we can save them in config.status. |
| @@ -126,6 +128,7 @@ while [ $# != 0 ]; do | |||
| 126 | esac | 128 | esac |
| 127 | 129 | ||
| 128 | ## Change `-' in the option name to `_'. | 130 | ## Change `-' in the option name to `_'. |
| 131 | optname="${opt}" | ||
| 129 | opt="`echo ${opt} | tr - _`" | 132 | opt="`echo ${opt} | tr - _`" |
| 130 | 133 | ||
| 131 | ## Process the option. | 134 | ## Process the option. |
| @@ -138,7 +141,7 @@ while [ $# != 0 ]; do | |||
| 138 | y | ye | yes ) val=yes ;; | 141 | y | ye | yes ) val=yes ;; |
| 139 | n | no ) val=no ;; | 142 | n | no ) val=no ;; |
| 140 | * ) | 143 | * ) |
| 141 | (echo "${progname}: the \`--${opt}' option is supposed to have a boolean value. | 144 | (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value. |
| 142 | Set it to either \`yes' or \`no'." | 145 | Set it to either \`yes' or \`no'." |
| 143 | echo "${short_usage}") >&2 | 146 | echo "${short_usage}") >&2 |
| 144 | exit 1 | 147 | exit 1 |
| @@ -154,7 +157,7 @@ Set it to either \`yes' or \`no'." | |||
| 154 | y | ye | yes ) val=yes ;; | 157 | y | ye | yes ) val=yes ;; |
| 155 | n | no ) val=no ;; | 158 | n | no ) val=no ;; |
| 156 | * ) | 159 | * ) |
| 157 | (echo "${progname}: the \`--${opt}' option is supposed to have a boolean value. | 160 | (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value. |
| 158 | Set it to either \`yes' or \`no'." | 161 | Set it to either \`yes' or \`no'." |
| 159 | echo "${short_usage}") >&2 | 162 | echo "${short_usage}") >&2 |
| 160 | exit 1 | 163 | exit 1 |
| @@ -169,8 +172,8 @@ Set it to either \`yes' or \`no'." | |||
| 169 | if [ "${valomitted}" = "yes" ]; then | 172 | if [ "${valomitted}" = "yes" ]; then |
| 170 | ## Get the next argument from the argument list, if there is one. | 173 | ## Get the next argument from the argument list, if there is one. |
| 171 | if [ $# = 1 ]; then | 174 | if [ $# = 1 ]; then |
| 172 | (echo "${progname}: You must give a value for the \`--${opt}' option, as in | 175 | (echo "${progname}: You must give a value for the \`--${optname}' option, as in |
| 173 | \`--${opt}=FOO'." | 176 | \`--${optname}=FOO'." |
| 174 | echo "${short_usage}") >&2 | 177 | echo "${short_usage}") >&2 |
| 175 | exit 1 | 178 | exit 1 |
| 176 | fi | 179 | fi |
| @@ -185,13 +188,13 @@ Set it to either \`yes' or \`no'." | |||
| 185 | ## I think these are dopey, but no less than three alpha | 188 | ## I think these are dopey, but no less than three alpha |
| 186 | ## testers, at large sites, have said they have their X files | 189 | ## testers, at large sites, have said they have their X files |
| 187 | ## installed in odd places. | 190 | ## installed in odd places. |
| 188 | "x-includes" ) | 191 | "x_includes" ) |
| 189 | ## If the value was omitted, get it from the next argument. | 192 | ## If the value was omitted, get it from the next argument. |
| 190 | if [ "${valomitted}" = "yes" ]; then | 193 | if [ "${valomitted}" = "yes" ]; then |
| 191 | ## Get the next argument from the argument list, if there is one. | 194 | ## Get the next argument from the argument list, if there is one. |
| 192 | if [ $# = 1 ]; then | 195 | if [ $# = 1 ]; then |
| 193 | (echo "${progname}: You must give a value for the \`--${opt}' option, as in | 196 | (echo "${progname}: You must give a value for the \`--${optname}' option, as in |
| 194 | \`--${opt}=FOO'." | 197 | \`--${optname}=FOO'." |
| 195 | echo "${short_usage}") >&2 | 198 | echo "${short_usage}") >&2 |
| 196 | exit 1 | 199 | exit 1 |
| 197 | fi | 200 | fi |
| @@ -200,13 +203,13 @@ Set it to either \`yes' or \`no'." | |||
| 200 | x_includes="${val}" | 203 | x_includes="${val}" |
| 201 | C_SWITCH_X_SITE="-I${x_includes}" | 204 | C_SWITCH_X_SITE="-I${x_includes}" |
| 202 | ;; | 205 | ;; |
| 203 | "x-libraries" ) | 206 | "x_libraries" ) |
| 204 | ## If the value was omitted, get it from the next argument. | 207 | ## If the value was omitted, get it from the next argument. |
| 205 | if [ "${valomitted}" = "yes" ]; then | 208 | if [ "${valomitted}" = "yes" ]; then |
| 206 | ## Get the next argument from the argument list, if there is one. | 209 | ## Get the next argument from the argument list, if there is one. |
| 207 | if [ $# = 1 ]; then | 210 | if [ $# = 1 ]; then |
| 208 | (echo "${progname}: You must give a value for the \`--${opt}' option, as in | 211 | (echo "${progname}: You must give a value for the \`--${optname}' option, as in |
| 209 | \`--${opt}=FOO'." | 212 | \`--${optname}=FOO'." |
| 210 | echo "${short_usage}") >&2 | 213 | echo "${short_usage}") >&2 |
| 211 | exit 1 | 214 | exit 1 |
| 212 | fi | 215 | fi |
| @@ -794,7 +797,7 @@ case "${window_system}" in | |||
| 794 | window_system=none | 797 | window_system=none |
| 795 | if [ -r /usr/lib/libX11.a \ | 798 | if [ -r /usr/lib/libX11.a \ |
| 796 | -o -d /usr/include/X11 \ | 799 | -o -d /usr/include/X11 \ |
| 797 | -o -d /usr/X386/include]; then | 800 | -o -d /usr/X386/include ]; then |
| 798 | window_system=x11 | 801 | window_system=x11 |
| 799 | fi | 802 | fi |
| 800 | ;; | 803 | ;; |
| @@ -836,7 +839,7 @@ case ${window_system} in | |||
| 836 | if [ -d /usr/X386/include ]; then | 839 | if [ -d /usr/X386/include ]; then |
| 837 | HAVE_XFREE386=yes | 840 | HAVE_XFREE386=yes |
| 838 | if [ "${C_SWITCH_X_SITE}" = "" ]; then | 841 | if [ "${C_SWITCH_X_SITE}" = "" ]; then |
| 839 | C_SWITCH_X_SITE="-I/usr/X386/include | 842 | C_SWITCH_X_SITE="-I/usr/X386/include" |
| 840 | fi | 843 | fi |
| 841 | fi | 844 | fi |
| 842 | ;; | 845 | ;; |