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