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