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