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
|
28
|
921 ## Has the user specified a value for RAW_PURESIZE?
|
0
|
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.
|
28
|
1447 for dir in lisp 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
|
|
1455 #### Make srcdir absolute, if it isn't already. It's important to
|
|
1456 #### avoid running the path through pwd unnecessary, since pwd can
|
|
1457 #### give you automounter prefixes, which can go away.
|
|
1458 case "${srcdir}" in
|
|
1459 /* ) ;;
|
|
1460 . )
|
|
1461 ## We may be able to use the $PWD environment variable to make this
|
|
1462 ## absolute. But sometimes PWD is inaccurate.
|
|
1463 if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then
|
|
1464 srcdir="$PWD"
|
|
1465 else
|
|
1466 srcdir="`(cd ${srcdir}; pwd)`"
|
|
1467 fi
|
|
1468 ;;
|
|
1469 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
|
|
1470 esac
|
|
1471
|
|
1472 #### Check if the source directory already has a configured system in it.
|
|
1473 if [ `pwd` != `sh -c cd ${srcdir} && pwd` ] \
|
|
1474 && [ -f "${srcdir}/src/config.h" ] ; then
|
|
1475 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
|
|
1476 echo " as a build directory right now; it has been configured in its own"
|
|
1477 echo " right. To configure in another directory as well, you MUST"
|
|
1478 echo " use GNU make. If you do not have GNU make, then you must"
|
|
1479 echo " now do \`make distclean' in ${srcdir},"
|
|
1480 echo " and then run ${progname} again.") >&2
|
|
1481 extrasub='/^VPATH[ ]*=/c\
|
|
1482 vpath %.c $(srcdir)\
|
|
1483 vpath %.h $(srcdir)\
|
|
1484 vpath %.y $(srcdir)\
|
|
1485 vpath %.l $(srcdir)\
|
|
1486 vpath %.s $(srcdir)\
|
|
1487 vpath %.in $(srcdir)'
|
|
1488 fi
|
|
1489
|
|
1490 ### Make the necessary directories, if they don't exist.
|
|
1491 for dir in ./src ./lib-src ./dynodump ./man ./lwlib ./lock ; do
|
|
1492 if [ ! -d ${dir} ]; then
|
|
1493 mkdir ${dir}
|
|
1494 fi
|
|
1495 done
|
|
1496 if [ "${with_energize}" = "yes" ] && [ ! -d ./lwlib/energize ] ; then
|
|
1497 mkdir ./lwlib/energize
|
|
1498 fi
|
|
1499
|
|
1500 ############################################################################
|
|
1501 # #
|
|
1502 # Determine the s&m files to use #
|
|
1503 # #
|
|
1504 ############################################################################
|
|
1505
|
|
1506 #### Given the configuration name, set machfile and opsysfile to the
|
|
1507 #### names of the m/*.h and s/*.h files we should use.
|
|
1508
|
|
1509 ### Canonicalize the configuration name.
|
|
1510 echo "checking the configuration name"
|
|
1511 # allow -energize prefix on configuration name
|
|
1512 internal_configuration=`echo ${configuration} | sed 's/-energize//'`
|
|
1513 # allow --sparcworks prefix on configuration name
|
|
1514 internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'`
|
|
1515 if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else
|
|
1516 exit $?
|
|
1517 fi
|
|
1518
|
|
1519 ### If you add support for a new configuration, add code to this
|
|
1520 ### switch statement to recognize your configuration name and select
|
|
1521 ### the appropriate operating system and machine description files.
|
|
1522
|
|
1523 ### You would hope that you could choose an m/*.h file pretty much
|
|
1524 ### based on the machine portion of the configuration name, and an s-
|
|
1525 ### file based on the operating system portion. However, it turns out
|
|
1526 ### that each m/*.h file is pretty manufacturer-specific - for
|
|
1527 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
|
|
1528 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
|
|
1529 ### machines. So we basically have to have a special case for each
|
|
1530 ### configuration name.
|
|
1531 ###
|
|
1532 ### As far as handling version numbers on operating systems is
|
|
1533 ### concerned, make sure things will fail in a fixable way. If
|
|
1534 ### /etc/MACHINES doesn't say anything about version numbers, be
|
|
1535 ### prepared to handle anything reasonably. If version numbers
|
|
1536 ### matter, be sure /etc/MACHINES says something about it.
|
|
1537 ###
|
|
1538 ### Eric Raymond says we should accept strings like "sysvr4" to mean
|
|
1539 ### "System V Release 4"; he writes, "The old convention encouraged
|
|
1540 ### confusion between `system' and `release' levels'."
|
8
|
1541 ###
|
|
1542 ### We rely on cpp to generate makefiles from Makefile.in.in templates.
|
|
1543 ### There is at least one drawback to that. Since cpp generally has
|
|
1544 ### built-in macro definitions like `#define unix' or `#define i386',
|
|
1545 ### we must be careful to prevent it from substituting these occurences
|
|
1546 ### in certain places in the makefiles. Pathnames for architecture-
|
|
1547 ### specific files come to mind.
|
|
1548 ### This is where CPPFLAGS_MAKEFILEGEN comes in. We try to selectively
|
|
1549 ### disable (potentially) predefined macros that we find to be part of
|
|
1550 ### the configuration string.
|
|
1551 ### This is but a poor method to help us fight off cpp, but it covers
|
|
1552 ### those cases that used to bite me. <mdiers@logware.de>
|
|
1553
|
|
1554 CPPFLAGS_MAKEFILEGEN="" # we normally do not need any extra flags
|
0
|
1555
|
|
1556 machine='' opsys='' unported=no need_dynodump=no
|
|
1557 case "${canonical}" in
|
|
1558
|
|
1559 ## NetBSD ports
|
|
1560 *-*-netbsd* )
|
|
1561 opsys=netbsd
|
|
1562 case "${canonical}" in
|
|
1563 sparc-*-netbsd*) machine=sparc ;;
|
|
1564 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
1565 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
|
1566 # Yes, this is somewhat bogus.
|
|
1567 machine=hp9000s300 ;;
|
|
1568 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
1569 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
|
1570 esac
|
|
1571 ;;
|
|
1572
|
|
1573 ## Acorn RISCiX:
|
|
1574 arm-acorn-riscix1.1* )
|
|
1575 machine=acorn opsys=riscix1-1
|
|
1576 ;;
|
|
1577 arm-acorn-riscix1.2* | arm-acorn-riscix )
|
|
1578 machine=acorn opsys=riscix1-2
|
|
1579 ;;
|
|
1580
|
|
1581 ## Alliant machines
|
|
1582 ## Strictly speaking, we need the version of the alliant operating
|
|
1583 ## system to choose the right machine file, but currently the
|
|
1584 ## configuration name doesn't tell us enough to choose the right
|
|
1585 ## one; we need to give alliants their own operating system name to
|
|
1586 ## do this right. When someone cares, they can help us.
|
|
1587 fx80-alliant-* )
|
|
1588 machine=alliant4 opsys=bsd4-2
|
|
1589 ;;
|
|
1590 i860-alliant-* )
|
|
1591 machine=alliant-2800 opsys=bsd4-3
|
|
1592 ;;
|
|
1593
|
|
1594 ## Alpha (DEC) machines.
|
|
1595 ## XEmacs change: split apart into numerous files.
|
|
1596 alpha-dec-osf1.3 | alpha-dec-osf2* )
|
|
1597 machine=alpha opsys=decosf1-3
|
|
1598 ;;
|
|
1599 alpha-dec-osf1.2 | alpha-dec-osf1* )
|
|
1600 machine=alpha opsys=decosf1-2
|
|
1601 ;;
|
|
1602
|
|
1603 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
|
|
1604 alpha-dec-osf3.[2-9] )
|
|
1605 machine=alpha opsys=decosf3-2
|
|
1606 ;;
|
|
1607 alpha-dec-osf3* )
|
|
1608 machine=alpha opsys=decosf3-1
|
|
1609 ;;
|
|
1610
|
|
1611 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu)
|
|
1612 alpha-dec-osf4* )
|
|
1613 machine=alpha opsys=decosf4-0
|
|
1614 ;;
|
|
1615
|
|
1616 alpha-*-linux* )
|
|
1617 machine=alpha opsys=linux
|
|
1618 ;;
|
|
1619
|
|
1620 ## Altos 3068
|
|
1621 m68*-altos-sysv* )
|
|
1622 machine=altos opsys=usg5-2
|
|
1623 ;;
|
|
1624
|
|
1625 ## Amdahl UTS
|
|
1626 580-amdahl-sysv* )
|
|
1627 machine=amdahl opsys=usg5-2-2
|
|
1628 ;;
|
|
1629
|
|
1630 ## Apollo, Domain/OS
|
|
1631 m68*-apollo-* )
|
|
1632 machine=apollo opsys=bsd4-3
|
|
1633 ;;
|
|
1634
|
|
1635 ## AT&T 3b2, 3b5, 3b15, 3b20
|
|
1636 we32k-att-sysv* )
|
|
1637 machine=att3b opsys=usg5-2-2
|
|
1638 ;;
|
|
1639
|
|
1640 ## AT&T 3b1 - The Mighty Unix PC!
|
|
1641 m68*-att-sysv* )
|
|
1642 machine=7300 opsys=usg5-2-2
|
|
1643 ;;
|
|
1644
|
|
1645 ## Bull dpx20
|
|
1646 rs6000-bull-bosx* )
|
|
1647 machine=ibmrs6000 opsys=aix3-2
|
|
1648 ;;
|
|
1649
|
|
1650 ## Bull dpx2
|
|
1651 m68*-bull-sysv3* )
|
|
1652 machine=dpx2 opsys=usg5-3
|
|
1653 ;;
|
|
1654
|
|
1655 ## Bull sps7
|
|
1656 m68*-bull-sysv2* )
|
|
1657 machine=sps7 opsys=usg5-2
|
|
1658 ;;
|
|
1659
|
|
1660 ## CCI 5/32, 6/32 -- see "Tahoe".
|
|
1661
|
|
1662 ## Celerity
|
|
1663 ## I don't know what configuration name to use for this; config.sub
|
|
1664 ## doesn't seem to know anything about it. Hey, Celerity users, get
|
|
1665 ## in touch with us!
|
|
1666 celerity-celerity-bsd* )
|
|
1667 machine=celerity opsys=bsd4-2
|
|
1668 ;;
|
|
1669
|
|
1670 ## Clipper
|
|
1671 ## What operating systems does this chip run that XEmacs has been
|
|
1672 ## tested on?
|
|
1673 clipper-* )
|
|
1674 machine=clipper
|
|
1675 ## We'll use the catch-all code at the bottom to guess the
|
|
1676 ## operating system.
|
|
1677 ;;
|
|
1678
|
|
1679 ## Convex
|
|
1680 *-convex-bsd* | *-convex-convexos* )
|
|
1681 machine=convex opsys=bsd4-3
|
|
1682 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
|
|
1683 NON_GNU_CPP="cc -E -P"
|
|
1684 ;;
|
|
1685
|
|
1686 ## Cubix QBx/386
|
|
1687 i[3-9]86-cubix-sysv* )
|
|
1688 machine=intel386 opsys=usg5-3
|
|
1689 ;;
|
|
1690
|
|
1691 ## Cydra 5
|
|
1692 cydra*-cydrome-sysv* )
|
|
1693 machine=cydra5 opsys=usg5-3
|
|
1694 ;;
|
|
1695
|
|
1696 ## Data General AViiON Machines
|
16
|
1697 i586-dg-dgux5.4R4* | i586-dg-dgux5.4.4* )
|
|
1698 machine=aviion opsys=dgux5-4r4
|
|
1699 ;;
|
0
|
1700 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
|
|
1701 machine=aviion opsys=dgux5-4r3
|
|
1702 ;;
|
|
1703 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
|
|
1704 machine=aviion opsys=dgux5-4r2
|
|
1705 ;;
|
|
1706 m88k-dg-dgux* )
|
|
1707 machine=aviion opsys=dgux
|
|
1708 ;;
|
|
1709
|
|
1710 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
|
|
1711 machine=pmax opsys=bsd4-2
|
|
1712 ;;
|
|
1713 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
|
|
1714 machine=pmax opsys=bsd4-3
|
|
1715 ;;
|
|
1716 mips-dec-ultrix* )
|
|
1717 machine=pmax opsys=ultrix4-3
|
|
1718 ;;
|
|
1719 mips-dec-osf* )
|
|
1720 machine=pmax opsys=osf1
|
|
1721 ;;
|
|
1722 mips-dec-mach_bsd4.3* )
|
|
1723 machine=pmax opsys=mach-bsd4-3
|
|
1724 ;;
|
|
1725
|
|
1726 ## Motorola Delta machines
|
|
1727 m68k-motorola-sysv* | m68000-motorola-sysv* )
|
|
1728 machine=delta opsys=usg5-3
|
|
1729 if test -z "`type gnucc | grep 'not found'`"
|
|
1730 then
|
|
1731 if test -s /etc/167config
|
|
1732 then CC="gnucc -m68040"
|
|
1733 else CC="gnucc -m68881"
|
|
1734 fi
|
|
1735 else
|
|
1736 if test -z "`type gcc | grep 'not found'`"
|
|
1737 then CC=gcc
|
|
1738 else CC=cc
|
|
1739 fi
|
|
1740 fi
|
|
1741 ;;
|
|
1742 m88k-motorola-sysv4* )
|
|
1743 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
|
|
1744 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
|
|
1745 # I hope there are not other 4.0 versions for this machine
|
|
1746 # which really need usg5-4 instead.
|
|
1747 machine=delta88k opsys=usg5-4-2
|
|
1748 ;;
|
|
1749 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
|
|
1750 machine=delta88k opsys=usg5-3
|
|
1751 ;;
|
|
1752
|
|
1753 ## Dual machines
|
|
1754 m68*-dual-sysv* )
|
|
1755 machine=dual opsys=usg5-2
|
|
1756 ;;
|
|
1757 m68*-dual-uniplus* )
|
|
1758 machine=dual opsys=unipl5-2
|
|
1759 ;;
|
|
1760
|
|
1761 ## Elxsi 6400
|
|
1762 elxsi-elxsi-sysv* )
|
|
1763 machine=elxsi opsys=usg5-2
|
|
1764 ;;
|
|
1765
|
|
1766 ## Encore machines
|
|
1767 ns16k-encore-bsd* )
|
|
1768 machine=ns16000 opsys=umax
|
|
1769 ;;
|
|
1770
|
|
1771 ## The GEC 93 - apparently, this port isn't really finished yet.
|
|
1772
|
|
1773 ## Gould Power Node and NP1
|
|
1774 pn-gould-bsd4.2* )
|
|
1775 machine=gould opsys=bsd4-2
|
|
1776 ;;
|
|
1777 pn-gould-bsd4.3* )
|
|
1778 machine=gould opsys=bsd4-3
|
|
1779 ;;
|
|
1780 np1-gould-bsd* )
|
|
1781 machine=gould-np1 opsys=bsd4-3
|
|
1782 ;;
|
|
1783
|
|
1784 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
|
|
1785 ## as far as XEmacs is concerned).
|
|
1786 m88k-harris-cxux* )
|
|
1787 # Build needs to be different on 7.0 and later releases
|
|
1788 case "`uname -r`" in
|
|
1789 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
|
1790 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
|
1791 esac
|
|
1792 NON_GNU_CPP="/lib/cpp"
|
|
1793 ;;
|
|
1794 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
|
|
1795 m68k-harris-cxux* )
|
|
1796 machine=nh3000 opsys=cxux
|
|
1797 ;;
|
|
1798 ## Harris power pc NightHawk running Power UNIX (Series 6000)
|
|
1799 powerpc-harris-powerunix )
|
|
1800 machine=nh6000 opsys=powerunix
|
|
1801 NON_GNU_CPP="cc -Xo -E -P"
|
|
1802 ;;
|
|
1803
|
|
1804 ## Honeywell XPS100
|
|
1805 xps*-honeywell-sysv* )
|
|
1806 machine=xps100 opsys=usg5-2
|
|
1807 ;;
|
|
1808
|
|
1809 ## HP 9000 series 200 or 300
|
|
1810 m68*-hp-bsd* )
|
|
1811 machine=hp9000s300 opsys=bsd4-3
|
|
1812 ;;
|
|
1813 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
|
|
1814 m68*-hp-hpux* )
|
|
1815 NON_GNU_CPP="cc -Aa -E"
|
|
1816 NON_GNU_CC="cc -Aa"
|
|
1817 case "`uname -r`" in
|
|
1818 ## Someone's system reports A.B8.05 for this.
|
|
1819 ## I wonder what other possibilities there are.
|
|
1820 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
|
|
1821 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
|
|
1822 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
|
|
1823 *.10.* ) machine=hp9000s300 opsys=hpux10 ;;
|
|
1824 *) machine=hp9000s300 opsys=hpux ;;
|
|
1825 esac
|
|
1826 ;;
|
|
1827
|
|
1828 ## HP 9000 series 700 and 800, running HP/UX
|
|
1829 ## XEmacs changes here for shared.
|
|
1830 hppa*-hp-hpux7* )
|
|
1831 machine=hp800 opsys=hpux NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1832 ;;
|
10
|
1833 hppa*-hp-hpux8*shr* )
|
|
1834 machine=hp800 opsys=hpux8*shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
0
|
1835 ;;
|
|
1836 hppa*-hp-hpux8* )
|
|
1837 machine=hp800 opsys=hpux8 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1838 ;;
|
10
|
1839 hppa*-hp-hpux9*shr* )
|
|
1840 machine=hp800 opsys=hpux9*shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
0
|
1841 ;;
|
|
1842 hppa*-hp-hpux9* )
|
|
1843 machine=hp800 opsys=hpux9 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1844 ;;
|
10
|
1845 hppa*-hp-hpux10*shr* )
|
|
1846 machine=hp800 opsys=hpux10*shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
0
|
1847 ;;
|
|
1848 hppa*-hp-hpux10* )
|
|
1849 machine=hp800 opsys=hpux10 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1850 ;;
|
|
1851
|
|
1852 ## HP 9000 series 700 and 800, running HP/UX
|
|
1853 hppa*-hp-hpux* )
|
|
1854 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
|
|
1855 ## Cross-compilation? Nah!
|
|
1856 case "`uname -r`" in
|
|
1857 ## Someone's system reports A.B8.05 for this.
|
|
1858 ## I wonder what other possibilities there are.
|
|
1859 *.B8.* ) machine=hp800 opsys=hpux8 ;;
|
|
1860 *.08.* ) machine=hp800 opsys=hpux8 ;;
|
|
1861 *.09.* ) machine=hp800 opsys=hpux9 ;;
|
|
1862 *.10.* ) machine=hp800 opsys=hpux10 ;;
|
|
1863 *) machine=hp800 opsys=hpux ;;
|
|
1864 esac
|
|
1865 ;;
|
|
1866 hppa-*-nextstep* )
|
|
1867 machine=hp800 opsys=nextstep
|
|
1868 ;;
|
|
1869
|
|
1870 ## Orion machines
|
|
1871 orion-orion-bsd* )
|
|
1872 machine=orion opsys=bsd4-2
|
|
1873 ;;
|
|
1874 clipper-orion-bsd* )
|
|
1875 machine=orion105 opsys=bsd4-2
|
|
1876 ;;
|
|
1877
|
|
1878 ## IBM machines
|
|
1879 i[3-9]86-ibm-aix1.1* )
|
|
1880 machine=ibmps2-aix opsys=usg5-2-2
|
|
1881 ;;
|
|
1882 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* )
|
|
1883 machine=ibmps2-aix opsys=usg5-3
|
|
1884 ;;
|
|
1885 i370-ibm-aix*)
|
|
1886 machine=ibm370aix opsys=usg5-3
|
|
1887 ;;
|
|
1888 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
|
|
1889 machine=ibmrs6000 opsys=aix3-1
|
|
1890 ;;
|
|
1891 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
|
|
1892 machine=ibmrs6000 opsys=aix3-2-5
|
|
1893 ;;
|
|
1894 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
|
|
1895 machine=ibmrs6000 opsys=aix4-1
|
|
1896 ;;
|
|
1897 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
|
|
1898 machine=ibmrs6000 opsys=aix4
|
|
1899 ;;
|
|
1900 rs6000-ibm-aix* | powerpc-ibm-aix* )
|
|
1901 machine=ibmrs6000 opsys=aix3-2
|
|
1902 ;;
|
|
1903 romp-ibm-bsd4.3* )
|
|
1904 machine=ibmrt opsys=bsd4-3
|
|
1905 ;;
|
|
1906 romp-ibm-bsd4.2* )
|
|
1907 machine=ibmrt opsys=bsd4-2
|
|
1908 ;;
|
|
1909 romp-ibm-aos4.3* )
|
|
1910 machine=ibmrt opsys=bsd4-3
|
|
1911 ;;
|
|
1912 romp-ibm-aos4.2* )
|
|
1913 machine=ibmrt opsys=bsd4-2
|
|
1914 ;;
|
|
1915 romp-ibm-aos* )
|
|
1916 machine=ibmrt opsys=bsd4-3
|
|
1917 ;;
|
|
1918 romp-ibm-bsd* )
|
|
1919 machine=ibmrt opsys=bsd4-3
|
|
1920 ;;
|
|
1921 romp-ibm-aix* )
|
|
1922 machine=ibmrt-aix opsys=usg5-2-2
|
|
1923 ;;
|
|
1924 romp-ibm-mach* )
|
|
1925 machine=ibmrt opsys=mach-bsd4-3
|
|
1926 ;;
|
|
1927
|
|
1928 ## Integrated Solutions `Optimum V'
|
|
1929 m68*-isi-bsd4.2* )
|
|
1930 machine=isi-ov opsys=bsd4-2
|
|
1931 ;;
|
|
1932 m68*-isi-bsd4.3* )
|
|
1933 machine=isi-ov opsys=bsd4-3
|
|
1934 ;;
|
|
1935
|
|
1936 ## Intel 386 machines where we do care about the manufacturer
|
|
1937 i[3-9]86-intsys-sysv* )
|
|
1938 machine=is386 opsys=usg5-2-2
|
|
1939 ;;
|
|
1940
|
|
1941 ## Prime EXL
|
|
1942 i[3-9]86-prime-sysv* )
|
|
1943 machine=i386 opsys=usg5-3
|
|
1944 ;;
|
|
1945
|
|
1946 ## Sequent Symmetry running Dynix
|
|
1947 i[3-9]86-sequent-bsd* )
|
|
1948 machine=symmetry opsys=bsd4-3
|
|
1949 ;;
|
|
1950
|
|
1951 ## Sequent Symmetry running DYNIX/ptx
|
|
1952 ## Use the old cpp rather than the newer ANSI one.
|
|
1953 i[3-9]86-sequent-ptx* )
|
|
1954 machine=sequent-ptx opsys=ptx
|
|
1955 NON_GNU_CPP="/lib/cpp"
|
|
1956 ;;
|
|
1957
|
|
1958 ## Unspecified sysv on an ncr machine defaults to svr4.2.
|
|
1959 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
|
|
1960 i[3-9]86-ncr-sysv* )
|
|
1961 machine=ncr386 opsys=usg5-4-2
|
|
1962 ;;
|
|
1963
|
|
1964 ## Intel Paragon OSF/1
|
|
1965 i860-intel-osf1* )
|
|
1966 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
|
|
1967 ;;
|
|
1968
|
|
1969 ## Intel 860
|
|
1970 i860-*-sysv4* )
|
|
1971 machine=i860 opsys=usg5-4
|
|
1972 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
|
|
1973 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
|
|
1974 ;;
|
|
1975
|
|
1976 ## Masscomp machines
|
|
1977 m68*-masscomp-rtu* )
|
|
1978 machine=masscomp opsys=rtu
|
|
1979 ;;
|
|
1980
|
|
1981 ## Megatest machines
|
|
1982 m68*-megatest-bsd* )
|
|
1983 machine=mega68 opsys=bsd4-2
|
|
1984 ;;
|
|
1985
|
|
1986 ## Workstations sold by MIPS
|
|
1987 ## This is not necessarily all workstations using the MIPS processor -
|
|
1988 ## Irises are produced by SGI, and DECstations by DEC.
|
|
1989
|
|
1990 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
|
|
1991 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
|
|
1992 ## it gives for choosing between the alternatives seems to be "Use
|
|
1993 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
|
|
1994 ## the BSD world." I'll assume that these are instructions for
|
|
1995 ## handling two odd situations, and that every other situation
|
|
1996 ## should use mips.h and usg5-2-2, they being listed first.
|
|
1997 mips-mips-usg* )
|
|
1998 machine=mips4
|
|
1999 ## Fall through to the general code at the bottom to decide on the OS.
|
|
2000 ;;
|
|
2001 mips-mips-riscos4* )
|
|
2002 machine=mips4 opsys=bsd4-3
|
|
2003 NON_GNU_CC="cc -systype bsd43"
|
|
2004 NON_GNU_CPP="cc -systype bsd43 -E"
|
|
2005 ;;
|
|
2006 mips-mips-riscos5* )
|
|
2007 machine=mips4 opsys=riscos5
|
|
2008 NON_GNU_CC="cc -systype bsd43"
|
|
2009 NON_GNU_CPP="cc -systype bsd43 -E"
|
|
2010 ;;
|
|
2011 mips-mips-bsd* )
|
|
2012 machine=mips opsys=bsd4-3
|
|
2013 ;;
|
|
2014 mips-mips-* )
|
|
2015 machine=mips opsys=usg5-2-2
|
|
2016 ;;
|
|
2017
|
|
2018 ## NeXT
|
|
2019 m68*-next-* | m68k-*-nextstep* )
|
|
2020 machine=m68k opsys=nextstep
|
|
2021 ;;
|
|
2022
|
|
2023 ## The complete machine from National Semiconductor
|
|
2024 ns32k-ns-genix* )
|
|
2025 machine=ns32000 opsys=usg5-2
|
|
2026 ;;
|
|
2027
|
|
2028 ## NCR machines
|
|
2029 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
|
|
2030 machine=tower32 opsys=usg5-2-2
|
|
2031 ;;
|
|
2032 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
|
|
2033 machine=tower32v3 opsys=usg5-3
|
|
2034 ;;
|
|
2035
|
|
2036 ## Nixdorf Targon 31
|
|
2037 m68*-nixdorf-sysv* )
|
|
2038 machine=targon31 opsys=usg5-2-2
|
|
2039 ;;
|
|
2040
|
|
2041 ## Nu (TI or LMI)
|
|
2042 m68*-nu-sysv* )
|
|
2043 machine=nu opsys=usg5-2
|
|
2044 ;;
|
|
2045
|
|
2046 ## Plexus
|
|
2047 m68*-plexus-sysv* )
|
|
2048 machine=plexus opsys=usg5-2
|
|
2049 ;;
|
|
2050
|
|
2051 ## Pyramid machines
|
|
2052 ## I don't really have any idea what sort of processor the Pyramid has,
|
|
2053 ## so I'm assuming it is its own architecture.
|
|
2054 pyramid-pyramid-bsd* )
|
|
2055 machine=pyramid opsys=bsd4-2
|
|
2056 ;;
|
|
2057
|
|
2058 ## Sequent Balance
|
|
2059 ns32k-sequent-bsd4.2* )
|
|
2060 machine=sequent opsys=bsd4-2
|
|
2061 ;;
|
|
2062 ns32k-sequent-bsd4.3* )
|
|
2063 machine=sequent opsys=bsd4-3
|
|
2064 ;;
|
|
2065
|
|
2066 ## Siemens Nixdorf
|
|
2067 mips-siemens-sysv* | mips-sni-sysv*)
|
|
2068 machine=mips-siemens opsys=usg5-4
|
|
2069 NON_GNU_CC=/usr/ccs/bin/cc
|
|
2070 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
2071 ;;
|
|
2072
|
|
2073 ## Silicon Graphics machines
|
|
2074 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
|
|
2075 m68*-sgi-iris3.5* )
|
|
2076 machine=irist opsys=iris3-5
|
|
2077 ;;
|
|
2078 m68*-sgi-iris3.6* | m68*-sgi-iris*)
|
|
2079 machine=irist opsys=iris3-6
|
|
2080 ;;
|
|
2081 ## Iris 4D
|
|
2082 mips-sgi-irix3.* )
|
|
2083 machine=iris4d opsys=irix3-3
|
|
2084 ;;
|
|
2085 mips-sgi-irix4.* )
|
|
2086 machine=iris4d opsys=irix4-0
|
|
2087 ;;
|
|
2088 mips-sgi-irix6* )
|
16
|
2089 machine=iris4d opsys=irix6-0
|
0
|
2090 ;;
|
|
2091 mips-sgi-irix5.[3-9]* )
|
|
2092 machine=iris4d opsys=irix5-3
|
|
2093 ;;
|
|
2094 mips-sgi-irix5.2* )
|
|
2095 machine=iris4d opsys=irix5-2
|
|
2096 ;;
|
|
2097 mips-sgi-irix5.1* )
|
|
2098 machine=iris4d opsys=irix5-1
|
|
2099 ;;
|
|
2100 mips-sgi-irix5.* | mips-sgi-irix* )
|
|
2101 machine=iris4d opsys=irix5-0
|
|
2102 ;;
|
|
2103
|
|
2104 ## SONY machines
|
|
2105 m68*-sony-bsd4.2* )
|
|
2106 machine=news opsys=bsd4-2
|
|
2107 ;;
|
|
2108 m68*-sony-bsd4.3* )
|
|
2109 machine=news opsys=bsd4-3
|
|
2110 ;;
|
|
2111 m68*-sony-newsos3* | m68*-sony-news3*)
|
|
2112 machine=news opsys=bsd4-3
|
|
2113 ;;
|
|
2114 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
|
|
2115 machine=news-risc opsys=bsd4-3
|
|
2116 ;;
|
|
2117 mips-sony-news* )
|
|
2118 machine=news-risc opsys=newsos5
|
|
2119 ;;
|
|
2120
|
|
2121 ## Stride
|
|
2122 m68*-stride-sysv* )
|
|
2123 machine=stride opsys=usg5-2
|
|
2124 ;;
|
|
2125
|
|
2126 ## Suns
|
|
2127 sparc-*-linux* )
|
|
2128 machine=sparc opsys=linux
|
|
2129 ;;
|
|
2130
|
|
2131 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
2132 # Hardware type
|
|
2133 case "${canonical}" in
|
|
2134 m68*-sunos1* ) machine=sun1 ;;
|
|
2135 m68*-sunos2* ) machine=sun2 ;;
|
|
2136 m68* ) machine=sun3 ;;
|
|
2137 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
2138 i[3-9]86-*-* ) machine=intel386 ;;
|
|
2139 rs6000* ) machine=rs6000 ;;
|
|
2140 sparc* ) machine=sparc ;;
|
|
2141 powerpc* ) machine=powerpc ;;
|
|
2142 * ) unported=yes ;;
|
|
2143 esac
|
|
2144
|
|
2145 # Make `canonical' even more so.
|
|
2146 case "${canonical}" in *-sunos5*)
|
|
2147 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";
|
|
2148 esac
|
|
2149
|
|
2150 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
|
|
2151 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed
|
|
2152 # But, SunOS 5.6 no longer needs dynodump because it has a similar
|
|
2153 # function integrated.
|
|
2154 case "${canonical}" in
|
|
2155 *-sunos4* )
|
|
2156 test -x /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
2157 *-solaris2.6* )
|
|
2158 test -x /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
2159 RANLIB=':'
|
|
2160 need_dynodump=no ;;
|
|
2161 *-solaris2* )
|
|
2162 test -x /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
2163 RANLIB=':'
|
|
2164 need_dynodump=yes ;;
|
|
2165 esac
|
|
2166
|
|
2167 # (NON)?_GCC_TEST_OPTIONS variables are unused.
|
|
2168 # What were they supposed to do, exactly?
|
|
2169 # case "${canonical}" in
|
|
2170 # *-sunos4* ) GCC_TEST_OPTIONS=-static NON_GCC_TEST_OPTIONS=-bstatic ;;
|
|
2171 # esac
|
|
2172
|
|
2173 # FSF 19.31 has NON_GNU_CPP=/usr/lib/cpp for SunOS 4.x.
|
|
2174
|
|
2175 case "${canonical}" in
|
|
2176 ## The Sun386 didn't get past 4.0.
|
|
2177 i[3-9]86-*-sunos4 ) opsys=sunos4-0 ;;
|
10
|
2178 *-sunos4*shr* ) opsys=sunos4-0-shr ;;
|
|
2179 *-sunos4-0*shr* ) opsys=sunos4-0-shr ;;
|
|
2180 *-sunos4-1*shr* ) opsys=sunos4-1-shr ;;
|
|
2181 *-sunos4-1-2*shr* ) opsys=sunos4-1-2-shr ;;
|
32
|
2182 *-sunos4-1-3*shr* ) opsys=sunos4-1-3-shr ;;
|
|
2183 *-sunos4-1-[4-9]*shr* ) opsys=sunos4-1-4-shr ;;
|
2
|
2184 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
2185 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
32
|
2186 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
|
2187 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
0
|
2188 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
2189
|
|
2190 *-solaris2.3* ) opsys=sol2-3 ;;
|
|
2191 *-solaris2.4* ) opsys=sol2-4 ;;
|
|
2192 *-solaris2.5* ) opsys=sol2-5 ;;
|
|
2193 *-solaris2.[6-9]* ) opsys=sol2-6 ;;
|
|
2194 *-solaris* ) opsys=sol2 ;;
|
|
2195 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
2196 * ) opsys=bsd4-2 ;;
|
|
2197 esac
|
|
2198 ## Watch out for a compiler that we know will not work.
|
|
2199 case "${canonical}" in
|
|
2200 *-solaris* | *-sunos5* )
|
|
2201 if [ "x$CC" = x/usr/ucb/cc ]; then
|
|
2202 ## /usr/ucb/cc doesn't work;
|
|
2203 ## we should find some other compiler that does work.
|
|
2204 unset CC
|
|
2205 fi
|
|
2206 ;;
|
|
2207 *) ;;
|
|
2208 esac
|
|
2209 ;;
|
|
2210 sparc-*-nextstep* )
|
|
2211 machine=sparc opsys=nextstep
|
|
2212 ;;
|
|
2213
|
|
2214 ## Tadpole 68k
|
|
2215 m68*-tadpole-sysv* )
|
|
2216 machine=tad68k opsys=usg5-3
|
|
2217 ;;
|
|
2218
|
|
2219 ## Tahoe machines
|
|
2220 tahoe-tahoe-bsd4.2* )
|
|
2221 machine=tahoe opsys=bsd4-2
|
|
2222 ;;
|
|
2223 tahoe-tahoe-bsd4.3* )
|
|
2224 machine=tahoe opsys=bsd4-3
|
|
2225 ;;
|
|
2226
|
|
2227 ## Tandem Integrity S2
|
|
2228 mips-tandem-sysv* )
|
|
2229 machine=tandem-s2 opsys=usg5-3
|
|
2230 ;;
|
|
2231
|
|
2232 ## Tektronix XD88
|
|
2233 m88k-tektronix-sysv3* )
|
|
2234 machine=tekxd88 opsys=usg5-3
|
|
2235 ;;
|
|
2236
|
|
2237 ## Tektronix 16000 box (6130?)
|
|
2238 ns16k-tektronix-bsd* )
|
|
2239 machine=ns16000 opsys=bsd4-2
|
|
2240 ;;
|
|
2241 ## Tektronix 4300
|
|
2242 ## src/m/tek4300.h hints that this is a m68k machine.
|
|
2243 m68*-tektronix-bsd* )
|
|
2244 machine=tek4300 opsys=bsd4-3
|
|
2245 ;;
|
|
2246
|
|
2247 ## Titan P2 or P3
|
|
2248 ## We seem to have lost the machine-description file titan.h!
|
|
2249 titan-titan-sysv* )
|
|
2250 machine=titan opsys=usg5-3
|
|
2251 ;;
|
|
2252
|
|
2253 ## Ustation E30 (SS5E)
|
|
2254 m68*-unisys-uniplus* )
|
|
2255 machine=ustation opsystem=unipl5-2
|
|
2256 ;;
|
|
2257
|
|
2258 ## Vaxen.
|
|
2259 vax-dec-* )
|
|
2260 machine=vax
|
|
2261 case "${canonical}" in
|
|
2262 *-bsd4.1* ) opsys=bsd4-1 ;;
|
|
2263 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
2264 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
|
|
2265 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
2266 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
2267 *-vms* ) opsys=vms ;;
|
|
2268 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
2269 * ) unported=yes
|
|
2270 esac
|
|
2271 ;;
|
|
2272
|
|
2273 ## Whitechapel MG1
|
|
2274 ns16k-whitechapel-* )
|
|
2275 machine=mg1
|
|
2276 ## We don't know what sort of OS runs on these; we'll let the
|
|
2277 ## operating system guessing code below try.
|
|
2278 ;;
|
|
2279
|
|
2280 ## Wicat
|
|
2281 m68*-wicat-sysv* )
|
|
2282 machine=wicat opsys=usg5-2
|
|
2283 ;;
|
|
2284
|
|
2285 ## Intel 386 machines where we don't care about the manufacturer
|
|
2286 i[3-9]86-*-* )
|
|
2287 machine=intel386
|
8
|
2288 CPPFLAGS_MAKEFILEGEN="${CPPFLAGS_MAKEFILEGEN} -Ui386"
|
0
|
2289 case "${canonical}" in
|
|
2290 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
|
2291 *-isc2.2* ) opsys=isc2-2 ;;
|
|
2292 *-isc4.0* ) opsys=isc4-0 ;;
|
|
2293 *-isc4.* ) opsys=isc4-1
|
|
2294 GCC_TEST_OPTIONS=-posix
|
|
2295 NON_GCC_TEST_OPTIONS=-Xp
|
|
2296 ;;
|
|
2297 *-isc* ) opsys=isc3-0 ;;
|
|
2298 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
|
|
2299 *-esix* ) opsys=esix ;;
|
|
2300 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
2301 *-xenix* ) opsys=xenix ;;
|
|
2302 *-linux* ) opsys=linux ;;
|
|
2303 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
|
|
2304 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
32
|
2305 *-bsdi3* ) opsys=bsdos3 ;;
|
0
|
2306 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
2307 *-bsdi2* ) opsys=bsdos2 ;;
|
|
2308 *-sco3.2v5* ) opsys=sco5 ;
|
|
2309 ## This is a pain. Like the current USL cc, SCO's cc -E
|
|
2310 ## tokenizes as it preprocesses, making configure very
|
|
2311 ## unhappy. Unfortunately, /lib/cpp doesn't understand
|
|
2312 ## flags like "-b elf", so we have to cheat in order to
|
|
2313 ## pick up the right defines for UNEXEC from the s-file.
|
|
2314 ## 01/05/95 robertl@dgii.com
|
|
2315 if [ "${dynamic}" = "yes" ]; then
|
|
2316 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
|
|
2317 else
|
|
2318 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
|
|
2319 fi ;;
|
8
|
2320 *-386bsd* ) opsys=386bsd ;;
|
|
2321 *-freebsd* ) opsys=freebsd ;;
|
0
|
2322 *-nextstep* ) opsys=nextstep ;;
|
|
2323 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
|
|
2324 esac
|
|
2325 ;;
|
|
2326
|
|
2327 ## Linux/68k
|
|
2328 m68k-*-linux* )
|
|
2329 machine=m68k opsys=linux
|
|
2330 ;;
|
|
2331
|
|
2332 * )
|
|
2333 unported=yes
|
|
2334 ;;
|
|
2335 esac
|
|
2336
|
|
2337 ### If the code above didn't choose an operating system, just choose
|
|
2338 ### an operating system based on the configuration name. You really
|
|
2339 ### only want to use this when you have no idea what the right
|
|
2340 ### operating system is; if you know what operating systems a machine
|
|
2341 ### runs, it's cleaner to make it explicit in the case statement
|
|
2342 ### above.
|
|
2343 if [ x"${opsys}" = x ]; then
|
|
2344 case "${canonical}" in
|
|
2345 *-gnu* ) opsys=gnu ;;
|
|
2346 *-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
2347 *-bsd4.2 ) opsys=bsd4-2 ;;
|
|
2348 *-bsd4.3 ) opsys=bsd4-3 ;;
|
|
2349 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
|
|
2350 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
|
|
2351 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
2352 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
|
|
2353 *-sysv4.1* | *-sysvr4.1* )
|
|
2354 NON_GNU_CPP=/usr/lib/cpp
|
|
2355 opsys=usg5-4 ;;
|
|
2356 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
|
2357 if [ x$NON_GNU_CPP = x ]; then
|
|
2358 if [ -f /usr/ccs/lib/cpp ]; then
|
|
2359 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
2360 else
|
|
2361 NON_GNU_CPP=/lib/cpp
|
|
2362 fi
|
|
2363 fi
|
|
2364 opsys=usg5-4-2 ;;
|
|
2365 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
2366 * )
|
|
2367 unported=yes
|
|
2368 ;;
|
|
2369 esac
|
|
2370 fi
|
|
2371
|
|
2372 if test "x$RANLIB" = x; then
|
|
2373 RANLIB=ranlib
|
|
2374 fi
|
|
2375
|
|
2376 if test ${unported} = yes; then
|
|
2377 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
|
|
2378 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
|
|
2379 ) >&2
|
|
2380 exit 1
|
|
2381 fi
|
|
2382
|
|
2383 if [ "${dynamic}" = "yes" ]; then
|
|
2384 case "${opsys}" in
|
6
|
2385 hpux8 ) opsys=hpux8-shr ;;
|
|
2386 hpux9 ) opsys=hpux9-shr ;;
|
|
2387 hpux10 ) opsys=hpux10-shr ;;
|
|
2388 sunos4-0 ) opsys=sunos4-0-shr ;;
|
|
2389 sunos4-1 ) opsys=sunos4-1-shr ;;
|
|
2390 sunos4-1-2 ) opsys=sunos4-1-2-shr ;;
|
|
2391 sunos4-1-3 ) opsys=sunos4-1-3-shr ;;
|
32
|
2392 sunos4-1-4 ) opsys=sunos4-1-4-shr ;;
|
0
|
2393 sco5 ) opsys=sco5-shr ;;
|
|
2394 esac
|
|
2395 elif [ "${dynamic}" = "no" ]; then
|
|
2396 case "${opsys}" in
|
|
2397 sol2 ) opsys=sol2-static ;;
|
|
2398 sol2-3 ) opsys=sol2-3-static ;;
|
|
2399 sol2-4 ) opsys=sol2-4-static ;;
|
|
2400 decosf1-3 ) opsys=decosf1-3-static ;;
|
|
2401 decosf3-1 ) opsys=decosf3-1-static ;;
|
|
2402 decosf3-2 ) opsys=decosf3-2-static ;;
|
|
2403 linux ) opsys=linux-static ;;
|
|
2404 esac
|
|
2405 fi
|
|
2406
|
|
2407 dynodump_arch=''
|
|
2408 if [ "${need_dynodump}" = "yes" ]; then
|
|
2409 case "${canonical}" in
|
|
2410 sparc* ) dynodump_arch=sparc ;;
|
|
2411 powerpc* ) dynodump_arch=ppc ;;
|
|
2412 i[3-9]86* ) dynodump_arch=i386 ;;
|
|
2413 esac
|
|
2414 fi
|
|
2415
|
|
2416 machfile="m/${machine}.h"
|
|
2417 opsysfile="s/${opsys}.h"
|
|
2418
|
|
2419
|
|
2420 ############################################################################
|
|
2421 # #
|
|
2422 # Determine the compiler, set up for feature testing #
|
|
2423 # #
|
|
2424 ############################################################################
|
|
2425
|
|
2426 ]
|
|
2427 dnl -----------------------------------------------------------------------
|
|
2428 dnl Let's do a couple of macro (re)definitions.
|
|
2429 dnl
|
|
2430 dnl First we redefine AC_TEST_CPP so that we can see the error output
|
|
2431 dnl from preprocessor runs. This definition is identical to the standard
|
|
2432 dnl one supplied by Autoconf 1.11 extra for the extra_verbose check.
|
|
2433 dnl
|
|
2434 dnl Note that we *must* include the brackets around the macro definition
|
|
2435 dnl name here. Autoconf has redefined the quoting characters to be brackets,
|
|
2436 dnl and if we don't supply them, the original definition will get
|
|
2437 dnl substituted in place of the macro name!
|
|
2438 dnl
|
|
2439 define([AC_TEST_CPP],
|
|
2440 [AC_REQUIRE_CPP()dnl
|
|
2441 cat > conftest.${ac_ext} <<EOF
|
|
2442 #include "confdefs.h"
|
|
2443 [$1]
|
|
2444 EOF
|
|
2445 # Some shells (Coherent) do redirections in the wrong order, so need
|
|
2446 # the parens.
|
|
2447 # The exec was added by Mly to make this work under BSDI
|
|
2448 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
2449 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
|
|
2450 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
2451 echo "$ac_err"
|
|
2452 fi
|
|
2453 if test -z "$ac_err"; then
|
|
2454 ifelse([$2], , :, [rm -rf conftest*
|
|
2455 $2
|
|
2456 ])
|
|
2457 ifelse([$3], , , [else
|
|
2458 rm -rf conftest*
|
|
2459 $3
|
|
2460 ])dnl
|
|
2461 fi
|
|
2462 rm -f conftest*])dnl
|
|
2463 dnl
|
|
2464 dnl Second, a macro of our own:
|
|
2465 dnl Subroutine to find version of X being used
|
|
2466 dnl It can't use xmkmf because the first version in the user's path
|
|
2467 dnl may not belong to the version of X that is being built with
|
|
2468 define(AC_FIND_X_VERSION,
|
|
2469 [AC_CHECKING(the version of X11 being used)
|
|
2470 cat > conftest.${ac_ext} <<EOF
|
|
2471 #include <X11/Intrinsic.h>
|
|
2472 int main() {
|
|
2473 #if (XlibSpecificationRelease == 4)
|
|
2474 printf ("X11R4\n");
|
|
2475 #elif (XlibSpecificationRelease == 5)
|
|
2476 printf ("X11R5\n");
|
|
2477 #elif (XlibSpecificationRelease == 6)
|
|
2478 printf ("X11R6\n");
|
|
2479 #elif (XtSpecificationRelease == 4)
|
|
2480 printf ("X11R4\n");
|
|
2481 #endif
|
|
2482 return 0;
|
|
2483 }
|
|
2484 EOF
|
|
2485 dnl We need to run this which will prevent cross-configuring. But since
|
|
2486 dnl we can't do that anyhow, oh darn.
|
|
2487 ac_save_LIBS="${LIBS}"
|
|
2488 LIBS="${LIBS} ${DEFS}"
|
|
2489 if eval $ac_compile; then
|
|
2490 ac_find_x_version=`./conftest`
|
|
2491 [
|
|
2492 if [ "$ac_find_x_version" = "X11R4" ]; then
|
|
2493 ] AC_DEFINE(THIS_IS_X11R4) [
|
|
2494 elif [ "$ac_find_x_version" = "X11R5" ]; then
|
|
2495 ] AC_DEFINE(THIS_IS_X11R5) [
|
|
2496 elif [ "$ac_find_x_version" = "X11R6" ]; then
|
|
2497 ] AC_DEFINE(THIS_IS_X11R6) [
|
|
2498 fi
|
|
2499 ]
|
|
2500 fi
|
|
2501 LIBS=$ac_save_LIBS
|
|
2502 rm -f conftest*]
|
|
2503 )dnl
|
|
2504 dnl -----------------------------------------------------------------------
|
|
2505 AC_LANG_C
|
|
2506 AC_PREPARE(lisp)
|
|
2507 AC_CONFIG_HEADER(src/config.h)
|
|
2508
|
|
2509 [
|
|
2510
|
|
2511 if [ "${extra_verbose}" = "yes" ] ; then
|
|
2512 # This is identical to the version that A\C_LANG_C generates except that
|
|
2513 # it omits the redirection of all output to /dev/null.
|
|
2514 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS'
|
|
2515 fi
|
|
2516
|
|
2517 #### Choose a compiler.
|
|
2518 if [ "x$CC" = x ] ; then
|
|
2519 cc_specified=1
|
|
2520 fi
|
|
2521
|
|
2522 # Save the value of CFLAGS that the user specified.
|
|
2523 SPECIFIED_CFLAGS="$CFLAGS"
|
|
2524
|
|
2525 if [ "${with_gcc}" = "yes" ] ; then
|
|
2526 CC="${compiler-gcc}"
|
|
2527 GCC=1
|
|
2528 elif [ "${with_lcc}" = "yes" ] ; then
|
|
2529 CC="${compiler-lcc}"
|
|
2530 dash_r_space=' ' # this bullshit is here because lcc for solaris
|
|
2531 # will not accept -Rargument.
|
|
2532 # It needs -R argument instead. Yuck yuck yuck.
|
|
2533 if [ "x$NON_GNU_CPP" = x ] ; then
|
|
2534 NON_GNU_CPP="yes" # this is handled specially below...
|
|
2535 fi
|
|
2536 elif [ "${compiler}" != "" ] ; then
|
|
2537 CC="${compiler}"
|
|
2538 elif [ "${with_gcc}" = "no" ] ; then
|
|
2539 CC="cc"
|
|
2540 elif [ "${with_lcc}" = "no" ] ; then
|
|
2541 if [ "x$CC" = x ]
|
|
2542 then CC=cc;
|
|
2543 else true;
|
|
2544 fi
|
|
2545 else
|
|
2546 case "${canonical}" in
|
|
2547 * )
|
|
2548 ] AC_PROG_CC [
|
|
2549 if [ "${CC}" = "gcc" ] ; then
|
|
2550 with_gcc="yes"
|
|
2551 GCC=1
|
|
2552 fi
|
|
2553 ;;
|
|
2554 esac
|
|
2555 fi
|
|
2556
|
|
2557 # On Suns, sometimes $CPP names a directory.
|
|
2558 if [ -n "$CPP" ] && [ -d "$CPP" ] ; then
|
|
2559 CPP=
|
|
2560 fi
|
|
2561
|
|
2562 #### Some systems specify a CPP to use unless we are using GCC.
|
|
2563 #### Now that we know whether we are using GCC, we can decide whether
|
|
2564 #### to use that one.
|
6
|
2565
|
8
|
2566 if [ "x$GCC" = x1 ] || [ "x$NON_GNU_CPP" = x ] ; then
|
6
|
2567 true
|
0
|
2568 else
|
|
2569 if [ "x$CPP" = x ]; then
|
|
2570 if [ "${with_lcc}" = "yes" ] && [ "${NON_GNU_CPP}" = "yes" ] ; then
|
|
2571 CPP='gcc -E -traditional' # cross fingers and hope it's there....
|
|
2572 else
|
|
2573 CPP="$NON_GNU_CPP"
|
|
2574 fi
|
|
2575 fi
|
|
2576 fi
|
|
2577
|
|
2578 #### Some systems specify a CC to use unless we are using GCC.
|
|
2579 #### Now that we know whether we are using GCC, we can decide whether
|
|
2580 #### to use that one.
|
|
2581 if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ]
|
|
2582 then true
|
|
2583 else
|
|
2584 CC="$NON_GNU_CC"
|
|
2585 fi
|
|
2586
|
|
2587 ## Huh? I commented out the following because it always enabled
|
|
2588 ## the "test" options, whatever the hell those are supposed to be
|
|
2589 ## for, and the result is that SunOS builds were always static.
|
|
2590
|
|
2591 #if [ x$GCC = x1 ] && [ "x$GCC_TEST_OPTIONS" != x ]
|
|
2592 #then
|
|
2593 # CC="$CC $GCC_TEST_OPTIONS"
|
|
2594 #fi
|
|
2595 #
|
|
2596 #if [ x$GCC = x ] && [ "x$NON_GCC_TEST_OPTIONS" != x ]
|
|
2597 #then
|
|
2598 # CC="$CC $NON_GCC_TEST_OPTIONS"
|
|
2599 #fi
|
|
2600
|
|
2601 ############################################################################
|
|
2602 # #
|
|
2603 # Do some misc autoconf-special tests #
|
|
2604 # #
|
|
2605 ############################################################################
|
|
2606
|
|
2607 #### Some other nice autoconf tests. If you add a test here which
|
|
2608 #### should make an entry in src/config.h, don't forget to add an
|
|
2609 #### #undef clause to src/config.h.in for autoconf to modify.
|
|
2610 ]
|
|
2611 dnl checks for programs
|
|
2612 AC_PROG_CPP
|
|
2613 [
|
|
2614 case "${canonical}" in
|
|
2615 *-sun-sunos* )
|
|
2616 if [ "${CPP}" = "acc -E" ] ; then
|
|
2617 CPP="acc -E -Xs"
|
|
2618 fi
|
|
2619 ;;
|
|
2620 esac
|
|
2621 ]
|
|
2622 AC_PROG_RANLIB
|
|
2623 AC_PROG_INSTALL
|
|
2624 AC_PROG_YACC
|
|
2625
|
|
2626 dnl checks for UNIX variants
|
|
2627 AC_AIX
|
|
2628
|
|
2629 dnl checks for header files
|
|
2630 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)
|
|
2631 AC_STDC_HEADERS
|
|
2632 AC_TIME_WITH_SYS_TIME
|
|
2633 AC_SYS_SIGLIST_DECLARED
|
|
2634
|
|
2635 dnl Some systems have utime.h but don't declare the struct anyplace.
|
|
2636 AC_COMPILE_CHECK(struct utimbuf,
|
|
2637 [#ifdef TIME_WITH_SYS_TIME
|
|
2638 #include <sys/time.h>
|
|
2639 #include <time.h>
|
|
2640 #else
|
|
2641 #ifdef HAVE_SYS_TIME_H
|
|
2642 #include <sys/time.h>
|
|
2643 #else
|
|
2644 #include <time.h>
|
|
2645 #endif
|
|
2646 #endif
|
|
2647 #ifdef HAVE_UTIME_H
|
|
2648 #include <utime.h>
|
|
2649 #endif], [static struct utimbuf x; x.actime = x.modtime;],
|
|
2650 AC_DEFINE(HAVE_STRUCT_UTIMBUF))
|
|
2651
|
|
2652 dnl checks for typedefs
|
|
2653 AC_RETSIGTYPE
|
|
2654
|
|
2655 AC_COMPILE_CHECK(struct timeval,
|
|
2656 [#ifdef TIME_WITH_SYS_TIME
|
|
2657 #include <sys/time.h>
|
|
2658 #include <time.h>
|
|
2659 #else
|
|
2660 #ifdef HAVE_SYS_TIME_H
|
|
2661 #include <sys/time.h>
|
|
2662 #else
|
|
2663 #include <time.h>
|
|
2664 #endif
|
|
2665 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], [
|
|
2666 HAVE_TIMEVAL=yes
|
|
2667 AC_DEFINE(HAVE_TIMEVAL)],
|
|
2668 [HAVE_TIMEVAL=no])
|
|
2669
|
|
2670 dnl checks for structure members
|
|
2671 AC_STRUCT_TM
|
|
2672 AC_TIMEZONE
|
|
2673
|
|
2674 dnl checks for compiler characteristics
|
|
2675 AC_CONST
|
|
2676
|
|
2677 dnl check for Make feature
|
|
2678 AC_SET_MAKE
|
|
2679
|
|
2680 dnl check byte order
|
|
2681 AC_WORDS_BIGENDIAN
|
|
2682
|
|
2683 dnl check for long file names
|
|
2684 AC_LONG_FILE_NAMES
|
|
2685
|
|
2686 echo "checking for -xildoff compiler flag"
|
|
2687 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
2688 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
2689 :
|
|
2690 else
|
|
2691 AC_VERBOSE(defining NEED_XILDOFF)
|
|
2692 need_xildoff=yes
|
|
2693 fi
|
|
2694 fi
|
|
2695
|
|
2696 dnl other checks for UNIX variants
|
|
2697 [
|
|
2698 # What the hell was this doing here??????
|
|
2699 ### echo > confdefs.h # this gets nuked above...
|
|
2700
|
|
2701 ############################################################################
|
|
2702 # #
|
|
2703 # Choose a window system #
|
|
2704 # #
|
|
2705 ############################################################################
|
|
2706
|
|
2707 #### Choose a window system.
|
|
2708 echo "checking for specified window system"
|
|
2709
|
|
2710 window_system=''
|
|
2711 case "${with_x11}" in
|
|
2712 yes )
|
|
2713 window_system=${window_system}x11
|
|
2714 ;;
|
|
2715 no )
|
|
2716 window_system=${window_system}none
|
|
2717 esac
|
|
2718
|
|
2719 case "${window_system}" in
|
|
2720 "none" | "x11" ) ;;
|
|
2721 "" )
|
|
2722 # --x-includes or --x-libraries implies --with-x11.
|
|
2723 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
|
|
2724 window_system=x11
|
|
2725 else
|
|
2726 echo " No window system specified. Looking for X11."
|
|
2727 # If the user didn't specify a window system and we found X11, use it.
|
|
2728 if [ -r /usr/lib/libX11.a \
|
|
2729 -o -d /usr/include/X11 \
|
|
2730 -o -d /usr/X386/include \
|
|
2731 -o -d /usr/X11R6/include \
|
|
2732 -o -d ${x_includes}/X11 ]; then
|
|
2733 window_system=x11
|
|
2734 fi
|
|
2735 fi
|
|
2736 ;;
|
|
2737 * )
|
|
2738 echo "Don't specify a window system more than once." >&2
|
|
2739 exit 1
|
|
2740 ;;
|
|
2741 esac
|
|
2742
|
|
2743 case "${window_system}" in
|
|
2744 "" | "x11" )
|
|
2745 ### If the user hasn't specified where we should find X, try
|
|
2746 ### letting autoconf figure that out.
|
|
2747 if [ -z "${x_includes}" ] && [ -z "${x_libraries}" ]; then
|
|
2748 ]
|
|
2749 AC_FIND_X
|
|
2750 [
|
|
2751 fi
|
|
2752 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
|
|
2753 window_system=x11
|
|
2754 fi
|
|
2755 ;;
|
|
2756 esac
|
|
2757
|
|
2758 [ -z "${window_system}" ] && window_system=none
|
|
2759
|
|
2760 if [ "${window_system}" = "none" ]; then
|
|
2761 if [ "${with_tty}" != "yes" ]; then
|
|
2762 echo "No window system support, and no TTY support." >&2
|
|
2763 echo "Unable to proceed." >&2
|
|
2764 exit 1
|
|
2765 fi
|
|
2766 if [ "${with_epoch}" = "yes" ]; then
|
|
2767 ] AC_WARN(--with-epoch ignored: Not valid without X support) [
|
|
2768 with_epoch='no'
|
|
2769 fi
|
|
2770 if [ "x${with_cde}" != x ]; then
|
|
2771 ] AC_WARN(--with-cde ignored: Not valid without X support) [
|
|
2772 with_menubars='no'
|
|
2773 fi
|
2
|
2774 if [ "x${with_offix}" != x ]; then
|
|
2775 ] AC_WARN(--with-offix ignored: Not valid without X support) [
|
|
2776 with_offix='no'
|
|
2777 fi
|
0
|
2778 if [ "x${with_menubars}" != x ]; then
|
|
2779 ] AC_WARN(--with-menubars ignored: Not valid without X support) [
|
|
2780 with_menubars='no'
|
|
2781 fi
|
|
2782 if [ "x${with_scrollbars}" != x ]; then
|
|
2783 ] AC_WARN(--with-scrollbars ignored: Not valid without X support) [
|
|
2784 with_scrollbars='no'
|
|
2785 fi
|
|
2786 if [ "x${with_dialogs}" != x ]; then
|
|
2787 ] AC_WARN(--with-dialogs ignored: Not valid without X support) [
|
|
2788 with_dialogs='no'
|
|
2789 fi
|
|
2790 if [ "x${with_toolbars}" != x ]; then
|
|
2791 ] AC_WARN(--with-toolbars ignored: Not valid without X support) [
|
|
2792 with_toolbars='no'
|
|
2793 fi
|
|
2794 with_cde='no'
|
2
|
2795 with_offix='no'
|
0
|
2796 with_menubars='no'
|
|
2797 with_scrollbars='no'
|
|
2798 with_dialogs='no'
|
|
2799 with_toolbars='no'
|
|
2800 elif [ -z "${with_toolbars}" ] ; then
|
|
2801 with_toolbars='yes'
|
|
2802 fi
|
|
2803
|
|
2804 case "${canonical}" in
|
|
2805 *-sun-solaris* | *-sun-sunos5* ) add_runtime_flag=yes ;;
|
|
2806 esac
|
|
2807
|
|
2808 if [ -n "${x_libraries}" ]; then
|
|
2809 if [ "${add_runtime_flag}" ]; then
|
|
2810 LD_SWITCH_X_SITE="-L${x_libraries} -R${dash_r_space}${x_libraries}"
|
|
2811 else
|
|
2812 LD_SWITCH_X_SITE="-L${x_libraries}"
|
|
2813 fi
|
|
2814 fi
|
|
2815 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
|
|
2816 # [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
|
|
2817 [ -n "${x_includes}" ] && C_SWITCH_X_SITE="-I${x_includes}"
|
|
2818
|
|
2819 if [ -n "${site_libraries}" ]; then
|
|
2820 for arg in ${site_libraries}
|
|
2821 do
|
|
2822 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
|
2823 done
|
|
2824 fi
|
|
2825 if [ -n "${site_runtime_libraries}" ]; then
|
|
2826 for arg in ${site_runtime_libraries}
|
|
2827 do
|
|
2828 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
|
2829 LD_SWITCH_SITE="${LD_SWITCH_SITE} -R${dash_r_space}${arg}"
|
|
2830 done
|
|
2831 fi
|
|
2832 if [ -n "${site_includes}" ]; then
|
|
2833 for arg in ${site_includes}
|
|
2834 do
|
|
2835 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
|
|
2836 CPP="${CPP} -I${arg}"
|
|
2837 done
|
|
2838 fi
|
|
2839
|
|
2840 # FSF 19.29 has some bitmapdir stuff here.
|
|
2841 bitmapdir=
|
|
2842
|
|
2843 # Avoid forcing the search of /usr/include before fixed include files.
|
|
2844 if [ "$C_SWITCH_X_SITE" = "-I/usr/include" ]; then
|
|
2845 C_SWITCH_X_SITE=" "
|
|
2846 fi
|
|
2847
|
|
2848 # Need for check for audio/Xtutil.h.
|
|
2849 CPP="${CPP} ${C_SWITCH_X_SITE}"
|
|
2850
|
|
2851 case "${window_system}" in
|
|
2852 x11 )
|
|
2853 HAVE_X_WINDOWS=yes
|
|
2854 echo " Using X11."
|
|
2855 ;;
|
|
2856 none )
|
|
2857 HAVE_X_WINDOWS=no
|
|
2858 echo " Using no window system."
|
|
2859 ;;
|
|
2860 esac
|
|
2861
|
|
2862 if test "${opsys}" = "hpux9"; then
|
|
2863 case "${x_libraries}" in
|
|
2864 *X11R4* )
|
|
2865 opsysfile="s/hpux9-x11r4.h"
|
|
2866 ;;
|
|
2867 esac
|
|
2868 fi
|
|
2869
|
10
|
2870 if test "${opsys}" = "hpux9-shr"; then
|
0
|
2871 case "${x_libraries}" in
|
|
2872 *X11R4* )
|
|
2873 opsysfile="s/hpux9shxr4.h"
|
|
2874 ;;
|
|
2875 esac
|
|
2876 fi
|
|
2877
|
|
2878 ############################################################################
|
|
2879 # #
|
|
2880 # Extract some information from the operating system and machine files #
|
|
2881 # #
|
|
2882 ############################################################################
|
|
2883
|
|
2884 echo "examining the machine- and system-dependent files to find out"
|
|
2885 echo " - which libraries the lib-src programs will want, and"
|
|
2886 echo " - whether the GNU malloc routines are usable."
|
|
2887
|
|
2888 ### First figure out CFLAGS (which we use for running the compiler here)
|
|
2889 ### and REAL_CFLAGS (which we use for real compilation).
|
|
2890 ### The two are the same except on a few systems, where they are made
|
|
2891 ### different to work around various lossages. For example,
|
|
2892 ### GCC 2.5 on Linux needs them to be different because it treats -g
|
|
2893 ### as implying static linking.
|
|
2894
|
|
2895 ### If the CFLAGS env var is specified, we use that value
|
|
2896 ### instead of the default.
|
|
2897
|
|
2898 ### It's not important that this name contain the PID; you can't run
|
|
2899 ### two configures in the same directory and have anything work
|
|
2900 ### anyway.
|
|
2901 tempcname="conftest.c"
|
|
2902
|
|
2903 echo '
|
|
2904 #define NOT_C_CODE
|
|
2905 #include "'${srcdir}'/src/'${opsysfile}'"
|
|
2906 #include "'${srcdir}'/src/'${machfile}'"
|
|
2907 #ifndef LIBS_MACHINE
|
|
2908 #define LIBS_MACHINE
|
|
2909 #endif
|
|
2910 #ifndef LIBS_SYSTEM
|
|
2911 #define LIBS_SYSTEM
|
|
2912 #endif
|
|
2913 #ifndef C_SWITCH_SYSTEM
|
|
2914 #define C_SWITCH_SYSTEM
|
|
2915 #endif
|
|
2916 #ifndef C_SWITCH_X_SYSTEM
|
|
2917 #define C_SWITCH_X_SYSTEM
|
|
2918 #endif
|
|
2919 #ifndef C_SWITCH_MACHINE
|
|
2920 #define C_SWITCH_MACHINE
|
|
2921 #endif
|
|
2922 #ifndef LD_SWITCH_X_SYSTEM
|
|
2923 #define LD_SWITCH_X_SYSTEM
|
|
2924 #endif
|
|
2925 #ifndef LIB_STANDARD
|
|
2926 #define LIB_STANDARD
|
|
2927 #endif
|
|
2928 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD
|
|
2929 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
2930 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
|
|
2931 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
|
|
2932 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
2933
|
|
2934 #ifndef LIB_X11_LIB
|
|
2935 #define LIB_X11_LIB -lX11
|
|
2936 #endif
|
|
2937
|
|
2938 #ifndef LIBX11_MACHINE
|
|
2939 #define LIBX11_MACHINE
|
|
2940 #endif
|
|
2941
|
|
2942 #ifndef LIBX11_SYSTEM
|
|
2943 #define LIBX11_SYSTEM
|
|
2944 #endif
|
|
2945 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
|
|
2946
|
|
2947 #ifdef UNEXEC
|
|
2948 configure___ unexec=UNEXEC
|
|
2949 #else
|
|
2950 configure___ unexec=unexec.o
|
|
2951 #endif
|
|
2952
|
|
2953 #ifdef SYSTEM_MALLOC
|
|
2954 configure___ system_malloc=yes
|
|
2955 #else
|
|
2956 configure___ system_malloc=no
|
|
2957 #endif
|
|
2958
|
|
2959 #ifndef C_DEBUG_SWITCH
|
|
2960 #define C_DEBUG_SWITCH -g
|
|
2961 #endif
|
|
2962
|
|
2963 #ifndef C_OPTIMIZE_SWITCH
|
|
2964 #define C_OPTIMIZE_SWITCH -O
|
|
2965 #endif
|
|
2966
|
|
2967 #ifdef THIS_IS_CONFIGURE
|
|
2968
|
|
2969 /* Get the CFLAGS for tests in configure. */
|
|
2970 #ifdef __GNUC__
|
|
2971 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2972 #else
|
|
2973 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2974 #endif
|
|
2975
|
|
2976 #else /* not THIS_IS_CONFIGURE */
|
|
2977
|
|
2978 /* Get the CFLAGS for real compilation. */
|
|
2979 #ifdef __GNUC__
|
|
2980 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2981 #else
|
|
2982 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2983 #endif
|
|
2984
|
|
2985 #endif /* not THIS_IS_CONFIGURE */
|
|
2986 ' > ${tempcname}
|
|
2987 # The value of CPP is a quoted variable reference, so we need to do this
|
|
2988 # to get its actual value...
|
|
2989 CPP=`eval "echo $CPP"`
|
|
2990 eval `${CPP} -Isrc ${tempcname} \
|
|
2991 | grep 'configure___' \
|
|
2992 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
|
|
2993 if [ "x$SPECIFIED_CFLAGS" = x ]; then
|
|
2994 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
|
|
2995 | grep 'configure___' \
|
|
2996 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
|
|
2997 else
|
|
2998 REAL_CFLAGS="$CFLAGS"
|
|
2999 fi
|
|
3000 rm ${tempcname}
|
|
3001
|
|
3002 # override CFLAGS if user wishes
|
|
3003 if [ "${cflags}" != "NO_CFLAGS_DEFINED" ]; then
|
|
3004 REAL_CFLAGS=${cflags}
|
|
3005 fi
|
|
3006
|
|
3007 ### Compute the unexec source name from the object name.
|
|
3008 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
|
|
3009
|
|
3010 # Do the opsystem or machine files prohibit the use of the GNU malloc?
|
|
3011 # Assume not, until told otherwise.
|
|
3012 GNU_MALLOC=yes
|
|
3013 if [ "${system_malloc}" = "yes" ]; then
|
|
3014 GNU_MALLOC=no
|
|
3015 GNU_MALLOC_reason="
|
|
3016 (The GNU allocators don't work with this system configuration.)"
|
|
3017 elif [ "${use_system_malloc}" = "yes" ]; then
|
|
3018 GNU_MALLOC=no
|
|
3019 GNU_MALLOC_reason="
|
|
3020 (User chose not to use GNU allocators.)"
|
|
3021 fi
|
|
3022
|
|
3023 LISP_FLOAT_TYPE=yes
|
|
3024
|
|
3025
|
|
3026 #### Add the libraries to LIBS and check for some functions.
|
|
3027
|
|
3028 ]
|
|
3029 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS"
|
|
3030 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS"
|
|
3031 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS"
|
|
3032
|
|
3033 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks,
|
|
3034 dnl and also adds -ldnet to LIBS, which Autoconf uses for checks.
|
|
3035 dnl FSF 19.29 also checks for function dnet_ntoa.
|
|
3036 AC_HAVE_LIBRARY(-ldnet)
|
|
3037 dnl This causes -lresolv to get used in subsequent tests,
|
|
3038 dnl which causes failures on some systems such as HPUX 9.
|
|
3039 dnl FSF 19.29 also checks for function gethostbyname.
|
|
3040 dnl AC_HAVE_LIBRARY(-lresolv)
|
|
3041
|
|
3042 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd")
|
|
3043
|
|
3044 dnl FSF 19.29 also checks for function cma_open.
|
|
3045 AC_HAVE_LIBRARY(-lpthreads, HAVE_PTHREADS=yes)
|
|
3046 if test -n "${HAVE_PTHREADS}" ; then
|
|
3047 AC_DEFINE(HAVE_PTHREADS)
|
|
3048 case "${opsys}" in
|
|
3049 decosf* ) CFLAGS="${CFLAGS} -threads" ;;
|
|
3050 esac
|
|
3051 fi
|
|
3052
|
|
3053 if test "${window_system}" != "none" ; then
|
|
3054 AC_CHECKING(for XFree86)
|
|
3055 if test -d /usr/X386/include; then
|
|
3056 HAVE_XFREE386=yes
|
|
3057 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
|
14
|
3058 elif test -f /etc/XF86Config -o \
|
|
3059 -f /etc/X11/XF86Config -o \
|
|
3060 -f /usr/X11R6/lib/X11/XF86Config; then
|
0
|
3061 HAVE_XFREE386=yes
|
|
3062 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"
|
|
3063 else
|
|
3064 HAVE_XFREE386=no
|
|
3065 fi
|
|
3066 AC_VERBOSE(${HAVE_XFREE386})
|
|
3067 else
|
|
3068 HAVE_XFREE386=no
|
|
3069 fi
|
|
3070
|
|
3071 ############################################################################
|
|
3072 # #
|
|
3073 # Test for various X-specific features #
|
|
3074 # #
|
|
3075 ############################################################################
|
|
3076
|
|
3077 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check.
|
|
3078 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
3079 case "${opsys}" in
|
|
3080 linux* )
|
|
3081 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS"
|
|
3082 AC_COMPILE_CHECK(whether path-link option is needed, [],
|
|
3083 [;],
|
|
3084 [need_path_link=yes],
|
|
3085 [need_path_link=no])
|
|
3086 if test "${need_path_link}" = "no"; then
|
|
3087 CFLAGS="$REAL_CFLAGS"
|
|
3088 AC_VERBOSE(no)
|
|
3089 else
|
|
3090 AC_VERBOSE(yes)
|
|
3091 fi
|
|
3092 ;;
|
|
3093 esac
|
|
3094 fi
|
|
3095
|
|
3096 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
|
|
3097 # for the tests that follow. We set it back to REAL_CFLAGS later on.
|
|
3098
|
|
3099 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
3100 DEFS="$C_SWITCH_X_SITE $DEFS"
|
|
3101 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
|
|
3102 LIBS="$LIBX $LIBS"
|
|
3103 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
|
|
3104
|
|
3105 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
|
|
3106 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
|
|
3107 # but it's more convenient here to set LD_RUN_PATH
|
|
3108 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
|
|
3109 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
|
|
3110 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
|
|
3111 export LD_RUN_PATH
|
|
3112 fi
|
|
3113
|
|
3114 if test "${HAVE_XFREE386}" = "yes" ; then
|
|
3115 case "${opsys}" in
|
|
3116 linux* )
|
|
3117 AC_COMPILE_CHECK(whether XFree86 needs -b to link, [],
|
|
3118 [XOpenDisplay ("foo");],
|
|
3119 [xfree86_first_failure=no],
|
|
3120 [xfree86_first_failure=yes])
|
|
3121 if test "${xfree86_first_failure}" = "yes"; then
|
|
3122 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
|
|
3123 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
|
|
3124 OLD_CPPFLAGS="$CPPFLAGS"
|
|
3125 OLD_LIBS="$LIBS"
|
|
3126 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
|
|
3127 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
|
|
3128 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
|
|
3129 LIBS="$LIBS -b i486-linuxaout"
|
|
3130 AC_COMPILE_CHECK(,[],
|
|
3131 [XOpenDisplay ("foo");],
|
|
3132 [xfree86_second_failure=no],
|
|
3133 [xfree86_second_failure=yes])
|
|
3134 if test "${xfree86_second_failure}" = "yes"; then
|
|
3135 # If we get the same failure with -b, there is no use adding -b.
|
|
3136 # So take it out. This plays safe.
|
|
3137 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
|
|
3138 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
|
|
3139 CPPFLAGS="$OLD_CPPFLAGS"
|
|
3140 LIBS="$OLD_LIBS"
|
|
3141 AC_VERBOSE(no)
|
|
3142 else
|
|
3143 AC_VERBOSE(yes)
|
|
3144 fi
|
|
3145 else
|
|
3146 AC_VERBOSE(no)
|
|
3147 fi
|
|
3148 ;;
|
|
3149 esac
|
|
3150 fi
|
|
3151
|
|
3152 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
|
|
3153 #XScreenNumberOfScreen XSetWMProtocols)
|
|
3154 fi
|
|
3155
|
|
3156 #
|
|
3157 # make sure we can find libX11.*
|
|
3158 #
|
|
3159 if test "${window_system}" != "none" ; then
|
|
3160 internal_xlibs_found='no'
|
|
3161 AC_HAVE_LIBRARY(-lX11, internal_xlibs_found='yes')
|
|
3162 if test "${internal_xlibs_found}" = "no" ; then
|
|
3163 echo "Unable to find X11 libraries." >&2
|
|
3164 exit 1
|
|
3165 else
|
|
3166 AC_VERBOSE(yes)
|
|
3167 fi
|
|
3168 fi
|
|
3169
|
|
3170 #
|
|
3171 # make sure we can find Intrinsic.h
|
|
3172 #
|
|
3173 if test "${window_system}" != "none" ; then
|
|
3174 internal_xincludes_found='no'
|
|
3175 for arg in ${DEFS} /usr/include
|
|
3176 do
|
|
3177 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
|
|
3178 internal_xincludes_found='yes'
|
|
3179 fi
|
|
3180 done
|
|
3181 if test "${internal_xincludes_found}" = "no" ; then
|
|
3182 echo "Unable to find X11 header files." >&2
|
|
3183 exit 1
|
|
3184 fi
|
|
3185 fi
|
|
3186
|
|
3187 #
|
|
3188 # Sun OS 4 systems need the following kludge
|
|
3189 #
|
|
3190 if test "${window_system}" != "none" ; then
|
|
3191 case "${canonical}" in *-sunos4* )
|
|
3192 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;;
|
|
3193 esac
|
|
3194 fi
|
|
3195
|
|
3196 #
|
|
3197 # See if we can find Xauth.
|
|
3198 #
|
|
3199 with_xauth='no'
|
|
3200 if test "${window_system}" != "none" ; then
|
|
3201 internal_xauth_lib_found='no'
|
|
3202 AC_HAVE_LIBRARY(-lXau, internal_xauth_lib_found='yes')
|
|
3203 if test "${internal_xauth_lib_found}" = "yes" ; then
|
|
3204 internal_xauth_includes_found='no'
|
|
3205 for arg in ${DEFS} /usr/include
|
|
3206 do
|
|
3207 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
|
|
3208 internal_xauth_includes_found='yes'
|
|
3209 fi
|
|
3210 done
|
|
3211 if test "${internal_xauth_includes_found}" = "yes" ; then
|
|
3212 with_xauth='yes'
|
|
3213 fi
|
|
3214 fi
|
|
3215 fi
|
|
3216 if test "${with_xauth}" = "yes" ; then
|
|
3217 AC_DEFINE(HAVE_XAUTH)
|
|
3218 fi
|
|
3219
|
|
3220 #
|
|
3221 # See if we can find CDE.
|
|
3222 #
|
|
3223 if test "${window_system}" != "none" ; then
|
|
3224 if test "${with_cde}" != "no" ; then
|
|
3225 if test "${with_cde}" != "yes" ; then
|
|
3226 internal_cde_lib_found='no'
|
|
3227 AC_HAVE_LIBRARY(-lDtSvc, internal_cde_lib_found='yes')
|
|
3228 if test "${internal_cde_lib_found}" = "yes" ; then
|
|
3229 internal_cde_includes_found='no'
|
|
3230 for arg in ${DEFS} /usr/include
|
|
3231 do
|
|
3232 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
|
|
3233 internal_cde_includes_found='yes'
|
|
3234 fi
|
|
3235 done
|
|
3236 if test "${internal_cde_includes_found}" = "yes" ; then
|
|
3237 with_cde='yes'
|
|
3238 fi
|
|
3239 fi
|
|
3240 fi
|
|
3241 fi
|
|
3242 fi
|
|
3243 if test "${with_cde}" = "yes" ; then
|
|
3244 AC_DEFINE(HAVE_CDE)
|
|
3245 fi
|
|
3246
|
|
3247 #
|
2
|
3248 # See if we can find OffiX.
|
|
3249 #
|
|
3250 if test "${window_system}" != "none" ; then
|
|
3251 if test "${with_offix}" != "no" ; then
|
|
3252 if test "${with_offix}" != "yes" ; then
|
|
3253 internal_offix_lib_found='no'
|
|
3254 AC_HAVE_LIBRARY(-lDnd, internal_offix_lib_found='yes')
|
|
3255 if test "${internal_offix_lib_found}" = "yes" ; then
|
|
3256 internal_offix_includes_found='no'
|
|
3257 for arg in ${DEFS} /usr/include
|
|
3258 do
|
|
3259 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
|
|
3260 internal_offix_includes_found='yes'
|
|
3261 fi
|
|
3262 done
|
|
3263 if test "${internal_offix_includes_found}" = "yes" ; then
|
|
3264 with_offix='yes'
|
|
3265 fi
|
|
3266 fi
|
|
3267 fi
|
|
3268 fi
|
|
3269 fi
|
|
3270 if test "${with_offix}" = "yes" ; then
|
|
3271 AC_DEFINE(HAVE_OFFIX_DND)
|
|
3272 fi
|
|
3273
|
|
3274 #
|
0
|
3275 # See if we can find Xlocale.h.
|
|
3276 #
|
|
3277 with_xlocale_h='no'
|
|
3278 if test "${window_system}" != "none" ; then
|
|
3279 for arg in ${DEFS} /usr/include
|
|
3280 do
|
|
3281 if test -f `echo "${arg}/X11/Xlocale.h" | sed 's/^\-I//'` ; then
|
|
3282 with_xlocale_h='yes'
|
|
3283 fi
|
|
3284 done
|
|
3285 fi
|
|
3286 if test "${with_xlocale_h}" = "yes" ; then
|
|
3287 AC_DEFINE(HAVE_XLOCALE_H)
|
|
3288 fi
|
|
3289
|
|
3290 if test "${window_system}" != "none" ; then
|
|
3291 AC_FIND_X_VERSION
|
|
3292 AC_HAVE_HEADERS(X11/Xlocale.h)
|
|
3293 fi
|
|
3294
|
|
3295 #
|
|
3296 # if Energize specified, make sure we can find its need libraries/headers
|
|
3297 #
|
|
3298 if test "${with_energize}" = "yes" ; then
|
|
3299 AC_HAVE_LIBRARY(-lenergize, energize_version='3.X')
|
|
3300 if test "${energize_version}" = "no" ; then
|
|
3301 AC_HAVE_LIBRARY(-lconn, energize_version='2.X')
|
|
3302 if test "${energize_version}" = "no" ; then
|
|
3303 echo "Unable to find Energize library." >&2
|
|
3304 exit 1
|
|
3305 fi
|
|
3306 fi
|
|
3307
|
|
3308 internal_eincludes_found='no'
|
|
3309 for arg in ${DEFS} /usr/include
|
|
3310 do
|
|
3311 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
|
|
3312 internal_eincludes_found='yes'
|
|
3313 fi
|
|
3314 done
|
|
3315 if test "${internal_eincludes_found}" = "no" ; then
|
|
3316 echo "Unable to find Energize editorconn.h header file." >&2
|
|
3317 exit 1
|
|
3318 fi
|
|
3319 fi
|
|
3320
|
|
3321 #
|
|
3322 # logb and frexp are found in -lm on most systems.
|
|
3323 #
|
|
3324 AC_HAVE_LIBRARY(-lm)
|
|
3325
|
|
3326 #
|
|
3327 # see if XPM is hanging around somewhere
|
|
3328 #
|
|
3329 if test "${window_system}" != "none" ; then
|
|
3330 if test "${with_xpm}" != "no" ; then
|
|
3331 if test "${with_xpm}" != "yes" ; then
|
|
3332 AC_HAVE_LIBRARY(-lXpm, with_xpm="yes")
|
|
3333 fi
|
|
3334 fi
|
|
3335 fi
|
|
3336 if test "${with_xpm}" = "yes" ; then
|
|
3337 AC_DEFINE(HAVE_XPM)
|
|
3338 fi
|
|
3339
|
|
3340 #
|
|
3341 # see if Xmu is hanging around somewhere
|
|
3342 #
|
|
3343 # FSF 19.31 has this:
|
|
3344 #dnl If using toolkit, check whether libXmu.a exists.
|
|
3345 #dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
|
|
3346 # OLDLIBS="$LIBS"
|
|
3347 # if test x$HAVE_X11XTR6 = xyes; then
|
|
3348 # LIBS="-lXt -lSM -lICE $LIBS"
|
|
3349 # else
|
|
3350 # LIBS="-lXt $LIBS"
|
|
3351 # fi
|
|
3352 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
|
|
3353 # LIBS="$OLDLIBS"
|
|
3354
|
|
3355 if test "${window_system}" != "none" ; then
|
|
3356 if test "${with_xmu}" != "no" ; then
|
|
3357 if test "${with_xmu}" != "yes" ; then
|
|
3358 AC_HAVE_LIBRARY(-lXmu, with_xmu="yes")
|
|
3359 fi
|
24
|
3360 # On SunOS4 (and 5!) we must kludge harder to try to detect Xmu
|
0
|
3361 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
24
|
3362 if test "${with_xmu}" != "yes" ; then
|
0
|
3363 # begin expansion of ac_have_library
|
|
3364 ac_save_LIBS="${LIBS}"
|
|
3365 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
|
|
3366 ac_have_lib=""
|
|
3367 cat > conftest.${ac_ext} <<EOF
|
|
3368 int main() { return 0; }
|
|
3369 EOF
|
|
3370 if eval $ac_compile; then
|
|
3371 rm -rf conftest*
|
|
3372 ac_have_lib="1"
|
|
3373 fi
|
|
3374 rm -f conftest*
|
|
3375 LIBS="${ac_save_LIBS}"
|
|
3376 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3377 # end expansion of ac_have_library
|
|
3378 fi
|
38
|
3379 # Sparc/Linux test - fp
|
|
3380 if test "${with_xmu}" != "yes" -a ${machine} = sparc -a ${opsys} = linux; then
|
|
3381 # begin expansion of ac_have_library
|
|
3382 ac_save_LIBS="${LIBS}"
|
|
3383 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm -lICE -lSM"
|
|
3384 ac_have_lib=""
|
|
3385 cat > conftest.${ac_ext} <<EOF
|
|
3386 int main() { return 0; }
|
|
3387 EOF
|
|
3388 if eval $ac_compile; then
|
|
3389 rm -rf conftest*
|
|
3390 ac_have_lib="1"
|
|
3391 fi
|
|
3392 rm -f conftest*
|
|
3393 LIBS="${ac_save_LIBS}"
|
|
3394 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3395 # end expansion of ac_have_library
|
|
3396 fi
|
0
|
3397 # On UnixWare 2.1 we must kludge harder to try to detect Xmu
|
|
3398 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
|
3399 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then
|
|
3400 # begin expansion of ac_have_library
|
|
3401 ac_save_LIBS="${LIBS}"
|
|
3402 if test x$HAVE_XFREE386 = xyes; then
|
|
3403 LIBS="-lXt -lSM -lICE ${LIBS}"
|
|
3404 else
|
|
3405 LIBS="${LIBS} -lXmu -lXt -lXext -lX11"
|
|
3406 fi
|
|
3407 ac_have_lib=""
|
|
3408 cat > conftest.${ac_ext} <<EOF
|
|
3409 int main() { return 0; }
|
|
3410 EOF
|
|
3411 if eval $ac_compile; then
|
|
3412 rm -rf conftest*
|
|
3413 ac_have_lib="1"
|
|
3414 fi
|
|
3415 rm -f conftest*
|
|
3416 LIBS="${ac_save_LIBS}"
|
|
3417 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3418 # end expansion of ac_have_library
|
|
3419 fi
|
|
3420 fi
|
|
3421 fi
|
|
3422 if test "${with_xmu}" = "yes" ; then
|
|
3423 AC_DEFINE(HAVE_XMU)
|
|
3424 fi
|
|
3425
|
|
3426 #
|
|
3427 # see if COMPFACE is hanging around somewhere
|
|
3428 #
|
|
3429 if test "${window_system}" != "none" ; then
|
|
3430 if test "${with_xface}" != "no" ; then
|
|
3431 if test "${with_xface}" != "yes" ; then
|
|
3432 AC_HEADER_CHECK(compface.h, compface_incl="yes", with_xface="no")
|
|
3433 if test "${compface_incl}" = "yes" ; then
|
|
3434 AC_HAVE_LIBRARY(-lcompface, with_xface="yes")
|
|
3435 fi
|
|
3436 fi
|
|
3437 fi
|
|
3438 fi
|
|
3439 if test "${with_xface}" = "yes" ; then
|
|
3440 AC_DEFINE(HAVE_XFACE)
|
|
3441 fi
|
|
3442
|
|
3443 #
|
|
3444 # check whether we're using GIF support
|
|
3445 #
|
|
3446 if test "${window_system}" = "none" ; then
|
|
3447 if test -z "${with_gif}" ; then
|
|
3448 with_gif=no
|
|
3449 elif test "${with_gif}" != "no" ; then
|
|
3450 echo "GIF support cannot be specified without a window system."
|
|
3451 exit 1
|
|
3452 fi
|
|
3453 elif test -z "${with_gif}" ; then
|
|
3454 with_gif=yes
|
|
3455 fi
|
|
3456 if test "${with_gif}" = "yes" ; then
|
|
3457 AC_DEFINE(HAVE_GIF)
|
|
3458 fi
|
|
3459
|
|
3460 #
|
|
3461 # autodetect JPEG
|
|
3462 #
|
|
3463 if test "${window_system}" = "none" ; then
|
|
3464 if test -z "${with_jpeg}" ; then
|
|
3465 with_jpeg=no
|
|
3466 elif test "${with_jpeg}" != "no" ; then
|
|
3467 echo "JPEG support cannot be specified without a window system."
|
|
3468 exit 1
|
|
3469 fi
|
|
3470 else
|
|
3471 if test "${with_jpeg}" != "no" ; then
|
|
3472 if test "${with_jpeg}" != "yes" ; then
|
|
3473 AC_HEADER_CHECK(jpeglib.h, jpeglib_incl="yes", with_jpeg="no")
|
|
3474 if test "${jpeglib_incl}" = "yes" ; then
|
|
3475 AC_HAVE_LIBRARY(-ljpeg, with_jpeg="yes")
|
|
3476 fi
|
|
3477 fi
|
|
3478 fi
|
|
3479 fi
|
|
3480 if test "${with_jpeg}" = "yes" ; then
|
|
3481 AC_DEFINE(HAVE_JPEG)
|
|
3482 fi
|
|
3483
|
|
3484 #
|
|
3485 # autodetect PNG
|
|
3486 #
|
|
3487 if test "${window_system}" = "none" ; then
|
|
3488 if test -z "${with_png}" ; then
|
|
3489 with_png=no
|
|
3490 elif test "${with_png}" != "no" ; then
|
|
3491 echo "PNG support cannot be specified without a window system."
|
|
3492 exit 1
|
|
3493 fi
|
|
3494 fi
|
|
3495 if test -z "${with_png}" ; then
|
|
3496 AC_HEADER_CHECK(png.h, , with_png="no")
|
|
3497 fi
|
|
3498 if test -z "${with_png}" ; then
|
|
3499 AC_HAVE_LIBRARY(-lpng, , with_png="no")
|
|
3500 fi
|
|
3501 if test -z "${with_png}" ; then
|
|
3502 AC_HAVE_LIBRARY(-lz, with_png="yes")
|
|
3503 fi
|
|
3504 if test -z "${with_png}" ; then
|
|
3505 AC_HAVE_LIBRARY(-lgz, with_png="gnuz", with_png="no")
|
|
3506 fi
|
|
3507 if test "${with_png}" = "yes" ; then
|
|
3508 AC_DEFINE(HAVE_PNG)
|
|
3509 fi
|
|
3510 if test "${with_png}" = "gnuz" ; then
|
|
3511 AC_DEFINE(HAVE_PNG)
|
|
3512 AC_DEFINE(HAVE_PNG_GNUZ)
|
|
3513 fi
|
|
3514
|
|
3515 #
|
|
3516 # autodetect TIFF (not yet implemented)
|
|
3517 #
|
|
3518 if test "${window_system}" = "none" ; then
|
|
3519 if test -z "${with_tiff}" ; then
|
|
3520 with_tiff=no
|
|
3521 elif test "${with_tiff}" != "no" ; then
|
|
3522 echo "TIFF support cannot be specified without a window system."
|
|
3523 exit 1
|
|
3524 fi
|
|
3525 fi
|
|
3526 if test "${with_tiff}" = "yes" ; then
|
|
3527 AC_DEFINE(HAVE_TIFF)
|
|
3528 fi
|
|
3529
|
|
3530 # We use Lucid toolkit defaults for the menubars and scrollbars, but
|
|
3531 # if Motif is available we use it for the dialog boxes.
|
|
3532 if test "${window_system}" != "none" ; then
|
|
3533 if test "x${with_dialogs}" = "x" ; then
|
|
3534 # We can't use ac_have_library because it simply appends -lXm to the
|
|
3535 # end of the link line which is insufficient since -lXm will generate
|
|
3536 # dependencies on -lXt
|
|
3537 # begin expansion of ac_have_library
|
|
3538 ac_save_LIBS="${LIBS}"
|
|
3539 LIBS="${LIBS} -lXm -lXt ${LIBS}"
|
|
3540 ac_have_lib=""
|
|
3541 test -n "$silent" || echo "checking for -lXm"
|
|
3542 cat > conftest.${ac_ext} <<EOF
|
|
3543 #include "confdefs.h"
|
|
3544
|
|
3545 int main() { return 0; }
|
|
3546 int t() { main();; return 0; }
|
|
3547 EOF
|
|
3548 if eval $ac_compile; then
|
|
3549 rm -rf conftest*
|
|
3550 ac_have_lib="1"
|
|
3551
|
|
3552 fi
|
|
3553 rm -f conftest*
|
|
3554 LIBS="${ac_save_LIBS}"
|
|
3555 if test -n "${ac_have_lib}"; then
|
|
3556 :; with_dialogs="motif"
|
|
3557 else
|
|
3558 :;
|
|
3559 fi
|
|
3560 # end expansion of ac_have_library
|
|
3561 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
|
|
3562 if test "${with_dialogs}" != "motif" ; then
|
|
3563 # begin expansion of ac_have_library
|
|
3564 ac_save_LIBS="${LIBS}"
|
|
3565 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}"
|
|
3566 ac_have_lib=""
|
|
3567 test -n "$silent" || echo "checking for -lXm in another way"
|
|
3568 cat > conftest.${ac_ext} <<EOF
|
|
3569 #include "confdefs.h"
|
|
3570
|
|
3571 int main() { return 0; }
|
|
3572 int t() { main();; return 0; }
|
|
3573 EOF
|
|
3574 if eval $ac_compile; then
|
|
3575 rm -rf conftest*
|
|
3576 ac_have_lib="1"
|
|
3577
|
|
3578 fi
|
|
3579 rm -f conftest*
|
|
3580 LIBS="${ac_save_LIBS}"
|
|
3581 if test -n "${ac_have_lib}"; then
|
|
3582 :; with_dialogs="motif"
|
|
3583 else
|
|
3584 :;
|
|
3585 fi
|
|
3586 # end expansion of ac_have_library
|
|
3587 fi
|
|
3588 if test "${with_dialogs}" = "motif" ; then
|
|
3589 AC_VERBOSE(Found Motif)
|
|
3590 fi
|
|
3591 fi
|
|
3592 fi
|
|
3593
|
|
3594 [
|
|
3595 if [ "${with_menubars}" = "motif" ] || [ "${with_scrollbars}" = "motif" ] \
|
|
3596 || [ "${with_dialogs}" = "motif" ]; then
|
|
3597 with_motif='yes'
|
|
3598 fi
|
16
|
3599 if [ "${with_menubars}" = "athena" ] || [ "${with_scrollbars}" = "athena" ] \
|
|
3600 || [ "${with_dialogs}" = "athena" ]; then
|
|
3601 with_athena='yes'
|
|
3602 fi
|
|
3603 if [ "${with_menubars}" = "athena3d" ] || [ "${with_scrollbars}" = "athena3d" ] \
|
|
3604 || [ "${with_dialogs}" = "athena3d" ]; then
|
|
3605 with_athena='yes'
|
|
3606 fi
|
0
|
3607
|
|
3608 # Finish ensuring that we have values for the various toolkit items.
|
|
3609 if [ "x${with_menubars}" = "x" ] || [ "${with_menubars}" = "athena" ]; then
|
|
3610 with_menubars='lucid'
|
|
3611 fi
|
|
3612 if [ "x${with_scrollbars}" = "x" ]; then
|
|
3613 with_scrollbars='lucid'
|
|
3614 fi
|
|
3615 if [ "x${with_dialogs}" = "x" ] || [ "${with_dialogs}" = "lucid" ]; then
|
|
3616 with_dialogs='athena'
|
|
3617 fi
|
|
3618 ]
|
|
3619
|
|
3620 ############################################################################
|
|
3621 # #
|
|
3622 # Misc other feature tests #
|
|
3623 # #
|
|
3624 ############################################################################
|
|
3625
|
|
3626 # If netdb.h doesn't declare h_errno, we must declare it by hand.
|
|
3627 AC_COMPILE_CHECK(declaration of h_errno in netdb.h,
|
|
3628 [#include <netdb.h>],
|
|
3629 [int i = h_errno;],
|
|
3630 AC_DEFINE(HAVE_H_ERRNO))
|
|
3631
|
|
3632 AC_COMPILE_CHECK(sigsetjmp,
|
|
3633 [#include <setjmp.h>],
|
|
3634 [sigjmp_buf bar; sigsetjmp (bar, 0);],
|
|
3635 AC_DEFINE(HAVE_SIGSETJMP))
|
|
3636
|
|
3637 AC_CHECKING(whether localtime caches TZ)
|
|
3638 emacs_cv_localtime_cache=
|
|
3639 AC_TEST_PROGRAM([#include <time.h>
|
|
3640 #if 1 /* STDC_HEADERS */
|
|
3641 # include <stdlib.h>
|
|
3642 #endif
|
|
3643 extern char **environ;
|
|
3644 unset_TZ ()
|
|
3645 {
|
|
3646 char **from, **to;
|
|
3647 for (to = from = environ; (*to = *from); from++)
|
|
3648 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
3649 to++;
|
|
3650 }
|
|
3651 main()
|
|
3652 {
|
|
3653 time_t now = time ((time_t *) 0);
|
|
3654 int hour_GMT0, hour_unset;
|
|
3655 if (putenv ("TZ=GMT0") != 0)
|
|
3656 exit (1);
|
|
3657 hour_GMT0 = localtime (&now)->tm_hour;
|
|
3658 unset_TZ ();
|
|
3659 hour_unset = localtime (&now)->tm_hour;
|
|
3660 if (putenv ("TZ=PST8") != 0)
|
|
3661 exit (1);
|
|
3662 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
3663 exit (1);
|
|
3664 unset_TZ ();
|
|
3665 if (localtime (&now)->tm_hour != hour_unset)
|
|
3666 exit (1);
|
|
3667 exit (0);
|
|
3668 }], emacs_cv_localtime_cache=no, emacs_cv_localtime_cache=yes,
|
|
3669 [# If we have tzset, assume the worst when cross-compiling.
|
|
3670 emacs_cv_localtime_cache=yes])
|
|
3671 AC_VERBOSE("$emacs_cv_localtime_cache")
|
|
3672 if test x$emacs_cv_localtime_cache = xyes; then
|
|
3673 AC_DEFINE(LOCALTIME_CACHE)
|
|
3674 fi
|
|
3675
|
|
3676 if test "x$HAVE_TIMEVAL" = xyes; then
|
|
3677 AC_COMPILE_CHECK(whether gettimeofday can't accept two arguments,
|
|
3678 [
|
|
3679 #ifdef TIME_WITH_SYS_TIME
|
|
3680 #include <sys/time.h>
|
|
3681 #include <time.h>
|
|
3682 #else
|
|
3683 #ifdef HAVE_SYS_TIME_H
|
|
3684 #include <sys/time.h>
|
|
3685 #else
|
|
3686 #include <time.h>
|
|
3687 #endif
|
|
3688 #endif
|
|
3689 ],
|
|
3690 [
|
|
3691 struct timeval time;
|
|
3692 struct timezone dummy;
|
|
3693 gettimeofday (&time, &dummy);
|
|
3694 ],
|
|
3695 [AC_VERBOSE(no)],
|
|
3696 [AC_VERBOSE(yes)
|
|
3697 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)])
|
|
3698 fi
|
|
3699
|
|
3700 AC_COMPILE_CHECK(whether inline functions are supported,
|
|
3701 ,
|
|
3702 [
|
|
3703 inline int
|
|
3704 foo ()
|
|
3705 {
|
|
3706 return 0;
|
|
3707 }
|
|
3708 ],
|
|
3709 AC_DEFINE(HAVE_INLINE))
|
|
3710
|
|
3711 # This does all sorts of magic to make sure alloca() works OK.
|
|
3712 # It might even add some junk to the top of <config.h>.
|
|
3713 # (I don't understand what goes on here, but it seems to work.)
|
|
3714 AC_ALLOCA
|
|
3715
|
|
3716 # Check whether vfork exists and works correctly. (This does more
|
|
3717 # than just check for its existence.) If so, it defines HAVE_VFORK_H.
|
|
3718 # If not, it defines vfork to be fork.
|
|
3719 AC_VFORK
|
|
3720
|
|
3721 # Check whether mmap exists and works correctly. (This does more
|
|
3722 # than just check for its existence.) If so, it defines HAVE_MMAP.
|
|
3723 # Actually, this seems to rule out some cases where mmap() can
|
|
3724 # work fine for our purposes (e.g. HPUX). We get a big win out
|
|
3725 # of using mmap(), so let's go back to the old way.
|
|
3726 dnl AC_MMAP
|
|
3727
|
|
3728 # Check whether strcoll exists and works correctly. (This does more
|
|
3729 # than just check for its existence.) If so, it defines HAVE_STRCOLL.
|
|
3730 AC_STRCOLL
|
|
3731
|
|
3732 AC_SIZEOF_TYPE(short)
|
|
3733 AC_SIZEOF_TYPE(int)
|
|
3734 AC_SIZEOF_TYPE(long)
|
|
3735
|
|
3736 # FSF 19.29 does this:
|
|
3737 # # fmod, logb, and frexp are found in -lm on most systems.
|
|
3738 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
|
|
3739 # A C_CHECK_LIB(m, sqrt)
|
|
3740
|
|
3741 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)
|
|
3742
|
|
3743 # Check for mmap.
|
|
3744 found_mmap=true
|
|
3745 AC_FUNC_CHECK(mmap, , found_mmap=)
|
|
3746 if test -n "$found_mmap"; then
|
|
3747 AC_DEFINE(HAVE_MMAP)
|
|
3748 fi
|
|
3749
|
|
3750 [
|
|
3751 # rel_alloc requires either GNU malloc or system malloc with mmap
|
|
3752 if [ "${GNU_MALLOC}" != "yes" ]; then
|
|
3753 if [ "${found_mmap}" != "true" ]; then
|
|
3754 rel_alloc=no
|
|
3755 fi
|
|
3756 fi
|
|
3757
|
|
3758 # We only turn rel_alloc on by default if mmap is available.
|
|
3759 if [ "${rel_alloc}" = "default" ]; then
|
|
3760 if [ "${found_mmap}" = "true" ]; then
|
|
3761 rel_alloc=yes
|
|
3762 fi
|
|
3763 fi
|
|
3764 ]
|
|
3765
|
|
3766
|
|
3767 # Check for Internet sockets.
|
|
3768
|
|
3769 ok_so_far=true
|
|
3770 AC_FUNC_CHECK(socket, , ok_so_far=)
|
|
3771 if test -n "$ok_so_far"; then
|
|
3772 AC_HEADER_CHECK(netinet/in.h, , ok_so_far=)
|
|
3773 fi
|
|
3774 if test -n "$ok_so_far"; then
|
|
3775 AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=)
|
|
3776 fi
|
|
3777 if test -n "$ok_so_far"; then
|
|
3778 AC_DEFINE(HAVE_SOCKETS)
|
|
3779 # Check for the sun_len member in struct sockaddr_un.
|
|
3780
|
|
3781 AC_COMPILE_CHECK(sun_len member in struct sockaddr_un,
|
|
3782 [#include <sys/types.h>
|
|
3783 #include <sys/socket.h>
|
|
3784 #include <sys/un.h>], [static struct sockaddr_un x; x.sun_len = 1;],
|
|
3785 AC_DEFINE(HAVE_SOCKADDR_SUN_LEN))
|
|
3786 fi
|
|
3787
|
|
3788 # Check for SYS V IPC. (Inferior to sockets.)
|
|
3789
|
|
3790 if test -z "$ok_so_far"; then
|
|
3791 ok_so_far=true
|
|
3792 AC_FUNC_CHECK(msgget, , ok_so_far=)
|
|
3793 if test -n "$ok_so_far"; then
|
|
3794 AC_HEADER_CHECK(sys/ipc.h, , ok_so_far=)
|
|
3795 fi
|
|
3796 if test -n "$ok_so_far"; then
|
|
3797 AC_HEADER_CHECK(sys/msg.h, , ok_so_far=)
|
|
3798 fi
|
|
3799 if test -n "$ok_so_far"; then
|
|
3800 AC_DEFINE(HAVE_SYSVIPC)
|
|
3801 fi
|
|
3802 fi
|
|
3803
|
|
3804 # Check for directory variants
|
|
3805
|
|
3806 sysv_system_dir=
|
|
3807 nonsystem_dir_library=
|
|
3808 AC_HEADER_CHECK(dirent.h, sysv_system_dir=yes, )
|
|
3809 if test -z "$sysv_system_dir" ; then
|
|
3810 AC_HEADER_CHECK(sys/dir.h, , nonsystem_dir_library=yes)
|
|
3811 fi
|
|
3812 if test -n "$sysv_system_dir" ; then
|
|
3813 AC_DEFINE(SYSV_SYSTEM_DIR)
|
|
3814 elif test -n "$nonsystem_dir_library" ; then
|
|
3815 AC_DEFINE(NONSYSTEM_DIR_LIBRARY)
|
|
3816 fi
|
|
3817
|
|
3818 # Check for terminal I/O variants
|
|
3819
|
|
3820 echo "checking how to do terminal I/O"
|
|
3821
|
|
3822 have_termios=
|
|
3823 have_termio=
|
|
3824 AC_HEADER_CHECK(termios.h, have_termios=yes, )
|
|
3825 # TERMIOS systems may have termio.h, but not vice-versa, I think.
|
|
3826 if test -z "$have_termios" ; then
|
|
3827 AC_HEADER_CHECK(termio.h, have_termio=yes, )
|
|
3828 fi
|
|
3829 if test -n "$have_termios" ; then
|
|
3830 AC_DEFINE(HAVE_TERMIOS)
|
|
3831 elif test -n "$have_termio" ; then
|
|
3832 AC_DEFINE(HAVE_TERMIO)
|
|
3833 fi
|
|
3834
|
|
3835 # Check for nlist.h
|
|
3836 AC_HEADER_CHECK(nlist.h, AC_DEFINE(NLIST_STRUCT), )
|
|
3837
|
|
3838 if test -f /usr/lpp/X11/bin/smt.exp ; then
|
|
3839 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/lpp/X11/bin/smt.exp)
|
|
3840 elif test -f /usr/bin/X11/smt.exp ; then
|
|
3841 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/bin/X11/smt.exp)
|
|
3842 fi
|
|
3843
|
|
3844 # Set up the CFLAGS for real compilation, so we can substitute it.
|
|
3845 CFLAGS="$REAL_CFLAGS"
|
|
3846
|
|
3847 [
|
|
3848 #### Find out which version of XEmacs this is.
|
|
3849 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
|
|
3850 | sed -ne 's/^(defconst emacs-version "\([0-9][0-9]\.[0-9]*\).*/\1/p'`
|
|
3851 beta=`grep '" XEmacs Lucid' ${srcdir}/lisp/version.el \
|
|
3852 | sed -ne 's/^.*" XEmacs Lucid (beta\([^)]*\)).*/\1/p'`
|
|
3853 alpha=`grep '" XEmacs Lucid' ${srcdir}/lisp/version.el \
|
|
3854 | sed -ne 's/^.*" XEmacs Lucid (alpha\([^)]*\)).*/\1/p'`
|
|
3855 if [ "X$beta" != "X" ]; then
|
|
3856 version=${version}-b${beta}
|
|
3857 fi
|
|
3858 if [ "X$alpha" != "X" ]; then
|
|
3859 version=${version}-a${alpha}
|
|
3860 fi
|
|
3861 if [ x"${version}" = x ]; then
|
|
3862 echo "${progname}: can't find current emacs version in
|
|
3863 \`${srcdir}/lisp/version.el'." >&2
|
|
3864 exit 1
|
|
3865 fi
|
|
3866
|
|
3867 #
|
|
3868 # Check for sound of various sorts.
|
|
3869 #
|
|
3870
|
|
3871 # the following needs to be fixed for SGI.
|
|
3872 if [ -z "${native_sound_lib}" ]; then
|
|
3873 if [ -r /usr/demo/SOUND/lib/libaudio.a ]; then
|
|
3874 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
|
|
3875 elif [ -r /usr/demo/SOUND/libaudio.a ]; then
|
|
3876 native_sound_lib=/usr/demo/SOUND/libaudio.a
|
|
3877 else
|
|
3878 case "${canonical}" in
|
|
3879 *-sgi-* ) native_sound_lib=-laudio ;;
|
|
3880 hppa*-hp-hpux* ) native_sound_lib=-lAlib ;;
|
|
3881 esac
|
|
3882 fi
|
|
3883 fi
|
|
3884
|
|
3885 if [ "${with_sound}" != "native" ] && [ "${with_sound}" != "nas" ] && [ "${with_sound}" != "both" ] && [ "${with_sound}" != "no" ] ; then
|
|
3886 if [ -d /usr/demo/SOUND/multimedia -o -d /usr/demo/SOUND/include/multimedia ]; then
|
|
3887 with_sound="native"
|
|
3888 else
|
|
3889 case "${canonical}" in
|
|
3890 *-sgi-* )
|
|
3891 ] AC_HAVE_LIBRARY(-laudio, with_sound="native") [
|
|
3892 ;;
|
|
3893 hppa*-hp-hpux* )
|
|
3894 ] AC_HAVE_LIBRARY(-lAlib, with_sound="native") [
|
|
3895 ;;
|
|
3896 esac
|
|
3897 fi
|
|
3898 fi
|
|
3899
|
|
3900 #### If the nas library doesn't contain the error jump point, then
|
|
3901 #### we force safer behaviour.
|
|
3902
|
|
3903 if [ "${with_sound}" = "nas" ] || [ "${with_sound}" = "both" ] ; then
|
|
3904 ] AC_HEADER_EGREP(AuXtErrorJump,audio/Xtutil.h, , old_nas=true) [
|
|
3905 fi
|
|
3906
|
|
3907 if [ "${with_tooltalk}" = "yes" ]; then
|
|
3908 for arg in ${DEFS} "-I/usr/include" "-I${OPENWINHOME-/usr/openwin}/include"
|
|
3909 do
|
|
3910 if [ -f `echo "${arg}/desktop/tt_c.h" | sed 's/^\-I//'` ]; then
|
|
3911 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}/desktop"
|
|
3912 fi
|
|
3913 done
|
|
3914
|
|
3915 for arg in ${LIBS} "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib"
|
|
3916 do
|
|
3917 case "${arg}" in
|
|
3918 -L*) if [ -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ]; then
|
|
3919 dash_r=''
|
|
3920 if [ -n "${add_runtime_flag}" ]; then
|
|
3921 dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"`
|
|
3922 fi
|
|
3923 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
|
|
3924 fi
|
|
3925 ;;
|
|
3926 esac
|
|
3927 done
|
|
3928 fi
|
|
3929
|
|
3930 #
|
|
3931 # Check for ncurses.
|
|
3932 #
|
|
3933
|
|
3934 if [ "${with_tty}" != "no" ] ; then
|
|
3935 ] AC_HAVE_LIBRARY(-lncurses, have_ncurses=yes, have_ncurses=no) [
|
|
3936 if [ "${have_ncurses}" = "yes" ] ; then
|
|
3937 ] AC_DEFINE(HAVE_NCURSES) [
|
|
3938 ] AC_HEADER_CHECK(ncurses/term.h, have_ncurses_term_h=yes, have_ncurses_term_h=no) [
|
|
3939 if [ "${have_ncurses_term_h}" = "yes" ] ; then
|
|
3940 ] AC_DEFINE(HAVE_NCURSES_TERM_H) [
|
|
3941 fi
|
|
3942 ] AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no) [
|
|
3943 if [ "${have_ncurses_curses_h}" = "no" ] ; then
|
|
3944 # Try again, and check for the bogus ncurses/ include bug.
|
|
3945 # (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of
|
|
3946 # <ncurses/unctrl.h>)
|
|
3947 OLD_CPP="${CPP}"
|
|
3948 CPP="${CPP} -I/usr/include/ncurses"
|
|
3949 ] AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no) [
|
|
3950 if [ "${have_ncurses_curses_h}" = "yes" ] ; then
|
|
3951 site_includes="${site_includes} /usr/include/ncurses"
|
|
3952 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
|
|
3953 ] AC_VERBOSE(Your system has the bogus ncurses include bug.) [
|
|
3954 else
|
|
3955 CPP="${OLD_CPP}"
|
|
3956 fi
|
|
3957 fi
|
|
3958 if [ "${have_ncurses_curses_h}" = "yes" ] ; then
|
|
3959 ] AC_DEFINE(HAVE_NCURSES_CURSES_H) [
|
|
3960 fi
|
|
3961 fi
|
|
3962 fi
|
|
3963
|
|
3964 #
|
|
3965 # Check for database support.
|
|
3966 #
|
|
3967
|
|
3968 ]dnl <mdiers@logware.de>
|
|
3969 dnl We don't necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support.
|
|
3970 dnl On FreeBSD, both DB and DBM are part of libc.
|
|
3971 dnl Note that unless support for DB/(G)DBM is explicitly disabled, we always
|
|
3972 dnl want to check for libdb/lib(g)dbm. Also note that libc will not be
|
|
3973 dnl checked if we have the libraries.
|
|
3974 dnl If support for DB/(G)DBM is requested, but we neither have libdb/lib(g)dbm,
|
|
3975 dnl nor does libc implement it, we are a bit lost :)
|
|
3976 dnl But wait: one still could define DATABASE_DB_LIBS and DATABASE_DBM_LIBS
|
|
3977 dnl in the system description file to read -lthisiswhereitsat and
|
|
3978 dnl have --site-libraries point there.
|
|
3979 dnl (Does this make sense? My head hurts...)
|
|
3980 [
|
|
3981 if [ "${with_database_berkdb}" != "no" ] ; then
|
|
3982 ] AC_HAVE_LIBRARY(-ldb, have_libdb=yes, have_libdb=no) [
|
|
3983 if [ "${have_libdb}" = "yes" ] ; then
|
|
3984 ] AC_DEFINE(HAVE_LIBDB) [
|
|
3985 fi
|
|
3986 if [ "${with_database_berkdb}" != "yes" ] ; then
|
|
3987 if [ "${have_libdb}" = "yes" ] ; then
|
|
3988 with_database_berkdb=yes
|
|
3989 else
|
|
3990 ] AC_FUNC_CHECK(dbopen, have_dbopen=yes, have_dbopen=no) [
|
|
3991 if [ "${have_dbopen}" = "yes" ] ; then
|
|
3992 with_database_berkdb=yes
|
|
3993 else
|
|
3994 with_database_berkdb=no
|
|
3995 fi
|
|
3996 fi
|
|
3997 fi
|
|
3998 fi
|
|
3999 if [ "${with_database_berkdb}" = "yes" ]; then
|
|
4000 ] AC_DEFINE(HAVE_BERKELEY_DB) [
|
|
4001 fi
|
|
4002
|
|
4003 if [ "${with_database_gnudbm}" != "no" ] ; then
|
|
4004 ] AC_HAVE_LIBRARY(-lgdbm, have_libgdbm=yes, have_libgdbm=no) [
|
|
4005 if [ "${have_libgdbm}" = "yes" ] ; then
|
|
4006 ] AC_DEFINE(HAVE_LIBGDBM) [
|
|
4007 fi
|
|
4008 if [ "${with_database_gnudbm}" != "yes" ] ; then
|
|
4009 if [ "${have_libgdbm}" = "yes" ] ; then
|
|
4010 with_database_gnudbm=yes
|
|
4011 else
|
|
4012 with_database_gnudbm=no
|
|
4013 fi
|
|
4014 fi
|
|
4015 fi
|
|
4016 if [ "${with_database_gnudbm}" = "yes" ]; then
|
|
4017 ] AC_DEFINE(HAVE_DBM) [
|
|
4018 ] AC_DEFINE(HAVE_GNU_DBM) [
|
|
4019 with_database_dbm=no
|
|
4020 fi
|
|
4021
|
|
4022 if [ "${with_database_dbm}" != "no" ] ; then
|
|
4023 ] AC_HAVE_LIBRARY(-ldbm, have_libdbm=yes, have_libdbm=no) [
|
|
4024 if [ "${have_libdbm}" = "yes" ] ; then
|
|
4025 ] AC_DEFINE(HAVE_LIBDBM) [
|
|
4026 fi
|
|
4027 if [ "${with_database_dbm}" != "yes" ] ; then
|
|
4028 if [ "${have_libdbm}" = "yes" ] ; then
|
|
4029 with_database_dbm=yes
|
|
4030 else
|
|
4031 ] AC_FUNC_CHECK(dbm_open, have_dbm_open=yes, have_dbm_open=no) [
|
|
4032 if [ "${have_dbm_open}" = "yes" ] ; then
|
|
4033 with_database_dbm=yes
|
|
4034 else
|
|
4035 with_database_dbm=no
|
|
4036 fi
|
|
4037 fi
|
|
4038 fi
|
|
4039 fi
|
|
4040 if [ "${with_database_dbm}" = "yes" ]; then
|
|
4041 ] AC_DEFINE(HAVE_DBM) [
|
|
4042 fi
|
|
4043
|
|
4044
|
|
4045 ############################################################################
|
|
4046 # #
|
|
4047 # Substitute into Makefile and config.h #
|
|
4048 # #
|
|
4049 ############################################################################
|
|
4050
|
|
4051 ### Specify what sort of things we'll be editing into Makefile and config.h.
|
|
4052 ### Use configuration here uncanonicalized to avoid exceeding size limits.
|
|
4053 ]
|
|
4054 AC_SUBST(version)
|
|
4055 AC_SUBST(configuration)
|
|
4056 AC_SUBST(canonical)
|
|
4057 AC_SUBST(srcdir)
|
|
4058 AC_SUBST(prefix)
|
|
4059 AC_SUBST(exec_prefix)
|
|
4060 AC_SUBST(bindir)
|
|
4061 AC_SUBST(datadir)
|
|
4062 AC_SUBST(statedir)
|
|
4063 AC_SUBST(libdir)
|
|
4064 AC_SUBST(mandir)
|
|
4065 AC_SUBST(infodir)
|
|
4066 AC_SUBST(infodir_user_defined)
|
|
4067 AC_SUBST(lispdir)
|
|
4068 AC_SUBST(lispdir_user_defined)
|
|
4069 AC_SUBST(sitelispdir)
|
|
4070 AC_SUBST(etcdir)
|
|
4071 AC_SUBST(etcdir_user_defined)
|
|
4072 AC_SUBST(lockdir)
|
|
4073 AC_SUBST(lockdir_user_defined)
|
|
4074 AC_SUBST(archlibdir)
|
|
4075 AC_SUBST(archlibdir_user_defined)
|
|
4076 AC_SUBST(docdir)
|
|
4077 AC_SUBST(bitmapdir)
|
|
4078 AC_SUBST(c_switch_system)
|
|
4079 AC_SUBST(c_switch_machine)
|
|
4080 AC_SUBST(libsrc_libs)
|
|
4081 AC_SUBST(LD_SWITCH_X_SITE)
|
|
4082 AC_SUBST(LD_SWITCH_X_SITE_AUX)
|
|
4083 AC_SUBST(C_SWITCH_X_SITE)
|
|
4084 AC_SUBST(LD_SWITCH_SITE)
|
|
4085 AC_SUBST(C_SWITCH_SITE)
|
|
4086 AC_SUBST(CFLAGS)
|
|
4087 AC_SUBST(native_sound_lib)
|
|
4088 AC_SUBST(machfile)
|
|
4089 AC_SUBST(opsysfile)
|
|
4090 AC_SUBST(RANLIB)
|
|
4091 AC_SUBST(dynodump_arch)
|
|
4092
|
|
4093 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${canonical}\"")
|
|
4094 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
|
|
4095 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
|
|
4096 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
|
|
4097 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX})
|
|
4098 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})
|
|
4099 AC_DEFINE_UNQUOTED(LD_SWITCH_SITE, ${LD_SWITCH_SITE})
|
|
4100 AC_DEFINE_UNQUOTED(C_SWITCH_SITE, ${C_SWITCH_SITE})
|
|
4101 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC})
|
|
4102
|
|
4103 [
|
|
4104
|
|
4105 # Note: as a general rule, *only* define things here that are not
|
|
4106 # autodetected. For things that are autodetected, define them
|
|
4107 # at the point where the autodetection occurs or would occur,
|
|
4108 # so that the user gets immediate feedback on the results of the
|
|
4109 # autodetection.
|
|
4110
|
|
4111 if [ x"${puresize}" != x ] ; then
|
28
|
4112 ] AC_DEFINE_UNQUOTED(RAW_PURESIZE, ${puresize}) [
|
0
|
4113 fi
|
|
4114 if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then
|
|
4115 ] AC_DEFINE(HAVE_X_WINDOWS) [
|
|
4116 fi
|
|
4117 if [ "${HAVE_XFREE386}" = "yes" ] ; then
|
|
4118 ] AC_DEFINE(HAVE_XFREE386) [
|
|
4119 fi
|
|
4120 if [ "${GNU_MALLOC}" = "yes" ] ; then
|
|
4121 ] AC_DEFINE(GNU_MALLOC) [
|
|
4122 elif [ "${use_system_malloc}" = "yes" ]; then
|
|
4123 ] AC_DEFINE(USE_SYSTEM_MALLOC) [
|
|
4124 fi
|
|
4125 if [ "${rel_alloc}" = "yes" ] ; then
|
|
4126 ] AC_DEFINE(REL_ALLOC) [
|
|
4127 fi
|
|
4128 if [ "${LISP_FLOAT_TYPE}" = "yes" ] ; then
|
|
4129 ] AC_DEFINE(LISP_FLOAT_TYPE) [
|
|
4130 fi
|
|
4131 if [ "${with_motif}" = "yes" ] ; then
|
|
4132 ] AC_DEFINE(LWLIB_USES_MOTIF) [
|
|
4133 fi
|
16
|
4134 if [ "${with_athena}" = "yes" ] ; then
|
|
4135 ] AC_DEFINE(LWLIB_USES_ATHENA) [
|
|
4136 fi
|
0
|
4137 if [ "${with_menubars}" = "lucid" ] ; then
|
|
4138 ] AC_DEFINE(LWLIB_MENUBARS_LUCID) [
|
|
4139 ] AC_DEFINE(HAVE_MENUBARS) [
|
|
4140 fi
|
|
4141 if [ "${with_menubars}" = "motif" ]; then
|
|
4142 ] AC_DEFINE(LWLIB_MENUBARS_MOTIF) [
|
|
4143 ] AC_DEFINE(HAVE_MENUBARS) [
|
|
4144 fi
|
|
4145 if [ "${with_scrollbars}" = "lucid" ] ; then
|
|
4146 ] AC_DEFINE(LWLIB_SCROLLBARS_LUCID) [
|
|
4147 ] AC_DEFINE(HAVE_SCROLLBARS) [
|
|
4148 fi
|
|
4149 if [ "${with_scrollbars}" = "motif" ] ; then
|
|
4150 ] AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) [
|
|
4151 ] AC_DEFINE(HAVE_SCROLLBARS) [
|
|
4152 fi
|
|
4153 if [ "${with_scrollbars}" = "athena" ] ; then
|
|
4154 ] AC_DEFINE(LWLIB_SCROLLBARS_ATHENA) [
|
|
4155 ] AC_DEFINE(HAVE_SCROLLBARS) [
|
|
4156 fi
|
|
4157 if [ "${with_dialogs}" = "motif" ] ; then
|
|
4158 ] AC_DEFINE(LWLIB_DIALOGS_MOTIF) [
|
|
4159 ] AC_DEFINE(HAVE_DIALOGS) [
|
|
4160 fi
|
|
4161 if [ "${with_dialogs}" = "athena" ] ; then
|
|
4162 ] AC_DEFINE(LWLIB_DIALOGS_ATHENA) [
|
|
4163 ] AC_DEFINE(HAVE_DIALOGS) [
|
|
4164 fi
|
|
4165 if [ "${with_toolbars}" = "yes" ] ; then
|
|
4166 ] AC_DEFINE(HAVE_TOOLBARS) [
|
|
4167 fi
|
|
4168 if [ "${with_tty}" = "yes" ] ; then
|
|
4169 ] AC_DEFINE(HAVE_TTY) [
|
|
4170 fi
|
|
4171 if [ "${with_tooltalk}" = "yes" ] ; then
|
|
4172 ] AC_DEFINE(TOOLTALK) [
|
|
4173 fi
|
|
4174 if [ "$with_mocklisp" = "yes" ]; then
|
|
4175 ] AC_DEFINE(MOCKLISP_SUPPORT) [
|
|
4176 fi
|
|
4177 if [ "${with_sparcworks}" = "yes" ] ; then
|
|
4178 ] AC_DEFINE(SUNPRO) [
|
|
4179 fi
|
|
4180 if [ "${usage_tracking}" = "yes" ] ; then
|
|
4181 ] AC_DEFINE(USAGE_TRACKING) [
|
|
4182 fi
|
|
4183 if [ "${with_energize}" = "yes" ] ; then
|
|
4184 ] AC_DEFINE(ENERGIZE) [
|
|
4185 if [ "${energize_version}" = "2.X" ] ; then
|
|
4186 ] AC_DEFINE(ENERGIZE_2) [
|
|
4187 elif [ "${energize_version}" = "3.X" ] ; then
|
|
4188 ] AC_DEFINE(ENERGIZE_3) [
|
|
4189 fi
|
|
4190 fi
|
|
4191 if [ "${need_dynodump}" = "yes" ] ; then
|
|
4192 ] AC_DEFINE(DYNODUMP) [
|
|
4193 fi
|
|
4194 if [ "${need_xildoff}" = "yes" ] ; then
|
|
4195 ] AC_DEFINE(NEED_XILDOFF) [
|
|
4196 fi
|
|
4197 if [ "${with_gcc}" = "yes" ] ; then
|
|
4198 ] AC_DEFINE(USE_GCC) [
|
|
4199 fi
|
|
4200 if [ "${with_lcc}" = "yes" ] ; then
|
|
4201 ] AC_DEFINE(USE_LCC) [
|
|
4202 fi
|
|
4203 if [ "${with_socks}" = "yes" ]; then
|
|
4204 ] AC_DEFINE(HAVE_SOCKS) [
|
|
4205 fi
|
|
4206 if [ "${with_term}" = "yes" ]; then
|
|
4207 ] AC_DEFINE(HAVE_TERM) [
|
|
4208 fi
|
|
4209 if [ "${with_epoch}" = "yes" ]; then
|
|
4210 ] AC_DEFINE(EPOCH) [
|
|
4211 fi
|
|
4212 if [ "${with_sound}" = "native" -o "${with_sound}" = "both" ]; then
|
|
4213 ] AC_DEFINE(HAVE_NATIVE_SOUND) [
|
|
4214 fi
|
|
4215 if [ "${with_sound}" = "nas" -o "${with_sound}" = "both" ]; then
|
|
4216 ] AC_DEFINE(HAVE_NAS_SOUND) [
|
|
4217 fi
|
|
4218 if [ "${old_nas}" = "true" ] ; then
|
|
4219 ] AC_DEFINE(NAS_NO_ERROR_JUMP) [
|
|
4220 fi
|
|
4221 if [ "${external_widget}" = "yes" ]; then
|
|
4222 ] AC_DEFINE(EXTERNAL_WIDGET) [
|
|
4223 fi
|
|
4224 if [ "${with_gnu_make}" = "yes" ]; then
|
|
4225 ] AC_DEFINE(USE_GNU_MAKE) [
|
|
4226 fi
|
|
4227 if [ "${no_doc_file}" = "yes" ]; then
|
|
4228 ] AC_DEFINE(NO_DOC_FILE) [
|
|
4229 fi
|
|
4230 if [ "${const_is_losing}" = "yes" ]; then
|
|
4231 ] AC_DEFINE(CONST_IS_LOSING) [
|
|
4232 fi
|
|
4233 if [ "${use_assertions}" = "yes" ]; then
|
|
4234 ] AC_DEFINE(USE_ASSERTIONS) [
|
|
4235 fi
|
|
4236 if [ "${error_check_extents}" = "yes" ]; then
|
|
4237 ] AC_DEFINE(ERROR_CHECK_EXTENTS) [
|
|
4238 fi
|
|
4239 if [ "${error_check_typecheck}" = "yes" ]; then
|
|
4240 ] AC_DEFINE(ERROR_CHECK_TYPECHECK) [
|
|
4241 fi
|
|
4242 if [ "${error_check_bufpos}" = "yes" ]; then
|
|
4243 ] AC_DEFINE(ERROR_CHECK_BUFPOS) [
|
|
4244 fi
|
|
4245 if [ "${error_check_gc}" = "yes" ]; then
|
|
4246 ] AC_DEFINE(ERROR_CHECK_GC) [
|
|
4247 fi
|
|
4248 if [ "${error_check_malloc}" = "yes" ]; then
|
|
4249 ] AC_DEFINE(ERROR_CHECK_MALLOC) [
|
|
4250 fi
|
|
4251 if [ "${debug}" = "yes" ]; then
|
|
4252 ] AC_DEFINE(DEBUG_XEMACS) [
|
|
4253 fi
|
|
4254 if [ "${memory_usage_stats}" = "yes" ]; then
|
|
4255 ] AC_DEFINE(MEMORY_USAGE_STATS) [
|
|
4256 fi
|
|
4257 if [ "${use_union_type}" != "yes" ]; then
|
|
4258 ] AC_DEFINE(NO_UNION_TYPE) [
|
|
4259 fi
|
|
4260 if [ "${quantify}" = "yes" ]; then
|
|
4261 ] AC_DEFINE(QUANTIFY) [
|
|
4262 fi
|
|
4263
|
|
4264 # ====================== Developer's configuration =======================
|
|
4265
|
|
4266 # The following assignments make sense if you're running XEmacs on a single
|
|
4267 # machine, one version at a time, and you want changes to the lisp and etc
|
|
4268 # directories in the source tree to show up immediately in your working
|
|
4269 # environment. It saves a great deal of disk space by not duplicating the
|
|
4270 # lisp and etc directories.
|
|
4271
|
|
4272 if [ "$run_in_place" = "yes" ]; then
|
|
4273 prefix='${srcdir}'
|
|
4274 exec_prefix='${srcdir}'
|
|
4275 bindir='${exec_prefix}/bin/${configuration}'
|
|
4276 lispdir='${srcdir}/lisp'
|
|
4277 sitelispdir='${lispdir}/site-lisp'
|
|
4278 etcdir='${srcdir}/etc'
|
|
4279 lockdir='${srcdir}/lock'
|
|
4280 archlibdir='${srcdir}/lib-src/${configuration}'
|
|
4281 infodir='${srcdir}/info'
|
|
4282 fi
|
|
4283 #elif [ "$single_tree" = "1" ]; then
|
|
4284 # if [ "$exec_prefix_specified" = "" ]; then
|
|
4285 # exec_prefix='${prefix}'
|
|
4286 # fi
|
|
4287 # if [ "$bindir_specified" = "" ]; then
|
|
4288 # bindir='${exec_prefix}/bin/${configuration}'
|
|
4289 # fi
|
|
4290 # if [ "$datadir_specified" = "" ]; then
|
|
4291 # datadir='${prefix}/common'
|
|
4292 # fi
|
|
4293 # if [ "$statedir_specified" = "" ]; then
|
|
4294 # statedir='${prefix}/common'
|
|
4295 # fi
|
|
4296 # if [ "$libdir_specified" = "" ]; then
|
|
4297 # libdir='${bindir}'
|
|
4298 # fi
|
|
4299 # if [ "$lispdir_specified" = "" ]; then
|
|
4300 # lispdir='${prefix}/common/lisp'
|
|
4301 # fi
|
|
4302 # if [ "$locallisppath_specified" = "" ]; then
|
|
4303 # locallisppath='${prefix}/common/site-lisp'
|
|
4304 # fi
|
|
4305 # if [ "$lockdir_specified" = "" ]; then
|
|
4306 # lockdir='${prefix}/common/lock'
|
|
4307 # fi
|
|
4308 # if [ "$archlibdir_specified" = "" ]; then
|
|
4309 # archlibdir='${libdir}/etc'
|
|
4310 # fi
|
|
4311 # if [ "$etcdir_specified" = "" ]; then
|
|
4312 # etcdir='${prefix}/common/data'
|
|
4313 # fi
|
|
4314 # if [ "$docdir_specified" = "" ]; then
|
|
4315 # docdir='${prefix}/common/data'
|
|
4316 # fi
|
|
4317 #fi
|
|
4318
|
|
4319 ############################################################################
|
|
4320 # #
|
|
4321 # Report on what we decided to do #
|
|
4322 # #
|
|
4323 ############################################################################
|
|
4324
|
|
4325 echo "
|
|
4326
|
|
4327 Configured for \`${canonical}'.
|
|
4328
|
|
4329 Where should the build process find the source code? ${srcdir}
|
|
4330 What installation prefix should install use? ${prefix}
|
|
4331 What operating system and machine description files should XEmacs use?
|
|
4332 \`${opsysfile}' and \`${machfile}'
|
|
4333 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
|
|
4334 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
|
|
4335 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
|
|
4336 What window system should XEmacs use? ${window_system}${x_includes+
|
|
4337 Where do we find X Windows header files? }${x_includes}${x_libraries+
|
|
4338 Where do we find X Windows libraries? }${x_libraries}"
|
|
4339
|
|
4340 if [ -n "$site_includes" ]; then
|
|
4341 echo " Additional header files: ${site_includes}"
|
|
4342 fi
|
|
4343
|
|
4344 if [ -n "$site_libraries" ] && [ -n "$site_runtime_libraries" ]; then
|
|
4345 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
|
|
4346 elif [ -n "$site_libraries" ]; then
|
|
4347 echo " Additional libraries: ${site_libraries}"
|
|
4348 elif [ -n "$site_runtime_libraries" ]; then
|
|
4349 echo " Additional libraries: ${site_runtime_libraries}"
|
|
4350 fi
|
|
4351
|
|
4352
|
|
4353 if [ "$with_socks" = "yes" ]; then
|
|
4354 echo " Compiling in support for SOCKS."
|
|
4355 fi
|
|
4356 if [ "$with_term" = "yes" ]; then
|
|
4357 echo " Compiling in support for TERM."
|
|
4358 fi
|
|
4359 if [ "$with_xauth" = "yes" ]; then
|
|
4360 echo " Compiling in support for XAUTH."
|
|
4361 fi
|
|
4362 if [ "$with_xpm" = "yes" ]; then
|
|
4363 echo " Compiling in support for XPM."
|
|
4364 fi
|
|
4365 if [ "$with_xmu" != "yes" ] && [ "$window_system" != "none" ]; then
|
|
4366 echo " No Xmu; substituting equivalent routines."
|
|
4367 fi
|
|
4368 if [ "$with_xface" = "yes" ]; then
|
|
4369 echo " Compiling in support for X-Face headers."
|
|
4370 fi
|
|
4371 if [ "$with_gif" = "yes" ]; then
|
|
4372 echo " Compiling in support for GIF image conversion."
|
|
4373 fi
|
|
4374 if [ "$with_jpeg" = "yes" ]; then
|
|
4375 echo " Compiling in support for JPEG image conversion."
|
|
4376 fi
|
|
4377 if [ "$with_png" = "yes" ] || [ "$with_png" = "gnuz" ]; then
|
|
4378 echo " Compiling in support for PNG image conversion."
|
|
4379 fi
|
|
4380 if [ "$with_png" = "gnuz" ]; then
|
|
4381 echo " (Using -lgz instead of -lz.)"
|
|
4382 fi
|
|
4383 if [ "$with_tiff" = "yes" ]; then
|
|
4384 echo " Compiling in support for TIFF image conversion (not implemented)."
|
|
4385 fi
|
|
4386 if [ "$with_epoch" = "yes" ]; then
|
|
4387 echo " Compiling in extra Epoch compatibility."
|
|
4388 fi
|
|
4389 if [ "$with_sound" = "nas" ]; then
|
|
4390 echo " Compiling in network sound support."
|
|
4391 fi
|
|
4392 if [ "$with_sound" = "native" ]; then
|
|
4393 echo " Compiling in native sound support."
|
|
4394 fi
|
|
4395 if [ "$with_sound" = "both" ]; then
|
|
4396 echo " Compiling in both network and native sound support."
|
|
4397 fi
|
|
4398 if [ "$old_nas" = true ]; then
|
|
4399 echo " nas library lacks error trapping, will play synchronously"
|
|
4400 fi
|
|
4401 if [ "$with_database_berkdb" = "yes" ]; then
|
|
4402 echo " Compiling in support for Berkeley DB."
|
|
4403 fi
|
|
4404 if [ "$with_database_dbm" = "yes" ]; then
|
|
4405 echo " Compiling in support for DBM."
|
|
4406 fi
|
|
4407 if [ "$with_database_gnudbm" = "yes" ]; then
|
|
4408 echo " Compiling in support for GNU DBM."
|
|
4409 fi
|
|
4410 if [ "$with_ncurses" = "yes" ]; then
|
|
4411 echo " Compiling in support for ncurses."
|
|
4412 fi
|
|
4413 if [ "$with_socks" = "yes" ]; then
|
|
4414 echo " Compiling in support for SOCKS."
|
|
4415 fi
|
|
4416 if [ "$with_tooltalk" = "yes" ]; then
|
|
4417 echo " Compiling in support for ToolTalk."
|
|
4418 fi
|
|
4419 if [ "$with_cde" = "yes" ]; then
|
|
4420 echo " Compiling in support for CDE."
|
|
4421 fi
|
2
|
4422 if [ "$with_offix" = "yes" ]; then
|
|
4423 echo " Compiling in support for OffiX."
|
|
4424 fi
|
0
|
4425 if [ "$with_mocklisp" = "yes" ]; then
|
|
4426 echo " Compiling in support for Mocklisp."
|
|
4427 fi
|
|
4428 if [ "$with_sparcworks" = "yes" ]; then
|
|
4429 echo " Compiling in support for SparcWorks."
|
|
4430 fi
|
|
4431 if [ "$with_energize" = "yes" ]; then
|
|
4432 echo " Compiling in support for Lucid Energize (doesn't currently work)."
|
|
4433 fi
|
|
4434 if [ "$with_menubars" = "lucid" ]; then
|
|
4435 echo " Using the Lucid menubar."
|
|
4436 fi
|
|
4437 if [ "$with_menubars" = "motif" ]; then
|
|
4438 echo " Using the Motif menubar."
|
|
4439 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
|
|
4440 echo " that you use the Lucid menubar instead. Re-run"
|
|
4441 echo " configure with --with-menubars='lucid'."
|
|
4442 fi
|
|
4443 if [ "$with_scrollbars" = "lucid" ]; then
|
|
4444 echo " Using the Lucid scrollbar."
|
|
4445 fi
|
|
4446 if [ "$with_scrollbars" = "motif" ]; then
|
|
4447 echo " Using the Motif scrollbar."
|
|
4448 fi
|
|
4449 if [ "$with_scrollbars" = "athena" ]; then
|
|
4450 echo " Using the Athena scrollbar."
|
|
4451 fi
|
|
4452 if [ "$with_dialogs" = "motif" ]; then
|
|
4453 echo " Using the Motif dialog boxes."
|
|
4454 fi
|
|
4455 if [ "$with_dialogs" = "athena" ]; then
|
|
4456 echo " Using the Athena dialog boxes."
|
|
4457 fi
|
|
4458 if [ "${use_union_type}" = "yes" ]; then
|
|
4459 echo " Using the union type for Lisp_Objects."
|
|
4460 fi
|
|
4461 if [ "${debug}" = "yes" ]; then
|
|
4462 echo " Compiling in extra code for debugging."
|
|
4463 fi
|
|
4464 if [ "${memory_usage_stats}" = "yes" ]; then
|
|
4465 echo " Compiling in code for checking XEmacs memory usage."
|
|
4466 fi
|
|
4467 if [ "$usage_tracking" = "yes" ]; then
|
|
4468 echo " Compiling with usage tracking active (Sun internal)."
|
|
4469 fi
|
|
4470 echo "
|
|
4471 "
|
|
4472
|
|
4473 ############################################################################
|
|
4474 # #
|
|
4475 # Now generate! #
|
|
4476 # #
|
|
4477 ############################################################################
|
|
4478
|
|
4479 # This has to be called in order for this variable to get into config.status
|
|
4480 ] AC_SUBST(internal_makefile_list) [
|
|
4481 # Remove any trailing slashes in these variables.
|
|
4482 test -n "${prefix}" &&
|
|
4483 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
4484 test -n "${exec_prefix}" &&
|
|
4485 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
4486 ]
|
|
4487 AC_OUTPUT($internal_makefile_list) [
|
|
4488 # Build:
|
|
4489 # src/Makefile from ${srcdir}/src/Makefile.in
|
|
4490 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
|
|
4491 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
|
|
4492 # man/*/Makefile from ${srcdir}/man/*/Makefile.in
|
|
4493 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
|
|
4494 # and possibly
|
|
4495 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
|
|
4496 # This must be done after src/config.h is built, since we rely on that
|
|
4497 # file. Only do the build if "config.status" is present, since its
|
|
4498 # non-presence indicates an error occured.
|
|
4499 status=$?
|
|
4500 if [ ! -f ./config.status ]; then
|
|
4501 exit $status
|
|
4502 fi
|
|
4503 topsrcdir=${srcdir}
|
|
4504 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
|
|
4505 # because some cpps get confused by them.
|
|
4506 # Really we should preserve them somehow into Makefile,
|
|
4507 # but that is beyond my level of shell programming.
|
|
4508 makefile_command='echo "creating src/Makefile";
|
|
4509 topsrcdir='"${topsrcdir}"';
|
|
4510 ( cd ./src;
|
|
4511 rm -f junk.c;
|
|
4512 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4513 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4514 < junk.cpp '\
|
|
4515 ' sed -e '\''s/^#.*//'\'' '\
|
|
4516 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4517 ' -e '\''s/^ / /'\'' '\
|
|
4518 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4519 ' > Makefile.new;
|
|
4520 chmod 444 Makefile.new;
|
|
4521 mv -f Makefile.new Makefile;
|
|
4522 rm -f junk.c junk.cpp;
|
|
4523 )'
|
|
4524 eval `echo $makefile_command`
|
|
4525 lwlib_makefile_command='echo "creating lwlib/Makefile";
|
|
4526 topsrcdir='"${topsrcdir}"';
|
|
4527 ( cd ./lwlib;
|
|
4528 rm -f junk.c;
|
|
4529 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4530 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4531 < junk.cpp '\
|
|
4532 ' sed -e '\''s/^#.*//'\'' '\
|
|
4533 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4534 ' -e '\''s/^ / /'\'' '\
|
|
4535 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4536 ' > Makefile.new;
|
|
4537 chmod 444 Makefile.new;
|
|
4538 mv -f Makefile.new Makefile;
|
|
4539 rm -f junk.c junk.cpp;
|
|
4540 )'
|
|
4541 eval `echo $lwlib_makefile_command`
|
|
4542 lib_src_makefile_command='echo "creating lib-src/Makefile";
|
|
4543 topsrcdir='"${topsrcdir}"';
|
|
4544 ( cd ./lib-src;
|
|
4545 rm -f junk.c;
|
|
4546 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4547 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4548 < junk.cpp '\
|
|
4549 ' sed -e '\''s/^#.*//'\'' '\
|
|
4550 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4551 ' -e '\''s/^ / /'\'' '\
|
|
4552 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4553 ' > Makefile.new;
|
|
4554 chmod 444 Makefile.new;
|
|
4555 mv -f Makefile.new Makefile;
|
|
4556 rm -f junk.c junk.cpp;
|
|
4557 )'
|
|
4558 eval `echo $lib_src_makefile_command`
|
|
4559 dynodump_makefile_command='echo "creating dynodump/Makefile";
|
|
4560 topsrcdir='"${topsrcdir}"';
|
|
4561 ( cd ./dynodump;
|
|
4562 rm -f junk.c;
|
|
4563 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4564 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4565 < junk.cpp '\
|
|
4566 ' sed -e '\''s/^#.*//'\'' '\
|
|
4567 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4568 ' -e '\''s/^ / /'\'' '\
|
|
4569 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4570 ' > Makefile.new;
|
|
4571 chmod 444 Makefile.new;
|
|
4572 mv -f Makefile.new Makefile;
|
|
4573 rm -f junk.c junk.cpp;
|
|
4574 )'
|
|
4575 eval `echo $dynodump_makefile_command`
|
|
4576 if [ "${with_energize}" = "yes" ]; then
|
|
4577 energize_makefile_command='echo "creating lwlib/energize/Makefile";
|
|
4578 topsrcdir='"${topsrcdir}"';
|
|
4579 ( cd ./lwlib/energize;
|
|
4580 rm -f junk.c;
|
|
4581 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
6
|
4582 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
4583 < junk.cpp '\
|
|
4584 ' sed -e '\''s/^#.*//'\'' '\
|
|
4585 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
4586 ' -e '\''s/^ / /'\'' '\
|
|
4587 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
4588 ' > Makefile.new;
|
|
4589 chmod 444 Makefile.new;
|
|
4590 mv -f Makefile.new Makefile;
|
|
4591 rm -f junk.c junk.cpp;
|
|
4592 )'
|
|
4593 eval `echo $energize_makefile_command`
|
|
4594 fi
|
|
4595 # AC-OUTPUT has created `config.status' already. We need to add the
|
|
4596 # above commands to re-create `src/Makefile', `lwlib/Makefile',
|
8
|
4597 # `lib-src/Makefile', `dynodump/Makefile', and possibly
|
0
|
4598 # `lwlib/energize/Makefile', and we need to insert them before the final
|
|
4599 # "exit 0" which appears at the end of `config.status'.
|
|
4600 <config.status sed -e 's/^exit 0$//' >config.new
|
|
4601 echo $makefile_command >>config.new
|
|
4602 echo $lwlib_makefile_command >>config.new
|
|
4603 echo $lib_src_makefile_command >>config.new
|
|
4604 echo $dynodump_makefile_command >>config.new
|
|
4605 echo $man_makefile_command >>config.new
|
|
4606 if [ "${with_energize}" = "yes" ]; then
|
|
4607 echo $energize_makefile_command >>config.new
|
|
4608 fi
|
|
4609 echo exit 0 >>config.new
|
|
4610 mv -f config.new config.status
|
|
4611 chmod +x config.status
|
|
4612 # Don't let the fact that we just rewrote config.status make Makefile think
|
|
4613 # that it is now newer. We have just rewritten all of the Makefiles as well.
|
8
|
4614 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
|
4615 for file in $MFS; do
|
|
4616 chmod a+w $file; touch $file; chmod 444 $file
|
|
4617 done
|
|
4618
|
|
4619 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
|
|
4620 echo creating src/gdbinit
|
|
4621 echo source $topsrcdir/src/gdbinit > src/gdbinit
|
|
4622 fi
|
|
4623
|
|
4624 exit 0
|
|
4625
|
|
4626 # I've removed "mode: ksh" from the following. ksh mode sucks for
|
|
4627 # editing this file. (It seems that ksh mode sucks in general.
|
|
4628 # I wonder if the new 19.29 shell-script mode is better.)
|
|
4629
|
|
4630 # Local Variables:
|
|
4631 # compile-command: "autoconf"
|
|
4632 # End:
|
|
4633 ]
|