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