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