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