0
|
1 #!/bin/sh
|
|
2 #### Configuration script for XEmacs.
|
|
3 #### Copyright (C) 1994 Free Software Foundation, Inc.
|
|
4 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
|
|
5 #### Copyright (C) 1995, 1996 Ben Wing.
|
|
6
|
|
7 ### Don't edit this script!
|
|
8 ### This script was automatically generated by the `autoconf' program
|
|
9 ### from the file `./configure.in'.
|
|
10 ### To rebuild it, execute the command
|
|
11 ### autoconf
|
|
12 ### in the this directory. You must have autoconf version 1.9 or later.
|
|
13
|
|
14 ### This file is part of XEmacs.
|
|
15
|
|
16 ### XEmacs is free software; you can redistribute it and/or modify it
|
|
17 ### under the terms of the GNU General Public License as published by
|
|
18 ### the Free Software Foundation; either version 2, or (at your
|
|
19 ### option) any later version.
|
|
20
|
|
21 ### XEmacs is distributed in the hope that it will be useful, but
|
|
22 ### WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
23 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
24 ### General Public License for more details.
|
|
25
|
|
26 ### You should have received a copy of the GNU General Public License
|
|
27 ### along with XEmacs; see the file COPYING. If not, write to the Free
|
|
28 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
29 ### 02111-1307, USA.
|
|
30
|
|
31 ### Since XEmacs has configuration requirements that autoconf can't
|
|
32 ### meet, this file is an unholy marriage of custom-baked
|
|
33 ### configuration code and autoconf macros.
|
|
34 ###
|
|
35 ### We use the m4 quoting characters [ ] (as established by the
|
|
36 ### autoconf system) to include large sections of raw sewage - Oops, I
|
|
37 ### mean, shell code - in the final configuration script.
|
|
38 ###
|
|
39 ### Usage: configure config_name
|
|
40 ###
|
|
41 ### If configure succeeds, it leaves its status in config.status.
|
|
42 ### If configure fails after disturbing the status quo,
|
|
43 ### config.status is removed.
|
|
44
|
|
45 ### Remove any more than one leading "." element from the path name.
|
|
46 ### If we don't remove them, then another "./" will be prepended to
|
|
47 ### the file name each time we use config.status, and the program name
|
|
48 ### will get larger and larger. This wouldn't be a problem, except
|
|
49 ### that since progname gets recorded in all the Makefiles this script
|
|
50 ### produces, move-if-change thinks they're different when they're
|
|
51 ### not.
|
|
52 ###
|
|
53 ### It would be nice if we could put the ./ in a \( \) group and then
|
|
54 ### apply the * operator to that, so we remove as many leading ./././'s
|
|
55 ### as are present, but some seds (like Ultrix's sed) don't allow you to
|
|
56 ### apply * to a \( \) group. Bleah.
|
|
57 progname="`echo $0 | sed 's:^\./\./:\./:'`"
|
|
58
|
|
59 ############################################################################
|
|
60 # #
|
|
61 # Establish some default values #
|
|
62 # #
|
|
63 ############################################################################
|
|
64
|
70
|
65 #run_in_place='no'
|
0
|
66 prefix='/usr/local'
|
|
67 exec_prefix='${prefix}'
|
|
68 bindir='${exec_prefix}/bin'
|
|
69 # FSF 19.29 changes to:
|
|
70 # datadir='${prefix}/share'
|
|
71 # sharedstatedir='${prefix}/com'
|
|
72 # libexecdir='${exec_prefix}/libexec'
|
|
73 datadir='${prefix}/lib'
|
|
74 statedir='${prefix}/lib'
|
|
75 libdir='${exec_prefix}/lib'
|
|
76 mandir='${prefix}/man/man1'
|
|
77 infodir='${prefix}/lib/xemacs-${version}/info'
|
|
78 infodir_user_defined='no'
|
|
79 lispdir='${datadir}/xemacs-${version}/lisp'
|
|
80 lispdir_user_defined='no'
|
|
81 sitelispdir='${datadir}/xemacs/site-lisp'
|
|
82 etcdir='${datadir}/xemacs-${version}/etc'
|
|
83 etcdir_user_defined='no'
|
|
84 lockdir='${statedir}/xemacs/lock'
|
|
85 lockdir_user_defined='no'
|
|
86 archlibdir='${libdir}/xemacs-${version}/${configuration}'
|
|
87 archlibdir_user_defined='no'
|
|
88 with_menubars=''
|
|
89 with_scrollbars=''
|
|
90 with_dialogs=''
|
|
91 const_is_losing='yes'
|
|
92 puresize=''
|
|
93 cflags='NO_CFLAGS_DEFINED'
|
|
94 dynamic=''
|
|
95 with_x11=''
|
|
96 rel_alloc='default'
|
|
97 use_system_malloc='default'
|
8
|
98 internal_makefile_list='Makefile lib-src/Makefile.in src/Makefile.in lwlib/Makefile.in dynodump/Makefile.in'
|
0
|
99 energize_version='no'
|
|
100 native_sound_lib=''
|
|
101 # make normal error-checking be the default in alpha and beta versions, so
|
|
102 # that bugs get noticed. Change this for released versions.
|
98
|
103 error_check_default='yes'
|
0
|
104 error_check_extents=$error_check_default
|
|
105 error_check_typecheck=$error_check_default
|
|
106 error_check_bufpos=$error_check_default
|
|
107 error_check_gc=$error_check_default
|
|
108 error_check_malloc=$error_check_default
|
|
109 # debug=yes must be set when error checking is present. This should be
|
|
110 # fixed up.
|
|
111 debug=$error_check_default
|
|
112 quantify='no'
|
|
113 # use-assertions should be 'yes' by default. Too many people in this
|
|
114 # world have core dumps turned off by default or "can't find where the
|
|
115 # core file went". At least we should get some useful output ...
|
|
116 use_assertions='yes'
|
|
117 # the following is set to yes or no later.
|
|
118 with_gif=''
|
|
119 # the following is set to yes or no later.
|
|
120 with_toolbars=''
|
|
121 with_tty='yes'
|
|
122 use_union_type='no'
|
|
123
|
|
124 # # gnu echo silently eats `--help', `--version', `-n', `-e', `-E', `-n'.
|
|
125 # # other versions of echo eat any strings beginning with `-n'.
|
|
126 # # when parsing arguments, special case these strings and don't
|
|
127 # # pass them through echo
|
|
128 # echo=/bin/echo
|
|
129 #
|
|
130 # this approach abandoned in favor of
|
|
131 #
|
|
132 # echo "" ${stuff_to_filter} | sed -e 's:^ ::'
|
|
133
|
|
134 # On Sun systems, people sometimes set up the variable CPP
|
|
135 # with a value that is a directory, not an executable at all.
|
|
136 # Detect that case, and ignore that value.
|
70
|
137 test -n "$CPP" -a -d "$CPP" && CPP=
|
0
|
138
|
|
139 ############################################################################
|
|
140 # #
|
|
141 # Usage messages #
|
|
142 # #
|
|
143 ############################################################################
|
|
144
|
|
145 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
|
|
146
|
|
147 Set compilation and installation parameters for XEmacs, and report.
|
|
148 CONFIGURATION specifies the machine and operating system to build for.
|
|
149
|
|
150 Note that for most of the following options, you can explicitly enable
|
|
151 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'.
|
|
152 This is especially useful for auto-detected options.
|
|
153
|
|
154 Options marked with a (*) are autodetected.
|
|
155
|
|
156
|
|
157 General options:
|
|
158
|
|
159 --help Issue this usage message.
|
|
160 --verbose Display the results of configure tests.
|
|
161 --extra-verbose Also display the output of any compiler invocation.
|
|
162 (Useful when feature tests are coming out wrong.)
|
|
163
|
|
164
|
|
165 Compiler options:
|
|
166
|
|
167 --compiler=XXXX Specify compiler.
|
|
168 --with-gcc (*) Use GCC to compile XEmacs.
|
|
169 --with-lcc Use Lucid's LCC to compile XEmacs.
|
|
170 --with-gcc=no Don't use GCC to compile XEmacs.
|
|
171 --with-gnu-make Write the Makefiles to take advantage of
|
|
172 special features of GNU Make. (GNU Make
|
|
173 works fine on the Makefiles even without this
|
|
174 option. This just allows for simultaneous
|
|
175 in-place and --srcdir building.)
|
|
176 --cflags=FLAGS Override the default values for CFLAGS.
|
|
177 --site-includes=DIR Other header file directories. Separate multiple
|
|
178 dirs with spaces and use quotes to enclose.
|
|
179 --site-libraries=DIR Other library directories.
|
|
180 --site-runtime-libraries=DIR
|
|
181 Paths to add with -R flag.
|
|
182 --dynamic=yes Link dynamically if supported by system.
|
|
183 --dynamic=no Force static linking on systems where dynamic
|
|
184 linking is the default.
|
|
185 --srcdir=DIR Look for the XEmacs source files in DIR.
|
|
186 See also --with-gnu-make.
|
|
187 --const-is-losing=no Allow the use of const in the source code.
|
|
188
|
|
189
|
|
190 Installation options:
|
|
191
|
|
192 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
|
|
193
|
|
194
|
|
195 Window-system options:
|
|
196
|
|
197 --with-x (*) Support the X Window System.
|
|
198 --with-x=no Don't support X.
|
|
199 --x-includes=DIR Search for X header files in DIR.
|
|
200 --x-libraries=DIR Search for X libraries in DIR.
|
70
|
201 --with-ns Support NeXTstep windows (not yet implemented).
|
0
|
202 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
|
|
203 widgets emulate Motif (mostly) but are faster.
|
|
204 *WARNING* The Motif menubar is currently broken.
|
82
|
205 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena,
|
|
206 athena3d, or no).
|
|
207 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, athena3d, or no).
|
0
|
208 (Lucid menubars and scrollbars are the default.
|
|
209 Motif dialog boxes will be used if Motif can be
|
|
210 found.)
|
|
211 --with-cde (*) Compile in support for CDE drag and drop.
|
2
|
212 --with-offix (*) Compile in support for OffiX drag and drop.
|
0
|
213 --with-xpm (*) Compile with support for XPM files.
|
|
214 It is highly recommended that you obtain XPM
|
|
215 (version 3.4g or better) if you don't already
|
|
216 have it. Get it from the XEmacs FTP site.
|
|
217 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu.
|
|
218
|
|
219
|
|
220 Additional features:
|
|
221
|
|
222 --with-toolbars=no Don't compile with any toolbar support.
|
|
223 --with-tooltalk Support the ToolTalk IPC protocol.
|
|
224 --with-sparcworks Support the Sun Sparcworks development environment.
|
|
225 --with-energize Support the Lucid Energize development environment.
|
|
226 This doesn't currently work.
|
|
227 --with-socks Compile with support for SOCKS (an Internet proxy).
|
|
228 --with-term Compile with support for TERM (a way to multiplex
|
|
229 serial lines and provide vaguely Internet-like
|
|
230 functionality over a simple dialup connection,
|
|
231 used on Linux and other systems. NOTE: We can't
|
|
232 guarantee that our TERM support coexists well
|
|
233 with standard Internet connections).
|
|
234 --with-xface (*) Compile with support for X-Face mail header
|
|
235 conversion. Requires the compface library.
|
|
236 Get it from the XEmacs FTP site.
|
|
237 --with-gif Compile with support for GIF image conversion.
|
|
238 This requires no special support and defaults to
|
|
239 \`yes'.
|
|
240 --with-jpeg (*) Compile with support for JPEG image conversion.
|
|
241 Requires libjpeg from the Independent JPEG Group.
|
|
242 Get it from the XEmacs FTP site.
|
|
243 --with-png (*) Compile with support for PNG image conversion.
|
|
244 Requires libpng. Get it from the XEmacs FTP site.
|
|
245 Accepted values are \`yes', \`no', and \`gnuz'
|
|
246 if you want to use -lgz instead of -lz.
|
|
247 --with-tiff Compile with support for TIFF image conversion
|
|
248 (not yet implemented).
|
|
249 --with-database=type (*) Compile with database support. Valid types are
|
|
250 \`no' or a comma-separated list of one or more
|
|
251 of \`dbm', \`gnudbm', or \`berkdb'.
|
|
252 --external-widget Compile with external widget support.
|
|
253 --with-sound=native (*) Compile with native sound support.
|
|
254 --with-sound=nas Compile with network sound support.
|
|
255 --with-sound=both Compile with native and network sound support.
|
|
256 --native-sound-lib=LIB Native sound support library. Needed on Suns
|
|
257 with --with-sound=both because both sound libraries
|
|
258 are called libaudio.
|
|
259 --with-epoch Compile with additional Epoch compatibility.
|
|
260 --with-mocklisp Compile with Mocklisp support. Don't do this
|
|
261 unless you have a Mocklisp program that you need
|
|
262 to run.
|
|
263 --usage-tracking Enable some Sun-internal code. If you don't
|
|
264 know what this is, you don't want it.
|
|
265
|
70
|
266 Internationalization options:
|
|
267
|
|
268 --with-mule Compile with Mule (MUlti-Lingual Emacs) support,
|
|
269 needed to suport non-Latin-1 (including Asian) languages.
|
|
270 --with-xim=xlib Compile with support for X input methods,
|
|
271 --with-xim=motif (*) Used in conjunction with Mule support.
|
|
272 Use either raw Xlib to provide XIM support, or
|
|
273 the Motif XmIm* routines (when available).
|
|
274 If the XmIm* routines are autodetected,
|
|
275 then the default is --with-xim=motif, else --with-xim=no.
|
98
|
276 --with-canna Compile with support for Canna (a Japanese input method
|
|
277 used in conjunction with Mule support).
|
|
278 --with-wnn Compile with support for WNN (a multi-language input method
|
70
|
279 used in conjunction with Mule support).
|
98
|
280 This is beta level code.
|
|
281 --with-wnn6 Compile with support for WNN version 6
|
|
282 This is alpha level code.
|
100
|
283 --wnn-includes=DIR Search for WNN header files in DIR.
|
|
284 --wnn-libraries=DIR Search for WNN libraries in DIR.
|
70
|
285 --with-i18n3 Compile with I18N level 3 (support for message
|
|
286 translation). This doesn't currently work.
|
110
|
287 --canna-includes=DIR Search for Canna header files in DIR.
|
|
288 --canna-libraries=DIR Search for Canna libraries in DIR.
|
70
|
289
|
0
|
290
|
|
291 Debugging options:
|
|
292
|
|
293 --debug Compile with support for debugging XEmacs.
|
116
|
294 (Causes code-size increase and little loss of speed.)
|
0
|
295 --error-checking=TYPE[,TYPE]...
|
|
296 Compile with internal error-checking added.
|
|
297 Causes noticeable loss of speed. Valid types
|
|
298 are extents, bufpos, malloc, gc, typecheck.
|
|
299 --error-checking=none Disable all internal error-checking (the default).
|
|
300 --error-checking=all Enable all internal error-checking.
|
|
301 --memory-usage-stats Compile with additional code to allow you to
|
|
302 determine what XEmacs's memory is being used
|
|
303 for. Causes a small code increase but no loss
|
|
304 of speed. Normally enabled when --debug is given.
|
|
305 --no-doc-file Don't rebuild the DOC file unless it's explicitly
|
|
306 deleted. Only use during development. (It speeds
|
|
307 up the compile-run-test cycle.)
|
|
308 --use-union-type Enable or disable use of a union, instead of an
|
|
309 int, for the fundamental Lisp_Object type; this
|
|
310 provides stricter type-checking. Only works with
|
|
311 some systems and compilers.
|
|
312
|
|
313
|
|
314 Other options:
|
|
315
|
|
316 --puresize=VALUE Override default amount of space for pure Lisp code.
|
|
317 --rel-alloc Use the relocating allocator (default for this option
|
|
318 is system-dependent).
|
|
319 --use-system-malloc Force use of the system malloc, rather than GNU
|
|
320 malloc.
|
|
321
|
|
322 You may also specify any of the \`path' variables found in
|
|
323 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
|
|
324 so on. Note that we recommend against explicitly setting any of these
|
|
325 variables. See the INSTALL file for a complete list plus the reasons
|
70
|
326 we advise not changing them.
|
0
|
327
|
|
328 If successful, ${progname} leaves its status in config.status. If
|
|
329 unsuccessful after disturbing the status quo, it removes config.status."
|
|
330
|
|
331 ############################################################################
|
|
332 # #
|
|
333 # Options processing #
|
|
334 # #
|
|
335 ############################################################################
|
|
336
|
|
337 ### Record all the arguments, so we can save them in config.status.
|
|
338 arguments="$@"
|
|
339
|
|
340 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
|
|
341 ### in order to get the arguments back in $@, we have to do an
|
|
342 ### `eval set x "$quoted_arguments"; shift'.
|
|
343 quoted_arguments=
|
|
344 for i in "$@"; do
|
|
345 quoted_arguments="$quoted_arguments '$i'"
|
|
346 done
|
|
347
|
|
348 ### Don't use shift -- that destroys the argument list, which autoconf needs
|
|
349 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
|
|
350 ### work portably.
|
|
351 ### However, it also turns out that many shells cannot expand ${10} at all.
|
|
352 ### So using an index variable doesn't work either. It is possible to use
|
|
353 ### some shell magic to make 'set x "$arguments"; shift' work portably.
|
70
|
354 while test $# != 0; do
|
0
|
355 arg="$1"; shift
|
|
356 case "${arg}" in
|
|
357
|
|
358 ## Anything starting with a hyphen we assume is an option.
|
|
359 -* )
|
|
360 ## Separate the switch name from the value it's being given.
|
|
361 case "${arg}" in
|
|
362 -*=*)
|
|
363 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
364 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
|
365 valomitted=no
|
|
366 ;;
|
|
367 # ## special case these strings since echo may
|
|
368 # ## silently eat them.
|
|
369 # --help ) opt=help val=yes valomitted=yes ;;
|
|
370 # --version ) opt=version val=yes valomitted=yes ;;
|
|
371 # -e ) opt=e val=yes valomitted=yes ;;
|
|
372 # -E ) opt=E val=yes valomitted=yes ;;
|
|
373 # -n ) opt=n val=yes valomitted=yes ;;
|
|
374 -*)
|
|
375 ## If FOO is a boolean argument, --FOO is equivalent to
|
|
376 ## --FOO=yes. Otherwise, the value comes from the next
|
|
377 ## argument - see below.
|
|
378 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
|
379 val="yes"
|
|
380 valomitted=yes
|
|
381 ;;
|
|
382 esac
|
|
383
|
|
384 ## Change `-' in the option name to `_'.
|
|
385 optname="${opt}"
|
|
386 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`"
|
|
387
|
|
388 ## Process the option.
|
|
389 case "${opt}" in
|
|
390
|
70
|
391 ## Process (many) boolean options
|
|
392 run_in_place | \
|
|
393 with_x | \
|
|
394 with_x11 | \
|
|
395 with_gcc | \
|
|
396 with_lcc | \
|
|
397 with_gnu_make | \
|
|
398 with_epoch | \
|
|
399 dynamic | \
|
|
400 with_term | \
|
|
401 with_cde | \
|
|
402 with_offix | \
|
|
403 with_xpm | \
|
|
404 with_gif | \
|
|
405 with_jpeg | \
|
|
406 with_tiff | \
|
|
407 with_socks | \
|
|
408 with_xface | \
|
|
409 with_xmu | \
|
|
410 quantify | \
|
|
411 with_ns | \
|
|
412 with_toolbars | \
|
|
413 with_tty | \
|
|
414 with_i18n3 | \
|
|
415 with_mule | \
|
|
416 with_canna | \
|
|
417 with_wnn | \
|
98
|
418 with_wnn6 | \
|
70
|
419 with_mocklisp | \
|
|
420 with_energize | \
|
|
421 with_sparcworks | \
|
|
422 with_tooltalk | \
|
|
423 external_widget | \
|
|
424 extra_verbose | \
|
|
425 const_is_losing | \
|
|
426 usage_tracking | \
|
|
427 use_union_type | \
|
|
428 debug | \
|
|
429 use_assertions | \
|
|
430 memory_usage_stats | \
|
|
431 no_doc_file )
|
0
|
432 ## Make sure the value given was either "yes" or "no".
|
|
433 case "${val}" in
|
|
434 y | ye | yes ) val=yes ;;
|
|
435 n | no ) val=no ;;
|
|
436 * )
|
|
437 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
|
|
438 Set it to either \`yes' or \`no'."
|
|
439 echo "${short_usage}") >&2
|
70
|
440 exit 1 ;;
|
0
|
441 esac
|
70
|
442 eval "${opt}=\"${val}\"" ;;
|
|
443
|
|
444
|
|
445 ## Options that take a user-supplied value, as in --puresize=8000000
|
|
446 srcdir | \
|
|
447 compiler | \
|
|
448 puresize | \
|
|
449 native_sound_lib | \
|
|
450 x_includes | \
|
|
451 x_libraries | \
|
100
|
452 wnn_includes | \
|
|
453 wnn_libraries | \
|
110
|
454 canna_includes | \
|
|
455 canna_libraries | \
|
70
|
456 site_includes | \
|
|
457 site_libraries | \
|
|
458 site_runtime_libraries )
|
0
|
459 ## If the value was omitted, get it from the next argument.
|
70
|
460 if test "${valomitted}" = "yes" ; then
|
0
|
461 ## Get the next argument from the argument list, if there is one.
|
70
|
462 if test $# = 0 ; then
|
0
|
463 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
|
|
464 \`--${optname}=FOO'."
|
|
465 echo "${short_usage}") >&2
|
|
466 exit 1
|
|
467 fi
|
|
468 val="$1"; shift
|
|
469 fi
|
70
|
470 eval "${opt}=\"${val}\""
|
0
|
471 ;;
|
|
472
|
70
|
473 ### Options that take "yes", "no", or "default" values
|
|
474 rel_alloc | \
|
|
475 use_system_malloc )
|
0
|
476 case "${val}" in
|
|
477 y | ye | yes ) val=yes ;;
|
|
478 n | no ) val=no ;;
|
70
|
479 d | de | def | defa | defau | defaul | default )
|
|
480 val=default ;;
|
0
|
481 * )
|
70
|
482 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'.
|
|
483 Set it to either \`yes', \`no', or \`default'."
|
0
|
484 echo "${short_usage}") >&2
|
|
485 exit 1
|
|
486 ;;
|
|
487 esac
|
|
488 eval "${opt}=\"${val}\""
|
|
489 ;;
|
|
490
|
70
|
491 ## Has the user requested database support?
|
|
492 "with_database" )
|
|
493 if test "${val}" = "no" ; then
|
|
494 with_database_berkdb=no
|
|
495 with_database_dbm=no
|
|
496 with_database_gnudbm=no
|
|
497 else
|
|
498 ## Make sure the value given was berkdb, dbm, gnudbm, or a list
|
|
499 for x in `echo "${val}" | sed 's/,/ /'` ; do
|
|
500 case "${x}" in
|
|
501 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
|
|
502 d | db | dbm ) with_database_dbm=yes ;;
|
|
503 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
|
|
504 * )
|
|
505 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no'
|
|
506 or a comma-separated list of one or more of \`berkdb', \`dbm', or \`gnudbm'."
|
|
507 echo "${short_usage}") >&2
|
|
508 exit 1
|
|
509 ;;
|
|
510 esac
|
|
511 done
|
|
512 if test "${with_database_dbm}" = "yes" -a "${with_database_gnudbm}" = "yes"
|
|
513 then
|
|
514 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2
|
0
|
515 exit 1
|
|
516 fi
|
|
517 fi
|
70
|
518 ;;
|
0
|
519
|
|
520 ## Has the user requested sound support?
|
|
521 "with_sound" )
|
|
522 ## value can be native, nas or both. yes is allowed
|
|
523 ## as a backwards compatible synonym for native
|
|
524 case "${val}" in
|
|
525 y | ye | yes ) val=native ;;
|
|
526 n | no | non | none ) val=no;;
|
|
527 na | nat | nati | nativ | native ) val=native ;;
|
|
528 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
|
|
529 b | bo | bot | both ) val=both;;
|
|
530 * )
|
70
|
531 (echo "${progname}: the \`--${optname}' option should have one of the values:"
|
|
532 echo "\`native', \`nas', \`both', or \`none'."
|
|
533 echo ""
|
|
534 echo "${short_usage}") >&2
|
2
|
535 exit 1
|
|
536 ;;
|
|
537 esac
|
|
538 eval "${opt}=\"${val}\""
|
|
539 ;;
|
|
540
|
70
|
541 ## Has the user requested XIM support?
|
|
542 "with_xim" )
|
|
543 ## value can be xlib or motif
|
|
544 ## as a backwards compatible synonym for native
|
0
|
545 case "${val}" in
|
70
|
546 y | ye | yes ) val=yes ;;
|
|
547 n | no | non | none ) val=no ;;
|
|
548 x | xl | xli | xlib ) val=xlib ;;
|
|
549 m | mo | mot | moti | motif ) val=motif ;;
|
0
|
550 * )
|
70
|
551 (echo "${progname}: the \`--${optname}' option should have one of the values:"
|
|
552 echo "\`motif', \`xlib', \`yes', or \`no'."
|
|
553 echo ""
|
|
554 echo "${short_usage}") >&2
|
0
|
555 exit 1
|
|
556 ;;
|
|
557 esac
|
|
558 eval "${opt}=\"${val}\""
|
|
559 ;;
|
|
560
|
|
561 ## Has the user requested PNG support?
|
|
562 "with_png" )
|
|
563 ## Make sure the value given was either "yes", "no", or "gnuz".
|
|
564 case "${val}" in
|
70
|
565 y | ye | yes ) val=yes ;;
|
|
566 n | no ) val=no ;;
|
0
|
567 g | gn | gnu | gnuz ) val=gnuz ;;
|
|
568 * )
|
|
569 (echo "${progname}: the \`--${optname}' option is supposed to
|
|
570 be either \`yes', \`no', or \`gnuz'."
|
|
571 echo "${short_usage}") >&2
|
|
572 exit 1
|
|
573 ;;
|
|
574 esac
|
|
575 eval "${opt}=\"${val}\""
|
|
576 ;;
|
|
577
|
|
578 ## Has the user requested error-checking?
|
|
579 "error_checking" )
|
|
580 ## value can be all, none, and/or a list of categories to check.
|
|
581 ## Example: --error-checking=all,noextents,nobufpos
|
|
582 ## Example: --error-checking=none,malloc,gc
|
|
583
|
|
584 for x in `echo "${val}" | sed 's/,/ /'` ; do
|
|
585 case "${x}" in
|
|
586 # all and none are only permitted as the first in the list.
|
|
587 n | no | non | none ) new_default=no ;;
|
|
588 a | al | all ) new_default=yes ;;
|
|
589
|
|
590 extents ) error_check_extents=yes ;;
|
|
591 noextents ) error_check_extents=no ;;
|
|
592
|
|
593 typecheck ) error_check_typecheck=yes ;;
|
|
594 notypecheck ) error_check_typecheck=no ;;
|
|
595
|
|
596 bufpos ) error_check_bufpos=yes ;;
|
|
597 nobufpos ) error_check_bufpos=no ;;
|
|
598
|
|
599 gc ) error_check_gc=yes ;;
|
|
600 nogc ) error_check_gc=no ;;
|
|
601
|
|
602 malloc ) error_check_malloc=yes ;;
|
|
603 nomalloc ) error_check_malloc=no ;;
|
|
604
|
|
605 * ) bogus_error_check=yes ;;
|
|
606 esac
|
70
|
607 if test "$bogus_error_check" -o \
|
|
608 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
|
0
|
609 ( echo "${progname}: Valid types for the \`--${optname}' option are:"
|
70
|
610 if test $error_check_default = yes ; then
|
0
|
611 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
|
|
612 else
|
|
613 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
|
|
614 fi
|
|
615 echo "${short_usage}" ) >&2
|
|
616 exit 1
|
70
|
617 elif test "$new_default" ; then
|
0
|
618 error_check_extents=$new_default
|
|
619 error_check_typecheck=$new_default
|
|
620 error_check_bufpos=$new_default
|
|
621 error_check_gc=$new_default
|
|
622 error_check_malloc=$new_default
|
|
623 new_default= # reset this
|
|
624 fi
|
|
625 echeck_notfirst=true
|
|
626 done
|
|
627 ;;
|
|
628
|
|
629 ## Has the user tried to tell us where the X files are?
|
|
630 ## I think these are dopey, but no less than three alpha
|
|
631 ## testers, at large sites, have said they have their X files
|
|
632 ## installed in odd places.
|
|
633
|
|
634 ## Has the user specified one of the path options?
|
|
635 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
|
636 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \
|
|
637 sitelispdir | docdir )
|
|
638 ## If the value was omitted, get it from the next argument.
|
70
|
639 if test "${valomitted}" = "yes" ; then
|
|
640 if test $# = 0 ; then
|
0
|
641 (echo \
|
|
642 "$progname: You must give a value for the \`--${optname}' option,";
|
|
643 echo \
|
|
644 "as in \`--${optname}=`eval echo '$'$optname`.'"
|
|
645 echo "$short_usage") >&2
|
|
646 exit 1
|
|
647 fi
|
|
648 val="$1"; shift
|
|
649 fi
|
|
650 eval "${opt}=\"${val}\""
|
|
651
|
|
652 ## Changing exec_prefix or libdir will change the default value
|
|
653 ## of archlibdir. Changing datadir will change the default value
|
|
654 ## of etcdir and lispdir. Changing statedir will change the
|
|
655 ## default value of lockdir.
|
70
|
656 if test "${opt}" = exec_prefix; then archlibdir_user_defined=yes
|
|
657 elif test "${opt}" = libdir ; then archlibdir_user_defined=yes
|
|
658 elif test "${opt}" = archlibdir ; then archlibdir_user_defined=yes
|
|
659 elif test "${opt}" = lispdir ; then lispdir_user_defined=yes
|
|
660 elif test "${opt}" = etcdir ; then etcdir_user_defined=yes
|
|
661 elif test "${opt}" = datadir ; then
|
|
662 lispdir_user_defined=yes
|
|
663 etcdir_user_defined=yes
|
|
664 elif test "${opt}" = statedir ; then lockdir_user_defined=yes
|
|
665 elif test "${opt}" = lockdir ; then lockdir_user_defined=yes
|
|
666 elif test "${opt}" = infodir ; then infodir_user_defined=yes
|
0
|
667 fi
|
|
668 ;;
|
|
669
|
|
670 ## Has the user specified values to override CFLAGS?
|
|
671 cflags )
|
|
672 ## If the value was omitted, get it from the next argument.
|
70
|
673 if test "${valomitted}" = "yes" ; then
|
|
674 if test $# = 0 ; then
|
0
|
675 (echo \
|
|
676 "$progname: You must give a value for the \`--${optname}' option,";
|
|
677 echo \
|
|
678 "as in \`--${optname}=`eval echo '$'$optname`-g -O'"
|
|
679 echo "$short_usage") >&2
|
|
680 exit 1
|
|
681 fi
|
|
682 val="$1"; shift
|
|
683 fi
|
|
684 eval "${opt}=\"${val}\""
|
|
685 eval "${opt}_specified=1"
|
|
686 ;;
|
|
687
|
|
688 ## Verbose flag, tested by autoconf macros.
|
|
689 "verbose" )
|
|
690 verbose=yes
|
|
691 ;;
|
|
692
|
|
693 ## --no-create added by autoconf for use by config.status
|
|
694 "no_create" )
|
|
695 ;;
|
|
696
|
|
697 ## Has the user asked for some help?
|
|
698 "usage" | "help" )
|
70
|
699 if test -z "$PAGER"
|
|
700 then echo "${short_usage}" | more
|
|
701 else echo "${short_usage}" | $PAGER
|
0
|
702 fi
|
|
703 exit
|
|
704 ;;
|
|
705
|
|
706 ## Has the user specified what toolkit to use for the menubars,
|
|
707 ## scrollbar or dialogs?
|
|
708 "with_menubars" | "with_scrollbars" | "with_dialogs" )
|
|
709 ## value can be lucid, motif, or athena.
|
|
710 case "${val}" in
|
|
711 l | lu | luc | luci | lucid ) val=lucid ;;
|
|
712 m | mo | mot | moti | motif ) val=motif ;;
|
82
|
713 athena3d | athena-3d ) val=athena3d ;;
|
0
|
714 a | at | ath | athe | athen | athena ) val=athena ;;
|
|
715 n | no | non | none ) val=no ;;
|
|
716 * )
|
70
|
717 (echo "${progname}: the \`--${optname}' option should have one of the values:"
|
|
718 echo "\`lucid', \`motif', \`athena', or \`no'."
|
|
719 echo ""
|
|
720 echo "${short_usage}") >&2
|
0
|
721 exit 1
|
|
722 ;;
|
|
723 esac
|
|
724 eval "${opt}=\"${val}\""
|
|
725 ;;
|
|
726
|
|
727 ## Fail on unrecognized arguments.
|
|
728 * )
|
70
|
729 (echo "${progname}: Error: unrecognized option: ${arg}"
|
0
|
730 echo ""
|
|
731 echo "${short_usage}") >& 2
|
|
732 exit 1
|
|
733 ;;
|
|
734
|
|
735 esac
|
|
736 ;;
|
|
737
|
|
738 ## Anything not starting with a hyphen we assume is a
|
|
739 ## configuration name.
|
|
740 *)
|
|
741 configuration=${arg}
|
|
742 ;;
|
|
743
|
|
744 esac
|
|
745 done
|
|
746
|
|
747 ############################################################################
|
|
748 # #
|
|
749 # Finish options processing #
|
|
750 # #
|
|
751 ############################################################################
|
|
752
|
|
753 ### Get the arguments back. See the diatribe on Shell Magic above.
|
|
754 eval set x "$quoted_arguments"; shift
|
|
755
|
70
|
756 ### Argument interdependencies
|
|
757 if test "${with_energize}" = "yes" ; then
|
|
758 with_menubars="lucid"
|
|
759 with_scrollbars="motif"
|
|
760 with_dialogs="motif"
|
|
761 with_tooltalk="yes"
|
|
762 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
|
|
763 fi
|
|
764
|
|
765 ### --extra-verbose implies --verbose
|
|
766 test "${extra_verbose}" = yes && verbose=yes
|
|
767
|
|
768 ### Sparcworks requires tooltalk
|
|
769 test "${with_sparcworks}" = yes && with_tooltalk=yes
|
|
770
|
|
771 ### debug implies other options
|
|
772 test "${debug}" = "yes" && use_assertions=yes memory_usage_stats=yes
|
|
773
|
|
774 ### with_x is a synonym for with_x11
|
|
775 test -n "${with_x}" && with_x11="${with_x}"
|
|
776
|
|
777 ### Can't specify 2 compilers
|
|
778 if test "${with_gcc}" = "yes" -a "${with_lcc}" = "yes"; then
|
|
779 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified."
|
|
780 echo "${short_usage}") >&2
|
|
781 exit 1
|
|
782 fi
|
|
783
|
|
784 ### Ignore useless run-in-place flag
|
|
785 if test "${run_in_place}" = "yes"; then
|
|
786 echo "configure: warning: The --run-in-place option is ignored because it is unnecessary." >&2
|
|
787 fi
|
|
788
|
|
789 ###########################################################################
|
|
790 if test "${configuration}" = "" ; then
|
0
|
791 echo '- You did not tell me what kind of host system you want to configure.
|
|
792 - I will attempt to guess the kind of system this is.' 1>&2
|
|
793 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
|
|
794 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then
|
|
795 echo "- Looks like this is a ${configuration}" 1>&2
|
|
796 else
|
|
797 echo '- Failed to guess the system type. You need to tell me.' 1>&2
|
|
798 echo "${short_usage}" >&2
|
|
799 exit 1
|
|
800 fi
|
|
801 fi
|
|
802
|
70
|
803 ### Find the source directory.
|
0
|
804 case "${srcdir}" in
|
|
805
|
|
806 ## If it's not specified, see if `.' or `..' might work.
|
|
807 "" )
|
70
|
808 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
|
|
809 if test -f "$dir/src/lisp.h" -a -f "$dir/lisp/version.el" ; then
|
|
810 srcdir="${dir}"
|
|
811 break
|
|
812 fi
|
|
813 done
|
|
814 if test -z "${srcdir}" ; then
|
|
815 echo "\
|
0
|
816 ${progname}: Neither the current directory nor its parent seem to
|
|
817 contain the XEmacs sources. If you do not want to build XEmacs in its
|
|
818 source tree, you should run \`${progname}' in the directory in which
|
|
819 you wish to build XEmacs, using its \`--srcdir' option to say where the
|
70
|
820 sources may be found.
|
|
821 ${short_usage}" >&2
|
|
822 exit 1
|
0
|
823 fi
|
|
824 ;;
|
|
825
|
|
826 ## Otherwise, check if the directory they specified is okay.
|
|
827 * )
|
70
|
828 if test ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ; then
|
0
|
829 (echo "\
|
|
830 ${progname}: The directory specified with the \`--srcdir' option,
|
|
831 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should
|
|
832 either run the \`${progname}' script at the top of the XEmacs source
|
|
833 tree, or use the \`--srcdir' option to specify where the XEmacs sources
|
|
834 are."
|
|
835 echo "${short_usage}") >&2
|
|
836 exit 1
|
|
837 fi
|
|
838 ;;
|
|
839 esac
|
|
840
|
|
841 ## We check for this now instead of later when we check for other
|
|
842 ## programs because we need to use its return value now.
|
|
843 test -n "$silent" || echo "checking for ln -s"
|
|
844 rm -f conftestdata
|
|
845 if ln -s X conftestdata 2>/dev/null
|
|
846 then
|
|
847 rm -f conftestdata
|
|
848 LN_S="ln -s"
|
|
849 else
|
|
850 LN_S=ln
|
|
851 fi
|
|
852
|
|
853
|
|
854
|
|
855 test -n "$verbose" && echo " "setting LN_S to ${LN_S}""
|
|
856
|
|
857 #### Make symlinks for etc, lisp, and info directories while the path
|
|
858 #### is still relative. We don't symlink lock because someone may
|
|
859 #### have stuck the source on a read-only partition. Instead we'll
|
|
860 #### create it as an actual directory later on if it doesn't already
|
|
861 #### exist.
|
104
|
862 for dir in lisp etc man info site-lisp
|
0
|
863 do
|
70
|
864 if test ! -d $dir ; then
|
0
|
865 echo Making symbolic link to ${srcdir}/$dir
|
|
866 ${LN_S} ${srcdir}/$dir .
|
|
867 fi
|
|
868 done
|
|
869
|
104
|
870
|
0
|
871 #### Make srcdir absolute, if it isn't already. It's important to
|
|
872 #### avoid running the path through pwd unnecessary, since pwd can
|
|
873 #### give you automounter prefixes, which can go away.
|
|
874 case "${srcdir}" in
|
|
875 /* ) ;;
|
|
876 . )
|
|
877 ## We may be able to use the $PWD environment variable to make this
|
|
878 ## absolute. But sometimes PWD is inaccurate.
|
70
|
879 if test "${PWD}" != "" -a "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`"; then
|
0
|
880 srcdir="$PWD"
|
|
881 else
|
|
882 srcdir="`(cd ${srcdir}; pwd)`"
|
|
883 fi
|
|
884 ;;
|
|
885 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
|
|
886 esac
|
|
887
|
|
888 #### Check if the source directory already has a configured system in it.
|
70
|
889 if test `pwd` != `sh -c cd ${srcdir} && pwd` \
|
|
890 && test -f "${srcdir}/src/config.h"; then
|
0
|
891 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
|
|
892 echo " as a build directory right now; it has been configured in its own"
|
|
893 echo " right. To configure in another directory as well, you MUST"
|
|
894 echo " use GNU make. If you do not have GNU make, then you must"
|
|
895 echo " now do \`make distclean' in ${srcdir},"
|
|
896 echo " and then run ${progname} again.") >&2
|
|
897 extrasub='/^VPATH[ ]*=/c\
|
|
898 vpath %.c $(srcdir)\
|
|
899 vpath %.h $(srcdir)\
|
|
900 vpath %.y $(srcdir)\
|
|
901 vpath %.l $(srcdir)\
|
|
902 vpath %.s $(srcdir)\
|
|
903 vpath %.in $(srcdir)'
|
|
904 fi
|
|
905
|
|
906 ### Make the necessary directories, if they don't exist.
|
70
|
907 for dir in ./src ./lib-src ./dynodump ./lwlib ./lock ; do
|
|
908 if test ! -d ${dir} ; then
|
0
|
909 mkdir ${dir}
|
|
910 fi
|
|
911 done
|
70
|
912 if test "${with_energize}" = "yes" -a ! -d ./lwlib/energize; then
|
0
|
913 mkdir ./lwlib/energize
|
|
914 fi
|
|
915
|
|
916 ############################################################################
|
|
917 # #
|
|
918 # Determine the s&m files to use #
|
|
919 # #
|
|
920 ############################################################################
|
|
921
|
|
922 #### Given the configuration name, set machfile and opsysfile to the
|
|
923 #### names of the m/*.h and s/*.h files we should use.
|
|
924
|
|
925 ### Canonicalize the configuration name.
|
|
926 echo "checking the configuration name"
|
|
927 # allow -energize prefix on configuration name
|
|
928 internal_configuration=`echo ${configuration} | sed 's/-energize//'`
|
|
929 # allow --sparcworks prefix on configuration name
|
|
930 internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'`
|
|
931 if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else
|
|
932 exit $?
|
|
933 fi
|
|
934
|
|
935 ### If you add support for a new configuration, add code to this
|
|
936 ### switch statement to recognize your configuration name and select
|
|
937 ### the appropriate operating system and machine description files.
|
|
938
|
|
939 ### You would hope that you could choose an m/*.h file pretty much
|
|
940 ### based on the machine portion of the configuration name, and an s-
|
|
941 ### file based on the operating system portion. However, it turns out
|
|
942 ### that each m/*.h file is pretty manufacturer-specific - for
|
|
943 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
|
|
944 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
|
|
945 ### machines. So we basically have to have a special case for each
|
|
946 ### configuration name.
|
|
947 ###
|
|
948 ### As far as handling version numbers on operating systems is
|
|
949 ### concerned, make sure things will fail in a fixable way. If
|
|
950 ### /etc/MACHINES doesn't say anything about version numbers, be
|
|
951 ### prepared to handle anything reasonably. If version numbers
|
|
952 ### matter, be sure /etc/MACHINES says something about it.
|
|
953 ###
|
|
954 ### Eric Raymond says we should accept strings like "sysvr4" to mean
|
|
955 ### "System V Release 4"; he writes, "The old convention encouraged
|
|
956 ### confusion between `system' and `release' levels'."
|
|
957
|
|
958 machine='' opsys='' unported=no need_dynodump=no
|
|
959 case "${canonical}" in
|
|
960
|
|
961 ## NetBSD ports
|
|
962 *-*-netbsd* )
|
|
963 opsys=netbsd
|
|
964 case "${canonical}" in
|
70
|
965 sparc-*-netbsd*) machine=sparc ;;
|
0
|
966 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
967 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
|
968 # Yes, this is somewhat bogus.
|
|
969 machine=hp9000s300 ;;
|
70
|
970 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
971 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
0
|
972 esac
|
|
973 ;;
|
|
974
|
|
975 ## Acorn RISCiX:
|
70
|
976 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
|
|
977 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
|
0
|
978
|
|
979 ## Alliant machines
|
|
980 ## Strictly speaking, we need the version of the alliant operating
|
|
981 ## system to choose the right machine file, but currently the
|
|
982 ## configuration name doesn't tell us enough to choose the right
|
|
983 ## one; we need to give alliants their own operating system name to
|
|
984 ## do this right. When someone cares, they can help us.
|
70
|
985 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
|
|
986 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
|
0
|
987
|
|
988 ## Alpha (DEC) machines.
|
|
989 ## XEmacs change: split apart into numerous files.
|
70
|
990 alpha-dec-osf1.3 | alpha-dec-osf2* ) machine=alpha opsys=decosf1-3 ;;
|
|
991 alpha-dec-osf1.2 | alpha-dec-osf1* ) machine=alpha opsys=decosf1-2 ;;
|
0
|
992
|
|
993 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
|
|
994 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu)
|
70
|
995 alpha-dec-osf3.[2-9] ) machine=alpha opsys=decosf3-2 ;;
|
|
996 alpha-dec-osf3* ) machine=alpha opsys=decosf3-1 ;;
|
|
997 alpha-dec-osf4* ) machine=alpha opsys=decosf4-0 ;;
|
|
998 alpha-*-linux* ) machine=alpha opsys=linux ;;
|
0
|
999
|
|
1000 ## Altos 3068
|
70
|
1001 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
|
0
|
1002
|
|
1003 ## Amdahl UTS
|
70
|
1004 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
|
0
|
1005
|
|
1006 ## Apollo, Domain/OS
|
70
|
1007 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
|
0
|
1008
|
|
1009 ## AT&T 3b2, 3b5, 3b15, 3b20
|
70
|
1010 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
|
0
|
1011
|
|
1012 ## AT&T 3b1 - The Mighty Unix PC!
|
70
|
1013 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
|
0
|
1014
|
74
|
1015 ## Bull machines
|
|
1016 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
|
|
1017 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
|
|
1018 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
|
0
|
1019
|
|
1020 ## CCI 5/32, 6/32 -- see "Tahoe".
|
|
1021
|
|
1022 ## Celerity
|
|
1023 ## I don't know what configuration name to use for this; config.sub
|
|
1024 ## doesn't seem to know anything about it. Hey, Celerity users, get
|
|
1025 ## in touch with us!
|
70
|
1026 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
|
0
|
1027
|
|
1028 ## Clipper
|
|
1029 ## What operating systems does this chip run that XEmacs has been
|
|
1030 ## tested on?
|
70
|
1031 clipper-* ) machine=clipper
|
0
|
1032 ## We'll use the catch-all code at the bottom to guess the
|
|
1033 ## operating system.
|
|
1034 ;;
|
|
1035
|
|
1036 ## Convex
|
|
1037 *-convex-bsd* | *-convex-convexos* )
|
|
1038 machine=convex opsys=bsd4-3
|
|
1039 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
|
|
1040 NON_GNU_CPP="cc -E -P"
|
|
1041 ;;
|
|
1042
|
|
1043 ## Cubix QBx/386
|
70
|
1044 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
|
0
|
1045
|
|
1046 ## Cydra 5
|
70
|
1047 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;;
|
0
|
1048
|
|
1049 ## Data General AViiON Machines
|
82
|
1050 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
|
70
|
1051 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) machine=aviion opsys=dgux5-4r3 ;;
|
|
1052 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) machine=aviion opsys=dgux5-4r2 ;;
|
74
|
1053 m88k-dg-dgux* ) machine=aviion opsys=dgux ;;
|
70
|
1054
|
|
1055 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) machine=pmax opsys=bsd4-2 ;;
|
|
1056 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) machine=pmax opsys=bsd4-3 ;;
|
|
1057 mips-dec-ultrix* ) machine=pmax opsys=ultrix4-3 ;;
|
|
1058 mips-dec-osf* ) machine=pmax opsys=osf1 ;;
|
|
1059 mips-dec-mach_bsd4.3* ) machine=pmax opsys=mach-bsd4-3 ;;
|
0
|
1060
|
|
1061 ## Motorola Delta machines
|
|
1062 m68k-motorola-sysv* | m68000-motorola-sysv* )
|
|
1063 machine=delta opsys=usg5-3
|
|
1064 if test -z "`type gnucc | grep 'not found'`"
|
|
1065 then
|
|
1066 if test -s /etc/167config
|
|
1067 then CC="gnucc -m68040"
|
|
1068 else CC="gnucc -m68881"
|
|
1069 fi
|
|
1070 else
|
|
1071 if test -z "`type gcc | grep 'not found'`"
|
|
1072 then CC=gcc
|
|
1073 else CC=cc
|
|
1074 fi
|
|
1075 fi
|
|
1076 ;;
|
|
1077 m88k-motorola-sysv4* )
|
|
1078 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
|
|
1079 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
|
|
1080 # I hope there are not other 4.0 versions for this machine
|
|
1081 # which really need usg5-4 instead.
|
|
1082 machine=delta88k opsys=usg5-4-2
|
|
1083 ;;
|
70
|
1084 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
|
0
|
1085
|
|
1086 ## Dual machines
|
70
|
1087 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
|
|
1088 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
|
0
|
1089
|
|
1090 ## Elxsi 6400
|
70
|
1091 elxsi-elxsi-sysv* ) machine=elxsi opsys=usg5-2 ;;
|
0
|
1092
|
|
1093 ## Encore machines
|
70
|
1094 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
|
0
|
1095
|
|
1096 ## Gould Power Node and NP1
|
70
|
1097 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
|
|
1098 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
|
|
1099 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
|
0
|
1100
|
|
1101 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
|
|
1102 ## as far as XEmacs is concerned).
|
|
1103 m88k-harris-cxux* )
|
|
1104 # Build needs to be different on 7.0 and later releases
|
|
1105 case "`uname -r`" in
|
74
|
1106 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
70
|
1107 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
0
|
1108 esac
|
|
1109 NON_GNU_CPP="/lib/cpp"
|
|
1110 ;;
|
|
1111 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
|
70
|
1112 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
|
0
|
1113 ## Harris power pc NightHawk running Power UNIX (Series 6000)
|
|
1114 powerpc-harris-powerunix )
|
|
1115 machine=nh6000 opsys=powerunix
|
|
1116 NON_GNU_CPP="cc -Xo -E -P"
|
|
1117 ;;
|
|
1118
|
|
1119 ## Honeywell XPS100
|
70
|
1120 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
|
0
|
1121
|
|
1122 ## HP 9000 series 200 or 300
|
70
|
1123 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
|
|
1124
|
|
1125 ## HP-UX on HP's
|
|
1126 *-hp-hpux* )
|
0
|
1127 NON_GNU_CC="cc -Aa"
|
70
|
1128 NON_GNU_CPP="cc -Aa -E"
|
|
1129
|
|
1130 ### Figure out machine and opsys orthogonally
|
|
1131 case "${canonical}" in
|
|
1132 m68* ) machine=hp9000s300 ;;
|
|
1133 hppa* ) machine=hp800 ;;
|
|
1134 esac
|
|
1135
|
|
1136 case "${canonical}" in
|
74
|
1137 *-hp-hpux7* ) opsys=hpux ;;
|
|
1138 *-hp-hpux8* ) opsys=hpux8 ;;
|
|
1139 *-hp-hpux9* ) opsys=hpux9 ;;
|
|
1140 *-hp-hpux10* ) opsys=hpux10 ;;
|
70
|
1141 * )
|
|
1142 case "`uname -r`" in
|
|
1143 ## Someone's system reports A.B8.05 for this.
|
|
1144 ## I wonder what other possibilities there are.
|
|
1145 *.B8.* ) opsys=hpux8 ;;
|
|
1146 *.08.* ) opsys=hpux8 ;;
|
|
1147 *.09.* ) opsys=hpux9 ;;
|
|
1148 *.10.* ) opsys=hpux10 ;;
|
|
1149 * ) opsys=hpux ;;
|
|
1150 esac
|
|
1151 ;;
|
0
|
1152 esac
|
72
|
1153
|
92
|
1154 if test $opsys = hpux10 ; then
|
90
|
1155 NON_GNU_CC="cc -Ae"
|
|
1156 NON_GNU_CPP="cc -Ae -E"
|
|
1157 fi
|
|
1158
|
72
|
1159 case "${canonical}" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
|
0
|
1160 ;;
|
|
1161
|
70
|
1162 hppa-*-nextstep* ) machine=hp800 opsys=nextstep ;;
|
0
|
1163
|
|
1164 ## Orion machines
|
70
|
1165 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
|
|
1166 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
|
0
|
1167
|
|
1168 ## IBM machines
|
70
|
1169 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
|
|
1170 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
|
|
1171 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
|
|
1172 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) machine=ibmrs6000 opsys=aix3-1 ;;
|
|
1173 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) machine=ibmrs6000 opsys=aix3-2-5 ;;
|
88
|
1174 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) machine=ibmrs6000 opsys=aix4-2 ;;
|
70
|
1175 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) machine=ibmrs6000 opsys=aix4-1 ;;
|
|
1176 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) machine=ibmrs6000 opsys=aix4 ;;
|
|
1177 rs6000-ibm-aix* | powerpc-ibm-aix* ) machine=ibmrs6000 opsys=aix3-2 ;;
|
|
1178 romp-ibm-bsd4.3* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1179 romp-ibm-bsd4.2* ) machine=ibmrt opsys=bsd4-2 ;;
|
|
1180 romp-ibm-aos4.3* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1181 romp-ibm-aos4.2* ) machine=ibmrt opsys=bsd4-2 ;;
|
|
1182 romp-ibm-aos* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1183 romp-ibm-bsd* ) machine=ibmrt opsys=bsd4-3 ;;
|
|
1184 romp-ibm-aix* ) machine=ibmrt-aix opsys=usg5-2-2 ;;
|
|
1185 romp-ibm-mach* ) machine=ibmrt opsys=mach-bsd4-3 ;;
|
0
|
1186
|
|
1187 ## Integrated Solutions `Optimum V'
|
70
|
1188 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
|
|
1189 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
|
0
|
1190
|
|
1191 ## Intel 386 machines where we do care about the manufacturer
|
70
|
1192 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
|
0
|
1193
|
|
1194 ## Prime EXL
|
70
|
1195 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
|
0
|
1196
|
|
1197 ## Sequent Symmetry running Dynix
|
70
|
1198 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
|
0
|
1199
|
|
1200 ## Sequent Symmetry running DYNIX/ptx
|
|
1201 ## Use the old cpp rather than the newer ANSI one.
|
|
1202 i[3-9]86-sequent-ptx* )
|
|
1203 machine=sequent-ptx opsys=ptx
|
|
1204 NON_GNU_CPP="/lib/cpp"
|
|
1205 ;;
|
|
1206
|
|
1207 ## Unspecified sysv on an ncr machine defaults to svr4.2.
|
|
1208 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
|
70
|
1209 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
|
0
|
1210
|
|
1211 ## Intel Paragon OSF/1
|
70
|
1212 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
|
0
|
1213
|
|
1214 ## Intel 860
|
|
1215 i860-*-sysv4* )
|
|
1216 machine=i860 opsys=usg5-4
|
|
1217 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
|
|
1218 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
|
|
1219 ;;
|
|
1220
|
|
1221 ## Masscomp machines
|
70
|
1222 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
|
0
|
1223
|
|
1224 ## Megatest machines
|
70
|
1225 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
|
0
|
1226
|
|
1227 ## Workstations sold by MIPS
|
|
1228 ## This is not necessarily all workstations using the MIPS processor -
|
|
1229 ## Irises are produced by SGI, and DECstations by DEC.
|
|
1230
|
|
1231 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
|
|
1232 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
|
|
1233 ## it gives for choosing between the alternatives seems to be "Use
|
|
1234 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
|
|
1235 ## the BSD world." I'll assume that these are instructions for
|
|
1236 ## handling two odd situations, and that every other situation
|
|
1237 ## should use mips.h and usg5-2-2, they being listed first.
|
|
1238 mips-mips-usg* )
|
|
1239 machine=mips4
|
|
1240 ## Fall through to the general code at the bottom to decide on the OS.
|
|
1241 ;;
|
70
|
1242 mips-mips-riscos4 )
|
|
1243 machine=mips4
|
0
|
1244 NON_GNU_CC="cc -systype bsd43"
|
|
1245 NON_GNU_CPP="cc -systype bsd43 -E"
|
70
|
1246 case "${canonical}" in
|
|
1247 mips-mips-riscos4* ) opsys=bsd4-3 ;;
|
|
1248 mips-mips-riscos5* ) opsys=riscos5 ;;
|
|
1249 esac
|
0
|
1250 ;;
|
70
|
1251 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
|
|
1252 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
|
0
|
1253
|
|
1254 ## NeXT
|
70
|
1255 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
|
0
|
1256
|
|
1257 ## The complete machine from National Semiconductor
|
70
|
1258 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
|
0
|
1259
|
|
1260 ## NCR machines
|
70
|
1261 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
|
|
1262 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
|
0
|
1263
|
|
1264 ## Nixdorf Targon 31
|
70
|
1265 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
|
0
|
1266
|
|
1267 ## Nu (TI or LMI)
|
70
|
1268 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
|
0
|
1269
|
|
1270 ## Plexus
|
70
|
1271 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
|
0
|
1272
|
|
1273 ## Pyramid machines
|
|
1274 ## I don't really have any idea what sort of processor the Pyramid has,
|
|
1275 ## so I'm assuming it is its own architecture.
|
70
|
1276 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
|
0
|
1277
|
|
1278 ## Sequent Balance
|
70
|
1279 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
|
|
1280 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
|
0
|
1281
|
|
1282 ## Siemens Nixdorf
|
|
1283 mips-siemens-sysv* | mips-sni-sysv*)
|
|
1284 machine=mips-siemens opsys=usg5-4
|
|
1285 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1286 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1287 ;;
|
|
1288
|
|
1289 ## Silicon Graphics machines
|
|
1290 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
|
70
|
1291 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
|
1292 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
0
|
1293 ## Iris 4D
|
70
|
1294 mips-sgi-irix3.* ) machine=iris4d opsys=irix3-3 ;;
|
|
1295 mips-sgi-irix4.* ) machine=iris4d opsys=irix4-0 ;;
|
82
|
1296 mips-sgi-irix6* ) machine=iris4d opsys=irix6-0 ;;
|
70
|
1297 mips-sgi-irix5.[3-9]* ) machine=iris4d opsys=irix5-3 ;;
|
|
1298 mips-sgi-irix5.2* ) machine=iris4d opsys=irix5-2 ;;
|
|
1299 mips-sgi-irix5.1* ) machine=iris4d opsys=irix5-1 ;;
|
|
1300 mips-sgi-irix* ) machine=iris4d opsys=irix5-0 ;;
|
0
|
1301
|
|
1302 ## SONY machines
|
70
|
1303 m68*-sony-bsd4.2* ) machine=news opsys=bsd4-2 ;;
|
|
1304 m68*-sony-bsd4.3* ) machine=news opsys=bsd4-3 ;;
|
|
1305 m68*-sony-newsos3* | m68*-sony-news3*) machine=news opsys=bsd4-3 ;;
|
|
1306 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) machine=news-risc opsys=bsd4-3 ;;
|
|
1307 mips-sony-news* ) machine=news-risc opsys=newsos5 ;;
|
0
|
1308
|
|
1309 ## Stride
|
70
|
1310 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
0
|
1311
|
|
1312 ## Suns
|
70
|
1313 sparc-*-linux* ) machine=sparc opsys=linux ;;
|
0
|
1314
|
|
1315 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
1316 # Hardware type
|
|
1317 case "${canonical}" in
|
|
1318 m68*-sunos1* ) machine=sun1 ;;
|
|
1319 m68*-sunos2* ) machine=sun2 ;;
|
|
1320 m68* ) machine=sun3 ;;
|
|
1321 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
1322 i[3-9]86-*-* ) machine=intel386 ;;
|
|
1323 rs6000* ) machine=rs6000 ;;
|
|
1324 sparc* ) machine=sparc ;;
|
|
1325 powerpc* ) machine=powerpc ;;
|
|
1326 * ) unported=yes ;;
|
|
1327 esac
|
|
1328
|
|
1329 # Make `canonical' even more so.
|
|
1330 case "${canonical}" in *-sunos5*)
|
70
|
1331 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";;
|
0
|
1332 esac
|
|
1333
|
|
1334 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
|
|
1335 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed
|
|
1336 # But, SunOS 5.6 no longer needs dynodump because it has a similar
|
|
1337 # function integrated.
|
|
1338 case "${canonical}" in
|
|
1339 *-sunos4* )
|
70
|
1340 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1341 *-solaris2* )
|
|
1342 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
0
|
1343 RANLIB=':'
|
70
|
1344 case "${canonical}" in
|
|
1345 *-solaris2.[6-9]* ) need_dynodump=no ;;
|
|
1346 *-solaris2* ) need_dynodump=yes ;;
|
|
1347 esac
|
0
|
1348 esac
|
|
1349
|
|
1350 case "${canonical}" in
|
|
1351 ## The Sun386 didn't get past 4.0.
|
74
|
1352 i[3-9]86-*-sunos4* ) opsys=sunos4-0 ;;
|
|
1353 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
1354 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
110
|
1355 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
|
1356 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
74
|
1357 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
1358
|
|
1359 *-solaris2.3* ) opsys=sol2-3 ;;
|
|
1360 *-solaris2.4* ) opsys=sol2-4 ;;
|
|
1361 *-solaris2.5* ) opsys=sol2-5 ;;
|
|
1362 *-solaris2.[6-9]* ) opsys=sol2-6 ;;
|
|
1363 *-solaris* ) opsys=sol2 ;;
|
|
1364
|
|
1365 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1366 * ) opsys=bsd4-2 ;;
|
0
|
1367 esac
|
70
|
1368
|
72
|
1369 case "${canonical}" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
1370
|
70
|
1371 ## Watch out for a compiler that is guaranteed not to work.
|
0
|
1372 case "${canonical}" in
|
70
|
1373 *-solaris* ) test "$CC" = "/usr/ucb/cc" && unset CC ;;
|
0
|
1374 esac
|
|
1375 ;;
|
70
|
1376
|
|
1377 sparc-*-nextstep* ) machine=sparc opsys=nextstep ;;
|
0
|
1378
|
|
1379 ## Tadpole 68k
|
70
|
1380 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
0
|
1381
|
|
1382 ## Tahoe machines
|
70
|
1383 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
|
1384 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
0
|
1385
|
|
1386 ## Tandem Integrity S2
|
70
|
1387 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
0
|
1388
|
|
1389 ## Tektronix XD88
|
70
|
1390 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
0
|
1391
|
|
1392 ## Tektronix 16000 box (6130?)
|
70
|
1393 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
0
|
1394 ## Tektronix 4300
|
|
1395 ## src/m/tek4300.h hints that this is a m68k machine.
|
70
|
1396 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
0
|
1397
|
|
1398 ## Titan P2 or P3
|
|
1399 ## We seem to have lost the machine-description file titan.h!
|
70
|
1400 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
0
|
1401
|
|
1402 ## Ustation E30 (SS5E)
|
70
|
1403 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
0
|
1404
|
|
1405 ## Vaxen.
|
|
1406 vax-dec-* )
|
|
1407 machine=vax
|
|
1408 case "${canonical}" in
|
|
1409 *-bsd4.1* ) opsys=bsd4-1 ;;
|
|
1410 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
1411 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
|
|
1412 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
1413 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
1414 *-vms* ) opsys=vms ;;
|
|
1415 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1416 * ) unported=yes
|
|
1417 esac
|
|
1418 ;;
|
|
1419
|
|
1420 ## Whitechapel MG1
|
70
|
1421 ## We don't know what sort of OS runs on these; we'll let the
|
|
1422 ## operating system guessing code below try.
|
|
1423 ns16k-whitechapel-* ) machine=mg1 ;;
|
0
|
1424
|
|
1425 ## Wicat
|
70
|
1426 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
0
|
1427
|
|
1428 ## Intel 386 machines where we don't care about the manufacturer
|
|
1429 i[3-9]86-*-* )
|
|
1430 machine=intel386
|
|
1431 case "${canonical}" in
|
|
1432 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
|
1433 *-isc2.2* ) opsys=isc2-2 ;;
|
|
1434 *-isc4.0* ) opsys=isc4-0 ;;
|
|
1435 *-isc4.* ) opsys=isc4-1
|
|
1436 GCC_TEST_OPTIONS=-posix
|
|
1437 NON_GCC_TEST_OPTIONS=-Xp
|
|
1438 ;;
|
|
1439 *-isc* ) opsys=isc3-0 ;;
|
|
1440 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1441 *-esix* ) opsys=esix ;;
|
|
1442 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1443 *-xenix* ) opsys=xenix ;;
|
|
1444 *-linux* ) opsys=linux ;;
|
|
1445 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
|
|
1446 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
110
|
1447 *-bsdi3* ) opsys=bsdos3 ;;
|
0
|
1448 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
1449 *-bsdi2* ) opsys=bsdos2 ;;
|
|
1450 *-sco3.2v5* ) opsys=sco5 ;
|
70
|
1451 ## This is a pain. Like the current USL cc, SCO's cc -E
|
|
1452 ## tokenizes as it preprocesses, making configure very
|
|
1453 ## unhappy. Unfortunately, /lib/cpp doesn't understand
|
|
1454 ## flags like "-b elf", so we have to cheat in order to
|
|
1455 ## pick up the right defines for UNEXEC from the s-file.
|
|
1456 ## 01/05/95 robertl@dgii.com
|
|
1457 if test "${dynamic}" = "yes" ; then
|
|
1458 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
|
|
1459 else
|
|
1460 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
|
|
1461 fi ;;
|
|
1462 *-386bsd* ) opsys=386bsd ;;
|
|
1463 *-freebsd* ) opsys=freebsd ;;
|
0
|
1464 *-nextstep* ) opsys=nextstep ;;
|
|
1465 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
|
|
1466 esac
|
|
1467 ;;
|
|
1468
|
|
1469 ## Linux/68k
|
70
|
1470 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
1471
|
|
1472 * ) unported=yes ;;
|
0
|
1473 esac
|
|
1474
|
|
1475 ### If the code above didn't choose an operating system, just choose
|
|
1476 ### an operating system based on the configuration name. You really
|
|
1477 ### only want to use this when you have no idea what the right
|
|
1478 ### operating system is; if you know what operating systems a machine
|
|
1479 ### runs, it's cleaner to make it explicit in the case statement
|
|
1480 ### above.
|
70
|
1481 if test -z "${opsys}" ; then
|
0
|
1482 case "${canonical}" in
|
70
|
1483 *-gnu* ) opsys=gnu ;;
|
|
1484 *-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
1485 *-bsd4.2 ) opsys=bsd4-2 ;;
|
|
1486 *-bsd4.3 ) opsys=bsd4-3 ;;
|
74
|
1487 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
|
|
1488 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
|
|
1489 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
1490 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
|
|
1491 *-sysv4.1* | *-sysvr4.1* ) opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
|
0
|
1492 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
70
|
1493 if test -z "$NON_GNU_CPP" ; then
|
|
1494 if test -f /usr/ccs/lib/cpp
|
|
1495 then NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1496 else NON_GNU_CPP=/lib/cpp
|
0
|
1497 fi
|
|
1498 fi
|
|
1499 opsys=usg5-4-2 ;;
|
70
|
1500 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
1501 * ) unported=yes ;;
|
0
|
1502 esac
|
|
1503 fi
|
|
1504
|
70
|
1505 test -z "$RANLIB" && RANLIB=ranlib
|
0
|
1506
|
|
1507 if test ${unported} = yes; then
|
|
1508 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
|
|
1509 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
|
|
1510 ) >&2
|
|
1511 exit 1
|
|
1512 fi
|
|
1513
|
70
|
1514 if test "${dynamic}" = "yes" ; then
|
0
|
1515 case "${opsys}" in
|
72
|
1516 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
0
|
1517 esac
|
70
|
1518 elif test "${dynamic}" = "no" ; then
|
0
|
1519 case "${opsys}" in
|
72
|
1520 sol2* | decosf1-3 | decosf3-* | linux ) opsys="${opsys}-static" ;;
|
0
|
1521 esac
|
|
1522 fi
|
|
1523
|
|
1524 dynodump_arch=''
|
70
|
1525 if test "${need_dynodump}" = "yes" ; then
|
0
|
1526 case "${canonical}" in
|
|
1527 sparc* ) dynodump_arch=sparc ;;
|
|
1528 powerpc* ) dynodump_arch=ppc ;;
|
|
1529 i[3-9]86* ) dynodump_arch=i386 ;;
|
|
1530 esac
|
|
1531 fi
|
|
1532
|
|
1533 machfile="m/${machine}.h"
|
|
1534 opsysfile="s/${opsys}.h"
|
|
1535
|
|
1536
|
|
1537 ############################################################################
|
|
1538 # #
|
|
1539 # Determine the compiler, set up for feature testing #
|
|
1540 # #
|
|
1541 ############################################################################
|
|
1542
|
|
1543
|
70
|
1544
|
|
1545
|
|
1546
|
0
|
1547 ac_ext=c
|
|
1548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
1549 ac_cpp='${CPP}'
|
|
1550 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
|
|
1551
|
|
1552 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
|
|
1553 trap 'rm -fr confdefs* $ac_clean_files' 0
|
|
1554
|
|
1555 # Save the original args if we used an alternate arg parser.
|
|
1556 ac_configure_temp="${configure_args-$*}"
|
|
1557 # Strip out --no-create and --norecursion so they don't pile up.
|
|
1558 configure_args=
|
|
1559 for ac_arg in $ac_configure_temp; do
|
|
1560 case "$ac_arg" in
|
|
1561 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
1562 | --no-cr | --no-c) ;;
|
|
1563 -norecursion | --norecursion | --norecursio | --norecursi \
|
|
1564 | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
|
|
1565 *) configure_args="$configure_args $ac_arg" ;;
|
|
1566 esac
|
|
1567 done
|
|
1568
|
|
1569 # NLS nuisances.
|
|
1570 # These must not be set unconditionally because not all systems understand
|
|
1571 # e.g. LANG=C (notably SCO).
|
|
1572 if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
|
|
1573 if test "${LANG+set}" = 'set'; then LANG=C; export LANG; fi
|
|
1574
|
|
1575 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
1576 rm -rf conftest* confdefs.h
|
|
1577 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
1578 echo > confdefs.h
|
|
1579
|
|
1580 # A filename unique to this package, relative to the directory that
|
|
1581 # configure is in, which we can look for to find out if srcdir is correct.
|
|
1582 ac_unique_file=lisp
|
|
1583
|
|
1584 # Find the source files, if location was not specified.
|
|
1585 if test -z "$srcdir"; then
|
|
1586 ac_srcdir_defaulted=yes
|
|
1587 # Try the directory containing this script, then `..'.
|
|
1588 ac_prog=$0
|
|
1589 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
1590 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
1591 srcdir=$ac_confdir
|
|
1592 if test ! -r $srcdir/$ac_unique_file; then
|
|
1593 srcdir=..
|
|
1594 fi
|
|
1595 fi
|
|
1596 if test ! -r $srcdir/$ac_unique_file; then
|
|
1597 if test x$ac_srcdir_defaulted = xyes; then
|
|
1598 echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
|
|
1599 else
|
|
1600 echo "configure: can not find sources in ${srcdir}" >&2; exit 1
|
|
1601 fi
|
|
1602 fi
|
|
1603 ac_ext=c
|
|
1604 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
1605 ac_cpp='${CPP}'
|
|
1606 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
|
|
1607
|
|
1608
|
|
1609
|
|
1610
|
70
|
1611 if test "${extra_verbose}" = "yes" ; then
|
0
|
1612 # This is identical to the version that A\C_LANG_C generates except that
|
|
1613 # it omits the redirection of all output to /dev/null.
|
|
1614 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS'
|
|
1615 fi
|
|
1616
|
|
1617 #### Choose a compiler.
|
92
|
1618 if test "x$CC" = x ; then
|
0
|
1619 cc_specified=1
|
|
1620 fi
|
|
1621
|
|
1622 # Save the value of CFLAGS that the user specified.
|
|
1623 SPECIFIED_CFLAGS="$CFLAGS"
|
|
1624
|
70
|
1625 if test "${with_gcc}" = "yes" ; then
|
0
|
1626 CC="${compiler-gcc}"
|
|
1627 GCC=1
|
70
|
1628 elif test "${with_lcc}" = "yes" ; then
|
0
|
1629 CC="${compiler-lcc}"
|
|
1630 dash_r_space=' ' # this bullshit is here because lcc for solaris
|
|
1631 # will not accept -Rargument.
|
|
1632 # It needs -R argument instead. Yuck yuck yuck.
|
70
|
1633 test -z "$NON_GNU_CPP" && NON_GNU_CPP="yes" # this is handled specially below...
|
|
1634 elif test "${compiler}" != "" ; then CC="${compiler}"
|
|
1635 elif test "${with_gcc}" = "no" ; then CC="cc"
|
|
1636 elif test "${with_lcc}" = "no" ; then
|
|
1637 test -z "$CC" && CC=cc
|
0
|
1638 else
|
|
1639 case "${canonical}" in
|
|
1640 * )
|
70
|
1641 if test -z "$CC"; then
|
0
|
1642 # Extract the first word of `gcc', so it can be a program name with args.
|
|
1643 set ac_dummy gcc; ac_word=$2
|
|
1644 test -n "$silent" || echo "checking for $ac_word"
|
|
1645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1646 for ac_dir in $PATH; do
|
|
1647 test -z "$ac_dir" && ac_dir=.
|
|
1648 if test -f $ac_dir/$ac_word; then
|
|
1649 CC="gcc"
|
|
1650 break
|
|
1651 fi
|
|
1652 done
|
|
1653 IFS="$ac_save_ifs"
|
|
1654 fi
|
|
1655 test -z "$CC" && CC="cc"
|
|
1656 test -n "$CC" && test -n "$verbose" && echo " setting CC to $CC"
|
|
1657
|
|
1658 # Find out if we are using GNU C, under whatever name.
|
|
1659 cat > conftest.c <<EOF
|
|
1660 #ifdef __GNUC__
|
|
1661 yes
|
|
1662 #endif
|
|
1663 EOF
|
|
1664 ${CC-cc} -E conftest.c > conftest.out 2>&1
|
|
1665 if egrep yes conftest.out >/dev/null 2>&1; then
|
|
1666 GCC=1 # For later tests.
|
|
1667 fi
|
|
1668 rm -f conftest*
|
70
|
1669
|
|
1670 if test "${CC}" = "gcc" ; then
|
0
|
1671 with_gcc="yes"
|
|
1672 GCC=1
|
|
1673 fi
|
|
1674 ;;
|
|
1675 esac
|
|
1676 fi
|
|
1677
|
70
|
1678
|
0
|
1679
|
|
1680 #### Some systems specify a CPP to use unless we are using GCC.
|
|
1681 #### Now that we know whether we are using GCC, we can decide whether
|
|
1682 #### to use that one.
|
70
|
1683 if test "x$NON_GNU_CPP" = x -o x$GCC = x1
|
|
1684 then true
|
0
|
1685 else
|
70
|
1686 if test "x$CPP" = x ; then
|
|
1687 if test "${with_lcc}" = "yes" -a "${NON_GNU_CPP}" = "yes"; then
|
0
|
1688 CPP='gcc -E -traditional' # cross fingers and hope it's there....
|
|
1689 else
|
|
1690 CPP="$NON_GNU_CPP"
|
|
1691 fi
|
|
1692 fi
|
|
1693 fi
|
|
1694
|
|
1695 #### Some systems specify a CC to use unless we are using GCC.
|
|
1696 #### Now that we know whether we are using GCC, we can decide whether
|
|
1697 #### to use that one.
|
70
|
1698 if test "x$NON_GNU_CC" = x -o x$GCC = x1 -o x$cc_specified = x1
|
0
|
1699 then true
|
|
1700 else
|
|
1701 CC="$NON_GNU_CC"
|
|
1702 fi
|
|
1703
|
|
1704 ## Huh? I commented out the following because it always enabled
|
|
1705 ## the "test" options, whatever the hell those are supposed to be
|
|
1706 ## for, and the result is that SunOS builds were always static.
|
|
1707
|
70
|
1708 # test x$GCC = x1 -a "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
|
|
1709 # test x$GCC = x -a "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
|
0
|
1710
|
|
1711 ############################################################################
|
|
1712 # #
|
|
1713 # Do some misc autoconf-special tests #
|
|
1714 # #
|
|
1715 ############################################################################
|
|
1716
|
|
1717 #### Some other nice autoconf tests. If you add a test here which
|
|
1718 #### should make an entry in src/config.h, don't forget to add an
|
|
1719 #### #undef clause to src/config.h.in for autoconf to modify.
|
|
1720
|
|
1721 test -n "$silent" || echo "checking how to run the C preprocessor"
|
|
1722 if test -z "$CPP"; then
|
|
1723 # This must be in double quotes, not single quotes, because CPP may get
|
|
1724 # substituted into the Makefile and ``${CC-cc}'' will simply confuse
|
|
1725 # make. It must be expanded now.
|
|
1726 CPP="${CC-cc} -E"
|
|
1727 cat > conftest.${ac_ext} <<EOF
|
|
1728 #include "confdefs.h"
|
|
1729 #include <stdio.h>
|
|
1730 Syntax Error
|
|
1731 EOF
|
|
1732 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
1733 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
1734 echo "$ac_err"
|
|
1735 fi
|
|
1736 if test -z "$ac_err"; then
|
|
1737 :
|
|
1738 else
|
|
1739 rm -rf conftest*
|
|
1740 CPP="${CC-cc} -E -traditional-cpp"
|
|
1741 cat > conftest.${ac_ext} <<EOF
|
|
1742 #include "confdefs.h"
|
|
1743 #include <stdio.h>
|
|
1744 Syntax Error
|
|
1745 EOF
|
|
1746 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
1747 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
1748 echo "$ac_err"
|
|
1749 fi
|
|
1750 if test -z "$ac_err"; then
|
|
1751 :
|
|
1752 else
|
|
1753 rm -rf conftest*
|
|
1754 CPP=/lib/cpp
|
|
1755 fi
|
|
1756 rm -f conftest*
|
|
1757 fi
|
|
1758 rm -f conftest*
|
|
1759 fi
|
|
1760 test -n "$verbose" && echo " setting CPP to $CPP"
|
|
1761
|
|
1762
|
|
1763 case "${canonical}" in
|
|
1764 *-sun-sunos* )
|
70
|
1765 if test "${CPP}" = "acc -E" ; then
|
0
|
1766 CPP="acc -E -Xs"
|
|
1767 fi
|
|
1768 ;;
|
|
1769 esac
|
|
1770
|
|
1771 if test -z "$RANLIB"; then
|
|
1772 # Extract the first word of `ranlib', so it can be a program name with args.
|
|
1773 set ac_dummy ranlib; ac_word=$2
|
|
1774 test -n "$silent" || echo "checking for $ac_word"
|
|
1775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1776 for ac_dir in $PATH; do
|
|
1777 test -z "$ac_dir" && ac_dir=.
|
|
1778 if test -f $ac_dir/$ac_word; then
|
|
1779 RANLIB="ranlib"
|
|
1780 break
|
|
1781 fi
|
|
1782 done
|
|
1783 IFS="$ac_save_ifs"
|
|
1784 fi
|
|
1785 test -z "$RANLIB" && RANLIB=":"
|
|
1786 test -n "$RANLIB" && test -n "$verbose" && echo " setting RANLIB to $RANLIB"
|
|
1787
|
|
1788 # Make sure to not get the incompatible SysV /etc/install and
|
|
1789 # /usr/sbin/install, which might be in PATH before a BSD-like install,
|
|
1790 # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
|
|
1791 # or the AFS install, which mishandles nonexistent args, or
|
|
1792 # /usr/ucb/install on SVR4, which tries to use the nonexistent group
|
|
1793 # `staff', or /sbin/install on IRIX which has incompatible command-line
|
|
1794 # syntax. Sigh.
|
|
1795 #
|
|
1796 # On most BSDish systems install is in /usr/bin, not /usr/ucb
|
|
1797 # anyway.
|
|
1798 # This turns out not to be true, so the mere pathname isn't an indication
|
|
1799 # of whether the program works. What we really need is a set of tests for
|
|
1800 # the install program to see if it actually works in all the required ways.
|
|
1801 #
|
|
1802 # Avoid using ./install, which might have been erroneously created
|
|
1803 # by make from ./install.sh.
|
|
1804 if test -z "${INSTALL}"; then
|
|
1805 test -n "$silent" || echo "checking for a BSD compatible install"
|
|
1806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1807 for ac_dir in $PATH; do
|
|
1808 case "$ac_dir" in
|
|
1809 ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
|
|
1810 *)
|
|
1811 # OSF1 and SCO ODT 3.0 have their own names for install.
|
|
1812 for ac_prog in installbsd scoinst install; do
|
|
1813 if test -f $ac_dir/$ac_prog; then
|
|
1814 if test $ac_prog = install &&
|
|
1815 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
1816 # AIX install. It has an incompatible calling convention.
|
|
1817 # OSF/1 installbsd also uses dspmsg, but is usable.
|
|
1818 :
|
|
1819 else
|
|
1820 INSTALL="$ac_dir/$ac_prog -c"
|
|
1821 break 2
|
|
1822 fi
|
|
1823 fi
|
|
1824 done
|
|
1825 ;;
|
|
1826 esac
|
|
1827 done
|
|
1828 IFS="$ac_save_ifs"
|
|
1829 fi
|
|
1830
|
|
1831 if test -z "$INSTALL"; then
|
|
1832 # As a last resort, use the slow shell script.
|
|
1833 for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
|
|
1834 if test -f $ac_dir/install.sh; then
|
|
1835 INSTALL="$ac_dir/install.sh -c"; break
|
|
1836 fi
|
|
1837 done
|
|
1838 fi
|
|
1839 if test -z "$INSTALL"; then
|
|
1840 echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
|
|
1841 fi
|
|
1842 test -n "$verbose" && echo " setting INSTALL to $INSTALL"
|
|
1843
|
|
1844 # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
|
|
1845 # It thinks the first close brace ends the variable substitution.
|
|
1846 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
1847 test -n "$verbose" && echo " setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
|
|
1848
|
|
1849 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
1850 test -n "$verbose" && echo " setting INSTALL_DATA to $INSTALL_DATA"
|
|
1851
|
|
1852 for ac_prog in 'bison -y' byacc
|
|
1853 do
|
|
1854 if test -z "$YACC"; then
|
|
1855 # Extract the first word of `$ac_prog', so it can be a program name with args.
|
|
1856 set ac_dummy $ac_prog; ac_word=$2
|
|
1857 test -n "$silent" || echo "checking for $ac_word"
|
|
1858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1859 for ac_dir in $PATH; do
|
|
1860 test -z "$ac_dir" && ac_dir=.
|
|
1861 if test -f $ac_dir/$ac_word; then
|
|
1862 YACC="$ac_prog"
|
|
1863 break
|
|
1864 fi
|
|
1865 done
|
|
1866 IFS="$ac_save_ifs"
|
|
1867 fi
|
|
1868
|
|
1869 test -n "$YACC" && test -n "$verbose" && echo " setting YACC to $YACC"
|
|
1870
|
|
1871 test -n "$YACC" && break
|
|
1872 done
|
|
1873 test -n "$YACC" || YACC="yacc"
|
|
1874
|
|
1875
|
|
1876 test -n "$silent" || echo "checking for AIX"
|
|
1877 cat > conftest.${ac_ext} <<EOF
|
|
1878 #include "confdefs.h"
|
|
1879 #ifdef _AIX
|
|
1880 yes
|
|
1881 #endif
|
|
1882
|
|
1883 EOF
|
|
1884 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
1885 if egrep "yes" conftest.out >/dev/null 2>&1; then
|
|
1886 rm -rf conftest*
|
|
1887
|
|
1888 {
|
|
1889 test -n "$verbose" && \
|
|
1890 echo " defining _ALL_SOURCE"
|
|
1891 echo "#define" _ALL_SOURCE "1" >> confdefs.h
|
|
1892 DEFS="$DEFS -D_ALL_SOURCE=1"
|
|
1893 ac_sed_defs="${ac_sed_defs}\${ac_dA}_ALL_SOURCE\${ac_dB}_ALL_SOURCE\${ac_dC}1\${ac_dD}
|
|
1894 \${ac_uA}_ALL_SOURCE\${ac_uB}_ALL_SOURCE\${ac_uC}1\${ac_uD}
|
|
1895 \${ac_eA}_ALL_SOURCE\${ac_eB}_ALL_SOURCE\${ac_eC}1\${ac_eD}
|
|
1896 "
|
|
1897 }
|
|
1898
|
|
1899
|
|
1900 fi
|
|
1901 rm -f conftest*
|
|
1902
|
|
1903
|
|
1904
|
70
|
1905 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h utime.h sys/wait.h libintl.h locale.h libgen.h linux/version.h kstat.h sys/pstat.h
|
0
|
1906 do
|
|
1907 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
|
|
1908 test -n "$silent" || echo "checking for ${ac_hdr}"
|
|
1909 cat > conftest.${ac_ext} <<EOF
|
|
1910 #include "confdefs.h"
|
|
1911 #include <${ac_hdr}>
|
|
1912 EOF
|
|
1913 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
1914 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
1915 echo "$ac_err"
|
|
1916 fi
|
|
1917 if test -z "$ac_err"; then
|
|
1918 rm -rf conftest*
|
|
1919
|
|
1920 {
|
|
1921 test -n "$verbose" && \
|
|
1922 echo " defining ${ac_tr_hdr}"
|
|
1923 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
|
|
1924 DEFS="$DEFS -D${ac_tr_hdr}=1"
|
|
1925 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
|
|
1926 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
|
|
1927 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
|
|
1928 "
|
|
1929 }
|
|
1930
|
|
1931
|
|
1932 fi
|
|
1933 rm -f conftest*
|
|
1934 done
|
|
1935
|
|
1936 test -n "$silent" || echo "checking for ANSI C header files"
|
|
1937 cat > conftest.${ac_ext} <<EOF
|
|
1938 #include "confdefs.h"
|
|
1939 #include <stdlib.h>
|
|
1940 #include <stdarg.h>
|
|
1941 #include <string.h>
|
|
1942 #include <float.h>
|
|
1943 EOF
|
|
1944 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
1945 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
1946 echo "$ac_err"
|
|
1947 fi
|
|
1948 if test -z "$ac_err"; then
|
|
1949 rm -rf conftest*
|
|
1950 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
1951 echo '#include "confdefs.h"
|
|
1952 #include <string.h>' > conftest.${ac_ext}
|
|
1953 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
1954 if egrep "memchr" conftest.out >/dev/null 2>&1; then
|
|
1955 rm -rf conftest*
|
|
1956 # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
1957 cat > conftest.${ac_ext} <<EOF
|
|
1958 #include "confdefs.h"
|
|
1959 #include <ctype.h>
|
|
1960 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
1961 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
1962 #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
|
|
1963 int main () { int i; for (i = 0; i < 256; i++)
|
|
1964 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
1965 exit (0); }
|
|
1966
|
|
1967 EOF
|
|
1968 eval $ac_compile
|
|
1969 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
1970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
1971 echo '#include "confdefs.h"
|
|
1972 #include <stdlib.h>' > conftest.${ac_ext}
|
|
1973 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
1974 if egrep "free" conftest.out >/dev/null 2>&1; then
|
|
1975 rm -rf conftest*
|
|
1976
|
|
1977 {
|
|
1978 test -n "$verbose" && \
|
|
1979 echo " defining STDC_HEADERS"
|
|
1980 echo "#define" STDC_HEADERS "1" >> confdefs.h
|
|
1981 DEFS="$DEFS -DSTDC_HEADERS=1"
|
|
1982 ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
|
|
1983 \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
|
|
1984 \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
|
|
1985 "
|
|
1986 }
|
|
1987
|
|
1988
|
|
1989 fi
|
|
1990 rm -f conftest*
|
|
1991
|
|
1992
|
|
1993 fi
|
|
1994 rm -fr conftest*
|
|
1995
|
|
1996 fi
|
|
1997 rm -f conftest*
|
|
1998
|
|
1999
|
|
2000 fi
|
|
2001 rm -f conftest*
|
|
2002
|
|
2003 test -n "$silent" || echo "checking for whether time.h and sys/time.h may both be included"
|
|
2004 cat > conftest.${ac_ext} <<EOF
|
|
2005 #include "confdefs.h"
|
|
2006 #include <sys/types.h>
|
|
2007 #include <sys/time.h>
|
|
2008 #include <time.h>
|
|
2009 int main() { return 0; }
|
|
2010 int t() { struct tm *tp;; return 0; }
|
|
2011 EOF
|
|
2012 if eval $ac_compile; then
|
|
2013 rm -rf conftest*
|
|
2014
|
|
2015 {
|
|
2016 test -n "$verbose" && \
|
|
2017 echo " defining TIME_WITH_SYS_TIME"
|
|
2018 echo "#define" TIME_WITH_SYS_TIME "1" >> confdefs.h
|
|
2019 DEFS="$DEFS -DTIME_WITH_SYS_TIME=1"
|
|
2020 ac_sed_defs="${ac_sed_defs}\${ac_dA}TIME_WITH_SYS_TIME\${ac_dB}TIME_WITH_SYS_TIME\${ac_dC}1\${ac_dD}
|
|
2021 \${ac_uA}TIME_WITH_SYS_TIME\${ac_uB}TIME_WITH_SYS_TIME\${ac_uC}1\${ac_uD}
|
|
2022 \${ac_eA}TIME_WITH_SYS_TIME\${ac_eB}TIME_WITH_SYS_TIME\${ac_eC}1\${ac_eD}
|
|
2023 "
|
|
2024 }
|
|
2025
|
|
2026
|
|
2027 fi
|
|
2028 rm -f conftest*
|
|
2029
|
|
2030 test -n "$silent" || echo "checking for sys_siglist declaration in signal.h or unistd.h"
|
|
2031 cat > conftest.${ac_ext} <<EOF
|
|
2032 #include "confdefs.h"
|
|
2033 #include <signal.h>
|
|
2034 /* NetBSD declares sys_siglist in <unistd.h>. */
|
|
2035 #ifdef HAVE_UNISTD_H
|
|
2036 #include <unistd.h>
|
|
2037 #endif
|
|
2038 int main() { return 0; }
|
|
2039 int t() { char *msg = *(sys_siglist + 1);; return 0; }
|
|
2040 EOF
|
|
2041 if eval $ac_compile; then
|
|
2042 rm -rf conftest*
|
|
2043
|
|
2044 {
|
|
2045 test -n "$verbose" && \
|
|
2046 echo " defining SYS_SIGLIST_DECLARED"
|
|
2047 echo "#define" SYS_SIGLIST_DECLARED "1" >> confdefs.h
|
|
2048 DEFS="$DEFS -DSYS_SIGLIST_DECLARED=1"
|
|
2049 ac_sed_defs="${ac_sed_defs}\${ac_dA}SYS_SIGLIST_DECLARED\${ac_dB}SYS_SIGLIST_DECLARED\${ac_dC}1\${ac_dD}
|
|
2050 \${ac_uA}SYS_SIGLIST_DECLARED\${ac_uB}SYS_SIGLIST_DECLARED\${ac_uC}1\${ac_uD}
|
|
2051 \${ac_eA}SYS_SIGLIST_DECLARED\${ac_eB}SYS_SIGLIST_DECLARED\${ac_eC}1\${ac_eD}
|
|
2052 "
|
|
2053 }
|
|
2054
|
|
2055
|
|
2056 fi
|
|
2057 rm -f conftest*
|
|
2058
|
|
2059
|
|
2060 test -n "$silent" || echo "checking for struct utimbuf"
|
|
2061 cat > conftest.${ac_ext} <<EOF
|
|
2062 #include "confdefs.h"
|
|
2063 #ifdef TIME_WITH_SYS_TIME
|
|
2064 #include <sys/time.h>
|
|
2065 #include <time.h>
|
|
2066 #else
|
|
2067 #ifdef HAVE_SYS_TIME_H
|
|
2068 #include <sys/time.h>
|
|
2069 #else
|
|
2070 #include <time.h>
|
|
2071 #endif
|
|
2072 #endif
|
|
2073 #ifdef HAVE_UTIME_H
|
|
2074 #include <utime.h>
|
|
2075 #endif
|
|
2076 int main() { return 0; }
|
|
2077 int t() { static struct utimbuf x; x.actime = x.modtime;; return 0; }
|
|
2078 EOF
|
|
2079 if eval $ac_compile; then
|
|
2080 rm -rf conftest*
|
|
2081
|
|
2082 {
|
|
2083 test -n "$verbose" && \
|
|
2084 echo " defining HAVE_STRUCT_UTIMBUF"
|
|
2085 echo "#define" HAVE_STRUCT_UTIMBUF "1" >> confdefs.h
|
|
2086 DEFS="$DEFS -DHAVE_STRUCT_UTIMBUF=1"
|
|
2087 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRUCT_UTIMBUF\${ac_dB}HAVE_STRUCT_UTIMBUF\${ac_dC}1\${ac_dD}
|
|
2088 \${ac_uA}HAVE_STRUCT_UTIMBUF\${ac_uB}HAVE_STRUCT_UTIMBUF\${ac_uC}1\${ac_uD}
|
|
2089 \${ac_eA}HAVE_STRUCT_UTIMBUF\${ac_eB}HAVE_STRUCT_UTIMBUF\${ac_eC}1\${ac_eD}
|
|
2090 "
|
|
2091 }
|
|
2092
|
|
2093
|
|
2094 fi
|
|
2095 rm -f conftest*
|
|
2096
|
|
2097
|
|
2098 test -n "$silent" || echo "checking for return type of signal handlers"
|
|
2099 cat > conftest.${ac_ext} <<EOF
|
|
2100 #include "confdefs.h"
|
|
2101 #include <sys/types.h>
|
|
2102 #include <signal.h>
|
|
2103 #ifdef signal
|
|
2104 #undef signal
|
|
2105 #endif
|
|
2106 extern void (*signal ()) ();
|
|
2107 int main() { return 0; }
|
|
2108 int t() { int i;; return 0; }
|
|
2109 EOF
|
|
2110 if eval $ac_compile; then
|
|
2111 rm -rf conftest*
|
|
2112
|
|
2113 {
|
|
2114 test -n "$verbose" && \
|
|
2115 echo " defining" RETSIGTYPE to be "void"
|
|
2116 echo "#define" RETSIGTYPE "void" >> confdefs.h
|
|
2117 DEFS="$DEFS -DRETSIGTYPE=void"
|
|
2118 ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
|
|
2119 \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
|
|
2120 \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
|
|
2121 "
|
|
2122 }
|
|
2123
|
|
2124
|
|
2125 else
|
|
2126 rm -rf conftest*
|
|
2127
|
|
2128 {
|
|
2129 test -n "$verbose" && \
|
|
2130 echo " defining" RETSIGTYPE to be "int"
|
|
2131 echo "#define" RETSIGTYPE "int" >> confdefs.h
|
|
2132 DEFS="$DEFS -DRETSIGTYPE=int"
|
|
2133 ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
|
|
2134 \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
|
|
2135 \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
|
|
2136 "
|
|
2137 }
|
|
2138
|
|
2139 fi
|
|
2140 rm -f conftest*
|
|
2141
|
|
2142
|
|
2143
|
|
2144 test -n "$silent" || echo "checking for struct timeval"
|
|
2145 cat > conftest.${ac_ext} <<EOF
|
|
2146 #include "confdefs.h"
|
|
2147 #ifdef TIME_WITH_SYS_TIME
|
|
2148 #include <sys/time.h>
|
|
2149 #include <time.h>
|
|
2150 #else
|
|
2151 #ifdef HAVE_SYS_TIME_H
|
|
2152 #include <sys/time.h>
|
|
2153 #else
|
|
2154 #include <time.h>
|
|
2155 #endif
|
|
2156 #endif
|
|
2157 int main() { return 0; }
|
|
2158 int t() { static struct timeval x; x.tv_sec = x.tv_usec;; return 0; }
|
|
2159 EOF
|
|
2160 if eval $ac_compile; then
|
|
2161 rm -rf conftest*
|
|
2162
|
|
2163 HAVE_TIMEVAL=yes
|
|
2164
|
|
2165 {
|
|
2166 test -n "$verbose" && \
|
|
2167 echo " defining HAVE_TIMEVAL"
|
|
2168 echo "#define" HAVE_TIMEVAL "1" >> confdefs.h
|
|
2169 DEFS="$DEFS -DHAVE_TIMEVAL=1"
|
|
2170 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TIMEVAL\${ac_dB}HAVE_TIMEVAL\${ac_dC}1\${ac_dD}
|
|
2171 \${ac_uA}HAVE_TIMEVAL\${ac_uB}HAVE_TIMEVAL\${ac_uC}1\${ac_uD}
|
|
2172 \${ac_eA}HAVE_TIMEVAL\${ac_eB}HAVE_TIMEVAL\${ac_eC}1\${ac_eD}
|
|
2173 "
|
|
2174 }
|
|
2175
|
|
2176
|
|
2177 else
|
|
2178 rm -rf conftest*
|
|
2179 HAVE_TIMEVAL=no
|
|
2180 fi
|
|
2181 rm -f conftest*
|
|
2182
|
|
2183
|
|
2184 test -n "$silent" || echo "checking for struct tm in time.h"
|
|
2185 cat > conftest.${ac_ext} <<EOF
|
|
2186 #include "confdefs.h"
|
|
2187 #include <sys/types.h>
|
|
2188 #include <time.h>
|
|
2189 int main() { return 0; }
|
|
2190 int t() { struct tm *tp; tp->tm_sec;; return 0; }
|
|
2191 EOF
|
|
2192 if eval $ac_compile; then
|
|
2193 :
|
|
2194 else
|
|
2195 rm -rf conftest*
|
|
2196
|
|
2197 {
|
|
2198 test -n "$verbose" && \
|
|
2199 echo " defining TM_IN_SYS_TIME"
|
|
2200 echo "#define" TM_IN_SYS_TIME "1" >> confdefs.h
|
|
2201 DEFS="$DEFS -DTM_IN_SYS_TIME=1"
|
|
2202 ac_sed_defs="${ac_sed_defs}\${ac_dA}TM_IN_SYS_TIME\${ac_dB}TM_IN_SYS_TIME\${ac_dC}1\${ac_dD}
|
|
2203 \${ac_uA}TM_IN_SYS_TIME\${ac_uB}TM_IN_SYS_TIME\${ac_uC}1\${ac_uD}
|
|
2204 \${ac_eA}TM_IN_SYS_TIME\${ac_eB}TM_IN_SYS_TIME\${ac_eC}1\${ac_eD}
|
|
2205 "
|
|
2206 }
|
|
2207
|
|
2208 fi
|
|
2209 rm -f conftest*
|
|
2210
|
|
2211 ac_decl='#include <sys/types.h>
|
|
2212 '
|
|
2213 case "$DEFS" in
|
|
2214 *TM_IN_SYS_TIME*) ac_decl="$ac_decl
|
|
2215 #include <sys/time.h>
|
|
2216 " ;;
|
|
2217 *) ac_decl="$ac_decl
|
|
2218 #include <time.h>
|
|
2219 " ;;
|
|
2220 esac
|
|
2221 test -n "$silent" || echo "checking for tm_zone in struct tm"
|
|
2222 cat > conftest.${ac_ext} <<EOF
|
|
2223 #include "confdefs.h"
|
|
2224 $ac_decl
|
|
2225 int main() { return 0; }
|
|
2226 int t() { struct tm tm; tm.tm_zone;; return 0; }
|
|
2227 EOF
|
|
2228 if eval $ac_compile; then
|
|
2229 rm -rf conftest*
|
|
2230
|
|
2231 {
|
|
2232 test -n "$verbose" && \
|
|
2233 echo " defining HAVE_TM_ZONE"
|
|
2234 echo "#define" HAVE_TM_ZONE "1" >> confdefs.h
|
|
2235 DEFS="$DEFS -DHAVE_TM_ZONE=1"
|
|
2236 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TM_ZONE\${ac_dB}HAVE_TM_ZONE\${ac_dC}1\${ac_dD}
|
|
2237 \${ac_uA}HAVE_TM_ZONE\${ac_uB}HAVE_TM_ZONE\${ac_uC}1\${ac_uD}
|
|
2238 \${ac_eA}HAVE_TM_ZONE\${ac_eB}HAVE_TM_ZONE\${ac_eC}1\${ac_eD}
|
|
2239 "
|
|
2240 }
|
|
2241
|
|
2242
|
|
2243 else
|
|
2244 rm -rf conftest*
|
|
2245 ac_no_tm_zone=1
|
|
2246 fi
|
|
2247 rm -f conftest*
|
|
2248
|
|
2249 if test -n "$ac_no_tm_zone"; then
|
|
2250 test -n "$silent" || echo "checking for tzname"
|
|
2251 cat > conftest.${ac_ext} <<EOF
|
|
2252 #include "confdefs.h"
|
|
2253 #include <time.h>
|
|
2254 #ifndef tzname /* For SGI. */
|
|
2255 extern char *tzname[]; /* RS6000 and others want it this way. */
|
|
2256 #endif
|
|
2257 int main() { return 0; }
|
|
2258 int t() { atoi(*tzname);; return 0; }
|
|
2259 EOF
|
|
2260 if eval $ac_compile; then
|
|
2261 rm -rf conftest*
|
|
2262
|
|
2263 {
|
|
2264 test -n "$verbose" && \
|
|
2265 echo " defining HAVE_TZNAME"
|
|
2266 echo "#define" HAVE_TZNAME "1" >> confdefs.h
|
|
2267 DEFS="$DEFS -DHAVE_TZNAME=1"
|
|
2268 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TZNAME\${ac_dB}HAVE_TZNAME\${ac_dC}1\${ac_dD}
|
|
2269 \${ac_uA}HAVE_TZNAME\${ac_uB}HAVE_TZNAME\${ac_uC}1\${ac_uD}
|
|
2270 \${ac_eA}HAVE_TZNAME\${ac_eB}HAVE_TZNAME\${ac_eC}1\${ac_eD}
|
|
2271 "
|
|
2272 }
|
|
2273
|
|
2274
|
|
2275 fi
|
|
2276 rm -f conftest*
|
|
2277
|
|
2278 fi
|
|
2279
|
|
2280
|
|
2281 ac_prog='/* Ultrix mips cc rejects this. */
|
|
2282 typedef int charset[2]; const charset x;
|
|
2283 /* SunOS 4.1.1 cc rejects this. */
|
|
2284 char const *const *ccp;
|
|
2285 char **p;
|
|
2286 /* AIX XL C 1.02.0.0 rejects this.
|
|
2287 It does not let you subtract one const X* pointer from another in an arm
|
|
2288 of an if-expression whose if-part is not a constant expression */
|
|
2289 const char *g = "string";
|
|
2290 ccp = &g + (g ? g-g : 0);
|
|
2291 /* HPUX 7.0 cc rejects these. */
|
|
2292 ++ccp;
|
|
2293 p = (char**) ccp;
|
|
2294 ccp = (char const *const *) p;
|
|
2295 { /* SCO 3.2v4 cc rejects this. */
|
|
2296 char *t;
|
|
2297 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
2298
|
|
2299 *t++ = 0;
|
|
2300 }
|
|
2301 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
2302 int x[] = {25,17};
|
|
2303 const int *foo = &x[0];
|
|
2304 ++foo;
|
|
2305 }
|
|
2306 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
2307 typedef const int *iptr;
|
|
2308 iptr p = 0;
|
|
2309 ++p;
|
|
2310 }
|
|
2311 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
2312 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
2313 struct s { int j; const int *ap[3]; };
|
|
2314 struct s *b; b->j = 5;
|
|
2315 }
|
|
2316 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
2317 const int foo = 10;
|
|
2318 }'
|
|
2319 test -n "$silent" || echo "checking for lack of working const"
|
|
2320 cat > conftest.${ac_ext} <<EOF
|
|
2321 #include "confdefs.h"
|
|
2322
|
|
2323 int main() { return 0; }
|
|
2324 int t() { $ac_prog; return 0; }
|
|
2325 EOF
|
|
2326 if eval $ac_compile; then
|
|
2327 :
|
|
2328 else
|
|
2329 rm -rf conftest*
|
|
2330
|
|
2331 {
|
|
2332 test -n "$verbose" && \
|
|
2333 echo " defining" const to be empty
|
|
2334 echo "#define" const "" >> confdefs.h
|
|
2335 DEFS="$DEFS -Dconst="
|
|
2336 ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
|
|
2337 \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
|
|
2338 \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
|
|
2339 "
|
|
2340 }
|
|
2341
|
|
2342 fi
|
|
2343 rm -f conftest*
|
|
2344
|
|
2345
|
|
2346 cat > conftestmake <<'EOF'
|
|
2347 all:
|
|
2348 @echo 'ac_maketemp="${MAKE}"'
|
|
2349 EOF
|
|
2350 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
2351 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|
2352 if test -n "$ac_maketemp"; then SET_MAKE=
|
|
2353 else SET_MAKE="MAKE=${MAKE-make}"; fi
|
|
2354 rm -f conftestmake
|
|
2355
|
|
2356
|
|
2357 test -n "$silent" || echo "checking byte ordering"
|
|
2358 cat > conftest.${ac_ext} <<EOF
|
|
2359 #include "confdefs.h"
|
|
2360 main () {
|
|
2361 /* Are we little or big endian? From Harbison&Steele. */
|
|
2362 union
|
|
2363 {
|
|
2364 long l;
|
|
2365 char c[sizeof (long)];
|
|
2366 } u;
|
|
2367 u.l = 1;
|
|
2368 exit (u.c[sizeof (long) - 1] == 1);
|
|
2369 }
|
|
2370 EOF
|
|
2371 eval $ac_compile
|
|
2372 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
2373 :
|
|
2374 else
|
|
2375
|
|
2376 {
|
|
2377 test -n "$verbose" && \
|
|
2378 echo " defining WORDS_BIGENDIAN"
|
|
2379 echo "#define" WORDS_BIGENDIAN "1" >> confdefs.h
|
|
2380 DEFS="$DEFS -DWORDS_BIGENDIAN=1"
|
|
2381 ac_sed_defs="${ac_sed_defs}\${ac_dA}WORDS_BIGENDIAN\${ac_dB}WORDS_BIGENDIAN\${ac_dC}1\${ac_dD}
|
|
2382 \${ac_uA}WORDS_BIGENDIAN\${ac_uB}WORDS_BIGENDIAN\${ac_uC}1\${ac_uD}
|
|
2383 \${ac_eA}WORDS_BIGENDIAN\${ac_eB}WORDS_BIGENDIAN\${ac_eC}1\${ac_eD}
|
|
2384 "
|
|
2385 }
|
|
2386
|
|
2387 fi
|
|
2388 rm -fr conftest*
|
|
2389
|
|
2390
|
|
2391 test -n "$silent" || echo "checking for long file names"
|
|
2392 ac_some_dir_failed=false
|
|
2393 # Test for long file names in all the places we know might matter:
|
|
2394 # . the current directory, where building will happen
|
|
2395 # /tmp where it might want to write temporary files
|
|
2396 # /var/tmp likewise
|
|
2397 # /usr/tmp likewise
|
|
2398 # $prefix/lib where we will be installing things
|
|
2399 # $exec_prefix/lib likewise
|
|
2400 # eval it to expand exec_prefix.
|
|
2401 for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do
|
|
2402 test -d $ac_dir || continue
|
|
2403 test -w $ac_dir || continue # It's less confusing to not echo anything here.
|
|
2404 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
|
|
2405 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
|
|
2406 val=`cat $ac_dir/conftest9012345 2>/dev/null`
|
|
2407 test -f $ac_dir/conftest9012345 && test "$val" = 1 || ac_some_dir_failed=true
|
|
2408 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2> /dev/null
|
|
2409 done
|
|
2410 $ac_some_dir_failed ||
|
|
2411 {
|
|
2412 test -n "$verbose" && \
|
|
2413 echo " defining HAVE_LONG_FILE_NAMES"
|
|
2414 echo "#define" HAVE_LONG_FILE_NAMES "1" >> confdefs.h
|
|
2415 DEFS="$DEFS -DHAVE_LONG_FILE_NAMES=1"
|
|
2416 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_FILE_NAMES\${ac_dB}HAVE_LONG_FILE_NAMES\${ac_dC}1\${ac_dD}
|
|
2417 \${ac_uA}HAVE_LONG_FILE_NAMES\${ac_uB}HAVE_LONG_FILE_NAMES\${ac_uC}1\${ac_uD}
|
|
2418 \${ac_eA}HAVE_LONG_FILE_NAMES\${ac_eB}HAVE_LONG_FILE_NAMES\${ac_eC}1\${ac_eD}
|
|
2419 "
|
|
2420 }
|
|
2421
|
|
2422
|
|
2423
|
|
2424 echo "checking for -xildoff compiler flag"
|
|
2425 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
2426 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
2427 :
|
|
2428 else
|
|
2429 test -n "$verbose" && echo " defining NEED_XILDOFF"
|
|
2430 need_xildoff=yes
|
|
2431 fi
|
|
2432 fi
|
|
2433
|
|
2434
|
|
2435 # What the hell was this doing here??????
|
|
2436 ### echo > confdefs.h # this gets nuked above...
|
|
2437
|
|
2438 ############################################################################
|
|
2439 # #
|
|
2440 # Choose a window system #
|
|
2441 # #
|
|
2442 ############################################################################
|
|
2443
|
|
2444 #### Choose a window system.
|
|
2445 echo "checking for specified window system"
|
|
2446
|
|
2447 window_system=''
|
70
|
2448 case "${with_x11}" in
|
|
2449 yes ) window_system=${window_system}x11 ;;
|
|
2450 no ) window_system=${window_system}none ;;
|
0
|
2451 esac
|
|
2452
|
|
2453 case "${window_system}" in
|
|
2454 "none" | "x11" ) ;;
|
|
2455 "" )
|
|
2456 # --x-includes or --x-libraries implies --with-x11.
|
70
|
2457 if test -n "${x_includes}" -o -n "${x_libraries}"; then
|
0
|
2458 window_system=x11
|
|
2459 else
|
|
2460 echo " No window system specified. Looking for X11."
|
|
2461 # If the user didn't specify a window system and we found X11, use it.
|
70
|
2462 if test -r /usr/lib/libX11.a \
|
0
|
2463 -o -d /usr/include/X11 \
|
|
2464 -o -d /usr/X386/include \
|
|
2465 -o -d /usr/X11R6/include \
|
70
|
2466 -o -d ${x_includes}/X11 ; then
|
0
|
2467 window_system=x11
|
|
2468 fi
|
|
2469 fi
|
|
2470 ;;
|
|
2471 * )
|
|
2472 echo "Don't specify a window system more than once." >&2
|
|
2473 exit 1
|
|
2474 ;;
|
|
2475 esac
|
|
2476
|
70
|
2477
|
|
2478 case "${window_system}" in "" | "x11" )
|
0
|
2479 ### If the user hasn't specified where we should find X, try
|
|
2480 ### letting autoconf figure that out.
|
70
|
2481 if test -z "${x_includes}${x_libraries}" ; then
|
|
2482 # If we find X, set shell vars x_includes and x_libraries to the paths.
|
0
|
2483 no_x=true
|
|
2484 if test "x$with_x" != xno; then
|
|
2485 test -n "$silent" || echo "checking for X include and library files with xmkmf"
|
|
2486 rm -fr conftestdir
|
|
2487 if mkdir conftestdir; then
|
|
2488 cd conftestdir
|
|
2489 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
2490 cat > Imakefile <<'EOF'
|
|
2491 acfindx:
|
|
2492 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
2493 EOF
|
|
2494 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
2495 no_x=
|
|
2496 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
2497 eval `make acfindx 2>/dev/null | grep -v make`
|
|
2498 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
|
2499 if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
|
|
2500 then
|
|
2501 ac_im_usrlibdir=$ac_im_libdir
|
|
2502 fi
|
|
2503 case "$ac_im_incroot" in
|
|
2504 /usr/include) ;;
|
|
2505 *) test -z "$x_includes" && x_includes="$ac_im_incroot" ;;
|
|
2506 esac
|
|
2507 case "$ac_im_usrlibdir" in
|
|
2508 /usr/lib | /lib) ;;
|
|
2509 *) test -z "$x_libraries" && x_libraries="$ac_im_usrlibdir" ;;
|
|
2510 esac
|
|
2511 fi
|
|
2512 cd ..
|
|
2513 rm -fr conftestdir
|
|
2514 fi
|
|
2515
|
|
2516 if test -z "$ac_im_usrlibdir"; then
|
|
2517 test -n "$silent" || echo "checking for X include and library files directly"
|
|
2518 if test ".$x_direct_test_library" = . ; then
|
|
2519 x_direct_test_library='Xt'
|
|
2520 fi
|
|
2521 if test ".$x_direct_test_include" = . ; then
|
|
2522 x_direct_test_include='X11/Intrinsic.h'
|
|
2523 fi
|
|
2524 cat > conftest.${ac_ext} <<EOF
|
|
2525 #include "confdefs.h"
|
|
2526 #include <$x_direct_test_include>
|
|
2527 EOF
|
|
2528 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
2529 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
2530 echo "$ac_err"
|
|
2531 fi
|
|
2532 if test -z "$ac_err"; then
|
|
2533 rm -rf conftest*
|
|
2534 no_x=
|
|
2535
|
|
2536 else
|
|
2537 rm -rf conftest*
|
|
2538 for ac_dir in \
|
|
2539 /usr/X11R6/include \
|
|
2540 /usr/X11R5/include \
|
|
2541 /usr/X11R4/include \
|
|
2542 \
|
|
2543 /usr/include/X11R6 \
|
|
2544 /usr/include/X11R5 \
|
|
2545 /usr/include/X11R4 \
|
|
2546 \
|
|
2547 /usr/local/X11R6/include \
|
|
2548 /usr/local/X11R5/include \
|
|
2549 /usr/local/X11R4/include \
|
|
2550 \
|
|
2551 /usr/local/include/X11R6 \
|
|
2552 /usr/local/include/X11R5 \
|
|
2553 /usr/local/include/X11R4 \
|
|
2554 \
|
|
2555 /usr/X11/include \
|
|
2556 /usr/include/X11 \
|
|
2557 /usr/local/X11/include \
|
|
2558 /usr/local/include/X11 \
|
|
2559 \
|
|
2560 /usr/X386/include \
|
|
2561 /usr/x386/include \
|
|
2562 /usr/XFree86/include/X11 \
|
|
2563 \
|
|
2564 /usr/include \
|
|
2565 /usr/local/include \
|
|
2566 /usr/unsupported/include \
|
|
2567 /usr/athena/include \
|
|
2568 /usr/local/x11r5/include \
|
|
2569 /usr/lpp/Xamples/include \
|
|
2570 \
|
|
2571 /usr/openwin/include \
|
|
2572 /usr/openwin/share/include \
|
|
2573 ; \
|
|
2574 do
|
|
2575 if test -r "$ac_dir/$x_direct_test_include"; then
|
|
2576 test -z "$x_includes" && x_includes=$ac_dir
|
|
2577 no_x=
|
|
2578 break
|
|
2579 fi
|
|
2580 done
|
|
2581 fi
|
|
2582 rm -f conftest*
|
|
2583
|
|
2584 # Check for the libraries. First see if replacing the `include' by
|
|
2585 # `lib' works.
|
|
2586 ac_save_LIBS="${LIBS}"
|
|
2587 LIBS="${LIBS} -l"$x_direct_test_library""
|
|
2588 ac_have_lib=""
|
|
2589 test -n "$silent" || echo "checking for -l"$x_direct_test_library""
|
|
2590 cat > conftest.${ac_ext} <<EOF
|
|
2591 #include "confdefs.h"
|
|
2592
|
|
2593 int main() { return 0; }
|
|
2594 int t() { main();; return 0; }
|
|
2595 EOF
|
|
2596 if eval $ac_compile; then
|
|
2597 rm -rf conftest*
|
|
2598 ac_have_lib="1"
|
|
2599
|
|
2600 fi
|
|
2601 rm -f conftest*
|
|
2602 LIBS="${ac_save_LIBS}"
|
|
2603 if test -n "${ac_have_lib}"; then
|
|
2604 :; no_x=
|
|
2605 else
|
|
2606 :; for ac_dir in `echo "$x_includes" | sed s/include/lib/` \
|
|
2607 /usr/X11R6/lib \
|
|
2608 /usr/X11R5/lib \
|
|
2609 /usr/X11R4/lib \
|
|
2610 \
|
|
2611 /usr/lib/X11R6 \
|
|
2612 /usr/lib/X11R5 \
|
|
2613 /usr/lib/X11R4 \
|
|
2614 \
|
|
2615 /usr/local/X11R6/lib \
|
|
2616 /usr/local/X11R5/lib \
|
|
2617 /usr/local/X11R4/lib \
|
|
2618 \
|
|
2619 /usr/local/lib/X11R6 \
|
|
2620 /usr/local/lib/X11R5 \
|
|
2621 /usr/local/lib/X11R4 \
|
|
2622 \
|
|
2623 /usr/X11/lib \
|
|
2624 /usr/lib/X11 \
|
|
2625 /usr/local/X11/lib \
|
|
2626 /usr/local/lib/X11 \
|
|
2627 \
|
|
2628 /usr/X386/lib \
|
|
2629 /usr/x386/lib \
|
|
2630 /usr/XFree86/lib/X11 \
|
|
2631 \
|
|
2632 /usr/lib \
|
|
2633 /usr/local/lib \
|
|
2634 /usr/unsupported/lib \
|
|
2635 /usr/athena/lib \
|
|
2636 /usr/local/x11r5/lib \
|
|
2637 /usr/lpp/Xamples/lib \
|
|
2638 \
|
|
2639 /usr/openwin/lib \
|
|
2640 /usr/openwin/share/lib \
|
|
2641 ; \
|
|
2642 do
|
|
2643 for ac_extension in a so sl; do
|
|
2644 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
|
2645 test -z "$x_libraries" && x_libraries=$ac_dir
|
|
2646 no_x=
|
|
2647 break 2
|
|
2648 fi
|
|
2649 done
|
|
2650 done
|
|
2651 fi
|
|
2652
|
|
2653 fi
|
|
2654 test -n "$x_includes" && test -n "$verbose" && echo " X11 headers are in $x_includes"
|
|
2655 test -n "$x_libraries" && test -n "$verbose" && echo " X11 libraries are in $x_libraries"
|
|
2656 fi
|
|
2657
|
|
2658 fi
|
70
|
2659 if test -n "${x_includes}${x_libraries}" ; then window_system=x11 ; fi
|
0
|
2660 ;;
|
|
2661 esac
|
|
2662
|
70
|
2663 test -z "${window_system}" && window_system="none"
|
|
2664
|
|
2665 if test "${window_system}" = "none" ; then
|
|
2666 if test "${with_tty}" != "yes" ; then
|
0
|
2667 echo "No window system support, and no TTY support." >&2
|
|
2668 echo "Unable to proceed." >&2
|
|
2669 exit 1
|
|
2670 fi
|
70
|
2671 for feature in epoch cde offix menubars scrollbars toolbars dialogs xim tiff
|
|
2672 do
|
|
2673 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
|
|
2674 echo "configure: warning: --with-$feature ignored: Not valid without X support" >&2
|
|
2675 fi
|
74
|
2676 eval "with_$feature=no"
|
70
|
2677 done
|
|
2678 elif test -z "${with_toolbars}" ; then
|
0
|
2679 with_toolbars='yes'
|
|
2680 fi
|
|
2681
|
116
|
2682 runtime_arg="-R${dash_r_space}"
|
|
2683
|
0
|
2684 case "${canonical}" in
|
116
|
2685 *-sun-solaris* | *-sun-sunos5* )
|
|
2686 add_runtime_flag=yes ;;
|
|
2687 *-sgi-irix5.* )
|
|
2688 # In the IRIX 5.3 ld, only the last -rpath arg has any effect. This is
|
|
2689 # fundamentaly incompatible with having separate LD_SWITCH_X_SITE
|
|
2690 # and LD_SWITCH_SITE variables. Fortunately, SGI fixed this by 6.2.
|
|
2691 if [ -n "${x_libraries}" ] || [ -n "${site_runtime_libraries}" ]; then
|
|
2692 (echo "WARNING: The IRIX 5 ld ignores all but the last -rpath argument,";
|
|
2693 echo " so if you need to specify more than one additional";
|
|
2694 echo " runtime library directory, you will have to do so";
|
|
2695 echo " manually by setting the environment variable";
|
|
2696 echo " LD_SWITCH_SITE to '-rpath <path>' before running";
|
|
2697 echo " configure. If you have only one additional directory,"
|
|
2698 echo " you can specify it with --site-runtime-libraries.") >&2
|
|
2699 fi
|
|
2700 runtime_arg="-rpath " ;;
|
|
2701 *-sgi-irix* )
|
|
2702 # Note that IRIX gcc (as of 2.7.2) doesn't accept -rpath, so
|
|
2703 # using it can cause trouble. Specifying --use-gcc=no will work
|
|
2704 # around this, but the real problem is that configure uses $LDFLAGS
|
|
2705 # as arguments to $(CC), instead of using prefix-args like the
|
|
2706 # src/Makefile does.
|
|
2707 add_runtime_flag=yes;
|
|
2708 runtime_arg="-rpath " ;;
|
0
|
2709 esac
|
|
2710
|
70
|
2711 if test -n "${x_libraries}" ; then
|
116
|
2712 if test "${add_runtime_flag}" = "yes" ; then
|
|
2713 LD_SWITCH_X_SITE="-L${x_libraries} ${runtime_arg}${x_libraries}"
|
74
|
2714 else
|
70
|
2715 LD_SWITCH_X_SITE="-L${x_libraries}"
|
|
2716 fi
|
0
|
2717 fi
|
|
2718 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
|
70
|
2719 # test -n "${x_libraries}" -a LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
|
|
2720 test -n "${x_includes}" && C_SWITCH_X_SITE="-I${x_includes}"
|
|
2721
|
|
2722 if test -n "${site_libraries}" ; then
|
0
|
2723 for arg in ${site_libraries}
|
|
2724 do
|
|
2725 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
|
2726 done
|
|
2727 fi
|
70
|
2728 if test -n "${site_runtime_libraries}" ; then
|
0
|
2729 for arg in ${site_runtime_libraries}
|
|
2730 do
|
|
2731 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
|
116
|
2732 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${runtime_arg}${arg}"
|
0
|
2733 done
|
|
2734 fi
|
70
|
2735 if test -n "${site_includes}" ; then
|
0
|
2736 for arg in ${site_includes}
|
|
2737 do
|
|
2738 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
|
|
2739 CPP="${CPP} -I${arg}"
|
|
2740 done
|
|
2741 fi
|
|
2742
|
|
2743 # FSF 19.29 has some bitmapdir stuff here.
|
|
2744 bitmapdir=
|
|
2745
|
|
2746 # Avoid forcing the search of /usr/include before fixed include files.
|
70
|
2747 test "$C_SWITCH_X_SITE" = "-I/usr/include" && C_SWITCH_X_SITE=" "
|
0
|
2748
|
|
2749 # Need for check for audio/Xtutil.h.
|
|
2750 CPP="${CPP} ${C_SWITCH_X_SITE}"
|
|
2751
|
|
2752 case "${window_system}" in
|
70
|
2753 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
|
2754 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
0
|
2755 esac
|
|
2756
|
|
2757 if test "${opsys}" = "hpux9"; then
|
|
2758 case "${x_libraries}" in
|
70
|
2759 *X11R4* ) opsysfile="s/hpux9-x11r4.h" ;;
|
0
|
2760 esac
|
|
2761 fi
|
|
2762
|
74
|
2763 if test "${opsys}" = "hpux9-shr"; then
|
0
|
2764 case "${x_libraries}" in
|
70
|
2765 *X11R4* ) opsysfile="s/hpux9shxr4.h" ;;
|
0
|
2766 esac
|
|
2767 fi
|
|
2768
|
|
2769 ############################################################################
|
|
2770 # #
|
|
2771 # Extract some information from the operating system and machine files #
|
|
2772 # #
|
|
2773 ############################################################################
|
|
2774
|
|
2775 echo "examining the machine- and system-dependent files to find out"
|
|
2776 echo " - which libraries the lib-src programs will want, and"
|
|
2777 echo " - whether the GNU malloc routines are usable."
|
|
2778
|
|
2779 ### First figure out CFLAGS (which we use for running the compiler here)
|
|
2780 ### and REAL_CFLAGS (which we use for real compilation).
|
|
2781 ### The two are the same except on a few systems, where they are made
|
|
2782 ### different to work around various lossages. For example,
|
|
2783 ### GCC 2.5 on Linux needs them to be different because it treats -g
|
|
2784 ### as implying static linking.
|
|
2785
|
|
2786 ### If the CFLAGS env var is specified, we use that value
|
|
2787 ### instead of the default.
|
|
2788
|
|
2789 ### It's not important that this name contain the PID; you can't run
|
|
2790 ### two configures in the same directory and have anything work
|
|
2791 ### anyway.
|
|
2792 tempcname="conftest.c"
|
|
2793
|
|
2794 echo '
|
|
2795 #define NOT_C_CODE
|
|
2796 #include "'${srcdir}'/src/'${opsysfile}'"
|
|
2797 #include "'${srcdir}'/src/'${machfile}'"
|
|
2798 #ifndef LIBS_MACHINE
|
|
2799 #define LIBS_MACHINE
|
|
2800 #endif
|
|
2801 #ifndef LIBS_SYSTEM
|
|
2802 #define LIBS_SYSTEM
|
|
2803 #endif
|
|
2804 #ifndef C_SWITCH_SYSTEM
|
|
2805 #define C_SWITCH_SYSTEM
|
|
2806 #endif
|
|
2807 #ifndef C_SWITCH_X_SYSTEM
|
|
2808 #define C_SWITCH_X_SYSTEM
|
|
2809 #endif
|
|
2810 #ifndef C_SWITCH_MACHINE
|
|
2811 #define C_SWITCH_MACHINE
|
|
2812 #endif
|
|
2813 #ifndef LD_SWITCH_X_SYSTEM
|
|
2814 #define LD_SWITCH_X_SYSTEM
|
|
2815 #endif
|
|
2816 #ifndef LIB_STANDARD
|
|
2817 #define LIB_STANDARD
|
|
2818 #endif
|
|
2819 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD
|
|
2820 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
2821 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
|
|
2822 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
|
|
2823 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
2824
|
|
2825 #ifndef LIB_X11_LIB
|
|
2826 #define LIB_X11_LIB -lX11
|
|
2827 #endif
|
|
2828
|
|
2829 #ifndef LIBX11_MACHINE
|
|
2830 #define LIBX11_MACHINE
|
|
2831 #endif
|
|
2832
|
|
2833 #ifndef LIBX11_SYSTEM
|
|
2834 #define LIBX11_SYSTEM
|
|
2835 #endif
|
|
2836 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
|
|
2837
|
|
2838 #ifdef UNEXEC
|
|
2839 configure___ unexec=UNEXEC
|
|
2840 #else
|
|
2841 configure___ unexec=unexec.o
|
|
2842 #endif
|
|
2843
|
|
2844 #ifdef SYSTEM_MALLOC
|
|
2845 configure___ system_malloc=yes
|
|
2846 #else
|
|
2847 configure___ system_malloc=no
|
|
2848 #endif
|
|
2849
|
|
2850 #ifndef C_DEBUG_SWITCH
|
|
2851 #define C_DEBUG_SWITCH -g
|
|
2852 #endif
|
|
2853
|
|
2854 #ifndef C_OPTIMIZE_SWITCH
|
|
2855 #define C_OPTIMIZE_SWITCH -O
|
|
2856 #endif
|
|
2857
|
|
2858 #ifdef THIS_IS_CONFIGURE
|
|
2859
|
|
2860 /* Get the CFLAGS for tests in configure. */
|
|
2861 #ifdef __GNUC__
|
|
2862 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2863 #else
|
|
2864 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2865 #endif
|
|
2866
|
|
2867 #else /* not THIS_IS_CONFIGURE */
|
|
2868
|
|
2869 /* Get the CFLAGS for real compilation. */
|
|
2870 #ifdef __GNUC__
|
|
2871 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2872 #else
|
|
2873 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
|
|
2874 #endif
|
|
2875
|
|
2876 #endif /* not THIS_IS_CONFIGURE */
|
|
2877 ' > ${tempcname}
|
|
2878 # The value of CPP is a quoted variable reference, so we need to do this
|
|
2879 # to get its actual value...
|
|
2880 CPP=`eval "echo $CPP"`
|
|
2881 eval `${CPP} -Isrc ${tempcname} \
|
|
2882 | grep 'configure___' \
|
116
|
2883 | sed -n -e 's/^configure___ \(^=*=\)\(.*\)$/\1"\2"/p'`
|
70
|
2884 if test "x$SPECIFIED_CFLAGS" = x ; then
|
0
|
2885 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
|
|
2886 | grep 'configure___' \
|
116
|
2887 | sed -n -e 's/^configure___ \(^=*=\)\(.*\)$/\1"\2"/p'`
|
0
|
2888 else
|
|
2889 REAL_CFLAGS="$CFLAGS"
|
|
2890 fi
|
|
2891 rm ${tempcname}
|
|
2892
|
|
2893 # override CFLAGS if user wishes
|
70
|
2894 if test "${cflags}" != "NO_CFLAGS_DEFINED" ; then
|
0
|
2895 REAL_CFLAGS=${cflags}
|
|
2896 fi
|
|
2897
|
|
2898 ### Compute the unexec source name from the object name.
|
|
2899 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
|
|
2900
|
|
2901 # Do the opsystem or machine files prohibit the use of the GNU malloc?
|
|
2902 # Assume not, until told otherwise.
|
|
2903 GNU_MALLOC=yes
|
70
|
2904 if test "${system_malloc}" = "yes" ; then
|
0
|
2905 GNU_MALLOC=no
|
|
2906 GNU_MALLOC_reason="
|
|
2907 (The GNU allocators don't work with this system configuration.)"
|
70
|
2908 elif test "${use_system_malloc}" = "yes" ; then
|
0
|
2909 GNU_MALLOC=no
|
|
2910 GNU_MALLOC_reason="
|
|
2911 (User chose not to use GNU allocators.)"
|
|
2912 fi
|
|
2913
|
|
2914 LISP_FLOAT_TYPE=yes
|
|
2915
|
|
2916
|
|
2917 #### Add the libraries to LIBS and check for some functions.
|
|
2918
|
116
|
2919 ]
|
0
|
2920 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS"
|
|
2921 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS"
|
|
2922 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS"
|
|
2923
|
|
2924 ac_save_LIBS="${LIBS}"
|
|
2925 LIBS="${LIBS} -ldnet"
|
|
2926 ac_have_lib=""
|
|
2927 test -n "$silent" || echo "checking for -ldnet"
|
|
2928 cat > conftest.${ac_ext} <<EOF
|
|
2929 #include "confdefs.h"
|
|
2930
|
|
2931 int main() { return 0; }
|
|
2932 int t() { main();; return 0; }
|
|
2933 EOF
|
|
2934 if eval $ac_compile; then
|
|
2935 rm -rf conftest*
|
|
2936 ac_have_lib="1"
|
|
2937
|
|
2938 fi
|
|
2939 rm -f conftest*
|
|
2940 LIBS="${ac_save_LIBS}"
|
|
2941 if test -n "${ac_have_lib}"; then
|
|
2942
|
|
2943 {
|
|
2944 test -n "$verbose" && \
|
|
2945 echo " defining HAVE_LIBDNET"
|
|
2946 echo "#define" HAVE_LIBDNET "1" >> confdefs.h
|
|
2947 DEFS="$DEFS -DHAVE_LIBDNET=1"
|
|
2948 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDNET\${ac_dB}HAVE_LIBDNET\${ac_dC}1\${ac_dD}
|
|
2949 \${ac_uA}HAVE_LIBDNET\${ac_uB}HAVE_LIBDNET\${ac_uC}1\${ac_uD}
|
|
2950 \${ac_eA}HAVE_LIBDNET\${ac_eB}HAVE_LIBDNET\${ac_eC}1\${ac_eD}
|
|
2951 "
|
|
2952 }
|
|
2953
|
|
2954 LIBS="${LIBS} -ldnet"
|
|
2955 fi
|
|
2956
|
|
2957
|
|
2958 ac_save_LIBS="${LIBS}"
|
70
|
2959 LIBS="${LIBS} -lkstat"
|
|
2960 ac_have_lib=""
|
|
2961 test -n "$silent" || echo "checking for -lkstat"
|
|
2962 cat > conftest.${ac_ext} <<EOF
|
|
2963 #include "confdefs.h"
|
|
2964
|
|
2965 int main() { return 0; }
|
|
2966 int t() { main();; return 0; }
|
|
2967 EOF
|
|
2968 if eval $ac_compile; then
|
|
2969 rm -rf conftest*
|
|
2970 ac_have_lib="1"
|
|
2971
|
|
2972 fi
|
|
2973 rm -f conftest*
|
|
2974 LIBS="${ac_save_LIBS}"
|
|
2975 if test -n "${ac_have_lib}"; then
|
|
2976
|
|
2977 {
|
|
2978 test -n "$verbose" && \
|
|
2979 echo " defining HAVE_LIBKSTAT"
|
|
2980 echo "#define" HAVE_LIBKSTAT "1" >> confdefs.h
|
|
2981 DEFS="$DEFS -DHAVE_LIBKSTAT=1"
|
|
2982 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBKSTAT\${ac_dB}HAVE_LIBKSTAT\${ac_dC}1\${ac_dD}
|
|
2983 \${ac_uA}HAVE_LIBKSTAT\${ac_uB}HAVE_LIBKSTAT\${ac_uC}1\${ac_uD}
|
|
2984 \${ac_eA}HAVE_LIBKSTAT\${ac_eB}HAVE_LIBKSTAT\${ac_eC}1\${ac_eD}
|
|
2985 "
|
|
2986 }
|
|
2987
|
|
2988 LIBS="${LIBS} -lkstat"
|
|
2989 fi
|
|
2990
|
|
2991
|
|
2992 ac_save_LIBS="${LIBS}"
|
0
|
2993 LIBS="${LIBS} -lXbsd"
|
|
2994 ac_have_lib=""
|
|
2995 test -n "$silent" || echo "checking for -lXbsd"
|
|
2996 cat > conftest.${ac_ext} <<EOF
|
|
2997 #include "confdefs.h"
|
|
2998
|
|
2999 int main() { return 0; }
|
|
3000 int t() { main();; return 0; }
|
|
3001 EOF
|
|
3002 if eval $ac_compile; then
|
|
3003 rm -rf conftest*
|
|
3004 ac_have_lib="1"
|
|
3005
|
|
3006 fi
|
|
3007 rm -f conftest*
|
|
3008 LIBS="${ac_save_LIBS}"
|
|
3009 if test -n "${ac_have_lib}"; then
|
|
3010 :; LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
|
|
3011 else
|
|
3012 :;
|
|
3013 fi
|
|
3014
|
|
3015
|
|
3016 ac_save_LIBS="${LIBS}"
|
|
3017 LIBS="${LIBS} -lpthreads"
|
|
3018 ac_have_lib=""
|
|
3019 test -n "$silent" || echo "checking for -lpthreads"
|
|
3020 cat > conftest.${ac_ext} <<EOF
|
|
3021 #include "confdefs.h"
|
|
3022
|
|
3023 int main() { return 0; }
|
|
3024 int t() { main();; return 0; }
|
|
3025 EOF
|
|
3026 if eval $ac_compile; then
|
|
3027 rm -rf conftest*
|
|
3028 ac_have_lib="1"
|
|
3029
|
|
3030 fi
|
|
3031 rm -f conftest*
|
|
3032 LIBS="${ac_save_LIBS}"
|
|
3033 if test -n "${ac_have_lib}"; then
|
|
3034 :; HAVE_PTHREADS=yes
|
|
3035 else
|
|
3036 :;
|
|
3037 fi
|
|
3038
|
|
3039 if test -n "${HAVE_PTHREADS}" ; then
|
|
3040
|
|
3041 {
|
|
3042 test -n "$verbose" && \
|
|
3043 echo " defining HAVE_PTHREADS"
|
|
3044 echo "#define" HAVE_PTHREADS "1" >> confdefs.h
|
|
3045 DEFS="$DEFS -DHAVE_PTHREADS=1"
|
|
3046 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PTHREADS\${ac_dB}HAVE_PTHREADS\${ac_dC}1\${ac_dD}
|
|
3047 \${ac_uA}HAVE_PTHREADS\${ac_uB}HAVE_PTHREADS\${ac_uC}1\${ac_uD}
|
|
3048 \${ac_eA}HAVE_PTHREADS\${ac_eB}HAVE_PTHREADS\${ac_eC}1\${ac_eD}
|
|
3049 "
|
|
3050 }
|
|
3051
|
|
3052 case "${opsys}" in
|
|
3053 decosf* ) CFLAGS="${CFLAGS} -threads" ;;
|
|
3054 esac
|
|
3055 fi
|
|
3056
|
|
3057 if test "${window_system}" != "none" ; then
|
|
3058 test -n "$silent" || echo "checking for XFree86"
|
|
3059 if test -d /usr/X386/include; then
|
|
3060 HAVE_XFREE386=yes
|
|
3061 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
|
80
|
3062 elif test -f /etc/XF86Config -o \
|
|
3063 -f /etc/X11/XF86Config -o \
|
|
3064 -f /usr/X11R6/lib/X11/XF86Config; then
|
0
|
3065 HAVE_XFREE386=yes
|
|
3066 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"
|
|
3067 else
|
|
3068 HAVE_XFREE386=no
|
|
3069 fi
|
|
3070 test -n "$verbose" && echo " ${HAVE_XFREE386}"
|
|
3071 else
|
|
3072 HAVE_XFREE386=no
|
|
3073 fi
|
|
3074
|
|
3075 ############################################################################
|
|
3076 # #
|
|
3077 # Test for various X-specific features #
|
|
3078 # #
|
|
3079 ############################################################################
|
|
3080
|
|
3081 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check.
|
|
3082 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
3083 case "${opsys}" in
|
|
3084 linux* )
|
|
3085 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS"
|
|
3086 test -n "$silent" || echo "checking for whether path-link option is needed"
|
|
3087 cat > conftest.${ac_ext} <<EOF
|
|
3088 #include "confdefs.h"
|
|
3089
|
|
3090 int main() { return 0; }
|
|
3091 int t() { ;; return 0; }
|
|
3092 EOF
|
|
3093 if eval $ac_compile; then
|
|
3094 rm -rf conftest*
|
|
3095 need_path_link=yes
|
|
3096
|
|
3097 else
|
|
3098 rm -rf conftest*
|
|
3099 need_path_link=no
|
|
3100 fi
|
|
3101 rm -f conftest*
|
|
3102
|
|
3103 if test "${need_path_link}" = "no"; then
|
|
3104 CFLAGS="$REAL_CFLAGS"
|
|
3105 test -n "$verbose" && echo " no"
|
|
3106 else
|
|
3107 test -n "$verbose" && echo " yes"
|
|
3108 fi
|
|
3109 ;;
|
|
3110 esac
|
|
3111 fi
|
|
3112
|
|
3113 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
|
|
3114 # for the tests that follow. We set it back to REAL_CFLAGS later on.
|
|
3115
|
|
3116 if test "${HAVE_X_WINDOWS}" = "yes"; then
|
|
3117 DEFS="$C_SWITCH_X_SITE $DEFS"
|
|
3118 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
|
|
3119 LIBS="$LIBX $LIBS"
|
|
3120 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
|
|
3121
|
|
3122 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
|
|
3123 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
|
|
3124 # but it's more convenient here to set LD_RUN_PATH
|
|
3125 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
|
|
3126 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
|
|
3127 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
|
|
3128 export LD_RUN_PATH
|
|
3129 fi
|
|
3130
|
|
3131 if test "${HAVE_XFREE386}" = "yes" ; then
|
|
3132 case "${opsys}" in
|
|
3133 linux* )
|
|
3134 test -n "$silent" || echo "checking for whether XFree86 needs -b to link"
|
|
3135 cat > conftest.${ac_ext} <<EOF
|
|
3136 #include "confdefs.h"
|
|
3137
|
|
3138 int main() { return 0; }
|
|
3139 int t() { XOpenDisplay ("foo");; return 0; }
|
|
3140 EOF
|
|
3141 if eval $ac_compile; then
|
|
3142 rm -rf conftest*
|
|
3143 xfree86_first_failure=no
|
|
3144
|
|
3145 else
|
|
3146 rm -rf conftest*
|
|
3147 xfree86_first_failure=yes
|
|
3148 fi
|
|
3149 rm -f conftest*
|
|
3150
|
|
3151 if test "${xfree86_first_failure}" = "yes"; then
|
|
3152 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
|
|
3153 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
|
|
3154 OLD_CPPFLAGS="$CPPFLAGS"
|
|
3155 OLD_LIBS="$LIBS"
|
|
3156 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
|
|
3157 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
|
|
3158 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
|
|
3159 LIBS="$LIBS -b i486-linuxaout"
|
|
3160 cat > conftest.${ac_ext} <<EOF
|
|
3161 #include "confdefs.h"
|
|
3162
|
|
3163 int main() { return 0; }
|
|
3164 int t() { XOpenDisplay ("foo");; return 0; }
|
|
3165 EOF
|
|
3166 if eval $ac_compile; then
|
|
3167 rm -rf conftest*
|
|
3168 xfree86_second_failure=no
|
|
3169
|
|
3170 else
|
|
3171 rm -rf conftest*
|
|
3172 xfree86_second_failure=yes
|
|
3173 fi
|
|
3174 rm -f conftest*
|
|
3175
|
|
3176 if test "${xfree86_second_failure}" = "yes"; then
|
|
3177 # If we get the same failure with -b, there is no use adding -b.
|
|
3178 # So take it out. This plays safe.
|
|
3179 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
|
|
3180 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
|
|
3181 CPPFLAGS="$OLD_CPPFLAGS"
|
|
3182 LIBS="$OLD_LIBS"
|
|
3183 test -n "$verbose" && echo " no"
|
|
3184 else
|
|
3185 test -n "$verbose" && echo " yes"
|
|
3186 fi
|
|
3187 else
|
|
3188 test -n "$verbose" && echo " no"
|
|
3189 fi
|
|
3190 ;;
|
|
3191 esac
|
|
3192 fi
|
|
3193
|
|
3194 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
|
|
3195 #XScreenNumberOfScreen XSetWMProtocols)
|
|
3196 fi
|
|
3197
|
|
3198 #
|
|
3199 # make sure we can find libX11.*
|
|
3200 #
|
|
3201 if test "${window_system}" != "none" ; then
|
|
3202 internal_xlibs_found='no'
|
|
3203 ac_save_LIBS="${LIBS}"
|
|
3204 LIBS="${LIBS} -lX11"
|
|
3205 ac_have_lib=""
|
|
3206 test -n "$silent" || echo "checking for -lX11"
|
|
3207 cat > conftest.${ac_ext} <<EOF
|
|
3208 #include "confdefs.h"
|
|
3209
|
|
3210 int main() { return 0; }
|
|
3211 int t() { main();; return 0; }
|
|
3212 EOF
|
|
3213 if eval $ac_compile; then
|
|
3214 rm -rf conftest*
|
|
3215 ac_have_lib="1"
|
|
3216
|
|
3217 fi
|
|
3218 rm -f conftest*
|
|
3219 LIBS="${ac_save_LIBS}"
|
|
3220 if test -n "${ac_have_lib}"; then
|
|
3221 :; internal_xlibs_found='yes'
|
|
3222 else
|
|
3223 :;
|
|
3224 fi
|
|
3225
|
|
3226 if test "${internal_xlibs_found}" = "no" ; then
|
|
3227 echo "Unable to find X11 libraries." >&2
|
|
3228 exit 1
|
|
3229 else
|
|
3230 test -n "$verbose" && echo " yes"
|
|
3231 fi
|
|
3232 fi
|
|
3233
|
|
3234 #
|
|
3235 # make sure we can find Intrinsic.h
|
|
3236 #
|
|
3237 if test "${window_system}" != "none" ; then
|
|
3238 internal_xincludes_found='no'
|
|
3239 for arg in ${DEFS} /usr/include
|
|
3240 do
|
|
3241 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
|
|
3242 internal_xincludes_found='yes'
|
|
3243 fi
|
|
3244 done
|
|
3245 if test "${internal_xincludes_found}" = "no" ; then
|
|
3246 echo "Unable to find X11 header files." >&2
|
|
3247 exit 1
|
|
3248 fi
|
|
3249 fi
|
|
3250
|
|
3251 #
|
|
3252 # Sun OS 4 systems need the following kludge
|
|
3253 #
|
|
3254 if test "${window_system}" != "none" ; then
|
|
3255 case "${canonical}" in *-sunos4* )
|
|
3256 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;;
|
|
3257 esac
|
|
3258 fi
|
|
3259
|
|
3260 #
|
|
3261 # See if we can find Xauth.
|
|
3262 #
|
|
3263 with_xauth='no'
|
|
3264 if test "${window_system}" != "none" ; then
|
|
3265 internal_xauth_lib_found='no'
|
|
3266 ac_save_LIBS="${LIBS}"
|
|
3267 LIBS="${LIBS} -lXau"
|
|
3268 ac_have_lib=""
|
|
3269 test -n "$silent" || echo "checking for -lXau"
|
|
3270 cat > conftest.${ac_ext} <<EOF
|
|
3271 #include "confdefs.h"
|
|
3272
|
|
3273 int main() { return 0; }
|
|
3274 int t() { main();; return 0; }
|
|
3275 EOF
|
|
3276 if eval $ac_compile; then
|
|
3277 rm -rf conftest*
|
|
3278 ac_have_lib="1"
|
|
3279
|
|
3280 fi
|
|
3281 rm -f conftest*
|
|
3282 LIBS="${ac_save_LIBS}"
|
|
3283 if test -n "${ac_have_lib}"; then
|
|
3284 :; internal_xauth_lib_found='yes'
|
|
3285 else
|
|
3286 :;
|
|
3287 fi
|
|
3288
|
|
3289 if test "${internal_xauth_lib_found}" = "yes" ; then
|
|
3290 internal_xauth_includes_found='no'
|
|
3291 for arg in ${DEFS} /usr/include
|
|
3292 do
|
|
3293 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
|
|
3294 internal_xauth_includes_found='yes'
|
|
3295 fi
|
|
3296 done
|
|
3297 if test "${internal_xauth_includes_found}" = "yes" ; then
|
|
3298 with_xauth='yes'
|
|
3299 fi
|
|
3300 fi
|
|
3301 fi
|
70
|
3302 test "${with_xauth}" = yes &&
|
0
|
3303 {
|
|
3304 test -n "$verbose" && \
|
|
3305 echo " defining HAVE_XAUTH"
|
|
3306 echo "#define" HAVE_XAUTH "1" >> confdefs.h
|
|
3307 DEFS="$DEFS -DHAVE_XAUTH=1"
|
|
3308 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XAUTH\${ac_dB}HAVE_XAUTH\${ac_dC}1\${ac_dD}
|
|
3309 \${ac_uA}HAVE_XAUTH\${ac_uB}HAVE_XAUTH\${ac_uC}1\${ac_uD}
|
|
3310 \${ac_eA}HAVE_XAUTH\${ac_eB}HAVE_XAUTH\${ac_eC}1\${ac_eD}
|
|
3311 "
|
|
3312 }
|
|
3313
|
|
3314
|
|
3315 #
|
|
3316 # See if we can find CDE.
|
|
3317 #
|
70
|
3318 if test "${window_system}" != "none" -a \
|
|
3319 "${with_cde}" != "no" -a \
|
|
3320 "${with_cde}" != "yes" ; then
|
|
3321 internal_cde_lib_found='no'
|
|
3322 ac_save_LIBS="${LIBS}"
|
0
|
3323 LIBS="${LIBS} -lDtSvc"
|
|
3324 ac_have_lib=""
|
|
3325 test -n "$silent" || echo "checking for -lDtSvc"
|
|
3326 cat > conftest.${ac_ext} <<EOF
|
|
3327 #include "confdefs.h"
|
|
3328
|
|
3329 int main() { return 0; }
|
|
3330 int t() { main();; return 0; }
|
|
3331 EOF
|
|
3332 if eval $ac_compile; then
|
|
3333 rm -rf conftest*
|
|
3334 ac_have_lib="1"
|
|
3335
|
|
3336 fi
|
|
3337 rm -f conftest*
|
|
3338 LIBS="${ac_save_LIBS}"
|
|
3339 if test -n "${ac_have_lib}"; then
|
|
3340 :; internal_cde_lib_found='yes'
|
|
3341 else
|
|
3342 :;
|
|
3343 fi
|
|
3344
|
100
|
3345 if test "${internal_cde_lib_found}" = "no" -a -f "/usr/dt/lib/libDtSvc.a"; then
|
|
3346 internal_cde_lib_found="yes"
|
|
3347 fi
|
70
|
3348 if test "${internal_cde_lib_found}" = "yes" ; then
|
|
3349 internal_cde_includes_found='no'
|
100
|
3350 for arg in ${DEFS} /usr/include /usr/dt/include ; do
|
70
|
3351 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
|
|
3352 internal_cde_includes_found='yes'
|
0
|
3353 fi
|
70
|
3354 done
|
|
3355 if test "${internal_cde_includes_found}" = "yes" ; then
|
|
3356 with_cde='yes'
|
0
|
3357 fi
|
|
3358 fi
|
|
3359 fi
|
70
|
3360 test "${with_cde}" = yes &&
|
0
|
3361 {
|
|
3362 test -n "$verbose" && \
|
|
3363 echo " defining HAVE_CDE"
|
|
3364 echo "#define" HAVE_CDE "1" >> confdefs.h
|
|
3365 DEFS="$DEFS -DHAVE_CDE=1"
|
|
3366 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_CDE\${ac_dB}HAVE_CDE\${ac_dC}1\${ac_dD}
|
|
3367 \${ac_uA}HAVE_CDE\${ac_uB}HAVE_CDE\${ac_uC}1\${ac_uD}
|
|
3368 \${ac_eA}HAVE_CDE\${ac_eB}HAVE_CDE\${ac_eC}1\${ac_eD}
|
|
3369 "
|
|
3370 }
|
|
3371
|
|
3372
|
100
|
3373 # having CDE implies Tooltalk
|
|
3374 if test "${with_cde}" = "yes" -a \
|
|
3375 "${with_tooltalk}" != "no" -a \
|
|
3376 "${with_tooltalk}" != "none" ; then
|
|
3377 with_tooltalk='yes'
|
|
3378 fi
|
|
3379
|
114
|
3380 # having CDE requires Motif
|
|
3381 if test "${with_cde}" = "yes" ; then
|
|
3382 motif_libs="-lXm -lXt"
|
|
3383 fi
|
|
3384
|
0
|
3385 #
|
2
|
3386 # See if we can find OffiX.
|
|
3387 #
|
70
|
3388 if test "${window_system}" != "none" -a \
|
|
3389 "${with_offix}" != "no" -a \
|
|
3390 "${with_offix}" != "yes" ; then
|
|
3391 internal_offix_lib_found='no'
|
|
3392 ac_save_LIBS="${LIBS}"
|
2
|
3393 LIBS="${LIBS} -lDnd"
|
|
3394 ac_have_lib=""
|
|
3395 test -n "$silent" || echo "checking for -lDnd"
|
|
3396 cat > conftest.${ac_ext} <<EOF
|
|
3397 #include "confdefs.h"
|
|
3398
|
|
3399 int main() { return 0; }
|
|
3400 int t() { main();; return 0; }
|
|
3401 EOF
|
|
3402 if eval $ac_compile; then
|
|
3403 rm -rf conftest*
|
|
3404 ac_have_lib="1"
|
|
3405
|
|
3406 fi
|
|
3407 rm -f conftest*
|
|
3408 LIBS="${ac_save_LIBS}"
|
|
3409 if test -n "${ac_have_lib}"; then
|
|
3410 :; internal_offix_lib_found='yes'
|
|
3411 else
|
|
3412 :;
|
|
3413 fi
|
|
3414
|
70
|
3415 if test "${internal_offix_lib_found}" = "yes" ; then
|
|
3416 internal_offix_includes_found='no'
|
|
3417 for arg in ${DEFS} /usr/include ; do
|
|
3418 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
|
|
3419 internal_offix_includes_found='yes'
|
2
|
3420 fi
|
70
|
3421 done
|
|
3422 test "${internal_offix_includes_found}" = "yes" && with_offix='yes'
|
2
|
3423 fi
|
|
3424 fi
|
70
|
3425 test "${with_offix}" = yes &&
|
2
|
3426 {
|
|
3427 test -n "$verbose" && \
|
|
3428 echo " defining HAVE_OFFIX_DND"
|
|
3429 echo "#define" HAVE_OFFIX_DND "1" >> confdefs.h
|
|
3430 DEFS="$DEFS -DHAVE_OFFIX_DND=1"
|
|
3431 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_OFFIX_DND\${ac_dB}HAVE_OFFIX_DND\${ac_dC}1\${ac_dD}
|
|
3432 \${ac_uA}HAVE_OFFIX_DND\${ac_uB}HAVE_OFFIX_DND\${ac_uC}1\${ac_uD}
|
|
3433 \${ac_eA}HAVE_OFFIX_DND\${ac_eB}HAVE_OFFIX_DND\${ac_eC}1\${ac_eD}
|
|
3434 "
|
|
3435 }
|
|
3436
|
70
|
3437
|
|
3438 # X window options
|
0
|
3439 if test "${window_system}" != "none" ; then
|
|
3440 test -n "$silent" || echo "checking the version of X11 being used"
|
|
3441 cat > conftest.${ac_ext} <<EOF
|
|
3442 #include <X11/Intrinsic.h>
|
|
3443 int main() {
|
|
3444 #if (XlibSpecificationRelease == 4)
|
|
3445 printf ("X11R4\n");
|
|
3446 #elif (XlibSpecificationRelease == 5)
|
|
3447 printf ("X11R5\n");
|
|
3448 #elif (XlibSpecificationRelease == 6)
|
|
3449 printf ("X11R6\n");
|
|
3450 #elif (XtSpecificationRelease == 4)
|
|
3451 printf ("X11R4\n");
|
|
3452 #endif
|
|
3453 return 0;
|
|
3454 }
|
|
3455 EOF
|
|
3456 ac_save_LIBS="${LIBS}"
|
|
3457 LIBS="${LIBS} ${DEFS}"
|
|
3458 if eval $ac_compile; then
|
70
|
3459 case "`./conftest`" in
|
|
3460 X11R4 )
|
0
|
3461 {
|
|
3462 test -n "$verbose" && \
|
|
3463 echo " defining THIS_IS_X11R4"
|
|
3464 echo "#define" THIS_IS_X11R4 "1" >> confdefs.h
|
|
3465 DEFS="$DEFS -DTHIS_IS_X11R4=1"
|
|
3466 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R4\${ac_dB}THIS_IS_X11R4\${ac_dC}1\${ac_dD}
|
|
3467 \${ac_uA}THIS_IS_X11R4\${ac_uB}THIS_IS_X11R4\${ac_uC}1\${ac_uD}
|
|
3468 \${ac_eA}THIS_IS_X11R4\${ac_eB}THIS_IS_X11R4\${ac_eC}1\${ac_eD}
|
|
3469 "
|
|
3470 }
|
70
|
3471 ;;
|
|
3472 X11R5 )
|
0
|
3473 {
|
|
3474 test -n "$verbose" && \
|
|
3475 echo " defining THIS_IS_X11R5"
|
|
3476 echo "#define" THIS_IS_X11R5 "1" >> confdefs.h
|
|
3477 DEFS="$DEFS -DTHIS_IS_X11R5=1"
|
|
3478 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R5\${ac_dB}THIS_IS_X11R5\${ac_dC}1\${ac_dD}
|
|
3479 \${ac_uA}THIS_IS_X11R5\${ac_uB}THIS_IS_X11R5\${ac_uC}1\${ac_uD}
|
|
3480 \${ac_eA}THIS_IS_X11R5\${ac_eB}THIS_IS_X11R5\${ac_eC}1\${ac_eD}
|
|
3481 "
|
|
3482 }
|
70
|
3483 ;;
|
|
3484 X11R6 )
|
0
|
3485 {
|
|
3486 test -n "$verbose" && \
|
|
3487 echo " defining THIS_IS_X11R6"
|
|
3488 echo "#define" THIS_IS_X11R6 "1" >> confdefs.h
|
|
3489 DEFS="$DEFS -DTHIS_IS_X11R6=1"
|
|
3490 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R6\${ac_dB}THIS_IS_X11R6\${ac_dC}1\${ac_dD}
|
|
3491 \${ac_uA}THIS_IS_X11R6\${ac_uB}THIS_IS_X11R6\${ac_uC}1\${ac_uD}
|
|
3492 \${ac_eA}THIS_IS_X11R6\${ac_eB}THIS_IS_X11R6\${ac_eC}1\${ac_eD}
|
|
3493 "
|
|
3494 }
|
70
|
3495 ;;
|
|
3496 esac
|
0
|
3497 fi
|
|
3498 LIBS=$ac_save_LIBS
|
|
3499 rm -f conftest*
|
|
3500
|
|
3501 for ac_hdr in X11/Xlocale.h
|
|
3502 do
|
|
3503 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
|
|
3504 test -n "$silent" || echo "checking for ${ac_hdr}"
|
|
3505 cat > conftest.${ac_ext} <<EOF
|
|
3506 #include "confdefs.h"
|
|
3507 #include <${ac_hdr}>
|
|
3508 EOF
|
|
3509 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
3510 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
3511 echo "$ac_err"
|
|
3512 fi
|
|
3513 if test -z "$ac_err"; then
|
|
3514 rm -rf conftest*
|
|
3515
|
|
3516 {
|
|
3517 test -n "$verbose" && \
|
|
3518 echo " defining ${ac_tr_hdr}"
|
|
3519 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
|
|
3520 DEFS="$DEFS -D${ac_tr_hdr}=1"
|
|
3521 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
|
|
3522 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
|
|
3523 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
|
|
3524 "
|
|
3525 }
|
|
3526
|
|
3527
|
|
3528 fi
|
|
3529 rm -f conftest*
|
|
3530 done
|
|
3531
|
|
3532 fi
|
|
3533
|
|
3534 #
|
|
3535 # if Energize specified, make sure we can find its need libraries/headers
|
|
3536 #
|
|
3537 if test "${with_energize}" = "yes" ; then
|
|
3538 ac_save_LIBS="${LIBS}"
|
|
3539 LIBS="${LIBS} -lenergize"
|
|
3540 ac_have_lib=""
|
|
3541 test -n "$silent" || echo "checking for -lenergize"
|
|
3542 cat > conftest.${ac_ext} <<EOF
|
|
3543 #include "confdefs.h"
|
|
3544
|
|
3545 int main() { return 0; }
|
|
3546 int t() { main();; return 0; }
|
|
3547 EOF
|
|
3548 if eval $ac_compile; then
|
|
3549 rm -rf conftest*
|
|
3550 ac_have_lib="1"
|
|
3551
|
|
3552 fi
|
|
3553 rm -f conftest*
|
|
3554 LIBS="${ac_save_LIBS}"
|
|
3555 if test -n "${ac_have_lib}"; then
|
|
3556 :; energize_version='3.X'
|
|
3557 else
|
|
3558 :;
|
|
3559 fi
|
|
3560
|
|
3561 if test "${energize_version}" = "no" ; then
|
|
3562 ac_save_LIBS="${LIBS}"
|
|
3563 LIBS="${LIBS} -lconn"
|
|
3564 ac_have_lib=""
|
|
3565 test -n "$silent" || echo "checking for -lconn"
|
|
3566 cat > conftest.${ac_ext} <<EOF
|
|
3567 #include "confdefs.h"
|
|
3568
|
|
3569 int main() { return 0; }
|
|
3570 int t() { main();; return 0; }
|
|
3571 EOF
|
|
3572 if eval $ac_compile; then
|
|
3573 rm -rf conftest*
|
|
3574 ac_have_lib="1"
|
|
3575
|
|
3576 fi
|
|
3577 rm -f conftest*
|
|
3578 LIBS="${ac_save_LIBS}"
|
|
3579 if test -n "${ac_have_lib}"; then
|
|
3580 :; energize_version='2.X'
|
|
3581 else
|
|
3582 :;
|
|
3583 fi
|
|
3584
|
|
3585 if test "${energize_version}" = "no" ; then
|
|
3586 echo "Unable to find Energize library." >&2
|
|
3587 exit 1
|
|
3588 fi
|
|
3589 fi
|
|
3590
|
|
3591 internal_eincludes_found='no'
|
|
3592 for arg in ${DEFS} /usr/include
|
|
3593 do
|
|
3594 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
|
|
3595 internal_eincludes_found='yes'
|
|
3596 fi
|
|
3597 done
|
|
3598 if test "${internal_eincludes_found}" = "no" ; then
|
|
3599 echo "Unable to find Energize editorconn.h header file." >&2
|
|
3600 exit 1
|
|
3601 fi
|
|
3602 fi
|
|
3603
|
|
3604 #
|
|
3605 # logb and frexp are found in -lm on most systems.
|
|
3606 #
|
|
3607 ac_save_LIBS="${LIBS}"
|
|
3608 LIBS="${LIBS} -lm"
|
|
3609 ac_have_lib=""
|
|
3610 test -n "$silent" || echo "checking for -lm"
|
|
3611 cat > conftest.${ac_ext} <<EOF
|
|
3612 #include "confdefs.h"
|
|
3613
|
|
3614 int main() { return 0; }
|
|
3615 int t() { main();; return 0; }
|
|
3616 EOF
|
|
3617 if eval $ac_compile; then
|
|
3618 rm -rf conftest*
|
|
3619 ac_have_lib="1"
|
|
3620
|
|
3621 fi
|
|
3622 rm -f conftest*
|
|
3623 LIBS="${ac_save_LIBS}"
|
|
3624 if test -n "${ac_have_lib}"; then
|
|
3625
|
|
3626 {
|
|
3627 test -n "$verbose" && \
|
|
3628 echo " defining HAVE_LIBM"
|
|
3629 echo "#define" HAVE_LIBM "1" >> confdefs.h
|
|
3630 DEFS="$DEFS -DHAVE_LIBM=1"
|
|
3631 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBM\${ac_dB}HAVE_LIBM\${ac_dC}1\${ac_dD}
|
|
3632 \${ac_uA}HAVE_LIBM\${ac_uB}HAVE_LIBM\${ac_uC}1\${ac_uD}
|
|
3633 \${ac_eA}HAVE_LIBM\${ac_eB}HAVE_LIBM\${ac_eC}1\${ac_eD}
|
|
3634 "
|
|
3635 }
|
|
3636
|
|
3637 LIBS="${LIBS} -lm"
|
|
3638 fi
|
|
3639
|
|
3640
|
|
3641 #
|
|
3642 # see if XPM is hanging around somewhere
|
|
3643 #
|
70
|
3644 test "${window_system}" != "none" -a \
|
|
3645 "${with_xpm}" != "no" -a \
|
|
3646 "${with_xpm}" != "yes" && { ac_save_LIBS="${LIBS}"
|
0
|
3647 LIBS="${LIBS} -lXpm"
|
|
3648 ac_have_lib=""
|
|
3649 test -n "$silent" || echo "checking for -lXpm"
|
|
3650 cat > conftest.${ac_ext} <<EOF
|
|
3651 #include "confdefs.h"
|
|
3652
|
|
3653 int main() { return 0; }
|
|
3654 int t() { main();; return 0; }
|
|
3655 EOF
|
|
3656 if eval $ac_compile; then
|
|
3657 rm -rf conftest*
|
|
3658 ac_have_lib="1"
|
|
3659
|
|
3660 fi
|
|
3661 rm -f conftest*
|
|
3662 LIBS="${ac_save_LIBS}"
|
|
3663 if test -n "${ac_have_lib}"; then
|
|
3664 :; with_xpm="yes"
|
|
3665 else
|
|
3666 :;
|
|
3667 fi
|
70
|
3668 }
|
|
3669
|
|
3670 test "${with_xpm}" = yes &&
|
0
|
3671 {
|
|
3672 test -n "$verbose" && \
|
|
3673 echo " defining HAVE_XPM"
|
|
3674 echo "#define" HAVE_XPM "1" >> confdefs.h
|
|
3675 DEFS="$DEFS -DHAVE_XPM=1"
|
|
3676 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XPM\${ac_dB}HAVE_XPM\${ac_dC}1\${ac_dD}
|
|
3677 \${ac_uA}HAVE_XPM\${ac_uB}HAVE_XPM\${ac_uC}1\${ac_uD}
|
|
3678 \${ac_eA}HAVE_XPM\${ac_eB}HAVE_XPM\${ac_eC}1\${ac_eD}
|
|
3679 "
|
|
3680 }
|
|
3681
|
|
3682
|
|
3683 #
|
|
3684 # see if Xmu is hanging around somewhere
|
|
3685 #
|
|
3686 # FSF 19.31 has this:
|
|
3687 #dnl If using toolkit, check whether libXmu.a exists.
|
|
3688 #dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
|
|
3689 # OLDLIBS="$LIBS"
|
|
3690 # if test x$HAVE_X11XTR6 = xyes; then
|
|
3691 # LIBS="-lXt -lSM -lICE $LIBS"
|
|
3692 # else
|
|
3693 # LIBS="-lXt $LIBS"
|
|
3694 # fi
|
|
3695 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
|
|
3696 # LIBS="$OLDLIBS"
|
|
3697
|
|
3698 if test "${window_system}" != "none" ; then
|
|
3699 if test "${with_xmu}" != "no" ; then
|
70
|
3700 test "${with_xmu}" != "yes" && { ac_save_LIBS="${LIBS}"
|
0
|
3701 LIBS="${LIBS} -lXmu"
|
|
3702 ac_have_lib=""
|
|
3703 test -n "$silent" || echo "checking for -lXmu"
|
|
3704 cat > conftest.${ac_ext} <<EOF
|
|
3705 #include "confdefs.h"
|
|
3706
|
|
3707 int main() { return 0; }
|
|
3708 int t() { main();; return 0; }
|
|
3709 EOF
|
|
3710 if eval $ac_compile; then
|
|
3711 rm -rf conftest*
|
|
3712 ac_have_lib="1"
|
|
3713
|
|
3714 fi
|
|
3715 rm -f conftest*
|
|
3716 LIBS="${ac_save_LIBS}"
|
|
3717 if test -n "${ac_have_lib}"; then
|
|
3718 :; with_xmu="yes"
|
|
3719 else
|
|
3720 :;
|
|
3721 fi
|
70
|
3722 }
|
100
|
3723 # On SunOS4 (and 5!) we must kludge harder to try to detect Xmu
|
0
|
3724 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
100
|
3725 if test "${with_xmu}" != "yes" ; then
|
0
|
3726 # begin expansion of ac_have_library
|
|
3727 ac_save_LIBS="${LIBS}"
|
|
3728 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
|
88
|
3729 if test ${machine} = sparc -a ${opsys} = linux; then
|
|
3730 LIBS="${LIBS} -lICE -lSM"
|
|
3731 fi
|
0
|
3732 ac_have_lib=""
|
|
3733 cat > conftest.${ac_ext} <<EOF
|
|
3734 int main() { return 0; }
|
|
3735 EOF
|
|
3736 if eval $ac_compile; then
|
|
3737 rm -rf conftest*
|
|
3738 ac_have_lib="1"
|
|
3739 fi
|
|
3740 rm -f conftest*
|
|
3741 LIBS="${ac_save_LIBS}"
|
|
3742 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3743 # end expansion of ac_have_library
|
|
3744 fi
|
90
|
3745 # Sparc/Linux test - fp
|
|
3746 if test "${with_xmu}" != "yes" -a ${machine} = sparc -a ${opsys} = linux; then
|
|
3747 # begin expansion of ac_have_library
|
|
3748 ac_save_LIBS="${LIBS}"
|
|
3749 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm -lICE -lSM"
|
|
3750 ac_have_lib=""
|
|
3751 cat > conftest.${ac_ext} <<EOF
|
|
3752 int main() { return 0; }
|
|
3753 EOF
|
|
3754 if eval $ac_compile; then
|
|
3755 rm -rf conftest*
|
|
3756 ac_have_lib="1"
|
|
3757 fi
|
|
3758 rm -f conftest*
|
|
3759 LIBS="${ac_save_LIBS}"
|
|
3760 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3761 # end expansion of ac_have_library
|
|
3762 fi
|
0
|
3763 # On UnixWare 2.1 we must kludge harder to try to detect Xmu
|
|
3764 # Upgrade to autoconf 2 and use ac_check_lib - mrb
|
|
3765 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then
|
|
3766 # begin expansion of ac_have_library
|
|
3767 ac_save_LIBS="${LIBS}"
|
|
3768 if test x$HAVE_XFREE386 = xyes; then
|
|
3769 LIBS="-lXt -lSM -lICE ${LIBS}"
|
|
3770 else
|
|
3771 LIBS="${LIBS} -lXmu -lXt -lXext -lX11"
|
|
3772 fi
|
|
3773 ac_have_lib=""
|
|
3774 cat > conftest.${ac_ext} <<EOF
|
|
3775 int main() { return 0; }
|
|
3776 EOF
|
|
3777 if eval $ac_compile; then
|
|
3778 rm -rf conftest*
|
|
3779 ac_have_lib="1"
|
|
3780 fi
|
|
3781 rm -f conftest*
|
|
3782 LIBS="${ac_save_LIBS}"
|
|
3783 test -n "${ac_have_lib}" && with_xmu="yes"
|
|
3784 # end expansion of ac_have_library
|
|
3785 fi
|
|
3786 fi
|
|
3787 fi
|
70
|
3788 test "${with_xmu}" = yes &&
|
0
|
3789 {
|
|
3790 test -n "$verbose" && \
|
|
3791 echo " defining HAVE_XMU"
|
|
3792 echo "#define" HAVE_XMU "1" >> confdefs.h
|
|
3793 DEFS="$DEFS -DHAVE_XMU=1"
|
|
3794 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XMU\${ac_dB}HAVE_XMU\${ac_dC}1\${ac_dD}
|
|
3795 \${ac_uA}HAVE_XMU\${ac_uB}HAVE_XMU\${ac_uC}1\${ac_uD}
|
|
3796 \${ac_eA}HAVE_XMU\${ac_eB}HAVE_XMU\${ac_eC}1\${ac_eD}
|
|
3797 "
|
|
3798 }
|
|
3799
|
|
3800
|
|
3801 #
|
|
3802 # see if COMPFACE is hanging around somewhere
|
|
3803 #
|
70
|
3804 if test "${window_system}" != "none" -a \
|
|
3805 "${with_xface}" != "no" -a \
|
|
3806 "${with_xface}" != "yes" ; then
|
|
3807 test -n "$silent" || echo "checking for compface.h"
|
0
|
3808 cat > conftest.${ac_ext} <<EOF
|
|
3809 #include "confdefs.h"
|
|
3810 #include <compface.h>
|
|
3811 EOF
|
|
3812 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
3813 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
3814 echo "$ac_err"
|
|
3815 fi
|
|
3816 if test -z "$ac_err"; then
|
|
3817 rm -rf conftest*
|
|
3818 compface_incl="yes"
|
|
3819
|
|
3820 else
|
|
3821 rm -rf conftest*
|
|
3822 with_xface="no"
|
|
3823 fi
|
|
3824 rm -f conftest*
|
|
3825
|
70
|
3826 if test "${compface_incl}" = "yes" ; then
|
|
3827 ac_save_LIBS="${LIBS}"
|
0
|
3828 LIBS="${LIBS} -lcompface"
|
|
3829 ac_have_lib=""
|
|
3830 test -n "$silent" || echo "checking for -lcompface"
|
|
3831 cat > conftest.${ac_ext} <<EOF
|
|
3832 #include "confdefs.h"
|
|
3833
|
|
3834 int main() { return 0; }
|
|
3835 int t() { main();; return 0; }
|
|
3836 EOF
|
|
3837 if eval $ac_compile; then
|
|
3838 rm -rf conftest*
|
|
3839 ac_have_lib="1"
|
|
3840
|
|
3841 fi
|
|
3842 rm -f conftest*
|
|
3843 LIBS="${ac_save_LIBS}"
|
|
3844 if test -n "${ac_have_lib}"; then
|
|
3845 :; with_xface="yes"
|
|
3846 else
|
|
3847 :;
|
|
3848 fi
|
|
3849
|
|
3850 fi
|
|
3851 fi
|
70
|
3852 test "${with_xface}" = yes &&
|
0
|
3853 {
|
|
3854 test -n "$verbose" && \
|
|
3855 echo " defining HAVE_XFACE"
|
|
3856 echo "#define" HAVE_XFACE "1" >> confdefs.h
|
|
3857 DEFS="$DEFS -DHAVE_XFACE=1"
|
|
3858 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFACE\${ac_dB}HAVE_XFACE\${ac_dC}1\${ac_dD}
|
|
3859 \${ac_uA}HAVE_XFACE\${ac_uB}HAVE_XFACE\${ac_uC}1\${ac_uD}
|
|
3860 \${ac_eA}HAVE_XFACE\${ac_eB}HAVE_XFACE\${ac_eC}1\${ac_eD}
|
|
3861 "
|
|
3862 }
|
|
3863
|
|
3864
|
|
3865 #
|
|
3866 # check whether we're using GIF support
|
|
3867 #
|
|
3868 if test "${window_system}" = "none" ; then
|
|
3869 if test -z "${with_gif}" ; then
|
|
3870 with_gif=no
|
|
3871 elif test "${with_gif}" != "no" ; then
|
|
3872 echo "GIF support cannot be specified without a window system."
|
|
3873 exit 1
|
|
3874 fi
|
|
3875 elif test -z "${with_gif}" ; then
|
|
3876 with_gif=yes
|
|
3877 fi
|
70
|
3878 test "${with_gif}" = yes &&
|
0
|
3879 {
|
|
3880 test -n "$verbose" && \
|
|
3881 echo " defining HAVE_GIF"
|
|
3882 echo "#define" HAVE_GIF "1" >> confdefs.h
|
|
3883 DEFS="$DEFS -DHAVE_GIF=1"
|
|
3884 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GIF\${ac_dB}HAVE_GIF\${ac_dC}1\${ac_dD}
|
|
3885 \${ac_uA}HAVE_GIF\${ac_uB}HAVE_GIF\${ac_uC}1\${ac_uD}
|
|
3886 \${ac_eA}HAVE_GIF\${ac_eB}HAVE_GIF\${ac_eC}1\${ac_eD}
|
|
3887 "
|
|
3888 }
|
|
3889
|
70
|
3890
|
0
|
3891 if test "${window_system}" = "none" ; then
|
|
3892 if test -z "${with_jpeg}" ; then
|
|
3893 with_jpeg=no
|
|
3894 elif test "${with_jpeg}" != "no" ; then
|
|
3895 echo "JPEG support cannot be specified without a window system."
|
|
3896 exit 1
|
|
3897 fi
|
|
3898 else
|
70
|
3899 if test "${with_jpeg}" != "no" -a \
|
|
3900 "${with_jpeg}" != "yes" ; then
|
|
3901 test -n "$silent" || echo "checking for jpeglib.h"
|
0
|
3902 cat > conftest.${ac_ext} <<EOF
|
|
3903 #include "confdefs.h"
|
|
3904 #include <jpeglib.h>
|
|
3905 EOF
|
|
3906 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
3907 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
3908 echo "$ac_err"
|
|
3909 fi
|
|
3910 if test -z "$ac_err"; then
|
|
3911 rm -rf conftest*
|
|
3912 jpeglib_incl="yes"
|
|
3913
|
|
3914 else
|
|
3915 rm -rf conftest*
|
|
3916 with_jpeg="no"
|
|
3917 fi
|
|
3918 rm -f conftest*
|
|
3919
|
70
|
3920 test "${jpeglib_incl}" = "yes" && { ac_save_LIBS="${LIBS}"
|
0
|
3921 LIBS="${LIBS} -ljpeg"
|
|
3922 ac_have_lib=""
|
|
3923 test -n "$silent" || echo "checking for -ljpeg"
|
|
3924 cat > conftest.${ac_ext} <<EOF
|
|
3925 #include "confdefs.h"
|
|
3926
|
|
3927 int main() { return 0; }
|
|
3928 int t() { main();; return 0; }
|
|
3929 EOF
|
|
3930 if eval $ac_compile; then
|
|
3931 rm -rf conftest*
|
|
3932 ac_have_lib="1"
|
|
3933
|
|
3934 fi
|
|
3935 rm -f conftest*
|
|
3936 LIBS="${ac_save_LIBS}"
|
|
3937 if test -n "${ac_have_lib}"; then
|
|
3938 :; with_jpeg="yes"
|
|
3939 else
|
|
3940 :;
|
|
3941 fi
|
70
|
3942 }
|
0
|
3943 fi
|
|
3944 fi
|
70
|
3945 test "${with_jpeg}" = yes &&
|
0
|
3946 {
|
|
3947 test -n "$verbose" && \
|
|
3948 echo " defining HAVE_JPEG"
|
|
3949 echo "#define" HAVE_JPEG "1" >> confdefs.h
|
|
3950 DEFS="$DEFS -DHAVE_JPEG=1"
|
|
3951 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_JPEG\${ac_dB}HAVE_JPEG\${ac_dC}1\${ac_dD}
|
|
3952 \${ac_uA}HAVE_JPEG\${ac_uB}HAVE_JPEG\${ac_uC}1\${ac_uD}
|
|
3953 \${ac_eA}HAVE_JPEG\${ac_eB}HAVE_JPEG\${ac_eC}1\${ac_eD}
|
|
3954 "
|
|
3955 }
|
|
3956
|
70
|
3957
|
0
|
3958 if test "${window_system}" = "none" ; then
|
|
3959 if test -z "${with_png}" ; then
|
|
3960 with_png=no
|
|
3961 elif test "${with_png}" != "no" ; then
|
|
3962 echo "PNG support cannot be specified without a window system."
|
|
3963 exit 1
|
|
3964 fi
|
|
3965 fi
|
70
|
3966 test -z "${with_png}" && { test -n "$silent" || echo "checking for png.h"
|
0
|
3967 cat > conftest.${ac_ext} <<EOF
|
|
3968 #include "confdefs.h"
|
|
3969 #include <png.h>
|
|
3970 EOF
|
|
3971 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
3972 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
3973 echo "$ac_err"
|
|
3974 fi
|
|
3975 if test -z "$ac_err"; then
|
|
3976 :
|
|
3977 else
|
|
3978 rm -rf conftest*
|
|
3979 with_png="no"
|
|
3980 fi
|
|
3981 rm -f conftest*
|
70
|
3982 }
|
84
|
3983 test -z "${with_png}" && { test -n "$silent" || echo "checking for pow"
|
0
|
3984 cat > conftest.${ac_ext} <<EOF
|
|
3985 #include "confdefs.h"
|
84
|
3986 #include <ctype.h>
|
0
|
3987 int main() { return 0; }
|
84
|
3988 int t() {
|
|
3989 /* The GNU C library defines this for functions which it implements
|
|
3990 to always fail with ENOSYS. Some functions are actually named
|
|
3991 something starting with __ and the normal name is an alias. */
|
|
3992 #if defined (__stub_pow) || defined (__stub___pow)
|
|
3993 choke me
|
|
3994 #else
|
|
3995 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3996 extern char pow(); pow();
|
|
3997 #endif
|
|
3998 ; return 0; }
|
0
|
3999 EOF
|
|
4000 if eval $ac_compile; then
|
84
|
4001 :
|
|
4002 else
|
0
|
4003 rm -rf conftest*
|
84
|
4004 with_png="no"
|
0
|
4005 fi
|
|
4006 rm -f conftest*
|
70
|
4007 }
|
84
|
4008 if test -z "${with_png}" ; then
|
|
4009 ac_save_LIBS="${LIBS}"
|
0
|
4010 LIBS="${LIBS} -lz"
|
|
4011 ac_have_lib=""
|
|
4012 test -n "$silent" || echo "checking for -lz"
|
|
4013 cat > conftest.${ac_ext} <<EOF
|
|
4014 #include "confdefs.h"
|
|
4015
|
|
4016 int main() { return 0; }
|
|
4017 int t() { main();; return 0; }
|
|
4018 EOF
|
|
4019 if eval $ac_compile; then
|
|
4020 rm -rf conftest*
|
|
4021 ac_have_lib="1"
|
|
4022
|
|
4023 fi
|
|
4024 rm -f conftest*
|
|
4025 LIBS="${ac_save_LIBS}"
|
|
4026 if test -n "${ac_have_lib}"; then
|
|
4027 :; with_png="yes"
|
|
4028 else
|
|
4029 :;
|
|
4030 fi
|
84
|
4031
|
|
4032 test -z "${with_png}" && { ac_save_LIBS="${LIBS}"
|
0
|
4033 LIBS="${LIBS} -lgz"
|
|
4034 ac_have_lib=""
|
|
4035 test -n "$silent" || echo "checking for -lgz"
|
|
4036 cat > conftest.${ac_ext} <<EOF
|
|
4037 #include "confdefs.h"
|
|
4038
|
|
4039 int main() { return 0; }
|
|
4040 int t() { main();; return 0; }
|
|
4041 EOF
|
|
4042 if eval $ac_compile; then
|
|
4043 rm -rf conftest*
|
|
4044 ac_have_lib="1"
|
|
4045
|
|
4046 fi
|
|
4047 rm -f conftest*
|
|
4048 LIBS="${ac_save_LIBS}"
|
|
4049 if test -n "${ac_have_lib}"; then
|
|
4050 :; with_png="gnuz"
|
|
4051 else
|
|
4052 :; with_png="no"
|
|
4053 fi
|
70
|
4054 }
|
84
|
4055 if test "${with_png}" != "no"; then
|
|
4056 png_save_libs="${LIBS}"
|
|
4057 case "${with_png}" in
|
|
4058 yes ) LIBS="${LIBS} -lz" ;;
|
|
4059 gnuz ) LIBS="${LIBS} -lgz" ;;
|
|
4060 esac
|
|
4061 ac_save_LIBS="${LIBS}"
|
|
4062 LIBS="${LIBS} -lpng"
|
|
4063 ac_have_lib=""
|
|
4064 test -n "$silent" || echo "checking for -lpng"
|
|
4065 cat > conftest.${ac_ext} <<EOF
|
|
4066 #include "confdefs.h"
|
|
4067
|
|
4068 int main() { return 0; }
|
|
4069 int t() { main();; return 0; }
|
|
4070 EOF
|
|
4071 if eval $ac_compile; then
|
|
4072 rm -rf conftest*
|
|
4073 ac_have_lib="1"
|
|
4074
|
|
4075 fi
|
|
4076 rm -f conftest*
|
|
4077 LIBS="${ac_save_LIBS}"
|
|
4078 if test -n "${ac_have_lib}"; then
|
|
4079 :;
|
|
4080 else
|
|
4081 :; with_png="no"
|
|
4082 fi
|
|
4083
|
|
4084 LIBS="$png_save_libs"
|
|
4085 fi
|
|
4086 fi
|
70
|
4087 case "${with_png}" in
|
|
4088 yes )
|
0
|
4089 {
|
|
4090 test -n "$verbose" && \
|
|
4091 echo " defining HAVE_PNG"
|
|
4092 echo "#define" HAVE_PNG "1" >> confdefs.h
|
|
4093 DEFS="$DEFS -DHAVE_PNG=1"
|
|
4094 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG\${ac_dB}HAVE_PNG\${ac_dC}1\${ac_dD}
|
|
4095 \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD}
|
|
4096 \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD}
|
|
4097 "
|
|
4098 }
|
70
|
4099 ;;
|
|
4100 gnuz )
|
0
|
4101 {
|
|
4102 test -n "$verbose" && \
|
|
4103 echo " defining HAVE_PNG"
|
|
4104 echo "#define" HAVE_PNG "1" >> confdefs.h
|
|
4105 DEFS="$DEFS -DHAVE_PNG=1"
|
|
4106 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG\${ac_dB}HAVE_PNG\${ac_dC}1\${ac_dD}
|
|
4107 \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD}
|
|
4108 \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD}
|
|
4109 "
|
|
4110 }
|
70
|
4111
|
0
|
4112 {
|
|
4113 test -n "$verbose" && \
|
|
4114 echo " defining HAVE_PNG_GNUZ"
|
|
4115 echo "#define" HAVE_PNG_GNUZ "1" >> confdefs.h
|
|
4116 DEFS="$DEFS -DHAVE_PNG_GNUZ=1"
|
|
4117 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG_GNUZ\${ac_dB}HAVE_PNG_GNUZ\${ac_dC}1\${ac_dD}
|
|
4118 \${ac_uA}HAVE_PNG_GNUZ\${ac_uB}HAVE_PNG_GNUZ\${ac_uC}1\${ac_uD}
|
|
4119 \${ac_eA}HAVE_PNG_GNUZ\${ac_eB}HAVE_PNG_GNUZ\${ac_eC}1\${ac_eD}
|
|
4120 "
|
|
4121 }
|
70
|
4122 ;;
|
|
4123 esac
|
|
4124
|
|
4125 test "${with_tiff}" = yes &&
|
0
|
4126 {
|
|
4127 test -n "$verbose" && \
|
|
4128 echo " defining HAVE_TIFF"
|
|
4129 echo "#define" HAVE_TIFF "1" >> confdefs.h
|
|
4130 DEFS="$DEFS -DHAVE_TIFF=1"
|
|
4131 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TIFF\${ac_dB}HAVE_TIFF\${ac_dC}1\${ac_dD}
|
|
4132 \${ac_uA}HAVE_TIFF\${ac_uB}HAVE_TIFF\${ac_uC}1\${ac_uD}
|
|
4133 \${ac_eA}HAVE_TIFF\${ac_eB}HAVE_TIFF\${ac_eC}1\${ac_eD}
|
|
4134 "
|
|
4135 }
|
|
4136
|
|
4137
|
|
4138 # We use Lucid toolkit defaults for the menubars and scrollbars, but
|
|
4139 # if Motif is available we use it for the dialog boxes.
|
|
4140 if test "${window_system}" != "none" ; then
|
70
|
4141 save_libs="${LIBS}"
|
0
|
4142 if test "x${with_dialogs}" = "x" ; then
|
|
4143 # We can't use ac_have_library because it simply appends -lXm to the
|
|
4144 # end of the link line which is insufficient since -lXm will generate
|
|
4145 # dependencies on -lXt
|
|
4146 # begin expansion of ac_have_library
|
|
4147 ac_save_LIBS="${LIBS}"
|
|
4148 LIBS="${LIBS} -lXm -lXt ${LIBS}"
|
|
4149 ac_have_lib=""
|
|
4150 test -n "$silent" || echo "checking for -lXm"
|
|
4151 cat > conftest.${ac_ext} <<EOF
|
|
4152 #include "confdefs.h"
|
|
4153
|
|
4154 int main() { return 0; }
|
|
4155 int t() { main();; return 0; }
|
|
4156 EOF
|
|
4157 if eval $ac_compile; then
|
|
4158 rm -rf conftest*
|
|
4159 ac_have_lib="1"
|
|
4160
|
|
4161 fi
|
|
4162 rm -f conftest*
|
|
4163 LIBS="${ac_save_LIBS}"
|
|
4164 if test -n "${ac_have_lib}"; then
|
70
|
4165 :; with_dialogs="motif" motif_libs="-lXm -lXt"
|
0
|
4166 else
|
|
4167 :;
|
|
4168 fi
|
|
4169 # end expansion of ac_have_library
|
|
4170 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
|
|
4171 if test "${with_dialogs}" != "motif" ; then
|
|
4172 # begin expansion of ac_have_library
|
|
4173 ac_save_LIBS="${LIBS}"
|
|
4174 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}"
|
|
4175 ac_have_lib=""
|
|
4176 test -n "$silent" || echo "checking for -lXm in another way"
|
|
4177 cat > conftest.${ac_ext} <<EOF
|
|
4178 #include "confdefs.h"
|
|
4179
|
|
4180 int main() { return 0; }
|
|
4181 int t() { main();; return 0; }
|
|
4182 EOF
|
|
4183 if eval $ac_compile; then
|
|
4184 rm -rf conftest*
|
|
4185 ac_have_lib="1"
|
|
4186
|
|
4187 fi
|
|
4188 rm -f conftest*
|
|
4189 LIBS="${ac_save_LIBS}"
|
|
4190 if test -n "${ac_have_lib}"; then
|
70
|
4191 :; with_dialogs="motif" motif_libs="-lXm -lXt -lXpm -lXext"
|
0
|
4192 else
|
|
4193 :;
|
|
4194 fi
|
|
4195 # end expansion of ac_have_library
|
|
4196 fi
|
70
|
4197 test "${with_dialogs}" = "motif" && test -n "$verbose" && echo " Found Motif"
|
0
|
4198 fi
|
|
4199 fi
|
|
4200
|
|
4201 # Finish ensuring that we have values for the various toolkit items.
|
70
|
4202
|
|
4203 test "${with_menubars}" = "motif" -o \
|
|
4204 "${with_scrollbars}" = "motif" -o \
|
|
4205 "${with_dialogs}" = "motif" && with_motif="yes"
|
82
|
4206 test "${with_menubars}" = "athena" -o \
|
|
4207 "${with_scrollbars}" = "athena" -o \
|
|
4208 "${with_dialogs}" = "athena" && with_athena="yes"
|
|
4209 test "${with_menubars}" = "athena3d" -o \
|
|
4210 "${with_scrollbars}" = "athena3d" -o \
|
|
4211 "${with_dialogs}" = "athena3d" && with_athena="yes"
|
70
|
4212 test "${with_menubars}" = "" && with_menubars="lucid"
|
|
4213 test "${with_menubars}" = "athena" && with_menubars="lucid"
|
|
4214 test "${with_scrollbars}" = "" && with_scrollbars="lucid"
|
|
4215 test "${with_dialogs}" = "" && with_dialogs="athena"
|
|
4216 test "${with_dialogs}" = "lucid" && with_dialogs="athena"
|
|
4217
|
|
4218 test "${with_menubars}" != "no" &&
|
|
4219 {
|
|
4220 test -n "$verbose" && \
|
|
4221 echo " defining HAVE_MENUBARS"
|
|
4222 echo "#define" HAVE_MENUBARS "1" >> confdefs.h
|
|
4223 DEFS="$DEFS -DHAVE_MENUBARS=1"
|
|
4224 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MENUBARS\${ac_dB}HAVE_MENUBARS\${ac_dC}1\${ac_dD}
|
|
4225 \${ac_uA}HAVE_MENUBARS\${ac_uB}HAVE_MENUBARS\${ac_uC}1\${ac_uD}
|
|
4226 \${ac_eA}HAVE_MENUBARS\${ac_eB}HAVE_MENUBARS\${ac_eC}1\${ac_eD}
|
|
4227 "
|
|
4228 }
|
|
4229
|
|
4230 test "${with_scrollbars}" != "no" &&
|
|
4231 {
|
|
4232 test -n "$verbose" && \
|
|
4233 echo " defining HAVE_SCROLLBARS"
|
|
4234 echo "#define" HAVE_SCROLLBARS "1" >> confdefs.h
|
|
4235 DEFS="$DEFS -DHAVE_SCROLLBARS=1"
|
|
4236 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SCROLLBARS\${ac_dB}HAVE_SCROLLBARS\${ac_dC}1\${ac_dD}
|
|
4237 \${ac_uA}HAVE_SCROLLBARS\${ac_uB}HAVE_SCROLLBARS\${ac_uC}1\${ac_uD}
|
|
4238 \${ac_eA}HAVE_SCROLLBARS\${ac_eB}HAVE_SCROLLBARS\${ac_eC}1\${ac_eD}
|
|
4239 "
|
|
4240 }
|
|
4241
|
74
|
4242 test "${with_dialogs}" != "no" &&
|
70
|
4243 {
|
|
4244 test -n "$verbose" && \
|
|
4245 echo " defining HAVE_DIALOGS"
|
|
4246 echo "#define" HAVE_DIALOGS "1" >> confdefs.h
|
|
4247 DEFS="$DEFS -DHAVE_DIALOGS=1"
|
|
4248 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DIALOGS\${ac_dB}HAVE_DIALOGS\${ac_dC}1\${ac_dD}
|
|
4249 \${ac_uA}HAVE_DIALOGS\${ac_uB}HAVE_DIALOGS\${ac_uC}1\${ac_uD}
|
|
4250 \${ac_eA}HAVE_DIALOGS\${ac_eB}HAVE_DIALOGS\${ac_eC}1\${ac_eD}
|
|
4251 "
|
|
4252 }
|
|
4253
|
|
4254
|
|
4255 test "${with_menubars}" = "lucid" &&
|
|
4256 {
|
|
4257 test -n "$verbose" && \
|
|
4258 echo " defining LWLIB_MENUBARS_LUCID"
|
|
4259 echo "#define" LWLIB_MENUBARS_LUCID "1" >> confdefs.h
|
|
4260 DEFS="$DEFS -DLWLIB_MENUBARS_LUCID=1"
|
|
4261 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_LUCID\${ac_dB}LWLIB_MENUBARS_LUCID\${ac_dC}1\${ac_dD}
|
|
4262 \${ac_uA}LWLIB_MENUBARS_LUCID\${ac_uB}LWLIB_MENUBARS_LUCID\${ac_uC}1\${ac_uD}
|
|
4263 \${ac_eA}LWLIB_MENUBARS_LUCID\${ac_eB}LWLIB_MENUBARS_LUCID\${ac_eC}1\${ac_eD}
|
|
4264 "
|
|
4265 }
|
|
4266
|
|
4267 test "${with_menubars}" = "motif" &&
|
|
4268 {
|
|
4269 test -n "$verbose" && \
|
|
4270 echo " defining LWLIB_MENUBARS_MOTIF"
|
|
4271 echo "#define" LWLIB_MENUBARS_MOTIF "1" >> confdefs.h
|
|
4272 DEFS="$DEFS -DLWLIB_MENUBARS_MOTIF=1"
|
|
4273 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_MOTIF\${ac_dB}LWLIB_MENUBARS_MOTIF\${ac_dC}1\${ac_dD}
|
|
4274 \${ac_uA}LWLIB_MENUBARS_MOTIF\${ac_uB}LWLIB_MENUBARS_MOTIF\${ac_uC}1\${ac_uD}
|
|
4275 \${ac_eA}LWLIB_MENUBARS_MOTIF\${ac_eB}LWLIB_MENUBARS_MOTIF\${ac_eC}1\${ac_eD}
|
|
4276 "
|
|
4277 }
|
|
4278
|
|
4279 test "${with_scrollbars}" = "lucid" &&
|
|
4280 {
|
|
4281 test -n "$verbose" && \
|
|
4282 echo " defining LWLIB_SCROLLBARS_LUCID"
|
|
4283 echo "#define" LWLIB_SCROLLBARS_LUCID "1" >> confdefs.h
|
|
4284 DEFS="$DEFS -DLWLIB_SCROLLBARS_LUCID=1"
|
|
4285 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_LUCID\${ac_dB}LWLIB_SCROLLBARS_LUCID\${ac_dC}1\${ac_dD}
|
|
4286 \${ac_uA}LWLIB_SCROLLBARS_LUCID\${ac_uB}LWLIB_SCROLLBARS_LUCID\${ac_uC}1\${ac_uD}
|
|
4287 \${ac_eA}LWLIB_SCROLLBARS_LUCID\${ac_eB}LWLIB_SCROLLBARS_LUCID\${ac_eC}1\${ac_eD}
|
|
4288 "
|
|
4289 }
|
|
4290
|
|
4291 test "${with_scrollbars}" = "motif" &&
|
|
4292 {
|
|
4293 test -n "$verbose" && \
|
|
4294 echo " defining LWLIB_SCROLLBARS_MOTIF"
|
|
4295 echo "#define" LWLIB_SCROLLBARS_MOTIF "1" >> confdefs.h
|
|
4296 DEFS="$DEFS -DLWLIB_SCROLLBARS_MOTIF=1"
|
|
4297 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_MOTIF\${ac_dB}LWLIB_SCROLLBARS_MOTIF\${ac_dC}1\${ac_dD}
|
|
4298 \${ac_uA}LWLIB_SCROLLBARS_MOTIF\${ac_uB}LWLIB_SCROLLBARS_MOTIF\${ac_uC}1\${ac_uD}
|
|
4299 \${ac_eA}LWLIB_SCROLLBARS_MOTIF\${ac_eB}LWLIB_SCROLLBARS_MOTIF\${ac_eC}1\${ac_eD}
|
|
4300 "
|
|
4301 }
|
|
4302
|
|
4303 test "${with_scrollbars}" = "athena" &&
|
|
4304 {
|
|
4305 test -n "$verbose" && \
|
|
4306 echo " defining LWLIB_SCROLLBARS_ATHENA"
|
|
4307 echo "#define" LWLIB_SCROLLBARS_ATHENA "1" >> confdefs.h
|
|
4308 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA=1"
|
|
4309 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA\${ac_dB}LWLIB_SCROLLBARS_ATHENA\${ac_dC}1\${ac_dD}
|
|
4310 \${ac_uA}LWLIB_SCROLLBARS_ATHENA\${ac_uB}LWLIB_SCROLLBARS_ATHENA\${ac_uC}1\${ac_uD}
|
|
4311 \${ac_eA}LWLIB_SCROLLBARS_ATHENA\${ac_eB}LWLIB_SCROLLBARS_ATHENA\${ac_eC}1\${ac_eD}
|
|
4312 "
|
|
4313 }
|
|
4314
|
82
|
4315 if test "${with_scrollbars}" = "athena3d"; then
|
|
4316
|
|
4317 {
|
|
4318 test -n "$verbose" && \
|
|
4319 echo " defining LWLIB_SCROLLBARS_ATHENA"
|
|
4320 echo "#define" LWLIB_SCROLLBARS_ATHENA "1" >> confdefs.h
|
|
4321 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA=1"
|
|
4322 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA\${ac_dB}LWLIB_SCROLLBARS_ATHENA\${ac_dC}1\${ac_dD}
|
|
4323 \${ac_uA}LWLIB_SCROLLBARS_ATHENA\${ac_uB}LWLIB_SCROLLBARS_ATHENA\${ac_uC}1\${ac_uD}
|
|
4324 \${ac_eA}LWLIB_SCROLLBARS_ATHENA\${ac_eB}LWLIB_SCROLLBARS_ATHENA\${ac_eC}1\${ac_eD}
|
|
4325 "
|
|
4326 }
|
|
4327
|
|
4328
|
|
4329 {
|
|
4330 test -n "$verbose" && \
|
|
4331 echo " defining LWLIB_SCROLLBARS_ATHENA3D"
|
|
4332 echo "#define" LWLIB_SCROLLBARS_ATHENA3D "1" >> confdefs.h
|
|
4333 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA3D=1"
|
|
4334 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA3D\${ac_dB}LWLIB_SCROLLBARS_ATHENA3D\${ac_dC}1\${ac_dD}
|
|
4335 \${ac_uA}LWLIB_SCROLLBARS_ATHENA3D\${ac_uB}LWLIB_SCROLLBARS_ATHENA3D\${ac_uC}1\${ac_uD}
|
|
4336 \${ac_eA}LWLIB_SCROLLBARS_ATHENA3D\${ac_eB}LWLIB_SCROLLBARS_ATHENA3D\${ac_eC}1\${ac_eD}
|
|
4337 "
|
|
4338 }
|
|
4339
|
|
4340 fi
|
70
|
4341 test "${with_dialogs}" = "motif" &&
|
|
4342 {
|
|
4343 test -n "$verbose" && \
|
|
4344 echo " defining LWLIB_DIALOGS_MOTIF"
|
|
4345 echo "#define" LWLIB_DIALOGS_MOTIF "1" >> confdefs.h
|
|
4346 DEFS="$DEFS -DLWLIB_DIALOGS_MOTIF=1"
|
|
4347 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_MOTIF\${ac_dB}LWLIB_DIALOGS_MOTIF\${ac_dC}1\${ac_dD}
|
|
4348 \${ac_uA}LWLIB_DIALOGS_MOTIF\${ac_uB}LWLIB_DIALOGS_MOTIF\${ac_uC}1\${ac_uD}
|
|
4349 \${ac_eA}LWLIB_DIALOGS_MOTIF\${ac_eB}LWLIB_DIALOGS_MOTIF\${ac_eC}1\${ac_eD}
|
|
4350 "
|
|
4351 }
|
|
4352
|
|
4353 test "${with_dialogs}" = "athena" &&
|
|
4354 {
|
|
4355 test -n "$verbose" && \
|
|
4356 echo " defining LWLIB_DIALOGS_ATHENA"
|
|
4357 echo "#define" LWLIB_DIALOGS_ATHENA "1" >> confdefs.h
|
|
4358 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA=1"
|
|
4359 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA\${ac_dB}LWLIB_DIALOGS_ATHENA\${ac_dC}1\${ac_dD}
|
|
4360 \${ac_uA}LWLIB_DIALOGS_ATHENA\${ac_uB}LWLIB_DIALOGS_ATHENA\${ac_uC}1\${ac_uD}
|
|
4361 \${ac_eA}LWLIB_DIALOGS_ATHENA\${ac_eB}LWLIB_DIALOGS_ATHENA\${ac_eC}1\${ac_eD}
|
|
4362 "
|
|
4363 }
|
0
|
4364
|
82
|
4365 if test "${with_dialogs}" = "athena3d"; then
|
|
4366
|
|
4367 {
|
|
4368 test -n "$verbose" && \
|
|
4369 echo " defining LWLIB_DIALOGS_ATHENA"
|
|
4370 echo "#define" LWLIB_DIALOGS_ATHENA "1" >> confdefs.h
|
|
4371 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA=1"
|
|
4372 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA\${ac_dB}LWLIB_DIALOGS_ATHENA\${ac_dC}1\${ac_dD}
|
|
4373 \${ac_uA}LWLIB_DIALOGS_ATHENA\${ac_uB}LWLIB_DIALOGS_ATHENA\${ac_uC}1\${ac_uD}
|
|
4374 \${ac_eA}LWLIB_DIALOGS_ATHENA\${ac_eB}LWLIB_DIALOGS_ATHENA\${ac_eC}1\${ac_eD}
|
|
4375 "
|
|
4376 }
|
|
4377
|
|
4378
|
|
4379 {
|
|
4380 test -n "$verbose" && \
|
|
4381 echo " defining LWLIB_DIALOGS_ATHENA3D"
|
|
4382 echo "#define" LWLIB_DIALOGS_ATHENA3D "1" >> confdefs.h
|
|
4383 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA3D=1"
|
|
4384 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA3D\${ac_dB}LWLIB_DIALOGS_ATHENA3D\${ac_dC}1\${ac_dD}
|
|
4385 \${ac_uA}LWLIB_DIALOGS_ATHENA3D\${ac_uB}LWLIB_DIALOGS_ATHENA3D\${ac_uC}1\${ac_uD}
|
|
4386 \${ac_eA}LWLIB_DIALOGS_ATHENA3D\${ac_eB}LWLIB_DIALOGS_ATHENA3D\${ac_eC}1\${ac_eD}
|
|
4387 "
|
|
4388 }
|
|
4389
|
|
4390 fi
|
0
|
4391
|
|
4392 ############################################################################
|
|
4393 # #
|
|
4394 # Misc other feature tests #
|
|
4395 # #
|
|
4396 ############################################################################
|
|
4397
|
70
|
4398 # Mule-dependent option processing
|
|
4399 if test "$with_mule" = "yes" ; then
|
|
4400 # Do we have the XmIm* routines? And if so, do we want to use them?
|
|
4401 test "$with_xim" != no && test -n "$silent" || echo "checking for XIM"
|
|
4402 if test -z "$with_xim" -o "$with_xim" = "yes" ; then
|
|
4403 xim_save_libs="$LIBS"
|
|
4404 LIBS="${motif_libs} ${LIBS}"
|
|
4405 test -n "$silent" || echo "checking for XmImMbLookupString"
|
|
4406 cat > conftest.${ac_ext} <<EOF
|
|
4407 #include "confdefs.h"
|
|
4408 #include <ctype.h>
|
|
4409 int main() { return 0; }
|
|
4410 int t() {
|
|
4411 /* The GNU C library defines this for functions which it implements
|
|
4412 to always fail with ENOSYS. Some functions are actually named
|
|
4413 something starting with __ and the normal name is an alias. */
|
|
4414 #if defined (__stub_XmImMbLookupString) || defined (__stub___XmImMbLookupString)
|
|
4415 choke me
|
|
4416 #else
|
|
4417 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4418 extern char XmImMbLookupString(); XmImMbLookupString();
|
|
4419 #endif
|
|
4420 ; return 0; }
|
|
4421 EOF
|
|
4422 if eval $ac_compile; then
|
|
4423 rm -rf conftest*
|
|
4424 have_XmIm=yes
|
|
4425
|
|
4426 else
|
|
4427 rm -rf conftest*
|
|
4428 have_XmIm=no
|
|
4429 fi
|
|
4430 rm -f conftest*
|
|
4431
|
|
4432 LIBS="$xim_save_libs"
|
|
4433 if test "$have_XmIm" = "yes"; then with_xim=motif
|
|
4434 elif test "$with_xim" = "yes"; then with_xim=xlib
|
|
4435 else with_xim=no
|
|
4436 fi
|
|
4437 fi
|
|
4438 if test "$with_xim" != "no" ; then
|
|
4439
|
|
4440 {
|
|
4441 test -n "$verbose" && \
|
|
4442 echo " defining HAVE_XIM"
|
|
4443 echo "#define" HAVE_XIM "1" >> confdefs.h
|
|
4444 DEFS="$DEFS -DHAVE_XIM=1"
|
|
4445 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XIM\${ac_dB}HAVE_XIM\${ac_dC}1\${ac_dD}
|
|
4446 \${ac_uA}HAVE_XIM\${ac_uB}HAVE_XIM\${ac_uC}1\${ac_uD}
|
|
4447 \${ac_eA}HAVE_XIM\${ac_eB}HAVE_XIM\${ac_eC}1\${ac_eD}
|
|
4448 "
|
|
4449 }
|
|
4450
|
|
4451 test "$with_xim" = "xlib" &&
|
|
4452 {
|
|
4453 test -n "$verbose" && \
|
|
4454 echo " defining XIM_XLIB"
|
|
4455 echo "#define" XIM_XLIB "1" >> confdefs.h
|
|
4456 DEFS="$DEFS -DXIM_XLIB=1"
|
|
4457 ac_sed_defs="${ac_sed_defs}\${ac_dA}XIM_XLIB\${ac_dB}XIM_XLIB\${ac_dC}1\${ac_dD}
|
|
4458 \${ac_uA}XIM_XLIB\${ac_uB}XIM_XLIB\${ac_uC}1\${ac_uD}
|
|
4459 \${ac_eA}XIM_XLIB\${ac_eB}XIM_XLIB\${ac_eC}1\${ac_eD}
|
|
4460 "
|
|
4461 }
|
|
4462
|
|
4463 test "$with_xim" = "motif" &&
|
|
4464 {
|
|
4465 test -n "$verbose" && \
|
|
4466 echo " defining XIM_MOTIF"
|
|
4467 echo "#define" XIM_MOTIF "1" >> confdefs.h
|
|
4468 DEFS="$DEFS -DXIM_MOTIF=1"
|
|
4469 ac_sed_defs="${ac_sed_defs}\${ac_dA}XIM_MOTIF\${ac_dB}XIM_MOTIF\${ac_dC}1\${ac_dD}
|
|
4470 \${ac_uA}XIM_MOTIF\${ac_uB}XIM_MOTIF\${ac_uC}1\${ac_uD}
|
|
4471 \${ac_eA}XIM_MOTIF\${ac_eB}XIM_MOTIF\${ac_eC}1\${ac_eD}
|
|
4472 "
|
|
4473 }
|
100
|
4474
|
98
|
4475 fi
|
|
4476 # wnn6 implies wnn support
|
|
4477 if test "$with_wnn6" = "yes" ; then
|
|
4478 with_wnn=yes
|
70
|
4479 fi
|
|
4480 else # Other internationalization features depend on Mule
|
|
4481 with_mule="no"
|
98
|
4482 for feature in xim canna wnn wnn6 ; do
|
70
|
4483 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
|
|
4484 echo "configure: warning: --with-$feature ignored: Not valid without Mule support" >&2
|
|
4485 fi
|
|
4486 eval "with_$feature=no"
|
|
4487 done
|
|
4488 fi
|
|
4489
|
100
|
4490 #
|
|
4491 # set defaults for finding WNN includes and libs
|
|
4492 #
|
|
4493 if test "${with_wnn}" = "yes" ; then
|
114
|
4494 for arg in "-I${wnn_includes}" "-I/usr/X11R6/include/wnn" "-I/usr/include/wnn"
|
100
|
4495 do
|
|
4496 if test -f `echo "${arg}/wnnerror.h" | sed 's/^\-I//'` ; then
|
|
4497 C_SWITCH_SITE="${C_SWITCH_SITE} ${arg}"
|
|
4498 wnn_includes=${arg}
|
|
4499 fi
|
|
4500 done
|
114
|
4501 for arg in "-L${wnn_libraries}" "-L/usr/X11R6/lib" "-L/usr/lib"
|
100
|
4502 do
|
|
4503 if test -f `echo "${arg}/libwnn.a" | sed 's/^\-L//'` ; then
|
|
4504 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${arg}"
|
|
4505 wnn_libraries=${arg}
|
|
4506 fi
|
|
4507 done
|
|
4508 fi
|
|
4509
|
110
|
4510 #
|
|
4511 # set defaults for finding Canna includes and libs
|
|
4512 #
|
|
4513 if test "${with_canna}" = "yes" ; then
|
|
4514 for arg in "-I${canna_includes}" "-I/usr/X11R6/include"
|
|
4515 do
|
|
4516 if test -f `echo "${arg}/canna/RK.h" | sed 's/^\-I//'` ; then
|
|
4517 C_SWITCH_SITE="${C_SWITCH_SITE} ${arg}"
|
|
4518 canna_includes=${arg}
|
|
4519 fi
|
|
4520 done
|
114
|
4521 for arg in "-L${canna_libraries}" "-L/usr/X11R6/lib"
|
110
|
4522 do
|
|
4523 if test -f `echo "${arg}/libcanna.a" | sed 's/^\-L//'` ; then
|
|
4524 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${arg}"
|
|
4525 canna_libraries=${arg}
|
|
4526 fi
|
|
4527 done
|
|
4528 fi
|
|
4529
|
0
|
4530 # If netdb.h doesn't declare h_errno, we must declare it by hand.
|
|
4531 test -n "$silent" || echo "checking for declaration of h_errno in netdb.h"
|
|
4532 cat > conftest.${ac_ext} <<EOF
|
|
4533 #include "confdefs.h"
|
|
4534 #include <netdb.h>
|
|
4535 int main() { return 0; }
|
|
4536 int t() { int i = h_errno;; return 0; }
|
|
4537 EOF
|
|
4538 if eval $ac_compile; then
|
|
4539 rm -rf conftest*
|
|
4540
|
|
4541 {
|
|
4542 test -n "$verbose" && \
|
|
4543 echo " defining HAVE_H_ERRNO"
|
|
4544 echo "#define" HAVE_H_ERRNO "1" >> confdefs.h
|
|
4545 DEFS="$DEFS -DHAVE_H_ERRNO=1"
|
|
4546 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_H_ERRNO\${ac_dB}HAVE_H_ERRNO\${ac_dC}1\${ac_dD}
|
|
4547 \${ac_uA}HAVE_H_ERRNO\${ac_uB}HAVE_H_ERRNO\${ac_uC}1\${ac_uD}
|
|
4548 \${ac_eA}HAVE_H_ERRNO\${ac_eB}HAVE_H_ERRNO\${ac_eC}1\${ac_eD}
|
|
4549 "
|
|
4550 }
|
|
4551
|
|
4552
|
|
4553 fi
|
|
4554 rm -f conftest*
|
|
4555
|
|
4556
|
|
4557 test -n "$silent" || echo "checking for sigsetjmp"
|
|
4558 cat > conftest.${ac_ext} <<EOF
|
|
4559 #include "confdefs.h"
|
|
4560 #include <setjmp.h>
|
|
4561 int main() { return 0; }
|
|
4562 int t() { sigjmp_buf bar; sigsetjmp (bar, 0);; return 0; }
|
|
4563 EOF
|
|
4564 if eval $ac_compile; then
|
|
4565 rm -rf conftest*
|
|
4566
|
|
4567 {
|
|
4568 test -n "$verbose" && \
|
|
4569 echo " defining HAVE_SIGSETJMP"
|
|
4570 echo "#define" HAVE_SIGSETJMP "1" >> confdefs.h
|
|
4571 DEFS="$DEFS -DHAVE_SIGSETJMP=1"
|
|
4572 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SIGSETJMP\${ac_dB}HAVE_SIGSETJMP\${ac_dC}1\${ac_dD}
|
|
4573 \${ac_uA}HAVE_SIGSETJMP\${ac_uB}HAVE_SIGSETJMP\${ac_uC}1\${ac_uD}
|
|
4574 \${ac_eA}HAVE_SIGSETJMP\${ac_eB}HAVE_SIGSETJMP\${ac_eC}1\${ac_eD}
|
|
4575 "
|
|
4576 }
|
|
4577
|
|
4578
|
|
4579 fi
|
|
4580 rm -f conftest*
|
|
4581
|
|
4582
|
|
4583 test -n "$silent" || echo "checking whether localtime caches TZ"
|
|
4584 emacs_cv_localtime_cache=
|
|
4585 test -n "$silent" || echo "checking whether cross-compiling"
|
|
4586 # If we cannot run a trivial program, we must be cross compiling.
|
|
4587 cat > conftest.${ac_ext} <<EOF
|
|
4588 #include "confdefs.h"
|
|
4589 main(){exit(0);}
|
|
4590 EOF
|
|
4591 eval $ac_compile
|
|
4592 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
4593 :
|
|
4594 else
|
|
4595 cross_compiling=1
|
|
4596 fi
|
|
4597 rm -fr conftest*
|
|
4598
|
|
4599 if test -n "$cross_compiling"
|
|
4600 then
|
|
4601 # If we have tzset, assume the worst when cross-compiling.
|
|
4602 emacs_cv_localtime_cache=yes
|
|
4603 else
|
|
4604 cat > conftest.${ac_ext} <<EOF
|
|
4605 #include "confdefs.h"
|
|
4606 #include <time.h>
|
|
4607 #if 1 /* STDC_HEADERS */
|
|
4608 # include <stdlib.h>
|
|
4609 #endif
|
|
4610 extern char **environ;
|
|
4611 unset_TZ ()
|
|
4612 {
|
|
4613 char **from, **to;
|
|
4614 for (to = from = environ; (*to = *from); from++)
|
|
4615 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
4616 to++;
|
|
4617 }
|
|
4618 main()
|
|
4619 {
|
|
4620 time_t now = time ((time_t *) 0);
|
|
4621 int hour_GMT0, hour_unset;
|
|
4622 if (putenv ("TZ=GMT0") != 0)
|
|
4623 exit (1);
|
|
4624 hour_GMT0 = localtime (&now)->tm_hour;
|
|
4625 unset_TZ ();
|
|
4626 hour_unset = localtime (&now)->tm_hour;
|
|
4627 if (putenv ("TZ=PST8") != 0)
|
|
4628 exit (1);
|
|
4629 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
4630 exit (1);
|
|
4631 unset_TZ ();
|
|
4632 if (localtime (&now)->tm_hour != hour_unset)
|
|
4633 exit (1);
|
|
4634 exit (0);
|
|
4635 }
|
|
4636 EOF
|
|
4637 eval $ac_compile
|
|
4638 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
4639 emacs_cv_localtime_cache=no
|
|
4640
|
|
4641 else
|
|
4642 emacs_cv_localtime_cache=yes
|
|
4643 fi
|
|
4644 fi
|
|
4645 rm -fr conftest*
|
|
4646 test -n "$verbose" && echo " "$emacs_cv_localtime_cache""
|
|
4647 if test x$emacs_cv_localtime_cache = xyes; then
|
|
4648
|
|
4649 {
|
|
4650 test -n "$verbose" && \
|
|
4651 echo " defining LOCALTIME_CACHE"
|
|
4652 echo "#define" LOCALTIME_CACHE "1" >> confdefs.h
|
|
4653 DEFS="$DEFS -DLOCALTIME_CACHE=1"
|
|
4654 ac_sed_defs="${ac_sed_defs}\${ac_dA}LOCALTIME_CACHE\${ac_dB}LOCALTIME_CACHE\${ac_dC}1\${ac_dD}
|
|
4655 \${ac_uA}LOCALTIME_CACHE\${ac_uB}LOCALTIME_CACHE\${ac_uC}1\${ac_uD}
|
|
4656 \${ac_eA}LOCALTIME_CACHE\${ac_eB}LOCALTIME_CACHE\${ac_eC}1\${ac_eD}
|
|
4657 "
|
|
4658 }
|
|
4659
|
|
4660 fi
|
|
4661
|
|
4662 if test "x$HAVE_TIMEVAL" = xyes; then
|
|
4663 test -n "$silent" || echo "checking for whether gettimeofday can't accept two arguments"
|
|
4664 cat > conftest.${ac_ext} <<EOF
|
|
4665 #include "confdefs.h"
|
|
4666
|
|
4667 #ifdef TIME_WITH_SYS_TIME
|
|
4668 #include <sys/time.h>
|
|
4669 #include <time.h>
|
|
4670 #else
|
|
4671 #ifdef HAVE_SYS_TIME_H
|
|
4672 #include <sys/time.h>
|
|
4673 #else
|
|
4674 #include <time.h>
|
|
4675 #endif
|
|
4676 #endif
|
|
4677
|
|
4678 int main() { return 0; }
|
|
4679 int t() {
|
|
4680 struct timeval time;
|
|
4681 struct timezone dummy;
|
|
4682 gettimeofday (&time, &dummy);
|
|
4683 ; return 0; }
|
|
4684 EOF
|
|
4685 if eval $ac_compile; then
|
|
4686 rm -rf conftest*
|
|
4687 test -n "$verbose" && echo " no"
|
|
4688
|
|
4689 else
|
|
4690 rm -rf conftest*
|
|
4691 test -n "$verbose" && echo " yes"
|
|
4692
|
|
4693 {
|
|
4694 test -n "$verbose" && \
|
|
4695 echo " defining GETTIMEOFDAY_ONE_ARGUMENT"
|
|
4696 echo "#define" GETTIMEOFDAY_ONE_ARGUMENT "1" >> confdefs.h
|
|
4697 DEFS="$DEFS -DGETTIMEOFDAY_ONE_ARGUMENT=1"
|
|
4698 ac_sed_defs="${ac_sed_defs}\${ac_dA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_dB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_dC}1\${ac_dD}
|
|
4699 \${ac_uA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_uB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_uC}1\${ac_uD}
|
|
4700 \${ac_eA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_eB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_eC}1\${ac_eD}
|
|
4701 "
|
|
4702 }
|
|
4703
|
|
4704 fi
|
|
4705 rm -f conftest*
|
|
4706
|
|
4707 fi
|
|
4708
|
|
4709 test -n "$silent" || echo "checking for whether inline functions are supported"
|
|
4710 cat > conftest.${ac_ext} <<EOF
|
|
4711 #include "confdefs.h"
|
|
4712
|
|
4713 int main() { return 0; }
|
|
4714 int t() {
|
|
4715 inline int
|
|
4716 foo ()
|
|
4717 {
|
|
4718 return 0;
|
|
4719 }
|
|
4720 ; return 0; }
|
|
4721 EOF
|
|
4722 if eval $ac_compile; then
|
|
4723 rm -rf conftest*
|
|
4724
|
|
4725 {
|
|
4726 test -n "$verbose" && \
|
|
4727 echo " defining HAVE_INLINE"
|
|
4728 echo "#define" HAVE_INLINE "1" >> confdefs.h
|
|
4729 DEFS="$DEFS -DHAVE_INLINE=1"
|
|
4730 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_INLINE\${ac_dB}HAVE_INLINE\${ac_dC}1\${ac_dD}
|
|
4731 \${ac_uA}HAVE_INLINE\${ac_uB}HAVE_INLINE\${ac_uC}1\${ac_uD}
|
|
4732 \${ac_eA}HAVE_INLINE\${ac_eB}HAVE_INLINE\${ac_eC}1\${ac_eD}
|
|
4733 "
|
|
4734 }
|
|
4735
|
|
4736
|
|
4737 fi
|
|
4738 rm -f conftest*
|
|
4739
|
|
4740
|
|
4741 # This does all sorts of magic to make sure alloca() works OK.
|
|
4742 # It might even add some junk to the top of <config.h>.
|
|
4743 # (I don't understand what goes on here, but it seems to work.)
|
|
4744 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|
4745 # for constant arguments. Useless!
|
|
4746 test -n "$silent" || echo "checking for working alloca.h"
|
|
4747 cat > conftest.${ac_ext} <<EOF
|
|
4748 #include "confdefs.h"
|
|
4749 #include <alloca.h>
|
|
4750 int main() { return 0; }
|
|
4751 int t() { char *p = alloca(2 * sizeof(int));; return 0; }
|
|
4752 EOF
|
|
4753 if eval $ac_compile; then
|
|
4754 rm -rf conftest*
|
|
4755
|
|
4756 {
|
|
4757 test -n "$verbose" && \
|
|
4758 echo " defining HAVE_ALLOCA_H"
|
|
4759 echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
|
|
4760 DEFS="$DEFS -DHAVE_ALLOCA_H=1"
|
|
4761 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD}
|
|
4762 \${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD}
|
|
4763 \${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD}
|
|
4764 "
|
|
4765 }
|
|
4766
|
|
4767
|
|
4768 fi
|
|
4769 rm -f conftest*
|
|
4770
|
|
4771 ac_decl="#ifdef __GNUC__
|
|
4772 #define alloca __builtin_alloca
|
|
4773 #else
|
|
4774 #if HAVE_ALLOCA_H
|
|
4775 #include <alloca.h>
|
|
4776 #else
|
|
4777 #ifdef _AIX
|
|
4778 #pragma alloca
|
|
4779 #else
|
|
4780 char *alloca ();
|
|
4781 #endif
|
|
4782 #endif
|
|
4783 #endif
|
|
4784 "
|
|
4785 test -n "$silent" || echo "checking for alloca"
|
|
4786 cat > conftest.${ac_ext} <<EOF
|
|
4787 #include "confdefs.h"
|
|
4788 $ac_decl
|
|
4789 int main() { return 0; }
|
|
4790 int t() { char *p = (char *) alloca(1);; return 0; }
|
|
4791 EOF
|
|
4792 if eval $ac_compile; then
|
|
4793 rm -rf conftest*
|
|
4794
|
|
4795 {
|
|
4796 test -n "$verbose" && \
|
|
4797 echo " defining HAVE_ALLOCA"
|
|
4798 echo "#define" HAVE_ALLOCA "1" >> confdefs.h
|
|
4799 DEFS="$DEFS -DHAVE_ALLOCA=1"
|
|
4800 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD}
|
|
4801 \${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}
|
|
4802 \${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}
|
|
4803 "
|
|
4804 }
|
|
4805
|
|
4806
|
|
4807 else
|
|
4808 rm -rf conftest*
|
|
4809 ac_alloca_missing=1
|
|
4810 cat > conftest.${ac_ext} <<EOF
|
|
4811 #include "confdefs.h"
|
|
4812
|
|
4813 #if defined(CRAY) && ! defined(CRAY2)
|
|
4814 winnitude
|
|
4815 #else
|
|
4816 lossage
|
|
4817 #endif
|
|
4818
|
|
4819 EOF
|
|
4820 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
4821 if egrep "winnitude" conftest.out >/dev/null 2>&1; then
|
|
4822 rm -rf conftest*
|
|
4823 test -n "$silent" || echo "checking for _getb67"
|
|
4824 cat > conftest.${ac_ext} <<EOF
|
|
4825 #include "confdefs.h"
|
|
4826 #include <ctype.h>
|
|
4827 int main() { return 0; }
|
|
4828 int t() {
|
|
4829 /* The GNU C library defines this for functions which it implements
|
|
4830 to always fail with ENOSYS. Some functions are actually named
|
|
4831 something starting with __ and the normal name is an alias. */
|
|
4832 #if defined (__stub__getb67) || defined (__stub____getb67)
|
|
4833 choke me
|
|
4834 #else
|
|
4835 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4836 extern char _getb67(); _getb67();
|
|
4837 #endif
|
|
4838 ; return 0; }
|
|
4839 EOF
|
|
4840 if eval $ac_compile; then
|
|
4841 rm -rf conftest*
|
|
4842 {
|
|
4843 test -n "$verbose" && \
|
|
4844 echo " defining" CRAY_STACKSEG_END to be "_getb67"
|
|
4845 echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
|
|
4846 DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
|
|
4847 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD}
|
|
4848 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD}
|
|
4849 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD}
|
|
4850 "
|
|
4851 }
|
|
4852
|
|
4853
|
|
4854 else
|
|
4855 rm -rf conftest*
|
|
4856 test -n "$silent" || echo "checking for GETB67"
|
|
4857 cat > conftest.${ac_ext} <<EOF
|
|
4858 #include "confdefs.h"
|
|
4859 #include <ctype.h>
|
|
4860 int main() { return 0; }
|
|
4861 int t() {
|
|
4862 /* The GNU C library defines this for functions which it implements
|
|
4863 to always fail with ENOSYS. Some functions are actually named
|
|
4864 something starting with __ and the normal name is an alias. */
|
|
4865 #if defined (__stub_GETB67) || defined (__stub___GETB67)
|
|
4866 choke me
|
|
4867 #else
|
|
4868 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4869 extern char GETB67(); GETB67();
|
|
4870 #endif
|
|
4871 ; return 0; }
|
|
4872 EOF
|
|
4873 if eval $ac_compile; then
|
|
4874 rm -rf conftest*
|
|
4875 {
|
|
4876 test -n "$verbose" && \
|
|
4877 echo " defining" CRAY_STACKSEG_END to be "GETB67"
|
|
4878 echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
|
|
4879 DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
|
|
4880 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}GETB67\${ac_dD}
|
|
4881 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}GETB67\${ac_uD}
|
|
4882 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}GETB67\${ac_eD}
|
|
4883 "
|
|
4884 }
|
|
4885
|
|
4886
|
|
4887 else
|
|
4888 rm -rf conftest*
|
|
4889 test -n "$silent" || echo "checking for getb67"
|
|
4890 cat > conftest.${ac_ext} <<EOF
|
|
4891 #include "confdefs.h"
|
|
4892 #include <ctype.h>
|
|
4893 int main() { return 0; }
|
|
4894 int t() {
|
|
4895 /* The GNU C library defines this for functions which it implements
|
|
4896 to always fail with ENOSYS. Some functions are actually named
|
|
4897 something starting with __ and the normal name is an alias. */
|
|
4898 #if defined (__stub_getb67) || defined (__stub___getb67)
|
|
4899 choke me
|
|
4900 #else
|
|
4901 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4902 extern char getb67(); getb67();
|
|
4903 #endif
|
|
4904 ; return 0; }
|
|
4905 EOF
|
|
4906 if eval $ac_compile; then
|
|
4907 rm -rf conftest*
|
|
4908 {
|
|
4909 test -n "$verbose" && \
|
|
4910 echo " defining" CRAY_STACKSEG_END to be "getb67"
|
|
4911 echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
|
|
4912 DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
|
|
4913 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}getb67\${ac_dD}
|
|
4914 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}getb67\${ac_uD}
|
|
4915 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}getb67\${ac_eD}
|
|
4916 "
|
|
4917 }
|
|
4918
|
|
4919
|
|
4920 fi
|
|
4921 rm -f conftest*
|
|
4922
|
|
4923 fi
|
|
4924 rm -f conftest*
|
|
4925
|
|
4926 fi
|
|
4927 rm -f conftest*
|
|
4928
|
|
4929
|
|
4930 fi
|
|
4931 rm -f conftest*
|
|
4932
|
|
4933
|
|
4934 fi
|
|
4935 rm -f conftest*
|
|
4936
|
|
4937 if test -n "$ac_alloca_missing"; then
|
|
4938 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
4939 # that cause trouble. Some versions do not even contain alloca or
|
|
4940 # contain a buggy version. If you still want to use their alloca,
|
|
4941 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|
4942 ALLOCA=alloca.o
|
|
4943
|
|
4944 {
|
|
4945 test -n "$verbose" && \
|
|
4946 echo " defining C_ALLOCA"
|
|
4947 echo "#define" C_ALLOCA "1" >> confdefs.h
|
|
4948 DEFS="$DEFS -DC_ALLOCA=1"
|
|
4949 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_ALLOCA\${ac_dB}C_ALLOCA\${ac_dC}1\${ac_dD}
|
|
4950 \${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD}
|
|
4951 \${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD}
|
|
4952 "
|
|
4953 }
|
|
4954
|
|
4955
|
|
4956 test -n "$silent" || echo "checking stack direction for C alloca"
|
|
4957 if test -n "$cross_compiling"
|
|
4958 then
|
|
4959
|
|
4960 {
|
|
4961 test -n "$verbose" && \
|
|
4962 echo " defining" STACK_DIRECTION to be "0"
|
|
4963 echo "#define" STACK_DIRECTION "0" >> confdefs.h
|
|
4964 DEFS="$DEFS -DSTACK_DIRECTION=0"
|
|
4965 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}0\${ac_dD}
|
|
4966 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD}
|
|
4967 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD}
|
|
4968 "
|
|
4969 }
|
|
4970
|
|
4971 else
|
|
4972 cat > conftest.${ac_ext} <<EOF
|
|
4973 #include "confdefs.h"
|
|
4974 find_stack_direction ()
|
|
4975 {
|
|
4976 static char *addr = 0;
|
|
4977 auto char dummy;
|
|
4978 if (addr == 0)
|
|
4979 {
|
|
4980 addr = &dummy;
|
|
4981 return find_stack_direction ();
|
|
4982 }
|
|
4983 else
|
|
4984 return (&dummy > addr) ? 1 : -1;
|
|
4985 }
|
|
4986 main ()
|
|
4987 {
|
|
4988 exit (find_stack_direction() < 0);
|
|
4989 }
|
|
4990 EOF
|
|
4991 eval $ac_compile
|
|
4992 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
4993
|
|
4994 {
|
|
4995 test -n "$verbose" && \
|
|
4996 echo " defining" STACK_DIRECTION to be "1"
|
|
4997 echo "#define" STACK_DIRECTION "1" >> confdefs.h
|
|
4998 DEFS="$DEFS -DSTACK_DIRECTION=1"
|
|
4999 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}1\${ac_dD}
|
|
5000 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD}
|
|
5001 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD}
|
|
5002 "
|
|
5003 }
|
|
5004
|
|
5005
|
|
5006 else
|
|
5007
|
|
5008 {
|
|
5009 test -n "$verbose" && \
|
|
5010 echo " defining" STACK_DIRECTION to be "-1"
|
|
5011 echo "#define" STACK_DIRECTION "-1" >> confdefs.h
|
|
5012 DEFS="$DEFS -DSTACK_DIRECTION=-1"
|
|
5013 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}-1\${ac_dD}
|
|
5014 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD}
|
|
5015 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD}
|
|
5016 "
|
|
5017 }
|
|
5018
|
|
5019 fi
|
|
5020 fi
|
|
5021 rm -fr conftest*
|
|
5022 fi
|
|
5023
|
|
5024
|
|
5025 # Check whether vfork exists and works correctly. (This does more
|
|
5026 # than just check for its existence.) If so, it defines HAVE_VFORK_H.
|
|
5027 # If not, it defines vfork to be fork.
|
|
5028 test -n "$silent" || echo "checking for pid_t in sys/types.h"
|
|
5029 echo '#include "confdefs.h"
|
|
5030 #include <sys/types.h>' > conftest.${ac_ext}
|
|
5031 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
5032 if egrep "pid_t" conftest.out >/dev/null 2>&1; then
|
|
5033 :
|
|
5034 else
|
|
5035 rm -rf conftest*
|
|
5036
|
|
5037 {
|
|
5038 test -n "$verbose" && \
|
|
5039 echo " defining" pid_t to be "int"
|
|
5040 echo "#define" pid_t "int" >> confdefs.h
|
|
5041 DEFS="$DEFS -Dpid_t=int"
|
|
5042 ac_sed_defs="${ac_sed_defs}\${ac_dA}pid_t\${ac_dB}pid_t\${ac_dC}int\${ac_dD}
|
|
5043 \${ac_uA}pid_t\${ac_uB}pid_t\${ac_uC}int\${ac_uD}
|
|
5044 \${ac_eA}pid_t\${ac_eB}pid_t\${ac_eC}int\${ac_eD}
|
|
5045 "
|
|
5046 }
|
|
5047
|
|
5048 fi
|
|
5049 rm -f conftest*
|
|
5050
|
|
5051 test -n "$silent" || echo "checking for vfork.h"
|
|
5052 cat > conftest.${ac_ext} <<EOF
|
|
5053 #include "confdefs.h"
|
|
5054 #include <vfork.h>
|
|
5055 EOF
|
|
5056 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5057 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5058 echo "$ac_err"
|
|
5059 fi
|
|
5060 if test -z "$ac_err"; then
|
|
5061 rm -rf conftest*
|
|
5062
|
|
5063 {
|
|
5064 test -n "$verbose" && \
|
|
5065 echo " defining HAVE_VFORK_H"
|
|
5066 echo "#define" HAVE_VFORK_H "1" >> confdefs.h
|
|
5067 DEFS="$DEFS -DHAVE_VFORK_H=1"
|
|
5068 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_VFORK_H\${ac_dB}HAVE_VFORK_H\${ac_dC}1\${ac_dD}
|
|
5069 \${ac_uA}HAVE_VFORK_H\${ac_uB}HAVE_VFORK_H\${ac_uC}1\${ac_uD}
|
|
5070 \${ac_eA}HAVE_VFORK_H\${ac_eB}HAVE_VFORK_H\${ac_eC}1\${ac_eD}
|
|
5071 "
|
|
5072 }
|
|
5073
|
|
5074
|
|
5075 fi
|
|
5076 rm -f conftest*
|
|
5077
|
|
5078 test -n "$silent" || echo "checking for working vfork"
|
|
5079
|
|
5080 cat > conftest.${ac_ext} <<EOF
|
|
5081 #include "confdefs.h"
|
|
5082 /* Thanks to Paul Eggert for this test. */
|
|
5083 #include <stdio.h>
|
|
5084 #include <sys/types.h>
|
|
5085 #include <sys/stat.h>
|
|
5086 #include <signal.h>
|
|
5087 #ifdef HAVE_UNISTD_H
|
|
5088 #include <unistd.h>
|
|
5089 #endif
|
|
5090 #ifdef HAVE_VFORK_H
|
|
5091 #include <vfork.h>
|
|
5092 #endif
|
|
5093 static int signalled;
|
|
5094 static RETSIGTYPE catch (s) int s; { signalled = 1; }
|
|
5095 main() {
|
|
5096 pid_t parent = getpid ();
|
|
5097 pid_t child;
|
|
5098
|
|
5099 signal (SIGINT, catch);
|
|
5100
|
|
5101 child = vfork ();
|
|
5102
|
|
5103 if (child == 0) {
|
|
5104 /* On sparc systems, changes by the child to local and incoming
|
|
5105 argument registers are propagated back to the parent.
|
|
5106 The compiler is told about this with #include <vfork.h>,
|
|
5107 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
|
|
5108 Test for this by using lots of local variables, at least
|
|
5109 as many local variables as main has allocated so far
|
|
5110 including compiler temporaries. 4 locals are enough for
|
|
5111 gcc 1.40.3 on a sparc, but we use 8 to be safe.
|
|
5112 A buggy compiler should reuse the register of parent
|
|
5113 for one of the local variables, since it will think that
|
|
5114 parent can't possibly be used any more in this routine.
|
|
5115 Assigning to the local variable will thus munge parent
|
|
5116 in the parent process. */
|
|
5117 pid_t
|
|
5118 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
|
5119 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
|
5120 /* Convince the compiler that p..p7 are live; otherwise, it might
|
|
5121 use the same hardware register for all 8 local variables. */
|
|
5122 if (p != p1 || p != p2 || p != p3 || p != p4
|
|
5123 || p != p5 || p != p6 || p != p7)
|
|
5124 _exit(1);
|
|
5125
|
|
5126 /* On some systems (e.g. SunOS 5.2), if the parent is catching
|
|
5127 a signal, the child ignores the signal before execing,
|
|
5128 and the parent later receives that signal, the parent dumps core.
|
|
5129 Test for this by ignoring SIGINT in the child. */
|
|
5130 signal (SIGINT, SIG_IGN);
|
|
5131
|
|
5132 /* On some systems (e.g. IRIX 3.3),
|
|
5133 vfork doesn't separate parent from child file descriptors.
|
|
5134 If the child closes a descriptor before it execs or exits,
|
|
5135 this munges the parent's descriptor as well.
|
|
5136 Test for this by closing stdout in the child. */
|
|
5137 _exit(close(fileno(stdout)) != 0);
|
|
5138 } else {
|
|
5139 int status;
|
|
5140 struct stat st;
|
|
5141
|
|
5142 while (wait(&status) != child)
|
|
5143 ;
|
|
5144 exit(
|
|
5145 /* Was there some problem with vforking? */
|
|
5146 child < 0
|
|
5147
|
|
5148 /* Did the child fail? (This shouldn't happen.) */
|
|
5149 || status
|
|
5150
|
|
5151 /* Did the vfork/compiler bug occur? */
|
|
5152 || parent != getpid()
|
|
5153
|
|
5154 /* Did the signal handling bug occur? */
|
|
5155 || kill(parent, SIGINT) != 0
|
|
5156 || signalled != 1
|
|
5157
|
|
5158 /* Did the file descriptor bug occur? */
|
|
5159 || fstat(fileno(stdout), &st) != 0
|
|
5160 );
|
|
5161 }
|
|
5162 }
|
|
5163 EOF
|
|
5164 eval $ac_compile
|
|
5165 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5166 :
|
|
5167 else
|
|
5168
|
|
5169 {
|
|
5170 test -n "$verbose" && \
|
|
5171 echo " defining" vfork to be "fork"
|
|
5172 echo "#define" vfork "fork" >> confdefs.h
|
|
5173 DEFS="$DEFS -Dvfork=fork"
|
|
5174 ac_sed_defs="${ac_sed_defs}\${ac_dA}vfork\${ac_dB}vfork\${ac_dC}fork\${ac_dD}
|
|
5175 \${ac_uA}vfork\${ac_uB}vfork\${ac_uC}fork\${ac_uD}
|
|
5176 \${ac_eA}vfork\${ac_eB}vfork\${ac_eC}fork\${ac_eD}
|
|
5177 "
|
|
5178 }
|
|
5179
|
|
5180 fi
|
|
5181 rm -fr conftest*
|
|
5182
|
|
5183
|
|
5184 # Check whether mmap exists and works correctly. (This does more
|
|
5185 # than just check for its existence.) If so, it defines HAVE_MMAP.
|
|
5186 # Actually, this seems to rule out some cases where mmap() can
|
|
5187 # work fine for our purposes (e.g. HPUX). We get a big win out
|
|
5188 # of using mmap(), so let's go back to the old way.
|
|
5189
|
|
5190 # Check whether strcoll exists and works correctly. (This does more
|
|
5191 # than just check for its existence.) If so, it defines HAVE_STRCOLL.
|
|
5192 test -n "$silent" || echo "checking for strcoll"
|
|
5193 cat > conftest.${ac_ext} <<EOF
|
|
5194 #include "confdefs.h"
|
|
5195 #include <string.h>
|
|
5196 main ()
|
|
5197 {
|
|
5198 exit (strcoll ("abc", "def") >= 0 ||
|
|
5199 strcoll ("ABC", "DEF") >= 0 ||
|
|
5200 strcoll ("123", "456") >= 0);
|
|
5201 }
|
|
5202 EOF
|
|
5203 eval $ac_compile
|
|
5204 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5205
|
|
5206 {
|
|
5207 test -n "$verbose" && \
|
|
5208 echo " defining HAVE_STRCOLL"
|
|
5209 echo "#define" HAVE_STRCOLL "1" >> confdefs.h
|
|
5210 DEFS="$DEFS -DHAVE_STRCOLL=1"
|
|
5211 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRCOLL\${ac_dB}HAVE_STRCOLL\${ac_dC}1\${ac_dD}
|
|
5212 \${ac_uA}HAVE_STRCOLL\${ac_uB}HAVE_STRCOLL\${ac_uC}1\${ac_uD}
|
|
5213 \${ac_eA}HAVE_STRCOLL\${ac_eB}HAVE_STRCOLL\${ac_eC}1\${ac_eD}
|
|
5214 "
|
|
5215 }
|
|
5216
|
|
5217
|
|
5218 fi
|
|
5219 rm -fr conftest*
|
|
5220
|
|
5221 test -n "$silent" || echo "checking size of short"
|
|
5222 cat > conftest.${ac_ext} <<EOF
|
|
5223 #include "confdefs.h"
|
|
5224 #include <stdio.h>
|
|
5225 main()
|
|
5226 {
|
|
5227 FILE *f=fopen("conftestval", "w");
|
|
5228 if (!f) exit(1);
|
|
5229 fprintf(f, "%d\n", sizeof(short));
|
|
5230 exit(0);
|
|
5231 }
|
|
5232 EOF
|
|
5233 eval $ac_compile
|
|
5234 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5235 ac_size=`cat conftestval`
|
|
5236
|
|
5237 else
|
|
5238 echo "configure: can not determine size of short" >&2; exit 1
|
|
5239 fi
|
|
5240 rm -fr conftest*
|
|
5241
|
|
5242 {
|
|
5243 test -n "$verbose" && \
|
|
5244 echo " defining" SIZEOF_SHORT to be "$ac_size"
|
|
5245 echo "#define" SIZEOF_SHORT "$ac_size" >> confdefs.h
|
|
5246 DEFS="$DEFS -DSIZEOF_SHORT=$ac_size"
|
|
5247 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_SHORT\${ac_dB}SIZEOF_SHORT\${ac_dC}$ac_size\${ac_dD}
|
|
5248 \${ac_uA}SIZEOF_SHORT\${ac_uB}SIZEOF_SHORT\${ac_uC}$ac_size\${ac_uD}
|
|
5249 \${ac_eA}SIZEOF_SHORT\${ac_eB}SIZEOF_SHORT\${ac_eC}$ac_size\${ac_eD}
|
|
5250 "
|
|
5251 }
|
|
5252
|
|
5253 test -n "$silent" || echo "checking size of int"
|
|
5254 cat > conftest.${ac_ext} <<EOF
|
|
5255 #include "confdefs.h"
|
|
5256 #include <stdio.h>
|
|
5257 main()
|
|
5258 {
|
|
5259 FILE *f=fopen("conftestval", "w");
|
|
5260 if (!f) exit(1);
|
|
5261 fprintf(f, "%d\n", sizeof(int));
|
|
5262 exit(0);
|
|
5263 }
|
|
5264 EOF
|
|
5265 eval $ac_compile
|
|
5266 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5267 ac_size=`cat conftestval`
|
|
5268
|
|
5269 else
|
|
5270 echo "configure: can not determine size of int" >&2; exit 1
|
|
5271 fi
|
|
5272 rm -fr conftest*
|
|
5273
|
|
5274 {
|
|
5275 test -n "$verbose" && \
|
|
5276 echo " defining" SIZEOF_INT to be "$ac_size"
|
|
5277 echo "#define" SIZEOF_INT "$ac_size" >> confdefs.h
|
|
5278 DEFS="$DEFS -DSIZEOF_INT=$ac_size"
|
|
5279 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_INT\${ac_dB}SIZEOF_INT\${ac_dC}$ac_size\${ac_dD}
|
|
5280 \${ac_uA}SIZEOF_INT\${ac_uB}SIZEOF_INT\${ac_uC}$ac_size\${ac_uD}
|
|
5281 \${ac_eA}SIZEOF_INT\${ac_eB}SIZEOF_INT\${ac_eC}$ac_size\${ac_eD}
|
|
5282 "
|
|
5283 }
|
|
5284
|
|
5285 test -n "$silent" || echo "checking size of long"
|
|
5286 cat > conftest.${ac_ext} <<EOF
|
|
5287 #include "confdefs.h"
|
|
5288 #include <stdio.h>
|
|
5289 main()
|
|
5290 {
|
|
5291 FILE *f=fopen("conftestval", "w");
|
|
5292 if (!f) exit(1);
|
|
5293 fprintf(f, "%d\n", sizeof(long));
|
|
5294 exit(0);
|
|
5295 }
|
|
5296 EOF
|
|
5297 eval $ac_compile
|
|
5298 if test -s conftest && (./conftest; exit) 2>/dev/null; then
|
|
5299 ac_size=`cat conftestval`
|
|
5300
|
|
5301 else
|
|
5302 echo "configure: can not determine size of long" >&2; exit 1
|
|
5303 fi
|
|
5304 rm -fr conftest*
|
|
5305
|
|
5306 {
|
|
5307 test -n "$verbose" && \
|
|
5308 echo " defining" SIZEOF_LONG to be "$ac_size"
|
|
5309 echo "#define" SIZEOF_LONG "$ac_size" >> confdefs.h
|
|
5310 DEFS="$DEFS -DSIZEOF_LONG=$ac_size"
|
|
5311 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_LONG\${ac_dB}SIZEOF_LONG\${ac_dC}$ac_size\${ac_dD}
|
|
5312 \${ac_uA}SIZEOF_LONG\${ac_uB}SIZEOF_LONG\${ac_uC}$ac_size\${ac_uD}
|
|
5313 \${ac_eA}SIZEOF_LONG\${ac_eB}SIZEOF_LONG\${ac_eC}$ac_size\${ac_eD}
|
|
5314 "
|
|
5315 }
|
|
5316
|
|
5317
|
|
5318 # FSF 19.29 does this:
|
|
5319 # # fmod, logb, and frexp are found in -lm on most systems.
|
|
5320 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
|
|
5321 # A C_CHECK_LIB(m, sqrt)
|
|
5322
|
74
|
5323 for ac_func in 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
|
5324 do
|
|
5325 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
|
|
5326 test -n "$silent" || echo "checking for ${ac_func}"
|
|
5327 cat > conftest.${ac_ext} <<EOF
|
|
5328 #include "confdefs.h"
|
|
5329 #include <ctype.h>
|
|
5330 int main() { return 0; }
|
|
5331 int t() {
|
|
5332 /* The GNU C library defines this for functions which it implements
|
|
5333 to always fail with ENOSYS. Some functions are actually named
|
|
5334 something starting with __ and the normal name is an alias. */
|
|
5335 #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
|
|
5336 choke me
|
|
5337 #else
|
|
5338 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5339 extern char ${ac_func}(); ${ac_func}();
|
|
5340 #endif
|
|
5341 ; return 0; }
|
|
5342 EOF
|
|
5343 if eval $ac_compile; then
|
|
5344 rm -rf conftest*
|
|
5345 {
|
|
5346 test -n "$verbose" && \
|
|
5347 echo " defining ${ac_tr_func}"
|
|
5348 echo "#define" ${ac_tr_func} "1" >> confdefs.h
|
|
5349 DEFS="$DEFS -D${ac_tr_func}=1"
|
|
5350 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
|
|
5351 \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
|
|
5352 \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
|
|
5353 "
|
|
5354 }
|
|
5355
|
|
5356
|
|
5357 fi
|
|
5358 rm -f conftest*
|
|
5359 done
|
|
5360
|
|
5361
|
|
5362 # Check for mmap.
|
|
5363 found_mmap=true
|
|
5364 test -n "$silent" || echo "checking for mmap"
|
|
5365 cat > conftest.${ac_ext} <<EOF
|
|
5366 #include "confdefs.h"
|
|
5367 #include <ctype.h>
|
|
5368 int main() { return 0; }
|
|
5369 int t() {
|
|
5370 /* The GNU C library defines this for functions which it implements
|
|
5371 to always fail with ENOSYS. Some functions are actually named
|
|
5372 something starting with __ and the normal name is an alias. */
|
|
5373 #if defined (__stub_mmap) || defined (__stub___mmap)
|
|
5374 choke me
|
|
5375 #else
|
|
5376 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5377 extern char mmap(); mmap();
|
|
5378 #endif
|
|
5379 ; return 0; }
|
|
5380 EOF
|
|
5381 if eval $ac_compile; then
|
|
5382 :
|
|
5383 else
|
|
5384 rm -rf conftest*
|
|
5385 found_mmap=
|
|
5386 fi
|
|
5387 rm -f conftest*
|
|
5388
|
70
|
5389 test -n "$found_mmap" &&
|
0
|
5390 {
|
|
5391 test -n "$verbose" && \
|
|
5392 echo " defining HAVE_MMAP"
|
|
5393 echo "#define" HAVE_MMAP "1" >> confdefs.h
|
|
5394 DEFS="$DEFS -DHAVE_MMAP=1"
|
|
5395 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MMAP\${ac_dB}HAVE_MMAP\${ac_dC}1\${ac_dD}
|
|
5396 \${ac_uA}HAVE_MMAP\${ac_uB}HAVE_MMAP\${ac_uC}1\${ac_uD}
|
|
5397 \${ac_eA}HAVE_MMAP\${ac_eB}HAVE_MMAP\${ac_eC}1\${ac_eD}
|
|
5398 "
|
|
5399 }
|
|
5400
|
70
|
5401
|
|
5402 test "${GNU_MALLOC}" != "yes" -a "${found_mmap}" != "true" && rel_alloc=no
|
|
5403 test "${rel_alloc}" = "default" -a "${found_mmap}" = "true" && rel_alloc=yes
|
0
|
5404
|
|
5405 # Check for Internet sockets.
|
|
5406
|
|
5407 ok_so_far=true
|
|
5408 test -n "$silent" || echo "checking for socket"
|
|
5409 cat > conftest.${ac_ext} <<EOF
|
|
5410 #include "confdefs.h"
|
|
5411 #include <ctype.h>
|
|
5412 int main() { return 0; }
|
|
5413 int t() {
|
|
5414 /* The GNU C library defines this for functions which it implements
|
|
5415 to always fail with ENOSYS. Some functions are actually named
|
|
5416 something starting with __ and the normal name is an alias. */
|
|
5417 #if defined (__stub_socket) || defined (__stub___socket)
|
|
5418 choke me
|
|
5419 #else
|
|
5420 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5421 extern char socket(); socket();
|
|
5422 #endif
|
|
5423 ; return 0; }
|
|
5424 EOF
|
|
5425 if eval $ac_compile; then
|
|
5426 :
|
|
5427 else
|
|
5428 rm -rf conftest*
|
|
5429 ok_so_far=
|
|
5430 fi
|
|
5431 rm -f conftest*
|
|
5432
|
70
|
5433 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for netinet/in.h"
|
0
|
5434 cat > conftest.${ac_ext} <<EOF
|
|
5435 #include "confdefs.h"
|
|
5436 #include <netinet/in.h>
|
|
5437 EOF
|
|
5438 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5439 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5440 echo "$ac_err"
|
|
5441 fi
|
|
5442 if test -z "$ac_err"; then
|
|
5443 :
|
|
5444 else
|
|
5445 rm -rf conftest*
|
|
5446 ok_so_far=
|
|
5447 fi
|
|
5448 rm -f conftest*
|
70
|
5449 }
|
|
5450 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for arpa/inet.h"
|
0
|
5451 cat > conftest.${ac_ext} <<EOF
|
|
5452 #include "confdefs.h"
|
|
5453 #include <arpa/inet.h>
|
|
5454 EOF
|
|
5455 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5456 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5457 echo "$ac_err"
|
|
5458 fi
|
|
5459 if test -z "$ac_err"; then
|
|
5460 :
|
|
5461 else
|
|
5462 rm -rf conftest*
|
|
5463 ok_so_far=
|
|
5464 fi
|
|
5465 rm -f conftest*
|
70
|
5466 }
|
0
|
5467 if test -n "$ok_so_far"; then
|
|
5468
|
|
5469 {
|
|
5470 test -n "$verbose" && \
|
|
5471 echo " defining HAVE_SOCKETS"
|
|
5472 echo "#define" HAVE_SOCKETS "1" >> confdefs.h
|
|
5473 DEFS="$DEFS -DHAVE_SOCKETS=1"
|
|
5474 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKETS\${ac_dB}HAVE_SOCKETS\${ac_dC}1\${ac_dD}
|
|
5475 \${ac_uA}HAVE_SOCKETS\${ac_uB}HAVE_SOCKETS\${ac_uC}1\${ac_uD}
|
|
5476 \${ac_eA}HAVE_SOCKETS\${ac_eB}HAVE_SOCKETS\${ac_eC}1\${ac_eD}
|
|
5477 "
|
|
5478 }
|
|
5479
|
|
5480 # Check for the sun_len member in struct sockaddr_un.
|
|
5481
|
|
5482 test -n "$silent" || echo "checking for sun_len member in struct sockaddr_un"
|
|
5483 cat > conftest.${ac_ext} <<EOF
|
|
5484 #include "confdefs.h"
|
|
5485 #include <sys/types.h>
|
|
5486 #include <sys/socket.h>
|
|
5487 #include <sys/un.h>
|
|
5488 int main() { return 0; }
|
|
5489 int t() { static struct sockaddr_un x; x.sun_len = 1;; return 0; }
|
|
5490 EOF
|
|
5491 if eval $ac_compile; then
|
|
5492 rm -rf conftest*
|
|
5493
|
|
5494 {
|
|
5495 test -n "$verbose" && \
|
|
5496 echo " defining HAVE_SOCKADDR_SUN_LEN"
|
|
5497 echo "#define" HAVE_SOCKADDR_SUN_LEN "1" >> confdefs.h
|
|
5498 DEFS="$DEFS -DHAVE_SOCKADDR_SUN_LEN=1"
|
|
5499 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKADDR_SUN_LEN\${ac_dB}HAVE_SOCKADDR_SUN_LEN\${ac_dC}1\${ac_dD}
|
|
5500 \${ac_uA}HAVE_SOCKADDR_SUN_LEN\${ac_uB}HAVE_SOCKADDR_SUN_LEN\${ac_uC}1\${ac_uD}
|
|
5501 \${ac_eA}HAVE_SOCKADDR_SUN_LEN\${ac_eB}HAVE_SOCKADDR_SUN_LEN\${ac_eC}1\${ac_eD}
|
|
5502 "
|
|
5503 }
|
|
5504
|
|
5505
|
|
5506 fi
|
|
5507 rm -f conftest*
|
|
5508
|
|
5509 fi
|
|
5510
|
|
5511 # Check for SYS V IPC. (Inferior to sockets.)
|
|
5512
|
|
5513 if test -z "$ok_so_far"; then
|
|
5514 ok_so_far=true
|
|
5515 test -n "$silent" || echo "checking for msgget"
|
|
5516 cat > conftest.${ac_ext} <<EOF
|
|
5517 #include "confdefs.h"
|
|
5518 #include <ctype.h>
|
|
5519 int main() { return 0; }
|
|
5520 int t() {
|
|
5521 /* The GNU C library defines this for functions which it implements
|
|
5522 to always fail with ENOSYS. Some functions are actually named
|
|
5523 something starting with __ and the normal name is an alias. */
|
|
5524 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
5525 choke me
|
|
5526 #else
|
|
5527 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5528 extern char msgget(); msgget();
|
|
5529 #endif
|
|
5530 ; return 0; }
|
|
5531 EOF
|
|
5532 if eval $ac_compile; then
|
|
5533 :
|
|
5534 else
|
|
5535 rm -rf conftest*
|
|
5536 ok_so_far=
|
|
5537 fi
|
|
5538 rm -f conftest*
|
|
5539
|
70
|
5540 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for sys/ipc.h"
|
0
|
5541 cat > conftest.${ac_ext} <<EOF
|
|
5542 #include "confdefs.h"
|
|
5543 #include <sys/ipc.h>
|
|
5544 EOF
|
|
5545 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5546 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5547 echo "$ac_err"
|
|
5548 fi
|
|
5549 if test -z "$ac_err"; then
|
|
5550 :
|
|
5551 else
|
|
5552 rm -rf conftest*
|
|
5553 ok_so_far=
|
|
5554 fi
|
|
5555 rm -f conftest*
|
70
|
5556 }
|
|
5557 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for sys/msg.h"
|
0
|
5558 cat > conftest.${ac_ext} <<EOF
|
|
5559 #include "confdefs.h"
|
|
5560 #include <sys/msg.h>
|
|
5561 EOF
|
|
5562 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5563 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5564 echo "$ac_err"
|
|
5565 fi
|
|
5566 if test -z "$ac_err"; then
|
|
5567 :
|
|
5568 else
|
|
5569 rm -rf conftest*
|
|
5570 ok_so_far=
|
|
5571 fi
|
|
5572 rm -f conftest*
|
70
|
5573 }
|
|
5574 test -n "$ok_so_far" &&
|
0
|
5575 {
|
|
5576 test -n "$verbose" && \
|
|
5577 echo " defining HAVE_SYSVIPC"
|
|
5578 echo "#define" HAVE_SYSVIPC "1" >> confdefs.h
|
|
5579 DEFS="$DEFS -DHAVE_SYSVIPC=1"
|
|
5580 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYSVIPC\${ac_dB}HAVE_SYSVIPC\${ac_dC}1\${ac_dD}
|
|
5581 \${ac_uA}HAVE_SYSVIPC\${ac_uB}HAVE_SYSVIPC\${ac_uC}1\${ac_uD}
|
|
5582 \${ac_eA}HAVE_SYSVIPC\${ac_eB}HAVE_SYSVIPC\${ac_eC}1\${ac_eD}
|
|
5583 "
|
|
5584 }
|
|
5585
|
|
5586 fi
|
|
5587
|
|
5588 # Check for directory variants
|
|
5589
|
|
5590 sysv_system_dir=
|
|
5591 nonsystem_dir_library=
|
|
5592 test -n "$silent" || echo "checking for dirent.h"
|
|
5593 cat > conftest.${ac_ext} <<EOF
|
|
5594 #include "confdefs.h"
|
|
5595 #include <dirent.h>
|
|
5596 EOF
|
|
5597 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5598 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5599 echo "$ac_err"
|
|
5600 fi
|
|
5601 if test -z "$ac_err"; then
|
|
5602 rm -rf conftest*
|
|
5603 sysv_system_dir=yes
|
|
5604
|
|
5605 fi
|
|
5606 rm -f conftest*
|
|
5607
|
70
|
5608 test -z "$sysv_system_dir" &&
|
|
5609 { test -n "$silent" || echo "checking for sys/dir.h"
|
0
|
5610 cat > conftest.${ac_ext} <<EOF
|
|
5611 #include "confdefs.h"
|
|
5612 #include <sys/dir.h>
|
|
5613 EOF
|
|
5614 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5615 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5616 echo "$ac_err"
|
|
5617 fi
|
|
5618 if test -z "$ac_err"; then
|
|
5619 :
|
|
5620 else
|
|
5621 rm -rf conftest*
|
|
5622 nonsystem_dir_library=yes
|
|
5623 fi
|
|
5624 rm -f conftest*
|
70
|
5625 }
|
|
5626 if test -n "$sysv_system_dir" ; then
|
0
|
5627 {
|
|
5628 test -n "$verbose" && \
|
|
5629 echo " defining SYSV_SYSTEM_DIR"
|
|
5630 echo "#define" SYSV_SYSTEM_DIR "1" >> confdefs.h
|
|
5631 DEFS="$DEFS -DSYSV_SYSTEM_DIR=1"
|
|
5632 ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSV_SYSTEM_DIR\${ac_dB}SYSV_SYSTEM_DIR\${ac_dC}1\${ac_dD}
|
|
5633 \${ac_uA}SYSV_SYSTEM_DIR\${ac_uB}SYSV_SYSTEM_DIR\${ac_uC}1\${ac_uD}
|
|
5634 \${ac_eA}SYSV_SYSTEM_DIR\${ac_eB}SYSV_SYSTEM_DIR\${ac_eC}1\${ac_eD}
|
|
5635 "
|
|
5636 }
|
|
5637
|
70
|
5638 elif test -n "$nonsystem_dir_library" ; then
|
0
|
5639 {
|
|
5640 test -n "$verbose" && \
|
|
5641 echo " defining NONSYSTEM_DIR_LIBRARY"
|
|
5642 echo "#define" NONSYSTEM_DIR_LIBRARY "1" >> confdefs.h
|
|
5643 DEFS="$DEFS -DNONSYSTEM_DIR_LIBRARY=1"
|
|
5644 ac_sed_defs="${ac_sed_defs}\${ac_dA}NONSYSTEM_DIR_LIBRARY\${ac_dB}NONSYSTEM_DIR_LIBRARY\${ac_dC}1\${ac_dD}
|
|
5645 \${ac_uA}NONSYSTEM_DIR_LIBRARY\${ac_uB}NONSYSTEM_DIR_LIBRARY\${ac_uC}1\${ac_uD}
|
|
5646 \${ac_eA}NONSYSTEM_DIR_LIBRARY\${ac_eB}NONSYSTEM_DIR_LIBRARY\${ac_eC}1\${ac_eD}
|
|
5647 "
|
|
5648 }
|
|
5649
|
|
5650 fi
|
|
5651
|
|
5652
|
|
5653 echo "checking how to do terminal I/O"
|
|
5654
|
|
5655 have_termios=
|
|
5656 have_termio=
|
|
5657 test -n "$silent" || echo "checking for termios.h"
|
|
5658 cat > conftest.${ac_ext} <<EOF
|
|
5659 #include "confdefs.h"
|
|
5660 #include <termios.h>
|
|
5661 EOF
|
|
5662 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5663 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5664 echo "$ac_err"
|
|
5665 fi
|
|
5666 if test -z "$ac_err"; then
|
|
5667 rm -rf conftest*
|
|
5668 have_termios=yes
|
|
5669
|
|
5670 fi
|
|
5671 rm -f conftest*
|
|
5672
|
70
|
5673 test -z "$have_termios" && { test -n "$silent" || echo "checking for termio.h"
|
0
|
5674 cat > conftest.${ac_ext} <<EOF
|
|
5675 #include "confdefs.h"
|
|
5676 #include <termio.h>
|
|
5677 EOF
|
|
5678 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5679 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5680 echo "$ac_err"
|
|
5681 fi
|
|
5682 if test -z "$ac_err"; then
|
|
5683 rm -rf conftest*
|
|
5684 have_termio=yes
|
|
5685
|
|
5686 fi
|
|
5687 rm -f conftest*
|
70
|
5688 }
|
|
5689 if test -n "$have_termios" ; then
|
0
|
5690 {
|
|
5691 test -n "$verbose" && \
|
|
5692 echo " defining HAVE_TERMIOS"
|
|
5693 echo "#define" HAVE_TERMIOS "1" >> confdefs.h
|
|
5694 DEFS="$DEFS -DHAVE_TERMIOS=1"
|
|
5695 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIOS\${ac_dB}HAVE_TERMIOS\${ac_dC}1\${ac_dD}
|
|
5696 \${ac_uA}HAVE_TERMIOS\${ac_uB}HAVE_TERMIOS\${ac_uC}1\${ac_uD}
|
|
5697 \${ac_eA}HAVE_TERMIOS\${ac_eB}HAVE_TERMIOS\${ac_eC}1\${ac_eD}
|
|
5698 "
|
|
5699 }
|
|
5700
|
70
|
5701 elif test -n "$have_termio" ; then
|
0
|
5702 {
|
|
5703 test -n "$verbose" && \
|
|
5704 echo " defining HAVE_TERMIO"
|
|
5705 echo "#define" HAVE_TERMIO "1" >> confdefs.h
|
|
5706 DEFS="$DEFS -DHAVE_TERMIO=1"
|
|
5707 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIO\${ac_dB}HAVE_TERMIO\${ac_dC}1\${ac_dD}
|
|
5708 \${ac_uA}HAVE_TERMIO\${ac_uB}HAVE_TERMIO\${ac_uC}1\${ac_uD}
|
|
5709 \${ac_eA}HAVE_TERMIO\${ac_eB}HAVE_TERMIO\${ac_eC}1\${ac_eD}
|
|
5710 "
|
|
5711 }
|
|
5712
|
|
5713 fi
|
|
5714
|
|
5715 # Check for nlist.h
|
|
5716 test -n "$silent" || echo "checking for nlist.h"
|
|
5717 cat > conftest.${ac_ext} <<EOF
|
|
5718 #include "confdefs.h"
|
|
5719 #include <nlist.h>
|
|
5720 EOF
|
|
5721 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5722 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5723 echo "$ac_err"
|
|
5724 fi
|
|
5725 if test -z "$ac_err"; then
|
|
5726 rm -rf conftest*
|
|
5727
|
|
5728 {
|
|
5729 test -n "$verbose" && \
|
|
5730 echo " defining NLIST_STRUCT"
|
|
5731 echo "#define" NLIST_STRUCT "1" >> confdefs.h
|
|
5732 DEFS="$DEFS -DNLIST_STRUCT=1"
|
|
5733 ac_sed_defs="${ac_sed_defs}\${ac_dA}NLIST_STRUCT\${ac_dB}NLIST_STRUCT\${ac_dC}1\${ac_dD}
|
|
5734 \${ac_uA}NLIST_STRUCT\${ac_uB}NLIST_STRUCT\${ac_uC}1\${ac_uD}
|
|
5735 \${ac_eA}NLIST_STRUCT\${ac_eB}NLIST_STRUCT\${ac_eC}1\${ac_eD}
|
|
5736 "
|
|
5737 }
|
|
5738
|
|
5739
|
|
5740 fi
|
|
5741 rm -f conftest*
|
|
5742
|
|
5743
|
70
|
5744 # AIX export list
|
80
|
5745 if test -f /usr/lpp/X11/bin/smt.exp ; then
|
|
5746
|
|
5747 {
|
|
5748 test -n "$verbose" && \
|
|
5749 echo " defining" AIX_SMT_EXP to be "-bI:/usr/lpp/X11/bin/smt.exp"
|
|
5750 echo "#define" AIX_SMT_EXP "-bI:/usr/lpp/X11/bin/smt.exp" >> confdefs.h
|
|
5751 DEFS="$DEFS -DAIX_SMT_EXP=-bI:/usr/lpp/X11/bin/smt.exp"
|
|
5752 ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_dD}
|
|
5753 \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_uD}
|
|
5754 \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_eD}
|
|
5755 "
|
|
5756 }
|
|
5757
|
|
5758 elif test -f /usr/bin/X11/smt.exp ; then
|
|
5759
|
|
5760 {
|
|
5761 test -n "$verbose" && \
|
|
5762 echo " defining" AIX_SMT_EXP to be "-bI:/usr/bin/X11/smt.exp"
|
|
5763 echo "#define" AIX_SMT_EXP "-bI:/usr/bin/X11/smt.exp" >> confdefs.h
|
|
5764 DEFS="$DEFS -DAIX_SMT_EXP=-bI:/usr/bin/X11/smt.exp"
|
|
5765 ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:/usr/bin/X11/smt.exp\${ac_dD}
|
|
5766 \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:/usr/bin/X11/smt.exp\${ac_uD}
|
|
5767 \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:/usr/bin/X11/smt.exp\${ac_eD}
|
|
5768 "
|
|
5769 }
|
|
5770
|
|
5771 fi
|
70
|
5772
|
0
|
5773 CFLAGS="$REAL_CFLAGS"
|
|
5774
|
70
|
5775 file="${srcdir}/lisp/version.el"
|
|
5776 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"`
|
|
5777 if test -z "${version}"; then
|
|
5778 echo "${progname}: can't find current emacs version in \"$file\"." >&2
|
0
|
5779 exit 1
|
|
5780 fi
|
70
|
5781 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([0-9][0-9]*\)).*$/\1/p' "$file"`
|
|
5782 test -n "$beta" && version="${version}-b${beta}"
|
|
5783
|
|
5784
|
0
|
5785
|
|
5786 # the following needs to be fixed for SGI.
|
70
|
5787 if test -z "${native_sound_lib}" ; then
|
|
5788 if test -r /usr/demo/SOUND/lib/libaudio.a; then
|
0
|
5789 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
|
70
|
5790 elif test -r /usr/demo/SOUND/libaudio.a ; then
|
0
|
5791 native_sound_lib=/usr/demo/SOUND/libaudio.a
|
|
5792 else
|
|
5793 case "${canonical}" in
|
70
|
5794 *-sgi-* ) ac_save_LIBS="${LIBS}"
|
0
|
5795 LIBS="${LIBS} -laudio"
|
|
5796 ac_have_lib=""
|
|
5797 test -n "$silent" || echo "checking for -laudio"
|
|
5798 cat > conftest.${ac_ext} <<EOF
|
|
5799 #include "confdefs.h"
|
|
5800
|
|
5801 int main() { return 0; }
|
|
5802 int t() { main();; return 0; }
|
|
5803 EOF
|
|
5804 if eval $ac_compile; then
|
|
5805 rm -rf conftest*
|
|
5806 ac_have_lib="1"
|
|
5807
|
|
5808 fi
|
|
5809 rm -f conftest*
|
|
5810 LIBS="${ac_save_LIBS}"
|
|
5811 if test -n "${ac_have_lib}"; then
|
70
|
5812 :; native_sound_lib="-laudio"
|
0
|
5813 else
|
|
5814 :;
|
|
5815 fi
|
70
|
5816 ;;
|
|
5817 hppa*-hp-hpux* ) ac_save_LIBS="${LIBS}"
|
0
|
5818 LIBS="${LIBS} -lAlib"
|
|
5819 ac_have_lib=""
|
|
5820 test -n "$silent" || echo "checking for -lAlib"
|
|
5821 cat > conftest.${ac_ext} <<EOF
|
|
5822 #include "confdefs.h"
|
|
5823
|
|
5824 int main() { return 0; }
|
|
5825 int t() { main();; return 0; }
|
|
5826 EOF
|
|
5827 if eval $ac_compile; then
|
|
5828 rm -rf conftest*
|
|
5829 ac_have_lib="1"
|
|
5830
|
|
5831 fi
|
|
5832 rm -f conftest*
|
|
5833 LIBS="${ac_save_LIBS}"
|
|
5834 if test -n "${ac_have_lib}"; then
|
70
|
5835 :; native_sound_lib="-lAlib"
|
0
|
5836 else
|
|
5837 :;
|
|
5838 fi
|
70
|
5839 ;;
|
0
|
5840 esac
|
|
5841 fi
|
|
5842 fi
|
70
|
5843 test -z "${with_sound}" -a -n "${native_sound_lib}" && with_sound="native";
|
0
|
5844
|
|
5845 #### If the nas library doesn't contain the error jump point, then
|
|
5846 #### we force safer behaviour.
|
|
5847
|
70
|
5848 if test "${with_sound}" = "nas" -o \
|
|
5849 "${with_sound}" = "both"; then
|
|
5850 echo '#include "confdefs.h"
|
0
|
5851 #include <audio/Xtutil.h>' > conftest.${ac_ext}
|
|
5852 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
|
|
5853 if egrep "AuXtErrorJump" conftest.out >/dev/null 2>&1; then
|
|
5854 :
|
|
5855 else
|
|
5856 rm -rf conftest*
|
|
5857 old_nas=true
|
|
5858 fi
|
|
5859 rm -f conftest*
|
70
|
5860
|
|
5861 fi
|
|
5862
|
100
|
5863 if test "${with_cde}" = "yes" ; then
|
|
5864 if test -f "/usr/dt/include/Dt/Dt.h" ; then
|
|
5865 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} -I/usr/dt/include"
|
|
5866 fi
|
|
5867 if test -f "/usr/dt/lib/libDtSvc.a" ; then
|
|
5868 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} -L/usr/dt/lib"
|
|
5869 fi
|
|
5870 fi
|
|
5871
|
70
|
5872 if test "${with_tooltalk}" = "yes" ; then
|
100
|
5873 for arg in "-I/usr/include/desktop" "-I${OPENWINHOME-/usr/openwin}/include/desktop" "-I/usr/dt/include/Tt"
|
0
|
5874 do
|
100
|
5875 if test -f `echo "${arg}/tt_c.h" | sed 's/^\-I//'` ; then
|
|
5876 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}"
|
0
|
5877 fi
|
|
5878 done
|
100
|
5879 for arg in "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib" "-L/usr/dt/lib"
|
0
|
5880 do
|
|
5881 case "${arg}" in
|
70
|
5882 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then
|
0
|
5883 dash_r=''
|
116
|
5884 if "${add_runtime_flag}" = "yes" ; then
|
|
5885 dash_r=`echo ${arg} | sed "s/^-L */${runtime_arg}/"`
|
0
|
5886 fi
|
|
5887 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
|
|
5888 fi
|
|
5889 ;;
|
|
5890 esac
|
|
5891 done
|
|
5892 fi
|
|
5893
|
70
|
5894
|
|
5895 if test "${with_tty}" != "no" ; then
|
|
5896 ac_save_LIBS="${LIBS}"
|
0
|
5897 LIBS="${LIBS} -lncurses"
|
|
5898 ac_have_lib=""
|
|
5899 test -n "$silent" || echo "checking for -lncurses"
|
|
5900 cat > conftest.${ac_ext} <<EOF
|
|
5901 #include "confdefs.h"
|
|
5902
|
|
5903 int main() { return 0; }
|
|
5904 int t() { main();; return 0; }
|
|
5905 EOF
|
|
5906 if eval $ac_compile; then
|
|
5907 rm -rf conftest*
|
|
5908 ac_have_lib="1"
|
|
5909
|
|
5910 fi
|
|
5911 rm -f conftest*
|
|
5912 LIBS="${ac_save_LIBS}"
|
|
5913 if test -n "${ac_have_lib}"; then
|
|
5914 :; have_ncurses=yes
|
|
5915 else
|
|
5916 :; have_ncurses=no
|
|
5917 fi
|
70
|
5918
|
|
5919 if test "${have_ncurses}" = "yes" ; then
|
|
5920
|
0
|
5921 {
|
|
5922 test -n "$verbose" && \
|
|
5923 echo " defining HAVE_NCURSES"
|
|
5924 echo "#define" HAVE_NCURSES "1" >> confdefs.h
|
|
5925 DEFS="$DEFS -DHAVE_NCURSES=1"
|
|
5926 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES\${ac_dB}HAVE_NCURSES\${ac_dC}1\${ac_dD}
|
|
5927 \${ac_uA}HAVE_NCURSES\${ac_uB}HAVE_NCURSES\${ac_uC}1\${ac_uD}
|
|
5928 \${ac_eA}HAVE_NCURSES\${ac_eB}HAVE_NCURSES\${ac_eC}1\${ac_eD}
|
|
5929 "
|
|
5930 }
|
70
|
5931
|
|
5932 test -n "$silent" || echo "checking for ncurses/term.h"
|
0
|
5933 cat > conftest.${ac_ext} <<EOF
|
|
5934 #include "confdefs.h"
|
|
5935 #include <ncurses/term.h>
|
|
5936 EOF
|
|
5937 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5938 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5939 echo "$ac_err"
|
|
5940 fi
|
|
5941 if test -z "$ac_err"; then
|
|
5942 rm -rf conftest*
|
|
5943 have_ncurses_term_h=yes
|
|
5944
|
|
5945 else
|
|
5946 rm -rf conftest*
|
|
5947 have_ncurses_term_h=no
|
|
5948 fi
|
|
5949 rm -f conftest*
|
70
|
5950
|
|
5951 test "${have_ncurses_term_h}" = yes &&
|
0
|
5952 {
|
|
5953 test -n "$verbose" && \
|
|
5954 echo " defining HAVE_NCURSES_TERM_H"
|
|
5955 echo "#define" HAVE_NCURSES_TERM_H "1" >> confdefs.h
|
|
5956 DEFS="$DEFS -DHAVE_NCURSES_TERM_H=1"
|
|
5957 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES_TERM_H\${ac_dB}HAVE_NCURSES_TERM_H\${ac_dC}1\${ac_dD}
|
|
5958 \${ac_uA}HAVE_NCURSES_TERM_H\${ac_uB}HAVE_NCURSES_TERM_H\${ac_uC}1\${ac_uD}
|
|
5959 \${ac_eA}HAVE_NCURSES_TERM_H\${ac_eB}HAVE_NCURSES_TERM_H\${ac_eC}1\${ac_eD}
|
|
5960 "
|
|
5961 }
|
70
|
5962
|
|
5963 test -n "$silent" || echo "checking for ncurses/curses.h"
|
0
|
5964 cat > conftest.${ac_ext} <<EOF
|
|
5965 #include "confdefs.h"
|
|
5966 #include <ncurses/curses.h>
|
|
5967 EOF
|
|
5968 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5969 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5970 echo "$ac_err"
|
|
5971 fi
|
|
5972 if test -z "$ac_err"; then
|
|
5973 rm -rf conftest*
|
|
5974 have_ncurses_curses_h=yes
|
|
5975
|
|
5976 else
|
|
5977 rm -rf conftest*
|
|
5978 have_ncurses_curses_h=no
|
|
5979 fi
|
|
5980 rm -f conftest*
|
70
|
5981
|
|
5982 if test "${have_ncurses_curses_h}" = "no" ; then
|
|
5983 OLD_CPP="${CPP}"
|
0
|
5984 CPP="${CPP} -I/usr/include/ncurses"
|
70
|
5985 test -n "$silent" || echo "checking for ncurses/curses.h"
|
0
|
5986 cat > conftest.${ac_ext} <<EOF
|
|
5987 #include "confdefs.h"
|
|
5988 #include <ncurses/curses.h>
|
|
5989 EOF
|
|
5990 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
|
|
5991 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
|
|
5992 echo "$ac_err"
|
|
5993 fi
|
|
5994 if test -z "$ac_err"; then
|
|
5995 rm -rf conftest*
|
|
5996 have_ncurses_curses_h=yes
|
|
5997
|
|
5998 else
|
|
5999 rm -rf conftest*
|
|
6000 have_ncurses_curses_h=no
|
|
6001 fi
|
|
6002 rm -f conftest*
|
70
|
6003
|
|
6004 if test "${have_ncurses_curses_h}" = "yes" ; then
|
0
|
6005 site_includes="${site_includes} /usr/include/ncurses"
|
|
6006 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
|
70
|
6007 test -n "$verbose" && echo " Your system has the bogus ncurses include bug."
|
0
|
6008 else
|
|
6009 CPP="${OLD_CPP}"
|
|
6010 fi
|
|
6011 fi
|
70
|
6012 test "${have_ncurses_curses_h}" = yes &&
|
0
|
6013 {
|
|
6014 test -n "$verbose" && \
|
|
6015 echo " defining HAVE_NCURSES_CURSES_H"
|
|
6016 echo "#define" HAVE_NCURSES_CURSES_H "1" >> confdefs.h
|
|
6017 DEFS="$DEFS -DHAVE_NCURSES_CURSES_H=1"
|
|
6018 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES_CURSES_H\${ac_dB}HAVE_NCURSES_CURSES_H\${ac_dC}1\${ac_dD}
|
|
6019 \${ac_uA}HAVE_NCURSES_CURSES_H\${ac_uB}HAVE_NCURSES_CURSES_H\${ac_uC}1\${ac_uD}
|
|
6020 \${ac_eA}HAVE_NCURSES_CURSES_H\${ac_eB}HAVE_NCURSES_CURSES_H\${ac_eC}1\${ac_eD}
|
|
6021 "
|
|
6022 }
|
70
|
6023
|
0
|
6024 fi
|
|
6025 fi
|
|
6026
|
70
|
6027
|
|
6028
|
|
6029 if test "${with_database_berkdb}" != "no" ; then
|
|
6030 ac_save_LIBS="${LIBS}"
|
0
|
6031 LIBS="${LIBS} -ldb"
|
|
6032 ac_have_lib=""
|
|
6033 test -n "$silent" || echo "checking for -ldb"
|
|
6034 cat > conftest.${ac_ext} <<EOF
|
|
6035 #include "confdefs.h"
|
|
6036
|
|
6037 int main() { return 0; }
|
|
6038 int t() { main();; return 0; }
|
|
6039 EOF
|
|
6040 if eval $ac_compile; then
|
|
6041 rm -rf conftest*
|
|
6042 ac_have_lib="1"
|
|
6043
|
|
6044 fi
|
|
6045 rm -f conftest*
|
|
6046 LIBS="${ac_save_LIBS}"
|
|
6047 if test -n "${ac_have_lib}"; then
|
|
6048 :; have_libdb=yes
|
|
6049 else
|
|
6050 :; have_libdb=no
|
|
6051 fi
|
70
|
6052
|
|
6053 test "${have_libdb}" = yes &&
|
0
|
6054 {
|
|
6055 test -n "$verbose" && \
|
|
6056 echo " defining HAVE_LIBDB"
|
|
6057 echo "#define" HAVE_LIBDB "1" >> confdefs.h
|
|
6058 DEFS="$DEFS -DHAVE_LIBDB=1"
|
|
6059 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDB\${ac_dB}HAVE_LIBDB\${ac_dC}1\${ac_dD}
|
|
6060 \${ac_uA}HAVE_LIBDB\${ac_uB}HAVE_LIBDB\${ac_uC}1\${ac_uD}
|
|
6061 \${ac_eA}HAVE_LIBDB\${ac_eB}HAVE_LIBDB\${ac_eC}1\${ac_eD}
|
|
6062 "
|
|
6063 }
|
70
|
6064
|
|
6065 if test "${with_database_berkdb}" != "yes" ; then
|
|
6066 if test "${have_libdb}" = "yes" ; then
|
0
|
6067 with_database_berkdb=yes
|
|
6068 else
|
70
|
6069 test -n "$silent" || echo "checking for dbopen"
|
0
|
6070 cat > conftest.${ac_ext} <<EOF
|
|
6071 #include "confdefs.h"
|
|
6072 #include <ctype.h>
|
|
6073 int main() { return 0; }
|
|
6074 int t() {
|
|
6075 /* The GNU C library defines this for functions which it implements
|
|
6076 to always fail with ENOSYS. Some functions are actually named
|
|
6077 something starting with __ and the normal name is an alias. */
|
|
6078 #if defined (__stub_dbopen) || defined (__stub___dbopen)
|
|
6079 choke me
|
|
6080 #else
|
|
6081 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6082 extern char dbopen(); dbopen();
|
|
6083 #endif
|
|
6084 ; return 0; }
|
|
6085 EOF
|
|
6086 if eval $ac_compile; then
|
|
6087 rm -rf conftest*
|
70
|
6088 with_database_berkdb=yes
|
0
|
6089
|
|
6090 else
|
|
6091 rm -rf conftest*
|
70
|
6092 with_database_berkdb=no
|
0
|
6093 fi
|
|
6094 rm -f conftest*
|
70
|
6095
|
0
|
6096 fi
|
|
6097 fi
|
|
6098 fi
|
70
|
6099 test "${with_database_berkdb}" = yes &&
|
0
|
6100 {
|
|
6101 test -n "$verbose" && \
|
|
6102 echo " defining HAVE_BERKELEY_DB"
|
|
6103 echo "#define" HAVE_BERKELEY_DB "1" >> confdefs.h
|
|
6104 DEFS="$DEFS -DHAVE_BERKELEY_DB=1"
|
|
6105 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_BERKELEY_DB\${ac_dB}HAVE_BERKELEY_DB\${ac_dC}1\${ac_dD}
|
|
6106 \${ac_uA}HAVE_BERKELEY_DB\${ac_uB}HAVE_BERKELEY_DB\${ac_uC}1\${ac_uD}
|
|
6107 \${ac_eA}HAVE_BERKELEY_DB\${ac_eB}HAVE_BERKELEY_DB\${ac_eC}1\${ac_eD}
|
|
6108 "
|
|
6109 }
|
70
|
6110
|
|
6111
|
|
6112 if test "${with_database_gnudbm}" != "no" ; then
|
|
6113 ac_save_LIBS="${LIBS}"
|
0
|
6114 LIBS="${LIBS} -lgdbm"
|
|
6115 ac_have_lib=""
|
|
6116 test -n "$silent" || echo "checking for -lgdbm"
|
|
6117 cat > conftest.${ac_ext} <<EOF
|
|
6118 #include "confdefs.h"
|
|
6119
|
|
6120 int main() { return 0; }
|
|
6121 int t() { main();; return 0; }
|
|
6122 EOF
|
|
6123 if eval $ac_compile; then
|
|
6124 rm -rf conftest*
|
|
6125 ac_have_lib="1"
|
|
6126
|
|
6127 fi
|
|
6128 rm -f conftest*
|
|
6129 LIBS="${ac_save_LIBS}"
|
|
6130 if test -n "${ac_have_lib}"; then
|
|
6131 :; have_libgdbm=yes
|
|
6132 else
|
|
6133 :; have_libgdbm=no
|
|
6134 fi
|
70
|
6135
|
|
6136 test "${have_libgdbm}" = yes &&
|
0
|
6137 {
|
|
6138 test -n "$verbose" && \
|
|
6139 echo " defining HAVE_LIBGDBM"
|
|
6140 echo "#define" HAVE_LIBGDBM "1" >> confdefs.h
|
|
6141 DEFS="$DEFS -DHAVE_LIBGDBM=1"
|
|
6142 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBGDBM\${ac_dB}HAVE_LIBGDBM\${ac_dC}1\${ac_dD}
|
|
6143 \${ac_uA}HAVE_LIBGDBM\${ac_uB}HAVE_LIBGDBM\${ac_uC}1\${ac_uD}
|
|
6144 \${ac_eA}HAVE_LIBGDBM\${ac_eB}HAVE_LIBGDBM\${ac_eC}1\${ac_eD}
|
|
6145 "
|
|
6146 }
|
70
|
6147
|
|
6148 test -z "${with_database_gnudbm}" && with_database_gnudbm="${have_libgdbm}"
|
|
6149 fi
|
|
6150 if test "${with_database_gnudbm}" = "yes" ; then
|
|
6151
|
0
|
6152 {
|
|
6153 test -n "$verbose" && \
|
|
6154 echo " defining HAVE_DBM"
|
|
6155 echo "#define" HAVE_DBM "1" >> confdefs.h
|
|
6156 DEFS="$DEFS -DHAVE_DBM=1"
|
|
6157 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DBM\${ac_dB}HAVE_DBM\${ac_dC}1\${ac_dD}
|
|
6158 \${ac_uA}HAVE_DBM\${ac_uB}HAVE_DBM\${ac_uC}1\${ac_uD}
|
|
6159 \${ac_eA}HAVE_DBM\${ac_eB}HAVE_DBM\${ac_eC}1\${ac_eD}
|
|
6160 "
|
|
6161 }
|
70
|
6162
|
|
6163
|
0
|
6164 {
|
|
6165 test -n "$verbose" && \
|
|
6166 echo " defining HAVE_GNU_DBM"
|
|
6167 echo "#define" HAVE_GNU_DBM "1" >> confdefs.h
|
|
6168 DEFS="$DEFS -DHAVE_GNU_DBM=1"
|
|
6169 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GNU_DBM\${ac_dB}HAVE_GNU_DBM\${ac_dC}1\${ac_dD}
|
|
6170 \${ac_uA}HAVE_GNU_DBM\${ac_uB}HAVE_GNU_DBM\${ac_uC}1\${ac_uD}
|
|
6171 \${ac_eA}HAVE_GNU_DBM\${ac_eB}HAVE_GNU_DBM\${ac_eC}1\${ac_eD}
|
|
6172 "
|
|
6173 }
|
70
|
6174
|
0
|
6175 with_database_dbm=no
|
|
6176 fi
|
|
6177
|
70
|
6178 if test "${with_database_dbm}" != "no" ; then
|
|
6179 ac_save_LIBS="${LIBS}"
|
0
|
6180 LIBS="${LIBS} -ldbm"
|
|
6181 ac_have_lib=""
|
|
6182 test -n "$silent" || echo "checking for -ldbm"
|
|
6183 cat > conftest.${ac_ext} <<EOF
|
|
6184 #include "confdefs.h"
|
|
6185
|
|
6186 int main() { return 0; }
|
|
6187 int t() { main();; return 0; }
|
|
6188 EOF
|
|
6189 if eval $ac_compile; then
|
|
6190 rm -rf conftest*
|
|
6191 ac_have_lib="1"
|
|
6192
|
|
6193 fi
|
|
6194 rm -f conftest*
|
|
6195 LIBS="${ac_save_LIBS}"
|
|
6196 if test -n "${ac_have_lib}"; then
|
|
6197 :; have_libdbm=yes
|
|
6198 else
|
|
6199 :; have_libdbm=no
|
|
6200 fi
|
70
|
6201
|
|
6202 test "${have_libdbm}" = yes &&
|
0
|
6203 {
|
|
6204 test -n "$verbose" && \
|
|
6205 echo " defining HAVE_LIBDBM"
|
|
6206 echo "#define" HAVE_LIBDBM "1" >> confdefs.h
|
|
6207 DEFS="$DEFS -DHAVE_LIBDBM=1"
|
|
6208 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDBM\${ac_dB}HAVE_LIBDBM\${ac_dC}1\${ac_dD}
|
|
6209 \${ac_uA}HAVE_LIBDBM\${ac_uB}HAVE_LIBDBM\${ac_uC}1\${ac_uD}
|
|
6210 \${ac_eA}HAVE_LIBDBM\${ac_eB}HAVE_LIBDBM\${ac_eC}1\${ac_eD}
|
|
6211 "
|
|
6212 }
|
70
|
6213
|
|
6214 if test "${with_database_dbm}" != "yes" ; then
|
|
6215 if test "${have_libdbm}" = "yes" ; then
|
0
|
6216 with_database_dbm=yes
|
|
6217 else
|
70
|
6218 test -n "$silent" || echo "checking for dbm_open"
|
0
|
6219 cat > conftest.${ac_ext} <<EOF
|
|
6220 #include "confdefs.h"
|
|
6221 #include <ctype.h>
|
|
6222 int main() { return 0; }
|
|
6223 int t() {
|
|
6224 /* The GNU C library defines this for functions which it implements
|
|
6225 to always fail with ENOSYS. Some functions are actually named
|
|
6226 something starting with __ and the normal name is an alias. */
|
|
6227 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
6228 choke me
|
|
6229 #else
|
|
6230 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6231 extern char dbm_open(); dbm_open();
|
|
6232 #endif
|
|
6233 ; return 0; }
|
|
6234 EOF
|
|
6235 if eval $ac_compile; then
|
|
6236 rm -rf conftest*
|
70
|
6237 with_database_dbm=yes
|
0
|
6238
|
|
6239 else
|
|
6240 rm -rf conftest*
|
70
|
6241 with_database_dbm=no
|
0
|
6242 fi
|
|
6243 rm -f conftest*
|
70
|
6244
|
0
|
6245 fi
|
|
6246 fi
|
|
6247 fi
|
70
|
6248 test "${with_database_dbm}" = yes &&
|
0
|
6249 {
|
|
6250 test -n "$verbose" && \
|
|
6251 echo " defining HAVE_DBM"
|
|
6252 echo "#define" HAVE_DBM "1" >> confdefs.h
|
|
6253 DEFS="$DEFS -DHAVE_DBM=1"
|
|
6254 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DBM\${ac_dB}HAVE_DBM\${ac_dC}1\${ac_dD}
|
|
6255 \${ac_uA}HAVE_DBM\${ac_uB}HAVE_DBM\${ac_uC}1\${ac_uD}
|
|
6256 \${ac_eA}HAVE_DBM\${ac_eB}HAVE_DBM\${ac_eC}1\${ac_eD}
|
|
6257 "
|
|
6258 }
|
70
|
6259
|
0
|
6260
|
|
6261
|
|
6262 ############################################################################
|
|
6263 # #
|
|
6264 # Substitute into Makefile and config.h #
|
|
6265 # #
|
|
6266 ############################################################################
|
|
6267
|
70
|
6268
|
|
6269
|
|
6270
|
|
6271
|
|
6272
|
|
6273
|
|
6274
|
|
6275
|
|
6276
|
|
6277
|
|
6278
|
|
6279
|
|
6280
|
|
6281
|
|
6282
|
|
6283
|
|
6284
|
|
6285
|
|
6286
|
|
6287
|
|
6288
|
|
6289
|
|
6290
|
|
6291
|
|
6292
|
|
6293
|
|
6294
|
|
6295
|
|
6296
|
|
6297
|
|
6298
|
|
6299
|
|
6300
|
|
6301
|
|
6302
|
|
6303
|
|
6304
|
|
6305
|
|
6306
|
|
6307
|
|
6308
|
|
6309 {
|
|
6310 test -n "$verbose" && \
|
|
6311 echo " defining" EMACS_VERSION to be ""${version}""
|
|
6312 echo "#define" EMACS_VERSION ""${version}"" >> confdefs.h
|
|
6313 DEFS="$DEFS -DEMACS_VERSION="${version}""
|
|
6314 ac_sed_defs="${ac_sed_defs}\${ac_dA}EMACS_VERSION\${ac_dB}EMACS_VERSION\${ac_dC}"${version}"\${ac_dD}
|
|
6315 \${ac_uA}EMACS_VERSION\${ac_uB}EMACS_VERSION\${ac_uC}"${version}"\${ac_uD}
|
|
6316 \${ac_eA}EMACS_VERSION\${ac_eB}EMACS_VERSION\${ac_eC}"${version}"\${ac_eD}
|
|
6317 "
|
|
6318 }
|
0
|
6319
|
|
6320
|
|
6321 {
|
|
6322 test -n "$verbose" && \
|
|
6323 echo " defining" EMACS_CONFIGURATION to be ""\"${canonical}\"""
|
|
6324 echo "#define" EMACS_CONFIGURATION ""\"${canonical}\""" >> confdefs.h
|
|
6325 DEFS="$DEFS -DEMACS_CONFIGURATION="\"${canonical}\"""
|
|
6326 ac_sed_defs="${ac_sed_defs}\${ac_dA}EMACS_CONFIGURATION\${ac_dB}EMACS_CONFIGURATION\${ac_dC}"\"${canonical}\""\${ac_dD}
|
|
6327 \${ac_uA}EMACS_CONFIGURATION\${ac_uB}EMACS_CONFIGURATION\${ac_uC}"\"${canonical}\""\${ac_uD}
|
|
6328 \${ac_eA}EMACS_CONFIGURATION\${ac_eB}EMACS_CONFIGURATION\${ac_eC}"\"${canonical}\""\${ac_eD}
|
|
6329 "
|
|
6330 }
|
|
6331
|
|
6332
|
|
6333 {
|
|
6334 test -n "$verbose" && \
|
|
6335 echo " defining" config_machfile to be ""\"${machfile}\"""
|
|
6336 echo "#define" config_machfile ""\"${machfile}\""" >> confdefs.h
|
|
6337 DEFS="$DEFS -Dconfig_machfile="\"${machfile}\"""
|
|
6338 ac_sed_defs="${ac_sed_defs}\${ac_dA}config_machfile\${ac_dB}config_machfile\${ac_dC}"\"${machfile}\""\${ac_dD}
|
|
6339 \${ac_uA}config_machfile\${ac_uB}config_machfile\${ac_uC}"\"${machfile}\""\${ac_uD}
|
|
6340 \${ac_eA}config_machfile\${ac_eB}config_machfile\${ac_eC}"\"${machfile}\""\${ac_eD}
|
|
6341 "
|
|
6342 }
|
|
6343
|
|
6344
|
|
6345 {
|
|
6346 test -n "$verbose" && \
|
|
6347 echo " defining" config_opsysfile to be ""\"${opsysfile}\"""
|
|
6348 echo "#define" config_opsysfile ""\"${opsysfile}\""" >> confdefs.h
|
|
6349 DEFS="$DEFS -Dconfig_opsysfile="\"${opsysfile}\"""
|
|
6350 ac_sed_defs="${ac_sed_defs}\${ac_dA}config_opsysfile\${ac_dB}config_opsysfile\${ac_dC}"\"${opsysfile}\""\${ac_dD}
|
|
6351 \${ac_uA}config_opsysfile\${ac_uB}config_opsysfile\${ac_uC}"\"${opsysfile}\""\${ac_uD}
|
|
6352 \${ac_eA}config_opsysfile\${ac_eB}config_opsysfile\${ac_eC}"\"${opsysfile}\""\${ac_eD}
|
|
6353 "
|
|
6354 }
|
|
6355
|
|
6356
|
|
6357 {
|
|
6358 test -n "$verbose" && \
|
|
6359 echo " defining" LD_SWITCH_X_SITE to be "${LD_SWITCH_X_SITE}"
|
|
6360 echo "#define" LD_SWITCH_X_SITE "${LD_SWITCH_X_SITE}" >> confdefs.h
|
|
6361 DEFS="$DEFS -DLD_SWITCH_X_SITE=${LD_SWITCH_X_SITE}"
|
|
6362 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_X_SITE\${ac_dB}LD_SWITCH_X_SITE\${ac_dC}${LD_SWITCH_X_SITE}\${ac_dD}
|
|
6363 \${ac_uA}LD_SWITCH_X_SITE\${ac_uB}LD_SWITCH_X_SITE\${ac_uC}${LD_SWITCH_X_SITE}\${ac_uD}
|
|
6364 \${ac_eA}LD_SWITCH_X_SITE\${ac_eB}LD_SWITCH_X_SITE\${ac_eC}${LD_SWITCH_X_SITE}\${ac_eD}
|
|
6365 "
|
|
6366 }
|
|
6367
|
|
6368
|
|
6369 {
|
|
6370 test -n "$verbose" && \
|
|
6371 echo " defining" LD_SWITCH_X_SITE_AUX to be "${LD_SWITCH_X_SITE_AUX}"
|
|
6372 echo "#define" LD_SWITCH_X_SITE_AUX "${LD_SWITCH_X_SITE_AUX}" >> confdefs.h
|
|
6373 DEFS="$DEFS -DLD_SWITCH_X_SITE_AUX=${LD_SWITCH_X_SITE_AUX}"
|
|
6374 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_X_SITE_AUX\${ac_dB}LD_SWITCH_X_SITE_AUX\${ac_dC}${LD_SWITCH_X_SITE_AUX}\${ac_dD}
|
|
6375 \${ac_uA}LD_SWITCH_X_SITE_AUX\${ac_uB}LD_SWITCH_X_SITE_AUX\${ac_uC}${LD_SWITCH_X_SITE_AUX}\${ac_uD}
|
|
6376 \${ac_eA}LD_SWITCH_X_SITE_AUX\${ac_eB}LD_SWITCH_X_SITE_AUX\${ac_eC}${LD_SWITCH_X_SITE_AUX}\${ac_eD}
|
|
6377 "
|
|
6378 }
|
|
6379
|
|
6380
|
|
6381 {
|
|
6382 test -n "$verbose" && \
|
|
6383 echo " defining" C_SWITCH_X_SITE to be "${C_SWITCH_X_SITE}"
|
|
6384 echo "#define" C_SWITCH_X_SITE "${C_SWITCH_X_SITE}" >> confdefs.h
|
|
6385 DEFS="$DEFS -DC_SWITCH_X_SITE=${C_SWITCH_X_SITE}"
|
|
6386 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_SWITCH_X_SITE\${ac_dB}C_SWITCH_X_SITE\${ac_dC}${C_SWITCH_X_SITE}\${ac_dD}
|
|
6387 \${ac_uA}C_SWITCH_X_SITE\${ac_uB}C_SWITCH_X_SITE\${ac_uC}${C_SWITCH_X_SITE}\${ac_uD}
|
|
6388 \${ac_eA}C_SWITCH_X_SITE\${ac_eB}C_SWITCH_X_SITE\${ac_eC}${C_SWITCH_X_SITE}\${ac_eD}
|
|
6389 "
|
|
6390 }
|
|
6391
|
|
6392
|
|
6393 {
|
|
6394 test -n "$verbose" && \
|
|
6395 echo " defining" LD_SWITCH_SITE to be "${LD_SWITCH_SITE}"
|
|
6396 echo "#define" LD_SWITCH_SITE "${LD_SWITCH_SITE}" >> confdefs.h
|
|
6397 DEFS="$DEFS -DLD_SWITCH_SITE=${LD_SWITCH_SITE}"
|
|
6398 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_SITE\${ac_dB}LD_SWITCH_SITE\${ac_dC}${LD_SWITCH_SITE}\${ac_dD}
|
|
6399 \${ac_uA}LD_SWITCH_SITE\${ac_uB}LD_SWITCH_SITE\${ac_uC}${LD_SWITCH_SITE}\${ac_uD}
|
|
6400 \${ac_eA}LD_SWITCH_SITE\${ac_eB}LD_SWITCH_SITE\${ac_eC}${LD_SWITCH_SITE}\${ac_eD}
|
|
6401 "
|
|
6402 }
|
|
6403
|
|
6404
|
|
6405 {
|
|
6406 test -n "$verbose" && \
|
|
6407 echo " defining" C_SWITCH_SITE to be "${C_SWITCH_SITE}"
|
|
6408 echo "#define" C_SWITCH_SITE "${C_SWITCH_SITE}" >> confdefs.h
|
|
6409 DEFS="$DEFS -DC_SWITCH_SITE=${C_SWITCH_SITE}"
|
|
6410 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_SWITCH_SITE\${ac_dB}C_SWITCH_SITE\${ac_dC}${C_SWITCH_SITE}\${ac_dD}
|
|
6411 \${ac_uA}C_SWITCH_SITE\${ac_uB}C_SWITCH_SITE\${ac_uC}${C_SWITCH_SITE}\${ac_uD}
|
|
6412 \${ac_eA}C_SWITCH_SITE\${ac_eB}C_SWITCH_SITE\${ac_eC}${C_SWITCH_SITE}\${ac_eD}
|
|
6413 "
|
|
6414 }
|
|
6415
|
|
6416
|
|
6417 {
|
|
6418 test -n "$verbose" && \
|
|
6419 echo " defining" UNEXEC_SRC to be "${UNEXEC_SRC}"
|
|
6420 echo "#define" UNEXEC_SRC "${UNEXEC_SRC}" >> confdefs.h
|
|
6421 DEFS="$DEFS -DUNEXEC_SRC=${UNEXEC_SRC}"
|
|
6422 ac_sed_defs="${ac_sed_defs}\${ac_dA}UNEXEC_SRC\${ac_dB}UNEXEC_SRC\${ac_dC}${UNEXEC_SRC}\${ac_dD}
|
|
6423 \${ac_uA}UNEXEC_SRC\${ac_uB}UNEXEC_SRC\${ac_uC}${UNEXEC_SRC}\${ac_uD}
|
|
6424 \${ac_eA}UNEXEC_SRC\${ac_eB}UNEXEC_SRC\${ac_eC}${UNEXEC_SRC}\${ac_eD}
|
|
6425 "
|
|
6426 }
|
|
6427
|
|
6428
|
|
6429
|
70
|
6430 test -n "${puresize}" &&
|
|
6431 {
|
|
6432 test -n "$verbose" && \
|
104
|
6433 echo " defining" RAW_PURESIZE to be "${puresize}"
|
|
6434 echo "#define" RAW_PURESIZE "${puresize}" >> confdefs.h
|
|
6435 DEFS="$DEFS -DRAW_PURESIZE=${puresize}"
|
|
6436 ac_sed_defs="${ac_sed_defs}\${ac_dA}RAW_PURESIZE\${ac_dB}RAW_PURESIZE\${ac_dC}${puresize}\${ac_dD}
|
|
6437 \${ac_uA}RAW_PURESIZE\${ac_uB}RAW_PURESIZE\${ac_uC}${puresize}\${ac_uD}
|
|
6438 \${ac_eA}RAW_PURESIZE\${ac_eB}RAW_PURESIZE\${ac_eC}${puresize}\${ac_eD}
|
70
|
6439 "
|
|
6440 }
|
|
6441
|
|
6442 test "${HAVE_X_WINDOWS}" = yes &&
|
0
|
6443 {
|
|
6444 test -n "$verbose" && \
|
|
6445 echo " defining HAVE_X_WINDOWS"
|
|
6446 echo "#define" HAVE_X_WINDOWS "1" >> confdefs.h
|
|
6447 DEFS="$DEFS -DHAVE_X_WINDOWS=1"
|
|
6448 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_X_WINDOWS\${ac_dB}HAVE_X_WINDOWS\${ac_dC}1\${ac_dD}
|
|
6449 \${ac_uA}HAVE_X_WINDOWS\${ac_uB}HAVE_X_WINDOWS\${ac_uC}1\${ac_uD}
|
|
6450 \${ac_eA}HAVE_X_WINDOWS\${ac_eB}HAVE_X_WINDOWS\${ac_eC}1\${ac_eD}
|
|
6451 "
|
|
6452 }
|
70
|
6453
|
|
6454 test "${HAVE_XFREE386}" = yes &&
|
0
|
6455 {
|
|
6456 test -n "$verbose" && \
|
|
6457 echo " defining HAVE_XFREE386"
|
|
6458 echo "#define" HAVE_XFREE386 "1" >> confdefs.h
|
|
6459 DEFS="$DEFS -DHAVE_XFREE386=1"
|
|
6460 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFREE386\${ac_dB}HAVE_XFREE386\${ac_dC}1\${ac_dD}
|
|
6461 \${ac_uA}HAVE_XFREE386\${ac_uB}HAVE_XFREE386\${ac_uC}1\${ac_uD}
|
|
6462 \${ac_eA}HAVE_XFREE386\${ac_eB}HAVE_XFREE386\${ac_eC}1\${ac_eD}
|
|
6463 "
|
|
6464 }
|
70
|
6465
|
|
6466
|
|
6467 if test "${GNU_MALLOC}" = yes; then
|
0
|
6468 {
|
|
6469 test -n "$verbose" && \
|
|
6470 echo " defining GNU_MALLOC"
|
|
6471 echo "#define" GNU_MALLOC "1" >> confdefs.h
|
|
6472 DEFS="$DEFS -DGNU_MALLOC=1"
|
|
6473 ac_sed_defs="${ac_sed_defs}\${ac_dA}GNU_MALLOC\${ac_dB}GNU_MALLOC\${ac_dC}1\${ac_dD}
|
|
6474 \${ac_uA}GNU_MALLOC\${ac_uB}GNU_MALLOC\${ac_uC}1\${ac_uD}
|
|
6475 \${ac_eA}GNU_MALLOC\${ac_eB}GNU_MALLOC\${ac_eC}1\${ac_eD}
|
|
6476 "
|
|
6477 }
|
70
|
6478
|
|
6479 elif test "${use_system_malloc}" = yes; then
|
0
|
6480 {
|
|
6481 test -n "$verbose" && \
|
|
6482 echo " defining USE_SYSTEM_MALLOC"
|
|
6483 echo "#define" USE_SYSTEM_MALLOC "1" >> confdefs.h
|
|
6484 DEFS="$DEFS -DUSE_SYSTEM_MALLOC=1"
|
|
6485 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_SYSTEM_MALLOC\${ac_dB}USE_SYSTEM_MALLOC\${ac_dC}1\${ac_dD}
|
|
6486 \${ac_uA}USE_SYSTEM_MALLOC\${ac_uB}USE_SYSTEM_MALLOC\${ac_uC}1\${ac_uD}
|
|
6487 \${ac_eA}USE_SYSTEM_MALLOC\${ac_eB}USE_SYSTEM_MALLOC\${ac_eC}1\${ac_eD}
|
|
6488 "
|
|
6489 }
|
70
|
6490
|
|
6491 fi
|
|
6492 test "${rel_alloc}" = yes &&
|
0
|
6493 {
|
|
6494 test -n "$verbose" && \
|
|
6495 echo " defining REL_ALLOC"
|
|
6496 echo "#define" REL_ALLOC "1" >> confdefs.h
|
|
6497 DEFS="$DEFS -DREL_ALLOC=1"
|
|
6498 ac_sed_defs="${ac_sed_defs}\${ac_dA}REL_ALLOC\${ac_dB}REL_ALLOC\${ac_dC}1\${ac_dD}
|
|
6499 \${ac_uA}REL_ALLOC\${ac_uB}REL_ALLOC\${ac_uC}1\${ac_uD}
|
|
6500 \${ac_eA}REL_ALLOC\${ac_eB}REL_ALLOC\${ac_eC}1\${ac_eD}
|
|
6501 "
|
|
6502 }
|
70
|
6503
|
|
6504 test "${LISP_FLOAT_TYPE}" = yes &&
|
0
|
6505 {
|
|
6506 test -n "$verbose" && \
|
|
6507 echo " defining LISP_FLOAT_TYPE"
|
|
6508 echo "#define" LISP_FLOAT_TYPE "1" >> confdefs.h
|
|
6509 DEFS="$DEFS -DLISP_FLOAT_TYPE=1"
|
|
6510 ac_sed_defs="${ac_sed_defs}\${ac_dA}LISP_FLOAT_TYPE\${ac_dB}LISP_FLOAT_TYPE\${ac_dC}1\${ac_dD}
|
|
6511 \${ac_uA}LISP_FLOAT_TYPE\${ac_uB}LISP_FLOAT_TYPE\${ac_uC}1\${ac_uD}
|
|
6512 \${ac_eA}LISP_FLOAT_TYPE\${ac_eB}LISP_FLOAT_TYPE\${ac_eC}1\${ac_eD}
|
|
6513 "
|
|
6514 }
|
70
|
6515
|
|
6516 test "${with_motif}" = yes &&
|
0
|
6517 {
|
|
6518 test -n "$verbose" && \
|
|
6519 echo " defining LWLIB_USES_MOTIF"
|
|
6520 echo "#define" LWLIB_USES_MOTIF "1" >> confdefs.h
|
|
6521 DEFS="$DEFS -DLWLIB_USES_MOTIF=1"
|
|
6522 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_USES_MOTIF\${ac_dB}LWLIB_USES_MOTIF\${ac_dC}1\${ac_dD}
|
|
6523 \${ac_uA}LWLIB_USES_MOTIF\${ac_uB}LWLIB_USES_MOTIF\${ac_uC}1\${ac_uD}
|
|
6524 \${ac_eA}LWLIB_USES_MOTIF\${ac_eB}LWLIB_USES_MOTIF\${ac_eC}1\${ac_eD}
|
|
6525 "
|
|
6526 }
|
70
|
6527
|
82
|
6528 test "${with_athena}" = yes &&
|
|
6529 {
|
|
6530 test -n "$verbose" && \
|
|
6531 echo " defining LWLIB_USES_ATHENA"
|
|
6532 echo "#define" LWLIB_USES_ATHENA "1" >> confdefs.h
|
|
6533 DEFS="$DEFS -DLWLIB_USES_ATHENA=1"
|
|
6534 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_USES_ATHENA\${ac_dB}LWLIB_USES_ATHENA\${ac_dC}1\${ac_dD}
|
|
6535 \${ac_uA}LWLIB_USES_ATHENA\${ac_uB}LWLIB_USES_ATHENA\${ac_uC}1\${ac_uD}
|
|
6536 \${ac_eA}LWLIB_USES_ATHENA\${ac_eB}LWLIB_USES_ATHENA\${ac_eC}1\${ac_eD}
|
|
6537 "
|
|
6538 }
|
|
6539
|
70
|
6540 test "${with_toolbars}" = yes &&
|
0
|
6541 {
|
|
6542 test -n "$verbose" && \
|
|
6543 echo " defining HAVE_TOOLBARS"
|
|
6544 echo "#define" HAVE_TOOLBARS "1" >> confdefs.h
|
|
6545 DEFS="$DEFS -DHAVE_TOOLBARS=1"
|
|
6546 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TOOLBARS\${ac_dB}HAVE_TOOLBARS\${ac_dC}1\${ac_dD}
|
|
6547 \${ac_uA}HAVE_TOOLBARS\${ac_uB}HAVE_TOOLBARS\${ac_uC}1\${ac_uD}
|
|
6548 \${ac_eA}HAVE_TOOLBARS\${ac_eB}HAVE_TOOLBARS\${ac_eC}1\${ac_eD}
|
|
6549 "
|
|
6550 }
|
70
|
6551
|
|
6552 test "${with_tty}" = yes &&
|
0
|
6553 {
|
|
6554 test -n "$verbose" && \
|
|
6555 echo " defining HAVE_TTY"
|
|
6556 echo "#define" HAVE_TTY "1" >> confdefs.h
|
|
6557 DEFS="$DEFS -DHAVE_TTY=1"
|
|
6558 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TTY\${ac_dB}HAVE_TTY\${ac_dC}1\${ac_dD}
|
|
6559 \${ac_uA}HAVE_TTY\${ac_uB}HAVE_TTY\${ac_uC}1\${ac_uD}
|
|
6560 \${ac_eA}HAVE_TTY\${ac_eB}HAVE_TTY\${ac_eC}1\${ac_eD}
|
|
6561 "
|
|
6562 }
|
70
|
6563
|
|
6564 test "${with_tooltalk}" = yes &&
|
0
|
6565 {
|
|
6566 test -n "$verbose" && \
|
|
6567 echo " defining TOOLTALK"
|
|
6568 echo "#define" TOOLTALK "1" >> confdefs.h
|
|
6569 DEFS="$DEFS -DTOOLTALK=1"
|
|
6570 ac_sed_defs="${ac_sed_defs}\${ac_dA}TOOLTALK\${ac_dB}TOOLTALK\${ac_dC}1\${ac_dD}
|
|
6571 \${ac_uA}TOOLTALK\${ac_uB}TOOLTALK\${ac_uC}1\${ac_uD}
|
|
6572 \${ac_eA}TOOLTALK\${ac_eB}TOOLTALK\${ac_eC}1\${ac_eD}
|
|
6573 "
|
|
6574 }
|
70
|
6575
|
|
6576 test "${with_i18n3}" = yes &&
|
|
6577 {
|
|
6578 test -n "$verbose" && \
|
|
6579 echo " defining I18N3"
|
|
6580 echo "#define" I18N3 "1" >> confdefs.h
|
|
6581 DEFS="$DEFS -DI18N3=1"
|
|
6582 ac_sed_defs="${ac_sed_defs}\${ac_dA}I18N3\${ac_dB}I18N3\${ac_dC}1\${ac_dD}
|
|
6583 \${ac_uA}I18N3\${ac_uB}I18N3\${ac_uC}1\${ac_uD}
|
|
6584 \${ac_eA}I18N3\${ac_eB}I18N3\${ac_eC}1\${ac_eD}
|
|
6585 "
|
|
6586 }
|
|
6587
|
|
6588 test "${with_mule}" = yes &&
|
|
6589 {
|
|
6590 test -n "$verbose" && \
|
|
6591 echo " defining MULE"
|
|
6592 echo "#define" MULE "1" >> confdefs.h
|
|
6593 DEFS="$DEFS -DMULE=1"
|
|
6594 ac_sed_defs="${ac_sed_defs}\${ac_dA}MULE\${ac_dB}MULE\${ac_dC}1\${ac_dD}
|
|
6595 \${ac_uA}MULE\${ac_uB}MULE\${ac_uC}1\${ac_uD}
|
|
6596 \${ac_eA}MULE\${ac_eB}MULE\${ac_eC}1\${ac_eD}
|
|
6597 "
|
|
6598 }
|
|
6599
|
|
6600 test "${with_canna}" = yes &&
|
|
6601 {
|
|
6602 test -n "$verbose" && \
|
|
6603 echo " defining HAVE_CANNA"
|
|
6604 echo "#define" HAVE_CANNA "1" >> confdefs.h
|
|
6605 DEFS="$DEFS -DHAVE_CANNA=1"
|
|
6606 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_CANNA\${ac_dB}HAVE_CANNA\${ac_dC}1\${ac_dD}
|
|
6607 \${ac_uA}HAVE_CANNA\${ac_uB}HAVE_CANNA\${ac_uC}1\${ac_uD}
|
|
6608 \${ac_eA}HAVE_CANNA\${ac_eB}HAVE_CANNA\${ac_eC}1\${ac_eD}
|
|
6609 "
|
|
6610 }
|
|
6611
|
|
6612 test "${with_wnn}" = yes &&
|
|
6613 {
|
|
6614 test -n "$verbose" && \
|
|
6615 echo " defining HAVE_WNN"
|
|
6616 echo "#define" HAVE_WNN "1" >> confdefs.h
|
|
6617 DEFS="$DEFS -DHAVE_WNN=1"
|
|
6618 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_WNN\${ac_dB}HAVE_WNN\${ac_dC}1\${ac_dD}
|
|
6619 \${ac_uA}HAVE_WNN\${ac_uB}HAVE_WNN\${ac_uC}1\${ac_uD}
|
|
6620 \${ac_eA}HAVE_WNN\${ac_eB}HAVE_WNN\${ac_eC}1\${ac_eD}
|
|
6621 "
|
|
6622 }
|
|
6623
|
98
|
6624 test "${with_wnn6}" = yes &&
|
|
6625 {
|
|
6626 test -n "$verbose" && \
|
|
6627 echo " defining WNN6"
|
|
6628 echo "#define" WNN6 "1" >> confdefs.h
|
|
6629 DEFS="$DEFS -DWNN6=1"
|
|
6630 ac_sed_defs="${ac_sed_defs}\${ac_dA}WNN6\${ac_dB}WNN6\${ac_dC}1\${ac_dD}
|
|
6631 \${ac_uA}WNN6\${ac_uB}WNN6\${ac_uC}1\${ac_uD}
|
|
6632 \${ac_eA}WNN6\${ac_eB}WNN6\${ac_eC}1\${ac_eD}
|
|
6633 "
|
|
6634 }
|
|
6635
|
70
|
6636 test "${with_mock}" = yes &&
|
0
|
6637 {
|
|
6638 test -n "$verbose" && \
|
|
6639 echo " defining MOCKLISP_SUPPORT"
|
|
6640 echo "#define" MOCKLISP_SUPPORT "1" >> confdefs.h
|
|
6641 DEFS="$DEFS -DMOCKLISP_SUPPORT=1"
|
|
6642 ac_sed_defs="${ac_sed_defs}\${ac_dA}MOCKLISP_SUPPORT\${ac_dB}MOCKLISP_SUPPORT\${ac_dC}1\${ac_dD}
|
|
6643 \${ac_uA}MOCKLISP_SUPPORT\${ac_uB}MOCKLISP_SUPPORT\${ac_uC}1\${ac_uD}
|
|
6644 \${ac_eA}MOCKLISP_SUPPORT\${ac_eB}MOCKLISP_SUPPORT\${ac_eC}1\${ac_eD}
|
|
6645 "
|
|
6646 }
|
70
|
6647
|
|
6648 test "${with_sparcworks}" = yes &&
|
0
|
6649 {
|
|
6650 test -n "$verbose" && \
|
|
6651 echo " defining SUNPRO"
|
|
6652 echo "#define" SUNPRO "1" >> confdefs.h
|
|
6653 DEFS="$DEFS -DSUNPRO=1"
|
|
6654 ac_sed_defs="${ac_sed_defs}\${ac_dA}SUNPRO\${ac_dB}SUNPRO\${ac_dC}1\${ac_dD}
|
|
6655 \${ac_uA}SUNPRO\${ac_uB}SUNPRO\${ac_uC}1\${ac_uD}
|
|
6656 \${ac_eA}SUNPRO\${ac_eB}SUNPRO\${ac_eC}1\${ac_eD}
|
|
6657 "
|
|
6658 }
|
70
|
6659
|
|
6660 test "${usage_tracking}" = yes &&
|
0
|
6661 {
|
|
6662 test -n "$verbose" && \
|
|
6663 echo " defining USAGE_TRACKING"
|
|
6664 echo "#define" USAGE_TRACKING "1" >> confdefs.h
|
|
6665 DEFS="$DEFS -DUSAGE_TRACKING=1"
|
|
6666 ac_sed_defs="${ac_sed_defs}\${ac_dA}USAGE_TRACKING\${ac_dB}USAGE_TRACKING\${ac_dC}1\${ac_dD}
|
|
6667 \${ac_uA}USAGE_TRACKING\${ac_uB}USAGE_TRACKING\${ac_uC}1\${ac_uD}
|
|
6668 \${ac_eA}USAGE_TRACKING\${ac_eB}USAGE_TRACKING\${ac_eC}1\${ac_eD}
|
|
6669 "
|
|
6670 }
|
70
|
6671
|
|
6672 test "${need_dynodump}" = yes &&
|
|
6673 {
|
|
6674 test -n "$verbose" && \
|
|
6675 echo " defining DYNODUMP"
|
|
6676 echo "#define" DYNODUMP "1" >> confdefs.h
|
|
6677 DEFS="$DEFS -DDYNODUMP=1"
|
|
6678 ac_sed_defs="${ac_sed_defs}\${ac_dA}DYNODUMP\${ac_dB}DYNODUMP\${ac_dC}1\${ac_dD}
|
|
6679 \${ac_uA}DYNODUMP\${ac_uB}DYNODUMP\${ac_uC}1\${ac_uD}
|
|
6680 \${ac_eA}DYNODUMP\${ac_eB}DYNODUMP\${ac_eC}1\${ac_eD}
|
|
6681 "
|
|
6682 }
|
|
6683
|
|
6684 test "${need_xildoff}" = yes &&
|
|
6685 {
|
|
6686 test -n "$verbose" && \
|
|
6687 echo " defining NEED_XILDOFF"
|
|
6688 echo "#define" NEED_XILDOFF "1" >> confdefs.h
|
|
6689 DEFS="$DEFS -DNEED_XILDOFF=1"
|
|
6690 ac_sed_defs="${ac_sed_defs}\${ac_dA}NEED_XILDOFF\${ac_dB}NEED_XILDOFF\${ac_dC}1\${ac_dD}
|
|
6691 \${ac_uA}NEED_XILDOFF\${ac_uB}NEED_XILDOFF\${ac_uC}1\${ac_uD}
|
|
6692 \${ac_eA}NEED_XILDOFF\${ac_eB}NEED_XILDOFF\${ac_eC}1\${ac_eD}
|
|
6693 "
|
|
6694 }
|
|
6695
|
|
6696 test "${with_gcc}" = yes &&
|
|
6697 {
|
|
6698 test -n "$verbose" && \
|
|
6699 echo " defining USE_GCC"
|
|
6700 echo "#define" USE_GCC "1" >> confdefs.h
|
|
6701 DEFS="$DEFS -DUSE_GCC=1"
|
|
6702 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GCC\${ac_dB}USE_GCC\${ac_dC}1\${ac_dD}
|
|
6703 \${ac_uA}USE_GCC\${ac_uB}USE_GCC\${ac_uC}1\${ac_uD}
|
|
6704 \${ac_eA}USE_GCC\${ac_eB}USE_GCC\${ac_eC}1\${ac_eD}
|
|
6705 "
|
|
6706 }
|
|
6707
|
|
6708 test "${with_lcc}" = yes &&
|
|
6709 {
|
|
6710 test -n "$verbose" && \
|
|
6711 echo " defining USE_LCC"
|
|
6712 echo "#define" USE_LCC "1" >> confdefs.h
|
|
6713 DEFS="$DEFS -DUSE_LCC=1"
|
|
6714 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_LCC\${ac_dB}USE_LCC\${ac_dC}1\${ac_dD}
|
|
6715 \${ac_uA}USE_LCC\${ac_uB}USE_LCC\${ac_uC}1\${ac_uD}
|
|
6716 \${ac_eA}USE_LCC\${ac_eB}USE_LCC\${ac_eC}1\${ac_eD}
|
|
6717 "
|
|
6718 }
|
|
6719
|
|
6720 test "${with_socks}" = yes &&
|
|
6721 {
|
|
6722 test -n "$verbose" && \
|
|
6723 echo " defining HAVE_SOCKS"
|
|
6724 echo "#define" HAVE_SOCKS "1" >> confdefs.h
|
|
6725 DEFS="$DEFS -DHAVE_SOCKS=1"
|
|
6726 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKS\${ac_dB}HAVE_SOCKS\${ac_dC}1\${ac_dD}
|
|
6727 \${ac_uA}HAVE_SOCKS\${ac_uB}HAVE_SOCKS\${ac_uC}1\${ac_uD}
|
|
6728 \${ac_eA}HAVE_SOCKS\${ac_eB}HAVE_SOCKS\${ac_eC}1\${ac_eD}
|
|
6729 "
|
|
6730 }
|
|
6731
|
|
6732 test "${with_term}" = yes &&
|
|
6733 {
|
|
6734 test -n "$verbose" && \
|
|
6735 echo " defining HAVE_TERM"
|
|
6736 echo "#define" HAVE_TERM "1" >> confdefs.h
|
|
6737 DEFS="$DEFS -DHAVE_TERM=1"
|
|
6738 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERM\${ac_dB}HAVE_TERM\${ac_dC}1\${ac_dD}
|
|
6739 \${ac_uA}HAVE_TERM\${ac_uB}HAVE_TERM\${ac_uC}1\${ac_uD}
|
|
6740 \${ac_eA}HAVE_TERM\${ac_eB}HAVE_TERM\${ac_eC}1\${ac_eD}
|
|
6741 "
|
|
6742 }
|
|
6743
|
|
6744 test "${with_epoch}" = yes &&
|
|
6745 {
|
|
6746 test -n "$verbose" && \
|
|
6747 echo " defining EPOCH"
|
|
6748 echo "#define" EPOCH "1" >> confdefs.h
|
|
6749 DEFS="$DEFS -DEPOCH=1"
|
|
6750 ac_sed_defs="${ac_sed_defs}\${ac_dA}EPOCH\${ac_dB}EPOCH\${ac_dC}1\${ac_dD}
|
|
6751 \${ac_uA}EPOCH\${ac_uB}EPOCH\${ac_uC}1\${ac_uD}
|
|
6752 \${ac_eA}EPOCH\${ac_eB}EPOCH\${ac_eC}1\${ac_eD}
|
|
6753 "
|
|
6754 }
|
|
6755
|
|
6756 test "${external_widget}" = yes &&
|
|
6757 {
|
|
6758 test -n "$verbose" && \
|
|
6759 echo " defining EXTERNAL_WIDGET"
|
|
6760 echo "#define" EXTERNAL_WIDGET "1" >> confdefs.h
|
|
6761 DEFS="$DEFS -DEXTERNAL_WIDGET=1"
|
|
6762 ac_sed_defs="${ac_sed_defs}\${ac_dA}EXTERNAL_WIDGET\${ac_dB}EXTERNAL_WIDGET\${ac_dC}1\${ac_dD}
|
|
6763 \${ac_uA}EXTERNAL_WIDGET\${ac_uB}EXTERNAL_WIDGET\${ac_uC}1\${ac_uD}
|
|
6764 \${ac_eA}EXTERNAL_WIDGET\${ac_eB}EXTERNAL_WIDGET\${ac_eC}1\${ac_eD}
|
|
6765 "
|
|
6766 }
|
|
6767
|
|
6768 test "${with_gnu_make}" = yes &&
|
|
6769 {
|
|
6770 test -n "$verbose" && \
|
|
6771 echo " defining USE_GNU_MAKE"
|
|
6772 echo "#define" USE_GNU_MAKE "1" >> confdefs.h
|
|
6773 DEFS="$DEFS -DUSE_GNU_MAKE=1"
|
|
6774 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GNU_MAKE\${ac_dB}USE_GNU_MAKE\${ac_dC}1\${ac_dD}
|
|
6775 \${ac_uA}USE_GNU_MAKE\${ac_uB}USE_GNU_MAKE\${ac_uC}1\${ac_uD}
|
|
6776 \${ac_eA}USE_GNU_MAKE\${ac_eB}USE_GNU_MAKE\${ac_eC}1\${ac_eD}
|
|
6777 "
|
|
6778 }
|
|
6779
|
|
6780 test "${no_doc_file}" = yes &&
|
|
6781 {
|
|
6782 test -n "$verbose" && \
|
|
6783 echo " defining NO_DOC_FILE"
|
|
6784 echo "#define" NO_DOC_FILE "1" >> confdefs.h
|
|
6785 DEFS="$DEFS -DNO_DOC_FILE=1"
|
|
6786 ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_DOC_FILE\${ac_dB}NO_DOC_FILE\${ac_dC}1\${ac_dD}
|
|
6787 \${ac_uA}NO_DOC_FILE\${ac_uB}NO_DOC_FILE\${ac_uC}1\${ac_uD}
|
|
6788 \${ac_eA}NO_DOC_FILE\${ac_eB}NO_DOC_FILE\${ac_eC}1\${ac_eD}
|
|
6789 "
|
|
6790 }
|
|
6791
|
|
6792 test "${const_is_losing}" = yes &&
|
|
6793 {
|
|
6794 test -n "$verbose" && \
|
|
6795 echo " defining CONST_IS_LOSING"
|
|
6796 echo "#define" CONST_IS_LOSING "1" >> confdefs.h
|
|
6797 DEFS="$DEFS -DCONST_IS_LOSING=1"
|
|
6798 ac_sed_defs="${ac_sed_defs}\${ac_dA}CONST_IS_LOSING\${ac_dB}CONST_IS_LOSING\${ac_dC}1\${ac_dD}
|
|
6799 \${ac_uA}CONST_IS_LOSING\${ac_uB}CONST_IS_LOSING\${ac_uC}1\${ac_uD}
|
|
6800 \${ac_eA}CONST_IS_LOSING\${ac_eB}CONST_IS_LOSING\${ac_eC}1\${ac_eD}
|
|
6801 "
|
|
6802 }
|
|
6803
|
|
6804 test "${use_assertions}" = yes &&
|
|
6805 {
|
|
6806 test -n "$verbose" && \
|
|
6807 echo " defining USE_ASSERTIONS"
|
|
6808 echo "#define" USE_ASSERTIONS "1" >> confdefs.h
|
|
6809 DEFS="$DEFS -DUSE_ASSERTIONS=1"
|
|
6810 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_ASSERTIONS\${ac_dB}USE_ASSERTIONS\${ac_dC}1\${ac_dD}
|
|
6811 \${ac_uA}USE_ASSERTIONS\${ac_uB}USE_ASSERTIONS\${ac_uC}1\${ac_uD}
|
|
6812 \${ac_eA}USE_ASSERTIONS\${ac_eB}USE_ASSERTIONS\${ac_eC}1\${ac_eD}
|
|
6813 "
|
|
6814 }
|
|
6815
|
|
6816 test "${debug}" = yes &&
|
|
6817 {
|
|
6818 test -n "$verbose" && \
|
|
6819 echo " defining DEBUG_XEMACS"
|
|
6820 echo "#define" DEBUG_XEMACS "1" >> confdefs.h
|
|
6821 DEFS="$DEFS -DDEBUG_XEMACS=1"
|
|
6822 ac_sed_defs="${ac_sed_defs}\${ac_dA}DEBUG_XEMACS\${ac_dB}DEBUG_XEMACS\${ac_dC}1\${ac_dD}
|
|
6823 \${ac_uA}DEBUG_XEMACS\${ac_uB}DEBUG_XEMACS\${ac_uC}1\${ac_uD}
|
|
6824 \${ac_eA}DEBUG_XEMACS\${ac_eB}DEBUG_XEMACS\${ac_eC}1\${ac_eD}
|
|
6825 "
|
|
6826 }
|
|
6827
|
|
6828 test "${quantify}" = yes &&
|
|
6829 {
|
|
6830 test -n "$verbose" && \
|
|
6831 echo " defining QUANTIFY"
|
|
6832 echo "#define" QUANTIFY "1" >> confdefs.h
|
|
6833 DEFS="$DEFS -DQUANTIFY=1"
|
|
6834 ac_sed_defs="${ac_sed_defs}\${ac_dA}QUANTIFY\${ac_dB}QUANTIFY\${ac_dC}1\${ac_dD}
|
|
6835 \${ac_uA}QUANTIFY\${ac_uB}QUANTIFY\${ac_uC}1\${ac_uD}
|
|
6836 \${ac_eA}QUANTIFY\${ac_eB}QUANTIFY\${ac_eC}1\${ac_eD}
|
|
6837 "
|
|
6838 }
|
|
6839
|
|
6840 test "${memory_usage_stats}" = yes &&
|
|
6841 {
|
|
6842 test -n "$verbose" && \
|
|
6843 echo " defining MEMORY_USAGE_STATS"
|
|
6844 echo "#define" MEMORY_USAGE_STATS "1" >> confdefs.h
|
|
6845 DEFS="$DEFS -DMEMORY_USAGE_STATS=1"
|
|
6846 ac_sed_defs="${ac_sed_defs}\${ac_dA}MEMORY_USAGE_STATS\${ac_dB}MEMORY_USAGE_STATS\${ac_dC}1\${ac_dD}
|
|
6847 \${ac_uA}MEMORY_USAGE_STATS\${ac_uB}MEMORY_USAGE_STATS\${ac_uC}1\${ac_uD}
|
|
6848 \${ac_eA}MEMORY_USAGE_STATS\${ac_eB}MEMORY_USAGE_STATS\${ac_eC}1\${ac_eD}
|
|
6849 "
|
|
6850 }
|
|
6851
|
|
6852
|
|
6853 test "${error_check_extents}" = yes &&
|
|
6854 {
|
|
6855 test -n "$verbose" && \
|
|
6856 echo " defining ERROR_CHECK_EXTENTS"
|
|
6857 echo "#define" ERROR_CHECK_EXTENTS "1" >> confdefs.h
|
|
6858 DEFS="$DEFS -DERROR_CHECK_EXTENTS=1"
|
|
6859 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_EXTENTS\${ac_dB}ERROR_CHECK_EXTENTS\${ac_dC}1\${ac_dD}
|
|
6860 \${ac_uA}ERROR_CHECK_EXTENTS\${ac_uB}ERROR_CHECK_EXTENTS\${ac_uC}1\${ac_uD}
|
|
6861 \${ac_eA}ERROR_CHECK_EXTENTS\${ac_eB}ERROR_CHECK_EXTENTS\${ac_eC}1\${ac_eD}
|
|
6862 "
|
|
6863 }
|
|
6864
|
|
6865 test "${error_check_typecheck}" = yes &&
|
|
6866 {
|
|
6867 test -n "$verbose" && \
|
|
6868 echo " defining ERROR_CHECK_TYPECHECK"
|
|
6869 echo "#define" ERROR_CHECK_TYPECHECK "1" >> confdefs.h
|
|
6870 DEFS="$DEFS -DERROR_CHECK_TYPECHECK=1"
|
|
6871 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_TYPECHECK\${ac_dB}ERROR_CHECK_TYPECHECK\${ac_dC}1\${ac_dD}
|
|
6872 \${ac_uA}ERROR_CHECK_TYPECHECK\${ac_uB}ERROR_CHECK_TYPECHECK\${ac_uC}1\${ac_uD}
|
|
6873 \${ac_eA}ERROR_CHECK_TYPECHECK\${ac_eB}ERROR_CHECK_TYPECHECK\${ac_eC}1\${ac_eD}
|
|
6874 "
|
|
6875 }
|
|
6876
|
|
6877 test "${error_check_bufpos}" = yes &&
|
|
6878 {
|
|
6879 test -n "$verbose" && \
|
|
6880 echo " defining ERROR_CHECK_BUFPOS"
|
|
6881 echo "#define" ERROR_CHECK_BUFPOS "1" >> confdefs.h
|
|
6882 DEFS="$DEFS -DERROR_CHECK_BUFPOS=1"
|
|
6883 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_BUFPOS\${ac_dB}ERROR_CHECK_BUFPOS\${ac_dC}1\${ac_dD}
|
|
6884 \${ac_uA}ERROR_CHECK_BUFPOS\${ac_uB}ERROR_CHECK_BUFPOS\${ac_uC}1\${ac_uD}
|
|
6885 \${ac_eA}ERROR_CHECK_BUFPOS\${ac_eB}ERROR_CHECK_BUFPOS\${ac_eC}1\${ac_eD}
|
|
6886 "
|
|
6887 }
|
|
6888
|
|
6889 test "${error_check_gc}" = yes &&
|
|
6890 {
|
|
6891 test -n "$verbose" && \
|
|
6892 echo " defining ERROR_CHECK_GC"
|
|
6893 echo "#define" ERROR_CHECK_GC "1" >> confdefs.h
|
|
6894 DEFS="$DEFS -DERROR_CHECK_GC=1"
|
|
6895 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_GC\${ac_dB}ERROR_CHECK_GC\${ac_dC}1\${ac_dD}
|
|
6896 \${ac_uA}ERROR_CHECK_GC\${ac_uB}ERROR_CHECK_GC\${ac_uC}1\${ac_uD}
|
|
6897 \${ac_eA}ERROR_CHECK_GC\${ac_eB}ERROR_CHECK_GC\${ac_eC}1\${ac_eD}
|
|
6898 "
|
|
6899 }
|
|
6900
|
|
6901 test "${error_check_malloc}" = yes &&
|
|
6902 {
|
|
6903 test -n "$verbose" && \
|
|
6904 echo " defining ERROR_CHECK_MALLOC"
|
|
6905 echo "#define" ERROR_CHECK_MALLOC "1" >> confdefs.h
|
|
6906 DEFS="$DEFS -DERROR_CHECK_MALLOC=1"
|
|
6907 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_MALLOC\${ac_dB}ERROR_CHECK_MALLOC\${ac_dC}1\${ac_dD}
|
|
6908 \${ac_uA}ERROR_CHECK_MALLOC\${ac_uB}ERROR_CHECK_MALLOC\${ac_uC}1\${ac_uD}
|
|
6909 \${ac_eA}ERROR_CHECK_MALLOC\${ac_eB}ERROR_CHECK_MALLOC\${ac_eC}1\${ac_eD}
|
|
6910 "
|
|
6911 }
|
|
6912
|
|
6913
|
|
6914 if test "${with_energize}" = yes; then
|
|
6915
|
0
|
6916 {
|
|
6917 test -n "$verbose" && \
|
|
6918 echo " defining ENERGIZE"
|
|
6919 echo "#define" ENERGIZE "1" >> confdefs.h
|
|
6920 DEFS="$DEFS -DENERGIZE=1"
|
|
6921 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE\${ac_dB}ENERGIZE\${ac_dC}1\${ac_dD}
|
|
6922 \${ac_uA}ENERGIZE\${ac_uB}ENERGIZE\${ac_uC}1\${ac_uD}
|
|
6923 \${ac_eA}ENERGIZE\${ac_eB}ENERGIZE\${ac_eC}1\${ac_eD}
|
|
6924 "
|
|
6925 }
|
70
|
6926
|
|
6927 test "${energize_version}" = "2.X" &&
|
0
|
6928 {
|
|
6929 test -n "$verbose" && \
|
|
6930 echo " defining ENERGIZE_2"
|
|
6931 echo "#define" ENERGIZE_2 "1" >> confdefs.h
|
|
6932 DEFS="$DEFS -DENERGIZE_2=1"
|
|
6933 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE_2\${ac_dB}ENERGIZE_2\${ac_dC}1\${ac_dD}
|
|
6934 \${ac_uA}ENERGIZE_2\${ac_uB}ENERGIZE_2\${ac_uC}1\${ac_uD}
|
|
6935 \${ac_eA}ENERGIZE_2\${ac_eB}ENERGIZE_2\${ac_eC}1\${ac_eD}
|
|
6936 "
|
|
6937 }
|
70
|
6938
|
|
6939 test "${energize_version}" = "3.X" &&
|
0
|
6940 {
|
|
6941 test -n "$verbose" && \
|
|
6942 echo " defining ENERGIZE_3"
|
|
6943 echo "#define" ENERGIZE_3 "1" >> confdefs.h
|
|
6944 DEFS="$DEFS -DENERGIZE_3=1"
|
|
6945 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE_3\${ac_dB}ENERGIZE_3\${ac_dC}1\${ac_dD}
|
|
6946 \${ac_uA}ENERGIZE_3\${ac_uB}ENERGIZE_3\${ac_uC}1\${ac_uD}
|
|
6947 \${ac_eA}ENERGIZE_3\${ac_eB}ENERGIZE_3\${ac_eC}1\${ac_eD}
|
|
6948 "
|
|
6949 }
|
70
|
6950
|
|
6951 fi
|
|
6952
|
|
6953 test "${with_sound}" = "native" -o "${with_sound}" = "both" &&
|
0
|
6954 {
|
|
6955 test -n "$verbose" && \
|
|
6956 echo " defining HAVE_NATIVE_SOUND"
|
|
6957 echo "#define" HAVE_NATIVE_SOUND "1" >> confdefs.h
|
|
6958 DEFS="$DEFS -DHAVE_NATIVE_SOUND=1"
|
|
6959 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NATIVE_SOUND\${ac_dB}HAVE_NATIVE_SOUND\${ac_dC}1\${ac_dD}
|
|
6960 \${ac_uA}HAVE_NATIVE_SOUND\${ac_uB}HAVE_NATIVE_SOUND\${ac_uC}1\${ac_uD}
|
|
6961 \${ac_eA}HAVE_NATIVE_SOUND\${ac_eB}HAVE_NATIVE_SOUND\${ac_eC}1\${ac_eD}
|
|
6962 "
|
|
6963 }
|
70
|
6964
|
|
6965 test "${with_sound}" = "nas" -o "${with_sound}" = "both" &&
|
0
|
6966 {
|
|
6967 test -n "$verbose" && \
|
|
6968 echo " defining HAVE_NAS_SOUND"
|
|
6969 echo "#define" HAVE_NAS_SOUND "1" >> confdefs.h
|
|
6970 DEFS="$DEFS -DHAVE_NAS_SOUND=1"
|
|
6971 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NAS_SOUND\${ac_dB}HAVE_NAS_SOUND\${ac_dC}1\${ac_dD}
|
|
6972 \${ac_uA}HAVE_NAS_SOUND\${ac_uB}HAVE_NAS_SOUND\${ac_uC}1\${ac_uD}
|
|
6973 \${ac_eA}HAVE_NAS_SOUND\${ac_eB}HAVE_NAS_SOUND\${ac_eC}1\${ac_eD}
|
|
6974 "
|
|
6975 }
|
70
|
6976
|
|
6977 test "${old_nas}" = "true" &&
|
0
|
6978 {
|
|
6979 test -n "$verbose" && \
|
|
6980 echo " defining NAS_NO_ERROR_JUMP"
|
|
6981 echo "#define" NAS_NO_ERROR_JUMP "1" >> confdefs.h
|
|
6982 DEFS="$DEFS -DNAS_NO_ERROR_JUMP=1"
|
|
6983 ac_sed_defs="${ac_sed_defs}\${ac_dA}NAS_NO_ERROR_JUMP\${ac_dB}NAS_NO_ERROR_JUMP\${ac_dC}1\${ac_dD}
|
|
6984 \${ac_uA}NAS_NO_ERROR_JUMP\${ac_uB}NAS_NO_ERROR_JUMP\${ac_uC}1\${ac_uD}
|
|
6985 \${ac_eA}NAS_NO_ERROR_JUMP\${ac_eB}NAS_NO_ERROR_JUMP\${ac_eC}1\${ac_eD}
|
|
6986 "
|
|
6987 }
|
70
|
6988
|
|
6989
|
|
6990 test "${use_union_type}" != yes &&
|
0
|
6991 {
|
|
6992 test -n "$verbose" && \
|
|
6993 echo " defining NO_UNION_TYPE"
|
|
6994 echo "#define" NO_UNION_TYPE "1" >> confdefs.h
|
|
6995 DEFS="$DEFS -DNO_UNION_TYPE=1"
|
|
6996 ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_UNION_TYPE\${ac_dB}NO_UNION_TYPE\${ac_dC}1\${ac_dD}
|
|
6997 \${ac_uA}NO_UNION_TYPE\${ac_uB}NO_UNION_TYPE\${ac_uC}1\${ac_uD}
|
|
6998 \${ac_eA}NO_UNION_TYPE\${ac_eB}NO_UNION_TYPE\${ac_eC}1\${ac_eD}
|
|
6999 "
|
|
7000 }
|
70
|
7001
|
|
7002
|
0
|
7003
|
116
|
7004 echo "$0 $configure_args" >> Installation
|
|
7005 # Start stdout redirection to '| tee -a Installation'
|
|
7006 (
|
0
|
7007 echo "
|
|
7008
|
|
7009 Configured for \`${canonical}'.
|
|
7010
|
|
7011 Where should the build process find the source code? ${srcdir}
|
|
7012 What installation prefix should install use? ${prefix}
|
|
7013 What operating system and machine description files should XEmacs use?
|
|
7014 \`${opsysfile}' and \`${machfile}'
|
|
7015 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
|
|
7016 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
|
|
7017 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
|
|
7018 What window system should XEmacs use? ${window_system}${x_includes+
|
|
7019 Where do we find X Windows header files? }${x_includes}${x_libraries+
|
116
|
7020 Where do we find X Windows libraries? }${x_libraries}"
|
0
|
7021
|
70
|
7022 if test -n "$site_includes"; then
|
116
|
7023 echo " Additional header files: ${site_includes}"
|
0
|
7024 fi
|
|
7025
|
70
|
7026 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then
|
116
|
7027 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
|
70
|
7028 elif test -n "$site_libraries"; then
|
116
|
7029 echo " Additional libraries: ${site_libraries}"
|
70
|
7030 elif test -n "$site_runtime_libraries"; then
|
116
|
7031 echo " Additional libraries: ${site_runtime_libraries}"
|
0
|
7032 fi
|
100
|
7033 if test "$with_wnn"; then
|
116
|
7034 echo " Finding WNN includes with: ${wnn_includes}"
|
|
7035 echo " Loading WNN libs with: ${wnn_libraries}"
|
|
7036 fi
|
|
7037 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
7038 test "$with_term" = yes && echo " Compiling in support for TERM."
|
|
7039 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
|
|
7040 test "$with_xpm" = yes && echo " Compiling in support for XPM."
|
70
|
7041 if test "$with_xmu" != yes -a "$window_system" != none; then
|
116
|
7042 echo " No Xmu; substituting equivalent routines."
|
|
7043 fi
|
|
7044 test "$with_xface" = yes && echo " Compiling in support for X-Face headers."
|
|
7045 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
|
|
7046 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion."
|
70
|
7047 if test "$with_png" = yes -o "$with_png" = gnuz; then
|
116
|
7048 echo " Compiling in support for PNG image conversion."
|
0
|
7049 fi
|
70
|
7050 if test "$with_png" = gnuz; then
|
116
|
7051 echo " (Using -lgz instead of -lz.)"
|
|
7052 fi
|
|
7053 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)."
|
|
7054 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility."
|
|
7055
|
|
7056 test "$with_sound" = nas && echo " Compiling in network sound support."
|
|
7057 test "$with_sound" = native && echo " Compiling in native sound support."
|
|
7058 test "$with_sound" = both && echo " Compiling in both network and native sound support."
|
|
7059 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously"
|
|
7060
|
|
7061 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
|
|
7062 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
|
7063 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
|
|
7064
|
|
7065 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
7066 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
7067
|
|
7068 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
|
|
7069 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
|
|
7070 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
|
|
7071 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
|
|
7072 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
|
7073 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule."
|
|
7074 test "$with_wnn6" = yes && echo " WNN support for version 6."
|
|
7075 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
|
|
7076
|
|
7077 test "$with_cde" = yes && echo " Compiling in support for CDE."
|
|
7078 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
|
7079 test "$with_offix" = yes && echo " Compiling in support for OffiX."
|
|
7080 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp."
|
|
7081 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks."
|
|
7082 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
|
|
7083 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar."
|
70
|
7084 if test "$with_menubars" = "motif"; then
|
116
|
7085 echo " Using the Motif menubar."
|
|
7086 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
|
|
7087 echo " that you use the Lucid menubar instead. Re-run"
|
|
7088 echo " configure with --with-menubars='lucid'."
|
|
7089 fi
|
|
7090 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar."
|
|
7091 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar."
|
|
7092 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar."
|
|
7093 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar."
|
|
7094 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes."
|
|
7095 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes."
|
|
7096 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes."
|
|
7097
|
|
7098 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects."
|
|
7099 test "${debug}" = yes && echo " Compiling in extra code for debugging."
|
|
7100 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage."
|
|
7101 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
|
|
7102 ) | tee -a Installation
|
|
7103 echo " | tee -a Installation
|
|
7104 "
|
70
|
7105
|
|
7106
|
0
|
7107 # Remove any trailing slashes in these variables.
|
|
7108 test -n "${prefix}" &&
|
|
7109 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
7110 test -n "${exec_prefix}" &&
|
|
7111 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
|
|
7112
|
|
7113
|
|
7114 # The preferred way to propogate these variables is regular @ substitutions.
|
|
7115 if test -n "$prefix"; then
|
|
7116 ac_prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
|
|
7117 else
|
|
7118 prefix=/usr/local
|
|
7119 fi
|
|
7120 if test -n "$exec_prefix"; then
|
|
7121 ac_prsub="$ac_prsub
|
|
7122 s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
|
|
7123 else
|
|
7124 exec_prefix='${prefix}' # Let make expand it.
|
|
7125 fi
|
|
7126
|
|
7127 # Any assignment to VPATH causes Sun make to only execute
|
|
7128 # the first set of double-colon rules, so remove it if not needed.
|
|
7129 # If there is a colon in the path, we need to keep it.
|
|
7130 if test "x$srcdir" = x.; then
|
|
7131 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
7132 fi
|
|
7133
|
|
7134 # Quote sed substitution magic chars in DEFS.
|
|
7135 cat >conftest.def <<EOF
|
|
7136 $DEFS
|
|
7137 EOF
|
|
7138 ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
|
|
7139 DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
|
|
7140 rm -f conftest.def
|
|
7141 # Substitute for predefined variables.
|
|
7142
|
|
7143 trap 'rm -f config.status; exit 1' 1 2 15
|
|
7144 echo creating config.status
|
|
7145 rm -f config.status
|
|
7146 cat > config.status <<EOF
|
|
7147 #!/bin/sh
|
|
7148 # Generated automatically by configure.
|
|
7149 # Run this file to recreate the current configuration.
|
|
7150 # This directory was configured as follows,
|
|
7151 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
7152 #
|
70
|
7153 # $0 $configure_args
|
|
7154
|
0
|
7155 ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
|
|
7156 for ac_option
|
|
7157 do
|
|
7158 case "\$ac_option" in
|
|
7159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
70
|
7160 echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
|
|
7161 exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
|
0
|
7162 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|
7163 echo "config.status generated by autoconf version 1.11"
|
|
7164 exit 0 ;;
|
|
7165 -help | --help | --hel | --he | --h)
|
|
7166 echo "\$ac_cs_usage"; exit 0 ;;
|
|
7167 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
7168 esac
|
|
7169 done
|
|
7170
|
|
7171 trap 'rm -fr $internal_makefile_list src/config.h conftest*; exit 1' 1 2 15
|
|
7172 LN_S='$LN_S'
|
|
7173 CC='$CC'
|
|
7174 CPP='$CPP'
|
|
7175 RANLIB='$RANLIB'
|
|
7176 INSTALL='$INSTALL'
|
|
7177 INSTALL_PROGRAM='$INSTALL_PROGRAM'
|
|
7178 INSTALL_DATA='$INSTALL_DATA'
|
|
7179 YACC='$YACC'
|
|
7180 SET_MAKE='$SET_MAKE'
|
|
7181 ALLOCA='$ALLOCA'
|
|
7182 version='$version'
|
|
7183 configuration='$configuration'
|
|
7184 canonical='$canonical'
|
|
7185 srcdir='$srcdir'
|
|
7186 prefix='$prefix'
|
|
7187 exec_prefix='$exec_prefix'
|
|
7188 bindir='$bindir'
|
|
7189 datadir='$datadir'
|
|
7190 statedir='$statedir'
|
|
7191 libdir='$libdir'
|
|
7192 mandir='$mandir'
|
|
7193 infodir='$infodir'
|
|
7194 infodir_user_defined='$infodir_user_defined'
|
|
7195 lispdir='$lispdir'
|
|
7196 lispdir_user_defined='$lispdir_user_defined'
|
|
7197 sitelispdir='$sitelispdir'
|
|
7198 etcdir='$etcdir'
|
|
7199 etcdir_user_defined='$etcdir_user_defined'
|
|
7200 lockdir='$lockdir'
|
|
7201 lockdir_user_defined='$lockdir_user_defined'
|
|
7202 archlibdir='$archlibdir'
|
|
7203 archlibdir_user_defined='$archlibdir_user_defined'
|
|
7204 docdir='$docdir'
|
|
7205 bitmapdir='$bitmapdir'
|
|
7206 c_switch_system='$c_switch_system'
|
|
7207 c_switch_machine='$c_switch_machine'
|
|
7208 libsrc_libs='$libsrc_libs'
|
|
7209 LD_SWITCH_X_SITE='$LD_SWITCH_X_SITE'
|
|
7210 LD_SWITCH_X_SITE_AUX='$LD_SWITCH_X_SITE_AUX'
|
|
7211 C_SWITCH_X_SITE='$C_SWITCH_X_SITE'
|
|
7212 LD_SWITCH_SITE='$LD_SWITCH_SITE'
|
|
7213 C_SWITCH_SITE='$C_SWITCH_SITE'
|
|
7214 CFLAGS='$CFLAGS'
|
|
7215 native_sound_lib='$native_sound_lib'
|
|
7216 machfile='$machfile'
|
|
7217 opsysfile='$opsysfile'
|
|
7218 dynodump_arch='$dynodump_arch'
|
|
7219 internal_makefile_list='$internal_makefile_list'
|
|
7220 LIBS='$LIBS'
|
|
7221 top_srcdir='$top_srcdir'
|
|
7222 ac_prsub='$ac_prsub'
|
|
7223 ac_vpsub='$ac_vpsub'
|
|
7224 extrasub='$extrasub'
|
|
7225 EOF
|
|
7226 cat >> config.status <<\EOF
|
|
7227
|
|
7228 ac_given_srcdir=$srcdir
|
|
7229
|
|
7230 CONFIG_FILES=${CONFIG_FILES-"$internal_makefile_list"}
|
|
7231 for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
|
|
7232 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
7233 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
7234 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
7235 # The file is in a subdirectory.
|
|
7236 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
7237 ac_dir_suffix="/$ac_dir"
|
|
7238 else
|
|
7239 ac_dir_suffix=
|
|
7240 fi
|
|
7241
|
|
7242 # A "../" for each directory in $ac_dir_suffix.
|
|
7243 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
7244 case "$ac_given_srcdir" in
|
|
7245 .) srcdir=.
|
|
7246 if test -z "$ac_dir_suffix"; then top_srcdir=.
|
|
7247 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
7248 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
7249 *) # Relative path.
|
|
7250 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
7251 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
7252 esac
|
|
7253
|
|
7254 echo creating "$ac_file"
|
|
7255 rm -f "$ac_file"
|
|
7256 comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
|
|
7257 case "$ac_file" in
|
|
7258 *.c | *.h | *.C | *.cc | *.m ) echo "/* $comment_str */" > "$ac_file" ;;
|
|
7259 * ) echo "# $comment_str" > "$ac_file" ;;
|
|
7260 esac
|
|
7261 sed -e "
|
|
7262 $ac_prsub
|
|
7263 $ac_vpsub
|
|
7264 $extrasub
|
|
7265 s%@LN_S@%$LN_S%g
|
|
7266 s%@CC@%$CC%g
|
|
7267 s%@CPP@%$CPP%g
|
|
7268 s%@RANLIB@%$RANLIB%g
|
|
7269 s%@INSTALL@%$INSTALL%g
|
|
7270 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
7271 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
7272 s%@YACC@%$YACC%g
|
|
7273 s%@SET_MAKE@%$SET_MAKE%g
|
|
7274 s%@ALLOCA@%$ALLOCA%g
|
|
7275 s%@version@%$version%g
|
|
7276 s%@configuration@%$configuration%g
|
|
7277 s%@canonical@%$canonical%g
|
|
7278 s%@srcdir@%$srcdir%g
|
|
7279 s%@prefix@%$prefix%g
|
|
7280 s%@exec_prefix@%$exec_prefix%g
|
|
7281 s%@bindir@%$bindir%g
|
|
7282 s%@datadir@%$datadir%g
|
|
7283 s%@statedir@%$statedir%g
|
|
7284 s%@libdir@%$libdir%g
|
|
7285 s%@mandir@%$mandir%g
|
|
7286 s%@infodir@%$infodir%g
|
|
7287 s%@infodir_user_defined@%$infodir_user_defined%g
|
|
7288 s%@lispdir@%$lispdir%g
|
|
7289 s%@lispdir_user_defined@%$lispdir_user_defined%g
|
|
7290 s%@sitelispdir@%$sitelispdir%g
|
|
7291 s%@etcdir@%$etcdir%g
|
|
7292 s%@etcdir_user_defined@%$etcdir_user_defined%g
|
|
7293 s%@lockdir@%$lockdir%g
|
|
7294 s%@lockdir_user_defined@%$lockdir_user_defined%g
|
|
7295 s%@archlibdir@%$archlibdir%g
|
|
7296 s%@archlibdir_user_defined@%$archlibdir_user_defined%g
|
|
7297 s%@docdir@%$docdir%g
|
|
7298 s%@bitmapdir@%$bitmapdir%g
|
|
7299 s%@c_switch_system@%$c_switch_system%g
|
|
7300 s%@c_switch_machine@%$c_switch_machine%g
|
|
7301 s%@libsrc_libs@%$libsrc_libs%g
|
|
7302 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
|
|
7303 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
|
|
7304 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
|
|
7305 s%@LD_SWITCH_SITE@%$LD_SWITCH_SITE%g
|
|
7306 s%@C_SWITCH_SITE@%$C_SWITCH_SITE%g
|
|
7307 s%@CFLAGS@%$CFLAGS%g
|
|
7308 s%@native_sound_lib@%$native_sound_lib%g
|
|
7309 s%@machfile@%$machfile%g
|
|
7310 s%@opsysfile@%$opsysfile%g
|
|
7311 s%@dynodump_arch@%$dynodump_arch%g
|
|
7312 s%@internal_makefile_list@%$internal_makefile_list%g
|
|
7313 s%@LIBS@%$LIBS%g
|
|
7314 s%@top_srcdir@%$top_srcdir%g
|
|
7315 s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
|
|
7316 fi; done
|
|
7317
|
|
7318 # These sed commands are put into ac_sed_defs when defining a macro.
|
|
7319 # They are broken into pieces to make the sed script easier to manage.
|
|
7320 # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
|
|
7321 # is the cpp macro being defined and VALUE is the value it is being given.
|
|
7322 # Each defining turns into a single global substitution command.
|
|
7323 # Hopefully no one uses "!" as a variable value.
|
|
7324 # Other candidates for the sed separators, like , and @, do get used.
|
|
7325 #
|
|
7326 # ac_d sets the value in "#define NAME VALUE" lines.
|
|
7327 ac_dA='s!^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
7328 ac_dB='\([ ][ ]*\)[^ ]*!\1#\2'
|
|
7329 ac_dC='\3'
|
|
7330 ac_dD='!g'
|
|
7331 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|
7332 ac_uA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
7333 ac_uB='\([ ]\)!\1#\2define\3'
|
|
7334 ac_uC=' '
|
|
7335 ac_uD='\4!g'
|
|
7336 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
7337 ac_eA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
7338 ac_eB='$!\1#\2define\3'
|
|
7339 ac_eC=' '
|
|
7340 ac_eD='!g'
|
|
7341 rm -f conftest.sed
|
|
7342 EOF
|
|
7343 # Turn off quoting long enough to insert the sed commands.
|
|
7344 rm -f conftest.sh
|
|
7345 cat > conftest.sh <<EOF
|
|
7346 $ac_sed_defs
|
|
7347 EOF
|
|
7348
|
|
7349 # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
|
|
7350 # on the size of here documents.
|
|
7351
|
|
7352 # Maximum number of lines to put in a single here document.
|
|
7353 ac_max_sh_lines=9
|
|
7354
|
|
7355 while :
|
|
7356 do
|
|
7357 # wc gives bogus results for an empty file on some AIX systems.
|
|
7358 ac_lines=`grep -c . conftest.sh`
|
|
7359 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
7360 rm -f conftest.s1 conftest.s2
|
|
7361 sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
|
|
7362 sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
|
|
7363 # Write a limited-size here document to append to conftest.sed.
|
|
7364 echo 'cat >> conftest.sed <<CONFEOF' >> config.status
|
|
7365 cat conftest.s1 >> config.status
|
|
7366 echo 'CONFEOF' >> config.status
|
|
7367 rm -f conftest.s1 conftest.sh
|
|
7368 mv conftest.s2 conftest.sh
|
|
7369 done
|
|
7370 rm -f conftest.sh
|
|
7371
|
|
7372 # Now back to your regularly scheduled config.status.
|
|
7373 cat >> config.status <<\EOF
|
|
7374 # This sed command replaces #undef's with comments. This is necessary, for
|
|
7375 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
7376 # on some systems where configure will not decide to define it in
|
|
7377 # src/config.h.
|
|
7378 cat >> conftest.sed <<\CONFEOF
|
|
7379 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
|
7380 CONFEOF
|
|
7381 rm -f conftest.h
|
|
7382 # Break up the sed commands because old seds have small limits.
|
|
7383 ac_max_sed_lines=20
|
|
7384
|
|
7385 CONFIG_HEADERS=${CONFIG_HEADERS-"src/config.h"}
|
|
7386 for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
|
|
7387 echo creating $ac_file
|
|
7388
|
|
7389 cp $ac_given_srcdir/$ac_file.in conftest.h1
|
|
7390 cp conftest.sed conftest.stm
|
|
7391 while :
|
|
7392 do
|
|
7393 ac_lines=`grep -c . conftest.stm`
|
|
7394 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
7395 rm -f conftest.s1 conftest.s2 conftest.h2
|
|
7396 sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
|
|
7397 sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
|
|
7398 sed -f conftest.s1 < conftest.h1 > conftest.h2
|
|
7399 rm -f conftest.s1 conftest.h1 conftest.stm
|
|
7400 mv conftest.h2 conftest.h1
|
|
7401 mv conftest.s2 conftest.stm
|
|
7402 done
|
|
7403 rm -f conftest.stm conftest.h
|
|
7404 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|
7405 cat conftest.h1 >> conftest.h
|
|
7406 rm -f conftest.h1
|
|
7407 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
7408 # The file exists and we would not be changing it.
|
|
7409 echo "$ac_file is unchanged"
|
|
7410 rm -f conftest.h
|
|
7411 else
|
|
7412 rm -f $ac_file
|
|
7413 mv conftest.h $ac_file
|
|
7414 fi
|
|
7415 fi; done
|
|
7416 rm -f conftest.sed
|
|
7417
|
|
7418
|
|
7419
|
|
7420 exit 0
|
|
7421 EOF
|
|
7422 chmod +x config.status
|
|
7423 # Some shells look in PATH for config.status without the "./".
|
|
7424 test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
|
|
7425
|
|
7426 # Build:
|
|
7427 # src/Makefile from ${srcdir}/src/Makefile.in
|
|
7428 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
|
|
7429 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
|
|
7430 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
|
|
7431 # and possibly
|
|
7432 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
|
|
7433 # This must be done after src/config.h is built, since we rely on that
|
|
7434 # file. Only do the build if "config.status" is present, since its
|
|
7435 # non-presence indicates an error occured.
|
|
7436 status=$?
|
70
|
7437 if test ! -f ./config.status ; then
|
0
|
7438 exit $status
|
|
7439 fi
|
|
7440 topsrcdir=${srcdir}
|
|
7441 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
|
|
7442 # because some cpps get confused by them.
|
|
7443 # Really we should preserve them somehow into Makefile,
|
|
7444 # but that is beyond my level of shell programming.
|
|
7445 makefile_command='echo "creating src/Makefile";
|
|
7446 topsrcdir='"${topsrcdir}"';
|
|
7447 ( cd ./src;
|
|
7448 rm -f junk.c;
|
|
7449 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7450 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7451 < junk.cpp '\
|
|
7452 ' sed -e '\''s/^#.*//'\'' '\
|
|
7453 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7454 ' -e '\''s/^ / /'\'' '\
|
|
7455 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7456 ' > Makefile.new;
|
|
7457 chmod 444 Makefile.new;
|
|
7458 mv -f Makefile.new Makefile;
|
|
7459 rm -f junk.c junk.cpp;
|
|
7460 )'
|
|
7461 eval `echo $makefile_command`
|
|
7462 lwlib_makefile_command='echo "creating lwlib/Makefile";
|
|
7463 topsrcdir='"${topsrcdir}"';
|
|
7464 ( cd ./lwlib;
|
|
7465 rm -f junk.c;
|
|
7466 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7467 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7468 < junk.cpp '\
|
|
7469 ' sed -e '\''s/^#.*//'\'' '\
|
|
7470 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7471 ' -e '\''s/^ / /'\'' '\
|
|
7472 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7473 ' > Makefile.new;
|
|
7474 chmod 444 Makefile.new;
|
|
7475 mv -f Makefile.new Makefile;
|
|
7476 rm -f junk.c junk.cpp;
|
|
7477 )'
|
|
7478 eval `echo $lwlib_makefile_command`
|
|
7479 lib_src_makefile_command='echo "creating lib-src/Makefile";
|
|
7480 topsrcdir='"${topsrcdir}"';
|
|
7481 ( cd ./lib-src;
|
|
7482 rm -f junk.c;
|
|
7483 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7484 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7485 < junk.cpp '\
|
|
7486 ' sed -e '\''s/^#.*//'\'' '\
|
|
7487 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7488 ' -e '\''s/^ / /'\'' '\
|
|
7489 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7490 ' > Makefile.new;
|
|
7491 chmod 444 Makefile.new;
|
|
7492 mv -f Makefile.new Makefile;
|
|
7493 rm -f junk.c junk.cpp;
|
|
7494 )'
|
|
7495 eval `echo $lib_src_makefile_command`
|
70
|
7496
|
|
7497 # Mule utilitity programs - currently disabled
|
|
7498 if test "${with_mule_util}" = "yes"; then
|
|
7499 lib_src_mule_makefile_command='echo "creating lib-src/mule/Makefile";
|
|
7500 topsrcdir='"${topsrcdir}"';
|
|
7501 ( cd ./lib-src/mule;
|
|
7502 rm -f junk.c;
|
|
7503 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
|
7504 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
|
7505 < junk.cpp '\
|
|
7506 ' sed -e '\''s/^#.*//'\'' '\
|
|
7507 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7508 ' -e '\''s/^ / /'\'' '\
|
|
7509 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7510 ' > Makefile.new;
|
|
7511 chmod 444 Makefile.new;
|
|
7512 mv -f Makefile.new Makefile;
|
|
7513 rm -f junk.c junk.cpp;
|
|
7514 )'
|
|
7515 eval `echo $lib_src_mule_makefile_command`
|
|
7516 fi # Mule
|
|
7517
|
0
|
7518 dynodump_makefile_command='echo "creating dynodump/Makefile";
|
|
7519 topsrcdir='"${topsrcdir}"';
|
|
7520 ( cd ./dynodump;
|
|
7521 rm -f junk.c;
|
|
7522 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7523 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7524 < junk.cpp '\
|
|
7525 ' sed -e '\''s/^#.*//'\'' '\
|
|
7526 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7527 ' -e '\''s/^ / /'\'' '\
|
|
7528 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7529 ' > Makefile.new;
|
|
7530 chmod 444 Makefile.new;
|
|
7531 mv -f Makefile.new Makefile;
|
|
7532 rm -f junk.c junk.cpp;
|
|
7533 )'
|
|
7534 eval `echo $dynodump_makefile_command`
|
70
|
7535 if test "${with_energize}" = "yes" ; then
|
0
|
7536 energize_makefile_command='echo "creating lwlib/energize/Makefile";
|
|
7537 topsrcdir='"${topsrcdir}"';
|
|
7538 ( cd ./lwlib/energize;
|
|
7539 rm -f junk.c;
|
|
7540 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
|
70
|
7541 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
|
0
|
7542 < junk.cpp '\
|
|
7543 ' sed -e '\''s/^#.*//'\'' '\
|
|
7544 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
|
|
7545 ' -e '\''s/^ / /'\'' '\
|
|
7546 ' | sed -n -e '\''/^..*$/p'\'' '\
|
|
7547 ' > Makefile.new;
|
|
7548 chmod 444 Makefile.new;
|
|
7549 mv -f Makefile.new Makefile;
|
|
7550 rm -f junk.c junk.cpp;
|
|
7551 )'
|
|
7552 eval `echo $energize_makefile_command`
|
|
7553 fi
|
|
7554 # AC-OUTPUT has created `config.status' already. We need to add the
|
|
7555 # above commands to re-create `src/Makefile', `lwlib/Makefile',
|
8
|
7556 # `lib-src/Makefile', `dynodump/Makefile', and possibly
|
0
|
7557 # `lwlib/energize/Makefile', and we need to insert them before the final
|
|
7558 # "exit 0" which appears at the end of `config.status'.
|
|
7559 <config.status sed -e 's/^exit 0$//' >config.new
|
|
7560 echo $makefile_command >>config.new
|
|
7561 echo $lwlib_makefile_command >>config.new
|
|
7562 echo $lib_src_makefile_command >>config.new
|
70
|
7563 if test "${with_mule_util}" = "yes"; then
|
|
7564 echo $lib_src_mule_makefile_command >>config.new
|
|
7565 fi
|
0
|
7566 echo $dynodump_makefile_command >>config.new
|
|
7567 echo $man_makefile_command >>config.new
|
70
|
7568 if test "${with_energize}" = "yes" ; then
|
0
|
7569 echo $energize_makefile_command >>config.new
|
|
7570 fi
|
|
7571 echo exit 0 >>config.new
|
|
7572 mv -f config.new config.status
|
|
7573 chmod +x config.status
|
|
7574 # Don't let the fact that we just rewrote config.status make Makefile think
|
|
7575 # that it is now newer. We have just rewritten all of the Makefiles as well.
|
70
|
7576 MFS="Makefile \
|
|
7577 src/Makefile src/Makefile.in \
|
|
7578 lib-src/Makefile lib-src/Makefile.in \
|
|
7579 dynodump/Makefile dynodump/Makefile.in \
|
|
7580 lwlib/Makefile lwlib/Makefile.in"
|
|
7581 chmod a+w $MFS
|
|
7582 touch $MFS
|
|
7583 chmod 444 $MFS
|
0
|
7584
|
|
7585 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
|
|
7586 echo creating src/gdbinit
|
|
7587 echo source $topsrcdir/src/gdbinit > src/gdbinit
|
|
7588 fi
|
|
7589
|
|
7590 exit 0
|
|
7591
|