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