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