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