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