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