]> code.delx.au - gnu-emacs/blob - configure
Regenerated.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29 fi
30
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
38 fi
39
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
55 fi
56 rm -f conf$$ conf$$.exe conf$$.file
57
58 as_executable_p="test -f"
59
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63 else
64 as_unset=false
65 fi
66
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
80 '
81 IFS=" $as_nl"
82
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91 exec 6>&1
92
93 #
94 # Initializations.
95 #
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
106
107 ac_unique_file="src/lisp.h"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 # include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 # include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 # include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
144
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
164
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
182
183 # Identity of this package.
184 PACKAGE_NAME=
185 PACKAGE_TARNAME=
186 PACKAGE_VERSION=
187 PACKAGE_STRING=
188 PACKAGE_BUGREPORT=
189
190 ac_prev=
191 for ac_option
192 do
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
198 fi
199
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
201
202 # Accept the important Cygnus configure options, so we can diagnose typos.
203
204 case $ac_option in
205
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 bindir=$ac_optarg ;;
210
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
215
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
222
223 --config-cache | -C)
224 cache_file=config.cache ;;
225
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
230 datadir=$ac_optarg ;;
231
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
240
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250 *) ac_optarg=yes ;;
251 esac
252 eval "enable_$ac_feature='$ac_optarg'" ;;
253
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
262
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
265 with_gas=yes ;;
266
267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
273
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
278
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
285
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
290
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir=$ac_optarg ;;
295
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
302
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
311
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir=$ac_optarg ;;
316
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
320
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
324
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
328
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
337
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix=$ac_optarg ;;
342
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
349
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
356
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
373
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
377
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
382 sbindir=$ac_optarg ;;
383
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
393 sharedstatedir=$ac_optarg ;;
394
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
398 site=$ac_optarg ;;
399
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir=$ac_optarg ;;
404
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
411
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
416
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
419
420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
422
423 -with-* | --with-*)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432 *) ac_optarg=yes ;;
433 esac
434 eval "with_$ac_package='$ac_optarg'" ;;
435
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
444
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
448
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
455
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
462
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
466 ;;
467
468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
477
478 *)
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
484 ;;
485
486 esac
487 done
488
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
493 fi
494
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
497 do
498 eval ac_val=$`echo $ac_var`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
503 esac
504 done
505
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
509 do
510 eval ac_val=$`echo $ac_var`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
515 esac
516 done
517
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
520 build=$build_alias
521 host=$host_alias
522 target=$target_alias
523
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
532 fi
533 fi
534
535 ac_tool_prefix=
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
537
538 test "$silent" = yes && exec 6>/dev/null
539
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
544 ac_prog=$0
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
550 fi
551 else
552 ac_srcdir_defaulted=no
553 fi
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
558 else
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
561 fi
562 fi
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
577 ac_env_CC_value=$CC
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
596
597 #
598 # Report the --help message.
599 #
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
603 cat <<EOF
604 \`configure' configures this package to adapt to many kinds of systems.
605
606 Usage: $0 [OPTION]... [VAR=VALUE]...
607
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
610
611 Defaults for the options are specified in brackets.
612
613 Configuration:
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
623
624 EOF
625
626 cat <<EOF
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
632
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
637
638 For better control, use the options below.
639
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
653 EOF
654
655 cat <<\EOF
656
657 Program names:
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
661
662 X features:
663 --x-includes=DIR X include files are in DIR
664 --x-libraries=DIR X library files are in DIR
665
666 System types:
667 --build=BUILD configure for building on BUILD [guessed]
668 --host=HOST build programs to run on HOST [BUILD]
669 EOF
670 fi
671
672 if test -n "$ac_init_help"; then
673
674 cat <<\EOF
675
676 Optional Features:
677 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
678 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
679 --disable-largefile omit support for large files
680
681 Optional Packages:
682 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
683 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
684 --without-gcc don't use GCC to compile Emacs if GCC is found
685 --without-pop don't support POP mail retrieval with movemail
686 --with-kerberos support Kerberos-authenticated POP
687 --with-kerberos5 support Kerberos version 5 authenticated POP
688 --with-hesiod support Hesiod to get the POP server host
689 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
690 --with-xpm use -lXpm for displaying XPM images
691 --with-jpeg use -ljpeg for displaying JPEG images
692 --with-tiff use -ltiff for displaying TIFF images
693 --with-gif use -lungif for displaying GIF images
694 --with-png use -lpng for displaying PNG images
695 --without-toolkit-scroll-bars
696 don't use Motif or Xaw3d scroll bars
697 --without-xim don't use X11 XIM
698 --with-x use the X Window System
699
700 Some influential environment variables:
701 CC C compiler command
702 CFLAGS C compiler flags
703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
704 nonstandard directory <lib dir>
705 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
706 headers in a nonstandard directory <include dir>
707 CPP C preprocessor
708
709 Use these variables to override the choices made by `configure' or to help
710 it to find libraries and programs with nonstandard names/locations.
711
712 EOF
713 fi
714
715 if test "$ac_init_help" = "recursive"; then
716 # If there are subdirs, report their specific --help.
717 ac_popdir=`pwd`
718 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
719 cd $ac_subdir
720 # A "../" for each directory in /$ac_subdir.
721 ac_dots=`echo $ac_subdir |
722 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
723
724 case $srcdir in
725 .) # No --srcdir option. We are building in place.
726 ac_sub_srcdir=$srcdir ;;
727 [\\/]* | ?:[\\/]* ) # Absolute path.
728 ac_sub_srcdir=$srcdir/$ac_subdir ;;
729 *) # Relative path.
730 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
731 esac
732
733 # Check for guested configure; otherwise get Cygnus style configure.
734 if test -f $ac_sub_srcdir/configure.gnu; then
735 echo
736 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
737 elif test -f $ac_sub_srcdir/configure; then
738 echo
739 $SHELL $ac_sub_srcdir/configure --help=recursive
740 elif test -f $ac_sub_srcdir/configure.ac ||
741 test -f $ac_sub_srcdir/configure.in; then
742 echo
743 $ac_configure --help
744 else
745 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
746 fi
747 cd $ac_popdir
748 done
749 fi
750
751 test -n "$ac_init_help" && exit 0
752 if $ac_init_version; then
753 cat <<\EOF
754
755 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
756 Free Software Foundation, Inc.
757 This configure script is free software; the Free Software Foundation
758 gives unlimited permission to copy, distribute and modify it.
759 EOF
760 exit 0
761 fi
762 exec 5>config.log
763 cat >&5 <<EOF
764 This file contains any messages produced by compilers while
765 running configure, to aid debugging if configure makes a mistake.
766
767 It was created by $as_me, which was
768 generated by GNU Autoconf 2.52. Invocation command line was
769
770 $ $0 $@
771
772 EOF
773 {
774 cat <<_ASUNAME
775 ## ---------- ##
776 ## Platform. ##
777 ## ---------- ##
778
779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
780 uname -m = `(uname -m) 2>/dev/null || echo unknown`
781 uname -r = `(uname -r) 2>/dev/null || echo unknown`
782 uname -s = `(uname -s) 2>/dev/null || echo unknown`
783 uname -v = `(uname -v) 2>/dev/null || echo unknown`
784
785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
786 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
787
788 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
789 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
791 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
792 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
793 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
794 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
795
796 PATH = $PATH
797
798 _ASUNAME
799 } >&5
800
801 cat >&5 <<EOF
802 ## ------------ ##
803 ## Core tests. ##
804 ## ------------ ##
805
806 EOF
807
808 # Keep a trace of the command line.
809 # Strip out --no-create and --no-recursion so they do not pile up.
810 # Also quote any args containing shell meta-characters.
811 ac_configure_args=
812 ac_sep=
813 for ac_arg
814 do
815 case $ac_arg in
816 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
817 | --no-cr | --no-c) ;;
818 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
819 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
820 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
821 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
822 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
823 ac_sep=" " ;;
824 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
825 ac_sep=" " ;;
826 esac
827 # Get rid of the leading space.
828 done
829
830 # When interrupted or exit'd, cleanup temporary files, and complete
831 # config.log. We remove comments because anyway the quotes in there
832 # would cause problems or look ugly.
833 trap 'exit_status=$?
834 # Save into config.log some information that might help in debugging.
835 echo >&5
836 echo "## ----------------- ##" >&5
837 echo "## Cache variables. ##" >&5
838 echo "## ----------------- ##" >&5
839 echo >&5
840 # The following way of writing the cache mishandles newlines in values,
841 {
842 (set) 2>&1 |
843 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
844 *ac_space=\ *)
845 sed -n \
846 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
848 ;;
849 *)
850 sed -n \
851 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
852 ;;
853 esac;
854 } >&5
855 sed "/^$/d" confdefs.h >conftest.log
856 if test -s conftest.log; then
857 echo >&5
858 echo "## ------------ ##" >&5
859 echo "## confdefs.h. ##" >&5
860 echo "## ------------ ##" >&5
861 echo >&5
862 cat conftest.log >&5
863 fi
864 (echo; echo) >&5
865 test "$ac_signal" != 0 &&
866 echo "$as_me: caught signal $ac_signal" >&5
867 echo "$as_me: exit $exit_status" >&5
868 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
869 exit $exit_status
870 ' 0
871 for ac_signal in 1 2 13 15; do
872 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
873 done
874 ac_signal=0
875
876 # confdefs.h avoids OS command line length limits that DEFS can exceed.
877 rm -rf conftest* confdefs.h
878 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
879 echo >confdefs.h
880
881 # Let the site file select an alternate cache file if it wants to.
882 # Prefer explicitly selected file to automatically selected ones.
883 if test -z "$CONFIG_SITE"; then
884 if test "x$prefix" != xNONE; then
885 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
886 else
887 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
888 fi
889 fi
890 for ac_site_file in $CONFIG_SITE; do
891 if test -r "$ac_site_file"; then
892 { echo "$as_me:892: loading site script $ac_site_file" >&5
893 echo "$as_me: loading site script $ac_site_file" >&6;}
894 cat "$ac_site_file" >&5
895 . "$ac_site_file"
896 fi
897 done
898
899 if test -r "$cache_file"; then
900 # Some versions of bash will fail to source /dev/null (special
901 # files actually), so we avoid doing that.
902 if test -f "$cache_file"; then
903 { echo "$as_me:903: loading cache $cache_file" >&5
904 echo "$as_me: loading cache $cache_file" >&6;}
905 case $cache_file in
906 [\\/]* | ?:[\\/]* ) . $cache_file;;
907 *) . ./$cache_file;;
908 esac
909 fi
910 else
911 { echo "$as_me:911: creating cache $cache_file" >&5
912 echo "$as_me: creating cache $cache_file" >&6;}
913 >$cache_file
914 fi
915
916 # Check that the precious variables saved in the cache have kept the same
917 # value.
918 ac_cache_corrupted=false
919 for ac_var in `(set) 2>&1 |
920 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
921 eval ac_old_set=\$ac_cv_env_${ac_var}_set
922 eval ac_new_set=\$ac_env_${ac_var}_set
923 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
924 eval ac_new_val="\$ac_env_${ac_var}_value"
925 case $ac_old_set,$ac_new_set in
926 set,)
927 { echo "$as_me:927: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
928 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
929 ac_cache_corrupted=: ;;
930 ,set)
931 { echo "$as_me:931: error: \`$ac_var' was not set in the previous run" >&5
932 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
933 ac_cache_corrupted=: ;;
934 ,);;
935 *)
936 if test "x$ac_old_val" != "x$ac_new_val"; then
937 { echo "$as_me:937: error: \`$ac_var' has changed since the previous run:" >&5
938 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
939 { echo "$as_me:939: former value: $ac_old_val" >&5
940 echo "$as_me: former value: $ac_old_val" >&2;}
941 { echo "$as_me:941: current value: $ac_new_val" >&5
942 echo "$as_me: current value: $ac_new_val" >&2;}
943 ac_cache_corrupted=:
944 fi;;
945 esac
946 # Pass precious variables to config.status. It doesn't matter if
947 # we pass some twice (in addition to the command line arguments).
948 if test "$ac_new_set" = set; then
949 case $ac_new_val in
950 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
951 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
952 ac_configure_args="$ac_configure_args '$ac_arg'"
953 ;;
954 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
955 ;;
956 esac
957 fi
958 done
959 if $ac_cache_corrupted; then
960 { echo "$as_me:960: error: changes in the environment can compromise the build" >&5
961 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
962 { { echo "$as_me:962: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
963 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
964 { (exit 1); exit 1; }; }
965 fi
966
967 ac_ext=c
968 ac_cpp='$CPP $CPPFLAGS'
969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
972
973 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
974 *c*,-n*) ECHO_N= ECHO_C='
975 ' ECHO_T=' ' ;;
976 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
977 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
978 esac
979 echo "#! $SHELL" >conftest.sh
980 echo "exit 0" >>conftest.sh
981 chmod +x conftest.sh
982 if { (echo "$as_me:982: PATH=\".;.\"; conftest.sh") >&5
983 (PATH=".;."; conftest.sh) 2>&5
984 ac_status=$?
985 echo "$as_me:985: \$? = $ac_status" >&5
986 (exit $ac_status); }; then
987 ac_path_separator=';'
988 else
989 ac_path_separator=:
990 fi
991 PATH_SEPARATOR="$ac_path_separator"
992 rm -f conftest.sh
993
994 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
995
996 test "$program_prefix" != NONE &&
997 program_transform_name="s,^,$program_prefix,;$program_transform_name"
998 # Use a double $ so make ignores it.
999 test "$program_suffix" != NONE &&
1000 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1001 # Double any \ or $. echo might interpret backslashes.
1002 # By default was `s,x,x', remove it if useless.
1003 cat <<\_ACEOF >conftest.sed
1004 s/[\\$]/&&/g;s/;s,x,x,$//
1005 _ACEOF
1006 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1007 rm conftest.sed
1008
1009 lispdir='${datadir}/emacs/${version}/lisp'
1010 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1011 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1012 lisppath='${locallisppath}:${lispdir}'
1013 etcdir='${datadir}/emacs/${version}/etc'
1014 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1015 docdir='${datadir}/emacs/${version}/etc'
1016
1017 # Check whether --with-gcc or --without-gcc was given.
1018 if test "${with_gcc+set}" = set; then
1019 withval="$with_gcc"
1020
1021 fi;
1022
1023 # Check whether --with-pop or --without-pop was given.
1024 if test "${with_pop+set}" = set; then
1025 withval="$with_pop"
1026 if test "$withval" = yes; then
1027 cat >>confdefs.h <<\EOF
1028 #define MAIL_USE_POP 1
1029 EOF
1030
1031 else :
1032 fi
1033 else
1034 cat >>confdefs.h <<\EOF
1035 #define MAIL_USE_POP 1
1036 EOF
1037
1038 fi;
1039
1040 # Check whether --with-kerberos or --without-kerberos was given.
1041 if test "${with_kerberos+set}" = set; then
1042 withval="$with_kerberos"
1043 cat >>confdefs.h <<\EOF
1044 #define KERBEROS 1
1045 EOF
1046
1047 fi;
1048
1049 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1050 if test "${with_kerberos5+set}" = set; then
1051 withval="$with_kerberos5"
1052 if test "${with_kerberos5+set}" = set; then
1053 if test "${with_kerberos+set}" != set; then
1054 with_kerberos=yes
1055 cat >>confdefs.h <<\EOF
1056 #define KERBEROS 1
1057 EOF
1058
1059 fi
1060 fi
1061 cat >>confdefs.h <<\EOF
1062 #define KERBEROS5 1
1063 EOF
1064
1065 fi;
1066
1067 # Check whether --with-hesiod or --without-hesiod was given.
1068 if test "${with_hesiod+set}" = set; then
1069 withval="$with_hesiod"
1070 cat >>confdefs.h <<\EOF
1071 #define HESIOD 1
1072 EOF
1073
1074 fi;
1075
1076 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1077 if test "${with_x_toolkit+set}" = set; then
1078 withval="$with_x_toolkit"
1079 case "${withval}" in
1080 y | ye | yes ) val=athena ;;
1081 n | no ) val=no ;;
1082 l | lu | luc | luci | lucid ) val=lucid ;;
1083 a | at | ath | athe | athen | athena ) val=athena ;;
1084 m | mo | mot | moti | motif ) val=motif ;;
1085 * )
1086 { { echo "$as_me:1086: error: \`--with-x-toolkit=$withval' is invalid\;
1087 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1088 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1089 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1090 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1091 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1092 { (exit 1); exit 1; }; }
1093 ;;
1094 esac
1095 with_x_toolkit=$val
1096
1097 fi;
1098
1099 # Check whether --with-xpm or --without-xpm was given.
1100 if test "${with_xpm+set}" = set; then
1101 withval="$with_xpm"
1102
1103 fi;
1104
1105 # Check whether --with-jpeg or --without-jpeg was given.
1106 if test "${with_jpeg+set}" = set; then
1107 withval="$with_jpeg"
1108
1109 fi;
1110
1111 # Check whether --with-tiff or --without-tiff was given.
1112 if test "${with_tiff+set}" = set; then
1113 withval="$with_tiff"
1114
1115 fi;
1116
1117 # Check whether --with-gif or --without-gif was given.
1118 if test "${with_gif+set}" = set; then
1119 withval="$with_gif"
1120
1121 fi;
1122
1123 # Check whether --with-png or --without-png was given.
1124 if test "${with_png+set}" = set; then
1125 withval="$with_png"
1126
1127 fi;
1128
1129 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1130 if test "${with_toolkit_scroll_bars+set}" = set; then
1131 withval="$with_toolkit_scroll_bars"
1132
1133 fi;
1134
1135 # Check whether --with-xim or --without-xim was given.
1136 if test "${with_xim+set}" = set; then
1137 withval="$with_xim"
1138
1139 fi;
1140
1141 #### Make srcdir absolute, if it isn't already. It's important to
1142 #### avoid running the path through pwd unnecessarily, since pwd can
1143 #### give you automounter prefixes, which can go away. We do all this
1144 #### so Emacs can find its files when run uninstalled.
1145 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1146 unset CDPATH
1147 case "${srcdir}" in
1148 /* ) ;;
1149 . )
1150 ## We may be able to use the $PWD environment variable to make this
1151 ## absolute. But sometimes PWD is inaccurate.
1152 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1153 ## but that tested only for a well-formed and valid PWD,
1154 ## it did not object when PWD was well-formed and valid but just wrong.
1155 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1156 then
1157 srcdir="$PWD"
1158 else
1159 srcdir="`(cd ${srcdir}; pwd)`"
1160 fi
1161 ;;
1162 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1163 esac
1164
1165 #### Check if the source directory already has a configured system in it.
1166 if test `pwd` != `(cd ${srcdir} && pwd)` \
1167 && test -f "${srcdir}/src/config.h" ; then
1168 { echo "$as_me:1168: WARNING: The directory tree \`${srcdir}' is being used
1169 as a build directory right now; it has been configured in its own
1170 right. To configure in another directory as well, you MUST
1171 use GNU make. If you do not have GNU make, then you must
1172 now do \`make distclean' in ${srcdir},
1173 and then run $0 again." >&5
1174 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1175 as a build directory right now; it has been configured in its own
1176 right. To configure in another directory as well, you MUST
1177 use GNU make. If you do not have GNU make, then you must
1178 now do \`make distclean' in ${srcdir},
1179 and then run $0 again." >&2;}
1180
1181 extrasub='/^VPATH[ ]*=/c\
1182 vpath %.c $(srcdir)\
1183 vpath %.h $(srcdir)\
1184 vpath %.y $(srcdir)\
1185 vpath %.l $(srcdir)\
1186 vpath %.s $(srcdir)\
1187 vpath %.in $(srcdir)\
1188 vpath %.texi $(srcdir)'
1189 fi
1190
1191 #### Given the configuration name, set machfile and opsysfile to the
1192 #### names of the m/*.h and s/*.h files we should use.
1193
1194 ### Canonicalize the configuration name.
1195
1196 ac_aux_dir=
1197 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1198 if test -f $ac_dir/install-sh; then
1199 ac_aux_dir=$ac_dir
1200 ac_install_sh="$ac_aux_dir/install-sh -c"
1201 break
1202 elif test -f $ac_dir/install.sh; then
1203 ac_aux_dir=$ac_dir
1204 ac_install_sh="$ac_aux_dir/install.sh -c"
1205 break
1206 elif test -f $ac_dir/shtool; then
1207 ac_aux_dir=$ac_dir
1208 ac_install_sh="$ac_aux_dir/shtool install -c"
1209 break
1210 fi
1211 done
1212 if test -z "$ac_aux_dir"; then
1213 { { echo "$as_me:1213: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1214 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1215 { (exit 1); exit 1; }; }
1216 fi
1217 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1218 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1219 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1220
1221 # Make sure we can run config.sub.
1222 $ac_config_sub sun4 >/dev/null 2>&1 ||
1223 { { echo "$as_me:1223: error: cannot run $ac_config_sub" >&5
1224 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1225 { (exit 1); exit 1; }; }
1226
1227 echo "$as_me:1227: checking build system type" >&5
1228 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1229 if test "${ac_cv_build+set}" = set; then
1230 echo $ECHO_N "(cached) $ECHO_C" >&6
1231 else
1232 ac_cv_build_alias=$build_alias
1233 test -z "$ac_cv_build_alias" &&
1234 ac_cv_build_alias=`$ac_config_guess`
1235 test -z "$ac_cv_build_alias" &&
1236 { { echo "$as_me:1236: error: cannot guess build type; you must specify one" >&5
1237 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1238 { (exit 1); exit 1; }; }
1239 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1240 { { echo "$as_me:1240: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1241 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1242 { (exit 1); exit 1; }; }
1243
1244 fi
1245 echo "$as_me:1245: result: $ac_cv_build" >&5
1246 echo "${ECHO_T}$ac_cv_build" >&6
1247 build=$ac_cv_build
1248 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1249 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1250 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1251
1252 echo "$as_me:1252: checking host system type" >&5
1253 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1254 if test "${ac_cv_host+set}" = set; then
1255 echo $ECHO_N "(cached) $ECHO_C" >&6
1256 else
1257 ac_cv_host_alias=$host_alias
1258 test -z "$ac_cv_host_alias" &&
1259 ac_cv_host_alias=$ac_cv_build_alias
1260 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1261 { { echo "$as_me:1261: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1262 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1263 { (exit 1); exit 1; }; }
1264
1265 fi
1266 echo "$as_me:1266: result: $ac_cv_host" >&5
1267 echo "${ECHO_T}$ac_cv_host" >&6
1268 host=$ac_cv_host
1269 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1270 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1271 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1272
1273 canonical=$host
1274 configuration=${host_alias-$host}
1275
1276 ### If you add support for a new configuration, add code to this
1277 ### switch statement to recognize your configuration name and select
1278 ### the appropriate operating system and machine description files.
1279
1280 ### You would hope that you could choose an m/*.h file pretty much
1281 ### based on the machine portion of the configuration name, and an s-
1282 ### file based on the operating system portion. However, it turns out
1283 ### that each m/*.h file is pretty manufacturer-specific - for
1284 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1285 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1286 ### machines. So we basically have to have a special case for each
1287 ### configuration name.
1288 ###
1289 ### As far as handling version numbers on operating systems is
1290 ### concerned, make sure things will fail in a fixable way. If
1291 ### /etc/MACHINES doesn't say anything about version numbers, be
1292 ### prepared to handle anything reasonably. If version numbers
1293 ### matter, be sure /etc/MACHINES says something about it.
1294 ###
1295 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1296 ### "System V Release 4"; he writes, "The old convention encouraged
1297 ### confusion between `system' and `release' levels'."
1298
1299 machine='' opsys='' unported=no
1300 case "${canonical}" in
1301
1302 ## FreeBSD ports
1303 *-*-freebsd* )
1304 opsys=freebsd
1305 case "${canonical}" in
1306 alpha*-*-freebsd*) machine=alpha ;;
1307 i[3456]86-*-freebsd*) machine=intel386 ;;
1308 esac
1309 ;;
1310
1311 ## NetBSD ports
1312 *-*-netbsd* )
1313 opsys=netbsd
1314 case "${canonical}" in
1315 alpha*-*-netbsd*) machine=alpha ;;
1316 i[3456]86-*-netbsd*) machine=intel386 ;;
1317 m68k-*-netbsd*)
1318 # This is somewhat bogus.
1319 machine=hp9000s300 ;;
1320 powerpc-apple-netbsd*) machine=macppc ;;
1321 mips-*-netbsd*) machine=pmax ;;
1322 mipsel-*-netbsd*) machine=pmax ;;
1323 ns32k-*-netbsd*) machine=ns32000 ;;
1324 powerpc-*-netbsd*) machine=macppc ;;
1325 sparc*-*-netbsd*) machine=sparc ;;
1326 vax-*-netbsd*) machine=vax ;;
1327 arm-*-netbsd*) machine=arm ;;
1328 esac
1329 ;;
1330
1331 ## OpenBSD ports
1332 *-*-openbsd* )
1333 opsys=openbsd
1334 case "${canonical}" in
1335 alpha*-*-openbsd*) machine=alpha ;;
1336 i386-*-openbsd*) machine=intel386 ;;
1337 m68k-*-openbsd*) machine=hp9000s300 ;;
1338 mipsel-*-openbsd*) machine=pmax ;;
1339 ns32k-*-openbsd*) machine=ns32000 ;;
1340 sparc-*-openbsd*) machine=sparc ;;
1341 vax-*-openbsd*) machine=vax ;;
1342 esac
1343 ;;
1344
1345 ## Acorn RISCiX:
1346 arm-acorn-riscix1.1* )
1347 machine=acorn opsys=riscix1-1
1348 ;;
1349 arm-acorn-riscix1.2* | arm-acorn-riscix )
1350 ## This name is riscix12 instead of riscix1.2
1351 ## to avoid a file name conflict on MSDOS.
1352 machine=acorn opsys=riscix12
1353 ;;
1354
1355 ## BSDI ports
1356 *-*-bsdi* )
1357 opsys=bsdi
1358 case "${canonical}" in
1359 i[345]86-*-bsdi*) machine=intel386 ;;
1360 sparc-*-bsdi*) machine=sparc ;;
1361 powerpc-*-bsdi*) machine=macppc ;;
1362 esac
1363 case "${canonical}" in
1364 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1365 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1366 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1367 *-*-bsdi3* ) opsys=bsdos3 ;;
1368 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1369 esac
1370 ;;
1371
1372 ## Alliant machines
1373 ## Strictly speaking, we need the version of the alliant operating
1374 ## system to choose the right machine file, but currently the
1375 ## configuration name doesn't tell us enough to choose the right
1376 ## one; we need to give alliants their own operating system name to
1377 ## do this right. When someone cares, they can help us.
1378 fx80-alliant-* )
1379 machine=alliant4 opsys=bsd4-2
1380 ;;
1381 i860-alliant-* )
1382 machine=alliant-2800 opsys=bsd4-3
1383 ;;
1384
1385 ## Alpha (DEC) machines.
1386 alpha*-dec-osf* )
1387 machine=alpha opsys=osf1
1388 # This is needed to find X11R6.1 libraries for certain tests.
1389 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1390 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1391 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1392 # due to non-traditional preprocessing with the current compiler
1393 # defaults. OSF 4 can also have that compiler version, and there
1394 # seems always to have been a usable /usr/bin/cpp.
1395 NON_GNU_CPP=/usr/bin/cpp
1396 case "${canonical}" in
1397 alpha*-dec-osf[5-9]*)
1398 opsys=osf5-0 ;;
1399 esac
1400 ;;
1401
1402 alpha*-*-linux-gnu* )
1403 machine=alpha opsys=gnu-linux
1404 ;;
1405
1406 arm*-*-linux-gnu* )
1407 machine=arm opsys=gnu-linux
1408 ;;
1409
1410 ppc-*-linux | \
1411 powerpc-*-linux* )
1412 machine=macppc opsys=gnu-linux
1413 ;;
1414
1415 ## Altos 3068
1416 m68*-altos-sysv* )
1417 machine=altos opsys=usg5-2
1418 ;;
1419
1420 ## Amdahl UTS
1421 580-amdahl-sysv* )
1422 machine=amdahl opsys=usg5-2-2
1423 ;;
1424
1425 ## Apollo, Domain/OS
1426 m68*-apollo-* )
1427 machine=apollo opsys=bsd4-3
1428 ;;
1429
1430 ## AT&T 3b2, 3b5, 3b15, 3b20
1431 we32k-att-sysv* )
1432 machine=att3b opsys=usg5-2-2
1433 ;;
1434
1435 ## AT&T 3b1 - The Mighty Unix PC!
1436 m68*-att-sysv* )
1437 machine=7300 opsys=usg5-2-2
1438 ;;
1439
1440 ## Bull dpx20
1441 rs6000-bull-bosx* )
1442 machine=ibmrs6000 opsys=aix3-2
1443 ;;
1444
1445 ## Bull dpx2
1446 m68*-bull-sysv3* )
1447 machine=dpx2 opsys=usg5-3
1448 ;;
1449
1450 ## Bull sps7
1451 m68*-bull-sysv2* )
1452 machine=sps7 opsys=usg5-2
1453 ;;
1454
1455 ## CCI 5/32, 6/32 -- see "Tahoe".
1456
1457 ## Celerity
1458 ## I don't know what configuration name to use for this; config.sub
1459 ## doesn't seem to know anything about it. Hey, Celerity users, get
1460 ## in touch with us!
1461 celerity-celerity-bsd* )
1462 machine=celerity opsys=bsd4-2
1463 ;;
1464
1465 ## Clipper
1466 ## What operating systems does this chip run that Emacs has been
1467 ## tested on?
1468 clipper-* )
1469 machine=clipper
1470 ## We'll use the catch-all code at the bottom to guess the
1471 ## operating system.
1472 ;;
1473
1474 ## Compaq Nonstop
1475 mips-compaq-nonstopux* )
1476 machine=nonstopux opsys=nonstopux
1477 ;;
1478
1479 ## Convex
1480 *-convex-bsd* | *-convex-convexos* )
1481 machine=convex opsys=bsd4-3
1482 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1483 NON_GNU_CPP="cc -E -P"
1484 ;;
1485
1486 ## Cubix QBx/386
1487 i[3456]86-cubix-sysv* )
1488 machine=intel386 opsys=usg5-3
1489 ;;
1490
1491 ## Cydra 5
1492 cydra*-cydrome-sysv* )
1493 machine=cydra5 opsys=usg5-3
1494 ;;
1495
1496 ## Data General AViiON Machines
1497 ## DG changed naming conventions with the release of 5.4.4.10, they
1498 ## dropped the initial 5.4 but left the intervening R. Because of the
1499 ## R this shouldn't conflict with older versions of the OS (which I
1500 ## think were named like dgux4.*). In addition, DG new AViiONs series
1501 ## uses either Motorola M88k or Intel Pentium CPUs.
1502 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1503 machine=aviion opsys=dgux4
1504 ;;
1505 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1506 ## This name is dgux5-4-3 instead of dgux5-4r3
1507 ## to avoid a file name conflict on MSDOS.
1508 machine=aviion opsys=dgux5-4-3
1509 ;;
1510 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1511 machine=aviion opsys=dgux5-4r2
1512 ;;
1513 m88k-dg-dgux* )
1514 machine=aviion opsys=dgux
1515 ;;
1516
1517 ## Data General AViiON Intel (x86) Machines
1518 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1519 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1520 i[345]86-dg-dguxR4* )
1521 machine=aviion-intel opsys=dgux4
1522 ;;
1523
1524 ## DECstations
1525 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1526 machine=pmax opsys=bsd4-2
1527 ;;
1528 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1529 machine=pmax opsys=bsd4-3
1530 ;;
1531 mips-dec-ultrix* )
1532 machine=pmax opsys=ultrix4-3
1533 ;;
1534 mips-dec-osf* )
1535 machine=pmax opsys=osf1
1536 ;;
1537 mips-dec-mach_bsd4.3* )
1538 machine=pmax opsys=mach-bsd4-3
1539 ;;
1540
1541 ## Motorola Delta machines
1542 m68k-motorola-sysv* | m68000-motorola-sysv* )
1543 machine=delta opsys=usg5-3
1544 if test -z "`type gnucc | grep 'not found'`"
1545 then
1546 if test -s /etc/167config
1547 then CC="gnucc -m68040"
1548 else CC="gnucc -m68881"
1549 fi
1550 else
1551 if test -z "`type gcc | grep 'not found'`"
1552 then CC=gcc
1553 else CC=cc
1554 fi
1555 fi
1556 ;;
1557 m88k-motorola-sysv4* )
1558 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1559 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1560 # I hope there are not other 4.0 versions for this machine
1561 # which really need usg5-4 instead.
1562 machine=delta88k opsys=usg5-4-2
1563 ;;
1564 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1565 machine=delta88k opsys=usg5-3
1566 ;;
1567
1568 ## Dual machines
1569 m68*-dual-sysv* )
1570 machine=dual opsys=usg5-2
1571 ;;
1572 m68*-dual-uniplus* )
1573 machine=dual opsys=unipl5-2
1574 ;;
1575
1576 ## Elxsi 6400
1577 elxsi-elxsi-sysv* )
1578 machine=elxsi opsys=usg5-2
1579 ;;
1580
1581 ## Encore machines
1582 ns16k-encore-bsd* )
1583 machine=ns16000 opsys=umax
1584 ;;
1585
1586 ## The GEC 63 - apparently, this port isn't really finished yet.
1587 # I'm sure we finished off the last of the machines, though. -- fx
1588
1589 ## Gould Power Node and NP1
1590 pn-gould-bsd4.2* )
1591 machine=gould opsys=bsd4-2
1592 ;;
1593 pn-gould-bsd4.3* )
1594 machine=gould opsys=bsd4-3
1595 ;;
1596 np1-gould-bsd* )
1597 machine=gould-np1 opsys=bsd4-3
1598 ;;
1599
1600 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1601 ## as far as Emacs is concerned).
1602 m88k-harris-cxux* )
1603 # Build needs to be different on 7.0 and later releases
1604 case "`uname -r`" in
1605 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1606 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1607 esac
1608 NON_GNU_CPP="/lib/cpp"
1609 ;;
1610 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1611 m68k-harris-cxux* )
1612 machine=nh3000 opsys=cxux
1613 ;;
1614 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1615 powerpc-harris-powerunix )
1616 machine=nh6000 opsys=powerunix
1617 NON_GNU_CPP="cc -Xo -E -P"
1618 ;;
1619 ## SR2001/SR2201 running HI-UX/MPP
1620 hppa1.1-hitachi-hiuxmpp* )
1621 machine=sr2k opsys=hiuxmpp
1622 ;;
1623 hppa1.1-hitachi-hiuxwe2* )
1624 machine=sr2k opsys=hiuxwe2
1625 ;;
1626 ## Honeywell XPS100
1627 xps*-honeywell-sysv* )
1628 machine=xps100 opsys=usg5-2
1629 ;;
1630
1631 ## HP 9000 series 200 or 300
1632 m68*-hp-bsd* )
1633 machine=hp9000s300 opsys=bsd4-3
1634 ;;
1635 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1636 m68*-hp-hpux* )
1637 case "`uname -r`" in
1638 ## Someone's system reports A.B8.05 for this.
1639 ## I wonder what other possibilities there are.
1640 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1641 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1642 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1643 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1644 *) machine=hp9000s300 opsys=hpux ;;
1645 esac
1646 ;;
1647
1648 ## HP 9000 series 700 and 800, running HP/UX
1649 hppa*-hp-hpux7* )
1650 machine=hp800 opsys=hpux
1651 ;;
1652 hppa*-hp-hpux8* )
1653 machine=hp800 opsys=hpux8
1654 ;;
1655 hppa*-hp-hpux9shr* )
1656 machine=hp800 opsys=hpux9shr
1657 ;;
1658 hppa*-hp-hpux9* )
1659 machine=hp800 opsys=hpux9
1660 ;;
1661 hppa*-hp-hpux10* )
1662 machine=hp800 opsys=hpux10
1663 ;;
1664 hppa*-hp-hpux1[1-9]* )
1665 machine=hp800 opsys=hpux11
1666 ;;
1667
1668 hppa*-*-linux-gnu* )
1669 machine=hp800 opsys=gnu-linux
1670 ;;
1671
1672 ## HP 9000 series 700 and 800, running HP/UX
1673 hppa*-hp-hpux* )
1674 ## Cross-compilation? Nah!
1675 case "`uname -r`" in
1676 ## Someone's system reports A.B8.05 for this.
1677 ## I wonder what other possibilities there are.
1678 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1679 *.08.* ) machine=hp800 opsys=hpux8 ;;
1680 *.09.* ) machine=hp800 opsys=hpux9 ;;
1681 *) machine=hp800 opsys=hpux10 ;;
1682 esac
1683 ;;
1684 hppa*-*-nextstep* )
1685 machine=hp800 opsys=nextstep
1686 ;;
1687
1688 ## Orion machines
1689 orion-orion-bsd* )
1690 machine=orion opsys=bsd4-2
1691 ;;
1692 clipper-orion-bsd* )
1693 machine=orion105 opsys=bsd4-2
1694 ;;
1695
1696 ## IBM machines
1697 i[3456]86-ibm-aix1.1* )
1698 machine=ibmps2-aix opsys=usg5-2-2
1699 ;;
1700 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1701 machine=ibmps2-aix opsys=usg5-3
1702 ;;
1703 i370-ibm-aix*)
1704 machine=ibm370aix opsys=usg5-3
1705 ;;
1706 s390-*-linux-gnu)
1707 machine=ibms390 opsys=gnu-linux
1708 ;;
1709 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
1710 machine=ibmrs6000 opsys=aix3-1
1711 ;;
1712 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
1713 machine=ibmrs6000 opsys=aix3-2-5
1714 ;;
1715 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
1716 machine=ibmrs6000 opsys=aix4-1
1717 ;;
1718 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
1719 machine=ibmrs6000 opsys=aix4-2
1720 ;;
1721 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
1722 machine=ibmrs6000 opsys=aix4
1723 ;;
1724 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
1725 machine=ibmrs6000 opsys=aix4-1
1726 ;;
1727 rs6000-ibm-aix* | powerpc-ibm-aix* )
1728 machine=ibmrs6000 opsys=aix3-2
1729 ;;
1730 romp-ibm-bsd4.3* )
1731 machine=ibmrt opsys=bsd4-3
1732 ;;
1733 romp-ibm-bsd4.2* )
1734 machine=ibmrt opsys=bsd4-2
1735 ;;
1736 romp-ibm-aos4.3* )
1737 machine=ibmrt opsys=bsd4-3
1738 ;;
1739 romp-ibm-aos4.2* )
1740 machine=ibmrt opsys=bsd4-2
1741 ;;
1742 romp-ibm-aos* )
1743 machine=ibmrt opsys=bsd4-3
1744 ;;
1745 romp-ibm-bsd* )
1746 machine=ibmrt opsys=bsd4-3
1747 ;;
1748 romp-ibm-aix* )
1749 machine=ibmrt-aix opsys=usg5-2-2
1750 ;;
1751
1752 ## Integrated Solutions `Optimum V'
1753 m68*-isi-bsd4.2* )
1754 machine=isi-ov opsys=bsd4-2
1755 ;;
1756 m68*-isi-bsd4.3* )
1757 machine=isi-ov opsys=bsd4-3
1758 ;;
1759
1760 ## Intel 386 machines where we do care about the manufacturer
1761 i[3456]86-intsys-sysv* )
1762 machine=is386 opsys=usg5-2-2
1763 ;;
1764
1765 ## Prime EXL
1766 i[3456]86-prime-sysv* )
1767 machine=i386 opsys=usg5-3
1768 ;;
1769
1770 ## Sequent Symmetry running Dynix
1771 i[3456]86-sequent-bsd* )
1772 machine=symmetry opsys=bsd4-3
1773 ;;
1774
1775 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1776 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
1777 machine=sequent-ptx opsys=ptx4
1778 NON_GNU_CPP=/lib/cpp
1779 ;;
1780
1781 ## Sequent Symmetry running DYNIX/ptx
1782 ## Use the old cpp rather than the newer ANSI one.
1783 i[3456]86-sequent-ptx* )
1784 machine=sequent-ptx opsys=ptx
1785 NON_GNU_CPP="/lib/cpp"
1786 ;;
1787
1788 ## ncr machine running svr4.3.
1789 i[3456]86-ncr-sysv4.3 )
1790 machine=ncr386 opsys=usg5-4-3
1791 ;;
1792
1793 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1794 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1795 i[3456]86-ncr-sysv* )
1796 machine=ncr386 opsys=usg5-4-2
1797 ;;
1798
1799 ## Intel Paragon OSF/1
1800 i860-intel-osf1* )
1801 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
1802 ;;
1803
1804 ## Intel 860
1805 i860-*-sysv4* )
1806 machine=i860 opsys=usg5-4
1807 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1808 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1809 ;;
1810
1811 ## Macintosh PowerPC
1812 powerpc*-*-linux-gnu* )
1813 machine=macppc opsys=gnu-linux
1814 ;;
1815
1816 ## Masscomp machines
1817 m68*-masscomp-rtu* )
1818 machine=masscomp opsys=rtu
1819 ;;
1820
1821 ## Megatest machines
1822 m68*-megatest-bsd* )
1823 machine=mega68 opsys=bsd4-2
1824 ;;
1825
1826 ## Workstations sold by MIPS
1827 ## This is not necessarily all workstations using the MIPS processor -
1828 ## Irises are produced by SGI, and DECstations by DEC.
1829
1830 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1831 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1832 ## it gives for choosing between the alternatives seems to be "Use
1833 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1834 ## the BSD world." I'll assume that these are instructions for
1835 ## handling two odd situations, and that every other situation
1836 ## should use mips.h and usg5-2-2, they being listed first.
1837 mips-mips-usg* )
1838 machine=mips4
1839 ## Fall through to the general code at the bottom to decide on the OS.
1840 ;;
1841 mips-mips-riscos4* )
1842 machine=mips4 opsys=bsd4-3
1843 NON_GNU_CC="cc -systype bsd43"
1844 NON_GNU_CPP="cc -systype bsd43 -E"
1845 ;;
1846 mips-mips-riscos5* )
1847 machine=mips4 opsys=riscos5
1848 NON_GNU_CC="cc -systype bsd43"
1849 NON_GNU_CPP="cc -systype bsd43 -E"
1850 ;;
1851 mips-mips-bsd* )
1852 machine=mips opsys=bsd4-3
1853 ;;
1854 mips-mips-* )
1855 machine=mips opsys=usg5-2-2
1856 ;;
1857
1858 ## NeXT
1859 m68*-next-* | m68k-*-nextstep* )
1860 machine=m68k opsys=nextstep
1861 ;;
1862
1863 ## The complete machine from National Semiconductor
1864 ns32k-ns-genix* )
1865 machine=ns32000 opsys=usg5-2
1866 ;;
1867
1868 ## NCR machines
1869 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
1870 machine=tower32 opsys=usg5-2-2
1871 ;;
1872 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
1873 machine=tower32v3 opsys=usg5-3
1874 ;;
1875
1876 ## NEC EWS4800
1877 mips-nec-sysv4*)
1878 machine=ews4800 opsys=ux4800
1879 ;;
1880
1881 ## Nixdorf Targon 31
1882 m68*-nixdorf-sysv* )
1883 machine=targon31 opsys=usg5-2-2
1884 ;;
1885
1886 ## Nu (TI or LMI)
1887 m68*-nu-sysv* )
1888 machine=nu opsys=usg5-2
1889 ;;
1890
1891 ## Plexus
1892 m68*-plexus-sysv* )
1893 machine=plexus opsys=usg5-2
1894 ;;
1895
1896 ## PowerPC reference platform
1897 powerpcle-*-solaris2* )
1898 machine=prep
1899 opsys=sol2-5
1900 ;;
1901
1902 ## Pyramid machines
1903 ## I don't really have any idea what sort of processor the Pyramid has,
1904 ## so I'm assuming it is its own architecture.
1905 pyramid-pyramid-bsd* )
1906 machine=pyramid opsys=bsd4-2
1907 ;;
1908
1909 ## Sequent Balance
1910 ns32k-sequent-bsd4.2* )
1911 machine=sequent opsys=bsd4-2
1912 ;;
1913 ns32k-sequent-bsd4.3* )
1914 machine=sequent opsys=bsd4-3
1915 ;;
1916
1917 ## Siemens Nixdorf
1918 mips-siemens-sysv* | mips-sni-sysv*)
1919 machine=mips-siemens opsys=usg5-4
1920 NON_GNU_CC=/usr/ccs/bin/cc
1921 NON_GNU_CPP=/usr/ccs/lib/cpp
1922 ;;
1923
1924 ## Silicon Graphics machines
1925 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1926 m68*-sgi-iris3.5* )
1927 machine=irist opsys=iris3-5
1928 ;;
1929 m68*-sgi-iris3.6* | m68*-sgi-iris*)
1930 machine=irist opsys=iris3-6
1931 ;;
1932 ## Iris 4D
1933 mips-sgi-irix3* )
1934 machine=iris4d opsys=irix3-3
1935 ;;
1936 mips-sgi-irix4* )
1937 machine=iris4d opsys=irix4-0
1938 ;;
1939 mips-sgi-irix6.5 )
1940 machine=iris4d opsys=irix6-5
1941 # Without defining _LANGUAGE_C, things get masked out in the headers
1942 # so that, for instance, grepping for `free' in stdlib.h fails and
1943 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1944 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1945 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
1946 ;;
1947 mips-sgi-irix6* )
1948 machine=iris4d opsys=irix6-0
1949 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1950 # but presumably it does no harm.
1951 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1952 # -32 probably isn't necessary in later v.6s -- anyone know which?
1953 NON_GCC_TEST_OPTIONS=-32
1954 ;;
1955 mips-sgi-irix5.[01]* )
1956 machine=iris4d opsys=irix5-0
1957 ;;
1958 mips-sgi-irix5* | mips-sgi-irix* )
1959 machine=iris4d opsys=irix5-2
1960 ;;
1961
1962 ## SONY machines
1963 m68*-sony-bsd4.2* )
1964 machine=news opsys=bsd4-2
1965 ;;
1966 m68*-sony-bsd4.3* )
1967 machine=news opsys=bsd4-3
1968 ;;
1969 m68*-sony-newsos3* | m68*-sony-news3*)
1970 machine=news opsys=bsd4-3
1971 ;;
1972 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
1973 machine=news-risc opsys=bsd4-3
1974 ;;
1975 mips-sony-newsos6* )
1976 machine=news-r6 opsys=newsos6
1977 ;;
1978 mips-sony-news* )
1979 machine=news-risc opsys=newsos5
1980 ;;
1981
1982 ## Stride
1983 m68*-stride-sysv* )
1984 machine=stride opsys=usg5-2
1985 ;;
1986
1987 ## Suns
1988 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
1989 machine=sparc opsys=gnu-linux
1990 ;;
1991
1992 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
1993 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
1994 | rs6000-*-solaris2*)
1995 case "${canonical}" in
1996 m68*-sunos1* ) machine=sun1 ;;
1997 m68*-sunos2* ) machine=sun2 ;;
1998 m68* ) machine=sun3 ;;
1999 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2000 i[3456]86-*-* ) machine=intel386 ;;
2001 powerpcle* ) machine=powerpcle ;;
2002 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2003 sparc* ) machine=sparc ;;
2004 * ) unported=yes ;;
2005 esac
2006 case "${canonical}" in
2007 ## The Sun386 didn't get past 4.0.
2008 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2009 *-sunos4.0* ) opsys=sunos4-0 ;;
2010 *-sunos4.1.[3-9]*noshare )
2011 ## This name is sunos413 instead of sunos4-1-3
2012 ## to avoid a file name conflict on MSDOS.
2013 opsys=sunos413
2014 NON_GNU_CPP=/usr/lib/cpp
2015 NON_GCC_TEST_OPTIONS=-Bstatic
2016 GCC_TEST_OPTIONS=-static
2017 ;;
2018 *-sunos4.1.[3-9]* | *-sunos4shr*)
2019 opsys=sunos4shr
2020 NON_GNU_CPP=/usr/lib/cpp
2021 ;;
2022 *-sunos4* | *-sunos )
2023 opsys=sunos4-1
2024 NON_GCC_TEST_OPTIONS=-Bstatic
2025 GCC_TEST_OPTIONS=-static
2026 ;;
2027 *-sunos5.3* | *-solaris2.3* )
2028 opsys=sol2-3
2029 NON_GNU_CPP=/usr/ccs/lib/cpp
2030 ;;
2031 *-sunos5.4* | *-solaris2.4* )
2032 opsys=sol2-4
2033 NON_GNU_CPP=/usr/ccs/lib/cpp
2034 RANLIB="ar -ts"
2035 ;;
2036 *-sunos5.5* | *-solaris2.5* )
2037 opsys=sol2-5
2038 NON_GNU_CPP=/usr/ccs/lib/cpp
2039 RANLIB="ar -ts"
2040 ;;
2041 *-sunos5* | *-solaris* )
2042 opsys=sol2-5
2043 NON_GNU_CPP=/usr/ccs/lib/cpp
2044 ;;
2045 * ) opsys=bsd4-2 ;;
2046 esac
2047 ## Watch out for a compiler that we know will not work.
2048 case "${canonical}" in
2049 *-solaris* | *-sunos5* )
2050 if [ "x$CC" = x/usr/ucb/cc ]; then
2051 ## /usr/ucb/cc doesn't work;
2052 ## we should find some other compiler that does work.
2053 unset CC
2054 fi
2055 ;;
2056 *) ;;
2057 esac
2058 ;;
2059 sparc-*-nextstep* )
2060 machine=sparc opsys=nextstep
2061 ;;
2062
2063 ## Tadpole 68k
2064 m68*-tadpole-sysv* )
2065 machine=tad68k opsys=usg5-3
2066 ;;
2067
2068 ## Tahoe machines
2069 tahoe-tahoe-bsd4.2* )
2070 machine=tahoe opsys=bsd4-2
2071 ;;
2072 tahoe-tahoe-bsd4.3* )
2073 machine=tahoe opsys=bsd4-3
2074 ;;
2075
2076 ## Tandem Integrity S2
2077 mips-tandem-sysv* )
2078 machine=tandem-s2 opsys=usg5-3
2079 ;;
2080
2081 ## Tektronix XD88
2082 m88k-tektronix-sysv3* )
2083 machine=tekxd88 opsys=usg5-3
2084 ;;
2085
2086 ## Tektronix 16000 box (6130?)
2087 ns16k-tektronix-bsd* )
2088 machine=ns16000 opsys=bsd4-2
2089 ;;
2090 ## Tektronix 4300
2091 ## src/m/tek4300.h hints that this is a m68k machine.
2092 m68*-tektronix-bsd* )
2093 machine=tek4300 opsys=bsd4-3
2094 ;;
2095
2096 ## Titan P2 or P3
2097 ## We seem to have lost the machine-description file titan.h!
2098 titan-titan-sysv* )
2099 machine=titan opsys=usg5-3
2100 ;;
2101
2102 ## Ustation E30 (SS5E)
2103 m68*-unisys-uniplus* )
2104 machine=ustation opsystem=unipl5-2
2105 ;;
2106
2107 ## Vaxen.
2108 vax-dec-* )
2109 machine=vax
2110 case "${canonical}" in
2111 *-bsd4.1* ) opsys=bsd4-1 ;;
2112 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2113 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2114 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2115 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2116 *-vms* ) opsys=vms ;;
2117 * ) unported=yes
2118 esac
2119 ;;
2120
2121 ## Whitechapel MG1
2122 ns16k-whitechapel-* )
2123 machine=mg1
2124 ## We don't know what sort of OS runs on these; we'll let the
2125 ## operating system guessing code below try.
2126 ;;
2127
2128 ## Wicat
2129 m68*-wicat-sysv* )
2130 machine=wicat opsys=usg5-2
2131 ;;
2132
2133 ## IA-64
2134 ia64*-*-linux* )
2135 machine=ia64 opsys=gnu-linux
2136 ;;
2137
2138 ## Intel 386 machines where we don't care about the manufacturer
2139 i[3456]86-*-* )
2140 machine=intel386
2141 case "${canonical}" in
2142 *-lynxos* ) opsys=lynxos ;;
2143 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2144 *-isc2.2* ) opsys=isc2-2 ;;
2145 *-isc4.0* ) opsys=isc4-0 ;;
2146 *-isc4.* ) opsys=isc4-1
2147 GCC_TEST_OPTIONS=-posix
2148 NON_GCC_TEST_OPTIONS=-Xp
2149 ;;
2150 *-isc* ) opsys=isc3-0 ;;
2151 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2152 *-esix* ) opsys=esix ;;
2153 *-xenix* ) opsys=xenix ;;
2154 *-linux-gnu* ) opsys=gnu-linux ;;
2155 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2156 *-sco3.2v5* ) opsys=sco5
2157 NON_GNU_CPP=/lib/cpp
2158 # Prevent -belf from being passed to $CPP.
2159 # /lib/cpp does not accept it.
2160 OVERRIDE_CPPFLAGS=" "
2161 ;;
2162 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2163 *-386bsd* ) opsys=386bsd ;;
2164 *-nextstep* ) opsys=nextstep ;;
2165 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2166 esac
2167 ;;
2168
2169 ## m68k Linux-based GNU system
2170 m68k-*-linux-gnu* )
2171 machine=m68k opsys=gnu-linux
2172 ;;
2173
2174 ## Mips Linux-based GNU system
2175 mips-*-linux-gnu* )
2176 machine=mips opsys=gnu-linux
2177 ;;
2178
2179 ## UXP/DS
2180 sparc-fujitsu-sysv4* )
2181 machine=sparc opsys=uxpds
2182 NON_GNU_CPP=/usr/ccs/lib/cpp
2183 RANLIB="ar -ts"
2184 ;;
2185
2186 ## UXP/V
2187 f301-fujitsu-uxpv4.1)
2188 machine=f301 opsys=uxpv
2189 ;;
2190
2191 * )
2192 unported=yes
2193 ;;
2194 esac
2195
2196 ### If the code above didn't choose an operating system, just choose
2197 ### an operating system based on the configuration name. You really
2198 ### only want to use this when you have no idea what the right
2199 ### operating system is; if you know what operating systems a machine
2200 ### runs, it's cleaner to make it explicit in the case statement
2201 ### above.
2202 if test x"${opsys}" = x; then
2203 case "${canonical}" in
2204 *-gnu* ) opsys=gnu ;;
2205 *-bsd4.[01] ) opsys=bsd4-1 ;;
2206 *-bsd4.2 ) opsys=bsd4-2 ;;
2207 *-bsd4.3 ) opsys=bsd4-3 ;;
2208 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2209 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2210 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2211 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2212 *-sysv4.2uw* ) opsys=unixware ;;
2213 *-sysv4.1* | *-sysvr4.1* )
2214 NON_GNU_CPP=/usr/lib/cpp
2215 opsys=usg5-4 ;;
2216 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2217 if [ x$NON_GNU_CPP = x ]; then
2218 if [ -f /usr/ccs/lib/cpp ]; then
2219 NON_GNU_CPP=/usr/ccs/lib/cpp
2220 else
2221 NON_GNU_CPP=/lib/cpp
2222 fi
2223 fi
2224 opsys=usg5-4-2 ;;
2225 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2226 * )
2227 unported=yes
2228 ;;
2229 esac
2230 fi
2231
2232 if test $unported = yes; then
2233 { { echo "$as_me:2233: error: Emacs hasn't been ported to \`${canonical}' systems.
2234 Check \`etc/MACHINES' for recognized configuration names." >&5
2235 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2236 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2237 { (exit 1); exit 1; }; }
2238 fi
2239
2240 machfile="m/${machine}.h"
2241 opsysfile="s/${opsys}.h"
2242
2243 #### Choose a compiler.
2244 test -n "$CC" && cc_specified=yes
2245
2246 # Save the value of CFLAGS that the user specified.
2247 SPECIFIED_CFLAGS="$CFLAGS"
2248
2249 case ${with_gcc} in
2250 "yes" ) CC="gcc" GCC=yes ;;
2251 "no" ) : ${CC=cc} ;;
2252 * )
2253 esac
2254 ac_ext=c
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259 if test -n "$ac_tool_prefix"; then
2260 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2262 echo "$as_me:2262: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267 if test -n "$CC"; then
2268 ac_cv_prog_CC="$CC" # Let the user override the test.
2269 else
2270 ac_save_IFS=$IFS; IFS=$ac_path_separator
2271 ac_dummy="$PATH"
2272 for ac_dir in $ac_dummy; do
2273 IFS=$ac_save_IFS
2274 test -z "$ac_dir" && ac_dir=.
2275 $as_executable_p "$ac_dir/$ac_word" || continue
2276 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2277 echo "$as_me:2277: found $ac_dir/$ac_word" >&5
2278 break
2279 done
2280
2281 fi
2282 fi
2283 CC=$ac_cv_prog_CC
2284 if test -n "$CC"; then
2285 echo "$as_me:2285: result: $CC" >&5
2286 echo "${ECHO_T}$CC" >&6
2287 else
2288 echo "$as_me:2288: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2290 fi
2291
2292 fi
2293 if test -z "$ac_cv_prog_CC"; then
2294 ac_ct_CC=$CC
2295 # Extract the first word of "gcc", so it can be a program name with args.
2296 set dummy gcc; ac_word=$2
2297 echo "$as_me:2297: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302 if test -n "$ac_ct_CC"; then
2303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2304 else
2305 ac_save_IFS=$IFS; IFS=$ac_path_separator
2306 ac_dummy="$PATH"
2307 for ac_dir in $ac_dummy; do
2308 IFS=$ac_save_IFS
2309 test -z "$ac_dir" && ac_dir=.
2310 $as_executable_p "$ac_dir/$ac_word" || continue
2311 ac_cv_prog_ac_ct_CC="gcc"
2312 echo "$as_me:2312: found $ac_dir/$ac_word" >&5
2313 break
2314 done
2315
2316 fi
2317 fi
2318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2319 if test -n "$ac_ct_CC"; then
2320 echo "$as_me:2320: result: $ac_ct_CC" >&5
2321 echo "${ECHO_T}$ac_ct_CC" >&6
2322 else
2323 echo "$as_me:2323: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2325 fi
2326
2327 CC=$ac_ct_CC
2328 else
2329 CC="$ac_cv_prog_CC"
2330 fi
2331
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2335 set dummy ${ac_tool_prefix}cc; ac_word=$2
2336 echo "$as_me:2336: checking for $ac_word" >&5
2337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2338 if test "${ac_cv_prog_CC+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341 if test -n "$CC"; then
2342 ac_cv_prog_CC="$CC" # Let the user override the test.
2343 else
2344 ac_save_IFS=$IFS; IFS=$ac_path_separator
2345 ac_dummy="$PATH"
2346 for ac_dir in $ac_dummy; do
2347 IFS=$ac_save_IFS
2348 test -z "$ac_dir" && ac_dir=.
2349 $as_executable_p "$ac_dir/$ac_word" || continue
2350 ac_cv_prog_CC="${ac_tool_prefix}cc"
2351 echo "$as_me:2351: found $ac_dir/$ac_word" >&5
2352 break
2353 done
2354
2355 fi
2356 fi
2357 CC=$ac_cv_prog_CC
2358 if test -n "$CC"; then
2359 echo "$as_me:2359: result: $CC" >&5
2360 echo "${ECHO_T}$CC" >&6
2361 else
2362 echo "$as_me:2362: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2364 fi
2365
2366 fi
2367 if test -z "$ac_cv_prog_CC"; then
2368 ac_ct_CC=$CC
2369 # Extract the first word of "cc", so it can be a program name with args.
2370 set dummy cc; ac_word=$2
2371 echo "$as_me:2371: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376 if test -n "$ac_ct_CC"; then
2377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2378 else
2379 ac_save_IFS=$IFS; IFS=$ac_path_separator
2380 ac_dummy="$PATH"
2381 for ac_dir in $ac_dummy; do
2382 IFS=$ac_save_IFS
2383 test -z "$ac_dir" && ac_dir=.
2384 $as_executable_p "$ac_dir/$ac_word" || continue
2385 ac_cv_prog_ac_ct_CC="cc"
2386 echo "$as_me:2386: found $ac_dir/$ac_word" >&5
2387 break
2388 done
2389
2390 fi
2391 fi
2392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2393 if test -n "$ac_ct_CC"; then
2394 echo "$as_me:2394: result: $ac_ct_CC" >&5
2395 echo "${ECHO_T}$ac_ct_CC" >&6
2396 else
2397 echo "$as_me:2397: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2399 fi
2400
2401 CC=$ac_ct_CC
2402 else
2403 CC="$ac_cv_prog_CC"
2404 fi
2405
2406 fi
2407 if test -z "$CC"; then
2408 # Extract the first word of "cc", so it can be a program name with args.
2409 set dummy cc; ac_word=$2
2410 echo "$as_me:2410: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2412 if test "${ac_cv_prog_CC+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
2417 else
2418 ac_prog_rejected=no
2419 ac_save_IFS=$IFS; IFS=$ac_path_separator
2420 ac_dummy="$PATH"
2421 for ac_dir in $ac_dummy; do
2422 IFS=$ac_save_IFS
2423 test -z "$ac_dir" && ac_dir=.
2424 $as_executable_p "$ac_dir/$ac_word" || continue
2425 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2426 ac_prog_rejected=yes
2427 continue
2428 fi
2429 ac_cv_prog_CC="cc"
2430 echo "$as_me:2430: found $ac_dir/$ac_word" >&5
2431 break
2432 done
2433
2434 if test $ac_prog_rejected = yes; then
2435 # We found a bogon in the path, so make sure we never use it.
2436 set dummy $ac_cv_prog_CC
2437 shift
2438 if test $# != 0; then
2439 # We chose a different compiler from the bogus one.
2440 # However, it has the same basename, so the bogon will be chosen
2441 # first if we set CC to just the basename; use the full file name.
2442 shift
2443 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2444 shift
2445 ac_cv_prog_CC="$@"
2446 fi
2447 fi
2448 fi
2449 fi
2450 CC=$ac_cv_prog_CC
2451 if test -n "$CC"; then
2452 echo "$as_me:2452: result: $CC" >&5
2453 echo "${ECHO_T}$CC" >&6
2454 else
2455 echo "$as_me:2455: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2457 fi
2458
2459 fi
2460 if test -z "$CC"; then
2461 if test -n "$ac_tool_prefix"; then
2462 for ac_prog in cl
2463 do
2464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2466 echo "$as_me:2466: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_CC+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2473 else
2474 ac_save_IFS=$IFS; IFS=$ac_path_separator
2475 ac_dummy="$PATH"
2476 for ac_dir in $ac_dummy; do
2477 IFS=$ac_save_IFS
2478 test -z "$ac_dir" && ac_dir=.
2479 $as_executable_p "$ac_dir/$ac_word" || continue
2480 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2481 echo "$as_me:2481: found $ac_dir/$ac_word" >&5
2482 break
2483 done
2484
2485 fi
2486 fi
2487 CC=$ac_cv_prog_CC
2488 if test -n "$CC"; then
2489 echo "$as_me:2489: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6
2491 else
2492 echo "$as_me:2492: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2494 fi
2495
2496 test -n "$CC" && break
2497 done
2498 fi
2499 if test -z "$CC"; then
2500 ac_ct_CC=$CC
2501 for ac_prog in cl
2502 do
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 echo "$as_me:2505: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510 if test -n "$ac_ct_CC"; then
2511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512 else
2513 ac_save_IFS=$IFS; IFS=$ac_path_separator
2514 ac_dummy="$PATH"
2515 for ac_dir in $ac_dummy; do
2516 IFS=$ac_save_IFS
2517 test -z "$ac_dir" && ac_dir=.
2518 $as_executable_p "$ac_dir/$ac_word" || continue
2519 ac_cv_prog_ac_ct_CC="$ac_prog"
2520 echo "$as_me:2520: found $ac_dir/$ac_word" >&5
2521 break
2522 done
2523
2524 fi
2525 fi
2526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2527 if test -n "$ac_ct_CC"; then
2528 echo "$as_me:2528: result: $ac_ct_CC" >&5
2529 echo "${ECHO_T}$ac_ct_CC" >&6
2530 else
2531 echo "$as_me:2531: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2533 fi
2534
2535 test -n "$ac_ct_CC" && break
2536 done
2537
2538 CC=$ac_ct_CC
2539 fi
2540
2541 fi
2542
2543 test -z "$CC" && { { echo "$as_me:2543: error: no acceptable cc found in \$PATH" >&5
2544 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2545 { (exit 1); exit 1; }; }
2546
2547 # Provide some information about the compiler.
2548 echo "$as_me:2548:" \
2549 "checking for C compiler version" >&5
2550 ac_compiler=`set X $ac_compile; echo $2`
2551 { (eval echo "$as_me:2551: \"$ac_compiler --version </dev/null >&5\"") >&5
2552 (eval $ac_compiler --version </dev/null >&5) 2>&5
2553 ac_status=$?
2554 echo "$as_me:2554: \$? = $ac_status" >&5
2555 (exit $ac_status); }
2556 { (eval echo "$as_me:2556: \"$ac_compiler -v </dev/null >&5\"") >&5
2557 (eval $ac_compiler -v </dev/null >&5) 2>&5
2558 ac_status=$?
2559 echo "$as_me:2559: \$? = $ac_status" >&5
2560 (exit $ac_status); }
2561 { (eval echo "$as_me:2561: \"$ac_compiler -V </dev/null >&5\"") >&5
2562 (eval $ac_compiler -V </dev/null >&5) 2>&5
2563 ac_status=$?
2564 echo "$as_me:2564: \$? = $ac_status" >&5
2565 (exit $ac_status); }
2566
2567 cat >conftest.$ac_ext <<_ACEOF
2568 #line 2568 "configure"
2569 #include "confdefs.h"
2570
2571 int
2572 main ()
2573 {
2574
2575 ;
2576 return 0;
2577 }
2578 _ACEOF
2579 ac_clean_files_save=$ac_clean_files
2580 ac_clean_files="$ac_clean_files a.out a.exe"
2581 # Try to create an executable without -o first, disregard a.out.
2582 # It will help us diagnose broken compilers, and finding out an intuition
2583 # of exeext.
2584 echo "$as_me:2584: checking for C compiler default output" >&5
2585 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2586 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2587 if { (eval echo "$as_me:2587: \"$ac_link_default\"") >&5
2588 (eval $ac_link_default) 2>&5
2589 ac_status=$?
2590 echo "$as_me:2590: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
2592 # Find the output, starting from the most likely. This scheme is
2593 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2594 # resort.
2595 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2596 ls a.out conftest 2>/dev/null;
2597 ls a.* conftest.* 2>/dev/null`; do
2598 case $ac_file in
2599 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2600 a.out ) # We found the default executable, but exeext='' is most
2601 # certainly right.
2602 break;;
2603 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2605 export ac_cv_exeext
2606 break;;
2607 * ) break;;
2608 esac
2609 done
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2613 { { echo "$as_me:2613: error: C compiler cannot create executables" >&5
2614 echo "$as_me: error: C compiler cannot create executables" >&2;}
2615 { (exit 77); exit 77; }; }
2616 fi
2617
2618 ac_exeext=$ac_cv_exeext
2619 echo "$as_me:2619: result: $ac_file" >&5
2620 echo "${ECHO_T}$ac_file" >&6
2621
2622 # Check the compiler produces executables we can run. If not, either
2623 # the compiler is broken, or we cross compile.
2624 echo "$as_me:2624: checking whether the C compiler works" >&5
2625 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2626 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2627 # If not cross compiling, check that we can run a simple program.
2628 if test "$cross_compiling" != yes; then
2629 if { ac_try='./$ac_file'
2630 { (eval echo "$as_me:2630: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:2633: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 cross_compiling=no
2636 else
2637 if test "$cross_compiling" = maybe; then
2638 cross_compiling=yes
2639 else
2640 { { echo "$as_me:2640: error: cannot run C compiled programs.
2641 If you meant to cross compile, use \`--host'." >&5
2642 echo "$as_me: error: cannot run C compiled programs.
2643 If you meant to cross compile, use \`--host'." >&2;}
2644 { (exit 1); exit 1; }; }
2645 fi
2646 fi
2647 fi
2648 echo "$as_me:2648: result: yes" >&5
2649 echo "${ECHO_T}yes" >&6
2650
2651 rm -f a.out a.exe conftest$ac_cv_exeext
2652 ac_clean_files=$ac_clean_files_save
2653 # Check the compiler produces executables we can run. If not, either
2654 # the compiler is broken, or we cross compile.
2655 echo "$as_me:2655: checking whether we are cross compiling" >&5
2656 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2657 echo "$as_me:2657: result: $cross_compiling" >&5
2658 echo "${ECHO_T}$cross_compiling" >&6
2659
2660 echo "$as_me:2660: checking for executable suffix" >&5
2661 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2662 if { (eval echo "$as_me:2662: \"$ac_link\"") >&5
2663 (eval $ac_link) 2>&5
2664 ac_status=$?
2665 echo "$as_me:2665: \$? = $ac_status" >&5
2666 (exit $ac_status); }; then
2667 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2668 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2669 # work properly (i.e., refer to `conftest.exe'), while it won't with
2670 # `rm'.
2671 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2672 case $ac_file in
2673 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2674 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2675 export ac_cv_exeext
2676 break;;
2677 * ) break;;
2678 esac
2679 done
2680 else
2681 { { echo "$as_me:2681: error: cannot compute EXEEXT: cannot compile and link" >&5
2682 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2683 { (exit 1); exit 1; }; }
2684 fi
2685
2686 rm -f conftest$ac_cv_exeext
2687 echo "$as_me:2687: result: $ac_cv_exeext" >&5
2688 echo "${ECHO_T}$ac_cv_exeext" >&6
2689
2690 rm -f conftest.$ac_ext
2691 EXEEXT=$ac_cv_exeext
2692 ac_exeext=$EXEEXT
2693 echo "$as_me:2693: checking for object suffix" >&5
2694 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2695 if test "${ac_cv_objext+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 cat >conftest.$ac_ext <<_ACEOF
2699 #line 2699 "configure"
2700 #include "confdefs.h"
2701
2702 int
2703 main ()
2704 {
2705
2706 ;
2707 return 0;
2708 }
2709 _ACEOF
2710 rm -f conftest.o conftest.obj
2711 if { (eval echo "$as_me:2711: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>&5
2713 ac_status=$?
2714 echo "$as_me:2714: \$? = $ac_status" >&5
2715 (exit $ac_status); }; then
2716 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2717 case $ac_file in
2718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2719 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2720 break;;
2721 esac
2722 done
2723 else
2724 echo "$as_me: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2726 { { echo "$as_me:2726: error: cannot compute OBJEXT: cannot compile" >&5
2727 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2728 { (exit 1); exit 1; }; }
2729 fi
2730
2731 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2732 fi
2733 echo "$as_me:2733: result: $ac_cv_objext" >&5
2734 echo "${ECHO_T}$ac_cv_objext" >&6
2735 OBJEXT=$ac_cv_objext
2736 ac_objext=$OBJEXT
2737 echo "$as_me:2737: checking whether we are using the GNU C compiler" >&5
2738 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2739 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742 cat >conftest.$ac_ext <<_ACEOF
2743 #line 2743 "configure"
2744 #include "confdefs.h"
2745
2746 int
2747 main ()
2748 {
2749 #ifndef __GNUC__
2750 choke me
2751 #endif
2752
2753 ;
2754 return 0;
2755 }
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:2758: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>&5
2760 ac_status=$?
2761 echo "$as_me:2761: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:2764: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:2767: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 ac_compiler_gnu=yes
2770 else
2771 echo "$as_me: failed program was:" >&5
2772 cat conftest.$ac_ext >&5
2773 ac_compiler_gnu=no
2774 fi
2775 rm -f conftest.$ac_objext conftest.$ac_ext
2776 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2777
2778 fi
2779 echo "$as_me:2779: result: $ac_cv_c_compiler_gnu" >&5
2780 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2781 GCC=`test $ac_compiler_gnu = yes && echo yes`
2782 ac_test_CFLAGS=${CFLAGS+set}
2783 ac_save_CFLAGS=$CFLAGS
2784 CFLAGS="-g"
2785 echo "$as_me:2785: checking whether $CC accepts -g" >&5
2786 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2787 if test "${ac_cv_prog_cc_g+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790 cat >conftest.$ac_ext <<_ACEOF
2791 #line 2791 "configure"
2792 #include "confdefs.h"
2793
2794 int
2795 main ()
2796 {
2797
2798 ;
2799 return 0;
2800 }
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:2803: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>&5
2805 ac_status=$?
2806 echo "$as_me:2806: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try='test -s conftest.$ac_objext'
2809 { (eval echo "$as_me:2809: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:2812: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 ac_cv_prog_cc_g=yes
2815 else
2816 echo "$as_me: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2818 ac_cv_prog_cc_g=no
2819 fi
2820 rm -f conftest.$ac_objext conftest.$ac_ext
2821 fi
2822 echo "$as_me:2822: result: $ac_cv_prog_cc_g" >&5
2823 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2824 if test "$ac_test_CFLAGS" = set; then
2825 CFLAGS=$ac_save_CFLAGS
2826 elif test $ac_cv_prog_cc_g = yes; then
2827 if test "$GCC" = yes; then
2828 CFLAGS="-g -O2"
2829 else
2830 CFLAGS="-g"
2831 fi
2832 else
2833 if test "$GCC" = yes; then
2834 CFLAGS="-O2"
2835 else
2836 CFLAGS=
2837 fi
2838 fi
2839 # Some people use a C++ compiler to compile C. Since we use `exit',
2840 # in C++ we need to declare it. In case someone uses the same compiler
2841 # for both compiling C and C++ we need to have the C++ compiler decide
2842 # the declaration of exit, since it's the most demanding environment.
2843 cat >conftest.$ac_ext <<_ACEOF
2844 #ifndef __cplusplus
2845 choke me
2846 #endif
2847 _ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:2849: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>&5
2851 ac_status=$?
2852 echo "$as_me:2852: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
2854 { ac_try='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:2855: \"$ac_try\"") >&5
2856 (eval $ac_try) 2>&5
2857 ac_status=$?
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 for ac_declaration in \
2861 ''\
2862 '#include <stdlib.h>' \
2863 'extern "C" void std::exit (int) throw (); using std::exit;' \
2864 'extern "C" void std::exit (int); using std::exit;' \
2865 'extern "C" void exit (int) throw ();' \
2866 'extern "C" void exit (int);' \
2867 'void exit (int);'
2868 do
2869 cat >conftest.$ac_ext <<_ACEOF
2870 #line 2870 "configure"
2871 #include "confdefs.h"
2872 #include <stdlib.h>
2873 $ac_declaration
2874 int
2875 main ()
2876 {
2877 exit (42);
2878 ;
2879 return 0;
2880 }
2881 _ACEOF
2882 rm -f conftest.$ac_objext
2883 if { (eval echo "$as_me:2883: \"$ac_compile\"") >&5
2884 (eval $ac_compile) 2>&5
2885 ac_status=$?
2886 echo "$as_me:2886: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:2889: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:2892: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 :
2895 else
2896 echo "$as_me: failed program was:" >&5
2897 cat conftest.$ac_ext >&5
2898 continue
2899 fi
2900 rm -f conftest.$ac_objext conftest.$ac_ext
2901 cat >conftest.$ac_ext <<_ACEOF
2902 #line 2902 "configure"
2903 #include "confdefs.h"
2904 $ac_declaration
2905 int
2906 main ()
2907 {
2908 exit (42);
2909 ;
2910 return 0;
2911 }
2912 _ACEOF
2913 rm -f conftest.$ac_objext
2914 if { (eval echo "$as_me:2914: \"$ac_compile\"") >&5
2915 (eval $ac_compile) 2>&5
2916 ac_status=$?
2917 echo "$as_me:2917: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:2920: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:2923: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 break
2926 else
2927 echo "$as_me: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2929 fi
2930 rm -f conftest.$ac_objext conftest.$ac_ext
2931 done
2932 rm -f conftest*
2933 if test -n "$ac_declaration"; then
2934 echo '#ifdef __cplusplus' >>confdefs.h
2935 echo $ac_declaration >>confdefs.h
2936 echo '#endif' >>confdefs.h
2937 fi
2938
2939 else
2940 echo "$as_me: failed program was:" >&5
2941 cat conftest.$ac_ext >&5
2942 fi
2943 rm -f conftest.$ac_objext conftest.$ac_ext
2944 ac_ext=c
2945 ac_cpp='$CPP $CPPFLAGS'
2946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949
2950 # On Suns, sometimes $CPP names a directory.
2951 if test -n "$CPP" && test -d "$CPP"; then
2952 CPP=
2953 fi
2954
2955 #### Some systems specify a CPP to use unless we are using GCC.
2956 #### Now that we know whether we are using GCC, we can decide whether
2957 #### to use that one.
2958 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
2959 then
2960 CPP="$NON_GNU_CPP"
2961 fi
2962
2963 #### Some systems specify a CC to use unless we are using GCC.
2964 #### Now that we know whether we are using GCC, we can decide whether
2965 #### to use that one.
2966 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
2967 test x$cc_specified != xyes
2968 then
2969 CC="$NON_GNU_CC"
2970 fi
2971
2972 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
2973 then
2974 CC="$CC $GCC_TEST_OPTIONS"
2975 fi
2976
2977 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
2978 then
2979 CC="$CC $NON_GCC_TEST_OPTIONS"
2980 fi
2981
2982 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
2983 then
2984 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
2985 fi
2986
2987 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
2988 then
2989 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
2990 fi
2991
2992 #### Some other nice autoconf tests. If you add a test here which
2993 #### should make an entry in src/config.h, don't forget to add an
2994 #### #undef clause to src/config.h.in for autoconf to modify.
2995
2996 echo "$as_me:2996: checking whether ln -s works" >&5
2997 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2998 LN_S=$as_ln_s
2999 if test "$LN_S" = "ln -s"; then
3000 echo "$as_me:3000: result: yes" >&5
3001 echo "${ECHO_T}yes" >&6
3002 else
3003 echo "$as_me:3003: result: no, using $LN_S" >&5
3004 echo "${ECHO_T}no, using $LN_S" >&6
3005 fi
3006
3007 ac_ext=c
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 echo "$as_me:3012: checking how to run the C preprocessor" >&5
3013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3014 # On Suns, sometimes $CPP names a directory.
3015 if test -n "$CPP" && test -d "$CPP"; then
3016 CPP=
3017 fi
3018 if test -z "$CPP"; then
3019 if test "${ac_cv_prog_CPP+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022 # Double quotes because CPP needs to be expanded
3023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3024 do
3025 ac_preproc_ok=false
3026 for ac_c_preproc_warn_flag in '' yes
3027 do
3028 # Use a header file that comes with gcc, so configuring glibc
3029 # with a fresh cross-compiler works.
3030 # On the NeXT, cc -E runs the code through the compiler's parser,
3031 # not just through cpp. "Syntax error" is here to catch this case.
3032 cat >conftest.$ac_ext <<_ACEOF
3033 #line 3033 "configure"
3034 #include "confdefs.h"
3035 #include <assert.h>
3036 Syntax error
3037 _ACEOF
3038 if { (eval echo "$as_me:3038: \"$ac_cpp conftest.$ac_ext\"") >&5
3039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3040 ac_status=$?
3041 egrep -v '^ *\+' conftest.er1 >conftest.err
3042 rm -f conftest.er1
3043 cat conftest.err >&5
3044 echo "$as_me:3044: \$? = $ac_status" >&5
3045 (exit $ac_status); } >/dev/null; then
3046 if test -s conftest.err; then
3047 ac_cpp_err=$ac_c_preproc_warn_flag
3048 else
3049 ac_cpp_err=
3050 fi
3051 else
3052 ac_cpp_err=yes
3053 fi
3054 if test -z "$ac_cpp_err"; then
3055 :
3056 else
3057 echo "$as_me: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 # Broken: fails on valid input.
3060 continue
3061 fi
3062 rm -f conftest.err conftest.$ac_ext
3063
3064 # OK, works on sane cases. Now check whether non-existent headers
3065 # can be detected and how.
3066 cat >conftest.$ac_ext <<_ACEOF
3067 #line 3067 "configure"
3068 #include "confdefs.h"
3069 #include <ac_nonexistent.h>
3070 _ACEOF
3071 if { (eval echo "$as_me:3071: \"$ac_cpp conftest.$ac_ext\"") >&5
3072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3073 ac_status=$?
3074 egrep -v '^ *\+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:3077: \$? = $ac_status" >&5
3078 (exit $ac_status); } >/dev/null; then
3079 if test -s conftest.err; then
3080 ac_cpp_err=$ac_c_preproc_warn_flag
3081 else
3082 ac_cpp_err=
3083 fi
3084 else
3085 ac_cpp_err=yes
3086 fi
3087 if test -z "$ac_cpp_err"; then
3088 # Broken: success on invalid input.
3089 continue
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3093 # Passes both tests.
3094 ac_preproc_ok=:
3095 break
3096 fi
3097 rm -f conftest.err conftest.$ac_ext
3098
3099 done
3100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3101 rm -f conftest.err conftest.$ac_ext
3102 if $ac_preproc_ok; then
3103 break
3104 fi
3105
3106 done
3107 ac_cv_prog_CPP=$CPP
3108
3109 fi
3110 CPP=$ac_cv_prog_CPP
3111 else
3112 ac_cv_prog_CPP=$CPP
3113 fi
3114 echo "$as_me:3114: result: $CPP" >&5
3115 echo "${ECHO_T}$CPP" >&6
3116 ac_preproc_ok=false
3117 for ac_c_preproc_warn_flag in '' yes
3118 do
3119 # Use a header file that comes with gcc, so configuring glibc
3120 # with a fresh cross-compiler works.
3121 # On the NeXT, cc -E runs the code through the compiler's parser,
3122 # not just through cpp. "Syntax error" is here to catch this case.
3123 cat >conftest.$ac_ext <<_ACEOF
3124 #line 3124 "configure"
3125 #include "confdefs.h"
3126 #include <assert.h>
3127 Syntax error
3128 _ACEOF
3129 if { (eval echo "$as_me:3129: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131 ac_status=$?
3132 egrep -v '^ *\+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:3135: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null; then
3137 if test -s conftest.err; then
3138 ac_cpp_err=$ac_c_preproc_warn_flag
3139 else
3140 ac_cpp_err=
3141 fi
3142 else
3143 ac_cpp_err=yes
3144 fi
3145 if test -z "$ac_cpp_err"; then
3146 :
3147 else
3148 echo "$as_me: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3150 # Broken: fails on valid input.
3151 continue
3152 fi
3153 rm -f conftest.err conftest.$ac_ext
3154
3155 # OK, works on sane cases. Now check whether non-existent headers
3156 # can be detected and how.
3157 cat >conftest.$ac_ext <<_ACEOF
3158 #line 3158 "configure"
3159 #include "confdefs.h"
3160 #include <ac_nonexistent.h>
3161 _ACEOF
3162 if { (eval echo "$as_me:3162: \"$ac_cpp conftest.$ac_ext\"") >&5
3163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3164 ac_status=$?
3165 egrep -v '^ *\+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:3168: \$? = $ac_status" >&5
3169 (exit $ac_status); } >/dev/null; then
3170 if test -s conftest.err; then
3171 ac_cpp_err=$ac_c_preproc_warn_flag
3172 else
3173 ac_cpp_err=
3174 fi
3175 else
3176 ac_cpp_err=yes
3177 fi
3178 if test -z "$ac_cpp_err"; then
3179 # Broken: success on invalid input.
3180 continue
3181 else
3182 echo "$as_me: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3184 # Passes both tests.
3185 ac_preproc_ok=:
3186 break
3187 fi
3188 rm -f conftest.err conftest.$ac_ext
3189
3190 done
3191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3192 rm -f conftest.err conftest.$ac_ext
3193 if $ac_preproc_ok; then
3194 :
3195 else
3196 { { echo "$as_me:3196: error: C preprocessor \"$CPP\" fails sanity check" >&5
3197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3198 { (exit 1); exit 1; }; }
3199 fi
3200
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
3207 # Find a good install program. We prefer a C program (faster),
3208 # so one script is as good as another. But avoid the broken or
3209 # incompatible versions:
3210 # SysV /etc/install, /usr/sbin/install
3211 # SunOS /usr/etc/install
3212 # IRIX /sbin/install
3213 # AIX /bin/install
3214 # AmigaOS /C/install, which installs bootblocks on floppy discs
3215 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3216 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3217 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3218 # ./install, which can be erroneously created by make from ./install.sh.
3219 echo "$as_me:3219: checking for a BSD compatible install" >&5
3220 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3221 if test -z "$INSTALL"; then
3222 if test "${ac_cv_path_install+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225 ac_save_IFS=$IFS; IFS=$ac_path_separator
3226 for ac_dir in $PATH; do
3227 IFS=$ac_save_IFS
3228 # Account for people who put trailing slashes in PATH elements.
3229 case $ac_dir/ in
3230 / | ./ | .// | /cC/* \
3231 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3232 | /usr/ucb/* ) ;;
3233 *)
3234 # OSF1 and SCO ODT 3.0 have their own names for install.
3235 # Don't use installbsd from OSF since it installs stuff as root
3236 # by default.
3237 for ac_prog in ginstall scoinst install; do
3238 if $as_executable_p "$ac_dir/$ac_prog"; then
3239 if test $ac_prog = install &&
3240 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3241 # AIX install. It has an incompatible calling convention.
3242 :
3243 elif test $ac_prog = install &&
3244 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3245 # program-specific install script used by HP pwplus--don't use.
3246 :
3247 else
3248 ac_cv_path_install="$ac_dir/$ac_prog -c"
3249 break 2
3250 fi
3251 fi
3252 done
3253 ;;
3254 esac
3255 done
3256
3257 fi
3258 if test "${ac_cv_path_install+set}" = set; then
3259 INSTALL=$ac_cv_path_install
3260 else
3261 # As a last resort, use the slow shell script. We don't cache a
3262 # path for INSTALL within a source directory, because that will
3263 # break other packages using the cache if that directory is
3264 # removed, or if the path is relative.
3265 INSTALL=$ac_install_sh
3266 fi
3267 fi
3268 echo "$as_me:3268: result: $INSTALL" >&5
3269 echo "${ECHO_T}$INSTALL" >&6
3270
3271 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3272 # It thinks the first close brace ends the variable substitution.
3273 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3274
3275 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3276
3277 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3278
3279 for ac_prog in 'bison -y' byacc
3280 do
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 echo "$as_me:3283: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_prog_YACC+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 if test -n "$YACC"; then
3289 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3290 else
3291 ac_save_IFS=$IFS; IFS=$ac_path_separator
3292 ac_dummy="$PATH"
3293 for ac_dir in $ac_dummy; do
3294 IFS=$ac_save_IFS
3295 test -z "$ac_dir" && ac_dir=.
3296 $as_executable_p "$ac_dir/$ac_word" || continue
3297 ac_cv_prog_YACC="$ac_prog"
3298 echo "$as_me:3298: found $ac_dir/$ac_word" >&5
3299 break
3300 done
3301
3302 fi
3303 fi
3304 YACC=$ac_cv_prog_YACC
3305 if test -n "$YACC"; then
3306 echo "$as_me:3306: result: $YACC" >&5
3307 echo "${ECHO_T}$YACC" >&6
3308 else
3309 echo "$as_me:3309: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3311 fi
3312
3313 test -n "$YACC" && break
3314 done
3315 test -n "$YACC" || YACC="yacc"
3316
3317 if test "x$RANLIB" = x; then
3318 if test -n "$ac_tool_prefix"; then
3319 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3320 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3321 echo "$as_me:3321: checking for $ac_word" >&5
3322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3323 if test "${ac_cv_prog_RANLIB+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326 if test -n "$RANLIB"; then
3327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3328 else
3329 ac_save_IFS=$IFS; IFS=$ac_path_separator
3330 ac_dummy="$PATH"
3331 for ac_dir in $ac_dummy; do
3332 IFS=$ac_save_IFS
3333 test -z "$ac_dir" && ac_dir=.
3334 $as_executable_p "$ac_dir/$ac_word" || continue
3335 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3336 echo "$as_me:3336: found $ac_dir/$ac_word" >&5
3337 break
3338 done
3339
3340 fi
3341 fi
3342 RANLIB=$ac_cv_prog_RANLIB
3343 if test -n "$RANLIB"; then
3344 echo "$as_me:3344: result: $RANLIB" >&5
3345 echo "${ECHO_T}$RANLIB" >&6
3346 else
3347 echo "$as_me:3347: result: no" >&5
3348 echo "${ECHO_T}no" >&6
3349 fi
3350
3351 fi
3352 if test -z "$ac_cv_prog_RANLIB"; then
3353 ac_ct_RANLIB=$RANLIB
3354 # Extract the first word of "ranlib", so it can be a program name with args.
3355 set dummy ranlib; ac_word=$2
3356 echo "$as_me:3356: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361 if test -n "$ac_ct_RANLIB"; then
3362 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3363 else
3364 ac_save_IFS=$IFS; IFS=$ac_path_separator
3365 ac_dummy="$PATH"
3366 for ac_dir in $ac_dummy; do
3367 IFS=$ac_save_IFS
3368 test -z "$ac_dir" && ac_dir=.
3369 $as_executable_p "$ac_dir/$ac_word" || continue
3370 ac_cv_prog_ac_ct_RANLIB="ranlib"
3371 echo "$as_me:3371: found $ac_dir/$ac_word" >&5
3372 break
3373 done
3374
3375 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3376 fi
3377 fi
3378 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3379 if test -n "$ac_ct_RANLIB"; then
3380 echo "$as_me:3380: result: $ac_ct_RANLIB" >&5
3381 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3382 else
3383 echo "$as_me:3383: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3385 fi
3386
3387 RANLIB=$ac_ct_RANLIB
3388 else
3389 RANLIB="$ac_cv_prog_RANLIB"
3390 fi
3391
3392 fi
3393
3394 echo "$as_me:3394: checking for AIX" >&5
3395 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3396 cat >conftest.$ac_ext <<_ACEOF
3397 #line 3397 "configure"
3398 #include "confdefs.h"
3399 #ifdef _AIX
3400 yes
3401 #endif
3402
3403 _ACEOF
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3405 egrep "yes" >/dev/null 2>&1; then
3406 echo "$as_me:3406: result: yes" >&5
3407 echo "${ECHO_T}yes" >&6
3408 cat >>confdefs.h <<\EOF
3409 #define _ALL_SOURCE 1
3410 EOF
3411
3412 else
3413 echo "$as_me:3413: result: no" >&5
3414 echo "${ECHO_T}no" >&6
3415 fi
3416 rm -f conftest*
3417
3418 #### Extract some information from the operating system and machine files.
3419
3420 { echo "$as_me:3420: checking the machine- and system-dependent files to find out
3421 - which libraries the lib-src programs will want, and
3422 - whether the GNU malloc routines are usable..." >&5
3423 echo "$as_me: checking the machine- and system-dependent files to find out
3424 - which libraries the lib-src programs will want, and
3425 - whether the GNU malloc routines are usable..." >&6;}
3426
3427 ### First figure out CFLAGS (which we use for running the compiler here)
3428 ### and REAL_CFLAGS (which we use for real compilation).
3429 ### The two are the same except on a few systems, where they are made
3430 ### different to work around various lossages. For example,
3431 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3432 ### as implying static linking.
3433
3434 ### If the CFLAGS env var is specified, we use that value
3435 ### instead of the default.
3436
3437 ### It's not important that this name contain the PID; you can't run
3438 ### two configures in the same directory and have anything work
3439 ### anyway.
3440 tempcname="conftest.c"
3441
3442 echo '
3443 #include "'${srcdir}'/src/'${opsysfile}'"
3444 #include "'${srcdir}'/src/'${machfile}'"
3445 #ifndef LIBS_MACHINE
3446 #define LIBS_MACHINE
3447 #endif
3448 #ifndef LIBS_SYSTEM
3449 #define LIBS_SYSTEM
3450 #endif
3451 #ifndef C_SWITCH_SYSTEM
3452 #define C_SWITCH_SYSTEM
3453 #endif
3454 #ifndef C_SWITCH_MACHINE
3455 #define C_SWITCH_MACHINE
3456 #endif
3457 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3458 configure___ c_switch_system=C_SWITCH_SYSTEM
3459 configure___ c_switch_machine=C_SWITCH_MACHINE
3460
3461 #ifndef LIB_X11_LIB
3462 #define LIB_X11_LIB -lX11
3463 #endif
3464
3465 #ifndef LIBX11_MACHINE
3466 #define LIBX11_MACHINE
3467 #endif
3468
3469 #ifndef LIBX11_SYSTEM
3470 #define LIBX11_SYSTEM
3471 #endif
3472 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3473
3474 #ifdef UNEXEC
3475 configure___ unexec=UNEXEC
3476 #else
3477 configure___ unexec=unexec.o
3478 #endif
3479
3480 #ifdef SYSTEM_MALLOC
3481 configure___ system_malloc=yes
3482 #else
3483 configure___ system_malloc=no
3484 #endif
3485
3486 #ifdef USE_MMAP_FOR_BUFFERS
3487 configure___ use_mmap_for_buffers=yes
3488 #else
3489 configure___ use_mmap_for_buffers=no
3490 #endif
3491
3492 #ifndef C_DEBUG_SWITCH
3493 #define C_DEBUG_SWITCH -g
3494 #endif
3495
3496 #ifndef C_OPTIMIZE_SWITCH
3497 #ifdef __GNUC__
3498 #define C_OPTIMIZE_SWITCH -O2
3499 #else
3500 #define C_OPTIMIZE_SWITCH -O
3501 #endif
3502 #endif
3503
3504 #ifndef LD_SWITCH_MACHINE
3505 #define LD_SWITCH_MACHINE
3506 #endif
3507
3508 #ifndef LD_SWITCH_SYSTEM
3509 #define LD_SWITCH_SYSTEM
3510 #endif
3511
3512 #ifndef LD_SWITCH_X_SITE_AUX
3513 #define LD_SWITCH_X_SITE_AUX
3514 #endif
3515
3516 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3517 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3518
3519 #ifdef THIS_IS_CONFIGURE
3520
3521 /* Get the CFLAGS for tests in configure. */
3522 #ifdef __GNUC__
3523 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3524 #else
3525 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3526 #endif
3527
3528 #else /* not THIS_IS_CONFIGURE */
3529
3530 /* Get the CFLAGS for real compilation. */
3531 #ifdef __GNUC__
3532 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3533 #else
3534 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3535 #endif
3536
3537 #endif /* not THIS_IS_CONFIGURE */
3538 ' > ${tempcname}
3539
3540 # The value of CPP is a quoted variable reference, so we need to do this
3541 # to get its actual value...
3542 CPP=`eval "echo $CPP"`
3543 eval `${CPP} -Isrc ${tempcname} \
3544 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3545 if test "x$SPECIFIED_CFLAGS" = x; then
3546 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3547 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3548 else
3549 REAL_CFLAGS="$CFLAGS"
3550 fi
3551 rm ${tempcname}
3552
3553 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3554
3555 ### Make sure subsequent tests use flags consistent with the build flags.
3556
3557 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3558 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3559 else
3560 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3561 fi
3562
3563 # Check whether --enable-largefile or --disable-largefile was given.
3564 if test "${enable_largefile+set}" = set; then
3565 enableval="$enable_largefile"
3566
3567 fi;
3568 if test "$enable_largefile" != no; then
3569
3570 echo "$as_me:3570: checking for special C compiler options needed for large files" >&5
3571 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3572 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575 ac_cv_sys_largefile_CC=no
3576 if test "$GCC" != yes; then
3577 ac_save_CC=$CC
3578 while :; do
3579 # IRIX 6.2 and later do not support large files by default,
3580 # so use the C compiler's -n32 option if that helps.
3581 cat >conftest.$ac_ext <<_ACEOF
3582 #line 3582 "configure"
3583 #include "confdefs.h"
3584 #include <sys/types.h>
3585 /* Check that off_t can represent 2**63 - 1 correctly.
3586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3587 since some C++ compilers masquerading as C compilers
3588 incorrectly reject 9223372036854775807. */
3589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3591 && LARGE_OFF_T % 2147483647 == 1)
3592 ? 1 : -1];
3593 int
3594 main ()
3595 {
3596
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 rm -f conftest.$ac_objext
3602 if { (eval echo "$as_me:3602: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>&5
3604 ac_status=$?
3605 echo "$as_me:3605: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -s conftest.$ac_objext'
3608 { (eval echo "$as_me:3608: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:3611: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 break
3614 else
3615 echo "$as_me: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3617 fi
3618 rm -f conftest.$ac_objext
3619 CC="$CC -n32"
3620 rm -f conftest.$ac_objext
3621 if { (eval echo "$as_me:3621: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>&5
3623 ac_status=$?
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:3627: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:3630: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 ac_cv_sys_largefile_CC=' -n32'; break
3633 else
3634 echo "$as_me: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3636 fi
3637 rm -f conftest.$ac_objext
3638 break
3639 done
3640 CC=$ac_save_CC
3641 rm -f conftest.$ac_ext
3642 fi
3643 fi
3644 echo "$as_me:3644: result: $ac_cv_sys_largefile_CC" >&5
3645 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3646 if test "$ac_cv_sys_largefile_CC" != no; then
3647 CC=$CC$ac_cv_sys_largefile_CC
3648 fi
3649
3650 echo "$as_me:3650: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3651 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3652 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 while :; do
3656 ac_cv_sys_file_offset_bits=no
3657 cat >conftest.$ac_ext <<_ACEOF
3658 #line 3658 "configure"
3659 #include "confdefs.h"
3660 #include <sys/types.h>
3661 /* Check that off_t can represent 2**63 - 1 correctly.
3662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3663 since some C++ compilers masquerading as C compilers
3664 incorrectly reject 9223372036854775807. */
3665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3667 && LARGE_OFF_T % 2147483647 == 1)
3668 ? 1 : -1];
3669 int
3670 main ()
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 rm -f conftest.$ac_objext
3678 if { (eval echo "$as_me:3678: \"$ac_compile\"") >&5
3679 (eval $ac_compile) 2>&5
3680 ac_status=$?
3681 echo "$as_me:3681: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try='test -s conftest.$ac_objext'
3684 { (eval echo "$as_me:3684: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:3687: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 break
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3693 fi
3694 rm -f conftest.$ac_objext conftest.$ac_ext
3695 cat >conftest.$ac_ext <<_ACEOF
3696 #line 3696 "configure"
3697 #include "confdefs.h"
3698 #define _FILE_OFFSET_BITS 64
3699 #include <sys/types.h>
3700 /* Check that off_t can represent 2**63 - 1 correctly.
3701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3702 since some C++ compilers masquerading as C compilers
3703 incorrectly reject 9223372036854775807. */
3704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3706 && LARGE_OFF_T % 2147483647 == 1)
3707 ? 1 : -1];
3708 int
3709 main ()
3710 {
3711
3712 ;
3713 return 0;
3714 }
3715 _ACEOF
3716 rm -f conftest.$ac_objext
3717 if { (eval echo "$as_me:3717: \"$ac_compile\"") >&5
3718 (eval $ac_compile) 2>&5
3719 ac_status=$?
3720 echo "$as_me:3720: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
3722 { ac_try='test -s conftest.$ac_objext'
3723 { (eval echo "$as_me:3723: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:3726: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 ac_cv_sys_file_offset_bits=64; break
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3732 fi
3733 rm -f conftest.$ac_objext conftest.$ac_ext
3734 break
3735 done
3736 fi
3737 echo "$as_me:3737: result: $ac_cv_sys_file_offset_bits" >&5
3738 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3739 if test "$ac_cv_sys_file_offset_bits" != no; then
3740
3741 cat >>confdefs.h <<EOF
3742 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3743 EOF
3744
3745 fi
3746 rm -f conftest*
3747 echo "$as_me:3747: checking for _LARGE_FILES value needed for large files" >&5
3748 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3749 if test "${ac_cv_sys_large_files+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 while :; do
3753 ac_cv_sys_large_files=no
3754 cat >conftest.$ac_ext <<_ACEOF
3755 #line 3755 "configure"
3756 #include "confdefs.h"
3757 #include <sys/types.h>
3758 /* Check that off_t can represent 2**63 - 1 correctly.
3759 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3760 since some C++ compilers masquerading as C compilers
3761 incorrectly reject 9223372036854775807. */
3762 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3763 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3764 && LARGE_OFF_T % 2147483647 == 1)
3765 ? 1 : -1];
3766 int
3767 main ()
3768 {
3769
3770 ;
3771 return 0;
3772 }
3773 _ACEOF
3774 rm -f conftest.$ac_objext
3775 if { (eval echo "$as_me:3775: \"$ac_compile\"") >&5
3776 (eval $ac_compile) 2>&5
3777 ac_status=$?
3778 echo "$as_me:3778: \$? = $ac_status" >&5
3779 (exit $ac_status); } &&
3780 { ac_try='test -s conftest.$ac_objext'
3781 { (eval echo "$as_me:3781: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:3784: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3786 break
3787 else
3788 echo "$as_me: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3790 fi
3791 rm -f conftest.$ac_objext conftest.$ac_ext
3792 cat >conftest.$ac_ext <<_ACEOF
3793 #line 3793 "configure"
3794 #include "confdefs.h"
3795 #define _LARGE_FILES 1
3796 #include <sys/types.h>
3797 /* Check that off_t can represent 2**63 - 1 correctly.
3798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3799 since some C++ compilers masquerading as C compilers
3800 incorrectly reject 9223372036854775807. */
3801 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3803 && LARGE_OFF_T % 2147483647 == 1)
3804 ? 1 : -1];
3805 int
3806 main ()
3807 {
3808
3809 ;
3810 return 0;
3811 }
3812 _ACEOF
3813 rm -f conftest.$ac_objext
3814 if { (eval echo "$as_me:3814: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>&5
3816 ac_status=$?
3817 echo "$as_me:3817: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -s conftest.$ac_objext'
3820 { (eval echo "$as_me:3820: \"$ac_try\"") >&5
3821 (eval $ac_try) 2>&5
3822 ac_status=$?
3823 echo "$as_me:3823: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 ac_cv_sys_large_files=1; break
3826 else
3827 echo "$as_me: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3829 fi
3830 rm -f conftest.$ac_objext conftest.$ac_ext
3831 break
3832 done
3833 fi
3834 echo "$as_me:3834: result: $ac_cv_sys_large_files" >&5
3835 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3836 if test "$ac_cv_sys_large_files" != no; then
3837
3838 cat >>confdefs.h <<EOF
3839 #define _LARGE_FILES $ac_cv_sys_large_files
3840 EOF
3841
3842 fi
3843 rm -f conftest*
3844 fi
3845
3846 # Sound support for GNU/Linux and the free BSDs.
3847
3848 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
3849 do
3850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851 echo "$as_me:3851: checking for $ac_header" >&5
3852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 cat >conftest.$ac_ext <<_ACEOF
3857 #line 3857 "configure"
3858 #include "confdefs.h"
3859 #include <$ac_header>
3860 _ACEOF
3861 if { (eval echo "$as_me:3861: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3863 ac_status=$?
3864 egrep -v '^ *\+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:3867: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev/null; then
3869 if test -s conftest.err; then
3870 ac_cpp_err=$ac_c_preproc_warn_flag
3871 else
3872 ac_cpp_err=
3873 fi
3874 else
3875 ac_cpp_err=yes
3876 fi
3877 if test -z "$ac_cpp_err"; then
3878 eval "$as_ac_Header=yes"
3879 else
3880 echo "$as_me: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 eval "$as_ac_Header=no"
3883 fi
3884 rm -f conftest.err conftest.$ac_ext
3885 fi
3886 echo "$as_me:3886: result: `eval echo '${'$as_ac_Header'}'`" >&5
3887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3889 cat >>confdefs.h <<EOF
3890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3891 EOF
3892
3893 fi
3894 done
3895
3896 # Emulation library used on NetBSD.
3897 echo "$as_me:3897: checking for _oss_ioctl in -lossaudio" >&5
3898 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3899 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902 ac_check_lib_save_LIBS=$LIBS
3903 LIBS="-lossaudio $LIBS"
3904 cat >conftest.$ac_ext <<_ACEOF
3905 #line 3905 "configure"
3906 #include "confdefs.h"
3907
3908 /* Override any gcc2 internal prototype to avoid an error. */
3909 #ifdef __cplusplus
3910 extern "C"
3911 #endif
3912 /* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3914 char _oss_ioctl ();
3915 int
3916 main ()
3917 {
3918 _oss_ioctl ();
3919 ;
3920 return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest.$ac_objext conftest$ac_exeext
3924 if { (eval echo "$as_me:3924: \"$ac_link\"") >&5
3925 (eval $ac_link) 2>&5
3926 ac_status=$?
3927 echo "$as_me:3927: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try='test -s conftest$ac_exeext'
3930 { (eval echo "$as_me:3930: \"$ac_try\"") >&5
3931 (eval $ac_try) 2>&5
3932 ac_status=$?
3933 echo "$as_me:3933: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 ac_cv_lib_ossaudio__oss_ioctl=yes
3936 else
3937 echo "$as_me: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3939 ac_cv_lib_ossaudio__oss_ioctl=no
3940 fi
3941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3942 LIBS=$ac_check_lib_save_LIBS
3943 fi
3944 echo "$as_me:3944: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3945 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3946 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3947 LIBSOUND=-lossaudio
3948 else
3949 LIBSOUND=
3950 fi
3951
3952 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
3953 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
3954 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
3955 do
3956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3957 echo "$as_me:3957: checking for $ac_header" >&5
3958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962 cat >conftest.$ac_ext <<_ACEOF
3963 #line 3963 "configure"
3964 #include "confdefs.h"
3965 #include <$ac_header>
3966 _ACEOF
3967 if { (eval echo "$as_me:3967: \"$ac_cpp conftest.$ac_ext\"") >&5
3968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3969 ac_status=$?
3970 egrep -v '^ *\+' conftest.er1 >conftest.err
3971 rm -f conftest.er1
3972 cat conftest.err >&5
3973 echo "$as_me:3973: \$? = $ac_status" >&5
3974 (exit $ac_status); } >/dev/null; then
3975 if test -s conftest.err; then
3976 ac_cpp_err=$ac_c_preproc_warn_flag
3977 else
3978 ac_cpp_err=
3979 fi
3980 else
3981 ac_cpp_err=yes
3982 fi
3983 if test -z "$ac_cpp_err"; then
3984 eval "$as_ac_Header=yes"
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3988 eval "$as_ac_Header=no"
3989 fi
3990 rm -f conftest.err conftest.$ac_ext
3991 fi
3992 echo "$as_me:3992: result: `eval echo '${'$as_ac_Header'}'`" >&5
3993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3995 cat >>confdefs.h <<EOF
3996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3997 EOF
3998
3999 fi
4000 done
4001
4002 echo "$as_me:4002: checking for ANSI C header files" >&5
4003 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4004 if test "${ac_cv_header_stdc+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 cat >conftest.$ac_ext <<_ACEOF
4008 #line 4008 "configure"
4009 #include "confdefs.h"
4010 #include <stdlib.h>
4011 #include <stdarg.h>
4012 #include <string.h>
4013 #include <float.h>
4014
4015 _ACEOF
4016 if { (eval echo "$as_me:4016: \"$ac_cpp conftest.$ac_ext\"") >&5
4017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4018 ac_status=$?
4019 egrep -v '^ *\+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 echo "$as_me:4022: \$? = $ac_status" >&5
4023 (exit $ac_status); } >/dev/null; then
4024 if test -s conftest.err; then
4025 ac_cpp_err=$ac_c_preproc_warn_flag
4026 else
4027 ac_cpp_err=
4028 fi
4029 else
4030 ac_cpp_err=yes
4031 fi
4032 if test -z "$ac_cpp_err"; then
4033 ac_cv_header_stdc=yes
4034 else
4035 echo "$as_me: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4037 ac_cv_header_stdc=no
4038 fi
4039 rm -f conftest.err conftest.$ac_ext
4040
4041 if test $ac_cv_header_stdc = yes; then
4042 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4043 cat >conftest.$ac_ext <<_ACEOF
4044 #line 4044 "configure"
4045 #include "confdefs.h"
4046 #include <string.h>
4047
4048 _ACEOF
4049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4050 egrep "memchr" >/dev/null 2>&1; then
4051 :
4052 else
4053 ac_cv_header_stdc=no
4054 fi
4055 rm -f conftest*
4056
4057 fi
4058
4059 if test $ac_cv_header_stdc = yes; then
4060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4061 cat >conftest.$ac_ext <<_ACEOF
4062 #line 4062 "configure"
4063 #include "confdefs.h"
4064 #include <stdlib.h>
4065
4066 _ACEOF
4067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4068 egrep "free" >/dev/null 2>&1; then
4069 :
4070 else
4071 ac_cv_header_stdc=no
4072 fi
4073 rm -f conftest*
4074
4075 fi
4076
4077 if test $ac_cv_header_stdc = yes; then
4078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4079 if test "$cross_compiling" = yes; then
4080 :
4081 else
4082 cat >conftest.$ac_ext <<_ACEOF
4083 #line 4083 "configure"
4084 #include "confdefs.h"
4085 #include <ctype.h>
4086 #if ((' ' & 0x0FF) == 0x020)
4087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4089 #else
4090 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4091 || ('j' <= (c) && (c) <= 'r') \
4092 || ('s' <= (c) && (c) <= 'z'))
4093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4094 #endif
4095
4096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4097 int
4098 main ()
4099 {
4100 int i;
4101 for (i = 0; i < 256; i++)
4102 if (XOR (islower (i), ISLOWER (i))
4103 || toupper (i) != TOUPPER (i))
4104 exit(2);
4105 exit (0);
4106 }
4107 _ACEOF
4108 rm -f conftest$ac_exeext
4109 if { (eval echo "$as_me:4109: \"$ac_link\"") >&5
4110 (eval $ac_link) 2>&5
4111 ac_status=$?
4112 echo "$as_me:4112: \$? = $ac_status" >&5
4113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4114 { (eval echo "$as_me:4114: \"$ac_try\"") >&5
4115 (eval $ac_try) 2>&5
4116 ac_status=$?
4117 echo "$as_me:4117: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 :
4120 else
4121 echo "$as_me: program exited with status $ac_status" >&5
4122 echo "$as_me: failed program was:" >&5
4123 cat conftest.$ac_ext >&5
4124 ac_cv_header_stdc=no
4125 fi
4126 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4127 fi
4128 fi
4129 fi
4130 echo "$as_me:4130: result: $ac_cv_header_stdc" >&5
4131 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4132 if test $ac_cv_header_stdc = yes; then
4133
4134 cat >>confdefs.h <<\EOF
4135 #define STDC_HEADERS 1
4136 EOF
4137
4138 fi
4139
4140 echo "$as_me:4140: checking whether time.h and sys/time.h may both be included" >&5
4141 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4142 if test "${ac_cv_header_time+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 cat >conftest.$ac_ext <<_ACEOF
4146 #line 4146 "configure"
4147 #include "confdefs.h"
4148 #include <sys/types.h>
4149 #include <sys/time.h>
4150 #include <time.h>
4151
4152 int
4153 main ()
4154 {
4155 if ((struct tm *) 0)
4156 return 0;
4157 ;
4158 return 0;
4159 }
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (eval echo "$as_me:4162: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>&5
4164 ac_status=$?
4165 echo "$as_me:4165: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -s conftest.$ac_objext'
4168 { (eval echo "$as_me:4168: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:4171: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 ac_cv_header_time=yes
4174 else
4175 echo "$as_me: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4177 ac_cv_header_time=no
4178 fi
4179 rm -f conftest.$ac_objext conftest.$ac_ext
4180 fi
4181 echo "$as_me:4181: result: $ac_cv_header_time" >&5
4182 echo "${ECHO_T}$ac_cv_header_time" >&6
4183 if test $ac_cv_header_time = yes; then
4184
4185 cat >>confdefs.h <<\EOF
4186 #define TIME_WITH_SYS_TIME 1
4187 EOF
4188
4189 fi
4190
4191 echo "$as_me:4191: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4192 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4193 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196 cat >conftest.$ac_ext <<_ACEOF
4197 #line 4197 "configure"
4198 #include "confdefs.h"
4199 #include <sys/types.h>
4200 #include <signal.h>
4201 /* NetBSD declares sys_siglist in unistd.h. */
4202 #if HAVE_UNISTD_H
4203 # include <unistd.h>
4204 #endif
4205
4206 int
4207 main ()
4208 {
4209 char *msg = *(sys_siglist + 1);
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (eval echo "$as_me:4215: \"$ac_compile\"") >&5
4216 (eval $ac_compile) 2>&5
4217 ac_status=$?
4218 echo "$as_me:4218: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -s conftest.$ac_objext'
4221 { (eval echo "$as_me:4221: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:4224: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 ac_cv_decl_sys_siglist=yes
4227 else
4228 echo "$as_me: failed program was:" >&5
4229 cat conftest.$ac_ext >&5
4230 ac_cv_decl_sys_siglist=no
4231 fi
4232 rm -f conftest.$ac_objext conftest.$ac_ext
4233 fi
4234 echo "$as_me:4234: result: $ac_cv_decl_sys_siglist" >&5
4235 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4236 if test $ac_cv_decl_sys_siglist = yes; then
4237
4238 cat >>confdefs.h <<\EOF
4239 #define SYS_SIGLIST_DECLARED 1
4240 EOF
4241
4242 fi
4243
4244 echo "$as_me:4244: checking for sys/wait.h that is POSIX.1 compatible" >&5
4245 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4246 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 cat >conftest.$ac_ext <<_ACEOF
4250 #line 4250 "configure"
4251 #include "confdefs.h"
4252 #include <sys/types.h>
4253 #include <sys/wait.h>
4254 #ifndef WEXITSTATUS
4255 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4256 #endif
4257 #ifndef WIFEXITED
4258 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4259 #endif
4260
4261 int
4262 main ()
4263 {
4264 int s;
4265 wait (&s);
4266 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:4272: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>&5
4274 ac_status=$?
4275 echo "$as_me:4275: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:4278: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:4281: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_cv_header_sys_wait_h=yes
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4287 ac_cv_header_sys_wait_h=no
4288 fi
4289 rm -f conftest.$ac_objext conftest.$ac_ext
4290 fi
4291 echo "$as_me:4291: result: $ac_cv_header_sys_wait_h" >&5
4292 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4293 if test $ac_cv_header_sys_wait_h = yes; then
4294
4295 cat >>confdefs.h <<\EOF
4296 #define HAVE_SYS_WAIT_H 1
4297 EOF
4298
4299 fi
4300
4301 echo "$as_me:4301: checking for struct utimbuf" >&5
4302 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4303 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306 cat >conftest.$ac_ext <<_ACEOF
4307 #line 4307 "configure"
4308 #include "confdefs.h"
4309 #ifdef TIME_WITH_SYS_TIME
4310 #include <sys/time.h>
4311 #include <time.h>
4312 #else
4313 #ifdef HAVE_SYS_TIME_H
4314 #include <sys/time.h>
4315 #else
4316 #include <time.h>
4317 #endif
4318 #endif
4319 #ifdef HAVE_UTIME_H
4320 #include <utime.h>
4321 #endif
4322 int
4323 main ()
4324 {
4325 static struct utimbuf x; x.actime = x.modtime;
4326 ;
4327 return 0;
4328 }
4329 _ACEOF
4330 rm -f conftest.$ac_objext
4331 if { (eval echo "$as_me:4331: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>&5
4333 ac_status=$?
4334 echo "$as_me:4334: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -s conftest.$ac_objext'
4337 { (eval echo "$as_me:4337: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:4340: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 emacs_cv_struct_utimbuf=yes
4343 else
4344 echo "$as_me: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4346 emacs_cv_struct_utimbuf=no
4347 fi
4348 rm -f conftest.$ac_objext conftest.$ac_ext
4349 fi
4350 echo "$as_me:4350: result: $emacs_cv_struct_utimbuf" >&5
4351 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4352 if test $emacs_cv_struct_utimbuf = yes; then
4353 cat >>confdefs.h <<\EOF
4354 #define HAVE_STRUCT_UTIMBUF 1
4355 EOF
4356
4357 fi
4358
4359 echo "$as_me:4359: checking return type of signal handlers" >&5
4360 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4361 if test "${ac_cv_type_signal+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364 cat >conftest.$ac_ext <<_ACEOF
4365 #line 4365 "configure"
4366 #include "confdefs.h"
4367 #include <sys/types.h>
4368 #include <signal.h>
4369 #ifdef signal
4370 # undef signal
4371 #endif
4372 #ifdef __cplusplus
4373 extern "C" void (*signal (int, void (*)(int)))(int);
4374 #else
4375 void (*signal ()) ();
4376 #endif
4377
4378 int
4379 main ()
4380 {
4381 int i;
4382 ;
4383 return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:4387: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4389 ac_status=$?
4390 echo "$as_me:4390: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:4393: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:4396: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 ac_cv_type_signal=void
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4402 ac_cv_type_signal=int
4403 fi
4404 rm -f conftest.$ac_objext conftest.$ac_ext
4405 fi
4406 echo "$as_me:4406: result: $ac_cv_type_signal" >&5
4407 echo "${ECHO_T}$ac_cv_type_signal" >&6
4408
4409 cat >>confdefs.h <<EOF
4410 #define RETSIGTYPE $ac_cv_type_signal
4411 EOF
4412
4413 echo "$as_me:4413: checking for speed_t" >&5
4414 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4415 if test "${emacs_cv_speed_t+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 cat >conftest.$ac_ext <<_ACEOF
4419 #line 4419 "configure"
4420 #include "confdefs.h"
4421 #include <termios.h>
4422 int
4423 main ()
4424 {
4425 speed_t x = 1;
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 rm -f conftest.$ac_objext
4431 if { (eval echo "$as_me:4431: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>&5
4433 ac_status=$?
4434 echo "$as_me:4434: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:4437: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:4440: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 emacs_cv_speed_t=yes
4443 else
4444 echo "$as_me: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4446 emacs_cv_speed_t=no
4447 fi
4448 rm -f conftest.$ac_objext conftest.$ac_ext
4449 fi
4450 echo "$as_me:4450: result: $emacs_cv_speed_t" >&5
4451 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4452 if test $emacs_cv_speed_t = yes; then
4453 cat >>confdefs.h <<\EOF
4454 #define HAVE_SPEED_T 1
4455 EOF
4456
4457 fi
4458
4459 echo "$as_me:4459: checking for struct timeval" >&5
4460 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4461 if test "${emacs_cv_struct_timeval+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 cat >conftest.$ac_ext <<_ACEOF
4465 #line 4465 "configure"
4466 #include "confdefs.h"
4467 #ifdef TIME_WITH_SYS_TIME
4468 #include <sys/time.h>
4469 #include <time.h>
4470 #else
4471 #ifdef HAVE_SYS_TIME_H
4472 #include <sys/time.h>
4473 #else
4474 #include <time.h>
4475 #endif
4476 #endif
4477 int
4478 main ()
4479 {
4480 static struct timeval x; x.tv_sec = x.tv_usec;
4481 ;
4482 return 0;
4483 }
4484 _ACEOF
4485 rm -f conftest.$ac_objext
4486 if { (eval echo "$as_me:4486: \"$ac_compile\"") >&5
4487 (eval $ac_compile) 2>&5
4488 ac_status=$?
4489 echo "$as_me:4489: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -s conftest.$ac_objext'
4492 { (eval echo "$as_me:4492: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:4495: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 emacs_cv_struct_timeval=yes
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 cat conftest.$ac_ext >&5
4501 emacs_cv_struct_timeval=no
4502 fi
4503 rm -f conftest.$ac_objext conftest.$ac_ext
4504 fi
4505 echo "$as_me:4505: result: $emacs_cv_struct_timeval" >&5
4506 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4507 HAVE_TIMEVAL=$emacs_cv_struct_timeval
4508 if test $emacs_cv_struct_timeval = yes; then
4509 cat >>confdefs.h <<\EOF
4510 #define HAVE_TIMEVAL 1
4511 EOF
4512
4513 fi
4514
4515 echo "$as_me:4515: checking for struct exception" >&5
4516 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4517 if test "${emacs_cv_struct_exception+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 cat >conftest.$ac_ext <<_ACEOF
4521 #line 4521 "configure"
4522 #include "confdefs.h"
4523 #include <math.h>
4524 int
4525 main ()
4526 {
4527 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4528 ;
4529 return 0;
4530 }
4531 _ACEOF
4532 rm -f conftest.$ac_objext
4533 if { (eval echo "$as_me:4533: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>&5
4535 ac_status=$?
4536 echo "$as_me:4536: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -s conftest.$ac_objext'
4539 { (eval echo "$as_me:4539: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:4542: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 emacs_cv_struct_exception=yes
4545 else
4546 echo "$as_me: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4548 emacs_cv_struct_exception=no
4549 fi
4550 rm -f conftest.$ac_objext conftest.$ac_ext
4551 fi
4552 echo "$as_me:4552: result: $emacs_cv_struct_exception" >&5
4553 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4554 HAVE_EXCEPTION=$emacs_cv_struct_exception
4555 if test $emacs_cv_struct_exception != yes; then
4556 cat >>confdefs.h <<\EOF
4557 #define NO_MATHERR 1
4558 EOF
4559
4560 fi
4561
4562 echo "$as_me:4562: checking whether struct tm is in sys/time.h or time.h" >&5
4563 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4564 if test "${ac_cv_struct_tm+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567 cat >conftest.$ac_ext <<_ACEOF
4568 #line 4568 "configure"
4569 #include "confdefs.h"
4570 #include <sys/types.h>
4571 #include <time.h>
4572
4573 int
4574 main ()
4575 {
4576 struct tm *tp; tp->tm_sec;
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:4582: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>&5
4584 ac_status=$?
4585 echo "$as_me:4585: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -s conftest.$ac_objext'
4588 { (eval echo "$as_me:4588: \"$ac_try\"") >&5
4589 (eval $ac_try) 2>&5
4590 ac_status=$?
4591 echo "$as_me:4591: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4593 ac_cv_struct_tm=time.h
4594 else
4595 echo "$as_me: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4597 ac_cv_struct_tm=sys/time.h
4598 fi
4599 rm -f conftest.$ac_objext conftest.$ac_ext
4600 fi
4601 echo "$as_me:4601: result: $ac_cv_struct_tm" >&5
4602 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4603 if test $ac_cv_struct_tm = sys/time.h; then
4604
4605 cat >>confdefs.h <<\EOF
4606 #define TM_IN_SYS_TIME 1
4607 EOF
4608
4609 fi
4610
4611 echo "$as_me:4611: checking for struct tm.tm_zone" >&5
4612 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4613 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616 cat >conftest.$ac_ext <<_ACEOF
4617 #line 4617 "configure"
4618 #include "confdefs.h"
4619 #include <sys/types.h>
4620 #include <$ac_cv_struct_tm>
4621
4622 int
4623 main ()
4624 {
4625 static struct tm ac_aggr;
4626 if (ac_aggr.tm_zone)
4627 return 0;
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 rm -f conftest.$ac_objext
4633 if { (eval echo "$as_me:4633: \"$ac_compile\"") >&5
4634 (eval $ac_compile) 2>&5
4635 ac_status=$?
4636 echo "$as_me:4636: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:4639: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:4642: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_cv_member_struct_tm_tm_zone=yes
4645 else
4646 echo "$as_me: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4648 ac_cv_member_struct_tm_tm_zone=no
4649 fi
4650 rm -f conftest.$ac_objext conftest.$ac_ext
4651 fi
4652 echo "$as_me:4652: result: $ac_cv_member_struct_tm_tm_zone" >&5
4653 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4654 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4655
4656 cat >>confdefs.h <<EOF
4657 #define HAVE_STRUCT_TM_TM_ZONE 1
4658 EOF
4659
4660 fi
4661
4662 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4663
4664 cat >>confdefs.h <<\EOF
4665 #define HAVE_TM_ZONE 1
4666 EOF
4667
4668 else
4669 echo "$as_me:4669: checking for tzname" >&5
4670 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4671 if test "${ac_cv_var_tzname+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674 cat >conftest.$ac_ext <<_ACEOF
4675 #line 4675 "configure"
4676 #include "confdefs.h"
4677 #include <time.h>
4678 #ifndef tzname /* For SGI. */
4679 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4680 #endif
4681
4682 int
4683 main ()
4684 {
4685 atoi(*tzname);
4686 ;
4687 return 0;
4688 }
4689 _ACEOF
4690 rm -f conftest.$ac_objext conftest$ac_exeext
4691 if { (eval echo "$as_me:4691: \"$ac_link\"") >&5
4692 (eval $ac_link) 2>&5
4693 ac_status=$?
4694 echo "$as_me:4694: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try='test -s conftest$ac_exeext'
4697 { (eval echo "$as_me:4697: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:4700: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 ac_cv_var_tzname=yes
4703 else
4704 echo "$as_me: failed program was:" >&5
4705 cat conftest.$ac_ext >&5
4706 ac_cv_var_tzname=no
4707 fi
4708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4709 fi
4710 echo "$as_me:4710: result: $ac_cv_var_tzname" >&5
4711 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4712 if test $ac_cv_var_tzname = yes; then
4713
4714 cat >>confdefs.h <<\EOF
4715 #define HAVE_TZNAME 1
4716 EOF
4717
4718 fi
4719 fi
4720
4721 echo "$as_me:4721: checking for tm_gmtoff in struct tm" >&5
4722 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
4723 if test "${emacs_cv_tm_gmtoff+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726 cat >conftest.$ac_ext <<_ACEOF
4727 #line 4727 "configure"
4728 #include "confdefs.h"
4729 #include <time.h>
4730 int
4731 main ()
4732 {
4733 struct tm t; t.tm_gmtoff = 0
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 rm -f conftest.$ac_objext conftest$ac_exeext
4739 if { (eval echo "$as_me:4739: \"$ac_link\"") >&5
4740 (eval $ac_link) 2>&5
4741 ac_status=$?
4742 echo "$as_me:4742: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -s conftest$ac_exeext'
4745 { (eval echo "$as_me:4745: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4750 emacs_cv_tm_gmtoff=yes
4751 else
4752 echo "$as_me: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4754 emacs_cv_tm_gmtoff=no
4755 fi
4756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4757 fi
4758 echo "$as_me:4758: result: $emacs_cv_tm_gmtoff" >&5
4759 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
4760 if test $emacs_cv_tm_gmtoff = yes; then
4761 cat >>confdefs.h <<\EOF
4762 #define HAVE_TM_GMTOFF 1
4763 EOF
4764
4765 fi
4766
4767 echo "$as_me:4767: checking for $CC option to accept ANSI C" >&5
4768 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4769 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772 ac_cv_prog_cc_stdc=no
4773 ac_save_CC=$CC
4774 cat >conftest.$ac_ext <<_ACEOF
4775 #line 4775 "configure"
4776 #include "confdefs.h"
4777 #include <stdarg.h>
4778 #include <stdio.h>
4779 #include <sys/types.h>
4780 #include <sys/stat.h>
4781 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4782 struct buf { int x; };
4783 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4784 static char *e (p, i)
4785 char **p;
4786 int i;
4787 {
4788 return p[i];
4789 }
4790 static char *f (char * (*g) (char **, int), char **p, ...)
4791 {
4792 char *s;
4793 va_list v;
4794 va_start (v,p);
4795 s = g (p, va_arg (v,int));
4796 va_end (v);
4797 return s;
4798 }
4799 int test (int i, double x);
4800 struct s1 {int (*f) (int a);};
4801 struct s2 {int (*f) (double a);};
4802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4803 int argc;
4804 char **argv;
4805 int
4806 main ()
4807 {
4808 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4809 ;
4810 return 0;
4811 }
4812 _ACEOF
4813 # Don't try gcc -ansi; that turns off useful extensions and
4814 # breaks some systems' header files.
4815 # AIX -qlanglvl=ansi
4816 # Ultrix and OSF/1 -std1
4817 # HP-UX 10.20 and later -Ae
4818 # HP-UX older versions -Aa -D_HPUX_SOURCE
4819 # SVR4 -Xc -D__EXTENSIONS__
4820 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4821 do
4822 CC="$ac_save_CC $ac_arg"
4823 rm -f conftest.$ac_objext
4824 if { (eval echo "$as_me:4824: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>&5
4826 ac_status=$?
4827 echo "$as_me:4827: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try='test -s conftest.$ac_objext'
4830 { (eval echo "$as_me:4830: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:4833: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4835 ac_cv_prog_cc_stdc=$ac_arg
4836 break
4837 else
4838 echo "$as_me: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4840 fi
4841 rm -f conftest.$ac_objext
4842 done
4843 rm -f conftest.$ac_ext conftest.$ac_objext
4844 CC=$ac_save_CC
4845
4846 fi
4847
4848 case "x$ac_cv_prog_cc_stdc" in
4849 x|xno)
4850 echo "$as_me:4850: result: none needed" >&5
4851 echo "${ECHO_T}none needed" >&6 ;;
4852 *)
4853 echo "$as_me:4853: result: $ac_cv_prog_cc_stdc" >&5
4854 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4855 CC="$CC $ac_cv_prog_cc_stdc" ;;
4856 esac
4857
4858 echo "$as_me:4858: checking for function prototypes" >&5
4859 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4860 if test "$ac_cv_prog_cc_stdc" != no; then
4861 echo "$as_me:4861: result: yes" >&5
4862 echo "${ECHO_T}yes" >&6
4863
4864 cat >>confdefs.h <<\EOF
4865 #define PROTOTYPES 1
4866 EOF
4867
4868 else
4869 echo "$as_me:4869: result: no" >&5
4870 echo "${ECHO_T}no" >&6
4871 fi
4872
4873 echo "$as_me:4873: checking for working volatile" >&5
4874 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4875 if test "${ac_cv_c_volatile+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878 cat >conftest.$ac_ext <<_ACEOF
4879 #line 4879 "configure"
4880 #include "confdefs.h"
4881
4882 int
4883 main ()
4884 {
4885
4886 volatile int x;
4887 int * volatile y;
4888 ;
4889 return 0;
4890 }
4891 _ACEOF
4892 rm -f conftest.$ac_objext
4893 if { (eval echo "$as_me:4893: \"$ac_compile\"") >&5
4894 (eval $ac_compile) 2>&5
4895 ac_status=$?
4896 echo "$as_me:4896: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:4899: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:4902: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_c_volatile=yes
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4908 ac_cv_c_volatile=no
4909 fi
4910 rm -f conftest.$ac_objext conftest.$ac_ext
4911 fi
4912 echo "$as_me:4912: result: $ac_cv_c_volatile" >&5
4913 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4914 if test $ac_cv_c_volatile = no; then
4915
4916 cat >>confdefs.h <<\EOF
4917 #define volatile
4918 EOF
4919
4920 fi
4921
4922 echo "$as_me:4922: checking for an ANSI C-conforming const" >&5
4923 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4924 if test "${ac_cv_c_const+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927 cat >conftest.$ac_ext <<_ACEOF
4928 #line 4928 "configure"
4929 #include "confdefs.h"
4930
4931 int
4932 main ()
4933 {
4934 /* FIXME: Include the comments suggested by Paul. */
4935 #ifndef __cplusplus
4936 /* Ultrix mips cc rejects this. */
4937 typedef int charset[2];
4938 const charset x;
4939 /* SunOS 4.1.1 cc rejects this. */
4940 char const *const *ccp;
4941 char **p;
4942 /* NEC SVR4.0.2 mips cc rejects this. */
4943 struct point {int x, y;};
4944 static struct point const zero = {0,0};
4945 /* AIX XL C 1.02.0.0 rejects this.
4946 It does not let you subtract one const X* pointer from another in
4947 an arm of an if-expression whose if-part is not a constant
4948 expression */
4949 const char *g = "string";
4950 ccp = &g + (g ? g-g : 0);
4951 /* HPUX 7.0 cc rejects these. */
4952 ++ccp;
4953 p = (char**) ccp;
4954 ccp = (char const *const *) p;
4955 { /* SCO 3.2v4 cc rejects this. */
4956 char *t;
4957 char const *s = 0 ? (char *) 0 : (char const *) 0;
4958
4959 *t++ = 0;
4960 }
4961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4962 int x[] = {25, 17};
4963 const int *foo = &x[0];
4964 ++foo;
4965 }
4966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4967 typedef const int *iptr;
4968 iptr p = 0;
4969 ++p;
4970 }
4971 { /* AIX XL C 1.02.0.0 rejects this saying
4972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4973 struct s { int j; const int *ap[3]; };
4974 struct s *b; b->j = 5;
4975 }
4976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4977 const int foo = 10;
4978 }
4979 #endif
4980
4981 ;
4982 return 0;
4983 }
4984 _ACEOF
4985 rm -f conftest.$ac_objext
4986 if { (eval echo "$as_me:4986: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>&5
4988 ac_status=$?
4989 echo "$as_me:4989: \$? = $ac_status" >&5
4990 (exit $ac_status); } &&
4991 { ac_try='test -s conftest.$ac_objext'
4992 { (eval echo "$as_me:4992: \"$ac_try\"") >&5
4993 (eval $ac_try) 2>&5
4994 ac_status=$?
4995 echo "$as_me:4995: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4997 ac_cv_c_const=yes
4998 else
4999 echo "$as_me: failed program was:" >&5
5000 cat conftest.$ac_ext >&5
5001 ac_cv_c_const=no
5002 fi
5003 rm -f conftest.$ac_objext conftest.$ac_ext
5004 fi
5005 echo "$as_me:5005: result: $ac_cv_c_const" >&5
5006 echo "${ECHO_T}$ac_cv_c_const" >&6
5007 if test $ac_cv_c_const = no; then
5008
5009 cat >>confdefs.h <<\EOF
5010 #define const
5011 EOF
5012
5013 fi
5014
5015 echo "$as_me:5015: checking for void * support" >&5
5016 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5017 if test "${emacs_cv_void_star+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 cat >conftest.$ac_ext <<_ACEOF
5021 #line 5021 "configure"
5022 #include "confdefs.h"
5023
5024 int
5025 main ()
5026 {
5027 void * foo;
5028 ;
5029 return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest.$ac_objext
5033 if { (eval echo "$as_me:5033: \"$ac_compile\"") >&5
5034 (eval $ac_compile) 2>&5
5035 ac_status=$?
5036 echo "$as_me:5036: \$? = $ac_status" >&5
5037 (exit $ac_status); } &&
5038 { ac_try='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:5039: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:5042: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 emacs_cv_void_star=yes
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5048 emacs_cv_void_star=no
5049 fi
5050 rm -f conftest.$ac_objext conftest.$ac_ext
5051 fi
5052 echo "$as_me:5052: result: $emacs_cv_void_star" >&5
5053 echo "${ECHO_T}$emacs_cv_void_star" >&6
5054 if test $emacs_cv_void_star = yes; then
5055 cat >>confdefs.h <<\EOF
5056 #define POINTER_TYPE void
5057 EOF
5058
5059 else
5060 cat >>confdefs.h <<\EOF
5061 #define POINTER_TYPE char
5062 EOF
5063
5064 fi
5065
5066 echo "$as_me:5066: checking whether ${MAKE-make} sets \${MAKE}" >&5
5067 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5068 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5069 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 cat >conftest.make <<\EOF
5073 all:
5074 @echo 'ac_maketemp="${MAKE}"'
5075 EOF
5076 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5077 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5078 if test -n "$ac_maketemp"; then
5079 eval ac_cv_prog_make_${ac_make}_set=yes
5080 else
5081 eval ac_cv_prog_make_${ac_make}_set=no
5082 fi
5083 rm -f conftest.make
5084 fi
5085 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5086 echo "$as_me:5086: result: yes" >&5
5087 echo "${ECHO_T}yes" >&6
5088 SET_MAKE=
5089 else
5090 echo "$as_me:5090: result: no" >&5
5091 echo "${ECHO_T}no" >&6
5092 SET_MAKE="MAKE=${MAKE-make}"
5093 fi
5094
5095 echo "$as_me:5095: checking for long file names" >&5
5096 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5097 if test "${ac_cv_sys_long_file_names+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100 ac_cv_sys_long_file_names=yes
5101 # Test for long file names in all the places we know might matter:
5102 # . the current directory, where building will happen
5103 # $prefix/lib where we will be installing things
5104 # $exec_prefix/lib likewise
5105 # eval it to expand exec_prefix.
5106 # $TMPDIR if set, where it might want to write temporary files
5107 # if $TMPDIR is not set:
5108 # /tmp where it might want to write temporary files
5109 # /var/tmp likewise
5110 # /usr/tmp likewise
5111 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5112 ac_tmpdirs=$TMPDIR
5113 else
5114 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5115 fi
5116 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5117 test -d $ac_dir || continue
5118 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5119 ac_xdir=$ac_dir/cf$$
5120 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
5121 ac_tf1=$ac_xdir/conftest9012345
5122 ac_tf2=$ac_xdir/conftest9012346
5123 (echo 1 >$ac_tf1) 2>/dev/null
5124 (echo 2 >$ac_tf2) 2>/dev/null
5125 ac_val=`cat $ac_tf1 2>/dev/null`
5126 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
5127 ac_cv_sys_long_file_names=no
5128 rm -rf $ac_xdir 2>/dev/null
5129 break
5130 fi
5131 rm -rf $ac_xdir 2>/dev/null
5132 done
5133 fi
5134 echo "$as_me:5134: result: $ac_cv_sys_long_file_names" >&5
5135 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5136 if test $ac_cv_sys_long_file_names = yes; then
5137
5138 cat >>confdefs.h <<\EOF
5139 #define HAVE_LONG_FILE_NAMES 1
5140 EOF
5141
5142 fi
5143
5144 #### Choose a window system.
5145
5146 echo "$as_me:5146: checking for X" >&5
5147 echo $ECHO_N "checking for X... $ECHO_C" >&6
5148
5149 # Check whether --with-x or --without-x was given.
5150 if test "${with_x+set}" = set; then
5151 withval="$with_x"
5152
5153 fi;
5154 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5155 if test "x$with_x" = xno; then
5156 # The user explicitly disabled X.
5157 have_x=disabled
5158 else
5159 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5160 # Both variables are already set.
5161 have_x=yes
5162 else
5163 if test "${ac_cv_have_x+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 # One or both of the vars are not set, and there is no cached value.
5167 ac_x_includes=no ac_x_libraries=no
5168 rm -fr conftest.dir
5169 if mkdir conftest.dir; then
5170 cd conftest.dir
5171 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5172 cat >Imakefile <<'EOF'
5173 acfindx:
5174 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5175 EOF
5176 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5177 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5178 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5179 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5180 for ac_extension in a so sl; do
5181 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5182 test -f $ac_im_libdir/libX11.$ac_extension; then
5183 ac_im_usrlibdir=$ac_im_libdir; break
5184 fi
5185 done
5186 # Screen out bogus values from the imake configuration. They are
5187 # bogus both because they are the default anyway, and because
5188 # using them would break gcc on systems where it needs fixed includes.
5189 case $ac_im_incroot in
5190 /usr/include) ;;
5191 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5192 esac
5193 case $ac_im_usrlibdir in
5194 /usr/lib | /lib) ;;
5195 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5196 esac
5197 fi
5198 cd ..
5199 rm -fr conftest.dir
5200 fi
5201
5202 # Standard set of common directories for X headers.
5203 # Check X11 before X11Rn because it is often a symlink to the current release.
5204 ac_x_header_dirs='
5205 /usr/X11/include
5206 /usr/X11R6/include
5207 /usr/X11R5/include
5208 /usr/X11R4/include
5209
5210 /usr/include/X11
5211 /usr/include/X11R6
5212 /usr/include/X11R5
5213 /usr/include/X11R4
5214
5215 /usr/local/X11/include
5216 /usr/local/X11R6/include
5217 /usr/local/X11R5/include
5218 /usr/local/X11R4/include
5219
5220 /usr/local/include/X11
5221 /usr/local/include/X11R6
5222 /usr/local/include/X11R5
5223 /usr/local/include/X11R4
5224
5225 /usr/X386/include
5226 /usr/x386/include
5227 /usr/XFree86/include/X11
5228
5229 /usr/include
5230 /usr/local/include
5231 /usr/unsupported/include
5232 /usr/athena/include
5233 /usr/local/x11r5/include
5234 /usr/lpp/Xamples/include
5235
5236 /usr/openwin/include
5237 /usr/openwin/share/include'
5238
5239 if test "$ac_x_includes" = no; then
5240 # Guess where to find include files, by looking for Intrinsic.h.
5241 # First, try using that file with no special directory specified.
5242 cat >conftest.$ac_ext <<_ACEOF
5243 #line 5243 "configure"
5244 #include "confdefs.h"
5245 #include <X11/Intrinsic.h>
5246 _ACEOF
5247 if { (eval echo "$as_me:5247: \"$ac_cpp conftest.$ac_ext\"") >&5
5248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5249 ac_status=$?
5250 egrep -v '^ *\+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:5253: \$? = $ac_status" >&5
5254 (exit $ac_status); } >/dev/null; then
5255 if test -s conftest.err; then
5256 ac_cpp_err=$ac_c_preproc_warn_flag
5257 else
5258 ac_cpp_err=
5259 fi
5260 else
5261 ac_cpp_err=yes
5262 fi
5263 if test -z "$ac_cpp_err"; then
5264 # We can compile using X headers with no special include directory.
5265 ac_x_includes=
5266 else
5267 echo "$as_me: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5269 for ac_dir in $ac_x_header_dirs; do
5270 if test -r "$ac_dir/X11/Intrinsic.h"; then
5271 ac_x_includes=$ac_dir
5272 break
5273 fi
5274 done
5275 fi
5276 rm -f conftest.err conftest.$ac_ext
5277 fi # $ac_x_includes = no
5278
5279 if test "$ac_x_libraries" = no; then
5280 # Check for the libraries.
5281 # See if we find them without any special options.
5282 # Don't add to $LIBS permanently.
5283 ac_save_LIBS=$LIBS
5284 LIBS="-lXt $LIBS"
5285 cat >conftest.$ac_ext <<_ACEOF
5286 #line 5286 "configure"
5287 #include "confdefs.h"
5288 #include <X11/Intrinsic.h>
5289 int
5290 main ()
5291 {
5292 XtMalloc (0)
5293 ;
5294 return 0;
5295 }
5296 _ACEOF
5297 rm -f conftest.$ac_objext conftest$ac_exeext
5298 if { (eval echo "$as_me:5298: \"$ac_link\"") >&5
5299 (eval $ac_link) 2>&5
5300 ac_status=$?
5301 echo "$as_me:5301: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -s conftest$ac_exeext'
5304 { (eval echo "$as_me:5304: \"$ac_try\"") >&5
5305 (eval $ac_try) 2>&5
5306 ac_status=$?
5307 echo "$as_me:5307: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5309 LIBS=$ac_save_LIBS
5310 # We can link X programs with no special library path.
5311 ac_x_libraries=
5312 else
5313 echo "$as_me: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5315 LIBS=$ac_save_LIBS
5316 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5317 do
5318 # Don't even attempt the hair of trying to link an X program!
5319 for ac_extension in a so sl; do
5320 if test -r $ac_dir/libXt.$ac_extension; then
5321 ac_x_libraries=$ac_dir
5322 break 2
5323 fi
5324 done
5325 done
5326 fi
5327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328 fi # $ac_x_libraries = no
5329
5330 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5331 # Didn't find X anywhere. Cache the known absence of X.
5332 ac_cv_have_x="have_x=no"
5333 else
5334 # Record where we found X for the cache.
5335 ac_cv_have_x="have_x=yes \
5336 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5337 fi
5338 fi
5339
5340 fi
5341 eval "$ac_cv_have_x"
5342 fi # $with_x != no
5343
5344 if test "$have_x" != yes; then
5345 echo "$as_me:5345: result: $have_x" >&5
5346 echo "${ECHO_T}$have_x" >&6
5347 no_x=yes
5348 else
5349 # If each of the values was on the command line, it overrides each guess.
5350 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5351 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5352 # Update the cache value to reflect the command line values.
5353 ac_cv_have_x="have_x=yes \
5354 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5355 echo "$as_me:5355: result: libraries $x_libraries, headers $x_includes" >&5
5356 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5357 fi
5358
5359 if test "$no_x" = yes; then
5360 window_system=none
5361 else
5362 window_system=x11
5363 fi
5364
5365 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
5366 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5367 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5368 x_default_search_path=""
5369 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5370 x_search_path="\
5371 ${x_library}/X11/%L/%T/%N%C%S:\
5372 ${x_library}/X11/%l/%T/%N%C%S:\
5373 ${x_library}/X11/%T/%N%C%S:\
5374 ${x_library}/X11/%L/%T/%N%S:\
5375 ${x_library}/X11/%l/%T/%N%S:\
5376 ${x_library}/X11/%T/%N%S"
5377 if test x"${x_default_search_path}" = x; then
5378 x_default_search_path=${x_search_path}
5379 else
5380 x_default_search_path="${x_search_path}:${x_default_search_path}"
5381 fi
5382 done
5383 fi
5384 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
5385 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5386 fi
5387
5388 if test x"${x_includes}" = x; then
5389 bitmapdir=/usr/include/X11/bitmaps
5390 else
5391 # accumulate include directories that have X11 bitmap subdirectories
5392 bmd_acc="dummyval"
5393 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5394 if test -d "${bmd}/X11/bitmaps"; then
5395 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
5396 fi
5397 if test -d "${bmd}/bitmaps"; then
5398 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
5399 fi
5400 done
5401 if test ${bmd_acc} != "dummyval"; then
5402 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5403 fi
5404 fi
5405
5406 case "${window_system}" in
5407 x11 )
5408 HAVE_X_WINDOWS=yes
5409 HAVE_X11=yes
5410 case "${with_x_toolkit}" in
5411 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
5412 motif ) USE_X_TOOLKIT=MOTIF ;;
5413 no ) USE_X_TOOLKIT=none ;;
5414 * ) USE_X_TOOLKIT=maybe ;;
5415 esac
5416 ;;
5417 none )
5418 HAVE_X_WINDOWS=no
5419 HAVE_X11=no
5420 USE_X_TOOLKIT=none
5421 ;;
5422 esac
5423
5424 ### If we're using X11, we should use the X menu package.
5425 HAVE_MENUS=no
5426 case ${HAVE_X11} in
5427 yes ) HAVE_MENUS=yes ;;
5428 esac
5429
5430 if test "${opsys}" = "hpux9"; then
5431 case "${x_libraries}" in
5432 *X11R4* )
5433 opsysfile="s/hpux9-x11r4.h"
5434 ;;
5435 esac
5436 fi
5437
5438 if test "${opsys}" = "hpux9shr"; then
5439 case "${x_libraries}" in
5440 *X11R4* )
5441 opsysfile="s/hpux9shxr4.h"
5442 ;;
5443 esac
5444 fi
5445
5446 ### Compute the unexec source name from the object name.
5447 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
5448
5449 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5450 # Assume not, until told otherwise.
5451 GNU_MALLOC=yes
5452 doug_lea_malloc=yes
5453 echo "$as_me:5453: checking for malloc_get_state" >&5
5454 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5455 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458 cat >conftest.$ac_ext <<_ACEOF
5459 #line 5459 "configure"
5460 #include "confdefs.h"
5461 /* System header to define __stub macros and hopefully few prototypes,
5462 which can conflict with char malloc_get_state (); below. */
5463 #include <assert.h>
5464 /* Override any gcc2 internal prototype to avoid an error. */
5465 #ifdef __cplusplus
5466 extern "C"
5467 #endif
5468 /* We use char because int might match the return type of a gcc2
5469 builtin and then its argument prototype would still apply. */
5470 char malloc_get_state ();
5471 char (*f) ();
5472
5473 int
5474 main ()
5475 {
5476 /* The GNU C library defines this for functions which it implements
5477 to always fail with ENOSYS. Some functions are actually named
5478 something starting with __ and the normal name is an alias. */
5479 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5480 choke me
5481 #else
5482 f = malloc_get_state;
5483 #endif
5484
5485 ;
5486 return 0;
5487 }
5488 _ACEOF
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (eval echo "$as_me:5490: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>&5
5492 ac_status=$?
5493 echo "$as_me:5493: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -s conftest$ac_exeext'
5496 { (eval echo "$as_me:5496: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:5499: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_cv_func_malloc_get_state=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5505 ac_cv_func_malloc_get_state=no
5506 fi
5507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5508 fi
5509 echo "$as_me:5509: result: $ac_cv_func_malloc_get_state" >&5
5510 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5511 if test $ac_cv_func_malloc_get_state = yes; then
5512 :
5513 else
5514 doug_lea_malloc=no
5515 fi
5516
5517 echo "$as_me:5517: checking for malloc_set_state" >&5
5518 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5519 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 cat >conftest.$ac_ext <<_ACEOF
5523 #line 5523 "configure"
5524 #include "confdefs.h"
5525 /* System header to define __stub macros and hopefully few prototypes,
5526 which can conflict with char malloc_set_state (); below. */
5527 #include <assert.h>
5528 /* Override any gcc2 internal prototype to avoid an error. */
5529 #ifdef __cplusplus
5530 extern "C"
5531 #endif
5532 /* We use char because int might match the return type of a gcc2
5533 builtin and then its argument prototype would still apply. */
5534 char malloc_set_state ();
5535 char (*f) ();
5536
5537 int
5538 main ()
5539 {
5540 /* The GNU C library defines this for functions which it implements
5541 to always fail with ENOSYS. Some functions are actually named
5542 something starting with __ and the normal name is an alias. */
5543 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5544 choke me
5545 #else
5546 f = malloc_set_state;
5547 #endif
5548
5549 ;
5550 return 0;
5551 }
5552 _ACEOF
5553 rm -f conftest.$ac_objext conftest$ac_exeext
5554 if { (eval echo "$as_me:5554: \"$ac_link\"") >&5
5555 (eval $ac_link) 2>&5
5556 ac_status=$?
5557 echo "$as_me:5557: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -s conftest$ac_exeext'
5560 { (eval echo "$as_me:5560: \"$ac_try\"") >&5
5561 (eval $ac_try) 2>&5
5562 ac_status=$?
5563 echo "$as_me:5563: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5565 ac_cv_func_malloc_set_state=yes
5566 else
5567 echo "$as_me: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5569 ac_cv_func_malloc_set_state=no
5570 fi
5571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5572 fi
5573 echo "$as_me:5573: result: $ac_cv_func_malloc_set_state" >&5
5574 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5575 if test $ac_cv_func_malloc_set_state = yes; then
5576 :
5577 else
5578 doug_lea_malloc=no
5579 fi
5580
5581 echo "$as_me:5581: checking whether __after_morecore_hook exists" >&5
5582 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5583 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 else
5586 cat >conftest.$ac_ext <<_ACEOF
5587 #line 5587 "configure"
5588 #include "confdefs.h"
5589 extern void (* __after_morecore_hook)();
5590 int
5591 main ()
5592 {
5593 __after_morecore_hook = 0
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest.$ac_objext conftest$ac_exeext
5599 if { (eval echo "$as_me:5599: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>&5
5601 ac_status=$?
5602 echo "$as_me:5602: \$? = $ac_status" >&5
5603 (exit $ac_status); } &&
5604 { ac_try='test -s conftest$ac_exeext'
5605 { (eval echo "$as_me:5605: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:5608: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 emacs_cv_var___after_morecore_hook=yes
5611 else
5612 echo "$as_me: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5614 emacs_cv_var___after_morecore_hook=no
5615 fi
5616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5617 fi
5618 echo "$as_me:5618: result: $emacs_cv_var___after_morecore_hook" >&5
5619 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5620 if test $emacs_cv_var___after_morecore_hook = no; then
5621 doug_lea_malloc=no
5622 fi
5623 if test "${system_malloc}" = "yes"; then
5624 GNU_MALLOC=no
5625 GNU_MALLOC_reason="
5626 (The GNU allocators don't work with this system configuration.)"
5627 fi
5628 if test "$doug_lea_malloc" = "yes" ; then
5629 if test "$GNU_MALLOC" = yes ; then
5630 GNU_MALLOC_reason="
5631 (Using Doug Lea's new malloc from the GNU C Library.)"
5632 fi
5633 cat >>confdefs.h <<\EOF
5634 #define DOUG_LEA_MALLOC 1
5635 EOF
5636
5637 fi
5638
5639 if test x"${REL_ALLOC}" = x; then
5640 REL_ALLOC=${GNU_MALLOC}
5641 fi
5642
5643 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5644
5645 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5646 inttypes.h stdint.h unistd.h
5647 do
5648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5649 echo "$as_me:5649: checking for $ac_header" >&5
5650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line 5655 "configure"
5656 #include "confdefs.h"
5657 $ac_includes_default
5658 #include <$ac_header>
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:5661: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>&5
5663 ac_status=$?
5664 echo "$as_me:5664: \$? = $ac_status" >&5
5665 (exit $ac_status); } &&
5666 { ac_try='test -s conftest.$ac_objext'
5667 { (eval echo "$as_me:5667: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:5670: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 eval "$as_ac_Header=yes"
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 cat conftest.$ac_ext >&5
5676 eval "$as_ac_Header=no"
5677 fi
5678 rm -f conftest.$ac_objext conftest.$ac_ext
5679 fi
5680 echo "$as_me:5680: result: `eval echo '${'$as_ac_Header'}'`" >&5
5681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5683 cat >>confdefs.h <<EOF
5684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5685 EOF
5686
5687 fi
5688 done
5689
5690 for ac_header in stdlib.h unistd.h
5691 do
5692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5693 echo "$as_me:5693: checking for $ac_header" >&5
5694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698 cat >conftest.$ac_ext <<_ACEOF
5699 #line 5699 "configure"
5700 #include "confdefs.h"
5701 #include <$ac_header>
5702 _ACEOF
5703 if { (eval echo "$as_me:5703: \"$ac_cpp conftest.$ac_ext\"") >&5
5704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5705 ac_status=$?
5706 egrep -v '^ *\+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:5709: \$? = $ac_status" >&5
5710 (exit $ac_status); } >/dev/null; then
5711 if test -s conftest.err; then
5712 ac_cpp_err=$ac_c_preproc_warn_flag
5713 else
5714 ac_cpp_err=
5715 fi
5716 else
5717 ac_cpp_err=yes
5718 fi
5719 if test -z "$ac_cpp_err"; then
5720 eval "$as_ac_Header=yes"
5721 else
5722 echo "$as_me: failed program was:" >&5
5723 cat conftest.$ac_ext >&5
5724 eval "$as_ac_Header=no"
5725 fi
5726 rm -f conftest.err conftest.$ac_ext
5727 fi
5728 echo "$as_me:5728: result: `eval echo '${'$as_ac_Header'}'`" >&5
5729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5731 cat >>confdefs.h <<EOF
5732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5733 EOF
5734
5735 fi
5736 done
5737
5738 for ac_func in getpagesize
5739 do
5740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5741 echo "$as_me:5741: checking for $ac_func" >&5
5742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5743 if eval "test \"\${$as_ac_var+set}\" = set"; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746 cat >conftest.$ac_ext <<_ACEOF
5747 #line 5747 "configure"
5748 #include "confdefs.h"
5749 /* System header to define __stub macros and hopefully few prototypes,
5750 which can conflict with char $ac_func (); below. */
5751 #include <assert.h>
5752 /* Override any gcc2 internal prototype to avoid an error. */
5753 #ifdef __cplusplus
5754 extern "C"
5755 #endif
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5758 char $ac_func ();
5759 char (*f) ();
5760
5761 int
5762 main ()
5763 {
5764 /* The GNU C library defines this for functions which it implements
5765 to always fail with ENOSYS. Some functions are actually named
5766 something starting with __ and the normal name is an alias. */
5767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5768 choke me
5769 #else
5770 f = $ac_func;
5771 #endif
5772
5773 ;
5774 return 0;
5775 }
5776 _ACEOF
5777 rm -f conftest.$ac_objext conftest$ac_exeext
5778 if { (eval echo "$as_me:5778: \"$ac_link\"") >&5
5779 (eval $ac_link) 2>&5
5780 ac_status=$?
5781 echo "$as_me:5781: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -s conftest$ac_exeext'
5784 { (eval echo "$as_me:5784: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:5787: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 eval "$as_ac_var=yes"
5790 else
5791 echo "$as_me: failed program was:" >&5
5792 cat conftest.$ac_ext >&5
5793 eval "$as_ac_var=no"
5794 fi
5795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5796 fi
5797 echo "$as_me:5797: result: `eval echo '${'$as_ac_var'}'`" >&5
5798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5799 if test `eval echo '${'$as_ac_var'}'` = yes; then
5800 cat >>confdefs.h <<EOF
5801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5802 EOF
5803
5804 fi
5805 done
5806
5807 echo "$as_me:5807: checking for working mmap" >&5
5808 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5809 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812 if test "$cross_compiling" = yes; then
5813 ac_cv_func_mmap_fixed_mapped=no
5814 else
5815 cat >conftest.$ac_ext <<_ACEOF
5816 #line 5816 "configure"
5817 #include "confdefs.h"
5818 $ac_includes_default
5819 /* Thanks to Mike Haertel and Jim Avera for this test.
5820 Here is a matrix of mmap possibilities:
5821 mmap private not fixed
5822 mmap private fixed at somewhere currently unmapped
5823 mmap private fixed at somewhere already mapped
5824 mmap shared not fixed
5825 mmap shared fixed at somewhere currently unmapped
5826 mmap shared fixed at somewhere already mapped
5827 For private mappings, we should verify that changes cannot be read()
5828 back from the file, nor mmap's back from the file at a different
5829 address. (There have been systems where private was not correctly
5830 implemented like the infamous i386 svr4.0, and systems where the
5831 VM page cache was not coherent with the file system buffer cache
5832 like early versions of FreeBSD and possibly contemporary NetBSD.)
5833 For shared mappings, we should conversely verify that changes get
5834 propogated back to all the places they're supposed to be.
5835
5836 Grep wants private fixed already mapped.
5837 The main things grep needs to know about mmap are:
5838 * does it exist and is it safe to write into the mmap'd area
5839 * how to use it (BSD variants) */
5840
5841 #include <fcntl.h>
5842 #include <sys/mman.h>
5843
5844 #if !STDC_HEADERS && !HAVE_STDLIB_H
5845 char *malloc ();
5846 #endif
5847
5848 /* This mess was copied from the GNU getpagesize.h. */
5849 #if !HAVE_GETPAGESIZE
5850 /* Assume that all systems that can run configure have sys/param.h. */
5851 # if !HAVE_SYS_PARAM_H
5852 # define HAVE_SYS_PARAM_H 1
5853 # endif
5854
5855 # ifdef _SC_PAGESIZE
5856 # define getpagesize() sysconf(_SC_PAGESIZE)
5857 # else /* no _SC_PAGESIZE */
5858 # if HAVE_SYS_PARAM_H
5859 # include <sys/param.h>
5860 # ifdef EXEC_PAGESIZE
5861 # define getpagesize() EXEC_PAGESIZE
5862 # else /* no EXEC_PAGESIZE */
5863 # ifdef NBPG
5864 # define getpagesize() NBPG * CLSIZE
5865 # ifndef CLSIZE
5866 # define CLSIZE 1
5867 # endif /* no CLSIZE */
5868 # else /* no NBPG */
5869 # ifdef NBPC
5870 # define getpagesize() NBPC
5871 # else /* no NBPC */
5872 # ifdef PAGESIZE
5873 # define getpagesize() PAGESIZE
5874 # endif /* PAGESIZE */
5875 # endif /* no NBPC */
5876 # endif /* no NBPG */
5877 # endif /* no EXEC_PAGESIZE */
5878 # else /* no HAVE_SYS_PARAM_H */
5879 # define getpagesize() 8192 /* punt totally */
5880 # endif /* no HAVE_SYS_PARAM_H */
5881 # endif /* no _SC_PAGESIZE */
5882
5883 #endif /* no HAVE_GETPAGESIZE */
5884
5885 int
5886 main ()
5887 {
5888 char *data, *data2, *data3;
5889 int i, pagesize;
5890 int fd;
5891
5892 pagesize = getpagesize ();
5893
5894 /* First, make a file with some known garbage in it. */
5895 data = (char *) malloc (pagesize);
5896 if (!data)
5897 exit (1);
5898 for (i = 0; i < pagesize; ++i)
5899 *(data + i) = rand ();
5900 umask (0);
5901 fd = creat ("conftest.mmap", 0600);
5902 if (fd < 0)
5903 exit (1);
5904 if (write (fd, data, pagesize) != pagesize)
5905 exit (1);
5906 close (fd);
5907
5908 /* Next, try to mmap the file at a fixed address which already has
5909 something else allocated at it. If we can, also make sure that
5910 we see the same garbage. */
5911 fd = open ("conftest.mmap", O_RDWR);
5912 if (fd < 0)
5913 exit (1);
5914 data2 = (char *) malloc (2 * pagesize);
5915 if (!data2)
5916 exit (1);
5917 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5918 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5919 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5920 exit (1);
5921 for (i = 0; i < pagesize; ++i)
5922 if (*(data + i) != *(data2 + i))
5923 exit (1);
5924
5925 /* Finally, make sure that changes to the mapped area do not
5926 percolate back to the file as seen by read(). (This is a bug on
5927 some variants of i386 svr4.0.) */
5928 for (i = 0; i < pagesize; ++i)
5929 *(data2 + i) = *(data2 + i) + 1;
5930 data3 = (char *) malloc (pagesize);
5931 if (!data3)
5932 exit (1);
5933 if (read (fd, data3, pagesize) != pagesize)
5934 exit (1);
5935 for (i = 0; i < pagesize; ++i)
5936 if (*(data + i) != *(data3 + i))
5937 exit (1);
5938 close (fd);
5939 exit (0);
5940 }
5941 _ACEOF
5942 rm -f conftest$ac_exeext
5943 if { (eval echo "$as_me:5943: \"$ac_link\"") >&5
5944 (eval $ac_link) 2>&5
5945 ac_status=$?
5946 echo "$as_me:5946: \$? = $ac_status" >&5
5947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5948 { (eval echo "$as_me:5948: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:5951: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_cv_func_mmap_fixed_mapped=yes
5954 else
5955 echo "$as_me: program exited with status $ac_status" >&5
5956 echo "$as_me: failed program was:" >&5
5957 cat conftest.$ac_ext >&5
5958 ac_cv_func_mmap_fixed_mapped=no
5959 fi
5960 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5961 fi
5962 fi
5963 echo "$as_me:5963: result: $ac_cv_func_mmap_fixed_mapped" >&5
5964 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5965 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5966
5967 cat >>confdefs.h <<\EOF
5968 #define HAVE_MMAP 1
5969 EOF
5970
5971 fi
5972 rm -f conftest.mmap
5973
5974 if test $use_mmap_for_buffers = yes; then
5975 REL_ALLOC=no
5976 fi
5977
5978 LIBS="$libsrc_libs $LIBS"
5979
5980 echo "$as_me:5980: checking for dnet_ntoa in -ldnet" >&5
5981 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5982 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 ac_check_lib_save_LIBS=$LIBS
5986 LIBS="-ldnet $LIBS"
5987 cat >conftest.$ac_ext <<_ACEOF
5988 #line 5988 "configure"
5989 #include "confdefs.h"
5990
5991 /* Override any gcc2 internal prototype to avoid an error. */
5992 #ifdef __cplusplus
5993 extern "C"
5994 #endif
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
5997 char dnet_ntoa ();
5998 int
5999 main ()
6000 {
6001 dnet_ntoa ();
6002 ;
6003 return 0;
6004 }
6005 _ACEOF
6006 rm -f conftest.$ac_objext conftest$ac_exeext
6007 if { (eval echo "$as_me:6007: \"$ac_link\"") >&5
6008 (eval $ac_link) 2>&5
6009 ac_status=$?
6010 echo "$as_me:6010: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -s conftest$ac_exeext'
6013 { (eval echo "$as_me:6013: \"$ac_try\"") >&5
6014 (eval $ac_try) 2>&5
6015 ac_status=$?
6016 echo "$as_me:6016: \$? = $ac_status" >&5
6017 (exit $ac_status); }; }; then
6018 ac_cv_lib_dnet_dnet_ntoa=yes
6019 else
6020 echo "$as_me: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6022 ac_cv_lib_dnet_dnet_ntoa=no
6023 fi
6024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6025 LIBS=$ac_check_lib_save_LIBS
6026 fi
6027 echo "$as_me:6027: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6028 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6029 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6030 cat >>confdefs.h <<EOF
6031 #define HAVE_LIBDNET 1
6032 EOF
6033
6034 LIBS="-ldnet $LIBS"
6035
6036 fi
6037
6038 echo "$as_me:6038: checking for main in -lXbsd" >&5
6039 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6040 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043 ac_check_lib_save_LIBS=$LIBS
6044 LIBS="-lXbsd $LIBS"
6045 cat >conftest.$ac_ext <<_ACEOF
6046 #line 6046 "configure"
6047 #include "confdefs.h"
6048
6049 int
6050 main ()
6051 {
6052 main ();
6053 ;
6054 return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext conftest$ac_exeext
6058 if { (eval echo "$as_me:6058: \"$ac_link\"") >&5
6059 (eval $ac_link) 2>&5
6060 ac_status=$?
6061 echo "$as_me:6061: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try='test -s conftest$ac_exeext'
6064 { (eval echo "$as_me:6064: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:6067: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_lib_Xbsd_main=yes
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6073 ac_cv_lib_Xbsd_main=no
6074 fi
6075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6076 LIBS=$ac_check_lib_save_LIBS
6077 fi
6078 echo "$as_me:6078: result: $ac_cv_lib_Xbsd_main" >&5
6079 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6080 if test $ac_cv_lib_Xbsd_main = yes; then
6081 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
6082 fi
6083
6084 echo "$as_me:6084: checking for cma_open in -lpthreads" >&5
6085 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6086 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 ac_check_lib_save_LIBS=$LIBS
6090 LIBS="-lpthreads $LIBS"
6091 cat >conftest.$ac_ext <<_ACEOF
6092 #line 6092 "configure"
6093 #include "confdefs.h"
6094
6095 /* Override any gcc2 internal prototype to avoid an error. */
6096 #ifdef __cplusplus
6097 extern "C"
6098 #endif
6099 /* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */
6101 char cma_open ();
6102 int
6103 main ()
6104 {
6105 cma_open ();
6106 ;
6107 return 0;
6108 }
6109 _ACEOF
6110 rm -f conftest.$ac_objext conftest$ac_exeext
6111 if { (eval echo "$as_me:6111: \"$ac_link\"") >&5
6112 (eval $ac_link) 2>&5
6113 ac_status=$?
6114 echo "$as_me:6114: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try='test -s conftest$ac_exeext'
6117 { (eval echo "$as_me:6117: \"$ac_try\"") >&5
6118 (eval $ac_try) 2>&5
6119 ac_status=$?
6120 echo "$as_me:6120: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 ac_cv_lib_pthreads_cma_open=yes
6123 else
6124 echo "$as_me: failed program was:" >&5
6125 cat conftest.$ac_ext >&5
6126 ac_cv_lib_pthreads_cma_open=no
6127 fi
6128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6129 LIBS=$ac_check_lib_save_LIBS
6130 fi
6131 echo "$as_me:6131: result: $ac_cv_lib_pthreads_cma_open" >&5
6132 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6133 if test $ac_cv_lib_pthreads_cma_open = yes; then
6134 cat >>confdefs.h <<EOF
6135 #define HAVE_LIBPTHREADS 1
6136 EOF
6137
6138 LIBS="-lpthreads $LIBS"
6139
6140 fi
6141
6142 echo "$as_me:6142: checking for XFree86 in /usr/X386" >&5
6143 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6144 if test -d /usr/X386/include; then
6145 HAVE_XFREE386=yes
6146 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6147 else
6148 HAVE_XFREE386=no
6149 fi
6150 echo "$as_me:6150: result: $HAVE_XFREE386" >&5
6151 echo "${ECHO_T}$HAVE_XFREE386" >&6
6152
6153 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6154 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6155
6156 REAL_CPPFLAGS="$CPPFLAGS"
6157
6158 if test "${HAVE_X11}" = "yes"; then
6159 DEFS="$C_SWITCH_X_SITE $DEFS"
6160 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
6161 LIBS="$LIBX $LIBS"
6162 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
6163 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
6164
6165 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6166 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6167 # but it's more convenient here to set LD_RUN_PATH
6168 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6169 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6170 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6171 export LD_RUN_PATH
6172 fi
6173
6174 if test "${opsys}" = "gnu-linux"; then
6175 echo "$as_me:6175: checking whether X on GNU/Linux needs -b to link" >&5
6176 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6177 cat >conftest.$ac_ext <<_ACEOF
6178 #line 6178 "configure"
6179 #include "confdefs.h"
6180
6181 int
6182 main ()
6183 {
6184 XOpenDisplay ("foo");
6185 ;
6186 return 0;
6187 }
6188 _ACEOF
6189 rm -f conftest.$ac_objext conftest$ac_exeext
6190 if { (eval echo "$as_me:6190: \"$ac_link\"") >&5
6191 (eval $ac_link) 2>&5
6192 ac_status=$?
6193 echo "$as_me:6193: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -s conftest$ac_exeext'
6196 { (eval echo "$as_me:6196: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:6199: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 xlinux_first_failure=no
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6205 xlinux_first_failure=yes
6206 fi
6207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6208 if test "${xlinux_first_failure}" = "yes"; then
6209 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
6210 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
6211 OLD_CPPFLAGS="$CPPFLAGS"
6212 OLD_LIBS="$LIBS"
6213 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
6214 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
6215 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
6216 LIBS="$LIBS -b i486-linuxaout"
6217 cat >conftest.$ac_ext <<_ACEOF
6218 #line 6218 "configure"
6219 #include "confdefs.h"
6220
6221 int
6222 main ()
6223 {
6224 XOpenDisplay ("foo");
6225 ;
6226 return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (eval echo "$as_me:6230: \"$ac_link\"") >&5
6231 (eval $ac_link) 2>&5
6232 ac_status=$?
6233 echo "$as_me:6233: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -s conftest$ac_exeext'
6236 { (eval echo "$as_me:6236: \"$ac_try\"") >&5
6237 (eval $ac_try) 2>&5
6238 ac_status=$?
6239 echo "$as_me:6239: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 xlinux_second_failure=no
6242 else
6243 echo "$as_me: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6245 xlinux_second_failure=yes
6246 fi
6247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6248 if test "${xlinux_second_failure}" = "yes"; then
6249 # If we get the same failure with -b, there is no use adding -b.
6250 # So take it out. This plays safe.
6251 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
6252 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
6253 CPPFLAGS="$OLD_CPPFLAGS"
6254 LIBS="$OLD_LIBS"
6255 echo "$as_me:6255: result: no" >&5
6256 echo "${ECHO_T}no" >&6
6257 else
6258 echo "$as_me:6258: result: yes" >&5
6259 echo "${ECHO_T}yes" >&6
6260 fi
6261 else
6262 echo "$as_me:6262: result: no" >&5
6263 echo "${ECHO_T}no" >&6
6264 fi
6265 fi
6266
6267 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6268 # header files included from there.
6269 echo "$as_me:6269: checking for Xkb" >&5
6270 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6271 cat >conftest.$ac_ext <<_ACEOF
6272 #line 6272 "configure"
6273 #include "confdefs.h"
6274 #include <X11/Xlib.h>
6275 #include <X11/XKBlib.h>
6276 int
6277 main ()
6278 {
6279 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6280 ;
6281 return 0;
6282 }
6283 _ACEOF
6284 rm -f conftest.$ac_objext conftest$ac_exeext
6285 if { (eval echo "$as_me:6285: \"$ac_link\"") >&5
6286 (eval $ac_link) 2>&5
6287 ac_status=$?
6288 echo "$as_me:6288: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -s conftest$ac_exeext'
6291 { (eval echo "$as_me:6291: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:6294: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 emacs_xkb=yes
6297 else
6298 echo "$as_me: failed program was:" >&5
6299 cat conftest.$ac_ext >&5
6300 emacs_xkb=no
6301 fi
6302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6303 echo "$as_me:6303: result: $emacs_xkb" >&5
6304 echo "${ECHO_T}$emacs_xkb" >&6
6305 if test $emacs_xkb = yes; then
6306 cat >>confdefs.h <<\EOF
6307 #define HAVE_XKBGETKEYBOARD 1
6308 EOF
6309
6310 fi
6311
6312 for ac_func in XrmSetDatabase XScreenResourceString \
6313 XScreenNumberOfScreen XSetWMProtocols
6314 do
6315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6316 echo "$as_me:6316: checking for $ac_func" >&5
6317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6318 if eval "test \"\${$as_ac_var+set}\" = set"; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321 cat >conftest.$ac_ext <<_ACEOF
6322 #line 6322 "configure"
6323 #include "confdefs.h"
6324 /* System header to define __stub macros and hopefully few prototypes,
6325 which can conflict with char $ac_func (); below. */
6326 #include <assert.h>
6327 /* Override any gcc2 internal prototype to avoid an error. */
6328 #ifdef __cplusplus
6329 extern "C"
6330 #endif
6331 /* We use char because int might match the return type of a gcc2
6332 builtin and then its argument prototype would still apply. */
6333 char $ac_func ();
6334 char (*f) ();
6335
6336 int
6337 main ()
6338 {
6339 /* The GNU C library defines this for functions which it implements
6340 to always fail with ENOSYS. Some functions are actually named
6341 something starting with __ and the normal name is an alias. */
6342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6343 choke me
6344 #else
6345 f = $ac_func;
6346 #endif
6347
6348 ;
6349 return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext conftest$ac_exeext
6353 if { (eval echo "$as_me:6353: \"$ac_link\"") >&5
6354 (eval $ac_link) 2>&5
6355 ac_status=$?
6356 echo "$as_me:6356: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 { ac_try='test -s conftest$ac_exeext'
6359 { (eval echo "$as_me:6359: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:6362: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 eval "$as_ac_var=yes"
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 cat conftest.$ac_ext >&5
6368 eval "$as_ac_var=no"
6369 fi
6370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6371 fi
6372 echo "$as_me:6372: result: `eval echo '${'$as_ac_var'}'`" >&5
6373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6374 if test `eval echo '${'$as_ac_var'}'` = yes; then
6375 cat >>confdefs.h <<EOF
6376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6377 EOF
6378
6379 fi
6380 done
6381
6382 fi
6383
6384 if test "${window_system}" = "x11"; then
6385 echo "$as_me:6385: checking X11 version 6" >&5
6386 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6387 if test "${emacs_cv_x11_version_6+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390 cat >conftest.$ac_ext <<_ACEOF
6391 #line 6391 "configure"
6392 #include "confdefs.h"
6393 #include <X11/Xlib.h>
6394 int
6395 main ()
6396 {
6397 #if XlibSpecificationRelease < 6
6398 fail;
6399 #endif
6400
6401 ;
6402 return 0;
6403 }
6404 _ACEOF
6405 rm -f conftest.$ac_objext conftest$ac_exeext
6406 if { (eval echo "$as_me:6406: \"$ac_link\"") >&5
6407 (eval $ac_link) 2>&5
6408 ac_status=$?
6409 echo "$as_me:6409: \$? = $ac_status" >&5
6410 (exit $ac_status); } &&
6411 { ac_try='test -s conftest$ac_exeext'
6412 { (eval echo "$as_me:6412: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:6415: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 emacs_cv_x11_version_6=yes
6418 else
6419 echo "$as_me: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6421 emacs_cv_x11_version_6=no
6422 fi
6423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6424 fi
6425
6426 if test $emacs_cv_x11_version_6 = yes; then
6427 echo "$as_me:6427: result: 6 or newer" >&5
6428 echo "${ECHO_T}6 or newer" >&6
6429 cat >>confdefs.h <<\EOF
6430 #define HAVE_X11R6 1
6431 EOF
6432
6433 else
6434 echo "$as_me:6434: result: before 6" >&5
6435 echo "${ECHO_T}before 6" >&6
6436 fi
6437 fi
6438
6439 if test "${window_system}" = "x11"; then
6440 echo "$as_me:6440: checking X11 version 5" >&5
6441 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6442 if test "${emacs_cv_x11_version_5+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line 6446 "configure"
6447 #include "confdefs.h"
6448 #include <X11/Xlib.h>
6449 int
6450 main ()
6451 {
6452 #if XlibSpecificationRelease < 5
6453 fail;
6454 #endif
6455
6456 ;
6457 return 0;
6458 }
6459 _ACEOF
6460 rm -f conftest.$ac_objext conftest$ac_exeext
6461 if { (eval echo "$as_me:6461: \"$ac_link\"") >&5
6462 (eval $ac_link) 2>&5
6463 ac_status=$?
6464 echo "$as_me:6464: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -s conftest$ac_exeext'
6467 { (eval echo "$as_me:6467: \"$ac_try\"") >&5
6468 (eval $ac_try) 2>&5
6469 ac_status=$?
6470 echo "$as_me:6470: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6472 emacs_cv_x11_version_5=yes
6473 else
6474 echo "$as_me: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6476 emacs_cv_x11_version_5=no
6477 fi
6478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6479 fi
6480
6481 if test $emacs_cv_x11_version_5 = yes; then
6482 echo "$as_me:6482: result: 5 or newer" >&5
6483 echo "${ECHO_T}5 or newer" >&6
6484 HAVE_X11R5=yes
6485 cat >>confdefs.h <<\EOF
6486 #define HAVE_X11R5 1
6487 EOF
6488
6489 else
6490 HAVE_X11R5=no
6491 echo "$as_me:6491: result: before 5" >&5
6492 echo "${ECHO_T}before 5" >&6
6493 fi
6494 fi
6495
6496 if test x"${USE_X_TOOLKIT}" = xmaybe; then
6497 if test x"${HAVE_X11R5}" = xyes; then
6498 echo "$as_me:6498: checking X11 version 5 with Xaw" >&5
6499 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6500 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 cat >conftest.$ac_ext <<_ACEOF
6504 #line 6504 "configure"
6505 #include "confdefs.h"
6506
6507 #include <X11/Intrinsic.h>
6508 #include <X11/Xaw/Simple.h>
6509 int
6510 main ()
6511 {
6512
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (eval echo "$as_me:6518: \"$ac_link\"") >&5
6519 (eval $ac_link) 2>&5
6520 ac_status=$?
6521 echo "$as_me:6521: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -s conftest$ac_exeext'
6524 { (eval echo "$as_me:6524: \"$ac_try\"") >&5
6525 (eval $ac_try) 2>&5
6526 ac_status=$?
6527 echo "$as_me:6527: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 emacs_cv_x11_version_5_with_xaw=yes
6530 else
6531 echo "$as_me: failed program was:" >&5
6532 cat conftest.$ac_ext >&5
6533 emacs_cv_x11_version_5_with_xaw=no
6534 fi
6535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6536 fi
6537
6538 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6539 echo "$as_me:6539: result: 5 or newer, with Xaw; use toolkit by default" >&5
6540 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6541 USE_X_TOOLKIT=LUCID
6542 else
6543 echo "$as_me:6543: result: before 5 or no Xaw; do not use toolkit by default" >&5
6544 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6545 USE_X_TOOLKIT=none
6546 fi
6547 else
6548 USE_X_TOOLKIT=none
6549 fi
6550 fi
6551
6552 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
6553
6554 if test "${USE_X_TOOLKIT}" != "none"; then
6555 echo "$as_me:6555: checking X11 toolkit version" >&5
6556 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6557 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 cat >conftest.$ac_ext <<_ACEOF
6561 #line 6561 "configure"
6562 #include "confdefs.h"
6563 #include <X11/Intrinsic.h>
6564 int
6565 main ()
6566 {
6567 #if XtSpecificationRelease < 6
6568 fail;
6569 #endif
6570
6571 ;
6572 return 0;
6573 }
6574 _ACEOF
6575 rm -f conftest.$ac_objext conftest$ac_exeext
6576 if { (eval echo "$as_me:6576: \"$ac_link\"") >&5
6577 (eval $ac_link) 2>&5
6578 ac_status=$?
6579 echo "$as_me:6579: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try='test -s conftest$ac_exeext'
6582 { (eval echo "$as_me:6582: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:6585: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 emacs_cv_x11_toolkit_version_6=yes
6588 else
6589 echo "$as_me: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6591 emacs_cv_x11_toolkit_version_6=no
6592 fi
6593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6594 fi
6595
6596 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
6597 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6598 echo "$as_me:6598: result: 6 or newer" >&5
6599 echo "${ECHO_T}6 or newer" >&6
6600 cat >>confdefs.h <<\EOF
6601 #define HAVE_X11XTR6 1
6602 EOF
6603
6604 else
6605 echo "$as_me:6605: result: before 6" >&5
6606 echo "${ECHO_T}before 6" >&6
6607 fi
6608
6609 OLDLIBS="$LIBS"
6610 if test x$HAVE_X11XTR6 = xyes; then
6611 LIBS="-lXt -lSM -lICE $LIBS"
6612 else
6613 LIBS="-lXt $LIBS"
6614 fi
6615
6616 echo "$as_me:6616: checking for XmuConvertStandardSelection in -lXmu" >&5
6617 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6618 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 ac_check_lib_save_LIBS=$LIBS
6622 LIBS="-lXmu $LIBS"
6623 cat >conftest.$ac_ext <<_ACEOF
6624 #line 6624 "configure"
6625 #include "confdefs.h"
6626
6627 /* Override any gcc2 internal prototype to avoid an error. */
6628 #ifdef __cplusplus
6629 extern "C"
6630 #endif
6631 /* We use char because int might match the return type of a gcc2
6632 builtin and then its argument prototype would still apply. */
6633 char XmuConvertStandardSelection ();
6634 int
6635 main ()
6636 {
6637 XmuConvertStandardSelection ();
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:6643: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>&5
6645 ac_status=$?
6646 echo "$as_me:6646: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try='test -s conftest$ac_exeext'
6649 { (eval echo "$as_me:6649: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:6652: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
6655 else
6656 echo "$as_me: failed program was:" >&5
6657 cat conftest.$ac_ext >&5
6658 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
6659 fi
6660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6661 LIBS=$ac_check_lib_save_LIBS
6662 fi
6663 echo "$as_me:6663: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6664 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6665 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6666 cat >>confdefs.h <<EOF
6667 #define HAVE_LIBXMU 1
6668 EOF
6669
6670 LIBS="-lXmu $LIBS"
6671
6672 fi
6673
6674 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
6675 fi
6676
6677 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6678 if test "${HAVE_X11}" = "yes"; then
6679 if test "${USE_X_TOOLKIT}" != "none"; then
6680
6681 echo "$as_me:6681: checking for XShapeQueryExtension in -lXext" >&5
6682 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6683 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 ac_check_lib_save_LIBS=$LIBS
6687 LIBS="-lXext $LIBS"
6688 cat >conftest.$ac_ext <<_ACEOF
6689 #line 6689 "configure"
6690 #include "confdefs.h"
6691
6692 /* Override any gcc2 internal prototype to avoid an error. */
6693 #ifdef __cplusplus
6694 extern "C"
6695 #endif
6696 /* We use char because int might match the return type of a gcc2
6697 builtin and then its argument prototype would still apply. */
6698 char XShapeQueryExtension ();
6699 int
6700 main ()
6701 {
6702 XShapeQueryExtension ();
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (eval echo "$as_me:6708: \"$ac_link\"") >&5
6709 (eval $ac_link) 2>&5
6710 ac_status=$?
6711 echo "$as_me:6711: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -s conftest$ac_exeext'
6714 { (eval echo "$as_me:6714: \"$ac_try\"") >&5
6715 (eval $ac_try) 2>&5
6716 ac_status=$?
6717 echo "$as_me:6717: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_lib_Xext_XShapeQueryExtension=yes
6720 else
6721 echo "$as_me: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6723 ac_cv_lib_Xext_XShapeQueryExtension=no
6724 fi
6725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6726 LIBS=$ac_check_lib_save_LIBS
6727 fi
6728 echo "$as_me:6728: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6729 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6730 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6731 cat >>confdefs.h <<EOF
6732 #define HAVE_LIBXEXT 1
6733 EOF
6734
6735 LIBS="-lXext $LIBS"
6736
6737 fi
6738
6739 fi
6740 fi
6741
6742 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6743 echo "$as_me:6743: checking for Motif version 2.1" >&5
6744 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6745 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 cat >conftest.$ac_ext <<_ACEOF
6749 #line 6749 "configure"
6750 #include "confdefs.h"
6751 #include <Xm/Xm.h>
6752 int
6753 main ()
6754 {
6755 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6756 int x = 5;
6757 #else
6758 Motif version prior to 2.1.
6759 #endif
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:6765: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>&5
6767 ac_status=$?
6768 echo "$as_me:6768: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try='test -s conftest.$ac_objext'
6771 { (eval echo "$as_me:6771: \"$ac_try\"") >&5
6772 (eval $ac_try) 2>&5
6773 ac_status=$?
6774 echo "$as_me:6774: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 emacs_cv_motif_version_2_1=yes
6777 else
6778 echo "$as_me: failed program was:" >&5
6779 cat conftest.$ac_ext >&5
6780 emacs_cv_motif_version_2_1=no
6781 fi
6782 rm -f conftest.$ac_objext conftest.$ac_ext
6783 fi
6784 echo "$as_me:6784: result: $emacs_cv_motif_version_2_1" >&5
6785 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6786 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
6787 if test $emacs_cv_motif_version_2_1 = yes; then
6788 HAVE_LIBXP=no
6789 cat >>confdefs.h <<\EOF
6790 #define HAVE_MOTIF_2_1 1
6791 EOF
6792
6793 echo "$as_me:6793: checking for XpCreateContext in -lXp" >&5
6794 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6795 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798 ac_check_lib_save_LIBS=$LIBS
6799 LIBS="-lXp $LIBS"
6800 cat >conftest.$ac_ext <<_ACEOF
6801 #line 6801 "configure"
6802 #include "confdefs.h"
6803
6804 /* Override any gcc2 internal prototype to avoid an error. */
6805 #ifdef __cplusplus
6806 extern "C"
6807 #endif
6808 /* We use char because int might match the return type of a gcc2
6809 builtin and then its argument prototype would still apply. */
6810 char XpCreateContext ();
6811 int
6812 main ()
6813 {
6814 XpCreateContext ();
6815 ;
6816 return 0;
6817 }
6818 _ACEOF
6819 rm -f conftest.$ac_objext conftest$ac_exeext
6820 if { (eval echo "$as_me:6820: \"$ac_link\"") >&5
6821 (eval $ac_link) 2>&5
6822 ac_status=$?
6823 echo "$as_me:6823: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -s conftest$ac_exeext'
6826 { (eval echo "$as_me:6826: \"$ac_try\"") >&5
6827 (eval $ac_try) 2>&5
6828 ac_status=$?
6829 echo "$as_me:6829: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6831 ac_cv_lib_Xp_XpCreateContext=yes
6832 else
6833 echo "$as_me: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6835 ac_cv_lib_Xp_XpCreateContext=no
6836 fi
6837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6838 LIBS=$ac_check_lib_save_LIBS
6839 fi
6840 echo "$as_me:6840: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6841 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6842 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6843 HAVE_LIBXP=yes
6844 fi
6845
6846 if test ${HAVE_LIBXP} = yes; then
6847 cat >>confdefs.h <<\EOF
6848 #define HAVE_LIBXP 1
6849 EOF
6850
6851 fi
6852 fi
6853 fi
6854
6855 ### Is -lXaw3d available?
6856 HAVE_XAW3D=no
6857 if test "${HAVE_X11}" = "yes"; then
6858 if test "${USE_X_TOOLKIT}" != "none"; then
6859 echo "$as_me:6859: checking for X11/Xaw3d/Scrollbar.h" >&5
6860 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6861 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 cat >conftest.$ac_ext <<_ACEOF
6865 #line 6865 "configure"
6866 #include "confdefs.h"
6867 #include <X11/Xaw3d/Scrollbar.h>
6868 _ACEOF
6869 if { (eval echo "$as_me:6869: \"$ac_cpp conftest.$ac_ext\"") >&5
6870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6871 ac_status=$?
6872 egrep -v '^ *\+' conftest.er1 >conftest.err
6873 rm -f conftest.er1
6874 cat conftest.err >&5
6875 echo "$as_me:6875: \$? = $ac_status" >&5
6876 (exit $ac_status); } >/dev/null; then
6877 if test -s conftest.err; then
6878 ac_cpp_err=$ac_c_preproc_warn_flag
6879 else
6880 ac_cpp_err=
6881 fi
6882 else
6883 ac_cpp_err=yes
6884 fi
6885 if test -z "$ac_cpp_err"; then
6886 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
6887 else
6888 echo "$as_me: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6890 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
6891 fi
6892 rm -f conftest.err conftest.$ac_ext
6893 fi
6894 echo "$as_me:6894: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6895 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6896 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6897 echo "$as_me:6897: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6898 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6899 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 ac_check_lib_save_LIBS=$LIBS
6903 LIBS="-lXaw3d $LIBS"
6904 cat >conftest.$ac_ext <<_ACEOF
6905 #line 6905 "configure"
6906 #include "confdefs.h"
6907
6908 /* Override any gcc2 internal prototype to avoid an error. */
6909 #ifdef __cplusplus
6910 extern "C"
6911 #endif
6912 /* We use char because int might match the return type of a gcc2
6913 builtin and then its argument prototype would still apply. */
6914 char XawScrollbarSetThumb ();
6915 int
6916 main ()
6917 {
6918 XawScrollbarSetThumb ();
6919 ;
6920 return 0;
6921 }
6922 _ACEOF
6923 rm -f conftest.$ac_objext conftest$ac_exeext
6924 if { (eval echo "$as_me:6924: \"$ac_link\"") >&5
6925 (eval $ac_link) 2>&5
6926 ac_status=$?
6927 echo "$as_me:6927: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try='test -s conftest$ac_exeext'
6930 { (eval echo "$as_me:6930: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:6933: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
6936 else
6937 echo "$as_me: failed program was:" >&5
6938 cat conftest.$ac_ext >&5
6939 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
6940 fi
6941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6942 LIBS=$ac_check_lib_save_LIBS
6943 fi
6944 echo "$as_me:6944: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
6945 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
6946 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
6947 HAVE_XAW3D=yes
6948 fi
6949
6950 fi
6951
6952 if test "${HAVE_XAW3D}" = "yes"; then
6953 cat >>confdefs.h <<\EOF
6954 #define HAVE_XAW3D 1
6955 EOF
6956
6957 fi
6958 fi
6959 fi
6960
6961 USE_TOOLKIT_SCROLL_BARS=no
6962 if test "${with_toolkit_scroll_bars}" != "no"; then
6963 if test "${USE_X_TOOLKIT}" != "none"; then
6964 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6965 cat >>confdefs.h <<\EOF
6966 #define USE_TOOLKIT_SCROLL_BARS 1
6967 EOF
6968
6969 HAVE_XAW3D=no
6970 USE_TOOLKIT_SCROLL_BARS=yes
6971 elif test "${HAVE_XAW3D}" = "yes"; then
6972 cat >>confdefs.h <<\EOF
6973 #define USE_TOOLKIT_SCROLL_BARS 1
6974 EOF
6975
6976 USE_TOOLKIT_SCROLL_BARS=yes
6977 fi
6978 fi
6979 fi
6980
6981 if test "${with_xim}" != "no"; then
6982 cat >>confdefs.h <<\EOF
6983 #define USE_XIM 1
6984 EOF
6985
6986 fi
6987
6988 ### Use -lXpm if available, unless `--with-xpm=no'.
6989 HAVE_XPM=no
6990 if test "${HAVE_X11}" = "yes"; then
6991 if test "${with_xpm}" != "no"; then
6992 echo "$as_me:6992: checking for X11/xpm.h" >&5
6993 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
6994 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 cat >conftest.$ac_ext <<_ACEOF
6998 #line 6998 "configure"
6999 #include "confdefs.h"
7000 #include <X11/xpm.h>
7001 _ACEOF
7002 if { (eval echo "$as_me:7002: \"$ac_cpp conftest.$ac_ext\"") >&5
7003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7004 ac_status=$?
7005 egrep -v '^ *\+' conftest.er1 >conftest.err
7006 rm -f conftest.er1
7007 cat conftest.err >&5
7008 echo "$as_me:7008: \$? = $ac_status" >&5
7009 (exit $ac_status); } >/dev/null; then
7010 if test -s conftest.err; then
7011 ac_cpp_err=$ac_c_preproc_warn_flag
7012 else
7013 ac_cpp_err=
7014 fi
7015 else
7016 ac_cpp_err=yes
7017 fi
7018 if test -z "$ac_cpp_err"; then
7019 ac_cv_header_X11_xpm_h=yes
7020 else
7021 echo "$as_me: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7023 ac_cv_header_X11_xpm_h=no
7024 fi
7025 rm -f conftest.err conftest.$ac_ext
7026 fi
7027 echo "$as_me:7027: result: $ac_cv_header_X11_xpm_h" >&5
7028 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7029 if test $ac_cv_header_X11_xpm_h = yes; then
7030 echo "$as_me:7030: checking for XpmReadFileToPixmap in -lXpm" >&5
7031 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7032 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 ac_check_lib_save_LIBS=$LIBS
7036 LIBS="-lXpm -lX11 $LIBS"
7037 cat >conftest.$ac_ext <<_ACEOF
7038 #line 7038 "configure"
7039 #include "confdefs.h"
7040
7041 /* Override any gcc2 internal prototype to avoid an error. */
7042 #ifdef __cplusplus
7043 extern "C"
7044 #endif
7045 /* We use char because int might match the return type of a gcc2
7046 builtin and then its argument prototype would still apply. */
7047 char XpmReadFileToPixmap ();
7048 int
7049 main ()
7050 {
7051 XpmReadFileToPixmap ();
7052 ;
7053 return 0;
7054 }
7055 _ACEOF
7056 rm -f conftest.$ac_objext conftest$ac_exeext
7057 if { (eval echo "$as_me:7057: \"$ac_link\"") >&5
7058 (eval $ac_link) 2>&5
7059 ac_status=$?
7060 echo "$as_me:7060: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try='test -s conftest$ac_exeext'
7063 { (eval echo "$as_me:7063: \"$ac_try\"") >&5
7064 (eval $ac_try) 2>&5
7065 ac_status=$?
7066 echo "$as_me:7066: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
7069 else
7070 echo "$as_me: failed program was:" >&5
7071 cat conftest.$ac_ext >&5
7072 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
7073 fi
7074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7075 LIBS=$ac_check_lib_save_LIBS
7076 fi
7077 echo "$as_me:7077: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7078 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7079 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7080 HAVE_XPM=yes
7081 fi
7082
7083 fi
7084
7085 if test "${HAVE_XPM}" = "yes"; then
7086 echo "$as_me:7086: checking for XpmReturnAllocPixels preprocessor define" >&5
7087 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7088 cat >conftest.$ac_ext <<_ACEOF
7089 #line 7089 "configure"
7090 #include "confdefs.h"
7091 #include "X11/xpm.h"
7092 #ifndef XpmReturnAllocPixels
7093 no_return_alloc_pixels
7094 #endif
7095
7096 _ACEOF
7097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
7099 HAVE_XPM=no
7100 else
7101 HAVE_XPM=yes
7102 fi
7103 rm -f conftest*
7104
7105 if test "${HAVE_XPM}" = "yes"; then
7106 echo "$as_me:7106: result: yes" >&5
7107 echo "${ECHO_T}yes" >&6
7108 else
7109 echo "$as_me:7109: result: no" >&5
7110 echo "${ECHO_T}no" >&6
7111 fi
7112 fi
7113 fi
7114
7115 if test "${HAVE_XPM}" = "yes"; then
7116 cat >>confdefs.h <<\EOF
7117 #define HAVE_XPM 1
7118 EOF
7119
7120 fi
7121 fi
7122
7123 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7124 HAVE_JPEG=no
7125 if test "${HAVE_X11}" = "yes"; then
7126 if test "${with_jpeg}" != "no"; then
7127 echo "$as_me:7127: checking for jerror.h" >&5
7128 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7129 if test "${ac_cv_header_jerror_h+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 cat >conftest.$ac_ext <<_ACEOF
7133 #line 7133 "configure"
7134 #include "confdefs.h"
7135 #include <jerror.h>
7136 _ACEOF
7137 if { (eval echo "$as_me:7137: \"$ac_cpp conftest.$ac_ext\"") >&5
7138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7139 ac_status=$?
7140 egrep -v '^ *\+' conftest.er1 >conftest.err
7141 rm -f conftest.er1
7142 cat conftest.err >&5
7143 echo "$as_me:7143: \$? = $ac_status" >&5
7144 (exit $ac_status); } >/dev/null; then
7145 if test -s conftest.err; then
7146 ac_cpp_err=$ac_c_preproc_warn_flag
7147 else
7148 ac_cpp_err=
7149 fi
7150 else
7151 ac_cpp_err=yes
7152 fi
7153 if test -z "$ac_cpp_err"; then
7154 ac_cv_header_jerror_h=yes
7155 else
7156 echo "$as_me: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 ac_cv_header_jerror_h=no
7159 fi
7160 rm -f conftest.err conftest.$ac_ext
7161 fi
7162 echo "$as_me:7162: result: $ac_cv_header_jerror_h" >&5
7163 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7164 if test $ac_cv_header_jerror_h = yes; then
7165 echo "$as_me:7165: checking for jpeg_destroy_compress in -ljpeg" >&5
7166 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7167 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170 ac_check_lib_save_LIBS=$LIBS
7171 LIBS="-ljpeg $LIBS"
7172 cat >conftest.$ac_ext <<_ACEOF
7173 #line 7173 "configure"
7174 #include "confdefs.h"
7175
7176 /* Override any gcc2 internal prototype to avoid an error. */
7177 #ifdef __cplusplus
7178 extern "C"
7179 #endif
7180 /* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */
7182 char jpeg_destroy_compress ();
7183 int
7184 main ()
7185 {
7186 jpeg_destroy_compress ();
7187 ;
7188 return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext conftest$ac_exeext
7192 if { (eval echo "$as_me:7192: \"$ac_link\"") >&5
7193 (eval $ac_link) 2>&5
7194 ac_status=$?
7195 echo "$as_me:7195: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -s conftest$ac_exeext'
7198 { (eval echo "$as_me:7198: \"$ac_try\"") >&5
7199 (eval $ac_try) 2>&5
7200 ac_status=$?
7201 echo "$as_me:7201: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
7204 else
7205 echo "$as_me: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7207 ac_cv_lib_jpeg_jpeg_destroy_compress=no
7208 fi
7209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7210 LIBS=$ac_check_lib_save_LIBS
7211 fi
7212 echo "$as_me:7212: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7213 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7214 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7215 HAVE_JPEG=yes
7216 fi
7217
7218 fi
7219
7220 fi
7221
7222 if test "${HAVE_JPEG}" = "yes"; then
7223 cat >>confdefs.h <<\EOF
7224 #define HAVE_JPEG 1
7225 EOF
7226
7227 cat >conftest.$ac_ext <<_ACEOF
7228 #line 7228 "configure"
7229 #include "confdefs.h"
7230 #include <jpeglib.h>
7231 version=JPEG_LIB_VERSION
7232
7233 _ACEOF
7234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7235 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
7236 cat >>confdefs.h <<\EOF
7237 #define HAVE_JPEG 1
7238 EOF
7239
7240 else
7241 { echo "$as_me:7241: WARNING: libjpeg found, but not version 6b or later" >&5
7242 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7243 HAVE_JPEG=no
7244 fi
7245 rm -f conftest*
7246
7247 fi
7248 fi
7249
7250 ### Use -lpng if available, unless `--with-png=no'.
7251 HAVE_PNG=no
7252 if test "${HAVE_X11}" = "yes"; then
7253 if test "${with_png}" != "no"; then
7254 echo "$as_me:7254: checking for png.h" >&5
7255 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7256 if test "${ac_cv_header_png_h+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259 cat >conftest.$ac_ext <<_ACEOF
7260 #line 7260 "configure"
7261 #include "confdefs.h"
7262 #include <png.h>
7263 _ACEOF
7264 if { (eval echo "$as_me:7264: \"$ac_cpp conftest.$ac_ext\"") >&5
7265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7266 ac_status=$?
7267 egrep -v '^ *\+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:7270: \$? = $ac_status" >&5
7271 (exit $ac_status); } >/dev/null; then
7272 if test -s conftest.err; then
7273 ac_cpp_err=$ac_c_preproc_warn_flag
7274 else
7275 ac_cpp_err=
7276 fi
7277 else
7278 ac_cpp_err=yes
7279 fi
7280 if test -z "$ac_cpp_err"; then
7281 ac_cv_header_png_h=yes
7282 else
7283 echo "$as_me: failed program was:" >&5
7284 cat conftest.$ac_ext >&5
7285 ac_cv_header_png_h=no
7286 fi
7287 rm -f conftest.err conftest.$ac_ext
7288 fi
7289 echo "$as_me:7289: result: $ac_cv_header_png_h" >&5
7290 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7291 if test $ac_cv_header_png_h = yes; then
7292 echo "$as_me:7292: checking for png_get_channels in -lpng" >&5
7293 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7294 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 ac_check_lib_save_LIBS=$LIBS
7298 LIBS="-lpng -lz -lm $LIBS"
7299 cat >conftest.$ac_ext <<_ACEOF
7300 #line 7300 "configure"
7301 #include "confdefs.h"
7302
7303 /* Override any gcc2 internal prototype to avoid an error. */
7304 #ifdef __cplusplus
7305 extern "C"
7306 #endif
7307 /* We use char because int might match the return type of a gcc2
7308 builtin and then its argument prototype would still apply. */
7309 char png_get_channels ();
7310 int
7311 main ()
7312 {
7313 png_get_channels ();
7314 ;
7315 return 0;
7316 }
7317 _ACEOF
7318 rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (eval echo "$as_me:7319: \"$ac_link\"") >&5
7320 (eval $ac_link) 2>&5
7321 ac_status=$?
7322 echo "$as_me:7322: \$? = $ac_status" >&5
7323 (exit $ac_status); } &&
7324 { ac_try='test -s conftest$ac_exeext'
7325 { (eval echo "$as_me:7325: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:7328: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_cv_lib_png_png_get_channels=yes
7331 else
7332 echo "$as_me: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7334 ac_cv_lib_png_png_get_channels=no
7335 fi
7336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7337 LIBS=$ac_check_lib_save_LIBS
7338 fi
7339 echo "$as_me:7339: result: $ac_cv_lib_png_png_get_channels" >&5
7340 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7341 if test $ac_cv_lib_png_png_get_channels = yes; then
7342 HAVE_PNG=yes
7343 fi
7344
7345 fi
7346
7347 fi
7348
7349 if test "${HAVE_PNG}" = "yes"; then
7350 cat >>confdefs.h <<\EOF
7351 #define HAVE_PNG 1
7352 EOF
7353
7354 fi
7355 fi
7356
7357 ### Use -ltiff if available, unless `--with-tiff=no'.
7358 HAVE_TIFF=no
7359 if test "${HAVE_X11}" = "yes"; then
7360 if test "${with_tiff}" != "no"; then
7361 echo "$as_me:7361: checking for tiffio.h" >&5
7362 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7363 if test "${ac_cv_header_tiffio_h+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 cat >conftest.$ac_ext <<_ACEOF
7367 #line 7367 "configure"
7368 #include "confdefs.h"
7369 #include <tiffio.h>
7370 _ACEOF
7371 if { (eval echo "$as_me:7371: \"$ac_cpp conftest.$ac_ext\"") >&5
7372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7373 ac_status=$?
7374 egrep -v '^ *\+' conftest.er1 >conftest.err
7375 rm -f conftest.er1
7376 cat conftest.err >&5
7377 echo "$as_me:7377: \$? = $ac_status" >&5
7378 (exit $ac_status); } >/dev/null; then
7379 if test -s conftest.err; then
7380 ac_cpp_err=$ac_c_preproc_warn_flag
7381 else
7382 ac_cpp_err=
7383 fi
7384 else
7385 ac_cpp_err=yes
7386 fi
7387 if test -z "$ac_cpp_err"; then
7388 ac_cv_header_tiffio_h=yes
7389 else
7390 echo "$as_me: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7392 ac_cv_header_tiffio_h=no
7393 fi
7394 rm -f conftest.err conftest.$ac_ext
7395 fi
7396 echo "$as_me:7396: result: $ac_cv_header_tiffio_h" >&5
7397 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7398 if test $ac_cv_header_tiffio_h = yes; then
7399 tifflibs="-lz -lm"
7400 # At least one tiff package requires the jpeg library.
7401 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
7402 echo "$as_me:7402: checking for TIFFGetVersion in -ltiff" >&5
7403 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7404 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 ac_check_lib_save_LIBS=$LIBS
7408 LIBS="-ltiff $tifflibs $LIBS"
7409 cat >conftest.$ac_ext <<_ACEOF
7410 #line 7410 "configure"
7411 #include "confdefs.h"
7412
7413 /* Override any gcc2 internal prototype to avoid an error. */
7414 #ifdef __cplusplus
7415 extern "C"
7416 #endif
7417 /* We use char because int might match the return type of a gcc2
7418 builtin and then its argument prototype would still apply. */
7419 char TIFFGetVersion ();
7420 int
7421 main ()
7422 {
7423 TIFFGetVersion ();
7424 ;
7425 return 0;
7426 }
7427 _ACEOF
7428 rm -f conftest.$ac_objext conftest$ac_exeext
7429 if { (eval echo "$as_me:7429: \"$ac_link\"") >&5
7430 (eval $ac_link) 2>&5
7431 ac_status=$?
7432 echo "$as_me:7432: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
7434 { ac_try='test -s conftest$ac_exeext'
7435 { (eval echo "$as_me:7435: \"$ac_try\"") >&5
7436 (eval $ac_try) 2>&5
7437 ac_status=$?
7438 echo "$as_me:7438: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_cv_lib_tiff_TIFFGetVersion=yes
7441 else
7442 echo "$as_me: failed program was:" >&5
7443 cat conftest.$ac_ext >&5
7444 ac_cv_lib_tiff_TIFFGetVersion=no
7445 fi
7446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7447 LIBS=$ac_check_lib_save_LIBS
7448 fi
7449 echo "$as_me:7449: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7450 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7451 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7452 HAVE_TIFF=yes
7453 fi
7454
7455 fi
7456
7457 fi
7458
7459 if test "${HAVE_TIFF}" = "yes"; then
7460 cat >>confdefs.h <<\EOF
7461 #define HAVE_TIFF 1
7462 EOF
7463
7464 fi
7465 fi
7466
7467 ### Use -lgif if available, unless `--with-gif=no'.
7468 HAVE_GIF=no
7469 if test "${HAVE_X11}" = "yes"; then
7470 if test "${with_gif}" != "no"; then
7471 echo "$as_me:7471: checking for gif_lib.h" >&5
7472 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7473 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 cat >conftest.$ac_ext <<_ACEOF
7477 #line 7477 "configure"
7478 #include "confdefs.h"
7479 #include <gif_lib.h>
7480 _ACEOF
7481 if { (eval echo "$as_me:7481: \"$ac_cpp conftest.$ac_ext\"") >&5
7482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7483 ac_status=$?
7484 egrep -v '^ *\+' conftest.er1 >conftest.err
7485 rm -f conftest.er1
7486 cat conftest.err >&5
7487 echo "$as_me:7487: \$? = $ac_status" >&5
7488 (exit $ac_status); } >/dev/null; then
7489 if test -s conftest.err; then
7490 ac_cpp_err=$ac_c_preproc_warn_flag
7491 else
7492 ac_cpp_err=
7493 fi
7494 else
7495 ac_cpp_err=yes
7496 fi
7497 if test -z "$ac_cpp_err"; then
7498 ac_cv_header_gif_lib_h=yes
7499 else
7500 echo "$as_me: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7502 ac_cv_header_gif_lib_h=no
7503 fi
7504 rm -f conftest.err conftest.$ac_ext
7505 fi
7506 echo "$as_me:7506: result: $ac_cv_header_gif_lib_h" >&5
7507 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7508 if test $ac_cv_header_gif_lib_h = yes; then
7509 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7510 # Earlier versions can crash Emacs.
7511 echo "$as_me:7511: checking for EGifPutExtensionLast in -lungif" >&5
7512 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7513 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 ac_check_lib_save_LIBS=$LIBS
7517 LIBS="-lungif $LIBS"
7518 cat >conftest.$ac_ext <<_ACEOF
7519 #line 7519 "configure"
7520 #include "confdefs.h"
7521
7522 /* Override any gcc2 internal prototype to avoid an error. */
7523 #ifdef __cplusplus
7524 extern "C"
7525 #endif
7526 /* We use char because int might match the return type of a gcc2
7527 builtin and then its argument prototype would still apply. */
7528 char EGifPutExtensionLast ();
7529 int
7530 main ()
7531 {
7532 EGifPutExtensionLast ();
7533 ;
7534 return 0;
7535 }
7536 _ACEOF
7537 rm -f conftest.$ac_objext conftest$ac_exeext
7538 if { (eval echo "$as_me:7538: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>&5
7540 ac_status=$?
7541 echo "$as_me:7541: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try='test -s conftest$ac_exeext'
7544 { (eval echo "$as_me:7544: \"$ac_try\"") >&5
7545 (eval $ac_try) 2>&5
7546 ac_status=$?
7547 echo "$as_me:7547: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7549 ac_cv_lib_ungif_EGifPutExtensionLast=yes
7550 else
7551 echo "$as_me: failed program was:" >&5
7552 cat conftest.$ac_ext >&5
7553 ac_cv_lib_ungif_EGifPutExtensionLast=no
7554 fi
7555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7556 LIBS=$ac_check_lib_save_LIBS
7557 fi
7558 echo "$as_me:7558: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7559 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7560 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7561 HAVE_GIF=yes
7562 fi
7563
7564 fi
7565
7566 fi
7567
7568 if test "${HAVE_GIF}" = "yes"; then
7569 cat >>confdefs.h <<\EOF
7570 #define HAVE_GIF 1
7571 EOF
7572
7573 fi
7574 fi
7575
7576 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7577 echo "$as_me:7577: checking whether netdb declares h_errno" >&5
7578 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7579 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582 cat >conftest.$ac_ext <<_ACEOF
7583 #line 7583 "configure"
7584 #include "confdefs.h"
7585 #include <netdb.h>
7586 int
7587 main ()
7588 {
7589 return h_errno;
7590 ;
7591 return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (eval echo "$as_me:7595: \"$ac_link\"") >&5
7596 (eval $ac_link) 2>&5
7597 ac_status=$?
7598 echo "$as_me:7598: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (eval echo "$as_me:7601: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:7604: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 emacs_cv_netdb_declares_h_errno=yes
7607 else
7608 echo "$as_me: failed program was:" >&5
7609 cat conftest.$ac_ext >&5
7610 emacs_cv_netdb_declares_h_errno=no
7611 fi
7612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7613 fi
7614 echo "$as_me:7614: result: $emacs_cv_netdb_declares_h_errno" >&5
7615 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7616 if test $emacs_cv_netdb_declares_h_errno = yes; then
7617 cat >>confdefs.h <<\EOF
7618 #define HAVE_H_ERRNO 1
7619 EOF
7620
7621 fi
7622
7623 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7624 # for constant arguments. Useless!
7625 echo "$as_me:7625: checking for working alloca.h" >&5
7626 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7627 if test "${ac_cv_working_alloca_h+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630 cat >conftest.$ac_ext <<_ACEOF
7631 #line 7631 "configure"
7632 #include "confdefs.h"
7633 #include <alloca.h>
7634 int
7635 main ()
7636 {
7637 char *p = (char *) alloca (2 * sizeof (int));
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (eval echo "$as_me:7643: \"$ac_link\"") >&5
7644 (eval $ac_link) 2>&5
7645 ac_status=$?
7646 echo "$as_me:7646: \$? = $ac_status" >&5
7647 (exit $ac_status); } &&
7648 { ac_try='test -s conftest$ac_exeext'
7649 { (eval echo "$as_me:7649: \"$ac_try\"") >&5
7650 (eval $ac_try) 2>&5
7651 ac_status=$?
7652 echo "$as_me:7652: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 ac_cv_working_alloca_h=yes
7655 else
7656 echo "$as_me: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7658 ac_cv_working_alloca_h=no
7659 fi
7660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7661 fi
7662 echo "$as_me:7662: result: $ac_cv_working_alloca_h" >&5
7663 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7664 if test $ac_cv_working_alloca_h = yes; then
7665
7666 cat >>confdefs.h <<\EOF
7667 #define HAVE_ALLOCA_H 1
7668 EOF
7669
7670 fi
7671
7672 echo "$as_me:7672: checking for alloca" >&5
7673 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7674 if test "${ac_cv_func_alloca_works+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 cat >conftest.$ac_ext <<_ACEOF
7678 #line 7678 "configure"
7679 #include "confdefs.h"
7680 #ifdef __GNUC__
7681 # define alloca __builtin_alloca
7682 #else
7683 # ifdef _MSC_VER
7684 # include <malloc.h>
7685 # define alloca _alloca
7686 # else
7687 # if HAVE_ALLOCA_H
7688 # include <alloca.h>
7689 # else
7690 # ifdef _AIX
7691 #pragma alloca
7692 # else
7693 # ifndef alloca /* predefined by HP cc +Olibcalls */
7694 char *alloca ();
7695 # endif
7696 # endif
7697 # endif
7698 # endif
7699 #endif
7700
7701 int
7702 main ()
7703 {
7704 char *p = (char *) alloca (1);
7705 ;
7706 return 0;
7707 }
7708 _ACEOF
7709 rm -f conftest.$ac_objext conftest$ac_exeext
7710 if { (eval echo "$as_me:7710: \"$ac_link\"") >&5
7711 (eval $ac_link) 2>&5
7712 ac_status=$?
7713 echo "$as_me:7713: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -s conftest$ac_exeext'
7716 { (eval echo "$as_me:7716: \"$ac_try\"") >&5
7717 (eval $ac_try) 2>&5
7718 ac_status=$?
7719 echo "$as_me:7719: \$? = $ac_status" >&5
7720 (exit $ac_status); }; }; then
7721 ac_cv_func_alloca_works=yes
7722 else
7723 echo "$as_me: failed program was:" >&5
7724 cat conftest.$ac_ext >&5
7725 ac_cv_func_alloca_works=no
7726 fi
7727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7728 fi
7729 echo "$as_me:7729: result: $ac_cv_func_alloca_works" >&5
7730 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7731
7732 if test $ac_cv_func_alloca_works = yes; then
7733
7734 cat >>confdefs.h <<\EOF
7735 #define HAVE_ALLOCA 1
7736 EOF
7737
7738 else
7739 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7740 # that cause trouble. Some versions do not even contain alloca or
7741 # contain a buggy version. If you still want to use their alloca,
7742 # use ar to extract alloca.o from them instead of compiling alloca.c.
7743
7744 ALLOCA=alloca.$ac_objext
7745
7746 cat >>confdefs.h <<\EOF
7747 #define C_ALLOCA 1
7748 EOF
7749
7750 echo "$as_me:7750: checking whether \`alloca.c' needs Cray hooks" >&5
7751 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7752 if test "${ac_cv_os_cray+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755 cat >conftest.$ac_ext <<_ACEOF
7756 #line 7756 "configure"
7757 #include "confdefs.h"
7758 #if defined(CRAY) && ! defined(CRAY2)
7759 webecray
7760 #else
7761 wenotbecray
7762 #endif
7763
7764 _ACEOF
7765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7766 egrep "webecray" >/dev/null 2>&1; then
7767 ac_cv_os_cray=yes
7768 else
7769 ac_cv_os_cray=no
7770 fi
7771 rm -f conftest*
7772
7773 fi
7774 echo "$as_me:7774: result: $ac_cv_os_cray" >&5
7775 echo "${ECHO_T}$ac_cv_os_cray" >&6
7776 if test $ac_cv_os_cray = yes; then
7777 for ac_func in _getb67 GETB67 getb67; do
7778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7779 echo "$as_me:7779: checking for $ac_func" >&5
7780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7781 if eval "test \"\${$as_ac_var+set}\" = set"; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784 cat >conftest.$ac_ext <<_ACEOF
7785 #line 7785 "configure"
7786 #include "confdefs.h"
7787 /* System header to define __stub macros and hopefully few prototypes,
7788 which can conflict with char $ac_func (); below. */
7789 #include <assert.h>
7790 /* Override any gcc2 internal prototype to avoid an error. */
7791 #ifdef __cplusplus
7792 extern "C"
7793 #endif
7794 /* We use char because int might match the return type of a gcc2
7795 builtin and then its argument prototype would still apply. */
7796 char $ac_func ();
7797 char (*f) ();
7798
7799 int
7800 main ()
7801 {
7802 /* The GNU C library defines this for functions which it implements
7803 to always fail with ENOSYS. Some functions are actually named
7804 something starting with __ and the normal name is an alias. */
7805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7806 choke me
7807 #else
7808 f = $ac_func;
7809 #endif
7810
7811 ;
7812 return 0;
7813 }
7814 _ACEOF
7815 rm -f conftest.$ac_objext conftest$ac_exeext
7816 if { (eval echo "$as_me:7816: \"$ac_link\"") >&5
7817 (eval $ac_link) 2>&5
7818 ac_status=$?
7819 echo "$as_me:7819: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -s conftest$ac_exeext'
7822 { (eval echo "$as_me:7822: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:7825: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7827 eval "$as_ac_var=yes"
7828 else
7829 echo "$as_me: failed program was:" >&5
7830 cat conftest.$ac_ext >&5
7831 eval "$as_ac_var=no"
7832 fi
7833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7834 fi
7835 echo "$as_me:7835: result: `eval echo '${'$as_ac_var'}'`" >&5
7836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7837 if test `eval echo '${'$as_ac_var'}'` = yes; then
7838
7839 cat >>confdefs.h <<EOF
7840 #define CRAY_STACKSEG_END $ac_func
7841 EOF
7842
7843 break
7844 fi
7845
7846 done
7847 fi
7848
7849 echo "$as_me:7849: checking stack direction for C alloca" >&5
7850 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7851 if test "${ac_cv_c_stack_direction+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854 if test "$cross_compiling" = yes; then
7855 ac_cv_c_stack_direction=0
7856 else
7857 cat >conftest.$ac_ext <<_ACEOF
7858 #line 7858 "configure"
7859 #include "confdefs.h"
7860 int
7861 find_stack_direction ()
7862 {
7863 static char *addr = 0;
7864 auto char dummy;
7865 if (addr == 0)
7866 {
7867 addr = &dummy;
7868 return find_stack_direction ();
7869 }
7870 else
7871 return (&dummy > addr) ? 1 : -1;
7872 }
7873
7874 int
7875 main ()
7876 {
7877 exit (find_stack_direction () < 0);
7878 }
7879 _ACEOF
7880 rm -f conftest$ac_exeext
7881 if { (eval echo "$as_me:7881: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>&5
7883 ac_status=$?
7884 echo "$as_me:7884: \$? = $ac_status" >&5
7885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7886 { (eval echo "$as_me:7886: \"$ac_try\"") >&5
7887 (eval $ac_try) 2>&5
7888 ac_status=$?
7889 echo "$as_me:7889: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 ac_cv_c_stack_direction=1
7892 else
7893 echo "$as_me: program exited with status $ac_status" >&5
7894 echo "$as_me: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7896 ac_cv_c_stack_direction=-1
7897 fi
7898 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7899 fi
7900 fi
7901 echo "$as_me:7901: result: $ac_cv_c_stack_direction" >&5
7902 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7903
7904 cat >>confdefs.h <<EOF
7905 #define STACK_DIRECTION $ac_cv_c_stack_direction
7906 EOF
7907
7908 fi
7909
7910 # fmod, logb, and frexp are found in -lm on most systems.
7911 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
7912
7913 echo "$as_me:7913: checking for sqrt in -lm" >&5
7914 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
7915 if test "${ac_cv_lib_m_sqrt+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918 ac_check_lib_save_LIBS=$LIBS
7919 LIBS="-lm $LIBS"
7920 cat >conftest.$ac_ext <<_ACEOF
7921 #line 7921 "configure"
7922 #include "confdefs.h"
7923
7924 /* Override any gcc2 internal prototype to avoid an error. */
7925 #ifdef __cplusplus
7926 extern "C"
7927 #endif
7928 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7930 char sqrt ();
7931 int
7932 main ()
7933 {
7934 sqrt ();
7935 ;
7936 return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (eval echo "$as_me:7940: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>&5
7942 ac_status=$?
7943 echo "$as_me:7943: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -s conftest$ac_exeext'
7946 { (eval echo "$as_me:7946: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:7949: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7951 ac_cv_lib_m_sqrt=yes
7952 else
7953 echo "$as_me: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 ac_cv_lib_m_sqrt=no
7956 fi
7957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7958 LIBS=$ac_check_lib_save_LIBS
7959 fi
7960 echo "$as_me:7960: result: $ac_cv_lib_m_sqrt" >&5
7961 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
7962 if test $ac_cv_lib_m_sqrt = yes; then
7963 cat >>confdefs.h <<EOF
7964 #define HAVE_LIBM 1
7965 EOF
7966
7967 LIBS="-lm $LIBS"
7968
7969 fi
7970
7971 # Check for mail-locking functions in a "mail" library
7972
7973 echo "$as_me:7973: checking for maillock in -lmail" >&5
7974 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
7975 if test "${ac_cv_lib_mail_maillock+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978 ac_check_lib_save_LIBS=$LIBS
7979 LIBS="-lmail $LIBS"
7980 cat >conftest.$ac_ext <<_ACEOF
7981 #line 7981 "configure"
7982 #include "confdefs.h"
7983
7984 /* Override any gcc2 internal prototype to avoid an error. */
7985 #ifdef __cplusplus
7986 extern "C"
7987 #endif
7988 /* We use char because int might match the return type of a gcc2
7989 builtin and then its argument prototype would still apply. */
7990 char maillock ();
7991 int
7992 main ()
7993 {
7994 maillock ();
7995 ;
7996 return 0;
7997 }
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (eval echo "$as_me:8000: \"$ac_link\"") >&5
8001 (eval $ac_link) 2>&5
8002 ac_status=$?
8003 echo "$as_me:8003: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -s conftest$ac_exeext'
8006 { (eval echo "$as_me:8006: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:8009: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011 ac_cv_lib_mail_maillock=yes
8012 else
8013 echo "$as_me: failed program was:" >&5
8014 cat conftest.$ac_ext >&5
8015 ac_cv_lib_mail_maillock=no
8016 fi
8017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8018 LIBS=$ac_check_lib_save_LIBS
8019 fi
8020 echo "$as_me:8020: result: $ac_cv_lib_mail_maillock" >&5
8021 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8022 if test $ac_cv_lib_mail_maillock = yes; then
8023 cat >>confdefs.h <<EOF
8024 #define HAVE_LIBMAIL 1
8025 EOF
8026
8027 LIBS="-lmail $LIBS"
8028
8029 fi
8030
8031 echo "$as_me:8031: checking for maillock in -llockfile" >&5
8032 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8033 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036 ac_check_lib_save_LIBS=$LIBS
8037 LIBS="-llockfile $LIBS"
8038 cat >conftest.$ac_ext <<_ACEOF
8039 #line 8039 "configure"
8040 #include "confdefs.h"
8041
8042 /* Override any gcc2 internal prototype to avoid an error. */
8043 #ifdef __cplusplus
8044 extern "C"
8045 #endif
8046 /* We use char because int might match the return type of a gcc2
8047 builtin and then its argument prototype would still apply. */
8048 char maillock ();
8049 int
8050 main ()
8051 {
8052 maillock ();
8053 ;
8054 return 0;
8055 }
8056 _ACEOF
8057 rm -f conftest.$ac_objext conftest$ac_exeext
8058 if { (eval echo "$as_me:8058: \"$ac_link\"") >&5
8059 (eval $ac_link) 2>&5
8060 ac_status=$?
8061 echo "$as_me:8061: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -s conftest$ac_exeext'
8064 { (eval echo "$as_me:8064: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
8066 ac_status=$?
8067 echo "$as_me:8067: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8069 ac_cv_lib_lockfile_maillock=yes
8070 else
8071 echo "$as_me: failed program was:" >&5
8072 cat conftest.$ac_ext >&5
8073 ac_cv_lib_lockfile_maillock=no
8074 fi
8075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8076 LIBS=$ac_check_lib_save_LIBS
8077 fi
8078 echo "$as_me:8078: result: $ac_cv_lib_lockfile_maillock" >&5
8079 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8080 if test $ac_cv_lib_lockfile_maillock = yes; then
8081 cat >>confdefs.h <<EOF
8082 #define HAVE_LIBLOCKFILE 1
8083 EOF
8084
8085 LIBS="-llockfile $LIBS"
8086
8087 fi
8088
8089 # If we have the shared liblockfile, assume we must use it for mail
8090 # locking (e.g. Debian). If we couldn't link against liblockfile
8091 # (no liblockfile.a installed), ensure that we don't need to.
8092 if test "$ac_cv_lib_lockfile_maillock" = no; then
8093 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8094 set dummy liblockfile.so; ac_word=$2
8095 echo "$as_me:8095: checking for $ac_word" >&5
8096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8097 if test "${ac_cv_prog_liblockfile+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 if test -n "$liblockfile"; then
8101 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
8102 else
8103 ac_save_IFS=$IFS; IFS=$ac_path_separator
8104 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8105 for ac_dir in $ac_dummy; do
8106 IFS=$ac_save_IFS
8107 test -z "$ac_dir" && ac_dir=.
8108 $as_executable_p "$ac_dir/$ac_word" || continue
8109 ac_cv_prog_liblockfile="yes"
8110 echo "$as_me:8110: found $ac_dir/$ac_word" >&5
8111 break
8112 done
8113
8114 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
8115 fi
8116 fi
8117 liblockfile=$ac_cv_prog_liblockfile
8118 if test -n "$liblockfile"; then
8119 echo "$as_me:8119: result: $liblockfile" >&5
8120 echo "${ECHO_T}$liblockfile" >&6
8121 else
8122 echo "$as_me:8122: result: no" >&5
8123 echo "${ECHO_T}no" >&6
8124 fi
8125
8126 if test $ac_cv_prog_liblockfile = yes; then
8127 { { echo "$as_me:8127: error: Shared liblockfile found but can't link against it.
8128 This probably means that movemail could lose mail.
8129 There may be a \`development' package to install containing liblockfile." >&5
8130 echo "$as_me: error: Shared liblockfile found but can't link against it.
8131 This probably means that movemail could lose mail.
8132 There may be a \`development' package to install containing liblockfile." >&2;}
8133 { (exit 1); exit 1; }; }
8134 else cat >>confdefs.h <<\EOF
8135 #define LIBMAIL -llockfile
8136 EOF
8137
8138 fi
8139 else :
8140 fi
8141
8142 for ac_func in touchlock
8143 do
8144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8145 echo "$as_me:8145: checking for $ac_func" >&5
8146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8147 if eval "test \"\${$as_ac_var+set}\" = set"; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 else
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line 8151 "configure"
8152 #include "confdefs.h"
8153 /* System header to define __stub macros and hopefully few prototypes,
8154 which can conflict with char $ac_func (); below. */
8155 #include <assert.h>
8156 /* Override any gcc2 internal prototype to avoid an error. */
8157 #ifdef __cplusplus
8158 extern "C"
8159 #endif
8160 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */
8162 char $ac_func ();
8163 char (*f) ();
8164
8165 int
8166 main ()
8167 {
8168 /* The GNU C library defines this for functions which it implements
8169 to always fail with ENOSYS. Some functions are actually named
8170 something starting with __ and the normal name is an alias. */
8171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8172 choke me
8173 #else
8174 f = $ac_func;
8175 #endif
8176
8177 ;
8178 return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest.$ac_objext conftest$ac_exeext
8182 if { (eval echo "$as_me:8182: \"$ac_link\"") >&5
8183 (eval $ac_link) 2>&5
8184 ac_status=$?
8185 echo "$as_me:8185: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -s conftest$ac_exeext'
8188 { (eval echo "$as_me:8188: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:8191: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 eval "$as_ac_var=yes"
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 cat conftest.$ac_ext >&5
8197 eval "$as_ac_var=no"
8198 fi
8199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8200 fi
8201 echo "$as_me:8201: result: `eval echo '${'$as_ac_var'}'`" >&5
8202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8203 if test `eval echo '${'$as_ac_var'}'` = yes; then
8204 cat >>confdefs.h <<EOF
8205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8206 EOF
8207
8208 fi
8209 done
8210
8211 for ac_header in maillock.h
8212 do
8213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8214 echo "$as_me:8214: checking for $ac_header" >&5
8215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 cat >conftest.$ac_ext <<_ACEOF
8220 #line 8220 "configure"
8221 #include "confdefs.h"
8222 #include <$ac_header>
8223 _ACEOF
8224 if { (eval echo "$as_me:8224: \"$ac_cpp conftest.$ac_ext\"") >&5
8225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8226 ac_status=$?
8227 egrep -v '^ *\+' conftest.er1 >conftest.err
8228 rm -f conftest.er1
8229 cat conftest.err >&5
8230 echo "$as_me:8230: \$? = $ac_status" >&5
8231 (exit $ac_status); } >/dev/null; then
8232 if test -s conftest.err; then
8233 ac_cpp_err=$ac_c_preproc_warn_flag
8234 else
8235 ac_cpp_err=
8236 fi
8237 else
8238 ac_cpp_err=yes
8239 fi
8240 if test -z "$ac_cpp_err"; then
8241 eval "$as_ac_Header=yes"
8242 else
8243 echo "$as_me: failed program was:" >&5
8244 cat conftest.$ac_ext >&5
8245 eval "$as_ac_Header=no"
8246 fi
8247 rm -f conftest.err conftest.$ac_ext
8248 fi
8249 echo "$as_me:8249: result: `eval echo '${'$as_ac_Header'}'`" >&5
8250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8252 cat >>confdefs.h <<EOF
8253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8254 EOF
8255
8256 fi
8257 done
8258
8259 for ac_func in gethostname getdomainname getpeername dup2 \
8260 rename closedir mkdir rmdir sysinfo \
8261 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8262 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
8263 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8264 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8265 gai_strerror mkstemp
8266 do
8267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8268 echo "$as_me:8268: checking for $ac_func" >&5
8269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8270 if eval "test \"\${$as_ac_var+set}\" = set"; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273 cat >conftest.$ac_ext <<_ACEOF
8274 #line 8274 "configure"
8275 #include "confdefs.h"
8276 /* System header to define __stub macros and hopefully few prototypes,
8277 which can conflict with char $ac_func (); below. */
8278 #include <assert.h>
8279 /* Override any gcc2 internal prototype to avoid an error. */
8280 #ifdef __cplusplus
8281 extern "C"
8282 #endif
8283 /* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8285 char $ac_func ();
8286 char (*f) ();
8287
8288 int
8289 main ()
8290 {
8291 /* The GNU C library defines this for functions which it implements
8292 to always fail with ENOSYS. Some functions are actually named
8293 something starting with __ and the normal name is an alias. */
8294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8295 choke me
8296 #else
8297 f = $ac_func;
8298 #endif
8299
8300 ;
8301 return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (eval echo "$as_me:8305: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>&5
8307 ac_status=$?
8308 echo "$as_me:8308: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -s conftest$ac_exeext'
8311 { (eval echo "$as_me:8311: \"$ac_try\"") >&5
8312 (eval $ac_try) 2>&5
8313 ac_status=$?
8314 echo "$as_me:8314: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 eval "$as_ac_var=yes"
8317 else
8318 echo "$as_me: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8320 eval "$as_ac_var=no"
8321 fi
8322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8323 fi
8324 echo "$as_me:8324: result: `eval echo '${'$as_ac_var'}'`" >&5
8325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8326 if test `eval echo '${'$as_ac_var'}'` = yes; then
8327 cat >>confdefs.h <<EOF
8328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8329 EOF
8330
8331 fi
8332 done
8333
8334 for ac_header in sys/time.h unistd.h
8335 do
8336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8337 echo "$as_me:8337: checking for $ac_header" >&5
8338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342 cat >conftest.$ac_ext <<_ACEOF
8343 #line 8343 "configure"
8344 #include "confdefs.h"
8345 #include <$ac_header>
8346 _ACEOF
8347 if { (eval echo "$as_me:8347: \"$ac_cpp conftest.$ac_ext\"") >&5
8348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8349 ac_status=$?
8350 egrep -v '^ *\+' conftest.er1 >conftest.err
8351 rm -f conftest.er1
8352 cat conftest.err >&5
8353 echo "$as_me:8353: \$? = $ac_status" >&5
8354 (exit $ac_status); } >/dev/null; then
8355 if test -s conftest.err; then
8356 ac_cpp_err=$ac_c_preproc_warn_flag
8357 else
8358 ac_cpp_err=
8359 fi
8360 else
8361 ac_cpp_err=yes
8362 fi
8363 if test -z "$ac_cpp_err"; then
8364 eval "$as_ac_Header=yes"
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 cat conftest.$ac_ext >&5
8368 eval "$as_ac_Header=no"
8369 fi
8370 rm -f conftest.err conftest.$ac_ext
8371 fi
8372 echo "$as_me:8372: result: `eval echo '${'$as_ac_Header'}'`" >&5
8373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8375 cat >>confdefs.h <<EOF
8376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8377 EOF
8378
8379 fi
8380 done
8381
8382 for ac_func in alarm
8383 do
8384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8385 echo "$as_me:8385: checking for $ac_func" >&5
8386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8387 if eval "test \"\${$as_ac_var+set}\" = set"; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390 cat >conftest.$ac_ext <<_ACEOF
8391 #line 8391 "configure"
8392 #include "confdefs.h"
8393 /* System header to define __stub macros and hopefully few prototypes,
8394 which can conflict with char $ac_func (); below. */
8395 #include <assert.h>
8396 /* Override any gcc2 internal prototype to avoid an error. */
8397 #ifdef __cplusplus
8398 extern "C"
8399 #endif
8400 /* We use char because int might match the return type of a gcc2
8401 builtin and then its argument prototype would still apply. */
8402 char $ac_func ();
8403 char (*f) ();
8404
8405 int
8406 main ()
8407 {
8408 /* The GNU C library defines this for functions which it implements
8409 to always fail with ENOSYS. Some functions are actually named
8410 something starting with __ and the normal name is an alias. */
8411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8412 choke me
8413 #else
8414 f = $ac_func;
8415 #endif
8416
8417 ;
8418 return 0;
8419 }
8420 _ACEOF
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (eval echo "$as_me:8422: \"$ac_link\"") >&5
8423 (eval $ac_link) 2>&5
8424 ac_status=$?
8425 echo "$as_me:8425: \$? = $ac_status" >&5
8426 (exit $ac_status); } &&
8427 { ac_try='test -s conftest$ac_exeext'
8428 { (eval echo "$as_me:8428: \"$ac_try\"") >&5
8429 (eval $ac_try) 2>&5
8430 ac_status=$?
8431 echo "$as_me:8431: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 eval "$as_ac_var=yes"
8434 else
8435 echo "$as_me: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8437 eval "$as_ac_var=no"
8438 fi
8439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8440 fi
8441 echo "$as_me:8441: result: `eval echo '${'$as_ac_var'}'`" >&5
8442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8443 if test `eval echo '${'$as_ac_var'}'` = yes; then
8444 cat >>confdefs.h <<EOF
8445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8446 EOF
8447
8448 fi
8449 done
8450
8451 echo "$as_me:8451: checking for working mktime" >&5
8452 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8453 if test "${ac_cv_func_working_mktime+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456 if test "$cross_compiling" = yes; then
8457 ac_cv_func_working_mktime=no
8458 else
8459 cat >conftest.$ac_ext <<_ACEOF
8460 #line 8460 "configure"
8461 #include "confdefs.h"
8462 /* Test program from Paul Eggert and Tony Leneis. */
8463 #if TIME_WITH_SYS_TIME
8464 # include <sys/time.h>
8465 # include <time.h>
8466 #else
8467 # if HAVE_SYS_TIME_H
8468 # include <sys/time.h>
8469 # else
8470 # include <time.h>
8471 # endif
8472 #endif
8473
8474 #if HAVE_UNISTD_H
8475 # include <unistd.h>
8476 #endif
8477
8478 #if !HAVE_ALARM
8479 # define alarm(X) /* empty */
8480 #endif
8481
8482 /* Work around redefinition to rpl_putenv by other config tests. */
8483 #undef putenv
8484
8485 static time_t time_t_max;
8486
8487 /* Values we'll use to set the TZ environment variable. */
8488 static const char *const tz_strings[] = {
8489 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8490 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8491 };
8492 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8493
8494 /* Fail if mktime fails to convert a date in the spring-forward gap.
8495 Based on a problem report from Andreas Jaeger. */
8496 static void
8497 spring_forward_gap ()
8498 {
8499 /* glibc (up to about 1998-10-07) failed this test. */
8500 struct tm tm;
8501
8502 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8503 instead of "TZ=America/Vancouver" in order to detect the bug even
8504 on systems that don't support the Olson extension, or don't have the
8505 full zoneinfo tables installed. */
8506 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8507
8508 tm.tm_year = 98;
8509 tm.tm_mon = 3;
8510 tm.tm_mday = 5;
8511 tm.tm_hour = 2;
8512 tm.tm_min = 0;
8513 tm.tm_sec = 0;
8514 tm.tm_isdst = -1;
8515 if (mktime (&tm) == (time_t)-1)
8516 exit (1);
8517 }
8518
8519 static void
8520 mktime_test (now)
8521 time_t now;
8522 {
8523 struct tm *lt;
8524 if ((lt = localtime (&now)) && mktime (lt) != now)
8525 exit (1);
8526 now = time_t_max - now;
8527 if ((lt = localtime (&now)) && mktime (lt) != now)
8528 exit (1);
8529 }
8530
8531 static void
8532 irix_6_4_bug ()
8533 {
8534 /* Based on code from Ariel Faigon. */
8535 struct tm tm;
8536 tm.tm_year = 96;
8537 tm.tm_mon = 3;
8538 tm.tm_mday = 0;
8539 tm.tm_hour = 0;
8540 tm.tm_min = 0;
8541 tm.tm_sec = 0;
8542 tm.tm_isdst = -1;
8543 mktime (&tm);
8544 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8545 exit (1);
8546 }
8547
8548 static void
8549 bigtime_test (j)
8550 int j;
8551 {
8552 struct tm tm;
8553 time_t now;
8554 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8555 now = mktime (&tm);
8556 if (now != (time_t) -1)
8557 {
8558 struct tm *lt = localtime (&now);
8559 if (! (lt
8560 && lt->tm_year == tm.tm_year
8561 && lt->tm_mon == tm.tm_mon
8562 && lt->tm_mday == tm.tm_mday
8563 && lt->tm_hour == tm.tm_hour
8564 && lt->tm_min == tm.tm_min
8565 && lt->tm_sec == tm.tm_sec
8566 && lt->tm_yday == tm.tm_yday
8567 && lt->tm_wday == tm.tm_wday
8568 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8569 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8570 exit (1);
8571 }
8572 }
8573
8574 int
8575 main ()
8576 {
8577 time_t t, delta;
8578 int i, j;
8579
8580 /* This test makes some buggy mktime implementations loop.
8581 Give up after 60 seconds; a mktime slower than that
8582 isn't worth using anyway. */
8583 alarm (60);
8584
8585 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8586 continue;
8587 time_t_max--;
8588 delta = time_t_max / 997; /* a suitable prime number */
8589 for (i = 0; i < N_STRINGS; i++)
8590 {
8591 if (tz_strings[i])
8592 putenv (tz_strings[i]);
8593
8594 for (t = 0; t <= time_t_max - delta; t += delta)
8595 mktime_test (t);
8596 mktime_test ((time_t) 60 * 60);
8597 mktime_test ((time_t) 60 * 60 * 24);
8598
8599 for (j = 1; 0 < j; j *= 2)
8600 bigtime_test (j);
8601 bigtime_test (j - 1);
8602 }
8603 irix_6_4_bug ();
8604 spring_forward_gap ();
8605 exit (0);
8606 }
8607 _ACEOF
8608 rm -f conftest$ac_exeext
8609 if { (eval echo "$as_me:8609: \"$ac_link\"") >&5
8610 (eval $ac_link) 2>&5
8611 ac_status=$?
8612 echo "$as_me:8612: \$? = $ac_status" >&5
8613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8614 { (eval echo "$as_me:8614: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:8617: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 ac_cv_func_working_mktime=yes
8620 else
8621 echo "$as_me: program exited with status $ac_status" >&5
8622 echo "$as_me: failed program was:" >&5
8623 cat conftest.$ac_ext >&5
8624 ac_cv_func_working_mktime=no
8625 fi
8626 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8627 fi
8628 fi
8629 echo "$as_me:8629: result: $ac_cv_func_working_mktime" >&5
8630 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8631 if test $ac_cv_func_working_mktime = no; then
8632 LIBOBJS="$LIBOBJS mktime.$ac_objext"
8633 fi
8634
8635 if test "$ac_cv_func_working_mktime" = no; then
8636 cat >>confdefs.h <<\EOF
8637 #define BROKEN_MKTIME 1
8638 EOF
8639
8640 fi
8641
8642 ac_have_func=no # yes means we've found a way to get the load average.
8643
8644 ac_save_LIBS=$LIBS
8645
8646 # Check for getloadavg, but be sure not to touch the cache variable.
8647 (echo "$as_me:8647: checking for getloadavg" >&5
8648 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8649 if test "${ac_cv_func_getloadavg+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652 cat >conftest.$ac_ext <<_ACEOF
8653 #line 8653 "configure"
8654 #include "confdefs.h"
8655 /* System header to define __stub macros and hopefully few prototypes,
8656 which can conflict with char getloadavg (); below. */
8657 #include <assert.h>
8658 /* Override any gcc2 internal prototype to avoid an error. */
8659 #ifdef __cplusplus
8660 extern "C"
8661 #endif
8662 /* We use char because int might match the return type of a gcc2
8663 builtin and then its argument prototype would still apply. */
8664 char getloadavg ();
8665 char (*f) ();
8666
8667 int
8668 main ()
8669 {
8670 /* The GNU C library defines this for functions which it implements
8671 to always fail with ENOSYS. Some functions are actually named
8672 something starting with __ and the normal name is an alias. */
8673 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8674 choke me
8675 #else
8676 f = getloadavg;
8677 #endif
8678
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (eval echo "$as_me:8684: \"$ac_link\"") >&5
8685 (eval $ac_link) 2>&5
8686 ac_status=$?
8687 echo "$as_me:8687: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -s conftest$ac_exeext'
8690 { (eval echo "$as_me:8690: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:8693: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 ac_cv_func_getloadavg=yes
8696 else
8697 echo "$as_me: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8699 ac_cv_func_getloadavg=no
8700 fi
8701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8702 fi
8703 echo "$as_me:8703: result: $ac_cv_func_getloadavg" >&5
8704 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8705 if test $ac_cv_func_getloadavg = yes; then
8706 exit 0
8707 else
8708 exit 1
8709 fi
8710 ) && ac_have_func=yes
8711
8712 # On HPUX9, an unprivileged user can get load averages through this function.
8713
8714 for ac_func in pstat_getdynamic
8715 do
8716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8717 echo "$as_me:8717: checking for $ac_func" >&5
8718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8719 if eval "test \"\${$as_ac_var+set}\" = set"; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line 8723 "configure"
8724 #include "confdefs.h"
8725 /* System header to define __stub macros and hopefully few prototypes,
8726 which can conflict with char $ac_func (); below. */
8727 #include <assert.h>
8728 /* Override any gcc2 internal prototype to avoid an error. */
8729 #ifdef __cplusplus
8730 extern "C"
8731 #endif
8732 /* We use char because int might match the return type of a gcc2
8733 builtin and then its argument prototype would still apply. */
8734 char $ac_func ();
8735 char (*f) ();
8736
8737 int
8738 main ()
8739 {
8740 /* The GNU C library defines this for functions which it implements
8741 to always fail with ENOSYS. Some functions are actually named
8742 something starting with __ and the normal name is an alias. */
8743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8744 choke me
8745 #else
8746 f = $ac_func;
8747 #endif
8748
8749 ;
8750 return 0;
8751 }
8752 _ACEOF
8753 rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (eval echo "$as_me:8754: \"$ac_link\"") >&5
8755 (eval $ac_link) 2>&5
8756 ac_status=$?
8757 echo "$as_me:8757: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -s conftest$ac_exeext'
8760 { (eval echo "$as_me:8760: \"$ac_try\"") >&5
8761 (eval $ac_try) 2>&5
8762 ac_status=$?
8763 echo "$as_me:8763: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8765 eval "$as_ac_var=yes"
8766 else
8767 echo "$as_me: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8769 eval "$as_ac_var=no"
8770 fi
8771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8772 fi
8773 echo "$as_me:8773: result: `eval echo '${'$as_ac_var'}'`" >&5
8774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8775 if test `eval echo '${'$as_ac_var'}'` = yes; then
8776 cat >>confdefs.h <<EOF
8777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8778 EOF
8779
8780 fi
8781 done
8782
8783 # Solaris has libkstat which does not require root.
8784
8785 echo "$as_me:8785: checking for kstat_open in -lkstat" >&5
8786 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8787 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 ac_check_lib_save_LIBS=$LIBS
8791 LIBS="-lkstat $LIBS"
8792 cat >conftest.$ac_ext <<_ACEOF
8793 #line 8793 "configure"
8794 #include "confdefs.h"
8795
8796 /* Override any gcc2 internal prototype to avoid an error. */
8797 #ifdef __cplusplus
8798 extern "C"
8799 #endif
8800 /* We use char because int might match the return type of a gcc2
8801 builtin and then its argument prototype would still apply. */
8802 char kstat_open ();
8803 int
8804 main ()
8805 {
8806 kstat_open ();
8807 ;
8808 return 0;
8809 }
8810 _ACEOF
8811 rm -f conftest.$ac_objext conftest$ac_exeext
8812 if { (eval echo "$as_me:8812: \"$ac_link\"") >&5
8813 (eval $ac_link) 2>&5
8814 ac_status=$?
8815 echo "$as_me:8815: \$? = $ac_status" >&5
8816 (exit $ac_status); } &&
8817 { ac_try='test -s conftest$ac_exeext'
8818 { (eval echo "$as_me:8818: \"$ac_try\"") >&5
8819 (eval $ac_try) 2>&5
8820 ac_status=$?
8821 echo "$as_me:8821: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_cv_lib_kstat_kstat_open=yes
8824 else
8825 echo "$as_me: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8827 ac_cv_lib_kstat_kstat_open=no
8828 fi
8829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8830 LIBS=$ac_check_lib_save_LIBS
8831 fi
8832 echo "$as_me:8832: result: $ac_cv_lib_kstat_kstat_open" >&5
8833 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
8834 if test $ac_cv_lib_kstat_kstat_open = yes; then
8835 cat >>confdefs.h <<EOF
8836 #define HAVE_LIBKSTAT 1
8837 EOF
8838
8839 LIBS="-lkstat $LIBS"
8840
8841 fi
8842
8843 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
8844
8845 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8846 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8847 # to get the right answer into the cache.
8848 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
8849 if test $ac_have_func = no; then
8850 echo "$as_me:8850: checking for elf_begin in -lelf" >&5
8851 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
8852 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855 ac_check_lib_save_LIBS=$LIBS
8856 LIBS="-lelf $LIBS"
8857 cat >conftest.$ac_ext <<_ACEOF
8858 #line 8858 "configure"
8859 #include "confdefs.h"
8860
8861 /* Override any gcc2 internal prototype to avoid an error. */
8862 #ifdef __cplusplus
8863 extern "C"
8864 #endif
8865 /* We use char because int might match the return type of a gcc2
8866 builtin and then its argument prototype would still apply. */
8867 char elf_begin ();
8868 int
8869 main ()
8870 {
8871 elf_begin ();
8872 ;
8873 return 0;
8874 }
8875 _ACEOF
8876 rm -f conftest.$ac_objext conftest$ac_exeext
8877 if { (eval echo "$as_me:8877: \"$ac_link\"") >&5
8878 (eval $ac_link) 2>&5
8879 ac_status=$?
8880 echo "$as_me:8880: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -s conftest$ac_exeext'
8883 { (eval echo "$as_me:8883: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:8886: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_lib_elf_elf_begin=yes
8889 else
8890 echo "$as_me: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8892 ac_cv_lib_elf_elf_begin=no
8893 fi
8894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8895 LIBS=$ac_check_lib_save_LIBS
8896 fi
8897 echo "$as_me:8897: result: $ac_cv_lib_elf_elf_begin" >&5
8898 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
8899 if test $ac_cv_lib_elf_elf_begin = yes; then
8900 LIBS="-lelf $LIBS"
8901 fi
8902
8903 fi
8904 if test $ac_have_func = no; then
8905 echo "$as_me:8905: checking for kvm_open in -lkvm" >&5
8906 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
8907 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910 ac_check_lib_save_LIBS=$LIBS
8911 LIBS="-lkvm $LIBS"
8912 cat >conftest.$ac_ext <<_ACEOF
8913 #line 8913 "configure"
8914 #include "confdefs.h"
8915
8916 /* Override any gcc2 internal prototype to avoid an error. */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 /* We use char because int might match the return type of a gcc2
8921 builtin and then its argument prototype would still apply. */
8922 char kvm_open ();
8923 int
8924 main ()
8925 {
8926 kvm_open ();
8927 ;
8928 return 0;
8929 }
8930 _ACEOF
8931 rm -f conftest.$ac_objext conftest$ac_exeext
8932 if { (eval echo "$as_me:8932: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>&5
8934 ac_status=$?
8935 echo "$as_me:8935: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:8938: \"$ac_try\"") >&5
8939 (eval $ac_try) 2>&5
8940 ac_status=$?
8941 echo "$as_me:8941: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_cv_lib_kvm_kvm_open=yes
8944 else
8945 echo "$as_me: failed program was:" >&5
8946 cat conftest.$ac_ext >&5
8947 ac_cv_lib_kvm_kvm_open=no
8948 fi
8949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8950 LIBS=$ac_check_lib_save_LIBS
8951 fi
8952 echo "$as_me:8952: result: $ac_cv_lib_kvm_kvm_open" >&5
8953 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
8954 if test $ac_cv_lib_kvm_kvm_open = yes; then
8955 LIBS="-lkvm $LIBS"
8956 fi
8957
8958 # Check for the 4.4BSD definition of getloadavg.
8959 echo "$as_me:8959: checking for getloadavg in -lutil" >&5
8960 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
8961 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 else
8964 ac_check_lib_save_LIBS=$LIBS
8965 LIBS="-lutil $LIBS"
8966 cat >conftest.$ac_ext <<_ACEOF
8967 #line 8967 "configure"
8968 #include "confdefs.h"
8969
8970 /* Override any gcc2 internal prototype to avoid an error. */
8971 #ifdef __cplusplus
8972 extern "C"
8973 #endif
8974 /* We use char because int might match the return type of a gcc2
8975 builtin and then its argument prototype would still apply. */
8976 char getloadavg ();
8977 int
8978 main ()
8979 {
8980 getloadavg ();
8981 ;
8982 return 0;
8983 }
8984 _ACEOF
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:8986: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>&5
8988 ac_status=$?
8989 echo "$as_me:8989: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -s conftest$ac_exeext'
8992 { (eval echo "$as_me:8992: \"$ac_try\"") >&5
8993 (eval $ac_try) 2>&5
8994 ac_status=$?
8995 echo "$as_me:8995: \$? = $ac_status" >&5
8996 (exit $ac_status); }; }; then
8997 ac_cv_lib_util_getloadavg=yes
8998 else
8999 echo "$as_me: failed program was:" >&5
9000 cat conftest.$ac_ext >&5
9001 ac_cv_lib_util_getloadavg=no
9002 fi
9003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9004 LIBS=$ac_check_lib_save_LIBS
9005 fi
9006 echo "$as_me:9006: result: $ac_cv_lib_util_getloadavg" >&5
9007 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9008 if test $ac_cv_lib_util_getloadavg = yes; then
9009 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
9010 fi
9011
9012 fi
9013
9014 if test $ac_have_func = no; then
9015 # There is a commonly available library for RS/6000 AIX.
9016 # Since it is not a standard part of AIX, it might be installed locally.
9017 ac_getloadavg_LIBS=$LIBS
9018 LIBS="-L/usr/local/lib $LIBS"
9019 echo "$as_me:9019: checking for getloadavg in -lgetloadavg" >&5
9020 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9021 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lgetloadavg $LIBS"
9026 cat >conftest.$ac_ext <<_ACEOF
9027 #line 9027 "configure"
9028 #include "confdefs.h"
9029
9030 /* Override any gcc2 internal prototype to avoid an error. */
9031 #ifdef __cplusplus
9032 extern "C"
9033 #endif
9034 /* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9036 char getloadavg ();
9037 int
9038 main ()
9039 {
9040 getloadavg ();
9041 ;
9042 return 0;
9043 }
9044 _ACEOF
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (eval echo "$as_me:9046: \"$ac_link\"") >&5
9047 (eval $ac_link) 2>&5
9048 ac_status=$?
9049 echo "$as_me:9049: \$? = $ac_status" >&5
9050 (exit $ac_status); } &&
9051 { ac_try='test -s conftest$ac_exeext'
9052 { (eval echo "$as_me:9052: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:9055: \$? = $ac_status" >&5
9056 (exit $ac_status); }; }; then
9057 ac_cv_lib_getloadavg_getloadavg=yes
9058 else
9059 echo "$as_me: failed program was:" >&5
9060 cat conftest.$ac_ext >&5
9061 ac_cv_lib_getloadavg_getloadavg=no
9062 fi
9063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9064 LIBS=$ac_check_lib_save_LIBS
9065 fi
9066 echo "$as_me:9066: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9067 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9068 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9069 LIBS="-lgetloadavg $LIBS"
9070 else
9071 LIBS=$ac_getloadavg_LIBS
9072 fi
9073
9074 fi
9075
9076 # Make sure it is really in the library, if we think we found it,
9077 # otherwise set up the replacement function.
9078
9079 for ac_func in getloadavg
9080 do
9081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9082 echo "$as_me:9082: checking for $ac_func" >&5
9083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9084 if eval "test \"\${$as_ac_var+set}\" = set"; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line 9088 "configure"
9089 #include "confdefs.h"
9090 /* System header to define __stub macros and hopefully few prototypes,
9091 which can conflict with char $ac_func (); below. */
9092 #include <assert.h>
9093 /* Override any gcc2 internal prototype to avoid an error. */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 /* We use char because int might match the return type of a gcc2
9098 builtin and then its argument prototype would still apply. */
9099 char $ac_func ();
9100 char (*f) ();
9101
9102 int
9103 main ()
9104 {
9105 /* The GNU C library defines this for functions which it implements
9106 to always fail with ENOSYS. Some functions are actually named
9107 something starting with __ and the normal name is an alias. */
9108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9109 choke me
9110 #else
9111 f = $ac_func;
9112 #endif
9113
9114 ;
9115 return 0;
9116 }
9117 _ACEOF
9118 rm -f conftest.$ac_objext conftest$ac_exeext
9119 if { (eval echo "$as_me:9119: \"$ac_link\"") >&5
9120 (eval $ac_link) 2>&5
9121 ac_status=$?
9122 echo "$as_me:9122: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:9125: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:9128: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 eval "$as_ac_var=yes"
9131 else
9132 echo "$as_me: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9134 eval "$as_ac_var=no"
9135 fi
9136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9137 fi
9138 echo "$as_me:9138: result: `eval echo '${'$as_ac_var'}'`" >&5
9139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9140 if test `eval echo '${'$as_ac_var'}'` = yes; then
9141 cat >>confdefs.h <<EOF
9142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9143 EOF
9144
9145 else
9146 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
9147
9148 cat >>confdefs.h <<\EOF
9149 #define C_GETLOADAVG 1
9150 EOF
9151
9152 # Figure out what our getloadavg.c needs.
9153 ac_have_func=no
9154 echo "$as_me:9154: checking for sys/dg_sys_info.h" >&5
9155 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9156 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159 cat >conftest.$ac_ext <<_ACEOF
9160 #line 9160 "configure"
9161 #include "confdefs.h"
9162 #include <sys/dg_sys_info.h>
9163 _ACEOF
9164 if { (eval echo "$as_me:9164: \"$ac_cpp conftest.$ac_ext\"") >&5
9165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9166 ac_status=$?
9167 egrep -v '^ *\+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 echo "$as_me:9170: \$? = $ac_status" >&5
9171 (exit $ac_status); } >/dev/null; then
9172 if test -s conftest.err; then
9173 ac_cpp_err=$ac_c_preproc_warn_flag
9174 else
9175 ac_cpp_err=
9176 fi
9177 else
9178 ac_cpp_err=yes
9179 fi
9180 if test -z "$ac_cpp_err"; then
9181 ac_cv_header_sys_dg_sys_info_h=yes
9182 else
9183 echo "$as_me: failed program was:" >&5
9184 cat conftest.$ac_ext >&5
9185 ac_cv_header_sys_dg_sys_info_h=no
9186 fi
9187 rm -f conftest.err conftest.$ac_ext
9188 fi
9189 echo "$as_me:9189: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9190 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9191 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9192 ac_have_func=yes
9193
9194 cat >>confdefs.h <<\EOF
9195 #define DGUX 1
9196 EOF
9197
9198 echo "$as_me:9198: checking for dg_sys_info in -ldgc" >&5
9199 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9200 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203 ac_check_lib_save_LIBS=$LIBS
9204 LIBS="-ldgc $LIBS"
9205 cat >conftest.$ac_ext <<_ACEOF
9206 #line 9206 "configure"
9207 #include "confdefs.h"
9208
9209 /* Override any gcc2 internal prototype to avoid an error. */
9210 #ifdef __cplusplus
9211 extern "C"
9212 #endif
9213 /* We use char because int might match the return type of a gcc2
9214 builtin and then its argument prototype would still apply. */
9215 char dg_sys_info ();
9216 int
9217 main ()
9218 {
9219 dg_sys_info ();
9220 ;
9221 return 0;
9222 }
9223 _ACEOF
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (eval echo "$as_me:9225: \"$ac_link\"") >&5
9226 (eval $ac_link) 2>&5
9227 ac_status=$?
9228 echo "$as_me:9228: \$? = $ac_status" >&5
9229 (exit $ac_status); } &&
9230 { ac_try='test -s conftest$ac_exeext'
9231 { (eval echo "$as_me:9231: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:9234: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_cv_lib_dgc_dg_sys_info=yes
9237 else
9238 echo "$as_me: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9240 ac_cv_lib_dgc_dg_sys_info=no
9241 fi
9242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9243 LIBS=$ac_check_lib_save_LIBS
9244 fi
9245 echo "$as_me:9245: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9246 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9247 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9248 cat >>confdefs.h <<EOF
9249 #define HAVE_LIBDGC 1
9250 EOF
9251
9252 LIBS="-ldgc $LIBS"
9253
9254 fi
9255
9256 fi
9257
9258 echo "$as_me:9258: checking for locale.h" >&5
9259 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9260 if test "${ac_cv_header_locale_h+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263 cat >conftest.$ac_ext <<_ACEOF
9264 #line 9264 "configure"
9265 #include "confdefs.h"
9266 #include <locale.h>
9267 _ACEOF
9268 if { (eval echo "$as_me:9268: \"$ac_cpp conftest.$ac_ext\"") >&5
9269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9270 ac_status=$?
9271 egrep -v '^ *\+' conftest.er1 >conftest.err
9272 rm -f conftest.er1
9273 cat conftest.err >&5
9274 echo "$as_me:9274: \$? = $ac_status" >&5
9275 (exit $ac_status); } >/dev/null; then
9276 if test -s conftest.err; then
9277 ac_cpp_err=$ac_c_preproc_warn_flag
9278 else
9279 ac_cpp_err=
9280 fi
9281 else
9282 ac_cpp_err=yes
9283 fi
9284 if test -z "$ac_cpp_err"; then
9285 ac_cv_header_locale_h=yes
9286 else
9287 echo "$as_me: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9289 ac_cv_header_locale_h=no
9290 fi
9291 rm -f conftest.err conftest.$ac_ext
9292 fi
9293 echo "$as_me:9293: result: $ac_cv_header_locale_h" >&5
9294 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9295
9296 for ac_func in setlocale
9297 do
9298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9299 echo "$as_me:9299: checking for $ac_func" >&5
9300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9301 if eval "test \"\${$as_ac_var+set}\" = set"; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304 cat >conftest.$ac_ext <<_ACEOF
9305 #line 9305 "configure"
9306 #include "confdefs.h"
9307 /* System header to define __stub macros and hopefully few prototypes,
9308 which can conflict with char $ac_func (); below. */
9309 #include <assert.h>
9310 /* Override any gcc2 internal prototype to avoid an error. */
9311 #ifdef __cplusplus
9312 extern "C"
9313 #endif
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9316 char $ac_func ();
9317 char (*f) ();
9318
9319 int
9320 main ()
9321 {
9322 /* The GNU C library defines this for functions which it implements
9323 to always fail with ENOSYS. Some functions are actually named
9324 something starting with __ and the normal name is an alias. */
9325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9326 choke me
9327 #else
9328 f = $ac_func;
9329 #endif
9330
9331 ;
9332 return 0;
9333 }
9334 _ACEOF
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (eval echo "$as_me:9336: \"$ac_link\"") >&5
9337 (eval $ac_link) 2>&5
9338 ac_status=$?
9339 echo "$as_me:9339: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
9341 { ac_try='test -s conftest$ac_exeext'
9342 { (eval echo "$as_me:9342: \"$ac_try\"") >&5
9343 (eval $ac_try) 2>&5
9344 ac_status=$?
9345 echo "$as_me:9345: \$? = $ac_status" >&5
9346 (exit $ac_status); }; }; then
9347 eval "$as_ac_var=yes"
9348 else
9349 echo "$as_me: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9351 eval "$as_ac_var=no"
9352 fi
9353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9354 fi
9355 echo "$as_me:9355: result: `eval echo '${'$as_ac_var'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9357 if test `eval echo '${'$as_ac_var'}'` = yes; then
9358 cat >>confdefs.h <<EOF
9359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9360 EOF
9361
9362 fi
9363 done
9364
9365 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9366 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9367 # Irix 4.0.5F has the header but not the library.
9368 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
9369 ac_have_func=yes
9370
9371 cat >>confdefs.h <<\EOF
9372 #define SVR4 1
9373 EOF
9374
9375 fi
9376
9377 if test $ac_have_func = no; then
9378 echo "$as_me:9378: checking for inq_stats/cpustats.h" >&5
9379 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9380 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9382 else
9383 cat >conftest.$ac_ext <<_ACEOF
9384 #line 9384 "configure"
9385 #include "confdefs.h"
9386 #include <inq_stats/cpustats.h>
9387 _ACEOF
9388 if { (eval echo "$as_me:9388: \"$ac_cpp conftest.$ac_ext\"") >&5
9389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9390 ac_status=$?
9391 egrep -v '^ *\+' conftest.er1 >conftest.err
9392 rm -f conftest.er1
9393 cat conftest.err >&5
9394 echo "$as_me:9394: \$? = $ac_status" >&5
9395 (exit $ac_status); } >/dev/null; then
9396 if test -s conftest.err; then
9397 ac_cpp_err=$ac_c_preproc_warn_flag
9398 else
9399 ac_cpp_err=
9400 fi
9401 else
9402 ac_cpp_err=yes
9403 fi
9404 if test -z "$ac_cpp_err"; then
9405 ac_cv_header_inq_stats_cpustats_h=yes
9406 else
9407 echo "$as_me: failed program was:" >&5
9408 cat conftest.$ac_ext >&5
9409 ac_cv_header_inq_stats_cpustats_h=no
9410 fi
9411 rm -f conftest.err conftest.$ac_ext
9412 fi
9413 echo "$as_me:9413: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9414 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9415 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9416 ac_have_func=yes
9417
9418 cat >>confdefs.h <<\EOF
9419 #define UMAX 1
9420 EOF
9421
9422 cat >>confdefs.h <<\EOF
9423 #define UMAX4_3 1
9424 EOF
9425
9426 fi
9427
9428 fi
9429
9430 if test $ac_have_func = no; then
9431 echo "$as_me:9431: checking for sys/cpustats.h" >&5
9432 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9433 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436 cat >conftest.$ac_ext <<_ACEOF
9437 #line 9437 "configure"
9438 #include "confdefs.h"
9439 #include <sys/cpustats.h>
9440 _ACEOF
9441 if { (eval echo "$as_me:9441: \"$ac_cpp conftest.$ac_ext\"") >&5
9442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9443 ac_status=$?
9444 egrep -v '^ *\+' conftest.er1 >conftest.err
9445 rm -f conftest.er1
9446 cat conftest.err >&5
9447 echo "$as_me:9447: \$? = $ac_status" >&5
9448 (exit $ac_status); } >/dev/null; then
9449 if test -s conftest.err; then
9450 ac_cpp_err=$ac_c_preproc_warn_flag
9451 else
9452 ac_cpp_err=
9453 fi
9454 else
9455 ac_cpp_err=yes
9456 fi
9457 if test -z "$ac_cpp_err"; then
9458 ac_cv_header_sys_cpustats_h=yes
9459 else
9460 echo "$as_me: failed program was:" >&5
9461 cat conftest.$ac_ext >&5
9462 ac_cv_header_sys_cpustats_h=no
9463 fi
9464 rm -f conftest.err conftest.$ac_ext
9465 fi
9466 echo "$as_me:9466: result: $ac_cv_header_sys_cpustats_h" >&5
9467 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9468 if test $ac_cv_header_sys_cpustats_h = yes; then
9469 ac_have_func=yes; cat >>confdefs.h <<\EOF
9470 #define UMAX 1
9471 EOF
9472
9473 fi
9474
9475 fi
9476
9477 if test $ac_have_func = no; then
9478
9479 for ac_header in mach/mach.h
9480 do
9481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9482 echo "$as_me:9482: checking for $ac_header" >&5
9483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487 cat >conftest.$ac_ext <<_ACEOF
9488 #line 9488 "configure"
9489 #include "confdefs.h"
9490 #include <$ac_header>
9491 _ACEOF
9492 if { (eval echo "$as_me:9492: \"$ac_cpp conftest.$ac_ext\"") >&5
9493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9494 ac_status=$?
9495 egrep -v '^ *\+' conftest.er1 >conftest.err
9496 rm -f conftest.er1
9497 cat conftest.err >&5
9498 echo "$as_me:9498: \$? = $ac_status" >&5
9499 (exit $ac_status); } >/dev/null; then
9500 if test -s conftest.err; then
9501 ac_cpp_err=$ac_c_preproc_warn_flag
9502 else
9503 ac_cpp_err=
9504 fi
9505 else
9506 ac_cpp_err=yes
9507 fi
9508 if test -z "$ac_cpp_err"; then
9509 eval "$as_ac_Header=yes"
9510 else
9511 echo "$as_me: failed program was:" >&5
9512 cat conftest.$ac_ext >&5
9513 eval "$as_ac_Header=no"
9514 fi
9515 rm -f conftest.err conftest.$ac_ext
9516 fi
9517 echo "$as_me:9517: result: `eval echo '${'$as_ac_Header'}'`" >&5
9518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9520 cat >>confdefs.h <<EOF
9521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9522 EOF
9523
9524 fi
9525 done
9526
9527 fi
9528
9529 for ac_header in nlist.h
9530 do
9531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9532 echo "$as_me:9532: checking for $ac_header" >&5
9533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537 cat >conftest.$ac_ext <<_ACEOF
9538 #line 9538 "configure"
9539 #include "confdefs.h"
9540 #include <$ac_header>
9541 _ACEOF
9542 if { (eval echo "$as_me:9542: \"$ac_cpp conftest.$ac_ext\"") >&5
9543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9544 ac_status=$?
9545 egrep -v '^ *\+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:9548: \$? = $ac_status" >&5
9549 (exit $ac_status); } >/dev/null; then
9550 if test -s conftest.err; then
9551 ac_cpp_err=$ac_c_preproc_warn_flag
9552 else
9553 ac_cpp_err=
9554 fi
9555 else
9556 ac_cpp_err=yes
9557 fi
9558 if test -z "$ac_cpp_err"; then
9559 eval "$as_ac_Header=yes"
9560 else
9561 echo "$as_me: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9563 eval "$as_ac_Header=no"
9564 fi
9565 rm -f conftest.err conftest.$ac_ext
9566 fi
9567 echo "$as_me:9567: result: `eval echo '${'$as_ac_Header'}'`" >&5
9568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9570 cat >>confdefs.h <<EOF
9571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9572 EOF
9573 echo "$as_me:9573: checking for struct nlist.n_un.n_name" >&5
9574 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9575 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578 cat >conftest.$ac_ext <<_ACEOF
9579 #line 9579 "configure"
9580 #include "confdefs.h"
9581 #include <nlist.h>
9582
9583 int
9584 main ()
9585 {
9586 static struct nlist ac_aggr;
9587 if (ac_aggr.n_un.n_name)
9588 return 0;
9589 ;
9590 return 0;
9591 }
9592 _ACEOF
9593 rm -f conftest.$ac_objext
9594 if { (eval echo "$as_me:9594: \"$ac_compile\"") >&5
9595 (eval $ac_compile) 2>&5
9596 ac_status=$?
9597 echo "$as_me:9597: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
9599 { ac_try='test -s conftest.$ac_objext'
9600 { (eval echo "$as_me:9600: \"$ac_try\"") >&5
9601 (eval $ac_try) 2>&5
9602 ac_status=$?
9603 echo "$as_me:9603: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 ac_cv_member_struct_nlist_n_un_n_name=yes
9606 else
9607 echo "$as_me: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 ac_cv_member_struct_nlist_n_un_n_name=no
9610 fi
9611 rm -f conftest.$ac_objext conftest.$ac_ext
9612 fi
9613 echo "$as_me:9613: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9614 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9615 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9616
9617 cat >>confdefs.h <<EOF
9618 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9619 EOF
9620
9621 cat >>confdefs.h <<\EOF
9622 #define NLIST_NAME_UNION 1
9623 EOF
9624
9625 fi
9626
9627 fi
9628 done
9629
9630 fi
9631 done
9632
9633 # Some definitions of getloadavg require that the program be installed setgid.
9634 echo "$as_me:9634: checking whether getloadavg requires setgid" >&5
9635 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9636 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639 cat >conftest.$ac_ext <<_ACEOF
9640 #line 9640 "configure"
9641 #include "confdefs.h"
9642 #include "$srcdir/getloadavg.c"
9643 #ifdef LDAV_PRIVILEGED
9644 Yowza Am I SETGID yet
9645 #endif
9646 _ACEOF
9647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9648 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
9649 ac_cv_func_getloadavg_setgid=yes
9650 else
9651 ac_cv_func_getloadavg_setgid=no
9652 fi
9653 rm -f conftest*
9654
9655 fi
9656 echo "$as_me:9656: result: $ac_cv_func_getloadavg_setgid" >&5
9657 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9658 if test $ac_cv_func_getloadavg_setgid = yes; then
9659 NEED_SETGID=true
9660
9661 cat >>confdefs.h <<\EOF
9662 #define GETLOADAVG_PRIVILEGED 1
9663 EOF
9664
9665 else
9666 NEED_SETGID=false
9667 fi
9668
9669 if test $ac_cv_func_getloadavg_setgid = yes; then
9670 echo "$as_me:9670: checking group of /dev/kmem" >&5
9671 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9672 if test "${ac_cv_group_kmem+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9676 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
9677 # If we got an error (system does not support symlinks), try without -L.
9678 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
9679 ac_cv_group_kmem=`echo $ac_ls_output \
9680 | sed -ne 's/[ ][ ]*/ /g;
9681 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9682 / /s/.* //;p;'`
9683
9684 fi
9685 echo "$as_me:9685: result: $ac_cv_group_kmem" >&5
9686 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9687 KMEM_GROUP=$ac_cv_group_kmem
9688 fi
9689 if test "x$ac_save_LIBS" = x; then
9690 GETLOADAVG_LIBS=$LIBS
9691 else
9692 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9693 fi
9694 LIBS=$ac_save_LIBS
9695
9696 echo "$as_me:9696: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9697 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9698 if test "${ac_cv_sys_largefile_source+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701 while :; do
9702 ac_cv_sys_largefile_source=no
9703 cat >conftest.$ac_ext <<_ACEOF
9704 #line 9704 "configure"
9705 #include "confdefs.h"
9706 #include <stdio.h>
9707 int
9708 main ()
9709 {
9710 return !fseeko;
9711 ;
9712 return 0;
9713 }
9714 _ACEOF
9715 rm -f conftest.$ac_objext
9716 if { (eval echo "$as_me:9716: \"$ac_compile\"") >&5
9717 (eval $ac_compile) 2>&5
9718 ac_status=$?
9719 echo "$as_me:9719: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try='test -s conftest.$ac_objext'
9722 { (eval echo "$as_me:9722: \"$ac_try\"") >&5
9723 (eval $ac_try) 2>&5
9724 ac_status=$?
9725 echo "$as_me:9725: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 break
9728 else
9729 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9731 fi
9732 rm -f conftest.$ac_objext conftest.$ac_ext
9733 cat >conftest.$ac_ext <<_ACEOF
9734 #line 9734 "configure"
9735 #include "confdefs.h"
9736 #define _LARGEFILE_SOURCE 1
9737 #include <stdio.h>
9738 int
9739 main ()
9740 {
9741 return !fseeko;
9742 ;
9743 return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext
9747 if { (eval echo "$as_me:9747: \"$ac_compile\"") >&5
9748 (eval $ac_compile) 2>&5
9749 ac_status=$?
9750 echo "$as_me:9750: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -s conftest.$ac_objext'
9753 { (eval echo "$as_me:9753: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:9756: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_cv_sys_largefile_source=1; break
9759 else
9760 echo "$as_me: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9762 fi
9763 rm -f conftest.$ac_objext conftest.$ac_ext
9764 break
9765 done
9766 fi
9767 echo "$as_me:9767: result: $ac_cv_sys_largefile_source" >&5
9768 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9769 if test "$ac_cv_sys_largefile_source" != no; then
9770
9771 cat >>confdefs.h <<EOF
9772 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9773 EOF
9774
9775 fi
9776 rm -f conftest*
9777
9778 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9779 # in glibc 2.1.3, but that breaks too many other things.
9780 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9781 echo "$as_me:9781: checking for fseeko" >&5
9782 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9783 if test "${ac_cv_func_fseeko+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786 cat >conftest.$ac_ext <<_ACEOF
9787 #line 9787 "configure"
9788 #include "confdefs.h"
9789 #include <stdio.h>
9790 int
9791 main ()
9792 {
9793 return fseeko && fseeko (stdin, 0, 0);
9794 ;
9795 return 0;
9796 }
9797 _ACEOF
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (eval echo "$as_me:9799: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>&5
9801 ac_status=$?
9802 echo "$as_me:9802: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (eval echo "$as_me:9805: \"$ac_try\"") >&5
9806 (eval $ac_try) 2>&5
9807 ac_status=$?
9808 echo "$as_me:9808: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_cv_func_fseeko=yes
9811 else
9812 echo "$as_me: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9814 ac_cv_func_fseeko=no
9815 fi
9816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9817 fi
9818 echo "$as_me:9818: result: $ac_cv_func_fseeko" >&5
9819 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9820 if test $ac_cv_func_fseeko = yes; then
9821
9822 cat >>confdefs.h <<\EOF
9823 #define HAVE_FSEEKO 1
9824 EOF
9825
9826 fi
9827
9828 # UNIX98 PTYs.
9829
9830 for ac_func in grantpt
9831 do
9832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9833 echo "$as_me:9833: checking for $ac_func" >&5
9834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9835 if eval "test \"\${$as_ac_var+set}\" = set"; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838 cat >conftest.$ac_ext <<_ACEOF
9839 #line 9839 "configure"
9840 #include "confdefs.h"
9841 /* System header to define __stub macros and hopefully few prototypes,
9842 which can conflict with char $ac_func (); below. */
9843 #include <assert.h>
9844 /* Override any gcc2 internal prototype to avoid an error. */
9845 #ifdef __cplusplus
9846 extern "C"
9847 #endif
9848 /* We use char because int might match the return type of a gcc2
9849 builtin and then its argument prototype would still apply. */
9850 char $ac_func ();
9851 char (*f) ();
9852
9853 int
9854 main ()
9855 {
9856 /* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9860 choke me
9861 #else
9862 f = $ac_func;
9863 #endif
9864
9865 ;
9866 return 0;
9867 }
9868 _ACEOF
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (eval echo "$as_me:9870: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>&5
9872 ac_status=$?
9873 echo "$as_me:9873: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (eval echo "$as_me:9876: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:9879: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 eval "$as_ac_var=yes"
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9885 eval "$as_ac_var=no"
9886 fi
9887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9888 fi
9889 echo "$as_me:9889: result: `eval echo '${'$as_ac_var'}'`" >&5
9890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9891 if test `eval echo '${'$as_ac_var'}'` = yes; then
9892 cat >>confdefs.h <<EOF
9893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9894 EOF
9895
9896 fi
9897 done
9898
9899 # PTY-related GNU extensions.
9900
9901 for ac_func in getpt
9902 do
9903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9904 echo "$as_me:9904: checking for $ac_func" >&5
9905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9906 if eval "test \"\${$as_ac_var+set}\" = set"; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909 cat >conftest.$ac_ext <<_ACEOF
9910 #line 9910 "configure"
9911 #include "confdefs.h"
9912 /* System header to define __stub macros and hopefully few prototypes,
9913 which can conflict with char $ac_func (); below. */
9914 #include <assert.h>
9915 /* Override any gcc2 internal prototype to avoid an error. */
9916 #ifdef __cplusplus
9917 extern "C"
9918 #endif
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9921 char $ac_func ();
9922 char (*f) ();
9923
9924 int
9925 main ()
9926 {
9927 /* The GNU C library defines this for functions which it implements
9928 to always fail with ENOSYS. Some functions are actually named
9929 something starting with __ and the normal name is an alias. */
9930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9931 choke me
9932 #else
9933 f = $ac_func;
9934 #endif
9935
9936 ;
9937 return 0;
9938 }
9939 _ACEOF
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (eval echo "$as_me:9941: \"$ac_link\"") >&5
9942 (eval $ac_link) 2>&5
9943 ac_status=$?
9944 echo "$as_me:9944: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -s conftest$ac_exeext'
9947 { (eval echo "$as_me:9947: \"$ac_try\"") >&5
9948 (eval $ac_try) 2>&5
9949 ac_status=$?
9950 echo "$as_me:9950: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 eval "$as_ac_var=yes"
9953 else
9954 echo "$as_me: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 eval "$as_ac_var=no"
9957 fi
9958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9959 fi
9960 echo "$as_me:9960: result: `eval echo '${'$as_ac_var'}'`" >&5
9961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9962 if test `eval echo '${'$as_ac_var'}'` = yes; then
9963 cat >>confdefs.h <<EOF
9964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9965 EOF
9966
9967 fi
9968 done
9969
9970 # Check this now, so that we will NOT find the above functions in ncurses.
9971 # That is because we have not set up to link ncurses in lib-src.
9972 # It's better to believe a function is not available
9973 # than to expect to find it in ncurses.
9974
9975 echo "$as_me:9975: checking for tparm in -lncurses" >&5
9976 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
9977 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980 ac_check_lib_save_LIBS=$LIBS
9981 LIBS="-lncurses $LIBS"
9982 cat >conftest.$ac_ext <<_ACEOF
9983 #line 9983 "configure"
9984 #include "confdefs.h"
9985
9986 /* Override any gcc2 internal prototype to avoid an error. */
9987 #ifdef __cplusplus
9988 extern "C"
9989 #endif
9990 /* We use char because int might match the return type of a gcc2
9991 builtin and then its argument prototype would still apply. */
9992 char tparm ();
9993 int
9994 main ()
9995 {
9996 tparm ();
9997 ;
9998 return 0;
9999 }
10000 _ACEOF
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (eval echo "$as_me:10002: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
10004 ac_status=$?
10005 echo "$as_me:10005: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -s conftest$ac_exeext'
10008 { (eval echo "$as_me:10008: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10010 ac_status=$?
10011 echo "$as_me:10011: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 ac_cv_lib_ncurses_tparm=yes
10014 else
10015 echo "$as_me: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10017 ac_cv_lib_ncurses_tparm=no
10018 fi
10019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10020 LIBS=$ac_check_lib_save_LIBS
10021 fi
10022 echo "$as_me:10022: result: $ac_cv_lib_ncurses_tparm" >&5
10023 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10024 if test $ac_cv_lib_ncurses_tparm = yes; then
10025 cat >>confdefs.h <<EOF
10026 #define HAVE_LIBNCURSES 1
10027 EOF
10028
10029 LIBS="-lncurses $LIBS"
10030
10031 fi
10032
10033 # Do we need the Hesiod library to provide the support routines?
10034 if test "$with_hesiod" = yes ; then
10035 # Don't set $LIBS here -- see comments above.
10036 resolv=no
10037 echo "$as_me:10037: checking for res_send" >&5
10038 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10039 if test "${ac_cv_func_res_send+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042 cat >conftest.$ac_ext <<_ACEOF
10043 #line 10043 "configure"
10044 #include "confdefs.h"
10045 /* System header to define __stub macros and hopefully few prototypes,
10046 which can conflict with char res_send (); below. */
10047 #include <assert.h>
10048 /* Override any gcc2 internal prototype to avoid an error. */
10049 #ifdef __cplusplus
10050 extern "C"
10051 #endif
10052 /* We use char because int might match the return type of a gcc2
10053 builtin and then its argument prototype would still apply. */
10054 char res_send ();
10055 char (*f) ();
10056
10057 int
10058 main ()
10059 {
10060 /* The GNU C library defines this for functions which it implements
10061 to always fail with ENOSYS. Some functions are actually named
10062 something starting with __ and the normal name is an alias. */
10063 #if defined (__stub_res_send) || defined (__stub___res_send)
10064 choke me
10065 #else
10066 f = res_send;
10067 #endif
10068
10069 ;
10070 return 0;
10071 }
10072 _ACEOF
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:10074: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>&5
10076 ac_status=$?
10077 echo "$as_me:10077: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
10079 { ac_try='test -s conftest$ac_exeext'
10080 { (eval echo "$as_me:10080: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10082 ac_status=$?
10083 echo "$as_me:10083: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_cv_func_res_send=yes
10086 else
10087 echo "$as_me: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 ac_cv_func_res_send=no
10090 fi
10091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10092 fi
10093 echo "$as_me:10093: result: $ac_cv_func_res_send" >&5
10094 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10095 if test $ac_cv_func_res_send = yes; then
10096 :
10097 else
10098 echo "$as_me:10098: checking for __res_send" >&5
10099 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10100 if test "${ac_cv_func___res_send+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103 cat >conftest.$ac_ext <<_ACEOF
10104 #line 10104 "configure"
10105 #include "confdefs.h"
10106 /* System header to define __stub macros and hopefully few prototypes,
10107 which can conflict with char __res_send (); below. */
10108 #include <assert.h>
10109 /* Override any gcc2 internal prototype to avoid an error. */
10110 #ifdef __cplusplus
10111 extern "C"
10112 #endif
10113 /* We use char because int might match the return type of a gcc2
10114 builtin and then its argument prototype would still apply. */
10115 char __res_send ();
10116 char (*f) ();
10117
10118 int
10119 main ()
10120 {
10121 /* The GNU C library defines this for functions which it implements
10122 to always fail with ENOSYS. Some functions are actually named
10123 something starting with __ and the normal name is an alias. */
10124 #if defined (__stub___res_send) || defined (__stub_____res_send)
10125 choke me
10126 #else
10127 f = __res_send;
10128 #endif
10129
10130 ;
10131 return 0;
10132 }
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (eval echo "$as_me:10135: \"$ac_link\"") >&5
10136 (eval $ac_link) 2>&5
10137 ac_status=$?
10138 echo "$as_me:10138: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
10140 { ac_try='test -s conftest$ac_exeext'
10141 { (eval echo "$as_me:10141: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10143 ac_status=$?
10144 echo "$as_me:10144: \$? = $ac_status" >&5
10145 (exit $ac_status); }; }; then
10146 ac_cv_func___res_send=yes
10147 else
10148 echo "$as_me: failed program was:" >&5
10149 cat conftest.$ac_ext >&5
10150 ac_cv_func___res_send=no
10151 fi
10152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10153 fi
10154 echo "$as_me:10154: result: $ac_cv_func___res_send" >&5
10155 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10156 if test $ac_cv_func___res_send = yes; then
10157 :
10158 else
10159 echo "$as_me:10159: checking for res_send in -lresolv" >&5
10160 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10161 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164 ac_check_lib_save_LIBS=$LIBS
10165 LIBS="-lresolv $LIBS"
10166 cat >conftest.$ac_ext <<_ACEOF
10167 #line 10167 "configure"
10168 #include "confdefs.h"
10169
10170 /* Override any gcc2 internal prototype to avoid an error. */
10171 #ifdef __cplusplus
10172 extern "C"
10173 #endif
10174 /* We use char because int might match the return type of a gcc2
10175 builtin and then its argument prototype would still apply. */
10176 char res_send ();
10177 int
10178 main ()
10179 {
10180 res_send ();
10181 ;
10182 return 0;
10183 }
10184 _ACEOF
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (eval echo "$as_me:10186: \"$ac_link\"") >&5
10187 (eval $ac_link) 2>&5
10188 ac_status=$?
10189 echo "$as_me:10189: \$? = $ac_status" >&5
10190 (exit $ac_status); } &&
10191 { ac_try='test -s conftest$ac_exeext'
10192 { (eval echo "$as_me:10192: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:10195: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_lib_resolv_res_send=yes
10198 else
10199 echo "$as_me: failed program was:" >&5
10200 cat conftest.$ac_ext >&5
10201 ac_cv_lib_resolv_res_send=no
10202 fi
10203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10205 fi
10206 echo "$as_me:10206: result: $ac_cv_lib_resolv_res_send" >&5
10207 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10208 if test $ac_cv_lib_resolv_res_send = yes; then
10209 resolv=yes
10210 else
10211 echo "$as_me:10211: checking for __res_send in -lresolv" >&5
10212 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10213 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216 ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-lresolv $LIBS"
10218 cat >conftest.$ac_ext <<_ACEOF
10219 #line 10219 "configure"
10220 #include "confdefs.h"
10221
10222 /* Override any gcc2 internal prototype to avoid an error. */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 /* We use char because int might match the return type of a gcc2
10227 builtin and then its argument prototype would still apply. */
10228 char __res_send ();
10229 int
10230 main ()
10231 {
10232 __res_send ();
10233 ;
10234 return 0;
10235 }
10236 _ACEOF
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (eval echo "$as_me:10238: \"$ac_link\"") >&5
10239 (eval $ac_link) 2>&5
10240 ac_status=$?
10241 echo "$as_me:10241: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:10244: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:10247: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_lib_resolv___res_send=yes
10250 else
10251 echo "$as_me: failed program was:" >&5
10252 cat conftest.$ac_ext >&5
10253 ac_cv_lib_resolv___res_send=no
10254 fi
10255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10257 fi
10258 echo "$as_me:10258: result: $ac_cv_lib_resolv___res_send" >&5
10259 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10260 if test $ac_cv_lib_resolv___res_send = yes; then
10261 resolv=yes
10262 fi
10263
10264 fi
10265
10266 fi
10267
10268 fi
10269
10270 if test "$resolv" = yes ; then
10271 RESOLVLIB=-lresolv
10272 cat >>confdefs.h <<\EOF
10273 #define HAVE_LIBRESOLV 1
10274 EOF
10275
10276 else
10277 RESOLVLIB=
10278 fi
10279 echo "$as_me:10279: checking for hes_getmailhost" >&5
10280 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10281 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284 cat >conftest.$ac_ext <<_ACEOF
10285 #line 10285 "configure"
10286 #include "confdefs.h"
10287 /* System header to define __stub macros and hopefully few prototypes,
10288 which can conflict with char hes_getmailhost (); below. */
10289 #include <assert.h>
10290 /* Override any gcc2 internal prototype to avoid an error. */
10291 #ifdef __cplusplus
10292 extern "C"
10293 #endif
10294 /* We use char because int might match the return type of a gcc2
10295 builtin and then its argument prototype would still apply. */
10296 char hes_getmailhost ();
10297 char (*f) ();
10298
10299 int
10300 main ()
10301 {
10302 /* The GNU C library defines this for functions which it implements
10303 to always fail with ENOSYS. Some functions are actually named
10304 something starting with __ and the normal name is an alias. */
10305 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10306 choke me
10307 #else
10308 f = hes_getmailhost;
10309 #endif
10310
10311 ;
10312 return 0;
10313 }
10314 _ACEOF
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (eval echo "$as_me:10316: \"$ac_link\"") >&5
10317 (eval $ac_link) 2>&5
10318 ac_status=$?
10319 echo "$as_me:10319: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try='test -s conftest$ac_exeext'
10322 { (eval echo "$as_me:10322: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10324 ac_status=$?
10325 echo "$as_me:10325: \$? = $ac_status" >&5
10326 (exit $ac_status); }; }; then
10327 ac_cv_func_hes_getmailhost=yes
10328 else
10329 echo "$as_me: failed program was:" >&5
10330 cat conftest.$ac_ext >&5
10331 ac_cv_func_hes_getmailhost=no
10332 fi
10333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10334 fi
10335 echo "$as_me:10335: result: $ac_cv_func_hes_getmailhost" >&5
10336 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10337 if test $ac_cv_func_hes_getmailhost = yes; then
10338 :
10339 else
10340 echo "$as_me:10340: checking for hes_getmailhost in -lhesiod" >&5
10341 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10342 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345 ac_check_lib_save_LIBS=$LIBS
10346 LIBS="-lhesiod $RESOLVLIB $LIBS"
10347 cat >conftest.$ac_ext <<_ACEOF
10348 #line 10348 "configure"
10349 #include "confdefs.h"
10350
10351 /* Override any gcc2 internal prototype to avoid an error. */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 /* We use char because int might match the return type of a gcc2
10356 builtin and then its argument prototype would still apply. */
10357 char hes_getmailhost ();
10358 int
10359 main ()
10360 {
10361 hes_getmailhost ();
10362 ;
10363 return 0;
10364 }
10365 _ACEOF
10366 rm -f conftest.$ac_objext conftest$ac_exeext
10367 if { (eval echo "$as_me:10367: \"$ac_link\"") >&5
10368 (eval $ac_link) 2>&5
10369 ac_status=$?
10370 echo "$as_me:10370: \$? = $ac_status" >&5
10371 (exit $ac_status); } &&
10372 { ac_try='test -s conftest$ac_exeext'
10373 { (eval echo "$as_me:10373: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10375 ac_status=$?
10376 echo "$as_me:10376: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10378 ac_cv_lib_hesiod_hes_getmailhost=yes
10379 else
10380 echo "$as_me: failed program was:" >&5
10381 cat conftest.$ac_ext >&5
10382 ac_cv_lib_hesiod_hes_getmailhost=no
10383 fi
10384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10385 LIBS=$ac_check_lib_save_LIBS
10386 fi
10387 echo "$as_me:10387: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10388 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10389 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10390 cat >>confdefs.h <<\EOF
10391 #define HAVE_LIBHESIOD 1
10392 EOF
10393
10394 else
10395 :
10396 fi
10397
10398 fi
10399
10400 fi
10401
10402 # These tell us which Kerberos-related libraries to use.
10403 if test "${with_kerberos+set}" = set; then
10404
10405 echo "$as_me:10405: checking for com_err in -lcom_err" >&5
10406 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10407 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 else
10410 ac_check_lib_save_LIBS=$LIBS
10411 LIBS="-lcom_err $LIBS"
10412 cat >conftest.$ac_ext <<_ACEOF
10413 #line 10413 "configure"
10414 #include "confdefs.h"
10415
10416 /* Override any gcc2 internal prototype to avoid an error. */
10417 #ifdef __cplusplus
10418 extern "C"
10419 #endif
10420 /* We use char because int might match the return type of a gcc2
10421 builtin and then its argument prototype would still apply. */
10422 char com_err ();
10423 int
10424 main ()
10425 {
10426 com_err ();
10427 ;
10428 return 0;
10429 }
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (eval echo "$as_me:10432: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>&5
10434 ac_status=$?
10435 echo "$as_me:10435: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -s conftest$ac_exeext'
10438 { (eval echo "$as_me:10438: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:10441: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_cv_lib_com_err_com_err=yes
10444 else
10445 echo "$as_me: failed program was:" >&5
10446 cat conftest.$ac_ext >&5
10447 ac_cv_lib_com_err_com_err=no
10448 fi
10449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10450 LIBS=$ac_check_lib_save_LIBS
10451 fi
10452 echo "$as_me:10452: result: $ac_cv_lib_com_err_com_err" >&5
10453 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10454 if test $ac_cv_lib_com_err_com_err = yes; then
10455 cat >>confdefs.h <<EOF
10456 #define HAVE_LIBCOM_ERR 1
10457 EOF
10458
10459 LIBS="-lcom_err $LIBS"
10460
10461 fi
10462
10463 echo "$as_me:10463: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10464 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10465 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468 ac_check_lib_save_LIBS=$LIBS
10469 LIBS="-lk5crypto $LIBS"
10470 cat >conftest.$ac_ext <<_ACEOF
10471 #line 10471 "configure"
10472 #include "confdefs.h"
10473
10474 /* Override any gcc2 internal prototype to avoid an error. */
10475 #ifdef __cplusplus
10476 extern "C"
10477 #endif
10478 /* We use char because int might match the return type of a gcc2
10479 builtin and then its argument prototype would still apply. */
10480 char mit_des_cbc_encrypt ();
10481 int
10482 main ()
10483 {
10484 mit_des_cbc_encrypt ();
10485 ;
10486 return 0;
10487 }
10488 _ACEOF
10489 rm -f conftest.$ac_objext conftest$ac_exeext
10490 if { (eval echo "$as_me:10490: \"$ac_link\"") >&5
10491 (eval $ac_link) 2>&5
10492 ac_status=$?
10493 echo "$as_me:10493: \$? = $ac_status" >&5
10494 (exit $ac_status); } &&
10495 { ac_try='test -s conftest$ac_exeext'
10496 { (eval echo "$as_me:10496: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10498 ac_status=$?
10499 echo "$as_me:10499: \$? = $ac_status" >&5
10500 (exit $ac_status); }; }; then
10501 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
10502 else
10503 echo "$as_me: failed program was:" >&5
10504 cat conftest.$ac_ext >&5
10505 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
10506 fi
10507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10508 LIBS=$ac_check_lib_save_LIBS
10509 fi
10510 echo "$as_me:10510: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10511 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10512 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10513 cat >>confdefs.h <<EOF
10514 #define HAVE_LIBK5CRYPTO 1
10515 EOF
10516
10517 LIBS="-lk5crypto $LIBS"
10518
10519 fi
10520
10521 echo "$as_me:10521: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10522 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10523 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526 ac_check_lib_save_LIBS=$LIBS
10527 LIBS="-lcrypto $LIBS"
10528 cat >conftest.$ac_ext <<_ACEOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10531
10532 /* Override any gcc2 internal prototype to avoid an error. */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 /* We use char because int might match the return type of a gcc2
10537 builtin and then its argument prototype would still apply. */
10538 char mit_des_cbc_encrypt ();
10539 int
10540 main ()
10541 {
10542 mit_des_cbc_encrypt ();
10543 ;
10544 return 0;
10545 }
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (eval echo "$as_me:10548: \"$ac_link\"") >&5
10549 (eval $ac_link) 2>&5
10550 ac_status=$?
10551 echo "$as_me:10551: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try='test -s conftest$ac_exeext'
10554 { (eval echo "$as_me:10554: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:10557: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
10560 else
10561 echo "$as_me: failed program was:" >&5
10562 cat conftest.$ac_ext >&5
10563 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
10564 fi
10565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10566 LIBS=$ac_check_lib_save_LIBS
10567 fi
10568 echo "$as_me:10568: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10569 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10570 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10571 cat >>confdefs.h <<EOF
10572 #define HAVE_LIBCRYPTO 1
10573 EOF
10574
10575 LIBS="-lcrypto $LIBS"
10576
10577 fi
10578
10579 echo "$as_me:10579: checking for krb5_init_context in -lkrb5" >&5
10580 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10581 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 else
10584 ac_check_lib_save_LIBS=$LIBS
10585 LIBS="-lkrb5 $LIBS"
10586 cat >conftest.$ac_ext <<_ACEOF
10587 #line 10587 "configure"
10588 #include "confdefs.h"
10589
10590 /* Override any gcc2 internal prototype to avoid an error. */
10591 #ifdef __cplusplus
10592 extern "C"
10593 #endif
10594 /* We use char because int might match the return type of a gcc2
10595 builtin and then its argument prototype would still apply. */
10596 char krb5_init_context ();
10597 int
10598 main ()
10599 {
10600 krb5_init_context ();
10601 ;
10602 return 0;
10603 }
10604 _ACEOF
10605 rm -f conftest.$ac_objext conftest$ac_exeext
10606 if { (eval echo "$as_me:10606: \"$ac_link\"") >&5
10607 (eval $ac_link) 2>&5
10608 ac_status=$?
10609 echo "$as_me:10609: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try='test -s conftest$ac_exeext'
10612 { (eval echo "$as_me:10612: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10614 ac_status=$?
10615 echo "$as_me:10615: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_lib_krb5_krb5_init_context=yes
10618 else
10619 echo "$as_me: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10621 ac_cv_lib_krb5_krb5_init_context=no
10622 fi
10623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10624 LIBS=$ac_check_lib_save_LIBS
10625 fi
10626 echo "$as_me:10626: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10627 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10628 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10629 cat >>confdefs.h <<EOF
10630 #define HAVE_LIBKRB5 1
10631 EOF
10632
10633 LIBS="-lkrb5 $LIBS"
10634
10635 fi
10636
10637 if test "${with_kerberos5+set}" != set; then
10638
10639 echo "$as_me:10639: checking for des_cbc_encrypt in -ldes425" >&5
10640 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10641 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 ac_check_lib_save_LIBS=$LIBS
10645 LIBS="-ldes425 $LIBS"
10646 cat >conftest.$ac_ext <<_ACEOF
10647 #line 10647 "configure"
10648 #include "confdefs.h"
10649
10650 /* Override any gcc2 internal prototype to avoid an error. */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 /* We use char because int might match the return type of a gcc2
10655 builtin and then its argument prototype would still apply. */
10656 char des_cbc_encrypt ();
10657 int
10658 main ()
10659 {
10660 des_cbc_encrypt ();
10661 ;
10662 return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (eval echo "$as_me:10666: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>&5
10668 ac_status=$?
10669 echo "$as_me:10669: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try='test -s conftest$ac_exeext'
10672 { (eval echo "$as_me:10672: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:10675: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_lib_des425_des_cbc_encrypt=yes
10678 else
10679 echo "$as_me: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 ac_cv_lib_des425_des_cbc_encrypt=no
10682 fi
10683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10684 LIBS=$ac_check_lib_save_LIBS
10685 fi
10686 echo "$as_me:10686: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10687 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10688 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10689 cat >>confdefs.h <<EOF
10690 #define HAVE_LIBDES425 1
10691 EOF
10692
10693 LIBS="-ldes425 $LIBS"
10694
10695 else
10696
10697 echo "$as_me:10697: checking for des_cbc_encrypt in -ldes" >&5
10698 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10699 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702 ac_check_lib_save_LIBS=$LIBS
10703 LIBS="-ldes $LIBS"
10704 cat >conftest.$ac_ext <<_ACEOF
10705 #line 10705 "configure"
10706 #include "confdefs.h"
10707
10708 /* Override any gcc2 internal prototype to avoid an error. */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 /* We use char because int might match the return type of a gcc2
10713 builtin and then its argument prototype would still apply. */
10714 char des_cbc_encrypt ();
10715 int
10716 main ()
10717 {
10718 des_cbc_encrypt ();
10719 ;
10720 return 0;
10721 }
10722 _ACEOF
10723 rm -f conftest.$ac_objext conftest$ac_exeext
10724 if { (eval echo "$as_me:10724: \"$ac_link\"") >&5
10725 (eval $ac_link) 2>&5
10726 ac_status=$?
10727 echo "$as_me:10727: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try='test -s conftest$ac_exeext'
10730 { (eval echo "$as_me:10730: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10732 ac_status=$?
10733 echo "$as_me:10733: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_cv_lib_des_des_cbc_encrypt=yes
10736 else
10737 echo "$as_me: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10739 ac_cv_lib_des_des_cbc_encrypt=no
10740 fi
10741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10743 fi
10744 echo "$as_me:10744: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10745 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
10746 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
10747 cat >>confdefs.h <<EOF
10748 #define HAVE_LIBDES 1
10749 EOF
10750
10751 LIBS="-ldes $LIBS"
10752
10753 fi
10754
10755 fi
10756
10757 echo "$as_me:10757: checking for krb_get_cred in -lkrb4" >&5
10758 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
10759 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10762 ac_check_lib_save_LIBS=$LIBS
10763 LIBS="-lkrb4 $LIBS"
10764 cat >conftest.$ac_ext <<_ACEOF
10765 #line 10765 "configure"
10766 #include "confdefs.h"
10767
10768 /* Override any gcc2 internal prototype to avoid an error. */
10769 #ifdef __cplusplus
10770 extern "C"
10771 #endif
10772 /* We use char because int might match the return type of a gcc2
10773 builtin and then its argument prototype would still apply. */
10774 char krb_get_cred ();
10775 int
10776 main ()
10777 {
10778 krb_get_cred ();
10779 ;
10780 return 0;
10781 }
10782 _ACEOF
10783 rm -f conftest.$ac_objext conftest$ac_exeext
10784 if { (eval echo "$as_me:10784: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>&5
10786 ac_status=$?
10787 echo "$as_me:10787: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try='test -s conftest$ac_exeext'
10790 { (eval echo "$as_me:10790: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10792 ac_status=$?
10793 echo "$as_me:10793: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 ac_cv_lib_krb4_krb_get_cred=yes
10796 else
10797 echo "$as_me: failed program was:" >&5
10798 cat conftest.$ac_ext >&5
10799 ac_cv_lib_krb4_krb_get_cred=no
10800 fi
10801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10803 fi
10804 echo "$as_me:10804: result: $ac_cv_lib_krb4_krb_get_cred" >&5
10805 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
10806 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
10807 cat >>confdefs.h <<EOF
10808 #define HAVE_LIBKRB4 1
10809 EOF
10810
10811 LIBS="-lkrb4 $LIBS"
10812
10813 else
10814
10815 echo "$as_me:10815: checking for krb_get_cred in -lkrb" >&5
10816 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
10817 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820 ac_check_lib_save_LIBS=$LIBS
10821 LIBS="-lkrb $LIBS"
10822 cat >conftest.$ac_ext <<_ACEOF
10823 #line 10823 "configure"
10824 #include "confdefs.h"
10825
10826 /* Override any gcc2 internal prototype to avoid an error. */
10827 #ifdef __cplusplus
10828 extern "C"
10829 #endif
10830 /* We use char because int might match the return type of a gcc2
10831 builtin and then its argument prototype would still apply. */
10832 char krb_get_cred ();
10833 int
10834 main ()
10835 {
10836 krb_get_cred ();
10837 ;
10838 return 0;
10839 }
10840 _ACEOF
10841 rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (eval echo "$as_me:10842: \"$ac_link\"") >&5
10843 (eval $ac_link) 2>&5
10844 ac_status=$?
10845 echo "$as_me:10845: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (eval echo "$as_me:10848: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10850 ac_status=$?
10851 echo "$as_me:10851: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
10853 ac_cv_lib_krb_krb_get_cred=yes
10854 else
10855 echo "$as_me: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10857 ac_cv_lib_krb_krb_get_cred=no
10858 fi
10859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10861 fi
10862 echo "$as_me:10862: result: $ac_cv_lib_krb_krb_get_cred" >&5
10863 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
10864 if test $ac_cv_lib_krb_krb_get_cred = yes; then
10865 cat >>confdefs.h <<EOF
10866 #define HAVE_LIBKRB 1
10867 EOF
10868
10869 LIBS="-lkrb $LIBS"
10870
10871 fi
10872
10873 fi
10874
10875 fi
10876
10877 if test "${with_kerberos5+set}" = set; then
10878
10879 for ac_header in krb5.h
10880 do
10881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10882 echo "$as_me:10882: checking for $ac_header" >&5
10883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887 cat >conftest.$ac_ext <<_ACEOF
10888 #line 10888 "configure"
10889 #include "confdefs.h"
10890 #include <$ac_header>
10891 _ACEOF
10892 if { (eval echo "$as_me:10892: \"$ac_cpp conftest.$ac_ext\"") >&5
10893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10894 ac_status=$?
10895 egrep -v '^ *\+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
10898 echo "$as_me:10898: \$? = $ac_status" >&5
10899 (exit $ac_status); } >/dev/null; then
10900 if test -s conftest.err; then
10901 ac_cpp_err=$ac_c_preproc_warn_flag
10902 else
10903 ac_cpp_err=
10904 fi
10905 else
10906 ac_cpp_err=yes
10907 fi
10908 if test -z "$ac_cpp_err"; then
10909 eval "$as_ac_Header=yes"
10910 else
10911 echo "$as_me: failed program was:" >&5
10912 cat conftest.$ac_ext >&5
10913 eval "$as_ac_Header=no"
10914 fi
10915 rm -f conftest.err conftest.$ac_ext
10916 fi
10917 echo "$as_me:10917: result: `eval echo '${'$as_ac_Header'}'`" >&5
10918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10920 cat >>confdefs.h <<EOF
10921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10922 EOF
10923
10924 fi
10925 done
10926
10927 else
10928
10929 for ac_header in des.h
10930 do
10931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10932 echo "$as_me:10932: checking for $ac_header" >&5
10933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937 cat >conftest.$ac_ext <<_ACEOF
10938 #line 10938 "configure"
10939 #include "confdefs.h"
10940 #include <$ac_header>
10941 _ACEOF
10942 if { (eval echo "$as_me:10942: \"$ac_cpp conftest.$ac_ext\"") >&5
10943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10944 ac_status=$?
10945 egrep -v '^ *\+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 echo "$as_me:10948: \$? = $ac_status" >&5
10949 (exit $ac_status); } >/dev/null; then
10950 if test -s conftest.err; then
10951 ac_cpp_err=$ac_c_preproc_warn_flag
10952 else
10953 ac_cpp_err=
10954 fi
10955 else
10956 ac_cpp_err=yes
10957 fi
10958 if test -z "$ac_cpp_err"; then
10959 eval "$as_ac_Header=yes"
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10963 eval "$as_ac_Header=no"
10964 fi
10965 rm -f conftest.err conftest.$ac_ext
10966 fi
10967 echo "$as_me:10967: result: `eval echo '${'$as_ac_Header'}'`" >&5
10968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10970 cat >>confdefs.h <<EOF
10971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10972 EOF
10973
10974 else
10975
10976 for ac_header in kerberosIV/des.h
10977 do
10978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979 echo "$as_me:10979: checking for $ac_header" >&5
10980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984 cat >conftest.$ac_ext <<_ACEOF
10985 #line 10985 "configure"
10986 #include "confdefs.h"
10987 #include <$ac_header>
10988 _ACEOF
10989 if { (eval echo "$as_me:10989: \"$ac_cpp conftest.$ac_ext\"") >&5
10990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10991 ac_status=$?
10992 egrep -v '^ *\+' conftest.er1 >conftest.err
10993 rm -f conftest.er1
10994 cat conftest.err >&5
10995 echo "$as_me:10995: \$? = $ac_status" >&5
10996 (exit $ac_status); } >/dev/null; then
10997 if test -s conftest.err; then
10998 ac_cpp_err=$ac_c_preproc_warn_flag
10999 else
11000 ac_cpp_err=
11001 fi
11002 else
11003 ac_cpp_err=yes
11004 fi
11005 if test -z "$ac_cpp_err"; then
11006 eval "$as_ac_Header=yes"
11007 else
11008 echo "$as_me: failed program was:" >&5
11009 cat conftest.$ac_ext >&5
11010 eval "$as_ac_Header=no"
11011 fi
11012 rm -f conftest.err conftest.$ac_ext
11013 fi
11014 echo "$as_me:11014: result: `eval echo '${'$as_ac_Header'}'`" >&5
11015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11017 cat >>confdefs.h <<EOF
11018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11019 EOF
11020
11021 else
11022
11023 for ac_header in kerberos/des.h
11024 do
11025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11026 echo "$as_me:11026: checking for $ac_header" >&5
11027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031 cat >conftest.$ac_ext <<_ACEOF
11032 #line 11032 "configure"
11033 #include "confdefs.h"
11034 #include <$ac_header>
11035 _ACEOF
11036 if { (eval echo "$as_me:11036: \"$ac_cpp conftest.$ac_ext\"") >&5
11037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11038 ac_status=$?
11039 egrep -v '^ *\+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:11042: \$? = $ac_status" >&5
11043 (exit $ac_status); } >/dev/null; then
11044 if test -s conftest.err; then
11045 ac_cpp_err=$ac_c_preproc_warn_flag
11046 else
11047 ac_cpp_err=
11048 fi
11049 else
11050 ac_cpp_err=yes
11051 fi
11052 if test -z "$ac_cpp_err"; then
11053 eval "$as_ac_Header=yes"
11054 else
11055 echo "$as_me: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11057 eval "$as_ac_Header=no"
11058 fi
11059 rm -f conftest.err conftest.$ac_ext
11060 fi
11061 echo "$as_me:11061: result: `eval echo '${'$as_ac_Header'}'`" >&5
11062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11064 cat >>confdefs.h <<EOF
11065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11066 EOF
11067
11068 fi
11069 done
11070
11071 fi
11072 done
11073
11074 fi
11075 done
11076
11077 for ac_header in krb.h
11078 do
11079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11080 echo "$as_me:11080: checking for $ac_header" >&5
11081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085 cat >conftest.$ac_ext <<_ACEOF
11086 #line 11086 "configure"
11087 #include "confdefs.h"
11088 #include <$ac_header>
11089 _ACEOF
11090 if { (eval echo "$as_me:11090: \"$ac_cpp conftest.$ac_ext\"") >&5
11091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11092 ac_status=$?
11093 egrep -v '^ *\+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 echo "$as_me:11096: \$? = $ac_status" >&5
11097 (exit $ac_status); } >/dev/null; then
11098 if test -s conftest.err; then
11099 ac_cpp_err=$ac_c_preproc_warn_flag
11100 else
11101 ac_cpp_err=
11102 fi
11103 else
11104 ac_cpp_err=yes
11105 fi
11106 if test -z "$ac_cpp_err"; then
11107 eval "$as_ac_Header=yes"
11108 else
11109 echo "$as_me: failed program was:" >&5
11110 cat conftest.$ac_ext >&5
11111 eval "$as_ac_Header=no"
11112 fi
11113 rm -f conftest.err conftest.$ac_ext
11114 fi
11115 echo "$as_me:11115: result: `eval echo '${'$as_ac_Header'}'`" >&5
11116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11118 cat >>confdefs.h <<EOF
11119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11120 EOF
11121
11122 else
11123
11124 for ac_header in kerberosIV/krb.h
11125 do
11126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11127 echo "$as_me:11127: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132 cat >conftest.$ac_ext <<_ACEOF
11133 #line 11133 "configure"
11134 #include "confdefs.h"
11135 #include <$ac_header>
11136 _ACEOF
11137 if { (eval echo "$as_me:11137: \"$ac_cpp conftest.$ac_ext\"") >&5
11138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11139 ac_status=$?
11140 egrep -v '^ *\+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:11143: \$? = $ac_status" >&5
11144 (exit $ac_status); } >/dev/null; then
11145 if test -s conftest.err; then
11146 ac_cpp_err=$ac_c_preproc_warn_flag
11147 else
11148 ac_cpp_err=
11149 fi
11150 else
11151 ac_cpp_err=yes
11152 fi
11153 if test -z "$ac_cpp_err"; then
11154 eval "$as_ac_Header=yes"
11155 else
11156 echo "$as_me: failed program was:" >&5
11157 cat conftest.$ac_ext >&5
11158 eval "$as_ac_Header=no"
11159 fi
11160 rm -f conftest.err conftest.$ac_ext
11161 fi
11162 echo "$as_me:11162: result: `eval echo '${'$as_ac_Header'}'`" >&5
11163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11165 cat >>confdefs.h <<EOF
11166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11167 EOF
11168
11169 else
11170
11171 for ac_header in kerberos/krb.h
11172 do
11173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11174 echo "$as_me:11174: checking for $ac_header" >&5
11175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179 cat >conftest.$ac_ext <<_ACEOF
11180 #line 11180 "configure"
11181 #include "confdefs.h"
11182 #include <$ac_header>
11183 _ACEOF
11184 if { (eval echo "$as_me:11184: \"$ac_cpp conftest.$ac_ext\"") >&5
11185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11186 ac_status=$?
11187 egrep -v '^ *\+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:11190: \$? = $ac_status" >&5
11191 (exit $ac_status); } >/dev/null; then
11192 if test -s conftest.err; then
11193 ac_cpp_err=$ac_c_preproc_warn_flag
11194 else
11195 ac_cpp_err=
11196 fi
11197 else
11198 ac_cpp_err=yes
11199 fi
11200 if test -z "$ac_cpp_err"; then
11201 eval "$as_ac_Header=yes"
11202 else
11203 echo "$as_me: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 eval "$as_ac_Header=no"
11206 fi
11207 rm -f conftest.err conftest.$ac_ext
11208 fi
11209 echo "$as_me:11209: result: `eval echo '${'$as_ac_Header'}'`" >&5
11210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11212 cat >>confdefs.h <<EOF
11213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11214 EOF
11215
11216 fi
11217 done
11218
11219 fi
11220 done
11221
11222 fi
11223 done
11224
11225 fi
11226
11227 for ac_header in com_err.h
11228 do
11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 echo "$as_me:11230: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235 cat >conftest.$ac_ext <<_ACEOF
11236 #line 11236 "configure"
11237 #include "confdefs.h"
11238 #include <$ac_header>
11239 _ACEOF
11240 if { (eval echo "$as_me:11240: \"$ac_cpp conftest.$ac_ext\"") >&5
11241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11242 ac_status=$?
11243 egrep -v '^ *\+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 echo "$as_me:11246: \$? = $ac_status" >&5
11247 (exit $ac_status); } >/dev/null; then
11248 if test -s conftest.err; then
11249 ac_cpp_err=$ac_c_preproc_warn_flag
11250 else
11251 ac_cpp_err=
11252 fi
11253 else
11254 ac_cpp_err=yes
11255 fi
11256 if test -z "$ac_cpp_err"; then
11257 eval "$as_ac_Header=yes"
11258 else
11259 echo "$as_me: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11261 eval "$as_ac_Header=no"
11262 fi
11263 rm -f conftest.err conftest.$ac_ext
11264 fi
11265 echo "$as_me:11265: result: `eval echo '${'$as_ac_Header'}'`" >&5
11266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11268 cat >>confdefs.h <<EOF
11269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11270 EOF
11271
11272 fi
11273 done
11274
11275 fi
11276
11277 # Solaris requires -lintl if you want strerror (which calls dgettext)
11278 # to return localized messages.
11279
11280 echo "$as_me:11280: checking for dgettext in -lintl" >&5
11281 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11282 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 ac_check_lib_save_LIBS=$LIBS
11286 LIBS="-lintl $LIBS"
11287 cat >conftest.$ac_ext <<_ACEOF
11288 #line 11288 "configure"
11289 #include "confdefs.h"
11290
11291 /* Override any gcc2 internal prototype to avoid an error. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 /* We use char because int might match the return type of a gcc2
11296 builtin and then its argument prototype would still apply. */
11297 char dgettext ();
11298 int
11299 main ()
11300 {
11301 dgettext ();
11302 ;
11303 return 0;
11304 }
11305 _ACEOF
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (eval echo "$as_me:11307: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>&5
11309 ac_status=$?
11310 echo "$as_me:11310: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -s conftest$ac_exeext'
11313 { (eval echo "$as_me:11313: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:11316: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 ac_cv_lib_intl_dgettext=yes
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 cat conftest.$ac_ext >&5
11322 ac_cv_lib_intl_dgettext=no
11323 fi
11324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11325 LIBS=$ac_check_lib_save_LIBS
11326 fi
11327 echo "$as_me:11327: result: $ac_cv_lib_intl_dgettext" >&5
11328 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11329 if test $ac_cv_lib_intl_dgettext = yes; then
11330 cat >>confdefs.h <<EOF
11331 #define HAVE_LIBINTL 1
11332 EOF
11333
11334 LIBS="-lintl $LIBS"
11335
11336 fi
11337
11338 echo "$as_me:11338: checking whether localtime caches TZ" >&5
11339 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11340 if test "${emacs_cv_localtime_cache+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343 if test x$ac_cv_func_tzset = xyes; then
11344 if test "$cross_compiling" = yes; then
11345 # If we have tzset, assume the worst when cross-compiling.
11346 emacs_cv_localtime_cache=yes
11347 else
11348 cat >conftest.$ac_ext <<_ACEOF
11349 #line 11349 "configure"
11350 #include "confdefs.h"
11351 #include <time.h>
11352 extern char **environ;
11353 unset_TZ ()
11354 {
11355 char **from, **to;
11356 for (to = from = environ; (*to = *from); from++)
11357 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11358 to++;
11359 }
11360 char TZ_GMT0[] = "TZ=GMT0";
11361 char TZ_PST8[] = "TZ=PST8";
11362 main()
11363 {
11364 time_t now = time ((time_t *) 0);
11365 int hour_GMT0, hour_unset;
11366 if (putenv (TZ_GMT0) != 0)
11367 exit (1);
11368 hour_GMT0 = localtime (&now)->tm_hour;
11369 unset_TZ ();
11370 hour_unset = localtime (&now)->tm_hour;
11371 if (putenv (TZ_PST8) != 0)
11372 exit (1);
11373 if (localtime (&now)->tm_hour == hour_GMT0)
11374 exit (1);
11375 unset_TZ ();
11376 if (localtime (&now)->tm_hour != hour_unset)
11377 exit (1);
11378 exit (0);
11379 }
11380 _ACEOF
11381 rm -f conftest$ac_exeext
11382 if { (eval echo "$as_me:11382: \"$ac_link\"") >&5
11383 (eval $ac_link) 2>&5
11384 ac_status=$?
11385 echo "$as_me:11385: \$? = $ac_status" >&5
11386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11387 { (eval echo "$as_me:11387: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11389 ac_status=$?
11390 echo "$as_me:11390: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 emacs_cv_localtime_cache=no
11393 else
11394 echo "$as_me: program exited with status $ac_status" >&5
11395 echo "$as_me: failed program was:" >&5
11396 cat conftest.$ac_ext >&5
11397 emacs_cv_localtime_cache=yes
11398 fi
11399 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11400 fi
11401 else
11402 # If we lack tzset, report that localtime does not cache TZ,
11403 # since we can't invalidate the cache if we don't have tzset.
11404 emacs_cv_localtime_cache=no
11405 fi
11406 fi
11407 echo "$as_me:11407: result: $emacs_cv_localtime_cache" >&5
11408 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11409 if test $emacs_cv_localtime_cache = yes; then
11410 cat >>confdefs.h <<\EOF
11411 #define LOCALTIME_CACHE 1
11412 EOF
11413
11414 fi
11415
11416 if test "x$HAVE_TIMEVAL" = xyes; then
11417
11418 for ac_func in gettimeofday
11419 do
11420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11421 echo "$as_me:11421: checking for $ac_func" >&5
11422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11423 if eval "test \"\${$as_ac_var+set}\" = set"; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426 cat >conftest.$ac_ext <<_ACEOF
11427 #line 11427 "configure"
11428 #include "confdefs.h"
11429 /* System header to define __stub macros and hopefully few prototypes,
11430 which can conflict with char $ac_func (); below. */
11431 #include <assert.h>
11432 /* Override any gcc2 internal prototype to avoid an error. */
11433 #ifdef __cplusplus
11434 extern "C"
11435 #endif
11436 /* We use char because int might match the return type of a gcc2
11437 builtin and then its argument prototype would still apply. */
11438 char $ac_func ();
11439 char (*f) ();
11440
11441 int
11442 main ()
11443 {
11444 /* The GNU C library defines this for functions which it implements
11445 to always fail with ENOSYS. Some functions are actually named
11446 something starting with __ and the normal name is an alias. */
11447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11448 choke me
11449 #else
11450 f = $ac_func;
11451 #endif
11452
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 rm -f conftest.$ac_objext conftest$ac_exeext
11458 if { (eval echo "$as_me:11458: \"$ac_link\"") >&5
11459 (eval $ac_link) 2>&5
11460 ac_status=$?
11461 echo "$as_me:11461: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
11463 { ac_try='test -s conftest$ac_exeext'
11464 { (eval echo "$as_me:11464: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11466 ac_status=$?
11467 echo "$as_me:11467: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 eval "$as_ac_var=yes"
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 cat conftest.$ac_ext >&5
11473 eval "$as_ac_var=no"
11474 fi
11475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11476 fi
11477 echo "$as_me:11477: result: `eval echo '${'$as_ac_var'}'`" >&5
11478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11479 if test `eval echo '${'$as_ac_var'}'` = yes; then
11480 cat >>confdefs.h <<EOF
11481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11482 EOF
11483
11484 fi
11485 done
11486
11487 echo "$as_me:11487: checking whether gettimeofday can accept two arguments" >&5
11488 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11489 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492 cat >conftest.$ac_ext <<_ACEOF
11493 #line 11493 "configure"
11494 #include "confdefs.h"
11495
11496 #ifdef TIME_WITH_SYS_TIME
11497 #include <sys/time.h>
11498 #include <time.h>
11499 #else
11500 #ifdef HAVE_SYS_TIME_H
11501 #include <sys/time.h>
11502 #else
11503 #include <time.h>
11504 #endif
11505 #endif
11506 int
11507 main ()
11508 {
11509 struct timeval time;
11510 gettimeofday (&time, 0);
11511 ;
11512 return 0;
11513 }
11514 _ACEOF
11515 rm -f conftest.$ac_objext
11516 if { (eval echo "$as_me:11516: \"$ac_compile\"") >&5
11517 (eval $ac_compile) 2>&5
11518 ac_status=$?
11519 echo "$as_me:11519: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -s conftest.$ac_objext'
11522 { (eval echo "$as_me:11522: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:11525: \$? = $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 emacs_cv_gettimeofday_two_arguments=yes
11528 else
11529 echo "$as_me: failed program was:" >&5
11530 cat conftest.$ac_ext >&5
11531 emacs_cv_gettimeofday_two_arguments=no
11532 fi
11533 rm -f conftest.$ac_objext conftest.$ac_ext
11534 fi
11535 echo "$as_me:11535: result: $emacs_cv_gettimeofday_two_arguments" >&5
11536 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11537 if test $emacs_cv_gettimeofday_two_arguments = no; then
11538 cat >>confdefs.h <<\EOF
11539 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11540 EOF
11541
11542 fi
11543 fi
11544
11545 if test "$ac_cv_func_gettimeofday" = yes; then
11546 echo "$as_me:11546: checking for struct timezone" >&5
11547 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11548 if test "${emacs_cv_struct_timezone+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551 cat >conftest.$ac_ext <<_ACEOF
11552 #line 11552 "configure"
11553 #include "confdefs.h"
11554 #include <sys/time.h>
11555 int
11556 main ()
11557 {
11558 struct timezone tz;
11559 ;
11560 return 0;
11561 }
11562 _ACEOF
11563 rm -f conftest.$ac_objext
11564 if { (eval echo "$as_me:11564: \"$ac_compile\"") >&5
11565 (eval $ac_compile) 2>&5
11566 ac_status=$?
11567 echo "$as_me:11567: \$? = $ac_status" >&5
11568 (exit $ac_status); } &&
11569 { ac_try='test -s conftest.$ac_objext'
11570 { (eval echo "$as_me:11570: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11572 ac_status=$?
11573 echo "$as_me:11573: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 if test "$cross_compiling" = yes; then
11576 emacs_cv_struct_timezone=yes
11577 else
11578 cat >conftest.$ac_ext <<_ACEOF
11579 #line 11579 "configure"
11580 #include "confdefs.h"
11581
11582 #ifdef TIME_WITH_SYS_TIME
11583 #include <sys/time.h>
11584 #include <time.h>
11585 #else
11586 #ifdef HAVE_SYS_TIME_H
11587 #include <sys/time.h>
11588 #else
11589 #include <time.h>
11590 #endif
11591 #endif
11592 main () {
11593 struct timeval time;
11594 struct timezone dummy;
11595 exit (gettimeofday (&time, &dummy));
11596 }
11597 _ACEOF
11598 rm -f conftest$ac_exeext
11599 if { (eval echo "$as_me:11599: \"$ac_link\"") >&5
11600 (eval $ac_link) 2>&5
11601 ac_status=$?
11602 echo "$as_me:11602: \$? = $ac_status" >&5
11603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11604 { (eval echo "$as_me:11604: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11606 ac_status=$?
11607 echo "$as_me:11607: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 emacs_cv_struct_timezone=yes
11610 else
11611 echo "$as_me: program exited with status $ac_status" >&5
11612 echo "$as_me: failed program was:" >&5
11613 cat conftest.$ac_ext >&5
11614 emacs_cv_struct_timezone=no
11615 fi
11616 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11617 fi
11618 else
11619 echo "$as_me: failed program was:" >&5
11620 cat conftest.$ac_ext >&5
11621 emacs_cv_struct_timezone=no
11622 fi
11623 rm -f conftest.$ac_objext conftest.$ac_ext
11624 fi
11625 echo "$as_me:11625: result: $emacs_cv_struct_timezone" >&5
11626 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11627 fi
11628
11629 ok_so_far=yes
11630 echo "$as_me:11630: checking for socket" >&5
11631 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11632 if test "${ac_cv_func_socket+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635 cat >conftest.$ac_ext <<_ACEOF
11636 #line 11636 "configure"
11637 #include "confdefs.h"
11638 /* System header to define __stub macros and hopefully few prototypes,
11639 which can conflict with char socket (); below. */
11640 #include <assert.h>
11641 /* Override any gcc2 internal prototype to avoid an error. */
11642 #ifdef __cplusplus
11643 extern "C"
11644 #endif
11645 /* We use char because int might match the return type of a gcc2
11646 builtin and then its argument prototype would still apply. */
11647 char socket ();
11648 char (*f) ();
11649
11650 int
11651 main ()
11652 {
11653 /* The GNU C library defines this for functions which it implements
11654 to always fail with ENOSYS. Some functions are actually named
11655 something starting with __ and the normal name is an alias. */
11656 #if defined (__stub_socket) || defined (__stub___socket)
11657 choke me
11658 #else
11659 f = socket;
11660 #endif
11661
11662 ;
11663 return 0;
11664 }
11665 _ACEOF
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (eval echo "$as_me:11667: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>&5
11669 ac_status=$?
11670 echo "$as_me:11670: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:11673: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:11676: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_func_socket=yes
11679 else
11680 echo "$as_me: failed program was:" >&5
11681 cat conftest.$ac_ext >&5
11682 ac_cv_func_socket=no
11683 fi
11684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11685 fi
11686 echo "$as_me:11686: result: $ac_cv_func_socket" >&5
11687 echo "${ECHO_T}$ac_cv_func_socket" >&6
11688 if test $ac_cv_func_socket = yes; then
11689 :
11690 else
11691 ok_so_far=no
11692 fi
11693
11694 if test $ok_so_far = yes; then
11695 echo "$as_me:11695: checking for netinet/in.h" >&5
11696 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
11697 if test "${ac_cv_header_netinet_in_h+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 else
11700 cat >conftest.$ac_ext <<_ACEOF
11701 #line 11701 "configure"
11702 #include "confdefs.h"
11703 #include <netinet/in.h>
11704 _ACEOF
11705 if { (eval echo "$as_me:11705: \"$ac_cpp conftest.$ac_ext\"") >&5
11706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11707 ac_status=$?
11708 egrep -v '^ *\+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 echo "$as_me:11711: \$? = $ac_status" >&5
11712 (exit $ac_status); } >/dev/null; then
11713 if test -s conftest.err; then
11714 ac_cpp_err=$ac_c_preproc_warn_flag
11715 else
11716 ac_cpp_err=
11717 fi
11718 else
11719 ac_cpp_err=yes
11720 fi
11721 if test -z "$ac_cpp_err"; then
11722 ac_cv_header_netinet_in_h=yes
11723 else
11724 echo "$as_me: failed program was:" >&5
11725 cat conftest.$ac_ext >&5
11726 ac_cv_header_netinet_in_h=no
11727 fi
11728 rm -f conftest.err conftest.$ac_ext
11729 fi
11730 echo "$as_me:11730: result: $ac_cv_header_netinet_in_h" >&5
11731 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
11732 if test $ac_cv_header_netinet_in_h = yes; then
11733 :
11734 else
11735 ok_so_far=no
11736 fi
11737
11738 fi
11739 if test $ok_so_far = yes; then
11740 echo "$as_me:11740: checking for arpa/inet.h" >&5
11741 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
11742 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745 cat >conftest.$ac_ext <<_ACEOF
11746 #line 11746 "configure"
11747 #include "confdefs.h"
11748 #include <arpa/inet.h>
11749 _ACEOF
11750 if { (eval echo "$as_me:11750: \"$ac_cpp conftest.$ac_ext\"") >&5
11751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11752 ac_status=$?
11753 egrep -v '^ *\+' conftest.er1 >conftest.err
11754 rm -f conftest.er1
11755 cat conftest.err >&5
11756 echo "$as_me:11756: \$? = $ac_status" >&5
11757 (exit $ac_status); } >/dev/null; then
11758 if test -s conftest.err; then
11759 ac_cpp_err=$ac_c_preproc_warn_flag
11760 else
11761 ac_cpp_err=
11762 fi
11763 else
11764 ac_cpp_err=yes
11765 fi
11766 if test -z "$ac_cpp_err"; then
11767 ac_cv_header_arpa_inet_h=yes
11768 else
11769 echo "$as_me: failed program was:" >&5
11770 cat conftest.$ac_ext >&5
11771 ac_cv_header_arpa_inet_h=no
11772 fi
11773 rm -f conftest.err conftest.$ac_ext
11774 fi
11775 echo "$as_me:11775: result: $ac_cv_header_arpa_inet_h" >&5
11776 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
11777 if test $ac_cv_header_arpa_inet_h = yes; then
11778 :
11779 else
11780 ok_so_far=no
11781 fi
11782
11783 fi
11784 if test $ok_so_far = yes; then
11785 cat >>confdefs.h <<\EOF
11786 #define HAVE_INET_SOCKETS 1
11787 EOF
11788
11789 fi
11790
11791 if test -f /usr/lpp/X11/bin/smt.exp; then
11792 cat >>confdefs.h <<\EOF
11793 #define HAVE_AIX_SMT_EXP 1
11794 EOF
11795
11796 fi
11797
11798 echo "$as_me:11798: checking whether system supports dynamic ptys" >&5
11799 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
11800 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
11801 echo "$as_me:11801: result: yes" >&5
11802 echo "${ECHO_T}yes" >&6
11803 cat >>confdefs.h <<\EOF
11804 #define HAVE_DEV_PTMX 1
11805 EOF
11806
11807 else
11808 echo "$as_me:11808: result: no" >&5
11809 echo "${ECHO_T}no" >&6
11810 fi
11811
11812 echo "$as_me:11812: checking for pid_t" >&5
11813 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11814 if test "${ac_cv_type_pid_t+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817 cat >conftest.$ac_ext <<_ACEOF
11818 #line 11818 "configure"
11819 #include "confdefs.h"
11820 $ac_includes_default
11821 int
11822 main ()
11823 {
11824 if ((pid_t *) 0)
11825 return 0;
11826 if (sizeof (pid_t))
11827 return 0;
11828 ;
11829 return 0;
11830 }
11831 _ACEOF
11832 rm -f conftest.$ac_objext
11833 if { (eval echo "$as_me:11833: \"$ac_compile\"") >&5
11834 (eval $ac_compile) 2>&5
11835 ac_status=$?
11836 echo "$as_me:11836: \$? = $ac_status" >&5
11837 (exit $ac_status); } &&
11838 { ac_try='test -s conftest.$ac_objext'
11839 { (eval echo "$as_me:11839: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11841 ac_status=$?
11842 echo "$as_me:11842: \$? = $ac_status" >&5
11843 (exit $ac_status); }; }; then
11844 ac_cv_type_pid_t=yes
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 cat conftest.$ac_ext >&5
11848 ac_cv_type_pid_t=no
11849 fi
11850 rm -f conftest.$ac_objext conftest.$ac_ext
11851 fi
11852 echo "$as_me:11852: result: $ac_cv_type_pid_t" >&5
11853 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11854 if test $ac_cv_type_pid_t = yes; then
11855 :
11856 else
11857
11858 cat >>confdefs.h <<EOF
11859 #define pid_t int
11860 EOF
11861
11862 fi
11863
11864 for ac_header in unistd.h vfork.h
11865 do
11866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11867 echo "$as_me:11867: checking for $ac_header" >&5
11868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872 cat >conftest.$ac_ext <<_ACEOF
11873 #line 11873 "configure"
11874 #include "confdefs.h"
11875 #include <$ac_header>
11876 _ACEOF
11877 if { (eval echo "$as_me:11877: \"$ac_cpp conftest.$ac_ext\"") >&5
11878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11879 ac_status=$?
11880 egrep -v '^ *\+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:11883: \$? = $ac_status" >&5
11884 (exit $ac_status); } >/dev/null; then
11885 if test -s conftest.err; then
11886 ac_cpp_err=$ac_c_preproc_warn_flag
11887 else
11888 ac_cpp_err=
11889 fi
11890 else
11891 ac_cpp_err=yes
11892 fi
11893 if test -z "$ac_cpp_err"; then
11894 eval "$as_ac_Header=yes"
11895 else
11896 echo "$as_me: failed program was:" >&5
11897 cat conftest.$ac_ext >&5
11898 eval "$as_ac_Header=no"
11899 fi
11900 rm -f conftest.err conftest.$ac_ext
11901 fi
11902 echo "$as_me:11902: result: `eval echo '${'$as_ac_Header'}'`" >&5
11903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11905 cat >>confdefs.h <<EOF
11906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11907 EOF
11908
11909 fi
11910 done
11911
11912 for ac_func in fork vfork
11913 do
11914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11915 echo "$as_me:11915: checking for $ac_func" >&5
11916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11917 if eval "test \"\${$as_ac_var+set}\" = set"; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920 cat >conftest.$ac_ext <<_ACEOF
11921 #line 11921 "configure"
11922 #include "confdefs.h"
11923 /* System header to define __stub macros and hopefully few prototypes,
11924 which can conflict with char $ac_func (); below. */
11925 #include <assert.h>
11926 /* Override any gcc2 internal prototype to avoid an error. */
11927 #ifdef __cplusplus
11928 extern "C"
11929 #endif
11930 /* We use char because int might match the return type of a gcc2
11931 builtin and then its argument prototype would still apply. */
11932 char $ac_func ();
11933 char (*f) ();
11934
11935 int
11936 main ()
11937 {
11938 /* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
11941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11942 choke me
11943 #else
11944 f = $ac_func;
11945 #endif
11946
11947 ;
11948 return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (eval echo "$as_me:11952: \"$ac_link\"") >&5
11953 (eval $ac_link) 2>&5
11954 ac_status=$?
11955 echo "$as_me:11955: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -s conftest$ac_exeext'
11958 { (eval echo "$as_me:11958: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11960 ac_status=$?
11961 echo "$as_me:11961: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 eval "$as_ac_var=yes"
11964 else
11965 echo "$as_me: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11967 eval "$as_ac_var=no"
11968 fi
11969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11970 fi
11971 echo "$as_me:11971: result: `eval echo '${'$as_ac_var'}'`" >&5
11972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11973 if test `eval echo '${'$as_ac_var'}'` = yes; then
11974 cat >>confdefs.h <<EOF
11975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11976 EOF
11977
11978 fi
11979 done
11980
11981 ac_cv_func_fork_works=$ac_cv_func_fork
11982 if test "x$ac_cv_func_fork" = xyes; then
11983 echo "$as_me:11983: checking for working fork" >&5
11984 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11985 if test "${ac_cv_func_fork_works+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 else
11988 if test "$cross_compiling" = yes; then
11989 ac_cv_func_fork_works=cross
11990 else
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* By Rüdiger Kuhlmann. */
11993 #include <sys/types.h>
11994 #if HAVE_UNISTD_H
11995 # include <unistd.h>
11996 #endif
11997 /* Some systems only have a dummy stub for fork() */
11998 int main ()
11999 {
12000 if (fork() < 0)
12001 exit (1);
12002 exit (0);
12003 }
12004 _ACEOF
12005 rm -f conftest$ac_exeext
12006 if { (eval echo "$as_me:12006: \"$ac_link\"") >&5
12007 (eval $ac_link) 2>&5
12008 ac_status=$?
12009 echo "$as_me:12009: \$? = $ac_status" >&5
12010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12011 { (eval echo "$as_me:12011: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12013 ac_status=$?
12014 echo "$as_me:12014: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_cv_func_fork_works=yes
12017 else
12018 echo "$as_me: program exited with status $ac_status" >&5
12019 echo "$as_me: failed program was:" >&5
12020 cat conftest.$ac_ext >&5
12021 ac_cv_func_fork_works=no
12022 fi
12023 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12024 fi
12025 fi
12026 echo "$as_me:12026: result: $ac_cv_func_fork_works" >&5
12027 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12028
12029 fi
12030 if test "x$ac_cv_func_fork_works" = xcross; then
12031 case $host in
12032 *-*-amigaos* | *-*-msdosdjgpp*)
12033 # Override, as these systems have only a dummy fork() stub
12034 ac_cv_func_fork_works=no
12035 ;;
12036 *)
12037 ac_cv_func_fork_works=yes
12038 ;;
12039 esac
12040 { echo "$as_me:12040: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12041 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12042 fi
12043 ac_cv_func_vfork_works=$ac_cv_func_vfork
12044 if test "x$ac_cv_func_vfork" = xyes; then
12045 echo "$as_me:12045: checking for working vfork" >&5
12046 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12047 if test "${ac_cv_func_vfork_works+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 if test "$cross_compiling" = yes; then
12051 ac_cv_func_vfork_works=cross
12052 else
12053 cat >conftest.$ac_ext <<_ACEOF
12054 #line 12054 "configure"
12055 #include "confdefs.h"
12056 /* Thanks to Paul Eggert for this test. */
12057 #include <stdio.h>
12058 #include <sys/types.h>
12059 #include <sys/stat.h>
12060 #if HAVE_UNISTD_H
12061 # include <unistd.h>
12062 #endif
12063 #if HAVE_VFORK_H
12064 # include <vfork.h>
12065 #endif
12066 /* On some sparc systems, changes by the child to local and incoming
12067 argument registers are propagated back to the parent. The compiler
12068 is told about this with #include <vfork.h>, but some compilers
12069 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12070 static variable whose address is put into a register that is
12071 clobbered by the vfork. */
12072 static
12073 #ifdef __cplusplus
12074 sparc_address_test (int arg)
12075 # else
12076 sparc_address_test (arg) int arg;
12077 #endif
12078 {
12079 static pid_t child;
12080 if (!child) {
12081 child = vfork ();
12082 if (child < 0) {
12083 perror ("vfork");
12084 _exit(2);
12085 }
12086 if (!child) {
12087 arg = getpid();
12088 write(-1, "", 0);
12089 _exit (arg);
12090 }
12091 }
12092 }
12093
12094 int
12095 main ()
12096 {
12097 pid_t parent = getpid ();
12098 pid_t child;
12099
12100 sparc_address_test ();
12101
12102 child = vfork ();
12103
12104 if (child == 0) {
12105 /* Here is another test for sparc vfork register problems. This
12106 test uses lots of local variables, at least as many local
12107 variables as main has allocated so far including compiler
12108 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12109 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12110 reuse the register of parent for one of the local variables,
12111 since it will think that parent can't possibly be used any more
12112 in this routine. Assigning to the local variable will thus
12113 munge parent in the parent process. */
12114 pid_t
12115 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12116 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12117 /* Convince the compiler that p..p7 are live; otherwise, it might
12118 use the same hardware register for all 8 local variables. */
12119 if (p != p1 || p != p2 || p != p3 || p != p4
12120 || p != p5 || p != p6 || p != p7)
12121 _exit(1);
12122
12123 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12124 from child file descriptors. If the child closes a descriptor
12125 before it execs or exits, this munges the parent's descriptor
12126 as well. Test for this by closing stdout in the child. */
12127 _exit(close(fileno(stdout)) != 0);
12128 } else {
12129 int status;
12130 struct stat st;
12131
12132 while (wait(&status) != child)
12133 ;
12134 exit(
12135 /* Was there some problem with vforking? */
12136 child < 0
12137
12138 /* Did the child fail? (This shouldn't happen.) */
12139 || status
12140
12141 /* Did the vfork/compiler bug occur? */
12142 || parent != getpid()
12143
12144 /* Did the file descriptor bug occur? */
12145 || fstat(fileno(stdout), &st) != 0
12146 );
12147 }
12148 }
12149 _ACEOF
12150 rm -f conftest$ac_exeext
12151 if { (eval echo "$as_me:12151: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>&5
12153 ac_status=$?
12154 echo "$as_me:12154: \$? = $ac_status" >&5
12155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12156 { (eval echo "$as_me:12156: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12158 ac_status=$?
12159 echo "$as_me:12159: \$? = $ac_status" >&5
12160 (exit $ac_status); }; }; then
12161 ac_cv_func_vfork_works=yes
12162 else
12163 echo "$as_me: program exited with status $ac_status" >&5
12164 echo "$as_me: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12166 ac_cv_func_vfork_works=no
12167 fi
12168 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12169 fi
12170 fi
12171 echo "$as_me:12171: result: $ac_cv_func_vfork_works" >&5
12172 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12173
12174 fi;
12175 if test "x$ac_cv_func_fork_works" = xcross; then
12176 ac_cv_func_vfork_works=ac_cv_func_vfork
12177 { echo "$as_me:12177: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12178 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12179 fi
12180
12181 if test "x$ac_cv_func_vfork_works" = xyes; then
12182
12183 cat >>confdefs.h <<\EOF
12184 #define HAVE_WORKING_VFORK 1
12185 EOF
12186
12187 else
12188
12189 cat >>confdefs.h <<\EOF
12190 #define vfork fork
12191 EOF
12192
12193 fi
12194 if test "x$ac_cv_func_fork_works" = xyes; then
12195
12196 cat >>confdefs.h <<\EOF
12197 #define HAVE_WORKING_FORK 1
12198 EOF
12199
12200 fi
12201
12202 # Fixme: This should be replaced when we have autoconf 2.14.
12203 echo "$as_me:12203: checking for size_t" >&5
12204 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12205 if test "${ac_cv_type_size_t+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 else
12208 cat >conftest.$ac_ext <<_ACEOF
12209 #line 12209 "configure"
12210 #include "confdefs.h"
12211 $ac_includes_default
12212 int
12213 main ()
12214 {
12215 if ((size_t *) 0)
12216 return 0;
12217 if (sizeof (size_t))
12218 return 0;
12219 ;
12220 return 0;
12221 }
12222 _ACEOF
12223 rm -f conftest.$ac_objext
12224 if { (eval echo "$as_me:12224: \"$ac_compile\"") >&5
12225 (eval $ac_compile) 2>&5
12226 ac_status=$?
12227 echo "$as_me:12227: \$? = $ac_status" >&5
12228 (exit $ac_status); } &&
12229 { ac_try='test -s conftest.$ac_objext'
12230 { (eval echo "$as_me:12230: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:12233: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 ac_cv_type_size_t=yes
12236 else
12237 echo "$as_me: failed program was:" >&5
12238 cat conftest.$ac_ext >&5
12239 ac_cv_type_size_t=no
12240 fi
12241 rm -f conftest.$ac_objext conftest.$ac_ext
12242 fi
12243 echo "$as_me:12243: result: $ac_cv_type_size_t" >&5
12244 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12245 if test $ac_cv_type_size_t = yes; then
12246 :
12247 else
12248
12249 cat >>confdefs.h <<EOF
12250 #define size_t unsigned
12251 EOF
12252
12253 fi
12254
12255 # Set up the CFLAGS for real compilation, so we can substitute it.
12256 CFLAGS="$REAL_CFLAGS"
12257 CPPFLAGS="$REAL_CPPFLAGS"
12258
12259 #### Find out which version of Emacs this is.
12260 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12261 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12262 if test x"${version}" = x; then
12263 { { echo "$as_me:12263: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12264 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12265 { (exit 1); exit 1; }; }
12266 fi
12267
12268 ### Specify what sort of things we'll be editing into Makefile and config.h.
12269 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12270
12271 cat >>confdefs.h <<EOF
12272 #define EMACS_CONFIGURATION "${canonical}"
12273 EOF
12274
12275 cat >>confdefs.h <<EOF
12276 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12277 EOF
12278
12279 cat >>confdefs.h <<EOF
12280 #define config_machfile "${machfile}"
12281 EOF
12282
12283 cat >>confdefs.h <<EOF
12284 #define config_opsysfile "${opsysfile}"
12285 EOF
12286
12287 cat >>confdefs.h <<EOF
12288 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12289 EOF
12290
12291 cat >>confdefs.h <<EOF
12292 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12293 EOF
12294
12295 cat >>confdefs.h <<EOF
12296 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12297 EOF
12298
12299 cat >>confdefs.h <<EOF
12300 #define UNEXEC_SRC ${UNEXEC_SRC}
12301 EOF
12302
12303 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12304 cat >>confdefs.h <<\EOF
12305 #define HAVE_X_WINDOWS 1
12306 EOF
12307
12308 fi
12309 if test "${USE_X_TOOLKIT}" != "none" ; then
12310 cat >>confdefs.h <<\EOF
12311 #define USE_X_TOOLKIT 1
12312 EOF
12313
12314 fi
12315 if test "${HAVE_X11}" = "yes" ; then
12316 cat >>confdefs.h <<\EOF
12317 #define HAVE_X11 1
12318 EOF
12319
12320 fi
12321 if test "${HAVE_XFREE386}" = "yes" ; then
12322 cat >>confdefs.h <<\EOF
12323 #define HAVE_XFREE386 1
12324 EOF
12325
12326 fi
12327 if test "${HAVE_MENUS}" = "yes" ; then
12328 cat >>confdefs.h <<\EOF
12329 #define HAVE_MENUS 1
12330 EOF
12331
12332 fi
12333 if test "${GNU_MALLOC}" = "yes" ; then
12334 cat >>confdefs.h <<\EOF
12335 #define GNU_MALLOC 1
12336 EOF
12337
12338 fi
12339 if test "${REL_ALLOC}" = "yes" ; then
12340 cat >>confdefs.h <<\EOF
12341 #define REL_ALLOC 1
12342 EOF
12343
12344 fi
12345
12346 for ac_header in nlist.h
12347 do
12348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12349 echo "$as_me:12349: checking for $ac_header" >&5
12350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354 cat >conftest.$ac_ext <<_ACEOF
12355 #line 12355 "configure"
12356 #include "confdefs.h"
12357 #include <$ac_header>
12358 _ACEOF
12359 if { (eval echo "$as_me:12359: \"$ac_cpp conftest.$ac_ext\"") >&5
12360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12361 ac_status=$?
12362 egrep -v '^ *\+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:12365: \$? = $ac_status" >&5
12366 (exit $ac_status); } >/dev/null; then
12367 if test -s conftest.err; then
12368 ac_cpp_err=$ac_c_preproc_warn_flag
12369 else
12370 ac_cpp_err=
12371 fi
12372 else
12373 ac_cpp_err=yes
12374 fi
12375 if test -z "$ac_cpp_err"; then
12376 eval "$as_ac_Header=yes"
12377 else
12378 echo "$as_me: failed program was:" >&5
12379 cat conftest.$ac_ext >&5
12380 eval "$as_ac_Header=no"
12381 fi
12382 rm -f conftest.err conftest.$ac_ext
12383 fi
12384 echo "$as_me:12384: result: `eval echo '${'$as_ac_Header'}'`" >&5
12385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12387 cat >>confdefs.h <<EOF
12388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12389 EOF
12390
12391 cat >>confdefs.h <<\EOF
12392 #define NLIST_STRUCT 1
12393 EOF
12394
12395 fi
12396 done
12397
12398 #### Report on what we decided to do.
12399 echo "
12400 Configured for \`${canonical}'.
12401
12402 Where should the build process find the source code? ${srcdir}
12403 What operating system and machine description files should Emacs use?
12404 \`${opsysfile}' and \`${machfile}'
12405 What compiler should emacs be built with? ${CC} ${CFLAGS}
12406 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12407 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12408 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12409 What window system should Emacs use? ${window_system}
12410 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12411
12412 if test -n "${x_includes}"; then
12413 echo " Where do we find X Windows header files? ${x_includes}"
12414 else
12415 echo " Where do we find X Windows header files? Standard dirs"
12416 fi
12417 if test -n "${x_libraries}"; then
12418 echo " Where do we find X Windows libraries? ${x_libraries}"
12419 else
12420 echo " Where do we find X Windows libraries? Standard dirs"
12421 fi
12422
12423 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12424 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12425 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12426 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12427 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12428 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12429 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12430 echo
12431
12432 # Remove any trailing slashes in these variables.
12433 test "${prefix}" != NONE &&
12434 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12435 test "${exec_prefix}" != NONE &&
12436 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12437
12438 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12439 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12440 ## from Makefile.c can correctly provide the arg `-traditional' to the
12441 ## C preprocessor.
12442
12443 cat >conftest.$ac_ext <<_ACEOF
12444 #line 12444 "configure"
12445 #include "confdefs.h"
12446 yes..yes
12447 _ACEOF
12448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12449 egrep "yes..yes" >/dev/null 2>&1; then
12450 CPP_NEED_TRADITIONAL=no
12451 else
12452 CPP_NEED_TRADITIONAL=yes
12453 fi
12454 rm -f conftest*
12455
12456 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
12457 ac_config_commands="$ac_config_commands default"
12458 cat >confcache <<\_ACEOF
12459 # This file is a shell script that caches the results of configure
12460 # tests run on this system so they can be shared between configure
12461 # scripts and configure runs, see configure's option --config-cache.
12462 # It is not useful on other systems. If it contains results you don't
12463 # want to keep, you may remove or edit it.
12464 #
12465 # config.status only pays attention to the cache file if you give it
12466 # the --recheck option to rerun configure.
12467 #
12468 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12470 # following values.
12471
12472 _ACEOF
12473
12474 # The following way of writing the cache mishandles newlines in values,
12475 # but we know of no workaround that is simple, portable, and efficient.
12476 # So, don't put newlines in cache variables' values.
12477 # Ultrix sh set writes to stderr and can't be redirected directly,
12478 # and sets the high bit in the cache file unless we assign to the vars.
12479 {
12480 (set) 2>&1 |
12481 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12482 *ac_space=\ *)
12483 # `set' does not quote correctly, so add quotes (double-quote
12484 # substitution turns \\\\ into \\, and sed turns \\ into \).
12485 sed -n \
12486 "s/'/'\\\\''/g;
12487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12488 ;;
12489 *)
12490 # `set' quotes correctly as required by POSIX, so do not add quotes.
12491 sed -n \
12492 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12493 ;;
12494 esac;
12495 } |
12496 sed '
12497 t clear
12498 : clear
12499 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12500 t end
12501 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12502 : end' >>confcache
12503 if cmp -s $cache_file confcache; then :; else
12504 if test -w $cache_file; then
12505 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12506 cat confcache >$cache_file
12507 else
12508 echo "not updating unwritable cache $cache_file"
12509 fi
12510 fi
12511 rm -f confcache
12512
12513 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12514 # Let make expand exec_prefix.
12515 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12516
12517 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12518 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12519 # trailing colons and then remove the whole line if VPATH becomes empty
12520 # (actually we leave an empty line to preserve line numbers).
12521 if test "x$srcdir" = x.; then
12522 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12523 s/:*\$(srcdir):*/:/;
12524 s/:*\${srcdir}:*/:/;
12525 s/:*@srcdir@:*/:/;
12526 s/^\([^=]*=[ ]*\):*/\1/;
12527 s/:*$//;
12528 s/^[^=]*=[ ]*$//;
12529 }'
12530 fi
12531
12532 DEFS=-DHAVE_CONFIG_H
12533
12534 : ${CONFIG_STATUS=./config.status}
12535 ac_clean_files_save=$ac_clean_files
12536 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12537 { echo "$as_me:12537: creating $CONFIG_STATUS" >&5
12538 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12539 cat >$CONFIG_STATUS <<_ACEOF
12540 #! $SHELL
12541 # Generated automatically by configure.
12542 # Run this file to recreate the current configuration.
12543 # Compiler output produced by configure, useful for debugging
12544 # configure, is in config.log if it exists.
12545
12546 debug=false
12547 SHELL=\${CONFIG_SHELL-$SHELL}
12548 ac_cs_invocation="\$0 \$@"
12549
12550 _ACEOF
12551
12552 cat >>$CONFIG_STATUS <<\_ACEOF
12553 # Be Bourne compatible
12554 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12555 emulate sh
12556 NULLCMD=:
12557 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12558 set -o posix
12559 fi
12560
12561 # Name of the executable.
12562 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12563
12564 if expr a : '\(a\)' >/dev/null 2>&1; then
12565 as_expr=expr
12566 else
12567 as_expr=false
12568 fi
12569
12570 rm -f conf$$ conf$$.exe conf$$.file
12571 echo >conf$$.file
12572 if ln -s conf$$.file conf$$ 2>/dev/null; then
12573 # We could just check for DJGPP; but this test a) works b) is more generic
12574 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12575 if test -f conf$$.exe; then
12576 # Don't use ln at all; we don't have any links
12577 as_ln_s='cp -p'
12578 else
12579 as_ln_s='ln -s'
12580 fi
12581 elif ln conf$$.file conf$$ 2>/dev/null; then
12582 as_ln_s=ln
12583 else
12584 as_ln_s='cp -p'
12585 fi
12586 rm -f conf$$ conf$$.exe conf$$.file
12587
12588 as_executable_p="test -f"
12589
12590 # Support unset when possible.
12591 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12592 as_unset=unset
12593 else
12594 as_unset=false
12595 fi
12596
12597 # NLS nuisances.
12598 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12599 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12600 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12601 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12602 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12603 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12604 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12605 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12606
12607 # IFS
12608 # We need space, tab and new line, in precisely that order.
12609 as_nl='
12610 '
12611 IFS=" $as_nl"
12612
12613 # CDPATH.
12614 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12615
12616 exec 6>&1
12617
12618 _ACEOF
12619
12620 # Files that config.status was made for.
12621 if test -n "$ac_config_files"; then
12622 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12623 fi
12624
12625 if test -n "$ac_config_headers"; then
12626 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12627 fi
12628
12629 if test -n "$ac_config_links"; then
12630 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12631 fi
12632
12633 if test -n "$ac_config_commands"; then
12634 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12635 fi
12636
12637 cat >>$CONFIG_STATUS <<\EOF
12638
12639 ac_cs_usage="\
12640 \`$as_me' instantiates files from templates according to the
12641 current configuration.
12642
12643 Usage: $0 [OPTIONS] [FILE]...
12644
12645 -h, --help print this help, then exit
12646 -V, --version print version number, then exit
12647 -d, --debug don't remove temporary files
12648 --recheck update $as_me by reconfiguring in the same conditions
12649 --file=FILE[:TEMPLATE]
12650 instantiate the configuration file FILE
12651 --header=FILE[:TEMPLATE]
12652 instantiate the configuration header FILE
12653
12654 Configuration files:
12655 $config_files
12656
12657 Configuration headers:
12658 $config_headers
12659
12660 Configuration commands:
12661 $config_commands
12662
12663 Report bugs to <bug-autoconf@gnu.org>."
12664 EOF
12665
12666 cat >>$CONFIG_STATUS <<EOF
12667 ac_cs_version="\\
12668 config.status
12669 configured by $0, generated by GNU Autoconf 2.52,
12670 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12671
12672 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12673 Free Software Foundation, Inc.
12674 This config.status script is free software; the Free Software Foundation
12675 gives unlimited permission to copy, distribute and modify it."
12676 srcdir=$srcdir
12677 INSTALL="$INSTALL"
12678 EOF
12679
12680 cat >>$CONFIG_STATUS <<\EOF
12681 # If no file are specified by the user, then we need to provide default
12682 # value. By we need to know if files were specified by the user.
12683 ac_need_defaults=:
12684 while test $# != 0
12685 do
12686 case $1 in
12687 --*=*)
12688 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12689 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12690 shift
12691 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12692 shift
12693 ;;
12694 -*);;
12695 *) # This is not an option, so the user has probably given explicit
12696 # arguments.
12697 ac_need_defaults=false;;
12698 esac
12699
12700 case $1 in
12701 # Handling of the options.
12702 EOF
12703 cat >>$CONFIG_STATUS <<EOF
12704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12705 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12706 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12707 EOF
12708 cat >>$CONFIG_STATUS <<\EOF
12709 --version | --vers* | -V )
12710 echo "$ac_cs_version"; exit 0 ;;
12711 --he | --h)
12712 # Conflict between --help and --header
12713 { { echo "$as_me:12713: error: ambiguous option: $1
12714 Try \`$0 --help' for more information." >&5
12715 echo "$as_me: error: ambiguous option: $1
12716 Try \`$0 --help' for more information." >&2;}
12717 { (exit 1); exit 1; }; };;
12718 --help | --hel | -h )
12719 echo "$ac_cs_usage"; exit 0 ;;
12720 --debug | --d* | -d )
12721 debug=: ;;
12722 --file | --fil | --fi | --f )
12723 shift
12724 CONFIG_FILES="$CONFIG_FILES $1"
12725 ac_need_defaults=false;;
12726 --header | --heade | --head | --hea )
12727 shift
12728 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12729 ac_need_defaults=false;;
12730
12731 # This is an error.
12732 -*) { { echo "$as_me:12732: error: unrecognized option: $1
12733 Try \`$0 --help' for more information." >&5
12734 echo "$as_me: error: unrecognized option: $1
12735 Try \`$0 --help' for more information." >&2;}
12736 { (exit 1); exit 1; }; } ;;
12737
12738 *) ac_config_targets="$ac_config_targets $1" ;;
12739
12740 esac
12741 shift
12742 done
12743
12744 exec 5>>config.log
12745 cat >&5 << _ACEOF
12746
12747 ## ----------------------- ##
12748 ## Running config.status. ##
12749 ## ----------------------- ##
12750
12751 This file was extended by $as_me 2.52, executed with
12752 CONFIG_FILES = $CONFIG_FILES
12753 CONFIG_HEADERS = $CONFIG_HEADERS
12754 CONFIG_LINKS = $CONFIG_LINKS
12755 CONFIG_COMMANDS = $CONFIG_COMMANDS
12756 > $ac_cs_invocation
12757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12758
12759 _ACEOF
12760 EOF
12761
12762 cat >>$CONFIG_STATUS <<EOF
12763 #
12764 # INIT-COMMANDS section.
12765 #
12766
12767 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
12768
12769 EOF
12770
12771 cat >>$CONFIG_STATUS <<\EOF
12772 for ac_config_target in $ac_config_targets
12773 do
12774 case "$ac_config_target" in
12775 # Handling of arguments.
12776 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12777 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
12778 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
12779 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12780 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
12781 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
12782 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
12783 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
12784 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
12785 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
12786 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12787 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
12788 *) { { echo "$as_me:12788: error: invalid argument: $ac_config_target" >&5
12789 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12790 { (exit 1); exit 1; }; };;
12791 esac
12792 done
12793
12794 # If the user did not use the arguments to specify the items to instantiate,
12795 # then the envvar interface is used. Set only those that are not.
12796 # We use the long form for the default assignment because of an extremely
12797 # bizarre bug on SunOS 4.1.3.
12798 if $ac_need_defaults; then
12799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12800 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12801 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12802 fi
12803
12804 # Create a temporary directory, and hook for its removal unless debugging.
12805 $debug ||
12806 {
12807 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12808 trap '{ (exit 1); exit 1; }' 1 2 13 15
12809 }
12810
12811 # Create a (secure) tmp directory for tmp files.
12812 : ${TMPDIR=/tmp}
12813 {
12814 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12815 test -n "$tmp" && test -d "$tmp"
12816 } ||
12817 {
12818 tmp=$TMPDIR/cs$$-$RANDOM
12819 (umask 077 && mkdir $tmp)
12820 } ||
12821 {
12822 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12823 { (exit 1); exit 1; }
12824 }
12825
12826 EOF
12827
12828 cat >>$CONFIG_STATUS <<EOF
12829
12830 #
12831 # CONFIG_FILES section.
12832 #
12833
12834 # No need to generate the scripts if there are no CONFIG_FILES.
12835 # This happens for instance when ./config.status config.h
12836 if test -n "\$CONFIG_FILES"; then
12837 # Protect against being on the right side of a sed subst in config.status.
12838 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12839 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12840 s,@SHELL@,$SHELL,;t t
12841 s,@exec_prefix@,$exec_prefix,;t t
12842 s,@prefix@,$prefix,;t t
12843 s,@program_transform_name@,$program_transform_name,;t t
12844 s,@bindir@,$bindir,;t t
12845 s,@sbindir@,$sbindir,;t t
12846 s,@libexecdir@,$libexecdir,;t t
12847 s,@datadir@,$datadir,;t t
12848 s,@sysconfdir@,$sysconfdir,;t t
12849 s,@sharedstatedir@,$sharedstatedir,;t t
12850 s,@localstatedir@,$localstatedir,;t t
12851 s,@libdir@,$libdir,;t t
12852 s,@includedir@,$includedir,;t t
12853 s,@oldincludedir@,$oldincludedir,;t t
12854 s,@infodir@,$infodir,;t t
12855 s,@mandir@,$mandir,;t t
12856 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12857 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12858 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12859 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12860 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12861 s,@build_alias@,$build_alias,;t t
12862 s,@host_alias@,$host_alias,;t t
12863 s,@target_alias@,$target_alias,;t t
12864 s,@ECHO_C@,$ECHO_C,;t t
12865 s,@ECHO_N@,$ECHO_N,;t t
12866 s,@ECHO_T@,$ECHO_T,;t t
12867 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12868 s,@DEFS@,$DEFS,;t t
12869 s,@LIBS@,$LIBS,;t t
12870 s,@build@,$build,;t t
12871 s,@build_cpu@,$build_cpu,;t t
12872 s,@build_vendor@,$build_vendor,;t t
12873 s,@build_os@,$build_os,;t t
12874 s,@host@,$host,;t t
12875 s,@host_cpu@,$host_cpu,;t t
12876 s,@host_vendor@,$host_vendor,;t t
12877 s,@host_os@,$host_os,;t t
12878 s,@CC@,$CC,;t t
12879 s,@CFLAGS@,$CFLAGS,;t t
12880 s,@LDFLAGS@,$LDFLAGS,;t t
12881 s,@CPPFLAGS@,$CPPFLAGS,;t t
12882 s,@ac_ct_CC@,$ac_ct_CC,;t t
12883 s,@EXEEXT@,$EXEEXT,;t t
12884 s,@OBJEXT@,$OBJEXT,;t t
12885 s,@LN_S@,$LN_S,;t t
12886 s,@CPP@,$CPP,;t t
12887 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12888 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12889 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12890 s,@YACC@,$YACC,;t t
12891 s,@RANLIB@,$RANLIB,;t t
12892 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12893 s,@LIBSOUND@,$LIBSOUND,;t t
12894 s,@SET_MAKE@,$SET_MAKE,;t t
12895 s,@ALLOCA@,$ALLOCA,;t t
12896 s,@liblockfile@,$liblockfile,;t t
12897 s,@LIBOBJS@,$LIBOBJS,;t t
12898 s,@NEED_SETGID@,$NEED_SETGID,;t t
12899 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
12900 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
12901 s,@version@,$version,;t t
12902 s,@configuration@,$configuration,;t t
12903 s,@canonical@,$canonical,;t t
12904 s,@srcdir@,$srcdir,;t t
12905 s,@lispdir@,$lispdir,;t t
12906 s,@locallisppath@,$locallisppath,;t t
12907 s,@lisppath@,$lisppath,;t t
12908 s,@x_default_search_path@,$x_default_search_path,;t t
12909 s,@etcdir@,$etcdir,;t t
12910 s,@archlibdir@,$archlibdir,;t t
12911 s,@docdir@,$docdir,;t t
12912 s,@bitmapdir@,$bitmapdir,;t t
12913 s,@c_switch_system@,$c_switch_system,;t t
12914 s,@c_switch_machine@,$c_switch_machine,;t t
12915 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
12916 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
12917 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
12918 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
12919 s,@machfile@,$machfile,;t t
12920 s,@opsysfile@,$opsysfile,;t t
12921 CEOF
12922
12923 EOF
12924
12925 cat >>$CONFIG_STATUS <<\EOF
12926 # Split the substitutions into bite-sized pieces for seds with
12927 # small command number limits, like on Digital OSF/1 and HP-UX.
12928 ac_max_sed_lines=48
12929 ac_sed_frag=1 # Number of current file.
12930 ac_beg=1 # First line for current file.
12931 ac_end=$ac_max_sed_lines # Line after last line for current file.
12932 ac_more_lines=:
12933 ac_sed_cmds=
12934 while $ac_more_lines; do
12935 if test $ac_beg -gt 1; then
12936 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12937 else
12938 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12939 fi
12940 if test ! -s $tmp/subs.frag; then
12941 ac_more_lines=false
12942 else
12943 # The purpose of the label and of the branching condition is to
12944 # speed up the sed processing (if there are no `@' at all, there
12945 # is no need to browse any of the substitutions).
12946 # These are the two extra sed commands mentioned above.
12947 (echo ':t
12948 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12949 if test -z "$ac_sed_cmds"; then
12950 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12951 else
12952 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12953 fi
12954 ac_sed_frag=`expr $ac_sed_frag + 1`
12955 ac_beg=$ac_end
12956 ac_end=`expr $ac_end + $ac_max_sed_lines`
12957 fi
12958 done
12959 if test -z "$ac_sed_cmds"; then
12960 ac_sed_cmds=cat
12961 fi
12962 fi # test -n "$CONFIG_FILES"
12963
12964 EOF
12965 cat >>$CONFIG_STATUS <<\EOF
12966 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12967 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12968 case $ac_file in
12969 - | *:- | *:-:* ) # input from stdin
12970 cat >$tmp/stdin
12971 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12972 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12973 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12974 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12975 * ) ac_file_in=$ac_file.in ;;
12976 esac
12977
12978 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12979 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12980 X"$ac_file" : 'X\(//\)[^/]' \| \
12981 X"$ac_file" : 'X\(//\)$' \| \
12982 X"$ac_file" : 'X\(/\)' \| \
12983 . : '\(.\)' 2>/dev/null ||
12984 echo X"$ac_file" |
12985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12987 /^X\(\/\/\)$/{ s//\1/; q; }
12988 /^X\(\/\).*/{ s//\1/; q; }
12989 s/.*/./; q'`
12990 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12991 { case "$ac_dir" in
12992 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12993 *) as_incr_dir=.;;
12994 esac
12995 as_dummy="$ac_dir"
12996 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12997 case $as_mkdir_dir in
12998 # Skip DOS drivespec
12999 ?:) as_incr_dir=$as_mkdir_dir ;;
13000 *)
13001 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13002 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13003 ;;
13004 esac
13005 done; }
13006
13007 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
13008 # A "../" for each directory in $ac_dir_suffix.
13009 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13010 else
13011 ac_dir_suffix= ac_dots=
13012 fi
13013
13014 case $srcdir in
13015 .) ac_srcdir=.
13016 if test -z "$ac_dots"; then
13017 ac_top_srcdir=.
13018 else
13019 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
13020 fi ;;
13021 [\\/]* | ?:[\\/]* )
13022 ac_srcdir=$srcdir$ac_dir_suffix;
13023 ac_top_srcdir=$srcdir ;;
13024 *) # Relative path.
13025 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
13026 ac_top_srcdir=$ac_dots$srcdir ;;
13027 esac
13028
13029 case $INSTALL in
13030 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13031 *) ac_INSTALL=$ac_dots$INSTALL ;;
13032 esac
13033
13034 if test x"$ac_file" != x-; then
13035 { echo "$as_me:13035: creating $ac_file" >&5
13036 echo "$as_me: creating $ac_file" >&6;}
13037 rm -f "$ac_file"
13038 fi
13039 # Let's still pretend it is `configure' which instantiates (i.e., don't
13040 # use $as_me), people would be surprised to read:
13041 # /* config.h. Generated automatically by config.status. */
13042 configure_input="Generated automatically from `echo $ac_file_in |
13043 sed 's,.*/,,'` by configure."
13044
13045 # First look for the input files in the build tree, otherwise in the
13046 # src tree.
13047 ac_file_inputs=`IFS=:
13048 for f in $ac_file_in; do
13049 case $f in
13050 -) echo $tmp/stdin ;;
13051 [\\/$]*)
13052 # Absolute (can't be DOS-style, as IFS=:)
13053 test -f "$f" || { { echo "$as_me:13053: error: cannot find input file: $f" >&5
13054 echo "$as_me: error: cannot find input file: $f" >&2;}
13055 { (exit 1); exit 1; }; }
13056 echo $f;;
13057 *) # Relative
13058 if test -f "$f"; then
13059 # Build tree
13060 echo $f
13061 elif test -f "$srcdir/$f"; then
13062 # Source tree
13063 echo $srcdir/$f
13064 else
13065 # /dev/null tree
13066 { { echo "$as_me:13066: error: cannot find input file: $f" >&5
13067 echo "$as_me: error: cannot find input file: $f" >&2;}
13068 { (exit 1); exit 1; }; }
13069 fi;;
13070 esac
13071 done` || { (exit 1); exit 1; }
13072 EOF
13073 cat >>$CONFIG_STATUS <<EOF
13074 sed "$ac_vpsub
13075 $extrasub
13076 EOF
13077 cat >>$CONFIG_STATUS <<\EOF
13078 :t
13079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13080 s,@configure_input@,$configure_input,;t t
13081 s,@srcdir@,$ac_srcdir,;t t
13082 s,@top_srcdir@,$ac_top_srcdir,;t t
13083 s,@INSTALL@,$ac_INSTALL,;t t
13084 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13085 rm -f $tmp/stdin
13086 if test x"$ac_file" != x-; then
13087 mv $tmp/out $ac_file
13088 else
13089 cat $tmp/out
13090 rm -f $tmp/out
13091 fi
13092
13093 done
13094 EOF
13095 cat >>$CONFIG_STATUS <<\EOF
13096
13097 #
13098 # CONFIG_HEADER section.
13099 #
13100
13101 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13102 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13103 #
13104 # ac_d sets the value in "#define NAME VALUE" lines.
13105 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13106 ac_dB='[ ].*$,\1#\2'
13107 ac_dC=' '
13108 ac_dD=',;t'
13109 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13110 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13111 ac_uB='$,\1#\2define\3'
13112 ac_uC=' '
13113 ac_uD=',;t'
13114
13115 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13116 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13117 case $ac_file in
13118 - | *:- | *:-:* ) # input from stdin
13119 cat >$tmp/stdin
13120 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13121 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13122 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13123 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13124 * ) ac_file_in=$ac_file.in ;;
13125 esac
13126
13127 test x"$ac_file" != x- && { echo "$as_me:13127: creating $ac_file" >&5
13128 echo "$as_me: creating $ac_file" >&6;}
13129
13130 # First look for the input files in the build tree, otherwise in the
13131 # src tree.
13132 ac_file_inputs=`IFS=:
13133 for f in $ac_file_in; do
13134 case $f in
13135 -) echo $tmp/stdin ;;
13136 [\\/$]*)
13137 # Absolute (can't be DOS-style, as IFS=:)
13138 test -f "$f" || { { echo "$as_me:13138: error: cannot find input file: $f" >&5
13139 echo "$as_me: error: cannot find input file: $f" >&2;}
13140 { (exit 1); exit 1; }; }
13141 echo $f;;
13142 *) # Relative
13143 if test -f "$f"; then
13144 # Build tree
13145 echo $f
13146 elif test -f "$srcdir/$f"; then
13147 # Source tree
13148 echo $srcdir/$f
13149 else
13150 # /dev/null tree
13151 { { echo "$as_me:13151: error: cannot find input file: $f" >&5
13152 echo "$as_me: error: cannot find input file: $f" >&2;}
13153 { (exit 1); exit 1; }; }
13154 fi;;
13155 esac
13156 done` || { (exit 1); exit 1; }
13157 # Remove the trailing spaces.
13158 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13159
13160 EOF
13161
13162 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13163 # `conftest.undefs', that substitutes the proper values into
13164 # config.h.in to produce config.h. The first handles `#define'
13165 # templates, and the second `#undef' templates.
13166 # And first: Protect against being on the right side of a sed subst in
13167 # config.status. Protect against being in an unquoted here document
13168 # in config.status.
13169 rm -f conftest.defines conftest.undefs
13170 # Using a here document instead of a string reduces the quoting nightmare.
13171 # Putting comments in sed scripts is not portable.
13172 #
13173 # `end' is used to avoid that the second main sed command (meant for
13174 # 0-ary CPP macros) applies to n-ary macro definitions.
13175 # See the Autoconf documentation for `clear'.
13176 cat >confdef2sed.sed <<\EOF
13177 s/[\\&,]/\\&/g
13178 s,[\\$`],\\&,g
13179 t clear
13180 : clear
13181 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13182 t end
13183 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13184 : end
13185 EOF
13186 # If some macros were called several times there might be several times
13187 # the same #defines, which is useless. Nevertheless, we may not want to
13188 # sort them, since we want the *last* AC-DEFINE to be honored.
13189 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13190 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13191 rm -f confdef2sed.sed
13192
13193 # This sed command replaces #undef with comments. This is necessary, for
13194 # example, in the case of _POSIX_SOURCE, which is predefined and required
13195 # on some systems where configure will not decide to define it.
13196 cat >>conftest.undefs <<\EOF
13197 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13198 EOF
13199
13200 # Break up conftest.defines because some shells have a limit on the size
13201 # of here documents, and old seds have small limits too (100 cmds).
13202 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13203 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13204 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13205 echo ' :' >>$CONFIG_STATUS
13206 rm -f conftest.tail
13207 while grep . conftest.defines >/dev/null
13208 do
13209 # Write a limited-size here document to $tmp/defines.sed.
13210 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13211 # Speed up: don't consider the non `#define' lines.
13212 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13213 # Work around the forget-to-reset-the-flag bug.
13214 echo 't clr' >>$CONFIG_STATUS
13215 echo ': clr' >>$CONFIG_STATUS
13216 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13217 echo 'CEOF
13218 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13219 rm -f $tmp/in
13220 mv $tmp/out $tmp/in
13221 ' >>$CONFIG_STATUS
13222 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13223 rm -f conftest.defines
13224 mv conftest.tail conftest.defines
13225 done
13226 rm -f conftest.defines
13227 echo ' fi # egrep' >>$CONFIG_STATUS
13228 echo >>$CONFIG_STATUS
13229
13230 # Break up conftest.undefs because some shells have a limit on the size
13231 # of here documents, and old seds have small limits too (100 cmds).
13232 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13233 rm -f conftest.tail
13234 while grep . conftest.undefs >/dev/null
13235 do
13236 # Write a limited-size here document to $tmp/undefs.sed.
13237 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13238 # Speed up: don't consider the non `#undef'
13239 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13240 # Work around the forget-to-reset-the-flag bug.
13241 echo 't clr' >>$CONFIG_STATUS
13242 echo ': clr' >>$CONFIG_STATUS
13243 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13244 echo 'CEOF
13245 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13246 rm -f $tmp/in
13247 mv $tmp/out $tmp/in
13248 ' >>$CONFIG_STATUS
13249 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13250 rm -f conftest.undefs
13251 mv conftest.tail conftest.undefs
13252 done
13253 rm -f conftest.undefs
13254
13255 cat >>$CONFIG_STATUS <<\EOF
13256 # Let's still pretend it is `configure' which instantiates (i.e., don't
13257 # use $as_me), people would be surprised to read:
13258 # /* config.h. Generated automatically by config.status. */
13259 if test x"$ac_file" = x-; then
13260 echo "/* Generated automatically by configure. */" >$tmp/config.h
13261 else
13262 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13263 fi
13264 cat $tmp/in >>$tmp/config.h
13265 rm -f $tmp/in
13266 if test x"$ac_file" != x-; then
13267 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13268 { echo "$as_me:13268: $ac_file is unchanged" >&5
13269 echo "$as_me: $ac_file is unchanged" >&6;}
13270 else
13271 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13272 X"$ac_file" : 'X\(//\)[^/]' \| \
13273 X"$ac_file" : 'X\(//\)$' \| \
13274 X"$ac_file" : 'X\(/\)' \| \
13275 . : '\(.\)' 2>/dev/null ||
13276 echo X"$ac_file" |
13277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13279 /^X\(\/\/\)$/{ s//\1/; q; }
13280 /^X\(\/\).*/{ s//\1/; q; }
13281 s/.*/./; q'`
13282 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13283 { case "$ac_dir" in
13284 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13285 *) as_incr_dir=.;;
13286 esac
13287 as_dummy="$ac_dir"
13288 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13289 case $as_mkdir_dir in
13290 # Skip DOS drivespec
13291 ?:) as_incr_dir=$as_mkdir_dir ;;
13292 *)
13293 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13294 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13295 ;;
13296 esac
13297 done; }
13298
13299 fi
13300 rm -f $ac_file
13301 mv $tmp/config.h $ac_file
13302 fi
13303 else
13304 cat $tmp/config.h
13305 rm -f $tmp/config.h
13306 fi
13307 done
13308 EOF
13309 cat >>$CONFIG_STATUS <<\EOF
13310
13311 #
13312 # CONFIG_COMMANDS section.
13313 #
13314 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13315 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13316 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13317
13318 case $ac_dest in
13319 default )
13320
13321 ### Make the necessary directories, if they don't exist.
13322 for dir in etc lisp ; do
13323 test -d ${dir} || mkdir ${dir}
13324 done
13325
13326 # Build src/Makefile from ${srcdir}/src/Makefile.c
13327 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13328 # This must be done after src/config.h is built, since we rely on that file.
13329
13330 # Now get this: Some word that is part of the ${srcdir} directory name
13331 # or the ${configuration} value might, just might, happen to be an
13332 # identifier like `sun4' or `i386' or something, and be predefined by
13333 # the C preprocessor to some helpful value like 1, or maybe the empty
13334 # string. Needless to say consequent macro substitutions are less
13335 # than conducive to the makefile finding the correct directory.
13336 undefs="`echo $top_srcdir $configuration $canonical |
13337 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13338 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13339 `"
13340
13341 echo creating src/epaths.h
13342 ${MAKE-make} epaths-force
13343
13344 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13345 # `..' to `. .' unless invoked with -traditional
13346
13347 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
13348 CPPFLAGS="$CPPFLAGS -traditional"
13349 fi
13350
13351 echo creating lib-src/Makefile
13352 ( cd lib-src
13353 rm -f junk.c junk1.c junk2.c
13354 sed -e '/start of cpp stuff/q' \
13355 < Makefile.c > junk1.c
13356 sed -e '1,/start of cpp stuff/d'\
13357 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13358 < Makefile.c > junk.c
13359 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13360 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13361 cat junk1.c junk2.c > Makefile.new
13362 rm -f junk.c junk1.c junk2.c
13363 chmod 444 Makefile.new
13364 mv -f Makefile.new Makefile
13365 )
13366
13367 echo creating src/Makefile
13368 ( cd src
13369 rm -f junk.c junk1.c junk2.c
13370 sed -e '/start of cpp stuff/q' \
13371 < Makefile.c > junk1.c
13372 sed -e '1,/start of cpp stuff/d'\
13373 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13374 < Makefile.c > junk.c
13375 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13376 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13377 cat junk1.c junk2.c > Makefile.new
13378 rm -f junk.c junk1.c junk2.c
13379 chmod 444 Makefile.new
13380 mv -f Makefile.new Makefile
13381 )
13382
13383 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
13384 echo creating src/.gdbinit
13385 echo source $srcdir/src/.gdbinit > src/.gdbinit
13386 fi
13387
13388 # This is how we know whether to re-run configure in certain cases.
13389 touch src/config.stamp
13390
13391 ;;
13392 esac
13393 done
13394 EOF
13395
13396 cat >>$CONFIG_STATUS <<\EOF
13397
13398 { (exit 0); exit 0; }
13399 EOF
13400 chmod +x $CONFIG_STATUS
13401 ac_clean_files=$ac_clean_files_save
13402
13403 # configure is writing to config.log, and then calls config.status.
13404 # config.status does its own redirection, appending to config.log.
13405 # Unfortunately, on DOS this fails, as config.log is still kept open
13406 # by configure, so config.status won't be able to write to it; its
13407 # output is simply discarded. So we exec the FD to /dev/null,
13408 # effectively closing config.log, so it can be properly (re)opened and
13409 # appended to by config.status. When coming back to configure, we
13410 # need to make the FD available again.
13411 if test "$no_create" != yes; then
13412 ac_cs_success=:
13413 exec 5>/dev/null
13414 $SHELL $CONFIG_STATUS || ac_cs_success=false
13415 exec 5>>config.log
13416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13417 # would make configure fail if this is the last instruction.
13418 $ac_cs_success || { (exit 1); exit 1; }
13419 fi
13420