0
|
1 dnl Synched up with: FSF 19.31.
|
|
2 dnl (19.29 -- 19.31 use Autoconf 2.x instead of Autoconf 1.x.
|
|
3 dnl Some stuff related to this change has not been synched because
|
|
4 dnl it can't be until we switch to Autoconf 2.x.)
|
|
5 dnl
|
|
6 dnl This is an autoconf script.
|
|
7 dnl To rebuild the `configure' script from this, execute the command
|
|
8 dnl autoconf
|
|
9 dnl in the directory containing this script. You must have autoconf
|
|
10 dnl version 1.9 or later.
|
|
11 dnl
|
|
12 dnl The following text appears in the resulting `configure' script,
|
|
13 dnl explaining how to rebuild it.
|
|
14 dnl
|
|
15 AC_PREREQ(1.9)dnl means 'delete newline' and this one needs to be here
|
|
16 [#!/bin/sh
|
|
17 #### Configuration script for XEmacs.
|
|
18 #### Copyright (C) 1994 Free Software Foundation, Inc.
|
|
19 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
|
|
20 #### Copyright (C) 1995, 1996 Ben Wing.
|
|
21
|
|
22 ### Don't edit this script!
|
|
23 ### This script was automatically generated by the `autoconf' program
|
|
24 ### from the file `./configure.in'.
|
|
25 ### To rebuild it, execute the command
|
|
26 ### autoconf
|
|
27 ### in the this directory. You must have autoconf version 1.9 or later.
|
|
28
|
|
29 ### This file is part of XEmacs.
|
|
30
|
|
31 ### XEmacs is free software; you can redistribute it and/or modify it
|
|
32 ### under the terms of the GNU General Public License as published by
|
|
33 ### the Free Software Foundation; either version 2, or (at your
|
|
34 ### option) any later version.
|
|
35
|
|
36 ### XEmacs is distributed in the hope that it will be useful, but
|
|
37 ### WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
38 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
39 ### General Public License for more details.
|
|
40
|
|
41 ### You should have received a copy of the GNU General Public License
|
|
42 ### along with XEmacs; see the file COPYING. If not, write to the Free
|
|
43 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
44 ### 02111-1307, USA.
|
|
45
|
|
46 ### Since XEmacs has configuration requirements that autoconf can't
|
|
47 ### meet, this file is an unholy marriage of custom-baked
|
|
48 ### configuration code and autoconf macros.
|
|
49 ###
|
|
50 ### We use the m4 quoting characters [ ] (as established by the
|
|
51 ### autoconf system) to include large sections of raw sewage - Oops, I
|
|
52 ### mean, shell code - in the final configuration script.
|
|
53 ###
|
|
54 ### Usage: configure config_name
|
|
55 ###
|
|
56 ### If configure succeeds, it leaves its status in config.status.
|
|
57 ### If configure fails after disturbing the status quo,
|
|
58 ### config.status is removed.
|
|
59
|
|
60 ### Remove any more than one leading "." element from the path name.
|
|
61 ### If we don't remove them, then another "./" will be prepended to
|
|
62 ### the file name each time we use config.status, and the program name
|
|
63 ### will get larger and larger. This wouldn't be a problem, except
|
|
64 ### that since progname gets recorded in all the Makefiles this script
|
|
65 ### produces, move-if-change thinks they're different when they're
|
|
66 ### not.
|
|
67 ###
|
|
68 ### It would be nice if we could put the ./ in a \( \) group and then
|
|
69 ### apply the * operator to that, so we remove as many leading ./././'s
|
|
70 ### as are present, but some seds (like Ultrix's sed) don't allow you to
|
|
71 ### apply * to a \( \) group. Bleah.
|
|
72 progname="`echo $0 | sed 's:^\./\./:\./:'`"
|
|
73
|
|
74 ############################################################################
|
|
75 # #
|
|
76 # Establish some default values #
|
|
77 # #
|
|
78 ############################################################################
|
|
79
|
|
80 run_in_place='no'
|
|
81 prefix='/usr/local'
|
|
82 exec_prefix='${prefix}'
|
|
83 bindir='${exec_prefix}/bin'
|
|
84 # FSF 19.29 changes to:
|
|
85 # datadir='${prefix}/share'
|
|
86 # sharedstatedir='${prefix}/com'
|
|
87 # libexecdir='${exec_prefix}/libexec'
|
|
88 datadir='${prefix}/lib'
|
|
89 statedir='${prefix}/lib'
|
|
90 libdir='${exec_prefix}/lib'
|
|
91 mandir='${prefix}/man/man1'
|
|
92 infodir='${prefix}/lib/xemacs-${version}/info'
|
|
93 infodir_user_defined='no'
|
|
94 lispdir='${datadir}/xemacs-${version}/lisp'
|
|
95 lispdir_user_defined='no'
|
|
96 sitelispdir='${datadir}/xemacs/site-lisp'
|
|
97 etcdir='${datadir}/xemacs-${version}/etc'
|
|
98 etcdir_user_defined='no'
|
|
99 lockdir='${statedir}/xemacs/lock'
|
|
100 lockdir_user_defined='no'
|
|
101 archlibdir='${libdir}/xemacs-${version}/${configuration}'
|
|
102 archlibdir_user_defined='no'
|
|
103 with_menubars=''
|
|
104 with_scrollbars=''
|
|
105 with_dialogs=''
|
|
106 const_is_losing='yes'
|
|
107 puresize=''
|
|
108 cflags='NO_CFLAGS_DEFINED'
|
|
109 dynamic=''
|
|
110 with_x11=''
|
|
111 rel_alloc='default'
|
|
112 use_system_malloc='default'
|
|
113 internal_makefile_list='Makefile lib-src/Makefile.in man/Makefile.in src/Makefile.in lwlib/Makefile.in dynodump/Makefile.in'
|
|
114 energize_version='no'
|
|
115 native_sound_lib=''
|
|
116 # make normal error-checking be the default in alpha and beta versions, so
|
|
117 # that bugs get noticed. Change this for released versions.
|
2
|
118 error_check_default='yes'
|
0
|
119 error_check_extents=$error_check_default
|
|
120 error_check_typecheck=$error_check_default
|
|
121 error_check_bufpos=$error_check_default
|
|
122 error_check_gc=$error_check_default
|
|
123 error_check_malloc=$error_check_default
|
|
124 # debug=yes must be set when error checking is present. This should be
|
|
125 # fixed up.
|
|
126 debug=$error_check_default
|
|
127 quantify='no'
|
|
128 # use-assertions should be 'yes' by default. Too many people in this
|
|
129 # world have core dumps turned off by default or "can't find where the
|
|
130 # core file went". At least we should get some useful output ...
|
|
131 use_assertions='yes'
|
|
132 # the following is set to yes or no later.
|
|
133 with_gif=''
|
|
134 # the following is set to yes or no later.
|
|
135 with_toolbars=''
|
|
136 with_tty='yes'
|
|
137 use_union_type='no'
|
|
138
|
|
139 # # gnu echo silently eats `--help', `--version', `-n', `-e', `-E', `-n'.
|
|
140 # # other versions of echo eat any strings beginning with `-n'.
|
|
141 # # when parsing arguments, special case these strings and don't
|
|
142 # # pass them through echo
|
|
143 # echo=/bin/echo
|
|
144 #
|
|
145 # this approach abandoned in favor of
|
|
146 #
|
|
147 # echo "" ${stuff_to_filter} | sed -e 's:^ ::'
|
|
148
|
|
149 # On Sun systems, people sometimes set up the variable CPP
|
|
150 # with a value that is a directory, not an executable at all.
|
|
151 # Detect that case, and ignore that value.
|
|
152 if [ "x$CPP" != x ] && [ -d "$CPP" ] ; then
|
|
153 CPP=
|
|
154 fi
|
|
155
|
|
156 ############################################################################
|
|
157 # #
|
|
158 # Usage messages #
|
|
159 # #
|
|
160 ############################################################################
|
|
161
|
|
162 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
|
|
163
|
|
164 Set compilation and installation parameters for XEmacs, and report.
|
|
165 CONFIGURATION specifies the machine and operating system to build for.
|
|
166
|
|
167 Note that for most of the following options, you can explicitly enable
|
|
168 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'.
|
|
169 This is especially useful for auto-detected options.
|
|
170
|
|
171 Options marked with a (*) are autodetected.
|
|
172
|
|
173
|
|
174 General options:
|
|
175
|
|
176 --help Issue this usage message.
|
|
177 --verbose Display the results of configure tests.
|
|
178 --extra-verbose Also display the output of any compiler invocation.
|
|
179 (Useful when feature tests are coming out wrong.)
|
|
180
|
|
181
|
|
182 Compiler options:
|
|
183
|
|
184 --compiler=XXXX Specify compiler.
|
|
185 --with-gcc (*) Use GCC to compile XEmacs.
|
|
186 --with-lcc Use Lucid's LCC to compile XEmacs.
|
|
187 --with-gcc=no Don't use GCC to compile XEmacs.
|
|
188 --with-gnu-make Write the Makefiles to take advantage of
|
|
189 special features of GNU Make. (GNU Make
|
|
190 works fine on the Makefiles even without this
|
|
191 option. This just allows for simultaneous
|
|
192 in-place and --srcdir building.)
|
|
193 --cflags=FLAGS Override the default values for CFLAGS.
|
|
194 --site-includes=DIR Other header file directories. Separate multiple
|
|
195 dirs with spaces and use quotes to enclose.
|
|
196 --site-libraries=DIR Other library directories.
|
|
197 --site-runtime-libraries=DIR
|
|
198 Paths to add with -R flag.
|
|
199 --dynamic=yes Link dynamically if supported by system.
|
|
200 --dynamic=no Force static linking on systems where dynamic
|
|
201 linking is the default.
|
|
202 --srcdir=DIR Look for the XEmacs source files in DIR.
|
|
203 See also --with-gnu-make.
|
|
204 --const-is-losing=no Allow the use of const in the source code.
|
|
205
|
|
206
|
|
207 Installation options:
|
|
208
|
|
209 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
|
|
210 --run-in-place Use the source tree for installation.
|
|
211
|
|
212
|
|
213 Window-system options:
|
|
214
|
|
215 --with-x (*) Support the X Window System.
|
|
216 --with-x=no Don't support X.
|
|
217 --x-includes=DIR Search for X header files in DIR.
|
|
218 --x-libraries=DIR Search for X libraries in DIR.
|
|
219 --with-ns Support NeXTstep windows (not yet implemented).
|
|
220 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
|
|
221 widgets emulate Motif (mostly) but are faster.
|
|
222 *WARNING* The Motif menubar is currently broken.
|
|
223 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena, or no).
|
|
224 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, or no).
|
|
225 (Lucid menubars and scrollbars are the default.
|
|
226 Motif dialog boxes will be used if Motif can be
|
|
227 found.)
|
|
228 --with-cde (*) Compile in support for CDE drag and drop.
|
2
|
229 --with-offix (*) Compile in support for OffiX drag and drop.
|
0
|
230 --with-xpm (*) Compile with support for XPM files.
|
|
231 It is highly recommended that you obtain XPM
|
|
232 (version 3.4g or better) if you don't already
|
|
233 have it. Get it from the XEmacs FTP site.
|
|
234 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu.
|
|
235
|
|
236
|
|
237 Additional features:
|
|
238
|
|
239 --with-toolbars=no Don't compile with any toolbar support.
|
|
240 --with-tooltalk Support the ToolTalk IPC protocol.
|
|
241 --with-sparcworks Support the Sun Sparcworks development environment.
|
|
242 --with-energize Support the Lucid Energize development environment.
|
|
243 This doesn't currently work.
|
|
244 --with-socks Compile with support for SOCKS (an Internet proxy).
|
|
245 --with-term Compile with support for TERM (a way to multiplex
|
|
246 serial lines and provide vaguely Internet-like
|
|
247 functionality over a simple dialup connection,
|
|
248 used on Linux and other systems. NOTE: We can't
|
|
249 guarantee that our TERM support coexists well
|
|
250 with standard Internet connections).
|
|
251 --with-xface (*) Compile with support for X-Face mail header
|
|
252 conversion. Requires the compface library.
|
|
253 Get it from the XEmacs FTP site.
|
|
254 --with-gif Compile with support for GIF image conversion.
|
|
255 This requires no special support and defaults to
|
|
256 \`yes'.
|
|
257 --with-jpeg (*) Compile with support for JPEG image conversion.
|
|
258 Requires libjpeg from the Independent JPEG Group.
|
|
259 Get it from the XEmacs FTP site.
|
|
260 --with-png (*) Compile with support for PNG image conversion.
|
|
261 Requires libpng. Get it from the XEmacs FTP site.
|
|
262 Accepted values are \`yes', \`no', and \`gnuz'
|
|
263 if you want to use -lgz instead of -lz.
|
|
264 --with-tiff Compile with support for TIFF image conversion
|
|
265 (not yet implemented).
|
|
266 --with-database=type (*) Compile with database support. Valid types are
|
|
267 \`no' or a comma-separated list of one or more
|
|
268 of \`dbm', \`gnudbm', or \`berkdb'.
|
|
269 --external-widget Compile with external widget support.
|
|
270 --with-sound=native (*) Compile with native sound support.
|
|
271 --with-sound=nas Compile with network sound support.
|
|
272 --with-sound=both Compile with native and network sound support.
|
|
273 --native-sound-lib=LIB Native sound support library. Needed on Suns
|
|
274 with --with-sound=both because both sound libraries
|
|
275 are called libaudio.
|
|
276 --with-epoch Compile with additional Epoch compatibility.
|
|
277 This doesn't work yet.
|
|
278 --with-mocklisp Compile with Mocklisp support. Don't do this
|
|
279 unless you have a Mocklisp program that you need
|
|
280 to run.
|
|
281 --usage-tracking Enable some Sun-internal code. If you don't
|
|
282 know what this is, you don't want it.
|
|
283
|
|
284
|
|
285 Debugging options:
|
|
286
|
|
287 --debug Compile with support for debugging XEmacs.
|
|
288 (Causes code-size increase but no loss of speed.)
|
|
289 --error-checking=TYPE[,TYPE]...
|
|
290 Compile with internal error-checking added.
|
|
291 Causes noticeable loss of speed. Valid types
|
|
292 are extents, bufpos, malloc, gc, typecheck.
|
|
293 --error-checking=none Disable all internal error-checking (the default).
|
|
294 --error-checking=all Enable all internal error-checking.
|
|
295 --memory-usage-stats Compile with additional code to allow you to
|
|
296 determine what XEmacs's memory is being used
|
|
297 for. Causes a small code increase but no loss
|
|
298 of speed. Normally enabled when --debug is given.
|
|
299 --no-doc-file Don't rebuild the DOC file unless it's explicitly
|
|
300 deleted. Only use during development. (It speeds
|
|
301 up the compile-run-test cycle.)
|
|
302 --use-union-type Enable or disable use of a union, instead of an
|
|
303 int, for the fundamental Lisp_Object type; this
|
|
304 provides stricter type-checking. Only works with
|
|
305 some systems and compilers.
|
|
306
|
|
307
|
|
308 Other options:
|
|
309
|
|
310 --puresize=VALUE Override default amount of space for pure Lisp code.
|
|
311 --rel-alloc Use the relocating allocator (default for this option
|
|
312 is system-dependent).
|
|
313 --use-system-malloc Force use of the system malloc, rather than GNU
|
|
314 malloc.
|
|
315
|
|
316 You may also specify any of the \`path' variables found in
|
|
317 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
|
|
318 so on. Note that we recommend against explicitly setting any of these
|
|
319 variables. See the INSTALL file for a complete list plus the reasons
|
|
320 we advise not changing them. Specifying a \'path' variable will override
|
|
321 the --run-in-place value.
|
|
322
|
|
323 If successful, ${progname} leaves its status in config.status. If
|
|
324 unsuccessful after disturbing the status quo, it removes config.status."
|
|
325
|
|
326
|
|
327 ############################################################################
|
|
328 # #
|
|
329 # Options processing #
|
|
330 # #
|
|
331 ############################################################################
|
|
332
|
|
333 ### Record all the arguments, so we can save them in config.status.
|
|
334 arguments="$@"
|
|
335
|
|
336 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
|
|
337 ### in order to get the arguments back in $@, we have to do an
|
|
338 ### `eval set x "$quoted_arguments"; shift'.
|
|
339 quoted_arguments=
|
|
340 for i in "$@"; do
|
|
341 quoted_arguments="$quoted_arguments '$i'"
|
|
342 done
|
|
343
|
|
344 ### Don't use shift -- that destroys the argument list, which autoconf needs
|
|
345 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
|
|
346 ### work portably.
|
|
347 ### However, it also turns out that many shells cannot expand ${10} at all.
|
|
348 ### So using an index variable doesn't work either. It is possible to use
|
|
349 ### some shell magic to make 'set x "$arguments"; shift' work portably.
|
|
350 while [ $# != 0 ]; do
|
|
351 arg="$1"; shift
|
|
352 case "${arg}" in
|
|
353
|
|
354 ## Anything starting with a hyphen we assume is an option.
|
|
355 -* )
|
|
356 ## Separate the switch name from the value it's being given.
|
|
357 case "${arg}" in
|
|
358 -*=*)
|
|
359 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
360 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
|
361 valomitted=no
|
|
362 ;;
|
|
363 # ## special case these strings since echo may
|
|
364 # ## silently eat them.
|
|
365 # --help ) opt=help val=yes valomitted=yes ;;
|
|
366 # --version ) opt=version val=yes valomitted=yes ;;
|
|
367 # -e ) opt=e val=yes valomitted=yes ;;
|
|
368 # -E ) opt=E val=yes valomitted=yes ;;
|
|
369 # -n ) opt=n val=yes valomitted=yes ;;
|
|
370 -*)
|
|
371 ## If FOO is a boolean argument, --FOO is equivalent to
|
|
372 ## --FOO=yes. Otherwise, the value comes from the next
|
|
373 ## argument - see below.
|
|
374 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
|
375 val="yes"
|
|
376 valomitted=yes
|
|
377 ;;
|
|
378 esac
|
|
379
|
|
380 ## Change `-' in the option name to `_'.
|
|
381 optname="${opt}"
|
|
382 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`"
|
|
383
|
|
384 ## Process the option.
|
|
385 case "${opt}" in
|
|
386
|
|
387 ## Has the user specified which window systems they want to support?
|
|
388 "with_x" | "with_x11" )
|
|
389 ## Make sure the value given was either "yes" or "no".
|
|
390 case "${val}" in
|
|
391 y | ye | yes ) val=yes ;;
|
|
392 n | no ) val=no ;;
|
|
393 * )
|
|
394 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
395 Set it to either \`yes' or \`no'."
|
|
396 echo "${short_usage}") >&2
|
|
397 exit 1
|
|
398 ;;
|
|
399 esac
|
|
400 eval "with_x11=\"${val}\""
|
|
401 ;;
|
|
402
|
|
403 ## Has the user specified whether or not they want GCC or LCC?
|
|
404 "with_gcc" | "with_lcc" )
|
|
405 ## Make sure the value given was either "yes" or "no".
|
|
406 case "${val}" in
|
|
407 y | ye | yes ) val=yes ;;
|
|
408 n | no ) val=no ;;
|
|
409 * )
|
|
410 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
411 Set it to either \`yes' or \`no'."
|
|
412 echo "${short_usage}") >&2
|
|
413 exit 1
|
|
414 ;;
|
|
415 esac
|
|
416 eval "${opt}=\"${val}\""
|
|
417 if [ "${with_gcc}" = "yes" ] && [ "${with_lcc}" = "yes" ] ; then
|
|
418 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified."
|
|
419 echo "${short_usage}") >&2
|
|
420 exit 1
|
|
421 fi
|
|
422 ;;
|
|
423
|
|
424 ## Has the user specified a compiler to use?
|
|
425 "compiler" )
|
|
426 ## If the value was omitted, get it from the next argument.
|
|
427 if [ "${valomitted}" = "yes" ]; then
|
|
428 ## Get the next argument from the argument list, if there is one.
|
|
429 if [ $# = 0 ]; then
|
|
430 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
431 \`--${optname}=FOO'."
|
|
432 echo "${short_usage}") >&2
|
|
433 exit 1
|
|
434 fi
|
|
435 val="$1"; shift
|
|
436 fi
|
|
437 compiler="${val}"
|
|
438 ;;
|
|
439
|
|
440 ## Has the user specified special GNU Make support?
|
|
441 "with_gnu_make" )
|
|
442 ## Make sure the value given was either "yes" or "no".
|
|
443 case "${val}" in
|
|
444 y | ye | yes ) val=yes ;;
|
|
445 n | no ) val=no ;;
|
|
446 * )
|
|
447 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
448 Set it to either \`yes' or \`no'."
|
|
449 echo "${short_usage}") >&2
|
|
450 exit 1
|
|
451 ;;
|
|
452 esac
|
|
453 eval "${opt}=\"${val}\""
|
|
454 ;;
|
|
455
|
|
456 ## This option will not force a rebuild of the DOC
|
|
457 ## file each time that a source or Lisp file has changed.
|
|
458 ## If you want the DOC file rebuilt, remove it. A side
|
|
459 ## effect of this is that you may get complaints about
|
|
460 ## "doc lost for function foobar" or "strange doc for
|
|
461 ## function foobar", but in general these should not cause
|
|
462 ## problems.
|
|
463 "no_doc_file" )
|
|
464 ## Make sure the value given was either "yes" or "no".
|
|
465 case "${val}" in
|
|
466 y | ye | yes ) val=yes ;;
|
|
467 n | no ) val=no ;;
|
|
468 * )
|
|
469 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
470 Set it to either \`yes' or \`no'."
|
|
471 echo "${short_usage}") >&2
|
|
472 exit 1
|
|
473 ;;
|
|
474 esac
|
|
475 eval "${opt}=\"${val}\""
|
|
476 ;;
|
|
477
|
|
478 # Enable use of the union type for Lisp_Objects.
|
|
479 # mly, eat your heart out ...
|
|
480 "use_union_type" )
|
|
481 ## Make sure the value given was either "yes" or "no".
|
|
482 case "${val}" in
|
|
483 y | ye | yes ) val=yes ;;
|
|
484 n | no ) val=no ;;
|
|
485 * )
|
|
486 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
487 Set it to either \`yes' or \`no'."
|
|
488 echo "${short_usage}") >&2
|
|
489 exit 1
|
|
490 ;;
|
|
491 esac
|
|
492 eval "${opt}=\"${val}\""
|
|
493 ;;
|
|
494
|
|
495 ## Has the user specified a source directory?
|
|
496 "srcdir" )
|
|
497 ## If the value was omitted, get it from the next argument.
|
|
498 if [ "${valomitted}" = "yes" ]; then
|
|
499 ## Get the next argument from the argument list, if there is one.
|
|
500 if [ $# = 0 ]; then
|
|
501 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
502 \`--${optname}=FOO'."
|
|
503 echo "${short_usage}") >&2
|
|
504 exit 1
|
|
505 fi
|
|
506 val="$1"; shift
|
|
507 fi
|
|
508 srcdir="${val}"
|
|
509 ;;
|
|
510
|
|
511 ## Has the user requested sound support?
|
|
512 "with_sound" )
|
|
513 ## value can be native, nas or both. yes is allowed
|
|
514 ## as a backwards compatible synonym for native
|
|
515 case "${val}" in
|
|
516 y | ye | yes ) val=native ;;
|
|
517 n | no | non | none ) val=no;;
|
|
518 na | nat | nati | nativ | native ) val=native ;;
|
|
519 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
|
|
520 b | bo | bot | both ) val=both;;
|
|
521 * )
|
|
522 (echo "${progname}: the \`--${optname}' option should have one of the values \`native', \`nas', \`both', or \`none'."
|
|
523 echo "${short_usage}") >&2
|
|
524 exit 1
|
|
525 ;;
|
|
526 esac
|
|
527 eval "${opt}=\"${val}\""
|
|
528 ;;
|
|
529
|
|
530 ## Has the user specified a native sound library?
|
|
531 ## (the reason for this flag is that, under Suns, both NAS sound
|
|
532 ## and native sound call their library libaudio.a)
|
|
533 "native_sound_lib" )
|
|
534 ## If the value was omitted, get it from the next argument.
|
|
535 if [ "${valomitted}" = "yes" ]; then
|
|
536 ## Get the next argument from the argument list, if there is one.
|
|
537 if [ $# = 0 ]; then
|
|
538 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
539 \`--${optname}=FOO'."
|
|
540 echo "${short_usage}") >&2
|
|
541 exit 1
|
|
542 fi
|
|
543 val="$1"; shift
|
|
544 fi
|
|
545 native_sound_lib="${val}"
|
|
546 ;;
|
|
547
|
|
548 ## Has the user requested extra Epoch compatibility?
|
|
549 "with_epoch" )
|
|
550 ## Make sure the value given was either "yes" or "no".
|
|
551 case "${val}" in
|
|
552 y | ye | yes ) val=yes ;;
|
|
553 n | no ) val=no ;;
|
|
554 * )
|
|
555 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
556 Set it to either \`yes' or \`no'."
|
|
557 echo "${short_usage}") >&2
|
|
558 exit 1
|
|
559 ;;
|
|
560 esac
|
|
561 eval "${opt}=\"${val}\""
|
|
562 ;;
|
|
563
|
|
564 ## Has the user specified a change to the default linking?
|
|
565 "dynamic" )
|
|
566 ## Make sure the value given was either "yes" or "no".
|
|
567 case "${val}" in
|
|
568 y | ye | yes ) val=yes ;;
|
|
569 n | no ) val=no ;;
|
|
570 * )
|
|
571 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
572 Set it to either \`yes' or \`no'."
|
|
573 echo "${short_usage}") >&2
|
|
574 exit 1
|
|
575 ;;
|
|
576 esac
|
|
577 eval "${opt}=\"${val}\""
|
|
578 ;;
|
|
579
|
|
580 ## Has the user specified Quantify support?
|
|
581 "quantify" )
|
|
582 ## Make sure the value given was either "yes" or "no".
|
|
583 case "${val}" in
|
|
584 y | ye | yes ) val=yes ;;
|
|
585 n | no ) val=no ;;
|
|
586 * )
|
|
587 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
588 Set it to either \`yes' or \`no'."
|
|
589 echo "${short_usage}") >&2
|
|
590 exit 1
|
|
591 ;;
|
|
592 esac
|
|
593 eval "${opt}=\"${val}\""
|
|
594 ;;
|
|
595
|
|
596 ## Has the user requested SOCKS support?
|
|
597 "with_socks" )
|
|
598 ## Make sure the value given was either "yes" or "no".
|
|
599 case "${val}" in
|
|
600 y | ye | yes ) val=yes ;;
|
|
601 n | no ) val=no ;;
|
|
602 * )
|
|
603 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
604 Set it to either \`yes' or \`no'."
|
|
605 echo "${short_usage}") >&2
|
|
606 exit 1
|
|
607 ;;
|
|
608 esac
|
|
609 eval "${opt}=\"${val}\""
|
|
610 ;;
|
|
611
|
|
612 ## Has the user requested TERM support?
|
|
613 "with_term" )
|
|
614 ## Make sure the value given was either "yes" or "no".
|
|
615 case "${val}" in
|
|
616 y | ye | yes ) val=yes ;;
|
|
617 n | no ) val=no ;;
|
|
618 * )
|
|
619 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
620 Set it to either \`yes' or \`no'."
|
|
621 echo "${short_usage}") >&2
|
|
622 exit 1
|
|
623 ;;
|
|
624 esac
|
|
625 eval "${opt}=\"${val}\""
|
|
626 ;;
|
|
627
|
|
628 ## Has the user requested CDE support?
|
|
629 "with_cde" )
|
|
630 ## Make sure the value given was either "yes" or "no".
|
|
631 case "${val}" in
|
|
632 y | ye | yes ) val=yes ;;
|
|
633 n | no ) val=no ;;
|
|
634 * )
|
|
635 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
636 Set it to either \`yes' or \`no'."
|
|
637 echo "${short_usage}") >&2
|
|
638 exit 1
|
|
639 ;;
|
|
640 esac
|
|
641 eval "${opt}=\"${val}\""
|
|
642 ;;
|
|
643
|
2
|
644 ## Has the user requested OffiX support?
|
|
645 "with_offix" )
|
|
646 ## Make sure the value given was either "yes" or "no".
|
|
647 case "${val}" in
|
|
648 y | ye | yes ) val=yes ;;
|
|
649 n | no ) val=no ;;
|
|
650 * )
|
|
651 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
652 Set it to either \`yes' or \`no'."
|
|
653 echo "${short_usage}") >&2
|
|
654 exit 1
|
|
655 ;;
|
|
656 esac
|
|
657 eval "${opt}=\"${val}\""
|
|
658 ;;
|
|
659
|
0
|
660 ## Has the user requested XPM support?
|
|
661 "with_xpm" )
|
|
662 ## Make sure the value given was either "yes" or "no".
|
|
663 case "${val}" in
|
|
664 y | ye | yes ) val=yes ;;
|
|
665 n | no ) val=no ;;
|
|
666 * )
|
|
667 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
668 Set it to either \`yes' or \`no'."
|
|
669 echo "${short_usage}") >&2
|
|
670 exit 1
|
|
671 ;;
|
|
672 esac
|
|
673 eval "${opt}=\"${val}\""
|
|
674 ;;
|
|
675
|
|
676 ## Has the user requested XFACE support?
|
|
677 "with_xface" )
|
|
678 ## Make sure the value given was either "yes" or "no".
|
|
679 case "${val}" in
|
|
680 y | ye | yes ) val=yes ;;
|
|
681 n | no ) val=no ;;
|
|
682 * )
|
|
683 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
684 Set it to either \`yes' or \`no'."
|
|
685 echo "${short_usage}") >&2
|
|
686 exit 1
|
|
687 ;;
|
|
688 esac
|
|
689 eval "${opt}=\"${val}\""
|
|
690 ;;
|
|
691
|
|
692 ## Has the user requested GIF support?
|
|
693 "with_gif" )
|
|
694 ## Make sure the value given was either "yes" or "no".
|
|
695 case "${val}" in
|
|
696 y | ye | yes ) val=yes ;;
|
|
697 n | no ) val=no ;;
|
|
698 * )
|
|
699 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
700 Set it to either \`yes' or \`no'."
|
|
701 echo "${short_usage}") >&2
|
|
702 exit 1
|
|
703 ;;
|
|
704 esac
|
|
705 eval "${opt}=\"${val}\""
|
|
706 ;;
|
|
707
|
|
708 ## Has the user requested JPEG support?
|
|
709 "with_jpeg" )
|
|
710 ## Make sure the value given was either "yes" or "no".
|
|
711 case "${val}" in
|
|
712 y | ye | yes ) val=yes ;;
|
|
713 n | no ) val=no ;;
|
|
714 * )
|
|
715 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
716 Set it to either \`yes' or \`no'."
|
|
717 echo "${short_usage}") >&2
|
|
718 exit 1
|
|
719 ;;
|
|
720 esac
|
|
721 eval "${opt}=\"${val}\""
|
|
722 ;;
|
|
723
|
|
724 ## Has the user requested database support?
|
|
725 "with_database" )
|
|
726 if [ "${val}" = "no" ] ; then
|
|
727 with_database_berkdb=no
|
|
728 with_database_dbm=no
|
|
729 with_database_gnudbm=no
|
|
730 else
|
|
731 ## Make sure the value given was berkdb, dbm, gnudbm, or a list
|
|
732 for x in `echo "${val}" | sed 's/,/ /'` ; do
|
|
733 case "${x}" in
|
|
734 b | be | ber | berk | berkd | berkdb )
|
|
735 with_database_berkdb=yes ;;
|
|
736 d | db | dbm )
|
|
737 with_database_dbm=yes ;;
|
|
738 g | gn | gnu | gnud | gnudb | gnudbm )
|
|
739 with_database_gnudbm=yes ;;
|
|
740 * )
|
|
741 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no'
|
|
742 or a comma-separated list of one or more of \`berkdb', \`dbm', or \`gnudbm'."
|
|
743 echo "${short_usage}") >&2
|
|
744 exit 1
|
|
745 ;;
|
|
746 esac
|
|
747 done
|
|
748 if [ "${with_database_dbm}" = "yes" ] && [ "${with_database_gnudbm}" = "yes" ]
|
|
749 then
|
|
750 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2
|
|
751 exit 1
|
|
752 fi
|
|
753 fi
|
|
754 ;;
|
|
755
|
|
756 ## Has the user requested PNG support?
|
|
757 "with_png" )
|
|
758 ## Make sure the value given was either "yes", "no", or "gnuz".
|
|
759 case "${val}" in
|
|
760 y | ye | yes ) val=yes ;;
|
|
761 n | no ) val=no ;;
|
|
762 g | gn | gnu | gnuz ) val=gnuz ;;
|
|
763 * )
|
|
764 (echo "${progname}: the \`--${optname}' option is supposed to
|
|
765 be either \`yes', \`no', or \`gnuz'."
|
|
766 echo "${short_usage}") >&2
|
|
767 exit 1
|
|
768 ;;
|
|
769 esac
|
|
770 eval "${opt}=\"${val}\""
|
|
771 ;;
|
|
772
|
|
773 ## Has the user requested TIFF support?
|
|
774 "with_tiff" )
|
|
775 ## Make sure the value given was either "yes" or "no".
|
|
776 case "${val}" in
|
|
777 y | ye | yes ) val=yes ;;
|
|
778 n | no ) val=no ;;
|
|
779 * )
|
|
780 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
781 Set it to either \`yes' or \`no'."
|
|
782 echo "${short_usage}") >&2
|
|
783 exit 1
|
|
784 ;;
|
|
785 esac
|
|
786 eval "${opt}=\"${val}\""
|
|
787 ;;
|
|
788
|
|
789 ## Has the user requested NeXTstep support?
|
|
790 "with_ns" )
|
|
791 ## Make sure the value given was either "yes" or "no".
|
|
792 case "${val}" in
|
|
793 y | ye | yes ) val=yes ;;
|
|
794 n | no ) val=no ;;
|
|
795 * )
|
|
796 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
797 Set it to either \`yes' or \`no'."
|
|
798 echo "${short_usage}") >&2
|
|
799 exit 1
|
|
800 ;;
|
|
801 esac
|
|
802 eval "${opt}=\"${val}\""
|
|
803 ;;
|
|
804
|
|
805 ## Has the user requested that assertions be used?
|
|
806 "use_assertions" )
|
|
807 ## Make sure the value given was either "yes" or "no".
|
|
808 case "${val}" in
|
|
809 y | ye | yes ) val=yes ;;
|
|
810 n | no ) val=no ;;
|
|
811 * )
|
|
812 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
813 Set it to either \`yes' or \`no'."
|
|
814 echo "${short_usage}") >&2
|
|
815 exit 1
|
|
816 ;;
|
|
817 esac
|
|
818 eval "${opt}=\"${val}\""
|
|
819 ;;
|
|
820
|
|
821 ## Has the user requested error-checking?
|
|
822 "error_checking" )
|
|
823 ## value can be all, none, and/or a list of categories to check.
|
|
824 ## Example: --error-checking=all,noextents,nobufpos
|
|
825 ## Example: --error-checking=none,malloc,gc
|
|
826
|
|
827 for x in `echo "${val}" | sed 's/,/ /'` ; do
|
|
828 case "${x}" in
|
|
829 # all and none are only permitted as the first in the list.
|
|
830 n | no | non | none ) new_default=no ;;
|
|
831 a | al | all ) new_default=yes ;;
|
|
832
|
|
833 extents ) error_check_extents=yes ;;
|
|
834 noextents ) error_check_extents=no ;;
|
|
835
|
|
836 typecheck ) error_check_typecheck=yes ;;
|
|
837 notypecheck ) error_check_typecheck=no ;;
|
|
838
|
|
839 bufpos ) error_check_bufpos=yes ;;
|
|
840 nobufpos ) error_check_bufpos=no ;;
|
|
841
|
|
842 gc ) error_check_gc=yes ;;
|
|
843 nogc ) error_check_gc=no ;;
|
|
844
|
|
845 malloc ) error_check_malloc=yes ;;
|
|
846 nomalloc ) error_check_malloc=no ;;
|
|
847
|
|
848 * ) bogus_error_check=yes ;;
|
|
849 esac
|
|
850 if [ "$bogus_error_check" -o \
|
|
851 \( -n "$new_default" -a -n "$echeck_notfirst" \) ]; then
|
|
852 ( echo "${progname}: Valid types for the \`--${optname}' option are:"
|
|
853 if [ $error_check_default = yes ]; then
|
|
854 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
|
|
855 else
|
|
856 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
|
|
857 fi
|
|
858 echo "${short_usage}" ) >&2
|
|
859 exit 1
|
|
860 elif [ "$new_default" ]; then
|
|
861 error_check_extents=$new_default
|
|
862 error_check_typecheck=$new_default
|
|
863 error_check_bufpos=$new_default
|
|
864 error_check_gc=$new_default
|
|
865 error_check_malloc=$new_default
|
|
866 new_default= # reset this
|
|
867 fi
|
|
868 echeck_notfirst=true
|
|
869 done
|
|
870 ;;
|
|
871
|
|
872 ## Has the user requested external widget support?
|
|
873 "external_widget" )
|
|
874 ## Make sure the value given was either "yes" or "no".
|
|
875 case "${val}" in
|
|
876 y | ye | yes ) val=yes ;;
|
|
877 n | no ) val=no ;;
|
|
878 * )
|
|
879 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
880 Set it to either \`yes' or \`no'."
|
|
881 echo "${short_usage}") >&2
|
|
882 exit 1
|
|
883 ;;
|
|
884 esac
|
|
885 eval "${opt}=\"${val}\""
|
|
886 ;;
|
|
887
|
|
888 ## Has the user requested that const be used?
|
|
889 "const_is_losing" )
|
|
890 ## Make sure the value given was either "yes" or "no".
|
|
891 case "${val}" in
|
|
892 y | ye | yes ) val=yes ;;
|
|
893 n | no ) val=no ;;
|
|
894 * )
|
|
895 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
896 Set it to either \`yes' or \`no'."
|
|
897 echo "${short_usage}") >&2
|
|
898 exit 1
|
|
899 ;;
|
|
900 esac
|
|
901 eval "${opt}=\"${val}\""
|
|
902 ;;
|
|
903
|
|
904 ## Has the user mentioned that they don't have Xmu?
|
|
905 "with_xmu" )
|
|
906 ## Make sure the value given was either "yes" or "no".
|
|
907 case "${val}" in
|
|
908 y | ye | yes ) val=yes ;;
|
|
909 n | no ) val=no ;;
|
|
910 * )
|
|
911 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
912 Set it to either \`yes' or \`no'."
|
|
913 echo "${short_usage}") >&2
|
|
914 exit 1
|
|
915 ;;
|
|
916 esac
|
|
917 eval "${opt}=\"${val}\""
|
|
918 ;;
|
|
919
|
|
920 ## Has the user specified a value for PURESIZE?
|
|
921 "puresize" )
|
|
922 ## If the value was omitted, get it from the next argument.
|
|
923 if [ "${valomitted}" = "yes" ]; then
|
|
924 ## Get the next argument from the argument list, if there is one.
|
|
925 if [ $# = 0 ]; then
|
|
926 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
927 \`--${optname}=FOO'."
|
|
928 echo "${short_usage}") >&2
|
|
929 exit 1
|
|
930 fi
|
|
931 val="$1"; shift
|
|
932 fi
|
|
933 puresize="${val}"
|
|
934 ;;
|
|
935
|
|
936 ## Has the user specified explicit instructions for rel_alloc?
|
|
937 "rel_alloc" )
|
|
938 ## Make sure the value given was either "yes", "no", or "default".
|
|
939 case "${val}" in
|
|
940 y | ye | yes ) val=yes ;;
|
|
941 n | no ) val=no ;;
|
|
942 d | de | def | defa | defau | defaul | default )
|
|
943 val=default ;;
|
|
944 * )
|
|
945 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'.
|
|
946 Set it to either \`yes', \`no', or \`default'."
|
|
947 echo "${short_usage}") >&2
|
|
948 exit 1
|
|
949 ;;
|
|
950 esac
|
|
951 eval "${opt}=\"${val}\""
|
|
952 ;;
|
|
953
|
|
954 ## Has the user specified explicit instructions for system_malloc?
|
|
955 "use_system_malloc" )
|
|
956 ## Make sure the value given was either "yes", "no", or "default".
|
|
957 case "${val}" in
|
|
958 y | ye | yes ) val=yes ;;
|
|
959 n | no ) val=no ;;
|
|
960 d | de | def | defa | defau | defaul | default )
|
|
961 val=default ;;
|
|
962 * )
|
|
963 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'.
|
|
964 Set it to either \`yes', \`no', or \`default'."
|
|
965 echo "${short_usage}") >&2
|
|
966 exit 1
|
|
967 ;;
|
|
968 esac
|
|
969 eval "${opt}=\"${val}\""
|
|
970 ;;
|
|
971
|
|
972 ## Has the user tried to tell us where the X files are?
|
|
973 ## I think these are dopey, but no less than three alpha
|
|
974 ## testers, at large sites, have said they have their X files
|
|
975 ## installed in odd places.
|
|
976 "x_includes" )
|
|
977 ## If the value was omitted, get it from the next argument.
|
|
978 if [ "${valomitted}" = "yes" ]; then
|
|
979 ## Get the next argument from the argument list, if there is one.
|
|
980 if [ $# = 0 ]; then
|
|
981 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
982 \`--${optname}=/usr/local/X11/include'."
|
|
983 echo "${short_usage}") >&2
|
|
984 exit 1
|
|
985 fi
|
|
986 val="$1"; shift
|
|
987 fi
|
|
988 x_includes="${val}"
|
|
989 ;;
|
|
990 "x_libraries" )
|
|
991 ## If the value was omitted, get it from the next argument.
|
|
992 if [ "${valomitted}" = "yes" ]; then
|
|
993 ## Get the next argument from the argument list, if there is one.
|
|
994 if [ $# = 0 ]; then
|
|
995 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
996 \`--${optname}=/usr/local/X11/lib'."
|
|
997 echo "${short_usage}") >&2
|
|
998 exit 1
|
|
999 fi
|
|
1000 val="$1"; shift
|
|
1001 fi
|
|
1002 x_libraries="${val}"
|
|
1003 ;;
|
|
1004
|
|
1005 "site_includes" )
|
|
1006 ## If the value was omitted, get it from the next argument.
|
|
1007 if [ "${valomitted}" = "yes" ]; then
|
|
1008 ## Get the next argument from the argument list, if there is one.
|
|
1009 if [ $# = 0 ]; then
|
|
1010 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
1011 \`--${optname}=/usr/local/X11/include'."
|
|
1012 echo "${short_usage}") >&2
|
|
1013 exit 1
|
|
1014 fi
|
|
1015 val="$1"; shift
|
|
1016 fi
|
|
1017 site_includes="${val}"
|
|
1018 ;;
|
|
1019
|
|
1020 "site_libraries" )
|
|
1021 ## If the value was omitted, get it from the next argument.
|
|
1022 if [ "${valomitted}" = "yes" ]; then
|
|
1023 ## Get the next argument from the argument list, if there is one.
|
|
1024 if [ $# = 0 ]; then
|
|
1025 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
1026 \`--${optname}=/usr/local/X11/lib'."
|
|
1027 echo "${short_usage}") >&2
|
|
1028 exit 1
|
|
1029 fi
|
|
1030 val="$1"; shift
|
|
1031 fi
|
|
1032 site_libraries="${val}"
|
|
1033 ;;
|
|
1034
|
|
1035 "site_runtime_libraries" )
|
|
1036 ## If the value was omitted, get it from the next argument.
|
|
1037 if [ "${valomitted}" = "yes" ]; then
|
|
1038 ## Get the next argument from the argument list, if there is one.
|
|
1039 if [ $# = 0 ]; then
|
|
1040 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
1041 \`--${optname}=/usr/local/X11/lib'."
|
|
1042 echo "${short_usage}") >&2
|
|
1043 exit 1
|
|
1044 fi
|
|
1045 val="$1"; shift
|
|
1046 fi
|
|
1047 site_runtime_libraries="${val}"
|
|
1048 ;;
|
|
1049
|
|
1050 ## Has the user specified the developer configuration?
|
|
1051 ## Note that the user still has the option of explicitly setting
|
|
1052 ## a path option.
|
|
1053 "run_in_place" )
|
|
1054 ## Make sure the value given was either "yes" or "no".
|
|
1055 case "${val}" in
|
|
1056 y | ye | yes ) val=yes ;;
|
|
1057 n | no ) val=no ;;
|
|
1058 * )
|
|
1059 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1060 Set it to either \`yes' or \`no'."
|
|
1061 echo "${short_usage}") >&2
|
|
1062 exit 1
|
|
1063 ;;
|
|
1064 esac
|
|
1065 eval "${opt}=\"${val}\""
|
|
1066 ;;
|
|
1067
|
|
1068 ## Has the user specified one of the path options?
|
|
1069 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
|
1070 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \
|
|
1071 sitelispdir | docdir )
|
|
1072 ## If the value was omitted, get it from the next argument.
|
|
1073 if [ "${valomitted}" = "yes" ]; then
|
|
1074 if [ $# = 0 ]; then
|
|
1075 (echo \
|
|
1076 "$progname: You must give a value for the \`--${optname}' option,";
|
|
1077 echo \
|
|
1078 "as in \`--${optname}=`eval echo '$'$optname`.'"
|
|
1079 echo "$short_usage") >&2
|
|
1080 exit 1
|
|
1081 fi
|
|
1082 val="$1"; shift
|
|
1083 fi
|
|
1084 eval "${opt}=\"${val}\""
|
|
1085
|
|
1086 ## Changing exec_prefix or libdir will change the default value
|
|
1087 ## of archlibdir. Changing datadir will change the default value
|
|
1088 ## of etcdir and lispdir. Changing statedir will change the
|
|
1089 ## default value of lockdir.
|
|
1090 if [ "${opt}" = "exec_prefix" ]; then
|
|
1091 archlibdir_user_defined='yes'
|
|
1092 elif [ "${opt}" = "libdir" ]; then
|
|
1093 archlibdir_user_defined='yes'
|
|
1094 elif [ "${opt}" = "archlibdir" ]; then
|
|
1095 archlibdir_user_defined='yes'
|
|
1096 elif [ "${opt}" = "lispdir" ]; then
|
|
1097 lispdir_user_defined='yes'
|
|
1098 elif [ "${opt}" = "etcdir" ]; then
|
|
1099 etcdir_user_defined='yes'
|
|
1100 elif [ "${opt}" = "datadir" ]; then
|
|
1101 lispdir_user_defined='yes'
|
|
1102 etcdir_user_defined='yes'
|
|
1103 elif [ "${opt}" = "statedir" ]; then
|
|
1104 lockdir_user_defined='yes'
|
|
1105 elif [ "${opt}" = "lockdir" ]; then
|
|
1106 lockdir_user_defined='yes'
|
|
1107 elif [ "${opt}" = "infodir" ]; then
|
|
1108 infodir_user_defined='yes'
|
|
1109 fi
|
|
1110 ;;
|
|
1111
|
|
1112 ## Has the user specified values to override CFLAGS?
|
|
1113 cflags )
|
|
1114 ## If the value was omitted, get it from the next argument.
|
|
1115 if [ "${valomitted}" = "yes" ]; then
|
|
1116 if [ $# = 0 ]; then
|
|
1117 (echo \
|
|
1118 "$progname: You must give a value for the \`--${optname}' option,";
|
|
1119 echo \
|
|
1120 "as in \`--${optname}=`eval echo '$'$optname`-g -O'"
|
|
1121 echo "$short_usage") >&2
|
|
1122 exit 1
|
|
1123 fi
|
|
1124 val="$1"; shift
|
|
1125 fi
|
|
1126 eval "${opt}=\"${val}\""
|
|
1127 eval "${opt}_specified=1"
|
|
1128 ;;
|
|
1129
|
|
1130 ## Verbose flag, tested by autoconf macros.
|
|
1131 "verbose" )
|
|
1132 verbose=yes
|
|
1133 ;;
|
|
1134
|
|
1135 ## Does the user want to see the compiler output for feature tests?
|
|
1136 "extra_verbose" )
|
|
1137 ## Make sure the value given was either "yes" or "no".
|
|
1138 case "${val}" in
|
|
1139 y | ye | yes ) val=yes ;;
|
|
1140 n | no ) val=no ;;
|
|
1141 * )
|
|
1142 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1143 Set it to either \`yes' or \`no'."
|
|
1144 echo "${short_usage}") >&2
|
|
1145 exit 1
|
|
1146 ;;
|
|
1147 esac
|
|
1148 eval "${opt}=\"${val}\""
|
|
1149 ## --extra-verbose implies --verbose
|
|
1150 verbose=yes
|
|
1151 ;;
|
|
1152
|
|
1153 ## --no-create added by autoconf for use by config.status
|
|
1154 "no_create" )
|
|
1155 ;;
|
|
1156
|
|
1157 ## Has the user asked for some help?
|
|
1158 "usage" | "help" )
|
|
1159 if [ "x$PAGER" = x ]
|
|
1160 then
|
|
1161 echo "${short_usage}" | more
|
|
1162 else
|
|
1163 echo "${short_usage}" | $PAGER
|
|
1164 fi
|
|
1165 exit
|
|
1166 ;;
|
|
1167
|
|
1168 ## Has the user specified what toolkit to use for the menubars,
|
|
1169 ## scrollbar or dialogs?
|
|
1170 "with_menubars" | "with_scrollbars" | "with_dialogs" )
|
|
1171 ## value can be lucid, motif, or athena.
|
|
1172 case "${val}" in
|
|
1173 l | lu | luc | luci | lucid ) val=lucid ;;
|
|
1174 m | mo | mot | moti | motif ) val=motif ;;
|
|
1175 a | at | ath | athe | athen | athena ) val=athena ;;
|
|
1176 n | no | non | none ) val=no ;;
|
|
1177 * )
|
|
1178 (echo "${progname}: the \`--${optname}' option should have one of the values \`lucid', \`motif', \`athena', or \`no'."
|
|
1179 echo "${short_usage}") >&2
|
|
1180 exit 1
|
|
1181 ;;
|
|
1182 esac
|
|
1183 eval "${opt}=\"${val}\""
|
|
1184 ;;
|
|
1185
|
|
1186 ## Has the user disabled toolbar support?
|
|
1187 "with_toolbars" )
|
|
1188 ## Make sure the value given was either "yes" or "no".
|
|
1189 case "${val}" in
|
|
1190 y | ye | yes ) val=yes ;;
|
|
1191 n | no ) val=no ;;
|
|
1192 * )
|
|
1193 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1194 Set it to either \`yes' or \`no'."
|
|
1195 echo "${short_usage}") >&2
|
|
1196 exit 1
|
|
1197 ;;
|
|
1198 esac
|
|
1199 eval "${opt}=\"${val}\""
|
|
1200 ;;
|
|
1201
|
|
1202 ## Has the user disabled TTY support?
|
|
1203 "with_tty" )
|
|
1204 ## Make sure the value given was either "yes" or "no".
|
|
1205 case "${val}" in
|
|
1206 y | ye | yes ) val=yes ;;
|
|
1207 n | no ) val=no ;;
|
|
1208 * )
|
|
1209 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1210 Set it to either \`yes' or \`no'."
|
|
1211 echo "${short_usage}") >&2
|
|
1212 exit 1
|
|
1213 ;;
|
|
1214 esac
|
|
1215 eval "${opt}=\"${val}\""
|
|
1216 ;;
|
|
1217
|
|
1218 ## Has the user specified whether or not they want to use ToolTalk?
|
|
1219 "with_tooltalk" )
|
|
1220 ## Make sure the value given was either "yes" or "no".
|
|
1221 case "${val}" in
|
|
1222 y | ye | yes ) val=yes ;;
|
|
1223 n | no ) val=no ;;
|
|
1224 * )
|
|
1225 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1226 Set it to either \`yes' or \`no'."
|
|
1227 echo "${short_usage}") >&2
|
|
1228 exit 1
|
|
1229 ;;
|
|
1230 esac
|
|
1231 eval "${opt}=\"${val}\""
|
|
1232 ;;
|
|
1233
|
|
1234 ## Has the user specified whether or not they want Mocklisp support?
|
|
1235 "with_mocklisp" )
|
|
1236 ## Make sure the value given was either "yes" or "no".
|
|
1237 case "${val}" in
|
|
1238 y | ye | yes ) val=yes ;;
|
|
1239 n | no ) val=no ;;
|
|
1240 * )
|
|
1241 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1242 Set it to either \`yes' or \`no'."
|
|
1243 echo "${short_usage}") >&2
|
|
1244 exit 1
|
|
1245 ;;
|
|
1246 esac
|
|
1247 eval "${opt}=\"${val}\""
|
|
1248 ;;
|
|
1249
|
|
1250 ## Has the user specified whether or not they want to use SparcWorks?
|
|
1251 "with_sparcworks" )
|
|
1252 ## Make sure the value given was either "yes" or "no".
|
|
1253 case "${val}" in
|
|
1254 y | ye | yes ) val=yes ;;
|
|
1255 n | no ) val=no ;;
|
|
1256 * )
|
|
1257 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1258 Set it to either \`yes' or \`no'."
|
|
1259 echo "${short_usage}") >&2
|
|
1260 exit 1
|
|
1261 ;;
|
|
1262 esac
|
|
1263 eval "${opt}=\"${val}\""
|
|
1264 if [ "${with_sparcworks}" = "yes" ]; then
|
|
1265 with_tooltalk='yes'
|
|
1266 fi
|
|
1267 ;;
|
|
1268
|
|
1269 ## Does the user want usage tracking?
|
|
1270 "usage_tracking" )
|
|
1271 ## Make sure the value given was either "yes" or "no".
|
|
1272 case "${val}" in
|
|
1273 y | ye | yes ) val=yes ;;
|
|
1274 n | no ) val=no ;;
|
|
1275 * )
|
|
1276 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1277 Set it to either \`yes' or \`no'."
|
|
1278 echo "${short_usage}") >&2
|
|
1279 exit 1
|
|
1280 ;;
|
|
1281 esac
|
|
1282 eval "${opt}=\"${val}\""
|
|
1283 ;;
|
|
1284
|
|
1285 ## Does the user want additional debugging capability?
|
|
1286 "debug" )
|
|
1287 ## Make sure the value given was either "yes" or "no".
|
|
1288 case "${val}" in
|
|
1289 y | ye | yes ) val=yes ;;
|
|
1290 n | no ) val=no ;;
|
|
1291 * )
|
|
1292 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1293 Set it to either \`yes' or \`no'."
|
|
1294 echo "${short_usage}") >&2
|
|
1295 exit 1
|
|
1296 ;;
|
|
1297 esac
|
|
1298 eval "${opt}=\"${val}\""
|
|
1299 if [ "${debug}" = "yes" ]; then
|
|
1300 use_assertions='yes'
|
|
1301 memory_usage_stats='yes'
|
|
1302 fi
|
|
1303 ;;
|
|
1304
|
|
1305 ## Does the user want code for memory usage stats?
|
|
1306 "memory_usage_stats" )
|
|
1307 ## Make sure the value given was either "yes" or "no".
|
|
1308 case "${val}" in
|
|
1309 y | ye | yes ) val=yes ;;
|
|
1310 n | no ) val=no ;;
|
|
1311 * )
|
|
1312 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1313 Set it to either \`yes' or \`no'."
|
|
1314 echo "${short_usage}") >&2
|
|
1315 exit 1
|
|
1316 ;;
|
|
1317 esac
|
|
1318 eval "${opt}=\"${val}\""
|
|
1319 ;;
|
|
1320
|
|
1321 ## Has the user specified whether or not they want to use Energize?
|
|
1322 "with_energize" )
|
|
1323 ## Make sure the value given was either "yes" or "no".
|
|
1324 case "${val}" in
|
|
1325 y | ye | yes ) val=yes ;;
|
|
1326 n | no ) val=no ;;
|
|
1327 * )
|
|
1328 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
1329 Set it to either \`yes' or \`no'."
|
|
1330 echo "${short_usage}") >&2
|
|
1331 exit 1
|
|
1332 ;;
|
|
1333 esac
|
|
1334 eval "${opt}=\"${val}\""
|
|
1335 if [ "${with_energize}" = "yes" ]; then
|
|
1336 with_menubars='lucid'
|
|
1337 with_scrollbars='motif'
|
|
1338 with_dialogs='motif'
|
|
1339 with_tooltalk='yes'
|
|
1340 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
|
|
1341 fi
|
|
1342 ;;
|
|
1343
|
|
1344 ## Fail on unrecognized arguments.
|
|
1345 * )
|
|
1346 (echo "${progname}: Error: unrecognized option ${arg}"
|
|
1347 echo ""
|
|
1348 echo "${short_usage}") >& 2
|
|
1349 exit 1
|
|
1350 ;;
|
|
1351
|
|
1352 esac
|
|
1353 ;;
|
|
1354
|
|
1355 ## Anything not starting with a hyphen we assume is a
|
|
1356 ## configuration name.
|
|
1357 *)
|
|
1358 configuration=${arg}
|
|
1359 ;;
|
|
1360
|
|
1361 esac
|
|
1362 done
|
|
1363
|
|
1364 ############################################################################
|
|
1365 # #
|
|
1366 # Finish options processing #
|
|
1367 # #
|
|
1368 ############################################################################
|
|
1369
|
|
1370 ### Get the arguments back. See the diatribe on Shell Magic above.
|
|
1371 eval set x "$quoted_arguments"; shift
|
|
1372
|
|
1373 if [ "${configuration}" = "" ]; then
|
|
1374 echo '- You did not tell me what kind of host system you want to configure.
|
|
1375 - I will attempt to guess the kind of system this is.' 1>&2
|
|
1376 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
|
|
1377 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then
|
|
1378 echo "- Looks like this is a ${configuration}" 1>&2
|
|
1379 else
|
|
1380 echo '- Failed to guess the system type. You need to tell me.' 1>&2
|
|
1381 echo "${short_usage}" >&2
|
|
1382 exit 1
|
|
1383 fi
|
|
1384 fi
|
|
1385
|
|
1386 ############################################################################
|
|
1387 # #
|
|
1388 # Handle --srcdir #
|
|
1389 # #
|
|
1390 ############################################################################
|
|
1391
|
|
1392 #### Decide where the source is.
|
|
1393 case "${srcdir}" in
|
|
1394
|
|
1395 ## If it's not specified, see if `.' or `..' might work.
|
|
1396 "" )
|
|
1397 confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
|
|
1398 if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
|
|
1399 srcdir="${confdir}"
|
|
1400 else
|
|
1401 if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
|
|
1402 srcdir='.'
|
|
1403 else
|
|
1404 if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
|
|
1405 srcdir='..'
|
|
1406 else
|
|
1407 (echo "\
|
|
1408 ${progname}: Neither the current directory nor its parent seem to
|
|
1409 contain the XEmacs sources. If you do not want to build XEmacs in its
|
|
1410 source tree, you should run \`${progname}' in the directory in which
|
|
1411 you wish to build XEmacs, using its \`--srcdir' option to say where the
|
|
1412 sources may be found."
|
|
1413 echo "${short_usage}") >&2
|
|
1414 exit 1
|
|
1415 fi
|
|
1416 fi
|
|
1417 fi
|
|
1418 ;;
|
|
1419
|
|
1420 ## Otherwise, check if the directory they specified is okay.
|
|
1421 * )
|
|
1422 if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
|
|
1423 (echo "\
|
|
1424 ${progname}: The directory specified with the \`--srcdir' option,
|
|
1425 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should
|
|
1426 either run the \`${progname}' script at the top of the XEmacs source
|
|
1427 tree, or use the \`--srcdir' option to specify where the XEmacs sources
|
|
1428 are."
|
|
1429 echo "${short_usage}") >&2
|
|
1430 exit 1
|
|
1431 fi
|
|
1432 ;;
|
|
1433 esac
|
|
1434
|
|
1435 ## We check for this now instead of later when we check for other
|
|
1436 ## programs because we need to use its return value now.
|
|
1437 ] AC_LN_S
|
|
1438
|
|
1439 AC_VERBOSE("setting LN_S to ${LN_S}")
|
|
1440 [
|
|
1441 #### Make symlinks for etc, lisp, and info directories while the path
|
|
1442 #### is still relative. We don't symlink lock because someone may
|
|
1443 #### have stuck the source on a read-only partition. Instead we'll
|
|
1444 #### create it as an actual directory later on if it doesn't already
|
|
1445 #### exist.
|
|
1446 for dir in etc lisp info
|
|
1447 do
|
|
1448 if [ ! -d $dir ]; then
|
|
1449 echo Making symbolic link to ${srcdir}/$dir
|
|
1450 ${LN_S} ${srcdir}/$dir .
|
|
1451 fi
|
|
1452 done
|
|
1453
|
|
1454 #### Make srcdir absolute, if it isn't already. It's important to
|
|
1455 #### avoid running the path through pwd unnecessary, since pwd can
|
|
1456 #### give you automounter prefixes, which can go away.
|
|
1457 case "${srcdir}" in
|
|
1458 /* ) ;;
|
|
1459 . )
|
|
1460 ## We may be able to use the $PWD environment variable to make this
|
|
1461 ## absolute. But sometimes PWD is inaccurate.
|
|
1462 if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then
|
|
1463 srcdir="$PWD"
|
|
1464 else
|
|
1465 srcdir="`(cd ${srcdir}; pwd)`"
|
|
1466 fi
|
|
1467 ;;
|
|
1468 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
|
|
1469 esac
|
|
1470
|
|
1471 #### Check if the source directory already has a configured system in it.
|
|
1472 if [ `pwd` != `sh -c cd ${srcdir} && pwd` ] \
|
|
1473 && [ -f "${srcdir}/src/config.h" ] ; then
|
|
1474 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
|
|
1475 echo " as a build directory right now; it has been configured in its own"
|
|
1476 echo " right. To configure in another directory as well, you MUST"
|
|
1477 echo " use GNU make. If you do not have GNU make, then you must"
|
|
1478 echo " now do \`make distclean' in ${srcdir},"
|
|
1479 echo " and then run ${progname} again.") >&2
|
|
1480 extrasub='/^VPATH[ ]*=/c\
|
|
1481 vpath %.c $(srcdir)\
|
|
1482 vpath %.h $(srcdir)\
|
|
1483 vpath %.y $(srcdir)\
|
|
1484 vpath %.l $(srcdir)\
|
|
1485 vpath %.s $(srcdir)\
|
|
1486 vpath %.in $(srcdir)'
|
|
1487 fi
|
|
1488
|
|
1489 ### Make the necessary directories, if they don't exist.
|
|
1490 for dir in ./src ./lib-src ./dynodump ./man ./lwlib ./lock ; do
|
|
1491 if [ ! -d ${dir} ]; then
|
|
1492 mkdir ${dir}
|
|
1493 fi
|
|
1494 done
|
|
1495 if [ "${with_energize}" = "yes" ] && [ ! -d ./lwlib/energize ] ; then
|
|
1496 mkdir ./lwlib/energize
|
|
1497 fi
|
|
1498
|
|
1499 ############################################################################
|
|
1500 # #
|
|
1501 # Determine the s&m files to use #
|
|
1502 # #
|
|
1503 ############################################################################
|
|
1504
|
|
1505 #### Given the configuration name, set machfile and opsysfile to the
|
|
1506 #### names of the m/*.h and s/*.h files we should use.
|
|
1507
|
|
1508 ### Canonicalize the configuration name.
|
|
1509 echo "checking the configuration name"
|
|
1510 # allow -energize prefix on configuration name
|
|
1511 internal_configuration=`echo ${configuration} | sed 's/-energize//'`
|
|
1512 # allow --sparcworks prefix on configuration name
|
|
1513 internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'`
|
|
1514 if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else
|
|
1515 exit $?
|
|
1516 fi
|
|
1517
|
|
1518 ### If you add support for a new configuration, add code to this
|
|
1519 ### switch statement to recognize your configuration name and select
|
|
1520 ### the appropriate operating system and machine description files.
|
|
1521
|
|
1522 ### You would hope that you could choose an m/*.h file pretty much
|
|
1523 ### based on the machine portion of the configuration name, and an s-
|
|
1524 ### file based on the operating system portion. However, it turns out
|
|
1525 ### that each m/*.h file is pretty manufacturer-specific - for
|
|
1526 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
|
|
1527 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
|
|
1528 ### machines. So we basically have to have a special case for each
|
|
1529 ### configuration name.
|
|
1530 ###
|
|
1531 ### As far as handling version numbers on operating systems is
|
|
1532 ### concerned, make sure things will fail in a fixable way. If
|
|
1533 ### /etc/MACHINES doesn't say anything about version numbers, be
|
|
1534 ### prepared to handle anything reasonably. If version numbers
|
|
1535 ### matter, be sure /etc/MACHINES says something about it.
|
|
1536 ###
|
|
1537 ### Eric Raymond says we should accept strings like "sysvr4" to mean
|
|
1538 ### "System V Release 4"; he writes, "The old convention encouraged
|
|
1539 ### confusion between `system' and `release' levels'."
|
|
1540
|
|
1541 machine='' opsys='' unported=no need_dynodump=no
|
|
1542 case "${canonical}" in
|
|
1543
|
|
1544 ## NetBSD ports
|
|
1545 *-*-netbsd* )
|
|
1546 opsys=netbsd
|
|
1547 case "${canonical}" in
|
|
1548 sparc-*-netbsd*) machine=sparc ;;
|
|
1549 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
1550 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
|
1551 # Yes, this is somewhat bogus.
|
|
1552 machine=hp9000s300 ;;
|
|
1553 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
1554 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
|
1555 esac
|
|
1556 ;;
|
|
1557
|
|
1558 ## Acorn RISCiX:
|
|
1559 arm-acorn-riscix1.1* )
|
|
1560 machine=acorn opsys=riscix1-1
|
|
1561 ;;
|
|
1562 arm-acorn-riscix1.2* | arm-acorn-riscix )
|
|
1563 machine=acorn opsys=riscix1-2
|
|
1564 ;;
|
|
1565
|
|
1566 ## Alliant machines
|
|
1567 ## Strictly speaking, we need the version of the alliant operating
|
|
1568 ## system to choose the right machine file, but currently the
|
|
1569 ## configuration name doesn't tell us enough to choose the right
|
|
1570 ## one; we need to give alliants their own operating system name to
|
|
1571 ## do this right. When someone cares, they can help us.
|
|
1572 fx80-alliant-* )
|
|
1573 machine=alliant4 opsys=bsd4-2
|
|
1574 ;;
|
|
1575 i860-alliant-* )
|
|
1576 machine=alliant-2800 opsys=bsd4-3
|
|
1577 ;;
|
|
1578
|
|
1579 ## Alpha (DEC) machines.
|
|
1580 ## XEmacs change: split apart into numerous files.
|
|
1581 alpha-dec-osf1.3 | alpha-dec-osf2* )
|
|
1582 machine=alpha opsys=decosf1-3
|
|
1583 ;;
|
|
1584 alpha-dec-osf1.2 | alpha-dec-osf1* )
|
|
1585 machine=alpha opsys=decosf1-2
|
|
1586 ;;
|
|
1587
|
|
1588 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
|
|
1589 alpha-dec-osf3.[2-9] )
|
|
1590 machine=alpha opsys=decosf3-2
|
|
1591 ;;
|
|
1592 alpha-dec-osf3* )
|
|
1593 machine=alpha opsys=decosf3-1
|
|
1594 ;;
|
|
1595
|
|
1596 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu)
|
|
1597 alpha-dec-osf4* )
|
|
1598 machine=alpha opsys=decosf4-0
|
|
1599 ;;
|
|
1600
|
|
1601 alpha-*-linux* )
|
|
1602 machine=alpha opsys=linux
|
|
1603 ;;
|
|
1604
|
|
1605 ## Altos 3068
|
|
1606 m68*-altos-sysv* )
|
|
1607 machine=altos opsys=usg5-2
|
|
1608 ;;
|
|
1609
|
|
1610 ## Amdahl UTS
|
|
1611 580-amdahl-sysv* )
|
|
1612 machine=amdahl opsys=usg5-2-2
|
|
1613 ;;
|
|
1614
|
|
1615 ## Apollo, Domain/OS
|
|
1616 m68*-apollo-* )
|
|
1617 machine=apollo opsys=bsd4-3
|
|
1618 ;;
|
|
1619
|
|
1620 ## AT&T 3b2, 3b5, 3b15, 3b20
|
|
1621 we32k-att-sysv* )
|
|
1622 machine=att3b opsys=usg5-2-2
|
|
1623 ;;
|
|
1624
|
|
1625 ## AT&T 3b1 - The Mighty Unix PC!
|
|
1626 m68*-att-sysv* )
|
|
1627 machine=7300 opsys=usg5-2-2
|
|
1628 ;;
|
|
1629
|
|
1630 ## Bull dpx20
|
|
1631 rs6000-bull-bosx* )
|
|
1632 machine=ibmrs6000 opsys=aix3-2
|
|
1633 ;;
|
|
1634
|
|
1635 ## Bull dpx2
|
|
1636 m68*-bull-sysv3* )
|
|
1637 machine=dpx2 opsys=usg5-3
|
|
1638 ;;
|
|
1639
|
|
1640 ## Bull sps7
|
|
1641 m68*-bull-sysv2* )
|
|
1642 machine=sps7 opsys=usg5-2
|
|
1643 ;;
|
|
1644
|
|
1645 ## CCI 5/32, 6/32 -- see "Tahoe".
|
|
1646
|
|
1647 ## Celerity
|
|
1648 ## I don't know what configuration name to use for this; config.sub
|
|
1649 ## doesn't seem to know anything about it. Hey, Celerity users, get
|
|
1650 ## in touch with us!
|
|
1651 celerity-celerity-bsd* )
|
|
1652 machine=celerity opsys=bsd4-2
|
|
1653 ;;
|
|
1654
|
|
1655 ## Clipper
|
|
1656 ## What operating systems does this chip run that XEmacs has been
|
|
1657 ## tested on?
|
|
1658 clipper-* )
|
|
1659 machine=clipper
|
|
1660 ## We'll use the catch-all code at the bottom to guess the
|
|
1661 ## operating system.
|
|
1662 ;;
|
|
1663
|
|
1664 ## Convex
|
|
1665 *-convex-bsd* | *-convex-convexos* )
|
|
1666 machine=convex opsys=bsd4-3
|
|
1667 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
|
|
1668 NON_GNU_CPP="cc -E -P"
|
|
1669 ;;
|
|
1670
|
|
1671 ## Cubix QBx/386
|
|
1672 i[3-9]86-cubix-sysv* )
|
|
1673 machine=intel386 opsys=usg5-3
|
|
1674 ;;
|
|
1675
|
|
1676 ## Cydra 5
|
|
1677 cydra*-cydrome-sysv* )
|
|
1678 machine=cydra5 opsys=usg5-3
|
|
1679 ;;
|
|
1680
|
|
1681 ## Data General AViiON Machines
|
|
1682 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
|
|
1683 machine=aviion opsys=dgux5-4r3
|
|
1684 ;;
|
|
1685 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
|
|
1686 machine=aviion opsys=dgux5-4r2
|
|
1687 ;;
|
|
1688 m88k-dg-dgux* )
|
|
1689 machine=aviion opsys=dgux
|
|
1690 ;;
|
|
1691
|
|
1692 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
|
|
1693 machine=pmax opsys=bsd4-2
|
|
1694 ;;
|
|
1695 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
|
|
1696 machine=pmax opsys=bsd4-3
|
|
1697 ;;
|
|
1698 mips-dec-ultrix* )
|
|
1699 machine=pmax opsys=ultrix4-3
|
|
1700 ;;
|
|
1701 mips-dec-osf* )
|
|
1702 machine=pmax opsys=osf1
|
|
1703 ;;
|
|
1704 mips-dec-mach_bsd4.3* )
|
|
1705 machine=pmax opsys=mach-bsd4-3
|
|
1706 ;;
|
|
1707
|
|
1708 ## Motorola Delta machines
|
|
1709 m68k-motorola-sysv* | m68000-motorola-sysv* )
|
|
1710 machine=delta opsys=usg5-3
|
|
1711 if test -z "`type gnucc | grep 'not found'`"
|
|
1712 then
|
|
1713 if test -s /etc/167config
|
|
1714 then CC="gnucc -m68040"
|
|
1715 else CC="gnucc -m68881"
|
|
1716 fi
|
|
1717 else
|
|
1718 if test -z "`type gcc | grep 'not found'`"
|
|
1719 then CC=gcc
|
|
1720 else CC=cc
|
|
1721 fi
|
|
1722 fi
|
|
1723 ;;
|
|
1724 m88k-motorola-sysv4* )
|
|
1725 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
|
|
1726 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
|
|
1727 # I hope there are not other 4.0 versions for this machine
|
|
1728 # which really need usg5-4 instead.
|
|
1729 machine=delta88k opsys=usg5-4-2
|
|
1730 ;;
|
|
1731 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
|
|
1732 machine=delta88k opsys=usg5-3
|
|
1733 ;;
|
|
1734
|
|
1735 ## Dual machines
|
|
1736 m68*-dual-sysv* )
|
|
1737 machine=dual opsys=usg5-2
|
|
1738 ;;
|
|
1739 m68*-dual-uniplus* )
|
|
1740 machine=dual opsys=unipl5-2
|
|
1741 ;;
|
|
1742
|
|
1743 ## Elxsi 6400
|
|
1744 elxsi-elxsi-sysv* )
|
|
1745 machine=elxsi opsys=usg5-2
|
|
1746 ;;
|
|
1747
|
|
1748 ## Encore machines
|
|
1749 ns16k-encore-bsd* )
|
|
1750 machine=ns16000 opsys=umax
|
|
1751 ;;
|
|
1752
|
|
1753 ## The GEC 93 - apparently, this port isn't really finished yet.
|
|
1754
|
|
1755 ## Gould Power Node and NP1
|
|
1756 pn-gould-bsd4.2* )
|
|
1757 machine=gould opsys=bsd4-2
|
|
1758 ;;
|
|
1759 pn-gould-bsd4.3* )
|
|
1760 machine=gould opsys=bsd4-3
|
|
1761 ;;
|
|
1762 np1-gould-bsd* )
|
|
1763 machine=gould-np1 opsys=bsd4-3
|
|
1764 ;;
|
|
1765
|
|
1766 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
|
|
1767 ## as far as XEmacs is concerned).
|
|
1768 m88k-harris-cxux* )
|
|
1769 # Build needs to be different on 7.0 and later releases
|
|
1770 case "`uname -r`" in
|
|
1771 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
|
1772 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
|
1773 esac
|
|
1774 NON_GNU_CPP="/lib/cpp"
|
|
1775 ;;
|
|
1776 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
|
|
1777 m68k-harris-cxux* )
|
|
1778 machine=nh3000 opsys=cxux
|
|
1779 ;;
|
|
1780 ## Harris power pc NightHawk running Power UNIX (Series 6000)
|
|
1781 powerpc-harris-powerunix )
|
|
1782 machine=nh6000 opsys=powerunix
|
|
1783 NON_GNU_CPP="cc -Xo -E -P"
|
|
1784 ;;
|
|
1785
|
|
1786 ## Honeywell XPS100
|
|
1787 xps*-honeywell-sysv* )
|
|
1788 machine=xps100 opsys=usg5-2
|
|
1789 ;;
|
|
1790
|
|
1791 ## HP 9000 series 200 or 300
|
|
1792 m68*-hp-bsd* )
|
|
1793 machine=hp9000s300 opsys=bsd4-3
|
|
1794 ;;
|
|
1795 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
|
|
1796 m68*-hp-hpux* )
|
|
1797 NON_GNU_CPP="cc -Aa -E"
|
|
1798 NON_GNU_CC="cc -Aa"
|
|
1799 case "`uname -r`" in
|
|
1800 ## Someone's system reports A.B8.05 for this.
|
|
1801 ## I wonder what other possibilities there are.
|
|
1802 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
|
|
1803 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
|
|
1804 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
|
|
1805 *.10.* ) machine=hp9000s300 opsys=hpux10 ;;
|
|
1806 *) machine=hp9000s300 opsys=hpux ;;
|
|
1807 esac
|
|
1808 ;;
|
|
1809
|
|
1810 ## HP 9000 series 700 and 800, running HP/UX
|
|
1811 ## XEmacs changes here for shared.
|
|
1812 hppa*-hp-hpux7* )
|
|
1813 machine=hp800 opsys=hpux NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1814 ;;
|
|
1815 hppa*-hp-hpux8shr* )
|
|
1816 machine=hp800 opsys=hpux8shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1817 ;;
|
|
1818 hppa*-hp-hpux8* )
|
|
1819 machine=hp800 opsys=hpux8 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1820 ;;
|
|
1821 hppa*-hp-hpux9shr* )
|
|
1822 machine=hp800 opsys=hpux9shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1823 ;;
|
|
1824 hppa*-hp-hpux9* )
|
|
1825 machine=hp800 opsys=hpux9 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1826 ;;
|
|
1827 hppa*-hp-hpux10shr* )
|
|
1828 machine=hp800 opsys=hpux10shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1829 ;;
|
|
1830 hppa*-hp-hpux10* )
|
|
1831 machine=hp800 opsys=hpux10 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1832 ;;
|
|
1833
|
|
1834 ## HP 9000 series 700 and 800, running HP/UX
|
|
1835 hppa*-hp-hpux* )
|
|
1836 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1837 ## Cross-compilation? Nah!
|
|
1838 case "`uname -r`" in
|
|
1839 ## Someone's system reports A.B8.05 for this.
|
|
1840 ## I wonder what other possibilities there are.
|
|
1841 *.B8.* ) machine=hp800 opsys=hpux8 ;;
|
|
1842 *.08.* ) machine=hp800 opsys=hpux8 ;;
|
|
1843 *.09.* ) machine=hp800 opsys=hpux9 ;;
|
|
1844 *.10.* ) machine=hp800 opsys=hpux10 ;;
|
|
1845 *) machine=hp800 opsys=hpux ;;
|
|
1846 esac
|
|
1847 ;;
|
|
1848 hppa-*-nextstep* )
|
|
1849 machine=hp800 opsys=nextstep
|
|
1850 ;;
|
|
1851
|
|
1852 ## Orion machines
|
|
1853 orion-orion-bsd* )
|
|
1854 machine=orion opsys=bsd4-2
|
|
1855 ;;
|
|
1856 clipper-orion-bsd* )
|
|
1857 machine=orion105 opsys=bsd4-2
|
|
1858 ;;
|
|
1859
|
|
1860 ## IBM machines
|
|
1861 i[3-9]86-ibm-aix1.1* )
|
|
1862 machine=ibmps2-aix opsys=usg5-2-2
|
|
1863 ;;
|
|
1864 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* )
|
|
1865 machine=ibmps2-aix opsys=usg5-3
|
|
1866 ;;
|
|
1867 i370-ibm-aix*)
|
|
1868 machine=ibm370aix opsys=usg5-3
|
|
1869 ;;
|
|
1870 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
|
|
1871 machine=ibmrs6000 opsys=aix3-1
|
|
1872 ;;
|
|
1873 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
|
|
1874 machine=ibmrs6000 opsys=aix3-2-5
|
|
1875 ;;
|
|
1876 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
|
|
1877 machine=ibmrs6000 opsys=aix4-1
|
|
1878 ;;
|
|
1879 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
|
|
1880 machine=ibmrs6000 opsys=aix4
|
|
1881 ;;
|
|
1882 rs6000-ibm-aix* | powerpc-ibm-aix* )
|
|
1883 machine=ibmrs6000 opsys=aix3-2
|
|
1884 ;;
|
|
1885 romp-ibm-bsd4.3* )
|
|
1886 machine=ibmrt opsys=bsd4-3
|
|
1887 ;;
|
|
1888 romp-ibm-bsd4.2* )
|
|
1889 machine=ibmrt opsys=bsd4-2
|
|
1890 ;;
|
|
1891 romp-ibm-aos4.3* )
|
|
1892 machine=ibmrt opsys=bsd4-3
|
|
1893 ;;
|
|
1894 romp-ibm-aos4.2* )
|
|
1895 machine=ibmrt opsys=bsd4-2
|
|
1896 ;;
|
|
1897 romp-ibm-aos* )
|
|
1898 machine=ibmrt opsys=bsd4-3
|
|
1899 ;;
|
|
1900 romp-ibm-bsd* )
|
|
1901 machine=ibmrt opsys=bsd4-3
|
|
1902 ;;
|
|
1903 romp-ibm-aix* )
|
|
1904 machine=ibmrt-aix opsys=usg5-2-2
|
|
1905 ;;
|
|
1906 romp-ibm-mach* )
|
|
1907 machine=ibmrt opsys=mach-bsd4-3
|
|
1908 ;;
|
|
1909
|
|
1910 ## Integrated Solutions `Optimum V'
|
|
1911 m68*-isi-bsd4.2* )
|
|
1912 machine=isi-ov opsys=bsd4-2
|
|
1913 ;;
|
|
1914 m68*-isi-bsd4.3* )
|
|
1915 machine=isi-ov opsys=bsd4-3
|
|
1916 ;;
|
|
1917
|
|
1918 ## Intel 386 machines where we do care about the manufacturer
|
|
1919 i[3-9]86-intsys-sysv* )
|
|
1920 machine=is386 opsys=usg5-2-2
|
|
1921 ;;
|
|
1922
|
|
1923 ## Prime EXL
|
|
1924 i[3-9]86-prime-sysv* )
|
|
1925 machine=i386 opsys=usg5-3
|
|
1926 ;;
|
|
1927
|
|
1928 ## Sequent Symmetry running Dynix
|
|
1929 i[3-9]86-sequent-bsd* )
|
|
1930 machine=symmetry opsys=bsd4-3
|
|
1931 ;;
|
|
1932
|
|
1933 ## Sequent Symmetry running DYNIX/ptx
|
|
1934 ## Use the old cpp rather than the newer ANSI one.
|
|
1935 i[3-9]86-sequent-ptx* )
|
|
1936 machine=sequent-ptx opsys=ptx
|
|
1937 NON_GNU_CPP="/lib/cpp"
|
|
1938 ;;
|
|
1939
|
|
1940 ## Unspecified sysv on an ncr machine defaults to svr4.2.
|
|
1941 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
|
|
1942 i[3-9]86-ncr-sysv* )
|
|
1943 machine=ncr386 opsys=usg5-4-2
|
|
1944 ;;
|
|
1945
|
|
1946 ## Intel Paragon OSF/1
|
|
1947 i860-intel-osf1* )
|
|
1948 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
|
|
1949 ;;
|
|
1950
|
|
1951 ## Intel 860
|
|
1952 i860-*-sysv4* )
|
|
1953 machine=i860 opsys=usg5-4
|
|
1954 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
|
|
1955 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
|
|
1956 ;;
|
|
1957
|
|
1958 ## Masscomp machines
|
|
1959 m68*-masscomp-rtu* )
|
|
1960 machine=masscomp opsys=rtu
|
|
1961 ;;
|
|
1962
|
|
1963 ## Megatest machines
|
|
1964 m68*-megatest-bsd* )
|
|
1965 machine=mega68 opsys=bsd4-2
|
|
1966 ;;
|
|
1967
|
|
1968 ## Workstations sold by MIPS
|
|
1969 ## This is not necessarily all workstations using the MIPS processor -
|
|
1970 ## Irises are produced by SGI, and DECstations by DEC.
|
|
1971
|
|
1972 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
|
|
1973 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
|
|
1974 ## it gives for choosing between the alternatives seems to be "Use
|
|
1975 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
|
|
1976 ## the BSD world." I'll assume that these are instructions for
|
|
1977 ## handling two odd situations, and that every other situation
|
|
1978 ## should use mips.h and usg5-2-2, they being listed first.
|
|
1979 mips-mips-usg* )
|
|
1980 machine=mips4
|
|
1981 ## Fall through to the general code at the bottom to decide on the OS.
|
|
1982 ;;
|
|
1983 mips-mips-riscos4* )
|
|
1984 machine=mips4 opsys=bsd4-3
|
|
1985 NON_GNU_CC="cc -systype bsd43"
|
|
1986 NON_GNU_CPP="cc -systype bsd43 -E"
|
|
1987 ;;
|
|
1988 mips-mips-riscos5* )
|
|
1989 machine=mips4 opsys=riscos5
|
|
1990 NON_GNU_CC="cc -systype bsd43"
|
|
1991 NON_GNU_CPP="cc -systype bsd43 -E"
|
|
1992 ;;
|
|
1993 mips-mips-bsd* )
|
|
1994 machine=mips opsys=bsd4-3
|
|
1995 ;;
|
|
1996 mips-mips-* )
|
|
1997 machine=mips opsys=usg5-2-2
|
|
1998 ;;
|
|
1999
|
|
2000 ## NeXT
|
|
2001 m68*-next-* | m68k-*-nextstep* )
|
|
2002 machine=m68k opsys=nextstep
|
|
2003 ;;
|
|
2004
|
|
2005 ## The complete machine from National Semiconductor
|
|
2006 ns32k-ns-genix* )
|
|
2007 machine=ns32000 opsys=usg5-2
|
|
2008 ;;
|
|
2009
|
|
2010 ## NCR machines
|
|
2011 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
|
|
2012 machine=tower32 opsys=usg5-2-2
|
|
2013 ;;
|
|
2014 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
|
|
2015 machine=tower32v3 opsys=usg5-3
|
|
2016 ;;
|
|
2017
|
|
2018 ## Nixdorf Targon 31
|
|
2019 m68*-nixdorf-sysv* )
|
|
2020 machine=targon31 opsys=usg5-2-2
|
|
2021 ;;
|
|
2022
|
|
2023 ## Nu (TI or LMI)
|
|
2024 m68*-nu-sysv* )
|
|
2025 machine=nu opsys=usg5-2
|
|
2026 ;;
|
|
2027
|
|
2028 ## Plexus
|
|
2029 m68*-plexus-sysv* )
|
|
2030 machine=plexus opsys=usg5-2
|
|
2031 ;;
|
|
2032
|
|
2033 ## Pyramid machines
|
|
2034 ## I don't really have any idea what sort of processor the Pyramid has,
|
|
2035 ## so I'm assuming it is its own architecture.
|
|
2036 pyramid-pyramid-bsd* )
|
|
2037 machine=pyramid opsys=bsd4-2
|
|
2038 ;;
|
|
2039
|
|
2040 ## Sequent Balance
|
|
2041 ns32k-sequent-bsd4.2* )
|
|
2042 machine=sequent opsys=bsd4-2
|
|
2043 ;;
|
|
2044 ns32k-sequent-bsd4.3* )
|
|
2045 machine=sequent opsys=bsd4-3
|
|
2046 ;;
|
|
2047
|
|
2048 ## Siemens Nixdorf
|
|
2049 mips-siemens-sysv* | mips-sni-sysv*)
|
|
2050 machine=mips-siemens opsys=usg5-4
|
|
2051 NON_GNU_CC=/usr/ccs/bin/cc
|
|
2052 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
2053 ;;
|
|
2054
|
|
2055 ## Silicon Graphics machines
|
|
2056 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
|
|
2057 m68*-sgi-iris3.5* )
|
|
2058 machine=irist opsys=iris3-5
|
|
2059 ;;
|
|
2060 m68*-sgi-iris3.6* | m68*-sgi-iris*)
|
|
2061 machine=irist opsys=iris3-6
|
|
2062 ;;
|
|
2063 ## Iris 4D
|
|
2064 mips-sgi-irix3.* )
|
|
2065 machine=iris4d opsys=irix3-3
|
|
2066 ;;
|
|
2067 mips-sgi-irix4.* )
|
|
2068 machine=iris4d opsys=irix4-0
|
|
2069 ;;
|
|
2070 mips-sgi-irix6* )
|
|
2071 machine=iris4d opsys=irix6-0 NON_GNU_CPP=/lib/cpp
|
|
2072 ;;
|
|
2073 mips-sgi-irix5.[3-9]* )
|
|
2074 machine=iris4d opsys=irix5-3
|
|
2075 ;;
|
|
2076 mips-sgi-irix5.2* )
|
|
2077 machine=iris4d opsys=irix5-2
|
|
2078 ;;
|
|
2079 mips-sgi-irix5.1* )
|
|
2080 machine=iris4d opsys=irix5-1
|
|
2081 ;;
|
|
2082 mips-sgi-irix5.* | mips-sgi-irix* )
|
|
2083 machine=iris4d opsys=irix5-0
|
|
2084 ;;
|
|
2085
|
|
2086 ## SONY machines
|
|
2087 m68*-sony-bsd4.2* )
|
|
2088 machine=news opsys=bsd4-2
|
|
2089 ;;
|
|
2090 m68*-sony-bsd4.3* )
|
|
2091 machine=news opsys=bsd4-3
|
|
2092 ;;
|
|
2093 m68*-sony-newsos3* | m68*-sony-news3*)
|
|
2094 machine=news opsys=bsd4-3
|
|
2095 ;;
|
|
2096 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
|
|
2097 machine=news-risc opsys=bsd4-3
|
|
2098 ;;
|
|
2099 mips-sony-news* )
|
|
2100 machine=news-risc opsys=newsos5
|
|
2101 ;;
|
|
2102
|
|
2103 ## Stride
|
|
2104 m68*-stride-sysv* )
|
|
2105 machine=stride opsys=usg5-2
|
|
2106 ;;
|
|
2107
|
|
2108 ## Suns
|
|
2109 sparc-*-linux* )
|
|
2110 machine=sparc opsys=linux
|
|
2111 ;;
|
|
2112
|
|
2113 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
2114 # Hardware type
|
|
2115 case "${canonical}" in
|
|
2116 m68*-sunos1* ) machine=sun1 ;;
|
|
2117 m68*-sunos2* ) machine=sun2 ;;
|
|
2118 m68* ) machine=sun3 ;;
|
|
2119 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
2120 i[3-9]86-*-* ) machine=intel386 ;;
|
|
2121 rs6000* ) machine=rs6000 ;;
|
|
2122 sparc* ) machine=sparc ;;
|
|
2123 powerpc* ) machine=powerpc ;;
|
|
2124 * ) unported=yes ;;
|
|
2125 esac
|
|
2126
|
|
2127 # Make `canonical' even more so.
|
|
2128 case "${canonical}" in *-sunos5*)
|
|
2129 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";
|
|
2130 esac
|
|
2131
|
|
2132 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
|
|
2133 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed
|
|
2134 # But, SunOS 5.6 no longer needs dynodump because it has a similar
|
|
2135 # function integrated.
|
|
2136 case "${canonical}" in
|
|
2137 *-sunos4* )
|
|
2138 test -x /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
2139 *-solaris2.6* )
|
|
2140 test -x /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
2141 RANLIB=':'
|
|
2142 need_dynodump=no ;;
|
|
2143 *-solaris2* )
|
|
2144 test -x /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
2145 RANLIB=':'
|
|
2146 need_dynodump=yes ;;
|
|
2147 esac
|
|
2148
|
|
2149 # (NON)?_GCC_TEST_OPTIONS variables are unused.
|
|
2150 # What were they supposed to do, exactly?
|
|
2151 # case "${canonical}" in
|
|
2152 # *-sunos4* ) GCC_TEST_OPTIONS=-static NON_GCC_TEST_OPTIONS=-bstatic ;;
|
|
2153 # esac
|
|
2154
|
|
2155 # FSF 19.31 has NON_GNU_CPP=/usr/lib/cpp for SunOS 4.x.
|
|
2156
|
|
2157 case "${canonical}" in
|
|
2158 ## The Sun386 didn't get past 4.0.
|
|
2159 i[3-9]86-*-sunos4 ) opsys=sunos4-0 ;;
|
|
2160 *-sunos4shr* ) opsys=sunos4-0shr ;;
|
|
2161 *-sunos4-0shr* ) opsys=sunos4-0shr ;;
|
|
2162 *-sunos4-1shr* ) opsys=sunos4-1shr ;;
|
|
2163 *-sunos4-1-2shr* ) opsys=sunos4-1-2shr ;;
|
|
2164 *-sunos4-1-[3-9]shr* ) opsys=sunos4-1-3shr ;;
|
2
|
2165 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
2166 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
|
2167 *-sunos4.1.[3-9]* ) opsys=sunos4-1-3 ;;
|
0
|
2168 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
2169
|
|
2170 *-solaris2.3* ) opsys=sol2-3 ;;
|
|
2171 *-solaris2.4* ) opsys=sol2-4 ;;
|
|
2172 *-solaris2.5* ) opsys=sol2-5 ;;
|
|
2173 *-solaris2.[6-9]* ) opsys=sol2-6 ;;
|
|
2174 *-solaris* ) opsys=sol2 ;;
|
|
2175 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
2176 * ) opsys=bsd4-2 ;;
|
|
2177 esac
|
|
2178 ## Watch out for a compiler that we know will not work.
|
|
2179 case "${canonical}" in
|
|
2180 *-solaris* | *-sunos5* )
|
|
2181 if [ "x$CC" = x/usr/ucb/cc ]; then
|
|
2182 ## /usr/ucb/cc doesn't work;
|
|
2183 ## we should find some other compiler that does work.
|
|
2184 unset CC
|
|
2185 fi
|
|
2186 ;;
|
|
2187 *) ;;
|
|
2188 esac
|
|
2189 ;;
|
|
2190 sparc-*-nextstep* )
|
|
2191 machine=sparc opsys=nextstep
|
|
2192 ;;
|
|
2193
|
|
2194 ## Tadpole 68k
|
|
2195 m68*-tadpole-sysv* )
|
|
2196 machine=tad68k opsys=usg5-3
|
|
2197 ;;
|
|
2198
|
|
2199 ## Tahoe machines
|
|
2200 tahoe-tahoe-bsd4.2* )
|
|
2201 machine=tahoe opsys=bsd4-2
|
|
2202 ;;
|
|
2203 tahoe-tahoe-bsd4.3* )
|
|
2204 machine=tahoe opsys=bsd4-3
|
|
2205 ;;
|
|
2206
|
|
2207 ## Tandem Integrity S2
|
|
2208 mips-tandem-sysv* )
|
|
2209 machine=tandem-s2 opsys=usg5-3
|
|
2210 ;;
|
|
2211
|
|
2212 ## Tektronix XD88
|
|
2213 m88k-tektronix-sysv3* )
|
|
2214 machine=tekxd88 opsys=usg5-3
|
|
2215 ;;
|
|
2216
|
|
2217 ## Tektronix 16000 box (6130?)
|
|
2218 ns16k-tektronix-bsd* )
|
|
2219 machine=ns16000 opsys=bsd4-2
|
|
2220 ;;
|
|
2221 ## Tektronix 4300
|
|
2222 ## src/m/tek4300.h hints that this is a m68k machine.
|
|
2223 m68*-tektronix-bsd* )
|
|
2224 machine=tek4300 opsys=bsd4-3
|
|
2225 ;;
|
|
2226
|
|
2227 ## Titan P2 or P3
|
|
2228 ## We seem to have lost the machine-description file titan.h!
|
|
2229 titan-titan-sysv* )
|
|
2230 machine=titan opsys=usg5-3
|
|
2231 ;;
|
|
2232
|
|
2233 ## Ustation E30 (SS5E)
|
|
2234 m68*-unisys-uniplus* )
|
|
2235 machine=ustation opsystem=unipl5-2
|
|
2236 ;;
|
|
2237
|
|
2238 ## Vaxen.
|
|
2239 vax-dec-* )
|
|
2240 machine=vax
|
|
2241 case "${canonical}" in
|
|
2242 *-bsd4.1* ) opsys=bsd4-1 ;;
|
|
2243 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
2244 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
|
|
2245 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
2246 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
2247 *-vms* ) opsys=vms ;;
|
|
2248 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
2249 * ) unported=yes
|
|
2250 esac
|
|
2251 ;;
|
|
2252
|
|
2253 ## Whitechapel MG1
|
|
2254 ns16k-whitechapel-* )
|
|
2255 machine=mg1
|
|
2256 ## We don't know what sort of OS runs on these; we'll let the
|
|
2257 ## operating system guessing code below try.
|
|
2258 ;;
|
|
2259
|
|
2260 ## Wicat
|
|
2261 m68*-wicat-sysv* )
|
|
2262 machine=wicat opsys=usg5-2
|
|
2263 ;;
|
|
2264
|
|
2265 ## Intel 386 machines where we don't care about the manufacturer
|
|
2266 i[3-9]86-*-* )
|
|
2267 machine=intel386
|
|
2268 case "${canonical}" in
|
|
2269 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
|
2270 *-isc2.2* ) opsys=isc2-2 ;;
|
|
2271 *-isc4.0* ) opsys=isc4-0 ;;
|
|
2272 *-isc4.* ) opsys=isc4-1
|
|
2273 GCC_TEST_OPTIONS=-posix
|
|
2274 NON_GCC_TEST_OPTIONS=-Xp
|
|
2275 ;;
|
|
2276 *-isc* ) opsys=isc3-0 ;;
|
|
2277 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
|
|
2278 *-esix* ) opsys=esix ;;
|
|
2279 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
2280 *-xenix* ) opsys=xenix ;;
|
|
2281 *-linux* ) opsys=linux ;;
|
|
2282 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
|
|
2283 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
|
2284 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
2285 *-bsdi2* ) opsys=bsdos2 ;;
|
|
2286 *-sco3.2v5* ) opsys=sco5 ;
|
|
2287 ## This is a pain. Like the current USL cc, SCO's cc -E
|
|
2288 ## tokenizes as it preprocesses, making configure very
|
|
2289 ## unhappy. Unfortunately, /lib/cpp doesn't understand
|
|
2290 ## flags like "-b elf", so we have to cheat in order to
|
|
2291 ## pick up the right defines for UNEXEC from the s-file.
|
|
2292 ## 01/05/95 robertl@dgii.com
|
|
2293 if [ "${dynamic}" = "yes" ]; then
|
|
2294 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
|
|
2295 else
|
|
2296 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
|
|
2297 fi ;;
|
|
2298 *-386bsd* ) opsys=386bsd ;;
|
|
2299 *-freebsd* ) opsys=freebsd ;;
|
|
2300 *-nextstep* ) opsys=nextstep ;;
|
|
2301 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
|
|
2302 esac
|
|
2303 ;;
|
|
2304
|
|
2305 ## Linux/68k
|
|
2306 m68k-*-linux* )
|
|
2307 machine=m68k opsys=linux
|
|
2308 ;;
|
|
2309
|
|
2310 * )
|
|
2311 unported=yes
|
|
2312 ;;
|
|
2313 esac
|
|
2314
|
|
2315 ### If the code above didn't choose an operating system, just choose
|
|
2316 ### an operating system based on the configuration name. You really
|
|
2317 ### only want to use this when you have no idea what the right
|
|
2318 ### operating system is; if you know what operating systems a machine
|
|
2319 ### runs, it's cleaner to make it explicit in the case statement
|
|
2320 ### above.
|
|
2321 if [ x"${opsys}" = x ]; then
|
|
2322 case "${canonical}" in
|
|
2323 *-gnu* ) opsys=gnu ;;
|
|
2324 *-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
2325 *-bsd4.2 ) opsys=bsd4-2 ;;
|
|
2326 *-bsd4.3 ) opsys=bsd4-3 ;;
|
|
2327 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
|
|
2328 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
|
|
2329 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
2330 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
|
|
2331 *-sysv4.1* | *-sysvr4.1* )
|
|
2332 NON_GNU_CPP=/usr/lib/cpp
|
|
2333 opsys=usg5-4 ;;
|
|
2334 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
|
2335 if [ x$NON_GNU_CPP = x ]; then
|
|
2336 if [ -f /usr/ccs/lib/cpp ]; then
|
|
2337 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
2338 else
|
|
2339 NON_GNU_CPP=/lib/cpp
|
|
2340 fi
|
|
2341 fi
|
|
2342 opsys=usg5-4-2 ;;
|
|
2343 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
2344 * )
|
|
2345 unported=yes
|
|
2346 ;;
|
|
2347 esac
|
|
2348 fi
|
|
2349
|
|
2350 if test "x$RANLIB" = x; then
|
|
2351 RANLIB=ranlib
|
|
2352 fi
|
|
2353
|
|
2354 if test ${unported} = yes; then
|
|
2355 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
|
|
2356 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
|
|
2357 ) >&2
|
|
2358 exit 1
|
|
2359 fi
|
|
2360
|
|
2361 if [ "${dynamic}" = "yes" ]; then
|
|
2362 case "${opsys}" in
|
6
|
2363 hpux8 ) opsys=hpux8-shr ;;
|
|
2364 hpux9 ) opsys=hpux9-shr ;;
|
|
2365 hpux10 ) opsys=hpux10-shr ;;
|
|
2366 sunos4-0 ) opsys=sunos4-0-shr ;;
|
|
2367 sunos4-1 ) opsys=sunos4-1-shr ;;
|
|
2368 sunos4-1-2 ) opsys=sunos4-1-2-shr ;;
|
|
2369 sunos4-1-3 ) opsys=sunos4-1-3-shr ;;
|
0
|
2370 sco5 ) opsys=sco5-shr ;;
|
|
2371 esac
|
|
2372 elif [ "${dynamic}" = "no" ]; then
|
|
2373 case "${opsys}" in
|
|
2374 sol2 ) opsys=sol2-static ;;
|
|
2375 sol2-3 ) opsys=sol2-3-static ;;
|
|
2376 sol2-4 ) opsys=sol2-4-static ;;
|
|
2377 decosf1-3 ) opsys=decosf1-3-static ;;
|
|
2378 decosf3-1 ) opsys=decosf3-1-static ;;
|
|
2379 decosf3-2 ) opsys=decosf3-2-static ;;
|
|
2380 linux ) opsys=linux-static ;;
|
|
2381 esac
|
|
2382 fi
|
|
2383
|
|
2384 dynodump_arch=''
|
|
2385 if [ "${need_dynodump}" = "yes" ]; then
|
|
2386 case "${canonical}" in
|
|
2387 sparc* ) dynodump_arch=sparc ;;
|
|
2388 powerpc* ) dynodump_arch=ppc ;;
|
|
2389 i[3-9]86* ) dynodump_arch=i386 ;;
|
|
2390 esac
|
|
2391 fi
|
|
2392
|
|
2393 machfile="m/${machine}.h"
|
|
2394 opsysfile="s/${opsys}.h"
|
|
2395
|
|
2396
|
|
2397 ############################################################################
|
|
2398 # #
|
|
2399 # Determine the compiler, set up for feature testing #
|
|
2400 # #
|
|
2401 ############################################################################
|
|
2402
|
|
2403 ]
|
|
2404 dnl -----------------------------------------------------------------------
|
|
2405 dnl Let's do a couple of macro (re)definitions.
|
|
2406 dnl
|
|
2407 dnl First we redefine AC_TEST_CPP so that we can see the error output
|
|
2408 dnl from preprocessor runs. This definition is identical to the standard
|
|
2409 dnl one supplied by Autoconf 1.11 extra for the extra_verbose check.
|
|
2410 dnl
|
|
2411 dnl Note that we *must* include the brackets around the macro definition
|
|
2412 dnl name here. Autoconf has redefined the quoting characters to be brackets,
|
|
2413 dnl and if we don't supply them, the original definition will get
|
|
2414 dnl substituted in place of the macro name!
|
|
2415 dnl
|
|
2416 define([AC_TEST_CPP],
|
|
2417 [AC_REQUIRE_CPP()dnl
|
|
2418 cat > conftest.${ac_ext} <<EOF
|
|
2419 #include "confdefs.h"
|
|
2420 [$1]
|
|
2421 EOF
|
|
2422 # Some shells (Coherent) do redirections in the wrong order, so need
|
|
2423 # the parens.
|
|
2424 # The exec was added by Mly to make this work under BSDI
|
|
2425 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
2426 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
|
|
2427 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
2428 echo "$ac_err"
|
|
2429 fi
|
|
2430 if test -z "$ac_err"; then
|
|
2431 ifelse([$2], , :, [rm -rf conftest*
|
|
2432 $2
|
|
2433 ])
|
|
2434 ifelse([$3], , , [else
|
|
2435 rm -rf conftest*
|
|
2436 $3
|
|
2437 ])dnl
|
|
2438 fi
|
|
2439 rm -f conftest*])dnl
|
|
2440 dnl
|
|
2441 dnl Second, a macro of our own:
|
|
2442 dnl Subroutine to find version of X being used
|
|
2443 dnl It can't use xmkmf because the first version in the user's path
|
|
2444 dnl may not belong to the version of X that is being built with
|
|
2445 define(AC_FIND_X_VERSION,
|
|
2446 [AC_CHECKING(the version of X11 being used)
|
|
2447 cat > conftest.${ac_ext} <<EOF
|
|
2448 #include <X11/Intrinsic.h>
|
|
2449 int main() {
|
|
2450 #if (XlibSpecificationRelease == 4)
|
|
2451 printf ("X11R4\n");
|
|
2452 #elif (XlibSpecificationRelease == 5)
|
|
2453 printf ("X11R5\n");
|
|
2454 #elif (XlibSpecificationRelease == 6)
|
|
2455 printf ("X11R6\n");
|
|
2456 #elif (XtSpecificationRelease == 4)
|
|
2457 printf ("X11R4\n");
|
|
2458 #endif
|
|
2459 return 0;
|
|
2460 }
|
|
2461 EOF
|
|
2462 dnl We need to run this which will prevent cross-configuring. But since
|
|
2463 dnl we can't do that anyhow, oh darn.
|
|
2464 ac_save_LIBS="${LIBS}"
|
|
2465 LIBS="${LIBS} ${DEFS}"
|
|
2466 if eval $ac_compile; then
|
|
2467 ac_find_x_version=`./conftest`
|
|
2468 [
|
|
2469 if [ "$ac_find_x_version" = "X11R4" ]; then
|
|
2470 ] AC_DEFINE(THIS_IS_X11R4) [
|
|
2471 elif [ "$ac_find_x_version" = "X11R5" ]; then
|
|
2472 ] AC_DEFINE(THIS_IS_X11R5) [
|
|
2473 elif [ "$ac_find_x_version" = "X11R6" ]; then
|
|
2474 ] AC_DEFINE(THIS_IS_X11R6) [
|
|
2475 fi
|
|
2476 ]
|
|
2477 fi
|
|
2478 LIBS=$ac_save_LIBS
|
|
2479 rm -f conftest*]
|
|
2480 )dnl
|
|
2481 dnl -----------------------------------------------------------------------
|
|
2482 AC_LANG_C
|
|
2483 AC_PREPARE(lisp)
|
|
2484 AC_CONFIG_HEADER(src/config.h)
|
|
2485
|
|
2486 [
|
|
2487
|
|
2488 if [ "${extra_verbose}" = "yes" ] ; then
|
|
2489 # This is identical to the version that A\C_LANG_C generates except that
|
|
2490 # it omits the redirection of all output to /dev/null.
|
|
2491 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS'
|
|
2492 fi
|
|
2493
|
|
2494 #### Choose a compiler.
|
|
2495 if [ "x$CC" = x ] ; then
|
|
2496 cc_specified=1
|
|
2497 fi
|
|
2498
|
|
2499 # Save the value of CFLAGS that the user specified.
|
|
2500 SPECIFIED_CFLAGS="$CFLAGS"
|
|
2501
|
|
2502 if [ "${with_gcc}" = "yes" ] ; then
|
|
2503 CC="${compiler-gcc}"
|
|
2504 GCC=1
|
|
2505 elif [ "${with_lcc}" = "yes" ] ; then
|
|
2506 CC="${compiler-lcc}"
|
|
2507 dash_r_space=' ' # this bullshit is here because lcc for solaris
|
|
2508 # will not accept -Rargument.
|
|
2509 # It needs -R argument instead. Yuck yuck yuck.
|
|
2510 if [ "x$NON_GNU_CPP" = x ] ; then
|
|
2511 NON_GNU_CPP="yes" # this is handled specially below...
|
|
2512 fi
|
|
2513 elif [ "${compiler}" != "" ] ; then
|
|
2514 CC="${compiler}"
|
|
2515 elif [ "${with_gcc}" = "no" ] ; then
|
|
2516 CC="cc"
|
|
2517 elif [ "${with_lcc}" = "no" ] ; then
|
|
2518 if [ "x$CC" = x ]
|
|
2519 then CC=cc;
|
|
2520 else true;
|
|
2521 fi
|
|
2522 else
|
|
2523 case "${canonical}" in
|
|
2524 * )
|
|
2525 ] AC_PROG_CC [
|
|
2526 if [ "${CC}" = "gcc" ] ; then
|
|
2527 with_gcc="yes"
|
|
2528 GCC=1
|
|
2529 fi
|
|
2530 ;;
|
|
2531 esac
|
|
2532 fi
|
|
2533
|
|
2534 # On Suns, sometimes $CPP names a directory.
|
|
2535 if [ -n "$CPP" ] && [ -d "$CPP" ] ; then
|
|
2536 CPP=
|
|
2537 fi
|
|
2538
|
|
2539 #### Some systems specify a CPP to use unless we are using GCC.
|
|
2540 #### Now that we know whether we are using GCC, we can decide whether
|
|
2541 #### to use that one.
|
6
|
2542
|
|
2543 #### Also, GNU CPP by default defines certain add'l macros that could
|
|
2544 #### hurt us when generating makefiles. We want to switch off these
|
|
2545 #### add'l macros for the purpose of generating makefiles.
|
|
2546
|
|
2547 CPPFLAGS_MAKEFILEGEN=""
|
|
2548 if [ "x$GCC" = x1 ] ; then
|
|
2549 CPPFLAGS_MAKEFILEGEN=" -undef "
|
|
2550 elif [ "x$NON_GNU_CPP" = x ] ; then
|
|
2551 true
|
0
|
2552 else
|
|
2553 if [ "x$CPP" = x ]; then
|
|
2554 if [ "${with_lcc}" = "yes" ] && [ "${NON_GNU_CPP}" = "yes" ] ; then
|
|
2555 CPP='gcc -E -traditional' # cross fingers and hope it's there....
|
|
2556 else
|
|
2557 CPP="$NON_GNU_CPP"
|
|
2558 fi
|
|
2559 fi
|
|
2560 fi
|
|
2561
|
|
2562 #### Some systems specify a CC to use unless we are using GCC.
|
|
2563 #### Now that we know whether we are using GCC, we can decide whether
|
|
2564 #### to use that one.
|
|
2565 if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ]
|
|
2566 then true
|
|
2567 else
|
|
2568 CC="$NON_GNU_CC"
|
|
2569 fi
|
|
2570
|
|
2571 ## Huh? I commented out the following because it always enabled
|
|
2572 ## the "test" options, whatever the hell those are supposed to be
|
|
2573 ## for, and the result is that SunOS builds were always static.
|
|
2574
|
|
2575 #if [ x$GCC = x1 ] && [ "x$GCC_TEST_OPTIONS" != x ]
|
|
2576 #then
|
|
2577 # CC="$CC $GCC_TEST_OPTIONS"
|
|
2578 #fi
|
|
2579 #
|
|
2580 #if [ x$GCC = x ] && [ "x$NON_GCC_TEST_OPTIONS" != x ]
|
|
2581 #then
|
|
2582 # CC="$CC $NON_GCC_TEST_OPTIONS"
|
|
2583 #fi
|
|
2584
|
|
2585 ############################################################################
|
|
2586 # #
|
|
2587 # Do some misc autoconf-special tests #
|
|
2588 # #
|
|
2589 ############################################################################
|
|
2590
|
|
2591 #### Some other nice autoconf tests. If you add a test here which
|
|
2592 #### should make an entry in src/config.h, don't forget to add an
|
|
2593 #### #undef clause to src/config.h.in for autoconf to modify.
|
|
2594 ]
|
|
2595 dnl checks for programs
|
|
2596 AC_PROG_CPP
|
|
2597 [
|
|
2598 case "${canonical}" in
|
|
2599 *-sun-sunos* )
|
|
2600 if [ "${CPP}" = "acc -E" ] ; then
|
|
2601 CPP="acc -E -Xs"
|
|
2602 fi
|
|
2603 ;;
|
|
2604 esac
|
|
2605 ]
|
|
2606 AC_PROG_RANLIB
|
|
2607 AC_PROG_INSTALL
|
|
2608 AC_PROG_YACC
|
|
2609
|
|
2610 dnl checks for UNIX variants
|
|
2611 AC_AIX
|
|
2612
|
|
2613 dnl checks for header files
|
|
2614 AC_HAVE_HEADERS(mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h utime.h sys/wait.h libintl.h locale.h libgen.h linux/version.h)
|
|
2615 AC_STDC_HEADERS
|
|
2616 AC_TIME_WITH_SYS_TIME
|
|
2617 AC_SYS_SIGLIST_DECLARED
|
|
2618
|
|
2619 dnl Some systems have utime.h but don't declare the struct anyplace.
|
|
2620 AC_COMPILE_CHECK(struct utimbuf,
|
|
2621 [#ifdef TIME_WITH_SYS_TIME
|
|
2622 #include <sys/time.h>
|
|
2623 #include <time.h>
|
|
2624 #else
|
|
2625 #ifdef HAVE_SYS_TIME_H
|
|
2626 #include <sys/time.h>
|
|
2627 #else
|
|
2628 #include <time.h>
|
|
2629 #endif
|
|
2630 #endif
|
|
2631 #ifdef HAVE_UTIME_H
|
|
2632 #include <utime.h>
|
|
2633 #endif], [static struct utimbuf x; x.actime = x.modtime;],
|
|
2634 AC_DEFINE(HAVE_STRUCT_UTIMBUF))
|
|
2635
|
|
2636 dnl checks for typedefs
|
|
2637 AC_RETSIGTYPE
|
|
2638
|
|
2639 AC_COMPILE_CHECK(struct timeval,
|
|
2640 [#ifdef TIME_WITH_SYS_TIME
|
|
2641 #include <sys/time.h>
|
|
2642 #include <time.h>
|
|
2643 #else
|
|
2644 #ifdef HAVE_SYS_TIME_H
|
|
2645 #include <sys/time.h>
|
|
2646 #else
|
|
2647 #include <time.h>
|
|
2648 #endif
|
|
2649 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], [
|
|
2650 HAVE_TIMEVAL=yes
|
|
2651 AC_DEFINE(HAVE_TIMEVAL)],
|
|
2652 [HAVE_TIMEVAL=no])
|
|
2653
|
|
2654 dnl checks for structure members
|
|
2655 AC_STRUCT_TM
|
|
2656 AC_TIMEZONE
|
|
2657
|
|
2658 dnl checks for compiler characteristics
|
|
2659 AC_CONST
|
|
2660
|
|
2661 dnl check for Make feature
|
|
2662 AC_SET_MAKE
|
|
2663
|
|
2664 dnl check byte order
|
|
2665 AC_WORDS_BIGENDIAN
|
|
2666
|
|
2667 dnl check for long file names
|
|
2668 AC_LONG_FILE_NAMES
|
|
2669
|
|
2670 echo "checking for -xildoff compiler flag"
|
|
2671 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
2672 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
2673 :
|
|
2674 else
|
|
2675 AC_VERBOSE(defining NEED_XILDOFF)
|
|
2676 need_xildoff=yes
|
|
2677 fi
|
|
2678 fi
|
|
2679
|
|
2680 dnl other checks for UNIX variants
|
|
2681 [
|
|
2682 # What the hell was this doing here??????
|
|
2683 ### echo > confdefs.h # this gets nuked above...
|
|
2684
|
|
2685 ############################################################################
|
|
2686 # #
|
|
2687 # Choose a window system #
|
|
2688 # #
|
|
2689 ############################################################################
|
|
2690
|
|
2691 #### Choose a window system.
|
|
2692 echo "checking for specified window system"
|
|
2693
|
|
2694 window_system=''
|
|
2695 case "${with_x11}" in
|
|
2696 yes )
|
|
2697 window_system=${window_system}x11
|
|
2698 ;;
|
|
2699 no )
|
|
2700 window_system=${window_system}none
|
|
2701 esac
|
|
2702
|
|
2703 case "${window_system}" in
|
|
2704 "none" | "x11" ) ;;
|
|
2705 "" )
|
|
2706 # --x-includes or --x-libraries implies --with-x11.
|
|
2707 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
|
|
2708 window_system=x11
|
|
2709 else
|
|
2710 echo " No window system specified. Looking for X11."
|
|
2711 # If the user didn't specify a window system and we found X11, use it.
|
|
2712 if [ -r /usr/lib/libX11.a \
|
|
2713 -o -d /usr/include/X11 \
|
|
2714 -o -d /usr/X386/include \
|
|
2715 -o -d /usr/X11R6/include \
|
|
2716 -o -d ${x_includes}/X11 ]; then
|
|
2717 window_system=x11
|
|
2718 fi
|
|
2719 fi
|
|
2720 ;;
|
|
2721 * )
|
|
2722 echo "Don't specify a window system more than once." >&2
|
|
2723 exit 1
|
|
2724 ;;
|
|
2725 esac
|
|
2726
|
|
2727 case "${window_system}" in
|
|
2728 "" | "x11" )
|
|
2729 ### If the user hasn't specified where we should find X, try
|
|
2730 ### letting autoconf figure that out.
|
|
2731 if [ -z "${x_includes}" ] && [ -z "${x_libraries}" ]; then
|
|
2732 ]
|
|
2733 AC_FIND_X
|
|
2734 [
|
|
2735 fi
|
|
2736 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
|
|
2737 window_system=x11
|
|
2738 fi
|
|
2739 ;;
|
|
2740 esac
|
|
2741
|
|
2742 [ -z "${window_system}" ] && window_system=none
|
|
2743
|
|
2744 if [ "${window_system}" = "none" ]; then
|
|
2745 if [ "${with_tty}" != "yes" ]; then
|
|
2746 echo "No window system support, and no TTY support." >&2
|
|
2747 echo "Unable to proceed." >&2
|
|
2748 exit 1
|
|
2749 fi
|
|
2750 if [ "${with_epoch}" = "yes" ]; then
|
|
2751 ] AC_WARN(--with-epoch ignored: Not valid without X support) [
|
|
2752 with_epoch='no'
|
|
2753 fi
|
|
2754 if [ "x${with_cde}" != x ]; then
|
|
2755 ] AC_WARN(--with-cde ignored: Not valid without X support) [
|
|
2756 with_menubars='no'
|
|
2757 fi
|
2
|
2758 if [ "x${with_offix}" != x ]; then
|
|
2759 ] AC_WARN(--with-offix ignored: Not valid without X support) [
|
|
2760 with_offix='no'
|
|
2761 fi
|
0
|
2762 if [ "x${with_menubars}" != x ]; then
|
|
2763 ] AC_WARN(--with-menubars ignored: Not valid without X support) [
|
|
2764 with_menubars='no'
|
|
2765 fi
|
|
2766 if [ "x${with_scrollbars}" != x ]; then
|
|
2767 ] AC_WARN(--with-scrollbars ignored: Not valid without X support) [
|
|
2768 with_scrollbars='no'
|
|
2769 fi
|
|
2770 if [ "x${with_dialogs}" != x ]; then
|
|
2771 ] AC_WARN(--with-dialogs ignored: Not valid without X support) [
|
|
2772 with_dialogs='no'
|
|
2773 fi
|
|
2774 if [ "x${with_toolbars}" != x ]; then
|
|
2775 ] AC_WARN(--with-toolbars ignored: Not valid without X support) [
|
|
2776 with_toolbars='no'
|
|
2777 fi
|
|
2778 with_cde='no'
|
2
|
2779 with_offix='no'
|
0
|
2780 with_menubars='no'
|
|
2781 with_scrollbars='no'
|
|
2782 with_dialogs='no'
|
|
2783 with_toolbars='no'
|
|
2784 elif [ -z "${with_toolbars}" ] ; then
|
|
2785 with_toolbars='yes'
|
|
2786 fi
|
|
2787
|
|
2788 case "${canonical}" in
|
|
2789 *-sun-solaris* | *-sun-sunos5* ) add_runtime_flag=yes ;;
|
|
2790 esac
|
|
2791
|
|
2792 if [ -n "${x_libraries}" ]; then
|
|
2793 if [ "${add_runtime_flag}" ]; then
|
|
2794 LD_SWITCH_X_SITE="-L${x_libraries} -R${dash_r_space}${x_libraries}"
|
|
2795 else
|
|
2796 LD_SWITCH_X_SITE="-L${x_libraries}"
|
|
2797 fi
|
|
2798 fi
|
|
2799 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
|
|
2800 # [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
|
|
2801 [ -n "${x_includes}" ] && C_SWITCH_X_SITE="-I${x_includes}"
|
|
2802
|
|
2803 if [ -n "${site_libraries}" ]; then
|
|
2804 for arg in ${site_libraries}
|
|
2805 do
|
|
2806 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
|
2807 done
|
|
2808 fi
|
|
2809 if [ -n "${site_runtime_libraries}" ]; then
|
|
2810 for arg in ${site_runtime_libraries}
|
|
2811 do
|
|
2812 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
|
2813 LD_SWITCH_SITE="${LD_SWITCH_SITE} -R${dash_r_space}${arg}"
|
|
2814 done
|
|
2815 fi
|
|
2816 if [ -n "${site_includes}" ]; then
|
|
2817 for arg in ${site_includes}
|
|
2818 do
|
|
2819 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
|
|
2820 CPP="${CPP} -I${arg}"
|
|
2821 done
|
|
2822 fi
|
|
2823
|
|
2824 # FSF 19.29 has some bitmapdir stuff here.
|
|
2825 bitmapdir=
|
|
2826
|
|
2827 # Avoid forcing the search of /usr/include before fixed include files.
|
|
2828 if [ "$C_SWITCH_X_SITE" = "-I/usr/include" ]; then
|
|
2829 C_SWITCH_X_SITE=" "
|
|
2830 fi
|
|
2831
|
|
2832 # Need for check for audio/Xtutil.h.
|
|
2833 CPP="${CPP} ${C_SWITCH_X_SITE}"
|
|
2834
|
|
2835 case "${window_system}" in
|
|
2836 x11 )
|
|
2837 HAVE_X_WINDOWS=yes
|
|
2838 echo " Using X11."
|
|
2839 ;;
|
|
2840 none )
|
|
2841 HAVE_X_WINDOWS=no
|
|
2842 echo " Using no window system."
|
|
2843 ;;
|
|
2844 esac
|
|
2845
|
|
2846 if test "${opsys}" = "hpux9"; then
|
|
2847 case "${x_libraries}" in
|
|
2848 *X11R4* )
|
|
2849 opsysfile="s/hpux9-x11r4.h"
|
|
2850 ;;
|
|
2851 esac
|
|
2852 fi
|
|
2853
|
|
2854 if test "${opsys}" = "hpux9shr"; then
|
|
2855 case "${x_libraries}" in
|
|
2856 *X11R4* )
|
|
2857 opsysfile="s/hpux9shxr4.h"
|
|
2858 ;;
|
|
2859 esac
|
|
2860 fi
|
|
2861
|
|
2862 ############################################################################
|
|
2863 # #
|
|
2864 # Extract some information from the operating system and machine files #
|
|
2865 # #
|
|
2866 ############################################################################
|
|
2867
|
|
2868 echo "examining the machine- and system-dependent files to find out"
|
|
2869 echo " - which libraries the lib-src programs will want, and"
|
|
2870 echo " - whether the GNU malloc routines are usable."
|
|
2871
|
|
2872 ### First figure out CFLAGS (which we use for running the compiler here)
|
|
2873 ### and REAL_CFLAGS (which we use for real compilation).
|
|
2874 ### The two are the same except on a few systems, where they are made
|
|
2875 ### different to work around various lossages. For example,
|
|
2876 ### GCC 2.5 on Linux needs them to be different because it treats -g
|
|
2877 ### as implying static linking.
|
|
2878
|
|
2879 ### If the CFLAGS env var is specified, we use that value
|
|
2880 ### instead of the default.
|
|
2881
|
|
2882 ### It's not important that this name contain the PID; you can't run
|
|
2883 ### two configures in the same directory and have anything work
|
|
2884 ### anyway.
|
|
2885 tempcname="conftest.c"
|
|
2886
|
|
2887 echo '
|
|
2888 #define NOT_C_CODE
|
|
2889 #include "'${srcdir}'/src/'${opsysfile}'"
|
|
2890 #include "'${srcdir}'/src/'${machfile}'"
|
|
2891 #ifndef LIBS_MACHINE
|
|
2892 #define LIBS_MACHINE
|
|
2893 #endif
|
|
2894 #ifndef LIBS_SYSTEM
|
|
2895 #define LIBS_SYSTEM
|
|
2896 #endif
|
|
2897 #ifndef C_SWITCH_SYSTEM
|
|
2898 #define C_SWITCH_SYSTEM
|
|
2899 #endif
|
|
2900 #ifndef C_SWITCH_X_SYSTEM
|
|
2901 #define C_SWITCH_X_SYSTEM
|
|
2902 #endif
|
|
2903 #ifndef C_SWITCH_MACHINE
|
|
2904 #define C_SWITCH_MACHINE
|
|
2905 #endif
|
|
2906 #ifndef LD_SWITCH_X_SYSTEM
|
|
2907 #define LD_SWITCH_X_SYSTEM
|
|
2908 #endif
|
|
2909 #ifndef LIB_STANDARD
|
|
2910 #define LIB_STANDARD
|
|
2911 #endif
|
|
2912 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD
|
|
2913 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
2914 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
|
|
2915 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
|
|
2916 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
2917
|
|
2918 #ifndef LIB_X11_LIB
|
|
2919 #define LIB_X11_LIB -lX11
|
|
2920 #endif
|
|
2921
|
|
2922 #ifndef LIBX11_MACHINE
|
|
2923 #define LIBX11_MACHINE
|
|
2924 #endif
|
|
2925
|
|
2926 #ifndef LIBX11_SYSTEM
|
|
2927 #define LIBX11_SYSTEM
|
|
2928 #endif
|
|
2929 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
|
|
2930
|
|
2931 #ifdef UNEXEC
|
|
2932 configure___ unexec=UNEXEC
|
|
2933 #else
|
|
2934 configure___ unexec=unexec.o
|
|
2935 #endif
|
|
2936
|
|
2937 #ifdef SYSTEM_MALLOC
|
|
2938 configure___ system_malloc=yes
|
|
2939 #else
|
|
2940 configure___ system_malloc=no
|
|
2941 #endif
|
|
2942
|
|
2943 #ifndef C_DEBUG_SWITCH
|
|
2944 #define C_DEBUG_SWITCH -g
|
|
2945 #endif
|
|
2946
|
|
2947 #ifndef C_OPTIMIZE_SWITCH
|
|
2948 #define C_OPTIMIZE_SWITCH -O
|
|
2949 #endif
|
|
2950
|
|
2951 #ifdef THIS_IS_CONFIGURE
|
|
2952
|
|
2953 /* Get the CFLAGS for tests in configure. */
|
|
2954 #ifdef __GNUC__
|
|
2955 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2956 #else
|
|
2957 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2958 #endif
|
|
2959
|
|
2960 #else /* not THIS_IS_CONFIGURE */
|
|
2961
|
|
2962 /* Get the CFLAGS for real compilation. */
|
|
2963 #ifdef __GNUC__
|
|
2964 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2965 #else
|
|
2966 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2967 #endif
|
|
2968
|
|
2969 #endif /* not THIS_IS_CONFIGURE */
|
|
2970 ' > ${tempcname}
|
|
2971 # The value of CPP is a quoted variable reference, so we need to do this
|
|
2972 # to get its actual value...
|
|
2973 CPP=`eval "echo $CPP"`
|
|
2974 eval `${CPP} -Isrc ${tempcname} \
|
|
2975 | grep 'configure___' \
|
|
2976 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
|
|
2977 if [ "x$SPECIFIED_CFLAGS" = x ]; then
|
|
2978 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
|
|
2979 | grep 'configure___' \
|
|
2980 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
|
|
2981 else
|
|
2982 REAL_CFLAGS="$CFLAGS"
|
|
2983 fi
|
|
2984 rm ${tempcname}
|
|
2985
|
|
2986 # override CFLAGS if user wishes
|
|
2987 if [ "${cflags}" != "NO_CFLAGS_DEFINED" ]; then
|
|
2988 REAL_CFLAGS=${cflags}
|
|
2989 fi
|
|
2990
|
|
2991 ### Compute the unexec source name from the object name.
|
|
2992 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
|
|
2993
|
|
2994 # Do the opsystem or machine files prohibit the use of the GNU malloc?
|
|
2995 # Assume not, until told otherwise.
|
|
2996 GNU_MALLOC=yes
|
|
2997 if [ "${system_malloc}" = "yes" ]; then
|
|
2998 GNU_MALLOC=no
|
|
2999 GNU_MALLOC_reason="
|
|
3000 (The GNU allocators don't work with this system configuration.)"
|
|
3001 elif [ "${use_system_malloc}" = "yes" ]; then
|
|
3002 GNU_MALLOC=no
|
|
3003 GNU_MALLOC_reason="
|
|
3004 (User chose not to use GNU allocators.)"
|
|
3005 fi
|
|
3006
|
|
3007 LISP_FLOAT_TYPE=yes
|
|
3008
|
|
3009
|
|
3010 #### Add the libraries to LIBS and check for some functions.
|
|
3011
|
|
3012 ]
|
|
3013 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS"
|
|
3014 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS"
|
|
3015 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS"
|
|
3016
|
|
3017 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks,
|
|
3018 dnl and also adds -ldnet to LIBS, which Autoconf uses for checks.
|
|
3019 dnl FSF 19.29 also checks for function dnet_ntoa.
|
|
3020 AC_HAVE_LIBRARY(-ldnet)
|
|
3021 dnl This causes -lresolv to get used in subsequent tests,
|
|
3022 dnl which causes failures on some systems such as HPUX 9.
|
|
3023 dnl FSF 19.29 also checks for function gethostbyname.
|
|
3024 dnl AC_HAVE_LIBRARY(-lresolv)
|
|
3025
|
|
3026 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd")
|
|
3027
|
|
3028 dnl FSF 19.29 also checks for function cma_open.
|
|
3029 AC_HAVE_LIBRARY(-lpthreads, HAVE_PTHREADS=yes)
|
|
3030 if test -n "${HAVE_PTHREADS}" ; then
|
|
3031 AC_DEFINE(HAVE_PTHREADS)
|
|
3032 case "${opsys}" in
|
|
3033 decosf* ) CFLAGS="${CFLAGS} -threads" ;;
|
|
3034 esac
|
|
3035 fi
|
|
3036
|
|
3037 if test "${window_system}" != "none" ; then
|
|
3038 AC_CHECKING(for XFree86)
|
|
3039 if test -d /usr/X386/include; then
|
|
3040 HAVE_XFREE386=yes
|
|
3041 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
|
|
3042 elif test -d /usr/X11R6/include; then
|
|
3043 HAVE_XFREE386=yes
|
|
3044 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"
|
|
3045 else
|
|
3046 HAVE_XFREE386=no
|
|
3047 fi
|
|
3048 AC_VERBOSE(${HAVE_XFREE386})
|
|
3049 else
|
|
3050 HAVE_XFREE386=no
|
|
3051 fi
|
|
3052
|
|
3053 ############################################################################
|
|
3054 # #
|
|
3055 # Test for various X-specific features #
|
|
3056 # #
|
|
3057 ############################################################################
|
|
3058
|
|
3059 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check.
|
|
3060 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
3061 case "${opsys}" in
|
|
3062 linux* )
|
|
3063 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS"
|
|
3064 AC_COMPILE_CHECK(whether path-link option is needed, [],
|
|
3065 [;],
|
|
3066 [need_path_link=yes],
|
|
3067 [need_path_link=no])
|
|
3068 if test "${need_path_link}" = "no"; then
|
|
3069 CFLAGS="$REAL_CFLAGS"
|
|
3070 AC_VERBOSE(no)
|
|
3071 else
|
|
3072 AC_VERBOSE(yes)
|
|
3073 fi
|
|
3074 ;;
|
|
3075 esac
|
|
3076 fi
|
|
3077
|
|
3078 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
|
|
3079 # for the tests that follow. We set it back to REAL_CFLAGS later on.
|
|
3080
|
|
3081 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
3082 DEFS="$C_SWITCH_X_SITE $DEFS"
|
|
3083 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
|
|
3084 LIBS="$LIBX $LIBS"
|
|
3085 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
|
|
3086
|
|
3087 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
|
|
3088 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
|
|
3089 # but it's more convenient here to set LD_RUN_PATH
|
|
3090 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
|
|
3091 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
|
|
3092 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
|
|
3093 export LD_RUN_PATH
|
|
3094 fi
|
|
3095
|
|
3096 if test "${HAVE_XFREE386}" = "yes" ; then
|
|
3097 case "${opsys}" in
|
|
3098 linux* )
|
|
3099 AC_COMPILE_CHECK(whether XFree86 needs -b to link, [],
|
|
3100 [XOpenDisplay ("foo");],
|
|
3101 [xfree86_first_failure=no],
|
|
3102 [xfree86_first_failure=yes])
|
|
3103 if test "${xfree86_first_failure}" = "yes"; then
|
|
3104 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
|
|
3105 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
|
|
3106 OLD_CPPFLAGS="$CPPFLAGS"
|
|
3107 OLD_LIBS="$LIBS"
|
|
3108 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
|
|
3109 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
|
|
3110 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
|
|
3111 LIBS="$LIBS -b i486-linuxaout"
|
|
3112 AC_COMPILE_CHECK(,[],
|
|
3113 [XOpenDisplay ("foo");],
|
|
3114 [xfree86_second_failure=no],
|
|
3115 [xfree86_second_failure=yes])
|
|
3116 if test "${xfree86_second_failure}" = "yes"; then
|
|
3117 # If we get the same failure with -b, there is no use adding -b.
|
|
3118 # So take it out. This plays safe.
|
|
3119 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
|
|
3120 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
|
|
3121 CPPFLAGS="$OLD_CPPFLAGS"
|
|
3122 LIBS="$OLD_LIBS"
|
|
3123 AC_VERBOSE(no)
|
|
3124 else
|
|
3125 AC_VERBOSE(yes)
|
|
3126 fi
|
|
3127 else
|
|
3128 AC_VERBOSE(no)
|
|
3129 fi
|
|
3130 ;;
|
|
3131 esac
|
|
3132 fi
|
|
3133
|
|
3134 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
|
|
3135 #XScreenNumberOfScreen XSetWMProtocols)
|
|
3136 fi
|
|
3137
|
|
3138 #
|
|
3139 # make sure we can find libX11.*
|
|
3140 #
|
|
3141 if test "${window_system}" != "none" ; then
|
|
3142 internal_xlibs_found='no'
|
|
3143 AC_HAVE_LIBRARY(-lX11, internal_xlibs_found='yes')
|
|
3144 if test "${internal_xlibs_found}" = "no" ; then
|
|
3145 echo "Unable to find X11 libraries." >&2
|
|
3146 exit 1
|
|
3147 else
|
|
3148 AC_VERBOSE(yes)
|
|
3149 fi
|
|
3150 fi
|
|
3151
|
|
3152 #
|
|
3153 # make sure we can find Intrinsic.h
|
|
3154 #
|
|
3155 if test "${window_system}" != "none" ; then
|
|
3156 internal_xincludes_found='no'
|
|
3157 for arg in ${DEFS} /usr/include
|
|
3158 do
|
|
3159 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
|
|
3160 internal_xincludes_found='yes'
|
|
3161 fi
|
|
3162 done
|
|
3163 if test "${internal_xincludes_found}" = "no" ; then
|
|
3164 echo "Unable to find X11 header files." >&2
|
|
3165 exit 1
|
|
3166 fi
|
|
3167 fi
|
|
3168
|
|
3169 #
|
|
3170 # Sun OS 4 systems need the following kludge
|
|
3171 #
|
|
3172 if test "${window_system}" != "none" ; then
|
|
3173 case "${canonical}" in *-sunos4* )
|
|
3174 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;;
|
|
3175 esac
|
|
3176 fi
|
|
3177
|
|
3178 #
|
|
3179 # See if we can find Xauth.
|
|
3180 #
|
|
3181 with_xauth='no'
|
|
3182 if test "${window_system}" != "none" ; then
|
|
3183 internal_xauth_lib_found='no'
|
|
3184 AC_HAVE_LIBRARY(-lXau, internal_xauth_lib_found='yes')
|
|
3185 if test "${internal_xauth_lib_found}" = "yes" ; then
|
|
3186 internal_xauth_includes_found='no'
|
|
3187 for arg in ${DEFS} /usr/include
|
|
3188 do
|
|
3189 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
|
|
3190 internal_xauth_includes_found='yes'
|
|
3191 fi
|
|
3192 done
|
|
3193 if test "${internal_xauth_includes_found}" = "yes" ; then
|
|
3194 with_xauth='yes'
|
|
3195 fi
|
|
3196 fi
|
|
3197 fi
|
|
3198 if test "${with_xauth}" = "yes" ; then
|
|
3199 AC_DEFINE(HAVE_XAUTH)
|
|
3200 fi
|
|
3201
|
|
3202 #
|
|
3203 # See if we can find CDE.
|
|
3204 #
|
|
3205 if test "${window_system}" != "none" ; then
|
|
3206 if test "${with_cde}" != "no" ; then
|
|
3207 if test "${with_cde}" != "yes" ; then
|
|
3208 internal_cde_lib_found='no'
|
|
3209 AC_HAVE_LIBRARY(-lDtSvc, internal_cde_lib_found='yes')
|
|
3210 if test "${internal_cde_lib_found}" = "yes" ; then
|
|
3211 internal_cde_includes_found='no'
|
|
3212 for arg in ${DEFS} /usr/include
|
|
3213 do
|
|
3214 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
|
|
3215 internal_cde_includes_found='yes'
|
|
3216 fi
|
|
3217 done
|
|
3218 if test "${internal_cde_includes_found}" = "yes" ; then
|
|
3219 with_cde='yes'
|
|
3220 fi
|
|
3221 fi
|
|
3222 fi
|
|
3223 fi
|
|
3224 fi
|
|
3225 if test "${with_cde}" = "yes" ; then
|
|
3226 AC_DEFINE(HAVE_CDE)
|
|
3227 fi
|
|
3228
|
|
3229 #
|
2
|
3230 # See if we can find OffiX.
|
|
3231 #
|
|
3232 if test "${window_system}" != "none" ; then
|
|
3233 if test "${with_offix}" != "no" ; then
|
|
3234 if test "${with_offix}" != "yes" ; then
|
|
3235 internal_offix_lib_found='no'
|
|
3236 AC_HAVE_LIBRARY(-lDnd, internal_offix_lib_found='yes')
|
|
3237 if test "${internal_offix_lib_found}" = "yes" ; then
|
|
3238 internal_offix_includes_found='no'
|
|
3239 for arg in ${DEFS} /usr/include
|
|
3240 do
|
|
3241 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
|
|
3242 internal_offix_includes_found='yes'
|
|
3243 fi
|
|
3244 done
|
|
3245 if test "${internal_offix_includes_found}" = "yes" ; then
|
|
3246 with_offix='yes'
|
|
3247 fi
|
|
3248 fi
|
|
3249 fi
|
|
3250 fi
|
|
3251 fi
|
|
3252 if test "${with_offix}" = "yes" ; then
|
|
3253 AC_DEFINE(HAVE_OFFIX_DND)
|
|
3254 fi
|
|
3255
|
|
3256 #
|
0
|
3257 # See if we can find Xlocale.h.
|
|
3258 #
|
|
3259 with_xlocale_h='no'
|
|
3260 if test "${window_system}" != "none" ; then
|
|
3261 for arg in ${DEFS} /usr/include
|
|
3262 do
|
|
3263 if test -f `echo "${arg}/X11/Xlocale.h" | sed 's/^\-I//'` ; then
|
|
3264 with_xlocale_h='yes'
|
|
3265 fi
|
|
3266 done
|
|
3267 fi
|
|
3268 if test "${with_xlocale_h}" = "yes" ; then
|
|
3269 AC_DEFINE(HAVE_XLOCALE_H)
|
|
3270 fi
|
|
3271
|
|
3272 if test "${window_system}" != "none" ; then
|
|
3273 AC_FIND_X_VERSION
|
|
3274 AC_HAVE_HEADERS(X11/Xlocale.h)
|
|
3275 fi
|
|
3276
|
|
3277 #
|
|
3278 # if Energize specified, make sure we can find its need libraries/headers
|
|
3279 #
|
|
3280 if test "${with_energize}" = "yes" ; then
|
|
3281 AC_HAVE_LIBRARY(-lenergize, energize_version='3.X')
|
|
3282 if test "${energize_version}" = "no" ; then
|
|
3283 AC_HAVE_LIBRARY(-lconn, energize_version='2.X')
|
|
3284 if test "${energize_version}" = "no" ; then
|
|
3285 echo "Unable to find Energize library." >&2
|
|
3286 exit 1
|
|
3287 fi
|
|
3288 fi
|
|
3289
|
|
3290 internal_eincludes_found='no'
|
|
3291 for arg in ${DEFS} /usr/include
|
|
3292 do
|
|
3293 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
|
|
3294 internal_eincludes_found='yes'
|
|
3295 fi
|
|
3296 done
|
|
3297 if test "${internal_eincludes_found}" = "no" ; then
|
|
3298 echo "Unable to find Energize editorconn.h header file." >&2
|
|
3299 exit 1
|
|
3300 fi
|
|
3301 fi
|
|
3302
|
|
3303 #
|
|
3304 # logb and frexp are found in -lm on most systems.
|
|
3305 #
|
|
3306 AC_HAVE_LIBRARY(-lm)
|
|
3307
|
|
3308 #
|
|
3309 # see if XPM is hanging around somewhere
|
|
3310 #
|
|
3311 if test "${window_system}" != "none" ; then
|
|
3312 if test "${with_xpm}" != "no" ; then
|
|
3313 if test "${with_xpm}" != "yes" ; then
|
|
3314 AC_HAVE_LIBRARY(-lXpm, with_xpm="yes")
|
|
3315 fi
|
|
3316 fi
|
|
3317 fi
|
|
3318 if test "${with_xpm}" = "yes" ; then
|
|
3319 AC_DEFINE(HAVE_XPM)
|
|
3320 fi
|
|
3321
|
|
3322 #
|
|
3323 # see if Xmu is hanging around somewhere
|
|
3324 #
|
|
3325 # FSF 19.31 has this:
|
|
3326 #dnl If using toolkit, check whether libXmu.a exists.
|
|
3327 #dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
|
|
3328 # OLDLIBS="$LIBS"
|
|
3329 # if test x$HAVE_X11XTR6 = xyes; then
|
|
3330 # LIBS="-lXt -lSM -lICE $LIBS"
|
|
3331 # else
|
|
3332 # LIBS="-lXt $LIBS"
|
|
3333 # fi
|
|
3334 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
|
|
3335 # LIBS="$OLDLIBS"
|
|
3336
|
|
3337 if test "${window_system}" != "none" ; then
|
|
3338 if test "${with_xmu}" != "no" ; then
|
|
3339 if test "${with_xmu}" != "yes" ; then
|
|
3340 AC_HAVE_LIBRARY(-lXmu, with_xmu="yes")
|
|
3341 fi
|
|
3342 # On SunOS4 we must kludge harder to try to detect Xmu
|
|
3343 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
|
3344 if test "${with_xmu}" != "yes" && test -n "$OPENWINHOME" ; then
|
|
3345 # begin expansion of ac_have_library
|
|
3346 ac_save_LIBS="${LIBS}"
|
|
3347 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
|
|
3348 ac_have_lib=""
|
|
3349 cat > conftest.${ac_ext} <<EOF
|
|
3350 int main() { return 0; }
|
|
3351 EOF
|
|
3352 if eval $ac_compile; then
|
|
3353 rm -rf conftest*
|
|
3354 ac_have_lib="1"
|
|
3355 fi
|
|
3356 rm -f conftest*
|
|
3357 LIBS="${ac_save_LIBS}"
|
|
3358 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3359 # end expansion of ac_have_library
|
|
3360 fi
|
|
3361 # On UnixWare 2.1 we must kludge harder to try to detect Xmu
|
|
3362 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
|
3363 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then
|
|
3364 # begin expansion of ac_have_library
|
|
3365 ac_save_LIBS="${LIBS}"
|
|
3366 if test x$HAVE_XFREE386 = xyes; then
|
|
3367 LIBS="-lXt -lSM -lICE ${LIBS}"
|
|
3368 else
|
|
3369 LIBS="${LIBS} -lXmu -lXt -lXext -lX11"
|
|
3370 fi
|
|
3371 ac_have_lib=""
|
|
3372 cat > conftest.${ac_ext} <<EOF
|
|
3373 int main() { return 0; }
|
|
3374 EOF
|
|
3375 if eval $ac_compile; then
|
|
3376 rm -rf conftest*
|
|
3377 ac_have_lib="1"
|
|
3378 fi
|
|
3379 rm -f conftest*
|
|
3380 LIBS="${ac_save_LIBS}"
|
|
3381 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3382 # end expansion of ac_have_library
|
|
3383 fi
|
|
3384 fi
|
|
3385 fi
|
|
3386 if test "${with_xmu}" = "yes" ; then
|
|
3387 AC_DEFINE(HAVE_XMU)
|
|
3388 fi
|
|
3389
|
|
3390 #
|
|
3391 # see if COMPFACE is hanging around somewhere
|
|
3392 #
|
|
3393 if test "${window_system}" != "none" ; then
|
|
3394 if test "${with_xface}" != "no" ; then
|
|
3395 if test "${with_xface}" != "yes" ; then
|
|
3396 AC_HEADER_CHECK(compface.h, compface_incl="yes", with_xface="no")
|
|
3397 if test "${compface_incl}" = "yes" ; then
|
|
3398 AC_HAVE_LIBRARY(-lcompface, with_xface="yes")
|
|
3399 fi
|
|
3400 fi
|
|
3401 fi
|
|
3402 fi
|
|
3403 if test "${with_xface}" = "yes" ; then
|
|
3404 AC_DEFINE(HAVE_XFACE)
|
|
3405 fi
|
|
3406
|
|
3407 #
|
|
3408 # check whether we're using GIF support
|
|
3409 #
|
|
3410 if test "${window_system}" = "none" ; then
|
|
3411 if test -z "${with_gif}" ; then
|
|
3412 with_gif=no
|
|
3413 elif test "${with_gif}" != "no" ; then
|
|
3414 echo "GIF support cannot be specified without a window system."
|
|
3415 exit 1
|
|
3416 fi
|
|
3417 elif test -z "${with_gif}" ; then
|
|
3418 with_gif=yes
|
|
3419 fi
|
|
3420 if test "${with_gif}" = "yes" ; then
|
|
3421 AC_DEFINE(HAVE_GIF)
|
|
3422 fi
|
|
3423
|
|
3424 #
|
|
3425 # autodetect JPEG
|
|
3426 #
|
|
3427 if test "${window_system}" = "none" ; then
|
|
3428 if test -z "${with_jpeg}" ; then
|
|
3429 with_jpeg=no
|
|
3430 elif test "${with_jpeg}" != "no" ; then
|
|
3431 echo "JPEG support cannot be specified without a window system."
|
|
3432 exit 1
|
|
3433 fi
|
|
3434 else
|
|
3435 if test "${with_jpeg}" != "no" ; then
|
|
3436 if test "${with_jpeg}" != "yes" ; then
|
|
3437 AC_HEADER_CHECK(jpeglib.h, jpeglib_incl="yes", with_jpeg="no")
|
|
3438 if test "${jpeglib_incl}" = "yes" ; then
|
|
3439 AC_HAVE_LIBRARY(-ljpeg, with_jpeg="yes")
|
|
3440 fi
|
|
3441 fi
|
|
3442 fi
|
|
3443 fi
|
|
3444 if test "${with_jpeg}" = "yes" ; then
|
|
3445 AC_DEFINE(HAVE_JPEG)
|
|
3446 fi
|
|
3447
|
|
3448 #
|
|
3449 # autodetect PNG
|
|
3450 #
|
|
3451 if test "${window_system}" = "none" ; then
|
|
3452 if test -z "${with_png}" ; then
|
|
3453 with_png=no
|
|
3454 elif test "${with_png}" != "no" ; then
|
|
3455 echo "PNG support cannot be specified without a window system."
|
|
3456 exit 1
|
|
3457 fi
|
|
3458 fi
|
|
3459 if test -z "${with_png}" ; then
|
|
3460 AC_HEADER_CHECK(png.h, , with_png="no")
|
|
3461 fi
|
|
3462 if test -z "${with_png}" ; then
|
|
3463 AC_HAVE_LIBRARY(-lpng, , with_png="no")
|
|
3464 fi
|
|
3465 if test -z "${with_png}" ; then
|
|
3466 AC_HAVE_LIBRARY(-lz, with_png="yes")
|
|
3467 fi
|
|
3468 if test -z "${with_png}" ; then
|
|
3469 AC_HAVE_LIBRARY(-lgz, with_png="gnuz", with_png="no")
|
|
3470 fi
|
|
3471 if test "${with_png}" = "yes" ; then
|
|
3472 AC_DEFINE(HAVE_PNG)
|
|
3473 fi
|
|
3474 if test "${with_png}" = "gnuz" ; then
|
|
3475 AC_DEFINE(HAVE_PNG)
|
|
3476 AC_DEFINE(HAVE_PNG_GNUZ)
|
|
3477 fi
|
|
3478
|
|
3479 #
|
|
3480 # autodetect TIFF (not yet implemented)
|
|
3481 #
|
|
3482 if test "${window_system}" = "none" ; then
|
|
3483 if test -z "${with_tiff}" ; then
|
|
3484 with_tiff=no
|
|
3485 elif test "${with_tiff}" != "no" ; then
|
|
3486 echo "TIFF support cannot be specified without a window system."
|
|
3487 exit 1
|
|
3488 fi
|
|
3489 fi
|
|
3490 if test "${with_tiff}" = "yes" ; then
|
|
3491 AC_DEFINE(HAVE_TIFF)
|
|
3492 fi
|
|
3493
|
|
3494 # We use Lucid toolkit defaults for the menubars and scrollbars, but
|
|
3495 # if Motif is available we use it for the dialog boxes.
|
|
3496 if test "${window_system}" != "none" ; then
|
|
3497 if test "x${with_dialogs}" = "x" ; then
|
|
3498 # We can't use ac_have_library because it simply appends -lXm to the
|
|
3499 # end of the link line which is insufficient since -lXm will generate
|
|
3500 # dependencies on -lXt
|
|
3501 # begin expansion of ac_have_library
|
|
3502 ac_save_LIBS="${LIBS}"
|
|
3503 LIBS="${LIBS} -lXm -lXt ${LIBS}"
|
|
3504 ac_have_lib=""
|
|
3505 test -n "$silent" || echo "checking for -lXm"
|
|
3506 cat > conftest.${ac_ext} <<EOF
|
|
3507 #include "confdefs.h"
|
|
3508
|
|
3509 int main() { return 0; }
|
|
3510 int t() { main();; return 0; }
|
|
3511 EOF
|
|
3512 if eval $ac_compile; then
|
|
3513 rm -rf conftest*
|
|
3514 ac_have_lib="1"
|
|
3515
|
|
3516 fi
|
|
3517 rm -f conftest*
|
|
3518 LIBS="${ac_save_LIBS}"
|
|
3519 if test -n "${ac_have_lib}"; then
|
|
3520 :; with_dialogs="motif"
|
|
3521 else
|
|
3522 :;
|
|
3523 fi
|
|
3524 # end expansion of ac_have_library
|
|
3525 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
|
|
3526 if test "${with_dialogs}" != "motif" ; then
|
|
3527 # begin expansion of ac_have_library
|
|
3528 ac_save_LIBS="${LIBS}"
|
|
3529 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}"
|
|
3530 ac_have_lib=""
|
|
3531 test -n "$silent" || echo "checking for -lXm in another way"
|
|
3532 cat > conftest.${ac_ext} <<EOF
|
|
3533 #include "confdefs.h"
|
|
3534
|
|
3535 int main() { return 0; }
|
|
3536 int t() { main();; return 0; }
|
|
3537 EOF
|
|
3538 if eval $ac_compile; then
|
|
3539 rm -rf conftest*
|
|
3540 ac_have_lib="1"
|
|
3541
|
|
3542 fi
|
|
3543 rm -f conftest*
|
|
3544 LIBS="${ac_save_LIBS}"
|
|
3545 if test -n "${ac_have_lib}"; then
|
|
3546 :; with_dialogs="motif"
|
|
3547 else
|
|
3548 :;
|
|
3549 fi
|
|
3550 # end expansion of ac_have_library
|
|
3551 fi
|
|
3552 if test "${with_dialogs}" = "motif" ; then
|
|
3553 AC_VERBOSE(Found Motif)
|
|
3554 fi
|
|
3555 fi
|
|
3556 fi
|
|
3557
|
|
3558 [
|
|
3559 if [ "${with_menubars}" = "motif" ] || [ "${with_scrollbars}" = "motif" ] \
|
|
3560 || [ "${with_dialogs}" = "motif" ]; then
|
|
3561 with_motif='yes'
|
|
3562 fi
|
|
3563
|
|
3564 # Finish ensuring that we have values for the various toolkit items.
|
|
3565 if [ "x${with_menubars}" = "x" ] || [ "${with_menubars}" = "athena" ]; then
|
|
3566 with_menubars='lucid'
|
|
3567 fi
|
|
3568 if [ "x${with_scrollbars}" = "x" ]; then
|
|
3569 with_scrollbars='lucid'
|
|
3570 fi
|
|
3571 if [ "x${with_dialogs}" = "x" ] || [ "${with_dialogs}" = "lucid" ]; then
|
|
3572 with_dialogs='athena'
|
|
3573 fi
|
|
3574 ]
|
|
3575
|
|
3576 ############################################################################
|
|
3577 # #
|
|
3578 # Misc other feature tests #
|
|
3579 # #
|
|
3580 ############################################################################
|
|
3581
|
|
3582 # If netdb.h doesn't declare h_errno, we must declare it by hand.
|
|
3583 AC_COMPILE_CHECK(declaration of h_errno in netdb.h,
|
|
3584 [#include <netdb.h>],
|
|
3585 [int i = h_errno;],
|
|
3586 AC_DEFINE(HAVE_H_ERRNO))
|
|
3587
|
|
3588 AC_COMPILE_CHECK(sigsetjmp,
|
|
3589 [#include <setjmp.h>],
|
|
3590 [sigjmp_buf bar; sigsetjmp (bar, 0);],
|
|
3591 AC_DEFINE(HAVE_SIGSETJMP))
|
|
3592
|
|
3593 AC_CHECKING(whether localtime caches TZ)
|
|
3594 emacs_cv_localtime_cache=
|
|
3595 AC_TEST_PROGRAM([#include <time.h>
|
|
3596 #if 1 /* STDC_HEADERS */
|
|
3597 # include <stdlib.h>
|
|
3598 #endif
|
|
3599 extern char **environ;
|
|
3600 unset_TZ ()
|
|
3601 {
|
|
3602 char **from, **to;
|
|
3603 for (to = from = environ; (*to = *from); from++)
|
|
3604 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
3605 to++;
|
|
3606 }
|
|
3607 main()
|
|
3608 {
|
|
3609 time_t now = time ((time_t *) 0);
|
|
3610 int hour_GMT0, hour_unset;
|
|
3611 if (putenv ("TZ=GMT0") != 0)
|
|
3612 exit (1);
|
|
3613 hour_GMT0 = localtime (&now)->tm_hour;
|
|
3614 unset_TZ ();
|
|
3615 hour_unset = localtime (&now)->tm_hour;
|
|
3616 if (putenv ("TZ=PST8") != 0)
|
|
3617 exit (1);
|
|
3618 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
3619 exit (1);
|
|
3620 unset_TZ ();
|
|
3621 if (localtime (&now)->tm_hour != hour_unset)
|
|
3622 exit (1);
|
|
3623 exit (0);
|
|
3624 }], emacs_cv_localtime_cache=no, emacs_cv_localtime_cache=yes,
|
|
3625 [# If we have tzset, assume the worst when cross-compiling.
|
|
3626 emacs_cv_localtime_cache=yes])
|
|
3627 AC_VERBOSE("$emacs_cv_localtime_cache")
|
|
3628 if test x$emacs_cv_localtime_cache = xyes; then
|
|
3629 AC_DEFINE(LOCALTIME_CACHE)
|
|
3630 fi
|
|
3631
|
|
3632 if test "x$HAVE_TIMEVAL" = xyes; then
|
|
3633 AC_COMPILE_CHECK(whether gettimeofday can't accept two arguments,
|
|
3634 [
|
|
3635 #ifdef TIME_WITH_SYS_TIME
|
|
3636 #include <sys/time.h>
|
|
3637 #include <time.h>
|
|
3638 #else
|
|
3639 #ifdef HAVE_SYS_TIME_H
|
|
3640 #include <sys/time.h>
|
|
3641 #else
|
|
3642 #include <time.h>
|
|
3643 #endif
|
|
3644 #endif
|
|
3645 ],
|
|
3646 [
|
|
3647 struct timeval time;
|
|
3648 struct timezone dummy;
|
|
3649 gettimeofday (&time, &dummy);
|
|
3650 ],
|
|
3651 [AC_VERBOSE(no)],
|
|
3652 [AC_VERBOSE(yes)
|
|
3653 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)])
|
|
3654 fi
|
|
3655
|
|
3656 AC_COMPILE_CHECK(whether inline functions are supported,
|
|
3657 ,
|
|
3658 [
|
|
3659 inline int
|
|
3660 foo ()
|
|
3661 {
|
|
3662 return 0;
|
|
3663 }
|
|
3664 ],
|
|
3665 AC_DEFINE(HAVE_INLINE))
|
|
3666
|
|
3667 # This does all sorts of magic to make sure alloca() works OK.
|
|
3668 # It might even add some junk to the top of <config.h>.
|
|
3669 # (I don't understand what goes on here, but it seems to work.)
|
|
3670 AC_ALLOCA
|
|
3671
|
|
3672 # Check whether vfork exists and works correctly. (This does more
|
|
3673 # than just check for its existence.) If so, it defines HAVE_VFORK_H.
|
|
3674 # If not, it defines vfork to be fork.
|
|
3675 AC_VFORK
|
|
3676
|
|
3677 # Check whether mmap exists and works correctly. (This does more
|
|
3678 # than just check for its existence.) If so, it defines HAVE_MMAP.
|
|
3679 # Actually, this seems to rule out some cases where mmap() can
|
|
3680 # work fine for our purposes (e.g. HPUX). We get a big win out
|
|
3681 # of using mmap(), so let's go back to the old way.
|
|
3682 dnl AC_MMAP
|
|
3683
|
|
3684 # Check whether strcoll exists and works correctly. (This does more
|
|
3685 # than just check for its existence.) If so, it defines HAVE_STRCOLL.
|
|
3686 AC_STRCOLL
|
|
3687
|
|
3688 AC_SIZEOF_TYPE(short)
|
|
3689 AC_SIZEOF_TYPE(int)
|
|
3690 AC_SIZEOF_TYPE(long)
|
|
3691
|
|
3692 # FSF 19.29 does this:
|
|
3693 # # fmod, logb, and frexp are found in -lm on most systems.
|
|
3694 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
|
|
3695 # A C_CHECK_LIB(m, sqrt)
|
|
3696
|
|
3697 AC_HAVE_FUNCS(acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getwd logb lrand48 matherr mkdir mktime perror poll random realpath rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid)
|
|
3698
|
|
3699 # Check for mmap.
|
|
3700 found_mmap=true
|
|
3701 AC_FUNC_CHECK(mmap, , found_mmap=)
|
|
3702 if test -n "$found_mmap"; then
|
|
3703 AC_DEFINE(HAVE_MMAP)
|
|
3704 fi
|
|
3705
|
|
3706 [
|
|
3707 # rel_alloc requires either GNU malloc or system malloc with mmap
|
|
3708 if [ "${GNU_MALLOC}" != "yes" ]; then
|
|
3709 if [ "${found_mmap}" != "true" ]; then
|
|
3710 rel_alloc=no
|
|
3711 fi
|
|
3712 fi
|
|
3713
|
|
3714 # We only turn rel_alloc on by default if mmap is available.
|
|
3715 if [ "${rel_alloc}" = "default" ]; then
|
|
3716 if [ "${found_mmap}" = "true" ]; then
|
|
3717 rel_alloc=yes
|
|
3718 fi
|
|
3719 fi
|
|
3720 ]
|
|
3721
|
|
3722
|
|
3723 # Check for Internet sockets.
|
|
3724
|
|
3725 ok_so_far=true
|
|
3726 AC_FUNC_CHECK(socket, , ok_so_far=)
|
|
3727 if test -n "$ok_so_far"; then
|
|
3728 AC_HEADER_CHECK(netinet/in.h, , ok_so_far=)
|
|
3729 fi
|
|
3730 if test -n "$ok_so_far"; then
|
|
3731 AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=)
|
|
3732 fi
|
|
3733 if test -n "$ok_so_far"; then
|
|
3734 AC_DEFINE(HAVE_SOCKETS)
|
|
3735 # Check for the sun_len member in struct sockaddr_un.
|
|
3736
|
|
3737 AC_COMPILE_CHECK(sun_len member in struct sockaddr_un,
|
|
3738 [#include <sys/types.h>
|
|
3739 #include <sys/socket.h>
|
|
3740 #include <sys/un.h>], [static struct sockaddr_un x; x.sun_len = 1;],
|
|
3741 AC_DEFINE(HAVE_SOCKADDR_SUN_LEN))
|
|
3742 fi
|
|
3743
|
|
3744 # Check for SYS V IPC. (Inferior to sockets.)
|
|
3745
|
|
3746 if test -z "$ok_so_far"; then
|
|
3747 ok_so_far=true
|
|
3748 AC_FUNC_CHECK(msgget, , ok_so_far=)
|
|
3749 if test -n "$ok_so_far"; then
|
|
3750 AC_HEADER_CHECK(sys/ipc.h, , ok_so_far=)
|
|
3751 fi
|
|
3752 if test -n "$ok_so_far"; then
|
|
3753 AC_HEADER_CHECK(sys/msg.h, , ok_so_far=)
|
|
3754 fi
|
|
3755 if test -n "$ok_so_far"; then
|
|
3756 AC_DEFINE(HAVE_SYSVIPC)
|
|
3757 fi
|
|
3758 fi
|
|
3759
|
|
3760 # Check for directory variants
|
|
3761
|
|
3762 sysv_system_dir=
|
|
3763 nonsystem_dir_library=
|
|
3764 AC_HEADER_CHECK(dirent.h, sysv_system_dir=yes, )
|
|
3765 if test -z "$sysv_system_dir" ; then
|
|
3766 AC_HEADER_CHECK(sys/dir.h, , nonsystem_dir_library=yes)
|
|
3767 fi
|
|
3768 if test -n "$sysv_system_dir" ; then
|
|
3769 AC_DEFINE(SYSV_SYSTEM_DIR)
|
|
3770 elif test -n "$nonsystem_dir_library" ; then
|
|
3771 AC_DEFINE(NONSYSTEM_DIR_LIBRARY)
|
|
3772 fi
|
|
3773
|
|
3774 # Check for terminal I/O variants
|
|
3775
|
|
3776 echo "checking how to do terminal I/O"
|
|
3777
|
|
3778 have_termios=
|
|
3779 have_termio=
|
|
3780 AC_HEADER_CHECK(termios.h, have_termios=yes, )
|
|
3781 # TERMIOS systems may have termio.h, but not vice-versa, I think.
|
|
3782 if test -z "$have_termios" ; then
|
|
3783 AC_HEADER_CHECK(termio.h, have_termio=yes, )
|
|
3784 fi
|
|
3785 if test -n "$have_termios" ; then
|
|
3786 AC_DEFINE(HAVE_TERMIOS)
|
|
3787 elif test -n "$have_termio" ; then
|
|
3788 AC_DEFINE(HAVE_TERMIO)
|
|
3789 fi
|
|
3790
|
|
3791 # Check for nlist.h
|
|
3792 AC_HEADER_CHECK(nlist.h, AC_DEFINE(NLIST_STRUCT), )
|
|
3793
|
|
3794 if test -f /usr/lpp/X11/bin/smt.exp ; then
|
|
3795 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/lpp/X11/bin/smt.exp)
|
|
3796 elif test -f /usr/bin/X11/smt.exp ; then
|
|
3797 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/bin/X11/smt.exp)
|
|
3798 fi
|
|
3799
|
|
3800 # Set up the CFLAGS for real compilation, so we can substitute it.
|
|
3801 CFLAGS="$REAL_CFLAGS"
|
|
3802
|
|
3803 [
|
|
3804 #### Find out which version of XEmacs this is.
|
|
3805 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
|
|
3806 | sed -ne 's/^(defconst emacs-version "\([0-9][0-9]\.[0-9]*\).*/\1/p'`
|
|
3807 beta=`grep '" XEmacs Lucid' ${srcdir}/lisp/version.el \
|
|
3808 | sed -ne 's/^.*" XEmacs Lucid (beta\([^)]*\)).*/\1/p'`
|
|
3809 alpha=`grep '" XEmacs Lucid' ${srcdir}/lisp/version.el \
|
|
3810 | sed -ne 's/^.*" XEmacs Lucid (alpha\([^)]*\)).*/\1/p'`
|
|
3811 if [ "X$beta" != "X" ]; then
|
|
3812 version=${version}-b${beta}
|
|
3813 fi
|
|
3814 if [ "X$alpha" != "X" ]; then
|
|
3815 version=${version}-a${alpha}
|
|
3816 fi
|
|
3817 if [ x"${version}" = x ]; then
|
|
3818 echo "${progname}: can't find current emacs version in
|
|
3819 \`${srcdir}/lisp/version.el'." >&2
|
|
3820 exit 1
|
|
3821 fi
|
|
3822
|
|
3823 #
|
|
3824 # Check for sound of various sorts.
|
|
3825 #
|
|
3826
|
|
3827 # the following needs to be fixed for SGI.
|
|
3828 if [ -z "${native_sound_lib}" ]; then
|
|
3829 if [ -r /usr/demo/SOUND/lib/libaudio.a ]; then
|
|
3830 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
|
|
3831 elif [ -r /usr/demo/SOUND/libaudio.a ]; then
|
|
3832 native_sound_lib=/usr/demo/SOUND/libaudio.a
|
|
3833 else
|
|
3834 case "${canonical}" in
|
|
3835 *-sgi-* ) native_sound_lib=-laudio ;;
|
|
3836 hppa*-hp-hpux* ) native_sound_lib=-lAlib ;;
|
|
3837 esac
|
|
3838 fi
|
|
3839 fi
|
|
3840
|
|
3841 if [ "${with_sound}" != "native" ] && [ "${with_sound}" != "nas" ] && [ "${with_sound}" != "both" ] && [ "${with_sound}" != "no" ] ; then
|
|
3842 if [ -d /usr/demo/SOUND/multimedia -o -d /usr/demo/SOUND/include/multimedia ]; then
|
|
3843 with_sound="native"
|
|
3844 else
|
|
3845 case "${canonical}" in
|
|
3846 *-sgi-* )
|
|
3847 ] AC_HAVE_LIBRARY(-laudio, with_sound="native") [
|
|
3848 ;;
|
|
3849 hppa*-hp-hpux* )
|
|
3850 ] AC_HAVE_LIBRARY(-lAlib, with_sound="native") [
|
|
3851 ;;
|
|
3852 esac
|
|
3853 fi
|
|
3854 fi
|
|
3855
|
|
3856 #### If the nas library doesn't contain the error jump point, then
|
|
3857 #### we force safer behaviour.
|
|
3858
|
|
3859 if [ "${with_sound}" = "nas" ] || [ "${with_sound}" = "both" ] ; then
|
|
3860 ] AC_HEADER_EGREP(AuXtErrorJump,audio/Xtutil.h, , old_nas=true) [
|
|
3861 fi
|
|
3862
|
|
3863 if [ "${with_tooltalk}" = "yes" ]; then
|
|
3864 for arg in ${DEFS} "-I/usr/include" "-I${OPENWINHOME-/usr/openwin}/include"
|
|
3865 do
|
|
3866 if [ -f `echo "${arg}/desktop/tt_c.h" | sed 's/^\-I//'` ]; then
|
|
3867 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}/desktop"
|
|
3868 fi
|
|
3869 done
|
|
3870
|
|
3871 for arg in ${LIBS} "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib"
|
|
3872 do
|
|
3873 case "${arg}" in
|
|
3874 -L*) if [ -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ]; then
|
|
3875 dash_r=''
|
|
3876 if [ -n "${add_runtime_flag}" ]; then
|
|
3877 dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"`
|
|
3878 fi
|
|
3879 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
|
|
3880 fi
|
|
3881 ;;
|
|
3882 esac
|
|
3883 done
|
|
3884 fi
|
|
3885
|
|
3886 #
|
|
3887 # Check for ncurses.
|
|
3888 #
|
|
3889
|
|
3890 if [ "${with_tty}" != "no" ] ; then
|
|
3891 ] AC_HAVE_LIBRARY(-lncurses, have_ncurses=yes, have_ncurses=no) [
|
|
3892 if [ "${have_ncurses}" = "yes" ] ; then
|
|
3893 ] AC_DEFINE(HAVE_NCURSES) [
|
|
3894 ] AC_HEADER_CHECK(ncurses/term.h, have_ncurses_term_h=yes, have_ncurses_term_h=no) [
|
|
3895 if [ "${have_ncurses_term_h}" = "yes" ] ; then
|
|
3896 ] AC_DEFINE(HAVE_NCURSES_TERM_H) [
|
|
3897 fi
|
|
3898 ] AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no) [
|
|
3899 if [ "${have_ncurses_curses_h}" = "no" ] ; then
|
|
3900 # Try again, and check for the bogus ncurses/ include bug.
|
|
3901 # (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of
|
|
3902 # <ncurses/unctrl.h>)
|
|
3903 OLD_CPP="${CPP}"
|
|
3904 CPP="${CPP} -I/usr/include/ncurses"
|
|
3905 ] AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no) [
|
|
3906 if [ "${have_ncurses_curses_h}" = "yes" ] ; then
|
|
3907 site_includes="${site_includes} /usr/include/ncurses"
|
|
3908 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
|
|
3909 ] AC_VERBOSE(Your system has the bogus ncurses include bug.) [
|
|
3910 else
|
|
3911 CPP="${OLD_CPP}"
|
|
3912 fi
|
|
3913 fi
|
|
3914 if [ "${have_ncurses_curses_h}" = "yes" ] ; then
|
|
3915 ] AC_DEFINE(HAVE_NCURSES_CURSES_H) [
|
|
3916 fi
|
|
3917 fi
|
|
3918 fi
|
|
3919
|
|
3920 #
|
|
3921 # Check for database support.
|
|
3922 #
|
|
3923
|
|
3924 ]dnl <mdiers@logware.de>
|
|
3925 dnl We don't necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support.
|
|
3926 dnl On FreeBSD, both DB and DBM are part of libc.
|
|
3927 dnl Note that unless support for DB/(G)DBM is explicitly disabled, we always
|
|
3928 dnl want to check for libdb/lib(g)dbm. Also note that libc will not be
|
|
3929 dnl checked if we have the libraries.
|
|
3930 dnl If support for DB/(G)DBM is requested, but we neither have libdb/lib(g)dbm,
|
|
3931 dnl nor does libc implement it, we are a bit lost :)
|
|
3932 dnl But wait: one still could define DATABASE_DB_LIBS and DATABASE_DBM_LIBS
|
|
3933 dnl in the system description file to read -lthisiswhereitsat and
|
|
3934 dnl have --site-libraries point there.
|
|
3935 dnl (Does this make sense? My head hurts...)
|
|
3936 [
|
|
3937 if [ "${with_database_berkdb}" != "no" ] ; then
|
|
3938 ] AC_HAVE_LIBRARY(-ldb, have_libdb=yes, have_libdb=no) [
|
|
3939 if [ "${have_libdb}" = "yes" ] ; then
|
|
3940 ] AC_DEFINE(HAVE_LIBDB) [
|
|
3941 fi
|
|
3942 if [ "${with_database_berkdb}" != "yes" ] ; then
|
|
3943 if [ "${have_libdb}" = "yes" ] ; then
|
|
3944 with_database_berkdb=yes
|
|
3945 else
|
|
3946 ] AC_FUNC_CHECK(dbopen, have_dbopen=yes, have_dbopen=no) [
|
|
3947 if [ "${have_dbopen}" = "yes" ] ; then
|
|
3948 with_database_berkdb=yes
|
|
3949 else
|
|
3950 with_database_berkdb=no
|
|
3951 fi
|
|
3952 fi
|
|
3953 fi
|
|
3954 fi
|
|
3955 if [ "${with_database_berkdb}" = "yes" ]; then
|
|
3956 ] AC_DEFINE(HAVE_BERKELEY_DB) [
|
|
3957 fi
|
|
3958
|
|
3959 if [ "${with_database_gnudbm}" != "no" ] ; then
|
|
3960 ] AC_HAVE_LIBRARY(-lgdbm, have_libgdbm=yes, have_libgdbm=no) [
|
|
3961 if [ "${have_libgdbm}" = "yes" ] ; then
|
|
3962 ] AC_DEFINE(HAVE_LIBGDBM) [
|
|
3963 fi
|
|
3964 if [ "${with_database_gnudbm}" != "yes" ] ; then
|
|
3965 if [ "${have_libgdbm}" = "yes" ] ; then
|
|
3966 with_database_gnudbm=yes
|
|
3967 else
|
|
3968 with_database_gnudbm=no
|
|
3969 fi
|
|
3970 fi
|
|
3971 fi
|
|
3972 if [ "${with_database_gnudbm}" = "yes" ]; then
|
|
3973 ] AC_DEFINE(HAVE_DBM) [
|
|
3974 ] AC_DEFINE(HAVE_GNU_DBM) [
|
|
3975 with_database_dbm=no
|
|
3976 fi
|
|
3977
|
|
3978 if [ "${with_database_dbm}" != "no" ] ; then
|
|
3979 ] AC_HAVE_LIBRARY(-ldbm, have_libdbm=yes, have_libdbm=no) [
|
|
3980 if [ "${have_libdbm}" = "yes" ] ; then
|
|
3981 ] AC_DEFINE(HAVE_LIBDBM) [
|
|
3982 fi
|
|
3983 if [ "${with_database_dbm}" != "yes" ] ; then
|
|
3984 if [ "${have_libdbm}" = "yes" ] ; then
|
|
3985 with_database_dbm=yes
|
|
3986 else
|
|
3987 ] AC_FUNC_CHECK(dbm_open, have_dbm_open=yes, have_dbm_open=no) [
|
|
3988 if [ "${have_dbm_open}" = "yes" ] ; then
|
|
3989 with_database_dbm=yes
|
|
3990 else
|
|
3991 with_database_dbm=no
|
|
3992 fi
|
|
3993 fi
|
|
3994 fi
|
|
3995 fi
|
|
3996 if [ "${with_database_dbm}" = "yes" ]; then
|
|
3997 ] AC_DEFINE(HAVE_DBM) [
|
|
3998 fi
|
|
3999
|
|
4000
|
|
4001 ############################################################################
|
|
4002 # #
|
|
4003 # Substitute into Makefile and config.h #
|
|
4004 # #
|
|
4005 ############################################################################
|
|
4006
|
|
4007 ### Specify what sort of things we'll be editing into Makefile and config.h.
|
|
4008 ### Use configuration here uncanonicalized to avoid exceeding size limits.
|
|
4009 ]
|
|
4010 AC_SUBST(version)
|
|
4011 AC_SUBST(configuration)
|
|
4012 AC_SUBST(canonical)
|
|
4013 AC_SUBST(srcdir)
|
|
4014 AC_SUBST(prefix)
|
|
4015 AC_SUBST(exec_prefix)
|
|
4016 AC_SUBST(bindir)
|
|
4017 AC_SUBST(datadir)
|
|
4018 AC_SUBST(statedir)
|
|
4019 AC_SUBST(libdir)
|
|
4020 AC_SUBST(mandir)
|
|
4021 AC_SUBST(infodir)
|
|
4022 AC_SUBST(infodir_user_defined)
|
|
4023 AC_SUBST(lispdir)
|
|
4024 AC_SUBST(lispdir_user_defined)
|
|
4025 AC_SUBST(sitelispdir)
|
|
4026 AC_SUBST(etcdir)
|
|
4027 AC_SUBST(etcdir_user_defined)
|
|
4028 AC_SUBST(lockdir)
|
|
4029 AC_SUBST(lockdir_user_defined)
|
|
4030 AC_SUBST(archlibdir)
|
|
4031 AC_SUBST(archlibdir_user_defined)
|
|
4032 AC_SUBST(docdir)
|
|
4033 AC_SUBST(bitmapdir)
|
|
4034 AC_SUBST(c_switch_system)
|
|
4035 AC_SUBST(c_switch_machine)
|
|
4036 AC_SUBST(libsrc_libs)
|
|
4037 AC_SUBST(LD_SWITCH_X_SITE)
|
|
4038 AC_SUBST(LD_SWITCH_X_SITE_AUX)
|
|
4039 AC_SUBST(C_SWITCH_X_SITE)
|
|
4040 AC_SUBST(LD_SWITCH_SITE)
|
|
4041 AC_SUBST(C_SWITCH_SITE)
|
|
4042 AC_SUBST(CFLAGS)
|
|
4043 AC_SUBST(native_sound_lib)
|
|
4044 AC_SUBST(machfile)
|
|
4045 AC_SUBST(opsysfile)
|
|
4046 AC_SUBST(RANLIB)
|
|
4047 AC_SUBST(dynodump_arch)
|
|
4048
|
|
4049 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${canonical}\"")
|
|
4050 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
|
|
4051 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
|
|
4052 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
|
|
4053 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX})
|
|
4054 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})
|
|
4055 AC_DEFINE_UNQUOTED(LD_SWITCH_SITE, ${LD_SWITCH_SITE})
|
|
4056 AC_DEFINE_UNQUOTED(C_SWITCH_SITE, ${C_SWITCH_SITE})
|
|
4057 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC})
|
|
4058
|
|
4059 [
|
|
4060
|
|
4061 # Note: as a general rule, *only* define things here that are not
|
|
4062 # autodetected. For things that are autodetected, define them
|
|
4063 # at the point where the autodetection occurs or would occur,
|
|
4064 # so that the user gets immediate feedback on the results of the
|
|
4065 # autodetection.
|
|
4066
|
|
4067 if [ x"${puresize}" != x ] ; then
|
|
4068 ] AC_DEFINE_UNQUOTED(PURESIZE, ${puresize}) [
|
|
4069 fi
|
|
4070 if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then
|
|
4071 ] AC_DEFINE(HAVE_X_WINDOWS) [
|
|
4072 fi
|
|
4073 if [ "${HAVE_XFREE386}" = "yes" ] ; then
|
|
4074 ] AC_DEFINE(HAVE_XFREE386) [
|
|
4075 fi
|
|
4076 if [ "${GNU_MALLOC}" = "yes" ] ; then
|
|
4077 ] AC_DEFINE(GNU_MALLOC) [
|
|
4078 elif [ "${use_system_malloc}" = "yes" ]; then
|
|
4079 ] AC_DEFINE(USE_SYSTEM_MALLOC) [
|
|
4080 fi
|
|
4081 if [ "${rel_alloc}" = "yes" ] ; then
|
|
4082 ] AC_DEFINE(REL_ALLOC) [
|
|
4083 fi
|
|
4084 if [ "${LISP_FLOAT_TYPE}" = "yes" ] ; then
|
|
4085 ] AC_DEFINE(LISP_FLOAT_TYPE) [
|
|
4086 fi
|
|
4087 if [ "${with_motif}" = "yes" ] ; then
|
|
4088 ] AC_DEFINE(LWLIB_USES_MOTIF) [
|
|
4089 fi
|
|
4090 if [ "${with_menubars}" = "lucid" ] ; then
|
|
4091 ] AC_DEFINE(LWLIB_MENUBARS_LUCID) [
|
|
4092 ] AC_DEFINE(HAVE_MENUBARS) [
|
|
4093 fi
|
|
4094 if [ "${with_menubars}" = "motif" ]; then
|
|
4095 ] AC_DEFINE(LWLIB_MENUBARS_MOTIF) [
|
|
4096 ] AC_DEFINE(HAVE_MENUBARS) [
|
|
4097 fi
|
|
4098 if [ "${with_scrollbars}" = "lucid" ] ; then
|
|
4099 ] AC_DEFINE(LWLIB_SCROLLBARS_LUCID) [
|
|
4100 ] AC_DEFINE(HAVE_SCROLLBARS) [
|
|
4101 fi
|
|
4102 if [ "${with_scrollbars}" = "motif" ] ; then
|
|
4103 ] AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) [
|
|
4104 ] AC_DEFINE(HAVE_SCROLLBARS) [
|
|
4105 fi
|
|
4106 if [ "${with_scrollbars}" = "athena" ] ; then
|
|
4107 ] AC_DEFINE(LWLIB_SCROLLBARS_ATHENA) [
|
|
4108 ] AC_DEFINE(HAVE_SCROLLBARS) [
|
|
4109 fi
|
|
4110 if [ "${with_dialogs}" = "motif" ] ; then
|
|
4111 ] AC_DEFINE(LWLIB_DIALOGS_MOTIF) [
|
|
4112 ] AC_DEFINE(HAVE_DIALOGS) [
|
|
4113 fi
|
|
4114 if [ "${with_dialogs}" = "athena" ] ; then
|
|
4115 ] AC_DEFINE(LWLIB_DIALOGS_ATHENA) [
|
|
4116 ] AC_DEFINE(HAVE_DIALOGS) [
|
|
4117 fi
|
|
4118 if [ "${with_toolbars}" = "yes" ] ; then
|
|
4119 ] AC_DEFINE(HAVE_TOOLBARS) [
|
|
4120 fi
|
|
4121 if [ "${with_tty}" = "yes" ] ; then
|
|
4122 ] AC_DEFINE(HAVE_TTY) [
|
|
4123 fi
|
|
4124 if [ "${with_tooltalk}" = "yes" ] ; then
|
|
4125 ] AC_DEFINE(TOOLTALK) [
|
|
4126 fi
|
|
4127 if [ "$with_mocklisp" = "yes" ]; then
|
|
4128 ] AC_DEFINE(MOCKLISP_SUPPORT) [
|
|
4129 fi
|
|
4130 if [ "${with_sparcworks}" = "yes" ] ; then
|
|
4131 ] AC_DEFINE(SUNPRO) [
|
|
4132 fi
|
|
4133 if [ "${usage_tracking}" = "yes" ] ; then
|
|
4134 ] AC_DEFINE(USAGE_TRACKING) [
|
|
4135 fi
|
|
4136 if [ "${with_energize}" = "yes" ] ; then
|
|
4137 ] AC_DEFINE(ENERGIZE) [
|
|
4138 if [ "${energize_version}" = "2.X" ] ; then
|
|
4139 ] AC_DEFINE(ENERGIZE_2) [
|
|
4140 elif [ "${energize_version}" = "3.X" ] ; then
|
|
4141 ] AC_DEFINE(ENERGIZE_3) [
|
|
4142 fi
|
|
4143 fi
|
|
4144 if [ "${need_dynodump}" = "yes" ] ; then
|
|
4145 ] AC_DEFINE(DYNODUMP) [
|
|
4146 fi
|
|
4147 if [ "${need_xildoff}" = "yes" ] ; then
|
|
4148 ] AC_DEFINE(NEED_XILDOFF) [
|
|
4149 fi
|
|
4150 if [ "${with_gcc}" = "yes" ] ; then
|
|
4151 ] AC_DEFINE(USE_GCC) [
|
|
4152 fi
|
|
4153 if [ "${with_lcc}" = "yes" ] ; then
|
|
4154 ] AC_DEFINE(USE_LCC) [
|
|
4155 fi
|
|
4156 if [ "${with_socks}" = "yes" ]; then
|
|
4157 ] AC_DEFINE(HAVE_SOCKS) [
|
|
4158 fi
|
|
4159 if [ "${with_term}" = "yes" ]; then
|
|
4160 ] AC_DEFINE(HAVE_TERM) [
|
|
4161 fi
|
|
4162 if [ "${with_epoch}" = "yes" ]; then
|
|
4163 ] AC_DEFINE(EPOCH) [
|
|
4164 fi
|
|
4165 if [ "${with_sound}" = "native" -o "${with_sound}" = "both" ]; then
|
|
4166 ] AC_DEFINE(HAVE_NATIVE_SOUND) [
|
|
4167 fi
|
|
4168 if [ "${with_sound}" = "nas" -o "${with_sound}" = "both" ]; then
|
|
4169 ] AC_DEFINE(HAVE_NAS_SOUND) [
|
|
4170 fi
|
|
4171 if [ "${old_nas}" = "true" ] ; then
|
|
4172 ] AC_DEFINE(NAS_NO_ERROR_JUMP) [
|
|
4173 fi
|
|
4174 if [ "${external_widget}" = "yes" ]; then
|
|
4175 ] AC_DEFINE(EXTERNAL_WIDGET) [
|
|
4176 fi
|
|
4177 if [ "${with_gnu_make}" = "yes" ]; then
|
|
4178 ] AC_DEFINE(USE_GNU_MAKE) [
|
|
4179 fi
|
|
4180 if [ "${no_doc_file}" = "yes" ]; then
|
|
4181 ] AC_DEFINE(NO_DOC_FILE) [
|
|
4182 fi
|
|
4183 if [ "${const_is_losing}" = "yes" ]; then
|
|
4184 ] AC_DEFINE(CONST_IS_LOSING) [
|
|
4185 fi
|
|
4186 if [ "${use_assertions}" = "yes" ]; then
|
|
4187 ] AC_DEFINE(USE_ASSERTIONS) [
|
|
4188 fi
|
|
4189 if [ "${error_check_extents}" = "yes" ]; then
|
|
4190 ] AC_DEFINE(ERROR_CHECK_EXTENTS) [
|
|
4191 fi
|
|
4192 if [ "${error_check_typecheck}" = "yes" ]; then
|
|
4193 ] AC_DEFINE(ERROR_CHECK_TYPECHECK) [
|
|
4194 fi
|
|
4195 if [ "${error_check_bufpos}" = "yes" ]; then
|
|
4196 ] AC_DEFINE(ERROR_CHECK_BUFPOS) [
|
|
4197 fi
|
|
4198 if [ "${error_check_gc}" = "yes" ]; then
|
|
4199 ] AC_DEFINE(ERROR_CHECK_GC) [
|
|
4200 fi
|
|
4201 if [ "${error_check_malloc}" = "yes" ]; then
|
|
4202 ] AC_DEFINE(ERROR_CHECK_MALLOC) [
|
|
4203 fi
|
|
4204 if [ "${debug}" = "yes" ]; then
|
|
4205 ] AC_DEFINE(DEBUG_XEMACS) [
|
|
4206 fi
|
|
4207 if [ "${memory_usage_stats}" = "yes" ]; then
|
|
4208 ] AC_DEFINE(MEMORY_USAGE_STATS) [
|
|
4209 fi
|
|
4210 if [ "${use_union_type}" != "yes" ]; then
|
|
4211 ] AC_DEFINE(NO_UNION_TYPE) [
|
|
4212 fi
|
|
4213 if [ "${quantify}" = "yes" ]; then
|
|
4214 ] AC_DEFINE(QUANTIFY) [
|
|
4215 fi
|
|
4216
|
|
4217 # ====================== Developer's configuration =======================
|
|
4218
|
|
4219 # The following assignments make sense if you're running XEmacs on a single
|
|
4220 # machine, one version at a time, and you want changes to the lisp and etc
|
|
4221 # directories in the source tree to show up immediately in your working
|
|
4222 # environment. It saves a great deal of disk space by not duplicating the
|
|
4223 # lisp and etc directories.
|
|
4224
|
|
4225 if [ "$run_in_place" = "yes" ]; then
|
|
4226 prefix='${srcdir}'
|
|
4227 exec_prefix='${srcdir}'
|
|
4228 bindir='${exec_prefix}/bin/${configuration}'
|
|
4229 lispdir='${srcdir}/lisp'
|
|
4230 sitelispdir='${lispdir}/site-lisp'
|
|
4231 etcdir='${srcdir}/etc'
|
|
4232 lockdir='${srcdir}/lock'
|
|
4233 archlibdir='${srcdir}/lib-src/${configuration}'
|
|
4234 infodir='${srcdir}/info'
|
|
4235 fi
|
|
4236 #elif [ "$single_tree" = "1" ]; then
|
|
4237 # if [ "$exec_prefix_specified" = "" ]; then
|
|
4238 # exec_prefix='${prefix}'
|
|
4239 # fi
|
|
4240 # if [ "$bindir_specified" = "" ]; then
|
|
4241 # bindir='${exec_prefix}/bin/${configuration}'
|
|
4242 # fi
|
|
4243 # if [ "$datadir_specified" = "" ]; then
|
|
4244 # datadir='${prefix}/common'
|
|
4245 # fi
|
|
4246 # if [ "$statedir_specified" = "" ]; then
|
|
4247 # statedir='${prefix}/common'
|
|
4248 # fi
|
|
4249 # if [ "$libdir_specified" = "" ]; then
|
|
4250 # libdir='${bindir}'
|
|
4251 # fi
|
|
4252 # if [ "$lispdir_specified" = "" ]; then
|
|
4253 # lispdir='${prefix}/common/lisp'
|
|
4254 # fi
|
|
4255 # if [ "$locallisppath_specified" = "" ]; then
|
|
4256 # locallisppath='${prefix}/common/site-lisp'
|
|
4257 # fi
|
|
4258 # if [ "$lockdir_specified" = "" ]; then
|
|
4259 # lockdir='${prefix}/common/lock'
|
|
4260 # fi
|
|
4261 # if [ "$archlibdir_specified" = "" ]; then
|
|
4262 # archlibdir='${libdir}/etc'
|
|
4263 # fi
|
|
4264 # if [ "$etcdir_specified" = "" ]; then
|
|
4265 # etcdir='${prefix}/common/data'
|
|
4266 # fi
|
|
4267 # if [ "$docdir_specified" = "" ]; then
|
|
4268 # docdir='${prefix}/common/data'
|
|
4269 # fi
|
|
4270 #fi
|
|
4271
|
|
4272 ############################################################################
|
|
4273 # #
|
|
4274 # Report on what we decided to do #
|
|
4275 # #
|
|
4276 ############################################################################
|
|
4277
|
|
4278 echo "
|
|
4279
|
|
4280 Configured for \`${canonical}'.
|
|
4281
|
|
4282 Where should the build process find the source code? ${srcdir}
|
|
4283 What installation prefix should install use? ${prefix}
|
|
4284 What operating system and machine description files should XEmacs use?
|
|
4285 \`${opsysfile}' and \`${machfile}'
|
|
4286 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
|
|
4287 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
|
|
4288 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
|
|
4289 What window system should XEmacs use? ${window_system}${x_includes+
|
|
4290 Where do we find X Windows header files? }${x_includes}${x_libraries+
|
|
4291 Where do we find X Windows libraries? }${x_libraries}"
|
|
4292
|
|
4293 if [ -n "$site_includes" ]; then
|
|
4294 echo " Additional header files: ${site_includes}"
|
|
4295 fi
|
|
4296
|
|
4297 if [ -n "$site_libraries" ] && [ -n "$site_runtime_libraries" ]; then
|
|
4298 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
|
|
4299 elif [ -n "$site_libraries" ]; then
|
|
4300 echo " Additional libraries: ${site_libraries}"
|
|
4301 elif [ -n "$site_runtime_libraries" ]; then
|
|
4302 echo " Additional libraries: ${site_runtime_libraries}"
|
|
4303 fi
|
|
4304
|
|
4305
|
|
4306 if [ "$with_socks" = "yes" ]; then
|
|
4307 echo " Compiling in support for SOCKS."
|
|
4308 fi
|
|
4309 if [ "$with_term" = "yes" ]; then
|
|
4310 echo " Compiling in support for TERM."
|
|
4311 fi
|
|
4312 if [ "$with_xauth" = "yes" ]; then
|
|
4313 echo " Compiling in support for XAUTH."
|
|
4314 fi
|
|
4315 if [ "$with_xpm" = "yes" ]; then
|
|
4316 echo " Compiling in support for XPM."
|
|
4317 fi
|
|
4318 if [ "$with_xmu" != "yes" ] && [ "$window_system" != "none" ]; then
|
|
4319 echo " No Xmu; substituting equivalent routines."
|
|
4320 fi
|
|
4321 if [ "$with_xface" = "yes" ]; then
|
|
4322 echo " Compiling in support for X-Face headers."
|
|
4323 fi
|
|
4324 if [ "$with_gif" = "yes" ]; then
|
|
4325 echo " Compiling in support for GIF image conversion."
|
|
4326 fi
|
|
4327 if [ "$with_jpeg" = "yes" ]; then
|
|
4328 echo " Compiling in support for JPEG image conversion."
|
|
4329 fi
|
|
4330 if [ "$with_png" = "yes" ] || [ "$with_png" = "gnuz" ]; then
|
|
4331 echo " Compiling in support for PNG image conversion."
|
|
4332 fi
|
|
4333 if [ "$with_png" = "gnuz" ]; then
|
|
4334 echo " (Using -lgz instead of -lz.)"
|
|
4335 fi
|
|
4336 if [ "$with_tiff" = "yes" ]; then
|
|
4337 echo " Compiling in support for TIFF image conversion (not implemented)."
|
|
4338 fi
|
|
4339 if [ "$with_epoch" = "yes" ]; then
|
|
4340 echo " Compiling in extra Epoch compatibility."
|
|
4341 fi
|
|
4342 if [ "$with_sound" = "nas" ]; then
|
|
4343 echo " Compiling in network sound support."
|
|
4344 fi
|
|
4345 if [ "$with_sound" = "native" ]; then
|
|
4346 echo " Compiling in native sound support."
|
|
4347 fi
|
|
4348 if [ "$with_sound" = "both" ]; then
|
|
4349 echo " Compiling in both network and native sound support."
|
|
4350 fi
|
|
4351 if [ "$old_nas" = true ]; then
|
|
4352 echo " nas library lacks error trapping, will play synchronously"
|
|
4353 fi
|
|
4354 if [ "$with_database_berkdb" = "yes" ]; then
|
|
4355 echo " Compiling in support for Berkeley DB."
|
|
4356 fi
|
|
4357 if [ "$with_database_dbm" = "yes" ]; then
|
|
4358 echo " Compiling in support for DBM."
|
|
4359 fi
|
|
4360 if [ "$with_database_gnudbm" = "yes" ]; then
|
|
4361 echo " Compiling in support for GNU DBM."
|
|
4362 fi
|
|
4363 if [ "$with_ncurses" = "yes" ]; then
|
|
4364 echo " Compiling in support for ncurses."
|
|
4365 fi
|
|
4366 if [ "$with_socks" = "yes" ]; then
|
|
4367 echo " Compiling in support for SOCKS."
|
|
4368 fi
|
|
4369 if [ "$with_tooltalk" = "yes" ]; then
|
|
4370 echo " Compiling in support for ToolTalk."
|
|
4371 fi
|
|
4372 if [ "$with_cde" = "yes" ]; then
|
|
4373 echo " Compiling in support for CDE."
|
|
4374 fi
|
2
|
4375 if [ "$with_offix" = "yes" ]; then
|
|
4376 echo " Compiling in support for OffiX."
|
|
4377 fi
|
0
|
4378 if [ "$with_mocklisp" = "yes" ]; then
|
|
4379 echo " Compiling in support for Mocklisp."
|
|
4380 fi
|
|
4381 if [ "$with_sparcworks" = "yes" ]; then
|
|
4382 echo " Compiling in support for SparcWorks."
|
|
4383 fi
|
|
4384 if [ "$with_energize" = "yes" ]; then
|
|
4385 echo " Compiling in support for Lucid Energize (doesn't currently work)."
|
|
4386 fi
|
|
4387 if [ "$with_menubars" = "lucid" ]; then
|
|
4388 echo " Using the Lucid menubar."
|
|
4389 fi
|
|
4390 if [ "$with_menubars" = "motif" ]; then
|
|
4391 echo " Using the Motif menubar."
|
|
4392 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
|
|
4393 echo " that you use the Lucid menubar instead. Re-run"
|
|
4394 echo " configure with --with-menubars='lucid'."
|
|
4395 fi
|
|
4396 if [ "$with_scrollbars" = "lucid" ]; then
|
|
4397 echo " Using the Lucid scrollbar."
|
|
4398 fi
|
|
4399 if [ "$with_scrollbars" = "motif" ]; then
|
|
4400 echo " Using the Motif scrollbar."
|
|
4401 fi
|
|
4402 if [ "$with_scrollbars" = "athena" ]; then
|
|
4403 echo " Using the Athena scrollbar."
|
|
4404 fi
|
|
4405 if [ "$with_dialogs" = "motif" ]; then
|
|
4406 echo " Using the Motif dialog boxes."
|
|
4407 fi
|
|
4408 if [ "$with_dialogs" = "athena" ]; then
|
|
4409 echo " Using the Athena dialog boxes."
|
|
4410 fi
|
|
4411 if [ "${use_union_type}" = "yes" ]; then
|
|
4412 echo " Using the union type for Lisp_Objects."
|
|
4413 fi
|
|
4414 if [ "${debug}" = "yes" ]; then
|
|
4415 echo " Compiling in extra code for debugging."
|
|
4416 fi
|
|
4417 if [ "${memory_usage_stats}" = "yes" ]; then
|
|
4418 echo " Compiling in code for checking XEmacs memory usage."
|
|
4419 fi
|
|
4420 if [ "$usage_tracking" = "yes" ]; then
|
|
4421 echo " Compiling with usage tracking active (Sun internal)."
|
|
4422 fi
|
|
4423 echo "
|
|
4424 "
|
|
4425
|
|
4426 ############################################################################
|
|
4427 # #
|
|
4428 # Now generate! #
|
|
4429 # #
|
|
4430 ############################################################################
|
|
4431
|
|
4432 # This has to be called in order for this variable to get into config.status
|
|
4433 ] AC_SUBST(internal_makefile_list) [
|
|
4434 # Remove any trailing slashes in these variables.
|
|
4435 test -n "${prefix}" &&
|
|
4436 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
4437 test -n "${exec_prefix}" &&
|
|
4438 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
4439 ]
|
|
4440 AC_OUTPUT($internal_makefile_list) [
|
|
4441 # Build:
|
|
4442 # src/Makefile from ${srcdir}/src/Makefile.in
|
|
4443 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
|
|
4444 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
|
|
4445 # man/Makefile from ${srcdir}/man/Makefile.in
|
|
4446 # man/*/Makefile from ${srcdir}/man/*/Makefile.in
|
|
4447 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
|
|
4448 # and possibly
|
|
4449 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
|
|
4450 # This must be done after src/config.h is built, since we rely on that
|
|
4451 # file. Only do the build if "config.status" is present, since its
|
|
4452 # non-presence indicates an error occured.
|
|
4453 status=$?
|
|
4454 if [ ! -f ./config.status ]; then
|
|
4455 exit $status
|
|
4456 fi
|
|
4457 topsrcdir=${srcdir}
|
|
4458 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
|
|
4459 # because some cpps get confused by them.
|
|
4460 # Really we should preserve them somehow into Makefile,
|
|
4461 # but that is beyond my level of shell programming.
|
|
4462 makefile_command='echo "creating src/Makefile";
|
|
4463 topsrcdir='"${topsrcdir}"';
|
|
4464 ( cd ./src;
|
|
4465 rm -f junk.c;
|
|
4466 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4467 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4468 < junk.cpp '\
|
|
4469 ' sed -e '\''s/^#.*//'\'' '\
|
|
4470 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4471 ' -e '\''s/^ / /'\'' '\
|
|
4472 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4473 ' > Makefile.new;
|
|
4474 chmod 444 Makefile.new;
|
|
4475 mv -f Makefile.new Makefile;
|
|
4476 rm -f junk.c junk.cpp;
|
|
4477 )'
|
|
4478 eval `echo $makefile_command`
|
|
4479 lwlib_makefile_command='echo "creating lwlib/Makefile";
|
|
4480 topsrcdir='"${topsrcdir}"';
|
|
4481 ( cd ./lwlib;
|
|
4482 rm -f junk.c;
|
|
4483 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4484 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4485 < junk.cpp '\
|
|
4486 ' sed -e '\''s/^#.*//'\'' '\
|
|
4487 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4488 ' -e '\''s/^ / /'\'' '\
|
|
4489 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4490 ' > Makefile.new;
|
|
4491 chmod 444 Makefile.new;
|
|
4492 mv -f Makefile.new Makefile;
|
|
4493 rm -f junk.c junk.cpp;
|
|
4494 )'
|
|
4495 eval `echo $lwlib_makefile_command`
|
|
4496 lib_src_makefile_command='echo "creating lib-src/Makefile";
|
|
4497 topsrcdir='"${topsrcdir}"';
|
|
4498 ( cd ./lib-src;
|
|
4499 rm -f junk.c;
|
|
4500 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4501 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4502 < junk.cpp '\
|
|
4503 ' sed -e '\''s/^#.*//'\'' '\
|
|
4504 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4505 ' -e '\''s/^ / /'\'' '\
|
|
4506 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4507 ' > Makefile.new;
|
|
4508 chmod 444 Makefile.new;
|
|
4509 mv -f Makefile.new Makefile;
|
|
4510 rm -f junk.c junk.cpp;
|
|
4511 )'
|
|
4512 eval `echo $lib_src_makefile_command`
|
|
4513 dynodump_makefile_command='echo "creating dynodump/Makefile";
|
|
4514 topsrcdir='"${topsrcdir}"';
|
|
4515 ( cd ./dynodump;
|
|
4516 rm -f junk.c;
|
|
4517 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4518 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4519 < junk.cpp '\
|
|
4520 ' sed -e '\''s/^#.*//'\'' '\
|
|
4521 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4522 ' -e '\''s/^ / /'\'' '\
|
|
4523 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4524 ' > Makefile.new;
|
|
4525 chmod 444 Makefile.new;
|
|
4526 mv -f Makefile.new Makefile;
|
|
4527 rm -f junk.c junk.cpp;
|
|
4528 )'
|
|
4529 eval `echo $dynodump_makefile_command`
|
|
4530 man_makefile_command='echo "creating man/Makefile";
|
|
4531 topsrcdir='"${topsrcdir}"';
|
|
4532 ( cd ./man;
|
|
4533 rm -f junk.c;
|
|
4534 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4535 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4536 < junk.cpp '\
|
|
4537 ' sed -e '\''s/^#.*//'\'' '\
|
|
4538 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4539 ' -e '\''s/^ / /'\'' '\
|
|
4540 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4541 ' > Makefile.new;
|
|
4542 chmod 444 Makefile.new;
|
|
4543 mv -f Makefile.new Makefile;
|
|
4544 rm -f junk.c junk.cpp;
|
|
4545 )'
|
|
4546 eval `echo $man_makefile_command`
|
|
4547 if [ "${with_energize}" = "yes" ]; then
|
|
4548 energize_makefile_command='echo "creating lwlib/energize/Makefile";
|
|
4549 topsrcdir='"${topsrcdir}"';
|
|
4550 ( cd ./lwlib/energize;
|
|
4551 rm -f junk.c;
|
|
4552 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4553 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4554 < junk.cpp '\
|
|
4555 ' sed -e '\''s/^#.*//'\'' '\
|
|
4556 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4557 ' -e '\''s/^ / /'\'' '\
|
|
4558 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4559 ' > Makefile.new;
|
|
4560 chmod 444 Makefile.new;
|
|
4561 mv -f Makefile.new Makefile;
|
|
4562 rm -f junk.c junk.cpp;
|
|
4563 )'
|
|
4564 eval `echo $energize_makefile_command`
|
|
4565 fi
|
|
4566 # AC-OUTPUT has created `config.status' already. We need to add the
|
|
4567 # above commands to re-create `src/Makefile', `lwlib/Makefile',
|
|
4568 # `lib-src/Makefile', `dynodump/Makefile', `man/Makefile', and possibly
|
|
4569 # `lwlib/energize/Makefile', and we need to insert them before the final
|
|
4570 # "exit 0" which appears at the end of `config.status'.
|
|
4571 <config.status sed -e 's/^exit 0$//' >config.new
|
|
4572 echo $makefile_command >>config.new
|
|
4573 echo $lwlib_makefile_command >>config.new
|
|
4574 echo $lib_src_makefile_command >>config.new
|
|
4575 echo $dynodump_makefile_command >>config.new
|
|
4576 echo $man_makefile_command >>config.new
|
|
4577 if [ "${with_energize}" = "yes" ]; then
|
|
4578 echo $energize_makefile_command >>config.new
|
|
4579 fi
|
|
4580 echo exit 0 >>config.new
|
|
4581 mv -f config.new config.status
|
|
4582 chmod +x config.status
|
|
4583 # Don't let the fact that we just rewrote config.status make Makefile think
|
|
4584 # that it is now newer. We have just rewritten all of the Makefiles as well.
|
|
4585 MFS="Makefile src/Makefile src/Makefile.in lib-src/Makefile lib-src/Makefile.in dynodump/Makefile dynodump/Makefile.in lwlib/Makefile lwlib/Makefile.in man/Makefile man/Makefile.in"
|
|
4586 for file in $MFS; do
|
|
4587 chmod a+w $file; touch $file; chmod 444 $file
|
|
4588 done
|
|
4589
|
|
4590 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
|
|
4591 echo creating src/gdbinit
|
|
4592 echo source $topsrcdir/src/gdbinit > src/gdbinit
|
|
4593 fi
|
|
4594
|
|
4595 exit 0
|
|
4596
|
|
4597 # I've removed "mode: ksh" from the following. ksh mode sucks for
|
|
4598 # editing this file. (It seems that ksh mode sucks in general.
|
|
4599 # I wonder if the new 19.29 shell-script mode is better.)
|
|
4600
|
|
4601 # Local Variables:
|
|
4602 # compile-command: "autoconf"
|
|
4603 # End:
|
|
4604 ]
|