Mercurial > emacs
comparison configure1.in @ 2345:91711632f474
* 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.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Thu, 25 Mar 1993 01:14:34 +0000 |
parents | 47e301d9868b |
children | b1c74a8a020b |
comparison
equal
deleted
inserted
replaced
2344:d21c82eba8ab | 2345:91711632f474 |
---|---|
62 | 62 |
63 The --with-x, --with-x11 and --with-x10 options specify what window | 63 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 |
74 process assumes they are in a directory the compiler checks by | 76 process assumes they are in a directory the compiler checks by |
75 default. | 77 default. |
93 ### These are the names of CPP symbols we want to define or leave undefined | 95 ### These are the names of CPP symbols we want to define or leave undefined |
94 ### in src/config.h; their values are given by the shell variables of the same | 96 ### in src/config.h; their values are given by the shell variables of the same |
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. |
102 arguments="$@" | 104 arguments="$@" |
103 | 105 |
124 valomitted=yes | 126 valomitted=yes |
125 ;; | 127 ;; |
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. |
132 case "${opt}" in | 135 case "${opt}" in |
133 | 136 |
136 ## Make sure the value given was either "yes" or "no". | 139 ## Make sure the value given was either "yes" or "no". |
137 case "${val}" in | 140 case "${val}" in |
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 |
145 ;; | 148 ;; |
146 esac | 149 esac |
152 ## Make sure the value given was either "yes" or "no". | 155 ## Make sure the value given was either "yes" or "no". |
153 case "${val}" in | 156 case "${val}" in |
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 |
161 ;; | 164 ;; |
162 esac | 165 esac |
167 "srcdir" ) | 170 "srcdir" ) |
168 ## If the value was omitted, get it from the next argument. | 171 ## If the value was omitted, get it from the next argument. |
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 |
177 shift; val="$1" | 180 shift; val="$1" |
178 fi | 181 fi |
183 | 186 |
184 ## Has the user tried to tell us where the X files are? | 187 ## Has the user tried to tell us where the X files are? |
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 |
198 shift; val="$1" | 201 shift; val="$1" |
199 fi | 202 fi |
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 |
213 shift; val="$1" | 216 shift; val="$1" |
214 fi | 217 fi |
792 "" ) | 795 "" ) |
793 echo " No window system specifed. Looking for X Windows." | 796 echo " No window system specifed. Looking for X Windows." |
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 ;; |
801 * ) | 804 * ) |
802 echo "Don\'t specify the window system more than once." >&2 | 805 echo "Don\'t specify the window system more than once." >&2 |
834 case ${window_system} in | 837 case ${window_system} in |
835 x11 ) | 838 x11 ) |
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 ;; |
843 esac | 846 esac |
844 | 847 |