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
|
70
|
81 #run_in_place='no'
|
0
|
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.
|
98
|
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.
|
70
|
153 test -n "$CPP" -a -d "$CPP" && CPP=
|
0
|
154
|
|
155 ############################################################################
|
|
156 # #
|
|
157 # Usage messages #
|
|
158 # #
|
|
159 ############################################################################
|
|
160
|
|
161 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
|
|
162
|
|
163 Set compilation and installation parameters for XEmacs, and report.
|
|
164 CONFIGURATION specifies the machine and operating system to build for.
|
|
165
|
|
166 Note that for most of the following options, you can explicitly enable
|
|
167 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'.
|
|
168 This is especially useful for auto-detected options.
|
|
169
|
|
170 Options marked with a (*) are autodetected.
|
|
171
|
|
172
|
|
173 General options:
|
|
174
|
|
175 --help Issue this usage message.
|
|
176 --verbose Display the results of configure tests.
|
|
177 --extra-verbose Also display the output of any compiler invocation.
|
|
178 (Useful when feature tests are coming out wrong.)
|
|
179
|
|
180
|
|
181 Compiler options:
|
|
182
|
|
183 --compiler=XXXX Specify compiler.
|
|
184 --with-gcc (*) Use GCC to compile XEmacs.
|
|
185 --with-lcc Use Lucid's LCC to compile XEmacs.
|
|
186 --with-gcc=no Don't use GCC to compile XEmacs.
|
|
187 --with-gnu-make Write the Makefiles to take advantage of
|
|
188 special features of GNU Make. (GNU Make
|
|
189 works fine on the Makefiles even without this
|
|
190 option. This just allows for simultaneous
|
|
191 in-place and --srcdir building.)
|
|
192 --cflags=FLAGS Override the default values for CFLAGS.
|
|
193 --site-includes=DIR Other header file directories. Separate multiple
|
|
194 dirs with spaces and use quotes to enclose.
|
|
195 --site-libraries=DIR Other library directories.
|
|
196 --site-runtime-libraries=DIR
|
|
197 Paths to add with -R flag.
|
|
198 --dynamic=yes Link dynamically if supported by system.
|
|
199 --dynamic=no Force static linking on systems where dynamic
|
|
200 linking is the default.
|
|
201 --srcdir=DIR Look for the XEmacs source files in DIR.
|
|
202 See also --with-gnu-make.
|
|
203 --const-is-losing=no Allow the use of const in the source code.
|
|
204
|
|
205
|
|
206 Installation options:
|
|
207
|
|
208 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
|
|
209
|
|
210
|
|
211 Window-system options:
|
|
212
|
|
213 --with-x (*) Support the X Window System.
|
|
214 --with-x=no Don't support X.
|
|
215 --x-includes=DIR Search for X header files in DIR.
|
|
216 --x-libraries=DIR Search for X libraries in DIR.
|
70
|
217 --with-ns Support NeXTstep windows (not yet implemented).
|
0
|
218 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
|
|
219 widgets emulate Motif (mostly) but are faster.
|
|
220 *WARNING* The Motif menubar is currently broken.
|
82
|
221 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena,
|
|
222 athena3d, or no).
|
|
223 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, athena3d, or no).
|
0
|
224 (Lucid menubars and scrollbars are the default.
|
|
225 Motif dialog boxes will be used if Motif can be
|
|
226 found.)
|
|
227 --with-cde (*) Compile in support for CDE drag and drop.
|
2
|
228 --with-offix (*) Compile in support for OffiX drag and drop.
|
0
|
229 --with-xpm (*) Compile with support for XPM files.
|
|
230 It is highly recommended that you obtain XPM
|
|
231 (version 3.4g or better) if you don't already
|
|
232 have it. Get it from the XEmacs FTP site.
|
|
233 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu.
|
|
234
|
|
235
|
|
236 Additional features:
|
|
237
|
|
238 --with-toolbars=no Don't compile with any toolbar support.
|
|
239 --with-tooltalk Support the ToolTalk IPC protocol.
|
|
240 --with-sparcworks Support the Sun Sparcworks development environment.
|
|
241 --with-energize Support the Lucid Energize development environment.
|
|
242 This doesn't currently work.
|
|
243 --with-socks Compile with support for SOCKS (an Internet proxy).
|
|
244 --with-term Compile with support for TERM (a way to multiplex
|
|
245 serial lines and provide vaguely Internet-like
|
|
246 functionality over a simple dialup connection,
|
|
247 used on Linux and other systems. NOTE: We can't
|
|
248 guarantee that our TERM support coexists well
|
|
249 with standard Internet connections).
|
|
250 --with-xface (*) Compile with support for X-Face mail header
|
|
251 conversion. Requires the compface library.
|
|
252 Get it from the XEmacs FTP site.
|
|
253 --with-gif Compile with support for GIF image conversion.
|
|
254 This requires no special support and defaults to
|
|
255 \`yes'.
|
|
256 --with-jpeg (*) Compile with support for JPEG image conversion.
|
|
257 Requires libjpeg from the Independent JPEG Group.
|
|
258 Get it from the XEmacs FTP site.
|
|
259 --with-png (*) Compile with support for PNG image conversion.
|
|
260 Requires libpng. Get it from the XEmacs FTP site.
|
|
261 Accepted values are \`yes', \`no', and \`gnuz'
|
|
262 if you want to use -lgz instead of -lz.
|
|
263 --with-tiff Compile with support for TIFF image conversion
|
|
264 (not yet implemented).
|
|
265 --with-database=type (*) Compile with database support. Valid types are
|
|
266 \`no' or a comma-separated list of one or more
|
|
267 of \`dbm', \`gnudbm', or \`berkdb'.
|
|
268 --external-widget Compile with external widget support.
|
|
269 --with-sound=native (*) Compile with native sound support.
|
|
270 --with-sound=nas Compile with network sound support.
|
|
271 --with-sound=both Compile with native and network sound support.
|
|
272 --native-sound-lib=LIB Native sound support library. Needed on Suns
|
|
273 with --with-sound=both because both sound libraries
|
|
274 are called libaudio.
|
|
275 --with-epoch Compile with additional Epoch compatibility.
|
|
276 --with-mocklisp Compile with Mocklisp support. Don't do this
|
|
277 unless you have a Mocklisp program that you need
|
|
278 to run.
|
|
279 --usage-tracking Enable some Sun-internal code. If you don't
|
|
280 know what this is, you don't want it.
|
|
281
|
70
|
282 Internationalization options:
|
|
283
|
|
284 --with-mule Compile with Mule (MUlti-Lingual Emacs) support,
|
|
285 needed to suport non-Latin-1 (including Asian) languages.
|
|
286 --with-xim=xlib Compile with support for X input methods,
|
|
287 --with-xim=motif (*) Used in conjunction with Mule support.
|
|
288 Use either raw Xlib to provide XIM support, or
|
|
289 the Motif XmIm* routines (when available).
|
|
290 If the XmIm* routines are autodetected,
|
|
291 then the default is --with-xim=motif, else --with-xim=no.
|
98
|
292 --with-canna Compile with support for Canna (a Japanese input method
|
|
293 used in conjunction with Mule support).
|
|
294 --with-wnn Compile with support for WNN (a multi-language input method
|
70
|
295 used in conjunction with Mule support).
|
98
|
296 This is beta level code.
|
|
297 --with-wnn6 Compile with support for WNN version 6
|
|
298 This is alpha level code.
|
100
|
299 --wnn-includes=DIR Search for WNN header files in DIR.
|
|
300 --wnn-libraries=DIR Search for WNN libraries in DIR.
|
70
|
301 --with-i18n3 Compile with I18N level 3 (support for message
|
|
302 translation). This doesn't currently work.
|
110
|
303 --canna-includes=DIR Search for Canna header files in DIR.
|
|
304 --canna-libraries=DIR Search for Canna libraries in DIR.
|
70
|
305
|
0
|
306
|
|
307 Debugging options:
|
|
308
|
|
309 --debug Compile with support for debugging XEmacs.
|
116
|
310 (Causes code-size increase and little loss of speed.)
|
0
|
311 --error-checking=TYPE[,TYPE]...
|
|
312 Compile with internal error-checking added.
|
|
313 Causes noticeable loss of speed. Valid types
|
|
314 are extents, bufpos, malloc, gc, typecheck.
|
|
315 --error-checking=none Disable all internal error-checking (the default).
|
|
316 --error-checking=all Enable all internal error-checking.
|
|
317 --memory-usage-stats Compile with additional code to allow you to
|
|
318 determine what XEmacs's memory is being used
|
|
319 for. Causes a small code increase but no loss
|
|
320 of speed. Normally enabled when --debug is given.
|
|
321 --no-doc-file Don't rebuild the DOC file unless it's explicitly
|
|
322 deleted. Only use during development. (It speeds
|
|
323 up the compile-run-test cycle.)
|
|
324 --use-union-type Enable or disable use of a union, instead of an
|
|
325 int, for the fundamental Lisp_Object type; this
|
|
326 provides stricter type-checking. Only works with
|
|
327 some systems and compilers.
|
|
328
|
|
329
|
|
330 Other options:
|
|
331
|
|
332 --puresize=VALUE Override default amount of space for pure Lisp code.
|
|
333 --rel-alloc Use the relocating allocator (default for this option
|
|
334 is system-dependent).
|
|
335 --use-system-malloc Force use of the system malloc, rather than GNU
|
|
336 malloc.
|
|
337
|
|
338 You may also specify any of the \`path' variables found in
|
|
339 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
|
|
340 so on. Note that we recommend against explicitly setting any of these
|
|
341 variables. See the INSTALL file for a complete list plus the reasons
|
70
|
342 we advise not changing them.
|
0
|
343
|
|
344 If successful, ${progname} leaves its status in config.status. If
|
|
345 unsuccessful after disturbing the status quo, it removes config.status."
|
|
346
|
|
347 ############################################################################
|
|
348 # #
|
|
349 # Options processing #
|
|
350 # #
|
|
351 ############################################################################
|
|
352
|
|
353 ### Record all the arguments, so we can save them in config.status.
|
|
354 arguments="$@"
|
|
355
|
|
356 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
|
|
357 ### in order to get the arguments back in $@, we have to do an
|
|
358 ### `eval set x "$quoted_arguments"; shift'.
|
|
359 quoted_arguments=
|
|
360 for i in "$@"; do
|
|
361 quoted_arguments="$quoted_arguments '$i'"
|
|
362 done
|
|
363
|
|
364 ### Don't use shift -- that destroys the argument list, which autoconf needs
|
|
365 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
|
|
366 ### work portably.
|
|
367 ### However, it also turns out that many shells cannot expand ${10} at all.
|
|
368 ### So using an index variable doesn't work either. It is possible to use
|
|
369 ### some shell magic to make 'set x "$arguments"; shift' work portably.
|
70
|
370 while test $# != 0; do
|
0
|
371 arg="$1"; shift
|
|
372 case "${arg}" in
|
|
373
|
|
374 ## Anything starting with a hyphen we assume is an option.
|
|
375 -* )
|
|
376 ## Separate the switch name from the value it's being given.
|
|
377 case "${arg}" in
|
|
378 -*=*)
|
|
379 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
380 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
|
381 valomitted=no
|
|
382 ;;
|
|
383 # ## special case these strings since echo may
|
|
384 # ## silently eat them.
|
|
385 # --help ) opt=help val=yes valomitted=yes ;;
|
|
386 # --version ) opt=version val=yes valomitted=yes ;;
|
|
387 # -e ) opt=e val=yes valomitted=yes ;;
|
|
388 # -E ) opt=E val=yes valomitted=yes ;;
|
|
389 # -n ) opt=n val=yes valomitted=yes ;;
|
|
390 -*)
|
|
391 ## If FOO is a boolean argument, --FOO is equivalent to
|
|
392 ## --FOO=yes. Otherwise, the value comes from the next
|
|
393 ## argument - see below.
|
|
394 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
|
395 val="yes"
|
|
396 valomitted=yes
|
|
397 ;;
|
|
398 esac
|
|
399
|
|
400 ## Change `-' in the option name to `_'.
|
|
401 optname="${opt}"
|
|
402 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`"
|
|
403
|
|
404 ## Process the option.
|
|
405 case "${opt}" in
|
|
406
|
70
|
407 ## Process (many) boolean options
|
|
408 run_in_place | \
|
|
409 with_x | \
|
|
410 with_x11 | \
|
|
411 with_gcc | \
|
|
412 with_lcc | \
|
|
413 with_gnu_make | \
|
|
414 with_epoch | \
|
|
415 dynamic | \
|
|
416 with_term | \
|
|
417 with_cde | \
|
|
418 with_offix | \
|
|
419 with_xpm | \
|
|
420 with_gif | \
|
|
421 with_jpeg | \
|
|
422 with_tiff | \
|
|
423 with_socks | \
|
|
424 with_xface | \
|
|
425 with_xmu | \
|
|
426 quantify | \
|
|
427 with_ns | \
|
|
428 with_toolbars | \
|
|
429 with_tty | \
|
|
430 with_i18n3 | \
|
|
431 with_mule | \
|
|
432 with_canna | \
|
|
433 with_wnn | \
|
98
|
434 with_wnn6 | \
|
70
|
435 with_mocklisp | \
|
|
436 with_energize | \
|
|
437 with_sparcworks | \
|
|
438 with_tooltalk | \
|
|
439 external_widget | \
|
|
440 extra_verbose | \
|
|
441 const_is_losing | \
|
|
442 usage_tracking | \
|
|
443 use_union_type | \
|
|
444 debug | \
|
|
445 use_assertions | \
|
|
446 memory_usage_stats | \
|
|
447 no_doc_file )
|
0
|
448 ## Make sure the value given was either "yes" or "no".
|
|
449 case "${val}" in
|
|
450 y | ye | yes ) val=yes ;;
|
|
451 n | no ) val=no ;;
|
|
452 * )
|
|
453 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
454 Set it to either \`yes' or \`no'."
|
|
455 echo "${short_usage}") >&2
|
70
|
456 exit 1 ;;
|
0
|
457 esac
|
70
|
458 eval "${opt}=\"${val}\"" ;;
|
|
459
|
|
460
|
|
461 ## Options that take a user-supplied value, as in --puresize=8000000
|
|
462 srcdir | \
|
|
463 compiler | \
|
|
464 puresize | \
|
|
465 native_sound_lib | \
|
|
466 x_includes | \
|
|
467 x_libraries | \
|
100
|
468 wnn_includes | \
|
|
469 wnn_libraries | \
|
110
|
470 canna_includes | \
|
|
471 canna_libraries | \
|
70
|
472 site_includes | \
|
|
473 site_libraries | \
|
|
474 site_runtime_libraries )
|
0
|
475 ## If the value was omitted, get it from the next argument.
|
70
|
476 if test "${valomitted}" = "yes" ; then
|
0
|
477 ## Get the next argument from the argument list, if there is one.
|
70
|
478 if test $# = 0 ; then
|
0
|
479 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
480 \`--${optname}=FOO'."
|
|
481 echo "${short_usage}") >&2
|
|
482 exit 1
|
|
483 fi
|
|
484 val="$1"; shift
|
|
485 fi
|
70
|
486 eval "${opt}=\"${val}\""
|
0
|
487 ;;
|
|
488
|
70
|
489 ### Options that take "yes", "no", or "default" values
|
|
490 rel_alloc | \
|
|
491 use_system_malloc )
|
0
|
492 case "${val}" in
|
|
493 y | ye | yes ) val=yes ;;
|
|
494 n | no ) val=no ;;
|
70
|
495 d | de | def | defa | defau | defaul | default )
|
|
496 val=default ;;
|
0
|
497 * )
|
70
|
498 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'.
|
|
499 Set it to either \`yes', \`no', or \`default'."
|
0
|
500 echo "${short_usage}") >&2
|
|
501 exit 1
|
|
502 ;;
|
|
503 esac
|
|
504 eval "${opt}=\"${val}\""
|
|
505 ;;
|
|
506
|
70
|
507 ## Has the user requested database support?
|
|
508 "with_database" )
|
|
509 if test "${val}" = "no" ; then
|
|
510 with_database_berkdb=no
|
|
511 with_database_dbm=no
|
|
512 with_database_gnudbm=no
|
|
513 else
|
|
514 ## Make sure the value given was berkdb, dbm, gnudbm, or a list
|
|
515 for x in `echo "${val}" | sed 's/,/ /'` ; do
|
|
516 case "${x}" in
|
|
517 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
|
|
518 d | db | dbm ) with_database_dbm=yes ;;
|
|
519 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
|
|
520 * )
|
|
521 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no'
|
|
522 or a comma-separated list of one or more of \`berkdb', \`dbm', or \`gnudbm'."
|
|
523 echo "${short_usage}") >&2
|
|
524 exit 1
|
|
525 ;;
|
|
526 esac
|
|
527 done
|
|
528 if test "${with_database_dbm}" = "yes" -a "${with_database_gnudbm}" = "yes"
|
|
529 then
|
|
530 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2
|
0
|
531 exit 1
|
|
532 fi
|
|
533 fi
|
70
|
534 ;;
|
0
|
535
|
|
536 ## Has the user requested sound support?
|
|
537 "with_sound" )
|
|
538 ## value can be native, nas or both. yes is allowed
|
|
539 ## as a backwards compatible synonym for native
|
|
540 case "${val}" in
|
|
541 y | ye | yes ) val=native ;;
|
|
542 n | no | non | none ) val=no;;
|
|
543 na | nat | nati | nativ | native ) val=native ;;
|
|
544 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
|
|
545 b | bo | bot | both ) val=both;;
|
|
546 * )
|
70
|
547 (echo "${progname}: the \`--${optname}' option should have one of the values:"
|
|
548 echo "\`native', \`nas', \`both', or \`none'."
|
|
549 echo ""
|
|
550 echo "${short_usage}") >&2
|
2
|
551 exit 1
|
|
552 ;;
|
|
553 esac
|
|
554 eval "${opt}=\"${val}\""
|
|
555 ;;
|
|
556
|
70
|
557 ## Has the user requested XIM support?
|
|
558 "with_xim" )
|
|
559 ## value can be xlib or motif
|
|
560 ## as a backwards compatible synonym for native
|
0
|
561 case "${val}" in
|
70
|
562 y | ye | yes ) val=yes ;;
|
|
563 n | no | non | none ) val=no ;;
|
|
564 x | xl | xli | xlib ) val=xlib ;;
|
|
565 m | mo | mot | moti | motif ) val=motif ;;
|
0
|
566 * )
|
70
|
567 (echo "${progname}: the \`--${optname}' option should have one of the values:"
|
|
568 echo "\`motif', \`xlib', \`yes', or \`no'."
|
|
569 echo ""
|
|
570 echo "${short_usage}") >&2
|
0
|
571 exit 1
|
|
572 ;;
|
|
573 esac
|
|
574 eval "${opt}=\"${val}\""
|
|
575 ;;
|
|
576
|
|
577 ## Has the user requested PNG support?
|
|
578 "with_png" )
|
|
579 ## Make sure the value given was either "yes", "no", or "gnuz".
|
|
580 case "${val}" in
|
70
|
581 y | ye | yes ) val=yes ;;
|
|
582 n | no ) val=no ;;
|
0
|
583 g | gn | gnu | gnuz ) val=gnuz ;;
|
|
584 * )
|
|
585 (echo "${progname}: the \`--${optname}' option is supposed to
|
|
586 be either \`yes', \`no', or \`gnuz'."
|
|
587 echo "${short_usage}") >&2
|
|
588 exit 1
|
|
589 ;;
|
|
590 esac
|
|
591 eval "${opt}=\"${val}\""
|
|
592 ;;
|
|
593
|
|
594 ## Has the user requested error-checking?
|
|
595 "error_checking" )
|
|
596 ## value can be all, none, and/or a list of categories to check.
|
|
597 ## Example: --error-checking=all,noextents,nobufpos
|
|
598 ## Example: --error-checking=none,malloc,gc
|
|
599
|
|
600 for x in `echo "${val}" | sed 's/,/ /'` ; do
|
|
601 case "${x}" in
|
|
602 # all and none are only permitted as the first in the list.
|
|
603 n | no | non | none ) new_default=no ;;
|
|
604 a | al | all ) new_default=yes ;;
|
|
605
|
|
606 extents ) error_check_extents=yes ;;
|
|
607 noextents ) error_check_extents=no ;;
|
|
608
|
|
609 typecheck ) error_check_typecheck=yes ;;
|
|
610 notypecheck ) error_check_typecheck=no ;;
|
|
611
|
|
612 bufpos ) error_check_bufpos=yes ;;
|
|
613 nobufpos ) error_check_bufpos=no ;;
|
|
614
|
|
615 gc ) error_check_gc=yes ;;
|
|
616 nogc ) error_check_gc=no ;;
|
|
617
|
|
618 malloc ) error_check_malloc=yes ;;
|
|
619 nomalloc ) error_check_malloc=no ;;
|
|
620
|
|
621 * ) bogus_error_check=yes ;;
|
|
622 esac
|
70
|
623 if test "$bogus_error_check" -o \
|
|
624 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
|
0
|
625 ( echo "${progname}: Valid types for the \`--${optname}' option are:"
|
70
|
626 if test $error_check_default = yes ; then
|
0
|
627 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
|
|
628 else
|
|
629 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
|
|
630 fi
|
|
631 echo "${short_usage}" ) >&2
|
|
632 exit 1
|
70
|
633 elif test "$new_default" ; then
|
0
|
634 error_check_extents=$new_default
|
|
635 error_check_typecheck=$new_default
|
|
636 error_check_bufpos=$new_default
|
|
637 error_check_gc=$new_default
|
|
638 error_check_malloc=$new_default
|
|
639 new_default= # reset this
|
|
640 fi
|
|
641 echeck_notfirst=true
|
|
642 done
|
|
643 ;;
|
|
644
|
|
645 ## Has the user tried to tell us where the X files are?
|
|
646 ## I think these are dopey, but no less than three alpha
|
|
647 ## testers, at large sites, have said they have their X files
|
|
648 ## installed in odd places.
|
|
649
|
|
650 ## Has the user specified one of the path options?
|
|
651 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
|
652 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \
|
|
653 sitelispdir | docdir )
|
|
654 ## If the value was omitted, get it from the next argument.
|
70
|
655 if test "${valomitted}" = "yes" ; then
|
|
656 if test $# = 0 ; then
|
0
|
657 (echo \
|
|
658 "$progname: You must give a value for the \`--${optname}' option,";
|
|
659 echo \
|
|
660 "as in \`--${optname}=`eval echo '$'$optname`.'"
|
|
661 echo "$short_usage") >&2
|
|
662 exit 1
|
|
663 fi
|
|
664 val="$1"; shift
|
|
665 fi
|
|
666 eval "${opt}=\"${val}\""
|
|
667
|
|
668 ## Changing exec_prefix or libdir will change the default value
|
|
669 ## of archlibdir. Changing datadir will change the default value
|
|
670 ## of etcdir and lispdir. Changing statedir will change the
|
|
671 ## default value of lockdir.
|
70
|
672 if test "${opt}" = exec_prefix; then archlibdir_user_defined=yes
|
|
673 elif test "${opt}" = libdir ; then archlibdir_user_defined=yes
|
|
674 elif test "${opt}" = archlibdir ; then archlibdir_user_defined=yes
|
|
675 elif test "${opt}" = lispdir ; then lispdir_user_defined=yes
|
|
676 elif test "${opt}" = etcdir ; then etcdir_user_defined=yes
|
|
677 elif test "${opt}" = datadir ; then
|
|
678 lispdir_user_defined=yes
|
|
679 etcdir_user_defined=yes
|
|
680 elif test "${opt}" = statedir ; then lockdir_user_defined=yes
|
|
681 elif test "${opt}" = lockdir ; then lockdir_user_defined=yes
|
|
682 elif test "${opt}" = infodir ; then infodir_user_defined=yes
|
0
|
683 fi
|
|
684 ;;
|
|
685
|
|
686 ## Has the user specified values to override CFLAGS?
|
|
687 cflags )
|
|
688 ## If the value was omitted, get it from the next argument.
|
70
|
689 if test "${valomitted}" = "yes" ; then
|
|
690 if test $# = 0 ; then
|
0
|
691 (echo \
|
|
692 "$progname: You must give a value for the \`--${optname}' option,";
|
|
693 echo \
|
|
694 "as in \`--${optname}=`eval echo '$'$optname`-g -O'"
|
|
695 echo "$short_usage") >&2
|
|
696 exit 1
|
|
697 fi
|
|
698 val="$1"; shift
|
|
699 fi
|
|
700 eval "${opt}=\"${val}\""
|
|
701 eval "${opt}_specified=1"
|
|
702 ;;
|
|
703
|
|
704 ## Verbose flag, tested by autoconf macros.
|
|
705 "verbose" )
|
|
706 verbose=yes
|
|
707 ;;
|
|
708
|
|
709 ## --no-create added by autoconf for use by config.status
|
|
710 "no_create" )
|
|
711 ;;
|
|
712
|
|
713 ## Has the user asked for some help?
|
|
714 "usage" | "help" )
|
70
|
715 if test -z "$PAGER"
|
|
716 then echo "${short_usage}" | more
|
|
717 else echo "${short_usage}" | $PAGER
|
0
|
718 fi
|
|
719 exit
|
|
720 ;;
|
|
721
|
|
722 ## Has the user specified what toolkit to use for the menubars,
|
|
723 ## scrollbar or dialogs?
|
|
724 "with_menubars" | "with_scrollbars" | "with_dialogs" )
|
|
725 ## value can be lucid, motif, or athena.
|
|
726 case "${val}" in
|
|
727 l | lu | luc | luci | lucid ) val=lucid ;;
|
|
728 m | mo | mot | moti | motif ) val=motif ;;
|
82
|
729 athena3d | athena-3d ) val=athena3d ;;
|
0
|
730 a | at | ath | athe | athen | athena ) val=athena ;;
|
|
731 n | no | non | none ) val=no ;;
|
|
732 * )
|
70
|
733 (echo "${progname}: the \`--${optname}' option should have one of the values:"
|
|
734 echo "\`lucid', \`motif', \`athena', or \`no'."
|
|
735 echo ""
|
|
736 echo "${short_usage}") >&2
|
0
|
737 exit 1
|
|
738 ;;
|
|
739 esac
|
|
740 eval "${opt}=\"${val}\""
|
|
741 ;;
|
|
742
|
|
743 ## Fail on unrecognized arguments.
|
|
744 * )
|
70
|
745 (echo "${progname}: Error: unrecognized option: ${arg}"
|
0
|
746 echo ""
|
|
747 echo "${short_usage}") >& 2
|
|
748 exit 1
|
|
749 ;;
|
|
750
|
|
751 esac
|
|
752 ;;
|
|
753
|
|
754 ## Anything not starting with a hyphen we assume is a
|
|
755 ## configuration name.
|
|
756 *)
|
|
757 configuration=${arg}
|
|
758 ;;
|
|
759
|
|
760 esac
|
|
761 done
|
|
762
|
|
763 ############################################################################
|
|
764 # #
|
|
765 # Finish options processing #
|
|
766 # #
|
|
767 ############################################################################
|
|
768
|
|
769 ### Get the arguments back. See the diatribe on Shell Magic above.
|
|
770 eval set x "$quoted_arguments"; shift
|
|
771
|
70
|
772 ### Argument interdependencies
|
|
773 if test "${with_energize}" = "yes" ; then
|
|
774 with_menubars="lucid"
|
|
775 with_scrollbars="motif"
|
|
776 with_dialogs="motif"
|
|
777 with_tooltalk="yes"
|
|
778 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
|
|
779 fi
|
|
780
|
|
781 ### --extra-verbose implies --verbose
|
|
782 test "${extra_verbose}" = yes && verbose=yes
|
|
783
|
|
784 ### Sparcworks requires tooltalk
|
|
785 test "${with_sparcworks}" = yes && with_tooltalk=yes
|
|
786
|
|
787 ### debug implies other options
|
|
788 test "${debug}" = "yes" && use_assertions=yes memory_usage_stats=yes
|
|
789
|
|
790 ### with_x is a synonym for with_x11
|
|
791 test -n "${with_x}" && with_x11="${with_x}"
|
|
792
|
|
793 ### Can't specify 2 compilers
|
|
794 if test "${with_gcc}" = "yes" -a "${with_lcc}" = "yes"; then
|
|
795 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified."
|
|
796 echo "${short_usage}") >&2
|
|
797 exit 1
|
|
798 fi
|
|
799
|
|
800 ### Ignore useless run-in-place flag
|
|
801 if test "${run_in_place}" = "yes"; then
|
|
802 ] AC_WARN(The --run-in-place option is ignored because it is unnecessary.) [
|
|
803 fi
|
|
804
|
|
805 ###########################################################################
|
|
806 if test "${configuration}" = "" ; then
|
0
|
807 echo '- You did not tell me what kind of host system you want to configure.
|
|
808 - I will attempt to guess the kind of system this is.' 1>&2
|
|
809 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
|
|
810 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then
|
|
811 echo "- Looks like this is a ${configuration}" 1>&2
|
|
812 else
|
|
813 echo '- Failed to guess the system type. You need to tell me.' 1>&2
|
|
814 echo "${short_usage}" >&2
|
|
815 exit 1
|
|
816 fi
|
|
817 fi
|
|
818
|
70
|
819 ### Find the source directory.
|
0
|
820 case "${srcdir}" in
|
|
821
|
|
822 ## If it's not specified, see if `.' or `..' might work.
|
|
823 "" )
|
70
|
824 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
|
|
825 if test -f "$dir/src/lisp.h" -a -f "$dir/lisp/version.el" ; then
|
|
826 srcdir="${dir}"
|
|
827 break
|
|
828 fi
|
|
829 done
|
|
830 if test -z "${srcdir}" ; then
|
|
831 echo "\
|
0
|
832 ${progname}: Neither the current directory nor its parent seem to
|
|
833 contain the XEmacs sources. If you do not want to build XEmacs in its
|
|
834 source tree, you should run \`${progname}' in the directory in which
|
|
835 you wish to build XEmacs, using its \`--srcdir' option to say where the
|
70
|
836 sources may be found.
|
|
837 ${short_usage}" >&2
|
|
838 exit 1
|
0
|
839 fi
|
|
840 ;;
|
|
841
|
|
842 ## Otherwise, check if the directory they specified is okay.
|
|
843 * )
|
70
|
844 if test ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ; then
|
0
|
845 (echo "\
|
|
846 ${progname}: The directory specified with the \`--srcdir' option,
|
|
847 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should
|
|
848 either run the \`${progname}' script at the top of the XEmacs source
|
|
849 tree, or use the \`--srcdir' option to specify where the XEmacs sources
|
|
850 are."
|
|
851 echo "${short_usage}") >&2
|
|
852 exit 1
|
|
853 fi
|
|
854 ;;
|
|
855 esac
|
|
856
|
|
857 ## We check for this now instead of later when we check for other
|
|
858 ## programs because we need to use its return value now.
|
|
859 ] AC_LN_S
|
|
860
|
|
861 AC_VERBOSE("setting LN_S to ${LN_S}")
|
70
|
862
|
0
|
863 #### Make symlinks for etc, lisp, and info directories while the path
|
|
864 #### is still relative. We don't symlink lock because someone may
|
|
865 #### have stuck the source on a read-only partition. Instead we'll
|
|
866 #### create it as an actual directory later on if it doesn't already
|
|
867 #### exist.
|
104
|
868 for dir in lisp etc man info site-lisp
|
0
|
869 do
|
70
|
870 if test ! -d $dir ; then
|
0
|
871 echo Making symbolic link to ${srcdir}/$dir
|
|
872 ${LN_S} ${srcdir}/$dir .
|
|
873 fi
|
|
874 done
|
104
|
875
|
70
|
876 [
|
0
|
877 #### Make srcdir absolute, if it isn't already. It's important to
|
|
878 #### avoid running the path through pwd unnecessary, since pwd can
|
|
879 #### give you automounter prefixes, which can go away.
|
|
880 case "${srcdir}" in
|
|
881 /* ) ;;
|
|
882 . )
|
|
883 ## We may be able to use the $PWD environment variable to make this
|
|
884 ## absolute. But sometimes PWD is inaccurate.
|
70
|
885 if test "${PWD}" != "" -a "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`"; then
|
0
|
886 srcdir="$PWD"
|
|
887 else
|
|
888 srcdir="`(cd ${srcdir}; pwd)`"
|
|
889 fi
|
|
890 ;;
|
|
891 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
|
|
892 esac
|
|
893
|
|
894 #### Check if the source directory already has a configured system in it.
|
70
|
895 if test `pwd` != `sh -c cd ${srcdir} && pwd` \
|
|
896 && test -f "${srcdir}/src/config.h"; then
|
0
|
897 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
|
|
898 echo " as a build directory right now; it has been configured in its own"
|
|
899 echo " right. To configure in another directory as well, you MUST"
|
|
900 echo " use GNU make. If you do not have GNU make, then you must"
|
|
901 echo " now do \`make distclean' in ${srcdir},"
|
|
902 echo " and then run ${progname} again.") >&2
|
|
903 extrasub='/^VPATH[ ]*=/c\
|
|
904 vpath %.c $(srcdir)\
|
|
905 vpath %.h $(srcdir)\
|
|
906 vpath %.y $(srcdir)\
|
|
907 vpath %.l $(srcdir)\
|
|
908 vpath %.s $(srcdir)\
|
|
909 vpath %.in $(srcdir)'
|
|
910 fi
|
|
911
|
|
912 ### Make the necessary directories, if they don't exist.
|
70
|
913 for dir in ./src ./lib-src ./dynodump ./lwlib ./lock ; do
|
|
914 if test ! -d ${dir} ; then
|
0
|
915 mkdir ${dir}
|
|
916 fi
|
|
917 done
|
70
|
918 if test "${with_energize}" = "yes" -a ! -d ./lwlib/energize; then
|
0
|
919 mkdir ./lwlib/energize
|
|
920 fi
|
|
921
|
|
922 ############################################################################
|
|
923 # #
|
|
924 # Determine the s&m files to use #
|
|
925 # #
|
|
926 ############################################################################
|
|
927
|
|
928 #### Given the configuration name, set machfile and opsysfile to the
|
|
929 #### names of the m/*.h and s/*.h files we should use.
|
|
930
|
|
931 ### Canonicalize the configuration name.
|
|
932 echo "checking the configuration name"
|
|
933 # allow -energize prefix on configuration name
|
|
934 internal_configuration=`echo ${configuration} | sed 's/-energize//'`
|
|
935 # allow --sparcworks prefix on configuration name
|
|
936 internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'`
|
|
937 if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else
|
|
938 exit $?
|
|
939 fi
|
|
940
|
|
941 ### If you add support for a new configuration, add code to this
|
|
942 ### switch statement to recognize your configuration name and select
|
|
943 ### the appropriate operating system and machine description files.
|
|
944
|
|
945 ### You would hope that you could choose an m/*.h file pretty much
|
|
946 ### based on the machine portion of the configuration name, and an s-
|
|
947 ### file based on the operating system portion. However, it turns out
|
|
948 ### that each m/*.h file is pretty manufacturer-specific - for
|
|
949 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
|
|
950 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
|
|
951 ### machines. So we basically have to have a special case for each
|
|
952 ### configuration name.
|
|
953 ###
|
|
954 ### As far as handling version numbers on operating systems is
|
|
955 ### concerned, make sure things will fail in a fixable way. If
|
|
956 ### /etc/MACHINES doesn't say anything about version numbers, be
|
|
957 ### prepared to handle anything reasonably. If version numbers
|
|
958 ### matter, be sure /etc/MACHINES says something about it.
|
|
959 ###
|
|
960 ### Eric Raymond says we should accept strings like "sysvr4" to mean
|
|
961 ### "System V Release 4"; he writes, "The old convention encouraged
|
|
962 ### confusion between `system' and `release' levels'."
|
|
963
|
|
964 machine='' opsys='' unported=no need_dynodump=no
|
|
965 case "${canonical}" in
|
|
966
|
|
967 ## NetBSD ports
|
|
968 *-*-netbsd* )
|
|
969 opsys=netbsd
|
|
970 case "${canonical}" in
|
70
|
971 sparc-*-netbsd*) machine=sparc ;;
|
0
|
972 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
973 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
|
974 # Yes, this is somewhat bogus.
|
|
975 machine=hp9000s300 ;;
|
70
|
976 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
977 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
0
|
978 esac
|
|
979 ;;
|
|
980
|
|
981 ## Acorn RISCiX:
|
70
|
982 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
|
|
983 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
|
0
|
984
|
|
985 ## Alliant machines
|
|
986 ## Strictly speaking, we need the version of the alliant operating
|
|
987 ## system to choose the right machine file, but currently the
|
|
988 ## configuration name doesn't tell us enough to choose the right
|
|
989 ## one; we need to give alliants their own operating system name to
|
|
990 ## do this right. When someone cares, they can help us.
|
70
|
991 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
|
|
992 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
|
0
|
993
|
|
994 ## Alpha (DEC) machines.
|
|
995 ## XEmacs change: split apart into numerous files.
|
70
|
996 alpha-dec-osf1.3 | alpha-dec-osf2* ) machine=alpha opsys=decosf1-3 ;;
|
|
997 alpha-dec-osf1.2 | alpha-dec-osf1* ) machine=alpha opsys=decosf1-2 ;;
|
0
|
998
|
|
999 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
|
|
1000 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu)
|
70
|
1001 alpha-dec-osf3.[2-9] ) machine=alpha opsys=decosf3-2 ;;
|
|
1002 alpha-dec-osf3* ) machine=alpha opsys=decosf3-1 ;;
|
|
1003 alpha-dec-osf4* ) machine=alpha opsys=decosf4-0 ;;
|
|
1004 alpha-*-linux* ) machine=alpha opsys=linux ;;
|
0
|
1005
|
|
1006 ## Altos 3068
|
70
|
1007 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
|
0
|
1008
|
|
1009 ## Amdahl UTS
|
70
|
1010 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
|
0
|
1011
|
|
1012 ## Apollo, Domain/OS
|
70
|
1013 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
|
0
|
1014
|
|
1015 ## AT&T 3b2, 3b5, 3b15, 3b20
|
70
|
1016 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
|
0
|
1017
|
|
1018 ## AT&T 3b1 - The Mighty Unix PC!
|
70
|
1019 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
|
0
|
1020
|
74
|
1021 ## Bull machines
|
|
1022 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
|
|
1023 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
|
|
1024 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
|
0
|
1025
|
|
1026 ## CCI 5/32, 6/32 -- see "Tahoe".
|
|
1027
|
|
1028 ## Celerity
|
|
1029 ## I don't know what configuration name to use for this; config.sub
|
|
1030 ## doesn't seem to know anything about it. Hey, Celerity users, get
|
|
1031 ## in touch with us!
|
70
|
1032 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
|
0
|
1033
|
|
1034 ## Clipper
|
|
1035 ## What operating systems does this chip run that XEmacs has been
|
|
1036 ## tested on?
|
70
|
1037 clipper-* ) machine=clipper
|
0
|
1038 ## We'll use the catch-all code at the bottom to guess the
|
|
1039 ## operating system.
|
|
1040 ;;
|
|
1041
|
|
1042 ## Convex
|
|
1043 *-convex-bsd* | *-convex-convexos* )
|
|
1044 machine=convex opsys=bsd4-3
|
|
1045 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
|
|
1046 NON_GNU_CPP="cc -E -P"
|
|
1047 ;;
|
|
1048
|
|
1049 ## Cubix QBx/386
|
70
|
1050 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
|
0
|
1051
|
|
1052 ## Cydra 5
|
70
|
1053 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;;
|
0
|
1054
|
|
1055 ## Data General AViiON Machines
|
82
|
1056 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
|
70
|
1057 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) machine=aviion opsys=dgux5-4r3 ;;
|
|
1058 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) machine=aviion opsys=dgux5-4r2 ;;
|
74
|
1059 m88k-dg-dgux* ) machine=aviion opsys=dgux ;;
|
70
|
1060
|
|
1061 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) machine=pmax opsys=bsd4-2 ;;
|
|
1062 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) machine=pmax opsys=bsd4-3 ;;
|
|
1063 mips-dec-ultrix* ) machine=pmax opsys=ultrix4-3 ;;
|
|
1064 mips-dec-osf* ) machine=pmax opsys=osf1 ;;
|
|
1065 mips-dec-mach_bsd4.3* ) machine=pmax opsys=mach-bsd4-3 ;;
|
0
|
1066
|
|
1067 ## Motorola Delta machines
|
|
1068 m68k-motorola-sysv* | m68000-motorola-sysv* )
|
|
1069 machine=delta opsys=usg5-3
|
|
1070 if test -z "`type gnucc | grep 'not found'`"
|
|
1071 then
|
|
1072 if test -s /etc/167config
|
|
1073 then CC="gnucc -m68040"
|
|
1074 else CC="gnucc -m68881"
|
|
1075 fi
|
|
1076 else
|
|
1077 if test -z "`type gcc | grep 'not found'`"
|
|
1078 then CC=gcc
|
|
1079 else CC=cc
|
|
1080 fi
|
|
1081 fi
|
|
1082 ;;
|
|
1083 m88k-motorola-sysv4* )
|
|
1084 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
|
|
1085 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
|
|
1086 # I hope there are not other 4.0 versions for this machine
|
|
1087 # which really need usg5-4 instead.
|
|
1088 machine=delta88k opsys=usg5-4-2
|
|
1089 ;;
|
70
|
1090 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
|
0
|
1091
|
|
1092 ## Dual machines
|
70
|
1093 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
|
|
1094 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
|
0
|
1095
|
|
1096 ## Elxsi 6400
|
70
|
1097 elxsi-elxsi-sysv* ) machine=elxsi opsys=usg5-2 ;;
|
0
|
1098
|
|
1099 ## Encore machines
|
70
|
1100 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
|
0
|
1101
|
|
1102 ## Gould Power Node and NP1
|
70
|
1103 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
|
|
1104 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
|
|
1105 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
|
0
|
1106
|
|
1107 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
|
|
1108 ## as far as XEmacs is concerned).
|
|
1109 m88k-harris-cxux* )
|
|
1110 # Build needs to be different on 7.0 and later releases
|
|
1111 case "`uname -r`" in
|
74
|
1112 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
70
|
1113 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
0
|
1114 esac
|
|
1115 NON_GNU_CPP="/lib/cpp"
|
|
1116 ;;
|
|
1117 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
|
70
|
1118 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
|
0
|
1119 ## Harris power pc NightHawk running Power UNIX (Series 6000)
|
|
1120 powerpc-harris-powerunix )
|
|
1121 machine=nh6000 opsys=powerunix
|
|
1122 NON_GNU_CPP="cc -Xo -E -P"
|
|
1123 ;;
|
|
1124
|
|
1125 ## Honeywell XPS100
|
70
|
1126 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
|
0
|
1127
|
|
1128 ## HP 9000 series 200 or 300
|
70
|
1129 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
|
|
1130
|
|
1131 ## HP-UX on HP's
|
|
1132 *-hp-hpux* )
|
0
|
1133 NON_GNU_CC="cc -Aa"
|
70
|
1134 NON_GNU_CPP="cc -Aa -E"
|
|
1135
|
|
1136 ### Figure out machine and opsys orthogonally
|
|
1137 case "${canonical}" in
|
|
1138 m68* ) machine=hp9000s300 ;;
|
|
1139 hppa* ) machine=hp800 ;;
|
|
1140 esac
|
|
1141
|
|
1142 case "${canonical}" in
|
74
|
1143 *-hp-hpux7* ) opsys=hpux ;;
|
|
1144 *-hp-hpux8* ) opsys=hpux8 ;;
|
|
1145 *-hp-hpux9* ) opsys=hpux9 ;;
|
|
1146 *-hp-hpux10* ) opsys=hpux10 ;;
|
70
|
1147 * )
|
|
1148 case "`uname -r`" in
|
|
1149 ## Someone's system reports A.B8.05 for this.
|
|
1150 ## I wonder what other possibilities there are.
|
|
1151 *.B8.* ) opsys=hpux8 ;;
|
|
1152 *.08.* ) opsys=hpux8 ;;
|
|
1153 *.09.* ) opsys=hpux9 ;;
|
|
1154 *.10.* ) opsys=hpux10 ;;
|
|
1155 * ) opsys=hpux ;;
|
|
1156 esac
|
|
1157 ;;
|
0
|
1158 esac
|
74
|
1159
|
92
|
1160 if test $opsys = hpux10 ; then
|
90
|
1161 NON_GNU_CC="cc -Ae"
|
|
1162 NON_GNU_CPP="cc -Ae -E"
|
|
1163 fi
|
|
1164
|
74
|
1165 case "${canonical}" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
|
0
|
1166 ;;
|
|
1167
|
70
|
1168 hppa-*-nextstep* ) machine=hp800 opsys=nextstep ;;
|
0
|
1169
|
|
1170 ## Orion machines
|
70
|
1171 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
|
|
1172 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
|
0
|
1173
|
|
1174 ## IBM machines
|
70
|
1175 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
|
|
1176 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
|
|
1177 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
|
|
1178 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) machine=ibmrs6000 opsys=aix3-1 ;;
|
|
1179 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) machine=ibmrs6000 opsys=aix3-2-5 ;;
|
88
|
1180 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) machine=ibmrs6000 opsys=aix4-2 ;;
|
70
|
1181 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) machine=ibmrs6000 opsys=aix4-1 ;;
|
|
1182 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) machine=ibmrs6000 opsys=aix4 ;;
|
|
1183 rs6000-ibm-aix* | powerpc-ibm-aix* ) machine=ibmrs6000 opsys=aix3-2 ;;
|
|
1184 romp-ibm-bsd4.3* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1185 romp-ibm-bsd4.2* ) machine=ibmrt opsys=bsd4-2 ;;
|
|
1186 romp-ibm-aos4.3* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1187 romp-ibm-aos4.2* ) machine=ibmrt opsys=bsd4-2 ;;
|
|
1188 romp-ibm-aos* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1189 romp-ibm-bsd* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1190 romp-ibm-aix* ) machine=ibmrt-aix opsys=usg5-2-2 ;;
|
|
1191 romp-ibm-mach* ) machine=ibmrt opsys=mach-bsd4-3 ;;
|
0
|
1192
|
|
1193 ## Integrated Solutions `Optimum V'
|
70
|
1194 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
|
|
1195 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
|
0
|
1196
|
|
1197 ## Intel 386 machines where we do care about the manufacturer
|
70
|
1198 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
|
0
|
1199
|
|
1200 ## Prime EXL
|
70
|
1201 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
|
0
|
1202
|
|
1203 ## Sequent Symmetry running Dynix
|
70
|
1204 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
|
0
|
1205
|
|
1206 ## Sequent Symmetry running DYNIX/ptx
|
|
1207 ## Use the old cpp rather than the newer ANSI one.
|
|
1208 i[3-9]86-sequent-ptx* )
|
|
1209 machine=sequent-ptx opsys=ptx
|
|
1210 NON_GNU_CPP="/lib/cpp"
|
|
1211 ;;
|
|
1212
|
|
1213 ## Unspecified sysv on an ncr machine defaults to svr4.2.
|
|
1214 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
|
70
|
1215 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
|
0
|
1216
|
|
1217 ## Intel Paragon OSF/1
|
70
|
1218 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
|
0
|
1219
|
|
1220 ## Intel 860
|
|
1221 i860-*-sysv4* )
|
|
1222 machine=i860 opsys=usg5-4
|
|
1223 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
|
|
1224 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
|
|
1225 ;;
|
|
1226
|
|
1227 ## Masscomp machines
|
70
|
1228 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
|
0
|
1229
|
|
1230 ## Megatest machines
|
70
|
1231 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
|
0
|
1232
|
|
1233 ## Workstations sold by MIPS
|
|
1234 ## This is not necessarily all workstations using the MIPS processor -
|
|
1235 ## Irises are produced by SGI, and DECstations by DEC.
|
|
1236
|
|
1237 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
|
|
1238 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
|
|
1239 ## it gives for choosing between the alternatives seems to be "Use
|
|
1240 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
|
|
1241 ## the BSD world." I'll assume that these are instructions for
|
|
1242 ## handling two odd situations, and that every other situation
|
|
1243 ## should use mips.h and usg5-2-2, they being listed first.
|
|
1244 mips-mips-usg* )
|
|
1245 machine=mips4
|
|
1246 ## Fall through to the general code at the bottom to decide on the OS.
|
|
1247 ;;
|
70
|
1248 mips-mips-riscos4 )
|
|
1249 machine=mips4
|
0
|
1250 NON_GNU_CC="cc -systype bsd43"
|
|
1251 NON_GNU_CPP="cc -systype bsd43 -E"
|
70
|
1252 case "${canonical}" in
|
|
1253 mips-mips-riscos4* ) opsys=bsd4-3 ;;
|
|
1254 mips-mips-riscos5* ) opsys=riscos5 ;;
|
|
1255 esac
|
0
|
1256 ;;
|
70
|
1257 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
|
|
1258 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
|
0
|
1259
|
|
1260 ## NeXT
|
70
|
1261 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
|
0
|
1262
|
|
1263 ## The complete machine from National Semiconductor
|
70
|
1264 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
|
0
|
1265
|
|
1266 ## NCR machines
|
70
|
1267 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
|
|
1268 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
|
0
|
1269
|
|
1270 ## Nixdorf Targon 31
|
70
|
1271 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
|
0
|
1272
|
|
1273 ## Nu (TI or LMI)
|
70
|
1274 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
|
0
|
1275
|
|
1276 ## Plexus
|
70
|
1277 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
|
0
|
1278
|
|
1279 ## Pyramid machines
|
|
1280 ## I don't really have any idea what sort of processor the Pyramid has,
|
|
1281 ## so I'm assuming it is its own architecture.
|
70
|
1282 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
|
0
|
1283
|
|
1284 ## Sequent Balance
|
70
|
1285 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
|
|
1286 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
|
0
|
1287
|
|
1288 ## Siemens Nixdorf
|
|
1289 mips-siemens-sysv* | mips-sni-sysv*)
|
|
1290 machine=mips-siemens opsys=usg5-4
|
|
1291 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1292 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1293 ;;
|
|
1294
|
|
1295 ## Silicon Graphics machines
|
|
1296 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
|
70
|
1297 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
|
1298 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
0
|
1299 ## Iris 4D
|
70
|
1300 mips-sgi-irix3.* ) machine=iris4d opsys=irix3-3 ;;
|
|
1301 mips-sgi-irix4.* ) machine=iris4d opsys=irix4-0 ;;
|
82
|
1302 mips-sgi-irix6* ) machine=iris4d opsys=irix6-0 ;;
|
70
|
1303 mips-sgi-irix5.[3-9]* ) machine=iris4d opsys=irix5-3 ;;
|
|
1304 mips-sgi-irix5.2* ) machine=iris4d opsys=irix5-2 ;;
|
|
1305 mips-sgi-irix5.1* ) machine=iris4d opsys=irix5-1 ;;
|
|
1306 mips-sgi-irix* ) machine=iris4d opsys=irix5-0 ;;
|
0
|
1307
|
|
1308 ## SONY machines
|
70
|
1309 m68*-sony-bsd4.2* ) machine=news opsys=bsd4-2 ;;
|
|
1310 m68*-sony-bsd4.3* ) machine=news opsys=bsd4-3 ;;
|
|
1311 m68*-sony-newsos3* | m68*-sony-news3*) machine=news opsys=bsd4-3 ;;
|
|
1312 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) machine=news-risc opsys=bsd4-3 ;;
|
|
1313 mips-sony-news* ) machine=news-risc opsys=newsos5 ;;
|
0
|
1314
|
|
1315 ## Stride
|
70
|
1316 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
0
|
1317
|
|
1318 ## Suns
|
70
|
1319 sparc-*-linux* ) machine=sparc opsys=linux ;;
|
0
|
1320
|
|
1321 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
1322 # Hardware type
|
|
1323 case "${canonical}" in
|
|
1324 m68*-sunos1* ) machine=sun1 ;;
|
|
1325 m68*-sunos2* ) machine=sun2 ;;
|
|
1326 m68* ) machine=sun3 ;;
|
|
1327 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
1328 i[3-9]86-*-* ) machine=intel386 ;;
|
|
1329 rs6000* ) machine=rs6000 ;;
|
|
1330 sparc* ) machine=sparc ;;
|
|
1331 powerpc* ) machine=powerpc ;;
|
|
1332 * ) unported=yes ;;
|
|
1333 esac
|
|
1334
|
|
1335 # Make `canonical' even more so.
|
|
1336 case "${canonical}" in *-sunos5*)
|
70
|
1337 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";;
|
0
|
1338 esac
|
|
1339
|
|
1340 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
|
|
1341 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed
|
|
1342 # But, SunOS 5.6 no longer needs dynodump because it has a similar
|
|
1343 # function integrated.
|
|
1344 case "${canonical}" in
|
|
1345 *-sunos4* )
|
70
|
1346 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1347 *-solaris2* )
|
|
1348 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
0
|
1349 RANLIB=':'
|
70
|
1350 case "${canonical}" in
|
|
1351 *-solaris2.[6-9]* ) need_dynodump=no ;;
|
|
1352 *-solaris2* ) need_dynodump=yes ;;
|
|
1353 esac
|
0
|
1354 esac
|
|
1355
|
|
1356 case "${canonical}" in
|
|
1357 ## The Sun386 didn't get past 4.0.
|
74
|
1358 i[3-9]86-*-sunos4* ) opsys=sunos4-0 ;;
|
|
1359 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
1360 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
110
|
1361 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
|
1362 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
74
|
1363 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
1364
|
|
1365 *-solaris2.3* ) opsys=sol2-3 ;;
|
|
1366 *-solaris2.4* ) opsys=sol2-4 ;;
|
|
1367 *-solaris2.5* ) opsys=sol2-5 ;;
|
|
1368 *-solaris2.[6-9]* ) opsys=sol2-6 ;;
|
|
1369 *-solaris* ) opsys=sol2 ;;
|
|
1370
|
|
1371 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1372 * ) opsys=bsd4-2 ;;
|
0
|
1373 esac
|
70
|
1374
|
74
|
1375 case "${canonical}" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
1376
|
70
|
1377 ## Watch out for a compiler that is guaranteed not to work.
|
0
|
1378 case "${canonical}" in
|
70
|
1379 *-solaris* ) test "$CC" = "/usr/ucb/cc" && unset CC ;;
|
0
|
1380 esac
|
|
1381 ;;
|
70
|
1382
|
|
1383 sparc-*-nextstep* ) machine=sparc opsys=nextstep ;;
|
0
|
1384
|
|
1385 ## Tadpole 68k
|
70
|
1386 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
0
|
1387
|
|
1388 ## Tahoe machines
|
70
|
1389 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
|
1390 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
0
|
1391
|
|
1392 ## Tandem Integrity S2
|
70
|
1393 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
0
|
1394
|
|
1395 ## Tektronix XD88
|
70
|
1396 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
0
|
1397
|
|
1398 ## Tektronix 16000 box (6130?)
|
70
|
1399 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
0
|
1400 ## Tektronix 4300
|
|
1401 ## src/m/tek4300.h hints that this is a m68k machine.
|
70
|
1402 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
0
|
1403
|
|
1404 ## Titan P2 or P3
|
|
1405 ## We seem to have lost the machine-description file titan.h!
|
70
|
1406 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
0
|
1407
|
|
1408 ## Ustation E30 (SS5E)
|
70
|
1409 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
0
|
1410
|
|
1411 ## Vaxen.
|
|
1412 vax-dec-* )
|
|
1413 machine=vax
|
|
1414 case "${canonical}" in
|
|
1415 *-bsd4.1* ) opsys=bsd4-1 ;;
|
|
1416 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
1417 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
|
|
1418 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
1419 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
1420 *-vms* ) opsys=vms ;;
|
|
1421 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1422 * ) unported=yes
|
|
1423 esac
|
|
1424 ;;
|
|
1425
|
|
1426 ## Whitechapel MG1
|
70
|
1427 ## We don't know what sort of OS runs on these; we'll let the
|
|
1428 ## operating system guessing code below try.
|
|
1429 ns16k-whitechapel-* ) machine=mg1 ;;
|
0
|
1430
|
|
1431 ## Wicat
|
70
|
1432 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
0
|
1433
|
|
1434 ## Intel 386 machines where we don't care about the manufacturer
|
|
1435 i[3-9]86-*-* )
|
|
1436 machine=intel386
|
|
1437 case "${canonical}" in
|
|
1438 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
|
1439 *-isc2.2* ) opsys=isc2-2 ;;
|
|
1440 *-isc4.0* ) opsys=isc4-0 ;;
|
|
1441 *-isc4.* ) opsys=isc4-1
|
|
1442 GCC_TEST_OPTIONS=-posix
|
|
1443 NON_GCC_TEST_OPTIONS=-Xp
|
|
1444 ;;
|
|
1445 *-isc* ) opsys=isc3-0 ;;
|
|
1446 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1447 *-esix* ) opsys=esix ;;
|
|
1448 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1449 *-xenix* ) opsys=xenix ;;
|
|
1450 *-linux* ) opsys=linux ;;
|
|
1451 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
|
|
1452 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
110
|
1453 *-bsdi3* ) opsys=bsdos3 ;;
|
0
|
1454 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
1455 *-bsdi2* ) opsys=bsdos2 ;;
|
|
1456 *-sco3.2v5* ) opsys=sco5 ;
|
70
|
1457 ## This is a pain. Like the current USL cc, SCO's cc -E
|
|
1458 ## tokenizes as it preprocesses, making configure very
|
|
1459 ## unhappy. Unfortunately, /lib/cpp doesn't understand
|
|
1460 ## flags like "-b elf", so we have to cheat in order to
|
|
1461 ## pick up the right defines for UNEXEC from the s-file.
|
|
1462 ## 01/05/95 robertl@dgii.com
|
|
1463 if test "${dynamic}" = "yes" ; then
|
|
1464 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
|
|
1465 else
|
|
1466 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
|
|
1467 fi ;;
|
|
1468 *-386bsd* ) opsys=386bsd ;;
|
|
1469 *-freebsd* ) opsys=freebsd ;;
|
0
|
1470 *-nextstep* ) opsys=nextstep ;;
|
|
1471 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
|
|
1472 esac
|
|
1473 ;;
|
|
1474
|
|
1475 ## Linux/68k
|
70
|
1476 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
1477
|
|
1478 * ) unported=yes ;;
|
0
|
1479 esac
|
|
1480
|
|
1481 ### If the code above didn't choose an operating system, just choose
|
|
1482 ### an operating system based on the configuration name. You really
|
|
1483 ### only want to use this when you have no idea what the right
|
|
1484 ### operating system is; if you know what operating systems a machine
|
|
1485 ### runs, it's cleaner to make it explicit in the case statement
|
|
1486 ### above.
|
70
|
1487 if test -z "${opsys}" ; then
|
0
|
1488 case "${canonical}" in
|
70
|
1489 *-gnu* ) opsys=gnu ;;
|
|
1490 *-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
1491 *-bsd4.2 ) opsys=bsd4-2 ;;
|
|
1492 *-bsd4.3 ) opsys=bsd4-3 ;;
|
74
|
1493 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
|
|
1494 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
|
|
1495 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
1496 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
|
|
1497 *-sysv4.1* | *-sysvr4.1* ) opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
|
0
|
1498 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
70
|
1499 if test -z "$NON_GNU_CPP" ; then
|
|
1500 if test -f /usr/ccs/lib/cpp
|
|
1501 then NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1502 else NON_GNU_CPP=/lib/cpp
|
0
|
1503 fi
|
|
1504 fi
|
|
1505 opsys=usg5-4-2 ;;
|
70
|
1506 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
1507 * ) unported=yes ;;
|
0
|
1508 esac
|
|
1509 fi
|
|
1510
|
70
|
1511 test -z "$RANLIB" && RANLIB=ranlib
|
0
|
1512
|
|
1513 if test ${unported} = yes; then
|
|
1514 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
|
|
1515 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
|
|
1516 ) >&2
|
|
1517 exit 1
|
|
1518 fi
|
|
1519
|
70
|
1520 if test "${dynamic}" = "yes" ; then
|
0
|
1521 case "${opsys}" in
|
74
|
1522 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
0
|
1523 esac
|
70
|
1524 elif test "${dynamic}" = "no" ; then
|
0
|
1525 case "${opsys}" in
|
74
|
1526 sol2* | decosf1-3 | decosf3-* | linux ) opsys="${opsys}-static" ;;
|
0
|
1527 esac
|
|
1528 fi
|
|
1529
|
|
1530 dynodump_arch=''
|
70
|
1531 if test "${need_dynodump}" = "yes" ; then
|
0
|
1532 case "${canonical}" in
|
|
1533 sparc* ) dynodump_arch=sparc ;;
|
|
1534 powerpc* ) dynodump_arch=ppc ;;
|
|
1535 i[3-9]86* ) dynodump_arch=i386 ;;
|
|
1536 esac
|
|
1537 fi
|
|
1538
|
|
1539 machfile="m/${machine}.h"
|
|
1540 opsysfile="s/${opsys}.h"
|
|
1541
|
|
1542
|
|
1543 ############################################################################
|
|
1544 # #
|
|
1545 # Determine the compiler, set up for feature testing #
|
|
1546 # #
|
|
1547 ############################################################################
|
|
1548
|
|
1549 ]
|
|
1550 dnl -----------------------------------------------------------------------
|
|
1551 dnl Let's do a couple of macro (re)definitions.
|
|
1552 dnl
|
|
1553 dnl First we redefine AC_TEST_CPP so that we can see the error output
|
|
1554 dnl from preprocessor runs. This definition is identical to the standard
|
|
1555 dnl one supplied by Autoconf 1.11 extra for the extra_verbose check.
|
|
1556 dnl
|
|
1557 dnl Note that we *must* include the brackets around the macro definition
|
|
1558 dnl name here. Autoconf has redefined the quoting characters to be brackets,
|
|
1559 dnl and if we don't supply them, the original definition will get
|
|
1560 dnl substituted in place of the macro name!
|
|
1561 dnl
|
70
|
1562
|
|
1563 dnl Following macro is useful shorthand
|
|
1564 define([IF_YES_AC_DEFINE],test "${$1}" = yes && [AC_DEFINE]($2))
|
|
1565
|
0
|
1566 define([AC_TEST_CPP],
|
|
1567 [AC_REQUIRE_CPP()dnl
|
|
1568 cat > conftest.${ac_ext} <<EOF
|
|
1569 #include "confdefs.h"
|
|
1570 [$1]
|
|
1571 EOF
|
70
|
1572 dnl # Some shells (Coherent) do redirections in the wrong order, so need
|
|
1573 dnl # the parens.
|
|
1574 dnl # The exec was added by Mly to make this work under BSDI
|
0
|
1575 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
70
|
1576 dnl # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
|
0
|
1577 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
1578 echo "$ac_err"
|
|
1579 fi
|
|
1580 if test -z "$ac_err"; then
|
|
1581 ifelse([$2], , :, [rm -rf conftest*
|
|
1582 $2
|
|
1583 ])
|
|
1584 ifelse([$3], , , [else
|
|
1585 rm -rf conftest*
|
|
1586 $3
|
|
1587 ])dnl
|
|
1588 fi
|
|
1589 rm -f conftest*])dnl
|
|
1590 dnl
|
|
1591 dnl Second, a macro of our own:
|
|
1592 dnl Subroutine to find version of X being used
|
|
1593 dnl It can't use xmkmf because the first version in the user's path
|
|
1594 dnl may not belong to the version of X that is being built with
|
|
1595 define(AC_FIND_X_VERSION,
|
|
1596 [AC_CHECKING(the version of X11 being used)
|
|
1597 cat > conftest.${ac_ext} <<EOF
|
|
1598 #include <X11/Intrinsic.h>
|
|
1599 int main() {
|
|
1600 #if (XlibSpecificationRelease == 4)
|
|
1601 printf ("X11R4\n");
|
|
1602 #elif (XlibSpecificationRelease == 5)
|
|
1603 printf ("X11R5\n");
|
|
1604 #elif (XlibSpecificationRelease == 6)
|
|
1605 printf ("X11R6\n");
|
|
1606 #elif (XtSpecificationRelease == 4)
|
|
1607 printf ("X11R4\n");
|
|
1608 #endif
|
|
1609 return 0;
|
|
1610 }
|
|
1611 EOF
|
|
1612 dnl We need to run this which will prevent cross-configuring. But since
|
|
1613 dnl we can't do that anyhow, oh darn.
|
|
1614 ac_save_LIBS="${LIBS}"
|
|
1615 LIBS="${LIBS} ${DEFS}"
|
|
1616 if eval $ac_compile; then
|
70
|
1617 case "`./conftest`" in
|
|
1618 X11R4 ) AC_DEFINE(THIS_IS_X11R4) ;;
|
|
1619 X11R5 ) AC_DEFINE(THIS_IS_X11R5) ;;
|
|
1620 X11R6 ) AC_DEFINE(THIS_IS_X11R6) ;;
|
|
1621 esac
|
0
|
1622 fi
|
|
1623 LIBS=$ac_save_LIBS
|
|
1624 rm -f conftest*]
|
|
1625 )dnl
|
|
1626 dnl -----------------------------------------------------------------------
|
|
1627 AC_LANG_C
|
|
1628 AC_PREPARE(lisp)
|
|
1629 AC_CONFIG_HEADER(src/config.h)
|
|
1630
|
70
|
1631 if test "${extra_verbose}" = "yes" ; then
|
0
|
1632 # This is identical to the version that A\C_LANG_C generates except that
|
|
1633 # it omits the redirection of all output to /dev/null.
|
|
1634 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS'
|
|
1635 fi
|
|
1636
|
|
1637 #### Choose a compiler.
|
92
|
1638 if test "x$CC" = x ; then
|
0
|
1639 cc_specified=1
|
|
1640 fi
|
|
1641
|
|
1642 # Save the value of CFLAGS that the user specified.
|
|
1643 SPECIFIED_CFLAGS="$CFLAGS"
|
|
1644
|
70
|
1645 if test "${with_gcc}" = "yes" ; then
|
0
|
1646 CC="${compiler-gcc}"
|
|
1647 GCC=1
|
70
|
1648 elif test "${with_lcc}" = "yes" ; then
|
0
|
1649 CC="${compiler-lcc}"
|
|
1650 dash_r_space=' ' # this bullshit is here because lcc for solaris
|
|
1651 # will not accept -Rargument.
|
|
1652 # It needs -R argument instead. Yuck yuck yuck.
|
70
|
1653 test -z "$NON_GNU_CPP" && NON_GNU_CPP="yes" # this is handled specially below...
|
|
1654 elif test "${compiler}" != "" ; then CC="${compiler}"
|
|
1655 elif test "${with_gcc}" = "no" ; then CC="cc"
|
|
1656 elif test "${with_lcc}" = "no" ; then
|
|
1657 test -z "$CC" && CC=cc
|
0
|
1658 else
|
|
1659 case "${canonical}" in
|
|
1660 * )
|
70
|
1661 AC_PROG_CC
|
|
1662 if test "${CC}" = "gcc" ; then
|
0
|
1663 with_gcc="yes"
|
|
1664 GCC=1
|
|
1665 fi
|
|
1666 ;;
|
|
1667 esac
|
|
1668 fi
|
|
1669
|
70
|
1670 [
|
0
|
1671
|
|
1672 #### Some systems specify a CPP to use unless we are using GCC.
|
|
1673 #### Now that we know whether we are using GCC, we can decide whether
|
|
1674 #### to use that one.
|
70
|
1675 if test "x$NON_GNU_CPP" = x -o x$GCC = x1
|
|
1676 then true
|
0
|
1677 else
|
70
|
1678 if test "x$CPP" = x ; then
|
|
1679 if test "${with_lcc}" = "yes" -a "${NON_GNU_CPP}" = "yes"; then
|
0
|
1680 CPP='gcc -E -traditional' # cross fingers and hope it's there....
|
|
1681 else
|
|
1682 CPP="$NON_GNU_CPP"
|
|
1683 fi
|
|
1684 fi
|
|
1685 fi
|
|
1686
|
|
1687 #### Some systems specify a CC to use unless we are using GCC.
|
|
1688 #### Now that we know whether we are using GCC, we can decide whether
|
|
1689 #### to use that one.
|
70
|
1690 if test "x$NON_GNU_CC" = x -o x$GCC = x1 -o x$cc_specified = x1
|
0
|
1691 then true
|
|
1692 else
|
|
1693 CC="$NON_GNU_CC"
|
|
1694 fi
|
|
1695
|
|
1696 ## Huh? I commented out the following because it always enabled
|
|
1697 ## the "test" options, whatever the hell those are supposed to be
|
|
1698 ## for, and the result is that SunOS builds were always static.
|
|
1699
|
70
|
1700 # test x$GCC = x1 -a "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
|
|
1701 # test x$GCC = x -a "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
|
0
|
1702
|
|
1703 ############################################################################
|
|
1704 # #
|
|
1705 # Do some misc autoconf-special tests #
|
|
1706 # #
|
|
1707 ############################################################################
|
|
1708
|
|
1709 #### Some other nice autoconf tests. If you add a test here which
|
|
1710 #### should make an entry in src/config.h, don't forget to add an
|
|
1711 #### #undef clause to src/config.h.in for autoconf to modify.
|
|
1712 ]
|
|
1713 dnl checks for programs
|
|
1714 AC_PROG_CPP
|
|
1715 [
|
|
1716 case "${canonical}" in
|
|
1717 *-sun-sunos* )
|
70
|
1718 if test "${CPP}" = "acc -E" ; then
|
0
|
1719 CPP="acc -E -Xs"
|
|
1720 fi
|
|
1721 ;;
|
|
1722 esac
|
|
1723 ]
|
|
1724 AC_PROG_RANLIB
|
|
1725 AC_PROG_INSTALL
|
|
1726 AC_PROG_YACC
|
|
1727
|
|
1728 dnl checks for UNIX variants
|
|
1729 AC_AIX
|
|
1730
|
|
1731 dnl checks for header files
|
70
|
1732 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 kstat.h sys/pstat.h)
|
0
|
1733 AC_STDC_HEADERS
|
|
1734 AC_TIME_WITH_SYS_TIME
|
|
1735 AC_SYS_SIGLIST_DECLARED
|
|
1736
|
|
1737 dnl Some systems have utime.h but don't declare the struct anyplace.
|
|
1738 AC_COMPILE_CHECK(struct utimbuf,
|
|
1739 [#ifdef TIME_WITH_SYS_TIME
|
|
1740 #include <sys/time.h>
|
|
1741 #include <time.h>
|
|
1742 #else
|
|
1743 #ifdef HAVE_SYS_TIME_H
|
|
1744 #include <sys/time.h>
|
|
1745 #else
|
|
1746 #include <time.h>
|
|
1747 #endif
|
|
1748 #endif
|
|
1749 #ifdef HAVE_UTIME_H
|
|
1750 #include <utime.h>
|
|
1751 #endif], [static struct utimbuf x; x.actime = x.modtime;],
|
|
1752 AC_DEFINE(HAVE_STRUCT_UTIMBUF))
|
|
1753
|
|
1754 dnl checks for typedefs
|
|
1755 AC_RETSIGTYPE
|
|
1756
|
|
1757 AC_COMPILE_CHECK(struct timeval,
|
|
1758 [#ifdef TIME_WITH_SYS_TIME
|
|
1759 #include <sys/time.h>
|
|
1760 #include <time.h>
|
|
1761 #else
|
|
1762 #ifdef HAVE_SYS_TIME_H
|
|
1763 #include <sys/time.h>
|
|
1764 #else
|
|
1765 #include <time.h>
|
|
1766 #endif
|
|
1767 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], [
|
|
1768 HAVE_TIMEVAL=yes
|
|
1769 AC_DEFINE(HAVE_TIMEVAL)],
|
|
1770 [HAVE_TIMEVAL=no])
|
|
1771
|
|
1772 dnl checks for structure members
|
|
1773 AC_STRUCT_TM
|
|
1774 AC_TIMEZONE
|
|
1775
|
|
1776 dnl checks for compiler characteristics
|
|
1777 AC_CONST
|
|
1778
|
|
1779 dnl check for Make feature
|
|
1780 AC_SET_MAKE
|
|
1781
|
|
1782 dnl check byte order
|
|
1783 AC_WORDS_BIGENDIAN
|
|
1784
|
|
1785 dnl check for long file names
|
|
1786 AC_LONG_FILE_NAMES
|
|
1787
|
|
1788 echo "checking for -xildoff compiler flag"
|
|
1789 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
1790 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
1791 :
|
|
1792 else
|
|
1793 AC_VERBOSE(defining NEED_XILDOFF)
|
|
1794 need_xildoff=yes
|
|
1795 fi
|
|
1796 fi
|
|
1797
|
|
1798 dnl other checks for UNIX variants
|
|
1799 [
|
|
1800 # What the hell was this doing here??????
|
|
1801 ### echo > confdefs.h # this gets nuked above...
|
|
1802
|
|
1803 ############################################################################
|
|
1804 # #
|
|
1805 # Choose a window system #
|
|
1806 # #
|
|
1807 ############################################################################
|
|
1808
|
|
1809 #### Choose a window system.
|
|
1810 echo "checking for specified window system"
|
|
1811
|
|
1812 window_system=''
|
70
|
1813 case "${with_x11}" in
|
|
1814 yes ) window_system=${window_system}x11 ;;
|
|
1815 no ) window_system=${window_system}none ;;
|
0
|
1816 esac
|
|
1817
|
|
1818 case "${window_system}" in
|
|
1819 "none" | "x11" ) ;;
|
|
1820 "" )
|
|
1821 # --x-includes or --x-libraries implies --with-x11.
|
70
|
1822 if test -n "${x_includes}" -o -n "${x_libraries}"; then
|
0
|
1823 window_system=x11
|
|
1824 else
|
|
1825 echo " No window system specified. Looking for X11."
|
|
1826 # If the user didn't specify a window system and we found X11, use it.
|
70
|
1827 if test -r /usr/lib/libX11.a \
|
0
|
1828 -o -d /usr/include/X11 \
|
|
1829 -o -d /usr/X386/include \
|
|
1830 -o -d /usr/X11R6/include \
|
70
|
1831 -o -d ${x_includes}/X11 ; then
|
0
|
1832 window_system=x11
|
|
1833 fi
|
|
1834 fi
|
|
1835 ;;
|
|
1836 * )
|
|
1837 echo "Don't specify a window system more than once." >&2
|
|
1838 exit 1
|
|
1839 ;;
|
|
1840 esac
|
|
1841
|
70
|
1842 ]
|
|
1843 case "${window_system}" in "" | "x11" )
|
0
|
1844 ### If the user hasn't specified where we should find X, try
|
|
1845 ### letting autoconf figure that out.
|
70
|
1846 if test -z "${x_includes}${x_libraries}" ; then
|
|
1847 AC_FIND_X
|
0
|
1848 fi
|
70
|
1849 if test -n "${x_includes}${x_libraries}" ; then window_system=x11 ; fi
|
0
|
1850 ;;
|
|
1851 esac
|
|
1852
|
70
|
1853 test -z "${window_system}" && window_system="none"
|
|
1854
|
|
1855 if test "${window_system}" = "none" ; then
|
|
1856 if test "${with_tty}" != "yes" ; then
|
0
|
1857 echo "No window system support, and no TTY support." >&2
|
|
1858 echo "Unable to proceed." >&2
|
|
1859 exit 1
|
|
1860 fi
|
70
|
1861 for feature in epoch cde offix menubars scrollbars toolbars dialogs xim tiff
|
|
1862 do
|
|
1863 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
|
|
1864 AC_WARN(--with-$feature ignored: Not valid without X support)
|
|
1865 fi
|
74
|
1866 eval "with_$feature=no"
|
70
|
1867 done
|
|
1868 elif test -z "${with_toolbars}" ; then
|
0
|
1869 with_toolbars='yes'
|
|
1870 fi
|
70
|
1871 [
|
116
|
1872 runtime_arg="-R${dash_r_space}"
|
|
1873
|
0
|
1874 case "${canonical}" in
|
116
|
1875 *-sun-solaris* | *-sun-sunos5* )
|
|
1876 add_runtime_flag=yes ;;
|
|
1877 *-sgi-irix5.* )
|
|
1878 # In the IRIX 5.3 ld, only the last -rpath arg has any effect. This is
|
|
1879 # fundamentaly incompatible with having separate LD_SWITCH_X_SITE
|
|
1880 # and LD_SWITCH_SITE variables. Fortunately, SGI fixed this by 6.2.
|
|
1881 if [ -n "${x_libraries}" ] || [ -n "${site_runtime_libraries}" ]; then
|
|
1882 (echo "WARNING: The IRIX 5 ld ignores all but the last -rpath argument,";
|
|
1883 echo " so if you need to specify more than one additional";
|
|
1884 echo " runtime library directory, you will have to do so";
|
|
1885 echo " manually by setting the environment variable";
|
|
1886 echo " LD_SWITCH_SITE to '-rpath <path>' before running";
|
|
1887 echo " configure. If you have only one additional directory,"
|
|
1888 echo " you can specify it with --site-runtime-libraries.") >&2
|
|
1889 fi
|
|
1890 runtime_arg="-rpath " ;;
|
|
1891 *-sgi-irix* )
|
|
1892 # Note that IRIX gcc (as of 2.7.2) doesn't accept -rpath, so
|
|
1893 # using it can cause trouble. Specifying --use-gcc=no will work
|
|
1894 # around this, but the real problem is that configure uses $LDFLAGS
|
|
1895 # as arguments to $(CC), instead of using prefix-args like the
|
|
1896 # src/Makefile does.
|
|
1897 add_runtime_flag=yes;
|
|
1898 runtime_arg="-rpath " ;;
|
0
|
1899 esac
|
|
1900
|
70
|
1901 if test -n "${x_libraries}" ; then
|
116
|
1902 if test "${add_runtime_flag}" = "yes" ]; then
|
|
1903 LD_SWITCH_X_SITE="-L${x_libraries} ${runtime_arg}${x_libraries}"
|
74
|
1904 else
|
70
|
1905 LD_SWITCH_X_SITE="-L${x_libraries}"
|
|
1906 fi
|
0
|
1907 fi
|
|
1908 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
|
70
|
1909 # test -n "${x_libraries}" -a LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
|
|
1910 test -n "${x_includes}" && C_SWITCH_X_SITE="-I${x_includes}"
|
|
1911
|
|
1912 if test -n "${site_libraries}" ; then
|
0
|
1913 for arg in ${site_libraries}
|
|
1914 do
|
|
1915 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
|
1916 done
|
|
1917 fi
|
70
|
1918 if test -n "${site_runtime_libraries}" ; then
|
0
|
1919 for arg in ${site_runtime_libraries}
|
|
1920 do
|
|
1921 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
116
|
1922 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${runtime_arg}${arg}"
|
0
|
1923 done
|
|
1924 fi
|
70
|
1925 if test -n "${site_includes}" ; then
|
0
|
1926 for arg in ${site_includes}
|
|
1927 do
|
|
1928 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
|
|
1929 CPP="${CPP} -I${arg}"
|
|
1930 done
|
|
1931 fi
|
|
1932
|
|
1933 # FSF 19.29 has some bitmapdir stuff here.
|
|
1934 bitmapdir=
|
|
1935
|
|
1936 # Avoid forcing the search of /usr/include before fixed include files.
|
70
|
1937 test "$C_SWITCH_X_SITE" = "-I/usr/include" && C_SWITCH_X_SITE=" "
|
0
|
1938
|
|
1939 # Need for check for audio/Xtutil.h.
|
|
1940 CPP="${CPP} ${C_SWITCH_X_SITE}"
|
|
1941
|
|
1942 case "${window_system}" in
|
70
|
1943 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
|
1944 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
0
|
1945 esac
|
|
1946
|
|
1947 if test "${opsys}" = "hpux9"; then
|
|
1948 case "${x_libraries}" in
|
70
|
1949 *X11R4* ) opsysfile="s/hpux9-x11r4.h" ;;
|
0
|
1950 esac
|
|
1951 fi
|
|
1952
|
74
|
1953 if test "${opsys}" = "hpux9-shr"; then
|
0
|
1954 case "${x_libraries}" in
|
70
|
1955 *X11R4* ) opsysfile="s/hpux9shxr4.h" ;;
|
0
|
1956 esac
|
|
1957 fi
|
|
1958
|
|
1959 ############################################################################
|
|
1960 # #
|
|
1961 # Extract some information from the operating system and machine files #
|
|
1962 # #
|
|
1963 ############################################################################
|
|
1964
|
|
1965 echo "examining the machine- and system-dependent files to find out"
|
|
1966 echo " - which libraries the lib-src programs will want, and"
|
|
1967 echo " - whether the GNU malloc routines are usable."
|
|
1968
|
|
1969 ### First figure out CFLAGS (which we use for running the compiler here)
|
|
1970 ### and REAL_CFLAGS (which we use for real compilation).
|
|
1971 ### The two are the same except on a few systems, where they are made
|
|
1972 ### different to work around various lossages. For example,
|
|
1973 ### GCC 2.5 on Linux needs them to be different because it treats -g
|
|
1974 ### as implying static linking.
|
|
1975
|
|
1976 ### If the CFLAGS env var is specified, we use that value
|
|
1977 ### instead of the default.
|
|
1978
|
|
1979 ### It's not important that this name contain the PID; you can't run
|
|
1980 ### two configures in the same directory and have anything work
|
|
1981 ### anyway.
|
|
1982 tempcname="conftest.c"
|
|
1983
|
|
1984 echo '
|
|
1985 #define NOT_C_CODE
|
|
1986 #include "'${srcdir}'/src/'${opsysfile}'"
|
|
1987 #include "'${srcdir}'/src/'${machfile}'"
|
|
1988 #ifndef LIBS_MACHINE
|
|
1989 #define LIBS_MACHINE
|
|
1990 #endif
|
|
1991 #ifndef LIBS_SYSTEM
|
|
1992 #define LIBS_SYSTEM
|
|
1993 #endif
|
|
1994 #ifndef C_SWITCH_SYSTEM
|
|
1995 #define C_SWITCH_SYSTEM
|
|
1996 #endif
|
|
1997 #ifndef C_SWITCH_X_SYSTEM
|
|
1998 #define C_SWITCH_X_SYSTEM
|
|
1999 #endif
|
|
2000 #ifndef C_SWITCH_MACHINE
|
|
2001 #define C_SWITCH_MACHINE
|
|
2002 #endif
|
|
2003 #ifndef LD_SWITCH_X_SYSTEM
|
|
2004 #define LD_SWITCH_X_SYSTEM
|
|
2005 #endif
|
|
2006 #ifndef LIB_STANDARD
|
|
2007 #define LIB_STANDARD
|
|
2008 #endif
|
|
2009 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD
|
|
2010 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
2011 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
|
|
2012 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
|
|
2013 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
2014
|
|
2015 #ifndef LIB_X11_LIB
|
|
2016 #define LIB_X11_LIB -lX11
|
|
2017 #endif
|
|
2018
|
|
2019 #ifndef LIBX11_MACHINE
|
|
2020 #define LIBX11_MACHINE
|
|
2021 #endif
|
|
2022
|
|
2023 #ifndef LIBX11_SYSTEM
|
|
2024 #define LIBX11_SYSTEM
|
|
2025 #endif
|
|
2026 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
|
|
2027
|
|
2028 #ifdef UNEXEC
|
|
2029 configure___ unexec=UNEXEC
|
|
2030 #else
|
|
2031 configure___ unexec=unexec.o
|
|
2032 #endif
|
|
2033
|
|
2034 #ifdef SYSTEM_MALLOC
|
|
2035 configure___ system_malloc=yes
|
|
2036 #else
|
|
2037 configure___ system_malloc=no
|
|
2038 #endif
|
|
2039
|
|
2040 #ifndef C_DEBUG_SWITCH
|
|
2041 #define C_DEBUG_SWITCH -g
|
|
2042 #endif
|
|
2043
|
|
2044 #ifndef C_OPTIMIZE_SWITCH
|
|
2045 #define C_OPTIMIZE_SWITCH -O
|
|
2046 #endif
|
|
2047
|
|
2048 #ifdef THIS_IS_CONFIGURE
|
|
2049
|
|
2050 /* Get the CFLAGS for tests in configure. */
|
|
2051 #ifdef __GNUC__
|
|
2052 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2053 #else
|
|
2054 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2055 #endif
|
|
2056
|
|
2057 #else /* not THIS_IS_CONFIGURE */
|
|
2058
|
|
2059 /* Get the CFLAGS for real compilation. */
|
|
2060 #ifdef __GNUC__
|
|
2061 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2062 #else
|
|
2063 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2064 #endif
|
|
2065
|
|
2066 #endif /* not THIS_IS_CONFIGURE */
|
|
2067 ' > ${tempcname}
|
|
2068 # The value of CPP is a quoted variable reference, so we need to do this
|
|
2069 # to get its actual value...
|
|
2070 CPP=`eval "echo $CPP"`
|
|
2071 eval `${CPP} -Isrc ${tempcname} \
|
|
2072 | grep 'configure___' \
|
|
2073 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
|
70
|
2074 if test "x$SPECIFIED_CFLAGS" = x ; then
|
0
|
2075 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
|
|
2076 | grep 'configure___' \
|
|
2077 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
|
|
2078 else
|
|
2079 REAL_CFLAGS="$CFLAGS"
|
|
2080 fi
|
|
2081 rm ${tempcname}
|
|
2082
|
|
2083 # override CFLAGS if user wishes
|
70
|
2084 if test "${cflags}" != "NO_CFLAGS_DEFINED" ; then
|
0
|
2085 REAL_CFLAGS=${cflags}
|
|
2086 fi
|
|
2087
|
|
2088 ### Compute the unexec source name from the object name.
|
|
2089 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
|
|
2090
|
|
2091 # Do the opsystem or machine files prohibit the use of the GNU malloc?
|
|
2092 # Assume not, until told otherwise.
|
|
2093 GNU_MALLOC=yes
|
70
|
2094 if test "${system_malloc}" = "yes" ; then
|
0
|
2095 GNU_MALLOC=no
|
|
2096 GNU_MALLOC_reason="
|
|
2097 (The GNU allocators don't work with this system configuration.)"
|
70
|
2098 elif test "${use_system_malloc}" = "yes" ; then
|
0
|
2099 GNU_MALLOC=no
|
|
2100 GNU_MALLOC_reason="
|
|
2101 (User chose not to use GNU allocators.)"
|
|
2102 fi
|
|
2103
|
|
2104 LISP_FLOAT_TYPE=yes
|
|
2105
|
|
2106
|
|
2107 #### Add the libraries to LIBS and check for some functions.
|
|
2108
|
|
2109 ]
|
|
2110 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS"
|
|
2111 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS"
|
|
2112 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS"
|
|
2113
|
|
2114 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks,
|
|
2115 dnl and also adds -ldnet to LIBS, which Autoconf uses for checks.
|
|
2116 dnl FSF 19.29 also checks for function dnet_ntoa.
|
|
2117 AC_HAVE_LIBRARY(-ldnet)
|
|
2118 dnl This causes -lresolv to get used in subsequent tests,
|
|
2119 dnl which causes failures on some systems such as HPUX 9.
|
|
2120 dnl FSF 19.29 also checks for function gethostbyname.
|
|
2121 dnl AC_HAVE_LIBRARY(-lresolv)
|
|
2122
|
70
|
2123 dnl Alternative to getloadavg() that doesn't require root priveleges
|
|
2124 AC_HAVE_LIBRARY(-lkstat)
|
|
2125
|
0
|
2126 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd")
|
|
2127
|
|
2128 dnl FSF 19.29 also checks for function cma_open.
|
|
2129 AC_HAVE_LIBRARY(-lpthreads, HAVE_PTHREADS=yes)
|
|
2130 if test -n "${HAVE_PTHREADS}" ; then
|
|
2131 AC_DEFINE(HAVE_PTHREADS)
|
|
2132 case "${opsys}" in
|
|
2133 decosf* ) CFLAGS="${CFLAGS} -threads" ;;
|
|
2134 esac
|
|
2135 fi
|
|
2136
|
|
2137 if test "${window_system}" != "none" ; then
|
|
2138 AC_CHECKING(for XFree86)
|
|
2139 if test -d /usr/X386/include; then
|
|
2140 HAVE_XFREE386=yes
|
|
2141 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
|
80
|
2142 elif test -f /etc/XF86Config -o \
|
|
2143 -f /etc/X11/XF86Config -o \
|
|
2144 -f /usr/X11R6/lib/X11/XF86Config; then
|
0
|
2145 HAVE_XFREE386=yes
|
|
2146 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"
|
|
2147 else
|
|
2148 HAVE_XFREE386=no
|
|
2149 fi
|
|
2150 AC_VERBOSE(${HAVE_XFREE386})
|
|
2151 else
|
|
2152 HAVE_XFREE386=no
|
|
2153 fi
|
|
2154
|
|
2155 ############################################################################
|
|
2156 # #
|
|
2157 # Test for various X-specific features #
|
|
2158 # #
|
|
2159 ############################################################################
|
|
2160
|
|
2161 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check.
|
|
2162 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
2163 case "${opsys}" in
|
|
2164 linux* )
|
|
2165 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS"
|
|
2166 AC_COMPILE_CHECK(whether path-link option is needed, [],
|
|
2167 [;],
|
|
2168 [need_path_link=yes],
|
|
2169 [need_path_link=no])
|
|
2170 if test "${need_path_link}" = "no"; then
|
|
2171 CFLAGS="$REAL_CFLAGS"
|
|
2172 AC_VERBOSE(no)
|
|
2173 else
|
|
2174 AC_VERBOSE(yes)
|
|
2175 fi
|
|
2176 ;;
|
|
2177 esac
|
|
2178 fi
|
|
2179
|
|
2180 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
|
|
2181 # for the tests that follow. We set it back to REAL_CFLAGS later on.
|
|
2182
|
|
2183 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
2184 DEFS="$C_SWITCH_X_SITE $DEFS"
|
|
2185 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
|
|
2186 LIBS="$LIBX $LIBS"
|
|
2187 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
|
|
2188
|
|
2189 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
|
|
2190 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
|
|
2191 # but it's more convenient here to set LD_RUN_PATH
|
|
2192 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
|
|
2193 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
|
|
2194 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
|
|
2195 export LD_RUN_PATH
|
|
2196 fi
|
|
2197
|
|
2198 if test "${HAVE_XFREE386}" = "yes" ; then
|
|
2199 case "${opsys}" in
|
|
2200 linux* )
|
|
2201 AC_COMPILE_CHECK(whether XFree86 needs -b to link, [],
|
|
2202 [XOpenDisplay ("foo");],
|
|
2203 [xfree86_first_failure=no],
|
|
2204 [xfree86_first_failure=yes])
|
|
2205 if test "${xfree86_first_failure}" = "yes"; then
|
|
2206 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
|
|
2207 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
|
|
2208 OLD_CPPFLAGS="$CPPFLAGS"
|
|
2209 OLD_LIBS="$LIBS"
|
|
2210 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
|
|
2211 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
|
|
2212 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
|
|
2213 LIBS="$LIBS -b i486-linuxaout"
|
|
2214 AC_COMPILE_CHECK(,[],
|
|
2215 [XOpenDisplay ("foo");],
|
|
2216 [xfree86_second_failure=no],
|
|
2217 [xfree86_second_failure=yes])
|
|
2218 if test "${xfree86_second_failure}" = "yes"; then
|
|
2219 # If we get the same failure with -b, there is no use adding -b.
|
|
2220 # So take it out. This plays safe.
|
|
2221 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
|
|
2222 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
|
|
2223 CPPFLAGS="$OLD_CPPFLAGS"
|
|
2224 LIBS="$OLD_LIBS"
|
|
2225 AC_VERBOSE(no)
|
|
2226 else
|
|
2227 AC_VERBOSE(yes)
|
|
2228 fi
|
|
2229 else
|
|
2230 AC_VERBOSE(no)
|
|
2231 fi
|
|
2232 ;;
|
|
2233 esac
|
|
2234 fi
|
|
2235
|
|
2236 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
|
|
2237 #XScreenNumberOfScreen XSetWMProtocols)
|
|
2238 fi
|
|
2239
|
|
2240 #
|
|
2241 # make sure we can find libX11.*
|
|
2242 #
|
|
2243 if test "${window_system}" != "none" ; then
|
|
2244 internal_xlibs_found='no'
|
|
2245 AC_HAVE_LIBRARY(-lX11, internal_xlibs_found='yes')
|
|
2246 if test "${internal_xlibs_found}" = "no" ; then
|
|
2247 echo "Unable to find X11 libraries." >&2
|
|
2248 exit 1
|
|
2249 else
|
|
2250 AC_VERBOSE(yes)
|
|
2251 fi
|
|
2252 fi
|
|
2253
|
|
2254 #
|
|
2255 # make sure we can find Intrinsic.h
|
|
2256 #
|
|
2257 if test "${window_system}" != "none" ; then
|
|
2258 internal_xincludes_found='no'
|
|
2259 for arg in ${DEFS} /usr/include
|
|
2260 do
|
|
2261 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
|
|
2262 internal_xincludes_found='yes'
|
|
2263 fi
|
|
2264 done
|
|
2265 if test "${internal_xincludes_found}" = "no" ; then
|
|
2266 echo "Unable to find X11 header files." >&2
|
|
2267 exit 1
|
|
2268 fi
|
|
2269 fi
|
|
2270
|
|
2271 #
|
|
2272 # Sun OS 4 systems need the following kludge
|
|
2273 #
|
|
2274 if test "${window_system}" != "none" ; then
|
|
2275 case "${canonical}" in *-sunos4* )
|
|
2276 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;;
|
|
2277 esac
|
|
2278 fi
|
|
2279
|
|
2280 #
|
|
2281 # See if we can find Xauth.
|
|
2282 #
|
|
2283 with_xauth='no'
|
|
2284 if test "${window_system}" != "none" ; then
|
|
2285 internal_xauth_lib_found='no'
|
|
2286 AC_HAVE_LIBRARY(-lXau, internal_xauth_lib_found='yes')
|
|
2287 if test "${internal_xauth_lib_found}" = "yes" ; then
|
|
2288 internal_xauth_includes_found='no'
|
|
2289 for arg in ${DEFS} /usr/include
|
|
2290 do
|
|
2291 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
|
|
2292 internal_xauth_includes_found='yes'
|
|
2293 fi
|
|
2294 done
|
|
2295 if test "${internal_xauth_includes_found}" = "yes" ; then
|
|
2296 with_xauth='yes'
|
|
2297 fi
|
|
2298 fi
|
|
2299 fi
|
70
|
2300 IF_YES_AC_DEFINE(with_xauth, HAVE_XAUTH)
|
0
|
2301
|
|
2302 #
|
|
2303 # See if we can find CDE.
|
|
2304 #
|
70
|
2305 if test "${window_system}" != "none" -a \
|
|
2306 "${with_cde}" != "no" -a \
|
|
2307 "${with_cde}" != "yes" ; then
|
|
2308 internal_cde_lib_found='no'
|
|
2309 AC_HAVE_LIBRARY(-lDtSvc, internal_cde_lib_found='yes')
|
100
|
2310 if test "${internal_cde_lib_found}" = "no" -a -f "/usr/dt/lib/libDtSvc.a"; then
|
|
2311 internal_cde_lib_found="yes"
|
|
2312 fi
|
70
|
2313 if test "${internal_cde_lib_found}" = "yes" ; then
|
|
2314 internal_cde_includes_found='no'
|
100
|
2315 for arg in ${DEFS} /usr/include /usr/dt/include ; do
|
70
|
2316 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
|
|
2317 internal_cde_includes_found='yes'
|
0
|
2318 fi
|
70
|
2319 done
|
|
2320 if test "${internal_cde_includes_found}" = "yes" ; then
|
|
2321 with_cde='yes'
|
0
|
2322 fi
|
|
2323 fi
|
|
2324 fi
|
70
|
2325 IF_YES_AC_DEFINE(with_cde, HAVE_CDE)
|
0
|
2326
|
100
|
2327 # having CDE implies Tooltalk
|
|
2328 if test "${with_cde}" = "yes" -a \
|
|
2329 "${with_tooltalk}" != "no" -a \
|
|
2330 "${with_tooltalk}" != "none" ; then
|
|
2331 with_tooltalk='yes'
|
|
2332 fi
|
|
2333
|
114
|
2334 # having CDE requires Motif
|
|
2335 if test "${with_cde}" = "yes" ; then
|
|
2336 motif_libs="-lXm -lXt"
|
|
2337 fi
|
|
2338
|
0
|
2339 #
|
2
|
2340 # See if we can find OffiX.
|
|
2341 #
|
70
|
2342 if test "${window_system}" != "none" -a \
|
|
2343 "${with_offix}" != "no" -a \
|
|
2344 "${with_offix}" != "yes" ; then
|
|
2345 internal_offix_lib_found='no'
|
|
2346 AC_HAVE_LIBRARY(-lDnd, internal_offix_lib_found='yes')
|
|
2347 if test "${internal_offix_lib_found}" = "yes" ; then
|
|
2348 internal_offix_includes_found='no'
|
|
2349 for arg in ${DEFS} /usr/include ; do
|
|
2350 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
|
|
2351 internal_offix_includes_found='yes'
|
2
|
2352 fi
|
70
|
2353 done
|
|
2354 test "${internal_offix_includes_found}" = "yes" && with_offix='yes'
|
2
|
2355 fi
|
|
2356 fi
|
70
|
2357 IF_YES_AC_DEFINE(with_offix, HAVE_OFFIX_DND)
|
|
2358
|
|
2359 # X window options
|
0
|
2360 if test "${window_system}" != "none" ; then
|
|
2361 AC_FIND_X_VERSION
|
|
2362 AC_HAVE_HEADERS(X11/Xlocale.h)
|
|
2363 fi
|
|
2364
|
|
2365 #
|
|
2366 # if Energize specified, make sure we can find its need libraries/headers
|
|
2367 #
|
|
2368 if test "${with_energize}" = "yes" ; then
|
|
2369 AC_HAVE_LIBRARY(-lenergize, energize_version='3.X')
|
|
2370 if test "${energize_version}" = "no" ; then
|
|
2371 AC_HAVE_LIBRARY(-lconn, energize_version='2.X')
|
|
2372 if test "${energize_version}" = "no" ; then
|
|
2373 echo "Unable to find Energize library." >&2
|
|
2374 exit 1
|
|
2375 fi
|
|
2376 fi
|
|
2377
|
|
2378 internal_eincludes_found='no'
|
|
2379 for arg in ${DEFS} /usr/include
|
|
2380 do
|
|
2381 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
|
|
2382 internal_eincludes_found='yes'
|
|
2383 fi
|
|
2384 done
|
|
2385 if test "${internal_eincludes_found}" = "no" ; then
|
|
2386 echo "Unable to find Energize editorconn.h header file." >&2
|
|
2387 exit 1
|
|
2388 fi
|
|
2389 fi
|
|
2390
|
|
2391 #
|
|
2392 # logb and frexp are found in -lm on most systems.
|
|
2393 #
|
|
2394 AC_HAVE_LIBRARY(-lm)
|
|
2395
|
|
2396 #
|
|
2397 # see if XPM is hanging around somewhere
|
|
2398 #
|
70
|
2399 test "${window_system}" != "none" -a \
|
|
2400 "${with_xpm}" != "no" -a \
|
|
2401 "${with_xpm}" != "yes" && { AC_HAVE_LIBRARY(-lXpm, with_xpm="yes") }
|
|
2402
|
|
2403 IF_YES_AC_DEFINE(with_xpm, HAVE_XPM)
|
0
|
2404
|
|
2405 #
|
|
2406 # see if Xmu is hanging around somewhere
|
|
2407 #
|
|
2408 # FSF 19.31 has this:
|
|
2409 #dnl If using toolkit, check whether libXmu.a exists.
|
|
2410 #dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
|
|
2411 # OLDLIBS="$LIBS"
|
|
2412 # if test x$HAVE_X11XTR6 = xyes; then
|
|
2413 # LIBS="-lXt -lSM -lICE $LIBS"
|
|
2414 # else
|
|
2415 # LIBS="-lXt $LIBS"
|
|
2416 # fi
|
|
2417 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
|
|
2418 # LIBS="$OLDLIBS"
|
|
2419
|
|
2420 if test "${window_system}" != "none" ; then
|
|
2421 if test "${with_xmu}" != "no" ; then
|
70
|
2422 test "${with_xmu}" != "yes" && { AC_HAVE_LIBRARY(-lXmu, with_xmu="yes") }
|
100
|
2423 # On SunOS4 (and 5!) we must kludge harder to try to detect Xmu
|
0
|
2424 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
100
|
2425 if test "${with_xmu}" != "yes" ; then
|
0
|
2426 # begin expansion of ac_have_library
|
|
2427 ac_save_LIBS="${LIBS}"
|
|
2428 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
|
88
|
2429 if test ${machine} = sparc -a ${opsys} = linux; then
|
|
2430 LIBS="${LIBS} -lICE -lSM"
|
|
2431 fi
|
0
|
2432 ac_have_lib=""
|
|
2433 cat > conftest.${ac_ext} <<EOF
|
|
2434 int main() { return 0; }
|
|
2435 EOF
|
|
2436 if eval $ac_compile; then
|
|
2437 rm -rf conftest*
|
|
2438 ac_have_lib="1"
|
|
2439 fi
|
|
2440 rm -f conftest*
|
|
2441 LIBS="${ac_save_LIBS}"
|
|
2442 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
2443 # end expansion of ac_have_library
|
|
2444 fi
|
90
|
2445 # Sparc/Linux test - fp
|
|
2446 if test "${with_xmu}" != "yes" -a ${machine} = sparc -a ${opsys} = linux; then
|
|
2447 # begin expansion of ac_have_library
|
|
2448 ac_save_LIBS="${LIBS}"
|
|
2449 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm -lICE -lSM"
|
|
2450 ac_have_lib=""
|
|
2451 cat > conftest.${ac_ext} <<EOF
|
|
2452 int main() { return 0; }
|
|
2453 EOF
|
|
2454 if eval $ac_compile; then
|
|
2455 rm -rf conftest*
|
|
2456 ac_have_lib="1"
|
|
2457 fi
|
|
2458 rm -f conftest*
|
|
2459 LIBS="${ac_save_LIBS}"
|
|
2460 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
2461 # end expansion of ac_have_library
|
|
2462 fi
|
0
|
2463 # On UnixWare 2.1 we must kludge harder to try to detect Xmu
|
|
2464 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
|
2465 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then
|
|
2466 # begin expansion of ac_have_library
|
|
2467 ac_save_LIBS="${LIBS}"
|
|
2468 if test x$HAVE_XFREE386 = xyes; then
|
|
2469 LIBS="-lXt -lSM -lICE ${LIBS}"
|
|
2470 else
|
|
2471 LIBS="${LIBS} -lXmu -lXt -lXext -lX11"
|
|
2472 fi
|
|
2473 ac_have_lib=""
|
|
2474 cat > conftest.${ac_ext} <<EOF
|
|
2475 int main() { return 0; }
|
|
2476 EOF
|
|
2477 if eval $ac_compile; then
|
|
2478 rm -rf conftest*
|
|
2479 ac_have_lib="1"
|
|
2480 fi
|
|
2481 rm -f conftest*
|
|
2482 LIBS="${ac_save_LIBS}"
|
|
2483 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
2484 # end expansion of ac_have_library
|
|
2485 fi
|
|
2486 fi
|
|
2487 fi
|
70
|
2488 IF_YES_AC_DEFINE(with_xmu, HAVE_XMU)
|
0
|
2489
|
|
2490 #
|
|
2491 # see if COMPFACE is hanging around somewhere
|
|
2492 #
|
70
|
2493 if test "${window_system}" != "none" -a \
|
|
2494 "${with_xface}" != "no" -a \
|
|
2495 "${with_xface}" != "yes" ; then
|
|
2496 AC_HEADER_CHECK(compface.h, compface_incl="yes", with_xface="no")
|
|
2497 if test "${compface_incl}" = "yes" ; then
|
|
2498 AC_HAVE_LIBRARY(-lcompface, with_xface="yes")
|
0
|
2499 fi
|
|
2500 fi
|
70
|
2501 IF_YES_AC_DEFINE(with_xface, HAVE_XFACE)
|
0
|
2502
|
|
2503 #
|
|
2504 # check whether we're using GIF support
|
|
2505 #
|
|
2506 if test "${window_system}" = "none" ; then
|
|
2507 if test -z "${with_gif}" ; then
|
|
2508 with_gif=no
|
|
2509 elif test "${with_gif}" != "no" ; then
|
|
2510 echo "GIF support cannot be specified without a window system."
|
|
2511 exit 1
|
|
2512 fi
|
|
2513 elif test -z "${with_gif}" ; then
|
|
2514 with_gif=yes
|
|
2515 fi
|
70
|
2516 IF_YES_AC_DEFINE(with_gif, HAVE_GIF)
|
|
2517
|
|
2518 dnl # autodetect JPEG
|
0
|
2519 if test "${window_system}" = "none" ; then
|
|
2520 if test -z "${with_jpeg}" ; then
|
|
2521 with_jpeg=no
|
|
2522 elif test "${with_jpeg}" != "no" ; then
|
|
2523 echo "JPEG support cannot be specified without a window system."
|
|
2524 exit 1
|
|
2525 fi
|
|
2526 else
|
70
|
2527 if test "${with_jpeg}" != "no" -a \
|
|
2528 "${with_jpeg}" != "yes" ; then
|
|
2529 AC_HEADER_CHECK(jpeglib.h, jpeglib_incl="yes", with_jpeg="no")
|
|
2530 test "${jpeglib_incl}" = "yes" && { AC_HAVE_LIBRARY(-ljpeg, with_jpeg="yes") }
|
0
|
2531 fi
|
|
2532 fi
|
70
|
2533 IF_YES_AC_DEFINE(with_jpeg, HAVE_JPEG)
|
|
2534
|
|
2535 dnl ### autodetect PNG
|
0
|
2536 if test "${window_system}" = "none" ; then
|
|
2537 if test -z "${with_png}" ; then
|
|
2538 with_png=no
|
|
2539 elif test "${with_png}" != "no" ; then
|
|
2540 echo "PNG support cannot be specified without a window system."
|
|
2541 exit 1
|
|
2542 fi
|
|
2543 fi
|
70
|
2544 test -z "${with_png}" && { AC_HEADER_CHECK(png.h, , with_png="no") }
|
84
|
2545 test -z "${with_png}" && { AC_FUNC_CHECK(pow, , with_png="no") }
|
|
2546 if test -z "${with_png}" ; then
|
|
2547 AC_HAVE_LIBRARY(-lz, with_png="yes")
|
|
2548 test -z "${with_png}" && { AC_HAVE_LIBRARY(-lgz, with_png="gnuz", with_png="no") }
|
|
2549 if test "${with_png}" != "no"; then
|
|
2550 png_save_libs="${LIBS}"
|
|
2551 case "${with_png}" in
|
|
2552 yes ) LIBS="${LIBS} -lz" ;;
|
|
2553 gnuz ) LIBS="${LIBS} -lgz" ;;
|
|
2554 esac
|
|
2555 AC_HAVE_LIBRARY(-lpng, , with_png="no")
|
|
2556 LIBS="$png_save_libs"
|
|
2557 fi
|
|
2558 fi
|
70
|
2559 case "${with_png}" in
|
|
2560 yes ) AC_DEFINE(HAVE_PNG) ;;
|
|
2561 gnuz ) AC_DEFINE(HAVE_PNG) AC_DEFINE(HAVE_PNG_GNUZ) ;;
|
|
2562 esac
|
|
2563
|
|
2564 dnl ### autodetect TIFF (not yet implemented)
|
|
2565 IF_YES_AC_DEFINE(with_tiff, HAVE_TIFF)
|
0
|
2566
|
|
2567 # We use Lucid toolkit defaults for the menubars and scrollbars, but
|
|
2568 # if Motif is available we use it for the dialog boxes.
|
|
2569 if test "${window_system}" != "none" ; then
|
70
|
2570 save_libs="${LIBS}"
|
0
|
2571 if test "x${with_dialogs}" = "x" ; then
|
|
2572 # We can't use ac_have_library because it simply appends -lXm to the
|
|
2573 # end of the link line which is insufficient since -lXm will generate
|
|
2574 # dependencies on -lXt
|
|
2575 # begin expansion of ac_have_library
|
|
2576 ac_save_LIBS="${LIBS}"
|
|
2577 LIBS="${LIBS} -lXm -lXt ${LIBS}"
|
|
2578 ac_have_lib=""
|
|
2579 test -n "$silent" || echo "checking for -lXm"
|
|
2580 cat > conftest.${ac_ext} <<EOF
|
|
2581 #include "confdefs.h"
|
|
2582
|
|
2583 int main() { return 0; }
|
|
2584 int t() { main();; return 0; }
|
|
2585 EOF
|
|
2586 if eval $ac_compile; then
|
|
2587 rm -rf conftest*
|
|
2588 ac_have_lib="1"
|
|
2589
|
|
2590 fi
|
|
2591 rm -f conftest*
|
|
2592 LIBS="${ac_save_LIBS}"
|
|
2593 if test -n "${ac_have_lib}"; then
|
70
|
2594 :; with_dialogs="motif" motif_libs="-lXm -lXt"
|
0
|
2595 else
|
|
2596 :;
|
|
2597 fi
|
|
2598 # end expansion of ac_have_library
|
|
2599 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
|
|
2600 if test "${with_dialogs}" != "motif" ; then
|
|
2601 # begin expansion of ac_have_library
|
|
2602 ac_save_LIBS="${LIBS}"
|
|
2603 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}"
|
|
2604 ac_have_lib=""
|
|
2605 test -n "$silent" || echo "checking for -lXm in another way"
|
|
2606 cat > conftest.${ac_ext} <<EOF
|
|
2607 #include "confdefs.h"
|
|
2608
|
|
2609 int main() { return 0; }
|
|
2610 int t() { main();; return 0; }
|
|
2611 EOF
|
|
2612 if eval $ac_compile; then
|
|
2613 rm -rf conftest*
|
|
2614 ac_have_lib="1"
|
|
2615
|
|
2616 fi
|
|
2617 rm -f conftest*
|
|
2618 LIBS="${ac_save_LIBS}"
|
|
2619 if test -n "${ac_have_lib}"; then
|
70
|
2620 :; with_dialogs="motif" motif_libs="-lXm -lXt -lXpm -lXext"
|
0
|
2621 else
|
|
2622 :;
|
|
2623 fi
|
|
2624 # end expansion of ac_have_library
|
|
2625 fi
|
70
|
2626 test "${with_dialogs}" = "motif" && AC_VERBOSE(Found Motif)
|
0
|
2627 fi
|
|
2628 fi
|
|
2629
|
|
2630 # Finish ensuring that we have values for the various toolkit items.
|
70
|
2631
|
|
2632 test "${with_menubars}" = "motif" -o \
|
|
2633 "${with_scrollbars}" = "motif" -o \
|
|
2634 "${with_dialogs}" = "motif" && with_motif="yes"
|
82
|
2635 test "${with_menubars}" = "athena" -o \
|
|
2636 "${with_scrollbars}" = "athena" -o \
|
|
2637 "${with_dialogs}" = "athena" && with_athena="yes"
|
|
2638 test "${with_menubars}" = "athena3d" -o \
|
|
2639 "${with_scrollbars}" = "athena3d" -o \
|
|
2640 "${with_dialogs}" = "athena3d" && with_athena="yes"
|
70
|
2641 test "${with_menubars}" = "" && with_menubars="lucid"
|
|
2642 test "${with_menubars}" = "athena" && with_menubars="lucid"
|
|
2643 test "${with_scrollbars}" = "" && with_scrollbars="lucid"
|
|
2644 test "${with_dialogs}" = "" && with_dialogs="athena"
|
|
2645 test "${with_dialogs}" = "lucid" && with_dialogs="athena"
|
|
2646
|
|
2647 test "${with_menubars}" != "no" && AC_DEFINE(HAVE_MENUBARS)
|
|
2648 test "${with_scrollbars}" != "no" && AC_DEFINE(HAVE_SCROLLBARS)
|
72
|
2649 test "${with_dialogs}" != "no" && AC_DEFINE(HAVE_DIALOGS)
|
70
|
2650
|
|
2651 test "${with_menubars}" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID)
|
|
2652 test "${with_menubars}" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF)
|
|
2653 test "${with_scrollbars}" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID)
|
|
2654 test "${with_scrollbars}" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF)
|
|
2655 test "${with_scrollbars}" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA)
|
82
|
2656 if test "${with_scrollbars}" = "athena3d"; then
|
|
2657 AC_DEFINE(LWLIB_SCROLLBARS_ATHENA)
|
|
2658 AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D)
|
|
2659 fi
|
70
|
2660 test "${with_dialogs}" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF)
|
|
2661 test "${with_dialogs}" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA)
|
82
|
2662 if test "${with_dialogs}" = "athena3d"; then
|
|
2663 AC_DEFINE(LWLIB_DIALOGS_ATHENA)
|
|
2664 AC_DEFINE(LWLIB_DIALOGS_ATHENA3D)
|
|
2665 fi
|
0
|
2666
|
|
2667 ############################################################################
|
|
2668 # #
|
|
2669 # Misc other feature tests #
|
|
2670 # #
|
|
2671 ############################################################################
|
|
2672
|
70
|
2673 # Mule-dependent option processing
|
|
2674 if test "$with_mule" = "yes" ; then
|
|
2675 # Do we have the XmIm* routines? And if so, do we want to use them?
|
|
2676 test "$with_xim" != no && AC_CHECKING(for XIM)
|
|
2677 if test -z "$with_xim" -o "$with_xim" = "yes" ; then
|
|
2678 xim_save_libs="$LIBS"
|
|
2679 LIBS="${motif_libs} ${LIBS}"
|
|
2680 AC_FUNC_CHECK(XmImMbLookupString, have_XmIm=yes, have_XmIm=no)
|
|
2681 LIBS="$xim_save_libs"
|
|
2682 if test "$have_XmIm" = "yes"; then with_xim=motif
|
|
2683 elif test "$with_xim" = "yes"; then with_xim=xlib
|
|
2684 else with_xim=no
|
|
2685 fi
|
|
2686 fi
|
|
2687 if test "$with_xim" != "no" ; then
|
|
2688 AC_DEFINE(HAVE_XIM)
|
|
2689 test "$with_xim" = "xlib" && AC_DEFINE(XIM_XLIB)
|
|
2690 test "$with_xim" = "motif" && AC_DEFINE(XIM_MOTIF)
|
|
2691 fi
|
98
|
2692 # wnn6 implies wnn support
|
|
2693 if test "$with_wnn6" = "yes" ; then
|
|
2694 with_wnn=yes
|
|
2695 fi
|
70
|
2696 else # Other internationalization features depend on Mule
|
|
2697 with_mule="no"
|
98
|
2698 for feature in xim canna wnn wnn6 ; do
|
70
|
2699 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
|
|
2700 AC_WARN(--with-$feature ignored: Not valid without Mule support)
|
|
2701 fi
|
|
2702 eval "with_$feature=no"
|
|
2703 done
|
|
2704 fi
|
|
2705
|
100
|
2706 #
|
|
2707 # set defaults for finding WNN includes and libs
|
|
2708 #
|
|
2709 if test "${with_wnn}" = "yes" ; then
|
114
|
2710 for arg in "-I${wnn_includes}" "-I/usr/X11R6/include/wnn" "-I/usr/include/wnn"
|
100
|
2711 do
|
|
2712 if test -f `echo "${arg}/wnnerror.h" | sed 's/^\-I//'` ; then
|
|
2713 C_SWITCH_SITE="${C_SWITCH_SITE} ${arg}"
|
|
2714 wnn_includes=${arg}
|
|
2715 fi
|
|
2716 done
|
114
|
2717 for arg in "-L${wnn_libraries}" "-L/usr/X11R6/lib" "-L/usr/lib"
|
100
|
2718 do
|
|
2719 if test -f `echo "${arg}/libwnn.a" | sed 's/^\-L//'` ; then
|
|
2720 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${arg}"
|
|
2721 wnn_libraries=${arg}
|
|
2722 fi
|
|
2723 done
|
|
2724 fi
|
|
2725
|
110
|
2726 #
|
|
2727 # set defaults for finding Canna includes and libs
|
|
2728 #
|
|
2729 if test "${with_canna}" = "yes" ; then
|
|
2730 for arg in "-I${canna_includes}" "-I/usr/X11R6/include"
|
|
2731 do
|
|
2732 if test -f `echo "${arg}/canna/RK.h" | sed 's/^\-I//'` ; then
|
|
2733 C_SWITCH_SITE="${C_SWITCH_SITE} ${arg}"
|
|
2734 canna_includes=${arg}
|
|
2735 fi
|
|
2736 done
|
114
|
2737 for arg in "-L${canna_libraries}" "-L/usr/X11R6/lib"
|
110
|
2738 do
|
|
2739 if test -f `echo "${arg}/libcanna.a" | sed 's/^\-L//'` ; then
|
|
2740 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${arg}"
|
|
2741 canna_libraries=${arg}
|
|
2742 fi
|
|
2743 done
|
|
2744 fi
|
|
2745
|
0
|
2746 # If netdb.h doesn't declare h_errno, we must declare it by hand.
|
|
2747 AC_COMPILE_CHECK(declaration of h_errno in netdb.h,
|
70
|
2748 [#include <netdb.h>],
|
|
2749 [int i = h_errno;],
|
|
2750 AC_DEFINE(HAVE_H_ERRNO))
|
0
|
2751
|
|
2752 AC_COMPILE_CHECK(sigsetjmp,
|
70
|
2753 [#include <setjmp.h>],
|
|
2754 [sigjmp_buf bar; sigsetjmp (bar, 0);],
|
|
2755 AC_DEFINE(HAVE_SIGSETJMP))
|
0
|
2756
|
|
2757 AC_CHECKING(whether localtime caches TZ)
|
|
2758 emacs_cv_localtime_cache=
|
|
2759 AC_TEST_PROGRAM([#include <time.h>
|
|
2760 #if 1 /* STDC_HEADERS */
|
|
2761 # include <stdlib.h>
|
|
2762 #endif
|
|
2763 extern char **environ;
|
|
2764 unset_TZ ()
|
|
2765 {
|
|
2766 char **from, **to;
|
|
2767 for (to = from = environ; (*to = *from); from++)
|
|
2768 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
2769 to++;
|
|
2770 }
|
|
2771 main()
|
|
2772 {
|
|
2773 time_t now = time ((time_t *) 0);
|
|
2774 int hour_GMT0, hour_unset;
|
|
2775 if (putenv ("TZ=GMT0") != 0)
|
|
2776 exit (1);
|
|
2777 hour_GMT0 = localtime (&now)->tm_hour;
|
|
2778 unset_TZ ();
|
|
2779 hour_unset = localtime (&now)->tm_hour;
|
|
2780 if (putenv ("TZ=PST8") != 0)
|
|
2781 exit (1);
|
|
2782 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
2783 exit (1);
|
|
2784 unset_TZ ();
|
|
2785 if (localtime (&now)->tm_hour != hour_unset)
|
|
2786 exit (1);
|
|
2787 exit (0);
|
|
2788 }], emacs_cv_localtime_cache=no, emacs_cv_localtime_cache=yes,
|
|
2789 [# If we have tzset, assume the worst when cross-compiling.
|
|
2790 emacs_cv_localtime_cache=yes])
|
|
2791 AC_VERBOSE("$emacs_cv_localtime_cache")
|
|
2792 if test x$emacs_cv_localtime_cache = xyes; then
|
|
2793 AC_DEFINE(LOCALTIME_CACHE)
|
|
2794 fi
|
|
2795
|
|
2796 if test "x$HAVE_TIMEVAL" = xyes; then
|
|
2797 AC_COMPILE_CHECK(whether gettimeofday can't accept two arguments,
|
|
2798 [
|
|
2799 #ifdef TIME_WITH_SYS_TIME
|
|
2800 #include <sys/time.h>
|
|
2801 #include <time.h>
|
|
2802 #else
|
|
2803 #ifdef HAVE_SYS_TIME_H
|
|
2804 #include <sys/time.h>
|
|
2805 #else
|
|
2806 #include <time.h>
|
|
2807 #endif
|
|
2808 #endif
|
|
2809 ],
|
|
2810 [
|
|
2811 struct timeval time;
|
|
2812 struct timezone dummy;
|
|
2813 gettimeofday (&time, &dummy);
|
|
2814 ],
|
|
2815 [AC_VERBOSE(no)],
|
|
2816 [AC_VERBOSE(yes)
|
|
2817 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)])
|
|
2818 fi
|
|
2819
|
|
2820 AC_COMPILE_CHECK(whether inline functions are supported,
|
|
2821 ,
|
|
2822 [
|
|
2823 inline int
|
|
2824 foo ()
|
|
2825 {
|
|
2826 return 0;
|
|
2827 }
|
|
2828 ],
|
70
|
2829 AC_DEFINE(HAVE_INLINE))
|
0
|
2830
|
|
2831 # This does all sorts of magic to make sure alloca() works OK.
|
|
2832 # It might even add some junk to the top of <config.h>.
|
|
2833 # (I don't understand what goes on here, but it seems to work.)
|
|
2834 AC_ALLOCA
|
|
2835
|
|
2836 # Check whether vfork exists and works correctly. (This does more
|
|
2837 # than just check for its existence.) If so, it defines HAVE_VFORK_H.
|
|
2838 # If not, it defines vfork to be fork.
|
|
2839 AC_VFORK
|
|
2840
|
|
2841 # Check whether mmap exists and works correctly. (This does more
|
|
2842 # than just check for its existence.) If so, it defines HAVE_MMAP.
|
|
2843 # Actually, this seems to rule out some cases where mmap() can
|
|
2844 # work fine for our purposes (e.g. HPUX). We get a big win out
|
|
2845 # of using mmap(), so let's go back to the old way.
|
|
2846 dnl AC_MMAP
|
|
2847
|
|
2848 # Check whether strcoll exists and works correctly. (This does more
|
|
2849 # than just check for its existence.) If so, it defines HAVE_STRCOLL.
|
|
2850 AC_STRCOLL
|
|
2851
|
|
2852 AC_SIZEOF_TYPE(short)
|
|
2853 AC_SIZEOF_TYPE(int)
|
|
2854 AC_SIZEOF_TYPE(long)
|
|
2855
|
|
2856 # FSF 19.29 does this:
|
|
2857 # # fmod, logb, and frexp are found in -lm on most systems.
|
|
2858 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
|
|
2859 # A C_CHECK_LIB(m, sqrt)
|
|
2860
|
72
|
2861 AC_HAVE_FUNCS(acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd 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)
|
0
|
2862
|
|
2863 # Check for mmap.
|
|
2864 found_mmap=true
|
|
2865 AC_FUNC_CHECK(mmap, , found_mmap=)
|
70
|
2866 test -n "$found_mmap" && AC_DEFINE(HAVE_MMAP)
|
|
2867
|
|
2868 dnl # rel_alloc requires either GNU malloc or system malloc with mmap
|
|
2869 dnl # We only turn rel_alloc on by default if mmap is available.
|
|
2870 test "${GNU_MALLOC}" != "yes" -a "${found_mmap}" != "true" && rel_alloc=no
|
|
2871 test "${rel_alloc}" = "default" -a "${found_mmap}" = "true" && rel_alloc=yes
|
0
|
2872
|
|
2873 # Check for Internet sockets.
|
|
2874
|
|
2875 ok_so_far=true
|
|
2876 AC_FUNC_CHECK(socket, , ok_so_far=)
|
70
|
2877 test -n "$ok_so_far" && { AC_HEADER_CHECK(netinet/in.h, , ok_so_far=) }
|
|
2878 test -n "$ok_so_far" && { AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=) }
|
0
|
2879 if test -n "$ok_so_far"; then
|
|
2880 AC_DEFINE(HAVE_SOCKETS)
|
|
2881 # Check for the sun_len member in struct sockaddr_un.
|
|
2882
|
|
2883 AC_COMPILE_CHECK(sun_len member in struct sockaddr_un,
|
|
2884 [#include <sys/types.h>
|
|
2885 #include <sys/socket.h>
|
|
2886 #include <sys/un.h>], [static struct sockaddr_un x; x.sun_len = 1;],
|
|
2887 AC_DEFINE(HAVE_SOCKADDR_SUN_LEN))
|
|
2888 fi
|
|
2889
|
|
2890 # Check for SYS V IPC. (Inferior to sockets.)
|
|
2891
|
|
2892 if test -z "$ok_so_far"; then
|
|
2893 ok_so_far=true
|
|
2894 AC_FUNC_CHECK(msgget, , ok_so_far=)
|
70
|
2895 test -n "$ok_so_far" && { AC_HEADER_CHECK(sys/ipc.h, , ok_so_far=) }
|
|
2896 test -n "$ok_so_far" && { AC_HEADER_CHECK(sys/msg.h, , ok_so_far=) }
|
|
2897 test -n "$ok_so_far" && AC_DEFINE(HAVE_SYSVIPC)
|
0
|
2898 fi
|
|
2899
|
|
2900 # Check for directory variants
|
|
2901
|
|
2902 sysv_system_dir=
|
|
2903 nonsystem_dir_library=
|
|
2904 AC_HEADER_CHECK(dirent.h, sysv_system_dir=yes, )
|
70
|
2905 test -z "$sysv_system_dir" &&
|
|
2906 { AC_HEADER_CHECK(sys/dir.h, , nonsystem_dir_library=yes) }
|
|
2907 if test -n "$sysv_system_dir" ; then AC_DEFINE(SYSV_SYSTEM_DIR)
|
|
2908 elif test -n "$nonsystem_dir_library" ; then AC_DEFINE(NONSYSTEM_DIR_LIBRARY)
|
0
|
2909 fi
|
70
|
2910
|
|
2911 dnl # Check for terminal I/O variants
|
0
|
2912
|
|
2913 echo "checking how to do terminal I/O"
|
|
2914
|
|
2915 have_termios=
|
|
2916 have_termio=
|
|
2917 AC_HEADER_CHECK(termios.h, have_termios=yes, )
|
70
|
2918 dnl # TERMIOS systems may have termio.h, but not vice-versa, I think.
|
|
2919 test -z "$have_termios" && { AC_HEADER_CHECK(termio.h, have_termio=yes, ) }
|
|
2920 if test -n "$have_termios" ; then AC_DEFINE(HAVE_TERMIOS)
|
|
2921 elif test -n "$have_termio" ; then AC_DEFINE(HAVE_TERMIO)
|
0
|
2922 fi
|
|
2923
|
|
2924 # Check for nlist.h
|
|
2925 AC_HEADER_CHECK(nlist.h, AC_DEFINE(NLIST_STRUCT), )
|
|
2926
|
70
|
2927 # AIX export list
|
76
|
2928 if test -f /usr/lpp/X11/bin/smt.exp ; then
|
|
2929 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/lpp/X11/bin/smt.exp)
|
|
2930 elif test -f /usr/bin/X11/smt.exp ; then
|
|
2931 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/bin/X11/smt.exp)
|
|
2932 fi
|
70
|
2933
|
|
2934 dnl # Set up the CFLAGS for real compilation, so we can substitute it.
|
0
|
2935 CFLAGS="$REAL_CFLAGS"
|
|
2936
|
70
|
2937 dnl # Find out which version of XEmacs this is.
|
|
2938 file="${srcdir}/lisp/version.el"
|
|
2939 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"`
|
|
2940 if test -z "${version}"; then
|
|
2941 echo "${progname}: can't find current emacs version in \"$file\"." >&2
|
0
|
2942 exit 1
|
|
2943 fi
|
70
|
2944 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([[0-9]][[0-9]]*\)).*$/\1/p' "$file"`
|
|
2945 test -n "$beta" && version="${version}-b${beta}"
|
|
2946
|
|
2947
|
|
2948 dnl # Check for sound of various sorts.
|
0
|
2949
|
|
2950 # the following needs to be fixed for SGI.
|
70
|
2951 if test -z "${native_sound_lib}" ; then
|
|
2952 if test -r /usr/demo/SOUND/lib/libaudio.a; then
|
0
|
2953 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
|
70
|
2954 elif test -r /usr/demo/SOUND/libaudio.a ; then
|
0
|
2955 native_sound_lib=/usr/demo/SOUND/libaudio.a
|
|
2956 else
|
|
2957 case "${canonical}" in
|
70
|
2958 *-sgi-* ) AC_HAVE_LIBRARY(-laudio, native_sound_lib="-laudio") ;;
|
|
2959 hppa*-hp-hpux* ) AC_HAVE_LIBRARY(-lAlib, native_sound_lib="-lAlib") ;;
|
0
|
2960 esac
|
|
2961 fi
|
|
2962 fi
|
70
|
2963 test -z "${with_sound}" -a -n "${native_sound_lib}" && with_sound="native";
|
0
|
2964
|
|
2965 #### If the nas library doesn't contain the error jump point, then
|
|
2966 #### we force safer behaviour.
|
|
2967
|
70
|
2968 if test "${with_sound}" = "nas" -o \
|
|
2969 "${with_sound}" = "both"; then
|
|
2970 AC_HEADER_EGREP(AuXtErrorJump,audio/Xtutil.h, , old_nas=true)
|
0
|
2971 fi
|
|
2972
|
100
|
2973 if test "${with_cde}" = "yes" ; then
|
|
2974 if test -f "/usr/dt/include/Dt/Dt.h" ; then
|
|
2975 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} -I/usr/dt/include"
|
|
2976 fi
|
|
2977 if test -f "/usr/dt/lib/libDtSvc.a" ; then
|
|
2978 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} -L/usr/dt/lib"
|
|
2979 fi
|
|
2980 fi
|
|
2981
|
70
|
2982 if test "${with_tooltalk}" = "yes" ; then
|
100
|
2983 for arg in "-I/usr/include/desktop" "-I${OPENWINHOME-/usr/openwin}/include/desktop" "-I/usr/dt/include/Tt"
|
0
|
2984 do
|
100
|
2985 if test -f `echo "${arg}/tt_c.h" | sed 's/^\-I//'` ; then
|
|
2986 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}"
|
0
|
2987 fi
|
|
2988 done
|
100
|
2989 for arg in "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib" "-L/usr/dt/lib"
|
0
|
2990 do
|
|
2991 case "${arg}" in
|
70
|
2992 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then
|
0
|
2993 dash_r=''
|
116
|
2994 if [ "${add_runtime_flag}" = "yes" ]; then
|
|
2995 dash_r=`echo ${arg} | sed "s/^-L */${runtime_arg}/"`
|
0
|
2996 fi
|
|
2997 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
|
|
2998 fi
|
|
2999 ;;
|
|
3000 esac
|
|
3001 done
|
|
3002 fi
|
|
3003
|
70
|
3004 dnl Check for ncurses.
|
|
3005
|
|
3006 if test "${with_tty}" != "no" ; then
|
|
3007 AC_HAVE_LIBRARY(-lncurses, have_ncurses=yes, have_ncurses=no)
|
|
3008 if test "${have_ncurses}" = "yes" ; then
|
|
3009 AC_DEFINE(HAVE_NCURSES)
|
|
3010 AC_HEADER_CHECK(ncurses/term.h, have_ncurses_term_h=yes, have_ncurses_term_h=no)
|
|
3011 IF_YES_AC_DEFINE(have_ncurses_term_h, HAVE_NCURSES_TERM_H)
|
|
3012 AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no)
|
|
3013 if test "${have_ncurses_curses_h}" = "no" ; then
|
|
3014 dnl Try again, and check for the bogus ncurses/ include bug.
|
|
3015 dnl (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of
|
|
3016 dnl <ncurses/unctrl.h>)
|
0
|
3017 OLD_CPP="${CPP}"
|
|
3018 CPP="${CPP} -I/usr/include/ncurses"
|
70
|
3019 AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no)
|
|
3020 if test "${have_ncurses_curses_h}" = "yes" ; then
|
0
|
3021 site_includes="${site_includes} /usr/include/ncurses"
|
|
3022 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
|
70
|
3023 AC_VERBOSE(Your system has the bogus ncurses include bug.)
|
0
|
3024 else
|
|
3025 CPP="${OLD_CPP}"
|
|
3026 fi
|
|
3027 fi
|
70
|
3028 IF_YES_AC_DEFINE(have_ncurses_curses_h, HAVE_NCURSES_CURSES_H)
|
0
|
3029 fi
|
|
3030 fi
|
|
3031
|
70
|
3032 dnl Check for database support.
|
|
3033
|
|
3034 dnl <mdiers@logware.de>
|
0
|
3035 dnl We don't necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support.
|
|
3036 dnl On FreeBSD, both DB and DBM are part of libc.
|
|
3037 dnl Note that unless support for DB/(G)DBM is explicitly disabled, we always
|
|
3038 dnl want to check for libdb/lib(g)dbm. Also note that libc will not be
|
|
3039 dnl checked if we have the libraries.
|
|
3040 dnl If support for DB/(G)DBM is requested, but we neither have libdb/lib(g)dbm,
|
|
3041 dnl nor does libc implement it, we are a bit lost :)
|
70
|
3042
|
|
3043 if test "${with_database_berkdb}" != "no" ; then
|
|
3044 AC_HAVE_LIBRARY(-ldb, have_libdb=yes, have_libdb=no)
|
|
3045 IF_YES_AC_DEFINE(have_libdb, HAVE_LIBDB)
|
|
3046 if test "${with_database_berkdb}" != "yes" ; then
|
|
3047 if test "${have_libdb}" = "yes" ; then
|
0
|
3048 with_database_berkdb=yes
|
|
3049 else
|
70
|
3050 AC_FUNC_CHECK(dbopen, with_database_berkdb=yes, with_database_berkdb=no)
|
0
|
3051 fi
|
|
3052 fi
|
|
3053 fi
|
70
|
3054 IF_YES_AC_DEFINE(with_database_berkdb, HAVE_BERKELEY_DB)
|
|
3055
|
|
3056 if test "${with_database_gnudbm}" != "no" ; then
|
|
3057 AC_HAVE_LIBRARY(-lgdbm, have_libgdbm=yes, have_libgdbm=no)
|
|
3058 IF_YES_AC_DEFINE(have_libgdbm, HAVE_LIBGDBM)
|
|
3059 test -z "${with_database_gnudbm}" && with_database_gnudbm="${have_libgdbm}"
|
0
|
3060 fi
|
70
|
3061 if test "${with_database_gnudbm}" = "yes" ; then
|
|
3062 AC_DEFINE(HAVE_DBM)
|
|
3063 AC_DEFINE(HAVE_GNU_DBM)
|
|
3064 with_database_dbm=no
|
|
3065 fi
|
|
3066
|
|
3067 if test "${with_database_dbm}" != "no" ; then
|
|
3068 AC_HAVE_LIBRARY(-ldbm, have_libdbm=yes, have_libdbm=no)
|
|
3069 IF_YES_AC_DEFINE(have_libdbm, HAVE_LIBDBM)
|
|
3070 if test "${with_database_dbm}" != "yes" ; then
|
|
3071 if test "${have_libdbm}" = "yes" ; then
|
|
3072 with_database_dbm=yes
|
0
|
3073 else
|
70
|
3074 AC_FUNC_CHECK(dbm_open, with_database_dbm=yes, with_database_dbm=no)
|
0
|
3075 fi
|
|
3076 fi
|
|
3077 fi
|
70
|
3078 IF_YES_AC_DEFINE(with_database_dbm, HAVE_DBM)
|
0
|
3079
|
|
3080
|
|
3081 ############################################################################
|
|
3082 # #
|
|
3083 # Substitute into Makefile and config.h #
|
|
3084 # #
|
|
3085 ############################################################################
|
|
3086
|
70
|
3087 dnl what sort of things we'll be editing into Makefile and config.h.
|
|
3088 dnl configuration here uncanonicalized to avoid exceeding size limits.
|
|
3089
|
0
|
3090 AC_SUBST(version)
|
|
3091 AC_SUBST(configuration)
|
|
3092 AC_SUBST(canonical)
|
|
3093 AC_SUBST(srcdir)
|
|
3094 AC_SUBST(prefix)
|
|
3095 AC_SUBST(exec_prefix)
|
|
3096 AC_SUBST(bindir)
|
|
3097 AC_SUBST(datadir)
|
|
3098 AC_SUBST(statedir)
|
|
3099 AC_SUBST(libdir)
|
|
3100 AC_SUBST(mandir)
|
|
3101 AC_SUBST(infodir)
|
|
3102 AC_SUBST(infodir_user_defined)
|
|
3103 AC_SUBST(lispdir)
|
|
3104 AC_SUBST(lispdir_user_defined)
|
|
3105 AC_SUBST(sitelispdir)
|
|
3106 AC_SUBST(etcdir)
|
|
3107 AC_SUBST(etcdir_user_defined)
|
|
3108 AC_SUBST(lockdir)
|
|
3109 AC_SUBST(lockdir_user_defined)
|
|
3110 AC_SUBST(archlibdir)
|
|
3111 AC_SUBST(archlibdir_user_defined)
|
|
3112 AC_SUBST(docdir)
|
|
3113 AC_SUBST(bitmapdir)
|
|
3114 AC_SUBST(c_switch_system)
|
|
3115 AC_SUBST(c_switch_machine)
|
|
3116 AC_SUBST(libsrc_libs)
|
|
3117 AC_SUBST(LD_SWITCH_X_SITE)
|
|
3118 AC_SUBST(LD_SWITCH_X_SITE_AUX)
|
|
3119 AC_SUBST(C_SWITCH_X_SITE)
|
|
3120 AC_SUBST(LD_SWITCH_SITE)
|
|
3121 AC_SUBST(C_SWITCH_SITE)
|
|
3122 AC_SUBST(CFLAGS)
|
|
3123 AC_SUBST(native_sound_lib)
|
|
3124 AC_SUBST(machfile)
|
|
3125 AC_SUBST(opsysfile)
|
|
3126 AC_SUBST(RANLIB)
|
|
3127 AC_SUBST(dynodump_arch)
|
|
3128
|
70
|
3129 AC_DEFINE_UNQUOTED(EMACS_VERSION, "${version}")
|
0
|
3130 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${canonical}\"")
|
|
3131 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
|
|
3132 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
|
|
3133 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
|
|
3134 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX})
|
|
3135 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})
|
|
3136 AC_DEFINE_UNQUOTED(LD_SWITCH_SITE, ${LD_SWITCH_SITE})
|
|
3137 AC_DEFINE_UNQUOTED(C_SWITCH_SITE, ${C_SWITCH_SITE})
|
|
3138 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC})
|
|
3139
|
70
|
3140 dnl Note: as a general rule, *only* define things here that are not
|
|
3141 dnl autodetected. For things that are autodetected, define them
|
|
3142 dnl at the point where the autodetection occurs or would occur,
|
|
3143 dnl so that the user gets immediate feedback on the results of the
|
|
3144 dnl autodetection.
|
|
3145
|
104
|
3146 test -n "${puresize}" && AC_DEFINE_UNQUOTED(RAW_PURESIZE, ${puresize})
|
70
|
3147 IF_YES_AC_DEFINE(HAVE_X_WINDOWS,HAVE_X_WINDOWS)
|
|
3148 IF_YES_AC_DEFINE(HAVE_XFREE386, HAVE_XFREE386)
|
|
3149
|
|
3150 if test "${GNU_MALLOC}" = yes; then AC_DEFINE(GNU_MALLOC)
|
|
3151 elif test "${use_system_malloc}" = yes; then AC_DEFINE(USE_SYSTEM_MALLOC)
|
0
|
3152 fi
|
70
|
3153 IF_YES_AC_DEFINE(rel_alloc, REL_ALLOC)
|
|
3154 IF_YES_AC_DEFINE(LISP_FLOAT_TYPE, LISP_FLOAT_TYPE)
|
|
3155 IF_YES_AC_DEFINE(with_motif, LWLIB_USES_MOTIF)
|
82
|
3156 IF_YES_AC_DEFINE(with_athena, LWLIB_USES_ATHENA)
|
70
|
3157 IF_YES_AC_DEFINE(with_toolbars, HAVE_TOOLBARS)
|
|
3158 IF_YES_AC_DEFINE(with_tty, HAVE_TTY)
|
|
3159 IF_YES_AC_DEFINE(with_tooltalk, TOOLTALK)
|
|
3160 IF_YES_AC_DEFINE(with_i18n3, I18N3)
|
|
3161 IF_YES_AC_DEFINE(with_mule, MULE)
|
|
3162 IF_YES_AC_DEFINE(with_canna, HAVE_CANNA)
|
|
3163 IF_YES_AC_DEFINE(with_wnn, HAVE_WNN)
|
98
|
3164 IF_YES_AC_DEFINE(with_wnn6, WNN6)
|
70
|
3165 IF_YES_AC_DEFINE(with_mock, MOCKLISP_SUPPORT)
|
|
3166 IF_YES_AC_DEFINE(with_sparcworks,SUNPRO)
|
|
3167 IF_YES_AC_DEFINE(usage_tracking, USAGE_TRACKING)
|
|
3168 IF_YES_AC_DEFINE(need_dynodump, DYNODUMP)
|
|
3169 IF_YES_AC_DEFINE(need_xildoff, NEED_XILDOFF)
|
|
3170 IF_YES_AC_DEFINE(with_gcc, USE_GCC)
|
|
3171 IF_YES_AC_DEFINE(with_lcc, USE_LCC)
|
|
3172 IF_YES_AC_DEFINE(with_socks, HAVE_SOCKS)
|
|
3173 IF_YES_AC_DEFINE(with_term, HAVE_TERM)
|
|
3174 IF_YES_AC_DEFINE(with_epoch, EPOCH)
|
|
3175 IF_YES_AC_DEFINE(external_widget,EXTERNAL_WIDGET)
|
|
3176 IF_YES_AC_DEFINE(with_gnu_make, USE_GNU_MAKE)
|
|
3177 IF_YES_AC_DEFINE(no_doc_file, NO_DOC_FILE)
|
|
3178 IF_YES_AC_DEFINE(const_is_losing,CONST_IS_LOSING)
|
|
3179 IF_YES_AC_DEFINE(use_assertions, USE_ASSERTIONS)
|
|
3180 IF_YES_AC_DEFINE(debug, DEBUG_XEMACS)
|
|
3181 IF_YES_AC_DEFINE(quantify, QUANTIFY)
|
|
3182 IF_YES_AC_DEFINE(memory_usage_stats, MEMORY_USAGE_STATS)
|
|
3183
|
|
3184 IF_YES_AC_DEFINE(error_check_extents, ERROR_CHECK_EXTENTS)
|
|
3185 IF_YES_AC_DEFINE(error_check_typecheck, ERROR_CHECK_TYPECHECK)
|
|
3186 IF_YES_AC_DEFINE(error_check_bufpos, ERROR_CHECK_BUFPOS)
|
|
3187 IF_YES_AC_DEFINE(error_check_gc, ERROR_CHECK_GC)
|
|
3188 IF_YES_AC_DEFINE(error_check_malloc, ERROR_CHECK_MALLOC)
|
|
3189
|
|
3190 if test "${with_energize}" = yes; then
|
|
3191 AC_DEFINE(ENERGIZE)
|
|
3192 test "${energize_version}" = "2.X" && AC_DEFINE(ENERGIZE_2)
|
|
3193 test "${energize_version}" = "3.X" && AC_DEFINE(ENERGIZE_3)
|
0
|
3194 fi
|
|
3195
|
70
|
3196 test "${with_sound}" = "native" -o "${with_sound}" = "both" && AC_DEFINE(HAVE_NATIVE_SOUND)
|
|
3197 test "${with_sound}" = "nas" -o "${with_sound}" = "both" && AC_DEFINE(HAVE_NAS_SOUND)
|
|
3198 test "${old_nas}" = "true" && AC_DEFINE(NAS_NO_ERROR_JUMP)
|
|
3199
|
|
3200 test "${use_union_type}" != yes && AC_DEFINE(NO_UNION_TYPE)
|
|
3201
|
|
3202 dnl ############################################################################
|
|
3203 dnl # Report on what we decided to do #
|
|
3204 dnl ############################################################################
|
0
|
3205
|
116
|
3206 echo "$0 $configure_args" >> Installation
|
|
3207 # Start stdout redirection to '| tee -a Installation'
|
|
3208 (
|
0
|
3209 echo "
|
|
3210
|
|
3211 Configured for \`${canonical}'.
|
|
3212
|
|
3213 Where should the build process find the source code? ${srcdir}
|
|
3214 What installation prefix should install use? ${prefix}
|
|
3215 What operating system and machine description files should XEmacs use?
|
|
3216 \`${opsysfile}' and \`${machfile}'
|
|
3217 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
|
|
3218 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
|
|
3219 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
|
|
3220 What window system should XEmacs use? ${window_system}${x_includes+
|
|
3221 Where do we find X Windows header files? }${x_includes}${x_libraries+
|
116
|
3222 Where do we find X Windows libraries? }${x_libraries}"
|
0
|
3223
|
70
|
3224 if test -n "$site_includes"; then
|
116
|
3225 echo " Additional header files: ${site_includes}"
|
0
|
3226 fi
|
|
3227
|
70
|
3228 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then
|
116
|
3229 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
|
70
|
3230 elif test -n "$site_libraries"; then
|
116
|
3231 echo " Additional libraries: ${site_libraries}"
|
70
|
3232 elif test -n "$site_runtime_libraries"; then
|
116
|
3233 echo " Additional libraries: ${site_runtime_libraries}"
|
0
|
3234 fi
|
100
|
3235 if test "$with_wnn"; then
|
116
|
3236 echo " Finding WNN includes with: ${wnn_includes}"
|
|
3237 echo " Loading WNN libs with: ${wnn_libraries}"
|
100
|
3238 fi
|
116
|
3239 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
3240 test "$with_term" = yes && echo " Compiling in support for TERM."
|
|
3241 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
|
|
3242 test "$with_xpm" = yes && echo " Compiling in support for XPM."
|
70
|
3243 if test "$with_xmu" != yes -a "$window_system" != none; then
|
116
|
3244 echo " No Xmu; substituting equivalent routines."
|
0
|
3245 fi
|
116
|
3246 test "$with_xface" = yes && echo " Compiling in support for X-Face headers."
|
|
3247 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
|
|
3248 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion."
|
70
|
3249 if test "$with_png" = yes -o "$with_png" = gnuz; then
|
116
|
3250 echo " Compiling in support for PNG image conversion."
|
0
|
3251 fi
|
70
|
3252 if test "$with_png" = gnuz; then
|
116
|
3253 echo " (Using -lgz instead of -lz.)"
|
0
|
3254 fi
|
116
|
3255 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)."
|
|
3256 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility."
|
|
3257
|
|
3258 test "$with_sound" = nas && echo " Compiling in network sound support."
|
|
3259 test "$with_sound" = native && echo " Compiling in native sound support."
|
|
3260 test "$with_sound" = both && echo " Compiling in both network and native sound support."
|
|
3261 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously"
|
|
3262
|
|
3263 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
|
|
3264 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
|
3265 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
|
|
3266
|
|
3267 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
3268 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
3269
|
|
3270 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
|
|
3271 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
|
|
3272 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
|
|
3273 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
|
|
3274 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
|
3275 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule."
|
|
3276 test "$with_wnn6" = yes && echo " WNN support for version 6."
|
|
3277 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
|
|
3278
|
|
3279 test "$with_cde" = yes && echo " Compiling in support for CDE."
|
|
3280 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
|
3281 test "$with_offix" = yes && echo " Compiling in support for OffiX."
|
|
3282 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp."
|
|
3283 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks."
|
|
3284 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
|
|
3285 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar."
|
70
|
3286 if test "$with_menubars" = "motif"; then
|
116
|
3287 echo " Using the Motif menubar."
|
|
3288 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
|
|
3289 echo " that you use the Lucid menubar instead. Re-run"
|
|
3290 echo " configure with --with-menubars='lucid'."
|
0
|
3291 fi
|
116
|
3292 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar."
|
|
3293 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar."
|
|
3294 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar."
|
|
3295 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar."
|
|
3296 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes."
|
|
3297 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes."
|
|
3298 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes."
|
|
3299
|
|
3300 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects."
|
|
3301 test "${debug}" = yes && echo " Compiling in extra code for debugging."
|
|
3302 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage."
|
|
3303 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
|
|
3304 ) | tee -a Installation
|
|
3305 echo " | tee -a Installation
|
0
|
3306 "
|
70
|
3307 dnl ############################################################################
|
|
3308 dnl # Now generate! #
|
|
3309 dnl ############################################################################
|
|
3310
|
|
3311 dnl This has to be called in order for this variable to get into config.status
|
|
3312 AC_SUBST(internal_makefile_list) [
|
0
|
3313 # Remove any trailing slashes in these variables.
|
|
3314 test -n "${prefix}" &&
|
|
3315 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
3316 test -n "${exec_prefix}" &&
|
|
3317 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
3318 ]
|
|
3319 AC_OUTPUT($internal_makefile_list) [
|
|
3320 # Build:
|
|
3321 # src/Makefile from ${srcdir}/src/Makefile.in
|
|
3322 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
|
|
3323 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
|
|
3324 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
|
|
3325 # and possibly
|
|
3326 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
|
|
3327 # This must be done after src/config.h is built, since we rely on that
|
|
3328 # file. Only do the build if "config.status" is present, since its
|
|
3329 # non-presence indicates an error occured.
|
|
3330 status=$?
|
70
|
3331 if test ! -f ./config.status ; then
|
0
|
3332 exit $status
|
|
3333 fi
|
|
3334 topsrcdir=${srcdir}
|
|
3335 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
|
|
3336 # because some cpps get confused by them.
|
|
3337 # Really we should preserve them somehow into Makefile,
|
|
3338 # but that is beyond my level of shell programming.
|
|
3339 makefile_command='echo "creating src/Makefile";
|
|
3340 topsrcdir='"${topsrcdir}"';
|
|
3341 ( cd ./src;
|
|
3342 rm -f junk.c;
|
|
3343 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
3344 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
3345 < junk.cpp '\
|
|
3346 ' sed -e '\''s/^#.*//'\'' '\
|
|
3347 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
3348 ' -e '\''s/^ / /'\'' '\
|
|
3349 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
3350 ' > Makefile.new;
|
|
3351 chmod 444 Makefile.new;
|
|
3352 mv -f Makefile.new Makefile;
|
|
3353 rm -f junk.c junk.cpp;
|
|
3354 )'
|
|
3355 eval `echo $makefile_command`
|
|
3356 lwlib_makefile_command='echo "creating lwlib/Makefile";
|
|
3357 topsrcdir='"${topsrcdir}"';
|
|
3358 ( cd ./lwlib;
|
|
3359 rm -f junk.c;
|
|
3360 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
3361 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
3362 < junk.cpp '\
|
|
3363 ' sed -e '\''s/^#.*//'\'' '\
|
|
3364 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
3365 ' -e '\''s/^ / /'\'' '\
|
|
3366 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
3367 ' > Makefile.new;
|
|
3368 chmod 444 Makefile.new;
|
|
3369 mv -f Makefile.new Makefile;
|
|
3370 rm -f junk.c junk.cpp;
|
|
3371 )'
|
|
3372 eval `echo $lwlib_makefile_command`
|
|
3373 lib_src_makefile_command='echo "creating lib-src/Makefile";
|
|
3374 topsrcdir='"${topsrcdir}"';
|
|
3375 ( cd ./lib-src;
|
|
3376 rm -f junk.c;
|
|
3377 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
3378 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
3379 < junk.cpp '\
|
|
3380 ' sed -e '\''s/^#.*//'\'' '\
|
|
3381 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
3382 ' -e '\''s/^ / /'\'' '\
|
|
3383 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
3384 ' > Makefile.new;
|
|
3385 chmod 444 Makefile.new;
|
|
3386 mv -f Makefile.new Makefile;
|
|
3387 rm -f junk.c junk.cpp;
|
|
3388 )'
|
|
3389 eval `echo $lib_src_makefile_command`
|
70
|
3390
|
|
3391 # Mule utilitity programs - currently disabled
|
|
3392 if test "${with_mule_util}" = "yes"; then
|
|
3393 lib_src_mule_makefile_command='echo "creating lib-src/mule/Makefile";
|
|
3394 topsrcdir='"${topsrcdir}"';
|
|
3395 ( cd ./lib-src/mule;
|
|
3396 rm -f junk.c;
|
|
3397 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
|
3398 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
|
3399 < junk.cpp '\
|
|
3400 ' sed -e '\''s/^#.*//'\'' '\
|
|
3401 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
3402 ' -e '\''s/^ / /'\'' '\
|
|
3403 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
3404 ' > Makefile.new;
|
|
3405 chmod 444 Makefile.new;
|
|
3406 mv -f Makefile.new Makefile;
|
|
3407 rm -f junk.c junk.cpp;
|
|
3408 )'
|
|
3409 eval `echo $lib_src_mule_makefile_command`
|
|
3410 fi # Mule
|
|
3411
|
0
|
3412 dynodump_makefile_command='echo "creating dynodump/Makefile";
|
|
3413 topsrcdir='"${topsrcdir}"';
|
|
3414 ( cd ./dynodump;
|
|
3415 rm -f junk.c;
|
|
3416 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
3417 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
3418 < junk.cpp '\
|
|
3419 ' sed -e '\''s/^#.*//'\'' '\
|
|
3420 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
3421 ' -e '\''s/^ / /'\'' '\
|
|
3422 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
3423 ' > Makefile.new;
|
|
3424 chmod 444 Makefile.new;
|
|
3425 mv -f Makefile.new Makefile;
|
|
3426 rm -f junk.c junk.cpp;
|
|
3427 )'
|
|
3428 eval `echo $dynodump_makefile_command`
|
70
|
3429 if test "${with_energize}" = "yes" ; then
|
0
|
3430 energize_makefile_command='echo "creating lwlib/energize/Makefile";
|
|
3431 topsrcdir='"${topsrcdir}"';
|
|
3432 ( cd ./lwlib/energize;
|
|
3433 rm -f junk.c;
|
|
3434 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
3435 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
3436 < junk.cpp '\
|
|
3437 ' sed -e '\''s/^#.*//'\'' '\
|
|
3438 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
3439 ' -e '\''s/^ / /'\'' '\
|
|
3440 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
3441 ' > Makefile.new;
|
|
3442 chmod 444 Makefile.new;
|
|
3443 mv -f Makefile.new Makefile;
|
|
3444 rm -f junk.c junk.cpp;
|
|
3445 )'
|
|
3446 eval `echo $energize_makefile_command`
|
|
3447 fi
|
|
3448 # AC-OUTPUT has created `config.status' already. We need to add the
|
|
3449 # above commands to re-create `src/Makefile', `lwlib/Makefile',
|
8
|
3450 # `lib-src/Makefile', `dynodump/Makefile', and possibly
|
0
|
3451 # `lwlib/energize/Makefile', and we need to insert them before the final
|
|
3452 # "exit 0" which appears at the end of `config.status'.
|
|
3453 <config.status sed -e 's/^exit 0$//' >config.new
|
|
3454 echo $makefile_command >>config.new
|
|
3455 echo $lwlib_makefile_command >>config.new
|
|
3456 echo $lib_src_makefile_command >>config.new
|
70
|
3457 if test "${with_mule_util}" = "yes"; then
|
|
3458 echo $lib_src_mule_makefile_command >>config.new
|
|
3459 fi
|
0
|
3460 echo $dynodump_makefile_command >>config.new
|
|
3461 echo $man_makefile_command >>config.new
|
70
|
3462 if test "${with_energize}" = "yes" ; then
|
0
|
3463 echo $energize_makefile_command >>config.new
|
|
3464 fi
|
|
3465 echo exit 0 >>config.new
|
|
3466 mv -f config.new config.status
|
|
3467 chmod +x config.status
|
|
3468 # Don't let the fact that we just rewrote config.status make Makefile think
|
|
3469 # that it is now newer. We have just rewritten all of the Makefiles as well.
|
70
|
3470 MFS="Makefile \
|
|
3471 src/Makefile src/Makefile.in \
|
|
3472 lib-src/Makefile lib-src/Makefile.in \
|
|
3473 dynodump/Makefile dynodump/Makefile.in \
|
|
3474 lwlib/Makefile lwlib/Makefile.in"
|
|
3475 chmod a+w $MFS
|
|
3476 touch $MFS
|
|
3477 chmod 444 $MFS
|
0
|
3478
|
|
3479 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
|
|
3480 echo creating src/gdbinit
|
|
3481 echo source $topsrcdir/src/gdbinit > src/gdbinit
|
|
3482 fi
|
|
3483
|
|
3484 exit 0
|
|
3485 ]
|