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